From 3d7e6b19bfec94ae3e0222ae2c09cb6d332f11e7 Mon Sep 17 00:00:00 2001 From: autosubmit Date: Tue, 1 Jul 2025 18:54:05 +0800 Subject: [PATCH] Auto Submit --- ..._Exercise__Detail__index.009bcb56.async.js | 30 +++++++++---------- umi.f74a6c31.js => umi.a7f4de6c.js | 4 +-- 2 files changed, 17 insertions(+), 17 deletions(-) rename p__Classrooms__Lists__Exercise__Detail__index.6f43226d.async.js => p__Classrooms__Lists__Exercise__Detail__index.009bcb56.async.js (98%) rename umi.f74a6c31.js => umi.a7f4de6c.js (99%) diff --git a/p__Classrooms__Lists__Exercise__Detail__index.6f43226d.async.js b/p__Classrooms__Lists__Exercise__Detail__index.009bcb56.async.js similarity index 98% rename from p__Classrooms__Lists__Exercise__Detail__index.6f43226d.async.js rename to p__Classrooms__Lists__Exercise__Detail__index.009bcb56.async.js index 85125e56e1..7cbb1b0c74 100644 --- a/p__Classrooms__Lists__Exercise__Detail__index.6f43226d.async.js +++ b/p__Classrooms__Lists__Exercise__Detail__index.009bcb56.async.js @@ -1109,16 +1109,16 @@ ${Pn} `)},{label:"include ",content:["#include "].join(` `)}]},xe={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(` `)}]},pe={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(` -`)}]};var Se=z(84204),Ae=z.n(Se),Ie=(ut,un,Pn)=>new Promise((Rn,bt)=>{var An=zt=>{try{Qt(Pn.next(zt))}catch(jt){bt(jt)}},Nn=zt=>{try{Qt(Pn.throw(zt))}catch(jt){bt(jt)}},Qt=zt=>zt.done?Rn(zt.value):Promise.resolve(zt.value).then(An,Nn);Qt((Pn=Pn.apply(ut,un)).next())});const ze={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},Me=(ut,un,Pn,Rn)=>{const bt=un.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:Pn.lineNumber,endColumn:Pn.column});return Array.from(new Set(bt.match(/\b\w{2,}\b/g)||[])).map(Nn=>({label:Nn,kind:ut.languages.CompletionItemKind.Text,insertText:Nn,range:Rn}))},me=(ut,un,Pn,Rn)=>{ut.languages.registerCompletionItemProvider(un,{provideCompletionItems(bt,An){const Nn=bt.getWordUntilPosition(An),Qt={startLineNumber:An.lineNumber,endLineNumber:An.lineNumber,startColumn:Nn.startColumn,endColumn:Nn.endColumn},zt=bt.getLineContent(An.lineNumber).substring(Nn.startColumn-2,Nn.endColumn);return{suggestions:[...Me(ut,bt,An,Qt),...Pn.map(sn=>({label:sn,kind:ut.languages.CompletionItemKind.Keyword,documentation:sn,insertText:sn,insertTextRules:ut.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Qt})),...Rn.map(sn=>({label:sn.label,kind:ut.languages.CompletionItemKind.Snippet,documentation:sn.content,insertText:zt.startsWith("#")?sn.content.replace(/#/,""):sn.content,insertTextRules:ut.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Qt}))]}}})};var oe=ut=>{ze.languages.forEach(un=>{ut.languages.registerDocumentFormattingEditProvider(un,{provideDocumentFormattingEdits(Pn){return Ie(this,null,function*(){const Rn=Ae()(Pn.getValue(),{indent_size:2,indent_char:" ",max_preserve_newlines:2,preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:0,indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:Pn.getFullModelRange(),text:Rn}]})}})}),me(ut,"java",he.keywords,he.quickKey),me(ut,"cpp",Fe.keywords,Fe.quickKey),me(ut,"c",ke.keywords,[]),me(ut,"python",xe.keywords,xe.quickKey),me(ut,"scala",pe.keywords,pe.quickKey)};const E="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var y=Object.defineProperty,x=(ut,un,Pn)=>un in ut?y(ut,un,{enumerable:!0,configurable:!0,writable:!0,value:Pn}):ut[un]=Pn,b=(ut,un,Pn)=>x(ut,typeof un!="symbol"?un+"":un,Pn);const ee=class zg{constructor(un,Pn,Rn){this.placeholder=un,this.editor=Pn,this.monaco=Rn,Pn.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return zg.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};b(ee,"ID","editor.widget.placeholderHint");var ne=ee,de=z(84144),ye=z(2453),fe=z(83062),ve=z(96486),Ne=z(33054),Le=z(74855),Re=Object.defineProperty,He=Object.defineProperties,We=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,it=(ut,un,Pn)=>un in ut?Re(ut,un,{enumerable:!0,configurable:!0,writable:!0,value:Pn}):ut[un]=Pn,lt=(ut,un)=>{for(var Pn in un||(un={}))Ue.call(un,Pn)&&it(ut,Pn,un[Pn]);if(Ge)for(var Pn of Ge(un))Ye.call(un,Pn)&&it(ut,Pn,un[Pn]);return ut},Bt=(ut,un)=>He(ut,We(un)),ct=(ut,un)=>{var Pn={};for(var Rn in ut)Ue.call(ut,Rn)&&un.indexOf(Rn)<0&&(Pn[Rn]=ut[Rn]);if(ut!=null&&Ge)for(var Rn of Ge(ut))un.indexOf(Rn)<0&&Ye.call(ut,Rn)&&(Pn[Rn]=ut[Rn]);return Pn},nt=(ut,un,Pn)=>new Promise((Rn,bt)=>{var An=zt=>{try{Qt(Pn.next(zt))}catch(jt){bt(jt)}},Nn=zt=>{try{Qt(Pn.throw(zt))}catch(jt){bt(jt)}},Qt=zt=>zt.done?Rn(zt.value):Promise.resolve(zt.value).then(An,Nn);Qt((Pn=Pn.apply(ut,un)).next())});function Ze(ut){return/^\d+$/.test(ut)?`${ut}px`:ut}function yt(){}let ht=!1;const Je={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function ot(ut=[]){let un=ut;if(Array.isArray(ut)){for(let Pn=0;Pnnt(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(ut){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",ut)}});var Mt=ut=>{var un=ut,{width:Pn="100%",height:Rn="100%",value:bt,language:An="javascript",style:Nn={},options:Qt={},overrideServices:zt={},theme:jt="vs-dark",onEditBlur:sn,isCopy:vt=!1,onSave:Tt,autoHeight:qt=!1,forbidCopy:St=!1,onChange:Ke=yt,editorDidMount:ln=yt,onFocus:Un=yt,onBreakPoint:Ca=yt,breakPointValue:Cu=[],filename:Da="educoder.txt",errorLine:nr,errorContent:cu="",highlightLine:or,openBreakPoint:Aa=!1,placeholder:Zt="",showMiniMap:xn=!0}=un,vl=ct(un,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const Er=(0,a.useRef)(),er=(0,a.useRef)({}),Pa=(0,a.useRef)(),Za=(0,a.useRef)(),qn=(0,a.useRef)([]),Vn=(0,a.useRef)(!1),Qa=(0,a.useRef)(),gu=(0,a.useRef)(),_u=(0,a.useRef)(!1),[ir,ul]=(0,a.useState)(!1);function On(){let Lt;return Er.current&&(Lt=new Ce.Z(Wn=>{for(let ra of Wn)(ra.target.offsetHeight>0||ra.target.offsetWidth>0)&&er.current.instance.layout()}),Lt.observe(Er.current)),Lt}function Jt(){ye.ZP.warning({content:decodeURIComponent(E),key:"monaco-editor-tip"})}const _n=()=>{let Lt=er.current.instance;if(bt!=null&&Lt&&ir){const Wn=Lt.getModel();Wn&&bt!==Wn.getValue()&&(ht=!0,Wn.setValue(bt),Lt.layout(),ht=!1)}};(0,a.useEffect)(()=>{const Lt=Ne.Z.subscribe("formatDocument",Wn=>{var ra;let xa=er.current.instance;(ra=xa==null?void 0:xa.getAction)==null||ra.call(xa,"editor.action.formatDocument").run()});return window.updateMonacoValue=Wn=>{Ke(Wn)},Lt},[]),(0,a.useEffect)(()=>{var Lt;let Wn=er.current.instance;Za.current&&clearTimeout(Za.current),Za.current=setTimeout(()=>{_n()},500),bt&&(bt!=null&&bt.length)&&((Lt=Wn==null?void 0:Wn.updateOptions)==null||Lt.call(Wn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(bt.split(/\r\n|\r|\n/g).length))+3,5)}))},[bt,ir,er.current]),(0,a.useEffect)(()=>{if(nr&&er.current&&er.current.instance){let Wn=er.current.instance;Wn.changeViewZones(function(ra){var xa=document.createElement("div");xa.style.padding="10px 20px",xa.style.width="calc(100% - 20px)",xa.className="my-error-line-wrp",xa.innerHTML=cu,ra.addZone({afterLineNumber:nr||11,heightInLines:3,domNode:xa})});var Lt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};Wn.addOverlayWidget(Lt),Wn.revealPositionInCenter({lineNumber:20,column:1})}},[nr,er.current,ir]);const Gn=(Lt="",Wn)=>{if(!Lt||Lt.trim()==="")return!0;const xa=er.current.instance.getModel().getLineTokens(Wn);let Kn=!1;for(let Du=0;Du<2;Du++)xa.getStandardTokenType(Du)===1&&(Kn=!0);return Kn};(0,a.useEffect)(()=>{var Lt;const Wn=(Lt=er.current)==null?void 0:Lt.instance;if(Wn&&ir&&St){const ra=Wn.onDidBlurEditorWidget(()=>{_u.current=!1}),xa=Wn.onDidFocusEditorText(()=>{_u.current=!0});return()=>{ra.dispose(),xa.dispose()}}},[er.current,ir,St]),(0,a.useEffect)(()=>{var Lt;if((Lt=er.current)!=null&&Lt.instance&&ir&&Aa){let Wn=er.current.instance,ra=Wn.getModel();if(!ra)return;(()=>{var Wa;let rl=[],sr=[];const uu=ra.getAllDecorations();for(let Ua of uu)Ua.options.className==="highlighted-line"&&(rl.push((Wa=Ua==null?void 0:Ua.range)==null?void 0:Wa.startLineNumber),sr.push(Ua==null?void 0:Ua.id));if(or===rl[0])return;ra.deltaDecorations(sr,[]);const ya=ra.getLineCount();or&&or<=ya&&(Wn.deltaDecorations([],[{range:new Ct.Range(or,1,or,ra.getLineMaxColumn(or)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Wn.revealLineInCenter(or))})();const Kn=(Wa=!1)=>{var rl;let sr=[],uu=[];const ya=ra.getAllDecorations();for(let Ua of ya)Ua.options.linesDecorationsClassName==="breakpoints-select"&&(sr.push((rl=Ua==null?void 0:Ua.range)==null?void 0:rl.startLineNumber),uu.push(Ua==null?void 0:Ua.id));if(Wa)return{lines:sr,ids:uu};Ca(sr)},Du=Wa=>nt(void 0,null,function*(){let rl={range:new Ct.Range(Wa,1,Wa,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield ra.deltaDecorations([],[rl]),Kn()}),la=Wa=>nt(void 0,null,function*(){let rl=[];const sr=Wn.getLineDecorations(Wa);for(let uu of sr)uu.options.linesDecorationsClassName==="breakpoints-select"&&rl.push(uu.id);yield ra.deltaDecorations(rl,[]),Kn()}),lu=Wa=>{let rl=Wn.getLineDecorations(Wa);for(let sr of rl)if(sr.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,ve.isEqual)(Cu,Kn(!0).lines)){ra.deltaDecorations(Kn(!0).ids,[]);const Wa=Cu.map(rl=>({range:new Ct.Range(rl,1,rl,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));ra.deltaDecorations([],Wa)}const Ga=Wn.onDidChangeModelContent(Wa=>{let rl=Wn.getPosition();if(rl){let sr=rl.lineNumber;clearTimeout(gu.current),gu.current=setTimeout(()=>{Gn(ra.getLineContent(sr),sr)?la(sr):lu(sr)?(la(sr),Du(sr)):Kn()},100)}}),Ea=Wn.onMouseDown(Wa=>{var rl,sr,uu;if(Wa.target.detail&&((uu=(sr=(rl=Wa.target)==null?void 0:rl.element)==null?void 0:sr.className)!=null&&uu.includes("line-numbers"))){let ya=Wa.target.position.lineNumber;if(Gn(ra.getLineContent(ya),ya))return;lu(ya)?la(ya):Du(ya)}}),ga=Wa=>{let rl={range:new Ct.Range(Wa,1,Wa,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};qn.current=Wn.deltaDecorations(qn.current,[rl])},jn=()=>{qn.current=Wn.deltaDecorations(qn.current,[])},Hu=Wn.onMouseMove(Wa=>{var rl,sr,uu;if(jn(),Wa.target.detail&&((uu=(sr=(rl=Wa.target)==null?void 0:rl.element)==null?void 0:sr.className)!=null&&uu.includes("line-numbers"))){let ya=Wa.target.position.lineNumber;if(Gn(ra.getLineContent(ya),ya))return;ga(ya)}}),Hr=Wn.onMouseLeave(()=>{jn()});return()=>{Ga.dispose(),Ea.dispose(),Hu.dispose(),Hr.dispose()}}},[er.current,ir,Cu,or,Aa,An]),(0,a.useEffect)(()=>{var Lt;(Lt=er.current)!=null&&Lt.instance&&Aa&&er.current.instance.setPosition({lineNumber:0,column:0})},[or]);function ua(){let Lt=er.current.instance;if(Lt){const Wn=Lt.getSelection(),ra=er.current.pastePos||{},xa=new Ct.Range(ra.startLineNumber||Wn.endLineNumber,ra.startColumn||Wn.endColumn,ra.endLineNumber||Wn.endLineNumber,ra.endColumn||Wn.endColumn);setTimeout(()=>{Lt.executeEdits("",[{range:xa,text:""}])},300)}}function oa(Lt){(window.navigator.platform.match("Mac")?Lt.metaKey:Lt.ctrlKey)&&Lt.keyCode==83&&(Lt.preventDefault(),Tt())}const Ta=()=>{if(qt&&er.current.instance){const Lt=er.current.instance.getContentHeight();tt(Lt{if(!_u.current)return;const{keyCode:Wn,ctrlKey:ra,metaKey:xa,target:Kn,type:Du}=Lt;return(Du==="paste"||(Wn===67||Wn===86)&&(xa||ra))&&Kn.nodeName==="TEXTAREA"&&(Jt(),Lt.preventDefault()),!1};function re(Lt,Wn){var ra=window.URL||window.webkitURL||window,xa=new Blob([Wn]),Kn=document.createElementNS("http://www.w3.org/1999/xhtml","a");Kn.href=ra.createObjectURL(xa),Kn.download=Lt,hu(Kn)}(0,a.useEffect)(()=>{Ta()},[Ta]),(0,a.useEffect)(()=>{Er.current&&!ir&&Promise.all([z.e(5552),z.e(9651)]).then(z.bind(z,55826)).then(Lt=>{try{Ct=Lt,er.current.instance=Ct.editor.create(Er.current,{value:bt,language:ot(An),theme:jt,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:xn||!1}},zt);const Wn=er.current.instance;let Kn=[...de.BH._menuItems].find(Ga=>Ga[0]._debugName=="EditorContext")[1],Du=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],la=(Ga,Ea)=>{var ga,jn;let Hu=Ga._first;do Ea.includes((jn=(ga=Hu.element)==null?void 0:ga.command)==null?void 0:jn.id)&&Ga._remove(Hu);while(Hu=Hu.next)};if(ln(Wn,Ct),setTimeout(()=>{Ta(),er.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{re(Da||"educoder.txt",Wn.getValue())}})},500),er.current.subscription=Wn.onDidChangeModelContent(Ga=>{Vn.current?clearTimeout(Qa.current):(Ta(),Ke(Wn.getValue(),Ga)),Qa.current=setTimeout(()=>{Vn.current=!1},500)}),window.Monaco||oe(Ct,ot(An)),St&&(la(Kn,Du),Er.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",ft),window.removeEventListener("paste",ft),window.addEventListener("keydown",ft),window.addEventListener("paste",ft)),window.Monaco=Ct,sn&&Wn.onDidBlurEditorWidget(()=>{sn(Wn.getValue())}),Un&&Wn.onDidFocusEditorText(()=>{St&&kt(),Un(Wn.getValue())}),St){kt();try{Wn.onDidPaste(Ga=>{const Ea=Wn.getSelection(),ga=er.current.pastePos||{},jn=new Ct.Range(ga.startLineNumber||Ea.endLineNumber,ga.startColumn||Ea.endColumn,ga.endLineNumber||Ea.endLineNumber,ga.endColumn||Ea.endColumn);Wn.executeEdits("",[{range:Ga.range,text:""}])})}catch(Ga){}}let lu=On();return Zt&&typeof Zt=="string"&&new ne(Zt,Wn,Ct),ul(!0),()=>{const Ga=er.current.instance;Ga.dispose();const Ea=Ga.getModel();Ea&&Ea.dispose(),er.current.subscription&&er.current.subscription.dispose(),lu.unobserve(Er.current)}}catch(Wn){}})},[]),(0,a.useEffect)(()=>{if(er.current.instance&&ir)return document.addEventListener("keydown",oa,!1),()=>{document.removeEventListener("keydown",oa)}},[Tt,ir]),(0,a.useEffect)(()=>{let Lt=er.current.instance;if(Lt&&ir){let Wn=ot(An);Ct.editor.setModelLanguage(Lt.getModel(),Wn)}},[An,ir]),(0,a.useEffect)(()=>{er.current.instance&&ir&&Ct.editor.setTheme(jt)},[jt,ir]),(0,a.useEffect)(()=>{let Lt=er.current.instance;Pa.current=Qt,Lt&&ir&&(Lt.updateOptions(lt({},Qt)),setTimeout(()=>{Lt.getModel().updateOptions(lt({},Qt))},200))},[JSON.stringify(Qt),ir]),(0,a.useEffect)(()=>{let Lt=er.current.instance;Lt&&ir&&Lt.layout()},[Pn,Rn,ir]);const[ge,De]=(0,a.useState)(Ze(Pn)),[Xe,tt]=(0,a.useState)(Ze(Rn)),Ot=Bt(lt({},Nn),{width:ge,height:Xe,position:"relative"});return a.createElement("div",{className:"my-monaco-editor",ref:Er,style:Ot},vt&&a.createElement(Le.CopyToClipboard,{text:bt,onCopy:()=>ye.ZP.success("\u590D\u5236\u6210\u529F")},a.createElement(fe.Z,{title:"\u590D\u5236\u4EE3\u7801"},a.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},a.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function st({width:ut="100%",height:un="100%",original:Pn,modified:Rn,language:bt,options:An={}}){const Nn=(0,a.useRef)(),[Qt,zt]=(0,a.useState)(null);function jt(qt){let St;return Nn.current&&(St=new Ce.Z(Ke=>{for(let ln of Ke)(ln.target.offsetHeight>0||ln.target.offsetWidth>0)&&qt.layout()}),St.observe(Nn.current)),St}(0,a.useEffect)(()=>(Nn.current&&Promise.all([z.e(5552),z.e(9404)]).then(z.bind(z,50048)).then(qt=>{Ct=qt;const St=Ct.editor.createDiffEditor(Nn.current,Bt(lt({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},An),{wordWrap:!0}));zt(St);let Ke=jt(St);return()=>{St.dispose();const ln=St.getModel();ln&&ln.dispose(),Ke.unobserve(Nn.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,a.useEffect)(()=>{Qt&&Qt.setModel({original:Ct.editor.createModel(Pn,bt),modified:Ct.editor.createModel(Rn,bt)})},[Pn,Rn,bt,Qt]);const sn=Ze(ut),vt=Ze(un),Tt={width:sn,height:vt};return a.createElement("div",{className:"my-diff-editor",ref:Nn,style:Tt})}},21434:function(Ft,rt,z){"use strict";var a=z(12867),Ce=z(88044),ke=z(59637),he=z(67294);const Fe=Ce.default.Option;rt.Z=({isTheoretical:xe,onFontSizeChange:pe,cmFontSize:Se,cmCodeMode:Ae,autoFormat:Ie,onCodeModeChange:ze,onTabToSpace:Me,onAutoFormat:me,formatDocument:oe,className:E="",tabToSpace:y,children:x,code_editor:b,challenge:ee,shixun_environment_id:te,shixun_environments:ne})=>{var de;const ye={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"},fe=(de=ne==null?void 0:ne.find(ve=>ve.shixun_environment_id===te))==null?void 0:de.program_language;return console.log("----",fe,ne,te,b),he.createElement("div",{className:`tpi-code-setting ${E}`},he.createElement("h3",null,"\u4EE3\u7801\u683C\u5F0F"),he.createElement("section",null,he.createElement("div",{className:"file-item"},he.createElement("b",null,"\u663E\u793A\u6A21\u5F0F"),he.createElement(Ce.default,{bordered:!1,size:"small",value:Ae,onChange:ze},he.createElement(Fe,{value:"vs"},"\u767D\u8272\u80CC\u666F"),he.createElement(Fe,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),!xe&&he.createElement(he.Fragment,null,he.createElement("div",{className:"file-item"},he.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),he.createElement(Ce.default,{bordered:!1,size:"small",value:Se,onChange:pe},he.createElement(Fe,{value:12},"12px"),he.createElement(Fe,{value:14},"14px"),he.createElement(Fe,{value:16},"16px"),he.createElement(Fe,{value:18},"18px"),he.createElement(Fe,{value:20},"20px"),he.createElement(Fe,{value:22},"22px"))),he.createElement("div",{className:"file-item"},he.createElement("b",null,"Tab\u8F6C\u6362"),he.createElement(ke.Z,{checked:y,onChange:Me})),he.createElement("div",{className:"file-item",onClick:oe},he.createElement("b",{style:{cursor:"pointer"}},"\u683C\u5F0F\u5316\u4EE3\u7801")))),!xe&&he.createElement(he.Fragment,null,he.createElement("h3",null,"\u5FEB\u6377\u952E"),he.createElement("section",null,he.createElement("div",{className:"file-item"},he.createElement("b",null,"\u4FDD\u5B58\u4EE3\u7801"),he.createElement("span",null,"Ctrl + S")),he.createElement("div",{className:"file-item"},he.createElement("b",null,"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"),he.createElement("span",null,"F1 / Alt + F1")),he.createElement("div",{className:"file-item"},he.createElement("b",null,"\u5DE6\u53F3\u7F29\u8FDB"),he.createElement("span",null,"Ctrl + ]/[")),he.createElement("div",{className:"file-item"},he.createElement("b",null,"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"),he.createElement("span",null,"Ctrl + Shift + \\")),he.createElement("div",{className:"file-item"},he.createElement("b",null,"\u8F6C\u5230\u884C\u9996"),he.createElement("span",null,"Home")),he.createElement("div",{className:"file-item"},he.createElement("b",null,"\u8F6C\u5230\u884C\u5C3E"),he.createElement("span",null,"End"))),x),!xe&&he.createElement(he.Fragment,null,he.createElement("h3",null,"\u5FEB\u6377\u952E"),he.createElement("section",null,fe&&he.createElement("div",{className:"file-item"},he.createElement("b",null,"\u7F16\u7A0B\u8BED\u8A00"),he.createElement("span",null,fe)),he.createElement("div",{className:"file-item"},he.createElement("b",null,"\u5B9E\u8BAD\u96BE\u6613\u5EA6"),he.createElement("span",null,ye[ee==null?void 0:ee.difficulty])),he.createElement("div",{className:"file-item"},he.createElement("b",null,"\u5B9E\u9A8C\u73AF\u5883"),he.createElement("span",null,b==null?void 0:b.name)),he.createElement("div",{className:"file-item"},he.createElement("b",null,"\u5B9E\u9A8C\u5BB9\u5668\u7F51\u7EDC"),he.createElement("span",null,b!=null&&b.close_internet?"\u5173\u95ED\u5916\u7F51":"\u5F00\u542F\u5916\u7F51")))))}},5476:function(Ft,rt,z){"use strict";z.d(rt,{Z:function(){return ze}});var a={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf"},Ce=z(74330),ke=z(83062),he=z(94184),Fe=z.n(he),xe=z(28706),pe=z(26194),Se=z(52262),Ae=z(67294),ze=({className:Me,dataSource:me=[],col:oe=4,right:E,bottom:y=23,precision:x=0,wrapWidth:b=1200,trackEventItems:ee,loading:te,onRemove:ne=()=>{},isCurrent:de=!0,showAlias:ye=!1})=>{const fe=Math.floor((b-(oe-1)*E)/oe),ve=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return Ae.createElement(Ce.Z,{spinning:te},Ae.createElement("div",{className:Fe()(a.list,Me)},!!(me!=null&&me.length)&&(me==null?void 0:me.map((Ne,Le)=>{var Re;const{name:He,id:We,identifier:Ge,featured:Ue,school_name:Ye,image_url:it,excellent:lt,is_plan:Bt}=Ne;return Ae.createElement("div",{key:We,className:a.wrap,style:{width:fe,marginRight:(1+Le)%oe===0?0:E+x,marginBottom:y}},Ae.createElement("a",{className:a.li,onClick:ct=>{ct.preventDefault(),ct.stopPropagation(),ee&&(0,xe.L9)([ee]),(0,xe.xg)(`/paths/${Ge}`)}},Ae.createElement("div",{className:a.img},Ae.createElement("img",{className:a.cover,src:`${it}`}),de&&(0,Se.bg)()&&(Ne==null?void 0:Ne.studying)&&Ae.createElement("div",{className:`${a.movebq} user-path-items`,onClick:ct=>{ct.stopPropagation(),ne(Ne)}},Ae.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Ae.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Re=Ne==null?void 0:Ne.subject_tags)==null?void 0:Re.map((ct,nt)=>{var Ze,yt;if(nt===0){const Je=(Ze=ve.find(ot=>ot.name==ct))==null?void 0:Ze.swimg;return Ae.createElement("img",{className:a.sign,src:Je,style:{left:"-4px"}})}const ht=(yt=ve.find(Je=>Je.name==ct))==null?void 0:yt.ptimg;return Ae.createElement("img",{className:a.sign,src:ht,style:{left:`${48+52*(nt-1)+2*nt}px`}})}),Ae.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Ne==null?void 0:Ne.excellent)&&Ae.createElement("div",{className:a.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Ae.createElement("div",{className:a.name},Ae.createElement(ke.Z,{title:ye&&(Ne!=null&&Ne.excellent_alias_name)?Ae.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${He}`,Ae.createElement("br",null),Ae.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Ne==null?void 0:Ne.excellent_alias_name}`)):He},Ae.createElement("span",{className:a.e},ye&&(Ne==null?void 0:Ne.excellent_alias_name)||He))),Ae.createElement(ke.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Ye}`},Ae.createElement("div",{className:a.unit},Ae.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Ye)),Ae.createElement("div",{className:a.tags},Ae.createElement("div",null,Ae.createElement(ke.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Ae.createElement("span",null,Ae.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Ae.createElement("span",null,Ne.stages_count))),Ae.createElement(ke.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Ae.createElement("span",null,Ae.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Ae.createElement("span",null,Ne.members_count)))))))})),!me.length&&Ae.createElement(pe.Z,null)))}},30001:function(Ft,rt,z){"use strict";z.d(rt,{jL:function(){return Fe},w9:function(){return Ze},QD:function(){return nr},cQ:function(){return it.Z},op:function(){return Ke},O5:function(){return _n},_b:function(){return vl},t7:function(){return b},Gi:function(){return kt},YG:function(){return ot},qp:function(){return ze},vr:function(){return Aa},qE:function(){return Ca},Je:function(){return ne},wb:function(){return Ye},cq:function(){return Rn},tp:function(){return oe}});var a=z(67294),Ce={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},ke="data:image/png;base64,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",Fe=({dataSource:Gn=[],img:ua,imgWidth:oa=346,title:Ta,sunTitle:hu,bannerExtraContent:ft})=>a.createElement("div",{className:Ce.banner},a.createElement("div",{className:Ce.content},a.createElement("aside",null,a.createElement("p",null,a.createElement("b",null,Ta),a.createElement("span",null,hu)),Gn.length>0&&a.createElement("div",{className:Ce.btns},Gn.map((re,ge)=>a.createElement("div",{key:ge,onClick:re.click},re.name,re.sign?a.createElement("img",{src:ke,width:39}):null))),ft),ua&&a.createElement("img",{style:{marginTop:33,marginRight:38},src:ua,width:oa}))),xe={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},pe=z(94184),Se=z.n(pe),Ae=z(96486),ze=({dataSource:Gn=[],value:ua,onChange:oa,onTitleChange:Ta,className:hu,title:ft,titleWidth:re=41,style:ge={},fontColor:De="#6A7283",showCount:Xe})=>{const[tt,Ot]=(0,a.useState)(0),[Lt,Wn]=(0,a.useState)(!1),ra=(0,a.useRef)(null),xa=(0,a.useRef)(null);return(0,a.useEffect)(()=>{var Kn;Gn.length!==0&&(((Kn=ra==null?void 0:ra.current)==null?void 0:Kn.clientHeight)>97?Ot(1):Ot(0)),Gn.length===0&&Ot(0),Wn(!1)},[Gn]),a.createElement("div",{className:Se()(xe.row,hu),style:ge},a.createElement("div",{onClick:(0,Ae.throttle)(()=>Ta==null?void 0:Ta(),2e3),style:{width:re,marginTop:Lt?12:4},className:`${xe.title} ${Ta?"current":""}`},ft),a.createElement("div",{className:Lt?`${xe.tagsWrap} ${xe.tagsBorderWrap}`:xe.tagsWrap},a.createElement("div",{className:xe.bar,ref:xa,style:tt>0?{height:tt===1?97:"auto",overflow:tt===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},a.createElement("div",{className:xe.tag,ref:ra},Gn==null?void 0:Gn.map(Kn=>a.createElement("span",{onClick:()=>oa(Kn.id),key:Kn.id,style:{color:De},className:ua===Kn.id?xe.active:""},a.createElement("span",{title:Kn.name,className:xe.name},Kn.name),!!Xe&&a.createElement("span",{className:xe.num},Kn.count))))),!!tt&&a.createElement(a.Fragment,null,tt===1?a.createElement("div",{onClick:()=>{var Kn;Ot(2),((Kn=ra==null?void 0:ra.current)==null?void 0:Kn.clientHeight)>245?Wn(!0):Wn(!1)},className:xe.action},"\u5C55\u5F00",a.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):a.createElement("div",{onClick:()=>{xa.current.scrollTop=0,Ot(1),Wn(!1)},className:xe.action},"\u6536\u8D77",a.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Me={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},oe=({dataSource:Gn=[],value:ua,onChange:oa,className:Ta,style:hu={}})=>a.createElement("div",{style:hu,className:Se()(Me.tabs,Ta)},Gn.map(ft=>a.createElement("span",{onClick:()=>oa(ft.id),className:ua===ft.id?Me.active:"",key:ft.id},ft.name))),E={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},y=z(28802),b=({dataSource:Gn=[],value:ua="",onChange:oa,onInputChange:Ta=()=>{},className:hu,style:ft={},placeholder:re,allowClear:ge=!1})=>{var De;const[Xe,tt]=(0,a.useState)(""),[Ot,Lt]=(0,a.useState)("");(0,a.useEffect)(()=>{var xa;let Kn=ua;(xa=JSON.stringify(ua))!=null&&xa.includes("{")&&(tt(ua.id),Kn=ua.value||"");try{Lt(decodeURIComponent(Kn||""))}catch(Du){Lt(decodeURIComponent(Kn||""))}},[ua]);const Wn=()=>{oa(encodeURIComponent(Ot),Xe||null)},ra=xa=>{xa!==Xe&&(tt(xa),oa(encodeURIComponent(Ot),xa))};return a.createElement("div",{className:Se()(E.input,hu),style:ft},!!Gn.length&&a.createElement("div",{className:E.dropdown},a.createElement("div",{className:E.text},(De=Gn.find(xa=>xa.id===Xe))==null?void 0:De.name,a.createElement("i",{className:"iconfont icon-zhankai4"}),a.createElement("b",{className:E.b1}),a.createElement("b",{className:E.b2})),a.createElement("div",{className:E.menu},Gn.map((xa,Kn)=>a.createElement("div",{key:Kn,onClick:()=>ra(xa.id)},xa.name)))),a.createElement(y.default,{onPressEnter:Wn,value:Ot,onChange:xa=>{Lt(xa.target.value),Ta(encodeURIComponent(xa.target.value),Xe||null)},bordered:!1,placeholder:re}),a.createElement("i",{onClick:Wn,className:"iconfont icon-sousuo9 font14 pl10 current"}))},ee={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},ne=({value:Gn,onChange:ua,className:oa,total:Ta,pageSize:hu,style:ft={}})=>{const re=Gn<2,ge=Gn>=Math.ceil(Ta/hu);return Ta<=hu?a.createElement(a.Fragment,null):a.createElement("div",{className:Se()(ee.quickPager,oa),style:ft},a.createElement("div",{onClick:()=>{re||ua(Gn-1,"prev")},className:re?ee.disabled:""},"\u4E0A\u4E00\u9875"),a.createElement("div",{onClick:()=>{ge||ua(Gn+1,"next")},className:ge?ee.disabled:""},"\u4E0B\u4E00\u9875"))},de={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},ye=z(74330),fe=z(83062),ve=z(57097),Ne=z(11320),Le=z(28706),Re=z(96908),He=z(57177),We=z(81378),Ge=z(26194),Ye=({className:Gn,dataSource:ua=[],col:oa=4,right:Ta,bottom:hu=23,precision:ft=0,wrapWidth:re=1200,trackEventItems:ge,loading:De})=>{const Xe=Math.floor((re-(oa-1)*Ta)/oa);return a.createElement(ye.Z,{spinning:De},a.createElement("div",{className:Se()(de.list,Gn)},!!ua.length&&ua.map((tt,Ot)=>{const{name:Lt,id:Wn,identifier:ra,power:xa,cover_image_id:Kn,pic:Du}=tt;return a.createElement("div",{className:de.wrap,key:Wn,style:{width:Xe,marginRight:(1+Ot)%oa===0?0:Ta+ft,marginBottom:hu}},a.createElement("a",{target:"_blank",href:`/shixuns/${ra}/challenges`,className:de.li,onClick:la=>{la.preventDefault(),ge&&(0,Le.L9)([ge]),xa&&(0,Le.xg)(`/shixuns/${ra}/challenges`)}},a.createElement("div",{className:de.img},a.createElement("img",{className:de.cover,src:`${Du}`}),tt.is_jupyter&&a.createElement("img",{className:de.sign,src:Re}),tt.is_jupyter_lab&&a.createElement("img",{className:de.sign,src:He}),tt.is_unity_3d&&a.createElement("img",{className:de.sign,src:We})),a.createElement("div",{className:de.name},a.createElement(fe.Z,{title:Lt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},a.createElement("span",{className:de.e},Lt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),a.createElement("div",{className:de.tags},a.createElement(fe.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},a.createElement("span",null,a.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),a.createElement("span",null,tt.challenges_count))),!!tt.myshixuns_count&&a.createElement(fe.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},a.createElement("span",null,a.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),a.createElement("span",null,tt.myshixuns_count))),a.createElement(fe.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},a.createElement("span",null,a.createElement("span",null,tt.level))),a.createElement("div",{className:de.rate},a.createElement(ve.Z,{allowHalf:!0,disabled:!0,defaultValue:tt.score_info}),a.createElement("span",null,"\xA0",tt.score_info?`${tt.score_info}\u5206`:"5\u5206")))),!xa&&a.createElement("div",{className:de.lockWrap},a.createElement("img",{src:`${Ne.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),a.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!ua.length&&a.createElement(Ge.Z,null)))},it=z(5476),lt={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},Bt="data:image/png;base64,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",ct=z(67294),Ze=({className:Gn,dataSource:ua=[],col:oa=4,right:Ta,bottom:hu=23,precision:ft=0,wrapWidth:re=1200,trackEventItems:ge,loading:De,handleVery:Xe=()=>!0})=>{const tt=Math.floor((re-(oa-1)*Ta)/oa);return ct.createElement(ye.Z,{spinning:De},ct.createElement("div",{className:Se()(lt.list,Gn)},!!ua.length&&ua.map((Ot,Lt)=>{const{subject_identifier:Wn,id:ra,identifier:xa,power:Kn}=Ot,Du=Ot.is_public!=0&&Ot.is_public;return ct.createElement("div",{className:lt.wrap,key:ra,style:{width:tt,marginRight:(1+Lt)%oa===0?0:Ta+ft,marginBottom:hu}},ct.createElement("a",{className:lt.li,onClick:la=>{la.preventDefault(),Xe(Ot==null?void 0:Ot.first_category_url)&&(ge&&(0,Le.L9)([ge]),(0,Le.xg)(Ot.first_category_url))}},ct.createElement("div",{className:lt.top},ct.createElement(fe.Z,{title:Ot.name},ct.createElement("div",{className:lt.name},Ot.name)),ct.createElement("img",{className:lt.img,src:Ne.Z.IMG_SERVER+"/images/"+Ot.avatar_url}),ct.createElement("div",{className:lt.text,title:Ot.creator},Ot.creator),Wn&&ct.createElement("div",{className:lt.btns},ct.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),ct.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Du&&ct.createElement("div",{className:lt.sign},"\u516C\u5F00")),ct.createElement("div",{className:lt.bottom},Ot.visits>0&&ct.createElement(fe.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},ct.createElement("span",null,ct.createElement("i",{className:"iconfont icon-liulanyan"}),ct.createElement("span",null,Ot.visits))),Ot.course_members_count>0&&ct.createElement(fe.Z,{title:"\u6210\u5458",placement:"bottom"},ct.createElement("span",null,ct.createElement("i",{className:"iconfont icon-chengyuan"}),Ot.course_members_count)),Ot.tasks_count>0&&ct.createElement(fe.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},ct.createElement("span",null,ct.createElement("i",{className:"iconfont icon-zuoye"}),Ot.tasks_count)),Ot.is_end?ct.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):ct.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Ot.is_accessible&&ct.createElement("div",{className:lt.lockWrap},ct.createElement("img",{src:`${Ne.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ct.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!ua.length&&ct.createElement(Ge.Z,null)))},yt={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},ht=z(35973),ot=({dataSource:Gn=[],value:ua,onChange:oa,className:Ta,style:hu={},tabBarExtraContent:ft})=>a.createElement("div",{className:Se()(yt.tabs,Ta),style:hu},a.createElement("div",{className:yt.tabsWrap},Gn.map((re,ge)=>!(re!=null&&re.hide)&&a.createElement("aside",{className:yt.tab,onClick:()=>{oa(re.id),re.link&&ht.history.push(re.link)},key:ge},a.createElement("div",{className:ua===re.id?yt.active:""},re.name),(re==null?void 0:re.resetCount)==null&&(re==null?void 0:re.total)!==void 0&&a.createElement("span",null,"\uFF08",re==null?void 0:re.total,"\uFF09"),(re==null?void 0:re.resetCount)!==void 0&&(re==null?void 0:re.total)!==void 0&&a.createElement(fe.Z,{title:(re==null?void 0:re.tip)!=null?re==null?void 0:re.tip:""},a.createElement("span",{style:{color:"#9096A3"}},"\uFF08",a.createElement("span",{style:{color:"#000"}},re==null?void 0:re.resetCount),"/",a.createElement("span",null,re==null?void 0:re.total),"\uFF09"))))),a.createElement("div",{className:yt.tabBar},ft)),kt=({className:Gn,style:ua={},children:oa})=>a.createElement("div",{className:Se()(Gn),style:ua},oa),Mt={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},st=z(85418),ut=z(50136);const un=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Rn=({sortValue:Gn,dropValue:ua,className:oa,onSort:Ta,onDrop:hu,dataSource:ft=un})=>{var re;return a.createElement("div",{className:Se()(Mt.orderWrap,oa)},a.createElement(st.Z,{dropdownRender:()=>a.createElement(ut.default,null,ft.map((ge,De)=>a.createElement(ut.default.Item,{key:De,onClick:()=>hu(ge.id)},ge.name)))},a.createElement("span",{className:Mt.orderTextWrap},(re=ft.find(ge=>ua===ge.id))==null?void 0:re.name)),a.createElement("span",{className:Mt.orderIconWrap},a.createElement("span",{className:Mt.orderAsc},a.createElement("i",{className:Gn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Mt.cursorPointer} ${Mt.active}`:`iconfont icon-sanjiaoxing-up font12 ${Mt.cursorPointer}`,onClick:()=>Ta(Gn==="asc"?"desc":"asc")})),a.createElement("span",{className:Mt.orderDesc},a.createElement("i",{className:Gn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Mt.cursorPointer} ${Mt.active}`:`iconfont icon-sanjiaoxing-down font12 ${Mt.cursorPointer}`,onClick:()=>Ta(Gn==="asc"?"desc":"asc")}))))},bt={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},An=z(85804),Nn=Object.defineProperty,Qt=Object.getOwnPropertySymbols,zt=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,sn=(Gn,ua,oa)=>ua in Gn?Nn(Gn,ua,{enumerable:!0,configurable:!0,writable:!0,value:oa}):Gn[ua]=oa,vt=(Gn,ua)=>{for(var oa in ua||(ua={}))zt.call(ua,oa)&&sn(Gn,oa,ua[oa]);if(Qt)for(var oa of Qt(ua))jt.call(ua,oa)&&sn(Gn,oa,ua[oa]);return Gn},Tt=(Gn,ua)=>{var oa={};for(var Ta in Gn)zt.call(Gn,Ta)&&ua.indexOf(Ta)<0&&(oa[Ta]=Gn[Ta]);if(Gn!=null&&Qt)for(var Ta of Qt(Gn))ua.indexOf(Ta)<0&&jt.call(Gn,Ta)&&(oa[Ta]=Gn[Ta]);return oa},qt=(Gn,ua,oa)=>new Promise((Ta,hu)=>{var ft=De=>{try{ge(oa.next(De))}catch(Xe){hu(Xe)}},re=De=>{try{ge(oa.throw(De))}catch(Xe){hu(Xe)}},ge=De=>De.done?Ta(De.value):Promise.resolve(De.value).then(ft,re);ge((oa=oa.apply(Gn,ua)).next())}),Ke=Gn=>{var ua=Gn,{className:oa,style:Ta,children:hu,loading:ft=!1,openLoading:re,onClick:ge=()=>{},size:De="middle",shape:Xe="round"}=ua,tt=Tt(ua,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Ot,Lt]=(0,a.useState)(!1);return a.createElement(An.ZP,vt({onClick:(0,Ae.throttle)(Wn=>qt(void 0,null,function*(){re&&Lt(!0);try{yield ge(Wn)}catch(ra){console.log("error",ra)}re&&Lt(!1)}),2e3,{leading:!0,trailing:!1}),className:Se()(bt.btn,bt[`${De}-${Xe}`],oa),style:Ta,size:De,shape:Xe,loading:Ot||ft},tt),hu)},ln={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},Ca=({className:Gn,style:ua,children:oa=null,onClick:Ta,title:hu})=>a.createElement("div",{className:Se()(ln.head,Gn),style:ua},a.createElement("span",{className:"primary-hover",onClick:Ta},a.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),a.createElement("b",{title:hu},hu),a.createElement("div",{className:ln.node},oa)),Cu={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},nr=({confirmShow:Gn=!0,confirmTitle:ua,confirmClick:oa,cancelShow:Ta=!0,cancelTitle:hu,cancelClick:ft,className:re,style:ge,confirmLoading:De=!1})=>a.createElement("div",{className:Se()(Cu.btns,re),style:ge},Gn&&a.createElement(An.ZP,{loading:De,onClick:oa,type:"primary",className:Cu.confirm},ua),Ta&&a.createElement(An.ZP,{onClick:ft,className:Cu.cancel},hu)),cu={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},Aa=({className:Gn,style:ua={},LeftContent:oa,children:Ta,RightContent:hu})=>a.createElement("div",{className:Se()(cu.fixedBottom,Gn),style:ua},a.createElement("div",{className:cu.wrap},a.createElement("div",{className:cu.left},oa),a.createElement("div",{className:cu.center},Ta),a.createElement("div",{className:cu.right},hu))),Zt={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},vl=({className:Gn,style:ua={},dataSource:oa=[]})=>a.createElement("div",{className:Se()(Zt.crumbs,Gn),style:ua},oa.map((Ta,hu)=>huht.history.push(Ta.path)},Ta.name):a.createElement("span",null,Ta.name),a.createElement("span",null,"\xA0",">","\xA0")):a.createElement("span",{key:hu,style:{color:"#5F6368"}},Ta.name))),Er=z(55054),er=Object.defineProperty,Pa=Object.defineProperties,Za=Object.getOwnPropertyDescriptors,qn=Object.getOwnPropertySymbols,Vn=Object.prototype.hasOwnProperty,Qa=Object.prototype.propertyIsEnumerable,gu=(Gn,ua,oa)=>ua in Gn?er(Gn,ua,{enumerable:!0,configurable:!0,writable:!0,value:oa}):Gn[ua]=oa,_u=(Gn,ua)=>{for(var oa in ua||(ua={}))Vn.call(ua,oa)&&gu(Gn,oa,ua[oa]);if(qn)for(var oa of qn(ua))Qa.call(ua,oa)&&gu(Gn,oa,ua[oa]);return Gn},ir=(Gn,ua)=>Pa(Gn,Za(ua)),ul=(Gn,ua)=>{var oa={};for(var Ta in Gn)Vn.call(Gn,Ta)&&ua.indexOf(Ta)<0&&(oa[Ta]=Gn[Ta]);if(Gn!=null&&qn)for(var Ta of qn(Gn))ua.indexOf(Ta)<0&&Qa.call(Gn,Ta)&&(oa[Ta]=Gn[Ta]);return oa};const{Countdown:On}=Er.default;var _n=Gn=>{var ua=Gn,{onChange:oa}=ua,Ta=ul(ua,["onChange"]);const[hu,ft]=(0,a.useState)(null);(0,a.useEffect)(()=>{typeof hu=="number"&&hu>=0&&oa(hu)},[hu]);const re=ge=>{const De=Math.floor(ge/1e3);ft(De)};return a.createElement(On,ir(_u({},Ta),{onChange:re}))}},99914:function(Ft,rt,z){"use strict";z.d(rt,{Z:function(){return Ce}});var a=z(67294);function Ce(ke,he){const Fe=(0,a.useRef)();(0,a.useEffect)(()=>{Fe.current=ke}),(0,a.useEffect)(()=>{function xe(){Fe.current()}if(he!==null){let pe=setInterval(xe,he);return()=>clearInterval(pe)}},[he])}},3921:function(Ft,rt,z){"use strict";z.d(rt,{Z:function(){return He}});var a=z(91773),Ce=z(2453),ke=z(62844),he=z(74330),Fe=z(83062),xe=z(98813),pe=z(28802),Se=z(57399),Ae=z(67294),Ie=z(35973),ze=z(33170),Me=z(28706),me={flex_box_center:"flex_box_center___FjW3J",flex_space_between:"flex_space_between___VMPG3",flex_box_vertical_center:"flex_box_vertical_center___f4bAX",flex_box_center_end:"flex_box_center_end___r_BiQ",flex_box_column:"flex_box_column___KmCaa",contentWrap:"contentWrap___JMzNd",leftWrap:"leftWrap___rYjEI",tip:"tip___Iu2px",title_con:"title_con___WF9OL",question_title:"question_title___XPCJJ",activeItem:"activeItem___yC4ry",rightWrap:"rightWrap___ut8PK",radio_con:"radio_con___cvwXd",result_con:"result_con___m5Gmr",result_title:"result_title___D7L1n",titleTooltip:"titleTooltip___eBrPv"},oe=z(52262),E=z(35567),y=z(65226),x=z(67294),b=Object.defineProperty,ee=Object.defineProperties,te=Object.getOwnPropertyDescriptors,ne=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,fe=(We,Ge,Ue)=>Ge in We?b(We,Ge,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):We[Ge]=Ue,ve=(We,Ge)=>{for(var Ue in Ge||(Ge={}))de.call(Ge,Ue)&&fe(We,Ue,Ge[Ue]);if(ne)for(var Ue of ne(Ge))ye.call(Ge,Ue)&&fe(We,Ue,Ge[Ue]);return We},Ne=(We,Ge)=>ee(We,te(Ge)),Le=(We,Ge,Ue)=>new Promise((Ye,it)=>{var lt=nt=>{try{ct(Ue.next(nt))}catch(Ze){it(Ze)}},Bt=nt=>{try{ct(Ue.throw(nt))}catch(Ze){it(Ze)}},ct=nt=>nt.done?Ye(nt.value):Promise.resolve(nt.value).then(lt,Bt);ct((Ue=Ue.apply(We,Ge)).next())});const Re=({shixunHomeworks:We,exercise:Ge,loading:Ue,dispatch:Ye})=>{var it,lt,Bt,ct,nt,Ze;const{commonHeader:yt}=Ge,[ht,Je]=(0,Ae.useState)([]),[ot,Ct]=(0,Ae.useState)(Ne(ve({},(0,Ie.useParams)()),{page:1,limit:10})),[kt,Mt]=(0,Ae.useState)([]),[st,ut]=(0,Ae.useState)(""),[un,Pn]=(0,Ae.useState)(1),[Rn]=a.default.useForm(),[bt,An]=(0,Ae.useState)({}),[Nn,Qt]=(0,Ae.useState)(null),[zt,jt]=(0,Ae.useState)(!1),[sn,vt]=(0,Ae.useState)({combine:[],simple:[]}),[Tt,qt]=(0,Ae.useState)(null),[St,Ke]=(0,Ae.useState)({}),[ln,Un]=(0,Ae.useState)(0),[Ca,Cu]=(0,Ae.useState)(0),[Da,nr]=(0,Ae.useState)(!1),cu=[{title:"\u5E8F\u53F7",dataIndex:"1",width:80,render:(Za,qn,Vn)=>(ot.page-1)*ot.limit+Vn+1},{title:"\u59D3\u540D",dataIndex:"user_name",ellipsis:!0,width:180},{title:"\u5B66\u53F7",dataIndex:"student_id",align:"left",sorter:!0,render:Za=>Za||"--"},{title:"\u5206\u73ED",dataIndex:"user_group_name",align:"left",render:(Za,qn)=>x.createElement("div",{className:me.banding,title:Za||"--"},Za||"--")},{title:"\u63D0\u4EA4\u72B6\u6001",width:200,dataIndex:"commit_status",render:(Za,qn)=>Za===0?x.createElement("span",{style:{color:"#666666"}},"\u672A\u5F00\u59CB"):Za===1?x.createElement("span",{style:{color:"#DF3042"}},!qn.is_make_up&&"\u8003\u8BD5\u4E2D",qn.is_make_up&&"\u8003\u8BD5\u4E2D (\u8865\u8003)"):Za===2?x.createElement("span",{style:{color:"#5AB891"}},!qn.is_make_up&&!qn.is_force_commit&&"\u5DF2\u4EA4\u5377",qn.is_make_up&&!qn.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003)",qn.is_make_up&&qn.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003/\u5F3A\u5236)",!qn.is_make_up&&qn.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u5F3A\u5236)"):x.createElement("span",{style:{color:"#5AB891"}},!qn.is_make_up&&!qn.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54",qn.is_make_up&&!qn.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003)",qn.is_make_up&&qn.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003/\u5F3A\u5236)",!qn.is_make_up&&qn.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u5F3A\u5236)")},{title:(yt==null?void 0:yt.exercise_type)==2&&!(0,oe.dE)()?"\u6700\u9AD8\u6210\u7EE9":"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",sorter:!0,render:(Za,qn)=>qn.commit_status===0||qn.commit_status===1?"--":!qn.open_total_score&&(0,oe.dE)()?"\u8001\u5E08\u5BA1\u6838\u4E2D":(Za=typeof Za=="number"?Number(Za):Za,console.log(typeof Za),Za||(Za=0),Za===100?x.createElement("span",{className:"c-green"},Za):Za>60?x.createElement("span",{className:"c-orange"},Za):Za==Ca*.6?x.createElement("span",{className:"c-red"},Za):x.createElement("span",null,Za))}].filter(Za=>!!Za);(0,Ae.useEffect)(()=>{var Za,qn,Vn;((Za=Ge.actionTabs)==null?void 0:Za.key)=="\u6D4B\u8BD5AI\u8BC4\u5206"&&(vt([]),qt(((qn=Ge==null?void 0:Ge.actionTabs)==null?void 0:qn.questionId)||null),Ke(((Vn=Ge==null?void 0:Ge.actionTabs)==null?void 0:Vn.questionDetail)||{}),or(),Zt(ot))},[(it=Ge.actionTabs)==null?void 0:it.key]);const or=()=>Le(void 0,null,function*(){var Za,qn,Vn,Qa,gu,_u,ir,ul,On;const Jt=yield(0,ze.ZP)(`/api/exercises/${ot==null?void 0:ot.categoryId}.json`,{method:"get"});if(Jt.status==0){const _n=(qn=(Za=Jt==null?void 0:Jt.exercise_question_types)==null?void 0:Za.find(hu=>(hu==null?void 0:hu.question_type)==7))==null?void 0:qn.items,Gn=(Qa=(Vn=Jt==null?void 0:Jt.exercise_question_types)==null?void 0:Vn.find(hu=>(hu==null?void 0:hu.question_type)==4))==null?void 0:Qa.items;let ua=[],oa=0,Ta={};ua=(gu=_n==null?void 0:_n.map((hu,ft)=>{var re,ge;return(ge=(re=hu==null?void 0:hu.sub_exercise_questions)==null?void 0:re.map((De,Xe)=>(De==null?void 0:De.question_type)==4?Ne(ve({},De),{index:ft+1,jdex:Xe+1,parentTitle:hu==null?void 0:hu.question_title,isCombine:!0}):null))==null?void 0:ge.filter(De=>De)}))==null?void 0:gu.flat(),vt({combine:ua,simple:Gn}),(Gn==null?void 0:Gn.length)>0?(oa=(_u=Gn==null?void 0:Gn[0])==null?void 0:_u.question_id,Ta=(Gn==null?void 0:Gn[0])||{}):(ua==null?void 0:ua.length)>0&&(oa=(ir=ua==null?void 0:ua[0])==null?void 0:ir.question_id,Ta=(ua==null?void 0:ua[0])||{}),qt(((ul=Ge==null?void 0:Ge.actionTabs)==null?void 0:ul.questionId)||oa),Ke(((On=Ge==null?void 0:Ge.actionTabs)==null?void 0:On.questionDetail)||Ta)}}),Aa=(Za,qn)=>{ot.page=Za,ot.limit=qn,Ct(ve({},ot)),Zt(ot)},Zt=Za=>Le(void 0,null,function*(){nr(!0);const qn=yield(0,ze.ZP)(`/api/exercises/${ot.categoryId||(ot==null?void 0:ot.exerciseId)}/exercise_users.json`,{method:"get",params:Za});qn.status==0&&(Un(qn.data.total_count),Ct(Ne(ve({},ot),{total:qn.data.total_count})),Je(qn.data.exercise_users),Cu(qn.data.total_score)),nr(!1)}),xn=Za=>{ot.search=Za,ot.page=1,Rn.resetFields(),An({}),Mt([]),Qt(null),Ct(ve({},ot)),Zt(ot)},vl=Za=>Le(void 0,null,function*(){var qn,Vn;const Qa=ve({},bt);if(!((qn=Za==null?void 0:Za.content)!=null&&qn.trim())){Ce.ZP.warning("\u8BF7\u8F93\u5165\u7B54\u9898\u5185\u5BB9\uFF01");return}Qa.content=Za==null?void 0:Za.content,Qa.attachment_ids=(Vn=Za==null?void 0:Za.attachment_ids)==null?void 0:Vn.map(gu=>gu.response.id),Er(Qa)}),Er=Za=>Le(void 0,null,function*(){jt(!0);const qn=yield(0,ze.ZP)(`/api/exercises/${(ot==null?void 0:ot.categoryId)||(ot==null?void 0:ot.exerciseId)}/test_ai_review.json`,{method:"post",body:Ne(ve({},Za),{exercise_question_id:Tt,ai_review_settings:St==null?void 0:St.ai_review_settings})});if([0,-3].includes(qn.status)){qn.status==0&&Ce.ZP.success("\u8BC4\u5206\u6D4B\u8BD5\u6210\u529F\uFF01"),Qt(qn);const Vn=document.querySelector(".modal-ai-pfcs");if(Vn){const Qa=Vn.querySelector(".ant-modal-body");Qa&&(Qa.scrollTop=Qa.scrollHeight)}}jt(!1)}),er=()=>{Ye({type:"exercise/setActionTabs",payload:{key:""}}),Pn(1),Pa()},Pa=()=>{Rn.resetFields(),An({}),Mt([]),ut(""),Qt(null)};return x.createElement(ke.default,{className:"modal-ai-pfcs",width:1200,bodyStyle:{maxHeight:"calc(100vh - 200px)",overflowY:"auto"},centered:!0,title:"\u6D4B\u8BD5AI\u8BC4\u5206",confirmLoading:zt,open:((lt=Ge.actionTabs)==null?void 0:lt.key)==="\u6D4B\u8BD5AI\u8BC4\u5206",destroyOnClose:!0,onCancel:()=>er(),okText:Nn?"\u91CD\u65B0\u6D4B\u8BD5":"\u5F00\u59CB\u6D4B\u8BD5",onOk:()=>{var Za;if((Za=Ge.actionTabs)!=null&&Za.showSelectQuestion&&!Tt)return Ce.ZP.warning("\u8BF7\u9009\u62E9\u9898\u76EE\uFF01");if(un==1){if(kt.length==0)return Ce.ZP.warning("\u8BF7\u9009\u62E9\u4E00\u4F4D\u5B66\u751F\u8BD5\u5377\u8FDB\u884C\u8BC4\u5206\u6D4B\u8BD5\uFF01");Er({exercise_user_id:kt[0]})}else un==2&&Rn.submit()}},x.createElement(he.Z,{spinning:zt,tip:"\u6D4B\u8BD5AI\u8BC4\u5206\u4E2D\u2026\u2026"},x.createElement("div",{className:me.contentWrap},x.createElement("div",{className:me.leftWrap},x.createElement("div",{className:me.tip},x.createElement("i",{className:"iconfont icon-tishi11 font14",style:{color:"#3061D0",transform:"rotate(180deg)",marginTop:"5px"}}),x.createElement("span",{style:{marginLeft:"5px"}},"\u667A\u80FD\u8BC4\u9605\u76EE\u524D\u4EC5\u652F\u6301\u7B80\u7B54\u9898\uFF08\u542B\u7EC4\u5408\u9898\u4E2D\u7684\u7B80\u7B54\u9898\uFF09\u3002")),x.createElement("div",{style:{maxHeight:"500px",overflowY:"auto",margin:"10px 0px"}},((Bt=sn==null?void 0:sn.simple)==null?void 0:Bt.length)>0&&x.createElement(x.Fragment,null,x.createElement("div",{className:me.title_con},"\u3010\u7B80\u7B54\u9898\u3011"),x.createElement("div",null,(ct=sn==null?void 0:sn.simple)==null?void 0:ct.map((Za,qn)=>x.createElement("div",{key:Za==null?void 0:Za.question_id},x.createElement(Fe.Z,{title:x.createElement(y.Z,{value:Za==null?void 0:Za.question_title}),color:"#fff",placement:"left",overlayClassName:me.titleTooltip},x.createElement("span",{className:`${me.question_title} ${Tt==(Za==null?void 0:Za.question_id)?me.activeItem:""}`,onClick:()=>{var Vn,Qa,gu;qt(Za==null?void 0:Za.question_id),Ke(Ne(ve({},Za||{}),{ai_review_settings:(Vn=Ge==null?void 0:Ge.actionTabs)!=null&&Vn.isUnify?(gu=(Qa=Ge==null?void 0:Ge.actionTabs)==null?void 0:Qa.questionDetail)==null?void 0:gu.ai_review_settings:Za==null?void 0:Za.ai_review_settings}))}},x.createElement(y.Z,{value:qn+1+"\u3001"+(Za==null?void 0:Za.question_title),showTextOnly:!0}))))))),((nt=sn==null?void 0:sn.combine)==null?void 0:nt.length)>0&&x.createElement(x.Fragment,null,x.createElement("div",{className:me.title_con},"\u3010\u7EC4\u5408\u9898\u3011"),x.createElement("div",null,(Ze=sn==null?void 0:sn.combine)==null?void 0:Ze.map((Za,qn)=>x.createElement("div",{key:Za==null?void 0:Za.question_id,onClick:()=>{var Vn,Qa,gu;qt(Za==null?void 0:Za.question_id),Ke(Ne(ve({},Za||{}),{ai_review_settings:(Vn=Ge==null?void 0:Ge.actionTabs)!=null&&Vn.isUnify?(gu=(Qa=Ge==null?void 0:Ge.actionTabs)==null?void 0:Qa.questionDetail)==null?void 0:gu.ai_review_settings:Za==null?void 0:Za.ai_review_settings}))}},x.createElement(Fe.Z,{title:x.createElement(y.Z,{value:Za==null?void 0:Za.question_title}),color:"#fff",placement:"left",overlayClassName:me.titleTooltip},x.createElement("span",{className:`${me.question_title} ${Tt==(Za==null?void 0:Za.question_id)?me.activeItem:""}`},x.createElement(y.Z,{value:(Za==null?void 0:Za.index)+"."+(Za==null?void 0:Za.jdex)+"\u3001"+(Za==null?void 0:Za.question_title),showTextOnly:!0}))))))))),x.createElement("div",{className:me.rightWrap},x.createElement("div",{className:me.radio_con},x.createElement("span",{style:{marginRight:32}},"\u6D4B\u8BD5\u65B9\u5F0F"),x.createElement(xe.ZP.Group,{onChange:Za=>{Za.target.value==1&&Aa(1,10),Pn(Za.target.value),Pa()},value:un,options:[{label:"\u9009\u62E9\u5B66\u751F\u7B54\u6848",value:1,style:{marginRight:30,color:"#000"}},{label:"\u8F93\u5165\u7B54\u9898\u5185\u5BB9",value:2,style:{marginRight:30,color:"#000"}}]})),un==1&&x.createElement(x.Fragment,null,x.createElement("div",{className:"flex justify-between item-center mb10"},x.createElement("div",{style:{fontSize:"14px",color:"#FA6400"}},"\u63D0\u793A\uFF1A","\u53EA\u80FD\u9009\u62E9\u5DF2\u63D0\u4EA4\u8BD5\u5377\u7684\u5B66\u751F\u8FDB\u884C\u8BC4\u5206\u6D4B\u8BD5"),x.createElement(pe.default.Search,{style:{width:487},size:"large",placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",value:st,onChange:Za=>ut(Za.target.value),onSearch:xn})),x.createElement(Se.default,{rowSelection:{type:"radio",selectedRowKeys:kt,onChange:(Za,qn)=>{Mt(Za)},getCheckboxProps:Za=>({disabled:[0,1].includes(Za==null?void 0:Za.commit_status)})},rowKey:"exercise_user_id",dataSource:ht||[],columns:cu,pagination:{current:ot.page,hideOnSinglePage:!0,showQuickJumper:!0,showSizeChanger:!0,pageSize:ot.limit,className:"mb0",pageSizeOptions:["10","20","50","100","200"],total:ln,size:"default",showTotal:Me.rU,onChange:Aa},onChange:(Za,qn,Vn)=>{ot.page=1,Vn.order===void 0?(ot.order_type=null,ot.order=null):(ot.order_type=Vn.order==="descend"?"desc":"asc",ot.order=Vn.field),Ct(ve({},ot)),Zt(ot)}})),un==2&&x.createElement("div",{style:{marginTop:20}},x.createElement(a.default,{form:Rn,className:me.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{An(ve({},Rn.getFieldsValue()))},onFinish:vl},x.createElement(a.default.Item,{name:"content",label:"",style:{marginBottom:0}},x.createElement(E.Z,{watch:!0})))),Nn&&x.createElement("div",{className:me.result_con},x.createElement("div",{className:me.result_title},"AI\u8BC4\u5206\u7ED3\u679C"),(Nn==null?void 0:Nn.status)==0&&x.createElement("div",{className:"p20"},x.createElement("div",{className:"mb5"},x.createElement("span",{style:{color:"#333",fontWeight:"bold"}},"\u8BC4\u5206\uFF1A"),Nn==null?void 0:Nn.score),x.createElement("div",{className:"flex"},x.createElement("span",{style:{color:"#333",fontWeight:"bold",whiteSpace:"nowrap",lineHeight:"26px"}},"\u8BC4\u8BED\uFF1A"),x.createElement(y.Z,{value:Nn==null?void 0:Nn.content,style:{fontSize:"14px"}}))),(Nn==null?void 0:Nn.status)==-3&&x.createElement("div",{className:"p20"},x.createElement(y.Z,{value:Nn==null?void 0:Nn.message,style:{fontSize:"14px"}})))))))};var He=(0,Ie.connect)(({shixunHomeworks:We,exercise:Ge,loading:Ue,user:Ye})=>({shixunHomeworks:We,exercise:Ge,loading:Ue.effects,user:Ye}))(Re)},48780:function(Ft,rt,z){"use strict";var a=z(67294),Ce=z(91773),ke=z(71230),he=z(15746),Fe=z(84567),xe=z(98813),pe=z(94184),Se=z.n(pe),Ae=z(85657),Ie=Object.defineProperty,ze=Object.defineProperties,Me=Object.getOwnPropertyDescriptors,me=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,y=(ne,de,ye)=>de in ne?Ie(ne,de,{enumerable:!0,configurable:!0,writable:!0,value:ye}):ne[de]=ye,x=(ne,de)=>{for(var ye in de||(de={}))oe.call(de,ye)&&y(ne,ye,de[ye]);if(me)for(var ye of me(de))E.call(de,ye)&&y(ne,ye,de[ye]);return ne},b=(ne,de)=>ze(ne,Me(de)),ee=(ne,de)=>{var ye={};for(var fe in ne)oe.call(ne,fe)&&de.indexOf(fe)<0&&(ye[fe]=ne[fe]);if(ne!=null&&me)for(var fe of me(ne))de.indexOf(fe)<0&&E.call(ne,fe)&&(ye[fe]=ne[fe]);return ye};const te=ne=>{var de=ne,{data:ye,className:fe="",colon:ve=!1}=de,Ne=ee(de,["data","className","colon"]);return a.createElement(Ce.default,b(x({},Ne),{className:Se()(Ae.Z.FormCheckBoxDom,fe),colon:ve}),ye==null?void 0:ye.map((Le,Re)=>{var He=Le,{ItemData:We,valuePropName:Ge,children:Ue,desc:Ye,type:it="Checkbox",normalize:lt}=He,Bt=ee(He,["ItemData","valuePropName","children","desc","type","normalize"]);return(Bt==null?void 0:Bt.isShow)&&a.createElement(ke.Z,{key:Re,wrap:!1,justify:"space-between"},a.createElement(he.Z,null,a.createElement(Ce.default.Item,b(x({},Bt),{normalize:(ct,nt,Ze)=>{var yt,ht;return it=="Radio"||((yt=nt||[])!=null&&yt.every(Je=>Je==="all")&&ct.includes("all")&&ct.length>1&&(ct=ct.filter(Je=>Je!=="all")),(!((ht=nt||[])!=null&&ht.includes("all"))&&ct.includes("all")||(ct==null?void 0:ct.length)==0)&&(ct=["all"])),lt?lt(ct,nt,Ze):ct}}),Ue||(it=="Checkbox"?a.createElement(Fe.default.Group,{options:We}):a.createElement(xe.ZP.Group,{options:We})))),a.createElement(he.Z,null,Ye))}))};rt.Z=te},27765:function(Ft,rt,z){"use strict";z.r(rt),z.d(rt,{default:function(){return Rp}});var a=z(67294),Ce=z(33170),ke=z(11320),he=z(35973),Fe=z(62844),xe=z(50136),pe=z(2453),Se=z(84567),Ae=z(83062),Ie=z(98813),ze=z(78957),Me=z(85673),me=z(85804),oe=z(71230),E=z(85418),y=z(55238),x=z(57399),b=z(55304),ee=z(52310),te=z(33463),ne=z(15835),de=z(28706),ye=z(98769),fe=z(91773),ve=z(15746),Ne=z(59637),Le=z(28802),Re=z(37720),He=z(14845),We=z(94699),Ge=z.n(We),Ue=Object.defineProperty,Ye=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,Bt=(ce,se,ae)=>se in ce?Ue(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,ct=(ce,se)=>{for(var ae in se||(se={}))it.call(se,ae)&&Bt(ce,ae,se[ae]);if(Ye)for(var ae of Ye(se))lt.call(se,ae)&&Bt(ce,ae,se[ae]);return ce},nt=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Ze=({shixunHomeworks:ce,dispatch:se})=>{const ae=(0,he.useParams)();return a.createElement(Fe.default,{centered:!0,title:"\u63D0\u793A",open:ce.actionTabs.key==="\u6253\u56DE\u91CD\u505A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>nt(void 0,null,function*(){(yield(0,Ce.ZP)(`/api/myshixuns/${ce.actionTabs.selectArrs.myshixun_identifier}/reset_my_game.json`,{method:"post",body:{course_id:ae.coursesId}})).status===0&&(pe.ZP.success("\u5220\u9664\u6210\u529F"),se({type:"shixunHomeworks/setActionTabs",payload:{}}),se({type:"shixunHomeworks/getWorkList",payload:ct({},ce.actionTabs.params)}))}),onCancel:()=>{se({type:"shixunHomeworks/setActionTabs",payload:{}})}},a.createElement("p",null,"\u8BE5\u4F5C\u4E1A\u5C06\u88AB\u6253\u56DE\u91CD\u505A\uFF0C\u5B66\u751F\u5B9E\u8BAD\u8BB0\u5F55\u5C06\u88AB\u6E05\u7A7A!"),a.createElement("p",null,"\u786E\u5B9A\u6253\u56DE?"))};var yt=(0,he.connect)(({shixunHomeworks:ce})=>({shixunHomeworks:ce}))(Ze),ht=Object.defineProperty,Je=Object.defineProperties,ot=Object.getOwnPropertyDescriptors,Ct=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable,st=(ce,se,ae)=>se in ce?ht(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,ut=(ce,se)=>{for(var ae in se||(se={}))kt.call(se,ae)&&st(ce,ae,se[ae]);if(Ct)for(var ae of Ct(se))Mt.call(se,ae)&&st(ce,ae,se[ae]);return ce},un=(ce,se)=>Je(ce,ot(se)),Pn=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Rn=({exercise:ce,dispatch:se})=>{var ae,_e,pt,Ve,Dt,et,Be,Pe;const Ht=(0,he.useParams)(),[vn,hn]=(0,a.useState)(!0),[xt]=fe.default.useForm(),{actionTabs:Gt}=ce;(0,a.useEffect)(()=>{var Dn,Fn,Wt,Ut;ce.actionTabs.key==="\u66F4\u6539\u8BC4\u9605"&&(xt.resetFields(),xt.setFieldsValue({subjective_score:(Fn=(Dn=Gt==null?void 0:Gt.selectArrs)==null?void 0:Dn.record)==null?void 0:Fn.subjective_score,objective_score:(Ut=(Wt=Gt==null?void 0:Gt.selectArrs)==null?void 0:Wt.record)==null?void 0:Ut.objective_score}))},[ce.actionTabs.key]);const Bn=()=>{se({type:"exercise/setActionTabs",payload:{}})};return a.createElement(a.Fragment,null,a.createElement(Fe.default,{centered:!0,title:"\u8BC4\u9605",open:ce.actionTabs.key==="\u66F4\u6539\u8BC4\u9605",onCancel:Bn,footer:a.createElement(oe.Z,{align:"middle",justify:"end"},a.createElement(me.ZP,{className:"ml10",onClick:Bn}," \u53D6\u6D88"),a.createElement(me.ZP,{className:"ml10",onClick:()=>Pn(void 0,null,function*(){var Dn,Fn;yield xt.validateFields();const Wt=xt.getFieldValue();(yield(0,ne.oS)(un(ut({},Wt),{id:Ht.categoryId,user_id:(Fn=(Dn=Gt==null?void 0:Gt.selectArrs)==null?void 0:Dn.record)==null?void 0:Fn.user_id}))).status===0&&(pe.ZP.success("\u8BC4\u9605\u6210\u529F"),xt.resetFields(),se({type:"exercise/setActionTabs",payload:{}}),se({type:"exercise/setUpdateIndex"}))}),type:"primary"}," \u786E\u8BA4"))},a.createElement("div",{className:"pl30"},a.createElement(fe.default,{form:xt},a.createElement(oe.Z,null,a.createElement(ve.Z,null,a.createElement(fe.default.Item,{name:"subjective_score",label:"\u4E3B\u89C2\u9898\u6210\u7EE9",rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}]},a.createElement(Re.Z,{min:0,max:((_e=(ae=Gt==null?void 0:Gt.selectArrs)==null?void 0:ae.exercise_types)==null?void 0:_e.subjective_score)*1,style:{width:150},placeholder:"\u8BF7\u586B\u5199\u4E3B\u89C2\u9898\u6210\u7EE9"}))),a.createElement(ve.Z,{flex:1},a.createElement("div",null,a.createElement("span",{className:"ml10"},"\u5206\uFF0C\u603B\u5171\uFF1A",(Ve=(pt=Gt==null?void 0:Gt.selectArrs)==null?void 0:pt.exercise_types)==null?void 0:Ve.subjective_score,"\u5206")))),a.createElement(oe.Z,null,a.createElement(ve.Z,null,a.createElement(fe.default.Item,{name:"objective_score",label:"\u5BA2\u89C2\u9898\u6210\u7EE9",rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}]},a.createElement(Re.Z,{min:0,max:((et=(Dt=Gt==null?void 0:Gt.selectArrs)==null?void 0:Dt.exercise_types)==null?void 0:et.objective_score)*1,style:{width:150},width:150,placeholder:"\u8BF7\u586B\u5199\u5BA2\u89C2\u9898\u6210\u7EE9"}))),a.createElement(ve.Z,{flex:1},a.createElement("div",null,a.createElement("span",{className:"ml10"},"\u5206\uFF0C\u603B\u5171\uFF1A",(Pe=(Be=Gt==null?void 0:Gt.selectArrs)==null?void 0:Be.exercise_types)==null?void 0:Pe.objective_score,"\u5206"))))))))};var bt=(0,he.connect)(({exercise:ce})=>({exercise:ce}))(Rn);const An=[{name:"\u672A\u8BC4\u9605",id:0,type:"unreview_counts"},{name:"\u8BC4\u9605\u4E2D",id:2,type:"reviewing_counts"},{name:"\u5DF2\u8BC4\u9605",id:1,type:"review_counts"}],Nn=[{name:"\u672A\u5F00\u59CB",id:0,type:"unanswer_users"},{name:"\u8003\u8BD5\u4E2D",id:1,type:"answering_users"},{name:"\u5DF2\u4EA4\u5377",id:2,type:"answer_users"},{name:"\u5DF2\u4EA4\u5377/\u672A\u7B54",id:3,type:"commit_with_no_answers_users"}],Qt=[{name:"\u65E0\u9700\u8865\u8003",id:0,type:"unmake_up_users_count"},{name:"\u53C2\u52A0\u8865\u8003",id:1,type:"make_up_users_count"}];var zt=z(26194),jt=z(74330),sn=z(9343),vt=z(67294),Tt=Object.defineProperty,qt=Object.defineProperties,St=Object.getOwnPropertyDescriptors,Ke=Object.getOwnPropertySymbols,ln=Object.prototype.hasOwnProperty,Un=Object.prototype.propertyIsEnumerable,Ca=(ce,se,ae)=>se in ce?Tt(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,Cu=(ce,se)=>{for(var ae in se||(se={}))ln.call(se,ae)&&Ca(ce,ae,se[ae]);if(Ke)for(var ae of Ke(se))Un.call(se,ae)&&Ca(ce,ae,se[ae]);return ce},Da=(ce,se)=>qt(ce,St(se)),nr=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const cu=({exercise:ce,dispatch:se})=>{var ae,_e;const pt=(0,he.useParams)(),[Ve]=fe.default.useForm(),Dt=fe.default.useWatch("time",Ve),[et,Be]=(0,a.useState)(!1),{actionTabs:Pe,commonHeader:Ht}=ce,[,vn,hn,xt]=(0,sn.U)(ne.n7,{id:pt.categoryId}),Gt=xt!=null&&xt.user_end_time?Ge()(xt==null?void 0:xt.user_end_time).add(1,"minutes"):Ge()(),Bn=Ge()(xt==null?void 0:xt.user_total_end_time)>Gt?Math.round(Ge().duration(Ge()(xt==null?void 0:xt.user_total_end_time).diff(Gt.startOf("minute"))).asMinutes()):0,Dn=((xt==null?void 0:xt.student_left_minutes)||0)+(Dt||0);(0,a.useEffect)(()=>{var Wt;Pe.key==="\u5EF6\u65F6"?(se({type:"exercise/getWorkSetting",payload:Cu({},pt)}),hn({user_id:Pe!=null&&Pe.isBatch?Pe==null?void 0:Pe.user_ids:[(Wt=Pe==null?void 0:Pe.selectArrs)==null?void 0:Wt.user_id]})):Ve.resetFields()},[Pe.key]);const Fn=()=>{se({type:"exercise/setActionTabs",payload:{}})};return vt.createElement(vt.Fragment,null,vt.createElement(Fe.default,{width:640,centered:!0,title:Pe!=null&&Pe.isBatch?"\u6279\u91CF\u5EF6\u65F6":"\u5EF6\u65F6",open:Pe.key==="\u5EF6\u65F6",okText:"\u786E\u8BA4\u5EF6\u65F6",cancelText:"\u53D6\u6D88",confirmLoading:et,onOk:()=>nr(void 0,null,function*(){Ve.submit()}),onCancel:Fn},vt.createElement(jt.Z,{spinning:vn},vt.createElement(fe.default,{form:Ve,colon:!1,labelCol:{span:4},onFinish:Wt=>nr(void 0,null,function*(){Be(!0);const Ut=yield(0,ne.qz)(Da(Cu({},Wt),{id:pt.categoryId,exercise_user_id:Pe==null?void 0:Pe.exercise_user_id}));Be(!1),Ut.status===0&&(pe.ZP.success("\u5EF6\u65F6\u6210\u529F"),se({type:"exercise/setUpdateIndex"}),Fn())})},vt.createElement("div",{className:"p10 mb20",style:{background:"#F6F7F9"}},"\u5EF6\u65F6\u8BF4\u660E\uFF1A",vt.createElement("br",null),"1.\u53EA\u6709\u5F53\u8003\u8BD5\u622A\u6B62\u65F6\u95F4\u665A\u4E8E\u5B66\u751F\u7684\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\u65F6\uFF0C\u624D\u652F\u6301\u5BF9\u5B66\u751F\u8FDB\u884C\u5EF6\u65F6\u64CD\u4F5C\uFF1B",vt.createElement("br",null),"2.\u6BCF\u4E2A\u5B66\u751F\u7684\u6700\u5927\u53EF\u5EF6\u65F6\u65F6\u95F4=\u8003\u8BD5\u622A\u6B62\u65F6\u95F4-\u5B66\u751F\u5F53\u524D\u7684\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\uFF1B",vt.createElement("br",null),"3.\u82E5\u5C06\u8003\u8BD5\u622A\u6B62\u65F6\u95F4\u5EF6\u540E\uFF0C\u5C06\u5BF9\u6240\u6709\u8003\u8BD5\u8FDF\u5230\u7684\u5B66\u751F\u8FDB\u884C\u7EDF\u4E00\u5EF6\u65F6\uFF08\u5B66\u751F\u5DF2\u7B54\u9898\u65F6\u95F4+\u5B66\u751F\u5269\u4F59\u8003\u8BD5\u65F6\u95F4+\u7EDF\u4E00\u5EF6\u65F6\u65F6\u95F4\u2264\u8003\u8BD5\u7B54\u9898\u65F6\u957F\uFF09\u3002"),Pe!=null&&Pe.isBatch?vt.createElement("div",null,"\u5F53\u524D\u9009\u4E2D",vt.createElement("span",{className:"ml5 mr5",style:{color:"#FA6400"}},Pe==null?void 0:Pe.exercise_user_id.length),"\u540D\u5B66\u751F"):vt.createElement(oe.Z,{align:"middle",gutter:40},vt.createElement(ve.Z,null,"\u5F53\u524D\u9009\u4E2D\u5B66\u751F",vt.createElement("span",{className:"ml15",style:{color:"#FA6400"}},(ae=Pe==null?void 0:Pe.selectArrs)==null?void 0:ae.user_name)),vt.createElement(ve.Z,null,"\u5B66\u53F7",vt.createElement("span",{className:"ml15",style:{color:"#FA6400"}},(_e=Pe==null?void 0:Pe.selectArrs)==null?void 0:_e.student_id))),vt.createElement(fe.default.Item,{className:"mt30",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5EF6\u957F\u65F6\u95F4"}],name:"time",label:"\u5EF6\u957F\u65F6\u95F4"},vt.createElement(Re.Z,{min:0,precision:0,max:Bn,style:{width:"100%"},placeholder:`\u6700\u5927\u53EF\u5EF6\u957F\u65F6\u95F4\u4E3A${Bn}\u5206\u949F\uFF0C\u5728\u5B66\u751F\u5269\u4F59\u65F6\u95F4\u57FA\u7840\u4E0A\u5EF6\u65F6`,addonAfter:"\u5206\u949F"})),!(Pe!=null&&Pe.isBatch)&&vt.createElement("div",{className:"mb20",style:{marginLeft:98,color:"#FA6400"}},"\u8BE5\u5B66\u751F\u5269\u4F59\u8003\u8BD5\u65F6\u95F4\uFF1A",vt.createElement("span",{className:"ml5"},Dn),"\u5206\u949F",Dn!==0&&(xt==null?void 0:xt.user_end_time)&&vt.createElement("span",null,"\uFF0C\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\uFF1A",vt.createElement("span",{className:"ml5"},Ge()(xt==null?void 0:xt.user_end_time).add(Dt||0,"m").format("YYYY-MM-DD HH:mm:ss")))),(Ht==null?void 0:Ht.screen_open)&&vt.createElement(fe.default.Item,{style:{marginLeft:98,marginBottom:0},name:"is_clear",initialValue:!1,valuePropName:"checked"},vt.createElement(Se.default,null,"\u6E05\u9664\u5B66\u751F\u7684\u5DF2\u5207\u5C4F\u6B21\u6570"))))))};var or=(0,he.connect)(({exercise:ce})=>({exercise:ce}))(cu),Aa=z(18046),Zt=z(17998),xn=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const vl=({exercise:ce,dispatch:se})=>{var ae,_e;const pt=(0,he.useParams)(),[Ve]=fe.default.useForm(),[Dt,et]=(0,a.useState)(!1),{actionTabs:Be}=ce;return(0,a.useEffect)(()=>{ce.actionTabs.key==="teacher-unlock"&&(et(!1),Ve.resetFields())},[ce.actionTabs.key]),a.createElement(a.Fragment,null,a.createElement(Fe.default,{width:600,centered:!0,title:`\u8003\u8BD5\u89E3\u9501\uFF08${(ae=Be==null?void 0:Be.selectArrs)==null?void 0:ae.user_name}\uFF09`,open:ce.actionTabs.key==="teacher-unlock",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",keyboard:!1,confirmLoading:Dt,onOk:()=>xn(void 0,null,function*(){var Pe,Ht;yield Ve.validateFields();const vn=Ve.getFieldsValue();if(et(!0),(yield(0,ne.ZD)(pt.categoryId,{exercise_user_id:(Pe=Be==null?void 0:Be.selectArrs)==null?void 0:Pe.exercise_user_id,unlock_key:vn.unlock_key})).status===0){if(vn.time){const xt={time:Ge()(vn.time).format("YYYY-MM-DD HH:mm"),exercise_user_id:(Ht=Be==null?void 0:Be.selectArrs)==null?void 0:Ht.exercise_user_id,id:pt.categoryId};yield(0,ne.qz)(xt)}pe.ZP.success("\u89E3\u9664\u9501\u5B9A\u6210\u529F"),se({type:"exercise/setUpdateIndex"}),se({type:"exercise/setActionTabs",payload:{}})}et(!1)}),onCancel:()=>{se({type:"exercise/setActionTabs",payload:{}})}},a.createElement("div",{className:""},a.createElement(fe.default,{form:Ve,layout:"vertical",autoComplete:"off"},a.createElement(fe.default.Item,{className:"ml10",label:"\u8003\u8BD5\u89E3\u9501\u7801",name:"unlock_key",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801"}]},a.createElement(Le.default.Password,{autoComplete:"off",style:{width:270},placeholder:"\u8BF7\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801"})),a.createElement(fe.default.Item,{label:a.createElement("span",null,"\u5EF6\u957F\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\uFF08",a.createElement("span",{className:"c-grey-999"},"\u4E0D\u80FD\u8D85\u8FC7\u5F53\u524D\u8BD5\u5377\u622A\u6B62\u65F6\u95F4",Ge()((_e=Be==null?void 0:Be.selectArrs)==null?void 0:_e.exercise_end_at).format("YYYY-MM-DD HH:mm")),"\uFF09"),name:"time",className:"ml10"},a.createElement(Aa.default,{style:{width:270},placeholder:"\u8BF7\u9009\u62E9\u4EA4\u5377\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm"},format:"YYYY-MM-DD HH:mm",disabledDate:Pe=>{var Ht;return(0,Zt.Q8)(Pe,(Ht=Be==null?void 0:Be.selectArrs)==null?void 0:Ht.exercise_end_at)},disabledTime:Pe=>{var Ht;const vn=(Ht=Be==null?void 0:Be.selectArrs)==null?void 0:Ht.exercise_end_at;if(Ge()(Pe).isSame(Ge()(vn),"day")){const hn=Ge()(vn).hours(),xt=Ge()(vn).minutes();return console.log(hn,xt),{disabledHours:()=>(0,Zt.w6)(0,24).slice(hn+1),disabledMinutes:()=>Ge()(Pe).isSame(Ge()(vn),"hour")?(0,Zt.w6)(xt,60):[]}}return(0,Zt.d0)(Pe)},allowClear:!1}))))))};var Er=(0,he.connect)(({exercise:ce})=>({exercise:ce}))(vl),er=z(71865),Pa=z(33054),Za=z(7703),qn=Object.getOwnPropertySymbols,Vn=Object.prototype.hasOwnProperty,Qa=Object.prototype.propertyIsEnumerable,gu=(ce,se)=>{var ae={};for(var _e in ce)Vn.call(ce,_e)&&se.indexOf(_e)<0&&(ae[_e]=ce[_e]);if(ce!=null&&qn)for(var _e of qn(ce))se.indexOf(_e)<0&&Qa.call(ce,_e)&&(ae[_e]=ce[_e]);return ae},_u=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const ir=ce=>{var se=ce,{shixunHomeworks:ae,dispatch:_e}=se,pt=gu(se,["shixunHomeworks","dispatch"]);const Ve=(0,he.useParams)(),[Dt,et]=(0,a.useState)([]),[Be,Pe]=(0,a.useState)([]);(0,a.useEffect)(()=>{ae.actionTabs.key==="\u8D28\u91CF\u68C0\u6D4B"&&Ht()},[ae.actionTabs.key]);function Ht(){return _u(this,null,function*(){const hn=yield(0,Ce.ZP)(`/api/exercises/${Ve.categoryId}/group_list.json`,{method:"GET"});et(hn)})}const vn=[{title:"\u5206\u73ED\u60C5\u51B5",dataIndex:"name"},{title:"\u6709\u6548\u4F5C\u54C1\u6570",dataIndex:"works_count"},{title:"\u68C0\u6D4B\u8FDB\u5EA6",dataIndex:"status"},{title:"\u4E0A\u6B21\u8BC4\u5206\u65F6\u95F4",dataIndex:"last_analysis_time"}];return a.createElement(a.Fragment,null,a.createElement(Fe.default,{centered:!0,title:"\u4EE3\u7801\u8D28\u91CF\u8BC4\u5206",open:ae.actionTabs.key==="\u8D28\u91CF\u68C0\u6D4B",width:700,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>_u(void 0,null,function*(){const hn=yield(0,Ce.ZP)(`/api/exercises/${Ve.categoryId}/code_quality_analysis.json`,{method:"POST",body:{group_ids:Be}});(hn==null?void 0:hn.status)===0&&(he.history.replace(`/classrooms/${Ve.coursesId}/exercise/${Ve.categoryId}/detail?tabs=7`),window.location.reload(),_e({type:"shixunHomeworks/setActionTabs",payload:{}}),Pe([]))}),onCancel:()=>{Pe([]),_e({type:"shixunHomeworks/setActionTabs",payload:{}})}},a.createElement(x.default,{rowSelection:{type:"checkbox",onChange:(hn,xt)=>{Pe([...hn])},selectedRowKeys:Be,getCheckboxProps:hn=>({disabled:hn.status==="\u8FDB\u884C\u4E2D"||hn.works_count===0})},rowKey:hn=>hn.key||hn.id,scroll:{y:300},pagination:!1,columns:vn,dataSource:Dt==null?void 0:Dt.group_list})))};var ul=(0,he.connect)(({shixunHomeworks:ce})=>({shixunHomeworks:ce}))(ir),On=z(52262),Jt={flex_box_center:"flex_box_center____uOEt",flex_space_between:"flex_space_between___J8U9e",flex_box_vertical_center:"flex_box_vertical_center___M1l_z",flex_box_center_end:"flex_box_center_end___UsRsw",flex_box_column:"flex_box_column___gcanz",rightFilter:"rightFilter___KnaoF",classwidth:"classwidth___QPkdW",operationCol:"operationCol___hiIyI",unlockBtn:"unlockBtn___QvP_V",recordScreenModal:"recordScreenModal___tLQo7",operationLink:"operationLink___vj72A",banding:"banding___BLx2S",noShow:"noShow___mrV9r",btn_review:"btn_review___b6mDf"},_n=z(67294),Gn=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())}),oa=({item:ce,renderText:se})=>{const ae=(0,he.useParams)(),[_e,pt]=(0,a.useState)(),Ve=Dt=>Gn(void 0,null,function*(){if(!Dt)return;const et=yield(0,ne.UH)({id:ae.categoryId,user_id:ce==null?void 0:ce.user_id});et&&pt(et)});return _n.createElement(Ae.Z,{onOpenChange:Dt=>Ve(Dt),title:_n.createElement("div",null,"\u5355\u9009\u9898 ",(_e==null?void 0:_e.single_question_score)||0,"\u5206 ",_n.createElement("br",null),"\u591A\u9009\u9898 ",(_e==null?void 0:_e.multiple_question_score)||0,"\u5206 ",_n.createElement("br",null),"\u5224\u65AD\u9898 ",(_e==null?void 0:_e.judgement_question_score)||0,"\u5206 ",_n.createElement("br",null),"\u586B\u7A7A\u9898 ",(_e==null?void 0:_e.completion_question_score)||0,"\u5206 ",_n.createElement("br",null),"\u5B9E\u8BAD\u9898 ",(_e==null?void 0:_e.shixun_question_score)||0,"\u5206")},se)},Ta=z(96486),hu=z.n(Ta),ft=z(88044),re=z(63037),ge=z(67294),De=Object.defineProperty,Xe=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,Ot=Object.getOwnPropertySymbols,Lt=Object.prototype.hasOwnProperty,Wn=Object.prototype.propertyIsEnumerable,ra=(ce,se,ae)=>se in ce?De(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,xa=(ce,se)=>{for(var ae in se||(se={}))Lt.call(se,ae)&&ra(ce,ae,se[ae]);if(Ot)for(var ae of Ot(se))Wn.call(se,ae)&&ra(ce,ae,se[ae]);return ce},Kn=(ce,se)=>Xe(ce,tt(se)),Du=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const la=({exercise:ce,dispatch:se})=>{var ae,_e;const pt=(0,he.useParams)(),{actionTabs:Ve,commonHeader:Dt}=ce,[et]=fe.default.useForm(),Be=fe.default.useWatch("time",et),[,Pe,Ht,vn]=(0,sn.U)(ne.n7,{id:pt.categoryId}),[,hn,xt]=(0,sn.U)(ne.Xo,{id:pt.categoryId}),Gt=(0,a.useRef)(null),Bn=vn!=null&&vn.user_end_time?Ge()(vn==null?void 0:vn.user_end_time).add(1,"minutes"):Ge()(),Dn=Ge()(vn==null?void 0:vn.user_total_end_time)>Bn?Math.round(Ge().duration(Ge()(vn==null?void 0:vn.user_total_end_time).diff(Bn.startOf("minute"))).asMinutes()):0,Fn=((vn==null?void 0:vn.student_left_minutes)||0)+(Be||0);(0,a.useEffect)(()=>{var Ut,Yt;Ve.key=="\u8C03\u6574\u72B6\u6001"?(se({type:"exercise/getWorkSetting",payload:xa({},pt)}),Ht({user_id:Ve!=null&&Ve.isBatch?Ve==null?void 0:Ve.user_ids:[(Ut=Ve==null?void 0:Ve.selectArrs)==null?void 0:Ut.user_id]})):(et.resetFields(),Gt.current&&((Yt=Gt.current)==null||Yt.changeCode({target:{value:""}})))},[Ve.key]);const Wt=()=>{se({type:"exercise/setActionTabs",payload:{}})};return ge.createElement(Fe.default,{centered:!0,title:Ve!=null&&Ve.isBatch?"\u6279\u91CF\u8C03\u6574\u8003\u8BD5\u72B6\u6001":"\u8C03\u6574\u8003\u8BD5\u72B6\u6001",open:Ve.key=="\u8C03\u6574\u72B6\u6001",width:650,okText:"\u786E\u5B9A\u8C03\u6574",confirmLoading:hn,onOk:()=>Du(void 0,null,function*(){et.submit()}),onCancel:Wt},ge.createElement(jt.Z,{spinning:Pe},ge.createElement(fe.default,{initialValues:{status:"1"},form:et,colon:!1,labelCol:{span:4},onFinish:Ut=>Du(void 0,null,function*(){if(console.log("allValue",Ut),Gt.current.onVerify())return Promise.reject();(yield xt(Kn(xa({},Ut),{exercise_user_id:Ve==null?void 0:Ve.exercise_user_id}))).status==0&&(pe.ZP.success("\u8C03\u6574\u6210\u529F"),Wt(),se({type:"exercise/setUpdateIndex"}))})},Ve!=null&&Ve.isBatch?ge.createElement("div",{className:"mb20"},"\u5F53\u524D\u9009\u4E2D",ge.createElement("span",{className:"ml5 mr5",style:{color:"#FA6400"}},Ve==null?void 0:Ve.exercise_user_id.length),"\u540D\u5B66\u751F"):ge.createElement(oe.Z,{className:"mb20",align:"middle",gutter:40},ge.createElement(ve.Z,null,"\u5F53\u524D\u9009\u4E2D\u5B66\u751F",ge.createElement("span",{className:"ml15",style:{color:"#FA6400"}},(ae=Ve==null?void 0:Ve.selectArrs)==null?void 0:ae.user_name)),ge.createElement(ve.Z,null,"\u5B66\u53F7",ge.createElement("span",{className:"ml15",style:{color:"#FA6400"}},(_e=Ve==null?void 0:Ve.selectArrs)==null?void 0:_e.student_id))),(Dt==null?void 0:Dt.is_locked)&&ge.createElement(fe.default.Item,{label:"\u8003\u8BD5\u89E3\u9501\u7801",name:"unlock_key",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801"}]},ge.createElement(Le.default.Password,{autoComplete:"off",placeholder:"\u8BF7\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801",visibilityToggle:!1})),ge.createElement(fe.default.Item,{rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8003\u8BD5\u72B6\u6001"}],name:"status",label:"\u8003\u8BD5\u72B6\u6001"},ge.createElement(ft.default,{placeholder:"\u8BF7\u9009\u62E9\u8003\u8BD5\u72B6\u6001"},ge.createElement(ft.default.Option,{value:"1"},"\u8003\u8BD5\u4E2D\uFF08\u4FDD\u7559\u5B66\u751F\u7684\u7B54\u9898\u6570\u636E\uFF0C\u7EE7\u7EED\u8003\u8BD5\uFF09"),ge.createElement(ft.default.Option,{value:"2"},"\u5DF2\u4EA4\u5377\uFF08\u4FDD\u7559\u5B66\u751F\u7684\u7B54\u9898\u6570\u636E\uFF0C\u8FDB\u884C\u4EA4\u5377\uFF09"))),(Dt==null?void 0:Dt.time)!==-1&&ge.createElement(ge.Fragment,null,ge.createElement(fe.default.Item,{className:"mt20 mb20",name:"time",label:"\u5EF6\u957F\u65F6\u95F4"},ge.createElement(Re.Z,{min:0,precision:0,max:Dn,style:{width:"100%"},placeholder:`\u6700\u5927\u53EF\u5EF6\u957F\u65F6\u95F4\u4E3A${Dn}\u5206\u949F\uFF0C\u5728\u5B66\u751F\u5269\u4F59\u65F6\u95F4\u57FA\u7840\u4E0A\u5EF6\u65F6`,addonAfter:"\u5206\u949F"})),!(Ve!=null&&Ve.isBatch)&&ge.createElement("div",{className:"mb20",style:{marginLeft:98,color:"#FA6400"}},"\u8BE5\u5B66\u751F\u5269\u4F59\u8003\u8BD5\u65F6\u95F4\uFF1A",ge.createElement("span",{className:"ml5"},Fn),"\u5206\u949F",Fn!==0&&(vn==null?void 0:vn.user_end_time)&&ge.createElement("span",null,"\uFF0C\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\uFF1A",ge.createElement("span",{className:"ml5"},Ge()(vn==null?void 0:vn.user_end_time).add(Be||0,"m").format("YYYY-MM-DD HH:mm:ss"))))),(Dt==null?void 0:Dt.screen_open)&&ge.createElement(fe.default.Item,{style:{marginLeft:100},name:"is_clear",initialValue:!1,valuePropName:"checked"},ge.createElement(Se.default,null,"\u6E05\u9664\u5B66\u751F\u7684\u5DF2\u5207\u5C4F\u6B21\u6570")),ge.createElement(fe.default.Item,{label:"\u9A8C\u8BC1\u7801",required:!0,style:{marginBottom:0}},ge.createElement(re.Z,{ref:Ut=>Gt.current=Ut})))))};var lu=(0,he.connect)(({exercise:ce})=>({exercise:ce}))(la),Ga=z(84888),Ea=z(90613),ga=z(20819),jn=z(69234),Hu={collapseSty:"collapseSty___HC_H5",review_warp:"review_warp___eZLrf",under_review:"under_review___EMIrP",btn_operate:"btn_operate___mWpgU",btn_review:"btn_review___Cwv6d",is_disabled:"is_disabled___GH0Ll"},Hr=z(30001),Wa="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAaCAYAAACkVDyJAAAAAXNSR0IArs4c6QAABG9JREFUSEu9lltsFFUcxr//zAIFucS7YgAvURDamd1tAQUqNQEiGoOXGEiUSGdrRVF5MIrGoPtAFHhEY0LpzmrsA7yoRRNI5KGISIDu7syUCgaRUIL3qBQtxd05n5ndLbRluxRJ3Kfd85/z/c535jvnv4L/+SOXw6tudKN+jmsFuJ+UkAh2APq6jF3pDldn2MBog3uPUvgC5NhB4n8iFFrkbKk8OBzosIBzrSPj/mbvYQC3DCF66iqpuHuvPe3MpaDDAkYsbxOpXgzEBPKTNkIW6VTnsjnZTfCm/LjIpoxtrr5iYMTqqCHUfpBaIKbpWJZuDm8LvkcbnKXKx9Y8REQJtNkZu6q9HLSkw3tjndecFb8WinUCLiVxc9HFzoxtLu4vGLHcHSQfKNTxIyHboEnbaOp79iVm/D4YPgAYbuhYCKXeBDEX4ICaAN0h0SIHbeP7/iIzLe/2HFWGwPiB4kIB91HXNjrNRmtf7bxotN57VUFtKLUdAukSHU+lm809perRBreWPloITi5V16CtSSeNjYUMAIjUd04Hsh4Bvbg1OVDaIdwtIm3jJxm72uKSK/du6uIMdZ/0FpCsA2U+hDUkQoU5QowcMdXZPP1oARjz1lCp9cUVfK2NGPdgqumO05dKXLn6rFWHr832nNtOYE4xVG84tvl2AWh575DqtSJwXSYZXnslsL65UcuNK/Kt/rp5YNTyViiqZHElP+shfVaqqbLrSqDVjYcm+zn/AMgbAx0N+vJ0sqolD3wi3jnyaFfuCMjbivH3JlSE5ra9P+Ov/wKte75z7One3F6SRsGdHJswxZgW5OBCShvcWuVjF8CRxYc+S9vGEhFhXfx4RXfXmeUKvL50CpHVgO3ttvltPE6t9YT3KcGHi4H5R9OxoC/hA89hzH0aih+cF9VkhZMwPwxbznsgVpV3K7/cudiY+N1ObwPJlwdr9P2+6KYJW+5GkK8Ut3ZXxjYXhi2nBcST5YACOblkinFr6wnv1IX7VVufsY3X+8+7CBht6DCU7+f7m4h4Gds05z3nXd3Ti2cgnDAENCsh7aNUU9WxiOV0kpgePBfSpKo9YR4qC4zEvPuo1O5iYr9ybLP2coITttw9IOflF6xp8zMJ48vyDq2ORxX9j4vBac0kzUcuBxipd4PALMkfBdEfS9tVn1zCoWNRIVFwiKRjh63+E4Jm3ItcTTBWgVD74KYbthwbRH3BIWKZRNguC6yOdTzkK//zvtCkE8ai4GjUxDpn5ZhdKUDQrsYU6ugBta26pm9uT8w4EIxFLLeN5Py8Qx2Pp5vD+d0aMqWR2DdTqLLH+9qTiKQIjAJZWTalIh7IcwRmFt+/0kPaXUGQygLzq6x33iXwwlAAEeRTTMIcchEiWxzbbBxcL9nx8zfLie71CnjpvFPgLAVbdcrmVNLcHwhV17uzfeGzQiwjMLq4zTmBNI2fbKwu1dLK/omas9K9oScnNaLwhxa6zk01Tewp5ai68YcxwK/TfCWTdG3U3lTT1N+Gcv4v6tPgKkEiYpsAAAAASUVORK5CYII=",rl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAA6lJREFUSEu1ll1sFFUUgM+5M5su1rqF0JiYiBIsim1nd3apiJBQXgmJkihRE0l2u1ksJiDxRcNLH4jRB7WEBMiGHfQJAoQXQgiJiU0sKtDt7OyCMULTUqIvNdLdFtPSufeYO9vFcZnpDlru0+SeM+c7f/feg+BaiUyxS8zTZmLUzgQytyzINyHy5iY4OHRUu+unj1KQyPz+hLAnvyCi94MYXkwHAS+9/py2rb8fhZeeA9RT1tGlgNUAiPC5acQ+9gTG0yVNcG5JIQLcVBQlEw6RpTa10KNEO1OpPM2BvieCNuc/xnYWctqZehuoJ60+AjoiBaqibB0+3jX4KCC3rp4sbgEU3xKBCoD3lBBuzGe1klsHY72FL0HAfrn5ZJitWKzgQRzRk9ZeAjpUzRiONoex220T40lrQADtkwqtkcjywYHVU0EML6ajp6xviGjXAvRfTeQL1FPWLiSI+xkmgCvmiehJL3lP/1i4PFEZIqKEA0X2mWlonzjfXhGu7y3otoCRRpEiqjHT6HQarn517yk9a8/yfH0TeQI3pX5puQdz14DoRT8oItyKPBXpXqwEXk3km1Iiwq37xyN+wLbXnp8+sxN5oyy4mwgQBx5L07id6PlwrHWqXHauOgZ4yBeYyJTWAKcu3wgUNpLPdk40ijAQ8JW0tXpe0K/VA+y9EMFmqrqmETQQMJG5vkrY9mgjYIjh2qvHo2M1l2Td46ni28CAzFz0lNwPBJSKEgpc+J5DULCUz3aNuuOPJ60DAuig3FMZxIdzMTMwsFFt6uWxdHEbCDoPRPIdnUJoXmueaJ8MDHzrNCmTP4y3zFfm+GXjpekawLlFblcuEBALNzUlfzq2bjy2++d2uH//qrwdAVEg4HbT0C4GTqn0qlwpXyOCF6pXE540jei78jueLiYEF8MLDvwGqroDuf01Ebzs7CEeKBjRTx84GORY6KnrUSK78CBtiHffWKWtrL3isVThHBDsqMqRAMh5yBHw3IihvYko96orcEr1pPUOAmwQCKSicnY413n5n7SSWp4oGkT0nquWN1qXhV4dPNIx465vYGCjppFHQO+1DgPBB4jwB2Jo40iu41b9fw8B/+8DLNMfRrzzY67jTy8nN/cVl8/MiqqMwVdLOmJ4AdenSz02598t1HgPLtUQVQ+z56Zxdh6jnPMsAbRLuRJi2mMZE70iRcRjphHtW/JB2A/G1LaP8tln/nKAtSXTS1xs+q+jvtuWYCRQ4E0WwiH3qPg3yfpEltDif38AAAAASUVORK5CYII=",sr=z(52930),uu=z(65226),ya=z(67294),Ua=Object.defineProperty,zi=Object.defineProperties,Ki=Object.getOwnPropertyDescriptors,Yo=Object.getOwnPropertySymbols,fo=Object.prototype.hasOwnProperty,du=Object.prototype.propertyIsEnumerable,Gu=(ce,se,ae)=>se in ce?Ua(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,pl=(ce,se)=>{for(var ae in se||(se={}))fo.call(se,ae)&&Gu(ce,ae,se[ae]);if(Yo)for(var ae of Yo(se))du.call(se,ae)&&Gu(ce,ae,se[ae]);return ce},Ir=(ce,se)=>zi(ce,Ki(se)),Cl=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const ol=Se.default.Group,ti=({className:ce,title:se,items:ae=[],value:_e,onChange:pt})=>{const Ve=(ae==null?void 0:ae.length)===(_e==null?void 0:_e.length),Dt=(_e==null?void 0:_e.length)>0&&(_e==null?void 0:_e.length)<(ae==null?void 0:ae.length),et=Be=>{const Pe=ae.map(Ht=>Ht.id);pt(Be.target.checked?Pe:[])};return ya.createElement(oe.Z,{align:"middle",className:ce},!!se&&ya.createElement("div",{className:"mr20",style:{color:"#333333"}},se),ya.createElement(Se.default,{indeterminate:Dt,onChange:et,checked:Ve},"\u5168\u90E8"),ya.createElement(ol,{value:_e,onChange:pt},ae.map(Be=>ya.createElement(Se.default,{className:"ml30 c-black",key:Be.id,value:Be.id},Be.name,ya.createElement("span",null,`(${Be.count})`)))))},io=({shixunHomeworks:ce,exercise:se,loading:ae,dispatch:_e,showBtn:pt=!0,dropDowmBtn:Ve=null})=>{var Dt,et,Be,Pe,Ht,vn,hn,xt,Gt,Bn,Dn,Fn;const[Wt,Ut]=(0,a.useState)({page:1,limit:10,exercise_group_id:[],review:[0],review_result:[]}),[Yt,ea]=(0,a.useState)(-1),[nn,zn]=(0,a.useState)(""),[mn,pa]=(0,a.useState)({}),[Pt,Nt]=(0,a.useState)(!1),[Rt,Xt]=(0,a.useState)(!1),cn=(0,he.useParams)(),[tn,Ja]=(0,a.useState)({}),[ha,dt]=(0,a.useState)(!1),{is_open_ai_review:Fa,zero_commit_student_works:ia,unified_ai_setting:wu,ai_review_settings:Sa,is_random:Hn,batch_size:Oa,have_batch_resubmit:tu}=se.commonHeader,[Ka,Ba]=(0,a.useState)({}),[La,Zn]=(0,a.useState)([]),[bn,ca]=(0,a.useState)(!1),[Qn,pn]=(0,a.useState)(!1),[Tn,En]=(0,a.useState)([]),[da,Ha]=(0,a.useState)(!1),[au,Ya]=(0,a.useState)(!1),Cr=[{title:"\u65F6\u95F4",dataIndex:"created_at",width:170,ellipsis:!0,render:Va=>ya.createElement(Ae.Z,{placement:"bottom",title:Va},ya.createElement("span",{style:{color:"#333"}},Ge()(Va).format("YYYY-MM-DD HH:mm")))},{title:"\u64CD\u4F5C\u660E\u7EC6",dataIndex:"user_name",width:272,render:(Va,Nu)=>ya.createElement("span",{style:{color:"#333"}},Nu==null?void 0:Nu.user_name,"\u64CD\u4F5C\u4E86\u667A\u80FD\u8BC4\u9605")},{title:"\u64CD\u4F5C\u7ED3\u679C",dataIndex:"success_count",width:272,render:(Va,Nu)=>(Nu==null?void 0:Nu.status)=="running"?ya.createElement("span",{style:{color:"#333"}}," ",ya.createElement("span",null,"\u667A\u80FD\u8BC4\u9605\u4E2D\uFF0C\u5F53\u524D\u8FDB\u5EA6")," ",Nu==null?void 0:Nu.rate):ya.createElement("span",{style:{color:"#333"}},"\u667A\u80FD\u8BC4\u9605\u6210\u529F ",Nu==null?void 0:Nu.success_count," \u4EBA\uFF0C\u5931\u8D25 ",Nu==null?void 0:Nu.fail_count," \u4EBA")}],Zu=[{title:"\u5E8F\u53F7",dataIndex:"1",width:80,ellipsis:!0,render:(Va,Nu,oo)=>(Wt.page-1)*Wt.limit+oo+1},{title:"\u59D3\u540D",dataIndex:"user_name",ellipse:!0,width:180,ellipsis:!0},{title:"\u5B66\u53F7",width:100,dataIndex:"student_id",ellipse:!0,align:"left",sorter:!0,render:Va=>Va||"--"},{title:"\u5206\u73ED",ellipse:!0,dataIndex:"user_group_name",align:"left",render:(Va,Nu)=>ya.createElement("div",{className:Hu.banding,title:Va||"--"},Va||"--")},{title:"\u63D0\u4EA4\u72B6\u6001",dataIndex:"commit_status",align:"center",width:200,render:(Va,Nu)=>Va===0?ya.createElement("span",{style:{color:"#666666"}},"\u672A\u5F00\u59CB"):Va===1?ya.createElement("span",{style:{color:"#DF3042"}},!Nu.is_make_up&&"\u8003\u8BD5\u4E2D",Nu.is_make_up&&"\u8003\u8BD5\u4E2D (\u8865\u8003)"):Va===2?ya.createElement("span",{style:{color:"#5AB891"}},!Nu.is_make_up&&!Nu.is_force_commit&&"\u5DF2\u4EA4\u5377",Nu.is_make_up&&!Nu.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003)",Nu.is_make_up&&Nu.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003/\u5F3A\u5236)",!Nu.is_make_up&&Nu.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u5F3A\u5236)"):ya.createElement("span",{style:{color:"#5AB891"}},!Nu.is_make_up&&!Nu.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54",Nu.is_make_up&&!Nu.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003)",Nu.is_make_up&&Nu.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003/\u5F3A\u5236)",!Nu.is_make_up&&Nu.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u5F3A\u5236)")},{title:"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",sortDirections:["descend","ascend"],sorter:!0,ellipse:!0,width:120},{title:"\u8BC4\u9605\u72B6\u6001",width:120,dataIndex:"has_comment",render:(Va,Nu)=>{let oo=new Date().getTime();return tn!=null&&tn.appraise_setting&&(tn!=null&&tn.sealed_review)&&new Date(tn==null?void 0:tn.appraise_end_time).getTime()>oo?"--":!Va&&Nu.review_status?"\u8BC4\u9605\u4E2D":Va?"\u5DF2\u8BC4\u9605":"\u672A\u8BC4\u9605"}},Oa&&{title:ya.createElement("span",null,"\u8BC4\u9605\u9898\u76EE",ya.createElement(Ae.Z,{title:"\u667A\u80FD\u8BC4\u9605\u76EE\u524D\u4EC5\u652F\u6301\u7B80\u7B54\u9898\uFF08\u542B\u7EC4\u5408\u9898\u4E2D\u7684\u7B80\u7B54\u9898\uFF09\u3002"},ya.createElement("i",{className:"iconfont icon-tishi6 font14 ml5",style:{color:"#666666"}}))),width:100,dataIndex:"success_size",render:(Va,Nu)=>(Nu==null?void 0:Nu.success_size)+"/"+(Nu==null?void 0:Nu.totol_size)},Oa&&{title:"\u667A\u80FD\u8BC4\u9605\u7ED3\u679C",width:120,dataIndex:"status",render:(Va,Nu)=>Va==="\u6210\u529F"?ya.createElement("span",{className:"c-green"},"\u6210\u529F"):Va=="\u90E8\u5206\u6210\u529F"?ya.createElement("span",{className:"c-orange",onClick:()=>Cl(void 0,null,function*(){dt(!0),yield Ru(Nu==null?void 0:Nu.user_id)})},"\u90E8\u5206\u6210\u529F",ya.createElement("i",{className:"iconfont icon-tishi2 font14 ml5 current",style:{color:"#FA6400",transform:"rotate(180deg)"}})):Va=="\u5931\u8D25"?ya.createElement("span",{className:"c-red",onClick:()=>Cl(void 0,null,function*(){dt(!0),yield Ru(Nu==null?void 0:Nu.user_id)})},"\u5931\u8D25",ya.createElement("i",{className:"iconfont icon-tishi2 font14 ml5 current",style:{color:"#E30000",transform:"rotate(180deg)"}})):ya.createElement("span",null,"\u672A\u5F00\u59CB")}].filter(Va=>!!Va);(0,a.useEffect)(()=>{var Va;((Va=se.actionTabs)==null?void 0:Va.key)==="\u5728\u7EBF\u8003\u8BD5\u667A\u80FD\u8BC4\u9605"&&mr()},[(Dt=se.actionTabs)==null?void 0:Dt.key]),(0,a.useEffect)(()=>{var Va;((Va=se.actionTabs)==null?void 0:Va.key)==="\u5728\u7EBF\u8003\u8BD5\u667A\u80FD\u8BC4\u9605"&&mu()},[Wt,((et=se.actionTabs)==null?void 0:et.key)==="\u5728\u7EBF\u8003\u8BD5\u667A\u80FD\u8BC4\u9605"]);const sa=()=>Cl(void 0,null,function*(){var Va;Ha(!0);const Nu=yield(0,Ce.ZP)("/api/exercise_resubmits/get_batch_list.json",{method:"get",params:{exercise_id:cn==null?void 0:cn.categoryId}});Ha(!1),Nu.status===0&&En(((Va=Nu==null?void 0:Nu.data)==null?void 0:Va.list)||[])}),Ru=Va=>Cl(void 0,null,function*(){ca(!0);const Nu=yield(0,Ce.ZP)("/api/exercise_resubmits/get_student_resubmit_status.json",{method:"get",params:{exercise_id:cn==null?void 0:cn.categoryId,user_id:Va,batch_size:(Ka==null?void 0:Ka.batch_size)||Oa}});ca(!1),Nu.status===0&&Zn((Nu==null?void 0:Nu.data)||[])}),mr=()=>Cl(void 0,null,function*(){const Va=yield(0,Ce.ZP)(`/api/exercises/${cn.categoryId}/header_info.json`,{method:"get"});(Va==null?void 0:Va.status)===0&&Ja((Va==null?void 0:Va.data)||{})}),gl=Va=>{Wt.search=Va,Wt.page=1,Ut(pl({},Wt))},Tl=(Va,Nu)=>{Wt.page=1,Wt[Nu]=Va,Ut(pl({},Wt))},mu=()=>Cl(void 0,null,function*(){var Va,Nu,oo,Su;Xt(!0);const Pu=yield(0,Ce.ZP)("/api/exercise_resubmits/all_resubmit_student_list.json",{method:"get",params:Ir(pl({},Wt),{exercise_id:cn==null?void 0:cn.categoryId,batch_size:(Ka==null?void 0:Ka.batch_size)||((Va=se==null?void 0:se.actionTabs)==null?void 0:Va.batchSize)})});if((Pu==null?void 0:Pu.status)===0&&(pa(Pu||{}),((Nu=Wt==null?void 0:Wt.exercise_group_id)==null?void 0:Nu.length)==0)){const ci=(Su=((oo=Pu==null?void 0:Pu.header_info)==null?void 0:oo.course_groups)||[])==null?void 0:Su.map(Ho=>Ho==null?void 0:Ho.exercise_group_id);Ut(Ir(pl({},Wt),{exercise_group_id:ci}))}Xt(!1)}),$u=(Va,Nu)=>{Wt.page=Va,Wt.limit=Nu,Ut(pl({},Wt))};(0,a.useEffect)(()=>{!ae["exercise/getCommonHeader"]&&Fa&&!(0,On.dE)()&&tu&&jr()},[ae["exercise/getCommonHeader"]]),(0,a.useEffect)(()=>{if((Ka==null?void 0:Ka.status)=="running"){const Va=setInterval(()=>{jr()},3e3);return()=>clearInterval(Va)}},[Ka==null?void 0:Ka.status]);const jr=()=>Cl(void 0,null,function*(){const Va=yield(0,Ce.ZP)("/api/exercise_resubmits/all_resubmit_status.json",{method:"get",params:{exercise_id:cn==null?void 0:cn.categoryId}});(Va==null?void 0:Va.status)===0&&Ba(Va==null?void 0:Va.data)}),Eu=Va=>{_e({type:"exercise/setActionTabs",payload:{key:"\u5728\u7EBF\u8003\u8BD5\u667A\u80FD\u8BC4\u9605",batchSize:(Ka==null?void 0:Ka.batch_size)||Oa}}),Tl([Va],"review_result"),Tl([0,1,2],"review"),Ya(!0)},wr=()=>Cl(void 0,null,function*(){var Va;if(Fa){if(ia)return pe.ZP.warning("\u5DF2\u63D0\u4EA4\u4F5C\u4E1A\u7684\u5B66\u751F\u6570\u4E3A0\uFF0C\u65E0\u6CD5\u667A\u80FD\u8BC4\u9605!")}else return pe.ZP.warning("\u8BF7\u5148\u5F00\u542F\u667A\u80FD\u8BC4\u9605\u529F\u80FD!");if((Ka==null?void 0:Ka.status)=="running")return pe.ZP.warning("\u667A\u80FD\u8BC4\u9605\u6B63\u5728\u8FD0\u884C\u4E2D\uFF0C\u8BF7\u52FF\u91CD\u590D\u64CD\u4F5C!");Nt(!0);const Nu=yield(0,Ce.ZP)("/api/exercise_resubmits/all_resubmit.json",{method:"post",body:Ir(pl({},Wt),{batch_size:(Ka==null?void 0:Ka.batch_size)||((Va=se==null?void 0:se.actionTabs)==null?void 0:Va.batchSize),exercise_id:cn==null?void 0:cn.categoryId})});(Nu==null?void 0:Nu.status)===0&&(_e({type:"exercise/setActionTabs",payload:{key:""}}),setTimeout(()=>{jr()},800)),Nt(!1)});return ya.createElement(ya.Fragment,null,ya.createElement("div",{className:Hu.review_warp},ya.createElement(Ae.Z,{title:"\u64CD\u4F5C\u8BB0\u5F55"},ya.createElement("div",{className:Hu.btn_operate,style:{marginLeft:"10px"},onClick:()=>Cl(void 0,null,function*(){pn(!0),yield sa()})},ya.createElement("i",{className:"iconfont icon-lishijilu"}))),ya.createElement("div",null,Fa&&(Ka==null?void 0:Ka.status)=="running"&&ya.createElement("div",{className:Hu.under_review,style:{marginRight:0}},ya.createElement(jt.Z,{spinning:!0,className:"mr6",size:"small"}),ya.createElement("span",{className:"ml10"},"\u667A\u80FD\u8BC4\u9605\u4E2D"),ya.createElement("span",{className:"ml5",style:{color:"#3061D0"}},Ka==null?void 0:Ka.rate)),Fa&&["success","failed"].includes(Ka==null?void 0:Ka.status)&&ya.createElement(Ae.Z,{title:ya.createElement("div",{className:Hu.under_review},"\u667A\u80FD\u8BC4\u9605\u6210\u529F",ya.createElement("span",{style:{color:"#1B8565",margin:"0 3px",fontWeight:"bold"}},Ka==null?void 0:Ka.success),"\u4EBA\uFF0C \u5931\u8D25",ya.createElement("span",{style:{color:"#E30000",margin:"0 3px",fontWeight:"bold"}},Ka==null?void 0:Ka.fail),"\u4EBA, \u90E8\u5206\u6210\u529F",ya.createElement("span",{style:{color:"#3061D0",margin:"0 3px",fontWeight:"bold"},onClick:()=>Eu(1)},Ka==null?void 0:Ka.running_count),"\u4EBA")},ya.createElement("div",{className:Hu.under_review,style:{marginRight:"0px"}},ya.createElement("img",{src:sr.Z,className:"mr5",style:{width:14,height:14}}),"\u6210\u529F",ya.createElement("span",{style:{color:"#1B8565",fontWeight:"bold"},onClick:()=>Eu(2)},Ka==null?void 0:Ka.success),"\u4EBA\uFF0C \u5931\u8D25",ya.createElement("span",{style:{color:"#E30000",fontWeight:"bold"},onClick:()=>Eu(0)},Ka==null?void 0:Ka.fail),"\u4EBA\uFF0C \u90E8\u5206\u6210\u529F",ya.createElement("span",{style:{color:"#3061D0",fontWeight:"bold"},onClick:()=>Eu(1)},Ka==null?void 0:Ka.running_count),"\u4EBA"))),(Ka==null?void 0:Ka.status)!="running"&&pt&&ya.createElement("div",{className:`${Hu.btn_review} ${(Ka==null?void 0:Ka.status)=="running"&&Hu.is_disabled}`,onClick:()=>{if((Ka==null?void 0:Ka.status)!="running"){if(!Fa)return pe.ZP.warning("\u8BF7\u5148\u5F00\u542F\u667A\u80FD\u8BC4\u9605\u529F\u80FD!"),!1;_e({type:"exercise/setActionTabs",payload:{key:"\u5728\u7EBF\u8003\u8BD5\u667A\u80FD\u8BC4\u9605"}}),Wt.page=1,Wt.review=[0],Ut(pl({},Wt)),Ya(!1)}}},ya.createElement("img",{src:Ga.Z,className:"mr8",style:{width:14,height:14}}),"\u667A\u80FD\u8BC4\u9605"),(Ka==null?void 0:Ka.status)!="running"&&!pt&&ya.createElement(ya.Fragment,null,Ve)),ya.createElement(Fe.default,{width:1130,bodyStyle:{maxHeight:"calc(100vh - 200px)",overflowY:"auto"},centered:!0,title:"\u667A\u80FD\u8BC4\u9605\u7ED3\u679C",open:((Be=se.actionTabs)==null?void 0:Be.key)==="\u5728\u7EBF\u8003\u8BD5\u667A\u80FD\u8BC4\u9605",destroyOnClose:!0,confirmLoading:Pt,onCancel:()=>{Ya(!1),_e({type:"exercise/setActionTabs",payload:{key:""}})},okText:Oa?"\u7ACB\u5373\u667A\u80FD\u8BC4\u9605":"\u5F00\u59CB\u8BC4\u9605",onOk:()=>wr()},ya.createElement(jn.default,{className:Hu.collapseSty,defaultActiveKey:["1"],expandIconPosition:"end",ghost:!0,expandIcon:({isActive:Va})=>ya.createElement("span",{style:{color:"#3061D0"}},Va?"\u6536\u8D77":"\u5C55\u5F00"),items:[{key:"1",label:ya.createElement("span",{style:{color:"#FF9D18"}},ya.createElement("i",{className:"iconfont icon-tishi9 font14 mr5"}),ya.createElement("span",null,"\u6E29\u99A8\u63D0\u793A")),children:ya.createElement("div",{style:{color:"#333",fontSize:"14px",background:"#F6F7F9",padding:"0px 28px 10px"}},ya.createElement("div",null,"1.\u667A\u80FD\u8BC4\u9605\u6761\u4EF6\uFF1A \u4EC5\u652F\u6301\u7B80\u7B54\u9898\u3002\u968F\u673A\u8BD5\u5377\u548C\u6A21\u62DF\u8003\u8BD5\u6682\u4E0D\u652F\u6301\u667A\u80FD\u8BC4\u9605\uFF1B"),ya.createElement("div",null,"2.\u667A\u80FD\u8BC4\u9605\u6D41\u7A0B\uFF1A \u5F00\u542F\u667A\u80FD\u8BC4\u9605\u5E76\u8BBE\u7F6E\u597D\u8BC4\u5206\u6807\u51C6\u548C\u8BC4\u9605\u8EAB\u4EFD\uFF0C\u5C31\u53EF\u4EE5\u8BA9AI\u52A9\u6559\u5E2E\u52A9\u4F60\u6253\u5206\u548C\u5199\u8BC4\u8BED\uFF1B"),ya.createElement("div",null,"3.\u8BBE\u7F6E\u8BC4\u5206\u6807\u51C6\u7684\u65B9\u5F0F\u5206\u4E3A\u4E24\u79CD\uFF1A\u6240\u6709\u7B80\u7B54\u9898\u7EDF\u4E00\u8BBE\u7F6E\u8BC4\u5206\u6807\u51C6\u3001\u6BCF\u4E00\u9053\u7B80\u7B54\u9898\u5355\u72EC\u8BBE\u7F6E\u8BC4\u5206\u6807\u51C6\uFF1B"),ya.createElement("div",null,"4.\u667A\u80FD\u8BC4\u9605\u65B9\u5F0F\uFF1A\u8FDB\u5165\u5B66\u751F\u8BD5\u5377\u8BE6\u60C5\u9875\u667A\u80FD\u8BC4\u9605\u3001\u5728\u5B66\u751F\u7B54\u9898\u5217\u8868\u6279\u91CF\u667A\u80FD\u8BC4\u9605\uFF1B"),ya.createElement("div",null,"5.\u5927\u6A21\u578B\u667A\u80FD\u8BC4\u9605\u5B8C\u6210\u540E\uFF0C\u9700\u8981\u6559\u5E08\u81EA\u5DF1\u518D\u4EBA\u5DE5\u68C0\u67E5\u4E00\u4E0B\u5927\u6A21\u578B\u7684\u8BC4\u9605\u7ED3\u679C\u3002\u66F4\u591A\u7591\u95EE\u53C2\u89C1",ya.createElement("span",null,"\u5E2E\u52A9\u6587\u6863")))}]}),ya.createElement(ti,{className:"mt10",title:"\u9009\u62E9\u73ED\u7EA7",items:(Ht=((Pe=mn==null?void 0:mn.header_info)==null?void 0:Pe.course_groups)||[])==null?void 0:Ht.map(Va=>({id:Va==null?void 0:Va.exercise_group_id,name:Va==null?void 0:Va.exercise_group_name,count:(Va==null?void 0:Va.exercise_group_students)||0})),value:Wt.exercise_group_id,onChange:Va=>Tl(Va,"exercise_group_id")}),ya.createElement(ti,{className:"mt10",title:"\u8BC4\u9605\u72B6\u6001",items:[{id:0,name:"\u672A\u8BC4\u9605",count:((vn=mn==null?void 0:mn.header_info)==null?void 0:vn.unreview_counts)||0},{id:1,name:"\u5DF2\u8BC4\u9605",count:((hn=mn==null?void 0:mn.header_info)==null?void 0:hn.review_counts)||0},{id:2,name:"\u8BC4\u9605\u4E2D",count:((xt=mn==null?void 0:mn.header_info)==null?void 0:xt.reviewing_counts)||0}],value:Wt.review,onChange:Va=>Tl(Va,"review")}),!!Oa&&(au||((Gt=se==null?void 0:se.actionTabs)==null?void 0:Gt.showReview))&&ya.createElement(ti,{className:"mt10",title:"\u8BC4\u9605\u7ED3\u679C",items:[{id:0,name:"\u5931\u8D25",count:((Bn=mn==null?void 0:mn.header_info)==null?void 0:Bn.fail)||0},{id:1,name:"\u90E8\u5206\u6210\u529F",count:((Dn=mn==null?void 0:mn.header_info)==null?void 0:Dn.part_success)||0},{id:2,name:"\u6210\u529F",count:((Fn=mn==null?void 0:mn.header_info)==null?void 0:Fn.success)||0}],value:Wt.review_result,onChange:Va=>Tl(Va,"review_result")}),ya.createElement("div",{className:"flex justify-between item-center mb10 mt20"},ya.createElement("div",{className:"flex item-center"},ya.createElement("div",{className:"current flex item-center",onClick:()=>{_e({type:"exercise/setActionTabs",payload:{key:"\u6D4B\u8BD5AI\u8BC4\u5206"}})}},ya.createElement("img",{src:Wa,width:14,style:{paddingBottom:"2px"}}),ya.createElement("span",{style:{color:"#3061D0",marginLeft:"5px"}},"\u6D4B\u8BD5AI\u8BC4\u5206")),!pt&&ya.createElement("div",{className:"ml30 current flex item-center",onClick:()=>{var Va;window.location.href=`/classrooms/${cn.coursesId}/exercise/${cn.categoryId}/detail?random=${(Va=se==null?void 0:se.commonHeader)==null?void 0:Va.is_random}&tabs=12`}},ya.createElement("img",{src:rl,width:14}),ya.createElement("span",{style:{color:"#3061D0",marginLeft:"5px"}},"\u67E5\u770B\u8BC4\u5206\u6807\u51C6"))),ya.createElement("div",{style:{marginLeft:"auto"},className:"flex item-center"},ya.createElement(Hr.t7,{className:Hu.input,style:{width:"415px"},value:Wt.keyword,onChange:Va=>Tl(Va,"search"),placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22"}))),ya.createElement(x.default,{loading:Rt,dataSource:(mn==null?void 0:mn.data)||[],columns:Zu,pagination:{current:Wt.page,hideOnSinglePage:!0,showQuickJumper:!0,showSizeChanger:!0,pageSize:Wt.limit,className:"mb0",pageSizeOptions:["10","20","50","100","200"],total:(mn==null?void 0:mn.size)||0,size:"default",showTotal:Va=>ya.createElement("span",{className:"font12 c-666"},"\u5171",ya.createElement("span",{style:{color:"#3061D0"}}," ",Va," "),"\u6761\u6570\u636E"),onChange:$u},onChange:(Va,Nu,oo)=>{oo!=null&&oo.order?(Wt.sort_by=oo==null?void 0:oo.field,Wt.direction=(oo==null?void 0:oo.order)==="ascend"?"asc":"desc"):(Wt.sort_by=null,Wt.direction=null),Ut(pl({},Wt))}})),ya.createElement(Fe.default,{width:800,bodyStyle:{maxHeight:"calc(100vh - 200px)",overflowY:"auto"},centered:!0,title:"\u5931\u8D25\u539F\u56E0",open:ha,destroyOnClose:!0,onCancel:()=>{dt(!1)},footer:null},ya.createElement(x.default,{loading:bn,dataSource:La||[],columns:[{title:"\u9898\u578B",width:100,dataIndex:"question_type",ellipsis:!0,render:Va=>ya.createElement(Ae.Z,{title:Va||"--"},Va||"--")},{title:"\u9898\u5E72",dataIndex:"question_title",ellipsis:!0,render:Va=>ya.createElement(Ae.Z,{title:ya.createElement(uu.Z,{value:Va,showTextOnly:!0,className:"font14"})},ya.createElement(uu.Z,{value:Va,showTextOnly:!0,className:"font14"}))},{title:"\u5931\u8D25\u539F\u56E0",dataIndex:"info",ellipsis:!0,render:Va=>ya.createElement(Ae.Z,{title:Va||"--"},Va||"--")}]})),ya.createElement(Fe.default,{width:800,bodyStyle:{maxHeight:"calc(100vh - 200px)",overflowY:"auto"},centered:!0,title:"\u64CD\u4F5C\u8BB0\u5F55",open:Qn,destroyOnClose:!0,onCancel:()=>{pn(!1)},footer:null},ya.createElement(x.default,{pagination:!1,dataSource:Tn,columns:Cr,className:"mb10",loading:da})))};var Xo=(0,he.connect)(({shixunHomeworks:ce,exercise:se,loading:ae,user:_e})=>({shixunHomeworks:ce,exercise:se,loading:ae.effects,user:_e}))(io),Sn=z(67294),Li=Object.defineProperty,ic=Object.defineProperties,lc=Object.getOwnPropertyDescriptors,tc=Object.getOwnPropertySymbols,nc=Object.prototype.hasOwnProperty,Jl=Object.prototype.propertyIsEnumerable,Vs=(ce,se,ae)=>se in ce?Li(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,ri=(ce,se)=>{for(var ae in se||(se={}))nc.call(se,ae)&&Vs(ce,ae,se[ae]);if(tc)for(var ae of tc(se))Jl.call(se,ae)&&Vs(ce,ae,se[ae]);return ce},Gs=(ce,se)=>ic(ce,lc(se)),Wu=(ce,se)=>{var ae={};for(var _e in ce)nc.call(ce,_e)&&se.indexOf(_e)<0&&(ae[_e]=ce[_e]);if(ce!=null&&tc)for(var _e of tc(ce))se.indexOf(_e)<0&&Jl.call(ce,_e)&&(ae[_e]=ce[_e]);return ae},Qi=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const pc=ce=>{var se=ce,{exercise:ae,loading:_e,dispatch:pt,globalSetting:Ve,checkDomainAuthority:Dt,getparams:et,user:Be,classroomList:Pe}=se,Ht=Wu(se,["exercise","loading","dispatch","globalSetting","checkDomainAuthority","getparams","user","classroomList"]),vn,hn,xt,Gt,Bn,Dn,Fn,Wt,Ut;const[Yt]=(0,he.useSearchParams)(),ea=(0,he.useParams)();let[nn,zn]=(0,a.useState)(ri({page:1,limit:20},ea));const{commonHeader:mn,updateIndex:pa}=ae,{userInfo:Pt}=Be,[Nt,Rt]=(0,a.useState)({}),[Xt,cn]=(0,a.useState)(0),[tn,Ja]=(0,a.useState)(0),[ha,dt]=(0,a.useState)(!1),[Fa,ia]=(0,a.useState)("alert"),[wu,Sa]=(0,a.useState)(0),[Hn,Oa]=(0,a.useState)(!1),[tu,Ka]=(0,a.useState)(!1),[Ba]=fe.default.useForm(),[La,Zn]=(0,a.useState)([]),[bn,ca]=(0,a.useState)(1),[Qn,pn]=(0,a.useState)(""),[Tn,En]=(0,a.useState)(),[da,Ha]=(0,a.useState)(!1),[au,Ya]=(0,a.useState)(!1),[Cr,Zu]=(0,a.useState)({name:"",id:"",list:[]}),[sa,Ru]=(0,a.useState)({}),[mr,gl]=(0,a.useState)({}),[Tl,mu]=(0,a.useState)(!0),[$u,jr]=(0,a.useState)(""),[Eu,wr]=(0,a.useState)(""),[Va,Nu]=(0,a.useState)(""),[oo,Su]=(0,a.useState)([]),[,,Pu]=(0,sn.U)(ne.N0,{}),[ci,Ho]=(0,a.useState)([]),[ji,fc]=(0,a.useState)(!0),[qa,bl]=(0,a.useState)({});(0,a.useEffect)(()=>{let Ln={};if(Yt.get("exercise_group_id")&&!pa){if(Yt.get("statistics")){let kn=[];const Dr=Yt.get("scope");Dr==="0"&&(kn=["all"]),Dr==="1"&&(kn=[1,2,3]),Dr==="2"&&(kn=[2,3]),Ln={exercise_group_id:Yt.get("exercise_group_id"),commit_status:kn}}else Ln={review:[0,2],commit_status:[2,3]},Yt.get("exercise_group_id")!=="0"&&(Ln.exercise_group_id=[Number(Yt.get("exercise_group_id"))]);Ba.setFieldsValue(ri({},Ln))}return nn=ri(ri({},nn),Ln),zn(ri({},nn)),lo(),Yu(nn),Su([]),()=>{pt({type:"exercise/setUpdateIndex",payload:"clear"})}},[pa]);const lo=()=>Qi(void 0,null,function*(){var Ln,kn;const Dr=yield(0,Ce.ZP)(`/api/exercises/${nn.categoryId}/header_info.json`,{method:"get"});(Dr==null?void 0:Dr.status)===0&&(Ru((Dr==null?void 0:Dr.data)||{}),console.log((Ln=Dr==null?void 0:Dr.data)==null?void 0:Ln.course_groups),pt({type:"exercise/save",payload:{course_groups:(kn=Dr==null?void 0:Dr.data)==null?void 0:kn.course_groups}}))}),Yu=Ln=>Qi(void 0,null,function*(){var kn,Dr,Rs,ec,es,Ad,C0,Zd,Nm,dm,kg;mu(!0);const vc=yield(0,Ce.ZP)(`/api/exercises/${nn.categoryId}/exercise_users.json`,{method:"get",params:Ln});if((vc==null?void 0:vc.status)===0){let jg=(Rs=(Dr=(kn=vc==null?void 0:vc.data)==null?void 0:kn.exercise_users)==null?void 0:Dr[0])==null?void 0:Rs.commit_status;fc(jg==2||jg==3),gl({exercise_users:((ec=vc==null?void 0:vc.data)==null?void 0:ec.exercise_users)||[],current_answer_user:((es=vc==null?void 0:vc.data)==null?void 0:es.current_answer_user)||{}}),jr(((Ad=vc==null?void 0:vc.data)==null?void 0:Ad.appraise_user_login)||""),wr(((C0=vc==null?void 0:vc.data)==null?void 0:C0.first_export_user_login)||""),cn((Zd=vc==null?void 0:vc.data)==null?void 0:Zd.total_count),Ja(typeof((Nm=vc==null?void 0:vc.data)==null?void 0:Nm.total_score)=="string"?Number((dm=vc==null?void 0:vc.data)==null?void 0:dm.total_score):(kg=vc==null?void 0:vc.data)==null?void 0:kg.total_score)}Nu(vc==null?void 0:vc.status),mu(!1)});(0,a.useEffect)(()=>{pt({type:"exercise/setSaveExerciseDownUsers",payload:$c})},[Eu,Xt,JSON.stringify(nn)]);function tl(Ln){return Qi(this,null,function*(){var kn,Dr,Rs,ec;En(Ln==null?void 0:Ln.exercise_user_id),Ha(Ln.commit_status===2||Ln.commit_status===3),Oa(!0);let es=yield(0,Ce.ZP)(`/api/exercises/${nn.categoryId}/student_info.json`,{method:"get",params:{exercise_user_id:Ln==null?void 0:Ln.exercise_user_id}});((Dr=(kn=es==null?void 0:es.data)==null?void 0:kn.exercise_user_photos)==null?void 0:Dr.length)>0?dt(!0):pe.ZP.info("\u5F53\u524D\u6682\u65E0\u7167\u7247"),Zn((Rs=es==null?void 0:es.data)==null?void 0:Rs.exercise_user_photos),Sa((ec=es==null?void 0:es.data)==null?void 0:ec.alert_count),Oa(!1)})}const _r=Ln=>{nn.page=1;const kn=Object.assign({},Ba.getFieldsValue());Object.keys(kn).map(function(Dr){Dr==="objective_score_gte"||Dr==="objective_score_lte"||(kn[Dr].includes("all")?(delete nn[Dr],Ba.setFieldsValue({[Dr]:"all"})):(nn[Dr]=kn[Dr],kn[Dr]==""||!kn[Dr]?Ba.setFieldsValue({[Dr]:"all"}):Ba.setFieldsValue({[Dr]:nn[Dr]})))}),("objective_score_gte"in Ln||"objective_score_lte"in Ln)&&(kn.objective_score_gte&&kn.objective_score_lte&&kn.objective_score_gte>kn.objective_score_lte?(Ba.setFieldsValue({objective_score_lte:kn.objective_score_gte}),nn.objective_score_lte=kn.objective_score_gte||null,nn.objective_score_gte=kn.objective_score_gte||null):(nn.objective_score_lte=kn.objective_score_lte||null,nn.objective_score_gte=kn.objective_score_gte||null)),zn(ri({},nn)),Yu(nn),et(ri({},nn))},Io=(Ln=1,kn=20)=>{nn.page=Ln,nn.limit=kn,zn(ri({},nn)),Yu(nn)};let os=new Date().getTime();const Zl=[{title:"\u5E8F\u53F7",dataIndex:"name",fixed:"left",align:"center",render:(Ln,kn,Dr)=>Sn.createElement(Ae.Z,{title:((nn.page||1)-1)*nn.limit+Dr+1},Sn.createElement("span",null,((nn.page||1)-1)*nn.limit+Dr+1))},{title:"\u59D3\u540D",dataIndex:"user_name",fixed:"left",align:"left",render:(Ln,kn)=>Sn.createElement("div",{style:{display:"flex",alignItems:"center"},onClick:()=>{var Dr;if(Ln&&(0,On.GJ)()){if((0,On.Rm)()&&!((Dr=Pe.AssistantObject.exercise)!=null&&Dr.can_view)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}switch(kn.commit_status){case 0:if(!(0,On.Ny)()){pe.ZP.warning("\u5B66\u751F\u672A\u5F00\u59CB\u8003\u8BD5\uFF0C\u60A8\u65E0\u6743\u67E5\u770B");return}break;default:console.log("\u5F53\u524D\u63D0\u4EA4\u72B6\u6001",kn.commit_status)}Ln&&(0,On.GJ)()&&(Us(),(0,de.xg)(`/classrooms/${nn.coursesId}/exercise/${nn.categoryId}/review/${kn==null?void 0:kn.login}`))}}},Sn.createElement("span",{className:Ln&&(0,On.GJ)()?Jt.operationLink:""},Ln||"--"),!!(kn!=null&&kn.delayed_at)&&mn.time!==-1&&Sn.createElement(Ae.Z,{title:Sn.createElement("div",null,"\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\u8C03\u6574\u81F3",Sn.createElement("span",{className:"ml5"},Ge()(kn.delayed_at).format("YYYY-MM-DD HH:mm")))},Sn.createElement("span",{className:"iconfont icon-shizhong c-blue"})))},{title:"\u5B66\u53F7",dataIndex:"student_id",align:"left",sorter:!0,render:Ln=>Ln||"--"},!(sa!=null&&sa.is_excellent)&&(sa==null?void 0:sa.groups_count)!==0&&{title:"\u5206\u73ED",dataIndex:"user_group_name",align:"left",render:(Ln,kn)=>Sn.createElement("div",{className:Jt.banding,title:Ln||"--"},Ln||"--")},{title:(mn==null?void 0:mn.exercise_type)==2&&!(0,On.dE)()?"\u6700\u9AD8\u6210\u7EE9":"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",align:"center",sorter:!0,render:(Ln,kn)=>kn.commit_status===0||kn.commit_status===1?"--":!kn.open_total_score&&(0,On.dE)()?"\u8001\u5E08\u5BA1\u6838\u4E2D":(Ln=typeof Ln=="number"?Number(Ln):Ln,console.log(typeof Ln),Ln||(Ln=0),Ln===100?Sn.createElement("span",{className:"c-green"},Ln):Ln>60?Sn.createElement("span",{className:"c-orange"},Ln):Ln==tn*.6?Sn.createElement("span",{className:"c-red"},Ln):Sn.createElement("span",null,Ln))},!((sa==null?void 0:sa.objective)!==1||(sa==null?void 0:sa.objective)===1&&(sa==null?void 0:sa.subjective)!==1)&&{title:"\u5BA2\u89C2\u9898\u5F97\u5206",dataIndex:"objective_score",align:"center",render:(Ln,kn)=>{if(kn.commit_status===0||kn.commit_status===1)return"--";if(!kn.open_total_score&&(0,On.dE)())return"\u8001\u5E08\u5BA1\u6838\u4E2D";{Ln=typeof Ln=="number"?Number(Ln):Ln,Ln||(Ln=0);let Dr;return Ln>=0&&Ln<=60?Dr=Sn.createElement("span",null,Ln):Ln===100?Dr=Sn.createElement("span",{className:"c-green"},Ln):Ln>60?Dr=Sn.createElement("span",{className:"c-orange"},Ln):Dr="--",Sn.createElement(oa,{renderText:Dr,item:kn})}}},!((sa==null?void 0:sa.subjective)!==1||(sa==null?void 0:sa.subjective)===1&&(sa==null?void 0:sa.objective)!==1)&&{title:"\u4E3B\u89C2\u9898\u5F97\u5206",dataIndex:"subjective_score",align:"center",render:(Ln,kn)=>{if(kn.commit_status===0||kn.commit_status===1)return"--";if(!kn.open_total_score&&(0,On.dE)())return"\u8001\u5E08\u5BA1\u6838\u4E2D";{let Dr;sa!=null&&sa.appraise_setting&&(sa!=null&&sa.sealed_review)&&new Date(sa==null?void 0:sa.appraise_end_time).getTime()>os&&(Dr="--"),!(kn!=null&&kn.has_comment)&&kn.review_status&&(Dr="\u8BC4\u9605\u4E2D"),kn!=null&&kn.has_comment?Dr="\u5DF2\u8BC4\u9605":Dr="\u672A\u8BC4\u9605",Ln=typeof Ln=="number"?Number(Ln):Ln,Ln||(Ln=0);let Rs;return Ln===0?Rs=Sn.createElement("span",null,Ln," ",Dr==="\u672A\u8BC4\u9605"&&Sn.createElement("span",{className:"c-red"}," (\u5F85\u8BC4\u9605)")):Ln>0&&Ln<=60?Rs=Sn.createElement("span",null,Ln):Ln===100?Rs=Sn.createElement("span",{className:"c-green"},Ln):Ln>60?Rs=Sn.createElement("span",{className:"c-orange"},Ln):Rs="--",Rs}}},(mn==null?void 0:mn.open_make_up)&&{title:"\u8865\u8003\u6263\u5206",dataIndex:"make_up_score",render:(Ln,kn)=>[1,2].includes(kn==null?void 0:kn.commit_status)?Ln:"--"},{title:"\u63D0\u4EA4\u72B6\u6001",dataIndex:"commit_status",align:"left",render:(Ln,kn)=>Ln===0?Sn.createElement("span",{style:{color:"#666666"}},"\u672A\u5F00\u59CB"):Ln===1?Sn.createElement("span",{style:{color:"#DF3042"}},!kn.is_make_up&&"\u8003\u8BD5\u4E2D",kn.is_make_up&&"\u8003\u8BD5\u4E2D (\u8865\u8003)"):Ln===2?Sn.createElement("span",{style:{color:"#5AB891"}},!kn.is_make_up&&!kn.is_force_commit&&"\u5DF2\u4EA4\u5377",kn.is_make_up&&!kn.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003)",kn.is_make_up&&kn.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003/\u5F3A\u5236)",!kn.is_make_up&&kn.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u5F3A\u5236)"):Sn.createElement("span",{style:{color:"#5AB891"}},!kn.is_make_up&&!kn.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54",kn.is_make_up&&!kn.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003)",kn.is_make_up&&kn.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003/\u5F3A\u5236)",!kn.is_make_up&&kn.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u5F3A\u5236)")},{title:"\u5F00\u59CB\u7B54\u9898\u65F6\u95F4",dataIndex:"start_at",align:"left",sorter:!0,render:Ln=>Ln?Ge()(Ln).format("YYYY-MM-DD HH:mm"):"--"},{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"end_at",sorter:!0,render:(Ln,kn)=>Ln?Ge()(Ln).format("YYYY-MM-DD HH:mm"):"--"},(0,On.GJ)()&&(mn==null?void 0:mn.exercise_type)===2&&{title:Sn.createElement("span",null,"\u8003\u8BD5\u6B21\u6570",Sn.createElement(Ae.Z,{title:"\u6BCF\u4E2A\u5B66\u751F\u7684\u5DF2\u8003\u8BD5\u6B21\u6570/\u53EF\u8003\u8BD5\u6B21\u6570\uFF0C\u53EF\u70B9\u51FB\u67E5\u770B\u5B66\u751F\u7684\u8003\u8BD5\u8BB0\u5F55"},Sn.createElement("i",{className:"iconfont icon-xiaowenhao font14 current"}))),dataIndex:"exercise_user_redo_count",render:(Ln,kn)=>{var Dr;return Sn.createElement("span",{style:{color:"#3061D0",cursor:"pointer"},onClick:()=>{const Rs={name:kn==null?void 0:kn.user_name,id:kn==null?void 0:kn.student_id,list:kn==null?void 0:kn.simulate_exercise_records};Zu(ri({},Rs)),Ya(!0)}},(Dr=kn==null?void 0:kn.simulate_exercise_records)==null?void 0:Dr.length,"/",mn==null?void 0:mn.simulate_exercise_num)||"--"}},{title:"\u6253\u56DE\u6B21\u6570",dataIndex:"exercise_user_redo_count",className:((vn=Pt==null?void 0:Pt.course)==null?void 0:vn.course_role)===15||(mn==null?void 0:mn.exercise_type)==2?Jt.noShow:"",align:"left",render:(Ln,kn)=>Sn.createElement("div",{style:{display:"flex",alignItems:"center"}},Sn.createElement("span",{className:Jt.operationLink,onClick:()=>{pt({type:"exercise/setActionTabs",payload:{key:"\u6253\u56DE\u8BB0\u5F55",student_id:kn.user_id}})}},Ln||"0"))},(mn==null?void 0:mn.screen_open)&&{title:Sn.createElement("span",null,"\u5207\u5C4F\u6B21\u6570",Sn.createElement(Ae.Z,{title:"\u7EA2\u8272\u4EE3\u8868\u5B66\u751F\u5207\u5C4F\u8D85\u8FC7\u89C4\u5B9A\u6B21\u6570\u88AB\u5F3A\u5236\u4EA4\u5377"},Sn.createElement("span",{className:"icon-xiaowenhao"}))),dataIndex:"screen_used_num",align:"center",render:(Ln,kn)=>Sn.createElement("span",{style:Ln>0?{cursor:"pointer"}:{},className:Ln>(kn==null?void 0:kn.screen_total_num)?"c-red":"",onClick:()=>Qi(void 0,null,function*(){if(Ln===0)return;const Dr=yield(0,ne.Yu)(ea.categoryId,{exercise_user_id:kn.exercise_user_id});Fe.default.info({title:`\u5207\u5C4F\u8BB0\u5F55\uFF08${kn==null?void 0:kn.user_name}\uFF09`,icon:null,closable:!0,className:Jt.recordScreenModal,maskClosable:!0,width:616,centered:!0,content:Sn.createElement(x.default,{style:{marginTop:14},bordered:!0,pagination:!1,rowKey:"time",columns:[{title:"\u5F00\u59CB\u5207\u5C4F\u65F6\u95F4",align:"center",dataIndex:"time"},{title:"\u5207\u5C4F\u65F6\u957F\uFF08\u79D2\uFF09",align:"center",dataIndex:"time_long"},{title:"\u5224\u5B9A\u5207\u5C4F\u6B21\u6570",align:"center",dataIndex:"count"}],dataSource:Dr==null?void 0:Dr.data})})})},Ln,"/",kn==null?void 0:kn.screen_total_num)},(mn==null?void 0:mn.exercise_status)>1&&(mn==null?void 0:mn.open_camera)&&(0,On.GJ)()&&!((hn=Ve.setting)!=null&&hn.is_local)&&{title:"\u8003\u8BD5\u7167\u7247",dataIndex:"photo_count",align:"center",render:(Ln,kn)=>kn.commit_status>0?Sn.createElement("a",{onClick:()=>{tl(kn)}},`${Ln||0}/${mn==null?void 0:mn.photo_count}`):"--"},(mn==null?void 0:mn.ip_bind)&&(0,On.Gg)()&&{title:"\u8003\u8BD5IP",dataIndex:"last_ip",align:"center",render:(Ln,kn)=>Sn.createElement(Sn.Fragment,null,Ln||"--",kn.commit_status<=1&&mn.ip_bind&&kn.last_ip&&Sn.createElement(me.ZP,{type:"link",onClick:()=>Qi(void 0,null,function*(){const Dr=Fe.default.confirm({title:Sn.createElement(oe.Z,null,Sn.createElement(ve.Z,{flex:"1"},"\u89E3\u9664\u7ED1\u5B9A"),Sn.createElement(ve.Z,null,Sn.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:()=>Dr.destroy()}))),width:500,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",className:"custom-modal-divider",content:Sn.createElement("div",null,"\u4E3A\u5B66\u751F\u89E3\u9664\u8003\u8BD5IP\u7ED1\u5B9A\u540E\uFF0C\u5B66\u751F\u53EF\u4EE5\u4F7F\u7528\u65B0\u7684IP\u5730\u5740\u8FDB\u5165\u8003\u8BD5\u3002",Sn.createElement("span",{className:"c-red"},"\u5982\u679C\u8BE5\u5B66\u751F\u6B63\u5728\u8003\u8BD5\u4E2D\uFF0C\u5C06\u65E0\u6CD5\u4F5C\u7B54\uFF0C\u9700\u8981\u91CD\u65B0\u8FDB\u5165\u8003\u8BD5\u3002"),"\u60A8\u786E\u5B9A\u8981\u89E3\u9664\u8BE5\u5B66\u751F\u7684\u8003\u8BD5IP\u7ED1\u5B9A\uFF1F"),onOk:()=>Qi(void 0,null,function*(){(yield(0,ne.ab)({id:nn.categoryId,exercise_user_id:kn.exercise_user_id})).status===0&&(pe.ZP.success("\u89E3\u7ED1\u6210\u529F"),Yu(nn))})})})},"\u89E3\u7ED1"))},(mn==null?void 0:mn.open_camera)&&(0,On.Gg)()&&mn.exercise_status<3&&!((xt=Ve.setting)!=null&&xt.is_local)&&{title:"\u5141\u8BB8\u4E0D\u62CD\u6444",dataIndex:"close_camera",align:"center",render:(Ln,kn)=>Sn.createElement(Ne.Z,{checked:Ln,onClick:()=>Qi(void 0,null,function*(){Ln?Fe.default.info({title:"\u63D0\u793A",content:Sn.createElement("div",null,"\u4E0D\u5141\u8BB8\u4FEE\u6539"),okText:"\u786E\u8BA4"}):Fe.default.confirm({title:"\u5141\u8BB8\u4E0D\u6444\u50CF\u8B66\u544A",content:Sn.createElement("div",null,"\u4E3A\u4FDD\u8BC1\u8003\u8BD5\u516C\u5E73\uFF0C\u672C\u6B21\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A\u8BBE\u7F6E\uFF0C\u8FD9\u9700\u8981\u8C03\u7528\u5B66\u751F\u7684\u6444\u50CF\u5934\u3002\u5982\u5B66\u751F\u786C\u4EF6\u8BBE\u65BD\u786E\u6709\u95EE\u9898\uFF0C\u4E3A\u4FDD\u8BC1\u5B66\u751F\u8003\u8BD5\u6743\u5229\uFF0C\u6559\u5E08\u53EF\u4E34\u65F6\u53D6\u6D88\u9650\u5236\uFF0C\u5141\u8BB8\u5B66\u751F\u53C2\u8003\u3002 \u672C\u64CD\u4F5C\u4E0D\u53EF\u64A4\u56DE\uFF0C\u4E0D\u53EF\u4FEE\u6539\u3002 \u60A8\u786E\u8BA4\u540C\u610F\u8BE5\u5B66\u751F\u4E0D\u5F00\u542F\u6444\u50CF\u5934\u53C2\u52A0\u8003\u8BD5\u5417\uFF1F"),onOk:()=>Qi(void 0,null,function*(){const Dr=yield(0,ne.cC)(Gs(ri({},nn),{exercise_user_id:kn.exercise_user_id}));(Dr==null?void 0:Dr.status)===0&&(pe.ZP.success("\u64CD\u4F5C\u6210\u529F"),Yu(nn))})})})})},(0,On.GJ)()&&{title:"\u8BC4\u9605\u72B6\u6001",dataIndex:"has_comment",align:"center",render:(Ln,kn)=>sa!=null&&sa.appraise_setting&&(sa!=null&&sa.sealed_review)&&new Date(sa==null?void 0:sa.appraise_end_time).getTime()>os?"--":!Ln&&kn.review_status?"\u8BC4\u9605\u4E2D":Ln?"\u5DF2\u8BC4\u9605":"\u672A\u8BC4\u9605"},((mn==null?void 0:mn.assistant_auth)||(0,On.GJ)()||(0,On.dE)())&&Dt&&{title:"\u64CD\u4F5C",fixed:"right",dataInex:"action",align:"left",className:Jt.operationCol,render:(Ln,kn)=>{var Dr,Rs;return(mn==null?void 0:mn.exercise_status)===-1?Sn.createElement("div",null," ",(0,On.GJ)()&&Sn.createElement("a",{onClick:ec=>{ec.stopPropagation(),pt({type:"classroomList/setActionTabs",payload:{key:"\u4FEE\u6539\u6210\u7EE9",id:kn==null?void 0:kn.exercise_user_id,type:"exercise"}})}},"\u4FEE\u6539\u6210\u7EE9"),Sn.createElement("a",{style:{marginLeft:(0,On.GJ)()&&10},onClick:(0,Ta.debounce)(ec=>Qi(void 0,null,function*(){var es,Ad,C0;ec.stopPropagation();let Zd=yield(0,Ce.ZP)(`/api/exercises/${nn==null?void 0:nn.categoryId}/exercise_user/view_detail.json`,{method:"get",params:{exercise_user_id:kn==null?void 0:kn.exercise_user_id}});Fe.default.confirm({title:"\u8003\u8BD5\u8BE6\u60C5",closable:!0,width:1200,icon:null,content:Sn.createElement("div",null,Sn.createElement("div",{style:{display:"flex"}},Sn.createElement("div",null,Sn.createElement("span",{style:{color:"#666666"}},"\u5B66\u751F\u59D3\u540D"),Sn.createElement("span",{style:{marginLeft:10}},(es=Zd==null?void 0:Zd.data)==null?void 0:es.user_name)),Sn.createElement("div",{style:{marginLeft:60}},Sn.createElement("span",{style:{color:"#666666"}},"\u5B66\u53F7"),Sn.createElement("span",{style:{marginLeft:10}},(Ad=Zd==null?void 0:Zd.data)==null?void 0:Ad.student_id)),Sn.createElement("div",{style:{marginLeft:60}},Sn.createElement("span",{style:{color:"#666666"}},"\u73ED\u7EA7"),Sn.createElement("span",{style:{marginLeft:10}},(C0=Zd==null?void 0:Zd.data)==null?void 0:C0.group_name))),Sn.createElement("div",{style:{marginTop:22,marginBottom:20}},Sn.createElement(x.default,{columns:[{title:"\u9898\u578B",dataIndex:"type_name",align:"center",render:()=>"\u5F97\u5206"},{title:"\u5355\u9009\u9898",dataIndex:"single_score",align:"center"},{title:"\u591A\u9009\u9898",dataIndex:"multiple_score",align:"center"},{title:"\u586B\u7A7A\u9898",dataIndex:"completion_score",align:"center"},{title:"\u5224\u65AD\u9898",dataIndex:"judgment_score",align:"center"},{title:"\u7F16\u7A0B\u9898",dataIndex:"program_score",align:"center"},{title:"\u5B9E\u8BAD\u9898",dataIndex:"practical_score",align:"center"},{title:"\u7EC4\u5408\u9898",dataIndex:"combination_socre",align:"center"},{title:"\u7B80\u7B54\u9898",dataIndex:"subjective_score",align:"center"},{title:"\u7A0B\u5E8F\u586B\u7A7A\u9898",dataIndex:"bprogram_score",align:"center"},{title:"\u603B\u5206",dataIndex:"total_score",align:"center",render:(Nm,dm)=>Sn.createElement("span",{style:{color:(dm==null?void 0:dm.type_name)=="\u5B9E\u5F97\u5206"?"#FA2121":""}},Nm)}],pagination:!1,dataSource:[ri({},Zd==null?void 0:Zd.data)]}))),footer:null})}),300)},"\u67E5\u770B\u8BE6\u60C5")):Sn.createElement("div",{className:"flex gap-10px"},(0,On.GJ)()&&(kn==null?void 0:kn.commit_status)===1&&Sn.createElement(me.ZP,{ghost:!0,type:"primary",size:"small",disabled:(kn==null?void 0:kn.commit_status)!==1,onClick:()=>{(0,de.xg)(`/classrooms/${nn.coursesId}/exercise/${nn.categoryId}/review/${kn.login}`)}},"\u67E5\u9605"),((mn==null?void 0:mn.enable_report_setting)&&(mn==null?void 0:mn.enable_student_view)||(mn==null?void 0:mn.enable_report_setting)&&(0,On.eB)())&&Sn.createElement(me.ZP,{ghost:!0,type:"primary",size:"small",disabled:kn.commit_status<2,onClick:ec=>Qi(void 0,null,function*(){if(ec.preventDefault(),(mn==null?void 0:mn.report_type)===0){let es=yield(0,Ce.ZP)(`/api/exercises/${nn.categoryId}/exercise_user/report_detail.json`,{method:"get",params:{exercise_user_id:kn==null?void 0:kn.exercise_user_id}});(es==null?void 0:es.status)===0&&((0,On.dE)()?bl({url:es==null?void 0:es.url,file_type:"pdf",isedit:!1}):bl({url:es==null?void 0:es.url,file_type:"pdf",isedit:!0,exercise_user_id:kn==null?void 0:kn.exercise_user_id}))}else he.history.push(`/classrooms/${nn.coursesId}/exercise/${nn.categoryId}/WordInfo/${kn==null?void 0:kn.exercise_user_id}`)})},"\u5B9E\u9A8C\u62A5\u544A"),(0,On.GJ)()&&(kn==null?void 0:kn.commit_status)!==1&&Sn.createElement(me.ZP,{ghost:!0,type:"primary",size:"small",disabled:kn.commit_status<2,onClick:ec=>Qi(void 0,null,function*(){var es,Ad;if(ec.preventDefault(),yield(0,Za.w)(ea.coursesId,ea.categoryId),kn.commit_status===2){if((0,On.Rm)()&&!((es=Pe.AssistantObject.exercise)!=null&&es.can_view)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Us(),window.location.href=`/classrooms/${nn.coursesId}/exercise/${nn.categoryId}/review/${kn.login}`}if(kn.commit_status===3){if((0,On.Rm)()&&!((Ad=Pe.AssistantObject.exercise)!=null&&Ad.can_appraise)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}pt({type:"exercise/setActionTabs",payload:{key:"\u66F4\u6539\u8BC4\u9605",saveExerciseUsers:Us,selectArrs:{record:ri({},kn),exercise_types:ri({},sa)},params:ri({},nn)}})}})},sa!=null&&sa.appraise_setting&&(sa!=null&&sa.sealed_review)&&new Date(sa==null?void 0:sa.appraise_end_time).getTime()>os?"\u8BC4\u9605":kn.has_comment?"\u66F4\u6539\u8BC4\u9605":!kn.has_comment&&"\u8BC4\u9605"),!(0,On.dE)()&&["\u8003\u8BD5\u4E2D"].includes(de.ju[mn.exercise_status])&&Sn.createElement(me.ZP,{ghost:!0,type:"primary",size:"small",disabled:(kn==null?void 0:kn.commit_status)===0,onClick:()=>{var ec,es;if((0,On.Rm)()&&!((es=(ec=Pe==null?void 0:Pe.AssistantObject)==null?void 0:ec.exercise)!=null&&es.can_forcing_commit)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}pt({type:"exercise/setActionTabs",payload:{key:"\u8C03\u6574\u72B6\u6001",selectArrs:kn,exercise_user_id:[kn.exercise_user_id]}})}},"\u8C03\u6574\u72B6\u6001"),(0,On.dE)()&&Sn.createElement("span",{style:{color:sa!=null&&sa.answered_open&&((Dr=mr==null?void 0:mr.current_answer_user)==null?void 0:Dr.login)===(kn==null?void 0:kn.login)?"#0152d9":"#000000",marginRight:"5px",cursor:"pointer"},onClick:()=>Qi(void 0,null,function*(){if(!(sa!=null&&sa.answered_open)){pe.ZP.info("\u8001\u5E08\u5DF2\u8BBE\u7F6E\u672C\u8BD5\u5377\u5728\u4EA4\u5377\u540E\u4E0D\u53EF\u67E5\u770B");return}yield(0,Za.w)(ea.coursesId,ea.categoryId,"\u6B63\u5728\u8FDB\u5165\u67E5\u770B\uFF0C\u8BF7\u7A0D\u540E..."),(0,de.xg)(`/classrooms/${nn.coursesId}/exercise/${nn.categoryId}/users/${kn==null?void 0:kn.login}?check=true`)})},sa!=null&&sa.answered_open&&((Rs=mr==null?void 0:mr.current_answer_user)==null?void 0:Rs.login)===(kn==null?void 0:kn.login)?"\u67E5\u770B":""),(mn==null?void 0:mn.exercise_time)>0&&(mn==null?void 0:mn.exercise_type)!=2&&(0,On.Gg)()&&["\u8003\u8BD5\u4E2D"].includes(de.ju[mn.exercise_status])&&Sn.createElement(Ae.Z,{title:mn.exercise_status===3?"\u672C\u8BD5\u5377\u5DF2\u622A\u6B62\uFF0C\u8BF7\u5148\u4FEE\u6539\u622A\u6B62\u65F6\u95F4\u4F7F\u672C\u8BD5\u5377\u5904\u4E8E\u201C\u8003\u8BD5\u4E2D\u201D":!1},Sn.createElement(me.ZP,{danger:!0,ghost:!0,size:"small",disabled:mn.exercise_status===3||mn.exercise_status===5||(mn==null?void 0:mn.appraise_label)||(kn==null?void 0:kn.commit_status)===0,onClick:()=>{var ec,es;if((0,On.Rm)()&&!((es=(ec=Pe==null?void 0:Pe.AssistantObject)==null?void 0:ec.exercise)!=null&&es.can_delay)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}pt({type:"exercise/setActionTabs",payload:{key:"\u5EF6\u65F6",exercise_user_id:[kn.exercise_user_id],selectArrs:kn,exercise_time:mn.exercise_time,params:ri({},nn)}})}},"\u5EF6\u65F6")))}}].filter(Ln=>!!Ln),Bs=[{title:"\u5E8F\u53F7",dataIndex:"name",fixed:"left",align:"center",width:60,render:(Ln,kn,Dr)=>Sn.createElement(Ae.Z,{title:((nn.page||1)-1)*20+Dr+1},Sn.createElement("span",null,((nn.page||1)-1)*20+Dr+1))},{title:"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",align:"center",width:100,render:(Ln,kn)=>kn.commit_status===0||kn.commit_status===1?"--":!kn.open_total_score&&(0,On.dE)()?"\u8001\u5E08\u5BA1\u6838\u4E2D":(Ln=typeof Ln=="number"?Number(Ln):Ln,Ln||(Ln=0),Ln===100?Sn.createElement("span",{className:"c-green"},Ln):Ln>60?Sn.createElement("span",{className:"c-orange"},Ln):Sn.createElement("span",null,Ln))},!((sa==null?void 0:sa.objective)!==1||(sa==null?void 0:sa.objective)===1&&(sa==null?void 0:sa.subjective)!==1)&&{title:"\u5BA2\u89C2\u9898\u5F97\u5206",dataIndex:"objective_score",align:"center",render:(Ln,kn)=>{if(kn.commit_status===0||kn.commit_status===1)return"--";if(!kn.open_total_score&&(0,On.dE)())return"\u8001\u5E08\u5BA1\u6838\u4E2D";{Ln=typeof Ln=="number"?Number(Ln):Ln,Ln||(Ln=0);let Dr;return Ln>=0&&Ln<=60?Dr=Sn.createElement("span",null,Ln):Ln===100?Dr=Sn.createElement("span",{className:"c-green"},Ln):Ln>60?Dr=Sn.createElement("span",{className:"c-orange"},Ln):Dr="--",Sn.createElement(oa,{renderText:Dr,item:kn})}}},!((sa==null?void 0:sa.subjective)!==1||(sa==null?void 0:sa.subjective)===1&&(sa==null?void 0:sa.objective)!==1)&&{title:"\u4E3B\u89C2\u9898\u5F97\u5206",dataIndex:"subjective_score",align:"center",render:(Ln,kn)=>{if(kn.commit_status===0||kn.commit_status===1)return"--";if(!kn.open_total_score&&(0,On.dE)())return"\u8001\u5E08\u5BA1\u6838\u4E2D";{Ln=typeof Ln=="number"?Number(Ln):Ln,Ln||(Ln=0);let Dr;return Ln==0||Ln>0&&Ln<=60?Dr=Sn.createElement("span",null,Ln):Ln===100?Dr=Sn.createElement("span",{className:"c-green"},Ln):Ln>60?Dr=Sn.createElement("span",{className:"c-orange"},Ln):Dr="--",Dr}}},{title:"\u63D0\u4EA4\u72B6\u6001",dataIndex:"commit_status",align:"center",width:200,render:(Ln,kn)=>Ln===0?Sn.createElement("span",{style:{color:"#666666"}},"\u672A\u5F00\u59CB"):Ln===1?Sn.createElement("span",{style:{color:"#DF3042"}},!kn.is_make_up&&"\u8003\u8BD5\u4E2D",kn.is_make_up&&"\u8003\u8BD5\u4E2D (\u8865\u8003)"):Ln===2?Sn.createElement("span",{style:{color:"#5AB891"}},!kn.is_make_up&&!kn.is_force_commit&&"\u5DF2\u4EA4\u5377",kn.is_make_up&&!kn.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003)",kn.is_make_up&&kn.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003/\u5F3A\u5236)",!kn.is_make_up&&kn.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u5F3A\u5236)"):Sn.createElement("span",{style:{color:"#5AB891"}},!kn.is_make_up&&!kn.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54",kn.is_make_up&&!kn.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003)",kn.is_make_up&&kn.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003/\u5F3A\u5236)",!kn.is_make_up&&kn.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u5F3A\u5236)")},{title:"\u5F00\u59CB\u7B54\u9898\u65F6\u95F4",dataIndex:"start_at",align:"center",width:200,render:Ln=>Ln?Ge()(Ln).format("YYYY-MM-DD HH:mm"):"--"},{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"end_at",align:"center",width:200,render:Ln=>Ln?Ge()(Ln).format("YYYY-MM-DD HH:mm"):"--"}].filter(Ln=>!!Ln),Di=[...Zl];Di[0]=ri({},Di[0]),Di[(Di==null?void 0:Di.length)-1]=ri({},Di[(Di==null?void 0:Di.length)-1]),Di[0].render=()=>"\u6211",Di[(Di==null?void 0:Di.length)-1].render=()=>{var Ln;return(Ln=mr==null?void 0:mr.current_answer_user)!=null&&Ln.login?Sn.createElement("span",{style:{color:"#0152d9",marginRight:"5px",cursor:"pointer"},onClick:()=>Qi(void 0,null,function*(){var kn,Dr;if(!(sa!=null&&sa.answered_open)){pe.ZP.info("\u8001\u5E08\u5DF2\u8BBE\u7F6E\u672C\u8BD5\u5377\u5728\u4EA4\u5377\u540E\u4E0D\u53EF\u67E5\u770B");return}yield(0,Za.w)(ea.coursesId,ea.categoryId,"\u6B63\u5728\u8FDB\u5165\u67E5\u770B\uFF0C\u8BF7\u7A0D\u540E...");let Rs=`/classrooms/${nn.coursesId}/exercise/${nn.categoryId}/users/${(kn=mr==null?void 0:mr.current_answer_user)==null?void 0:kn.login}`;((Dr=mr==null?void 0:mr.current_answer_user)==null?void 0:Dr.commit_status)>1&&(Rs=Rs+"?check=true"),he.history.push(Rs)})},"\u67E5\u770B"):"--"};const Us=()=>{var Ln;try{const kn=ri({},nn);delete kn.page,delete kn.limit,localStorage[`${(Ln=Be==null?void 0:Be.userInfo)==null?void 0:Ln.login}-${nn.coursesId}-${nn.categoryId}-filter`]=JSON.stringify(kn)}catch(kn){}},$c=()=>{var Ln;try{const kn=Gs(ri({},nn),{firstTargetLogin:Eu,totalCount:Xt});delete kn.page,delete kn.limit,localStorage[`${(Ln=Be==null?void 0:Be.userInfo)==null?void 0:Ln.login}-${nn.coursesId}-${nn.categoryId}-downFilter`]=JSON.stringify(kn)}catch(kn){}};return Sn.createElement("section",{className:"mb20"},(sa==null?void 0:sa.score_open)&&(0,On.dE)()&&Sn.createElement(x.default,{pagination:!1,showHeader:!1,dataSource:[ri({},mr==null?void 0:mr.current_answer_user)],columns:Di,scroll:{x:"max-content"}}),!(0,On.GJ)()&&Sn.createElement("div",{className:"bg-white pt10 mt15"},!!(sa!=null&&sa.answer_users)&&Sn.createElement("span",{className:"mr10"},Sn.createElement("span",{style:{color:"#FF954C"}},sa==null?void 0:sa.answer_users," "),"\u5DF2\u4EA4"),!!(sa!=null&&sa.unanswer_users)&&Sn.createElement("span",{className:"mr10"},sa==null?void 0:sa.unanswer_users,"\u672A\u4EA4"),(sa==null?void 0:sa.exercise_end_time)!=="--"&&(mn!=null&&mn.before_start?"":Sn.createElement("span",null,"\u8003\u8BD5\u5269\u4F59\u65F6\u95F4\uFF1A",Sn.createElement("span",{style:{color:"#FF954C"}},sa==null?void 0:sa.exercise_end_time))),(mn==null?void 0:mn.before_start)&&Sn.createElement("span",null,"\u8DDD\u79BB\u8003\u8BD5\u5F00\u59CB\u8FD8\u6709\uFF1A",Sn.createElement("span",{style:{color:"#FF954C"}},mn==null?void 0:mn.before_start))),!(sa!=null&&sa.exercise_all_users)&&!(0,On.dE)()&&Sn.createElement(zt.Z,{styles:{margin:"0 auto",padding:200}}),(!!(sa!=null&&sa.exercise_all_users)||(0,On.dE)())&&Sn.createElement("aside",null,(0,On.GJ)()&&Sn.createElement("aside",{className:"pt20"},Sn.createElement(fe.default,{form:Ba,onValuesChange:_r,initialValues:{commit_status:"all",exercise_group_id:"all",review:"all",is_make_up:"all"}},Sn.createElement(fe.default.Item,{name:"exercise_group_id"},Sn.createElement(Se.default.Group,{style:{width:"100%"}},Sn.createElement(oe.Z,null,Sn.createElement(ve.Z,{flex:"80px"},"\u9009\u62E9\u73ED\u7EA7:"),Sn.createElement(ve.Z,{flex:"80px"},Sn.createElement(Se.default,{value:"all",checked:!((Gt=Nt.course_group)!=null&&Gt.length)},"\u5168\u90E8")),Sn.createElement(ve.Z,{flex:"1"},(sa==null?void 0:sa.course_groups)&&(sa==null?void 0:sa.course_groups.map((Ln,kn)=>Sn.createElement(Se.default,{value:Ln.exercise_group_id,className:"ml0 mr8",key:Ln.exercise_group_id},Ln.exercise_group_name,"(",Ln.exercise_group_students,")"))))))),Sn.createElement(fe.default.Item,{name:"commit_status"},Sn.createElement(Se.default.Group,{value:[],style:{width:"100%"}},Sn.createElement(oe.Z,null,Sn.createElement(ve.Z,{flex:"80px"},"\u63D0\u4EA4\u72B6\u6001:"),Sn.createElement(ve.Z,{flex:"80px"},Sn.createElement(Se.default,{value:"all",checked:!((Bn=Nt.commit_status)!=null&&Bn.length)},"\u5168\u90E8")),Sn.createElement(ve.Z,{flex:"1"},Nn.map((Ln,kn)=>Sn.createElement(Se.default,{name:"commit_status",value:Ln.id,key:Ln.id},Ln.name,"(",sa==null?void 0:sa[Ln.type],")")))))),Sn.createElement(fe.default.Item,{name:"review"},Sn.createElement(Se.default.Group,{style:{width:"100%"}},Sn.createElement(oe.Z,null,Sn.createElement(ve.Z,{flex:"80px"},"\u8BC4\u9605\u72B6\u6001:"),Sn.createElement(ve.Z,{flex:"80px"},Sn.createElement(Se.default,{value:"all",checked:!((Dn=Nt.review)!=null&&Dn.length)},"\u5168\u90E8")),Sn.createElement(ve.Z,{flex:"1"},(Fn=An)==null?void 0:Fn.map((Ln,kn)=>Sn.createElement(Se.default,{value:Ln.id,key:kn},Ln.name,"(",sa==null?void 0:sa[Ln.type],")")))))),(sa==null?void 0:sa.open_make_up)&&Sn.createElement(fe.default.Item,{name:"is_make_up"},Sn.createElement(Se.default.Group,{value:[],style:{width:"100%"}},Sn.createElement(oe.Z,null,Sn.createElement(ve.Z,{flex:"80px"},"\u8865\u8003\u72B6\u6001:"),Sn.createElement(ve.Z,{flex:"80px"},Sn.createElement(Se.default,{value:"all",checked:!((Wt=Nt.is_make_up)!=null&&Wt.length)},"\u5168\u90E8")),Sn.createElement(ve.Z,{flex:"1"},Qt.map((Ln,kn)=>Sn.createElement(Se.default,{name:"is_make_up",value:Ln.id},Ln.name,"(",sa==null?void 0:sa[Ln.type],")")))))),Sn.createElement(oe.Z,{align:"middle"},Sn.createElement(ve.Z,{flex:"1"},Sn.createElement(oe.Z,{align:"middle"},Sn.createElement(ve.Z,null,Sn.createElement(Le.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",onSearch:Ln=>{nn.search=Ln==null?void 0:Ln.trim(),nn.page=1,zn(ri({},nn)),Yu(nn)},style:{width:240}})))),!(mn!=null&&mn.is_random)&&Sn.createElement(ve.Z,{className:["tr",Jt.rightFilter].join(" ")},(sa==null?void 0:sa.objective)===1&&(sa==null?void 0:sa.subjective)===1&&Sn.createElement(Sn.Fragment,null,"\u6309\u5BA2\u89C2\u9898\u5F97\u5206\u5206\u7EC4",Sn.createElement("span",null,Sn.createElement(fe.default.Item,{name:"objective_score_gte"},Sn.createElement(Re.Z,{min:0,max:sa==null?void 0:sa.objective_score,placeholder:"\u6700\u4F4E"}))),Sn.createElement("span",null,Sn.createElement(fe.default.Item,{name:"objective_score_lte"},Sn.createElement(Re.Z,{min:(nn==null?void 0:nn.objective_score_gte)||0,max:sa==null?void 0:sa.objective_score,placeholder:"\u6700\u9AD8"})))),["\u8003\u8BD5\u4E2D","\u5DF2\u622A\u6B62"].includes(de.ju[mn.exercise_status])&&Sn.createElement(Xo,{showBtn:!1,dropDowmBtn:Sn.createElement(E.Z,{menu:{onClick:Ln=>Qi(void 0,[Ln],function*({key:kn,domEvent:Dr}){var Rs,ec;if(kn==="1"){let es=null;const Ad=Fe.default.confirm({title:"\u4E00\u952E\u5B8C\u6210\u8BC4\u9605",icon:null,centered:!0,width:560,closable:!0,content:Sn.createElement("div",{className:"flex flex-col gap-20px"},Sn.createElement("div",null,"\u63D0\u793A\uFF1A\u8BE5\u64CD\u4F5C\u4F1A\u5C06\u6240\u6709\u5DF2\u4F5C\u7B54\u4E14\u672A\u8BC4\u9605\u5B66\u751F\u7684\u8BD5\u5377\u8BC4\u9605\u72B6\u6001\u4FEE\u6539\u4E3A\u201C\u5DF2\u8BC4\u9605\u201D\u3002"),Sn.createElement("div",null,Sn.createElement("div",null,"\u8003\u8BD5\u8BC4\u4EF7\uFF1A"),Sn.createElement(Le.default.TextArea,{className:"mt10",placeholder:"\u8BF7\u8F93\u5165\u8003\u8BD5\u8BC4\u4EF7\uFF0C\u8BC4\u9605\u4E4B\u540E\u652F\u6301\u5355\u72EC\u8FDB\u884C\u4FEE\u6539",rows:4,onChange:C0=>{es=C0.target.value}}))),onOk:()=>Qi(void 0,null,function*(){(yield Pu({review_all:!0,exercise_id:ea==null?void 0:ea.categoryId,analysis:es})).status===0&&(pe.ZP.success("\u6279\u91CF\u5B8C\u6210\u8BC4\u9605"),Yu(nn))}),onCancel:()=>{Ad.destroy()}})}if(kn==="2"){if(Dr.preventDefault(),(0,On.Rm)()&&!((ec=(Rs=Pe==null?void 0:Pe.AssistantObject)==null?void 0:Rs.exercise)!=null&&ec.can_appraise)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}yield(0,Za.w)(ea.coursesId,ea.categoryId),Us(),he.history.push(`/classrooms/${nn.coursesId}/exercise/${nn.categoryId}/reviews/group`)}if(kn==="3"){if(!(mn!=null&&mn.is_open_ai_review)){Fe.default.confirm({title:"\u60A8\u8FD8\u672A\u8BBE\u7F6E\u8BC4\u5206\u89C4\u5219",icon:null,width:350,closable:!0,autoFocusButton:null,centered:!0,okText:"\u53BB\u8BBE\u7F6E",cancelText:"\u53D6\u6D88",onOk:()=>Qi(void 0,null,function*(){var Ad;window.location.href=`/classrooms/${ea.coursesId}/exercise/${ea.categoryId}/detail?random=${(Ad=ae==null?void 0:ae.commonHeader)==null?void 0:Ad.is_random}&tabs=12`}),content:Sn.createElement("div",null,Sn.createElement("div",{style:{color:"#E30000",fontSize:"14px"}},"\u4F7F\u7528\u6B64\u529F\u80FD\u524D\uFF0C\u9700\u8981\u5148\u8BBE\u7F6E\u8BC4\u5206\u89C4\u5219\u3002"),Sn.createElement("div",{style:{color:"#333330",fontSize:"14px"}},"\u8BF7\u5148\u5F00\u542F\u667A\u80FD\u8BC4\u9605\u5E76\u8BBE\u7F6E\u597D\u8BC4\u5206\u6807\u51C6\u3002"))});return}const es=yield(0,Ce.ZP)("/api/exercise_resubmits/check_resubmit.json",{method:"get",params:{exercise_id:ea.categoryId}});if((es==null?void 0:es.status)===-21){Fe.default.confirm({title:"\u5F53\u524D\u8BD5\u5377\u65E0\u7B80\u7B54\u9898",icon:null,width:400,closable:!0,centered:!0,autoFocusButton:null,okText:"\u6211\u77E5\u9053\u4E86",cancelButtonProps:{style:{display:"none"}},onOk:()=>Qi(void 0,null,function*(){}),content:Sn.createElement("div",null,Sn.createElement("div",{style:{color:"#E30000",fontSize:"14px"}},"\u667A\u80FD\u8BC4\u9605\u76EE\u524D\u4EC5\u652F\u6301\u7B80\u7B54\u9898\uFF08\u542B\u7EC4\u5408\u9898\u4E2D\u7684\u7B80\u7B54\u9898\uFF09\u3002"),Sn.createElement("div",{style:{color:"#333330",fontSize:"14px"}},"\u5F53\u524D\u8003\u8BD5\u6CA1\u6709\u7B80\u7B54\u9898\uFF0C\u6240\u4EE5\u65E0\u987B\u8FDB\u884C\u667A\u80FD\u8BC4\u9605\u3002"))});return}pt({type:"exercise/setActionTabs",payload:{key:"\u5728\u7EBF\u8003\u8BD5\u667A\u80FD\u8BC4\u9605",showReview:!1}})}}),items:[{key:"1",label:"\u4E00\u952E\u5B8C\u6210\u8BC4\u9605"},!(mn!=null&&mn.is_random)&&(sa==null?void 0:sa.subjective)===1&&Dt&&{key:"2",label:"\u7B80\u7B54\u9898\u6279\u91CF\u8BC4\u9605",disabled:!$u||!ji},!((0,On.dE)()||mn!=null&&mn.is_random||(mn==null?void 0:mn.exercise_type)==2)&&{key:"3",label:Sn.createElement("div",null,"\u7B80\u7B54\u9898\u667A\u80FD\u8BC4\u9605",Sn.createElement("img",{src:Ea.Z,style:{margin:"0 0 4px 4px"}}))}].filter(Ln=>Ln)},className:"ml10"},Sn.createElement("div",{className:`${Jt.btn_review}`},Sn.createElement("img",{src:Ga.Z,className:"mr5",style:{width:14,height:14}}),"\u667A\u80FD\u8BC4\u9605"))}),(sa==null?void 0:sa.subjective)===1&&Dt&&Sn.createElement(Sn.Fragment,null,Sn.createElement(me.ZP,{type:"default",disabled:!$u},Sn.createElement("a",{onClick:Ln=>Qi(void 0,null,function*(){var kn,Dr;if(Ln.preventDefault(),(0,On.Rm)()&&!((Dr=(kn=Pe==null?void 0:Pe.AssistantObject)==null?void 0:kn.exercise)!=null&&Dr.can_appraise)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}yield(0,Za.w)(ea.coursesId,ea.categoryId),Us(),he.history.push(`/classrooms/${nn.coursesId}/exercise/${nn.categoryId}/review/${$u}`)})},Sn.createElement("span",{className:"iconfont icon-filesync3x"}),Sn.createElement("span",null,"\u7EC4\u5185\u987A\u5E8F\u8BC4\u9605"))))),Sn.createElement(ve.Z,null,(mn==null?void 0:mn.exercise_status)===3&&Sn.createElement(me.ZP,{className:"ml10",onClick:()=>{pt({type:"shixunHomeworks/setActionTabs",payload:{key:"\u8D28\u91CF\u68C0\u6D4B",params:nn}})}},Sn.createElement("i",{className:"iconfont icon-a-08zhiliang-xianxing font14 pr5"}),"\u8D28\u91CF\u8BC4\u5206")),Sn.createElement(ve.Z,null,(mn==null?void 0:mn.exercise_time)>0&&(mn==null?void 0:mn.exercise_type)!=2&&(0,On.Gg)()&&["\u8003\u8BD5\u4E2D"].includes(de.ju[mn.exercise_status])&&Sn.createElement(me.ZP,{className:"ml10",disabled:mn.exercise_status===3||mn.exercise_status===5||(mn==null?void 0:mn.appraise_label),onClick:()=>{var Ln,kn;if((0,On.Rm)()&&!((kn=(Ln=Pe==null?void 0:Pe.AssistantObject)==null?void 0:Ln.exercise)!=null&&kn.can_delay)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}if(oo.length==0){pe.ZP.warning("\u8BF7\u5148\u9009\u62E9\u5B66\u751F\uFF01");return}pt({type:"exercise/setActionTabs",payload:{key:"\u5EF6\u65F6",exercise_user_id:oo,user_ids:ci,isBatch:!0,exercise_time:mn.exercise_time,params:ri({},nn)}})}},"\u6279\u91CF\u5EF6\u65F6"),!(0,On.dE)()&&["\u8003\u8BD5\u4E2D"].includes(de.ju[mn.exercise_status])&&Sn.createElement(me.ZP,{className:"ml10",onClick:()=>{var Ln,kn;if((0,On.Rm)()&&!((kn=(Ln=Pe==null?void 0:Pe.AssistantObject)==null?void 0:Ln.exercise)!=null&&kn.can_forcing_commit)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}if(oo.length==0){pe.ZP.warning("\u8BF7\u5148\u9009\u62E9\u5B66\u751F\uFF01");return}pt({type:"exercise/setActionTabs",payload:{key:"\u8C03\u6574\u72B6\u6001",exercise_user_id:oo,user_ids:ci,isBatch:!0}})}},"\u6279\u91CF\u8C03\u6574\u72B6\u6001"))))),Va===-3&&!(0,On.dE)()&&Sn.createElement(zt.Z,{customText:"\u4FEE\u6539\u7ED9\u5206\u65B9\u5F0F\u91CD\u65B0\u5224\u5206\u4E2D\uFF0C\u8BF7\u8010\u5FC3\u7B49\u5F85...",styles:{margin:"0 auto",padding:100}}),Va!==-3&&Sn.createElement(x.default,{className:"mt30",loading:Tl,hideOnSinglePage:!0,pagination:!1,dataSource:(0,On.dE)()?sa!=null&&sa.score_open?mr==null?void 0:mr.exercise_users:[(mr==null?void 0:mr.current_answer_user)||{}]:mr==null?void 0:mr.exercise_users,columns:Zl,rowSelection:!(0,On.dE)()&&{selectedRowKeys:oo,onChange:(Ln,kn)=>{Su(Ln),Ho((kn==null?void 0:kn.map(Dr=>Dr==null?void 0:Dr.user_id))||[])},getCheckboxProps:Ln=>({disabled:Ln.commit_status===0})},rowKey:"exercise_user_id",scroll:{x:"max-content"},size:"middle",onChange:(Ln,kn,Dr)=>{nn.page=1,Dr.order===void 0?(nn.order_type=null,nn.order=null):(nn.order_type=Dr.order==="descend"?"desc":"asc",nn.order=Dr.field),zn(ri({},nn)),Yu(nn)}}),Xt>20&&Sn.createElement("aside",{className:"tc pb30 mt30"},Sn.createElement(He.Z,{onChange:Io,current:nn.page||1,pageSize:nn.limit,total:Xt,showQuickJumper:!0,hideOnSinglePage:!0,showTotal:Ln=>Sn.createElement("span",{className:"mr10"},"\u5171",Sn.createElement("span",{className:"c-orange"},Ln),"\u6761\u6570\u636E")}))),Sn.createElement(Fe.default,{open:au,title:Sn.createElement("span",null,"\u8003\u8BD5\u8BB0\u5F55\uFF08",Cr==null?void 0:Cr.name," ",Cr==null?void 0:Cr.id,"\uFF09"),centered:!0,width:1e3,footer:null,onCancel:()=>{Ya(!1)}},((Ut=Cr==null?void 0:Cr.list)==null?void 0:Ut.length)===0?Sn.createElement(zt.Z,{styles:{margin:"0 auto"},customText:"\u6682\u65E0\u6570\u636E"}):Sn.createElement(x.default,{dataSource:Cr==null?void 0:Cr.list,columns:Bs,pagination:!1})),Sn.createElement(bt,null),Sn.createElement(yt,null),Sn.createElement(or,null),Sn.createElement(Er,null),ha&&Sn.createElement(Fe.default,{title:"\u9632\u4F5C\u5F0A\u5934\u50CF",open:ha,centered:!0,onCancel:()=>{ca(1),dt(!1),Zn([]),ia("alert"),pn("")},footer:Sn.createElement("div",{style:{display:"flex"}},Sn.createElement("div",{style:{flex:1,textAlign:"left"}}," ",Sn.createElement(me.ZP,{onClick:()=>Qi(void 0,null,function*(){if(!Qn){pe.ZP.info("\u8F93\u5165\u6846\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A");return}Ka(!0);let Ln=yield(0,Ce.ZP)(`/api/exercises/${nn.categoryId}/send_alert.json`,{method:"post",body:{content:Qn,clazz:Fa,exercise_user_id:Tn}});(Ln==null?void 0:Ln.status)===0&&(pe.ZP.info("\u53D1\u9001\u6210\u529F"),ca(1),dt(!1),Zn([]),ia("alert"),pn("")),Ka(!1)}),disabled:da,loading:tu},"\u53D1\u9001")),Sn.createElement(me.ZP,{disabled:(La==null?void 0:La.length)===0,style:{marginRight:"10px"},onClick:()=>Qi(void 0,null,function*(){yield ca(bn-1===0?La==null?void 0:La.length:bn-1)})},"\u4E0A\u4E00\u5F20"),Sn.createElement(me.ZP,{disabled:(La==null?void 0:La.length)===0,type:"primary",onClick:()=>Qi(void 0,null,function*(){yield ca(bn===(La==null?void 0:La.length)?1:bn+1)})},"\u4E0B\u4E00\u5F20"))},Sn.createElement("img",{style:{width:"234px !important",height:"132px",borderRadius:"5px"},src:La[bn-1]}),Sn.createElement("span",{onClick:()=>{Pa.Z.publish("preview-image",La[bn-1])},style:{background:"#0152d9",color:"#fff",display:"inline-flex",width:"54px",height:"20px",borderRadius:"10px",justifyContent:"center",lineHeight:"20px",alignItems:"center",position:"absolute",top:"70px",left:"130px",zIndex:5,cursor:"pointer"}},"\u9884\u89C8"),Sn.createElement("span",{style:{color:"#0152d9",marginTop:"16px",width:"234px",justifyContent:"center",display:"flex"}},bn+"/"+(La==null?void 0:La.length)),Sn.createElement(Ie.ZP,{className:"mt20",checked:Fa==="alert",onChange:()=>ia("alert")},"\u53D1\u9001\u8B66\u544A",Sn.createElement("span",{className:"font14 c-grey-999"},"\uFF08\u5982\u53D1\u73B0\u5B66\u751F\u5728\u8003\u8BD5\u4E2D\u7684\u7167\u7247\u5B58\u5728\u5F02\u5E38\u65F6\uFF0C\u53EF\u53D1\u9001\u6D88\u606F\u7ED9\u5B66\u751F\uFF09")),Sn.createElement(Ie.ZP,{className:"mt10",checked:Fa==="notice",onChange:()=>ia("notice")},"\u53D1\u9001\u901A\u77E5",Sn.createElement("span",{className:"font14 c-grey-999"},"\uFF08\u8003\u8BD5\u4E2D\u5982\u6709\u6D88\u606F\u901A\u77E5\uFF0C\u53EF\u53D1\u9001\u6D88\u606F\u7ED9\u5B66\u751F\uFF09")),Sn.createElement(Le.default.TextArea,{className:"mt20",value:Qn,onChange:Ln=>pn(Ln.target.value),placeholder:`\u8BF7\u8F93\u5165${Fa==="alert"?"\u8B66\u544A":"\u901A\u77E5"}\u5185\u5BB9${Fa==="alert"?"\uFF0C\u5982\uFF1A\u626D\u5934\u4F4E\u5934\u5927\u5E45\u5EA6\u52A8\u4F5C\u68C0\u6D4B":""}`}),Sn.createElement("div",{style:{color:"#E30000",fontSize:12,margin:"10px 0"}},"\u5DF2\u53D1\u9001",wu,"\u6B21\u8B66\u544A")),Sn.createElement(ga.Z,{close:!0,hasMask:!0,style:{zIndex:9999},data:qa==null?void 0:qa.url,disabledDownload:!0,editOffice:qa!=null&&qa.isedit?"edit":"view",type:qa==null?void 0:qa.file_type,issaver:!(0,On.dE)(),onSaver:Ln=>Qi(void 0,null,function*(){const kn=new FormData;kn.append("exercise_id",nn.categoryId),kn.append("exercise_user_id",qa==null?void 0:qa.exercise_user_id),kn.append("file",Ln);let Dr=yield(0,Ce.ZP)(`/api/exercises/${nn.categoryId}/exercise_user/review_report.json`,{method:"post",body:kn},!0);(Dr==null?void 0:Dr.status)===0&&(pe.ZP.info("\u4FDD\u5B58\u6210\u529F"),bl({}))}),onClose:()=>bl({})}),Sn.createElement(er.Z,null),Sn.createElement(ul,null),Sn.createElement(lu,null))};var vs=(0,he.connect)(({exercise:ce,loading:se,globalSetting:ae,classroomList:_e,user:pt})=>({classroomList:_e,exercise:ce,loading:se.effects,globalSetting:ae,user:pt}))(pc),fs=z(42922),ps=z(53978),so={flex_box_center:"flex_box_center___Hpswl",flex_space_between:"flex_space_between___ywvKM",flex_box_vertical_center:"flex_box_vertical_center___SItpZ",flex_box_center_end:"flex_box_center_end___WIAL3",flex_box_column:"flex_box_column___FMKJn",wrap:"wrap___AW_2A",control:"control___w5xQm",btn:"btn___as1xd",customTable:"customTable___gGVV3",bgH:"bgH___J0V1_",cusModal:"cusModal___2fPK2",imgWrap:"imgWrap___crzTi",img:"img___iwJRL",iBtn:"iBtn___L11V_",text:"text___INAg4",no:"no___H7kcX",textP:"textP___Rdbzv",video:"video___yjo5C",sys:"sys___o3w4h",li:"li___WQQil",d1:"d1___KQ9j6",b1:"b1___PA3Kc",es:"es___j13_3"},sc=z(24577),Wo=z(67631);const bi=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i;var cc=(0,a.forwardRef)(({src:ce,videoId:se,logWatchHistory:ae,courseId:_e=null,startTime:pt,handlePause:Ve=()=>{},handlePlay:Dt=()=>{},handlePlayEnded:et=()=>{},videoSpeed:Be=1},Pe)=>{var Ht;ce=ce==null?void 0:ce.replace("http://","https://");const hn=((Ht=ce==null?void 0:ce.split("."))==null?void 0:Ht.pop())==="flv",xt=(0,a.useRef)(),Gt=(0,a.useRef)(),Bn=(0,a.useRef)(0),Dn=(0,a.useRef)(0),[Fn,Wt]=(0,a.useState)(0),Ut=navigator.userAgent.toLowerCase().match(bi),Yt=Ut?Ut[0]:"pc";(0,a.useImperativeHandle)(Pe,()=>({getLastUpdatedTime:()=>xt.current.currentTime,getDuration:()=>xt.current.duration})),(0,a.useEffect)(()=>{Dn.current=void 0;try{sc.Z.isSupported&&hn&&ce&&(ce==null?void 0:ce.indexOf(".m3u8"))<0?(Dn.current=sc.Z.createPlayer({type:"flv",volume:.8,cors:!0,url:ce+"?t="+Date.now(),muted:!1,isLive:!0}),Dn.current.on("play",function(){console.log(21111)}),xt.current&&(Dn.current.detachMediaElement(xt.current),Dn.current.attachMediaElement(xt.current),Dn.current.load(),Dn.current.play())):xt.current.setAttribute("src",ce+"?t="+Date.now())}catch(nn){setTimeout(()=>{Wt(Fn+1)},1e3)}return console.log("src:",ce),()=>{var nn,zn,mn,pa,Pt,Nt,Rt,Xt;Dn.current&&((zn=(nn=Dn.current)==null?void 0:nn.unload)==null||zn.call(nn),(pa=(mn=Dn.current)==null?void 0:mn.pause)==null||pa.call(mn),(Nt=(Pt=Dn.current)==null?void 0:Pt.destroy)==null||Nt.call(Pt),(Xt=(Rt=Dn.current)==null?void 0:Rt.detachMediaElement)==null||Xt.call(Rt,xt.current),Dn.current=void 0,xt.current.src="")}},[xt,hn,ce,Fn]),(0,a.useEffect)(()=>(Gt.current=setInterval(()=>{Bn.current>0&&Bn.current===xt.current.currentTime&&(console.log("\u64AD\u653E\u4E00\u6B21"),Wt(Fn+1)),Bn.current=xt.current.currentTime},3e3),()=>{clearInterval(Gt.current)}),[]);const ea=nn=>{setTimeout(()=>{Wt(Fn+1)},1e3)};return a.createElement("video",{ref:xt,onerr:!0,onErrorCapture:()=>{Wt(Fn+1)},autoPlay:!0,muted:!0})}),ts=Object.defineProperty,Hc=Object.getOwnPropertySymbols,Nc=Object.prototype.hasOwnProperty,Pc=Object.prototype.propertyIsEnumerable,Rr=(ce,se,ae)=>se in ce?ts(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,vr=(ce,se)=>{for(var ae in se||(se={}))Nc.call(se,ae)&&Rr(ce,ae,se[ae]);if(Hc)for(var ae of Hc(se))Pc.call(se,ae)&&Rr(ce,ae,se[ae]);return ce},fl=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Wr=({exercise:ce,dispatch:se,user:ae})=>{var _e;const pt=(0,he.useParams)(),[Ve,Dt]=(0,a.useState)({page:1,limit:20,sort_by:null,sort_direction:null,state:null,audit:null,name:"",save_name:"",exercise_id:pt==null?void 0:pt.categoryId}),[et]=fe.default.useForm(),[Be,Pe]=(0,a.useState)(),[Ht,vn]=(0,a.useState)(!1),{exerciseList:hn,commonHeader:xt}=ce,[Gt,Bn]=(0,a.useState)([]),[Dn,Fn]=(0,a.useState)([]),[Wt,Ut]=(0,a.useState)(0),[Yt,ea]=(0,a.useState)(!0),[nn,zn]=(0,a.useState)(!1),[mn,pa]=(0,a.useState)(!1),Pt=(0,a.useRef)(null);(0,a.useEffect)(()=>{Nt(Ve)},[]),(0,a.useEffect)(()=>(clearInterval(Pt.current),(xt==null?void 0:xt.exercise_status)===2&&(Pt.current=setInterval(()=>{Nt(Ve)},3e4)),()=>{clearInterval(Pt.current)}),[xt==null?void 0:xt.exercise_status,Ve]);const Nt=Hn=>fl(void 0,null,function*(){const Oa=hu().cloneDeep(Hn);ea(!0),Bn([]);const tu=yield(0,Ce.ZP)(`/api/exercises/${Hn==null?void 0:Hn.exercise_id}/exercise_identity_photos.json`,{method:"get",params:Oa});Fn([]),ea(!1),Ut(tu==null?void 0:tu.count),Bn((tu==null?void 0:tu.exercise_users)||[])}),Rt=(Hn,Oa)=>{Ve.page=1,Ve[Oa]=Hn,Dt(vr({},Ve)),Nt(Ve)},Xt=Hn=>{Ve.page=1,Ve.save_name=Hn,Dt(vr({},Ve))},cn=()=>{Ve.page=1;const Hn=Object.assign({},et.getFieldsValue());Object.keys(Hn).map(function(Oa){switch(Oa){case"exercise_group_id":Hn[Oa].includes("all")||!Hn[Oa].length?(delete Ve.course_group,et.setFieldsValue({exercise_group_id:"all"})):(Ve.course_group=Hn[Oa],et.setFieldsValue({exercise_group_id:Ve.course_group}));break}}),Dt(vr({},Ve)),Nt(Ve)};(0,a.useEffect)(()=>{document.getElementById("divhe")&&document.getElementById("divhe").scrollHeight>47&&(Pe(47),vn(!0))},[document.getElementById("divhe"),hn]);const tn=(Hn,Oa,tu)=>{Ve.page=Hn==null?void 0:Hn.current,Ve.limit=Hn==null?void 0:Hn.pageSize,tu!=null&&tu.order?(Ve.sort_by=tu==null?void 0:tu.field,Ve.sort_direction=(tu==null?void 0:tu.order)==="ascend"?"asc":"desc"):(Ve.sort_by=null,Ve.sort_direction=null),Dt(vr({},Ve)),Nt(Ve)},Ja=[{title:"\u5E8F\u53F7",dataIndex:"number",width:80,render:(Hn,Oa,tu)=>Ve.limit*(Ve.page-1)+tu+1},{title:"\u59D3\u540D",dataIndex:"user_name",width:110,ellipsis:{showTitle:!1},render:Hn=>a.createElement(Ae.Z,{placement:"bottomLeft",title:Hn},a.createElement("span",null,Hn))},{title:"\u5B66\u53F7",dataIndex:"student_id",sorter:!0,width:140,showSorterTooltip:!1,ellipsis:{showTitle:!1},render:Hn=>a.createElement(Ae.Z,{placement:"bottomLeft",title:Hn||"--"},a.createElement("span",null,Hn||"--"))},{title:"\u5206\u73ED",dataIndex:"user_group_name",ellipsis:{showTitle:!1},render:(Hn,Oa)=>Hn?a.createElement(Ae.Z,{placement:"bottom",title:Hn},a.createElement("span",{className:so.es},Hn)):"--"},{title:"\u4EBA\u8138\u7167\u7247",dataIndex:"photo_url",width:90,ellipsis:{showTitle:!1},render:(Hn,Oa)=>a.createElement("img",{width:40,style:{maxHeight:30},src:Hn,className:"current",onClick:()=>{wu(Oa)}})},{title:"\u5BA1\u6838\u72B6\u6001",width:100,dataIndex:"exercise_identity_photo_state",ellipsis:{showTitle:!1},render:(Hn,Oa)=>a.createElement(a.Fragment,null,Hn==="passed"&&a.createElement("span",{style:{color:"#44D7B6"}},"\u5BA1\u6838\u901A\u8FC7"),Hn==="rejected"&&a.createElement("span",{style:{color:"#E53333"}},"\u5BA1\u6838\u4E0D\u901A\u8FC7"),Hn==="submitted"&&a.createElement("span",{style:{color:"#666666"}},"\u5F85\u5BA1\u6838"))},{title:"\u5BA1\u6838\u65F6\u95F4",dataIndex:"audit_time",width:180,ellipsis:{showTitle:!1},render:Hn=>a.createElement("span",null,Hn||"--")},{title:"\u5BA1\u6838\u7C7B\u578B",dataIndex:"audit_clazz",width:90,ellipsis:{showTitle:!1},render:Hn=>a.createElement("span",null,Hn||"--")},{title:"\u64CD\u4F5C",dataIndex:"action",width:220,ellipsis:{showTitle:!1},render:(Hn,Oa)=>{var tu;return a.createElement(a.Fragment,null,(Oa==null?void 0:Oa.exercise_identity_photo_state)==="submitted"?a.createElement("span",{className:"c-light-primary current",onClick:()=>fl(void 0,null,function*(){const Ka=yield(0,Ce.ZP)(`/api/exercises/${Ve==null?void 0:Ve.exercise_id}/audit_identity_photo.json`,{method:"post",body:{identity_photo_id:Oa==null?void 0:Oa.exercise_identity_photo_id,state:"passed"}});(Ka==null?void 0:Ka.status)===0&&(pe.ZP.success("\u64CD\u4F5C\u6210\u529F"),Nt(Ve))})},"\u901A\u8FC7"):a.createElement("span",{className:"c-grey-999 cursorNotAllowed"},"\u901A\u8FC7"),(Oa==null?void 0:Oa.exercise_identity_photo_state)==="submitted"?a.createElement("span",{className:"c-light-primary current ml10",onClick:()=>pa(Oa)},"\u62D2\u7EDD"):a.createElement("span",{className:"c-grey-999 cursorNotAllowed ml10"},"\u62D2\u7EDD"),(Oa==null?void 0:Oa.exercise_identity_photo_state)!=="submitted"?a.createElement("span",{className:"c-light-primary current ml10 mr10",onClick:()=>Fa(Oa)},"\u5BA1\u6838\u8BB0\u5F55"):a.createElement("span",{className:"c-grey-999 ml10 mr10 cursorNotAllowed"},"\u5BA1\u6838\u8BB0\u5F55"),(Oa==null?void 0:Oa.exercise_identity_photo_state)==="passed"&&((tu=Oa==null?void 0:Oa.play_url)!=null&&tu.length)?a.createElement("span",{className:"c-light-primary current",onClick:()=>ia(Oa)},"\u6444\u50CF\u76D1\u63A7"):a.createElement("span",{className:"c-grey-999 cursorNotAllowed"},"\u6444\u50CF\u76D1\u63A7"))}}],ha=Hn=>{Fn(Hn)},dt=()=>{zn(!1),Nt(Ve)},Fa=Hn=>{const Oa=[{title:"\u5BA1\u6838\u65F6\u95F4",dataIndex:"audit_time",width:170,render:(Ka,Ba)=>a.createElement("span",null,Ka||"--")},{title:"\u5BA1\u6838\u72B6\u6001",dataIndex:"exercise_identity_photo_state",width:110,render:(Ka,Ba)=>a.createElement(a.Fragment,null,Ka==="passed"&&a.createElement("span",{style:{color:"#44D7B6"}},"\u5BA1\u6838\u901A\u8FC7"),Ka==="rejected"&&a.createElement("span",{style:{color:"#E53333"}},"\u5BA1\u6838\u4E0D\u901A\u8FC7"),Ka==="submitted"&&a.createElement("span",{style:{color:"#666666"}},"\u5F85\u5BA1\u6838"))},{title:"\u5BA1\u6838\u610F\u89C1",dataIndex:"comment",render:(Ka,Ba)=>Ka?a.createElement(Ae.Z,{placement:"bottom",title:Ka},a.createElement("span",null,Ka)):"--"},{title:"\u91C7\u96C6\u7167\u7247",dataIndex:"photo_url",width:90,render:(Ka,Ba)=>a.createElement("span",{className:"current c-light-primary",onClick:()=>{Pa.Z.publish("preview-image",Ka)}},"\u67E5\u770B")}],tu=Fe.default.confirm({icon:null,width:700,className:`${so.cusModal} custom-modal-divider`,centered:!0,title:a.createElement(oe.Z,null,a.createElement(ve.Z,{flex:"1"},"\u5BA1\u6838\u8BB0\u5F55"),a.createElement(ve.Z,null,a.createElement("span",{className:"iconfont icon-guanbi7 font12 current c-grey-c",onClick:()=>tu.destroy()}))),content:a.createElement("div",null,a.createElement(x.default,{className:so.customTable,dataSource:[vr({},Hn)],bordered:!1,columns:Oa,rowKey:"exercise_identity_photo_id",rowClassName:so.row,pagination:!1}))})},ia=Hn=>{var Oa,tu;const Ka=Fe.default.confirm({icon:null,className:`${so.cusModal} custom-modal-divider`,centered:!0,width:((Oa=Hn==null?void 0:Hn.play_url)==null?void 0:Oa.length)<6?724:744,title:a.createElement(oe.Z,null,a.createElement(ve.Z,{flex:"1"},"\u89C6\u9891"),a.createElement(ve.Z,null,a.createElement("span",{className:"iconfont icon-guanbi7 font12 current c-grey-c",onClick:()=>Ka.destroy()}))),content:a.createElement("ul",{className:so.sys},(tu=Hn==null?void 0:Hn.play_url)==null?void 0:tu.map((Ba,La)=>a.createElement("li",{className:so.li,key:La},a.createElement("div",{className:so.d1},a.createElement("div",{className:so.img},a.createElement(cc,{src:Ba==null?void 0:Ba.replace(".m3u8",".flv"),autoPlay:!0})),a.createElement("div",{className:so.btn},a.createElement("div",{className:so.b1},"\u56DE\u653E\u89C6\u9891",La+1))))))})},wu=Hn=>{const Oa=Fe.default.confirm({icon:null,className:`${so.cusModal} custom-modal-divider`,centered:!0,width:710,title:a.createElement(oe.Z,null,a.createElement(ve.Z,{flex:"1"},"\u4EBA\u8138\u7167\u7247"),a.createElement(ve.Z,null,a.createElement("span",{className:"iconfont icon-guanbi7 font12 current c-grey-c",onClick:()=>Oa.destroy()}))),content:a.createElement(oe.Z,null,a.createElement("aside",{className:so.imgWrap,style:{marginBottom:40}},a.createElement("div",{className:so.img},a.createElement("img",{width:326,src:(0,de.Tv)(Hn==null?void 0:Hn.photo_url)}),a.createElement("div",{className:so.textP},"\u91C7\u96C6\u7167\u7247")),a.createElement("div",{className:so.img,style:{marginLeft:20}},Hn!=null&&Hn.identity_url?a.createElement("img",{width:326,src:(0,de.Tv)(Hn==null?void 0:Hn.identity_url)}):a.createElement("div",{className:so.no,style:{width:326}},a.createElement("span",null,"\u6682\u65E0\u8BC1\u4EF6\u7167\u7247")),a.createElement("div",{className:so.textP},"\u8BC1\u4EF6\u7167\u7247"))))})},Sa={selectedRowKeys:Dn,columnWidth:40,onChange:ha,getCheckboxProps:Hn=>({disabled:(Hn==null?void 0:Hn.exercise_identity_photo_state)==="passed"})};return a.createElement("section",{className:so.wrap},a.createElement(fe.default,{form:et,onChange:cn,initialValues:{exercise_group_id:"all"}},a.createElement(fe.default.Item,{name:"exercise_group_id"},a.createElement(Se.default.Group,{style:{width:"100%"}},a.createElement(oe.Z,null,a.createElement(ve.Z,{className:"font14",flex:"80px"},"\u9009\u62E9\u5206\u73ED:"),a.createElement(ve.Z,{flex:"80px"},a.createElement(Se.default,{value:"all"},"\u5168\u90E8")),a.createElement(ve.Z,{flex:"1",id:"divhe",style:{height:Be+"px",overflow:"hidden"}},(_e=hn.course_groups)==null?void 0:_e.map((Hn,Oa)=>a.createElement(Se.default,{key:Oa,value:Hn.exercise_group_id,className:"ml0 mr8"},Hn.exercise_group_name,"(",Hn.exercise_group_students,")"))),Ht&&a.createElement("span",{onClick:()=>{let Hn=document.getElementById("divhe").scrollHeight;Be>47?Pe(47):Pe(Hn)},style:{color:"rgb(76, 172, 255)",cursor:"pointer",alignItems:"flex-end",display:"flex"}},Be===47?"\u5C55\u5F00":"\u6536\u8D77",Be===47?a.createElement(fs.Z,{style:{marginBottom:"3px",marginLeft:"2px"}}):a.createElement(ps.Z,{style:{marginBottom:"3px",marginLeft:"2px"}})))))),a.createElement("div",{className:so.control},a.createElement(Le.default.Search,{placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",value:Ve==null?void 0:Ve.save_name,onChange:Hn=>Xt(Hn.target.value),onSearch:()=>{Ve.page=1,Ve.name=Ve.save_name,Dt(vr({},Ve)),Nt(Ve)}}),a.createElement(ft.default,{placeholder:"\u8BF7\u9009\u62E9\u5BA1\u6838\u72B6\u6001",value:Ve==null?void 0:Ve.state,onChange:Hn=>Rt(Hn,"state")},a.createElement(ft.default.Option,{value:null},"\u5168\u90E8"),a.createElement(ft.default.Option,{value:"submitted"},"\u5F85\u5BA1\u6838"),a.createElement(ft.default.Option,{value:"passed"},"\u5BA1\u6838\u901A\u8FC7"),a.createElement(ft.default.Option,{value:"rejected"},"\u5BA1\u6838\u4E0D\u901A\u8FC7")),a.createElement(ft.default,{placeholder:"\u8BF7\u9009\u62E9\u5BA1\u6838\u7C7B\u578B",value:Ve==null?void 0:Ve.audit,onChange:Hn=>Rt(Hn,"audit")},a.createElement(ft.default.Option,{value:null},"\u5168\u90E8"),a.createElement(ft.default.Option,{value:1},"\u81EA\u52A8\u5BA1\u6838"),a.createElement(ft.default.Option,{value:2},"\u4EBA\u5DE5\u5BA1\u6838")),a.createElement("span",{className:so.btn,style:{cursor:"pointer"},onClick:()=>{if(!Dn.length){pe.ZP.warning("\u8BF7\u9009\u62E9\u5B66\u751F");return}zn(!0)}},a.createElement("i",{className:"iconfont icon-piliangcaozuo font14 mr5"}),"\u6279\u91CF\u5BA1\u6838")),a.createElement("div",{className:so.bgH}),a.createElement(x.default,{rowSelection:Sa,className:so.customTable,dataSource:Gt,bordered:!1,columns:Ja,rowKey:"exercise_identity_photo_id",rowClassName:so.row,loading:Yt,onChange:tn,pagination:{pageSize:Ve.limit,total:Wt,current:Ve.page,showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!1,position:["bottomCenter"],showTotal:Hn=>a.createElement("span",{className:"mr10"},"\u5171",a.createElement("span",{className:"c-orange"},Hn),"\u6761\u6570\u636E")}}),a.createElement(Ti,{selectIds:Dn,visible:nn,onCancel:()=>zn(!1),onOk:dt,params:Ve}),a.createElement(er.Z,null),a.createElement(Fe.default,{title:"\u4EBA\u8138\u8EAB\u4EFD\u5BA1\u6838",open:!!mn,centered:!0,width:650,destroyOnClose:!0,onCancel:()=>{pa(!1)},afterClose:()=>{et.resetFields()},confirmLoading:Yt,onOk:()=>fl(void 0,null,function*(){yield et.validateFields();const Hn=yield(0,Ce.ZP)(`/api/exercises/${Ve==null?void 0:Ve.exercise_id}/audit_identity_photo.json`,{method:"post",body:{identity_photo_id:mn==null?void 0:mn.exercise_identity_photo_id,state:"rejected",comment:et.getFieldValue("comment")}});(Hn==null?void 0:Hn.status)===0&&(pe.ZP.success("\u64CD\u4F5C\u6210\u529F"),pa(!1),Nt(Ve))})},a.createElement(fe.default,{className:so.formWrap,form:et,labelCol:{span:4},wrapperCol:{span:18}},a.createElement(fe.default.Item,{label:"\u5BA1\u6838\u610F\u89C1",name:"comment",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5BA1\u6838\u610F\u89C1"}]},a.createElement(Le.default,{placeholder:"\u5982\uFF1A\u4F60\u7684\u4E2A\u4EBA\u4FE1\u606F\u4E0E\u7167\u7247\u4E0D\u4E00\u81F4\u3002",size:"large",maxLength:30})))))};var jo=(0,he.connect)(({exercise:ce,user:se})=>({exercise:ce,user:se}))(Wr);const Ti=({visible:ce,onOk:se,onCancel:ae,selectIds:_e,params:pt})=>{const[Ve,Dt]=(0,a.useState)(!1),[et,Be]=(0,a.useState)({}),[Pe]=fe.default.useForm(),Ht=vn=>fl(void 0,null,function*(){Dt(!0);let hn;ce===!0?hn=yield(0,Ce.ZP)(`/api/exercises/${pt==null?void 0:pt.exercise_id}/batch_audit_identity_photo.json`,{method:"post",body:vr({identity_photo_ids:_e},vn)}):hn=yield(0,Ce.ZP)(`/api/exercises/${pt==null?void 0:pt.exercise_id}/audit_identity_photo.json`,{method:"post",body:vr({identity_photo_id:ce==null?void 0:ce.exercise_identity_photo_id},vn)}),(hn==null?void 0:hn.status)===0&&se(),Dt(!1)});return a.createElement(Fe.default,{title:ce!==!0?"\u4EBA\u8138\u8EAB\u4EFD\u5BA1\u6838":"\u6279\u91CF\u5BA1\u6838",open:!!ce,centered:!0,width:650,destroyOnClose:!0,onCancel:()=>{ae()},afterClose:()=>{Pe.resetFields(),Be({})},confirmLoading:Ve,onOk:()=>Pe.submit()},a.createElement(fe.default,{className:so.formWrap,form:Pe,labelCol:{span:4},wrapperCol:{span:18},onFinish:Ht,onValuesChange:()=>{Be(vr({},Pe.getFieldsValue()))}},ce!==!0&&a.createElement(oe.Z,{style:{marginLeft:28,marginBottom:38}},a.createElement(ve.Z,null,"\u91C7\u96C6\u7167\u7247\uFF1A"),a.createElement(ve.Z,null,a.createElement("aside",{className:so.imgWrap},a.createElement("div",{className:so.img},a.createElement("img",{width:234,src:(0,de.Tv)(ce==null?void 0:ce.photo_url)}),a.createElement("div",{onClick:()=>{Pa.Z.publish("preview-image",ce==null?void 0:ce.photo_url)},className:so.iBtn},"\u9884\u89C8"),a.createElement("div",{className:so.text},"\u91C7\u96C6\u7167\u7247")),a.createElement("div",{className:so.img,style:{marginLeft:20}},ce!=null&&ce.identity_url?a.createElement("img",{width:234,src:(0,de.Tv)(ce==null?void 0:ce.identity_url)}):a.createElement("div",{className:so.no,style:{width:326}},a.createElement("span",null,"\u6682\u65E0\u8BC1\u4EF6\u7167\u7247")),!!(ce!=null&&ce.identity_url)&&a.createElement("div",{onClick:()=>{Pa.Z.publish("preview-image",(0,de.Tv)(ce==null?void 0:ce.identity_url))},className:so.iBtn},"\u9884\u89C8"),a.createElement("div",{className:so.text},"\u8BC1\u4EF6\u7167\u7247"))))),a.createElement(fe.default.Item,{label:"\u5BA1\u6838\u72B6\u6001",name:"state",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5BA1\u6838\u72B6\u6001"}]},a.createElement(Ie.ZP.Group,null,a.createElement(Ie.ZP,{value:"passed"},"\u5BA1\u6838\u901A\u8FC7"),a.createElement(Ie.ZP,{value:"rejected"},"\u5BA1\u6838\u4E0D\u901A\u8FC7"))),(et==null?void 0:et.state)==="rejected"&&a.createElement(fe.default.Item,{label:"\u5BA1\u6838\u610F\u89C1",name:"comment",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5BA1\u6838\u610F\u89C1"}]},a.createElement(Le.default,{placeholder:"\u5982\uFF1A\u4F60\u7684\u4E2A\u4EBA\u4FE1\u606F\u4E0E\u7167\u7247\u4E0D\u4E00\u81F4\u3002",maxLength:30})),a.createElement("div",{style:{color:"#FA6400",paddingLeft:32}},"\u6CE8\u610F\uFF1A\u5BA1\u6838\u901A\u8FC7\u540E\uFF0C\u8BE5\u5B66\u751F\u5728\u672C\u573A\u8003\u8BD5\u7684\u8BA4\u8BC1\u72B6\u6001\u5C06\u66F4\u65B0\u4E3A\u201C\u5BA1\u6838\u901A\u8FC7\u201D\uFF0C\u4E14\u80FD\u591F\u8FDB\u5165\u8003\u8BD5\u3002")))};var yn=z(48054),fa=z(32983),va={flex_box_center:"flex_box_center___t6Zg2",flex_space_between:"flex_space_between___YFTSU",flex_box_vertical_center:"flex_box_vertical_center___qbDmM",flex_box_center_end:"flex_box_center_end___Bj6kw",flex_box_column:"flex_box_column___Ou9DO",wrap:"wrap___foAmP",control:"control___q0ttm",bgH:"bgH___NAS04",sys:"sys___rqcXV",li:"li___blFPM",d1:"d1___Xzld0",img:"img___ckn7G",btn:"btn___fSMGG",b1:"b1___zoANu",b2:"b2___bqZaY",big:"big___nQ5gf",cusModal:"cusModal___rTXoc",video:"video___E4J_7",imgWrap:"imgWrap___ENwuy",iBtn:"iBtn___bXnJy",text:"text___CK5up",no:"no___MBT10",textP:"textP___ibKK1",l:"l___Gi38o",r:"r___HNibN",fo:"fo___DQwO8",b:"b___z8B9p"},Vr=Object.defineProperty,Bl=Object.defineProperties,Gr=Object.getOwnPropertyDescriptors,El=Object.getOwnPropertySymbols,Dl=Object.prototype.hasOwnProperty,Qr=Object.prototype.propertyIsEnumerable,Kr=(ce,se,ae)=>se in ce?Vr(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,Do=(ce,se)=>{for(var ae in se||(se={}))Dl.call(se,ae)&&Kr(ce,ae,se[ae]);if(El)for(var ae of El(se))Qr.call(se,ae)&&Kr(ce,ae,se[ae]);return ce},Co=(ce,se)=>Bl(ce,Gr(se)),Br=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Wl=({exercise:ce,dispatch:se,user:ae})=>{var _e,pt,Ve,Dt,et,Be,Pe,Ht,vn;const hn=(0,he.useParams)(),[xt,Gt]=(0,a.useState)({page:1,limit:10,name:"",save_name:"",exercise_id:hn==null?void 0:hn.categoryId}),[Bn]=fe.default.useForm(),[Dn,Fn]=(0,a.useState)(),[Wt,Ut]=(0,a.useState)(!1),{exerciseList:Yt}=ce,[ea,nn]=(0,a.useState)([]),[zn,mn]=(0,a.useState)(0),[pa,Pt]=(0,a.useState)(!0),[Nt,Rt]=(0,a.useState)(!1),[Xt,cn]=(0,a.useState)("1"),[tn,Ja]=(0,a.useState)(1),[ha,dt]=(0,a.useState)("alert"),[Fa,ia]=(0,a.useState)(1),[wu,Sa]=(0,a.useState)(""),[Hn,Oa]=(0,a.useState)(!1),[tu,Ka]=(0,a.useState)(!1),[Ba,La]=(0,a.useState)([]);(0,a.useEffect)(()=>{Zn(xt)},[]);const Zn=Zu=>Br(void 0,null,function*(){const sa=hu().cloneDeep(Zu);Pt(!0),nn([]);const Ru=yield(0,Ce.ZP)(`/api/exercises/${Zu==null?void 0:Zu.exercise_id}/exercise_videos.json`,{method:"get",params:sa});Pt(!1),mn(Ru==null?void 0:Ru.count),nn((Ru==null?void 0:Ru.exercise_users)||[])}),bn=(Zu,sa)=>{xt.page=Zu,xt.limit=sa,Gt(Do({},xt)),Zn(xt)},ca=Zu=>{xt.page=1,xt.save_name=Zu,Gt(Do({},xt))},Qn=()=>{xt.page=1;const Zu=Object.assign({},Bn.getFieldsValue());Object.keys(Zu).map(function(sa){switch(sa){case"exercise_group_id":Zu[sa].includes("all")||!Zu[sa].length?(delete xt.course_group,Bn.setFieldsValue({exercise_group_id:"all"})):(xt.course_group=Zu[sa],Bn.setFieldsValue({exercise_group_id:xt.course_group}));break}}),Zn(xt)};(0,a.useEffect)(()=>{document.getElementById("divhe")&&document.getElementById("divhe").scrollHeight>47&&(Fn(47),Ut(!0))},[document.getElementById("divhe"),Yt]);const pn=Zu=>Br(void 0,null,function*(){Oa(!0),Rt({});const sa=yield(0,Ce.ZP)(`/api/exercises/${xt==null?void 0:xt.exercise_id}/student_info.json`,{method:"get",params:{exercise_user_id:Zu==null?void 0:Zu.exercise_user_id}}),Ru=yield(0,Ce.ZP)(`/api/exercises/${xt==null?void 0:xt.exercise_id}/video_push_logs.json`,{method:"get",params:{exercise_user_id:Zu==null?void 0:Zu.exercise_user_id}});Ru!=null&&Ru.data&&La((Ru==null?void 0:Ru.data)||[]),sa!=null&&sa.data&&Rt(Co(Do({},sa==null?void 0:sa.data),{exercise_user_id:Zu==null?void 0:Zu.exercise_user_id,datas:Zu})),Oa(!1)}),Tn=Zu=>{var sa,Ru;Ja(Zu==="prev"?tn-1===0?(sa=Nt==null?void 0:Nt.exercise_user_photos)==null?void 0:sa.length:tn-1:tn===((Ru=Nt==null?void 0:Nt.exercise_user_photos)==null?void 0:Ru.length)?1:tn+1)},En=()=>{Ja(1),dt("alert"),Sa(""),cn("1"),ia(1)},da=Zu=>{ia(Zu)},Ha=Zu=>{dt(Zu),ia(1),Sa("")},au=[{key:1,value:"\u624B\u673A\u5F55\u50CF\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u626B\u63CF\u5DE6\u4FA7\u4E8C\u7EF4\u7801\u5F00\u542F\u624B\u673A\u6444\u50CF\u5F55\u5236\u3002"},{key:2,value:"\u8BF7\u52FF\u79BB\u5F00\u76D1\u63A7\u8303\u56F4\uFF01"},{key:3,value:"\u8BF7\u4E0D\u8981\u4E0E\u5176\u4ED6\u4EBA\u4EA4\u8C08\uFF01"},{key:4,value:"\u8BF7\u4E0D\u8981\u505A\u4E0E\u8003\u8BD5\u65E0\u5173\u7684\u884C\u4E3A\uFF01"},{key:5,value:"\u8BF7\u52FF\u5207\u5C4F\uFF0C\u8D85\u8FC73\u6B21\u5C06\u88AB\u5F3A\u5236\u4EA4\u5377\uFF01"},{key:6,value:"\u8BF7\u52FF\u906E\u6321\u6216\u5173\u95ED\u7535\u8111\u6444\u50CF\u76D1\u63A7\uFF01"},{key:0,value:"\u5176\u4ED6"}],Ya=[{key:1,value:"\u8BF7\u5C06\u624B\u673A\u653E\u7F6E\u4E8E\u4FA7\u540E\u65B945\xB0\uFF0C\u79BB\u684C\u97621\u7C73\u5DE6\u53F3\uFF0C\u4FDD\u8BC1\u80FD\u62CD\u6444\u5230\u4E0A\u534A\u8EAB\u3001\u7535\u8111\u5C4F\u5E55\u548C\u684C\u9762\u3002"},{key:2,value:"\u624B\u673A\u5F55\u50CF\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u626B\u63CF\u5DE6\u4FA7\u4E8C\u7EF4\u7801\u5F00\u542F\u624B\u673A\u6444\u50CF\u5F55\u5236\u3002"},{key:0,value:"\u5176\u4ED6"}],Cr=ha==="alert"?au:Ya;return a.createElement("section",{className:va.wrap},a.createElement(fe.default,{form:Bn,onChange:Qn,initialValues:{exercise_group_id:"all"}},a.createElement(fe.default.Item,{name:"exercise_group_id"},a.createElement(Se.default.Group,{style:{width:"100%"}},a.createElement(oe.Z,null,a.createElement(ve.Z,{className:"font14",flex:"80px"},"\u9009\u62E9\u5206\u73ED:"),a.createElement(ve.Z,{flex:"80px"},a.createElement(Se.default,{value:"all"},"\u5168\u90E8")),a.createElement(ve.Z,{flex:"1",id:"divhe",style:{height:Dn+"px",overflow:"hidden"}},(_e=Yt.course_groups)==null?void 0:_e.map((Zu,sa)=>a.createElement(Se.default,{key:sa,value:Zu.exercise_group_id,className:"ml0 mr8"},Zu.exercise_group_name,"(",Zu.exercise_group_students,")"))),Wt&&a.createElement("span",{onClick:()=>{let Zu=document.getElementById("divhe").scrollHeight;Dn>47?Fn(47):Fn(Zu)},style:{color:"rgb(76, 172, 255)",cursor:"pointer",alignItems:"flex-end",display:"flex"}},Dn===47?"\u5C55\u5F00":"\u6536\u8D77",Dn===47?a.createElement(fs.Z,{style:{marginBottom:"3px",marginLeft:"2px"}}):a.createElement(ps.Z,{style:{marginBottom:"3px",marginLeft:"2px"}})))))),a.createElement("div",{className:va.control},a.createElement(Le.default.Search,{placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",value:xt==null?void 0:xt.save_name,onChange:Zu=>ca(Zu.target.value),onSearch:()=>{xt.page=1,xt.name=xt.save_name,Gt(Do({},xt)),Zn(xt)}})),a.createElement("div",{className:va.bgH}),a.createElement("div",{className:va.warpList},a.createElement(yn.Z,{loading:pa,active:!0,paragraph:{rows:5}},a.createElement("div",{className:"c-grey-666 mb20 mt20"},"\u5171",a.createElement("span",{className:"c-orange"},zn),"\u540D\u5B66\u751F\u5DF2\u5F00\u542F\u624B\u673A\u6444\u5F71"),ea.length?a.createElement("ul",{className:va.sys},ea.map((Zu,sa)=>{const{user_name:Ru,user_group_name:mr,video_url:gl,login:Tl,student_id:mu}=Zu;return a.createElement("li",{className:va.li,key:sa},a.createElement("div",{className:va.d1},a.createElement("div",{className:va.img},a.createElement("iframe",{style:{height:340,width:"100%",border:"none"},src:`/live-play.html?key=${sa}&video_url=${gl==null?void 0:gl.replace(".m3u8",".flv")}`})),a.createElement(Ae.Z,{title:"\u59D3\u540D+\u5B66\u53F7"},a.createElement("div",{className:va.btn,onClick:()=>(0,de.RG)(`${xt.exercise_id}-${Tl}`,!0)},a.createElement("div",{title:Ru,className:va.b1},Ru),a.createElement("div",{title:mr,className:va.b2},"(",mu,")"))),a.createElement("div",{onClick:()=>pn(Zu),className:va.big},"\u67E5\u770B")))})):a.createElement(fa.Z,null)),a.createElement(He.Z,{showTotal:Zu=>a.createElement("span",{className:"mr10"},"\u5171",a.createElement("span",{className:"c-orange"},Zu),"\u6761\u6570\u636E"),className:"tc",showSizeChanger:!1,showQuickJumper:!0,hideOnSinglePage:!0,onChange:bn,pageSize:xt==null?void 0:xt.limit,current:xt.page,total:zn})),a.createElement(Fe.default,{title:"\u67E5\u770B\u8BE6\u7EC6\u4FE1\u606F",open:Nt,centered:!0,width:850,destroyOnClose:!0,onCancel:()=>{Rt(!1)},afterClose:En,footer:null},a.createElement(yn.Z,{loading:Hn,active:!0,paragraph:{rows:5}},a.createElement("div",null,a.createElement("span",null,"\u59D3\u540D:",(pt=Nt==null?void 0:Nt.datas)==null?void 0:pt.user_name),a.createElement("span",{className:"ml20"},"\u5B66\u53F7:",(Ve=Nt==null?void 0:Nt.datas)==null?void 0:Ve.student_id),a.createElement("span",{className:"ml20"},"\u73ED\u7EA7:",(Dt=Nt==null?void 0:Nt.datas)==null?void 0:Dt.user_group_name)),a.createElement(y.default,{className:"mt10",defaultActiveKey:Xt,onChange:Zu=>{cn(Zu)}},a.createElement(y.default.TabPane,{tab:"\u9632\u4F5C\u5F0A\u5934\u50CF",key:"1"},a.createElement("aside",{className:va.imgWrap},a.createElement("div",{className:va.img,style:{width:234,marginLeft:30,textAlign:"center"}},(et=Nt==null?void 0:Nt.exercise_user_photos)!=null&&et.length?a.createElement(a.Fragment,null,a.createElement("img",{height:131,src:(Be=Nt==null?void 0:Nt.exercise_user_photos)==null?void 0:Be[tn-1]}),a.createElement("div",{onClick:()=>{var Zu;Pa.Z.publish("preview-image",(Zu=Nt==null?void 0:Nt.exercise_user_photos)==null?void 0:Zu[tn-1])},className:va.iBtn},"\u9884\u89C8"),a.createElement("div",{className:va.text},"\u8003\u8BD5\u4E2D\u7167\u7247",a.createElement("span",{className:"c-light-primary"},tn,"/",(Pe=Nt==null?void 0:Nt.exercise_user_photos)==null?void 0:Pe.length)),tn===1?a.createElement("div",{style:{color:"#ccc",cursor:"not-allowed"},className:va.l}," ",a.createElement("i",{className:"iconfont icon-fanhui2"})):a.createElement("div",{onClick:()=>Tn("prev"),className:va.l}," ",a.createElement("i",{className:"iconfont icon-fanhui2"})),a.createElement("div",{onClick:()=>Tn("next"),className:va.r},a.createElement("i",{className:"iconfont icon-lujing"}))):a.createElement("div",{className:va.no},a.createElement("span",null,"\u6682\u65E0\u8003\u8BD5\u4E2D\u7167\u7247"))),a.createElement("div",{className:va.img,style:{marginLeft:60,width:234,textAlign:"center"}},Nt!=null&&Nt.identity_url?a.createElement("img",{height:131,src:(0,de.Tv)(Nt==null?void 0:Nt.identity_url)}):a.createElement("div",{className:va.no},a.createElement("span",null,"\u6682\u65E0\u8BC1\u4EF6\u7167\u7247")),!!(Nt!=null&&Nt.identity_url)&&a.createElement("div",{onClick:()=>{Pa.Z.publish("preview-image",(0,de.Tv)(Nt==null?void 0:Nt.identity_url))},className:va.iBtn},"\u9884\u89C8"),a.createElement("div",{className:va.text},"\u8BC1\u4EF6\u7167\u7247")))),a.createElement(y.default.TabPane,{tab:"\u4EBA\u8138\u7167\u7247",key:"2"},a.createElement("aside",{className:va.imgWrap,style:{marginLeft:70}},a.createElement("div",{className:va.img},a.createElement("img",{width:234,src:Nt==null?void 0:Nt.exercise_identity_photo}),a.createElement("div",{onClick:()=>{Pa.Z.publish("preview-image",Nt==null?void 0:Nt.exercise_identity_photo)},className:va.iBtn},"\u9884\u89C8"),a.createElement("div",{className:va.text},"\u91C7\u96C6\u7167\u7247")),a.createElement("div",{className:va.img,style:{marginLeft:20,width:234,textAlign:"center"}},Nt!=null&&Nt.identity_url?a.createElement("img",{height:131,src:(0,de.Tv)(Nt==null?void 0:Nt.identity_url)}):a.createElement("div",{className:va.no},a.createElement("span",null,"\u6682\u65E0\u8BC1\u4EF6\u7167\u7247")),!!(Nt!=null&&Nt.identity_url)&&a.createElement("div",{onClick:()=>{Pa.Z.publish("preview-image",(0,de.Tv)(Nt==null?void 0:Nt.identity_url))},className:va.iBtn},"\u9884\u89C8"),a.createElement("div",{className:va.text},"\u8BC1\u4EF6\u7167\u7247")))),a.createElement(y.default.TabPane,{tab:"\u8B66\u544A\u548C\u901A\u77E5",key:"3"},a.createElement("div",{className:va.fo},a.createElement(Ie.ZP,{className:"mt20",checked:ha==="alert",onChange:()=>Ha("alert")},"\u53D1\u9001\u8B66\u544A",a.createElement("span",{className:"font14 c-grey-999"},"\uFF08\u5982\u53D1\u73B0\u5B66\u751F\u5728\u8003\u8BD5\u4E2D\u7684\u7167\u7247\u5B58\u5728\u5F02\u5E38\u65F6\uFF0C\u53EF\u53D1\u9001\u6D88\u606F\u7ED9\u5B66\u751F\uFF09")),a.createElement(Ie.ZP,{className:"mt10",checked:ha==="notice",onChange:()=>Ha("notice")},"\u53D1\u9001\u901A\u77E5",a.createElement("span",{className:"font14 c-grey-999"},"\uFF08\u8003\u8BD5\u4E2D\u5982\u6709\u6D88\u606F\u901A\u77E5\uFF0C\u53EF\u53D1\u9001\u6D88\u606F\u7ED9\u5B66\u751F\uFF09")),a.createElement("div",{className:"mt20"},a.createElement("span",{className:"mr10"},"\u539F\u56E0:"),a.createElement(ft.default,{style:{width:570},value:Fa,onChange:da},Cr==null?void 0:Cr.map(Zu=>a.createElement(ft.default.Option,{key:Zu.key,value:Zu.key},Zu.value)))),Fa===0&&a.createElement(Le.default.TextArea,{className:"mt20",value:wu,onChange:Zu=>Sa(Zu.target.value),placeholder:"\u8BF7\u586B\u5199\u5176\u4ED6\u539F\u56E0"}),a.createElement(oe.Z,{className:"mt10",align:"middle"},a.createElement("div",{className:"mr10"},"\u53D1\u9001\u8BB0\u5F55"),a.createElement("div",{style:{color:"#E30000",fontSize:12,margin:"10px 0"}},"\u5DF2\u53D1\u9001",Nt==null?void 0:Nt.alert_count,"\u6B21\u8B66\u544A\u548C",((Ht=Nt==null?void 0:Nt.alerts)==null?void 0:Ht.length)-(Nt==null?void 0:Nt.alert_count),"\u6B21\u901A\u77E5")),a.createElement(x.default,{dataSource:(Nt==null?void 0:Nt.alerts)||[],bordered:!1,scroll:((vn=Nt==null?void 0:Nt.alerts)==null?void 0:vn.length)>4?{y:200}:{},columns:[{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"created_at",width:164},{title:"\u53D1\u9001\u4EBA",dataIndex:"sender",width:100,ellipsis:{showTitle:!1},render:Zu=>Zu?a.createElement("span",{title:Zu},Zu):"--"},{title:"\u53D1\u9001\u7C7B\u578B",dataIndex:"clazz",width:80,render:Zu=>Zu==="alert"?"\u8B66\u544A":"\u901A\u77E5"},{title:"\u53D1\u9001\u5185\u5BB9",dataIndex:"content",ellipsis:!0}],pagination:!1}),a.createElement(me.ZP,{className:va.b,onClick:()=>Br(void 0,null,function*(){if(!wu&&Fa===0){pe.ZP.info("\u8BF7\u8F93\u5165\u5176\u4ED6\u539F\u56E0");return}let Zu=wu;Fa&&(Zu=(ha==="alert"?au:Ya).find(mr=>mr.key===Fa).value),Ka(!0);let sa=yield(0,Ce.ZP)(`/api/exercises/${xt.exercise_id}/send_alert.json`,{method:"post",body:{content:Zu,clazz:ha,exercise_user_id:Nt==null?void 0:Nt.exercise_user_id}});(sa==null?void 0:sa.status)===0&&(pe.ZP.info("\u53D1\u9001\u6210\u529F"),Rt(!1)),Ka(!1)}),loading:tu,type:"primary"},a.createElement("i",{className:"iconfont icon-fasongtongzhi mr5"}),"\u53D1\u9001"))),a.createElement(y.default.TabPane,{tab:"\u65AD\u6D41\u8BB0\u5F55",key:"4"},a.createElement(x.default,{dataSource:Ba,bordered:!1,scroll:Ba.length>7?{y:300}:{},columns:[{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"start_time",width:164},{title:"\u7ED3\u675F\u65F6\u95F4",dataIndex:"end_time",width:164,render:Zu=>Ge()(Zu).format("YYYY-MM-DD HH:mm:ss")||"--"},{title:"\u63A8\u6D41\u65F6\u957F",dataIndex:"push_duration",ellipsis:!0,width:120,render:Zu=>Zu&&(0,de.li)(Number(Zu)/1e3)||0},{title:"\u65AD\u6D41\u539F\u56E0",dataIndex:"msg",ellipsis:!0}]}))))),a.createElement(er.Z,null))};var hi=(0,he.connect)(({exercise:ce,user:se})=>({exercise:ce,user:se}))(Wl),bu={flex_box_center:"flex_box_center___xF1ge",flex_space_between:"flex_space_between___YGq9c",flex_box_vertical_center:"flex_box_vertical_center___wd_iR",flex_box_center_end:"flex_box_center_end___HoL5p",flex_box_column:"flex_box_column___Oy7FC",warp:"warp____YDkr",header:"header___BRNBu",empty:"empty___iwhMt"},ns={flex_box_center:"flex_box_center___Xa_jj",flex_space_between:"flex_space_between___N_2qI",flex_box_vertical_center:"flex_box_vertical_center___wGZOw",flex_box_center_end:"flex_box_center_end___GYY4W",flex_box_column:"flex_box_column___jR_ZX",subjectTable:"subjectTable___WrGqf",title:"title___ZCcfg",customTable:"customTable___xSvZm",row:"row___Acnda",line:"line___nmQeX"},cl=Object.defineProperty,is=Object.defineProperties,li=Object.getOwnPropertyDescriptors,_i=Object.getOwnPropertySymbols,as=Object.prototype.hasOwnProperty,ho=Object.prototype.propertyIsEnumerable,oi=(ce,se,ae)=>se in ce?cl(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,Zi=(ce,se)=>{for(var ae in se||(se={}))as.call(se,ae)&&oi(ce,ae,se[ae]);if(_i)for(var ae of _i(se))ho.call(se,ae)&&oi(ce,ae,se[ae]);return ce},Ss=(ce,se)=>is(ce,li(se)),ss=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())}),Es=({index:ce,bottomLine:se,gather:ae,search:_e})=>{const[pt,Ve]=(0,a.useState)([]),[Dt,et]=(0,a.useState)(!1),[Be,Pe]=(0,a.useState)(!1),Ht=(0,he.useParams)(),vn=(0,he.useLocation)(),[hn]=(0,he.useSearchParams)(),[xt,Gt]=(0,a.useState)({page:1,limit:6,total:0});(0,a.useEffect)(()=>{console.log(ae,"gather"),ce===0&&Pe(!0)},[]),(0,a.useEffect)(()=>{Be&&Dn()},[Be]);const Bn=[{title:"\u5E8F\u53F7",dataIndex:"index",key:"index",align:"left",ellipsis:!0,render:(Ut,Yt,ea)=>xt.limit*(xt.page-1)+ea+1},{title:"\u59D3\u540D",dataIndex:"username",key:"username",align:"left",ellipsis:!0},{title:"\u73ED\u7EA7",dataIndex:"user_group_name",key:"user_group_name",align:"left",render:Ut=>Ut||"--"},{title:"\u5B66\u53F7",dataIndex:"student_id",key:"student_id",align:"left"},{title:"\u76F8\u4F3C\u5EA6",dataIndex:"code_rate",key:"code_rate",align:"left",render:Ut=>Ut+"%"},{title:"\u64CD\u4F5C",dataIndex:"id",key:"id",align:"left",render:Ut=>{let Yt=`/classrooms/${Ht==null?void 0:Ht.coursesId}/exercise/${Ht==null?void 0:Ht.categoryId}/detail/${Ut}/review_detail`;return hn.get("random")&&(Yt=Yt+`?random=${hn.get("random")}`),a.createElement(he.Link,{to:Yt,target:"_blank"},"\u67E5\u770B")}}],Dn=Ut=>ss(void 0,null,function*(){et(!0);const Yt=Ut||{page:1,limit:10,total:0},ea=Zi({id:Ht==null?void 0:Ht.categoryId,question_id:ae==null?void 0:ae.question_id,search:_e},Yt),nn=yield(0,Ce.ZP)(`/api/courses/${Ht==null?void 0:Ht.coursesId}/exercises/code_review_users.json`,{method:"get",params:ea});nn&&(Ve(nn==null?void 0:nn.users),et(!1),Gt(Ss(Zi({},Yt),{total:(nn==null?void 0:nn.count)||0})))}),Fn=Ut=>{const Yt=Ss(Zi({},xt),{page:Ut});Gt(Yt),Dn(Yt)},Wt=()=>{Pe(!Be)};return a.createElement("div",{className:ns.subjectTable},a.createElement("aside",{className:ns.title},a.createElement("span",{className:"c-light-primary"},ce+1,"\u3001",ae.name||((ae==null?void 0:ae.question_type)===5?"\u5B9E\u8BAD\u9898":"\u7F16\u7A0B\u9898")),a.createElement("span",{className:"c-grey-333"},"\uFF08",ae==null?void 0:ae.score,"\u5206\uFF09\uFF1A",ae==null?void 0:ae.question_title),a.createElement("span",{className:"ml40 c-grey-999"},a.createElement("b",{className:"c-red-ee4"},ae==null?void 0:ae.checked_count),"\xA0\u4E2A\u7591\u4F3C\u6284\u88AD\u4F5C\u54C1\uFF08\u5171",ae==null?void 0:ae.total_count,"\u4E2A\u4F5C\u54C1\uFF09"),a.createElement("span",{onClick:Wt,style:{marginLeft:"auto",cursor:"pointer",color:"#0152d9"}},Be?"\u6536\u8D77":"\u5C55\u5F00",Be?a.createElement(ps.Z,null):a.createElement(fs.Z,null)),(ae==null?void 0:ae.question_type)===5&&a.createElement("a",{style:{marginLeft:20},target:"_blank",href:`/shixuns/${ae==null?void 0:ae.shixun_identifier}/challenges`},"\u5B9E\u8BAD\u8BE6\u60C5")),a.createElement(x.default,{className:ns.customTable,style:{display:Be?"block":"none"},dataSource:pt,bordered:!1,rowKey:Ut=>Ut.id,rowClassName:ns.row,columns:Bn,loading:Dt,pagination:{pageSize:xt.limit,total:xt.total,current:xt.page,onChange:Fn,showQuickJumper:!0,showSizeChanger:!1,hideOnSinglePage:!0,position:["bottomCenter"]}}),a.createElement("div",{className:ns.line,style:{visibility:se?"hidden":"visible"}}))},ws=z(63494),no=z(67294),Dc=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Oc=({exercise:ce,globalSetting:se,dispatch:ae})=>{const[_e,pt]=(0,a.useState)(""),[Ve,Dt]=(0,a.useState)([]),[et,Be]=(0,a.useState)(""),[Pe,Ht]=(0,a.useState)(!1),[vn,hn]=(0,a.useState)(!1),xt=(0,he.useParams)();(0,a.useEffect)(()=>{Gt()},[]);const Gt=Fn=>Dc(void 0,null,function*(){Ht(!0);const Wt=yield(0,Ce.ZP)(`/api/courses/${xt==null?void 0:xt.coursesId}/exercises/code_review_results.json`,{method:"get",params:{id:xt==null?void 0:xt.categoryId,search:_e}});if((Wt==null?void 0:Wt.status)===-2){hn(!0),Gt();return}Wt&&(hn(!1),Ht(!1),Dt((Wt==null?void 0:Wt.exercise_questions)||[]),Be(Wt==null?void 0:Wt.last_review_time))}),Bn=()=>{Gt()},Dn=()=>no.createElement("div",{className:bu.empty},no.createElement("img",{src:ws.x7,width:"258"}),no.createElement("span",{className:"c-grey-c"},"\u6682\u65E0\u6570\u636E"));return no.createElement("section",{className:bu.warp},no.createElement("aside",{className:bu.header},no.createElement("div",null,"\u67E5\u91CD\u65F6\u95F4\uFF1A",et||"--"),!!et&&no.createElement(Le.default,{value:_e,onChange:Fn=>pt(Fn.target.value),suffix:no.createElement("i",{onClick:Bn,className:"iconfont icon-sousuo2 c-grey-c"}),bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u5B66\u53F7\u641C\u7D22",onPressEnter:Bn})),vn&&no.createElement(zt.Z,{customText:"\u6B63\u5728\u8FDB\u884C\u4EE3\u7801\u67E5\u91CD\uFF0C\u8BF7\u7A0D\u5019\u3002\u67E5\u91CD\u7ED3\u675F\u540E\uFF0C\u9875\u9762\u5C06\u81EA\u52A8\u66F4\u65B0\u663E\u793A\u7ED3\u679C"}),!vn&&no.createElement(yn.Z,{loading:Pe,active:!0,paragraph:{rows:5}},Ve.length>0?no.createElement("aside",{className:bu.subject},Ve.map((Fn,Wt)=>no.createElement(Es,{key:Wt,index:Wt,bottomLine:Wt===Ve.length-1,gather:Fn,search:_e}))):Dn()))};var Ts=(0,he.connect)(({exercise:ce,globalSetting:se})=>({exercise:ce,globalSetting:se}))(Oc),ks=z(96074),Fi=z(35567),ac=z(35566),ll=z(73646),ba={flex_box_center:"flex_box_center___epJYP",flex_space_between:"flex_space_between___SU6BD",flex_box_vertical_center:"flex_box_vertical_center___Qes2t",flex_box_center_end:"flex_box_center_end___hGppz",flex_box_column:"flex_box_column___uzhhO",wrap:"wrap___rEjJ0",modal:"modal___gRDV9",titleWrap:"titleWrap___MK_OO",required:"required___Hja3H",title:"title___vMFKz",colorGray:"colorGray___hNhIL",choiceWrap:"choiceWrap___Xx5du",answer:"answer___cbuNE",activeAnswer:"activeAnswer___LwFG7",deleteIcon:"deleteIcon____HG4s",addIcon:"addIcon___r_Vhy",editorWrap:"editorWrap___OYwur",htmlWrap:"htmlWrap___qXHYn",radio:"radio___urtyZ",color333:"color333___Lah7k",color999:"color999___TmkZt",questionType:"questionType___r_bKw",questionChoices:"questionChoices___LA7VM",action:"action___fTTDM",difficult:"difficult___Mg7lT",fold:"fold___oVjRI",head:"head___fpwmn",divname:"divname___O7KlL",btn_warp:"btn_warp___aj_Vv"},Jn=z(4069),cr=z(35713),$n=z(67294),Ql=Object.defineProperty,Bo=Object.getOwnPropertySymbols,ao=Object.prototype.hasOwnProperty,Ui=Object.prototype.propertyIsEnumerable,xs=(ce,se,ae)=>se in ce?Ql(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,Ps=(ce,se)=>{for(var ae in se||(se={}))ao.call(se,ae)&&xs(ce,ae,se[ae]);if(Bo)for(var ae of Bo(se))Ui.call(se,ae)&&xs(ce,ae,se[ae]);return ce},vi=(ce,se)=>{var ae={};for(var _e in ce)ao.call(ce,_e)&&se.indexOf(_e)<0&&(ae[_e]=ce[_e]);if(ce!=null&&Bo)for(var _e of Bo(ce))se.indexOf(_e)<0&&Ui.call(ce,_e)&&(ae[_e]=ce[_e]);return ae},Ni=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Mc=null,jc="\u2581",Is=(ce,se)=>{var ae=ce,{problemset:_e,globalSetting:pt,exercise:Ve,loading:Dt,dispatch:et,editData:Be,editKey:Pe,setEditKey:Ht=()=>{},cancelAdd:vn=()=>{},addCallback:hn=()=>{},reload:xt=()=>{},setIsClaer:Gt=()=>{}}=ae,Bn=vi(ae,["problemset","globalSetting","exercise","loading","dispatch","editData","editKey","setEditKey","cancelAdd","addCallback","reload","setIsClaer"]);const[Dn,Fn]=(0,a.useState)(""),[Wt,Ut]=(0,a.useState)(""),[Yt,ea]=(0,a.useState)([]),[nn,zn]=(0,a.useState)(""),[mn,pa]=(0,a.useState)(),[Pt,Nt]=(0,a.useState)(!1),[Rt,Xt]=(0,a.useState)(),[cn,tn]=(0,a.useState)(0),[Ja,ha]=(0,a.useState)(!1),[dt,Fa]=(0,a.useState)(!1),[ia,wu]=(0,a.useState)([]),[Sa,Hn]=(0,a.useState)(1),[Oa,tu]=(0,a.useState)(!1),Ka=(0,a.useRef)(!1),Ba=(0,he.useParams)(),[La,Zn]=(0,a.useState)([]),bn=Ru=>{Zn([...La,Ps({},Ru)])};(0,a.useEffect)(()=>{var Ru;if(Ka.current)return;if(!(Be!=null&&Be.question_title)){ha(!0),Fn(""),pa(!1),Xt(2),ea([]),zn(""),Nt(!1);return}Fn(Be==null?void 0:Be.question_title),pa(Be==null?void 0:Be.is_ordered),Hn(Be==null?void 0:Be.difficulty),tu(!(Be!=null&&Be.repeat_answer)),Xt(Be==null?void 0:Be.question_score);const mr=(Ru=Be==null?void 0:Be.standard_answers)==null?void 0:Ru.map(gl=>gl.answer_text);ea([...mr]),wu(Be.tag_discipline_ids),Ut(Be==null?void 0:Be.analysis)},[Be,Ja]),(0,a.useEffect)(()=>{Nt(!1),Ja&&Ru();function Ru(){return Ni(this,null,function*(){var mr,gl;const Tl=yield(0,ne.YY)({sub_discipline_id:(gl=(mr=Ve.editData)==null?void 0:mr.exercise)==null?void 0:gl.sub_discipline_id});Zn(Tl.tag_disciplines)})}},[Ja]),(0,a.useImperativeHandle)(se,()=>({onSave:Qn,isEdit:Ja})),(0,a.useEffect)(()=>{var Ru;const mr=(Ru=Ve==null?void 0:Ve.tagDisciplineData)!=null&&Ru.tag_disciplines&&Array.isArray(Ve.tagDisciplineData.tag_disciplines)?Ve.tagDisciplineData.tag_disciplines:[];Zn(mr)},[Ve.tagDisciplineData]);const ca=Ru=>{(Ru==null?void 0:Ru.status)===0&&(pe.ZP.success("\u4FDD\u5B58\u6210\u529F"),ha(!1),Ht(-1),Ka.current=!1,xt())},Qn=()=>Ni(void 0,null,function*(){var Ru,mr,gl,Tl;let mu=[],$u=!1;if(Fa(!0),Yt.forEach((Eu,wr)=>{mu.push({choice_id:wr+1,answer_text:[]}),Eu.forEach((Va,Nu)=>{mu[wr].answer_text.push(Va),(!Va||!(0,de.eR)(Va,1e4))&&(zn(`${wr}-${Nu}`),pe.ZP.info(Va?"\u7B54\u6848\u4E0D\u80FD\u8D85\u8FC710000\u5B57\u7B26":"\u7B54\u6848\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"),$u=!0)})}),$u)return Fa(!1),!1;Ka.current=!0;let jr;return Be.question_id?(Be==null?void 0:Be.is_my)===1?Fe.default.confirm({title:"\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",keyboard:!1,onOk:()=>Ni(void 0,null,function*(){var Eu,wr;jr=yield et({type:"exercise/editExerciseQuestion",payload:{id:Be.question_id,question_title:Dn,question_type:3,question_score:Rt,is_ordered:mn,standard_answers:mu,tag_discipline_ids:ia,sub_discipline_id:(wr=(Eu=Ve.editData)==null?void 0:Eu.exercise)==null?void 0:wr.sub_discipline_id,difficulty:Sa,is_cover:1,repeat_answer:!Oa,analysis:Wt}}),ca(jr)}),onCancel:()=>Ni(void 0,null,function*(){var Eu,wr;jr=yield et({type:"exercise/editExerciseQuestion",payload:{id:Be.question_id,question_title:Dn,question_type:3,question_score:Rt,is_ordered:mn,standard_answers:mu,tag_discipline_ids:ia,sub_discipline_id:(wr=(Eu=Ve.editData)==null?void 0:Eu.exercise)==null?void 0:wr.sub_discipline_id,difficulty:Sa,repeat_answer:!Oa,analysis:Wt}}),ca(jr)})}):(jr=yield et({type:"exercise/editExerciseQuestion",payload:{id:Be.question_id,question_title:Dn,question_type:3,question_score:Rt,is_ordered:mn,standard_answers:mu,tag_discipline_ids:ia,sub_discipline_id:(mr=(Ru=Ve.editData)==null?void 0:Ru.exercise)==null?void 0:mr.sub_discipline_id,difficulty:Sa,repeat_answer:!Oa,analysis:Wt}}),ca(jr)):(jr=yield et({type:"exercise/addExerciseQuestion",payload:{insert_id:Be==null?void 0:Be.insert_id,categoryId:Ba.categoryId,question_title:Dn,question_type:3,question_score:Rt,is_ordered:mn,standard_answers:mu,tag_discipline_ids:ia,sub_discipline_id:(Tl=(gl=Ve.editData)==null?void 0:gl.exercise)==null?void 0:Tl.sub_discipline_id,difficulty:Sa,repeat_answer:!Oa,analysis:Wt}}),ca(jr)),Fa(!1),{name:Dn,analysis:Wt,standard_answers:mu,is_ordered:mn}}),pn=(Ru,mr,gl)=>{const Tl=Yt.slice();if(mr&&Tl.splice(Ru,mr),gl&&Pt||!Be.question_id)for(let mu=0;mu{zn("");let Tl=Yt.slice();Tl[Ru][mr]=gl,ea(Tl)},En=Ru=>{let mr=Yt.slice();mr[Ru]=[...mr[Ru],""],ea(mr)},da=(Ru,mr)=>{let gl=Yt.slice();if(!gl[Ru][mr]){gl[Ru]=gl[Ru].filter((Tl,mu)=>mu!==mr),ea(gl);return}Fe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:ba.modal,onOk:()=>{gl[Ru]=gl[Ru].filter((Tl,mu)=>mu!==mr),ea(gl)}})},Ha=Ru=>{Fe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:ba.modal,onOk:()=>{let mr=0;Fn(Dn.replace(/\▁/g,function(gl){return mr++,mr-1===Ru?"":gl})),setTimeout(()=>{let gl=Yt.slice();gl=Yt.filter((Tl,mu)=>Ru!==mu),ea(gl)},500)}})},au=()=>{},Ya=()=>{var Ru,mr,gl,Tl,mu,$u;return console.log(Yt,"answers"),$n.createElement("aside",null,$n.createElement("div",{className:ba.questionType},$n.createElement("div",null,$n.createElement("span",{className:"font16 c-blue"},"\u586B\u7A7A\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u5141\u8BB8\u624B\u52A8\u8C03\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848 \uFF1B\u652F\u6301\u6700\u591A5\u4E2A\u7A7A\uFF0C\u6BCF\u7A7A\u5F97\u5206\u6309\u7167\u672C\u9898\u7684\u603B\u5206\u5E73\u5747\u8BA1\u7B97\uFF09")),$n.createElement("div",null,$n.createElement(ac.Z,{id:"completion-question-tittle",placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE",height:155,defaultValue:Dn,onChange:jr=>Fn(jr),showNullButton:((mr=(Ru=Ve.editData)==null?void 0:Ru.exercise)==null?void 0:mr.exercise_status)===1,deleteEmptyDisabled:((Tl=(gl=Ve.editData)==null?void 0:gl.exercise)==null?void 0:Tl.exercise_status)!==1||dt,onPlaceholderChange:pn})),$n.createElement("div",{className:"mt20"},Yt.map((jr,Eu)=>{var wr,Va;return $n.createElement(ll.Z,{key:Eu,answers:jr,index:Eu,is_md:!0,exerciseIsPublish:((Va=(wr=Ve.editData)==null?void 0:wr.exercise)==null?void 0:Va.exercise_status)!==1,activeOptionErrorIndex:nn,onAnswerChange:Tn,addChildAnswer:En,deleteChildAnswer:da,deleteChildAnswermain:Ha})})),$n.createElement("div",{className:"mt20"},Yt.length>1&&$n.createElement("span",null,$n.createElement(Se.default,{checked:mn,onChange:jr=>pa(jr.target.checked),className:`${ba.color333} font14`},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),$n.createElement("span",{className:`${ba.color999} font12`},"\uFF08\u9009\u4E2D\uFF0C\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u987A\u5E8F\u5FC5\u987B\u4E0E\u53C2\u8003\u7B54\u6848\u4E00\u81F4\uFF09"))),$n.createElement("p",{className:ba.titleWrap},$n.createElement("span",{className:ba.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),$n.createElement(Fi.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Wt,onChange:jr=>Ut(jr)}),$n.createElement("p",{className:""},$n.createElement("span",{style:{color:"red"}},"*"),"\u5206\u503C\uFF1A",$n.createElement(Re.Z,{value:Rt,max:1e4,min:0,onChange:jr=>{Xt(jr)}})," \u5206 \xA0 ",!!Rt&&!!cn&&$n.createElement("span",{style:{color:"red"}},"(\u6839\u636E\u5747\u5206\u89C4\u5219\uFF0C\u672C\u9898\u6BCF\u7A7A",(Rt/cn).toFixed(1),"\u5206)"),$n.createElement("span",{style:{marginLeft:"30px"},className:ba.difficult},$n.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",$n.createElement(Ie.ZP.Group,{value:Sa,onChange:jr=>{Hn(jr.target.value)}},$n.createElement(Ie.ZP.Button,{value:1},"\u7B80\u5355"),$n.createElement(Ie.ZP.Button,{value:2},"\u9002\u4E2D"),$n.createElement(Ie.ZP.Button,{value:3},"\u56F0\u96BE")))),$n.createElement("p",{className:ba.titleWrap},$n.createElement("span",{className:`${ba.title}`},"\u77E5\u8BC6\u70B9\uFF1A",$n.createElement("span",{className:ba.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),$n.createElement("div",{className:"mt5"},$n.createElement(Jn.N,{value:ia,selectvalues:Be==null?void 0:Be.tag_discipline_ids,onChange:wu,subId:($u=(mu=Ve.editData)==null?void 0:mu.exercise)==null?void 0:$u.sub_discipline_id,knowledgeOptions:La,onAddKnowledgeFinish:bn})),$n.createElement("div",{style:{marginTop:10}},$n.createElement("span",{style:{marginRight:10}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898"),$n.createElement(Ne.Z,{checked:Oa,onChange:jr=>{tu(jr)}}))),$n.createElement("aside",{className:"tr"},(Pe!==-1||Be.question_id)&&$n.createElement(me.ZP,{type:"default",onClick:()=>{vn(),ha(!1)}},"\u53D6\u6D88"),$n.createElement(me.ZP,{className:"ml20",type:"primary",onClick:()=>{Qn()}},"\u4FDD\u5B58")))},Cr=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5355\u9009\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(Ru=>{var mr,gl;return((gl=(mr=Ve==null?void 0:Ve.editData)==null?void 0:mr.exercise)==null?void 0:gl.exercise_status)===1?Ru:Ru.id!=="del"&&Ru.id!=="add"}),Zu=Ru=>Ni(void 0,null,function*(){if(Pe!==-1){pe.ZP.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002");return}switch(Ru.id){case"del":let mr;Fe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk(){return Ni(this,null,function*(){yield(0,ne.Fl)({id:Be.question_id}),et({type:"exercise/editExercise",payload:Ps({},Ba)})})}});break;case"up":case"down":yield et({type:"exercise/exeriseMoveUpDown",payload:{id:Be.question_id,opr:Ru.id}}),et({type:"exercise/editExercise",payload:Ps({},Ba)});break;case"edit":Ht(Be.dragKey),ha(!0);break;case"add":hn({key:Be.key,insert_id:Be==null?void 0:Be.question_id,question_type:3});break}}),sa=()=>{var Ru;return $n.createElement("aside",null,$n.createElement("div",{className:ba.questionType},!(Be!=null&&Be.isPreview)&&$n.createElement("div",null,$n.createElement("span",{className:"font16 c-blue"},Be.key,"\u3001\u586B\u7A7A\u9898"),"\uFF08",Be.question_score,"\u5206\uFF09")),Be!=null&&Be.isPreview?$n.createElement("div",{style:{display:"flex"}},$n.createElement("span",{style:{flexShrink:0},className:"font18"},Be.key,"."),$n.createElement(uu.Z,{value:Be.question_title}),$n.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",Be.question_score,"\u5206\uFF09")):$n.createElement("div",{className:"mt5"},$n.createElement(uu.Z,{value:Be.question_title})),$n.createElement("div",{className:ba.questionChoices},(Ru=Be==null?void 0:Be.standard_answers)==null?void 0:Ru.map(function(mr,gl){return $n.createElement(oe.Z,{key:gl,align:"middle"},$n.createElement(ve.Z,null,"\u7B54\u6848\uFF08\u586B\u7A7A",mr.choice_id,"\uFF09\uFF1A"),$n.createElement(ve.Z,{flex:"1"},$n.createElement(oe.Z,{align:"middle",gutter:[1,1]},mr.answer_text.map(function(Tl,mu){return $n.createElement(ve.Z,{span:24,key:mu},mr.model===1?$n.createElement(Le.default,{key:gl,checked:Be.standard_answers.includes(gl),disabled:!0,value:Tl}):$n.createElement(cr.Z,{value:Tl,disabled:!0,style:{color:"rgba(0, 0, 0, 0.25)",backgroundColor:"rgba(0, 0, 0, 0.04)"}}))}))))})),$n.createElement("div",{className:ba.action},!Be.hideAction&&Cr.map(function(mr,gl){return mr.id==="up"&&Be.key===1||mr.id==="down"&&Be.key===Be.len?null:$n.createElement(Ae.Z,{key:gl,placement:"bottom",title:mr.name},$n.createElement("span",{onClick:()=>Zu(mr),className:mr.icon}))})))};return $n.createElement("section",{className:ba.wrap},!Ja&&sa(),Ja&&Ya())};var Cc=(0,he.connect)(({problemset:ce,loading:se,exercise:ae,globalSetting:_e})=>({problemset:ce,globalSetting:_e,exercise:ae,loading:se.effects}),null,null,{forwardRef:!0})((0,a.forwardRef)(Is)),dc=Object.defineProperty,Ks=Object.getOwnPropertySymbols,Ec=Object.prototype.hasOwnProperty,Wc=Object.prototype.propertyIsEnumerable,bc=(ce,se,ae)=>se in ce?dc(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,Ys=(ce,se)=>{for(var ae in se||(se={}))Ec.call(se,ae)&&bc(ce,ae,se[ae]);if(Ks)for(var ae of Ks(se))Wc.call(se,ae)&&bc(ce,ae,se[ae]);return ce},Ac=(ce,se)=>{var ae={};for(var _e in ce)Ec.call(ce,_e)&&se.indexOf(_e)<0&&(ae[_e]=ce[_e]);if(ce!=null&&Ks)for(var _e of Ks(ce))se.indexOf(_e)<0&&Wc.call(ce,_e)&&(ae[_e]=ce[_e]);return ae},wc=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Vc=["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"],hd=(ce,se)=>{var ae=ce,{problemset:_e,globalSetting:pt,exercise:Ve,loading:Dt,dispatch:et,onRef:Be=()=>{},editData:Pe,editKey:Ht,setEditKey:vn=()=>{},cancelAdd:hn=()=>{},reload:xt=()=>{},addCallback:Gt=()=>{},setIsClaer:Bn=()=>{}}=ae,Dn=Ac(ae,["problemset","globalSetting","exercise","loading","dispatch","onRef","editData","editKey","setEditKey","cancelAdd","reload","addCallback","setIsClaer"]);const[Fn,Wt]=(0,a.useState)(),[Ut,Yt]=(0,a.useState)(""),[ea,nn]=(0,a.useState)(!1),[zn,mn]=(0,a.useState)(),[pa,Pt]=(0,a.useState)([]),[Nt,Rt]=(0,a.useState)([]),[Xt,cn]=(0,a.useState)(1),[tn,Ja]=(0,a.useState)(!1),[ha,dt]=(0,a.useState)(""),Fa=(0,a.useRef)(!1),ia=La=>{Rt([...Nt,Ys({},La)])},wu=(0,he.useParams)();(0,a.useEffect)(()=>{if(!Fa.current){if(!(Pe!=null&&Pe.question_choices)){nn(!0),Yt(""),mn(2),Wt("");return}Ja(!(Pe!=null&&Pe.repeat_answer)),Yt(Pe==null?void 0:Pe.question_title),mn(Pe==null?void 0:Pe.question_score),cn(Pe==null?void 0:Pe.difficulty),Wt(Pe.standard_answer[0]+""),Pt(Pe.tag_discipline_ids),dt(Pe==null?void 0:Pe.analysis)}},[Pe,ea]),(0,a.useEffect)(()=>{ea&&La();function La(){return wc(this,null,function*(){var Zn,bn;const ca=yield(0,ne.YY)({sub_discipline_id:(bn=(Zn=Ve.editData)==null?void 0:Zn.exercise)==null?void 0:bn.sub_discipline_id});Rt(ca.tag_disciplines)})}},[ea]),(0,a.useImperativeHandle)(se,()=>({onSave:Hn,isEdit:ea})),(0,a.useEffect)(()=>{var La;const Zn=(La=Ve==null?void 0:Ve.tagDisciplineData)!=null&&La.tag_disciplines&&Array.isArray(Ve.tagDisciplineData.tag_disciplines)?Ve.tagDisciplineData.tag_disciplines:[];Rt(Zn)},[Ve.tagDisciplineData]);const Sa=La=>{(La==null?void 0:La.status)===0&&(pe.ZP.success("\u4FDD\u5B58\u6210\u529F"),nn(!1),vn(-1),Fa.current=!1,xt())},Hn=()=>wc(void 0,null,function*(){var La,Zn,bn,ca;if(!Ut)return pe.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;if(!Fn)return pe.ZP.info("\u8BF7\u5148\u70B9\u51FB\u9009\u62E9\u672C\u9009\u62E9\u9898\u7684\u6B63\u786E\u9009\u9879"),!1;const Qn=[{choice_text:"\u6B63\u786E",is_answer:Fn==="1"?1:0},{choice_text:"\u9519\u8BEF",is_answer:Fn==="2"?2:0}];Fa.current=!0;let pn;return Pe.question_id?(Pe==null?void 0:Pe.is_my)===1?Fe.default.confirm({title:"\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",keyboard:!1,onOk:()=>wc(void 0,null,function*(){var Tn,En;pn=yield et({type:"exercise/editExerciseQuestion",payload:{id:Pe.question_id,question_title:Ut,question_type:2,question_score:zn,question_choices:Qn.map(da=>da.choice_text),standard_answers:Qn.filter(da=>da.is_answer).map(da=>da.is_answer),tag_discipline_ids:pa,sub_discipline_id:(En=(Tn=Ve.editData)==null?void 0:Tn.exercise)==null?void 0:En.sub_discipline_id,difficulty:Xt,is_cover:1,repeat_answer:!tn,analysis:ha}}),Sa(pn)}),onCancel:()=>wc(void 0,null,function*(){var Tn,En;pn=yield et({type:"exercise/editExerciseQuestion",payload:{id:Pe.question_id,question_title:Ut,question_type:2,question_score:zn,question_choices:Qn.map(da=>da.choice_text),standard_answers:Qn.filter(da=>da.is_answer).map(da=>da.is_answer),tag_discipline_ids:pa,sub_discipline_id:(En=(Tn=Ve.editData)==null?void 0:Tn.exercise)==null?void 0:En.sub_discipline_id,difficulty:Xt,repeat_answer:!tn,analysis:ha}}),Sa(pn)})}):(pn=yield et({type:"exercise/editExerciseQuestion",payload:{id:Pe.question_id,question_title:Ut,question_type:2,question_score:zn,question_choices:Qn.map(Tn=>Tn.choice_text),standard_answers:Qn.filter(Tn=>Tn.is_answer).map(Tn=>Tn.is_answer),tag_discipline_ids:pa,sub_discipline_id:(Zn=(La=Ve.editData)==null?void 0:La.exercise)==null?void 0:Zn.sub_discipline_id,difficulty:Xt,repeat_answer:!tn,analysis:ha}}),Sa(pn)):(pn=yield et({type:"exercise/addExerciseQuestion",payload:{insert_id:Pe==null?void 0:Pe.insert_id,categoryId:wu.categoryId,question_title:Ut,question_type:2,question_score:zn,question_choices:Qn.map(Tn=>Tn.choice_text),standard_answers:Qn.filter(Tn=>Tn.is_answer).map(Tn=>Tn.is_answer),tag_discipline_ids:pa,sub_discipline_id:(ca=(bn=Ve.editData)==null?void 0:bn.exercise)==null?void 0:ca.sub_discipline_id,difficulty:Xt,repeat_answer:!tn,analysis:ha}}),Sa(pn)),{name:Ut,choices:Qn}}),Oa=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5355\u9009\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(La=>{var Zn,bn;return((bn=(Zn=Ve==null?void 0:Ve.editData)==null?void 0:Zn.exercise)==null?void 0:bn.exercise_status)===1?La:La.id!=="del"&&La.id!=="add"}),tu=La=>wc(void 0,null,function*(){if(Ht!==-1){pe.ZP.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002");return}switch(La.id){case"del":let Zn;Fe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk(){return wc(this,null,function*(){yield(0,ne.Fl)({id:Pe.question_id}),et({type:"exercise/editExercise",payload:Ys({},wu)})})}});break;case"up":case"down":yield et({type:"exercise/exeriseMoveUpDown",payload:{id:Pe.question_id,opr:La.id}}),et({type:"exercise/editExercise",payload:Ys({},wu)});break;case"edit":vn(Pe.dragKey),nn(!0);break;case"add":Gt({key:Pe.key,insert_id:Pe==null?void 0:Pe.question_id,question_type:2});break}}),Ka=()=>{var La;return a.createElement("aside",null,a.createElement("div",{className:ba.questionType},!(Pe!=null&&Pe.isPreview)&&a.createElement("div",null,a.createElement("span",{className:"font16 c-blue"},Pe.key,"\u3001\u5224\u65AD\u9898"),"\uFF08",Pe.question_score,"\u5206\uFF09")),Pe!=null&&Pe.isPreview?a.createElement("div",{style:{display:"flex"}},a.createElement("span",{style:{flexShrink:0},className:"font18"},Pe.key,"."),a.createElement(uu.Z,{value:Pe.question_title}),a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",Pe.question_score,"\u5206\uFF09")):a.createElement("div",{className:"mt5"},a.createElement(uu.Z,{value:Pe.question_title})),a.createElement("div",{className:ba.questionChoices},(La=Pe==null?void 0:Pe.question_choices)==null?void 0:La.map(function(Zn,bn){return a.createElement(Ie.ZP,{key:bn,checked:Pe.standard_answer.includes(bn+1),disabled:!0},Vc[bn],". ",a.createElement("span",{className:"c-black font14"},Zn.choice_text))})),a.createElement("div",{className:ba.action},!Pe.hideAction&&Oa.map(function(Zn,bn){return Zn.id==="up"&&Pe.key===1||Zn.id==="down"&&Pe.key===Pe.len?null:a.createElement(Ae.Z,{key:bn,placement:"bottom",title:Zn.name},a.createElement("span",{onClick:()=>tu(Zn),className:Zn.icon}))})))},Ba=()=>{var La,Zn;return a.createElement("aside",null,a.createElement("div",null,a.createElement("span",{className:"font16 c-blue"},"\u5224\u65AD\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09"),a.createElement("p",{className:ba.titleWrap},a.createElement("span",{className:ba.required},"*"),a.createElement("span",{className:ba.title},"\u9898\u5E72\uFF1A")),a.createElement(Fi.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Ut,onChange:bn=>Yt(bn)}),a.createElement("p",{className:ba.titleWrap},a.createElement("span",{className:ba.required},"*"),a.createElement("span",{className:ba.title},"\u7B54\u6848\u9009\u9879\uFF1A",a.createElement("span",{className:ba.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),a.createElement(Ie.ZP.Group,{buttonStyle:"solid",value:Fn,onChange:bn=>Wt(bn.target.value)},a.createElement(Ie.ZP.Button,{value:"1",className:`${ba.radio} mr40`},"\u6B63\u786E"),a.createElement(Ie.ZP.Button,{value:"2",className:ba.radio},"\u9519\u8BEF")),a.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\uFF0C\u53EF\u4EE5\u76F4\u63A5\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848"),a.createElement("p",{className:ba.titleWrap},a.createElement("span",{className:ba.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),a.createElement(Fi.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:ha,onChange:bn=>dt(bn)}),a.createElement("p",{className:""},"\u5206\u503C\uFF1A",a.createElement(Re.Z,{value:zn,max:1e4,min:0,onChange:bn=>{mn(bn)}})," \u5206",a.createElement("span",{style:{marginLeft:"30px"},className:ba.difficult},a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",a.createElement(Ie.ZP.Group,{value:Xt,onChange:bn=>{cn(bn.target.value)}},a.createElement(Ie.ZP.Button,{value:1},"\u7B80\u5355"),a.createElement(Ie.ZP.Button,{value:2},"\u9002\u4E2D"),a.createElement(Ie.ZP.Button,{value:3},"\u56F0\u96BE")))),a.createElement("p",{className:ba.titleWrap},a.createElement("span",{className:`${ba.title}`},"\u77E5\u8BC6\u70B9\uFF1A",a.createElement("span",{className:ba.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),a.createElement("div",{className:"mt5"},a.createElement(Jn.N,{value:pa,selectvalues:Pe==null?void 0:Pe.tag_discipline_ids,onChange:Pt,subId:(Zn=(La=Ve.editData)==null?void 0:La.exercise)==null?void 0:Zn.sub_discipline_id,knowledgeOptions:Nt,onAddKnowledgeFinish:ia})),a.createElement("div",{style:{marginTop:10}},a.createElement("span",{style:{marginRight:10}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898"),a.createElement(Ne.Z,{checked:tn,onChange:bn=>{Ja(bn)}}))),a.createElement("aside",{className:"tr"},(Ht!==-1||Pe.question_id)&&a.createElement(me.ZP,{type:"default",onClick:()=>{hn(),nn(!1)}},"\u53D6\u6D88"),a.createElement(me.ZP,{className:"ml20",type:"primary",onClick:()=>{Hn()}},"\u4FDD\u5B58")))};return a.createElement("section",{className:ba.wrap},!ea&&Ka(),ea&&Ba())};var Ms=(0,he.connect)(({problemset:ce,loading:se,exercise:ae,globalSetting:_e})=>({problemset:ce,globalSetting:_e,exercise:ae,loading:se.effects}),null,null,{forwardRef:!0})((0,a.forwardRef)(hd)),uc=Object.defineProperty,Ds=Object.getOwnPropertySymbols,cd=Object.prototype.hasOwnProperty,Gc=Object.prototype.propertyIsEnumerable,wt=(ce,se,ae)=>se in ce?uc(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,_t=(ce,se)=>{for(var ae in se||(se={}))cd.call(se,ae)&&wt(ce,ae,se[ae]);if(Ds)for(var ae of Ds(se))Gc.call(se,ae)&&wt(ce,ae,se[ae]);return ce},gn=(ce,se)=>{var ae={};for(var _e in ce)cd.call(ce,_e)&&se.indexOf(_e)<0&&(ae[_e]=ce[_e]);if(ce!=null&&Ds)for(var _e of Ds(ce))se.indexOf(_e)<0&&Gc.call(ce,_e)&&(ae[_e]=ce[_e]);return ae},Yn=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Ur=["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"],Or=(0,a.forwardRef)((ce,se)=>{var ae=ce,{problemset:_e,globalSetting:pt,exercise:Ve,loading:Dt,dispatch:et,onRef:Be=()=>{},editData:Pe,cancelAdd:Ht=()=>{},editKey:vn,setEditKey:hn=()=>{},setIsClaer:xt=()=>{},addCallback:Gt=Qn=>{},reload:Bn=()=>{}}=ae,Dn=gn(ae,["problemset","globalSetting","exercise","loading","dispatch","onRef","editData","cancelAdd","editKey","setEditKey","setIsClaer","addCallback","reload"]);const[Fn,Wt]=(0,a.useState)([]),[Ut,Yt]=(0,a.useState)(),[ea,nn]=(0,a.useState)([]),[zn,mn]=(0,a.useState)(""),[pa,Pt]=(0,a.useState)(),[Nt,Rt]=(0,a.useState)(!1),[Xt,cn]=(0,a.useState)([]),[tn,Ja]=(0,a.useState)(1),[ha,dt]=(0,a.useState)(!1),[Fa,ia]=(0,a.useState)(""),[wu,Sa]=(0,a.useState)([]),Hn=(0,a.useRef)(!1),Oa=Qn=>{Sa([...wu,_t({},Qn)])},tu=(0,he.useParams)();(0,a.useEffect)(()=>{Wt(["","","",""])},[]),(0,a.useEffect)(()=>{if(Hn.current)return;if(!(Pe!=null&&Pe.question_choices)){Rt(!0),mn(""),Pt(5),Wt(["","","",""]),nn([]);return}mn(Pe==null?void 0:Pe.question_title),Pt(Pe==null?void 0:Pe.question_score),dt(!(Pe!=null&&Pe.repeat_answer)),Ja(Pe==null?void 0:Pe.difficulty),Wt(Pe==null?void 0:Pe.question_choices.map(pn=>pn.choice_text));const Qn=[];Pe==null||Pe.standard_answer.map((pn,Tn)=>{Qn.push(pn-1)}),nn(Qn),cn(Pe.tag_discipline_ids),ia(Pe==null?void 0:Pe.analysis)},[Pe,Nt]),(0,a.useEffect)(()=>{Nt&&Qn();function Qn(){return Yn(this,null,function*(){var pn,Tn;const En=yield(0,ne.YY)({sub_discipline_id:(Tn=(pn=Ve.editData)==null?void 0:pn.exercise)==null?void 0:Tn.sub_discipline_id});Sa(En.tag_disciplines)})}},[Nt]),(0,a.useImperativeHandle)(se,()=>({onSave:Ba,isEdit:Nt})),(0,a.useEffect)(()=>{var Qn;const pn=(Qn=Ve==null?void 0:Ve.tagDisciplineData)!=null&&Qn.tag_disciplines&&Array.isArray(Ve.tagDisciplineData.tag_disciplines)?Ve.tagDisciplineData.tag_disciplines:[];Sa(pn)},[Ve.tagDisciplineData]);const Ka=Qn=>{(Qn==null?void 0:Qn.status)===0&&(pe.ZP.success("\u4FDD\u5B58\u6210\u529F"),Rt(!1),hn(-1),Hn.current=!1,Bn())},Ba=()=>Yn(void 0,null,function*(){var Qn,pn,Tn,En;if(!zn)return pe.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),!1;const da=Fn.findIndex(Ya=>!Ya);if(da>-1)return pe.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${Ur[da]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!ea.length)return pe.ZP.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;if(ea.length<1)return pe.ZP.info("\u8BF7\u9009\u62E9\u7B54\u6848"),!1;const Ha=Fn.map((Ya,Cr)=>({choice_text:Ya,is_answer:ea.includes(Cr)?Cr+1:0}));Hn.current=!0;let au;Pe.question_id?(Pe==null?void 0:Pe.is_my)===1?Fe.default.confirm({title:"\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",keyboard:!1,onOk:()=>Yn(void 0,null,function*(){var Ya,Cr;au=yield et({type:"exercise/editExerciseQuestion",payload:{id:Pe.question_id,question_title:zn,question_type:1,question_score:pa,question_choices:Ha.map(Zu=>Zu.choice_text),standard_answers:Ha.filter(Zu=>Zu.is_answer).map(Zu=>Zu.is_answer),tag_discipline_ids:Xt,sub_discipline_id:(Cr=(Ya=Ve.editData)==null?void 0:Ya.exercise)==null?void 0:Cr.sub_discipline_id,difficulty:tn,is_cover:1,repeat_answer:!ha,analysis:Fa}}),Ka(au)}),onCancel:()=>Yn(void 0,null,function*(){var Ya,Cr;au=yield et({type:"exercise/editExerciseQuestion",payload:{id:Pe.question_id,question_title:zn,question_type:1,question_score:pa,question_choices:Ha.map(Zu=>Zu.choice_text),standard_answers:Ha.filter(Zu=>Zu.is_answer).map(Zu=>Zu.is_answer),tag_discipline_ids:Xt,sub_discipline_id:(Cr=(Ya=Ve.editData)==null?void 0:Ya.exercise)==null?void 0:Cr.sub_discipline_id,difficulty:tn,repeat_answer:!ha,analysis:Fa}}),Ka(au)})}):(au=yield et({type:"exercise/editExerciseQuestion",payload:{id:Pe.question_id,question_title:zn,question_type:1,question_score:pa,question_choices:Ha.map(Ya=>Ya.choice_text),standard_answers:Ha.filter(Ya=>Ya.is_answer).map(Ya=>Ya.is_answer),tag_discipline_ids:Xt,sub_discipline_id:(pn=(Qn=Ve.editData)==null?void 0:Qn.exercise)==null?void 0:pn.sub_discipline_id,difficulty:tn,repeat_answer:!ha,analysis:Fa}}),Ka(au)):(au=yield et({type:"exercise/addExerciseQuestion",payload:{insert_id:Pe==null?void 0:Pe.insert_id,categoryId:tu.categoryId,question_title:zn,question_type:1,question_score:pa,question_choices:Ha.map(Ya=>Ya.choice_text),standard_answers:Ha.filter(Ya=>Ya.is_answer).map(Ya=>Ya.is_answer),tag_discipline_ids:Xt,sub_discipline_id:(En=(Tn=Ve.editData)==null?void 0:Tn.exercise)==null?void 0:En.sub_discipline_id,difficulty:tn,repeat_answer:!ha,analysis:Fa}}),Ka(au))}),La=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5355\u9009\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(Qn=>{var pn,Tn;return((Tn=(pn=Ve==null?void 0:Ve.editData)==null?void 0:pn.exercise)==null?void 0:Tn.exercise_status)===1?Qn:Qn.id!=="del"&&Qn.id!=="add"}),Zn=Qn=>Yn(void 0,null,function*(){if(vn!==-1){pe.ZP.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002");return}switch(Qn.id){case"del":let pn;Fe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk(){return Yn(this,null,function*(){yield(0,ne.Fl)({id:Pe.question_id}),et({type:"exercise/editExercise",payload:_t({},tu)})})}});break;case"up":case"down":yield et({type:"exercise/exeriseMoveUpDown",payload:{id:Pe.question_id,opr:Qn.id}}),et({type:"exercise/editExercise",payload:_t({},tu)});break;case"edit":hn(Pe.dragKey),Rt(!0);break;case"add":Gt({key:Pe.key,insert_id:Pe==null?void 0:Pe.question_id,question_type:1});break}}),bn=()=>{var Qn;return a.createElement("aside",null,a.createElement("div",{className:ba.questionType},!(Pe!=null&&Pe.isPreview)&&a.createElement("div",null,a.createElement("span",{className:"font16 c-blue"},Pe.key,"\u3001\u591A\u9009\u9898"),"\uFF08",Pe.question_score,"\u5206\uFF09")),Pe!=null&&Pe.isPreview?a.createElement("div",{style:{display:"flex"}},a.createElement("span",{style:{flexShrink:0},className:"font18"},Pe.key,"."),a.createElement(uu.Z,{value:Pe.question_title}),a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",Pe.question_score,"\u5206\uFF09")):a.createElement("div",{className:"mt5"},a.createElement(uu.Z,{value:Pe.question_title})),a.createElement("div",{className:ba.questionChoices},(Qn=Pe==null?void 0:Pe.question_choices)==null?void 0:Qn.map(function(pn,Tn){return a.createElement(oe.Z,{key:Tn},a.createElement(ve.Z,null,a.createElement(Se.default,{key:Tn,checked:Pe.standard_answer.includes(Tn+1),disabled:!0},Ur[Tn],".")),a.createElement(ve.Z,{flex:"1"},a.createElement("span",{className:"c-black font14"},a.createElement(uu.Z,{value:pn.choice_text}))))})),a.createElement("div",{className:ba.action},!Pe.hideAction&&La.map(function(pn,Tn){return pn.id==="up"&&Pe.key===1||pn.id==="down"&&Pe.key===Pe.len?null:a.createElement(Ae.Z,{key:Tn,placement:"bottom",title:pn.name},a.createElement("span",{onClick:()=>Zn(pn),className:pn.icon}))})))},ca=()=>{var Qn,pn;return a.createElement("aside",null,a.createElement("div",{className:ba.questionType},a.createElement("div",null,a.createElement("span",{className:"font16 c-blue"},"\u9009\u62E9\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09")),a.createElement("p",{className:ba.titleWrap},a.createElement("span",{className:ba.required},"*"),a.createElement("span",{className:ba.title},"\u9898\u5E72\uFF1A")),a.createElement(Fi.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:zn,onChange:Tn=>mn(Tn)}),a.createElement("p",{className:ba.titleWrap},a.createElement("span",{className:ba.required},"*"),a.createElement("span",{className:ba.title},"\u7B54\u6848\u9009\u9879\uFF1A",a.createElement("span",{className:ba.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),Fn.map((Tn,En)=>{var da,Ha;return a.createElement("div",{className:ba.choiceWrap,key:En},a.createElement(Ae.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},a.createElement("div",{className:`${ba.answer} ${ea.includes(En)?ba.activeAnswer:""}`,onClick:()=>{ea.includes(En)?nn(ea.filter(au=>au!==En)):nn([...ea,En])}},Ur[En])),a.createElement("div",{className:ba.editorWrap},Ut===En?a.createElement(Fi.Z,{id:`single-question-option-${En}`,watch:!0,isFocus:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:Tn,onChange:au=>{Fn[En]=au,Wt(Fn)}}):a.createElement("div",{className:ba.htmlWrap,onClick:()=>Yt(En)},a.createElement(uu.Z,{value:Tn}))),((Ha=(da=Ve.editData)==null?void 0:da.exercise)==null?void 0:Ha.exercise_status)===1&&a.createElement(a.Fragment,null,En>1&&a.createElement(Ae.Z,{title:"\u5220\u9664"},a.createElement("i",{className:`${ba.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>Wt(Fn.filter((au,Ya)=>Ya!==En))})),En<7&&En===Fn.length-1&&a.createElement(Ae.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},a.createElement("i",{className:`${ba.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>Wt([...Fn,""])}))))}),a.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\u8F93\u5165\u6846\u53EF\u8BBE\u7F6E\u7B54\u6848\uFF1B\u9009\u4E2D\u7684\u9009\u9879\u5373\u4E3A\u6B63\u786E\u7B54\u6848\uFF0C\u9009\u62E9\u591A\u4E2A\u7B54\u6848\u5373\u4E3A\u591A\u9009\u9898"),a.createElement("p",{className:ba.titleWrap},a.createElement("span",{className:ba.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),a.createElement(Fi.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Fa,onChange:Tn=>ia(Tn)}),a.createElement("p",{className:""},"\u5206\u503C\uFF1A",a.createElement(Re.Z,{value:pa,max:1e4,min:0,onChange:Tn=>{Pt(Tn)}})," ","\u5206",a.createElement("span",{style:{marginLeft:"30px"},className:ba.difficult},a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",a.createElement(Ie.ZP.Group,{value:tn,onChange:Tn=>{Ja(Tn.target.value)}},a.createElement(Ie.ZP.Button,{value:1},"\u7B80\u5355"),a.createElement(Ie.ZP.Button,{value:2},"\u9002\u4E2D"),a.createElement(Ie.ZP.Button,{value:3},"\u56F0\u96BE")))),a.createElement("p",{className:ba.titleWrap},a.createElement("span",{className:`${ba.title}`},"\u77E5\u8BC6\u70B9\uFF1A",a.createElement("span",{className:ba.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),a.createElement("div",{className:"mt5"},a.createElement(Jn.N,{value:Xt,selectvalues:Pe==null?void 0:Pe.tag_discipline_ids,onChange:cn,subId:(pn=(Qn=Ve.editData)==null?void 0:Qn.exercise)==null?void 0:pn.sub_discipline_id,knowledgeOptions:wu,onAddKnowledgeFinish:Oa})),a.createElement("div",{style:{marginTop:10}},a.createElement("span",{style:{marginRight:10}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898"),a.createElement(Ne.Z,{checked:ha,onChange:Tn=>{dt(Tn)}}))),a.createElement("aside",{className:"tr"},(vn!==-1||Pe.question_id)&&a.createElement(me.ZP,{type:"default",onClick:()=>{Ht(),Rt(!1)}},"\u53D6\u6D88"),a.createElement(me.ZP,{className:"ml20",type:"primary",onClick:()=>{Ba()}},"\u4FDD\u5B58")))};return a.createElement("section",{className:ba.wrap},!Nt&&bn(),Nt&&ca())});var ql=(0,he.connect)(({problemset:ce,loading:se,exercise:ae,globalSetting:_e})=>({problemset:ce,globalSetting:_e,exercise:ae,loading:se.effects}),null,null,{forwardRef:!0})(Or),zr=z(55241),su=z(67294),yu=Object.defineProperty,xu=Object.getOwnPropertySymbols,Al=Object.prototype.hasOwnProperty,Yl=Object.prototype.propertyIsEnumerable,Ol=(ce,se,ae)=>se in ce?yu(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,Mu=(ce,se)=>{for(var ae in se||(se={}))Al.call(se,ae)&&Ol(ce,ae,se[ae]);if(xu)for(var ae of xu(se))Yl.call(se,ae)&&Ol(ce,ae,se[ae]);return ce},Lr=(ce,se)=>{var ae={};for(var _e in ce)Al.call(ce,_e)&&se.indexOf(_e)<0&&(ae[_e]=ce[_e]);if(ce!=null&&xu)for(var _e of xu(ce))se.indexOf(_e)<0&&Yl.call(ce,_e)&&(ae[_e]=ce[_e]);return ae},Tr=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Ml=null,hl=(ce,se)=>{var ae=ce,{problemset:_e,globalSetting:pt,exercise:Ve,loading:Dt,dispatch:et,editData:Be,cancelAdd:Pe=()=>{},editKey:Ht,setEditKey:vn=()=>{},addCallback:hn=()=>{},reload:xt=()=>{},setIsClaer:Gt=()=>{}}=ae,Bn=Lr(ae,["problemset","globalSetting","exercise","loading","dispatch","editData","cancelAdd","editKey","setEditKey","addCallback","reload","setIsClaer"]);const[Dn,Fn]=(0,a.useState)(""),[Wt,Ut]=(0,a.useState)(""),[Yt,ea]=(0,a.useState)(""),[nn,zn]=(0,a.useState)([]),[mn,pa]=(0,a.useState)(""),[Pt,Nt]=(0,a.useState)(),[Rt,Xt]=(0,a.useState)(!1),[cn,tn]=(0,a.useState)([]),[Ja,ha]=(0,a.useState)(!1),[dt,Fa]=(0,a.useState)(!1),ia=(0,he.useParams)(),wu=(0,a.useRef)(!1),[Sa,Hn]=(0,a.useState)([]),[Oa,tu]=(0,a.useState)(!1);(0,a.useEffect)(()=>{var Tn;if(wu.current)return;Be.edit&&(ha(!0),Ut(""),Fn(""),tn([])),Fn(Be.shixun_name),Ut(Be.question_title);const En=[];(Tn=Be.shixun)==null||Tn.map(da=>{En.push(da.challenge_score),Sa.push({challenge_id:da.challenge_id,open:!0})}),Hn(Sa),tn(En),tu(!(Be!=null&&Be.ignore_prompt))},[Be]),(0,a.useEffect)(()=>{Xt(!1)},[Ja]),(0,a.useImperativeHandle)(se,()=>({onSave:Ba,isEdit:Ja}));const Ka=Tn=>{(Tn==null?void 0:Tn.status)===0&&(pe.ZP.success("\u4FDD\u5B58\u6210\u529F"),ha(!1),vn(-1),wu.current=!1,xt())},Ba=()=>Tr(void 0,null,function*(){let Tn=[];if(!1)return!1;wu.current=!0,Fa(!0);let da;return Be.question_id?da=yield et({type:"exercise/editExerciseQuestion",payload:{id:Be.question_id,question_title:Wt,shixun_name:Dn,shixun_id:Be.shixun_id,question_type:5,question_scores:cn}}):da=yield et({type:"exercise/addExerciseQuestion",payload:{insert_id:Be==null?void 0:Be.insert_id,categoryId:ia.categoryId,question_title:Wt,shixun_name:Dn,shixun_id:Be.shixun_id,question_type:5,question_scores:cn,is_copy:Be.is_copy}}),Ka(da),Fa(!1),{name:Wt,analysis:Yt,standard_answers:Tn,is_ordered:Pt}}),La=()=>{var Tn;return su.createElement("aside",null,su.createElement("div",{className:ba.questionType},su.createElement("div",null,su.createElement("span",{className:"font16 c-blue"},"\u5B9E\u8BAD\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u5141\u8BB8\u624B\u52A8\u8C03\u5206\uFF09")),su.createElement("div",{className:"mt10"},su.createElement(Le.default,{defaultValue:Dn,onChange:En=>{Fn(En.target.value)}})),su.createElement("div",{className:"mt10"},su.createElement(Fi.Z,{id:"single-question-option-0",height:155,placeholder:"\u8BF7\u8F93\u5165\u5B9E\u8BAD\u9898\u5B8C\u6210\u8981\u6C42",defaultValue:Wt,onChange:En=>{Ut(En)}})),su.createElement("div",{className:"mt20"},(Tn=Be.shixun)==null?void 0:Tn.map((En,da)=>su.createElement(oe.Z,{gutter:[20,20]},su.createElement(ve.Z,{flex:"1"},da+1,".",En.challenge_name),su.createElement(ve.Z,null,su.createElement(Re.Z,{defaultValue:cn[da],onChange:Ha=>{cn[da]=Ha,tn(cn),console.log("srore:L",cn[da])}})," \u5206")))),su.createElement("div",{className:"mt20"},nn.length>1&&su.createElement("span",null,su.createElement(Se.default,{checked:Pt,onChange:En=>Nt(En.target.checked),className:`${ba.color333} font14`},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),su.createElement("span",{className:`${ba.color999} font12`},"\uFF08\u9009\u4E2D\uFF0C\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u987A\u5E8F\u5FC5\u987B\u4E0E\u53C2\u8003\u7B54\u6848\u4E00\u81F4\uFF09"))),su.createElement("aside",{className:"tr"},(Ht!==-1||!(Be!=null&&Be.edit))&&su.createElement(me.ZP,{type:"default",onClick:()=>{Pe(),ha(!1)}},"\u53D6\u6D88"),su.createElement(me.ZP,{loading:dt,className:"ml20",type:"primary",onClick:()=>{Ba()}},"\u4FDD\u5B58")))},Zn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5B9E\u8BAD\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(Tn=>{var En,da;return((da=(En=Ve==null?void 0:Ve.editData)==null?void 0:En.exercise)==null?void 0:da.exercise_status)===1?Tn:Tn.id!=="del"&&Tn.id!=="add"}),bn=Tn=>Tr(void 0,null,function*(){if(Ht!==-1){pe.ZP.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002");return}switch(Tn.id){case"del":let En;Fe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk(){return Tr(this,null,function*(){yield(0,ne.Fl)({id:Be.question_id}),et({type:"exercise/editExercise",payload:Mu({},ia)})})}});break;case"up":case"down":yield et({type:"exercise/exeriseMoveUpDown",payload:{id:Be.question_id,opr:Tn.id}}),et({type:"exercise/editExercise",payload:Mu({},ia)});break;case"edit":vn(Be.dragKey),ha(!0);break;case"add":et({type:"classroomList/setActionTabs",payload:{key:"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",editData:{key:Be.key,insert_id:Be==null?void 0:Be.question_id,question_type:5}}});break}}),ca=()=>Tr(void 0,null,function*(){const Tn=yield(0,Ce.ZP)(`/api/courses/${ia==null?void 0:ia.coursesId}/sync_shixuns.json`,{method:"post",body:{exercise_ids:[ia==null?void 0:ia.categoryId],exercise_question_id:Be.question_id}});(Tn==null?void 0:Tn.status)===0&&(et({type:"classroomList/setActionTabs",payload:{}}),pe.ZP.info("\u5B9E\u8BAD\u540C\u6B65\u4E2D\uFF0C\u8BF7\u7A0D\u540E"))}),Qn=()=>Tr(void 0,null,function*(){let Tn=yield(0,Ce.ZP)(`/api/courses/${ia==null?void 0:ia.coursesId}/ignore_prompt.json`,{method:"post",body:{container_type:"Exercise",container_id:ia==null?void 0:ia.categoryId,exercise_question_id:Be==null?void 0:Be.question_id}});(Tn==null?void 0:Tn.status)===0&&tu(!1)}),pn=()=>{var Tn,En;return su.createElement("aside",null,su.createElement("div",{className:ba.questionType},!(Be!=null&&Be.isPreview)&&su.createElement("div",null,su.createElement("span",{className:"font16 c-blue"},Be.key,"\u3001\u5B9E\u8BAD\u9898"),"\uFF08",Be.question_score,"\u5206\uFF09")),Be!=null&&Be.isPreview?su.createElement("div",{style:{display:"flex",alignItems:"center"}},su.createElement("span",{style:{flexShrink:0},className:"font18"},Be.key,"."),su.createElement(uu.Z,{value:Be.question_title}),su.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",Be.question_score,"\u5206\uFF09"),!!((Tn=Be.schools)!=null&&Tn.length)&&su.createElement(Ae.Z,{title:"\u8BE5\u5B9E\u8BAD\u9898\u9762\u5411\u6307\u5B9A\u5355\u4F4D\u5F00\u653E"},su.createElement("i",{className:"iconfont icon-zhidinggongkai1 font18 line24 c-orange"})),(0,On.G5)()&&(Be==null?void 0:Be.shixun_change)&&su.createElement(zr.Z,{trigger:"click",open:Oa,onOpenChange:da=>tu(!0),placement:"bottomLeft",autoAdjustOverflow:!1,title:null,content:su.createElement("div",{style:{width:"310px",color:"#000"}},su.createElement("div",null,"\u5B9E\u8BAD\u7BA1\u7406\u5458\u5BF9\u8BD5\u5377\u4E2D\u4F7F\u7528\u7684\u5B9E\u8DF5\u9879\u76EE\u8FDB\u884C\u4E86\u4FEE\u6539\uFF0C\u8BF7\u68C0\u67E5\u540E\uFF0C\u786E\u8BA4\u662F\u5426\u9700\u8981\u540C\u6B65\u5230\u8BD5\u5377\u4E2D"),su.createElement("div",{className:ba.btn_warp},su.createElement(me.ZP,{size:"small",onClick:Qn},"\u5FFD\u7565"),su.createElement(me.ZP,{className:"ml20",size:"small",type:"primary",onClick:()=>{tu(!1),et({type:"classroomList/setActionTabs",payload:{key:"\u5B9E\u8BAD\u540C\u6B65\u786E\u8BA4",onOK:()=>ca()}})}},"\u786E\u8BA4\u540C\u6B65"),su.createElement(me.ZP,{className:"ml20",size:"small",type:"primary",onClick:()=>(0,de.xg)(`/shixuns/${Be==null?void 0:Be.forked_shixun_identifier}/challenges?exercise=true`)},"\u524D\u5F80\u67E5\u770B")))},su.createElement("i",{className:"iconfont icon-tongzhi1 pl10 current",style:{fontSize:"16px",color:"#F7B500"},onClick:da=>da.stopPropagation()}))):su.createElement("div",{className:"mt5"},su.createElement(uu.Z,{value:Be.question_title})),su.createElement("div",{className:"mt30"}),(En=Be.shixun)==null?void 0:En.map(function(da,Ha){var au,Ya,Cr,Zu,sa,Ru,mr,gl,Tl,mu;return su.createElement("div",null,su.createElement("div",{key:Ha,style:{background:"#F0F7FD",color:"#3061D0",fontSize:18,padding:10,display:"flex",justifyContent:"space-between",marginBottom:(!((au=Sa[Ha])!=null&&au.open)||!((Cr=(Ya=Ve==null?void 0:Ve.editData)==null?void 0:Ya.exercise)!=null&&Cr.show_challenge_task_pass))&&10}},su.createElement("div",null,su.createElement("i",{className:"iconfont icon-renwuguanka1",style:{marginRight:5}}),"\u7B2C",Ha+1,"\u5173 ",su.createElement("span",{className:"ml10"},da.challenge_name)," ",su.createElement("span",{className:"ml10"},da.challenge_score," \u5206")),((sa=(Zu=Ve==null?void 0:Ve.editData)==null?void 0:Zu.exercise)==null?void 0:sa.show_challenge_task_pass)&&su.createElement("div",{style:{cursor:"pointer",color:"#666666",fontSize:14},onClick:()=>{var $u;Sa[Ha].open=!(($u=Sa[Ha])!=null&&$u.open),Hn([...Sa])}},(Ru=Sa[Ha])!=null&&Ru.open?"\u6536\u8D77":"\u5C55\u5F00",(mr=Sa[Ha])!=null&&mr.open?su.createElement(ps.Z,{style:{marginLeft:8}}):su.createElement(fs.Z,{style:{marginLeft:8}}))),((Tl=(gl=Ve==null?void 0:Ve.editData)==null?void 0:gl.exercise)==null?void 0:Tl.show_challenge_task_pass)&&su.createElement(uu.Z,{style:{border:"1px solid #F1F4F9",borderTop:"none",padding:10,display:!((mu=Sa[Ha])!=null&&mu.open)&&"none"},value:(da==null?void 0:da.task_pass)||"\u6682\u65E0\u5173\u5361\u63CF\u8FF0"}))}),su.createElement("div",{className:ba.action},su.createElement(he.Link,{target:"_blank",to:`/shixuns/${(0,On.G5)()?Be.forked_shixun_identifier:Be==null?void 0:Be.shixun_identifier}/challenges?exercise=true`},"\u5B9E\u8BAD\u8BE6\u60C5"),!Be.hideAction&&Zn.map(function(da,Ha){return da.id==="up"&&Be.key===1||da.id==="down"&&Be.key===Be.len?null:su.createElement(Ae.Z,{key:Ha,placement:"bottom",title:da.name},su.createElement("span",{onClick:()=>bn(da),className:da.icon}))})))};return su.createElement("section",{className:ba.wrap},!Ja&&pn(),Ja&&La())};var co=(0,he.connect)(({problemset:ce,loading:se,globalSetting:ae,exercise:_e})=>({problemset:ce,globalSetting:ae,exercise:_e,loading:se.effects}),null,null,{forwardRef:!0})((0,a.forwardRef)(hl)),Tu=z(52810),hr=Object.defineProperty,Yr=Object.getOwnPropertySymbols,ar=Object.prototype.hasOwnProperty,Mr=Object.prototype.propertyIsEnumerable,zo=(ce,se,ae)=>se in ce?hr(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,Jo=(ce,se)=>{for(var ae in se||(se={}))ar.call(se,ae)&&zo(ce,ae,se[ae]);if(Yr)for(var ae of Yr(se))Mr.call(se,ae)&&zo(ce,ae,se[ae]);return ce},wi=(ce,se)=>{var ae={};for(var _e in ce)ar.call(ce,_e)&&se.indexOf(_e)<0&&(ae[_e]=ce[_e]);if(ce!=null&&Yr)for(var _e of Yr(ce))se.indexOf(_e)<0&&Mr.call(ce,_e)&&(ae[_e]=ce[_e]);return ae},ys=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Ul=(ce,se)=>{var ae=ce,{problemset:_e,exercise:pt,globalSetting:Ve,loading:Dt,dispatch:et,onRef:Be=()=>{},editData:Pe,cancelAdd:Ht=()=>{},editKey:vn,setEditKey:hn=()=>{},setIsClaer:xt=()=>{},reload:Gt=()=>{},addCallback:Bn=pn=>{}}=ae,Dn=wi(ae,["problemset","exercise","globalSetting","loading","dispatch","onRef","editData","cancelAdd","editKey","setEditKey","setIsClaer","reload","addCallback"]);const[Fn,Wt]=(0,a.useState)([]),[Ut,Yt]=(0,a.useState)(),[ea,nn]=(0,a.useState)([]),[zn,mn]=(0,a.useState)(""),[pa,Pt]=(0,a.useState)(),[Nt,Rt]=(0,a.useState)([]),[Xt,cn]=(0,a.useState)(!1),[tn,Ja]=(0,a.useState)(1),[ha,dt]=(0,a.useState)(!1),[Fa,ia]=(0,a.useState)(""),wu=(0,he.useParams)(),Sa=(0,a.useRef)(null),Hn=(0,a.useRef)(!1),[Oa,tu]=(0,a.useState)([]),Ka=pn=>{tu([...Oa,Jo({},pn)])};(0,a.useEffect)(()=>{Wt(["","","",""])},[]),(0,a.useEffect)(()=>{if(Hn.current)return;if(!(Pe!=null&&Pe.question_choices)){cn(!0),mn(""),Pt(5),Wt(["","","",""]),nn([]);return}mn(Pe==null?void 0:Pe.question_title),Pt(Pe==null?void 0:Pe.question_score),dt(!(Pe!=null&&Pe.repeat_answer)),ia(Pe==null?void 0:Pe.analysis),Ja(Pe==null?void 0:Pe.difficulty),Wt(Pe==null?void 0:Pe.question_choices.map(Tn=>Tn.choice_text));const pn=[];Pe==null||Pe.standard_answer.map((Tn,En)=>{pn.push(Tn-1)}),Rt(Pe.tag_discipline_ids),nn(pn)},[Pe,Xt]),(0,a.useEffect)(()=>{Xt&&pn();function pn(){return ys(this,null,function*(){var Tn,En;const da=yield(0,ne.YY)({sub_discipline_id:(En=(Tn=pt.editData)==null?void 0:Tn.exercise)==null?void 0:En.sub_discipline_id});tu(da.tag_disciplines)})}},[Xt]),(0,a.useEffect)(()=>{var pn;const Tn=(pn=pt==null?void 0:pt.tagDisciplineData)!=null&&pn.tag_disciplines&&Array.isArray(pt.tagDisciplineData.tag_disciplines)?pt.tagDisciplineData.tag_disciplines:[];tu(Tn)},[pt.tagDisciplineData]),(0,a.useImperativeHandle)(se,()=>({onSave:La,isEdit:Xt}));const Ba=pn=>{(pn==null?void 0:pn.status)===0&&(pe.ZP.success("\u4FDD\u5B58\u6210\u529F"),cn(!1),hn(-1),Hn.current=!1,Gt())},La=()=>ys(void 0,null,function*(){var pn,Tn,En,da;if(!zn)return pe.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),!1;const Ha=Fn.findIndex(Cr=>!Cr);if(Ha>-1)return pe.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${Tu.k4[Ha]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!ea.length)return pe.ZP.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;if(ea.length<1)return pe.ZP.info("\u8BF7\u9009\u62E9\u7B54\u6848"),!1;const au=Fn.map((Cr,Zu)=>({choice_text:Cr,is_answer:ea.includes(Zu)?Zu+1:0}));Hn.current=!0;let Ya;Pe.question_id?(Pe==null?void 0:Pe.is_my)===1?Fe.default.confirm({title:"\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",keyboard:!1,onOk:()=>ys(void 0,null,function*(){var Cr,Zu;Ya=yield et({type:"exercise/editExerciseQuestion",payload:{id:Pe.question_id,question_title:zn,question_type:1,question_score:pa,question_choices:au.map(sa=>sa.choice_text),standard_answers:au.filter(sa=>sa.is_answer).map(sa=>sa.is_answer),tag_discipline_ids:Nt,sub_discipline_id:(Zu=(Cr=pt.editData)==null?void 0:Cr.exercise)==null?void 0:Zu.sub_discipline_id,difficulty:tn,is_cover:1,repeat_answer:!ha,analysis:Fa}}),Ba(Ya)}),onCancel:()=>ys(void 0,null,function*(){var Cr,Zu;Ya=yield et({type:"exercise/editExerciseQuestion",payload:{id:Pe.question_id,question_title:zn,question_type:1,question_score:pa,question_choices:au.map(sa=>sa.choice_text),standard_answers:au.filter(sa=>sa.is_answer).map(sa=>sa.is_answer),tag_discipline_ids:Nt,sub_discipline_id:(Zu=(Cr=pt.editData)==null?void 0:Cr.exercise)==null?void 0:Zu.sub_discipline_id,difficulty:tn,repeat_answer:!ha,analysis:Fa}}),Ba(Ya)})}):(Ya=yield et({type:"exercise/editExerciseQuestion",payload:{id:Pe.question_id,question_title:zn,question_type:1,question_score:pa,question_choices:au.map(Cr=>Cr.choice_text),standard_answers:au.filter(Cr=>Cr.is_answer).map(Cr=>Cr.is_answer),tag_discipline_ids:Nt,sub_discipline_id:(Tn=(pn=pt.editData)==null?void 0:pn.exercise)==null?void 0:Tn.sub_discipline_id,difficulty:tn,repeat_answer:!ha,analysis:Fa}}),Ba(Ya)):(Ya=yield et({type:"exercise/addExerciseQuestion",payload:{insert_id:Pe==null?void 0:Pe.insert_id,categoryId:wu.categoryId,question_title:zn,question_type:1,question_score:pa,question_choices:au.map(Cr=>Cr.choice_text),standard_answers:au.filter(Cr=>Cr.is_answer).map(Cr=>Cr.is_answer),tag_discipline_ids:Nt,sub_discipline_id:(da=(En=pt.editData)==null?void 0:En.exercise)==null?void 0:da.sub_discipline_id,difficulty:tn,repeat_answer:!ha,analysis:Fa}}),Ba(Ya))}),Zn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5355\u9009\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(pn=>{var Tn,En;return((En=(Tn=pt==null?void 0:pt.editData)==null?void 0:Tn.exercise)==null?void 0:En.exercise_status)===1?pn:pn.id!=="del"&&pn.id!=="add"}),bn=pn=>ys(void 0,null,function*(){if(vn!==-1){pe.ZP.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002");return}switch(pn.id){case"del":let Tn;Fe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk(){return ys(this,null,function*(){yield(0,ne.Fl)({id:Pe.question_id}),et({type:"exercise/editExercise",payload:Jo({},wu)})})}});break;case"up":case"down":yield et({type:"exercise/exeriseMoveUpDown",payload:{id:Pe.question_id,opr:pn.id}}),et({type:"exercise/editExercise",payload:Jo({},wu)});break;case"edit":hn(Pe.dragKey),cn(!0);break;case"add":Bn({key:Pe.key,insert_id:Pe==null?void 0:Pe.question_id,question_type:0});break}}),ca=()=>{var pn;return a.createElement("aside",{ref:Sa},a.createElement("div",{className:ba.questionType},!(Pe!=null&&Pe.isPreview)&&a.createElement("div",null,a.createElement("span",{className:"font16 c-blue"},Pe.key,"\u3001\u5355\u9009\u9898"),"\uFF08",Pe.question_score,"\u5206\uFF09")),Pe!=null&&Pe.isPreview?a.createElement("div",{style:{display:"flex",alignItems:"flex-start"}},a.createElement("span",{style:{flexShrink:0},className:"font18"},Pe.key,"."),a.createElement(uu.Z,{value:Pe.question_title}),a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",Pe.question_score,"\u5206\uFF09")):a.createElement("div",{className:"mt5"},a.createElement(uu.Z,{value:Pe.question_title})),a.createElement("div",{className:ba.questionChoices},(pn=Pe==null?void 0:Pe.question_choices)==null?void 0:pn.map(function(Tn,En){return a.createElement(oe.Z,{key:En},a.createElement(ve.Z,null,a.createElement(Ie.ZP,{key:En,checked:Pe.standard_answer.includes(En+1),disabled:!0},Tu.k4[En],".")),a.createElement(ve.Z,{flex:"1"},a.createElement("span",{className:"c-black font14"},a.createElement(uu.Z,{value:Tn.choice_text}))))})),a.createElement("div",{className:ba.action},!Pe.hideAction&&Zn.map(function(Tn,En){return Tn.id==="up"&&Pe.key===1||Tn.id==="down"&&Pe.key===Pe.len?null:a.createElement(Ae.Z,{key:En,placement:"bottom",title:Tn.name},a.createElement("span",{onClick:()=>bn(Tn),className:Tn.icon}))})))},Qn=()=>{var pn,Tn;return a.createElement("aside",null,a.createElement("div",{className:ba.questionType},a.createElement("div",null,a.createElement("span",{className:"font16 c-blue"},"\u9009\u62E9\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09")),a.createElement("p",{className:ba.titleWrap},a.createElement("span",{className:ba.required},"*"),a.createElement("span",{className:ba.title},"\u9898\u5E72\uFF1A")),a.createElement(Fi.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:zn,onChange:En=>mn(En)}),a.createElement("p",{className:ba.titleWrap},a.createElement("span",{className:ba.required},"*"),a.createElement("span",{className:ba.title},"\u7B54\u6848\u9009\u9879\uFF1A",a.createElement("span",{className:ba.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),Fn.map((En,da)=>{var Ha,au;return a.createElement("div",{className:ba.choiceWrap,key:da},a.createElement(Ae.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},a.createElement("div",{className:`${ba.answer} ${ea.includes(da)?ba.activeAnswer:""}`,onClick:()=>{ea.includes(da)?nn(ea.filter(Ya=>Ya!==da)):nn([...ea,da])}},Tu.k4[da])),a.createElement("div",{className:ba.editorWrap},Ut===da?a.createElement(Fi.Z,{id:`single-question-option-${da}`,watch:!0,isFocus:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:En,onChange:Ya=>{Fn[da]=Ya,Wt(Fn)}}):a.createElement("div",{className:ba.htmlWrap,onClick:()=>Yt(da)},a.createElement(uu.Z,{value:En}))),((au=(Ha=pt.editData)==null?void 0:Ha.exercise)==null?void 0:au.exercise_status)===1&&a.createElement(a.Fragment,null,da>1&&a.createElement(Ae.Z,{title:"\u5220\u9664"},a.createElement("i",{className:`${ba.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>Wt(Fn.filter((Ya,Cr)=>Cr!==da))})),da<7&&da===Fn.length-1&&a.createElement(Ae.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},a.createElement("i",{className:`${ba.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>Wt([...Fn,""])}))))}),a.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\u8F93\u5165\u6846\u53EF\u8BBE\u7F6E\u7B54\u6848\uFF1B\u9009\u4E2D\u7684\u9009\u9879\u5373\u4E3A\u6B63\u786E\u7B54\u6848\uFF0C\u9009\u62E9\u591A\u4E2A\u7B54\u6848\u5373\u4E3A\u591A\u9009\u9898"),a.createElement("p",{className:ba.titleWrap},a.createElement("span",{className:ba.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),a.createElement(Fi.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Fa,onChange:En=>ia(En)}),a.createElement("div",{style:{marginBottom:14}},"\u5206\u503C\uFF1A",a.createElement(Re.Z,{value:pa,max:1e4,min:0,onChange:En=>{Pt(En)}})," \u5206",a.createElement("span",{style:{marginLeft:"30px"},className:ba.difficult},a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",a.createElement(Ie.ZP.Group,{value:tn,onChange:En=>{Ja(En.target.value)}},a.createElement(Ie.ZP.Button,{value:1},"\u7B80\u5355"),a.createElement(Ie.ZP.Button,{value:2},"\u9002\u4E2D"),a.createElement(Ie.ZP.Button,{value:3},"\u56F0\u96BE")))),a.createElement("div",{className:ba.titleWrap},a.createElement("span",{className:`${ba.title}`},"\u77E5\u8BC6\u70B9\uFF1A",a.createElement("span",{className:ba.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),a.createElement("div",{className:"mt5"},a.createElement(Jn.N,{selectvalues:Pe==null?void 0:Pe.tag_discipline_ids,value:Nt,onChange:Rt,subId:(Tn=(pn=pt.editData)==null?void 0:pn.exercise)==null?void 0:Tn.sub_discipline_id,knowledgeOptions:Oa,onAddKnowledgeFinish:Ka})),a.createElement("div",{style:{marginTop:10}},a.createElement("span",{style:{marginRight:10}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898"),a.createElement(Ne.Z,{checked:ha,onChange:En=>{dt(En)}}))),a.createElement("aside",{className:"tr"},(vn!==-1||Pe.question_id)&&a.createElement(me.ZP,{type:"default",onClick:()=>{Ht(),cn(!1)}},"\u53D6\u6D88"),a.createElement(me.ZP,{className:"ml20",type:"primary",onClick:()=>{La()}},"\u4FDD\u5B58")))};return a.createElement("section",{className:ba.wrap},!Xt&&ca(),Xt&&Qn())};var Xs=(0,he.connect)(({problemset:ce,loading:se,globalSetting:ae,exercise:_e})=>({problemset:ce,globalSetting:ae,exercise:_e,loading:se.effects}),null,null,{forwardRef:!0})((0,a.forwardRef)(Ul)),Js=z(66309),Bi=({value:ce=[[],[]],onChange:se})=>{var ae,_e;const[pt,Ve]=(0,a.useState)(""),[Dt,et]=(0,a.useState)(""),Be=Pe=>{if(!Pe)return!1;let Ht=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return Pe==="|"?(pe.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0};return a.createElement("div",null,a.createElement("p",{className:"font14"},"\u5173\u952E\u8BCD",a.createElement("span",{className:"c-grey-999"},"\uFF08\u5173\u952E\u8BCD\u53EF\u7528\u4E8E\u81EA\u52A8\u5224\u5206\uFF09"),a.createElement(Ae.Z,{overlayStyle:{maxWidth:350},title:a.createElement("div",null,a.createElement("div",null,"\u6BCF\u4E2A\u6838\u5FC3\u5173\u952E\u8BCD\u7684\u5206\u6570\u662F\u666E\u901A\u5173\u952E\u8BCD\u5206\u6570\u7684\u4E24\u500D"),a.createElement("div",null,"\u4F8B\u5982\uFF1A"),a.createElement("div",null,"\u672C\u989810\u5206\uFF0C\u666E\u901A\u5173\u952E\u8BCD1\u4E2A\uFF0C\u6838\u5FC3\u5173\u952E\u8BCD2\u4E2A\uFF0C\u5219\u6BCF\u4E2A"),a.createElement("div",null,"\u666E\u901A\u5173\u952E\u8BCD2\u5206\uFF0C\u6BCF\u4E2A\u6838\u5FC3\u5173\u952E\u8BCD4\u5206"))},a.createElement("span",{className:"iconfont icon-a-wenhaobeifen2 font14"}))),a.createElement(oe.Z,{align:"middle",className:"font14"},"\u666E\u901A\u5173\u952E\u8BCD\uFF1A",a.createElement(Le.default,{value:pt,onChange:Pe=>{Ve(Pe.target.value)},maxLength:50,allowClear:!0,onPressEnter:Pe=>{var Ht,vn,hn;const xt=(Ht=Pe.target)==null?void 0:Ht.value;Be(xt)&&((hn=ce[0])==null||hn.push((vn=xt==null?void 0:xt.split("|"))==null?void 0:vn.filter(Gt=>!!Gt)),se([...ce]),Ve(""))},style:{width:800},className:"ml5 mr10",placeholder:"\u652F\u6301\u4FDD\u5B58\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u7528\u201D|\u201D\u5206\u5272\u3002"}),a.createElement("span",{className:"c-grey-999"},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),a.createElement("div",{style:{paddingLeft:89},className:"mt10"},(ae=ce==null?void 0:ce[0])==null?void 0:ae.map((Pe,Ht)=>a.createElement(Js.default,{className:"mb10",key:Ht,closable:!0,onClose:vn=>{var hn;vn.preventDefault(),ce[0]=(hn=ce[0])==null?void 0:hn.filter((xt,Gt)=>Gt!==Ht),se([...ce])}},Pe==null?void 0:Pe.join(" \u6216 ")))),a.createElement(oe.Z,{align:"middle",className:"font14"},"\u6838\u5FC3\u5173\u952E\u8BCD\uFF1A",a.createElement(Le.default,{value:Dt,onChange:Pe=>{et(Pe.target.value)},maxLength:50,allowClear:!0,onPressEnter:Pe=>{var Ht,vn,hn;const xt=(Ht=Pe.target)==null?void 0:Ht.value;Be(xt)&&((hn=ce[1])==null||hn.push((vn=xt==null?void 0:xt.split("|"))==null?void 0:vn.filter(Gt=>!!Gt)),se([...ce]),et(""))},style:{width:800},className:"ml5 mr10",placeholder:"\u652F\u6301\u4FDD\u5B58\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u7528\u201D|\u201D\u5206\u5272\u3002"}),a.createElement("span",{className:"c-grey-999"},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),a.createElement("div",{style:{paddingLeft:89},className:"mt10"},(_e=ce==null?void 0:ce[1])==null?void 0:_e.map((Pe,Ht)=>a.createElement(Js.default,{className:"mb10",key:Ht,closable:!0,onClose:vn=>{var hn;vn.preventDefault(),ce[1]=(hn=ce[1])==null?void 0:hn.filter((xt,Gt)=>Gt!==Ht),se([...ce])}},Pe==null?void 0:Pe.join(" \u6216 ")))))},Yi=Object.defineProperty,Vo=Object.getOwnPropertySymbols,bs=Object.prototype.hasOwnProperty,zc=Object.prototype.propertyIsEnumerable,mc=(ce,se,ae)=>se in ce?Yi(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,dd=(ce,se)=>{for(var ae in se||(se={}))bs.call(se,ae)&&mc(ce,ae,se[ae]);if(Vo)for(var ae of Vo(se))zc.call(se,ae)&&mc(ce,ae,se[ae]);return ce},Kc=(ce,se)=>{var ae={};for(var _e in ce)bs.call(ce,_e)&&se.indexOf(_e)<0&&(ae[_e]=ce[_e]);if(ce!=null&&Vo)for(var _e of Vo(ce))se.indexOf(_e)<0&&zc.call(ce,_e)&&(ae[_e]=ce[_e]);return ae},Xl=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const hc=null,xc=(ce,se)=>{var ae=ce,{problemset:_e,exercise:pt,globalSetting:Ve,loading:Dt,dispatch:et,onRef:Be=()=>{},editData:Pe,cancelAdd:Ht=()=>{},editKey:vn,setEditKey:hn=()=>{},reload:xt=()=>{},addCallback:Gt=()=>{},setIsClaer:Bn=()=>{}}=ae,Dn=Kc(ae,["problemset","exercise","globalSetting","loading","dispatch","onRef","editData","cancelAdd","editKey","setEditKey","reload","addCallback","setIsClaer"]);const[Fn,Wt]=(0,a.useState)(""),[Ut,Yt]=(0,a.useState)(""),[ea,nn]=(0,a.useState)(""),[zn,mn]=(0,a.useState)(),[pa,Pt]=(0,a.useState)(!1),[Nt,Rt]=(0,a.useState)([]),[Xt,cn]=(0,a.useState)(1),[tn,Ja]=(0,a.useState)(!1),[ha,dt]=(0,a.useState)([[],[]]),Fa=(0,a.useRef)(!1),ia=(0,he.useParams)(),[wu,Sa]=(0,a.useState)([]),Hn=bn=>{Sa([...wu,dd({},bn)])};(0,a.useEffect)(()=>{var bn;if(!Fa.current){if(!(Pe!=null&&Pe.question_title)){Pt(!0),Wt(""),nn(""),mn(10);return}Ja(!(Pe!=null&&Pe.repeat_answer)),Wt(Pe==null?void 0:Pe.question_title),nn((bn=Pe==null?void 0:Pe.standard_answer)==null?void 0:bn[0]),mn(Pe==null?void 0:Pe.question_score),Rt(Pe.tag_discipline_ids),cn(Pe==null?void 0:Pe.difficulty),Yt(Pe==null?void 0:Pe.analysis),dt([Pe==null?void 0:Pe.normal_keywords,Pe==null?void 0:Pe.main_keywords])}},[_e.editData,pa]),(0,a.useEffect)(()=>{var bn;const ca=(bn=pt==null?void 0:pt.tagDisciplineData)!=null&&bn.tag_disciplines&&Array.isArray(pt.tagDisciplineData.tag_disciplines)?pt.tagDisciplineData.tag_disciplines:[];Sa(ca)},[pt.tagDisciplineData]),(0,a.useEffect)(()=>{pa&&bn();function bn(){return Xl(this,null,function*(){var ca,Qn;const pn=yield(0,ne.YY)({sub_discipline_id:(Qn=(ca=pt.editData)==null?void 0:ca.exercise)==null?void 0:Qn.sub_discipline_id});Sa(pn.tag_disciplines)})}},[pa]),(0,a.useImperativeHandle)(se,()=>({onSave:tu,isEdit:pa}));const Oa=bn=>{(bn==null?void 0:bn.status)===0&&(pe.ZP.success("\u4FDD\u5B58\u6210\u529F"),Pt(!1),hn(-1),Fa.current=!1,xt())},tu=()=>Xl(void 0,null,function*(){var bn,ca,Qn,pn;if(!Fn)return pe.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;const Tn=ha[0],En=ha[1];Fa.current=!0;let da;return Pe.question_id?(Pe==null?void 0:Pe.is_my)===1?Fe.default.confirm({title:"\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",keyboard:!1,onOk:()=>Xl(void 0,null,function*(){var Ha,au;da=yield et({type:"exercise/editExerciseQuestion",payload:{id:Pe.question_id,question_title:Fn,question_type:4,question_score:zn,standard_answers:[ea],tag_discipline_ids:Nt,sub_discipline_id:(au=(Ha=pt.editData)==null?void 0:Ha.exercise)==null?void 0:au.sub_discipline_id,difficulty:Xt,is_cover:1,repeat_answer:!tn,analysis:Ut,normal_keywords:Tn,main_keywords:En}}),Oa(da)}),onCancel:()=>Xl(void 0,null,function*(){var Ha,au;da=yield et({type:"exercise/editExerciseQuestion",payload:{id:Pe.question_id,question_title:Fn,question_type:4,question_score:zn,standard_answers:[ea],tag_discipline_ids:Nt,sub_discipline_id:(au=(Ha=pt.editData)==null?void 0:Ha.exercise)==null?void 0:au.sub_discipline_id,difficulty:Xt,repeat_answer:!tn,analysis:Ut,normal_keywords:Tn,main_keywords:En}}),Oa(da)})}):(da=yield et({type:"exercise/editExerciseQuestion",payload:{id:Pe.question_id,question_title:Fn,question_type:4,question_score:zn,standard_answers:[ea],tag_discipline_ids:Nt,sub_discipline_id:(ca=(bn=pt.editData)==null?void 0:bn.exercise)==null?void 0:ca.sub_discipline_id,difficulty:Xt,repeat_answer:!tn,analysis:Ut,normal_keywords:Tn,main_keywords:En}}),Oa(da)):(da=yield et({type:"exercise/addExerciseQuestion",payload:{insert_id:Pe==null?void 0:Pe.insert_id,categoryId:ia.categoryId,exercise_bank_id:ia.categoryId,question_title:Fn,question_type:4,question_score:zn,standard_answers:[ea],tag_discipline_ids:Nt,sub_discipline_id:(pn=(Qn=pt.editData)==null?void 0:Qn.exercise)==null?void 0:pn.sub_discipline_id,difficulty:Xt,repeat_answer:!tn,analysis:Ut,normal_keywords:Tn,main_keywords:En}}),Oa(da)),{name:Fn,answer_texts:[ea],analysis:Ut,normal_keywords:Tn,main_keywords:En}}),Ka=()=>{var bn,ca;return a.createElement("aside",null,a.createElement("div",{className:ba.questionType},a.createElement("div",null,a.createElement("span",{className:"font16 c-blue"},"\u4E3B\u89C2\u9898"),"\uFF08\u4E3B\u89C2\u9898\uFF0C\u672A\u4F5C\u7B54\u7684\u60C5\u51B5\u4E0B\u81EA\u52A8\u8BC4\u4E3A\u96F6\u5206\uFF09")),a.createElement(Fi.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Fn,onChange:Qn=>Wt(Qn)}),a.createElement("p",{className:ba.titleWrap},a.createElement("span",{className:ba.title},"\u53C2\u8003\u7B54\u6848\uFF1A")),a.createElement(Fi.Z,{id:"single-question-reference-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u53C2\u8003\u7B54\u6848",defaultValue:ea,onChange:Qn=>nn(Qn)}),a.createElement(Bi,{value:ha,onChange:dt}),a.createElement("p",{className:ba.titleWrap},a.createElement("span",{className:ba.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),a.createElement(Fi.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Ut,onChange:Qn=>Yt(Qn)}),a.createElement("p",{className:""},"\u5206\u503C\uFF1A",a.createElement(Re.Z,{value:zn,max:1e4,min:0,onChange:Qn=>{mn(Qn)}})," \u5206",a.createElement("span",{style:{marginLeft:"30px"},className:ba.difficult},a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",a.createElement(Ie.ZP.Group,{value:Xt,onChange:Qn=>{cn(Qn.target.value)}},a.createElement(Ie.ZP.Button,{value:1},"\u7B80\u5355"),a.createElement(Ie.ZP.Button,{value:2},"\u9002\u4E2D"),a.createElement(Ie.ZP.Button,{value:3},"\u56F0\u96BE")))),a.createElement("p",{className:ba.titleWrap},a.createElement("span",{className:`${ba.title}`},"\u77E5\u8BC6\u70B9\uFF1A",a.createElement("span",{className:ba.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),a.createElement("div",{className:"mt5"},a.createElement(Jn.N,{value:Nt,selectvalues:Pe==null?void 0:Pe.tag_discipline_ids,onChange:Rt,subId:(ca=(bn=pt.editData)==null?void 0:bn.exercise)==null?void 0:ca.sub_discipline_id,knowledgeOptions:wu,onAddKnowledgeFinish:Hn})),a.createElement("div",{style:{marginTop:10}},a.createElement("span",{style:{marginRight:10}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898"),a.createElement(Ne.Z,{checked:tn,onChange:Qn=>{Ja(Qn)}}))),a.createElement("aside",{className:"tr"},(vn!==-1||Pe.question_id)&&a.createElement(me.ZP,{type:"default",onClick:()=>{Ht(),Pt(!1)}},"\u53D6\u6D88"),a.createElement(me.ZP,{className:"ml20",type:"primary",onClick:()=>{tu()}},"\u4FDD\u5B58")))},Ba=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5355\u9009\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(bn=>{var ca,Qn;return((Qn=(ca=pt==null?void 0:pt.editData)==null?void 0:ca.exercise)==null?void 0:Qn.exercise_status)===1?bn:bn.id!=="del"&&bn.id!=="add"}),La=bn=>Xl(void 0,null,function*(){if(vn!==-1){pe.ZP.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002");return}switch(bn.id){case"del":let ca;Fe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk(){return Xl(this,null,function*(){yield(0,ne.Fl)({id:Pe.question_id}),et({type:"exercise/editExercise",payload:dd({},ia)})})}});break;case"up":case"down":yield et({type:"exercise/exeriseMoveUpDown",payload:{id:Pe.question_id,opr:bn.id}}),et({type:"exercise/editExercise",payload:dd({},ia)});break;case"edit":hn(Pe.dragKey),Pt(!0);break;case"add":Gt({key:Pe.key,insert_id:Pe==null?void 0:Pe.question_id,question_type:4});break}}),Zn=()=>a.createElement("aside",null,a.createElement("div",{className:ba.questionType},!(Pe!=null&&Pe.isPreview)&&a.createElement("div",null,a.createElement("span",{className:"font16 c-blue"},Pe.key,"\u3001\u7B80\u7B54\u9898"),"\uFF08",Pe.question_score,"\u5206\uFF09")),Pe!=null&&Pe.isPreview?a.createElement("div",{style:{display:"flex"}},a.createElement("span",{style:{flexShrink:0},className:"font18"},Pe.key,"."),a.createElement(uu.Z,{value:Pe.question_title}),a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",Pe.question_score,"\u5206\uFF09")):a.createElement("div",{className:"mt5"},a.createElement(uu.Z,{value:Pe.question_title})),a.createElement("div",{className:ba.questionChoices},a.createElement("p",null,a.createElement("strong",null,"\u53C2\u8003\u7B54\u6848\uFF1A")),a.createElement(uu.Z,{value:ea||""})),a.createElement("div",{className:ba.action},!Pe.hideAction&&Ba.map(function(bn,ca){return bn.id==="up"&&Pe.key===1||bn.id==="down"&&Pe.key===Pe.len?null:a.createElement(Ae.Z,{key:ca,placement:"bottom",title:bn.name},a.createElement("span",{onClick:()=>La(bn),className:bn.icon}))})));return a.createElement("section",{className:ba.wrap},!pa&&Zn(),pa&&Ka())};var Yc=(0,he.connect)(({problemset:ce,loading:se,exercise:ae,globalSetting:_e})=>({problemset:ce,globalSetting:_e,exercise:ae,loading:se.effects}),null,null,{forwardRef:!0})((0,a.forwardRef)(xc)),qo=z(67294),ad=Object.defineProperty,Zc=Object.getOwnPropertySymbols,qd=Object.prototype.hasOwnProperty,Qd=Object.prototype.propertyIsEnumerable,Id=(ce,se,ae)=>se in ce?ad(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,Ld=(ce,se)=>{for(var ae in se||(se={}))qd.call(se,ae)&&Id(ce,ae,se[ae]);if(Zc)for(var ae of Zc(se))Qd.call(se,ae)&&Id(ce,ae,se[ae]);return ce},Fd=(ce,se)=>{var ae={};for(var _e in ce)qd.call(ce,_e)&&se.indexOf(_e)<0&&(ae[_e]=ce[_e]);if(ce!=null&&Zc)for(var _e of Zc(ce))se.indexOf(_e)<0&&Qd.call(ce,_e)&&(ae[_e]=ce[_e]);return ae},md=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const d0=["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"],_d=(ce,se)=>{var ae=ce,{problemset:_e,exercise:pt,globalSetting:Ve,loading:Dt,dispatch:et,onRef:Be=()=>{},editData:Pe,cancelAdd:Ht=()=>{},editKey:vn,setEditKey:hn=()=>{},addCallback:xt=()=>{},setIsClaer:Gt=()=>{}}=ae,Bn=Fd(ae,["problemset","exercise","globalSetting","loading","dispatch","onRef","editData","cancelAdd","editKey","setEditKey","addCallback","setIsClaer"]);const[Dn,Fn]=(0,a.useState)([]),[Wt,Ut]=(0,a.useState)(),[Yt,ea]=(0,a.useState)([]),[nn,zn]=(0,a.useState)(""),[mn,pa]=(0,a.useState)(5),[Pt,Nt]=(0,a.useState)(!1),Rt=(0,he.useParams)();(0,a.useEffect)(()=>{Fn(["","","",""])},[]),(0,a.useEffect)(()=>{if(!(Pe!=null&&Pe.question_choices)){Nt(!0),zn(""),pa(5),Fn(["","","",""]),ea([]);return}zn(Pe==null?void 0:Pe.question_title),pa(Pe==null?void 0:Pe.question_score),Fn(Pe==null?void 0:Pe.question_choices.map(Fa=>Fa.choice_text));const dt=[];Pe==null||Pe.standard_answer.map((Fa,ia)=>{dt.push(Fa-1)}),ea(dt)},[Pe]),(0,a.useImperativeHandle)(se,()=>({onSave:Xt,isEdit:Pt}));const Xt=()=>md(void 0,null,function*(){if(!nn)return pe.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),!1;const dt=Dn.findIndex(wu=>!wu);if(dt>-1)return pe.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${d0[dt]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!Yt.length)return pe.ZP.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;if(Yt.length<1)return pe.ZP.info("\u8BF7\u9009\u62E9\u7B54\u6848"),!1;const Fa=Dn.map((wu,Sa)=>({choice_text:wu,is_answer:Yt.includes(Sa)?Sa+1:0}));let ia;Pe.question_id?ia=yield et({type:"exercise/editExerciseQuestion",payload:{id:Pe.question_id,question_title:nn,question_type:1,question_score:mn,question_choices:Fa.map(wu=>wu.choice_text),standard_answers:Fa.filter(wu=>wu.is_answer).map(wu=>wu.is_answer)}}):ia=yield et({type:"exercise/addExerciseQuestion",payload:{insert_id:Pe==null?void 0:Pe.insert_id,categoryId:Rt.categoryId,question_title:nn,question_type:1,question_score:"5.0",question_choices:Fa.map(wu=>wu.choice_text),standard_answers:Fa.filter(wu=>wu.is_answer).map(wu=>wu.is_answer)}}),ia.status===0&&(pe.ZP.success("\u4FDD\u5B58\u6210\u529F"),Nt(!1),et({type:"exercise/editExercise",payload:Ld({},Rt)}))}),cn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5355\u9009\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(dt=>{var Fa,ia;return((ia=(Fa=pt==null?void 0:pt.editData)==null?void 0:Fa.exercise)==null?void 0:ia.exercise_status)===1?dt:dt.id!=="del"&&dt.id!=="add"}),tn=dt=>md(void 0,null,function*(){if(vn!==-1){pe.ZP.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002");return}switch(dt.id){case"del":let Fa;Fe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk(){return md(this,null,function*(){yield(0,ne.Fl)({id:Pe.question_id}),et({type:"exercise/editExercise",payload:Ld({},Rt)})})}});break;case"up":case"down":yield et({type:"exercise/exeriseMoveUpDown",payload:{id:Pe.question_id,opr:dt.id}}),et({type:"exercise/editExercise",payload:Ld({},Rt)});break;case"edit":he.history.push(`/problems/${Pe==null?void 0:Pe.hack_identifier}/edit?type=exercises&express_id=${Rt.categoryId}&question_id=${Pe==null?void 0:Pe.question_id}&score=${Pe==null?void 0:Pe.question_score}&exercise=true&callback_url=${location.pathname}`);break;case"add":xt({key:Pe.key,insert_id:Pe==null?void 0:Pe.question_id,question_type:6});break}}),Ja=dt=>md(void 0,null,function*(){dt.preventDefault();const Fa=yield(0,ne.nF)({id:Pe==null?void 0:Pe.hack_identifier});Fa.status===0&&(0,de.xg)(`/myproblems/${Fa==null?void 0:Fa.identifier}`)}),ha=()=>{var dt,Fa,ia,wu,Sa,Hn,Oa;return qo.createElement("aside",null,qo.createElement("div",{className:ba.questionType},!(Pe!=null&&Pe.isPreview)&&qo.createElement("div",null,qo.createElement("span",{className:"font16 c-blue"},Pe.key,"\u3001\u7F16\u7A0B\u9898"),"\uFF08",Pe.question_score,"\u5206\uFF09")),Pe!=null&&Pe.isPreview?qo.createElement(qo.Fragment,null,qo.createElement("div",{style:{display:"flex"}},qo.createElement("span",{style:{flexShrink:0},className:"font18"},Pe.key,"."),qo.createElement(uu.Z,{value:Pe.question_title}),qo.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",Pe.question_score,"\u5206\uFF09")),qo.createElement("div",{style:{fontWeight:600,marginTop:10,fontSize:16}},"\u5141\u8BB8\u7F16\u7A0B\u7684\u8BED\u8A00\uFF1A",(dt=Pe==null?void 0:Pe.languages)==null?void 0:dt.join("/")),((ia=(Fa=pt==null?void 0:pt.editData)==null?void 0:Fa.exercise)==null?void 0:ia.show_hack_sets)&&qo.createElement("div",{style:{marginBottom:10,border:"1px solid #F1F4F9"}},qo.createElement("p",{style:{padding:"0px 10px",height:40,lineHeight:"40px",background:"#F1F4F9",color:"#3061D0"}},qo.createElement("i",{className:"iconfont icon-ceshiyongli"})," \u6D4B\u8BD5\u7528\u4F8B\uFF1A"),qo.createElement(x.default,{style:{margin:10},columns:[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",width:"10%",render:(tu,Ka,Ba)=>Ba+1},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165",dataIndex:"input",key:"input",width:"40%",render:(tu,Ka,Ba)=>qo.createElement(Ae.Z,{title:qo.createElement("pre",null,tu)},qo.createElement("div",{className:ba.divname},tu))},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA",dataIndex:"output",key:"output",width:"40%",render:(tu,Ka,Ba)=>qo.createElement(Ae.Z,{title:qo.createElement("pre",null,tu)}," ",qo.createElement("div",{className:ba.divname},tu))},{title:"\u662F\u5426\u53EF\u89C1",dataIndex:"visibility_cn",key:"visibility_cn",width:"10%"}],pagination:!1,dataSource:Pe==null?void 0:Pe.hack_sets}))):qo.createElement("div",{className:"mt5"},qo.createElement(uu.Z,{value:Pe.question_title}),((Sa=(wu=pt==null?void 0:pt.editData)==null?void 0:wu.exercise)==null?void 0:Sa.show_hack_sets)&&qo.createElement("div",{style:{marginBottom:10,border:"1px solid #F1F4F9"}},qo.createElement("p",{style:{padding:"0px 10px",height:40,lineHeight:"40px",background:"#F1F4F9",color:"#3061D0"}},qo.createElement("i",{className:"iconfont icon-ceshiyongli"})," \u6D4B\u8BD5\u7528\u4F8B\uFF1A"),qo.createElement(x.default,{style:{margin:10},columns:[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",width:"10%",render:(tu,Ka,Ba)=>Ba+1},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165",dataIndex:"input",key:"input",width:"40%",render:(tu,Ka,Ba)=>qo.createElement(Ae.Z,{title:qo.createElement("pre",null,tu)},qo.createElement("div",{className:ba.divname},tu))},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA",dataIndex:"output",key:"output",width:"40%",render:(tu,Ka,Ba)=>qo.createElement(Ae.Z,{title:qo.createElement("pre",null,tu)}," ",qo.createElement("div",{className:ba.divname},tu))},{title:"\u662F\u5426\u53EF\u89C1",dataIndex:"visibility_cn",key:"visibility_cn",width:"10%"}],pagination:!1,dataSource:Pe==null?void 0:Pe.hack_sets}))),((Oa=(Hn=pt==null?void 0:pt.editData)==null?void 0:Hn.exercise)==null?void 0:Oa.show_hack_description)&&qo.createElement("div",{className:ba.questionChoices},qo.createElement(uu.Z,{value:Pe.description||""})),qo.createElement("div",{className:ba.action},qo.createElement("span",{style:{color:"#3061d0",cursor:"pointer"},onClick:()=>{(0,de.xg)(`/problems/newedit/${Pe==null?void 0:Pe.hack_identifier}?type=exercises&express_id=${Rt.categoryId}&question_id=${Pe==null?void 0:Pe.question_id}&score=${Pe==null?void 0:Pe.question_score}&exercise=true&callback_url=/classrooms/${Rt.coursesId}/exercise/add/${Rt.categoryId}?type=2`)}},"\u67E5\u770B\u8BE6\u60C5"),!Pe.hideAction&&cn.map(function(tu,Ka){return tu.id==="up"&&Pe.key===1||tu.id==="down"&&Pe.key===Pe.len?null:qo.createElement(Ae.Z,{key:Ka,placement:"bottom",title:tu.name},qo.createElement("span",{onClick:()=>tn(tu),className:tu.icon}))})))};return qo.createElement("section",{className:ba.wrap},ha())};var Ud=(0,he.connect)(({problemset:ce,loading:se,globalSetting:ae,exercise:_e})=>({problemset:ce,globalSetting:ae,exercise:_e,loading:se.effects}),null,null,{forwardRef:!0})((0,a.forwardRef)(_d)),Nd=z(2715),js={ai_review_warp:"ai_review_warp___xdNyj",under_review:"under_review___LPpOL",btn_operate:"btn_operate___owqg5",btn_review:"btn_review___RoZoh",is_disabled:"is_disabled___T2_8u",title_sty:"title_sty___nTv6u",btns_pfbz:"btns_pfbz___kGOTA"},ud=z(31520),cs=z(67294),Xn=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Ar=({exercise:ce,globalSetting:se,user:ae,loading:_e,questionInfo:pt,dispatch:Ve})=>{var Dt;const et=(0,he.useParams)(),{is_open_ai_review:Be,zero_commit_student_works:Pe,unified_ai_setting:Ht,ai_review_settings:vn,is_random:hn}=ce.commonHeader,[xt,Gt]=(0,a.useState)({}),[Bn,Dn]=(0,a.useState)(!1),[Fn,Wt]=(0,a.useState)(0),[Ut,Yt]=(0,a.useState)(!1),ea=Ht?vn:((Dt=pt==null?void 0:pt.ai_review_settings)==null?void 0:Dt.length)>0?pt.ai_review_settings:vn;(0,a.useEffect)(()=>{!_e["exercise/getCommonHeader"]&&Be&&!(0,On.dE)()&&nn()},[_e["exercise/getCommonHeader"]]),(0,a.useEffect)(()=>{if((xt==null?void 0:xt.status)=="running"){const Pt=setInterval(()=>{nn()},3e3);return()=>clearInterval(Pt)}},[xt==null?void 0:xt.status]);const nn=()=>Xn(void 0,null,function*(){const Pt=yield(0,Ce.ZP)("/api/exercise_resubmits/resubmit_status.json",{method:"get",params:{exercise_id:et==null?void 0:et.categoryId,exercise_question_id:pt==null?void 0:pt.question_id}});(Pt==null?void 0:Pt.status)===0&&Gt(Pt==null?void 0:Pt.data)}),zn=Pt=>{Ve({type:"exercise/setActionTabs",payload:{key:"\u667A\u80FD\u8BC4\u9605\u7ED3\u679C",id:xt==null?void 0:xt.id,status:Pt,questionId:pt==null?void 0:pt.question_id,onOK:()=>{nn()}}})},mn=()=>{Ve({type:"exercise/setActionTabs",payload:{key:"AI\u8BC4\u9605\u64CD\u4F5C\u8BB0\u5F55",params:{exercise_id:et==null?void 0:et.categoryId,exercise_question_id:pt==null?void 0:pt.question_id}}})},pa=()=>Xn(void 0,null,function*(){if(Be){if(Pe)return pe.ZP.warning("\u5DF2\u63D0\u4EA4\u4F5C\u4E1A\u7684\u5B66\u751F\u6570\u4E3A0\uFF0C\u65E0\u6CD5\u667A\u80FD\u8BC4\u9605!")}else return pe.ZP.warning("\u8BF7\u5148\u5F00\u542F\u667A\u80FD\u8BC4\u9605\u529F\u80FD!");Yt(!0);const Pt=yield(0,Ce.ZP)("/api/exercise_resubmits/resubmit.json",{method:"post",body:{exercise_id:et==null?void 0:et.categoryId,range:Fn,exercise_question_id:pt==null?void 0:pt.question_id}});(Pt==null?void 0:Pt.status)===0&&(Dn(!1),nn()),Yt(!1)});return cs.createElement("div",{className:js.ai_review_warp},cs.createElement("div",null,Be&&(xt==null?void 0:xt.status)=="running"&&cs.createElement("div",{className:js.under_review},cs.createElement(jt.Z,{spinning:!0,className:"mr6",size:"small"}),cs.createElement("span",{className:"ml10"},"\u667A\u80FD\u8BC4\u9605\u4E2D\uFF0C\u5F53\u524D\u8FDB\u5EA6"),cs.createElement("span",{className:"ml5",style:{color:"#3061D0"}},xt==null?void 0:xt.rate,(xt==null?void 0:xt.rate)=="0.0%"&&cs.createElement("span",{className:"ml10"},"\u4EFB\u52A1\u6392\u961F\u4E2D\uFF0C\u9884\u8BA1\u7A0D\u540E\u5F00\u59CB\u8BC4\u9605!"))),Be&&["success","failed"].includes(xt==null?void 0:xt.status)&&cs.createElement("div",{className:js.under_review},"\u667A\u80FD\u8BC4\u9605\u6210\u529F",cs.createElement("span",{style:{color:"#3061D0"},onClick:()=>zn(1)},xt==null?void 0:xt.success_count),"\u4EBA\uFF0C \u5931\u8D25",cs.createElement("span",{style:{color:"#ff0000"},onClick:()=>zn(0)},xt==null?void 0:xt.fail_count),"\u4EBA")),cs.createElement("div",{className:"flex"},cs.createElement("div",{className:js.btn_operate,onClick:mn},cs.createElement("i",{className:"iconfont icon-lishijilu mr8"}),"\u64CD\u4F5C\u8BB0\u5F55"),cs.createElement("div",{className:`${js.btn_review} ${(xt==null?void 0:xt.status)=="running"&&js.is_disabled}`,onClick:()=>{if((xt==null?void 0:xt.status)!="running"){if(!Be)return pe.ZP.warning("\u8BF7\u5148\u5F00\u542F\u667A\u80FD\u8BC4\u9605\u529F\u80FD!"),!1;Wt(0),Dn(!0)}}},cs.createElement("img",{src:Ga.Z,className:"mr8",style:{width:14,height:14}}),"\u667A\u80FD\u8BC4\u9605")),cs.createElement(Fe.default,{width:1150,centered:!0,title:"\u667A\u80FD\u8BC4\u9605",open:Bn,destroyOnClose:!0,onCancel:()=>Dn(!1),okText:"\u5F00\u59CB\u8BC4\u9605",confirmLoading:Ut,onOk:()=>pa()},cs.createElement("div",{className:"flex item-center justify-between mb10"},cs.createElement("div",{className:js.title_sty,style:{marginBottom:0}},"\u8BC4\u5206\u6807\u51C6"),cs.createElement("div",{className:"flex"},cs.createElement("div",{className:js.btns_pfbz,onClick:()=>{Ve({type:"exercise/setActionTabs",payload:{key:"\u6D4B\u8BD5AI\u8BC4\u5206",questionId:pt==null?void 0:pt.question_id,ai_review_settings:ea}})}},cs.createElement("img",{src:ud.Z}),"\u6D4B\u8BD5AI\u8BC4\u5206"),cs.createElement("div",{className:js.btns_pfbz,onClick:()=>{window.location.href=`/classrooms/${et.coursesId}/exercise/${et.categoryId}/detail?random=${hn}&tabs=12`}},cs.createElement("i",{className:"iconfont icon-bianji15 font14 mr5"}),"\u4FEE\u6539\u8BC4\u5206\u6807\u51C6"))),cs.createElement(x.default,{pagination:!1,dataSource:ea,columns:[{title:"\u8BC4\u5206\u70B9",dataIndex:"name",width:236},{title:"\u8BC4\u5206\u6807\u51C6",dataIndex:"content",width:684,ellipsis:!0},{title:"\u6743\u91CD\uFF08%\uFF09",dataIndex:"weight",width:140}]}),cs.createElement("div",{className:js.title_sty,style:{marginTop:30}},"\u8BC4\u9605\u8303\u56F4"),cs.createElement("div",{className:js.znpy,style:{background:"#F6F7F9",padding:"13px 20px"}},cs.createElement(Ie.ZP.Group,{style:{display:"flex",flexDirection:"column",gap:18},onChange:Pt=>Wt(Pt.target.value),value:Fn,options:[{value:0,label:"\u5DF2\u63D0\u4EA4\u8BD5\u5377\u4E14\u672A\u8BC4\u9605\u7684\u5B66\u751F"},{value:1,label:"\u6240\u6709\u5DF2\u63D0\u4EA4\u8BD5\u5377\u7684\u5B66\u751F"}]}))))};var _l=(0,he.connect)(({exercise:ce,globalSetting:se,loading:ae,user:_e})=>({exercise:ce,globalSetting:se,loading:ae.effects,user:_e}))(Ar),Ia=z(67294),Bu=Object.defineProperty,Zo=Object.defineProperties,yi=Object.getOwnPropertyDescriptors,Oi=Object.getOwnPropertySymbols,uo=Object.prototype.hasOwnProperty,As=Object.prototype.propertyIsEnumerable,Mi=(ce,se,ae)=>se in ce?Bu(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,Bc=(ce,se)=>{for(var ae in se||(se={}))uo.call(se,ae)&&Mi(ce,ae,se[ae]);if(Oi)for(var ae of Oi(se))As.call(se,ae)&&Mi(ce,ae,se[ae]);return ce},gd=(ce,se)=>Zo(ce,yi(se)),dl=(ce,se)=>{var ae={};for(var _e in ce)uo.call(ce,_e)&&se.indexOf(_e)<0&&(ae[_e]=ce[_e]);if(ce!=null&&Oi)for(var _e of Oi(ce))se.indexOf(_e)<0&&As.call(ce,_e)&&(ae[_e]=ce[_e]);return ae},qs=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Fc=(ce,se)=>{var ae=ce,{problemset:_e,exercise:pt,globalSetting:Ve,loading:Dt,dispatch:et,onRef:Be=()=>{},editData:Pe,cancelAdd:Ht=()=>{},editKey:vn,setEditKey:hn=()=>{},setIsClaer:xt=()=>{},addCallback:Gt=Qn=>{},reload:Bn=()=>{},markBtnVisible:Dn,handleMarkWrongQuestion:Fn,handleAddCorrectAnswers:Wt}=ae,Ut=dl(ae,["problemset","exercise","globalSetting","loading","dispatch","onRef","editData","cancelAdd","editKey","setEditKey","setIsClaer","addCallback","reload","markBtnVisible","handleMarkWrongQuestion","handleAddCorrectAnswers"]);const[Yt,ea]=(0,a.useState)([]),[nn,zn]=(0,a.useState)(!1),[mn,pa]=(0,a.useState)(!0),[Pt,Nt]=(0,a.useState)(1),[Rt,Xt]=(0,a.useState)(!1),[cn,tn]=(0,a.useState)([]),Ja=(0,he.useParams)(),ha=(0,a.useRef)(null),[dt,Fa]=(0,a.useState)(""),[ia,wu]=(0,a.useState)([]),Sa=(0,a.useRef)(!1),Hn=Qn=>{tn([...cn,Bc({},Qn)])};(0,a.useEffect)(()=>{var Qn;if(Sa.current)return;if(!(Pe!=null&&Pe.question_title)){zn(!0),Fa("");return}Fa(Pe==null?void 0:Pe.question_title),Xt(!(Pe!=null&&Pe.repeat_answer)),Nt(Pe==null?void 0:Pe.difficulty),ea(Pe.tag_discipline_ids);const pn=(Qn=Pe==null?void 0:Pe.sub_exercise_questions)==null?void 0:Qn.map(Tn=>{var En,da,Ha;return gd(Bc({},Tn),{id:Tn.question_id,name:Tn.question_title,open:!1,score:Tn.question_score,qusList:(En=Tn==null?void 0:Tn.question_choices)==null?void 0:En.map(au=>au.choice_text),activeQusEditor:null,qusAnswer:(Ha=[(da=Tn==null?void 0:Tn.question_choices)==null?void 0:da.findIndex(au=>au.standard_boolean)])==null?void 0:Ha.filter(au=>au!==-1)})});wu(pn)},[Pe,nn]),(0,a.useEffect)(()=>{nn&&Qn();function Qn(){return qs(this,null,function*(){var pn,Tn;const En=yield(0,ne.YY)({sub_discipline_id:(Tn=(pn=pt.editData)==null?void 0:pn.exercise)==null?void 0:Tn.sub_discipline_id});tn(En.tag_disciplines)})}},[nn]),(0,a.useEffect)(()=>{var Qn;const pn=(Qn=pt==null?void 0:pt.tagDisciplineData)!=null&&Qn.tag_disciplines&&Array.isArray(pt.tagDisciplineData.tag_disciplines)?pt.tagDisciplineData.tag_disciplines:[];tn(pn)},[pt.tagDisciplineData]),(0,a.useImperativeHandle)(se,()=>({onSave:tu,isEdit:nn}));const Oa=Qn=>{(Qn==null?void 0:Qn.status)===0&&(pe.ZP.success("\u4FDD\u5B58\u6210\u529F"),zn(!1),hn(-1),Sa.current=!1,Bn())},tu=()=>qs(void 0,null,function*(){var Qn,pn,Tn;if(!dt)return pe.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;if(ia.length===0)return pe.ZP.info("\u8BF7\u60A8\u6DFB\u52A0\u5C0F\u9898"),!1;for(let Ha=0;Ha!Cr);if(Ya>-1)return pe.ZP.info(`\u8BF7\u5148\u8F93\u5165\u7B2C${Ha+1}\u5C0F\u9898${Tu.k4[Ya]}\u9009\u9879\u7684\u5185\u5BB9`),!1;if(!(au!=null&&au.qusAnswer.length))return pe.ZP.info(`\u8BF7\u8BBE\u7F6E\u7B2C${Ha+1}\u5C0F\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E`),!1}const En=ia.map(Ha=>{var au;return{id:Ha.id>1?Ha.id:null,question_title:Ha.name,question_type:1,question_choices:Ha.qusList,question_score:Ha.score,standard_answers:[((au=Ha.qusAnswer)==null?void 0:au[0])+1]}});Sa.current=!0;let da;Pe.question_id&&((Pe==null?void 0:Pe.is_my)===1?Fe.default.confirm({title:"\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",keyboard:!1,onOk:()=>qs(void 0,null,function*(){var Ha,au;da=yield et({type:"exercise/editExerciseQuestion",payload:{id:Pe.question_id,question_title:dt,question_type:7,sub_questions:En,tag_discipline_ids:Yt,sub_discipline_id:(au=(Ha=pt.editData)==null?void 0:Ha.exercise)==null?void 0:au.sub_discipline_id,difficulty:Pt,is_cover:1,repeat_answer:!Rt}}),Oa(da)}),onCancel:()=>qs(void 0,null,function*(){var Ha,au;da=yield et({type:"exercise/editExerciseQuestion",payload:{id:Pe.question_id,question_title:dt,question_type:7,sub_questions:En,tag_discipline_ids:Yt,sub_discipline_id:(au=(Ha=pt.editData)==null?void 0:Ha.exercise)==null?void 0:au.sub_discipline_id,difficulty:Pt,repeat_answer:!Rt}}),Oa(da)})}):(da=yield et({type:"exercise/editExerciseQuestion",payload:{id:Pe.question_id,question_title:dt,question_type:7,sub_questions:En,tag_discipline_ids:Yt,sub_discipline_id:(Tn=(pn=pt.editData)==null?void 0:pn.exercise)==null?void 0:Tn.sub_discipline_id,difficulty:Pt,repeat_answer:!Rt}}),Oa(da)))}),Ka=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(Qn=>{var pn,Tn;return((Tn=(pn=pt==null?void 0:pt.editData)==null?void 0:pn.exercise)==null?void 0:Tn.exercise_status)===1?Qn:Qn.id!=="del"&&Qn.id!=="add"}),Ba=Qn=>qs(void 0,null,function*(){if(vn!==-1){pe.ZP.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002");return}switch(Qn.id){case"del":let pn;Fe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk(){return qs(this,null,function*(){yield(0,ne.Fl)({id:Pe.question_id}),et({type:"exercise/editExercise",payload:Bc({},Ja)})})}});break;case"up":case"down":yield et({type:"exercise/exeriseMoveUpDown",payload:{id:Pe.question_id,opr:Qn.id}}),et({type:"exercise/editExercise",payload:Bc({},Ja)});break;case"edit":hn(Pe.dragKey),zn(!0);break;case"add":Gt({key:Pe.key,insert_id:Pe==null?void 0:Pe.question_id,question_type:0});break}}),La=()=>{var Qn;return Ia.createElement("aside",{ref:ha},Ia.createElement("div",{className:ba.questionType},!(Pe!=null&&Pe.isPreview)&&Ia.createElement("div",null,Ia.createElement("span",{className:"font16 c-blue"},Pe.key,"\u3001\u7EC4\u5408\u9898"),"\uFF08",Pe.question_score,"\u5206\uFF09")),Pe!=null&&Pe.isPreview?Ia.createElement("div",{style:{display:"flex",alignItems:"flex-start"}},Ia.createElement("span",{style:{flexShrink:0},className:"font18"},Pe.key,"."),Ia.createElement(uu.Z,{value:Pe.question_title}),Ia.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08\u5171",Pe==null?void 0:Pe.sub_q_count,"\u5C0F\u9898\uFF0C",Pe.question_score,"\u5206\uFF09")):Ia.createElement("div",{className:"mt5"},Ia.createElement(uu.Z,{value:Pe.question_title})),Ia.createElement("div",{style:{display:mn?"block":"none"},className:ba.questionChoices},(Qn=Pe==null?void 0:Pe.sub_exercise_questions)==null?void 0:Qn.map((pn,Tn)=>{var En,da,Ha,au;return Ia.createElement("div",{key:Tn,style:{marginBottom:"20px"}},Ia.createElement("div",{style:{display:"flex",alignItems:"flex-start",marginBottom:"15px"}},Ia.createElement("span",{style:{flexShrink:0},className:"font18"},Pe.key,".",Tn+1,(pn==null?void 0:pn.question_type)==0?"\uFF08\u5355\u9009\u9898\uFF09":(pn==null?void 0:pn.question_type)==1?"\uFF08\u591A\u9009\u9898\uFF09":(pn==null?void 0:pn.question_type)==2?"\uFF08\u5224\u65AD\u9898\uFF09":(pn==null?void 0:pn.question_type)==3?"\uFF08\u586B\u7A7A\u9898\uFF09":"\uFF08\u7B80\u7B54\u9898\uFF09"),Ia.createElement(uu.Z,{value:pn.question_title}),Ia.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",pn.question_score,"\u5206\uFF09")),(pn==null?void 0:pn.question_type)==3&&((En=pn==null?void 0:pn.standard_answers)==null?void 0:En.map(function(Ya,Cr){return Ia.createElement(oe.Z,{key:Cr,align:"middle",justify:"start",style:{marginBottom:"5px"}},Ia.createElement(ve.Z,null,"\u7B54\u6848\uFF08\u586B\u7A7A",Ya==null?void 0:Ya.choice_id,"\uFF09\uFF1A"),Ia.createElement(ve.Z,{flex:"1"},Ia.createElement(oe.Z,{align:"middle",gutter:[1,1]},Ya.answer_text.map(function(Zu,sa){var Ru;return Ia.createElement(ve.Z,{span:24,key:sa},Ia.createElement(Le.default,{key:Cr,checked:(Ru=pn==null?void 0:pn.standard_answers)==null?void 0:Ru.includes(Cr),disabled:!0,value:Zu}))}))))})),(pn==null?void 0:pn.question_type)==4&&Ia.createElement(uu.Z,{value:((da=pn==null?void 0:pn.answer_texts)==null?void 0:da[0])||""}),((pn==null?void 0:pn.question_type)==0||(pn==null?void 0:pn.question_type)==1||(pn==null?void 0:pn.question_type)==2)&&((Ha=pn==null?void 0:pn.question_choices)==null?void 0:Ha.map(function(Ya,Cr){return Ia.createElement(oe.Z,{key:Cr,align:"middle"},Ia.createElement(ve.Z,null,Ia.createElement(Ie.ZP,{key:Cr,checked:pn.standard_answer.includes(Cr+1),disabled:!0},Tu.k4[Cr],".")),Ia.createElement(ve.Z,{flex:"1"},Ia.createElement("span",{className:"c-black font14"},Ia.createElement(uu.Z,{value:Ya.choice_text}))))})),Dn&&Ia.createElement(oe.Z,{className:"mt20",align:"middle",gutter:20},Ia.createElement(ve.Z,null,Ia.createElement(Nd.Z,{state:pn==null?void 0:pn.is_wrong,onClick:()=>Fn({value:pn,type:pn==null?void 0:pn.question_type})})),(pn==null?void 0:pn.question_type)==0&&Ia.createElement(ve.Z,null,Ia.createElement(me.ZP,{style:{color:"#3061D0"},onClick:()=>{Wt==null||Wt({value:pn})}},"\u589E\u8BBE\u6B63\u786E\u7B54\u6848"))),(pn==null?void 0:pn.question_type)==4&&((au=pt==null?void 0:pt.commonHeader)==null?void 0:au.teacher_permission)&&Ia.createElement(_l,{questionInfo:pn}))})),Ia.createElement("div",{className:ba.action},Ia.createElement("span",{className:"c-light-primary current",onClick:()=>pa(!mn),style:{}},mn?"\u6536\u8D77":"\u5C55\u5F00"),!Pe.hideAction&&Ka.map(function(pn,Tn){return pn.id==="up"&&Pe.key===1||pn.id==="down"&&Pe.key===Pe.len?null:Ia.createElement(Ae.Z,{key:Tn,placement:"bottom",title:pn.name},Ia.createElement("span",{onClick:()=>Ba(pn),className:pn.icon}))})))},Zn=()=>{var Qn,pn;return Ia.createElement("aside",null,Ia.createElement("div",{className:ba.questionType},Ia.createElement("div",null,Ia.createElement("span",{className:"font16 c-blue"},"\u9009\u62E9\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09")),Ia.createElement("section",{className:ba.wrap,style:{padding:0}},Ia.createElement("p",{className:ba.titleWrap},Ia.createElement("span",{className:ba.required},"*"),Ia.createElement("span",{className:ba.title},"\u9898\u5E72\uFF1A")),Ia.createElement(Fi.Z,{id:"combination-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:dt,onChange:Tn=>Fa(Tn)}),Ia.createElement("p",null,"\u5C0F\u9898\u6570\uFF1A",ia==null?void 0:ia.length),ia==null?void 0:ia.map((Tn,En)=>{var da;return Ia.createElement("div",{className:ba.fold,key:Tn.id},Ia.createElement("div",{onClick:()=>ca("open",En),className:ba.head},Ia.createElement("i",{className:"iconfont icon-sanjiaoxing",style:{transform:Tn.open?"initial":"rotate(270deg) translate(2px, 4px)"}}),Ia.createElement("span",null,"\u7B2C",En+1,"\u5C0F\u9898\uFF08\u5355\u9009\u9898\uFF09"),Ia.createElement("b",{onClick:Ha=>{Ha.stopPropagation(),ca("delete",En)},className:"iconfont icon-shanchu8"})),Ia.createElement("div",{className:"mb10",style:{display:Tn.open?"block":"none"}},Ia.createElement(Fi.Z,{watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Tn==null?void 0:Tn.name,onChange:Ha=>ca("value",En,Ha)}),Ia.createElement("p",{className:ba.titleWrap},Ia.createElement("span",{className:ba.required},"*"),Ia.createElement("span",{className:ba.title},"\u7B54\u6848\u9009\u9879\uFF1A",Ia.createElement("span",{className:ba.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),(da=Tn==null?void 0:Tn.qusList)==null?void 0:da.map((Ha,au)=>{var Ya,Cr;return Ia.createElement("div",{className:ba.choiceWrap,key:au},Ia.createElement(Ae.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},Ia.createElement("div",{className:`${ba.answer} ${(Ya=Tn==null?void 0:Tn.qusAnswer)!=null&&Ya.includes(au)?ba.activeAnswer:""}`,onClick:()=>ca("answer",En,au)},Tu.k4[au])),Ia.createElement("div",{className:ba.editorWrap},(Tn==null?void 0:Tn.activeQusEditor)===au?Ia.createElement(Fi.Z,{id:`single-question-option-${au}`,watch:!0,height:155,isFocus:!0,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:Ha,onChange:Zu=>ca("details",En,Zu)}):Ia.createElement("div",{className:ba.htmlWrap,onClick:()=>ca("edit",En,au)},Ia.createElement(uu.Z,{value:Ha}))),au>1&&Ia.createElement(Ae.Z,{title:"\u5220\u9664"},Ia.createElement("i",{className:`${ba.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>ca("deleteQus",En,au)})),au<7&&au===((Cr=Tn==null?void 0:Tn.qusList)==null?void 0:Cr.length)-1&&Ia.createElement(Ae.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},Ia.createElement("i",{className:`${ba.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>ca("addQus",En)})))}),Ia.createElement("p",{className:"mt10"},"\u5206\u503C\uFF1A",Ia.createElement(Re.Z,{value:Tn.score,max:1e4,min:0,onChange:Ha=>ca("score",En,Ha)})," ","\u5206")))}),ia.length<20&&Ia.createElement(me.ZP,{type:"primary",onClick:bn},Ia.createElement("i",{className:"iconfont icon-tianjiatimu mr5 font14"}),"\u6DFB\u52A0\u5C0F\u9898")),Ia.createElement("p",{className:"mt10"},Ia.createElement("span",{className:ba.difficult},Ia.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",Ia.createElement(Ie.ZP.Group,{value:Pt,onChange:Tn=>{Nt(Tn.target.value)}},Ia.createElement(Ie.ZP.Button,{value:1},"\u7B80\u5355"),Ia.createElement(Ie.ZP.Button,{value:2},"\u9002\u4E2D"),Ia.createElement(Ie.ZP.Button,{value:3},"\u56F0\u96BE")))),Ia.createElement("p",{className:ba.titleWrap},Ia.createElement("span",{className:`${ba.title}`},"\u77E5\u8BC6\u70B9\uFF1A",Ia.createElement("span",{className:ba.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),Ia.createElement("div",{className:"mt5"},Ia.createElement(Jn.N,{selectvalues:Pe==null?void 0:Pe.tag_discipline_ids,value:Yt,onChange:ea,subId:(pn=(Qn=pt.editData)==null?void 0:Qn.exercise)==null?void 0:pn.sub_discipline_id,knowledgeOptions:cn,onAddKnowledgeFinish:Hn}))),Ia.createElement("aside",{className:"tr"},(vn!==-1||Pe.question_id)&&Ia.createElement(me.ZP,{type:"default",onClick:()=>{Ht(),zn(!1)}},"\u53D6\u6D88"),Ia.createElement(me.ZP,{className:"ml20",type:"primary",onClick:()=>{tu()}},"\u4FDD\u5B58")))},bn=()=>{const Qn={id:Math.random(),item_type:"SINGLE",open:!1,name:"",qusList:["","","",""],activeQusEditor:null,qusAnswer:[],analysis:""};wu(ia.concat(Qn))},ca=(Qn,pn,Tn)=>{var En;const da=(0,Ta.cloneDeep)(ia);Qn==="open"&&(da[pn].open=!da[pn].open),Qn==="delete"&&da.splice(pn,1),Qn==="value"&&(da[pn].name=Tn),Qn==="answer"&&(da[pn].qusAnswer=[Tn]),Qn==="edit"&&(da[pn].activeQusEditor=Tn),Qn==="details"&&(da[pn].qusList[da[pn].activeQusEditor]=Tn),Qn==="addQus"&&(da[pn].qusList=da[pn].qusList.concat("")),Qn==="deleteQus"&&(da[pn].qusList=da[pn].qusList.filter((Ha,au)=>au!==Tn),da[pn].qusAnswer=(En=da[pn].qusAnswer)==null?void 0:En.filter(Ha=>Ha!==Tn)),Qn==="analysis"&&(da[pn].analysis=Tn),Qn==="score"&&(da[pn].score=Tn),wu(da)};return Ia.createElement("section",{className:ba.wrap},!nn&&La(),nn&&Zn())};var be=(0,he.connect)(({problemset:ce,loading:se,globalSetting:ae,exercise:_e})=>({problemset:ce,globalSetting:ae,exercise:_e,loading:se.effects}),null,null,{forwardRef:!0})((0,a.forwardRef)(Fc)),Te=z(66012),at={flex_box_center:"flex_box_center___dDNpp",flex_space_between:"flex_space_between___ovpjv",flex_box_vertical_center:"flex_box_vertical_center___oqAEt",flex_box_center_end:"flex_box_center_end___mHCIK",flex_box_column:"flex_box_column___GZMP2",posWarp:"posWarp___ZUxXl",pos:"pos___A7NKx",tips:"tips___ap6NV"},Et=z(48994),rn=z(19575),Mn=Object.defineProperty,na=Object.defineProperties,ka=Object.getOwnPropertyDescriptors,nu=Object.getOwnPropertySymbols,vu=Object.prototype.hasOwnProperty,Uu=Object.prototype.propertyIsEnumerable,tr=(ce,se,ae)=>se in ce?Mn(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,gr=(ce,se)=>{for(var ae in se||(se={}))vu.call(se,ae)&&tr(ce,ae,se[ae]);if(nu)for(var ae of nu(se))Uu.call(se,ae)&&tr(ce,ae,se[ae]);return ce},Xu=(ce,se)=>na(ce,ka(se)),Fr=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const br=({data:ce,exercise:se,isDragDisabled:ae=!1,editorProps:_e={},onDragEnd:pt=()=>{},dispatch:Ve,markBtnVisible:Dt=!1,batchScore:et=[],reload:Be=()=>{}})=>{const Pe=(0,a.useRef)(),Ht=(0,he.useParams)(),[vn,hn]=Fe.default.useModal(),xt=()=>{var zn,mn,pa,Pt,Nt,Rt,Xt,cn,tn,Ja,ha,dt,Fa,ia,wu,Sa;return[{name:"\u5355\u9009\u9898",type:0,count:(zn=ce==null?void 0:ce.exercise_types)==null?void 0:zn.q_singles,score:(mn=ce==null?void 0:ce.exercise_types)==null?void 0:mn.q_singles_scores,items:[]},{name:"\u591A\u9009\u9898",type:1,count:(pa=ce==null?void 0:ce.exercise_types)==null?void 0:pa.q_doubles,score:(Pt=ce==null?void 0:ce.exercise_types)==null?void 0:Pt.q_doubles_scores,items:[]},{name:"\u5224\u65AD\u9898",type:2,count:(Nt=ce==null?void 0:ce.exercise_types)==null?void 0:Nt.q_judges,score:(Rt=ce==null?void 0:ce.exercise_types)==null?void 0:Rt.q_judges_scores,items:[]},{name:"\u586B\u7A7A\u9898",type:3,count:(Xt=ce==null?void 0:ce.exercise_types)==null?void 0:Xt.q_nulls,score:(cn=ce==null?void 0:ce.exercise_types)==null?void 0:cn.q_nulls_scores,items:[]},{name:"\u7B80\u7B54\u9898",type:4,count:(tn=ce==null?void 0:ce.exercise_types)==null?void 0:tn.q_mains,score:(Ja=ce==null?void 0:ce.exercise_types)==null?void 0:Ja.q_mains_scores,items:[]},{name:"\u5B9E\u8BAD\u9898",type:5,count:(ha=ce==null?void 0:ce.exercise_types)==null?void 0:ha.q_shixuns,score:(dt=ce==null?void 0:ce.exercise_types)==null?void 0:dt.q_shixuns_scores,items:[]},{name:"\u7F16\u7A0B\u9898",type:6,count:(Fa=ce==null?void 0:ce.exercise_types)==null?void 0:Fa.q_pros,score:(ia=ce==null?void 0:ce.exercise_types)==null?void 0:ia.q_pros_scores,items:[]},{name:"\u7EC4\u5408\u9898",type:7,count:(wu=ce==null?void 0:ce.exercise_types)==null?void 0:wu.q_combinations,score:(Sa=ce==null?void 0:ce.exercise_types)==null?void 0:Sa.q_combination_scores,items:[]}]},Gt=(zn,mn,pa)=>{const Pt=Array.from(zn),[Nt]=Pt.splice(mn,1);return Pt.splice(pa,0,Nt),Pt},Bn=(zn,mn,pa)=>{if(!zn.destination)return;const Pt=Gt(mn,zn.source.index,zn.destination.index);pt(Pt,pa)},Dn=zn=>{Ve({type:"exercise/setActionTabs",payload:{key:"\u6807\u8BB0\u9519\u9898",params:zn}})},Fn=(zn,mn)=>{var pa,Pt,Nt;if(mn===0)return a.createElement(Xs,gr({reload:Be,editData:zn},zn));if(mn===1)return a.createElement(ql,gr({reload:Be,editData:zn},zn));if(mn===2)return a.createElement(Ms,gr({reload:Be,editData:zn},zn));if(mn===3)return a.createElement(Cc,gr({reload:Be,editData:zn},zn));if(mn===4)return a.createElement(Yc,gr({reload:Be,editData:zn},zn));if(mn===5)return a.createElement(co,gr({reload:Be,editData:zn},zn));if(mn===6)return a.createElement(Ud,gr({editData:zn},zn));if(mn===7)return a.createElement(be,gr({handleAddCorrectAnswers:ea,handleMarkWrongQuestion:Dn,markBtnVisible:Dt,reload:Be,editData:zn},zn));if(mn===8)return a.createElement("div",{style:{padding:"20px 30px"}},a.createElement(uu.Z,{value:zn.key+"."+((pa=zn==null?void 0:zn.program_attr)==null?void 0:pa.description)}),a.createElement(uu.Z,{style:{paddingLeft:10},showProgramFill:!0,disabledFill:!0,value:rn.Base64.decode(((Pt=zn==null?void 0:zn.program_attr)==null?void 0:Pt.code)||"")}),(Nt=zn==null?void 0:zn.standard_answer)==null?void 0:Nt.map(function(Rt,Xt){return a.createElement(oe.Z,{key:Xt,align:"middle",style:{marginTop:20}},a.createElement(ve.Z,null,"\u7B54\u6848\uFF08\u586B\u7A7A",Rt.choice_id,"\uFF09\uFF1A"),a.createElement(ve.Z,{flex:"1"},a.createElement(oe.Z,{align:"middle",gutter:[1,1]},a.createElement(Le.default,{key:Xt,disabled:!0,value:Rt.answer_text||"- -"}))))}))},Wt=(zn,mn,pa)=>a.createElement(Te.Z5,{onDragEnd:Pt=>Bn(Pt,zn,mn)},a.createElement(Te.bK,{droppableId:"droppable"},(Pt,Nt)=>a.createElement("div",Xu(gr({ref:Pt.innerRef},Pt.droppableProps),{style:{width:"100%"}}),zn==null?void 0:zn.map((Rt,Xt)=>{var cn;const tn=gr(Xu(gr({},Rt),{key:Xt+1,hideAction:!0,isPreview:!0,dragKey:mn+"-"+Xt}),_e);return a.createElement(Te._l,{key:tn==null?void 0:tn.question_id,draggableId:(cn=tn==null?void 0:tn.question_id)==null?void 0:cn.toString(),index:Xt,isDragDisabled:ae},(Ja,ha)=>{var dt;return a.createElement("aside",gr(gr({ref:Ja.innerRef},Ja.draggableProps),Ja.dragHandleProps),a.createElement("div",{className:at.posWarp,id:tn.dragKey},Fn(tn,mn),a.createElement(oe.Z,{className:"pl30",align:"middle",gutter:20},Dt&&![5,6,7,8].includes(mn)&&a.createElement(ve.Z,null,a.createElement(Nd.Z,{state:tn==null?void 0:tn.is_wrong,onClick:()=>Dn({value:tn,type:mn})})),[5,6,8].includes(mn)&&(tn==null?void 0:tn.show_resubmit)&&a.createElement(ve.Z,null,a.createElement(Et.C,{dataSource:tn})),Dt&&[0].includes(mn)&&a.createElement(ve.Z,null,a.createElement(me.ZP,{style:{color:"#3061D0"},onClick:()=>{ea({value:tn})}},"\u589E\u8BBE\u6B63\u786E\u7B54\u6848"))),mn===4&&((dt=se==null?void 0:se.commonHeader)==null?void 0:dt.teacher_permission)&&a.createElement(_l,{questionInfo:tn}),a.createElement(ks.Z,null),!ae&&a.createElement("div",{className:at.pos},a.createElement("div",{className:at.tips},"\u62D6\u52A8\u53EF\u4EE5\u6539\u53D8\u8BD5\u9898\u663E\u793A\u987A\u5E8F"))))})}),Pt.placeholder))),Ut=zn=>({\u5355\u9009\u9898:2,\u591A\u9009\u9898:5,\u586B\u7A7A\u9898:2,\u5224\u65AD\u9898:2,\u7B80\u7B54\u9898:10,\u7F16\u7A0B\u9898:10,\u5B9E\u8BAD\u9898:5,\u7EC4\u5408\u9898:10})[zn]||0,Yt=(zn,mn)=>{Pe.current=Ut(mn),Fe.default.confirm({centered:!0,title:"\u6279\u91CF\u8BBE\u7F6E\u5206\u6570",content:a.createElement("div",{className:""},a.createElement("span",null,mn==="\u7EC4\u5408\u9898"?"\u7EC4\u5408\u9898\u4E2D\u7684\u6BCF\u5C0F\u9898":mn,"\uFF1A"),a.createElement(Re.Z,{min:1,defaultValue:Pe.current,onChange:pa=>{Pe.current=pa}}),a.createElement("span",{className:"ml5"},"\u5206/\u9898"),a.createElement("br",null),mn==="\u586B\u7A7A\u9898"&&a.createElement("div",{style:{color:"rgb(255, 0, 0)"}},"\u6BCF\u7A7A\u5206\u503C\u6309\u6BCF\u9898\u5206\u503C\u53D6\u5E73\u5747\u5206\u8BA1\u7B97")),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Fr(void 0,null,function*(){(yield(0,Ce.ZP)(`/api/exercises/${Ht.categoryId}/batch_set_score.json`,{method:"post",body:{question_type:zn,score:Pe.current}})).status!==-1&&Be()})})},ea=({value:zn}={})=>{var mn,pa;let Pt=(zn==null?void 0:zn.standard_answer)||[];const Nt=vn.confirm({centered:!0,icon:null,title:"\u589E\u8BBE\u6B63\u786E\u7B54\u6848",width:800,content:a.createElement(a.Fragment,null,"\u5F53\u524D\u8BD5\u9898\u7684\u6B63\u786E\u7B54\u6848\u4E3A ",(mn=zn==null?void 0:zn.standard_answer)==null?void 0:mn.map(Rt=>{var Xt;return(Xt=Tu.k4)==null?void 0:Xt[Rt-1]}),"\uFF0C\u8BF7\u9009\u62E9\u9700\u8981\u589E\u8BBE\u4E3A\u6B63\u786E\u7B54\u6848\u7684\u9009\u9879\u3002",a.createElement("br",null),"\u52FE\u9009\u63D0\u4EA4\u4E4B\u540E\uFF0C\u9009\u4E2D\u589E\u8BBE\u4E3A\u6B63\u786E\u7B54\u6848\u4EFB\u4E00\u9009\u9879\u7684\u5B66\u751F\u4E5F\u4F1A\u83B7\u5F97\u8BE5\u5C0F\u9898\u7684\u5206\u503C\uFF0C\u4F46\u4E0D\u4F1A\u4FEE\u6539\u5F53\u524D\u8BD5\u9898\u7684\u9898\u578B\u3002\u53D6\u6D88\u52FE\u9009\u63D0\u4EA4\u4E4B\u540E\uFF0C\u4E5F\u4F1A\u91CD\u65B0\u8BA1\u7B97\u5BF9\u5E94\u5B66\u751F\u7684\u5F97\u5206\u3002",a.createElement("br",null),a.createElement(Se.default.Group,{className:"flex-col mt20",options:(pa=zn==null?void 0:zn.question_choices)==null?void 0:pa.map((Rt,Xt)=>{var cn;return{value:Rt==null?void 0:Rt.choice_position,label:a.createElement(uu.Z,{className:"c-black font14",value:`${(cn=Tu.k4)==null?void 0:cn[Xt]}. ${Rt==null?void 0:Rt.choice_text}`}),disabled:Rt==null?void 0:Rt.origin_standard_answer}}),defaultValue:Pt,onChange:Rt=>{Pt=Rt}})),onOk:()=>Fr(void 0,null,function*(){const Rt=yield(0,Ce.ZP)(`/api/exercises/${Ht.categoryId}/questions/${zn==null?void 0:zn.question_id}/add_standard_answers.json`,{method:"put",body:{standard_answer:Pt}});(Rt==null?void 0:Rt.status)===0&&(pe.ZP.success("\u4FEE\u6539\u6210\u529F"),Ve({type:"exercise/editExercise",payload:{categoryId:Ht.categoryId,coursesId:Ht.coursesId}}))})})},nn=function(){var zn;const mn=xt();return(zn=ce==null?void 0:ce.exercise_questions)==null||zn.forEach(function(Pt,Nt){var Rt,Xt,cn,tn,Ja,ha,dt,Fa,ia,wu,Sa,Hn,Oa,tu,Ka,Ba;Pt.question_type===0&&((Xt=(Rt=mn[Pt.question_type])==null?void 0:Rt.items)==null||Xt.push(Pt)),Pt.question_type===1&&((tn=(cn=mn[Pt.question_type])==null?void 0:cn.items)==null||tn.push(Pt)),Pt.question_type===2&&((ha=(Ja=mn[Pt.question_type])==null?void 0:Ja.items)==null||ha.push(Pt)),Pt.question_type===3&&((Fa=(dt=mn[Pt.question_type])==null?void 0:dt.items)==null||Fa.push(Pt)),Pt.question_type===4&&((wu=(ia=mn[Pt.question_type])==null?void 0:ia.items)==null||wu.push(Pt)),Pt.question_type===5&&((Hn=(Sa=mn[Pt.question_type])==null?void 0:Sa.items)==null||Hn.push(Pt)),Pt.question_type===6&&((tu=(Oa=mn[Pt.question_type])==null?void 0:Oa.items)==null||tu.push(Pt)),Pt.question_type===7&&((Ba=(Ka=mn[Pt.question_type])==null?void 0:Ka.items)==null||Ba.push(Pt))}),ce==null?void 0:ce.map((Pt,Nt)=>{var Rt,Xt;return a.createElement(a.Fragment,{key:Nt},a.createElement("div",{className:"pl20",style:{display:"flex",alignItems:"center"}},a.createElement("span",{className:"font16 c-light-primary"},(0,de.EM)(Nt+1),"\u3001",Pt.name),a.createElement("span",{className:"c-grey-999"},"\uFF08\u5171",Pt.count,"\u9898",(Pt==null?void 0:Pt.question_type)===7?`\uFF0C\u5305\u542B${Pt.sub_count}\u5C0F\u9898`:"","\uFF1B\u5171",Pt.score,"\u5206\uFF09"),(Pt.question_type==5||Pt.question_type==6)&&a.createElement("div",{style:{flex:1,textAlign:"end",paddingRight:20}},Pt.question_type==5&&a.createElement(Se.default,{defaultChecked:(Xt=(Rt=se==null?void 0:se.editData)==null?void 0:Rt.exercise)==null?void 0:Xt.show_challenge_task_pass,onChange:cn=>Fr(this,null,function*(){let tn=yield(0,Ce.ZP)(`/api/exercises/${Ht.categoryId}/update_show_columns.json`,{method:"post",body:{show_challenge_task_pass:cn.target.checked}});(tn==null?void 0:tn.status)===0&&(pe.ZP.info("\u8BBE\u7F6E\u6210\u529F"),Ve({type:"exercise/editExercise",payload:gr({},Ht)}))}),style:{marginTop:20,marginBottom:20}},"\u5C55\u793A\u5173\u5361\u63CF\u8FF0"),(Pt==null?void 0:Pt.question_type)===6&&a.createElement("span",{style:{marginLeft:20},onClick:()=>{var cn,tn,Ja,ha;Fe.default.confirm({title:"\u7F16\u7A0B\u9898\u8BBE\u7F6E",icon:null,centered:!0,closable:!0,footer:null,content:a.createElement("div",null,a.createElement(Se.default,{defaultChecked:(tn=(cn=se==null?void 0:se.editData)==null?void 0:cn.exercise)==null?void 0:tn.show_hack_sets,onChange:dt=>Fr(this,null,function*(){let Fa=yield(0,Ce.ZP)(`/api/exercises/${Ht.categoryId}/update_show_columns.json`,{method:"post",body:{show_hack_sets:dt.target.checked}});(Fa==null?void 0:Fa.status)===0&&(pe.ZP.info("\u8BBE\u7F6E\u6210\u529F"),Fe.default.destroyAll(),Ve({type:"exercise/editExercise",payload:gr({},Ht)}))}),style:{marginTop:20,marginBottom:20}},"\u5C55\u793A\u6D4B\u8BD5\u7528\u4F8B"),a.createElement("br",null),a.createElement(Se.default,{defaultChecked:(ha=(Ja=se==null?void 0:se.editData)==null?void 0:Ja.exercise)==null?void 0:ha.show_hack_description,onChange:dt=>Fr(this,null,function*(){let Fa=yield(0,Ce.ZP)(`/api/exercises/${Ht.categoryId}/update_show_columns.json`,{method:"post",body:{show_hack_description:dt.target.checked}});(Fa==null?void 0:Fa.status)===0&&(pe.ZP.info("\u8BBE\u7F6E\u6210\u529F"),Fe.default.destroyAll(),Ve({type:"exercise/editExercise",payload:gr({},Ht)}))}),style:{marginBottom:10}},"\u5C55\u793A\u8BD5\u9898\u63CF\u8FF0"))})},className:"current c-light-primary font14 bold-400"},"\u7F16\u7A0B\u9898\u663E\u793A\u8BBE\u7F6E")),(et==null?void 0:et.includes(Pt==null?void 0:Pt.name))&&a.createElement(me.ZP,{onClick:()=>Yt(Pt==null?void 0:Pt.question_type,Pt==null?void 0:Pt.name),style:{float:"right"},type:"primary",ghost:!0},"\u6279\u91CF\u8BBE\u7F6E\u5F97\u5206")),Wt(Pt.items,Pt==null?void 0:Pt.question_type,Pt==null?void 0:Pt.name))})};return a.createElement("div",null," ",nn(),hn," ")};var yr=(0,he.connect)()(br),Sl=z(80193),ro=z(99543),kr=z(67294),nl=Object.defineProperty,vo=Object.getOwnPropertySymbols,Xr=Object.prototype.hasOwnProperty,Pl=Object.prototype.propertyIsEnumerable,zl=(ce,se,ae)=>se in ce?nl(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,kl=(ce,se)=>{for(var ae in se||(se={}))Xr.call(se,ae)&&zl(ce,ae,se[ae]);if(vo)for(var ae of vo(se))Pl.call(se,ae)&&zl(ce,ae,se[ae]);return ce},Eo=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const $r=({exercise:ce,loading:se,dispatch:ae,activeTabs:_e})=>{var pt;const Ve=(0,he.useParams)(),[Dt]=(0,a.useState)(kl(kl({},Ve),{page:1,per_page:10})),{editData:et,commonHeader:{exercise_status:Be}}=ce;(0,a.useEffect)(()=>{_e==="2"&&Pe()},[Ve.categoryId,_e]);const Pe=()=>Eo(void 0,null,function*(){yield(0,Za.w)(Ve.coursesId,Ve.categoryId,"",2,3),ae({type:"exercise/editExercise",payload:kl({},Dt)})});return(0,a.useEffect)(()=>(ae({type:"globalSetting/onlyShowBackTopToggle",payload:!1}),ae({type:"globalSetting/onlyShowBackTopIconToggle",payload:!1}),()=>{ae({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),ae({type:"globalSetting/onlyShowBackTopIconToggle",payload:!0})}),[]),kr.createElement("div",null,kr.createElement("div",{style:{display:"inline-flex",background:"rgba(233, 146, 55, 0.05)",borderRadius:4,height:40,lineHeight:"40px",width:"100%",padding:"0px 10px",alignItems:"center",marginTop:20}},kr.createElement(b.Z,{style:{marginRight:5,color:"#E99237"}}),kr.createElement("span",{style:{flex:1,color:"#E99237"}},"\u53D1\u5E03\u540E\u7684\u8BD5\u5377\u4E0D\u5141\u8BB8\u8FDB\u884C\u589E\u52A0/\u5220\u9664\u8BD5\u9898\u548C\u4FEE\u6539\u5206\u503C\u7B49\u64CD\u4F5C\uFF0C\u82E5\u9700\u8981\u4E8C\u6B21\u4F7F\u7528\uFF0C\u53EF\u5C06\u8BD5\u5377\u52A0\u5165\u8BD5\u5377\u5E93\u4E2D\u8FDB\u884C\u7F16\u8F91"),kr.createElement(me.ZP,{onClick:()=>{ae({type:"exercise/setActionTabs",payload:{key:"\u5355\u4E2A\u52A0\u5165\u8BD5\u5377\u5E93",selectArrs:[Ve.categoryId]}})}},"\u52A0\u5165\u8BD5\u5377\u5E93")),kr.createElement("section",{className:"minH1050 mb20 pt30 pb30 pl60 bg-white relative"},kr.createElement(jt.Z,{spinning:se["exercise/editExercise"]},kr.createElement(Sl.Z,{sealStyle:{left:-540},isPreview:!0,activeTabs:_e,showExportBtn:!0}),kr.createElement(ks.Z,null),kr.createElement(yr,{data:et==null?void 0:et.exercise_question_types,exercise:ce,isDragDisabled:!0,markBtnVisible:Be===3&&(((pt=et==null?void 0:et.exercise)==null?void 0:pt.is_creator)||(0,On.Ny)())}),kr.createElement(ro.Z,null))))};var $l=(0,he.connect)(({exercise:ce,loading:se})=>({exercise:ce,loading:se.effects}))($r),xl={flex_box_center:"flex_box_center___VaA8k",flex_space_between:"flex_space_between___TqHqG",flex_box_vertical_center:"flex_box_vertical_center___lRanp",flex_box_center_end:"flex_box_center_end___BPjtN",flex_box_column:"flex_box_column___jWLBM",title:"title___L0cG8",search:"search____WeIQ",head:"head___xmSl4",row:"row___HJKId",btns:"btns___m0Vc7",sort:"sort___qMLQP"},ni=z(246),bo=z.n(ni),Qo=z(14375),di=z(28575),ku=z(67294),Mo=Object.defineProperty,Jr=Object.defineProperties,Fo=Object.getOwnPropertyDescriptors,mi=Object.getOwnPropertySymbols,Hi=Object.prototype.hasOwnProperty,$i=Object.prototype.propertyIsEnumerable,gi=(ce,se,ae)=>se in ce?Mo(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,Lo=(ce,se)=>{for(var ae in se||(se={}))Hi.call(se,ae)&&gi(ce,ae,se[ae]);if(mi)for(var ae of mi(se))$i.call(se,ae)&&gi(ce,ae,se[ae]);return ce},_o=(ce,se)=>Jr(ce,Fo(se)),Wi=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const zs=({exercise:ce,loading:se,dispatch:ae,cb:_e})=>{const pt=_o(Lo({},(0,he.useParams)()),{page:0,limit:50,one:null,two:null,save_one:null,save_two:null,sort:null,course_group:"",student_id:"",realname:"",save_course_group:"",save_student_id:"",save_realname:"",commit_types:[0],course_group_ids:[]});let[Ve,Dt]=(0,a.useState)(Lo({},pt)),[et,Be]=(0,a.useState)([]);const[Pe,Ht]=(0,a.useState)(!0),[vn,hn]=(0,a.useState)(!0),[xt,Gt]=(0,a.useState)(0),[Bn,Dn]=(0,a.useState)(!1),[Fn,Wt]=(0,a.useState)([]),[Ut,Yt]=(0,a.useState)([]),[ea,nn]=(0,a.useState)([]),[zn]=fe.default.useForm(),[mn,pa]=(0,a.useState)("");(0,a.useEffect)(()=>{ce.actionTabs.key==="\u6253\u56DE\u91CD\u505A"&&(et=[],Pt(),Nt(1))},[ce.actionTabs.key,Ve.commit_types]);const Pt=()=>Wi(void 0,null,function*(){var Fa,ia;const wu=yield(0,Ce.ZP)(`/api/exercises/${Ve.categoryId}/header_info.json`,{method:"get"});(wu==null?void 0:wu.status)===0&&(nn([...(Fa=wu==null?void 0:wu.data)==null?void 0:Fa.course_groups]),Yt([...(ia=wu==null?void 0:wu.data)==null?void 0:ia.course_groups]))}),Nt=Fa=>Wi(void 0,null,function*(){var ia;Fa==1&&(et=[]),Ht(!0),Ve.page=Fa,hn(!0);const wu=yield ae({type:"exercise/getRedoModal",payload:_o(Lo({},Ve),{commit_types:Ve.commit_types.includes(0)?[]:Ve.commit_types,score:((Ve==null?void 0:Ve.one)||0)+`${Ve!=null&&Ve.two?","+(Ve==null?void 0:Ve.two):""}`})});((ia=wu==null?void 0:wu.exercise_users)==null?void 0:ia.length){if(Fa.target.checked){const ia=et==null?void 0:et.map(wu=>wu.user_id);Wt(ia)}else Wt([])},Xt=Fa=>{Ve.course_group=Ve.save_course_group,Ve.student_id=Ve.save_student_id,Ve.realname=Ve.save_realname,Dt(Lo({},Ve)),Be([]),Nt(1)},cn=()=>{Ve.one=Ve.save_one,Ve.two=Ve.save_two,Gt(xt+1),Dt(Lo({},Ve)),Be([]),Nt(1)},tn=()=>{(Ve==null?void 0:Ve.sort)===null?Ve.sort="asc":(Ve==null?void 0:Ve.sort)==="asc"?Ve.sort="desc":(Ve==null?void 0:Ve.sort)==="desc"&&(Ve.sort=null),Dt(Lo({},Ve)),Be([]),Nt(1)},Ja=()=>{let Fa=!1;const ia=()=>Wi(void 0,null,function*(){(yield(0,ne.q6)(_o(Lo({},Ve),{is_reset:Fa,user_ids:Fn}))).status===0&&(pe.ZP.success("\u64CD\u4F5C\u6210\u529F"),_e&&_e(),ae({type:"exercise/setActionTabs",payload:{}})),ae({type:"exercise/getCommonHeader",payload:Lo({},Ve)})});Fe.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ku.createElement("div",{style:{margin:"13px 0 0px 0"}},ku.createElement("p",null,"\u786E\u5B9A\u5C06\u9009\u4E2D\u7684\u5B66\u751F\u6253\u56DE\u91CD\u505A\u5417\uFF1F"),ku.createElement(Se.default,{onChange:wu=>{Fa=wu.target.checked}},"\u6E05\u7A7A\u5B66\u751F\u7684\u7B54\u9898\u8BB0\u5F55")),onOk:ia})},ha=Fa=>{const ia=parseInt(Fa);return isNaN(ia)?"":ia},dt=(Fa,ia)=>Fa===0?ku.createElement("span",{style:{color:"#666666"}},"\u672A\u5F00\u59CB"):Fa===1?ku.createElement("span",{style:{color:"#DF3042"}},!ia.is_make_up&&"\u8003\u8BD5\u4E2D",ia.is_make_up&&"\u8003\u8BD5\u4E2D (\u8865\u8003)"):Fa===2?ku.createElement("span",{style:{color:"#5AB891"}},!ia.is_make_up&&!ia.is_force_commit&&"\u5DF2\u4EA4\u5377",ia.is_make_up&&!ia.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003)",ia.is_make_up&&ia.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003/\u5F3A\u5236)",!ia.is_make_up&&ia.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u5F3A\u5236)"):ku.createElement("span",{style:{color:"#5AB891"}},!ia.is_make_up&&!ia.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54",ia.is_make_up&&!ia.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003)",ia.is_make_up&&ia.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003/\u5F3A\u5236)",!ia.is_make_up&&ia.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u5F3A\u5236)");return ku.createElement(Fe.default,{centered:!0,title:"\u6253\u56DE\u91CD\u505A",open:ce.actionTabs.key==="\u6253\u56DE\u91CD\u505A",width:1e3,bodyStyle:{minHeight:200},confirmLoading:Bn,afterClose:()=>{Dt(Lo({},pt)),Wt([]),Be([]),pa(""),Yt([]),nn([]),zn.resetFields()},onOk:Ja,onCancel:()=>{ae({type:"exercise/setActionTabs",payload:{}})}},ku.createElement(oe.Z,{align:"middle",gutter:20},ku.createElement(ve.Z,null,ku.createElement("span",null,"\u63D0\u4EA4\u72B6\u6001")),ku.createElement(ve.Z,null,ku.createElement(Se.default,{className:"mr10",onChange:Fa=>{Dt(_o(Lo({},Ve),{commit_types:[0]}))},checked:Ve==null?void 0:Ve.commit_types.includes(0)},"\u5168\u90E8"),ku.createElement(Se.default.Group,{options:[{label:"\u5DF2\u4EA4\u5377",value:1},{label:"\u5DF2\u4EA4\u5377\uFF08\u5F3A\u5236\uFF09",value:2},{label:"\u5DF2\u4EA4\u5377/\u672A\u7B54",value:3},{label:"\u5DF2\u4EA4\u5377/\u672A\u7B54\uFF08\u5F3A\u5236\uFF09",value:4}],value:Ve.commit_types,onChange:Fa=>{Dt(_o(Lo({},Ve),{commit_types:Fa}))}}))),ku.createElement(oe.Z,{className:"mt20 mb20",align:"middle",justify:"space-between"},ku.createElement(ve.Z,null,ku.createElement(oe.Z,{align:"middle",gutter:20},ku.createElement(ve.Z,null,ku.createElement("span",null,"\u5206\u6570\u533A\u95F4")),ku.createElement(ve.Z,null,ku.createElement(Re.Z,{parser:ha,onChange:Fa=>{Dt(_o(Lo({},Ve),{save_one:Fa}))},value:Ve.save_one,min:0}),ku.createElement("span",{className:"mr10 ml10"},"-"),ku.createElement(Re.Z,{parser:ha,onChange:Fa=>{Dt(_o(Lo({},Ve),{save_two:Fa}))},value:Ve.save_two,min:0})),ku.createElement(ve.Z,null,ku.createElement(me.ZP,{onClick:()=>{Dt(_o(Lo({},Ve),{one:"",two:"",save_one:"",save_two:""}))}},"\u6E05\u7A7A")),ku.createElement(ve.Z,null,ku.createElement(me.ZP,{type:"primary",onClick:cn},"\u786E\u8BA4")))),ku.createElement(ve.Z,null,ku.createElement(oe.Z,{wrap:!1,align:"middle",gutter:20},ku.createElement(ve.Z,null,ku.createElement(Le.default.Search,{value:Ve.save_realname,style:{width:320},placeholder:"\u8BF7\u8F93\u5165\u5B66\u751F\u59D3\u540D/\u5B66\u53F7\u8FDB\u884C\u641C\u7D22",onChange:Fa=>{Ve.save_realname=Fa.target.value,Dt(Lo({},Ve))},onSearch:Xt})),ku.createElement(ve.Z,null,ku.createElement(E.Z,{dropdownRender:Fa=>ku.createElement("div",{className:"bg-white",style:{maxWidth:200,border:"1px solid #f7f7f7"}},ku.createElement(fe.default,{form:zn,initialValues:{course_group_ids:[]},onValuesChange:ia=>{Dt(Lo(Lo({},Ve),ia))},onFinish:()=>{Nt(1)}},ku.createElement("div",{style:{maxHeight:500,overflow:"auto",padding:"10px"}},ku.createElement(Le.default,{allowClear:!0,suffix:ku.createElement("i",{className:`iconfont icon-sousuo9 font14 ${xl.searchIcon}`}),className:xl.search,placeholder:"\u73ED\u7EA7\u540D\u79F0\u68C0\u7D22",size:"middle",value:mn,onChange:ia=>Wi(void 0,null,function*(){var wu;pa((wu=ia==null?void 0:ia.target)==null?void 0:wu.value),nn([...Ut.filter(Sa=>{var Hn;return(Hn=Sa==null?void 0:Sa.exercise_group_name)==null?void 0:Hn.includes(ia.target.value)})])})}),ku.createElement(fe.default.Item,{name:"course_group_ids",valuePropName:"checked"},ku.createElement(Se.default.Group,null,ku.createElement(ze.Z,{direction:"vertical",size:10},ea==null?void 0:ea.map((ia,wu)=>ku.createElement(Se.default,{key:wu,value:ia==null?void 0:ia.exercise_group_id},ia==null?void 0:ia.exercise_group_name)))))),ku.createElement(oe.Z,{wrap:!1,align:"middle"},ku.createElement(ve.Z,null,ku.createElement(me.ZP,{type:"link",htmlType:"submit"},"\u786E\u8BA4")),ku.createElement(ve.Z,null,ku.createElement(me.ZP,{type:"link",htmlType:"reset",onClick:()=>{Dt(_o(Lo({},Ve),{course_group_ids:[]})),nn([...Ut]),pa("")}},"\u91CD\u7F6E")))))},ku.createElement("a",{onClick:Fa=>Fa.preventDefault()}," ",ku.createElement(ze.Z,null," \u5206\u73ED ",ku.createElement("i",{className:"iconfont icon-a-bianzu11 font12"})," "))))))),ku.createElement("div",{className:xl.head,style:(et==null?void 0:et.length)>5?{paddingRight:15}:{width:944}},ku.createElement("div",null,ku.createElement(Se.default,{className:"font14",checked:et!=null&&et.length?(Fn==null?void 0:Fn.length)===(et==null?void 0:et.length):!1,onChange:Rt},"\u59D3\u540D")),ku.createElement("div",null,ku.createElement("span",null,"\u5B66\u53F7")),ku.createElement("div",null,ku.createElement("span",null,"\u5206\u73ED")),ku.createElement("div",null,ku.createElement("span",null,"\u63D0\u4EA4\u72B6\u6001")),ku.createElement("div",{className:xl.sort,onClick:tn},ku.createElement("span",null,"\u6210\u7EE9\u5206\u6570"),ku.createElement("aside",null,ku.createElement(di.Z,{style:{color:(Ve==null?void 0:Ve.sort)==="asc"?"#0152d9":"#bfbfbf"}}),ku.createElement(te.Z,{style:{color:(Ve==null?void 0:Ve.sort)==="desc"?"#0152d9":"#bfbfbf"}})))),ku.createElement("div",{style:{height:260,overflow:"auto"}},ku.createElement(bo(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:()=>{!vn&&Pe&&Nt((Ve==null?void 0:Ve.page)+1)},hasMore:!vn&&Pe,useWindow:!1},ku.createElement(Se.default.Group,{style:{width:"100%"},value:Fn,onChange:Fa=>{console.log(Fa,444),Wt(Fa)}},et==null?void 0:et.map(function(Fa,ia){return ku.createElement("div",{key:Fa.user_id,className:xl.row},ku.createElement("div",null,ku.createElement(Se.default,{className:"font14",value:Fa.user_id},Fa.user_name)),ku.createElement("div",null,Fa.student_id),ku.createElement("div",null,Fa.course_group_name),ku.createElement("div",null,dt(Fa.commit_status,Fa)),ku.createElement("div",{className:"pl10"},ku.createElement("span",null,Fa.user_score)))})),ku.createElement(jt.Z,{className:"edu-ant-spin",spinning:vn}))),ku.createElement("div",{className:xl.title},ku.createElement("img",{style:{objectFit:"contain"},src:Qo.Z}),"\u6253\u56DE\u4E4B\u540E\u5B66\u751F\u5C06\u5F97\u5230\u4E00\u6B21\u91CD\u65B0\u7B54\u9898\u7684\u673A\u4F1A\u3002"))};var us=(0,he.connect)(({exercise:ce,loading:se})=>({exercise:ce,loading:se}))(zs),Il={flex_box_center:"flex_box_center___PohMo",flex_space_between:"flex_space_between___ZyAuO",flex_box_vertical_center:"flex_box_vertical_center___eh0B6",flex_box_center_end:"flex_box_center_end___O1yBK",flex_box_column:"flex_box_column___rCOUW",customModal:"customModal___gYgfZ",checking:"checking___70GE9",content:"content___FtAfN",group:"group___kIfCW",footer:"footer___A6aEg",scoremodal:"scoremodal___FKFBU",selectWrapper:"selectWrapper___J8t1k",allqingchu:"allqingchu___UjfNm",title:"title___tB39D",search:"search___Pnsp3",searchIcon:"searchIcon___mVW2x"},Pr=z(67294),Hl=Object.defineProperty,yl=Object.getOwnPropertySymbols,el=Object.prototype.hasOwnProperty,Ll=Object.prototype.propertyIsEnumerable,ie=(ce,se,ae)=>se in ce?Hl(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,we=(ce,se)=>{for(var ae in se||(se={}))el.call(se,ae)&&ie(ce,ae,se[ae]);if(yl)for(var ae of yl(se))Ll.call(se,ae)&&ie(ce,ae,se[ae]);return ce},Oe=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Qe=({exercise:ce,dispatch:se,onOk:ae})=>{const _e=(0,he.useParams)(),[pt,Ve]=(0,a.useState)([]),[Dt,et]=(0,a.useState)(),[Be,Pe]=(0,a.useState)([]),[Ht,vn]=(0,a.useState)(!0),[hn,xt]=(0,a.useState)(!1),[Gt]=fe.default.useForm(),[Bn,Dn]=(0,a.useState)({page:1,limit:10,is_random:"",exercise_status:""}),Fn=[{title:"\u5E8F\u53F7",dataIndex:"id",key:"id",render:(nn,zn,mn)=>Bn.limit*(Bn.page-1)+mn+1},{title:"\u8865\u8003\u8BD5\u5377",dataIndex:"exercise_name",key:"id",width:200,render:(nn,zn,mn)=>Pr.createElement("span",null,nn||"- -")},{title:"\u7C7B\u578B",dataIndex:"is_random",key:"is_random",render:(nn,zn,mn)=>Pr.createElement("span",null,nn?"\u968F\u673A\u7EC4\u5377":"\u4EBA\u5DE5\u7EC4\u5377")},{title:"\u8BD5\u9898\u6570",dataIndex:"question_count",key:"question_count",render:(nn,zn,mn)=>Pr.createElement("span",null,nn||"- -")},{title:"\u603B\u5206",dataIndex:"total_score",key:"total_score",render:(nn,zn,mn)=>Pr.createElement("span",null,nn||"- -")},{title:"\u8865\u8003\u4EBA\u6570",dataIndex:"exercise_user_count",key:"exercise_user_count",render:(nn,zn,mn)=>Pr.createElement("span",null,nn||"- -")},{title:"\u8003\u8BD5\u72B6\u6001",dataIndex:"exercise_status",key:"exercise_status",render:(nn,zn,mn)=>Pr.createElement("span",null,nn===1?"\u672A\u5F00\u59CB":nn===2?"\u8003\u8BD5\u4E2D":"\u5DF2\u622A\u6B62")},{title:"\u64CD\u4F5C",dataIndex:"id",key:"id",width:80,align:"right",render:(nn,zn,mn)=>Pr.createElement("div",{style:{flex:1,textAlign:"right"}},Pr.createElement("a",{onClick:()=>{(0,de.xg)(`/classrooms/${_e.coursesId}/exercise/${zn.id}/detail?random=${zn.is_random}`)}},"\u67E5\u770B"))}].filter(nn=>!!nn);(0,a.useEffect)(()=>{ce.actionTabs.key==="\u8865\u8003\u8BB0\u5F55"&&Wt(Bn)},[ce.actionTabs.key]);const Wt=nn=>Oe(void 0,null,function*(){var zn,mn;vn(!0);const pa=yield(0,Ce.ZP)(`/api/exercises/${_e==null?void 0:_e.categoryId}/make_up_records.json`,{method:"get",params:we({},nn)});pa&&(Ve(((zn=pa==null?void 0:pa.data)==null?void 0:zn.make_up_exercises)||[]),et((mn=pa==null?void 0:pa.data)==null?void 0:mn.count)),vn(!1)}),Ut=()=>{se({type:"exercise/setActionTabs",payload:{}})},Yt=()=>{ae(Be)},ea=nn=>{Pe(nn),xt(nn.length===pt.length)};return Pr.createElement(Fe.default,{centered:!0,afterClose:()=>{Pe([]),xt(!1),Gt.resetFields(),Dn({page:1,limit:10,is_random:"",exercise_status:""})},title:"\u8865\u8003\u8BB0\u5F55",className:Il.scoremodal,open:ce.actionTabs.key==="\u8865\u8003\u8BB0\u5F55",width:1e3,onOk:()=>se({type:"exercise/setActionTabs",payload:{}}),onCancel:Ut},Pr.createElement(fe.default,{layout:"inline",form:Gt,onValuesChange:(nn,zn)=>{console.log(nn),!(nn.keywords||nn.keywords==="")&&Gt.submit()},onFinish:nn=>{console.log(nn),Dn(we(we({},Bn),nn)),Wt(we(we({},Bn),nn))},initialValues:{is_random:"",exercise_status:""}},Pr.createElement(fe.default.Item,{name:"is_random"},Pr.createElement(ft.default,{className:Il.selectWrapper,placeholder:"\u5168\u90E8\u7C7B\u578B",style:{width:160},size:"middle"},Pr.createElement(ft.default.Option,{value:""},"\u5168\u90E8\u7C7B\u578B"),Pr.createElement(ft.default.Option,{value:0},"\u4EBA\u5DE5\u7EC4\u5377"),Pr.createElement(ft.default.Option,{value:1},"\u968F\u673A\u7EC4\u5377"))),Pr.createElement(fe.default.Item,{name:"exercise_status"},Pr.createElement(ft.default,{className:Il.selectWrapper,placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:160},size:"middle"},Pr.createElement(ft.default.Option,{value:""},"\u5168\u90E8\u72B6\u6001"),Pr.createElement(ft.default.Option,{value:1},"\u672A\u5F00\u59CB"),Pr.createElement(ft.default.Option,{value:2},"\u8003\u8BD5\u4E2D"),Pr.createElement(ft.default.Option,{value:3},"\u5DF2\u622A\u6B62"))),Pr.createElement(fe.default.Item,{style:{flex:"0 0 auto",marginRight:0,marginLeft:"auto"},name:"keywords"},Pr.createElement(Le.default.Search,{className:Il.search,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0\u8FDB\u884C\u641C\u7D22",allowClear:!0,suffix:Pr.createElement("i",{className:`iconfont icon-sousuo9 font14 ${Il.searchIcon}`,onClick:()=>Gt.submit()}),onSearch:nn=>{Gt.submit()}}))),Pr.createElement(x.default,{style:{marginTop:20,marginBottom:15},scroll:{y:260},dataSource:pt,pagination:!1,loading:Ht,columns:Fn}),(pt==null?void 0:pt.length)>0&&Pr.createElement(He.Z,{current:Bn.page,total:Dt,style:{marginBottom:20},defaultPageSize:Bn.limit,showTotal:nn=>Pr.createElement("span",null,"\u5171\xA0",Pr.createElement("span",{style:{color:"#165DFF"}},nn),"\xA0\u6761\u6570\u636E"),pageSize:Bn.limit,onChange:(nn,zn)=>{Bn.page=nn,Bn.limit=zn,Dn(we({},Bn)),Wt(we({},Bn))}}))};var mt=(0,he.connect)(({exercise:ce})=>({exercise:ce}))(Qe),It={info:"info___FCajO",info_name:"info_name___nVPNy",info_studeng_id:"info_studeng_id___afKvd",info_group:"info_group___xadCu"},$t="data:image/jpeg;base64,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",dn=Object.defineProperty,ta=Object.defineProperties,aa=Object.getOwnPropertyDescriptors,wn=Object.getOwnPropertySymbols,ja=Object.prototype.hasOwnProperty,$a=Object.prototype.propertyIsEnumerable,Ra=(ce,se,ae)=>se in ce?dn(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,wa=(ce,se)=>{for(var ae in se||(se={}))ja.call(se,ae)&&Ra(ce,ae,se[ae]);if(wn)for(var ae of wn(se))$a.call(se,ae)&&Ra(ce,ae,se[ae]);return ce},eu=(ce,se)=>ta(ce,aa(se)),za=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const _a=({exercise:ce,loading:se,dispatch:ae,cb:_e})=>{const pt=eu(wa({},(0,he.useParams)()),{page:0,limit:20});let[Ve,Dt]=(0,a.useState)(wa({},pt)),[et,Be]=(0,a.useState)([]),[Pe,Ht]=(0,a.useState)({});const[vn,hn]=(0,a.useState)(!0),[xt,Gt]=(0,a.useState)(!0);(0,a.useEffect)(()=>{ce.actionTabs.key==="\u6253\u56DE\u8BB0\u5F55"&&(et=[],Dn(1))},[ce.actionTabs.key]);const Bn=[{title:"\u6253\u56DE\u6B21\u6570",ellipsis:!0,dataIndex:"index",align:"center",render:(Fn,Wt,Ut)=>a.createElement(Ae.Z,{placement:"bottom",title:Ut+1},a.createElement("span",null,Ut+1))},{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"submission_time",ellipsis:!0,align:"center",render:Fn=>a.createElement(Ae.Z,{placement:"bottom",title:Ge()(Fn).format("YYYY-MM-DD HH:mm")},a.createElement("span",null,Ge()(Fn).format("YYYY-MM-DD HH:mm")))},{title:"\u6253\u56DE\u65F6\u95F4",dataIndex:"created_at",align:"center",render:Fn=>a.createElement(Ae.Z,{placement:"bottom",title:Ge()(Fn).format("YYYY-MM-DD HH:mm")},a.createElement("span",null,Ge()(Fn).format("YYYY-MM-DD HH:mm")))},{title:"\u8003\u8BD5\u5F97\u5206",dataIndex:"score",ellipsis:!0,align:"center",render:Fn=>a.createElement(Ae.Z,{placement:"bottom",title:Fn},a.createElement("span",null,Fn||"--"))},{title:"\u64CD\u4F5C\u4EBA",dataIndex:"option_user_name",ellipsis:!0,align:"center",render:Fn=>a.createElement(Ae.Z,{placement:"bottom",title:Fn},a.createElement("span",null,Fn||"--"))}],Dn=Fn=>za(void 0,null,function*(){var Wt;Fn==1&&(et=[]),hn(!0),Ve.page=Fn,Ve.student_id=ce.actionTabs.student_id,Gt(!0);const Ut=yield ae({type:"exercise/getRedoListModal",payload:eu(wa({},Ve),{score:((Ve==null?void 0:Ve.one)||0)+`${Ve!=null&&Ve.two?","+(Ve==null?void 0:Ve.two):""}`})});Ht(wa({},Ut)),((Wt=Ut==null?void 0:Ut.student_redo_lists)==null?void 0:Wt.length){Dt(wa({},pt)),Be([])},onCancel:()=>{ae({type:"exercise/setActionTabs",payload:{}})}},a.createElement("div",{className:It.info},a.createElement("div",{className:It.info_name},"\u59D3\u540D\uFF1A",(Pe==null?void 0:Pe.name)||"--"),a.createElement("div",{className:It.info_studeng_id},"\u5B66\u53F7\uFF1A",(Pe==null?void 0:Pe.student_id)||"--"),a.createElement("div",{className:It.info_group},"\u5206\u73ED\uFF1A",(Pe==null?void 0:Pe.course_group_name)||"--")),(et==null?void 0:et.length)===0&&!xt&&a.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},a.createElement("img",{src:$t,width:"100",alt:""}),a.createElement("br",null),a.createElement("p",{className:"mt20"},"\u8BE5\u5B66\u751F\u65E0\u6253\u56DE\u8BB0\u5F55!")),((et==null?void 0:et.length)>0||xt)&&a.createElement("section",null,a.createElement("div",{className:"flexd-table-header mt20"},a.createElement(x.default,{pagination:!1,dataSource:[],columns:Bn})),a.createElement("div",{style:{maxHeight:170,overflow:"auto"}},a.createElement(bo(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:()=>{!xt&&vn&&Dn((Ve==null?void 0:Ve.page)+1)},hasMore:vn,useWindow:!1},a.createElement(x.default,{loading:xt,showHeader:!1,pagination:!1,rowKey:"submission_time",dataSource:et,columns:Bn})))))};var Iu=(0,he.connect)(({exercise:ce,loading:se})=>({exercise:ce,loading:se}))(_a),Lu=z(28400),ru=z(72911),Ku={flex_box_center:"flex_box_center___WY2F6",flex_space_between:"flex_space_between___iUTlt",flex_box_vertical_center:"flex_box_vertical_center___mDkSS",flex_box_center_end:"flex_box_center_end___Wn6Ih",flex_box_column:"flex_box_column___fErgP",customModal:"customModal___WBifT",checking:"checking___THUYH",content:"content___OYuOv",group:"group___mn5IG",footer:"footer___yBjyD"},Fu=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Ou=({exercise:ce,dispatch:se,onOk:ae})=>{const _e=(0,he.useParams)(),[pt,Ve]=(0,a.useState)([]),[Dt,et]=(0,a.useState)([]),[Be,Pe]=(0,a.useState)(!0),[Ht,vn]=(0,a.useState)(!1);(0,a.useEffect)(()=>{ce.actionTabs.key==="\u4EE3\u7801\u67E5\u91CD"&&hn()},[ce.actionTabs.key]);const hn=()=>Fu(void 0,null,function*(){Pe(!0);const Dn=yield(0,Ce.ZP)(`/api/courses/${_e==null?void 0:_e.coursesId}/exercises/exercise_course_groups.json`,{method:"get",params:{id:_e==null?void 0:_e.categoryId}});Dn&&Ve((Dn==null?void 0:Dn.course_groups)||[]),Pe(!1)}),xt=()=>{se({type:"exercise/setActionTabs",payload:{}})},Gt=()=>{ae(Dt)},Bn=Dn=>{et(Dn),vn(Dn.length===pt.length)};return a.createElement(Fe.default,{centered:!0,afterClose:()=>{et([]),vn(!1)},title:"\u4EE3\u7801\u67E5\u91CD",open:ce.actionTabs.key==="\u4EE3\u7801\u67E5\u91CD",footer:null,width:718,wrapClassName:Ku.customModal,onCancel:xt},a.createElement("aside",{className:Ku.checking},a.createElement("div",{className:Ku.content},a.createElement("div",{className:Ku.group},pt.length>0?a.createElement("p",null,"\u9009\u62E9\u73ED\u7EA7\uFF1A"):a.createElement("p",null,"\u6682\u65E0\u5206\u73ED"),a.createElement(Se.default.Group,{value:Dt,onChange:Bn},pt.map(Dn=>a.createElement(Se.default,{key:Dn.id,value:Dn.id},Dn.name))))),a.createElement("div",{className:Ku.footer},a.createElement(Se.default,{checked:Ht,onChange:Dn=>{const Fn=Dn.target.checked?pt.map(Wt=>Wt.id):[];et(Fn),vn(Dn.target.checked)}},"\u5168\u9009"),a.createElement(me.ZP,{onClick:xt},"\u53D6\u6D88"),a.createElement(me.ZP,{onClick:Gt,type:"primary"},"\u786E\u8BA4"))))};var xr=(0,he.connect)(({exercise:ce})=>({exercise:ce}))(Ou),Nr=z(77722),pu={flex_box_center:"flex_box_center___Onpg9",flex_space_between:"flex_space_between___nYRpC",flex_box_vertical_center:"flex_box_vertical_center___NGA7H",flex_box_center_end:"flex_box_center_end___a2dUm",flex_box_column:"flex_box_column___c5CN2",formDom:"formDom___ahHwX",form:"form___TDc55",fjpy:"fjpy___dshUa",tips:"tips___sHetw",buttonFixed:"buttonFixed___oKPiL",buttonWrap:"buttonWrap___LDtpG",button:"button___ydPRd",scoreSettingWrapper:"scoreSettingWrapper___L7weV",ipItem:"ipItem___nAf_u",ipWrp:"ipWrp___x3LTQ",tagWrap:"tagWrap___PMN4b",tag:"tag___Auf1J",padding:"padding___veqnd",unlockKeyWrapper:"unlockKeyWrapper___UOERJ",unlockKeyInput:"unlockKeyInput___ItI9I",mb40:"mb40___eMjps",mb28:"mb28___ZxJPY",mainRuleText:"mainRuleText___U5cJS",minorRuleText:"minorRuleText___aZezx",contentInterval:"contentInterval___slPV9",CompetitionsListzhezhao:"CompetitionsListzhezhao___bTlUp",numberInput:"numberInput____ONIt",publishRuleIndex:"publishRuleIndex___s2cVA",publishRuleContent:"publishRuleContent___HohmS",groupSelector:"groupSelector___Zxqsw",addAndDelete:"addAndDelete___saTVM",deleteIcon:"deleteIcon___vnkck",addIcon:"addIcon___Yz7Ef",cancelBtn:"cancelBtn___p8Klw",submitBtn:"submitBtn___pmm2G",remindForm:"remindForm___K6X21",remindItem:"remindItem___Z7rRb",remindInput:"remindInput___r_wq3",addRemind:"addRemind___jbnIp",disabled:"disabled___ebijK",removeStyle:"removeStyle___ObL0w",new_title:"new_title___Te4vd",multiple_select:"multiple_select___K8cHJ",title_icon:"title_icon___s6qSK",title:"title___N_aja"},pr=z(67294),il=Object.defineProperty,ur=Object.defineProperties,Au=Object.getOwnPropertyDescriptors,Vu=Object.getOwnPropertySymbols,Ju=Object.prototype.hasOwnProperty,qr=Object.prototype.propertyIsEnumerable,Nl=(ce,se,ae)=>se in ce?il(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,qu=(ce,se)=>{for(var ae in se||(se={}))Ju.call(se,ae)&&Nl(ce,ae,se[ae]);if(Vu)for(var ae of Vu(se))qr.call(se,ae)&&Nl(ce,ae,se[ae]);return ce},fr=(ce,se)=>ur(ce,Au(se)),fu=({disabled:ce,time:se})=>pr.createElement(fe.default.List,{name:"exercise_events",rules:[{validator(ae,_e){var pt,Ve;const Dt=new Set;for(const et of _e){if(Dt.has(et.reminder_time))return Promise.reject(new Error("\u7B54\u9898\u63D0\u9192\u65F6\u95F4\u4E0D\u5141\u8BB8\u91CD\u590D\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E"));if(et.reminder_time>se)return Promise.reject(new Error("\u7B54\u9898\u63D0\u9192\u65F6\u95F4\u4E0D\u80FD\u5927\u4E8E\u7B54\u9898\u65F6\u957F"));if(Dt.add(et.reminder_time),!((Ve=(pt=et.reminder_content)==null?void 0:pt.trim())!=null&&Ve.length))return Promise.reject(new Error("\u63D0\u9192\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(ae,{add:_e,remove:pt})=>pr.createElement("div",{className:pu.remindForm},ae.length>0&&pr.createElement("div",null,ae.map((Ve,Dt)=>pr.createElement(oe.Z,{key:Ve.key,align:"middle",wrap:!1,className:pu.remindItem},pr.createElement("span",{className:"mr10",style:{marginLeft:"32px"}},Dt+1,".\u7B54\u9898\u7ED3\u675F\u524D"),pr.createElement(ve.Z,null,pr.createElement(fe.default.Item,fr(qu({},Ve),{name:[Ve.name,"reminder_time"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63D0\u9192\u65F6\u95F4"}],noStyle:!0}),pr.createElement(Re.Z,{precision:0,min:1,disabled:ce,addonAfter:"\u5206\u949F",className:pu.remindInput}))),pr.createElement("span",{className:"mr10 ml10"},"\u8FDB\u884C\u63D0\u9192\uFF0C\u63D0\u9192\u5185\u5BB9\u4E3A"),pr.createElement(ve.Z,{flex:1},pr.createElement(fe.default.Item,fr(qu({},Ve),{name:[Ve.name,"reminder_content"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63D0\u9192\u5185\u5BB9"}],noStyle:!0}),pr.createElement(Le.default,{className:pu.remindInput,disabled:ce,showCount:!0,maxLength:100}))),pr.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187",opacity:ce?.5:1},onClick:()=>{ce||_e({reminder_time:""})}}),pr.createElement("i",{className:"iconfont icon-shanjian1",style:{color:"#E30000",cursor:"pointer",fontSize:16,visibility:ce?"hidden":"visible"},onClick:()=>pt(Ve.name)})))),ae.length<5&&pr.createElement(oe.Z,{style:{marginLeft:"30px"}},pr.createElement(ve.Z,{className:`${pu.addRemind} ${ce?pu.disabled:""}`,onClick:()=>{ce||_e({reminder_time:""})}},pr.createElement("i",{className:"iconfont icon-tianjiashitixiaojiahao mr5 font14"}),"\u6DFB\u52A0\u7B54\u9898\u63D0\u9192")))),rr=z(76223),lr=z(78207),eo=z(96332),to=z(93686),ou=z(67294),jl=Object.defineProperty,Vl=Object.defineProperties,wo=Object.getOwnPropertyDescriptors,Ro=Object.getOwnPropertySymbols,No=Object.prototype.hasOwnProperty,ii=Object.prototype.propertyIsEnumerable,po=(ce,se,ae)=>se in ce?jl(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,So=(ce,se)=>{for(var ae in se||(se={}))No.call(se,ae)&&po(ce,ae,se[ae]);if(Ro)for(var ae of Ro(se))ii.call(se,ae)&&po(ce,ae,se[ae]);return ce},mo=(ce,se)=>Vl(ce,wo(se)),ki=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const{RangePicker:Ao}=Aa.default,{Option:Vi}=ft.default,Xi=({user:ce,classroomList:se,exercise:ae,globalSetting:_e,loading:pt,dispatch:Ve,changeActive:Dt})=>{var et,Be,Pe,Ht,vn,hn,xt,Gt,Bn,Dn,Fn;const{workSetting:Wt,commonHeader:Ut}=ae,Yt=(0,he.useParams)();Yt.category=Yt.categoryId;const[ea,nn]=(0,a.useState)(!1),[zn,mn]=(0,a.useState)(!1),[pa,Pt]=(0,a.useState)(),[Nt,Rt]=(0,a.useState)({});let[Xt,cn]=(0,a.useState)([]),[tn,Ja]=(0,a.useState)({unified_setting:!1,publish_time:"",end_time:"",group_settings:[],time:-1,enable_last_times:!1,last_times:1,open_make_up:!1,unified_make_up:!1,make_up_score:0,group_make_ups:[],miss_exam_count:0,no_passing_count:0,is_make_up_exercise:!1,exercise_status:1,is_appoint_user:!1,is_no_passing_user:!1,is_miss_exam_user:!1,enable_answer_time:!1,answer_time:"",exercise_type:1,simulate_exercise_num:3});const[ha,dt]=(0,a.useState)(1),[Fa,ia]=(0,a.useState)(!1),[wu,Sa]=(0,a.useState)(!1),[Hn,Oa]=(0,a.useState)(!1),[tu,Ka]=(0,a.useState)(!1),[Ba,La]=(0,a.useState)([]),[Zn,bn]=(0,a.useState)([]),[ca,Qn]=(0,a.useState)(!1),[pn,Tn]=(0,a.useState)(null),[En,da]=(0,a.useState)({});(0,a.useEffect)(()=>{((Ut==null?void 0:Ut.exercise_status)==="5"||Ut!=null&&Ut.appraise_label||(0,On.aQ)())&&nn(!0)},[Ut]),(0,a.useEffect)(()=>{Ya()},[Wt]),(0,a.useEffect)(()=>{(0,On.dE)()||Ha()},[]),(0,a.useEffect)(()=>{ae.actionTabs.key=="\u8C03\u6574tabs\u9009\u4E2D"&&Dt("2")},[ae.actionTabs.key]);function Ha(){return ki(this,null,function*(){const Eu=yield(0,Ce.ZP)(`/api/courses/${Yt==null?void 0:Yt.coursesId}/exercises/overload_alert.json`,{method:"get",params:{course_id:Yt==null?void 0:Yt.coursesId}});Pt(Eu==null?void 0:Eu.alert)})}const au=Eu=>{var wr;const Va=tn.publish_time;if(!Va||(wr=Wt==null?void 0:Wt.exercise)!=null&&wr.publish_time)return;let Nu;Eu===1?Nu=Ge()(Va).add(120,"minutes"):Nu=Ge()(Va).add(7,"days"),tn.end_time=Nu,Ja(Object.assign({},tn))},Ya=()=>{var Eu,wr,Va,Nu,oo;console.log("\u53D6\u6D88");const Su=JSON.parse(JSON.stringify(Wt));if(Object.keys(tn).forEach(Pu=>{var ci;tn[Pu]=(ci=Su==null?void 0:Su.exercise)==null?void 0:ci[Pu]}),Xt=((Eu=Su==null?void 0:Su.published_course_groups)==null?void 0:Eu.map(Pu=>({course_group_id:Pu.course_group_id,end_time:Pu.course_end_time,publish_time:Pu.course_publish_time})))||[{}],(wr=Wt==null?void 0:Wt.course_groups)==null||wr.map(Pu=>{var ci;(ci=Wt==null?void 0:Wt.published_course_groups)==null||ci.map((Ho,ji)=>{var fc;(fc=Ho==null?void 0:Ho.course_group_id)!=null&&fc.includes(Pu==null?void 0:Pu.course_group_id)&&(Pu.cilckkey=ji,Pu.isselect=!0)})}),ae.actionTabs.key!=="\u6279\u91CF\u53D1\u5E03"&&Tl(""),ia(tn.time!==-1),Ja(tn),tn!=null&&tn.is_appoint_user){const Pu=((Nu=(Va=Su==null?void 0:Su.exercise)==null?void 0:Va.all_exercise_users)==null?void 0:Nu.map(ci=>ci.user_id))||[];La([...Pu])}Sa(tn.is_appoint_user),Oa(tn.is_miss_exam_user),Ka(tn.is_no_passing_user),cn(Xt.length>0?Xt:[{}]),jr.setFieldsValue({exercise_events:(oo=Su==null?void 0:Su.exercise)==null?void 0:oo.exercise_events})},Cr=()=>ki(void 0,null,function*(){var Eu,wr,Va,Nu,oo,Su;if(((Eu=ce==null?void 0:ce.userInfo)==null?void 0:Eu.user_status)===2){(0,lr.Rd)();return}if((Ut==null?void 0:Ut.exercise_question_count)===0){pe.ZP.warning("\u8BD5\u5377\u5185\u6CA1\u6709\u8BD5\u9898\u4E0D\u5141\u8BB8\u53D1\u5E03\u8003\u8BD5");return}const Pu=JSON.parse(JSON.stringify(tn));console.log("\u63D0\u4EA4");try{yield jr.validateFields();const ji=jr.getFieldsValue();Pu.exercise_events=ji.exercise_events}catch(ji){ji!=null&&ji.errorFields&&(jr.scrollToField((Va=(wr=ji==null?void 0:ji.errorFields)==null?void 0:wr[0])==null?void 0:Va.name,{behavior:"smooth",block:"center"}),pe.ZP.error((Su=(oo=(Nu=ji==null?void 0:ji.errorFields)==null?void 0:Nu[0])==null?void 0:oo.errors)==null?void 0:Su[0]));return}if(Pu.categoryId=Yt.categoryId,Pu.publish_time_groups=Xt,tn!=null&&tn.is_make_up_exercise){if(wu&&Ba.length<=0||!wu&&!(Hn||tu)){pe.ZP.error("\u8BF7\u9009\u62E9\u8865\u8003\u5B66\u751F");return}Pu.is_appoint_user=wu,Pu.is_miss_exam_user=Hn,Pu.is_no_passing_user=tu,wu?Pu.make_up_exercise_users=Ba==null?void 0:Ba.map(ji=>({user_id:ji})):Pu.make_up_exercise_users=[]}if(!tn.unified_setting&&!(tn!=null&&tn.is_make_up_exercise)){if(!Xt.length){pe.ZP.warning("\u63D0\u4EA4\u5931\u8D25\uFF1A\u5206\u73ED\u53D1\u5E03\u8BBE\u7F6E\u4E0D\u80FD\u4E3A\u7A7A");return}delete Pu.publish_time,delete Pu.end_time,Xt.map(ji=>{var fc;if(!ji.course_group_id||!((fc=ji.course_group_id)!=null&&fc.length))throw pe.ZP.error("\u5206\u73ED\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u5206\u73ED\u4E0D\u80FD\u4E3A\u7A7A");if(!ji.publish_time||!ji.end_time)throw pe.ZP.error("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A")})}else if(!tn.publish_time||!tn.end_time)throw pe.ZP.error("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A");let{exercise:ci}=Wt;const Ho=()=>ki(void 0,null,function*(){if(tn.exercise_type==2&&(ci.is_locked||ci.open_camera||ci.screen_open||ci.login_restrict||ci.ip_bind||ci.ip_limit=="pub"||ci.ip_limit=="inner"||ci.identity_verify||ci.open_phone_video_recording)){const fc=Fe.default.confirm({width:666,centered:!0,okText:"\u7ACB\u5373\u8C03\u6574",cancelText:"\u4E0D\u9700\u8981",title:"\u63D0\u793A",icon:null,content:ou.createElement("div",null,"\u5F53\u524D\u8003\u8BD5\u6A21\u5F0F\u4E3A\u201C\u6A21\u62DF\u8003\u8BD5\u201D\uFF0C\u60A8\u5DF2\u5F00\u542F",ou.createElement("span",{style:{color:"#FA6400"}}," ",(0,de.hi)(ci)," "),"\u9632\u4F5C\u5F0A\u89C4\u5219\uFF0C\u53EF\u80FD\u4F1A\u5F71\u54CD\u5B66\u751F\u8FDB\u884C\u91CD\u590D\u8003\u8BD5\u3002\u662F\u5426\u9700\u8981\u8FDB\u884C\u8C03\u6574\uFF1F"),onOk:()=>ki(void 0,null,function*(){let qa=yield(0,to.Tr)({exercise_ids:[parseInt(Yt==null?void 0:Yt.categoryId)],course_id:Yt.coursesId,type:"exercise"});(qa==null?void 0:qa.student_count)===0?Zu(Pu):(Rt(Pu),da(qa)),Dt("2")}),onCancel:()=>ki(void 0,null,function*(){fc.destroy();let qa=yield(0,to.Tr)({exercise_ids:[Yt==null?void 0:Yt.categoryId],course_id:Yt.coursesId,type:"exercise"});(qa==null?void 0:qa.student_count)===0?Zu(Pu):(Rt(Pu),da(qa))})});return}let ji=yield(0,to.Tr)({exercise_ids:[Yt==null?void 0:Yt.categoryId],course_id:Yt.coursesId,type:"exercise"});(ji==null?void 0:ji.student_count)===0?Zu(Pu):(Rt(Pu),da(ji))});Ut!=null&&Ut.high_resources_consume&&!(Ut!=null&&Ut.high_resources_consume_permission)?Ve({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:Yt.coursesId,type:"exercise",type_id:Yt.categoryId,name:Ut.exercise_name,fn:()=>{Ho()}}}):Ho()}),Zu=Eu=>ki(void 0,null,function*(){mn(!0),(yield(0,Ce.ZP)(`/api/exercises/${Yt==null?void 0:Yt.categoryId}/publish_settings.json`,{method:"post",body:Eu})).status===0&&(pe.ZP.success("\u4FDD\u5B58\u6210\u529F"),Tl(""),Ve({type:"exercise/getCommonHeader",payload:So({},Yt)}),Ve({type:"exercise/getWorkSetting",payload:So({},Yt)})),mn(!1)}),sa=Eu=>Eu&&Eutn.end_time?Eu&&(Eu{var wr,Va;return((wr=Wt==null?void 0:Wt.exercise)==null?void 0:wr.exercise_status)>1&&!(Eu!=null&&Eu.new)?!0:(Va=Wt==null?void 0:Wt.published_course_groups)!=null&&Va.some(Nu=>Nu.course_group_id===Eu.course_group_id)?ea:!1},gl=Eu=>{var wr;return ea?[!0,!0]:(wr=Wt==null?void 0:Wt.published_course_groups)!=null&&wr.some(Va=>{var Nu,oo;return((Nu=Va.course_group_id)==null?void 0:Nu[0])===((oo=Eu.course_group_id)==null?void 0:oo[0])})?ea||Ge()()>Ge()(Eu==null?void 0:Eu.publish_time)?[!0,!1]:[!1,!1]:[!1,!1]};(0,a.useEffect)(()=>{Tl("\u8868\u5355\u672A\u4FDD\u5B58")},[tn]);const Tl=(Eu="")=>{Ve({type:"exercise/setActionTabs",payload:{key:Eu}})},mu=Eu=>{Eu.preventDefault(),Eu.returnValue=""},$u=(Eu,wr,Va)=>{if(Eu<=0){pe.ZP.info("\u8BF7\u9009\u62E9\u8865\u8003\u5B66\u751F");return}else La(wr),bn(Va),Qn(!1)},[jr]=fe.default.useForm();return ou.createElement("section",{className:pu.form,style:{padding:"30px 50px",marginBottom:"0px"}},ou.createElement(jt.Z,{spinning:pt["exercise/getWorkSetting"]||zn},!(tn!=null&&tn.is_make_up_exercise)&&ou.createElement(ou.Fragment,null,ou.createElement("div",{className:pu.new_title,style:{marginTop:"0px"}},"\u8003\u8BD5\u53D1\u5E03"),ou.createElement("div",{style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},ou.createElement(Ie.ZP.Group,{onChange:()=>{var Eu,wr,Va,Nu,oo;if((0,On.Rm)()&&(!((wr=(Eu=se==null?void 0:se.AssistantObject)==null?void 0:Eu.exercise)!=null&&wr.can_publish)||!((Nu=(Va=se==null?void 0:se.AssistantObject)==null?void 0:Va.exercise)!=null&&Nu.can_late))){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}if(((oo=Wt==null?void 0:Wt.exercise)==null?void 0:oo.exercise_status)>1){pe.ZP.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539");return}tn.unified_setting=!tn.unified_setting,tn.unified_setting===!1&&Xt==""&&cn(Xt.concat({})),Ja(Object.assign({},tn))},value:tn.unified_setting,disabled:ea||((et=Wt==null?void 0:Wt.exercise)==null?void 0:et.exercise_status)>1},ou.createElement(Ie.ZP,{value:!0,disabled:!((Be=Wt==null?void 0:Wt.exercise)!=null&&Be.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u53D1\u5E03"),((Pe=Wt.course_groups)==null?void 0:Pe.length)>0&&ou.createElement(Ie.ZP,{value:!1},"\u5206\u73ED\u53D1\u5E03")))),!(Ut!=null&&Ut.is_make_up_exercise)&&ou.createElement("div",{style:{color:"red"}},((Ht=Wt==null?void 0:Wt.exercise)==null?void 0:Ht.exercise_status)>1&&pa&&"\u5F53\u524D\u8BFE\u5802\u4E2D\u5B66\u751F\u4EBA\u6570\u8F83\u591A\uFF0C\u4E3A\u63D0\u4F9B\u66F4\u597D\u7684\u670D\u52A1\uFF0C\u6211\u4EEC\u5C06\u8FDB\u884C\u670D\u52A1\u5668\u6269\u5BB9\uFF0C\u5EFA\u8BAE\u60A8\u572830\u5206\u949F\u540E\u53D1\u8D77\u8003\u8BD5\u3002\u60A8\u4E5F\u53EF\u4EE5\u7ACB\u5373\u53D1\u5E03\u3002"),(tn.unified_setting||(Ut==null?void 0:Ut.is_make_up_exercise))&&ou.createElement("div",{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",marginTop:"1px",alignItems:"center",height:"50px"}},ou.createElement("div",{style:{color:"#666666",marginLeft:"23px"}},"\u53D1\u5E03\u65F6\u95F4"),ou.createElement(Ae.Z,{placement:"bottom",title:((vn=Wt==null?void 0:Wt.exercise)==null?void 0:vn.exercise_status)>1&&"\u53D1\u5E03\u65F6\u95F4\u5DF2\u8FC7\uFF0C\u4E0D\u80FD\u4FEE\u6539"},ou.createElement(Aa.default,{style:{width:235,marginLeft:"10px"},size:"large",placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Ge()((0,de.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabledDate:sa,disabled:ea||((hn=Wt==null?void 0:Wt.exercise)==null?void 0:hn.exercise_status)>1||(0,On.Rm)()&&!((Gt=(xt=se==null?void 0:se.AssistantObject)==null?void 0:xt.exercise)!=null&&Gt.can_publish),value:tn.publish_time?Ge()(tn.publish_time):void 0,allowClear:!1,onChange:(Eu,wr)=>{tn.publish_time=wr,tn.end_time||(tn.end_time=tn.exercise_type===1?Ge()(Eu).add(120,"minutes"):Ge()(Eu).add(7,"days")),Ja(Object.assign({},tn))}})),ou.createElement("div",{style:{color:"#666666",marginLeft:"60px"}},"\u622A\u6B62\u65F6\u95F4"),ou.createElement(Aa.default,{style:{width:235,marginLeft:"10px"},size:"large",placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Ge()((0,de.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:ea||(0,On.Rm)()&&!((Dn=(Bn=se==null?void 0:se.AssistantObject)==null?void 0:Bn.exercise)!=null&&Dn.can_late)||(Ut==null?void 0:Ut.open_appraise),allowClear:!1,value:tn.end_time?Ge()(tn.end_time):void 0,disabledDate:Ru,onChange:(Eu,wr)=>{var Va,Nu;if((0,On.Rm)()&&!((Nu=(Va=se==null?void 0:se.AssistantObject)==null?void 0:Va.exercise)!=null&&Nu.can_publish)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}tn.end_time=wr,Ja(Object.assign({},tn))}})),!tn.unified_setting&&!(Ut!=null&&Ut.is_make_up_exercise)&&ou.createElement("div",{style:{color:"#666666",background:"#F6F7F9",padding:"5px 30px",marginTop:"1px"}},Xt&&Xt.map(function(Eu,wr){var Va,Nu,oo;return ou.createElement("div",{style:{display:"flex",alignItems:"center",marginBottom:wr==(Xt==null?void 0:Xt.length)-1?"0px":"10px"}},ou.createElement("div",{style:{width:"75px",marginLeft:"23px"}},"\u53D1\u5E03\u89C4\u5219",wr+1),ou.createElement(ft.default,{showArrow:!0,allowClear:!0,className:pu.multiple_select,disabled:ea||((Va=Wt==null?void 0:Wt.homework_status)!=null&&Va.includes("\u672A\u53D1\u5E03")&&Eu.id||Ge()(){Xt[wr].course_group_id=Su,cn(Xt.slice()),Wt.course_groups.map((Pu,ci)=>{Su.map((Ho,ji)=>{Pu.course_group_id===Ho&&(Pu.cilckkey=wr,Pu.isselect=!0)})})},onDeselect:Su=>{Wt.course_groups.map((Pu,ci)=>{Pu.course_group_id===Su&&Pu.cilckkey===wr&&(Pu.cilckkey=wr,Pu.isselect=!1)})}},Wt.course_groups&&Wt.course_groups.map(function(Su,Pu){return ou.createElement(Vi,{disabled:(Su==null?void 0:Su.isselect)&&Su.cilckkey!=wr,label:Su.course_group_name,value:Su.course_group_id,key:Su.course_group_id},Su.course_group_name)})),ou.createElement(Ao,{disabled:gl(Eu)||(0,On.Rm)()&&!((oo=(Nu=se==null?void 0:se.AssistantObject)==null?void 0:Nu.exercise)!=null&&oo.can_publish),disabledDate:sa,style:{width:"620px",marginLeft:"20px"},placeholder:["\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4","\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4"],showTime:{format:"HH:mm",defaultValue:[Ge()((0,de.U6)(),"HH:mm"),Ge()((0,de.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",size:"large",value:Eu.publish_time&&[Ge()(Eu.publish_time),Eu.end_time&&Ge()(Eu.end_time)],onChange:(Su,Pu)=>{Xt[wr].publish_time=Pu[0],!Eu.end_time&&Pu[0]?Xt[wr].end_time=Ge()(Pu[0]).add(7,"days"):Xt[wr].end_time=Pu[1],cn([...Xt])},onCalendarChange:(Su,Pu,ci)=>{if(Pu!=null&&Pu[0]&&!Pu[1]){const Ho=tn.exercise_type===1?Ge()(Pu[0]).add(120,"minutes"):Ge()(Pu[0]).add(7,"days");Xt[wr].publish_time=Pu[0],Xt[wr].end_time=Ho,cn([...Xt])}}}),ou.createElement("div",{style:{visibility:ea?"hidden":"visible",display:"flex",width:"50px"}},ou.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var Su,Pu;if((0,On.Rm)()&&!((Pu=(Su=se==null?void 0:se.AssistantObject)==null?void 0:Su.exercise)!=null&&Pu.can_publish)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}cn(Xt.concat({new:!0}))}}),ou.createElement("i",{className:"iconfont icon-shanjian1",style:{visibility:(Eu!=null&&Eu.publish_time&&Ge()(){Xt=Xt.filter((Su,Pu)=>wr!==Pu),cn([...Xt])}})))})),!(tn!=null&&tn.is_make_up_exercise)&&ou.createElement(ou.Fragment,null,ou.createElement("div",{className:pu.new_title,style:{marginTop:30}},"\u8003\u8BD5\u6A21\u5F0F"),ou.createElement("div",{style:{background:"#F6F7F9",padding:"5px 30px",display:"flex",alignItems:"center",height:"50px"}},ou.createElement(Ie.ZP.Group,{value:tn.exercise_type,disabled:ea||((Fn=Wt==null?void 0:Wt.exercise)==null?void 0:Fn.exercise_status)>1,onChange:Eu=>{tn.exercise_type=Eu.target.value,Ja(So({},tn)),au(Eu.target.value)},style:{marginTop:"2px"}},ou.createElement(Ie.ZP,{value:1,style:{marginRight:"50px"}},"\u6B63\u5F0F\u8003\u8BD5"),ou.createElement(Ie.ZP,{value:2},"\u6A21\u62DF\u8003\u8BD5")),(tn==null?void 0:tn.exercise_type)===2&&ou.createElement(ou.Fragment,null,ou.createElement("span",{style:{marginLeft:10,color:"#666666"}},"\u6BCF\u4E2A\u5B66\u751F\u5141\u8BB8\u8FDB\u884C\u8003\u8BD5"),ou.createElement(Re.Z,{className:pu.numberInput,addonAfter:"\u6B21",style:{width:145},precision:0,size:"large",value:tn==null?void 0:tn.simulate_exercise_num,disabled:ea,min:1,max:999,onChange:Eu=>{tn.simulate_exercise_num=Eu,Ja(So({},tn))}}),ou.createElement("span",{style:{color:"#666666"}},"\uFF08\u53EF\u8BBE\u7F6E1~999\u6B21\uFF09")))),(tn==null?void 0:tn.is_make_up_exercise)&&ou.createElement(ou.Fragment,null,ou.createElement(oe.Z,null,ou.createElement("span",{style:{marginRight:"20px",fontSize:"14px",color:"3333",fontWeight:600}},"\u5F85\u8865\u8003\u5B66\u751F"),ou.createElement(Ne.Z,{checked:wu,onChange:(Eu,wr)=>{var Va,Nu;if(Sa(Eu),Eu){if(tn!=null&&tn.is_appoint_user){const oo=(Nu=(Va=Wt==null?void 0:Wt.exercise)==null?void 0:Va.all_exercise_users)==null?void 0:Nu.map(Su=>Su.user_id);La([...oo])}else La([]);Oa(!1),Ka(!1)}else Oa(tn.is_miss_exam_user),Ka(tn.is_no_passing_user)},disabled:!((tn==null?void 0:tn.exercise_status)===1&&(Ut!=null&&Ut.allow_create_make_up))}),ou.createElement("span",{style:{marginLeft:"10px",fontSize:"14px",color:"3333"}},"\u6307\u5B9A\u5B66\u751F")),!wu&&ou.createElement(oe.Z,{className:"mt20 mb20",style:{paddingLeft:"90px"},align:"middle"},ou.createElement(Se.default,{checked:Hn,disabled:!((tn==null?void 0:tn.exercise_status)===1&&(tn==null?void 0:tn.miss_exam_count)>0&&(Ut!=null&&Ut.allow_create_make_up)),onChange:Eu=>{Oa(Eu.target.checked)}},ou.createElement("span",{style:{fontSize:"14px",color:"#333"}},"\u7F3A\u8003")),ou.createElement("span",{style:{color:"#0152d9",cursor:"pointer",marginRight:"60px"},onClick:()=>{Tn(1),Sa(!1),Qn(!0)}},"\uFF08",`${(tn==null?void 0:tn.miss_exam_count)||0}\u4EBA`,"\uFF09"),ou.createElement(Se.default,{checked:tu,disabled:!((tn==null?void 0:tn.exercise_status)===1&&(tn==null?void 0:tn.no_passing_count)>0&&(Ut!=null&&Ut.allow_create_make_up)),onChange:Eu=>{Ka(Eu.target.checked)}},ou.createElement("span",{style:{fontSize:"14px",color:"#333"}},"\u672A\u53CA\u683C")),ou.createElement("span",{style:{color:"#0152d9",cursor:"pointer"},onClick:()=>{Tn(2),Sa(!1),Qn(!0)}},"\uFF08",`${(tn==null?void 0:tn.no_passing_count)||0}\u4EBA`,"\uFF09")),wu&&ou.createElement(oe.Z,{className:"mb20 mt20",style:{paddingLeft:"90px"}},ou.createElement(me.ZP,{type:"primary",ghost:!0,disabled:!((tn==null?void 0:tn.exercise_status)===1&&(Ut!=null&&Ut.allow_create_make_up)),onClick:()=>{Qn(!0),Tn(void 0)}},ou.createElement("span",null,ou.createElement("i",{className:"iconfont icon-tianjia4 mr5",style:{fontSize:"14px"}})),ou.createElement("span",null,"\u9009\u62E9\u5B66\u751F")),ou.createElement("span",{style:{color:"#333",display:"inline-block",height:"32px",lineHeight:"32px",marginLeft:"10px"}},"\uFF08\u5DF2\u9009 ",`${Ba.length||0} \u4EBA`,"\uFF09"))),ou.createElement("div",{className:pu.new_title,style:{marginTop:"30px"}},"\u8003\u8BD5\u65F6\u957F\u8BBE\u7F6E"),ou.createElement("div",null,ou.createElement("div",{style:{background:"#F6F7F9",padding:"5px 30px"}},ou.createElement(Se.default,{disabled:ea,checked:Fa,onChange:Eu=>{Eu.target.checked===!1?Ja(wr=>mo(So({},wr),{time:-1})):jr.setFieldsValue({exercise_events:[{reminder_time:30,reminder_content:"\u8BF7\u6CE8\u610F\uFF0C30\u5206\u949F\u540E\u7981\u6B62\u4F5C\u7B54"},{reminder_time:15,reminder_content:"\u8BF7\u6CE8\u610F\uFF0C15\u5206\u949F\u540E\u7981\u6B62\u4F5C\u7B54"}]}),ia(Eu.target.checked)},style:{fontSize:"14px",marginTop:"2px"}},"\u9650\u5236\u8003\u751F\u7B54\u9898\u65F6\u957F"),Fa&&ou.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:20}},ou.createElement("div",{style:{marginRight:10,marginLeft:25}},"\u7B54\u9898\u65F6\u957F"),ou.createElement(Re.Z,{size:"large",disabled:ea,min:1,style:{width:"200px"},value:tn.time===-1?null:tn.time,precision:0,addonAfter:"\u5206\u949F",onChange:Eu=>{tn.time=Eu,Ja(So({},tn))}}))),Fa&&ou.createElement(fe.default,{form:jr},ou.createElement(fu,{disabled:ea,time:tn.time})),ou.createElement("div",null,ou.createElement("div",{style:{background:"#F6F7F9",padding:"5px 30px",marginTop:"1px"}},ou.createElement(Se.default,{checked:tn.enable_last_times,onChange:Eu=>Ja(wr=>mo(So({},wr),{enable_last_times:Eu.target.checked})),disabled:ea,style:{fontSize:"14px",marginTop:"2px"}},"\u5B66\u751F\u8003\u8BD5\u8FDF\u5230\u65F6\u957F\u9650\u5236"),tn.enable_last_times&&ou.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:20}},ou.createElement("span",{style:{marginLeft:"32px",marginRight:"10px"}},"\u8003\u8BD5\u5F00\u59CB\u540E"),ou.createElement(Re.Z,{addonAfter:"\u5206\u949F",precision:0,size:"large",style:{width:"200px"},value:tn==null?void 0:tn.last_times,disabled:ea||!tn.enable_last_times,min:0,onChange:Eu=>{tn.last_times=Eu,Ja(So({},tn))}}),ou.createElement("span",{style:{marginLeft:"10px"}},"\u7981\u6B62\u5B66\u751F\u8FDB\u5165\u8003\u8BD5"))),ou.createElement("div",{style:{background:"#F6F7F9",padding:"5px 30px",marginTop:"1px"}},ou.createElement(oe.Z,null,ou.createElement(Se.default,{checked:tn.enable_answer_time,onChange:Eu=>Ja(wr=>mo(So({},wr),{enable_answer_time:Eu.target.checked})),disabled:ea,style:{fontSize:"14px",marginTop:"2px"}},"\u5B66\u751F\u63D0\u524D\u4EA4\u5377\u65F6\u95F4\u9650\u5236")),tn.enable_answer_time&&ou.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:20}},ou.createElement("span",{style:{marginLeft:"32px",marginRight:"10px"}},"\u5B66\u751F\u8FDB\u5165\u8003\u8BD5\u4F5C\u7B54\u65F6\u95F4\u5FC5\u987B \u2265"),ou.createElement(Re.Z,{addonAfter:"\u5206\u949F",precision:0,size:"large",style:{width:"200px"},value:tn==null?void 0:tn.answer_time,disabled:ea||!tn.enable_answer_time,min:0,onChange:Eu=>{tn.answer_time=Eu,Ja(So({},tn))}}),ou.createElement("span",{style:{marginLeft:"10px"}},"\u624D\u80FD\u4EA4\u5377")))))),!(Ut!=null&&Ut.appraise_label)&&(!(Ut!=null&&Ut.is_make_up_exercise)&&(0,On.GJ)()||(Ut==null?void 0:Ut.is_make_up_exercise)&&(Ut==null?void 0:Ut.allow_create_make_up))&&ou.createElement(me.ZP,{type:"primary",style:{width:"138px",marginTop:"30px"},size:"large",onClick:Cr},"\u4FDD\u5B58"),ou.createElement(rr.Z,{visible:ca,setVisible:Qn,onK:$u,selectKeys:Ba,selectRows:Zn,appointStudent:wu,modalParams:pn}),ou.createElement(eo.Z,{resdata:En,type:"exercisepush",okloading:zn,oktext:(En==null?void 0:En.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:Eu=>ki(void 0,null,function*(){mn(!0);let wr=yield(0,Ce.ZP)(`/api/courses/${Yt.coursesId}/batch_copy_shixuns.json`,{method:"post",body:{type:"exercise",ids:[parseInt(Yt==null?void 0:Yt.categoryId)]}});mn(!1),(wr==null?void 0:wr.status)===0&&Zu(Nt)})}))};var Ci=(0,he.connect)(({exercise:ce,loading:se,globalSetting:ae,classroomList:_e,user:pt})=>({exercise:ce,loading:se.effects,globalSetting:ae,user:pt,classroomList:_e}))(Xi),Po=z(16646),Ji=z(5270),Gi=Object.defineProperty,gs=Object.getOwnPropertySymbols,Oo=Object.prototype.hasOwnProperty,Ls=Object.prototype.propertyIsEnumerable,xi=(ce,se,ae)=>se in ce?Gi(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,To=(ce,se)=>{for(var ae in se||(se={}))Oo.call(se,ae)&&xi(ce,ae,se[ae]);if(gs)for(var ae of gs(se))Ls.call(se,ae)&&xi(ce,ae,se[ae]);return ce},Si=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const{TabPane:hs}=y.default,ko=({exercise:ce,loading:se,dispatch:ae})=>{var _e;const pt=(0,he.useParams)(),Ve=(0,he.useLocation)(),[Dt]=fe.default.useForm(),[et,Be]=(0,a.useState)({}),[Pe,Ht]=(0,a.useState)("1");return(0,a.useEffect)(()=>{ce.actionTabs.key==="addIp"&&(Dt.resetFields(),Ht("1"))},[ce.actionTabs]),a.createElement(Fe.default,{centered:!0,title:"\u6DFB\u52A0IP\u8303\u56F4",open:ce.actionTabs.key==="addIp",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",width:600,bodyStyle:{minHeight:200},onOk:()=>Si(void 0,null,function*(){if(yield Dt.validateFields(),!et.ip){const vn=et.startIP.split(".")[3];if(parseInt(vn)>parseInt(et.endIP)){pe.ZP.warning("IP\u533A\u95F4\u6BB5\u4E0D\u5408\u6CD5");return}}ae({type:"exercise/setActionTabs",payload:{key:"insterIp",data:To({},Dt.getFieldValue()),type:ce.actionTabs.type}})}),onCancel:()=>{ae({type:"exercise/setActionTabs",payload:{}})}},a.createElement("section",{className:"pl10 pr10"},a.createElement(y.default,{activeKey:Pe,onChange:vn=>{Ht(vn),Dt.resetFields()}},a.createElement(hs,{tab:"\u65B0\u589EIP\u5730\u5740",key:"1"}),a.createElement(hs,{tab:"\u65B0\u589EIP\u8303\u56F4",key:"2"})),a.createElement(fe.default,{form:Dt,className:"pt30",name:"form",layout:"vertical",onValuesChange:(vn,hn)=>{Be(To({},hn))}},Pe==="1"&&a.createElement(fe.default.Item,{name:"ip",rules:[{required:!0,message:"\u8BF7\u8F93\u5165IP\u5730\u5740"}],label:"IP\u5730\u5740"},a.createElement(ft.default,{open:!1,tokenSeparators:[";",",","\uFF1B"],size:"middle",mode:"tags",style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165IP\u5730\u5740,\u53EF\u540C\u65F6\u6DFB\u52A0\u591A\u4E2AIP\u5730\u5740\uFF0C\u4E2D\u95F4\u7528\u82F1\u6587\u7684\u5206\u53F7\u95F4\u9694\u3002",onChange:vn=>{Dt.setFieldsValue({ip:[...vn.filter(hn=>(0,Ji.t)(hn)?!0:(pe.ZP.warning("IP\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165"),!1))]})}})),Pe==="2"&&a.createElement(oe.Z,{gutter:[20,20]},a.createElement(ve.Z,{flex:"1"},a.createElement(fe.default.Item,{name:"startIP",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8D77\u59CBIP\u5730\u5740"}],label:"\u8D77\u59CBIP\u5730\u5740"},a.createElement(Le.default,{maxLength:15,placeholder:"\u8BF7\u8F93\u5165\u8D77\u59CBIP\u5730\u5740",onBlur:vn=>{let hn="";(0,Ji.t)(vn.target.value)?hn=vn.target.value:(hn="",pe.ZP.warning("IP\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165")),Dt.setFieldsValue({startIP:hn})}}))),a.createElement(ve.Z,{flex:"1"},a.createElement(fe.default.Item,{name:"endIP",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7ED3\u675FIP\u5730\u5740"},{pattern:/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/,message:"\u8BF7\u8F93\u51650-255\u7684\u7F51\u6BB5"}],label:"\u7ED3\u675FIP\u5730\u5740"},a.createElement(Le.default,{onBlur:vn=>{},prefix:a.createElement("span",{className:"font14"},(_e=et.startIP)==null?void 0:_e.substring(0,et.startIP.lastIndexOf("."))),maxLength:3,placeholder:"\u8BF7\u8F93\u5165\u7ED3\u675FIP\u5730\u5740\u7684\u540E\u4E09\u4F4D"})))))))};var oc=(0,he.connect)(({exercise:ce,loading:se})=>({exercise:ce,loading:se}))(ko),Cn=z(67294),al=Object.defineProperty,ml=Object.defineProperties,Qu=Object.getOwnPropertyDescriptors,Zr=Object.getOwnPropertySymbols,pi=Object.prototype.hasOwnProperty,Uo=Object.prototype.propertyIsEnumerable,ai=(ce,se,ae)=>se in ce?al(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,ds=(ce,se)=>{for(var ae in se||(se={}))pi.call(se,ae)&&ai(ce,ae,se[ae]);if(Zr)for(var ae of Zr(se))Uo.call(se,ae)&&ai(ce,ae,se[ae]);return ce},ms=(ce,se)=>ml(ce,Qu(se)),Zs=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Hs=({exercise:ce,globalSetting:se,loading:ae,dispatch:_e})=>{var pt,Ve,Dt,et,Be,Pe,Ht;const{workSetting:vn,commonHeader:hn}=ce,[xt]=fe.default.useForm(),Gt=(0,he.useParams)();Gt.category=Gt.categoryId;const[Bn,Dn]=(0,a.useState)(!1),[Fn,Wt]=(0,a.useState)(!1),[Ut,Yt]=(0,a.useState)(!1),ea={question_random:!1,choice_random:!1,start_password:((pt=vn==null?void 0:vn.exercise)==null?void 0:pt.start_password)||"",login_restrict:!1,is_start_locked:!1,use_blank_score:!1,ip_limit:!1,identity_verify:!1,open_phone_video_recording:!1,open_camera:!1,photo_count:5,screen_open:!1,screen_num:3,screen_sec:5,ip_bind:!1,ip_bind_type:!1,public_ip:[],inner_ip:[],is_locked:!1,unlock_key:((Ve=vn==null?void 0:vn.exercise)==null?void 0:Ve.unlock_key)||"",screen_shot_open:!1,forbid_copy:!1};let[nn,zn]=(0,a.useState)(ea);const[mn,pa]=(0,a.useState)(!1),[Pt,Nt]=(0,a.useState)(!1),[Rt,Xt]=(0,a.useState)(!1),[cn,tn]=(0,a.useState)(null);(0,a.useEffect)(()=>{var Hn;Ja(),vn!=null&&vn.exercise&&!(0,On.aN)()&&!((Hn=vn==null?void 0:vn.exercise)!=null&&Hn.is_creator)&&Dn(!0)},[vn]),(0,a.useEffect)(()=>{((hn==null?void 0:hn.exercise_status)==="5"||hn!=null&&hn.appraise_label)&&Dn(!0)},[hn]),(0,a.useEffect)(()=>{},[]),(0,a.useEffect)(()=>{ce.actionTabs.key==="insterIp"&&(ce.actionTabs.data.ip?nn[ce.actionTabs.type]=[...nn[ce.actionTabs.type]||[],...ce.actionTabs.data.ip]:nn[ce.actionTabs.type]=[...nn[ce.actionTabs.type]||[],`${ce.actionTabs.data.startIP},${ce.actionTabs.data.startIP.substring(0,ce.actionTabs.data.startIP.lastIndexOf("."))+"."+ce.actionTabs.data.endIP}`],ha(nn),pa(!0))},[ce.actionTabs]);const Ja=()=>{const Hn=JSON.parse(JSON.stringify(vn));Object.keys(nn).forEach(Oa=>{var tu;nn[Oa]=(tu=Hn==null?void 0:Hn.exercise)==null?void 0:tu[Oa]}),ha(ms(ds({},nn),{ip_limit:nn.ip_limit!=="no"}))},ha=Hn=>{zn(Hn),xt.setFieldsValue(Hn)},dt=Hn=>{var Oa,tu;if(Hn.categoryId=Gt.categoryId,Hn.ip_limit=Hn.ip_limit?"pub":"no",Hn.ip_bind||(Hn.ip_bind_type=!1),Hn.open_camera&&Hn.photo_count<1){pe.ZP.warning("\u8BF7\u586B\u5199\u672C\u573A\u8003\u8BD5\u6700\u5927\u62CD\u6444\u6B21\u6570");return}if(!Hn.start_password&&Hn.is_start_locked){pe.ZP.warning("\u8BF7\u586B\u5199\u5F00\u8003\u5BC6\u7801");return}if(Hn.ip_limit!=="no"&&!((Oa=Hn.public_ip)!=null&&Oa.length)&&!((tu=Hn.inner_ip)!=null&&tu.length)){pe.ZP.warning("\u8BF7\u586B\u5199\u516C\u7F51IP\u6216\u5185\u7F51IP\u5730\u5740");return}if(Hn.is_locked||Hn.open_camera||Hn.screen_open||Hn.login_restrict||Hn.ip_bind||Hn.ip_limit=="pub"||Hn.ip_limit=="inner"||Hn.identity_verify||Hn.open_phone_video_recording){if((hn==null?void 0:hn.exercise_type)==1){Fa(Hn);return}Fe.default.confirm({width:666,centered:!0,title:"\u63D0\u793A",icon:null,content:Cn.createElement("div",null,"\u5F53\u524D\u8003\u8BD5\u6A21\u5F0F\u4E3A\u201C\u6A21\u62DF\u8003\u8BD5\u201D\uFF0C\u5F00\u542F",Cn.createElement("span",{style:{color:"#FA6400"}}," ",(0,de.hi)(Hn)," "),"\u9632\u4F5C\u5F0A\u89C4\u5219\u53EF\u80FD\u4F1A\u5F71\u54CD\u5B66\u751F\u8FDB\u884C\u91CD\u590D\u8003\u8BD5\u3002\u786E\u5B9A\u5F00\u542F\u5417\uFF1F"),onOk:()=>Fa(Hn)});return}ia(Hn)},Fa=Hn=>{if(Hn.open_camera||Hn.screen_open){const Oa=Fe.default.confirm({title:"\u8003\u8BD5\u8BF4\u660E",className:"custom-modal-divider",icon:null,width:750,content:Cn.createElement("div",{className:"font16 p20"},Hn.open_camera&&Cn.createElement(oe.Z,{justify:"start",className:"mt20"},Cn.createElement(ve.Z,{flex:"24px"},Cn.createElement("span",{className:"iconfont icon-kaiqishexiangtou c-blue mr20 font24"})),Cn.createElement(ve.Z,{flex:"1"},"\u60A8\u5DF2\u5F00\u542F\u8003\u8BD5\u4E2D\u6444\u50CF\u9632\u4F5C\u5F0A\u529F\u80FD\uFF0C",Cn.createElement("span",{className:"c-red"},"\u8FD9\u9700\u8981\u8C03\u7528\u5B66\u751F\u7528\u6237\u7684\u6444\u50CF\u8BBE\u5907"),"\u3002Educoder\u5E73\u53F0\u5C06\u4F1A\u4E25\u683C\u4FDD\u62A4\u6240\u6709\u5B66\u751F\u7684\u7167\u7247\u548C\u89C6\u9891\uFF0C\u5E76\u627F\u8BFA\u4E0D\u5728\u672C\u5E73\u53F0\u4EE5\u5916\u4F7F\u7528\u3002",Cn.createElement("br",null),"\u8BF7\u786E\u8BA4\uFF1A\u4E3A\u4E25\u683C\u76D1\u7763\u8003\u8BD5\u4EE5\u83B7\u5F97\u516C\u5E73\uFF0C\u60A8\u540C\u610F\u5E76\u548C\u8981\u6C42Educoder\u5E73\u53F0\u5728\u672C\u6B21\u8003\u8BD5\u4E2D\u8C03\u7528\u5B66\u751F\u7528\u6237\u7684\u6444\u50CF\u8BBE\u5907\u5E76\u83B7\u53D6\u5B66\u751F\u7684\u5F71\u50CF\u4FE1\u606F\u3002")),Hn.screen_open&&Cn.createElement(oe.Z,{justify:"start",className:"mt20"},Cn.createElement(ve.Z,{flex:"24px",className:"mr20"},Cn.createElement("span",{className:"iconfont icon-kaiqifangqieping c-blue font24"})),Cn.createElement(ve.Z,{flex:"1"},"\u60A8\u5DF2\u5F00\u542F\u8003\u8BD5\u4E2D\u9632\u5207\u5C4F\u529F\u80FD\uFF0C\u8FD9\u9879\u529F\u80FD\u6682\u65F6\u4EC5\u652F\u6301\u8C37\u6B4C\u3001\u706B\u72D0\u6D4F\u89C8\u5668\u3002 \u8BF7\u786E\u4FDD\uFF1A\u5728\u6B63\u5F0F\u5F00\u59CB\u8003\u8BD5\u524D\u901A\u77E5\u5168\u4F53\u5B66\u751F\uFF0C\u4F7F\u7528 ",Cn.createElement("img",{width:"26",src:ws.JA})," ",Cn.createElement("span",{className:"c-red"},"\u8C37\u6B4C\u6D4F\u89C8\u5668"),"\u6216",Cn.createElement("img",{width:"26",src:ws.Gm})," ",Cn.createElement("span",{className:"c-red"},"\u706B\u72D0\u6D4F\u89C8\u5668"),"\u8FDB\u884C\u8003\u8BD5\u3002")),Cn.createElement("p",{className:"ml40 mt40"},Cn.createElement(Se.default,{onChange:tu=>Oa.update({okButtonProps:{disabled:!tu.target.checked}})},"\u6211\u5DF2\u9605\u8BFB"))),onOk:()=>{ia(Hn)},okButtonProps:{disabled:!0}})}else ia(Hn)},ia=Hn=>Zs(void 0,null,function*(){Wt(!0);const Oa=yield(0,Ce.ZP)(`/api/exercises/${Gt==null?void 0:Gt.categoryId}/prevent_cheating_settings.json`,{method:"post",body:Hn});Wt(!1),Oa.status===0&&(pe.ZP.success("\u4FDD\u5B58\u6210\u529F"),_e({type:"exercise/getCommonHeader",payload:ds({},Gt)}),_e({type:"exercise/getWorkSetting",payload:ds({},Gt)}),pa(!1))});(0,a.useEffect)(()=>{Sa(mn?"\u8868\u5355\u672A\u4FDD\u5B58":"")},[mn]);const wu=Hn=>{Hn.preventDefault(),Hn.returnValue=""},Sa=(Hn="")=>{_e({type:"exercise/setActionTabs",payload:{key:Hn}})};return Cn.createElement("section",{className:pu.formDom,style:{padding:"30px 50px"}},Cn.createElement(jt.Z,{spinning:ae["exercise/getWorkSetting"]||Fn},Cn.createElement(fe.default,{form:xt,name:"basicForm",initialValues:ea,colon:!1,onValuesChange:(Hn,Oa)=>{console.log("onValuesChange",Oa);let tu=Oa;for(const Ka in Hn){if(Ka=="is_locked"&&!Oa[Ka]&&(tu.login_restrict=!1,tu.screen_open=!1),Ka=="login_restrict"&&Oa[Ka]&&(tu.is_locked=!0),Ka=="screen_open"&&Oa[Ka]&&(tu.is_locked=!0),Ka=="screen_shot_open"&&Oa[Ka]){const Ba=Fe.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:Cn.createElement("div",null,Cn.createElement("div",{className:"mb10"},"1.\u5F00\u542F\u540E\uFF0C\u5B66\u751F\u4F5C\u7B54\u524D",Cn.createElement("span",{style:{color:"#F59A23"}},"\u9700\u8981\u9009\u62E9\u4E3B\u5C4F\u5E55\u8FDB\u884C\u5171\u4EAB\uFF0C\u8003\u8BD5\u4F5C\u7B54\u8FC7\u7A0B\u4E2D\u4E5F\u4E0D\u5141\u8BB8\u5173\u95ED\u5C4F\u5E55\u5171\u4EAB\uFF0C\u5426\u5219\u5C06\u4F1A\u76F4\u63A5\u9000\u51FA\u8003\u8BD5\uFF1B")),Cn.createElement("div",null,"2.\u6559\u5E08\u53EF\u5728\u8003\u8BD5\u76D1\u63A7\u9875\u9762\u67E5\u770B\u622A\u5C4F\u8BB0\u5F55\u3002")),onOk:()=>Zs(void 0,null,function*(){tu.screen_shot_open=!0,ha(tu)}),onCancel:()=>{tu.screen_shot_open=!1,ha(tu),Ba.destroy()}});break}(Ka=="ip_bind"||Ka=="ip_limit")&&!Oa.is_locked&&Oa[Ka]&&(tu.is_locked=!0),Ka=="open_camera"&&(tu.photo_count=tu.photo_count||5)}ha(tu),pa(!0)},onFinish:dt},Cn.createElement("div",{className:pu.title},"\u63A8\u8350\u9632\u4F5C\u5F0A\u6A21\u5F0F",Cn.createElement("span",{style:{color:"#666",fontSize:14,fontWeight:400}},"\uFF08\u4E0D\u540C\u7684\u8003\u8BD5\u6A21\u5F0F\uFF0C\u7CFB\u7EDF\u4F1A\u81EA\u52A8\u52FE\u9009\u5BF9\u5E94\u6A21\u5F0F\u63A8\u8350\u7684\u9632\u4F5C\u5F0A\u8BBE\u7F6E\uFF0C\u652F\u6301\u4E8C\u6B21\u8C03\u6574\uFF09")),Cn.createElement(fe.default.Item,null,Cn.createElement(Ie.ZP.Group,{style:{background:"#F6F7F9",padding:"5px 30px",display:"flex",alignItems:"center",height:"50px"},value:cn,onChange:Hn=>{if(Hn.target.value==="exam")ha(ms(ds(ds({},ea),nn),{question_random:!0,choice_random:!0,is_start_locked:!0,is_locked:!0,login_restrict:!0,screen_open:!0,ip_bind:!0,forbid_copy:!0}));else if(Hn.target.value==="practice"){Fe.default.confirm({title:"\u63D0\u793A",centered:!0,content:"\u6A21\u62DF\u8003\u8BD5\u5C06\u53EA\u4F1A\u5F00\u542F\u201C\u5C0F\u9898\u9898\u76EE\u987A\u5E8F\u968F\u673A\u6253\u4E71\u201D\u548C\u201C\u9009\u62E9\u9898\u9009\u9879\u987A\u5E8F\u968F\u673A\u6253\u4E71\u201D\uFF0C\u786E\u5B9A\u8981\u4F7F\u7528\u6A21\u62DF\u8003\u8BD5\u63A8\u8350\u7684\u8BBE\u7F6E\u5417\uFF1F",icon:null,onOk:()=>{ha(ms(ds({},ea),{question_random:!0,choice_random:!0,forbid_copy:!1})),tn(Hn.target.value)}});return}tn(Hn.target.value)},buttonStyle:"solid",disabled:Bn},Cn.createElement(Ie.ZP,{value:"exam",style:{marginRight:"40px"}},"\u6B63\u5F0F\u6A21\u5F0F"),Cn.createElement(Ie.ZP,{value:"practice"},"\u6A21\u62DF\u6A21\u5F0F"))),Cn.createElement("div",{className:pu.title,style:{marginTop:"30px"}},"\u9632\u4F5C\u5F0A\u8BBE\u7F6E"),Cn.createElement(fe.default.Item,{name:"forbid_copy",valuePropName:"checked",style:{background:"#F6F7F9",padding:"8px 30px"}},Cn.createElement(Se.default,{disabled:Bn},Cn.createElement("strong",{style:{fontSize:"14px",color:"#000"}},"\u7B54\u9898\u65F6\u4E0D\u5141\u8BB8\u8FDB\u884C\u590D\u5236\u7C98\u8D34"))),Cn.createElement(fe.default.Item,{name:"question_random",valuePropName:"checked",style:{background:"#F6F7F9",padding:"8px 30px"}},Cn.createElement(Se.default,{disabled:Bn},Cn.createElement("strong",{style:{fontSize:"14px",color:"#000"}},"\u5C0F\u9898\u9898\u76EE\u987A\u5E8F\u968F\u673A\u6253\u4E71"))),Cn.createElement(fe.default.Item,{name:"choice_random",valuePropName:"checked",style:{background:"#F6F7F9",padding:"8px 30px"}},Cn.createElement(Se.default,{disabled:Bn},Cn.createElement("strong",{style:{fontSize:"14px",color:"#000"}},"\u9009\u62E9\u9898\u9009\u9879\u987A\u5E8F\u968F\u673A\u6253\u4E71"))),Cn.createElement("div",{className:"ant-form-item",style:{background:"#F6F7F9",padding:"8px 30px",marginTop:"1px"}},Cn.createElement(fe.default.Item,{name:"is_start_locked",valuePropName:"checked",style:{marginBottom:0}},Cn.createElement(Se.default,{disabled:Bn},Cn.createElement(Cn.Fragment,null,Cn.createElement("strong",{style:{fontSize:"14px",color:"#000"}},"\u5F00\u8003\u5BC6\u7801 ",Cn.createElement("span",{style:{color:"#666",fontSize:14,fontWeight:400}},"\uFF08\u52FE\u9009\u540E\uFF0C\u5B66\u751F\u7B2C\u4E00\u6B21\u8FDB\u5165\u8003\u8BD5\u65F6\uFF0C\u9700\u8981\u8F93\u5165\u5F00\u8003\u5BC6\u7801\u624D\u80FD\u8FDB\u5165\u8003\u8BD5\u7B54\u9898\u9875\u9762\uFF09"))))),nn.is_start_locked&&(0,On.GJ)()?Cn.createElement(oe.Z,{className:pu.unlockKeyWrapper,align:"middle"},Cn.createElement(fe.default.Item,{name:"start_password",style:{marginBottom:0}},Cn.createElement(Le.default,{size:"large",className:pu.unlockKeyInput,disabled:Bn,placeholder:"\u8BF7\u8F93\u5165\u5F00\u8003\u5BC6\u7801"})),Cn.createElement(ve.Z,null,!Bn&&Cn.createElement(me.ZP,{type:"link",loading:Pt,onClick:()=>Zs(void 0,null,function*(){Nt(!0);let Hn=Math.floor(Math.random()*1e6).toString().padStart(6,"0"),Oa=yield(0,Ce.ZP)(`/api/exercises/${Gt==null?void 0:Gt.categoryId}/change_pwd.json`,{method:"post",body:{type:1,pwd:Hn}});Nt(!1),(Oa==null?void 0:Oa.status)===0&&xt.setFieldsValue({start_password:Hn})})},"\u6362\u4E00\u6362"))):Cn.createElement(fe.default.Item,{hidden:!0,name:"start_password",label:"\u5F00\u8003\u5BC6\u7801(\u53EA\u7528\u6765\u5728\u88AB\u9690\u85CF\u7684\u662F\u65F6\u5019\u8FDB\u884C\u6536\u96C6\u6570\u636E)"})),Cn.createElement("div",{className:"ant-form-item",style:{background:"#F6F7F9",padding:"8px 30px",marginTop:"1px"}},Cn.createElement(fe.default.Item,{name:"is_locked",valuePropName:"checked",style:{marginBottom:0}},Cn.createElement(Se.default,{disabled:Bn},Cn.createElement(Cn.Fragment,null,Cn.createElement("strong",{style:{fontSize:"14px",color:"#000"}},"\u8003\u8BD5\u89E3\u9501\u7801 ",Cn.createElement("span",{style:{color:"#666",fontSize:14,fontWeight:400}},"\uFF08\u52FE\u9009\u540E\uFF0C\u5982\u679C\u5B66\u751F\u5728\u8003\u8BD5\u4E2D\u9014\u9000\u51FA\u60F3\u518D\u7EE7\u7EED\u8003\u8BD5\uFF0C\u9700\u8981\u4F7F\u7528\u89E3\u9501\u7801\u8FDB\u884C\u89E3\u9501\u3002\uFF09"))))),nn.is_locked&&(0,On.GJ)()?Cn.createElement(oe.Z,{className:pu.unlockKeyWrapper,align:"middle"},Cn.createElement(fe.default.Item,{style:{marginBottom:0},name:"unlock_key"},Cn.createElement(Le.default,{size:"large",className:pu.unlockKeyInput,disabled:Bn,placeholder:"\u8BF7\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801"})),Cn.createElement(ve.Z,null,!Bn&&Cn.createElement(me.ZP,{type:"link",loading:Rt,onClick:()=>Zs(void 0,null,function*(){Xt(!0);let Hn=Math.floor(Math.random()*1e6).toString().padStart(6,"0"),Oa=yield(0,Ce.ZP)(`/api/exercises/${Gt==null?void 0:Gt.categoryId}/change_pwd.json`,{method:"post",body:{type:2,pwd:Hn}});Xt(!1),(Oa==null?void 0:Oa.status)===0&&xt.setFieldsValue({unlock_key:Hn})})},"\u6362\u4E00\u6362"))):Cn.createElement(fe.default.Item,{hidden:!0,name:"unlock_key",label:"\u8003\u8BD5\u89E3\u9501\u7801(\u53EA\u7528\u6765\u5728\u88AB\u9690\u85CF\u7684\u662F\u65F6\u5019\u8FDB\u884C\u6536\u96C6\u6570\u636E)"})),Cn.createElement(fe.default.Item,{name:"login_restrict",valuePropName:"checked",style:{background:"#F6F7F9",padding:"8px 30px",marginTop:"1px"}},Cn.createElement(Se.default,{disabled:Bn},Cn.createElement(Cn.Fragment,null,Cn.createElement("strong",{style:{fontSize:"14px",color:"#000"}},"\u8003\u8BD5\u767B\u5F55\u9650\u5236",Cn.createElement("span",{style:{color:"#666",fontSize:14,fontWeight:400}},"\uFF08\u52FE\u9009\u540E\uFF0C\u5B66\u751F\u5728\u8003\u8BD5\u671F\u95F4\u7B2C\u4E8C\u6B21\u53CA\u540E\u7EED\u767B\u5F55\u7CFB\u7EDF\u65F6\uFF0C\u9700\u8981\u76D1\u8003\u8001\u5E08\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801\u624D\u80FD\u767B\u5F55\u7CFB\u7EDF\uFF09"))))),Cn.createElement("div",{className:"ant-form-item",style:{background:"#F6F7F9",padding:"8px 30px",marginTop:"1px"}},Cn.createElement(fe.default.Item,{name:"screen_open",valuePropName:"checked"},Cn.createElement(Se.default,{disabled:Bn},Cn.createElement("strong",{style:{fontSize:"14px",color:"#000"}},"\u5207\u5C4F\u540E\u5F3A\u5236\u4EA4\u5377"))),nn.screen_open?Cn.createElement(Cn.Fragment,null,Cn.createElement(oe.Z,{gutter:10,className:`${pu.unlockKeyWrapper}`,style:{color:"#666666"},align:"middle",wrap:!1},Cn.createElement(ve.Z,null,"\u8003\u8BD5\u8FC7\u7A0B\u4E2D\u5207\u6362\u9875\u9762\u8D85\u8FC7"),Cn.createElement(ve.Z,null,Cn.createElement(fe.default.Item,{name:"screen_num",style:{marginBottom:0}},Cn.createElement(Re.Z,{size:"large",disabled:Bn,min:0,max:10,addonAfter:"\u6B21",style:{width:"150px"}}))),Cn.createElement(ve.Z,null,"\u540E\u5C06\u88AB\u5F3A\u5236\u4EA4\u5377\uFF0C\u5207\u6362\u5230\u5176\u4ED6\u9875\u9762"),Cn.createElement(ve.Z,null,Cn.createElement(fe.default.Item,{name:"screen_sec",style:{marginBottom:0}},Cn.createElement(Re.Z,{size:"large",disabled:Bn,min:0,max:60,addonAfter:"\u79D2",style:{width:"150px"}}))),Cn.createElement(ve.Z,null,"\u540E\u5373\u5224\u5B9A\u4E3A\u5207\u5C4F\u3002")),Cn.createElement(oe.Z,{gutter:10,className:`c-grey-333 ${pu.unlockKeyWrapper}`,align:"middle",wrap:!1},Cn.createElement(ve.Z,null,Cn.createElement(fe.default.Item,{name:"screen_shot_open",valuePropName:"checked",style:{marginBottom:0}},Cn.createElement(Ne.Z,{disabled:Bn||!nn.screen_open}))),Cn.createElement(ve.Z,{style:{color:"#666666"}},"\u5B66\u751F\u9000\u51FA\u5168\u5C4F\u6216\u5207\u6362\u9875\u9762\u540E\u8FDB\u884C\u622A\u5C4F"))):Cn.createElement(Cn.Fragment,null,Cn.createElement(fe.default.Item,{hidden:!0,name:"screen_num",label:"(\u53EA\u7528\u6765\u5728\u88AB\u9690\u85CF\u7684\u662F\u65F6\u5019\u8FDB\u884C\u6536\u96C6\u6570\u636E)"}),Cn.createElement(fe.default.Item,{hidden:!0,name:"screen_sec",label:"(\u53EA\u7528\u6765\u5728\u88AB\u9690\u85CF\u7684\u662F\u65F6\u5019\u8FDB\u884C\u6536\u96C6\u6570\u636E)"}),Cn.createElement(fe.default.Item,{hidden:!0,name:"screen_shot_open",label:"(\u53EA\u7528\u6765\u5728\u88AB\u9690\u85CF\u7684\u662F\u65F6\u5019\u8FDB\u884C\u6536\u96C6\u6570\u636E)"}))),Cn.createElement("div",{className:"ant-form-item",style:{background:"#F6F7F9",padding:"8px 30px",marginTop:"1px"}},Cn.createElement(fe.default.Item,{name:"ip_bind",valuePropName:"checked",style:{marginBottom:0}},Cn.createElement(Se.default,{disabled:Bn},Cn.createElement(Cn.Fragment,null,Cn.createElement("strong",{style:{fontSize:"14px",color:"#000"}},"IP\u5730\u5740\u7ED1\u5B9A",Cn.createElement("span",{style:{color:"#666",fontSize:14,fontWeight:400}},"\uFF08\u52FE\u9009\u540E\uFF0C\u5F00\u59CB\u8003\u8BD5\u7684\u5B66\u751F\u8D26\u53F7\u5C06\u81EA\u52A8\u4E0E\u8BBE\u5907\u516C\u7F51IP\u6216\u5185\u7F51IP\u8FDB\u884C\u7ED1\u5B9A\u3002\u5982\u9047\u7279\u6B8A\u60C5\u51B5\uFF0C\u53EF\u7531\u6559\u5E08/\u52A9\u6559\u8FDB\u884CIP\u89E3\u7ED1\u3002\uFF09"))))),nn.ip_bind&&(0,On.GJ)()?Cn.createElement(oe.Z,{className:pu.unlockKeyWrapper,style:{flexDirection:"column"}},Cn.createElement(fe.default.Item,{name:"ip_bind_type",style:{marginBottom:0}},Cn.createElement(Ie.ZP.Group,null,Cn.createElement(Ie.ZP,{value:!1,style:{marginRight:"32px",fontWeight:"400"}},Cn.createElement("span",{style:{color:"#000"}},"\u7ED1\u5B9A\u5916\u7F51IP",Cn.createElement("span",{style:{color:"#666",fontSize:14,fontWeight:400}},"\uFF08\u5B66\u6821\u6821\u56ED\u7F51\u7535\u8111\u7684\u516C\u7F51IP\u53EF\u80FD\u4F1A\u5B58\u5728\u53D8\u52A8\uFF09"))),Cn.createElement(Ie.ZP,{value:!0,style:{fontWeight:"400"}},Cn.createElement("span",{style:{color:"#000"}},"\u7ED1\u5B9A\u5185\u7F51IP",Cn.createElement("span",{style:{color:"#666",fontSize:14,fontWeight:400}},"\uFF08\u9700\u8981\u5B89\u88C5\u63D2\u4EF6\u624D\u80FD\u83B7\u53D6ip\uFF0C\u524D\u5F80",Cn.createElement("a",{className:"c-blue",target:"_blank",href:"https://www.educoder.net/forums/4478"},"\u4E0B\u8F7D\u63D2\u4EF6"),"\uFF09")))))):Cn.createElement(fe.default.Item,{hidden:!0,name:"ip_bind_type",label:"(\u53EA\u7528\u6765\u5728\u88AB\u9690\u85CF\u7684\u662F\u65F6\u5019\u8FDB\u884C\u6536\u96C6\u6570\u636E)"})),Cn.createElement("div",{className:"ant-form-item",style:{background:"#F6F7F9",padding:"8px 30px",marginTop:"1px"}},Cn.createElement(fe.default.Item,{name:"ip_limit",valuePropName:"checked",style:{marginBottom:0}},Cn.createElement(Se.default,{disabled:Bn},Cn.createElement(Cn.Fragment,null,Cn.createElement("strong",{style:{fontSize:"14px",color:"#000"}},"\u9650\u5236\u8003\u8BD5\u8BBF\u95EEIP",Cn.createElement("span",{style:{color:"#666",fontSize:14,fontWeight:400}},"\uFF08\u9650\u5236\u53C2\u4E0E\u8003\u8BD5\u8BBE\u5907\u7684IP\u5730\u5740\u8303\u56F4\uFF09"))))),Cn.createElement(fe.default.Item,{name:"public_ip",label:"\u516C\u7F51IP\u5730\u5740\u8303\u56F4(\u53EA\u7528\u6765\u5728\u88AB\u9690\u85CF\u7684\u662F\u65F6\u5019\u8FDB\u884C\u6536\u96C6\u6570\u636E)",hidden:!0}),Cn.createElement(fe.default.Item,{name:"inner_ip",label:"\u5185\u7F51IP\u5730\u5740\u8303\u56F4(\u53EA\u7528\u6765\u5728\u88AB\u9690\u85CF\u7684\u662F\u65F6\u5019\u8FDB\u884C\u6536\u96C6\u6570\u636E)",hidden:!0}),(nn==null?void 0:nn.ip_limit)&&Cn.createElement(oe.Z,{className:pu.unlockKeyWrapper,style:{flexDirection:"column"}},Cn.createElement(ve.Z,null,Cn.createElement("span",{className:"c-red"},"\uFF08\u53EA\u5141\u8BB8\u5728Chrome\u8C37\u6B4C\u6D4F\u89C8\u5668\u4F5C\u7B54\uFF0C\u5E76\u4E14\u8981\u6C42\u5B66\u751F\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6\uFF09"),Cn.createElement("a",{className:"c-blue",target:"_blank",href:"https://www.educoder.net/forums/4478"},"\u5982\u4F55\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6?")),Cn.createElement(oe.Z,{className:`mt15 ${pu.ipWrp}`,style:{background:"#F6F7F9"}},Cn.createElement(ve.Z,null,"\u516C\u7F51IP\u5730\u5740\u8303\u56F4\uFF1A"),Cn.createElement(ve.Z,null,(Dt=nn.public_ip)==null?void 0:Dt.map((Hn,Oa)=>Cn.createElement("span",{key:Oa,className:pu.ipItem},Cn.createElement("i",null,Hn," "),!Bn&&Cn.createElement(Po.Z,{onClick:()=>{Fe.default.confirm({okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u5B9A\u5220\u9664\u8BE5IP\u5417\uFF1F",onOk:()=>{nn.public_ip.splice(Oa,1),ha(ds({},nn))}})},className:" c-grey-c",size:20}))),(0,On.GJ)()&&!Bn&&Cn.createElement("span",{onClick:()=>{_e({type:"exercise/setActionTabs",payload:{key:"addIp",type:"public_ip"}})},className:"font14 c-blue ml10",style:{cursor:"pointer"}}," ",Cn.createElement("i",{className:"iconfont icon-xuanyong font14"})," \u6DFB\u52A0"))),Cn.createElement(oe.Z,{className:`mt15 ${pu.ipWrp}`,style:{background:"#F6F7F9"}},Cn.createElement(ve.Z,null,Cn.createElement("span",null,"\u5185\u7F51IP\u5730\u5740\u8303\u56F4\uFF1A")),Cn.createElement(ve.Z,null,(et=nn.inner_ip)==null?void 0:et.map((Hn,Oa)=>Cn.createElement("span",{className:pu.ipItem},Cn.createElement("i",null,Hn," "),!Bn&&Cn.createElement(Po.Z,{onClick:()=>{Bn||Fe.default.confirm({title:"\u786E\u5B9A\u5220\u9664\u8BE5IP\u5417\uFF1F",onOk:()=>{nn.inner_ip.splice(Oa,1),ha(ds({},nn))}})},className:" c-grey-c",size:20}))),(0,On.GJ)()&&!Bn&&Cn.createElement("span",{className:"font14 c-blue ml10",onClick:()=>{_e({type:"exercise/setActionTabs",payload:{key:"addIp",type:"inner_ip"}})},style:{cursor:"pointer"}}," ",Cn.createElement("i",{className:"iconfont icon-xuanyong font14"})," \u6DFB\u52A0"))))),Cn.createElement("div",{className:"ant-form-item",style:{background:"#F6F7F9",padding:"8px 30px",marginTop:"1px"}},Cn.createElement(fe.default.Item,{name:"open_camera",valuePropName:"checked",style:{marginBottom:0}},Cn.createElement(Se.default,{disabled:Bn},Cn.createElement(Cn.Fragment,null,Cn.createElement("strong",{style:{fontSize:"14px",color:"#000"}},"\u8003\u8BD5\u4E2D\u542F\u7528\u62CD\u7167\u529F\u80FD\u8FDB\u884C\u76D1\u8003\u548C\u884C\u4E3A\u5206\u6790",Cn.createElement("span",{style:{color:"#666",fontSize:14,fontWeight:400}},"\uFF08\u5B66\u751F\u5728\u8003\u8BD5\u8FC7\u7A0B\u4E2D\u4F7F\u7528\u7535\u8111\u6444\u50CF\u5934\u968F\u673A\u6293\u62CD\u7167\u7247\uFF0C\u7528\u4E8E\u76D1\u8003\u548C\u5B66\u4E60\u884C\u4E3A\u5206\u6790\uFF0C\u5206\u6790\u7ED3\u679C\u53EF\u5728\u5B66\u751F\u7B54\u5377\u4E2D\u67E5\u770B\uFF09"))))),nn.open_camera?Cn.createElement(oe.Z,{gutter:10,className:`c-grey-333 ${pu.unlockKeyWrapper}`,align:"middle",wrap:!1},Cn.createElement(ve.Z,{style:{color:"#666666"}},"\u672C\u573A\u8003\u8BD5\u6700\u591A\u62CD\u6444"),Cn.createElement(ve.Z,null,Cn.createElement(fe.default.Item,{name:"photo_count",style:{marginBottom:0}},Cn.createElement(Re.Z,{size:"large",disabled:Bn||!nn.open_camera,min:1,max:(0,On.Ny)()?1e3:10,addonAfter:"\u6B21",style:{width:"150px"}}))),Cn.createElement(ve.Z,null,Cn.createElement("span",{className:"c-grey-c font14 ml10",style:{color:"#666"}},"\uFF08\u53EF\u586B\u5199\u6700\u5927\u503C\u4E3A10\uFF09"))):Cn.createElement(fe.default.Item,{hidden:!0,name:"photo_count",label:"(\u53EA\u7528\u6765\u5728\u88AB\u9690\u85CF\u7684\u662F\u65F6\u5019\u8FDB\u884C\u6536\u96C6\u6570\u636E)"})),Cn.createElement(fe.default.Item,{name:"identity_verify",valuePropName:"checked",style:{background:"#F6F7F9",padding:"8px 30px",marginTop:"1px"}},Cn.createElement(Se.default,{disabled:!(0,On.ag)()||Bn},Cn.createElement(Cn.Fragment,null,Cn.createElement("strong",{style:{fontSize:"14px",color:"#000"}},"\u8003\u8BD5\u524D\u4EBA\u8138\u8EAB\u4EFD\u6838\u9A8C ",Cn.createElement("span",{style:{color:"#666",fontSize:14,fontWeight:400}},"\uFF08\u52FE\u9009\u540E\uFF0C\u5B66\u751F\u5F00\u59CB\u8003\u8BD5\u524D\u9700\u8981\u4EBA\u8138\u9A8C\u8BC1\u5BA1\u6838\uFF0C\u5BA1\u6838\u901A\u8FC7\u540E\u624D\u53EF\u8FDB\u5165\u7B54\u9898\uFF09"))))),Cn.createElement(fe.default.Item,{name:"open_phone_video_recording",valuePropName:"checked",style:{background:"#F6F7F9",padding:"8px 30px"}},Cn.createElement(Se.default,{disabled:!(0,On.ag)()||Bn},Cn.createElement(Cn.Fragment,null,Cn.createElement("strong",{style:{fontSize:"14px",color:"#000"}},"\u8003\u8BD5\u4E2D\u5F00\u542F\u624B\u673A\u89C6\u9891\u5F55\u5236",Cn.createElement("span",{style:{color:"#666",fontSize:14,fontWeight:400}},"\uFF08\u5B66\u751F\u5F00\u59CB\u8003\u8BD5\u524D\u5FC5\u987B\u5148\u5F00\u542F\u624B\u673A\u5F55\u5236\u89C6\u9891\uFF0C\u6559\u5E08/\u52A9\u6559\u53EF\u5728\u8BD5\u5377\u8BE6\u60C5-\u6444\u50CF\u76D1\u63A7\u9875\u9762\u67E5\u770B\u5B66\u751F\u89C6\u9891\u52A8\u6001\uFF09")))))),((0,On.aN)()||((Be=ce==null?void 0:ce.commonHeader)==null?void 0:Be.exercise_author))&&!(hn!=null&&hn.appraise_label)&&Cn.createElement(me.ZP,{type:"primary",style:{width:"138px",marginTop:"30px"},size:"large",onClick:()=>{xt.submit()}},"\u4FDD\u5B58")),Cn.createElement(oc,null),Cn.createElement(Fe.default,{centered:!0,destroyOnClose:!0,open:Ut,title:"\u5934\u6B4C\u6559\u5E08\u4EA4\u6D41\u793E\u533A",width:"500px",footer:null,onCancel:()=>Yt(!1)},Cn.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},Cn.createElement("p",null,"\u626B\u7801\u6216\u641C\u7D22\u52A0\u5165\u5934\u6B4C\u6559\u5E08\u4EA4\u6D41QQ\u7FA4\uFF1A",(Pe=se==null?void 0:se.setting)==null?void 0:Pe.homepage_tea_qq_number," "),Cn.createElement("img",{src:`${ke.Z.IMG_SERVER}/${(Ht=se==null?void 0:se.setting)==null?void 0:Ht.homepage_tea_qq_qrcode_url}`,width:200,height:200}))))};var _s=(0,he.connect)(({exercise:ce,loading:se,globalSetting:ae})=>({exercise:ce,loading:se.effects,globalSetting:ae}))(Hs),ju=z(67294),fi=Object.defineProperty,Ns=Object.defineProperties,rc=Object.getOwnPropertyDescriptors,Qc=Object.getOwnPropertySymbols,yd=Object.prototype.hasOwnProperty,rd=Object.prototype.propertyIsEnumerable,Od=(ce,se,ae)=>se in ce?fi(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,Xc=(ce,se)=>{for(var ae in se||(se={}))yd.call(se,ae)&&Od(ce,ae,se[ae]);if(Qc)for(var ae of Qc(se))rd.call(se,ae)&&Od(ce,ae,se[ae]);return ce},Hd=(ce,se)=>Ns(ce,rc(se)),m0=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const B0=({exercise:ce,loading:se,dispatch:ae})=>{var _e,pt,Ve;const{workSetting:Dt,commonHeader:et}=ce,Be=(0,he.useParams)();Be.category=Be.categoryId;const[Pe,Ht]=(0,a.useState)(!1),[vn,hn]=(0,a.useState)(!1);let[xt,Gt]=(0,a.useState)({score_open:!1,answer_open:!1,show_statistic:!1,open_total_score:!1,open_score_reviewed:!0,open_score_commited:!1,open_score:!1,answered_open:!1,assistant_auth:!1,passing_rate:60,use_blank_score:!1,downcase:!1,open_make_up:!1,make_up_score:1});(0,a.useEffect)(()=>{Dn("\u8868\u5355\u672A\u4FDD\u5B58")},[xt]);const Bn=Yt=>{Yt.preventDefault(),Yt.returnValue=""},Dn=(Yt="")=>{ae({type:"exercise/setActionTabs",payload:{key:Yt}})};(0,a.useEffect)(()=>{var Yt,ea;Fn(),(Yt=Dt==null?void 0:Dt.exercise)!=null&&Yt.id&&!(0,On.aN)()&&!((ea=Dt==null?void 0:Dt.exercise)!=null&&ea.is_creator)&&Ht(!0)},[ce==null?void 0:ce.workSetting]),(0,a.useEffect)(()=>{},[]);const Fn=()=>{const Yt=JSON.parse(JSON.stringify(Dt));Object.keys(xt).forEach(ea=>{var nn;xt[ea]=((nn=Yt==null?void 0:Yt.exercise)==null?void 0:nn[ea])||xt[ea]}),Gt(xt),ce.actionTabs.key!="\u6279\u91CF\u53D1\u5E03"&&Dn("")},Wt=()=>{const Yt=JSON.parse(JSON.stringify(xt));Yt.categoryId=Be.categoryId,Ut(Yt)},Ut=Yt=>m0(void 0,null,function*(){var ea;if((Yt==null?void 0:Yt.use_blank_score)!==((ea=Dt==null?void 0:Dt.exercise)==null?void 0:ea.use_blank_score)){let zn=Fe.default.confirm({closable:!0,width:500,centered:!0,icon:null,title:"\u63D0\u793A",onOk:()=>m0(void 0,null,function*(){hn(!0);const mn=yield(0,Ce.ZP)(`/api/exercises/${Be==null?void 0:Be.categoryId}/property_settings.json`,{method:"post",body:Yt});hn(!1),mn.status===0&&(pe.ZP.success("\u4FDD\u5B58\u6210\u529F"),Dn(""),ae({type:"exercise/getCommonHeader",payload:Xc({},Be)}),ae({type:"exercise/getWorkSetting",payload:Xc({},Be)}),hn(!1))})});Yt!=null&&Yt.use_blank_score?zn.update({content:ju.createElement("div",null,"\u60A8\u5DF2\u52FE\u9009",ju.createElement("span",{style:{color:"#165DFF"}},"\u201C \u591A\u9009\u9898\u6F0F\u9009\u90E8\u5206\u7ED9\u5206 \u201D"),"\uFF0C\u4FDD\u5B58\u8BBE\u7F6E\u540E\u5C06\u4F1A\u6309\u7167\u65B0\u7684\u7ED9\u5206\u65B9\u5F0F\u91CD\u65B0\u8BA1\u7B97\u5206\u503C\u3002\u662F\u5426\u786E\u5B9A\u4FEE\u6539\uFF1F")}):zn.update({content:ju.createElement("div",null,"\u60A8\u5DF2\u53D6\u6D88\u52FE\u9009",ju.createElement("span",{style:{color:"#165DFF"}},"\u201C \u591A\u9009\u9898\u6F0F\u9009\u90E8\u5206\u7ED9\u5206 \u201D"),"\uFF0C\u4FDD\u5B58\u8BBE\u7F6E\u540E\u5C06\u4F1A\u6309\u7167\u65B0\u7684\u7ED9\u5206\u65B9\u5F0F\u91CD\u65B0\u8BA1\u7B97\u5206\u503C\u3002\u662F\u5426\u786E\u5B9A\u4FEE\u6539\uFF1F")});return}hn(!0);const nn=yield(0,Ce.ZP)(`/api/exercises/${Be==null?void 0:Be.categoryId}/property_settings.json`,{method:"post",body:Yt});hn(!1),nn.status===0&&(pe.ZP.success("\u4FDD\u5B58\u6210\u529F"),Dn(""),ae({type:"exercise/getCommonHeader",payload:Xc({},Be)}),ae({type:"exercise/getWorkSetting",payload:Xc({},Be)}))});return ju.createElement("section",{className:pu.scoreSettingWrapper,style:{padding:"30px 50px"}},ju.createElement(jt.Z,{spinning:se["exercise/getWorkSetting"]||vn},(et==null?void 0:et.is_make_up_exercise)&&ju.createElement(ju.Fragment,null,ju.createElement(oe.Z,{align:"middle",justify:"space-between",style:{background:"#F6F7F9",padding:"13px 30px"}},ju.createElement(ve.Z,null,ju.createElement(Se.default,{checked:xt.open_make_up,disabled:Pe,onChange:Yt=>{xt.open_make_up=Yt.target.checked,Gt(Object.assign({},xt))},className:pu.mainRuleText},ju.createElement("span",{style:{fontWeight:400,color:"#000"},className:"font14"},"\u8865\u8003\u6263\u5206 ")),ju.createElement("span",{style:{color:"#666666"}},"\uFF08\u9009\u4E2D\uFF0C\u7CFB\u7EDF\u5C06\u5728\u6BCF\u4E2A\u53C2\u52A0\u8865\u8003\u5B66\u751F\u6700\u7EC8\u6210\u7EE9\u7684\u57FA\u7840\u4E0A\u81EA\u52A8\u6263\u9664\u5BF9\u5E94\u8BBE\u7F6E\u7684\u5206\u503C\uFF09"))),xt.open_make_up&&ju.createElement("div",{className:"flex item-center gap-10px",style:{background:"#F6F7F9",padding:"13px 54px"}},ju.createElement("div",null,"\u6263\u5206"),ju.createElement(Re.Z,{value:xt==null?void 0:xt.make_up_score,min:1,step:1,max:(_e=Dt==null?void 0:Dt.exercise)!=null&&_e.total_score?Number((pt=Dt==null?void 0:Dt.exercise)==null?void 0:pt.total_score):Number.MAX_SAFE_INTEGER,suffix:"\u5206",style:{width:"120px"},onChange:Yt=>{Gt(Hd(Xc({},xt),{make_up_score:Math.floor(Yt)}))}}))),ju.createElement(oe.Z,{align:"middle",justify:"space-between",style:{background:"#F6F7F9",padding:"13px 30px"}},ju.createElement(ve.Z,null,ju.createElement(Se.default,{checked:xt.use_blank_score,disabled:Pe,onChange:Yt=>{xt.use_blank_score=Yt.target.checked,Gt(Object.assign({},xt))},className:pu.mainRuleText},ju.createElement(ju.Fragment,null,ju.createElement("span",{style:{fontWeight:400,color:"#000"},className:"font14"},"\u591A\u9009\u9898\u6F0F\u9009\u90E8\u5206\u7ED9\u5206"))),ju.createElement("span",{style:{color:"#666666"}},"\uFF08\u9009\u4E2D\uFF0C\u5B66\u751F\u6709\u6F0F\u9009\u6B63\u786E\u7B54\u6848\u4F46\u662F\u9009\u4E2D\u7684\u7B54\u6848\u5168\u90E8\u6B63\u786E\uFF0C\u53EF\u83B7\u5F97\u90E8\u5206\u5206\u503C\uFF0C\u5206\u503C=\u9009\u4E2D\u7684\u7B54\u6848\u4E2A\u6570*\uFF08\u8BE5\u5C0F\u9898\u5206\u503C/\u6B63\u786E\u7B54\u6848\u7684\u4E2A\u6570\uFF09\uFF09"))),ju.createElement(oe.Z,{align:"middle",justify:"space-between",style:{background:"#F6F7F9",padding:"13px 30px"}},ju.createElement(ve.Z,null,ju.createElement(Se.default,{checked:xt.downcase,disabled:Pe,onChange:Yt=>{xt.downcase=Yt.target.checked,Gt(Object.assign({},xt))},className:pu.mainRuleText},ju.createElement("span",{style:{fontWeight:400,color:"#000"},className:"font14"},"\u586B\u7A7A\u9898\u5224\u5206\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),ju.createElement("span",{style:{color:"#666666"}},"\uFF08\u9009\u4E2D\uFF0C\u5219\u586B\u7A7A\u9898\u5728\u5224\u5206\u65F6\uFF0C\u5C06\u5FFD\u7565\u7B54\u6848\u603B\u4E2D\u82F1\u6587\u5B57\u6BCD\u5927\u5C0F\u5199\u9650\u5236\uFF09"))),ju.createElement(oe.Z,{align:"middle",justify:"space-between",style:{background:"#F6F7F9",padding:"13px 30px",marginTop:"1px"}},ju.createElement(ve.Z,null,ju.createElement(Se.default,{checked:xt.open_total_score,disabled:Pe,onChange:Yt=>{xt.open_total_score=Yt.target.checked,Yt.target.checked?(xt.open_score=!1,xt.open_score_reviewed=!0):(xt.open_score=!0,xt.open_score_reviewed=!1),Gt(Object.assign({},xt))},className:pu.mainRuleText},ju.createElement("span",{style:{fontWeight:400,color:"#000"},className:"font14"},"\u5141\u8BB8\u5B66\u751F\u67E5\u770B\u6210\u7EE9")),ju.createElement("span",{style:{color:"#666666"}},"\uFF08\u9009\u4E2D\uFF0C\u53EF\u914D\u7F6E\u5B66\u751F\u5728\u67D0\u9636\u6BB5\u53EF\u67E5\u770B\u8003\u8BD5\u6210\u7EE9\uFF09"))),xt.open_total_score&&ju.createElement(ju.Fragment,null,ju.createElement(oe.Z,{style:{background:"#F6F7F9",padding:"13px 54px"}},ju.createElement(Ie.ZP.Group,{disabled:Pe,value:xt.open_score?"afterEndTime":xt!=null&&xt.open_score_reviewed?"afterReview":"afterCommit",onChange:Yt=>{Yt.target.value==="afterEndTime"?Gt(ea=>Hd(Xc({},ea),{open_score:!0,open_score_reviewed:!1,open_score_commited:!1})):Yt.target.value==="afterReview"?Gt(ea=>Hd(Xc({},ea),{open_score:!1,open_score_reviewed:!0,open_score_commited:!1})):Gt(ea=>Hd(Xc({},ea),{open_score:!1,open_score_reviewed:!1,open_score_commited:!0}))}},ju.createElement(Ie.ZP,{value:"afterEndTime",style:{marginRight:"80px"}},ju.createElement("span",{style:{color:"#000"}},"\u8003\u8BD5\u622A\u6B62\u540E")),ju.createElement(Ie.ZP,{value:"afterCommit",style:{marginRight:"80px"}},ju.createElement("span",{style:{color:"#000"}},"\u63D0\u4EA4\u8BD5\u5377\u540E")),ju.createElement(Ie.ZP,{value:"afterReview"},ju.createElement("span",{style:{color:"#000"}},"\u8003\u8BD5\u622A\u6B62\u4E14\u8BD5\u5377\u8BC4\u9605\u5B8C\u6210\u540E")))),ju.createElement(oe.Z,{style:{background:"#F6F7F9",padding:"13px 30px",marginTop:"1px"}},ju.createElement(Se.default,{className:pu.mainRuleText,checked:xt.answered_open,disabled:Pe,onChange:Yt=>{xt.answered_open=Yt.target.checked,Gt(Object.assign({},xt))}},ju.createElement("span",{style:{fontWeight:400,color:"#000"},className:"font14"},"\u5141\u8BB8\u67E5\u770B\u8BD5\u5377")),ju.createElement("span",{style:{color:"#666666"}},"\uFF08\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u53EF\u4EE5\u67E5\u770B\u4E2A\u4EBA\u8003\u8BD5\u7B54\u5377\uFF09")),xt.answered_open&&ju.createElement(oe.Z,{style:{background:"#F6F7F9",padding:"13px 54px"}},ju.createElement(Ie.ZP.Group,{value:xt.answer_open,disabled:Pe,onChange:Yt=>{xt.answer_open=Yt.target.value,Gt(Object.assign({},xt))}},ju.createElement(Ie.ZP,{value:!0,style:{marginRight:"25px"}},ju.createElement("span",{style:{color:"#000"}},"\u663E\u793A\u8BD5\u9898\u7B54\u6848\u548C\u89E3\u6790")),ju.createElement(Ie.ZP,{value:!1},ju.createElement("span",{style:{color:"#000"}},"\u4E0D\u663E\u793A\u8BD5\u9898\u7B54\u6848\u548C\u89E3\u6790")))),ju.createElement(oe.Z,{style:{background:"#F6F7F9",padding:"13px 30px",marginTop:"1px"}},ju.createElement(Se.default,{className:pu.mainRuleText,checked:xt.score_open,disabled:Pe,onChange:Yt=>{xt.score_open=Yt.target.checked,Gt(Object.assign({},xt))}},ju.createElement("span",{style:{fontWeight:400,color:"#000"},className:"font14"},"\u5141\u8BB8\u5DF2\u63D0\u4EA4\u7B54\u9898\u7684\u5B66\u751F\u67E5\u770B\u5176\u5B83\u5B66\u751F\u7684\u6210\u7EE9")),ju.createElement("span",{style:{color:"#666666"}},"\uFF08\u9009\u4E2D\uFF0C\u5219\u5DF2\u7ECF\u4EA4\u5377\u7684\u5B66\u751F\u53EF\u4EE5\u67E5\u770B\u5176\u4ED6\u540C\u5B66\u672C\u573A\u8003\u8BD5\u7684\u6210\u7EE9\uFF09")),ju.createElement(oe.Z,{style:{background:"#F6F7F9",padding:"13px 30px"}},ju.createElement(Se.default,{className:pu.mainRuleText,checked:xt.show_statistic,disabled:Pe,onChange:Yt=>{xt.show_statistic=Yt.target.checked,Gt(Object.assign({},xt))}},ju.createElement("span",{style:{fontWeight:400,color:"#000"},className:"font14"},"\u5141\u8BB8\u5DF2\u63D0\u4EA4\u7B54\u9898\u7684\u5B66\u751F\u67E5\u770B\u7EDF\u8BA1\u7ED3\u679C")),ju.createElement("span",{style:{color:"#666666"}},"\uFF08\u9009\u4E2D\uFF0C\u5219\u5DF2\u7ECF\u4EA4\u5377\u7684\u5B66\u751F\u53EF\u4EE5\u672C\u573A\u8003\u8BD5\u7684\u7EDF\u8BA1\u7ED3\u679C\uFF09"))),((0,On.aN)()||((Ve=ce==null?void 0:ce.commonHeader)==null?void 0:Ve.exercise_author))&&ju.createElement(me.ZP,{type:"primary",style:{width:"138px",marginTop:"30px"},size:"large",onClick:Wt},"\u4FDD\u5B58")))};var g0=(0,he.connect)(({exercise:ce,loading:se,globalSetting:ae})=>({exercise:ce,loading:se.effects,globalSetting:ae}))(B0),Wd=z(65107),Gl=z(67294),fd=Object.defineProperty,$d=Object.defineProperties,ed=Object.getOwnPropertyDescriptors,f0=Object.getOwnPropertySymbols,e0=Object.prototype.hasOwnProperty,S0=Object.prototype.propertyIsEnumerable,Md=(ce,se,ae)=>se in ce?fd(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,ld=(ce,se)=>{for(var ae in se||(se={}))e0.call(se,ae)&&Md(ce,ae,se[ae]);if(f0)for(var ae of f0(se))S0.call(se,ae)&&Md(ce,ae,se[ae]);return ce},Jc=(ce,se)=>$d(ce,ed(se)),od=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Vd=({exercise:ce,globalSetting:se,loading:ae,dispatch:_e})=>{const{workSetting:pt,commonHeader:Ve}=ce,Dt=(0,he.useParams)();Dt.category=Dt.categoryId;const{verifyModelUser:et,ContactModalElement:Be}=(0,Wd.Z)(),[Pe,Ht]=(0,a.useState)(!1),[vn,hn]=(0,a.useState)(0),[xt,Gt]=(0,a.useState)(0),[Bn,Dn]=(0,a.useState)(!1),[Fn,Wt]=(0,a.useState)({}),[Ut,Yt]=(0,a.useState)(!1),[ea,nn]=(0,a.useState)([]),[zn,mn]=(0,a.useState)([]),[pa,Pt]=(0,a.useState)([]),[Nt,Rt]=(0,a.useState)([]),[Xt,cn]=(0,a.useState)([]);let[tn,Ja]=(0,a.useState)({select_appraise:!1,sealed_review:!1,review_type:0,end_time:"",is_open_ai_review:!1});(0,a.useEffect)(()=>{var La;!(0,On.aN)()&&!((La=pt==null?void 0:pt.exercise)!=null&&La.is_creator)&&Ht(!0)},[pt]),(0,a.useEffect)(()=>{ha()},[Ve]);const ha=()=>od(void 0,null,function*(){Dn(!0);const La=yield(0,Ce.ZP)(`/api/exercises/${Dt==null?void 0:Dt.categoryId}/distinguish_exercise_setting.json`,{method:"get"});Object.keys(tn).forEach(Zn=>{tn[Zn]=La==null?void 0:La[Zn]}),console.log(La,"res"),Wt(ld({},La)),cn((La==null?void 0:La.exercise_questions)||[]),Sa(ld({},La)),mn((La==null?void 0:La.course_review_teachers)||[]),Ja(Jc(ld({},tn),{select_appraise:!!La.end_time})),hn((La==null?void 0:La.total)||0),Gt((La==null?void 0:La.finish_total)||0),Dn(!1),Ba("")}),dt=()=>{const La=JSON.parse(JSON.stringify(tn));if(La.select_appraise){if(!La.end_time){pe.ZP.warning("\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A");return}if(!La.review_type&&!Nt.length){pe.ZP.warning("\u8BF7\u81F3\u5C11\u6DFB\u52A0\u4E00\u4F4D\u8BC4\u9605\u6559\u5E08");return}if(La.review_type&&!Xt.some(Zn=>!!Zn.appraise_teachers.length)){pe.ZP.warning("\u8BF7\u81F3\u5C11\u6DFB\u52A0\u4E00\u4F4D\u8BC4\u9605\u6559\u5E08");return}La.review_type===0&&(La.exercises=Nt==null?void 0:Nt.map(Zn=>{var bn;return{id:Zn.id,total:Zn.total,finish_total:Zn.finish_total,unfinished_total:Zn.unfinished_total,appraise_teacher_ids:(bn=Zn==null?void 0:Zn.appraise_teachers)==null?void 0:bn.map(ca=>({id:ca.id}))}})),La.review_type===1&&(La.exercise_questions=Xt==null?void 0:Xt.map(Zn=>{var bn;return{id:Zn.id,total:Zn.total,question_id:Zn.question_id,appraise_teacher_ids:(bn=Zn==null?void 0:Zn.appraise_teachers)==null?void 0:bn.map(ca=>({id:ca.id,message_status:ca.message_status}))}})),Fe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",icon:null,closable:!0,width:650,title:"\u63D0\u793A",content:Gl.createElement("div",null,Gl.createElement("div",null,"\u4E3A\u786E\u4FDD\u96C6\u4E2D\u9605\u5377\u6A21\u5F0F\u8BC4\u5206\u7ED3\u679C\u7684\u51C6\u786E\u6027\uFF0C\u4FDD\u5B58\u8BC4\u9605\u8BBE\u7F6E\u4E4B\u540E\uFF0C\u672C\u573A\u8003\u8BD5\u5C06",Gl.createElement("span",{style:{color:"#FA6400"}},"\u7981\u6B62"),"\u8FDB\u884C\u4EE5\u4E0B\u64CD\u4F5C\uFF1A"),Gl.createElement("div",{style:{padding:10,marginTop:5,background:"#F6F7F9"}},"1.\u53D1\u5E03\u65B0\u73ED\u7EA7\u8003\u8BD5",Gl.createElement("br",null),"2.\u4FEE\u6539\u672C\u573A\u8003\u8BD5\u7ED3\u675F\u65F6\u95F4",Gl.createElement("br",null),"3.\u5F00\u542F\u8865\u8003",Gl.createElement("br",null),"4.\u7F16\u8F91\u8BD5\u5377"),Gl.createElement("div",{className:"c-grey-999",style:{marginTop:10,color:"#FA6A0A",display:"flex",alignItems:"center"}},Gl.createElement(b.Z,{style:{marginRight:3}})," ",Gl.createElement("span",null,"\u6CE8\u610F\uFF1A\u5982\u9700\u53D1\u5E03\u65B0\u73ED\u7EA7\u8003\u8BD5\uFF0C\u8BF7\u521B\u5EFA\u65B0\u8BD5\u5377\u540E\u53D1\u5E03"))),onOk:()=>{Fa(La)}});return}Fa(La)},Fa=La=>od(void 0,null,function*(){Dn(!0);const Zn=yield(0,Ce.ZP)(`/api/exercises/${Dt==null?void 0:Dt.categoryId}/appraise_settings.json`,{method:"post",body:La});if(Dn(!1),Zn.status===0){pe.ZP.success("\u4FDD\u5B58\u6210\u529F"),Ba(""),_e({type:"exercise/getCommonHeader",payload:ld({},Dt)});return}}),ia=(La,Zn)=>{const bn=Math.floor(La/Zn);let ca=La%Zn;const Qn=[];for(let pn=0;pn0?1:0)),ca--;return Qn},wu=La=>{var Zn;if(La[0]){let bn=[];Nt.forEach(Qn=>bn=bn.concat(Qn.appraise_teachers));let ca=zn.filter(Qn=>bn.every(pn=>pn.id!==Qn.id));console.log(ca,"newItems"),Pt([...ca]),Yt(La)}if(!La[0]){let bn=[];bn=bn.concat(((Zn=Xt==null?void 0:Xt[La[1]])==null?void 0:Zn.appraise_teachers)||[]);let ca=zn.filter(Qn=>bn.every(pn=>pn.id!==Qn.id));Pt([...ca]),Yt(La)}},Sa=La=>{if(La!=null&&La.start_appraise){Rt((La==null?void 0:La.exercises)||[]);return}let Zn=La==null?void 0:La.exercises;const bn=ia(La==null?void 0:La.total,Zn.length),ca=ia(La==null?void 0:La.finish_total,Zn.length);bn.forEach((Qn,pn)=>{Zn[pn].total=Qn}),ca.forEach((Qn,pn)=>{Zn[pn].finish_total=Qn,Zn[pn].unfinished_total=Zn[pn].total-Zn[pn].finish_total}),Zn=Zn.filter(Qn=>Qn.total>0),Rt(JSON.parse(JSON.stringify(Zn)))},Hn=()=>{if(!ea.length){pe.ZP.warning("\u8BF7\u81F3\u5C11\u6DFB\u52A0\u4E00\u4F4D\u8BC4\u9605\u6559\u5E08");return}if(Ut[0]){if(Ut[1]===null){const La=pa.filter(Qn=>ea.includes(Qn.id));let Zn=[...Nt,...La==null?void 0:La.map(Qn=>({appraise_teachers:[Qn],total:0,finish_total:0,unfinished_total:0}))];const bn=ia(vn,Zn.length),ca=ia(xt,Zn.length);bn.forEach((Qn,pn)=>{Zn[pn].total=Qn}),ca.forEach((Qn,pn)=>{Zn[pn].finish_total=Qn,Zn[pn].unfinished_total=Zn[pn].total-Zn[pn].finish_total}),Zn=Zn.filter(Qn=>Qn.total>0),Rt(JSON.parse(JSON.stringify(Zn))),Yt(!1)}if(Ut[1]!==null){const La=pa.filter(bn=>ea.includes(bn.id));let Zn=[];Nt.forEach((bn,ca)=>{if(Ut[1]===ca){Zn.push(Jc(ld({},bn),{appraise_teachers:[...bn.appraise_teachers,...La]}));return}Zn.push(bn)}),Rt(Zn),Yt(!1)}}if(!Ut[0]&&Ut[1]!==null){let La=pa.filter(bn=>ea.includes(bn.id));La=La.map(bn=>Jc(ld({},bn),{message_status:Fn!=null&&Fn.start_appraise?1:0}));let Zn=[];Xt.forEach((bn,ca)=>{if(Ut[1]===ca){Zn.push(Jc(ld({},bn),{appraise_teachers:[...bn.appraise_teachers,...La]}));return}Zn.push(bn)}),cn(Zn),Yt(!1)}},Oa=[{title:"\u5E8F\u53F7",dataIndex:"index",align:"center",render:(La,Zn,bn)=>bn+1,width:70},{title:"\u8BC4\u9605\u6559\u5E08",align:"center",dataIndex:"appraise_teachers",className:pu.padding,render:(La,Zn,bn)=>Gl.createElement("span",{className:pu.tagWrap},Gl.createElement("div",null,La==null?void 0:La.map(ca=>Gl.createElement("div",{className:pu.tag,key:ca.id},Gl.createElement("b",{title:ca.name},ca.name),(ca==null?void 0:ca.disabled)!==!0&&!Pe&&Gl.createElement("span",{onClick:Qn=>{const pn=La.filter(En=>En.id!==ca.id),Tn=Nt.map((En,da)=>da===bn?Jc(ld({},En),{appraise_teachers:pn}):En);pn.length?Rt(Tn):Fe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5220\u9664\u6B64\u6559\u5E08\uFF0C\u8BD5\u5377\u5C06\u91CD\u65B0\u5747\u5206\u7ED9\u5176\u4ED6\u8BC4\u9605\u6559\u5E08\uFF1B\u5982\u9700\u6DFB\u52A0\u6307\u5B9A\u6559\u5E08\uFF0C\u8BF7\u70B9\u51FB\u201C+\u8BC4\u9605\u6559\u5E08\u201D\u6309\u94AE\u3002",onOk:()=>{const En=Nt==null?void 0:Nt.filter((au,Ya)=>Ya!==bn),da=ia(vn,En.length),Ha=ia(xt,En.length);da.forEach((au,Ya)=>{En[Ya].total=au}),Ha.forEach((au,Ya)=>{En[Ya].finish_total=au,En[Ya].unfinished_total=En[Ya].total-En[Ya].finish_total}),Rt(JSON.parse(JSON.stringify(En)))}})}},Gl.createElement("i",{className:"iconfont icon-guanbi7"}))))),!Pe&&Gl.createElement("span",{onClick:()=>wu([!0,bn]),style:{fontSize:14,fontWeight:400},className:"iconfont c-gcrz-primary current icon-tianjiatimu ml3"}," \u6DFB\u52A0\u5171\u8BC4\u6559\u5E08"))},{title:"\u603B\u6570\u91CF",align:"center",dataIndex:"total",width:90},{title:"\u5DF2\u8BC4\u9605\u6570\u91CF",align:"center",dataIndex:"finish_total",width:100},{title:"\u5F85\u8BC4\u9605\u6570\u91CF",align:"center",dataIndex:"unfinished_total",width:100}],tu=[{title:"\u5E8F\u53F7",dataIndex:"index",align:"center",render:(La,Zn,bn)=>bn+1,width:70},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",align:"center",width:100},{title:"\u8BC4\u9605\u6559\u5E08",align:"center",className:pu.padding,dataIndex:"appraise_teachers",render:(La,Zn,bn)=>Gl.createElement("span",{className:pu.tagWrap},Gl.createElement("div",null,La==null?void 0:La.map(ca=>Gl.createElement("div",{className:pu.tag,key:ca.id},Gl.createElement("b",{title:ca.name},ca.name),(ca==null?void 0:ca.disabled)!==!0&&!Pe&&Gl.createElement("span",{onClick:()=>{const Qn=La.filter(Tn=>Tn.id!==ca.id),pn=Xt.map((Tn,En)=>En===bn?Jc(ld({},Tn),{appraise_teachers:Qn}):Tn);cn(pn)}},Gl.createElement("i",{className:"iconfont icon-guanbi7"}))))),!Pe&&Gl.createElement("span",{onClick:()=>wu([!1,bn]),className:"iconfont c-gcrz-primary current icon-tianjiatimu ml3"}))},{title:"\u603B\u6570\u91CF",align:"center",dataIndex:"total",width:90},{title:"\u5DF2\u8BC4\u9605\u6570\u91CF",align:"center",dataIndex:"finish_total",width:100},{title:"\u5F85\u8BC4\u9605\u6570\u91CF",align:"center",dataIndex:"unfinished_total",width:100}];(0,a.useEffect)(()=>{Ba("\u8868\u5355\u672A\u4FDD\u5B58")},[tn]);const Ka=La=>{La.preventDefault(),La.returnValue=""},Ba=(La="")=>{_e({type:"exercise/setActionTabs",payload:{key:La}})};return Gl.createElement("section",{className:pu.form,style:{padding:"30px 50px",marginBottom:"0px"}},Gl.createElement(jt.Z,{spinning:Bn},Gl.createElement("div",{className:pu.title},"\u96C6\u4E2D\u8BC4\u9605",Gl.createElement("span",{style:{color:"#666",fontWeight:400,fontSize:14}},"\uFF08\u5F53\u5B58\u5728\u5B66\u751F\u5DF2\u4EA4\u5377\u3001\u8003\u8BD5\u72B6\u6001\u4E3A\u201C\u5DF2\u622A\u6B62\u201D\uFF0C\u4E14\u8BD5\u5377\u5305\u542B\u586B\u7A7A\u3001\u7B80\u7B54\u3001\u7F16\u7A0B\u3001\u7A0B\u5E8F\u586B\u7A7A\u3001\u5B9E\u8BAD\u9898\u4EFB\u610F\u9898\u578B\u65F6\uFF0C\u65B9\u53EF\u5F00\u542F\u96C6\u4E2D\u8BC4\u9605\uFF09")),Gl.createElement("div",{style:{background:"#F6F7F9",padding:"10px 30px",marginTop:"1px"}},Gl.createElement(Se.default,{checked:tn.select_appraise,disabled:Pe||!(Fn!=null&&Fn.can_open_appraise&&!(Fn!=null&&Fn.end_time)),onChange:La=>{tn.select_appraise=La.target.checked,Ja(Object.assign({},tn))}}),Gl.createElement("span",{style:{color:"#000",fontSize:"14px",marginLeft:"10px"}},"\u96C6\u4E2D\u9605\u5377"),Gl.createElement("span",{style:{color:"#666",marginLeft:"5px"}},"\uFF08\u5F00\u542F\u96C6\u4E2D\u9605\u5377\u540E\u65E0\u6CD5\u5173\u95ED\uFF09"),tn.select_appraise&&Gl.createElement("div",{style:{marginTop:"15px",marginLeft:30}},Gl.createElement("span",{style:{color:"#666666",marginRight:"20px"}},Gl.createElement("span",{style:{color:"red"}},"*"),"\u622A\u6B62\u65F6\u95F4"),Gl.createElement(Aa.default,{style:{width:234},size:"large",placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Ge()((0,de.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:Pe,allowClear:!1,value:tn.end_time?Ge()(tn.end_time):"",disabledDate:Zt.Q8,disabledTime:La=>(0,Zt.d0)(La),onChange:(La,Zn)=>{tn.end_time=Zn,Ja(Object.assign({},tn))}}))),tn.select_appraise&&Gl.createElement("div",null,Gl.createElement("div",{style:{background:"#F6F7F9",padding:"10px 30px",marginTop:1}},Gl.createElement(Se.default,{checked:tn.sealed_review,disabled:Pe||!(Fn!=null&&Fn.change_sealed_review),onChange:La=>{tn.sealed_review=La.target.checked,Ja(Object.assign({},tn))}}),Gl.createElement("span",{style:{marginLeft:"10px",fontSize:"14px",color:"#000"}},"\u5C01\u5377\u8BC4\u9605"),Gl.createElement("span",{style:{color:"#666",marginLeft:"5px"}},"\uFF08\u9009\u4E2D\uFF0C\u6559\u5E08\u5728\u96C6\u4E2D\u8BC4\u9605\u754C\u9762\u4E0D\u663E\u793A\u5B66\u751F\u4FE1\u606F\uFF09")),Gl.createElement("div",{style:{background:"#F6F7F9",padding:"10px 30px",marginTop:1}},Gl.createElement("div",{style:{color:"#333333",fontSize:14,fontWeight:600,marginBottom:20}},"\u8BC4\u9605\u6A21\u5F0F",Gl.createElement("span",{style:{fontWeight:400,fontSize:14,color:"#666"}},"\uFF08\u8BC4\u9605\u6A21\u5F0F\u5F00\u542F\u540E\u4E0D\u53EF\u66F4\u6539\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C\uFF09")),Gl.createElement(Ie.ZP.Group,{value:tn.review_type,disabled:Pe||!!(Fn!=null&&Fn.end_time),style:{marginLeft:30},onChange:La=>{tn.review_type=La.target.value,Ja(Object.assign({},tn))}},Gl.createElement(Ie.ZP,{value:0},Gl.createElement("span",{style:{color:"#000"}},"\u8BD5\u5377\u6A21\u5F0F"),Gl.createElement("span",{style:{color:"#666",fontWeight:400,fontSize:14}},"\uFF08\u5B66\u751F\u8BD5\u5377\u5C06\u5747\u5300\u5206\u914D\u7ED9\u8BC4\u9605\u6559\u5E08\uFF0C\u65E0\u6CD5\u5747\u5206\u591A\u51FA\u7684\u8BD5\u5377\u968F\u673A\u5206\u914D\uFF09")),Gl.createElement(Ie.ZP,{style:{marginLeft:"50px"},value:1},Gl.createElement("span",{style:{color:"#000"}},"\u8BD5\u9898\u6A21\u5F0F"),Gl.createElement("span",{style:{color:"#666",fontWeight:400,fontSize:14}},"\uFF08\u5C06\u5355\u4E2A\u8BD5\u9898\u6307\u5B9A\u7ED9\u591A\u4E2A\u6559\u5E08\u5171\u540C\u8BC4\u9605\uFF09"))),Gl.createElement(oe.Z,{style:{width:"100%",marginTop:"15px"},align:"middle"},Gl.createElement("div",{style:{color:"#666666",marginRight:"20px"}},Gl.createElement("span",{style:{color:"red"}},"*"),"\u8BC4\u9605\u6559\u5E08"),tn.review_type===0&&Gl.createElement("div",{style:{flex:1}},Nt.length>0&&Gl.createElement(x.default,{bordered:!0,className:"mb20",pagination:!1,dataSource:Nt,columns:Oa}),(Fn==null?void 0:Fn.start_appraise)===!1&&!Pe&&Gl.createElement("div",{onClick:()=>wu([!0,null]),style:{display:vn==1&&(Nt==null?void 0:Nt.length)===1&&"none",width:"124px",height:"38px",lineHeight:"38px",border:"1px #3061D0 solid",borderRadius:"2px",textAlign:"center",cursor:"pointer",color:"#3061D0",background:"#fff"}},"\u6DFB\u52A0\u8BC4\u9605\u6559\u5E08")),tn.review_type===1&&Gl.createElement("div",{style:{flex:1}},Xt.length>0&&Gl.createElement(x.default,{bordered:!0,pagination:!1,rowKey:"id",dataSource:Xt,columns:tu}))))),((0,On.aN)()||!!Fn.exercise_author)&&Gl.createElement(me.ZP,{type:"primary",style:{width:"138px",marginTop:"30px"},size:"large",onClick:dt},"\u4FDD\u5B58")),Be(),Gl.createElement(Fe.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:!!Ut,title:(Ut==null?void 0:Ut[1])===null?"\u6307\u5B9A\u8BC4\u9605\u6559\u5E08":"\u5171\u540C\u8BC4\u9605\u6559\u5E08",bodyStyle:{padding:"0 16px"},okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",width:"800px",onOk:Hn,afterClose:()=>{nn([])},onCancel:()=>{Yt(!1)}},Gl.createElement(x.default,{pagination:{hideOnSinglePage:!0},bordered:!0,rowSelection:{type:"checkbox",onChange:La=>{nn(La)}},rowKey:"id",dataSource:pa,columns:[{title:"\u6559\u5E08\u59D3\u540D",align:"center",dataIndex:"name",width:"25%"},{title:"\u624B\u673A",align:"center",dataIndex:"phone",width:"18%"},{title:"\u90AE\u7BB1",align:"center",dataIndex:"email",width:"28%"},{title:"\u89D2\u8272",align:"center",dataIndex:"identity"}]})))};var Gd=(0,he.connect)(({exercise:ce,loading:se,globalSetting:ae})=>({exercise:ce,loading:se.effects,globalSetting:ae}))(Vd),xo=z(67294),v0=Object.defineProperty,P0=Object.defineProperties,t0=Object.getOwnPropertyDescriptors,n0=Object.getOwnPropertySymbols,Kd=Object.prototype.hasOwnProperty,Yd=Object.prototype.propertyIsEnumerable,p0=(ce,se,ae)=>se in ce?v0(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,Rd=(ce,se)=>{for(var ae in se||(se={}))Kd.call(se,ae)&&p0(ce,ae,se[ae]);if(n0)for(var ae of n0(se))Yd.call(se,ae)&&p0(ce,ae,se[ae]);return ce},E0=(ce,se)=>P0(ce,t0(se)),D0=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const b0=({exercise:ce,globalSetting:se,loading:ae,dispatch:_e})=>{var pt,Ve;const{workSetting:Dt,commonHeader:et}=ce,[Be]=fe.default.useForm(),Pe=(0,he.useParams)();Pe.category=Pe.categoryId;const[Ht,vn]=(0,a.useState)(!1),[hn,xt]=(0,a.useState)(!1),Gt={forbid_screen:!1,screen_key:((pt=Dt==null?void 0:Dt.exercise)==null?void 0:pt.screen_key)||"",use_white_list:!1,white_list:[],net_limit:!1,net_limit_list:"",forbid_virtual:!1};let[Bn,Dn]=(0,a.useState)(Gt);const[Fn,Wt]=(0,a.useState)(!1);(0,a.useEffect)(()=>{var Pt,Nt;Ut(),(Pt=Dt==null?void 0:Dt.exercise)!=null&&Pt.id&&!(0,On.aN)()&&!((Nt=Dt==null?void 0:Dt.exercise)!=null&&Nt.is_creator)&&vn(!0)},[ce==null?void 0:ce.workSetting]),(0,a.useEffect)(()=>{((et==null?void 0:et.exercise_status)==="5"||et!=null&&et.appraise_label)&&vn(!0)},[et]),(0,a.useEffect)(()=>{},[]),(0,a.useEffect)(()=>{ce.actionTabs.key==="insterIp"&&(ce.actionTabs.data.ip?Bn[ce.actionTabs.type]=[...Bn[ce.actionTabs.type]||[],...ce.actionTabs.data.ip]:Bn[ce.actionTabs.type]=[...Bn[ce.actionTabs.type]||[],`${ce.actionTabs.data.startIP},${ce.actionTabs.data.startIP.substring(0,ce.actionTabs.data.startIP.lastIndexOf("."))+"."+ce.actionTabs.data.endIP}`],Yt(Bn),Wt(!0))},[ce.actionTabs]);const Ut=()=>{const Pt=JSON.parse(JSON.stringify(Dt));Object.keys(Bn).forEach(Nt=>{var Rt;Bn[Nt]=(Rt=Pt==null?void 0:Pt.exercise)==null?void 0:Rt[Nt]}),Yt(E0(Rd({},Bn),{ip_limit:Bn.ip_limit!=="no"}))},Yt=Pt=>{Dn(Pt),Be.setFieldsValue(Pt)};function ea(Pt=""){if(!Pt)return!1;const Nt=Pt.split(` -`),Rt=/^(http|https):\/\//;for(let Xt=0;Xt{var Nt,Rt;if(Pt.categoryId=Pe.categoryId,Pt.forbid_screen&&!(Pt!=null&&Pt.screen_key.replace(/\s+/g,""))){pe.ZP.warning("\u8BF7\u586B\u5199\u89E3\u9501\u5207\u5C4F\u7801");return}if(Pt!=null&&Pt.use_white_list&&!((Nt=Pt==null?void 0:Pt.white_list)!=null&&Nt.length)){pe.ZP.warning("\u8BF7\u9009\u62E9\u767D\u540D\u5355\u7A0B\u5E8F");return}if(Pt!=null&&Pt.net_limit){if(Pt!=null&&Pt.net_limit_list&&!((Rt=Pt==null?void 0:Pt.net_limit_list)!=null&&Rt.replace(/\s+/g,""))){pe.ZP.warning("\u7F51\u7EDC\u9650\u5236\u4E2D\uFF0C\u4E0D\u5141\u8BB8\u5168\u90E8\u4E3A\u7A7A\u683C");return}if(ea(Pt==null?void 0:Pt.net_limit_list)){pe.ZP.warning("\u7F51\u7EDC\u9650\u5236\u4E2D\uFF0C\u57DF\u540D\u4E0D\u9700\u8981\u586B\u5199http/https\u7684\u524D\u7F00\uFF0C\u8BF7\u4FEE\u6539");return}}zn(Pt)},zn=Pt=>D0(void 0,null,function*(){xt(!0);const Nt=yield(0,Ce.ZP)(`/api/exercises/${Pe==null?void 0:Pe.categoryId}/client_cheating_settings.json`,{method:"post",body:Pt});xt(!1),Nt.status===0&&(pe.ZP.success("\u4FDD\u5B58\u6210\u529F"),_e({type:"exercise/getCommonHeader",payload:Rd({},Pe)}),_e({type:"exercise/getWorkSetting",payload:Rd({},Pe)}),Wt(!1))});(0,a.useEffect)(()=>{mn(Fn?"\u8868\u5355\u672A\u4FDD\u5B58":"")},[Fn]);const mn=(Pt="")=>{_e({type:"exercise/setActionTabs",payload:{key:Pt}})},pa=[{value:"360huabao",label:"360\u753B\u62A5"},{value:"360se",label:"360\u6D4F\u89C8\u5668"},{value:"chrome",label:"google\u6D4F\u89C8\u5668"},{value:"Code",label:"vscode\u7F16\u8F91\u5668"},{value:"msedge",label:"edge\u6D4F\u89C8\u5668"},{value:"QQ",label:"qq\u6D4F\u89C8\u5668"},{value:"SystemSettings",label:"\u7CFB\u7EDF\u8BBE\u7F6E"},{value:"WeChat",label:"\u5FAE\u4FE1"},{value:"WindowsTerminal",label:"\u7EC8\u7AEF"},{value:"WINWORD",label:"\u5FAE\u8F6FOffice"},{value:"Taskmgr",label:"\u4EFB\u52A1\u7BA1\u7406\u5668"},{value:"EXCEL",label:"Microsoft Excel"},{value:"POWERPNT",label:"Microsoft PowerPoint"},{value:"firefox",label:"Firefox"},{value:"DingTalk",label:"\u9489\u9489"}];return xo.createElement("section",{className:pu.formDom,style:{padding:"30px 50px"}},xo.createElement(jt.Z,{spinning:ae["exercise/getWorkSetting"]||hn},xo.createElement(fe.default,{form:Be,name:"basicForm",initialValues:Gt,colon:!1,onValuesChange:(Pt,Nt)=>{console.log("onValuesChange",Nt);let Rt=Nt;for(const Xt in Pt)(Xt=="ip_bind"||Xt=="ip_limit")&&!Nt.is_locked&&Nt[Xt]&&(Rt.is_locked=!0),Xt=="open_camera"&&(Rt.photo_count=Rt.photo_count||5);Yt(Rt),Wt(!0)},onFinish:nn},xo.createElement("div",{className:pu.title},"\u5BA2\u6237\u7AEF\u8BBE\u7F6E"),xo.createElement("div",{style:{background:"#F6F7F9",padding:"10px 30px"}},xo.createElement("div",{style:{color:"#000"}},"1\u3001\u82E5\u672A\u8BBE\u7F6E\u5BA2\u6237\u7AEF\u7684\u9632\u4F5C\u5F0A\u89C4\u5219\uFF0C\u652F\u6301\u5B66\u751F\u7F51\u9875\u7AEF\u4E0E\u5BA2\u6237\u7AEF\u540C\u65F6\u6309\u7167\u540C\u4E00\u5957\u89C4\u5219\u8FDB\u884C\u8003\u8BD5\uFF0C\u8003\u8BD5\u7684\u6570\u636E\u4E24\u7AEF\u540C\u6B65\u3002\u82E5\u8BBE\u7F6E\u5BA2\u6237\u7AEF\u8003\u8BD5\u4E0B\u7684\u4EFB\u610F\u89C4\u5219\uFF0C\u5219\u5224\u5B9A\u4E3A\u5F00\u542F\u5BA2\u6237\u7AEF\u8BBE\u7F6E\u7684\u8003\u8BD5\u3002"),xo.createElement("div",{style:{color:"#000",marginTop:"20px"}},"2\u3001\u5F00\u542F\u5BA2\u6237\u7AEF\u8BBE\u7F6E\u7684\u8003\u8BD5\uFF0C\u5B66\u751F\u53EA\u80FD\u5728Windows\u7CFB\u7EDF\u7684\u5BA2\u6237\u7AEF\u8FDB\u884C\u8003\u8BD5\uFF0C\u5E76\u4E14\u9700\u8981\u5B89\u88C5\u8003\u8BD5\u7CFB\u7EDF\u5BA2\u6237\u7AEF\uFF0C\u70B9\u51FB",xo.createElement("a",{onClick:()=>{window.open("/download")}},"\u3010\u4E0B\u8F7D\u5BA2\u6237\u7AEF\u3011"))),xo.createElement("div",{className:"ant-form-item",style:{background:"#F6F7F9",padding:"8px 30px",marginTop:"1px"}},xo.createElement(fe.default.Item,{name:"forbid_screen",valuePropName:"checked",style:{marginBottom:0}},xo.createElement(Se.default,{disabled:Ht},xo.createElement(xo.Fragment,null,xo.createElement("strong",{style:{fontSize:"14px",color:"#000"}},"\u7981\u6B62\u5207\u5C4F")))),Bn.forbid_screen&&xo.createElement(oe.Z,{className:pu.unlockKeyWrapper,align:"middle"},xo.createElement("div",{style:{color:"#666666"}},"\u89E3\u9501\u5207\u5C4F\u7801"),xo.createElement(Ae.Z,{title:"\u5982\u5B66\u751F\u9700\u89E3\u9664\u5207\u5C4F\u9650\u5236\uFF0C\u9700\u6559\u5E08\u8F93\u5165\u89E3\u9501\u7801\u89E3\u9664"},xo.createElement("i",{className:`iconfont icon-tishixiaowenhao ${pu.title_icon}`,style:{cursor:"pointer",margin:"0 10px"}})),xo.createElement(fe.default.Item,{name:"screen_key",style:{marginBottom:0}},xo.createElement(Le.default,{size:"large",className:pu.unlockKeyInput,disabled:!0,placeholder:"\u8BF7\u8F93\u5165\u89E3\u9501\u5207\u5C4F\u7801"})),xo.createElement(ve.Z,null,!Ht&&xo.createElement(me.ZP,{type:"link",onClick:()=>{Be.setFieldsValue({screen_key:Math.floor(Math.random()*1e6).toString().padStart(6,"0")})}},"\u6362\u4E00\u6362")))),xo.createElement("div",{className:"ant-form-item",style:{background:"#F6F7F9",padding:"8px 30px",marginTop:"1px"}},xo.createElement(fe.default.Item,{name:"use_white_list",valuePropName:"checked",style:{marginBottom:0}},xo.createElement(Se.default,{disabled:Ht},xo.createElement(xo.Fragment,null,xo.createElement("strong",{style:{fontSize:"14px",color:"#000"}},"\u8BBE\u7F6E\u767D\u540D\u5355\u7A0B\u5E8F")))),Bn.use_white_list&&xo.createElement(oe.Z,{className:pu.unlockKeyWrapper,align:"middle"},xo.createElement(fe.default.Item,{name:"white_list",style:{marginBottom:0,marginRight:10}},xo.createElement(ft.default,{mode:"tags",size:"large",disabled:Ht,style:{width:1016},options:pa})))),xo.createElement("div",{className:"ant-form-item",style:{background:"#F6F7F9",padding:"8px 30px",marginTop:"1px"}},xo.createElement(fe.default.Item,{name:"net_limit",valuePropName:"checked",style:{marginBottom:0}},xo.createElement(Se.default,{disabled:Ht},xo.createElement(xo.Fragment,null,xo.createElement("strong",{style:{fontSize:"14px",color:"#000"}},"\u7F51\u7EDC\u53EF\u8BBF\u95EE\u6E05\u5355")))),Bn.net_limit&&xo.createElement(oe.Z,{className:pu.unlockKeyWrapper,align:"middle"},xo.createElement(fe.default.Item,{name:"net_limit_list",style:{marginBottom:0}},xo.createElement(Le.default.TextArea,{rows:5,style:{width:1016},disabled:Ht,placeholder:`\u652F\u6301 http\u548Cip\u4E24\u79CD\u65B9\u5F0F\uFF0C\u591A\u4E2Ahttp\uFF0Cip\u591A\u884C\u5C55\u793A\u5982\uFF1A +`)}]};var Se=z(84204),Ae=z.n(Se),Ie=(ut,un,Pn)=>new Promise((Rn,bt)=>{var An=zt=>{try{Qt(Pn.next(zt))}catch(jt){bt(jt)}},Nn=zt=>{try{Qt(Pn.throw(zt))}catch(jt){bt(jt)}},Qt=zt=>zt.done?Rn(zt.value):Promise.resolve(zt.value).then(An,Nn);Qt((Pn=Pn.apply(ut,un)).next())});const ze={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},Me=(ut,un,Pn,Rn)=>{const bt=un.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:Pn.lineNumber,endColumn:Pn.column});return Array.from(new Set(bt.match(/\b\w{2,}\b/g)||[])).map(Nn=>({label:Nn,kind:ut.languages.CompletionItemKind.Text,insertText:Nn,range:Rn}))},me=(ut,un,Pn,Rn)=>{ut.languages.registerCompletionItemProvider(un,{provideCompletionItems(bt,An){const Nn=bt.getWordUntilPosition(An),Qt={startLineNumber:An.lineNumber,endLineNumber:An.lineNumber,startColumn:Nn.startColumn,endColumn:Nn.endColumn},zt=bt.getLineContent(An.lineNumber).substring(Nn.startColumn-2,Nn.endColumn);return{suggestions:[...Me(ut,bt,An,Qt),...Pn.map(sn=>({label:sn,kind:ut.languages.CompletionItemKind.Keyword,documentation:sn,insertText:sn,insertTextRules:ut.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Qt})),...Rn.map(sn=>({label:sn.label,kind:ut.languages.CompletionItemKind.Snippet,documentation:sn.content,insertText:zt.startsWith("#")?sn.content.replace(/#/,""):sn.content,insertTextRules:ut.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Qt}))]}}})};var oe=ut=>{ze.languages.forEach(un=>{ut.languages.registerDocumentFormattingEditProvider(un,{provideDocumentFormattingEdits(Pn){return Ie(this,null,function*(){const Rn=Ae()(Pn.getValue(),{indent_size:2,indent_char:" ",max_preserve_newlines:2,preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:0,indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:Pn.getFullModelRange(),text:Rn}]})}})}),me(ut,"java",he.keywords,he.quickKey),me(ut,"cpp",Fe.keywords,Fe.quickKey),me(ut,"c",ke.keywords,[]),me(ut,"python",xe.keywords,xe.quickKey),me(ut,"scala",pe.keywords,pe.quickKey)};const E="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var y=Object.defineProperty,x=(ut,un,Pn)=>un in ut?y(ut,un,{enumerable:!0,configurable:!0,writable:!0,value:Pn}):ut[un]=Pn,b=(ut,un,Pn)=>x(ut,typeof un!="symbol"?un+"":un,Pn);const ee=class zg{constructor(un,Pn,Rn){this.placeholder=un,this.editor=Pn,this.monaco=Rn,Pn.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return zg.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};b(ee,"ID","editor.widget.placeholderHint");var ne=ee,de=z(84144),ye=z(2453),fe=z(83062),ve=z(96486),Ne=z(33054),Le=z(74855),Re=Object.defineProperty,He=Object.defineProperties,We=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,it=(ut,un,Pn)=>un in ut?Re(ut,un,{enumerable:!0,configurable:!0,writable:!0,value:Pn}):ut[un]=Pn,lt=(ut,un)=>{for(var Pn in un||(un={}))Ue.call(un,Pn)&&it(ut,Pn,un[Pn]);if(Ge)for(var Pn of Ge(un))Ye.call(un,Pn)&&it(ut,Pn,un[Pn]);return ut},Bt=(ut,un)=>He(ut,We(un)),ct=(ut,un)=>{var Pn={};for(var Rn in ut)Ue.call(ut,Rn)&&un.indexOf(Rn)<0&&(Pn[Rn]=ut[Rn]);if(ut!=null&&Ge)for(var Rn of Ge(ut))un.indexOf(Rn)<0&&Ye.call(ut,Rn)&&(Pn[Rn]=ut[Rn]);return Pn},nt=(ut,un,Pn)=>new Promise((Rn,bt)=>{var An=zt=>{try{Qt(Pn.next(zt))}catch(jt){bt(jt)}},Nn=zt=>{try{Qt(Pn.throw(zt))}catch(jt){bt(jt)}},Qt=zt=>zt.done?Rn(zt.value):Promise.resolve(zt.value).then(An,Nn);Qt((Pn=Pn.apply(ut,un)).next())});function Ze(ut){return/^\d+$/.test(ut)?`${ut}px`:ut}function yt(){}let ht=!1;const Je={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function ot(ut=[]){let un=ut;if(Array.isArray(ut)){for(let Pn=0;Pnnt(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(ut){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",ut)}});var Mt=ut=>{var un=ut,{width:Pn="100%",height:Rn="100%",value:bt,language:An="javascript",style:Nn={},options:Qt={},overrideServices:zt={},theme:jt="vs-dark",onEditBlur:sn,isCopy:vt=!1,onSave:Tt,autoHeight:qt=!1,forbidCopy:St=!1,onChange:Ke=yt,editorDidMount:ln=yt,onFocus:Un=yt,onBreakPoint:Ca=yt,breakPointValue:Cu=[],filename:Da="educoder.txt",errorLine:nr,errorContent:cu="",highlightLine:or,openBreakPoint:Aa=!1,placeholder:Zt="",showMiniMap:xn=!0}=un,vl=ct(un,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const Er=(0,a.useRef)(),er=(0,a.useRef)({}),Pa=(0,a.useRef)(),Za=(0,a.useRef)(),qn=(0,a.useRef)([]),Vn=(0,a.useRef)(!1),Qa=(0,a.useRef)(),gu=(0,a.useRef)(),_u=(0,a.useRef)(!1),[ir,ul]=(0,a.useState)(!1);function On(){let Lt;return Er.current&&(Lt=new Ce.Z(Wn=>{for(let ra of Wn)(ra.target.offsetHeight>0||ra.target.offsetWidth>0)&&er.current.instance.layout()}),Lt.observe(Er.current)),Lt}function Jt(){ye.ZP.warning({content:decodeURIComponent(E),key:"monaco-editor-tip"})}const _n=()=>{let Lt=er.current.instance;if(bt!=null&&Lt&&ir){const Wn=Lt.getModel();Wn&&bt!==Wn.getValue()&&(ht=!0,Wn.setValue(bt),Lt.layout(),ht=!1)}};(0,a.useEffect)(()=>{const Lt=Ne.Z.subscribe("formatDocument",Wn=>{var ra;let xa=er.current.instance;(ra=xa==null?void 0:xa.getAction)==null||ra.call(xa,"editor.action.formatDocument").run()});return window.updateMonacoValue=Wn=>{Ke(Wn)},Lt},[]),(0,a.useEffect)(()=>{var Lt;let Wn=er.current.instance;Za.current&&clearTimeout(Za.current),Za.current=setTimeout(()=>{_n()},500),bt&&(bt!=null&&bt.length)&&((Lt=Wn==null?void 0:Wn.updateOptions)==null||Lt.call(Wn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(bt.split(/\r\n|\r|\n/g).length))+3,5)}))},[bt,ir,er.current]),(0,a.useEffect)(()=>{if(nr&&er.current&&er.current.instance){let Wn=er.current.instance;Wn.changeViewZones(function(ra){var xa=document.createElement("div");xa.style.padding="10px 20px",xa.style.width="calc(100% - 20px)",xa.className="my-error-line-wrp",xa.innerHTML=cu,ra.addZone({afterLineNumber:nr||11,heightInLines:3,domNode:xa})});var Lt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};Wn.addOverlayWidget(Lt),Wn.revealPositionInCenter({lineNumber:20,column:1})}},[nr,er.current,ir]);const Gn=(Lt="",Wn)=>{if(!Lt||Lt.trim()==="")return!0;const xa=er.current.instance.getModel().getLineTokens(Wn);let Kn=!1;for(let Du=0;Du<2;Du++)xa.getStandardTokenType(Du)===1&&(Kn=!0);return Kn};(0,a.useEffect)(()=>{var Lt;const Wn=(Lt=er.current)==null?void 0:Lt.instance;if(Wn&&ir&&St){const ra=Wn.onDidBlurEditorWidget(()=>{_u.current=!1}),xa=Wn.onDidFocusEditorText(()=>{_u.current=!0});return()=>{ra.dispose(),xa.dispose()}}},[er.current,ir,St]),(0,a.useEffect)(()=>{var Lt;if((Lt=er.current)!=null&&Lt.instance&&ir&&Aa){let Wn=er.current.instance,ra=Wn.getModel();if(!ra)return;(()=>{var Wa;let rl=[],sr=[];const uu=ra.getAllDecorations();for(let Ua of uu)Ua.options.className==="highlighted-line"&&(rl.push((Wa=Ua==null?void 0:Ua.range)==null?void 0:Wa.startLineNumber),sr.push(Ua==null?void 0:Ua.id));if(or===rl[0])return;ra.deltaDecorations(sr,[]);const ya=ra.getLineCount();or&&or<=ya&&(Wn.deltaDecorations([],[{range:new Ct.Range(or,1,or,ra.getLineMaxColumn(or)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Wn.revealLineInCenter(or))})();const Kn=(Wa=!1)=>{var rl;let sr=[],uu=[];const ya=ra.getAllDecorations();for(let Ua of ya)Ua.options.linesDecorationsClassName==="breakpoints-select"&&(sr.push((rl=Ua==null?void 0:Ua.range)==null?void 0:rl.startLineNumber),uu.push(Ua==null?void 0:Ua.id));if(Wa)return{lines:sr,ids:uu};Ca(sr)},Du=Wa=>nt(void 0,null,function*(){let rl={range:new Ct.Range(Wa,1,Wa,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield ra.deltaDecorations([],[rl]),Kn()}),la=Wa=>nt(void 0,null,function*(){let rl=[];const sr=Wn.getLineDecorations(Wa);for(let uu of sr)uu.options.linesDecorationsClassName==="breakpoints-select"&&rl.push(uu.id);yield ra.deltaDecorations(rl,[]),Kn()}),lu=Wa=>{let rl=Wn.getLineDecorations(Wa);for(let sr of rl)if(sr.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,ve.isEqual)(Cu,Kn(!0).lines)){ra.deltaDecorations(Kn(!0).ids,[]);const Wa=Cu.map(rl=>({range:new Ct.Range(rl,1,rl,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));ra.deltaDecorations([],Wa)}const Ga=Wn.onDidChangeModelContent(Wa=>{let rl=Wn.getPosition();if(rl){let sr=rl.lineNumber;clearTimeout(gu.current),gu.current=setTimeout(()=>{Gn(ra.getLineContent(sr),sr)?la(sr):lu(sr)?(la(sr),Du(sr)):Kn()},100)}}),Ea=Wn.onMouseDown(Wa=>{var rl,sr,uu;if(Wa.target.detail&&((uu=(sr=(rl=Wa.target)==null?void 0:rl.element)==null?void 0:sr.className)!=null&&uu.includes("line-numbers"))){let ya=Wa.target.position.lineNumber;if(Gn(ra.getLineContent(ya),ya))return;lu(ya)?la(ya):Du(ya)}}),ga=Wa=>{let rl={range:new Ct.Range(Wa,1,Wa,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};qn.current=Wn.deltaDecorations(qn.current,[rl])},jn=()=>{qn.current=Wn.deltaDecorations(qn.current,[])},Hu=Wn.onMouseMove(Wa=>{var rl,sr,uu;if(jn(),Wa.target.detail&&((uu=(sr=(rl=Wa.target)==null?void 0:rl.element)==null?void 0:sr.className)!=null&&uu.includes("line-numbers"))){let ya=Wa.target.position.lineNumber;if(Gn(ra.getLineContent(ya),ya))return;ga(ya)}}),Hr=Wn.onMouseLeave(()=>{jn()});return()=>{Ga.dispose(),Ea.dispose(),Hu.dispose(),Hr.dispose()}}},[er.current,ir,Cu,or,Aa,An]),(0,a.useEffect)(()=>{var Lt;(Lt=er.current)!=null&&Lt.instance&&Aa&&er.current.instance.setPosition({lineNumber:0,column:0})},[or]);function ua(){let Lt=er.current.instance;if(Lt){const Wn=Lt.getSelection(),ra=er.current.pastePos||{},xa=new Ct.Range(ra.startLineNumber||Wn.endLineNumber,ra.startColumn||Wn.endColumn,ra.endLineNumber||Wn.endLineNumber,ra.endColumn||Wn.endColumn);setTimeout(()=>{Lt.executeEdits("",[{range:xa,text:""}])},300)}}function oa(Lt){(window.navigator.platform.match("Mac")?Lt.metaKey:Lt.ctrlKey)&&Lt.keyCode==83&&(Lt.preventDefault(),Tt())}const Ta=()=>{if(qt&&er.current.instance){const Lt=er.current.instance.getContentHeight();tt(Lt{if(!_u.current)return;const{keyCode:Wn,ctrlKey:ra,metaKey:xa,target:Kn,type:Du}=Lt;return(Du==="paste"||(Wn===67||Wn===86)&&(xa||ra))&&Kn.nodeName==="TEXTAREA"&&(Jt(),Lt.preventDefault()),!1};function re(Lt,Wn){var ra=window.URL||window.webkitURL||window,xa=new Blob([Wn]),Kn=document.createElementNS("http://www.w3.org/1999/xhtml","a");Kn.href=ra.createObjectURL(xa),Kn.download=Lt,hu(Kn)}(0,a.useEffect)(()=>{Ta()},[Ta]),(0,a.useEffect)(()=>{Er.current&&!ir&&Promise.all([z.e(5552),z.e(9651)]).then(z.bind(z,55826)).then(Lt=>{try{Ct=Lt,er.current.instance=Ct.editor.create(Er.current,{value:bt,language:ot(An),theme:jt,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:xn||!1}},zt);const Wn=er.current.instance;let Kn=[...de.BH._menuItems].find(Ga=>Ga[0]._debugName=="EditorContext")[1],Du=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],la=(Ga,Ea)=>{var ga,jn;let Hu=Ga._first;do Ea.includes((jn=(ga=Hu.element)==null?void 0:ga.command)==null?void 0:jn.id)&&Ga._remove(Hu);while(Hu=Hu.next)};if(ln(Wn,Ct),setTimeout(()=>{Ta(),er.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{re(Da||"educoder.txt",Wn.getValue())}})},500),er.current.subscription=Wn.onDidChangeModelContent(Ga=>{Vn.current?clearTimeout(Qa.current):(Ta(),Ke(Wn.getValue(),Ga)),Qa.current=setTimeout(()=>{Vn.current=!1},500)}),window.Monaco||oe(Ct,ot(An)),St&&(la(Kn,Du),Er.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",ft),window.removeEventListener("paste",ft),window.addEventListener("keydown",ft),window.addEventListener("paste",ft)),window.Monaco=Ct,sn&&Wn.onDidBlurEditorWidget(()=>{sn(Wn.getValue())}),Un&&Wn.onDidFocusEditorText(()=>{St&&kt(),Un(Wn.getValue())}),St){kt();try{Wn.onDidPaste(Ga=>{const Ea=Wn.getSelection(),ga=er.current.pastePos||{},jn=new Ct.Range(ga.startLineNumber||Ea.endLineNumber,ga.startColumn||Ea.endColumn,ga.endLineNumber||Ea.endLineNumber,ga.endColumn||Ea.endColumn);Wn.executeEdits("",[{range:Ga.range,text:""}])})}catch(Ga){}}let lu=On();return Zt&&typeof Zt=="string"&&new ne(Zt,Wn,Ct),ul(!0),()=>{const Ga=er.current.instance;Ga.dispose();const Ea=Ga.getModel();Ea&&Ea.dispose(),er.current.subscription&&er.current.subscription.dispose(),lu.unobserve(Er.current)}}catch(Wn){}})},[]),(0,a.useEffect)(()=>{if(er.current.instance&&ir)return document.addEventListener("keydown",oa,!1),()=>{document.removeEventListener("keydown",oa)}},[Tt,ir]),(0,a.useEffect)(()=>{let Lt=er.current.instance;if(Lt&&ir){let Wn=ot(An);Ct.editor.setModelLanguage(Lt.getModel(),Wn)}},[An,ir]),(0,a.useEffect)(()=>{er.current.instance&&ir&&Ct.editor.setTheme(jt)},[jt,ir]),(0,a.useEffect)(()=>{let Lt=er.current.instance;Pa.current=Qt,Lt&&ir&&(Lt.updateOptions(lt({},Qt)),setTimeout(()=>{Lt.getModel().updateOptions(lt({},Qt))},200))},[JSON.stringify(Qt),ir]),(0,a.useEffect)(()=>{let Lt=er.current.instance;Lt&&ir&&Lt.layout()},[Pn,Rn,ir]);const[ge,De]=(0,a.useState)(Ze(Pn)),[Xe,tt]=(0,a.useState)(Ze(Rn)),Ot=Bt(lt({},Nn),{width:ge,height:Xe,position:"relative"});return a.createElement("div",{className:"my-monaco-editor",ref:Er,style:Ot},vt&&a.createElement(Le.CopyToClipboard,{text:bt,onCopy:()=>ye.ZP.success("\u590D\u5236\u6210\u529F")},a.createElement(fe.Z,{title:"\u590D\u5236\u4EE3\u7801"},a.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},a.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function st({width:ut="100%",height:un="100%",original:Pn,modified:Rn,language:bt,options:An={}}){const Nn=(0,a.useRef)(),[Qt,zt]=(0,a.useState)(null);function jt(qt){let St;return Nn.current&&(St=new Ce.Z(Ke=>{for(let ln of Ke)(ln.target.offsetHeight>0||ln.target.offsetWidth>0)&&qt.layout()}),St.observe(Nn.current)),St}(0,a.useEffect)(()=>(Nn.current&&Promise.all([z.e(5552),z.e(9404)]).then(z.bind(z,50048)).then(qt=>{Ct=qt;const St=Ct.editor.createDiffEditor(Nn.current,Bt(lt({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},An),{wordWrap:!0}));zt(St);let Ke=jt(St);return()=>{St.dispose();const ln=St.getModel();ln&&ln.dispose(),Ke.unobserve(Nn.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,a.useEffect)(()=>{Qt&&Qt.setModel({original:Ct.editor.createModel(Pn,bt),modified:Ct.editor.createModel(Rn,bt)})},[Pn,Rn,bt,Qt]);const sn=Ze(ut),vt=Ze(un),Tt={width:sn,height:vt};return a.createElement("div",{className:"my-diff-editor",ref:Nn,style:Tt})}},21434:function(Ft,rt,z){"use strict";var a=z(12867),Ce=z(88044),ke=z(59637),he=z(67294);const Fe=Ce.default.Option;rt.Z=({isTheoretical:xe,onFontSizeChange:pe,cmFontSize:Se,cmCodeMode:Ae,autoFormat:Ie,onCodeModeChange:ze,onTabToSpace:Me,onAutoFormat:me,formatDocument:oe,className:E="",tabToSpace:y,children:x,code_editor:b,challenge:ee,shixun_environment_id:te,shixun_environments:ne})=>{var de;const ye={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"},fe=(de=ne==null?void 0:ne.find(ve=>ve.shixun_environment_id===te))==null?void 0:de.program_language;return console.log("----",fe,ne,te,b),he.createElement("div",{className:`tpi-code-setting ${E}`},he.createElement("h3",null,"\u4EE3\u7801\u683C\u5F0F"),he.createElement("section",null,he.createElement("div",{className:"file-item"},he.createElement("b",null,"\u663E\u793A\u6A21\u5F0F"),he.createElement(Ce.default,{bordered:!1,size:"small",value:Ae,onChange:ze},he.createElement(Fe,{value:"vs"},"\u767D\u8272\u80CC\u666F"),he.createElement(Fe,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),!xe&&he.createElement(he.Fragment,null,he.createElement("div",{className:"file-item"},he.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),he.createElement(Ce.default,{bordered:!1,size:"small",value:Se,onChange:pe},he.createElement(Fe,{value:12},"12px"),he.createElement(Fe,{value:14},"14px"),he.createElement(Fe,{value:16},"16px"),he.createElement(Fe,{value:18},"18px"),he.createElement(Fe,{value:20},"20px"),he.createElement(Fe,{value:22},"22px"))),he.createElement("div",{className:"file-item"},he.createElement("b",null,"Tab\u8F6C\u6362"),he.createElement(ke.Z,{checked:y,onChange:Me})),he.createElement("div",{className:"file-item",onClick:oe},he.createElement("b",{style:{cursor:"pointer"}},"\u683C\u5F0F\u5316\u4EE3\u7801")))),!xe&&he.createElement(he.Fragment,null,he.createElement("h3",null,"\u5FEB\u6377\u952E"),he.createElement("section",null,he.createElement("div",{className:"file-item"},he.createElement("b",null,"\u4FDD\u5B58\u4EE3\u7801"),he.createElement("span",null,"Ctrl + S")),he.createElement("div",{className:"file-item"},he.createElement("b",null,"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"),he.createElement("span",null,"F1 / Alt + F1")),he.createElement("div",{className:"file-item"},he.createElement("b",null,"\u5DE6\u53F3\u7F29\u8FDB"),he.createElement("span",null,"Ctrl + ]/[")),he.createElement("div",{className:"file-item"},he.createElement("b",null,"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"),he.createElement("span",null,"Ctrl + Shift + \\")),he.createElement("div",{className:"file-item"},he.createElement("b",null,"\u8F6C\u5230\u884C\u9996"),he.createElement("span",null,"Home")),he.createElement("div",{className:"file-item"},he.createElement("b",null,"\u8F6C\u5230\u884C\u5C3E"),he.createElement("span",null,"End"))),x),!xe&&he.createElement(he.Fragment,null,he.createElement("h3",null,"\u5FEB\u6377\u952E"),he.createElement("section",null,fe&&he.createElement("div",{className:"file-item"},he.createElement("b",null,"\u7F16\u7A0B\u8BED\u8A00"),he.createElement("span",null,fe)),he.createElement("div",{className:"file-item"},he.createElement("b",null,"\u5B9E\u8BAD\u96BE\u6613\u5EA6"),he.createElement("span",null,ye[ee==null?void 0:ee.difficulty])),he.createElement("div",{className:"file-item"},he.createElement("b",null,"\u5B9E\u9A8C\u73AF\u5883"),he.createElement("span",null,b==null?void 0:b.name)),he.createElement("div",{className:"file-item"},he.createElement("b",null,"\u5B9E\u9A8C\u5BB9\u5668\u7F51\u7EDC"),he.createElement("span",null,b!=null&&b.close_internet?"\u5173\u95ED\u5916\u7F51":"\u5F00\u542F\u5916\u7F51")))))}},5476:function(Ft,rt,z){"use strict";z.d(rt,{Z:function(){return ze}});var a={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf"},Ce=z(74330),ke=z(83062),he=z(94184),Fe=z.n(he),xe=z(28706),pe=z(26194),Se=z(52262),Ae=z(67294),ze=({className:Me,dataSource:me=[],col:oe=4,right:E,bottom:y=23,precision:x=0,wrapWidth:b=1200,trackEventItems:ee,loading:te,onRemove:ne=()=>{},isCurrent:de=!0,showAlias:ye=!1})=>{const fe=Math.floor((b-(oe-1)*E)/oe),ve=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return Ae.createElement(Ce.Z,{spinning:te},Ae.createElement("div",{className:Fe()(a.list,Me)},!!(me!=null&&me.length)&&(me==null?void 0:me.map((Ne,Le)=>{var Re;const{name:He,id:We,identifier:Ge,featured:Ue,school_name:Ye,image_url:it,excellent:lt,is_plan:Bt}=Ne;return Ae.createElement("div",{key:We,className:a.wrap,style:{width:fe,marginRight:(1+Le)%oe===0?0:E+x,marginBottom:y}},Ae.createElement("a",{className:a.li,onClick:ct=>{ct.preventDefault(),ct.stopPropagation(),ee&&(0,xe.L9)([ee]),(0,xe.xg)(`/paths/${Ge}`)}},Ae.createElement("div",{className:a.img},Ae.createElement("img",{className:a.cover,src:`${it}`}),de&&(0,Se.bg)()&&(Ne==null?void 0:Ne.studying)&&Ae.createElement("div",{className:`${a.movebq} user-path-items`,onClick:ct=>{ct.stopPropagation(),ne(Ne)}},Ae.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Ae.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Re=Ne==null?void 0:Ne.subject_tags)==null?void 0:Re.map((ct,nt)=>{var Ze,yt;if(nt===0){const Je=(Ze=ve.find(ot=>ot.name==ct))==null?void 0:Ze.swimg;return Ae.createElement("img",{className:a.sign,src:Je,style:{left:"-4px"}})}const ht=(yt=ve.find(Je=>Je.name==ct))==null?void 0:yt.ptimg;return Ae.createElement("img",{className:a.sign,src:ht,style:{left:`${48+52*(nt-1)+2*nt}px`}})}),Ae.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Ne==null?void 0:Ne.excellent)&&Ae.createElement("div",{className:a.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Ae.createElement("div",{className:a.name},Ae.createElement(ke.Z,{title:ye&&(Ne!=null&&Ne.excellent_alias_name)?Ae.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${He}`,Ae.createElement("br",null),Ae.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Ne==null?void 0:Ne.excellent_alias_name}`)):He},Ae.createElement("span",{className:a.e},ye&&(Ne==null?void 0:Ne.excellent_alias_name)||He))),Ae.createElement(ke.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Ye}`},Ae.createElement("div",{className:a.unit},Ae.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Ye)),Ae.createElement("div",{className:a.tags},Ae.createElement("div",null,Ae.createElement(ke.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Ae.createElement("span",null,Ae.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Ae.createElement("span",null,Ne.stages_count))),Ae.createElement(ke.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Ae.createElement("span",null,Ae.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Ae.createElement("span",null,Ne.members_count)))))))})),!me.length&&Ae.createElement(pe.Z,null)))}},30001:function(Ft,rt,z){"use strict";z.d(rt,{jL:function(){return Fe},w9:function(){return Ze},QD:function(){return nr},cQ:function(){return it.Z},op:function(){return Ke},O5:function(){return _n},_b:function(){return vl},t7:function(){return b},Gi:function(){return kt},YG:function(){return ot},qp:function(){return ze},vr:function(){return Aa},qE:function(){return Ca},Je:function(){return ne},wb:function(){return Ye},cq:function(){return Rn},tp:function(){return oe}});var a=z(67294),Ce={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},ke="data:image/png;base64,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",Fe=({dataSource:Gn=[],img:ua,imgWidth:oa=346,title:Ta,sunTitle:hu,bannerExtraContent:ft})=>a.createElement("div",{className:Ce.banner},a.createElement("div",{className:Ce.content},a.createElement("aside",null,a.createElement("p",null,a.createElement("b",null,Ta),a.createElement("span",null,hu)),Gn.length>0&&a.createElement("div",{className:Ce.btns},Gn.map((re,ge)=>a.createElement("div",{key:ge,onClick:re.click},re.name,re.sign?a.createElement("img",{src:ke,width:39}):null))),ft),ua&&a.createElement("img",{style:{marginTop:33,marginRight:38},src:ua,width:oa}))),xe={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},pe=z(94184),Se=z.n(pe),Ae=z(96486),ze=({dataSource:Gn=[],value:ua,onChange:oa,onTitleChange:Ta,className:hu,title:ft,titleWidth:re=41,style:ge={},fontColor:De="#6A7283",showCount:Xe})=>{const[tt,Ot]=(0,a.useState)(0),[Lt,Wn]=(0,a.useState)(!1),ra=(0,a.useRef)(null),xa=(0,a.useRef)(null);return(0,a.useEffect)(()=>{var Kn;Gn.length!==0&&(((Kn=ra==null?void 0:ra.current)==null?void 0:Kn.clientHeight)>97?Ot(1):Ot(0)),Gn.length===0&&Ot(0),Wn(!1)},[Gn]),a.createElement("div",{className:Se()(xe.row,hu),style:ge},a.createElement("div",{onClick:(0,Ae.throttle)(()=>Ta==null?void 0:Ta(),2e3),style:{width:re,marginTop:Lt?12:4},className:`${xe.title} ${Ta?"current":""}`},ft),a.createElement("div",{className:Lt?`${xe.tagsWrap} ${xe.tagsBorderWrap}`:xe.tagsWrap},a.createElement("div",{className:xe.bar,ref:xa,style:tt>0?{height:tt===1?97:"auto",overflow:tt===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},a.createElement("div",{className:xe.tag,ref:ra},Gn==null?void 0:Gn.map(Kn=>a.createElement("span",{onClick:()=>oa(Kn.id),key:Kn.id,style:{color:De},className:ua===Kn.id?xe.active:""},a.createElement("span",{title:Kn.name,className:xe.name},Kn.name),!!Xe&&a.createElement("span",{className:xe.num},Kn.count))))),!!tt&&a.createElement(a.Fragment,null,tt===1?a.createElement("div",{onClick:()=>{var Kn;Ot(2),((Kn=ra==null?void 0:ra.current)==null?void 0:Kn.clientHeight)>245?Wn(!0):Wn(!1)},className:xe.action},"\u5C55\u5F00",a.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):a.createElement("div",{onClick:()=>{xa.current.scrollTop=0,Ot(1),Wn(!1)},className:xe.action},"\u6536\u8D77",a.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Me={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},oe=({dataSource:Gn=[],value:ua,onChange:oa,className:Ta,style:hu={}})=>a.createElement("div",{style:hu,className:Se()(Me.tabs,Ta)},Gn.map(ft=>a.createElement("span",{onClick:()=>oa(ft.id),className:ua===ft.id?Me.active:"",key:ft.id},ft.name))),E={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},y=z(28802),b=({dataSource:Gn=[],value:ua="",onChange:oa,onInputChange:Ta=()=>{},className:hu,style:ft={},placeholder:re,allowClear:ge=!1})=>{var De;const[Xe,tt]=(0,a.useState)(""),[Ot,Lt]=(0,a.useState)("");(0,a.useEffect)(()=>{var xa;let Kn=ua;(xa=JSON.stringify(ua))!=null&&xa.includes("{")&&(tt(ua.id),Kn=ua.value||"");try{Lt(decodeURIComponent(Kn||""))}catch(Du){Lt(decodeURIComponent(Kn||""))}},[ua]);const Wn=()=>{oa(encodeURIComponent(Ot),Xe||null)},ra=xa=>{xa!==Xe&&(tt(xa),oa(encodeURIComponent(Ot),xa))};return a.createElement("div",{className:Se()(E.input,hu),style:ft},!!Gn.length&&a.createElement("div",{className:E.dropdown},a.createElement("div",{className:E.text},(De=Gn.find(xa=>xa.id===Xe))==null?void 0:De.name,a.createElement("i",{className:"iconfont icon-zhankai4"}),a.createElement("b",{className:E.b1}),a.createElement("b",{className:E.b2})),a.createElement("div",{className:E.menu},Gn.map((xa,Kn)=>a.createElement("div",{key:Kn,onClick:()=>ra(xa.id)},xa.name)))),a.createElement(y.default,{onPressEnter:Wn,value:Ot,onChange:xa=>{Lt(xa.target.value),Ta(encodeURIComponent(xa.target.value),Xe||null)},bordered:!1,placeholder:re}),a.createElement("i",{onClick:Wn,className:"iconfont icon-sousuo9 font14 pl10 current"}))},ee={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},ne=({value:Gn,onChange:ua,className:oa,total:Ta,pageSize:hu,style:ft={}})=>{const re=Gn<2,ge=Gn>=Math.ceil(Ta/hu);return Ta<=hu?a.createElement(a.Fragment,null):a.createElement("div",{className:Se()(ee.quickPager,oa),style:ft},a.createElement("div",{onClick:()=>{re||ua(Gn-1,"prev")},className:re?ee.disabled:""},"\u4E0A\u4E00\u9875"),a.createElement("div",{onClick:()=>{ge||ua(Gn+1,"next")},className:ge?ee.disabled:""},"\u4E0B\u4E00\u9875"))},de={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},ye=z(74330),fe=z(83062),ve=z(57097),Ne=z(11320),Le=z(28706),Re=z(96908),He=z(57177),We=z(81378),Ge=z(26194),Ye=({className:Gn,dataSource:ua=[],col:oa=4,right:Ta,bottom:hu=23,precision:ft=0,wrapWidth:re=1200,trackEventItems:ge,loading:De})=>{const Xe=Math.floor((re-(oa-1)*Ta)/oa);return a.createElement(ye.Z,{spinning:De},a.createElement("div",{className:Se()(de.list,Gn)},!!ua.length&&ua.map((tt,Ot)=>{const{name:Lt,id:Wn,identifier:ra,power:xa,cover_image_id:Kn,pic:Du}=tt;return a.createElement("div",{className:de.wrap,key:Wn,style:{width:Xe,marginRight:(1+Ot)%oa===0?0:Ta+ft,marginBottom:hu}},a.createElement("a",{target:"_blank",href:`/shixuns/${ra}/challenges`,className:de.li,onClick:la=>{la.preventDefault(),ge&&(0,Le.L9)([ge]),xa&&(0,Le.xg)(`/shixuns/${ra}/challenges`)}},a.createElement("div",{className:de.img},a.createElement("img",{className:de.cover,src:`${Du}`}),tt.is_jupyter&&a.createElement("img",{className:de.sign,src:Re}),tt.is_jupyter_lab&&a.createElement("img",{className:de.sign,src:He}),tt.is_unity_3d&&a.createElement("img",{className:de.sign,src:We})),a.createElement("div",{className:de.name},a.createElement(fe.Z,{title:Lt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},a.createElement("span",{className:de.e},Lt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),a.createElement("div",{className:de.tags},a.createElement(fe.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},a.createElement("span",null,a.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),a.createElement("span",null,tt.challenges_count))),!!tt.myshixuns_count&&a.createElement(fe.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},a.createElement("span",null,a.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),a.createElement("span",null,tt.myshixuns_count))),a.createElement(fe.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},a.createElement("span",null,a.createElement("span",null,tt.level))),a.createElement("div",{className:de.rate},a.createElement(ve.Z,{allowHalf:!0,disabled:!0,defaultValue:tt.score_info}),a.createElement("span",null,"\xA0",tt.score_info?`${tt.score_info}\u5206`:"5\u5206")))),!xa&&a.createElement("div",{className:de.lockWrap},a.createElement("img",{src:`${Ne.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),a.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!ua.length&&a.createElement(Ge.Z,null)))},it=z(5476),lt={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},Bt="data:image/png;base64,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",ct=z(67294),Ze=({className:Gn,dataSource:ua=[],col:oa=4,right:Ta,bottom:hu=23,precision:ft=0,wrapWidth:re=1200,trackEventItems:ge,loading:De,handleVery:Xe=()=>!0})=>{const tt=Math.floor((re-(oa-1)*Ta)/oa);return ct.createElement(ye.Z,{spinning:De},ct.createElement("div",{className:Se()(lt.list,Gn)},!!ua.length&&ua.map((Ot,Lt)=>{const{subject_identifier:Wn,id:ra,identifier:xa,power:Kn}=Ot,Du=Ot.is_public!=0&&Ot.is_public;return ct.createElement("div",{className:lt.wrap,key:ra,style:{width:tt,marginRight:(1+Lt)%oa===0?0:Ta+ft,marginBottom:hu}},ct.createElement("a",{className:lt.li,onClick:la=>{la.preventDefault(),Xe(Ot==null?void 0:Ot.first_category_url)&&(ge&&(0,Le.L9)([ge]),(0,Le.xg)(Ot.first_category_url))}},ct.createElement("div",{className:lt.top},ct.createElement(fe.Z,{title:Ot.name},ct.createElement("div",{className:lt.name},Ot.name)),ct.createElement("img",{className:lt.img,src:Ne.Z.IMG_SERVER+"/images/"+Ot.avatar_url}),ct.createElement("div",{className:lt.text,title:Ot.creator},Ot.creator),Wn&&ct.createElement("div",{className:lt.btns},ct.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),ct.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Du&&ct.createElement("div",{className:lt.sign},"\u516C\u5F00")),ct.createElement("div",{className:lt.bottom},Ot.visits>0&&ct.createElement(fe.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},ct.createElement("span",null,ct.createElement("i",{className:"iconfont icon-liulanyan"}),ct.createElement("span",null,Ot.visits))),Ot.course_members_count>0&&ct.createElement(fe.Z,{title:"\u6210\u5458",placement:"bottom"},ct.createElement("span",null,ct.createElement("i",{className:"iconfont icon-chengyuan"}),Ot.course_members_count)),Ot.tasks_count>0&&ct.createElement(fe.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},ct.createElement("span",null,ct.createElement("i",{className:"iconfont icon-zuoye"}),Ot.tasks_count)),Ot.is_end?ct.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):ct.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Ot.is_accessible&&ct.createElement("div",{className:lt.lockWrap},ct.createElement("img",{src:`${Ne.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ct.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!ua.length&&ct.createElement(Ge.Z,null)))},yt={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},ht=z(35973),ot=({dataSource:Gn=[],value:ua,onChange:oa,className:Ta,style:hu={},tabBarExtraContent:ft})=>a.createElement("div",{className:Se()(yt.tabs,Ta),style:hu},a.createElement("div",{className:yt.tabsWrap},Gn.map((re,ge)=>!(re!=null&&re.hide)&&a.createElement("aside",{className:yt.tab,onClick:()=>{oa(re.id),re.link&&ht.history.push(re.link)},key:ge},a.createElement("div",{className:ua===re.id?yt.active:""},re.name),(re==null?void 0:re.resetCount)==null&&(re==null?void 0:re.total)!==void 0&&a.createElement("span",null,"\uFF08",re==null?void 0:re.total,"\uFF09"),(re==null?void 0:re.resetCount)!==void 0&&(re==null?void 0:re.total)!==void 0&&a.createElement(fe.Z,{title:(re==null?void 0:re.tip)!=null?re==null?void 0:re.tip:""},a.createElement("span",{style:{color:"#9096A3"}},"\uFF08",a.createElement("span",{style:{color:"#000"}},re==null?void 0:re.resetCount),"/",a.createElement("span",null,re==null?void 0:re.total),"\uFF09"))))),a.createElement("div",{className:yt.tabBar},ft)),kt=({className:Gn,style:ua={},children:oa})=>a.createElement("div",{className:Se()(Gn),style:ua},oa),Mt={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},st=z(85418),ut=z(50136);const un=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Rn=({sortValue:Gn,dropValue:ua,className:oa,onSort:Ta,onDrop:hu,dataSource:ft=un})=>{var re;return a.createElement("div",{className:Se()(Mt.orderWrap,oa)},a.createElement(st.Z,{dropdownRender:()=>a.createElement(ut.default,null,ft.map((ge,De)=>a.createElement(ut.default.Item,{key:De,onClick:()=>hu(ge.id)},ge.name)))},a.createElement("span",{className:Mt.orderTextWrap},(re=ft.find(ge=>ua===ge.id))==null?void 0:re.name)),a.createElement("span",{className:Mt.orderIconWrap},a.createElement("span",{className:Mt.orderAsc},a.createElement("i",{className:Gn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Mt.cursorPointer} ${Mt.active}`:`iconfont icon-sanjiaoxing-up font12 ${Mt.cursorPointer}`,onClick:()=>Ta(Gn==="asc"?"desc":"asc")})),a.createElement("span",{className:Mt.orderDesc},a.createElement("i",{className:Gn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Mt.cursorPointer} ${Mt.active}`:`iconfont icon-sanjiaoxing-down font12 ${Mt.cursorPointer}`,onClick:()=>Ta(Gn==="asc"?"desc":"asc")}))))},bt={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},An=z(85804),Nn=Object.defineProperty,Qt=Object.getOwnPropertySymbols,zt=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,sn=(Gn,ua,oa)=>ua in Gn?Nn(Gn,ua,{enumerable:!0,configurable:!0,writable:!0,value:oa}):Gn[ua]=oa,vt=(Gn,ua)=>{for(var oa in ua||(ua={}))zt.call(ua,oa)&&sn(Gn,oa,ua[oa]);if(Qt)for(var oa of Qt(ua))jt.call(ua,oa)&&sn(Gn,oa,ua[oa]);return Gn},Tt=(Gn,ua)=>{var oa={};for(var Ta in Gn)zt.call(Gn,Ta)&&ua.indexOf(Ta)<0&&(oa[Ta]=Gn[Ta]);if(Gn!=null&&Qt)for(var Ta of Qt(Gn))ua.indexOf(Ta)<0&&jt.call(Gn,Ta)&&(oa[Ta]=Gn[Ta]);return oa},qt=(Gn,ua,oa)=>new Promise((Ta,hu)=>{var ft=De=>{try{ge(oa.next(De))}catch(Xe){hu(Xe)}},re=De=>{try{ge(oa.throw(De))}catch(Xe){hu(Xe)}},ge=De=>De.done?Ta(De.value):Promise.resolve(De.value).then(ft,re);ge((oa=oa.apply(Gn,ua)).next())}),Ke=Gn=>{var ua=Gn,{className:oa,style:Ta,children:hu,loading:ft=!1,openLoading:re,onClick:ge=()=>{},size:De="middle",shape:Xe="round"}=ua,tt=Tt(ua,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Ot,Lt]=(0,a.useState)(!1);return a.createElement(An.ZP,vt({onClick:(0,Ae.throttle)(Wn=>qt(void 0,null,function*(){re&&Lt(!0);try{yield ge(Wn)}catch(ra){console.log("error",ra)}re&&Lt(!1)}),2e3,{leading:!0,trailing:!1}),className:Se()(bt.btn,bt[`${De}-${Xe}`],oa),style:Ta,size:De,shape:Xe,loading:Ot||ft},tt),hu)},ln={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},Ca=({className:Gn,style:ua,children:oa=null,onClick:Ta,title:hu})=>a.createElement("div",{className:Se()(ln.head,Gn),style:ua},a.createElement("span",{className:"primary-hover",onClick:Ta},a.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),a.createElement("b",{title:hu},hu),a.createElement("div",{className:ln.node},oa)),Cu={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},nr=({confirmShow:Gn=!0,confirmTitle:ua,confirmClick:oa,cancelShow:Ta=!0,cancelTitle:hu,cancelClick:ft,className:re,style:ge,confirmLoading:De=!1})=>a.createElement("div",{className:Se()(Cu.btns,re),style:ge},Gn&&a.createElement(An.ZP,{loading:De,onClick:oa,type:"primary",className:Cu.confirm},ua),Ta&&a.createElement(An.ZP,{onClick:ft,className:Cu.cancel},hu)),cu={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},Aa=({className:Gn,style:ua={},LeftContent:oa,children:Ta,RightContent:hu})=>a.createElement("div",{className:Se()(cu.fixedBottom,Gn),style:ua},a.createElement("div",{className:cu.wrap},a.createElement("div",{className:cu.left},oa),a.createElement("div",{className:cu.center},Ta),a.createElement("div",{className:cu.right},hu))),Zt={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},vl=({className:Gn,style:ua={},dataSource:oa=[]})=>a.createElement("div",{className:Se()(Zt.crumbs,Gn),style:ua},oa.map((Ta,hu)=>huht.history.push(Ta.path)},Ta.name):a.createElement("span",null,Ta.name),a.createElement("span",null,"\xA0",">","\xA0")):a.createElement("span",{key:hu,style:{color:"#5F6368"}},Ta.name))),Er=z(55054),er=Object.defineProperty,Pa=Object.defineProperties,Za=Object.getOwnPropertyDescriptors,qn=Object.getOwnPropertySymbols,Vn=Object.prototype.hasOwnProperty,Qa=Object.prototype.propertyIsEnumerable,gu=(Gn,ua,oa)=>ua in Gn?er(Gn,ua,{enumerable:!0,configurable:!0,writable:!0,value:oa}):Gn[ua]=oa,_u=(Gn,ua)=>{for(var oa in ua||(ua={}))Vn.call(ua,oa)&&gu(Gn,oa,ua[oa]);if(qn)for(var oa of qn(ua))Qa.call(ua,oa)&&gu(Gn,oa,ua[oa]);return Gn},ir=(Gn,ua)=>Pa(Gn,Za(ua)),ul=(Gn,ua)=>{var oa={};for(var Ta in Gn)Vn.call(Gn,Ta)&&ua.indexOf(Ta)<0&&(oa[Ta]=Gn[Ta]);if(Gn!=null&&qn)for(var Ta of qn(Gn))ua.indexOf(Ta)<0&&Qa.call(Gn,Ta)&&(oa[Ta]=Gn[Ta]);return oa};const{Countdown:On}=Er.default;var _n=Gn=>{var ua=Gn,{onChange:oa}=ua,Ta=ul(ua,["onChange"]);const[hu,ft]=(0,a.useState)(null);(0,a.useEffect)(()=>{typeof hu=="number"&&hu>=0&&oa(hu)},[hu]);const re=ge=>{const De=Math.floor(ge/1e3);ft(De)};return a.createElement(On,ir(_u({},Ta),{onChange:re}))}},99914:function(Ft,rt,z){"use strict";z.d(rt,{Z:function(){return Ce}});var a=z(67294);function Ce(ke,he){const Fe=(0,a.useRef)();(0,a.useEffect)(()=>{Fe.current=ke}),(0,a.useEffect)(()=>{function xe(){Fe.current()}if(he!==null){let pe=setInterval(xe,he);return()=>clearInterval(pe)}},[he])}},3921:function(Ft,rt,z){"use strict";z.d(rt,{Z:function(){return He}});var a=z(91773),Ce=z(2453),ke=z(62844),he=z(74330),Fe=z(83062),xe=z(98813),pe=z(28802),Se=z(57399),Ae=z(67294),Ie=z(35973),ze=z(33170),Me=z(28706),me={flex_box_center:"flex_box_center___FjW3J",flex_space_between:"flex_space_between___VMPG3",flex_box_vertical_center:"flex_box_vertical_center___f4bAX",flex_box_center_end:"flex_box_center_end___r_BiQ",flex_box_column:"flex_box_column___KmCaa",contentWrap:"contentWrap___JMzNd",leftWrap:"leftWrap___rYjEI",tip:"tip___Iu2px",title_con:"title_con___WF9OL",question_title:"question_title___XPCJJ",activeItem:"activeItem___yC4ry",rightWrap:"rightWrap___ut8PK",radio_con:"radio_con___cvwXd",result_con:"result_con___m5Gmr",result_title:"result_title___D7L1n",titleTooltip:"titleTooltip___eBrPv"},oe=z(52262),E=z(35567),y=z(65226),x=z(67294),b=Object.defineProperty,ee=Object.defineProperties,te=Object.getOwnPropertyDescriptors,ne=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,fe=(We,Ge,Ue)=>Ge in We?b(We,Ge,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):We[Ge]=Ue,ve=(We,Ge)=>{for(var Ue in Ge||(Ge={}))de.call(Ge,Ue)&&fe(We,Ue,Ge[Ue]);if(ne)for(var Ue of ne(Ge))ye.call(Ge,Ue)&&fe(We,Ue,Ge[Ue]);return We},Ne=(We,Ge)=>ee(We,te(Ge)),Le=(We,Ge,Ue)=>new Promise((Ye,it)=>{var lt=nt=>{try{ct(Ue.next(nt))}catch(Ze){it(Ze)}},Bt=nt=>{try{ct(Ue.throw(nt))}catch(Ze){it(Ze)}},ct=nt=>nt.done?Ye(nt.value):Promise.resolve(nt.value).then(lt,Bt);ct((Ue=Ue.apply(We,Ge)).next())});const Re=({shixunHomeworks:We,exercise:Ge,loading:Ue,dispatch:Ye})=>{var it,lt,Bt,ct,nt,Ze;const{commonHeader:yt}=Ge,[ht,Je]=(0,Ae.useState)([]),[ot,Ct]=(0,Ae.useState)(Ne(ve({},(0,Ie.useParams)()),{page:1,limit:10})),[kt,Mt]=(0,Ae.useState)([]),[st,ut]=(0,Ae.useState)(""),[un,Pn]=(0,Ae.useState)(1),[Rn]=a.default.useForm(),[bt,An]=(0,Ae.useState)({}),[Nn,Qt]=(0,Ae.useState)(null),[zt,jt]=(0,Ae.useState)(!1),[sn,vt]=(0,Ae.useState)({combine:[],simple:[]}),[Tt,qt]=(0,Ae.useState)(null),[St,Ke]=(0,Ae.useState)({}),[ln,Un]=(0,Ae.useState)(0),[Ca,Cu]=(0,Ae.useState)(0),[Da,nr]=(0,Ae.useState)(!1),cu=[{title:"\u5E8F\u53F7",dataIndex:"1",width:80,render:(Za,qn,Vn)=>(ot.page-1)*ot.limit+Vn+1},{title:"\u59D3\u540D",dataIndex:"user_name",ellipsis:!0,width:180},{title:"\u5B66\u53F7",dataIndex:"student_id",align:"left",sorter:!0,render:Za=>Za||"--"},{title:"\u5206\u73ED",dataIndex:"user_group_name",align:"left",render:(Za,qn)=>x.createElement("div",{className:me.banding,title:Za||"--"},Za||"--")},{title:"\u63D0\u4EA4\u72B6\u6001",width:200,dataIndex:"commit_status",render:(Za,qn)=>Za===0?x.createElement("span",{style:{color:"#666666"}},"\u672A\u5F00\u59CB"):Za===1?x.createElement("span",{style:{color:"#DF3042"}},!qn.is_make_up&&"\u8003\u8BD5\u4E2D",qn.is_make_up&&"\u8003\u8BD5\u4E2D (\u8865\u8003)"):Za===2?x.createElement("span",{style:{color:"#5AB891"}},!qn.is_make_up&&!qn.is_force_commit&&"\u5DF2\u4EA4\u5377",qn.is_make_up&&!qn.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003)",qn.is_make_up&&qn.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003/\u5F3A\u5236)",!qn.is_make_up&&qn.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u5F3A\u5236)"):x.createElement("span",{style:{color:"#5AB891"}},!qn.is_make_up&&!qn.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54",qn.is_make_up&&!qn.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003)",qn.is_make_up&&qn.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003/\u5F3A\u5236)",!qn.is_make_up&&qn.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u5F3A\u5236)")},{title:(yt==null?void 0:yt.exercise_type)==2&&!(0,oe.dE)()?"\u6700\u9AD8\u6210\u7EE9":"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",sorter:!0,render:(Za,qn)=>qn.commit_status===0||qn.commit_status===1?"--":!qn.open_total_score&&(0,oe.dE)()?"\u8001\u5E08\u5BA1\u6838\u4E2D":(Za=typeof Za=="number"?Number(Za):Za,console.log(typeof Za),Za||(Za=0),Za===100?x.createElement("span",{className:"c-green"},Za):Za>60?x.createElement("span",{className:"c-orange"},Za):Za==Ca*.6?x.createElement("span",{className:"c-red"},Za):x.createElement("span",null,Za))}].filter(Za=>!!Za);(0,Ae.useEffect)(()=>{var Za,qn,Vn;((Za=Ge.actionTabs)==null?void 0:Za.key)=="\u6D4B\u8BD5AI\u8BC4\u5206"&&(vt([]),qt(((qn=Ge==null?void 0:Ge.actionTabs)==null?void 0:qn.questionId)||null),Ke(((Vn=Ge==null?void 0:Ge.actionTabs)==null?void 0:Vn.questionDetail)||{}),or(),Zt(ot))},[(it=Ge.actionTabs)==null?void 0:it.key]);const or=()=>Le(void 0,null,function*(){var Za,qn,Vn,Qa,gu,_u,ir,ul,On;const Jt=yield(0,ze.ZP)(`/api/exercises/${ot==null?void 0:ot.categoryId}.json`,{method:"get"});if(Jt.status==0){const _n=(qn=(Za=Jt==null?void 0:Jt.exercise_question_types)==null?void 0:Za.find(hu=>(hu==null?void 0:hu.question_type)==7))==null?void 0:qn.items,Gn=(Qa=(Vn=Jt==null?void 0:Jt.exercise_question_types)==null?void 0:Vn.find(hu=>(hu==null?void 0:hu.question_type)==4))==null?void 0:Qa.items;let ua=[],oa=0,Ta={};ua=(gu=_n==null?void 0:_n.map((hu,ft)=>{var re,ge;return(ge=(re=hu==null?void 0:hu.sub_exercise_questions)==null?void 0:re.map((De,Xe)=>(De==null?void 0:De.question_type)==4?Ne(ve({},De),{index:ft+1,jdex:Xe+1,parentTitle:hu==null?void 0:hu.question_title,isCombine:!0}):null))==null?void 0:ge.filter(De=>De)}))==null?void 0:gu.flat(),vt({combine:ua,simple:Gn}),(Gn==null?void 0:Gn.length)>0?(oa=(_u=Gn==null?void 0:Gn[0])==null?void 0:_u.question_id,Ta=(Gn==null?void 0:Gn[0])||{}):(ua==null?void 0:ua.length)>0&&(oa=(ir=ua==null?void 0:ua[0])==null?void 0:ir.question_id,Ta=(ua==null?void 0:ua[0])||{}),qt(((ul=Ge==null?void 0:Ge.actionTabs)==null?void 0:ul.questionId)||oa),Ke(((On=Ge==null?void 0:Ge.actionTabs)==null?void 0:On.questionDetail)||Ta)}}),Aa=(Za,qn)=>{ot.page=Za,ot.limit=qn,Ct(ve({},ot)),Zt(ot)},Zt=Za=>Le(void 0,null,function*(){nr(!0);const qn=yield(0,ze.ZP)(`/api/exercises/${ot.categoryId||(ot==null?void 0:ot.exerciseId)}/exercise_users.json`,{method:"get",params:Za});qn.status==0&&(Un(qn.data.total_count),Ct(Ne(ve({},ot),{total:qn.data.total_count})),Je(qn.data.exercise_users),Cu(qn.data.total_score)),nr(!1)}),xn=Za=>{ot.search=Za,ot.page=1,Rn.resetFields(),An({}),Mt([]),Qt(null),Ct(ve({},ot)),Zt(ot)},vl=Za=>Le(void 0,null,function*(){var qn,Vn;const Qa=ve({},bt);if(!((qn=Za==null?void 0:Za.content)!=null&&qn.trim())){Ce.ZP.warning("\u8BF7\u8F93\u5165\u7B54\u9898\u5185\u5BB9\uFF01");return}Qa.content=Za==null?void 0:Za.content,Qa.attachment_ids=(Vn=Za==null?void 0:Za.attachment_ids)==null?void 0:Vn.map(gu=>gu.response.id),Er(Qa)}),Er=Za=>Le(void 0,null,function*(){jt(!0);const qn=yield(0,ze.ZP)(`/api/exercises/${(ot==null?void 0:ot.categoryId)||(ot==null?void 0:ot.exerciseId)}/test_ai_review.json`,{method:"post",body:Ne(ve({},Za),{exercise_question_id:Tt,ai_review_settings:St==null?void 0:St.ai_review_settings})});if([0,-3].includes(qn.status)){qn.status==0&&Ce.ZP.success("\u8BC4\u5206\u6D4B\u8BD5\u6210\u529F\uFF01"),Qt(qn);const Vn=document.querySelector(".modal-ai-pfcs");if(Vn){const Qa=Vn.querySelector(".ant-modal-body");Qa&&(Qa.scrollTop=Qa.scrollHeight)}}jt(!1)}),er=()=>{Ye({type:"exercise/setActionTabs",payload:{key:""}}),Pn(1),Pa()},Pa=()=>{Rn.resetFields(),An({}),Mt([]),ut(""),Qt(null)};return x.createElement(ke.default,{className:"modal-ai-pfcs",width:1200,bodyStyle:{maxHeight:"calc(100vh - 200px)",overflowY:"auto"},centered:!0,title:"\u6D4B\u8BD5AI\u8BC4\u5206",confirmLoading:zt,open:((lt=Ge.actionTabs)==null?void 0:lt.key)==="\u6D4B\u8BD5AI\u8BC4\u5206",destroyOnClose:!0,onCancel:()=>er(),okText:Nn?"\u91CD\u65B0\u6D4B\u8BD5":"\u5F00\u59CB\u6D4B\u8BD5",onOk:()=>{var Za;if((Za=Ge.actionTabs)!=null&&Za.showSelectQuestion&&!Tt)return Ce.ZP.warning("\u8BF7\u9009\u62E9\u9898\u76EE\uFF01");if(un==1){if(kt.length==0)return Ce.ZP.warning("\u8BF7\u9009\u62E9\u4E00\u4F4D\u5B66\u751F\u8BD5\u5377\u8FDB\u884C\u8BC4\u5206\u6D4B\u8BD5\uFF01");Er({exercise_user_id:kt[0]})}else un==2&&Rn.submit()}},x.createElement(he.Z,{spinning:zt,tip:"\u6D4B\u8BD5AI\u8BC4\u5206\u4E2D\u2026\u2026"},x.createElement("div",{className:me.contentWrap},x.createElement("div",{className:me.leftWrap},x.createElement("div",{className:me.tip},x.createElement("i",{className:"iconfont icon-tishi11 font14",style:{color:"#3061D0",transform:"rotate(180deg)",marginTop:"5px"}}),x.createElement("span",{style:{marginLeft:"5px"}},"\u667A\u80FD\u8BC4\u9605\u76EE\u524D\u4EC5\u652F\u6301\u7B80\u7B54\u9898\uFF08\u542B\u7EC4\u5408\u9898\u4E2D\u7684\u7B80\u7B54\u9898\uFF09\u3002")),x.createElement("div",{style:{maxHeight:"500px",overflowY:"auto",margin:"10px 0px"}},((Bt=sn==null?void 0:sn.simple)==null?void 0:Bt.length)>0&&x.createElement(x.Fragment,null,x.createElement("div",{className:me.title_con},"\u3010\u7B80\u7B54\u9898\u3011"),x.createElement("div",null,(ct=sn==null?void 0:sn.simple)==null?void 0:ct.map((Za,qn)=>x.createElement("div",{key:Za==null?void 0:Za.question_id},x.createElement(Fe.Z,{title:x.createElement(y.Z,{value:Za==null?void 0:Za.question_title}),color:"#fff",placement:"left",overlayClassName:me.titleTooltip},x.createElement("span",{className:`${me.question_title} ${Tt==(Za==null?void 0:Za.question_id)?me.activeItem:""}`,onClick:()=>{var Vn,Qa,gu;qt(Za==null?void 0:Za.question_id),Ke(Ne(ve({},Za||{}),{ai_review_settings:(Vn=Ge==null?void 0:Ge.actionTabs)!=null&&Vn.isUnify?(gu=(Qa=Ge==null?void 0:Ge.actionTabs)==null?void 0:Qa.questionDetail)==null?void 0:gu.ai_review_settings:Za==null?void 0:Za.ai_review_settings}))}},x.createElement(y.Z,{value:qn+1+"\u3001"+(Za==null?void 0:Za.question_title),showTextOnly:!0}))))))),((nt=sn==null?void 0:sn.combine)==null?void 0:nt.length)>0&&x.createElement(x.Fragment,null,x.createElement("div",{className:me.title_con},"\u3010\u7EC4\u5408\u9898\u3011"),x.createElement("div",null,(Ze=sn==null?void 0:sn.combine)==null?void 0:Ze.map((Za,qn)=>x.createElement("div",{key:Za==null?void 0:Za.question_id,onClick:()=>{var Vn,Qa,gu;qt(Za==null?void 0:Za.question_id),Ke(Ne(ve({},Za||{}),{ai_review_settings:(Vn=Ge==null?void 0:Ge.actionTabs)!=null&&Vn.isUnify?(gu=(Qa=Ge==null?void 0:Ge.actionTabs)==null?void 0:Qa.questionDetail)==null?void 0:gu.ai_review_settings:Za==null?void 0:Za.ai_review_settings}))}},x.createElement(Fe.Z,{title:x.createElement(y.Z,{value:Za==null?void 0:Za.question_title}),color:"#fff",placement:"left",overlayClassName:me.titleTooltip},x.createElement("span",{className:`${me.question_title} ${Tt==(Za==null?void 0:Za.question_id)?me.activeItem:""}`},x.createElement(y.Z,{value:(Za==null?void 0:Za.index)+"."+(Za==null?void 0:Za.jdex)+"\u3001"+(Za==null?void 0:Za.question_title),showTextOnly:!0}))))))))),x.createElement("div",{className:me.rightWrap},x.createElement("div",{className:me.radio_con},x.createElement("span",{style:{marginRight:32}},"\u6D4B\u8BD5\u65B9\u5F0F"),x.createElement(xe.ZP.Group,{onChange:Za=>{Za.target.value==1&&Aa(1,10),Pn(Za.target.value),Pa()},value:un,options:[{label:"\u9009\u62E9\u5B66\u751F\u7B54\u6848",value:1,style:{marginRight:30,color:"#000"}},{label:"\u8F93\u5165\u7B54\u9898\u5185\u5BB9",value:2,style:{marginRight:30,color:"#000"}}]})),un==1&&x.createElement(x.Fragment,null,x.createElement("div",{className:"flex justify-between item-center mb10"},x.createElement("div",{style:{fontSize:"14px",color:"#FA6400"}},"\u63D0\u793A\uFF1A","\u53EA\u80FD\u9009\u62E9\u5DF2\u63D0\u4EA4\u8BD5\u5377\u7684\u5B66\u751F\u8FDB\u884C\u8BC4\u5206\u6D4B\u8BD5"),x.createElement(pe.default.Search,{style:{width:487},size:"large",placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",value:st,onChange:Za=>ut(Za.target.value),onSearch:xn})),x.createElement(Se.default,{rowSelection:{type:"radio",selectedRowKeys:kt,onChange:(Za,qn)=>{Mt(Za)},getCheckboxProps:Za=>({disabled:[0,1].includes(Za==null?void 0:Za.commit_status)})},rowKey:"exercise_user_id",dataSource:ht||[],columns:cu,pagination:{current:ot.page,hideOnSinglePage:!0,showQuickJumper:!0,showSizeChanger:!0,pageSize:ot.limit,className:"mb0",pageSizeOptions:["10","20","50","100","200"],total:ln,size:"default",showTotal:Me.rU,onChange:Aa},onChange:(Za,qn,Vn)=>{ot.page=1,Vn.order===void 0?(ot.order_type=null,ot.order=null):(ot.order_type=Vn.order==="descend"?"desc":"asc",ot.order=Vn.field),Ct(ve({},ot)),Zt(ot)}})),un==2&&x.createElement("div",{style:{marginTop:20}},x.createElement(a.default,{form:Rn,className:me.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{An(ve({},Rn.getFieldsValue()))},onFinish:vl},x.createElement(a.default.Item,{name:"content",label:"",style:{marginBottom:0}},x.createElement(E.Z,{watch:!0})))),Nn&&x.createElement("div",{className:me.result_con},x.createElement("div",{className:me.result_title},"AI\u8BC4\u5206\u7ED3\u679C"),(Nn==null?void 0:Nn.status)==0&&x.createElement("div",{className:"p20"},x.createElement("div",{className:"mb5"},x.createElement("span",{style:{color:"#333",fontWeight:"bold"}},"\u8BC4\u5206\uFF1A"),Nn==null?void 0:Nn.score),x.createElement("div",{className:"flex"},x.createElement("span",{style:{color:"#333",fontWeight:"bold",whiteSpace:"nowrap",lineHeight:"26px"}},"\u8BC4\u8BED\uFF1A"),x.createElement(y.Z,{value:Nn==null?void 0:Nn.content,style:{fontSize:"14px"}}))),(Nn==null?void 0:Nn.status)==-3&&x.createElement("div",{className:"p20"},x.createElement(y.Z,{value:Nn==null?void 0:Nn.message,style:{fontSize:"14px"}})))))))};var He=(0,Ie.connect)(({shixunHomeworks:We,exercise:Ge,loading:Ue,user:Ye})=>({shixunHomeworks:We,exercise:Ge,loading:Ue.effects,user:Ye}))(Re)},48780:function(Ft,rt,z){"use strict";var a=z(67294),Ce=z(91773),ke=z(71230),he=z(15746),Fe=z(84567),xe=z(98813),pe=z(94184),Se=z.n(pe),Ae=z(85657),Ie=Object.defineProperty,ze=Object.defineProperties,Me=Object.getOwnPropertyDescriptors,me=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,y=(ne,de,ye)=>de in ne?Ie(ne,de,{enumerable:!0,configurable:!0,writable:!0,value:ye}):ne[de]=ye,x=(ne,de)=>{for(var ye in de||(de={}))oe.call(de,ye)&&y(ne,ye,de[ye]);if(me)for(var ye of me(de))E.call(de,ye)&&y(ne,ye,de[ye]);return ne},b=(ne,de)=>ze(ne,Me(de)),ee=(ne,de)=>{var ye={};for(var fe in ne)oe.call(ne,fe)&&de.indexOf(fe)<0&&(ye[fe]=ne[fe]);if(ne!=null&&me)for(var fe of me(ne))de.indexOf(fe)<0&&E.call(ne,fe)&&(ye[fe]=ne[fe]);return ye};const te=ne=>{var de=ne,{data:ye,className:fe="",colon:ve=!1}=de,Ne=ee(de,["data","className","colon"]);return a.createElement(Ce.default,b(x({},Ne),{className:Se()(Ae.Z.FormCheckBoxDom,fe),colon:ve}),ye==null?void 0:ye.map((Le,Re)=>{var He=Le,{ItemData:We,valuePropName:Ge,children:Ue,desc:Ye,type:it="Checkbox",normalize:lt}=He,Bt=ee(He,["ItemData","valuePropName","children","desc","type","normalize"]);return(Bt==null?void 0:Bt.isShow)&&a.createElement(ke.Z,{key:Re,wrap:!1,justify:"space-between"},a.createElement(he.Z,null,a.createElement(Ce.default.Item,b(x({},Bt),{normalize:(ct,nt,Ze)=>{var yt,ht;return it=="Radio"||((yt=nt||[])!=null&&yt.every(Je=>Je==="all")&&ct.includes("all")&&ct.length>1&&(ct=ct.filter(Je=>Je!=="all")),(!((ht=nt||[])!=null&&ht.includes("all"))&&ct.includes("all")||(ct==null?void 0:ct.length)==0)&&(ct=["all"])),lt?lt(ct,nt,Ze):ct}}),Ue||(it=="Checkbox"?a.createElement(Fe.default.Group,{options:We}):a.createElement(xe.ZP.Group,{options:We})))),a.createElement(he.Z,null,Ye))}))};rt.Z=te},27765:function(Ft,rt,z){"use strict";z.r(rt),z.d(rt,{default:function(){return Rp}});var a=z(67294),Ce=z(33170),ke=z(11320),he=z(35973),Fe=z(62844),xe=z(50136),pe=z(2453),Se=z(84567),Ae=z(83062),Ie=z(98813),ze=z(78957),Me=z(85673),me=z(85804),oe=z(71230),E=z(85418),y=z(55238),x=z(57399),b=z(55304),ee=z(52310),te=z(33463),ne=z(15835),de=z(28706),ye=z(98769),fe=z(91773),ve=z(15746),Ne=z(59637),Le=z(28802),Re=z(37720),He=z(14845),We=z(94699),Ge=z.n(We),Ue=Object.defineProperty,Ye=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,Bt=(ce,se,ae)=>se in ce?Ue(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,ct=(ce,se)=>{for(var ae in se||(se={}))it.call(se,ae)&&Bt(ce,ae,se[ae]);if(Ye)for(var ae of Ye(se))lt.call(se,ae)&&Bt(ce,ae,se[ae]);return ce},nt=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Ze=({shixunHomeworks:ce,dispatch:se})=>{const ae=(0,he.useParams)();return a.createElement(Fe.default,{centered:!0,title:"\u63D0\u793A",open:ce.actionTabs.key==="\u6253\u56DE\u91CD\u505A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>nt(void 0,null,function*(){(yield(0,Ce.ZP)(`/api/myshixuns/${ce.actionTabs.selectArrs.myshixun_identifier}/reset_my_game.json`,{method:"post",body:{course_id:ae.coursesId}})).status===0&&(pe.ZP.success("\u5220\u9664\u6210\u529F"),se({type:"shixunHomeworks/setActionTabs",payload:{}}),se({type:"shixunHomeworks/getWorkList",payload:ct({},ce.actionTabs.params)}))}),onCancel:()=>{se({type:"shixunHomeworks/setActionTabs",payload:{}})}},a.createElement("p",null,"\u8BE5\u4F5C\u4E1A\u5C06\u88AB\u6253\u56DE\u91CD\u505A\uFF0C\u5B66\u751F\u5B9E\u8BAD\u8BB0\u5F55\u5C06\u88AB\u6E05\u7A7A!"),a.createElement("p",null,"\u786E\u5B9A\u6253\u56DE?"))};var yt=(0,he.connect)(({shixunHomeworks:ce})=>({shixunHomeworks:ce}))(Ze),ht=Object.defineProperty,Je=Object.defineProperties,ot=Object.getOwnPropertyDescriptors,Ct=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable,st=(ce,se,ae)=>se in ce?ht(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,ut=(ce,se)=>{for(var ae in se||(se={}))kt.call(se,ae)&&st(ce,ae,se[ae]);if(Ct)for(var ae of Ct(se))Mt.call(se,ae)&&st(ce,ae,se[ae]);return ce},un=(ce,se)=>Je(ce,ot(se)),Pn=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Rn=({exercise:ce,dispatch:se})=>{var ae,_e,pt,Ve,Dt,et,Be,Pe;const Ht=(0,he.useParams)(),[vn,hn]=(0,a.useState)(!0),[xt]=fe.default.useForm(),{actionTabs:Gt}=ce;(0,a.useEffect)(()=>{var Dn,Fn,Wt,Ut;ce.actionTabs.key==="\u66F4\u6539\u8BC4\u9605"&&(xt.resetFields(),xt.setFieldsValue({subjective_score:(Fn=(Dn=Gt==null?void 0:Gt.selectArrs)==null?void 0:Dn.record)==null?void 0:Fn.subjective_score,objective_score:(Ut=(Wt=Gt==null?void 0:Gt.selectArrs)==null?void 0:Wt.record)==null?void 0:Ut.objective_score}))},[ce.actionTabs.key]);const Bn=()=>{se({type:"exercise/setActionTabs",payload:{}})};return a.createElement(a.Fragment,null,a.createElement(Fe.default,{centered:!0,title:"\u8BC4\u9605",open:ce.actionTabs.key==="\u66F4\u6539\u8BC4\u9605",onCancel:Bn,footer:a.createElement(oe.Z,{align:"middle",justify:"end"},a.createElement(me.ZP,{className:"ml10",onClick:Bn}," \u53D6\u6D88"),a.createElement(me.ZP,{className:"ml10",onClick:()=>Pn(void 0,null,function*(){var Dn,Fn;yield xt.validateFields();const Wt=xt.getFieldValue();(yield(0,ne.oS)(un(ut({},Wt),{id:Ht.categoryId,user_id:(Fn=(Dn=Gt==null?void 0:Gt.selectArrs)==null?void 0:Dn.record)==null?void 0:Fn.user_id}))).status===0&&(pe.ZP.success("\u8BC4\u9605\u6210\u529F"),xt.resetFields(),se({type:"exercise/setActionTabs",payload:{}}),se({type:"exercise/setUpdateIndex"}))}),type:"primary"}," \u786E\u8BA4"))},a.createElement("div",{className:"pl30"},a.createElement(fe.default,{form:xt},a.createElement(oe.Z,null,a.createElement(ve.Z,null,a.createElement(fe.default.Item,{name:"subjective_score",label:"\u4E3B\u89C2\u9898\u6210\u7EE9",rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}]},a.createElement(Re.Z,{min:0,max:((_e=(ae=Gt==null?void 0:Gt.selectArrs)==null?void 0:ae.exercise_types)==null?void 0:_e.subjective_score)*1,style:{width:150},placeholder:"\u8BF7\u586B\u5199\u4E3B\u89C2\u9898\u6210\u7EE9"}))),a.createElement(ve.Z,{flex:1},a.createElement("div",null,a.createElement("span",{className:"ml10"},"\u5206\uFF0C\u603B\u5171\uFF1A",(Ve=(pt=Gt==null?void 0:Gt.selectArrs)==null?void 0:pt.exercise_types)==null?void 0:Ve.subjective_score,"\u5206")))),a.createElement(oe.Z,null,a.createElement(ve.Z,null,a.createElement(fe.default.Item,{name:"objective_score",label:"\u5BA2\u89C2\u9898\u6210\u7EE9",rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}]},a.createElement(Re.Z,{min:0,max:((et=(Dt=Gt==null?void 0:Gt.selectArrs)==null?void 0:Dt.exercise_types)==null?void 0:et.objective_score)*1,style:{width:150},width:150,placeholder:"\u8BF7\u586B\u5199\u5BA2\u89C2\u9898\u6210\u7EE9"}))),a.createElement(ve.Z,{flex:1},a.createElement("div",null,a.createElement("span",{className:"ml10"},"\u5206\uFF0C\u603B\u5171\uFF1A",(Pe=(Be=Gt==null?void 0:Gt.selectArrs)==null?void 0:Be.exercise_types)==null?void 0:Pe.objective_score,"\u5206"))))))))};var bt=(0,he.connect)(({exercise:ce})=>({exercise:ce}))(Rn);const An=[{name:"\u672A\u8BC4\u9605",id:0,type:"unreview_counts"},{name:"\u8BC4\u9605\u4E2D",id:2,type:"reviewing_counts"},{name:"\u5DF2\u8BC4\u9605",id:1,type:"review_counts"}],Nn=[{name:"\u672A\u5F00\u59CB",id:0,type:"unanswer_users"},{name:"\u8003\u8BD5\u4E2D",id:1,type:"answering_users"},{name:"\u5DF2\u4EA4\u5377",id:2,type:"answer_users"},{name:"\u5DF2\u4EA4\u5377/\u672A\u7B54",id:3,type:"commit_with_no_answers_users"}],Qt=[{name:"\u65E0\u9700\u8865\u8003",id:0,type:"unmake_up_users_count"},{name:"\u53C2\u52A0\u8865\u8003",id:1,type:"make_up_users_count"}];var zt=z(26194),jt=z(74330),sn=z(9343),vt=z(67294),Tt=Object.defineProperty,qt=Object.defineProperties,St=Object.getOwnPropertyDescriptors,Ke=Object.getOwnPropertySymbols,ln=Object.prototype.hasOwnProperty,Un=Object.prototype.propertyIsEnumerable,Ca=(ce,se,ae)=>se in ce?Tt(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,Cu=(ce,se)=>{for(var ae in se||(se={}))ln.call(se,ae)&&Ca(ce,ae,se[ae]);if(Ke)for(var ae of Ke(se))Un.call(se,ae)&&Ca(ce,ae,se[ae]);return ce},Da=(ce,se)=>qt(ce,St(se)),nr=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const cu=({exercise:ce,dispatch:se})=>{var ae,_e;const pt=(0,he.useParams)(),[Ve]=fe.default.useForm(),Dt=fe.default.useWatch("time",Ve),[et,Be]=(0,a.useState)(!1),{actionTabs:Pe,commonHeader:Ht}=ce,[,vn,hn,xt]=(0,sn.U)(ne.n7,{id:pt.categoryId}),Gt=xt!=null&&xt.user_end_time?Ge()(xt==null?void 0:xt.user_end_time).add(1,"minutes"):Ge()(),Bn=Ge()(xt==null?void 0:xt.user_total_end_time)>Gt?Math.round(Ge().duration(Ge()(xt==null?void 0:xt.user_total_end_time).diff(Gt.startOf("minute"))).asMinutes()):0,Dn=((xt==null?void 0:xt.student_left_minutes)||0)+(Dt||0);(0,a.useEffect)(()=>{var Wt;Pe.key==="\u5EF6\u65F6"?(se({type:"exercise/getWorkSetting",payload:Cu({},pt)}),hn({user_id:Pe!=null&&Pe.isBatch?Pe==null?void 0:Pe.user_ids:[(Wt=Pe==null?void 0:Pe.selectArrs)==null?void 0:Wt.user_id]})):Ve.resetFields()},[Pe.key]);const Fn=()=>{se({type:"exercise/setActionTabs",payload:{}})};return vt.createElement(vt.Fragment,null,vt.createElement(Fe.default,{width:640,centered:!0,title:Pe!=null&&Pe.isBatch?"\u6279\u91CF\u5EF6\u65F6":"\u5EF6\u65F6",open:Pe.key==="\u5EF6\u65F6",okText:"\u786E\u8BA4\u5EF6\u65F6",cancelText:"\u53D6\u6D88",confirmLoading:et,onOk:()=>nr(void 0,null,function*(){Ve.submit()}),onCancel:Fn},vt.createElement(jt.Z,{spinning:vn},vt.createElement(fe.default,{form:Ve,colon:!1,labelCol:{span:4},onFinish:Wt=>nr(void 0,null,function*(){Be(!0);const Ut=yield(0,ne.qz)(Da(Cu({},Wt),{id:pt.categoryId,exercise_user_id:Pe==null?void 0:Pe.exercise_user_id}));Be(!1),Ut.status===0&&(pe.ZP.success("\u5EF6\u65F6\u6210\u529F"),se({type:"exercise/setUpdateIndex"}),Fn())})},vt.createElement("div",{className:"p10 mb20",style:{background:"#F6F7F9"}},"\u5EF6\u65F6\u8BF4\u660E\uFF1A",vt.createElement("br",null),"1.\u53EA\u6709\u5F53\u8003\u8BD5\u622A\u6B62\u65F6\u95F4\u665A\u4E8E\u5B66\u751F\u7684\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\u65F6\uFF0C\u624D\u652F\u6301\u5BF9\u5B66\u751F\u8FDB\u884C\u5EF6\u65F6\u64CD\u4F5C\uFF1B",vt.createElement("br",null),"2.\u6BCF\u4E2A\u5B66\u751F\u7684\u6700\u5927\u53EF\u5EF6\u65F6\u65F6\u95F4=\u8003\u8BD5\u622A\u6B62\u65F6\u95F4-\u5B66\u751F\u5F53\u524D\u7684\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\uFF1B",vt.createElement("br",null),"3.\u82E5\u5C06\u8003\u8BD5\u622A\u6B62\u65F6\u95F4\u5EF6\u540E\uFF0C\u5C06\u5BF9\u6240\u6709\u8003\u8BD5\u8FDF\u5230\u7684\u5B66\u751F\u8FDB\u884C\u7EDF\u4E00\u5EF6\u65F6\uFF08\u5B66\u751F\u5DF2\u7B54\u9898\u65F6\u95F4+\u5B66\u751F\u5269\u4F59\u8003\u8BD5\u65F6\u95F4+\u7EDF\u4E00\u5EF6\u65F6\u65F6\u95F4\u2264\u8003\u8BD5\u7B54\u9898\u65F6\u957F\uFF09\u3002"),Pe!=null&&Pe.isBatch?vt.createElement("div",null,"\u5F53\u524D\u9009\u4E2D",vt.createElement("span",{className:"ml5 mr5",style:{color:"#FA6400"}},Pe==null?void 0:Pe.exercise_user_id.length),"\u540D\u5B66\u751F"):vt.createElement(oe.Z,{align:"middle",gutter:40},vt.createElement(ve.Z,null,"\u5F53\u524D\u9009\u4E2D\u5B66\u751F",vt.createElement("span",{className:"ml15",style:{color:"#FA6400"}},(ae=Pe==null?void 0:Pe.selectArrs)==null?void 0:ae.user_name)),vt.createElement(ve.Z,null,"\u5B66\u53F7",vt.createElement("span",{className:"ml15",style:{color:"#FA6400"}},(_e=Pe==null?void 0:Pe.selectArrs)==null?void 0:_e.student_id))),vt.createElement(fe.default.Item,{className:"mt30",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5EF6\u957F\u65F6\u95F4"}],name:"time",label:"\u5EF6\u957F\u65F6\u95F4"},vt.createElement(Re.Z,{min:0,precision:0,max:Bn,style:{width:"100%"},placeholder:`\u6700\u5927\u53EF\u5EF6\u957F\u65F6\u95F4\u4E3A${Bn}\u5206\u949F\uFF0C\u5728\u5B66\u751F\u5269\u4F59\u65F6\u95F4\u57FA\u7840\u4E0A\u5EF6\u65F6`,addonAfter:"\u5206\u949F"})),!(Pe!=null&&Pe.isBatch)&&vt.createElement("div",{className:"mb20",style:{marginLeft:98,color:"#FA6400"}},"\u8BE5\u5B66\u751F\u5269\u4F59\u8003\u8BD5\u65F6\u95F4\uFF1A",vt.createElement("span",{className:"ml5"},Dn),"\u5206\u949F",Dn!==0&&(xt==null?void 0:xt.user_end_time)&&vt.createElement("span",null,"\uFF0C\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\uFF1A",vt.createElement("span",{className:"ml5"},Ge()(xt==null?void 0:xt.user_end_time).add(Dt||0,"m").format("YYYY-MM-DD HH:mm:ss")))),(Ht==null?void 0:Ht.screen_open)&&vt.createElement(fe.default.Item,{style:{marginLeft:98,marginBottom:0},name:"is_clear",initialValue:!1,valuePropName:"checked"},vt.createElement(Se.default,null,"\u6E05\u9664\u5B66\u751F\u7684\u5DF2\u5207\u5C4F\u6B21\u6570"))))))};var or=(0,he.connect)(({exercise:ce})=>({exercise:ce}))(cu),Aa=z(18046),Zt=z(17998),xn=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const vl=({exercise:ce,dispatch:se})=>{var ae,_e;const pt=(0,he.useParams)(),[Ve]=fe.default.useForm(),[Dt,et]=(0,a.useState)(!1),{actionTabs:Be}=ce;return(0,a.useEffect)(()=>{ce.actionTabs.key==="teacher-unlock"&&(et(!1),Ve.resetFields())},[ce.actionTabs.key]),a.createElement(a.Fragment,null,a.createElement(Fe.default,{width:600,centered:!0,title:`\u8003\u8BD5\u89E3\u9501\uFF08${(ae=Be==null?void 0:Be.selectArrs)==null?void 0:ae.user_name}\uFF09`,open:ce.actionTabs.key==="teacher-unlock",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",keyboard:!1,confirmLoading:Dt,onOk:()=>xn(void 0,null,function*(){var Pe,Ht;yield Ve.validateFields();const vn=Ve.getFieldsValue();if(et(!0),(yield(0,ne.ZD)(pt.categoryId,{exercise_user_id:(Pe=Be==null?void 0:Be.selectArrs)==null?void 0:Pe.exercise_user_id,unlock_key:vn.unlock_key})).status===0){if(vn.time){const xt={time:Ge()(vn.time).format("YYYY-MM-DD HH:mm"),exercise_user_id:(Ht=Be==null?void 0:Be.selectArrs)==null?void 0:Ht.exercise_user_id,id:pt.categoryId};yield(0,ne.qz)(xt)}pe.ZP.success("\u89E3\u9664\u9501\u5B9A\u6210\u529F"),se({type:"exercise/setUpdateIndex"}),se({type:"exercise/setActionTabs",payload:{}})}et(!1)}),onCancel:()=>{se({type:"exercise/setActionTabs",payload:{}})}},a.createElement("div",{className:""},a.createElement(fe.default,{form:Ve,layout:"vertical",autoComplete:"off"},a.createElement(fe.default.Item,{className:"ml10",label:"\u8003\u8BD5\u89E3\u9501\u7801",name:"unlock_key",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801"}]},a.createElement(Le.default.Password,{autoComplete:"off",style:{width:270},placeholder:"\u8BF7\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801"})),a.createElement(fe.default.Item,{label:a.createElement("span",null,"\u5EF6\u957F\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\uFF08",a.createElement("span",{className:"c-grey-999"},"\u4E0D\u80FD\u8D85\u8FC7\u5F53\u524D\u8BD5\u5377\u622A\u6B62\u65F6\u95F4",Ge()((_e=Be==null?void 0:Be.selectArrs)==null?void 0:_e.exercise_end_at).format("YYYY-MM-DD HH:mm")),"\uFF09"),name:"time",className:"ml10"},a.createElement(Aa.default,{style:{width:270},placeholder:"\u8BF7\u9009\u62E9\u4EA4\u5377\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm"},format:"YYYY-MM-DD HH:mm",disabledDate:Pe=>{var Ht;return(0,Zt.Q8)(Pe,(Ht=Be==null?void 0:Be.selectArrs)==null?void 0:Ht.exercise_end_at)},disabledTime:Pe=>{var Ht;const vn=(Ht=Be==null?void 0:Be.selectArrs)==null?void 0:Ht.exercise_end_at;if(Ge()(Pe).isSame(Ge()(vn),"day")){const hn=Ge()(vn).hours(),xt=Ge()(vn).minutes();return console.log(hn,xt),{disabledHours:()=>(0,Zt.w6)(0,24).slice(hn+1),disabledMinutes:()=>Ge()(Pe).isSame(Ge()(vn),"hour")?(0,Zt.w6)(xt,60):[]}}return(0,Zt.d0)(Pe)},allowClear:!1}))))))};var Er=(0,he.connect)(({exercise:ce})=>({exercise:ce}))(vl),er=z(71865),Pa=z(33054),Za=z(7703),qn=Object.getOwnPropertySymbols,Vn=Object.prototype.hasOwnProperty,Qa=Object.prototype.propertyIsEnumerable,gu=(ce,se)=>{var ae={};for(var _e in ce)Vn.call(ce,_e)&&se.indexOf(_e)<0&&(ae[_e]=ce[_e]);if(ce!=null&&qn)for(var _e of qn(ce))se.indexOf(_e)<0&&Qa.call(ce,_e)&&(ae[_e]=ce[_e]);return ae},_u=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const ir=ce=>{var se=ce,{shixunHomeworks:ae,dispatch:_e}=se,pt=gu(se,["shixunHomeworks","dispatch"]);const Ve=(0,he.useParams)(),[Dt,et]=(0,a.useState)([]),[Be,Pe]=(0,a.useState)([]);(0,a.useEffect)(()=>{ae.actionTabs.key==="\u8D28\u91CF\u68C0\u6D4B"&&Ht()},[ae.actionTabs.key]);function Ht(){return _u(this,null,function*(){const hn=yield(0,Ce.ZP)(`/api/exercises/${Ve.categoryId}/group_list.json`,{method:"GET"});et(hn)})}const vn=[{title:"\u5206\u73ED\u60C5\u51B5",dataIndex:"name"},{title:"\u6709\u6548\u4F5C\u54C1\u6570",dataIndex:"works_count"},{title:"\u68C0\u6D4B\u8FDB\u5EA6",dataIndex:"status"},{title:"\u4E0A\u6B21\u8BC4\u5206\u65F6\u95F4",dataIndex:"last_analysis_time"}];return a.createElement(a.Fragment,null,a.createElement(Fe.default,{centered:!0,title:"\u4EE3\u7801\u8D28\u91CF\u8BC4\u5206",open:ae.actionTabs.key==="\u8D28\u91CF\u68C0\u6D4B",width:700,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>_u(void 0,null,function*(){const hn=yield(0,Ce.ZP)(`/api/exercises/${Ve.categoryId}/code_quality_analysis.json`,{method:"POST",body:{group_ids:Be}});(hn==null?void 0:hn.status)===0&&(he.history.replace(`/classrooms/${Ve.coursesId}/exercise/${Ve.categoryId}/detail?tabs=7`),window.location.reload(),_e({type:"shixunHomeworks/setActionTabs",payload:{}}),Pe([]))}),onCancel:()=>{Pe([]),_e({type:"shixunHomeworks/setActionTabs",payload:{}})}},a.createElement(x.default,{rowSelection:{type:"checkbox",onChange:(hn,xt)=>{Pe([...hn])},selectedRowKeys:Be,getCheckboxProps:hn=>({disabled:hn.status==="\u8FDB\u884C\u4E2D"||hn.works_count===0})},rowKey:hn=>hn.key||hn.id,scroll:{y:300},pagination:!1,columns:vn,dataSource:Dt==null?void 0:Dt.group_list})))};var ul=(0,he.connect)(({shixunHomeworks:ce})=>({shixunHomeworks:ce}))(ir),On=z(52262),Jt={flex_box_center:"flex_box_center____uOEt",flex_space_between:"flex_space_between___J8U9e",flex_box_vertical_center:"flex_box_vertical_center___M1l_z",flex_box_center_end:"flex_box_center_end___UsRsw",flex_box_column:"flex_box_column___gcanz",rightFilter:"rightFilter___KnaoF",classwidth:"classwidth___QPkdW",operationCol:"operationCol___hiIyI",unlockBtn:"unlockBtn___QvP_V",recordScreenModal:"recordScreenModal___tLQo7",operationLink:"operationLink___vj72A",banding:"banding___BLx2S",noShow:"noShow___mrV9r",btn_review:"btn_review___b6mDf"},_n=z(67294),Gn=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())}),oa=({item:ce,renderText:se})=>{const ae=(0,he.useParams)(),[_e,pt]=(0,a.useState)(),Ve=Dt=>Gn(void 0,null,function*(){if(!Dt)return;const et=yield(0,ne.UH)({id:ae.categoryId,user_id:ce==null?void 0:ce.user_id});et&&pt(et)});return _n.createElement(Ae.Z,{onOpenChange:Dt=>Ve(Dt),title:_n.createElement("div",null,"\u5355\u9009\u9898 ",(_e==null?void 0:_e.single_question_score)||0,"\u5206 ",_n.createElement("br",null),"\u591A\u9009\u9898 ",(_e==null?void 0:_e.multiple_question_score)||0,"\u5206 ",_n.createElement("br",null),"\u5224\u65AD\u9898 ",(_e==null?void 0:_e.judgement_question_score)||0,"\u5206 ",_n.createElement("br",null),"\u586B\u7A7A\u9898 ",(_e==null?void 0:_e.completion_question_score)||0,"\u5206 ",_n.createElement("br",null),"\u5B9E\u8BAD\u9898 ",(_e==null?void 0:_e.shixun_question_score)||0,"\u5206")},se)},Ta=z(96486),hu=z.n(Ta),ft=z(88044),re=z(63037),ge=z(67294),De=Object.defineProperty,Xe=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,Ot=Object.getOwnPropertySymbols,Lt=Object.prototype.hasOwnProperty,Wn=Object.prototype.propertyIsEnumerable,ra=(ce,se,ae)=>se in ce?De(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,xa=(ce,se)=>{for(var ae in se||(se={}))Lt.call(se,ae)&&ra(ce,ae,se[ae]);if(Ot)for(var ae of Ot(se))Wn.call(se,ae)&&ra(ce,ae,se[ae]);return ce},Kn=(ce,se)=>Xe(ce,tt(se)),Du=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const la=({exercise:ce,dispatch:se})=>{var ae,_e;const pt=(0,he.useParams)(),{actionTabs:Ve,commonHeader:Dt}=ce,[et]=fe.default.useForm(),Be=fe.default.useWatch("time",et),[,Pe,Ht,vn]=(0,sn.U)(ne.n7,{id:pt.categoryId}),[,hn,xt]=(0,sn.U)(ne.Xo,{id:pt.categoryId}),Gt=(0,a.useRef)(null),Bn=vn!=null&&vn.user_end_time?Ge()(vn==null?void 0:vn.user_end_time).add(1,"minutes"):Ge()(),Dn=Ge()(vn==null?void 0:vn.user_total_end_time)>Bn?Math.round(Ge().duration(Ge()(vn==null?void 0:vn.user_total_end_time).diff(Bn.startOf("minute"))).asMinutes()):0,Fn=((vn==null?void 0:vn.student_left_minutes)||0)+(Be||0);(0,a.useEffect)(()=>{var Ut,Yt;Ve.key=="\u8C03\u6574\u72B6\u6001"?(se({type:"exercise/getWorkSetting",payload:xa({},pt)}),Ht({user_id:Ve!=null&&Ve.isBatch?Ve==null?void 0:Ve.user_ids:[(Ut=Ve==null?void 0:Ve.selectArrs)==null?void 0:Ut.user_id]})):(et.resetFields(),Gt.current&&((Yt=Gt.current)==null||Yt.changeCode({target:{value:""}})))},[Ve.key]);const Wt=()=>{se({type:"exercise/setActionTabs",payload:{}})};return ge.createElement(Fe.default,{centered:!0,title:Ve!=null&&Ve.isBatch?"\u6279\u91CF\u8C03\u6574\u8003\u8BD5\u72B6\u6001":"\u8C03\u6574\u8003\u8BD5\u72B6\u6001",open:Ve.key=="\u8C03\u6574\u72B6\u6001",width:650,okText:"\u786E\u5B9A\u8C03\u6574",confirmLoading:hn,onOk:()=>Du(void 0,null,function*(){et.submit()}),onCancel:Wt},ge.createElement(jt.Z,{spinning:Pe},ge.createElement(fe.default,{initialValues:{status:"1"},form:et,colon:!1,labelCol:{span:4},onFinish:Ut=>Du(void 0,null,function*(){if(console.log("allValue",Ut),Gt.current.onVerify())return Promise.reject();(yield xt(Kn(xa({},Ut),{exercise_user_id:Ve==null?void 0:Ve.exercise_user_id}))).status==0&&(pe.ZP.success("\u8C03\u6574\u6210\u529F"),Wt(),se({type:"exercise/setUpdateIndex"}))})},Ve!=null&&Ve.isBatch?ge.createElement("div",{className:"mb20"},"\u5F53\u524D\u9009\u4E2D",ge.createElement("span",{className:"ml5 mr5",style:{color:"#FA6400"}},Ve==null?void 0:Ve.exercise_user_id.length),"\u540D\u5B66\u751F"):ge.createElement(oe.Z,{className:"mb20",align:"middle",gutter:40},ge.createElement(ve.Z,null,"\u5F53\u524D\u9009\u4E2D\u5B66\u751F",ge.createElement("span",{className:"ml15",style:{color:"#FA6400"}},(ae=Ve==null?void 0:Ve.selectArrs)==null?void 0:ae.user_name)),ge.createElement(ve.Z,null,"\u5B66\u53F7",ge.createElement("span",{className:"ml15",style:{color:"#FA6400"}},(_e=Ve==null?void 0:Ve.selectArrs)==null?void 0:_e.student_id))),(Dt==null?void 0:Dt.is_locked)&&ge.createElement(fe.default.Item,{label:"\u8003\u8BD5\u89E3\u9501\u7801",name:"unlock_key",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801"}]},ge.createElement(Le.default.Password,{autoComplete:"off",placeholder:"\u8BF7\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801",visibilityToggle:!1})),ge.createElement(fe.default.Item,{rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8003\u8BD5\u72B6\u6001"}],name:"status",label:"\u8003\u8BD5\u72B6\u6001"},ge.createElement(ft.default,{placeholder:"\u8BF7\u9009\u62E9\u8003\u8BD5\u72B6\u6001"},ge.createElement(ft.default.Option,{value:"1"},"\u8003\u8BD5\u4E2D\uFF08\u4FDD\u7559\u5B66\u751F\u7684\u7B54\u9898\u6570\u636E\uFF0C\u7EE7\u7EED\u8003\u8BD5\uFF09"),ge.createElement(ft.default.Option,{value:"2"},"\u5DF2\u4EA4\u5377\uFF08\u4FDD\u7559\u5B66\u751F\u7684\u7B54\u9898\u6570\u636E\uFF0C\u8FDB\u884C\u4EA4\u5377\uFF09"))),(Dt==null?void 0:Dt.time)!==-1&&ge.createElement(ge.Fragment,null,ge.createElement(fe.default.Item,{className:"mt20 mb20",name:"time",label:"\u5EF6\u957F\u65F6\u95F4"},ge.createElement(Re.Z,{min:0,precision:0,max:Dn,style:{width:"100%"},placeholder:`\u6700\u5927\u53EF\u5EF6\u957F\u65F6\u95F4\u4E3A${Dn}\u5206\u949F\uFF0C\u5728\u5B66\u751F\u5269\u4F59\u65F6\u95F4\u57FA\u7840\u4E0A\u5EF6\u65F6`,addonAfter:"\u5206\u949F"})),!(Ve!=null&&Ve.isBatch)&&ge.createElement("div",{className:"mb20",style:{marginLeft:98,color:"#FA6400"}},"\u8BE5\u5B66\u751F\u5269\u4F59\u8003\u8BD5\u65F6\u95F4\uFF1A",ge.createElement("span",{className:"ml5"},Fn),"\u5206\u949F",Fn!==0&&(vn==null?void 0:vn.user_end_time)&&ge.createElement("span",null,"\uFF0C\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\uFF1A",ge.createElement("span",{className:"ml5"},Ge()(vn==null?void 0:vn.user_end_time).add(Be||0,"m").format("YYYY-MM-DD HH:mm:ss"))))),(Dt==null?void 0:Dt.screen_open)&&ge.createElement(fe.default.Item,{style:{marginLeft:100},name:"is_clear",initialValue:!1,valuePropName:"checked"},ge.createElement(Se.default,null,"\u6E05\u9664\u5B66\u751F\u7684\u5DF2\u5207\u5C4F\u6B21\u6570")),ge.createElement(fe.default.Item,{label:"\u9A8C\u8BC1\u7801",required:!0,style:{marginBottom:0}},ge.createElement(re.Z,{ref:Ut=>Gt.current=Ut})))))};var lu=(0,he.connect)(({exercise:ce})=>({exercise:ce}))(la),Ga=z(84888),Ea=z(90613),ga=z(20819),jn=z(69234),Hu={collapseSty:"collapseSty___HC_H5",review_warp:"review_warp___eZLrf",under_review:"under_review___EMIrP",btn_operate:"btn_operate___mWpgU",btn_review:"btn_review___Cwv6d",is_disabled:"is_disabled___GH0Ll"},Hr=z(30001),Wa="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAaCAYAAACkVDyJAAAAAXNSR0IArs4c6QAABG9JREFUSEu9lltsFFUcxr//zAIFucS7YgAvURDamd1tAQUqNQEiGoOXGEiUSGdrRVF5MIrGoPtAFHhEY0LpzmrsA7yoRRNI5KGISIDu7syUCgaRUIL3qBQtxd05n5ndLbRluxRJ3Kfd85/z/c535jvnv4L/+SOXw6tudKN+jmsFuJ+UkAh2APq6jF3pDldn2MBog3uPUvgC5NhB4n8iFFrkbKk8OBzosIBzrSPj/mbvYQC3DCF66iqpuHuvPe3MpaDDAkYsbxOpXgzEBPKTNkIW6VTnsjnZTfCm/LjIpoxtrr5iYMTqqCHUfpBaIKbpWJZuDm8LvkcbnKXKx9Y8REQJtNkZu6q9HLSkw3tjndecFb8WinUCLiVxc9HFzoxtLu4vGLHcHSQfKNTxIyHboEnbaOp79iVm/D4YPgAYbuhYCKXeBDEX4ICaAN0h0SIHbeP7/iIzLe/2HFWGwPiB4kIB91HXNjrNRmtf7bxotN57VUFtKLUdAukSHU+lm809perRBreWPloITi5V16CtSSeNjYUMAIjUd04Hsh4Bvbg1OVDaIdwtIm3jJxm72uKSK/du6uIMdZ/0FpCsA2U+hDUkQoU5QowcMdXZPP1oARjz1lCp9cUVfK2NGPdgqumO05dKXLn6rFWHr832nNtOYE4xVG84tvl2AWh575DqtSJwXSYZXnslsL65UcuNK/Kt/rp5YNTyViiqZHElP+shfVaqqbLrSqDVjYcm+zn/AMgbAx0N+vJ0sqolD3wi3jnyaFfuCMjbivH3JlSE5ra9P+Ov/wKte75z7One3F6SRsGdHJswxZgW5OBCShvcWuVjF8CRxYc+S9vGEhFhXfx4RXfXmeUKvL50CpHVgO3ttvltPE6t9YT3KcGHi4H5R9OxoC/hA89hzH0aih+cF9VkhZMwPwxbznsgVpV3K7/cudiY+N1ObwPJlwdr9P2+6KYJW+5GkK8Ut3ZXxjYXhi2nBcST5YACOblkinFr6wnv1IX7VVufsY3X+8+7CBht6DCU7+f7m4h4Gds05z3nXd3Ti2cgnDAENCsh7aNUU9WxiOV0kpgePBfSpKo9YR4qC4zEvPuo1O5iYr9ybLP2coITttw9IOflF6xp8zMJ48vyDq2ORxX9j4vBac0kzUcuBxipd4PALMkfBdEfS9tVn1zCoWNRIVFwiKRjh63+E4Jm3ItcTTBWgVD74KYbthwbRH3BIWKZRNguC6yOdTzkK//zvtCkE8ai4GjUxDpn5ZhdKUDQrsYU6ugBta26pm9uT8w4EIxFLLeN5Py8Qx2Pp5vD+d0aMqWR2DdTqLLH+9qTiKQIjAJZWTalIh7IcwRmFt+/0kPaXUGQygLzq6x33iXwwlAAEeRTTMIcchEiWxzbbBxcL9nx8zfLie71CnjpvFPgLAVbdcrmVNLcHwhV17uzfeGzQiwjMLq4zTmBNI2fbKwu1dLK/omas9K9oScnNaLwhxa6zk01Tewp5ai68YcxwK/TfCWTdG3U3lTT1N+Gcv4v6tPgKkEiYpsAAAAASUVORK5CYII=",rl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAA6lJREFUSEu1ll1sFFUUgM+5M5su1rqF0JiYiBIsim1nd3apiJBQXgmJkihRE0l2u1ksJiDxRcNLH4jRB7WEBMiGHfQJAoQXQgiJiU0sKtDt7OyCMULTUqIvNdLdFtPSufeYO9vFcZnpDlru0+SeM+c7f/feg+BaiUyxS8zTZmLUzgQytyzINyHy5iY4OHRUu+unj1KQyPz+hLAnvyCi94MYXkwHAS+9/py2rb8fhZeeA9RT1tGlgNUAiPC5acQ+9gTG0yVNcG5JIQLcVBQlEw6RpTa10KNEO1OpPM2BvieCNuc/xnYWctqZehuoJ60+AjoiBaqibB0+3jX4KCC3rp4sbgEU3xKBCoD3lBBuzGe1klsHY72FL0HAfrn5ZJitWKzgQRzRk9ZeAjpUzRiONoex220T40lrQADtkwqtkcjywYHVU0EML6ajp6xviGjXAvRfTeQL1FPWLiSI+xkmgCvmiehJL3lP/1i4PFEZIqKEA0X2mWlonzjfXhGu7y3otoCRRpEiqjHT6HQarn517yk9a8/yfH0TeQI3pX5puQdz14DoRT8oItyKPBXpXqwEXk3km1Iiwq37xyN+wLbXnp8+sxN5oyy4mwgQBx5L07id6PlwrHWqXHauOgZ4yBeYyJTWAKcu3wgUNpLPdk40ijAQ8JW0tXpe0K/VA+y9EMFmqrqmETQQMJG5vkrY9mgjYIjh2qvHo2M1l2Td46ni28CAzFz0lNwPBJSKEgpc+J5DULCUz3aNuuOPJ60DAuig3FMZxIdzMTMwsFFt6uWxdHEbCDoPRPIdnUJoXmueaJ8MDHzrNCmTP4y3zFfm+GXjpekawLlFblcuEBALNzUlfzq2bjy2++d2uH//qrwdAVEg4HbT0C4GTqn0qlwpXyOCF6pXE540jei78jueLiYEF8MLDvwGqroDuf01Ebzs7CEeKBjRTx84GORY6KnrUSK78CBtiHffWKWtrL3isVThHBDsqMqRAMh5yBHw3IihvYko96orcEr1pPUOAmwQCKSicnY413n5n7SSWp4oGkT0nquWN1qXhV4dPNIx465vYGCjppFHQO+1DgPBB4jwB2Jo40iu41b9fw8B/+8DLNMfRrzzY67jTy8nN/cVl8/MiqqMwVdLOmJ4AdenSz02598t1HgPLtUQVQ+z56Zxdh6jnPMsAbRLuRJi2mMZE70iRcRjphHtW/JB2A/G1LaP8tln/nKAtSXTS1xs+q+jvtuWYCRQ4E0WwiH3qPg3yfpEltDif38AAAAASUVORK5CYII=",sr=z(52930),uu=z(65226),ya=z(67294),Ua=Object.defineProperty,zi=Object.defineProperties,Ki=Object.getOwnPropertyDescriptors,Yo=Object.getOwnPropertySymbols,fo=Object.prototype.hasOwnProperty,du=Object.prototype.propertyIsEnumerable,Gu=(ce,se,ae)=>se in ce?Ua(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,pl=(ce,se)=>{for(var ae in se||(se={}))fo.call(se,ae)&&Gu(ce,ae,se[ae]);if(Yo)for(var ae of Yo(se))du.call(se,ae)&&Gu(ce,ae,se[ae]);return ce},Ir=(ce,se)=>zi(ce,Ki(se)),Cl=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const ol=Se.default.Group,ti=({className:ce,title:se,items:ae=[],value:_e,onChange:pt})=>{const Ve=(ae==null?void 0:ae.length)===(_e==null?void 0:_e.length),Dt=(_e==null?void 0:_e.length)>0&&(_e==null?void 0:_e.length)<(ae==null?void 0:ae.length),et=Be=>{const Pe=ae.map(Ht=>Ht.id);pt(Be.target.checked?Pe:[])};return ya.createElement(oe.Z,{align:"middle",className:ce},!!se&&ya.createElement("div",{className:"mr20",style:{color:"#333333"}},se),ya.createElement(Se.default,{indeterminate:Dt,onChange:et,checked:Ve},"\u5168\u90E8"),ya.createElement(ol,{value:_e,onChange:pt},ae.map(Be=>ya.createElement(Se.default,{className:"ml30 c-black",key:Be.id,value:Be.id},Be.name,ya.createElement("span",null,`(${Be.count})`)))))},io=({shixunHomeworks:ce,exercise:se,loading:ae,dispatch:_e,showBtn:pt=!0,dropDowmBtn:Ve=null})=>{var Dt,et,Be,Pe,Ht,vn,hn,xt,Gt,Bn,Dn,Fn;const[Wt,Ut]=(0,a.useState)({page:1,limit:10,exercise_group_id:[],review:[0],review_result:[]}),[Yt,ta]=(0,a.useState)(-1),[nn,zn]=(0,a.useState)(""),[mn,pa]=(0,a.useState)({}),[Pt,Nt]=(0,a.useState)(!1),[Rt,Xt]=(0,a.useState)(!1),cn=(0,he.useParams)(),[tn,Ja]=(0,a.useState)({}),[ha,dt]=(0,a.useState)(!1),{is_open_ai_review:Fa,zero_commit_student_works:ia,unified_ai_setting:wu,ai_review_settings:Sa,is_random:Hn,batch_size:Oa,have_batch_resubmit:tu}=se.commonHeader,[Ka,Ba]=(0,a.useState)({}),[La,Zn]=(0,a.useState)([]),[bn,ca]=(0,a.useState)(!1),[Qn,pn]=(0,a.useState)(!1),[Tn,En]=(0,a.useState)([]),[da,Ha]=(0,a.useState)(!1),[au,Ya]=(0,a.useState)(!1),Cr=[{title:"\u65F6\u95F4",dataIndex:"created_at",width:170,ellipsis:!0,render:Va=>ya.createElement(Ae.Z,{placement:"bottom",title:Va},ya.createElement("span",{style:{color:"#333"}},Ge()(Va).format("YYYY-MM-DD HH:mm")))},{title:"\u64CD\u4F5C\u660E\u7EC6",dataIndex:"user_name",width:272,render:(Va,Nu)=>ya.createElement("span",{style:{color:"#333"}},Nu==null?void 0:Nu.user_name,"\u64CD\u4F5C\u4E86\u667A\u80FD\u8BC4\u9605")},{title:"\u64CD\u4F5C\u7ED3\u679C",dataIndex:"success_count",width:272,render:(Va,Nu)=>(Nu==null?void 0:Nu.status)=="running"?ya.createElement("span",{style:{color:"#333"}}," ",ya.createElement("span",null,"\u667A\u80FD\u8BC4\u9605\u4E2D\uFF0C\u5F53\u524D\u8FDB\u5EA6")," ",Nu==null?void 0:Nu.rate):ya.createElement("span",{style:{color:"#333"}},"\u667A\u80FD\u8BC4\u9605\u6210\u529F ",Nu==null?void 0:Nu.success_count," \u4EBA\uFF0C\u5931\u8D25 ",Nu==null?void 0:Nu.fail_count," \u4EBA")}],Zu=[{title:"\u5E8F\u53F7",dataIndex:"1",width:80,ellipsis:!0,render:(Va,Nu,oo)=>(Wt.page-1)*Wt.limit+oo+1},{title:"\u59D3\u540D",dataIndex:"user_name",ellipse:!0,width:180,ellipsis:!0},{title:"\u5B66\u53F7",width:100,dataIndex:"student_id",ellipse:!0,align:"left",sorter:!0,render:Va=>Va||"--"},{title:"\u5206\u73ED",ellipse:!0,dataIndex:"user_group_name",align:"left",render:(Va,Nu)=>ya.createElement("div",{className:Hu.banding,title:Va||"--"},Va||"--")},{title:"\u63D0\u4EA4\u72B6\u6001",dataIndex:"commit_status",align:"center",width:200,render:(Va,Nu)=>Va===0?ya.createElement("span",{style:{color:"#666666"}},"\u672A\u5F00\u59CB"):Va===1?ya.createElement("span",{style:{color:"#DF3042"}},!Nu.is_make_up&&"\u8003\u8BD5\u4E2D",Nu.is_make_up&&"\u8003\u8BD5\u4E2D (\u8865\u8003)"):Va===2?ya.createElement("span",{style:{color:"#5AB891"}},!Nu.is_make_up&&!Nu.is_force_commit&&"\u5DF2\u4EA4\u5377",Nu.is_make_up&&!Nu.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003)",Nu.is_make_up&&Nu.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003/\u5F3A\u5236)",!Nu.is_make_up&&Nu.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u5F3A\u5236)"):ya.createElement("span",{style:{color:"#5AB891"}},!Nu.is_make_up&&!Nu.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54",Nu.is_make_up&&!Nu.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003)",Nu.is_make_up&&Nu.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003/\u5F3A\u5236)",!Nu.is_make_up&&Nu.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u5F3A\u5236)")},{title:"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",sortDirections:["descend","ascend"],sorter:!0,ellipse:!0,width:120},{title:"\u8BC4\u9605\u72B6\u6001",width:120,dataIndex:"has_comment",render:(Va,Nu)=>{let oo=new Date().getTime();return tn!=null&&tn.appraise_setting&&(tn!=null&&tn.sealed_review)&&new Date(tn==null?void 0:tn.appraise_end_time).getTime()>oo?"--":!Va&&Nu.review_status?"\u8BC4\u9605\u4E2D":Va?"\u5DF2\u8BC4\u9605":"\u672A\u8BC4\u9605"}},Oa&&{title:ya.createElement("span",null,"\u8BC4\u9605\u9898\u76EE",ya.createElement(Ae.Z,{title:"\u667A\u80FD\u8BC4\u9605\u76EE\u524D\u4EC5\u652F\u6301\u7B80\u7B54\u9898\uFF08\u542B\u7EC4\u5408\u9898\u4E2D\u7684\u7B80\u7B54\u9898\uFF09\u3002"},ya.createElement("i",{className:"iconfont icon-tishi6 font14 ml5",style:{color:"#666666"}}))),width:100,dataIndex:"success_size",render:(Va,Nu)=>(Nu==null?void 0:Nu.success_size)+"/"+(Nu==null?void 0:Nu.totol_size)},Oa&&{title:"\u667A\u80FD\u8BC4\u9605\u7ED3\u679C",width:120,dataIndex:"status",render:(Va,Nu)=>Va==="\u6210\u529F"?ya.createElement("span",{className:"c-green"},"\u6210\u529F"):Va=="\u90E8\u5206\u6210\u529F"?ya.createElement("span",{className:"c-orange",onClick:()=>Cl(void 0,null,function*(){dt(!0),yield Ru(Nu==null?void 0:Nu.user_id)})},"\u90E8\u5206\u6210\u529F",ya.createElement("i",{className:"iconfont icon-tishi2 font14 ml5 current",style:{color:"#FA6400",transform:"rotate(180deg)"}})):Va=="\u5931\u8D25"?ya.createElement("span",{className:"c-red",onClick:()=>Cl(void 0,null,function*(){dt(!0),yield Ru(Nu==null?void 0:Nu.user_id)})},"\u5931\u8D25",ya.createElement("i",{className:"iconfont icon-tishi2 font14 ml5 current",style:{color:"#E30000",transform:"rotate(180deg)"}})):ya.createElement("span",null,"\u672A\u5F00\u59CB")}].filter(Va=>!!Va);(0,a.useEffect)(()=>{var Va;((Va=se.actionTabs)==null?void 0:Va.key)==="\u5728\u7EBF\u8003\u8BD5\u667A\u80FD\u8BC4\u9605"&&mr()},[(Dt=se.actionTabs)==null?void 0:Dt.key]),(0,a.useEffect)(()=>{var Va;((Va=se.actionTabs)==null?void 0:Va.key)==="\u5728\u7EBF\u8003\u8BD5\u667A\u80FD\u8BC4\u9605"&&mu()},[Wt,((et=se.actionTabs)==null?void 0:et.key)==="\u5728\u7EBF\u8003\u8BD5\u667A\u80FD\u8BC4\u9605"]);const sa=()=>Cl(void 0,null,function*(){var Va;Ha(!0);const Nu=yield(0,Ce.ZP)("/api/exercise_resubmits/get_batch_list.json",{method:"get",params:{exercise_id:cn==null?void 0:cn.categoryId}});Ha(!1),Nu.status===0&&En(((Va=Nu==null?void 0:Nu.data)==null?void 0:Va.list)||[])}),Ru=Va=>Cl(void 0,null,function*(){ca(!0);const Nu=yield(0,Ce.ZP)("/api/exercise_resubmits/get_student_resubmit_status.json",{method:"get",params:{exercise_id:cn==null?void 0:cn.categoryId,user_id:Va,batch_size:(Ka==null?void 0:Ka.batch_size)||Oa}});ca(!1),Nu.status===0&&Zn((Nu==null?void 0:Nu.data)||[])}),mr=()=>Cl(void 0,null,function*(){const Va=yield(0,Ce.ZP)(`/api/exercises/${cn.categoryId}/header_info.json`,{method:"get"});(Va==null?void 0:Va.status)===0&&Ja((Va==null?void 0:Va.data)||{})}),gl=Va=>{Wt.search=Va,Wt.page=1,Ut(pl({},Wt))},Tl=(Va,Nu)=>{Wt.page=1,Wt[Nu]=Va,Ut(pl({},Wt))},mu=()=>Cl(void 0,null,function*(){var Va,Nu,oo,Su;Xt(!0);const Pu=yield(0,Ce.ZP)("/api/exercise_resubmits/all_resubmit_student_list.json",{method:"get",params:Ir(pl({},Wt),{exercise_id:cn==null?void 0:cn.categoryId,batch_size:(Ka==null?void 0:Ka.batch_size)||((Va=se==null?void 0:se.actionTabs)==null?void 0:Va.batchSize)})});if((Pu==null?void 0:Pu.status)===0&&(pa(Pu||{}),((Nu=Wt==null?void 0:Wt.exercise_group_id)==null?void 0:Nu.length)==0)){const ci=(Su=((oo=Pu==null?void 0:Pu.header_info)==null?void 0:oo.course_groups)||[])==null?void 0:Su.map(Ho=>Ho==null?void 0:Ho.exercise_group_id);Ut(Ir(pl({},Wt),{exercise_group_id:ci}))}Xt(!1)}),$u=(Va,Nu)=>{Wt.page=Va,Wt.limit=Nu,Ut(pl({},Wt))};(0,a.useEffect)(()=>{!ae["exercise/getCommonHeader"]&&Fa&&!(0,On.dE)()&&tu&&jr()},[ae["exercise/getCommonHeader"]]),(0,a.useEffect)(()=>{if((Ka==null?void 0:Ka.status)=="running"){const Va=setInterval(()=>{jr()},3e3);return()=>clearInterval(Va)}},[Ka==null?void 0:Ka.status]);const jr=()=>Cl(void 0,null,function*(){const Va=yield(0,Ce.ZP)("/api/exercise_resubmits/all_resubmit_status.json",{method:"get",params:{exercise_id:cn==null?void 0:cn.categoryId}});(Va==null?void 0:Va.status)===0&&Ba(Va==null?void 0:Va.data)}),Eu=Va=>{_e({type:"exercise/setActionTabs",payload:{key:"\u5728\u7EBF\u8003\u8BD5\u667A\u80FD\u8BC4\u9605",batchSize:(Ka==null?void 0:Ka.batch_size)||Oa}}),Tl([Va],"review_result"),Tl([0,1,2],"review"),Ya(!0)},wr=()=>Cl(void 0,null,function*(){var Va;if(Fa){if(ia)return pe.ZP.warning("\u5DF2\u63D0\u4EA4\u4F5C\u4E1A\u7684\u5B66\u751F\u6570\u4E3A0\uFF0C\u65E0\u6CD5\u667A\u80FD\u8BC4\u9605!")}else return pe.ZP.warning("\u8BF7\u5148\u5F00\u542F\u667A\u80FD\u8BC4\u9605\u529F\u80FD!");if((Ka==null?void 0:Ka.status)=="running")return pe.ZP.warning("\u667A\u80FD\u8BC4\u9605\u6B63\u5728\u8FD0\u884C\u4E2D\uFF0C\u8BF7\u52FF\u91CD\u590D\u64CD\u4F5C!");Nt(!0);const Nu=yield(0,Ce.ZP)("/api/exercise_resubmits/all_resubmit.json",{method:"post",body:Ir(pl({},Wt),{batch_size:(Ka==null?void 0:Ka.batch_size)||((Va=se==null?void 0:se.actionTabs)==null?void 0:Va.batchSize),exercise_id:cn==null?void 0:cn.categoryId})});(Nu==null?void 0:Nu.status)===0&&(_e({type:"exercise/setActionTabs",payload:{key:""}}),setTimeout(()=>{jr()},800)),Nt(!1)});return ya.createElement(ya.Fragment,null,ya.createElement("div",{className:Hu.review_warp},ya.createElement(Ae.Z,{title:"\u64CD\u4F5C\u8BB0\u5F55"},ya.createElement("div",{className:Hu.btn_operate,style:{marginLeft:"10px"},onClick:()=>Cl(void 0,null,function*(){pn(!0),yield sa()})},ya.createElement("i",{className:"iconfont icon-lishijilu"}))),ya.createElement("div",null,Fa&&(Ka==null?void 0:Ka.status)=="running"&&ya.createElement("div",{className:Hu.under_review,style:{marginRight:0}},ya.createElement(jt.Z,{spinning:!0,className:"mr6",size:"small"}),ya.createElement("span",{className:"ml10"},"\u667A\u80FD\u8BC4\u9605\u4E2D"),ya.createElement("span",{className:"ml5",style:{color:"#3061D0"}},Ka==null?void 0:Ka.rate)),Fa&&["success","failed"].includes(Ka==null?void 0:Ka.status)&&ya.createElement(Ae.Z,{title:ya.createElement("div",{className:Hu.under_review},"\u667A\u80FD\u8BC4\u9605\u6210\u529F",ya.createElement("span",{style:{color:"#1B8565",margin:"0 3px",fontWeight:"bold"}},Ka==null?void 0:Ka.success),"\u4EBA\uFF0C \u5931\u8D25",ya.createElement("span",{style:{color:"#E30000",margin:"0 3px",fontWeight:"bold"}},Ka==null?void 0:Ka.fail),"\u4EBA, \u90E8\u5206\u6210\u529F",ya.createElement("span",{style:{color:"#3061D0",margin:"0 3px",fontWeight:"bold"},onClick:()=>Eu(1)},Ka==null?void 0:Ka.running_count),"\u4EBA")},ya.createElement("div",{className:Hu.under_review,style:{marginRight:"0px"}},ya.createElement("img",{src:sr.Z,className:"mr5",style:{width:14,height:14}}),"\u6210\u529F",ya.createElement("span",{style:{color:"#1B8565",fontWeight:"bold"},onClick:()=>Eu(2)},Ka==null?void 0:Ka.success),"\u4EBA\uFF0C \u5931\u8D25",ya.createElement("span",{style:{color:"#E30000",fontWeight:"bold"},onClick:()=>Eu(0)},Ka==null?void 0:Ka.fail),"\u4EBA\uFF0C \u90E8\u5206\u6210\u529F",ya.createElement("span",{style:{color:"#3061D0",fontWeight:"bold"},onClick:()=>Eu(1)},Ka==null?void 0:Ka.running_count),"\u4EBA"))),(Ka==null?void 0:Ka.status)!="running"&&pt&&ya.createElement("div",{className:`${Hu.btn_review} ${(Ka==null?void 0:Ka.status)=="running"&&Hu.is_disabled}`,onClick:()=>{if((Ka==null?void 0:Ka.status)!="running"){if(!Fa)return pe.ZP.warning("\u8BF7\u5148\u5F00\u542F\u667A\u80FD\u8BC4\u9605\u529F\u80FD!"),!1;_e({type:"exercise/setActionTabs",payload:{key:"\u5728\u7EBF\u8003\u8BD5\u667A\u80FD\u8BC4\u9605"}}),Wt.page=1,Wt.review=[0],Ut(pl({},Wt)),Ya(!1)}}},ya.createElement("img",{src:Ga.Z,className:"mr8",style:{width:14,height:14}}),"\u667A\u80FD\u8BC4\u9605"),(Ka==null?void 0:Ka.status)!="running"&&!pt&&ya.createElement(ya.Fragment,null,Ve)),ya.createElement(Fe.default,{width:1130,bodyStyle:{maxHeight:"calc(100vh - 200px)",overflowY:"auto"},centered:!0,title:"\u667A\u80FD\u8BC4\u9605\u7ED3\u679C",open:((Be=se.actionTabs)==null?void 0:Be.key)==="\u5728\u7EBF\u8003\u8BD5\u667A\u80FD\u8BC4\u9605",destroyOnClose:!0,confirmLoading:Pt,onCancel:()=>{Ya(!1),_e({type:"exercise/setActionTabs",payload:{key:""}})},okText:Oa?"\u7ACB\u5373\u667A\u80FD\u8BC4\u9605":"\u5F00\u59CB\u8BC4\u9605",onOk:()=>wr()},ya.createElement(jn.default,{className:Hu.collapseSty,defaultActiveKey:["1"],expandIconPosition:"end",ghost:!0,expandIcon:({isActive:Va})=>ya.createElement("span",{style:{color:"#3061D0"}},Va?"\u6536\u8D77":"\u5C55\u5F00"),items:[{key:"1",label:ya.createElement("span",{style:{color:"#FF9D18"}},ya.createElement("i",{className:"iconfont icon-tishi9 font14 mr5"}),ya.createElement("span",null,"\u6E29\u99A8\u63D0\u793A")),children:ya.createElement("div",{style:{color:"#333",fontSize:"14px",background:"#F6F7F9",padding:"0px 28px 10px"}},ya.createElement("div",null,"1.\u667A\u80FD\u8BC4\u9605\u6761\u4EF6\uFF1A \u4EC5\u652F\u6301\u7B80\u7B54\u9898\u3002\u968F\u673A\u8BD5\u5377\u548C\u6A21\u62DF\u8003\u8BD5\u6682\u4E0D\u652F\u6301\u667A\u80FD\u8BC4\u9605\uFF1B"),ya.createElement("div",null,"2.\u667A\u80FD\u8BC4\u9605\u6D41\u7A0B\uFF1A \u5F00\u542F\u667A\u80FD\u8BC4\u9605\u5E76\u8BBE\u7F6E\u597D\u8BC4\u5206\u6807\u51C6\u548C\u8BC4\u9605\u8EAB\u4EFD\uFF0C\u5C31\u53EF\u4EE5\u8BA9AI\u52A9\u6559\u5E2E\u52A9\u4F60\u6253\u5206\u548C\u5199\u8BC4\u8BED\uFF1B"),ya.createElement("div",null,"3.\u8BBE\u7F6E\u8BC4\u5206\u6807\u51C6\u7684\u65B9\u5F0F\u5206\u4E3A\u4E24\u79CD\uFF1A\u6240\u6709\u7B80\u7B54\u9898\u7EDF\u4E00\u8BBE\u7F6E\u8BC4\u5206\u6807\u51C6\u3001\u6BCF\u4E00\u9053\u7B80\u7B54\u9898\u5355\u72EC\u8BBE\u7F6E\u8BC4\u5206\u6807\u51C6\uFF1B"),ya.createElement("div",null,"4.\u667A\u80FD\u8BC4\u9605\u65B9\u5F0F\uFF1A\u8FDB\u5165\u5B66\u751F\u8BD5\u5377\u8BE6\u60C5\u9875\u667A\u80FD\u8BC4\u9605\u3001\u5728\u5B66\u751F\u7B54\u9898\u5217\u8868\u6279\u91CF\u667A\u80FD\u8BC4\u9605\uFF1B"),ya.createElement("div",null,"5.\u5927\u6A21\u578B\u667A\u80FD\u8BC4\u9605\u5B8C\u6210\u540E\uFF0C\u9700\u8981\u6559\u5E08\u81EA\u5DF1\u518D\u4EBA\u5DE5\u68C0\u67E5\u4E00\u4E0B\u5927\u6A21\u578B\u7684\u8BC4\u9605\u7ED3\u679C\u3002\u66F4\u591A\u7591\u95EE\u53C2\u89C1",ya.createElement("span",null,"\u5E2E\u52A9\u6587\u6863")))}]}),ya.createElement(ti,{className:"mt10",title:"\u9009\u62E9\u73ED\u7EA7",items:(Ht=((Pe=mn==null?void 0:mn.header_info)==null?void 0:Pe.course_groups)||[])==null?void 0:Ht.map(Va=>({id:Va==null?void 0:Va.exercise_group_id,name:Va==null?void 0:Va.exercise_group_name,count:(Va==null?void 0:Va.exercise_group_students)||0})),value:Wt.exercise_group_id,onChange:Va=>Tl(Va,"exercise_group_id")}),ya.createElement(ti,{className:"mt10",title:"\u8BC4\u9605\u72B6\u6001",items:[{id:0,name:"\u672A\u8BC4\u9605",count:((vn=mn==null?void 0:mn.header_info)==null?void 0:vn.unreview_counts)||0},{id:1,name:"\u5DF2\u8BC4\u9605",count:((hn=mn==null?void 0:mn.header_info)==null?void 0:hn.review_counts)||0},{id:2,name:"\u8BC4\u9605\u4E2D",count:((xt=mn==null?void 0:mn.header_info)==null?void 0:xt.reviewing_counts)||0}],value:Wt.review,onChange:Va=>Tl(Va,"review")}),!!Oa&&(au||((Gt=se==null?void 0:se.actionTabs)==null?void 0:Gt.showReview))&&ya.createElement(ti,{className:"mt10",title:"\u8BC4\u9605\u7ED3\u679C",items:[{id:0,name:"\u5931\u8D25",count:((Bn=mn==null?void 0:mn.header_info)==null?void 0:Bn.fail)||0},{id:1,name:"\u90E8\u5206\u6210\u529F",count:((Dn=mn==null?void 0:mn.header_info)==null?void 0:Dn.part_success)||0},{id:2,name:"\u6210\u529F",count:((Fn=mn==null?void 0:mn.header_info)==null?void 0:Fn.success)||0}],value:Wt.review_result,onChange:Va=>Tl(Va,"review_result")}),ya.createElement("div",{className:"flex justify-between item-center mb10 mt20"},ya.createElement("div",{className:"flex item-center"},ya.createElement("div",{className:"current flex item-center",onClick:()=>{_e({type:"exercise/setActionTabs",payload:{key:"\u6D4B\u8BD5AI\u8BC4\u5206"}})}},ya.createElement("img",{src:Wa,width:14,style:{paddingBottom:"2px"}}),ya.createElement("span",{style:{color:"#3061D0",marginLeft:"5px"}},"\u6D4B\u8BD5AI\u8BC4\u5206")),!pt&&ya.createElement("div",{className:"ml30 current flex item-center",onClick:()=>{var Va;window.location.href=`/classrooms/${cn.coursesId}/exercise/${cn.categoryId}/detail?random=${(Va=se==null?void 0:se.commonHeader)==null?void 0:Va.is_random}&tabs=12`}},ya.createElement("img",{src:rl,width:14}),ya.createElement("span",{style:{color:"#3061D0",marginLeft:"5px"}},"\u67E5\u770B\u8BC4\u5206\u6807\u51C6"))),ya.createElement("div",{style:{marginLeft:"auto"},className:"flex item-center"},ya.createElement(Hr.t7,{className:Hu.input,style:{width:"415px"},value:Wt.keyword,onChange:Va=>Tl(Va,"search"),placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22"}))),ya.createElement(x.default,{loading:Rt,dataSource:(mn==null?void 0:mn.data)||[],columns:Zu,pagination:{current:Wt.page,hideOnSinglePage:!0,showQuickJumper:!0,showSizeChanger:!0,pageSize:Wt.limit,className:"mb0",pageSizeOptions:["10","20","50","100","200"],total:(mn==null?void 0:mn.size)||0,size:"default",showTotal:Va=>ya.createElement("span",{className:"font12 c-666"},"\u5171",ya.createElement("span",{style:{color:"#3061D0"}}," ",Va," "),"\u6761\u6570\u636E"),onChange:$u},onChange:(Va,Nu,oo)=>{oo!=null&&oo.order?(Wt.sort_by=oo==null?void 0:oo.field,Wt.direction=(oo==null?void 0:oo.order)==="ascend"?"asc":"desc"):(Wt.sort_by=null,Wt.direction=null),Ut(pl({},Wt))}})),ya.createElement(Fe.default,{width:800,bodyStyle:{maxHeight:"calc(100vh - 200px)",overflowY:"auto"},centered:!0,title:"\u5931\u8D25\u539F\u56E0",open:ha,destroyOnClose:!0,onCancel:()=>{dt(!1)},footer:null},ya.createElement(x.default,{loading:bn,dataSource:La||[],columns:[{title:"\u9898\u578B",width:100,dataIndex:"question_type",ellipsis:!0,render:Va=>ya.createElement(Ae.Z,{title:Va||"--"},Va||"--")},{title:"\u9898\u5E72",dataIndex:"question_title",ellipsis:!0,render:Va=>ya.createElement(Ae.Z,{title:ya.createElement(uu.Z,{value:Va,showTextOnly:!0,className:"font14"})},ya.createElement(uu.Z,{value:Va,showTextOnly:!0,className:"font14"}))},{title:"\u5931\u8D25\u539F\u56E0",dataIndex:"info",ellipsis:!0,render:Va=>ya.createElement(Ae.Z,{title:Va||"--"},Va||"--")}]})),ya.createElement(Fe.default,{width:800,bodyStyle:{maxHeight:"calc(100vh - 200px)",overflowY:"auto"},centered:!0,title:"\u64CD\u4F5C\u8BB0\u5F55",open:Qn,destroyOnClose:!0,onCancel:()=>{pn(!1)},footer:null},ya.createElement(x.default,{pagination:!1,dataSource:Tn,columns:Cr,className:"mb10",loading:da})))};var Xo=(0,he.connect)(({shixunHomeworks:ce,exercise:se,loading:ae,user:_e})=>({shixunHomeworks:ce,exercise:se,loading:ae.effects,user:_e}))(io),Sn=z(67294),Li=Object.defineProperty,ic=Object.defineProperties,lc=Object.getOwnPropertyDescriptors,tc=Object.getOwnPropertySymbols,nc=Object.prototype.hasOwnProperty,Jl=Object.prototype.propertyIsEnumerable,Vs=(ce,se,ae)=>se in ce?Li(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,ri=(ce,se)=>{for(var ae in se||(se={}))nc.call(se,ae)&&Vs(ce,ae,se[ae]);if(tc)for(var ae of tc(se))Jl.call(se,ae)&&Vs(ce,ae,se[ae]);return ce},Gs=(ce,se)=>ic(ce,lc(se)),Wu=(ce,se)=>{var ae={};for(var _e in ce)nc.call(ce,_e)&&se.indexOf(_e)<0&&(ae[_e]=ce[_e]);if(ce!=null&&tc)for(var _e of tc(ce))se.indexOf(_e)<0&&Jl.call(ce,_e)&&(ae[_e]=ce[_e]);return ae},Qi=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const pc=ce=>{var se=ce,{exercise:ae,loading:_e,dispatch:pt,globalSetting:Ve,checkDomainAuthority:Dt,getparams:et,user:Be,classroomList:Pe}=se,Ht=Wu(se,["exercise","loading","dispatch","globalSetting","checkDomainAuthority","getparams","user","classroomList"]),vn,hn,xt,Gt,Bn,Dn,Fn,Wt,Ut;const[Yt]=(0,he.useSearchParams)(),ta=(0,he.useParams)();let[nn,zn]=(0,a.useState)(ri({page:1,limit:20},ta));const{commonHeader:mn,updateIndex:pa}=ae,{userInfo:Pt}=Be,[Nt,Rt]=(0,a.useState)({}),[Xt,cn]=(0,a.useState)(0),[tn,Ja]=(0,a.useState)(0),[ha,dt]=(0,a.useState)(!1),[Fa,ia]=(0,a.useState)("alert"),[wu,Sa]=(0,a.useState)(0),[Hn,Oa]=(0,a.useState)(!1),[tu,Ka]=(0,a.useState)(!1),[Ba]=fe.default.useForm(),[La,Zn]=(0,a.useState)([]),[bn,ca]=(0,a.useState)(1),[Qn,pn]=(0,a.useState)(""),[Tn,En]=(0,a.useState)(),[da,Ha]=(0,a.useState)(!1),[au,Ya]=(0,a.useState)(!1),[Cr,Zu]=(0,a.useState)({name:"",id:"",list:[]}),[sa,Ru]=(0,a.useState)({}),[mr,gl]=(0,a.useState)({}),[Tl,mu]=(0,a.useState)(!0),[$u,jr]=(0,a.useState)(""),[Eu,wr]=(0,a.useState)(""),[Va,Nu]=(0,a.useState)(""),[oo,Su]=(0,a.useState)([]),[,,Pu]=(0,sn.U)(ne.N0,{}),[ci,Ho]=(0,a.useState)([]),[ji,fc]=(0,a.useState)(!0),[qa,bl]=(0,a.useState)({});(0,a.useEffect)(()=>{let Ln={};if(Yt.get("exercise_group_id")&&!pa){if(Yt.get("statistics")){let kn=[];const Dr=Yt.get("scope");Dr==="0"&&(kn=["all"]),Dr==="1"&&(kn=[1,2,3]),Dr==="2"&&(kn=[2,3]),Ln={exercise_group_id:Yt.get("exercise_group_id"),commit_status:kn}}else Ln={review:[0,2],commit_status:[2,3]},Yt.get("exercise_group_id")!=="0"&&(Ln.exercise_group_id=[Number(Yt.get("exercise_group_id"))]);Ba.setFieldsValue(ri({},Ln))}return nn=ri(ri({},nn),Ln),zn(ri({},nn)),lo(),Yu(nn),Su([]),()=>{pt({type:"exercise/setUpdateIndex",payload:"clear"})}},[pa]);const lo=()=>Qi(void 0,null,function*(){var Ln,kn;const Dr=yield(0,Ce.ZP)(`/api/exercises/${nn.categoryId}/header_info.json`,{method:"get"});(Dr==null?void 0:Dr.status)===0&&(Ru((Dr==null?void 0:Dr.data)||{}),console.log((Ln=Dr==null?void 0:Dr.data)==null?void 0:Ln.course_groups),pt({type:"exercise/save",payload:{course_groups:(kn=Dr==null?void 0:Dr.data)==null?void 0:kn.course_groups}}))}),Yu=Ln=>Qi(void 0,null,function*(){var kn,Dr,Rs,ec,es,Ad,C0,Zd,Nm,dm,kg;mu(!0);const vc=yield(0,Ce.ZP)(`/api/exercises/${nn.categoryId}/exercise_users.json`,{method:"get",params:Ln});if((vc==null?void 0:vc.status)===0){let jg=(Rs=(Dr=(kn=vc==null?void 0:vc.data)==null?void 0:kn.exercise_users)==null?void 0:Dr[0])==null?void 0:Rs.commit_status;fc(jg==2||jg==3),gl({exercise_users:((ec=vc==null?void 0:vc.data)==null?void 0:ec.exercise_users)||[],current_answer_user:((es=vc==null?void 0:vc.data)==null?void 0:es.current_answer_user)||{}}),jr(((Ad=vc==null?void 0:vc.data)==null?void 0:Ad.appraise_user_login)||""),wr(((C0=vc==null?void 0:vc.data)==null?void 0:C0.first_export_user_login)||""),cn((Zd=vc==null?void 0:vc.data)==null?void 0:Zd.total_count),Ja(typeof((Nm=vc==null?void 0:vc.data)==null?void 0:Nm.total_score)=="string"?Number((dm=vc==null?void 0:vc.data)==null?void 0:dm.total_score):(kg=vc==null?void 0:vc.data)==null?void 0:kg.total_score)}Nu(vc==null?void 0:vc.status),mu(!1)});(0,a.useEffect)(()=>{pt({type:"exercise/setSaveExerciseDownUsers",payload:$c})},[Eu,Xt,JSON.stringify(nn)]);function tl(Ln){return Qi(this,null,function*(){var kn,Dr,Rs,ec;En(Ln==null?void 0:Ln.exercise_user_id),Ha(Ln.commit_status===2||Ln.commit_status===3),Oa(!0);let es=yield(0,Ce.ZP)(`/api/exercises/${nn.categoryId}/student_info.json`,{method:"get",params:{exercise_user_id:Ln==null?void 0:Ln.exercise_user_id}});((Dr=(kn=es==null?void 0:es.data)==null?void 0:kn.exercise_user_photos)==null?void 0:Dr.length)>0?dt(!0):pe.ZP.info("\u5F53\u524D\u6682\u65E0\u7167\u7247"),Zn((Rs=es==null?void 0:es.data)==null?void 0:Rs.exercise_user_photos),Sa((ec=es==null?void 0:es.data)==null?void 0:ec.alert_count),Oa(!1)})}const _r=Ln=>{nn.page=1;const kn=Object.assign({},Ba.getFieldsValue());Object.keys(kn).map(function(Dr){Dr==="objective_score_gte"||Dr==="objective_score_lte"||(kn[Dr].includes("all")?(delete nn[Dr],Ba.setFieldsValue({[Dr]:"all"})):(nn[Dr]=kn[Dr],kn[Dr]==""||!kn[Dr]?Ba.setFieldsValue({[Dr]:"all"}):Ba.setFieldsValue({[Dr]:nn[Dr]})))}),("objective_score_gte"in Ln||"objective_score_lte"in Ln)&&(kn.objective_score_gte&&kn.objective_score_lte&&kn.objective_score_gte>kn.objective_score_lte?(Ba.setFieldsValue({objective_score_lte:kn.objective_score_gte}),nn.objective_score_lte=kn.objective_score_gte||null,nn.objective_score_gte=kn.objective_score_gte||null):(nn.objective_score_lte=kn.objective_score_lte||null,nn.objective_score_gte=kn.objective_score_gte||null)),zn(ri({},nn)),Yu(nn),et(ri({},nn))},Io=(Ln=1,kn=20)=>{nn.page=Ln,nn.limit=kn,zn(ri({},nn)),Yu(nn)};let os=new Date().getTime();const Zl=[{title:"\u5E8F\u53F7",dataIndex:"name",fixed:"left",align:"center",render:(Ln,kn,Dr)=>Sn.createElement(Ae.Z,{title:((nn.page||1)-1)*nn.limit+Dr+1},Sn.createElement("span",null,((nn.page||1)-1)*nn.limit+Dr+1))},{title:"\u59D3\u540D",dataIndex:"user_name",fixed:"left",align:"left",render:(Ln,kn)=>Sn.createElement("div",{style:{display:"flex",alignItems:"center"},onClick:()=>{var Dr;if(Ln&&(0,On.GJ)()){if((0,On.Rm)()&&!((Dr=Pe.AssistantObject.exercise)!=null&&Dr.can_view)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}switch(kn.commit_status){case 0:if(!(0,On.Ny)()){pe.ZP.warning("\u5B66\u751F\u672A\u5F00\u59CB\u8003\u8BD5\uFF0C\u60A8\u65E0\u6743\u67E5\u770B");return}break;default:console.log("\u5F53\u524D\u63D0\u4EA4\u72B6\u6001",kn.commit_status)}Ln&&(0,On.GJ)()&&(Us(),(0,de.xg)(`/classrooms/${nn.coursesId}/exercise/${nn.categoryId}/review/${kn==null?void 0:kn.login}`))}}},Sn.createElement("span",{className:Ln&&(0,On.GJ)()?Jt.operationLink:""},Ln||"--"),!!(kn!=null&&kn.delayed_at)&&mn.time!==-1&&Sn.createElement(Ae.Z,{title:Sn.createElement("div",null,"\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\u8C03\u6574\u81F3",Sn.createElement("span",{className:"ml5"},Ge()(kn.delayed_at).format("YYYY-MM-DD HH:mm")))},Sn.createElement("span",{className:"iconfont icon-shizhong c-blue"})))},{title:"\u5B66\u53F7",dataIndex:"student_id",align:"left",sorter:!0,render:Ln=>Ln||"--"},!(sa!=null&&sa.is_excellent)&&(sa==null?void 0:sa.groups_count)!==0&&{title:"\u5206\u73ED",dataIndex:"user_group_name",align:"left",render:(Ln,kn)=>Sn.createElement("div",{className:Jt.banding,title:Ln||"--"},Ln||"--")},{title:(mn==null?void 0:mn.exercise_type)==2&&!(0,On.dE)()?"\u6700\u9AD8\u6210\u7EE9":"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",align:"center",sorter:!0,render:(Ln,kn)=>kn.commit_status===0||kn.commit_status===1?"--":!kn.open_total_score&&(0,On.dE)()?"\u8001\u5E08\u5BA1\u6838\u4E2D":(Ln=typeof Ln=="number"?Number(Ln):Ln,console.log(typeof Ln),Ln||(Ln=0),Ln===100?Sn.createElement("span",{className:"c-green"},Ln):Ln>60?Sn.createElement("span",{className:"c-orange"},Ln):Ln==tn*.6?Sn.createElement("span",{className:"c-red"},Ln):Sn.createElement("span",null,Ln))},!((sa==null?void 0:sa.objective)!==1||(sa==null?void 0:sa.objective)===1&&(sa==null?void 0:sa.subjective)!==1)&&{title:"\u5BA2\u89C2\u9898\u5F97\u5206",dataIndex:"objective_score",align:"center",render:(Ln,kn)=>{if(kn.commit_status===0||kn.commit_status===1)return"--";if(!kn.open_total_score&&(0,On.dE)())return"\u8001\u5E08\u5BA1\u6838\u4E2D";{Ln=typeof Ln=="number"?Number(Ln):Ln,Ln||(Ln=0);let Dr;return Ln>=0&&Ln<=60?Dr=Sn.createElement("span",null,Ln):Ln===100?Dr=Sn.createElement("span",{className:"c-green"},Ln):Ln>60?Dr=Sn.createElement("span",{className:"c-orange"},Ln):Dr="--",Sn.createElement(oa,{renderText:Dr,item:kn})}}},!((sa==null?void 0:sa.subjective)!==1||(sa==null?void 0:sa.subjective)===1&&(sa==null?void 0:sa.objective)!==1)&&{title:"\u4E3B\u89C2\u9898\u5F97\u5206",dataIndex:"subjective_score",align:"center",render:(Ln,kn)=>{if(kn.commit_status===0||kn.commit_status===1)return"--";if(!kn.open_total_score&&(0,On.dE)())return"\u8001\u5E08\u5BA1\u6838\u4E2D";{let Dr;sa!=null&&sa.appraise_setting&&(sa!=null&&sa.sealed_review)&&new Date(sa==null?void 0:sa.appraise_end_time).getTime()>os&&(Dr="--"),!(kn!=null&&kn.has_comment)&&kn.review_status&&(Dr="\u8BC4\u9605\u4E2D"),kn!=null&&kn.has_comment?Dr="\u5DF2\u8BC4\u9605":Dr="\u672A\u8BC4\u9605",Ln=typeof Ln=="number"?Number(Ln):Ln,Ln||(Ln=0);let Rs;return Ln===0?Rs=Sn.createElement("span",null,Ln," ",Dr==="\u672A\u8BC4\u9605"&&Sn.createElement("span",{className:"c-red"}," (\u5F85\u8BC4\u9605)")):Ln>0&&Ln<=60?Rs=Sn.createElement("span",null,Ln):Ln===100?Rs=Sn.createElement("span",{className:"c-green"},Ln):Ln>60?Rs=Sn.createElement("span",{className:"c-orange"},Ln):Rs="--",Rs}}},(mn==null?void 0:mn.open_make_up)&&{title:"\u8865\u8003\u6263\u5206",dataIndex:"make_up_score",render:(Ln,kn)=>[1,2].includes(kn==null?void 0:kn.commit_status)?Ln:"--"},{title:"\u63D0\u4EA4\u72B6\u6001",dataIndex:"commit_status",align:"left",render:(Ln,kn)=>Ln===0?Sn.createElement("span",{style:{color:"#666666"}},"\u672A\u5F00\u59CB"):Ln===1?Sn.createElement("span",{style:{color:"#DF3042"}},!kn.is_make_up&&"\u8003\u8BD5\u4E2D",kn.is_make_up&&"\u8003\u8BD5\u4E2D (\u8865\u8003)"):Ln===2?Sn.createElement("span",{style:{color:"#5AB891"}},!kn.is_make_up&&!kn.is_force_commit&&"\u5DF2\u4EA4\u5377",kn.is_make_up&&!kn.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003)",kn.is_make_up&&kn.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003/\u5F3A\u5236)",!kn.is_make_up&&kn.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u5F3A\u5236)"):Sn.createElement("span",{style:{color:"#5AB891"}},!kn.is_make_up&&!kn.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54",kn.is_make_up&&!kn.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003)",kn.is_make_up&&kn.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003/\u5F3A\u5236)",!kn.is_make_up&&kn.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u5F3A\u5236)")},{title:"\u5F00\u59CB\u7B54\u9898\u65F6\u95F4",dataIndex:"start_at",align:"left",sorter:!0,render:Ln=>Ln?Ge()(Ln).format("YYYY-MM-DD HH:mm"):"--"},{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"end_at",sorter:!0,render:(Ln,kn)=>Ln?Ge()(Ln).format("YYYY-MM-DD HH:mm"):"--"},(0,On.GJ)()&&(mn==null?void 0:mn.exercise_type)===2&&{title:Sn.createElement("span",null,"\u8003\u8BD5\u6B21\u6570",Sn.createElement(Ae.Z,{title:"\u6BCF\u4E2A\u5B66\u751F\u7684\u5DF2\u8003\u8BD5\u6B21\u6570/\u53EF\u8003\u8BD5\u6B21\u6570\uFF0C\u53EF\u70B9\u51FB\u67E5\u770B\u5B66\u751F\u7684\u8003\u8BD5\u8BB0\u5F55"},Sn.createElement("i",{className:"iconfont icon-xiaowenhao font14 current"}))),dataIndex:"exercise_user_redo_count",render:(Ln,kn)=>{var Dr;return Sn.createElement("span",{style:{color:"#3061D0",cursor:"pointer"},onClick:()=>{const Rs={name:kn==null?void 0:kn.user_name,id:kn==null?void 0:kn.student_id,list:kn==null?void 0:kn.simulate_exercise_records};Zu(ri({},Rs)),Ya(!0)}},(Dr=kn==null?void 0:kn.simulate_exercise_records)==null?void 0:Dr.length,"/",mn==null?void 0:mn.simulate_exercise_num)||"--"}},{title:"\u6253\u56DE\u6B21\u6570",dataIndex:"exercise_user_redo_count",className:((vn=Pt==null?void 0:Pt.course)==null?void 0:vn.course_role)===15||(mn==null?void 0:mn.exercise_type)==2?Jt.noShow:"",align:"left",render:(Ln,kn)=>Sn.createElement("div",{style:{display:"flex",alignItems:"center"}},Sn.createElement("span",{className:Jt.operationLink,onClick:()=>{pt({type:"exercise/setActionTabs",payload:{key:"\u6253\u56DE\u8BB0\u5F55",student_id:kn.user_id}})}},Ln||"0"))},(mn==null?void 0:mn.screen_open)&&{title:Sn.createElement("span",null,"\u5207\u5C4F\u6B21\u6570",Sn.createElement(Ae.Z,{title:"\u7EA2\u8272\u4EE3\u8868\u5B66\u751F\u5207\u5C4F\u8D85\u8FC7\u89C4\u5B9A\u6B21\u6570\u88AB\u5F3A\u5236\u4EA4\u5377"},Sn.createElement("span",{className:"icon-xiaowenhao"}))),dataIndex:"screen_used_num",align:"center",render:(Ln,kn)=>Sn.createElement("span",{style:Ln>0?{cursor:"pointer"}:{},className:Ln>(kn==null?void 0:kn.screen_total_num)?"c-red":"",onClick:()=>Qi(void 0,null,function*(){if(Ln===0)return;const Dr=yield(0,ne.Yu)(ta.categoryId,{exercise_user_id:kn.exercise_user_id});Fe.default.info({title:`\u5207\u5C4F\u8BB0\u5F55\uFF08${kn==null?void 0:kn.user_name}\uFF09`,icon:null,closable:!0,className:Jt.recordScreenModal,maskClosable:!0,width:616,centered:!0,content:Sn.createElement(x.default,{style:{marginTop:14},bordered:!0,pagination:!1,rowKey:"time",columns:[{title:"\u5F00\u59CB\u5207\u5C4F\u65F6\u95F4",align:"center",dataIndex:"time"},{title:"\u5207\u5C4F\u65F6\u957F\uFF08\u79D2\uFF09",align:"center",dataIndex:"time_long"},{title:"\u5224\u5B9A\u5207\u5C4F\u6B21\u6570",align:"center",dataIndex:"count"}],dataSource:Dr==null?void 0:Dr.data})})})},Ln,"/",kn==null?void 0:kn.screen_total_num)},(mn==null?void 0:mn.exercise_status)>1&&(mn==null?void 0:mn.open_camera)&&(0,On.GJ)()&&!((hn=Ve.setting)!=null&&hn.is_local)&&{title:"\u8003\u8BD5\u7167\u7247",dataIndex:"photo_count",align:"center",render:(Ln,kn)=>kn.commit_status>0?Sn.createElement("a",{onClick:()=>{tl(kn)}},`${Ln||0}/${mn==null?void 0:mn.photo_count}`):"--"},(mn==null?void 0:mn.ip_bind)&&(0,On.Gg)()&&{title:"\u8003\u8BD5IP",dataIndex:"last_ip",align:"center",render:(Ln,kn)=>Sn.createElement(Sn.Fragment,null,Ln||"--",kn.commit_status<=1&&mn.ip_bind&&kn.last_ip&&Sn.createElement(me.ZP,{type:"link",onClick:()=>Qi(void 0,null,function*(){const Dr=Fe.default.confirm({title:Sn.createElement(oe.Z,null,Sn.createElement(ve.Z,{flex:"1"},"\u89E3\u9664\u7ED1\u5B9A"),Sn.createElement(ve.Z,null,Sn.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:()=>Dr.destroy()}))),width:500,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",className:"custom-modal-divider",content:Sn.createElement("div",null,"\u4E3A\u5B66\u751F\u89E3\u9664\u8003\u8BD5IP\u7ED1\u5B9A\u540E\uFF0C\u5B66\u751F\u53EF\u4EE5\u4F7F\u7528\u65B0\u7684IP\u5730\u5740\u8FDB\u5165\u8003\u8BD5\u3002",Sn.createElement("span",{className:"c-red"},"\u5982\u679C\u8BE5\u5B66\u751F\u6B63\u5728\u8003\u8BD5\u4E2D\uFF0C\u5C06\u65E0\u6CD5\u4F5C\u7B54\uFF0C\u9700\u8981\u91CD\u65B0\u8FDB\u5165\u8003\u8BD5\u3002"),"\u60A8\u786E\u5B9A\u8981\u89E3\u9664\u8BE5\u5B66\u751F\u7684\u8003\u8BD5IP\u7ED1\u5B9A\uFF1F"),onOk:()=>Qi(void 0,null,function*(){(yield(0,ne.ab)({id:nn.categoryId,exercise_user_id:kn.exercise_user_id})).status===0&&(pe.ZP.success("\u89E3\u7ED1\u6210\u529F"),Yu(nn))})})})},"\u89E3\u7ED1"))},(mn==null?void 0:mn.open_camera)&&(0,On.Gg)()&&mn.exercise_status<3&&!((xt=Ve.setting)!=null&&xt.is_local)&&{title:"\u5141\u8BB8\u4E0D\u62CD\u6444",dataIndex:"close_camera",align:"center",render:(Ln,kn)=>Sn.createElement(Ne.Z,{checked:Ln,onClick:()=>Qi(void 0,null,function*(){Ln?Fe.default.info({title:"\u63D0\u793A",content:Sn.createElement("div",null,"\u4E0D\u5141\u8BB8\u4FEE\u6539"),okText:"\u786E\u8BA4"}):Fe.default.confirm({title:"\u5141\u8BB8\u4E0D\u6444\u50CF\u8B66\u544A",content:Sn.createElement("div",null,"\u4E3A\u4FDD\u8BC1\u8003\u8BD5\u516C\u5E73\uFF0C\u672C\u6B21\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A\u8BBE\u7F6E\uFF0C\u8FD9\u9700\u8981\u8C03\u7528\u5B66\u751F\u7684\u6444\u50CF\u5934\u3002\u5982\u5B66\u751F\u786C\u4EF6\u8BBE\u65BD\u786E\u6709\u95EE\u9898\uFF0C\u4E3A\u4FDD\u8BC1\u5B66\u751F\u8003\u8BD5\u6743\u5229\uFF0C\u6559\u5E08\u53EF\u4E34\u65F6\u53D6\u6D88\u9650\u5236\uFF0C\u5141\u8BB8\u5B66\u751F\u53C2\u8003\u3002 \u672C\u64CD\u4F5C\u4E0D\u53EF\u64A4\u56DE\uFF0C\u4E0D\u53EF\u4FEE\u6539\u3002 \u60A8\u786E\u8BA4\u540C\u610F\u8BE5\u5B66\u751F\u4E0D\u5F00\u542F\u6444\u50CF\u5934\u53C2\u52A0\u8003\u8BD5\u5417\uFF1F"),onOk:()=>Qi(void 0,null,function*(){const Dr=yield(0,ne.cC)(Gs(ri({},nn),{exercise_user_id:kn.exercise_user_id}));(Dr==null?void 0:Dr.status)===0&&(pe.ZP.success("\u64CD\u4F5C\u6210\u529F"),Yu(nn))})})})})},(0,On.GJ)()&&{title:"\u8BC4\u9605\u72B6\u6001",dataIndex:"has_comment",align:"center",render:(Ln,kn)=>sa!=null&&sa.appraise_setting&&(sa!=null&&sa.sealed_review)&&new Date(sa==null?void 0:sa.appraise_end_time).getTime()>os?"--":!Ln&&kn.review_status?"\u8BC4\u9605\u4E2D":Ln?"\u5DF2\u8BC4\u9605":"\u672A\u8BC4\u9605"},((mn==null?void 0:mn.assistant_auth)||(0,On.GJ)()||(0,On.dE)())&&Dt&&{title:"\u64CD\u4F5C",fixed:"right",dataInex:"action",align:"left",className:Jt.operationCol,render:(Ln,kn)=>{var Dr,Rs;return(mn==null?void 0:mn.exercise_status)===-1?Sn.createElement("div",null," ",(0,On.GJ)()&&Sn.createElement("a",{onClick:ec=>{ec.stopPropagation(),pt({type:"classroomList/setActionTabs",payload:{key:"\u4FEE\u6539\u6210\u7EE9",id:kn==null?void 0:kn.exercise_user_id,type:"exercise"}})}},"\u4FEE\u6539\u6210\u7EE9"),Sn.createElement("a",{style:{marginLeft:(0,On.GJ)()&&10},onClick:(0,Ta.debounce)(ec=>Qi(void 0,null,function*(){var es,Ad,C0;ec.stopPropagation();let Zd=yield(0,Ce.ZP)(`/api/exercises/${nn==null?void 0:nn.categoryId}/exercise_user/view_detail.json`,{method:"get",params:{exercise_user_id:kn==null?void 0:kn.exercise_user_id}});Fe.default.confirm({title:"\u8003\u8BD5\u8BE6\u60C5",closable:!0,width:1200,icon:null,content:Sn.createElement("div",null,Sn.createElement("div",{style:{display:"flex"}},Sn.createElement("div",null,Sn.createElement("span",{style:{color:"#666666"}},"\u5B66\u751F\u59D3\u540D"),Sn.createElement("span",{style:{marginLeft:10}},(es=Zd==null?void 0:Zd.data)==null?void 0:es.user_name)),Sn.createElement("div",{style:{marginLeft:60}},Sn.createElement("span",{style:{color:"#666666"}},"\u5B66\u53F7"),Sn.createElement("span",{style:{marginLeft:10}},(Ad=Zd==null?void 0:Zd.data)==null?void 0:Ad.student_id)),Sn.createElement("div",{style:{marginLeft:60}},Sn.createElement("span",{style:{color:"#666666"}},"\u73ED\u7EA7"),Sn.createElement("span",{style:{marginLeft:10}},(C0=Zd==null?void 0:Zd.data)==null?void 0:C0.group_name))),Sn.createElement("div",{style:{marginTop:22,marginBottom:20}},Sn.createElement(x.default,{columns:[{title:"\u9898\u578B",dataIndex:"type_name",align:"center",render:()=>"\u5F97\u5206"},{title:"\u5355\u9009\u9898",dataIndex:"single_score",align:"center"},{title:"\u591A\u9009\u9898",dataIndex:"multiple_score",align:"center"},{title:"\u586B\u7A7A\u9898",dataIndex:"completion_score",align:"center"},{title:"\u5224\u65AD\u9898",dataIndex:"judgment_score",align:"center"},{title:"\u7F16\u7A0B\u9898",dataIndex:"program_score",align:"center"},{title:"\u5B9E\u8BAD\u9898",dataIndex:"practical_score",align:"center"},{title:"\u7EC4\u5408\u9898",dataIndex:"combination_socre",align:"center"},{title:"\u7B80\u7B54\u9898",dataIndex:"subjective_score",align:"center"},{title:"\u7A0B\u5E8F\u586B\u7A7A\u9898",dataIndex:"bprogram_score",align:"center"},{title:"\u603B\u5206",dataIndex:"total_score",align:"center",render:(Nm,dm)=>Sn.createElement("span",{style:{color:(dm==null?void 0:dm.type_name)=="\u5B9E\u5F97\u5206"?"#FA2121":""}},Nm)}],pagination:!1,dataSource:[ri({},Zd==null?void 0:Zd.data)]}))),footer:null})}),300)},"\u67E5\u770B\u8BE6\u60C5")):Sn.createElement("div",{className:"flex gap-10px"},(0,On.GJ)()&&(kn==null?void 0:kn.commit_status)===1&&Sn.createElement(me.ZP,{ghost:!0,type:"primary",size:"small",disabled:(kn==null?void 0:kn.commit_status)!==1,onClick:()=>{(0,de.xg)(`/classrooms/${nn.coursesId}/exercise/${nn.categoryId}/review/${kn.login}`)}},"\u67E5\u9605"),((mn==null?void 0:mn.enable_report_setting)&&(mn==null?void 0:mn.enable_student_view)||(mn==null?void 0:mn.enable_report_setting)&&(0,On.eB)())&&Sn.createElement(me.ZP,{ghost:!0,type:"primary",size:"small",disabled:kn.commit_status<2,onClick:ec=>Qi(void 0,null,function*(){if(ec.preventDefault(),(mn==null?void 0:mn.report_type)===0){let es=yield(0,Ce.ZP)(`/api/exercises/${nn.categoryId}/exercise_user/report_detail.json`,{method:"get",params:{exercise_user_id:kn==null?void 0:kn.exercise_user_id}});(es==null?void 0:es.status)===0&&((0,On.dE)()?bl({url:es==null?void 0:es.url,file_type:"pdf",isedit:!1}):bl({url:es==null?void 0:es.url,file_type:"pdf",isedit:!0,exercise_user_id:kn==null?void 0:kn.exercise_user_id}))}else he.history.push(`/classrooms/${nn.coursesId}/exercise/${nn.categoryId}/WordInfo/${kn==null?void 0:kn.exercise_user_id}`)})},"\u5B9E\u9A8C\u62A5\u544A"),(0,On.GJ)()&&(kn==null?void 0:kn.commit_status)!==1&&Sn.createElement(me.ZP,{ghost:!0,type:"primary",size:"small",disabled:kn.commit_status<2,onClick:ec=>Qi(void 0,null,function*(){var es,Ad;if(ec.preventDefault(),yield(0,Za.w)(ta.coursesId,ta.categoryId),kn.commit_status===2){if((0,On.Rm)()&&!((es=Pe.AssistantObject.exercise)!=null&&es.can_view)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Us(),window.location.href=`/classrooms/${nn.coursesId}/exercise/${nn.categoryId}/review/${kn.login}`}if(kn.commit_status===3){if((0,On.Rm)()&&!((Ad=Pe.AssistantObject.exercise)!=null&&Ad.can_appraise)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}pt({type:"exercise/setActionTabs",payload:{key:"\u66F4\u6539\u8BC4\u9605",saveExerciseUsers:Us,selectArrs:{record:ri({},kn),exercise_types:ri({},sa)},params:ri({},nn)}})}})},sa!=null&&sa.appraise_setting&&(sa!=null&&sa.sealed_review)&&new Date(sa==null?void 0:sa.appraise_end_time).getTime()>os?"\u8BC4\u9605":kn.has_comment?"\u66F4\u6539\u8BC4\u9605":!kn.has_comment&&"\u8BC4\u9605"),!(0,On.dE)()&&["\u8003\u8BD5\u4E2D"].includes(de.ju[mn.exercise_status])&&Sn.createElement(me.ZP,{ghost:!0,type:"primary",size:"small",disabled:(kn==null?void 0:kn.commit_status)===0,onClick:()=>{var ec,es;if((0,On.Rm)()&&!((es=(ec=Pe==null?void 0:Pe.AssistantObject)==null?void 0:ec.exercise)!=null&&es.can_forcing_commit)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}pt({type:"exercise/setActionTabs",payload:{key:"\u8C03\u6574\u72B6\u6001",selectArrs:kn,exercise_user_id:[kn.exercise_user_id]}})}},"\u8C03\u6574\u72B6\u6001"),(0,On.dE)()&&Sn.createElement("span",{style:{color:sa!=null&&sa.answered_open&&((Dr=mr==null?void 0:mr.current_answer_user)==null?void 0:Dr.login)===(kn==null?void 0:kn.login)?"#0152d9":"#000000",marginRight:"5px",cursor:"pointer"},onClick:()=>Qi(void 0,null,function*(){if(!(sa!=null&&sa.answered_open)){pe.ZP.info("\u8001\u5E08\u5DF2\u8BBE\u7F6E\u672C\u8BD5\u5377\u5728\u4EA4\u5377\u540E\u4E0D\u53EF\u67E5\u770B");return}yield(0,Za.w)(ta.coursesId,ta.categoryId,"\u6B63\u5728\u8FDB\u5165\u67E5\u770B\uFF0C\u8BF7\u7A0D\u540E..."),(0,de.xg)(`/classrooms/${nn.coursesId}/exercise/${nn.categoryId}/users/${kn==null?void 0:kn.login}?check=true`)})},sa!=null&&sa.answered_open&&((Rs=mr==null?void 0:mr.current_answer_user)==null?void 0:Rs.login)===(kn==null?void 0:kn.login)?"\u67E5\u770B":""),(mn==null?void 0:mn.exercise_time)>0&&(mn==null?void 0:mn.exercise_type)!=2&&(0,On.Gg)()&&["\u8003\u8BD5\u4E2D"].includes(de.ju[mn.exercise_status])&&Sn.createElement(Ae.Z,{title:mn.exercise_status===3?"\u672C\u8BD5\u5377\u5DF2\u622A\u6B62\uFF0C\u8BF7\u5148\u4FEE\u6539\u622A\u6B62\u65F6\u95F4\u4F7F\u672C\u8BD5\u5377\u5904\u4E8E\u201C\u8003\u8BD5\u4E2D\u201D":!1},Sn.createElement(me.ZP,{danger:!0,ghost:!0,size:"small",disabled:mn.exercise_status===3||mn.exercise_status===5||(mn==null?void 0:mn.appraise_label)||(kn==null?void 0:kn.commit_status)===0,onClick:()=>{var ec,es;if((0,On.Rm)()&&!((es=(ec=Pe==null?void 0:Pe.AssistantObject)==null?void 0:ec.exercise)!=null&&es.can_delay)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}pt({type:"exercise/setActionTabs",payload:{key:"\u5EF6\u65F6",exercise_user_id:[kn.exercise_user_id],selectArrs:kn,exercise_time:mn.exercise_time,params:ri({},nn)}})}},"\u5EF6\u65F6")))}}].filter(Ln=>!!Ln),Bs=[{title:"\u5E8F\u53F7",dataIndex:"name",fixed:"left",align:"center",width:60,render:(Ln,kn,Dr)=>Sn.createElement(Ae.Z,{title:((nn.page||1)-1)*20+Dr+1},Sn.createElement("span",null,((nn.page||1)-1)*20+Dr+1))},{title:"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",align:"center",width:100,render:(Ln,kn)=>kn.commit_status===0||kn.commit_status===1?"--":!kn.open_total_score&&(0,On.dE)()?"\u8001\u5E08\u5BA1\u6838\u4E2D":(Ln=typeof Ln=="number"?Number(Ln):Ln,Ln||(Ln=0),Ln===100?Sn.createElement("span",{className:"c-green"},Ln):Ln>60?Sn.createElement("span",{className:"c-orange"},Ln):Sn.createElement("span",null,Ln))},!((sa==null?void 0:sa.objective)!==1||(sa==null?void 0:sa.objective)===1&&(sa==null?void 0:sa.subjective)!==1)&&{title:"\u5BA2\u89C2\u9898\u5F97\u5206",dataIndex:"objective_score",align:"center",render:(Ln,kn)=>{if(kn.commit_status===0||kn.commit_status===1)return"--";if(!kn.open_total_score&&(0,On.dE)())return"\u8001\u5E08\u5BA1\u6838\u4E2D";{Ln=typeof Ln=="number"?Number(Ln):Ln,Ln||(Ln=0);let Dr;return Ln>=0&&Ln<=60?Dr=Sn.createElement("span",null,Ln):Ln===100?Dr=Sn.createElement("span",{className:"c-green"},Ln):Ln>60?Dr=Sn.createElement("span",{className:"c-orange"},Ln):Dr="--",Sn.createElement(oa,{renderText:Dr,item:kn})}}},!((sa==null?void 0:sa.subjective)!==1||(sa==null?void 0:sa.subjective)===1&&(sa==null?void 0:sa.objective)!==1)&&{title:"\u4E3B\u89C2\u9898\u5F97\u5206",dataIndex:"subjective_score",align:"center",render:(Ln,kn)=>{if(kn.commit_status===0||kn.commit_status===1)return"--";if(!kn.open_total_score&&(0,On.dE)())return"\u8001\u5E08\u5BA1\u6838\u4E2D";{Ln=typeof Ln=="number"?Number(Ln):Ln,Ln||(Ln=0);let Dr;return Ln==0||Ln>0&&Ln<=60?Dr=Sn.createElement("span",null,Ln):Ln===100?Dr=Sn.createElement("span",{className:"c-green"},Ln):Ln>60?Dr=Sn.createElement("span",{className:"c-orange"},Ln):Dr="--",Dr}}},{title:"\u63D0\u4EA4\u72B6\u6001",dataIndex:"commit_status",align:"center",width:200,render:(Ln,kn)=>Ln===0?Sn.createElement("span",{style:{color:"#666666"}},"\u672A\u5F00\u59CB"):Ln===1?Sn.createElement("span",{style:{color:"#DF3042"}},!kn.is_make_up&&"\u8003\u8BD5\u4E2D",kn.is_make_up&&"\u8003\u8BD5\u4E2D (\u8865\u8003)"):Ln===2?Sn.createElement("span",{style:{color:"#5AB891"}},!kn.is_make_up&&!kn.is_force_commit&&"\u5DF2\u4EA4\u5377",kn.is_make_up&&!kn.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003)",kn.is_make_up&&kn.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003/\u5F3A\u5236)",!kn.is_make_up&&kn.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u5F3A\u5236)"):Sn.createElement("span",{style:{color:"#5AB891"}},!kn.is_make_up&&!kn.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54",kn.is_make_up&&!kn.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003)",kn.is_make_up&&kn.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003/\u5F3A\u5236)",!kn.is_make_up&&kn.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u5F3A\u5236)")},{title:"\u5F00\u59CB\u7B54\u9898\u65F6\u95F4",dataIndex:"start_at",align:"center",width:200,render:Ln=>Ln?Ge()(Ln).format("YYYY-MM-DD HH:mm"):"--"},{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"end_at",align:"center",width:200,render:Ln=>Ln?Ge()(Ln).format("YYYY-MM-DD HH:mm"):"--"}].filter(Ln=>!!Ln),Di=[...Zl];Di[0]=ri({},Di[0]),Di[(Di==null?void 0:Di.length)-1]=ri({},Di[(Di==null?void 0:Di.length)-1]),Di[0].render=()=>"\u6211",Di[(Di==null?void 0:Di.length)-1].render=()=>{var Ln;return(Ln=mr==null?void 0:mr.current_answer_user)!=null&&Ln.login?Sn.createElement("span",{style:{color:"#0152d9",marginRight:"5px",cursor:"pointer"},onClick:()=>Qi(void 0,null,function*(){var kn,Dr;if(!(sa!=null&&sa.answered_open)){pe.ZP.info("\u8001\u5E08\u5DF2\u8BBE\u7F6E\u672C\u8BD5\u5377\u5728\u4EA4\u5377\u540E\u4E0D\u53EF\u67E5\u770B");return}yield(0,Za.w)(ta.coursesId,ta.categoryId,"\u6B63\u5728\u8FDB\u5165\u67E5\u770B\uFF0C\u8BF7\u7A0D\u540E...");let Rs=`/classrooms/${nn.coursesId}/exercise/${nn.categoryId}/users/${(kn=mr==null?void 0:mr.current_answer_user)==null?void 0:kn.login}`;((Dr=mr==null?void 0:mr.current_answer_user)==null?void 0:Dr.commit_status)>1&&(Rs=Rs+"?check=true"),he.history.push(Rs)})},"\u67E5\u770B"):"--"};const Us=()=>{var Ln;try{const kn=ri({},nn);delete kn.page,delete kn.limit,localStorage[`${(Ln=Be==null?void 0:Be.userInfo)==null?void 0:Ln.login}-${nn.coursesId}-${nn.categoryId}-filter`]=JSON.stringify(kn)}catch(kn){}},$c=()=>{var Ln;try{const kn=Gs(ri({},nn),{firstTargetLogin:Eu,totalCount:Xt});delete kn.page,delete kn.limit,localStorage[`${(Ln=Be==null?void 0:Be.userInfo)==null?void 0:Ln.login}-${nn.coursesId}-${nn.categoryId}-downFilter`]=JSON.stringify(kn)}catch(kn){}};return Sn.createElement("section",{className:"mb20"},(sa==null?void 0:sa.score_open)&&(0,On.dE)()&&Sn.createElement(x.default,{pagination:!1,showHeader:!1,dataSource:[ri({},mr==null?void 0:mr.current_answer_user)],columns:Di,scroll:{x:"max-content"}}),!(0,On.GJ)()&&Sn.createElement("div",{className:"bg-white pt10 mt15"},!!(sa!=null&&sa.answer_users)&&Sn.createElement("span",{className:"mr10"},Sn.createElement("span",{style:{color:"#FF954C"}},sa==null?void 0:sa.answer_users," "),"\u5DF2\u4EA4"),!!(sa!=null&&sa.unanswer_users)&&Sn.createElement("span",{className:"mr10"},sa==null?void 0:sa.unanswer_users,"\u672A\u4EA4"),(sa==null?void 0:sa.exercise_end_time)!=="--"&&(mn!=null&&mn.before_start?"":Sn.createElement("span",null,"\u8003\u8BD5\u5269\u4F59\u65F6\u95F4\uFF1A",Sn.createElement("span",{style:{color:"#FF954C"}},sa==null?void 0:sa.exercise_end_time))),(mn==null?void 0:mn.before_start)&&Sn.createElement("span",null,"\u8DDD\u79BB\u8003\u8BD5\u5F00\u59CB\u8FD8\u6709\uFF1A",Sn.createElement("span",{style:{color:"#FF954C"}},mn==null?void 0:mn.before_start))),!(sa!=null&&sa.exercise_all_users)&&!(0,On.dE)()&&Sn.createElement(zt.Z,{styles:{margin:"0 auto",padding:200}}),(!!(sa!=null&&sa.exercise_all_users)||(0,On.dE)())&&Sn.createElement("aside",null,(0,On.GJ)()&&Sn.createElement("aside",{className:"pt20"},Sn.createElement(fe.default,{form:Ba,onValuesChange:_r,initialValues:{commit_status:"all",exercise_group_id:"all",review:"all",is_make_up:"all"}},Sn.createElement(fe.default.Item,{name:"exercise_group_id"},Sn.createElement(Se.default.Group,{style:{width:"100%"}},Sn.createElement(oe.Z,null,Sn.createElement(ve.Z,{flex:"80px"},"\u9009\u62E9\u73ED\u7EA7:"),Sn.createElement(ve.Z,{flex:"80px"},Sn.createElement(Se.default,{value:"all",checked:!((Gt=Nt.course_group)!=null&&Gt.length)},"\u5168\u90E8")),Sn.createElement(ve.Z,{flex:"1"},(sa==null?void 0:sa.course_groups)&&(sa==null?void 0:sa.course_groups.map((Ln,kn)=>Sn.createElement(Se.default,{value:Ln.exercise_group_id,className:"ml0 mr8",key:Ln.exercise_group_id},Ln.exercise_group_name,"(",Ln.exercise_group_students,")"))))))),Sn.createElement(fe.default.Item,{name:"commit_status"},Sn.createElement(Se.default.Group,{value:[],style:{width:"100%"}},Sn.createElement(oe.Z,null,Sn.createElement(ve.Z,{flex:"80px"},"\u63D0\u4EA4\u72B6\u6001:"),Sn.createElement(ve.Z,{flex:"80px"},Sn.createElement(Se.default,{value:"all",checked:!((Bn=Nt.commit_status)!=null&&Bn.length)},"\u5168\u90E8")),Sn.createElement(ve.Z,{flex:"1"},Nn.map((Ln,kn)=>Sn.createElement(Se.default,{name:"commit_status",value:Ln.id,key:Ln.id},Ln.name,"(",sa==null?void 0:sa[Ln.type],")")))))),Sn.createElement(fe.default.Item,{name:"review"},Sn.createElement(Se.default.Group,{style:{width:"100%"}},Sn.createElement(oe.Z,null,Sn.createElement(ve.Z,{flex:"80px"},"\u8BC4\u9605\u72B6\u6001:"),Sn.createElement(ve.Z,{flex:"80px"},Sn.createElement(Se.default,{value:"all",checked:!((Dn=Nt.review)!=null&&Dn.length)},"\u5168\u90E8")),Sn.createElement(ve.Z,{flex:"1"},(Fn=An)==null?void 0:Fn.map((Ln,kn)=>Sn.createElement(Se.default,{value:Ln.id,key:kn},Ln.name,"(",sa==null?void 0:sa[Ln.type],")")))))),(sa==null?void 0:sa.open_make_up)&&Sn.createElement(fe.default.Item,{name:"is_make_up"},Sn.createElement(Se.default.Group,{value:[],style:{width:"100%"}},Sn.createElement(oe.Z,null,Sn.createElement(ve.Z,{flex:"80px"},"\u8865\u8003\u72B6\u6001:"),Sn.createElement(ve.Z,{flex:"80px"},Sn.createElement(Se.default,{value:"all",checked:!((Wt=Nt.is_make_up)!=null&&Wt.length)},"\u5168\u90E8")),Sn.createElement(ve.Z,{flex:"1"},Qt.map((Ln,kn)=>Sn.createElement(Se.default,{name:"is_make_up",value:Ln.id},Ln.name,"(",sa==null?void 0:sa[Ln.type],")")))))),Sn.createElement(oe.Z,{align:"middle"},Sn.createElement(ve.Z,{flex:"1"},Sn.createElement(oe.Z,{align:"middle"},Sn.createElement(ve.Z,null,Sn.createElement(Le.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",onSearch:Ln=>{nn.search=Ln==null?void 0:Ln.trim(),nn.page=1,zn(ri({},nn)),Yu(nn)},style:{width:240}})))),!(mn!=null&&mn.is_random)&&Sn.createElement(ve.Z,{className:["tr",Jt.rightFilter].join(" ")},(sa==null?void 0:sa.objective)===1&&(sa==null?void 0:sa.subjective)===1&&Sn.createElement(Sn.Fragment,null,"\u6309\u5BA2\u89C2\u9898\u5F97\u5206\u5206\u7EC4",Sn.createElement("span",null,Sn.createElement(fe.default.Item,{name:"objective_score_gte"},Sn.createElement(Re.Z,{min:0,max:sa==null?void 0:sa.objective_score,placeholder:"\u6700\u4F4E"}))),Sn.createElement("span",null,Sn.createElement(fe.default.Item,{name:"objective_score_lte"},Sn.createElement(Re.Z,{min:(nn==null?void 0:nn.objective_score_gte)||0,max:sa==null?void 0:sa.objective_score,placeholder:"\u6700\u9AD8"})))),["\u8003\u8BD5\u4E2D","\u5DF2\u622A\u6B62"].includes(de.ju[mn.exercise_status])&&Sn.createElement(Xo,{showBtn:!1,dropDowmBtn:Sn.createElement(E.Z,{menu:{onClick:Ln=>Qi(void 0,[Ln],function*({key:kn,domEvent:Dr}){var Rs,ec;if(kn==="1"){let es=null;const Ad=Fe.default.confirm({title:"\u4E00\u952E\u5B8C\u6210\u8BC4\u9605",icon:null,centered:!0,width:560,closable:!0,content:Sn.createElement("div",{className:"flex flex-col gap-20px"},Sn.createElement("div",null,"\u63D0\u793A\uFF1A\u8BE5\u64CD\u4F5C\u4F1A\u5C06\u6240\u6709\u5DF2\u4F5C\u7B54\u4E14\u672A\u8BC4\u9605\u5B66\u751F\u7684\u8BD5\u5377\u8BC4\u9605\u72B6\u6001\u4FEE\u6539\u4E3A\u201C\u5DF2\u8BC4\u9605\u201D\u3002"),Sn.createElement("div",null,Sn.createElement("div",null,"\u8003\u8BD5\u8BC4\u4EF7\uFF1A"),Sn.createElement(Le.default.TextArea,{className:"mt10",placeholder:"\u8BF7\u8F93\u5165\u8003\u8BD5\u8BC4\u4EF7\uFF0C\u8BC4\u9605\u4E4B\u540E\u652F\u6301\u5355\u72EC\u8FDB\u884C\u4FEE\u6539",rows:4,onChange:C0=>{es=C0.target.value}}))),onOk:()=>Qi(void 0,null,function*(){(yield Pu({review_all:!0,exercise_id:ta==null?void 0:ta.categoryId,analysis:es})).status===0&&(pe.ZP.success("\u6279\u91CF\u5B8C\u6210\u8BC4\u9605"),Yu(nn))}),onCancel:()=>{Ad.destroy()}})}if(kn==="2"){if(Dr.preventDefault(),(0,On.Rm)()&&!((ec=(Rs=Pe==null?void 0:Pe.AssistantObject)==null?void 0:Rs.exercise)!=null&&ec.can_appraise)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}yield(0,Za.w)(ta.coursesId,ta.categoryId),Us(),he.history.push(`/classrooms/${nn.coursesId}/exercise/${nn.categoryId}/reviews/group`)}if(kn==="3"){if(!(mn!=null&&mn.is_open_ai_review)){Fe.default.confirm({title:"\u60A8\u8FD8\u672A\u8BBE\u7F6E\u8BC4\u5206\u89C4\u5219",icon:null,width:350,closable:!0,autoFocusButton:null,centered:!0,okText:"\u53BB\u8BBE\u7F6E",cancelText:"\u53D6\u6D88",onOk:()=>Qi(void 0,null,function*(){var Ad;window.location.href=`/classrooms/${ta.coursesId}/exercise/${ta.categoryId}/detail?random=${(Ad=ae==null?void 0:ae.commonHeader)==null?void 0:Ad.is_random}&tabs=12`}),content:Sn.createElement("div",null,Sn.createElement("div",{style:{color:"#E30000",fontSize:"14px"}},"\u4F7F\u7528\u6B64\u529F\u80FD\u524D\uFF0C\u9700\u8981\u5148\u8BBE\u7F6E\u8BC4\u5206\u89C4\u5219\u3002"),Sn.createElement("div",{style:{color:"#333330",fontSize:"14px"}},"\u8BF7\u5148\u5F00\u542F\u667A\u80FD\u8BC4\u9605\u5E76\u8BBE\u7F6E\u597D\u8BC4\u5206\u6807\u51C6\u3002"))});return}const es=yield(0,Ce.ZP)("/api/exercise_resubmits/check_resubmit.json",{method:"get",params:{exercise_id:ta.categoryId}});if((es==null?void 0:es.status)===-21){Fe.default.confirm({title:"\u5F53\u524D\u8BD5\u5377\u65E0\u7B80\u7B54\u9898",icon:null,width:400,closable:!0,centered:!0,autoFocusButton:null,okText:"\u6211\u77E5\u9053\u4E86",cancelButtonProps:{style:{display:"none"}},onOk:()=>Qi(void 0,null,function*(){}),content:Sn.createElement("div",null,Sn.createElement("div",{style:{color:"#E30000",fontSize:"14px"}},"\u667A\u80FD\u8BC4\u9605\u76EE\u524D\u4EC5\u652F\u6301\u7B80\u7B54\u9898\uFF08\u542B\u7EC4\u5408\u9898\u4E2D\u7684\u7B80\u7B54\u9898\uFF09\u3002"),Sn.createElement("div",{style:{color:"#333330",fontSize:"14px"}},"\u5F53\u524D\u8003\u8BD5\u6CA1\u6709\u7B80\u7B54\u9898\uFF0C\u6240\u4EE5\u65E0\u987B\u8FDB\u884C\u667A\u80FD\u8BC4\u9605\u3002"))});return}pt({type:"exercise/setActionTabs",payload:{key:"\u5728\u7EBF\u8003\u8BD5\u667A\u80FD\u8BC4\u9605",showReview:!1}})}}),items:[{key:"1",label:"\u4E00\u952E\u5B8C\u6210\u8BC4\u9605"},!(mn!=null&&mn.is_random)&&(sa==null?void 0:sa.subjective)===1&&Dt&&{key:"2",label:"\u7B80\u7B54\u9898\u6279\u91CF\u8BC4\u9605",disabled:!$u||!ji},!((0,On.dE)()||mn!=null&&mn.is_random||(mn==null?void 0:mn.exercise_type)==2)&&{key:"3",label:Sn.createElement("div",null,"\u7B80\u7B54\u9898\u667A\u80FD\u8BC4\u9605",Sn.createElement("img",{src:Ea.Z,style:{margin:"0 0 4px 4px"}}))}].filter(Ln=>Ln)},className:"ml10"},Sn.createElement("div",{className:`${Jt.btn_review}`},Sn.createElement("img",{src:Ga.Z,className:"mr5",style:{width:14,height:14}}),"\u667A\u80FD\u8BC4\u9605"))}),(sa==null?void 0:sa.subjective)===1&&Dt&&Sn.createElement(Sn.Fragment,null,Sn.createElement(me.ZP,{type:"default",disabled:!$u},Sn.createElement("a",{onClick:Ln=>Qi(void 0,null,function*(){var kn,Dr;if(Ln.preventDefault(),(0,On.Rm)()&&!((Dr=(kn=Pe==null?void 0:Pe.AssistantObject)==null?void 0:kn.exercise)!=null&&Dr.can_appraise)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}yield(0,Za.w)(ta.coursesId,ta.categoryId),Us(),he.history.push(`/classrooms/${nn.coursesId}/exercise/${nn.categoryId}/review/${$u}`)})},Sn.createElement("span",{className:"iconfont icon-filesync3x"}),Sn.createElement("span",null,"\u7EC4\u5185\u987A\u5E8F\u8BC4\u9605"))))),Sn.createElement(ve.Z,null,(mn==null?void 0:mn.exercise_status)===3&&Sn.createElement(me.ZP,{className:"ml10",onClick:()=>{pt({type:"shixunHomeworks/setActionTabs",payload:{key:"\u8D28\u91CF\u68C0\u6D4B",params:nn}})}},Sn.createElement("i",{className:"iconfont icon-a-08zhiliang-xianxing font14 pr5"}),"\u8D28\u91CF\u8BC4\u5206")),Sn.createElement(ve.Z,null,(mn==null?void 0:mn.exercise_time)>0&&(mn==null?void 0:mn.exercise_type)!=2&&(0,On.Gg)()&&["\u8003\u8BD5\u4E2D"].includes(de.ju[mn.exercise_status])&&Sn.createElement(me.ZP,{className:"ml10",disabled:mn.exercise_status===3||mn.exercise_status===5||(mn==null?void 0:mn.appraise_label),onClick:()=>{var Ln,kn;if((0,On.Rm)()&&!((kn=(Ln=Pe==null?void 0:Pe.AssistantObject)==null?void 0:Ln.exercise)!=null&&kn.can_delay)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}if(oo.length==0){pe.ZP.warning("\u8BF7\u5148\u9009\u62E9\u5B66\u751F\uFF01");return}pt({type:"exercise/setActionTabs",payload:{key:"\u5EF6\u65F6",exercise_user_id:oo,user_ids:ci,isBatch:!0,exercise_time:mn.exercise_time,params:ri({},nn)}})}},"\u6279\u91CF\u5EF6\u65F6"),!(0,On.dE)()&&["\u8003\u8BD5\u4E2D"].includes(de.ju[mn.exercise_status])&&Sn.createElement(me.ZP,{className:"ml10",onClick:()=>{var Ln,kn;if((0,On.Rm)()&&!((kn=(Ln=Pe==null?void 0:Pe.AssistantObject)==null?void 0:Ln.exercise)!=null&&kn.can_forcing_commit)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}if(oo.length==0){pe.ZP.warning("\u8BF7\u5148\u9009\u62E9\u5B66\u751F\uFF01");return}pt({type:"exercise/setActionTabs",payload:{key:"\u8C03\u6574\u72B6\u6001",exercise_user_id:oo,user_ids:ci,isBatch:!0}})}},"\u6279\u91CF\u8C03\u6574\u72B6\u6001"))))),Va===-3&&!(0,On.dE)()&&Sn.createElement(zt.Z,{customText:"\u4FEE\u6539\u7ED9\u5206\u65B9\u5F0F\u91CD\u65B0\u5224\u5206\u4E2D\uFF0C\u8BF7\u8010\u5FC3\u7B49\u5F85...",styles:{margin:"0 auto",padding:100}}),Va!==-3&&Sn.createElement(x.default,{className:"mt30",loading:Tl,hideOnSinglePage:!0,pagination:!1,dataSource:(0,On.dE)()?sa!=null&&sa.score_open?mr==null?void 0:mr.exercise_users:[(mr==null?void 0:mr.current_answer_user)||{}]:mr==null?void 0:mr.exercise_users,columns:Zl,rowSelection:!(0,On.dE)()&&{selectedRowKeys:oo,onChange:(Ln,kn)=>{Su(Ln),Ho((kn==null?void 0:kn.map(Dr=>Dr==null?void 0:Dr.user_id))||[])},getCheckboxProps:Ln=>({disabled:Ln.commit_status===0})},rowKey:"exercise_user_id",scroll:{x:"max-content"},size:"middle",onChange:(Ln,kn,Dr)=>{nn.page=1,Dr.order===void 0?(nn.order_type=null,nn.order=null):(nn.order_type=Dr.order==="descend"?"desc":"asc",nn.order=Dr.field),zn(ri({},nn)),Yu(nn)}}),Xt>20&&Sn.createElement("aside",{className:"tc pb30 mt30"},Sn.createElement(He.Z,{onChange:Io,current:nn.page||1,pageSize:nn.limit,total:Xt,showQuickJumper:!0,hideOnSinglePage:!0,showTotal:Ln=>Sn.createElement("span",{className:"mr10"},"\u5171",Sn.createElement("span",{className:"c-orange"},Ln),"\u6761\u6570\u636E")}))),Sn.createElement(Fe.default,{open:au,title:Sn.createElement("span",null,"\u8003\u8BD5\u8BB0\u5F55\uFF08",Cr==null?void 0:Cr.name," ",Cr==null?void 0:Cr.id,"\uFF09"),centered:!0,width:1e3,footer:null,onCancel:()=>{Ya(!1)}},((Ut=Cr==null?void 0:Cr.list)==null?void 0:Ut.length)===0?Sn.createElement(zt.Z,{styles:{margin:"0 auto"},customText:"\u6682\u65E0\u6570\u636E"}):Sn.createElement(x.default,{dataSource:Cr==null?void 0:Cr.list,columns:Bs,pagination:!1})),Sn.createElement(bt,null),Sn.createElement(yt,null),Sn.createElement(or,null),Sn.createElement(Er,null),ha&&Sn.createElement(Fe.default,{title:"\u9632\u4F5C\u5F0A\u5934\u50CF",open:ha,centered:!0,onCancel:()=>{ca(1),dt(!1),Zn([]),ia("alert"),pn("")},footer:Sn.createElement("div",{style:{display:"flex"}},Sn.createElement("div",{style:{flex:1,textAlign:"left"}}," ",Sn.createElement(me.ZP,{onClick:()=>Qi(void 0,null,function*(){if(!Qn){pe.ZP.info("\u8F93\u5165\u6846\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A");return}Ka(!0);let Ln=yield(0,Ce.ZP)(`/api/exercises/${nn.categoryId}/send_alert.json`,{method:"post",body:{content:Qn,clazz:Fa,exercise_user_id:Tn}});(Ln==null?void 0:Ln.status)===0&&(pe.ZP.info("\u53D1\u9001\u6210\u529F"),ca(1),dt(!1),Zn([]),ia("alert"),pn("")),Ka(!1)}),disabled:da,loading:tu},"\u53D1\u9001")),Sn.createElement(me.ZP,{disabled:(La==null?void 0:La.length)===0,style:{marginRight:"10px"},onClick:()=>Qi(void 0,null,function*(){yield ca(bn-1===0?La==null?void 0:La.length:bn-1)})},"\u4E0A\u4E00\u5F20"),Sn.createElement(me.ZP,{disabled:(La==null?void 0:La.length)===0,type:"primary",onClick:()=>Qi(void 0,null,function*(){yield ca(bn===(La==null?void 0:La.length)?1:bn+1)})},"\u4E0B\u4E00\u5F20"))},Sn.createElement("img",{style:{width:"234px !important",height:"132px",borderRadius:"5px"},src:La[bn-1]}),Sn.createElement("span",{onClick:()=>{Pa.Z.publish("preview-image",La[bn-1])},style:{background:"#0152d9",color:"#fff",display:"inline-flex",width:"54px",height:"20px",borderRadius:"10px",justifyContent:"center",lineHeight:"20px",alignItems:"center",position:"absolute",top:"70px",left:"130px",zIndex:5,cursor:"pointer"}},"\u9884\u89C8"),Sn.createElement("span",{style:{color:"#0152d9",marginTop:"16px",width:"234px",justifyContent:"center",display:"flex"}},bn+"/"+(La==null?void 0:La.length)),Sn.createElement(Ie.ZP,{className:"mt20",checked:Fa==="alert",onChange:()=>ia("alert")},"\u53D1\u9001\u8B66\u544A",Sn.createElement("span",{className:"font14 c-grey-999"},"\uFF08\u5982\u53D1\u73B0\u5B66\u751F\u5728\u8003\u8BD5\u4E2D\u7684\u7167\u7247\u5B58\u5728\u5F02\u5E38\u65F6\uFF0C\u53EF\u53D1\u9001\u6D88\u606F\u7ED9\u5B66\u751F\uFF09")),Sn.createElement(Ie.ZP,{className:"mt10",checked:Fa==="notice",onChange:()=>ia("notice")},"\u53D1\u9001\u901A\u77E5",Sn.createElement("span",{className:"font14 c-grey-999"},"\uFF08\u8003\u8BD5\u4E2D\u5982\u6709\u6D88\u606F\u901A\u77E5\uFF0C\u53EF\u53D1\u9001\u6D88\u606F\u7ED9\u5B66\u751F\uFF09")),Sn.createElement(Le.default.TextArea,{className:"mt20",value:Qn,onChange:Ln=>pn(Ln.target.value),placeholder:`\u8BF7\u8F93\u5165${Fa==="alert"?"\u8B66\u544A":"\u901A\u77E5"}\u5185\u5BB9${Fa==="alert"?"\uFF0C\u5982\uFF1A\u626D\u5934\u4F4E\u5934\u5927\u5E45\u5EA6\u52A8\u4F5C\u68C0\u6D4B":""}`}),Sn.createElement("div",{style:{color:"#E30000",fontSize:12,margin:"10px 0"}},"\u5DF2\u53D1\u9001",wu,"\u6B21\u8B66\u544A")),Sn.createElement(ga.Z,{close:!0,hasMask:!0,style:{zIndex:9999},data:qa==null?void 0:qa.url,disabledDownload:!0,editOffice:qa!=null&&qa.isedit?"edit":"view",type:qa==null?void 0:qa.file_type,issaver:!(0,On.dE)(),onSaver:Ln=>Qi(void 0,null,function*(){const kn=new FormData;kn.append("exercise_id",nn.categoryId),kn.append("exercise_user_id",qa==null?void 0:qa.exercise_user_id),kn.append("file",Ln);let Dr=yield(0,Ce.ZP)(`/api/exercises/${nn.categoryId}/exercise_user/review_report.json`,{method:"post",body:kn},!0);(Dr==null?void 0:Dr.status)===0&&(pe.ZP.info("\u4FDD\u5B58\u6210\u529F"),bl({}))}),onClose:()=>bl({})}),Sn.createElement(er.Z,null),Sn.createElement(ul,null),Sn.createElement(lu,null))};var vs=(0,he.connect)(({exercise:ce,loading:se,globalSetting:ae,classroomList:_e,user:pt})=>({classroomList:_e,exercise:ce,loading:se.effects,globalSetting:ae,user:pt}))(pc),fs=z(42922),ps=z(53978),so={flex_box_center:"flex_box_center___Hpswl",flex_space_between:"flex_space_between___ywvKM",flex_box_vertical_center:"flex_box_vertical_center___SItpZ",flex_box_center_end:"flex_box_center_end___WIAL3",flex_box_column:"flex_box_column___FMKJn",wrap:"wrap___AW_2A",control:"control___w5xQm",btn:"btn___as1xd",customTable:"customTable___gGVV3",bgH:"bgH___J0V1_",cusModal:"cusModal___2fPK2",imgWrap:"imgWrap___crzTi",img:"img___iwJRL",iBtn:"iBtn___L11V_",text:"text___INAg4",no:"no___H7kcX",textP:"textP___Rdbzv",video:"video___yjo5C",sys:"sys___o3w4h",li:"li___WQQil",d1:"d1___KQ9j6",b1:"b1___PA3Kc",es:"es___j13_3"},sc=z(24577),Wo=z(67631);const bi=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i;var cc=(0,a.forwardRef)(({src:ce,videoId:se,logWatchHistory:ae,courseId:_e=null,startTime:pt,handlePause:Ve=()=>{},handlePlay:Dt=()=>{},handlePlayEnded:et=()=>{},videoSpeed:Be=1},Pe)=>{var Ht;ce=ce==null?void 0:ce.replace("http://","https://");const hn=((Ht=ce==null?void 0:ce.split("."))==null?void 0:Ht.pop())==="flv",xt=(0,a.useRef)(),Gt=(0,a.useRef)(),Bn=(0,a.useRef)(0),Dn=(0,a.useRef)(0),[Fn,Wt]=(0,a.useState)(0),Ut=navigator.userAgent.toLowerCase().match(bi),Yt=Ut?Ut[0]:"pc";(0,a.useImperativeHandle)(Pe,()=>({getLastUpdatedTime:()=>xt.current.currentTime,getDuration:()=>xt.current.duration})),(0,a.useEffect)(()=>{Dn.current=void 0;try{sc.Z.isSupported&&hn&&ce&&(ce==null?void 0:ce.indexOf(".m3u8"))<0?(Dn.current=sc.Z.createPlayer({type:"flv",volume:.8,cors:!0,url:ce+"?t="+Date.now(),muted:!1,isLive:!0}),Dn.current.on("play",function(){console.log(21111)}),xt.current&&(Dn.current.detachMediaElement(xt.current),Dn.current.attachMediaElement(xt.current),Dn.current.load(),Dn.current.play())):xt.current.setAttribute("src",ce+"?t="+Date.now())}catch(nn){setTimeout(()=>{Wt(Fn+1)},1e3)}return console.log("src:",ce),()=>{var nn,zn,mn,pa,Pt,Nt,Rt,Xt;Dn.current&&((zn=(nn=Dn.current)==null?void 0:nn.unload)==null||zn.call(nn),(pa=(mn=Dn.current)==null?void 0:mn.pause)==null||pa.call(mn),(Nt=(Pt=Dn.current)==null?void 0:Pt.destroy)==null||Nt.call(Pt),(Xt=(Rt=Dn.current)==null?void 0:Rt.detachMediaElement)==null||Xt.call(Rt,xt.current),Dn.current=void 0,xt.current.src="")}},[xt,hn,ce,Fn]),(0,a.useEffect)(()=>(Gt.current=setInterval(()=>{Bn.current>0&&Bn.current===xt.current.currentTime&&(console.log("\u64AD\u653E\u4E00\u6B21"),Wt(Fn+1)),Bn.current=xt.current.currentTime},3e3),()=>{clearInterval(Gt.current)}),[]);const ta=nn=>{setTimeout(()=>{Wt(Fn+1)},1e3)};return a.createElement("video",{ref:xt,onerr:!0,onErrorCapture:()=>{Wt(Fn+1)},autoPlay:!0,muted:!0})}),ts=Object.defineProperty,Hc=Object.getOwnPropertySymbols,Nc=Object.prototype.hasOwnProperty,Pc=Object.prototype.propertyIsEnumerable,Rr=(ce,se,ae)=>se in ce?ts(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,vr=(ce,se)=>{for(var ae in se||(se={}))Nc.call(se,ae)&&Rr(ce,ae,se[ae]);if(Hc)for(var ae of Hc(se))Pc.call(se,ae)&&Rr(ce,ae,se[ae]);return ce},fl=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Wr=({exercise:ce,dispatch:se,user:ae})=>{var _e;const pt=(0,he.useParams)(),[Ve,Dt]=(0,a.useState)({page:1,limit:20,sort_by:null,sort_direction:null,state:null,audit:null,name:"",save_name:"",exercise_id:pt==null?void 0:pt.categoryId}),[et]=fe.default.useForm(),[Be,Pe]=(0,a.useState)(),[Ht,vn]=(0,a.useState)(!1),{exerciseList:hn,commonHeader:xt}=ce,[Gt,Bn]=(0,a.useState)([]),[Dn,Fn]=(0,a.useState)([]),[Wt,Ut]=(0,a.useState)(0),[Yt,ta]=(0,a.useState)(!0),[nn,zn]=(0,a.useState)(!1),[mn,pa]=(0,a.useState)(!1),Pt=(0,a.useRef)(null);(0,a.useEffect)(()=>{Nt(Ve)},[]),(0,a.useEffect)(()=>(clearInterval(Pt.current),(xt==null?void 0:xt.exercise_status)===2&&(Pt.current=setInterval(()=>{Nt(Ve)},3e4)),()=>{clearInterval(Pt.current)}),[xt==null?void 0:xt.exercise_status,Ve]);const Nt=Hn=>fl(void 0,null,function*(){const Oa=hu().cloneDeep(Hn);ta(!0),Bn([]);const tu=yield(0,Ce.ZP)(`/api/exercises/${Hn==null?void 0:Hn.exercise_id}/exercise_identity_photos.json`,{method:"get",params:Oa});Fn([]),ta(!1),Ut(tu==null?void 0:tu.count),Bn((tu==null?void 0:tu.exercise_users)||[])}),Rt=(Hn,Oa)=>{Ve.page=1,Ve[Oa]=Hn,Dt(vr({},Ve)),Nt(Ve)},Xt=Hn=>{Ve.page=1,Ve.save_name=Hn,Dt(vr({},Ve))},cn=()=>{Ve.page=1;const Hn=Object.assign({},et.getFieldsValue());Object.keys(Hn).map(function(Oa){switch(Oa){case"exercise_group_id":Hn[Oa].includes("all")||!Hn[Oa].length?(delete Ve.course_group,et.setFieldsValue({exercise_group_id:"all"})):(Ve.course_group=Hn[Oa],et.setFieldsValue({exercise_group_id:Ve.course_group}));break}}),Dt(vr({},Ve)),Nt(Ve)};(0,a.useEffect)(()=>{document.getElementById("divhe")&&document.getElementById("divhe").scrollHeight>47&&(Pe(47),vn(!0))},[document.getElementById("divhe"),hn]);const tn=(Hn,Oa,tu)=>{Ve.page=Hn==null?void 0:Hn.current,Ve.limit=Hn==null?void 0:Hn.pageSize,tu!=null&&tu.order?(Ve.sort_by=tu==null?void 0:tu.field,Ve.sort_direction=(tu==null?void 0:tu.order)==="ascend"?"asc":"desc"):(Ve.sort_by=null,Ve.sort_direction=null),Dt(vr({},Ve)),Nt(Ve)},Ja=[{title:"\u5E8F\u53F7",dataIndex:"number",width:80,render:(Hn,Oa,tu)=>Ve.limit*(Ve.page-1)+tu+1},{title:"\u59D3\u540D",dataIndex:"user_name",width:110,ellipsis:{showTitle:!1},render:Hn=>a.createElement(Ae.Z,{placement:"bottomLeft",title:Hn},a.createElement("span",null,Hn))},{title:"\u5B66\u53F7",dataIndex:"student_id",sorter:!0,width:140,showSorterTooltip:!1,ellipsis:{showTitle:!1},render:Hn=>a.createElement(Ae.Z,{placement:"bottomLeft",title:Hn||"--"},a.createElement("span",null,Hn||"--"))},{title:"\u5206\u73ED",dataIndex:"user_group_name",ellipsis:{showTitle:!1},render:(Hn,Oa)=>Hn?a.createElement(Ae.Z,{placement:"bottom",title:Hn},a.createElement("span",{className:so.es},Hn)):"--"},{title:"\u4EBA\u8138\u7167\u7247",dataIndex:"photo_url",width:90,ellipsis:{showTitle:!1},render:(Hn,Oa)=>a.createElement("img",{width:40,style:{maxHeight:30},src:Hn,className:"current",onClick:()=>{wu(Oa)}})},{title:"\u5BA1\u6838\u72B6\u6001",width:100,dataIndex:"exercise_identity_photo_state",ellipsis:{showTitle:!1},render:(Hn,Oa)=>a.createElement(a.Fragment,null,Hn==="passed"&&a.createElement("span",{style:{color:"#44D7B6"}},"\u5BA1\u6838\u901A\u8FC7"),Hn==="rejected"&&a.createElement("span",{style:{color:"#E53333"}},"\u5BA1\u6838\u4E0D\u901A\u8FC7"),Hn==="submitted"&&a.createElement("span",{style:{color:"#666666"}},"\u5F85\u5BA1\u6838"))},{title:"\u5BA1\u6838\u65F6\u95F4",dataIndex:"audit_time",width:180,ellipsis:{showTitle:!1},render:Hn=>a.createElement("span",null,Hn||"--")},{title:"\u5BA1\u6838\u7C7B\u578B",dataIndex:"audit_clazz",width:90,ellipsis:{showTitle:!1},render:Hn=>a.createElement("span",null,Hn||"--")},{title:"\u64CD\u4F5C",dataIndex:"action",width:220,ellipsis:{showTitle:!1},render:(Hn,Oa)=>{var tu;return a.createElement(a.Fragment,null,(Oa==null?void 0:Oa.exercise_identity_photo_state)==="submitted"?a.createElement("span",{className:"c-light-primary current",onClick:()=>fl(void 0,null,function*(){const Ka=yield(0,Ce.ZP)(`/api/exercises/${Ve==null?void 0:Ve.exercise_id}/audit_identity_photo.json`,{method:"post",body:{identity_photo_id:Oa==null?void 0:Oa.exercise_identity_photo_id,state:"passed"}});(Ka==null?void 0:Ka.status)===0&&(pe.ZP.success("\u64CD\u4F5C\u6210\u529F"),Nt(Ve))})},"\u901A\u8FC7"):a.createElement("span",{className:"c-grey-999 cursorNotAllowed"},"\u901A\u8FC7"),(Oa==null?void 0:Oa.exercise_identity_photo_state)==="submitted"?a.createElement("span",{className:"c-light-primary current ml10",onClick:()=>pa(Oa)},"\u62D2\u7EDD"):a.createElement("span",{className:"c-grey-999 cursorNotAllowed ml10"},"\u62D2\u7EDD"),(Oa==null?void 0:Oa.exercise_identity_photo_state)!=="submitted"?a.createElement("span",{className:"c-light-primary current ml10 mr10",onClick:()=>Fa(Oa)},"\u5BA1\u6838\u8BB0\u5F55"):a.createElement("span",{className:"c-grey-999 ml10 mr10 cursorNotAllowed"},"\u5BA1\u6838\u8BB0\u5F55"),(Oa==null?void 0:Oa.exercise_identity_photo_state)==="passed"&&((tu=Oa==null?void 0:Oa.play_url)!=null&&tu.length)?a.createElement("span",{className:"c-light-primary current",onClick:()=>ia(Oa)},"\u6444\u50CF\u76D1\u63A7"):a.createElement("span",{className:"c-grey-999 cursorNotAllowed"},"\u6444\u50CF\u76D1\u63A7"))}}],ha=Hn=>{Fn(Hn)},dt=()=>{zn(!1),Nt(Ve)},Fa=Hn=>{const Oa=[{title:"\u5BA1\u6838\u65F6\u95F4",dataIndex:"audit_time",width:170,render:(Ka,Ba)=>a.createElement("span",null,Ka||"--")},{title:"\u5BA1\u6838\u72B6\u6001",dataIndex:"exercise_identity_photo_state",width:110,render:(Ka,Ba)=>a.createElement(a.Fragment,null,Ka==="passed"&&a.createElement("span",{style:{color:"#44D7B6"}},"\u5BA1\u6838\u901A\u8FC7"),Ka==="rejected"&&a.createElement("span",{style:{color:"#E53333"}},"\u5BA1\u6838\u4E0D\u901A\u8FC7"),Ka==="submitted"&&a.createElement("span",{style:{color:"#666666"}},"\u5F85\u5BA1\u6838"))},{title:"\u5BA1\u6838\u610F\u89C1",dataIndex:"comment",render:(Ka,Ba)=>Ka?a.createElement(Ae.Z,{placement:"bottom",title:Ka},a.createElement("span",null,Ka)):"--"},{title:"\u91C7\u96C6\u7167\u7247",dataIndex:"photo_url",width:90,render:(Ka,Ba)=>a.createElement("span",{className:"current c-light-primary",onClick:()=>{Pa.Z.publish("preview-image",Ka)}},"\u67E5\u770B")}],tu=Fe.default.confirm({icon:null,width:700,className:`${so.cusModal} custom-modal-divider`,centered:!0,title:a.createElement(oe.Z,null,a.createElement(ve.Z,{flex:"1"},"\u5BA1\u6838\u8BB0\u5F55"),a.createElement(ve.Z,null,a.createElement("span",{className:"iconfont icon-guanbi7 font12 current c-grey-c",onClick:()=>tu.destroy()}))),content:a.createElement("div",null,a.createElement(x.default,{className:so.customTable,dataSource:[vr({},Hn)],bordered:!1,columns:Oa,rowKey:"exercise_identity_photo_id",rowClassName:so.row,pagination:!1}))})},ia=Hn=>{var Oa,tu;const Ka=Fe.default.confirm({icon:null,className:`${so.cusModal} custom-modal-divider`,centered:!0,width:((Oa=Hn==null?void 0:Hn.play_url)==null?void 0:Oa.length)<6?724:744,title:a.createElement(oe.Z,null,a.createElement(ve.Z,{flex:"1"},"\u89C6\u9891"),a.createElement(ve.Z,null,a.createElement("span",{className:"iconfont icon-guanbi7 font12 current c-grey-c",onClick:()=>Ka.destroy()}))),content:a.createElement("ul",{className:so.sys},(tu=Hn==null?void 0:Hn.play_url)==null?void 0:tu.map((Ba,La)=>a.createElement("li",{className:so.li,key:La},a.createElement("div",{className:so.d1},a.createElement("div",{className:so.img},a.createElement(cc,{src:Ba==null?void 0:Ba.replace(".m3u8",".flv"),autoPlay:!0})),a.createElement("div",{className:so.btn},a.createElement("div",{className:so.b1},"\u56DE\u653E\u89C6\u9891",La+1))))))})},wu=Hn=>{const Oa=Fe.default.confirm({icon:null,className:`${so.cusModal} custom-modal-divider`,centered:!0,width:710,title:a.createElement(oe.Z,null,a.createElement(ve.Z,{flex:"1"},"\u4EBA\u8138\u7167\u7247"),a.createElement(ve.Z,null,a.createElement("span",{className:"iconfont icon-guanbi7 font12 current c-grey-c",onClick:()=>Oa.destroy()}))),content:a.createElement(oe.Z,null,a.createElement("aside",{className:so.imgWrap,style:{marginBottom:40}},a.createElement("div",{className:so.img},a.createElement("img",{width:326,src:(0,de.Tv)(Hn==null?void 0:Hn.photo_url)}),a.createElement("div",{className:so.textP},"\u91C7\u96C6\u7167\u7247")),a.createElement("div",{className:so.img,style:{marginLeft:20}},Hn!=null&&Hn.identity_url?a.createElement("img",{width:326,src:(0,de.Tv)(Hn==null?void 0:Hn.identity_url)}):a.createElement("div",{className:so.no,style:{width:326}},a.createElement("span",null,"\u6682\u65E0\u8BC1\u4EF6\u7167\u7247")),a.createElement("div",{className:so.textP},"\u8BC1\u4EF6\u7167\u7247"))))})},Sa={selectedRowKeys:Dn,columnWidth:40,onChange:ha,getCheckboxProps:Hn=>({disabled:(Hn==null?void 0:Hn.exercise_identity_photo_state)==="passed"})};return a.createElement("section",{className:so.wrap},a.createElement(fe.default,{form:et,onChange:cn,initialValues:{exercise_group_id:"all"}},a.createElement(fe.default.Item,{name:"exercise_group_id"},a.createElement(Se.default.Group,{style:{width:"100%"}},a.createElement(oe.Z,null,a.createElement(ve.Z,{className:"font14",flex:"80px"},"\u9009\u62E9\u5206\u73ED:"),a.createElement(ve.Z,{flex:"80px"},a.createElement(Se.default,{value:"all"},"\u5168\u90E8")),a.createElement(ve.Z,{flex:"1",id:"divhe",style:{height:Be+"px",overflow:"hidden"}},(_e=hn.course_groups)==null?void 0:_e.map((Hn,Oa)=>a.createElement(Se.default,{key:Oa,value:Hn.exercise_group_id,className:"ml0 mr8"},Hn.exercise_group_name,"(",Hn.exercise_group_students,")"))),Ht&&a.createElement("span",{onClick:()=>{let Hn=document.getElementById("divhe").scrollHeight;Be>47?Pe(47):Pe(Hn)},style:{color:"rgb(76, 172, 255)",cursor:"pointer",alignItems:"flex-end",display:"flex"}},Be===47?"\u5C55\u5F00":"\u6536\u8D77",Be===47?a.createElement(fs.Z,{style:{marginBottom:"3px",marginLeft:"2px"}}):a.createElement(ps.Z,{style:{marginBottom:"3px",marginLeft:"2px"}})))))),a.createElement("div",{className:so.control},a.createElement(Le.default.Search,{placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",value:Ve==null?void 0:Ve.save_name,onChange:Hn=>Xt(Hn.target.value),onSearch:()=>{Ve.page=1,Ve.name=Ve.save_name,Dt(vr({},Ve)),Nt(Ve)}}),a.createElement(ft.default,{placeholder:"\u8BF7\u9009\u62E9\u5BA1\u6838\u72B6\u6001",value:Ve==null?void 0:Ve.state,onChange:Hn=>Rt(Hn,"state")},a.createElement(ft.default.Option,{value:null},"\u5168\u90E8"),a.createElement(ft.default.Option,{value:"submitted"},"\u5F85\u5BA1\u6838"),a.createElement(ft.default.Option,{value:"passed"},"\u5BA1\u6838\u901A\u8FC7"),a.createElement(ft.default.Option,{value:"rejected"},"\u5BA1\u6838\u4E0D\u901A\u8FC7")),a.createElement(ft.default,{placeholder:"\u8BF7\u9009\u62E9\u5BA1\u6838\u7C7B\u578B",value:Ve==null?void 0:Ve.audit,onChange:Hn=>Rt(Hn,"audit")},a.createElement(ft.default.Option,{value:null},"\u5168\u90E8"),a.createElement(ft.default.Option,{value:1},"\u81EA\u52A8\u5BA1\u6838"),a.createElement(ft.default.Option,{value:2},"\u4EBA\u5DE5\u5BA1\u6838")),a.createElement("span",{className:so.btn,style:{cursor:"pointer"},onClick:()=>{if(!Dn.length){pe.ZP.warning("\u8BF7\u9009\u62E9\u5B66\u751F");return}zn(!0)}},a.createElement("i",{className:"iconfont icon-piliangcaozuo font14 mr5"}),"\u6279\u91CF\u5BA1\u6838")),a.createElement("div",{className:so.bgH}),a.createElement(x.default,{rowSelection:Sa,className:so.customTable,dataSource:Gt,bordered:!1,columns:Ja,rowKey:"exercise_identity_photo_id",rowClassName:so.row,loading:Yt,onChange:tn,pagination:{pageSize:Ve.limit,total:Wt,current:Ve.page,showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!1,position:["bottomCenter"],showTotal:Hn=>a.createElement("span",{className:"mr10"},"\u5171",a.createElement("span",{className:"c-orange"},Hn),"\u6761\u6570\u636E")}}),a.createElement(Ti,{selectIds:Dn,visible:nn,onCancel:()=>zn(!1),onOk:dt,params:Ve}),a.createElement(er.Z,null),a.createElement(Fe.default,{title:"\u4EBA\u8138\u8EAB\u4EFD\u5BA1\u6838",open:!!mn,centered:!0,width:650,destroyOnClose:!0,onCancel:()=>{pa(!1)},afterClose:()=>{et.resetFields()},confirmLoading:Yt,onOk:()=>fl(void 0,null,function*(){yield et.validateFields();const Hn=yield(0,Ce.ZP)(`/api/exercises/${Ve==null?void 0:Ve.exercise_id}/audit_identity_photo.json`,{method:"post",body:{identity_photo_id:mn==null?void 0:mn.exercise_identity_photo_id,state:"rejected",comment:et.getFieldValue("comment")}});(Hn==null?void 0:Hn.status)===0&&(pe.ZP.success("\u64CD\u4F5C\u6210\u529F"),pa(!1),Nt(Ve))})},a.createElement(fe.default,{className:so.formWrap,form:et,labelCol:{span:4},wrapperCol:{span:18}},a.createElement(fe.default.Item,{label:"\u5BA1\u6838\u610F\u89C1",name:"comment",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5BA1\u6838\u610F\u89C1"}]},a.createElement(Le.default,{placeholder:"\u5982\uFF1A\u4F60\u7684\u4E2A\u4EBA\u4FE1\u606F\u4E0E\u7167\u7247\u4E0D\u4E00\u81F4\u3002",size:"large",maxLength:30})))))};var jo=(0,he.connect)(({exercise:ce,user:se})=>({exercise:ce,user:se}))(Wr);const Ti=({visible:ce,onOk:se,onCancel:ae,selectIds:_e,params:pt})=>{const[Ve,Dt]=(0,a.useState)(!1),[et,Be]=(0,a.useState)({}),[Pe]=fe.default.useForm(),Ht=vn=>fl(void 0,null,function*(){Dt(!0);let hn;ce===!0?hn=yield(0,Ce.ZP)(`/api/exercises/${pt==null?void 0:pt.exercise_id}/batch_audit_identity_photo.json`,{method:"post",body:vr({identity_photo_ids:_e},vn)}):hn=yield(0,Ce.ZP)(`/api/exercises/${pt==null?void 0:pt.exercise_id}/audit_identity_photo.json`,{method:"post",body:vr({identity_photo_id:ce==null?void 0:ce.exercise_identity_photo_id},vn)}),(hn==null?void 0:hn.status)===0&&se(),Dt(!1)});return a.createElement(Fe.default,{title:ce!==!0?"\u4EBA\u8138\u8EAB\u4EFD\u5BA1\u6838":"\u6279\u91CF\u5BA1\u6838",open:!!ce,centered:!0,width:650,destroyOnClose:!0,onCancel:()=>{ae()},afterClose:()=>{Pe.resetFields(),Be({})},confirmLoading:Ve,onOk:()=>Pe.submit()},a.createElement(fe.default,{className:so.formWrap,form:Pe,labelCol:{span:4},wrapperCol:{span:18},onFinish:Ht,onValuesChange:()=>{Be(vr({},Pe.getFieldsValue()))}},ce!==!0&&a.createElement(oe.Z,{style:{marginLeft:28,marginBottom:38}},a.createElement(ve.Z,null,"\u91C7\u96C6\u7167\u7247\uFF1A"),a.createElement(ve.Z,null,a.createElement("aside",{className:so.imgWrap},a.createElement("div",{className:so.img},a.createElement("img",{width:234,src:(0,de.Tv)(ce==null?void 0:ce.photo_url)}),a.createElement("div",{onClick:()=>{Pa.Z.publish("preview-image",ce==null?void 0:ce.photo_url)},className:so.iBtn},"\u9884\u89C8"),a.createElement("div",{className:so.text},"\u91C7\u96C6\u7167\u7247")),a.createElement("div",{className:so.img,style:{marginLeft:20}},ce!=null&&ce.identity_url?a.createElement("img",{width:234,src:(0,de.Tv)(ce==null?void 0:ce.identity_url)}):a.createElement("div",{className:so.no,style:{width:326}},a.createElement("span",null,"\u6682\u65E0\u8BC1\u4EF6\u7167\u7247")),!!(ce!=null&&ce.identity_url)&&a.createElement("div",{onClick:()=>{Pa.Z.publish("preview-image",(0,de.Tv)(ce==null?void 0:ce.identity_url))},className:so.iBtn},"\u9884\u89C8"),a.createElement("div",{className:so.text},"\u8BC1\u4EF6\u7167\u7247"))))),a.createElement(fe.default.Item,{label:"\u5BA1\u6838\u72B6\u6001",name:"state",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5BA1\u6838\u72B6\u6001"}]},a.createElement(Ie.ZP.Group,null,a.createElement(Ie.ZP,{value:"passed"},"\u5BA1\u6838\u901A\u8FC7"),a.createElement(Ie.ZP,{value:"rejected"},"\u5BA1\u6838\u4E0D\u901A\u8FC7"))),(et==null?void 0:et.state)==="rejected"&&a.createElement(fe.default.Item,{label:"\u5BA1\u6838\u610F\u89C1",name:"comment",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5BA1\u6838\u610F\u89C1"}]},a.createElement(Le.default,{placeholder:"\u5982\uFF1A\u4F60\u7684\u4E2A\u4EBA\u4FE1\u606F\u4E0E\u7167\u7247\u4E0D\u4E00\u81F4\u3002",maxLength:30})),a.createElement("div",{style:{color:"#FA6400",paddingLeft:32}},"\u6CE8\u610F\uFF1A\u5BA1\u6838\u901A\u8FC7\u540E\uFF0C\u8BE5\u5B66\u751F\u5728\u672C\u573A\u8003\u8BD5\u7684\u8BA4\u8BC1\u72B6\u6001\u5C06\u66F4\u65B0\u4E3A\u201C\u5BA1\u6838\u901A\u8FC7\u201D\uFF0C\u4E14\u80FD\u591F\u8FDB\u5165\u8003\u8BD5\u3002")))};var yn=z(48054),fa=z(32983),va={flex_box_center:"flex_box_center___t6Zg2",flex_space_between:"flex_space_between___YFTSU",flex_box_vertical_center:"flex_box_vertical_center___qbDmM",flex_box_center_end:"flex_box_center_end___Bj6kw",flex_box_column:"flex_box_column___Ou9DO",wrap:"wrap___foAmP",control:"control___q0ttm",bgH:"bgH___NAS04",sys:"sys___rqcXV",li:"li___blFPM",d1:"d1___Xzld0",img:"img___ckn7G",btn:"btn___fSMGG",b1:"b1___zoANu",b2:"b2___bqZaY",big:"big___nQ5gf",cusModal:"cusModal___rTXoc",video:"video___E4J_7",imgWrap:"imgWrap___ENwuy",iBtn:"iBtn___bXnJy",text:"text___CK5up",no:"no___MBT10",textP:"textP___ibKK1",l:"l___Gi38o",r:"r___HNibN",fo:"fo___DQwO8",b:"b___z8B9p"},Vr=Object.defineProperty,Bl=Object.defineProperties,Gr=Object.getOwnPropertyDescriptors,El=Object.getOwnPropertySymbols,Dl=Object.prototype.hasOwnProperty,Qr=Object.prototype.propertyIsEnumerable,Kr=(ce,se,ae)=>se in ce?Vr(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,Do=(ce,se)=>{for(var ae in se||(se={}))Dl.call(se,ae)&&Kr(ce,ae,se[ae]);if(El)for(var ae of El(se))Qr.call(se,ae)&&Kr(ce,ae,se[ae]);return ce},Co=(ce,se)=>Bl(ce,Gr(se)),Br=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Wl=({exercise:ce,dispatch:se,user:ae})=>{var _e,pt,Ve,Dt,et,Be,Pe,Ht,vn;const hn=(0,he.useParams)(),[xt,Gt]=(0,a.useState)({page:1,limit:10,name:"",save_name:"",exercise_id:hn==null?void 0:hn.categoryId}),[Bn]=fe.default.useForm(),[Dn,Fn]=(0,a.useState)(),[Wt,Ut]=(0,a.useState)(!1),{exerciseList:Yt}=ce,[ta,nn]=(0,a.useState)([]),[zn,mn]=(0,a.useState)(0),[pa,Pt]=(0,a.useState)(!0),[Nt,Rt]=(0,a.useState)(!1),[Xt,cn]=(0,a.useState)("1"),[tn,Ja]=(0,a.useState)(1),[ha,dt]=(0,a.useState)("alert"),[Fa,ia]=(0,a.useState)(1),[wu,Sa]=(0,a.useState)(""),[Hn,Oa]=(0,a.useState)(!1),[tu,Ka]=(0,a.useState)(!1),[Ba,La]=(0,a.useState)([]);(0,a.useEffect)(()=>{Zn(xt)},[]);const Zn=Zu=>Br(void 0,null,function*(){const sa=hu().cloneDeep(Zu);Pt(!0),nn([]);const Ru=yield(0,Ce.ZP)(`/api/exercises/${Zu==null?void 0:Zu.exercise_id}/exercise_videos.json`,{method:"get",params:sa});Pt(!1),mn(Ru==null?void 0:Ru.count),nn((Ru==null?void 0:Ru.exercise_users)||[])}),bn=(Zu,sa)=>{xt.page=Zu,xt.limit=sa,Gt(Do({},xt)),Zn(xt)},ca=Zu=>{xt.page=1,xt.save_name=Zu,Gt(Do({},xt))},Qn=()=>{xt.page=1;const Zu=Object.assign({},Bn.getFieldsValue());Object.keys(Zu).map(function(sa){switch(sa){case"exercise_group_id":Zu[sa].includes("all")||!Zu[sa].length?(delete xt.course_group,Bn.setFieldsValue({exercise_group_id:"all"})):(xt.course_group=Zu[sa],Bn.setFieldsValue({exercise_group_id:xt.course_group}));break}}),Zn(xt)};(0,a.useEffect)(()=>{document.getElementById("divhe")&&document.getElementById("divhe").scrollHeight>47&&(Fn(47),Ut(!0))},[document.getElementById("divhe"),Yt]);const pn=Zu=>Br(void 0,null,function*(){Oa(!0),Rt({});const sa=yield(0,Ce.ZP)(`/api/exercises/${xt==null?void 0:xt.exercise_id}/student_info.json`,{method:"get",params:{exercise_user_id:Zu==null?void 0:Zu.exercise_user_id}}),Ru=yield(0,Ce.ZP)(`/api/exercises/${xt==null?void 0:xt.exercise_id}/video_push_logs.json`,{method:"get",params:{exercise_user_id:Zu==null?void 0:Zu.exercise_user_id}});Ru!=null&&Ru.data&&La((Ru==null?void 0:Ru.data)||[]),sa!=null&&sa.data&&Rt(Co(Do({},sa==null?void 0:sa.data),{exercise_user_id:Zu==null?void 0:Zu.exercise_user_id,datas:Zu})),Oa(!1)}),Tn=Zu=>{var sa,Ru;Ja(Zu==="prev"?tn-1===0?(sa=Nt==null?void 0:Nt.exercise_user_photos)==null?void 0:sa.length:tn-1:tn===((Ru=Nt==null?void 0:Nt.exercise_user_photos)==null?void 0:Ru.length)?1:tn+1)},En=()=>{Ja(1),dt("alert"),Sa(""),cn("1"),ia(1)},da=Zu=>{ia(Zu)},Ha=Zu=>{dt(Zu),ia(1),Sa("")},au=[{key:1,value:"\u624B\u673A\u5F55\u50CF\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u626B\u63CF\u5DE6\u4FA7\u4E8C\u7EF4\u7801\u5F00\u542F\u624B\u673A\u6444\u50CF\u5F55\u5236\u3002"},{key:2,value:"\u8BF7\u52FF\u79BB\u5F00\u76D1\u63A7\u8303\u56F4\uFF01"},{key:3,value:"\u8BF7\u4E0D\u8981\u4E0E\u5176\u4ED6\u4EBA\u4EA4\u8C08\uFF01"},{key:4,value:"\u8BF7\u4E0D\u8981\u505A\u4E0E\u8003\u8BD5\u65E0\u5173\u7684\u884C\u4E3A\uFF01"},{key:5,value:"\u8BF7\u52FF\u5207\u5C4F\uFF0C\u8D85\u8FC73\u6B21\u5C06\u88AB\u5F3A\u5236\u4EA4\u5377\uFF01"},{key:6,value:"\u8BF7\u52FF\u906E\u6321\u6216\u5173\u95ED\u7535\u8111\u6444\u50CF\u76D1\u63A7\uFF01"},{key:0,value:"\u5176\u4ED6"}],Ya=[{key:1,value:"\u8BF7\u5C06\u624B\u673A\u653E\u7F6E\u4E8E\u4FA7\u540E\u65B945\xB0\uFF0C\u79BB\u684C\u97621\u7C73\u5DE6\u53F3\uFF0C\u4FDD\u8BC1\u80FD\u62CD\u6444\u5230\u4E0A\u534A\u8EAB\u3001\u7535\u8111\u5C4F\u5E55\u548C\u684C\u9762\u3002"},{key:2,value:"\u624B\u673A\u5F55\u50CF\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u626B\u63CF\u5DE6\u4FA7\u4E8C\u7EF4\u7801\u5F00\u542F\u624B\u673A\u6444\u50CF\u5F55\u5236\u3002"},{key:0,value:"\u5176\u4ED6"}],Cr=ha==="alert"?au:Ya;return a.createElement("section",{className:va.wrap},a.createElement(fe.default,{form:Bn,onChange:Qn,initialValues:{exercise_group_id:"all"}},a.createElement(fe.default.Item,{name:"exercise_group_id"},a.createElement(Se.default.Group,{style:{width:"100%"}},a.createElement(oe.Z,null,a.createElement(ve.Z,{className:"font14",flex:"80px"},"\u9009\u62E9\u5206\u73ED:"),a.createElement(ve.Z,{flex:"80px"},a.createElement(Se.default,{value:"all"},"\u5168\u90E8")),a.createElement(ve.Z,{flex:"1",id:"divhe",style:{height:Dn+"px",overflow:"hidden"}},(_e=Yt.course_groups)==null?void 0:_e.map((Zu,sa)=>a.createElement(Se.default,{key:sa,value:Zu.exercise_group_id,className:"ml0 mr8"},Zu.exercise_group_name,"(",Zu.exercise_group_students,")"))),Wt&&a.createElement("span",{onClick:()=>{let Zu=document.getElementById("divhe").scrollHeight;Dn>47?Fn(47):Fn(Zu)},style:{color:"rgb(76, 172, 255)",cursor:"pointer",alignItems:"flex-end",display:"flex"}},Dn===47?"\u5C55\u5F00":"\u6536\u8D77",Dn===47?a.createElement(fs.Z,{style:{marginBottom:"3px",marginLeft:"2px"}}):a.createElement(ps.Z,{style:{marginBottom:"3px",marginLeft:"2px"}})))))),a.createElement("div",{className:va.control},a.createElement(Le.default.Search,{placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",value:xt==null?void 0:xt.save_name,onChange:Zu=>ca(Zu.target.value),onSearch:()=>{xt.page=1,xt.name=xt.save_name,Gt(Do({},xt)),Zn(xt)}})),a.createElement("div",{className:va.bgH}),a.createElement("div",{className:va.warpList},a.createElement(yn.Z,{loading:pa,active:!0,paragraph:{rows:5}},a.createElement("div",{className:"c-grey-666 mb20 mt20"},"\u5171",a.createElement("span",{className:"c-orange"},zn),"\u540D\u5B66\u751F\u5DF2\u5F00\u542F\u624B\u673A\u6444\u5F71"),ta.length?a.createElement("ul",{className:va.sys},ta.map((Zu,sa)=>{const{user_name:Ru,user_group_name:mr,video_url:gl,login:Tl,student_id:mu}=Zu;return a.createElement("li",{className:va.li,key:sa},a.createElement("div",{className:va.d1},a.createElement("div",{className:va.img},a.createElement("iframe",{style:{height:340,width:"100%",border:"none"},src:`/live-play.html?key=${sa}&video_url=${gl==null?void 0:gl.replace(".m3u8",".flv")}`})),a.createElement(Ae.Z,{title:"\u59D3\u540D+\u5B66\u53F7"},a.createElement("div",{className:va.btn,onClick:()=>(0,de.RG)(`${xt.exercise_id}-${Tl}`,!0)},a.createElement("div",{title:Ru,className:va.b1},Ru),a.createElement("div",{title:mr,className:va.b2},"(",mu,")"))),a.createElement("div",{onClick:()=>pn(Zu),className:va.big},"\u67E5\u770B")))})):a.createElement(fa.Z,null)),a.createElement(He.Z,{showTotal:Zu=>a.createElement("span",{className:"mr10"},"\u5171",a.createElement("span",{className:"c-orange"},Zu),"\u6761\u6570\u636E"),className:"tc",showSizeChanger:!1,showQuickJumper:!0,hideOnSinglePage:!0,onChange:bn,pageSize:xt==null?void 0:xt.limit,current:xt.page,total:zn})),a.createElement(Fe.default,{title:"\u67E5\u770B\u8BE6\u7EC6\u4FE1\u606F",open:Nt,centered:!0,width:850,destroyOnClose:!0,onCancel:()=>{Rt(!1)},afterClose:En,footer:null},a.createElement(yn.Z,{loading:Hn,active:!0,paragraph:{rows:5}},a.createElement("div",null,a.createElement("span",null,"\u59D3\u540D:",(pt=Nt==null?void 0:Nt.datas)==null?void 0:pt.user_name),a.createElement("span",{className:"ml20"},"\u5B66\u53F7:",(Ve=Nt==null?void 0:Nt.datas)==null?void 0:Ve.student_id),a.createElement("span",{className:"ml20"},"\u73ED\u7EA7:",(Dt=Nt==null?void 0:Nt.datas)==null?void 0:Dt.user_group_name)),a.createElement(y.default,{className:"mt10",defaultActiveKey:Xt,onChange:Zu=>{cn(Zu)}},a.createElement(y.default.TabPane,{tab:"\u9632\u4F5C\u5F0A\u5934\u50CF",key:"1"},a.createElement("aside",{className:va.imgWrap},a.createElement("div",{className:va.img,style:{width:234,marginLeft:30,textAlign:"center"}},(et=Nt==null?void 0:Nt.exercise_user_photos)!=null&&et.length?a.createElement(a.Fragment,null,a.createElement("img",{height:131,src:(Be=Nt==null?void 0:Nt.exercise_user_photos)==null?void 0:Be[tn-1]}),a.createElement("div",{onClick:()=>{var Zu;Pa.Z.publish("preview-image",(Zu=Nt==null?void 0:Nt.exercise_user_photos)==null?void 0:Zu[tn-1])},className:va.iBtn},"\u9884\u89C8"),a.createElement("div",{className:va.text},"\u8003\u8BD5\u4E2D\u7167\u7247",a.createElement("span",{className:"c-light-primary"},tn,"/",(Pe=Nt==null?void 0:Nt.exercise_user_photos)==null?void 0:Pe.length)),tn===1?a.createElement("div",{style:{color:"#ccc",cursor:"not-allowed"},className:va.l}," ",a.createElement("i",{className:"iconfont icon-fanhui2"})):a.createElement("div",{onClick:()=>Tn("prev"),className:va.l}," ",a.createElement("i",{className:"iconfont icon-fanhui2"})),a.createElement("div",{onClick:()=>Tn("next"),className:va.r},a.createElement("i",{className:"iconfont icon-lujing"}))):a.createElement("div",{className:va.no},a.createElement("span",null,"\u6682\u65E0\u8003\u8BD5\u4E2D\u7167\u7247"))),a.createElement("div",{className:va.img,style:{marginLeft:60,width:234,textAlign:"center"}},Nt!=null&&Nt.identity_url?a.createElement("img",{height:131,src:(0,de.Tv)(Nt==null?void 0:Nt.identity_url)}):a.createElement("div",{className:va.no},a.createElement("span",null,"\u6682\u65E0\u8BC1\u4EF6\u7167\u7247")),!!(Nt!=null&&Nt.identity_url)&&a.createElement("div",{onClick:()=>{Pa.Z.publish("preview-image",(0,de.Tv)(Nt==null?void 0:Nt.identity_url))},className:va.iBtn},"\u9884\u89C8"),a.createElement("div",{className:va.text},"\u8BC1\u4EF6\u7167\u7247")))),a.createElement(y.default.TabPane,{tab:"\u4EBA\u8138\u7167\u7247",key:"2"},a.createElement("aside",{className:va.imgWrap,style:{marginLeft:70}},a.createElement("div",{className:va.img},a.createElement("img",{width:234,src:Nt==null?void 0:Nt.exercise_identity_photo}),a.createElement("div",{onClick:()=>{Pa.Z.publish("preview-image",Nt==null?void 0:Nt.exercise_identity_photo)},className:va.iBtn},"\u9884\u89C8"),a.createElement("div",{className:va.text},"\u91C7\u96C6\u7167\u7247")),a.createElement("div",{className:va.img,style:{marginLeft:20,width:234,textAlign:"center"}},Nt!=null&&Nt.identity_url?a.createElement("img",{height:131,src:(0,de.Tv)(Nt==null?void 0:Nt.identity_url)}):a.createElement("div",{className:va.no},a.createElement("span",null,"\u6682\u65E0\u8BC1\u4EF6\u7167\u7247")),!!(Nt!=null&&Nt.identity_url)&&a.createElement("div",{onClick:()=>{Pa.Z.publish("preview-image",(0,de.Tv)(Nt==null?void 0:Nt.identity_url))},className:va.iBtn},"\u9884\u89C8"),a.createElement("div",{className:va.text},"\u8BC1\u4EF6\u7167\u7247")))),a.createElement(y.default.TabPane,{tab:"\u8B66\u544A\u548C\u901A\u77E5",key:"3"},a.createElement("div",{className:va.fo},a.createElement(Ie.ZP,{className:"mt20",checked:ha==="alert",onChange:()=>Ha("alert")},"\u53D1\u9001\u8B66\u544A",a.createElement("span",{className:"font14 c-grey-999"},"\uFF08\u5982\u53D1\u73B0\u5B66\u751F\u5728\u8003\u8BD5\u4E2D\u7684\u7167\u7247\u5B58\u5728\u5F02\u5E38\u65F6\uFF0C\u53EF\u53D1\u9001\u6D88\u606F\u7ED9\u5B66\u751F\uFF09")),a.createElement(Ie.ZP,{className:"mt10",checked:ha==="notice",onChange:()=>Ha("notice")},"\u53D1\u9001\u901A\u77E5",a.createElement("span",{className:"font14 c-grey-999"},"\uFF08\u8003\u8BD5\u4E2D\u5982\u6709\u6D88\u606F\u901A\u77E5\uFF0C\u53EF\u53D1\u9001\u6D88\u606F\u7ED9\u5B66\u751F\uFF09")),a.createElement("div",{className:"mt20"},a.createElement("span",{className:"mr10"},"\u539F\u56E0:"),a.createElement(ft.default,{style:{width:570},value:Fa,onChange:da},Cr==null?void 0:Cr.map(Zu=>a.createElement(ft.default.Option,{key:Zu.key,value:Zu.key},Zu.value)))),Fa===0&&a.createElement(Le.default.TextArea,{className:"mt20",value:wu,onChange:Zu=>Sa(Zu.target.value),placeholder:"\u8BF7\u586B\u5199\u5176\u4ED6\u539F\u56E0"}),a.createElement(oe.Z,{className:"mt10",align:"middle"},a.createElement("div",{className:"mr10"},"\u53D1\u9001\u8BB0\u5F55"),a.createElement("div",{style:{color:"#E30000",fontSize:12,margin:"10px 0"}},"\u5DF2\u53D1\u9001",Nt==null?void 0:Nt.alert_count,"\u6B21\u8B66\u544A\u548C",((Ht=Nt==null?void 0:Nt.alerts)==null?void 0:Ht.length)-(Nt==null?void 0:Nt.alert_count),"\u6B21\u901A\u77E5")),a.createElement(x.default,{dataSource:(Nt==null?void 0:Nt.alerts)||[],bordered:!1,scroll:((vn=Nt==null?void 0:Nt.alerts)==null?void 0:vn.length)>4?{y:200}:{},columns:[{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"created_at",width:164},{title:"\u53D1\u9001\u4EBA",dataIndex:"sender",width:100,ellipsis:{showTitle:!1},render:Zu=>Zu?a.createElement("span",{title:Zu},Zu):"--"},{title:"\u53D1\u9001\u7C7B\u578B",dataIndex:"clazz",width:80,render:Zu=>Zu==="alert"?"\u8B66\u544A":"\u901A\u77E5"},{title:"\u53D1\u9001\u5185\u5BB9",dataIndex:"content",ellipsis:!0}],pagination:!1}),a.createElement(me.ZP,{className:va.b,onClick:()=>Br(void 0,null,function*(){if(!wu&&Fa===0){pe.ZP.info("\u8BF7\u8F93\u5165\u5176\u4ED6\u539F\u56E0");return}let Zu=wu;Fa&&(Zu=(ha==="alert"?au:Ya).find(mr=>mr.key===Fa).value),Ka(!0);let sa=yield(0,Ce.ZP)(`/api/exercises/${xt.exercise_id}/send_alert.json`,{method:"post",body:{content:Zu,clazz:ha,exercise_user_id:Nt==null?void 0:Nt.exercise_user_id}});(sa==null?void 0:sa.status)===0&&(pe.ZP.info("\u53D1\u9001\u6210\u529F"),Rt(!1)),Ka(!1)}),loading:tu,type:"primary"},a.createElement("i",{className:"iconfont icon-fasongtongzhi mr5"}),"\u53D1\u9001"))),a.createElement(y.default.TabPane,{tab:"\u65AD\u6D41\u8BB0\u5F55",key:"4"},a.createElement(x.default,{dataSource:Ba,bordered:!1,scroll:Ba.length>7?{y:300}:{},columns:[{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"start_time",width:164},{title:"\u7ED3\u675F\u65F6\u95F4",dataIndex:"end_time",width:164,render:Zu=>Ge()(Zu).format("YYYY-MM-DD HH:mm:ss")||"--"},{title:"\u63A8\u6D41\u65F6\u957F",dataIndex:"push_duration",ellipsis:!0,width:120,render:Zu=>Zu&&(0,de.li)(Number(Zu)/1e3)||0},{title:"\u65AD\u6D41\u539F\u56E0",dataIndex:"msg",ellipsis:!0}]}))))),a.createElement(er.Z,null))};var hi=(0,he.connect)(({exercise:ce,user:se})=>({exercise:ce,user:se}))(Wl),bu={flex_box_center:"flex_box_center___xF1ge",flex_space_between:"flex_space_between___YGq9c",flex_box_vertical_center:"flex_box_vertical_center___wd_iR",flex_box_center_end:"flex_box_center_end___HoL5p",flex_box_column:"flex_box_column___Oy7FC",warp:"warp____YDkr",header:"header___BRNBu",empty:"empty___iwhMt"},ns={flex_box_center:"flex_box_center___Xa_jj",flex_space_between:"flex_space_between___N_2qI",flex_box_vertical_center:"flex_box_vertical_center___wGZOw",flex_box_center_end:"flex_box_center_end___GYY4W",flex_box_column:"flex_box_column___jR_ZX",subjectTable:"subjectTable___WrGqf",title:"title___ZCcfg",customTable:"customTable___xSvZm",row:"row___Acnda",line:"line___nmQeX"},cl=Object.defineProperty,is=Object.defineProperties,li=Object.getOwnPropertyDescriptors,_i=Object.getOwnPropertySymbols,as=Object.prototype.hasOwnProperty,ho=Object.prototype.propertyIsEnumerable,oi=(ce,se,ae)=>se in ce?cl(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,Zi=(ce,se)=>{for(var ae in se||(se={}))as.call(se,ae)&&oi(ce,ae,se[ae]);if(_i)for(var ae of _i(se))ho.call(se,ae)&&oi(ce,ae,se[ae]);return ce},Ss=(ce,se)=>is(ce,li(se)),ss=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())}),Es=({index:ce,bottomLine:se,gather:ae,search:_e})=>{const[pt,Ve]=(0,a.useState)([]),[Dt,et]=(0,a.useState)(!1),[Be,Pe]=(0,a.useState)(!1),Ht=(0,he.useParams)(),vn=(0,he.useLocation)(),[hn]=(0,he.useSearchParams)(),[xt,Gt]=(0,a.useState)({page:1,limit:6,total:0});(0,a.useEffect)(()=>{console.log(ae,"gather"),ce===0&&Pe(!0)},[]),(0,a.useEffect)(()=>{Be&&Dn()},[Be]);const Bn=[{title:"\u5E8F\u53F7",dataIndex:"index",key:"index",align:"left",ellipsis:!0,render:(Ut,Yt,ta)=>xt.limit*(xt.page-1)+ta+1},{title:"\u59D3\u540D",dataIndex:"username",key:"username",align:"left",ellipsis:!0},{title:"\u73ED\u7EA7",dataIndex:"user_group_name",key:"user_group_name",align:"left",render:Ut=>Ut||"--"},{title:"\u5B66\u53F7",dataIndex:"student_id",key:"student_id",align:"left"},{title:"\u76F8\u4F3C\u5EA6",dataIndex:"code_rate",key:"code_rate",align:"left",render:Ut=>Ut+"%"},{title:"\u64CD\u4F5C",dataIndex:"id",key:"id",align:"left",render:Ut=>{let Yt=`/classrooms/${Ht==null?void 0:Ht.coursesId}/exercise/${Ht==null?void 0:Ht.categoryId}/detail/${Ut}/review_detail`;return hn.get("random")&&(Yt=Yt+`?random=${hn.get("random")}`),a.createElement(he.Link,{to:Yt,target:"_blank"},"\u67E5\u770B")}}],Dn=Ut=>ss(void 0,null,function*(){et(!0);const Yt=Ut||{page:1,limit:10,total:0},ta=Zi({id:Ht==null?void 0:Ht.categoryId,question_id:ae==null?void 0:ae.question_id,search:_e},Yt),nn=yield(0,Ce.ZP)(`/api/courses/${Ht==null?void 0:Ht.coursesId}/exercises/code_review_users.json`,{method:"get",params:ta});nn&&(Ve(nn==null?void 0:nn.users),et(!1),Gt(Ss(Zi({},Yt),{total:(nn==null?void 0:nn.count)||0})))}),Fn=Ut=>{const Yt=Ss(Zi({},xt),{page:Ut});Gt(Yt),Dn(Yt)},Wt=()=>{Pe(!Be)};return a.createElement("div",{className:ns.subjectTable},a.createElement("aside",{className:ns.title},a.createElement("span",{className:"c-light-primary"},ce+1,"\u3001",ae.name||((ae==null?void 0:ae.question_type)===5?"\u5B9E\u8BAD\u9898":"\u7F16\u7A0B\u9898")),a.createElement("span",{className:"c-grey-333"},"\uFF08",ae==null?void 0:ae.score,"\u5206\uFF09\uFF1A",ae==null?void 0:ae.question_title),a.createElement("span",{className:"ml40 c-grey-999"},a.createElement("b",{className:"c-red-ee4"},ae==null?void 0:ae.checked_count),"\xA0\u4E2A\u7591\u4F3C\u6284\u88AD\u4F5C\u54C1\uFF08\u5171",ae==null?void 0:ae.total_count,"\u4E2A\u4F5C\u54C1\uFF09"),a.createElement("span",{onClick:Wt,style:{marginLeft:"auto",cursor:"pointer",color:"#0152d9"}},Be?"\u6536\u8D77":"\u5C55\u5F00",Be?a.createElement(ps.Z,null):a.createElement(fs.Z,null)),(ae==null?void 0:ae.question_type)===5&&a.createElement("a",{style:{marginLeft:20},target:"_blank",href:`/shixuns/${ae==null?void 0:ae.shixun_identifier}/challenges`},"\u5B9E\u8BAD\u8BE6\u60C5")),a.createElement(x.default,{className:ns.customTable,style:{display:Be?"block":"none"},dataSource:pt,bordered:!1,rowKey:Ut=>Ut.id,rowClassName:ns.row,columns:Bn,loading:Dt,pagination:{pageSize:xt.limit,total:xt.total,current:xt.page,onChange:Fn,showQuickJumper:!0,showSizeChanger:!1,hideOnSinglePage:!0,position:["bottomCenter"]}}),a.createElement("div",{className:ns.line,style:{visibility:se?"hidden":"visible"}}))},ws=z(63494),no=z(67294),Dc=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Oc=({exercise:ce,globalSetting:se,dispatch:ae})=>{const[_e,pt]=(0,a.useState)(""),[Ve,Dt]=(0,a.useState)([]),[et,Be]=(0,a.useState)(""),[Pe,Ht]=(0,a.useState)(!1),[vn,hn]=(0,a.useState)(!1),xt=(0,he.useParams)();(0,a.useEffect)(()=>{Gt()},[]);const Gt=Fn=>Dc(void 0,null,function*(){Ht(!0);const Wt=yield(0,Ce.ZP)(`/api/courses/${xt==null?void 0:xt.coursesId}/exercises/code_review_results.json`,{method:"get",params:{id:xt==null?void 0:xt.categoryId,search:_e}});if((Wt==null?void 0:Wt.status)===-2){hn(!0),Gt();return}Wt&&(hn(!1),Ht(!1),Dt((Wt==null?void 0:Wt.exercise_questions)||[]),Be(Wt==null?void 0:Wt.last_review_time))}),Bn=()=>{Gt()},Dn=()=>no.createElement("div",{className:bu.empty},no.createElement("img",{src:ws.x7,width:"258"}),no.createElement("span",{className:"c-grey-c"},"\u6682\u65E0\u6570\u636E"));return no.createElement("section",{className:bu.warp},no.createElement("aside",{className:bu.header},no.createElement("div",null,"\u67E5\u91CD\u65F6\u95F4\uFF1A",et||"--"),!!et&&no.createElement(Le.default,{value:_e,onChange:Fn=>pt(Fn.target.value),suffix:no.createElement("i",{onClick:Bn,className:"iconfont icon-sousuo2 c-grey-c"}),bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u5B66\u53F7\u641C\u7D22",onPressEnter:Bn})),vn&&no.createElement(zt.Z,{customText:"\u6B63\u5728\u8FDB\u884C\u4EE3\u7801\u67E5\u91CD\uFF0C\u8BF7\u7A0D\u5019\u3002\u67E5\u91CD\u7ED3\u675F\u540E\uFF0C\u9875\u9762\u5C06\u81EA\u52A8\u66F4\u65B0\u663E\u793A\u7ED3\u679C"}),!vn&&no.createElement(yn.Z,{loading:Pe,active:!0,paragraph:{rows:5}},Ve.length>0?no.createElement("aside",{className:bu.subject},Ve.map((Fn,Wt)=>no.createElement(Es,{key:Wt,index:Wt,bottomLine:Wt===Ve.length-1,gather:Fn,search:_e}))):Dn()))};var Ts=(0,he.connect)(({exercise:ce,globalSetting:se})=>({exercise:ce,globalSetting:se}))(Oc),ks=z(96074),Fi=z(35567),ac=z(35566),ll=z(73646),ba={flex_box_center:"flex_box_center___epJYP",flex_space_between:"flex_space_between___SU6BD",flex_box_vertical_center:"flex_box_vertical_center___Qes2t",flex_box_center_end:"flex_box_center_end___hGppz",flex_box_column:"flex_box_column___uzhhO",wrap:"wrap___rEjJ0",modal:"modal___gRDV9",titleWrap:"titleWrap___MK_OO",required:"required___Hja3H",title:"title___vMFKz",colorGray:"colorGray___hNhIL",choiceWrap:"choiceWrap___Xx5du",answer:"answer___cbuNE",activeAnswer:"activeAnswer___LwFG7",deleteIcon:"deleteIcon____HG4s",addIcon:"addIcon___r_Vhy",editorWrap:"editorWrap___OYwur",htmlWrap:"htmlWrap___qXHYn",radio:"radio___urtyZ",color333:"color333___Lah7k",color999:"color999___TmkZt",questionType:"questionType___r_bKw",questionChoices:"questionChoices___LA7VM",action:"action___fTTDM",difficult:"difficult___Mg7lT",fold:"fold___oVjRI",head:"head___fpwmn",divname:"divname___O7KlL",btn_warp:"btn_warp___aj_Vv"},Jn=z(4069),cr=z(35713),$n=z(67294),Ql=Object.defineProperty,Bo=Object.getOwnPropertySymbols,ao=Object.prototype.hasOwnProperty,Ui=Object.prototype.propertyIsEnumerable,xs=(ce,se,ae)=>se in ce?Ql(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,Ps=(ce,se)=>{for(var ae in se||(se={}))ao.call(se,ae)&&xs(ce,ae,se[ae]);if(Bo)for(var ae of Bo(se))Ui.call(se,ae)&&xs(ce,ae,se[ae]);return ce},vi=(ce,se)=>{var ae={};for(var _e in ce)ao.call(ce,_e)&&se.indexOf(_e)<0&&(ae[_e]=ce[_e]);if(ce!=null&&Bo)for(var _e of Bo(ce))se.indexOf(_e)<0&&Ui.call(ce,_e)&&(ae[_e]=ce[_e]);return ae},Ni=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Mc=null,jc="\u2581",Is=(ce,se)=>{var ae=ce,{problemset:_e,globalSetting:pt,exercise:Ve,loading:Dt,dispatch:et,editData:Be,editKey:Pe,setEditKey:Ht=()=>{},cancelAdd:vn=()=>{},addCallback:hn=()=>{},reload:xt=()=>{},setIsClaer:Gt=()=>{}}=ae,Bn=vi(ae,["problemset","globalSetting","exercise","loading","dispatch","editData","editKey","setEditKey","cancelAdd","addCallback","reload","setIsClaer"]);const[Dn,Fn]=(0,a.useState)(""),[Wt,Ut]=(0,a.useState)(""),[Yt,ta]=(0,a.useState)([]),[nn,zn]=(0,a.useState)(""),[mn,pa]=(0,a.useState)(),[Pt,Nt]=(0,a.useState)(!1),[Rt,Xt]=(0,a.useState)(),[cn,tn]=(0,a.useState)(0),[Ja,ha]=(0,a.useState)(!1),[dt,Fa]=(0,a.useState)(!1),[ia,wu]=(0,a.useState)([]),[Sa,Hn]=(0,a.useState)(1),[Oa,tu]=(0,a.useState)(!1),Ka=(0,a.useRef)(!1),Ba=(0,he.useParams)(),[La,Zn]=(0,a.useState)([]),bn=Ru=>{Zn([...La,Ps({},Ru)])};(0,a.useEffect)(()=>{var Ru;if(Ka.current)return;if(!(Be!=null&&Be.question_title)){ha(!0),Fn(""),pa(!1),Xt(2),ta([]),zn(""),Nt(!1);return}Fn(Be==null?void 0:Be.question_title),pa(Be==null?void 0:Be.is_ordered),Hn(Be==null?void 0:Be.difficulty),tu(!(Be!=null&&Be.repeat_answer)),Xt(Be==null?void 0:Be.question_score);const mr=(Ru=Be==null?void 0:Be.standard_answers)==null?void 0:Ru.map(gl=>gl.answer_text);ta([...mr]),wu(Be.tag_discipline_ids),Ut(Be==null?void 0:Be.analysis)},[Be,Ja]),(0,a.useEffect)(()=>{Nt(!1),Ja&&Ru();function Ru(){return Ni(this,null,function*(){var mr,gl;const Tl=yield(0,ne.YY)({sub_discipline_id:(gl=(mr=Ve.editData)==null?void 0:mr.exercise)==null?void 0:gl.sub_discipline_id});Zn(Tl.tag_disciplines)})}},[Ja]),(0,a.useImperativeHandle)(se,()=>({onSave:Qn,isEdit:Ja})),(0,a.useEffect)(()=>{var Ru;const mr=(Ru=Ve==null?void 0:Ve.tagDisciplineData)!=null&&Ru.tag_disciplines&&Array.isArray(Ve.tagDisciplineData.tag_disciplines)?Ve.tagDisciplineData.tag_disciplines:[];Zn(mr)},[Ve.tagDisciplineData]);const ca=Ru=>{(Ru==null?void 0:Ru.status)===0&&(pe.ZP.success("\u4FDD\u5B58\u6210\u529F"),ha(!1),Ht(-1),Ka.current=!1,xt())},Qn=()=>Ni(void 0,null,function*(){var Ru,mr,gl,Tl;let mu=[],$u=!1;if(Fa(!0),Yt.forEach((Eu,wr)=>{mu.push({choice_id:wr+1,answer_text:[]}),Eu.forEach((Va,Nu)=>{mu[wr].answer_text.push(Va),(!Va||!(0,de.eR)(Va,1e4))&&(zn(`${wr}-${Nu}`),pe.ZP.info(Va?"\u7B54\u6848\u4E0D\u80FD\u8D85\u8FC710000\u5B57\u7B26":"\u7B54\u6848\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"),$u=!0)})}),$u)return Fa(!1),!1;Ka.current=!0;let jr;return Be.question_id?(Be==null?void 0:Be.is_my)===1?Fe.default.confirm({title:"\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",keyboard:!1,onOk:()=>Ni(void 0,null,function*(){var Eu,wr;jr=yield et({type:"exercise/editExerciseQuestion",payload:{id:Be.question_id,question_title:Dn,question_type:3,question_score:Rt,is_ordered:mn,standard_answers:mu,tag_discipline_ids:ia,sub_discipline_id:(wr=(Eu=Ve.editData)==null?void 0:Eu.exercise)==null?void 0:wr.sub_discipline_id,difficulty:Sa,is_cover:1,repeat_answer:!Oa,analysis:Wt}}),ca(jr)}),onCancel:()=>Ni(void 0,null,function*(){var Eu,wr;jr=yield et({type:"exercise/editExerciseQuestion",payload:{id:Be.question_id,question_title:Dn,question_type:3,question_score:Rt,is_ordered:mn,standard_answers:mu,tag_discipline_ids:ia,sub_discipline_id:(wr=(Eu=Ve.editData)==null?void 0:Eu.exercise)==null?void 0:wr.sub_discipline_id,difficulty:Sa,repeat_answer:!Oa,analysis:Wt}}),ca(jr)})}):(jr=yield et({type:"exercise/editExerciseQuestion",payload:{id:Be.question_id,question_title:Dn,question_type:3,question_score:Rt,is_ordered:mn,standard_answers:mu,tag_discipline_ids:ia,sub_discipline_id:(mr=(Ru=Ve.editData)==null?void 0:Ru.exercise)==null?void 0:mr.sub_discipline_id,difficulty:Sa,repeat_answer:!Oa,analysis:Wt}}),ca(jr)):(jr=yield et({type:"exercise/addExerciseQuestion",payload:{insert_id:Be==null?void 0:Be.insert_id,categoryId:Ba.categoryId,question_title:Dn,question_type:3,question_score:Rt,is_ordered:mn,standard_answers:mu,tag_discipline_ids:ia,sub_discipline_id:(Tl=(gl=Ve.editData)==null?void 0:gl.exercise)==null?void 0:Tl.sub_discipline_id,difficulty:Sa,repeat_answer:!Oa,analysis:Wt}}),ca(jr)),Fa(!1),{name:Dn,analysis:Wt,standard_answers:mu,is_ordered:mn}}),pn=(Ru,mr,gl)=>{const Tl=Yt.slice();if(mr&&Tl.splice(Ru,mr),gl&&Pt||!Be.question_id)for(let mu=0;mu{zn("");let Tl=Yt.slice();Tl[Ru][mr]=gl,ta(Tl)},En=Ru=>{let mr=Yt.slice();mr[Ru]=[...mr[Ru],""],ta(mr)},da=(Ru,mr)=>{let gl=Yt.slice();if(!gl[Ru][mr]){gl[Ru]=gl[Ru].filter((Tl,mu)=>mu!==mr),ta(gl);return}Fe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:ba.modal,onOk:()=>{gl[Ru]=gl[Ru].filter((Tl,mu)=>mu!==mr),ta(gl)}})},Ha=Ru=>{Fe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:ba.modal,onOk:()=>{let mr=0;Fn(Dn.replace(/\▁/g,function(gl){return mr++,mr-1===Ru?"":gl})),setTimeout(()=>{let gl=Yt.slice();gl=Yt.filter((Tl,mu)=>Ru!==mu),ta(gl)},500)}})},au=()=>{},Ya=()=>{var Ru,mr,gl,Tl,mu,$u;return console.log(Yt,"answers"),$n.createElement("aside",null,$n.createElement("div",{className:ba.questionType},$n.createElement("div",null,$n.createElement("span",{className:"font16 c-blue"},"\u586B\u7A7A\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u5141\u8BB8\u624B\u52A8\u8C03\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848 \uFF1B\u652F\u6301\u6700\u591A5\u4E2A\u7A7A\uFF0C\u6BCF\u7A7A\u5F97\u5206\u6309\u7167\u672C\u9898\u7684\u603B\u5206\u5E73\u5747\u8BA1\u7B97\uFF09")),$n.createElement("div",null,$n.createElement(ac.Z,{id:"completion-question-tittle",placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE",height:155,defaultValue:Dn,onChange:jr=>Fn(jr),showNullButton:((mr=(Ru=Ve.editData)==null?void 0:Ru.exercise)==null?void 0:mr.exercise_status)===1,deleteEmptyDisabled:((Tl=(gl=Ve.editData)==null?void 0:gl.exercise)==null?void 0:Tl.exercise_status)!==1||dt,onPlaceholderChange:pn})),$n.createElement("div",{className:"mt20"},Yt.map((jr,Eu)=>{var wr,Va;return $n.createElement(ll.Z,{key:Eu,answers:jr,index:Eu,is_md:!0,exerciseIsPublish:((Va=(wr=Ve.editData)==null?void 0:wr.exercise)==null?void 0:Va.exercise_status)!==1,activeOptionErrorIndex:nn,onAnswerChange:Tn,addChildAnswer:En,deleteChildAnswer:da,deleteChildAnswermain:Ha})})),$n.createElement("div",{className:"mt20"},Yt.length>1&&$n.createElement("span",null,$n.createElement(Se.default,{checked:mn,onChange:jr=>pa(jr.target.checked),className:`${ba.color333} font14`},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),$n.createElement("span",{className:`${ba.color999} font12`},"\uFF08\u9009\u4E2D\uFF0C\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u987A\u5E8F\u5FC5\u987B\u4E0E\u53C2\u8003\u7B54\u6848\u4E00\u81F4\uFF09"))),$n.createElement("p",{className:ba.titleWrap},$n.createElement("span",{className:ba.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),$n.createElement(Fi.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Wt,onChange:jr=>Ut(jr)}),$n.createElement("p",{className:""},$n.createElement("span",{style:{color:"red"}},"*"),"\u5206\u503C\uFF1A",$n.createElement(Re.Z,{value:Rt,max:1e4,min:0,onChange:jr=>{Xt(jr)}})," \u5206 \xA0 ",!!Rt&&!!cn&&$n.createElement("span",{style:{color:"red"}},"(\u6839\u636E\u5747\u5206\u89C4\u5219\uFF0C\u672C\u9898\u6BCF\u7A7A",(Rt/cn).toFixed(1),"\u5206)"),$n.createElement("span",{style:{marginLeft:"30px"},className:ba.difficult},$n.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",$n.createElement(Ie.ZP.Group,{value:Sa,onChange:jr=>{Hn(jr.target.value)}},$n.createElement(Ie.ZP.Button,{value:1},"\u7B80\u5355"),$n.createElement(Ie.ZP.Button,{value:2},"\u9002\u4E2D"),$n.createElement(Ie.ZP.Button,{value:3},"\u56F0\u96BE")))),$n.createElement("p",{className:ba.titleWrap},$n.createElement("span",{className:`${ba.title}`},"\u77E5\u8BC6\u70B9\uFF1A",$n.createElement("span",{className:ba.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),$n.createElement("div",{className:"mt5"},$n.createElement(Jn.N,{value:ia,selectvalues:Be==null?void 0:Be.tag_discipline_ids,onChange:wu,subId:($u=(mu=Ve.editData)==null?void 0:mu.exercise)==null?void 0:$u.sub_discipline_id,knowledgeOptions:La,onAddKnowledgeFinish:bn})),$n.createElement("div",{style:{marginTop:10}},$n.createElement("span",{style:{marginRight:10}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898"),$n.createElement(Ne.Z,{checked:Oa,onChange:jr=>{tu(jr)}}))),$n.createElement("aside",{className:"tr"},(Pe!==-1||Be.question_id)&&$n.createElement(me.ZP,{type:"default",onClick:()=>{vn(),ha(!1)}},"\u53D6\u6D88"),$n.createElement(me.ZP,{className:"ml20",type:"primary",onClick:()=>{Qn()}},"\u4FDD\u5B58")))},Cr=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5355\u9009\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(Ru=>{var mr,gl;return((gl=(mr=Ve==null?void 0:Ve.editData)==null?void 0:mr.exercise)==null?void 0:gl.exercise_status)===1?Ru:Ru.id!=="del"&&Ru.id!=="add"}),Zu=Ru=>Ni(void 0,null,function*(){if(Pe!==-1){pe.ZP.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002");return}switch(Ru.id){case"del":let mr;Fe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk(){return Ni(this,null,function*(){yield(0,ne.Fl)({id:Be.question_id}),et({type:"exercise/editExercise",payload:Ps({},Ba)})})}});break;case"up":case"down":yield et({type:"exercise/exeriseMoveUpDown",payload:{id:Be.question_id,opr:Ru.id}}),et({type:"exercise/editExercise",payload:Ps({},Ba)});break;case"edit":Ht(Be.dragKey),ha(!0);break;case"add":hn({key:Be.key,insert_id:Be==null?void 0:Be.question_id,question_type:3});break}}),sa=()=>{var Ru;return $n.createElement("aside",null,$n.createElement("div",{className:ba.questionType},!(Be!=null&&Be.isPreview)&&$n.createElement("div",null,$n.createElement("span",{className:"font16 c-blue"},Be.key,"\u3001\u586B\u7A7A\u9898"),"\uFF08",Be.question_score,"\u5206\uFF09")),Be!=null&&Be.isPreview?$n.createElement("div",{style:{display:"flex"}},$n.createElement("span",{style:{flexShrink:0},className:"font18"},Be.key,"."),$n.createElement(uu.Z,{value:Be.question_title}),$n.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",Be.question_score,"\u5206\uFF09")):$n.createElement("div",{className:"mt5"},$n.createElement(uu.Z,{value:Be.question_title})),$n.createElement("div",{className:ba.questionChoices},(Ru=Be==null?void 0:Be.standard_answers)==null?void 0:Ru.map(function(mr,gl){return $n.createElement(oe.Z,{key:gl,align:"middle"},$n.createElement(ve.Z,null,"\u7B54\u6848\uFF08\u586B\u7A7A",mr.choice_id,"\uFF09\uFF1A"),$n.createElement(ve.Z,{flex:"1"},$n.createElement(oe.Z,{align:"middle",gutter:[1,1]},mr.answer_text.map(function(Tl,mu){return $n.createElement(ve.Z,{span:24,key:mu},mr.model===1?$n.createElement(Le.default,{key:gl,checked:Be.standard_answers.includes(gl),disabled:!0,value:Tl}):$n.createElement(cr.Z,{value:Tl,disabled:!0,style:{color:"rgba(0, 0, 0, 0.25)",backgroundColor:"rgba(0, 0, 0, 0.04)"}}))}))))})),$n.createElement("div",{className:ba.action},!Be.hideAction&&Cr.map(function(mr,gl){return mr.id==="up"&&Be.key===1||mr.id==="down"&&Be.key===Be.len?null:$n.createElement(Ae.Z,{key:gl,placement:"bottom",title:mr.name},$n.createElement("span",{onClick:()=>Zu(mr),className:mr.icon}))})))};return $n.createElement("section",{className:ba.wrap},!Ja&&sa(),Ja&&Ya())};var Cc=(0,he.connect)(({problemset:ce,loading:se,exercise:ae,globalSetting:_e})=>({problemset:ce,globalSetting:_e,exercise:ae,loading:se.effects}),null,null,{forwardRef:!0})((0,a.forwardRef)(Is)),dc=Object.defineProperty,Ks=Object.getOwnPropertySymbols,Ec=Object.prototype.hasOwnProperty,Wc=Object.prototype.propertyIsEnumerable,bc=(ce,se,ae)=>se in ce?dc(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,Ys=(ce,se)=>{for(var ae in se||(se={}))Ec.call(se,ae)&&bc(ce,ae,se[ae]);if(Ks)for(var ae of Ks(se))Wc.call(se,ae)&&bc(ce,ae,se[ae]);return ce},Ac=(ce,se)=>{var ae={};for(var _e in ce)Ec.call(ce,_e)&&se.indexOf(_e)<0&&(ae[_e]=ce[_e]);if(ce!=null&&Ks)for(var _e of Ks(ce))se.indexOf(_e)<0&&Wc.call(ce,_e)&&(ae[_e]=ce[_e]);return ae},wc=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Vc=["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"],hd=(ce,se)=>{var ae=ce,{problemset:_e,globalSetting:pt,exercise:Ve,loading:Dt,dispatch:et,onRef:Be=()=>{},editData:Pe,editKey:Ht,setEditKey:vn=()=>{},cancelAdd:hn=()=>{},reload:xt=()=>{},addCallback:Gt=()=>{},setIsClaer:Bn=()=>{}}=ae,Dn=Ac(ae,["problemset","globalSetting","exercise","loading","dispatch","onRef","editData","editKey","setEditKey","cancelAdd","reload","addCallback","setIsClaer"]);const[Fn,Wt]=(0,a.useState)(),[Ut,Yt]=(0,a.useState)(""),[ta,nn]=(0,a.useState)(!1),[zn,mn]=(0,a.useState)(),[pa,Pt]=(0,a.useState)([]),[Nt,Rt]=(0,a.useState)([]),[Xt,cn]=(0,a.useState)(1),[tn,Ja]=(0,a.useState)(!1),[ha,dt]=(0,a.useState)(""),Fa=(0,a.useRef)(!1),ia=La=>{Rt([...Nt,Ys({},La)])},wu=(0,he.useParams)();(0,a.useEffect)(()=>{if(!Fa.current){if(!(Pe!=null&&Pe.question_choices)){nn(!0),Yt(""),mn(2),Wt("");return}Ja(!(Pe!=null&&Pe.repeat_answer)),Yt(Pe==null?void 0:Pe.question_title),mn(Pe==null?void 0:Pe.question_score),cn(Pe==null?void 0:Pe.difficulty),Wt(Pe.standard_answer[0]+""),Pt(Pe.tag_discipline_ids),dt(Pe==null?void 0:Pe.analysis)}},[Pe,ta]),(0,a.useEffect)(()=>{ta&&La();function La(){return wc(this,null,function*(){var Zn,bn;const ca=yield(0,ne.YY)({sub_discipline_id:(bn=(Zn=Ve.editData)==null?void 0:Zn.exercise)==null?void 0:bn.sub_discipline_id});Rt(ca.tag_disciplines)})}},[ta]),(0,a.useImperativeHandle)(se,()=>({onSave:Hn,isEdit:ta})),(0,a.useEffect)(()=>{var La;const Zn=(La=Ve==null?void 0:Ve.tagDisciplineData)!=null&&La.tag_disciplines&&Array.isArray(Ve.tagDisciplineData.tag_disciplines)?Ve.tagDisciplineData.tag_disciplines:[];Rt(Zn)},[Ve.tagDisciplineData]);const Sa=La=>{(La==null?void 0:La.status)===0&&(pe.ZP.success("\u4FDD\u5B58\u6210\u529F"),nn(!1),vn(-1),Fa.current=!1,xt())},Hn=()=>wc(void 0,null,function*(){var La,Zn,bn,ca;if(!Ut)return pe.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;if(!Fn)return pe.ZP.info("\u8BF7\u5148\u70B9\u51FB\u9009\u62E9\u672C\u9009\u62E9\u9898\u7684\u6B63\u786E\u9009\u9879"),!1;const Qn=[{choice_text:"\u6B63\u786E",is_answer:Fn==="1"?1:0},{choice_text:"\u9519\u8BEF",is_answer:Fn==="2"?2:0}];Fa.current=!0;let pn;return Pe.question_id?(Pe==null?void 0:Pe.is_my)===1?Fe.default.confirm({title:"\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",keyboard:!1,onOk:()=>wc(void 0,null,function*(){var Tn,En;pn=yield et({type:"exercise/editExerciseQuestion",payload:{id:Pe.question_id,question_title:Ut,question_type:2,question_score:zn,question_choices:Qn.map(da=>da.choice_text),standard_answers:Qn.filter(da=>da.is_answer).map(da=>da.is_answer),tag_discipline_ids:pa,sub_discipline_id:(En=(Tn=Ve.editData)==null?void 0:Tn.exercise)==null?void 0:En.sub_discipline_id,difficulty:Xt,is_cover:1,repeat_answer:!tn,analysis:ha}}),Sa(pn)}),onCancel:()=>wc(void 0,null,function*(){var Tn,En;pn=yield et({type:"exercise/editExerciseQuestion",payload:{id:Pe.question_id,question_title:Ut,question_type:2,question_score:zn,question_choices:Qn.map(da=>da.choice_text),standard_answers:Qn.filter(da=>da.is_answer).map(da=>da.is_answer),tag_discipline_ids:pa,sub_discipline_id:(En=(Tn=Ve.editData)==null?void 0:Tn.exercise)==null?void 0:En.sub_discipline_id,difficulty:Xt,repeat_answer:!tn,analysis:ha}}),Sa(pn)})}):(pn=yield et({type:"exercise/editExerciseQuestion",payload:{id:Pe.question_id,question_title:Ut,question_type:2,question_score:zn,question_choices:Qn.map(Tn=>Tn.choice_text),standard_answers:Qn.filter(Tn=>Tn.is_answer).map(Tn=>Tn.is_answer),tag_discipline_ids:pa,sub_discipline_id:(Zn=(La=Ve.editData)==null?void 0:La.exercise)==null?void 0:Zn.sub_discipline_id,difficulty:Xt,repeat_answer:!tn,analysis:ha}}),Sa(pn)):(pn=yield et({type:"exercise/addExerciseQuestion",payload:{insert_id:Pe==null?void 0:Pe.insert_id,categoryId:wu.categoryId,question_title:Ut,question_type:2,question_score:zn,question_choices:Qn.map(Tn=>Tn.choice_text),standard_answers:Qn.filter(Tn=>Tn.is_answer).map(Tn=>Tn.is_answer),tag_discipline_ids:pa,sub_discipline_id:(ca=(bn=Ve.editData)==null?void 0:bn.exercise)==null?void 0:ca.sub_discipline_id,difficulty:Xt,repeat_answer:!tn,analysis:ha}}),Sa(pn)),{name:Ut,choices:Qn}}),Oa=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5355\u9009\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(La=>{var Zn,bn;return((bn=(Zn=Ve==null?void 0:Ve.editData)==null?void 0:Zn.exercise)==null?void 0:bn.exercise_status)===1?La:La.id!=="del"&&La.id!=="add"}),tu=La=>wc(void 0,null,function*(){if(Ht!==-1){pe.ZP.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002");return}switch(La.id){case"del":let Zn;Fe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk(){return wc(this,null,function*(){yield(0,ne.Fl)({id:Pe.question_id}),et({type:"exercise/editExercise",payload:Ys({},wu)})})}});break;case"up":case"down":yield et({type:"exercise/exeriseMoveUpDown",payload:{id:Pe.question_id,opr:La.id}}),et({type:"exercise/editExercise",payload:Ys({},wu)});break;case"edit":vn(Pe.dragKey),nn(!0);break;case"add":Gt({key:Pe.key,insert_id:Pe==null?void 0:Pe.question_id,question_type:2});break}}),Ka=()=>{var La;return a.createElement("aside",null,a.createElement("div",{className:ba.questionType},!(Pe!=null&&Pe.isPreview)&&a.createElement("div",null,a.createElement("span",{className:"font16 c-blue"},Pe.key,"\u3001\u5224\u65AD\u9898"),"\uFF08",Pe.question_score,"\u5206\uFF09")),Pe!=null&&Pe.isPreview?a.createElement("div",{style:{display:"flex"}},a.createElement("span",{style:{flexShrink:0},className:"font18"},Pe.key,"."),a.createElement(uu.Z,{value:Pe.question_title}),a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",Pe.question_score,"\u5206\uFF09")):a.createElement("div",{className:"mt5"},a.createElement(uu.Z,{value:Pe.question_title})),a.createElement("div",{className:ba.questionChoices},(La=Pe==null?void 0:Pe.question_choices)==null?void 0:La.map(function(Zn,bn){return a.createElement(Ie.ZP,{key:bn,checked:Pe.standard_answer.includes(bn+1),disabled:!0},Vc[bn],". ",a.createElement("span",{className:"c-black font14"},Zn.choice_text))})),a.createElement("div",{className:ba.action},!Pe.hideAction&&Oa.map(function(Zn,bn){return Zn.id==="up"&&Pe.key===1||Zn.id==="down"&&Pe.key===Pe.len?null:a.createElement(Ae.Z,{key:bn,placement:"bottom",title:Zn.name},a.createElement("span",{onClick:()=>tu(Zn),className:Zn.icon}))})))},Ba=()=>{var La,Zn;return a.createElement("aside",null,a.createElement("div",null,a.createElement("span",{className:"font16 c-blue"},"\u5224\u65AD\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09"),a.createElement("p",{className:ba.titleWrap},a.createElement("span",{className:ba.required},"*"),a.createElement("span",{className:ba.title},"\u9898\u5E72\uFF1A")),a.createElement(Fi.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Ut,onChange:bn=>Yt(bn)}),a.createElement("p",{className:ba.titleWrap},a.createElement("span",{className:ba.required},"*"),a.createElement("span",{className:ba.title},"\u7B54\u6848\u9009\u9879\uFF1A",a.createElement("span",{className:ba.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),a.createElement(Ie.ZP.Group,{buttonStyle:"solid",value:Fn,onChange:bn=>Wt(bn.target.value)},a.createElement(Ie.ZP.Button,{value:"1",className:`${ba.radio} mr40`},"\u6B63\u786E"),a.createElement(Ie.ZP.Button,{value:"2",className:ba.radio},"\u9519\u8BEF")),a.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\uFF0C\u53EF\u4EE5\u76F4\u63A5\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848"),a.createElement("p",{className:ba.titleWrap},a.createElement("span",{className:ba.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),a.createElement(Fi.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:ha,onChange:bn=>dt(bn)}),a.createElement("p",{className:""},"\u5206\u503C\uFF1A",a.createElement(Re.Z,{value:zn,max:1e4,min:0,onChange:bn=>{mn(bn)}})," \u5206",a.createElement("span",{style:{marginLeft:"30px"},className:ba.difficult},a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",a.createElement(Ie.ZP.Group,{value:Xt,onChange:bn=>{cn(bn.target.value)}},a.createElement(Ie.ZP.Button,{value:1},"\u7B80\u5355"),a.createElement(Ie.ZP.Button,{value:2},"\u9002\u4E2D"),a.createElement(Ie.ZP.Button,{value:3},"\u56F0\u96BE")))),a.createElement("p",{className:ba.titleWrap},a.createElement("span",{className:`${ba.title}`},"\u77E5\u8BC6\u70B9\uFF1A",a.createElement("span",{className:ba.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),a.createElement("div",{className:"mt5"},a.createElement(Jn.N,{value:pa,selectvalues:Pe==null?void 0:Pe.tag_discipline_ids,onChange:Pt,subId:(Zn=(La=Ve.editData)==null?void 0:La.exercise)==null?void 0:Zn.sub_discipline_id,knowledgeOptions:Nt,onAddKnowledgeFinish:ia})),a.createElement("div",{style:{marginTop:10}},a.createElement("span",{style:{marginRight:10}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898"),a.createElement(Ne.Z,{checked:tn,onChange:bn=>{Ja(bn)}}))),a.createElement("aside",{className:"tr"},(Ht!==-1||Pe.question_id)&&a.createElement(me.ZP,{type:"default",onClick:()=>{hn(),nn(!1)}},"\u53D6\u6D88"),a.createElement(me.ZP,{className:"ml20",type:"primary",onClick:()=>{Hn()}},"\u4FDD\u5B58")))};return a.createElement("section",{className:ba.wrap},!ta&&Ka(),ta&&Ba())};var Ms=(0,he.connect)(({problemset:ce,loading:se,exercise:ae,globalSetting:_e})=>({problemset:ce,globalSetting:_e,exercise:ae,loading:se.effects}),null,null,{forwardRef:!0})((0,a.forwardRef)(hd)),uc=Object.defineProperty,Ds=Object.getOwnPropertySymbols,cd=Object.prototype.hasOwnProperty,Gc=Object.prototype.propertyIsEnumerable,wt=(ce,se,ae)=>se in ce?uc(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,_t=(ce,se)=>{for(var ae in se||(se={}))cd.call(se,ae)&&wt(ce,ae,se[ae]);if(Ds)for(var ae of Ds(se))Gc.call(se,ae)&&wt(ce,ae,se[ae]);return ce},gn=(ce,se)=>{var ae={};for(var _e in ce)cd.call(ce,_e)&&se.indexOf(_e)<0&&(ae[_e]=ce[_e]);if(ce!=null&&Ds)for(var _e of Ds(ce))se.indexOf(_e)<0&&Gc.call(ce,_e)&&(ae[_e]=ce[_e]);return ae},Yn=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Ur=["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"],Or=(0,a.forwardRef)((ce,se)=>{var ae=ce,{problemset:_e,globalSetting:pt,exercise:Ve,loading:Dt,dispatch:et,onRef:Be=()=>{},editData:Pe,cancelAdd:Ht=()=>{},editKey:vn,setEditKey:hn=()=>{},setIsClaer:xt=()=>{},addCallback:Gt=Qn=>{},reload:Bn=()=>{}}=ae,Dn=gn(ae,["problemset","globalSetting","exercise","loading","dispatch","onRef","editData","cancelAdd","editKey","setEditKey","setIsClaer","addCallback","reload"]);const[Fn,Wt]=(0,a.useState)([]),[Ut,Yt]=(0,a.useState)(),[ta,nn]=(0,a.useState)([]),[zn,mn]=(0,a.useState)(""),[pa,Pt]=(0,a.useState)(),[Nt,Rt]=(0,a.useState)(!1),[Xt,cn]=(0,a.useState)([]),[tn,Ja]=(0,a.useState)(1),[ha,dt]=(0,a.useState)(!1),[Fa,ia]=(0,a.useState)(""),[wu,Sa]=(0,a.useState)([]),Hn=(0,a.useRef)(!1),Oa=Qn=>{Sa([...wu,_t({},Qn)])},tu=(0,he.useParams)();(0,a.useEffect)(()=>{Wt(["","","",""])},[]),(0,a.useEffect)(()=>{if(Hn.current)return;if(!(Pe!=null&&Pe.question_choices)){Rt(!0),mn(""),Pt(5),Wt(["","","",""]),nn([]);return}mn(Pe==null?void 0:Pe.question_title),Pt(Pe==null?void 0:Pe.question_score),dt(!(Pe!=null&&Pe.repeat_answer)),Ja(Pe==null?void 0:Pe.difficulty),Wt(Pe==null?void 0:Pe.question_choices.map(pn=>pn.choice_text));const Qn=[];Pe==null||Pe.standard_answer.map((pn,Tn)=>{Qn.push(pn-1)}),nn(Qn),cn(Pe.tag_discipline_ids),ia(Pe==null?void 0:Pe.analysis)},[Pe,Nt]),(0,a.useEffect)(()=>{Nt&&Qn();function Qn(){return Yn(this,null,function*(){var pn,Tn;const En=yield(0,ne.YY)({sub_discipline_id:(Tn=(pn=Ve.editData)==null?void 0:pn.exercise)==null?void 0:Tn.sub_discipline_id});Sa(En.tag_disciplines)})}},[Nt]),(0,a.useImperativeHandle)(se,()=>({onSave:Ba,isEdit:Nt})),(0,a.useEffect)(()=>{var Qn;const pn=(Qn=Ve==null?void 0:Ve.tagDisciplineData)!=null&&Qn.tag_disciplines&&Array.isArray(Ve.tagDisciplineData.tag_disciplines)?Ve.tagDisciplineData.tag_disciplines:[];Sa(pn)},[Ve.tagDisciplineData]);const Ka=Qn=>{(Qn==null?void 0:Qn.status)===0&&(pe.ZP.success("\u4FDD\u5B58\u6210\u529F"),Rt(!1),hn(-1),Hn.current=!1,Bn())},Ba=()=>Yn(void 0,null,function*(){var Qn,pn,Tn,En;if(!zn)return pe.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),!1;const da=Fn.findIndex(Ya=>!Ya);if(da>-1)return pe.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${Ur[da]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!ta.length)return pe.ZP.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;if(ta.length<1)return pe.ZP.info("\u8BF7\u9009\u62E9\u7B54\u6848"),!1;const Ha=Fn.map((Ya,Cr)=>({choice_text:Ya,is_answer:ta.includes(Cr)?Cr+1:0}));Hn.current=!0;let au;Pe.question_id?(Pe==null?void 0:Pe.is_my)===1?Fe.default.confirm({title:"\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",keyboard:!1,onOk:()=>Yn(void 0,null,function*(){var Ya,Cr;au=yield et({type:"exercise/editExerciseQuestion",payload:{id:Pe.question_id,question_title:zn,question_type:1,question_score:pa,question_choices:Ha.map(Zu=>Zu.choice_text),standard_answers:Ha.filter(Zu=>Zu.is_answer).map(Zu=>Zu.is_answer),tag_discipline_ids:Xt,sub_discipline_id:(Cr=(Ya=Ve.editData)==null?void 0:Ya.exercise)==null?void 0:Cr.sub_discipline_id,difficulty:tn,is_cover:1,repeat_answer:!ha,analysis:Fa}}),Ka(au)}),onCancel:()=>Yn(void 0,null,function*(){var Ya,Cr;au=yield et({type:"exercise/editExerciseQuestion",payload:{id:Pe.question_id,question_title:zn,question_type:1,question_score:pa,question_choices:Ha.map(Zu=>Zu.choice_text),standard_answers:Ha.filter(Zu=>Zu.is_answer).map(Zu=>Zu.is_answer),tag_discipline_ids:Xt,sub_discipline_id:(Cr=(Ya=Ve.editData)==null?void 0:Ya.exercise)==null?void 0:Cr.sub_discipline_id,difficulty:tn,repeat_answer:!ha,analysis:Fa}}),Ka(au)})}):(au=yield et({type:"exercise/editExerciseQuestion",payload:{id:Pe.question_id,question_title:zn,question_type:1,question_score:pa,question_choices:Ha.map(Ya=>Ya.choice_text),standard_answers:Ha.filter(Ya=>Ya.is_answer).map(Ya=>Ya.is_answer),tag_discipline_ids:Xt,sub_discipline_id:(pn=(Qn=Ve.editData)==null?void 0:Qn.exercise)==null?void 0:pn.sub_discipline_id,difficulty:tn,repeat_answer:!ha,analysis:Fa}}),Ka(au)):(au=yield et({type:"exercise/addExerciseQuestion",payload:{insert_id:Pe==null?void 0:Pe.insert_id,categoryId:tu.categoryId,question_title:zn,question_type:1,question_score:pa,question_choices:Ha.map(Ya=>Ya.choice_text),standard_answers:Ha.filter(Ya=>Ya.is_answer).map(Ya=>Ya.is_answer),tag_discipline_ids:Xt,sub_discipline_id:(En=(Tn=Ve.editData)==null?void 0:Tn.exercise)==null?void 0:En.sub_discipline_id,difficulty:tn,repeat_answer:!ha,analysis:Fa}}),Ka(au))}),La=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5355\u9009\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(Qn=>{var pn,Tn;return((Tn=(pn=Ve==null?void 0:Ve.editData)==null?void 0:pn.exercise)==null?void 0:Tn.exercise_status)===1?Qn:Qn.id!=="del"&&Qn.id!=="add"}),Zn=Qn=>Yn(void 0,null,function*(){if(vn!==-1){pe.ZP.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002");return}switch(Qn.id){case"del":let pn;Fe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk(){return Yn(this,null,function*(){yield(0,ne.Fl)({id:Pe.question_id}),et({type:"exercise/editExercise",payload:_t({},tu)})})}});break;case"up":case"down":yield et({type:"exercise/exeriseMoveUpDown",payload:{id:Pe.question_id,opr:Qn.id}}),et({type:"exercise/editExercise",payload:_t({},tu)});break;case"edit":hn(Pe.dragKey),Rt(!0);break;case"add":Gt({key:Pe.key,insert_id:Pe==null?void 0:Pe.question_id,question_type:1});break}}),bn=()=>{var Qn;return a.createElement("aside",null,a.createElement("div",{className:ba.questionType},!(Pe!=null&&Pe.isPreview)&&a.createElement("div",null,a.createElement("span",{className:"font16 c-blue"},Pe.key,"\u3001\u591A\u9009\u9898"),"\uFF08",Pe.question_score,"\u5206\uFF09")),Pe!=null&&Pe.isPreview?a.createElement("div",{style:{display:"flex"}},a.createElement("span",{style:{flexShrink:0},className:"font18"},Pe.key,"."),a.createElement(uu.Z,{value:Pe.question_title}),a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",Pe.question_score,"\u5206\uFF09")):a.createElement("div",{className:"mt5"},a.createElement(uu.Z,{value:Pe.question_title})),a.createElement("div",{className:ba.questionChoices},(Qn=Pe==null?void 0:Pe.question_choices)==null?void 0:Qn.map(function(pn,Tn){return a.createElement(oe.Z,{key:Tn},a.createElement(ve.Z,null,a.createElement(Se.default,{key:Tn,checked:Pe.standard_answer.includes(Tn+1),disabled:!0},Ur[Tn],".")),a.createElement(ve.Z,{flex:"1"},a.createElement("span",{className:"c-black font14"},a.createElement(uu.Z,{value:pn.choice_text}))))})),a.createElement("div",{className:ba.action},!Pe.hideAction&&La.map(function(pn,Tn){return pn.id==="up"&&Pe.key===1||pn.id==="down"&&Pe.key===Pe.len?null:a.createElement(Ae.Z,{key:Tn,placement:"bottom",title:pn.name},a.createElement("span",{onClick:()=>Zn(pn),className:pn.icon}))})))},ca=()=>{var Qn,pn;return a.createElement("aside",null,a.createElement("div",{className:ba.questionType},a.createElement("div",null,a.createElement("span",{className:"font16 c-blue"},"\u9009\u62E9\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09")),a.createElement("p",{className:ba.titleWrap},a.createElement("span",{className:ba.required},"*"),a.createElement("span",{className:ba.title},"\u9898\u5E72\uFF1A")),a.createElement(Fi.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:zn,onChange:Tn=>mn(Tn)}),a.createElement("p",{className:ba.titleWrap},a.createElement("span",{className:ba.required},"*"),a.createElement("span",{className:ba.title},"\u7B54\u6848\u9009\u9879\uFF1A",a.createElement("span",{className:ba.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),Fn.map((Tn,En)=>{var da,Ha;return a.createElement("div",{className:ba.choiceWrap,key:En},a.createElement(Ae.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},a.createElement("div",{className:`${ba.answer} ${ta.includes(En)?ba.activeAnswer:""}`,onClick:()=>{ta.includes(En)?nn(ta.filter(au=>au!==En)):nn([...ta,En])}},Ur[En])),a.createElement("div",{className:ba.editorWrap},Ut===En?a.createElement(Fi.Z,{id:`single-question-option-${En}`,watch:!0,isFocus:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:Tn,onChange:au=>{Fn[En]=au,Wt(Fn)}}):a.createElement("div",{className:ba.htmlWrap,onClick:()=>Yt(En)},a.createElement(uu.Z,{value:Tn}))),((Ha=(da=Ve.editData)==null?void 0:da.exercise)==null?void 0:Ha.exercise_status)===1&&a.createElement(a.Fragment,null,En>1&&a.createElement(Ae.Z,{title:"\u5220\u9664"},a.createElement("i",{className:`${ba.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>Wt(Fn.filter((au,Ya)=>Ya!==En))})),En<7&&En===Fn.length-1&&a.createElement(Ae.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},a.createElement("i",{className:`${ba.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>Wt([...Fn,""])}))))}),a.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\u8F93\u5165\u6846\u53EF\u8BBE\u7F6E\u7B54\u6848\uFF1B\u9009\u4E2D\u7684\u9009\u9879\u5373\u4E3A\u6B63\u786E\u7B54\u6848\uFF0C\u9009\u62E9\u591A\u4E2A\u7B54\u6848\u5373\u4E3A\u591A\u9009\u9898"),a.createElement("p",{className:ba.titleWrap},a.createElement("span",{className:ba.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),a.createElement(Fi.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Fa,onChange:Tn=>ia(Tn)}),a.createElement("p",{className:""},"\u5206\u503C\uFF1A",a.createElement(Re.Z,{value:pa,max:1e4,min:0,onChange:Tn=>{Pt(Tn)}})," ","\u5206",a.createElement("span",{style:{marginLeft:"30px"},className:ba.difficult},a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",a.createElement(Ie.ZP.Group,{value:tn,onChange:Tn=>{Ja(Tn.target.value)}},a.createElement(Ie.ZP.Button,{value:1},"\u7B80\u5355"),a.createElement(Ie.ZP.Button,{value:2},"\u9002\u4E2D"),a.createElement(Ie.ZP.Button,{value:3},"\u56F0\u96BE")))),a.createElement("p",{className:ba.titleWrap},a.createElement("span",{className:`${ba.title}`},"\u77E5\u8BC6\u70B9\uFF1A",a.createElement("span",{className:ba.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),a.createElement("div",{className:"mt5"},a.createElement(Jn.N,{value:Xt,selectvalues:Pe==null?void 0:Pe.tag_discipline_ids,onChange:cn,subId:(pn=(Qn=Ve.editData)==null?void 0:Qn.exercise)==null?void 0:pn.sub_discipline_id,knowledgeOptions:wu,onAddKnowledgeFinish:Oa})),a.createElement("div",{style:{marginTop:10}},a.createElement("span",{style:{marginRight:10}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898"),a.createElement(Ne.Z,{checked:ha,onChange:Tn=>{dt(Tn)}}))),a.createElement("aside",{className:"tr"},(vn!==-1||Pe.question_id)&&a.createElement(me.ZP,{type:"default",onClick:()=>{Ht(),Rt(!1)}},"\u53D6\u6D88"),a.createElement(me.ZP,{className:"ml20",type:"primary",onClick:()=>{Ba()}},"\u4FDD\u5B58")))};return a.createElement("section",{className:ba.wrap},!Nt&&bn(),Nt&&ca())});var ql=(0,he.connect)(({problemset:ce,loading:se,exercise:ae,globalSetting:_e})=>({problemset:ce,globalSetting:_e,exercise:ae,loading:se.effects}),null,null,{forwardRef:!0})(Or),zr=z(55241),su=z(67294),yu=Object.defineProperty,xu=Object.getOwnPropertySymbols,Al=Object.prototype.hasOwnProperty,Yl=Object.prototype.propertyIsEnumerable,Ol=(ce,se,ae)=>se in ce?yu(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,Mu=(ce,se)=>{for(var ae in se||(se={}))Al.call(se,ae)&&Ol(ce,ae,se[ae]);if(xu)for(var ae of xu(se))Yl.call(se,ae)&&Ol(ce,ae,se[ae]);return ce},Lr=(ce,se)=>{var ae={};for(var _e in ce)Al.call(ce,_e)&&se.indexOf(_e)<0&&(ae[_e]=ce[_e]);if(ce!=null&&xu)for(var _e of xu(ce))se.indexOf(_e)<0&&Yl.call(ce,_e)&&(ae[_e]=ce[_e]);return ae},Tr=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Ml=null,hl=(ce,se)=>{var ae=ce,{problemset:_e,globalSetting:pt,exercise:Ve,loading:Dt,dispatch:et,editData:Be,cancelAdd:Pe=()=>{},editKey:Ht,setEditKey:vn=()=>{},addCallback:hn=()=>{},reload:xt=()=>{},setIsClaer:Gt=()=>{}}=ae,Bn=Lr(ae,["problemset","globalSetting","exercise","loading","dispatch","editData","cancelAdd","editKey","setEditKey","addCallback","reload","setIsClaer"]);const[Dn,Fn]=(0,a.useState)(""),[Wt,Ut]=(0,a.useState)(""),[Yt,ta]=(0,a.useState)(""),[nn,zn]=(0,a.useState)([]),[mn,pa]=(0,a.useState)(""),[Pt,Nt]=(0,a.useState)(),[Rt,Xt]=(0,a.useState)(!1),[cn,tn]=(0,a.useState)([]),[Ja,ha]=(0,a.useState)(!1),[dt,Fa]=(0,a.useState)(!1),ia=(0,he.useParams)(),wu=(0,a.useRef)(!1),[Sa,Hn]=(0,a.useState)([]),[Oa,tu]=(0,a.useState)(!1);(0,a.useEffect)(()=>{var Tn;if(wu.current)return;Be.edit&&(ha(!0),Ut(""),Fn(""),tn([])),Fn(Be.shixun_name),Ut(Be.question_title);const En=[];(Tn=Be.shixun)==null||Tn.map(da=>{En.push(da.challenge_score),Sa.push({challenge_id:da.challenge_id,open:!0})}),Hn(Sa),tn(En),tu(!(Be!=null&&Be.ignore_prompt))},[Be]),(0,a.useEffect)(()=>{Xt(!1)},[Ja]),(0,a.useImperativeHandle)(se,()=>({onSave:Ba,isEdit:Ja}));const Ka=Tn=>{(Tn==null?void 0:Tn.status)===0&&(pe.ZP.success("\u4FDD\u5B58\u6210\u529F"),ha(!1),vn(-1),wu.current=!1,xt())},Ba=()=>Tr(void 0,null,function*(){let Tn=[];if(!1)return!1;wu.current=!0,Fa(!0);let da;return Be.question_id?da=yield et({type:"exercise/editExerciseQuestion",payload:{id:Be.question_id,question_title:Wt,shixun_name:Dn,shixun_id:Be.shixun_id,question_type:5,question_scores:cn}}):da=yield et({type:"exercise/addExerciseQuestion",payload:{insert_id:Be==null?void 0:Be.insert_id,categoryId:ia.categoryId,question_title:Wt,shixun_name:Dn,shixun_id:Be.shixun_id,question_type:5,question_scores:cn,is_copy:Be.is_copy}}),Ka(da),Fa(!1),{name:Wt,analysis:Yt,standard_answers:Tn,is_ordered:Pt}}),La=()=>{var Tn;return su.createElement("aside",null,su.createElement("div",{className:ba.questionType},su.createElement("div",null,su.createElement("span",{className:"font16 c-blue"},"\u5B9E\u8BAD\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u5141\u8BB8\u624B\u52A8\u8C03\u5206\uFF09")),su.createElement("div",{className:"mt10"},su.createElement(Le.default,{defaultValue:Dn,onChange:En=>{Fn(En.target.value)}})),su.createElement("div",{className:"mt10"},su.createElement(Fi.Z,{id:"single-question-option-0",height:155,placeholder:"\u8BF7\u8F93\u5165\u5B9E\u8BAD\u9898\u5B8C\u6210\u8981\u6C42",defaultValue:Wt,onChange:En=>{Ut(En)}})),su.createElement("div",{className:"mt20"},(Tn=Be.shixun)==null?void 0:Tn.map((En,da)=>su.createElement(oe.Z,{gutter:[20,20]},su.createElement(ve.Z,{flex:"1"},da+1,".",En.challenge_name),su.createElement(ve.Z,null,su.createElement(Re.Z,{defaultValue:cn[da],onChange:Ha=>{cn[da]=Ha,tn(cn),console.log("srore:L",cn[da])}})," \u5206")))),su.createElement("div",{className:"mt20"},nn.length>1&&su.createElement("span",null,su.createElement(Se.default,{checked:Pt,onChange:En=>Nt(En.target.checked),className:`${ba.color333} font14`},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),su.createElement("span",{className:`${ba.color999} font12`},"\uFF08\u9009\u4E2D\uFF0C\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u987A\u5E8F\u5FC5\u987B\u4E0E\u53C2\u8003\u7B54\u6848\u4E00\u81F4\uFF09"))),su.createElement("aside",{className:"tr"},(Ht!==-1||!(Be!=null&&Be.edit))&&su.createElement(me.ZP,{type:"default",onClick:()=>{Pe(),ha(!1)}},"\u53D6\u6D88"),su.createElement(me.ZP,{loading:dt,className:"ml20",type:"primary",onClick:()=>{Ba()}},"\u4FDD\u5B58")))},Zn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5B9E\u8BAD\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(Tn=>{var En,da;return((da=(En=Ve==null?void 0:Ve.editData)==null?void 0:En.exercise)==null?void 0:da.exercise_status)===1?Tn:Tn.id!=="del"&&Tn.id!=="add"}),bn=Tn=>Tr(void 0,null,function*(){if(Ht!==-1){pe.ZP.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002");return}switch(Tn.id){case"del":let En;Fe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk(){return Tr(this,null,function*(){yield(0,ne.Fl)({id:Be.question_id}),et({type:"exercise/editExercise",payload:Mu({},ia)})})}});break;case"up":case"down":yield et({type:"exercise/exeriseMoveUpDown",payload:{id:Be.question_id,opr:Tn.id}}),et({type:"exercise/editExercise",payload:Mu({},ia)});break;case"edit":vn(Be.dragKey),ha(!0);break;case"add":et({type:"classroomList/setActionTabs",payload:{key:"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",editData:{key:Be.key,insert_id:Be==null?void 0:Be.question_id,question_type:5}}});break}}),ca=()=>Tr(void 0,null,function*(){const Tn=yield(0,Ce.ZP)(`/api/courses/${ia==null?void 0:ia.coursesId}/sync_shixuns.json`,{method:"post",body:{exercise_ids:[ia==null?void 0:ia.categoryId],exercise_question_id:Be.question_id}});(Tn==null?void 0:Tn.status)===0&&(et({type:"classroomList/setActionTabs",payload:{}}),pe.ZP.info("\u5B9E\u8BAD\u540C\u6B65\u4E2D\uFF0C\u8BF7\u7A0D\u540E"))}),Qn=()=>Tr(void 0,null,function*(){let Tn=yield(0,Ce.ZP)(`/api/courses/${ia==null?void 0:ia.coursesId}/ignore_prompt.json`,{method:"post",body:{container_type:"Exercise",container_id:ia==null?void 0:ia.categoryId,exercise_question_id:Be==null?void 0:Be.question_id}});(Tn==null?void 0:Tn.status)===0&&tu(!1)}),pn=()=>{var Tn,En;return su.createElement("aside",null,su.createElement("div",{className:ba.questionType},!(Be!=null&&Be.isPreview)&&su.createElement("div",null,su.createElement("span",{className:"font16 c-blue"},Be.key,"\u3001\u5B9E\u8BAD\u9898"),"\uFF08",Be.question_score,"\u5206\uFF09")),Be!=null&&Be.isPreview?su.createElement("div",{style:{display:"flex",alignItems:"center"}},su.createElement("span",{style:{flexShrink:0},className:"font18"},Be.key,"."),su.createElement(uu.Z,{value:Be.question_title}),su.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",Be.question_score,"\u5206\uFF09"),!!((Tn=Be.schools)!=null&&Tn.length)&&su.createElement(Ae.Z,{title:"\u8BE5\u5B9E\u8BAD\u9898\u9762\u5411\u6307\u5B9A\u5355\u4F4D\u5F00\u653E"},su.createElement("i",{className:"iconfont icon-zhidinggongkai1 font18 line24 c-orange"})),(0,On.G5)()&&(Be==null?void 0:Be.shixun_change)&&su.createElement(zr.Z,{trigger:"click",open:Oa,onOpenChange:da=>tu(!0),placement:"bottomLeft",autoAdjustOverflow:!1,title:null,content:su.createElement("div",{style:{width:"310px",color:"#000"}},su.createElement("div",null,"\u5B9E\u8BAD\u7BA1\u7406\u5458\u5BF9\u8BD5\u5377\u4E2D\u4F7F\u7528\u7684\u5B9E\u8DF5\u9879\u76EE\u8FDB\u884C\u4E86\u4FEE\u6539\uFF0C\u8BF7\u68C0\u67E5\u540E\uFF0C\u786E\u8BA4\u662F\u5426\u9700\u8981\u540C\u6B65\u5230\u8BD5\u5377\u4E2D"),su.createElement("div",{className:ba.btn_warp},su.createElement(me.ZP,{size:"small",onClick:Qn},"\u5FFD\u7565"),su.createElement(me.ZP,{className:"ml20",size:"small",type:"primary",onClick:()=>{tu(!1),et({type:"classroomList/setActionTabs",payload:{key:"\u5B9E\u8BAD\u540C\u6B65\u786E\u8BA4",onOK:()=>ca()}})}},"\u786E\u8BA4\u540C\u6B65"),su.createElement(me.ZP,{className:"ml20",size:"small",type:"primary",onClick:()=>(0,de.xg)(`/shixuns/${Be==null?void 0:Be.forked_shixun_identifier}/challenges?exercise=true`)},"\u524D\u5F80\u67E5\u770B")))},su.createElement("i",{className:"iconfont icon-tongzhi1 pl10 current",style:{fontSize:"16px",color:"#F7B500"},onClick:da=>da.stopPropagation()}))):su.createElement("div",{className:"mt5"},su.createElement(uu.Z,{value:Be.question_title})),su.createElement("div",{className:"mt30"}),(En=Be.shixun)==null?void 0:En.map(function(da,Ha){var au,Ya,Cr,Zu,sa,Ru,mr,gl,Tl,mu;return su.createElement("div",null,su.createElement("div",{key:Ha,style:{background:"#F0F7FD",color:"#3061D0",fontSize:18,padding:10,display:"flex",justifyContent:"space-between",marginBottom:(!((au=Sa[Ha])!=null&&au.open)||!((Cr=(Ya=Ve==null?void 0:Ve.editData)==null?void 0:Ya.exercise)!=null&&Cr.show_challenge_task_pass))&&10}},su.createElement("div",null,su.createElement("i",{className:"iconfont icon-renwuguanka1",style:{marginRight:5}}),"\u7B2C",Ha+1,"\u5173 ",su.createElement("span",{className:"ml10"},da.challenge_name)," ",su.createElement("span",{className:"ml10"},da.challenge_score," \u5206")),((sa=(Zu=Ve==null?void 0:Ve.editData)==null?void 0:Zu.exercise)==null?void 0:sa.show_challenge_task_pass)&&su.createElement("div",{style:{cursor:"pointer",color:"#666666",fontSize:14},onClick:()=>{var $u;Sa[Ha].open=!(($u=Sa[Ha])!=null&&$u.open),Hn([...Sa])}},(Ru=Sa[Ha])!=null&&Ru.open?"\u6536\u8D77":"\u5C55\u5F00",(mr=Sa[Ha])!=null&&mr.open?su.createElement(ps.Z,{style:{marginLeft:8}}):su.createElement(fs.Z,{style:{marginLeft:8}}))),((Tl=(gl=Ve==null?void 0:Ve.editData)==null?void 0:gl.exercise)==null?void 0:Tl.show_challenge_task_pass)&&su.createElement(uu.Z,{style:{border:"1px solid #F1F4F9",borderTop:"none",padding:10,display:!((mu=Sa[Ha])!=null&&mu.open)&&"none"},value:(da==null?void 0:da.task_pass)||"\u6682\u65E0\u5173\u5361\u63CF\u8FF0"}))}),su.createElement("div",{className:ba.action},su.createElement(he.Link,{target:"_blank",to:`/shixuns/${(0,On.G5)()?Be.forked_shixun_identifier:Be==null?void 0:Be.shixun_identifier}/challenges?exercise=true`},"\u5B9E\u8BAD\u8BE6\u60C5"),!Be.hideAction&&Zn.map(function(da,Ha){return da.id==="up"&&Be.key===1||da.id==="down"&&Be.key===Be.len?null:su.createElement(Ae.Z,{key:Ha,placement:"bottom",title:da.name},su.createElement("span",{onClick:()=>bn(da),className:da.icon}))})))};return su.createElement("section",{className:ba.wrap},!Ja&&pn(),Ja&&La())};var co=(0,he.connect)(({problemset:ce,loading:se,globalSetting:ae,exercise:_e})=>({problemset:ce,globalSetting:ae,exercise:_e,loading:se.effects}),null,null,{forwardRef:!0})((0,a.forwardRef)(hl)),Tu=z(52810),hr=Object.defineProperty,Yr=Object.getOwnPropertySymbols,ar=Object.prototype.hasOwnProperty,Mr=Object.prototype.propertyIsEnumerable,zo=(ce,se,ae)=>se in ce?hr(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,Jo=(ce,se)=>{for(var ae in se||(se={}))ar.call(se,ae)&&zo(ce,ae,se[ae]);if(Yr)for(var ae of Yr(se))Mr.call(se,ae)&&zo(ce,ae,se[ae]);return ce},wi=(ce,se)=>{var ae={};for(var _e in ce)ar.call(ce,_e)&&se.indexOf(_e)<0&&(ae[_e]=ce[_e]);if(ce!=null&&Yr)for(var _e of Yr(ce))se.indexOf(_e)<0&&Mr.call(ce,_e)&&(ae[_e]=ce[_e]);return ae},ys=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Ul=(ce,se)=>{var ae=ce,{problemset:_e,exercise:pt,globalSetting:Ve,loading:Dt,dispatch:et,onRef:Be=()=>{},editData:Pe,cancelAdd:Ht=()=>{},editKey:vn,setEditKey:hn=()=>{},setIsClaer:xt=()=>{},reload:Gt=()=>{},addCallback:Bn=pn=>{}}=ae,Dn=wi(ae,["problemset","exercise","globalSetting","loading","dispatch","onRef","editData","cancelAdd","editKey","setEditKey","setIsClaer","reload","addCallback"]);const[Fn,Wt]=(0,a.useState)([]),[Ut,Yt]=(0,a.useState)(),[ta,nn]=(0,a.useState)([]),[zn,mn]=(0,a.useState)(""),[pa,Pt]=(0,a.useState)(),[Nt,Rt]=(0,a.useState)([]),[Xt,cn]=(0,a.useState)(!1),[tn,Ja]=(0,a.useState)(1),[ha,dt]=(0,a.useState)(!1),[Fa,ia]=(0,a.useState)(""),wu=(0,he.useParams)(),Sa=(0,a.useRef)(null),Hn=(0,a.useRef)(!1),[Oa,tu]=(0,a.useState)([]),Ka=pn=>{tu([...Oa,Jo({},pn)])};(0,a.useEffect)(()=>{Wt(["","","",""])},[]),(0,a.useEffect)(()=>{if(Hn.current)return;if(!(Pe!=null&&Pe.question_choices)){cn(!0),mn(""),Pt(5),Wt(["","","",""]),nn([]);return}mn(Pe==null?void 0:Pe.question_title),Pt(Pe==null?void 0:Pe.question_score),dt(!(Pe!=null&&Pe.repeat_answer)),ia(Pe==null?void 0:Pe.analysis),Ja(Pe==null?void 0:Pe.difficulty),Wt(Pe==null?void 0:Pe.question_choices.map(Tn=>Tn.choice_text));const pn=[];Pe==null||Pe.standard_answer.map((Tn,En)=>{pn.push(Tn-1)}),Rt(Pe.tag_discipline_ids),nn(pn)},[Pe,Xt]),(0,a.useEffect)(()=>{Xt&&pn();function pn(){return ys(this,null,function*(){var Tn,En;const da=yield(0,ne.YY)({sub_discipline_id:(En=(Tn=pt.editData)==null?void 0:Tn.exercise)==null?void 0:En.sub_discipline_id});tu(da.tag_disciplines)})}},[Xt]),(0,a.useEffect)(()=>{var pn;const Tn=(pn=pt==null?void 0:pt.tagDisciplineData)!=null&&pn.tag_disciplines&&Array.isArray(pt.tagDisciplineData.tag_disciplines)?pt.tagDisciplineData.tag_disciplines:[];tu(Tn)},[pt.tagDisciplineData]),(0,a.useImperativeHandle)(se,()=>({onSave:La,isEdit:Xt}));const Ba=pn=>{(pn==null?void 0:pn.status)===0&&(pe.ZP.success("\u4FDD\u5B58\u6210\u529F"),cn(!1),hn(-1),Hn.current=!1,Gt())},La=()=>ys(void 0,null,function*(){var pn,Tn,En,da;if(!zn)return pe.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),!1;const Ha=Fn.findIndex(Cr=>!Cr);if(Ha>-1)return pe.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${Tu.k4[Ha]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!ta.length)return pe.ZP.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;if(ta.length<1)return pe.ZP.info("\u8BF7\u9009\u62E9\u7B54\u6848"),!1;const au=Fn.map((Cr,Zu)=>({choice_text:Cr,is_answer:ta.includes(Zu)?Zu+1:0}));Hn.current=!0;let Ya;Pe.question_id?(Pe==null?void 0:Pe.is_my)===1?Fe.default.confirm({title:"\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",keyboard:!1,onOk:()=>ys(void 0,null,function*(){var Cr,Zu;Ya=yield et({type:"exercise/editExerciseQuestion",payload:{id:Pe.question_id,question_title:zn,question_type:1,question_score:pa,question_choices:au.map(sa=>sa.choice_text),standard_answers:au.filter(sa=>sa.is_answer).map(sa=>sa.is_answer),tag_discipline_ids:Nt,sub_discipline_id:(Zu=(Cr=pt.editData)==null?void 0:Cr.exercise)==null?void 0:Zu.sub_discipline_id,difficulty:tn,is_cover:1,repeat_answer:!ha,analysis:Fa}}),Ba(Ya)}),onCancel:()=>ys(void 0,null,function*(){var Cr,Zu;Ya=yield et({type:"exercise/editExerciseQuestion",payload:{id:Pe.question_id,question_title:zn,question_type:1,question_score:pa,question_choices:au.map(sa=>sa.choice_text),standard_answers:au.filter(sa=>sa.is_answer).map(sa=>sa.is_answer),tag_discipline_ids:Nt,sub_discipline_id:(Zu=(Cr=pt.editData)==null?void 0:Cr.exercise)==null?void 0:Zu.sub_discipline_id,difficulty:tn,repeat_answer:!ha,analysis:Fa}}),Ba(Ya)})}):(Ya=yield et({type:"exercise/editExerciseQuestion",payload:{id:Pe.question_id,question_title:zn,question_type:1,question_score:pa,question_choices:au.map(Cr=>Cr.choice_text),standard_answers:au.filter(Cr=>Cr.is_answer).map(Cr=>Cr.is_answer),tag_discipline_ids:Nt,sub_discipline_id:(Tn=(pn=pt.editData)==null?void 0:pn.exercise)==null?void 0:Tn.sub_discipline_id,difficulty:tn,repeat_answer:!ha,analysis:Fa}}),Ba(Ya)):(Ya=yield et({type:"exercise/addExerciseQuestion",payload:{insert_id:Pe==null?void 0:Pe.insert_id,categoryId:wu.categoryId,question_title:zn,question_type:1,question_score:pa,question_choices:au.map(Cr=>Cr.choice_text),standard_answers:au.filter(Cr=>Cr.is_answer).map(Cr=>Cr.is_answer),tag_discipline_ids:Nt,sub_discipline_id:(da=(En=pt.editData)==null?void 0:En.exercise)==null?void 0:da.sub_discipline_id,difficulty:tn,repeat_answer:!ha,analysis:Fa}}),Ba(Ya))}),Zn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5355\u9009\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(pn=>{var Tn,En;return((En=(Tn=pt==null?void 0:pt.editData)==null?void 0:Tn.exercise)==null?void 0:En.exercise_status)===1?pn:pn.id!=="del"&&pn.id!=="add"}),bn=pn=>ys(void 0,null,function*(){if(vn!==-1){pe.ZP.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002");return}switch(pn.id){case"del":let Tn;Fe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk(){return ys(this,null,function*(){yield(0,ne.Fl)({id:Pe.question_id}),et({type:"exercise/editExercise",payload:Jo({},wu)})})}});break;case"up":case"down":yield et({type:"exercise/exeriseMoveUpDown",payload:{id:Pe.question_id,opr:pn.id}}),et({type:"exercise/editExercise",payload:Jo({},wu)});break;case"edit":hn(Pe.dragKey),cn(!0);break;case"add":Bn({key:Pe.key,insert_id:Pe==null?void 0:Pe.question_id,question_type:0});break}}),ca=()=>{var pn;return a.createElement("aside",{ref:Sa},a.createElement("div",{className:ba.questionType},!(Pe!=null&&Pe.isPreview)&&a.createElement("div",null,a.createElement("span",{className:"font16 c-blue"},Pe.key,"\u3001\u5355\u9009\u9898"),"\uFF08",Pe.question_score,"\u5206\uFF09")),Pe!=null&&Pe.isPreview?a.createElement("div",{style:{display:"flex",alignItems:"flex-start"}},a.createElement("span",{style:{flexShrink:0},className:"font18"},Pe.key,"."),a.createElement(uu.Z,{value:Pe.question_title}),a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",Pe.question_score,"\u5206\uFF09")):a.createElement("div",{className:"mt5"},a.createElement(uu.Z,{value:Pe.question_title})),a.createElement("div",{className:ba.questionChoices},(pn=Pe==null?void 0:Pe.question_choices)==null?void 0:pn.map(function(Tn,En){return a.createElement(oe.Z,{key:En},a.createElement(ve.Z,null,a.createElement(Ie.ZP,{key:En,checked:Pe.standard_answer.includes(En+1),disabled:!0},Tu.k4[En],".")),a.createElement(ve.Z,{flex:"1"},a.createElement("span",{className:"c-black font14"},a.createElement(uu.Z,{value:Tn.choice_text}))))})),a.createElement("div",{className:ba.action},!Pe.hideAction&&Zn.map(function(Tn,En){return Tn.id==="up"&&Pe.key===1||Tn.id==="down"&&Pe.key===Pe.len?null:a.createElement(Ae.Z,{key:En,placement:"bottom",title:Tn.name},a.createElement("span",{onClick:()=>bn(Tn),className:Tn.icon}))})))},Qn=()=>{var pn,Tn;return a.createElement("aside",null,a.createElement("div",{className:ba.questionType},a.createElement("div",null,a.createElement("span",{className:"font16 c-blue"},"\u9009\u62E9\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09")),a.createElement("p",{className:ba.titleWrap},a.createElement("span",{className:ba.required},"*"),a.createElement("span",{className:ba.title},"\u9898\u5E72\uFF1A")),a.createElement(Fi.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:zn,onChange:En=>mn(En)}),a.createElement("p",{className:ba.titleWrap},a.createElement("span",{className:ba.required},"*"),a.createElement("span",{className:ba.title},"\u7B54\u6848\u9009\u9879\uFF1A",a.createElement("span",{className:ba.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),Fn.map((En,da)=>{var Ha,au;return a.createElement("div",{className:ba.choiceWrap,key:da},a.createElement(Ae.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},a.createElement("div",{className:`${ba.answer} ${ta.includes(da)?ba.activeAnswer:""}`,onClick:()=>{ta.includes(da)?nn(ta.filter(Ya=>Ya!==da)):nn([...ta,da])}},Tu.k4[da])),a.createElement("div",{className:ba.editorWrap},Ut===da?a.createElement(Fi.Z,{id:`single-question-option-${da}`,watch:!0,isFocus:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:En,onChange:Ya=>{Fn[da]=Ya,Wt(Fn)}}):a.createElement("div",{className:ba.htmlWrap,onClick:()=>Yt(da)},a.createElement(uu.Z,{value:En}))),((au=(Ha=pt.editData)==null?void 0:Ha.exercise)==null?void 0:au.exercise_status)===1&&a.createElement(a.Fragment,null,da>1&&a.createElement(Ae.Z,{title:"\u5220\u9664"},a.createElement("i",{className:`${ba.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>Wt(Fn.filter((Ya,Cr)=>Cr!==da))})),da<7&&da===Fn.length-1&&a.createElement(Ae.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},a.createElement("i",{className:`${ba.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>Wt([...Fn,""])}))))}),a.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\u8F93\u5165\u6846\u53EF\u8BBE\u7F6E\u7B54\u6848\uFF1B\u9009\u4E2D\u7684\u9009\u9879\u5373\u4E3A\u6B63\u786E\u7B54\u6848\uFF0C\u9009\u62E9\u591A\u4E2A\u7B54\u6848\u5373\u4E3A\u591A\u9009\u9898"),a.createElement("p",{className:ba.titleWrap},a.createElement("span",{className:ba.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),a.createElement(Fi.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Fa,onChange:En=>ia(En)}),a.createElement("div",{style:{marginBottom:14}},"\u5206\u503C\uFF1A",a.createElement(Re.Z,{value:pa,max:1e4,min:0,onChange:En=>{Pt(En)}})," \u5206",a.createElement("span",{style:{marginLeft:"30px"},className:ba.difficult},a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",a.createElement(Ie.ZP.Group,{value:tn,onChange:En=>{Ja(En.target.value)}},a.createElement(Ie.ZP.Button,{value:1},"\u7B80\u5355"),a.createElement(Ie.ZP.Button,{value:2},"\u9002\u4E2D"),a.createElement(Ie.ZP.Button,{value:3},"\u56F0\u96BE")))),a.createElement("div",{className:ba.titleWrap},a.createElement("span",{className:`${ba.title}`},"\u77E5\u8BC6\u70B9\uFF1A",a.createElement("span",{className:ba.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),a.createElement("div",{className:"mt5"},a.createElement(Jn.N,{selectvalues:Pe==null?void 0:Pe.tag_discipline_ids,value:Nt,onChange:Rt,subId:(Tn=(pn=pt.editData)==null?void 0:pn.exercise)==null?void 0:Tn.sub_discipline_id,knowledgeOptions:Oa,onAddKnowledgeFinish:Ka})),a.createElement("div",{style:{marginTop:10}},a.createElement("span",{style:{marginRight:10}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898"),a.createElement(Ne.Z,{checked:ha,onChange:En=>{dt(En)}}))),a.createElement("aside",{className:"tr"},(vn!==-1||Pe.question_id)&&a.createElement(me.ZP,{type:"default",onClick:()=>{Ht(),cn(!1)}},"\u53D6\u6D88"),a.createElement(me.ZP,{className:"ml20",type:"primary",onClick:()=>{La()}},"\u4FDD\u5B58")))};return a.createElement("section",{className:ba.wrap},!Xt&&ca(),Xt&&Qn())};var Xs=(0,he.connect)(({problemset:ce,loading:se,globalSetting:ae,exercise:_e})=>({problemset:ce,globalSetting:ae,exercise:_e,loading:se.effects}),null,null,{forwardRef:!0})((0,a.forwardRef)(Ul)),Js=z(66309),Bi=({value:ce=[[],[]],onChange:se})=>{var ae,_e;const[pt,Ve]=(0,a.useState)(""),[Dt,et]=(0,a.useState)(""),Be=Pe=>{if(!Pe)return!1;let Ht=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return Pe==="|"?(pe.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0};return a.createElement("div",null,a.createElement("p",{className:"font14"},"\u5173\u952E\u8BCD",a.createElement("span",{className:"c-grey-999"},"\uFF08\u5173\u952E\u8BCD\u53EF\u7528\u4E8E\u81EA\u52A8\u5224\u5206\uFF09"),a.createElement(Ae.Z,{overlayStyle:{maxWidth:350},title:a.createElement("div",null,a.createElement("div",null,"\u6BCF\u4E2A\u6838\u5FC3\u5173\u952E\u8BCD\u7684\u5206\u6570\u662F\u666E\u901A\u5173\u952E\u8BCD\u5206\u6570\u7684\u4E24\u500D"),a.createElement("div",null,"\u4F8B\u5982\uFF1A"),a.createElement("div",null,"\u672C\u989810\u5206\uFF0C\u666E\u901A\u5173\u952E\u8BCD1\u4E2A\uFF0C\u6838\u5FC3\u5173\u952E\u8BCD2\u4E2A\uFF0C\u5219\u6BCF\u4E2A"),a.createElement("div",null,"\u666E\u901A\u5173\u952E\u8BCD2\u5206\uFF0C\u6BCF\u4E2A\u6838\u5FC3\u5173\u952E\u8BCD4\u5206"))},a.createElement("span",{className:"iconfont icon-a-wenhaobeifen2 font14"}))),a.createElement(oe.Z,{align:"middle",className:"font14"},"\u666E\u901A\u5173\u952E\u8BCD\uFF1A",a.createElement(Le.default,{value:pt,onChange:Pe=>{Ve(Pe.target.value)},maxLength:50,allowClear:!0,onPressEnter:Pe=>{var Ht,vn,hn;const xt=(Ht=Pe.target)==null?void 0:Ht.value;Be(xt)&&((hn=ce[0])==null||hn.push((vn=xt==null?void 0:xt.split("|"))==null?void 0:vn.filter(Gt=>!!Gt)),se([...ce]),Ve(""))},style:{width:800},className:"ml5 mr10",placeholder:"\u652F\u6301\u4FDD\u5B58\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u7528\u201D|\u201D\u5206\u5272\u3002"}),a.createElement("span",{className:"c-grey-999"},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),a.createElement("div",{style:{paddingLeft:89},className:"mt10"},(ae=ce==null?void 0:ce[0])==null?void 0:ae.map((Pe,Ht)=>a.createElement(Js.default,{className:"mb10",key:Ht,closable:!0,onClose:vn=>{var hn;vn.preventDefault(),ce[0]=(hn=ce[0])==null?void 0:hn.filter((xt,Gt)=>Gt!==Ht),se([...ce])}},Pe==null?void 0:Pe.join(" \u6216 ")))),a.createElement(oe.Z,{align:"middle",className:"font14"},"\u6838\u5FC3\u5173\u952E\u8BCD\uFF1A",a.createElement(Le.default,{value:Dt,onChange:Pe=>{et(Pe.target.value)},maxLength:50,allowClear:!0,onPressEnter:Pe=>{var Ht,vn,hn;const xt=(Ht=Pe.target)==null?void 0:Ht.value;Be(xt)&&((hn=ce[1])==null||hn.push((vn=xt==null?void 0:xt.split("|"))==null?void 0:vn.filter(Gt=>!!Gt)),se([...ce]),et(""))},style:{width:800},className:"ml5 mr10",placeholder:"\u652F\u6301\u4FDD\u5B58\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u7528\u201D|\u201D\u5206\u5272\u3002"}),a.createElement("span",{className:"c-grey-999"},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),a.createElement("div",{style:{paddingLeft:89},className:"mt10"},(_e=ce==null?void 0:ce[1])==null?void 0:_e.map((Pe,Ht)=>a.createElement(Js.default,{className:"mb10",key:Ht,closable:!0,onClose:vn=>{var hn;vn.preventDefault(),ce[1]=(hn=ce[1])==null?void 0:hn.filter((xt,Gt)=>Gt!==Ht),se([...ce])}},Pe==null?void 0:Pe.join(" \u6216 ")))))},Yi=Object.defineProperty,Vo=Object.getOwnPropertySymbols,bs=Object.prototype.hasOwnProperty,zc=Object.prototype.propertyIsEnumerable,mc=(ce,se,ae)=>se in ce?Yi(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,dd=(ce,se)=>{for(var ae in se||(se={}))bs.call(se,ae)&&mc(ce,ae,se[ae]);if(Vo)for(var ae of Vo(se))zc.call(se,ae)&&mc(ce,ae,se[ae]);return ce},Kc=(ce,se)=>{var ae={};for(var _e in ce)bs.call(ce,_e)&&se.indexOf(_e)<0&&(ae[_e]=ce[_e]);if(ce!=null&&Vo)for(var _e of Vo(ce))se.indexOf(_e)<0&&zc.call(ce,_e)&&(ae[_e]=ce[_e]);return ae},Xl=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const hc=null,xc=(ce,se)=>{var ae=ce,{problemset:_e,exercise:pt,globalSetting:Ve,loading:Dt,dispatch:et,onRef:Be=()=>{},editData:Pe,cancelAdd:Ht=()=>{},editKey:vn,setEditKey:hn=()=>{},reload:xt=()=>{},addCallback:Gt=()=>{},setIsClaer:Bn=()=>{}}=ae,Dn=Kc(ae,["problemset","exercise","globalSetting","loading","dispatch","onRef","editData","cancelAdd","editKey","setEditKey","reload","addCallback","setIsClaer"]);const[Fn,Wt]=(0,a.useState)(""),[Ut,Yt]=(0,a.useState)(""),[ta,nn]=(0,a.useState)(""),[zn,mn]=(0,a.useState)(),[pa,Pt]=(0,a.useState)(!1),[Nt,Rt]=(0,a.useState)([]),[Xt,cn]=(0,a.useState)(1),[tn,Ja]=(0,a.useState)(!1),[ha,dt]=(0,a.useState)([[],[]]),Fa=(0,a.useRef)(!1),ia=(0,he.useParams)(),[wu,Sa]=(0,a.useState)([]),Hn=bn=>{Sa([...wu,dd({},bn)])};(0,a.useEffect)(()=>{var bn;if(!Fa.current){if(!(Pe!=null&&Pe.question_title)){Pt(!0),Wt(""),nn(""),mn(10);return}Ja(!(Pe!=null&&Pe.repeat_answer)),Wt(Pe==null?void 0:Pe.question_title),nn((bn=Pe==null?void 0:Pe.standard_answer)==null?void 0:bn[0]),mn(Pe==null?void 0:Pe.question_score),Rt(Pe.tag_discipline_ids),cn(Pe==null?void 0:Pe.difficulty),Yt(Pe==null?void 0:Pe.analysis),dt([Pe==null?void 0:Pe.normal_keywords,Pe==null?void 0:Pe.main_keywords])}},[_e.editData,pa]),(0,a.useEffect)(()=>{var bn;const ca=(bn=pt==null?void 0:pt.tagDisciplineData)!=null&&bn.tag_disciplines&&Array.isArray(pt.tagDisciplineData.tag_disciplines)?pt.tagDisciplineData.tag_disciplines:[];Sa(ca)},[pt.tagDisciplineData]),(0,a.useEffect)(()=>{pa&&bn();function bn(){return Xl(this,null,function*(){var ca,Qn;const pn=yield(0,ne.YY)({sub_discipline_id:(Qn=(ca=pt.editData)==null?void 0:ca.exercise)==null?void 0:Qn.sub_discipline_id});Sa(pn.tag_disciplines)})}},[pa]),(0,a.useImperativeHandle)(se,()=>({onSave:tu,isEdit:pa}));const Oa=bn=>{(bn==null?void 0:bn.status)===0&&(pe.ZP.success("\u4FDD\u5B58\u6210\u529F"),Pt(!1),hn(-1),Fa.current=!1,xt())},tu=()=>Xl(void 0,null,function*(){var bn,ca,Qn,pn;if(!Fn)return pe.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;const Tn=ha[0],En=ha[1];Fa.current=!0;let da;return Pe.question_id?(Pe==null?void 0:Pe.is_my)===1?Fe.default.confirm({title:"\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",keyboard:!1,onOk:()=>Xl(void 0,null,function*(){var Ha,au;da=yield et({type:"exercise/editExerciseQuestion",payload:{id:Pe.question_id,question_title:Fn,question_type:4,question_score:zn,standard_answers:[ta],tag_discipline_ids:Nt,sub_discipline_id:(au=(Ha=pt.editData)==null?void 0:Ha.exercise)==null?void 0:au.sub_discipline_id,difficulty:Xt,is_cover:1,repeat_answer:!tn,analysis:Ut,normal_keywords:Tn,main_keywords:En}}),Oa(da)}),onCancel:()=>Xl(void 0,null,function*(){var Ha,au;da=yield et({type:"exercise/editExerciseQuestion",payload:{id:Pe.question_id,question_title:Fn,question_type:4,question_score:zn,standard_answers:[ta],tag_discipline_ids:Nt,sub_discipline_id:(au=(Ha=pt.editData)==null?void 0:Ha.exercise)==null?void 0:au.sub_discipline_id,difficulty:Xt,repeat_answer:!tn,analysis:Ut,normal_keywords:Tn,main_keywords:En}}),Oa(da)})}):(da=yield et({type:"exercise/editExerciseQuestion",payload:{id:Pe.question_id,question_title:Fn,question_type:4,question_score:zn,standard_answers:[ta],tag_discipline_ids:Nt,sub_discipline_id:(ca=(bn=pt.editData)==null?void 0:bn.exercise)==null?void 0:ca.sub_discipline_id,difficulty:Xt,repeat_answer:!tn,analysis:Ut,normal_keywords:Tn,main_keywords:En}}),Oa(da)):(da=yield et({type:"exercise/addExerciseQuestion",payload:{insert_id:Pe==null?void 0:Pe.insert_id,categoryId:ia.categoryId,exercise_bank_id:ia.categoryId,question_title:Fn,question_type:4,question_score:zn,standard_answers:[ta],tag_discipline_ids:Nt,sub_discipline_id:(pn=(Qn=pt.editData)==null?void 0:Qn.exercise)==null?void 0:pn.sub_discipline_id,difficulty:Xt,repeat_answer:!tn,analysis:Ut,normal_keywords:Tn,main_keywords:En}}),Oa(da)),{name:Fn,answer_texts:[ta],analysis:Ut,normal_keywords:Tn,main_keywords:En}}),Ka=()=>{var bn,ca;return a.createElement("aside",null,a.createElement("div",{className:ba.questionType},a.createElement("div",null,a.createElement("span",{className:"font16 c-blue"},"\u4E3B\u89C2\u9898"),"\uFF08\u4E3B\u89C2\u9898\uFF0C\u672A\u4F5C\u7B54\u7684\u60C5\u51B5\u4E0B\u81EA\u52A8\u8BC4\u4E3A\u96F6\u5206\uFF09")),a.createElement(Fi.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Fn,onChange:Qn=>Wt(Qn)}),a.createElement("p",{className:ba.titleWrap},a.createElement("span",{className:ba.title},"\u53C2\u8003\u7B54\u6848\uFF1A")),a.createElement(Fi.Z,{id:"single-question-reference-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u53C2\u8003\u7B54\u6848",defaultValue:ta,onChange:Qn=>nn(Qn)}),a.createElement(Bi,{value:ha,onChange:dt}),a.createElement("p",{className:ba.titleWrap},a.createElement("span",{className:ba.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),a.createElement(Fi.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Ut,onChange:Qn=>Yt(Qn)}),a.createElement("p",{className:""},"\u5206\u503C\uFF1A",a.createElement(Re.Z,{value:zn,max:1e4,min:0,onChange:Qn=>{mn(Qn)}})," \u5206",a.createElement("span",{style:{marginLeft:"30px"},className:ba.difficult},a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",a.createElement(Ie.ZP.Group,{value:Xt,onChange:Qn=>{cn(Qn.target.value)}},a.createElement(Ie.ZP.Button,{value:1},"\u7B80\u5355"),a.createElement(Ie.ZP.Button,{value:2},"\u9002\u4E2D"),a.createElement(Ie.ZP.Button,{value:3},"\u56F0\u96BE")))),a.createElement("p",{className:ba.titleWrap},a.createElement("span",{className:`${ba.title}`},"\u77E5\u8BC6\u70B9\uFF1A",a.createElement("span",{className:ba.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),a.createElement("div",{className:"mt5"},a.createElement(Jn.N,{value:Nt,selectvalues:Pe==null?void 0:Pe.tag_discipline_ids,onChange:Rt,subId:(ca=(bn=pt.editData)==null?void 0:bn.exercise)==null?void 0:ca.sub_discipline_id,knowledgeOptions:wu,onAddKnowledgeFinish:Hn})),a.createElement("div",{style:{marginTop:10}},a.createElement("span",{style:{marginRight:10}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898"),a.createElement(Ne.Z,{checked:tn,onChange:Qn=>{Ja(Qn)}}))),a.createElement("aside",{className:"tr"},(vn!==-1||Pe.question_id)&&a.createElement(me.ZP,{type:"default",onClick:()=>{Ht(),Pt(!1)}},"\u53D6\u6D88"),a.createElement(me.ZP,{className:"ml20",type:"primary",onClick:()=>{tu()}},"\u4FDD\u5B58")))},Ba=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5355\u9009\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(bn=>{var ca,Qn;return((Qn=(ca=pt==null?void 0:pt.editData)==null?void 0:ca.exercise)==null?void 0:Qn.exercise_status)===1?bn:bn.id!=="del"&&bn.id!=="add"}),La=bn=>Xl(void 0,null,function*(){if(vn!==-1){pe.ZP.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002");return}switch(bn.id){case"del":let ca;Fe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk(){return Xl(this,null,function*(){yield(0,ne.Fl)({id:Pe.question_id}),et({type:"exercise/editExercise",payload:dd({},ia)})})}});break;case"up":case"down":yield et({type:"exercise/exeriseMoveUpDown",payload:{id:Pe.question_id,opr:bn.id}}),et({type:"exercise/editExercise",payload:dd({},ia)});break;case"edit":hn(Pe.dragKey),Pt(!0);break;case"add":Gt({key:Pe.key,insert_id:Pe==null?void 0:Pe.question_id,question_type:4});break}}),Zn=()=>a.createElement("aside",null,a.createElement("div",{className:ba.questionType},!(Pe!=null&&Pe.isPreview)&&a.createElement("div",null,a.createElement("span",{className:"font16 c-blue"},Pe.key,"\u3001\u7B80\u7B54\u9898"),"\uFF08",Pe.question_score,"\u5206\uFF09")),Pe!=null&&Pe.isPreview?a.createElement("div",{style:{display:"flex"}},a.createElement("span",{style:{flexShrink:0},className:"font18"},Pe.key,"."),a.createElement(uu.Z,{value:Pe.question_title}),a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",Pe.question_score,"\u5206\uFF09")):a.createElement("div",{className:"mt5"},a.createElement(uu.Z,{value:Pe.question_title})),a.createElement("div",{className:ba.questionChoices},a.createElement("p",null,a.createElement("strong",null,"\u53C2\u8003\u7B54\u6848\uFF1A")),a.createElement(uu.Z,{value:ta||""})),a.createElement("div",{className:ba.action},!Pe.hideAction&&Ba.map(function(bn,ca){return bn.id==="up"&&Pe.key===1||bn.id==="down"&&Pe.key===Pe.len?null:a.createElement(Ae.Z,{key:ca,placement:"bottom",title:bn.name},a.createElement("span",{onClick:()=>La(bn),className:bn.icon}))})));return a.createElement("section",{className:ba.wrap},!pa&&Zn(),pa&&Ka())};var Yc=(0,he.connect)(({problemset:ce,loading:se,exercise:ae,globalSetting:_e})=>({problemset:ce,globalSetting:_e,exercise:ae,loading:se.effects}),null,null,{forwardRef:!0})((0,a.forwardRef)(xc)),qo=z(67294),ad=Object.defineProperty,Zc=Object.getOwnPropertySymbols,qd=Object.prototype.hasOwnProperty,Qd=Object.prototype.propertyIsEnumerable,Id=(ce,se,ae)=>se in ce?ad(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,Ld=(ce,se)=>{for(var ae in se||(se={}))qd.call(se,ae)&&Id(ce,ae,se[ae]);if(Zc)for(var ae of Zc(se))Qd.call(se,ae)&&Id(ce,ae,se[ae]);return ce},Fd=(ce,se)=>{var ae={};for(var _e in ce)qd.call(ce,_e)&&se.indexOf(_e)<0&&(ae[_e]=ce[_e]);if(ce!=null&&Zc)for(var _e of Zc(ce))se.indexOf(_e)<0&&Qd.call(ce,_e)&&(ae[_e]=ce[_e]);return ae},md=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const d0=["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"],_d=(ce,se)=>{var ae=ce,{problemset:_e,exercise:pt,globalSetting:Ve,loading:Dt,dispatch:et,onRef:Be=()=>{},editData:Pe,cancelAdd:Ht=()=>{},editKey:vn,setEditKey:hn=()=>{},addCallback:xt=()=>{},setIsClaer:Gt=()=>{}}=ae,Bn=Fd(ae,["problemset","exercise","globalSetting","loading","dispatch","onRef","editData","cancelAdd","editKey","setEditKey","addCallback","setIsClaer"]);const[Dn,Fn]=(0,a.useState)([]),[Wt,Ut]=(0,a.useState)(),[Yt,ta]=(0,a.useState)([]),[nn,zn]=(0,a.useState)(""),[mn,pa]=(0,a.useState)(5),[Pt,Nt]=(0,a.useState)(!1),Rt=(0,he.useParams)();(0,a.useEffect)(()=>{Fn(["","","",""])},[]),(0,a.useEffect)(()=>{if(!(Pe!=null&&Pe.question_choices)){Nt(!0),zn(""),pa(5),Fn(["","","",""]),ta([]);return}zn(Pe==null?void 0:Pe.question_title),pa(Pe==null?void 0:Pe.question_score),Fn(Pe==null?void 0:Pe.question_choices.map(Fa=>Fa.choice_text));const dt=[];Pe==null||Pe.standard_answer.map((Fa,ia)=>{dt.push(Fa-1)}),ta(dt)},[Pe]),(0,a.useImperativeHandle)(se,()=>({onSave:Xt,isEdit:Pt}));const Xt=()=>md(void 0,null,function*(){if(!nn)return pe.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),!1;const dt=Dn.findIndex(wu=>!wu);if(dt>-1)return pe.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${d0[dt]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!Yt.length)return pe.ZP.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;if(Yt.length<1)return pe.ZP.info("\u8BF7\u9009\u62E9\u7B54\u6848"),!1;const Fa=Dn.map((wu,Sa)=>({choice_text:wu,is_answer:Yt.includes(Sa)?Sa+1:0}));let ia;Pe.question_id?ia=yield et({type:"exercise/editExerciseQuestion",payload:{id:Pe.question_id,question_title:nn,question_type:1,question_score:mn,question_choices:Fa.map(wu=>wu.choice_text),standard_answers:Fa.filter(wu=>wu.is_answer).map(wu=>wu.is_answer)}}):ia=yield et({type:"exercise/addExerciseQuestion",payload:{insert_id:Pe==null?void 0:Pe.insert_id,categoryId:Rt.categoryId,question_title:nn,question_type:1,question_score:"5.0",question_choices:Fa.map(wu=>wu.choice_text),standard_answers:Fa.filter(wu=>wu.is_answer).map(wu=>wu.is_answer)}}),ia.status===0&&(pe.ZP.success("\u4FDD\u5B58\u6210\u529F"),Nt(!1),et({type:"exercise/editExercise",payload:Ld({},Rt)}))}),cn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5355\u9009\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(dt=>{var Fa,ia;return((ia=(Fa=pt==null?void 0:pt.editData)==null?void 0:Fa.exercise)==null?void 0:ia.exercise_status)===1?dt:dt.id!=="del"&&dt.id!=="add"}),tn=dt=>md(void 0,null,function*(){if(vn!==-1){pe.ZP.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002");return}switch(dt.id){case"del":let Fa;Fe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk(){return md(this,null,function*(){yield(0,ne.Fl)({id:Pe.question_id}),et({type:"exercise/editExercise",payload:Ld({},Rt)})})}});break;case"up":case"down":yield et({type:"exercise/exeriseMoveUpDown",payload:{id:Pe.question_id,opr:dt.id}}),et({type:"exercise/editExercise",payload:Ld({},Rt)});break;case"edit":he.history.push(`/problems/${Pe==null?void 0:Pe.hack_identifier}/edit?type=exercises&express_id=${Rt.categoryId}&question_id=${Pe==null?void 0:Pe.question_id}&score=${Pe==null?void 0:Pe.question_score}&exercise=true&callback_url=${location.pathname}`);break;case"add":xt({key:Pe.key,insert_id:Pe==null?void 0:Pe.question_id,question_type:6});break}}),Ja=dt=>md(void 0,null,function*(){dt.preventDefault();const Fa=yield(0,ne.nF)({id:Pe==null?void 0:Pe.hack_identifier});Fa.status===0&&(0,de.xg)(`/myproblems/${Fa==null?void 0:Fa.identifier}`)}),ha=()=>{var dt,Fa,ia,wu,Sa,Hn,Oa;return qo.createElement("aside",null,qo.createElement("div",{className:ba.questionType},!(Pe!=null&&Pe.isPreview)&&qo.createElement("div",null,qo.createElement("span",{className:"font16 c-blue"},Pe.key,"\u3001\u7F16\u7A0B\u9898"),"\uFF08",Pe.question_score,"\u5206\uFF09")),Pe!=null&&Pe.isPreview?qo.createElement(qo.Fragment,null,qo.createElement("div",{style:{display:"flex"}},qo.createElement("span",{style:{flexShrink:0},className:"font18"},Pe.key,"."),qo.createElement(uu.Z,{value:Pe.question_title}),qo.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",Pe.question_score,"\u5206\uFF09")),qo.createElement("div",{style:{fontWeight:600,marginTop:10,fontSize:16}},"\u5141\u8BB8\u7F16\u7A0B\u7684\u8BED\u8A00\uFF1A",(dt=Pe==null?void 0:Pe.languages)==null?void 0:dt.join("/")),((ia=(Fa=pt==null?void 0:pt.editData)==null?void 0:Fa.exercise)==null?void 0:ia.show_hack_sets)&&qo.createElement("div",{style:{marginBottom:10,border:"1px solid #F1F4F9"}},qo.createElement("p",{style:{padding:"0px 10px",height:40,lineHeight:"40px",background:"#F1F4F9",color:"#3061D0"}},qo.createElement("i",{className:"iconfont icon-ceshiyongli"})," \u6D4B\u8BD5\u7528\u4F8B\uFF1A"),qo.createElement(x.default,{style:{margin:10},columns:[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",width:"10%",render:(tu,Ka,Ba)=>Ba+1},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165",dataIndex:"input",key:"input",width:"40%",render:(tu,Ka,Ba)=>qo.createElement(Ae.Z,{title:qo.createElement("pre",null,tu)},qo.createElement("div",{className:ba.divname},tu))},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA",dataIndex:"output",key:"output",width:"40%",render:(tu,Ka,Ba)=>qo.createElement(Ae.Z,{title:qo.createElement("pre",null,tu)}," ",qo.createElement("div",{className:ba.divname},tu))},{title:"\u662F\u5426\u53EF\u89C1",dataIndex:"visibility_cn",key:"visibility_cn",width:"10%"}],pagination:!1,dataSource:Pe==null?void 0:Pe.hack_sets}))):qo.createElement("div",{className:"mt5"},qo.createElement(uu.Z,{value:Pe.question_title}),((Sa=(wu=pt==null?void 0:pt.editData)==null?void 0:wu.exercise)==null?void 0:Sa.show_hack_sets)&&qo.createElement("div",{style:{marginBottom:10,border:"1px solid #F1F4F9"}},qo.createElement("p",{style:{padding:"0px 10px",height:40,lineHeight:"40px",background:"#F1F4F9",color:"#3061D0"}},qo.createElement("i",{className:"iconfont icon-ceshiyongli"})," \u6D4B\u8BD5\u7528\u4F8B\uFF1A"),qo.createElement(x.default,{style:{margin:10},columns:[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",width:"10%",render:(tu,Ka,Ba)=>Ba+1},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165",dataIndex:"input",key:"input",width:"40%",render:(tu,Ka,Ba)=>qo.createElement(Ae.Z,{title:qo.createElement("pre",null,tu)},qo.createElement("div",{className:ba.divname},tu))},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA",dataIndex:"output",key:"output",width:"40%",render:(tu,Ka,Ba)=>qo.createElement(Ae.Z,{title:qo.createElement("pre",null,tu)}," ",qo.createElement("div",{className:ba.divname},tu))},{title:"\u662F\u5426\u53EF\u89C1",dataIndex:"visibility_cn",key:"visibility_cn",width:"10%"}],pagination:!1,dataSource:Pe==null?void 0:Pe.hack_sets}))),((Oa=(Hn=pt==null?void 0:pt.editData)==null?void 0:Hn.exercise)==null?void 0:Oa.show_hack_description)&&qo.createElement("div",{className:ba.questionChoices},qo.createElement(uu.Z,{value:Pe.description||""})),qo.createElement("div",{className:ba.action},qo.createElement("span",{style:{color:"#3061d0",cursor:"pointer"},onClick:()=>{(0,de.xg)(`/problems/newedit/${Pe==null?void 0:Pe.hack_identifier}?type=exercises&express_id=${Rt.categoryId}&question_id=${Pe==null?void 0:Pe.question_id}&score=${Pe==null?void 0:Pe.question_score}&exercise=true&callback_url=/classrooms/${Rt.coursesId}/exercise/add/${Rt.categoryId}?type=2`)}},"\u67E5\u770B\u8BE6\u60C5"),!Pe.hideAction&&cn.map(function(tu,Ka){return tu.id==="up"&&Pe.key===1||tu.id==="down"&&Pe.key===Pe.len?null:qo.createElement(Ae.Z,{key:Ka,placement:"bottom",title:tu.name},qo.createElement("span",{onClick:()=>tn(tu),className:tu.icon}))})))};return qo.createElement("section",{className:ba.wrap},ha())};var Ud=(0,he.connect)(({problemset:ce,loading:se,globalSetting:ae,exercise:_e})=>({problemset:ce,globalSetting:ae,exercise:_e,loading:se.effects}),null,null,{forwardRef:!0})((0,a.forwardRef)(_d)),Nd=z(2715),js={ai_review_warp:"ai_review_warp___xdNyj",under_review:"under_review___LPpOL",btn_operate:"btn_operate___owqg5",btn_review:"btn_review___RoZoh",is_disabled:"is_disabled___T2_8u",title_sty:"title_sty___nTv6u",btns_pfbz:"btns_pfbz___kGOTA"},ud=z(31520),cs=z(67294),Xn=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Ar=({exercise:ce,globalSetting:se,user:ae,loading:_e,questionInfo:pt,dispatch:Ve})=>{var Dt;const et=(0,he.useParams)(),{is_open_ai_review:Be,zero_commit_student_works:Pe,unified_ai_setting:Ht,ai_review_settings:vn,is_random:hn}=ce.commonHeader,[xt,Gt]=(0,a.useState)({}),[Bn,Dn]=(0,a.useState)(!1),[Fn,Wt]=(0,a.useState)(0),[Ut,Yt]=(0,a.useState)(!1),ta=Ht?vn:((Dt=pt==null?void 0:pt.ai_review_settings)==null?void 0:Dt.length)>0?pt.ai_review_settings:vn;(0,a.useEffect)(()=>{!_e["exercise/getCommonHeader"]&&Be&&!(0,On.dE)()&&nn()},[_e["exercise/getCommonHeader"]]),(0,a.useEffect)(()=>{if((xt==null?void 0:xt.status)=="running"){const Pt=setInterval(()=>{nn()},3e3);return()=>clearInterval(Pt)}},[xt==null?void 0:xt.status]);const nn=()=>Xn(void 0,null,function*(){const Pt=yield(0,Ce.ZP)("/api/exercise_resubmits/resubmit_status.json",{method:"get",params:{exercise_id:et==null?void 0:et.categoryId,exercise_question_id:pt==null?void 0:pt.question_id}});(Pt==null?void 0:Pt.status)===0&&Gt(Pt==null?void 0:Pt.data)}),zn=Pt=>{Ve({type:"exercise/setActionTabs",payload:{key:"\u667A\u80FD\u8BC4\u9605\u7ED3\u679C",id:xt==null?void 0:xt.id,status:Pt,questionId:pt==null?void 0:pt.question_id,onOK:()=>{nn()}}})},mn=()=>{Ve({type:"exercise/setActionTabs",payload:{key:"AI\u8BC4\u9605\u64CD\u4F5C\u8BB0\u5F55",params:{exercise_id:et==null?void 0:et.categoryId,exercise_question_id:pt==null?void 0:pt.question_id}}})},pa=()=>Xn(void 0,null,function*(){if(Be){if(Pe)return pe.ZP.warning("\u5DF2\u63D0\u4EA4\u4F5C\u4E1A\u7684\u5B66\u751F\u6570\u4E3A0\uFF0C\u65E0\u6CD5\u667A\u80FD\u8BC4\u9605!")}else return pe.ZP.warning("\u8BF7\u5148\u5F00\u542F\u667A\u80FD\u8BC4\u9605\u529F\u80FD!");Yt(!0);const Pt=yield(0,Ce.ZP)("/api/exercise_resubmits/resubmit.json",{method:"post",body:{exercise_id:et==null?void 0:et.categoryId,range:Fn,exercise_question_id:pt==null?void 0:pt.question_id}});(Pt==null?void 0:Pt.status)===0&&(Dn(!1),nn()),Yt(!1)});return cs.createElement("div",{className:js.ai_review_warp},cs.createElement("div",null,Be&&(xt==null?void 0:xt.status)=="running"&&cs.createElement("div",{className:js.under_review},cs.createElement(jt.Z,{spinning:!0,className:"mr6",size:"small"}),cs.createElement("span",{className:"ml10"},"\u667A\u80FD\u8BC4\u9605\u4E2D\uFF0C\u5F53\u524D\u8FDB\u5EA6"),cs.createElement("span",{className:"ml5",style:{color:"#3061D0"}},xt==null?void 0:xt.rate,(xt==null?void 0:xt.rate)=="0.0%"&&cs.createElement("span",{className:"ml10"},"\u4EFB\u52A1\u6392\u961F\u4E2D\uFF0C\u9884\u8BA1\u7A0D\u540E\u5F00\u59CB\u8BC4\u9605!"))),Be&&["success","failed"].includes(xt==null?void 0:xt.status)&&cs.createElement("div",{className:js.under_review},"\u667A\u80FD\u8BC4\u9605\u6210\u529F",cs.createElement("span",{style:{color:"#3061D0"},onClick:()=>zn(1)},xt==null?void 0:xt.success_count),"\u4EBA\uFF0C \u5931\u8D25",cs.createElement("span",{style:{color:"#ff0000"},onClick:()=>zn(0)},xt==null?void 0:xt.fail_count),"\u4EBA")),cs.createElement("div",{className:"flex"},cs.createElement("div",{className:js.btn_operate,onClick:mn},cs.createElement("i",{className:"iconfont icon-lishijilu mr8"}),"\u64CD\u4F5C\u8BB0\u5F55"),cs.createElement("div",{className:`${js.btn_review} ${(xt==null?void 0:xt.status)=="running"&&js.is_disabled}`,onClick:()=>{if((xt==null?void 0:xt.status)!="running"){if(!Be)return pe.ZP.warning("\u8BF7\u5148\u5F00\u542F\u667A\u80FD\u8BC4\u9605\u529F\u80FD!"),!1;Wt(0),Dn(!0)}}},cs.createElement("img",{src:Ga.Z,className:"mr8",style:{width:14,height:14}}),"\u667A\u80FD\u8BC4\u9605")),cs.createElement(Fe.default,{width:1150,centered:!0,title:"\u667A\u80FD\u8BC4\u9605",open:Bn,destroyOnClose:!0,onCancel:()=>Dn(!1),okText:"\u5F00\u59CB\u8BC4\u9605",confirmLoading:Ut,onOk:()=>pa()},cs.createElement("div",{className:"flex item-center justify-between mb10"},cs.createElement("div",{className:js.title_sty,style:{marginBottom:0}},"\u8BC4\u5206\u6807\u51C6"),cs.createElement("div",{className:"flex"},cs.createElement("div",{className:js.btns_pfbz,onClick:()=>{Ve({type:"exercise/setActionTabs",payload:{key:"\u6D4B\u8BD5AI\u8BC4\u5206",questionId:pt==null?void 0:pt.question_id,ai_review_settings:ta}})}},cs.createElement("img",{src:ud.Z}),"\u6D4B\u8BD5AI\u8BC4\u5206"),cs.createElement("div",{className:js.btns_pfbz,onClick:()=>{window.location.href=`/classrooms/${et.coursesId}/exercise/${et.categoryId}/detail?random=${hn}&tabs=12`}},cs.createElement("i",{className:"iconfont icon-bianji15 font14 mr5"}),"\u4FEE\u6539\u8BC4\u5206\u6807\u51C6"))),cs.createElement(x.default,{pagination:!1,dataSource:ta,columns:[{title:"\u8BC4\u5206\u70B9",dataIndex:"name",width:236},{title:"\u8BC4\u5206\u6807\u51C6",dataIndex:"content",width:684,ellipsis:!0},{title:"\u6743\u91CD\uFF08%\uFF09",dataIndex:"weight",width:140}]}),cs.createElement("div",{className:js.title_sty,style:{marginTop:30}},"\u8BC4\u9605\u8303\u56F4"),cs.createElement("div",{className:js.znpy,style:{background:"#F6F7F9",padding:"13px 20px"}},cs.createElement(Ie.ZP.Group,{style:{display:"flex",flexDirection:"column",gap:18},onChange:Pt=>Wt(Pt.target.value),value:Fn,options:[{value:0,label:"\u5DF2\u63D0\u4EA4\u8BD5\u5377\u4E14\u672A\u8BC4\u9605\u7684\u5B66\u751F"},{value:1,label:"\u6240\u6709\u5DF2\u63D0\u4EA4\u8BD5\u5377\u7684\u5B66\u751F"}]}))))};var _l=(0,he.connect)(({exercise:ce,globalSetting:se,loading:ae,user:_e})=>({exercise:ce,globalSetting:se,loading:ae.effects,user:_e}))(Ar),Ia=z(67294),Bu=Object.defineProperty,Zo=Object.defineProperties,yi=Object.getOwnPropertyDescriptors,Oi=Object.getOwnPropertySymbols,uo=Object.prototype.hasOwnProperty,As=Object.prototype.propertyIsEnumerable,Mi=(ce,se,ae)=>se in ce?Bu(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,Bc=(ce,se)=>{for(var ae in se||(se={}))uo.call(se,ae)&&Mi(ce,ae,se[ae]);if(Oi)for(var ae of Oi(se))As.call(se,ae)&&Mi(ce,ae,se[ae]);return ce},gd=(ce,se)=>Zo(ce,yi(se)),dl=(ce,se)=>{var ae={};for(var _e in ce)uo.call(ce,_e)&&se.indexOf(_e)<0&&(ae[_e]=ce[_e]);if(ce!=null&&Oi)for(var _e of Oi(ce))se.indexOf(_e)<0&&As.call(ce,_e)&&(ae[_e]=ce[_e]);return ae},qs=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Fc=(ce,se)=>{var ae=ce,{problemset:_e,exercise:pt,globalSetting:Ve,loading:Dt,dispatch:et,onRef:Be=()=>{},editData:Pe,cancelAdd:Ht=()=>{},editKey:vn,setEditKey:hn=()=>{},setIsClaer:xt=()=>{},addCallback:Gt=Qn=>{},reload:Bn=()=>{},markBtnVisible:Dn,handleMarkWrongQuestion:Fn,handleAddCorrectAnswers:Wt}=ae,Ut=dl(ae,["problemset","exercise","globalSetting","loading","dispatch","onRef","editData","cancelAdd","editKey","setEditKey","setIsClaer","addCallback","reload","markBtnVisible","handleMarkWrongQuestion","handleAddCorrectAnswers"]);const[Yt,ta]=(0,a.useState)([]),[nn,zn]=(0,a.useState)(!1),[mn,pa]=(0,a.useState)(!0),[Pt,Nt]=(0,a.useState)(1),[Rt,Xt]=(0,a.useState)(!1),[cn,tn]=(0,a.useState)([]),Ja=(0,he.useParams)(),ha=(0,a.useRef)(null),[dt,Fa]=(0,a.useState)(""),[ia,wu]=(0,a.useState)([]),Sa=(0,a.useRef)(!1),Hn=Qn=>{tn([...cn,Bc({},Qn)])};(0,a.useEffect)(()=>{var Qn;if(Sa.current)return;if(!(Pe!=null&&Pe.question_title)){zn(!0),Fa("");return}Fa(Pe==null?void 0:Pe.question_title),Xt(!(Pe!=null&&Pe.repeat_answer)),Nt(Pe==null?void 0:Pe.difficulty),ta(Pe.tag_discipline_ids);const pn=(Qn=Pe==null?void 0:Pe.sub_exercise_questions)==null?void 0:Qn.map(Tn=>{var En,da,Ha;return gd(Bc({},Tn),{id:Tn.question_id,name:Tn.question_title,open:!1,score:Tn.question_score,qusList:(En=Tn==null?void 0:Tn.question_choices)==null?void 0:En.map(au=>au.choice_text),activeQusEditor:null,qusAnswer:(Ha=[(da=Tn==null?void 0:Tn.question_choices)==null?void 0:da.findIndex(au=>au.standard_boolean)])==null?void 0:Ha.filter(au=>au!==-1)})});wu(pn)},[Pe,nn]),(0,a.useEffect)(()=>{nn&&Qn();function Qn(){return qs(this,null,function*(){var pn,Tn;const En=yield(0,ne.YY)({sub_discipline_id:(Tn=(pn=pt.editData)==null?void 0:pn.exercise)==null?void 0:Tn.sub_discipline_id});tn(En.tag_disciplines)})}},[nn]),(0,a.useEffect)(()=>{var Qn;const pn=(Qn=pt==null?void 0:pt.tagDisciplineData)!=null&&Qn.tag_disciplines&&Array.isArray(pt.tagDisciplineData.tag_disciplines)?pt.tagDisciplineData.tag_disciplines:[];tn(pn)},[pt.tagDisciplineData]),(0,a.useImperativeHandle)(se,()=>({onSave:tu,isEdit:nn}));const Oa=Qn=>{(Qn==null?void 0:Qn.status)===0&&(pe.ZP.success("\u4FDD\u5B58\u6210\u529F"),zn(!1),hn(-1),Sa.current=!1,Bn())},tu=()=>qs(void 0,null,function*(){var Qn,pn,Tn;if(!dt)return pe.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;if(ia.length===0)return pe.ZP.info("\u8BF7\u60A8\u6DFB\u52A0\u5C0F\u9898"),!1;for(let Ha=0;Ha!Cr);if(Ya>-1)return pe.ZP.info(`\u8BF7\u5148\u8F93\u5165\u7B2C${Ha+1}\u5C0F\u9898${Tu.k4[Ya]}\u9009\u9879\u7684\u5185\u5BB9`),!1;if(!(au!=null&&au.qusAnswer.length))return pe.ZP.info(`\u8BF7\u8BBE\u7F6E\u7B2C${Ha+1}\u5C0F\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E`),!1}const En=ia.map(Ha=>{var au;return{id:Ha.id>1?Ha.id:null,question_title:Ha.name,question_type:1,question_choices:Ha.qusList,question_score:Ha.score,standard_answers:[((au=Ha.qusAnswer)==null?void 0:au[0])+1]}});Sa.current=!0;let da;Pe.question_id&&((Pe==null?void 0:Pe.is_my)===1?Fe.default.confirm({title:"\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",keyboard:!1,onOk:()=>qs(void 0,null,function*(){var Ha,au;da=yield et({type:"exercise/editExerciseQuestion",payload:{id:Pe.question_id,question_title:dt,question_type:7,sub_questions:En,tag_discipline_ids:Yt,sub_discipline_id:(au=(Ha=pt.editData)==null?void 0:Ha.exercise)==null?void 0:au.sub_discipline_id,difficulty:Pt,is_cover:1,repeat_answer:!Rt}}),Oa(da)}),onCancel:()=>qs(void 0,null,function*(){var Ha,au;da=yield et({type:"exercise/editExerciseQuestion",payload:{id:Pe.question_id,question_title:dt,question_type:7,sub_questions:En,tag_discipline_ids:Yt,sub_discipline_id:(au=(Ha=pt.editData)==null?void 0:Ha.exercise)==null?void 0:au.sub_discipline_id,difficulty:Pt,repeat_answer:!Rt}}),Oa(da)})}):(da=yield et({type:"exercise/editExerciseQuestion",payload:{id:Pe.question_id,question_title:dt,question_type:7,sub_questions:En,tag_discipline_ids:Yt,sub_discipline_id:(Tn=(pn=pt.editData)==null?void 0:pn.exercise)==null?void 0:Tn.sub_discipline_id,difficulty:Pt,repeat_answer:!Rt}}),Oa(da)))}),Ka=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(Qn=>{var pn,Tn;return((Tn=(pn=pt==null?void 0:pt.editData)==null?void 0:pn.exercise)==null?void 0:Tn.exercise_status)===1?Qn:Qn.id!=="del"&&Qn.id!=="add"}),Ba=Qn=>qs(void 0,null,function*(){if(vn!==-1){pe.ZP.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002");return}switch(Qn.id){case"del":let pn;Fe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk(){return qs(this,null,function*(){yield(0,ne.Fl)({id:Pe.question_id}),et({type:"exercise/editExercise",payload:Bc({},Ja)})})}});break;case"up":case"down":yield et({type:"exercise/exeriseMoveUpDown",payload:{id:Pe.question_id,opr:Qn.id}}),et({type:"exercise/editExercise",payload:Bc({},Ja)});break;case"edit":hn(Pe.dragKey),zn(!0);break;case"add":Gt({key:Pe.key,insert_id:Pe==null?void 0:Pe.question_id,question_type:0});break}}),La=()=>{var Qn;return Ia.createElement("aside",{ref:ha},Ia.createElement("div",{className:ba.questionType},!(Pe!=null&&Pe.isPreview)&&Ia.createElement("div",null,Ia.createElement("span",{className:"font16 c-blue"},Pe.key,"\u3001\u7EC4\u5408\u9898"),"\uFF08",Pe.question_score,"\u5206\uFF09")),Pe!=null&&Pe.isPreview?Ia.createElement("div",{style:{display:"flex",alignItems:"flex-start"}},Ia.createElement("span",{style:{flexShrink:0},className:"font18"},Pe.key,"."),Ia.createElement(uu.Z,{value:Pe.question_title}),Ia.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08\u5171",Pe==null?void 0:Pe.sub_q_count,"\u5C0F\u9898\uFF0C",Pe.question_score,"\u5206\uFF09")):Ia.createElement("div",{className:"mt5"},Ia.createElement(uu.Z,{value:Pe.question_title})),Ia.createElement("div",{style:{display:mn?"block":"none"},className:ba.questionChoices},(Qn=Pe==null?void 0:Pe.sub_exercise_questions)==null?void 0:Qn.map((pn,Tn)=>{var En,da,Ha,au;return Ia.createElement("div",{key:Tn,style:{marginBottom:"20px"}},Ia.createElement("div",{style:{display:"flex",alignItems:"flex-start",marginBottom:"15px"}},Ia.createElement("span",{style:{flexShrink:0},className:"font18"},Pe.key,".",Tn+1,(pn==null?void 0:pn.question_type)==0?"\uFF08\u5355\u9009\u9898\uFF09":(pn==null?void 0:pn.question_type)==1?"\uFF08\u591A\u9009\u9898\uFF09":(pn==null?void 0:pn.question_type)==2?"\uFF08\u5224\u65AD\u9898\uFF09":(pn==null?void 0:pn.question_type)==3?"\uFF08\u586B\u7A7A\u9898\uFF09":"\uFF08\u7B80\u7B54\u9898\uFF09"),Ia.createElement(uu.Z,{value:pn.question_title}),Ia.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",pn.question_score,"\u5206\uFF09")),(pn==null?void 0:pn.question_type)==3&&((En=pn==null?void 0:pn.standard_answers)==null?void 0:En.map(function(Ya,Cr){return Ia.createElement(oe.Z,{key:Cr,align:"middle",justify:"start",style:{marginBottom:"5px"}},Ia.createElement(ve.Z,null,"\u7B54\u6848\uFF08\u586B\u7A7A",Ya==null?void 0:Ya.choice_id,"\uFF09\uFF1A"),Ia.createElement(ve.Z,{flex:"1"},Ia.createElement(oe.Z,{align:"middle",gutter:[1,1]},Ya.answer_text.map(function(Zu,sa){var Ru;return Ia.createElement(ve.Z,{span:24,key:sa},Ia.createElement(Le.default,{key:Cr,checked:(Ru=pn==null?void 0:pn.standard_answers)==null?void 0:Ru.includes(Cr),disabled:!0,value:Zu}))}))))})),(pn==null?void 0:pn.question_type)==4&&Ia.createElement(uu.Z,{value:((da=pn==null?void 0:pn.answer_texts)==null?void 0:da[0])||""}),((pn==null?void 0:pn.question_type)==0||(pn==null?void 0:pn.question_type)==1||(pn==null?void 0:pn.question_type)==2)&&((Ha=pn==null?void 0:pn.question_choices)==null?void 0:Ha.map(function(Ya,Cr){return Ia.createElement(oe.Z,{key:Cr,align:"middle"},Ia.createElement(ve.Z,null,Ia.createElement(Ie.ZP,{key:Cr,checked:pn.standard_answer.includes(Cr+1),disabled:!0},Tu.k4[Cr],".")),Ia.createElement(ve.Z,{flex:"1"},Ia.createElement("span",{className:"c-black font14"},Ia.createElement(uu.Z,{value:Ya.choice_text}))))})),Dn&&Ia.createElement(oe.Z,{className:"mt20",align:"middle",gutter:20},Ia.createElement(ve.Z,null,Ia.createElement(Nd.Z,{state:pn==null?void 0:pn.is_wrong,onClick:()=>Fn({value:pn,type:pn==null?void 0:pn.question_type})})),(pn==null?void 0:pn.question_type)==0&&Ia.createElement(ve.Z,null,Ia.createElement(me.ZP,{style:{color:"#3061D0"},onClick:()=>{Wt==null||Wt({value:pn})}},"\u589E\u8BBE\u6B63\u786E\u7B54\u6848"))),(pn==null?void 0:pn.question_type)==4&&((au=pt==null?void 0:pt.commonHeader)==null?void 0:au.teacher_permission)&&Ia.createElement(_l,{questionInfo:pn}))})),Ia.createElement("div",{className:ba.action},Ia.createElement("span",{className:"c-light-primary current",onClick:()=>pa(!mn),style:{}},mn?"\u6536\u8D77":"\u5C55\u5F00"),!Pe.hideAction&&Ka.map(function(pn,Tn){return pn.id==="up"&&Pe.key===1||pn.id==="down"&&Pe.key===Pe.len?null:Ia.createElement(Ae.Z,{key:Tn,placement:"bottom",title:pn.name},Ia.createElement("span",{onClick:()=>Ba(pn),className:pn.icon}))})))},Zn=()=>{var Qn,pn;return Ia.createElement("aside",null,Ia.createElement("div",{className:ba.questionType},Ia.createElement("div",null,Ia.createElement("span",{className:"font16 c-blue"},"\u9009\u62E9\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09")),Ia.createElement("section",{className:ba.wrap,style:{padding:0}},Ia.createElement("p",{className:ba.titleWrap},Ia.createElement("span",{className:ba.required},"*"),Ia.createElement("span",{className:ba.title},"\u9898\u5E72\uFF1A")),Ia.createElement(Fi.Z,{id:"combination-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:dt,onChange:Tn=>Fa(Tn)}),Ia.createElement("p",null,"\u5C0F\u9898\u6570\uFF1A",ia==null?void 0:ia.length),ia==null?void 0:ia.map((Tn,En)=>{var da;return Ia.createElement("div",{className:ba.fold,key:Tn.id},Ia.createElement("div",{onClick:()=>ca("open",En),className:ba.head},Ia.createElement("i",{className:"iconfont icon-sanjiaoxing",style:{transform:Tn.open?"initial":"rotate(270deg) translate(2px, 4px)"}}),Ia.createElement("span",null,"\u7B2C",En+1,"\u5C0F\u9898\uFF08\u5355\u9009\u9898\uFF09"),Ia.createElement("b",{onClick:Ha=>{Ha.stopPropagation(),ca("delete",En)},className:"iconfont icon-shanchu8"})),Ia.createElement("div",{className:"mb10",style:{display:Tn.open?"block":"none"}},Ia.createElement(Fi.Z,{watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Tn==null?void 0:Tn.name,onChange:Ha=>ca("value",En,Ha)}),Ia.createElement("p",{className:ba.titleWrap},Ia.createElement("span",{className:ba.required},"*"),Ia.createElement("span",{className:ba.title},"\u7B54\u6848\u9009\u9879\uFF1A",Ia.createElement("span",{className:ba.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),(da=Tn==null?void 0:Tn.qusList)==null?void 0:da.map((Ha,au)=>{var Ya,Cr;return Ia.createElement("div",{className:ba.choiceWrap,key:au},Ia.createElement(Ae.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},Ia.createElement("div",{className:`${ba.answer} ${(Ya=Tn==null?void 0:Tn.qusAnswer)!=null&&Ya.includes(au)?ba.activeAnswer:""}`,onClick:()=>ca("answer",En,au)},Tu.k4[au])),Ia.createElement("div",{className:ba.editorWrap},(Tn==null?void 0:Tn.activeQusEditor)===au?Ia.createElement(Fi.Z,{id:`single-question-option-${au}`,watch:!0,height:155,isFocus:!0,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:Ha,onChange:Zu=>ca("details",En,Zu)}):Ia.createElement("div",{className:ba.htmlWrap,onClick:()=>ca("edit",En,au)},Ia.createElement(uu.Z,{value:Ha}))),au>1&&Ia.createElement(Ae.Z,{title:"\u5220\u9664"},Ia.createElement("i",{className:`${ba.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>ca("deleteQus",En,au)})),au<7&&au===((Cr=Tn==null?void 0:Tn.qusList)==null?void 0:Cr.length)-1&&Ia.createElement(Ae.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},Ia.createElement("i",{className:`${ba.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>ca("addQus",En)})))}),Ia.createElement("p",{className:"mt10"},"\u5206\u503C\uFF1A",Ia.createElement(Re.Z,{value:Tn.score,max:1e4,min:0,onChange:Ha=>ca("score",En,Ha)})," ","\u5206")))}),ia.length<20&&Ia.createElement(me.ZP,{type:"primary",onClick:bn},Ia.createElement("i",{className:"iconfont icon-tianjiatimu mr5 font14"}),"\u6DFB\u52A0\u5C0F\u9898")),Ia.createElement("p",{className:"mt10"},Ia.createElement("span",{className:ba.difficult},Ia.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",Ia.createElement(Ie.ZP.Group,{value:Pt,onChange:Tn=>{Nt(Tn.target.value)}},Ia.createElement(Ie.ZP.Button,{value:1},"\u7B80\u5355"),Ia.createElement(Ie.ZP.Button,{value:2},"\u9002\u4E2D"),Ia.createElement(Ie.ZP.Button,{value:3},"\u56F0\u96BE")))),Ia.createElement("p",{className:ba.titleWrap},Ia.createElement("span",{className:`${ba.title}`},"\u77E5\u8BC6\u70B9\uFF1A",Ia.createElement("span",{className:ba.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),Ia.createElement("div",{className:"mt5"},Ia.createElement(Jn.N,{selectvalues:Pe==null?void 0:Pe.tag_discipline_ids,value:Yt,onChange:ta,subId:(pn=(Qn=pt.editData)==null?void 0:Qn.exercise)==null?void 0:pn.sub_discipline_id,knowledgeOptions:cn,onAddKnowledgeFinish:Hn}))),Ia.createElement("aside",{className:"tr"},(vn!==-1||Pe.question_id)&&Ia.createElement(me.ZP,{type:"default",onClick:()=>{Ht(),zn(!1)}},"\u53D6\u6D88"),Ia.createElement(me.ZP,{className:"ml20",type:"primary",onClick:()=>{tu()}},"\u4FDD\u5B58")))},bn=()=>{const Qn={id:Math.random(),item_type:"SINGLE",open:!1,name:"",qusList:["","","",""],activeQusEditor:null,qusAnswer:[],analysis:""};wu(ia.concat(Qn))},ca=(Qn,pn,Tn)=>{var En;const da=(0,Ta.cloneDeep)(ia);Qn==="open"&&(da[pn].open=!da[pn].open),Qn==="delete"&&da.splice(pn,1),Qn==="value"&&(da[pn].name=Tn),Qn==="answer"&&(da[pn].qusAnswer=[Tn]),Qn==="edit"&&(da[pn].activeQusEditor=Tn),Qn==="details"&&(da[pn].qusList[da[pn].activeQusEditor]=Tn),Qn==="addQus"&&(da[pn].qusList=da[pn].qusList.concat("")),Qn==="deleteQus"&&(da[pn].qusList=da[pn].qusList.filter((Ha,au)=>au!==Tn),da[pn].qusAnswer=(En=da[pn].qusAnswer)==null?void 0:En.filter(Ha=>Ha!==Tn)),Qn==="analysis"&&(da[pn].analysis=Tn),Qn==="score"&&(da[pn].score=Tn),wu(da)};return Ia.createElement("section",{className:ba.wrap},!nn&&La(),nn&&Zn())};var be=(0,he.connect)(({problemset:ce,loading:se,globalSetting:ae,exercise:_e})=>({problemset:ce,globalSetting:ae,exercise:_e,loading:se.effects}),null,null,{forwardRef:!0})((0,a.forwardRef)(Fc)),Te=z(66012),at={flex_box_center:"flex_box_center___dDNpp",flex_space_between:"flex_space_between___ovpjv",flex_box_vertical_center:"flex_box_vertical_center___oqAEt",flex_box_center_end:"flex_box_center_end___mHCIK",flex_box_column:"flex_box_column___GZMP2",posWarp:"posWarp___ZUxXl",pos:"pos___A7NKx",tips:"tips___ap6NV"},Et=z(48994),rn=z(19575),Mn=Object.defineProperty,na=Object.defineProperties,ka=Object.getOwnPropertyDescriptors,nu=Object.getOwnPropertySymbols,vu=Object.prototype.hasOwnProperty,Uu=Object.prototype.propertyIsEnumerable,tr=(ce,se,ae)=>se in ce?Mn(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,gr=(ce,se)=>{for(var ae in se||(se={}))vu.call(se,ae)&&tr(ce,ae,se[ae]);if(nu)for(var ae of nu(se))Uu.call(se,ae)&&tr(ce,ae,se[ae]);return ce},Xu=(ce,se)=>na(ce,ka(se)),Fr=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const br=({data:ce,exercise:se,isDragDisabled:ae=!1,editorProps:_e={},onDragEnd:pt=()=>{},dispatch:Ve,markBtnVisible:Dt=!1,batchScore:et=[],reload:Be=()=>{}})=>{const Pe=(0,a.useRef)(),Ht=(0,he.useParams)(),[vn,hn]=Fe.default.useModal(),xt=()=>{var zn,mn,pa,Pt,Nt,Rt,Xt,cn,tn,Ja,ha,dt,Fa,ia,wu,Sa;return[{name:"\u5355\u9009\u9898",type:0,count:(zn=ce==null?void 0:ce.exercise_types)==null?void 0:zn.q_singles,score:(mn=ce==null?void 0:ce.exercise_types)==null?void 0:mn.q_singles_scores,items:[]},{name:"\u591A\u9009\u9898",type:1,count:(pa=ce==null?void 0:ce.exercise_types)==null?void 0:pa.q_doubles,score:(Pt=ce==null?void 0:ce.exercise_types)==null?void 0:Pt.q_doubles_scores,items:[]},{name:"\u5224\u65AD\u9898",type:2,count:(Nt=ce==null?void 0:ce.exercise_types)==null?void 0:Nt.q_judges,score:(Rt=ce==null?void 0:ce.exercise_types)==null?void 0:Rt.q_judges_scores,items:[]},{name:"\u586B\u7A7A\u9898",type:3,count:(Xt=ce==null?void 0:ce.exercise_types)==null?void 0:Xt.q_nulls,score:(cn=ce==null?void 0:ce.exercise_types)==null?void 0:cn.q_nulls_scores,items:[]},{name:"\u7B80\u7B54\u9898",type:4,count:(tn=ce==null?void 0:ce.exercise_types)==null?void 0:tn.q_mains,score:(Ja=ce==null?void 0:ce.exercise_types)==null?void 0:Ja.q_mains_scores,items:[]},{name:"\u5B9E\u8BAD\u9898",type:5,count:(ha=ce==null?void 0:ce.exercise_types)==null?void 0:ha.q_shixuns,score:(dt=ce==null?void 0:ce.exercise_types)==null?void 0:dt.q_shixuns_scores,items:[]},{name:"\u7F16\u7A0B\u9898",type:6,count:(Fa=ce==null?void 0:ce.exercise_types)==null?void 0:Fa.q_pros,score:(ia=ce==null?void 0:ce.exercise_types)==null?void 0:ia.q_pros_scores,items:[]},{name:"\u7EC4\u5408\u9898",type:7,count:(wu=ce==null?void 0:ce.exercise_types)==null?void 0:wu.q_combinations,score:(Sa=ce==null?void 0:ce.exercise_types)==null?void 0:Sa.q_combination_scores,items:[]}]},Gt=(zn,mn,pa)=>{const Pt=Array.from(zn),[Nt]=Pt.splice(mn,1);return Pt.splice(pa,0,Nt),Pt},Bn=(zn,mn,pa)=>{if(!zn.destination)return;const Pt=Gt(mn,zn.source.index,zn.destination.index);pt(Pt,pa)},Dn=zn=>{Ve({type:"exercise/setActionTabs",payload:{key:"\u6807\u8BB0\u9519\u9898",params:zn}})},Fn=(zn,mn)=>{var pa,Pt,Nt;if(mn===0)return a.createElement(Xs,gr({reload:Be,editData:zn},zn));if(mn===1)return a.createElement(ql,gr({reload:Be,editData:zn},zn));if(mn===2)return a.createElement(Ms,gr({reload:Be,editData:zn},zn));if(mn===3)return a.createElement(Cc,gr({reload:Be,editData:zn},zn));if(mn===4)return a.createElement(Yc,gr({reload:Be,editData:zn},zn));if(mn===5)return a.createElement(co,gr({reload:Be,editData:zn},zn));if(mn===6)return a.createElement(Ud,gr({editData:zn},zn));if(mn===7)return a.createElement(be,gr({handleAddCorrectAnswers:ta,handleMarkWrongQuestion:Dn,markBtnVisible:Dt,reload:Be,editData:zn},zn));if(mn===8)return a.createElement("div",{style:{padding:"20px 30px"}},a.createElement(uu.Z,{value:zn.key+"."+((pa=zn==null?void 0:zn.program_attr)==null?void 0:pa.description)}),a.createElement(uu.Z,{style:{paddingLeft:10},showProgramFill:!0,disabledFill:!0,value:rn.Base64.decode(((Pt=zn==null?void 0:zn.program_attr)==null?void 0:Pt.code)||"")}),(Nt=zn==null?void 0:zn.standard_answer)==null?void 0:Nt.map(function(Rt,Xt){return a.createElement(oe.Z,{key:Xt,align:"middle",style:{marginTop:20}},a.createElement(ve.Z,null,"\u7B54\u6848\uFF08\u586B\u7A7A",Rt.choice_id,"\uFF09\uFF1A"),a.createElement(ve.Z,{flex:"1"},a.createElement(oe.Z,{align:"middle",gutter:[1,1]},a.createElement(Le.default,{key:Xt,disabled:!0,value:Rt.answer_text||"- -"}))))}))},Wt=(zn,mn,pa)=>a.createElement(Te.Z5,{onDragEnd:Pt=>Bn(Pt,zn,mn)},a.createElement(Te.bK,{droppableId:"droppable"},(Pt,Nt)=>a.createElement("div",Xu(gr({ref:Pt.innerRef},Pt.droppableProps),{style:{width:"100%"}}),zn==null?void 0:zn.map((Rt,Xt)=>{var cn;const tn=gr(Xu(gr({},Rt),{key:Xt+1,hideAction:!0,isPreview:!0,dragKey:mn+"-"+Xt}),_e);return a.createElement(Te._l,{key:tn==null?void 0:tn.question_id,draggableId:(cn=tn==null?void 0:tn.question_id)==null?void 0:cn.toString(),index:Xt,isDragDisabled:ae},(Ja,ha)=>{var dt;return a.createElement("aside",gr(gr({ref:Ja.innerRef},Ja.draggableProps),Ja.dragHandleProps),a.createElement("div",{className:at.posWarp,id:tn.dragKey},Fn(tn,mn),a.createElement(oe.Z,{className:"pl30",align:"middle",gutter:20},Dt&&![5,6,7,8].includes(mn)&&a.createElement(ve.Z,null,a.createElement(Nd.Z,{state:tn==null?void 0:tn.is_wrong,onClick:()=>Dn({value:tn,type:mn})})),[5,6,8].includes(mn)&&(tn==null?void 0:tn.show_resubmit)&&a.createElement(ve.Z,null,a.createElement(Et.C,{dataSource:tn})),Dt&&[0].includes(mn)&&a.createElement(ve.Z,null,a.createElement(me.ZP,{style:{color:"#3061D0"},onClick:()=>{ta({value:tn})}},"\u589E\u8BBE\u6B63\u786E\u7B54\u6848"))),mn===4&&((dt=se==null?void 0:se.commonHeader)==null?void 0:dt.teacher_permission)&&a.createElement(_l,{questionInfo:tn}),a.createElement(ks.Z,null),!ae&&a.createElement("div",{className:at.pos},a.createElement("div",{className:at.tips},"\u62D6\u52A8\u53EF\u4EE5\u6539\u53D8\u8BD5\u9898\u663E\u793A\u987A\u5E8F"))))})}),Pt.placeholder))),Ut=zn=>({\u5355\u9009\u9898:2,\u591A\u9009\u9898:5,\u586B\u7A7A\u9898:2,\u5224\u65AD\u9898:2,\u7B80\u7B54\u9898:10,\u7F16\u7A0B\u9898:10,\u5B9E\u8BAD\u9898:5,\u7EC4\u5408\u9898:10})[zn]||0,Yt=(zn,mn)=>{Pe.current=Ut(mn),Fe.default.confirm({centered:!0,title:"\u6279\u91CF\u8BBE\u7F6E\u5206\u6570",content:a.createElement("div",{className:""},a.createElement("span",null,mn==="\u7EC4\u5408\u9898"?"\u7EC4\u5408\u9898\u4E2D\u7684\u6BCF\u5C0F\u9898":mn,"\uFF1A"),a.createElement(Re.Z,{min:1,defaultValue:Pe.current,onChange:pa=>{Pe.current=pa}}),a.createElement("span",{className:"ml5"},"\u5206/\u9898"),a.createElement("br",null),mn==="\u586B\u7A7A\u9898"&&a.createElement("div",{style:{color:"rgb(255, 0, 0)"}},"\u6BCF\u7A7A\u5206\u503C\u6309\u6BCF\u9898\u5206\u503C\u53D6\u5E73\u5747\u5206\u8BA1\u7B97")),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Fr(void 0,null,function*(){(yield(0,Ce.ZP)(`/api/exercises/${Ht.categoryId}/batch_set_score.json`,{method:"post",body:{question_type:zn,score:Pe.current}})).status!==-1&&Be()})})},ta=({value:zn}={})=>{var mn,pa;let Pt=(zn==null?void 0:zn.standard_answer)||[];const Nt=vn.confirm({centered:!0,icon:null,title:"\u589E\u8BBE\u6B63\u786E\u7B54\u6848",width:800,content:a.createElement(a.Fragment,null,"\u5F53\u524D\u8BD5\u9898\u7684\u6B63\u786E\u7B54\u6848\u4E3A ",(mn=zn==null?void 0:zn.standard_answer)==null?void 0:mn.map(Rt=>{var Xt;return(Xt=Tu.k4)==null?void 0:Xt[Rt-1]}),"\uFF0C\u8BF7\u9009\u62E9\u9700\u8981\u589E\u8BBE\u4E3A\u6B63\u786E\u7B54\u6848\u7684\u9009\u9879\u3002",a.createElement("br",null),"\u52FE\u9009\u63D0\u4EA4\u4E4B\u540E\uFF0C\u9009\u4E2D\u589E\u8BBE\u4E3A\u6B63\u786E\u7B54\u6848\u4EFB\u4E00\u9009\u9879\u7684\u5B66\u751F\u4E5F\u4F1A\u83B7\u5F97\u8BE5\u5C0F\u9898\u7684\u5206\u503C\uFF0C\u4F46\u4E0D\u4F1A\u4FEE\u6539\u5F53\u524D\u8BD5\u9898\u7684\u9898\u578B\u3002\u53D6\u6D88\u52FE\u9009\u63D0\u4EA4\u4E4B\u540E\uFF0C\u4E5F\u4F1A\u91CD\u65B0\u8BA1\u7B97\u5BF9\u5E94\u5B66\u751F\u7684\u5F97\u5206\u3002",a.createElement("br",null),a.createElement(Se.default.Group,{className:"flex-col mt20",options:(pa=zn==null?void 0:zn.question_choices)==null?void 0:pa.map((Rt,Xt)=>{var cn;return{value:Rt==null?void 0:Rt.choice_position,label:a.createElement(uu.Z,{className:"c-black font14",value:`${(cn=Tu.k4)==null?void 0:cn[Xt]}. ${Rt==null?void 0:Rt.choice_text}`}),disabled:Rt==null?void 0:Rt.origin_standard_answer}}),defaultValue:Pt,onChange:Rt=>{Pt=Rt}})),onOk:()=>Fr(void 0,null,function*(){const Rt=yield(0,Ce.ZP)(`/api/exercises/${Ht.categoryId}/questions/${zn==null?void 0:zn.question_id}/add_standard_answers.json`,{method:"put",body:{standard_answer:Pt}});(Rt==null?void 0:Rt.status)===0&&(pe.ZP.success("\u4FEE\u6539\u6210\u529F"),Ve({type:"exercise/editExercise",payload:{categoryId:Ht.categoryId,coursesId:Ht.coursesId}}))})})},nn=function(){var zn;const mn=xt();return(zn=ce==null?void 0:ce.exercise_questions)==null||zn.forEach(function(Pt,Nt){var Rt,Xt,cn,tn,Ja,ha,dt,Fa,ia,wu,Sa,Hn,Oa,tu,Ka,Ba;Pt.question_type===0&&((Xt=(Rt=mn[Pt.question_type])==null?void 0:Rt.items)==null||Xt.push(Pt)),Pt.question_type===1&&((tn=(cn=mn[Pt.question_type])==null?void 0:cn.items)==null||tn.push(Pt)),Pt.question_type===2&&((ha=(Ja=mn[Pt.question_type])==null?void 0:Ja.items)==null||ha.push(Pt)),Pt.question_type===3&&((Fa=(dt=mn[Pt.question_type])==null?void 0:dt.items)==null||Fa.push(Pt)),Pt.question_type===4&&((wu=(ia=mn[Pt.question_type])==null?void 0:ia.items)==null||wu.push(Pt)),Pt.question_type===5&&((Hn=(Sa=mn[Pt.question_type])==null?void 0:Sa.items)==null||Hn.push(Pt)),Pt.question_type===6&&((tu=(Oa=mn[Pt.question_type])==null?void 0:Oa.items)==null||tu.push(Pt)),Pt.question_type===7&&((Ba=(Ka=mn[Pt.question_type])==null?void 0:Ka.items)==null||Ba.push(Pt))}),ce==null?void 0:ce.map((Pt,Nt)=>{var Rt,Xt;return a.createElement(a.Fragment,{key:Nt},a.createElement("div",{className:"pl20",style:{display:"flex",alignItems:"center"}},a.createElement("span",{className:"font16 c-light-primary"},(0,de.EM)(Nt+1),"\u3001",Pt.name),a.createElement("span",{className:"c-grey-999"},"\uFF08\u5171",Pt.count,"\u9898",(Pt==null?void 0:Pt.question_type)===7?`\uFF0C\u5305\u542B${Pt.sub_count}\u5C0F\u9898`:"","\uFF1B\u5171",Pt.score,"\u5206\uFF09"),(Pt.question_type==5||Pt.question_type==6)&&a.createElement("div",{style:{flex:1,textAlign:"end",paddingRight:20}},Pt.question_type==5&&a.createElement(Se.default,{defaultChecked:(Xt=(Rt=se==null?void 0:se.editData)==null?void 0:Rt.exercise)==null?void 0:Xt.show_challenge_task_pass,onChange:cn=>Fr(this,null,function*(){let tn=yield(0,Ce.ZP)(`/api/exercises/${Ht.categoryId}/update_show_columns.json`,{method:"post",body:{show_challenge_task_pass:cn.target.checked}});(tn==null?void 0:tn.status)===0&&(pe.ZP.info("\u8BBE\u7F6E\u6210\u529F"),Ve({type:"exercise/editExercise",payload:gr({},Ht)}))}),style:{marginTop:20,marginBottom:20}},"\u5C55\u793A\u5173\u5361\u63CF\u8FF0"),(Pt==null?void 0:Pt.question_type)===6&&a.createElement("span",{style:{marginLeft:20},onClick:()=>{var cn,tn,Ja,ha;Fe.default.confirm({title:"\u7F16\u7A0B\u9898\u8BBE\u7F6E",icon:null,centered:!0,closable:!0,footer:null,content:a.createElement("div",null,a.createElement(Se.default,{defaultChecked:(tn=(cn=se==null?void 0:se.editData)==null?void 0:cn.exercise)==null?void 0:tn.show_hack_sets,onChange:dt=>Fr(this,null,function*(){let Fa=yield(0,Ce.ZP)(`/api/exercises/${Ht.categoryId}/update_show_columns.json`,{method:"post",body:{show_hack_sets:dt.target.checked}});(Fa==null?void 0:Fa.status)===0&&(pe.ZP.info("\u8BBE\u7F6E\u6210\u529F"),Fe.default.destroyAll(),Ve({type:"exercise/editExercise",payload:gr({},Ht)}))}),style:{marginTop:20,marginBottom:20}},"\u5C55\u793A\u6D4B\u8BD5\u7528\u4F8B"),a.createElement("br",null),a.createElement(Se.default,{defaultChecked:(ha=(Ja=se==null?void 0:se.editData)==null?void 0:Ja.exercise)==null?void 0:ha.show_hack_description,onChange:dt=>Fr(this,null,function*(){let Fa=yield(0,Ce.ZP)(`/api/exercises/${Ht.categoryId}/update_show_columns.json`,{method:"post",body:{show_hack_description:dt.target.checked}});(Fa==null?void 0:Fa.status)===0&&(pe.ZP.info("\u8BBE\u7F6E\u6210\u529F"),Fe.default.destroyAll(),Ve({type:"exercise/editExercise",payload:gr({},Ht)}))}),style:{marginBottom:10}},"\u5C55\u793A\u8BD5\u9898\u63CF\u8FF0"))})},className:"current c-light-primary font14 bold-400"},"\u7F16\u7A0B\u9898\u663E\u793A\u8BBE\u7F6E")),(et==null?void 0:et.includes(Pt==null?void 0:Pt.name))&&a.createElement(me.ZP,{onClick:()=>Yt(Pt==null?void 0:Pt.question_type,Pt==null?void 0:Pt.name),style:{float:"right"},type:"primary",ghost:!0},"\u6279\u91CF\u8BBE\u7F6E\u5F97\u5206")),Wt(Pt.items,Pt==null?void 0:Pt.question_type,Pt==null?void 0:Pt.name))})};return a.createElement("div",null," ",nn(),hn," ")};var yr=(0,he.connect)()(br),Sl=z(80193),ro=z(99543),kr=z(67294),nl=Object.defineProperty,vo=Object.getOwnPropertySymbols,Xr=Object.prototype.hasOwnProperty,Pl=Object.prototype.propertyIsEnumerable,zl=(ce,se,ae)=>se in ce?nl(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,kl=(ce,se)=>{for(var ae in se||(se={}))Xr.call(se,ae)&&zl(ce,ae,se[ae]);if(vo)for(var ae of vo(se))Pl.call(se,ae)&&zl(ce,ae,se[ae]);return ce},Eo=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const $r=({exercise:ce,loading:se,dispatch:ae,activeTabs:_e})=>{var pt;const Ve=(0,he.useParams)(),[Dt]=(0,a.useState)(kl(kl({},Ve),{page:1,per_page:10})),{editData:et,commonHeader:{exercise_status:Be}}=ce;(0,a.useEffect)(()=>{_e==="2"&&Pe()},[Ve.categoryId,_e]);const Pe=()=>Eo(void 0,null,function*(){yield(0,Za.w)(Ve.coursesId,Ve.categoryId,"",2,3),ae({type:"exercise/editExercise",payload:kl({},Dt)})});return(0,a.useEffect)(()=>(ae({type:"globalSetting/onlyShowBackTopToggle",payload:!1}),ae({type:"globalSetting/onlyShowBackTopIconToggle",payload:!1}),()=>{ae({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),ae({type:"globalSetting/onlyShowBackTopIconToggle",payload:!0})}),[]),kr.createElement("div",null,kr.createElement("div",{style:{display:"inline-flex",background:"rgba(233, 146, 55, 0.05)",borderRadius:4,height:40,lineHeight:"40px",width:"100%",padding:"0px 10px",alignItems:"center",marginTop:20}},kr.createElement(b.Z,{style:{marginRight:5,color:"#E99237"}}),kr.createElement("span",{style:{flex:1,color:"#E99237"}},"\u53D1\u5E03\u540E\u7684\u8BD5\u5377\u4E0D\u5141\u8BB8\u8FDB\u884C\u589E\u52A0/\u5220\u9664\u8BD5\u9898\u548C\u4FEE\u6539\u5206\u503C\u7B49\u64CD\u4F5C\uFF0C\u82E5\u9700\u8981\u4E8C\u6B21\u4F7F\u7528\uFF0C\u53EF\u5C06\u8BD5\u5377\u52A0\u5165\u8BD5\u5377\u5E93\u4E2D\u8FDB\u884C\u7F16\u8F91"),kr.createElement(me.ZP,{onClick:()=>{ae({type:"exercise/setActionTabs",payload:{key:"\u5355\u4E2A\u52A0\u5165\u8BD5\u5377\u5E93",selectArrs:[Ve.categoryId]}})}},"\u52A0\u5165\u8BD5\u5377\u5E93")),kr.createElement("section",{className:"minH1050 mb20 pt30 pb30 pl60 bg-white relative"},kr.createElement(jt.Z,{spinning:se["exercise/editExercise"]},kr.createElement(Sl.Z,{sealStyle:{left:-540},isPreview:!0,activeTabs:_e,showExportBtn:!0}),kr.createElement(ks.Z,null),kr.createElement(yr,{data:et==null?void 0:et.exercise_question_types,exercise:ce,isDragDisabled:!0,markBtnVisible:Be===3&&(((pt=et==null?void 0:et.exercise)==null?void 0:pt.is_creator)||(0,On.Ny)())}),kr.createElement(ro.Z,null))))};var $l=(0,he.connect)(({exercise:ce,loading:se})=>({exercise:ce,loading:se.effects}))($r),xl={flex_box_center:"flex_box_center___VaA8k",flex_space_between:"flex_space_between___TqHqG",flex_box_vertical_center:"flex_box_vertical_center___lRanp",flex_box_center_end:"flex_box_center_end___BPjtN",flex_box_column:"flex_box_column___jWLBM",title:"title___L0cG8",search:"search____WeIQ",head:"head___xmSl4",row:"row___HJKId",btns:"btns___m0Vc7",sort:"sort___qMLQP"},ni=z(246),bo=z.n(ni),Qo=z(14375),di=z(28575),ku=z(67294),Mo=Object.defineProperty,Jr=Object.defineProperties,Fo=Object.getOwnPropertyDescriptors,mi=Object.getOwnPropertySymbols,Hi=Object.prototype.hasOwnProperty,$i=Object.prototype.propertyIsEnumerable,gi=(ce,se,ae)=>se in ce?Mo(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,Lo=(ce,se)=>{for(var ae in se||(se={}))Hi.call(se,ae)&&gi(ce,ae,se[ae]);if(mi)for(var ae of mi(se))$i.call(se,ae)&&gi(ce,ae,se[ae]);return ce},_o=(ce,se)=>Jr(ce,Fo(se)),Wi=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const zs=({exercise:ce,loading:se,dispatch:ae,cb:_e})=>{const pt=_o(Lo({},(0,he.useParams)()),{page:0,limit:50,one:null,two:null,save_one:null,save_two:null,sort:null,course_group:"",student_id:"",realname:"",save_course_group:"",save_student_id:"",save_realname:"",commit_types:[0],course_group_ids:[]});let[Ve,Dt]=(0,a.useState)(Lo({},pt)),[et,Be]=(0,a.useState)([]);const[Pe,Ht]=(0,a.useState)(!0),[vn,hn]=(0,a.useState)(!0),[xt,Gt]=(0,a.useState)(0),[Bn,Dn]=(0,a.useState)(!1),[Fn,Wt]=(0,a.useState)([]),[Ut,Yt]=(0,a.useState)([]),[ta,nn]=(0,a.useState)([]),[zn]=fe.default.useForm(),[mn,pa]=(0,a.useState)("");(0,a.useEffect)(()=>{ce.actionTabs.key==="\u6253\u56DE\u91CD\u505A"&&(et=[],Pt(),Nt(1))},[ce.actionTabs.key,Ve.commit_types]);const Pt=()=>Wi(void 0,null,function*(){var Fa,ia;const wu=yield(0,Ce.ZP)(`/api/exercises/${Ve.categoryId}/header_info.json`,{method:"get"});(wu==null?void 0:wu.status)===0&&(nn([...(Fa=wu==null?void 0:wu.data)==null?void 0:Fa.course_groups]),Yt([...(ia=wu==null?void 0:wu.data)==null?void 0:ia.course_groups]))}),Nt=Fa=>Wi(void 0,null,function*(){var ia;Fa==1&&(et=[]),Ht(!0),Ve.page=Fa,hn(!0);const wu=yield ae({type:"exercise/getRedoModal",payload:_o(Lo({},Ve),{commit_types:Ve.commit_types.includes(0)?[]:Ve.commit_types,score:((Ve==null?void 0:Ve.one)||0)+`${Ve!=null&&Ve.two?","+(Ve==null?void 0:Ve.two):""}`})});((ia=wu==null?void 0:wu.exercise_users)==null?void 0:ia.length){if(Fa.target.checked){const ia=et==null?void 0:et.map(wu=>wu.user_id);Wt(ia)}else Wt([])},Xt=Fa=>{Ve.course_group=Ve.save_course_group,Ve.student_id=Ve.save_student_id,Ve.realname=Ve.save_realname,Dt(Lo({},Ve)),Be([]),Nt(1)},cn=()=>{Ve.one=Ve.save_one,Ve.two=Ve.save_two,Gt(xt+1),Dt(Lo({},Ve)),Be([]),Nt(1)},tn=()=>{(Ve==null?void 0:Ve.sort)===null?Ve.sort="asc":(Ve==null?void 0:Ve.sort)==="asc"?Ve.sort="desc":(Ve==null?void 0:Ve.sort)==="desc"&&(Ve.sort=null),Dt(Lo({},Ve)),Be([]),Nt(1)},Ja=()=>{let Fa=!1;const ia=()=>Wi(void 0,null,function*(){(yield(0,ne.q6)(_o(Lo({},Ve),{is_reset:Fa,user_ids:Fn}))).status===0&&(pe.ZP.success("\u64CD\u4F5C\u6210\u529F"),_e&&_e(),ae({type:"exercise/setActionTabs",payload:{}})),ae({type:"exercise/getCommonHeader",payload:Lo({},Ve)})});Fe.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ku.createElement("div",{style:{margin:"13px 0 0px 0"}},ku.createElement("p",null,"\u786E\u5B9A\u5C06\u9009\u4E2D\u7684\u5B66\u751F\u6253\u56DE\u91CD\u505A\u5417\uFF1F"),ku.createElement(Se.default,{onChange:wu=>{Fa=wu.target.checked}},"\u6E05\u7A7A\u5B66\u751F\u7684\u7B54\u9898\u8BB0\u5F55")),onOk:ia})},ha=Fa=>{const ia=parseInt(Fa);return isNaN(ia)?"":ia},dt=(Fa,ia)=>Fa===0?ku.createElement("span",{style:{color:"#666666"}},"\u672A\u5F00\u59CB"):Fa===1?ku.createElement("span",{style:{color:"#DF3042"}},!ia.is_make_up&&"\u8003\u8BD5\u4E2D",ia.is_make_up&&"\u8003\u8BD5\u4E2D (\u8865\u8003)"):Fa===2?ku.createElement("span",{style:{color:"#5AB891"}},!ia.is_make_up&&!ia.is_force_commit&&"\u5DF2\u4EA4\u5377",ia.is_make_up&&!ia.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003)",ia.is_make_up&&ia.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003/\u5F3A\u5236)",!ia.is_make_up&&ia.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u5F3A\u5236)"):ku.createElement("span",{style:{color:"#5AB891"}},!ia.is_make_up&&!ia.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54",ia.is_make_up&&!ia.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003)",ia.is_make_up&&ia.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003/\u5F3A\u5236)",!ia.is_make_up&&ia.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u5F3A\u5236)");return ku.createElement(Fe.default,{centered:!0,title:"\u6253\u56DE\u91CD\u505A",open:ce.actionTabs.key==="\u6253\u56DE\u91CD\u505A",width:1e3,bodyStyle:{minHeight:200},confirmLoading:Bn,afterClose:()=>{Dt(Lo({},pt)),Wt([]),Be([]),pa(""),Yt([]),nn([]),zn.resetFields()},onOk:Ja,onCancel:()=>{ae({type:"exercise/setActionTabs",payload:{}})}},ku.createElement(oe.Z,{align:"middle",gutter:20},ku.createElement(ve.Z,null,ku.createElement("span",null,"\u63D0\u4EA4\u72B6\u6001")),ku.createElement(ve.Z,null,ku.createElement(Se.default,{className:"mr10",onChange:Fa=>{Dt(_o(Lo({},Ve),{commit_types:[0]}))},checked:Ve==null?void 0:Ve.commit_types.includes(0)},"\u5168\u90E8"),ku.createElement(Se.default.Group,{options:[{label:"\u5DF2\u4EA4\u5377",value:1},{label:"\u5DF2\u4EA4\u5377\uFF08\u5F3A\u5236\uFF09",value:2},{label:"\u5DF2\u4EA4\u5377/\u672A\u7B54",value:3},{label:"\u5DF2\u4EA4\u5377/\u672A\u7B54\uFF08\u5F3A\u5236\uFF09",value:4}],value:Ve.commit_types,onChange:Fa=>{Dt(_o(Lo({},Ve),{commit_types:Fa}))}}))),ku.createElement(oe.Z,{className:"mt20 mb20",align:"middle",justify:"space-between"},ku.createElement(ve.Z,null,ku.createElement(oe.Z,{align:"middle",gutter:20},ku.createElement(ve.Z,null,ku.createElement("span",null,"\u5206\u6570\u533A\u95F4")),ku.createElement(ve.Z,null,ku.createElement(Re.Z,{parser:ha,onChange:Fa=>{Dt(_o(Lo({},Ve),{save_one:Fa}))},value:Ve.save_one,min:0}),ku.createElement("span",{className:"mr10 ml10"},"-"),ku.createElement(Re.Z,{parser:ha,onChange:Fa=>{Dt(_o(Lo({},Ve),{save_two:Fa}))},value:Ve.save_two,min:0})),ku.createElement(ve.Z,null,ku.createElement(me.ZP,{onClick:()=>{Dt(_o(Lo({},Ve),{one:"",two:"",save_one:"",save_two:""}))}},"\u6E05\u7A7A")),ku.createElement(ve.Z,null,ku.createElement(me.ZP,{type:"primary",onClick:cn},"\u786E\u8BA4")))),ku.createElement(ve.Z,null,ku.createElement(oe.Z,{wrap:!1,align:"middle",gutter:20},ku.createElement(ve.Z,null,ku.createElement(Le.default.Search,{value:Ve.save_realname,style:{width:320},placeholder:"\u8BF7\u8F93\u5165\u5B66\u751F\u59D3\u540D/\u5B66\u53F7\u8FDB\u884C\u641C\u7D22",onChange:Fa=>{Ve.save_realname=Fa.target.value,Dt(Lo({},Ve))},onSearch:Xt})),ku.createElement(ve.Z,null,ku.createElement(E.Z,{dropdownRender:Fa=>ku.createElement("div",{className:"bg-white",style:{maxWidth:200,border:"1px solid #f7f7f7"}},ku.createElement(fe.default,{form:zn,initialValues:{course_group_ids:[]},onValuesChange:ia=>{Dt(Lo(Lo({},Ve),ia))},onFinish:()=>{Nt(1)}},ku.createElement("div",{style:{maxHeight:500,overflow:"auto",padding:"10px"}},ku.createElement(Le.default,{allowClear:!0,suffix:ku.createElement("i",{className:`iconfont icon-sousuo9 font14 ${xl.searchIcon}`}),className:xl.search,placeholder:"\u73ED\u7EA7\u540D\u79F0\u68C0\u7D22",size:"middle",value:mn,onChange:ia=>Wi(void 0,null,function*(){var wu;pa((wu=ia==null?void 0:ia.target)==null?void 0:wu.value),nn([...Ut.filter(Sa=>{var Hn;return(Hn=Sa==null?void 0:Sa.exercise_group_name)==null?void 0:Hn.includes(ia.target.value)})])})}),ku.createElement(fe.default.Item,{name:"course_group_ids",valuePropName:"checked"},ku.createElement(Se.default.Group,null,ku.createElement(ze.Z,{direction:"vertical",size:10},ta==null?void 0:ta.map((ia,wu)=>ku.createElement(Se.default,{key:wu,value:ia==null?void 0:ia.exercise_group_id},ia==null?void 0:ia.exercise_group_name)))))),ku.createElement(oe.Z,{wrap:!1,align:"middle"},ku.createElement(ve.Z,null,ku.createElement(me.ZP,{type:"link",htmlType:"submit"},"\u786E\u8BA4")),ku.createElement(ve.Z,null,ku.createElement(me.ZP,{type:"link",htmlType:"reset",onClick:()=>{Dt(_o(Lo({},Ve),{course_group_ids:[]})),nn([...Ut]),pa("")}},"\u91CD\u7F6E")))))},ku.createElement("a",{onClick:Fa=>Fa.preventDefault()}," ",ku.createElement(ze.Z,null," \u5206\u73ED ",ku.createElement("i",{className:"iconfont icon-a-bianzu11 font12"})," "))))))),ku.createElement("div",{className:xl.head,style:(et==null?void 0:et.length)>5?{paddingRight:15}:{width:944}},ku.createElement("div",null,ku.createElement(Se.default,{className:"font14",checked:et!=null&&et.length?(Fn==null?void 0:Fn.length)===(et==null?void 0:et.length):!1,onChange:Rt},"\u59D3\u540D")),ku.createElement("div",null,ku.createElement("span",null,"\u5B66\u53F7")),ku.createElement("div",null,ku.createElement("span",null,"\u5206\u73ED")),ku.createElement("div",null,ku.createElement("span",null,"\u63D0\u4EA4\u72B6\u6001")),ku.createElement("div",{className:xl.sort,onClick:tn},ku.createElement("span",null,"\u6210\u7EE9\u5206\u6570"),ku.createElement("aside",null,ku.createElement(di.Z,{style:{color:(Ve==null?void 0:Ve.sort)==="asc"?"#0152d9":"#bfbfbf"}}),ku.createElement(te.Z,{style:{color:(Ve==null?void 0:Ve.sort)==="desc"?"#0152d9":"#bfbfbf"}})))),ku.createElement("div",{style:{height:260,overflow:"auto"}},ku.createElement(bo(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:()=>{!vn&&Pe&&Nt((Ve==null?void 0:Ve.page)+1)},hasMore:!vn&&Pe,useWindow:!1},ku.createElement(Se.default.Group,{style:{width:"100%"},value:Fn,onChange:Fa=>{console.log(Fa,444),Wt(Fa)}},et==null?void 0:et.map(function(Fa,ia){return ku.createElement("div",{key:Fa.user_id,className:xl.row},ku.createElement("div",null,ku.createElement(Se.default,{className:"font14",value:Fa.user_id},Fa.user_name)),ku.createElement("div",null,Fa.student_id),ku.createElement("div",null,Fa.course_group_name),ku.createElement("div",null,dt(Fa.commit_status,Fa)),ku.createElement("div",{className:"pl10"},ku.createElement("span",null,Fa.user_score)))})),ku.createElement(jt.Z,{className:"edu-ant-spin",spinning:vn}))),ku.createElement("div",{className:xl.title},ku.createElement("img",{style:{objectFit:"contain"},src:Qo.Z}),"\u6253\u56DE\u4E4B\u540E\u5B66\u751F\u5C06\u5F97\u5230\u4E00\u6B21\u91CD\u65B0\u7B54\u9898\u7684\u673A\u4F1A\u3002"))};var us=(0,he.connect)(({exercise:ce,loading:se})=>({exercise:ce,loading:se}))(zs),Il={flex_box_center:"flex_box_center___PohMo",flex_space_between:"flex_space_between___ZyAuO",flex_box_vertical_center:"flex_box_vertical_center___eh0B6",flex_box_center_end:"flex_box_center_end___O1yBK",flex_box_column:"flex_box_column___rCOUW",customModal:"customModal___gYgfZ",checking:"checking___70GE9",content:"content___FtAfN",group:"group___kIfCW",footer:"footer___A6aEg",scoremodal:"scoremodal___FKFBU",selectWrapper:"selectWrapper___J8t1k",allqingchu:"allqingchu___UjfNm",title:"title___tB39D",search:"search___Pnsp3",searchIcon:"searchIcon___mVW2x"},Pr=z(67294),Hl=Object.defineProperty,yl=Object.getOwnPropertySymbols,el=Object.prototype.hasOwnProperty,Ll=Object.prototype.propertyIsEnumerable,ie=(ce,se,ae)=>se in ce?Hl(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,we=(ce,se)=>{for(var ae in se||(se={}))el.call(se,ae)&&ie(ce,ae,se[ae]);if(yl)for(var ae of yl(se))Ll.call(se,ae)&&ie(ce,ae,se[ae]);return ce},Oe=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Qe=({exercise:ce,dispatch:se,onOk:ae})=>{const _e=(0,he.useParams)(),[pt,Ve]=(0,a.useState)([]),[Dt,et]=(0,a.useState)(),[Be,Pe]=(0,a.useState)([]),[Ht,vn]=(0,a.useState)(!0),[hn,xt]=(0,a.useState)(!1),[Gt]=fe.default.useForm(),[Bn,Dn]=(0,a.useState)({page:1,limit:10,is_random:"",exercise_status:""}),Fn=[{title:"\u5E8F\u53F7",dataIndex:"id",key:"id",render:(nn,zn,mn)=>Bn.limit*(Bn.page-1)+mn+1},{title:"\u8865\u8003\u8BD5\u5377",dataIndex:"exercise_name",key:"id",width:200,render:(nn,zn,mn)=>Pr.createElement("span",null,nn||"- -")},{title:"\u7C7B\u578B",dataIndex:"is_random",key:"is_random",render:(nn,zn,mn)=>Pr.createElement("span",null,nn?"\u968F\u673A\u7EC4\u5377":"\u4EBA\u5DE5\u7EC4\u5377")},{title:"\u8BD5\u9898\u6570",dataIndex:"question_count",key:"question_count",render:(nn,zn,mn)=>Pr.createElement("span",null,nn||"- -")},{title:"\u603B\u5206",dataIndex:"total_score",key:"total_score",render:(nn,zn,mn)=>Pr.createElement("span",null,nn||"- -")},{title:"\u8865\u8003\u4EBA\u6570",dataIndex:"exercise_user_count",key:"exercise_user_count",render:(nn,zn,mn)=>Pr.createElement("span",null,nn||"- -")},{title:"\u8003\u8BD5\u72B6\u6001",dataIndex:"exercise_status",key:"exercise_status",render:(nn,zn,mn)=>Pr.createElement("span",null,nn===1?"\u672A\u5F00\u59CB":nn===2?"\u8003\u8BD5\u4E2D":"\u5DF2\u622A\u6B62")},{title:"\u64CD\u4F5C",dataIndex:"id",key:"id",width:80,align:"right",render:(nn,zn,mn)=>Pr.createElement("div",{style:{flex:1,textAlign:"right"}},Pr.createElement("a",{onClick:()=>{(0,de.xg)(`/classrooms/${_e.coursesId}/exercise/${zn.id}/detail?random=${zn.is_random}`)}},"\u67E5\u770B"))}].filter(nn=>!!nn);(0,a.useEffect)(()=>{ce.actionTabs.key==="\u8865\u8003\u8BB0\u5F55"&&Wt(Bn)},[ce.actionTabs.key]);const Wt=nn=>Oe(void 0,null,function*(){var zn,mn;vn(!0);const pa=yield(0,Ce.ZP)(`/api/exercises/${_e==null?void 0:_e.categoryId}/make_up_records.json`,{method:"get",params:we({},nn)});pa&&(Ve(((zn=pa==null?void 0:pa.data)==null?void 0:zn.make_up_exercises)||[]),et((mn=pa==null?void 0:pa.data)==null?void 0:mn.count)),vn(!1)}),Ut=()=>{se({type:"exercise/setActionTabs",payload:{}})},Yt=()=>{ae(Be)},ta=nn=>{Pe(nn),xt(nn.length===pt.length)};return Pr.createElement(Fe.default,{centered:!0,afterClose:()=>{Pe([]),xt(!1),Gt.resetFields(),Dn({page:1,limit:10,is_random:"",exercise_status:""})},title:"\u8865\u8003\u8BB0\u5F55",className:Il.scoremodal,open:ce.actionTabs.key==="\u8865\u8003\u8BB0\u5F55",width:1e3,onOk:()=>se({type:"exercise/setActionTabs",payload:{}}),onCancel:Ut},Pr.createElement(fe.default,{layout:"inline",form:Gt,onValuesChange:(nn,zn)=>{console.log(nn),!(nn.keywords||nn.keywords==="")&&Gt.submit()},onFinish:nn=>{console.log(nn),Dn(we(we({},Bn),nn)),Wt(we(we({},Bn),nn))},initialValues:{is_random:"",exercise_status:""}},Pr.createElement(fe.default.Item,{name:"is_random"},Pr.createElement(ft.default,{className:Il.selectWrapper,placeholder:"\u5168\u90E8\u7C7B\u578B",style:{width:160},size:"middle"},Pr.createElement(ft.default.Option,{value:""},"\u5168\u90E8\u7C7B\u578B"),Pr.createElement(ft.default.Option,{value:0},"\u4EBA\u5DE5\u7EC4\u5377"),Pr.createElement(ft.default.Option,{value:1},"\u968F\u673A\u7EC4\u5377"))),Pr.createElement(fe.default.Item,{name:"exercise_status"},Pr.createElement(ft.default,{className:Il.selectWrapper,placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:160},size:"middle"},Pr.createElement(ft.default.Option,{value:""},"\u5168\u90E8\u72B6\u6001"),Pr.createElement(ft.default.Option,{value:1},"\u672A\u5F00\u59CB"),Pr.createElement(ft.default.Option,{value:2},"\u8003\u8BD5\u4E2D"),Pr.createElement(ft.default.Option,{value:3},"\u5DF2\u622A\u6B62"))),Pr.createElement(fe.default.Item,{style:{flex:"0 0 auto",marginRight:0,marginLeft:"auto"},name:"keywords"},Pr.createElement(Le.default.Search,{className:Il.search,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0\u8FDB\u884C\u641C\u7D22",allowClear:!0,suffix:Pr.createElement("i",{className:`iconfont icon-sousuo9 font14 ${Il.searchIcon}`,onClick:()=>Gt.submit()}),onSearch:nn=>{Gt.submit()}}))),Pr.createElement(x.default,{style:{marginTop:20,marginBottom:15},scroll:{y:260},dataSource:pt,pagination:!1,loading:Ht,columns:Fn}),(pt==null?void 0:pt.length)>0&&Pr.createElement(He.Z,{current:Bn.page,total:Dt,style:{marginBottom:20},defaultPageSize:Bn.limit,showTotal:nn=>Pr.createElement("span",null,"\u5171\xA0",Pr.createElement("span",{style:{color:"#165DFF"}},nn),"\xA0\u6761\u6570\u636E"),pageSize:Bn.limit,onChange:(nn,zn)=>{Bn.page=nn,Bn.limit=zn,Dn(we({},Bn)),Wt(we({},Bn))}}))};var mt=(0,he.connect)(({exercise:ce})=>({exercise:ce}))(Qe),It={info:"info___FCajO",info_name:"info_name___nVPNy",info_studeng_id:"info_studeng_id___afKvd",info_group:"info_group___xadCu"},$t="data:image/jpeg;base64,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",dn=Object.defineProperty,ea=Object.defineProperties,aa=Object.getOwnPropertyDescriptors,wn=Object.getOwnPropertySymbols,ja=Object.prototype.hasOwnProperty,$a=Object.prototype.propertyIsEnumerable,Ra=(ce,se,ae)=>se in ce?dn(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,wa=(ce,se)=>{for(var ae in se||(se={}))ja.call(se,ae)&&Ra(ce,ae,se[ae]);if(wn)for(var ae of wn(se))$a.call(se,ae)&&Ra(ce,ae,se[ae]);return ce},eu=(ce,se)=>ea(ce,aa(se)),za=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const _a=({exercise:ce,loading:se,dispatch:ae,cb:_e})=>{const pt=eu(wa({},(0,he.useParams)()),{page:0,limit:20});let[Ve,Dt]=(0,a.useState)(wa({},pt)),[et,Be]=(0,a.useState)([]),[Pe,Ht]=(0,a.useState)({});const[vn,hn]=(0,a.useState)(!0),[xt,Gt]=(0,a.useState)(!0);(0,a.useEffect)(()=>{ce.actionTabs.key==="\u6253\u56DE\u8BB0\u5F55"&&(et=[],Dn(1))},[ce.actionTabs.key]);const Bn=[{title:"\u6253\u56DE\u6B21\u6570",ellipsis:!0,dataIndex:"index",align:"center",render:(Fn,Wt,Ut)=>a.createElement(Ae.Z,{placement:"bottom",title:Ut+1},a.createElement("span",null,Ut+1))},{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"submission_time",ellipsis:!0,align:"center",render:Fn=>a.createElement(Ae.Z,{placement:"bottom",title:Ge()(Fn).format("YYYY-MM-DD HH:mm")},a.createElement("span",null,Ge()(Fn).format("YYYY-MM-DD HH:mm")))},{title:"\u6253\u56DE\u65F6\u95F4",dataIndex:"created_at",align:"center",render:Fn=>a.createElement(Ae.Z,{placement:"bottom",title:Ge()(Fn).format("YYYY-MM-DD HH:mm")},a.createElement("span",null,Ge()(Fn).format("YYYY-MM-DD HH:mm")))},{title:"\u8003\u8BD5\u5F97\u5206",dataIndex:"score",ellipsis:!0,align:"center",render:Fn=>a.createElement(Ae.Z,{placement:"bottom",title:Fn},a.createElement("span",null,Fn||"--"))},{title:"\u64CD\u4F5C\u4EBA",dataIndex:"option_user_name",ellipsis:!0,align:"center",render:Fn=>a.createElement(Ae.Z,{placement:"bottom",title:Fn},a.createElement("span",null,Fn||"--"))}],Dn=Fn=>za(void 0,null,function*(){var Wt;Fn==1&&(et=[]),hn(!0),Ve.page=Fn,Ve.student_id=ce.actionTabs.student_id,Gt(!0);const Ut=yield ae({type:"exercise/getRedoListModal",payload:eu(wa({},Ve),{score:((Ve==null?void 0:Ve.one)||0)+`${Ve!=null&&Ve.two?","+(Ve==null?void 0:Ve.two):""}`})});Ht(wa({},Ut)),((Wt=Ut==null?void 0:Ut.student_redo_lists)==null?void 0:Wt.length){Dt(wa({},pt)),Be([])},onCancel:()=>{ae({type:"exercise/setActionTabs",payload:{}})}},a.createElement("div",{className:It.info},a.createElement("div",{className:It.info_name},"\u59D3\u540D\uFF1A",(Pe==null?void 0:Pe.name)||"--"),a.createElement("div",{className:It.info_studeng_id},"\u5B66\u53F7\uFF1A",(Pe==null?void 0:Pe.student_id)||"--"),a.createElement("div",{className:It.info_group},"\u5206\u73ED\uFF1A",(Pe==null?void 0:Pe.course_group_name)||"--")),(et==null?void 0:et.length)===0&&!xt&&a.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},a.createElement("img",{src:$t,width:"100",alt:""}),a.createElement("br",null),a.createElement("p",{className:"mt20"},"\u8BE5\u5B66\u751F\u65E0\u6253\u56DE\u8BB0\u5F55!")),((et==null?void 0:et.length)>0||xt)&&a.createElement("section",null,a.createElement("div",{className:"flexd-table-header mt20"},a.createElement(x.default,{pagination:!1,dataSource:[],columns:Bn})),a.createElement("div",{style:{maxHeight:170,overflow:"auto"}},a.createElement(bo(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:()=>{!xt&&vn&&Dn((Ve==null?void 0:Ve.page)+1)},hasMore:vn,useWindow:!1},a.createElement(x.default,{loading:xt,showHeader:!1,pagination:!1,rowKey:"submission_time",dataSource:et,columns:Bn})))))};var Iu=(0,he.connect)(({exercise:ce,loading:se})=>({exercise:ce,loading:se}))(_a),Lu=z(28400),ru=z(72911),Ku={flex_box_center:"flex_box_center___WY2F6",flex_space_between:"flex_space_between___iUTlt",flex_box_vertical_center:"flex_box_vertical_center___mDkSS",flex_box_center_end:"flex_box_center_end___Wn6Ih",flex_box_column:"flex_box_column___fErgP",customModal:"customModal___WBifT",checking:"checking___THUYH",content:"content___OYuOv",group:"group___mn5IG",footer:"footer___yBjyD"},Fu=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Ou=({exercise:ce,dispatch:se,onOk:ae})=>{const _e=(0,he.useParams)(),[pt,Ve]=(0,a.useState)([]),[Dt,et]=(0,a.useState)([]),[Be,Pe]=(0,a.useState)(!0),[Ht,vn]=(0,a.useState)(!1);(0,a.useEffect)(()=>{ce.actionTabs.key==="\u4EE3\u7801\u67E5\u91CD"&&hn()},[ce.actionTabs.key]);const hn=()=>Fu(void 0,null,function*(){Pe(!0);const Dn=yield(0,Ce.ZP)(`/api/courses/${_e==null?void 0:_e.coursesId}/exercises/exercise_course_groups.json`,{method:"get",params:{id:_e==null?void 0:_e.categoryId}});Dn&&Ve((Dn==null?void 0:Dn.course_groups)||[]),Pe(!1)}),xt=()=>{se({type:"exercise/setActionTabs",payload:{}})},Gt=()=>{ae(Dt)},Bn=Dn=>{et(Dn),vn(Dn.length===pt.length)};return a.createElement(Fe.default,{centered:!0,afterClose:()=>{et([]),vn(!1)},title:"\u4EE3\u7801\u67E5\u91CD",open:ce.actionTabs.key==="\u4EE3\u7801\u67E5\u91CD",footer:null,width:718,wrapClassName:Ku.customModal,onCancel:xt},a.createElement("aside",{className:Ku.checking},a.createElement("div",{className:Ku.content},a.createElement("div",{className:Ku.group},pt.length>0?a.createElement("p",null,"\u9009\u62E9\u73ED\u7EA7\uFF1A"):a.createElement("p",null,"\u6682\u65E0\u5206\u73ED"),a.createElement(Se.default.Group,{value:Dt,onChange:Bn},pt.map(Dn=>a.createElement(Se.default,{key:Dn.id,value:Dn.id},Dn.name))))),a.createElement("div",{className:Ku.footer},a.createElement(Se.default,{checked:Ht,onChange:Dn=>{const Fn=Dn.target.checked?pt.map(Wt=>Wt.id):[];et(Fn),vn(Dn.target.checked)}},"\u5168\u9009"),a.createElement(me.ZP,{onClick:xt},"\u53D6\u6D88"),a.createElement(me.ZP,{onClick:Gt,type:"primary"},"\u786E\u8BA4"))))};var xr=(0,he.connect)(({exercise:ce})=>({exercise:ce}))(Ou),Nr=z(77722),pu={flex_box_center:"flex_box_center___Onpg9",flex_space_between:"flex_space_between___nYRpC",flex_box_vertical_center:"flex_box_vertical_center___NGA7H",flex_box_center_end:"flex_box_center_end___a2dUm",flex_box_column:"flex_box_column___c5CN2",formDom:"formDom___ahHwX",form:"form___TDc55",fjpy:"fjpy___dshUa",tips:"tips___sHetw",buttonFixed:"buttonFixed___oKPiL",buttonWrap:"buttonWrap___LDtpG",button:"button___ydPRd",scoreSettingWrapper:"scoreSettingWrapper___L7weV",ipItem:"ipItem___nAf_u",ipWrp:"ipWrp___x3LTQ",tagWrap:"tagWrap___PMN4b",tag:"tag___Auf1J",padding:"padding___veqnd",unlockKeyWrapper:"unlockKeyWrapper___UOERJ",unlockKeyInput:"unlockKeyInput___ItI9I",mb40:"mb40___eMjps",mb28:"mb28___ZxJPY",mainRuleText:"mainRuleText___U5cJS",minorRuleText:"minorRuleText___aZezx",contentInterval:"contentInterval___slPV9",CompetitionsListzhezhao:"CompetitionsListzhezhao___bTlUp",numberInput:"numberInput____ONIt",publishRuleIndex:"publishRuleIndex___s2cVA",publishRuleContent:"publishRuleContent___HohmS",groupSelector:"groupSelector___Zxqsw",addAndDelete:"addAndDelete___saTVM",deleteIcon:"deleteIcon___vnkck",addIcon:"addIcon___Yz7Ef",cancelBtn:"cancelBtn___p8Klw",submitBtn:"submitBtn___pmm2G",remindForm:"remindForm___K6X21",remindItem:"remindItem___Z7rRb",remindInput:"remindInput___r_wq3",addRemind:"addRemind___jbnIp",disabled:"disabled___ebijK",removeStyle:"removeStyle___ObL0w",new_title:"new_title___Te4vd",multiple_select:"multiple_select___K8cHJ",title_icon:"title_icon___s6qSK",title:"title___N_aja"},pr=z(67294),il=Object.defineProperty,ur=Object.defineProperties,Au=Object.getOwnPropertyDescriptors,Vu=Object.getOwnPropertySymbols,Ju=Object.prototype.hasOwnProperty,qr=Object.prototype.propertyIsEnumerable,Nl=(ce,se,ae)=>se in ce?il(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,qu=(ce,se)=>{for(var ae in se||(se={}))Ju.call(se,ae)&&Nl(ce,ae,se[ae]);if(Vu)for(var ae of Vu(se))qr.call(se,ae)&&Nl(ce,ae,se[ae]);return ce},fr=(ce,se)=>ur(ce,Au(se)),fu=({disabled:ce,time:se})=>pr.createElement(fe.default.List,{name:"exercise_events",rules:[{validator(ae,_e){var pt,Ve;const Dt=new Set;for(const et of _e){if(Dt.has(et.reminder_time))return Promise.reject(new Error("\u7B54\u9898\u63D0\u9192\u65F6\u95F4\u4E0D\u5141\u8BB8\u91CD\u590D\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E"));if(et.reminder_time>se)return Promise.reject(new Error("\u7B54\u9898\u63D0\u9192\u65F6\u95F4\u4E0D\u80FD\u5927\u4E8E\u7B54\u9898\u65F6\u957F"));if(Dt.add(et.reminder_time),!((Ve=(pt=et.reminder_content)==null?void 0:pt.trim())!=null&&Ve.length))return Promise.reject(new Error("\u63D0\u9192\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(ae,{add:_e,remove:pt})=>pr.createElement("div",{className:pu.remindForm},ae.length>0&&pr.createElement("div",null,ae.map((Ve,Dt)=>pr.createElement(oe.Z,{key:Ve.key,align:"middle",wrap:!1,className:pu.remindItem},pr.createElement("span",{className:"mr10",style:{marginLeft:"32px"}},Dt+1,".\u7B54\u9898\u7ED3\u675F\u524D"),pr.createElement(ve.Z,null,pr.createElement(fe.default.Item,fr(qu({},Ve),{name:[Ve.name,"reminder_time"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63D0\u9192\u65F6\u95F4"}],noStyle:!0}),pr.createElement(Re.Z,{precision:0,min:1,disabled:ce,addonAfter:"\u5206\u949F",className:pu.remindInput}))),pr.createElement("span",{className:"mr10 ml10"},"\u8FDB\u884C\u63D0\u9192\uFF0C\u63D0\u9192\u5185\u5BB9\u4E3A"),pr.createElement(ve.Z,{flex:1},pr.createElement(fe.default.Item,fr(qu({},Ve),{name:[Ve.name,"reminder_content"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63D0\u9192\u5185\u5BB9"}],noStyle:!0}),pr.createElement(Le.default,{className:pu.remindInput,disabled:ce,showCount:!0,maxLength:100}))),pr.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187",opacity:ce?.5:1},onClick:()=>{ce||_e({reminder_time:""})}}),pr.createElement("i",{className:"iconfont icon-shanjian1",style:{color:"#E30000",cursor:"pointer",fontSize:16,visibility:ce?"hidden":"visible"},onClick:()=>pt(Ve.name)})))),ae.length<5&&pr.createElement(oe.Z,{style:{marginLeft:"30px"}},pr.createElement(ve.Z,{className:`${pu.addRemind} ${ce?pu.disabled:""}`,onClick:()=>{ce||_e({reminder_time:""})}},pr.createElement("i",{className:"iconfont icon-tianjiashitixiaojiahao mr5 font14"}),"\u6DFB\u52A0\u7B54\u9898\u63D0\u9192")))),rr=z(76223),lr=z(78207),eo=z(96332),to=z(93686),ou=z(67294),jl=Object.defineProperty,Vl=Object.defineProperties,wo=Object.getOwnPropertyDescriptors,Ro=Object.getOwnPropertySymbols,No=Object.prototype.hasOwnProperty,ii=Object.prototype.propertyIsEnumerable,po=(ce,se,ae)=>se in ce?jl(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,So=(ce,se)=>{for(var ae in se||(se={}))No.call(se,ae)&&po(ce,ae,se[ae]);if(Ro)for(var ae of Ro(se))ii.call(se,ae)&&po(ce,ae,se[ae]);return ce},mo=(ce,se)=>Vl(ce,wo(se)),ki=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const{RangePicker:Ao}=Aa.default,{Option:Vi}=ft.default,Xi=({user:ce,classroomList:se,exercise:ae,globalSetting:_e,loading:pt,dispatch:Ve,changeActive:Dt})=>{var et,Be,Pe,Ht,vn,hn,xt,Gt,Bn,Dn,Fn;const{workSetting:Wt,commonHeader:Ut}=ae,Yt=(0,he.useParams)();Yt.category=Yt.categoryId;const[ta,nn]=(0,a.useState)(!1),[zn,mn]=(0,a.useState)(!1),[pa,Pt]=(0,a.useState)(),[Nt,Rt]=(0,a.useState)({});let[Xt,cn]=(0,a.useState)([]),[tn,Ja]=(0,a.useState)({unified_setting:!1,publish_time:"",end_time:"",group_settings:[],time:-1,enable_last_times:!1,last_times:1,open_make_up:!1,unified_make_up:!1,make_up_score:0,group_make_ups:[],miss_exam_count:0,no_passing_count:0,is_make_up_exercise:!1,exercise_status:1,is_appoint_user:!1,is_no_passing_user:!1,is_miss_exam_user:!1,enable_answer_time:!1,answer_time:"",exercise_type:1,simulate_exercise_num:3});const[ha,dt]=(0,a.useState)(1),[Fa,ia]=(0,a.useState)(!1),[wu,Sa]=(0,a.useState)(!1),[Hn,Oa]=(0,a.useState)(!1),[tu,Ka]=(0,a.useState)(!1),[Ba,La]=(0,a.useState)([]),[Zn,bn]=(0,a.useState)([]),[ca,Qn]=(0,a.useState)(!1),[pn,Tn]=(0,a.useState)(null),[En,da]=(0,a.useState)({});(0,a.useEffect)(()=>{((Ut==null?void 0:Ut.exercise_status)==="5"||Ut!=null&&Ut.appraise_label||(0,On.aQ)())&&nn(!0)},[Ut]),(0,a.useEffect)(()=>{Ya()},[Wt]),(0,a.useEffect)(()=>{(0,On.dE)()||Ha()},[]),(0,a.useEffect)(()=>{ae.actionTabs.key=="\u8C03\u6574tabs\u9009\u4E2D"&&Dt("2")},[ae.actionTabs.key]);function Ha(){return ki(this,null,function*(){const Eu=yield(0,Ce.ZP)(`/api/courses/${Yt==null?void 0:Yt.coursesId}/exercises/overload_alert.json`,{method:"get",params:{course_id:Yt==null?void 0:Yt.coursesId}});Pt(Eu==null?void 0:Eu.alert)})}const au=Eu=>{var wr;const Va=tn.publish_time;if(!Va||(wr=Wt==null?void 0:Wt.exercise)!=null&&wr.publish_time)return;let Nu;Eu===1?Nu=Ge()(Va).add(120,"minutes"):Nu=Ge()(Va).add(7,"days"),tn.end_time=Nu,Ja(Object.assign({},tn))},Ya=()=>{var Eu,wr,Va,Nu,oo;console.log("\u53D6\u6D88");const Su=JSON.parse(JSON.stringify(Wt));if(Object.keys(tn).forEach(Pu=>{var ci;tn[Pu]=(ci=Su==null?void 0:Su.exercise)==null?void 0:ci[Pu]}),Xt=((Eu=Su==null?void 0:Su.published_course_groups)==null?void 0:Eu.map(Pu=>({course_group_id:Pu.course_group_id,end_time:Pu.course_end_time,publish_time:Pu.course_publish_time})))||[{}],(wr=Wt==null?void 0:Wt.course_groups)==null||wr.map(Pu=>{var ci;(ci=Wt==null?void 0:Wt.published_course_groups)==null||ci.map((Ho,ji)=>{var fc;(fc=Ho==null?void 0:Ho.course_group_id)!=null&&fc.includes(Pu==null?void 0:Pu.course_group_id)&&(Pu.cilckkey=ji,Pu.isselect=!0)})}),ae.actionTabs.key!=="\u6279\u91CF\u53D1\u5E03"&&Tl(""),ia(tn.time!==-1),Ja(tn),tn!=null&&tn.is_appoint_user){const Pu=((Nu=(Va=Su==null?void 0:Su.exercise)==null?void 0:Va.all_exercise_users)==null?void 0:Nu.map(ci=>ci.user_id))||[];La([...Pu])}Sa(tn.is_appoint_user),Oa(tn.is_miss_exam_user),Ka(tn.is_no_passing_user),cn(Xt.length>0?Xt:[{}]),jr.setFieldsValue({exercise_events:(oo=Su==null?void 0:Su.exercise)==null?void 0:oo.exercise_events})},Cr=()=>ki(void 0,null,function*(){var Eu,wr,Va,Nu,oo,Su;if(((Eu=ce==null?void 0:ce.userInfo)==null?void 0:Eu.user_status)===2){(0,lr.Rd)();return}if((Ut==null?void 0:Ut.exercise_question_count)===0){pe.ZP.warning("\u8BD5\u5377\u5185\u6CA1\u6709\u8BD5\u9898\u4E0D\u5141\u8BB8\u53D1\u5E03\u8003\u8BD5");return}const Pu=JSON.parse(JSON.stringify(tn));console.log("\u63D0\u4EA4");try{yield jr.validateFields();const ji=jr.getFieldsValue();Pu.exercise_events=ji.exercise_events}catch(ji){ji!=null&&ji.errorFields&&(jr.scrollToField((Va=(wr=ji==null?void 0:ji.errorFields)==null?void 0:wr[0])==null?void 0:Va.name,{behavior:"smooth",block:"center"}),pe.ZP.error((Su=(oo=(Nu=ji==null?void 0:ji.errorFields)==null?void 0:Nu[0])==null?void 0:oo.errors)==null?void 0:Su[0]));return}if(Pu.categoryId=Yt.categoryId,Pu.publish_time_groups=Xt,tn!=null&&tn.is_make_up_exercise){if(wu&&Ba.length<=0||!wu&&!(Hn||tu)){pe.ZP.error("\u8BF7\u9009\u62E9\u8865\u8003\u5B66\u751F");return}Pu.is_appoint_user=wu,Pu.is_miss_exam_user=Hn,Pu.is_no_passing_user=tu,wu?Pu.make_up_exercise_users=Ba==null?void 0:Ba.map(ji=>({user_id:ji})):Pu.make_up_exercise_users=[]}if(!tn.unified_setting&&!(tn!=null&&tn.is_make_up_exercise)){if(!Xt.length){pe.ZP.warning("\u63D0\u4EA4\u5931\u8D25\uFF1A\u5206\u73ED\u53D1\u5E03\u8BBE\u7F6E\u4E0D\u80FD\u4E3A\u7A7A");return}delete Pu.publish_time,delete Pu.end_time,Xt.map(ji=>{var fc;if(!ji.course_group_id||!((fc=ji.course_group_id)!=null&&fc.length))throw pe.ZP.error("\u5206\u73ED\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u5206\u73ED\u4E0D\u80FD\u4E3A\u7A7A");if(!ji.publish_time||!ji.end_time)throw pe.ZP.error("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A")})}else if(!tn.publish_time||!tn.end_time)throw pe.ZP.error("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A");let{exercise:ci}=Wt;const Ho=()=>ki(void 0,null,function*(){if(tn.exercise_type==2&&(ci.is_locked||ci.open_camera||ci.screen_open||ci.login_restrict||ci.ip_bind||ci.ip_limit=="pub"||ci.ip_limit=="inner"||ci.identity_verify||ci.open_phone_video_recording)){const fc=Fe.default.confirm({width:666,centered:!0,okText:"\u7ACB\u5373\u8C03\u6574",cancelText:"\u4E0D\u9700\u8981",title:"\u63D0\u793A",icon:null,content:ou.createElement("div",null,"\u5F53\u524D\u8003\u8BD5\u6A21\u5F0F\u4E3A\u201C\u6A21\u62DF\u8003\u8BD5\u201D\uFF0C\u60A8\u5DF2\u5F00\u542F",ou.createElement("span",{style:{color:"#FA6400"}}," ",(0,de.hi)(ci)," "),"\u9632\u4F5C\u5F0A\u89C4\u5219\uFF0C\u53EF\u80FD\u4F1A\u5F71\u54CD\u5B66\u751F\u8FDB\u884C\u91CD\u590D\u8003\u8BD5\u3002\u662F\u5426\u9700\u8981\u8FDB\u884C\u8C03\u6574\uFF1F"),onOk:()=>ki(void 0,null,function*(){let qa=yield(0,to.Tr)({exercise_ids:[parseInt(Yt==null?void 0:Yt.categoryId)],course_id:Yt.coursesId,type:"exercise"});(qa==null?void 0:qa.student_count)===0?Zu(Pu):(Rt(Pu),da(qa)),Dt("2")}),onCancel:()=>ki(void 0,null,function*(){fc.destroy();let qa=yield(0,to.Tr)({exercise_ids:[Yt==null?void 0:Yt.categoryId],course_id:Yt.coursesId,type:"exercise"});(qa==null?void 0:qa.student_count)===0?Zu(Pu):(Rt(Pu),da(qa))})});return}let ji=yield(0,to.Tr)({exercise_ids:[Yt==null?void 0:Yt.categoryId],course_id:Yt.coursesId,type:"exercise"});(ji==null?void 0:ji.student_count)===0?Zu(Pu):(Rt(Pu),da(ji))});Ut!=null&&Ut.high_resources_consume&&!(Ut!=null&&Ut.high_resources_consume_permission)?Ve({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:Yt.coursesId,type:"exercise",type_id:Yt.categoryId,name:Ut.exercise_name,fn:()=>{Ho()}}}):Ho()}),Zu=Eu=>ki(void 0,null,function*(){mn(!0),(yield(0,Ce.ZP)(`/api/exercises/${Yt==null?void 0:Yt.categoryId}/publish_settings.json`,{method:"post",body:Eu})).status===0&&(pe.ZP.success("\u4FDD\u5B58\u6210\u529F"),Tl(""),Ve({type:"exercise/getCommonHeader",payload:So({},Yt)}),Ve({type:"exercise/getWorkSetting",payload:So({},Yt)})),mn(!1)}),sa=Eu=>Eu&&Eutn.end_time?Eu&&(Eu{var wr,Va;return((wr=Wt==null?void 0:Wt.exercise)==null?void 0:wr.exercise_status)>1&&!(Eu!=null&&Eu.new)?!0:(Va=Wt==null?void 0:Wt.published_course_groups)!=null&&Va.some(Nu=>Nu.course_group_id===Eu.course_group_id)?ta:!1},gl=Eu=>{var wr;return ta?[!0,!0]:(wr=Wt==null?void 0:Wt.published_course_groups)!=null&&wr.some(Va=>{var Nu,oo;return((Nu=Va.course_group_id)==null?void 0:Nu[0])===((oo=Eu.course_group_id)==null?void 0:oo[0])})?ta||Ge()()>Ge()(Eu==null?void 0:Eu.publish_time)?[!0,!1]:[!1,!1]:[!1,!1]};(0,a.useEffect)(()=>{Tl("\u8868\u5355\u672A\u4FDD\u5B58")},[tn]);const Tl=(Eu="")=>{Ve({type:"exercise/setActionTabs",payload:{key:Eu}})},mu=Eu=>{Eu.preventDefault(),Eu.returnValue=""},$u=(Eu,wr,Va)=>{if(Eu<=0){pe.ZP.info("\u8BF7\u9009\u62E9\u8865\u8003\u5B66\u751F");return}else La(wr),bn(Va),Qn(!1)},[jr]=fe.default.useForm();return ou.createElement("section",{className:pu.form,style:{padding:"30px 50px",marginBottom:"0px"}},ou.createElement(jt.Z,{spinning:pt["exercise/getWorkSetting"]||zn},!(tn!=null&&tn.is_make_up_exercise)&&ou.createElement(ou.Fragment,null,ou.createElement("div",{className:pu.new_title,style:{marginTop:"0px"}},"\u8003\u8BD5\u53D1\u5E03"),ou.createElement("div",{style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},ou.createElement(Ie.ZP.Group,{onChange:()=>{var Eu,wr,Va,Nu,oo;if((0,On.Rm)()&&(!((wr=(Eu=se==null?void 0:se.AssistantObject)==null?void 0:Eu.exercise)!=null&&wr.can_publish)||!((Nu=(Va=se==null?void 0:se.AssistantObject)==null?void 0:Va.exercise)!=null&&Nu.can_late))){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}if(((oo=Wt==null?void 0:Wt.exercise)==null?void 0:oo.exercise_status)>1){pe.ZP.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539");return}tn.unified_setting=!tn.unified_setting,tn.unified_setting===!1&&Xt==""&&cn(Xt.concat({})),Ja(Object.assign({},tn))},value:tn.unified_setting,disabled:ta||((et=Wt==null?void 0:Wt.exercise)==null?void 0:et.exercise_status)>1},ou.createElement(Ie.ZP,{value:!0,disabled:!((Be=Wt==null?void 0:Wt.exercise)!=null&&Be.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u53D1\u5E03"),((Pe=Wt.course_groups)==null?void 0:Pe.length)>0&&ou.createElement(Ie.ZP,{value:!1},"\u5206\u73ED\u53D1\u5E03")))),!(Ut!=null&&Ut.is_make_up_exercise)&&ou.createElement("div",{style:{color:"red"}},((Ht=Wt==null?void 0:Wt.exercise)==null?void 0:Ht.exercise_status)>1&&pa&&"\u5F53\u524D\u8BFE\u5802\u4E2D\u5B66\u751F\u4EBA\u6570\u8F83\u591A\uFF0C\u4E3A\u63D0\u4F9B\u66F4\u597D\u7684\u670D\u52A1\uFF0C\u6211\u4EEC\u5C06\u8FDB\u884C\u670D\u52A1\u5668\u6269\u5BB9\uFF0C\u5EFA\u8BAE\u60A8\u572830\u5206\u949F\u540E\u53D1\u8D77\u8003\u8BD5\u3002\u60A8\u4E5F\u53EF\u4EE5\u7ACB\u5373\u53D1\u5E03\u3002"),(tn.unified_setting||(Ut==null?void 0:Ut.is_make_up_exercise))&&ou.createElement("div",{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",marginTop:"1px",alignItems:"center",height:"50px"}},ou.createElement("div",{style:{color:"#666666",marginLeft:"23px"}},"\u53D1\u5E03\u65F6\u95F4"),ou.createElement(Ae.Z,{placement:"bottom",title:((vn=Wt==null?void 0:Wt.exercise)==null?void 0:vn.exercise_status)>1&&"\u53D1\u5E03\u65F6\u95F4\u5DF2\u8FC7\uFF0C\u4E0D\u80FD\u4FEE\u6539"},ou.createElement(Aa.default,{style:{width:235,marginLeft:"10px"},size:"large",placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Ge()((0,de.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabledDate:sa,disabled:ta||((hn=Wt==null?void 0:Wt.exercise)==null?void 0:hn.exercise_status)>1||(0,On.Rm)()&&!((Gt=(xt=se==null?void 0:se.AssistantObject)==null?void 0:xt.exercise)!=null&&Gt.can_publish),value:tn.publish_time?Ge()(tn.publish_time):void 0,allowClear:!1,onChange:(Eu,wr)=>{tn.publish_time=wr,tn.end_time||(tn.end_time=tn.exercise_type===1?Ge()(Eu).add(120,"minutes"):Ge()(Eu).add(7,"days")),Ja(Object.assign({},tn))}})),ou.createElement("div",{style:{color:"#666666",marginLeft:"60px"}},"\u622A\u6B62\u65F6\u95F4"),ou.createElement(Aa.default,{style:{width:235,marginLeft:"10px"},size:"large",placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Ge()((0,de.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:ta||(0,On.Rm)()&&!((Dn=(Bn=se==null?void 0:se.AssistantObject)==null?void 0:Bn.exercise)!=null&&Dn.can_late)||(Ut==null?void 0:Ut.open_appraise),allowClear:!1,value:tn.end_time?Ge()(tn.end_time):void 0,disabledDate:Ru,onChange:(Eu,wr)=>{var Va,Nu;if((0,On.Rm)()&&!((Nu=(Va=se==null?void 0:se.AssistantObject)==null?void 0:Va.exercise)!=null&&Nu.can_publish)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}tn.end_time=wr,Ja(Object.assign({},tn))}})),!tn.unified_setting&&!(Ut!=null&&Ut.is_make_up_exercise)&&ou.createElement("div",{style:{color:"#666666",background:"#F6F7F9",padding:"5px 30px",marginTop:"1px"}},Xt&&Xt.map(function(Eu,wr){var Va,Nu,oo;return ou.createElement("div",{style:{display:"flex",alignItems:"center",marginBottom:wr==(Xt==null?void 0:Xt.length)-1?"0px":"10px"}},ou.createElement("div",{style:{width:"75px",marginLeft:"23px"}},"\u53D1\u5E03\u89C4\u5219",wr+1),ou.createElement(ft.default,{showArrow:!0,allowClear:!0,className:pu.multiple_select,disabled:ta||((Va=Wt==null?void 0:Wt.homework_status)!=null&&Va.includes("\u672A\u53D1\u5E03")&&Eu.id||Ge()(){Xt[wr].course_group_id=Su,cn(Xt.slice()),Wt.course_groups.map((Pu,ci)=>{Su.map((Ho,ji)=>{Pu.course_group_id===Ho&&(Pu.cilckkey=wr,Pu.isselect=!0)})})},onDeselect:Su=>{Wt.course_groups.map((Pu,ci)=>{Pu.course_group_id===Su&&Pu.cilckkey===wr&&(Pu.cilckkey=wr,Pu.isselect=!1)})}},Wt.course_groups&&Wt.course_groups.map(function(Su,Pu){return ou.createElement(Vi,{disabled:(Su==null?void 0:Su.isselect)&&Su.cilckkey!=wr,label:Su.course_group_name,value:Su.course_group_id,key:Su.course_group_id},Su.course_group_name)})),ou.createElement(Ao,{disabled:gl(Eu)||(0,On.Rm)()&&!((oo=(Nu=se==null?void 0:se.AssistantObject)==null?void 0:Nu.exercise)!=null&&oo.can_publish),disabledDate:sa,style:{width:"620px",marginLeft:"20px"},placeholder:["\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4","\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4"],showTime:{format:"HH:mm",defaultValue:[Ge()((0,de.U6)(),"HH:mm"),Ge()((0,de.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",size:"large",value:Eu.publish_time&&[Ge()(Eu.publish_time),Eu.end_time&&Ge()(Eu.end_time)],onChange:(Su,Pu)=>{Xt[wr].publish_time=Pu[0],!Eu.end_time&&Pu[0]?Xt[wr].end_time=Ge()(Pu[0]).add(7,"days"):Xt[wr].end_time=Pu[1],cn([...Xt])},onCalendarChange:(Su,Pu,ci)=>{if(Pu!=null&&Pu[0]&&!Pu[1]){const Ho=tn.exercise_type===1?Ge()(Pu[0]).add(120,"minutes"):Ge()(Pu[0]).add(7,"days");Xt[wr].publish_time=Pu[0],Xt[wr].end_time=Ho,cn([...Xt])}}}),ou.createElement("div",{style:{visibility:ta?"hidden":"visible",display:"flex",width:"50px"}},ou.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var Su,Pu;if((0,On.Rm)()&&!((Pu=(Su=se==null?void 0:se.AssistantObject)==null?void 0:Su.exercise)!=null&&Pu.can_publish)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}cn(Xt.concat({new:!0}))}}),ou.createElement("i",{className:"iconfont icon-shanjian1",style:{visibility:(Eu!=null&&Eu.publish_time&&Ge()(){Xt=Xt.filter((Su,Pu)=>wr!==Pu),cn([...Xt])}})))})),!(tn!=null&&tn.is_make_up_exercise)&&ou.createElement(ou.Fragment,null,ou.createElement("div",{className:pu.new_title,style:{marginTop:30}},"\u8003\u8BD5\u6A21\u5F0F"),ou.createElement("div",{style:{background:"#F6F7F9",padding:"5px 30px",display:"flex",alignItems:"center",height:"50px"}},ou.createElement(Ie.ZP.Group,{value:tn.exercise_type,disabled:ta||((Fn=Wt==null?void 0:Wt.exercise)==null?void 0:Fn.exercise_status)>1,onChange:Eu=>{tn.exercise_type=Eu.target.value,Ja(So({},tn)),au(Eu.target.value)},style:{marginTop:"2px"}},ou.createElement(Ie.ZP,{value:1,style:{marginRight:"50px"}},"\u6B63\u5F0F\u8003\u8BD5"),ou.createElement(Ie.ZP,{value:2},"\u6A21\u62DF\u8003\u8BD5")),(tn==null?void 0:tn.exercise_type)===2&&ou.createElement(ou.Fragment,null,ou.createElement("span",{style:{marginLeft:10,color:"#666666"}},"\u6BCF\u4E2A\u5B66\u751F\u5141\u8BB8\u8FDB\u884C\u8003\u8BD5"),ou.createElement(Re.Z,{className:pu.numberInput,addonAfter:"\u6B21",style:{width:145},precision:0,size:"large",value:tn==null?void 0:tn.simulate_exercise_num,disabled:ta,min:1,max:999,onChange:Eu=>{tn.simulate_exercise_num=Eu,Ja(So({},tn))}}),ou.createElement("span",{style:{color:"#666666"}},"\uFF08\u53EF\u8BBE\u7F6E1~999\u6B21\uFF09")))),(tn==null?void 0:tn.is_make_up_exercise)&&ou.createElement(ou.Fragment,null,ou.createElement(oe.Z,null,ou.createElement("span",{style:{marginRight:"20px",fontSize:"14px",color:"3333",fontWeight:600}},"\u5F85\u8865\u8003\u5B66\u751F"),ou.createElement(Ne.Z,{checked:wu,onChange:(Eu,wr)=>{var Va,Nu;if(Sa(Eu),Eu){if(tn!=null&&tn.is_appoint_user){const oo=(Nu=(Va=Wt==null?void 0:Wt.exercise)==null?void 0:Va.all_exercise_users)==null?void 0:Nu.map(Su=>Su.user_id);La([...oo])}else La([]);Oa(!1),Ka(!1)}else Oa(tn.is_miss_exam_user),Ka(tn.is_no_passing_user)},disabled:!((tn==null?void 0:tn.exercise_status)===1&&(Ut!=null&&Ut.allow_create_make_up))}),ou.createElement("span",{style:{marginLeft:"10px",fontSize:"14px",color:"3333"}},"\u6307\u5B9A\u5B66\u751F")),!wu&&ou.createElement(oe.Z,{className:"mt20 mb20",style:{paddingLeft:"90px"},align:"middle"},ou.createElement(Se.default,{checked:Hn,disabled:!((tn==null?void 0:tn.exercise_status)===1&&(tn==null?void 0:tn.miss_exam_count)>0&&(Ut!=null&&Ut.allow_create_make_up)),onChange:Eu=>{Oa(Eu.target.checked)}},ou.createElement("span",{style:{fontSize:"14px",color:"#333"}},"\u7F3A\u8003")),ou.createElement("span",{style:{color:"#0152d9",cursor:"pointer",marginRight:"60px"},onClick:()=>{Tn(1),Sa(!1),Qn(!0)}},"\uFF08",`${(tn==null?void 0:tn.miss_exam_count)||0}\u4EBA`,"\uFF09"),ou.createElement(Se.default,{checked:tu,disabled:!((tn==null?void 0:tn.exercise_status)===1&&(tn==null?void 0:tn.no_passing_count)>0&&(Ut!=null&&Ut.allow_create_make_up)),onChange:Eu=>{Ka(Eu.target.checked)}},ou.createElement("span",{style:{fontSize:"14px",color:"#333"}},"\u672A\u53CA\u683C")),ou.createElement("span",{style:{color:"#0152d9",cursor:"pointer"},onClick:()=>{Tn(2),Sa(!1),Qn(!0)}},"\uFF08",`${(tn==null?void 0:tn.no_passing_count)||0}\u4EBA`,"\uFF09")),wu&&ou.createElement(oe.Z,{className:"mb20 mt20",style:{paddingLeft:"90px"}},ou.createElement(me.ZP,{type:"primary",ghost:!0,disabled:!((tn==null?void 0:tn.exercise_status)===1&&(Ut!=null&&Ut.allow_create_make_up)),onClick:()=>{Qn(!0),Tn(void 0)}},ou.createElement("span",null,ou.createElement("i",{className:"iconfont icon-tianjia4 mr5",style:{fontSize:"14px"}})),ou.createElement("span",null,"\u9009\u62E9\u5B66\u751F")),ou.createElement("span",{style:{color:"#333",display:"inline-block",height:"32px",lineHeight:"32px",marginLeft:"10px"}},"\uFF08\u5DF2\u9009 ",`${Ba.length||0} \u4EBA`,"\uFF09"))),ou.createElement("div",{className:pu.new_title,style:{marginTop:"30px"}},"\u8003\u8BD5\u65F6\u957F\u8BBE\u7F6E"),ou.createElement("div",null,ou.createElement("div",{style:{background:"#F6F7F9",padding:"5px 30px"}},ou.createElement(Se.default,{disabled:ta,checked:Fa,onChange:Eu=>{Eu.target.checked===!1?Ja(wr=>mo(So({},wr),{time:-1})):jr.setFieldsValue({exercise_events:[{reminder_time:30,reminder_content:"\u8BF7\u6CE8\u610F\uFF0C30\u5206\u949F\u540E\u7981\u6B62\u4F5C\u7B54"},{reminder_time:15,reminder_content:"\u8BF7\u6CE8\u610F\uFF0C15\u5206\u949F\u540E\u7981\u6B62\u4F5C\u7B54"}]}),ia(Eu.target.checked)},style:{fontSize:"14px",marginTop:"2px"}},"\u9650\u5236\u8003\u751F\u7B54\u9898\u65F6\u957F"),Fa&&ou.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:20}},ou.createElement("div",{style:{marginRight:10,marginLeft:25}},"\u7B54\u9898\u65F6\u957F"),ou.createElement(Re.Z,{size:"large",disabled:ta,min:1,style:{width:"200px"},value:tn.time===-1?null:tn.time,precision:0,addonAfter:"\u5206\u949F",onChange:Eu=>{tn.time=Eu,Ja(So({},tn))}}))),Fa&&ou.createElement(fe.default,{form:jr},ou.createElement(fu,{disabled:ta,time:tn.time})),ou.createElement("div",null,ou.createElement("div",{style:{background:"#F6F7F9",padding:"5px 30px",marginTop:"1px"}},ou.createElement(Se.default,{checked:tn.enable_last_times,onChange:Eu=>Ja(wr=>mo(So({},wr),{enable_last_times:Eu.target.checked})),disabled:ta,style:{fontSize:"14px",marginTop:"2px"}},"\u5B66\u751F\u8003\u8BD5\u8FDF\u5230\u65F6\u957F\u9650\u5236"),tn.enable_last_times&&ou.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:20}},ou.createElement("span",{style:{marginLeft:"32px",marginRight:"10px"}},"\u8003\u8BD5\u5F00\u59CB\u540E"),ou.createElement(Re.Z,{addonAfter:"\u5206\u949F",precision:0,size:"large",style:{width:"200px"},value:tn==null?void 0:tn.last_times,disabled:ta||!tn.enable_last_times,min:0,onChange:Eu=>{tn.last_times=Eu,Ja(So({},tn))}}),ou.createElement("span",{style:{marginLeft:"10px"}},"\u7981\u6B62\u5B66\u751F\u8FDB\u5165\u8003\u8BD5"))),ou.createElement("div",{style:{background:"#F6F7F9",padding:"5px 30px",marginTop:"1px"}},ou.createElement(oe.Z,null,ou.createElement(Se.default,{checked:tn.enable_answer_time,onChange:Eu=>Ja(wr=>mo(So({},wr),{enable_answer_time:Eu.target.checked})),disabled:ta,style:{fontSize:"14px",marginTop:"2px"}},"\u5B66\u751F\u63D0\u524D\u4EA4\u5377\u65F6\u95F4\u9650\u5236")),tn.enable_answer_time&&ou.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:20}},ou.createElement("span",{style:{marginLeft:"32px",marginRight:"10px"}},"\u5B66\u751F\u8FDB\u5165\u8003\u8BD5\u4F5C\u7B54\u65F6\u95F4\u5FC5\u987B \u2265"),ou.createElement(Re.Z,{addonAfter:"\u5206\u949F",precision:0,size:"large",style:{width:"200px"},value:tn==null?void 0:tn.answer_time,disabled:ta||!tn.enable_answer_time,min:0,onChange:Eu=>{tn.answer_time=Eu,Ja(So({},tn))}}),ou.createElement("span",{style:{marginLeft:"10px"}},"\u624D\u80FD\u4EA4\u5377")))))),!(Ut!=null&&Ut.appraise_label)&&(!(Ut!=null&&Ut.is_make_up_exercise)&&(0,On.GJ)()||(Ut==null?void 0:Ut.is_make_up_exercise)&&(Ut==null?void 0:Ut.allow_create_make_up))&&ou.createElement(me.ZP,{type:"primary",style:{width:"138px",marginTop:"30px"},size:"large",onClick:Cr},"\u4FDD\u5B58"),ou.createElement(rr.Z,{visible:ca,setVisible:Qn,onK:$u,selectKeys:Ba,selectRows:Zn,appointStudent:wu,modalParams:pn}),ou.createElement(eo.Z,{resdata:En,type:"exercisepush",okloading:zn,oktext:(En==null?void 0:En.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:Eu=>ki(void 0,null,function*(){mn(!0);let wr=yield(0,Ce.ZP)(`/api/courses/${Yt.coursesId}/batch_copy_shixuns.json`,{method:"post",body:{type:"exercise",ids:[parseInt(Yt==null?void 0:Yt.categoryId)]}});mn(!1),(wr==null?void 0:wr.status)===0&&Zu(Nt)})}))};var Ci=(0,he.connect)(({exercise:ce,loading:se,globalSetting:ae,classroomList:_e,user:pt})=>({exercise:ce,loading:se.effects,globalSetting:ae,user:pt,classroomList:_e}))(Xi),Po=z(16646),Ji=z(5270),Gi=Object.defineProperty,gs=Object.getOwnPropertySymbols,Oo=Object.prototype.hasOwnProperty,Ls=Object.prototype.propertyIsEnumerable,xi=(ce,se,ae)=>se in ce?Gi(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,To=(ce,se)=>{for(var ae in se||(se={}))Oo.call(se,ae)&&xi(ce,ae,se[ae]);if(gs)for(var ae of gs(se))Ls.call(se,ae)&&xi(ce,ae,se[ae]);return ce},Si=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const{TabPane:hs}=y.default,ko=({exercise:ce,loading:se,dispatch:ae})=>{var _e;const pt=(0,he.useParams)(),Ve=(0,he.useLocation)(),[Dt]=fe.default.useForm(),[et,Be]=(0,a.useState)({}),[Pe,Ht]=(0,a.useState)("1");return(0,a.useEffect)(()=>{ce.actionTabs.key==="addIp"&&(Dt.resetFields(),Ht("1"))},[ce.actionTabs]),a.createElement(Fe.default,{centered:!0,title:"\u6DFB\u52A0IP\u8303\u56F4",open:ce.actionTabs.key==="addIp",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",width:600,bodyStyle:{minHeight:200},onOk:()=>Si(void 0,null,function*(){if(yield Dt.validateFields(),!et.ip){const vn=et.startIP.split(".")[3];if(parseInt(vn)>parseInt(et.endIP)){pe.ZP.warning("IP\u533A\u95F4\u6BB5\u4E0D\u5408\u6CD5");return}}ae({type:"exercise/setActionTabs",payload:{key:"insterIp",data:To({},Dt.getFieldValue()),type:ce.actionTabs.type}})}),onCancel:()=>{ae({type:"exercise/setActionTabs",payload:{}})}},a.createElement("section",{className:"pl10 pr10"},a.createElement(y.default,{activeKey:Pe,onChange:vn=>{Ht(vn),Dt.resetFields()}},a.createElement(hs,{tab:"\u65B0\u589EIP\u5730\u5740",key:"1"}),a.createElement(hs,{tab:"\u65B0\u589EIP\u8303\u56F4",key:"2"})),a.createElement(fe.default,{form:Dt,className:"pt30",name:"form",layout:"vertical",onValuesChange:(vn,hn)=>{Be(To({},hn))}},Pe==="1"&&a.createElement(fe.default.Item,{name:"ip",rules:[{required:!0,message:"\u8BF7\u8F93\u5165IP\u5730\u5740"}],label:"IP\u5730\u5740"},a.createElement(ft.default,{open:!1,tokenSeparators:[";",",","\uFF1B"],size:"middle",mode:"tags",style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165IP\u5730\u5740,\u53EF\u540C\u65F6\u6DFB\u52A0\u591A\u4E2AIP\u5730\u5740\uFF0C\u4E2D\u95F4\u7528\u82F1\u6587\u7684\u5206\u53F7\u95F4\u9694\u3002",onChange:vn=>{Dt.setFieldsValue({ip:[...vn.filter(hn=>(0,Ji.t)(hn)?!0:(pe.ZP.warning("IP\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165"),!1))]})}})),Pe==="2"&&a.createElement(oe.Z,{gutter:[20,20]},a.createElement(ve.Z,{flex:"1"},a.createElement(fe.default.Item,{name:"startIP",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8D77\u59CBIP\u5730\u5740"}],label:"\u8D77\u59CBIP\u5730\u5740"},a.createElement(Le.default,{maxLength:15,placeholder:"\u8BF7\u8F93\u5165\u8D77\u59CBIP\u5730\u5740",onBlur:vn=>{let hn="";(0,Ji.t)(vn.target.value)?hn=vn.target.value:(hn="",pe.ZP.warning("IP\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165")),Dt.setFieldsValue({startIP:hn})}}))),a.createElement(ve.Z,{flex:"1"},a.createElement(fe.default.Item,{name:"endIP",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7ED3\u675FIP\u5730\u5740"},{pattern:/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/,message:"\u8BF7\u8F93\u51650-255\u7684\u7F51\u6BB5"}],label:"\u7ED3\u675FIP\u5730\u5740"},a.createElement(Le.default,{onBlur:vn=>{},prefix:a.createElement("span",{className:"font14"},(_e=et.startIP)==null?void 0:_e.substring(0,et.startIP.lastIndexOf("."))),maxLength:3,placeholder:"\u8BF7\u8F93\u5165\u7ED3\u675FIP\u5730\u5740\u7684\u540E\u4E09\u4F4D"})))))))};var oc=(0,he.connect)(({exercise:ce,loading:se})=>({exercise:ce,loading:se}))(ko),Cn=z(67294),al=Object.defineProperty,ml=Object.defineProperties,Qu=Object.getOwnPropertyDescriptors,Zr=Object.getOwnPropertySymbols,pi=Object.prototype.hasOwnProperty,Uo=Object.prototype.propertyIsEnumerable,ai=(ce,se,ae)=>se in ce?al(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,ds=(ce,se)=>{for(var ae in se||(se={}))pi.call(se,ae)&&ai(ce,ae,se[ae]);if(Zr)for(var ae of Zr(se))Uo.call(se,ae)&&ai(ce,ae,se[ae]);return ce},ms=(ce,se)=>ml(ce,Qu(se)),Zs=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Hs=({exercise:ce,globalSetting:se,loading:ae,dispatch:_e})=>{var pt,Ve,Dt,et,Be,Pe,Ht;const{workSetting:vn,commonHeader:hn}=ce,[xt]=fe.default.useForm(),Gt=(0,he.useParams)();Gt.category=Gt.categoryId;const[Bn,Dn]=(0,a.useState)(!1),[Fn,Wt]=(0,a.useState)(!1),[Ut,Yt]=(0,a.useState)(!1),ta={question_random:!1,choice_random:!1,start_password:((pt=vn==null?void 0:vn.exercise)==null?void 0:pt.start_password)||"",login_restrict:!1,is_start_locked:!1,use_blank_score:!1,ip_limit:!1,identity_verify:!1,open_phone_video_recording:!1,open_camera:!1,photo_count:5,screen_open:!1,screen_num:3,screen_sec:5,ip_bind:!1,ip_bind_type:!1,public_ip:[],inner_ip:[],is_locked:!1,unlock_key:((Ve=vn==null?void 0:vn.exercise)==null?void 0:Ve.unlock_key)||"",screen_shot_open:!1,forbid_copy:!1};let[nn,zn]=(0,a.useState)(ta);const[mn,pa]=(0,a.useState)(!1),[Pt,Nt]=(0,a.useState)(!1),[Rt,Xt]=(0,a.useState)(!1),[cn,tn]=(0,a.useState)(null);(0,a.useEffect)(()=>{var Hn;Ja(),vn!=null&&vn.exercise&&!(0,On.aN)()&&!((Hn=vn==null?void 0:vn.exercise)!=null&&Hn.is_creator)&&Dn(!0)},[vn]),(0,a.useEffect)(()=>{((hn==null?void 0:hn.exercise_status)==="5"||hn!=null&&hn.appraise_label)&&Dn(!0)},[hn]),(0,a.useEffect)(()=>{},[]),(0,a.useEffect)(()=>{ce.actionTabs.key==="insterIp"&&(ce.actionTabs.data.ip?nn[ce.actionTabs.type]=[...nn[ce.actionTabs.type]||[],...ce.actionTabs.data.ip]:nn[ce.actionTabs.type]=[...nn[ce.actionTabs.type]||[],`${ce.actionTabs.data.startIP},${ce.actionTabs.data.startIP.substring(0,ce.actionTabs.data.startIP.lastIndexOf("."))+"."+ce.actionTabs.data.endIP}`],ha(nn),pa(!0))},[ce.actionTabs]);const Ja=()=>{const Hn=JSON.parse(JSON.stringify(vn));Object.keys(nn).forEach(Oa=>{var tu;nn[Oa]=(tu=Hn==null?void 0:Hn.exercise)==null?void 0:tu[Oa]}),ha(ms(ds({},nn),{ip_limit:nn.ip_limit!=="no"}))},ha=Hn=>{zn(Hn),xt.setFieldsValue(Hn)},dt=Hn=>{var Oa,tu;if(Hn.categoryId=Gt.categoryId,Hn.ip_limit=Hn.ip_limit?"pub":"no",Hn.ip_bind||(Hn.ip_bind_type=!1),Hn.open_camera&&Hn.photo_count<1){pe.ZP.warning("\u8BF7\u586B\u5199\u672C\u573A\u8003\u8BD5\u6700\u5927\u62CD\u6444\u6B21\u6570");return}if(!Hn.start_password&&Hn.is_start_locked){pe.ZP.warning("\u8BF7\u586B\u5199\u5F00\u8003\u5BC6\u7801");return}if(Hn.ip_limit!=="no"&&!((Oa=Hn.public_ip)!=null&&Oa.length)&&!((tu=Hn.inner_ip)!=null&&tu.length)){pe.ZP.warning("\u8BF7\u586B\u5199\u516C\u7F51IP\u6216\u5185\u7F51IP\u5730\u5740");return}if(Hn.is_locked||Hn.open_camera||Hn.screen_open||Hn.login_restrict||Hn.ip_bind||Hn.ip_limit=="pub"||Hn.ip_limit=="inner"||Hn.identity_verify||Hn.open_phone_video_recording){if((hn==null?void 0:hn.exercise_type)==1){Fa(Hn);return}Fe.default.confirm({width:666,centered:!0,title:"\u63D0\u793A",icon:null,content:Cn.createElement("div",null,"\u5F53\u524D\u8003\u8BD5\u6A21\u5F0F\u4E3A\u201C\u6A21\u62DF\u8003\u8BD5\u201D\uFF0C\u5F00\u542F",Cn.createElement("span",{style:{color:"#FA6400"}}," ",(0,de.hi)(Hn)," "),"\u9632\u4F5C\u5F0A\u89C4\u5219\u53EF\u80FD\u4F1A\u5F71\u54CD\u5B66\u751F\u8FDB\u884C\u91CD\u590D\u8003\u8BD5\u3002\u786E\u5B9A\u5F00\u542F\u5417\uFF1F"),onOk:()=>Fa(Hn)});return}ia(Hn)},Fa=Hn=>{if(Hn.open_camera||Hn.screen_open){const Oa=Fe.default.confirm({title:"\u8003\u8BD5\u8BF4\u660E",className:"custom-modal-divider",icon:null,width:750,content:Cn.createElement("div",{className:"font16 p20"},Hn.open_camera&&Cn.createElement(oe.Z,{justify:"start",className:"mt20"},Cn.createElement(ve.Z,{flex:"24px"},Cn.createElement("span",{className:"iconfont icon-kaiqishexiangtou c-blue mr20 font24"})),Cn.createElement(ve.Z,{flex:"1"},"\u60A8\u5DF2\u5F00\u542F\u8003\u8BD5\u4E2D\u6444\u50CF\u9632\u4F5C\u5F0A\u529F\u80FD\uFF0C",Cn.createElement("span",{className:"c-red"},"\u8FD9\u9700\u8981\u8C03\u7528\u5B66\u751F\u7528\u6237\u7684\u6444\u50CF\u8BBE\u5907"),"\u3002Educoder\u5E73\u53F0\u5C06\u4F1A\u4E25\u683C\u4FDD\u62A4\u6240\u6709\u5B66\u751F\u7684\u7167\u7247\u548C\u89C6\u9891\uFF0C\u5E76\u627F\u8BFA\u4E0D\u5728\u672C\u5E73\u53F0\u4EE5\u5916\u4F7F\u7528\u3002",Cn.createElement("br",null),"\u8BF7\u786E\u8BA4\uFF1A\u4E3A\u4E25\u683C\u76D1\u7763\u8003\u8BD5\u4EE5\u83B7\u5F97\u516C\u5E73\uFF0C\u60A8\u540C\u610F\u5E76\u548C\u8981\u6C42Educoder\u5E73\u53F0\u5728\u672C\u6B21\u8003\u8BD5\u4E2D\u8C03\u7528\u5B66\u751F\u7528\u6237\u7684\u6444\u50CF\u8BBE\u5907\u5E76\u83B7\u53D6\u5B66\u751F\u7684\u5F71\u50CF\u4FE1\u606F\u3002")),Hn.screen_open&&Cn.createElement(oe.Z,{justify:"start",className:"mt20"},Cn.createElement(ve.Z,{flex:"24px",className:"mr20"},Cn.createElement("span",{className:"iconfont icon-kaiqifangqieping c-blue font24"})),Cn.createElement(ve.Z,{flex:"1"},"\u60A8\u5DF2\u5F00\u542F\u8003\u8BD5\u4E2D\u9632\u5207\u5C4F\u529F\u80FD\uFF0C\u8FD9\u9879\u529F\u80FD\u6682\u65F6\u4EC5\u652F\u6301\u8C37\u6B4C\u3001\u706B\u72D0\u6D4F\u89C8\u5668\u3002 \u8BF7\u786E\u4FDD\uFF1A\u5728\u6B63\u5F0F\u5F00\u59CB\u8003\u8BD5\u524D\u901A\u77E5\u5168\u4F53\u5B66\u751F\uFF0C\u4F7F\u7528 ",Cn.createElement("img",{width:"26",src:ws.JA})," ",Cn.createElement("span",{className:"c-red"},"\u8C37\u6B4C\u6D4F\u89C8\u5668"),"\u6216",Cn.createElement("img",{width:"26",src:ws.Gm})," ",Cn.createElement("span",{className:"c-red"},"\u706B\u72D0\u6D4F\u89C8\u5668"),"\u8FDB\u884C\u8003\u8BD5\u3002")),Cn.createElement("p",{className:"ml40 mt40"},Cn.createElement(Se.default,{onChange:tu=>Oa.update({okButtonProps:{disabled:!tu.target.checked}})},"\u6211\u5DF2\u9605\u8BFB"))),onOk:()=>{ia(Hn)},okButtonProps:{disabled:!0}})}else ia(Hn)},ia=Hn=>Zs(void 0,null,function*(){Wt(!0);const Oa=yield(0,Ce.ZP)(`/api/exercises/${Gt==null?void 0:Gt.categoryId}/prevent_cheating_settings.json`,{method:"post",body:Hn});Wt(!1),Oa.status===0&&(pe.ZP.success("\u4FDD\u5B58\u6210\u529F"),_e({type:"exercise/getCommonHeader",payload:ds({},Gt)}),_e({type:"exercise/getWorkSetting",payload:ds({},Gt)}),pa(!1))});(0,a.useEffect)(()=>{Sa(mn?"\u8868\u5355\u672A\u4FDD\u5B58":"")},[mn]);const wu=Hn=>{Hn.preventDefault(),Hn.returnValue=""},Sa=(Hn="")=>{_e({type:"exercise/setActionTabs",payload:{key:Hn}})};return Cn.createElement("section",{className:pu.formDom,style:{padding:"30px 50px"}},Cn.createElement(jt.Z,{spinning:ae["exercise/getWorkSetting"]||Fn},Cn.createElement(fe.default,{form:xt,name:"basicForm",initialValues:ta,colon:!1,onValuesChange:(Hn,Oa)=>{console.log("onValuesChange",Oa);let tu=Oa;for(const Ka in Hn){if(Ka=="is_locked"&&!Oa[Ka]&&(tu.login_restrict=!1,tu.screen_open=!1),Ka=="login_restrict"&&Oa[Ka]&&(tu.is_locked=!0),Ka=="screen_open"&&Oa[Ka]&&(tu.is_locked=!0),Ka=="screen_shot_open"&&Oa[Ka]){const Ba=Fe.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:Cn.createElement("div",null,Cn.createElement("div",{className:"mb10"},"1.\u5F00\u542F\u540E\uFF0C\u5B66\u751F\u4F5C\u7B54\u524D",Cn.createElement("span",{style:{color:"#F59A23"}},"\u9700\u8981\u9009\u62E9\u4E3B\u5C4F\u5E55\u8FDB\u884C\u5171\u4EAB\uFF0C\u8003\u8BD5\u4F5C\u7B54\u8FC7\u7A0B\u4E2D\u4E5F\u4E0D\u5141\u8BB8\u5173\u95ED\u5C4F\u5E55\u5171\u4EAB\uFF0C\u5426\u5219\u5C06\u4F1A\u76F4\u63A5\u9000\u51FA\u8003\u8BD5\uFF1B")),Cn.createElement("div",null,"2.\u6559\u5E08\u53EF\u5728\u8003\u8BD5\u76D1\u63A7\u9875\u9762\u67E5\u770B\u622A\u5C4F\u8BB0\u5F55\u3002")),onOk:()=>Zs(void 0,null,function*(){tu.screen_shot_open=!0,ha(tu)}),onCancel:()=>{tu.screen_shot_open=!1,ha(tu),Ba.destroy()}});break}(Ka=="ip_bind"||Ka=="ip_limit")&&!Oa.is_locked&&Oa[Ka]&&(tu.is_locked=!0),Ka=="open_camera"&&(tu.photo_count=tu.photo_count||5)}ha(tu),pa(!0)},onFinish:dt},Cn.createElement("div",{className:pu.title},"\u63A8\u8350\u9632\u4F5C\u5F0A\u6A21\u5F0F",Cn.createElement("span",{style:{color:"#666",fontSize:14,fontWeight:400}},"\uFF08\u4E0D\u540C\u7684\u8003\u8BD5\u6A21\u5F0F\uFF0C\u7CFB\u7EDF\u4F1A\u81EA\u52A8\u52FE\u9009\u5BF9\u5E94\u6A21\u5F0F\u63A8\u8350\u7684\u9632\u4F5C\u5F0A\u8BBE\u7F6E\uFF0C\u652F\u6301\u4E8C\u6B21\u8C03\u6574\uFF09")),Cn.createElement(fe.default.Item,null,Cn.createElement(Ie.ZP.Group,{style:{background:"#F6F7F9",padding:"5px 30px",display:"flex",alignItems:"center",height:"50px"},value:cn,onChange:Hn=>{if(Hn.target.value==="exam")ha(ms(ds(ds({},ta),nn),{question_random:!0,choice_random:!0,is_start_locked:!0,is_locked:!0,login_restrict:!0,screen_open:!0,ip_bind:!0,forbid_copy:!0}));else if(Hn.target.value==="practice"){Fe.default.confirm({title:"\u63D0\u793A",centered:!0,content:"\u6A21\u62DF\u8003\u8BD5\u5C06\u53EA\u4F1A\u5F00\u542F\u201C\u5C0F\u9898\u9898\u76EE\u987A\u5E8F\u968F\u673A\u6253\u4E71\u201D\u548C\u201C\u9009\u62E9\u9898\u9009\u9879\u987A\u5E8F\u968F\u673A\u6253\u4E71\u201D\uFF0C\u786E\u5B9A\u8981\u4F7F\u7528\u6A21\u62DF\u8003\u8BD5\u63A8\u8350\u7684\u8BBE\u7F6E\u5417\uFF1F",icon:null,onOk:()=>{ha(ms(ds({},ta),{question_random:!0,choice_random:!0,forbid_copy:!1})),tn(Hn.target.value)}});return}tn(Hn.target.value)},buttonStyle:"solid",disabled:Bn},Cn.createElement(Ie.ZP,{value:"exam",style:{marginRight:"40px"}},"\u6B63\u5F0F\u6A21\u5F0F"),Cn.createElement(Ie.ZP,{value:"practice"},"\u6A21\u62DF\u6A21\u5F0F"))),Cn.createElement("div",{className:pu.title,style:{marginTop:"30px"}},"\u9632\u4F5C\u5F0A\u8BBE\u7F6E"),Cn.createElement(fe.default.Item,{name:"forbid_copy",valuePropName:"checked",style:{background:"#F6F7F9",padding:"8px 30px"}},Cn.createElement(Se.default,{disabled:Bn},Cn.createElement("strong",{style:{fontSize:"14px",color:"#000"}},"\u7B54\u9898\u65F6\u4E0D\u5141\u8BB8\u8FDB\u884C\u590D\u5236\u7C98\u8D34"))),Cn.createElement(fe.default.Item,{name:"question_random",valuePropName:"checked",style:{background:"#F6F7F9",padding:"8px 30px"}},Cn.createElement(Se.default,{disabled:Bn},Cn.createElement("strong",{style:{fontSize:"14px",color:"#000"}},"\u5C0F\u9898\u9898\u76EE\u987A\u5E8F\u968F\u673A\u6253\u4E71"))),Cn.createElement(fe.default.Item,{name:"choice_random",valuePropName:"checked",style:{background:"#F6F7F9",padding:"8px 30px"}},Cn.createElement(Se.default,{disabled:Bn},Cn.createElement("strong",{style:{fontSize:"14px",color:"#000"}},"\u9009\u62E9\u9898\u9009\u9879\u987A\u5E8F\u968F\u673A\u6253\u4E71"))),Cn.createElement("div",{className:"ant-form-item",style:{background:"#F6F7F9",padding:"8px 30px",marginTop:"1px"}},Cn.createElement(fe.default.Item,{name:"is_start_locked",valuePropName:"checked",style:{marginBottom:0}},Cn.createElement(Se.default,{disabled:Bn},Cn.createElement(Cn.Fragment,null,Cn.createElement("strong",{style:{fontSize:"14px",color:"#000"}},"\u5F00\u8003\u5BC6\u7801 ",Cn.createElement("span",{style:{color:"#666",fontSize:14,fontWeight:400}},"\uFF08\u52FE\u9009\u540E\uFF0C\u5B66\u751F\u7B2C\u4E00\u6B21\u8FDB\u5165\u8003\u8BD5\u65F6\uFF0C\u9700\u8981\u8F93\u5165\u5F00\u8003\u5BC6\u7801\u624D\u80FD\u8FDB\u5165\u8003\u8BD5\u7B54\u9898\u9875\u9762\uFF09"))))),nn.is_start_locked&&(0,On.GJ)()?Cn.createElement(oe.Z,{className:pu.unlockKeyWrapper,align:"middle"},Cn.createElement(fe.default.Item,{name:"start_password",style:{marginBottom:0}},Cn.createElement(Le.default,{size:"large",className:pu.unlockKeyInput,disabled:Bn,placeholder:"\u8BF7\u8F93\u5165\u5F00\u8003\u5BC6\u7801"})),Cn.createElement(ve.Z,null,!Bn&&Cn.createElement(me.ZP,{type:"link",loading:Pt,onClick:()=>Zs(void 0,null,function*(){Nt(!0);let Hn=Math.floor(Math.random()*1e6).toString().padStart(6,"0"),Oa=yield(0,Ce.ZP)(`/api/exercises/${Gt==null?void 0:Gt.categoryId}/change_pwd.json`,{method:"post",body:{type:1,pwd:Hn}});Nt(!1),(Oa==null?void 0:Oa.status)===0&&xt.setFieldsValue({start_password:Hn})})},"\u6362\u4E00\u6362"))):Cn.createElement(fe.default.Item,{hidden:!0,name:"start_password",label:"\u5F00\u8003\u5BC6\u7801(\u53EA\u7528\u6765\u5728\u88AB\u9690\u85CF\u7684\u662F\u65F6\u5019\u8FDB\u884C\u6536\u96C6\u6570\u636E)"})),Cn.createElement("div",{className:"ant-form-item",style:{background:"#F6F7F9",padding:"8px 30px",marginTop:"1px"}},Cn.createElement(fe.default.Item,{name:"is_locked",valuePropName:"checked",style:{marginBottom:0}},Cn.createElement(Se.default,{disabled:Bn},Cn.createElement(Cn.Fragment,null,Cn.createElement("strong",{style:{fontSize:"14px",color:"#000"}},"\u8003\u8BD5\u89E3\u9501\u7801 ",Cn.createElement("span",{style:{color:"#666",fontSize:14,fontWeight:400}},"\uFF08\u52FE\u9009\u540E\uFF0C\u5982\u679C\u5B66\u751F\u5728\u8003\u8BD5\u4E2D\u9014\u9000\u51FA\u60F3\u518D\u7EE7\u7EED\u8003\u8BD5\uFF0C\u9700\u8981\u4F7F\u7528\u89E3\u9501\u7801\u8FDB\u884C\u89E3\u9501\u3002\uFF09"))))),nn.is_locked&&(0,On.GJ)()?Cn.createElement(oe.Z,{className:pu.unlockKeyWrapper,align:"middle"},Cn.createElement(fe.default.Item,{style:{marginBottom:0},name:"unlock_key"},Cn.createElement(Le.default,{size:"large",className:pu.unlockKeyInput,disabled:Bn,placeholder:"\u8BF7\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801"})),Cn.createElement(ve.Z,null,!Bn&&Cn.createElement(me.ZP,{type:"link",loading:Rt,onClick:()=>Zs(void 0,null,function*(){Xt(!0);let Hn=Math.floor(Math.random()*1e6).toString().padStart(6,"0"),Oa=yield(0,Ce.ZP)(`/api/exercises/${Gt==null?void 0:Gt.categoryId}/change_pwd.json`,{method:"post",body:{type:2,pwd:Hn}});Xt(!1),(Oa==null?void 0:Oa.status)===0&&xt.setFieldsValue({unlock_key:Hn})})},"\u6362\u4E00\u6362"))):Cn.createElement(fe.default.Item,{hidden:!0,name:"unlock_key",label:"\u8003\u8BD5\u89E3\u9501\u7801(\u53EA\u7528\u6765\u5728\u88AB\u9690\u85CF\u7684\u662F\u65F6\u5019\u8FDB\u884C\u6536\u96C6\u6570\u636E)"})),Cn.createElement(fe.default.Item,{name:"login_restrict",valuePropName:"checked",style:{background:"#F6F7F9",padding:"8px 30px",marginTop:"1px"}},Cn.createElement(Se.default,{disabled:Bn},Cn.createElement(Cn.Fragment,null,Cn.createElement("strong",{style:{fontSize:"14px",color:"#000"}},"\u8003\u8BD5\u767B\u5F55\u9650\u5236",Cn.createElement("span",{style:{color:"#666",fontSize:14,fontWeight:400}},"\uFF08\u52FE\u9009\u540E\uFF0C\u5B66\u751F\u5728\u8003\u8BD5\u671F\u95F4\u7B2C\u4E8C\u6B21\u53CA\u540E\u7EED\u767B\u5F55\u7CFB\u7EDF\u65F6\uFF0C\u9700\u8981\u76D1\u8003\u8001\u5E08\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801\u624D\u80FD\u767B\u5F55\u7CFB\u7EDF\uFF09"))))),Cn.createElement("div",{className:"ant-form-item",style:{background:"#F6F7F9",padding:"8px 30px",marginTop:"1px"}},Cn.createElement(fe.default.Item,{name:"screen_open",valuePropName:"checked"},Cn.createElement(Se.default,{disabled:Bn},Cn.createElement("strong",{style:{fontSize:"14px",color:"#000"}},"\u5207\u5C4F\u540E\u5F3A\u5236\u4EA4\u5377"))),nn.screen_open?Cn.createElement(Cn.Fragment,null,Cn.createElement(oe.Z,{gutter:10,className:`${pu.unlockKeyWrapper}`,style:{color:"#666666"},align:"middle",wrap:!1},Cn.createElement(ve.Z,null,"\u8003\u8BD5\u8FC7\u7A0B\u4E2D\u5207\u6362\u9875\u9762\u8D85\u8FC7"),Cn.createElement(ve.Z,null,Cn.createElement(fe.default.Item,{name:"screen_num",style:{marginBottom:0}},Cn.createElement(Re.Z,{size:"large",disabled:Bn,min:0,max:10,addonAfter:"\u6B21",style:{width:"150px"}}))),Cn.createElement(ve.Z,null,"\u540E\u5C06\u88AB\u5F3A\u5236\u4EA4\u5377\uFF0C\u5207\u6362\u5230\u5176\u4ED6\u9875\u9762"),Cn.createElement(ve.Z,null,Cn.createElement(fe.default.Item,{name:"screen_sec",style:{marginBottom:0}},Cn.createElement(Re.Z,{size:"large",disabled:Bn,min:0,max:60,addonAfter:"\u79D2",style:{width:"150px"}}))),Cn.createElement(ve.Z,null,"\u540E\u5373\u5224\u5B9A\u4E3A\u5207\u5C4F\u3002")),Cn.createElement(oe.Z,{gutter:10,className:`c-grey-333 ${pu.unlockKeyWrapper}`,align:"middle",wrap:!1},Cn.createElement(ve.Z,null,Cn.createElement(fe.default.Item,{name:"screen_shot_open",valuePropName:"checked",style:{marginBottom:0}},Cn.createElement(Ne.Z,{disabled:Bn||!nn.screen_open}))),Cn.createElement(ve.Z,{style:{color:"#666666"}},"\u5B66\u751F\u9000\u51FA\u5168\u5C4F\u6216\u5207\u6362\u9875\u9762\u540E\u8FDB\u884C\u622A\u5C4F"))):Cn.createElement(Cn.Fragment,null,Cn.createElement(fe.default.Item,{hidden:!0,name:"screen_num",label:"(\u53EA\u7528\u6765\u5728\u88AB\u9690\u85CF\u7684\u662F\u65F6\u5019\u8FDB\u884C\u6536\u96C6\u6570\u636E)"}),Cn.createElement(fe.default.Item,{hidden:!0,name:"screen_sec",label:"(\u53EA\u7528\u6765\u5728\u88AB\u9690\u85CF\u7684\u662F\u65F6\u5019\u8FDB\u884C\u6536\u96C6\u6570\u636E)"}),Cn.createElement(fe.default.Item,{hidden:!0,name:"screen_shot_open",label:"(\u53EA\u7528\u6765\u5728\u88AB\u9690\u85CF\u7684\u662F\u65F6\u5019\u8FDB\u884C\u6536\u96C6\u6570\u636E)"}))),Cn.createElement("div",{className:"ant-form-item",style:{background:"#F6F7F9",padding:"8px 30px",marginTop:"1px"}},Cn.createElement(fe.default.Item,{name:"ip_bind",valuePropName:"checked",style:{marginBottom:0}},Cn.createElement(Se.default,{disabled:Bn},Cn.createElement(Cn.Fragment,null,Cn.createElement("strong",{style:{fontSize:"14px",color:"#000"}},"IP\u5730\u5740\u7ED1\u5B9A",Cn.createElement("span",{style:{color:"#666",fontSize:14,fontWeight:400}},"\uFF08\u52FE\u9009\u540E\uFF0C\u5F00\u59CB\u8003\u8BD5\u7684\u5B66\u751F\u8D26\u53F7\u5C06\u81EA\u52A8\u4E0E\u8BBE\u5907\u516C\u7F51IP\u6216\u5185\u7F51IP\u8FDB\u884C\u7ED1\u5B9A\u3002\u5982\u9047\u7279\u6B8A\u60C5\u51B5\uFF0C\u53EF\u7531\u6559\u5E08/\u52A9\u6559\u8FDB\u884CIP\u89E3\u7ED1\u3002\uFF09"))))),nn.ip_bind&&(0,On.GJ)()?Cn.createElement(oe.Z,{className:pu.unlockKeyWrapper,style:{flexDirection:"column"}},Cn.createElement(fe.default.Item,{name:"ip_bind_type",style:{marginBottom:0}},Cn.createElement(Ie.ZP.Group,null,Cn.createElement(Ie.ZP,{value:!1,style:{marginRight:"32px",fontWeight:"400"}},Cn.createElement("span",{style:{color:"#000"}},"\u7ED1\u5B9A\u5916\u7F51IP",Cn.createElement("span",{style:{color:"#666",fontSize:14,fontWeight:400}},"\uFF08\u5B66\u6821\u6821\u56ED\u7F51\u7535\u8111\u7684\u516C\u7F51IP\u53EF\u80FD\u4F1A\u5B58\u5728\u53D8\u52A8\uFF09"))),Cn.createElement(Ie.ZP,{value:!0,style:{fontWeight:"400"}},Cn.createElement("span",{style:{color:"#000"}},"\u7ED1\u5B9A\u5185\u7F51IP",Cn.createElement("span",{style:{color:"#666",fontSize:14,fontWeight:400}},"\uFF08\u9700\u8981\u5B89\u88C5\u63D2\u4EF6\u624D\u80FD\u83B7\u53D6ip\uFF0C\u524D\u5F80",Cn.createElement("a",{className:"c-blue",target:"_blank",href:"https://www.educoder.net/forums/4478"},"\u4E0B\u8F7D\u63D2\u4EF6"),"\uFF09")))))):Cn.createElement(fe.default.Item,{hidden:!0,name:"ip_bind_type",label:"(\u53EA\u7528\u6765\u5728\u88AB\u9690\u85CF\u7684\u662F\u65F6\u5019\u8FDB\u884C\u6536\u96C6\u6570\u636E)"})),Cn.createElement("div",{className:"ant-form-item",style:{background:"#F6F7F9",padding:"8px 30px",marginTop:"1px"}},Cn.createElement(fe.default.Item,{name:"ip_limit",valuePropName:"checked",style:{marginBottom:0}},Cn.createElement(Se.default,{disabled:Bn},Cn.createElement(Cn.Fragment,null,Cn.createElement("strong",{style:{fontSize:"14px",color:"#000"}},"\u9650\u5236\u8003\u8BD5\u8BBF\u95EEIP",Cn.createElement("span",{style:{color:"#666",fontSize:14,fontWeight:400}},"\uFF08\u9650\u5236\u53C2\u4E0E\u8003\u8BD5\u8BBE\u5907\u7684IP\u5730\u5740\u8303\u56F4\uFF09"))))),Cn.createElement(fe.default.Item,{name:"public_ip",label:"\u516C\u7F51IP\u5730\u5740\u8303\u56F4(\u53EA\u7528\u6765\u5728\u88AB\u9690\u85CF\u7684\u662F\u65F6\u5019\u8FDB\u884C\u6536\u96C6\u6570\u636E)",hidden:!0}),Cn.createElement(fe.default.Item,{name:"inner_ip",label:"\u5185\u7F51IP\u5730\u5740\u8303\u56F4(\u53EA\u7528\u6765\u5728\u88AB\u9690\u85CF\u7684\u662F\u65F6\u5019\u8FDB\u884C\u6536\u96C6\u6570\u636E)",hidden:!0}),(nn==null?void 0:nn.ip_limit)&&Cn.createElement(oe.Z,{className:pu.unlockKeyWrapper,style:{flexDirection:"column"}},Cn.createElement(ve.Z,null,Cn.createElement("span",{className:"c-red"},"\uFF08\u53EA\u5141\u8BB8\u5728Chrome\u8C37\u6B4C\u6D4F\u89C8\u5668\u4F5C\u7B54\uFF0C\u5E76\u4E14\u8981\u6C42\u5B66\u751F\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6\uFF09"),Cn.createElement("a",{className:"c-blue",target:"_blank",href:"https://www.educoder.net/forums/4478"},"\u5982\u4F55\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6?")),Cn.createElement(oe.Z,{className:`mt15 ${pu.ipWrp}`,style:{background:"#F6F7F9"}},Cn.createElement(ve.Z,null,"\u516C\u7F51IP\u5730\u5740\u8303\u56F4\uFF1A"),Cn.createElement(ve.Z,null,(Dt=nn.public_ip)==null?void 0:Dt.map((Hn,Oa)=>Cn.createElement("span",{key:Oa,className:pu.ipItem},Cn.createElement("i",null,Hn," "),!Bn&&Cn.createElement(Po.Z,{onClick:()=>{Fe.default.confirm({okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u5B9A\u5220\u9664\u8BE5IP\u5417\uFF1F",onOk:()=>{nn.public_ip.splice(Oa,1),ha(ds({},nn))}})},className:" c-grey-c",size:20}))),(0,On.GJ)()&&!Bn&&Cn.createElement("span",{onClick:()=>{_e({type:"exercise/setActionTabs",payload:{key:"addIp",type:"public_ip"}})},className:"font14 c-blue ml10",style:{cursor:"pointer"}}," ",Cn.createElement("i",{className:"iconfont icon-xuanyong font14"})," \u6DFB\u52A0"))),Cn.createElement(oe.Z,{className:`mt15 ${pu.ipWrp}`,style:{background:"#F6F7F9"}},Cn.createElement(ve.Z,null,Cn.createElement("span",null,"\u5185\u7F51IP\u5730\u5740\u8303\u56F4\uFF1A")),Cn.createElement(ve.Z,null,(et=nn.inner_ip)==null?void 0:et.map((Hn,Oa)=>Cn.createElement("span",{className:pu.ipItem},Cn.createElement("i",null,Hn," "),!Bn&&Cn.createElement(Po.Z,{onClick:()=>{Bn||Fe.default.confirm({title:"\u786E\u5B9A\u5220\u9664\u8BE5IP\u5417\uFF1F",onOk:()=>{nn.inner_ip.splice(Oa,1),ha(ds({},nn))}})},className:" c-grey-c",size:20}))),(0,On.GJ)()&&!Bn&&Cn.createElement("span",{className:"font14 c-blue ml10",onClick:()=>{_e({type:"exercise/setActionTabs",payload:{key:"addIp",type:"inner_ip"}})},style:{cursor:"pointer"}}," ",Cn.createElement("i",{className:"iconfont icon-xuanyong font14"})," \u6DFB\u52A0"))))),Cn.createElement("div",{className:"ant-form-item",style:{background:"#F6F7F9",padding:"8px 30px",marginTop:"1px"}},Cn.createElement(fe.default.Item,{name:"open_camera",valuePropName:"checked",style:{marginBottom:0}},Cn.createElement(Se.default,{disabled:Bn},Cn.createElement(Cn.Fragment,null,Cn.createElement("strong",{style:{fontSize:"14px",color:"#000"}},"\u8003\u8BD5\u4E2D\u542F\u7528\u62CD\u7167\u529F\u80FD\u8FDB\u884C\u76D1\u8003\u548C\u884C\u4E3A\u5206\u6790",Cn.createElement("span",{style:{color:"#666",fontSize:14,fontWeight:400}},"\uFF08\u5B66\u751F\u5728\u8003\u8BD5\u8FC7\u7A0B\u4E2D\u4F7F\u7528\u7535\u8111\u6444\u50CF\u5934\u968F\u673A\u6293\u62CD\u7167\u7247\uFF0C\u7528\u4E8E\u76D1\u8003\u548C\u5B66\u4E60\u884C\u4E3A\u5206\u6790\uFF0C\u5206\u6790\u7ED3\u679C\u53EF\u5728\u5B66\u751F\u7B54\u5377\u4E2D\u67E5\u770B\uFF09"))))),nn.open_camera?Cn.createElement(oe.Z,{gutter:10,className:`c-grey-333 ${pu.unlockKeyWrapper}`,align:"middle",wrap:!1},Cn.createElement(ve.Z,{style:{color:"#666666"}},"\u672C\u573A\u8003\u8BD5\u6700\u591A\u62CD\u6444"),Cn.createElement(ve.Z,null,Cn.createElement(fe.default.Item,{name:"photo_count",style:{marginBottom:0}},Cn.createElement(Re.Z,{size:"large",disabled:Bn||!nn.open_camera,min:1,max:(0,On.Ny)()?1e3:10,addonAfter:"\u6B21",style:{width:"150px"}}))),Cn.createElement(ve.Z,null,Cn.createElement("span",{className:"c-grey-c font14 ml10",style:{color:"#666"}},"\uFF08\u53EF\u586B\u5199\u6700\u5927\u503C\u4E3A10\uFF09"))):Cn.createElement(fe.default.Item,{hidden:!0,name:"photo_count",label:"(\u53EA\u7528\u6765\u5728\u88AB\u9690\u85CF\u7684\u662F\u65F6\u5019\u8FDB\u884C\u6536\u96C6\u6570\u636E)"})),Cn.createElement(fe.default.Item,{name:"identity_verify",valuePropName:"checked",style:{background:"#F6F7F9",padding:"8px 30px",marginTop:"1px"}},Cn.createElement(Se.default,{disabled:!(0,On.ag)()||Bn},Cn.createElement(Cn.Fragment,null,Cn.createElement("strong",{style:{fontSize:"14px",color:"#000"}},"\u8003\u8BD5\u524D\u4EBA\u8138\u8EAB\u4EFD\u6838\u9A8C ",Cn.createElement("span",{style:{color:"#666",fontSize:14,fontWeight:400}},"\uFF08\u52FE\u9009\u540E\uFF0C\u5B66\u751F\u5F00\u59CB\u8003\u8BD5\u524D\u9700\u8981\u4EBA\u8138\u9A8C\u8BC1\u5BA1\u6838\uFF0C\u5BA1\u6838\u901A\u8FC7\u540E\u624D\u53EF\u8FDB\u5165\u7B54\u9898\uFF09"))))),Cn.createElement(fe.default.Item,{name:"open_phone_video_recording",valuePropName:"checked",style:{background:"#F6F7F9",padding:"8px 30px"}},Cn.createElement(Se.default,{disabled:!(0,On.ag)()||Bn},Cn.createElement(Cn.Fragment,null,Cn.createElement("strong",{style:{fontSize:"14px",color:"#000"}},"\u8003\u8BD5\u4E2D\u5F00\u542F\u624B\u673A\u89C6\u9891\u5F55\u5236",Cn.createElement("span",{style:{color:"#666",fontSize:14,fontWeight:400}},"\uFF08\u5B66\u751F\u5F00\u59CB\u8003\u8BD5\u524D\u5FC5\u987B\u5148\u5F00\u542F\u624B\u673A\u5F55\u5236\u89C6\u9891\uFF0C\u6559\u5E08/\u52A9\u6559\u53EF\u5728\u8BD5\u5377\u8BE6\u60C5-\u6444\u50CF\u76D1\u63A7\u9875\u9762\u67E5\u770B\u5B66\u751F\u89C6\u9891\u52A8\u6001\uFF09")))))),((0,On.aN)()||((Be=ce==null?void 0:ce.commonHeader)==null?void 0:Be.exercise_author))&&!(hn!=null&&hn.appraise_label)&&Cn.createElement(me.ZP,{type:"primary",style:{width:"138px",marginTop:"30px"},size:"large",onClick:()=>{xt.submit()}},"\u4FDD\u5B58")),Cn.createElement(oc,null),Cn.createElement(Fe.default,{centered:!0,destroyOnClose:!0,open:Ut,title:"\u5934\u6B4C\u6559\u5E08\u4EA4\u6D41\u793E\u533A",width:"500px",footer:null,onCancel:()=>Yt(!1)},Cn.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},Cn.createElement("p",null,"\u626B\u7801\u6216\u641C\u7D22\u52A0\u5165\u5934\u6B4C\u6559\u5E08\u4EA4\u6D41QQ\u7FA4\uFF1A",(Pe=se==null?void 0:se.setting)==null?void 0:Pe.homepage_tea_qq_number," "),Cn.createElement("img",{src:`${ke.Z.IMG_SERVER}/${(Ht=se==null?void 0:se.setting)==null?void 0:Ht.homepage_tea_qq_qrcode_url}`,width:200,height:200}))))};var _s=(0,he.connect)(({exercise:ce,loading:se,globalSetting:ae})=>({exercise:ce,loading:se.effects,globalSetting:ae}))(Hs),ju=z(67294),fi=Object.defineProperty,Ns=Object.defineProperties,rc=Object.getOwnPropertyDescriptors,Qc=Object.getOwnPropertySymbols,yd=Object.prototype.hasOwnProperty,rd=Object.prototype.propertyIsEnumerable,Od=(ce,se,ae)=>se in ce?fi(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,Xc=(ce,se)=>{for(var ae in se||(se={}))yd.call(se,ae)&&Od(ce,ae,se[ae]);if(Qc)for(var ae of Qc(se))rd.call(se,ae)&&Od(ce,ae,se[ae]);return ce},Hd=(ce,se)=>Ns(ce,rc(se)),m0=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const B0=({exercise:ce,loading:se,dispatch:ae})=>{var _e,pt,Ve;const{workSetting:Dt,commonHeader:et}=ce,Be=(0,he.useParams)();Be.category=Be.categoryId;const[Pe,Ht]=(0,a.useState)(!1),[vn,hn]=(0,a.useState)(!1);let[xt,Gt]=(0,a.useState)({score_open:!1,answer_open:!1,show_statistic:!1,open_total_score:!1,open_score_reviewed:!0,open_score_commited:!1,open_score:!1,answered_open:!1,assistant_auth:!1,passing_rate:60,use_blank_score:!1,downcase:!1,open_make_up:!1,make_up_score:1});(0,a.useEffect)(()=>{Dn("\u8868\u5355\u672A\u4FDD\u5B58")},[xt]);const Bn=Yt=>{Yt.preventDefault(),Yt.returnValue=""},Dn=(Yt="")=>{ae({type:"exercise/setActionTabs",payload:{key:Yt}})};(0,a.useEffect)(()=>{var Yt,ta;Fn(),(Yt=Dt==null?void 0:Dt.exercise)!=null&&Yt.id&&!(0,On.aN)()&&!((ta=Dt==null?void 0:Dt.exercise)!=null&&ta.is_creator)&&Ht(!0)},[ce==null?void 0:ce.workSetting]),(0,a.useEffect)(()=>{},[]);const Fn=()=>{const Yt=JSON.parse(JSON.stringify(Dt));Object.keys(xt).forEach(ta=>{var nn;xt[ta]=(nn=Yt==null?void 0:Yt.exercise)==null?void 0:nn[ta]}),console.log("--111-",Dt,xt),Gt(xt),ce.actionTabs.key!="\u6279\u91CF\u53D1\u5E03"&&Dn("")},Wt=()=>{const Yt=JSON.parse(JSON.stringify(xt));Yt.categoryId=Be.categoryId,Ut(Yt)},Ut=Yt=>m0(void 0,null,function*(){var ta;if((Yt==null?void 0:Yt.use_blank_score)!==((ta=Dt==null?void 0:Dt.exercise)==null?void 0:ta.use_blank_score)){let zn=Fe.default.confirm({closable:!0,width:500,centered:!0,icon:null,title:"\u63D0\u793A",onOk:()=>m0(void 0,null,function*(){hn(!0);const mn=yield(0,Ce.ZP)(`/api/exercises/${Be==null?void 0:Be.categoryId}/property_settings.json`,{method:"post",body:Yt});hn(!1),mn.status===0&&(pe.ZP.success("\u4FDD\u5B58\u6210\u529F"),Dn(""),ae({type:"exercise/getCommonHeader",payload:Xc({},Be)}),ae({type:"exercise/getWorkSetting",payload:Xc({},Be)}),hn(!1))})});Yt!=null&&Yt.use_blank_score?zn.update({content:ju.createElement("div",null,"\u60A8\u5DF2\u52FE\u9009",ju.createElement("span",{style:{color:"#165DFF"}},"\u201C \u591A\u9009\u9898\u6F0F\u9009\u90E8\u5206\u7ED9\u5206 \u201D"),"\uFF0C\u4FDD\u5B58\u8BBE\u7F6E\u540E\u5C06\u4F1A\u6309\u7167\u65B0\u7684\u7ED9\u5206\u65B9\u5F0F\u91CD\u65B0\u8BA1\u7B97\u5206\u503C\u3002\u662F\u5426\u786E\u5B9A\u4FEE\u6539\uFF1F")}):zn.update({content:ju.createElement("div",null,"\u60A8\u5DF2\u53D6\u6D88\u52FE\u9009",ju.createElement("span",{style:{color:"#165DFF"}},"\u201C \u591A\u9009\u9898\u6F0F\u9009\u90E8\u5206\u7ED9\u5206 \u201D"),"\uFF0C\u4FDD\u5B58\u8BBE\u7F6E\u540E\u5C06\u4F1A\u6309\u7167\u65B0\u7684\u7ED9\u5206\u65B9\u5F0F\u91CD\u65B0\u8BA1\u7B97\u5206\u503C\u3002\u662F\u5426\u786E\u5B9A\u4FEE\u6539\uFF1F")});return}hn(!0);const nn=yield(0,Ce.ZP)(`/api/exercises/${Be==null?void 0:Be.categoryId}/property_settings.json`,{method:"post",body:Yt});hn(!1),nn.status===0&&(pe.ZP.success("\u4FDD\u5B58\u6210\u529F"),Dn(""),ae({type:"exercise/getCommonHeader",payload:Xc({},Be)}),ae({type:"exercise/getWorkSetting",payload:Xc({},Be)}))});return ju.createElement("section",{className:pu.scoreSettingWrapper,style:{padding:"30px 50px"}},ju.createElement(jt.Z,{spinning:se["exercise/getWorkSetting"]||vn},(et==null?void 0:et.is_make_up_exercise)&&ju.createElement(ju.Fragment,null,ju.createElement(oe.Z,{align:"middle",justify:"space-between",style:{background:"#F6F7F9",padding:"13px 30px"}},ju.createElement(ve.Z,null,ju.createElement(Se.default,{checked:xt.open_make_up,disabled:Pe,onChange:Yt=>{xt.open_make_up=Yt.target.checked,Gt(Object.assign({},xt))},className:pu.mainRuleText},ju.createElement("span",{style:{fontWeight:400,color:"#000"},className:"font14"},"\u8865\u8003\u6263\u5206 ")),ju.createElement("span",{style:{color:"#666666"}},"\uFF08\u9009\u4E2D\uFF0C\u7CFB\u7EDF\u5C06\u5728\u6BCF\u4E2A\u53C2\u52A0\u8865\u8003\u5B66\u751F\u6700\u7EC8\u6210\u7EE9\u7684\u57FA\u7840\u4E0A\u81EA\u52A8\u6263\u9664\u5BF9\u5E94\u8BBE\u7F6E\u7684\u5206\u503C\uFF09"))),xt.open_make_up&&ju.createElement("div",{className:"flex item-center gap-10px",style:{background:"#F6F7F9",padding:"13px 54px"}},ju.createElement("div",null,"\u6263\u5206"),ju.createElement(Re.Z,{value:xt==null?void 0:xt.make_up_score,min:1,step:1,max:(_e=Dt==null?void 0:Dt.exercise)!=null&&_e.total_score?Number((pt=Dt==null?void 0:Dt.exercise)==null?void 0:pt.total_score):Number.MAX_SAFE_INTEGER,suffix:"\u5206",style:{width:"120px"},onChange:Yt=>{Gt(Hd(Xc({},xt),{make_up_score:Math.floor(Yt)}))}}))),ju.createElement(oe.Z,{align:"middle",justify:"space-between",style:{background:"#F6F7F9",padding:"13px 30px"}},ju.createElement(ve.Z,null,ju.createElement(Se.default,{checked:xt.use_blank_score,disabled:Pe,onChange:Yt=>{xt.use_blank_score=Yt.target.checked,Gt(Object.assign({},xt))},className:pu.mainRuleText},ju.createElement(ju.Fragment,null,ju.createElement("span",{style:{fontWeight:400,color:"#000"},className:"font14"},"\u591A\u9009\u9898\u6F0F\u9009\u90E8\u5206\u7ED9\u5206"))),ju.createElement("span",{style:{color:"#666666"}},"\uFF08\u9009\u4E2D\uFF0C\u5B66\u751F\u6709\u6F0F\u9009\u6B63\u786E\u7B54\u6848\u4F46\u662F\u9009\u4E2D\u7684\u7B54\u6848\u5168\u90E8\u6B63\u786E\uFF0C\u53EF\u83B7\u5F97\u90E8\u5206\u5206\u503C\uFF0C\u5206\u503C=\u9009\u4E2D\u7684\u7B54\u6848\u4E2A\u6570*\uFF08\u8BE5\u5C0F\u9898\u5206\u503C/\u6B63\u786E\u7B54\u6848\u7684\u4E2A\u6570\uFF09\uFF09"))),ju.createElement(oe.Z,{align:"middle",justify:"space-between",style:{background:"#F6F7F9",padding:"13px 30px"}},ju.createElement(ve.Z,null,ju.createElement(Se.default,{checked:xt.downcase,disabled:Pe,onChange:Yt=>{xt.downcase=Yt.target.checked,Gt(Object.assign({},xt))},className:pu.mainRuleText},ju.createElement("span",{style:{fontWeight:400,color:"#000"},className:"font14"},"\u586B\u7A7A\u9898\u5224\u5206\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),ju.createElement("span",{style:{color:"#666666"}},"\uFF08\u9009\u4E2D\uFF0C\u5219\u586B\u7A7A\u9898\u5728\u5224\u5206\u65F6\uFF0C\u5C06\u5FFD\u7565\u7B54\u6848\u603B\u4E2D\u82F1\u6587\u5B57\u6BCD\u5927\u5C0F\u5199\u9650\u5236\uFF09"))),ju.createElement(oe.Z,{align:"middle",justify:"space-between",style:{background:"#F6F7F9",padding:"13px 30px",marginTop:"1px"}},ju.createElement(ve.Z,null,ju.createElement(Se.default,{checked:xt.open_total_score,disabled:Pe,onChange:Yt=>{xt.open_total_score=Yt.target.checked,Yt.target.checked?(xt.open_score=!1,xt.open_score_reviewed=!0):(xt.open_score=!0,xt.open_score_reviewed=!1),Gt(Object.assign({},xt))},className:pu.mainRuleText},ju.createElement("span",{style:{fontWeight:400,color:"#000"},className:"font14"},"\u5141\u8BB8\u5B66\u751F\u67E5\u770B\u6210\u7EE9")),ju.createElement("span",{style:{color:"#666666"}},"\uFF08\u9009\u4E2D\uFF0C\u53EF\u914D\u7F6E\u5B66\u751F\u5728\u67D0\u9636\u6BB5\u53EF\u67E5\u770B\u8003\u8BD5\u6210\u7EE9\uFF09"))),xt.open_total_score&&ju.createElement(ju.Fragment,null,ju.createElement(oe.Z,{style:{background:"#F6F7F9",padding:"13px 54px"}},ju.createElement(Ie.ZP.Group,{disabled:Pe,value:xt.open_score?"afterEndTime":xt!=null&&xt.open_score_reviewed?"afterReview":"afterCommit",onChange:Yt=>{Yt.target.value==="afterEndTime"?Gt(ta=>Hd(Xc({},ta),{open_score:!0,open_score_reviewed:!1,open_score_commited:!1})):Yt.target.value==="afterReview"?Gt(ta=>Hd(Xc({},ta),{open_score:!1,open_score_reviewed:!0,open_score_commited:!1})):Gt(ta=>Hd(Xc({},ta),{open_score:!1,open_score_reviewed:!1,open_score_commited:!0}))}},ju.createElement(Ie.ZP,{value:"afterEndTime",style:{marginRight:"80px"}},ju.createElement("span",{style:{color:"#000"}},"\u8003\u8BD5\u622A\u6B62\u540E")),ju.createElement(Ie.ZP,{value:"afterCommit",style:{marginRight:"80px"}},ju.createElement("span",{style:{color:"#000"}},"\u63D0\u4EA4\u8BD5\u5377\u540E")),ju.createElement(Ie.ZP,{value:"afterReview"},ju.createElement("span",{style:{color:"#000"}},"\u8003\u8BD5\u622A\u6B62\u4E14\u8BD5\u5377\u8BC4\u9605\u5B8C\u6210\u540E")))),ju.createElement(oe.Z,{style:{background:"#F6F7F9",padding:"13px 30px",marginTop:"1px"}},ju.createElement(Se.default,{className:pu.mainRuleText,checked:xt.answered_open,disabled:Pe,onChange:Yt=>{xt.answered_open=Yt.target.checked,Gt(Object.assign({},xt))}},ju.createElement("span",{style:{fontWeight:400,color:"#000"},className:"font14"},"\u5141\u8BB8\u67E5\u770B\u8BD5\u5377")),ju.createElement("span",{style:{color:"#666666"}},"\uFF08\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u53EF\u4EE5\u67E5\u770B\u4E2A\u4EBA\u8003\u8BD5\u7B54\u5377\uFF09")),xt.answered_open&&ju.createElement(oe.Z,{style:{background:"#F6F7F9",padding:"13px 54px"}},ju.createElement(Ie.ZP.Group,{value:xt.answer_open,disabled:Pe,onChange:Yt=>{xt.answer_open=Yt.target.value,Gt(Object.assign({},xt))}},ju.createElement(Ie.ZP,{value:!0,style:{marginRight:"25px"}},ju.createElement("span",{style:{color:"#000"}},"\u663E\u793A\u8BD5\u9898\u7B54\u6848\u548C\u89E3\u6790")),ju.createElement(Ie.ZP,{value:!1},ju.createElement("span",{style:{color:"#000"}},"\u4E0D\u663E\u793A\u8BD5\u9898\u7B54\u6848\u548C\u89E3\u6790")))),ju.createElement(oe.Z,{style:{background:"#F6F7F9",padding:"13px 30px",marginTop:"1px"}},ju.createElement(Se.default,{className:pu.mainRuleText,checked:xt.score_open,disabled:Pe,onChange:Yt=>{xt.score_open=Yt.target.checked,Gt(Object.assign({},xt))}},ju.createElement("span",{style:{fontWeight:400,color:"#000"},className:"font14"},"\u5141\u8BB8\u5DF2\u63D0\u4EA4\u7B54\u9898\u7684\u5B66\u751F\u67E5\u770B\u5176\u5B83\u5B66\u751F\u7684\u6210\u7EE9")),ju.createElement("span",{style:{color:"#666666"}},"\uFF08\u9009\u4E2D\uFF0C\u5219\u5DF2\u7ECF\u4EA4\u5377\u7684\u5B66\u751F\u53EF\u4EE5\u67E5\u770B\u5176\u4ED6\u540C\u5B66\u672C\u573A\u8003\u8BD5\u7684\u6210\u7EE9\uFF09")),ju.createElement(oe.Z,{style:{background:"#F6F7F9",padding:"13px 30px"}},ju.createElement(Se.default,{className:pu.mainRuleText,checked:xt.show_statistic,disabled:Pe,onChange:Yt=>{xt.show_statistic=Yt.target.checked,Gt(Object.assign({},xt))}},ju.createElement("span",{style:{fontWeight:400,color:"#000"},className:"font14"},"\u5141\u8BB8\u5DF2\u63D0\u4EA4\u7B54\u9898\u7684\u5B66\u751F\u67E5\u770B\u7EDF\u8BA1\u7ED3\u679C")),ju.createElement("span",{style:{color:"#666666"}},"\uFF08\u9009\u4E2D\uFF0C\u5219\u5DF2\u7ECF\u4EA4\u5377\u7684\u5B66\u751F\u53EF\u4EE5\u672C\u573A\u8003\u8BD5\u7684\u7EDF\u8BA1\u7ED3\u679C\uFF09"))),((0,On.aN)()||((Ve=ce==null?void 0:ce.commonHeader)==null?void 0:Ve.exercise_author))&&ju.createElement(me.ZP,{type:"primary",style:{width:"138px",marginTop:"30px"},size:"large",onClick:Wt},"\u4FDD\u5B58")))};var g0=(0,he.connect)(({exercise:ce,loading:se,globalSetting:ae})=>({exercise:ce,loading:se.effects,globalSetting:ae}))(B0),Wd=z(65107),Gl=z(67294),fd=Object.defineProperty,$d=Object.defineProperties,ed=Object.getOwnPropertyDescriptors,f0=Object.getOwnPropertySymbols,e0=Object.prototype.hasOwnProperty,S0=Object.prototype.propertyIsEnumerable,Md=(ce,se,ae)=>se in ce?fd(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,ld=(ce,se)=>{for(var ae in se||(se={}))e0.call(se,ae)&&Md(ce,ae,se[ae]);if(f0)for(var ae of f0(se))S0.call(se,ae)&&Md(ce,ae,se[ae]);return ce},Jc=(ce,se)=>$d(ce,ed(se)),od=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Vd=({exercise:ce,globalSetting:se,loading:ae,dispatch:_e})=>{const{workSetting:pt,commonHeader:Ve}=ce,Dt=(0,he.useParams)();Dt.category=Dt.categoryId;const{verifyModelUser:et,ContactModalElement:Be}=(0,Wd.Z)(),[Pe,Ht]=(0,a.useState)(!1),[vn,hn]=(0,a.useState)(0),[xt,Gt]=(0,a.useState)(0),[Bn,Dn]=(0,a.useState)(!1),[Fn,Wt]=(0,a.useState)({}),[Ut,Yt]=(0,a.useState)(!1),[ta,nn]=(0,a.useState)([]),[zn,mn]=(0,a.useState)([]),[pa,Pt]=(0,a.useState)([]),[Nt,Rt]=(0,a.useState)([]),[Xt,cn]=(0,a.useState)([]);let[tn,Ja]=(0,a.useState)({select_appraise:!1,sealed_review:!1,review_type:0,end_time:"",is_open_ai_review:!1});(0,a.useEffect)(()=>{var La;!(0,On.aN)()&&!((La=pt==null?void 0:pt.exercise)!=null&&La.is_creator)&&Ht(!0)},[pt]),(0,a.useEffect)(()=>{ha()},[Ve]);const ha=()=>od(void 0,null,function*(){Dn(!0);const La=yield(0,Ce.ZP)(`/api/exercises/${Dt==null?void 0:Dt.categoryId}/distinguish_exercise_setting.json`,{method:"get"});Object.keys(tn).forEach(Zn=>{tn[Zn]=La==null?void 0:La[Zn]}),console.log(La,"res"),Wt(ld({},La)),cn((La==null?void 0:La.exercise_questions)||[]),Sa(ld({},La)),mn((La==null?void 0:La.course_review_teachers)||[]),Ja(Jc(ld({},tn),{select_appraise:!!La.end_time})),hn((La==null?void 0:La.total)||0),Gt((La==null?void 0:La.finish_total)||0),Dn(!1),Ba("")}),dt=()=>{const La=JSON.parse(JSON.stringify(tn));if(La.select_appraise){if(!La.end_time){pe.ZP.warning("\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A");return}if(!La.review_type&&!Nt.length){pe.ZP.warning("\u8BF7\u81F3\u5C11\u6DFB\u52A0\u4E00\u4F4D\u8BC4\u9605\u6559\u5E08");return}if(La.review_type&&!Xt.some(Zn=>!!Zn.appraise_teachers.length)){pe.ZP.warning("\u8BF7\u81F3\u5C11\u6DFB\u52A0\u4E00\u4F4D\u8BC4\u9605\u6559\u5E08");return}La.review_type===0&&(La.exercises=Nt==null?void 0:Nt.map(Zn=>{var bn;return{id:Zn.id,total:Zn.total,finish_total:Zn.finish_total,unfinished_total:Zn.unfinished_total,appraise_teacher_ids:(bn=Zn==null?void 0:Zn.appraise_teachers)==null?void 0:bn.map(ca=>({id:ca.id}))}})),La.review_type===1&&(La.exercise_questions=Xt==null?void 0:Xt.map(Zn=>{var bn;return{id:Zn.id,total:Zn.total,question_id:Zn.question_id,appraise_teacher_ids:(bn=Zn==null?void 0:Zn.appraise_teachers)==null?void 0:bn.map(ca=>({id:ca.id,message_status:ca.message_status}))}})),Fe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",icon:null,closable:!0,width:650,title:"\u63D0\u793A",content:Gl.createElement("div",null,Gl.createElement("div",null,"\u4E3A\u786E\u4FDD\u96C6\u4E2D\u9605\u5377\u6A21\u5F0F\u8BC4\u5206\u7ED3\u679C\u7684\u51C6\u786E\u6027\uFF0C\u4FDD\u5B58\u8BC4\u9605\u8BBE\u7F6E\u4E4B\u540E\uFF0C\u672C\u573A\u8003\u8BD5\u5C06",Gl.createElement("span",{style:{color:"#FA6400"}},"\u7981\u6B62"),"\u8FDB\u884C\u4EE5\u4E0B\u64CD\u4F5C\uFF1A"),Gl.createElement("div",{style:{padding:10,marginTop:5,background:"#F6F7F9"}},"1.\u53D1\u5E03\u65B0\u73ED\u7EA7\u8003\u8BD5",Gl.createElement("br",null),"2.\u4FEE\u6539\u672C\u573A\u8003\u8BD5\u7ED3\u675F\u65F6\u95F4",Gl.createElement("br",null),"3.\u5F00\u542F\u8865\u8003",Gl.createElement("br",null),"4.\u7F16\u8F91\u8BD5\u5377"),Gl.createElement("div",{className:"c-grey-999",style:{marginTop:10,color:"#FA6A0A",display:"flex",alignItems:"center"}},Gl.createElement(b.Z,{style:{marginRight:3}})," ",Gl.createElement("span",null,"\u6CE8\u610F\uFF1A\u5982\u9700\u53D1\u5E03\u65B0\u73ED\u7EA7\u8003\u8BD5\uFF0C\u8BF7\u521B\u5EFA\u65B0\u8BD5\u5377\u540E\u53D1\u5E03"))),onOk:()=>{Fa(La)}});return}Fa(La)},Fa=La=>od(void 0,null,function*(){Dn(!0);const Zn=yield(0,Ce.ZP)(`/api/exercises/${Dt==null?void 0:Dt.categoryId}/appraise_settings.json`,{method:"post",body:La});if(Dn(!1),Zn.status===0){pe.ZP.success("\u4FDD\u5B58\u6210\u529F"),Ba(""),_e({type:"exercise/getCommonHeader",payload:ld({},Dt)});return}}),ia=(La,Zn)=>{const bn=Math.floor(La/Zn);let ca=La%Zn;const Qn=[];for(let pn=0;pn0?1:0)),ca--;return Qn},wu=La=>{var Zn;if(La[0]){let bn=[];Nt.forEach(Qn=>bn=bn.concat(Qn.appraise_teachers));let ca=zn.filter(Qn=>bn.every(pn=>pn.id!==Qn.id));console.log(ca,"newItems"),Pt([...ca]),Yt(La)}if(!La[0]){let bn=[];bn=bn.concat(((Zn=Xt==null?void 0:Xt[La[1]])==null?void 0:Zn.appraise_teachers)||[]);let ca=zn.filter(Qn=>bn.every(pn=>pn.id!==Qn.id));Pt([...ca]),Yt(La)}},Sa=La=>{if(La!=null&&La.start_appraise){Rt((La==null?void 0:La.exercises)||[]);return}let Zn=La==null?void 0:La.exercises;const bn=ia(La==null?void 0:La.total,Zn.length),ca=ia(La==null?void 0:La.finish_total,Zn.length);bn.forEach((Qn,pn)=>{Zn[pn].total=Qn}),ca.forEach((Qn,pn)=>{Zn[pn].finish_total=Qn,Zn[pn].unfinished_total=Zn[pn].total-Zn[pn].finish_total}),Zn=Zn.filter(Qn=>Qn.total>0),Rt(JSON.parse(JSON.stringify(Zn)))},Hn=()=>{if(!ta.length){pe.ZP.warning("\u8BF7\u81F3\u5C11\u6DFB\u52A0\u4E00\u4F4D\u8BC4\u9605\u6559\u5E08");return}if(Ut[0]){if(Ut[1]===null){const La=pa.filter(Qn=>ta.includes(Qn.id));let Zn=[...Nt,...La==null?void 0:La.map(Qn=>({appraise_teachers:[Qn],total:0,finish_total:0,unfinished_total:0}))];const bn=ia(vn,Zn.length),ca=ia(xt,Zn.length);bn.forEach((Qn,pn)=>{Zn[pn].total=Qn}),ca.forEach((Qn,pn)=>{Zn[pn].finish_total=Qn,Zn[pn].unfinished_total=Zn[pn].total-Zn[pn].finish_total}),Zn=Zn.filter(Qn=>Qn.total>0),Rt(JSON.parse(JSON.stringify(Zn))),Yt(!1)}if(Ut[1]!==null){const La=pa.filter(bn=>ta.includes(bn.id));let Zn=[];Nt.forEach((bn,ca)=>{if(Ut[1]===ca){Zn.push(Jc(ld({},bn),{appraise_teachers:[...bn.appraise_teachers,...La]}));return}Zn.push(bn)}),Rt(Zn),Yt(!1)}}if(!Ut[0]&&Ut[1]!==null){let La=pa.filter(bn=>ta.includes(bn.id));La=La.map(bn=>Jc(ld({},bn),{message_status:Fn!=null&&Fn.start_appraise?1:0}));let Zn=[];Xt.forEach((bn,ca)=>{if(Ut[1]===ca){Zn.push(Jc(ld({},bn),{appraise_teachers:[...bn.appraise_teachers,...La]}));return}Zn.push(bn)}),cn(Zn),Yt(!1)}},Oa=[{title:"\u5E8F\u53F7",dataIndex:"index",align:"center",render:(La,Zn,bn)=>bn+1,width:70},{title:"\u8BC4\u9605\u6559\u5E08",align:"center",dataIndex:"appraise_teachers",className:pu.padding,render:(La,Zn,bn)=>Gl.createElement("span",{className:pu.tagWrap},Gl.createElement("div",null,La==null?void 0:La.map(ca=>Gl.createElement("div",{className:pu.tag,key:ca.id},Gl.createElement("b",{title:ca.name},ca.name),(ca==null?void 0:ca.disabled)!==!0&&!Pe&&Gl.createElement("span",{onClick:Qn=>{const pn=La.filter(En=>En.id!==ca.id),Tn=Nt.map((En,da)=>da===bn?Jc(ld({},En),{appraise_teachers:pn}):En);pn.length?Rt(Tn):Fe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5220\u9664\u6B64\u6559\u5E08\uFF0C\u8BD5\u5377\u5C06\u91CD\u65B0\u5747\u5206\u7ED9\u5176\u4ED6\u8BC4\u9605\u6559\u5E08\uFF1B\u5982\u9700\u6DFB\u52A0\u6307\u5B9A\u6559\u5E08\uFF0C\u8BF7\u70B9\u51FB\u201C+\u8BC4\u9605\u6559\u5E08\u201D\u6309\u94AE\u3002",onOk:()=>{const En=Nt==null?void 0:Nt.filter((au,Ya)=>Ya!==bn),da=ia(vn,En.length),Ha=ia(xt,En.length);da.forEach((au,Ya)=>{En[Ya].total=au}),Ha.forEach((au,Ya)=>{En[Ya].finish_total=au,En[Ya].unfinished_total=En[Ya].total-En[Ya].finish_total}),Rt(JSON.parse(JSON.stringify(En)))}})}},Gl.createElement("i",{className:"iconfont icon-guanbi7"}))))),!Pe&&Gl.createElement("span",{onClick:()=>wu([!0,bn]),style:{fontSize:14,fontWeight:400},className:"iconfont c-gcrz-primary current icon-tianjiatimu ml3"}," \u6DFB\u52A0\u5171\u8BC4\u6559\u5E08"))},{title:"\u603B\u6570\u91CF",align:"center",dataIndex:"total",width:90},{title:"\u5DF2\u8BC4\u9605\u6570\u91CF",align:"center",dataIndex:"finish_total",width:100},{title:"\u5F85\u8BC4\u9605\u6570\u91CF",align:"center",dataIndex:"unfinished_total",width:100}],tu=[{title:"\u5E8F\u53F7",dataIndex:"index",align:"center",render:(La,Zn,bn)=>bn+1,width:70},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",align:"center",width:100},{title:"\u8BC4\u9605\u6559\u5E08",align:"center",className:pu.padding,dataIndex:"appraise_teachers",render:(La,Zn,bn)=>Gl.createElement("span",{className:pu.tagWrap},Gl.createElement("div",null,La==null?void 0:La.map(ca=>Gl.createElement("div",{className:pu.tag,key:ca.id},Gl.createElement("b",{title:ca.name},ca.name),(ca==null?void 0:ca.disabled)!==!0&&!Pe&&Gl.createElement("span",{onClick:()=>{const Qn=La.filter(Tn=>Tn.id!==ca.id),pn=Xt.map((Tn,En)=>En===bn?Jc(ld({},Tn),{appraise_teachers:Qn}):Tn);cn(pn)}},Gl.createElement("i",{className:"iconfont icon-guanbi7"}))))),!Pe&&Gl.createElement("span",{onClick:()=>wu([!1,bn]),className:"iconfont c-gcrz-primary current icon-tianjiatimu ml3"}))},{title:"\u603B\u6570\u91CF",align:"center",dataIndex:"total",width:90},{title:"\u5DF2\u8BC4\u9605\u6570\u91CF",align:"center",dataIndex:"finish_total",width:100},{title:"\u5F85\u8BC4\u9605\u6570\u91CF",align:"center",dataIndex:"unfinished_total",width:100}];(0,a.useEffect)(()=>{Ba("\u8868\u5355\u672A\u4FDD\u5B58")},[tn]);const Ka=La=>{La.preventDefault(),La.returnValue=""},Ba=(La="")=>{_e({type:"exercise/setActionTabs",payload:{key:La}})};return Gl.createElement("section",{className:pu.form,style:{padding:"30px 50px",marginBottom:"0px"}},Gl.createElement(jt.Z,{spinning:Bn},Gl.createElement("div",{className:pu.title},"\u96C6\u4E2D\u8BC4\u9605",Gl.createElement("span",{style:{color:"#666",fontWeight:400,fontSize:14}},"\uFF08\u5F53\u5B58\u5728\u5B66\u751F\u5DF2\u4EA4\u5377\u3001\u8003\u8BD5\u72B6\u6001\u4E3A\u201C\u5DF2\u622A\u6B62\u201D\uFF0C\u4E14\u8BD5\u5377\u5305\u542B\u586B\u7A7A\u3001\u7B80\u7B54\u3001\u7F16\u7A0B\u3001\u7A0B\u5E8F\u586B\u7A7A\u3001\u5B9E\u8BAD\u9898\u4EFB\u610F\u9898\u578B\u65F6\uFF0C\u65B9\u53EF\u5F00\u542F\u96C6\u4E2D\u8BC4\u9605\uFF09")),Gl.createElement("div",{style:{background:"#F6F7F9",padding:"10px 30px",marginTop:"1px"}},Gl.createElement(Se.default,{checked:tn.select_appraise,disabled:Pe||!(Fn!=null&&Fn.can_open_appraise&&!(Fn!=null&&Fn.end_time)),onChange:La=>{tn.select_appraise=La.target.checked,Ja(Object.assign({},tn))}}),Gl.createElement("span",{style:{color:"#000",fontSize:"14px",marginLeft:"10px"}},"\u96C6\u4E2D\u9605\u5377"),Gl.createElement("span",{style:{color:"#666",marginLeft:"5px"}},"\uFF08\u5F00\u542F\u96C6\u4E2D\u9605\u5377\u540E\u65E0\u6CD5\u5173\u95ED\uFF09"),tn.select_appraise&&Gl.createElement("div",{style:{marginTop:"15px",marginLeft:30}},Gl.createElement("span",{style:{color:"#666666",marginRight:"20px"}},Gl.createElement("span",{style:{color:"red"}},"*"),"\u622A\u6B62\u65F6\u95F4"),Gl.createElement(Aa.default,{style:{width:234},size:"large",placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Ge()((0,de.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:Pe,allowClear:!1,value:tn.end_time?Ge()(tn.end_time):"",disabledDate:Zt.Q8,disabledTime:La=>(0,Zt.d0)(La),onChange:(La,Zn)=>{tn.end_time=Zn,Ja(Object.assign({},tn))}}))),tn.select_appraise&&Gl.createElement("div",null,Gl.createElement("div",{style:{background:"#F6F7F9",padding:"10px 30px",marginTop:1}},Gl.createElement(Se.default,{checked:tn.sealed_review,disabled:Pe||!(Fn!=null&&Fn.change_sealed_review),onChange:La=>{tn.sealed_review=La.target.checked,Ja(Object.assign({},tn))}}),Gl.createElement("span",{style:{marginLeft:"10px",fontSize:"14px",color:"#000"}},"\u5C01\u5377\u8BC4\u9605"),Gl.createElement("span",{style:{color:"#666",marginLeft:"5px"}},"\uFF08\u9009\u4E2D\uFF0C\u6559\u5E08\u5728\u96C6\u4E2D\u8BC4\u9605\u754C\u9762\u4E0D\u663E\u793A\u5B66\u751F\u4FE1\u606F\uFF09")),Gl.createElement("div",{style:{background:"#F6F7F9",padding:"10px 30px",marginTop:1}},Gl.createElement("div",{style:{color:"#333333",fontSize:14,fontWeight:600,marginBottom:20}},"\u8BC4\u9605\u6A21\u5F0F",Gl.createElement("span",{style:{fontWeight:400,fontSize:14,color:"#666"}},"\uFF08\u8BC4\u9605\u6A21\u5F0F\u5F00\u542F\u540E\u4E0D\u53EF\u66F4\u6539\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C\uFF09")),Gl.createElement(Ie.ZP.Group,{value:tn.review_type,disabled:Pe||!!(Fn!=null&&Fn.end_time),style:{marginLeft:30},onChange:La=>{tn.review_type=La.target.value,Ja(Object.assign({},tn))}},Gl.createElement(Ie.ZP,{value:0},Gl.createElement("span",{style:{color:"#000"}},"\u8BD5\u5377\u6A21\u5F0F"),Gl.createElement("span",{style:{color:"#666",fontWeight:400,fontSize:14}},"\uFF08\u5B66\u751F\u8BD5\u5377\u5C06\u5747\u5300\u5206\u914D\u7ED9\u8BC4\u9605\u6559\u5E08\uFF0C\u65E0\u6CD5\u5747\u5206\u591A\u51FA\u7684\u8BD5\u5377\u968F\u673A\u5206\u914D\uFF09")),Gl.createElement(Ie.ZP,{style:{marginLeft:"50px"},value:1},Gl.createElement("span",{style:{color:"#000"}},"\u8BD5\u9898\u6A21\u5F0F"),Gl.createElement("span",{style:{color:"#666",fontWeight:400,fontSize:14}},"\uFF08\u5C06\u5355\u4E2A\u8BD5\u9898\u6307\u5B9A\u7ED9\u591A\u4E2A\u6559\u5E08\u5171\u540C\u8BC4\u9605\uFF09"))),Gl.createElement(oe.Z,{style:{width:"100%",marginTop:"15px"},align:"middle"},Gl.createElement("div",{style:{color:"#666666",marginRight:"20px"}},Gl.createElement("span",{style:{color:"red"}},"*"),"\u8BC4\u9605\u6559\u5E08"),tn.review_type===0&&Gl.createElement("div",{style:{flex:1}},Nt.length>0&&Gl.createElement(x.default,{bordered:!0,className:"mb20",pagination:!1,dataSource:Nt,columns:Oa}),(Fn==null?void 0:Fn.start_appraise)===!1&&!Pe&&Gl.createElement("div",{onClick:()=>wu([!0,null]),style:{display:vn==1&&(Nt==null?void 0:Nt.length)===1&&"none",width:"124px",height:"38px",lineHeight:"38px",border:"1px #3061D0 solid",borderRadius:"2px",textAlign:"center",cursor:"pointer",color:"#3061D0",background:"#fff"}},"\u6DFB\u52A0\u8BC4\u9605\u6559\u5E08")),tn.review_type===1&&Gl.createElement("div",{style:{flex:1}},Xt.length>0&&Gl.createElement(x.default,{bordered:!0,pagination:!1,rowKey:"id",dataSource:Xt,columns:tu}))))),((0,On.aN)()||!!Fn.exercise_author)&&Gl.createElement(me.ZP,{type:"primary",style:{width:"138px",marginTop:"30px"},size:"large",onClick:dt},"\u4FDD\u5B58")),Be(),Gl.createElement(Fe.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:!!Ut,title:(Ut==null?void 0:Ut[1])===null?"\u6307\u5B9A\u8BC4\u9605\u6559\u5E08":"\u5171\u540C\u8BC4\u9605\u6559\u5E08",bodyStyle:{padding:"0 16px"},okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",width:"800px",onOk:Hn,afterClose:()=>{nn([])},onCancel:()=>{Yt(!1)}},Gl.createElement(x.default,{pagination:{hideOnSinglePage:!0},bordered:!0,rowSelection:{type:"checkbox",onChange:La=>{nn(La)}},rowKey:"id",dataSource:pa,columns:[{title:"\u6559\u5E08\u59D3\u540D",align:"center",dataIndex:"name",width:"25%"},{title:"\u624B\u673A",align:"center",dataIndex:"phone",width:"18%"},{title:"\u90AE\u7BB1",align:"center",dataIndex:"email",width:"28%"},{title:"\u89D2\u8272",align:"center",dataIndex:"identity"}]})))};var Gd=(0,he.connect)(({exercise:ce,loading:se,globalSetting:ae})=>({exercise:ce,loading:se.effects,globalSetting:ae}))(Vd),xo=z(67294),v0=Object.defineProperty,P0=Object.defineProperties,t0=Object.getOwnPropertyDescriptors,n0=Object.getOwnPropertySymbols,Kd=Object.prototype.hasOwnProperty,Yd=Object.prototype.propertyIsEnumerable,p0=(ce,se,ae)=>se in ce?v0(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,Rd=(ce,se)=>{for(var ae in se||(se={}))Kd.call(se,ae)&&p0(ce,ae,se[ae]);if(n0)for(var ae of n0(se))Yd.call(se,ae)&&p0(ce,ae,se[ae]);return ce},E0=(ce,se)=>P0(ce,t0(se)),D0=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const b0=({exercise:ce,globalSetting:se,loading:ae,dispatch:_e})=>{var pt,Ve;const{workSetting:Dt,commonHeader:et}=ce,[Be]=fe.default.useForm(),Pe=(0,he.useParams)();Pe.category=Pe.categoryId;const[Ht,vn]=(0,a.useState)(!1),[hn,xt]=(0,a.useState)(!1),Gt={forbid_screen:!1,screen_key:((pt=Dt==null?void 0:Dt.exercise)==null?void 0:pt.screen_key)||"",use_white_list:!1,white_list:[],net_limit:!1,net_limit_list:"",forbid_virtual:!1};let[Bn,Dn]=(0,a.useState)(Gt);const[Fn,Wt]=(0,a.useState)(!1);(0,a.useEffect)(()=>{var Pt,Nt;Ut(),(Pt=Dt==null?void 0:Dt.exercise)!=null&&Pt.id&&!(0,On.aN)()&&!((Nt=Dt==null?void 0:Dt.exercise)!=null&&Nt.is_creator)&&vn(!0)},[ce==null?void 0:ce.workSetting]),(0,a.useEffect)(()=>{((et==null?void 0:et.exercise_status)==="5"||et!=null&&et.appraise_label)&&vn(!0)},[et]),(0,a.useEffect)(()=>{},[]),(0,a.useEffect)(()=>{ce.actionTabs.key==="insterIp"&&(ce.actionTabs.data.ip?Bn[ce.actionTabs.type]=[...Bn[ce.actionTabs.type]||[],...ce.actionTabs.data.ip]:Bn[ce.actionTabs.type]=[...Bn[ce.actionTabs.type]||[],`${ce.actionTabs.data.startIP},${ce.actionTabs.data.startIP.substring(0,ce.actionTabs.data.startIP.lastIndexOf("."))+"."+ce.actionTabs.data.endIP}`],Yt(Bn),Wt(!0))},[ce.actionTabs]);const Ut=()=>{const Pt=JSON.parse(JSON.stringify(Dt));Object.keys(Bn).forEach(Nt=>{var Rt;Bn[Nt]=(Rt=Pt==null?void 0:Pt.exercise)==null?void 0:Rt[Nt]}),Yt(E0(Rd({},Bn),{ip_limit:Bn.ip_limit!=="no"}))},Yt=Pt=>{Dn(Pt),Be.setFieldsValue(Pt)};function ta(Pt=""){if(!Pt)return!1;const Nt=Pt.split(` +`),Rt=/^(http|https):\/\//;for(let Xt=0;Xt{var Nt,Rt;if(Pt.categoryId=Pe.categoryId,Pt.forbid_screen&&!(Pt!=null&&Pt.screen_key.replace(/\s+/g,""))){pe.ZP.warning("\u8BF7\u586B\u5199\u89E3\u9501\u5207\u5C4F\u7801");return}if(Pt!=null&&Pt.use_white_list&&!((Nt=Pt==null?void 0:Pt.white_list)!=null&&Nt.length)){pe.ZP.warning("\u8BF7\u9009\u62E9\u767D\u540D\u5355\u7A0B\u5E8F");return}if(Pt!=null&&Pt.net_limit){if(Pt!=null&&Pt.net_limit_list&&!((Rt=Pt==null?void 0:Pt.net_limit_list)!=null&&Rt.replace(/\s+/g,""))){pe.ZP.warning("\u7F51\u7EDC\u9650\u5236\u4E2D\uFF0C\u4E0D\u5141\u8BB8\u5168\u90E8\u4E3A\u7A7A\u683C");return}if(ta(Pt==null?void 0:Pt.net_limit_list)){pe.ZP.warning("\u7F51\u7EDC\u9650\u5236\u4E2D\uFF0C\u57DF\u540D\u4E0D\u9700\u8981\u586B\u5199http/https\u7684\u524D\u7F00\uFF0C\u8BF7\u4FEE\u6539");return}}zn(Pt)},zn=Pt=>D0(void 0,null,function*(){xt(!0);const Nt=yield(0,Ce.ZP)(`/api/exercises/${Pe==null?void 0:Pe.categoryId}/client_cheating_settings.json`,{method:"post",body:Pt});xt(!1),Nt.status===0&&(pe.ZP.success("\u4FDD\u5B58\u6210\u529F"),_e({type:"exercise/getCommonHeader",payload:Rd({},Pe)}),_e({type:"exercise/getWorkSetting",payload:Rd({},Pe)}),Wt(!1))});(0,a.useEffect)(()=>{mn(Fn?"\u8868\u5355\u672A\u4FDD\u5B58":"")},[Fn]);const mn=(Pt="")=>{_e({type:"exercise/setActionTabs",payload:{key:Pt}})},pa=[{value:"360huabao",label:"360\u753B\u62A5"},{value:"360se",label:"360\u6D4F\u89C8\u5668"},{value:"chrome",label:"google\u6D4F\u89C8\u5668"},{value:"Code",label:"vscode\u7F16\u8F91\u5668"},{value:"msedge",label:"edge\u6D4F\u89C8\u5668"},{value:"QQ",label:"qq\u6D4F\u89C8\u5668"},{value:"SystemSettings",label:"\u7CFB\u7EDF\u8BBE\u7F6E"},{value:"WeChat",label:"\u5FAE\u4FE1"},{value:"WindowsTerminal",label:"\u7EC8\u7AEF"},{value:"WINWORD",label:"\u5FAE\u8F6FOffice"},{value:"Taskmgr",label:"\u4EFB\u52A1\u7BA1\u7406\u5668"},{value:"EXCEL",label:"Microsoft Excel"},{value:"POWERPNT",label:"Microsoft PowerPoint"},{value:"firefox",label:"Firefox"},{value:"DingTalk",label:"\u9489\u9489"}];return xo.createElement("section",{className:pu.formDom,style:{padding:"30px 50px"}},xo.createElement(jt.Z,{spinning:ae["exercise/getWorkSetting"]||hn},xo.createElement(fe.default,{form:Be,name:"basicForm",initialValues:Gt,colon:!1,onValuesChange:(Pt,Nt)=>{console.log("onValuesChange",Nt);let Rt=Nt;for(const Xt in Pt)(Xt=="ip_bind"||Xt=="ip_limit")&&!Nt.is_locked&&Nt[Xt]&&(Rt.is_locked=!0),Xt=="open_camera"&&(Rt.photo_count=Rt.photo_count||5);Yt(Rt),Wt(!0)},onFinish:nn},xo.createElement("div",{className:pu.title},"\u5BA2\u6237\u7AEF\u8BBE\u7F6E"),xo.createElement("div",{style:{background:"#F6F7F9",padding:"10px 30px"}},xo.createElement("div",{style:{color:"#000"}},"1\u3001\u82E5\u672A\u8BBE\u7F6E\u5BA2\u6237\u7AEF\u7684\u9632\u4F5C\u5F0A\u89C4\u5219\uFF0C\u652F\u6301\u5B66\u751F\u7F51\u9875\u7AEF\u4E0E\u5BA2\u6237\u7AEF\u540C\u65F6\u6309\u7167\u540C\u4E00\u5957\u89C4\u5219\u8FDB\u884C\u8003\u8BD5\uFF0C\u8003\u8BD5\u7684\u6570\u636E\u4E24\u7AEF\u540C\u6B65\u3002\u82E5\u8BBE\u7F6E\u5BA2\u6237\u7AEF\u8003\u8BD5\u4E0B\u7684\u4EFB\u610F\u89C4\u5219\uFF0C\u5219\u5224\u5B9A\u4E3A\u5F00\u542F\u5BA2\u6237\u7AEF\u8BBE\u7F6E\u7684\u8003\u8BD5\u3002"),xo.createElement("div",{style:{color:"#000",marginTop:"20px"}},"2\u3001\u5F00\u542F\u5BA2\u6237\u7AEF\u8BBE\u7F6E\u7684\u8003\u8BD5\uFF0C\u5B66\u751F\u53EA\u80FD\u5728Windows\u7CFB\u7EDF\u7684\u5BA2\u6237\u7AEF\u8FDB\u884C\u8003\u8BD5\uFF0C\u5E76\u4E14\u9700\u8981\u5B89\u88C5\u8003\u8BD5\u7CFB\u7EDF\u5BA2\u6237\u7AEF\uFF0C\u70B9\u51FB",xo.createElement("a",{onClick:()=>{window.open("/download")}},"\u3010\u4E0B\u8F7D\u5BA2\u6237\u7AEF\u3011"))),xo.createElement("div",{className:"ant-form-item",style:{background:"#F6F7F9",padding:"8px 30px",marginTop:"1px"}},xo.createElement(fe.default.Item,{name:"forbid_screen",valuePropName:"checked",style:{marginBottom:0}},xo.createElement(Se.default,{disabled:Ht},xo.createElement(xo.Fragment,null,xo.createElement("strong",{style:{fontSize:"14px",color:"#000"}},"\u7981\u6B62\u5207\u5C4F")))),Bn.forbid_screen&&xo.createElement(oe.Z,{className:pu.unlockKeyWrapper,align:"middle"},xo.createElement("div",{style:{color:"#666666"}},"\u89E3\u9501\u5207\u5C4F\u7801"),xo.createElement(Ae.Z,{title:"\u5982\u5B66\u751F\u9700\u89E3\u9664\u5207\u5C4F\u9650\u5236\uFF0C\u9700\u6559\u5E08\u8F93\u5165\u89E3\u9501\u7801\u89E3\u9664"},xo.createElement("i",{className:`iconfont icon-tishixiaowenhao ${pu.title_icon}`,style:{cursor:"pointer",margin:"0 10px"}})),xo.createElement(fe.default.Item,{name:"screen_key",style:{marginBottom:0}},xo.createElement(Le.default,{size:"large",className:pu.unlockKeyInput,disabled:!0,placeholder:"\u8BF7\u8F93\u5165\u89E3\u9501\u5207\u5C4F\u7801"})),xo.createElement(ve.Z,null,!Ht&&xo.createElement(me.ZP,{type:"link",onClick:()=>{Be.setFieldsValue({screen_key:Math.floor(Math.random()*1e6).toString().padStart(6,"0")})}},"\u6362\u4E00\u6362")))),xo.createElement("div",{className:"ant-form-item",style:{background:"#F6F7F9",padding:"8px 30px",marginTop:"1px"}},xo.createElement(fe.default.Item,{name:"use_white_list",valuePropName:"checked",style:{marginBottom:0}},xo.createElement(Se.default,{disabled:Ht},xo.createElement(xo.Fragment,null,xo.createElement("strong",{style:{fontSize:"14px",color:"#000"}},"\u8BBE\u7F6E\u767D\u540D\u5355\u7A0B\u5E8F")))),Bn.use_white_list&&xo.createElement(oe.Z,{className:pu.unlockKeyWrapper,align:"middle"},xo.createElement(fe.default.Item,{name:"white_list",style:{marginBottom:0,marginRight:10}},xo.createElement(ft.default,{mode:"tags",size:"large",disabled:Ht,style:{width:1016},options:pa})))),xo.createElement("div",{className:"ant-form-item",style:{background:"#F6F7F9",padding:"8px 30px",marginTop:"1px"}},xo.createElement(fe.default.Item,{name:"net_limit",valuePropName:"checked",style:{marginBottom:0}},xo.createElement(Se.default,{disabled:Ht},xo.createElement(xo.Fragment,null,xo.createElement("strong",{style:{fontSize:"14px",color:"#000"}},"\u7F51\u7EDC\u53EF\u8BBF\u95EE\u6E05\u5355")))),Bn.net_limit&&xo.createElement(oe.Z,{className:pu.unlockKeyWrapper,align:"middle"},xo.createElement(fe.default.Item,{name:"net_limit_list",style:{marginBottom:0}},xo.createElement(Le.default.TextArea,{rows:5,style:{width:1016},disabled:Ht,placeholder:`\u652F\u6301 http\u548Cip\u4E24\u79CD\u65B9\u5F0F\uFF0C\u591A\u4E2Ahttp\uFF0Cip\u591A\u884C\u5C55\u793A\u5982\uFF1A www.educoder.net\uFF08\u57DF\u540D\u4E0D\u9700\u8981\u586B\u5199http/https\u524D\u7F00\uFF09 192.160.22.2 - \u5982\u672A\u586B\u5199\uFF0C\u5219\u9ED8\u8BA4\u53EA\u80FD\u8FDB\u5165https://www.educoder.net\uFF08\u5934\u6B4C\u7F51\u9875\uFF09`})))),xo.createElement("div",{className:"ant-form-item",style:{background:"#F6F7F9",padding:"8px 30px",marginTop:"1px"}},xo.createElement(fe.default.Item,{name:"forbid_virtual",valuePropName:"checked",style:{marginBottom:0}},xo.createElement(Se.default,{disabled:Ht},xo.createElement(xo.Fragment,null,xo.createElement("strong",{style:{fontSize:"14px",color:"#000"}},"\u7981\u6B62\u901A\u8FC7\u865A\u62DF\u673A\u53C2\u8003")))))),((0,On.aN)()||((Ve=ce==null?void 0:ce.commonHeader)==null?void 0:Ve.exercise_author))&&!(et!=null&&et.appraise_label)&&xo.createElement(me.ZP,{type:"primary",style:{width:"138px",marginTop:"30px"},size:"large",onClick:()=>{Be.submit()}},"\u4FDD\u5B58")),xo.createElement(oc,null))};var w0=(0,he.connect)(({exercise:ce,loading:se,globalSetting:ae})=>({exercise:ce,loading:se.effects,globalSetting:ae}))(b0),Cs={flex_box_center:"flex_box_center___qXmER",flex_space_between:"flex_space_between___tVYVF",flex_box_vertical_center:"flex_box_vertical_center___uejwW",flex_box_center_end:"flex_box_center_end___l5I61",flex_box_column:"flex_box_column___A8X3f",content:"content___TBbyO",explain:"explain___WwPyv",tabs:"tabs___MlcMY",active:"active___lV1eg",btns:"btns___qovHC",must:"must___vgDa6",popover:"popover___HAX3s",zybzForm:"zybzForm____IvKI",graaytitle:"graaytitle___hkrTg",dataPicker:"dataPicker___T2aBH",examineStatus:"examineStatus___iICIK",contacts:"contacts___Tyh2m",contacts_img:"contacts_img___pfYUb",suc_status:"suc_status___UuTMv",fail_status:"fail_status___nBUzE",bohui:"bohui___lJoSV",upname:"upname___bCjc5",upnames:"upnames___IeX1u",imghover:"imghover___CqN_f"},Cd=z(87725),Go=z(67294),a0=Object.defineProperty,u0=Object.defineProperties,Ei=Object.getOwnPropertyDescriptors,Ko=Object.getOwnPropertySymbols,Rc=Object.prototype.hasOwnProperty,id=Object.prototype.propertyIsEnumerable,r0=(ce,se,ae)=>se in ce?a0(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,x0=(ce,se)=>{for(var ae in se||(se={}))Rc.call(se,ae)&&r0(ce,ae,se[ae]);if(Ko)for(var ae of Ko(se))id.call(se,ae)&&r0(ce,ae,se[ae]);return ce},k0=(ce,se)=>u0(ce,Ei(se)),A0=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const mm="YYYY-MM-DD HH:mm",qi=({shixunHomeworks:ce,user:se,loading:ae,dispatch:_e})=>{const[pt]=fe.default.useForm(),[Ve,Dt]=(0,a.useState)(null),[et,Be]=(0,a.useState)([]),[Pe,Ht]=(0,a.useState)(""),[vn,hn]=(0,a.useState)(!1),[xt,Gt]=(0,a.useState)(!1),Bn=(0,a.useRef)((0,Ta.throttle)(cn=>Nt(cn),1200,{leading:!0,trailing:!0})).current,[Dn,Fn]=(0,a.useState)([]),[Wt,Ut]=(0,a.useState)(!1),Yt=(0,he.useParams)(),ea=(0,a.useRef)(null),nn=(0,a.useRef)(1),[zn,mn]=(0,a.useState)({});(0,a.useEffect)(()=>{Pt()},[]),(0,a.useEffect)(()=>{pa(Wt?"\u8868\u5355\u672A\u4FDD\u5B58":"")},[Wt]);const pa=(cn="")=>{_e({type:"exercise/setActionTabs",payload:{key:cn}})},Pt=()=>A0(void 0,null,function*(){var cn,tn,Ja,ha,dt,Fa,ia,wu,Sa,Hn,Oa,tu,Ka,Ba,La;let Zn=yield(0,Ce.ZP)(`/api/exercises/${Yt.categoryId}/resources_ensure_info.json`,{method:"get"});pt.setFieldsValue(k0(x0({},(cn=Zn==null?void 0:Zn.data)==null?void 0:cn.important_shixun_configs),{times:(Ja=(tn=Zn==null?void 0:Zn.data)==null?void 0:tn.important_shixun_configs)!=null&&Ja.start_time&&((dt=(ha=Zn==null?void 0:Zn.data)==null?void 0:ha.important_shixun_configs)!=null&&dt.end_time)?[Ge()((ia=(Fa=Zn==null?void 0:Zn.data)==null?void 0:Fa.important_shixun_configs)==null?void 0:ia.start_time),Ge()((Sa=(wu=Zn==null?void 0:Zn.data)==null?void 0:wu.important_shixun_configs)==null?void 0:Sa.end_time)]:["",""]}));const{school_id:bn,school_name:ca}=(Hn=Zn==null?void 0:Zn.data)==null?void 0:Hn.important_shixun_configs;Fn([{id:bn,name:ca}]),mn((Oa=Zn==null?void 0:Zn.data)==null?void 0:Oa.important_shixun_configs),Ht((Ka=(tu=Zn==null?void 0:Zn.data)==null?void 0:tu.important_shixun_configs)==null?void 0:Ka.verify_reason),Dt(((La=(Ba=Zn==null?void 0:Zn.data)==null?void 0:Ba.important_shixun_configs)==null?void 0:La.process)||null),Ut(!1)}),Nt=cn=>A0(void 0,null,function*(){Gt(!0),clearTimeout(ea.current),ea.current=setTimeout(()=>A0(void 0,null,function*(){nn.current+=1;const tn=nn.current,Ja=yield _e({type:"account/getSchoolOption",payload:{keyword:cn,limit:10}});Ja.status===0&&(Fn(Ja==null?void 0:Ja.schools),Gt(!1))}),500)}),Rt=cn=>parseInt(cn||"0",10),Xt=(cn,tn)=>{if(tn&&tn.length===2){const[Ja,ha]=tn;if(!Ja||!ha)return Promise.reject(new Error("\u8BF7\u9009\u62E9\u8D77\u59CB\u65F6\u95F4\u548C\u7ED3\u675F\u65F6\u95F4"))}return Promise.resolve()};return Go.createElement("section",null,Go.createElement("div",{style:{padding:"30px 50px"}},Go.createElement(fe.default,{form:pt,layout:"horizontal",onFinish:cn=>A0(void 0,null,function*(){console.log("---",cn);let tn=yield(0,Ce.ZP)(`/api/exercises/${Yt.categoryId}/resources_first_ensure.json`,{method:"post",body:{important_shixun_configs:k0(x0({},cn),{start_time:Ge()(cn==null?void 0:cn.times[0]).format("YYYY-MM-DD HH:mm"),end_time:Ge()(cn==null?void 0:cn.times[1]).format("YYYY-MM-DD HH:mm")})}});(tn==null?void 0:tn.status)===0&&(pe.ZP.info("\u4FEE\u6539\u6210\u529F"),Pt())}),className:Cs.zybzForm,onValuesChange:()=>{Ut(!0)}},Go.createElement("div",{style:{display:"flex",alignItems:"center"}},Go.createElement("div",{style:{color:"#333333",fontSize:"14px",width:"120px",marginRight:"10px",textAlign:"right"}},Go.createElement("span",{className:Cs.must},"*"),"\u4FDD\u969C\u6807\u8BC6"),Go.createElement(fe.default.Item,{label:"",name:"identifier",style:{width:"100%"},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4FDD\u969C\u6807\u8BC6"}]},Go.createElement(Le.default,{disabled:!0,minLength:4,maxLength:30,size:"large",showCount:!0,placeholder:"\u8BF7\u8F93\u5165\u4FDD\u969C\u6807\u8BC6"}))),Go.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:"20px"}},Go.createElement("div",{style:{color:"#333333",fontSize:"14px",width:"120px",marginRight:"10px",textAlign:"right"}},Go.createElement("span",{className:Cs.must},"*"),"\u9700\u8981\u4FDD\u969C\u7684\u5355\u4F4D"),Go.createElement(fe.default.Item,{label:"",name:"school_id",style:{width:"100%"},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u9700\u8981\u4FDD\u969C\u7684\u5355\u4F4D"}]},Go.createElement(ft.default,{showSearch:!0,size:"large",loading:xt,listHeight:200,placeholder:"\u8BF7\u9009\u62E9\u9700\u8981\u4FDD\u969C\u7684\u5355\u4F4D",filterOption:!1,onSearch:cn=>{Nt(cn)}},Dn.map(cn=>Go.createElement(ft.default.Option,{value:cn.id,key:cn.id},cn.name))))),Go.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:"20px"}},Go.createElement("div",{style:{color:"#333333",fontSize:"14px",width:"120px",marginRight:"10px",textAlign:"right"}},Go.createElement("span",{className:Cs.must},"*"),"\u4FDD\u969C\u65F6\u95F4"),Go.createElement(fe.default.Item,{label:"",name:"times",style:{width:"100%"},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4\u548C\u7ED3\u675F\u65F6\u95F4"},{validator:Xt}]},Go.createElement(Aa.default.RangePicker,{disabledDate:cn=>cn&&cn{if(cn&&cn[0]&&cn[1]){const tn=cn[0].isBefore(Ge()())?Ge()():cn[0];pt.setFieldValue("times",[tn,cn[1]])}else pt.setFieldValue("times",cn)}}))),Go.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:"20px"}},Go.createElement("div",{style:{color:"#333333",fontSize:"14px",width:"120px",marginRight:"10px",textAlign:"right"}},Go.createElement("span",{className:Cs.must},"*"),"\u4FDD\u969C\u4EBA\u6570"),Go.createElement(fe.default.Item,{label:"",name:"people_number",style:{width:"100%"},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4FDD\u969C\u4EBA\u6570"}]},Go.createElement(Re.Z,{size:"large",parser:Rt,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u4FDD\u969C\u4EBA\u6570",min:1})))),Go.createElement("div",{className:`${Cs.examineStatus}`},Ve>=1&&Go.createElement("div",null," ",Go.createElement(Cd.Z,{className:Cs.suc_status})," \u5B9E\u9A8C\u8D44\u6E90\u4F18\u5148\u4FDD\u969C\u7533\u8BF7\u6210\u529F\uFF0C\u5E73\u53F0\u7BA1\u7406\u5458\u5BA1\u6838\u4E2D"),Ve>=2&&Ve!=3&&Go.createElement("div",null," ",Go.createElement(Cd.Z,{className:Cs.suc_status})," \u5E73\u53F0\u7BA1\u7406\u5458\u5BA1\u6838\u901A\u8FC7\uFF0C\u7CFB\u7EDF\u8D44\u6E90\u5206\u914D\u4E2D"),Ve==3&&Go.createElement("div",null," ",Go.createElement(Po.Z,{className:Cs.fail_status}),"\u5E73\u53F0\u7BA1\u7406\u5458\u5BA1\u6838\u9A73\u56DE\uFF0C\u9A73\u56DE\u539F\u56E0: ( ",Go.createElement("span",{title:Pe,className:Cs.bohui},Pe),") \u5982\u6709\u95EE\u9898\u8BF7\u8054\u7CFB",Go.createElement("span",{className:Cs.contacts},Go.createElement("span",null,"\u5E73\u53F0\u8FD0\u8425\u4EBA\u5458")," ",Go.createElement("div",{className:Cs.contacts_img}))),Ve>=4&&Ve!=5&&Ve!=7&&Go.createElement("div",null," ",Go.createElement(Cd.Z,{className:Cs.suc_status})," \u7CFB\u7EDF\u8D44\u6E90\u5206\u914D\u5B8C\u6210\uFF0C\u5B9E\u9A8C\u8D44\u6E90\u4FDD\u969C\u4E2D"),(Ve==5||Ve==7)&&Go.createElement("div",null," ",Go.createElement(Po.Z,{className:Cs.fail_status}),"\u7CFB\u7EDF\u8D44\u6E90\u5206\u914D\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB",Go.createElement("span",{className:Cs.contacts},Go.createElement("span",null,"\u5E73\u53F0\u8FD0\u8425\u4EBA\u5458")," ",Go.createElement("div",{className:Cs.contacts_img}))),Ve>5&&Go.createElement("div",null," ",Go.createElement(Cd.Z,{className:Cs.suc_status})," \u5B9E\u9A8C\u8D44\u6E90\u4FDD\u969C\u5DF2\u7ED3\u675F")),Go.createElement(me.ZP,{type:"primary",style:{width:"138px",marginTop:"30px"},size:"large",onClick:()=>pt.submit()},"\u4FDD\u5B58")))};var ui=(0,he.connect)(({shixunHomeworks:ce,loading:se,user:ae})=>({shixunHomeworks:ce,loading:se.effects,user:ae}))(qi),Ii=z(35059),Qs=z(30264),yc=z(1083),Y0=z.p+"static/imagetest.6bf8d539.png",Fl=z(67294),Om=Object.defineProperty,Mm=Object.defineProperties,gm=Object.getOwnPropertyDescriptors,X0=Object.getOwnPropertySymbols,Rm=Object.prototype.hasOwnProperty,Tm=Object.prototype.propertyIsEnumerable,fm=(ce,se,ae)=>se in ce?Om(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,I0=(ce,se)=>{for(var ae in se||(se={}))Rm.call(se,ae)&&fm(ce,ae,se[ae]);if(X0)for(var ae of X0(se))Tm.call(se,ae)&&fm(ce,ae,se[ae]);return ce},J0=(ce,se)=>Mm(ce,gm(se)),km=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const _m="YYYY-MM-DD HH:mm",jm=({shixunHomeworks:ce,user:se,exercise:ae,loading:_e,dispatch:pt})=>{var Ve,Dt,et,Be,Pe,Ht;const[vn]=fe.default.useForm(),[hn,xt]=(0,a.useState)(null),[Gt,Bn]=(0,a.useState)([]),[Dn,Fn]=(0,a.useState)(""),[Wt,Ut]=(0,a.useState)(!1),[Yt,ea]=(0,a.useState)(!1),[nn,zn]=(0,a.useState)(!1),[mn,pa]=(0,a.useState)([]),[Pt,Nt]=(0,a.useState)(!1),Rt=(0,he.useParams)(),Xt=(0,a.useRef)(null),cn=(0,a.useRef)(1),[tn,Ja]=(0,a.useState)({}),[ha,dt]=(0,a.useState)({}),[Fa,ia]=(0,a.useState)(),[wu,Sa]=(0,a.useState)(),[Hn,Oa]=(0,a.useState)(),[tu,Ka]=(0,a.useState)(!1),{workSetting:Ba,commonHeader:La}=ae;(0,a.useEffect)(()=>{Zn(Pt?"\u8868\u5355\u672A\u4FDD\u5B58":"")},[Pt]);const Zn=(bn="")=>{pt({type:"exercise/setActionTabs",payload:{key:bn}})};return(0,a.useEffect)(()=>{var bn,ca,Qn,pn,Tn,En,da,Ha,au,Ya,Cr,Zu,sa,Ru,mr,gl,Tl;if(Ba!=null&&Ba.exercise){let mu=(Qn=(ca=(bn=Ba==null?void 0:Ba.exercise)==null?void 0:bn.exercise_report_template)==null?void 0:ca.filter($u=>$u==null?void 0:$u.checked))==null?void 0:Qn.map($u=>$u==null?void 0:$u.name);vn.setFieldsValue({enable_report_setting:(pn=Ba==null?void 0:Ba.exercise)==null?void 0:pn.enable_report_setting,exercise_report_template:(Tn=Ba==null?void 0:Ba.exercise)==null?void 0:Tn.report_template_name,exercise_report_templates:mu,enable_student_view:(En=Ba==null?void 0:Ba.exercise)==null?void 0:En.enable_student_view,number:(da=Ba==null?void 0:Ba.exercise)==null?void 0:da.number,report_type:(Ha=Ba==null?void 0:Ba.exercise)==null?void 0:Ha.report_type}),Ja({enable_report_setting:(au=Ba==null?void 0:Ba.exercise)==null?void 0:au.enable_report_setting,exercise_report_template:(Ya=Ba==null?void 0:Ba.exercise)==null?void 0:Ya.report_template_name,exercise_report_templates:mu,enable_student_view:(Cr=Ba==null?void 0:Ba.exercise)==null?void 0:Cr.enable_student_view,number:(Zu=Ba==null?void 0:Ba.exercise)==null?void 0:Zu.number,report_type:(sa=Ba==null?void 0:Ba.exercise)==null?void 0:sa.report_type}),ia({container_id:(Ru=Ba==null?void 0:Ba.exercise)==null?void 0:Ru.sign_attachment_id,url:(mr=Ba==null?void 0:Ba.exercise)==null?void 0:mr.sign_attachment_url}),Sa({container_id:(gl=Ba==null?void 0:Ba.exercise)==null?void 0:gl.date_attachment_id,url:(Tl=Ba==null?void 0:Ba.exercise)==null?void 0:Tl.date_attachment_url})}},[Ba]),Fl.createElement("section",null,Fl.createElement("div",{style:{padding:"0px 50px"}},Fl.createElement("div",{style:{background:"#FFF7EB",height:40,borderRadius:"0px 0px 8px 8px",display:"flex",alignItems:"center",padding:"0px 15px"}},Fl.createElement("i",{className:"iconfont icon-tishi12",style:{marginRight:10,color:"#FEB636"}})," \u5982\u679C\u60A8\u9700\u8981\u81EA\u5B9A\u4E49\u5B9E\u9A8C\u62A5\u544A\u6A21\u677F\uFF0C\u8BF7 ",Fl.createElement("a",{style:{marginLeft:10},onClick:()=>{zn(!0)}}," \u8054\u7CFB\u6211\u4EEC"))),Fl.createElement("div",{style:{padding:"30px 50px"}},Fl.createElement(fe.default,{form:vn,layout:"horizontal",onValuesChange:(bn,ca)=>{var Qn,pn,Tn,En,da,Ha;Ja(ca),ca!=null&&ca.enable_report_setting&&(vn.setFieldsValue({exercise_report_template:(Tn=(pn=(Qn=Ba==null?void 0:Ba.exercise)==null?void 0:Qn.default_templates)==null?void 0:pn[0])==null?void 0:Tn.name}),Ja(J0(I0({},ca),{exercise_report_template:(Ha=(da=(En=Ba==null?void 0:Ba.exercise)==null?void 0:En.default_templates)==null?void 0:da[0])==null?void 0:Ha.name})))},onFinish:bn=>km(void 0,null,function*(){var ca,Qn,pn,Tn;if(console.log("---",bn),!(bn!=null&&bn.exercise_report_template)&&(bn!=null&&bn.enable_report_setting)){pe.ZP.info("\u8BF7\u9009\u62E9\u6A21\u7248");return}let En=(Tn=(pn=(Qn=(ca=Ba==null?void 0:Ba.exercise)==null?void 0:ca.default_templates)==null?void 0:Qn.find(Ha=>(Ha==null?void 0:Ha.name)===(tn==null?void 0:tn.exercise_report_template)))==null?void 0:pn.settings)==null?void 0:Tn.map(Ha=>{var au;return J0(I0({},Ha),{checked:(au=bn==null?void 0:bn.exercise_report_templates)==null?void 0:au.includes(Ha==null?void 0:Ha.name)})}),da=yield(0,Ce.ZP)(`/api/exercises/${Rt.categoryId}/report_settings.json`,{method:"post",body:J0(I0({},bn),{enable_report_setting:bn.enable_report_setting,name:bn.exercise_report_template,exercise_report_template:En,enable_student_view:bn.enable_student_view,sign_attachment_id:Fa.container_id,date_attachment_id:wu.container_id})});(da==null?void 0:da.status)===0&&(pe.ZP.info("\u4FEE\u6539\u6210\u529F"),pt({type:"exercise/getWorkSetting",payload:I0({},Rt)}))}),className:Cs.zybzForm},Fl.createElement("div",{className:"ant-form-item",style:{padding:"8px 30px",background:"#F6F7F9",display:"flex",alignItems:"center"}},Fl.createElement(fe.default.Item,{name:"enable_report_setting",valuePropName:"checked",style:{marginBottom:0}},Fl.createElement(Se.default,null,Fl.createElement(Fl.Fragment,null,Fl.createElement("strong",{style:{fontSize:"14px",color:"#000",fontWeight:400}},"\u5F00\u542F\u540E\uFF0C\u7CFB\u7EDF\u6839\u636E\u5B9E\u9A8C\u62A5\u544A\u7684\u6A21\u677F\u81EA\u52A8\u751F\u6210\u5B66\u751F\u5B9E\u9A8C\u62A5\u544A\uFF0C\u5E76\u652F\u6301\u624B\u5199\u6279\u6CE8\u548C\u5BFC\u51FA\u3002")))),Fl.createElement("a",{onClick:()=>{window.open("https://www.educoder.net/forums/40492")}},"\u64CD\u4F5C\u8BF4\u660E")),(tn==null?void 0:tn.enable_report_setting)&&Fl.createElement("div",{className:"ant-form-item",style:{padding:"8px 30px",background:"#F6F7F9",margin:"1px 0px"}},Fl.createElement(fe.default.Item,{name:"exercise_report_template",style:{marginBottom:0}},Fl.createElement(Ie.ZP.Group,null,(Dt=(Ve=Ba==null?void 0:Ba.exercise)==null?void 0:Ve.default_templates)==null?void 0:Dt.map(bn=>Fl.createElement("div",{style:{display:"flex",alignItems:"center"}},Fl.createElement(Ie.ZP,{value:bn==null?void 0:bn.name},Fl.createElement("span",null,bn==null?void 0:bn.name)),Fl.createElement("a",{style:{fontSize:14,fontWeight:400},onClick:ca=>{ca.stopPropagation(),dt({url:ke.Z.API_SERVER+"/api/attachments/"+(bn==null?void 0:bn.report_template_url),file_type:bn==null?void 0:bn.report_template_type})}},"\u9884\u89C8")))))),(tn==null?void 0:tn.exercise_report_template)&&(tn==null?void 0:tn.enable_report_setting)&&Fl.createElement("div",{style:{marginTop:20,color:"#000000",fontWeight:600,marginBottom:10}},"\u9700\u8981\u5B66\u751F\u586B\u5199\u7684\u4FE1\u606F"),(tn==null?void 0:tn.exercise_report_template)&&(tn==null?void 0:tn.enable_report_setting)&&Fl.createElement("div",{className:"ant-form-item",style:{padding:"8px 30px",background:"#F6F7F9"}},Fl.createElement(fe.default.Item,{name:"exercise_report_templates",style:{marginBottom:0,marginLeft:20}},Fl.createElement(Se.default.Group,null,Fl.createElement(oe.Z,null,(Ht=(Pe=(Be=(et=Ba==null?void 0:Ba.exercise)==null?void 0:et.default_templates)==null?void 0:Be.find(bn=>(bn==null?void 0:bn.name)===(tn==null?void 0:tn.exercise_report_template)))==null?void 0:Pe.settings)==null?void 0:Ht.map(bn=>Fl.createElement(ve.Z,{style:{height:40},span:24},Fl.createElement(Se.default,{value:bn==null?void 0:bn.name},bn==null?void 0:bn.name))))))),Fl.createElement("div",{style:{marginBottom:10,marginTop:20,fontWeight:600,color:"#000"}},"\u6559\u5E08\u9884\u8BBE\u7684\u5B57\u6BB5\u4FE1\u606F"),Fl.createElement("div",{className:"ant-form-item",style:{padding:"10px 30px",background:"#F6F7F9",height:80,display:"flex",alignItems:"center"}},Fl.createElement("span",{style:{marginRight:23}},"\u6559\u5E08\u7B7E\u540D"),Fl.createElement(Ii.default,{action:`${ke.Z.API_SERVER}/api/attachments.json`,name:"file",listType:"picture-card",className:Cs.upname,showUploadList:!1,disabled:Fa==null?void 0:Fa.url,beforeUpload:bn=>{const ca=bn.type==="image/jpeg"||bn.type==="image/png";ca||pe.ZP.error("\u8BF7\u4E0A\u4F20jpg\u6216png\u7C7B\u578B\u56FE\u7247");const Qn=bn.size/1024/1024<2;return Qn||pe.ZP.error("\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72m"),ca&&Qn},onChange:bn=>{var ca;ia((ca=bn==null?void 0:bn.file)==null?void 0:ca.response)}},Fa!=null&&Fa.url?Fl.createElement("div",{className:Cs.upnames,style:{position:"relative"}},Fl.createElement("div",{className:Cs.imghover},Fl.createElement("i",{onClick:()=>{Oa(Fa),Ka(!0)},className:"iconfont icon-yulan3"}),Fl.createElement("i",{onClick:()=>{ia({})},style:{marginLeft:10},className:"iconfont icon-shanchu16"})),Fl.createElement("img",{height:60,width:60,src:ke.Z.API_SERVER+(Fa==null?void 0:Fa.url)})):Fl.createElement("div",null,Fl.createElement("div",{style:{marginTop:8}},"\u4E0A\u4F20"))),Fl.createElement("span",{style:{marginLeft:10,color:"#666666"}},"\uFF08\u652F\u6301\u683C\u5F0F\uFF1Apng\u548Cjpg\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72M\uFF09")),Fl.createElement(Qs.Z,{preview:{visible:tu,onVisibleChange:bn=>Ka(bn),afterOpenChange:bn=>!bn&&Ka("")},wrapperStyle:{display:"none"},height:60,width:60,src:ke.Z.API_SERVER+(Hn==null?void 0:Hn.url)}),Fl.createElement("div",{className:"ant-form-item",style:{padding:"10px 30px",background:"#F6F7F9",height:80,marginTop:1,display:"flex",alignItems:"center"}},Fl.createElement("span",{style:{marginRight:23}},"\u6279\u6539\u65E5\u671F"),Fl.createElement(Ii.default,{action:`${ke.Z.API_SERVER}/api/attachments.json`,name:"file",listType:"picture-card",className:Cs.upname,showUploadList:!1,disabled:wu==null?void 0:wu.url,beforeUpload:bn=>{const ca=bn.type==="image/jpeg"||bn.type==="image/png";ca||pe.ZP.error("\u8BF7\u4E0A\u4F20jpg\u6216png\u7C7B\u578B\u56FE\u7247");const Qn=bn.size/1024/1024<2;return Qn||pe.ZP.error("\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72m"),ca&&Qn},onChange:bn=>{var ca;Sa((ca=bn==null?void 0:bn.file)==null?void 0:ca.response)}},wu!=null&&wu.url?Fl.createElement("div",{className:Cs.upnames,style:{position:"relative"}},Fl.createElement("div",{className:Cs.imghover},Fl.createElement("i",{onClick:()=>{Oa(wu),Ka(!0)},className:"iconfont icon-yulan3"}),Fl.createElement("i",{onClick:()=>{Sa({})},style:{marginLeft:10},className:"iconfont icon-shanchu16"})),Fl.createElement("img",{height:60,width:60,src:ke.Z.API_SERVER+(wu==null?void 0:wu.url)})):Fl.createElement("div",null,Fl.createElement("div",{style:{marginTop:8}},"\u4E0A\u4F20"))),Fl.createElement("span",{style:{marginLeft:10,color:"#666666"}},"\uFF08\u652F\u6301\u683C\u5F0F\uFF1Apng\u548Cjpg\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72M\uFF09")),Fl.createElement("div",{className:"ant-form-item",style:{padding:"10px 30px",background:"#F6F7F9",height:80,marginTop:1,display:"flex",alignItems:"center"}},Fl.createElement("span",{style:{marginRight:23}},"\u8BFE\u7A0B\u7F16\u53F7"),Fl.createElement(fe.default.Item,{name:"number",style:{marginBottom:0}},Fl.createElement(Le.default,null))),Fl.createElement("div",{style:{marginBottom:10,marginTop:20,fontWeight:600,color:"#000"}},"\u67E5\u770B\u5B9E\u9A8C\u62A5\u544A\u8BBE\u7F6E"),Fl.createElement("div",{className:"ant-form-item",style:{padding:"8px 30px",background:"#F6F7F9"}},Fl.createElement(fe.default.Item,{name:"enable_student_view",valuePropName:"checked",style:{marginBottom:0}},Fl.createElement(Se.default,null,Fl.createElement(Fl.Fragment,null,Fl.createElement("strong",{style:{fontSize:"14px",color:"#000",fontWeight:400}},"\u5141\u8BB8\u5B66\u751F\u67E5\u770B\u5B9E\u9A8C\u62A5\u544A"),"\uFF08\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u53EF\u4EE5\u67E5\u770B\u4E2A\u4EBA\u5B9E\u9A8C\u62A5\u544A\uFF09")))),Fl.createElement("div",{style:{marginBottom:10,marginTop:20,fontWeight:600,color:"#000"}},"\u6279\u6CE8\u548C\u5BFC\u51FA\u8BBE\u7F6E"),Fl.createElement("div",{className:"ant-form-item",style:{padding:"8px 30px",background:"#F6F7F9"}},Fl.createElement(fe.default.Item,{name:"report_type",style:{marginBottom:0}},Fl.createElement(Ie.ZP.Group,null,Fl.createElement(ve.Z,{style:{height:40},span:24},Fl.createElement(Ie.ZP,{value:0},Fl.createElement("span",null,"PDF\u683C\u5F0F\uFF08\u652F\u6301\u4EE5PDF\u683C\u5F0F\u8FDB\u884C\u6279\u6CE8\u548C\u5BFC\u51FA\uFF09"))),Fl.createElement(ve.Z,{style:{height:40},span:24},Fl.createElement(Ie.ZP,{value:1},Fl.createElement("span",null,"Word\u683C\u5F0F\uFF08\u652F\u6301\u4EE5Word\u683C\u5F0F\u8FDB\u884C\u6279\u6CE8\u548C\u5BFC\u51FA\uFF09"))))))),Fl.createElement(yc.Z,{visible:nn,setVisible:zn,image:Y0}),Fl.createElement(me.ZP,{type:"primary",style:{width:"138px",marginTop:"30px"},size:"large",onClick:()=>vn.submit()},"\u4FDD\u5B58")),Fl.createElement(ga.Z,{close:!0,hasMask:!0,style:{zIndex:9999},data:ha==null?void 0:ha.url,type:ha==null?void 0:ha.file_type,onClose:()=>dt({})}))};var zm=(0,he.connect)(({shixunHomeworks:ce,loading:se,user:ae,exercise:_e})=>({shixunHomeworks:ce,loading:se.effects,user:ae,exercise:_e}))(jm),q0=z(42469),Td=z(67294);const Zm=({exercise:ce,globalSetting:se,dispatch:ae})=>{var _e,pt,Ve,Dt,et,Be,Pe,Ht;const[vn,hn]=(0,a.useState)("0"),[xt]=(0,he.useSearchParams)(),Gt=[{label:"\u53D1\u5E03\u8BBE\u7F6E",key:"0",element:Td.createElement(Ci,{changeActive:Bn=>{hn(Bn)}})},!((_e=se==null?void 0:se.setting)!=null&&_e.is_local)&&{label:"\u9632\u4F5C\u5F0A\u8BBE\u7F6E",key:"2",element:Td.createElement(_s,null)},(0,On.GJ)()&&((Ve=(pt=ce==null?void 0:ce.workSetting)==null?void 0:pt.exercise)==null?void 0:Ve.exercise_type)!=2&&{label:"\u8BC4\u9605\u8BBE\u7F6E",key:"5",element:Td.createElement(Gd,null)},{label:"\u6210\u7EE9\u8BBE\u7F6E",key:"3",element:Td.createElement(g0,null)},!((Dt=se==null?void 0:se.setting)!=null&&Dt.is_local)&&{label:"\u5BA2\u6237\u7AEF\u8BBE\u7F6E",key:"4",element:Td.createElement(w0,null)},(0,On.Ny)()&&((Be=(et=ce==null?void 0:ce.workSetting)==null?void 0:et.exercise)==null?void 0:Be.show_resource)&&{label:"\u5B9E\u9A8C\u8D44\u6E90\u4F18\u5148\u4FDD\u969C",key:"6",element:Td.createElement(ui,null)},((Ht=(Pe=ce==null?void 0:ce.workSetting)==null?void 0:Pe.exercise)==null?void 0:Ht.is_show_report_setting)&&{label:"\u5B9E\u9A8C\u62A5\u544A\u8BBE\u7F6E",key:"7",element:Td.createElement(zm,null)}].filter(Bn=>!!Bn);return(0,a.useEffect)(()=>(xt.get("childrenTabs")&&hn(xt.get("childrenTabs")),ae({type:"globalSetting/footerToggle",payload:!1}),()=>{ae({type:"globalSetting/footerToggle",payload:!0})}),[]),Td.createElement("div",{style:{paddingBottom:"50px"}},Td.createElement(q0.Z,{dataSource:Gt,style:{marginBottom:52}}))};var _0=(0,he.connect)(({exercise:ce,globalSetting:se})=>({exercise:ce,globalSetting:se}))(Zm),Uc=z(85657),vm=z(446),td=z(50976),Qm=z(9151),Um=z(37752),pm=z(33648),ue=z(48780),le={Onerow:"Onerow___ZYa8H",TableDom:"TableDom___PXmEy",CollapseDom:"CollapseDom___q9wvV",CollapseDomC:"CollapseDomC___zTeH1",CollapseChildrenDom:"CollapseChildrenDom___O1Ffz",open:"open___K7p7T",DomStyle:"DomStyle___EoUKX",DomStyleTitle:"DomStyleTitle___vhLg3",DomStyleTitleChild:"DomStyleTitleChild___a1RIx",Sessce:"Sessce___zdKQ2",AnswerSDom:"AnswerSDom___YkvgW",scale_hover:"scale_hover___RkGo0",percent:"percent___DP1EH"},Ee=z(51161),je=Object.defineProperty,qe=Object.defineProperties,$e=Object.getOwnPropertyDescriptors,gt=Object.getOwnPropertySymbols,At=Object.prototype.hasOwnProperty,Kt=Object.prototype.propertyIsEnumerable,fn=(ce,se,ae)=>se in ce?je(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,on=(ce,se)=>{for(var ae in se||(se={}))At.call(se,ae)&&fn(ce,ae,se[ae]);if(gt)for(var ae of gt(se))Kt.call(se,ae)&&fn(ce,ae,se[ae]);return ce},en=(ce,se)=>qe(ce,$e(se));const an=(ce="")=>{var se,ae;const _e=document.createElement("html");return _e.innerHTML=(0,Ee.ZP)(ce),a.createElement("span",null,((ae=(se=_e==null?void 0:_e.children)==null?void 0:se[1])==null?void 0:ae.textContent)||(_e==null?void 0:_e.textContent)||"")},In=({ModalProps:ce={},QuestionDetail:se={},CurrentData:ae={}})=>{var _e,pt,Ve,Dt,et,Be,Pe,Ht,vn,hn;const{question_type:xt=null}=se;return(0,a.useEffect)(()=>{console.log("CurrentData===",ae,se,se==null?void 0:se.question_choices)},[ae]),a.createElement(Fe.default,on({},on({title:"\u5B66\u751F\u7B54\u9898",centered:!0,width:800,destroyOnClose:!0,footer:null},ce)),a.createElement("div",{className:"flex item-center mb20",style:{gap:"30px"}},a.createElement("div",{className:"font14"},a.createElement("span",{className:"c-grey-666 mr10"},"\u59D3\u540D"),ae==null?void 0:ae.name),a.createElement("div",{className:"font14"},a.createElement("span",{className:"c-grey-666 mr10"},"\u5B66\u53F7"),ae==null?void 0:ae.student_id),a.createElement("div",{className:"font14"},a.createElement("span",{className:"c-grey-666 mr10"},"\u5206\u73ED"),ae==null?void 0:ae.course_group_name),a.createElement("div",{className:"font14"},a.createElement("span",{className:"c-grey-666 mr10"},"\u5F97\u5206"),(_e=ae==null?void 0:ae.users_answer_info)==null?void 0:_e.score,"/",se==null?void 0:se.question_score)),a.createElement("div",{style:{maxHeight:500,overflow:"auto"}},(xt===Tu.fw[3].id||xt===Tu.fw[8].id)&&a.createElement("div",{className:"flex flex-col font14 gap-10px "},a.createElement("div",{className:"blod"},"\u7B54\u9898\u5185\u5BB9\uFF1A"),(Ve=(pt=ae==null?void 0:ae.users_answer_info)==null?void 0:pt.choices)==null?void 0:Ve.map((Gt,Bn)=>a.createElement("div",{key:Gt==null?void 0:Gt.exercise_choice_id},"\u7B54\u6848\uFF08\u586B\u7A7A",Bn+1,"\uFF09\uFF1A",a.createElement("span",{style:{color:Gt!=null&&Gt.score_type?"#2EC25B":"#E30000"}},Gt==null?void 0:Gt.answer_text)))),xt===Tu.fw[4].id&&a.createElement(a.Fragment,null,a.createElement("div",{className:"flex flex-col font14 gap-10px"},a.createElement("div",{className:"blod"},"\u7B54\u9898\u5185\u5BB9\uFF1A"),a.createElement("div",{className:"p10 flex flex-col gap-10px",style:{background:"#F6F7F9"}},(et=(Dt=ae==null?void 0:ae.users_answer_info)==null?void 0:Dt.choices)==null?void 0:et.map((Gt,Bn)=>a.createElement(uu.Z,{key:Bn,value:(0,de.EJ)(Gt==null?void 0:Gt.answer_text,se==null?void 0:se.question_keywords)})))),a.createElement("div",{className:"flex flex-col font14 gap-10px mt20"},a.createElement("div",{className:"blod"},"\u53C2\u8003\u7B54\u6848\uFF1A"),a.createElement("div",{className:"p10 flex flex-col gap-10px",style:{background:"#F6F7F9"}},(Be=se==null?void 0:se.question_choices)==null?void 0:Be.map((Gt,Bn)=>a.createElement(uu.Z,{key:Bn,value:Gt==null?void 0:Gt.answer_text}))))),xt===Tu.fw[5].id&&a.createElement("div",{className:"flex flex-col gap-20px"},(Ht=(Pe=ae==null?void 0:ae.users_answer_info)==null?void 0:Pe.choices)==null?void 0:Ht.map((Gt,Bn)=>a.createElement(a.Fragment,null,a.createElement("div",{className:"blod"},"\u7B2C",Bn+1,"\u5173\u5B66\u751F\u4EE3\u7801",a.createElement(Ae.Z,{title:"\u5C55\u793A\u5B66\u751F\u901A\u5173\u4EE3\u7801\uFF0C\u672A\u901A\u5173\u5219\u5C55\u793A\u6700\u540E\u7F16\u5199\u7684\u4EE3\u7801\u8BE6\u60C5"},a.createElement("i",{className:"iconfont icon-tishixiaowenhao font14 ml10",style:{cursor:"pointer",color:"#145DFF"}})),!(Gt!=null&&Gt.is_evaluate)&&a.createElement("span",{style:{color:"#E30000"}},"\uFF08\u672A\u8BC4\u6D4B\uFF09")),a.createElement("div",{className:"p10 flex flex-col gap-10px",style:{background:"#F6F7F9"}},a.createElement("code",null,a.createElement("pre",null,Gt==null?void 0:Gt.answer_text)))))),xt===Tu.fw[6].id&&a.createElement("div",{className:"flex flex-col gap-20px"},(hn=(vn=ae==null?void 0:ae.users_answer_info)==null?void 0:vn.choices)==null?void 0:hn.map((Gt,Bn)=>a.createElement(a.Fragment,null,a.createElement("div",{className:"blod"},"\u5B66\u751F\u4EE3\u7801",a.createElement(Ae.Z,{title:"\u5C55\u793A\u5B66\u751F\u901A\u5173\u4EE3\u7801\uFF0C\u672A\u901A\u5173\u5219\u5C55\u793A\u6700\u540E\u7F16\u5199\u7684\u4EE3\u7801\u8BE6\u60C5"},a.createElement("i",{className:"iconfont icon-tishixiaowenhao font14 ml10",style:{cursor:"pointer",color:"#145DFF"}})),!(Gt!=null&&Gt.is_evaluate)&&a.createElement("span",{style:{color:"#E30000"}},"\uFF08\u672A\u8BC4\u6D4B\uFF09")),a.createElement("div",{className:"p10 flex flex-col gap-10px",style:{background:"#F6F7F9"}},a.createElement("code",null,a.createElement("pre",null,Gt!=null&&Gt.answer_text?rn.Base64.decode(Gt==null?void 0:Gt.answer_text):""))))))))},Na=a.memo(In),dr=({exercise:ce,dispatch:se,handleOnComplete:ae})=>{var _e,pt,Ve,Dt,et,Be,Pe,Ht,vn,hn,xt,Gt,Bn,Dn,Fn,Wt,Ut,Yt,ea,nn,zn,mn,pa,Pt,Nt,Rt,Xt,cn,tn,Ja,ha,dt,Fa,ia,wu,Sa,Hn,Oa,tu,Ka;const{actionTabs:Ba={},course_groups:La=[],commonHeader:Zn}=ce,bn=(0,he.useParams)(),[,ca,Qn,pn]=(0,sn.U)(ne.hv,{exercise_id:bn==null?void 0:bn.categoryId}),Tn=((_e=pn==null?void 0:pn.data)==null?void 0:_e.question)||{},En=((Ve=(pt=pn==null?void 0:pn.data)==null?void 0:pt.exercise)==null?void 0:Ve.use_blank_score)||0,[da,Ha]=(0,a.useState)({open:!1,currentData:{}}),[au,Ya]=(0,a.useState)({page:1,limit:10,type:1,exercise_group_id:((Dt=Ba==null?void 0:Ba.data)==null?void 0:Dt.exercise_group_id)||"all",keyword:"",score_type:(et=Ba==null?void 0:Ba.data)!=null&&et.choice_position?(Be=Ba==null?void 0:Ba.data)==null?void 0:Be.choice_position:"all"}),Cr=()=>{se({type:"exercise/setActionTabs",payload:{key:""}})},Zu=(0,a.useMemo)(()=>{var sa;const Ru=Tn==null?void 0:Tn.question_type,mr=[{title:"\u5E8F\u53F7",dataIndex:"index",width:70},{title:"\u59D3\u540D",dataIndex:"name"},{title:"\u5B66\u53F7/\u5DE5\u53F7",dataIndex:"student_id"},{title:"\u5206\u73ED",dataIndex:"course_group_name",render:gl=>gl||"\u672A\u5206\u73ED"}];return[Tu.fw[0].id,Tu.fw[1].id,Tu.fw[2].id].includes(Ru)&&mr.push({title:"\u9009\u9879",dataIndex:"users_answer_info.score",align:"center",width:100,render:(gl,Tl)=>{var mu,$u,jr,Eu,wr;const Va=($u=(mu=Tl==null?void 0:Tl.users_answer_info)==null?void 0:mu.choices)==null?void 0:$u.map(Pu=>Pu==null?void 0:Pu.exercise_choice_id),Nu=(jr=Tn==null?void 0:Tn.question_choices)==null?void 0:jr.filter(Pu=>Va.includes(Pu==null?void 0:Pu.exercise_choice_id)),oo=((wr=(Eu=Tn==null?void 0:Tn.question_choices)==null?void 0:Eu.filter(Pu=>Pu==null?void 0:Pu.right_answer))==null?void 0:wr.map(Pu=>Pu==null?void 0:Pu.exercise_choice_id))||[],Su=oo.length===Va.length?Va.length>0&&Va.every(Pu=>oo.includes(Pu))?1:3:Va.length>0&&Va.every(Pu=>oo.includes(Pu))&&En===1?2:3;return a.createElement(a.Fragment,null,Nu==null?void 0:Nu.map(Pu=>a.createElement("span",{key:Pu==null?void 0:Pu.exercise_choice_id,style:{color:Su===3?"#E30000":Su===2?"#FF9D18":"#2EC25B"}},(Tn==null?void 0:Tn.question_type)===Tu.fw[2].id?Pu==null?void 0:Pu.choice_text:Tu.k4[(Pu==null?void 0:Pu.choice_position)-1])))}}),[Tu.fw[3].id,Tu.fw[4].id,Tu.fw[8].id,Tu.fw[6].id,Tu.fw[7].id].includes(Ru)&&mr.push({title:"\u5F97\u5206/\u5206\u6570",align:"center",dataIndex:"users_answer_info.score",render:(gl,Tl)=>{var mu;return`${(mu=Tl==null?void 0:Tl.users_answer_info)==null?void 0:mu.score}/${Tn==null?void 0:Tn.question_score}`}},{title:"\u64CD\u4F5C",dataIndex:"test1",align:"center",render:(gl,Tl)=>a.createElement("a",{onClick:()=>{Ha({open:!0,currentData:Tl})}},"\u67E5\u770B\u8BE6\u60C5")}),[Tu.fw[5].id].includes(Ru)&&mr.push(...((sa=Tn==null?void 0:Tn.question_choices)==null?void 0:sa.map((gl,Tl=0)=>({title:`\u7B2C${gl==null?void 0:gl.position}\u5173\u5F97\u5206/\u5206\u6570`,align:"center",dataIndex:"users_answer_info.choices",width:150,render:(mu,$u)=>{var jr,Eu,wr,Va,Nu,oo,Su,Pu;return((Eu=(jr=$u==null?void 0:$u.users_answer_info)==null?void 0:jr.choices)==null?void 0:Eu.length)>0&&`${(Nu=(Va=(wr=$u==null?void 0:$u.users_answer_info)==null?void 0:wr.choices)==null?void 0:Va[Tl])==null?void 0:Nu.score}/${(Pu=(Su=(oo=$u==null?void 0:$u.users_answer_info)==null?void 0:oo.choices)==null?void 0:Su[Tl])==null?void 0:Pu.question_score}`}})))||[],{title:"\u64CD\u4F5C",dataIndex:"test1",align:"center",fixed:"right",width:100,render:(gl,Tl)=>a.createElement("a",{onClick:()=>{Ha({open:!0,currentData:Tl})}},"\u67E5\u770B\u8BE6\u60C5")}),mr},[Tn,En]);return(0,a.useEffect)(()=>{var sa,Ru,mr,gl,Tl,mu;(Ba==null?void 0:Ba.key)==="\u7B54\u9898\u8BE6\u60C5"&&Qn(en(on({},au),{exercise_group_id:(au==null?void 0:au.exercise_group_id)=="all"?"":au==null?void 0:au.exercise_group_id,exercise_id:bn==null?void 0:bn.categoryId,question_id:(sa=Ba==null?void 0:Ba.data)==null?void 0:sa.id,choice_position:([4,5,6].includes((Ru=Ba==null?void 0:Ba.data)==null?void 0:Ru.ques_type)||[4,5,6].includes((gl=(mr=pn==null?void 0:pn.data)==null?void 0:mr.question)==null?void 0:gl.question_type))&&au.score_type!=="all"?au.score_type:null,challenge_id:(Tl=Ba==null?void 0:Ba.data)==null?void 0:Tl.challenge_id,scope:(mu=Ba==null?void 0:Ba.data)==null?void 0:mu.scope,score_type:null}))},[Ba==null?void 0:Ba.key,au]),a.createElement(a.Fragment,null,a.createElement(Fe.default,{centered:!0,title:a.createElement(a.Fragment,null,"\u7B54\u9898\u8BE6\u60C5",a.createElement("span",{className:"font14 c-grey-666"},"\uFF08",((Pe=Ba==null?void 0:Ba.data)==null?void 0:Pe.tabActive)==="3"&&((Ht=Ba==null?void 0:Ba.data)!=null&&Ht.title)?(vn=Ba==null?void 0:Ba.data)==null?void 0:vn.title:`${(Bn=(Gt=Tu.fw)==null?void 0:Gt[(xt=(hn=pn==null?void 0:pn.data)==null?void 0:hn.question)==null?void 0:xt.question_type])==null?void 0:Bn.name}${((Dn=Ba==null?void 0:Ba.data)==null?void 0:Dn.question_number)||""}`,"\uFF09"),((Fn=Ba==null?void 0:Ba.data)==null?void 0:Fn.tabActive)==="2"&&a.createElement(a.Fragment,null,a.createElement(Ae.Z,{title:a.createElement(a.Fragment,null,"\u9898\u76EE\uFF1A",an((Ut=(Wt=pn==null?void 0:pn.data)==null?void 0:Wt.question)==null?void 0:Ut.question_title),a.createElement("br",null),"\u9898\u578B\uFF1A",Tu.fw[((ea=(Yt=pn==null?void 0:pn.data)==null?void 0:Yt.question)==null?void 0:ea.question_type)||0].name,a.createElement("br",null),"\u5206\u503C\uFF1A",an((zn=(nn=pn==null?void 0:pn.data)==null?void 0:nn.question)==null?void 0:zn.question_score),a.createElement("br",null))},a.createElement("a",{className:"ml10"},"\u8BD5\u9898\u8BE6\u60C5")),a.createElement("span",{className:"font14 c-grey-666 ml20"},"\u6B63\u786E\u7387",a.createElement("span",{className:"c-block ml10"},(mn=Ba==null?void 0:Ba.data)==null?void 0:mn.right_percent,"%")),a.createElement("span",{className:"font14 c-grey-666 ml20"},"\u5F97\u5206\u7387",a.createElement("span",{className:"c-block ml10"},(pa=Ba==null?void 0:Ba.data)==null?void 0:pa.score_percent,"%")),a.createElement("span",{className:"font14 c-grey-666 ml20"},"\u5DF2\u7B54\u4EBA\u6570",a.createElement("span",{className:"c-block ml10"},(Pt=Ba==null?void 0:Ba.data)==null?void 0:Pt.effictive_counts,"\u4EBA"))),((Nt=Ba==null?void 0:Ba.data)==null?void 0:Nt.tabActive)==="3"&&!(Zn!=null&&Zn.is_random)&&a.createElement(Ae.Z,{title:a.createElement(a.Fragment,null,"\u9898\u76EE\uFF1A",an((Xt=(Rt=pn==null?void 0:pn.data)==null?void 0:Rt.question)==null?void 0:Xt.question_title),a.createElement("br",null),"\u9898\u578B\uFF1A",Tu.fw[((tn=(cn=pn==null?void 0:pn.data)==null?void 0:cn.question)==null?void 0:tn.question_type)||0].name,a.createElement("br",null),"\u5206\u503C\uFF1A",an((ha=(Ja=pn==null?void 0:pn.data)==null?void 0:Ja.question)==null?void 0:ha.question_score),a.createElement("br",null))},a.createElement("a",{className:"ml10"},"\u8BD5\u9898\u8BE6\u60C5"))),open:(Ba==null?void 0:Ba.key)==="\u7B54\u9898\u8BE6\u60C5",width:800,maskClosable:!1,destroyOnClose:!0,footer:null,onCancel:Cr},((dt=Ba==null?void 0:Ba.data)==null?void 0:dt.tabActive)==="3"&&a.createElement("div",{className:"flex flex-wrap gap-20px c-grey-666 mb20"},(ia=(Fa=Ba==null?void 0:Ba.data)==null?void 0:Fa.exercise_group_list)==null?void 0:ia.map((sa,Ru)=>{var mr;return a.createElement("span",{key:Ru},sa==null?void 0:sa.course_group_name,a.createElement("span",{className:"ml10 c-black"},sa==null?void 0:sa.value,((mr=Ba==null?void 0:Ba.data)==null?void 0:mr.questionsscoreType)||"%"))})),a.createElement("div",{className:"flex item-center justify-between"},a.createElement("div",null,a.createElement(ft.default,{style:{width:256},value:au==null?void 0:au.exercise_group_id,mode:"multiple",maxTagCount:"responsive",getPopupContainer:sa=>sa.parentNode,onChange:sa=>{let Ru=[...sa];Ru.length===0&&(Ru=["all"]),Ru.includes("all")&&Ru.length>1&&(Ru[Ru.length-1]=="all"?Ru=["all"]:Ru=Ru.filter(mr=>mr!=="all")),Ya(en(on({},au),{exercise_group_id:Ru}))},filterOption:(sa,Ru)=>Ru.label.indexOf(sa.toLowerCase())>=0,options:[{label:"\u5168\u90E8\u73ED\u7EA7",value:"all"},...La.map(sa=>({label:sa==null?void 0:sa.exercise_group_name,value:sa==null?void 0:sa.exercise_group_id}))]}),[4,5,6].includes((Sa=(wu=pn==null?void 0:pn.data)==null?void 0:wu.question)==null?void 0:Sa.question_type)&&a.createElement(ft.default,{style:{width:140,marginLeft:20},value:au==null?void 0:au.score_type,onChange:sa=>{Ya(en(on({},au),{score_type:sa}))},options:[{label:"\u5168\u90E8\u5F97\u5206\u7C7B\u578B",value:"all"},{label:"\u6EE1\u5206\u4F5C\u7B54",value:1},{label:"\u90E8\u5206\u5F97\u5206",value:2},{label:"\u96F6\u5206\u4F5C\u7B54",value:3}]})),a.createElement(Hr.t7,{style:{width:220},placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u5B66\u53F7\u641C\u7D22",onChange:sa=>{Ya(en(on({},au),{keyword:sa}))}})),a.createElement(x.default,{className:"mt10",dataSource:((Oa=(Hn=pn==null?void 0:pn.data)==null?void 0:Hn.student_score)==null?void 0:Oa.list)||[],scroll:{y:500,x:"max-content"},loading:ca,columns:Zu,pagination:{current:au.page,pageSize:au==null?void 0:au.limit,onChange:(sa,Ru)=>{Ya(en(on({},au),{page:sa,limit:Ru}))},total:((Ka=(tu=pn==null?void 0:pn.data)==null?void 0:tu.student_score)==null?void 0:Ka.count)||0,showTotal:sa=>a.createElement("span",{className:"font12 c-666"},"\u5171",a.createElement("span",{style:{color:"#3061D0"}},sa),"\u6761\u6570\u636E")}})),a.createElement(Na,{QuestionDetail:Tn,CurrentData:da.currentData,ModalProps:{open:da.open,onCancel:()=>{Ha({open:!1,currentData:{}})}}}))};var Sr=(0,he.connect)(({exercise:ce})=>({exercise:ce}))(dr),Vt=z(67294),sl=Object.defineProperty,Rl=Object.defineProperties,Kl=Object.getOwnPropertyDescriptors,$o=Object.getOwnPropertySymbols,ei=Object.prototype.hasOwnProperty,Ri=Object.prototype.propertyIsEnumerable,Ws=(ce,se,ae)=>se in ce?sl(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,si=(ce,se)=>{for(var ae in se||(se={}))ei.call(se,ae)&&Ws(ce,ae,se[ae]);if($o)for(var ae of $o(se))Ri.call(se,ae)&&Ws(ce,ae,se[ae]);return ce},Fs=(ce,se)=>Rl(ce,Kl(se)),gc=(ce,se)=>{var ae={};for(var _e in ce)ei.call(ce,_e)&&se.indexOf(_e)<0&&(ae[_e]=ce[_e]);if(ce!=null&&$o)for(var _e of $o(ce))se.indexOf(_e)<0&&Ri.call(ce,_e)&&(ae[_e]=ce[_e]);return ae},Ic=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Bd=ce=>{var se,ae;const _e=document.createElement("html");return _e.innerHTML=(0,Ee.ZP)(ce),Vt.createElement("span",null,((ae=(se=_e==null?void 0:_e.children)==null?void 0:se[1])==null?void 0:ae.textContent)||(_e==null?void 0:_e.textContent)||"")},sd=ce=>{var se=ce,{data:ae,dispatch:_e,exercise_group_id:pt}=se,Ve=gc(se,["data","dispatch","exercise_group_id"]),Dt,et;const Be=(()=>{var Ht,vn,hn,xt;let Gt=[];return((ae==null?void 0:ae.ques_type)==Tu.fw[0].id||(ae==null?void 0:ae.ques_type)==Tu.fw[1].id)&&(Gt=[{title:"\u9009\u9879",num:"\u7B54\u9898\u4EBA\u6570",scale:Vt.createElement("span",null,"\u7B54\u9898\u4EBA\u6570\u6BD4\u4F8B",Vt.createElement(Ae.Z,{overlayStyle:{maxWidth:600},title:Vt.createElement(Vt.Fragment,null,Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u7B54\u9898\u4EBA\u6570\uFF1A"),"\u9009\u62E9\u4E86\u8BE5\u9009\u9879\u7684\u5B66\u751F\u6570\u3002"),Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u7B54\u9898\u6BD4\u4F8B\uFF1A"),"\u9009\u62E9\u4E86\u8BE5\u9009\u9879\u7684\u5B66\u751F\u6570/\u5B66\u751F\u603B\u6570\u3002"),Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u6CE8\u610F\uFF1A"),"\u7EDF\u8BA1\u6570\u636E\u4F1A\u6839\u636E\u7B5B\u9009\u6761\u4EF6\uFF08\u5206\u73ED\u3001\u7EDF\u8BA1\u8303\u56F4\uFF09\u8FDB\u884C\u8C03\u6574\u8BA1\u7B97\u3002"))},Vt.createElement("i",{className:"iconfont icon-xiaowenhao2 font14 ml5",style:{cursor:"pointer",color:"#145DFF"}})))},...(Ht=(ae==null?void 0:ae.ques_details)||[])==null?void 0:Ht.map((Bn,Dn)=>Fs(si({},Bn),{title:Tu.k4[Dn],num:Bn.choice_users_count,scale:(Number(Bn.choice_percent)*100).toFixed(2)}))]),(ae==null?void 0:ae.ques_type)==Tu.fw[2].id&&(Gt=[{title:"\u9009\u9879",num:"\u7B54\u9898\u4EBA\u6570",scale:Vt.createElement("span",null,"\u7B54\u9898\u4EBA\u6570\u6BD4\u4F8B",Vt.createElement(Ae.Z,{overlayStyle:{maxWidth:600},title:Vt.createElement(Vt.Fragment,null,Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u7B54\u9898\u4EBA\u6570\uFF1A"),"\u9009\u62E9\u4E86\u8BE5\u9009\u9879\u7684\u5B66\u751F\u6570\u3002"),Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u7B54\u9898\u6BD4\u4F8B\uFF1A"),"\u9009\u62E9\u4E86\u8BE5\u9009\u9879\u7684\u5B66\u751F\u6570/\u5B66\u751F\u603B\u6570\u3002"),Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u6CE8\u610F\uFF1A"),"\u7EDF\u8BA1\u6570\u636E\u4F1A\u6839\u636E\u7B5B\u9009\u6761\u4EF6\uFF08\u5206\u73ED\u3001\u7EDF\u8BA1\u8303\u56F4\uFF09\u8FDB\u884C\u8C03\u6574\u8BA1\u7B97\u3002"))},Vt.createElement("i",{className:"iconfont icon-xiaowenhao2 font14 ml5",style:{cursor:"pointer",color:"#145DFF"}})))},...(vn=(ae==null?void 0:ae.ques_details)||[])==null?void 0:vn.map((Bn,Dn)=>Fs(si({},Bn),{title:Bn.choice_text,num:Bn.choice_users_count,scale:(Number(Bn.choice_percent)*100).toFixed(2)}))]),((ae==null?void 0:ae.ques_type)==Tu.fw[3].id||(ae==null?void 0:ae.ques_type)==Tu.fw[8].id)&&(Gt=[{title:"\u586B\u7A7A",num:"\u7B54\u5BF9\u4EBA\u6570",scale:Vt.createElement("span",null,"\u7B54\u5BF9\u4EBA\u6570\u6BD4\u4F8B",Vt.createElement(Ae.Z,{overlayStyle:{maxWidth:600},title:Vt.createElement(Vt.Fragment,null,Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u7B54\u5BF9\u4EBA\u6570\uFF1A"),"\u8BE5\u586B\u7A7A\u586B\u5199\u6B63\u786E\u7684\u5B66\u751F\u6570\u3002"),Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u7B54\u5BF9\u4EBA\u6570\u6BD4\u4F8B\uFF1A"),"\u8BE5\u586B\u7A7A\u586B\u5199\u6B63\u786E\u7684\u5B66\u751F\u6570/\u5B66\u751F\u603B\u6570"),Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u6CE8\u610F\uFF1A"),"\u7EDF\u8BA1\u6570\u636E\u4F1A\u6839\u636E\u7B5B\u9009\u6761\u4EF6\uFF08\u5206\u73ED\u3001\u7EDF\u8BA1\u8303\u56F4\uFF09\u8FDB\u884C\u8C03\u6574\u8BA1\u7B97\u3002"))},Vt.createElement("i",{className:"iconfont icon-xiaowenhao2 font14 ml5",style:{cursor:"pointer",color:"#145DFF"}})))},...(hn=(ae==null?void 0:ae.ques_details)||[])==null?void 0:hn.map((Bn,Dn)=>Fs(si({},Bn),{title:`\u586B\u7A7A${Bn.choice_position}`,num:Bn.choice_users_count,scale:(Number(Bn.choice_percent)*100).toFixed(2)}))]),((ae==null?void 0:ae.ques_type)==Tu.fw[4].id||(ae==null?void 0:ae.ques_type)==Tu.fw[6].id)&&(Gt=[{title:"\u5F97\u5206",num:"\u5B66\u751F\u4EBA\u6570",scale:Vt.createElement("span",null,"\u5B66\u751F\u6BD4\u4F8B",Vt.createElement(Ae.Z,{overlayStyle:{maxWidth:600},title:Vt.createElement(Vt.Fragment,null,Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u6EE1\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6570\uFF1A"),"\u8BE5",(ae==null?void 0:ae.ques_type)==Tu.fw[4].id?"\u7B80\u7B54\u9898":"\u7F16\u7A0B\u9898","\u6EE1\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6570"),Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u6EE1\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6BD4\u4F8B\uFF1A"),"\uFF08\u8BE5",(ae==null?void 0:ae.ques_type)==Tu.fw[4].id?"\u7B80\u7B54\u9898":"\u7F16\u7A0B\u9898","\u6EE1\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6570/\u5B66\u751F\u603B\u6570\uFF09*100%"),Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u90E8\u5206\u5F97\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6570\uFF1A"),"\u8BE5",(ae==null?void 0:ae.ques_type)==Tu.fw[4].id?"\u7B80\u7B54\u9898":"\u7F16\u7A0B\u9898","\u5F97\u90E8\u5206\u5206\u7684\u5B66\u751F\u6570"),Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u90E8\u5206\u5F97\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6BD4\u4F8B\uFF1A"),"\uFF08\u8BE5",(ae==null?void 0:ae.ques_type)==Tu.fw[4].id?"\u7B80\u7B54\u9898":"\u7F16\u7A0B\u9898","\u5F97\u90E8\u5206\u5206\u7684\u5B66\u751F\u6570/\u5B66\u751F\u603B\u6570\uFF09*100%"),Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u96F6\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6570\uFF1A"),"\u8BE5",(ae==null?void 0:ae.ques_type)==Tu.fw[4].id?"\u7B80\u7B54\u9898\u88AB\u8BC4\u9605\u4E3A\u96F6\u5206\u7684\u5B66\u751F\u6570\u3002":"\u7F16\u7A0B\u9898\u5F970\u5206\u7684\u5B66\u751F\u6570\u3002","\uFF08\u672A\u4F5C\u7B54\u3001\u672A\u5F00\u59CB\u7684\u5219\u63090\u5206\u7EDF\u8BA1\uFF09"),Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u96F6\u5206\u5F97\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6BD4\u4F8B\uFF1A"),(ae==null?void 0:ae.ques_type)==Tu.fw[4].id?"\uFF08\u8BE5\u7B80\u7B54\u9898\u5F97\u96F6\u5206\u7684\u5B66\u751F\u6570/\u5B66\u751F\u603B\u6570\uFF09*100% (\u6CE8\uFF1A\u672A\u8BC4\u9605\uFF08\u5305\u62EC\u5173\u952E\u8BCD\u8BC4\u5206\u548C\u6559\u5E08\u8BC4\u9605\uFF09\u7684\u5B66\u751F\u4E0D\u7EDF\u8BA1\u81F3\u8BE5\u9009\u9879\u4E2D)":"\uFF08\u8BE5\u7F16\u7A0B\u9898\u672A\u5F97\u5206\u7684\u5B66\u751F\u6570/\u5B66\u751F\u603B\u6570\uFF09*100%"),Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u6CE8\u610F\uFF1A"),"\u7EDF\u8BA1\u6570\u636E\u4F1A\u6839\u636E\u7B5B\u9009\u6761\u4EF6\uFF08\u5206\u73ED\u3001\u7EDF\u8BA1\u8303\u56F4\uFF09\u8FDB\u884C\u8C03\u6574\u8BA1\u7B97\u3002"))},Vt.createElement("i",{className:"iconfont icon-xiaowenhao2 font14 ml5",style:{cursor:"pointer",color:"#145DFF"}})))},...(xt=(ae==null?void 0:ae.ques_details)||[])==null?void 0:xt.map((Bn,Dn)=>Fs(si({},Bn),{title:Bn.choice_text,num:Bn.choice_users_count,scale:(Number(Bn.choice_percent)*100).toFixed(2)}))]),Gt})(),Pe=(Ht={})=>{_e({type:"exercise/setActionTabs",payload:{key:"\u7B54\u9898\u8BE6\u60C5",data:Fs(si({},ae),{scope:Ve==null?void 0:Ve.scope,exercise_group_id:pt,choice_position:Ht==null?void 0:Ht.choice_position,tabActive:"2",question_number:(ae==null?void 0:ae.index)||`${Ve.Findex}.${ae==null?void 0:ae.ques_position}`})}})};return Vt.createElement("div",{className:le.DomStyle},Vt.createElement("div",{style:{display:"flex",justifyContent:"space-between",gap:20}},Vt.createElement("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"space-between",gap:20}},Vt.createElement(oe.Z,{gutter:10,wrap:!1,style:{maxHeight:350,overflow:"auto"}},Vt.createElement(ve.Z,{className:le.DomStyleTitle},"\u9898\u76EE"),Vt.createElement(ve.Z,null,Vt.createElement(uu.Z,{className:le.DomStyleTitle,style:{maxWidth:710},value:ae.ques_title}),Vt.createElement("div",{className:"mt20",style:{display:"flex",flexDirection:"column",gap:20}},(Dt=ae==null?void 0:ae.ques_details)==null?void 0:Dt.map((Ht,vn)=>Vt.createElement("div",{key:vn},((ae==null?void 0:ae.ques_type)==Tu.fw[0].id||(ae==null?void 0:ae.ques_type)==Tu.fw[1].id)&&Vt.createElement(oe.Z,{className:`${Ht.choice_right_boolean?le.Sessce:""}`,gutter:10,wrap:!1,key:vn},Vt.createElement(ve.Z,{style:{fontWeight:600}},Tu.k4[vn]),Vt.createElement(ve.Z,null,Vt.createElement(uu.Z,{className:le.DomStyleTitle,style:{maxWidth:690},value:Ht.choice_text||""}))),(ae==null?void 0:ae.ques_type)==Tu.fw[2].id&&Vt.createElement(oe.Z,{className:`${Ht.choice_right_boolean?le.Sessce:""}`,gutter:10,wrap:!1,key:vn},Vt.createElement(ve.Z,null,Vt.createElement(uu.Z,{className:le.DomStyleTitle,style:{maxWidth:690},value:Ht.choice_text||""}))),((ae==null?void 0:ae.ques_type)==Tu.fw[3].id||(ae==null?void 0:ae.ques_type)==Tu.fw[8].id)&&Vt.createElement(oe.Z,{gutter:10,wrap:!1,key:vn},Vt.createElement(ve.Z,{style:{fontWeight:600}},"\u586B\u7A7A",Ht.choice_position,"\uFF1A"),Vt.createElement(ve.Z,null,Ht.choice_text||"")),((ae==null?void 0:ae.ques_type)==Tu.fw[4].id||(ae==null?void 0:ae.ques_type)==Tu.fw[6].id)&&Vt.createElement(oe.Z,{gutter:10,wrap:!1,key:vn},Vt.createElement(ve.Z,null,Vt.createElement(uu.Z,{className:le.DomStyleTitle,style:{maxWidth:690},value:Ht.choice_text||""})))))))),Vt.createElement(oe.Z,{gutter:60},[Tu.fw[0].id,Tu.fw[1].id,Tu.fw[2].id].includes(ae==null?void 0:ae.ques_type)&&Vt.createElement(ve.Z,null,Vt.createElement("span",{className:`${le.DomStyleTitle}`},"\u6B63\u786E\u7B54\u6848\uFF1A"),(et=ae==null?void 0:ae.ques_details)==null?void 0:et.filter(Ht=>Ht.choice_right_boolean).map((Ht,vn)=>Vt.createElement("span",{key:vn},((ae==null?void 0:ae.ques_type)==Tu.fw[0].id||(ae==null?void 0:ae.ques_type)==Tu.fw[1].id)&&Vt.createElement("span",{className:"ml10",style:{color:"#000",fontWeight:600}},Tu.k4[Ht.choice_position-1]),(ae==null?void 0:ae.ques_type)==Tu.fw[2].id&&Vt.createElement("span",{className:"ml10",style:{color:"#000",fontWeight:600}},Ht.choice_text)))),Vt.createElement(ve.Z,null,Vt.createElement("span",{className:`${le.DomStyleTitle} mr10`},"\u6240\u5C5E\u77E5\u8BC6\u70B9\uFF1A"),Vt.createElement("span",{style:{color:"#000",fontWeight:600}},(ae==null?void 0:ae.tag_discipline)||"-")))),Vt.createElement("div",{className:le.AnswerSDom,style:{padding:"0 0 0 20px"}},Vt.createElement("div",{className:`${le.DomStyleTitle} flex item-center justify-between`},Vt.createElement("div",null,"\u7B54\u9898\u60C5\u51B5\uFF1A"),Vt.createElement("a",{onClick:Pe},"\u67E5\u770B\u8BE6\u60C5")),Vt.createElement("div",{className:"mt20"},Be==null?void 0:Be.map((Ht,vn)=>Vt.createElement("div",{key:vn,style:{display:"flex",alignItems:"center",gap:10,marginTop:vn==0?10:14}},[Tu.fw[0].id,Tu.fw[1].id,Tu.fw[2].id].includes(ae==null?void 0:ae.ques_type)?Vt.createElement("div",{className:`${Ht!=null&&Ht.choice_right_boolean?le.Sessce:""}`,style:{width:56}},Ht.title):Vt.createElement("div",{style:{width:56}},Ht.title),Vt.createElement("div",{className:`${Ht.num>0?"current primary-hover":""}`,style:{width:56},onClick:()=>{Ht.num>0&&Pe(Ht)}},Ht.num,vn==0?"":"\u4EBA"),Vt.createElement("div",{style:{width:140}},vn==0?Ht.scale:Vt.createElement(oe.Z,{gutter:4,align:"middle",className:`${Ht.num>0?le.scale_hover:""}`,onClick:()=>{Ht.num>0&&Pe(Ht)}},Vt.createElement(ve.Z,{flex:1},Vt.createElement("div",{style:{width:"100%",height:10,background:"#fff",borderRadius:"5px"}},Vt.createElement("div",{style:{width:`${Ht.scale}%`,height:"100%",borderRadius:"5px",background:"#165DFF"}}))),Vt.createElement(ve.Z,{className:`${Ht.num>0?le.percent:""}`,style:{color:"#999"}},Ht.scale,"%")))))))))},nd=ce=>{var se=ce,{data:ae,dispatch:_e,exercise_group_id:pt}=se,Ve=gc(se,["data","dispatch","exercise_group_id"]);const Dt=(Be,Pe={})=>{_e({type:"exercise/setActionTabs",payload:{key:"\u7B54\u9898\u8BE6\u60C5",data:Fs(si({},ae),{scope:Ve==null?void 0:Ve.scope,exercise_group_id:pt,choice_position:Pe==null?void 0:Pe.choice_position,challenge_id:Be==null?void 0:Be.challenge_id,tabActive:"2",question_number:ae==null?void 0:ae.index})}})},et={title:"\u5F97\u5206",num:"\u5B66\u751F\u4EBA\u6570",scale:Vt.createElement("span",null,"\u5B66\u751F\u6BD4\u4F8B",Vt.createElement(Ae.Z,{overlayStyle:{maxWidth:600},title:Vt.createElement(Vt.Fragment,null,Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u6EE1\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6570\uFF1A"),"\u8BE5\u5173\u5361\u6EE1\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6570"),Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u6EE1\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6BD4\u4F8B\uFF1A"),"\uFF08\u8BE5\u5173\u5361\u6EE1\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6570/\u5B66\u751F\u603B\u6570\uFF09*100%"),Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u90E8\u5206\u5F97\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6570\uFF1A"),"\u8BE5\u5173\u5361\u5F97\u90E8\u5206\u5206\u7684\u5B66\u751F\u6570"),Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u90E8\u5206\u5F97\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6BD4\u4F8B\uFF1A"),"\uFF08\u8BE5\u5173\u5361\u5F97\u90E8\u5206\u5206\u7684\u5B66\u751F\u6570/\u5B66\u751F\u603B\u6570\uFF09*100%"),Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u96F6\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6570\uFF1A"),"\u8BE5\u5173\u5361\u5F970\u5206\u7684\u5B66\u751F\u6570\u3002\uFF08\u672A\u4F5C\u7B54\u3001\u672A\u5F00\u59CB\u7684\u5219\u63090\u5206\u7EDF\u8BA1\uFF09"),Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u96F6\u5206\u5F97\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6BD4\u4F8B\uFF1A"),"\uFF08\u8BE5\u5173\u5361\u5F970\u5206\u7684\u5B66\u751F\u6570/\u5B66\u751F\u603B\u6570\uFF09*100%"),Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u6CE8\u610F\uFF1A"),"\u7EDF\u8BA1\u6570\u636E\u4F1A\u6839\u636E\u7B5B\u9009\u6761\u4EF6\uFF08\u5206\u73ED\u3001\u7EDF\u8BA1\u8303\u56F4\uFF09\u8FDB\u884C\u8C03\u6574\u8BA1\u7B97\u3002"))},Vt.createElement("i",{className:"iconfont icon-xiaowenhao2 font14 ml5",style:{cursor:"pointer",color:"#145DFF"}})))};return Vt.createElement("div",{className:le.DomStyle},Vt.createElement("div",{style:{display:"flex",flexDirection:"column",justifyContent:"space-between"}},Vt.createElement("div",null,Vt.createElement("div",{style:{display:"flex",justifyContent:"space-between",gap:20}},Vt.createElement(oe.Z,{gutter:10,wrap:!1},Vt.createElement(ve.Z,{className:le.DomStyleTitle},"\u9898\u76EE"),Vt.createElement(ve.Z,null,Vt.createElement(uu.Z,{style:{maxWidth:710},className:le.DomStyleTitle,value:ae.ques_title}))),Vt.createElement("div",{className:le.AnswerSDom},Vt.createElement("div",{className:`${le.DomStyleTitle} flex item-center justify-between`},Vt.createElement("div",null,"\u7B54\u9898\u60C5\u51B5\uFF1A"),Vt.createElement("a",{onClick:Dt},"\u67E5\u770B\u8BE6\u60C5")),Vt.createElement("div",{className:"mt20",style:{display:"flex",alignItems:"center",gap:10}},Vt.createElement("div",{style:{width:56}},et.title),Vt.createElement("div",{style:{width:56}},et.num),Vt.createElement("div",{style:{width:140}},et.scale)))),ae==null?void 0:ae.ques_details.map((Be,Pe)=>Vt.createElement("div",{key:Pe,style:{display:"flex",gap:10}},Vt.createElement("div",{className:le.DomStyleTitle},"\u7B2C",(0,de.EM)(Pe+1),"\u5173\uFF1A"),Vt.createElement("div",{style:{flex:1}},[{challenge_name:Be.challenge_name},...(Be==null?void 0:Be.challenge_details)||[]].map((Ht,vn)=>Vt.createElement("div",{key:vn,style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:20,width:"100%"}},Vt.createElement("div",null,Vt.createElement(uu.Z,{className:`${le.DomStyleTitle} ${vn==0?le.DomStyleTitleChild:""}`,value:Ht.challenge_name||Ht.choice_text})),Vt.createElement("div",{className:le.AnswerSDom},Vt.createElement("div",{style:{display:"flex",alignItems:"center",gap:10}},Vt.createElement("div",{style:{width:56}},Ht.choice_text?Ht.choice_text:""),Vt.createElement("div",{className:"current",style:{width:56},onClick:()=>{Ht.choice_users_count>0&&Dt(Be,Ht)}},Ht.choice_users_count!=null?`${Ht.choice_users_count}\u4EBA`:""),Vt.createElement("div",{style:{width:140}},Ht.choice_percent&&Vt.createElement(oe.Z,{gutter:4,align:"middle",className:`${Ht.choice_users_count>0?le.scale_hover:""}`,onClick:()=>{Ht.choice_users_count>0&&Dt(Be,Ht)}},Vt.createElement(ve.Z,{flex:1},Vt.createElement("div",{style:{width:"100%",height:10,background:"#fff",borderRadius:"5px"}},Vt.createElement("div",{style:{width:`${(Number(Ht.choice_percent)*100).toFixed(2)}%`,height:"100%",borderRadius:"5px",background:"#165DFF"}}))),Vt.createElement(ve.Z,{className:`${Ht.choice_users_count>0?le.percent:""}`,style:{color:"#999"}},(Number(Ht.choice_percent)*100).toFixed(2),"%"))))))))))),Vt.createElement("div",null,Vt.createElement("span",{className:`${le.DomStyleTitle} mr10`},"\u6240\u5C5E\u77E5\u8BC6\u70B9\uFF1A"),Vt.createElement("span",{style:{color:"#000",fontWeight:600}},(ae==null?void 0:ae.tag_discipline)||"-"))))},vd=({columns:ce,item:se,Fques_type:ae,Findex:_e})=>Vt.createElement(oe.Z,{align:"middle",wrap:!1,style:{color:"#333"}},Vt.createElement(ve.Z,{flex:`${ce[0].width-20}px`,style:{paddingLeft:ae==Tu.fw[7].id&&"8px"}},(se==null?void 0:se.index)||`${_e}.${se==null?void 0:se.ques_position}`),Vt.createElement(ve.Z,{className:le.Onerow,flex:1,style:{padding:"0 8px",maxWidth:382}},Bd(se==null?void 0:se.ques_title)),Vt.createElement(Ae.Z,{title:se==null?void 0:se.name},Vt.createElement(ve.Z,{className:le.Onerow,flex:`${ce[2].width}px`,style:{padding:"0 8px"}},ae==Tu.fw[7].id?se==null?void 0:se.name:Vt.createElement("div",{className:le.Onerow,style:{padding:"2px 10px 2px 0",borderRadius:"13px",color:"#165DFF"}},Vt.createElement("span",{style:{padding:"2px 10px",borderRadius:"13px",background:"rgba(22,93,255,0.1)"}},se==null?void 0:se.name)))),Vt.createElement(ve.Z,{flex:`${ce[3].width}px`,style:{padding:"0 8px"}},se==null?void 0:se.right_percent,"%"),Vt.createElement(ve.Z,{flex:`${ce[4].width}px`,style:{padding:"0 8px"}},se==null?void 0:se.score_percent,"%"),Vt.createElement(ve.Z,{flex:`${ce[5].width}px`,style:{padding:"0 8px"}},se==null?void 0:se.effictive_counts,"\u4EBA"),Vt.createElement(ve.Z,{flex:`${ce[6].width}px`,style:{padding:"0 8px"}},se==null?void 0:se.un_answer_counts,"\u4EBA"),Vt.createElement(ve.Z,{flex:`${ce[7].width}px`,style:{paddingLeft:"8px"}},se==null?void 0:se.total_user_counts,"\u4EBA")),Lc=(ce,se)=>{var ae=ce,{exercise:_e,dispatch:pt,value:Ve}=ae,Dt=gc(ae,["exercise","dispatch","value"]);const{NormalResult:{commit_results:et,questions_count:Be},actionTabs:Pe}=_e,Ht=(0,he.useParams)(),[vn,hn]=(0,a.useState)([]),[xt,Gt]=(0,a.useState)([]),[Bn,Dn]=(0,a.useState)(void 0),[Fn,Wt]=(0,a.useState)(!1),[Ut,Yt]=(0,a.useState)({coursesId:Ht.coursesId,id:Ht.categoryId,categoryId:Ht.categoryId,page:1,limit:50,order:null,sort:"asc"}),ea=[{title:"\u9898\u53F7",dataIndex:"index",width:70,sorter:(pa,Pt)=>pa.index-Pt.index},{title:"\u9898\u76EE\u5185\u5BB9",dataIndex:"ques_title",ellipsis:!0},{title:"\u9898\u578B",dataIndex:"name",width:110},{title:Vt.createElement("span",null,"\u6B63\u786E\u7387 ",Vt.createElement(Ae.Z,{overlayStyle:{maxWidth:600},title:Vt.createElement(Vt.Fragment,null,Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u9898\u76EE\u6B63\u786E\u7387\uFF1A"),"\uFF08\u9898\u76EE\u6EE1\u5206\u4F5C\u7B54\u5B66\u751F\u6570/\u5B66\u751F\u603B\u6570\uFF09*100%"),Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u6EE1\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6570\u4E0E\u5B66\u751F\u603B\u6570\uFF1A"),"\u6839\u636E\u7528\u6237\u7B5B\u9009\u7684\u3010\u7EDF\u8BA1\u8303\u56F4\u3011\u548C\u3010\u5206\u73ED\u3011\u6761\u4EF6\uFF0C\u7EDF\u8BA1\u5BF9\u5E94\u8303\u56F4\u5185\u7684\u5B66\u751F\u6570\u3002"))},Vt.createElement("i",{className:"iconfont icon-xiaowenhao2 font14",style:{cursor:"pointer",color:"#145DFF"}}))),dataIndex:"right_percent",width:95,sorter:(pa,Pt)=>pa.index3-Pt.index3},{title:Vt.createElement("span",null,"\u5F97\u5206\u7387 ",Vt.createElement(Ae.Z,{overlayStyle:{maxWidth:600},title:Vt.createElement(Vt.Fragment,null,Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u9898\u76EE\u5F97\u5206\u7387\uFF1A"),"\uFF08\u6240\u6709\u5B66\u751F\u9898\u76EE\u5B9E\u9645\u5F97\u5206\u603B\u548C/(\u5C0F\u9898\u5E94\u5F97\u5206*\u5B66\u751F\u603B\u6570\uFF09*100%"),Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u5F97\u5206\u7684\u5B66\u751F\u6570\u4E0E\u5B66\u751F\u603B\u6570\uFF1A"),"\u6839\u636E\u7528\u6237\u7B5B\u9009\u7684\u3010\u7EDF\u8BA1\u8303\u56F4\u3011\u548C\u3010\u5206\u73ED\u3011\u6761\u4EF6\uFF0C\u7EDF\u8BA1\u5BF9\u5E94\u8303\u56F4\u5185\u7684\u5B66\u751F\u6570\u3002"))},Vt.createElement("i",{className:"iconfont icon-xiaowenhao2 font14",style:{cursor:"pointer",color:"#145DFF"}}))),dataIndex:"score_percent",width:95,sorter:(pa,Pt)=>pa.score_percent-Pt.score_percent},{title:Vt.createElement("span",null,"\u5DF2\u7B54\u9898\u4EBA\u6570 ",Vt.createElement(Ae.Z,{overlayStyle:{maxWidth:600},title:"\u5DF2\u7ECF\u56DE\u7B54\u8BE5\u9898\u7684\u5B66\u751F\u6570"},Vt.createElement("i",{className:"iconfont icon-xiaowenhao2 font14",style:{cursor:"pointer",color:"#145DFF"}}))),dataIndex:"effictive_counts",width:125,sorter:(pa,Pt)=>pa.effictive_counts-Pt.effictive_counts},{title:Vt.createElement("span",null,"\u672A\u7B54\u9898\u4EBA\u6570 ",Vt.createElement(Ae.Z,{overlayStyle:{maxWidth:600},title:"\u8FD8\u672A\u56DE\u7B54\u8BE5\u9898\u7684\u5B66\u751F\u6570"},Vt.createElement("i",{className:"iconfont icon-xiaowenhao2 font14",style:{cursor:"pointer",color:"#145DFF"}}))),dataIndex:"un_answer_counts",width:125,sorter:(pa,Pt)=>pa.un_answer_counts-Pt.un_answer_counts},{title:Vt.createElement("span",null,"\u603B\u4EBA\u6570"),dataIndex:"total_user_counts",width:80},{title:"",dataIndex:"index8",width:58}],nn=(...pa)=>Ic(void 0,[...pa],function*(Pt=Ut){var Nt,Rt,Xt,cn,tn;Wt(!0);const Ja=[],ha=yield pt({type:"exercise/getQuestionResult",payload:si(si({},Pt),Ve)});(Nt=ha==null?void 0:ha.commit_results)==null||Nt.forEach(dt=>{var Fa,ia;Ja.push(dt==null?void 0:dt.id),(Fa=dt==null?void 0:dt.sub_exercise_questions)!=null&&Fa.length&&((ia=dt==null?void 0:dt.sub_exercise_questions)==null||ia.forEach(wu=>{Ja.push(wu==null?void 0:wu.id)}))}),Bn&&hn(Ja),Bn==!1&&hn([]),Bn==null&&hn((Xt=(Rt=ha==null?void 0:ha.commit_results)==null?void 0:Rt[0])!=null&&Xt.id?[(tn=(cn=ha==null?void 0:ha.commit_results)==null?void 0:cn[0])==null?void 0:tn.id]:[]),Gt(Ja),Wt(!1)}),zn=pa=>{let Pt=[];vn!=null&&vn.includes(pa)?Pt=vn.filter(Nt=>Nt!=pa):Pt=[...vn,pa],hn(Pt)};(0,a.useEffect)(()=>{nn(),console.log("asdfsadf====",Ve)},[Ut,Ve]);const mn=()=>{nn()};return(0,a.useImperativeHandle)(se,()=>({dealData:mn})),Vt.createElement(jt.Z,{spinning:Fn},Vt.createElement("div",null,Vt.createElement(oe.Z,{className:"mt20 mb20",align:"middle",justify:"space-between"},Vt.createElement(ve.Z,null,Vt.createElement("span",{className:"font16",style:{lineHeight:"26px",color:"#000"}},"\u8BD5\u9898\u8BE6\u60C5")),Vt.createElement(ve.Z,null,Vt.createElement(me.ZP,{type:"primary",onClick:()=>{(vn==null?void 0:vn.length)==(xt==null?void 0:xt.length)?(hn([]),Dn(!1)):(hn(xt),Dn(!0))}},"\u5168\u90E8",(vn==null?void 0:vn.length)==(xt==null?void 0:xt.length)?"\u6536\u8D77":"\u5C55\u5F00"))),Vt.createElement(x.default,{className:le.TableDom,columns:ea,dataSource:[],pagination:!1,onChange:(pa,Pt,Nt)=>{var Rt;Yt(Fs(si({},Ut),{order:Nt==null?void 0:Nt.field,sort:((Rt=Nt==null?void 0:Nt.order)==null?void 0:Rt.replace("end",""))||"asc"}))}}),et==null?void 0:et.map(pa=>{var Pt;return Vt.createElement(jn.default,{key:pa==null?void 0:pa.id,className:`${le.CollapseDom} ${(pa==null?void 0:pa.ques_type)==Tu.fw[7].id?le.CollapseDomC:""}`,ghost:!0,expandIconPosition:"end",activeKey:vn,onChange:()=>{zn(pa==null?void 0:pa.id)},expandIcon:({isActive:Nt})=>Vt.createElement("span",{className:"font14",style:{color:"#165DFF"}},Nt?"\u6536\u8D77":"\u5C55\u5F00",Vt.createElement(fs.Z,{className:`${Nt?le.open:""}`,style:{fontSize:9,marginLeft:3,transition:"all .2s"},rev:void 0})),items:[{key:pa==null?void 0:pa.id,label:Vt.createElement(vd,{columns:ea,item:pa}),children:Vt.createElement(Vt.Fragment,null,(pa==null?void 0:pa.ques_type)==Tu.fw[7].id&&((Pt=pa==null?void 0:pa.sub_exercise_questions)==null?void 0:Pt.map(Nt=>Vt.createElement(jn.default,{key:Nt==null?void 0:Nt.id,className:le.CollapseChildrenDom,ghost:!0,expandIconPosition:"end",activeKey:vn,onChange:()=>{zn(Nt==null?void 0:Nt.id)},expandIcon:({isActive:Rt})=>Vt.createElement("span",{style:{color:"#165DFF",marginLeft:25}},Vt.createElement(fs.Z,{className:`${Rt?le.open:""}`,style:{fontSize:9,marginLeft:3,transition:"all .2s"},rev:void 0})),items:[{key:Nt==null?void 0:Nt.id,label:Vt.createElement(vd,{columns:ea,item:Nt,Fques_type:pa==null?void 0:pa.ques_type,Findex:pa==null?void 0:pa.index}),children:Vt.createElement(sd,{data:Nt,exercise_group_id:Ve==null?void 0:Ve.exercise_group_id,Findex:pa==null?void 0:pa.index,scope:Ve==null?void 0:Ve.scope,dispatch:pt})}]}))),(pa==null?void 0:pa.ques_type)!==Tu.fw[7].id&&(pa==null?void 0:pa.ques_type)!==Tu.fw[5].id&&Vt.createElement(sd,{data:pa,scope:Ve==null?void 0:Ve.scope,exercise_group_id:Ve==null?void 0:Ve.exercise_group_id,dispatch:pt}),(pa==null?void 0:pa.ques_type)==Tu.fw[5].id&&Vt.createElement(nd,{data:pa,dispatch:pt,scope:Ve==null?void 0:Ve.scope,exercise_group_id:Ve==null?void 0:Ve.exercise_group_id}))}]})}),(et==null?void 0:et.length)==0&&Vt.createElement(zt.Z,null),Vt.createElement(He.Z,{className:"mt20",pageSize:Ut.limit,current:Ut.page,showSizeChanger:!0,showQuickJumper:!0,showTotal:pa=>Vt.createElement("span",null,"\u5171",Vt.createElement("span",{style:{color:"#165DFF"}}," ",pa," "),"\u6761\u6570\u636E"),onChange:(pa,Pt)=>{Yt(Fs(si({},Ut),{page:pa,limit:Pt}))},total:Be}),(Pe==null?void 0:Pe.key)==="\u7B54\u9898\u8BE6\u60C5"&&Vt.createElement(Sr,null)))};var Xd=(0,he.connect)(({exercise:ce})=>({exercise:ce}),null,null,{forwardRef:!0})((0,a.forwardRef)(Lc)),Sd={wrap:"wrap___nansB"},Pi=z(67294),l0=Object.defineProperty,Jd=Object.defineProperties,Pd=Object.getOwnPropertyDescriptors,Dd=Object.getOwnPropertySymbols,L0=Object.prototype.hasOwnProperty,pd=Object.prototype.propertyIsEnumerable,h0=(ce,se,ae)=>se in ce?l0(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,o0=(ce,se)=>{for(var ae in se||(se={}))L0.call(se,ae)&&h0(ce,ae,se[ae]);if(Dd)for(var ae of Dd(se))pd.call(se,ae)&&h0(ce,ae,se[ae]);return ce},F0=(ce,se)=>Jd(ce,Pd(se)),j0=(ce,se)=>{var ae={};for(var _e in ce)L0.call(ce,_e)&&se.indexOf(_e)<0&&(ae[_e]=ce[_e]);if(ce!=null&&Dd)for(var _e of Dd(ce))se.indexOf(_e)<0&&pd.call(ce,_e)&&(ae[_e]=ce[_e]);return ae},z0=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Em=(ce,se)=>{var ae=ce,{exercise:_e,dispatch:pt,value:Ve}=ae,Dt=j0(ae,["exercise","dispatch","value"]);const[et]=fe.default.useForm(),{NormalResult:{commit_results:Be}}=_e,Pe=(0,he.useParams)(),[Ht,vn]=(0,a.useState)({coursesId:Pe.coursesId,id:Pe.categoryId,categoryId:Pe.categoryId,page:1,limit:50,order:null,sort:"asc"}),[hn,xt]=(0,a.useState)(!1),Gt=[{title:"\u9898\u53F7",dataIndex:"index",width:70,sorter:(Fn,Wt)=>Fn.index-Wt.index,render:(Fn,Wt)=>Pi.createElement("span",{style:{color:"#333"}},Fn)},{title:"\u9898\u578B",dataIndex:"name",width:110,render:(Fn,Wt)=>Pi.createElement("span",{style:{color:"#333"}},Fn)},{title:Pi.createElement("span",null,"\u6B63\u786E\u7387 ",Pi.createElement(Ae.Z,{overlayStyle:{maxWidth:600},title:Pi.createElement(Pi.Fragment,null,Pi.createElement("div",null,Pi.createElement("span",{style:{fontWeight:600}},"\u9898\u76EE\u6B63\u786E\u7387\uFF1A"),"\uFF08\u9898\u76EE\u6EE1\u5206\u4F5C\u7B54\u5B66\u751F\u6570/\u7B54\u9898\u5B66\u751F\u603B\u6570\uFF09*100%"),Pi.createElement("div",null,Pi.createElement("span",{style:{fontWeight:600}},"\u6EE1\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6570\u4E0E\u5B66\u751F\u603B\u6570\uFF1A"),"\u6839\u636E\u7528\u6237\u7B5B\u9009\u7684\u3010\u7EDF\u8BA1\u8303\u56F4\u3011\u548C\u3010\u5206\u73ED\u3011\u6761\u4EF6\uFF0C\u7EDF\u8BA1\u5BF9\u5E94\u8303\u56F4\u5185\u7684\u5B66\u751F\u6570\u3002"))},Pi.createElement("i",{className:"iconfont icon-xiaowenhao2 font14",style:{cursor:"pointer",color:"#145DFF"}}))),dataIndex:"right_percent",width:95,sorter:(Fn,Wt)=>Fn.right_percent-Wt.right_percent,render:(Fn,Wt)=>Pi.createElement("span",{style:{color:"#333"}},`${Fn}%`)},{title:Pi.createElement("span",null,"\u5F97\u5206\u7387 ",Pi.createElement(Ae.Z,{overlayStyle:{maxWidth:600},title:Pi.createElement(Pi.Fragment,null,Pi.createElement("div",null,Pi.createElement("span",{style:{fontWeight:600}},"\u9898\u76EE\u5F97\u5206\u7387\uFF1A"),"\uFF08\u6240\u6709\u5B66\u751F\u9898\u76EE\u5B9E\u9645\u5F97\u5206\u603B\u548C/(\u5C0F\u9898\u5E94\u5F97\u5206*\u5B66\u751F\u603B\u6570\uFF09*100%"),Pi.createElement("div",null,Pi.createElement("span",{style:{fontWeight:600}},"\u5F97\u5206\u7684\u5B66\u751F\u6570\u4E0E\u5B66\u751F\u603B\u6570\uFF1A"),"\u6839\u636E\u7528\u6237\u7B5B\u9009\u7684\u3010\u7EDF\u8BA1\u8303\u56F4\u3011\u548C\u3010\u5206\u73ED\u3011\u6761\u4EF6\uFF0C\u7EDF\u8BA1\u5BF9\u5E94\u8303\u56F4\u5185\u7684\u5B66\u751F\u6570\u3002"))},Pi.createElement("i",{className:"iconfont icon-xiaowenhao2 font14",style:{cursor:"pointer",color:"#145DFF"}}))),dataIndex:"score_percent",width:95,sorter:(Fn,Wt)=>Fn.score_percent-Wt.score_percent,render:(Fn,Wt)=>Pi.createElement("span",{style:{color:"#333"}},`${Fn}%`)},{title:Pi.createElement("span",null,"\u5DF2\u7B54\u9898\u4EBA\u6570 ",Pi.createElement(Ae.Z,{overlayStyle:{maxWidth:600},title:"\u5DF2\u7ECF\u56DE\u7B54\u8BE5\u9898\u7684\u5B66\u751F\u6570"},Pi.createElement("i",{className:"iconfont icon-xiaowenhao2 font14",style:{cursor:"pointer",color:"#145DFF"}}))),dataIndex:"effictive_counts",width:125,sorter:(Fn,Wt)=>Fn.effictive_counts-Wt.effictive_counts,render:(Fn,Wt)=>Pi.createElement("span",{style:{color:"#333"}},`${Fn}\u4EBA`)},{title:Pi.createElement("span",null,"\u672A\u7B54\u9898\u4EBA\u6570 ",Pi.createElement(Ae.Z,{overlayStyle:{maxWidth:600},title:"\u8FD8\u672A\u56DE\u7B54\u8BE5\u9898\u7684\u5B66\u751F\u6570"},Pi.createElement("i",{className:"iconfont icon-xiaowenhao2 font14",style:{cursor:"pointer",color:"#145DFF"}}))),dataIndex:"un_answer_counts",width:125,sorter:(Fn,Wt)=>Fn.un_answer_counts-Wt.un_answer_counts,render:(Fn,Wt)=>Pi.createElement("span",{style:{color:"#333"}},`${Fn}\u4EBA`)},{title:Pi.createElement("span",null,"\u603B\u4EBA\u6570"),dataIndex:"total_user_counts",width:80,render:(Fn,Wt)=>Pi.createElement("span",{style:{color:"#333"}},`${Fn}\u4EBA`)}],Bn=(...Fn)=>z0(void 0,[...Fn],function*(Wt=Ht){xt(!0);const Ut=yield pt({type:"exercise/getQuestionResult",payload:o0(o0({},Wt),Ve)});xt(!1)});(0,a.useEffect)(()=>{Bn()},[Ht,Ve]);const Dn=()=>{Bn()};return(0,a.useImperativeHandle)(se,()=>({dealData:Dn})),Pi.createElement("div",{className:Sd.wrap},Pi.createElement("div",{className:"mt30"},Pi.createElement("div",{className:"mb20 font16",style:{color:"#000"}},"\u8BD5\u9898\u8BE6\u60C5"),Pi.createElement(x.default,{columns:Gt,rowKey:Fn=>Fn.index,loading:hn,dataSource:Be,onChange:(Fn,Wt,Ut)=>{var Yt;vn(F0(o0({},Ht),{order:Ut==null?void 0:Ut.field,sort:((Yt=Ut==null?void 0:Ut.order)==null?void 0:Yt.replace("end",""))||"asc"}))},pagination:{size:"default",showQuickJumper:!0,showSizeChanger:!0,pageSizeOptions:["50","100","150","200"],pageSize:Ht.limit,current:Ht.page,position:["bottomRight"],onChange:(Fn,Wt)=>{Ht.page=Fn,Ht.limit=Wt,vn(o0({},Ht)),Bn()},total:Be==null?void 0:Be.length,showTotal:(Fn,Wt)=>Pi.createElement("span",null,"\u5171",Pi.createElement("span",{style:{color:"#165DFF"}}," ",Fn," "),"\u6761\u6570\u636E")}})))};var Hm=(0,he.connect)(({exercise:ce})=>({exercise:ce}),null,null,{forwardRef:!0})((0,a.forwardRef)(Em)),qc=z(67294),Wm=Object.defineProperty,$0=Object.getOwnPropertySymbols,em=Object.prototype.hasOwnProperty,Z0=Object.prototype.propertyIsEnumerable,tm=(ce,se,ae)=>se in ce?Wm(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,nm=(ce,se)=>{for(var ae in se||(se={}))em.call(se,ae)&&tm(ce,ae,se[ae]);if($0)for(var ae of $0(se))Z0.call(se,ae)&&tm(ce,ae,se[ae]);return ce},am=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Vm=({exercise:ce,dispatch:se,handleOnComplete:ae})=>{const{actionTabs:_e={},ScoreRangesData:pt}=ce,[Ve]=fe.default.useForm(),Dt=(0,he.useParams)(),[,et,Be]=(0,sn.U)(ne.lL,{exercise_id:Dt==null?void 0:Dt.categoryId}),[Pe,Ht]=(0,a.useState)([{level:"fail_rate",level_zh:"\u4E0D\u53CA\u683C"},{level:"pass_rate",level_zh:"\u53CA\u683C"},{level:"good_rate",level_zh:"\u826F\u597D"},{level:"max_rate",level_zh:"\u4F18\u79C0"}]),vn=[{title:"\u7B49\u7EA7",dataIndex:"level_zh",align:"left",width:180,render:Gt=>qc.createElement("span",{style:{color:"#000000"}},Gt)},{title:"\u5F97\u5206\u533A\u95F4",dataIndex:"level",align:"left",render:(Gt,Bn,Dn)=>qc.createElement("div",{className:"flex item-center"},qc.createElement(fe.default.Item,{className:"mb0",name:Dn===0?"min_rate":Pe[Dn-1].level},qc.createElement(Re.Z,{size:"large",style:{width:"140px"},disabled:!0,suffix:"%"})),qc.createElement("span",{style:{display:"inline-block",width:"20px",height:"1px",border:"1px solid #DCDCDC",marginLeft:"20px",marginRight:"20px",marginBottom:"4px"}}),qc.createElement(fe.default.Item,{className:"mb0",name:Gt,rules:Dn!==3&&[{validator:(Fn,Wt)=>{const Ut=(Dn===0?Ve.getFieldValue("min_rate"):Ve.getFieldValue(Pe[Dn-1].level))+1,Yt=Ve.getFieldValue(Pe[Dn+1].level)-1;return Wt{const{min_rate:Gt=0,fail_rate:Bn=60,pass_rate:Dn=70,good_rate:Fn=90,max_rate:Wt=100}=(pt==null?void 0:pt.score_ranges)||{};Ve.setFieldsValue({min_rate:Gt,fail_rate:Bn,pass_rate:Dn,good_rate:Fn,max_rate:Wt})},xt=()=>{se({type:"exercise/setActionTabs",payload:{key:""}})};return(0,a.useEffect)(()=>{hn()},[pt]),qc.createElement(Fe.default,{centered:!0,title:_e==null?void 0:_e.key,open:(_e==null?void 0:_e.key)==="\u8BBE\u7F6E\u5F97\u5206\u533A\u95F4",width:630,maskClosable:!1,confirmLoading:et,destroyOnClose:!0,onCancel:xt,onOk:()=>{Ve.submit()}},qc.createElement(fe.default,{form:Ve,onValuesChange:()=>{Ve.validateFields()},onFinish:Gt=>am(void 0,null,function*(){(yield Be(nm({exercise_id:Dt.categoryId},Gt))).status===0&&(pe.ZP.success("\u8BBE\u7F6E\u6210\u529F"),xt(),ae==null||ae(),se({type:"exercise/getScoreRangesData",payload:{exercise_id:Dt==null?void 0:Dt.categoryId}}))})},qc.createElement(fe.default.Item,{hidden:!0,name:"min_rate"}),qc.createElement(x.default,{pagination:!1,dataSource:Pe,columns:vn})))};var N0=(0,he.connect)(({exercise:ce})=>({exercise:ce}))(Vm),kd=z(67294),Zg=Object.defineProperty,Qg=Object.defineProperties,Ug=Object.getOwnPropertyDescriptors,$m=Object.getOwnPropertySymbols,Hg=Object.prototype.hasOwnProperty,Wg=Object.prototype.propertyIsEnumerable,eg=(ce,se,ae)=>se in ce?Zg(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,um=(ce,se)=>{for(var ae in se||(se={}))Hg.call(se,ae)&&eg(ce,ae,se[ae]);if($m)for(var ae of $m(se))Wg.call(se,ae)&&eg(ce,ae,se[ae]);return ce},Am=(ce,se)=>Qg(ce,Ug(se));const Vg=({exercise:ce,dispatch:se,handleOnComplete:ae})=>{var _e,pt,Ve,Dt,et;const{actionTabs:Be={},course_groups:Pe=[]}=ce,Ht=(0,he.useParams)(),[,vn,hn,xt]=(0,sn.U)(ne.OO,{exercise_id:Ht==null?void 0:Ht.categoryId}),[Gt,Bn]=(0,a.useState)({page:1,limit:10,exercise_group_id:((_e=Be==null?void 0:Be.data)==null?void 0:_e.exercise_group_id)||"all",keyword:""}),Dn=()=>{se({type:"exercise/setActionTabs",payload:{key:""}})};return(0,a.useEffect)(()=>{Be!=null&&Be.data&&hn(Am(um(um({},Be==null?void 0:Be.data),Gt),{exercise_id:Ht==null?void 0:Ht.categoryId,exercise_group_id:(Gt==null?void 0:Gt.exercise_group_id)=="all"?"":Gt==null?void 0:Gt.exercise_group_id}))},[Be==null?void 0:Be.data,Gt]),kd.createElement(Fe.default,{centered:!0,title:`${Be==null?void 0:Be.key} (${((pt=xt==null?void 0:xt.data)==null?void 0:pt.score_range)||""}, ${((Ve=xt==null?void 0:xt.data)==null?void 0:Ve.score_type)||""})`,open:(Be==null?void 0:Be.key)==="\u5B66\u751F\u5217\u8868",width:700,maskClosable:!1,destroyOnClose:!0,footer:null,onCancel:Dn},kd.createElement("div",{className:"flex item-center justify-between"},kd.createElement(ft.default,{style:{width:256},value:Gt==null?void 0:Gt.exercise_group_id,mode:"multiple",maxTagCount:"responsive",getPopupContainer:Fn=>Fn.parentNode,onChange:Fn=>{let Wt=[...Fn];Wt.length===0&&(Wt=["all"]),Wt.includes("all")&&Wt.length>1&&(Wt[Wt.length-1]=="all"?Wt=["all"]:Wt=Wt.filter(Ut=>Ut!=="all")),Bn(Am(um({},Gt),{exercise_group_id:Wt}))},filterOption:(Fn,Wt)=>Wt.label.indexOf(Fn.toLowerCase())>=0,options:[{label:"\u5168\u90E8\u73ED\u7EA7",value:"all"},...Pe.map(Fn=>({label:Fn==null?void 0:Fn.exercise_group_name,value:Fn==null?void 0:Fn.exercise_group_id}))]}),kd.createElement(Hr.t7,{style:{width:220},placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u5B66\u53F7\u641C\u7D22",onChange:Fn=>{Bn(Am(um({},Gt),{keyword:Fn}))}})),kd.createElement(x.default,{className:"mt10",dataSource:((Dt=xt==null?void 0:xt.data)==null?void 0:Dt.list)||[],scroll:{y:500},loading:vn,columns:[{title:"\u5E8F\u53F7",dataIndex:"index",width:50},{title:"\u59D3\u540D",dataIndex:"name"},{title:"\u5B66\u53F7/\u5DE5\u53F7",dataIndex:"student_id"},{title:"\u5206\u73ED",dataIndex:"course_group_name"},{title:"\u6700\u7EC8\u6210\u7EE9",align:"right",dataIndex:"score",width:100}],pagination:{current:Gt.page,pageSize:Gt==null?void 0:Gt.limit,onChange:(Fn,Wt)=>{Bn(Am(um({},Gt),{page:Fn,limit:Wt}))},total:((et=xt==null?void 0:xt.data)==null?void 0:et.count)||0,showTotal:Fn=>kd.createElement("span",{className:"font12 c-666"},"\u5171",kd.createElement("span",{style:{color:"#3061D0"}},Fn),"\u6761\u6570\u636E")}}))};var Gg=(0,he.connect)(({exercise:ce})=>({exercise:ce}))(Vg),jd=z(67294),Kg=Object.defineProperty,Yg=Object.defineProperties,Xg=Object.getOwnPropertyDescriptors,tg=Object.getOwnPropertySymbols,Jg=Object.prototype.hasOwnProperty,qg=Object.prototype.propertyIsEnumerable,ng=(ce,se,ae)=>se in ce?Kg(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,rm=(ce,se)=>{for(var ae in se||(se={}))Jg.call(se,ae)&&ng(ce,ae,se[ae]);if(tg)for(var ae of tg(se))qg.call(se,ae)&&ng(ce,ae,se[ae]);return ce},lm=(ce,se)=>Yg(ce,Xg(se));const _g=({exercise:ce,dispatch:se,handleOnComplete:ae})=>{var _e,pt,Ve,Dt,et,Be,Pe,Ht,vn,hn,xt,Gt,Bn,Dn,Fn,Wt,Ut;const{actionTabs:Yt={},course_groups:ea=[]}=ce,nn=(0,he.useParams)(),[,zn,mn,pa]=(0,sn.U)(ne.OO,{exercise_id:nn==null?void 0:nn.categoryId}),[,Pt,Nt,Rt]=(0,sn.U)(ne.hk,{exercise_id:nn==null?void 0:nn.categoryId}),[Xt,cn]=(0,a.useState)({page:1,limit:10,type:((_e=Yt==null?void 0:Yt.data)==null?void 0:_e.type)||2,exercise_group_id:((pt=Yt==null?void 0:Yt.data)==null?void 0:pt.exercise_group_id)==-1||((Ve=Yt==null?void 0:Yt.data)==null?void 0:Ve.exercise_group_id)==null?"all":(Dt=Yt==null?void 0:Yt.data)==null?void 0:Dt.exercise_group_id,keyword:"",sub_type:(et=Yt==null?void 0:Yt.data)==null?void 0:et.sub_type}),tn=()=>{se({type:"exercise/setActionTabs",payload:{key:""}})},Ja=(0,a.useMemo)(()=>{var ha;const dt=[{title:"\u5E8F\u53F7",dataIndex:"index",width:60},{title:"\u59D3\u540D",dataIndex:"name"},{title:"\u5B66\u53F7/\u5DE5\u53F7",dataIndex:"student_id"},{title:"\u5206\u73ED",dataIndex:"course_group_name"}];return(Xt==null?void 0:Xt.type)===2&&dt.push({title:"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score"},{title:"\u64CD\u4F5C",align:"right",dataIndex:"text",render:(Fa,ia)=>jd.createElement("a",{onClick:()=>{(0,de.xg)(`/classrooms/${nn.coursesId}/exercise/${nn.categoryId}/review/${ia==null?void 0:ia.login}`)}},"\u67E5\u770B\u8BE6\u60C5")}),(Xt==null?void 0:Xt.type)===3&&dt.push({title:(ha=Yt==null?void 0:Yt.data)!=null&&ha.isFinalScore?"\u6700\u7EC8\u6210\u7EE9":"\u5F97\u5206/\u5206\u6570",dataIndex:"score",align:"center"}),dt},[Xt==null?void 0:Xt.type,(Be=Yt==null?void 0:Yt.data)==null?void 0:Be.isFinalScore]);return(0,a.useEffect)(()=>{var ha,dt;(Yt==null?void 0:Yt.key)==="\u5B66\u751F\u8BE6\u60C52"&&(Yt!=null&&Yt.data)&&((ha=Yt==null?void 0:Yt.data)!=null&&ha.isFinalScore?mn(lm(rm({},Xt),{exercise_id:nn==null?void 0:nn.categoryId,exercise_group_id:(Xt==null?void 0:Xt.exercise_group_id)=="all"?"":Xt==null?void 0:Xt.exercise_group_id})):Nt(lm(rm({},Xt),{exercise_id:nn==null?void 0:nn.categoryId,exercise_group_id:(Xt==null?void 0:Xt.exercise_group_id)=="all"?"":Xt==null?void 0:Xt.exercise_group_id,question_type:(dt=Yt==null?void 0:Yt.data)==null?void 0:dt.question_type})))},[Xt,Yt==null?void 0:Yt.data]),jd.createElement(Fe.default,{centered:!0,title:Yt==null?void 0:Yt.title,open:(Yt==null?void 0:Yt.key)==="\u5B66\u751F\u8BE6\u60C52",width:800,maskClosable:!1,destroyOnClose:!0,footer:null,onCancel:tn},((Pe=Yt==null?void 0:Yt.data)==null?void 0:Pe.type)===3&&jd.createElement("div",{className:"flex flex-wrap gap-20px c-grey-666 mb20"},(vn=(Ht=Yt==null?void 0:Yt.data)==null?void 0:Ht.exercise_group_list)==null?void 0:vn.map((ha,dt)=>{var Fa;return jd.createElement("span",{key:dt},ha==null?void 0:ha.course_group_name,jd.createElement("span",{className:"ml10 c-black"},ha==null?void 0:ha.value,((Fa=Yt==null?void 0:Yt.data)==null?void 0:Fa.questionsscoreType)||"%"))})),jd.createElement("div",{className:"flex item-center justify-between"},jd.createElement(ft.default,{style:{width:140},value:Xt==null?void 0:Xt.exercise_group_id,mode:"multiple",maxTagCount:"responsive",getPopupContainer:ha=>ha.parentNode,onChange:ha=>{let dt=[...ha];dt.length===0&&(dt=["all"]),dt.includes("all")&&dt.length>1&&(dt[dt.length-1]=="all"?dt=["all"]:dt=dt.filter(Fa=>Fa!=="all")),cn(lm(rm({},Xt),{exercise_group_id:dt}))},filterOption:(ha,dt)=>dt.label.indexOf(ha.toLowerCase())>=0,options:[{label:"\u5168\u90E8\u73ED\u7EA7",value:"all"},...ea.map(ha=>({label:ha==null?void 0:ha.exercise_group_name,value:ha==null?void 0:ha.exercise_group_id}))]}),jd.createElement(Hr.t7,{style:{width:220},placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u5B66\u53F7\u641C\u7D22",onChange:ha=>{cn(lm(rm({},Xt),{keyword:ha}))}})),jd.createElement(x.default,{className:"mt20",dataSource:((hn=Yt==null?void 0:Yt.data)!=null&&hn.isFinalScore?(xt=pa==null?void 0:pa.data)==null?void 0:xt.list:(Bn=(Gt=Rt==null?void 0:Rt.data)==null?void 0:Gt.student_score)==null?void 0:Bn.list)||[],scroll:{y:500},loading:zn||Pt,columns:Ja,pagination:{current:Xt.page,pageSize:Xt==null?void 0:Xt.limit,onChange:(ha,dt)=>{cn(lm(rm({},Xt),{page:ha,limit:dt}))},total:((Dn=Yt==null?void 0:Yt.data)!=null&&Dn.isFinalScore?(Fn=pa==null?void 0:pa.data)==null?void 0:Fn.count:(Ut=(Wt=Rt==null?void 0:Rt.data)==null?void 0:Wt.student_score)==null?void 0:Ut.count)||0,showTotal:ha=>jd.createElement("span",{className:"font12 c-666"},"\u5171",jd.createElement("span",{style:{color:"#3061D0"}},ha),"\u6761\u6570\u636E")}}))};var $g=(0,he.connect)(({exercise:ce})=>({exercise:ce}))(_g),ef={tables:"tables___zoHyz"},tf=Object.defineProperty,nf=Object.defineProperties,af=Object.getOwnPropertyDescriptors,ag=Object.getOwnPropertySymbols,uf=Object.prototype.hasOwnProperty,rf=Object.prototype.propertyIsEnumerable,ug=(ce,se,ae)=>se in ce?tf(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,O0=(ce,se)=>{for(var ae in se||(se={}))uf.call(se,ae)&&ug(ce,ae,se[ae]);if(ag)for(var ae of ag(se))rf.call(se,ae)&&ug(ce,ae,se[ae]);return ce},hm=(ce,se)=>nf(ce,af(se));const lf=({Data:ce=[],yAxisName:se="",legendData:ae=[],className:_e="",style:pt={},labelTrue:Ve=!1,grid:Dt={},yAxisNamePadding:et=0,ReactEchartsOnEvents:Be})=>{const Pe=(0,a.useRef)(null),Ht=["#F3647C","#FBD438","#FF9D18","#37CCCC","#3BA1FF","#4ECC74","#3061D0","#7F30D0","#C60101","#9096A3","#E900F5","#FA6400","#3D81B7","#D4BE26","#34A858","#FE8DB3"];return(0,a.useEffect)(()=>{if(Pe.current){const vn=Pe.current.getEchartsInstance(),hn=[];ae==null||ae.forEach((xt,Gt)=>{hn.push((Ht==null?void 0:Ht[Gt])||`rgb(${Math.floor(Math.random()*256)}, ${Math.floor(Math.random()*256)}, ${Math.floor(Math.random()*256)})`)}),vn.setOption({dataset:{source:[["product",...ae],...ce]},legend:{right:"1%",top:"5%",type:"scroll",width:"90%",itemWidth:10,itemHeight:10,itemGap:22},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:O0({left:"5%",right:"2%",top:"20%",bottom:40},Dt),dataZoom:[O0({type:"slider"},(ce==null?void 0:ce.length)>10||(ae==null?void 0:ae.length)>6?{start:0,end:10}:{})],yAxis:{name:se,splitArea:{show:!1},nameTextStyle:{color:"#000",padding:et},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:"#EDEDED"}},axisLabel:{color:"#000"}},xAxis:{type:"category",silent:!1,splitLine:{show:!1},splitArea:{show:!1},axisTick:{show:!1},axisLine:{lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#000"}},series:ae==null?void 0:ae.map(()=>({type:"bar",barMaxWidth:40,label:{show:Ve,position:"top"}})),color:hn},!0)}},[ce,se,ae,Ve,Dt]),a.createElement(td.Z,{ref:Pe,className:`w-full ${_e}`,style:O0({height:400,background:"#F6F7F9"},pt),onEvents:Be,option:{}})},om=a.memo(lf),of=({exercise:ce,dispatch:se,value:ae})=>{var _e,pt,Ve,Dt,et,Be,Pe,Ht,vn,hn,xt,Gt,Bn,Dn,Fn,Wt,Ut,Yt,ea,nn,zn,mn,pa,Pt,Nt,Rt,Xt,cn,tn;const{actionTabs:Ja={}}=ce,ha=(0,he.useParams)(),[dt,Fa]=(0,a.useState)(1),[,ia,wu,Sa]=(0,sn.U)(ne.iU,{exercise_id:ha==null?void 0:ha.categoryId,exercise_group_id:(_e=ae==null?void 0:ae.exercise_group_id)!=null&&_e.includes("all")?null:ae==null?void 0:ae.exercise_group_id}),[,Hn,Oa,tu]=(0,sn.U)(ne.fG,{exercise_id:ha==null?void 0:ha.categoryId,exercise_group_id:(pt=ae==null?void 0:ae.exercise_group_id)!=null&&pt.includes("all")?null:ae==null?void 0:ae.exercise_group_id}),Ka=(En={},da)=>{se({type:"exercise/setActionTabs",payload:{title:"\u5B66\u751F\u8BE6\u60C5",key:"\u5B66\u751F\u8BE6\u60C52",data:{sub_type:da,exercise_group_id:(En==null?void 0:En.course_group_id)==-1?"all":En==null?void 0:En.course_group_id,isFinalScore:En==null?void 0:En.isFinalScore}}})},Ba=(0,a.useCallback)(En=>{var da,Ha,au,Ya;Ka(hm(O0({},((Ha=(da=Sa==null?void 0:Sa.data)==null?void 0:da.list)==null?void 0:Ha[(En==null?void 0:En.dataIndex)||0])||{}),{isFinalScore:!0}),(((Ya=(au=En==null?void 0:En.encode)==null?void 0:au.y)==null?void 0:Ya[0])||1)-1)},[(Ve=Sa==null?void 0:Sa.data)==null?void 0:Ve.list]),La=(En={},da=null)=>{var Ha;console.log("asdfasdf===",En),se({type:"exercise/setActionTabs",payload:{key:"\u7B54\u9898\u8BE6\u60C5",data:{title:(En==null?void 0:En.question_type)||"",id:En==null?void 0:En.question_id,exercise_group_id:ae==null?void 0:ae.exercise_group_id,tabActive:"3",exercise_group_list:(Ha=En==null?void 0:En.list)==null?void 0:Ha.map(au=>hm(O0({},au),{value:da===0?au==null?void 0:au.correct_percent:da===1?au==null?void 0:au.score_percent:au==null?void 0:au.value})),questionsscoreType:En==null?void 0:En.questionsscoreType}}})},Zn=(0,a.useCallback)((En,da={})=>{var Ha,au;La((au=(Ha=tu==null?void 0:tu.data)==null?void 0:Ha.question_type_list)==null?void 0:au[(En==null?void 0:En.dataIndex)||0],0)},[(Dt=tu==null?void 0:tu.data)==null?void 0:Dt.question_type_list]),bn=(0,a.useCallback)((En,da={})=>{var Ha,au;La((au=(Ha=tu==null?void 0:tu.data)==null?void 0:Ha.question_type_list)==null?void 0:au[(En==null?void 0:En.dataIndex)||0],1)},[(et=tu==null?void 0:tu.data)==null?void 0:et.question_type_list]),ca=(0,a.useCallback)(En=>{var da,Ha,au;const Ya=(Ha=(da=tu==null?void 0:tu.data)==null?void 0:da.class_average_score_list)==null?void 0:Ha[(En==null?void 0:En.dataIndex)||0];se({type:"exercise/setActionTabs",payload:{key:"\u5B66\u751F\u8BE6\u60C52",title:"\u5B66\u751F\u8BE6\u60C5",data:{exercise_group_id:ae==null?void 0:ae.exercise_group_id,exercise_group_list:Ya==null?void 0:Ya.list,type:3,isFinalScore:(au=En==null?void 0:En.data)==null?void 0:au[0].includes("\u6700\u7EC8\u6210\u7EE9"),question_type:Ya==null?void 0:Ya.question_type,questionsscoreType:"\u5206"}}})},[(Be=tu==null?void 0:tu.data)==null?void 0:Be.class_average_score_list,ae]),Qn=([En,da,Ha],au=0)=>a.createElement("span",{className:En>0?"current-primary-hover":"",style:{display:"inline-block",width:"100%",height:47,lineHeight:"47px"},onClick:()=>{En>0&&Ka(hm(O0({},da),{isFinalScore:!0}),au)}},`${En}${dt===1?"":"%"}`),pn=(()=>{var En,da,Ha,au,Ya,Cr,Zu,sa,Ru,mr,gl,Tl;const mu=[{title:"\u5206\u73ED",dataIndex:"course_group_name",align:"left"},{title:((da=(En=Sa==null?void 0:Sa.data)==null?void 0:En.titles)==null?void 0:da[0])||"",dataIndex:"column_1",align:"center",render:(...$u)=>Qn($u,0)},{title:((au=(Ha=Sa==null?void 0:Sa.data)==null?void 0:Ha.titles)==null?void 0:au[1])||"",dataIndex:"column_2",align:"center",render:(...$u)=>Qn($u,1)},{title:((Cr=(Ya=Sa==null?void 0:Sa.data)==null?void 0:Ya.titles)==null?void 0:Cr[2])||"",dataIndex:"column_3",align:"center",render:(...$u)=>Qn($u,2)},{title:((sa=(Zu=Sa==null?void 0:Sa.data)==null?void 0:Zu.titles)==null?void 0:sa[3])||"",dataIndex:"column_4",align:"center",render:(...$u)=>Qn($u,3)},{title:((mr=(Ru=Sa==null?void 0:Sa.data)==null?void 0:Ru.titles)==null?void 0:mr[4])||"",dataIndex:"column_5",align:"center",render:(...$u)=>Qn($u,4)},{title:((Tl=(gl=Sa==null?void 0:Sa.data)==null?void 0:gl.titles)==null?void 0:Tl[5])||"",dataIndex:"column_6",align:"center",render:(...$u)=>Qn($u,5)}];return dt===1&&mu.push({title:"\u4EBA\u6570",dataIndex:"total_count",align:"center",render:(...$u)=>Qn($u,6)}),mu})();(0,a.useEffect)(()=>{var En;wu({count_by:dt,exercise_id:ha==null?void 0:ha.categoryId,exercise_group_id:(En=ae==null?void 0:ae.exercise_group_id)!=null&&En.includes("all")?null:ae==null?void 0:ae.exercise_group_id})},[dt,ae==null?void 0:ae.exercise_group_id]),(0,a.useEffect)(()=>{var En;Oa({exercise_id:ha==null?void 0:ha.categoryId,exercise_group_id:(En=ae==null?void 0:ae.exercise_group_id)!=null&&En.includes("all")?null:ae==null?void 0:ae.exercise_group_id})},[ae==null?void 0:ae.exercise_group_id]);const Tn=(0,a.useMemo)(()=>{var En,da;return(da=(En=tu==null?void 0:tu.data)==null?void 0:En.question_type_score_list)==null?void 0:da.map((Ha,au)=>{var Ya,Cr,Zu,sa;return a.createElement(om,{key:au,Data:((Ya=Ha==null?void 0:Ha.list)==null?void 0:Ya.map(Ru=>{var mr;return[(Ru==null?void 0:Ru.title)||"",...((mr=Ru==null?void 0:Ru.list)==null?void 0:mr.map(gl=>gl==null?void 0:gl.value))||[]]}))||[],yAxisName:Ha==null?void 0:Ha.title,labelTrue:!0,yAxisNamePadding:[0,0,10,0],legendData:((sa=(Zu=(Cr=Ha==null?void 0:Ha.list)==null?void 0:Cr[0])==null?void 0:Zu.list)==null?void 0:sa.map(Ru=>Ru==null?void 0:Ru.course_group_name))||[],ReactEchartsOnEvents:{click:Ru=>{var mr;console.log("params",Ru),La(hm(O0({},((mr=Ha==null?void 0:Ha.list)==null?void 0:mr[(Ru==null?void 0:Ru.dataIndex)||0])||{}),{questionsscoreType:"\u5206"}))}}})})},[(Pe=tu==null?void 0:tu.data)==null?void 0:Pe.question_type_score_list]);return a.createElement(a.Fragment,null,a.createElement(jt.Z,{spinning:ia},a.createElement("div",{className:"flex item-center justify-between mt30"},a.createElement("div",{className:"font16"},"\u6210\u7EE9\u5206\u5E03",a.createElement("span",{className:"font14",style:{color:"#FF9D18"}},"\uFF08\u70B9\u51FB\u7EDF\u8BA1\u6570\u503C\u6216\u67F1\u72B6\u56FE\u53EF\u67E5\u770B\u6570\u636E\u8BE6\u60C5\uFF09")),a.createElement("div",{className:"flex item-center gap-20px"},a.createElement(ft.default,{style:{width:140},size:"large",value:dt,onChange:En=>{Fa(En)},options:[{value:1,label:"\u6309\u4EBA\u6570\u7EDF\u8BA1"},{value:2,label:"\u6309\u767E\u5206\u6BD4\u7EDF\u8BA1"}]}))),a.createElement(x.default,{className:`mt10 ${ef.tables}`,bordered:!0,columns:pn,dataSource:((Ht=Sa==null?void 0:Sa.data)==null?void 0:Ht.list)||[],pagination:!1}),a.createElement("div",{className:"mt20"},a.createElement(om,{Data:((hn=(vn=Sa==null?void 0:Sa.data)==null?void 0:vn.list)==null?void 0:hn.map(En=>[(En==null?void 0:En.course_group_name)||"",(En==null?void 0:En.column_1)||0,(En==null?void 0:En.column_2)||0,(En==null?void 0:En.column_3)||0,(En==null?void 0:En.column_4)||0,(En==null?void 0:En.column_5)||0,(En==null?void 0:En.column_6)||0]))||[],grid:{left:"5%",top:"15%"},yAxisNamePadding:[0,0,10,70],yAxisName:`\u5404\u73ED\u7EA7\u6210\u7EE9\u5206\u5E03\uFF08${dt===1?"\u4EBA\u6570":"\u767E\u5206\u6BD4"}\uFF09`,legendData:((xt=Sa==null?void 0:Sa.data)==null?void 0:xt.titles)||[],ReactEchartsOnEvents:{click:Ba}}))),a.createElement(jt.Z,{spinning:Hn},a.createElement("div",{className:"mt20 flex flex-col gap-10px"},a.createElement("div",{className:"font16"},"\u5C0F\u9898\u5BF9\u6BD4",a.createElement("span",{className:"font14",style:{color:"#FF9D18"}},"\uFF08\u70B9\u51FB\u67F1\u72B6\u56FE\u53EF\u67E5\u770B\u6570\u636E\u8BE6\u60C5\uFF09")),a.createElement(om,{Data:((Bn=(Gt=tu==null?void 0:tu.data)==null?void 0:Gt.question_type_list)==null?void 0:Bn.map(En=>{var da;return[(En==null?void 0:En.question_type)||"",...((da=En==null?void 0:En.list)==null?void 0:da.map(Ha=>Ha.correct_percent))||[]]}))||[],yAxisName:"\u6B63\u786E\u7387",yAxisNamePadding:[0,0,10,0],legendData:((Ut=(Wt=(Fn=(Dn=tu==null?void 0:tu.data)==null?void 0:Dn.question_type_list)==null?void 0:Fn[0])==null?void 0:Wt.list)==null?void 0:Ut.map(En=>En==null?void 0:En.course_group_name))||[],ReactEchartsOnEvents:{click:Zn}}),a.createElement(om,{Data:((ea=(Yt=tu==null?void 0:tu.data)==null?void 0:Yt.question_type_list)==null?void 0:ea.map(En=>{var da;return[(En==null?void 0:En.question_type)||"",...((da=En==null?void 0:En.list)==null?void 0:da.map(Ha=>Ha.score_percent))||[]]}))||[],yAxisName:"\u5F97\u5206\u7387",yAxisNamePadding:[0,0,10,0],legendData:((pa=(mn=(zn=(nn=tu==null?void 0:tu.data)==null?void 0:nn.question_type_list)==null?void 0:zn[0])==null?void 0:mn.list)==null?void 0:pa.map(En=>En==null?void 0:En.course_group_name))||[],ReactEchartsOnEvents:{click:bn}}))),a.createElement(jt.Z,{spinning:Hn},a.createElement("div",{className:"mt20 flex flex-col gap-10px"},a.createElement("div",{className:"font16"},"\u5E73\u5747\u5206",a.createElement("span",{className:"font14",style:{color:"#FF9D18"}},"\uFF08\u70B9\u51FB\u67F1\u72B6\u56FE\u53EF\u67E5\u770B\u6570\u636E\u8BE6\u60C5\uFF09")),a.createElement(om,{Data:((Nt=(Pt=tu==null?void 0:tu.data)==null?void 0:Pt.class_average_score_list)==null?void 0:Nt.map(En=>{var da;return[(En==null?void 0:En.title)||"",...((da=En==null?void 0:En.list)==null?void 0:da.map(Ha=>Ha==null?void 0:Ha.value))||[]]}))||[],yAxisName:"\u5404\u73ED\u7EA7\u5E73\u5747\u5206",labelTrue:!0,yAxisNamePadding:[0,0,10,0],legendData:((tn=(cn=(Xt=(Rt=tu==null?void 0:tu.data)==null?void 0:Rt.class_average_score_list)==null?void 0:Xt[0])==null?void 0:cn.list)==null?void 0:tn.map(En=>En==null?void 0:En.course_group_name))||[],ReactEchartsOnEvents:{click:ca}}),a.createElement("div",{className:"flex flex-col"},Tn))),(Ja==null?void 0:Ja.key)==="\u7B54\u9898\u8BE6\u60C5"&&a.createElement(Sr,null),(Ja==null?void 0:Ja.key)==="\u5B66\u751F\u8BE6\u60C52"&&a.createElement($g,null))};var sf=(0,he.connect)(({exercise:ce})=>({exercise:ce}))(of),cf=z(33863),M0=z(67294),df=Object.defineProperty,mf=Object.defineProperties,gf=Object.getOwnPropertyDescriptors,rg=Object.getOwnPropertySymbols,ff=Object.prototype.hasOwnProperty,vf=Object.prototype.propertyIsEnumerable,lg=(ce,se,ae)=>se in ce?df(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,Fm=(ce,se)=>{for(var ae in se||(se={}))ff.call(se,ae)&&lg(ce,ae,se[ae]);if(rg)for(var ae of rg(se))vf.call(se,ae)&&lg(ce,ae,se[ae]);return ce},ym=(ce,se)=>mf(ce,gf(se));const pf=({exercise:ce,dispatch:se,handleOnComplete:ae})=>{var _e,pt,Ve,Dt,et;const{actionTabs:Be={},course_groups:Pe=[]}=ce,Ht=(0,he.useParams)(),[,vn,hn,xt]=(0,sn.U)(ne.hv,{exercise_id:Ht==null?void 0:Ht.categoryId}),[Gt,Bn]=(0,a.useState)({page:1,limit:10,type:1,exercise_group_id:"all",keyword:""}),Dn=(0,a.useMemo)(()=>{var Wt,Ut,Yt;return((Yt=(Ut=(Wt=xt==null?void 0:xt.data)==null?void 0:Wt.question)==null?void 0:Ut.question_choices)==null?void 0:Yt.filter(ea=>ea==null?void 0:ea.right_answer).map(ea=>ea==null?void 0:ea.exercise_choice_id))||[]},[(_e=xt==null?void 0:xt.data)==null?void 0:_e.question]),Fn=()=>{se({type:"exercise/setActionTabs",payload:{key:""}})};return(0,a.useEffect)(()=>{var Wt,Ut,Yt,ea,nn;Be!=null&&Be.data&&hn(ym(Fm({},Gt),{exercise_group_id:(Gt==null?void 0:Gt.exercise_group_id)=="all"?"":Gt==null?void 0:Gt.exercise_group_id,exercise_id:Ht==null?void 0:Ht.categoryId,question_id:(Ut=(Wt=Be==null?void 0:Be.data)==null?void 0:Wt.questionDetail)==null?void 0:Ut.question_id,question_number:(ea=(Yt=Be==null?void 0:Be.data)==null?void 0:Yt.questionDetail)==null?void 0:ea.index,scope:(nn=Be==null?void 0:Be.data)==null?void 0:nn.scope}))},[Be==null?void 0:Be.data,Gt]),M0.createElement(Fe.default,{centered:!0,title:Be==null?void 0:Be.title,open:(Be==null?void 0:Be.key)==="\u5B66\u751F\u8BE6\u60C5",width:700,maskClosable:!1,destroyOnClose:!0,footer:null,onCancel:Fn},M0.createElement("div",{className:"flex item-center justify-between"},M0.createElement(ft.default,{style:{width:256},mode:"multiple",maxTagCount:"responsive",value:Gt==null?void 0:Gt.exercise_group_id,getPopupContainer:Wt=>Wt.parentNode,onChange:Wt=>{console.log(Wt);let Ut=[...Wt];Ut.length===0&&(Ut=["all"]),Ut.includes("all")&&Ut.length>1&&(Ut[Ut.length-1]=="all"?Ut=["all"]:Ut=Ut.filter(Yt=>Yt!=="all")),Bn(ym(Fm({},Gt),{exercise_group_id:Ut}))},filterOption:(Wt,Ut)=>Ut.label.indexOf(Wt.toLowerCase())>=0,options:[{label:"\u5168\u90E8\u73ED\u7EA7",value:"all"},...Pe.map(Wt=>({label:Wt==null?void 0:Wt.exercise_group_name,value:Wt==null?void 0:Wt.exercise_group_id}))]}),M0.createElement(Hr.t7,{style:{width:220},placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u5B66\u53F7\u641C\u7D22",onChange:Wt=>{Bn(ym(Fm({},Gt),{keyword:Wt}))}})),M0.createElement(x.default,{className:"mt10",dataSource:((Ve=(pt=xt==null?void 0:xt.data)==null?void 0:pt.student_score)==null?void 0:Ve.list)||[],scroll:{y:500},loading:vn,columns:[{title:"\u5E8F\u53F7",dataIndex:"index",width:60},{title:"\u59D3\u540D",dataIndex:"name"},{title:"\u5B66\u53F7/\u5DE5\u53F7",dataIndex:"student_id"},{title:"\u5206\u73ED",dataIndex:"course_group_name",render:Wt=>Wt||"\u672A\u5206\u73ED"},{title:"\u662F\u5426\u6B63\u786E",align:"center",dataIndex:"users_answer_info.choices",render:(Wt,Ut)=>{var Yt,ea,nn,zn;return((ea=(Yt=Ut==null?void 0:Ut.users_answer_info)==null?void 0:Yt.choices)==null?void 0:ea.length)>0&&((zn=(nn=Ut==null?void 0:Ut.users_answer_info)==null?void 0:nn.choices)!=null&&zn.every(mn=>Dn.includes(mn==null?void 0:mn.exercise_choice_id)))?"\u662F":"\u5426"}},{title:"\u5F97\u5206/\u5206\u6570",align:"center",dataIndex:"users_answer_info.score",render:(Wt,Ut)=>{var Yt,ea,nn;return`${(Yt=Ut==null?void 0:Ut.users_answer_info)==null?void 0:Yt.score}/${(nn=(ea=xt==null?void 0:xt.data)==null?void 0:ea.question)==null?void 0:nn.question_score}`}}],pagination:{current:Gt.page,pageSize:Gt==null?void 0:Gt.limit,onChange:(Wt,Ut)=>{Bn(ym(Fm({},Gt),{page:Wt,limit:Ut}))},total:((et=(Dt=xt==null?void 0:xt.data)==null?void 0:Dt.student_score)==null?void 0:et.count)||0,showTotal:Wt=>M0.createElement("span",{className:"font12 c-666"},"\u5171",M0.createElement("span",{style:{color:"#3061D0"}},Wt),"\u6761\u6570\u636E")}}))};var Ef=(0,he.connect)(({exercise:ce})=>({exercise:ce}))(pf),Af={tables:"tables___MR1w6",tabSty:"tabSty___Rp0MG"},hf=Object.defineProperty,og=Object.getOwnPropertySymbols,Ff=Object.prototype.hasOwnProperty,yf=Object.prototype.propertyIsEnumerable,ig=(ce,se,ae)=>se in ce?hf(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,Cm=(ce,se)=>{for(var ae in se||(se={}))Ff.call(se,ae)&&ig(ce,ae,se[ae]);if(og)for(var ae of og(se))yf.call(se,ae)&&ig(ce,ae,se[ae]);return ce};const Cf=({Data:ce=[],yAxisName:se="",legendData:ae=[],className:_e="",style:pt={},labelTrue:Ve=!1,grid:Dt={},yAxisNamePadding:et=0,ReactEchartsOnEvents:Be})=>{const Pe=(0,a.useRef)(null),Ht=(ae==null?void 0:ae.length)>5?["#8197EB","#63AEF4","#82D4FF","#37CCCC","#4ECC74","#F9C94D","#FB9A77","#F3647C","#C60101","#9096A3","#E900F5","#FA6400","#3D81B7","#D4BE26","#34A858","#FE8DB3"]:["#4ECC74","#60B1FC","#FB9A77"];return(0,a.useEffect)(()=>{if(Pe.current){const vn=Pe.current.getEchartsInstance(),hn=[];ae==null||ae.forEach((xt,Gt)=>{hn.push((Ht==null?void 0:Ht[Gt])||`rgb(${Math.floor(Math.random()*256)}, ${Math.floor(Math.random()*256)}, ${Math.floor(Math.random()*256)})`)}),vn.setOption({dataset:{source:[["product",...ae],...ce]},legend:{right:"1%",top:"5%",type:"scroll",width:"90%",itemWidth:10,itemHeight:10,itemGap:22},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:Cm({left:"5%",right:"2%",top:"20%",bottom:40},Dt),dataZoom:[Cm({type:"slider"},(ce==null?void 0:ce.length)>10||(ae==null?void 0:ae.length)>6?{start:0,end:10}:{})],yAxis:{name:se,splitArea:{show:!1},nameTextStyle:{color:"#000",padding:et},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:"#EDEDED"}},axisLabel:{color:"#000"}},xAxis:{type:"category",silent:!1,splitLine:{show:!1},splitArea:{show:!1},axisTick:{show:!1},axisLine:{lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#000"}},series:ae==null?void 0:ae.map(()=>({type:"bar",barMaxWidth:40,label:{show:Ve,position:"top",color:"#666666",formatter:"{c}%"}})),color:hn},!0)}},[ce,se,ae,Ve,Dt]),a.createElement(td.Z,{ref:Pe,className:`w-full ${_e}`,style:Cm({height:400,background:"#F6F7F9"},pt),onEvents:Be,option:{}})},Bf=a.memo(Cf),Sf=({exercise:ce,dispatch:se},ae)=>{var _e,pt,Ve,Dt;const{actionTabs:et={}}=ce,Be=(0,he.useParams)(),[Pe,Ht]=(0,a.useState)("1"),[vn,hn]=(0,a.useState)("1"),[xt,Gt]=(0,a.useState)(["\u5168\u90E8\u77E5\u8BC6\u70B9"]),Bn=["\u5355\u9009\u9898","\u591A\u9009\u9898","\u5224\u65AD\u9898","\u586B\u7A7A\u9898","\u7B80\u7B54\u9898","\u7F16\u7A0B\u9898","\u7A0B\u5E8F\u586B\u7A7A\u9898","\u7EC4\u5408\u9898"],Dn=["\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],[,Fn,Wt,Ut]=(0,sn.U)(ne.j,{exercise_id:Be==null?void 0:Be.categoryId}),Yt=()=>{Wt({exercise_id:Be==null?void 0:Be.categoryId})};(0,a.useImperativeHandle)(ae,()=>({getTagList:Yt})),(0,a.useEffect)(()=>{Yt()},[]);const ea=(Pt,Nt)=>{const Rt=Nt==="question"?Bn:Dn;return(Pt==null?void 0:Pt.filter(Xt=>xt.includes("\u5168\u90E8\u77E5\u8BC6\u70B9")||xt.length===0?!0:xt.includes(Xt==null?void 0:Xt.tag_disciplines)).map(Xt=>{const cn=Rt.map(tn=>{var Ja;const ha=(Ja=Xt==null?void 0:Xt.question_types)==null?void 0:Ja.find(dt=>Nt==="question"?dt.question_type_name===tn:dt.question_difficulty===tn);return ha?parseFloat(ha.score_rate.replace("%","")):0});return[(Xt==null?void 0:Xt.tag_disciplines)||"",...cn]}))||[]},nn=[{title:"\u77E5\u8BC6\u70B9\u6570\u91CF",dataIndex:"a",key:"a"},{title:"\u5F97\u5206\u7387<60%",dataIndex:"b",key:"b"},{title:"60%<\u5F97\u5206\u7387<70%",dataIndex:"c",key:"c"},{title:"70%<\u5F97\u5206\u7387<85%",dataIndex:"d",key:"d"},{title:"85%<\u5F97\u5206\u7387<100%",dataIndex:"e",key:"e"},{title:"\u5F97\u5206\u7387\u6700\u9AD8\u77E5\u8BC6\u70B9",dataIndex:"f",key:"f"},{title:"\u5F97\u5206\u7387\u6700\u4F4E\u77E5\u8BC6\u70B9",dataIndex:"g",key:"g"}],zn=[{title:"\u77E5\u8BC6\u70B9",width:90,dataIndex:"tag_disciplines",ellipsis:!0,key:"tag_disciplines"},{title:"\u5355\u9009\u9898",children:[{title:a.createElement("span",{style:{width:"45px",display:"inline-block"}},"\u8BD5\u9898\u6570\u91CF"),dataIndex:"a1",key:"a1",align:"center",ellipsis:!0,render:(Pt,Nt)=>{var Rt,Xt;return((Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_type_name)==="\u5355\u9009\u9898"))==null?void 0:Xt.question_count)||0}},{title:"\u5F97\u5206\u7387",dataIndex:"a2",key:"a2",align:"center",ellipsis:!0,render:(Pt,Nt)=>{var Rt;let Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_type_name)==="\u5355\u9009\u9898");return["0%","0.0%"].includes(Xt==null?void 0:Xt.score_rate)?0:(Xt==null?void 0:Xt.score_rate)||0}}]},{title:"\u591A\u9009\u9898",children:[{title:"\u8BD5\u9898\u6570\u91CF",dataIndex:"b1",key:"b2",align:"center",ellipsis:!0,render:(Pt,Nt)=>{var Rt,Xt;return((Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_type_name)==="\u591A\u9009\u9898"))==null?void 0:Xt.question_count)||0}},{title:"\u5F97\u5206\u7387",dataIndex:"b2",key:"b2",align:"center",ellipsis:!0,render:(Pt,Nt)=>{var Rt;let Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_type_name)==="\u591A\u9009\u9898");return["0%","0.0%"].includes(Xt==null?void 0:Xt.score_rate)?0:(Xt==null?void 0:Xt.score_rate)||0}}]},{title:"\u5224\u65AD\u9898",children:[{title:"\u8BD5\u9898\u6570\u91CF",dataIndex:"c1",key:"c1",align:"center",ellipsis:!0,render:(Pt,Nt)=>{var Rt,Xt;return((Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_type_name)==="\u5224\u65AD\u9898"))==null?void 0:Xt.question_count)||0}},{title:"\u5F97\u5206\u7387",dataIndex:"c2",key:"c2",align:"center",ellipsis:!0,render:(Pt,Nt)=>{var Rt;let Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_type_name)==="\u5224\u65AD\u9898");return["0%","0.0%"].includes(Xt==null?void 0:Xt.score_rate)?0:(Xt==null?void 0:Xt.score_rate)||0}}]},{title:"\u586B\u7A7A\u9898",children:[{title:"\u8BD5\u9898\u6570\u91CF",dataIndex:"m1",key:"m1",align:"center",ellipsis:!0,render:(Pt,Nt)=>{var Rt,Xt;return((Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_type_name)==="\u586B\u7A7A\u9898"))==null?void 0:Xt.question_count)||0}},{title:"\u5F97\u5206\u7387",dataIndex:"m2",key:"m2",align:"center",ellipsis:!0,render:(Pt,Nt)=>{var Rt;let Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_type_name)==="\u586B\u7A7A\u9898");return["0%","0.0%"].includes(Xt==null?void 0:Xt.score_rate)?0:(Xt==null?void 0:Xt.score_rate)||0}}]},{title:"\u7B80\u7B54\u9898",children:[{title:"\u8BD5\u9898\u6570\u91CF",dataIndex:"d1",key:"d1",align:"center",ellipsis:!0,render:(Pt,Nt)=>{var Rt,Xt;return((Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_type_name)==="\u7B80\u7B54\u9898"))==null?void 0:Xt.question_count)||0}},{title:"\u5F97\u5206\u7387",dataIndex:"d2",key:"d2",align:"center",ellipsis:!0,render:(Pt,Nt)=>{var Rt;let Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_type_name)==="\u7B80\u7B54\u9898");return["0%","0.0%"].includes(Xt==null?void 0:Xt.score_rate)?0:(Xt==null?void 0:Xt.score_rate)||0}}]},{title:"\u7F16\u7A0B\u9898",children:[{title:"\u8BD5\u9898\u6570\u91CF",dataIndex:"e1",key:"e2",align:"center",ellipsis:!0,render:(Pt,Nt)=>{var Rt,Xt;return((Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_type_name)==="\u7F16\u7A0B\u9898"))==null?void 0:Xt.question_count)||0}},{title:"\u5F97\u5206\u7387",dataIndex:"e2",key:"e2",align:"center",ellipsis:!0,render:(Pt,Nt)=>{var Rt;let Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_type_name)==="\u7F16\u7A0B\u9898");return["0%","0.0%"].includes(Xt==null?void 0:Xt.score_rate)?0:(Xt==null?void 0:Xt.score_rate)||0}}]},{title:"\u7A0B\u5E8F\u586B\u7A7A\u9898",children:[{title:"\u8BD5\u9898\u6570\u91CF",dataIndex:"f1",key:"f1",align:"center",ellipsis:!0,render:(Pt,Nt)=>{var Rt,Xt;return((Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_type_name)==="\u7A0B\u5E8F\u586B\u7A7A\u9898"))==null?void 0:Xt.question_count)||0}},{title:"\u5F97\u5206\u7387",dataIndex:"f2",key:"f2",align:"center",ellipsis:!0,render:(Pt,Nt)=>{var Rt;let Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_type_name)==="\u7A0B\u5E8F\u586B\u7A7A\u9898");return["0%","0.0%"].includes(Xt==null?void 0:Xt.score_rate)?0:(Xt==null?void 0:Xt.score_rate)||0}}]},{title:"\u7EC4\u5408\u9898",children:[{title:"\u8BD5\u9898\u6570\u91CF",dataIndex:"h1",key:"h2",align:"center",ellipsis:!0,render:(Pt,Nt)=>{var Rt,Xt;return((Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_type_name)==="\u7EC4\u5408\u9898"))==null?void 0:Xt.question_count)||0}},{title:"\u5F97\u5206\u7387",dataIndex:"h2",key:"h2",align:"center",render:(Pt,Nt)=>{var Rt;let Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_type_name)==="\u7EC4\u5408\u9898");return["0%","0.0%"].includes(Xt==null?void 0:Xt.score_rate)?0:(Xt==null?void 0:Xt.score_rate)||0}}]}],mn=[{title:"\u77E5\u8BC6\u70B9",width:120,ellipsis:!0,dataIndex:"tag_disciplines",key:"tag_disciplines"},{title:"\u7B80\u5355",children:[{title:"\u8BD5\u9898\u6570\u91CF",dataIndex:"a1",key:"a1",align:"center",render:(Pt,Nt)=>{var Rt,Xt;return((Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_difficulty)==="\u7B80\u5355"))==null?void 0:Xt.question_count)||0}},{title:"\u5F97\u5206\u7387",dataIndex:"a2",key:"a2",align:"center",render:(Pt,Nt)=>{var Rt;let Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_difficulty)==="\u7B80\u5355");return["0%","0.0%"].includes(Xt==null?void 0:Xt.score_rate)?0:(Xt==null?void 0:Xt.score_rate)||0}}]},{title:"\u4E2D\u7B49",children:[{title:"\u8BD5\u9898\u6570\u91CF",dataIndex:"b1",key:"b2",align:"center",render:(Pt,Nt)=>{var Rt,Xt;return((Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_difficulty)==="\u9002\u4E2D"))==null?void 0:Xt.question_count)||0}},{title:"\u5F97\u5206\u7387",dataIndex:"b2",key:"b2",align:"center",render:(Pt,Nt)=>{var Rt;let Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_difficulty)==="\u9002\u4E2D");return["0%","0.0%"].includes(Xt==null?void 0:Xt.score_rate)?0:(Xt==null?void 0:Xt.score_rate)||0}}]},{title:"\u56F0\u96BE",children:[{title:"\u8BD5\u9898\u6570\u91CF",dataIndex:"c1",key:"c1",align:"center",render:(Pt,Nt)=>{var Rt,Xt;return((Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_difficulty)==="\u56F0\u96BE"))==null?void 0:Xt.question_count)||0}},{title:"\u5F97\u5206\u7387",dataIndex:"c2",key:"c2",align:"center",render:(Pt,Nt)=>{var Rt;let Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_difficulty)==="\u56F0\u96BE");return["0%","0.0%"].includes(Xt==null?void 0:Xt.score_rate)?0:(Xt==null?void 0:Xt.score_rate)||0}}]}],pa=(0,a.useMemo)(()=>{var Pt;let Nt=[],Rt=[];(Pt=Ut==null?void 0:Ut.merged)==null||Pt.forEach(cn=>{Nt.push(cn==null?void 0:cn.tag_disciplines),Rt.push({value:cn==null?void 0:cn.score,extraInfo:cn})});const Xt={tooltip:{trigger:"axis",axisPointer:{type:"shadow",cursor:"pointer"},formatter:()=>""},dataZoom:Cm({type:"slider",show:(Rt==null?void 0:Rt.length)>12},(Rt==null?void 0:Rt.length)>12?{start:0,end:12}:{}),grid:{left:50,right:90,top:60,bottom:40},xAxis:{type:"category",name:"\u77E5\u8BC6\u70B9\u540D\u79F0",data:Nt,nameTextStyle:{color:"#666666"},axisTick:{show:!1},axisLine:{lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666",interval:0}},yAxis:{type:"value",name:"\u5F97\u5206\u7387",data:[0,20,40,60,80,100],min:0,max:100,nameTextStyle:{padding:[0,35,10,15]},axisTick:{show:!1},splitLine:{show:!0,lineStyle:{color:"#EBEBEB"}},axisLine:{show:!1,lineStyle:{color:"#666666"}}},series:[{data:Rt,type:"bar",emphasis:{focus:"series"},barWidth:22,label:{show:!0,position:"top",color:"#666666",formatter:"{c}%"},color:"#2EC25B"}]};return a.createElement(td.Z,{option:Xt,style:{height:375,background:"#F6F7F9"}})},[Ut==null?void 0:Ut.merged,xt]);return a.createElement(a.Fragment,null,a.createElement(jt.Z,{spinning:Fn},a.createElement("div",{className:"flex item-center justify-between mt30"},a.createElement("div",{className:"font16"},"\u77E5\u8BC6\u70B9\u7EDF\u8BA1")),a.createElement(x.default,{className:"mt15",columns:nn,dataSource:[{a:Ut==null?void 0:Ut.merged_size,b:(_e=Ut==null?void 0:Ut.range_stats)==null?void 0:_e[60],c:(pt=Ut==null?void 0:Ut.range_stats)==null?void 0:pt["60-70"],d:(Ve=Ut==null?void 0:Ut.range_stats)==null?void 0:Ve["71-85"],e:(Dt=Ut==null?void 0:Ut.range_stats)==null?void 0:Dt["86-100"],f:Ut==null?void 0:Ut.highest,g:Ut==null?void 0:Ut.lowest}],pagination:!1}),a.createElement("div",{className:"font16 mt30"},"\u77E5\u8BC6\u70B9\u5F97\u5206\u7387"),a.createElement("div",{className:"mt15"},pa)),a.createElement(jt.Z,{spinning:Fn},a.createElement("div",{className:"mt40 flex flex-col gap-10px"},a.createElement("div",{className:"font16"},"\u77E5\u8BC6\u70B9\u5173\u8054\u5206\u6790"),a.createElement(y.default,{defaultActiveKey:"1",onChange:Pt=>{Ht(Pt),hn("1"),Gt(["\u5168\u90E8\u77E5\u8BC6\u70B9"])},items:[{label:"\u9898\u578B",key:"1",children:null},{label:"\u96BE\u6613\u5EA6",key:"2",children:null}]}),a.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},a.createElement(Hr.tp,{dataSource:[{name:"\u5217\u8868",id:"1"},{name:"\u56FE\u8868",id:"2"}],value:vn,onChange:Pt=>{hn(Pt)}}),vn=="2"&&a.createElement(ft.default,{style:{width:260},size:"large",value:xt,onChange:Pt=>{var Nt,Rt;console.log("value",Pt);let Xt=[...Pt];const cn=Pe=="1"?(Nt=Ut==null?void 0:Ut.type_data)==null?void 0:Nt.length:(Rt=Ut==null?void 0:Ut.difficulty_data)==null?void 0:Rt.length;(Xt==null?void 0:Xt.length)==0?Xt=["\u5168\u90E8\u77E5\u8BC6\u70B9"]:Xt.includes("\u5168\u90E8\u77E5\u8BC6\u70B9")&&Xt.length>1?Xt=Xt.filter(tn=>tn!=="\u5168\u90E8\u77E5\u8BC6\u70B9"):!Xt.includes("\u5168\u90E8\u77E5\u8BC6\u70B9")&&Xt.length==cn&&(Xt=["\u5168\u90E8\u77E5\u8BC6\u70B9"]),Gt(Xt)},defaultValue:["\u5168\u90E8\u77E5\u8BC6\u70B9"],placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9",mode:"multiple",maxTagCount:"responsive",allowClear:!0,maxTagPlaceholder:Pt=>{var Nt;return a.createElement(Ae.Z,{styles:{root:{pointerEvents:"none"}},title:Pt.map(({label:Rt})=>Rt).join(", ")},a.createElement("span",null,((Nt=Pt.map(({label:Rt})=>Rt).join(", "))==null?void 0:Nt.slice(0,3))+"..."))},fieldNames:{label:"tag_disciplines",value:"tag_disciplines"},options:Pe=="1"?[{tag_disciplines:"\u5168\u90E8\u77E5\u8BC6\u70B9"},...(Ut==null?void 0:Ut.type_data)||[]]:[{tag_disciplines:"\u5168\u90E8\u77E5\u8BC6\u70B9"},...(Ut==null?void 0:Ut.difficulty_data)||[]]})),vn=="1"&&a.createElement(x.default,{className:Pe=="1"?Af.tables:"",dataSource:Pe=="1"?(Ut==null?void 0:Ut.type_data)||[]:(Ut==null?void 0:Ut.difficulty_data)||[],pagination:!1,bordered:!0,columns:Pe=="1"?zn:mn}),vn=="2"&&a.createElement(Bf,{Data:Pe==="1"?ea(Ut==null?void 0:Ut.type_data,"question"):ea(Ut==null?void 0:Ut.difficulty_data,"difficulty"),yAxisName:"\u5F97\u5206\u7387",yAxisNamePadding:[0,0,10,0],legendData:Pe==="1"?Bn:Dn}))))};var Pf=(0,he.connect)(({exercise:ce})=>({exercise:ce}),null,null,{forwardRef:!0})((0,a.forwardRef)(Sf)),Ma=z(67294),Df=Object.defineProperty,bf=Object.defineProperties,wf=Object.getOwnPropertyDescriptors,sg=Object.getOwnPropertySymbols,xf=Object.prototype.hasOwnProperty,If=Object.prototype.propertyIsEnumerable,cg=(ce,se,ae)=>se in ce?Df(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,Ed=(ce,se)=>{for(var ae in se||(se={}))xf.call(se,ae)&&cg(ce,ae,se[ae]);if(sg)for(var ae of sg(se))If.call(se,ae)&&cg(ce,ae,se[ae]);return ce},Bm=(ce,se)=>bf(ce,wf(se)),Q0=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Lf=({exercise:ce,dispatch:se,classroomList:ae})=>{var _e,pt,Ve,Dt,et,Be,Pe,Ht,vn,hn,xt,Gt,Bn,Dn,Fn,Wt,Ut,Yt,ea,nn,zn,mn,pa,Pt;const{ScoreRangesData:Nt}=ce,[Rt,Xt]=(0,a.useState)("1"),[cn,tn]=(0,a.useState)({}),[Ja,ha]=(0,a.useState)([]),[dt,Fa]=(0,a.useState)([]),[ia,wu]=(0,a.useState)({exercise_group_id:["all"],scope:"0",question_type:["all"]}),[Sa,Hn]=(0,a.useState)(0),[Oa,tu]=(0,a.useState)(0),[Ka,Ba]=(0,a.useState)([]),[La,Zn]=(0,a.useState)([]),[bn,ca]=(0,a.useState)(0),[Qn,pn]=(0,a.useState)(!0),[Tn,En]=(0,a.useState)(!1),[da,Ha]=(0,a.useState)(!1),[au,Ya]=(0,a.useState)(!1),[Cr,Zu]=(0,a.useState)(!1),[sa,Ru]=(0,a.useState)(0),mr=(0,a.useRef)(null),gl=(0,a.useRef)(null),Tl=(0,a.useRef)(null),[mu]=fe.default.useForm(),$u=(0,he.useParams)(),jr=[{label:"90%-100%",color:"#3BA1FF"},{label:"80%-90%",color:"#37CCCC"},{label:"70%-80%",color:"#4ECC74"},{label:"60%-70%",color:"#FBD438"},{label:"60%\u53CA\u4EE5\u4E0B",color:"#F3647C"}];(0,a.useEffect)(()=>(Cr?mr.current=setInterval(()=>{Ru(Yu=>Yu+1)},1e3*30):clearInterval(mr.current),()=>{clearInterval(mr.current)}),[Cr]),(0,a.useEffect)(()=>{Eu()},[]),(0,a.useEffect)(()=>{var Yu,tl;sa>0&&(Rt==="1"?Eu():Rt==="4"?(Yu=Tl.current)==null||Yu.getTagList():(tl=gl.current)==null||tl.dealData())},[sa]);const Eu=(...Yu)=>Q0(void 0,[...Yu],function*(tl=ia){En(!0),yield Promise.all([Va(tl),Nu(tl),oo(tl)]),En(!1),pn(!1)}),wr=(0,a.useMemo)(()=>{var Yu,tl;return{scope:ia==null?void 0:ia.scope,exercise_group_id:(Yu=ia==null?void 0:ia.exercise_group_id)!=null&&Yu.includes("all")?null:ia==null?void 0:ia.exercise_group_id,question_type:(tl=ia==null?void 0:ia.question_type)!=null&&tl.includes("all")?null:ia==null?void 0:ia.question_type}},[ia]),Va=Yu=>Q0(void 0,null,function*(){var tl,_r,Io;const os={scope:Yu==null?void 0:Yu.scope,exercise_group_id:(tl=Yu==null?void 0:Yu.exercise_group_id)!=null&&tl.includes("all")?null:Yu==null?void 0:Yu.exercise_group_id},Zl=yield(0,Ce.ZP)(`/api/exercises/${$u==null?void 0:$u.categoryId}/new_exercise_result.json`,{method:"get",params:Ed({},os)});if(se({type:"exercise/getScoreRangesData",payload:{exercise_id:$u==null?void 0:$u.categoryId}}),(Zl==null?void 0:Zl.status)===0){const Bs=[{label:"\u5168\u90E8",value:"all"}];se({type:"exercise/save",payload:{course_groups:Zl==null?void 0:Zl.course_groups}}),(_r=Zl==null?void 0:Zl.course_groups)==null||_r.forEach(Us=>{Bs.push({label:Us==null?void 0:Us.exercise_group_name,value:Us==null?void 0:Us.exercise_group_id})});const Di=[{label:"\u5168\u90E8",value:"all"}];(Io=Zl==null?void 0:Zl.question_types)==null||Io.forEach(Us=>{Di.push({label:Us==null?void 0:Us.name,value:Us==null?void 0:Us.id})}),Fa(Di),ha(Bs),tn(Ed({},Zl))}}),Nu=(Yu,...tl)=>Q0(void 0,[Yu,...tl],function*(_r,Io=!1,os={}){var Zl;const Bs={scope:_r==null?void 0:_r.scope,exercise_group_id:(Zl=_r==null?void 0:_r.exercise_group_id)!=null&&Zl.includes("all")?null:_r==null?void 0:_r.exercise_group_id};Ha(Io);const Di=yield(0,Ce.ZP)(`/api/exercises/${$u==null?void 0:$u.categoryId}/new_exercise_result_form.json`,{method:"get",params:Ed(Bm(Ed({},Bs),{method:Sa,order:Oa}),os)});(Di==null?void 0:Di.status)===0&&Ba(Di==null?void 0:Di.rate_list),Ha(!1)}),oo=(Yu,...tl)=>Q0(void 0,[Yu,...tl],function*(_r,Io=!1,os={}){var Zl;const Bs={scope:_r==null?void 0:_r.scope,exercise_group_id:(Zl=_r==null?void 0:_r.exercise_group_id)!=null&&Zl.includes("all")?null:_r==null?void 0:_r.exercise_group_id};Ya(Io);const Di=yield(0,Ce.ZP)(`/api/exercises/${$u==null?void 0:$u.categoryId}/new_exercise_result_bottom.json`,{method:"get",params:Ed(Bm(Ed({},Bs),{method:bn}),os)});(Di==null?void 0:Di.status)===0&&Zn(Di==null?void 0:Di.chart),Ya(!1)}),Su=[{label:"\u5168\u90E8",value:"0"},{label:"\u8003\u8BD5\u4E2D/\u5DF2\u4EA4\u5377",value:"1"},{label:"\u5DF2\u4EA4\u5377",value:"2"}],Pu=()=>[{name:"exercise_group_id",label:"\u5206\u73ED\u8303\u56F4",ItemData:Ja,isShow:!0},{noStyle:!0,isShow:Rt==="3",children:Ma.createElement("div",{className:"mb20",style:{color:"#FF9D18"}},"\u8BF4\u660E\uFF1A\u5B66\u751F\u4EBA\u6570=0\u7684\u5206\u73ED\u4E0D\u5728\u4E0B\u9762\u56FE\u8868\u4E2D\u663E\u793A"),ItemData:[]},{name:"scope",label:Ma.createElement("span",{style:{marginRight:-18}},"\u7EDF\u8BA1\u8303\u56F4 ",Ma.createElement(Ae.Z,{overlayStyle:{maxWidth:600},title:Ma.createElement(Ma.Fragment,null,Ma.createElement("div",null,Ma.createElement("span",{style:{fontWeight:600}},"\u5168\u90E8\u5B66\u751F\uFF1A"),"\u7EDF\u8BA1\u8303\u56F4\u4E3A\u5168\u90E8\u5B66\u751F\u65F6\uFF0C\u5219\u7EDF\u8BA1\u6570\u636E\u6DB5\u76D6\u6240\u6709\u5E94\u8003\u5B66\u751F\u3002"),Ma.createElement("div",null,Ma.createElement("span",{style:{fontWeight:600}},"\u8003\u8BD5\u4E2D/\u5DF2\u4EA4\u5377\uFF1A"),"\u7EDF\u8BA1\u8303\u56F4\u4E3A\u8003\u8BD5\u4E2D/\u5DF2\u4EA4\u5377\u5B66\u751F\u65F6\uFF0C\u4EC5\u7EDF\u8BA1\u6B63\u5728\u8003\u8BD5\u4E2D\u548C\u5DF2\u4EA4\u5377\u5B66\u751F\u7684\u8003\u8BD5\u60C5\u51B5\u3002"),Ma.createElement("div",null,Ma.createElement("span",{style:{fontWeight:600}},"\u5DF2\u4EA4\u5377\u5B66\u751F\uFF1A"),"\u7EDF\u8BA1\u8303\u56F4\u4E3A\u5DF2\u4EA4\u5377\u5B66\u751F\u65F6\uFF0C\u4EC5\u7EDF\u8BA1\u5DF2\u4EA4\u5377\u5B66\u751F\u7684\u8003\u8BD5\u60C5\u51B5\u3002"))},Ma.createElement("i",{className:"iconfont icon-xiaowenhao2 font14",style:{cursor:"pointer",color:"#145DFF"}}))),type:"Radio",ItemData:Su,isShow:Rt!=="3"},{name:"question_type",label:"\u9009\u62E9\u9898\u578B",ItemData:dt,isShow:Rt==="2"}],ci=[{name:"\u6210\u7EE9\u603B\u89C8",id:"1"},{name:"\u8BD5\u9898\u8BE6\u60C5",id:"2"},{name:"\u5206\u73ED\u5BF9\u6BD4",id:"3"},{name:"\u77E5\u8BC6\u70B9\u5206\u6790",id:"4"}],Ho=Sa?"\u5F97\u5206\u7387":"\u6B63\u786E\u7387",ji=Yu=>{Yu==="1"&&Eu(),Xt(Yu)},fc=(0,a.useMemo)(()=>{var Yu;const tl=[],_r=[],Io=[];(Yu=cn==null?void 0:cn.student_score_list)==null||Yu.map(Zl=>{tl.unshift([Zl.name,Zl.score_range].join(".")),_r.unshift({value:Zl.rate,type:Zl.type}),Io.unshift(Zl.count)});const os={tooltip:{trigger:"axis",axisPointer:{type:"shadow",cursor:"pointer"}},grid:{left:90,right:120,top:60,bottom:40},xAxis:{type:"value",name:"\u5B66\u751F\u6BD4\u4F8B\uFF08%\uFF09",data:[0,20,40,60,80,100],min:0,max:100,nameTextStyle:{color:"#666666"},axisTick:{show:!1},splitLine:{show:!1},axisLine:{lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666"}},yAxis:{type:"category",data:tl,name:"\u6210\u7EE9\uFF08\u5206\uFF09",nameTextStyle:{color:"#666666"},axisTick:{show:!1},splitLine:{show:!1},axisLine:{lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666",formatter:Zl=>`${Zl.split(".")[0]} -(${Zl.split(".")[1]})`}},series:[{type:"bar",data:_r,color:"#A2BEFF",barWidth:40,itemStyle:{borderColor:"#165DFF",borderWidth:1},label:{show:!0,position:"right",color:"#666666",formatter:Zl=>{var Bs;return`${(Bs=Zl==null?void 0:Zl.data)==null?void 0:Bs.value}%\uFF08${Io[Zl==null?void 0:Zl.dataIndex]}\u4EBA\uFF09`}}}]};return Ma.createElement(td.Z,{option:os,onEvents:{click:Zl=>{var Bs;Zl.componentType==="series"&&se({type:"exercise/setActionTabs",payload:{key:"\u5B66\u751F\u5217\u8868",data:Bm(Ed({},ia),{type:1,sub_type:(Bs=Zl==null?void 0:Zl.data)==null?void 0:Bs.type})}})}},style:{height:434,background:"#F6F7F9"}})},[cn==null?void 0:cn.student_score_list]),qa=(0,a.useMemo)(()=>{let Yu=[],tl=[];Ka.forEach(Io=>{Yu.push(Io.index),tl.push({value:Io.rate,extraInfo:Io})});const _r={tooltip:{trigger:"axis",axisPointer:{type:"shadow",cursor:"pointer"},formatter:()=>""},dataZoom:Ed({type:"slider",show:(tl==null?void 0:tl.length)>30},(tl==null?void 0:tl.length)>30?{start:0,end:Math.floor(29*100/(Ka==null?void 0:Ka.length))}:{}),grid:{left:50,right:60,top:60,bottom:40},xAxis:{type:"category",name:"\u9898\u76EE",data:Yu,nameTextStyle:{color:"#666666"},axisTick:{show:!1},axisLine:{lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666"}},yAxis:{type:"value",name:Ho,data:[0,20,40,60,80,100],min:0,max:100,nameTextStyle:{padding:[0,35,10,15]},axisTick:{show:!1},splitLine:{show:!0,lineStyle:{color:"#EBEBEB"}},axisLine:{show:!1,lineStyle:{color:"#666666"}}},series:[{data:tl,type:"bar",emphasis:{focus:"series"},barWidth:22,label:{show:!0,position:"top",color:"#666666",formatter:"{c}%"},color:"#2EC25B"}]};return Ma.createElement(td.Z,{option:_r,style:{height:370,background:"#F6F7F9"},onEvents:{click:Io=>{var os,Zl,Bs,Di,Us,$c,Ln,kn,Dr,Rs,ec,es;console.log("sdfsdf===",(os=Io==null?void 0:Io.data)==null?void 0:os.extraInfo),se({type:"exercise/setActionTabs",payload:{key:"\u5B66\u751F\u8BE6\u60C5",title:Ma.createElement(Ma.Fragment,null,"\u5B66\u751F\u8BE6\u60C5",Ma.createElement("span",{className:"c-grey-666 font14"},"\uFF08\u9898\u76EE",(Bs=(Zl=Io==null?void 0:Io.data)==null?void 0:Zl.extraInfo)==null?void 0:Bs.index,"\uFF0C",Ho,(Us=(Di=Io==null?void 0:Io.data)==null?void 0:Di.extraInfo)==null?void 0:Us.rate,"%\uFF09"),Ma.createElement(Ae.Z,{title:Ma.createElement(Ma.Fragment,null,"\u9898\u76EE\uFF1A",(Ln=($c=Io==null?void 0:Io.data)==null?void 0:$c.extraInfo)==null?void 0:Ln.question_title,Ma.createElement("br",null),"\u9898\u578B\uFF1A",(Dr=(kn=Io==null?void 0:Io.data)==null?void 0:kn.extraInfo)==null?void 0:Dr.question_type,Ma.createElement("br",null),Ho,"\uFF1A",(ec=(Rs=Io==null?void 0:Io.data)==null?void 0:Rs.extraInfo)==null?void 0:ec.rate,"%")},Ma.createElement("a",null,"\u8BD5\u9898\u8BE6\u60C5"))),data:{questionDetail:(es=Io==null?void 0:Io.data)==null?void 0:es.extraInfo,scope:wr==null?void 0:wr.scope}}})}}})},[Ka,Ho,wr]),bl=(0,a.useMemo)(()=>La==null?void 0:La.map((Yu,tl)=>{var _r,Io,os,Zl,Bs;const Di={tooltip:{trigger:"item"},title:{text:Yu==null?void 0:Yu.question_type,textStyle:{fontWeight:"normal",fontSize:14},top:"10%",left:"center"},series:[{name:Yu==null?void 0:Yu.question_type,type:"pie",radius:["20%","40%"],center:["50%","65%"],itemStyle:{borderColor:"#fff",borderWidth:2},data:[{value:((_r=Yu==null?void 0:Yu.details)==null?void 0:_r.full_count)||0,name:jr[0].label,itemStyle:{color:jr[0].color}},{value:((Io=Yu==null?void 0:Yu.details)==null?void 0:Io.best_count)||0,name:jr[1].label,itemStyle:{color:jr[1].color}},{value:((os=Yu==null?void 0:Yu.details)==null?void 0:os.good_count)||0,name:jr[2].label,itemStyle:{color:jr[2].color}},{value:((Zl=Yu==null?void 0:Yu.details)==null?void 0:Zl.pass_count)||0,name:jr[3].label,itemStyle:{color:jr[3].color}},{value:((Bs=Yu==null?void 0:Yu.details)==null?void 0:Bs.fails_count)||0,name:jr[4].label,itemStyle:{color:jr[4].color}}]}]};return Ma.createElement(td.Z,{key:tl,className:"bg-white",option:Di,style:{width:"100%",height:240},onEvents:{click:Us=>{const $c=Bm(Ed({},ia),{question_type:[Yu==null?void 0:Yu.question_type_id]});wu($c),mu.setFieldsValue(Ed({},$c)),Xt("2"),window.scrollTo({top:0,behavior:"smooth"})}}})}),[La]),lo=[{title:"\u540D\u6B21",dataIndex:"index",align:"center",width:90,render:Yu=>{let tl=Yu;Yu===1&&(tl=Qm.Z),Yu===2&&(tl=Um.Z),Yu===3&&(tl=pm.Z);const _r=typeof tl=="number"?tl:Ma.createElement("img",{src:tl});return Ma.createElement("div",{style:{textAlign:"left",paddingLeft:22}},_r)}},{title:"\u59D3\u540D",dataIndex:"user_name",ellipsis:!0,render:Yu=>Ma.createElement(Ae.Z,{placement:"topLeft",title:Yu},Ma.createElement("span",null,Yu||"--"))},{title:"\u5B66\u53F7",dataIndex:"student_id",ellipsis:!0,render:Yu=>Ma.createElement(Ae.Z,{placement:"topLeft",title:Yu},Ma.createElement("span",null,Yu||"--"))},{title:"\u73ED\u7EA7",dataIndex:"class_name",ellipsis:!0,render:Yu=>Ma.createElement(Ae.Z,{placement:"topLeft",title:Yu},Ma.createElement("span",null,Yu||"--"))},{title:"\u7B54\u9898\u65F6\u957F",dataIndex:"time",ellipsis:!0,render:Yu=>Ma.createElement(Ae.Z,{placement:"topLeft",title:Yu},Ma.createElement("span",null,Yu||"--"))},{title:"\u6210\u7EE9",width:90,dataIndex:"score"}];return Ma.createElement("div",{className:Uc.Z.wrap},Ma.createElement(yn.Z,{loading:Qn,active:!0},(cn==null?void 0:cn.exercise_status)===1&&Ma.createElement(zt.Z,{styles:{margin:"0 auto",padding:200}}),(cn==null?void 0:cn.exercise_status)>1&&Ma.createElement(a.Fragment,null,Ma.createElement(oe.Z,{className:"mb30",align:"middle",justify:"space-between"},Ma.createElement(Hr.tp,{dataSource:ci,value:Rt,onChange:ji}),Rt==="3"?Ma.createElement(me.ZP,{type:"primary",icon:Ma.createElement(cf.Z,{rev:void 0}),onClick:()=>Q0(void 0,null,function*(){var Yu;if((0,On.Rm)()&&!((Yu=ae.AssistantObject.exercise)!=null&&Yu.can_download)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}se({type:"classroomList/setActionTabs",payload:{key:"\u9009\u62E9\u73ED\u7EA7",title:"\u5206\u73ED\u5BF9\u6BD4",course_groups:cn==null?void 0:cn.course_groups.map(tl=>({course_group_id:tl==null?void 0:tl.exercise_group_id,group_group_name:tl==null?void 0:tl.exercise_group_name,count:tl==null?void 0:tl.exercise_group_students})),fn:()=>Q0(void 0,null,function*(){const tl=yield(0,ne.iB)({exercise_id:$u==null?void 0:$u.categoryId,exercise_group_id:JSON.parse(localStorage.getItem("all_student_works_param")).course_group});(tl==null?void 0:tl.status)===0?(pe.ZP.success(tl==null?void 0:tl.message),he.history.push(`/classrooms/${$u.coursesId}/exportlist/exercise_score,export_exercise_users`)):pe.ZP.success(tl==null?void 0:tl.message)})}})})},"\u5BFC\u51FA\u5206\u73ED\u5BF9\u6BD4"):Ma.createElement(oe.Z,null,Ma.createElement(Ne.Z,{checked:Cr,onChange:Yu=>Zu(Yu),className:"mr5 c-black"}),"\u81EA\u52A8\u5237\u65B0",Ma.createElement("span",{className:"c-grey-999"},"\uFF08\u5F00\u542F\u540E\u6BCF30\u79D2\u66F4\u65B0\u4E00\u6B21\u6570\u636E\uFF09"))),Rt!=="4"&&Ma.createElement(ue.Z,{form:mu,initialValues:ia,onValuesChange:(Yu,tl)=>{const _r=Ed(Ed({},ia),tl);console.log(_r,"newValue"),wu(Ed({},_r)),Rt==="1"&&Eu(_r)},data:Pu()}),Ma.createElement("section",{style:{display:Rt==="1"?"block":"none"}},Ma.createElement(jt.Z,{spinning:Tn},(cn==null?void 0:cn.open_camera)&&Ma.createElement(Ma.Fragment,null,Ma.createElement("div",{className:Uc.Z.head},Ma.createElement("div",{className:Uc.Z.title},"\u8003\u8BD5\u884C\u4E3A\u5206\u6790\u7EDF\u8BA1")),Ma.createElement(vm.ZP,{data:(0,vm.Uf)(cn)})),Ma.createElement("div",{className:Uc.Z.head},Ma.createElement("div",{className:Uc.Z.title},"\u8BD5\u5377\u6982\u89C8"),Ma.createElement("div",{className:"flex item-center current",onClick:()=>{se({type:"exercise/setActionTabs",payload:{key:"\u8BBE\u7F6E\u5F97\u5206\u533A\u95F4"}})}},Ma.createElement("i",{className:"iconfont icon-shezhi2 mr5 font16"}),Ma.createElement("span",{style:{color:"#333333"}},"\u8BBE\u7F6E\u5F97\u5206\u533A\u95F4"))),Ma.createElement("div",{className:Uc.Z.table},Ma.createElement("aside",null,Ma.createElement("div",null,"\u8BD5\u5377\u603B\u5206"),Ma.createElement("div",null,(_e=cn==null?void 0:cn.exercise_counts)==null?void 0:_e.total_score,"\u5206")),Ma.createElement("aside",null,Ma.createElement("div",null,"\u7B54\u9898\u65F6\u957F"),Ma.createElement("div",null,(pt=cn==null?void 0:cn.exercise_counts)==null?void 0:pt.time)),Ma.createElement("aside",null,Ma.createElement("div",null,"\u5E73\u5747\u7B54\u9898\u65F6\u957F",Ma.createElement(Ae.Z,{title:"\u5E73\u5747\u7B54\u9898\u65F6\u957F=\u5DF2\u4EA4\u5377\u5B66\u751F\u5B9E\u9645\u7B54\u9898\u65F6\u957F\u603B\u548C/\u5DF2\u4EA4\u5377\u5B66\u751F\u6570"},Ma.createElement("i",{className:"iconfont icon-xiaowenhao2"}))),Ma.createElement("div",null,(Ve=cn==null?void 0:cn.exercise_counts)==null?void 0:Ve.avg_answer_duration)),Ma.createElement("aside",null,Ma.createElement("div",null,"\u5E94\u8003\u4EBA\u6570",Ma.createElement(Ae.Z,{title:"\u8001\u5E08\u53D1\u5E03\u8003\u8BD5\u5BF9\u5E94\u9700\u8981\u53C2\u52A0\u8003\u8BD5\u7684\u5B66\u751F\u6570"},Ma.createElement("i",{className:"iconfont icon-xiaowenhao2"}))),Ma.createElement("div",null,(Dt=cn==null?void 0:cn.exercise_counts)==null?void 0:Dt.candidate_num,"\u4EBA")),Ma.createElement("aside",null,Ma.createElement("div",null,"\u5B9E\u8003\u4EBA\u6570",Ma.createElement(Ae.Z,{title:"\u63D0\u4EA4\u72B6\u6001\u4E3A\u8003\u8BD5\u4E2D\u3001\u5DF2\u4EA4\u5377\u3001\u5DF2\u4EA4\u5377\uFF08\u672A\u7B54\uFF09\u7684\u5B66\u751F\u6570"},Ma.createElement("i",{className:"iconfont icon-xiaowenhao2"}))),Ma.createElement("div",null,(et=cn==null?void 0:cn.exercise_counts)==null?void 0:et.exam_num,"\u4EBA")),Ma.createElement("aside",null,Ma.createElement("div",null,"\u53C2\u8003\u7387",Ma.createElement(Ae.Z,{title:"\u53C2\u8003\u7387=(\u5B9E\u8003\u4EBA\u6570/\u5E94\u8003\u4EBA\u6570\uFF09*100%"},Ma.createElement("i",{className:"iconfont icon-xiaowenhao2"}))),Ma.createElement("div",null,(Be=cn==null?void 0:cn.exercise_counts)==null?void 0:Be.reference_rate,"%")),Ma.createElement("aside",null,Ma.createElement("div",null,"\u5E73\u5747\u5206",Ma.createElement(Ae.Z,{title:"\u5E73\u5747\u5206=\u5B66\u751F\u6210\u7EE9\u603B\u548C/\u5B66\u751F\u603B\u6570"},Ma.createElement("i",{className:"iconfont icon-xiaowenhao2"}))),Ma.createElement("div",null,(Pe=cn==null?void 0:cn.exercise_counts)==null?void 0:Pe.average_score,"\u5206")),Ma.createElement("aside",null,Ma.createElement("div",null,"\u6700\u9AD8\u5206"),Ma.createElement("div",null,(Ht=cn==null?void 0:cn.exercise_counts)==null?void 0:Ht.max_score,"\u5206")),Ma.createElement("aside",null,Ma.createElement("div",null,"\u6700\u4F4E\u5206"),Ma.createElement("div",null,(vn=cn==null?void 0:cn.exercise_counts)==null?void 0:vn.min_score,"\u5206")),Ma.createElement("aside",null,Ma.createElement("div",null,"\u6807\u51C6\u5DEE",Ma.createElement(Ae.Z,{title:"\u53CD\u5E94\u5B66\u751F\u5206\u6570\u79BB\u6563\u7A0B\u5EA6\u7684\u6307\u6807\uFF0C\u6570\u503C\u8D8A\u5927\uFF0C\u8868\u793A\u5B66\u751F\u4E4B\u95F4\u7684\u6210\u7EE9\u5DEE\u8DDD\u8D8A\u5927\uFF0C\u6210\u7EE9\u5206\u5E03\u8D8A\u5E7F\uFF1B\u6570\u503C\u8D8A\u5C0F\uFF0C\u8868\u793A\u5B66\u751F\u4E4B\u95F4\u7684\u6210\u7EE9\u8D8A\u63A5\u8FD1\uFF0C\u5206\u5E03\u8D8A\u7A84\u3002"},Ma.createElement("i",{className:"iconfont icon-xiaowenhao2"}))),Ma.createElement("div",null,(hn=cn==null?void 0:cn.exercise_counts)==null?void 0:hn.standard_deviation)),Ma.createElement("aside",null,Ma.createElement("div",null,"\u4F18\u79C0",Ma.createElement(Ae.Z,{title:`\u4F18\u79C0\u4EBA\u6570\uFF1A\u6210\u7EE9\u5927\u4E8E\u7B49\u4E8E\u603B\u5206*${(xt=Nt==null?void 0:Nt.score_ranges)==null?void 0:xt.good_rate}%\uFF0C\u5C0F\u4E8E\u7B49\u4E8E\u603B\u5206*${(Gt=Nt==null?void 0:Nt.score_ranges)==null?void 0:Gt.max_rate}%\u7684\u5B66\u751F\u6570`},Ma.createElement("i",{className:"iconfont icon-xiaowenhao2"}))),Ma.createElement("div",null,(Bn=cn==null?void 0:cn.exercise_counts)==null?void 0:Bn.best_counts,"\u4EBA")),Ma.createElement("aside",null,Ma.createElement("div",null,"\u826F\u597D",Ma.createElement(Ae.Z,{title:`\u826F\u597D\u4EBA\u6570\uFF1A\u6210\u7EE9\u5927\u4E8E\u7B49\u4E8E\u603B\u5206*${(Dn=Nt==null?void 0:Nt.score_ranges)==null?void 0:Dn.pass_rate}%\uFF0C\u5C0F\u4E8E\u603B\u5206*${(Fn=Nt==null?void 0:Nt.score_ranges)==null?void 0:Fn.good_rate}%\u7684\u5B66\u751F\u6570`},Ma.createElement("i",{className:"iconfont icon-xiaowenhao2"}))),Ma.createElement("div",null,(Wt=cn==null?void 0:cn.exercise_counts)==null?void 0:Wt.good_counts,"\u4EBA")),Ma.createElement("aside",null,Ma.createElement("div",null,"\u53CA\u683C",Ma.createElement(Ae.Z,{title:`\u53CA\u683C\u4EBA\u6570\uFF1A\u6210\u7EE9\u5927\u4E8E\u7B49\u4E8E\u603B\u5206*${(Ut=Nt==null?void 0:Nt.score_ranges)==null?void 0:Ut.fail_rate}%\uFF0C\u5C0F\u4E8E\u603B\u5206*${(Yt=Nt==null?void 0:Nt.score_ranges)==null?void 0:Yt.pass_rate}%\u7684\u5B66\u751F\u6570`},Ma.createElement("i",{className:"iconfont icon-xiaowenhao2"}))),Ma.createElement("div",null,(ea=cn==null?void 0:cn.exercise_counts)==null?void 0:ea.pass_counts,"\u4EBA")),Ma.createElement("aside",null,Ma.createElement("div",null,"\u4E0D\u53CA\u683C",Ma.createElement(Ae.Z,{title:`\u4E0D\u53CA\u683C\u4EBA\u6570\uFF1A\u6210\u7EE9\u5C0F\u4E8E\u603B\u5206*${(nn=Nt==null?void 0:Nt.score_ranges)==null?void 0:nn.fail_rate}%\u7684\u5B66\u751F\u6570`},Ma.createElement("i",{className:"iconfont icon-xiaowenhao2"}))),Ma.createElement("div",null,(zn=cn==null?void 0:cn.exercise_counts)==null?void 0:zn.fail_counts,"\u4EBA"))),Ma.createElement("div",{className:Uc.Z.head},Ma.createElement("div",{className:Uc.Z.title},"\u9898\u76EE\u6982\u89C8",Ma.createElement("span",{className:"font14",style:{color:"#FF9D18"}},"\uFF08\u70B9\u51FB\u67F1\u72B6\u56FE\u53EF\u67E5\u770B\u6570\u636E\u8BE6\u60C5\uFF09")),Ma.createElement(oe.Z,null,Ma.createElement(fe.default.Item,{colon:!1,label:"\u7EDF\u8BA1\u7EF4\u5EA6"},Ma.createElement(ft.default,{style:{width:140},value:Sa,onChange:Yu=>{Hn(Yu),Nu(ia,!0,{method:Yu})}},Ma.createElement(ft.default.Option,{value:0},"\u6B63\u786E\u7387"),Ma.createElement(ft.default.Option,{value:1},"\u5F97\u5206\u7387"))),Ma.createElement(fe.default.Item,{className:"ml20",colon:!1,label:"\u6392\u5E8F\u65B9\u5F0F"},Ma.createElement(ft.default,{style:{width:140},value:Oa,onChange:Yu=>{tu(Yu),Nu(ia,!0,{order:Yu})}},Ma.createElement(ft.default.Option,{value:0},"\u6309\u9898\u53F7\u5347\u5E8F"),Ma.createElement(ft.default.Option,{value:1},"\u6309\u9898\u53F7\u964D\u5E8F"),Ma.createElement(ft.default.Option,{value:2},"\u6309",Ho,"\u5347\u5E8F"),Ma.createElement(ft.default.Option,{value:3},"\u6309",Ho,"\u964D\u5E8F"))))),Ma.createElement(jt.Z,{spinning:da},qa),Ma.createElement("div",{className:Uc.Z.head},Ma.createElement("div",{className:Uc.Z.title},"\u5B66\u751F\u6210\u7EE9\u5206\u5E03",Ma.createElement("span",{className:"font14",style:{color:"#FF9D18"}},"\uFF08\u70B9\u51FB\u67F1\u72B6\u56FE\u53EF\u67E5\u770B\u6570\u636E\u8BE6\u60C5\uFF09"))),fc,Ma.createElement("div",{className:Uc.Z.head},Ma.createElement("div",{className:Uc.Z.title},"\u4F18\u79C0\u751F",Ma.createElement(Ae.Z,{title:"\u7EDF\u8BA1\u8BE5\u573A\u8003\u8BD5\u4E2D\u6210\u7EE9\u6392\u540D\u524D10\u7684\u5B66\u751F"},Ma.createElement("i",{style:{color:"#145DFF"},className:"iconfont icon-xiaowenhao2 ml5"})))),Ma.createElement(x.default,{columns:lo,rowKey:"index",dataSource:(cn==null?void 0:cn.rank_list)||[],pagination:!1}),Ma.createElement("div",{className:Uc.Z.head},Ma.createElement("div",{className:Uc.Z.title},"\u9898\u578B\u6982\u89C8",Ma.createElement("span",{className:"font14",style:{color:"#FF9D18"}},"\uFF08\u70B9\u51FB\u73AF\u72B6\u56FE\u53EF\u67E5\u770B\u6570\u636E\u8BE6\u60C5\uFF09")),Ma.createElement(oe.Z,null,Ma.createElement(fe.default.Item,{colon:!1,label:"\u7EDF\u8BA1\u7EF4\u5EA6"},Ma.createElement(ft.default,{style:{width:140},value:bn,onChange:Yu=>{ca(Yu),oo(ia,!0,{method:Yu})}},Ma.createElement(ft.default.Option,{value:0},"\u6B63\u786E\u7387"),Ma.createElement(ft.default.Option,{value:1},"\u5F97\u5206\u7387"))))),Ma.createElement(jt.Z,{spinning:au},Ma.createElement("div",{className:"p-20px ",style:{background:"#F6F7F9"}},Ma.createElement("div",{className:"flex item-center justify-end mb20 gap-10px"},Ma.createElement("div",{className:" c-grey-333"},bn===0?"\u6B63\u786E\u7387\u533A\u95F4\uFF1A":"\u5F97\u5206\u7387\u533A\u95F4\uFF1A"),Ma.createElement("div",{className:"flex item-center gap-20px"},jr.map((Yu,tl)=>Ma.createElement("div",{key:tl,className:"flex item-center gap-10px"},Ma.createElement("div",{className:"rounded-2px",style:{width:10,height:10,background:Yu==null?void 0:Yu.color}}),Ma.createElement("div",{className:"font12 c-grey-333"},Yu==null?void 0:Yu.label))))),Ma.createElement("div",{className:"gap-10px",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(360px, 1fr))"}},bl))))),Rt==="2"&&Ma.createElement("section",null,cn!=null&&cn.is_random?Ma.createElement(Hm,{value:wr,ref:gl}):Ma.createElement(Xd,{value:wr,ref:gl})),Rt==="3"&&Ma.createElement("section",null,Ma.createElement(sf,{value:wr})),Rt==="4"&&Ma.createElement("section",null,Ma.createElement(Pf,{value:wr,ref:Tl})))),((mn=ce==null?void 0:ce.actionTabs)==null?void 0:mn.key)==="\u5B66\u751F\u8BE6\u60C5"&&Ma.createElement(Ef,null),((pa=ce==null?void 0:ce.actionTabs)==null?void 0:pa.key)==="\u8BBE\u7F6E\u5F97\u5206\u533A\u95F4"&&Ma.createElement(N0,{handleOnComplete:Eu}),((Pt=ce==null?void 0:ce.actionTabs)==null?void 0:Pt.key)==="\u5B66\u751F\u5217\u8868"&&Ma.createElement(Gg,null))};var Nf=(0,he.connect)(({exercise:ce,classroomList:se})=>({exercise:ce,classroomList:se}))(Lf),Of=z(45224),i0={hideHeadCheckbox:"hideHeadCheckbox____864g",moveCategory:"moveCategory___on_eY",tabSearch:"tabSearch___LqTIA",warpModal:"warpModal___ub_j0",modalColumn:"modalColumn___tJRIx",modalRow:"modalRow___AFP2T",sup:"sup____weyo",shijuan:"shijuan___NU0re",name:"name___tJw50",tip:"tip___ihMML"},dg=z(85688),Mf=z(34562),Ai=z(67294),Rf=Object.defineProperty,Tf=Object.defineProperties,kf=Object.getOwnPropertyDescriptors,mg=Object.getOwnPropertySymbols,jf=Object.prototype.hasOwnProperty,zf=Object.prototype.propertyIsEnumerable,gg=(ce,se,ae)=>se in ce?Rf(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,Sm=(ce,se)=>{for(var ae in se||(se={}))jf.call(se,ae)&&gg(ce,ae,se[ae]);if(mg)for(var ae of mg(se))zf.call(se,ae)&&gg(ce,ae,se[ae]);return ce},Zf=(ce,se)=>Tf(ce,kf(se)),U0=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const{TabPane:Gm}=y.default,Qf=({classroomList:ce,exercise:se,loading:ae,dispatch:_e})=>{var pt;const Ve=(0,he.useParams)(),Dt=(0,he.useLocation)(),[et]=fe.default.useForm(),{commonHeader:Be}=se;let[Pe,Ht]=(0,a.useState)(!0),[vn,hn]=(0,a.useState)(!1);const[xt,Gt]=(0,a.useState)("myself");let[Bn,Dn]=(0,a.useState)([]),[Fn,Wt]=(0,a.useState)([]),[Ut,Yt]=(0,a.useState)(),[ea,nn]=(0,a.useState)([]);const zn=(0,a.useRef)(),[mn,pa]=(0,a.useState)(1),Pt=(0,a.useRef)(null),[Nt,Rt]=(0,a.useState)(!1),[Xt,cn]=(0,a.useState)(""),[tn,Ja]=(0,a.useState)(""),ha=[{title:"\u8BD5\u5377\u540D\u79F0",dataIndex:"name",width:150,ellipsis:!0,align:"left"},{title:"\u77E5\u8BC6\u70B9",dataIndex:"course_list_name",width:150,ellipsis:!0,align:"left"},{title:"\u7C7B\u578B",dataIndex:"is_random",width:90,align:"left",render:ca=>ca?"\u968F\u673A\u7EC4\u5377":"\u4EBA\u5DE5\u7EC4\u5377"},{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"updated_at",width:150,align:"left"},{title:"\u8BD5\u9898\u6570",dataIndex:"item_num",width:60,align:"center"},{title:"\u603B\u5206",dataIndex:"total_score",width:60,align:"center"},{title:"\u64CD\u4F5C",dataIndex:"is_random",width:60,align:"center",render:(ca,Qn)=>Ai.createElement("a",{href:ca?`/randompaper/detail/${Qn.id}`:`/paperlibrary/see/${Qn.id}?defaultActiveKey=1`,target:"_blank>"},"\u9884\u89C8")}],[dt,Fa]=(0,a.useState)({page:0,limit:20,group_id:null,object_type:"examination_bank",search:"",filter:"myself"});(0,a.useEffect)(()=>{se.actionTabs.key==="\u8BD5\u5377\u9009\u7528"&&(Sa(),nn([]),ia())},[se.actionTabs.key]);const ia=()=>U0(void 0,null,function*(){const ca=yield _e({type:"paperlibrary/getTeachGroupData"});Wt(ca)}),wu=ca=>{const Qn=parseInt(ca);return isNaN(Qn)?"":Qn},Sa=()=>U0(void 0,null,function*(){var ca,Qn;if(Pe){++dt.page,Ht(!1);const pn=yield _e({type:"exercise/getBrankList",payload:Zf(Sm({},dt),{search:(ca=dt.search)==null?void 0:ca.trim()})});Bn=pn!=null&&pn.object_list?[...Bn.concat(pn==null?void 0:pn.object_list)]:Bn,Yt(pn.is_teacher),((Qn=pn.object_list)==null?void 0:Qn.length){Pt.current.scrollTop=0,Bn=[],dt.page=0,dt.group_id=ca,Pe=!0,nn([]),Fa(Sm({},dt)),Sa()},Oa={selectedRowKeys:ea,onChange:ca=>{nn(ca)},type:"radio"},tu=()=>{Fa(Sm({},{page:0,limit:20,group_id:null,object_type:"examination_bank",search:"",filter:"myself"})),Dn([]),Ht(!0),Gt("myself"),_e({type:"exercise/setActionTabs",payload:{}}),hn(!1)},[Ka,Ba,La,Zn]=(0,dg.P)(),bn=ca=>U0(void 0,null,function*(){let Qn=!1;Bn.forEach(da=>{ea.includes(da.id)&&(Qn=da.is_random)}),zn.current&&(Qn=Be==null?void 0:Be.is_random);const pn=ca.map(da=>({shixun_id:da.id,is_use:da.is_use,is_copy:da.is_copy}));if(!Qn){const da=yield _e({type:"exercise/saveBanks",payload:{course_id:Ve.coursesId,object_type:"examination_bank",bank_id:zn.current?[zn.current]:ea,shixuns_info:pn,is_make_up_exercise:!0,make_up_exercise_id:Number(Ve.categoryId),use_origin_exercise:!!zn.current}});(da==null?void 0:da.status)===0&&((0,de.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u8BD5\u5377\u9009\u7528"]),cn(`/classrooms/${Ve.coursesId}/exercise/${da.exercise_id}/detail?random=${da.is_random}&tabs=3`),Ja(`/classrooms/${Ve.coursesId}/exercise/add/${da.exercise_id}?random=${da.is_random}&type=2`),pe.ZP.success("\u521B\u5EFA\u6210\u529F\uFF0C\u8BF7\u8BBE\u7F6E\u8003\u8BD5\u89C4\u5219"),setTimeout(()=>{window.location.href=`/classrooms/${Ve.coursesId}/exercise/${da.exercise_id}/detail?random=${da.is_random}&tabs=3`},1e3),Ba(),tu());return}_e({type:"exercise/setActionTabs",payload:{}}),Ba();let Tn=1,En=Fe.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:500,maskClosable:!1,keyboard:!1,cancelButtonProps:{disabled:!1},title:"\u914D\u7F6E\u51FA\u5377\u6570\u91CF",content:Ai.createElement("div",{className:i0.modalColumn},Ai.createElement("div",{className:i0.modalRow},Ai.createElement("sup",{className:i0.sup},"*"),Ai.createElement("span",{style:{flexShrink:0}},"\u968F\u673A\u51FA\u5377\u6570\u91CF\uFF1A"),Ai.createElement(Re.Z,{parser:wu,style:{width:120},placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u6570\u91CF",min:1,defaultValue:Tn,onChange:da=>{Tn=da;const Ha=document.getElementById("model_error");Tn<1||Tn>50?Ha.style.display="block":Ha.style.display="none"}})),Ai.createElement("div",{style:{display:"none",marginLeft:106},id:"model_error",className:"c-red"},"\u8BF7\u8F93\u51651-50\u4E4B\u95F4\u7684\u6574\u6570")),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onCancel:tu,onOk:()=>U0(void 0,null,function*(){if(Tn<1||Tn>50){const Ha=document.getElementById("model_error");return Ha.style.display="block",Promise.reject()}En.update({cancelButtonProps:{disabled:!0}});const da=yield _e({type:"exercise/saveBanks",payload:{course_id:Ve.coursesId,object_type:"examination_bank",bank_id:zn.current?[zn.current]:ea,shixuns_info:pn,num:Tn,is_make_up_exercise:!0,make_up_exercise_id:Number(Ve.categoryId),use_origin_exercise:!!zn.current}});En.update({cancelButtonProps:{disabled:!1}}),da&&da.status===0?((0,de.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u8BD5\u5377\u9009\u7528"]),Fe.default.destroyAll(),tu(),Ba(),pe.ZP.success("\u521B\u5EFA\u6210\u529F\uFF0C\u8BF7\u8BBE\u7F6E\u8003\u8BD5\u89C4\u5219"),setTimeout(()=>{window.location.href=`/classrooms/${Ve.coursesId}/exercise/${da.exercise_id}/detail?random=${da.is_random}&tabs=3`},1e3)):(tu(),Ba())})})});return Ai.createElement(Ai.Fragment,null,Ai.createElement(Fe.default,{centered:!0,width:980,title:"\u521B\u5EFA\u8865\u8003",maskClosable:!1,destroyOnClose:!0,open:se.actionTabs.key==="\u8BD5\u5377\u9009\u7528",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:vn,bodyStyle:{minHeight:150},wrapClassName:i0.warpModal,onOk:()=>U0(void 0,null,function*(){var ca;if(mn===1){if(!ea.length){pe.ZP.error("\u8BF7\u9009\u62E9\u8BD5\u5377");return}hn(!0);let Qn=!1,pn=!1;if(Bn.forEach(En=>{ea.includes(En.id)&&En.need_authorize&&(Qn=En.need_authorize),ea.includes(En.id)&&(pn=En.is_random)}),Qn){(0,lr.rX)(!1,"\u8BE5\u8BD5\u5377\u4E2D\u5305\u542B\u5B9E\u8BAD\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002");return}(yield Zn({id:`${ea[0]}`,course_id:Ve.coursesId,type:"examination_bank"}))||bn([]),hn(!1)}else{hn(!0);const Qn=yield(0,Ce.ZP)(`/api/exercises/${Ve.categoryId}/use_origin_exercise.json`,{method:"post"}),pn=yield Zn({id:`${ea[0]}`,course_id:Ve.coursesId,type:"examination_bank",result:Qn});zn.current=(ca=Qn==null?void 0:Qn.save_banks_params)==null?void 0:ca.bank_id,pn||bn([]),hn(!1)}}),onCancel:tu},Ai.createElement(Ie.ZP.Group,{value:mn,onChange:ca=>pa(ca.target.value),style:{marginTop:10,marginBottom:15}},Ai.createElement(Ie.ZP,{value:1},"\u91CD\u65B0\u9009\u62E9\u8BD5\u5377"),Ai.createElement(Ie.ZP,{value:2},"\u7EE7\u7EED\u4F7F\u7528\u539F\u8BD5\u5377")),mn===1?Ai.createElement(Ai.Fragment,null,Ai.createElement(y.default,{activeKey:xt,onTabClick:ca=>U0(void 0,null,function*(){Pt.current.scrollTop=0,Bn=[],xt!==ca&&nn([]),Gt(ca),dt.page=0,dt.filter=ca,dt.group_id=null,Pe=!0,Sa()})},Ai.createElement(Gm,{tab:Ai.createElement("span",null,"\u6211\u7684\u8BD5\u5377\u5E93"),key:"myself"}),Ai.createElement(Gm,{tab:Ai.createElement("span",null,"\u6559\u7814\u5171\u4EAB"),key:"teacher"}),Ai.createElement(Gm,{tab:Ai.createElement("span",null,"\u516C\u5171\u8BD5\u5377\u5E93"),key:"public"})),Ai.createElement("div",{className:i0.tabSearch},xt==="teacher"&&Ai.createElement(ft.default,{value:dt.group_id,onChange:Hn,size:"middle",style:{width:200,marginRight:30}},Ai.createElement(ft.default.Option,{value:null},"\u5168\u90E8\u6559\u7814\u56E2\u961F"),(pt=Fn==null?void 0:Fn.groups)==null?void 0:pt.map(ca=>Ai.createElement(ft.default.Option,{key:ca==null?void 0:ca.group_id,value:ca==null?void 0:ca.group_id},ca==null?void 0:ca.name))),Ai.createElement(Le.default.Search,{placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0\u8FDB\u884C\u641C\u7D22",value:dt.search,onChange:ca=>{dt.search=ca.target.value,Fa(Sm({},dt))},onSearch:ca=>{Pt.current.scrollTop=0,Bn=[],dt.page=0,Pe=!0,nn([]),ca&&(0,Mf.tk)({name:ca,copywriting:ca,position:"Exercise"}),Sa()}})),Ai.createElement("div",{ref:Pt,style:{maxHeight:350,overflowY:"auto",overflowX:"hidden",marginTop:10,paddingBottom:20}},!Ut&&xt==="public"&&Ai.createElement("div",{style:{display:"flex",flexDirection:"column",paddingTop:"30px",alignItems:"center",justifyContent:"center"}},Ai.createElement("span",null,"\u901A\u8FC7\u804C\u4E1A\u8BA4\u8BC1\u7684\u6559\u5E08\u624D\u80FD\u8BBF\u95EE\u516C\u5171\u8BFE\u7A0B\u8D44\u6E90\u5E93"),Ai.createElement("p",{style:{cursor:"pointer",background:"#ff6800",height:"30px",textAlign:"center",marginTop:"5px",padding:"5px 0px",color:"#fff",width:"80px"},onClick:()=>{window.open("/account/certification")}},"\u7ACB\u5373\u8BA4\u8BC1")),Ai.createElement(bo(),{initialLoad:!1,pageStart:0,loadMore:()=>{Sa()},hasMore:Pe,useWindow:!1},se.actionTabs.key==="\u8BD5\u5377\u9009\u7528"&&Ut&&Ai.createElement(Of.Z,{className:i0.hideHeadCheckbox,pagination:!1,hideSelectAll:!0,dataSource:Bn,onRow:ca=>({onClick:()=>{nn([ca==null?void 0:ca.id])}}),resColumns:ha,rowSelection:Oa})))):Ai.createElement(Ai.Fragment,null,Ai.createElement("div",{className:i0.shijuan},Ai.createElement("div",null,"\u8BD5\u5377\uFF1A"),Ai.createElement("div",{className:i0.name},Ai.createElement("span",null,Be==null?void 0:Be.exercise_name))),Ai.createElement("div",{className:i0.tip},"\u63D0\u793A\uFF1A\u4F7F\u7528\u539F\u8BD5\u5377\u521B\u5EFA\u8865\u8003\uFF0C\u4F1A\u81EA\u52A8\u5C06\u539F\u8BD5\u5377\u5148\u4FDD\u5B58\u4E00\u4EFD\u5230\u8BD5\u5377\u5E93\u4E2D"))),Ai.createElement(Fe.default,{title:"\u63D0\u793A",open:Nt,confirmLoading:!1,centered:!0,okText:"\u8BBE\u7F6E\u89C4\u5219",cancelText:"\u4FEE\u6539\u8BD5\u5377",footer:Ai.createElement("div",null,Ai.createElement(me.ZP,{onClick:()=>{Rt(!1),he.history.push(tn)}},"\u4FEE\u6539\u8BD5\u5377"),Ai.createElement(me.ZP,{type:"primary",onClick:()=>{he.history.push(Xt),Rt(!1)}},"\u8BBE\u7F6E\u89C4\u5219")),onCancel:()=>{Rt(!1)}},Ai.createElement("p",null,"\u8BD5\u5377\u521B\u5EFA\u5B8C\u6210\uFF01\u76EE\u524D\u5904\u4E8E\u672A\u53D1\u5E03\u72B6\u6001\uFF0C\u662F\u5426\u8BBE\u7F6E\u8003\u8BD5\u89C4\u5219\uFF1F")),Ai.createElement(dg.Z,{inPaper:!0,visible:Ka,onCancel:Ba,onOk:bn,renderData:La,modalType:"multiple",type:"examination_bank"}))};var Uf=(0,he.connect)(({exercise:ce,loading:se,classroomList:ae})=>({exercise:ce,loading:se,classroomList:ae}))(Qf),fg=z(89779),Pm=z(67294),Hf=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Wf=({exercise:ce,dispatch:se})=>{const{value:ae}=ce.actionTabs.params||{},[_e,pt]=(0,a.useState)(!1),{categoryId:Ve,coursesId:Dt}=(0,he.useParams)(),et=()=>Hf(void 0,null,function*(){pt(!0);let Be;ae!=null&&ae.is_wrong?Be=yield(0,fg._B)(Ve,{exercise_question_id:ae==null?void 0:ae.question_id}):Be=yield(0,fg.pr)(Ve,{exercise_question_id:ae==null?void 0:ae.question_id}),(Be==null?void 0:Be.status)===0&&(pe.ZP.success(Be==null?void 0:Be.message),se({type:"paperlibrary/setActionTabs",payload:{params:{isUpdateData:!0}}}),se({type:"exercise/editExercise",payload:{categoryId:Ve,coursesId:Dt}}),se({type:"exercise/setActionTabs",payload:{}})),pt(!1)});return Pm.createElement(Fe.default,{title:"\u63D0\u793A",width:600,centered:!0,open:ce.actionTabs.key==="\u6807\u8BB0\u9519\u9898",confirmLoading:_e,onCancel:()=>se({type:"exercise/setActionTabs",payload:{}}),onOk:et},Pm.createElement("p",null,ae!=null&&ae.is_wrong?"\u8BF7\u786E\u8BA4\u662F\u5426\u5C06\u672C\u9053\u8BD5\u9898\u53D6\u6D88\u6807\u8BB0\u4E3A\u9519\u9898\uFF1F":"\u8BF7\u786E\u8BA4\u662F\u5426\u5C06\u672C\u9053\u8BD5\u9898\u6807\u8BB0\u4E3A\u9519\u9898\uFF1F"),ae!=null&&ae.is_wrong?Pm.createElement("p",null,"\u53D6\u6D88\u6807\u8BB0\u540E\u5C06\u6309\u7167\u5B66\u751F\u5B9E\u9645\u7B54\u9898\u60C5\u51B5\u91CD\u65B0\u8BA1\u7B97\u5B66\u751F\u672C\u9053\u8BD5\u9898\u5F97\u5206\u3002"):Pm.createElement("p",null,"\u6807\u8BB0\u540E\u5C06\u91CD\u65B0\u8BA1\u7B97\u5DF2\u4EA4\u5377\u5B66\u751F\u6210\u7EE9\uFF0C\u5C06\u5DF2\u4EA4\u5377\u5B66\u751F\u672C\u9053\u8BD5\u9898\u5F97\u5206\u8C03\u6574\u4E3A",ae==null?void 0:ae.question_score,"\u5206\u3002"))};var Vf=(0,he.connect)(({exercise:ce})=>({exercise:ce}))(Wf),Gf="data:image/png;base64,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agiIEKo2ouqPEBACQqAkAiKEksCpmBAQAkKgagiIEKo2ouqPEBACQqAkAiKEksCpmBAQAkKgagiIEKo2ouqPEBACQqAkAiKEksCpmBAQAkKgagiIEKo2ouqPEBACQqAkAiKEksCpmBAQAkKgagiIEKo2ouqPEBACQqAkAiKEksCpmBAQAkKgagiIEKo2ouqPEBACQqAkAiKEksCpmBAQAkKgagiIEAZzRAcMGNCihn///TcMHDiwRbwihj0E+vbtG/iTCAEhEEKPqLikuQbjTth4441Dnz59wi677BImm2yy8NBDD4Vdd901zDTTTOHUU08Ne++9dzjggAPC9NNP33QVYP/iiy+a4vxktNFGs3r8vOi45JJLhrHGGqsoyeIgJRTdn3/+GX766afw6aefhs8//zx89tlnFv7kk0/CzDPPHE455ZSmOr7//vtw2GGHNcUN6mSvvfayvqf5/vjjj7Dgggta1KuvvpomWfiKK64I5513Xhh55JHD1VdfHXr37t0iz+uvvx7eeOONsN5661na119/3SIPEaOMMkoYY4wxLO3nn38OjMkkk0wSzj333ML8Hvnrr7+GRRZZxE4fe+yxNvH0Mp11fOqpp8IDDzwQ9t9//9CrV68W1T766KNhp512Cssvv3w4/vjjW6QTwRh/9NFH4e233w5vvfVWePPNN8Nff/0VLrzwwvDggw+GlVZaKfTo0cPqeeaZZ8Kll14aZpxxRivDfcH4D0q4T3/55Re7d7iH+OMe4v753//+F7bddttBVaH0LoTAcF2orcNcU1FYruy22mora9/www9vRx5WFN3LL78cNtlkk3DJJZcYSXgn+vXrF1ZccUU/bTqS//LLL2+Ky5/MPvvsTQrsiCOOCE8++WRAEfMAt0dQsCgRyMvl999/DyijkUYaKay66qoeXXi87bbbTAHtsMMOLdLpf2sCEbqSo63HHXdcdu5lUOxbbrml1U+bll566bDKKqt4ctNx3XXXDSussEL47rvvArigtP7++++mPEUnbbWxKH9nxUG62223nVUHSWM4XHvtteHss8/OLoFiR+65557wyCOPWJiPUUcdNTz88MN2vtgY0tpOAAAPGklEQVRiixWO9bLLLmvxI4wwQiDMPUF99BcFj4HCvcs9Oddcc1ld11xzTbjrrrvMgABvynCPejssU+6De3/NNdcM4447bi5F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";const Kf=(ce=[],se=[],ae=[])=>(console.log("---",ce,se,ae),{tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:["\u7B49\u7EA7A","\u7B49\u7EA7B","\u7B49\u7EA7C","\u7B49\u7EA7D","\u7B49\u7EA7E"]}],yAxis:[{type:"value"}],series:[{name:"\u7F3A\u9677",type:"bar",stack:"Ad",color:["#5c9ef7"],emphasis:{focus:"series"},data:ae},{name:"\u6F0F\u6D1E",type:"bar",stack:"Ad",color:["#75c87c"],emphasis:{focus:"series"},data:se},{name:"\u4EE3\u7801\u89C4\u8303\u6027",type:"bar",stack:"Ad",color:["#f3d460"],emphasis:{focus:"series"},data:ce}]}),Yf=(ce=[])=>({dataset:[{source:ce}],tooltip:{show:!0,formatter:function(se){return se.value[2]+":"+se.value[1]+"\u5206"}},xAxis:{splitLine:{lineStyle:{type:"dashed"}},show:!1},yAxis:{splitLine:{lineStyle:{type:"dashed"}}},series:[{name:"scatter",type:"scatter",datasetIndex:0},{name:"line",type:"line",smooth:!0,datasetIndex:1,symbolSize:.1,symbol:"circle",label:{show:!0,fontSize:16},labelLayout:{dx:-20},encode:{label:2,tooltip:1}}]});var Xf=Object.defineProperty,vg=Object.getOwnPropertySymbols,Jf=Object.prototype.hasOwnProperty,qf=Object.prototype.propertyIsEnumerable,pg=(ce,se,ae)=>se in ce?Xf(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,Dm=(ce,se)=>{for(var ae in se||(se={}))Jf.call(se,ae)&&pg(ce,ae,se[ae]);if(vg)for(var ae of vg(se))qf.call(se,ae)&&pg(ce,ae,se[ae]);return ce},Km=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const _f=({shixunHomeworks:ce,loading:se,dispatch:ae})=>{var _e,pt,Ve,Dt;const et=(0,he.useParams)(),[Be,Pe]=(0,a.useState)(Dm(Dm({},{sort_by:"student_id",sort_direction:"desc"}),et)),[Ht,vn]=(0,a.useState)(),[hn,xt]=(0,a.useState)([]);let Gt=(0,a.useRef)();const[Bn,Dn]=(0,a.useState)(1),[Fn,Wt]=(0,a.useState)(!1),[Ut,Yt]=(0,a.useState)(10),[ea,nn]=(0,a.useState)([]);(0,a.useEffect)(()=>{mn()},[]);const zn=[{title:"\u5B66\u53F7",dataIndex:"student_number",sorter:!0,showSorterTooltip:!1,sortOrder:Be.sort_by==="student_number"?Be.sort_direction==="desc"?"descend":"ascend":null},{title:"\u5206\u73ED",dataIndex:"group_course_name"},{title:"\u59D3\u540D",dataIndex:"user_name"},{title:"\u7F3A\u9677",children:[{title:"\u963B\u65AD",dataIndex:"bug",render:Pt=>a.createElement("span",{className:"current"},Pt==null?void 0:Pt.blocker)},{title:"\u4E25\u91CD",dataIndex:"bug",render:Pt=>a.createElement("span",{className:"current"},Pt==null?void 0:Pt.critical)},{title:"\u4E3B\u8981",dataIndex:"bug",render:Pt=>a.createElement("span",{className:"current"},Pt==null?void 0:Pt.major)},{title:"\u6B21\u8981",dataIndex:"bug",render:Pt=>a.createElement("span",{className:"current"},Pt==null?void 0:Pt.minor)},{title:"\u7B49\u7EA7",dataIndex:"bug",sorter:!1,showSorterTooltip:!1,sortOrder:Be.sort_by==="bug"?Be.sort_direction==="desc"?"descend":"ascend":null,render:Pt=>a.createElement("span",{className:"current"},Pt==null?void 0:Pt.grade)}]},{title:"\u6F0F\u6D1E",children:[{title:"\u963B\u65AD",dataIndex:"vulnerability",render:Pt=>a.createElement("span",{className:"current"},Pt==null?void 0:Pt.blocker)},{title:"\u4E25\u91CD",dataIndex:"vulnerability",render:Pt=>a.createElement("span",{className:"current"},Pt==null?void 0:Pt.critical)},{title:"\u4E3B\u8981",dataIndex:"vulnerability",render:Pt=>a.createElement("span",{className:"current"},Pt==null?void 0:Pt.major)},{title:"\u6B21\u8981",dataIndex:"vulnerability",render:Pt=>a.createElement("span",{className:"current"},Pt==null?void 0:Pt.minor)},{title:"\u7B49\u7EA7",dataIndex:"vulnerability",sorter:!1,showSorterTooltip:!1,sortOrder:Be.sort_by==="vulnerability"?Be.sort_direction==="desc"?"descend":"ascend":null,render:Pt=>a.createElement("span",{className:"current"},Pt==null?void 0:Pt.grade)}]},{title:"\u4EE3\u7801\u89C4\u8303\u6027",children:[{title:"\u963B\u65AD",dataIndex:"specification",render:Pt=>a.createElement("span",{className:"current"},Pt==null?void 0:Pt.blocker)},{title:"\u4E25\u91CD",dataIndex:"specification",render:Pt=>a.createElement("span",{className:"current"},Pt==null?void 0:Pt.critical)},{title:"\u4E3B\u8981",dataIndex:"specification",render:Pt=>a.createElement("span",{className:"current"},Pt==null?void 0:Pt.major)},{title:"\u6B21\u8981",dataIndex:"specification",render:Pt=>a.createElement("span",{className:"current"},Pt==null?void 0:Pt.minor)},{title:"\u7B49\u7EA7",dataIndex:"specification",sorter:!1,showSorterTooltip:!1,sortOrder:Be.sort_by==="specification"?Be.sort_direction==="desc"?"descend":"ascend":null,render:Pt=>a.createElement("span",{className:"current"},Pt==null?void 0:Pt.grade)}]},{title:"\u590D\u6742\u4EE3\u7801",dataIndex:"complexity",sorter:!0,showSorterTooltip:!1,sortOrder:Be.sort_by==="complexity"?Be.sort_direction==="desc"?"descend":"ascend":null},{title:"\u4EE3\u7801\u884C\u6570",dataIndex:"total_row_number",sorter:!0,showSorterTooltip:!1,sortOrder:Be.sort_by==="total_row_number"?Be.sort_direction==="desc"?"descend":"ascend":null},{title:"\u8D28\u91CF\u8BC4\u5206",dataIndex:"quality_score",sorter:!0,showSorterTooltip:!1,sortOrder:Be.sort_by==="quality_score"?Be.sort_direction==="desc"?"descend":"ascend":null},{title:"\u64CD\u4F5C",dataIndex:"action",align:"center",render:(Pt,Nt)=>a.createElement("a",{target:"_blank",href:`/classrooms/${et.coursesId}/exercise/${et.categoryId}/analysis/${Nt.id}`,className:"current c-light-primary"},"\u8BE6\u7EC6\u5206\u6790")}];(0,a.useEffect)(()=>(Ht===2&&(Gt.current=setInterval(()=>{mn()},6e4)),()=>{clearTimeout(Gt.current)}),[Ht]);function mn(){return Km(this,null,function*(){const Pt=yield(0,Ce.ZP)(`/api/exercises/${Be.categoryId}/check_status.json`,{method:"GET"});vn(Pt.status),Pt.status!=2&&Pt.status!=-1&&(pa({page:1,limit:10}),clearTimeout(Gt.current))})}function pa(Pt){return Km(this,null,function*(){Dn(Pt==null?void 0:Pt.page),Yt(Pt==null?void 0:Pt.limit);const Nt=yield(0,Ce.ZP)(`/api/exercises/${Be.categoryId}/code_quality_analysis_index.json`,{method:"GET",params:Dm({},Pt)});xt(Nt)})}return console.log("-------",et),a.createElement("section",{style:{paddingBottom:"10px"},className:"minH500 bg-white pt10"},(Ht===0||Ht===1)&&a.createElement("div",null,a.createElement("p",{style:{display:"flex"}},a.createElement("span",{style:{flex:"1"}},a.createElement("label",null,"\u68C0\u6D4B\u65F6\u95F4\uFF1A",hn==null?void 0:hn.created_at)),a.createElement(me.ZP,{onClick:()=>{ae({type:"shixunHomeworks/setActionTabs",payload:{key:"\u8D28\u91CF\u68C0\u6D4B"}})}},"\u91CD\u65B0\u68C0\u6D4B")),a.createElement("p",{style:{display:"flex"}},a.createElement(oe.Z,{style:{width:"100%"}},a.createElement(ve.Z,{flex:"80px"},a.createElement("label",null,"\u5206\u73ED\u60C5\u51B5:")),a.createElement(ve.Z,{flex:"80px"},a.createElement(Se.default,{checked:(ea==null?void 0:ea.length)===0,onChange:Pt=>{Pt.target.checked&&(nn([]),pa({page:Bn,limit:Ut}))},style:{fontSize:"14px"},value:"all"},"\u5168\u90E8")),a.createElement(ve.Z,{flex:"1"},a.createElement(Se.default.Group,{value:ea,onChange:Pt=>Km(void 0,null,function*(){nn([...Pt]),pa({page:Bn,limit:Ut,group_course_ids:Pt})}),style:{width:"100%",fontSize:"14px"}},(_e=hn==null?void 0:hn.course_groups)==null?void 0:_e.map((Pt,Nt)=>a.createElement(Se.default,{style:{fontSize:"14px"},value:Pt==null?void 0:Pt.id},Pt==null?void 0:Pt.name,"(",Pt==null?void 0:Pt.count,")")))))),a.createElement("p",{style:{display:"flex"}},a.createElement("span",null,a.createElement("label",{style:{color:"red"}},"\u6CE8\u610F\uFF1A")),"\u672C\u9875\u4EC5\u663E\u793A\u5168\u90E8\u5DF2\u5B8C\u6210\u68C0\u6D4B\u7684\u5206\u73ED"),a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},a.createElement("div",null,a.createElement("p",{style:{marginLeft:"20px",fontSize:"20px",fontWeight:500}},"\u4EE3\u7801\u7B49\u7EA7\u5206\u6790"),(hn==null?void 0:hn.grade_statistics)&&a.createElement(td.Z,{option:Kf((pt=hn==null?void 0:hn.grade_statistics)==null?void 0:pt.map(Pt=>Pt.specification_count),(Ve=hn==null?void 0:hn.grade_statistics)==null?void 0:Ve.map(Pt=>Pt.vulnerability_count),(Dt=hn==null?void 0:hn.grade_statistics)==null?void 0:Dt.map(Pt=>Pt.bug_count)),style:{height:400,width:600},opts:{renderer:"svg"}})),a.createElement("div",null,a.createElement("p",{style:{marginLeft:"20px",fontSize:"20px",fontWeight:500}},"\u4EE3\u7801\u8D28\u91CF\u5206\u5E03"),(hn==null?void 0:hn.quality_scores)&&a.createElement(td.Z,{option:Yf(hn==null?void 0:hn.quality_scores.map((Pt,Nt)=>[Nt+1,Pt==null?void 0:Pt.quality_score,Pt==null?void 0:Pt.user_name])),style:{height:400,width:600},opts:{renderer:"svg"}}))),a.createElement("div",null,a.createElement("div",{style:{display:"flex"}},a.createElement("p",{style:{marginLeft:"20px",fontSize:"20px",fontWeight:500,flex:"1"}},"\u8BE6\u7EC6\u5217\u8868"),a.createElement(Le.default.Search,{size:"middle",onSearch:Pt=>{pa({page:1,limit:Ut,search:Pt})},style:{width:"300px"},enterButton:"\u641C\u7D22"})),a.createElement(x.default,{columns:zn,dataSource:hn==null?void 0:hn.analysis,bordered:!0,scroll:{x:"calc(800px + 50%)"},pagination:!1,onChange:(Pt,Nt,Rt)=>{Rt.field&&(Be.sort_by=Rt.field),Rt.order||(Be.sort_direction="asc"),Rt.order==="ascend"&&(Be.sort_direction="asc"),Rt.order==="descend"&&(Be.sort_direction="desc"),Rt.order||(Be.sort_direction="asc"),pa(Dm({page:1,limit:Ut},Be))}}),a.createElement(He.Z,{current:Bn,total:hn==null?void 0:hn.total_count,pageSizeOptions:["10","20","50","100","200"],pageSize:Ut,style:{textAlign:"center",marginTop:"20px",marginBottom:"20px"},onChange:(Pt,Nt)=>{Dn(Pt),Yt(Nt),pa({page:Pt,limit:Nt,group_course_ids:ea})}}))),Ht===2&&a.createElement("div",{style:{textAlign:"center",margin:"100px 0px",paddingBottom:"100px"}},a.createElement("img",{src:Gf}),a.createElement("br",null),a.createElement(me.ZP,{type:"primary",style:{width:"120px",height:"40px"},onClick:()=>{mn()}},"\u5237\u65B0\u9875\u9762")),a.createElement(ul,null),a.createElement(Fe.default,{centered:!0,width:1200,title:"\u8BE6\u7EC6\u5206\u6790",destroyOnClose:!0,open:!!Fn,footer:null,onCancel:()=>Wt(!1)},a.createElement("div",{style:{height:500,overflow:"hidden"}},!!Fn&&a.createElement("iframe",{style:{height:"100%",width:"100%"},src:`https://sonar.educoder.net/project/issues?id=${et==null?void 0:et.categoryId}-${Fn==null?void 0:Fn.student_number}&resolved=false`,frameBorder:"0"}))))};var $f=(0,he.connect)(({shixunHomeworks:ce,loading:se})=>({shixunHomeworks:ce,loading:se.effects}))(_f),rs={flex_box_center:"flex_box_center___Mm5wp",flex_space_between:"flex_space_between___Xglxr",flex_box_vertical_center:"flex_box_vertical_center___oLvCy",flex_box_center_end:"flex_box_center_end___IEhG2",flex_box_column:"flex_box_column___TStIz",wrap:"wrap___WfgpQ",control:"control___Uvc1U",btn:"btn___gckHk",customTable:"customTable___fDCPQ",bgH:"bgH___FpdXp",cusModal:"cusModal___KC0OL",imgWrap:"imgWrap_____xpC",img:"img___y1_Tn",iBtn:"iBtn___PezSP",text:"text___JKvO_",no:"no___WXMqt",textP:"textP___E5hyW",video:"video___XvBIh",sys:"sys___wcaty",li:"li___vKMNS",d1:"d1___jR3G0",b1:"b1___xuUNz",es:"es___WFOJ6",listWrap:"listWrap___KKt7_",list:"list___SBQMa",mask:"mask___xkriH",icons:"icons___uLWh_",time:"time___tPYgD"},Xa=z(67294),ev=Object.defineProperty,tv=Object.defineProperties,nv=Object.getOwnPropertyDescriptors,Eg=Object.getOwnPropertySymbols,av=Object.prototype.hasOwnProperty,uv=Object.prototype.propertyIsEnumerable,Ag=(ce,se,ae)=>se in ce?ev(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,bd=(ce,se)=>{for(var ae in se||(se={}))av.call(se,ae)&&Ag(ce,ae,se[ae]);if(Eg)for(var ae of Eg(se))uv.call(se,ae)&&Ag(ce,ae,se[ae]);return ce},rv=(ce,se)=>tv(ce,nv(se)),H0=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const lv=({exercise:ce,dispatch:se,user:ae})=>{var _e;const pt=(0,he.useParams)(),[Ve,Dt]=(0,a.useState)({page:1,limit:20,sort_by:null,sort_direction:null,state:null,audit:null,name:"",keyword:"",course_group_id:[],exercise_id:pt==null?void 0:pt.categoryId}),[et]=fe.default.useForm(),[Be,Pe]=(0,a.useState)(),[Ht,vn]=(0,a.useState)(!1),{exerciseList:hn,commonHeader:xt}=ce,[Gt,Bn]=(0,a.useState)([]),[Dn,Fn]=(0,a.useState)([]),[Wt,Ut]=(0,a.useState)(0),[Yt,ea]=(0,a.useState)(!0),[nn,zn]=(0,a.useState)(!1),[mn,pa]=(0,a.useState)(!1),[Pt,Nt]=(0,a.useState)(!1),[Rt,Xt]=(0,a.useState)(""),cn=(0,a.useRef)(null),tn=[{name:"IP\u5F02\u5E38",id:1},{name:"\u6D4F\u89C8\u5668\u5F02\u5E38",id:2},{name:"\u767B\u5F55\u5F02\u5E38",id:3},{name:"\u5207\u5C4F",id:4},{name:"\u8003\u8BD5\u5EF6\u65F6",id:5},{name:"\u6253\u56DE\u91CD\u505A",id:6},{name:"\u4F7F\u7528\u8003\u8BD5\u89E3\u9501\u7801",id:7},{name:"\u9000\u51FA\u5168\u5C4F",id:8}],[Ja,ha]=(0,a.useState)([]);(0,a.useEffect)(()=>{dt(Ve)},[]),(0,a.useEffect)(()=>(clearInterval(cn.current),(xt==null?void 0:xt.exercise_status)===2&&(cn.current=setInterval(()=>{dt(Ve)},3e4)),()=>{clearInterval(cn.current)}),[xt==null?void 0:xt.exercise_status,Ve]);const dt=Zn=>H0(void 0,null,function*(){const bn=hu().cloneDeep(Zn);console.log(bn,"sendData"),ea(!0),Bn([]);const ca=yield(0,Ce.ZP)(`/api/exercises/${Zn==null?void 0:Zn.exercise_id}/exercise_abnormities.json`,{method:"get",params:bn});ha((ca==null?void 0:ca.error_types)||[]),Fn([]),ea(!1),Ut(ca==null?void 0:ca.total_count),Bn((ca==null?void 0:ca.exercise_abnormites)||[])}),Fa=(Zn,bn)=>{Ve.page=1,Ve[bn]=Zn,Dt(bd({},Ve)),dt(Ve)},ia=Zn=>{Ve.page=1,Ve.keyword=Zn,Dt(bd({},Ve))},wu=()=>{Ve.page=1;const Zn=Object.assign({},et.getFieldValue());Object.keys(Zn).map(function(bn){switch(bn){case"error_type":Zn[bn].includes("all")||!Zn[bn].length?(delete Ve.error_type,et.setFieldsValue({error_type:"all"})):(Ve.error_type=Zn[bn],et.setFieldsValue({error_type:Ve.error_type}));break;case"course_group_id":Zn[bn].includes("all")||!Zn[bn].length?(delete Ve.course_group,et.setFieldsValue({course_group_id:"all"})):(Ve.course_group=Zn[bn],et.setFieldsValue({course_group_id:Ve.course_group}));break}}),Dt(bd({},Ve)),dt(Ve)};(0,a.useEffect)(()=>{document.getElementById("divhe")&&document.getElementById("divhe").scrollHeight>47&&(Pe(47),vn(!0))},[document.getElementById("divhe"),hn]);const Sa=(Zn,bn,ca)=>{Ve.page=Zn==null?void 0:Zn.current,Ve.limit=Zn==null?void 0:Zn.pageSize,ca!=null&&ca.order?(Ve.sort_by=ca==null?void 0:ca.field,Ve.sort_direction=(ca==null?void 0:ca.order)==="ascend"?"asc":"desc"):(Ve.sort_by=null,Ve.sort_direction=null),Dt(bd({},Ve)),dt(Ve)},Hn=[{title:"\u5E8F\u53F7",dataIndex:"number",width:80,render:(Zn,bn,ca)=>Ve.limit*(Ve.page-1)+ca+1},{title:"\u59D3\u540D",dataIndex:"real_name",width:110,ellipsis:{showTitle:!1},render:Zn=>Xa.createElement(Ae.Z,{placement:"bottomLeft",title:Zn},Xa.createElement("span",null,Zn))},{title:"\u5B66\u53F7",dataIndex:"student_id",sorter:!0,width:130,showSorterTooltip:!1,ellipsis:{showTitle:!1},render:Zn=>Xa.createElement(Ae.Z,{placement:"bottomLeft",title:Zn},Xa.createElement("span",null,Zn||"--"))},{title:"\u5206\u73ED",dataIndex:"course_group_name",width:130,showSorterTooltip:!1,ellipsis:{showTitle:!1},render:Zn=>Xa.createElement(Ae.Z,{placement:"bottomLeft",title:Zn},Xa.createElement("span",null,Zn||"--"))},{title:"\u64CD\u4F5C\u65F6\u95F4",width:180,dataIndex:"created_at",ellipsis:{showTitle:!1}},{title:"\u7C7B\u578B",dataIndex:"error_type",width:140,ellipsis:{showTitle:!1}},{title:"\u8BF4\u660E",dataIndex:"description",ellipsis:{showTitle:!1},render:(Zn,bn)=>Xa.createElement(Xa.Fragment,null,Xa.createElement(Ae.Z,{placement:"bottomLeft",title:Zn},Xa.createElement("span",null,Zn||"--")),(bn==null?void 0:bn.user_screen_num)>=50&&Xa.createElement(Ae.Z,{placement:"bottomLeft",title:"\u6CE8\u610F\uFF1A\u8BE5\u5B66\u751F\u7684\u622A\u5C4F\u603B\u6570\u91CF\u5DF2\u8FBE\u523050\u5F20\uFF0C\u9700\u8981\u624B\u52A8\u5220\u9664\u5DF2\u622A\u5C4F\u7684\u56FE\u7247\u4E4B\u540E\u624D\u80FD\u7EE7\u7EED\u81EA\u52A8\u622A\u5C4F"},Xa.createElement("i",{className:"iconfont icon-tishi11 font14 ml5 mr5",style:{color:"#FA6400"}})),(bn==null?void 0:bn.user_screen_num)>0&&Xa.createElement("span",{onClick:()=>Xt(bn==null?void 0:bn.user_id),className:"current c-light-primary ml10"},"\u622A\u5C4F\u8BB0\u5F55"))}],Oa=Zn=>{Fn(Zn)},tu=()=>{zn(!1),dt(Ve)},Ka=Zn=>{const bn=[{title:"\u5BA1\u6838\u65F6\u95F4",dataIndex:"audit_time",width:170,render:(Qn,pn)=>Xa.createElement("span",null,Qn||"--")},{title:"\u5BA1\u6838\u72B6\u6001",dataIndex:"exercise_identity_photo_state",width:110,render:(Qn,pn)=>Xa.createElement(Xa.Fragment,null,Qn==="passed"&&Xa.createElement("span",{style:{color:"#44D7B6"}},"\u5BA1\u6838\u901A\u8FC7"),Qn==="rejected"&&Xa.createElement("span",{style:{color:"#E53333"}},"\u5BA1\u6838\u4E0D\u901A\u8FC7"),Qn==="submitted"&&Xa.createElement("span",{style:{color:"#666666"}},"\u5F85\u5BA1\u6838"))},{title:"\u5BA1\u6838\u610F\u89C1",dataIndex:"comment",render:(Qn,pn)=>Qn?Xa.createElement(Ae.Z,{placement:"bottom",title:Qn},Xa.createElement("span",null,Qn)):"--"},{title:"\u91C7\u96C6\u7167\u7247",dataIndex:"photo_url",width:90,render:(Qn,pn)=>Xa.createElement("span",{className:"current c-light-primary",onClick:()=>{Pa.Z.publish("preview-image",Qn)}},"\u67E5\u770B")}],ca=Fe.default.confirm({icon:null,width:700,className:`${rs.cusModal} custom-modal-divider`,centered:!0,title:Xa.createElement(oe.Z,null,Xa.createElement(ve.Z,{flex:"1"},"\u5BA1\u6838\u8BB0\u5F55"),Xa.createElement(ve.Z,null,Xa.createElement("span",{className:"iconfont icon-guanbi7 font12 current c-grey-c",onClick:()=>ca.destroy()}))),content:Xa.createElement("div",null,Xa.createElement(x.default,{className:rs.customTable,dataSource:[bd({},Zn)],bordered:!1,columns:bn,rowKey:"exercise_identity_photo_id",rowClassName:rs.row,pagination:!1}))})},Ba=Zn=>{var bn,ca;const Qn=Fe.default.confirm({icon:null,className:`${rs.cusModal} custom-modal-divider`,centered:!0,width:((bn=Zn==null?void 0:Zn.play_url)==null?void 0:bn.length)<6?724:744,title:Xa.createElement(oe.Z,null,Xa.createElement(ve.Z,{flex:"1"},"\u89C6\u9891"),Xa.createElement(ve.Z,null,Xa.createElement("span",{className:"iconfont icon-guanbi7 font12 current c-grey-c",onClick:()=>Qn.destroy()}))),content:Xa.createElement("ul",{className:rs.sys},(ca=Zn==null?void 0:Zn.play_url)==null?void 0:ca.map((pn,Tn)=>Xa.createElement("li",{className:rs.li,key:Tn},Xa.createElement("div",{className:rs.d1},Xa.createElement("div",{className:rs.img},Xa.createElement(cc,{src:pn==null?void 0:pn.replace(".m3u8",".flv"),autoPlay:!0})),Xa.createElement("div",{className:rs.btn},Xa.createElement("div",{className:rs.b1},"\u56DE\u653E\u89C6\u9891",Tn+1))))))})},La=Zn=>{const bn=Fe.default.confirm({icon:null,className:`${rs.cusModal} custom-modal-divider`,centered:!0,width:710,title:Xa.createElement(oe.Z,null,Xa.createElement(ve.Z,{flex:"1"},"\u4EBA\u8138\u7167\u7247"),Xa.createElement(ve.Z,null,Xa.createElement("span",{className:"iconfont icon-guanbi7 font12 current c-grey-c",onClick:()=>bn.destroy()}))),content:Xa.createElement(oe.Z,null,Xa.createElement("aside",{className:rs.imgWrap,style:{marginBottom:40}},Xa.createElement("div",{className:rs.img},Xa.createElement("img",{width:326,src:(0,de.Tv)(Zn==null?void 0:Zn.photo_url)}),Xa.createElement("div",{className:rs.textP},"\u91C7\u96C6\u7167\u7247")),Xa.createElement("div",{className:rs.img,style:{marginLeft:20}},Zn!=null&&Zn.identity_url?Xa.createElement("img",{width:326,src:(0,de.Tv)(Zn==null?void 0:Zn.identity_url)}):Xa.createElement("div",{className:rs.no,style:{width:326}},Xa.createElement("span",null,"\u6682\u65E0\u8BC1\u4EF6\u7167\u7247")),Xa.createElement("div",{className:rs.textP},"\u8BC1\u4EF6\u7167\u7247"))))})};return Xa.createElement("section",{className:rs.wrap},Xa.createElement(fe.default,{form:et,onChange:wu,initialValues:{course_group_id:"all"}},Xa.createElement(fe.default.Item,{name:"course_group_id"},Xa.createElement(Se.default.Group,{style:{width:"100%"}},Xa.createElement(oe.Z,null,Xa.createElement(ve.Z,{className:"font14",flex:"80px"},"\u73ED\u7EA7:"),Xa.createElement(ve.Z,{flex:"80px"},Xa.createElement(Se.default,{value:"all"},"\u5168\u90E8")),Xa.createElement(ve.Z,{flex:"1",id:"divhe",style:{height:Be+"px",overflow:"hidden"}},(_e=hn.course_groups)==null?void 0:_e.map((Zn,bn)=>Xa.createElement(Se.default,{key:bn,value:Zn.exercise_group_id,className:"ml0 mr8"},Zn.exercise_group_name,"(",Zn.exercise_group_students,")"))),Ht&&Xa.createElement("span",{onClick:()=>{let Zn=document.getElementById("divhe").scrollHeight;Be>47?Pe(47):Pe(Zn)},style:{color:"rgb(76, 172, 255)",cursor:"pointer",alignItems:"flex-end",display:"flex"}},Be===47?"\u5C55\u5F00":"\u6536\u8D77",Be===47?Xa.createElement(fs.Z,{style:{marginBottom:"3px",marginLeft:"2px"}}):Xa.createElement(ps.Z,{style:{marginBottom:"3px",marginLeft:"2px"}}))))),Xa.createElement(fe.default.Item,{name:"error_type"},Xa.createElement(Se.default.Group,{style:{width:"100%"}},Xa.createElement(oe.Z,null,Xa.createElement(ve.Z,{className:"font14",flex:"80px"},"\u7C7B\u578B:"),Xa.createElement(ve.Z,{flex:"80px"},Xa.createElement(Se.default,{value:"all"},"\u5168\u90E8")),Xa.createElement(ve.Z,{flex:"1",id:"divhe",style:{height:Be+"px",overflow:"hidden"}},Ja==null?void 0:Ja.map((Zn,bn)=>Xa.createElement(Se.default,{key:bn,value:Zn.error_type,className:"ml0 mr8"},Zn.error_type_text,"\uFF08",Zn.count||0,"\uFF09"))))))),Xa.createElement("div",{className:rs.control},Xa.createElement(Le.default.Search,{placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",value:Ve==null?void 0:Ve.keyword,onChange:Zn=>ia(Zn.target.value),onSearch:()=>{Ve.page=1,Dt(bd({},Ve)),dt(Ve)}}),Xa.createElement(me.ZP,{onClick:()=>pa(!0),style:{marginLeft:"auto"},icon:Xa.createElement("i",{className:"iconfont icon-guizeguanli font16"}),type:"link"},"\u622A\u5C4F\u89C4\u5219"),Xa.createElement(me.ZP,{onClick:()=>Nt(!0),icon:Xa.createElement("i",{className:"iconfont icon-chakanshenqingjilu font14"}),type:"link"},"\u64CD\u4F5C\u65E5\u5FD7")),Xa.createElement("div",{className:rs.bgH}),Xa.createElement(x.default,{className:rs.customTable,dataSource:Gt,bordered:!1,columns:Hn,size:"large",rowKey:"exercise_identity_photo_id",rowClassName:rs.row,loading:Yt,onChange:Sa,pagination:{pageSize:Ve.limit,total:Wt,current:Ve.page,showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!1,position:["bottomCenter"],showTotal:Zn=>Xa.createElement("span",{className:"mr10"},"\u5171",Xa.createElement("span",{className:"c-orange"},Zn),"\u6761\u6570\u636E")}}),Xa.createElement(iv,{selectIds:Dn,visible:nn,onCancel:()=>zn(!1),onOk:tu,params:Ve}),Xa.createElement(sv,{visible:Pt,onCancel:()=>Nt(!1)}),Xa.createElement(cv,{visible:Rt,onCancel:()=>Xt(!1)}),Xa.createElement(Fe.default,{centered:!0,title:"\u622A\u5C4F\u89C4\u5219",open:mn,width:900,footer:null,onCancel:()=>{pa(!1)}},Xa.createElement("div",{className:"c-grey-333"},Xa.createElement("div",{className:"mb20 blod"},"1.\u6BCF\u4E2A\u5B66\u751F\u6BCF\u573A\u8003\u8BD5\u6700\u591A\u622A\u5C4F\u7684\u603B\u6570\u91CF\u4E3A50\u5F20\uFF0C\u8D85\u8FC7\u4E4B\u540E\u8BE5\u5B66\u751F\u9000\u51FA\u5168\u5C4F\u4E0D\u518D\u8FDB\u884C\u622A\u5C4F\uFF0C\u8001\u5E08\u624B\u52A8\u5220\u9664\u622A\u5C4F\u56FE\u7247\u4E4B\u540E\u53EF\u518D\u81EA\u52A8\u8FDB\u884C\u622A\u5C4F\uFF1B"),Xa.createElement("div",{className:"mb20 blod"},"2.\u5355\u6B21\u9000\u51FA\u5168\u5C4F\u65F6\u957F\u4E0E\u622A\u5C4F\u6B21\u6570"),Xa.createElement("div",{className:"mb20"},"1\uFF09\u82E5\u5B66\u751F\u30101\u79D2 \u2264 \u9000\u51FA\u5168\u5C4F\u65F6\u957F \u2264 30\u79D2\u3011\uFF0C\u6BCF\u96945\u79D2\u622A\u5C4F\u4E00\u6B21\uFF1B"),Xa.createElement("div",{className:"mb20"},"2\uFF09\u82E5\u5B66\u751F\u301030\u79D2\uFF1C\u9000\u51FA\u5168\u5C4F\u65F6\u957F \u2264 120\u79D2\u3011\uFF0C\u6BCF\u969410\u79D2\u622A\u5C4F\u4E00\u6B21\uFF1B"),Xa.createElement("div",{className:"mb20"},"3\uFF09\u82E5\u5B66\u751F\u3010120\u79D2\uFF1C\u9000\u51FA\u5168\u5C4F\u65F6\u957F \u2264 300\u79D2\u3011\uFF0C\u6BCF\u969430\u79D2\u622A\u5C4F\u4E00\u6B21\uFF1B"),Xa.createElement("div",{className:"mb20"},"4\uFF09\u82E5\u5B66\u751F\u3010300\u79D2\uFF1C\u9000\u51FA\u5168\u5C4F\u65F6\u957F \u2264 720\u79D2\u3011\uFF0C\u6BCF\u969460\u79D2\u622A\u5C4F\u4E00\u6B21\uFF1B"),Xa.createElement("div",{className:"mb20"},"5\uFF09\u82E5\u5B66\u751F\u3010\u9000\u51FA\u5168\u5C4F\u65F6\u957F \uFF1E720\u79D2\u3011\uFF0C\u4E0D\u518D\u8FDB\u884C\u622A\u5C4F\uFF1B"),Xa.createElement("div",{className:"mb20 blod"},"3.\u5B66\u751F\u8FD4\u56DE\u8003\u8BD5\u4E4B\u540E\uFF0C\u4E0D\u518D\u8FDB\u884C\u622A\u5C4F\u3002"))),Xa.createElement(er.Z,null))};var ov=(0,he.connect)(({exercise:ce,user:se})=>({exercise:ce,user:se}))(lv);const iv=({visible:ce,onOk:se,onCancel:ae,selectIds:_e,params:pt})=>{const[Ve,Dt]=(0,a.useState)(!1),[et,Be]=(0,a.useState)({}),[Pe]=fe.default.useForm(),Ht=vn=>H0(void 0,null,function*(){Dt(!0);let hn;ce===!0?hn=yield(0,Ce.ZP)(`/api/exercises/${pt==null?void 0:pt.exercise_id}/batch_audit_identity_photo.json`,{method:"post",body:bd({identity_photo_ids:_e},vn)}):hn=yield(0,Ce.ZP)(`/api/exercises/${pt==null?void 0:pt.exercise_id}/audit_identity_photo.json`,{method:"post",body:bd({identity_photo_id:ce==null?void 0:ce.exercise_identity_photo_id},vn)}),(hn==null?void 0:hn.status)===0&&se(),Dt(!1)});return Xa.createElement(Fe.default,{title:ce!==!0?"\u4EBA\u8138\u8EAB\u4EFD\u5BA1\u6838":"\u6279\u91CF\u5BA1\u6838",open:!!ce,centered:!0,keyboard:!1,width:650,destroyOnClose:!0,onCancel:()=>{ae()},afterClose:()=>{Pe.resetFields(),Be({})},confirmLoading:Ve,onOk:()=>Pe.submit()},Xa.createElement(fe.default,{className:rs.formWrap,form:Pe,labelCol:{span:4},wrapperCol:{span:18},onFinish:Ht,onValuesChange:()=>{Be(bd({},Pe.getFieldsValue()))}},ce!==!0&&Xa.createElement(oe.Z,{style:{marginLeft:28,marginBottom:38}},Xa.createElement(ve.Z,null,"\u91C7\u96C6\u7167\u7247\uFF1A"),Xa.createElement(ve.Z,null,Xa.createElement("aside",{className:rs.imgWrap},Xa.createElement("div",{className:rs.img},Xa.createElement("img",{width:234,src:(0,de.Tv)(ce==null?void 0:ce.photo_url)}),Xa.createElement("div",{onClick:()=>{Pa.Z.publish("preview-image",ce==null?void 0:ce.photo_url)},className:rs.iBtn},"\u9884\u89C8"),Xa.createElement("div",{className:rs.text},"\u91C7\u96C6\u7167\u7247")),Xa.createElement("div",{className:rs.img,style:{marginLeft:20}},ce!=null&&ce.identity_url?Xa.createElement("img",{width:234,src:(0,de.Tv)(ce==null?void 0:ce.identity_url)}):Xa.createElement("div",{className:rs.no,style:{width:326}},Xa.createElement("span",null,"\u6682\u65E0\u8BC1\u4EF6\u7167\u7247")),!!(ce!=null&&ce.identity_url)&&Xa.createElement("div",{onClick:()=>{Pa.Z.publish("preview-image",(0,de.Tv)(ce==null?void 0:ce.identity_url))},className:rs.iBtn},"\u9884\u89C8"),Xa.createElement("div",{className:rs.text},"\u8BC1\u4EF6\u7167\u7247"))))),Xa.createElement(fe.default.Item,{label:"\u5BA1\u6838\u72B6\u6001",name:"state",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5BA1\u6838\u72B6\u6001"}]},Xa.createElement(Ie.ZP.Group,null,Xa.createElement(Ie.ZP,{value:"passed"},"\u5BA1\u6838\u901A\u8FC7"),Xa.createElement(Ie.ZP,{value:"rejected"},"\u5BA1\u6838\u4E0D\u901A\u8FC7"))),(et==null?void 0:et.state)==="rejected"&&Xa.createElement(fe.default.Item,{label:"\u5BA1\u6838\u610F\u89C1",name:"comment",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5BA1\u6838\u610F\u89C1"}]},Xa.createElement(Le.default,{placeholder:"\u5982\uFF1A\u4F60\u7684\u4E2A\u4EBA\u4FE1\u606F\u4E0E\u7167\u7247\u4E0D\u4E00\u81F4\u3002",maxLength:30})),Xa.createElement("div",{style:{color:"#FA6400",paddingLeft:32}},"\u6CE8\u610F\uFF1A\u5BA1\u6838\u901A\u8FC7\u540E\uFF0C\u8BE5\u5B66\u751F\u5728\u672C\u573A\u8003\u8BD5\u7684\u8BA4\u8BC1\u72B6\u6001\u5C06\u66F4\u65B0\u4E3A\u201C\u5BA1\u6838\u901A\u8FC7\u201D\uFF0C\u4E14\u80FD\u591F\u8FDB\u5165\u8003\u8BD5\u3002")))},sv=({visible:ce,onCancel:se})=>{const ae=(0,he.useParams)(),[_e,pt]=(0,a.useState)({page:1,limit:20,exercise_id:ae==null?void 0:ae.categoryId}),[Ve,Dt]=(0,a.useState)(!1),[et,Be]=(0,a.useState)([]),[Pe,Ht]=(0,a.useState)(0);(0,a.useEffect)(()=>{ce&&(_e.page=1,_e.limit=20,pt(bd({},_e)),hn(_e))},[ce]);const vn=[{title:"\u64CD\u4F5C\u4EBA",dataIndex:"teacher_name",ellipsis:{showTitle:!1},render:Gt=>Xa.createElement(Ae.Z,{placement:"bottomLeft",title:Gt},Xa.createElement("span",null,Gt))},{title:"\u64CD\u4F5C\u65F6\u95F4",dataIndex:"created_at",width:200},{title:"\u7C7B\u578B",dataIndex:"operate_type",width:100,render:Gt=>Xa.createElement(Xa.Fragment,null,Gt===0&&Xa.createElement("span",null,"\u5220\u9664"))},{title:"\u5B66\u751F\u59D3\u540D",dataIndex:"student_name",width:140,ellipsis:{showTitle:!1},render:Gt=>Xa.createElement(Ae.Z,{placement:"bottomLeft",title:Gt},Xa.createElement("span",null,Gt))},{title:"\u5B66\u53F7",dataIndex:"student_id",width:160,ellipsis:{showTitle:!1},render:Gt=>Xa.createElement(Ae.Z,{placement:"bottomLeft",title:Gt},Xa.createElement("span",null,Gt))},{title:"\u622A\u5C4F\u65F6\u95F4",dataIndex:"screen_time",width:200},{title:"\u56FE\u7247",dataIndex:"url",width:100,render:Gt=>Xa.createElement("img",{className:"current",onClick:()=>Pa.Z.publish("preview-image",`${ke.Z.API_SERVER}${Gt}`),width:70,height:40,src:`${ke.Z.API_SERVER}${Gt}`})}],hn=Gt=>H0(void 0,null,function*(){const Bn=hu().cloneDeep(Gt);Dt(!0);const Dn=yield(0,Ce.ZP)(`/api/exercises/${Gt==null?void 0:Gt.exercise_id}/exercise_user_screens/screen_actions.json`,{method:"get",params:Bn});Dt(!1),Ht(Dn==null?void 0:Dn.total_count),Be((Dn==null?void 0:Dn.exercise_screen_actions)||[])}),xt=Gt=>{_e.page=Gt==null?void 0:Gt.current,_e.limit=Gt==null?void 0:Gt.pageSize,pt(bd({},_e)),hn(_e)};return Xa.createElement(Fe.default,{title:"\u64CD\u4F5C\u65E5\u5FD7",open:ce,centered:!0,keyboard:!1,width:1064,destroyOnClose:!0,onCancel:()=>{se()},footer:null},Xa.createElement(x.default,{dataSource:et,bordered:!1,columns:vn,size:"large",loading:Ve,locale:{emptyText:Xa.createElement(zt.Z,null)},onChange:xt,pagination:{pageSize:_e.limit,total:Pe,current:_e.page,showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!1,showTotal:Gt=>Xa.createElement("span",{className:"mr10"},"\u5171",Xa.createElement("span",{className:"c-orange"},Gt),"\u6761\u6570\u636E")}}))},cv=({visible:ce,onCancel:se})=>{const ae=(0,he.useParams)(),[_e,pt]=(0,a.useState)({page:1,limit:9999,user_id:ce,error_type:[8],exercise_id:ae==null?void 0:ae.categoryId}),[Ve,Dt]=(0,a.useState)(!1),[et,Be]=(0,a.useState)([]);(0,a.useEffect)(()=>{ce&&Pe(rv(bd({},_e),{user_id:ce}))},[ce]);const Pe=hn=>H0(void 0,null,function*(){const xt=hu().cloneDeep(hn);console.log(xt,"sendData"),Dt(!0);const Gt=yield(0,Ce.ZP)(`/api/exercises/${hn==null?void 0:hn.exercise_id}/exercise_abnormities.json`,{method:"get",params:xt});Dt(!1),Be((Gt==null?void 0:Gt.exercise_abnormites)||[])}),Ht=hn=>H0(void 0,null,function*(){Fe.default.confirm({icon:null,title:"\u63D0\u793A",content:"\u5220\u9664\u540E\u4E0D\u53EF\u6062\u590D\uFF0C\u786E\u8BA4\u5220\u9664\u5417\uFF1F",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>H0(void 0,null,function*(){(yield(0,Ce.ZP)(`/api/exercises/${ae==null?void 0:ae.categoryId}/exercise_user_screens/${hn}.json`,{method:"delete"})).status===0&&(pe.ZP.success("\u5220\u9664\u6210\u529F"),Pe(_e))})})}),vn=(et==null?void 0:et[0])||{};return Xa.createElement(Fe.default,{title:"\u622A\u5C4F\u8BB0\u5F55",open:!!ce,centered:!0,keyboard:!1,width:684,forceRender:!0,destroyOnClose:!0,onCancel:()=>{se()},footer:null},Xa.createElement(jt.Z,{spinning:Ve},Xa.createElement("div",{style:{maxHeight:500}},Xa.createElement("div",{className:"c-grey-333 blod mb10"},vn==null?void 0:vn.real_name," ",vn==null?void 0:vn.student_id),(vn==null?void 0:vn.user_screen_num)>=50&&Xa.createElement("div",{className:"mb10",style:{color:"#FA6400"}},Xa.createElement("i",{className:"iconfont icon-tishi11 mr5"}),Xa.createElement("span",null,"\u6CE8\u610F\uFF1A\u8BE5\u5B66\u751F\u7684\u622A\u5C4F\u603B\u6570\u91CF\u5DF2\u8FBE\u5230 50 \u5F20\uFF0C\u9700\u8981\u624B\u52A8\u5220\u9664\u5DF2\u622A\u5C4F\u7684\u56FE\u7247\u4E4B\u540E\u624D\u80FD\u7EE7\u7EED\u81EA\u52A8\u622A\u5C4F")),et==null?void 0:et.map((hn,xt)=>{var Gt,Bn;return Xa.createElement("div",{key:xt},Xa.createElement("div",{className:"mb10"},Xa.createElement("span",{className:"c-grey-666 mr10"},"\u9000\u51FA\u5168\u5C4F\u65F6\u95F4"),Xa.createElement("span",{style:{display:"inline-block",width:144},className:"c-grey-333"},hn==null?void 0:hn.created_at),Xa.createElement("span",{className:"c-grey-666 ml40"},"\u622A\u5C4F\u6570\u91CF",Xa.createElement("span",{style:{margin:"0 6px",color:"#FA6400"}},(Gt=hn==null?void 0:hn.exercise_user_screens)==null?void 0:Gt.length),"\u5F20")),Xa.createElement("div",{className:rs.listWrap},(Bn=hn==null?void 0:hn.exercise_user_screens)==null?void 0:Bn.map(Dn=>Xa.createElement("div",{key:Dn==null?void 0:Dn.id,className:rs.list},Xa.createElement("img",{src:`${ke.Z.API_SERVER}${Dn==null?void 0:Dn.url}`}),Xa.createElement("div",{className:rs.time},Xa.createElement("span",{className:"c-grey-666 mr10 font12"},"\u622A\u5C4F\u65F6\u95F4"),Xa.createElement("span",{className:"c-grey-333 font12"},Dn==null?void 0:Dn.created_at)),Xa.createElement("div",{className:rs.mask},Xa.createElement("div",{className:rs.icons},Xa.createElement("i",{onClick:()=>Pa.Z.publish("preview-image",`${ke.Z.API_SERVER}${Dn==null?void 0:Dn.url}`),className:"iconfont icon-fangda3 mr15"}),Xa.createElement("i",{onClick:()=>Ht(Dn==null?void 0:Dn.id),className:"iconfont icon-shanchu14"})))))))}))))};var R0={flex_box_center:"flex_box_center___eZU8T",flex_space_between:"flex_space_between___l4Kzs",flex_box_vertical_center:"flex_box_vertical_center___E7NVy",flex_box_center_end:"flex_box_center_end___S0V3_",flex_box_column:"flex_box_column___ONItD",title:"title___rK1ze",export:"export___tng10",startbutton:"startbutton___jWMUv",bg:"bg___rwmJT",tabs:"tabs___SK3e0",moni:"moni___aMCpW",workListTabWrap:"workListTabWrap___dVDh3",workListTabButton:"workListTabButton___PN6ok",ai_review_new:"ai_review_new___MqVZZ",btn_review:"btn_review___g8AFi"},hg=z(66911),dv=z(97917),mv=z(41727),gv=z(12971),fv=z(23377);const vv=ce=>{const se=ae=>{const _e=new Notification(ae.title,{body:ae.message,icon:ae.icon||"/ip.png"});_e.addEventListener("click",()=>{ae.link&&window.open(ae.link,ae.target||"_blank")}),setTimeout(()=>{_e.close()},3e4)};"Notification"in window?Notification.permission==="granted"?se(ce):Notification.permission!=="denied"&&Notification.requestPermission().then(ae=>{ae==="granted"&&se(ce)}):alert("\u5F53\u524D\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u901A\u77E5")};var pv=z(17755),Ev=z(6151),Av=z(58387),hv=z(44694),Fv=z(91640),yv=z(32637),Cv=z(3921),Fg={radio_con:"radio_con___OlJK6",result_con:"result_con___Z4Xwq",result_title:"result_title___uGxkx"},Tc=z(67294),Bv=Object.defineProperty,Sv=Object.defineProperties,Pv=Object.getOwnPropertyDescriptors,yg=Object.getOwnPropertySymbols,Dv=Object.prototype.hasOwnProperty,bv=Object.prototype.propertyIsEnumerable,Cg=(ce,se,ae)=>se in ce?Bv(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,Ym=(ce,se)=>{for(var ae in se||(se={}))Dv.call(se,ae)&&Cg(ce,ae,se[ae]);if(yg)for(var ae of yg(se))bv.call(se,ae)&&Cg(ce,ae,se[ae]);return ce},wv=(ce,se)=>Sv(ce,Pv(se)),Xm=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const xv=({shixunHomeworks:ce,exercise:se,loading:ae,dispatch:_e})=>{var pt,Ve,Dt,et,Be,Pe;const[Ht,vn]=(0,a.useState)({page:1,limit:10}),[hn,xt]=(0,a.useState)(-1),[Gt,Bn]=(0,a.useState)(""),[Dn,Fn]=(0,a.useState)({}),[Wt,Ut]=(0,a.useState)(!1),[Yt,ea]=(0,a.useState)(!1),nn=(0,he.useParams)(),[zn,mn]=(0,a.useState)({}),pa=[{title:"\u5E8F\u53F7",dataIndex:"1",width:80,render:(Ja,ha,dt)=>(Ht.page-1)*Ht.limit+dt+1},{title:"\u59D3\u540D",dataIndex:"user_name",width:180,ellipsis:!0},{title:"\u5B66\u53F7",dataIndex:"student_id",align:"left",sorter:!0,render:Ja=>Ja||"--"},{title:"\u5206\u73ED",dataIndex:"user_group_name",align:"left",render:(Ja,ha)=>Tc.createElement("div",{className:Fg.banding,title:Ja||"--"},Ja||"--")},{title:"\u63D0\u4EA4\u72B6\u6001",dataIndex:"commit_status",align:"center",width:200,render:(Ja,ha)=>Ja===0?Tc.createElement("span",{style:{color:"#666666"}},"\u672A\u5F00\u59CB"):Ja===1?Tc.createElement("span",{style:{color:"#DF3042"}},!ha.is_make_up&&"\u8003\u8BD5\u4E2D",ha.is_make_up&&"\u8003\u8BD5\u4E2D (\u8865\u8003)"):Ja===2?Tc.createElement("span",{style:{color:"#5AB891"}},!ha.is_make_up&&!ha.is_force_commit&&"\u5DF2\u4EA4\u5377",ha.is_make_up&&!ha.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003)",ha.is_make_up&&ha.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003/\u5F3A\u5236)",!ha.is_make_up&&ha.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u5F3A\u5236)"):Tc.createElement("span",{style:{color:"#5AB891"}},!ha.is_make_up&&!ha.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54",ha.is_make_up&&!ha.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003)",ha.is_make_up&&ha.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003/\u5F3A\u5236)",!ha.is_make_up&&ha.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u5F3A\u5236)")},{title:"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",sortDirections:["descend","ascend"],sorter:!0,width:150},{title:"\u8BC4\u9605\u72B6\u6001",width:150,dataIndex:"has_comment",render:(Ja,ha)=>{let dt=new Date().getTime();return zn!=null&&zn.appraise_setting&&(zn!=null&&zn.sealed_review)&&new Date(zn==null?void 0:zn.appraise_end_time).getTime()>dt?"--":!Ja&&ha.review_status?"\u8BC4\u9605\u4E2D":Ja?"\u5DF2\u8BC4\u9605":"\u672A\u8BC4\u9605"}},{title:"\u667A\u80FD\u8BC4\u9605\u7ED3\u679C",width:150,dataIndex:"success_status",render:Ja=>Ja===1?Tc.createElement("span",{className:"c-green"},"\u6210\u529F"):Tc.createElement("span",{className:"c-red"},"\u5931\u8D25")}].filter(Ja=>!!Ja);(0,a.useEffect)(()=>{var Ja,ha;((Ja=se.actionTabs)==null?void 0:Ja.key)==="\u667A\u80FD\u8BC4\u9605\u7ED3\u679C"&&(xt((ha=se.actionTabs)==null?void 0:ha.status),Pt())},[(pt=se.actionTabs)==null?void 0:pt.key]),(0,a.useEffect)(()=>{var Ja;((Ja=se.actionTabs)==null?void 0:Ja.key)==="\u667A\u80FD\u8BC4\u9605\u7ED3\u679C"&&hn!=null&&Xt(1,10)},[hn]);const Pt=()=>Xm(void 0,null,function*(){const Ja=yield(0,Ce.ZP)(`/api/exercises/${nn.categoryId}/header_info.json`,{method:"get"});(Ja==null?void 0:Ja.status)===0&&mn((Ja==null?void 0:Ja.data)||{})}),Nt=Ja=>{Ht.keyword=Ja,Ht.page=1,vn(Ym({},Ht)),Rt(Ht)},Rt=Ja=>Xm(void 0,null,function*(){var ha,dt;ea(!0);const Fa=yield(0,Ce.ZP)(`/api/exercise_resubmits/${(ha=se.actionTabs)==null?void 0:ha.id}/resubmit_student_list.json`,{method:"get",params:wv(Ym({},Ja),{success_status:hn!=-1?[hn]:null,exercise_id:nn==null?void 0:nn.categoryId,exercise_question_id:(dt=se.actionTabs)==null?void 0:dt.questionId})});(Fa==null?void 0:Fa.status)===0&&Fn(Fa||{}),ea(!1)}),Xt=(Ja,ha)=>{Ht.page=Ja,Ht.limit=ha,vn(Ym({},Ht)),Rt(Ht)},cn=()=>Xm(void 0,null,function*(){var Ja,ha,dt,Fa;if(hn==1&&((Ja=Dn==null?void 0:Dn.success_status)==null?void 0:Ja[1].count)==0||hn==2&&((ha=Dn==null?void 0:Dn.success_status)==null?void 0:ha[0].count)==0)return pe.ZP.warning("\u65E0\u53EF\u8BC4\u9605\u7684\u4F5C\u4E1A");Ut(!0);const ia=yield(0,Ce.ZP)("/api/exercise_resubmits/resubmit.json",{method:"post",body:{exercise_id:nn==null?void 0:nn.categoryId,exercise_users_ids:Dn==null?void 0:Dn.exercise_users_ids,exercise_question_id:(dt=se.actionTabs)==null?void 0:dt.questionId}});(ia==null?void 0:ia.status)===0&&(tn(),(Fa=se.actionTabs)==null||Fa.onOK()),Ut(!1)}),tn=()=>{_e({type:"exercise/setActionTabs",payload:{key:""}}),Bn(""),xt(null)};return Tc.createElement(Fe.default,{width:1150,bodyStyle:{maxHeight:"calc(100vh - 200px)",overflowY:"auto"},centered:!0,title:"\u667A\u80FD\u8BC4\u9605\u7ED3\u679C",open:((Ve=se.actionTabs)==null?void 0:Ve.key)==="\u667A\u80FD\u8BC4\u9605\u7ED3\u679C",destroyOnClose:!0,confirmLoading:Wt,onCancel:()=>tn(),okText:"\u7ACB\u5373\u667A\u80FD\u8BC4\u9605",onOk:()=>cn()},Tc.createElement("div",{className:Fg.radio_con},Tc.createElement("div",null,Tc.createElement("span",{className:"mr20"},"\u667A\u80FD\u8BC4\u9605\u7ED3\u679C"),Tc.createElement(Ie.ZP.Group,{onChange:Ja=>{xt(Ja.target.value)},value:hn,options:[{label:"\u5168\u90E8",value:-1,style:{marginRight:25,color:"#000"}},{label:`\u6210\u529F\uFF08${((Dt=Dn==null?void 0:Dn.success_status)==null?void 0:Dt[1].count)||0}\uFF09`,value:1,style:{marginRight:25,color:"#000"}},{label:`\u5931\u8D25\uFF08${((et=Dn==null?void 0:Dn.success_status)==null?void 0:et[0].count)||0}\uFF09`,value:0,style:{marginRight:25,color:"#000"}}]}))),Tc.createElement("div",{className:"flex justify-between item-center mb10"},Tc.createElement("div",{style:{color:"#333"}},"\u667A\u80FD\u8BC4\u9605\u6210\u529F",Tc.createElement("span",{style:{color:"#37AD83",margin:"0 2px"}},((Be=Dn==null?void 0:Dn.success_status)==null?void 0:Be[1].count)||0),"\u4EBA\uFF0C\u5931\u8D25",Tc.createElement("span",{style:{color:"#E30000",margin:"0 2px"}},((Pe=Dn==null?void 0:Dn.success_status)==null?void 0:Pe[0].count)||0),"\u4EBA"),Tc.createElement(Le.default.Search,{style:{width:400},size:"large",placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",value:Gt,onChange:Ja=>Bn(Ja.target.value),onSearch:Nt})),Tc.createElement(x.default,{loading:Yt,dataSource:(Dn==null?void 0:Dn.data)||[],columns:pa,pagination:{current:Ht.page,hideOnSinglePage:!0,showQuickJumper:!0,showSizeChanger:!0,pageSize:Ht.limit,className:"mb0",pageSizeOptions:["10","20","50","100","200"],total:(Dn==null?void 0:Dn.count)||0,size:"default",showTotal:de.rU,onChange:Xt},onChange:(Ja,ha,dt)=>{dt!=null&&dt.order?(Ht.sort_by=dt==null?void 0:dt.field,Ht.direction=(dt==null?void 0:dt.order)==="ascend"?"asc":"desc"):(Ht.sort_by=null,Ht.direction=null),Rt(Ht)}}))};var Iv=(0,he.connect)(({shixunHomeworks:ce,exercise:se,loading:ae,user:_e})=>({shixunHomeworks:ce,exercise:se,loading:ae.effects,user:_e}))(xv),y0=z(67294),Lv=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Nv=({exercise:ce,loading:se,dispatch:ae})=>{var _e,pt;const[Ve,Dt]=(0,a.useState)([]),et=(0,he.useParams)(),Be=[{title:"\u65F6\u95F4",dataIndex:"created_at",width:170,ellipsis:!0,render:Ht=>y0.createElement(Ae.Z,{placement:"bottom",title:Ht},y0.createElement("span",{style:{color:"#333"}},Ge()(Ht).format("YYYY-MM-DD HH:mm")))},{title:"\u64CD\u4F5C\u660E\u7EC6",dataIndex:"user_name",width:272,render:(Ht,vn)=>y0.createElement("span",{style:{color:"#333"}},vn==null?void 0:vn.user_name,"\u64CD\u4F5C\u4E86\u667A\u80FD\u8BC4\u9605")},{title:"\u64CD\u4F5C\u7ED3\u679C",dataIndex:"success_count",width:272,render:(Ht,vn)=>(vn==null?void 0:vn.status)=="running"?y0.createElement("span",{style:{color:"#333"}}," ",y0.createElement("span",null,"\u667A\u80FD\u8BC4\u9605\u4E2D\uFF0C\u5F53\u524D\u8FDB\u5EA6")," ",vn==null?void 0:vn.rate):y0.createElement("span",{style:{color:"#333"}},"\u667A\u80FD\u8BC4\u9605\u6210\u529F ",vn==null?void 0:vn.success_count," \u4EBA\uFF0C\u5931\u8D25 ",vn==null?void 0:vn.fail_count," \u4EBA")}];(0,a.useEffect)(()=>{var Ht;((Ht=ce.actionTabs)==null?void 0:Ht.key)==="AI\u8BC4\u9605\u64CD\u4F5C\u8BB0\u5F55"&&Pe()},[(_e=ce.actionTabs)==null?void 0:_e.key]);const Pe=()=>Lv(void 0,null,function*(){var Ht;const vn=yield(0,Ce.ZP)("/api/exercise_resubmits/resubmit_history.json",{method:"get",params:(Ht=ce.actionTabs)==null?void 0:Ht.params});vn.status===0&&Dt(vn==null?void 0:vn.data)});return y0.createElement(Fe.default,{width:800,bodyStyle:{maxHeight:"calc(100vh - 200px)",overflowY:"auto"},centered:!0,title:"\u64CD\u4F5C\u8BB0\u5F55",open:((pt=ce.actionTabs)==null?void 0:pt.key)==="AI\u8BC4\u9605\u64CD\u4F5C\u8BB0\u5F55",destroyOnClose:!0,onCancel:()=>{ae({type:"exercise/setActionTabs",payload:{key:""}})},footer:null},y0.createElement(x.default,{pagination:!1,dataSource:Ve,columns:Be,className:"mb10"}))};var Ov=(0,he.connect)(({exercise:ce,loading:se,user:ae})=>({exercise:ce,loading:se.effects,user:ae}))(Nv),Mv=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())}),Rv=({id:ce,dispatch:se})=>{const[ae,_e]=(0,a.useState)(null);(0,a.useEffect)(()=>{pt()},[]);const pt=()=>Mv(void 0,null,function*(){var Ve,Dt,et,Be,Pe,Ht,vn,hn,xt,Gt,Bn,Dn;const Fn=ce;let Wt;do if(Wt=yield(0,Ce.ZP)("/api/intelligent_imports/get_ai_question_record.json",{method:"get",params:{ai_question_record_id:Fn}}),((Ve=Wt==null?void 0:Wt.data)==null?void 0:Ve.status)===1){_e([(et=(Dt=Wt==null?void 0:Wt.data)==null?void 0:Dt.progress)==null?void 0:et.current_success_count,(Pe=(Be=Wt==null?void 0:Wt.data)==null?void 0:Be.progress)==null?void 0:Pe.total]);break}else if(((Ht=Wt==null?void 0:Wt.data)==null?void 0:Ht.status)===0)console.log("\u8BC6\u522B\u4E2D\uFF0C\u7EE7\u7EED\u8F6E\u8BE2..."),_e([(hn=(vn=Wt==null?void 0:Wt.data)==null?void 0:vn.progress)==null?void 0:hn.current_success_count,(Gt=(xt=Wt==null?void 0:Wt.data)==null?void 0:xt.progress)==null?void 0:Gt.total]),yield new Promise(Ut=>setTimeout(Ut,2e3));else{console.log("\u72B6\u6001\u5F02\u5E38");break}while(((Bn=Wt==null?void 0:Wt.data)==null?void 0:Bn.status)===0);se({type:"exercise/setCommonHeader",payload:{progress:(Dn=Wt==null?void 0:Wt.data)==null?void 0:Dn.progress}})});return a.createElement(a.Fragment,null,ae&&a.createElement(oe.Z,{align:"middle",className:"mr10 ml10"},a.createElement(jt.Z,{className:"mr10",size:"small"}),a.createElement("span",null,"\u8BD5\u9898\u751F\u6210\u4E2D\uFF0C\u751F\u6210\u8FDB\u5EA6\uFF1A",ae[0]," / ",ae[1])))},bm={flex_box_center:"flex_box_center___vzWqI",flex_space_between:"flex_space_between___ft9Bd",flex_box_vertical_center:"flex_box_vertical_center___QAPwj",flex_box_center_end:"flex_box_center_end___qX0M2",flex_box_column:"flex_box_column___awDYy",customModal:"customModal___pYYHM",checking:"checking___GoeHX",content:"content___dNIO5",group:"group___hRNtC",footer:"footer___xOqas"},Bg=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Tv=({exercise:ce,dispatch:se,onOk:ae})=>{const _e=(0,he.useParams)();let[pt,Ve]=(0,a.useState)([]);const[Dt,et]=(0,a.useState)([]),[Be,Pe]=(0,a.useState)(!0),[Ht,vn]=(0,a.useState)(!1);(0,a.useEffect)(()=>{ce.actionTabs.key==="\u63D0\u4EA4\u62A5\u544A"&&hn()},[ce.actionTabs.key]);const hn=()=>Bg(void 0,null,function*(){Pe(!0);const Gt=yield(0,Ce.ZP)(`/api/exercises/${_e==null?void 0:_e.categoryId}/exercise_user/report_setting.json`,{method:"get",params:{id:_e==null?void 0:_e.categoryId}});Gt&&Ve((Gt==null?void 0:Gt.exercise_report_setting)||[]),Pe(!1)}),xt=()=>{se({type:"exercise/setActionTabs",payload:{}})};return a.createElement(Fe.default,{centered:!0,afterClose:()=>{et([]),vn(!1)},title:"\u63D0\u4EA4\u62A5\u544A",open:ce.actionTabs.key==="\u63D0\u4EA4\u62A5\u544A",width:718,onOk:()=>Bg(void 0,null,function*(){var Gt,Bn;console.log("---",pt);let Dn=yield(0,Ce.ZP)(`/api/exercises/${_e==null?void 0:_e.categoryId}/exercise_user/submit_report.json`,{method:"post",body:{exercise_user_id:(Bn=(Gt=ce.actionTabs)==null?void 0:Gt.params)==null?void 0:Bn.exercise_user_id,report_settings:pt}});(Dn==null?void 0:Dn.status)===0&&(pe.ZP.info("\u63D0\u4EA4\u6210\u529F"),se({type:"exercise/setActionTabs",payload:{}}))}),wrapClassName:bm.customModal,onCancel:xt},a.createElement("aside",{className:bm.checking},a.createElement("div",{className:bm.content},a.createElement("div",{className:bm.group},a.createElement("p",null,"\u63D0\u4EA4\u8BD5\u5377\u540E\uFF0C\u5B9E\u9A8C\u62A5\u544A\u7531\u7CFB\u7EDF\u81EA\u52A8\u751F\u6210\uFF0C\u4F60\u53EA\u9700\u8865\u5145\u4EE5\u4E0B\u4FE1\u606F\u5373\u53EF\u3002")),pt==null?void 0:pt.map(Gt=>a.createElement("div",{style:{height:40,display:"flex",alignItems:"center",padding:"0px 10px",marginTop:10}},a.createElement("label",{style:{width:100,textAlign:"end"}},a.createElement("span",{style:{color:"red"}},"*"),Gt==null?void 0:Gt.name,"\uFF1A"),a.createElement(Le.default,{size:"large",style:{flex:1},defaultValue:Gt.content,onChange:Bn=>{Gt.content=Bn.target.value,Ve(pt)}}))))))};var kv=(0,he.connect)(({exercise:ce})=>({exercise:ce}))(Tv),jv={flex_box_center:"flex_box_center___CtxaX",flex_space_between:"flex_space_between___H8TAS",flex_box_vertical_center:"flex_box_vertical_center___PLMI8",flex_box_center_end:"flex_box_center_end___iyzvs",flex_box_column:"flex_box_column___ZxWqW"},ls={head:"head___HSGEG",title:"title___mOmk5",tubiao:"tubiao___d3Z7M",tb_title:"tb_title___lYUyV",pie_style:"pie_style___FF0jM",legend:"legend___cE3z0",legend_item:"legend_item___EA_f6",legend_item_color:"legend_item_color___c2MWd",legend_item_text:"legend_item_text___qP0WY",line:"line___PaqB8",bar_style:"bar_style___cD5xa",tubiao2:"tubiao2___lb8xS",FormCheckBoxDom:"FormCheckBoxDom___PmqdD",content:"content___rjToM",data_overview:"data_overview___CN6QO",data_overview_item:"data_overview_item___lROWX",num:"num___VUb3K",text:"text___QneBV",accuracySetting:"accuracySetting___oIsbl"},Jm={mymodal:"mymodal___lPHLC",previewModal:"previewModal___kC9MS"},zd=z(67294),zv=Object.defineProperty,Zv=Object.defineProperties,Qv=Object.getOwnPropertyDescriptors,Sg=Object.getOwnPropertySymbols,Uv=Object.prototype.hasOwnProperty,Hv=Object.prototype.propertyIsEnumerable,Pg=(ce,se,ae)=>se in ce?zv(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,W0=(ce,se)=>{for(var ae in se||(se={}))Uv.call(se,ae)&&Pg(ce,ae,se[ae]);if(Sg)for(var ae of Sg(se))Hv.call(se,ae)&&Pg(ce,ae,se[ae]);return ce},V0=(ce,se)=>Zv(ce,Qv(se));const{RangePicker:Wv}=Aa.default,Vv=({exercise:ce,dispatch:se,handleOnComplete:ae})=>{var _e,pt,Ve,Dt,et;const{actionTabs:Be={},course_groups:Pe=[]}=ce,Ht=(0,he.useParams)(),[,vn,hn,xt]=(0,sn.U)(ne.FN,{exercise_id:Ht==null?void 0:Ht.categoryId}),[Gt,Bn]=(0,a.useState)({page:1,limit:10,exercise_group_id:((_e=Be==null?void 0:Be.data)==null?void 0:_e.exercise_group_id)||"all",keyword:"",status:((pt=Be==null?void 0:Be.data)==null?void 0:pt.status)!==void 0?(Ve=Be==null?void 0:Be.data)==null?void 0:Ve.status:""}),Dn={\u672A\u5F00\u59CB:"#A4AEB6",\u5DF2\u5B8C\u6210:"#16A341",\u90E8\u5206\u5B8C\u6210:"#165DFF"},Fn={0:"\u672A\u5F00\u59CB",1:"\u5DF2\u5B8C\u6210",2:"\u90E8\u5206\u5B8C\u6210"},Wt=()=>{se({type:"exercise/setActionTabs",payload:{key:""}})};return(0,a.useEffect)(()=>{Be!=null&&Be.data&&hn(V0(W0({},Gt),{exercise_group_id:(Gt==null?void 0:Gt.exercise_group_id)=="all"?"":Gt==null?void 0:Gt.exercise_group_id,exercise_id:Ht==null?void 0:Ht.categoryId}))},[Be==null?void 0:Be.data,Gt]),zd.createElement(Fe.default,{centered:!0,title:Be==null?void 0:Be.key,open:(Be==null?void 0:Be.key)==="\u9519\u9898\u5DE9\u56FA\u8BE6\u60C5",width:1100,maskClosable:!1,destroyOnClose:!0,footer:null,onCancel:Wt,className:Jm.mymodal},zd.createElement("div",{className:"flex item-center justify-between"},zd.createElement("div",null,zd.createElement(ft.default,{style:{width:140},value:Gt==null?void 0:Gt.status,onChange:Ut=>{Bn(V0(W0({},Gt),{status:Ut}))},options:[{label:"\u5168\u90E8\u72B6\u6001",value:""},{label:"\u672A\u5F00\u59CB",value:0},{label:"\u5DF2\u5B8C\u6210",value:1},{label:"\u90E8\u5206\u5B8C\u6210",value:2}]}),zd.createElement(ft.default,{style:{width:160,marginLeft:20},mode:"multiple",maxTagCount:"responsive",value:Gt==null?void 0:Gt.exercise_group_id,onChange:Ut=>{console.log(Ut);let Yt=[...Ut];Yt.length===0&&(Yt=["all"]),Yt.includes("all")&&Yt.length>1&&(Yt[Yt.length-1]=="all"?Yt=["all"]:Yt=Yt.filter(ea=>ea!=="all")),Bn(V0(W0({},Gt),{exercise_group_id:Yt}))},filterOption:(Ut,Yt)=>Yt.label.indexOf(Ut.toLowerCase())>=0,options:[{label:"\u5168\u90E8\u73ED\u7EA7",value:"all"},...Pe.map(Ut=>({label:Ut==null?void 0:Ut.exercise_group_name,value:Ut==null?void 0:Ut.exercise_group_id}))]}),zd.createElement(Wv,{size:"large",style:{width:315,marginLeft:20},placeholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"],allowClear:!0,showTime:{format:"HH:mm",defaultValue:[Ge()((0,de.U6)(),"HH:mm"),Ge()((0,de.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",onChange:(Ut,Yt)=>{Bn(V0(W0({},Gt),{start_time:Yt[0],end_time:Yt[1]}))}})),zd.createElement(Hr.t7,{style:{width:230},placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u5B66\u53F7\u641C\u7D22",onChange:Ut=>{Bn(V0(W0({},Gt),{keyword:Ut}))}})),zd.createElement(x.default,{className:"mt10",dataSource:((Dt=xt==null?void 0:xt.data)==null?void 0:Dt.list)||[],scroll:{y:500},loading:vn,columns:[{title:"\u5E8F\u53F7",dataIndex:"index",width:60,render:(Ut,Yt,ea)=>`${((Gt==null?void 0:Gt.page)-1)*10+ea+1}`},{title:"\u59D3\u540D",dataIndex:"name"},{title:"\u5B66\u53F7",dataIndex:"student_id"},{title:"\u73ED\u7EA7",dataIndex:"course_group_name",render:Ut=>Ut||"\u672A\u5206\u73ED"},{title:"\u9519\u9898\u6570\u91CF",dataIndex:"wrong_size",render:Ut=>Ut||0},{title:"\u72B6\u6001",dataIndex:"status",render:Ut=>zd.createElement("span",{style:{color:Dn[Ut]}},Fn[Ut])},{title:"\u5B8C\u6210\u65F6\u95F4",dataIndex:"end_at",render:Ut=>Ut?Ge()(Ut).format("YYYY-MM-DD HH:mm:ss"):"--"}],pagination:{current:Gt.page,pageSize:Gt==null?void 0:Gt.limit,onChange:(Ut,Yt)=>{Bn(V0(W0({},Gt),{page:Ut,limit:Yt}))},total:((et=xt==null?void 0:xt.data)==null?void 0:et.size)||0,showTotal:Ut=>zd.createElement("span",{className:"font12 c-666"},"\u5171",zd.createElement("span",{style:{color:"#3061D0"}},Ut),"\u6761\u6570\u636E")}}))};var Gv=(0,he.connect)(({exercise:ce})=>({exercise:ce}))(Vv),Sc=z(67294),Kv=Object.defineProperty,Yv=Object.defineProperties,Xv=Object.getOwnPropertyDescriptors,Dg=Object.getOwnPropertySymbols,Jv=Object.prototype.hasOwnProperty,qv=Object.prototype.propertyIsEnumerable,bg=(ce,se,ae)=>se in ce?Kv(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,im=(ce,se)=>{for(var ae in se||(se={}))Jv.call(se,ae)&&bg(ce,ae,se[ae]);if(Dg)for(var ae of Dg(se))qv.call(se,ae)&&bg(ce,ae,se[ae]);return ce},sm=(ce,se)=>Yv(ce,Xv(se));const _v=(ce="")=>{var se,ae;const _e=document.createElement("html");return _e.innerHTML=(0,Ee.ZP)(ce),Sc.createElement("span",null,((ae=(se=_e==null?void 0:_e.children)==null?void 0:se[1])==null?void 0:ae.textContent)||(_e==null?void 0:_e.textContent)||"")},{RangePicker:kp}=Aa.default,$v=({exercise:ce,dispatch:se,handleOnComplete:ae})=>{var _e,pt,Ve,Dt,et,Be,Pe,Ht,vn,hn;const{actionTabs:xt={},course_groups:Gt=[]}=ce,Bn=(0,he.useParams)(),[,Dn,Fn,Wt]=(0,sn.U)(ne.OL,{exercise_id:Bn==null?void 0:Bn.categoryId}),[Ut,Yt]=(0,a.useState)({page:1,limit:10,exercise_group_id:((_e=xt==null?void 0:xt.data)==null?void 0:_e.exercise_group_id)||"all",exercise_question_id:(pt=xt==null?void 0:xt.data)==null?void 0:pt.exercise_question_id,keyword:"",status:"",not_complete:((Ve=xt==null?void 0:xt.data)==null?void 0:Ve.not_complete)||!1}),ea={\u672A\u5F00\u59CB:"#A4AEB6",\u5DF2\u5B8C\u6210:"#16A341",\u90E8\u5206\u5B8C\u6210:"#165DFF"},nn=()=>{se({type:"exercise/setActionTabs",payload:{key:""}})};return(0,a.useEffect)(()=>{xt!=null&&xt.data&&Fn(sm(im({},Ut),{exercise_group_id:(Ut==null?void 0:Ut.exercise_group_id)=="all"?"":Ut==null?void 0:Ut.exercise_group_id,exercise_id:Bn==null?void 0:Bn.categoryId}))},[xt==null?void 0:xt.data,Ut]),Sc.createElement(Fe.default,{centered:!0,title:Sc.createElement(Sc.Fragment,null,"\u9519\u9898\u8BE6\u60C5",Sc.createElement("span",{className:"font14 c-grey-666"},"\uFF08",(Dt=xt==null?void 0:xt.data)==null?void 0:Dt.title,"\uFF09"),Sc.createElement(Ae.Z,{title:Sc.createElement(Sc.Fragment,null,"\u9898\u76EE\uFF1A",_v((et=xt==null?void 0:xt.data)==null?void 0:et.question_title),Sc.createElement("br",null),"\u9898\u578B\uFF1A",(Be=xt==null?void 0:xt.data)==null?void 0:Be.question_type,Sc.createElement("br",null),"\u6B63\u786E\u7387\uFF1A",(Pe=xt==null?void 0:xt.data)==null?void 0:Pe.rate,"%",Sc.createElement("br",null))},Sc.createElement("a",{className:"ml10"},"\u8BD5\u9898\u8BE6\u60C5"))),open:(xt==null?void 0:xt.key)==="\u9AD8\u9891\u9519\u9898\u8BE6\u60C5",width:880,maskClosable:!1,destroyOnClose:!0,footer:null,onCancel:nn,className:Jm.mymodal},Sc.createElement("div",{className:"flex item-center justify-between"},Sc.createElement("div",null,Sc.createElement(ft.default,{style:{width:140},value:Ut==null?void 0:Ut.status,onChange:zn=>{Yt(sm(im({},Ut),{status:zn}))},options:[{label:"\u5168\u90E8\u72B6\u6001",value:""},{label:"\u5DF2\u5DE9\u56FA",value:!0},{label:"\u672A\u5DE9\u56FA",value:!1}]}),Sc.createElement(ft.default,{style:{width:160,marginLeft:20},mode:"multiple",maxTagCount:"responsive",value:Ut==null?void 0:Ut.exercise_group_id,onChange:zn=>{console.log(zn);let mn=[...zn];mn.length===0&&(mn=["all"]),mn.includes("all")&&mn.length>1&&(mn[mn.length-1]=="all"?mn=["all"]:mn=mn.filter(pa=>pa!=="all")),Yt(sm(im({},Ut),{exercise_group_id:mn}))},filterOption:(zn,mn)=>mn.label.indexOf(zn.toLowerCase())>=0,options:[{label:"\u5168\u90E8\u73ED\u7EA7",value:"all"},...Gt.map(zn=>({label:zn==null?void 0:zn.exercise_group_name,value:zn==null?void 0:zn.exercise_group_id}))]})),Sc.createElement(Hr.t7,{style:{width:230},placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u5B66\u53F7\u641C\u7D22",onChange:zn=>{Yt(sm(im({},Ut),{keyword:zn}))}})),Sc.createElement(x.default,{className:"mt10",dataSource:((Ht=Wt==null?void 0:Wt.data)==null?void 0:Ht.list)||[],scroll:{y:500},loading:Dn,columns:[{title:"\u5E8F\u53F7",dataIndex:"index",width:60,render:(zn,mn,pa)=>`${((Ut==null?void 0:Ut.page)-1)*10+pa+1}`},{title:"\u59D3\u540D",dataIndex:"name"},{title:"\u5B66\u53F7",dataIndex:"student_id"},{title:"\u73ED\u7EA7",dataIndex:"course_group_name",render:zn=>zn||"\u672A\u5206\u73ED"},((vn=xt==null?void 0:xt.data)==null?void 0:vn.type)==2&&{title:"\u9519\u9898\u6B21\u6570",dataIndex:"wrong_size"},{title:"\u662F\u5426\u5DF2\u5DE9\u56FA",dataIndex:"status",render:zn=>zn?"\u662F":"\u5426"}].filter(zn=>!!zn),pagination:{current:Ut.page,pageSize:Ut==null?void 0:Ut.limit,onChange:(zn,mn)=>{Yt(sm(im({},Ut),{page:zn,limit:mn}))},total:((hn=Wt==null?void 0:Wt.data)==null?void 0:hn.size)||0,showTotal:zn=>Sc.createElement("span",{className:"font12 c-666"},"\u5171",Sc.createElement("span",{style:{color:"#3061D0"}},zn),"\u6761\u6570\u636E")}}))};var ep=(0,he.connect)(({exercise:ce})=>({exercise:ce}))($v),s0=z(16199),$s=z(67294),tp=Object.defineProperty,np=Object.defineProperties,ap=Object.getOwnPropertyDescriptors,wg=Object.getOwnPropertySymbols,up=Object.prototype.hasOwnProperty,rp=Object.prototype.propertyIsEnumerable,xg=(ce,se,ae)=>se in ce?tp(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,cm=(ce,se)=>{for(var ae in se||(se={}))up.call(se,ae)&&xg(ce,ae,se[ae]);if(wg)for(var ae of wg(se))rp.call(se,ae)&&xg(ce,ae,se[ae]);return ce},wm=(ce,se)=>np(ce,ap(se));const{RangePicker:jp}=Aa.default,lp=({exercise:ce,dispatch:se,handleOnComplete:ae})=>{var _e,pt,Ve,Dt,et,Be,Pe;const{actionTabs:Ht={},course_groups:vn=[]}=ce,hn=(0,he.useParams)(),[,xt,Gt,Bn]=(0,sn.U)(ne.Wm,{exercise_id:hn==null?void 0:hn.categoryId}),[Dn,Fn]=(0,a.useState)({page:1,limit:10,keyword:"",status:((_e=Ht==null?void 0:Ht.data)==null?void 0:_e.status)||"",exercise_group_id:((pt=Ht==null?void 0:Ht.data)==null?void 0:pt.exercise_group_id)||"all",question_type:((Ve=Ht==null?void 0:Ht.data)==null?void 0:Ve.question_type)!==void 0?(Dt=Ht==null?void 0:Ht.data)==null?void 0:Dt.question_type:"",exercise_question_id:(et=Ht==null?void 0:Ht.data)==null?void 0:et.exercise_question_id}),[Wt,Ut]=(0,a.useState)(),[Yt,ea]=(0,a.useState)({}),[nn,zn]=(0,a.useState)(!1),mn=[{name:"\u5168\u90E8",value:"all",question_type:""},{name:"\u5355\u9009\u9898",value:"SINGLE",question_type:0},{name:"\u591A\u9009\u9898",value:"MULTIPLE",question_type:1},{name:"\u5224\u65AD\u9898",value:"JUDGMENT",question_type:2},{name:"\u586B\u7A7A\u9898",value:"COMPLETION",question_type:3},{name:"\u7F16\u7A0B\u9898",value:"PROGRAM",question_type:6},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",value:"BPROGRAM",question_type:8}],pa=()=>{se({type:"exercise/setActionTabs",payload:{key:""}})};return(0,a.useEffect)(()=>{console.log(Ht==null?void 0:Ht.data,"actionTabs?.data"),Ht!=null&&Ht.data&&Gt(wm(cm({},Dn),{exercise_group_id:(Dn==null?void 0:Dn.exercise_group_id)=="all"?"":Dn==null?void 0:Dn.exercise_group_id,exercise_id:hn==null?void 0:hn.categoryId}))},[Ht==null?void 0:Ht.data,Dn]),$s.createElement($s.Fragment,null,$s.createElement(Fe.default,{centered:!0,title:Ht==null?void 0:Ht.key,open:(Ht==null?void 0:Ht.key)==="\u63A8\u9001\u8BD5\u9898\u8BE6\u60C5",width:1100,maskClosable:!1,destroyOnClose:!0,footer:null,onCancel:pa,className:Jm.mymodal},$s.createElement("div",{className:"flex item-center justify-between"},$s.createElement("div",null,$s.createElement(ft.default,{style:{width:160},listHeight:200,value:(Dn==null?void 0:Dn.question_type)===0?0:(Dn==null?void 0:Dn.question_type)||"",onChange:Pt=>{console.log(Pt),Fn(wm(cm({},Dn),{question_type:Pt}))}},mn.map(Pt=>$s.createElement(ft.default.Option,{key:Pt.value,value:Pt.question_type},Pt.name)))),$s.createElement(Hr.t7,{style:{width:245},placeholder:"\u8BF7\u8F93\u5165\u8BD5\u9898\u540D\u79F0\u8FDB\u884C\u641C\u7D22",onChange:Pt=>{Fn(wm(cm({},Dn),{keyword:Pt}))}})),$s.createElement(x.default,{className:"mt10",dataSource:((Be=Bn==null?void 0:Bn.data)==null?void 0:Be.list)||[],scroll:{y:500},loading:xt,columns:[{title:"\u5E8F\u53F7",dataIndex:"index",key:"index",width:60,render:(Pt,Nt,Rt)=>`${((Dn==null?void 0:Dn.page)-1)*10+Rt+1}`},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"question_title",width:"60%",key:"name",render:(Pt,Nt,Rt)=>$s.createElement("span",null,$s.createElement(uu.Z,{key:1,showLines:1,showTextOnly:!0,value:Nt==null?void 0:Nt.question_title}))},{title:"\u9898\u578B",dataIndex:"question_type",key:"question_type",render:(Pt,Nt,Rt)=>{var Xt,cn;return(cn=(Xt=mn==null?void 0:mn.filter(tn=>tn.question_type===Pt))==null?void 0:Xt[0])==null?void 0:cn.name}},{title:"\u64CD\u4F5C",dataIndex:"id",key:"item_type",render:(Pt,Nt,Rt)=>$s.createElement("a",{onClick:()=>{var Xt;const cn=((Xt=(0,s0.eS)([cm({},Nt)]))==null?void 0:Xt[0])||{};ea(cn),zn(!0)}},"\u67E5\u770B\u8BE6\u60C5")}],pagination:{current:Dn.page,pageSize:Dn==null?void 0:Dn.limit,onChange:(Pt,Nt)=>{Fn(wm(cm({},Dn),{page:Pt,limit:Nt}))},total:((Pe=Bn==null?void 0:Bn.data)==null?void 0:Pe.size)||0,showTotal:Pt=>$s.createElement("span",{className:"font12 c-666"},"\u5171",$s.createElement("span",{style:{color:"#3061D0"}},Pt),"\u6761\u6570\u636E")}})),$s.createElement(Fe.default,{centered:!0,destroyOnClose:!0,onCancel:()=>{zn(!1)},open:nn,title:"\u9898\u76EE\u8BE6\u60C5",footer:null,bodyStyle:{paddingBottom:25,maxHeight:650},width:1e3},$s.createElement($s.Fragment,null,(Yt==null?void 0:Yt.question_type)===0&&$s.createElement(s0.PQ,{data:Yt}),(Yt==null?void 0:Yt.question_type)===1&&$s.createElement(s0.jM,{data:Yt}),(Yt==null?void 0:Yt.question_type)===2&&$s.createElement(s0.$C,{data:Yt}),(Yt==null?void 0:Yt.question_type)===3&&$s.createElement(s0.P1,{data:Yt}),(Yt==null?void 0:Yt.question_type)===4&&$s.createElement(s0.JE,{data:Yt}),(Yt==null?void 0:Yt.question_type)===6&&$s.createElement(s0.g0,{data:Yt}),(Yt==null?void 0:Yt.question_type)===7&&$s.createElement(s0.rK,{data:Yt}),(Yt==null?void 0:Yt.question_type)===8&&$s.createElement(s0.ZP,{data:Yt}))))};var op=(0,he.connect)(({exercise:ce})=>({exercise:ce}))(lp),ip=Object.defineProperty,sp=Object.defineProperties,cp=Object.getOwnPropertyDescriptors,Ig=Object.getOwnPropertySymbols,dp=Object.prototype.hasOwnProperty,mp=Object.prototype.propertyIsEnumerable,Lg=(ce,se,ae)=>se in ce?ip(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,kc=(ce,se)=>{for(var ae in se||(se={}))dp.call(se,ae)&&Lg(ce,ae,se[ae]);if(Ig)for(var ae of Ig(se))mp.call(se,ae)&&Lg(ce,ae,se[ae]);return ce},wd=(ce,se)=>sp(ce,cp(se)),G0=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const{RangePicker:zp}=Aa.default,gp=({classroomList:ce,exercise:se,dispatch:ae,accuracy:_e,setAccuracy:pt})=>{var Ve,Dt,et,Be,Pe,Ht,vn,hn,xt,Gt,Bn,Dn,Fn,Wt,Ut,Yt,ea,nn,zn,mn,pa,Pt,Nt;const Rt=(0,he.useParams)(),[Xt,cn]=(0,a.useState)(kc(kc({},{page:1,limit:20}),Rt)),[tn,Ja]=(0,a.useState)({exercise_group_id:["all"]}),[ha]=fe.default.useForm(),[dt,Fa]=(0,a.useState)([]),[ia,wu]=(0,a.useState)({}),[Sa,Hn]=(0,a.useState)({}),[Oa,tu]=(0,a.useState)({}),[Ka,Ba]=(0,a.useState)(!1),[La,Zn]=(0,a.useState)(!1),[bn,ca]=(0,a.useState)(_e),Qn={\u672A\u5F00\u59CB:0,\u672A\u5F00\u59CB\u4EBA\u6570:0,\u5DF2\u5B8C\u6210:1,\u5DF2\u5B8C\u6210\u4EBA\u6570:1,\u90E8\u5206\u5B8C\u6210:2,\u90E8\u5206\u5B8C\u6210\u4EBA\u6570:2,\u70B9\u8D5E\u6570:!0,\u70B9\u8E29\u6570:!1},pn={\u5355\u9009\u9898:0,\u591A\u9009\u9898:1,\u5224\u65AD\u9898:2,\u586B\u7A7A\u9898:3,\u7F16\u7A0B\u9898:6,\u7B80\u7B54\u9898:4,\u7EC4\u5408\u9898:7,\u7A0B\u5E8F\u586B\u7A7A\u9898:8},Tn={\u5355\u9009\u9898:"#5A89F1",\u591A\u9009\u9898:"#41A6FF",\u5224\u65AD\u9898:"#2EC25B",\u586B\u7A7A\u9898:"#37CCCC",\u7F16\u7A0B\u9898:"#FB9A77",\u7B80\u7B54\u9898:"#F3E064",\u7EC4\u5408\u9898:"#82D4FF",\u7A0B\u5E8F\u586B\u7A7A\u9898:"#8A71E1"},En={\u672A\u5F00\u59CB:"#FACC16",\u5DF2\u5B8C\u6210:"#5A89F1",\u90E8\u5206\u5B8C\u6210:"#2EC25B"},da={\u5DF2\u5B8C\u6210\u4EBA\u6570:"completed",\u90E8\u5206\u5B8C\u6210\u4EBA\u6570:"partially_completed",\u672A\u5F00\u59CB\u4EBA\u6570:"not_started",\u63A8\u9001\u8BD5\u9898\u603B\u6570:"total",\u70B9\u8D5E\u6570:"like",\u70B9\u8E29\u6570:"dislike"};(0,a.useEffect)(()=>{Ru()},[tn]),(0,a.useEffect)(()=>{Ha()},[]),(0,a.useEffect)(()=>{_e&&ca(_e)},[_e]);const Ha=()=>G0(void 0,null,function*(){var mu,$u,jr;const Eu=yield(0,Ce.ZP)(`/api/exercises/${Xt.categoryId}/header_info.json`,{method:"get"});if((Eu==null?void 0:Eu.status)===0){const wr=[{label:"\u5168\u90E8",value:"all"}];ae({type:"exercise/save",payload:{course_groups:(mu=Eu==null?void 0:Eu.data)==null?void 0:mu.course_groups}}),(jr=($u=Eu==null?void 0:Eu.data)==null?void 0:$u.course_groups)==null||jr.forEach(Va=>{wr.push({label:Va==null?void 0:Va.exercise_group_name,value:Va==null?void 0:Va.exercise_group_id})}),Fa(wr)}}),au=(0,a.useMemo)(()=>{var mu;return a.createElement(td.Z,{option:{tooltip:{trigger:"item",formatter:"{b}: {c} \u4EBA ({d}%)"},legend:!1,series:[{type:"pie",radius:["20%","50%"],avoidLabelOverlap:!0,label:{show:!0,formatter:`{b} {c} \u4EBA + \u5982\u672A\u586B\u5199\uFF0C\u5219\u9ED8\u8BA4\u53EA\u80FD\u8FDB\u5165https://www.educoder.net\uFF08\u5934\u6B4C\u7F51\u9875\uFF09`})))),xo.createElement("div",{className:"ant-form-item",style:{background:"#F6F7F9",padding:"8px 30px",marginTop:"1px"}},xo.createElement(fe.default.Item,{name:"forbid_virtual",valuePropName:"checked",style:{marginBottom:0}},xo.createElement(Se.default,{disabled:Ht},xo.createElement(xo.Fragment,null,xo.createElement("strong",{style:{fontSize:"14px",color:"#000"}},"\u7981\u6B62\u901A\u8FC7\u865A\u62DF\u673A\u53C2\u8003")))))),((0,On.aN)()||((Ve=ce==null?void 0:ce.commonHeader)==null?void 0:Ve.exercise_author))&&!(et!=null&&et.appraise_label)&&xo.createElement(me.ZP,{type:"primary",style:{width:"138px",marginTop:"30px"},size:"large",onClick:()=>{Be.submit()}},"\u4FDD\u5B58")),xo.createElement(oc,null))};var w0=(0,he.connect)(({exercise:ce,loading:se,globalSetting:ae})=>({exercise:ce,loading:se.effects,globalSetting:ae}))(b0),Cs={flex_box_center:"flex_box_center___qXmER",flex_space_between:"flex_space_between___tVYVF",flex_box_vertical_center:"flex_box_vertical_center___uejwW",flex_box_center_end:"flex_box_center_end___l5I61",flex_box_column:"flex_box_column___A8X3f",content:"content___TBbyO",explain:"explain___WwPyv",tabs:"tabs___MlcMY",active:"active___lV1eg",btns:"btns___qovHC",must:"must___vgDa6",popover:"popover___HAX3s",zybzForm:"zybzForm____IvKI",graaytitle:"graaytitle___hkrTg",dataPicker:"dataPicker___T2aBH",examineStatus:"examineStatus___iICIK",contacts:"contacts___Tyh2m",contacts_img:"contacts_img___pfYUb",suc_status:"suc_status___UuTMv",fail_status:"fail_status___nBUzE",bohui:"bohui___lJoSV",upname:"upname___bCjc5",upnames:"upnames___IeX1u",imghover:"imghover___CqN_f"},Cd=z(87725),Go=z(67294),a0=Object.defineProperty,u0=Object.defineProperties,Ei=Object.getOwnPropertyDescriptors,Ko=Object.getOwnPropertySymbols,Rc=Object.prototype.hasOwnProperty,id=Object.prototype.propertyIsEnumerable,r0=(ce,se,ae)=>se in ce?a0(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,x0=(ce,se)=>{for(var ae in se||(se={}))Rc.call(se,ae)&&r0(ce,ae,se[ae]);if(Ko)for(var ae of Ko(se))id.call(se,ae)&&r0(ce,ae,se[ae]);return ce},k0=(ce,se)=>u0(ce,Ei(se)),A0=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const mm="YYYY-MM-DD HH:mm",qi=({shixunHomeworks:ce,user:se,loading:ae,dispatch:_e})=>{const[pt]=fe.default.useForm(),[Ve,Dt]=(0,a.useState)(null),[et,Be]=(0,a.useState)([]),[Pe,Ht]=(0,a.useState)(""),[vn,hn]=(0,a.useState)(!1),[xt,Gt]=(0,a.useState)(!1),Bn=(0,a.useRef)((0,Ta.throttle)(cn=>Nt(cn),1200,{leading:!0,trailing:!0})).current,[Dn,Fn]=(0,a.useState)([]),[Wt,Ut]=(0,a.useState)(!1),Yt=(0,he.useParams)(),ta=(0,a.useRef)(null),nn=(0,a.useRef)(1),[zn,mn]=(0,a.useState)({});(0,a.useEffect)(()=>{Pt()},[]),(0,a.useEffect)(()=>{pa(Wt?"\u8868\u5355\u672A\u4FDD\u5B58":"")},[Wt]);const pa=(cn="")=>{_e({type:"exercise/setActionTabs",payload:{key:cn}})},Pt=()=>A0(void 0,null,function*(){var cn,tn,Ja,ha,dt,Fa,ia,wu,Sa,Hn,Oa,tu,Ka,Ba,La;let Zn=yield(0,Ce.ZP)(`/api/exercises/${Yt.categoryId}/resources_ensure_info.json`,{method:"get"});pt.setFieldsValue(k0(x0({},(cn=Zn==null?void 0:Zn.data)==null?void 0:cn.important_shixun_configs),{times:(Ja=(tn=Zn==null?void 0:Zn.data)==null?void 0:tn.important_shixun_configs)!=null&&Ja.start_time&&((dt=(ha=Zn==null?void 0:Zn.data)==null?void 0:ha.important_shixun_configs)!=null&&dt.end_time)?[Ge()((ia=(Fa=Zn==null?void 0:Zn.data)==null?void 0:Fa.important_shixun_configs)==null?void 0:ia.start_time),Ge()((Sa=(wu=Zn==null?void 0:Zn.data)==null?void 0:wu.important_shixun_configs)==null?void 0:Sa.end_time)]:["",""]}));const{school_id:bn,school_name:ca}=(Hn=Zn==null?void 0:Zn.data)==null?void 0:Hn.important_shixun_configs;Fn([{id:bn,name:ca}]),mn((Oa=Zn==null?void 0:Zn.data)==null?void 0:Oa.important_shixun_configs),Ht((Ka=(tu=Zn==null?void 0:Zn.data)==null?void 0:tu.important_shixun_configs)==null?void 0:Ka.verify_reason),Dt(((La=(Ba=Zn==null?void 0:Zn.data)==null?void 0:Ba.important_shixun_configs)==null?void 0:La.process)||null),Ut(!1)}),Nt=cn=>A0(void 0,null,function*(){Gt(!0),clearTimeout(ta.current),ta.current=setTimeout(()=>A0(void 0,null,function*(){nn.current+=1;const tn=nn.current,Ja=yield _e({type:"account/getSchoolOption",payload:{keyword:cn,limit:10}});Ja.status===0&&(Fn(Ja==null?void 0:Ja.schools),Gt(!1))}),500)}),Rt=cn=>parseInt(cn||"0",10),Xt=(cn,tn)=>{if(tn&&tn.length===2){const[Ja,ha]=tn;if(!Ja||!ha)return Promise.reject(new Error("\u8BF7\u9009\u62E9\u8D77\u59CB\u65F6\u95F4\u548C\u7ED3\u675F\u65F6\u95F4"))}return Promise.resolve()};return Go.createElement("section",null,Go.createElement("div",{style:{padding:"30px 50px"}},Go.createElement(fe.default,{form:pt,layout:"horizontal",onFinish:cn=>A0(void 0,null,function*(){console.log("---",cn);let tn=yield(0,Ce.ZP)(`/api/exercises/${Yt.categoryId}/resources_first_ensure.json`,{method:"post",body:{important_shixun_configs:k0(x0({},cn),{start_time:Ge()(cn==null?void 0:cn.times[0]).format("YYYY-MM-DD HH:mm"),end_time:Ge()(cn==null?void 0:cn.times[1]).format("YYYY-MM-DD HH:mm")})}});(tn==null?void 0:tn.status)===0&&(pe.ZP.info("\u4FEE\u6539\u6210\u529F"),Pt())}),className:Cs.zybzForm,onValuesChange:()=>{Ut(!0)}},Go.createElement("div",{style:{display:"flex",alignItems:"center"}},Go.createElement("div",{style:{color:"#333333",fontSize:"14px",width:"120px",marginRight:"10px",textAlign:"right"}},Go.createElement("span",{className:Cs.must},"*"),"\u4FDD\u969C\u6807\u8BC6"),Go.createElement(fe.default.Item,{label:"",name:"identifier",style:{width:"100%"},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4FDD\u969C\u6807\u8BC6"}]},Go.createElement(Le.default,{disabled:!0,minLength:4,maxLength:30,size:"large",showCount:!0,placeholder:"\u8BF7\u8F93\u5165\u4FDD\u969C\u6807\u8BC6"}))),Go.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:"20px"}},Go.createElement("div",{style:{color:"#333333",fontSize:"14px",width:"120px",marginRight:"10px",textAlign:"right"}},Go.createElement("span",{className:Cs.must},"*"),"\u9700\u8981\u4FDD\u969C\u7684\u5355\u4F4D"),Go.createElement(fe.default.Item,{label:"",name:"school_id",style:{width:"100%"},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u9700\u8981\u4FDD\u969C\u7684\u5355\u4F4D"}]},Go.createElement(ft.default,{showSearch:!0,size:"large",loading:xt,listHeight:200,placeholder:"\u8BF7\u9009\u62E9\u9700\u8981\u4FDD\u969C\u7684\u5355\u4F4D",filterOption:!1,onSearch:cn=>{Nt(cn)}},Dn.map(cn=>Go.createElement(ft.default.Option,{value:cn.id,key:cn.id},cn.name))))),Go.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:"20px"}},Go.createElement("div",{style:{color:"#333333",fontSize:"14px",width:"120px",marginRight:"10px",textAlign:"right"}},Go.createElement("span",{className:Cs.must},"*"),"\u4FDD\u969C\u65F6\u95F4"),Go.createElement(fe.default.Item,{label:"",name:"times",style:{width:"100%"},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4\u548C\u7ED3\u675F\u65F6\u95F4"},{validator:Xt}]},Go.createElement(Aa.default.RangePicker,{disabledDate:cn=>cn&&cn{if(cn&&cn[0]&&cn[1]){const tn=cn[0].isBefore(Ge()())?Ge()():cn[0];pt.setFieldValue("times",[tn,cn[1]])}else pt.setFieldValue("times",cn)}}))),Go.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:"20px"}},Go.createElement("div",{style:{color:"#333333",fontSize:"14px",width:"120px",marginRight:"10px",textAlign:"right"}},Go.createElement("span",{className:Cs.must},"*"),"\u4FDD\u969C\u4EBA\u6570"),Go.createElement(fe.default.Item,{label:"",name:"people_number",style:{width:"100%"},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4FDD\u969C\u4EBA\u6570"}]},Go.createElement(Re.Z,{size:"large",parser:Rt,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u4FDD\u969C\u4EBA\u6570",min:1})))),Go.createElement("div",{className:`${Cs.examineStatus}`},Ve>=1&&Go.createElement("div",null," ",Go.createElement(Cd.Z,{className:Cs.suc_status})," \u5B9E\u9A8C\u8D44\u6E90\u4F18\u5148\u4FDD\u969C\u7533\u8BF7\u6210\u529F\uFF0C\u5E73\u53F0\u7BA1\u7406\u5458\u5BA1\u6838\u4E2D"),Ve>=2&&Ve!=3&&Go.createElement("div",null," ",Go.createElement(Cd.Z,{className:Cs.suc_status})," \u5E73\u53F0\u7BA1\u7406\u5458\u5BA1\u6838\u901A\u8FC7\uFF0C\u7CFB\u7EDF\u8D44\u6E90\u5206\u914D\u4E2D"),Ve==3&&Go.createElement("div",null," ",Go.createElement(Po.Z,{className:Cs.fail_status}),"\u5E73\u53F0\u7BA1\u7406\u5458\u5BA1\u6838\u9A73\u56DE\uFF0C\u9A73\u56DE\u539F\u56E0: ( ",Go.createElement("span",{title:Pe,className:Cs.bohui},Pe),") \u5982\u6709\u95EE\u9898\u8BF7\u8054\u7CFB",Go.createElement("span",{className:Cs.contacts},Go.createElement("span",null,"\u5E73\u53F0\u8FD0\u8425\u4EBA\u5458")," ",Go.createElement("div",{className:Cs.contacts_img}))),Ve>=4&&Ve!=5&&Ve!=7&&Go.createElement("div",null," ",Go.createElement(Cd.Z,{className:Cs.suc_status})," \u7CFB\u7EDF\u8D44\u6E90\u5206\u914D\u5B8C\u6210\uFF0C\u5B9E\u9A8C\u8D44\u6E90\u4FDD\u969C\u4E2D"),(Ve==5||Ve==7)&&Go.createElement("div",null," ",Go.createElement(Po.Z,{className:Cs.fail_status}),"\u7CFB\u7EDF\u8D44\u6E90\u5206\u914D\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB",Go.createElement("span",{className:Cs.contacts},Go.createElement("span",null,"\u5E73\u53F0\u8FD0\u8425\u4EBA\u5458")," ",Go.createElement("div",{className:Cs.contacts_img}))),Ve>5&&Go.createElement("div",null," ",Go.createElement(Cd.Z,{className:Cs.suc_status})," \u5B9E\u9A8C\u8D44\u6E90\u4FDD\u969C\u5DF2\u7ED3\u675F")),Go.createElement(me.ZP,{type:"primary",style:{width:"138px",marginTop:"30px"},size:"large",onClick:()=>pt.submit()},"\u4FDD\u5B58")))};var ui=(0,he.connect)(({shixunHomeworks:ce,loading:se,user:ae})=>({shixunHomeworks:ce,loading:se.effects,user:ae}))(qi),Ii=z(35059),Qs=z(30264),yc=z(1083),Y0=z.p+"static/imagetest.6bf8d539.png",Fl=z(67294),Om=Object.defineProperty,Mm=Object.defineProperties,gm=Object.getOwnPropertyDescriptors,X0=Object.getOwnPropertySymbols,Rm=Object.prototype.hasOwnProperty,Tm=Object.prototype.propertyIsEnumerable,fm=(ce,se,ae)=>se in ce?Om(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,I0=(ce,se)=>{for(var ae in se||(se={}))Rm.call(se,ae)&&fm(ce,ae,se[ae]);if(X0)for(var ae of X0(se))Tm.call(se,ae)&&fm(ce,ae,se[ae]);return ce},J0=(ce,se)=>Mm(ce,gm(se)),km=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const _m="YYYY-MM-DD HH:mm",jm=({shixunHomeworks:ce,user:se,exercise:ae,loading:_e,dispatch:pt})=>{var Ve,Dt,et,Be,Pe,Ht;const[vn]=fe.default.useForm(),[hn,xt]=(0,a.useState)(null),[Gt,Bn]=(0,a.useState)([]),[Dn,Fn]=(0,a.useState)(""),[Wt,Ut]=(0,a.useState)(!1),[Yt,ta]=(0,a.useState)(!1),[nn,zn]=(0,a.useState)(!1),[mn,pa]=(0,a.useState)([]),[Pt,Nt]=(0,a.useState)(!1),Rt=(0,he.useParams)(),Xt=(0,a.useRef)(null),cn=(0,a.useRef)(1),[tn,Ja]=(0,a.useState)({}),[ha,dt]=(0,a.useState)({}),[Fa,ia]=(0,a.useState)(),[wu,Sa]=(0,a.useState)(),[Hn,Oa]=(0,a.useState)(),[tu,Ka]=(0,a.useState)(!1),{workSetting:Ba,commonHeader:La}=ae;(0,a.useEffect)(()=>{Zn(Pt?"\u8868\u5355\u672A\u4FDD\u5B58":"")},[Pt]);const Zn=(bn="")=>{pt({type:"exercise/setActionTabs",payload:{key:bn}})};return(0,a.useEffect)(()=>{var bn,ca,Qn,pn,Tn,En,da,Ha,au,Ya,Cr,Zu,sa,Ru,mr,gl,Tl;if(Ba!=null&&Ba.exercise){let mu=(Qn=(ca=(bn=Ba==null?void 0:Ba.exercise)==null?void 0:bn.exercise_report_template)==null?void 0:ca.filter($u=>$u==null?void 0:$u.checked))==null?void 0:Qn.map($u=>$u==null?void 0:$u.name);vn.setFieldsValue({enable_report_setting:(pn=Ba==null?void 0:Ba.exercise)==null?void 0:pn.enable_report_setting,exercise_report_template:(Tn=Ba==null?void 0:Ba.exercise)==null?void 0:Tn.report_template_name,exercise_report_templates:mu,enable_student_view:(En=Ba==null?void 0:Ba.exercise)==null?void 0:En.enable_student_view,number:(da=Ba==null?void 0:Ba.exercise)==null?void 0:da.number,report_type:(Ha=Ba==null?void 0:Ba.exercise)==null?void 0:Ha.report_type}),Ja({enable_report_setting:(au=Ba==null?void 0:Ba.exercise)==null?void 0:au.enable_report_setting,exercise_report_template:(Ya=Ba==null?void 0:Ba.exercise)==null?void 0:Ya.report_template_name,exercise_report_templates:mu,enable_student_view:(Cr=Ba==null?void 0:Ba.exercise)==null?void 0:Cr.enable_student_view,number:(Zu=Ba==null?void 0:Ba.exercise)==null?void 0:Zu.number,report_type:(sa=Ba==null?void 0:Ba.exercise)==null?void 0:sa.report_type}),ia({container_id:(Ru=Ba==null?void 0:Ba.exercise)==null?void 0:Ru.sign_attachment_id,url:(mr=Ba==null?void 0:Ba.exercise)==null?void 0:mr.sign_attachment_url}),Sa({container_id:(gl=Ba==null?void 0:Ba.exercise)==null?void 0:gl.date_attachment_id,url:(Tl=Ba==null?void 0:Ba.exercise)==null?void 0:Tl.date_attachment_url})}},[Ba]),Fl.createElement("section",null,Fl.createElement("div",{style:{padding:"0px 50px"}},Fl.createElement("div",{style:{background:"#FFF7EB",height:40,borderRadius:"0px 0px 8px 8px",display:"flex",alignItems:"center",padding:"0px 15px"}},Fl.createElement("i",{className:"iconfont icon-tishi12",style:{marginRight:10,color:"#FEB636"}})," \u5982\u679C\u60A8\u9700\u8981\u81EA\u5B9A\u4E49\u5B9E\u9A8C\u62A5\u544A\u6A21\u677F\uFF0C\u8BF7 ",Fl.createElement("a",{style:{marginLeft:10},onClick:()=>{zn(!0)}}," \u8054\u7CFB\u6211\u4EEC"))),Fl.createElement("div",{style:{padding:"30px 50px"}},Fl.createElement(fe.default,{form:vn,layout:"horizontal",onValuesChange:(bn,ca)=>{var Qn,pn,Tn,En,da,Ha;Ja(ca),ca!=null&&ca.enable_report_setting&&(vn.setFieldsValue({exercise_report_template:(Tn=(pn=(Qn=Ba==null?void 0:Ba.exercise)==null?void 0:Qn.default_templates)==null?void 0:pn[0])==null?void 0:Tn.name}),Ja(J0(I0({},ca),{exercise_report_template:(Ha=(da=(En=Ba==null?void 0:Ba.exercise)==null?void 0:En.default_templates)==null?void 0:da[0])==null?void 0:Ha.name})))},onFinish:bn=>km(void 0,null,function*(){var ca,Qn,pn,Tn;if(console.log("---",bn),!(bn!=null&&bn.exercise_report_template)&&(bn!=null&&bn.enable_report_setting)){pe.ZP.info("\u8BF7\u9009\u62E9\u6A21\u7248");return}let En=(Tn=(pn=(Qn=(ca=Ba==null?void 0:Ba.exercise)==null?void 0:ca.default_templates)==null?void 0:Qn.find(Ha=>(Ha==null?void 0:Ha.name)===(tn==null?void 0:tn.exercise_report_template)))==null?void 0:pn.settings)==null?void 0:Tn.map(Ha=>{var au;return J0(I0({},Ha),{checked:(au=bn==null?void 0:bn.exercise_report_templates)==null?void 0:au.includes(Ha==null?void 0:Ha.name)})}),da=yield(0,Ce.ZP)(`/api/exercises/${Rt.categoryId}/report_settings.json`,{method:"post",body:J0(I0({},bn),{enable_report_setting:bn.enable_report_setting,name:bn.exercise_report_template,exercise_report_template:En,enable_student_view:bn.enable_student_view,sign_attachment_id:Fa.container_id,date_attachment_id:wu.container_id})});(da==null?void 0:da.status)===0&&(pe.ZP.info("\u4FEE\u6539\u6210\u529F"),pt({type:"exercise/getWorkSetting",payload:I0({},Rt)}))}),className:Cs.zybzForm},Fl.createElement("div",{className:"ant-form-item",style:{padding:"8px 30px",background:"#F6F7F9",display:"flex",alignItems:"center"}},Fl.createElement(fe.default.Item,{name:"enable_report_setting",valuePropName:"checked",style:{marginBottom:0}},Fl.createElement(Se.default,null,Fl.createElement(Fl.Fragment,null,Fl.createElement("strong",{style:{fontSize:"14px",color:"#000",fontWeight:400}},"\u5F00\u542F\u540E\uFF0C\u7CFB\u7EDF\u6839\u636E\u5B9E\u9A8C\u62A5\u544A\u7684\u6A21\u677F\u81EA\u52A8\u751F\u6210\u5B66\u751F\u5B9E\u9A8C\u62A5\u544A\uFF0C\u5E76\u652F\u6301\u624B\u5199\u6279\u6CE8\u548C\u5BFC\u51FA\u3002")))),Fl.createElement("a",{onClick:()=>{window.open("https://www.educoder.net/forums/40492")}},"\u64CD\u4F5C\u8BF4\u660E")),(tn==null?void 0:tn.enable_report_setting)&&Fl.createElement("div",{className:"ant-form-item",style:{padding:"8px 30px",background:"#F6F7F9",margin:"1px 0px"}},Fl.createElement(fe.default.Item,{name:"exercise_report_template",style:{marginBottom:0}},Fl.createElement(Ie.ZP.Group,null,(Dt=(Ve=Ba==null?void 0:Ba.exercise)==null?void 0:Ve.default_templates)==null?void 0:Dt.map(bn=>Fl.createElement("div",{style:{display:"flex",alignItems:"center"}},Fl.createElement(Ie.ZP,{value:bn==null?void 0:bn.name},Fl.createElement("span",null,bn==null?void 0:bn.name)),Fl.createElement("a",{style:{fontSize:14,fontWeight:400},onClick:ca=>{ca.stopPropagation(),dt({url:ke.Z.API_SERVER+"/api/attachments/"+(bn==null?void 0:bn.report_template_url),file_type:bn==null?void 0:bn.report_template_type})}},"\u9884\u89C8")))))),(tn==null?void 0:tn.exercise_report_template)&&(tn==null?void 0:tn.enable_report_setting)&&Fl.createElement("div",{style:{marginTop:20,color:"#000000",fontWeight:600,marginBottom:10}},"\u9700\u8981\u5B66\u751F\u586B\u5199\u7684\u4FE1\u606F"),(tn==null?void 0:tn.exercise_report_template)&&(tn==null?void 0:tn.enable_report_setting)&&Fl.createElement("div",{className:"ant-form-item",style:{padding:"8px 30px",background:"#F6F7F9"}},Fl.createElement(fe.default.Item,{name:"exercise_report_templates",style:{marginBottom:0,marginLeft:20}},Fl.createElement(Se.default.Group,null,Fl.createElement(oe.Z,null,(Ht=(Pe=(Be=(et=Ba==null?void 0:Ba.exercise)==null?void 0:et.default_templates)==null?void 0:Be.find(bn=>(bn==null?void 0:bn.name)===(tn==null?void 0:tn.exercise_report_template)))==null?void 0:Pe.settings)==null?void 0:Ht.map(bn=>Fl.createElement(ve.Z,{style:{height:40},span:24},Fl.createElement(Se.default,{value:bn==null?void 0:bn.name},bn==null?void 0:bn.name))))))),Fl.createElement("div",{style:{marginBottom:10,marginTop:20,fontWeight:600,color:"#000"}},"\u6559\u5E08\u9884\u8BBE\u7684\u5B57\u6BB5\u4FE1\u606F"),Fl.createElement("div",{className:"ant-form-item",style:{padding:"10px 30px",background:"#F6F7F9",height:80,display:"flex",alignItems:"center"}},Fl.createElement("span",{style:{marginRight:23}},"\u6559\u5E08\u7B7E\u540D"),Fl.createElement(Ii.default,{action:`${ke.Z.API_SERVER}/api/attachments.json`,name:"file",listType:"picture-card",className:Cs.upname,showUploadList:!1,disabled:Fa==null?void 0:Fa.url,beforeUpload:bn=>{const ca=bn.type==="image/jpeg"||bn.type==="image/png";ca||pe.ZP.error("\u8BF7\u4E0A\u4F20jpg\u6216png\u7C7B\u578B\u56FE\u7247");const Qn=bn.size/1024/1024<2;return Qn||pe.ZP.error("\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72m"),ca&&Qn},onChange:bn=>{var ca;ia((ca=bn==null?void 0:bn.file)==null?void 0:ca.response)}},Fa!=null&&Fa.url?Fl.createElement("div",{className:Cs.upnames,style:{position:"relative"}},Fl.createElement("div",{className:Cs.imghover},Fl.createElement("i",{onClick:()=>{Oa(Fa),Ka(!0)},className:"iconfont icon-yulan3"}),Fl.createElement("i",{onClick:()=>{ia({})},style:{marginLeft:10},className:"iconfont icon-shanchu16"})),Fl.createElement("img",{height:60,width:60,src:ke.Z.API_SERVER+(Fa==null?void 0:Fa.url)})):Fl.createElement("div",null,Fl.createElement("div",{style:{marginTop:8}},"\u4E0A\u4F20"))),Fl.createElement("span",{style:{marginLeft:10,color:"#666666"}},"\uFF08\u652F\u6301\u683C\u5F0F\uFF1Apng\u548Cjpg\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72M\uFF09")),Fl.createElement(Qs.Z,{preview:{visible:tu,onVisibleChange:bn=>Ka(bn),afterOpenChange:bn=>!bn&&Ka("")},wrapperStyle:{display:"none"},height:60,width:60,src:ke.Z.API_SERVER+(Hn==null?void 0:Hn.url)}),Fl.createElement("div",{className:"ant-form-item",style:{padding:"10px 30px",background:"#F6F7F9",height:80,marginTop:1,display:"flex",alignItems:"center"}},Fl.createElement("span",{style:{marginRight:23}},"\u6279\u6539\u65E5\u671F"),Fl.createElement(Ii.default,{action:`${ke.Z.API_SERVER}/api/attachments.json`,name:"file",listType:"picture-card",className:Cs.upname,showUploadList:!1,disabled:wu==null?void 0:wu.url,beforeUpload:bn=>{const ca=bn.type==="image/jpeg"||bn.type==="image/png";ca||pe.ZP.error("\u8BF7\u4E0A\u4F20jpg\u6216png\u7C7B\u578B\u56FE\u7247");const Qn=bn.size/1024/1024<2;return Qn||pe.ZP.error("\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72m"),ca&&Qn},onChange:bn=>{var ca;Sa((ca=bn==null?void 0:bn.file)==null?void 0:ca.response)}},wu!=null&&wu.url?Fl.createElement("div",{className:Cs.upnames,style:{position:"relative"}},Fl.createElement("div",{className:Cs.imghover},Fl.createElement("i",{onClick:()=>{Oa(wu),Ka(!0)},className:"iconfont icon-yulan3"}),Fl.createElement("i",{onClick:()=>{Sa({})},style:{marginLeft:10},className:"iconfont icon-shanchu16"})),Fl.createElement("img",{height:60,width:60,src:ke.Z.API_SERVER+(wu==null?void 0:wu.url)})):Fl.createElement("div",null,Fl.createElement("div",{style:{marginTop:8}},"\u4E0A\u4F20"))),Fl.createElement("span",{style:{marginLeft:10,color:"#666666"}},"\uFF08\u652F\u6301\u683C\u5F0F\uFF1Apng\u548Cjpg\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72M\uFF09")),Fl.createElement("div",{className:"ant-form-item",style:{padding:"10px 30px",background:"#F6F7F9",height:80,marginTop:1,display:"flex",alignItems:"center"}},Fl.createElement("span",{style:{marginRight:23}},"\u8BFE\u7A0B\u7F16\u53F7"),Fl.createElement(fe.default.Item,{name:"number",style:{marginBottom:0}},Fl.createElement(Le.default,null))),Fl.createElement("div",{style:{marginBottom:10,marginTop:20,fontWeight:600,color:"#000"}},"\u67E5\u770B\u5B9E\u9A8C\u62A5\u544A\u8BBE\u7F6E"),Fl.createElement("div",{className:"ant-form-item",style:{padding:"8px 30px",background:"#F6F7F9"}},Fl.createElement(fe.default.Item,{name:"enable_student_view",valuePropName:"checked",style:{marginBottom:0}},Fl.createElement(Se.default,null,Fl.createElement(Fl.Fragment,null,Fl.createElement("strong",{style:{fontSize:"14px",color:"#000",fontWeight:400}},"\u5141\u8BB8\u5B66\u751F\u67E5\u770B\u5B9E\u9A8C\u62A5\u544A"),"\uFF08\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u53EF\u4EE5\u67E5\u770B\u4E2A\u4EBA\u5B9E\u9A8C\u62A5\u544A\uFF09")))),Fl.createElement("div",{style:{marginBottom:10,marginTop:20,fontWeight:600,color:"#000"}},"\u6279\u6CE8\u548C\u5BFC\u51FA\u8BBE\u7F6E"),Fl.createElement("div",{className:"ant-form-item",style:{padding:"8px 30px",background:"#F6F7F9"}},Fl.createElement(fe.default.Item,{name:"report_type",style:{marginBottom:0}},Fl.createElement(Ie.ZP.Group,null,Fl.createElement(ve.Z,{style:{height:40},span:24},Fl.createElement(Ie.ZP,{value:0},Fl.createElement("span",null,"PDF\u683C\u5F0F\uFF08\u652F\u6301\u4EE5PDF\u683C\u5F0F\u8FDB\u884C\u6279\u6CE8\u548C\u5BFC\u51FA\uFF09"))),Fl.createElement(ve.Z,{style:{height:40},span:24},Fl.createElement(Ie.ZP,{value:1},Fl.createElement("span",null,"Word\u683C\u5F0F\uFF08\u652F\u6301\u4EE5Word\u683C\u5F0F\u8FDB\u884C\u6279\u6CE8\u548C\u5BFC\u51FA\uFF09"))))))),Fl.createElement(yc.Z,{visible:nn,setVisible:zn,image:Y0}),Fl.createElement(me.ZP,{type:"primary",style:{width:"138px",marginTop:"30px"},size:"large",onClick:()=>vn.submit()},"\u4FDD\u5B58")),Fl.createElement(ga.Z,{close:!0,hasMask:!0,style:{zIndex:9999},data:ha==null?void 0:ha.url,type:ha==null?void 0:ha.file_type,onClose:()=>dt({})}))};var zm=(0,he.connect)(({shixunHomeworks:ce,loading:se,user:ae,exercise:_e})=>({shixunHomeworks:ce,loading:se.effects,user:ae,exercise:_e}))(jm),q0=z(42469),Td=z(67294);const Zm=({exercise:ce,globalSetting:se,dispatch:ae})=>{var _e,pt,Ve,Dt,et,Be,Pe,Ht;const[vn,hn]=(0,a.useState)("0"),[xt]=(0,he.useSearchParams)(),Gt=[{label:"\u53D1\u5E03\u8BBE\u7F6E",key:"0",element:Td.createElement(Ci,{changeActive:Bn=>{hn(Bn)}})},!((_e=se==null?void 0:se.setting)!=null&&_e.is_local)&&{label:"\u9632\u4F5C\u5F0A\u8BBE\u7F6E",key:"2",element:Td.createElement(_s,null)},(0,On.GJ)()&&((Ve=(pt=ce==null?void 0:ce.workSetting)==null?void 0:pt.exercise)==null?void 0:Ve.exercise_type)!=2&&{label:"\u8BC4\u9605\u8BBE\u7F6E",key:"5",element:Td.createElement(Gd,null)},{label:"\u6210\u7EE9\u8BBE\u7F6E",key:"3",element:Td.createElement(g0,null)},!((Dt=se==null?void 0:se.setting)!=null&&Dt.is_local)&&{label:"\u5BA2\u6237\u7AEF\u8BBE\u7F6E",key:"4",element:Td.createElement(w0,null)},(0,On.Ny)()&&((Be=(et=ce==null?void 0:ce.workSetting)==null?void 0:et.exercise)==null?void 0:Be.show_resource)&&{label:"\u5B9E\u9A8C\u8D44\u6E90\u4F18\u5148\u4FDD\u969C",key:"6",element:Td.createElement(ui,null)},((Ht=(Pe=ce==null?void 0:ce.workSetting)==null?void 0:Pe.exercise)==null?void 0:Ht.is_show_report_setting)&&{label:"\u5B9E\u9A8C\u62A5\u544A\u8BBE\u7F6E",key:"7",element:Td.createElement(zm,null)}].filter(Bn=>!!Bn);return(0,a.useEffect)(()=>(xt.get("childrenTabs")&&hn(xt.get("childrenTabs")),ae({type:"globalSetting/footerToggle",payload:!1}),()=>{ae({type:"globalSetting/footerToggle",payload:!0})}),[]),Td.createElement("div",{style:{paddingBottom:"50px"}},Td.createElement(q0.Z,{dataSource:Gt,style:{marginBottom:52}}))};var _0=(0,he.connect)(({exercise:ce,globalSetting:se})=>({exercise:ce,globalSetting:se}))(Zm),Uc=z(85657),vm=z(446),td=z(50976),Qm=z(9151),Um=z(37752),pm=z(33648),ue=z(48780),le={Onerow:"Onerow___ZYa8H",TableDom:"TableDom___PXmEy",CollapseDom:"CollapseDom___q9wvV",CollapseDomC:"CollapseDomC___zTeH1",CollapseChildrenDom:"CollapseChildrenDom___O1Ffz",open:"open___K7p7T",DomStyle:"DomStyle___EoUKX",DomStyleTitle:"DomStyleTitle___vhLg3",DomStyleTitleChild:"DomStyleTitleChild___a1RIx",Sessce:"Sessce___zdKQ2",AnswerSDom:"AnswerSDom___YkvgW",scale_hover:"scale_hover___RkGo0",percent:"percent___DP1EH"},Ee=z(51161),je=Object.defineProperty,qe=Object.defineProperties,$e=Object.getOwnPropertyDescriptors,gt=Object.getOwnPropertySymbols,At=Object.prototype.hasOwnProperty,Kt=Object.prototype.propertyIsEnumerable,fn=(ce,se,ae)=>se in ce?je(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,on=(ce,se)=>{for(var ae in se||(se={}))At.call(se,ae)&&fn(ce,ae,se[ae]);if(gt)for(var ae of gt(se))Kt.call(se,ae)&&fn(ce,ae,se[ae]);return ce},en=(ce,se)=>qe(ce,$e(se));const an=(ce="")=>{var se,ae;const _e=document.createElement("html");return _e.innerHTML=(0,Ee.ZP)(ce),a.createElement("span",null,((ae=(se=_e==null?void 0:_e.children)==null?void 0:se[1])==null?void 0:ae.textContent)||(_e==null?void 0:_e.textContent)||"")},In=({ModalProps:ce={},QuestionDetail:se={},CurrentData:ae={}})=>{var _e,pt,Ve,Dt,et,Be,Pe,Ht,vn,hn;const{question_type:xt=null}=se;return(0,a.useEffect)(()=>{console.log("CurrentData===",ae,se,se==null?void 0:se.question_choices)},[ae]),a.createElement(Fe.default,on({},on({title:"\u5B66\u751F\u7B54\u9898",centered:!0,width:800,destroyOnClose:!0,footer:null},ce)),a.createElement("div",{className:"flex item-center mb20",style:{gap:"30px"}},a.createElement("div",{className:"font14"},a.createElement("span",{className:"c-grey-666 mr10"},"\u59D3\u540D"),ae==null?void 0:ae.name),a.createElement("div",{className:"font14"},a.createElement("span",{className:"c-grey-666 mr10"},"\u5B66\u53F7"),ae==null?void 0:ae.student_id),a.createElement("div",{className:"font14"},a.createElement("span",{className:"c-grey-666 mr10"},"\u5206\u73ED"),ae==null?void 0:ae.course_group_name),a.createElement("div",{className:"font14"},a.createElement("span",{className:"c-grey-666 mr10"},"\u5F97\u5206"),(_e=ae==null?void 0:ae.users_answer_info)==null?void 0:_e.score,"/",se==null?void 0:se.question_score)),a.createElement("div",{style:{maxHeight:500,overflow:"auto"}},(xt===Tu.fw[3].id||xt===Tu.fw[8].id)&&a.createElement("div",{className:"flex flex-col font14 gap-10px "},a.createElement("div",{className:"blod"},"\u7B54\u9898\u5185\u5BB9\uFF1A"),(Ve=(pt=ae==null?void 0:ae.users_answer_info)==null?void 0:pt.choices)==null?void 0:Ve.map((Gt,Bn)=>a.createElement("div",{key:Gt==null?void 0:Gt.exercise_choice_id},"\u7B54\u6848\uFF08\u586B\u7A7A",Bn+1,"\uFF09\uFF1A",a.createElement("span",{style:{color:Gt!=null&&Gt.score_type?"#2EC25B":"#E30000"}},Gt==null?void 0:Gt.answer_text)))),xt===Tu.fw[4].id&&a.createElement(a.Fragment,null,a.createElement("div",{className:"flex flex-col font14 gap-10px"},a.createElement("div",{className:"blod"},"\u7B54\u9898\u5185\u5BB9\uFF1A"),a.createElement("div",{className:"p10 flex flex-col gap-10px",style:{background:"#F6F7F9"}},(et=(Dt=ae==null?void 0:ae.users_answer_info)==null?void 0:Dt.choices)==null?void 0:et.map((Gt,Bn)=>a.createElement(uu.Z,{key:Bn,value:(0,de.EJ)(Gt==null?void 0:Gt.answer_text,se==null?void 0:se.question_keywords)})))),a.createElement("div",{className:"flex flex-col font14 gap-10px mt20"},a.createElement("div",{className:"blod"},"\u53C2\u8003\u7B54\u6848\uFF1A"),a.createElement("div",{className:"p10 flex flex-col gap-10px",style:{background:"#F6F7F9"}},(Be=se==null?void 0:se.question_choices)==null?void 0:Be.map((Gt,Bn)=>a.createElement(uu.Z,{key:Bn,value:Gt==null?void 0:Gt.answer_text}))))),xt===Tu.fw[5].id&&a.createElement("div",{className:"flex flex-col gap-20px"},(Ht=(Pe=ae==null?void 0:ae.users_answer_info)==null?void 0:Pe.choices)==null?void 0:Ht.map((Gt,Bn)=>a.createElement(a.Fragment,null,a.createElement("div",{className:"blod"},"\u7B2C",Bn+1,"\u5173\u5B66\u751F\u4EE3\u7801",a.createElement(Ae.Z,{title:"\u5C55\u793A\u5B66\u751F\u901A\u5173\u4EE3\u7801\uFF0C\u672A\u901A\u5173\u5219\u5C55\u793A\u6700\u540E\u7F16\u5199\u7684\u4EE3\u7801\u8BE6\u60C5"},a.createElement("i",{className:"iconfont icon-tishixiaowenhao font14 ml10",style:{cursor:"pointer",color:"#145DFF"}})),!(Gt!=null&&Gt.is_evaluate)&&a.createElement("span",{style:{color:"#E30000"}},"\uFF08\u672A\u8BC4\u6D4B\uFF09")),a.createElement("div",{className:"p10 flex flex-col gap-10px",style:{background:"#F6F7F9"}},a.createElement("code",null,a.createElement("pre",null,Gt==null?void 0:Gt.answer_text)))))),xt===Tu.fw[6].id&&a.createElement("div",{className:"flex flex-col gap-20px"},(hn=(vn=ae==null?void 0:ae.users_answer_info)==null?void 0:vn.choices)==null?void 0:hn.map((Gt,Bn)=>a.createElement(a.Fragment,null,a.createElement("div",{className:"blod"},"\u5B66\u751F\u4EE3\u7801",a.createElement(Ae.Z,{title:"\u5C55\u793A\u5B66\u751F\u901A\u5173\u4EE3\u7801\uFF0C\u672A\u901A\u5173\u5219\u5C55\u793A\u6700\u540E\u7F16\u5199\u7684\u4EE3\u7801\u8BE6\u60C5"},a.createElement("i",{className:"iconfont icon-tishixiaowenhao font14 ml10",style:{cursor:"pointer",color:"#145DFF"}})),!(Gt!=null&&Gt.is_evaluate)&&a.createElement("span",{style:{color:"#E30000"}},"\uFF08\u672A\u8BC4\u6D4B\uFF09")),a.createElement("div",{className:"p10 flex flex-col gap-10px",style:{background:"#F6F7F9"}},a.createElement("code",null,a.createElement("pre",null,Gt!=null&&Gt.answer_text?rn.Base64.decode(Gt==null?void 0:Gt.answer_text):""))))))))},Na=a.memo(In),dr=({exercise:ce,dispatch:se,handleOnComplete:ae})=>{var _e,pt,Ve,Dt,et,Be,Pe,Ht,vn,hn,xt,Gt,Bn,Dn,Fn,Wt,Ut,Yt,ta,nn,zn,mn,pa,Pt,Nt,Rt,Xt,cn,tn,Ja,ha,dt,Fa,ia,wu,Sa,Hn,Oa,tu,Ka;const{actionTabs:Ba={},course_groups:La=[],commonHeader:Zn}=ce,bn=(0,he.useParams)(),[,ca,Qn,pn]=(0,sn.U)(ne.hv,{exercise_id:bn==null?void 0:bn.categoryId}),Tn=((_e=pn==null?void 0:pn.data)==null?void 0:_e.question)||{},En=((Ve=(pt=pn==null?void 0:pn.data)==null?void 0:pt.exercise)==null?void 0:Ve.use_blank_score)||0,[da,Ha]=(0,a.useState)({open:!1,currentData:{}}),[au,Ya]=(0,a.useState)({page:1,limit:10,type:1,exercise_group_id:((Dt=Ba==null?void 0:Ba.data)==null?void 0:Dt.exercise_group_id)||"all",keyword:"",score_type:(et=Ba==null?void 0:Ba.data)!=null&&et.choice_position?(Be=Ba==null?void 0:Ba.data)==null?void 0:Be.choice_position:"all"}),Cr=()=>{se({type:"exercise/setActionTabs",payload:{key:""}})},Zu=(0,a.useMemo)(()=>{var sa;const Ru=Tn==null?void 0:Tn.question_type,mr=[{title:"\u5E8F\u53F7",dataIndex:"index",width:70},{title:"\u59D3\u540D",dataIndex:"name"},{title:"\u5B66\u53F7/\u5DE5\u53F7",dataIndex:"student_id"},{title:"\u5206\u73ED",dataIndex:"course_group_name",render:gl=>gl||"\u672A\u5206\u73ED"}];return[Tu.fw[0].id,Tu.fw[1].id,Tu.fw[2].id].includes(Ru)&&mr.push({title:"\u9009\u9879",dataIndex:"users_answer_info.score",align:"center",width:100,render:(gl,Tl)=>{var mu,$u,jr,Eu,wr;const Va=($u=(mu=Tl==null?void 0:Tl.users_answer_info)==null?void 0:mu.choices)==null?void 0:$u.map(Pu=>Pu==null?void 0:Pu.exercise_choice_id),Nu=(jr=Tn==null?void 0:Tn.question_choices)==null?void 0:jr.filter(Pu=>Va.includes(Pu==null?void 0:Pu.exercise_choice_id)),oo=((wr=(Eu=Tn==null?void 0:Tn.question_choices)==null?void 0:Eu.filter(Pu=>Pu==null?void 0:Pu.right_answer))==null?void 0:wr.map(Pu=>Pu==null?void 0:Pu.exercise_choice_id))||[],Su=oo.length===Va.length?Va.length>0&&Va.every(Pu=>oo.includes(Pu))?1:3:Va.length>0&&Va.every(Pu=>oo.includes(Pu))&&En===1?2:3;return a.createElement(a.Fragment,null,Nu==null?void 0:Nu.map(Pu=>a.createElement("span",{key:Pu==null?void 0:Pu.exercise_choice_id,style:{color:Su===3?"#E30000":Su===2?"#FF9D18":"#2EC25B"}},(Tn==null?void 0:Tn.question_type)===Tu.fw[2].id?Pu==null?void 0:Pu.choice_text:Tu.k4[(Pu==null?void 0:Pu.choice_position)-1])))}}),[Tu.fw[3].id,Tu.fw[4].id,Tu.fw[8].id,Tu.fw[6].id,Tu.fw[7].id].includes(Ru)&&mr.push({title:"\u5F97\u5206/\u5206\u6570",align:"center",dataIndex:"users_answer_info.score",render:(gl,Tl)=>{var mu;return`${(mu=Tl==null?void 0:Tl.users_answer_info)==null?void 0:mu.score}/${Tn==null?void 0:Tn.question_score}`}},{title:"\u64CD\u4F5C",dataIndex:"test1",align:"center",render:(gl,Tl)=>a.createElement("a",{onClick:()=>{Ha({open:!0,currentData:Tl})}},"\u67E5\u770B\u8BE6\u60C5")}),[Tu.fw[5].id].includes(Ru)&&mr.push(...((sa=Tn==null?void 0:Tn.question_choices)==null?void 0:sa.map((gl,Tl=0)=>({title:`\u7B2C${gl==null?void 0:gl.position}\u5173\u5F97\u5206/\u5206\u6570`,align:"center",dataIndex:"users_answer_info.choices",width:150,render:(mu,$u)=>{var jr,Eu,wr,Va,Nu,oo,Su,Pu;return((Eu=(jr=$u==null?void 0:$u.users_answer_info)==null?void 0:jr.choices)==null?void 0:Eu.length)>0&&`${(Nu=(Va=(wr=$u==null?void 0:$u.users_answer_info)==null?void 0:wr.choices)==null?void 0:Va[Tl])==null?void 0:Nu.score}/${(Pu=(Su=(oo=$u==null?void 0:$u.users_answer_info)==null?void 0:oo.choices)==null?void 0:Su[Tl])==null?void 0:Pu.question_score}`}})))||[],{title:"\u64CD\u4F5C",dataIndex:"test1",align:"center",fixed:"right",width:100,render:(gl,Tl)=>a.createElement("a",{onClick:()=>{Ha({open:!0,currentData:Tl})}},"\u67E5\u770B\u8BE6\u60C5")}),mr},[Tn,En]);return(0,a.useEffect)(()=>{var sa,Ru,mr,gl,Tl,mu;(Ba==null?void 0:Ba.key)==="\u7B54\u9898\u8BE6\u60C5"&&Qn(en(on({},au),{exercise_group_id:(au==null?void 0:au.exercise_group_id)=="all"?"":au==null?void 0:au.exercise_group_id,exercise_id:bn==null?void 0:bn.categoryId,question_id:(sa=Ba==null?void 0:Ba.data)==null?void 0:sa.id,choice_position:([4,5,6].includes((Ru=Ba==null?void 0:Ba.data)==null?void 0:Ru.ques_type)||[4,5,6].includes((gl=(mr=pn==null?void 0:pn.data)==null?void 0:mr.question)==null?void 0:gl.question_type))&&au.score_type!=="all"?au.score_type:null,challenge_id:(Tl=Ba==null?void 0:Ba.data)==null?void 0:Tl.challenge_id,scope:(mu=Ba==null?void 0:Ba.data)==null?void 0:mu.scope,score_type:null}))},[Ba==null?void 0:Ba.key,au]),a.createElement(a.Fragment,null,a.createElement(Fe.default,{centered:!0,title:a.createElement(a.Fragment,null,"\u7B54\u9898\u8BE6\u60C5",a.createElement("span",{className:"font14 c-grey-666"},"\uFF08",((Pe=Ba==null?void 0:Ba.data)==null?void 0:Pe.tabActive)==="3"&&((Ht=Ba==null?void 0:Ba.data)!=null&&Ht.title)?(vn=Ba==null?void 0:Ba.data)==null?void 0:vn.title:`${(Bn=(Gt=Tu.fw)==null?void 0:Gt[(xt=(hn=pn==null?void 0:pn.data)==null?void 0:hn.question)==null?void 0:xt.question_type])==null?void 0:Bn.name}${((Dn=Ba==null?void 0:Ba.data)==null?void 0:Dn.question_number)||""}`,"\uFF09"),((Fn=Ba==null?void 0:Ba.data)==null?void 0:Fn.tabActive)==="2"&&a.createElement(a.Fragment,null,a.createElement(Ae.Z,{title:a.createElement(a.Fragment,null,"\u9898\u76EE\uFF1A",an((Ut=(Wt=pn==null?void 0:pn.data)==null?void 0:Wt.question)==null?void 0:Ut.question_title),a.createElement("br",null),"\u9898\u578B\uFF1A",Tu.fw[((ta=(Yt=pn==null?void 0:pn.data)==null?void 0:Yt.question)==null?void 0:ta.question_type)||0].name,a.createElement("br",null),"\u5206\u503C\uFF1A",an((zn=(nn=pn==null?void 0:pn.data)==null?void 0:nn.question)==null?void 0:zn.question_score),a.createElement("br",null))},a.createElement("a",{className:"ml10"},"\u8BD5\u9898\u8BE6\u60C5")),a.createElement("span",{className:"font14 c-grey-666 ml20"},"\u6B63\u786E\u7387",a.createElement("span",{className:"c-block ml10"},(mn=Ba==null?void 0:Ba.data)==null?void 0:mn.right_percent,"%")),a.createElement("span",{className:"font14 c-grey-666 ml20"},"\u5F97\u5206\u7387",a.createElement("span",{className:"c-block ml10"},(pa=Ba==null?void 0:Ba.data)==null?void 0:pa.score_percent,"%")),a.createElement("span",{className:"font14 c-grey-666 ml20"},"\u5DF2\u7B54\u4EBA\u6570",a.createElement("span",{className:"c-block ml10"},(Pt=Ba==null?void 0:Ba.data)==null?void 0:Pt.effictive_counts,"\u4EBA"))),((Nt=Ba==null?void 0:Ba.data)==null?void 0:Nt.tabActive)==="3"&&!(Zn!=null&&Zn.is_random)&&a.createElement(Ae.Z,{title:a.createElement(a.Fragment,null,"\u9898\u76EE\uFF1A",an((Xt=(Rt=pn==null?void 0:pn.data)==null?void 0:Rt.question)==null?void 0:Xt.question_title),a.createElement("br",null),"\u9898\u578B\uFF1A",Tu.fw[((tn=(cn=pn==null?void 0:pn.data)==null?void 0:cn.question)==null?void 0:tn.question_type)||0].name,a.createElement("br",null),"\u5206\u503C\uFF1A",an((ha=(Ja=pn==null?void 0:pn.data)==null?void 0:Ja.question)==null?void 0:ha.question_score),a.createElement("br",null))},a.createElement("a",{className:"ml10"},"\u8BD5\u9898\u8BE6\u60C5"))),open:(Ba==null?void 0:Ba.key)==="\u7B54\u9898\u8BE6\u60C5",width:800,maskClosable:!1,destroyOnClose:!0,footer:null,onCancel:Cr},((dt=Ba==null?void 0:Ba.data)==null?void 0:dt.tabActive)==="3"&&a.createElement("div",{className:"flex flex-wrap gap-20px c-grey-666 mb20"},(ia=(Fa=Ba==null?void 0:Ba.data)==null?void 0:Fa.exercise_group_list)==null?void 0:ia.map((sa,Ru)=>{var mr;return a.createElement("span",{key:Ru},sa==null?void 0:sa.course_group_name,a.createElement("span",{className:"ml10 c-black"},sa==null?void 0:sa.value,((mr=Ba==null?void 0:Ba.data)==null?void 0:mr.questionsscoreType)||"%"))})),a.createElement("div",{className:"flex item-center justify-between"},a.createElement("div",null,a.createElement(ft.default,{style:{width:256},value:au==null?void 0:au.exercise_group_id,mode:"multiple",maxTagCount:"responsive",getPopupContainer:sa=>sa.parentNode,onChange:sa=>{let Ru=[...sa];Ru.length===0&&(Ru=["all"]),Ru.includes("all")&&Ru.length>1&&(Ru[Ru.length-1]=="all"?Ru=["all"]:Ru=Ru.filter(mr=>mr!=="all")),Ya(en(on({},au),{exercise_group_id:Ru}))},filterOption:(sa,Ru)=>Ru.label.indexOf(sa.toLowerCase())>=0,options:[{label:"\u5168\u90E8\u73ED\u7EA7",value:"all"},...La.map(sa=>({label:sa==null?void 0:sa.exercise_group_name,value:sa==null?void 0:sa.exercise_group_id}))]}),[4,5,6].includes((Sa=(wu=pn==null?void 0:pn.data)==null?void 0:wu.question)==null?void 0:Sa.question_type)&&a.createElement(ft.default,{style:{width:140,marginLeft:20},value:au==null?void 0:au.score_type,onChange:sa=>{Ya(en(on({},au),{score_type:sa}))},options:[{label:"\u5168\u90E8\u5F97\u5206\u7C7B\u578B",value:"all"},{label:"\u6EE1\u5206\u4F5C\u7B54",value:1},{label:"\u90E8\u5206\u5F97\u5206",value:2},{label:"\u96F6\u5206\u4F5C\u7B54",value:3}]})),a.createElement(Hr.t7,{style:{width:220},placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u5B66\u53F7\u641C\u7D22",onChange:sa=>{Ya(en(on({},au),{keyword:sa}))}})),a.createElement(x.default,{className:"mt10",dataSource:((Oa=(Hn=pn==null?void 0:pn.data)==null?void 0:Hn.student_score)==null?void 0:Oa.list)||[],scroll:{y:500,x:"max-content"},loading:ca,columns:Zu,pagination:{current:au.page,pageSize:au==null?void 0:au.limit,onChange:(sa,Ru)=>{Ya(en(on({},au),{page:sa,limit:Ru}))},total:((Ka=(tu=pn==null?void 0:pn.data)==null?void 0:tu.student_score)==null?void 0:Ka.count)||0,showTotal:sa=>a.createElement("span",{className:"font12 c-666"},"\u5171",a.createElement("span",{style:{color:"#3061D0"}},sa),"\u6761\u6570\u636E")}})),a.createElement(Na,{QuestionDetail:Tn,CurrentData:da.currentData,ModalProps:{open:da.open,onCancel:()=>{Ha({open:!1,currentData:{}})}}}))};var Sr=(0,he.connect)(({exercise:ce})=>({exercise:ce}))(dr),Vt=z(67294),sl=Object.defineProperty,Rl=Object.defineProperties,Kl=Object.getOwnPropertyDescriptors,$o=Object.getOwnPropertySymbols,ei=Object.prototype.hasOwnProperty,Ri=Object.prototype.propertyIsEnumerable,Ws=(ce,se,ae)=>se in ce?sl(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,si=(ce,se)=>{for(var ae in se||(se={}))ei.call(se,ae)&&Ws(ce,ae,se[ae]);if($o)for(var ae of $o(se))Ri.call(se,ae)&&Ws(ce,ae,se[ae]);return ce},Fs=(ce,se)=>Rl(ce,Kl(se)),gc=(ce,se)=>{var ae={};for(var _e in ce)ei.call(ce,_e)&&se.indexOf(_e)<0&&(ae[_e]=ce[_e]);if(ce!=null&&$o)for(var _e of $o(ce))se.indexOf(_e)<0&&Ri.call(ce,_e)&&(ae[_e]=ce[_e]);return ae},Ic=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Bd=ce=>{var se,ae;const _e=document.createElement("html");return _e.innerHTML=(0,Ee.ZP)(ce),Vt.createElement("span",null,((ae=(se=_e==null?void 0:_e.children)==null?void 0:se[1])==null?void 0:ae.textContent)||(_e==null?void 0:_e.textContent)||"")},sd=ce=>{var se=ce,{data:ae,dispatch:_e,exercise_group_id:pt}=se,Ve=gc(se,["data","dispatch","exercise_group_id"]),Dt,et;const Be=(()=>{var Ht,vn,hn,xt;let Gt=[];return((ae==null?void 0:ae.ques_type)==Tu.fw[0].id||(ae==null?void 0:ae.ques_type)==Tu.fw[1].id)&&(Gt=[{title:"\u9009\u9879",num:"\u7B54\u9898\u4EBA\u6570",scale:Vt.createElement("span",null,"\u7B54\u9898\u4EBA\u6570\u6BD4\u4F8B",Vt.createElement(Ae.Z,{overlayStyle:{maxWidth:600},title:Vt.createElement(Vt.Fragment,null,Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u7B54\u9898\u4EBA\u6570\uFF1A"),"\u9009\u62E9\u4E86\u8BE5\u9009\u9879\u7684\u5B66\u751F\u6570\u3002"),Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u7B54\u9898\u6BD4\u4F8B\uFF1A"),"\u9009\u62E9\u4E86\u8BE5\u9009\u9879\u7684\u5B66\u751F\u6570/\u5B66\u751F\u603B\u6570\u3002"),Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u6CE8\u610F\uFF1A"),"\u7EDF\u8BA1\u6570\u636E\u4F1A\u6839\u636E\u7B5B\u9009\u6761\u4EF6\uFF08\u5206\u73ED\u3001\u7EDF\u8BA1\u8303\u56F4\uFF09\u8FDB\u884C\u8C03\u6574\u8BA1\u7B97\u3002"))},Vt.createElement("i",{className:"iconfont icon-xiaowenhao2 font14 ml5",style:{cursor:"pointer",color:"#145DFF"}})))},...(Ht=(ae==null?void 0:ae.ques_details)||[])==null?void 0:Ht.map((Bn,Dn)=>Fs(si({},Bn),{title:Tu.k4[Dn],num:Bn.choice_users_count,scale:(Number(Bn.choice_percent)*100).toFixed(2)}))]),(ae==null?void 0:ae.ques_type)==Tu.fw[2].id&&(Gt=[{title:"\u9009\u9879",num:"\u7B54\u9898\u4EBA\u6570",scale:Vt.createElement("span",null,"\u7B54\u9898\u4EBA\u6570\u6BD4\u4F8B",Vt.createElement(Ae.Z,{overlayStyle:{maxWidth:600},title:Vt.createElement(Vt.Fragment,null,Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u7B54\u9898\u4EBA\u6570\uFF1A"),"\u9009\u62E9\u4E86\u8BE5\u9009\u9879\u7684\u5B66\u751F\u6570\u3002"),Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u7B54\u9898\u6BD4\u4F8B\uFF1A"),"\u9009\u62E9\u4E86\u8BE5\u9009\u9879\u7684\u5B66\u751F\u6570/\u5B66\u751F\u603B\u6570\u3002"),Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u6CE8\u610F\uFF1A"),"\u7EDF\u8BA1\u6570\u636E\u4F1A\u6839\u636E\u7B5B\u9009\u6761\u4EF6\uFF08\u5206\u73ED\u3001\u7EDF\u8BA1\u8303\u56F4\uFF09\u8FDB\u884C\u8C03\u6574\u8BA1\u7B97\u3002"))},Vt.createElement("i",{className:"iconfont icon-xiaowenhao2 font14 ml5",style:{cursor:"pointer",color:"#145DFF"}})))},...(vn=(ae==null?void 0:ae.ques_details)||[])==null?void 0:vn.map((Bn,Dn)=>Fs(si({},Bn),{title:Bn.choice_text,num:Bn.choice_users_count,scale:(Number(Bn.choice_percent)*100).toFixed(2)}))]),((ae==null?void 0:ae.ques_type)==Tu.fw[3].id||(ae==null?void 0:ae.ques_type)==Tu.fw[8].id)&&(Gt=[{title:"\u586B\u7A7A",num:"\u7B54\u5BF9\u4EBA\u6570",scale:Vt.createElement("span",null,"\u7B54\u5BF9\u4EBA\u6570\u6BD4\u4F8B",Vt.createElement(Ae.Z,{overlayStyle:{maxWidth:600},title:Vt.createElement(Vt.Fragment,null,Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u7B54\u5BF9\u4EBA\u6570\uFF1A"),"\u8BE5\u586B\u7A7A\u586B\u5199\u6B63\u786E\u7684\u5B66\u751F\u6570\u3002"),Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u7B54\u5BF9\u4EBA\u6570\u6BD4\u4F8B\uFF1A"),"\u8BE5\u586B\u7A7A\u586B\u5199\u6B63\u786E\u7684\u5B66\u751F\u6570/\u5B66\u751F\u603B\u6570"),Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u6CE8\u610F\uFF1A"),"\u7EDF\u8BA1\u6570\u636E\u4F1A\u6839\u636E\u7B5B\u9009\u6761\u4EF6\uFF08\u5206\u73ED\u3001\u7EDF\u8BA1\u8303\u56F4\uFF09\u8FDB\u884C\u8C03\u6574\u8BA1\u7B97\u3002"))},Vt.createElement("i",{className:"iconfont icon-xiaowenhao2 font14 ml5",style:{cursor:"pointer",color:"#145DFF"}})))},...(hn=(ae==null?void 0:ae.ques_details)||[])==null?void 0:hn.map((Bn,Dn)=>Fs(si({},Bn),{title:`\u586B\u7A7A${Bn.choice_position}`,num:Bn.choice_users_count,scale:(Number(Bn.choice_percent)*100).toFixed(2)}))]),((ae==null?void 0:ae.ques_type)==Tu.fw[4].id||(ae==null?void 0:ae.ques_type)==Tu.fw[6].id)&&(Gt=[{title:"\u5F97\u5206",num:"\u5B66\u751F\u4EBA\u6570",scale:Vt.createElement("span",null,"\u5B66\u751F\u6BD4\u4F8B",Vt.createElement(Ae.Z,{overlayStyle:{maxWidth:600},title:Vt.createElement(Vt.Fragment,null,Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u6EE1\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6570\uFF1A"),"\u8BE5",(ae==null?void 0:ae.ques_type)==Tu.fw[4].id?"\u7B80\u7B54\u9898":"\u7F16\u7A0B\u9898","\u6EE1\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6570"),Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u6EE1\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6BD4\u4F8B\uFF1A"),"\uFF08\u8BE5",(ae==null?void 0:ae.ques_type)==Tu.fw[4].id?"\u7B80\u7B54\u9898":"\u7F16\u7A0B\u9898","\u6EE1\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6570/\u5B66\u751F\u603B\u6570\uFF09*100%"),Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u90E8\u5206\u5F97\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6570\uFF1A"),"\u8BE5",(ae==null?void 0:ae.ques_type)==Tu.fw[4].id?"\u7B80\u7B54\u9898":"\u7F16\u7A0B\u9898","\u5F97\u90E8\u5206\u5206\u7684\u5B66\u751F\u6570"),Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u90E8\u5206\u5F97\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6BD4\u4F8B\uFF1A"),"\uFF08\u8BE5",(ae==null?void 0:ae.ques_type)==Tu.fw[4].id?"\u7B80\u7B54\u9898":"\u7F16\u7A0B\u9898","\u5F97\u90E8\u5206\u5206\u7684\u5B66\u751F\u6570/\u5B66\u751F\u603B\u6570\uFF09*100%"),Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u96F6\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6570\uFF1A"),"\u8BE5",(ae==null?void 0:ae.ques_type)==Tu.fw[4].id?"\u7B80\u7B54\u9898\u88AB\u8BC4\u9605\u4E3A\u96F6\u5206\u7684\u5B66\u751F\u6570\u3002":"\u7F16\u7A0B\u9898\u5F970\u5206\u7684\u5B66\u751F\u6570\u3002","\uFF08\u672A\u4F5C\u7B54\u3001\u672A\u5F00\u59CB\u7684\u5219\u63090\u5206\u7EDF\u8BA1\uFF09"),Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u96F6\u5206\u5F97\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6BD4\u4F8B\uFF1A"),(ae==null?void 0:ae.ques_type)==Tu.fw[4].id?"\uFF08\u8BE5\u7B80\u7B54\u9898\u5F97\u96F6\u5206\u7684\u5B66\u751F\u6570/\u5B66\u751F\u603B\u6570\uFF09*100% (\u6CE8\uFF1A\u672A\u8BC4\u9605\uFF08\u5305\u62EC\u5173\u952E\u8BCD\u8BC4\u5206\u548C\u6559\u5E08\u8BC4\u9605\uFF09\u7684\u5B66\u751F\u4E0D\u7EDF\u8BA1\u81F3\u8BE5\u9009\u9879\u4E2D)":"\uFF08\u8BE5\u7F16\u7A0B\u9898\u672A\u5F97\u5206\u7684\u5B66\u751F\u6570/\u5B66\u751F\u603B\u6570\uFF09*100%"),Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u6CE8\u610F\uFF1A"),"\u7EDF\u8BA1\u6570\u636E\u4F1A\u6839\u636E\u7B5B\u9009\u6761\u4EF6\uFF08\u5206\u73ED\u3001\u7EDF\u8BA1\u8303\u56F4\uFF09\u8FDB\u884C\u8C03\u6574\u8BA1\u7B97\u3002"))},Vt.createElement("i",{className:"iconfont icon-xiaowenhao2 font14 ml5",style:{cursor:"pointer",color:"#145DFF"}})))},...(xt=(ae==null?void 0:ae.ques_details)||[])==null?void 0:xt.map((Bn,Dn)=>Fs(si({},Bn),{title:Bn.choice_text,num:Bn.choice_users_count,scale:(Number(Bn.choice_percent)*100).toFixed(2)}))]),Gt})(),Pe=(Ht={})=>{_e({type:"exercise/setActionTabs",payload:{key:"\u7B54\u9898\u8BE6\u60C5",data:Fs(si({},ae),{scope:Ve==null?void 0:Ve.scope,exercise_group_id:pt,choice_position:Ht==null?void 0:Ht.choice_position,tabActive:"2",question_number:(ae==null?void 0:ae.index)||`${Ve.Findex}.${ae==null?void 0:ae.ques_position}`})}})};return Vt.createElement("div",{className:le.DomStyle},Vt.createElement("div",{style:{display:"flex",justifyContent:"space-between",gap:20}},Vt.createElement("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"space-between",gap:20}},Vt.createElement(oe.Z,{gutter:10,wrap:!1,style:{maxHeight:350,overflow:"auto"}},Vt.createElement(ve.Z,{className:le.DomStyleTitle},"\u9898\u76EE"),Vt.createElement(ve.Z,null,Vt.createElement(uu.Z,{className:le.DomStyleTitle,style:{maxWidth:710},value:ae.ques_title}),Vt.createElement("div",{className:"mt20",style:{display:"flex",flexDirection:"column",gap:20}},(Dt=ae==null?void 0:ae.ques_details)==null?void 0:Dt.map((Ht,vn)=>Vt.createElement("div",{key:vn},((ae==null?void 0:ae.ques_type)==Tu.fw[0].id||(ae==null?void 0:ae.ques_type)==Tu.fw[1].id)&&Vt.createElement(oe.Z,{className:`${Ht.choice_right_boolean?le.Sessce:""}`,gutter:10,wrap:!1,key:vn},Vt.createElement(ve.Z,{style:{fontWeight:600}},Tu.k4[vn]),Vt.createElement(ve.Z,null,Vt.createElement(uu.Z,{className:le.DomStyleTitle,style:{maxWidth:690},value:Ht.choice_text||""}))),(ae==null?void 0:ae.ques_type)==Tu.fw[2].id&&Vt.createElement(oe.Z,{className:`${Ht.choice_right_boolean?le.Sessce:""}`,gutter:10,wrap:!1,key:vn},Vt.createElement(ve.Z,null,Vt.createElement(uu.Z,{className:le.DomStyleTitle,style:{maxWidth:690},value:Ht.choice_text||""}))),((ae==null?void 0:ae.ques_type)==Tu.fw[3].id||(ae==null?void 0:ae.ques_type)==Tu.fw[8].id)&&Vt.createElement(oe.Z,{gutter:10,wrap:!1,key:vn},Vt.createElement(ve.Z,{style:{fontWeight:600}},"\u586B\u7A7A",Ht.choice_position,"\uFF1A"),Vt.createElement(ve.Z,null,Ht.choice_text||"")),((ae==null?void 0:ae.ques_type)==Tu.fw[4].id||(ae==null?void 0:ae.ques_type)==Tu.fw[6].id)&&Vt.createElement(oe.Z,{gutter:10,wrap:!1,key:vn},Vt.createElement(ve.Z,null,Vt.createElement(uu.Z,{className:le.DomStyleTitle,style:{maxWidth:690},value:Ht.choice_text||""})))))))),Vt.createElement(oe.Z,{gutter:60},[Tu.fw[0].id,Tu.fw[1].id,Tu.fw[2].id].includes(ae==null?void 0:ae.ques_type)&&Vt.createElement(ve.Z,null,Vt.createElement("span",{className:`${le.DomStyleTitle}`},"\u6B63\u786E\u7B54\u6848\uFF1A"),(et=ae==null?void 0:ae.ques_details)==null?void 0:et.filter(Ht=>Ht.choice_right_boolean).map((Ht,vn)=>Vt.createElement("span",{key:vn},((ae==null?void 0:ae.ques_type)==Tu.fw[0].id||(ae==null?void 0:ae.ques_type)==Tu.fw[1].id)&&Vt.createElement("span",{className:"ml10",style:{color:"#000",fontWeight:600}},Tu.k4[Ht.choice_position-1]),(ae==null?void 0:ae.ques_type)==Tu.fw[2].id&&Vt.createElement("span",{className:"ml10",style:{color:"#000",fontWeight:600}},Ht.choice_text)))),Vt.createElement(ve.Z,null,Vt.createElement("span",{className:`${le.DomStyleTitle} mr10`},"\u6240\u5C5E\u77E5\u8BC6\u70B9\uFF1A"),Vt.createElement("span",{style:{color:"#000",fontWeight:600}},(ae==null?void 0:ae.tag_discipline)||"-")))),Vt.createElement("div",{className:le.AnswerSDom,style:{padding:"0 0 0 20px"}},Vt.createElement("div",{className:`${le.DomStyleTitle} flex item-center justify-between`},Vt.createElement("div",null,"\u7B54\u9898\u60C5\u51B5\uFF1A"),Vt.createElement("a",{onClick:Pe},"\u67E5\u770B\u8BE6\u60C5")),Vt.createElement("div",{className:"mt20"},Be==null?void 0:Be.map((Ht,vn)=>Vt.createElement("div",{key:vn,style:{display:"flex",alignItems:"center",gap:10,marginTop:vn==0?10:14}},[Tu.fw[0].id,Tu.fw[1].id,Tu.fw[2].id].includes(ae==null?void 0:ae.ques_type)?Vt.createElement("div",{className:`${Ht!=null&&Ht.choice_right_boolean?le.Sessce:""}`,style:{width:56}},Ht.title):Vt.createElement("div",{style:{width:56}},Ht.title),Vt.createElement("div",{className:`${Ht.num>0?"current primary-hover":""}`,style:{width:56},onClick:()=>{Ht.num>0&&Pe(Ht)}},Ht.num,vn==0?"":"\u4EBA"),Vt.createElement("div",{style:{width:140}},vn==0?Ht.scale:Vt.createElement(oe.Z,{gutter:4,align:"middle",className:`${Ht.num>0?le.scale_hover:""}`,onClick:()=>{Ht.num>0&&Pe(Ht)}},Vt.createElement(ve.Z,{flex:1},Vt.createElement("div",{style:{width:"100%",height:10,background:"#fff",borderRadius:"5px"}},Vt.createElement("div",{style:{width:`${Ht.scale}%`,height:"100%",borderRadius:"5px",background:"#165DFF"}}))),Vt.createElement(ve.Z,{className:`${Ht.num>0?le.percent:""}`,style:{color:"#999"}},Ht.scale,"%")))))))))},nd=ce=>{var se=ce,{data:ae,dispatch:_e,exercise_group_id:pt}=se,Ve=gc(se,["data","dispatch","exercise_group_id"]);const Dt=(Be,Pe={})=>{_e({type:"exercise/setActionTabs",payload:{key:"\u7B54\u9898\u8BE6\u60C5",data:Fs(si({},ae),{scope:Ve==null?void 0:Ve.scope,exercise_group_id:pt,choice_position:Pe==null?void 0:Pe.choice_position,challenge_id:Be==null?void 0:Be.challenge_id,tabActive:"2",question_number:ae==null?void 0:ae.index})}})},et={title:"\u5F97\u5206",num:"\u5B66\u751F\u4EBA\u6570",scale:Vt.createElement("span",null,"\u5B66\u751F\u6BD4\u4F8B",Vt.createElement(Ae.Z,{overlayStyle:{maxWidth:600},title:Vt.createElement(Vt.Fragment,null,Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u6EE1\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6570\uFF1A"),"\u8BE5\u5173\u5361\u6EE1\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6570"),Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u6EE1\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6BD4\u4F8B\uFF1A"),"\uFF08\u8BE5\u5173\u5361\u6EE1\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6570/\u5B66\u751F\u603B\u6570\uFF09*100%"),Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u90E8\u5206\u5F97\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6570\uFF1A"),"\u8BE5\u5173\u5361\u5F97\u90E8\u5206\u5206\u7684\u5B66\u751F\u6570"),Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u90E8\u5206\u5F97\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6BD4\u4F8B\uFF1A"),"\uFF08\u8BE5\u5173\u5361\u5F97\u90E8\u5206\u5206\u7684\u5B66\u751F\u6570/\u5B66\u751F\u603B\u6570\uFF09*100%"),Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u96F6\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6570\uFF1A"),"\u8BE5\u5173\u5361\u5F970\u5206\u7684\u5B66\u751F\u6570\u3002\uFF08\u672A\u4F5C\u7B54\u3001\u672A\u5F00\u59CB\u7684\u5219\u63090\u5206\u7EDF\u8BA1\uFF09"),Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u96F6\u5206\u5F97\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6BD4\u4F8B\uFF1A"),"\uFF08\u8BE5\u5173\u5361\u5F970\u5206\u7684\u5B66\u751F\u6570/\u5B66\u751F\u603B\u6570\uFF09*100%"),Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u6CE8\u610F\uFF1A"),"\u7EDF\u8BA1\u6570\u636E\u4F1A\u6839\u636E\u7B5B\u9009\u6761\u4EF6\uFF08\u5206\u73ED\u3001\u7EDF\u8BA1\u8303\u56F4\uFF09\u8FDB\u884C\u8C03\u6574\u8BA1\u7B97\u3002"))},Vt.createElement("i",{className:"iconfont icon-xiaowenhao2 font14 ml5",style:{cursor:"pointer",color:"#145DFF"}})))};return Vt.createElement("div",{className:le.DomStyle},Vt.createElement("div",{style:{display:"flex",flexDirection:"column",justifyContent:"space-between"}},Vt.createElement("div",null,Vt.createElement("div",{style:{display:"flex",justifyContent:"space-between",gap:20}},Vt.createElement(oe.Z,{gutter:10,wrap:!1},Vt.createElement(ve.Z,{className:le.DomStyleTitle},"\u9898\u76EE"),Vt.createElement(ve.Z,null,Vt.createElement(uu.Z,{style:{maxWidth:710},className:le.DomStyleTitle,value:ae.ques_title}))),Vt.createElement("div",{className:le.AnswerSDom},Vt.createElement("div",{className:`${le.DomStyleTitle} flex item-center justify-between`},Vt.createElement("div",null,"\u7B54\u9898\u60C5\u51B5\uFF1A"),Vt.createElement("a",{onClick:Dt},"\u67E5\u770B\u8BE6\u60C5")),Vt.createElement("div",{className:"mt20",style:{display:"flex",alignItems:"center",gap:10}},Vt.createElement("div",{style:{width:56}},et.title),Vt.createElement("div",{style:{width:56}},et.num),Vt.createElement("div",{style:{width:140}},et.scale)))),ae==null?void 0:ae.ques_details.map((Be,Pe)=>Vt.createElement("div",{key:Pe,style:{display:"flex",gap:10}},Vt.createElement("div",{className:le.DomStyleTitle},"\u7B2C",(0,de.EM)(Pe+1),"\u5173\uFF1A"),Vt.createElement("div",{style:{flex:1}},[{challenge_name:Be.challenge_name},...(Be==null?void 0:Be.challenge_details)||[]].map((Ht,vn)=>Vt.createElement("div",{key:vn,style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:20,width:"100%"}},Vt.createElement("div",null,Vt.createElement(uu.Z,{className:`${le.DomStyleTitle} ${vn==0?le.DomStyleTitleChild:""}`,value:Ht.challenge_name||Ht.choice_text})),Vt.createElement("div",{className:le.AnswerSDom},Vt.createElement("div",{style:{display:"flex",alignItems:"center",gap:10}},Vt.createElement("div",{style:{width:56}},Ht.choice_text?Ht.choice_text:""),Vt.createElement("div",{className:"current",style:{width:56},onClick:()=>{Ht.choice_users_count>0&&Dt(Be,Ht)}},Ht.choice_users_count!=null?`${Ht.choice_users_count}\u4EBA`:""),Vt.createElement("div",{style:{width:140}},Ht.choice_percent&&Vt.createElement(oe.Z,{gutter:4,align:"middle",className:`${Ht.choice_users_count>0?le.scale_hover:""}`,onClick:()=>{Ht.choice_users_count>0&&Dt(Be,Ht)}},Vt.createElement(ve.Z,{flex:1},Vt.createElement("div",{style:{width:"100%",height:10,background:"#fff",borderRadius:"5px"}},Vt.createElement("div",{style:{width:`${(Number(Ht.choice_percent)*100).toFixed(2)}%`,height:"100%",borderRadius:"5px",background:"#165DFF"}}))),Vt.createElement(ve.Z,{className:`${Ht.choice_users_count>0?le.percent:""}`,style:{color:"#999"}},(Number(Ht.choice_percent)*100).toFixed(2),"%"))))))))))),Vt.createElement("div",null,Vt.createElement("span",{className:`${le.DomStyleTitle} mr10`},"\u6240\u5C5E\u77E5\u8BC6\u70B9\uFF1A"),Vt.createElement("span",{style:{color:"#000",fontWeight:600}},(ae==null?void 0:ae.tag_discipline)||"-"))))},vd=({columns:ce,item:se,Fques_type:ae,Findex:_e})=>Vt.createElement(oe.Z,{align:"middle",wrap:!1,style:{color:"#333"}},Vt.createElement(ve.Z,{flex:`${ce[0].width-20}px`,style:{paddingLeft:ae==Tu.fw[7].id&&"8px"}},(se==null?void 0:se.index)||`${_e}.${se==null?void 0:se.ques_position}`),Vt.createElement(ve.Z,{className:le.Onerow,flex:1,style:{padding:"0 8px",maxWidth:382}},Bd(se==null?void 0:se.ques_title)),Vt.createElement(Ae.Z,{title:se==null?void 0:se.name},Vt.createElement(ve.Z,{className:le.Onerow,flex:`${ce[2].width}px`,style:{padding:"0 8px"}},ae==Tu.fw[7].id?se==null?void 0:se.name:Vt.createElement("div",{className:le.Onerow,style:{padding:"2px 10px 2px 0",borderRadius:"13px",color:"#165DFF"}},Vt.createElement("span",{style:{padding:"2px 10px",borderRadius:"13px",background:"rgba(22,93,255,0.1)"}},se==null?void 0:se.name)))),Vt.createElement(ve.Z,{flex:`${ce[3].width}px`,style:{padding:"0 8px"}},se==null?void 0:se.right_percent,"%"),Vt.createElement(ve.Z,{flex:`${ce[4].width}px`,style:{padding:"0 8px"}},se==null?void 0:se.score_percent,"%"),Vt.createElement(ve.Z,{flex:`${ce[5].width}px`,style:{padding:"0 8px"}},se==null?void 0:se.effictive_counts,"\u4EBA"),Vt.createElement(ve.Z,{flex:`${ce[6].width}px`,style:{padding:"0 8px"}},se==null?void 0:se.un_answer_counts,"\u4EBA"),Vt.createElement(ve.Z,{flex:`${ce[7].width}px`,style:{paddingLeft:"8px"}},se==null?void 0:se.total_user_counts,"\u4EBA")),Lc=(ce,se)=>{var ae=ce,{exercise:_e,dispatch:pt,value:Ve}=ae,Dt=gc(ae,["exercise","dispatch","value"]);const{NormalResult:{commit_results:et,questions_count:Be},actionTabs:Pe}=_e,Ht=(0,he.useParams)(),[vn,hn]=(0,a.useState)([]),[xt,Gt]=(0,a.useState)([]),[Bn,Dn]=(0,a.useState)(void 0),[Fn,Wt]=(0,a.useState)(!1),[Ut,Yt]=(0,a.useState)({coursesId:Ht.coursesId,id:Ht.categoryId,categoryId:Ht.categoryId,page:1,limit:50,order:null,sort:"asc"}),ta=[{title:"\u9898\u53F7",dataIndex:"index",width:70,sorter:(pa,Pt)=>pa.index-Pt.index},{title:"\u9898\u76EE\u5185\u5BB9",dataIndex:"ques_title",ellipsis:!0},{title:"\u9898\u578B",dataIndex:"name",width:110},{title:Vt.createElement("span",null,"\u6B63\u786E\u7387 ",Vt.createElement(Ae.Z,{overlayStyle:{maxWidth:600},title:Vt.createElement(Vt.Fragment,null,Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u9898\u76EE\u6B63\u786E\u7387\uFF1A"),"\uFF08\u9898\u76EE\u6EE1\u5206\u4F5C\u7B54\u5B66\u751F\u6570/\u5B66\u751F\u603B\u6570\uFF09*100%"),Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u6EE1\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6570\u4E0E\u5B66\u751F\u603B\u6570\uFF1A"),"\u6839\u636E\u7528\u6237\u7B5B\u9009\u7684\u3010\u7EDF\u8BA1\u8303\u56F4\u3011\u548C\u3010\u5206\u73ED\u3011\u6761\u4EF6\uFF0C\u7EDF\u8BA1\u5BF9\u5E94\u8303\u56F4\u5185\u7684\u5B66\u751F\u6570\u3002"))},Vt.createElement("i",{className:"iconfont icon-xiaowenhao2 font14",style:{cursor:"pointer",color:"#145DFF"}}))),dataIndex:"right_percent",width:95,sorter:(pa,Pt)=>pa.index3-Pt.index3},{title:Vt.createElement("span",null,"\u5F97\u5206\u7387 ",Vt.createElement(Ae.Z,{overlayStyle:{maxWidth:600},title:Vt.createElement(Vt.Fragment,null,Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u9898\u76EE\u5F97\u5206\u7387\uFF1A"),"\uFF08\u6240\u6709\u5B66\u751F\u9898\u76EE\u5B9E\u9645\u5F97\u5206\u603B\u548C/(\u5C0F\u9898\u5E94\u5F97\u5206*\u5B66\u751F\u603B\u6570\uFF09*100%"),Vt.createElement("div",null,Vt.createElement("span",{style:{fontWeight:600}},"\u5F97\u5206\u7684\u5B66\u751F\u6570\u4E0E\u5B66\u751F\u603B\u6570\uFF1A"),"\u6839\u636E\u7528\u6237\u7B5B\u9009\u7684\u3010\u7EDF\u8BA1\u8303\u56F4\u3011\u548C\u3010\u5206\u73ED\u3011\u6761\u4EF6\uFF0C\u7EDF\u8BA1\u5BF9\u5E94\u8303\u56F4\u5185\u7684\u5B66\u751F\u6570\u3002"))},Vt.createElement("i",{className:"iconfont icon-xiaowenhao2 font14",style:{cursor:"pointer",color:"#145DFF"}}))),dataIndex:"score_percent",width:95,sorter:(pa,Pt)=>pa.score_percent-Pt.score_percent},{title:Vt.createElement("span",null,"\u5DF2\u7B54\u9898\u4EBA\u6570 ",Vt.createElement(Ae.Z,{overlayStyle:{maxWidth:600},title:"\u5DF2\u7ECF\u56DE\u7B54\u8BE5\u9898\u7684\u5B66\u751F\u6570"},Vt.createElement("i",{className:"iconfont icon-xiaowenhao2 font14",style:{cursor:"pointer",color:"#145DFF"}}))),dataIndex:"effictive_counts",width:125,sorter:(pa,Pt)=>pa.effictive_counts-Pt.effictive_counts},{title:Vt.createElement("span",null,"\u672A\u7B54\u9898\u4EBA\u6570 ",Vt.createElement(Ae.Z,{overlayStyle:{maxWidth:600},title:"\u8FD8\u672A\u56DE\u7B54\u8BE5\u9898\u7684\u5B66\u751F\u6570"},Vt.createElement("i",{className:"iconfont icon-xiaowenhao2 font14",style:{cursor:"pointer",color:"#145DFF"}}))),dataIndex:"un_answer_counts",width:125,sorter:(pa,Pt)=>pa.un_answer_counts-Pt.un_answer_counts},{title:Vt.createElement("span",null,"\u603B\u4EBA\u6570"),dataIndex:"total_user_counts",width:80},{title:"",dataIndex:"index8",width:58}],nn=(...pa)=>Ic(void 0,[...pa],function*(Pt=Ut){var Nt,Rt,Xt,cn,tn;Wt(!0);const Ja=[],ha=yield pt({type:"exercise/getQuestionResult",payload:si(si({},Pt),Ve)});(Nt=ha==null?void 0:ha.commit_results)==null||Nt.forEach(dt=>{var Fa,ia;Ja.push(dt==null?void 0:dt.id),(Fa=dt==null?void 0:dt.sub_exercise_questions)!=null&&Fa.length&&((ia=dt==null?void 0:dt.sub_exercise_questions)==null||ia.forEach(wu=>{Ja.push(wu==null?void 0:wu.id)}))}),Bn&&hn(Ja),Bn==!1&&hn([]),Bn==null&&hn((Xt=(Rt=ha==null?void 0:ha.commit_results)==null?void 0:Rt[0])!=null&&Xt.id?[(tn=(cn=ha==null?void 0:ha.commit_results)==null?void 0:cn[0])==null?void 0:tn.id]:[]),Gt(Ja),Wt(!1)}),zn=pa=>{let Pt=[];vn!=null&&vn.includes(pa)?Pt=vn.filter(Nt=>Nt!=pa):Pt=[...vn,pa],hn(Pt)};(0,a.useEffect)(()=>{nn(),console.log("asdfsadf====",Ve)},[Ut,Ve]);const mn=()=>{nn()};return(0,a.useImperativeHandle)(se,()=>({dealData:mn})),Vt.createElement(jt.Z,{spinning:Fn},Vt.createElement("div",null,Vt.createElement(oe.Z,{className:"mt20 mb20",align:"middle",justify:"space-between"},Vt.createElement(ve.Z,null,Vt.createElement("span",{className:"font16",style:{lineHeight:"26px",color:"#000"}},"\u8BD5\u9898\u8BE6\u60C5")),Vt.createElement(ve.Z,null,Vt.createElement(me.ZP,{type:"primary",onClick:()=>{(vn==null?void 0:vn.length)==(xt==null?void 0:xt.length)?(hn([]),Dn(!1)):(hn(xt),Dn(!0))}},"\u5168\u90E8",(vn==null?void 0:vn.length)==(xt==null?void 0:xt.length)?"\u6536\u8D77":"\u5C55\u5F00"))),Vt.createElement(x.default,{className:le.TableDom,columns:ta,dataSource:[],pagination:!1,onChange:(pa,Pt,Nt)=>{var Rt;Yt(Fs(si({},Ut),{order:Nt==null?void 0:Nt.field,sort:((Rt=Nt==null?void 0:Nt.order)==null?void 0:Rt.replace("end",""))||"asc"}))}}),et==null?void 0:et.map(pa=>{var Pt;return Vt.createElement(jn.default,{key:pa==null?void 0:pa.id,className:`${le.CollapseDom} ${(pa==null?void 0:pa.ques_type)==Tu.fw[7].id?le.CollapseDomC:""}`,ghost:!0,expandIconPosition:"end",activeKey:vn,onChange:()=>{zn(pa==null?void 0:pa.id)},expandIcon:({isActive:Nt})=>Vt.createElement("span",{className:"font14",style:{color:"#165DFF"}},Nt?"\u6536\u8D77":"\u5C55\u5F00",Vt.createElement(fs.Z,{className:`${Nt?le.open:""}`,style:{fontSize:9,marginLeft:3,transition:"all .2s"},rev:void 0})),items:[{key:pa==null?void 0:pa.id,label:Vt.createElement(vd,{columns:ta,item:pa}),children:Vt.createElement(Vt.Fragment,null,(pa==null?void 0:pa.ques_type)==Tu.fw[7].id&&((Pt=pa==null?void 0:pa.sub_exercise_questions)==null?void 0:Pt.map(Nt=>Vt.createElement(jn.default,{key:Nt==null?void 0:Nt.id,className:le.CollapseChildrenDom,ghost:!0,expandIconPosition:"end",activeKey:vn,onChange:()=>{zn(Nt==null?void 0:Nt.id)},expandIcon:({isActive:Rt})=>Vt.createElement("span",{style:{color:"#165DFF",marginLeft:25}},Vt.createElement(fs.Z,{className:`${Rt?le.open:""}`,style:{fontSize:9,marginLeft:3,transition:"all .2s"},rev:void 0})),items:[{key:Nt==null?void 0:Nt.id,label:Vt.createElement(vd,{columns:ta,item:Nt,Fques_type:pa==null?void 0:pa.ques_type,Findex:pa==null?void 0:pa.index}),children:Vt.createElement(sd,{data:Nt,exercise_group_id:Ve==null?void 0:Ve.exercise_group_id,Findex:pa==null?void 0:pa.index,scope:Ve==null?void 0:Ve.scope,dispatch:pt})}]}))),(pa==null?void 0:pa.ques_type)!==Tu.fw[7].id&&(pa==null?void 0:pa.ques_type)!==Tu.fw[5].id&&Vt.createElement(sd,{data:pa,scope:Ve==null?void 0:Ve.scope,exercise_group_id:Ve==null?void 0:Ve.exercise_group_id,dispatch:pt}),(pa==null?void 0:pa.ques_type)==Tu.fw[5].id&&Vt.createElement(nd,{data:pa,dispatch:pt,scope:Ve==null?void 0:Ve.scope,exercise_group_id:Ve==null?void 0:Ve.exercise_group_id}))}]})}),(et==null?void 0:et.length)==0&&Vt.createElement(zt.Z,null),Vt.createElement(He.Z,{className:"mt20",pageSize:Ut.limit,current:Ut.page,showSizeChanger:!0,showQuickJumper:!0,showTotal:pa=>Vt.createElement("span",null,"\u5171",Vt.createElement("span",{style:{color:"#165DFF"}}," ",pa," "),"\u6761\u6570\u636E"),onChange:(pa,Pt)=>{Yt(Fs(si({},Ut),{page:pa,limit:Pt}))},total:Be}),(Pe==null?void 0:Pe.key)==="\u7B54\u9898\u8BE6\u60C5"&&Vt.createElement(Sr,null)))};var Xd=(0,he.connect)(({exercise:ce})=>({exercise:ce}),null,null,{forwardRef:!0})((0,a.forwardRef)(Lc)),Sd={wrap:"wrap___nansB"},Pi=z(67294),l0=Object.defineProperty,Jd=Object.defineProperties,Pd=Object.getOwnPropertyDescriptors,Dd=Object.getOwnPropertySymbols,L0=Object.prototype.hasOwnProperty,pd=Object.prototype.propertyIsEnumerable,h0=(ce,se,ae)=>se in ce?l0(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,o0=(ce,se)=>{for(var ae in se||(se={}))L0.call(se,ae)&&h0(ce,ae,se[ae]);if(Dd)for(var ae of Dd(se))pd.call(se,ae)&&h0(ce,ae,se[ae]);return ce},F0=(ce,se)=>Jd(ce,Pd(se)),j0=(ce,se)=>{var ae={};for(var _e in ce)L0.call(ce,_e)&&se.indexOf(_e)<0&&(ae[_e]=ce[_e]);if(ce!=null&&Dd)for(var _e of Dd(ce))se.indexOf(_e)<0&&pd.call(ce,_e)&&(ae[_e]=ce[_e]);return ae},z0=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Em=(ce,se)=>{var ae=ce,{exercise:_e,dispatch:pt,value:Ve}=ae,Dt=j0(ae,["exercise","dispatch","value"]);const[et]=fe.default.useForm(),{NormalResult:{commit_results:Be}}=_e,Pe=(0,he.useParams)(),[Ht,vn]=(0,a.useState)({coursesId:Pe.coursesId,id:Pe.categoryId,categoryId:Pe.categoryId,page:1,limit:50,order:null,sort:"asc"}),[hn,xt]=(0,a.useState)(!1),Gt=[{title:"\u9898\u53F7",dataIndex:"index",width:70,sorter:(Fn,Wt)=>Fn.index-Wt.index,render:(Fn,Wt)=>Pi.createElement("span",{style:{color:"#333"}},Fn)},{title:"\u9898\u578B",dataIndex:"name",width:110,render:(Fn,Wt)=>Pi.createElement("span",{style:{color:"#333"}},Fn)},{title:Pi.createElement("span",null,"\u6B63\u786E\u7387 ",Pi.createElement(Ae.Z,{overlayStyle:{maxWidth:600},title:Pi.createElement(Pi.Fragment,null,Pi.createElement("div",null,Pi.createElement("span",{style:{fontWeight:600}},"\u9898\u76EE\u6B63\u786E\u7387\uFF1A"),"\uFF08\u9898\u76EE\u6EE1\u5206\u4F5C\u7B54\u5B66\u751F\u6570/\u7B54\u9898\u5B66\u751F\u603B\u6570\uFF09*100%"),Pi.createElement("div",null,Pi.createElement("span",{style:{fontWeight:600}},"\u6EE1\u5206\u4F5C\u7B54\u7684\u5B66\u751F\u6570\u4E0E\u5B66\u751F\u603B\u6570\uFF1A"),"\u6839\u636E\u7528\u6237\u7B5B\u9009\u7684\u3010\u7EDF\u8BA1\u8303\u56F4\u3011\u548C\u3010\u5206\u73ED\u3011\u6761\u4EF6\uFF0C\u7EDF\u8BA1\u5BF9\u5E94\u8303\u56F4\u5185\u7684\u5B66\u751F\u6570\u3002"))},Pi.createElement("i",{className:"iconfont icon-xiaowenhao2 font14",style:{cursor:"pointer",color:"#145DFF"}}))),dataIndex:"right_percent",width:95,sorter:(Fn,Wt)=>Fn.right_percent-Wt.right_percent,render:(Fn,Wt)=>Pi.createElement("span",{style:{color:"#333"}},`${Fn}%`)},{title:Pi.createElement("span",null,"\u5F97\u5206\u7387 ",Pi.createElement(Ae.Z,{overlayStyle:{maxWidth:600},title:Pi.createElement(Pi.Fragment,null,Pi.createElement("div",null,Pi.createElement("span",{style:{fontWeight:600}},"\u9898\u76EE\u5F97\u5206\u7387\uFF1A"),"\uFF08\u6240\u6709\u5B66\u751F\u9898\u76EE\u5B9E\u9645\u5F97\u5206\u603B\u548C/(\u5C0F\u9898\u5E94\u5F97\u5206*\u5B66\u751F\u603B\u6570\uFF09*100%"),Pi.createElement("div",null,Pi.createElement("span",{style:{fontWeight:600}},"\u5F97\u5206\u7684\u5B66\u751F\u6570\u4E0E\u5B66\u751F\u603B\u6570\uFF1A"),"\u6839\u636E\u7528\u6237\u7B5B\u9009\u7684\u3010\u7EDF\u8BA1\u8303\u56F4\u3011\u548C\u3010\u5206\u73ED\u3011\u6761\u4EF6\uFF0C\u7EDF\u8BA1\u5BF9\u5E94\u8303\u56F4\u5185\u7684\u5B66\u751F\u6570\u3002"))},Pi.createElement("i",{className:"iconfont icon-xiaowenhao2 font14",style:{cursor:"pointer",color:"#145DFF"}}))),dataIndex:"score_percent",width:95,sorter:(Fn,Wt)=>Fn.score_percent-Wt.score_percent,render:(Fn,Wt)=>Pi.createElement("span",{style:{color:"#333"}},`${Fn}%`)},{title:Pi.createElement("span",null,"\u5DF2\u7B54\u9898\u4EBA\u6570 ",Pi.createElement(Ae.Z,{overlayStyle:{maxWidth:600},title:"\u5DF2\u7ECF\u56DE\u7B54\u8BE5\u9898\u7684\u5B66\u751F\u6570"},Pi.createElement("i",{className:"iconfont icon-xiaowenhao2 font14",style:{cursor:"pointer",color:"#145DFF"}}))),dataIndex:"effictive_counts",width:125,sorter:(Fn,Wt)=>Fn.effictive_counts-Wt.effictive_counts,render:(Fn,Wt)=>Pi.createElement("span",{style:{color:"#333"}},`${Fn}\u4EBA`)},{title:Pi.createElement("span",null,"\u672A\u7B54\u9898\u4EBA\u6570 ",Pi.createElement(Ae.Z,{overlayStyle:{maxWidth:600},title:"\u8FD8\u672A\u56DE\u7B54\u8BE5\u9898\u7684\u5B66\u751F\u6570"},Pi.createElement("i",{className:"iconfont icon-xiaowenhao2 font14",style:{cursor:"pointer",color:"#145DFF"}}))),dataIndex:"un_answer_counts",width:125,sorter:(Fn,Wt)=>Fn.un_answer_counts-Wt.un_answer_counts,render:(Fn,Wt)=>Pi.createElement("span",{style:{color:"#333"}},`${Fn}\u4EBA`)},{title:Pi.createElement("span",null,"\u603B\u4EBA\u6570"),dataIndex:"total_user_counts",width:80,render:(Fn,Wt)=>Pi.createElement("span",{style:{color:"#333"}},`${Fn}\u4EBA`)}],Bn=(...Fn)=>z0(void 0,[...Fn],function*(Wt=Ht){xt(!0);const Ut=yield pt({type:"exercise/getQuestionResult",payload:o0(o0({},Wt),Ve)});xt(!1)});(0,a.useEffect)(()=>{Bn()},[Ht,Ve]);const Dn=()=>{Bn()};return(0,a.useImperativeHandle)(se,()=>({dealData:Dn})),Pi.createElement("div",{className:Sd.wrap},Pi.createElement("div",{className:"mt30"},Pi.createElement("div",{className:"mb20 font16",style:{color:"#000"}},"\u8BD5\u9898\u8BE6\u60C5"),Pi.createElement(x.default,{columns:Gt,rowKey:Fn=>Fn.index,loading:hn,dataSource:Be,onChange:(Fn,Wt,Ut)=>{var Yt;vn(F0(o0({},Ht),{order:Ut==null?void 0:Ut.field,sort:((Yt=Ut==null?void 0:Ut.order)==null?void 0:Yt.replace("end",""))||"asc"}))},pagination:{size:"default",showQuickJumper:!0,showSizeChanger:!0,pageSizeOptions:["50","100","150","200"],pageSize:Ht.limit,current:Ht.page,position:["bottomRight"],onChange:(Fn,Wt)=>{Ht.page=Fn,Ht.limit=Wt,vn(o0({},Ht)),Bn()},total:Be==null?void 0:Be.length,showTotal:(Fn,Wt)=>Pi.createElement("span",null,"\u5171",Pi.createElement("span",{style:{color:"#165DFF"}}," ",Fn," "),"\u6761\u6570\u636E")}})))};var Hm=(0,he.connect)(({exercise:ce})=>({exercise:ce}),null,null,{forwardRef:!0})((0,a.forwardRef)(Em)),qc=z(67294),Wm=Object.defineProperty,$0=Object.getOwnPropertySymbols,em=Object.prototype.hasOwnProperty,Z0=Object.prototype.propertyIsEnumerable,tm=(ce,se,ae)=>se in ce?Wm(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,nm=(ce,se)=>{for(var ae in se||(se={}))em.call(se,ae)&&tm(ce,ae,se[ae]);if($0)for(var ae of $0(se))Z0.call(se,ae)&&tm(ce,ae,se[ae]);return ce},am=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Vm=({exercise:ce,dispatch:se,handleOnComplete:ae})=>{const{actionTabs:_e={},ScoreRangesData:pt}=ce,[Ve]=fe.default.useForm(),Dt=(0,he.useParams)(),[,et,Be]=(0,sn.U)(ne.lL,{exercise_id:Dt==null?void 0:Dt.categoryId}),[Pe,Ht]=(0,a.useState)([{level:"fail_rate",level_zh:"\u4E0D\u53CA\u683C"},{level:"pass_rate",level_zh:"\u53CA\u683C"},{level:"good_rate",level_zh:"\u826F\u597D"},{level:"max_rate",level_zh:"\u4F18\u79C0"}]),vn=[{title:"\u7B49\u7EA7",dataIndex:"level_zh",align:"left",width:180,render:Gt=>qc.createElement("span",{style:{color:"#000000"}},Gt)},{title:"\u5F97\u5206\u533A\u95F4",dataIndex:"level",align:"left",render:(Gt,Bn,Dn)=>qc.createElement("div",{className:"flex item-center"},qc.createElement(fe.default.Item,{className:"mb0",name:Dn===0?"min_rate":Pe[Dn-1].level},qc.createElement(Re.Z,{size:"large",style:{width:"140px"},disabled:!0,suffix:"%"})),qc.createElement("span",{style:{display:"inline-block",width:"20px",height:"1px",border:"1px solid #DCDCDC",marginLeft:"20px",marginRight:"20px",marginBottom:"4px"}}),qc.createElement(fe.default.Item,{className:"mb0",name:Gt,rules:Dn!==3&&[{validator:(Fn,Wt)=>{const Ut=(Dn===0?Ve.getFieldValue("min_rate"):Ve.getFieldValue(Pe[Dn-1].level))+1,Yt=Ve.getFieldValue(Pe[Dn+1].level)-1;return Wt{const{min_rate:Gt=0,fail_rate:Bn=60,pass_rate:Dn=70,good_rate:Fn=90,max_rate:Wt=100}=(pt==null?void 0:pt.score_ranges)||{};Ve.setFieldsValue({min_rate:Gt,fail_rate:Bn,pass_rate:Dn,good_rate:Fn,max_rate:Wt})},xt=()=>{se({type:"exercise/setActionTabs",payload:{key:""}})};return(0,a.useEffect)(()=>{hn()},[pt]),qc.createElement(Fe.default,{centered:!0,title:_e==null?void 0:_e.key,open:(_e==null?void 0:_e.key)==="\u8BBE\u7F6E\u5F97\u5206\u533A\u95F4",width:630,maskClosable:!1,confirmLoading:et,destroyOnClose:!0,onCancel:xt,onOk:()=>{Ve.submit()}},qc.createElement(fe.default,{form:Ve,onValuesChange:()=>{Ve.validateFields()},onFinish:Gt=>am(void 0,null,function*(){(yield Be(nm({exercise_id:Dt.categoryId},Gt))).status===0&&(pe.ZP.success("\u8BBE\u7F6E\u6210\u529F"),xt(),ae==null||ae(),se({type:"exercise/getScoreRangesData",payload:{exercise_id:Dt==null?void 0:Dt.categoryId}}))})},qc.createElement(fe.default.Item,{hidden:!0,name:"min_rate"}),qc.createElement(x.default,{pagination:!1,dataSource:Pe,columns:vn})))};var N0=(0,he.connect)(({exercise:ce})=>({exercise:ce}))(Vm),kd=z(67294),Zg=Object.defineProperty,Qg=Object.defineProperties,Ug=Object.getOwnPropertyDescriptors,$m=Object.getOwnPropertySymbols,Hg=Object.prototype.hasOwnProperty,Wg=Object.prototype.propertyIsEnumerable,eg=(ce,se,ae)=>se in ce?Zg(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,um=(ce,se)=>{for(var ae in se||(se={}))Hg.call(se,ae)&&eg(ce,ae,se[ae]);if($m)for(var ae of $m(se))Wg.call(se,ae)&&eg(ce,ae,se[ae]);return ce},Am=(ce,se)=>Qg(ce,Ug(se));const Vg=({exercise:ce,dispatch:se,handleOnComplete:ae})=>{var _e,pt,Ve,Dt,et;const{actionTabs:Be={},course_groups:Pe=[]}=ce,Ht=(0,he.useParams)(),[,vn,hn,xt]=(0,sn.U)(ne.OO,{exercise_id:Ht==null?void 0:Ht.categoryId}),[Gt,Bn]=(0,a.useState)({page:1,limit:10,exercise_group_id:((_e=Be==null?void 0:Be.data)==null?void 0:_e.exercise_group_id)||"all",keyword:""}),Dn=()=>{se({type:"exercise/setActionTabs",payload:{key:""}})};return(0,a.useEffect)(()=>{Be!=null&&Be.data&&hn(Am(um(um({},Be==null?void 0:Be.data),Gt),{exercise_id:Ht==null?void 0:Ht.categoryId,exercise_group_id:(Gt==null?void 0:Gt.exercise_group_id)=="all"?"":Gt==null?void 0:Gt.exercise_group_id}))},[Be==null?void 0:Be.data,Gt]),kd.createElement(Fe.default,{centered:!0,title:`${Be==null?void 0:Be.key} (${((pt=xt==null?void 0:xt.data)==null?void 0:pt.score_range)||""}, ${((Ve=xt==null?void 0:xt.data)==null?void 0:Ve.score_type)||""})`,open:(Be==null?void 0:Be.key)==="\u5B66\u751F\u5217\u8868",width:700,maskClosable:!1,destroyOnClose:!0,footer:null,onCancel:Dn},kd.createElement("div",{className:"flex item-center justify-between"},kd.createElement(ft.default,{style:{width:256},value:Gt==null?void 0:Gt.exercise_group_id,mode:"multiple",maxTagCount:"responsive",getPopupContainer:Fn=>Fn.parentNode,onChange:Fn=>{let Wt=[...Fn];Wt.length===0&&(Wt=["all"]),Wt.includes("all")&&Wt.length>1&&(Wt[Wt.length-1]=="all"?Wt=["all"]:Wt=Wt.filter(Ut=>Ut!=="all")),Bn(Am(um({},Gt),{exercise_group_id:Wt}))},filterOption:(Fn,Wt)=>Wt.label.indexOf(Fn.toLowerCase())>=0,options:[{label:"\u5168\u90E8\u73ED\u7EA7",value:"all"},...Pe.map(Fn=>({label:Fn==null?void 0:Fn.exercise_group_name,value:Fn==null?void 0:Fn.exercise_group_id}))]}),kd.createElement(Hr.t7,{style:{width:220},placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u5B66\u53F7\u641C\u7D22",onChange:Fn=>{Bn(Am(um({},Gt),{keyword:Fn}))}})),kd.createElement(x.default,{className:"mt10",dataSource:((Dt=xt==null?void 0:xt.data)==null?void 0:Dt.list)||[],scroll:{y:500},loading:vn,columns:[{title:"\u5E8F\u53F7",dataIndex:"index",width:50},{title:"\u59D3\u540D",dataIndex:"name"},{title:"\u5B66\u53F7/\u5DE5\u53F7",dataIndex:"student_id"},{title:"\u5206\u73ED",dataIndex:"course_group_name"},{title:"\u6700\u7EC8\u6210\u7EE9",align:"right",dataIndex:"score",width:100}],pagination:{current:Gt.page,pageSize:Gt==null?void 0:Gt.limit,onChange:(Fn,Wt)=>{Bn(Am(um({},Gt),{page:Fn,limit:Wt}))},total:((et=xt==null?void 0:xt.data)==null?void 0:et.count)||0,showTotal:Fn=>kd.createElement("span",{className:"font12 c-666"},"\u5171",kd.createElement("span",{style:{color:"#3061D0"}},Fn),"\u6761\u6570\u636E")}}))};var Gg=(0,he.connect)(({exercise:ce})=>({exercise:ce}))(Vg),jd=z(67294),Kg=Object.defineProperty,Yg=Object.defineProperties,Xg=Object.getOwnPropertyDescriptors,tg=Object.getOwnPropertySymbols,Jg=Object.prototype.hasOwnProperty,qg=Object.prototype.propertyIsEnumerable,ng=(ce,se,ae)=>se in ce?Kg(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,rm=(ce,se)=>{for(var ae in se||(se={}))Jg.call(se,ae)&&ng(ce,ae,se[ae]);if(tg)for(var ae of tg(se))qg.call(se,ae)&&ng(ce,ae,se[ae]);return ce},lm=(ce,se)=>Yg(ce,Xg(se));const _g=({exercise:ce,dispatch:se,handleOnComplete:ae})=>{var _e,pt,Ve,Dt,et,Be,Pe,Ht,vn,hn,xt,Gt,Bn,Dn,Fn,Wt,Ut;const{actionTabs:Yt={},course_groups:ta=[]}=ce,nn=(0,he.useParams)(),[,zn,mn,pa]=(0,sn.U)(ne.OO,{exercise_id:nn==null?void 0:nn.categoryId}),[,Pt,Nt,Rt]=(0,sn.U)(ne.hk,{exercise_id:nn==null?void 0:nn.categoryId}),[Xt,cn]=(0,a.useState)({page:1,limit:10,type:((_e=Yt==null?void 0:Yt.data)==null?void 0:_e.type)||2,exercise_group_id:((pt=Yt==null?void 0:Yt.data)==null?void 0:pt.exercise_group_id)==-1||((Ve=Yt==null?void 0:Yt.data)==null?void 0:Ve.exercise_group_id)==null?"all":(Dt=Yt==null?void 0:Yt.data)==null?void 0:Dt.exercise_group_id,keyword:"",sub_type:(et=Yt==null?void 0:Yt.data)==null?void 0:et.sub_type}),tn=()=>{se({type:"exercise/setActionTabs",payload:{key:""}})},Ja=(0,a.useMemo)(()=>{var ha;const dt=[{title:"\u5E8F\u53F7",dataIndex:"index",width:60},{title:"\u59D3\u540D",dataIndex:"name"},{title:"\u5B66\u53F7/\u5DE5\u53F7",dataIndex:"student_id"},{title:"\u5206\u73ED",dataIndex:"course_group_name"}];return(Xt==null?void 0:Xt.type)===2&&dt.push({title:"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score"},{title:"\u64CD\u4F5C",align:"right",dataIndex:"text",render:(Fa,ia)=>jd.createElement("a",{onClick:()=>{(0,de.xg)(`/classrooms/${nn.coursesId}/exercise/${nn.categoryId}/review/${ia==null?void 0:ia.login}`)}},"\u67E5\u770B\u8BE6\u60C5")}),(Xt==null?void 0:Xt.type)===3&&dt.push({title:(ha=Yt==null?void 0:Yt.data)!=null&&ha.isFinalScore?"\u6700\u7EC8\u6210\u7EE9":"\u5F97\u5206/\u5206\u6570",dataIndex:"score",align:"center"}),dt},[Xt==null?void 0:Xt.type,(Be=Yt==null?void 0:Yt.data)==null?void 0:Be.isFinalScore]);return(0,a.useEffect)(()=>{var ha,dt;(Yt==null?void 0:Yt.key)==="\u5B66\u751F\u8BE6\u60C52"&&(Yt!=null&&Yt.data)&&((ha=Yt==null?void 0:Yt.data)!=null&&ha.isFinalScore?mn(lm(rm({},Xt),{exercise_id:nn==null?void 0:nn.categoryId,exercise_group_id:(Xt==null?void 0:Xt.exercise_group_id)=="all"?"":Xt==null?void 0:Xt.exercise_group_id})):Nt(lm(rm({},Xt),{exercise_id:nn==null?void 0:nn.categoryId,exercise_group_id:(Xt==null?void 0:Xt.exercise_group_id)=="all"?"":Xt==null?void 0:Xt.exercise_group_id,question_type:(dt=Yt==null?void 0:Yt.data)==null?void 0:dt.question_type})))},[Xt,Yt==null?void 0:Yt.data]),jd.createElement(Fe.default,{centered:!0,title:Yt==null?void 0:Yt.title,open:(Yt==null?void 0:Yt.key)==="\u5B66\u751F\u8BE6\u60C52",width:800,maskClosable:!1,destroyOnClose:!0,footer:null,onCancel:tn},((Pe=Yt==null?void 0:Yt.data)==null?void 0:Pe.type)===3&&jd.createElement("div",{className:"flex flex-wrap gap-20px c-grey-666 mb20"},(vn=(Ht=Yt==null?void 0:Yt.data)==null?void 0:Ht.exercise_group_list)==null?void 0:vn.map((ha,dt)=>{var Fa;return jd.createElement("span",{key:dt},ha==null?void 0:ha.course_group_name,jd.createElement("span",{className:"ml10 c-black"},ha==null?void 0:ha.value,((Fa=Yt==null?void 0:Yt.data)==null?void 0:Fa.questionsscoreType)||"%"))})),jd.createElement("div",{className:"flex item-center justify-between"},jd.createElement(ft.default,{style:{width:140},value:Xt==null?void 0:Xt.exercise_group_id,mode:"multiple",maxTagCount:"responsive",getPopupContainer:ha=>ha.parentNode,onChange:ha=>{let dt=[...ha];dt.length===0&&(dt=["all"]),dt.includes("all")&&dt.length>1&&(dt[dt.length-1]=="all"?dt=["all"]:dt=dt.filter(Fa=>Fa!=="all")),cn(lm(rm({},Xt),{exercise_group_id:dt}))},filterOption:(ha,dt)=>dt.label.indexOf(ha.toLowerCase())>=0,options:[{label:"\u5168\u90E8\u73ED\u7EA7",value:"all"},...ta.map(ha=>({label:ha==null?void 0:ha.exercise_group_name,value:ha==null?void 0:ha.exercise_group_id}))]}),jd.createElement(Hr.t7,{style:{width:220},placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u5B66\u53F7\u641C\u7D22",onChange:ha=>{cn(lm(rm({},Xt),{keyword:ha}))}})),jd.createElement(x.default,{className:"mt20",dataSource:((hn=Yt==null?void 0:Yt.data)!=null&&hn.isFinalScore?(xt=pa==null?void 0:pa.data)==null?void 0:xt.list:(Bn=(Gt=Rt==null?void 0:Rt.data)==null?void 0:Gt.student_score)==null?void 0:Bn.list)||[],scroll:{y:500},loading:zn||Pt,columns:Ja,pagination:{current:Xt.page,pageSize:Xt==null?void 0:Xt.limit,onChange:(ha,dt)=>{cn(lm(rm({},Xt),{page:ha,limit:dt}))},total:((Dn=Yt==null?void 0:Yt.data)!=null&&Dn.isFinalScore?(Fn=pa==null?void 0:pa.data)==null?void 0:Fn.count:(Ut=(Wt=Rt==null?void 0:Rt.data)==null?void 0:Wt.student_score)==null?void 0:Ut.count)||0,showTotal:ha=>jd.createElement("span",{className:"font12 c-666"},"\u5171",jd.createElement("span",{style:{color:"#3061D0"}},ha),"\u6761\u6570\u636E")}}))};var $g=(0,he.connect)(({exercise:ce})=>({exercise:ce}))(_g),ef={tables:"tables___zoHyz"},tf=Object.defineProperty,nf=Object.defineProperties,af=Object.getOwnPropertyDescriptors,ag=Object.getOwnPropertySymbols,uf=Object.prototype.hasOwnProperty,rf=Object.prototype.propertyIsEnumerable,ug=(ce,se,ae)=>se in ce?tf(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,O0=(ce,se)=>{for(var ae in se||(se={}))uf.call(se,ae)&&ug(ce,ae,se[ae]);if(ag)for(var ae of ag(se))rf.call(se,ae)&&ug(ce,ae,se[ae]);return ce},hm=(ce,se)=>nf(ce,af(se));const lf=({Data:ce=[],yAxisName:se="",legendData:ae=[],className:_e="",style:pt={},labelTrue:Ve=!1,grid:Dt={},yAxisNamePadding:et=0,ReactEchartsOnEvents:Be})=>{const Pe=(0,a.useRef)(null),Ht=["#F3647C","#FBD438","#FF9D18","#37CCCC","#3BA1FF","#4ECC74","#3061D0","#7F30D0","#C60101","#9096A3","#E900F5","#FA6400","#3D81B7","#D4BE26","#34A858","#FE8DB3"];return(0,a.useEffect)(()=>{if(Pe.current){const vn=Pe.current.getEchartsInstance(),hn=[];ae==null||ae.forEach((xt,Gt)=>{hn.push((Ht==null?void 0:Ht[Gt])||`rgb(${Math.floor(Math.random()*256)}, ${Math.floor(Math.random()*256)}, ${Math.floor(Math.random()*256)})`)}),vn.setOption({dataset:{source:[["product",...ae],...ce]},legend:{right:"1%",top:"5%",type:"scroll",width:"90%",itemWidth:10,itemHeight:10,itemGap:22},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:O0({left:"5%",right:"2%",top:"20%",bottom:40},Dt),dataZoom:[O0({type:"slider"},(ce==null?void 0:ce.length)>10||(ae==null?void 0:ae.length)>6?{start:0,end:10}:{})],yAxis:{name:se,splitArea:{show:!1},nameTextStyle:{color:"#000",padding:et},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:"#EDEDED"}},axisLabel:{color:"#000"}},xAxis:{type:"category",silent:!1,splitLine:{show:!1},splitArea:{show:!1},axisTick:{show:!1},axisLine:{lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#000"}},series:ae==null?void 0:ae.map(()=>({type:"bar",barMaxWidth:40,label:{show:Ve,position:"top"}})),color:hn},!0)}},[ce,se,ae,Ve,Dt]),a.createElement(td.Z,{ref:Pe,className:`w-full ${_e}`,style:O0({height:400,background:"#F6F7F9"},pt),onEvents:Be,option:{}})},om=a.memo(lf),of=({exercise:ce,dispatch:se,value:ae})=>{var _e,pt,Ve,Dt,et,Be,Pe,Ht,vn,hn,xt,Gt,Bn,Dn,Fn,Wt,Ut,Yt,ta,nn,zn,mn,pa,Pt,Nt,Rt,Xt,cn,tn;const{actionTabs:Ja={}}=ce,ha=(0,he.useParams)(),[dt,Fa]=(0,a.useState)(1),[,ia,wu,Sa]=(0,sn.U)(ne.iU,{exercise_id:ha==null?void 0:ha.categoryId,exercise_group_id:(_e=ae==null?void 0:ae.exercise_group_id)!=null&&_e.includes("all")?null:ae==null?void 0:ae.exercise_group_id}),[,Hn,Oa,tu]=(0,sn.U)(ne.fG,{exercise_id:ha==null?void 0:ha.categoryId,exercise_group_id:(pt=ae==null?void 0:ae.exercise_group_id)!=null&&pt.includes("all")?null:ae==null?void 0:ae.exercise_group_id}),Ka=(En={},da)=>{se({type:"exercise/setActionTabs",payload:{title:"\u5B66\u751F\u8BE6\u60C5",key:"\u5B66\u751F\u8BE6\u60C52",data:{sub_type:da,exercise_group_id:(En==null?void 0:En.course_group_id)==-1?"all":En==null?void 0:En.course_group_id,isFinalScore:En==null?void 0:En.isFinalScore}}})},Ba=(0,a.useCallback)(En=>{var da,Ha,au,Ya;Ka(hm(O0({},((Ha=(da=Sa==null?void 0:Sa.data)==null?void 0:da.list)==null?void 0:Ha[(En==null?void 0:En.dataIndex)||0])||{}),{isFinalScore:!0}),(((Ya=(au=En==null?void 0:En.encode)==null?void 0:au.y)==null?void 0:Ya[0])||1)-1)},[(Ve=Sa==null?void 0:Sa.data)==null?void 0:Ve.list]),La=(En={},da=null)=>{var Ha;console.log("asdfasdf===",En),se({type:"exercise/setActionTabs",payload:{key:"\u7B54\u9898\u8BE6\u60C5",data:{title:(En==null?void 0:En.question_type)||"",id:En==null?void 0:En.question_id,exercise_group_id:ae==null?void 0:ae.exercise_group_id,tabActive:"3",exercise_group_list:(Ha=En==null?void 0:En.list)==null?void 0:Ha.map(au=>hm(O0({},au),{value:da===0?au==null?void 0:au.correct_percent:da===1?au==null?void 0:au.score_percent:au==null?void 0:au.value})),questionsscoreType:En==null?void 0:En.questionsscoreType}}})},Zn=(0,a.useCallback)((En,da={})=>{var Ha,au;La((au=(Ha=tu==null?void 0:tu.data)==null?void 0:Ha.question_type_list)==null?void 0:au[(En==null?void 0:En.dataIndex)||0],0)},[(Dt=tu==null?void 0:tu.data)==null?void 0:Dt.question_type_list]),bn=(0,a.useCallback)((En,da={})=>{var Ha,au;La((au=(Ha=tu==null?void 0:tu.data)==null?void 0:Ha.question_type_list)==null?void 0:au[(En==null?void 0:En.dataIndex)||0],1)},[(et=tu==null?void 0:tu.data)==null?void 0:et.question_type_list]),ca=(0,a.useCallback)(En=>{var da,Ha,au;const Ya=(Ha=(da=tu==null?void 0:tu.data)==null?void 0:da.class_average_score_list)==null?void 0:Ha[(En==null?void 0:En.dataIndex)||0];se({type:"exercise/setActionTabs",payload:{key:"\u5B66\u751F\u8BE6\u60C52",title:"\u5B66\u751F\u8BE6\u60C5",data:{exercise_group_id:ae==null?void 0:ae.exercise_group_id,exercise_group_list:Ya==null?void 0:Ya.list,type:3,isFinalScore:(au=En==null?void 0:En.data)==null?void 0:au[0].includes("\u6700\u7EC8\u6210\u7EE9"),question_type:Ya==null?void 0:Ya.question_type,questionsscoreType:"\u5206"}}})},[(Be=tu==null?void 0:tu.data)==null?void 0:Be.class_average_score_list,ae]),Qn=([En,da,Ha],au=0)=>a.createElement("span",{className:En>0?"current-primary-hover":"",style:{display:"inline-block",width:"100%",height:47,lineHeight:"47px"},onClick:()=>{En>0&&Ka(hm(O0({},da),{isFinalScore:!0}),au)}},`${En}${dt===1?"":"%"}`),pn=(()=>{var En,da,Ha,au,Ya,Cr,Zu,sa,Ru,mr,gl,Tl;const mu=[{title:"\u5206\u73ED",dataIndex:"course_group_name",align:"left"},{title:((da=(En=Sa==null?void 0:Sa.data)==null?void 0:En.titles)==null?void 0:da[0])||"",dataIndex:"column_1",align:"center",render:(...$u)=>Qn($u,0)},{title:((au=(Ha=Sa==null?void 0:Sa.data)==null?void 0:Ha.titles)==null?void 0:au[1])||"",dataIndex:"column_2",align:"center",render:(...$u)=>Qn($u,1)},{title:((Cr=(Ya=Sa==null?void 0:Sa.data)==null?void 0:Ya.titles)==null?void 0:Cr[2])||"",dataIndex:"column_3",align:"center",render:(...$u)=>Qn($u,2)},{title:((sa=(Zu=Sa==null?void 0:Sa.data)==null?void 0:Zu.titles)==null?void 0:sa[3])||"",dataIndex:"column_4",align:"center",render:(...$u)=>Qn($u,3)},{title:((mr=(Ru=Sa==null?void 0:Sa.data)==null?void 0:Ru.titles)==null?void 0:mr[4])||"",dataIndex:"column_5",align:"center",render:(...$u)=>Qn($u,4)},{title:((Tl=(gl=Sa==null?void 0:Sa.data)==null?void 0:gl.titles)==null?void 0:Tl[5])||"",dataIndex:"column_6",align:"center",render:(...$u)=>Qn($u,5)}];return dt===1&&mu.push({title:"\u4EBA\u6570",dataIndex:"total_count",align:"center",render:(...$u)=>Qn($u,6)}),mu})();(0,a.useEffect)(()=>{var En;wu({count_by:dt,exercise_id:ha==null?void 0:ha.categoryId,exercise_group_id:(En=ae==null?void 0:ae.exercise_group_id)!=null&&En.includes("all")?null:ae==null?void 0:ae.exercise_group_id})},[dt,ae==null?void 0:ae.exercise_group_id]),(0,a.useEffect)(()=>{var En;Oa({exercise_id:ha==null?void 0:ha.categoryId,exercise_group_id:(En=ae==null?void 0:ae.exercise_group_id)!=null&&En.includes("all")?null:ae==null?void 0:ae.exercise_group_id})},[ae==null?void 0:ae.exercise_group_id]);const Tn=(0,a.useMemo)(()=>{var En,da;return(da=(En=tu==null?void 0:tu.data)==null?void 0:En.question_type_score_list)==null?void 0:da.map((Ha,au)=>{var Ya,Cr,Zu,sa;return a.createElement(om,{key:au,Data:((Ya=Ha==null?void 0:Ha.list)==null?void 0:Ya.map(Ru=>{var mr;return[(Ru==null?void 0:Ru.title)||"",...((mr=Ru==null?void 0:Ru.list)==null?void 0:mr.map(gl=>gl==null?void 0:gl.value))||[]]}))||[],yAxisName:Ha==null?void 0:Ha.title,labelTrue:!0,yAxisNamePadding:[0,0,10,0],legendData:((sa=(Zu=(Cr=Ha==null?void 0:Ha.list)==null?void 0:Cr[0])==null?void 0:Zu.list)==null?void 0:sa.map(Ru=>Ru==null?void 0:Ru.course_group_name))||[],ReactEchartsOnEvents:{click:Ru=>{var mr;console.log("params",Ru),La(hm(O0({},((mr=Ha==null?void 0:Ha.list)==null?void 0:mr[(Ru==null?void 0:Ru.dataIndex)||0])||{}),{questionsscoreType:"\u5206"}))}}})})},[(Pe=tu==null?void 0:tu.data)==null?void 0:Pe.question_type_score_list]);return a.createElement(a.Fragment,null,a.createElement(jt.Z,{spinning:ia},a.createElement("div",{className:"flex item-center justify-between mt30"},a.createElement("div",{className:"font16"},"\u6210\u7EE9\u5206\u5E03",a.createElement("span",{className:"font14",style:{color:"#FF9D18"}},"\uFF08\u70B9\u51FB\u7EDF\u8BA1\u6570\u503C\u6216\u67F1\u72B6\u56FE\u53EF\u67E5\u770B\u6570\u636E\u8BE6\u60C5\uFF09")),a.createElement("div",{className:"flex item-center gap-20px"},a.createElement(ft.default,{style:{width:140},size:"large",value:dt,onChange:En=>{Fa(En)},options:[{value:1,label:"\u6309\u4EBA\u6570\u7EDF\u8BA1"},{value:2,label:"\u6309\u767E\u5206\u6BD4\u7EDF\u8BA1"}]}))),a.createElement(x.default,{className:`mt10 ${ef.tables}`,bordered:!0,columns:pn,dataSource:((Ht=Sa==null?void 0:Sa.data)==null?void 0:Ht.list)||[],pagination:!1}),a.createElement("div",{className:"mt20"},a.createElement(om,{Data:((hn=(vn=Sa==null?void 0:Sa.data)==null?void 0:vn.list)==null?void 0:hn.map(En=>[(En==null?void 0:En.course_group_name)||"",(En==null?void 0:En.column_1)||0,(En==null?void 0:En.column_2)||0,(En==null?void 0:En.column_3)||0,(En==null?void 0:En.column_4)||0,(En==null?void 0:En.column_5)||0,(En==null?void 0:En.column_6)||0]))||[],grid:{left:"5%",top:"15%"},yAxisNamePadding:[0,0,10,70],yAxisName:`\u5404\u73ED\u7EA7\u6210\u7EE9\u5206\u5E03\uFF08${dt===1?"\u4EBA\u6570":"\u767E\u5206\u6BD4"}\uFF09`,legendData:((xt=Sa==null?void 0:Sa.data)==null?void 0:xt.titles)||[],ReactEchartsOnEvents:{click:Ba}}))),a.createElement(jt.Z,{spinning:Hn},a.createElement("div",{className:"mt20 flex flex-col gap-10px"},a.createElement("div",{className:"font16"},"\u5C0F\u9898\u5BF9\u6BD4",a.createElement("span",{className:"font14",style:{color:"#FF9D18"}},"\uFF08\u70B9\u51FB\u67F1\u72B6\u56FE\u53EF\u67E5\u770B\u6570\u636E\u8BE6\u60C5\uFF09")),a.createElement(om,{Data:((Bn=(Gt=tu==null?void 0:tu.data)==null?void 0:Gt.question_type_list)==null?void 0:Bn.map(En=>{var da;return[(En==null?void 0:En.question_type)||"",...((da=En==null?void 0:En.list)==null?void 0:da.map(Ha=>Ha.correct_percent))||[]]}))||[],yAxisName:"\u6B63\u786E\u7387",yAxisNamePadding:[0,0,10,0],legendData:((Ut=(Wt=(Fn=(Dn=tu==null?void 0:tu.data)==null?void 0:Dn.question_type_list)==null?void 0:Fn[0])==null?void 0:Wt.list)==null?void 0:Ut.map(En=>En==null?void 0:En.course_group_name))||[],ReactEchartsOnEvents:{click:Zn}}),a.createElement(om,{Data:((ta=(Yt=tu==null?void 0:tu.data)==null?void 0:Yt.question_type_list)==null?void 0:ta.map(En=>{var da;return[(En==null?void 0:En.question_type)||"",...((da=En==null?void 0:En.list)==null?void 0:da.map(Ha=>Ha.score_percent))||[]]}))||[],yAxisName:"\u5F97\u5206\u7387",yAxisNamePadding:[0,0,10,0],legendData:((pa=(mn=(zn=(nn=tu==null?void 0:tu.data)==null?void 0:nn.question_type_list)==null?void 0:zn[0])==null?void 0:mn.list)==null?void 0:pa.map(En=>En==null?void 0:En.course_group_name))||[],ReactEchartsOnEvents:{click:bn}}))),a.createElement(jt.Z,{spinning:Hn},a.createElement("div",{className:"mt20 flex flex-col gap-10px"},a.createElement("div",{className:"font16"},"\u5E73\u5747\u5206",a.createElement("span",{className:"font14",style:{color:"#FF9D18"}},"\uFF08\u70B9\u51FB\u67F1\u72B6\u56FE\u53EF\u67E5\u770B\u6570\u636E\u8BE6\u60C5\uFF09")),a.createElement(om,{Data:((Nt=(Pt=tu==null?void 0:tu.data)==null?void 0:Pt.class_average_score_list)==null?void 0:Nt.map(En=>{var da;return[(En==null?void 0:En.title)||"",...((da=En==null?void 0:En.list)==null?void 0:da.map(Ha=>Ha==null?void 0:Ha.value))||[]]}))||[],yAxisName:"\u5404\u73ED\u7EA7\u5E73\u5747\u5206",labelTrue:!0,yAxisNamePadding:[0,0,10,0],legendData:((tn=(cn=(Xt=(Rt=tu==null?void 0:tu.data)==null?void 0:Rt.class_average_score_list)==null?void 0:Xt[0])==null?void 0:cn.list)==null?void 0:tn.map(En=>En==null?void 0:En.course_group_name))||[],ReactEchartsOnEvents:{click:ca}}),a.createElement("div",{className:"flex flex-col"},Tn))),(Ja==null?void 0:Ja.key)==="\u7B54\u9898\u8BE6\u60C5"&&a.createElement(Sr,null),(Ja==null?void 0:Ja.key)==="\u5B66\u751F\u8BE6\u60C52"&&a.createElement($g,null))};var sf=(0,he.connect)(({exercise:ce})=>({exercise:ce}))(of),cf=z(33863),M0=z(67294),df=Object.defineProperty,mf=Object.defineProperties,gf=Object.getOwnPropertyDescriptors,rg=Object.getOwnPropertySymbols,ff=Object.prototype.hasOwnProperty,vf=Object.prototype.propertyIsEnumerable,lg=(ce,se,ae)=>se in ce?df(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,Fm=(ce,se)=>{for(var ae in se||(se={}))ff.call(se,ae)&&lg(ce,ae,se[ae]);if(rg)for(var ae of rg(se))vf.call(se,ae)&&lg(ce,ae,se[ae]);return ce},ym=(ce,se)=>mf(ce,gf(se));const pf=({exercise:ce,dispatch:se,handleOnComplete:ae})=>{var _e,pt,Ve,Dt,et;const{actionTabs:Be={},course_groups:Pe=[]}=ce,Ht=(0,he.useParams)(),[,vn,hn,xt]=(0,sn.U)(ne.hv,{exercise_id:Ht==null?void 0:Ht.categoryId}),[Gt,Bn]=(0,a.useState)({page:1,limit:10,type:1,exercise_group_id:"all",keyword:""}),Dn=(0,a.useMemo)(()=>{var Wt,Ut,Yt;return((Yt=(Ut=(Wt=xt==null?void 0:xt.data)==null?void 0:Wt.question)==null?void 0:Ut.question_choices)==null?void 0:Yt.filter(ta=>ta==null?void 0:ta.right_answer).map(ta=>ta==null?void 0:ta.exercise_choice_id))||[]},[(_e=xt==null?void 0:xt.data)==null?void 0:_e.question]),Fn=()=>{se({type:"exercise/setActionTabs",payload:{key:""}})};return(0,a.useEffect)(()=>{var Wt,Ut,Yt,ta,nn;Be!=null&&Be.data&&hn(ym(Fm({},Gt),{exercise_group_id:(Gt==null?void 0:Gt.exercise_group_id)=="all"?"":Gt==null?void 0:Gt.exercise_group_id,exercise_id:Ht==null?void 0:Ht.categoryId,question_id:(Ut=(Wt=Be==null?void 0:Be.data)==null?void 0:Wt.questionDetail)==null?void 0:Ut.question_id,question_number:(ta=(Yt=Be==null?void 0:Be.data)==null?void 0:Yt.questionDetail)==null?void 0:ta.index,scope:(nn=Be==null?void 0:Be.data)==null?void 0:nn.scope}))},[Be==null?void 0:Be.data,Gt]),M0.createElement(Fe.default,{centered:!0,title:Be==null?void 0:Be.title,open:(Be==null?void 0:Be.key)==="\u5B66\u751F\u8BE6\u60C5",width:700,maskClosable:!1,destroyOnClose:!0,footer:null,onCancel:Fn},M0.createElement("div",{className:"flex item-center justify-between"},M0.createElement(ft.default,{style:{width:256},mode:"multiple",maxTagCount:"responsive",value:Gt==null?void 0:Gt.exercise_group_id,getPopupContainer:Wt=>Wt.parentNode,onChange:Wt=>{console.log(Wt);let Ut=[...Wt];Ut.length===0&&(Ut=["all"]),Ut.includes("all")&&Ut.length>1&&(Ut[Ut.length-1]=="all"?Ut=["all"]:Ut=Ut.filter(Yt=>Yt!=="all")),Bn(ym(Fm({},Gt),{exercise_group_id:Ut}))},filterOption:(Wt,Ut)=>Ut.label.indexOf(Wt.toLowerCase())>=0,options:[{label:"\u5168\u90E8\u73ED\u7EA7",value:"all"},...Pe.map(Wt=>({label:Wt==null?void 0:Wt.exercise_group_name,value:Wt==null?void 0:Wt.exercise_group_id}))]}),M0.createElement(Hr.t7,{style:{width:220},placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u5B66\u53F7\u641C\u7D22",onChange:Wt=>{Bn(ym(Fm({},Gt),{keyword:Wt}))}})),M0.createElement(x.default,{className:"mt10",dataSource:((Ve=(pt=xt==null?void 0:xt.data)==null?void 0:pt.student_score)==null?void 0:Ve.list)||[],scroll:{y:500},loading:vn,columns:[{title:"\u5E8F\u53F7",dataIndex:"index",width:60},{title:"\u59D3\u540D",dataIndex:"name"},{title:"\u5B66\u53F7/\u5DE5\u53F7",dataIndex:"student_id"},{title:"\u5206\u73ED",dataIndex:"course_group_name",render:Wt=>Wt||"\u672A\u5206\u73ED"},{title:"\u662F\u5426\u6B63\u786E",align:"center",dataIndex:"users_answer_info.choices",render:(Wt,Ut)=>{var Yt,ta,nn,zn;return((ta=(Yt=Ut==null?void 0:Ut.users_answer_info)==null?void 0:Yt.choices)==null?void 0:ta.length)>0&&((zn=(nn=Ut==null?void 0:Ut.users_answer_info)==null?void 0:nn.choices)!=null&&zn.every(mn=>Dn.includes(mn==null?void 0:mn.exercise_choice_id)))?"\u662F":"\u5426"}},{title:"\u5F97\u5206/\u5206\u6570",align:"center",dataIndex:"users_answer_info.score",render:(Wt,Ut)=>{var Yt,ta,nn;return`${(Yt=Ut==null?void 0:Ut.users_answer_info)==null?void 0:Yt.score}/${(nn=(ta=xt==null?void 0:xt.data)==null?void 0:ta.question)==null?void 0:nn.question_score}`}}],pagination:{current:Gt.page,pageSize:Gt==null?void 0:Gt.limit,onChange:(Wt,Ut)=>{Bn(ym(Fm({},Gt),{page:Wt,limit:Ut}))},total:((et=(Dt=xt==null?void 0:xt.data)==null?void 0:Dt.student_score)==null?void 0:et.count)||0,showTotal:Wt=>M0.createElement("span",{className:"font12 c-666"},"\u5171",M0.createElement("span",{style:{color:"#3061D0"}},Wt),"\u6761\u6570\u636E")}}))};var Ef=(0,he.connect)(({exercise:ce})=>({exercise:ce}))(pf),Af={tables:"tables___MR1w6",tabSty:"tabSty___Rp0MG"},hf=Object.defineProperty,og=Object.getOwnPropertySymbols,Ff=Object.prototype.hasOwnProperty,yf=Object.prototype.propertyIsEnumerable,ig=(ce,se,ae)=>se in ce?hf(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,Cm=(ce,se)=>{for(var ae in se||(se={}))Ff.call(se,ae)&&ig(ce,ae,se[ae]);if(og)for(var ae of og(se))yf.call(se,ae)&&ig(ce,ae,se[ae]);return ce};const Cf=({Data:ce=[],yAxisName:se="",legendData:ae=[],className:_e="",style:pt={},labelTrue:Ve=!1,grid:Dt={},yAxisNamePadding:et=0,ReactEchartsOnEvents:Be})=>{const Pe=(0,a.useRef)(null),Ht=(ae==null?void 0:ae.length)>5?["#8197EB","#63AEF4","#82D4FF","#37CCCC","#4ECC74","#F9C94D","#FB9A77","#F3647C","#C60101","#9096A3","#E900F5","#FA6400","#3D81B7","#D4BE26","#34A858","#FE8DB3"]:["#4ECC74","#60B1FC","#FB9A77"];return(0,a.useEffect)(()=>{if(Pe.current){const vn=Pe.current.getEchartsInstance(),hn=[];ae==null||ae.forEach((xt,Gt)=>{hn.push((Ht==null?void 0:Ht[Gt])||`rgb(${Math.floor(Math.random()*256)}, ${Math.floor(Math.random()*256)}, ${Math.floor(Math.random()*256)})`)}),vn.setOption({dataset:{source:[["product",...ae],...ce]},legend:{right:"1%",top:"5%",type:"scroll",width:"90%",itemWidth:10,itemHeight:10,itemGap:22},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:Cm({left:"5%",right:"2%",top:"20%",bottom:40},Dt),dataZoom:[Cm({type:"slider"},(ce==null?void 0:ce.length)>10||(ae==null?void 0:ae.length)>6?{start:0,end:10}:{})],yAxis:{name:se,splitArea:{show:!1},nameTextStyle:{color:"#000",padding:et},splitLine:{show:!1},axisLine:{show:!0,lineStyle:{color:"#EDEDED"}},axisLabel:{color:"#000"}},xAxis:{type:"category",silent:!1,splitLine:{show:!1},splitArea:{show:!1},axisTick:{show:!1},axisLine:{lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#000"}},series:ae==null?void 0:ae.map(()=>({type:"bar",barMaxWidth:40,label:{show:Ve,position:"top",color:"#666666",formatter:"{c}%"}})),color:hn},!0)}},[ce,se,ae,Ve,Dt]),a.createElement(td.Z,{ref:Pe,className:`w-full ${_e}`,style:Cm({height:400,background:"#F6F7F9"},pt),onEvents:Be,option:{}})},Bf=a.memo(Cf),Sf=({exercise:ce,dispatch:se},ae)=>{var _e,pt,Ve,Dt;const{actionTabs:et={}}=ce,Be=(0,he.useParams)(),[Pe,Ht]=(0,a.useState)("1"),[vn,hn]=(0,a.useState)("1"),[xt,Gt]=(0,a.useState)(["\u5168\u90E8\u77E5\u8BC6\u70B9"]),Bn=["\u5355\u9009\u9898","\u591A\u9009\u9898","\u5224\u65AD\u9898","\u586B\u7A7A\u9898","\u7B80\u7B54\u9898","\u7F16\u7A0B\u9898","\u7A0B\u5E8F\u586B\u7A7A\u9898","\u7EC4\u5408\u9898"],Dn=["\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],[,Fn,Wt,Ut]=(0,sn.U)(ne.j,{exercise_id:Be==null?void 0:Be.categoryId}),Yt=()=>{Wt({exercise_id:Be==null?void 0:Be.categoryId})};(0,a.useImperativeHandle)(ae,()=>({getTagList:Yt})),(0,a.useEffect)(()=>{Yt()},[]);const ta=(Pt,Nt)=>{const Rt=Nt==="question"?Bn:Dn;return(Pt==null?void 0:Pt.filter(Xt=>xt.includes("\u5168\u90E8\u77E5\u8BC6\u70B9")||xt.length===0?!0:xt.includes(Xt==null?void 0:Xt.tag_disciplines)).map(Xt=>{const cn=Rt.map(tn=>{var Ja;const ha=(Ja=Xt==null?void 0:Xt.question_types)==null?void 0:Ja.find(dt=>Nt==="question"?dt.question_type_name===tn:dt.question_difficulty===tn);return ha?parseFloat(ha.score_rate.replace("%","")):0});return[(Xt==null?void 0:Xt.tag_disciplines)||"",...cn]}))||[]},nn=[{title:"\u77E5\u8BC6\u70B9\u6570\u91CF",dataIndex:"a",key:"a"},{title:"\u5F97\u5206\u7387<60%",dataIndex:"b",key:"b"},{title:"60%<\u5F97\u5206\u7387<70%",dataIndex:"c",key:"c"},{title:"70%<\u5F97\u5206\u7387<85%",dataIndex:"d",key:"d"},{title:"85%<\u5F97\u5206\u7387<100%",dataIndex:"e",key:"e"},{title:"\u5F97\u5206\u7387\u6700\u9AD8\u77E5\u8BC6\u70B9",dataIndex:"f",key:"f"},{title:"\u5F97\u5206\u7387\u6700\u4F4E\u77E5\u8BC6\u70B9",dataIndex:"g",key:"g"}],zn=[{title:"\u77E5\u8BC6\u70B9",width:90,dataIndex:"tag_disciplines",ellipsis:!0,key:"tag_disciplines"},{title:"\u5355\u9009\u9898",children:[{title:a.createElement("span",{style:{width:"45px",display:"inline-block"}},"\u8BD5\u9898\u6570\u91CF"),dataIndex:"a1",key:"a1",align:"center",ellipsis:!0,render:(Pt,Nt)=>{var Rt,Xt;return((Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_type_name)==="\u5355\u9009\u9898"))==null?void 0:Xt.question_count)||0}},{title:"\u5F97\u5206\u7387",dataIndex:"a2",key:"a2",align:"center",ellipsis:!0,render:(Pt,Nt)=>{var Rt;let Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_type_name)==="\u5355\u9009\u9898");return["0%","0.0%"].includes(Xt==null?void 0:Xt.score_rate)?0:(Xt==null?void 0:Xt.score_rate)||0}}]},{title:"\u591A\u9009\u9898",children:[{title:"\u8BD5\u9898\u6570\u91CF",dataIndex:"b1",key:"b2",align:"center",ellipsis:!0,render:(Pt,Nt)=>{var Rt,Xt;return((Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_type_name)==="\u591A\u9009\u9898"))==null?void 0:Xt.question_count)||0}},{title:"\u5F97\u5206\u7387",dataIndex:"b2",key:"b2",align:"center",ellipsis:!0,render:(Pt,Nt)=>{var Rt;let Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_type_name)==="\u591A\u9009\u9898");return["0%","0.0%"].includes(Xt==null?void 0:Xt.score_rate)?0:(Xt==null?void 0:Xt.score_rate)||0}}]},{title:"\u5224\u65AD\u9898",children:[{title:"\u8BD5\u9898\u6570\u91CF",dataIndex:"c1",key:"c1",align:"center",ellipsis:!0,render:(Pt,Nt)=>{var Rt,Xt;return((Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_type_name)==="\u5224\u65AD\u9898"))==null?void 0:Xt.question_count)||0}},{title:"\u5F97\u5206\u7387",dataIndex:"c2",key:"c2",align:"center",ellipsis:!0,render:(Pt,Nt)=>{var Rt;let Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_type_name)==="\u5224\u65AD\u9898");return["0%","0.0%"].includes(Xt==null?void 0:Xt.score_rate)?0:(Xt==null?void 0:Xt.score_rate)||0}}]},{title:"\u586B\u7A7A\u9898",children:[{title:"\u8BD5\u9898\u6570\u91CF",dataIndex:"m1",key:"m1",align:"center",ellipsis:!0,render:(Pt,Nt)=>{var Rt,Xt;return((Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_type_name)==="\u586B\u7A7A\u9898"))==null?void 0:Xt.question_count)||0}},{title:"\u5F97\u5206\u7387",dataIndex:"m2",key:"m2",align:"center",ellipsis:!0,render:(Pt,Nt)=>{var Rt;let Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_type_name)==="\u586B\u7A7A\u9898");return["0%","0.0%"].includes(Xt==null?void 0:Xt.score_rate)?0:(Xt==null?void 0:Xt.score_rate)||0}}]},{title:"\u7B80\u7B54\u9898",children:[{title:"\u8BD5\u9898\u6570\u91CF",dataIndex:"d1",key:"d1",align:"center",ellipsis:!0,render:(Pt,Nt)=>{var Rt,Xt;return((Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_type_name)==="\u7B80\u7B54\u9898"))==null?void 0:Xt.question_count)||0}},{title:"\u5F97\u5206\u7387",dataIndex:"d2",key:"d2",align:"center",ellipsis:!0,render:(Pt,Nt)=>{var Rt;let Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_type_name)==="\u7B80\u7B54\u9898");return["0%","0.0%"].includes(Xt==null?void 0:Xt.score_rate)?0:(Xt==null?void 0:Xt.score_rate)||0}}]},{title:"\u7F16\u7A0B\u9898",children:[{title:"\u8BD5\u9898\u6570\u91CF",dataIndex:"e1",key:"e2",align:"center",ellipsis:!0,render:(Pt,Nt)=>{var Rt,Xt;return((Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_type_name)==="\u7F16\u7A0B\u9898"))==null?void 0:Xt.question_count)||0}},{title:"\u5F97\u5206\u7387",dataIndex:"e2",key:"e2",align:"center",ellipsis:!0,render:(Pt,Nt)=>{var Rt;let Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_type_name)==="\u7F16\u7A0B\u9898");return["0%","0.0%"].includes(Xt==null?void 0:Xt.score_rate)?0:(Xt==null?void 0:Xt.score_rate)||0}}]},{title:"\u7A0B\u5E8F\u586B\u7A7A\u9898",children:[{title:"\u8BD5\u9898\u6570\u91CF",dataIndex:"f1",key:"f1",align:"center",ellipsis:!0,render:(Pt,Nt)=>{var Rt,Xt;return((Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_type_name)==="\u7A0B\u5E8F\u586B\u7A7A\u9898"))==null?void 0:Xt.question_count)||0}},{title:"\u5F97\u5206\u7387",dataIndex:"f2",key:"f2",align:"center",ellipsis:!0,render:(Pt,Nt)=>{var Rt;let Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_type_name)==="\u7A0B\u5E8F\u586B\u7A7A\u9898");return["0%","0.0%"].includes(Xt==null?void 0:Xt.score_rate)?0:(Xt==null?void 0:Xt.score_rate)||0}}]},{title:"\u7EC4\u5408\u9898",children:[{title:"\u8BD5\u9898\u6570\u91CF",dataIndex:"h1",key:"h2",align:"center",ellipsis:!0,render:(Pt,Nt)=>{var Rt,Xt;return((Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_type_name)==="\u7EC4\u5408\u9898"))==null?void 0:Xt.question_count)||0}},{title:"\u5F97\u5206\u7387",dataIndex:"h2",key:"h2",align:"center",render:(Pt,Nt)=>{var Rt;let Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_type_name)==="\u7EC4\u5408\u9898");return["0%","0.0%"].includes(Xt==null?void 0:Xt.score_rate)?0:(Xt==null?void 0:Xt.score_rate)||0}}]}],mn=[{title:"\u77E5\u8BC6\u70B9",width:120,ellipsis:!0,dataIndex:"tag_disciplines",key:"tag_disciplines"},{title:"\u7B80\u5355",children:[{title:"\u8BD5\u9898\u6570\u91CF",dataIndex:"a1",key:"a1",align:"center",render:(Pt,Nt)=>{var Rt,Xt;return((Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_difficulty)==="\u7B80\u5355"))==null?void 0:Xt.question_count)||0}},{title:"\u5F97\u5206\u7387",dataIndex:"a2",key:"a2",align:"center",render:(Pt,Nt)=>{var Rt;let Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_difficulty)==="\u7B80\u5355");return["0%","0.0%"].includes(Xt==null?void 0:Xt.score_rate)?0:(Xt==null?void 0:Xt.score_rate)||0}}]},{title:"\u4E2D\u7B49",children:[{title:"\u8BD5\u9898\u6570\u91CF",dataIndex:"b1",key:"b2",align:"center",render:(Pt,Nt)=>{var Rt,Xt;return((Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_difficulty)==="\u9002\u4E2D"))==null?void 0:Xt.question_count)||0}},{title:"\u5F97\u5206\u7387",dataIndex:"b2",key:"b2",align:"center",render:(Pt,Nt)=>{var Rt;let Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_difficulty)==="\u9002\u4E2D");return["0%","0.0%"].includes(Xt==null?void 0:Xt.score_rate)?0:(Xt==null?void 0:Xt.score_rate)||0}}]},{title:"\u56F0\u96BE",children:[{title:"\u8BD5\u9898\u6570\u91CF",dataIndex:"c1",key:"c1",align:"center",render:(Pt,Nt)=>{var Rt,Xt;return((Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_difficulty)==="\u56F0\u96BE"))==null?void 0:Xt.question_count)||0}},{title:"\u5F97\u5206\u7387",dataIndex:"c2",key:"c2",align:"center",render:(Pt,Nt)=>{var Rt;let Xt=(Rt=Nt==null?void 0:Nt.question_types)==null?void 0:Rt.find(cn=>(cn==null?void 0:cn.question_difficulty)==="\u56F0\u96BE");return["0%","0.0%"].includes(Xt==null?void 0:Xt.score_rate)?0:(Xt==null?void 0:Xt.score_rate)||0}}]}],pa=(0,a.useMemo)(()=>{var Pt;let Nt=[],Rt=[];(Pt=Ut==null?void 0:Ut.merged)==null||Pt.forEach(cn=>{Nt.push(cn==null?void 0:cn.tag_disciplines),Rt.push({value:cn==null?void 0:cn.score,extraInfo:cn})});const Xt={tooltip:{trigger:"axis",axisPointer:{type:"shadow",cursor:"pointer"},formatter:()=>""},dataZoom:Cm({type:"slider",show:(Rt==null?void 0:Rt.length)>12},(Rt==null?void 0:Rt.length)>12?{start:0,end:12}:{}),grid:{left:50,right:90,top:60,bottom:40},xAxis:{type:"category",name:"\u77E5\u8BC6\u70B9\u540D\u79F0",data:Nt,nameTextStyle:{color:"#666666"},axisTick:{show:!1},axisLine:{lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666",interval:0}},yAxis:{type:"value",name:"\u5F97\u5206\u7387",data:[0,20,40,60,80,100],min:0,max:100,nameTextStyle:{padding:[0,35,10,15]},axisTick:{show:!1},splitLine:{show:!0,lineStyle:{color:"#EBEBEB"}},axisLine:{show:!1,lineStyle:{color:"#666666"}}},series:[{data:Rt,type:"bar",emphasis:{focus:"series"},barWidth:22,label:{show:!0,position:"top",color:"#666666",formatter:"{c}%"},color:"#2EC25B"}]};return a.createElement(td.Z,{option:Xt,style:{height:375,background:"#F6F7F9"}})},[Ut==null?void 0:Ut.merged,xt]);return a.createElement(a.Fragment,null,a.createElement(jt.Z,{spinning:Fn},a.createElement("div",{className:"flex item-center justify-between mt30"},a.createElement("div",{className:"font16"},"\u77E5\u8BC6\u70B9\u7EDF\u8BA1")),a.createElement(x.default,{className:"mt15",columns:nn,dataSource:[{a:Ut==null?void 0:Ut.merged_size,b:(_e=Ut==null?void 0:Ut.range_stats)==null?void 0:_e[60],c:(pt=Ut==null?void 0:Ut.range_stats)==null?void 0:pt["60-70"],d:(Ve=Ut==null?void 0:Ut.range_stats)==null?void 0:Ve["71-85"],e:(Dt=Ut==null?void 0:Ut.range_stats)==null?void 0:Dt["86-100"],f:Ut==null?void 0:Ut.highest,g:Ut==null?void 0:Ut.lowest}],pagination:!1}),a.createElement("div",{className:"font16 mt30"},"\u77E5\u8BC6\u70B9\u5F97\u5206\u7387"),a.createElement("div",{className:"mt15"},pa)),a.createElement(jt.Z,{spinning:Fn},a.createElement("div",{className:"mt40 flex flex-col gap-10px"},a.createElement("div",{className:"font16"},"\u77E5\u8BC6\u70B9\u5173\u8054\u5206\u6790"),a.createElement(y.default,{defaultActiveKey:"1",onChange:Pt=>{Ht(Pt),hn("1"),Gt(["\u5168\u90E8\u77E5\u8BC6\u70B9"])},items:[{label:"\u9898\u578B",key:"1",children:null},{label:"\u96BE\u6613\u5EA6",key:"2",children:null}]}),a.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},a.createElement(Hr.tp,{dataSource:[{name:"\u5217\u8868",id:"1"},{name:"\u56FE\u8868",id:"2"}],value:vn,onChange:Pt=>{hn(Pt)}}),vn=="2"&&a.createElement(ft.default,{style:{width:260},size:"large",value:xt,onChange:Pt=>{var Nt,Rt;console.log("value",Pt);let Xt=[...Pt];const cn=Pe=="1"?(Nt=Ut==null?void 0:Ut.type_data)==null?void 0:Nt.length:(Rt=Ut==null?void 0:Ut.difficulty_data)==null?void 0:Rt.length;(Xt==null?void 0:Xt.length)==0?Xt=["\u5168\u90E8\u77E5\u8BC6\u70B9"]:Xt.includes("\u5168\u90E8\u77E5\u8BC6\u70B9")&&Xt.length>1?Xt=Xt.filter(tn=>tn!=="\u5168\u90E8\u77E5\u8BC6\u70B9"):!Xt.includes("\u5168\u90E8\u77E5\u8BC6\u70B9")&&Xt.length==cn&&(Xt=["\u5168\u90E8\u77E5\u8BC6\u70B9"]),Gt(Xt)},defaultValue:["\u5168\u90E8\u77E5\u8BC6\u70B9"],placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9",mode:"multiple",maxTagCount:"responsive",allowClear:!0,maxTagPlaceholder:Pt=>{var Nt;return a.createElement(Ae.Z,{styles:{root:{pointerEvents:"none"}},title:Pt.map(({label:Rt})=>Rt).join(", ")},a.createElement("span",null,((Nt=Pt.map(({label:Rt})=>Rt).join(", "))==null?void 0:Nt.slice(0,3))+"..."))},fieldNames:{label:"tag_disciplines",value:"tag_disciplines"},options:Pe=="1"?[{tag_disciplines:"\u5168\u90E8\u77E5\u8BC6\u70B9"},...(Ut==null?void 0:Ut.type_data)||[]]:[{tag_disciplines:"\u5168\u90E8\u77E5\u8BC6\u70B9"},...(Ut==null?void 0:Ut.difficulty_data)||[]]})),vn=="1"&&a.createElement(x.default,{className:Pe=="1"?Af.tables:"",dataSource:Pe=="1"?(Ut==null?void 0:Ut.type_data)||[]:(Ut==null?void 0:Ut.difficulty_data)||[],pagination:!1,bordered:!0,columns:Pe=="1"?zn:mn}),vn=="2"&&a.createElement(Bf,{Data:Pe==="1"?ta(Ut==null?void 0:Ut.type_data,"question"):ta(Ut==null?void 0:Ut.difficulty_data,"difficulty"),yAxisName:"\u5F97\u5206\u7387",yAxisNamePadding:[0,0,10,0],legendData:Pe==="1"?Bn:Dn}))))};var Pf=(0,he.connect)(({exercise:ce})=>({exercise:ce}),null,null,{forwardRef:!0})((0,a.forwardRef)(Sf)),Ma=z(67294),Df=Object.defineProperty,bf=Object.defineProperties,wf=Object.getOwnPropertyDescriptors,sg=Object.getOwnPropertySymbols,xf=Object.prototype.hasOwnProperty,If=Object.prototype.propertyIsEnumerable,cg=(ce,se,ae)=>se in ce?Df(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,Ed=(ce,se)=>{for(var ae in se||(se={}))xf.call(se,ae)&&cg(ce,ae,se[ae]);if(sg)for(var ae of sg(se))If.call(se,ae)&&cg(ce,ae,se[ae]);return ce},Bm=(ce,se)=>bf(ce,wf(se)),Q0=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Lf=({exercise:ce,dispatch:se,classroomList:ae})=>{var _e,pt,Ve,Dt,et,Be,Pe,Ht,vn,hn,xt,Gt,Bn,Dn,Fn,Wt,Ut,Yt,ta,nn,zn,mn,pa,Pt;const{ScoreRangesData:Nt}=ce,[Rt,Xt]=(0,a.useState)("1"),[cn,tn]=(0,a.useState)({}),[Ja,ha]=(0,a.useState)([]),[dt,Fa]=(0,a.useState)([]),[ia,wu]=(0,a.useState)({exercise_group_id:["all"],scope:"0",question_type:["all"]}),[Sa,Hn]=(0,a.useState)(0),[Oa,tu]=(0,a.useState)(0),[Ka,Ba]=(0,a.useState)([]),[La,Zn]=(0,a.useState)([]),[bn,ca]=(0,a.useState)(0),[Qn,pn]=(0,a.useState)(!0),[Tn,En]=(0,a.useState)(!1),[da,Ha]=(0,a.useState)(!1),[au,Ya]=(0,a.useState)(!1),[Cr,Zu]=(0,a.useState)(!1),[sa,Ru]=(0,a.useState)(0),mr=(0,a.useRef)(null),gl=(0,a.useRef)(null),Tl=(0,a.useRef)(null),[mu]=fe.default.useForm(),$u=(0,he.useParams)(),jr=[{label:"90%-100%",color:"#3BA1FF"},{label:"80%-90%",color:"#37CCCC"},{label:"70%-80%",color:"#4ECC74"},{label:"60%-70%",color:"#FBD438"},{label:"60%\u53CA\u4EE5\u4E0B",color:"#F3647C"}];(0,a.useEffect)(()=>(Cr?mr.current=setInterval(()=>{Ru(Yu=>Yu+1)},1e3*30):clearInterval(mr.current),()=>{clearInterval(mr.current)}),[Cr]),(0,a.useEffect)(()=>{Eu()},[]),(0,a.useEffect)(()=>{var Yu,tl;sa>0&&(Rt==="1"?Eu():Rt==="4"?(Yu=Tl.current)==null||Yu.getTagList():(tl=gl.current)==null||tl.dealData())},[sa]);const Eu=(...Yu)=>Q0(void 0,[...Yu],function*(tl=ia){En(!0),yield Promise.all([Va(tl),Nu(tl),oo(tl)]),En(!1),pn(!1)}),wr=(0,a.useMemo)(()=>{var Yu,tl;return{scope:ia==null?void 0:ia.scope,exercise_group_id:(Yu=ia==null?void 0:ia.exercise_group_id)!=null&&Yu.includes("all")?null:ia==null?void 0:ia.exercise_group_id,question_type:(tl=ia==null?void 0:ia.question_type)!=null&&tl.includes("all")?null:ia==null?void 0:ia.question_type}},[ia]),Va=Yu=>Q0(void 0,null,function*(){var tl,_r,Io;const os={scope:Yu==null?void 0:Yu.scope,exercise_group_id:(tl=Yu==null?void 0:Yu.exercise_group_id)!=null&&tl.includes("all")?null:Yu==null?void 0:Yu.exercise_group_id},Zl=yield(0,Ce.ZP)(`/api/exercises/${$u==null?void 0:$u.categoryId}/new_exercise_result.json`,{method:"get",params:Ed({},os)});if(se({type:"exercise/getScoreRangesData",payload:{exercise_id:$u==null?void 0:$u.categoryId}}),(Zl==null?void 0:Zl.status)===0){const Bs=[{label:"\u5168\u90E8",value:"all"}];se({type:"exercise/save",payload:{course_groups:Zl==null?void 0:Zl.course_groups}}),(_r=Zl==null?void 0:Zl.course_groups)==null||_r.forEach(Us=>{Bs.push({label:Us==null?void 0:Us.exercise_group_name,value:Us==null?void 0:Us.exercise_group_id})});const Di=[{label:"\u5168\u90E8",value:"all"}];(Io=Zl==null?void 0:Zl.question_types)==null||Io.forEach(Us=>{Di.push({label:Us==null?void 0:Us.name,value:Us==null?void 0:Us.id})}),Fa(Di),ha(Bs),tn(Ed({},Zl))}}),Nu=(Yu,...tl)=>Q0(void 0,[Yu,...tl],function*(_r,Io=!1,os={}){var Zl;const Bs={scope:_r==null?void 0:_r.scope,exercise_group_id:(Zl=_r==null?void 0:_r.exercise_group_id)!=null&&Zl.includes("all")?null:_r==null?void 0:_r.exercise_group_id};Ha(Io);const Di=yield(0,Ce.ZP)(`/api/exercises/${$u==null?void 0:$u.categoryId}/new_exercise_result_form.json`,{method:"get",params:Ed(Bm(Ed({},Bs),{method:Sa,order:Oa}),os)});(Di==null?void 0:Di.status)===0&&Ba(Di==null?void 0:Di.rate_list),Ha(!1)}),oo=(Yu,...tl)=>Q0(void 0,[Yu,...tl],function*(_r,Io=!1,os={}){var Zl;const Bs={scope:_r==null?void 0:_r.scope,exercise_group_id:(Zl=_r==null?void 0:_r.exercise_group_id)!=null&&Zl.includes("all")?null:_r==null?void 0:_r.exercise_group_id};Ya(Io);const Di=yield(0,Ce.ZP)(`/api/exercises/${$u==null?void 0:$u.categoryId}/new_exercise_result_bottom.json`,{method:"get",params:Ed(Bm(Ed({},Bs),{method:bn}),os)});(Di==null?void 0:Di.status)===0&&Zn(Di==null?void 0:Di.chart),Ya(!1)}),Su=[{label:"\u5168\u90E8",value:"0"},{label:"\u8003\u8BD5\u4E2D/\u5DF2\u4EA4\u5377",value:"1"},{label:"\u5DF2\u4EA4\u5377",value:"2"}],Pu=()=>[{name:"exercise_group_id",label:"\u5206\u73ED\u8303\u56F4",ItemData:Ja,isShow:!0},{noStyle:!0,isShow:Rt==="3",children:Ma.createElement("div",{className:"mb20",style:{color:"#FF9D18"}},"\u8BF4\u660E\uFF1A\u5B66\u751F\u4EBA\u6570=0\u7684\u5206\u73ED\u4E0D\u5728\u4E0B\u9762\u56FE\u8868\u4E2D\u663E\u793A"),ItemData:[]},{name:"scope",label:Ma.createElement("span",{style:{marginRight:-18}},"\u7EDF\u8BA1\u8303\u56F4 ",Ma.createElement(Ae.Z,{overlayStyle:{maxWidth:600},title:Ma.createElement(Ma.Fragment,null,Ma.createElement("div",null,Ma.createElement("span",{style:{fontWeight:600}},"\u5168\u90E8\u5B66\u751F\uFF1A"),"\u7EDF\u8BA1\u8303\u56F4\u4E3A\u5168\u90E8\u5B66\u751F\u65F6\uFF0C\u5219\u7EDF\u8BA1\u6570\u636E\u6DB5\u76D6\u6240\u6709\u5E94\u8003\u5B66\u751F\u3002"),Ma.createElement("div",null,Ma.createElement("span",{style:{fontWeight:600}},"\u8003\u8BD5\u4E2D/\u5DF2\u4EA4\u5377\uFF1A"),"\u7EDF\u8BA1\u8303\u56F4\u4E3A\u8003\u8BD5\u4E2D/\u5DF2\u4EA4\u5377\u5B66\u751F\u65F6\uFF0C\u4EC5\u7EDF\u8BA1\u6B63\u5728\u8003\u8BD5\u4E2D\u548C\u5DF2\u4EA4\u5377\u5B66\u751F\u7684\u8003\u8BD5\u60C5\u51B5\u3002"),Ma.createElement("div",null,Ma.createElement("span",{style:{fontWeight:600}},"\u5DF2\u4EA4\u5377\u5B66\u751F\uFF1A"),"\u7EDF\u8BA1\u8303\u56F4\u4E3A\u5DF2\u4EA4\u5377\u5B66\u751F\u65F6\uFF0C\u4EC5\u7EDF\u8BA1\u5DF2\u4EA4\u5377\u5B66\u751F\u7684\u8003\u8BD5\u60C5\u51B5\u3002"))},Ma.createElement("i",{className:"iconfont icon-xiaowenhao2 font14",style:{cursor:"pointer",color:"#145DFF"}}))),type:"Radio",ItemData:Su,isShow:Rt!=="3"},{name:"question_type",label:"\u9009\u62E9\u9898\u578B",ItemData:dt,isShow:Rt==="2"}],ci=[{name:"\u6210\u7EE9\u603B\u89C8",id:"1"},{name:"\u8BD5\u9898\u8BE6\u60C5",id:"2"},{name:"\u5206\u73ED\u5BF9\u6BD4",id:"3"},{name:"\u77E5\u8BC6\u70B9\u5206\u6790",id:"4"}],Ho=Sa?"\u5F97\u5206\u7387":"\u6B63\u786E\u7387",ji=Yu=>{Yu==="1"&&Eu(),Xt(Yu)},fc=(0,a.useMemo)(()=>{var Yu;const tl=[],_r=[],Io=[];(Yu=cn==null?void 0:cn.student_score_list)==null||Yu.map(Zl=>{tl.unshift([Zl.name,Zl.score_range].join(".")),_r.unshift({value:Zl.rate,type:Zl.type}),Io.unshift(Zl.count)});const os={tooltip:{trigger:"axis",axisPointer:{type:"shadow",cursor:"pointer"}},grid:{left:90,right:120,top:60,bottom:40},xAxis:{type:"value",name:"\u5B66\u751F\u6BD4\u4F8B\uFF08%\uFF09",data:[0,20,40,60,80,100],min:0,max:100,nameTextStyle:{color:"#666666"},axisTick:{show:!1},splitLine:{show:!1},axisLine:{lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666"}},yAxis:{type:"category",data:tl,name:"\u6210\u7EE9\uFF08\u5206\uFF09",nameTextStyle:{color:"#666666"},axisTick:{show:!1},splitLine:{show:!1},axisLine:{lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666",formatter:Zl=>`${Zl.split(".")[0]} +(${Zl.split(".")[1]})`}},series:[{type:"bar",data:_r,color:"#A2BEFF",barWidth:40,itemStyle:{borderColor:"#165DFF",borderWidth:1},label:{show:!0,position:"right",color:"#666666",formatter:Zl=>{var Bs;return`${(Bs=Zl==null?void 0:Zl.data)==null?void 0:Bs.value}%\uFF08${Io[Zl==null?void 0:Zl.dataIndex]}\u4EBA\uFF09`}}}]};return Ma.createElement(td.Z,{option:os,onEvents:{click:Zl=>{var Bs;Zl.componentType==="series"&&se({type:"exercise/setActionTabs",payload:{key:"\u5B66\u751F\u5217\u8868",data:Bm(Ed({},ia),{type:1,sub_type:(Bs=Zl==null?void 0:Zl.data)==null?void 0:Bs.type})}})}},style:{height:434,background:"#F6F7F9"}})},[cn==null?void 0:cn.student_score_list]),qa=(0,a.useMemo)(()=>{let Yu=[],tl=[];Ka.forEach(Io=>{Yu.push(Io.index),tl.push({value:Io.rate,extraInfo:Io})});const _r={tooltip:{trigger:"axis",axisPointer:{type:"shadow",cursor:"pointer"},formatter:()=>""},dataZoom:Ed({type:"slider",show:(tl==null?void 0:tl.length)>30},(tl==null?void 0:tl.length)>30?{start:0,end:Math.floor(29*100/(Ka==null?void 0:Ka.length))}:{}),grid:{left:50,right:60,top:60,bottom:40},xAxis:{type:"category",name:"\u9898\u76EE",data:Yu,nameTextStyle:{color:"#666666"},axisTick:{show:!1},axisLine:{lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#666666"}},yAxis:{type:"value",name:Ho,data:[0,20,40,60,80,100],min:0,max:100,nameTextStyle:{padding:[0,35,10,15]},axisTick:{show:!1},splitLine:{show:!0,lineStyle:{color:"#EBEBEB"}},axisLine:{show:!1,lineStyle:{color:"#666666"}}},series:[{data:tl,type:"bar",emphasis:{focus:"series"},barWidth:22,label:{show:!0,position:"top",color:"#666666",formatter:"{c}%"},color:"#2EC25B"}]};return Ma.createElement(td.Z,{option:_r,style:{height:370,background:"#F6F7F9"},onEvents:{click:Io=>{var os,Zl,Bs,Di,Us,$c,Ln,kn,Dr,Rs,ec,es;console.log("sdfsdf===",(os=Io==null?void 0:Io.data)==null?void 0:os.extraInfo),se({type:"exercise/setActionTabs",payload:{key:"\u5B66\u751F\u8BE6\u60C5",title:Ma.createElement(Ma.Fragment,null,"\u5B66\u751F\u8BE6\u60C5",Ma.createElement("span",{className:"c-grey-666 font14"},"\uFF08\u9898\u76EE",(Bs=(Zl=Io==null?void 0:Io.data)==null?void 0:Zl.extraInfo)==null?void 0:Bs.index,"\uFF0C",Ho,(Us=(Di=Io==null?void 0:Io.data)==null?void 0:Di.extraInfo)==null?void 0:Us.rate,"%\uFF09"),Ma.createElement(Ae.Z,{title:Ma.createElement(Ma.Fragment,null,"\u9898\u76EE\uFF1A",(Ln=($c=Io==null?void 0:Io.data)==null?void 0:$c.extraInfo)==null?void 0:Ln.question_title,Ma.createElement("br",null),"\u9898\u578B\uFF1A",(Dr=(kn=Io==null?void 0:Io.data)==null?void 0:kn.extraInfo)==null?void 0:Dr.question_type,Ma.createElement("br",null),Ho,"\uFF1A",(ec=(Rs=Io==null?void 0:Io.data)==null?void 0:Rs.extraInfo)==null?void 0:ec.rate,"%")},Ma.createElement("a",null,"\u8BD5\u9898\u8BE6\u60C5"))),data:{questionDetail:(es=Io==null?void 0:Io.data)==null?void 0:es.extraInfo,scope:wr==null?void 0:wr.scope}}})}}})},[Ka,Ho,wr]),bl=(0,a.useMemo)(()=>La==null?void 0:La.map((Yu,tl)=>{var _r,Io,os,Zl,Bs;const Di={tooltip:{trigger:"item"},title:{text:Yu==null?void 0:Yu.question_type,textStyle:{fontWeight:"normal",fontSize:14},top:"10%",left:"center"},series:[{name:Yu==null?void 0:Yu.question_type,type:"pie",radius:["20%","40%"],center:["50%","65%"],itemStyle:{borderColor:"#fff",borderWidth:2},data:[{value:((_r=Yu==null?void 0:Yu.details)==null?void 0:_r.full_count)||0,name:jr[0].label,itemStyle:{color:jr[0].color}},{value:((Io=Yu==null?void 0:Yu.details)==null?void 0:Io.best_count)||0,name:jr[1].label,itemStyle:{color:jr[1].color}},{value:((os=Yu==null?void 0:Yu.details)==null?void 0:os.good_count)||0,name:jr[2].label,itemStyle:{color:jr[2].color}},{value:((Zl=Yu==null?void 0:Yu.details)==null?void 0:Zl.pass_count)||0,name:jr[3].label,itemStyle:{color:jr[3].color}},{value:((Bs=Yu==null?void 0:Yu.details)==null?void 0:Bs.fails_count)||0,name:jr[4].label,itemStyle:{color:jr[4].color}}]}]};return Ma.createElement(td.Z,{key:tl,className:"bg-white",option:Di,style:{width:"100%",height:240},onEvents:{click:Us=>{const $c=Bm(Ed({},ia),{question_type:[Yu==null?void 0:Yu.question_type_id]});wu($c),mu.setFieldsValue(Ed({},$c)),Xt("2"),window.scrollTo({top:0,behavior:"smooth"})}}})}),[La]),lo=[{title:"\u540D\u6B21",dataIndex:"index",align:"center",width:90,render:Yu=>{let tl=Yu;Yu===1&&(tl=Qm.Z),Yu===2&&(tl=Um.Z),Yu===3&&(tl=pm.Z);const _r=typeof tl=="number"?tl:Ma.createElement("img",{src:tl});return Ma.createElement("div",{style:{textAlign:"left",paddingLeft:22}},_r)}},{title:"\u59D3\u540D",dataIndex:"user_name",ellipsis:!0,render:Yu=>Ma.createElement(Ae.Z,{placement:"topLeft",title:Yu},Ma.createElement("span",null,Yu||"--"))},{title:"\u5B66\u53F7",dataIndex:"student_id",ellipsis:!0,render:Yu=>Ma.createElement(Ae.Z,{placement:"topLeft",title:Yu},Ma.createElement("span",null,Yu||"--"))},{title:"\u73ED\u7EA7",dataIndex:"class_name",ellipsis:!0,render:Yu=>Ma.createElement(Ae.Z,{placement:"topLeft",title:Yu},Ma.createElement("span",null,Yu||"--"))},{title:"\u7B54\u9898\u65F6\u957F",dataIndex:"time",ellipsis:!0,render:Yu=>Ma.createElement(Ae.Z,{placement:"topLeft",title:Yu},Ma.createElement("span",null,Yu||"--"))},{title:"\u6210\u7EE9",width:90,dataIndex:"score"}];return Ma.createElement("div",{className:Uc.Z.wrap},Ma.createElement(yn.Z,{loading:Qn,active:!0},(cn==null?void 0:cn.exercise_status)===1&&Ma.createElement(zt.Z,{styles:{margin:"0 auto",padding:200}}),(cn==null?void 0:cn.exercise_status)>1&&Ma.createElement(a.Fragment,null,Ma.createElement(oe.Z,{className:"mb30",align:"middle",justify:"space-between"},Ma.createElement(Hr.tp,{dataSource:ci,value:Rt,onChange:ji}),Rt==="3"?Ma.createElement(me.ZP,{type:"primary",icon:Ma.createElement(cf.Z,{rev:void 0}),onClick:()=>Q0(void 0,null,function*(){var Yu;if((0,On.Rm)()&&!((Yu=ae.AssistantObject.exercise)!=null&&Yu.can_download)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}se({type:"classroomList/setActionTabs",payload:{key:"\u9009\u62E9\u73ED\u7EA7",title:"\u5206\u73ED\u5BF9\u6BD4",course_groups:cn==null?void 0:cn.course_groups.map(tl=>({course_group_id:tl==null?void 0:tl.exercise_group_id,group_group_name:tl==null?void 0:tl.exercise_group_name,count:tl==null?void 0:tl.exercise_group_students})),fn:()=>Q0(void 0,null,function*(){const tl=yield(0,ne.iB)({exercise_id:$u==null?void 0:$u.categoryId,exercise_group_id:JSON.parse(localStorage.getItem("all_student_works_param")).course_group});(tl==null?void 0:tl.status)===0?(pe.ZP.success(tl==null?void 0:tl.message),he.history.push(`/classrooms/${$u.coursesId}/exportlist/exercise_score,export_exercise_users`)):pe.ZP.success(tl==null?void 0:tl.message)})}})})},"\u5BFC\u51FA\u5206\u73ED\u5BF9\u6BD4"):Ma.createElement(oe.Z,null,Ma.createElement(Ne.Z,{checked:Cr,onChange:Yu=>Zu(Yu),className:"mr5 c-black"}),"\u81EA\u52A8\u5237\u65B0",Ma.createElement("span",{className:"c-grey-999"},"\uFF08\u5F00\u542F\u540E\u6BCF30\u79D2\u66F4\u65B0\u4E00\u6B21\u6570\u636E\uFF09"))),Rt!=="4"&&Ma.createElement(ue.Z,{form:mu,initialValues:ia,onValuesChange:(Yu,tl)=>{const _r=Ed(Ed({},ia),tl);console.log(_r,"newValue"),wu(Ed({},_r)),Rt==="1"&&Eu(_r)},data:Pu()}),Ma.createElement("section",{style:{display:Rt==="1"?"block":"none"}},Ma.createElement(jt.Z,{spinning:Tn},(cn==null?void 0:cn.open_camera)&&Ma.createElement(Ma.Fragment,null,Ma.createElement("div",{className:Uc.Z.head},Ma.createElement("div",{className:Uc.Z.title},"\u8003\u8BD5\u884C\u4E3A\u5206\u6790\u7EDF\u8BA1")),Ma.createElement(vm.ZP,{data:(0,vm.Uf)(cn)})),Ma.createElement("div",{className:Uc.Z.head},Ma.createElement("div",{className:Uc.Z.title},"\u8BD5\u5377\u6982\u89C8"),Ma.createElement("div",{className:"flex item-center current",onClick:()=>{se({type:"exercise/setActionTabs",payload:{key:"\u8BBE\u7F6E\u5F97\u5206\u533A\u95F4"}})}},Ma.createElement("i",{className:"iconfont icon-shezhi2 mr5 font16"}),Ma.createElement("span",{style:{color:"#333333"}},"\u8BBE\u7F6E\u5F97\u5206\u533A\u95F4"))),Ma.createElement("div",{className:Uc.Z.table},Ma.createElement("aside",null,Ma.createElement("div",null,"\u8BD5\u5377\u603B\u5206"),Ma.createElement("div",null,(_e=cn==null?void 0:cn.exercise_counts)==null?void 0:_e.total_score,"\u5206")),Ma.createElement("aside",null,Ma.createElement("div",null,"\u7B54\u9898\u65F6\u957F"),Ma.createElement("div",null,(pt=cn==null?void 0:cn.exercise_counts)==null?void 0:pt.time)),Ma.createElement("aside",null,Ma.createElement("div",null,"\u5E73\u5747\u7B54\u9898\u65F6\u957F",Ma.createElement(Ae.Z,{title:"\u5E73\u5747\u7B54\u9898\u65F6\u957F=\u5DF2\u4EA4\u5377\u5B66\u751F\u5B9E\u9645\u7B54\u9898\u65F6\u957F\u603B\u548C/\u5DF2\u4EA4\u5377\u5B66\u751F\u6570"},Ma.createElement("i",{className:"iconfont icon-xiaowenhao2"}))),Ma.createElement("div",null,(Ve=cn==null?void 0:cn.exercise_counts)==null?void 0:Ve.avg_answer_duration)),Ma.createElement("aside",null,Ma.createElement("div",null,"\u5E94\u8003\u4EBA\u6570",Ma.createElement(Ae.Z,{title:"\u8001\u5E08\u53D1\u5E03\u8003\u8BD5\u5BF9\u5E94\u9700\u8981\u53C2\u52A0\u8003\u8BD5\u7684\u5B66\u751F\u6570"},Ma.createElement("i",{className:"iconfont icon-xiaowenhao2"}))),Ma.createElement("div",null,(Dt=cn==null?void 0:cn.exercise_counts)==null?void 0:Dt.candidate_num,"\u4EBA")),Ma.createElement("aside",null,Ma.createElement("div",null,"\u5B9E\u8003\u4EBA\u6570",Ma.createElement(Ae.Z,{title:"\u63D0\u4EA4\u72B6\u6001\u4E3A\u8003\u8BD5\u4E2D\u3001\u5DF2\u4EA4\u5377\u3001\u5DF2\u4EA4\u5377\uFF08\u672A\u7B54\uFF09\u7684\u5B66\u751F\u6570"},Ma.createElement("i",{className:"iconfont icon-xiaowenhao2"}))),Ma.createElement("div",null,(et=cn==null?void 0:cn.exercise_counts)==null?void 0:et.exam_num,"\u4EBA")),Ma.createElement("aside",null,Ma.createElement("div",null,"\u53C2\u8003\u7387",Ma.createElement(Ae.Z,{title:"\u53C2\u8003\u7387=(\u5B9E\u8003\u4EBA\u6570/\u5E94\u8003\u4EBA\u6570\uFF09*100%"},Ma.createElement("i",{className:"iconfont icon-xiaowenhao2"}))),Ma.createElement("div",null,(Be=cn==null?void 0:cn.exercise_counts)==null?void 0:Be.reference_rate,"%")),Ma.createElement("aside",null,Ma.createElement("div",null,"\u5E73\u5747\u5206",Ma.createElement(Ae.Z,{title:"\u5E73\u5747\u5206=\u5B66\u751F\u6210\u7EE9\u603B\u548C/\u5B66\u751F\u603B\u6570"},Ma.createElement("i",{className:"iconfont icon-xiaowenhao2"}))),Ma.createElement("div",null,(Pe=cn==null?void 0:cn.exercise_counts)==null?void 0:Pe.average_score,"\u5206")),Ma.createElement("aside",null,Ma.createElement("div",null,"\u6700\u9AD8\u5206"),Ma.createElement("div",null,(Ht=cn==null?void 0:cn.exercise_counts)==null?void 0:Ht.max_score,"\u5206")),Ma.createElement("aside",null,Ma.createElement("div",null,"\u6700\u4F4E\u5206"),Ma.createElement("div",null,(vn=cn==null?void 0:cn.exercise_counts)==null?void 0:vn.min_score,"\u5206")),Ma.createElement("aside",null,Ma.createElement("div",null,"\u6807\u51C6\u5DEE",Ma.createElement(Ae.Z,{title:"\u53CD\u5E94\u5B66\u751F\u5206\u6570\u79BB\u6563\u7A0B\u5EA6\u7684\u6307\u6807\uFF0C\u6570\u503C\u8D8A\u5927\uFF0C\u8868\u793A\u5B66\u751F\u4E4B\u95F4\u7684\u6210\u7EE9\u5DEE\u8DDD\u8D8A\u5927\uFF0C\u6210\u7EE9\u5206\u5E03\u8D8A\u5E7F\uFF1B\u6570\u503C\u8D8A\u5C0F\uFF0C\u8868\u793A\u5B66\u751F\u4E4B\u95F4\u7684\u6210\u7EE9\u8D8A\u63A5\u8FD1\uFF0C\u5206\u5E03\u8D8A\u7A84\u3002"},Ma.createElement("i",{className:"iconfont icon-xiaowenhao2"}))),Ma.createElement("div",null,(hn=cn==null?void 0:cn.exercise_counts)==null?void 0:hn.standard_deviation)),Ma.createElement("aside",null,Ma.createElement("div",null,"\u4F18\u79C0",Ma.createElement(Ae.Z,{title:`\u4F18\u79C0\u4EBA\u6570\uFF1A\u6210\u7EE9\u5927\u4E8E\u7B49\u4E8E\u603B\u5206*${(xt=Nt==null?void 0:Nt.score_ranges)==null?void 0:xt.good_rate}%\uFF0C\u5C0F\u4E8E\u7B49\u4E8E\u603B\u5206*${(Gt=Nt==null?void 0:Nt.score_ranges)==null?void 0:Gt.max_rate}%\u7684\u5B66\u751F\u6570`},Ma.createElement("i",{className:"iconfont icon-xiaowenhao2"}))),Ma.createElement("div",null,(Bn=cn==null?void 0:cn.exercise_counts)==null?void 0:Bn.best_counts,"\u4EBA")),Ma.createElement("aside",null,Ma.createElement("div",null,"\u826F\u597D",Ma.createElement(Ae.Z,{title:`\u826F\u597D\u4EBA\u6570\uFF1A\u6210\u7EE9\u5927\u4E8E\u7B49\u4E8E\u603B\u5206*${(Dn=Nt==null?void 0:Nt.score_ranges)==null?void 0:Dn.pass_rate}%\uFF0C\u5C0F\u4E8E\u603B\u5206*${(Fn=Nt==null?void 0:Nt.score_ranges)==null?void 0:Fn.good_rate}%\u7684\u5B66\u751F\u6570`},Ma.createElement("i",{className:"iconfont icon-xiaowenhao2"}))),Ma.createElement("div",null,(Wt=cn==null?void 0:cn.exercise_counts)==null?void 0:Wt.good_counts,"\u4EBA")),Ma.createElement("aside",null,Ma.createElement("div",null,"\u53CA\u683C",Ma.createElement(Ae.Z,{title:`\u53CA\u683C\u4EBA\u6570\uFF1A\u6210\u7EE9\u5927\u4E8E\u7B49\u4E8E\u603B\u5206*${(Ut=Nt==null?void 0:Nt.score_ranges)==null?void 0:Ut.fail_rate}%\uFF0C\u5C0F\u4E8E\u603B\u5206*${(Yt=Nt==null?void 0:Nt.score_ranges)==null?void 0:Yt.pass_rate}%\u7684\u5B66\u751F\u6570`},Ma.createElement("i",{className:"iconfont icon-xiaowenhao2"}))),Ma.createElement("div",null,(ta=cn==null?void 0:cn.exercise_counts)==null?void 0:ta.pass_counts,"\u4EBA")),Ma.createElement("aside",null,Ma.createElement("div",null,"\u4E0D\u53CA\u683C",Ma.createElement(Ae.Z,{title:`\u4E0D\u53CA\u683C\u4EBA\u6570\uFF1A\u6210\u7EE9\u5C0F\u4E8E\u603B\u5206*${(nn=Nt==null?void 0:Nt.score_ranges)==null?void 0:nn.fail_rate}%\u7684\u5B66\u751F\u6570`},Ma.createElement("i",{className:"iconfont icon-xiaowenhao2"}))),Ma.createElement("div",null,(zn=cn==null?void 0:cn.exercise_counts)==null?void 0:zn.fail_counts,"\u4EBA"))),Ma.createElement("div",{className:Uc.Z.head},Ma.createElement("div",{className:Uc.Z.title},"\u9898\u76EE\u6982\u89C8",Ma.createElement("span",{className:"font14",style:{color:"#FF9D18"}},"\uFF08\u70B9\u51FB\u67F1\u72B6\u56FE\u53EF\u67E5\u770B\u6570\u636E\u8BE6\u60C5\uFF09")),Ma.createElement(oe.Z,null,Ma.createElement(fe.default.Item,{colon:!1,label:"\u7EDF\u8BA1\u7EF4\u5EA6"},Ma.createElement(ft.default,{style:{width:140},value:Sa,onChange:Yu=>{Hn(Yu),Nu(ia,!0,{method:Yu})}},Ma.createElement(ft.default.Option,{value:0},"\u6B63\u786E\u7387"),Ma.createElement(ft.default.Option,{value:1},"\u5F97\u5206\u7387"))),Ma.createElement(fe.default.Item,{className:"ml20",colon:!1,label:"\u6392\u5E8F\u65B9\u5F0F"},Ma.createElement(ft.default,{style:{width:140},value:Oa,onChange:Yu=>{tu(Yu),Nu(ia,!0,{order:Yu})}},Ma.createElement(ft.default.Option,{value:0},"\u6309\u9898\u53F7\u5347\u5E8F"),Ma.createElement(ft.default.Option,{value:1},"\u6309\u9898\u53F7\u964D\u5E8F"),Ma.createElement(ft.default.Option,{value:2},"\u6309",Ho,"\u5347\u5E8F"),Ma.createElement(ft.default.Option,{value:3},"\u6309",Ho,"\u964D\u5E8F"))))),Ma.createElement(jt.Z,{spinning:da},qa),Ma.createElement("div",{className:Uc.Z.head},Ma.createElement("div",{className:Uc.Z.title},"\u5B66\u751F\u6210\u7EE9\u5206\u5E03",Ma.createElement("span",{className:"font14",style:{color:"#FF9D18"}},"\uFF08\u70B9\u51FB\u67F1\u72B6\u56FE\u53EF\u67E5\u770B\u6570\u636E\u8BE6\u60C5\uFF09"))),fc,Ma.createElement("div",{className:Uc.Z.head},Ma.createElement("div",{className:Uc.Z.title},"\u4F18\u79C0\u751F",Ma.createElement(Ae.Z,{title:"\u7EDF\u8BA1\u8BE5\u573A\u8003\u8BD5\u4E2D\u6210\u7EE9\u6392\u540D\u524D10\u7684\u5B66\u751F"},Ma.createElement("i",{style:{color:"#145DFF"},className:"iconfont icon-xiaowenhao2 ml5"})))),Ma.createElement(x.default,{columns:lo,rowKey:"index",dataSource:(cn==null?void 0:cn.rank_list)||[],pagination:!1}),Ma.createElement("div",{className:Uc.Z.head},Ma.createElement("div",{className:Uc.Z.title},"\u9898\u578B\u6982\u89C8",Ma.createElement("span",{className:"font14",style:{color:"#FF9D18"}},"\uFF08\u70B9\u51FB\u73AF\u72B6\u56FE\u53EF\u67E5\u770B\u6570\u636E\u8BE6\u60C5\uFF09")),Ma.createElement(oe.Z,null,Ma.createElement(fe.default.Item,{colon:!1,label:"\u7EDF\u8BA1\u7EF4\u5EA6"},Ma.createElement(ft.default,{style:{width:140},value:bn,onChange:Yu=>{ca(Yu),oo(ia,!0,{method:Yu})}},Ma.createElement(ft.default.Option,{value:0},"\u6B63\u786E\u7387"),Ma.createElement(ft.default.Option,{value:1},"\u5F97\u5206\u7387"))))),Ma.createElement(jt.Z,{spinning:au},Ma.createElement("div",{className:"p-20px ",style:{background:"#F6F7F9"}},Ma.createElement("div",{className:"flex item-center justify-end mb20 gap-10px"},Ma.createElement("div",{className:" c-grey-333"},bn===0?"\u6B63\u786E\u7387\u533A\u95F4\uFF1A":"\u5F97\u5206\u7387\u533A\u95F4\uFF1A"),Ma.createElement("div",{className:"flex item-center gap-20px"},jr.map((Yu,tl)=>Ma.createElement("div",{key:tl,className:"flex item-center gap-10px"},Ma.createElement("div",{className:"rounded-2px",style:{width:10,height:10,background:Yu==null?void 0:Yu.color}}),Ma.createElement("div",{className:"font12 c-grey-333"},Yu==null?void 0:Yu.label))))),Ma.createElement("div",{className:"gap-10px",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(360px, 1fr))"}},bl))))),Rt==="2"&&Ma.createElement("section",null,cn!=null&&cn.is_random?Ma.createElement(Hm,{value:wr,ref:gl}):Ma.createElement(Xd,{value:wr,ref:gl})),Rt==="3"&&Ma.createElement("section",null,Ma.createElement(sf,{value:wr})),Rt==="4"&&Ma.createElement("section",null,Ma.createElement(Pf,{value:wr,ref:Tl})))),((mn=ce==null?void 0:ce.actionTabs)==null?void 0:mn.key)==="\u5B66\u751F\u8BE6\u60C5"&&Ma.createElement(Ef,null),((pa=ce==null?void 0:ce.actionTabs)==null?void 0:pa.key)==="\u8BBE\u7F6E\u5F97\u5206\u533A\u95F4"&&Ma.createElement(N0,{handleOnComplete:Eu}),((Pt=ce==null?void 0:ce.actionTabs)==null?void 0:Pt.key)==="\u5B66\u751F\u5217\u8868"&&Ma.createElement(Gg,null))};var Nf=(0,he.connect)(({exercise:ce,classroomList:se})=>({exercise:ce,classroomList:se}))(Lf),Of=z(45224),i0={hideHeadCheckbox:"hideHeadCheckbox____864g",moveCategory:"moveCategory___on_eY",tabSearch:"tabSearch___LqTIA",warpModal:"warpModal___ub_j0",modalColumn:"modalColumn___tJRIx",modalRow:"modalRow___AFP2T",sup:"sup____weyo",shijuan:"shijuan___NU0re",name:"name___tJw50",tip:"tip___ihMML"},dg=z(85688),Mf=z(34562),Ai=z(67294),Rf=Object.defineProperty,Tf=Object.defineProperties,kf=Object.getOwnPropertyDescriptors,mg=Object.getOwnPropertySymbols,jf=Object.prototype.hasOwnProperty,zf=Object.prototype.propertyIsEnumerable,gg=(ce,se,ae)=>se in ce?Rf(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,Sm=(ce,se)=>{for(var ae in se||(se={}))jf.call(se,ae)&&gg(ce,ae,se[ae]);if(mg)for(var ae of mg(se))zf.call(se,ae)&&gg(ce,ae,se[ae]);return ce},Zf=(ce,se)=>Tf(ce,kf(se)),U0=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const{TabPane:Gm}=y.default,Qf=({classroomList:ce,exercise:se,loading:ae,dispatch:_e})=>{var pt;const Ve=(0,he.useParams)(),Dt=(0,he.useLocation)(),[et]=fe.default.useForm(),{commonHeader:Be}=se;let[Pe,Ht]=(0,a.useState)(!0),[vn,hn]=(0,a.useState)(!1);const[xt,Gt]=(0,a.useState)("myself");let[Bn,Dn]=(0,a.useState)([]),[Fn,Wt]=(0,a.useState)([]),[Ut,Yt]=(0,a.useState)(),[ta,nn]=(0,a.useState)([]);const zn=(0,a.useRef)(),[mn,pa]=(0,a.useState)(1),Pt=(0,a.useRef)(null),[Nt,Rt]=(0,a.useState)(!1),[Xt,cn]=(0,a.useState)(""),[tn,Ja]=(0,a.useState)(""),ha=[{title:"\u8BD5\u5377\u540D\u79F0",dataIndex:"name",width:150,ellipsis:!0,align:"left"},{title:"\u77E5\u8BC6\u70B9",dataIndex:"course_list_name",width:150,ellipsis:!0,align:"left"},{title:"\u7C7B\u578B",dataIndex:"is_random",width:90,align:"left",render:ca=>ca?"\u968F\u673A\u7EC4\u5377":"\u4EBA\u5DE5\u7EC4\u5377"},{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"updated_at",width:150,align:"left"},{title:"\u8BD5\u9898\u6570",dataIndex:"item_num",width:60,align:"center"},{title:"\u603B\u5206",dataIndex:"total_score",width:60,align:"center"},{title:"\u64CD\u4F5C",dataIndex:"is_random",width:60,align:"center",render:(ca,Qn)=>Ai.createElement("a",{href:ca?`/randompaper/detail/${Qn.id}`:`/paperlibrary/see/${Qn.id}?defaultActiveKey=1`,target:"_blank>"},"\u9884\u89C8")}],[dt,Fa]=(0,a.useState)({page:0,limit:20,group_id:null,object_type:"examination_bank",search:"",filter:"myself"});(0,a.useEffect)(()=>{se.actionTabs.key==="\u8BD5\u5377\u9009\u7528"&&(Sa(),nn([]),ia())},[se.actionTabs.key]);const ia=()=>U0(void 0,null,function*(){const ca=yield _e({type:"paperlibrary/getTeachGroupData"});Wt(ca)}),wu=ca=>{const Qn=parseInt(ca);return isNaN(Qn)?"":Qn},Sa=()=>U0(void 0,null,function*(){var ca,Qn;if(Pe){++dt.page,Ht(!1);const pn=yield _e({type:"exercise/getBrankList",payload:Zf(Sm({},dt),{search:(ca=dt.search)==null?void 0:ca.trim()})});Bn=pn!=null&&pn.object_list?[...Bn.concat(pn==null?void 0:pn.object_list)]:Bn,Yt(pn.is_teacher),((Qn=pn.object_list)==null?void 0:Qn.length){Pt.current.scrollTop=0,Bn=[],dt.page=0,dt.group_id=ca,Pe=!0,nn([]),Fa(Sm({},dt)),Sa()},Oa={selectedRowKeys:ta,onChange:ca=>{nn(ca)},type:"radio"},tu=()=>{Fa(Sm({},{page:0,limit:20,group_id:null,object_type:"examination_bank",search:"",filter:"myself"})),Dn([]),Ht(!0),Gt("myself"),_e({type:"exercise/setActionTabs",payload:{}}),hn(!1)},[Ka,Ba,La,Zn]=(0,dg.P)(),bn=ca=>U0(void 0,null,function*(){let Qn=!1;Bn.forEach(da=>{ta.includes(da.id)&&(Qn=da.is_random)}),zn.current&&(Qn=Be==null?void 0:Be.is_random);const pn=ca.map(da=>({shixun_id:da.id,is_use:da.is_use,is_copy:da.is_copy}));if(!Qn){const da=yield _e({type:"exercise/saveBanks",payload:{course_id:Ve.coursesId,object_type:"examination_bank",bank_id:zn.current?[zn.current]:ta,shixuns_info:pn,is_make_up_exercise:!0,make_up_exercise_id:Number(Ve.categoryId),use_origin_exercise:!!zn.current}});(da==null?void 0:da.status)===0&&((0,de.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u8BD5\u5377\u9009\u7528"]),cn(`/classrooms/${Ve.coursesId}/exercise/${da.exercise_id}/detail?random=${da.is_random}&tabs=3`),Ja(`/classrooms/${Ve.coursesId}/exercise/add/${da.exercise_id}?random=${da.is_random}&type=2`),pe.ZP.success("\u521B\u5EFA\u6210\u529F\uFF0C\u8BF7\u8BBE\u7F6E\u8003\u8BD5\u89C4\u5219"),setTimeout(()=>{window.location.href=`/classrooms/${Ve.coursesId}/exercise/${da.exercise_id}/detail?random=${da.is_random}&tabs=3`},1e3),Ba(),tu());return}_e({type:"exercise/setActionTabs",payload:{}}),Ba();let Tn=1,En=Fe.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:500,maskClosable:!1,keyboard:!1,cancelButtonProps:{disabled:!1},title:"\u914D\u7F6E\u51FA\u5377\u6570\u91CF",content:Ai.createElement("div",{className:i0.modalColumn},Ai.createElement("div",{className:i0.modalRow},Ai.createElement("sup",{className:i0.sup},"*"),Ai.createElement("span",{style:{flexShrink:0}},"\u968F\u673A\u51FA\u5377\u6570\u91CF\uFF1A"),Ai.createElement(Re.Z,{parser:wu,style:{width:120},placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u6570\u91CF",min:1,defaultValue:Tn,onChange:da=>{Tn=da;const Ha=document.getElementById("model_error");Tn<1||Tn>50?Ha.style.display="block":Ha.style.display="none"}})),Ai.createElement("div",{style:{display:"none",marginLeft:106},id:"model_error",className:"c-red"},"\u8BF7\u8F93\u51651-50\u4E4B\u95F4\u7684\u6574\u6570")),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onCancel:tu,onOk:()=>U0(void 0,null,function*(){if(Tn<1||Tn>50){const Ha=document.getElementById("model_error");return Ha.style.display="block",Promise.reject()}En.update({cancelButtonProps:{disabled:!0}});const da=yield _e({type:"exercise/saveBanks",payload:{course_id:Ve.coursesId,object_type:"examination_bank",bank_id:zn.current?[zn.current]:ta,shixuns_info:pn,num:Tn,is_make_up_exercise:!0,make_up_exercise_id:Number(Ve.categoryId),use_origin_exercise:!!zn.current}});En.update({cancelButtonProps:{disabled:!1}}),da&&da.status===0?((0,de.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u8BD5\u5377\u9009\u7528"]),Fe.default.destroyAll(),tu(),Ba(),pe.ZP.success("\u521B\u5EFA\u6210\u529F\uFF0C\u8BF7\u8BBE\u7F6E\u8003\u8BD5\u89C4\u5219"),setTimeout(()=>{window.location.href=`/classrooms/${Ve.coursesId}/exercise/${da.exercise_id}/detail?random=${da.is_random}&tabs=3`},1e3)):(tu(),Ba())})})});return Ai.createElement(Ai.Fragment,null,Ai.createElement(Fe.default,{centered:!0,width:980,title:"\u521B\u5EFA\u8865\u8003",maskClosable:!1,destroyOnClose:!0,open:se.actionTabs.key==="\u8BD5\u5377\u9009\u7528",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:vn,bodyStyle:{minHeight:150},wrapClassName:i0.warpModal,onOk:()=>U0(void 0,null,function*(){var ca;if(mn===1){if(!ta.length){pe.ZP.error("\u8BF7\u9009\u62E9\u8BD5\u5377");return}hn(!0);let Qn=!1,pn=!1;if(Bn.forEach(En=>{ta.includes(En.id)&&En.need_authorize&&(Qn=En.need_authorize),ta.includes(En.id)&&(pn=En.is_random)}),Qn){(0,lr.rX)(!1,"\u8BE5\u8BD5\u5377\u4E2D\u5305\u542B\u5B9E\u8BAD\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002");return}(yield Zn({id:`${ta[0]}`,course_id:Ve.coursesId,type:"examination_bank"}))||bn([]),hn(!1)}else{hn(!0);const Qn=yield(0,Ce.ZP)(`/api/exercises/${Ve.categoryId}/use_origin_exercise.json`,{method:"post"}),pn=yield Zn({id:`${ta[0]}`,course_id:Ve.coursesId,type:"examination_bank",result:Qn});zn.current=(ca=Qn==null?void 0:Qn.save_banks_params)==null?void 0:ca.bank_id,pn||bn([]),hn(!1)}}),onCancel:tu},Ai.createElement(Ie.ZP.Group,{value:mn,onChange:ca=>pa(ca.target.value),style:{marginTop:10,marginBottom:15}},Ai.createElement(Ie.ZP,{value:1},"\u91CD\u65B0\u9009\u62E9\u8BD5\u5377"),Ai.createElement(Ie.ZP,{value:2},"\u7EE7\u7EED\u4F7F\u7528\u539F\u8BD5\u5377")),mn===1?Ai.createElement(Ai.Fragment,null,Ai.createElement(y.default,{activeKey:xt,onTabClick:ca=>U0(void 0,null,function*(){Pt.current.scrollTop=0,Bn=[],xt!==ca&&nn([]),Gt(ca),dt.page=0,dt.filter=ca,dt.group_id=null,Pe=!0,Sa()})},Ai.createElement(Gm,{tab:Ai.createElement("span",null,"\u6211\u7684\u8BD5\u5377\u5E93"),key:"myself"}),Ai.createElement(Gm,{tab:Ai.createElement("span",null,"\u6559\u7814\u5171\u4EAB"),key:"teacher"}),Ai.createElement(Gm,{tab:Ai.createElement("span",null,"\u516C\u5171\u8BD5\u5377\u5E93"),key:"public"})),Ai.createElement("div",{className:i0.tabSearch},xt==="teacher"&&Ai.createElement(ft.default,{value:dt.group_id,onChange:Hn,size:"middle",style:{width:200,marginRight:30}},Ai.createElement(ft.default.Option,{value:null},"\u5168\u90E8\u6559\u7814\u56E2\u961F"),(pt=Fn==null?void 0:Fn.groups)==null?void 0:pt.map(ca=>Ai.createElement(ft.default.Option,{key:ca==null?void 0:ca.group_id,value:ca==null?void 0:ca.group_id},ca==null?void 0:ca.name))),Ai.createElement(Le.default.Search,{placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0\u8FDB\u884C\u641C\u7D22",value:dt.search,onChange:ca=>{dt.search=ca.target.value,Fa(Sm({},dt))},onSearch:ca=>{Pt.current.scrollTop=0,Bn=[],dt.page=0,Pe=!0,nn([]),ca&&(0,Mf.tk)({name:ca,copywriting:ca,position:"Exercise"}),Sa()}})),Ai.createElement("div",{ref:Pt,style:{maxHeight:350,overflowY:"auto",overflowX:"hidden",marginTop:10,paddingBottom:20}},!Ut&&xt==="public"&&Ai.createElement("div",{style:{display:"flex",flexDirection:"column",paddingTop:"30px",alignItems:"center",justifyContent:"center"}},Ai.createElement("span",null,"\u901A\u8FC7\u804C\u4E1A\u8BA4\u8BC1\u7684\u6559\u5E08\u624D\u80FD\u8BBF\u95EE\u516C\u5171\u8BFE\u7A0B\u8D44\u6E90\u5E93"),Ai.createElement("p",{style:{cursor:"pointer",background:"#ff6800",height:"30px",textAlign:"center",marginTop:"5px",padding:"5px 0px",color:"#fff",width:"80px"},onClick:()=>{window.open("/account/certification")}},"\u7ACB\u5373\u8BA4\u8BC1")),Ai.createElement(bo(),{initialLoad:!1,pageStart:0,loadMore:()=>{Sa()},hasMore:Pe,useWindow:!1},se.actionTabs.key==="\u8BD5\u5377\u9009\u7528"&&Ut&&Ai.createElement(Of.Z,{className:i0.hideHeadCheckbox,pagination:!1,hideSelectAll:!0,dataSource:Bn,onRow:ca=>({onClick:()=>{nn([ca==null?void 0:ca.id])}}),resColumns:ha,rowSelection:Oa})))):Ai.createElement(Ai.Fragment,null,Ai.createElement("div",{className:i0.shijuan},Ai.createElement("div",null,"\u8BD5\u5377\uFF1A"),Ai.createElement("div",{className:i0.name},Ai.createElement("span",null,Be==null?void 0:Be.exercise_name))),Ai.createElement("div",{className:i0.tip},"\u63D0\u793A\uFF1A\u4F7F\u7528\u539F\u8BD5\u5377\u521B\u5EFA\u8865\u8003\uFF0C\u4F1A\u81EA\u52A8\u5C06\u539F\u8BD5\u5377\u5148\u4FDD\u5B58\u4E00\u4EFD\u5230\u8BD5\u5377\u5E93\u4E2D"))),Ai.createElement(Fe.default,{title:"\u63D0\u793A",open:Nt,confirmLoading:!1,centered:!0,okText:"\u8BBE\u7F6E\u89C4\u5219",cancelText:"\u4FEE\u6539\u8BD5\u5377",footer:Ai.createElement("div",null,Ai.createElement(me.ZP,{onClick:()=>{Rt(!1),he.history.push(tn)}},"\u4FEE\u6539\u8BD5\u5377"),Ai.createElement(me.ZP,{type:"primary",onClick:()=>{he.history.push(Xt),Rt(!1)}},"\u8BBE\u7F6E\u89C4\u5219")),onCancel:()=>{Rt(!1)}},Ai.createElement("p",null,"\u8BD5\u5377\u521B\u5EFA\u5B8C\u6210\uFF01\u76EE\u524D\u5904\u4E8E\u672A\u53D1\u5E03\u72B6\u6001\uFF0C\u662F\u5426\u8BBE\u7F6E\u8003\u8BD5\u89C4\u5219\uFF1F")),Ai.createElement(dg.Z,{inPaper:!0,visible:Ka,onCancel:Ba,onOk:bn,renderData:La,modalType:"multiple",type:"examination_bank"}))};var Uf=(0,he.connect)(({exercise:ce,loading:se,classroomList:ae})=>({exercise:ce,loading:se,classroomList:ae}))(Qf),fg=z(89779),Pm=z(67294),Hf=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Wf=({exercise:ce,dispatch:se})=>{const{value:ae}=ce.actionTabs.params||{},[_e,pt]=(0,a.useState)(!1),{categoryId:Ve,coursesId:Dt}=(0,he.useParams)(),et=()=>Hf(void 0,null,function*(){pt(!0);let Be;ae!=null&&ae.is_wrong?Be=yield(0,fg._B)(Ve,{exercise_question_id:ae==null?void 0:ae.question_id}):Be=yield(0,fg.pr)(Ve,{exercise_question_id:ae==null?void 0:ae.question_id}),(Be==null?void 0:Be.status)===0&&(pe.ZP.success(Be==null?void 0:Be.message),se({type:"paperlibrary/setActionTabs",payload:{params:{isUpdateData:!0}}}),se({type:"exercise/editExercise",payload:{categoryId:Ve,coursesId:Dt}}),se({type:"exercise/setActionTabs",payload:{}})),pt(!1)});return Pm.createElement(Fe.default,{title:"\u63D0\u793A",width:600,centered:!0,open:ce.actionTabs.key==="\u6807\u8BB0\u9519\u9898",confirmLoading:_e,onCancel:()=>se({type:"exercise/setActionTabs",payload:{}}),onOk:et},Pm.createElement("p",null,ae!=null&&ae.is_wrong?"\u8BF7\u786E\u8BA4\u662F\u5426\u5C06\u672C\u9053\u8BD5\u9898\u53D6\u6D88\u6807\u8BB0\u4E3A\u9519\u9898\uFF1F":"\u8BF7\u786E\u8BA4\u662F\u5426\u5C06\u672C\u9053\u8BD5\u9898\u6807\u8BB0\u4E3A\u9519\u9898\uFF1F"),ae!=null&&ae.is_wrong?Pm.createElement("p",null,"\u53D6\u6D88\u6807\u8BB0\u540E\u5C06\u6309\u7167\u5B66\u751F\u5B9E\u9645\u7B54\u9898\u60C5\u51B5\u91CD\u65B0\u8BA1\u7B97\u5B66\u751F\u672C\u9053\u8BD5\u9898\u5F97\u5206\u3002"):Pm.createElement("p",null,"\u6807\u8BB0\u540E\u5C06\u91CD\u65B0\u8BA1\u7B97\u5DF2\u4EA4\u5377\u5B66\u751F\u6210\u7EE9\uFF0C\u5C06\u5DF2\u4EA4\u5377\u5B66\u751F\u672C\u9053\u8BD5\u9898\u5F97\u5206\u8C03\u6574\u4E3A",ae==null?void 0:ae.question_score,"\u5206\u3002"))};var Vf=(0,he.connect)(({exercise:ce})=>({exercise:ce}))(Wf),Gf="data:image/png;base64,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agiIEKo2ouqPEBACQqAkAiKEksCpmBAQAkKgagiIEKo2ouqPEBACQqAkAiKEksCpmBAQAkKgagiIEKo2ouqPEBACQqAkAiKEksCpmBAQAkKgagiIEKo2ouqPEBACQqAkAiKEksCpmBAQAkKgagiIEKo2ouqPEBACQqAkAiKEksCpmBAQAkKgagiIEKo2ouqPEBACQqAkAiKEksCpmBAQAkKgagiIEAZzRAcMGNCihn///TcMHDiwRbwihj0E+vbtG/iTCAEhEEKPqLikuQbjTth4441Dnz59wi677BImm2yy8NBDD4Vdd901zDTTTOHUU08Ne++9dzjggAPC9NNP33QVYP/iiy+a4vxktNFGs3r8vOi45JJLhrHGGqsoyeIgJRTdn3/+GX766afw6aefhs8//zx89tlnFv7kk0/CzDPPHE455ZSmOr7//vtw2GGHNcUN6mSvvfayvqf5/vjjj7Dgggta1KuvvpomWfiKK64I5513Xhh55JHD1VdfHXr37t0iz+uvvx7eeOONsN5661na119/3SIPEaOMMkoYY4wxLO3nn38OjMkkk0wSzj333ML8Hvnrr7+GRRZZxE4fe+yxNvH0Mp11fOqpp8IDDzwQ9t9//9CrV68W1T766KNhp512Cssvv3w4/vjjW6QTwRh/9NFH4e233w5vvfVWePPNN8Nff/0VLrzwwvDggw+GlVZaKfTo0cPqeeaZZ8Kll14aZpxxRivDfcH4D0q4T3/55Re7d7iH+OMe4v753//+F7bddttBVaH0LoTAcF2orcNcU1FYruy22mora9/www9vRx5WFN3LL78cNtlkk3DJJZcYSXgn+vXrF1ZccUU/bTqS//LLL2+Ky5/MPvvsTQrsiCOOCE8++WRAEfMAt0dQsCgRyMvl999/DyijkUYaKay66qoeXXi87bbbTAHtsMMOLdLpf2sCEbqSo63HHXdcdu5lUOxbbrml1U+bll566bDKKqt4ctNx3XXXDSussEL47rvvArigtP7++++mPEUnbbWxKH9nxUG62223nVUHSWM4XHvtteHss8/OLoFiR+65557wyCOPWJiPUUcdNTz88MN2vtgY0tpOAAAPGklEQVRiixWO9bLLLmvxI4wwQiDMPUF99BcFj4HCvcs9Oddcc1ld11xzTbjrrrvMgABvynCPejssU+6De3/NNdcM4447bi5F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";const Kf=(ce=[],se=[],ae=[])=>(console.log("---",ce,se,ae),{tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:["\u7B49\u7EA7A","\u7B49\u7EA7B","\u7B49\u7EA7C","\u7B49\u7EA7D","\u7B49\u7EA7E"]}],yAxis:[{type:"value"}],series:[{name:"\u7F3A\u9677",type:"bar",stack:"Ad",color:["#5c9ef7"],emphasis:{focus:"series"},data:ae},{name:"\u6F0F\u6D1E",type:"bar",stack:"Ad",color:["#75c87c"],emphasis:{focus:"series"},data:se},{name:"\u4EE3\u7801\u89C4\u8303\u6027",type:"bar",stack:"Ad",color:["#f3d460"],emphasis:{focus:"series"},data:ce}]}),Yf=(ce=[])=>({dataset:[{source:ce}],tooltip:{show:!0,formatter:function(se){return se.value[2]+":"+se.value[1]+"\u5206"}},xAxis:{splitLine:{lineStyle:{type:"dashed"}},show:!1},yAxis:{splitLine:{lineStyle:{type:"dashed"}}},series:[{name:"scatter",type:"scatter",datasetIndex:0},{name:"line",type:"line",smooth:!0,datasetIndex:1,symbolSize:.1,symbol:"circle",label:{show:!0,fontSize:16},labelLayout:{dx:-20},encode:{label:2,tooltip:1}}]});var Xf=Object.defineProperty,vg=Object.getOwnPropertySymbols,Jf=Object.prototype.hasOwnProperty,qf=Object.prototype.propertyIsEnumerable,pg=(ce,se,ae)=>se in ce?Xf(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,Dm=(ce,se)=>{for(var ae in se||(se={}))Jf.call(se,ae)&&pg(ce,ae,se[ae]);if(vg)for(var ae of vg(se))qf.call(se,ae)&&pg(ce,ae,se[ae]);return ce},Km=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const _f=({shixunHomeworks:ce,loading:se,dispatch:ae})=>{var _e,pt,Ve,Dt;const et=(0,he.useParams)(),[Be,Pe]=(0,a.useState)(Dm(Dm({},{sort_by:"student_id",sort_direction:"desc"}),et)),[Ht,vn]=(0,a.useState)(),[hn,xt]=(0,a.useState)([]);let Gt=(0,a.useRef)();const[Bn,Dn]=(0,a.useState)(1),[Fn,Wt]=(0,a.useState)(!1),[Ut,Yt]=(0,a.useState)(10),[ta,nn]=(0,a.useState)([]);(0,a.useEffect)(()=>{mn()},[]);const zn=[{title:"\u5B66\u53F7",dataIndex:"student_number",sorter:!0,showSorterTooltip:!1,sortOrder:Be.sort_by==="student_number"?Be.sort_direction==="desc"?"descend":"ascend":null},{title:"\u5206\u73ED",dataIndex:"group_course_name"},{title:"\u59D3\u540D",dataIndex:"user_name"},{title:"\u7F3A\u9677",children:[{title:"\u963B\u65AD",dataIndex:"bug",render:Pt=>a.createElement("span",{className:"current"},Pt==null?void 0:Pt.blocker)},{title:"\u4E25\u91CD",dataIndex:"bug",render:Pt=>a.createElement("span",{className:"current"},Pt==null?void 0:Pt.critical)},{title:"\u4E3B\u8981",dataIndex:"bug",render:Pt=>a.createElement("span",{className:"current"},Pt==null?void 0:Pt.major)},{title:"\u6B21\u8981",dataIndex:"bug",render:Pt=>a.createElement("span",{className:"current"},Pt==null?void 0:Pt.minor)},{title:"\u7B49\u7EA7",dataIndex:"bug",sorter:!1,showSorterTooltip:!1,sortOrder:Be.sort_by==="bug"?Be.sort_direction==="desc"?"descend":"ascend":null,render:Pt=>a.createElement("span",{className:"current"},Pt==null?void 0:Pt.grade)}]},{title:"\u6F0F\u6D1E",children:[{title:"\u963B\u65AD",dataIndex:"vulnerability",render:Pt=>a.createElement("span",{className:"current"},Pt==null?void 0:Pt.blocker)},{title:"\u4E25\u91CD",dataIndex:"vulnerability",render:Pt=>a.createElement("span",{className:"current"},Pt==null?void 0:Pt.critical)},{title:"\u4E3B\u8981",dataIndex:"vulnerability",render:Pt=>a.createElement("span",{className:"current"},Pt==null?void 0:Pt.major)},{title:"\u6B21\u8981",dataIndex:"vulnerability",render:Pt=>a.createElement("span",{className:"current"},Pt==null?void 0:Pt.minor)},{title:"\u7B49\u7EA7",dataIndex:"vulnerability",sorter:!1,showSorterTooltip:!1,sortOrder:Be.sort_by==="vulnerability"?Be.sort_direction==="desc"?"descend":"ascend":null,render:Pt=>a.createElement("span",{className:"current"},Pt==null?void 0:Pt.grade)}]},{title:"\u4EE3\u7801\u89C4\u8303\u6027",children:[{title:"\u963B\u65AD",dataIndex:"specification",render:Pt=>a.createElement("span",{className:"current"},Pt==null?void 0:Pt.blocker)},{title:"\u4E25\u91CD",dataIndex:"specification",render:Pt=>a.createElement("span",{className:"current"},Pt==null?void 0:Pt.critical)},{title:"\u4E3B\u8981",dataIndex:"specification",render:Pt=>a.createElement("span",{className:"current"},Pt==null?void 0:Pt.major)},{title:"\u6B21\u8981",dataIndex:"specification",render:Pt=>a.createElement("span",{className:"current"},Pt==null?void 0:Pt.minor)},{title:"\u7B49\u7EA7",dataIndex:"specification",sorter:!1,showSorterTooltip:!1,sortOrder:Be.sort_by==="specification"?Be.sort_direction==="desc"?"descend":"ascend":null,render:Pt=>a.createElement("span",{className:"current"},Pt==null?void 0:Pt.grade)}]},{title:"\u590D\u6742\u4EE3\u7801",dataIndex:"complexity",sorter:!0,showSorterTooltip:!1,sortOrder:Be.sort_by==="complexity"?Be.sort_direction==="desc"?"descend":"ascend":null},{title:"\u4EE3\u7801\u884C\u6570",dataIndex:"total_row_number",sorter:!0,showSorterTooltip:!1,sortOrder:Be.sort_by==="total_row_number"?Be.sort_direction==="desc"?"descend":"ascend":null},{title:"\u8D28\u91CF\u8BC4\u5206",dataIndex:"quality_score",sorter:!0,showSorterTooltip:!1,sortOrder:Be.sort_by==="quality_score"?Be.sort_direction==="desc"?"descend":"ascend":null},{title:"\u64CD\u4F5C",dataIndex:"action",align:"center",render:(Pt,Nt)=>a.createElement("a",{target:"_blank",href:`/classrooms/${et.coursesId}/exercise/${et.categoryId}/analysis/${Nt.id}`,className:"current c-light-primary"},"\u8BE6\u7EC6\u5206\u6790")}];(0,a.useEffect)(()=>(Ht===2&&(Gt.current=setInterval(()=>{mn()},6e4)),()=>{clearTimeout(Gt.current)}),[Ht]);function mn(){return Km(this,null,function*(){const Pt=yield(0,Ce.ZP)(`/api/exercises/${Be.categoryId}/check_status.json`,{method:"GET"});vn(Pt.status),Pt.status!=2&&Pt.status!=-1&&(pa({page:1,limit:10}),clearTimeout(Gt.current))})}function pa(Pt){return Km(this,null,function*(){Dn(Pt==null?void 0:Pt.page),Yt(Pt==null?void 0:Pt.limit);const Nt=yield(0,Ce.ZP)(`/api/exercises/${Be.categoryId}/code_quality_analysis_index.json`,{method:"GET",params:Dm({},Pt)});xt(Nt)})}return console.log("-------",et),a.createElement("section",{style:{paddingBottom:"10px"},className:"minH500 bg-white pt10"},(Ht===0||Ht===1)&&a.createElement("div",null,a.createElement("p",{style:{display:"flex"}},a.createElement("span",{style:{flex:"1"}},a.createElement("label",null,"\u68C0\u6D4B\u65F6\u95F4\uFF1A",hn==null?void 0:hn.created_at)),a.createElement(me.ZP,{onClick:()=>{ae({type:"shixunHomeworks/setActionTabs",payload:{key:"\u8D28\u91CF\u68C0\u6D4B"}})}},"\u91CD\u65B0\u68C0\u6D4B")),a.createElement("p",{style:{display:"flex"}},a.createElement(oe.Z,{style:{width:"100%"}},a.createElement(ve.Z,{flex:"80px"},a.createElement("label",null,"\u5206\u73ED\u60C5\u51B5:")),a.createElement(ve.Z,{flex:"80px"},a.createElement(Se.default,{checked:(ta==null?void 0:ta.length)===0,onChange:Pt=>{Pt.target.checked&&(nn([]),pa({page:Bn,limit:Ut}))},style:{fontSize:"14px"},value:"all"},"\u5168\u90E8")),a.createElement(ve.Z,{flex:"1"},a.createElement(Se.default.Group,{value:ta,onChange:Pt=>Km(void 0,null,function*(){nn([...Pt]),pa({page:Bn,limit:Ut,group_course_ids:Pt})}),style:{width:"100%",fontSize:"14px"}},(_e=hn==null?void 0:hn.course_groups)==null?void 0:_e.map((Pt,Nt)=>a.createElement(Se.default,{style:{fontSize:"14px"},value:Pt==null?void 0:Pt.id},Pt==null?void 0:Pt.name,"(",Pt==null?void 0:Pt.count,")")))))),a.createElement("p",{style:{display:"flex"}},a.createElement("span",null,a.createElement("label",{style:{color:"red"}},"\u6CE8\u610F\uFF1A")),"\u672C\u9875\u4EC5\u663E\u793A\u5168\u90E8\u5DF2\u5B8C\u6210\u68C0\u6D4B\u7684\u5206\u73ED"),a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},a.createElement("div",null,a.createElement("p",{style:{marginLeft:"20px",fontSize:"20px",fontWeight:500}},"\u4EE3\u7801\u7B49\u7EA7\u5206\u6790"),(hn==null?void 0:hn.grade_statistics)&&a.createElement(td.Z,{option:Kf((pt=hn==null?void 0:hn.grade_statistics)==null?void 0:pt.map(Pt=>Pt.specification_count),(Ve=hn==null?void 0:hn.grade_statistics)==null?void 0:Ve.map(Pt=>Pt.vulnerability_count),(Dt=hn==null?void 0:hn.grade_statistics)==null?void 0:Dt.map(Pt=>Pt.bug_count)),style:{height:400,width:600},opts:{renderer:"svg"}})),a.createElement("div",null,a.createElement("p",{style:{marginLeft:"20px",fontSize:"20px",fontWeight:500}},"\u4EE3\u7801\u8D28\u91CF\u5206\u5E03"),(hn==null?void 0:hn.quality_scores)&&a.createElement(td.Z,{option:Yf(hn==null?void 0:hn.quality_scores.map((Pt,Nt)=>[Nt+1,Pt==null?void 0:Pt.quality_score,Pt==null?void 0:Pt.user_name])),style:{height:400,width:600},opts:{renderer:"svg"}}))),a.createElement("div",null,a.createElement("div",{style:{display:"flex"}},a.createElement("p",{style:{marginLeft:"20px",fontSize:"20px",fontWeight:500,flex:"1"}},"\u8BE6\u7EC6\u5217\u8868"),a.createElement(Le.default.Search,{size:"middle",onSearch:Pt=>{pa({page:1,limit:Ut,search:Pt})},style:{width:"300px"},enterButton:"\u641C\u7D22"})),a.createElement(x.default,{columns:zn,dataSource:hn==null?void 0:hn.analysis,bordered:!0,scroll:{x:"calc(800px + 50%)"},pagination:!1,onChange:(Pt,Nt,Rt)=>{Rt.field&&(Be.sort_by=Rt.field),Rt.order||(Be.sort_direction="asc"),Rt.order==="ascend"&&(Be.sort_direction="asc"),Rt.order==="descend"&&(Be.sort_direction="desc"),Rt.order||(Be.sort_direction="asc"),pa(Dm({page:1,limit:Ut},Be))}}),a.createElement(He.Z,{current:Bn,total:hn==null?void 0:hn.total_count,pageSizeOptions:["10","20","50","100","200"],pageSize:Ut,style:{textAlign:"center",marginTop:"20px",marginBottom:"20px"},onChange:(Pt,Nt)=>{Dn(Pt),Yt(Nt),pa({page:Pt,limit:Nt,group_course_ids:ta})}}))),Ht===2&&a.createElement("div",{style:{textAlign:"center",margin:"100px 0px",paddingBottom:"100px"}},a.createElement("img",{src:Gf}),a.createElement("br",null),a.createElement(me.ZP,{type:"primary",style:{width:"120px",height:"40px"},onClick:()=>{mn()}},"\u5237\u65B0\u9875\u9762")),a.createElement(ul,null),a.createElement(Fe.default,{centered:!0,width:1200,title:"\u8BE6\u7EC6\u5206\u6790",destroyOnClose:!0,open:!!Fn,footer:null,onCancel:()=>Wt(!1)},a.createElement("div",{style:{height:500,overflow:"hidden"}},!!Fn&&a.createElement("iframe",{style:{height:"100%",width:"100%"},src:`https://sonar.educoder.net/project/issues?id=${et==null?void 0:et.categoryId}-${Fn==null?void 0:Fn.student_number}&resolved=false`,frameBorder:"0"}))))};var $f=(0,he.connect)(({shixunHomeworks:ce,loading:se})=>({shixunHomeworks:ce,loading:se.effects}))(_f),rs={flex_box_center:"flex_box_center___Mm5wp",flex_space_between:"flex_space_between___Xglxr",flex_box_vertical_center:"flex_box_vertical_center___oLvCy",flex_box_center_end:"flex_box_center_end___IEhG2",flex_box_column:"flex_box_column___TStIz",wrap:"wrap___WfgpQ",control:"control___Uvc1U",btn:"btn___gckHk",customTable:"customTable___fDCPQ",bgH:"bgH___FpdXp",cusModal:"cusModal___KC0OL",imgWrap:"imgWrap_____xpC",img:"img___y1_Tn",iBtn:"iBtn___PezSP",text:"text___JKvO_",no:"no___WXMqt",textP:"textP___E5hyW",video:"video___XvBIh",sys:"sys___wcaty",li:"li___vKMNS",d1:"d1___jR3G0",b1:"b1___xuUNz",es:"es___WFOJ6",listWrap:"listWrap___KKt7_",list:"list___SBQMa",mask:"mask___xkriH",icons:"icons___uLWh_",time:"time___tPYgD"},Xa=z(67294),ev=Object.defineProperty,tv=Object.defineProperties,nv=Object.getOwnPropertyDescriptors,Eg=Object.getOwnPropertySymbols,av=Object.prototype.hasOwnProperty,uv=Object.prototype.propertyIsEnumerable,Ag=(ce,se,ae)=>se in ce?ev(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,bd=(ce,se)=>{for(var ae in se||(se={}))av.call(se,ae)&&Ag(ce,ae,se[ae]);if(Eg)for(var ae of Eg(se))uv.call(se,ae)&&Ag(ce,ae,se[ae]);return ce},rv=(ce,se)=>tv(ce,nv(se)),H0=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const lv=({exercise:ce,dispatch:se,user:ae})=>{var _e;const pt=(0,he.useParams)(),[Ve,Dt]=(0,a.useState)({page:1,limit:20,sort_by:null,sort_direction:null,state:null,audit:null,name:"",keyword:"",course_group_id:[],exercise_id:pt==null?void 0:pt.categoryId}),[et]=fe.default.useForm(),[Be,Pe]=(0,a.useState)(),[Ht,vn]=(0,a.useState)(!1),{exerciseList:hn,commonHeader:xt}=ce,[Gt,Bn]=(0,a.useState)([]),[Dn,Fn]=(0,a.useState)([]),[Wt,Ut]=(0,a.useState)(0),[Yt,ta]=(0,a.useState)(!0),[nn,zn]=(0,a.useState)(!1),[mn,pa]=(0,a.useState)(!1),[Pt,Nt]=(0,a.useState)(!1),[Rt,Xt]=(0,a.useState)(""),cn=(0,a.useRef)(null),tn=[{name:"IP\u5F02\u5E38",id:1},{name:"\u6D4F\u89C8\u5668\u5F02\u5E38",id:2},{name:"\u767B\u5F55\u5F02\u5E38",id:3},{name:"\u5207\u5C4F",id:4},{name:"\u8003\u8BD5\u5EF6\u65F6",id:5},{name:"\u6253\u56DE\u91CD\u505A",id:6},{name:"\u4F7F\u7528\u8003\u8BD5\u89E3\u9501\u7801",id:7},{name:"\u9000\u51FA\u5168\u5C4F",id:8}],[Ja,ha]=(0,a.useState)([]);(0,a.useEffect)(()=>{dt(Ve)},[]),(0,a.useEffect)(()=>(clearInterval(cn.current),(xt==null?void 0:xt.exercise_status)===2&&(cn.current=setInterval(()=>{dt(Ve)},3e4)),()=>{clearInterval(cn.current)}),[xt==null?void 0:xt.exercise_status,Ve]);const dt=Zn=>H0(void 0,null,function*(){const bn=hu().cloneDeep(Zn);console.log(bn,"sendData"),ta(!0),Bn([]);const ca=yield(0,Ce.ZP)(`/api/exercises/${Zn==null?void 0:Zn.exercise_id}/exercise_abnormities.json`,{method:"get",params:bn});ha((ca==null?void 0:ca.error_types)||[]),Fn([]),ta(!1),Ut(ca==null?void 0:ca.total_count),Bn((ca==null?void 0:ca.exercise_abnormites)||[])}),Fa=(Zn,bn)=>{Ve.page=1,Ve[bn]=Zn,Dt(bd({},Ve)),dt(Ve)},ia=Zn=>{Ve.page=1,Ve.keyword=Zn,Dt(bd({},Ve))},wu=()=>{Ve.page=1;const Zn=Object.assign({},et.getFieldValue());Object.keys(Zn).map(function(bn){switch(bn){case"error_type":Zn[bn].includes("all")||!Zn[bn].length?(delete Ve.error_type,et.setFieldsValue({error_type:"all"})):(Ve.error_type=Zn[bn],et.setFieldsValue({error_type:Ve.error_type}));break;case"course_group_id":Zn[bn].includes("all")||!Zn[bn].length?(delete Ve.course_group,et.setFieldsValue({course_group_id:"all"})):(Ve.course_group=Zn[bn],et.setFieldsValue({course_group_id:Ve.course_group}));break}}),Dt(bd({},Ve)),dt(Ve)};(0,a.useEffect)(()=>{document.getElementById("divhe")&&document.getElementById("divhe").scrollHeight>47&&(Pe(47),vn(!0))},[document.getElementById("divhe"),hn]);const Sa=(Zn,bn,ca)=>{Ve.page=Zn==null?void 0:Zn.current,Ve.limit=Zn==null?void 0:Zn.pageSize,ca!=null&&ca.order?(Ve.sort_by=ca==null?void 0:ca.field,Ve.sort_direction=(ca==null?void 0:ca.order)==="ascend"?"asc":"desc"):(Ve.sort_by=null,Ve.sort_direction=null),Dt(bd({},Ve)),dt(Ve)},Hn=[{title:"\u5E8F\u53F7",dataIndex:"number",width:80,render:(Zn,bn,ca)=>Ve.limit*(Ve.page-1)+ca+1},{title:"\u59D3\u540D",dataIndex:"real_name",width:110,ellipsis:{showTitle:!1},render:Zn=>Xa.createElement(Ae.Z,{placement:"bottomLeft",title:Zn},Xa.createElement("span",null,Zn))},{title:"\u5B66\u53F7",dataIndex:"student_id",sorter:!0,width:130,showSorterTooltip:!1,ellipsis:{showTitle:!1},render:Zn=>Xa.createElement(Ae.Z,{placement:"bottomLeft",title:Zn},Xa.createElement("span",null,Zn||"--"))},{title:"\u5206\u73ED",dataIndex:"course_group_name",width:130,showSorterTooltip:!1,ellipsis:{showTitle:!1},render:Zn=>Xa.createElement(Ae.Z,{placement:"bottomLeft",title:Zn},Xa.createElement("span",null,Zn||"--"))},{title:"\u64CD\u4F5C\u65F6\u95F4",width:180,dataIndex:"created_at",ellipsis:{showTitle:!1}},{title:"\u7C7B\u578B",dataIndex:"error_type",width:140,ellipsis:{showTitle:!1}},{title:"\u8BF4\u660E",dataIndex:"description",ellipsis:{showTitle:!1},render:(Zn,bn)=>Xa.createElement(Xa.Fragment,null,Xa.createElement(Ae.Z,{placement:"bottomLeft",title:Zn},Xa.createElement("span",null,Zn||"--")),(bn==null?void 0:bn.user_screen_num)>=50&&Xa.createElement(Ae.Z,{placement:"bottomLeft",title:"\u6CE8\u610F\uFF1A\u8BE5\u5B66\u751F\u7684\u622A\u5C4F\u603B\u6570\u91CF\u5DF2\u8FBE\u523050\u5F20\uFF0C\u9700\u8981\u624B\u52A8\u5220\u9664\u5DF2\u622A\u5C4F\u7684\u56FE\u7247\u4E4B\u540E\u624D\u80FD\u7EE7\u7EED\u81EA\u52A8\u622A\u5C4F"},Xa.createElement("i",{className:"iconfont icon-tishi11 font14 ml5 mr5",style:{color:"#FA6400"}})),(bn==null?void 0:bn.user_screen_num)>0&&Xa.createElement("span",{onClick:()=>Xt(bn==null?void 0:bn.user_id),className:"current c-light-primary ml10"},"\u622A\u5C4F\u8BB0\u5F55"))}],Oa=Zn=>{Fn(Zn)},tu=()=>{zn(!1),dt(Ve)},Ka=Zn=>{const bn=[{title:"\u5BA1\u6838\u65F6\u95F4",dataIndex:"audit_time",width:170,render:(Qn,pn)=>Xa.createElement("span",null,Qn||"--")},{title:"\u5BA1\u6838\u72B6\u6001",dataIndex:"exercise_identity_photo_state",width:110,render:(Qn,pn)=>Xa.createElement(Xa.Fragment,null,Qn==="passed"&&Xa.createElement("span",{style:{color:"#44D7B6"}},"\u5BA1\u6838\u901A\u8FC7"),Qn==="rejected"&&Xa.createElement("span",{style:{color:"#E53333"}},"\u5BA1\u6838\u4E0D\u901A\u8FC7"),Qn==="submitted"&&Xa.createElement("span",{style:{color:"#666666"}},"\u5F85\u5BA1\u6838"))},{title:"\u5BA1\u6838\u610F\u89C1",dataIndex:"comment",render:(Qn,pn)=>Qn?Xa.createElement(Ae.Z,{placement:"bottom",title:Qn},Xa.createElement("span",null,Qn)):"--"},{title:"\u91C7\u96C6\u7167\u7247",dataIndex:"photo_url",width:90,render:(Qn,pn)=>Xa.createElement("span",{className:"current c-light-primary",onClick:()=>{Pa.Z.publish("preview-image",Qn)}},"\u67E5\u770B")}],ca=Fe.default.confirm({icon:null,width:700,className:`${rs.cusModal} custom-modal-divider`,centered:!0,title:Xa.createElement(oe.Z,null,Xa.createElement(ve.Z,{flex:"1"},"\u5BA1\u6838\u8BB0\u5F55"),Xa.createElement(ve.Z,null,Xa.createElement("span",{className:"iconfont icon-guanbi7 font12 current c-grey-c",onClick:()=>ca.destroy()}))),content:Xa.createElement("div",null,Xa.createElement(x.default,{className:rs.customTable,dataSource:[bd({},Zn)],bordered:!1,columns:bn,rowKey:"exercise_identity_photo_id",rowClassName:rs.row,pagination:!1}))})},Ba=Zn=>{var bn,ca;const Qn=Fe.default.confirm({icon:null,className:`${rs.cusModal} custom-modal-divider`,centered:!0,width:((bn=Zn==null?void 0:Zn.play_url)==null?void 0:bn.length)<6?724:744,title:Xa.createElement(oe.Z,null,Xa.createElement(ve.Z,{flex:"1"},"\u89C6\u9891"),Xa.createElement(ve.Z,null,Xa.createElement("span",{className:"iconfont icon-guanbi7 font12 current c-grey-c",onClick:()=>Qn.destroy()}))),content:Xa.createElement("ul",{className:rs.sys},(ca=Zn==null?void 0:Zn.play_url)==null?void 0:ca.map((pn,Tn)=>Xa.createElement("li",{className:rs.li,key:Tn},Xa.createElement("div",{className:rs.d1},Xa.createElement("div",{className:rs.img},Xa.createElement(cc,{src:pn==null?void 0:pn.replace(".m3u8",".flv"),autoPlay:!0})),Xa.createElement("div",{className:rs.btn},Xa.createElement("div",{className:rs.b1},"\u56DE\u653E\u89C6\u9891",Tn+1))))))})},La=Zn=>{const bn=Fe.default.confirm({icon:null,className:`${rs.cusModal} custom-modal-divider`,centered:!0,width:710,title:Xa.createElement(oe.Z,null,Xa.createElement(ve.Z,{flex:"1"},"\u4EBA\u8138\u7167\u7247"),Xa.createElement(ve.Z,null,Xa.createElement("span",{className:"iconfont icon-guanbi7 font12 current c-grey-c",onClick:()=>bn.destroy()}))),content:Xa.createElement(oe.Z,null,Xa.createElement("aside",{className:rs.imgWrap,style:{marginBottom:40}},Xa.createElement("div",{className:rs.img},Xa.createElement("img",{width:326,src:(0,de.Tv)(Zn==null?void 0:Zn.photo_url)}),Xa.createElement("div",{className:rs.textP},"\u91C7\u96C6\u7167\u7247")),Xa.createElement("div",{className:rs.img,style:{marginLeft:20}},Zn!=null&&Zn.identity_url?Xa.createElement("img",{width:326,src:(0,de.Tv)(Zn==null?void 0:Zn.identity_url)}):Xa.createElement("div",{className:rs.no,style:{width:326}},Xa.createElement("span",null,"\u6682\u65E0\u8BC1\u4EF6\u7167\u7247")),Xa.createElement("div",{className:rs.textP},"\u8BC1\u4EF6\u7167\u7247"))))})};return Xa.createElement("section",{className:rs.wrap},Xa.createElement(fe.default,{form:et,onChange:wu,initialValues:{course_group_id:"all"}},Xa.createElement(fe.default.Item,{name:"course_group_id"},Xa.createElement(Se.default.Group,{style:{width:"100%"}},Xa.createElement(oe.Z,null,Xa.createElement(ve.Z,{className:"font14",flex:"80px"},"\u73ED\u7EA7:"),Xa.createElement(ve.Z,{flex:"80px"},Xa.createElement(Se.default,{value:"all"},"\u5168\u90E8")),Xa.createElement(ve.Z,{flex:"1",id:"divhe",style:{height:Be+"px",overflow:"hidden"}},(_e=hn.course_groups)==null?void 0:_e.map((Zn,bn)=>Xa.createElement(Se.default,{key:bn,value:Zn.exercise_group_id,className:"ml0 mr8"},Zn.exercise_group_name,"(",Zn.exercise_group_students,")"))),Ht&&Xa.createElement("span",{onClick:()=>{let Zn=document.getElementById("divhe").scrollHeight;Be>47?Pe(47):Pe(Zn)},style:{color:"rgb(76, 172, 255)",cursor:"pointer",alignItems:"flex-end",display:"flex"}},Be===47?"\u5C55\u5F00":"\u6536\u8D77",Be===47?Xa.createElement(fs.Z,{style:{marginBottom:"3px",marginLeft:"2px"}}):Xa.createElement(ps.Z,{style:{marginBottom:"3px",marginLeft:"2px"}}))))),Xa.createElement(fe.default.Item,{name:"error_type"},Xa.createElement(Se.default.Group,{style:{width:"100%"}},Xa.createElement(oe.Z,null,Xa.createElement(ve.Z,{className:"font14",flex:"80px"},"\u7C7B\u578B:"),Xa.createElement(ve.Z,{flex:"80px"},Xa.createElement(Se.default,{value:"all"},"\u5168\u90E8")),Xa.createElement(ve.Z,{flex:"1",id:"divhe",style:{height:Be+"px",overflow:"hidden"}},Ja==null?void 0:Ja.map((Zn,bn)=>Xa.createElement(Se.default,{key:bn,value:Zn.error_type,className:"ml0 mr8"},Zn.error_type_text,"\uFF08",Zn.count||0,"\uFF09"))))))),Xa.createElement("div",{className:rs.control},Xa.createElement(Le.default.Search,{placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",value:Ve==null?void 0:Ve.keyword,onChange:Zn=>ia(Zn.target.value),onSearch:()=>{Ve.page=1,Dt(bd({},Ve)),dt(Ve)}}),Xa.createElement(me.ZP,{onClick:()=>pa(!0),style:{marginLeft:"auto"},icon:Xa.createElement("i",{className:"iconfont icon-guizeguanli font16"}),type:"link"},"\u622A\u5C4F\u89C4\u5219"),Xa.createElement(me.ZP,{onClick:()=>Nt(!0),icon:Xa.createElement("i",{className:"iconfont icon-chakanshenqingjilu font14"}),type:"link"},"\u64CD\u4F5C\u65E5\u5FD7")),Xa.createElement("div",{className:rs.bgH}),Xa.createElement(x.default,{className:rs.customTable,dataSource:Gt,bordered:!1,columns:Hn,size:"large",rowKey:"exercise_identity_photo_id",rowClassName:rs.row,loading:Yt,onChange:Sa,pagination:{pageSize:Ve.limit,total:Wt,current:Ve.page,showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!1,position:["bottomCenter"],showTotal:Zn=>Xa.createElement("span",{className:"mr10"},"\u5171",Xa.createElement("span",{className:"c-orange"},Zn),"\u6761\u6570\u636E")}}),Xa.createElement(iv,{selectIds:Dn,visible:nn,onCancel:()=>zn(!1),onOk:tu,params:Ve}),Xa.createElement(sv,{visible:Pt,onCancel:()=>Nt(!1)}),Xa.createElement(cv,{visible:Rt,onCancel:()=>Xt(!1)}),Xa.createElement(Fe.default,{centered:!0,title:"\u622A\u5C4F\u89C4\u5219",open:mn,width:900,footer:null,onCancel:()=>{pa(!1)}},Xa.createElement("div",{className:"c-grey-333"},Xa.createElement("div",{className:"mb20 blod"},"1.\u6BCF\u4E2A\u5B66\u751F\u6BCF\u573A\u8003\u8BD5\u6700\u591A\u622A\u5C4F\u7684\u603B\u6570\u91CF\u4E3A50\u5F20\uFF0C\u8D85\u8FC7\u4E4B\u540E\u8BE5\u5B66\u751F\u9000\u51FA\u5168\u5C4F\u4E0D\u518D\u8FDB\u884C\u622A\u5C4F\uFF0C\u8001\u5E08\u624B\u52A8\u5220\u9664\u622A\u5C4F\u56FE\u7247\u4E4B\u540E\u53EF\u518D\u81EA\u52A8\u8FDB\u884C\u622A\u5C4F\uFF1B"),Xa.createElement("div",{className:"mb20 blod"},"2.\u5355\u6B21\u9000\u51FA\u5168\u5C4F\u65F6\u957F\u4E0E\u622A\u5C4F\u6B21\u6570"),Xa.createElement("div",{className:"mb20"},"1\uFF09\u82E5\u5B66\u751F\u30101\u79D2 \u2264 \u9000\u51FA\u5168\u5C4F\u65F6\u957F \u2264 30\u79D2\u3011\uFF0C\u6BCF\u96945\u79D2\u622A\u5C4F\u4E00\u6B21\uFF1B"),Xa.createElement("div",{className:"mb20"},"2\uFF09\u82E5\u5B66\u751F\u301030\u79D2\uFF1C\u9000\u51FA\u5168\u5C4F\u65F6\u957F \u2264 120\u79D2\u3011\uFF0C\u6BCF\u969410\u79D2\u622A\u5C4F\u4E00\u6B21\uFF1B"),Xa.createElement("div",{className:"mb20"},"3\uFF09\u82E5\u5B66\u751F\u3010120\u79D2\uFF1C\u9000\u51FA\u5168\u5C4F\u65F6\u957F \u2264 300\u79D2\u3011\uFF0C\u6BCF\u969430\u79D2\u622A\u5C4F\u4E00\u6B21\uFF1B"),Xa.createElement("div",{className:"mb20"},"4\uFF09\u82E5\u5B66\u751F\u3010300\u79D2\uFF1C\u9000\u51FA\u5168\u5C4F\u65F6\u957F \u2264 720\u79D2\u3011\uFF0C\u6BCF\u969460\u79D2\u622A\u5C4F\u4E00\u6B21\uFF1B"),Xa.createElement("div",{className:"mb20"},"5\uFF09\u82E5\u5B66\u751F\u3010\u9000\u51FA\u5168\u5C4F\u65F6\u957F \uFF1E720\u79D2\u3011\uFF0C\u4E0D\u518D\u8FDB\u884C\u622A\u5C4F\uFF1B"),Xa.createElement("div",{className:"mb20 blod"},"3.\u5B66\u751F\u8FD4\u56DE\u8003\u8BD5\u4E4B\u540E\uFF0C\u4E0D\u518D\u8FDB\u884C\u622A\u5C4F\u3002"))),Xa.createElement(er.Z,null))};var ov=(0,he.connect)(({exercise:ce,user:se})=>({exercise:ce,user:se}))(lv);const iv=({visible:ce,onOk:se,onCancel:ae,selectIds:_e,params:pt})=>{const[Ve,Dt]=(0,a.useState)(!1),[et,Be]=(0,a.useState)({}),[Pe]=fe.default.useForm(),Ht=vn=>H0(void 0,null,function*(){Dt(!0);let hn;ce===!0?hn=yield(0,Ce.ZP)(`/api/exercises/${pt==null?void 0:pt.exercise_id}/batch_audit_identity_photo.json`,{method:"post",body:bd({identity_photo_ids:_e},vn)}):hn=yield(0,Ce.ZP)(`/api/exercises/${pt==null?void 0:pt.exercise_id}/audit_identity_photo.json`,{method:"post",body:bd({identity_photo_id:ce==null?void 0:ce.exercise_identity_photo_id},vn)}),(hn==null?void 0:hn.status)===0&&se(),Dt(!1)});return Xa.createElement(Fe.default,{title:ce!==!0?"\u4EBA\u8138\u8EAB\u4EFD\u5BA1\u6838":"\u6279\u91CF\u5BA1\u6838",open:!!ce,centered:!0,keyboard:!1,width:650,destroyOnClose:!0,onCancel:()=>{ae()},afterClose:()=>{Pe.resetFields(),Be({})},confirmLoading:Ve,onOk:()=>Pe.submit()},Xa.createElement(fe.default,{className:rs.formWrap,form:Pe,labelCol:{span:4},wrapperCol:{span:18},onFinish:Ht,onValuesChange:()=>{Be(bd({},Pe.getFieldsValue()))}},ce!==!0&&Xa.createElement(oe.Z,{style:{marginLeft:28,marginBottom:38}},Xa.createElement(ve.Z,null,"\u91C7\u96C6\u7167\u7247\uFF1A"),Xa.createElement(ve.Z,null,Xa.createElement("aside",{className:rs.imgWrap},Xa.createElement("div",{className:rs.img},Xa.createElement("img",{width:234,src:(0,de.Tv)(ce==null?void 0:ce.photo_url)}),Xa.createElement("div",{onClick:()=>{Pa.Z.publish("preview-image",ce==null?void 0:ce.photo_url)},className:rs.iBtn},"\u9884\u89C8"),Xa.createElement("div",{className:rs.text},"\u91C7\u96C6\u7167\u7247")),Xa.createElement("div",{className:rs.img,style:{marginLeft:20}},ce!=null&&ce.identity_url?Xa.createElement("img",{width:234,src:(0,de.Tv)(ce==null?void 0:ce.identity_url)}):Xa.createElement("div",{className:rs.no,style:{width:326}},Xa.createElement("span",null,"\u6682\u65E0\u8BC1\u4EF6\u7167\u7247")),!!(ce!=null&&ce.identity_url)&&Xa.createElement("div",{onClick:()=>{Pa.Z.publish("preview-image",(0,de.Tv)(ce==null?void 0:ce.identity_url))},className:rs.iBtn},"\u9884\u89C8"),Xa.createElement("div",{className:rs.text},"\u8BC1\u4EF6\u7167\u7247"))))),Xa.createElement(fe.default.Item,{label:"\u5BA1\u6838\u72B6\u6001",name:"state",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5BA1\u6838\u72B6\u6001"}]},Xa.createElement(Ie.ZP.Group,null,Xa.createElement(Ie.ZP,{value:"passed"},"\u5BA1\u6838\u901A\u8FC7"),Xa.createElement(Ie.ZP,{value:"rejected"},"\u5BA1\u6838\u4E0D\u901A\u8FC7"))),(et==null?void 0:et.state)==="rejected"&&Xa.createElement(fe.default.Item,{label:"\u5BA1\u6838\u610F\u89C1",name:"comment",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5BA1\u6838\u610F\u89C1"}]},Xa.createElement(Le.default,{placeholder:"\u5982\uFF1A\u4F60\u7684\u4E2A\u4EBA\u4FE1\u606F\u4E0E\u7167\u7247\u4E0D\u4E00\u81F4\u3002",maxLength:30})),Xa.createElement("div",{style:{color:"#FA6400",paddingLeft:32}},"\u6CE8\u610F\uFF1A\u5BA1\u6838\u901A\u8FC7\u540E\uFF0C\u8BE5\u5B66\u751F\u5728\u672C\u573A\u8003\u8BD5\u7684\u8BA4\u8BC1\u72B6\u6001\u5C06\u66F4\u65B0\u4E3A\u201C\u5BA1\u6838\u901A\u8FC7\u201D\uFF0C\u4E14\u80FD\u591F\u8FDB\u5165\u8003\u8BD5\u3002")))},sv=({visible:ce,onCancel:se})=>{const ae=(0,he.useParams)(),[_e,pt]=(0,a.useState)({page:1,limit:20,exercise_id:ae==null?void 0:ae.categoryId}),[Ve,Dt]=(0,a.useState)(!1),[et,Be]=(0,a.useState)([]),[Pe,Ht]=(0,a.useState)(0);(0,a.useEffect)(()=>{ce&&(_e.page=1,_e.limit=20,pt(bd({},_e)),hn(_e))},[ce]);const vn=[{title:"\u64CD\u4F5C\u4EBA",dataIndex:"teacher_name",ellipsis:{showTitle:!1},render:Gt=>Xa.createElement(Ae.Z,{placement:"bottomLeft",title:Gt},Xa.createElement("span",null,Gt))},{title:"\u64CD\u4F5C\u65F6\u95F4",dataIndex:"created_at",width:200},{title:"\u7C7B\u578B",dataIndex:"operate_type",width:100,render:Gt=>Xa.createElement(Xa.Fragment,null,Gt===0&&Xa.createElement("span",null,"\u5220\u9664"))},{title:"\u5B66\u751F\u59D3\u540D",dataIndex:"student_name",width:140,ellipsis:{showTitle:!1},render:Gt=>Xa.createElement(Ae.Z,{placement:"bottomLeft",title:Gt},Xa.createElement("span",null,Gt))},{title:"\u5B66\u53F7",dataIndex:"student_id",width:160,ellipsis:{showTitle:!1},render:Gt=>Xa.createElement(Ae.Z,{placement:"bottomLeft",title:Gt},Xa.createElement("span",null,Gt))},{title:"\u622A\u5C4F\u65F6\u95F4",dataIndex:"screen_time",width:200},{title:"\u56FE\u7247",dataIndex:"url",width:100,render:Gt=>Xa.createElement("img",{className:"current",onClick:()=>Pa.Z.publish("preview-image",`${ke.Z.API_SERVER}${Gt}`),width:70,height:40,src:`${ke.Z.API_SERVER}${Gt}`})}],hn=Gt=>H0(void 0,null,function*(){const Bn=hu().cloneDeep(Gt);Dt(!0);const Dn=yield(0,Ce.ZP)(`/api/exercises/${Gt==null?void 0:Gt.exercise_id}/exercise_user_screens/screen_actions.json`,{method:"get",params:Bn});Dt(!1),Ht(Dn==null?void 0:Dn.total_count),Be((Dn==null?void 0:Dn.exercise_screen_actions)||[])}),xt=Gt=>{_e.page=Gt==null?void 0:Gt.current,_e.limit=Gt==null?void 0:Gt.pageSize,pt(bd({},_e)),hn(_e)};return Xa.createElement(Fe.default,{title:"\u64CD\u4F5C\u65E5\u5FD7",open:ce,centered:!0,keyboard:!1,width:1064,destroyOnClose:!0,onCancel:()=>{se()},footer:null},Xa.createElement(x.default,{dataSource:et,bordered:!1,columns:vn,size:"large",loading:Ve,locale:{emptyText:Xa.createElement(zt.Z,null)},onChange:xt,pagination:{pageSize:_e.limit,total:Pe,current:_e.page,showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!1,showTotal:Gt=>Xa.createElement("span",{className:"mr10"},"\u5171",Xa.createElement("span",{className:"c-orange"},Gt),"\u6761\u6570\u636E")}}))},cv=({visible:ce,onCancel:se})=>{const ae=(0,he.useParams)(),[_e,pt]=(0,a.useState)({page:1,limit:9999,user_id:ce,error_type:[8],exercise_id:ae==null?void 0:ae.categoryId}),[Ve,Dt]=(0,a.useState)(!1),[et,Be]=(0,a.useState)([]);(0,a.useEffect)(()=>{ce&&Pe(rv(bd({},_e),{user_id:ce}))},[ce]);const Pe=hn=>H0(void 0,null,function*(){const xt=hu().cloneDeep(hn);console.log(xt,"sendData"),Dt(!0);const Gt=yield(0,Ce.ZP)(`/api/exercises/${hn==null?void 0:hn.exercise_id}/exercise_abnormities.json`,{method:"get",params:xt});Dt(!1),Be((Gt==null?void 0:Gt.exercise_abnormites)||[])}),Ht=hn=>H0(void 0,null,function*(){Fe.default.confirm({icon:null,title:"\u63D0\u793A",content:"\u5220\u9664\u540E\u4E0D\u53EF\u6062\u590D\uFF0C\u786E\u8BA4\u5220\u9664\u5417\uFF1F",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>H0(void 0,null,function*(){(yield(0,Ce.ZP)(`/api/exercises/${ae==null?void 0:ae.categoryId}/exercise_user_screens/${hn}.json`,{method:"delete"})).status===0&&(pe.ZP.success("\u5220\u9664\u6210\u529F"),Pe(_e))})})}),vn=(et==null?void 0:et[0])||{};return Xa.createElement(Fe.default,{title:"\u622A\u5C4F\u8BB0\u5F55",open:!!ce,centered:!0,keyboard:!1,width:684,forceRender:!0,destroyOnClose:!0,onCancel:()=>{se()},footer:null},Xa.createElement(jt.Z,{spinning:Ve},Xa.createElement("div",{style:{maxHeight:500}},Xa.createElement("div",{className:"c-grey-333 blod mb10"},vn==null?void 0:vn.real_name," ",vn==null?void 0:vn.student_id),(vn==null?void 0:vn.user_screen_num)>=50&&Xa.createElement("div",{className:"mb10",style:{color:"#FA6400"}},Xa.createElement("i",{className:"iconfont icon-tishi11 mr5"}),Xa.createElement("span",null,"\u6CE8\u610F\uFF1A\u8BE5\u5B66\u751F\u7684\u622A\u5C4F\u603B\u6570\u91CF\u5DF2\u8FBE\u5230 50 \u5F20\uFF0C\u9700\u8981\u624B\u52A8\u5220\u9664\u5DF2\u622A\u5C4F\u7684\u56FE\u7247\u4E4B\u540E\u624D\u80FD\u7EE7\u7EED\u81EA\u52A8\u622A\u5C4F")),et==null?void 0:et.map((hn,xt)=>{var Gt,Bn;return Xa.createElement("div",{key:xt},Xa.createElement("div",{className:"mb10"},Xa.createElement("span",{className:"c-grey-666 mr10"},"\u9000\u51FA\u5168\u5C4F\u65F6\u95F4"),Xa.createElement("span",{style:{display:"inline-block",width:144},className:"c-grey-333"},hn==null?void 0:hn.created_at),Xa.createElement("span",{className:"c-grey-666 ml40"},"\u622A\u5C4F\u6570\u91CF",Xa.createElement("span",{style:{margin:"0 6px",color:"#FA6400"}},(Gt=hn==null?void 0:hn.exercise_user_screens)==null?void 0:Gt.length),"\u5F20")),Xa.createElement("div",{className:rs.listWrap},(Bn=hn==null?void 0:hn.exercise_user_screens)==null?void 0:Bn.map(Dn=>Xa.createElement("div",{key:Dn==null?void 0:Dn.id,className:rs.list},Xa.createElement("img",{src:`${ke.Z.API_SERVER}${Dn==null?void 0:Dn.url}`}),Xa.createElement("div",{className:rs.time},Xa.createElement("span",{className:"c-grey-666 mr10 font12"},"\u622A\u5C4F\u65F6\u95F4"),Xa.createElement("span",{className:"c-grey-333 font12"},Dn==null?void 0:Dn.created_at)),Xa.createElement("div",{className:rs.mask},Xa.createElement("div",{className:rs.icons},Xa.createElement("i",{onClick:()=>Pa.Z.publish("preview-image",`${ke.Z.API_SERVER}${Dn==null?void 0:Dn.url}`),className:"iconfont icon-fangda3 mr15"}),Xa.createElement("i",{onClick:()=>Ht(Dn==null?void 0:Dn.id),className:"iconfont icon-shanchu14"})))))))}))))};var R0={flex_box_center:"flex_box_center___eZU8T",flex_space_between:"flex_space_between___l4Kzs",flex_box_vertical_center:"flex_box_vertical_center___E7NVy",flex_box_center_end:"flex_box_center_end___S0V3_",flex_box_column:"flex_box_column___ONItD",title:"title___rK1ze",export:"export___tng10",startbutton:"startbutton___jWMUv",bg:"bg___rwmJT",tabs:"tabs___SK3e0",moni:"moni___aMCpW",workListTabWrap:"workListTabWrap___dVDh3",workListTabButton:"workListTabButton___PN6ok",ai_review_new:"ai_review_new___MqVZZ",btn_review:"btn_review___g8AFi"},hg=z(66911),dv=z(97917),mv=z(41727),gv=z(12971),fv=z(23377);const vv=ce=>{const se=ae=>{const _e=new Notification(ae.title,{body:ae.message,icon:ae.icon||"/ip.png"});_e.addEventListener("click",()=>{ae.link&&window.open(ae.link,ae.target||"_blank")}),setTimeout(()=>{_e.close()},3e4)};"Notification"in window?Notification.permission==="granted"?se(ce):Notification.permission!=="denied"&&Notification.requestPermission().then(ae=>{ae==="granted"&&se(ce)}):alert("\u5F53\u524D\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u901A\u77E5")};var pv=z(17755),Ev=z(6151),Av=z(58387),hv=z(44694),Fv=z(91640),yv=z(32637),Cv=z(3921),Fg={radio_con:"radio_con___OlJK6",result_con:"result_con___Z4Xwq",result_title:"result_title___uGxkx"},Tc=z(67294),Bv=Object.defineProperty,Sv=Object.defineProperties,Pv=Object.getOwnPropertyDescriptors,yg=Object.getOwnPropertySymbols,Dv=Object.prototype.hasOwnProperty,bv=Object.prototype.propertyIsEnumerable,Cg=(ce,se,ae)=>se in ce?Bv(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,Ym=(ce,se)=>{for(var ae in se||(se={}))Dv.call(se,ae)&&Cg(ce,ae,se[ae]);if(yg)for(var ae of yg(se))bv.call(se,ae)&&Cg(ce,ae,se[ae]);return ce},wv=(ce,se)=>Sv(ce,Pv(se)),Xm=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const xv=({shixunHomeworks:ce,exercise:se,loading:ae,dispatch:_e})=>{var pt,Ve,Dt,et,Be,Pe;const[Ht,vn]=(0,a.useState)({page:1,limit:10}),[hn,xt]=(0,a.useState)(-1),[Gt,Bn]=(0,a.useState)(""),[Dn,Fn]=(0,a.useState)({}),[Wt,Ut]=(0,a.useState)(!1),[Yt,ta]=(0,a.useState)(!1),nn=(0,he.useParams)(),[zn,mn]=(0,a.useState)({}),pa=[{title:"\u5E8F\u53F7",dataIndex:"1",width:80,render:(Ja,ha,dt)=>(Ht.page-1)*Ht.limit+dt+1},{title:"\u59D3\u540D",dataIndex:"user_name",width:180,ellipsis:!0},{title:"\u5B66\u53F7",dataIndex:"student_id",align:"left",sorter:!0,render:Ja=>Ja||"--"},{title:"\u5206\u73ED",dataIndex:"user_group_name",align:"left",render:(Ja,ha)=>Tc.createElement("div",{className:Fg.banding,title:Ja||"--"},Ja||"--")},{title:"\u63D0\u4EA4\u72B6\u6001",dataIndex:"commit_status",align:"center",width:200,render:(Ja,ha)=>Ja===0?Tc.createElement("span",{style:{color:"#666666"}},"\u672A\u5F00\u59CB"):Ja===1?Tc.createElement("span",{style:{color:"#DF3042"}},!ha.is_make_up&&"\u8003\u8BD5\u4E2D",ha.is_make_up&&"\u8003\u8BD5\u4E2D (\u8865\u8003)"):Ja===2?Tc.createElement("span",{style:{color:"#5AB891"}},!ha.is_make_up&&!ha.is_force_commit&&"\u5DF2\u4EA4\u5377",ha.is_make_up&&!ha.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003)",ha.is_make_up&&ha.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003/\u5F3A\u5236)",!ha.is_make_up&&ha.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u5F3A\u5236)"):Tc.createElement("span",{style:{color:"#5AB891"}},!ha.is_make_up&&!ha.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54",ha.is_make_up&&!ha.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003)",ha.is_make_up&&ha.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003/\u5F3A\u5236)",!ha.is_make_up&&ha.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u5F3A\u5236)")},{title:"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",sortDirections:["descend","ascend"],sorter:!0,width:150},{title:"\u8BC4\u9605\u72B6\u6001",width:150,dataIndex:"has_comment",render:(Ja,ha)=>{let dt=new Date().getTime();return zn!=null&&zn.appraise_setting&&(zn!=null&&zn.sealed_review)&&new Date(zn==null?void 0:zn.appraise_end_time).getTime()>dt?"--":!Ja&&ha.review_status?"\u8BC4\u9605\u4E2D":Ja?"\u5DF2\u8BC4\u9605":"\u672A\u8BC4\u9605"}},{title:"\u667A\u80FD\u8BC4\u9605\u7ED3\u679C",width:150,dataIndex:"success_status",render:Ja=>Ja===1?Tc.createElement("span",{className:"c-green"},"\u6210\u529F"):Tc.createElement("span",{className:"c-red"},"\u5931\u8D25")}].filter(Ja=>!!Ja);(0,a.useEffect)(()=>{var Ja,ha;((Ja=se.actionTabs)==null?void 0:Ja.key)==="\u667A\u80FD\u8BC4\u9605\u7ED3\u679C"&&(xt((ha=se.actionTabs)==null?void 0:ha.status),Pt())},[(pt=se.actionTabs)==null?void 0:pt.key]),(0,a.useEffect)(()=>{var Ja;((Ja=se.actionTabs)==null?void 0:Ja.key)==="\u667A\u80FD\u8BC4\u9605\u7ED3\u679C"&&hn!=null&&Xt(1,10)},[hn]);const Pt=()=>Xm(void 0,null,function*(){const Ja=yield(0,Ce.ZP)(`/api/exercises/${nn.categoryId}/header_info.json`,{method:"get"});(Ja==null?void 0:Ja.status)===0&&mn((Ja==null?void 0:Ja.data)||{})}),Nt=Ja=>{Ht.keyword=Ja,Ht.page=1,vn(Ym({},Ht)),Rt(Ht)},Rt=Ja=>Xm(void 0,null,function*(){var ha,dt;ta(!0);const Fa=yield(0,Ce.ZP)(`/api/exercise_resubmits/${(ha=se.actionTabs)==null?void 0:ha.id}/resubmit_student_list.json`,{method:"get",params:wv(Ym({},Ja),{success_status:hn!=-1?[hn]:null,exercise_id:nn==null?void 0:nn.categoryId,exercise_question_id:(dt=se.actionTabs)==null?void 0:dt.questionId})});(Fa==null?void 0:Fa.status)===0&&Fn(Fa||{}),ta(!1)}),Xt=(Ja,ha)=>{Ht.page=Ja,Ht.limit=ha,vn(Ym({},Ht)),Rt(Ht)},cn=()=>Xm(void 0,null,function*(){var Ja,ha,dt,Fa;if(hn==1&&((Ja=Dn==null?void 0:Dn.success_status)==null?void 0:Ja[1].count)==0||hn==2&&((ha=Dn==null?void 0:Dn.success_status)==null?void 0:ha[0].count)==0)return pe.ZP.warning("\u65E0\u53EF\u8BC4\u9605\u7684\u4F5C\u4E1A");Ut(!0);const ia=yield(0,Ce.ZP)("/api/exercise_resubmits/resubmit.json",{method:"post",body:{exercise_id:nn==null?void 0:nn.categoryId,exercise_users_ids:Dn==null?void 0:Dn.exercise_users_ids,exercise_question_id:(dt=se.actionTabs)==null?void 0:dt.questionId}});(ia==null?void 0:ia.status)===0&&(tn(),(Fa=se.actionTabs)==null||Fa.onOK()),Ut(!1)}),tn=()=>{_e({type:"exercise/setActionTabs",payload:{key:""}}),Bn(""),xt(null)};return Tc.createElement(Fe.default,{width:1150,bodyStyle:{maxHeight:"calc(100vh - 200px)",overflowY:"auto"},centered:!0,title:"\u667A\u80FD\u8BC4\u9605\u7ED3\u679C",open:((Ve=se.actionTabs)==null?void 0:Ve.key)==="\u667A\u80FD\u8BC4\u9605\u7ED3\u679C",destroyOnClose:!0,confirmLoading:Wt,onCancel:()=>tn(),okText:"\u7ACB\u5373\u667A\u80FD\u8BC4\u9605",onOk:()=>cn()},Tc.createElement("div",{className:Fg.radio_con},Tc.createElement("div",null,Tc.createElement("span",{className:"mr20"},"\u667A\u80FD\u8BC4\u9605\u7ED3\u679C"),Tc.createElement(Ie.ZP.Group,{onChange:Ja=>{xt(Ja.target.value)},value:hn,options:[{label:"\u5168\u90E8",value:-1,style:{marginRight:25,color:"#000"}},{label:`\u6210\u529F\uFF08${((Dt=Dn==null?void 0:Dn.success_status)==null?void 0:Dt[1].count)||0}\uFF09`,value:1,style:{marginRight:25,color:"#000"}},{label:`\u5931\u8D25\uFF08${((et=Dn==null?void 0:Dn.success_status)==null?void 0:et[0].count)||0}\uFF09`,value:0,style:{marginRight:25,color:"#000"}}]}))),Tc.createElement("div",{className:"flex justify-between item-center mb10"},Tc.createElement("div",{style:{color:"#333"}},"\u667A\u80FD\u8BC4\u9605\u6210\u529F",Tc.createElement("span",{style:{color:"#37AD83",margin:"0 2px"}},((Be=Dn==null?void 0:Dn.success_status)==null?void 0:Be[1].count)||0),"\u4EBA\uFF0C\u5931\u8D25",Tc.createElement("span",{style:{color:"#E30000",margin:"0 2px"}},((Pe=Dn==null?void 0:Dn.success_status)==null?void 0:Pe[0].count)||0),"\u4EBA"),Tc.createElement(Le.default.Search,{style:{width:400},size:"large",placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",value:Gt,onChange:Ja=>Bn(Ja.target.value),onSearch:Nt})),Tc.createElement(x.default,{loading:Yt,dataSource:(Dn==null?void 0:Dn.data)||[],columns:pa,pagination:{current:Ht.page,hideOnSinglePage:!0,showQuickJumper:!0,showSizeChanger:!0,pageSize:Ht.limit,className:"mb0",pageSizeOptions:["10","20","50","100","200"],total:(Dn==null?void 0:Dn.count)||0,size:"default",showTotal:de.rU,onChange:Xt},onChange:(Ja,ha,dt)=>{dt!=null&&dt.order?(Ht.sort_by=dt==null?void 0:dt.field,Ht.direction=(dt==null?void 0:dt.order)==="ascend"?"asc":"desc"):(Ht.sort_by=null,Ht.direction=null),Rt(Ht)}}))};var Iv=(0,he.connect)(({shixunHomeworks:ce,exercise:se,loading:ae,user:_e})=>({shixunHomeworks:ce,exercise:se,loading:ae.effects,user:_e}))(xv),y0=z(67294),Lv=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Nv=({exercise:ce,loading:se,dispatch:ae})=>{var _e,pt;const[Ve,Dt]=(0,a.useState)([]),et=(0,he.useParams)(),Be=[{title:"\u65F6\u95F4",dataIndex:"created_at",width:170,ellipsis:!0,render:Ht=>y0.createElement(Ae.Z,{placement:"bottom",title:Ht},y0.createElement("span",{style:{color:"#333"}},Ge()(Ht).format("YYYY-MM-DD HH:mm")))},{title:"\u64CD\u4F5C\u660E\u7EC6",dataIndex:"user_name",width:272,render:(Ht,vn)=>y0.createElement("span",{style:{color:"#333"}},vn==null?void 0:vn.user_name,"\u64CD\u4F5C\u4E86\u667A\u80FD\u8BC4\u9605")},{title:"\u64CD\u4F5C\u7ED3\u679C",dataIndex:"success_count",width:272,render:(Ht,vn)=>(vn==null?void 0:vn.status)=="running"?y0.createElement("span",{style:{color:"#333"}}," ",y0.createElement("span",null,"\u667A\u80FD\u8BC4\u9605\u4E2D\uFF0C\u5F53\u524D\u8FDB\u5EA6")," ",vn==null?void 0:vn.rate):y0.createElement("span",{style:{color:"#333"}},"\u667A\u80FD\u8BC4\u9605\u6210\u529F ",vn==null?void 0:vn.success_count," \u4EBA\uFF0C\u5931\u8D25 ",vn==null?void 0:vn.fail_count," \u4EBA")}];(0,a.useEffect)(()=>{var Ht;((Ht=ce.actionTabs)==null?void 0:Ht.key)==="AI\u8BC4\u9605\u64CD\u4F5C\u8BB0\u5F55"&&Pe()},[(_e=ce.actionTabs)==null?void 0:_e.key]);const Pe=()=>Lv(void 0,null,function*(){var Ht;const vn=yield(0,Ce.ZP)("/api/exercise_resubmits/resubmit_history.json",{method:"get",params:(Ht=ce.actionTabs)==null?void 0:Ht.params});vn.status===0&&Dt(vn==null?void 0:vn.data)});return y0.createElement(Fe.default,{width:800,bodyStyle:{maxHeight:"calc(100vh - 200px)",overflowY:"auto"},centered:!0,title:"\u64CD\u4F5C\u8BB0\u5F55",open:((pt=ce.actionTabs)==null?void 0:pt.key)==="AI\u8BC4\u9605\u64CD\u4F5C\u8BB0\u5F55",destroyOnClose:!0,onCancel:()=>{ae({type:"exercise/setActionTabs",payload:{key:""}})},footer:null},y0.createElement(x.default,{pagination:!1,dataSource:Ve,columns:Be,className:"mb10"}))};var Ov=(0,he.connect)(({exercise:ce,loading:se,user:ae})=>({exercise:ce,loading:se.effects,user:ae}))(Nv),Mv=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())}),Rv=({id:ce,dispatch:se})=>{const[ae,_e]=(0,a.useState)(null);(0,a.useEffect)(()=>{pt()},[]);const pt=()=>Mv(void 0,null,function*(){var Ve,Dt,et,Be,Pe,Ht,vn,hn,xt,Gt,Bn,Dn;const Fn=ce;let Wt;do if(Wt=yield(0,Ce.ZP)("/api/intelligent_imports/get_ai_question_record.json",{method:"get",params:{ai_question_record_id:Fn}}),((Ve=Wt==null?void 0:Wt.data)==null?void 0:Ve.status)===1){_e([(et=(Dt=Wt==null?void 0:Wt.data)==null?void 0:Dt.progress)==null?void 0:et.current_success_count,(Pe=(Be=Wt==null?void 0:Wt.data)==null?void 0:Be.progress)==null?void 0:Pe.total]);break}else if(((Ht=Wt==null?void 0:Wt.data)==null?void 0:Ht.status)===0)console.log("\u8BC6\u522B\u4E2D\uFF0C\u7EE7\u7EED\u8F6E\u8BE2..."),_e([(hn=(vn=Wt==null?void 0:Wt.data)==null?void 0:vn.progress)==null?void 0:hn.current_success_count,(Gt=(xt=Wt==null?void 0:Wt.data)==null?void 0:xt.progress)==null?void 0:Gt.total]),yield new Promise(Ut=>setTimeout(Ut,2e3));else{console.log("\u72B6\u6001\u5F02\u5E38");break}while(((Bn=Wt==null?void 0:Wt.data)==null?void 0:Bn.status)===0);se({type:"exercise/setCommonHeader",payload:{progress:(Dn=Wt==null?void 0:Wt.data)==null?void 0:Dn.progress}})});return a.createElement(a.Fragment,null,ae&&a.createElement(oe.Z,{align:"middle",className:"mr10 ml10"},a.createElement(jt.Z,{className:"mr10",size:"small"}),a.createElement("span",null,"\u8BD5\u9898\u751F\u6210\u4E2D\uFF0C\u751F\u6210\u8FDB\u5EA6\uFF1A",ae[0]," / ",ae[1])))},bm={flex_box_center:"flex_box_center___vzWqI",flex_space_between:"flex_space_between___ft9Bd",flex_box_vertical_center:"flex_box_vertical_center___QAPwj",flex_box_center_end:"flex_box_center_end___qX0M2",flex_box_column:"flex_box_column___awDYy",customModal:"customModal___pYYHM",checking:"checking___GoeHX",content:"content___dNIO5",group:"group___hRNtC",footer:"footer___xOqas"},Bg=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Tv=({exercise:ce,dispatch:se,onOk:ae})=>{const _e=(0,he.useParams)();let[pt,Ve]=(0,a.useState)([]);const[Dt,et]=(0,a.useState)([]),[Be,Pe]=(0,a.useState)(!0),[Ht,vn]=(0,a.useState)(!1);(0,a.useEffect)(()=>{ce.actionTabs.key==="\u63D0\u4EA4\u62A5\u544A"&&hn()},[ce.actionTabs.key]);const hn=()=>Bg(void 0,null,function*(){Pe(!0);const Gt=yield(0,Ce.ZP)(`/api/exercises/${_e==null?void 0:_e.categoryId}/exercise_user/report_setting.json`,{method:"get",params:{id:_e==null?void 0:_e.categoryId}});Gt&&Ve((Gt==null?void 0:Gt.exercise_report_setting)||[]),Pe(!1)}),xt=()=>{se({type:"exercise/setActionTabs",payload:{}})};return a.createElement(Fe.default,{centered:!0,afterClose:()=>{et([]),vn(!1)},title:"\u63D0\u4EA4\u62A5\u544A",open:ce.actionTabs.key==="\u63D0\u4EA4\u62A5\u544A",width:718,onOk:()=>Bg(void 0,null,function*(){var Gt,Bn;console.log("---",pt);let Dn=yield(0,Ce.ZP)(`/api/exercises/${_e==null?void 0:_e.categoryId}/exercise_user/submit_report.json`,{method:"post",body:{exercise_user_id:(Bn=(Gt=ce.actionTabs)==null?void 0:Gt.params)==null?void 0:Bn.exercise_user_id,report_settings:pt}});(Dn==null?void 0:Dn.status)===0&&(pe.ZP.info("\u63D0\u4EA4\u6210\u529F"),se({type:"exercise/setActionTabs",payload:{}}))}),wrapClassName:bm.customModal,onCancel:xt},a.createElement("aside",{className:bm.checking},a.createElement("div",{className:bm.content},a.createElement("div",{className:bm.group},a.createElement("p",null,"\u63D0\u4EA4\u8BD5\u5377\u540E\uFF0C\u5B9E\u9A8C\u62A5\u544A\u7531\u7CFB\u7EDF\u81EA\u52A8\u751F\u6210\uFF0C\u4F60\u53EA\u9700\u8865\u5145\u4EE5\u4E0B\u4FE1\u606F\u5373\u53EF\u3002")),pt==null?void 0:pt.map(Gt=>a.createElement("div",{style:{height:40,display:"flex",alignItems:"center",padding:"0px 10px",marginTop:10}},a.createElement("label",{style:{width:100,textAlign:"end"}},a.createElement("span",{style:{color:"red"}},"*"),Gt==null?void 0:Gt.name,"\uFF1A"),a.createElement(Le.default,{size:"large",style:{flex:1},defaultValue:Gt.content,onChange:Bn=>{Gt.content=Bn.target.value,Ve(pt)}}))))))};var kv=(0,he.connect)(({exercise:ce})=>({exercise:ce}))(Tv),jv={flex_box_center:"flex_box_center___CtxaX",flex_space_between:"flex_space_between___H8TAS",flex_box_vertical_center:"flex_box_vertical_center___PLMI8",flex_box_center_end:"flex_box_center_end___iyzvs",flex_box_column:"flex_box_column___ZxWqW"},ls={head:"head___HSGEG",title:"title___mOmk5",tubiao:"tubiao___d3Z7M",tb_title:"tb_title___lYUyV",pie_style:"pie_style___FF0jM",legend:"legend___cE3z0",legend_item:"legend_item___EA_f6",legend_item_color:"legend_item_color___c2MWd",legend_item_text:"legend_item_text___qP0WY",line:"line___PaqB8",bar_style:"bar_style___cD5xa",tubiao2:"tubiao2___lb8xS",FormCheckBoxDom:"FormCheckBoxDom___PmqdD",content:"content___rjToM",data_overview:"data_overview___CN6QO",data_overview_item:"data_overview_item___lROWX",num:"num___VUb3K",text:"text___QneBV",accuracySetting:"accuracySetting___oIsbl"},Jm={mymodal:"mymodal___lPHLC",previewModal:"previewModal___kC9MS"},zd=z(67294),zv=Object.defineProperty,Zv=Object.defineProperties,Qv=Object.getOwnPropertyDescriptors,Sg=Object.getOwnPropertySymbols,Uv=Object.prototype.hasOwnProperty,Hv=Object.prototype.propertyIsEnumerable,Pg=(ce,se,ae)=>se in ce?zv(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,W0=(ce,se)=>{for(var ae in se||(se={}))Uv.call(se,ae)&&Pg(ce,ae,se[ae]);if(Sg)for(var ae of Sg(se))Hv.call(se,ae)&&Pg(ce,ae,se[ae]);return ce},V0=(ce,se)=>Zv(ce,Qv(se));const{RangePicker:Wv}=Aa.default,Vv=({exercise:ce,dispatch:se,handleOnComplete:ae})=>{var _e,pt,Ve,Dt,et;const{actionTabs:Be={},course_groups:Pe=[]}=ce,Ht=(0,he.useParams)(),[,vn,hn,xt]=(0,sn.U)(ne.FN,{exercise_id:Ht==null?void 0:Ht.categoryId}),[Gt,Bn]=(0,a.useState)({page:1,limit:10,exercise_group_id:((_e=Be==null?void 0:Be.data)==null?void 0:_e.exercise_group_id)||"all",keyword:"",status:((pt=Be==null?void 0:Be.data)==null?void 0:pt.status)!==void 0?(Ve=Be==null?void 0:Be.data)==null?void 0:Ve.status:""}),Dn={\u672A\u5F00\u59CB:"#A4AEB6",\u5DF2\u5B8C\u6210:"#16A341",\u90E8\u5206\u5B8C\u6210:"#165DFF"},Fn={0:"\u672A\u5F00\u59CB",1:"\u5DF2\u5B8C\u6210",2:"\u90E8\u5206\u5B8C\u6210"},Wt=()=>{se({type:"exercise/setActionTabs",payload:{key:""}})};return(0,a.useEffect)(()=>{Be!=null&&Be.data&&hn(V0(W0({},Gt),{exercise_group_id:(Gt==null?void 0:Gt.exercise_group_id)=="all"?"":Gt==null?void 0:Gt.exercise_group_id,exercise_id:Ht==null?void 0:Ht.categoryId}))},[Be==null?void 0:Be.data,Gt]),zd.createElement(Fe.default,{centered:!0,title:Be==null?void 0:Be.key,open:(Be==null?void 0:Be.key)==="\u9519\u9898\u5DE9\u56FA\u8BE6\u60C5",width:1100,maskClosable:!1,destroyOnClose:!0,footer:null,onCancel:Wt,className:Jm.mymodal},zd.createElement("div",{className:"flex item-center justify-between"},zd.createElement("div",null,zd.createElement(ft.default,{style:{width:140},value:Gt==null?void 0:Gt.status,onChange:Ut=>{Bn(V0(W0({},Gt),{status:Ut}))},options:[{label:"\u5168\u90E8\u72B6\u6001",value:""},{label:"\u672A\u5F00\u59CB",value:0},{label:"\u5DF2\u5B8C\u6210",value:1},{label:"\u90E8\u5206\u5B8C\u6210",value:2}]}),zd.createElement(ft.default,{style:{width:160,marginLeft:20},mode:"multiple",maxTagCount:"responsive",value:Gt==null?void 0:Gt.exercise_group_id,onChange:Ut=>{console.log(Ut);let Yt=[...Ut];Yt.length===0&&(Yt=["all"]),Yt.includes("all")&&Yt.length>1&&(Yt[Yt.length-1]=="all"?Yt=["all"]:Yt=Yt.filter(ta=>ta!=="all")),Bn(V0(W0({},Gt),{exercise_group_id:Yt}))},filterOption:(Ut,Yt)=>Yt.label.indexOf(Ut.toLowerCase())>=0,options:[{label:"\u5168\u90E8\u73ED\u7EA7",value:"all"},...Pe.map(Ut=>({label:Ut==null?void 0:Ut.exercise_group_name,value:Ut==null?void 0:Ut.exercise_group_id}))]}),zd.createElement(Wv,{size:"large",style:{width:315,marginLeft:20},placeholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"],allowClear:!0,showTime:{format:"HH:mm",defaultValue:[Ge()((0,de.U6)(),"HH:mm"),Ge()((0,de.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",onChange:(Ut,Yt)=>{Bn(V0(W0({},Gt),{start_time:Yt[0],end_time:Yt[1]}))}})),zd.createElement(Hr.t7,{style:{width:230},placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u5B66\u53F7\u641C\u7D22",onChange:Ut=>{Bn(V0(W0({},Gt),{keyword:Ut}))}})),zd.createElement(x.default,{className:"mt10",dataSource:((Dt=xt==null?void 0:xt.data)==null?void 0:Dt.list)||[],scroll:{y:500},loading:vn,columns:[{title:"\u5E8F\u53F7",dataIndex:"index",width:60,render:(Ut,Yt,ta)=>`${((Gt==null?void 0:Gt.page)-1)*10+ta+1}`},{title:"\u59D3\u540D",dataIndex:"name"},{title:"\u5B66\u53F7",dataIndex:"student_id"},{title:"\u73ED\u7EA7",dataIndex:"course_group_name",render:Ut=>Ut||"\u672A\u5206\u73ED"},{title:"\u9519\u9898\u6570\u91CF",dataIndex:"wrong_size",render:Ut=>Ut||0},{title:"\u72B6\u6001",dataIndex:"status",render:Ut=>zd.createElement("span",{style:{color:Dn[Ut]}},Fn[Ut])},{title:"\u5B8C\u6210\u65F6\u95F4",dataIndex:"end_at",render:Ut=>Ut?Ge()(Ut).format("YYYY-MM-DD HH:mm:ss"):"--"}],pagination:{current:Gt.page,pageSize:Gt==null?void 0:Gt.limit,onChange:(Ut,Yt)=>{Bn(V0(W0({},Gt),{page:Ut,limit:Yt}))},total:((et=xt==null?void 0:xt.data)==null?void 0:et.size)||0,showTotal:Ut=>zd.createElement("span",{className:"font12 c-666"},"\u5171",zd.createElement("span",{style:{color:"#3061D0"}},Ut),"\u6761\u6570\u636E")}}))};var Gv=(0,he.connect)(({exercise:ce})=>({exercise:ce}))(Vv),Sc=z(67294),Kv=Object.defineProperty,Yv=Object.defineProperties,Xv=Object.getOwnPropertyDescriptors,Dg=Object.getOwnPropertySymbols,Jv=Object.prototype.hasOwnProperty,qv=Object.prototype.propertyIsEnumerable,bg=(ce,se,ae)=>se in ce?Kv(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,im=(ce,se)=>{for(var ae in se||(se={}))Jv.call(se,ae)&&bg(ce,ae,se[ae]);if(Dg)for(var ae of Dg(se))qv.call(se,ae)&&bg(ce,ae,se[ae]);return ce},sm=(ce,se)=>Yv(ce,Xv(se));const _v=(ce="")=>{var se,ae;const _e=document.createElement("html");return _e.innerHTML=(0,Ee.ZP)(ce),Sc.createElement("span",null,((ae=(se=_e==null?void 0:_e.children)==null?void 0:se[1])==null?void 0:ae.textContent)||(_e==null?void 0:_e.textContent)||"")},{RangePicker:kp}=Aa.default,$v=({exercise:ce,dispatch:se,handleOnComplete:ae})=>{var _e,pt,Ve,Dt,et,Be,Pe,Ht,vn,hn;const{actionTabs:xt={},course_groups:Gt=[]}=ce,Bn=(0,he.useParams)(),[,Dn,Fn,Wt]=(0,sn.U)(ne.OL,{exercise_id:Bn==null?void 0:Bn.categoryId}),[Ut,Yt]=(0,a.useState)({page:1,limit:10,exercise_group_id:((_e=xt==null?void 0:xt.data)==null?void 0:_e.exercise_group_id)||"all",exercise_question_id:(pt=xt==null?void 0:xt.data)==null?void 0:pt.exercise_question_id,keyword:"",status:"",not_complete:((Ve=xt==null?void 0:xt.data)==null?void 0:Ve.not_complete)||!1}),ta={\u672A\u5F00\u59CB:"#A4AEB6",\u5DF2\u5B8C\u6210:"#16A341",\u90E8\u5206\u5B8C\u6210:"#165DFF"},nn=()=>{se({type:"exercise/setActionTabs",payload:{key:""}})};return(0,a.useEffect)(()=>{xt!=null&&xt.data&&Fn(sm(im({},Ut),{exercise_group_id:(Ut==null?void 0:Ut.exercise_group_id)=="all"?"":Ut==null?void 0:Ut.exercise_group_id,exercise_id:Bn==null?void 0:Bn.categoryId}))},[xt==null?void 0:xt.data,Ut]),Sc.createElement(Fe.default,{centered:!0,title:Sc.createElement(Sc.Fragment,null,"\u9519\u9898\u8BE6\u60C5",Sc.createElement("span",{className:"font14 c-grey-666"},"\uFF08",(Dt=xt==null?void 0:xt.data)==null?void 0:Dt.title,"\uFF09"),Sc.createElement(Ae.Z,{title:Sc.createElement(Sc.Fragment,null,"\u9898\u76EE\uFF1A",_v((et=xt==null?void 0:xt.data)==null?void 0:et.question_title),Sc.createElement("br",null),"\u9898\u578B\uFF1A",(Be=xt==null?void 0:xt.data)==null?void 0:Be.question_type,Sc.createElement("br",null),"\u6B63\u786E\u7387\uFF1A",(Pe=xt==null?void 0:xt.data)==null?void 0:Pe.rate,"%",Sc.createElement("br",null))},Sc.createElement("a",{className:"ml10"},"\u8BD5\u9898\u8BE6\u60C5"))),open:(xt==null?void 0:xt.key)==="\u9AD8\u9891\u9519\u9898\u8BE6\u60C5",width:880,maskClosable:!1,destroyOnClose:!0,footer:null,onCancel:nn,className:Jm.mymodal},Sc.createElement("div",{className:"flex item-center justify-between"},Sc.createElement("div",null,Sc.createElement(ft.default,{style:{width:140},value:Ut==null?void 0:Ut.status,onChange:zn=>{Yt(sm(im({},Ut),{status:zn}))},options:[{label:"\u5168\u90E8\u72B6\u6001",value:""},{label:"\u5DF2\u5DE9\u56FA",value:!0},{label:"\u672A\u5DE9\u56FA",value:!1}]}),Sc.createElement(ft.default,{style:{width:160,marginLeft:20},mode:"multiple",maxTagCount:"responsive",value:Ut==null?void 0:Ut.exercise_group_id,onChange:zn=>{console.log(zn);let mn=[...zn];mn.length===0&&(mn=["all"]),mn.includes("all")&&mn.length>1&&(mn[mn.length-1]=="all"?mn=["all"]:mn=mn.filter(pa=>pa!=="all")),Yt(sm(im({},Ut),{exercise_group_id:mn}))},filterOption:(zn,mn)=>mn.label.indexOf(zn.toLowerCase())>=0,options:[{label:"\u5168\u90E8\u73ED\u7EA7",value:"all"},...Gt.map(zn=>({label:zn==null?void 0:zn.exercise_group_name,value:zn==null?void 0:zn.exercise_group_id}))]})),Sc.createElement(Hr.t7,{style:{width:230},placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u5B66\u53F7\u641C\u7D22",onChange:zn=>{Yt(sm(im({},Ut),{keyword:zn}))}})),Sc.createElement(x.default,{className:"mt10",dataSource:((Ht=Wt==null?void 0:Wt.data)==null?void 0:Ht.list)||[],scroll:{y:500},loading:Dn,columns:[{title:"\u5E8F\u53F7",dataIndex:"index",width:60,render:(zn,mn,pa)=>`${((Ut==null?void 0:Ut.page)-1)*10+pa+1}`},{title:"\u59D3\u540D",dataIndex:"name"},{title:"\u5B66\u53F7",dataIndex:"student_id"},{title:"\u73ED\u7EA7",dataIndex:"course_group_name",render:zn=>zn||"\u672A\u5206\u73ED"},((vn=xt==null?void 0:xt.data)==null?void 0:vn.type)==2&&{title:"\u9519\u9898\u6B21\u6570",dataIndex:"wrong_size"},{title:"\u662F\u5426\u5DF2\u5DE9\u56FA",dataIndex:"status",render:zn=>zn?"\u662F":"\u5426"}].filter(zn=>!!zn),pagination:{current:Ut.page,pageSize:Ut==null?void 0:Ut.limit,onChange:(zn,mn)=>{Yt(sm(im({},Ut),{page:zn,limit:mn}))},total:((hn=Wt==null?void 0:Wt.data)==null?void 0:hn.size)||0,showTotal:zn=>Sc.createElement("span",{className:"font12 c-666"},"\u5171",Sc.createElement("span",{style:{color:"#3061D0"}},zn),"\u6761\u6570\u636E")}}))};var ep=(0,he.connect)(({exercise:ce})=>({exercise:ce}))($v),s0=z(16199),$s=z(67294),tp=Object.defineProperty,np=Object.defineProperties,ap=Object.getOwnPropertyDescriptors,wg=Object.getOwnPropertySymbols,up=Object.prototype.hasOwnProperty,rp=Object.prototype.propertyIsEnumerable,xg=(ce,se,ae)=>se in ce?tp(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,cm=(ce,se)=>{for(var ae in se||(se={}))up.call(se,ae)&&xg(ce,ae,se[ae]);if(wg)for(var ae of wg(se))rp.call(se,ae)&&xg(ce,ae,se[ae]);return ce},wm=(ce,se)=>np(ce,ap(se));const{RangePicker:jp}=Aa.default,lp=({exercise:ce,dispatch:se,handleOnComplete:ae})=>{var _e,pt,Ve,Dt,et,Be,Pe;const{actionTabs:Ht={},course_groups:vn=[]}=ce,hn=(0,he.useParams)(),[,xt,Gt,Bn]=(0,sn.U)(ne.Wm,{exercise_id:hn==null?void 0:hn.categoryId}),[Dn,Fn]=(0,a.useState)({page:1,limit:10,keyword:"",status:((_e=Ht==null?void 0:Ht.data)==null?void 0:_e.status)||"",exercise_group_id:((pt=Ht==null?void 0:Ht.data)==null?void 0:pt.exercise_group_id)||"all",question_type:((Ve=Ht==null?void 0:Ht.data)==null?void 0:Ve.question_type)!==void 0?(Dt=Ht==null?void 0:Ht.data)==null?void 0:Dt.question_type:"",exercise_question_id:(et=Ht==null?void 0:Ht.data)==null?void 0:et.exercise_question_id}),[Wt,Ut]=(0,a.useState)(),[Yt,ta]=(0,a.useState)({}),[nn,zn]=(0,a.useState)(!1),mn=[{name:"\u5168\u90E8",value:"all",question_type:""},{name:"\u5355\u9009\u9898",value:"SINGLE",question_type:0},{name:"\u591A\u9009\u9898",value:"MULTIPLE",question_type:1},{name:"\u5224\u65AD\u9898",value:"JUDGMENT",question_type:2},{name:"\u586B\u7A7A\u9898",value:"COMPLETION",question_type:3},{name:"\u7F16\u7A0B\u9898",value:"PROGRAM",question_type:6},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",value:"BPROGRAM",question_type:8}],pa=()=>{se({type:"exercise/setActionTabs",payload:{key:""}})};return(0,a.useEffect)(()=>{console.log(Ht==null?void 0:Ht.data,"actionTabs?.data"),Ht!=null&&Ht.data&&Gt(wm(cm({},Dn),{exercise_group_id:(Dn==null?void 0:Dn.exercise_group_id)=="all"?"":Dn==null?void 0:Dn.exercise_group_id,exercise_id:hn==null?void 0:hn.categoryId}))},[Ht==null?void 0:Ht.data,Dn]),$s.createElement($s.Fragment,null,$s.createElement(Fe.default,{centered:!0,title:Ht==null?void 0:Ht.key,open:(Ht==null?void 0:Ht.key)==="\u63A8\u9001\u8BD5\u9898\u8BE6\u60C5",width:1100,maskClosable:!1,destroyOnClose:!0,footer:null,onCancel:pa,className:Jm.mymodal},$s.createElement("div",{className:"flex item-center justify-between"},$s.createElement("div",null,$s.createElement(ft.default,{style:{width:160},listHeight:200,value:(Dn==null?void 0:Dn.question_type)===0?0:(Dn==null?void 0:Dn.question_type)||"",onChange:Pt=>{console.log(Pt),Fn(wm(cm({},Dn),{question_type:Pt}))}},mn.map(Pt=>$s.createElement(ft.default.Option,{key:Pt.value,value:Pt.question_type},Pt.name)))),$s.createElement(Hr.t7,{style:{width:245},placeholder:"\u8BF7\u8F93\u5165\u8BD5\u9898\u540D\u79F0\u8FDB\u884C\u641C\u7D22",onChange:Pt=>{Fn(wm(cm({},Dn),{keyword:Pt}))}})),$s.createElement(x.default,{className:"mt10",dataSource:((Be=Bn==null?void 0:Bn.data)==null?void 0:Be.list)||[],scroll:{y:500},loading:xt,columns:[{title:"\u5E8F\u53F7",dataIndex:"index",key:"index",width:60,render:(Pt,Nt,Rt)=>`${((Dn==null?void 0:Dn.page)-1)*10+Rt+1}`},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"question_title",width:"60%",key:"name",render:(Pt,Nt,Rt)=>$s.createElement("span",null,$s.createElement(uu.Z,{key:1,showLines:1,showTextOnly:!0,value:Nt==null?void 0:Nt.question_title}))},{title:"\u9898\u578B",dataIndex:"question_type",key:"question_type",render:(Pt,Nt,Rt)=>{var Xt,cn;return(cn=(Xt=mn==null?void 0:mn.filter(tn=>tn.question_type===Pt))==null?void 0:Xt[0])==null?void 0:cn.name}},{title:"\u64CD\u4F5C",dataIndex:"id",key:"item_type",render:(Pt,Nt,Rt)=>$s.createElement("a",{onClick:()=>{var Xt;const cn=((Xt=(0,s0.eS)([cm({},Nt)]))==null?void 0:Xt[0])||{};ta(cn),zn(!0)}},"\u67E5\u770B\u8BE6\u60C5")}],pagination:{current:Dn.page,pageSize:Dn==null?void 0:Dn.limit,onChange:(Pt,Nt)=>{Fn(wm(cm({},Dn),{page:Pt,limit:Nt}))},total:((Pe=Bn==null?void 0:Bn.data)==null?void 0:Pe.size)||0,showTotal:Pt=>$s.createElement("span",{className:"font12 c-666"},"\u5171",$s.createElement("span",{style:{color:"#3061D0"}},Pt),"\u6761\u6570\u636E")}})),$s.createElement(Fe.default,{centered:!0,destroyOnClose:!0,onCancel:()=>{zn(!1)},open:nn,title:"\u9898\u76EE\u8BE6\u60C5",footer:null,bodyStyle:{paddingBottom:25,maxHeight:650},width:1e3},$s.createElement($s.Fragment,null,(Yt==null?void 0:Yt.question_type)===0&&$s.createElement(s0.PQ,{data:Yt}),(Yt==null?void 0:Yt.question_type)===1&&$s.createElement(s0.jM,{data:Yt}),(Yt==null?void 0:Yt.question_type)===2&&$s.createElement(s0.$C,{data:Yt}),(Yt==null?void 0:Yt.question_type)===3&&$s.createElement(s0.P1,{data:Yt}),(Yt==null?void 0:Yt.question_type)===4&&$s.createElement(s0.JE,{data:Yt}),(Yt==null?void 0:Yt.question_type)===6&&$s.createElement(s0.g0,{data:Yt}),(Yt==null?void 0:Yt.question_type)===7&&$s.createElement(s0.rK,{data:Yt}),(Yt==null?void 0:Yt.question_type)===8&&$s.createElement(s0.ZP,{data:Yt}))))};var op=(0,he.connect)(({exercise:ce})=>({exercise:ce}))(lp),ip=Object.defineProperty,sp=Object.defineProperties,cp=Object.getOwnPropertyDescriptors,Ig=Object.getOwnPropertySymbols,dp=Object.prototype.hasOwnProperty,mp=Object.prototype.propertyIsEnumerable,Lg=(ce,se,ae)=>se in ce?ip(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,kc=(ce,se)=>{for(var ae in se||(se={}))dp.call(se,ae)&&Lg(ce,ae,se[ae]);if(Ig)for(var ae of Ig(se))mp.call(se,ae)&&Lg(ce,ae,se[ae]);return ce},wd=(ce,se)=>sp(ce,cp(se)),G0=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const{RangePicker:zp}=Aa.default,gp=({classroomList:ce,exercise:se,dispatch:ae,accuracy:_e,setAccuracy:pt})=>{var Ve,Dt,et,Be,Pe,Ht,vn,hn,xt,Gt,Bn,Dn,Fn,Wt,Ut,Yt,ta,nn,zn,mn,pa,Pt,Nt;const Rt=(0,he.useParams)(),[Xt,cn]=(0,a.useState)(kc(kc({},{page:1,limit:20}),Rt)),[tn,Ja]=(0,a.useState)({exercise_group_id:["all"]}),[ha]=fe.default.useForm(),[dt,Fa]=(0,a.useState)([]),[ia,wu]=(0,a.useState)({}),[Sa,Hn]=(0,a.useState)({}),[Oa,tu]=(0,a.useState)({}),[Ka,Ba]=(0,a.useState)(!1),[La,Zn]=(0,a.useState)(!1),[bn,ca]=(0,a.useState)(_e),Qn={\u672A\u5F00\u59CB:0,\u672A\u5F00\u59CB\u4EBA\u6570:0,\u5DF2\u5B8C\u6210:1,\u5DF2\u5B8C\u6210\u4EBA\u6570:1,\u90E8\u5206\u5B8C\u6210:2,\u90E8\u5206\u5B8C\u6210\u4EBA\u6570:2,\u70B9\u8D5E\u6570:!0,\u70B9\u8E29\u6570:!1},pn={\u5355\u9009\u9898:0,\u591A\u9009\u9898:1,\u5224\u65AD\u9898:2,\u586B\u7A7A\u9898:3,\u7F16\u7A0B\u9898:6,\u7B80\u7B54\u9898:4,\u7EC4\u5408\u9898:7,\u7A0B\u5E8F\u586B\u7A7A\u9898:8},Tn={\u5355\u9009\u9898:"#5A89F1",\u591A\u9009\u9898:"#41A6FF",\u5224\u65AD\u9898:"#2EC25B",\u586B\u7A7A\u9898:"#37CCCC",\u7F16\u7A0B\u9898:"#FB9A77",\u7B80\u7B54\u9898:"#F3E064",\u7EC4\u5408\u9898:"#82D4FF",\u7A0B\u5E8F\u586B\u7A7A\u9898:"#8A71E1"},En={\u672A\u5F00\u59CB:"#FACC16",\u5DF2\u5B8C\u6210:"#5A89F1",\u90E8\u5206\u5B8C\u6210:"#2EC25B"},da={\u5DF2\u5B8C\u6210\u4EBA\u6570:"completed",\u90E8\u5206\u5B8C\u6210\u4EBA\u6570:"partially_completed",\u672A\u5F00\u59CB\u4EBA\u6570:"not_started",\u63A8\u9001\u8BD5\u9898\u603B\u6570:"total",\u70B9\u8D5E\u6570:"like",\u70B9\u8E29\u6570:"dislike"};(0,a.useEffect)(()=>{Ru()},[tn]),(0,a.useEffect)(()=>{Ha()},[]),(0,a.useEffect)(()=>{_e&&ca(_e)},[_e]);const Ha=()=>G0(void 0,null,function*(){var mu,$u,jr;const Eu=yield(0,Ce.ZP)(`/api/exercises/${Xt.categoryId}/header_info.json`,{method:"get"});if((Eu==null?void 0:Eu.status)===0){const wr=[{label:"\u5168\u90E8",value:"all"}];ae({type:"exercise/save",payload:{course_groups:(mu=Eu==null?void 0:Eu.data)==null?void 0:mu.course_groups}}),(jr=($u=Eu==null?void 0:Eu.data)==null?void 0:$u.course_groups)==null||jr.forEach(Va=>{wr.push({label:Va==null?void 0:Va.exercise_group_name,value:Va==null?void 0:Va.exercise_group_id})}),Fa(wr)}}),au=(0,a.useMemo)(()=>{var mu;return a.createElement(td.Z,{option:{tooltip:{trigger:"item",formatter:"{b}: {c} \u4EBA ({d}%)"},legend:!1,series:[{type:"pie",radius:["20%","50%"],avoidLabelOverlap:!0,label:{show:!0,formatter:`{b} {c} \u4EBA {d}%`,position:"outside",distanceToLabelLine:10,edgeDistance:"10%",bleedMargin:5},labelLayout:{hideOverlap:!0,moveOverlap:"shiftY"},labelLine:{show:!0,length:20,length2:15},data:Sa==null?void 0:Sa.data1,color:(mu=Sa==null?void 0:Sa.data1)==null?void 0:mu.map($u=>En[$u==null?void 0:$u.name])}]},style:{width:420,height:230,margin:"0 auto"},onEvents:{click:$u=>{setTimeout(()=>{ae({type:"exercise/setActionTabs",payload:{key:"\u9519\u9898\u5DE9\u56FA\u8BE6\u60C5",data:wd(kc({},tn),{status:Qn[$u==null?void 0:$u.name]})}})},0)}}})},[Sa==null?void 0:Sa.data1]),Ya=(0,a.useMemo)(()=>{var mu,$u;return a.createElement(td.Z,{option:{tooltip:{trigger:"axis",formatter:"{b}: {c}\u4EBA",axisPointer:{type:"shadow",shadowStyle:{color:"rgba(0, 0, 0, 0.1)"}}},grid:{left:10,right:40,bottom:"5%",top:50,containLabel:!0},xAxis:{type:"category",data:(mu=Sa==null?void 0:Sa.data2)==null?void 0:mu.map(jr=>jr==null?void 0:jr.name),axisLine:{lineStyle:{color:"#EBEBEB"}},axisTick:{show:!1},axisLabel:{color:"#86909C",fontSize:12},name:"\u65F6\u95F4",nameTextStyle:{color:"#86909C",fontSize:12,padding:[0,0,0,-5]}},yAxis:{type:"value",name:"\u4EBA\u6570",nameTextStyle:{color:"#86909C",fontSize:12,padding:[0,20,10,0]},axisLine:{show:!1},axisTick:{show:!1},splitLine:{lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#86909C",fontSize:12},splitNumber:5,minInterval:5},series:[{data:($u=Sa==null?void 0:Sa.data2)==null?void 0:$u.map(jr=>jr==null?void 0:jr.value),type:"bar",barWidth:22,itemStyle:{color:"#2EC25B"},label:{show:!0,position:"top",color:"#86909C",fontSize:12}}]},style:{width:530,height:320},onEvents:{click:jr=>{setTimeout(()=>{ae({type:"exercise/setActionTabs",payload:{key:"\u9519\u9898\u5DE9\u56FA\u8BE6\u60C5",data:wd(kc({},tn),{status:1})}})},0)}}})},[Sa==null?void 0:Sa.data2]),Cr=(0,a.useMemo)(()=>{var mu,$u,jr,Eu,wr,Va;return a.createElement(td.Z,{option:{tooltip:{trigger:"axis",formatter:function(Nu){var oo;return`${Nu[0].name}
\u9519\u9898\u4EBA\u6570: ${Nu[0].value}\u4EBA
\u5DF2\u5DE9\u56FA\u4EBA\u6570: ${((oo=Nu[1])==null?void 0:oo.value)||0}\u4EBA`},axisPointer:{type:"shadow",shadowStyle:{color:"rgba(0, 0, 0, 0.1)"}}},dataZoom:wd(kc({type:"slider",show:((mu=Sa==null?void 0:Sa.data3)==null?void 0:mu.length)>10},(($u=Sa==null?void 0:Sa.data3)==null?void 0:$u.length)>10?{start:0,end:Math.floor(9*100/((jr=Sa==null?void 0:Sa.data3)==null?void 0:jr.length))}:{}),{bottom:0,height:10}),legend:{data:["\u9519\u8BEF\u4EBA\u6570","\u5DF2\u5DE9\u56FA\u4EBA\u6570"],bottom:10,itemWidth:12,itemHeight:12,itemGap:50},grid:{left:0,right:50,bottom:"10%",top:"15%",containLabel:!0},xAxis:{type:"category",data:(Eu=Sa==null?void 0:Sa.data3)==null?void 0:Eu.map(Nu=>Nu==null?void 0:Nu.name),axisLine:{lineStyle:{color:"#EBEBEB"}},axisTick:{show:!1},axisLabel:{color:"#666666",fontSize:12,interval:0,rotate:0},name:"\u8BD5\u9898",nameTextStyle:{color:"#666666",fontSize:12,padding:[0,0,0,-5]}},yAxis:{type:"value",name:"\u4EBA\u6570",nameTextStyle:{color:"#666666",fontSize:12,padding:[0,20,10,0]},axisLine:{show:!1},axisTick:{show:!1},splitLine:{lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#86909C",fontSize:12},splitNumber:5},series:[{name:"\u9519\u8BEF\u4EBA\u6570",type:"bar",barWidth:22,itemStyle:{color:"#4ECC74"},label:{show:!0,position:"top",color:"#86909C",fontSize:12},data:(wr=Sa==null?void 0:Sa.data3)==null?void 0:wr.map(Nu=>Nu==null?void 0:Nu.error_size)},{name:"\u5DF2\u5DE9\u56FA\u4EBA\u6570",type:"bar",barWidth:22,itemStyle:{color:"#60B1FC"},label:{show:!0,position:"top",color:"#86909C",fontSize:12},data:(Va=Sa==null?void 0:Sa.data3)==null?void 0:Va.map(Nu=>Nu==null?void 0:Nu.completed_size)}]},style:{width:"100%",height:360},onEvents:{click:Nu=>{console.log("sdfsdf===",Nu),setTimeout(()=>{var oo;ae({type:"exercise/setActionTabs",payload:{key:"\u9AD8\u9891\u9519\u9898\u8BE6\u60C5",data:kc(wd(kc({},tn),{title:Nu==null?void 0:Nu.name,type:1}),(oo=Sa==null?void 0:Sa.data3)==null?void 0:oo.find(Su=>(Su==null?void 0:Su.name)===(Nu==null?void 0:Nu.name)))}})},0)}}})},[Sa==null?void 0:Sa.data3]),Zu=(0,a.useMemo)(()=>{var mu;return a.createElement(td.Z,{option:{tooltip:{trigger:"item",formatter:"{b}: {c} ({d}%)"},legend:!1,series:[{type:"pie",radius:["20%","50%"],avoidLabelOverlap:!1,label:{show:!0,formatter:`{b} {c} \u9053 -{d}%`,position:"outside"},labelLine:{show:!0,length:20,length2:15},data:Oa==null?void 0:Oa.data1,color:(mu=Oa==null?void 0:Oa.data1)==null?void 0:mu.map($u=>Tn[$u==null?void 0:$u.name])}]},style:{width:420,height:230,margin:"0 auto"},onEvents:{click:$u=>{console.log("sdfsdf===",$u),setTimeout(()=>{ae({type:"exercise/setActionTabs",payload:{key:"\u63A8\u9001\u8BD5\u9898\u8BE6\u60C5",data:wd(kc({},tn),{question_type:pn[$u==null?void 0:$u.name]})}})},0)}}})},[Oa==null?void 0:Oa.data1]),sa=(0,a.useMemo)(()=>{var mu,$u;return a.createElement(td.Z,{option:{tooltip:{trigger:"axis",formatter:"{b}: {c}\u4EBA",axisPointer:{type:"shadow",shadowStyle:{color:"rgba(0, 0, 0, 0.1)"}}},grid:{left:10,right:40,bottom:"5%",top:50,containLabel:!0},xAxis:{type:"category",data:(mu=Oa==null?void 0:Oa.data2)==null?void 0:mu.map(jr=>jr==null?void 0:jr.name),axisLine:{lineStyle:{color:"#EBEBEB"}},axisTick:{show:!1},axisLabel:{color:"#86909C",fontSize:12},name:"\u8BD5\u9898",nameTextStyle:{color:"#86909C",fontSize:12,padding:[0,0,0,-5]}},yAxis:{type:"value",name:"\u4EBA\u6570",nameTextStyle:{color:"#86909C",fontSize:12,padding:[0,20,10,0]},axisLine:{show:!1},axisTick:{show:!1},splitLine:{lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#86909C",fontSize:12},splitNumber:5,minInterval:5},series:[{data:($u=Oa==null?void 0:Oa.data2)==null?void 0:$u.map(jr=>jr==null?void 0:jr.value),type:"bar",barWidth:22,itemStyle:{color:"#2EC25B"},label:{show:!0,position:"top",color:"#86909C",fontSize:12}}]},style:{width:530,height:320},onEvents:{click:jr=>{console.log("sdfsdf===",jr),setTimeout(()=>{var Eu;ae({type:"exercise/setActionTabs",payload:{key:"\u9AD8\u9891\u9519\u9898\u8BE6\u60C5",data:wd(kc(wd(kc({},tn),{title:jr==null?void 0:jr.name,type:2}),(Eu=Oa==null?void 0:Oa.data2)==null?void 0:Eu.find(wr=>(wr==null?void 0:wr.name)===(jr==null?void 0:jr.name))),{not_complete:!0})}})},0)}}})},[Oa==null?void 0:Oa.data2]),Ru=()=>G0(void 0,null,function*(){Ba(!0),yield Promise.all([mr(),gl(),Tl()]),Ba(!1)}),mr=()=>G0(void 0,null,function*(){var mu;const $u=yield(0,Ce.ZP)(`/api/ai/wrong_question_push_charts/${Xt==null?void 0:Xt.categoryId}/data_overview.json`,{method:"post",body:wd(kc({},tn),{exercise_group_id:(mu=tn==null?void 0:tn.exercise_group_id)!=null&&mu.includes("all")?"":tn==null?void 0:tn.exercise_group_id})});($u==null?void 0:$u.status)===0&&wu($u==null?void 0:$u.data)}),gl=()=>G0(void 0,null,function*(){var mu;const $u=yield(0,Ce.ZP)(`/api/ai/wrong_question_push_charts/${Xt==null?void 0:Xt.categoryId}/charts.json`,{method:"post",body:wd(kc({},tn),{exercise_group_id:(mu=tn==null?void 0:tn.exercise_group_id)!=null&&mu.includes("all")?"":tn==null?void 0:tn.exercise_group_id})});($u==null?void 0:$u.status)===0&&Hn($u==null?void 0:$u.data)}),Tl=()=>G0(void 0,null,function*(){var mu;const $u=yield(0,Ce.ZP)(`/api/ai/wrong_question_push_charts/${Xt==null?void 0:Xt.categoryId}/ai_charts.json`,{method:"post",body:wd(kc({},tn),{exercise_group_id:(mu=tn==null?void 0:tn.exercise_group_id)!=null&&mu.includes("all")?"":tn==null?void 0:tn.exercise_group_id})});($u==null?void 0:$u.status)===0&&tu($u==null?void 0:$u.data)});return a.createElement("div",null,a.createElement(fe.default,{className:ls.FormCheckBoxDom,colon:!1,initialValues:tn,onValuesChange:(mu,$u)=>{const jr=kc(kc({},tn),$u);console.log(jr,"newValue"),Ja(kc({},jr))}},a.createElement(oe.Z,{wrap:!1,justify:"space-between"},a.createElement(ve.Z,null,a.createElement(fe.default.Item,{label:"\u9009\u62E9\u73ED\u7EA7",name:"exercise_group_id",normalize:(mu,$u,jr)=>{var Eu,wr;return(Eu=$u||[])!=null&&Eu.every(Va=>Va==="all")&&mu.includes("all")&&mu.length>1&&(mu=mu.filter(Va=>Va!=="all")),(!((wr=$u||[])!=null&&wr.includes("all"))&&mu.includes("all")||(mu==null?void 0:mu.length)==0)&&(mu=["all"]),mu}},a.createElement(Se.default.Group,{options:dt}))))),a.createElement("div",{className:ls.content},a.createElement(jt.Z,{spinning:Ka},a.createElement("div",{className:ls.head},a.createElement("div",{className:ls.title},"\u6570\u636E\u6982\u89C8",a.createElement("span",{className:"font14",style:{color:"#9096A3"}},"\uFF08\u70B9\u51FB\u6570\u5B57\u53EF\u67E5\u770B\u8BE6\u60C5\uFF09"))),a.createElement("div",{className:ls.data_overview},[{text:"\u5DF2\u5B8C\u6210\u4EBA\u6570"},{text:"\u90E8\u5206\u5B8C\u6210\u4EBA\u6570"},{text:"\u672A\u5F00\u59CB\u4EBA\u6570"},{text:"\u63A8\u9001\u8BD5\u9898\u603B\u6570"}].map(mu=>{let $u=ia==null?void 0:ia[da[mu==null?void 0:mu.text]];return a.createElement("div",{className:ls.data_overview_item,onClick:()=>{["\u63A8\u9001\u8BD5\u9898\u603B\u6570","\u70B9\u8D5E\u6570","\u70B9\u8E29\u6570"].includes(mu==null?void 0:mu.text)?ae({type:"exercise/setActionTabs",payload:{key:"\u63A8\u9001\u8BD5\u9898\u8BE6\u60C5",data:wd(kc({},tn),{status:Qn[mu==null?void 0:mu.text]})}}):ae({type:"exercise/setActionTabs",payload:{key:"\u9519\u9898\u5DE9\u56FA\u8BE6\u60C5",data:wd(kc({},tn),{status:Qn[mu==null?void 0:mu.text]})}})}},a.createElement("span",{className:ls.num},$u),a.createElement("span",{className:ls.text},mu==null?void 0:mu.text))})),a.createElement("div",{className:ls.head},a.createElement("div",{className:ls.title},"\u9519\u9898\u5DE9\u56FA\u60C5\u51B5 ",a.createElement("span",{className:"font14",style:{color:"#9096A3"}},"\uFF08 \u70B9\u51FB\u56FE\u8868\u53EF\u67E5\u770B\u8BE6\u60C5 \uFF09"))),a.createElement("div",{className:ls.tubiao},a.createElement("div",{className:ls.pie_style},a.createElement("div",{className:ls.tb_title},"\u5DF2\u6709",ia==null?void 0:ia.completed,"\u4EBA\u5B8C\u6210\u9519\u9898\u5DE9\u56FA\uFF0C\u5360\u6BD4",(Dt=(Ve=Sa==null?void 0:Sa.data1)==null?void 0:Ve.find(mu=>(mu==null?void 0:mu.name)==="\u5DF2\u5B8C\u6210"))==null?void 0:Dt.rate,"%\uFF1B\u672A\u5F00\u59CB\u9519\u9898\u5DE9\u56FA\u7684\u5B66\u751F\u6709",ia==null?void 0:ia.not_started,"\u4EBA\uFF0C\u5360\u6BD4",(Be=(et=Sa==null?void 0:Sa.data1)==null?void 0:et.find(mu=>(mu==null?void 0:mu.name)==="\u672A\u5F00\u59CB"))==null?void 0:Be.rate,"%"),((Pe=Sa==null?void 0:Sa.data1)==null?void 0:Pe.length)>0&&au,a.createElement("div",{className:ls.legend,style:{marginTop:30,padding:"0 100px"}},(Ht=Sa==null?void 0:Sa.data1)==null?void 0:Ht.map(mu=>a.createElement("div",{className:ls.legend_item},a.createElement("div",{className:ls.legend_item_color,style:{backgroundColor:En[mu==null?void 0:mu.name]}}),a.createElement("div",{className:ls.legend_item_text},mu==null?void 0:mu.name))))),a.createElement("div",{className:ls.line}),a.createElement("div",{className:ls.bar_style},a.createElement("div",{className:ls.tb_title},"\u5B8C\u6210\u9519\u9898\u5DE9\u56FA\u7684\u5B66\u751F\u4E2D\uFF0C\u8003\u8BD5\u622A\u6B62\u540E1\u5929\u5185\u5B8C\u6210\u7684\u5B66\u751F\u6709",(hn=(vn=Sa==null?void 0:Sa.data2)==null?void 0:vn.find(mu=>(mu==null?void 0:mu.name)==="1\u5929\u5185"))==null?void 0:hn.value,"\u4EBA\uFF0C\u5360\u6BD4",(Gt=(xt=Sa==null?void 0:Sa.data2)==null?void 0:xt.find(mu=>(mu==null?void 0:mu.name)==="1\u5929\u5185"))==null?void 0:Gt.rate,"%\uFF1B\u8003\u8BD5\u622A\u6B62\u540E16\u5929\u4EE5\u4E0A\u5B8C\u6210\u7684\u5B66\u751F",(Dn=(Bn=Sa==null?void 0:Sa.data2)==null?void 0:Bn.find(mu=>(mu==null?void 0:mu.name)==="16\u5929\u4EE5\u4E0A"))==null?void 0:Dn.value,"\u4EBA\uFF0C\u5360\u6BD4",(Wt=(Fn=Sa==null?void 0:Sa.data2)==null?void 0:Fn.find(mu=>(mu==null?void 0:mu.name)==="16\u5929\u4EE5\u4E0A"))==null?void 0:Wt.rate,"%"),((Ut=Sa==null?void 0:Sa.data2)==null?void 0:Ut.length)>0&&Ya)),a.createElement("div",{className:ls.head,style:{marginTop:30}},a.createElement("div",{className:ls.title},"\u9AD8\u9891\u9519\u9898 ",a.createElement("span",{className:"font14",style:{color:"#9096A3"}},"\uFF08 \u70B9\u51FB\u56FE\u8868\u53EF\u67E5\u770B\u8BE6\u60C5 \uFF09")),a.createElement("div",{style:{marginLeft:"auto",color:"#666666"}},"\u6B63\u786E\u7387\u2264",_e,"%"),a.createElement("div",{className:"flex item-center current ml30",onClick:()=>{Zn(!0)}},a.createElement("i",{className:"iconfont icon-shezhi9 mr5 font14",style:{color:"#165DFF"}}),a.createElement("span",{style:{color:"#3061D0"}},"\u8BBE\u7F6E"))),a.createElement("div",{className:ls.tubiao2},((Yt=Sa==null?void 0:Sa.data3)==null?void 0:Yt.length)>0?Cr:a.createElement(zt.Z,null)),a.createElement("div",{className:ls.head,style:{marginTop:30}},a.createElement("div",{className:ls.title},"AI\u63A8\u9001\u9519\u9898\u60C5\u51B5 ",a.createElement("span",{className:"font14",style:{color:"#9096A3"}},"\uFF08 \u70B9\u51FB\u56FE\u8868\u53EF\u67E5\u770B\u8BE6\u60C5 \uFF09"))),a.createElement("div",{className:ls.tubiao},a.createElement("div",{className:ls.pie_style},((ea=Oa==null?void 0:Oa.data1)==null?void 0:ea.length)>0?a.createElement(a.Fragment,null,a.createElement("div",{className:ls.tb_title,style:{textAlign:"center"}},"AI\u52A9\u6559\u603B\u5171\u7ED9\u5B66\u751F\u63A8\u9001\u4E86",Oa==null?void 0:Oa.wrong_exercise_question_size,"\u9053\u8BD5\u9898"),Zu):a.createElement(zt.Z,null),a.createElement("div",{className:ls.legend},(nn=Oa==null?void 0:Oa.data1)==null?void 0:nn.map(mu=>a.createElement("div",{className:ls.legend_item},a.createElement("div",{className:ls.legend_item_color,style:{backgroundColor:Tn[mu==null?void 0:mu.name]}}),a.createElement("div",{className:ls.legend_item_text},mu==null?void 0:mu.name))))),a.createElement("div",{className:ls.line}),a.createElement("div",{className:ls.bar_style},((zn=Oa==null?void 0:Oa.data2)==null?void 0:zn.length)>0?a.createElement(a.Fragment,null,a.createElement("div",{className:ls.tb_title},"\u5DF2\u63A8\u9001\u7684\u8BD5\u9898\u4E2D\uFF0C",(mn=Oa==null?void 0:Oa.data2)==null?void 0:mn.map(mu=>mu==null?void 0:mu.name).join("\u3001"),"\u7684\u9519\u8BEF\u4EBA\u6570\u8F83\u591A\uFF0C\u6709\u53EF\u80FD\u5B66\u751F\u5BF9\u8FD9\u90E8\u5206\u8BD5\u9898\u8003\u5BDF\u7684\u77E5\u8BC6\u70B9\u638C\u63E1\u4E0D\u591F\uFF0C\u53EF\u8003\u8651\u91CD\u70B9\u8BB2\u89E3\u3002"),sa):a.createElement(zt.Z,null))))),((pa=se==null?void 0:se.actionTabs)==null?void 0:pa.key)==="\u9519\u9898\u5DE9\u56FA\u8BE6\u60C5"&&a.createElement(Gv,null),((Pt=se==null?void 0:se.actionTabs)==null?void 0:Pt.key)==="\u9AD8\u9891\u9519\u9898\u8BE6\u60C5"&&a.createElement(ep,null),((Nt=se==null?void 0:se.actionTabs)==null?void 0:Nt.key)==="\u63A8\u9001\u8BD5\u9898\u8BE6\u60C5"&&a.createElement(op,null),a.createElement(Fe.default,{centered:!0,title:"\u9AD8\u9891\u9519\u9898\u8BBE\u7F6E",width:400,open:La,okText:"\u786E\u5B9A",afterClose:()=>{},cancelText:"\u53D6\u6D88",onOk:()=>G0(void 0,null,function*(){if(!_e){pe.ZP.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7387");return}const mu=yield(0,Ce.ZP)(`/api/ai/wrong_question_push_charts/${Xt==null?void 0:Xt.categoryId}/set_ai_accuracy.json`,{method:"post",body:{ai_accuracy:bn}});(mu==null?void 0:mu.status)===0&&(pe.ZP.success("\u8BBE\u7F6E\u6210\u529F"),pt(bn),gl(),Zn(!1))}),onCancel:()=>{Zn(!1)}},a.createElement("div",{className:ls.accuracySetting},a.createElement("span",null,"\u6B63\u786E\u7387\u2264"),a.createElement(Re.Z,{size:"large",value:bn,defaultValue:bn,min:1,max:100,precision:0,className:"ml10 mr10",style:{width:"140px"},onChange:mu=>{console.log(mu,"e"),ca(mu)}}),a.createElement("span",{className:"text_45"},"%\u7684\u8BD5\u9898\u3002"))))};var fp=(0,he.connect)(({classroomList:ce,exercise:se})=>({classroomList:ce,exercise:se}))(gp),qm=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const vp=({exercise:ce,dispatch:se})=>{const{commonHeader:ae}=ce,_e=(0,he.useParams)(),[pt,Ve]=(0,a.useState)(!0),[Dt,et]=(0,a.useState)(!1),[Be,Pe]=(0,a.useState)(0),{verifyModelUser:Ht,ContactModalElement:vn}=(0,Wd.Z)();(0,a.useEffect)(()=>{hn()},[]);const hn=()=>qm(void 0,null,function*(){var xt,Gt,Bn,Dn;Ve(!0);const Fn=yield(0,Ce.ZP)(`/api/exercises/${_e==null?void 0:_e.categoryId}/get_wrong_question_push_infos.json`,{method:"get"});(Fn==null?void 0:Fn.status)===0&&(et((Gt=(xt=Fn==null?void 0:Fn.data)==null?void 0:xt.exercise)==null?void 0:Gt.ai_push_wrong_question),Pe((Dn=(Bn=Fn==null?void 0:Fn.data)==null?void 0:Bn.exercise)==null?void 0:Dn.ai_accuracy)),Ve(!1)});return a.createElement("div",{className:jv.wrap},a.createElement(oe.Z,{align:"middle",style:{background:"#fff",padding:20}},a.createElement(Ne.Z,{loading:pt,checked:Dt,onChange:xt=>qm(void 0,null,function*(){if(!Ht())return;const Gt=()=>qm(void 0,null,function*(){Ve(!0);const Bn=yield(0,Ce.ZP)(`/api/exercises/${_e==null?void 0:_e.categoryId}/wrong_question_push_settings.json`,{method:"post",body:{ai_push_wrong_question:xt}});(Bn==null?void 0:Bn.status)===0&&hn()});if(xt){Fe.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5F00\u542F\u4E4B\u540E\uFF0C\u5B66\u751F\u8FDB\u5165\u9519\u9898\u5DE9\u56FA\u9875\u9762\u53EF\u4EE5\u67E5\u770B\u539F\u9898\u7684\u7B54\u6848\u3001\u89E3\u6790\u3001\u77E5\u8BC6\u70B9\u4FE1\u606F\uFF0C\u662F\u5426\u786E\u5B9A\u5F00\u542F\uFF1F",onOk:Gt});return}Gt()})}),a.createElement("b",{className:"c-grey-333 ml10"},"\u667A\u80FD\u63A8\u9001\u9519\u9898"),a.createElement("span",{className:"c-grey-999 mr10"},"\uFF08\u8003\u8BD5\u622A\u6B62\u540E\uFF0C\u5DF2\u53C2\u52A0\u8003\u8BD5\u7684\u5B66\u751F\u53EF\u8FDB\u884C\u9519\u9898\u5DE9\u56FA\u7EC3\u4E60\uFF0C\u5927\u6A21\u578B\u5C06\u4F1A\u6839\u636E\u5B66\u751F\u7684\u6BCF\u9053\u9519\u9898\u81EA\u52A8\u63A8\u90011\u9053\u540C\u77E5\u8BC6\u70B9\u7684\u65B0\u8BD5\u9898\uFF0C\u6682\u4E0D\u652F\u6301\u7B80\u7B54\u9898\u3001\u7EC4\u5408\u9898\u3001\u5B9E\u8BAD\u9898\uFF09")),(ae==null?void 0:ae.exercise_status)===3&&Dt&&a.createElement(fp,{accuracy:Be,setAccuracy:Pe}),vn())};var pp=(0,he.connect)(({exercise:ce})=>({exercise:ce}))(vp),yo={flex_box_center:"flex_box_center___zJWmM",flex_space_between:"flex_space_between___W2IOG",flex_box_vertical_center:"flex_box_vertical_center___xVzUb",flex_box_center_end:"flex_box_center_end___zjcQD",flex_box_column:"flex_box_column___UqhhE",ai_review:"ai_review___GqZQo",top_warp:"top_warp___P2TQq",under_review:"under_review___vLnly",btn_operate:"btn_operate___E8qFp",btn_review:"btn_review___rxH04",is_disabled:"is_disabled___wJPew",config_warp:"config_warp___dn_f1",config_title:"config_title___MI463",znpy:"znpy___ifOzh",pfbz_ts:"pfbz_ts___j5lp8",btns_pfbz:"btns_pfbz___bng1r",lable_name1:"lable_name1___cLVR4",h_lh_40:"h_lh_40___lNgKg",teacherList:"teacherList___ikneH",teacherItem:"teacherItem___xeda2",activeTeacherItem:"activeTeacherItem___bNhun",title_sty:"title_sty___FJZX2",btn_config:"btn_config___qXb8n",conSroreWrap:"conSroreWrap___Ugjtm",leftWrap:"leftWrap___xo0Rp",title_con:"title_con___IFC9a",questionItemWrap:"questionItemWrap___D6S_R",question_title:"question_title___VsIs5",activeItem:"activeItem___cOsu7",rightWrap:"rightWrap___u288N",titleTooltip:"titleTooltip___MPH1I",qtitle:"qtitle___Du75n",simple:"simple___iqQLx",title:"title___n1640",content:"content___TnfJ2",bottom:"bottom___KYXml",bottomitem:"bottomitem___eQp2L",left:"left___SFTJ_",right:"right___x_pZn"},Ep=z(13014),Ap="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAA7dJREFUWEftl01sVGUUht/33rktfzaIaBojVas1SDsdB6wExYQZM8bGhXGhYQlTFpWEHW7QyLhwoe40hqTakrgxkR0LG2kcDIaAlLbcGUrSYDREIxiCwUGmZX6+19xph5Qyc2fqDIkL7+Le5Ps55znnO+c79xALTyIh69tfL6w9Ndz9Z3nsXny3DUyva92wKvt94vE5Tz69Vzh+bhDChwLaSFyCOEZaY4GVge/OfPb0tUZA+uKpzjwVpRCFEBHUDvIGhXenDoc+4eY9qS2mqHFAJZg7HtIQmIQwZtEe6+zgySOJ7pwf0NY97iM5g6igCEXv21FtPWn3cXPcfdtIH9VjJYkswBOAxmzy2Nnh0PnnB92H5gqKqIgI4ClGl68s0kCySmssHvAAEkY6uDDwQQD2qFExJikG4jkJAR+B1wGs9VNIICPiBwLJgO0kC6b4uox5b14/378DwBuYHAklygK37rvYdmt2NgJjYgBjkJ6q5SkCsyBPikjaBsnO/t6zR95ksbxvscE1AZYqCw9ceFTIeyAxii8JegBgjsRpAsdFJp/cYJ/2i5OGABYDeWl77EpqfUt7W6acUrW84803DaAeZZXW/A/QkAde3u+uvnoN/bRlVzwCYytgmfEzX4R+qXZEDQGEd7spQUH/8+dN23G6JoY2XW5qDPTvu9h65e/sdUEragWgQ+uJ8ZHen5sK4AnbMpB+tYjiTho6FSEIQTg6dTj01T05glqW1zPfUAzUo6DWmoYBduydXnOjsKJiFgRajX78tCvjB9EQQDjuHpI06F/9OGk5D744MfRwtqlB6GXB5ZvZ7O1a7kPhBJzw+Ofd55oKUCoku92PRe0CUDELJIjk0cnh3l0k1XSAWgFWz3xDMVCPglpr/nsAz8Tdg5Dmf8PIPwB9Y8lOik5yamTj77UsWu783R4YcF8xRqOVr1bOkEjCIOmsajm+3B6hb+90ez5ngjTFoIAegkFI3QJWLhic4Btfy/5p1H1H5H5I91W3iCKV8n42LQ9ozeoT5UvHu5wyuUIPDD1FQcH00PsK6/08ZNnYebsZ2ZFQIPNb6lljECVKXcwLfpWPRAGgK2AdhMcqNjZVtJPwSvWXr3WEDtzdDS1s8i6eq7Nz24pGUcF4UF6PULkKVjNzvgWbFpEmlLYtO221BtKLj7IqwFKZJTffKmw3mveQgHD5ViSRFzhDIC3gvEWkW5yW9KlDGy9Vu5DK8usGWAq0/a3U/XM5axNQ/Et278zEEPPLzYhS4v2bTc3c8w/DyoAfDIR6+gAAAABJRU5ErkJggg==",iu=z(67294),hp=Object.defineProperty,Fp=Object.defineProperties,yp=Object.getOwnPropertyDescriptors,Ng=Object.getOwnPropertySymbols,Cp=Object.prototype.hasOwnProperty,Bp=Object.prototype.propertyIsEnumerable,Og=(ce,se,ae)=>se in ce?hp(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,c0=(ce,se)=>{for(var ae in se||(se={}))Cp.call(se,ae)&&Og(ce,ae,se[ae]);if(Ng)for(var ae of Ng(se))Bp.call(se,ae)&&Og(ce,ae,se[ae]);return ce},xm=(ce,se)=>Fp(ce,yp(se)),xd=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Sp=z(96486),Pp=({exercise:ce,globalSetting:se,user:ae,loading:_e,dispatch:pt})=>{var Ve,Dt,et,Be,Pe,Ht,vn,hn,xt,Gt,Bn,Dn,Fn,Wt;const{is_open_ai_review:Ut,ai_review_settings:Yt,unified_ai_setting:ea,ai_review_user_id:nn,exercise_author_id:zn,is_random:mn,unanswered_handling:pa,unanswered_comment:Pt}=ce==null?void 0:ce.commonHeader,Nt=(0,he.useParams)(),[Rt,Xt]=(0,a.useState)([]),[cn,tn]=(0,a.useState)(null),[Ja,ha]=(0,a.useState)(!1),[dt,Fa]=(0,a.useState)({is_open_ai_review:!1}),[ia,wu]=(0,a.useState)(!1),[Sa,Hn]=(0,a.useState)(!1),[Oa,tu]=(0,a.useState)(""),[Ka]=fe.default.useForm(),[Ba,La]=(0,a.useState)(1),[Zn,bn]=(0,a.useState)({combine:[],simple:[]}),[ca,Qn]=(0,a.useState)(null),[pn,Tn]=(0,a.useState)({}),[En,da]=(0,a.useState)({}),[Ha,au]=(0,a.useState)(!1),[Ya,Cr]=(0,a.useState)({}),[Zu,sa]=(0,a.useState)(!1),Ru=[{name:"\u51C6\u786E\u6027",content:"\u7B54\u6848\u662F\u5426\u51C6\u786E\u5730\u56DE\u7B54\u4E86\u9898\u76EE\uFF0C\u662F\u5426\u6B63\u786E\u8868\u8FBE\u6838\u5FC3\u77E5\u8BC6\u70B9\uFF0C\u662F\u5426\u6709\u6982\u5FF5\u6027\u9519\u8BEF",weight:60},{name:"\u5B8C\u6574\u6027",content:"\u7B54\u6848\u662F\u5426\u6DB5\u76D6\u6240\u6709\u5224\u5206\u5173\u952E\u8BCD\u548C\u6838\u5FC3\u77E5\u8BC6\u70B9\uFF0C\u662F\u5426\u6709\u91CD\u8981\u77E5\u8BC6\u70B9\u9057\u6F0F",weight:20},{name:"\u903B\u8F91\u6027",content:"\u7B54\u6848\u662F\u5426\u903B\u8F91\u6E05\u6670\u3001\u6761\u7406\u5206\u660E\uFF0C\u662F\u5426\u80FD\u591F\u6E05\u695A\u8868\u8FBE\u6838\u5FC3\u601D\u60F3",weight:10},{name:"\u521B\u65B0\u548C\u6DF1\u5EA6",content:"\u7B54\u6848\u662F\u5426\u5177\u6709\u521B\u65B0\u6027\u6216\u8F83\u9AD8\u7684\u601D\u7EF4\u6DF1\u5EA6\uFF0C\u662F\u5426\u80FD\u63D0\u4F9B\u72EC\u7ACB\u601D\u8003\u3001\u989D\u5916\u5206\u6790\u6216\u65B0\u9896\u89C1\u89E3",weight:10}],mr=[{name:"\u51C6\u786E\u6027",content:"\u7B54\u6848\u662F\u5426\u51C6\u786E\u5730\u56DE\u7B54\u4E86\u9898\u76EE\uFF0C\u662F\u5426\u6B63\u786E\u8868\u8FBE\u6838\u5FC3\u77E5\u8BC6\u70B9\uFF0C\u662F\u5426\u6709\u6982\u5FF5\u6027\u9519\u8BEF",weight:60},{name:"\u5B8C\u6574\u6027",content:"\u7B54\u6848\u662F\u5426\u6DB5\u76D6\u6240\u6709\u5224\u5206\u5173\u952E\u8BCD\u548C\u6838\u5FC3\u77E5\u8BC6\u70B9\uFF0C\u662F\u5426\u6709\u91CD\u8981\u77E5\u8BC6\u70B9\u9057\u6F0F",weight:20},{name:"\u903B\u8F91\u6027",content:"\u7B54\u6848\u662F\u5426\u903B\u8F91\u6E05\u6670\u3001\u6761\u7406\u5206\u660E\uFF0C\u662F\u5426\u80FD\u591F\u6E05\u695A\u8868\u8FBE\u6838\u5FC3\u601D\u60F3",weight:10},{name:"\u521B\u65B0\u548C\u6DF1\u5EA6",content:"\u7B54\u6848\u662F\u5426\u5177\u6709\u521B\u65B0\u6027\u6216\u8F83\u9AD8\u7684\u601D\u7EF4\u6DF1\u5EA6\uFF0C\u662F\u5426\u80FD\u63D0\u4F9B\u72EC\u7ACB\u601D\u8003\u3001\u989D\u5916\u5206\u6790\u6216\u65B0\u9896\u89C1\u89E3",weight:10}];(0,a.useEffect)(()=>{_e["exercise/getCommonHeader"]||gl()},[_e["exercise/getCommonHeader"]]);const gl=()=>xd(void 0,null,function*(){Fa({is_open_ai_review:Ut}),La(ea?1:2),ea?Ka.setFieldValue("ai_review_settings",(Yt==null?void 0:Yt.length)>0?Yt:Ru):yield Va(),Tl(),nn&&nn!=-1?(wu(!1),tn(nn)):nn==-1?wu(!0):tn(zn),pa==2?Hn(!1):(Hn(!0),tu(Pt))}),Tl=()=>xd(void 0,null,function*(){const Su=yield pt({type:"teachers/getList",payload:{id:Nt==null?void 0:Nt.coursesId,coursesId:Nt==null?void 0:Nt.coursesId,page:1}});return Xt(Su==null?void 0:Su.teacher_list),Su==null?void 0:Su.teacher_list}),mu=()=>{Fe.default.info({centered:!0,icon:null,width:440,title:"\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458",content:iu.createElement("div",{className:"tc"},iu.createElement("div",{className:"mb10"},"\u8BE5\u529F\u80FD\u5C5E\u4E8E\u8BD5\u7528\u9636\u6BB5\uFF0C\u5982\u679C\u60A8\u9700\u8981\u4F7F\u7528\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458~"),iu.createElement("img",{src:Ep,alt:"\u4E8C\u7EF4\u7801",width:182,height:182,style:{pointerEvents:"none",userSelect:"none"}})),okText:"\u6211\u77E5\u9053\u4E86"})},$u=()=>xd(void 0,null,function*(){if((dt==null?void 0:dt.is_open_ai_review)===!1)return jr({is_open_ai_review:!1});let Su=Ka.getFieldValue("ai_review_settings");if(Ba==1){if(!(0,de.BR)(Su))return}else{const Pu=[];for(const[ci,Ho]of Object.entries(pn)){if(!(En!=null&&En[ci])){pe.ZP.warning("\u8BF7\u5148\u5B8C\u5584\u9898\u76EE\u7684\u8BC4\u5206\u6807\u51C6\uFF01");return}Pu.push({exercise_question_id:ci,list:Ho})}Su=Pu}yield Ka.validateFields(),jr(xm(c0({},dt),{unified_ai_setting:Ba==1,ai_review_settings:Su,ai_review_user_id:ia?-1:cn,unanswered_handling:Sa?1:2,unanswered_comment:Sa?Oa:""}))}),jr=Su=>xd(void 0,null,function*(){ha(!0);const Pu=yield(0,Ce.ZP)(`/api/exercises/${Nt==null?void 0:Nt.categoryId}/ai_review_settings.json`,{method:"post",body:Su});(Pu==null?void 0:Pu.status)===0&&(Su!=null&&Su.is_open_ai_review?Fe.default.confirm({title:"\u63D0\u793A",icon:null,width:390,closable:!0,centered:!0,okText:"\u7ACB\u5373\u667A\u80FD\u8BC4\u9605",cancelText:"\u4E0B\u6B21\u518D\u8BF4",onOk:()=>xd(void 0,null,function*(){const ci=yield(0,Ce.ZP)("/api/exercise_resubmits/check_resubmit.json",{method:"get",params:{exercise_id:Nt.categoryId}});if((ci==null?void 0:ci.status)===-21){Fe.default.confirm({title:"\u5F53\u524D\u8BD5\u5377\u65E0\u7B80\u7B54\u9898",icon:null,width:400,closable:!0,centered:!0,autoFocusButton:null,okText:"\u6211\u77E5\u9053\u4E86",cancelButtonProps:{style:{display:"none"}},onOk:()=>xd(void 0,null,function*(){}),content:iu.createElement("div",null,iu.createElement("div",{style:{color:"#E30000",fontSize:"14px"}},"\u667A\u80FD\u8BC4\u9605\u76EE\u524D\u4EC5\u652F\u6301\u7B80\u7B54\u9898\uFF08\u542B\u7EC4\u5408\u9898\u4E2D\u7684\u7B80\u7B54\u9898\uFF09\u3002"),iu.createElement("div",{style:{color:"#333330",fontSize:"14px"}},"\u5F53\u524D\u8003\u8BD5\u6CA1\u6709\u7B80\u7B54\u9898\uFF0C\u6240\u4EE5\u65E0\u987B\u8FDB\u884C\u667A\u80FD\u8BC4\u9605\u3002"))});return}pt({type:"exercise/setActionTabs",payload:{key:"\u5728\u7EBF\u8003\u8BD5\u667A\u80FD\u8BC4\u9605"}})}),content:iu.createElement("div",null,"\u4FDD\u5B58\u6210\u529F\uFF01\u73B0\u5728\u5C31\u5F00\u59CB\u667A\u80FD\u8BC4\u9605\uFF1F")}):pe.ZP.success("\u4FDD\u5B58\u6210\u529F\uFF01"),Eu()),ha(!1)}),Eu=()=>{pt({type:"exercise/getCommonHeader",payload:{categoryId:Nt==null?void 0:Nt.categoryId,coursesId:Nt==null?void 0:Nt.coursesId,category:Nt==null?void 0:Nt.categoryId}})},wr=()=>Sp.isEqual({ai_review_settings:Yt,ai_review_user_id:nn,is_open_ai_review:Ut,unified_ai_setting:ea},{ai_review_settings:Ka.getFieldValue("ai_review_settings"),ai_review_user_id:ia?-1:cn,is_open_ai_review:dt==null?void 0:dt.is_open_ai_review,unified_ai_setting:Ba==1}),Va=()=>xd(void 0,null,function*(){var Su,Pu,ci,Ho,ji,fc,qa;sa(!0);const bl=yield(0,Ce.ZP)(`/api/exercises/${Nt==null?void 0:Nt.categoryId}.json`,{method:"get"});if(sa(!1),bl.status==0){let lo=(Pu=(Su=bl==null?void 0:bl.exercise_question_types)==null?void 0:Su.find(Zl=>(Zl==null?void 0:Zl.question_type)==4))==null?void 0:Pu.items;const Yu=(Ho=(ci=bl==null?void 0:bl.exercise_question_types)==null?void 0:ci.find(Zl=>(Zl==null?void 0:Zl.question_type)==7))==null?void 0:Ho.items;let tl=0,_r=[];_r=(ji=Yu==null?void 0:Yu.map((Zl,Bs)=>{var Di,Us;return(Us=(Di=Zl==null?void 0:Zl.sub_exercise_questions)==null?void 0:Di.map(($c,Ln)=>($c==null?void 0:$c.question_type)==4?xm(c0({},$c),{index:Bs+1,jdex:Ln+1,parentTitle:Zl==null?void 0:Zl.question_title,isCombine:!0}):null))==null?void 0:Us.filter($c=>$c)}))==null?void 0:ji.flat(),console.log("allShortQuestions",_r),(lo==null?void 0:lo.length)>0?(tl=(fc=lo==null?void 0:lo[0])==null?void 0:fc.question_id,Cr(c0({index:1},(lo==null?void 0:lo[0])||{}))):(_r==null?void 0:_r.length)>0&&(tl=(qa=_r==null?void 0:_r[0])==null?void 0:qa.question_id,Cr(c0({},(_r==null?void 0:_r[0])||{}))),Qn(tl),bn({combine:_r,simple:lo}),console.log("allShortQuestions--simple",_r,lo);const Io={},os={};[...lo||[],..._r||[]].forEach(Zl=>{var Bs;Io[Zl==null?void 0:Zl.question_id]=((Bs=Zl==null?void 0:Zl.ai_review_settings)==null?void 0:Bs.length)>0?Zl==null?void 0:Zl.ai_review_settings:mr,os[Zl==null?void 0:Zl.question_id]=!0}),Tn(Io),da(os),Ka.setFieldValue("ai_review_settings",Io==null?void 0:Io[tl])}}),Nu=(Su,Pu)=>xd(void 0,null,function*(){if(ca){const ci=c0({},pn);ci[ca]=Pu==null?void 0:Pu.ai_review_settings,Tn(ci);const Ho=(0,de.BR)(Pu==null?void 0:Pu.ai_review_settings,!1);da(ji=>xm(c0({},ji),{[ca]:Ho})),yield Ka.validateFields()}}),oo=Su=>xd(void 0,null,function*(){try{yield Ka.resetFields();const Pu=pn[Su]||[];console.log("settings--questionId",Su,Pu);const ci=Pu.flatMap((Ho,ji)=>[[ji,"name"],[ji,"content"],[ji,"weight"]]).map(Ho=>["ai_review_settings",...Ho]);Ka.setFieldValue("ai_review_settings",Pu),yield Ka.validateFields(ci)}catch(Pu){console.log("errorInfo",Pu)}});return iu.createElement(jt.Z,{spinning:_e["exercise/getCommonHeader"]},iu.createElement("div",{className:yo.ai_review},iu.createElement("div",{className:yo.config_warp},iu.createElement(oe.Z,{align:"middle"},iu.createElement(Ne.Z,{style:{color:"#000"},value:dt==null?void 0:dt.is_open_ai_review,onChange:Su=>{var Pu;if(!((Pu=ae==null?void 0:ae.userInfo)!=null&&Pu.has_big_model_permission))return mu(),!1;Fa(xm(c0({},dt),{is_open_ai_review:Su}))}}),iu.createElement("b",{className:"c-grey-333 ml10"},"\u7B80\u7B54\u9898\u667A\u80FD\u8BC4\u9605"),iu.createElement("span",{className:"c-grey-999"},"\uFF08\u5F00\u542F\u540E\uFF0C\u5728\u8BD5\u5377\u8BC4\u9605\u9875\u9762\u5C31\u53EF\u4EE5\u4F7F\u7528\u667A\u80FD\u8BC4\u9605\u529F\u80FD\uFF0C\u8BA9AI\u52A9\u6559\u5E2E\u52A9\u4F60\u6253\u5206\u548C\u5199\u8BC4\u8BED\uFF09"),iu.createElement("a",{target:"_blank",href:"https://www.educoder.net/forums/40205"},"\u64CD\u4F5C\u8BF4\u660E")),(dt==null?void 0:dt.is_open_ai_review)&&iu.createElement(iu.Fragment,null,iu.createElement("div",{className:`${yo.config_title} mt30`},"\u8BBE\u7F6E\u8BC4\u5206\u6807\u51C6"),iu.createElement("div",{className:yo.pfbz_ts},iu.createElement(Ie.ZP.Group,{onChange:Su=>xd(void 0,null,function*(){La(Su.target.value),Su.target.value==1?Ka.setFieldValue("ai_review_settings",(Yt==null?void 0:Yt.length)>0&&ea?Yt:Ru):yield Va()}),value:Ba,options:[{value:1,label:"\u7EDF\u4E00\u8BC4\u5206\u6807\u51C6",style:{marginRight:44}},{value:2,label:"\u6BCF\u9898\u5355\u72EC\u8BBE\u5B9A"}]})),Ba==1&&iu.createElement(iu.Fragment,null,iu.createElement("div",{className:yo.pfbz_ts},iu.createElement("div",{style:{color:"#333"}},"\u63D0\u793A\uFF1A\u53C2\u8003\u7B54\u6848\u548C\u9898\u76EE\u89E3\u6790\u8D8A\u5B8C\u5584\uFF0CAI\u667A\u80FD\u8BC4\u9605\u5C31\u8D8A\u7CBE\u51C6~"),iu.createElement("div",{className:"flex"},iu.createElement("div",{className:yo.btns_pfbz,onClick:()=>{pt({type:"exercise/setActionTabs",payload:{key:"\u6D4B\u8BD5AI\u8BC4\u5206",isUnify:!0,questionDetail:{ai_review_settings:Ka.getFieldValue("ai_review_settings")}}})}},iu.createElement("img",{src:ud.Z}),"\u6D4B\u8BD5AI\u8BC4\u5206"))),iu.createElement(fe.default,{form:Ka,colon:!1,style:{background:"#F6F7F9"}},iu.createElement(fe.default.List,{name:"ai_review_settings"},(Su,{add:Pu,remove:ci})=>Su.map((Ho,ji)=>{var fc;return iu.createElement(oe.Z,{key:Ho.key,style:{padding:"5px 14px 5px 30px"}},iu.createElement(ve.Z,{className:yo.lable_name1},"\u8BC4\u5206\u70B9"),iu.createElement(ve.Z,null,iu.createElement(fe.default.Item,{className:"ml10",name:[Ho.name,"name"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC4\u5206\u70B9"}]},iu.createElement(Le.default,{onChange:qa=>{Ka.setFieldValue([Ho.name,"content"],qa.target.value)},placeholder:"\u8BF7\u8F93\u5165\u6700\u591A10\u5B57\u7B26",size:"large",style:{width:164},maxLength:10,className:"mr20"}))),iu.createElement(ve.Z,{className:yo.lable_name1},"\u8BC4\u5206\u6807\u51C6"),iu.createElement(ve.Z,null,iu.createElement(fe.default.Item,{className:"ml10",name:[Ho.name,"content"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC4\u5206\u6807\u51C6"}]},iu.createElement(Le.default,{onChange:qa=>{Ka.setFieldValue([Ho.name,"content"],qa.target.value)},placeholder:"\u8BF7\u8F93\u5165\u8BC4\u5206\u6807\u51C6",size:"large",style:{width:550},className:"mr20",maxLength:500}))),iu.createElement(ve.Z,{className:yo.lable_name1},"\u6743\u91CD"),iu.createElement(ve.Z,null,iu.createElement(fe.default.Item,{className:"ml10",name:[Ho.name,"weight"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6743\u91CD"},{pattern:/^(?!0(\.0+)?$)(\d+(\.\d)?)$/,message:"\u6700\u591A\u4FDD\u7559\u4E00\u4F4D\u5C0F\u6570"}]},iu.createElement(Re.Z,{value:Ka.getFieldValue([Ho.name,"weight"]),onChange:qa=>{Number.isInteger(qa)||Ka.setFieldValue([Ho.name,"weight"],parseFloat(qa).toFixed(2))},size:"large",addonAfter:"%",placeholder:"\u8BF7\u8F93\u5165\u6743\u91CD",min:.01,step:1,max:100,style:{width:"134px"}}))),iu.createElement(oe.Z,{className:(fc=yo)==null?void 0:fc.h_lh_40},iu.createElement(ve.Z,null,iu.createElement("i",{className:"iconfont icon-tianjiatimu ml20 current",style:{color:"#00B187"},onClick:()=>{if(Su.length>=10)return pe.ZP.info("\u6700\u591A\u53EA\u80FD\u6DFB\u52A010\u4E2A\u8BC4\u5206\u70B9");Pu()}})),ji>0&&iu.createElement(ve.Z,null,iu.createElement("i",{className:"iconfont icon-shanjian1 ml10 current",style:{color:"#E30000"},onClick:()=>{ci(Ho.name)}}))))})))),Ba==2&&iu.createElement(jt.Z,{spinning:Zu},iu.createElement("div",{className:yo.conSroreWrap},iu.createElement("div",{className:yo.leftWrap},((Ve=Zn==null?void 0:Zn.simple)==null?void 0:Ve.length)>0&&iu.createElement("div",{style:{marginBottom:"5px"}},iu.createElement("div",{className:yo.title_con},"\u3010\u7B80\u7B54\u9898\u3011"),iu.createElement("div",null,(Dt=Zn==null?void 0:Zn.simple)==null?void 0:Dt.map((Su,Pu)=>iu.createElement("div",{className:`${yo.questionItemWrap} ${ca==(Su==null?void 0:Su.question_id)?yo.activeItem:""}`,key:Su==null?void 0:Su.question_id,onClick:()=>xd(void 0,null,function*(){Qn(Su==null?void 0:Su.question_id),Cr(c0({index:Pu+1},Su||{})),yield oo(Su==null?void 0:Su.question_id)})},iu.createElement(Ae.Z,{title:iu.createElement(uu.Z,{value:Su==null?void 0:Su.question_title}),color:"#fff",placement:"left",overlayClassName:yo.titleTooltip},iu.createElement("span",{className:`${yo.question_title}`},iu.createElement(uu.Z,{value:Pu+1+"\u3001"+(Su==null?void 0:Su.question_title),showTextOnly:!0}))),!(En!=null&&En[Su==null?void 0:Su.question_id])&&iu.createElement(Ae.Z,{title:"\u5F53\u524D\u9898\u76EE\u7684\u8BC4\u5206\u6807\u51C6\u8BBE\u7F6E\u4E0D\u5B8C\u5584\u3002"},iu.createElement("i",{className:"iconfont icon-tishi12 font14 c-orange current",style:{transform:"scaleY(-1)",color:"#E99237",marginRight:"5px"}})))))),((et=Zn==null?void 0:Zn.combine)==null?void 0:et.length)>0&&iu.createElement("div",{style:{marginBottom:"5px"}},iu.createElement("div",{className:yo.title_con},"\u3010\u7EC4\u5408\u9898\u3011"),iu.createElement("div",null,(Be=Zn==null?void 0:Zn.combine)==null?void 0:Be.map((Su,Pu)=>iu.createElement("div",{key:Su==null?void 0:Su.question_id,onClick:()=>xd(void 0,null,function*(){Qn(Su==null?void 0:Su.question_id),Cr(c0({},Su||{})),yield oo(Su==null?void 0:Su.question_id)}),className:`${yo.questionItemWrap} ${ca==(Su==null?void 0:Su.question_id)?yo.activeItem:""}`},iu.createElement(Ae.Z,{title:iu.createElement(uu.Z,{value:Su==null?void 0:Su.question_title}),color:"#fff",placement:"left",overlayClassName:yo.titleTooltip},iu.createElement("span",{className:`${yo.question_title}`},iu.createElement(uu.Z,{value:(Su==null?void 0:Su.index)+"."+(Su==null?void 0:Su.jdex)+"\u3001"+(Su==null?void 0:Su.question_title),showTextOnly:!0}))),!(En!=null&&En[Su==null?void 0:Su.question_id])&&iu.createElement(Ae.Z,{title:"\u5F53\u524D\u9898\u76EE\u7684\u8BC4\u5206\u6807\u51C6\u8BBE\u7F6E\u4E0D\u5B8C\u5584\u3002"},iu.createElement("i",{className:"iconfont icon-tishi12 font14 c-orange current",style:{transform:"scaleY(-1)",color:"#E99237",marginRight:"5px"}}))))))),iu.createElement("div",{className:yo.rightWrap},iu.createElement("div",{className:yo.pfbz_ts},iu.createElement("div",{style:{color:"#333"}},"\u63D0\u793A\uFF1A\u53C2\u8003\u7B54\u6848\u548C\u9898\u76EE\u89E3\u6790\u8D8A\u5B8C\u5584\uFF0CAI\u667A\u80FD\u8BC4\u9605\u5C31\u8D8A\u7CBE\u51C6~"),iu.createElement("div",{className:"flex"},iu.createElement("div",{className:yo.btns_pfbz,onClick:()=>{au(!0)}},iu.createElement("img",{src:Ap,width:16}),"\u9898\u76EE\u8BE6\u60C5"),iu.createElement("div",{className:yo.btns_pfbz,onClick:()=>{pt({type:"exercise/setActionTabs",payload:{key:"\u6D4B\u8BD5AI\u8BC4\u5206",isUnify:!1,questionId:ca,questionDetail:{ai_review_settings:Ka.getFieldValue("ai_review_settings")}}})}},iu.createElement("img",{src:ud.Z}),"\u6D4B\u8BD5AI\u8BC4\u5206"))),iu.createElement(fe.default,{form:Ka,colon:!1,onValuesChange:Nu,style:{background:"#F6F7F9",maxHeight:"480px",overflowY:"auto"}},iu.createElement("div",{className:yo.pfbz_ts,style:{display:"flex",alignItems:"center",justifyContent:"flex-start"}},iu.createElement("div",{className:yo.lable_name1,style:{width:"164px"}},"\u8BC4\u5206\u70B9"),iu.createElement("div",{className:yo.lable_name1,style:{width:"425px",marginLeft:"20px"}},"\u8BC4\u5206\u6807\u51C6"),iu.createElement("div",{className:yo.lable_name1,style:{width:"100px",marginLeft:"20px"}},"\u6743\u91CD (%)"),iu.createElement("div",{className:yo.lable_name1,style:{marginLeft:"20px"}},"\u64CD\u4F5C")),iu.createElement(fe.default.List,{name:"ai_review_settings"},(Su,{add:Pu,remove:ci})=>Su.map((Ho,ji)=>{var fc;return iu.createElement(oe.Z,{key:Ho.key,style:{padding:"5px 14px 5px 30px"}},iu.createElement(ve.Z,null,iu.createElement(fe.default.Item,{name:[Ho.name,"name"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC4\u5206\u70B9"}]},iu.createElement(Le.default,{onChange:qa=>{Ka.setFieldValue([Ho.name,"name"],qa.target.value)},placeholder:"\u8BF7\u8F93\u5165\u6700\u591A10\u5B57\u7B26",size:"large",style:{width:165},maxLength:10,className:"mr20"}))),iu.createElement(ve.Z,null,iu.createElement(fe.default.Item,{name:[Ho.name,"content"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC4\u5206\u6807\u51C6"}]},iu.createElement(Le.default,{onChange:qa=>{Ka.setFieldValue([Ho.name,"content"],qa.target.value)},placeholder:"\u8BF7\u8F93\u5165\u8BC4\u5206\u6807\u51C6",size:"large",style:{width:425},className:"mr20",maxLength:50}))),iu.createElement(ve.Z,null,iu.createElement(fe.default.Item,{name:[Ho.name,"weight"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6743\u91CD"},{pattern:/^(?!0(\.0+)?$)(\d+(\.\d)?)$/,message:"\u6700\u591A\u4FDD\u7559\u4E00\u4F4D\u5C0F\u6570"},({getFieldValue:qa})=>({validator(bl,lo){return(qa("ai_review_settings")||[]).reduce((_r,Io)=>_r+(Number(Io.weight)||0),0)===100||!lo||!/^(?!0(\.0+)?$)(\d+(\.\d)?)$/.test(lo)?Promise.resolve():Promise.reject(new Error("\u6743\u91CD\u603B\u548C\u5E94\u4E3A100%"))}})]},iu.createElement(Re.Z,{value:Ka.getFieldValue([Ho.name,"weight"]),onChange:qa=>{Number.isInteger(qa)||Ka.setFieldValue([Ho.name,"weight"],parseFloat(qa).toFixed(2))},size:"large",addonAfter:"%",placeholder:"\u8BF7\u8F93\u5165\u6743\u91CD",min:.01,step:1,max:100,style:{width:"100px"}}))),iu.createElement(ve.Z,null,iu.createElement(oe.Z,{className:(fc=yo)==null?void 0:fc.h_lh_40},iu.createElement(ve.Z,{style:{marginLeft:"20px"}},iu.createElement("i",{className:"iconfont icon-tianjiatimu current",style:{color:"#00B187"},onClick:()=>{if(Su.length>=10)return pe.ZP.info("\u6700\u591A\u53EA\u80FD\u6DFB\u52A010\u4E2A\u8BC4\u5206\u70B9");Pu({name:"",content:"",weight:""})}})),ji>0&&iu.createElement(ve.Z,{style:{marginLeft:"20px"}},iu.createElement("i",{className:"iconfont icon-shanjian1 current",style:{color:"#E30000"},onClick:()=>{ci(Ho.name)}})))))})))))),iu.createElement("div",{className:`${yo.config_title} mt30`},"\u672A\u4F5C\u7B54\u7684\u5904\u7406\u65B9\u5F0F"),iu.createElement("div",{className:yo.znpy},iu.createElement(Ie.ZP,{style:{color:"#000"},checked:!Sa,onChange:Su=>{Hn(!Sa)}},"\u672A\u4F5C\u7B54\u4E0D\u8BC4\u9605",iu.createElement("span",{style:{color:"#666"}},"\uFF08\u5BF9\u4E8E\u5B66\u751F\u672A\u4F5C\u7B54\u7684\u7B80\u7B54\u9898\uFF0C\u4E0D\u8FDB\u884C\u8BC4\u9605\uFF0C\u9700\u8981\u6559\u5E08\u4EBA\u5DE5\u8FDB\u884C\u8BC4\u9605\uFF09"))),iu.createElement("div",{className:yo.znpy},iu.createElement(Ie.ZP,{style:{color:"#000"},checked:Sa,onChange:Su=>{Hn(!Sa)}},"\u672A\u4F5C\u7B54\u7ED90\u5206",iu.createElement("span",{style:{color:"#666"}},"\uFF08\u5BF9\u4E8E\u5B66\u751F\u672A\u4F5C\u7B54\u7684\u7B80\u7B54\u9898\uFF0C\u76F4\u63A5\u7ED90\u5206\uFF0C\u5E76\u4E14\u53EF\u4EE5\u8BBE\u7F6E\u7EDF\u4E00\u7684\u8BC4\u8BED\uFF09"))),Sa&&iu.createElement("div",{style:{padding:"5px 30px 5px 30px",backgroundColor:"rgb(246, 247, 249)"}},iu.createElement(Le.default.TextArea,{value:Oa,onChange:Su=>{tu(Su.target.value)},placeholder:"\u5BF9\u4E8E\u5B66\u751F\u672A\u4F5C\u7B54\u7684\u7B80\u7B54\u9898\uFF0C\u4F60\u53EF\u4EE5\u5728\u8FD9\u91CC\u8BBE\u7F6E\u7EDF\u4E00\u7684\u8BC4\u8BED~",rows:3,size:"large"})),iu.createElement("div",{className:`${yo.config_title} mt30`},"\u9009\u62E9\u8BC4\u9605\u8EAB\u4EFD"),iu.createElement("div",{className:yo.znpy,style:{border:0}},iu.createElement(Ie.ZP,{style:{color:"#000"},checked:!ia,onChange:Su=>{if(wu(!ia),nn&&nn!==-1)return tn(nn);tn(zn)}},"\u9009\u62E9\u4E00\u540D\u6559\u5E08",iu.createElement("span",{style:{color:"#666"}},"\uFF08\u5728\u5B66\u751F\u67E5\u770B\u8BC4\u9605\u4FE1\u606F\u65F6\uFF0C\u6240\u663E\u793A\u7684\u8BC4\u9605\u8005\u8EAB\u4EFD\u4E3A\u4EE5\u4E0B\u6240\u9009\u6559\u5E08\uFF09"))),!ia&&(Rt==null?void 0:Rt.length)>0&&iu.createElement("div",{className:yo.teacherList},Rt==null?void 0:Rt.map((Su,Pu)=>iu.createElement("div",{className:`${yo.teacherItem} ${(Su==null?void 0:Su.user_id)==cn?yo.activeTeacherItem:""}`,key:Pu,onClick:()=>tn(Su==null?void 0:Su.user_id)},Su==null?void 0:Su.name))),iu.createElement("div",{className:yo.znpy},iu.createElement(Ie.ZP,{style:{color:"#000"},checked:ia,onChange:Su=>{wu(!ia)}},"AI\u667A\u80FD\u4F53",iu.createElement("span",{style:{color:"#666"}},"\uFF08\u5728\u5B66\u751F\u67E5\u770B\u8BC4\u9605\u4FE1\u606F\u65F6\uFF0C\u6240\u663E\u793A\u7684\u8BC4\u9605\u8005\u8EAB\u4EFD\u4E3AAI\u667A\u80FD\u4F53\uFF09")))),iu.createElement(me.ZP,{loading:Ja,type:"primary",size:"large",style:{width:"138px",marginTop:"20px"},onClick:()=>$u()},"\u4FDD\u5B58")),iu.createElement(Fe.default,{width:800,bodyStyle:{maxHeight:"calc(100vh - 200px)",overflowY:"auto"},centered:!0,title:"\u9898\u76EE\u8BE6\u60C5",open:Ha,destroyOnClose:!0,onCancel:()=>{au(!1)},footer:null},(Ya==null?void 0:Ya.isCombine)&&iu.createElement(uu.Z,{className:yo.qtitle,value:(Ya==null?void 0:Ya.index)+`\u3001\u3010\u7EC4\u5408\u9898\u3011${Ya==null?void 0:Ya.parentTitle}`}),(Ya==null?void 0:Ya.isCombine)&&iu.createElement(uu.Z,{className:yo.qtitle,value:(Ya==null?void 0:Ya.index)+"."+(Ya==null?void 0:Ya.jdex)+`\u3001\u3010\u7B80\u7B54\u9898\u3011${Ya==null?void 0:Ya.question_title}`}),!(Ya!=null&&Ya.isCombine)&&iu.createElement(uu.Z,{className:yo.qtitle,value:(Ya==null?void 0:Ya.index)+`\u3001\u3010\u7B80\u7B54\u9898\u3011${Ya==null?void 0:Ya.question_title}`}),iu.createElement("div",{className:yo.simple},iu.createElement("div",{className:yo.title},"\u53C2\u8003\u7B54\u6848"),iu.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Pe=Ya==null?void 0:Ya.answer_texts)!=null&&Pe[0]?iu.createElement(uu.Z,{className:yo.content,value:(Ht=Ya==null?void 0:Ya.answer_texts)==null?void 0:Ht[0]}):iu.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")),iu.createElement("div",{className:"mt20 "},iu.createElement("span",{className:yo.title,style:{color:"#3061D0"}},"\u5224\u5206\u65B9\u5F0F"),iu.createElement("span",{style:{color:"#000",marginLeft:10,fontSize:"16px"}},Ya!=null&&Ya.use_keywords?"\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206":"\u624B\u52A8\u5224\u5206"))),iu.createElement("div",{className:yo.bottom},iu.createElement("div",{className:`${yo.bottomitem} mb30`},iu.createElement("span",{className:yo.left},"\u89E3\u6790"),iu.createElement("span",{className:yo.right},Ya!=null&&Ya.analysis?iu.createElement(uu.Z,{value:Ya==null?void 0:Ya.analysis}):iu.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),iu.createElement("div",{className:`${yo.bottomitem} mb30`},iu.createElement("span",{className:yo.left},"\u96BE\u5EA6"),iu.createElement("span",{className:yo.right},(Ya==null?void 0:Ya.difficulty)===1?"\u7B80\u5355":(Ya==null?void 0:Ya.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),iu.createElement("div",{className:yo.bottomitem},iu.createElement("span",{className:yo.left},"\u77E5\u8BC6\u70B9"),iu.createElement(Ae.Z,{title:((vn=Ya==null?void 0:Ya.tag_discipline_names)==null?void 0:vn.length)<=0||((hn=Ya==null?void 0:Ya.tag_discipline_names)==null?void 0:hn.length)==1&&["-"].includes(Ya==null?void 0:Ya.tag_discipline_names[0])?"\u6682\u672A\u8BBE\u7F6E~":(Gt=(xt=Ya==null?void 0:Ya.tag_discipline_names)==null?void 0:xt.join("\uFF1B"))==null?void 0:Gt.toString()},iu.createElement("span",{className:yo.right},((Bn=Ya==null?void 0:Ya.tag_discipline_names)==null?void 0:Bn.length)<=0?iu.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"):((Dn=Ya==null?void 0:Ya.tag_discipline_names)==null?void 0:Dn.length)==1&&["-"].includes(Ya==null?void 0:Ya.tag_discipline_names[0])?iu.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"):(Wt=(Fn=Ya==null?void 0:Ya.tag_discipline_names)==null?void 0:Fn.join("\uFF1B"))==null?void 0:Wt.toString())))))))};var Dp=(0,he.connect)(({exercise:ce,globalSetting:se,loading:ae,user:_e})=>({exercise:ce,globalSetting:se,loading:ae.effects,user:_e}))(Pp),Im=z(67294);const bp=({exercise:ce,globalSetting:se,dispatch:ae})=>{var _e,pt;const Ve=[!((0,On.dE)()||(_e=ce==null?void 0:ce.commonHeader)!=null&&_e.is_random||((pt=ce==null?void 0:ce.commonHeader)==null?void 0:pt.exercise_type)==2)&&{label:"\u667A\u80FD\u8BC4\u9605",key:"1",element:Im.createElement(Dp,null)},!((0,On.dE)()||!(0,On.$O)())&&{label:"\u9519\u9898\u63A8\u9001",key:"0",element:Im.createElement(pp,null)}].filter(Dt=>!!Dt);return(0,a.useEffect)(()=>(ae({type:"globalSetting/footerToggle",payload:!1}),()=>{ae({type:"globalSetting/footerToggle",payload:!0})}),[]),Im.createElement("div",{style:{paddingBottom:"50px"}},Im.createElement(q0.Z,{dataSource:Ve,style:{marginBottom:52}}))};var wp=(0,he.connect)(({exercise:ce,globalSetting:se})=>({exercise:ce,globalSetting:se}))(bp),xp=z(29916),ma=z(67294),Ip=Object.defineProperty,Lp=Object.defineProperties,Np=Object.getOwnPropertyDescriptors,Lm=Object.getOwnPropertySymbols,Mg=Object.prototype.hasOwnProperty,Rg=Object.prototype.propertyIsEnumerable,Tg=(ce,se,ae)=>se in ce?Ip(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,_c=(ce,se)=>{for(var ae in se||(se={}))Mg.call(se,ae)&&Tg(ce,ae,se[ae]);if(Lm)for(var ae of Lm(se))Rg.call(se,ae)&&Tg(ce,ae,se[ae]);return ce},K0=(ce,se)=>Lp(ce,Np(se)),Op=(ce,se)=>{var ae={};for(var _e in ce)Mg.call(ce,_e)&&se.indexOf(_e)<0&&(ae[_e]=ce[_e]);if(ce!=null&&Lm)for(var _e of Lm(ce))se.indexOf(_e)<0&&Rg.call(ce,_e)&&(ae[_e]=ce[_e]);return ae},T0=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Mp=ce=>{var se=ce,{exercise:ae,globalSetting:_e,loading:pt,dispatch:Ve,classroomList:Dt,user:et,match:Be}=se,Pe=Op(se,["exercise","globalSetting","loading","dispatch","classroomList","user","match"]),Ht,vn,hn,xt,Gt,Bn,Dn,Fn,Wt,Ut,Yt,ea,nn,zn,mn,pa,Pt,Nt;const Rt=(0,he.useParams)(),[Xt]=(0,he.useSearchParams)(),cn=(0,he.useLocation)(),[tn,Ja]=(0,a.useState)([]),{exerciseList:ha,commonHeader:dt,checkDomain:Fa,workSetting:ia,saveExerciseDownUsers:wu,course_groups:Sa}=ae,[Hn,Oa]=(0,a.useState)(null),[tu,Ka]=(0,a.useState)(Ge()(new Date).valueOf()),[Ba,La]=(0,a.useState)(),[Zn,bn]=(0,a.useState)(!1),[ca,Qn]=(0,a.useState)(1),[pn,Tn]=(0,a.useState)(!1),[En,da]=(0,a.useState)({name:"",id:"",list:[]}),[Ha,au]=(0,a.useState)({}),{userInfo:Ya}=et;Rt.category=Xt.get("category_id");const Cr=!Fa||Fa&&((Ht=Ya==null?void 0:Ya.course)==null?void 0:Ht.course_identity)<3,Zu=(0,a.useRef)(Date.now()),sa=(0,a.useRef)(),[Ru,mr]=(0,a.useState)({});(0,a.useEffect)(()=>{(0,On.Rm)()&&Ve({type:"classroomList/getAssistantPermissions",payload:{course_id:Rt.coursesId}})},[(vn=et==null?void 0:et.userInfo)==null?void 0:vn.username]),(0,a.useEffect)(()=>{new URLSearchParams(cn.search).get("tabs")==="3"&&Eu(),(0,lr.hs)(Ve)},[]),(0,a.useEffect)(()=>{ae.actionTabs.key=="\u8C03\u6574tabs\u9009\u4E2D"&&Oa(3)},[ae.actionTabs.key]),(0,a.useEffect)(()=>(clearInterval(sa.current),(0,On.G5)()&&(dt==null?void 0:dt.exercise_status)===2&&(dt!=null&&dt.enable_monitor)&&(sa.current=setInterval(()=>{mu()},5*1e3)),()=>{clearInterval(sa.current)}),[et.userInfo,dt==null?void 0:dt.exercise_status]),(0,a.useEffect)(()=>{gl();const qa=sessionStorage.getItem("illegalEntry");sessionStorage.getItem("illegalEntry")&&(sessionStorage.removeItem("illegalEntry"),Fe.default.info({title:"\u63D0\u793A",centered:!0,width:600,content:ma.createElement("div",null,"\u5728\u7EBF\u8003\u8BD5\u7981\u6B62\u4F7F\u7528\u94FE\u63A5\u76F4\u63A5\u8BBF\u95EE\u7B54\u9898\u9875\u9762\uFF0C\u8BF7\u4F7F\u7528\u4E0B\u9762\u4E24\u79CD\u6B63\u5E38\u65B9\u5F0F\u8FDB\u5165\u8003\u8BD5\u7B54\u9898\u9875\u9762\u3002",ma.createElement("br",null),"1\u3001\u5728",ma.createElement("span",{className:"c-red blod"},"\u8003\u8BD5\u5217\u8868"),"\u9875\u9762\u4E2D\uFF0C\u70B9\u51FB\u201C",ma.createElement("span",{className:"c-blue blod"},"\u5F00\u59CB\u8003\u8BD5"),"\u201D\u6216\u201C",ma.createElement("span",{className:"c-blue blod"},"\u7EE7\u7EED\u8003\u8BD5"),"\u201D\u6309\u94AE\u8FDB\u5165\u8003\u8BD5\u7B54\u9898\u9875\u9762\u3002",ma.createElement("br",null),"2\u3001\u5728",ma.createElement("span",{className:"c-red blod"},"\u8003\u8BD5\u8BE6\u60C5"),"\u9875\u9762\u4E2D\uFF0C\u70B9\u51FB\u201C",ma.createElement("span",{className:"c-blue blod"},"\u5F00\u59CB\u8003\u8BD5"),"\u201D\u6216\u201C",ma.createElement("span",{className:"c-blue blod"},"\u7EE7\u7EED\u8003\u8BD5"),"\u201D\u6309\u94AE\u8FDB\u5165\u8003\u8BD5\u7B54\u9898\u9875\u9762\u3002",ma.createElement("br",null),qa==="allowRouter"&&ma.createElement(ma.Fragment,null,"3\u3001",ma.createElement("span",{className:"c-red blod"},"\u4E25\u7981\u67E5\u770B\u4ED6\u4EBA\u7684\u8BD5\u5377\u3002"))),okText:"\u77E5\u9053\u4E86"}))},[Rt.coursesId]);const gl=()=>T0(void 0,null,function*(){const qa=yield Ve({type:"exercise/getCommonHeader",payload:_c({},Rt)});qa&&da(qa==null?void 0:qa.simulate_exercise_records)}),Tl=()=>{const qa=(dt==null?void 0:dt.simulate_exercise_num)-(dt==null?void 0:dt.user_simulate_num);return qa>=0?qa:0},mu=()=>T0(void 0,null,function*(){const qa=yield(0,Ce.ZP)(`/api/exercises/${Rt.categoryId}/new_abnormities.json`,{method:"get",params:{time:Zu.current}});if((qa==null?void 0:qa.status)===401){clearInterval(sa.current);return}Zu.current=Date.now(),(qa==null?void 0:qa.message)!==""&&(qa==null?void 0:qa.message)!=="\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"&&vv({title:(qa==null?void 0:qa.exercise_name)+"-\u8003\u8BD5\u5F02\u5E38",message:qa.message,target:"self",icon:"/warning.png",link:`/classrooms/${Rt.coursesId}/exercise/${Rt.categoryId}/detail?random=${Xt.get("random")==="true"}&tabs=7`})}),$u=(qa=!1)=>{he.history.push(`/classrooms/${Rt.coursesId}/exercisenotice/${dt.id}/users/${Ya.login}`)},jr=()=>{Ve({type:"exercise/setUpdateIndex"})},Eu=()=>{Ve({type:"exercise/getWorkSetting",payload:_c({},Rt)})},wr=()=>{Ve({type:"exercise/getCommonHeader",payload:_c({},Rt)});const qa={0:()=>{jr()},2:()=>{Qn(ca+1)},3:()=>{Ve({type:"exercise/getWorkSetting",payload:_c({},Rt)})}};qa[Hn]&&qa[Hn]()};function Va(qa){La(_c({},qa))}const Nu=[{name:"\u7B54\u9898\u5217\u8868",id:0,hidden:!1,component:ma.createElement(vs,{getparams:Va,checkDomainAuthority:Cr})},{name:"\u8BD5\u5377\u9884\u89C8",id:2,hidden:(dt==null?void 0:dt.exercise_status)===-1||(0,de._m)()&&!(0,On.ag)()||!Cr||(0,On.dE)(),component:(0,On.Rm)()&&!((hn=Dt.AssistantObject.exercise)!=null&&hn.can_preview)||(dt==null?void 0:dt.exercise_status)==1&&(0,On.Ny)()&&!(dt!=null&&dt.exercise_can_preview)?ma.createElement("div",{style:{height:"500px",background:"#fff",textAlign:"center",alignContent:"center"}},ma.createElement("img",{src:z(85004),width:220}),(0,On.Rm)()?ma.createElement("div",{style:{color:"#5F6367",marginTop:"18px"}},"\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"):ma.createElement(ma.Fragment,null,ma.createElement("div",{style:{color:"#5F6367",marginTop:"18px"}},"\u8003\u8BD5\u672A\u5F00\u59CB\u524D\uFF0C\u4EC5\u652F\u6301\u8BD5\u5377\u521B\u5EFA\u8005\u548C\u8BFE\u5802\u534F\u4F5C\u8001\u5E08\u67E5\u770B\u8BD5\u5377"),ma.createElement("div",{style:{color:"#5F6367",marginTop:"10px"}},"\u5982\u9700\u67E5\u770B\u8BD5\u5377\uFF0C\u8BF7\u8054\u7CFB\u8BFE\u5802\u7BA1\u7406\u5458\u5148\u52A0\u5165\u8BFE\u5802"))):dt!=null&&dt.is_random?ma.createElement(ru.default,{key:ca}):ma.createElement($l,{activeTabs:Hn})},{name:"\u7EDF\u8BA1\u5206\u6790",id:1,hidden:(dt==null?void 0:dt.exercise_status)===-1||!Cr||(0,de._m)()&&!(0,On.ag)()||(0,On.dE)()&&!(dt!=null&&dt.show_statistic),component:ma.createElement(Nf,null)},{name:"\u8D28\u91CF\u68C0\u6D4B",id:7,hidden:(dt==null?void 0:dt.exercise_status)===-1||!(dt!=null&&dt.open_code_quality_analysis)||(0,On.dE)(),component:ma.createElement($f,null)},{name:"\u4EE3\u7801\u67E5\u91CD",id:4,hidden:(dt==null?void 0:dt.exercise_status)===-1||(0,On.dE)()||dt.exercise_status===1||!dt.exist_program,component:ma.createElement(Ts,{key:tu})},{name:"\u91CD\u505A\u8BB0\u5F55",id:9,hidden:(dt==null?void 0:dt.exercise_status)===-1||(dt==null?void 0:dt.exercise_type)===2||(0,On.dE)()&&(dt==null?void 0:dt.exercise_status)===1,component:ma.createElement(hv.Z,null)},{name:"\u89C4\u5219\u8BBE\u7F6E",id:3,hidden:!Cr||(0,On.dE)(),component:(dt==null?void 0:dt.exercise_status)===-1?ma.createElement(pv.Z,null):ma.createElement(_0,null)},{name:"\u8003\u8BD5\u76D1\u63A7",id:7,hidden:(dt==null?void 0:dt.exercise_status)===-1||!(0,On.G5)()||!(dt!=null&&dt.enable_monitor),component:ma.createElement(ov,null)},{name:"\u4EBA\u8138\u5BA1\u6838",id:5,hidden:(dt==null?void 0:dt.exercise_status)===-1||!dt.identity_verify||(0,On.dE)(),component:ma.createElement(jo,null)},{name:"\u6444\u50CF\u76D1\u63A7",id:6,hidden:(dt==null?void 0:dt.exercise_status)===-1||!dt.open_phone_video_recording||(0,On.dE)(),component:ma.createElement(hi,null)},{name:ma.createElement("div",null,"AI\u8003\u8BD5\u62D3\u5C55 ",ma.createElement("img",{className:R0.ai_review_new,src:Ea.Z})),id:12,component:ma.createElement(wp,null),hidden:((0,On.dE)()||!(0,On.$O)())&&((0,On.dE)()||(dt==null?void 0:dt.is_random)||(dt==null?void 0:dt.exercise_type)==2)}].filter(qa=>!qa.hidden);(dt==null?void 0:dt.exercise_status)===1&&Nu.splice(0,1,...Nu.splice(1,1,Nu[0])),(0,a.useEffect)(()=>{if(typeof(dt==null?void 0:dt.exercise_status)=="number"){if(Xt.get("tabs")){Oa(Xt.get("tabs"));return}(dt==null?void 0:dt.exercise_status)===1?(Oa("2"),(0,On.dE)()&&Oa("0")):Oa("0")}},[dt==null?void 0:dt.exercise_status]);const oo="YYYY-MM-DD",Su=Ge()("2020-11-15",oo),Pu=()=>Fe.default.info({title:"\u9898\u5E93\u6539\u7248\u544A\u77E5",content:ma.createElement(ma.Fragment,null,"EduCoder\u5DF2\u5347\u7EA7\u9898\u5E93\u529F\u80FD\uFF0C\u6240\u6709\u8BD5\u9898\u5747\u9700\u5339\u914D\u77E5\u8BC6\u70B9\u3002 \u5F53\u524D\u8BD5\u5377\u6240\u6D89\u53CA\u8BD5\u9898\u5747\u672A\u5339\u914D\u77E5\u8BC6\u70B9\uFF0C\u65E0\u6CD5\u968F\u673A\u62BD\u53D6\uFF0C\u5DF2\u4E0D\u80FD\u6709\u6548\u4F7F\u7528\u3002\u8BF7\u5728\u8BD5\u5377\u5E93\u91CD\u65B0\u7EC4\u5377\u540E\u4F7F\u7528\u3002 \u7531\u6B64\u5E26\u6765\u7684\u4E0D\u4FBF\uFF0C\u656C\u8BF7\u8C05\u89E3\uFF01")}),ci=()=>{var qa,bl;return ma.createElement(xe.default,{onClick:lo=>T0(void 0,null,function*(){var Yu,tl;switch(ae.order&&(Rt.order=ae.order,Rt.order_type=ae.order_type),lo.key){case"1":if((0,On.Rm)()&&!((Yu=Dt.AssistantObject.exercise)!=null&&Yu.can_download)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Ve({type:"classroomList/setActionTabs",payload:{key:"\u9009\u62E9\u73ED\u7EA7",title:"\u5BFC\u51FA\u5B66\u751F\u6210\u7EE9",course_groups:Sa==null?void 0:Sa.map(_r=>({course_group_id:_r==null?void 0:_r.exercise_group_id,group_group_name:_r==null?void 0:_r.exercise_group_name,count:_r==null?void 0:_r.exercise_group_students})),fn:()=>{let _r=[];Fe.default.confirm({title:"\u5BFC\u51FA\u5B66\u751F\u6210\u7EE9\u8BBE\u7F6E",icon:null,width:650,closable:!0,centered:!0,onOk:()=>T0(void 0,null,function*(){if(_r.length===0)return pe.ZP.info("\u8BF7\u9009\u62E9\u9009\u9879\uFF01"),Promise.reject();Rt.types=_r,(yield(0,ne.Uj)(K0(_c(_c({},Rt),Ba),{exercise_group_id:[...JSON.parse(sessionStorage.all_student_works_params).course_group]}))).status===0&&(0,ye.je)(K0(_c(_c({},Rt),Ba),{exercise_group_id:[...JSON.parse(sessionStorage.all_student_works_params).course_group]}))}),content:ma.createElement("div",null,ma.createElement("p",{style:{color:"#E99237",marginBottom:"20"}},ma.createElement(b.Z,{style:{marginRight:5,color:"#E99237"}}),"\u8BF7\u9009\u62E9\u60A8\u9700\u8981\u7684\u5B66\u751F\u6210\u7EE9\u6570\u636E\u8FDB\u884C\u5BFC\u51FA\uFF0C\u5426\u5219\u53EF\u80FD\u4F1A\u56E0\u4E3A\u5BFC\u51FA\u7684\u6570\u636E\u592A\u591A\u800C\u5F71\u54CD\u5BFC\u51FA\u8FDB\u5EA6\u3002"),ma.createElement("div",null,ma.createElement(Se.default,{onChange:Io=>{Io.target.checked?_r.push(1):_r=_r.filter(os=>os!==1)}},"\u57FA\u672C\u6570\u636E",ma.createElement("span",{style:{color:"#666666"}},"\uFF08\u7EDF\u8BA1\u6BCF\u4E2A\u5B66\u751F\u7684\u5404\u9898\u578B\u5F97\u5206\u4E0E\u6700\u7EC8\u6210\u7EE9\uFF09"))),ma.createElement("div",{style:{marginTop:15,marginBottom:15}},ma.createElement(Se.default,{onChange:Io=>{Io.target.checked?_r.push(2):_r=_r.filter(os=>os!==2)}},"\u5F97\u5206\u8BE6\u8868",ma.createElement("span",{style:{color:"#666666"}},"\uFF08\u7EDF\u8BA1\u6BCF\u4E2A\u5B66\u751F\u7684\u5404\u5C0F\u9898\u5F97\u5206\u4E0E\u5404\u9898\u578B\u603B\u5F97\u5206\uFF09"))),ma.createElement("div",null,ma.createElement(Se.default,{onChange:Io=>{Io.target.checked?_r.push(3):_r=_r.filter(os=>os!==3)}},"\u6570\u636E\u5206\u6790",ma.createElement("span",{style:{color:"#666666"}},"\uFF08\u7EDF\u8BA1\u8BD5\u5377\u4E2D\u6BCF\u4E2A\u5C0F\u9898\u7684\u53C2\u8003\u603B\u4EBA\u6570\u3001\u7B54\u9898\u4EBA\u6570\u3001\u7B54\u5BF9\u4EBA\u6570\u3001\u6EE1\u5206\u4EBA\u6570\u548C\u5F97\u5206\u7387\uFF09"))))})}}});break;case"9":Ve({type:"classroomList/setActionTabs",payload:{key:"\u9009\u62E9\u73ED\u7EA7",title:"\u5BFC\u51FA\u5B9E\u9A8C\u62A5\u544A",course_groups:Sa==null?void 0:Sa.map(_r=>({course_group_id:_r==null?void 0:_r.exercise_group_id,group_group_name:_r==null?void 0:_r.exercise_group_name,count:_r==null?void 0:_r.exercise_group_students})),fn:()=>{(0,ye.lS)(K0(_c(_c({},Rt),Ba),{type:sessionStorage.getItem("exptype"),exercise_group_id:[...JSON.parse(sessionStorage.all_student_works_params).course_group]}))}}});break;case"8":if((0,On.Rm)()&&!((tl=Dt.AssistantObject.exercise)!=null&&tl.can_download)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}if(dt!=null&&dt.can_export_exam_summary)Ve({type:"exercise/setActionTabs",payload:{title:"\u8003\u8BD5\u603B\u7ED3\u8BBE\u7F6E"}});else{const _r=yield(0,ne.aU)({id:(Rt==null?void 0:Rt.categoryId)||(Rt==null?void 0:Rt.exerciseId)});Fe.default.confirm({title:"\u63D0\u793A",centered:!0,icon:null,closable:!0,footer:null,content:ma.createElement(ma.Fragment,null,"\u60A8\u6240\u5728\u7684\u5355\u4F4D\u8FD8\u6CA1\u6709\u4E13\u5C5E\u7684\u8003\u8BD5\u603B\u7ED3\u6A21\u677F\uFF0C\u6682\u65F6\u65E0\u6CD5\u751F\u6210\u8003\u8BD5\u603B\u7ED3\u3002\u5982\u9700\u5B9A\u5236\u6A21\u677F\uFF0C\u8BF7\u8054\u7CFB\u6559\u7814\u52A9\u7406\uFF01",ma.createElement("br",null),ma.createElement("div",{className:"mt-20px"},ma.createElement("a",{onClick:()=>{var Io,os,Zl,Bs,Di,Us,$c,Ln;mr({url:ke.Z.API_SERVER+((Bs=(Zl=(os=(Io=_r==null?void 0:_r.data)==null?void 0:Io.exam_summary_templates)==null?void 0:os[0])==null?void 0:Zl.attachment_info)==null?void 0:Bs.url),file_type:(Ln=($c=(Us=(Di=_r==null?void 0:_r.data)==null?void 0:Di.exam_summary_templates)==null?void 0:Us[0])==null?void 0:$c.attachment_info)==null?void 0:Ln.file_type})}},"\u67E5\u770B\u8003\u8BD5\u603B\u7ED3\u6A21\u677F\u793A\u4F8B>")),ma.createElement("div",{className:"mt-20px ml-auto mr-auto p10 rounded-4px",style:{width:180,height:180,boxShadow:"0px 0px 10px 0px rgba(162,162,162,0.3)"}},ma.createElement("img",{className:"h-full w-full",src:yv})),ma.createElement("div",{className:"mt10 mb-12px",style:{color:"#9096A3",textAlign:"center"}},"\u5FAE\u4FE1\u626B\u4E00\u626B\uFF0C\u6DFB\u52A0\u6559\u7814\u52A9\u7406"))})}break}})},(0,On.GJ)()&&!(dt!=null&&dt.appraise_label)&&Cr&&((qa=dt==null?void 0:dt.user_permission)==null?void 0:qa.exercise_unpublish_count)>0&&(dt==null?void 0:dt.exercise_status)!==1&&(!(dt!=null&&dt.is_make_up_exercise)||(dt==null?void 0:dt.is_make_up_exercise)&&!((bl=ia==null?void 0:ia.exercise)!=null&&bl.publish_time)&&(dt==null?void 0:dt.allow_create_make_up))&&ma.createElement(xe.default.Item,{key:"7",onClick:()=>{var lo,Yu,tl,_r;if(console.log(dt),(0,On.Rm)()&&!((Yu=(lo=Dt==null?void 0:Dt.AssistantObject)==null?void 0:lo.exercise)!=null&&Yu.can_publish)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}if((dt==null?void 0:dt.exercise_question_count)===0){pe.ZP.warning("\u8BD5\u5377\u5185\u6CA1\u6709\u8BD5\u9898\u4E0D\u5141\u8BB8\u53D1\u5E03\u8003\u8BD5");return}const Io=Ge()(dt==null?void 0:dt.created_at,oo);if(Ge()(Su).diff(Ge()(Io),"days")>0&&(dt!=null&&dt.is_random)){Pu();return}if(((tl=et==null?void 0:et.userInfo)==null?void 0:tl.user_status)===2){(0,lr.Rd)();return}dt!=null&&dt.high_resources_consume&&!(dt!=null&&dt.high_resources_consume_permission)?Ve({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:Rt.coursesId,type:"exercise",type_id:Rt.categoryId,name:dt.exercise_name,fn:()=>{var Zl;Ve({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u53D1\u5E03",selectArrs:[Rt.categoryId],unified_setting:dt==null?void 0:dt.unified_setting,params:Rt,disabled:(dt==null?void 0:dt.exercise_status)!==1,type:2,activeTab:Hn,cb:wr,manage_all_group:(Zl=ia==null?void 0:ia.exercise)==null?void 0:Zl.manage_all_group}})}}}):Ve({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u53D1\u5E03",selectArrs:[Rt.categoryId],unified_setting:dt==null?void 0:dt.unified_setting,params:Rt,disabled:(dt==null?void 0:dt.exercise_status)!==1,type:2,activeTab:Hn,cb:wr,manage_all_group:(_r=ia==null?void 0:ia.exercise)==null?void 0:_r.manage_all_group}})}},"\u53D1\u5E03\u8003\u8BD5"),(dt==null?void 0:dt.exercise_status)!==-1&&(0,On.GJ)()&&Cr&&dt.exercise_status!==1&&!(dt!=null&&dt.is_make_up_exercise&&dt.exercise_status===3)&&(dt!=null&&dt.open_appraise?ma.createElement(Ae.Z,{overlayStyle:{maxWidth:"initial"},title:ma.createElement("div",null,ma.createElement("div",null,"\u63D0\u793A\uFF1A"),ma.createElement("div",null,"\u672C\u573A\u8003\u8BD5\u5DF2\u5F00\u542F\u96C6\u4E2D\u9605\u5377\uFF0C\u4E3A\u4E86\u4E0D\u5F71\u54CD\u6210\u7EE9\u8BC4\u5B9A\uFF0C\u4E0D\u53EF\u8FDB\u884C\u6B64\u64CD\u4F5C\u3002"),ma.createElement("div",null,"\uFF08\u5982\u9700\u53D1\u5E03\u65B0\u73ED\u7EA7\u8003\u8BD5\uFF0C\u8BF7\u521B\u5EFA\u65B0\u8BD5\u5377\u540E\u53D1\u5E03\uFF09"))},ma.createElement(xe.default.Item,{key:"5"},"\u7F16\u8F91\u8BD5\u5377")):ma.createElement(xe.default.Item,{key:"5",onClick:()=>{var lo,Yu;if((0,On.Rm)()&&!((Yu=(lo=Dt==null?void 0:Dt.AssistantObject)==null?void 0:lo.exercise)!=null&&Yu.can_create)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const tl=Ge()(dt==null?void 0:dt.created_at,oo);if(Ge()(Su).diff(Ge()(tl),"days")>0&&(dt!=null&&dt.is_random)){Pu();return}else he.history.push(dt!=null&&dt.is_random?`/classrooms/${Rt.coursesId}/exercise/${Rt.categoryId}/random/edit?type=settings`:`/classrooms/${Rt.coursesId}/exercise/add/${Rt.categoryId}?random=false&type=2`)}},"\u7F16\u8F91\u8BD5\u5377")),(dt==null?void 0:dt.exercise_status)!==-1&&!(0,On.dE)()&&Cr&&dt.exercise_status>1&&dt.exist_program&&ma.createElement(xe.default.Item,{key:"4",onClick:lo=>{Ve({type:"exercise/setActionTabs",payload:{key:"\u4EE3\u7801\u67E5\u91CD",params:Rt}})}},"\u4EE3\u7801\u67E5\u91CD"),ma.createElement(xe.default.Item,{key:"1"},"\u5BFC\u51FA\u5B66\u751F\u6210\u7EE9"),(dt==null?void 0:dt.enable_report_setting)&&ma.createElement(xe.default.Item,{key:"9"},"\u5BFC\u51FA\u5B9E\u9A8C\u62A5\u544A"),(dt==null?void 0:dt.exercise_status)===3&&ma.createElement(xe.default.Item,{key:"8"},"\u5BFC\u51FA\u8003\u8BD5\u603B\u7ED3"),(dt==null?void 0:dt.exercise_status)!==-1&&ma.createElement(xe.default.Item,{key:"2",onClick:()=>{var lo;if((0,On.Rm)()&&!((lo=Dt.AssistantObject.exercise)!=null&&lo.can_download)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}if((0,On.Ny)()&&(dt==null?void 0:dt.exercise_status)==1&&!(dt!=null&&dt.exercise_can_preview)){pe.ZP.warning("\u8BD5\u5377\u53D1\u5E03\u524D\uFF0C\u4EC5\u652F\u6301\u8BD5\u5377\u521B\u5EFA\u8005\u548C\u8BFE\u5802\u534F\u4F5C\u8001\u5E08\u8FDB\u884C\u64CD\u4F5C");return}if((dt==null?void 0:dt.exercise_status)===1)(0,de.xg)(`/classrooms/${Rt.coursesId}/exercise/${Rt.categoryId}/export_blank`);else{let Yu=1;Fe.default.confirm({title:"\u8BF7\u9009\u62E9\u9700\u8981\u5BFC\u51FA\u7684\u7C7B\u578B",icon:null,centered:!0,closable:!0,content:ma.createElement(Ie.ZP.Group,{defaultValue:1,onChange:tl=>{Yu=tl.target.value}},ma.createElement(ze.Z,{direction:"vertical"},ma.createElement(Ie.ZP,{value:1},"\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377+\u7B54\u6848"),ma.createElement(Ie.ZP,{value:2},"\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377"),ma.createElement(Ie.ZP,{value:3},"\u5BFC\u51FA\u6240\u6709\u5B66\u751F\u8BD5\u5377"))),onOk:()=>{Yu===3?Ve({type:"classroomList/setActionTabs",payload:{key:"\u9009\u62E9\u73ED\u7EA7",title:"\u5BFC\u51FA\u8BD5\u5377",course_groups:Sa==null?void 0:Sa.map(tl=>({course_group_id:tl==null?void 0:tl.exercise_group_id,group_group_name:tl==null?void 0:tl.exercise_group_name,count:tl==null?void 0:tl.exercise_group_students})),fn:()=>T0(void 0,null,function*(){var tl,_r,Io,os;wu&&wu();let Zl="",Bs=0;const Di=yield(0,Ce.ZP)(`/api/exercises/${Rt.categoryId}/exercise_users.json`,{method:"get",params:K0(_c({},Rt),{exercise_group_id:[...JSON.parse(sessionStorage.all_student_works_params).course_group]})});if((Di==null?void 0:Di.status)===0){Zl=(tl=Di==null?void 0:Di.data)==null?void 0:tl.first_export_user_login,Bs=(_r=Di==null?void 0:Di.data)==null?void 0:_r.total_count;const Us=JSON.parse(localStorage[`${(Io=et==null?void 0:et.userInfo)==null?void 0:Io.login}-${Rt.coursesId}-${Rt.categoryId}-downFilter`]);localStorage[`${(os=et==null?void 0:et.userInfo)==null?void 0:os.login}-${Rt.coursesId}-${Rt.categoryId}-downFilter`]=JSON.stringify(K0(_c({},Us),{firstTargetLogin:Zl,totalCount:Bs,exercise_group_id:[...JSON.parse(sessionStorage.all_student_works_params).course_group]}))}(0,de.xg)(`/classrooms/${Rt.coursesId}/exercise/${Rt.categoryId}/export_blank?type=${Yu}`)})}}):(0,de.xg)(`/classrooms/${Rt.coursesId}/exercise/${Rt.categoryId}/export_blank?type=${Yu}`)}})}}},"\u5BFC\u51FA\u8BD5\u5377"),ma.createElement(xe.default.Item,{key:"3",onClick:()=>{var lo;if((0,On.Rm)()&&!((lo=Dt.AssistantObject.exercise)!=null&&lo.can_download)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}he.history.push(`/classrooms/${Rt.coursesId}/exportlist/exercise_score,export_exercise_users,export_exercise_report`)}},"\u5386\u53F2\u5BFC\u51FA"),(dt==null?void 0:dt.exercise_status)!==-1&&ma.createElement(xe.default.Item,{key:"6",onClick:()=>{var lo;if((0,On.Rm)()&&!((lo=Dt.AssistantObject.exercise)!=null&&lo.can_download)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Ve({type:"exercise/setActionTabs",payload:{key:"exportSetting"}})}},"\u5BFC\u51FA\u683C\u5F0F\u8BBE\u7F6E"))},Ho=qa=>T0(void 0,null,function*(){const bl=yield(0,Ce.ZP)(`/api/courses/${Rt==null?void 0:Rt.coursesId}/exercises/exercise_code_repeat.json`,{method:"post",body:{group_ids:qa,id:Rt==null?void 0:Rt.categoryId}});if(bl.status===0){Oa(4),Ka(Ge()(new Date).valueOf()),Ve({type:"exercise/setActionTabs",payload:{}});return}bl.status<-2&&pe.ZP.error(bl==null?void 0:bl.message)});let ji=[{live:"A",gz:"0\u4E2A\u9519\u8BEF",ld:"0\u4E2A\u6F0F\u6D1E",gf:"0 - 5%"},{live:"B",gz:"\u81F3\u5C111\u4E2A\u6B21\u8981\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u6B21\u8981\u6F0F\u6D1E",gf:"6% - 10%"},{live:"C",gz:"\u81F3\u5C111\u4E2A\u4E3B\u8981\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u4E3B\u8981\u6F0F\u6D1E",gf:"11% - 20%"},{live:"D",gz:"\u81F3\u5C111\u4E2A\u4E25\u91CD\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u4E25\u91CD\u6F0F\u6D1E",gf:"21% - 50%"},{live:"E",gz:"\u81F3\u5C111\u4E2A\u963B\u65AD\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u963B\u65AD\u6F0F\u6D1E",gf:"\u8D85\u8FC750%"}];const fc=[{title:"\u5E8F\u53F7",dataIndex:"name",fixed:"left",align:"center",width:60,render:(qa,bl,lo)=>ma.createElement(Ae.Z,{title:((Rt.page||1)-1)*20+lo+1},ma.createElement("span",null,((Rt.page||1)-1)*20+lo+1))},{title:"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",align:"center",width:100,render:(qa,bl)=>bl.commit_status===0||bl.commit_status===1?"--":!bl.open_total_score&&(0,On.dE)()?"\u8001\u5E08\u5BA1\u6838\u4E2D":(qa=typeof qa=="number"?Number(qa):qa,qa||(qa=0),qa===100?ma.createElement("span",{className:"c-green"},qa||"--"):qa>60?ma.createElement("span",{className:"c-orange"},qa||"--"):ma.createElement("span",null,qa||"--"))},!((Ha==null?void 0:Ha.objective)!==1||(Ha==null?void 0:Ha.objective)===1&&(Ha==null?void 0:Ha.subjective)!==1)&&{title:"\u5BA2\u89C2\u9898\u5F97\u5206",dataIndex:"objective_score",align:"center",render:(qa,bl)=>{if(bl.commit_status===0||bl.commit_status===1)return"--";if(!bl.open_total_score&&(0,On.dE)())return"\u8001\u5E08\u5BA1\u6838\u4E2D";{qa=typeof qa=="number"?Number(qa):qa,qa||(qa=0);let lo;return qa>=0&&qa<=60?lo=ma.createElement("span",null,qa):qa===100?lo=ma.createElement("span",{className:"c-green"},qa):qa>60?lo=ma.createElement("span",{className:"c-orange"},qa):lo="--",ma.createElement(oa,{renderText:lo,item:bl})}}},!((Ha==null?void 0:Ha.subjective)!==1||(Ha==null?void 0:Ha.subjective)===1&&(Ha==null?void 0:Ha.objective)!==1)&&{title:"\u4E3B\u89C2\u9898\u5F97\u5206",dataIndex:"subjective_score",align:"center",render:(qa,bl)=>{if(bl.commit_status===0||bl.commit_status===1)return"--";if(!bl.open_total_score&&(0,On.dE)())return"\u8001\u5E08\u5BA1\u6838\u4E2D";{qa=typeof qa=="number"?Number(qa):qa,qa||(qa=0);let lo;return qa==0||qa>0&&qa<=60?lo=ma.createElement("span",null,qa):qa===100?lo=ma.createElement("span",{className:"c-green"},qa):qa>60?lo=ma.createElement("span",{className:"c-orange"},qa):lo="--",lo}}},{title:"\u63D0\u4EA4\u72B6\u6001",dataIndex:"commit_status",align:"center",width:200,render:(qa,bl)=>qa===0?ma.createElement("span",{style:{color:"#666666"}},"\u672A\u5F00\u59CB"):qa===1?ma.createElement("span",{style:{color:"#DF3042"}},!bl.is_make_up&&"\u8003\u8BD5\u4E2D",bl.is_make_up&&"\u8003\u8BD5\u4E2D (\u8865\u8003)"):qa===2?ma.createElement("span",{style:{color:"#5AB891"}},!bl.is_make_up&&!bl.is_force_commit&&"\u5DF2\u4EA4\u5377",bl.is_make_up&&!bl.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003)",bl.is_make_up&&bl.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003/\u5F3A\u5236)",!bl.is_make_up&&bl.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u5F3A\u5236)"):ma.createElement("span",{style:{color:"#5AB891"}},!bl.is_make_up&&!bl.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54",bl.is_make_up&&!bl.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003)",bl.is_make_up&&bl.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003/\u5F3A\u5236)",!bl.is_make_up&&bl.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u5F3A\u5236)")},{title:"\u5F00\u59CB\u7B54\u9898\u65F6\u95F4",dataIndex:"start_at",align:"center",width:200,render:qa=>qa?Ge()(qa).format("YYYY-MM-DD HH:mm"):"--"},{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"end_at",align:"center",width:200,render:qa=>qa?Ge()(qa).format("YYYY-MM-DD HH:mm"):"--"}].filter(qa=>!!qa);return(0,On.RV)()?(0,On.RV)()?ma.createElement("section",{className:R0.bg},ma.createElement("div",{className:"edu-container"},Ya.username&&ma.createElement("section",{className:"animated fadeIn"},ma.createElement("aside",{className:"mt10"},ma.createElement(Me.Z,{separator:">"},ma.createElement(Me.Z.Item,{href:`/classrooms/${Rt.coursesId}/exercise`},(Gt=(xt=et==null?void 0:et.userInfo)==null?void 0:xt.course)==null?void 0:Gt.course_name),ma.createElement(Me.Z.Item,{href:`/classrooms/${Rt.coursesId}/exercise`},"\u5728\u7EBF\u8003\u8BD5"),ma.createElement(Me.Z.Item,null,"\u8BD5\u5377\u8BE6\u60C5"))),ma.createElement("aside",{className:[R0.title,"mt20"].join(" ")},ma.createElement("a",{href:`/classrooms/${Rt.coursesId}/exercise`},ma.createElement(ee.Z,{className:"font16 c-black"})),(0,de.vB)(dt==null?void 0:dt.exercise_status,dt==null?void 0:dt.appraise_label),(dt==null?void 0:dt.is_make_up_exercise)&&ma.createElement("img",{src:mv,width:44,height:24,style:{marginRight:5,marginLeft:10}}),ma.createElement("strong",{className:"font20 ml5 mr10"},dt==null?void 0:dt.exercise_name),(dt==null?void 0:dt.exercise_type)==2&&ma.createElement("span",{style:{flexShrink:0,marginRight:10,display:"flex",alignItems:"center"},className:R0.moni},ma.createElement("img",{src:gv,width:18,height:14}),"\u6A21\u62DF\u8003\u8BD5"),(dt==null?void 0:dt.is_make_up_exercise)&&ma.createElement(Ae.Z,{title:"\u70B9\u51FB\u53EF\u67E5\u770B\u539F\u8003\u8BD5"},ma.createElement("i",{className:"iconfont icon-yuankaoshi",style:{color:"#165DFF",cursor:"pointer"},onClick:()=>{(0,de.xg)(`/classrooms/${Rt.coursesId}/exercise/${dt==null?void 0:dt.make_up_exercise_id}/detail?random=${dt==null?void 0:dt.make_up_exercise_is_random}`)}})))),ma.createElement("aside",{className:"mt30 relative"},Hn=="12"?ma.createElement("div",{className:R0.export},ma.createElement(Xo,null)):ma.createElement("div",{className:R0.export},!(0,On.dE)()&&!(dt!=null&&dt.is_make_up_exercise)&&(dt==null?void 0:dt.exercise_status)===3&&(dt==null?void 0:dt.exercise_type)!=2&&ma.createElement(me.ZP,{onClick:qa=>{if(qa.preventDefault(),!(dt!=null&&dt.allow_create_make_up)){pe.ZP.warning("\u60A8\u5F53\u524D\u6CA1\u6709\u64CD\u4F5C\u6743\u9650\uFF0C\u8BF7\u8054\u7CFB\u8BFE\u5802\u7BA1\u7406\u5458");return}Ve({type:"exercise/setActionTabs",payload:{key:"\u8865\u8003\u8BB0\u5F55",params:Rt}})}},ma.createElement("span",{className:"iconfont icon-shenhezhong font14 mr5"}),"\u8865\u8003\u8BB0\u5F55"),(0,On.dE)()&&dt.exercise_status<3&&(dt==null?void 0:dt.is_show_report_setting)&&((Bn=dt==null?void 0:dt.exercise_report_template)==null?void 0:Bn.length)>0&&ma.createElement(me.ZP,{style:{marginRight:10},onClick:qa=>{qa.preventDefault(),Ve({type:"exercise/setActionTabs",payload:{key:"\u63D0\u4EA4\u62A5\u544A",params:K0(_c({},Rt),{exercise_user_id:dt.exercise_user_id})}})}},ma.createElement("span",{className:"iconfont icon-tijiaojilu font14 mr5"}),"\u63D0\u4EA4\u62A5\u544A"),!(0,On.dE)()&&!(dt!=null&&dt.is_make_up_exercise)&&dt.exercise_status===3&&(dt==null?void 0:dt.exercise_type)!=2&&ma.createElement(me.ZP,{onClick:qa=>{if(qa.preventDefault(),!(dt!=null&&dt.allow_create_make_up)){pe.ZP.warning("\u60A8\u5F53\u524D\u6CA1\u6709\u64CD\u4F5C\u6743\u9650\uFF0C\u8BF7\u8054\u7CFB\u8BFE\u5802\u7BA1\u7406\u5458");return}Ve({type:"exercise/setActionTabs",payload:{key:"\u8BD5\u5377\u9009\u7528",params:Rt}})}},ma.createElement("span",{className:"iconfont icon-shenhezhong font14 mr5"}),"\u521B\u5EFA\u8865\u8003"),(0,On.GJ)()&&Cr&&((Dn=dt==null?void 0:dt.user_permission)==null?void 0:Dn.user_commit_counts)>0&&(dt==null?void 0:dt.exercise_status)===2&&(dt==null?void 0:dt.exercise_type)!=2&&ma.createElement(me.ZP,{onClick:qa=>{var bl,lo;if(qa.preventDefault(),(0,On.Rm)()&&!((lo=(bl=Dt==null?void 0:Dt.AssistantObject)==null?void 0:bl.exercise)!=null&&lo.can_redo)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Ve({type:"exercise/setActionTabs",payload:{key:"\u6253\u56DE\u91CD\u505A",params:Rt}})}},ma.createElement("span",{className:"iconfont icon-dahuizhongzuo3x font14 mr5"}),"\u6253\u56DE\u91CD\u505A"),(0,On.GJ)()&&Cr&&((Fn=dt==null?void 0:dt.user_permission)==null?void 0:Fn.exercise_unpublish_count)>0&&(dt==null?void 0:dt.exercise_status)===1&&(!(dt!=null&&dt.is_make_up_exercise)||(dt==null?void 0:dt.is_make_up_exercise)&&(dt==null?void 0:dt.allow_create_make_up))&&ma.createElement(hg.Z,{tips:dt==null?void 0:dt.open_appraise,style:{marginLeft:10}},ma.createElement(me.ZP,{onClick:qa=>{var bl,lo,Yu,tl;if(qa.preventDefault(),(0,On.Rm)()&&!((lo=(bl=Dt==null?void 0:Dt.AssistantObject)==null?void 0:bl.exercise)!=null&&lo.can_publish)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}if((dt==null?void 0:dt.exercise_question_count)===0){pe.ZP.warning("\u8BD5\u5377\u5185\u6CA1\u6709\u8BD5\u9898\u4E0D\u5141\u8BB8\u53D1\u5E03\u8003\u8BD5");return}if(((Yu=et==null?void 0:et.userInfo)==null?void 0:Yu.user_status)===2){(0,lr.Rd)();return}const _r=Ge()(dt==null?void 0:dt.created_at,oo);if(Ge()(Su).diff(Ge()(_r),"days")>0&&(dt!=null&&dt.is_random)){Pu();return}dt!=null&&dt.high_resources_consume&&!(dt!=null&&dt.high_resources_consume_permission)?Ve({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:Rt.coursesId,type:"exercise",type_id:Rt.categoryId,name:dt.exercise_name,fn:()=>{var os;Ve({type:"exercise/getCommonHeader",payload:_c({},Rt)}),Ve({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u53D1\u5E03",selectArrs:[Rt.categoryId],unified_setting:dt==null?void 0:dt.unified_setting,params:Rt,disabled:(dt==null?void 0:dt.exercise_status)!==1,type:2,activeTab:Hn,cb:wr,manage_all_group:(os=ia==null?void 0:ia.exercise)==null?void 0:os.manage_all_group}})}}}):Ve({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u53D1\u5E03",selectArrs:[Rt.categoryId],unified_setting:dt==null?void 0:dt.unified_setting,params:Rt,disabled:(dt==null?void 0:dt.exercise_status)!==1,type:2,activeTab:Hn,cb:wr,manage_all_group:(tl=ia==null?void 0:ia.exercise)==null?void 0:tl.manage_all_group}})}},ma.createElement("span",{className:"iconfont icon-fabuzhiwei font14 mr5"}),"\u53D1\u5E03\u8003\u8BD5")),(0,On.GJ)()&&Cr&&((Wt=dt==null?void 0:dt.user_permission)==null?void 0:Wt.exercise_publish_count)>0&&ma.createElement(me.ZP,{onClick:qa=>{var bl,lo;if(qa.preventDefault(),(0,On.Rm)()&&!((lo=(bl=Dt==null?void 0:Dt.AssistantObject)==null?void 0:bl.exercise)!=null&&lo.can_stop)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Ve({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u7ED3\u675F",unified_setting:dt==null?void 0:dt.unified_setting,selectArrs:[Rt.categoryId],params:Rt,cb:wr}})}},ma.createElement("span",{className:"iconfont icon-lijijiezhi mr5 font14"}),"\u7ED3\u675F\u8003\u8BD5"),(0,On.dE)()&&dt.is_late&&`\u8FDF\u5230\u8D85\u8FC7${dt.last_times}\u5206\u949F\uFF0C\u7981\u6B62\u8FDB\u5165\u7B54\u9898`,(0,On.dE)()&&(dt==null?void 0:dt.exercise_type)===2&&ma.createElement(me.ZP,{onClick:qa=>T0(void 0,null,function*(){qa.preventDefault();const bl=yield(0,Ce.ZP)(`/api/exercises/${Rt.categoryId}/header_info.json`,{method:"get"});(bl==null?void 0:bl.status)===0&&au((bl==null?void 0:bl.data)||{}),Tn(!0)})},ma.createElement("span",{className:"iconfont icon-shenhezhong font14 mr5"}),"\u8003\u8BD5\u8BB0\u5F55"),(0,On.dE)()&&(dt==null?void 0:dt.exercise_type)===1&&((Ut=dt==null?void 0:dt.user_permission)==null?void 0:Ut.current_status)===2&&!dt.is_late&&dt.exercise_status>1&&ma.createElement(me.ZP,{onClick:()=>$u()},ma.createElement("span",{className:"iconfont icon-bianjizuoye mr5 font14"}),(Yt=ha==null?void 0:ha.exercise_types)!=null&&Yt.is_redo?"\u91CD\u65B0\u8003\u8BD5":"\u5F00\u59CB\u8003\u8BD5"),(0,On.dE)()&&(dt==null?void 0:dt.exercise_type)===2&&!dt.is_late&&(dt==null?void 0:dt.exercise_status)!=3&&dt.exercise_status>1&&ma.createElement(Ae.Z,{title:ma.createElement("span",null,"\u672C\u6B21\u8003\u8BD5\u53EF\u91CD\u590D\u8003\u8BD5",dt==null?void 0:dt.simulate_exercise_num,"\u6B21\uFF0C\u5269\u4F59",Tl(),"\u6B21")},ma.createElement(me.ZP,{onClick:()=>$u(),disabled:Tl()===0&&((ea=dt==null?void 0:dt.user_permission)==null?void 0:ea.current_status)!=0,style:{marginLeft:8}},ma.createElement("span",{className:"iconfont icon-bianjizuoye mr5 font14"}),((nn=dt==null?void 0:dt.user_permission)==null?void 0:nn.current_status)==0?"\u7EE7\u7EED\u8003\u8BD5":"\u5F00\u59CB\u8003\u8BD5")),(0,On.dE)()&&(dt==null?void 0:dt.exercise_type)===1&&((zn=dt==null?void 0:dt.user_permission)==null?void 0:zn.current_status)===0&&!dt.is_late&&dt.exercise_status>1&&ma.createElement(me.ZP,{onClick:()=>$u(!0)},ma.createElement("span",{className:"iconfont icon-bianjizuoye mr5 font14"}),"\u7EE7\u7EED\u8003\u8BD5"),(0,On.dE)()&&(dt==null?void 0:dt.screen_used_num)>(dt==null?void 0:dt.screen_num)&&dt.exercise_status!==3&&ma.createElement(me.ZP,{onClick:()=>$u(!0)},ma.createElement("span",{className:"iconfont icon-bianjizuoye mr5 font14"}),"\u7533\u8BF7","\u7EE7\u7EED\u8003\u8BD5"),(0,On.dE)()&&(dt==null?void 0:dt.whole_exercise_status)===3&&(dt==null?void 0:dt.ai_push_wrong_question)&&((mn=dt==null?void 0:dt.user_permission)==null?void 0:mn.current_status)!==4&&ma.createElement(oe.Z,{align:"middle"},(dt==null?void 0:dt.wrong_questions_size)!==0&&((pa=dt==null?void 0:dt.progress)==null?void 0:pa.stat)===1&&ma.createElement(Rv,{dispatch:Ve,id:dt==null?void 0:dt.ai_question_record_id}),ma.createElement(me.ZP,{onClick:()=>{var qa;if((dt==null?void 0:dt.wrong_questions_size)===0){pe.ZP.warning("\u672C\u6B21\u8003\u8BD5\u4F60\u65E0\u9700\u8FDB\u884C\u9519\u9898\u5DE9\u56FA\uFF5E");return}if(((qa=dt==null?void 0:dt.progress)==null?void 0:qa.stat)===1){pe.ZP.warning("\u63A8\u8350\u8BD5\u9898\u6B63\u5728\u751F\u6210\u4E2D\uFF0C\u8BF7\u7B49\u5F85\u751F\u6210\u5B8C\u6210\u540E\u518D\u5F00\u59CB\u5DE9\u56FA");return}(0,de.xg)(`/classrooms/${Rt.coursesId}/exercise/${Rt.categoryId}/wrongAnswer/${Ya==null?void 0:Ya.login}`)}},ma.createElement("span",{className:"iconfont icon-cuotigonggu mr5 font14"}),"\u9519\u9898\u5DE9\u56FA")),(dt==null?void 0:dt.show_analysis_detail)&&ma.createElement(me.ZP,{onClick:()=>{(0,de.xg)(`/classrooms/${Rt.coursesId}/exercise/${Rt.categoryId}/analysis/${dt==null?void 0:dt.analysis_id}`)}},ma.createElement("span",{className:"iconfont icon-a-08zhiliang-xianxing font14 pr5"}),"\u8D28\u91CF\u8BC4\u5206"),(0,On.GJ)()&&Cr&&(dt.exercise_status===1||dt.exercise_status===3&&(dt==null?void 0:dt.is_make_up_exercise))&&ma.createElement(hg.Z,{tips:dt==null?void 0:dt.open_appraise,style:{marginLeft:10}},ma.createElement(me.ZP,{onClick:()=>{var qa,bl;if((0,On.Rm)()&&!((bl=(qa=Dt==null?void 0:Dt.AssistantObject)==null?void 0:qa.exercise)!=null&&bl.can_create)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}if((0,On.Ny)()&&(dt==null?void 0:dt.exercise_status)==1&&!(dt!=null&&dt.exercise_can_preview)){pe.ZP.warning("\u8BD5\u5377\u53D1\u5E03\u524D\uFF0C\u4EC5\u652F\u6301\u8BD5\u5377\u521B\u5EFA\u8005\u548C\u8BFE\u5802\u534F\u4F5C\u8001\u5E08\u8FDB\u884C\u64CD\u4F5C");return}const lo=Ge()(dt==null?void 0:dt.created_at,oo);if(Ge()(Su).diff(Ge()(lo),"days")>0&&(dt!=null&&dt.is_random)){Pu();return}else he.history.push(dt!=null&&dt.is_random?`/classrooms/${Rt.coursesId}/exercise/${Rt.categoryId}/random/edit?type=settings`:`/classrooms/${Rt.coursesId}/exercise/add/${Rt.categoryId}?random=false&type=2`)}},ma.createElement("span",{className:"iconfont icon-bianjizuoye mr5 font14"}),"\u7F16\u8F91\u8BD5\u5377")),(dt==null?void 0:dt.exercise_status)===-1&&(0,On.GJ)()&&ma.createElement(me.ZP,{icon:ma.createElement("span",{className:"iconfont icon-shixun3 translateY1"}),onClick:()=>{Ve({type:"classroomList/setActionTabs",payload:{key:"\u8865\u5145\u6210\u7EE9",name:dt==null?void 0:dt.exercise_name,id:dt==null?void 0:dt.id,type:"exercise"}})}},"\u8865\u5145\u6210\u7EE9"),(0,On.GJ)()&&Cr&&ma.createElement(E.Z,{dropdownRender:ci},ma.createElement(me.ZP,null,"\u66F4\u591A\u64CD\u4F5C",ma.createElement(te.Z,null)))),ma.createElement("aside",{className:`mt30 relative ${R0.workListTabWrap}`},ma.createElement(y.default,{activeKey:`${Hn}`,onChange:qa=>{var bl;if(parseInt(qa)===1&&!((bl=Dt.AssistantObject.exercise)!=null&&bl.can_view)&&(0,On.Rm)()){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const lo=Ge()(dt==null?void 0:dt.created_at,oo),Yu=Ge()(Su).diff(Ge()(lo),"days");if(ae.actionTabs.key=="\u8868\u5355\u672A\u4FDD\u5B58")Fe.default.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:()=>{if(Yu>0&&parseInt(qa)===3&&(dt!=null&&dt.is_random)){Pu();return}Oa(qa),Ve({type:"exercise/setActionTabs",payload:{key:""}})}});else{if(Yu>0&&parseInt(qa)===3&&(dt!=null&&dt.is_random)){Pu();return}Oa(qa)}qa==="3"?Eu():(qa==="2"||qa==="11")&&Ve({type:"exercise/getCommonHeader",payload:_c({},Rt)})},items:Nu.map(qa=>({label:qa.name,key:`${qa.id}`}))})),ma.createElement("section",{className:dt!=null&&dt.is_random&&Hn==="2"||["3","9","10","11","12"].includes(Hn)?"":"pl25 pr25 bg-white"},(Nt=(Pt=Nu.filter(qa=>qa.id==Hn))==null?void 0:Pt[0])==null?void 0:Nt.component))),ma.createElement(Lu.Z,null),ma.createElement(xr,{onOk:Ho}),ma.createElement(Nr.Z,null),ma.createElement(us,{cb:()=>jr()}),ma.createElement(Ev.Z,{onOk:()=>jr()}),ma.createElement(Av.Z,{onOk:()=>jr()}),ma.createElement(mt,null),ma.createElement(Uf,null),ma.createElement(fv.Z,null),ma.createElement(Iu,null),ma.createElement(Vf,null),ma.createElement(dv.Z,{successCb:()=>$u(currentEnterExamRef.current)}),ma.createElement(Fe.default,{open:Zn,title:"\u89C4\u5219\u8BF4\u660E",width:800,footer:null,onCancel:()=>{bn(!1)}},ma.createElement("p",null,"\u4E00\u3001\u7B49\u7EA7\u89C4\u5219"),ma.createElement("p",{style:{marginLeft:"10px"}},"1. \u7F3A\u9677\u7B49\u7EA7"),ma.createElement("p",{style:{marginLeft:"10px"}},ma.createElement(x.default,{dataSource:ji,columns:[{title:"\u7B49\u7EA7",dataIndex:"live"},{title:"\u7F3A\u9677\u8BC4\u4F30\u89C4\u5219",dataIndex:"gz"},{title:"\u6F0F\u6D1E\u8BC4\u4F30\u89C4\u5219",dataIndex:"ld"},{title:"\u4EE3\u7801\u89C4\u8303\u8BC4\u4F30\u89C4\u5219",dataIndex:"gf"}],pagination:!1})),ma.createElement("p",{style:{marginLeft:"10px"}},"\u6CE8\uFF1A\u4EE3\u7801\u89C4\u8303\u8BC4\u4F30\u89C4\u5219\u4E2D\u6570\u503C\u6765\u6E90\u4E3A\u8BA1\u7B97\u6280\u672F\u503A\u52A1\u65F6\u95F4\u5360\u5F00\u53D1\u6240\u6709\u4EE3\u7801\u6240\u9700\u8981\u7684\u65F6\u95F4\u7684\u6BD4\u4F8B\uFF08Technical Debt Ratio\uFF09"),ma.createElement("p",{style:{marginLeft:"20px"}},"Technical Debt Ratio = \u6280\u672F\u503A\u52A1\u65F6\u95F4 / \u5F00\u53D1\u65F6\u95F4"),ma.createElement("p",{style:{marginLeft:"20px"}},"\u6280\u672F\u503A\u52A1\u65F6\u95F4\u4E3A\u4FEE\u590D\u6240\u6709\u95EE\u9898\u6240\u9700\u8981\u7684\u65F6\u95F4\u3002"),ma.createElement("p",null,"\u4E8C\u3001\u590D\u6742\u5EA6\u89C4\u5219"),ma.createElement("p",{style:{marginLeft:"10px"}},"\u6839\u636E\u4EE3\u7801\u8DEF\u5F84\u6570\u8BA1\u7B97\u7684\u6570\u503C\uFF0C\u6BCF\u5F53\u4E00\u4E2A\u51FD\u6570\u7684\u63A7\u5236\u6D41\u5206\u53C9\u65F6\uFF0C\u590D\u6742\u5EA6\u8BA1\u6570\u5668\u5C31\u4F1A\u81EA\u589E\u4E00\u3002"),ma.createElement("p",{style:{marginLeft:"10px"}},"\u6BCF\u4E2A\u7A0B\u5E8F\u8BED\u8A00\u7684\u5173\u952E\u5B57\u5BF9\u5E94\u7684\u590D\u6742\u5EA6\u6570\u636E\u4E0D\u540C\uFF0C\u4F46\u6BCF\u4E2A\u51FD\u6570\u7684\u6700\u5C0F\u590D\u6742\u5EA6\u4E3A1\u3002\uFF08\u7279\u5B9A\u8BED\u8A00\u7684\u8BE6\u7EC6\u6570\u636E\u7565\uFF09"),ma.createElement("p",null,"\u4E09\u3001\u4EE3\u7801\u8D28\u91CF\u5206\u89C4\u5219"),ma.createElement("p",{style:{marginLeft:"10px"}},"\u4EE3\u7801\u8D28\u91CF\u5206 = 0.5*\u7F3A\u9677\u5206\u6570 + 0.3*\u6F0F\u6D1E\u5206\u6570 + 0.2*\u4EE3\u7801\u89C4\u8303\u6027\u5206\u6570"),ma.createElement("p",{style:{marginLeft:"10px"}},"\u5176\u4E2D\uFF1A"),ma.createElement("p",{style:{marginLeft:"10px"}},"\u7F3A\u9677/\u6F0F\u6D1E/\u4EE3\u7801\u89C4\u8303\u6027\u5206\u6570\u8BA1\u7B97\u89C4\u5219\u4E3A\uFF1A100 - 100 *((100*\u963B\u65AD\u6570 + 5*\u4E25\u91CD\u6570 + 3*\u4E3B\u8981\u6570 + 1*\u6B21\u6570\uFF09/ \u4EE3\u7801\u884C\u6570\uFF09"),ma.createElement("p",{style:{marginLeft:"10px"}},"\u6CE8\uFF1A\u5206\u6570\u4E3A\u7A7A\u7684\u4EE3\u8868\u4E0D\u652F\u6301\u7684\u6587\u4EF6\u683C\u5F0F\u3002")),ma.createElement(Fe.default,{open:pn,title:"\u8003\u8BD5\u8BB0\u5F55",centered:!0,width:1e3,footer:null,onCancel:()=>{Tn(!1)}},(En==null?void 0:En.length)===0?ma.createElement(zt.Z,{styles:{margin:"0 auto"},customText:"\u6682\u65E0\u6570\u636E"}):ma.createElement(x.default,{dataSource:En,columns:fc,pagination:!1})),ma.createElement(Fv.Z,null),ma.createElement(ga.Z,{close:!0,hasMask:!0,style:{zIndex:9999},data:Ru==null?void 0:Ru.url,type:Ru==null?void 0:Ru.file_type,onClose:()=>mr({})}),ma.createElement(Ov,null),ma.createElement(Iv,null),ma.createElement(Cv.Z,null),ma.createElement(kv,null),ma.createElement(xp.Z,null)):"":null};var Rp=(0,he.connect)(({exercise:ce,loading:se,user:ae,globalSetting:_e,classroomList:pt})=>({classroomList:pt,exercise:ce,globalSetting:_e,user:ae,loading:se.effects}))(Mp)},23377:function(Ft,rt,z){"use strict";z.d(rt,{Z:function(){return Ge}});var a=z(67294),Ce=z(28802),ke=z(2453),he=z(62844),Fe=z(74330),xe=z(71230),pe=z(15746),Se=z(35059),Ae=z(84567),Ie=z(37720),ze=z(38308),Me={modalWrapper:"modalWrapper___rWDvO",exportSettingWrapper:"exportSettingWrapper___pCClH",imgPreviewPart:"imgPreviewPart___PCv0Y",tips:"tips___EVeBl",pottedLine:"pottedLine___AaY68",text:"text___ho3u_"},me=z(35973),oe=z(33170),E=z(63494),y=z(33054),x=z(11320),b=z(71865),ee="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAAAECAYAAADLcnBRAAAAAXNSR0IArs4c6QAAAcNJREFUSEvtlT1oFFEURs+dndmAqGBAMCAoKAqChT+lYGER6xQLlsGdXWMQFETbtREhjQgmuxmLdJIEi1SxCdjYRpCQbkEhoihioYjMneyVCDtMCuG+fqedc9437775ZoTRNZrAaAL/nYDs3bFZTmjB0dA5Jbt8kRfseD2b4YgOOOXlh1wCv6XHttezFWq6wQUvX+WSa7yTBrte19qcUzjg5cs9RfRlgR9ez5oc1xrHvHyZE/NNnvPR69kdDmvOGS9f5gh/pMtWiJe3uRzCl1kTvJcOude1Gc7qgENevswxPvwrSN6kB7RCF5CIuWSRB16vSGkMjGUvX3LCZj3jkteze4zrT757+X0FSRgPeXHzJpsQXsYoohEvsup9Rk2ZM+O+lx9ykdCLM255PU2ZNOO1l6+cUb+ecdrrWYdYd1Avv++MxjgZUnpNeWPG1dCsCJrDgsyKcD10AYFXccaS19MWVzAeevkK108y7no9u83BQnnp5atcnHBD5vnldTXlKYT/FanxJOny1ptTtJm2AVNefsgZrNcz5r2etbhYGI+8fCXncz3zf2StQ1R8Yi00Z4+Pa9yULl+9rqY8Bs57+ZKLePYXdsiA6BdYLZkAAAAASUVORK5CYII=",te="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAn4AAAAECAYAAAAQ9jLuAAAAAXNSR0IArs4c6QAABLVJREFUaEPtmVuIVVUYgL+1z17H0S6kliWaJdlVS7pQBHajoLAMKpjo8hKdfc7MiNmoaA8Fx4IIjMzIuZx9sijLrkRGGURQdHkJjSy7G2bqWHaTKbO99pw/ztRs9rz9ax58qHPeDnzf+tf6/7XWXmtvQ+vXykArA60MtDLQykArA60MtDLwv8iAaY5SFnKCSznGd8R2iL2mzi6tJ51MdA1O0vIjnIUDpp/PtJ48T8G9xdlaPs/Zy/nItDOkdaXCGQ4maPlsTAHbTS+/aj0pMd0VOE7LZ3FC9pm1fKf1ZBFHuoRTtHwWx3DQ9PGpj5dUOM+Hz2JNZaupkmhd6eRU1+AILZ/FEXaYGj9pPSkz1RmmafncXPjF9PKt1pNlHOYGOV3L59aRM/187ONJmXOcIfBxmqydwDazmj+1nnQxyw1xlJbPxtTG92YNP2g96WCKE2Zo+SxOgd9MD99oPanS5gaYo+Vzc65hamzx8aTCXAfWxxmuUYEvTA+/az0pMdMVmKzlszFZ9phH2dP8P+Y6G3aaPn7Uxj5kde5mvDvAbG2//tN1FnabGgPaXMhCJruUmVo+t18Oml6+1HpSpegGOEvL5znbx2ZjEK0rHcxxQpuWz82Hr02N/VpPysxwhilaPovz75lt+OCXlOgHyr6NmIBVtsZyrZdGtDeE57R8xhm2FGPO1XrSzSQ3yM9aflShLZN8DmRJaXiT9j5kBgHtYY0XtH10EatEWKblR7jA0B/GdGg9F3GlCG9o+VyNthdjZmk9qRK6XTgtP6pG4zjR5zDrIt4W4RLfWAGUwjqPaT0XcbcI92n5XO42FGNu1nquwoUyxAdafoQzsM/W/TYLF/GHyBguNpa5ppet2j66EhsFFmj5jAtYUqyxWuslZe6gwRotn8vd67bO1VpPImY78bsINds2hr9s7PfgcCUGBP9LoQm4yNZ4TzumpMRTwK1aPstdwEpbo9r87yJeFeEa3zaA7mKdh7VeErEY0fNZXw2v2Vjfv+EHfcon2n7l5tNBW2e8j+dK7BU41scZnlMh82wf72u9JGI9wi1aPjemqq2zUuulFW5rDLFOy+dq9K6NuVjrSRfHu4SdWj7P2emM83nJkER8hXCyb6zAMD+M2aT10hI9DejU8rncPWRjlo4c/BYaw1XejcBLYcwTWs+VmYewQsvnuO025k6tJ10cnjo2aPk8F1pu8rkFu2h4c/F+i0mBB3wWY3ORSIPrfccksKkY06P1mm94UtEv3pF2BQaKsf7yIFWCdDevaPs1qkYFbve5/buI+4EzvWMFPGL7eVPrpRVulIb/gxF4x8Y8qI0jZU5LhVVaPlej/cXYr38u4kVgnG+ssMAi08cOrdc8NAMXaPlsIxPqYV0/j9IKC6Shn6e5/nxoY+7V9q95I0+FtVo+xzkb+63zJOJJAxN9Y4UBK3y+pLiIJcBlvnGM8ExY/2c/dmXuQTjfuw2Iw5iNWi+NuFYg0vKHvM5CYuvc4NO/MdfZstz08Lk2liuzFOFSLZ+tRXg6jHlW67mIK4DFWj7HbbMxd2k9KXN0Kjyu5Uc9a6ZxnamSat00ok/w/+ojQrVYZ7M2TlKm0wjztXyuRi+HMev+Bu2qoBRawxtVAAAAAElFTkSuQmCC",ne=z(67294),de=Object.defineProperty,ye=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,Ne=(Ue,Ye,it)=>Ye in Ue?de(Ue,Ye,{enumerable:!0,configurable:!0,writable:!0,value:it}):Ue[Ye]=it,Le=(Ue,Ye)=>{for(var it in Ye||(Ye={}))fe.call(Ye,it)&&Ne(Ue,it,Ye[it]);if(ye)for(var it of ye(Ye))ve.call(Ye,it)&&Ne(Ue,it,Ye[it]);return Ue},Re=(Ue,Ye,it)=>new Promise((lt,Bt)=>{var ct=yt=>{try{Ze(it.next(yt))}catch(ht){Bt(ht)}},nt=yt=>{try{Ze(it.throw(yt))}catch(ht){Bt(ht)}},Ze=yt=>yt.done?lt(yt.value):Promise.resolve(yt.value).then(ct,nt);Ze((it=it.apply(Ue,Ye)).next())});const{TextArea:He}=Ce.default,We=({exercise:Ue,loading:Ye,dispatch:it})=>{var lt;const{workSetting:Bt}=Ue,ct=(0,me.useParams)();ct.category=ct.categoryId||ct.exerciseId,ct.categoryId=ct.categoryId||ct.exerciseId;const[nt,Ze]=(0,a.useState)(!1),[yt,ht]=(0,a.useState)(!1);let[Je,ot]=(0,a.useState)({file_list:[],attachment_id:"",show_title:!1,show_body:!1,show_info:!1,show_table:!1,show_user:!1,show_no:!1,show_group:!1,show_phone:!1,show_school_name:!1,export_page_num:40,show_desc:!1,description:""});(0,a.useEffect)(()=>{Ct()},[Bt]),(0,a.useEffect)(()=>{Ue.actionTabs.key==="exportSetting"&&!(Bt!=null&&Bt.exercise_header)&&it({type:"exercise/getWorkSetting",payload:Le({},ct)})},[Ue.actionTabs.key]);const Ct=()=>{var ut,un,Pn,Rn;const bt=JSON.parse(JSON.stringify(Bt));Object.keys(Je).forEach(An=>{var Nn;Je[An]=(Nn=bt==null?void 0:bt.exercise_header)==null?void 0:Nn[An]}),Je.file_list=(ut=bt==null?void 0:bt.exercise_header)!=null&&ut.attachment_id?[{uid:(un=bt==null?void 0:bt.exercise_header)==null?void 0:un.attachment_id,id:(Pn=bt==null?void 0:bt.exercise_header)==null?void 0:Pn.attachment_id,url:(Rn=bt==null?void 0:bt.exercise_header)==null?void 0:Rn.photo_url}]:[],ot(Je)},kt=()=>{var ut,un,Pn;const Rn=JSON.parse(JSON.stringify(Je));Rn.categoryId=ct.categoryId,Rn.attachment_id=((Pn=(un=(ut=Rn.file_list)==null?void 0:ut[0])==null?void 0:un.response)==null?void 0:Pn.id)||null,Mt(Rn)},Mt=ut=>Re(void 0,null,function*(){ht(!0),(yield(0,oe.ZP)(`/api/exercises/${ct==null?void 0:ct.categoryId}/foramt_settings.json`,{method:"post",body:ut})).status===0&&(ke.ZP.success("\u66F4\u65B0\u6210\u529F"),it({type:"exercise/getCommonHeader",payload:Le({},ct)}),it({type:"exercise/getWorkSetting",payload:Le({},ct)}),it({type:"exercise/getExerciseExportHeadData",payload:{id:ct.exerciseId||ct.categoryId,identify:ct.userId||null}}),ht(!1))}),st={disabled:nt,multiple:!1,listType:"picture-card",onPreview:ut=>{y.Z.publish("preview-image",ut.thumbUrl||ut.url)},withCredentials:!0,fileList:Je.file_list,beforeUpload:ut=>ut.size/1024>200?(ke.ZP.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(200KB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20"),!1):!0,action:`${x.Z.API_SERVER}/api/attachments.json`,onChange(ut){let un=ut.fileList.filter(Pn=>!!Pn.status);Je.file_list=un,ot(Object.assign({},Je))},onRemove:ut=>Re(void 0,null,function*(){return Je.file_list=[],ot(Object.assign({},Je)),!0})};return ne.createElement(he.default,{title:"\u5BFC\u51FA\u8BBE\u7F6E",className:Me.modalWrapper,width:900,centered:!0,open:Ue.actionTabs.key==="exportSetting",onOk:()=>kt(),onCancel:()=>{Ct(),it({type:"exercise/setActionTabs",payload:{}})}},ne.createElement("section",{className:Me.exportSettingWrapper},ne.createElement(Fe.Z,{spinning:Ye["exercise/getWorkSetting"]||yt},ne.createElement(xe.Z,{wrap:!1,justify:"space-between"},ne.createElement(pe.Z,null,ne.createElement(xe.Z,{align:"middle"},ne.createElement("div",null,"\u5377\u5934\u5DE6\u89D2\u6807"),ne.createElement("span",{className:Me.tips},"\u56FE\u7247\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A700px*500px\uFF0C\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7200k")),ne.createElement("div",{className:"mt15"},ne.createElement(Se.default,Le({},st),!((lt=Je.file_list)!=null&<.length)&&ne.createElement("div",null,ne.createElement(ze.Z,null),ne.createElement("div",{style:{marginTop:8}},"\u4E0A\u4F20")))),ne.createElement(pe.Z,{span:24,className:"mt15"},ne.createElement(Ae.default,{checked:Je.show_title,disabled:nt,onChange:ut=>{Je.show_title=ut.target.checked,ot(Object.assign({},Je))}},ne.createElement("div",null,"\u5C55\u793A\u8BD5\u5377\u6807\u9898"))),ne.createElement(pe.Z,{span:24,className:"mt15"},ne.createElement(Ae.default,{checked:Je.show_body,disabled:nt,onChange:ut=>{Je.show_body=ut.target.checked,ot(Object.assign({},Je))}},ne.createElement("div",null,"\u5C55\u793A\u8003\u8BD5\u5185\u5BB9\uFF08\u5373\u672C\u8BD5\u5377\u6240\u5C5E\u8BFE\u7A0B\u540D\u79F0\uFF09"))),ne.createElement(pe.Z,{span:24,className:"mt15"},ne.createElement(Ae.default,{checked:Je.show_info,disabled:nt,onChange:ut=>{Je.show_info=ut.target.checked,ot(Object.assign({},Je))}},ne.createElement("div",null,"\u5C55\u793A\u9898\u91CF\u3001\u5206\u503C\u3001\u8003\u8BD5\u65F6\u957F"))),ne.createElement(pe.Z,{span:24,className:"mt15"},ne.createElement(Ae.default,{checked:Je.show_table,disabled:nt,onChange:ut=>{Je.show_table=ut.target.checked,ot(Object.assign({},Je))}},ne.createElement("div",null,"\u5C55\u793A\u5F97\u5206\u3001\u8BC4\u5206\u8868\u683C"))),ne.createElement(xe.Z,{align:"middle",className:`mt20 ${Me.pottedLine}`},ne.createElement(pe.Z,null,ne.createElement("img",{src:ee,alt:""})),ne.createElement(pe.Z,{className:Me.text},"\u5BC6\u5C01\u7EBF\u533A\u57DF\u8BBE\u7F6E"),ne.createElement(pe.Z,null,ne.createElement("img",{src:ee,alt:""}))),ne.createElement(xe.Z,{className:"mt15",justify:"center",style:{width:320}},ne.createElement(Ae.default,{className:"pl8",checked:Je.show_user,disabled:nt,onChange:ut=>{Je.show_user=ut.target.checked,ot(Object.assign({},Je))}},ne.createElement("div",null,"\u59D3\u540D")),ne.createElement(Ae.default,{checked:Je.show_no,disabled:nt,onChange:ut=>{Je.show_no=ut.target.checked,ot(Object.assign({},Je))}},ne.createElement("div",null,"\u5B66\u53F7")),ne.createElement(Ae.default,{checked:Je.show_group,disabled:nt,onChange:ut=>{Je.show_group=ut.target.checked,ot(Object.assign({},Je))}},ne.createElement("div",null,"\u4E13\u4E1A\u73ED\u7EA7")),ne.createElement(Ae.default,{checked:Je.show_school_name,disabled:nt,onChange:ut=>{Je.show_school_name=ut.target.checked,ot(Object.assign({},Je))}},ne.createElement("div",null,"\u5B66\u6821/\u5355\u4F4D")),ne.createElement(Ae.default,{checked:Je.show_phone,disabled:nt,onChange:ut=>{Je.show_phone=ut.target.checked,ot(Object.assign({},Je))}},ne.createElement("div",null,"\u624B\u673A\u53F7"))),ne.createElement("img",{src:te,alt:"",className:"mt15",style:{width:320}}),ne.createElement(pe.Z,{span:24,className:"mt15"},ne.createElement("span",null,"\u6BCF\u9875\u5BFC\u51FA\u6700\u5927\u8BD5\u9898\u6570\uFF1A"),ne.createElement(Ie.Z,{size:"middle",min:1,value:Je.export_page_num?Je.export_page_num:40,onChange:ut=>{Je.export_page_num=ut,ot(Le({},Je))}}),ne.createElement("span",{className:"ml10"},"\u9898")),ne.createElement(xe.Z,{className:"mt15"},ne.createElement(Ae.default,{checked:Je.show_desc,disabled:nt,onChange:ut=>{Je.show_desc=ut.target.checked,ot(Object.assign({},Je))}},ne.createElement("div",null,"\u8003\u8BD5\u987B\u77E5")))),ne.createElement(pe.Z,{className:Me.imgPreviewPart},ne.createElement("div",{className:"pb10"},"\u793A\u4F8B\u56FE\u7247\u9884\u89C8\uFF1A"),ne.createElement("img",{src:E.qz})))),ne.createElement(b.Z,null)))};var Ge=(0,me.connect)(({exercise:Ue,loading:Ye,globalSetting:it})=>({exercise:Ue,loading:Ye.effects,globalSetting:it}))(We)},80193:function(Ft,rt,z){"use strict";z.d(rt,{Z:function(){return te}});var a=z(67294),Ce=z(35973),ke=z(71230),he=z(57399),Fe={wrap:"wrap___SSpd0",img:"img___nbd2O",table:"table___fcP71",totalScore:"totalScore___YxSMe",people:"people___bf9pK",glassSeal:"glassSeal___dYhKO",paperHeader:"paperHeader___gYUbq",exportBtn:"exportBtn___nyRYQ"},xe=z(15835),pe=z(28706),Se=z(23377),Ae=z(52810),Ie=z(11320),ze=z(67294),Me=Object.defineProperty,me=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,y=(ne,de,ye)=>de in ne?Me(ne,de,{enumerable:!0,configurable:!0,writable:!0,value:ye}):ne[de]=ye,x=(ne,de)=>{for(var ye in de||(de={}))oe.call(de,ye)&&y(ne,ye,de[ye]);if(me)for(var ye of me(de))E.call(de,ye)&&y(ne,ye,de[ye]);return ne},b=(ne,de,ye)=>new Promise((fe,ve)=>{var Ne=He=>{try{Re(ye.next(He))}catch(We){ve(We)}},Le=He=>{try{Re(ye.throw(He))}catch(We){ve(We)}},Re=He=>He.done?fe(He.value):Promise.resolve(He.value).then(Ne,Le);Re((ye=ye.apply(ne,de)).next())});const ee=({isPreview:ne=!1,isExportBlank:de=!1,activeTabs:ye,exercise:fe,globalSetting:ve,loading:Ne,user:Le,dispatch:Re,showExportBtn:He=!1,sealStyle:We={}})=>{var Ge,Ue,Ye,it,lt,Bt,ct,nt,Ze,yt,ht,Je,ot,Ct,kt;const Mt=(0,Ce.useParams)(),{userInfo:st}=Le,[ut,un]=(0,a.useState)(),[Pn,Rn]=(0,a.useState)();let bt=(0,a.useRef)(null);const[An,Nn]=(0,a.useState)(21),[Qt,zt]=(0,a.useState)([]),jt=(0,a.useRef)(!0);(0,a.useEffect)(()=>{b(void 0,null,function*(){if(!jt.current)return;jt.current=!1;const qt=yield(0,xe.cV)({id:Mt.exerciseId||Mt.categoryId});qt.status==0&&zt(qt.data)}),(0,pe.W)(ye)||ye==="2"&&sn()},[Mt.userId,Mt.coursesId,Mt.exerciseId,Mt.categoryId,ye]),(0,a.useEffect)(()=>{bt.current&&Nn(bt.current.clientHeight)},[bt.current]),(0,a.useEffect)(()=>{var qt;if((qt=fe.exerciseExportHeadData)!=null&&qt.title){const St=fe.exerciseExportHeadData;un(x({},St||{}));const{table:Ke}=St||{};let ln,Un;(Ke!=null&&Ke.total_singles_scores||Ke!=null&&Ke.total_doubles_scores||Ke!=null&&Ke.total_nulls_scores||Ke!=null&&Ke.total_judges_scores||Ke!=null&&Ke.total_pros_scores||Ke!=null&&Ke.total_shixuns_scores||Ke!=null&&Ke.total_mains_scores||Ke!=null&&Ke.total_combination_scores||Ke!=null&&Ke.total_bpros_scores)&&(ln=Number(Ke==null?void 0:Ke.total_singles_scores)+Number(Ke==null?void 0:Ke.total_doubles_scores)+Number(Ke==null?void 0:Ke.total_nulls_scores)+Number(Ke==null?void 0:Ke.total_judges_scores)+Number(Ke==null?void 0:Ke.total_bpros_scores)+Number(Ke==null?void 0:Ke.total_pros_scores)+Number(Ke==null?void 0:Ke.total_shixuns_scores)+Number(Ke==null?void 0:Ke.total_mains_scores)+Number(Ke==null?void 0:Ke.total_combination_scores)),(Ke!=null&&Ke.singles_scores||Ke!=null&&Ke.doubles_scores||Ke!=null&&Ke.nulls_scores||Ke!=null&&Ke.judges_scores||Ke!=null&&Ke.pros_scores||Ke!=null&&Ke.bpros_scores||Ke!=null&&Ke.shixuns_scores||Ke!=null&&Ke.mains_scores||Ke!=null&&Ke.combination_scores)&&(Un=Number(Ke==null?void 0:Ke.singles_scores)+Number(Ke==null?void 0:Ke.doubles_scores)+Number(Ke==null?void 0:Ke.nulls_scores)+Number(Ke==null?void 0:Ke.judges_scores)+Number(Ke==null?void 0:Ke.pros_scores)+Number(Ke==null?void 0:Ke.bpros_scores)+Number(Ke==null?void 0:Ke.shixuns_scores)+Number(Ke==null?void 0:Ke.mains_scores)+Number(Ke==null?void 0:Ke.combination_scores));const Ca=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:(Ke==null?void 0:Ke.total_singles_scores)||0,doubles_score:(Ke==null?void 0:Ke.total_doubles_scores)||0,nulls_score:(Ke==null?void 0:Ke.total_nulls_scores)||0,judges_score:(Ke==null?void 0:Ke.total_judges_scores)||0,pros_score:(Ke==null?void 0:Ke.total_pros_scores)||0,bpros_score:(Ke==null?void 0:Ke.total_bpros_scores)||0,shixuns_score:(Ke==null?void 0:Ke.total_shixuns_scores)||0,mains_score:(Ke==null?void 0:Ke.total_mains_scores)||0,total_combination_scores:(Ke==null?void 0:Ke.total_combination_scores)||0,total_score:ln||0},{key:"2",name:"\u5B9E\u5F97\u5206",singles_score:(Ke==null?void 0:Ke.singles_scores)||0,doubles_score:(Ke==null?void 0:Ke.doubles_scores)||0,nulls_score:(Ke==null?void 0:Ke.nulls_scores)||0,judges_score:(Ke==null?void 0:Ke.judges_scores)||0,pros_score:(Ke==null?void 0:Ke.pros_scores)||0,bpros_score:(Ke==null?void 0:Ke.bpros_scores)||0,shixuns_score:(Ke==null?void 0:Ke.shixuns_scores)||0,mains_score:(Ke==null?void 0:Ke.mains_scores)||0,total_combination_scores:(Ke==null?void 0:Ke.combination_scores)||0,total_score:Un||0},{key:"3",name:"\u8BC4\u5377\u4EBA"}],Cu=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:(Ke==null?void 0:Ke.total_singles_scores)||0,doubles_score:(Ke==null?void 0:Ke.total_doubles_scores)||0,nulls_score:(Ke==null?void 0:Ke.total_nulls_scores)||0,judges_score:(Ke==null?void 0:Ke.total_judges_scores)||0,pros_score:(Ke==null?void 0:Ke.total_pros_scores)||0,bpros_score:(Ke==null?void 0:Ke.total_bpros_scores)||0,shixuns_score:(Ke==null?void 0:Ke.total_shixuns_scores)||0,mains_score:(Ke==null?void 0:Ke.total_mains_scores)||0,total_combination_scores:(Ke==null?void 0:Ke.total_combination_scores)||0,total_score:ln||0},{key:"2",name:"\u5B9E\u5F97\u5206"},{key:"3",name:"\u8BC4\u5377\u4EBA"}];Rn([...de?Cu:Ca])}},[fe.exerciseExportHeadData]);const sn=()=>b(void 0,null,function*(){const qt={id:Mt.exerciseId||Mt.categoryId,identify:(st==null?void 0:st.login)||null},St=yield(0,xe.iw)(qt);un(St||{});const{table:Ke}=St||{};let ln,Un;(Ke!=null&&Ke.total_singles_scores||Ke!=null&&Ke.total_doubles_scores||Ke!=null&&Ke.total_nulls_scores||Ke!=null&&Ke.total_judges_scores||Ke!=null&&Ke.total_pros_scores||Ke!=null&&Ke.total_bpros_scores||Ke!=null&&Ke.total_shixuns_scores||Ke!=null&&Ke.total_mains_scores||Ke!=null&&Ke.total_combination_scores)&&(ln=Number(Ke==null?void 0:Ke.total_singles_scores)+Number(Ke==null?void 0:Ke.total_doubles_scores)+Number(Ke==null?void 0:Ke.total_nulls_scores)+Number(Ke==null?void 0:Ke.total_bpros_scores)+Number(Ke==null?void 0:Ke.total_judges_scores)+Number(Ke==null?void 0:Ke.total_pros_scores)+Number(Ke==null?void 0:Ke.total_shixuns_scores)+Number(Ke==null?void 0:Ke.total_mains_scores)+Number(Ke==null?void 0:Ke.total_combination_scores)),(Ke!=null&&Ke.singles_scores||Ke!=null&&Ke.doubles_scores||Ke!=null&&Ke.nulls_scores||Ke!=null&&Ke.judges_scores||Ke!=null&&Ke.pros_scores||Ke!=null&&Ke.bpros_scores||Ke!=null&&Ke.shixuns_scores||Ke!=null&&Ke.mains_scores||Ke!=null&&Ke.combination_scores)&&(Un=Number(Ke==null?void 0:Ke.singles_scores)+Number(Ke==null?void 0:Ke.doubles_scores)+Number(Ke==null?void 0:Ke.bpros_scores)+Number(Ke==null?void 0:Ke.nulls_scores)+Number(Ke==null?void 0:Ke.judges_scores)+Number(Ke==null?void 0:Ke.pros_scores)+Number(Ke==null?void 0:Ke.shixuns_scores)+Number(Ke==null?void 0:Ke.mains_scores)+Number(Ke==null?void 0:Ke.combination_scores));const Ca=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:(Ke==null?void 0:Ke.total_singles_scores)||0,doubles_score:(Ke==null?void 0:Ke.total_doubles_scores)||0,nulls_score:(Ke==null?void 0:Ke.total_nulls_scores)||0,judges_score:(Ke==null?void 0:Ke.total_judges_scores)||0,pros_score:(Ke==null?void 0:Ke.total_pros_scores)||0,bpros_score:(Ke==null?void 0:Ke.total_bpros_scores)||0,shixuns_score:(Ke==null?void 0:Ke.total_shixuns_scores)||0,mains_score:(Ke==null?void 0:Ke.total_mains_scores)||0,total_combination_scores:(Ke==null?void 0:Ke.total_combination_scores)||0,total_score:ln||0},{key:"2",name:"\u5B9E\u5F97\u5206",singles_score:(Ke==null?void 0:Ke.singles_scores)||0,doubles_score:(Ke==null?void 0:Ke.doubles_scores)||0,nulls_score:(Ke==null?void 0:Ke.nulls_scores)||0,judges_score:(Ke==null?void 0:Ke.judges_scores)||0,pros_score:(Ke==null?void 0:Ke.pros_scores)||0,bpros_score:(Ke==null?void 0:Ke.bpros_scores)||0,shixuns_score:(Ke==null?void 0:Ke.shixuns_scores)||0,mains_score:(Ke==null?void 0:Ke.mains_scores)||0,total_combination_scores:(Ke==null?void 0:Ke.combination_scores)||0,total_score:Un||0},{key:"3",name:"\u8BC4\u5377\u4EBA"}];Rn(de?[{key:"1",name:"\u5E94\u5F97\u5206"},{key:"2",name:"\u5B9E\u5F97\u5206"},{key:"3",name:"\u8BC4\u5377\u4EBA"}]:Ca)}),vt=[{width:"10%",title:"\u9898\u578B",align:"center",dataIndex:"name",render:qt=>ze.createElement("a",null,qt)},{title:((Ge=Qt==null?void 0:Qt.find(qt=>qt.value==Ae.fw[0].nameType))==null?void 0:Ge.name)||"\u5355\u9009\u9898",align:"center",dataIndex:"singles_score",render:qt=>ze.createElement("a",null,qt==="0.0"?0:qt)},{title:((Ue=Qt==null?void 0:Qt.find(qt=>qt.value==Ae.fw[1].nameType))==null?void 0:Ue.name)||"\u591A\u9009\u9898",align:"center",dataIndex:"doubles_score",render:qt=>ze.createElement("a",null,qt==="0.0"?0:qt)},{title:((Ye=Qt==null?void 0:Qt.find(qt=>qt.value==Ae.fw[3].nameType))==null?void 0:Ye.name)||"\u586B\u7A7A\u9898",align:"center",dataIndex:"nulls_score",render:qt=>ze.createElement("a",null,qt==="0.0"?0:qt)},{title:((it=Qt==null?void 0:Qt.find(qt=>qt.value==Ae.fw[2].nameType))==null?void 0:it.name)||"\u5224\u65AD\u9898",align:"center",dataIndex:"judges_score",render:qt=>ze.createElement("a",null,qt==="0.0"?0:qt)},{title:((lt=Qt==null?void 0:Qt.find(qt=>qt.value==Ae.fw[6].nameType))==null?void 0:lt.name)||"\u7F16\u7A0B\u9898",align:"center",dataIndex:"pros_score",render:qt=>ze.createElement("a",null,qt==="0.0"?0:qt)},{title:((Bt=Qt==null?void 0:Qt.find(qt=>qt.value==Ae.fw[5].nameType))==null?void 0:Bt.name)||"\u5B9E\u8BAD\u9898",align:"center",dataIndex:"shixuns_score",render:qt=>ze.createElement("a",null,qt==="0.0"?0:qt)},{title:((ct=Qt==null?void 0:Qt.find(qt=>qt.value==Ae.fw[4].nameType))==null?void 0:ct.name)||"\u7B80\u7B54\u9898",align:"center",dataIndex:"mains_score",render:qt=>ze.createElement("a",null,qt==="0.0"?0:qt)},{title:((nt=Qt==null?void 0:Qt.find(qt=>qt.value==Ae.fw[7].nameType))==null?void 0:nt.name)||"\u7EC4\u5408\u9898",align:"center",dataIndex:"total_combination_scores",render:qt=>ze.createElement("a",null,qt==="0.0"?0:qt)},{title:((Ze=Qt==null?void 0:Qt.find(qt=>qt.value==Ae.fw[8].nameType))==null?void 0:Ze.name)||"\u7A0B\u5E8F\u586B\u7A7A\u9898",align:"center",dataIndex:"bpros_score",render:qt=>ze.createElement("a",null,qt==="0.0"?0:qt)},{width:"10%",title:"\u603B\u5206",align:"center",dataIndex:"total_score",render:qt=>ze.createElement("a",null,qt==="0.0"?0:qt==null?void 0:qt.toFixed(1))}],{exercise_header:Tt}=ut||{};return ze.createElement(ze.Fragment,null,((Tt==null?void 0:Tt.show_user)||(Tt==null?void 0:Tt.show_no)||(Tt==null?void 0:Tt.show_group))&&ze.createElement("section",{className:Fe.glassSeal,style:We},(Tt==null?void 0:Tt.show_user)&&ze.createElement("span",null,"\u59D3\u540D\uFF1A",ze.createElement("span",null,ut==null?void 0:ut.user)),(Tt==null?void 0:Tt.show_no)&&ze.createElement("span",null,"\u5B66\u53F7\uFF1A",ze.createElement("span",null,ut==null?void 0:ut.student_id)),(Tt==null?void 0:Tt.show_group)&&ze.createElement("span",null,"\u4E13\u4E1A\u73ED\u7EA7\uFF1A",ze.createElement("span",null,ut==null?void 0:ut.group_name)),(Tt==null?void 0:Tt.show_school_name)&&ze.createElement("span",null,"\u5B66\u6821/\u5355\u4F4D\uFF1A",ze.createElement("span",null,ut==null?void 0:ut.school_name)),(Tt==null?void 0:Tt.show_phone)&&ze.createElement("span",null,"\u624B\u673A\u53F7\uFF1A",ze.createElement("span",null,ut==null?void 0:ut.phone))),ze.createElement("section",{className:`${Fe.wrap} ${ne?"pl20":""} `},(ut==null?void 0:ut.photo_url)&&ze.createElement("img",{className:Fe.img,src:`${Ie.Z.API_SERVER}${ut==null?void 0:ut.photo_url}`}),(Tt==null?void 0:Tt.show_title)&&ze.createElement(ke.Z,{className:Fe.paperHeader,justify:"center"},ze.createElement("div",null,ut==null?void 0:ut.title)),(Tt==null?void 0:Tt.show_info)&&ze.createElement("div",{className:"tc c-grey-666 mb20"},"\u5171:\u3010",ut==null?void 0:ut.large_counts,"\u5927\u9898\u3011\u3010",ut==null?void 0:ut.total_count,"\u5C0F\u9898\u3011\u3010 \u6EE1\u5206",ut==null?void 0:ut.score,"\u5206\u3011 \u8003\u8BD5\u65F6\u95F4\uFF1A\u3010",(ut==null?void 0:ut.time)>-1?`${ut==null?void 0:ut.time}\u5206\u949F`:"\u4E0D\u9650","\u3011"),(Tt==null?void 0:Tt.show_desc)&&(((yt=fe==null?void 0:fe.exerciseExportHeadData)==null?void 0:yt.exercise_description)||((ht=fe==null?void 0:fe.commonHeader)==null?void 0:ht.exercise_description))&&ze.createElement("div",{style:{fontSize:14,marginBottom:30,marginTop:20,textAlign:"left",color:"#3A3A3A",maxHeight:"210px",overflowY:"auto"}},ze.createElement("b",null,"\u8BD5\u5377\u987B\u77E5\uFF1A"),ze.createElement("span",null,((Je=fe==null?void 0:fe.exerciseExportHeadData)==null?void 0:Je.exercise_description)||((ot=fe==null?void 0:fe.commonHeader)==null?void 0:ot.exercise_description))),(Tt==null?void 0:Tt.show_table)&&ze.createElement("div",{className:"mt10"},ze.createElement(he.default,{className:Fe.table,columns:vt,dataSource:[...Pn||[]],bordered:!0,pagination:!1})),((Ct=fe==null?void 0:fe.exerciseExportHeadData)==null?void 0:Ct.analysis)&&ze.createElement("span",{style:{justifyContent:"left",wordBreak:"break-all",display:"flex",textAlign:"left",marginTop:"10px"},className:"tc c-grey-333"},`\u8003\u8BD5\u8BC4\u4EF7\uFF1A${(kt=fe==null?void 0:fe.exerciseExportHeadData)==null?void 0:kt.analysis}`)),ze.createElement(Se.Z,null))};var te=(0,Ce.connect)(({exercise:ne,loading:de,user:ye,globalSetting:fe})=>({exercise:ne,globalSetting:fe,user:ye,loading:de.effects}))(ee)},91640:function(Ft,rt,z){"use strict";var a=z(20819),Ce=z(15835),ke=z(9343),he=z(91773),Fe=z(62844),xe=z(85804),pe=z(74330),Se=z(84567),Ae=z(98813),Ie=z(78957),ze=z(67294),Me=z(35973),me=z(11320),oe=z(67294),E=(x,b,ee)=>new Promise((te,ne)=>{var de=ve=>{try{fe(ee.next(ve))}catch(Ne){ne(Ne)}},ye=ve=>{try{fe(ee.throw(ve))}catch(Ne){ne(Ne)}},fe=ve=>ve.done?te(ve.value):Promise.resolve(ve.value).then(de,ye);fe((ee=ee.apply(x,b)).next())});const y=({exercise:x,dispatch:b})=>{var ee,te,ne,de;const ye=(0,Me.useParams)(),[fe]=(0,Me.useSearchParams)(),ve=fe.getAll("exercise_group_id").map(ht=>ht==="all"?ht:Number(ht)),{actionTabs:Ne}=x,[Le]=he.default.useForm(),[Re,He]=(0,ze.useState)(!1),We=(0,ze.useRef)(null),[Ge,Ue]=(0,ze.useState)(!1),[,Ye,it,lt]=(0,ke.U)(Ce.aU,{}),[Bt,ct]=(0,ze.useState)({}),nt=()=>{b({type:"exercise/setActionTabs",payload:{title:""}})},Ze=(ht,Je)=>{Me.history.push(`/classrooms/${ye.coursesId}/exercise/${(ye==null?void 0:ye.categoryId)||(ye==null?void 0:ye.exerciseId)}/sumup?exam_summary_id=${(Je==null?void 0:Je.exam_summary_id)||""}&template=${ht==null?void 0:ht.exam_summary_template_id}&${ht==null?void 0:ht.exercise_group_id.map(ot=>`exercise_group_id=${ot}`).join("&")}`)},yt=()=>E(void 0,null,function*(){var ht,Je,ot,Ct,kt;const Mt=yield it({id:(ye==null?void 0:ye.categoryId)||(ye==null?void 0:ye.exerciseId)});Le.setFieldsValue({exercise_group_id:Ne!=null&&Ne.isEdit&&ve.length>0?ve:["all",...((Je=(ht=Mt==null?void 0:Mt.data)==null?void 0:ht.course_groups)==null?void 0:Je.map(st=>st==null?void 0:st.exercise_group_id))||[]],exam_summary_template_id:Ne!=null&&Ne.isEdit?Number(fe.get("template")):(kt=(Ct=(ot=Mt==null?void 0:Mt.data)==null?void 0:ot.exam_summary_templates)==null?void 0:Ct[0])==null?void 0:kt.id})});return(0,ze.useEffect)(()=>{We.current&&We.current.scrollHeight>134&&Ue(!0)},[We]),(0,ze.useEffect)(()=>{(Ne==null?void 0:Ne.title)==="\u8003\u8BD5\u603B\u7ED3\u8BBE\u7F6E"?yt():Le.resetFields()},[Ne==null?void 0:Ne.title]),oe.createElement(oe.Fragment,null,oe.createElement(Fe.default,{title:Ne.title,width:800,centered:!0,open:(Ne==null?void 0:Ne.title)==="\u8003\u8BD5\u603B\u7ED3\u8BBE\u7F6E",footer:oe.createElement("div",{style:{textAlign:"center"}},oe.createElement(xe.ZP,{type:"primary",onClick:()=>{Le.submit()}},"\u603B\u7ED3\u62A5\u544A\u9884\u89C8")),onCancel:()=>{nt()}},oe.createElement(pe.Z,{spinning:Ye},oe.createElement(he.default,{form:Le,onFinish:ht=>E(void 0,null,function*(){var Je,ot;const Ct=(ot=(Je=lt==null?void 0:lt.data)==null?void 0:Je.exam_summaries)==null?void 0:ot.find(kt=>(kt==null?void 0:kt.exam_summary_template_id)===ht.exam_summary_template_id);if(Ct!=null&&Ct.exam_summary_id){const kt=Fe.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,closeIcon:oe.createElement("i",{className:"iconfont icon-guanbi1 current",style:{fontSize:"10px"},onClick:Mt=>{Mt.preventDefault(),Mt.stopPropagation(),kt.destroy()}}),closable:!0,content:"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u60A8\u6709\u4E00\u4EFD\u5DF2\u751F\u6210\u7684\u603B\u7ED3\u62A5\u544A\uFF0C\u91CD\u65B0\u751F\u6210\u64CD\u4F5C\u4F1A\u5C06\u60A8\u4E4B\u524D\u7684\u7F16\u8F91\u8BB0\u5F55\u91CD\u7F6E\u4E3A\u521D\u59CB\u72B6\u6001\u3002\u662F\u5426\u9700\u8981\u91CD\u65B0\u751F\u6210\uFF1F",onOk:()=>{Ze(ht,Ct),nt()},cancelText:"\u91CD\u65B0\u751F\u6210",okText:"\u67E5\u770B\u5DF2\u6709\u62A5\u544A",onCancel:()=>{Ze(ht,{}),nt()}});return}Ze(ht,Ct),nt()})},oe.createElement("div",{ref:We,className:"mt5 flex flex-wrap gap-20px",style:{maxHeight:Re?"none":"134px",overflow:"hidden",transition:"max-height 0.3s ease",position:"relative"}},oe.createElement(he.default.Item,{name:"exercise_group_id",label:"\u5206\u6790\u5BF9\u8C61",normalize:(ht,Je=[],ot)=>{var Ct,kt;let Mt=ht;const st=((kt=(Ct=lt==null?void 0:lt.data)==null?void 0:Ct.course_groups)==null?void 0:kt.map(ut=>ut==null?void 0:ut.exercise_group_id))||[];return!(Je!=null&&Je.includes("all"))&&(ht.includes("all")||ht.length===st.length)?Mt=[...st,"all"]:ht.includes("all")&&ht.length!==st.length+1?Mt=ht.filter(ut=>ut!=="all"):Je!=null&&Je.includes("all")&&!ht.includes("all")&&(Mt=[]),Mt}},oe.createElement(Se.default.Group,{options:[{label:"\u5168\u90E8",value:"all"},...((te=(ee=lt==null?void 0:lt.data)==null?void 0:ee.course_groups)==null?void 0:te.map(ht=>({value:ht==null?void 0:ht.exercise_group_id,label:`${ht==null?void 0:ht.exercise_group_name}\uFF08${ht==null?void 0:ht.exercise_group_students}\uFF09`})))||[]]})),Ge&&oe.createElement("div",{className:"current",style:{position:"absolute",bottom:24,right:0,lineHeight:"32px"},onClick:()=>He(!Re)},Re?"\u6536\u8D77":"\u5C55\u5F00",oe.createElement("i",{className:"iconfont icon-a-bianzu11 font12"}))),oe.createElement(he.default.Item,{className:"mb0",name:"exam_summary_template_id",label:"\u5206\u6790\u6A21\u677F"},oe.createElement(Ae.ZP.Group,null,oe.createElement(Ie.Z,{className:"mt5",direction:"vertical"},(de=(ne=lt==null?void 0:lt.data)==null?void 0:ne.exam_summary_templates)==null?void 0:de.map((ht,Je)=>oe.createElement(Ae.ZP,{key:Je,value:ht==null?void 0:ht.id},`\u6A21\u677F${Je+1}-${ht==null?void 0:ht.name}`,oe.createElement("a",{className:"ml5",onClick:()=>{var ot,Ct;ct({url:me.Z.API_SERVER+((ot=ht==null?void 0:ht.attachment_info)==null?void 0:ot.url),file_type:(Ct=ht==null?void 0:ht.attachment_info)==null?void 0:Ct.file_type})}},"\u67E5\u770B"))))))))),oe.createElement(a.Z,{close:!0,hasMask:!0,style:{zIndex:9999},data:Bt==null?void 0:Bt.url,type:Bt==null?void 0:Bt.file_type,onClose:()=>ct({})}))};rt.Z=(0,Me.connect)(({exercise:x})=>({exercise:x}))(y)},16199:function(Ft,rt,z){"use strict";z.d(rt,{jM:function(){return ut},ZP:function(){return An},g0:function(){return bt},rK:function(){return Nn},P1:function(){return Pn},PQ:function(){return st},JE:function(){return Rn},$C:function(){return un},eS:function(){return Mt}});var a=z(67294),Ce=z(98813),ke=z(71230),he=z(84567),Fe=z(28802),xe=z(85804),pe={extra:"extra___yTab3",row:"row___HnRCs",md:"md___L1tuZ",title:"title___iSLhz",btn:"btn___C2OtF",boxHead:"boxHead___GfOIb",iframe:"iframe___J6XBA"},Se=z(65226),Ae=z(94184),Ie=z.n(Ae),ze=z(35567),Me=z(35713),me=z(3830),oe=z(15835),E=z(19575),y=z(2453),x=z(62844),b=z(33170),ee=z(88742),te=z(86276),ne=z(94699),de=z.n(ne),ye=z(67294),fe=Object.defineProperty,ve=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable,Re=(Qt,zt,jt)=>zt in Qt?fe(Qt,zt,{enumerable:!0,configurable:!0,writable:!0,value:jt}):Qt[zt]=jt,He=(Qt,zt)=>{for(var jt in zt||(zt={}))Ne.call(zt,jt)&&Re(Qt,jt,zt[jt]);if(ve)for(var jt of ve(zt))Le.call(zt,jt)&&Re(Qt,jt,zt[jt]);return Qt},We=(Qt,zt,jt)=>new Promise((sn,vt)=>{var Tt=Ke=>{try{St(jt.next(Ke))}catch(ln){vt(ln)}},qt=Ke=>{try{St(jt.throw(Ke))}catch(ln){vt(ln)}},St=Ke=>Ke.done?sn(Ke.value):Promise.resolve(Ke.value).then(Tt,qt);St((jt=jt.apply(Qt,zt)).next())}),Ue=({className:Qt,data:zt={},identifier:jt,userAnswer:sn,onFinish:vt})=>{const[Tt,qt]=(0,a.useState)(!1),[St,Ke]=(0,a.useState)({}),ln=()=>new Date().getTime(),Un=Cu=>We(void 0,null,function*(){let Da=E.Base64.decode(zt.code);return sn.length>0&&(sn==null||sn.map(cu=>{cu.multi_line?Da=Da.substring(0,Da.indexOf("@\u2581\u2581@"))+cu.value+Da.substring(Da.indexOf("@\u2581\u2581@")+4):Da=Da.substring(0,Da.indexOf("@\u2581@"))+cu.value+Da.substring(Da.indexOf("@\u2581@")+3)})),yield(0,ee.n4)(Cu,{code:E.Base64.encode(Da),language:zt.language,answers:sn==null?void 0:sn.map(cu=>cu.value)})}),Ca=()=>We(void 0,null,function*(){var Cu;if((Cu=sn==null?void 0:sn.filter(cu=>!cu.value))!=null&&Cu.length){y.ZP.warning("\u8BF7\u5148\u586B\u5199\u4EE3\u7801\u4E4B\u540E\u518D\u63D0\u4EA4");return}qt(!0);const Da=yield(0,b.ZP)(`/api/problems/${jt}/start.json`,{method:"get"}),nr=yield Un(Da==null?void 0:Da.identifier);if((nr==null?void 0:nr.status)===0){let or=function(){return We(this,null,function*(){const{status:Aa,message:Zt,data:xn}=yield(0,ee.rX)(Da==null?void 0:Da.identifier,"submit");if(ln()-cu>10*1e3*(sn==null?void 0:sn.length)){qt(!1),x.default.error({centered:!0,icon:null,okText:"\u77E5\u9053\u5566",title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6",content:"\u8BF7\u68C0\u67E5\u7A0B\u5E8F\u4EE3\u7801\u662F\u5426\u5B58\u5728\u6B7B\u5FAA\u73AF"});return}if(Aa===0){qt(!1),xn.status===2?x.default.error({centered:!0,icon:null,okText:"\u77E5\u9053\u5566",title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}):Ke(xn);return}setTimeout(or,1e3)})};const cu=ln();yield(0,ee.bM)(Da==null?void 0:Da.identifier,{}),or();return}qt(!1)});return ye.createElement("div",null,ye.createElement(xe.ZP,{className:Ie()(Qt),loading:Tt,onClick:Ca},"\u63D0\u4EA4\u4EE3\u7801"),ye.createElement(x.default,{open:!!(St!=null&&St.id),title:"\u8FD0\u884C\u7ED3\u679C",width:1100,destroyOnClose:!0,afterClose:()=>vt==null?void 0:vt(),footer:!1,onOk:()=>Ke({}),onCancel:()=>Ke({})},ye.createElement("div",{style:{maxHeight:600,overflow:"auto",marginBottom:15}},ye.createElement("div",{style:{marginBottom:20,display:"flex",justifyContent:"space-between",fontSize:14}},ye.createElement("div",null,ye.createElement("span",{style:{color:"#666666"}},"\u72B6\u6001"),ye.createElement("span",{style:{marginLeft:12,color:St.status!==0&&"#E30000"}},te.Im[St.status])),ye.createElement("div",null,ye.createElement("span",{style:{color:"#666666"}},"\u63D0\u4EA4\u65F6\u95F4"),ye.createElement("span",{style:{marginLeft:12}},de()(St.created_at).format("YYYY-MM-DD HH:mm:ss"))),ye.createElement("div",null,ye.createElement("span",{style:{color:"#666666"}},"\u8BED\u8A00"),ye.createElement("span",{style:{marginLeft:12}},St.language)),ye.createElement("div",null,ye.createElement("span",{style:{color:"#666666"}},"\u6267\u884C\u7528\u65F6"),ye.createElement("span",{style:{marginLeft:12}},St.execute_time,"ms"))),ye.createElement(te.Y4,He({highlightEndEntry:!0},St)))))},Ye=z(67294),it=Object.defineProperty,lt=Object.defineProperties,Bt=Object.getOwnPropertyDescriptors,ct=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,yt=(Qt,zt,jt)=>zt in Qt?it(Qt,zt,{enumerable:!0,configurable:!0,writable:!0,value:jt}):Qt[zt]=jt,ht=(Qt,zt)=>{for(var jt in zt||(zt={}))nt.call(zt,jt)&&yt(Qt,jt,zt[jt]);if(ct)for(var jt of ct(zt))Ze.call(zt,jt)&&yt(Qt,jt,zt[jt]);return Qt},Je=(Qt,zt)=>lt(Qt,Bt(zt)),ot=(Qt,zt,jt)=>new Promise((sn,vt)=>{var Tt=Ke=>{try{St(jt.next(Ke))}catch(ln){vt(ln)}},qt=Ke=>{try{St(jt.throw(Ke))}catch(ln){vt(ln)}},St=Ke=>Ke.done?sn(Ke.value):Promise.resolve(Ke.value).then(Tt,qt);St((jt=jt.apply(Qt,zt)).next())});const Ct=["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"],kt=({data:Qt})=>{const{question_type:zt,group_topic_id:jt,commit_wrong_question:{analysis:sn,standard_answer_show:vt,tag_discipline_names:Tt,standard_answer:qt}={}}=Qt,St=()=>{if([0,1,2].includes(zt))return Ye.createElement("div",{className:pe.row},Ye.createElement("div",null,"\u7B54\xA0\xA0\xA0\xA0\u6848"),Ye.createElement("div",{className:"c-black"},vt));if([3].includes(zt))return qt==null?void 0:qt.map((Ke,ln)=>{var Un,Ca;return Ye.createElement(a.Fragment,{key:ln},Ye.createElement("div",{className:pe.row},Ye.createElement("div",null,"\u7B54\xA0\xA0\xA0\xA0\u6848",ln+1),(Ke==null?void 0:Ke.model)===1&&Ye.createElement("div",{className:"c-black"},(Un=Ke==null?void 0:Ke.answer_text)==null?void 0:Un.join("\u3001")),(Ke==null?void 0:Ke.model)===2&&Ye.createElement("div",{className:"flex gap-10px"},(Ca=Ke==null?void 0:Ke.answer_text)==null?void 0:Ca.map((Cu,Da)=>Ye.createElement(Me.Z,{key:ln+""+Da,disabled:!0,value:Cu})))))});if([4].includes(zt))return Ye.createElement("div",{className:pe.row},Ye.createElement("div",null,"\u7B54\xA0\xA0\xA0\xA0\u6848"),Ye.createElement("div",{className:"c-black"},qt==null?void 0:qt[0]));if([6].includes(zt))return Ye.createElement("div",{className:pe.row},Ye.createElement("div",null,"\u7B54\xA0\xA0\xA0\xA0\u6848"),Ye.createElement(Se.Z,{className:pe.md,value:qt||"-"}));if([8].includes(zt))return qt==null?void 0:qt.map((Ke,ln)=>Ye.createElement(a.Fragment,{key:ln},Ye.createElement("div",{className:pe.row},Ye.createElement("div",null,"\u7B54\xA0\xA0\xA0\xA0\u6848",ln+1),Ye.createElement("div",{className:"c-black"},Ke==null?void 0:Ke.answer_text))))};return Ye.createElement("div",{className:pe.extra},St(),Ye.createElement("div",{className:pe.row},Ye.createElement("div",null,"\u89E3\xA0\xA0\xA0\xA0\u6790"),Ye.createElement(Se.Z,{className:pe.md,value:sn||"-"})),Ye.createElement("div",{className:pe.row},Ye.createElement("div",null,"\u77E5\u8BC6\u70B9"),Ye.createElement("div",{className:"c-black"},Tt==null?void 0:Tt.join("\u3001"))))},Mt=Qt=>{const zt=sn=>{const{user_answer:vt,standard_answer:Tt,standard_answers:qt,standard_answer_show:St,tag_discipline_names:Ke,analysis:ln,user_answer_infos:Un}=sn;return sn={user_answer_is_right:(Un==null?void 0:Un.user_answer_is_right)===void 0?null:Un==null?void 0:Un.user_answer_is_right,user_answer:vt,analysis:ln,standard_answer_show:St,tag_discipline_names:Ke,standard_answer:qt||Tt},sn};return Qt.map((sn,vt)=>(sn.q_position=vt+1,sn.commit_wrong_question=zt(sn),[7].includes(sn==null?void 0:sn.question_type)&&(sn.commit_wrong_question.sub_exercise_questions=sn.sub_exercise_questions.map(Tt=>zt(Tt))),sn))},st=({data:Qt={},value:zt,onChange:jt})=>{const{question_title:sn,question_choices:vt,q_position:Tt,commit_wrong_question:{user_answer_is_right:qt,user_answer:St}={}}=Qt,Ke=qt!==void 0,ln=Un=>{const Ca=Un.target.value;jt(Ca)};return Ye.createElement("div",{className:pe.question},Ye.createElement(Se.Z,{className:Ie()(pe.title,pe.md),value:`${Tt}\u3001`+sn}),Ye.createElement(Ce.ZP.Group,{disabled:Ke,value:Ke?St==null?void 0:St[0]:zt,onChange:ln,className:Ke&&`edu-radio-${qt?"green":"red"}`},vt==null?void 0:vt.map((Un,Ca)=>Ye.createElement("div",{key:Ca},Ye.createElement(Ce.ZP,{value:Un==null?void 0:Un.choice_id,className:"mb20"},Ye.createElement(ke.Z,{align:"middle",wrap:!1,className:"c-black ml5"},Ye.createElement("span",{className:"mr5 c-black"},Ct[Ca],"."),Ye.createElement(Se.Z,{className:pe.md,value:Un==null?void 0:Un.choice_text})))))),Ke&&Ye.createElement(kt,{data:Qt}))},ut=({data:Qt={},value:zt,onChange:jt})=>{const{question_title:sn,question_choices:vt,q_position:Tt,commit_wrong_question:{user_answer_is_right:qt,user_answer:St}={}}=Qt,Ke=qt!==void 0,ln=Un=>{jt(Un)};return Ye.createElement("div",{className:pe.question},Ye.createElement(Se.Z,{className:Ie()(pe.title,pe.md),value:`${Tt}\u3001`+sn}),Ye.createElement(he.default.Group,{disabled:Ke,style:{flexDirection:"column"},value:Ke?St:zt,onChange:ln,className:Ke&&`edu-checkbox-${qt?"green":"red"}`},vt==null?void 0:vt.map((Un,Ca)=>Ye.createElement("div",{key:Ca},Ye.createElement(he.default,{value:Un==null?void 0:Un.choice_id,className:"mb20"},Ye.createElement(ke.Z,{align:"middle",wrap:!1,className:"c-black ml5"},Ye.createElement("span",{className:"mr5 c-black"},Ct[Ca],"."),Ye.createElement(Se.Z,{className:pe.md,value:Un==null?void 0:Un.choice_text})))))),Ke&&Ye.createElement(kt,{data:Qt}))},un=({data:Qt={},value:zt,onChange:jt})=>{const{question_title:sn,question_choices:vt,q_position:Tt,commit_wrong_question:{user_answer_is_right:qt,user_answer:St}={}}=Qt,Ke=qt!==void 0,ln=Un=>{const Ca=Un.target.value;jt(Ca)};return Ye.createElement("div",{className:pe.question},Ye.createElement(Se.Z,{className:Ie()(pe.title,pe.md),value:`${Tt}\u3001`+sn}),Ye.createElement(Ce.ZP.Group,{disabled:Ke,value:Ke?St==null?void 0:St[0]:zt,onChange:ln,className:Ke&&`edu-radio-${qt?"green":"red"}`},vt==null?void 0:vt.map((Un,Ca)=>Ye.createElement("div",{key:Ca},Ye.createElement(Ce.ZP,{value:Un==null?void 0:Un.choice_id,className:"mb20"},Ye.createElement(ke.Z,{align:"middle",wrap:!1,className:"c-black ml5"},Ye.createElement(Se.Z,{className:pe.md,value:Un==null?void 0:Un.choice_text})))))),Ke&&Ye.createElement(kt,{data:Qt}))},Pn=({data:Qt={},value:zt,onChange:jt})=>{const[sn,vt]=(0,a.useState)([]),{question_title:Tt,q_position:qt,standard_answer:St,commit_wrong_question:{user_answer_is_right:Ke,user_answer:ln}={}}=Qt,Un=Ke!==void 0,Ca=Cu=>{jt(Cu)};return(0,a.useEffect)(()=>{if(Un){vt(ln);return}if(zt){vt(zt);return}const Cu=St==null?void 0:St.map(Da=>Je(ht({},Da),{exercise_choice_id:Da.position,answer_text:""}));vt(Cu)},[]),Ye.createElement("div",{className:pe.question},Ye.createElement(Se.Z,{className:Ie()(pe.title,pe.md),value:`${qt}\u3001`+Tt}),Ye.createElement("div",{className:"flex flex-col gap-20px mb20"},sn==null?void 0:sn.map((Cu,Da)=>Ye.createElement(ke.Z,{align:"middle",wrap:!1},Ye.createElement("div",{className:"mr10"},"\u586B\u7A7A\u9879",Da+1),Ye.createElement("div",{className:"flex-1"},(Cu==null?void 0:Cu.model)===1?Ye.createElement(Fe.default,{placeholder:"\u8BF7\u8F93\u5165\u7B54\u6848",disabled:Un,value:Cu==null?void 0:Cu.answer_text,onChange:nr=>{sn[Da].answer_text=nr.target.value,vt([...sn]),Ca(sn)}}):Ye.createElement(Me.Z,{value:Cu==null?void 0:Cu.answer_text,disabled:Un,onChange:nr=>{sn[Da].answer_text=nr,vt([...sn]),Ca(sn)}}))))),Un&&Ye.createElement(kt,{data:Qt}))},Rn=({data:Qt={},value:zt,onChange:jt})=>{const{question_title:sn,q_position:vt,commit_wrong_question:{user_answer_is_right:Tt,user_answer:qt}={}}=Qt,St=Tt!==void 0,Ke=ln=>{jt(ln)};return Ye.createElement("div",{className:pe.question},Ye.createElement(Se.Z,{className:Ie()(pe.title,pe.md),value:`${vt}\u3001`+sn}),St?Ye.createElement("div",{style:{border:"1px solid #dcdcdc"},className:"mb20 p20 c-black"},qt==null?void 0:qt[0]):Ye.createElement(ze.Z,{watch:!0,onChange:Ke,defaultValue:zt}),St&&Ye.createElement(kt,{data:Qt}))},bt=({showEntryAnswer:Qt,updateData:zt,examPaperId:jt,params:sn,data:vt={}})=>{const[Tt,qt]=(0,a.useState)(!1),[St,Ke]=(0,a.useState)(""),[ln,Un]=(0,a.useState)("none"),Ca=(0,a.useRef)(),{question_id:Cu,question_title:Da,q_position:nr,languages:cu,description:or,hack_identifier:Aa,commit_wrong_question:{user_answer_is_right:Zt}={}}=vt,vl=typeof Qt!="undefined"?Qt:!(Zt!==void 0),Er=()=>ot(void 0,null,function*(){if(qt(!0),Aa){const Pa=yield(0,oe.nF)({id:Aa});(Pa==null?void 0:Pa.status)===0&&(Ke(`/myproblems/${Pa.identifier}?type=exercises&exercisesId=${jt}&coursesId=coursesId&login=${sn.login}&questionId=${Cu}`),Un("block"))}qt(!1)}),er=Pa=>{Pa.data==="backExercise"&&(Un("none"),Ke(""),zt())};return(0,a.useEffect)(()=>(window.addEventListener("message",er),()=>{window.removeEventListener("message",er)}),[]),Ye.createElement("div",{className:pe.question},Ye.createElement(Se.Z,{className:Ie()(pe.title,pe.md),value:`${nr}\u3001`+Da}),vl&&Ye.createElement("div",{className:pe.boxHead},Ye.createElement(me.Z,{title:"\u7F16\u7A0B\u8BED\u8A00",dataSource:cu}),Ye.createElement(xe.ZP,{loading:Tt,onClick:Er,className:pe.btn},"\u8FDB\u5165\u7B54\u9898")),Ye.createElement("div",{style:{border:"1px solid #dcdcdc"},className:"mb20 p20 c-black"},Ye.createElement(Se.Z,{className:pe.md,value:or})),!vl&&Ye.createElement(kt,{data:vt}),Ye.createElement("iframe",{style:{display:ln},className:pe.iframe,src:St,ref:Ca}))},An=({showEntryAnswer:Qt,updateData:zt,data:jt={},value:sn,onChange:vt})=>{const[Tt,qt]=(0,a.useState)([]),{code:St,hack_identifier:Ke,question_title:ln,q_position:Un,standard_answer_with_score:Ca,commit_wrong_question:{user_answer_is_right:Cu,user_answer:Da}={}}=jt,cu=typeof Qt!="undefined"?Qt:!(Cu!==void 0),or=Aa=>{vt(Aa)};return(0,a.useEffect)(()=>{if(Da){const Zt=Da==null?void 0:Da.map(xn=>Je(ht({},xn),{exercise_choice_id:xn==null?void 0:xn.choice_id,value:xn.answer_text}));qt(Zt),Qt===!0&&or(Zt);return}if(sn){qt(sn);return}const Aa=Ca==null?void 0:Ca.map(Zt=>Je(ht({},Zt),{exercise_choice_id:Zt.position,answer_text:"",score:""}));qt(Aa)},[]),Ye.createElement("div",{className:pe.question},Ye.createElement(Se.Z,{className:Ie()(pe.title,pe.md),value:`${Un}\u3001`+ln}),cu&&Ye.createElement("div",{className:pe.boxHead},Ye.createElement("div",{style:{color:"#FA6400"}},Ye.createElement("i",{className:"iconfont icon-tishi9 font14 mr8"}),"\u6CE8\u610F\uFF1A\u586B\u5199\u7B54\u6848\u540E\uFF0C\u5FC5\u987B\u63D0\u4EA4\u4EE3\u7801\u8FDB\u884C\u8BC4\u6D4B\uFF0C\u5426\u5219\u65E0\u6CD5\u5F97\u5206"),Ye.createElement(Ue,{className:pe.btn,data:jt,onFinish:zt,userAnswer:Tt,identifier:Ke})),Ye.createElement("div",{style:{border:"1px solid #dcdcdc"},className:"mb20 p20 c-black"},Ye.createElement(Se.Z,{disabledFill:!cu,programFillValue:Tt,showProgramFill:!0,onFillChange:(Aa,Zt)=>{var xn;Tt[Number(Zt)].answer_text=(xn=Aa[Number(Zt)])==null?void 0:xn.value,qt([...Tt]),or(Tt)},value:E.Base64.decode(St||"")})),!cu&&Ye.createElement(kt,{data:jt}))},Nn=({data:Qt={},value:zt,onChange:jt})=>{const[sn,vt]=(0,a.useState)([]),[Tt,qt]=(0,a.useState)([]),{question_title:St,q_position:Ke,commit_wrong_question:ln,sub_exercise_questions:Un}=Qt,Ca=(Cu,Da)=>{sn[Da]=Cu,vt([...sn]),jt(sn)};return(0,a.useEffect)(()=>{const Cu=Un==null?void 0:Un.map((Da,nr)=>{var cu;return Je(ht({},Da),{q_position:`${Ke}.${nr+1}`,commit_wrong_question:(cu=ln==null?void 0:ln.sub_exercise_questions)==null?void 0:cu[nr]})});qt(Cu)},[]),(0,a.useEffect)(()=>{if(zt){vt(zt);return}const Cu=Array(Un==null?void 0:Un.length).fill(void 0);vt(Cu)},[]),Ye.createElement("div",{className:pe.question},Ye.createElement(Se.Z,{className:Ie()(pe.title,pe.md),value:`${Ke}\u3001`+St}),Ye.createElement("div",{className:"flex flex-col gap-20px"},Tt==null?void 0:Tt.map((Cu,Da)=>{const nr=sn[Da];return Ye.createElement(a.Fragment,{key:Da},(Cu==null?void 0:Cu.question_type)===0&&Ye.createElement(st,{value:nr,data:Cu,onChange:cu=>Ca(cu,Da)}),(Cu==null?void 0:Cu.question_type)===1&&Ye.createElement(ut,{value:nr,data:Cu,onChange:cu=>Ca(cu,Da)}),(Cu==null?void 0:Cu.question_type)===2&&Ye.createElement(un,{value:nr,data:Cu,onChange:cu=>Ca(cu,Da)}),(Cu==null?void 0:Cu.question_type)===3&&Ye.createElement(Pn,{value:nr,data:Cu,onChange:cu=>Ca(cu,Da)}),(Cu==null?void 0:Cu.question_type)===4&&Ye.createElement(Rn,{value:nr,data:Cu,onChange:cu=>Ca(cu,Da)}))})))}},99543:function(Ft,rt,z){"use strict";var a=z(67294),Ce=z(62844),ke=z(33170),he=z(35973),Fe=z(67294),xe=(Se,Ae,Ie)=>new Promise((ze,Me)=>{var me=y=>{try{E(Ie.next(y))}catch(x){Me(x)}},oe=y=>{try{E(Ie.throw(y))}catch(x){Me(x)}},E=y=>y.done?ze(y.value):Promise.resolve(y.value).then(me,oe);E((Ie=Ie.apply(Se,Ae)).next())});const pe=({exercise:Se,dispatch:Ae,init:Ie,haveInit:ze=!1})=>{const Me=(0,he.useParams)(),[me,oe]=(0,a.useState)(!1);let[E,y]=(0,a.useState)();const[x,b]=(0,a.useState)(!1),[ee,te]=(0,a.useState)(!1);(0,a.useEffect)(()=>{Se.actionTabs.key==="\u5355\u4E2A\u52A0\u5165\u8BD5\u5377\u5E93"&&ne()},[Se.actionTabs]);function ne(){return xe(this,null,function*(){var de,ye;let fe=yield(0,ke.ZP)(`/api/courses/${Me==null?void 0:Me.coursesId}/exercises/check_exercise_cover.json`,{method:"post",body:{check_ids:Se.actionTabs.selectArrs}});if(((de=fe==null?void 0:fe.cover_exercises)==null?void 0:de.length)>0)oe(!0),y((ye=fe==null?void 0:fe.cover_exercises)==null?void 0:ye[0]);else{let ve=yield(0,ke.ZP)(`/api/courses/${Me==null?void 0:Me.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:Se.actionTabs.selectArrs}});Ae({type:"exercise/setActionTabs",payload:{key:""}}),(ve==null?void 0:ve.status)===0&&(ze&&Ie(),Ce.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u52A0\u5165\u6210\u529F\uFF01\u8BD5\u5377\u4E2D\u65B0\u5EFA\u7684\u8BD5\u9898\u5DF2\u4E3A\u60A8\u81EA\u52A8\u540C\u6B65\u81F3\u8BD5\u9898\u5E93~",okText:"\u524D\u5F80\u8BD5\u5377\u5E93",cancelText:"\u7A0D\u540E\u518D\u8BF4",onOk:()=>{he.history.push("/paperlibrary")}}))}})}return Fe.createElement("div",null,Fe.createElement(Ce.default,{open:me,centered:!0,onCancel:de=>xe(void 0,null,function*(){if(de.target.outerText==="\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377"){b(!0);let ye=yield(0,ke.ZP)(`/api/courses/${Me==null?void 0:Me.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:Se.actionTabs.selectArrs,update:1}});Ae({type:"exercise/setActionTabs",payload:{key:""}}),b(!1),(ye==null?void 0:ye.status)===0&&(ze&&Ie(),oe(!1),Ce.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u52A0\u5165\u6210\u529F\uFF01\u8BD5\u5377\u4E2D\u65B0\u5EFA\u7684\u8BD5\u9898\u5DF2\u4E3A\u60A8\u81EA\u52A8\u540C\u6B65\u81F3\u8BD5\u9898\u5E93~",okText:"\u524D\u5F80\u8BD5\u5377\u5E93",cancelText:"\u7A0D\u540E\u518D\u8BF4",onOk:()=>{he.history.push("/paperlibrary")}}))}else oe(!1)}),cancelButtonProps:{loading:x},okText:"\u5F62\u6210\u65B0\u8BD5\u5377",cancelText:"\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377",okButtonProps:{loading:ee},onOk:()=>xe(void 0,null,function*(){te(!0);let de=yield(0,ke.ZP)(`/api/courses/${Me==null?void 0:Me.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:Se.actionTabs.selectArrs}});te(!1),(de==null?void 0:de.status)===0&&(ze&&Ie(),Ae({type:"exercise/setActionTabs",payload:{key:""}}),oe(!1),Ce.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u52A0\u5165\u6210\u529F\uFF01\u8BD5\u5377\u4E2D\u65B0\u5EFA\u7684\u8BD5\u9898\u5DF2\u4E3A\u60A8\u81EA\u52A8\u540C\u6B65\u81F3\u8BD5\u9898\u5E93~",okText:"\u524D\u5F80\u8BD5\u5377\u5E93",cancelText:"\u7A0D\u540E\u518D\u8BF4",onOk:()=>{he.history.push("/paperlibrary")}}))}),title:"\u52A0\u5165\u8BD5\u5377\u5E93\u63D0\u793A"},Fe.createElement("div",null,Fe.createElement("p",null,"\u8BE5\u8BD5\u5377\u5728\u8BD5\u5377\u5E93\u91CD\u590D\uFF0C\u662F\u5426\u9700\u8981\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377\uFF1F"),Fe.createElement("div",null,Fe.createElement("div",null,"\u8BD5\u5377\uFF1A",E==null?void 0:E.origin_exercise_nam),Fe.createElement("div",null,"\u539F\u8BD5\u5377\uFF1A",Fe.createElement("a",{href:`/paperlibrary/see/${E==null?void 0:E.examination_bank_id}?defaultActiveKey=0`,target:"_blank"},E==null?void 0:E.examination_bank_name))))))};rt.Z=(0,he.connect)(({exercise:Se})=>({exercise:Se}))(pe)},76223:function(Ft,rt,z){"use strict";z.d(rt,{Z:function(){return ve}});var a=z(67294),Ce=z(62844),ke=z(71230),he=z(15746),Fe=z(88044),xe=z(57399),pe=z(85804),Se=z(30001),Ae=z(33170),Ie={cstuModal:"cstuModal___aIPVR",removeStyle:"removeStyle___wY4gp",bottom:"bottom___a8tK0",yes:"yes___Zhc4z",no:"no___Ngwsa",Onerow:"Onerow___Q59ve",searchMember:"searchMember___Jj460",searchMemberHeader:"searchMemberHeader___SxfUY"},ze=z(35973),Me=z(96622),me=z(67294),oe=Object.defineProperty,E=Object.defineProperties,y=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,te=(Ne,Le,Re)=>Le in Ne?oe(Ne,Le,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ne[Le]=Re,ne=(Ne,Le)=>{for(var Re in Le||(Le={}))b.call(Le,Re)&&te(Ne,Re,Le[Re]);if(x)for(var Re of x(Le))ee.call(Le,Re)&&te(Ne,Re,Le[Re]);return Ne},de=(Ne,Le)=>E(Ne,y(Le)),ye=(Ne,Le,Re)=>new Promise((He,We)=>{var Ge=it=>{try{Ye(Re.next(it))}catch(lt){We(lt)}},Ue=it=>{try{Ye(Re.throw(it))}catch(lt){We(lt)}},Ye=it=>it.done?He(it.value):Promise.resolve(it.value).then(Ge,Ue);Ye((Re=Re.apply(Ne,Le)).next())});const fe=({visible:Ne,setVisible:Le,onK:Re,selectKeys:He,selectRows:We,appointStudent:Ge,modalParams:Ue,courseId:Ye})=>{const it=(0,ze.useParams)(),[lt,Bt]=(0,a.useState)(!1),[ct,nt]=(0,a.useState)(!1),[Ze,yt]=(0,a.useState)([]),[ht,Je]=(0,a.useState)([]),[ot,Ct]=(0,a.useState)([]),[kt,Mt]=(0,a.useState)("all"),[st,ut]=(0,a.useState)("all");let[un,Pn]=(0,a.useState)(!0);const[Rn,bt]=(0,a.useState)([{value:"all",label:"\u5168\u90E8\u5206\u73ED"}]),[An,Nn]=(0,a.useState)({page:1,limit:1e4,status:null,course_group_id:null,keywords:"",sort_by:null,direction:null}),Qt={selectedRowKeys:ht,columnWidth:40,hideSelectAll:!0,onSelect:(Tt,qt,St)=>{let Ke=!0;for(let ln=0;ln{if(Tt&&St.length>0){St.forEach(Ke=>{ht.push(Ke.user_id),ot.push(Ke)}),Je([...ht]),Ct([...ot]);return}if(!Tt&&St.length>0){let Ke=[],ln=[];const Un=new Set(St),Ca=new Set(ht),Cu=new Set(ot);Ke=[...Ca].filter(Da=>[...Un].every(nr=>nr.user_id!==Da)),ln=[...Cu].filter(Da=>[...Un].every(nr=>nr.user_id!==Da.user_id)),Je([...Ke]),Ct([...ln])}}};(0,a.useEffect)(()=>{Ne&&He&&(Je([...He]),Ct(We))},[Ne,He]),(0,a.useEffect)(()=>{Ne&&(!Ge&&Ue?An.status=Ue:An.status=null,Nn(ne({},An)),jt())},[Ne,Ge,Ue]);const zt=[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",ellipsis:!0,fixed:"left",width:100,render:(Tt,qt,St)=>me.createElement("span",{style:{color:"#333"}},St+1)},{title:"\u59D3\u540D",dataIndex:"user_name",key:"user_name",ellipsis:!0,render:(Tt,qt,St)=>me.createElement("span",null,Tt)},{title:"\u5B66\u53F7",dataIndex:"student_id",key:"student_id",ellipsis:!0,render:(Tt,qt,St)=>me.createElement("span",{style:{color:"#666"}},Tt)},{title:"\u5206\u73ED1",dataIndex:"user_group_name",key:"user_group_name",align:"left",ellipsis:!0,render:(Tt,qt)=>me.createElement("span",null,Tt)},{title:"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",key:"score",sorter:!0,render:(Tt,qt)=>me.createElement("span",null,Tt||"--")},{title:"\u72B6\u6001",dataIndex:"status_cn",key:"status_cn",align:"center",ellipsis:!0,render:(Tt,qt)=>me.createElement("span",null,Tt)}].filter(Tt=>Ue===1||Ue===2?Tt.title!=="\u72B6\u6001":!0),jt=()=>ye(void 0,null,function*(){var Tt,qt,St;nt(!0);const Ke=yield(0,Ae.ZP)(`/api/exercises/${it.categoryId||Ye}/wait_make_up_students.json`,{method:"get",params:de(ne({},An),{keywords:(Tt=An==null?void 0:An.keywords)==null?void 0:Tt.trim()})});if(Ke.status===0){const ln=((St=(qt=Ke==null?void 0:Ke.data)==null?void 0:qt.all_course_groups)==null?void 0:St.map(Un=>({value:Un==null?void 0:Un.id,label:Un==null?void 0:Un.name})))||[];bt([{value:"all",label:"\u5168\u90E8\u5206\u73ED"},...ln]),yt(Ke.data)}nt(!1)}),sn=()=>{An.page=1,An.status=null,An.course_group_id=null,An.keywords="",Mt("all"),ut("all"),Je([]),Ct([]),Nn(ne({},An)),Ge&&Re(ht==null?void 0:ht.length,ht,ot)},vt=()=>{An.page=1,An.status=null,An.course_group_id=null,An.keywords="",Nn(ne({},An)),Mt("all"),ut("all"),Je([]),Ct([]),Le(!1)};return me.createElement(Ce.default,{centered:!0,className:Ie.cstuModal,title:Ue===1?"\u7F3A\u8003\u5B66\u751F":Ue===2?"\u672A\u53CA\u683C\u5B66\u751F":"\u9009\u62E9\u8865\u8003\u5B66\u751F",open:Ne,width:1200,footer:null,onCancel:()=>{vt()}},me.createElement(ke.Z,{style:{marginBottom:"20px",marginTop:"15px",display:"flex",alignItems:"center",justifyContent:"space-between"}},me.createElement(ke.Z,null,me.createElement(he.Z,null,me.createElement(Fe.default,{size:"large",value:kt,style:{width:200,marginRight:20},onChange:Tt=>{Mt(Tt),Tt==="all"?An.course_group_id=null:An.course_group_id=Tt,An.page=1,Nn(ne({},An)),jt()},options:Rn})),Ge&&me.createElement(he.Z,null,me.createElement(Fe.default,{size:"large",value:st,style:{width:200},onChange:Tt=>{ut(Tt),Tt==="all"?An.status=null:An.status=Tt,An.page=1,Nn(ne({},An)),jt()},options:[{value:"all",label:"\u5168\u90E8\u72B6\u6001"},{value:"1",label:"\u7F3A\u8003"},{value:"2",label:"\u672A\u53CA\u683C"},{value:"3",label:"\u53CA\u683C"}]}))),me.createElement(he.Z,null,me.createElement(Se.t7,{style:{width:300,marginLeft:15},value:An.keywords,allowClear:!0,onChange:Tt=>{An.keywords=Tt,An.page=1,Nn(ne({},An)),jt()},placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u5B66\u53F7\u8FDB\u884C\u641C\u7D22"}))),me.createElement(ke.Z,{align:"middle",className:"mb30"},me.createElement(he.Z,{span:14},me.createElement("div",{className:"flexd-table-header"},me.createElement(xe.default,{pagination:!1,dataSource:[],columns:zt,rowSelection:Ge?Qt:null,rowKey:Tt=>Tt.user_id})),me.createElement("div",null,me.createElement(xe.default,{rowSelection:Ge?Qt:null,columns:zt,showHeader:!1,style:{minHeight:390},scroll:{y:390},rowKey:Tt=>Tt.user_id,loading:ct,dataSource:Ze==null?void 0:Ze.exercise_users,onChange:(Tt,qt,St)=>{An.page=Tt==null?void 0:Tt.current,An.limit=Tt==null?void 0:Tt.pageSize,St!=null&&St.order?(An.sort_by=St==null?void 0:St.field,An.direction=(St==null?void 0:St.order)==="ascend"?"asc":"desc"):(An.sort_by=null,An.direction=null),Nn(ne({},An)),jt()},pagination:!1}))),me.createElement(he.Z,{span:1},me.createElement("img",{src:Me,style:{marginLeft:10}})),me.createElement(he.Z,{span:9,style:{display:"flex",justifyContent:"flex-end"}},me.createElement("div",{className:Ie.searchMember,style:{width:550}},me.createElement(ke.Z,{className:Ie.searchMemberHeader},me.createElement(he.Z,{className:"ml30",flex:"100px"},"\u59D3\u540D"),me.createElement(he.Z,{flex:"110px"},"\u5B66\u53F7"),me.createElement(he.Z,{flex:"120px",style:{marginLeft:5}},"\u5206\u73ED")),me.createElement("div",{style:{overflow:"auto",height:390}},ot==null?void 0:ot.map((Tt,qt)=>me.createElement(ke.Z,{key:qt,align:"middle",style:{height:48,lineHeight:"48px",paddingLeft:30,borderBottom:"1px solid rgba(48,97,208,0.1)"}},me.createElement(he.Z,{flex:"100px"},Tt.user_name),me.createElement(he.Z,{flex:"110px"},Tt.student_id),me.createElement(he.Z,{flex:"120px",style:{marginLeft:5}},Tt.user_group_name),me.createElement(he.Z,{style:{marginLeft:10}},me.createElement("i",{className:"iconfont icon-shanchudiao current",onClick:()=>{Ct(ot.filter(St=>St.user_id!=Tt.user_id)),Je(ht.filter(St=>St!=Tt.user_id))}})))))))),!(Ue===1||Ue===2)&&me.createElement("div",{className:Ie.bottom},me.createElement(pe.ZP,{className:Ie.no,onClick:()=>{vt()}},"\u53D6\u6D88"),me.createElement(pe.ZP,{loading:lt,type:"primary",onClick:()=>{sn()}},"\u786E\u5B9A")))};var ve=(0,ze.connect)(({})=>({}))(fe)},77722:function(Ft,rt,z){"use strict";var a=z(67294),Ce=z(91773),ke=z(2453),he=z(62844),Fe=z(74330),xe=z(71230),pe=z(98813),Se=z(18046),Ae=z(84567),Ie=z(94699),ze=z.n(Ie),Me=z(33170),me=z(28706),oe=z(35973),E=z(14375),y=z(63938),x=Object.defineProperty,b=Object.defineProperties,ee=Object.getOwnPropertyDescriptors,te=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,ye=(We,Ge,Ue)=>Ge in We?x(We,Ge,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):We[Ge]=Ue,fe=(We,Ge)=>{for(var Ue in Ge||(Ge={}))ne.call(Ge,Ue)&&ye(We,Ue,Ge[Ue]);if(te)for(var Ue of te(Ge))de.call(Ge,Ue)&&ye(We,Ue,Ge[Ue]);return We},ve=(We,Ge)=>b(We,ee(Ge)),Ne=(We,Ge,Ue)=>new Promise((Ye,it)=>{var lt=nt=>{try{ct(Ue.next(nt))}catch(Ze){it(Ze)}},Bt=nt=>{try{ct(Ue.throw(nt))}catch(Ze){it(Ze)}},ct=nt=>nt.done?Ye(nt.value):Promise.resolve(nt.value).then(lt,Bt);ct((Ue=Ue.apply(We,Ge)).next())});function Le(We,Ge){const Ue=[];for(let Ye=We;Ye{let Ge=new Date;const Ue=ze()(We).format("HH");if(ze()(We).isSame(ze()(Ge),"day")){const Ye=ze()(Ge).format("HH"),it=ze()(Ge).format("mm");return{disabledHours:()=>Le(0,24).splice(1,Ye*1-1),disabledMinutes:()=>ze()(We).isSame(ze()(Ge),"hour")&&Ue<=Ye?Le(0,60).splice(0,it):Le(60,60)}}else if(ze()(We).isSame(ze()(),"day")){const Ye=ze()().format("HH"),it=ze()().format("mm");return{disabledHours:()=>Le(0,24).splice(0,Ye),disabledMinutes:()=>Ue<=Ye?Le(0,it):Le(60,60)}}else return!1},He=({exercise:We,dispatch:Ge})=>{var Ue;const Ye=(0,oe.useParams)(),[it]=Ce.default.useForm(),[lt,Bt]=(0,a.useState)(1),[ct,nt]=(0,a.useState)([]),[Ze,yt]=(0,a.useState)(!0),[ht,Je]=(0,a.useState)([]),[ot,Ct]=(0,a.useState)(!0),[kt,Mt]=(0,a.useState)(!1);(0,a.useEffect)(()=>{We.actionTabs.key==="\u6279\u91CF\u7ED3\u675F"&&st()},[We.actionTabs]);const st=Pn=>Ne(void 0,null,function*(){var Rn,bt;yt(!0);const An=yield Ge({type:"exercise/getEndGroups",payload:ve(fe({},Ye),{check_ids:[...((Rn=We.actionTabs.selectArrs)==null?void 0:Rn.map(Qt=>Number(Qt)))||[]]})}),Nn=(bt=An==null?void 0:An.course_info)==null?void 0:bt.map((Qt,zt)=>ve(fe({},Qt),{key:Qt.course_group_id,title:Qt.course_group_name,name:Qt.course_group_name,disabled:!!Qt.is_published}));An&&(An!=null&&An.course_info)&&(nt([...Nn]),it.setFieldsValue({end_time:ze()(ze()(new Date((0,me.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))})),yt(!1)}),ut=()=>Ne(void 0,null,function*(){var Pn,Rn,bt,An;const Nn=fe({},it.getFieldsValue());if((ht==null?void 0:ht.length)<=0&&ct.length>0&&!((Pn=We.actionTabs)!=null&&Pn.unified_setting)){ke.ZP.info("\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A");return}Mt(!0);const Qt={check_ids:[...((Rn=We.actionTabs.selectArrs)==null?void 0:Rn.map(jt=>Number(jt)))||[]],group_ids:ht};ot||(Qt.end_time=ze()(Nn.end_time).format("YYYY-MM-DD HH:mm")),Qt.group_ids=ht.map(jt=>jt.course_group_id),(yield(0,Me.ZP)(`/api/courses/${Ye.coursesId}/exercises/end_exercise.json`,{method:"post",body:Qt})).status===0&&(ke.ZP.success("\u64CD\u4F5C\u6210\u529F"),(0,me.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u6279\u91CF\u7ED3\u675F"]),Ge({type:"exercise/setActionTabs",payload:{}}),(bt=We==null?void 0:We.actionTabs)!=null&&bt.cb?(An=We==null?void 0:We.actionTabs)==null||An.cb():Ge({type:"classroomList/getClassroomExercisesList",payload:fe({},We.actionTabs.params)})),Mt(!1)}),un=()=>{Bt(1),nt([]),Je([]),Ct(!0)};return a.createElement(he.default,{centered:!0,title:"\u7ED3\u675F\u8003\u8BD5",open:We.actionTabs.key==="\u6279\u91CF\u7ED3\u675F",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:ut,width:680,confirmLoading:kt||Ze,onCancel:()=>{un(),Ge({type:"exercise/setActionTabs",payload:{}})}},a.createElement(Fe.Z,{spinning:Ze},ct&&a.createElement(Ce.default,{form:it},a.createElement("div",{style:{color:"#333333",display:"flex"},className:"font14 mb10"},a.createElement("img",{style:{marginRight:5,objectFit:"contain"},src:E.Z}),"\u8003\u8BD5\u65F6\u95F4\u7ED3\u675F\u540E\uFF0C\u5B66\u751F\u5C06\u4E0D\u80FD\u518D\u7B54\u9898\u3002"),a.createElement(xe.Z,{className:"mt20 mb10"},a.createElement("span",{className:"mr10"},a.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u7ED3\u675F\u65F6\u95F4"),a.createElement(pe.ZP.Group,{value:ot,onChange:Pn=>{Ct(Pn.target.value),Je([])}},a.createElement(pe.ZP,{value:!0},"\u7ACB\u5373\u7ED3\u675F"),a.createElement(pe.ZP,{value:!1},"\u5B9A\u65F6\u7ED3\u675F")),a.createElement(Ce.default.Item,{name:"end_time",style:{marginTop:-3,visibility:ot?"hidden":"visible"}},a.createElement(Se.default,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:ze()((0,me.U6)(),"HH:mm")},disabledDate:Pn=>Pn&&Pn0&&!((Ue=We.actionTabs)!=null&&Ue.unified_setting)&&a.createElement(xe.Z,{style:{marginBottom:"10px"}},a.createElement("span",{className:"mr10"},a.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u9009\u62E9\u73ED\u7EA7:"),a.createElement("div",null,ct.length>0&&a.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},a.createElement("span",{style:{flex:1}},a.createElement(Ae.default,{checked:ht.length===ct.length,onChange:Pn=>{ht.length===ct.length?Je([]):Je(ct)}},"\u5168\u9009")," "),a.createElement("span",{style:{width:16}}),a.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",ht.length||0,"\u4E2A\u5206\u73ED")),a.createElement(y.Z,{data:ct,selectedRowKeys:ht,setSelectedRowKeys:Je}))))))};rt.Z=(0,oe.connect)(({exercise:We})=>({exercise:We}))(He)},28400:function(Ft,rt,z){"use strict";z.d(rt,{Z:function(){return Ze}});var a=z(67294),Ce=z(91773),ke=z(2453),he=z(62844),Fe=z(74330),xe=z(71230),pe=z(98813),Se=z(37720),Ae=z(18046),Ie=z(59637),ze=z(84567),Me=z(85804),me=z(94699),oe=z.n(me),E=z(33170),y=z(28706),x=z(35973),b=z(15835),ee=z(14375),te=z(63938),ne=z(76223),de={contentInterval:"contentInterval___wAfD8",numberInput:"numberInput___R9kLf",minorRuleText:"minorRuleText___LjpSg",failedList:"failedList___KYTHd",name:"name___MqNtz",publish:"publish___TPl6Z"},ye=z(96332),fe=z(93686),ve=z(67294),Ne=Object.defineProperty,Le=Object.defineProperties,Re=Object.getOwnPropertyDescriptors,He=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,Ue=(yt,ht,Je)=>ht in yt?Ne(yt,ht,{enumerable:!0,configurable:!0,writable:!0,value:Je}):yt[ht]=Je,Ye=(yt,ht)=>{for(var Je in ht||(ht={}))We.call(ht,Je)&&Ue(yt,Je,ht[Je]);if(He)for(var Je of He(ht))Ge.call(ht,Je)&&Ue(yt,Je,ht[Je]);return yt},it=(yt,ht)=>Le(yt,Re(ht)),lt=(yt,ht,Je)=>new Promise((ot,Ct)=>{var kt=ut=>{try{st(Je.next(ut))}catch(un){Ct(un)}},Mt=ut=>{try{st(Je.throw(ut))}catch(un){Ct(un)}},st=ut=>ut.done?ot(ut.value):Promise.resolve(ut.value).then(kt,Mt);st((Je=Je.apply(yt,ht)).next())});function Bt(yt,ht){const Je=[];for(let ot=yt;ot{let ht=new Date;const Je=oe()(yt).format("HH");if(oe()(yt).isSame(oe()(ht),"day")){const ot=oe()(ht).format("HH"),Ct=oe()(ht).format("mm");return{disabledHours:()=>Bt(0,24).splice(1,ot*1-1),disabledMinutes:()=>(console.log("\u7981\u6B62\u65F6\u95F4\uFF1A",Je,ot),oe()(yt).isSame(oe()(ht),"hour")&&Je<=ot?Bt(0,60).splice(0,Ct):Bt(60,60))}}else if(oe()(yt).isSame(oe()(),"day")){const ot=oe()().format("HH"),Ct=oe()().format("mm");return{disabledHours:()=>Bt(0,24).splice(0,ot),disabledMinutes:()=>Je<=ot?Bt(0,Ct):Bt(60,60)}}else return!1},nt=({exercise:yt,dispatch:ht})=>{var Je,ot,Ct,kt,Mt,st,ut,un,Pn,Rn,bt,An,Nn,Qt,zt,jt,sn,vt,Tt,qt,St,Ke;const ln=(0,x.useParams)(),[Un]=Ce.default.useForm(),[Ca,Cu]=(0,a.useState)(1),[Da,nr]=(0,a.useState)([]),[cu,or]=(0,a.useState)(!0),[Aa,Zt]=(0,a.useState)([]),[xn,vl]=(0,a.useState)(!0),[Er,er]=(0,a.useState)(!1),{workSetting:Pa}=yt,[Za,qn]=(0,a.useState)(!1),[Vn,Qa]=(0,a.useState)([]),[gu,_u]=(0,a.useState)([]),[ir,ul]=(0,a.useState)(!1),[On,Jt]=(0,a.useState)(!1),[_n,Gn]=(0,a.useState)(!1),[ua,oa]=(0,a.useState)(null),[Ta,hu]=(0,a.useState)(1),[ft,re]=(0,a.useState)({}),[ge,De]=(0,a.useState)({}),[Xe,tt]=(0,a.useState)(!1);(0,a.useEffect)(()=>{var la;if(yt.actionTabs.key==="\u6279\u91CF\u53D1\u5E03"&&(Lt(),Kn(),yt.actionTabs.type===2)){const lu=(la=yt.actionTabs)==null?void 0:la.unified_setting;vl(lu)}},[yt.actionTabs]),(0,a.useEffect)(()=>{var la,lu,Ga,Ea,ga,jn,Hu;(la=Pa==null?void 0:Pa.exercise)!=null&&la.publish_time&&Un.setFieldsValue({publish_time:oe()((lu=Pa==null?void 0:Pa.exercise)==null?void 0:lu.publish_time)}),(Ga=Pa==null?void 0:Pa.exercise)!=null&&Ga.end_time&&Un.setFieldsValue({end_time:oe()((Ea=Pa==null?void 0:Pa.exercise)==null?void 0:Ea.end_time)}),Un.setFieldsValue({exercise_type:(ga=Pa==null?void 0:Pa.exercise)==null?void 0:ga.exercise_type,simulate_exercise_num:(jn=Pa==null?void 0:Pa.exercise)==null?void 0:jn.simulate_exercise_num}),hu((Hu=Pa==null?void 0:Pa.exercise)==null?void 0:Hu.exercise_type)},[yt]);const Ot=la=>{var lu;const Ga=Un.getFieldValue("publish_time");if(!Ga||(lu=Pa==null?void 0:Pa.exercise)!=null&&lu.publish_time)return;let Ea;la===1?Ea=oe()(Ga).add(120,"minutes"):Ea=oe()(Ga).add(7,"days"),Un.setFieldsValue({end_time:Ea})},Lt=la=>lt(void 0,null,function*(){var lu,Ga;or(!0);const Ea=yield(0,b.N3)({coursesId:ln.coursesId,check_ids:[...((lu=yt.actionTabs.selectArrs)==null?void 0:lu.map(jn=>Number(jn)))||[]]});console.log(Ea,"res");const ga=((Ga=Ea==null?void 0:Ea.course_info)==null?void 0:Ga.map((jn,Hu)=>it(Ye({},jn),{key:jn.course_group_id,title:jn.course_group_name,name:jn.course_group_name,disabled:!!jn.is_published})))||[];if((Ea==null?void 0:Ea.status)!==-1){nr([...ga]);const jn=oe()();Un.setFieldsValue({publish_time:jn}),(Un.getFieldValue("exercise_type")||1)===1?Un.setFieldsValue({end_time:oe()(jn).add(120,"minutes")}):Un.setFieldsValue({end_time:oe()(jn).add(7,"days")})}or(!1)});(0,a.useEffect)(()=>{var la,lu,Ga,Ea,ga,jn;if((la=Pa==null?void 0:Pa.exercise)!=null&&la.is_appoint_user){const Hu=((Ga=(lu=Pa==null?void 0:Pa.exercise)==null?void 0:lu.all_exercise_users)==null?void 0:Ga.map(Hr=>Hr.user_id))||[];Qa([...Hu])}ul((Ea=Pa==null?void 0:Pa.exercise)==null?void 0:Ea.is_appoint_user),Jt((ga=Pa==null?void 0:Pa.exercise)==null?void 0:ga.is_miss_exam_user),Gn((jn=Pa==null?void 0:Pa.exercise)==null?void 0:jn.is_no_passing_user)},[Pa]),(0,a.useEffect)(()=>{var la,lu,Ga,Ea,ga,jn,Hu,Hr;(lu=(la=yt==null?void 0:yt.actionTabs)==null?void 0:la.selectArrs)!=null&&lu[0]&&yt.actionTabs.key==="\u6279\u91CF\u53D1\u5E03"&&ht({type:"exercise/getWorkSetting",payload:{categoryId:(Ea=(Ga=yt==null?void 0:yt.actionTabs)==null?void 0:Ga.selectArrs)==null?void 0:Ea[0],category:(jn=(ga=yt==null?void 0:yt.actionTabs)==null?void 0:ga.selectArrs)==null?void 0:jn[0],coursesId:(Hr=(Hu=yt==null?void 0:yt.actionTabs)==null?void 0:Hu.params)==null?void 0:Hr.id}})},[(Je=yt==null?void 0:yt.actionTabs)==null?void 0:Je.selectArrs]);const Wn=()=>lt(void 0,null,function*(){var la,lu,Ga,Ea,ga,jn,Hu;const Hr=Ye({},Un.getFieldsValue()),Wa=oe()(oe()(Hr.publish_time).format("YYYY-MM-DD HH:mm")).valueOf(),rl=oe()(oe()(Hr.end_time).format("YYYY-MM-DD HH:mm")).valueOf();if(console.log(Wa,Wa,33),rl<=Wa){ke.ZP.info("\u7ED3\u675F\u65F6\u95F4\u4E0D\u5141\u8BB8\u5C0F\u4E8E\u7B49\u4E8E\u5F00\u59CB\u65F6\u95F4");return}if((Aa==null?void 0:Aa.length)<=0&&!xn&&Da.length>0&&!((la=Pa==null?void 0:Pa.exercise)!=null&&la.is_make_up_exercise)){ke.ZP.info("\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A");return}const sr=Da.map(ol=>ol.key),uu={check_ids:[...((lu=yt.actionTabs.selectArrs)==null?void 0:lu.map(ol=>Number(ol)))||[]],end_time:oe()(Hr.end_time).format("YYYY-MM-DD HH:mm"),publish_time:oe()(Hr.publish_time).format("YYYY-MM-DD HH:mm"),group_ids:Aa.map(ol=>ol.course_group_id),unified_setting:!Aa.length,exercise_type:Hr.exercise_type,simulate_exercise_num:Hr.simulate_exercise_num};if(((Ga=yt.actionTabs.selectArrsAll)==null?void 0:Ga.length)>0&&yt.actionTabs.type===1&&(uu.check_ids=[...((ga=(Ea=yt.actionTabs.selectArrsAll)==null?void 0:Ea.filter(ol=>!ol.high_resources_consume||ol.high_resources_consume_permission))==null?void 0:ga.map(ol=>Number(ol==null?void 0:ol.id)))||[]]),(jn=Pa==null?void 0:Pa.exercise)!=null&&jn.is_make_up_exercise){if(ir&&Vn.length<=0||!ir&&!(On||_n)){ke.ZP.error("\u8BF7\u9009\u62E9\u8865\u8003\u5B66\u751F");return}uu.is_appoint_user=ir,uu.is_miss_exam_user=On,uu.is_no_passing_user=_n,ir?uu.make_up_exercise_users=Vn.map(ol=>({user_id:ol})):uu.make_up_exercise_user=[]}let{is_locked:ya,open_camera:Ua,screen_open:zi,login_restrict:Ki,ip_bind:Yo,ip_limit:fo,is_random:du,id:Gu,identity_verify:pl,open_phone_video_recording:Ir}=Pa==null?void 0:Pa.exercise;if(yt.actionTabs.key!=="\u6279\u91CF\u53D1\u5E03"||(ya||Ua||zi||Ki||Yo||fo=="pub"||fo=="inner"||pl||Ir)&&Hr.exercise_type==2){if(ht({type:"exercise/setActionTabs",payload:{}}),yt.actionTabs.type==2){let ol=he.default.confirm({width:666,centered:!0,okText:"\u7ACB\u5373\u8C03\u6574",cancelText:"\u4E0D\u9700\u8981",title:"\u63D0\u793A",icon:null,content:ve.createElement("div",null,"\u5F53\u524D\u8003\u8BD5\u6A21\u5F0F\u4E3A\u201C\u6A21\u62DF\u8003\u8BD5\u201D\uFF0C\u60A8\u5DF2\u5F00\u542F",ve.createElement("span",{style:{color:"#FA6400"}}," ",(0,y.hi)(Pa==null?void 0:Pa.exercise)," "),"\u9632\u4F5C\u5F0A\u89C4\u5219\uFF0C\u53EF\u80FD\u4F1A\u5F71\u54CD\u5B66\u751F\u8FDB\u884C\u91CD\u590D\u8003\u8BD5\u3002\u662F\u5426\u9700\u8981\u8FDB\u884C\u8C03\u6574\uFF1F"),onOk:()=>lt(void 0,null,function*(){var ti;tt(!0);let io=yield(0,fe.Tr)({exercise_ids:[...((ti=yt.actionTabs.selectArrs)==null?void 0:ti.map(Xo=>Number(Xo)))||[]],course_id:ln.coursesId,type:"exercise"});if((io==null?void 0:io.student_count)===0){if((yield xa(uu))&&yt.actionTabs.isRouter){ol.destroy(),x.history.push(`/classrooms/${ln.coursesId}/exercise/${Gu}/detail?random=${du}&tabs=3&childrenTabs=2`);return}ht({type:"exercise/setActionTabs",payload:{key:"\u8C03\u6574tabs\u9009\u4E2D"}})}else De(uu),re(io)}),onCancel:()=>{ol.destroy(),tt(!1),xa(uu)}})}else{let ol=he.default.info({width:580,centered:!0,okText:"\u6211\u77E5\u9053\u4E86",title:"\u63D0\u793A",icon:null,content:ve.createElement("div",null,"\u6A21\u62DF\u8003\u8BD5\u5F00\u542F\u9632\u4F5C\u5F0A\u89C4\u5219\u53EF\u80FD\u4F1A\u5F71\u54CD\u5B66\u751F\u8FDB\u884C\u91CD\u590D\u8003\u8BD5\uFF0C\u53EF\u6839\u636E\u8003\u8BD5\u9700\u8981\u8FDB\u884C\u8C03\u6574\u3002"),onOk:()=>lt(void 0,null,function*(){var ti;tt(!0);let io=yield(0,fe.Tr)({exercise_ids:[...((ti=yt.actionTabs.selectArrs)==null?void 0:ti.map(Xo=>Number(Xo)))||[]],course_id:ln.coursesId,type:"exercise"});if((io==null?void 0:io.student_count)===0){if((yield xa(uu))&&yt.actionTabs.isRouter){x.history.push(`/classrooms/${ln.coursesId}/exercise/${Gu}/detail?random=${du}&tabs=3&childrenTabs=2`);return}ht({type:"exercise/setActionTabs",payload:{key:"\u8C03\u6574tabs\u9009\u4E2D"}})}else De(uu),re(io)})})}return}let Cl=yield(0,fe.Tr)({exercise_ids:[...((Hu=yt.actionTabs.selectArrs)==null?void 0:Hu.map(ol=>Number(ol)))||[]],course_id:ln.coursesId,type:"exercise"});(Cl==null?void 0:Cl.student_count)===0?xa(uu):(De(uu),re(Cl))}),ra=()=>{var la;let lu=[...(la=yt.actionTabs.selectArrsAll)==null?void 0:la.filter(Ga=>Ga.high_resources_consume&&!Ga.high_resources_consume_permission)];(lu==null?void 0:lu.length)>0&&yt.actionTabs.type===1&&he.default.confirm({centered:!0,icon:null,footer:null,width:560,title:"\u63D0\u793A",closable:!0,content:ve.createElement("div",null,ve.createElement("div",{className:de.tipcontent},ve.createElement("div",{style:{color:"#191919"}},"\u60A8\u6709 ",lu==null?void 0:lu.length," \u4E2A\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u53D1\u5E03\u5931\u8D25\uFF0C\u8BF7\u5355\u72EC\u8FDB\u884C\u53D1\u5E03\u3002"),ve.createElement("div",{className:"mt20 mb20"},lu==null?void 0:lu.map(Ga=>ve.createElement("div",{className:de.failedList,key:Ga.id},ve.createElement("div",{className:de.name},Ga==null?void 0:Ga.exercise_name),ve.createElement("div",{className:de.publish,onClick:()=>{(0,y.xg)(`/classrooms/${ln.coursesId}/exercise/${Ga.id}/detail?random=${Ga.is_random}`)}},"\u53D1\u5E03"))))))})},xa=la=>lt(void 0,null,function*(){var lu,Ga,Ea;if(yt.actionTabs.type===1){let Hu=[...(lu=yt.actionTabs.selectArrsAll)==null?void 0:lu.filter(Hr=>Hr.high_resources_consume&&!Hr.high_resources_consume_permission)];if((Hu==null?void 0:Hu.length)==yt.actionTabs.selectArrsAll.length){ht({type:"exercise/setActionTabs",payload:{}}),ra();return}}let ga=!1;return er(!0),(yield(0,E.ZP)(`/api/courses/${ln.coursesId}/exercises/publish.json`,{method:"post",body:la})).status===0&&((0,y.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u7ACB\u5373\u53D1\u5E03"]),Kn(),ke.ZP.success("\u53D1\u5E03\u6210\u529F"),ht({type:"exercise/setActionTabs",payload:{}}),(Ga=yt==null?void 0:yt.actionTabs)!=null&&Ga.cb?(Ea=yt==null?void 0:yt.actionTabs)==null||Ea.cb():ht({type:"classroomList/getClassroomExercisesList",payload:Ye({},yt.actionTabs.params)}),ga=!0,yt.actionTabs.type===1&&ra()),er(!1),ga}),Kn=()=>{Cu(1),nr([]),Zt([])},Du=(la,lu,Ga)=>{la<=0?ke.ZP.info("\u8BF7\u9009\u62E9\u8865\u8003\u5B66\u751F"):(Qa(lu),_u(Ga),qn(!1))};return ve.createElement(he.default,{centered:!0,title:"\u53D1\u5E03\u8003\u8BD5",open:yt.actionTabs.key==="\u6279\u91CF\u53D1\u5E03",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",width:660,onOk:Wn,confirmLoading:Er||cu,onCancel:()=>{Kn(),ht({type:"exercise/setActionTabs",payload:{}})}},ve.createElement(Fe.Z,{spinning:cu},Da&&ve.createElement(Ce.default,{form:Un},!!((ot=yt==null?void 0:yt.actionTabs)!=null&&ot.disabled)&&ve.createElement("div",{style:{color:"#333333",display:"flex"},className:"font14 mb10"},ve.createElement("img",{style:{marginRight:5,objectFit:"contain"},src:ee.Z}),"\u5DF2\u7ECF\u53D1\u5E03\u8FC7\u8003\u8BD5\u7684\u8BD5\u5377\u4E0D\u53EF\u4EE5\u7EDF\u4E00\u53D1\u5E03\u3002"),!((Ct=Pa==null?void 0:Pa.exercise)!=null&&Ct.is_make_up_exercise)&&ve.createElement(ve.Fragment,null,ve.createElement(xe.Z,null,ve.createElement("span",{className:"mr10",style:{lineHeight:"32px"}},ve.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u8003\u8BD5\u6A21\u5F0F"),ve.createElement(Ce.default.Item,{name:"exercise_type"},ve.createElement(pe.ZP.Group,{disabled:((kt=Pa==null?void 0:Pa.exercise)==null?void 0:kt.exercise_status)>1,onChange:la=>{hu(la.target.value),Ot(la.target.value)}},ve.createElement(pe.ZP,{value:1},"\u6B63\u5F0F\u8003\u8BD5"),ve.createElement(pe.ZP,{value:2},"\u6A21\u62DF\u8003\u8BD5")))),Ta==2&&ve.createElement(xe.Z,{className:`${de.contentInterval}`},ve.createElement("span",{className:`${de.minorRuleText}`,style:{marginLeft:50}},"\u6BCF\u4E2A\u5B66\u751F\u5141\u8BB8\u8FDB\u884C\u8003\u8BD5"),ve.createElement(Ce.default.Item,{name:"simulate_exercise_num"},ve.createElement(Se.Z,{className:de.numberInput,style:{width:145},precision:0,size:"middle",disabled:((Mt=Pa==null?void 0:Pa.exercise)==null?void 0:Mt.exercise_status)>1,min:1,max:999})),ve.createElement("span",null,"\u6B21",ve.createElement("span",{style:{color:"#999999"}},"\uFF08\u53EF\u8BBE\u7F6E1~999\u6B21\uFF09")))),ve.createElement(xe.Z,null,ve.createElement("span",{className:"mr10 mt5"},ve.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u8003\u8BD5\u65F6\u95F4"),ve.createElement(Ce.default.Item,{name:"publish_time"},ve.createElement(Ae.default,{style:{width:170},disabledDate:la=>la&&la<=oe()().subtract(0,"days"),disabledTime:ct,placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:oe()((0,y.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1})),ve.createElement("span",{className:"mt5 ml5 mr5"},"\u5230"),ve.createElement(Ce.default.Item,{name:"end_time"},ve.createElement(Ae.default,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:oe()((0,y.U6)(),"HH:mm")},disabledDate:la=>la&&la{var Ga,Ea,ga,jn,Hu;if(ul(la),la)if((Ga=Pa==null?void 0:Pa.exercise)!=null&&Ga.is_appoint_user){const Hr=(ga=(Ea=Pa==null?void 0:Pa.exercise)==null?void 0:Ea.all_exercise_users)==null?void 0:ga.map(Wa=>Wa.user_id);Qa([...Hr])}else Qa([]),Jt(!1),Gn(!1);else Jt((jn=Pa==null?void 0:Pa.exercise)==null?void 0:jn.is_miss_exam_user),Gn((Hu=Pa==null?void 0:Pa.exercise)==null?void 0:Hu.is_no_passing_user)},disabled:((ut=Pa==null?void 0:Pa.exercise)==null?void 0:ut.exercise_status)!==1}),ve.createElement("span",{style:{marginLeft:"10px",fontSize:"14px",color:"3333"}},"\u6307\u5B9A\u5B66\u751F")),!ir&&ve.createElement(xe.Z,{className:"mt20",style:{paddingLeft:"90px"},align:"middle"},ve.createElement(ze.default,{checked:On,disabled:((un=Pa==null?void 0:Pa.exercise)==null?void 0:un.exercise_status)!==1||((Pn=Pa==null?void 0:Pa.exercise)==null?void 0:Pn.miss_exam_count)<=0,onChange:la=>{Jt(la.target.checked)}},ve.createElement("span",{style:{fontSize:"14px",color:"#333"}},"\u7F3A\u8003")),ve.createElement("span",{style:{color:"#0152d9",cursor:"pointer",marginRight:"60px"},onClick:()=>{oa(1),ul(!1),qn(!0)}},"\uFF08",`${(Rn=Pa==null?void 0:Pa.exercise)==null?void 0:Rn.miss_exam_count}\u4EBA`,"\uFF09"),ve.createElement(ze.default,{checked:_n,disabled:((bt=Pa==null?void 0:Pa.exercise)==null?void 0:bt.exercise_status)!==1||((An=Pa==null?void 0:Pa.exercise)==null?void 0:An.no_passing_count)<=0,onChange:la=>{Gn(la.target.checked)}},ve.createElement("span",{style:{fontSize:"14px",color:"#333"}},"\u672A\u53CA\u683C")),ve.createElement("span",{style:{color:"#0152d9",cursor:"pointer"},onClick:()=>{oa(2),ul(!1),qn(!0)}},"\uFF08",`${(Nn=Pa==null?void 0:Pa.exercise)==null?void 0:Nn.no_passing_count}\u4EBA`,"\uFF09")),ir&&ve.createElement(xe.Z,{className:"mt20",style:{paddingLeft:"90px"}},ve.createElement(Me.ZP,{type:"primary",ghost:!0,disabled:((Qt=Pa==null?void 0:Pa.exercise)==null?void 0:Qt.exercise_status)!==1,onClick:()=>{qn(!0),oa(void 0)}},ve.createElement("span",null,ve.createElement("i",{className:"iconfont icon-tianjia4 mr5",style:{fontSize:"14px"}})),ve.createElement("span",null,"\u9009\u62E9\u5B66\u751F")),ve.createElement("span",{style:{color:"#333",display:"inline-block",height:"32px",lineHeight:"32px",marginLeft:"10px"}},"\uFF08\u5DF2\u9009 ",`${Vn.length||0} \u4EBA`,"\uFF09"))),yt.actionTabs.type===2&&!((zt=Pa==null?void 0:Pa.exercise)!=null&&zt.is_make_up_exercise)&&ve.createElement(xe.Z,{style:{marginBottom:"10px"}},ve.createElement("span",{className:"mr10"},ve.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u9009\u62E9\u73ED\u7EA7"),ve.createElement(pe.ZP.Group,{value:xn,onChange:la=>{vl(la.target.value),Zt([])}},ve.createElement(pe.ZP,{disabled:!!((jt=yt==null?void 0:yt.actionTabs)!=null&&jt.disabled)||Da.some(la=>la==null?void 0:la.is_published)||!((sn=yt==null?void 0:yt.actionTabs)!=null&&sn.manage_all_group),value:!0},"\u7EDF\u4E00\u53D1\u5E03"),ve.createElement(pe.ZP,{disabled:Da.length<=0,value:!1},"\u5206\u73ED\u53D1\u5E03"))),Da.length<=0&&yt.actionTabs.type===2&&!((vt=Pa==null?void 0:Pa.exercise)!=null&&vt.is_make_up_exercise)&&ve.createElement("span",{style:{marginLeft:"65px",color:"rgba(0, 0, 0, 0.25)"}},'\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03"'),(yt.actionTabs.type===1||!xn)&&!((Tt=Pa==null?void 0:Pa.exercise)!=null&&Tt.is_make_up_exercise)&&Da.length>0&&ve.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},ve.createElement("span",{style:{flex:1}},ve.createElement(ze.default,{checked:Aa.length===Da.length,onChange:la=>{Aa.length===Da.length?Zt([]):Zt(Da)}},"\u5168\u9009")),ve.createElement("span",{style:{width:16}}),ve.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",Aa.length||0,"\u4E2A\u5206\u73ED")),(yt.actionTabs.type===1||!xn)&&!((qt=Pa==null?void 0:Pa.exercise)!=null&&qt.is_make_up_exercise)&&Da.length>0&&ve.createElement(te.Z,{data:Da,selectedRowKeys:Aa,setSelectedRowKeys:Zt})),ve.createElement(ne.Z,{visible:Za,setVisible:qn,onK:Du,selectKeys:Vn,selectRows:gu,appointStudent:ir,modalParams:ua,courseId:ln.categoryId||((Ke=(St=yt==null?void 0:yt.actionTabs)==null?void 0:St.selectArrs)==null?void 0:Ke[0])})),ve.createElement(ye.Z,{resdata:ft,type:"exercisepush",okloading:Er,oktext:(ft==null?void 0:ft.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:la=>lt(void 0,null,function*(){var lu,Ga,Ea;er(!0);let ga=yield(0,E.ZP)(`/api/courses/${ln.coursesId}/batch_copy_shixuns.json`,{method:"post",body:{type:"exercise",ids:[...((lu=yt.actionTabs.selectArrs)==null?void 0:lu.map(jn=>Number(jn)))||[]]}});if(er(!1),(ga==null?void 0:ga.status)===0)if(Xe){let jn=yield xa(ge);if(he.default.destroyAll(),jn&&yt.actionTabs.isRouter){x.history.push(`/classrooms/${ln.coursesId}/exercise/${(Ga=Pa==null?void 0:Pa.exercise)==null?void 0:Ga.id}/detail?random=${(Ea=Pa==null?void 0:Pa.exercise)==null?void 0:Ea.is_random}&tabs=3&childrenTabs=2`);return}ht({type:"exercise/setActionTabs",payload:{key:"\u8C03\u6574tabs\u9009\u4E2D"}})}else xa(ge)})}))};var Ze=(0,x.connect)(({exercise:yt})=>({exercise:yt}))(nt)},63938:function(Ft,rt,z){"use strict";z.d(rt,{Z:function(){return Ie}});var a=z(67294),Ce=z(28802),ke=z(84567),he=z(71230),Fe={leftdiv:"leftdiv___iuhY9",listClass:"listClass___o5N53",spantitle:"spantitle___KVMSL",rightdiv:"rightdiv___f2zZr"},xe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC",pe=z(26194),Se=(ze,Me,me)=>new Promise((oe,E)=>{var y=ee=>{try{b(me.next(ee))}catch(te){E(te)}},x=ee=>{try{b(me.throw(ee))}catch(te){E(te)}},b=ee=>ee.done?oe(ee.value):Promise.resolve(ee.value).then(y,x);b((me=me.apply(ze,Me)).next())}),Ie=({data:ze,value:Me=[],handleChangePage:me,setSelectedRowKeys:oe,selectedRowKeys:E,onChange:y=()=>{}})=>{const[x,b]=(0,a.useState)([]),[ee,te]=(0,a.useState)([]),[ne,de]=(0,a.useState)([]);let[ye,fe]=(0,a.useState)(1),[ve,Ne]=(0,a.useState)();return(0,a.useEffect)(()=>{b(ze),te([]),de([])},[ze]),(0,a.useEffect)(()=>{oe&&(te(E),de(E))},[E]),a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},a.createElement("div",{className:Fe.leftdiv},a.createElement(Ce.default.Search,{size:"middle",onChange:Le=>Se(void 0,null,function*(){b(ze.filter(Re=>{var He;return(He=Re==null?void 0:Re.name)==null?void 0:He.includes(Le.target.value)}))}),placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),x.length===0&&a.createElement(pe.Z,{styles:{margin:"70px auto"},customText:"\u6682\u65E0\u5206\u73ED"}),a.createElement("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"}},a.createElement(ke.default.Group,{value:ee.map(Le=>`${Le.course_group_id}`),onChange:Le=>{oe(x.filter(Re=>Le.includes(`${Re.course_group_id}`)))},style:{marginTop:"10px",flexDirection:"column"}},x.map((Le,Re)=>a.createElement(he.Z,{key:Le.course_group_id,style:{marginTop:"10px",lineHeight:"24px",display:"flex",width:200}},a.createElement(ke.default,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:Le.is_published,value:`${Le.course_group_id}`},a.createElement("div",{className:Fe.listClass},a.createElement("span",{className:Fe.spantitle,style:{width:Le.is_published?"108px":"170px"}},Le.name),Le.is_published&&a.createElement("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"}},"\u5DF2\u53D1\u5E03")))))))),a.createElement("div",{className:Fe.rightdiv},a.createElement(Ce.default.Search,{onChange:Le=>{de(ee.filter(Re=>Re.name.includes(Le.target.value)))},size:"middle",placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),ne.length===0&&a.createElement(pe.Z,{styles:{margin:"70px auto"},customText:"\u6682\u672A\u9009\u62E9\u5206\u73ED"}),ne.length>0&&a.createElement("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"}},a.createElement("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0}},ne.map((Le,Re)=>a.createElement(he.Z,{justify:"space-between",style:{marginTop:"10px"},key:Le.course_group_id},a.createElement("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"}},Le.name),a.createElement("img",{src:xe,style:{cursor:"pointer",height:"16px",marginRight:17},onClick:()=>{oe(ee.filter(He=>`${He.course_group_name}`!=`${Le.course_group_name}`))}})))))))}},97917:function(Ft,rt,z){"use strict";var a=z(67294),Ce=z(55054),ke=z(37720),he=z(91773),Fe=z(62844),xe=z(74330),pe=z(57399),Se=z(28802),Ae=z(71230),Ie=z(15746),ze=z(85804),Me=z(15835),me=z(94699),oe=z.n(me),E=z(35973),y=z(28706),x=z(53814),b=z(52262),ee=z(9343),te=z(67294),ne=(ve,Ne,Le)=>new Promise((Re,He)=>{var We=Ye=>{try{Ue(Le.next(Ye))}catch(it){He(it)}},Ge=Ye=>{try{Ue(Le.throw(Ye))}catch(it){He(it)}},Ue=Ye=>Ye.done?Re(Ye.value):Promise.resolve(Ye.value).then(We,Ge);Ue((Le=Le.apply(ve,Ne)).next())});const{Countdown:de}=Ce.default,ye=({value:ve,onChange:Ne,MaxMinutes:Le})=>te.createElement(te.Fragment,null,te.createElement("div",{className:"p10 mb20",style:{background:"#F6F7F9"}},"1.\u53EA\u6709\u5F53\u8003\u8BD5\u622A\u6B62\u65F6\u95F4\u665A\u4E8E\u5B66\u751F\u7684\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\u65F6\uFF0C\u624D\u652F\u6301\u5BF9\u5B66\u751F\u8FDB\u884C\u5EF6\u65F6\u64CD\u4F5C\uFF1B",te.createElement("br",null),"2.\u6BCF\u4E2A\u5B66\u751F\u7684\u6700\u5927\u53EF\u5EF6\u65F6\u65F6\u95F4=\u8003\u8BD5\u622A\u6B62\u65F6\u95F4-\u5B66\u751F\u5F53\u524D\u7684\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\u3002",te.createElement("br",null)),te.createElement(ke.Z,{value:ve,onChange:Ne,min:0,precision:0,max:Le,style:{width:"100%"},placeholder:`\u6700\u5927\u53EF\u5EF6\u957F\u65F6\u95F4\u4E3A${Le}\u5206\u949F\uFF0C\u5728\u5B66\u751F\u5269\u4F59\u65F6\u95F4\u57FA\u7840\u4E0A\u5EF6\u65F6`,addonAfter:"\u5206\u949F"})),fe=({exercise:ve,successCb:Ne,dispatch:Le})=>{var Re,He,We,Ge;const Ue=(0,E.useParams)(),[Ye]=he.default.useForm(),it=he.default.useWatch("time",Ye),[lt,Bt]=(0,a.useState)(!1),ct=(0,a.useRef)(),{actionTabs:nt}=ve,[Ze,yt]=(0,a.useState)(),[,ht,Je,ot]=(0,ee.U)(Me.n7,{id:Ue.categoryId}),[,Ct,kt]=(0,ee.U)(Me.Cd,{});(0,a.useEffect)(()=>{ve.actionTabs.key==="student-unlock"&&(Bt(!1),Ye.resetFields())},[ve.actionTabs.key]);const Mt=()=>new Promise(Qt=>ne(void 0,null,function*(){var zt,jt;return ct.current=yield(0,x.y)({ip_limit:(zt=nt==null?void 0:nt.exerciseParams)==null?void 0:zt.ip_limit,ip_bind:(jt=nt==null?void 0:nt.exerciseParams)==null?void 0:jt.ip_bind_type}),Qt()})),st=()=>ne(void 0,null,function*(){var Qt,zt,jt,sn,vt;yield Ye.validateFields();const Tt=Ye.getFieldsValue();if(Bt(!0),(((Qt=nt==null?void 0:nt.exerciseParams)==null?void 0:Qt.ip_limit)!=="no"||(zt=nt==null?void 0:nt.exerciseParams)!=null&&zt.ip_bind_type)&&(yield Mt()),(yield(0,Me.ZD)((jt=nt==null?void 0:nt.exerciseParams)==null?void 0:jt.id,{exercise_user_id:(sn=nt==null?void 0:nt.exerciseParams)==null?void 0:sn.exercise_user_id,unlock_key:Tt.unlock_key,time:Tt.time,ip:ct.current})).status===0){if(Ne){Le({type:"exercise/setActionTabs",payload:{}}),Ne();return}const St=nt==null?void 0:nt.exerciseParams;(0,y.nr)({inner_ip:St.inner_ip,public_ip:St.public_ip,open_camera:St.open_camera,ip_limit:St.ip_limit,ip_bind:St.ip_bind,ip_bind_type:St.ip_bind_type,exercise_tips:St.exercise_tips,exerciseId:St.id,screen_open:St.screen_open,screen_num:St.screen_num,screen_sec:St.screen_sec,coursesId:Ue.coursesId,login:(vt=(0,b.eY)())==null?void 0:vt.login,history,identity_verify:St.identity_verify,open_phone_video_recording:St.open_phone_video_recording,current_status:St.current_status}),Le({type:"exercise/setActionTabs",payload:{}})}Bt(!1)}),ut=[{title:"IP\u5730\u5740",dataIndex:"ip",key:"ip",render:Qt=>te.createElement("span",{className:Qt.indexOf("\u5F02\u5E38")>-1?"c-red":"c-green"},Qt)},{title:"\u6D4F\u89C8\u5668",dataIndex:"browser",key:"browser",render:Qt=>te.createElement("span",{className:Qt.indexOf("\u5F02\u5E38")>-1?"c-red":"c-green"},Qt)},{title:"\u4E0A\u6B21\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_time",key:"last_login_time"}],un=((Re=nt==null?void 0:nt.exerciseParams)==null?void 0:Re.errorMessage)&&typeof((He=nt==null?void 0:nt.exerciseParams)==null?void 0:He.errorMessage)=="object";(0,a.useEffect)(()=>{ve.actionTabs.key==="student-unlock"&&ne(void 0,null,function*(){const Qt=yield kt(Ue);yield Je({}),Qt.status||yt(Qt)})},[ve.actionTabs.key]);const{time:Pn,end_time:Rn}=(Ze==null?void 0:Ze.exercise)||{},bt=ot!=null&&ot.user_end_time?oe()(ot==null?void 0:ot.user_end_time).add(1,"minutes"):oe()(),An=oe()(ot==null?void 0:ot.user_total_end_time)>bt?Math.round(oe().duration(oe()(ot==null?void 0:ot.user_total_end_time).diff(bt.startOf("minute"))).asMinutes()):0,Nn=((ot==null?void 0:ot.student_left_minutes)||0)+(it||0);return te.createElement(te.Fragment,null,te.createElement(Fe.default,{width:514,centered:!0,closable:!!((We=nt==null?void 0:nt.exerciseParams)!=null&&We.unlockClose),maskClosable:!1,keyboard:!1,maskStyle:{background:"#000"},title:"\u63D0\u793A",open:ve.actionTabs.key==="student-unlock",footer:null,onCancel:()=>{Le({type:"exercise/setActionTabs",payload:{}})}},te.createElement(xe.Z,{spinning:ht||Ct},un&&te.createElement("div",{style:{marginBottom:16}},"\u8BE5\u8D26\u53F7\u5DF2\u7ECF\u5B58\u5728\u5F02\u5E38\u60C5\u51B5\uFF0C\u82E5\u975E\u672C\u4EBA\u64CD\u4F5C\uFF0C\u8BF7\u8054\u7CFB\u76D1\u8003\u8001\u5E08\u8BF4\u660E\u60C5\u51B5\u3002 "),!un&&te.createElement("div",{style:{marginBottom:16}},"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u60A8\u5728\u8003\u8BD5\u65F6\u4E2D\u9014\u9000\u51FA\uFF0C\u73B0\u5DF2\u5C06\u8003\u8BD5\u9501\u5B9A\u3002\u5982\u9700\u7EE7\u7EED\u8FDB\u884C\u8003\u8BD5\uFF0C \u8BF7\u5C3D\u5FEB\u8054\u7CFB\u8BFE\u5802\u8001\u5E08\u8FDB\u884C\u89E3\u9501\uFF01"),un&&te.createElement(pe.default,{className:"mb20",pagination:{hideOnSinglePage:!0},dataSource:[((Ge=nt==null?void 0:nt.exerciseParams)==null?void 0:Ge.errorMessage)||{}],columns:ut}),te.createElement("div",{className:""},te.createElement(he.default,{form:Ye,layout:"vertical",autoComplete:"off"},te.createElement(he.default.Item,{label:"\u8003\u8BD5\u89E3\u9501\u7801",name:"unlock_key",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801"}]},te.createElement(Se.default.Password,{autoComplete:"off",placeholder:"\u8BF7\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801",visibilityToggle:!1})),Pn!==-1?te.createElement(te.Fragment,null,te.createElement(he.default.Item,{name:"time",label:te.createElement("span",null,"\u5EF6\u957F\u65F6\u95F4\uFF08",te.createElement("span",{style:{color:"#9096A3"}},"\u5F53\u524D\u8003\u8BD5\u622A\u6B62\u65F6\u95F4",oe()(ot==null?void 0:ot.user_total_end_time).format("YYYY-MM-DD HH:mm")),"\uFF09")},te.createElement(ye,{MaxMinutes:An})),te.createElement("div",{className:"mb20",style:{color:"#FA6400"}},"\u8BE5\u5B66\u751F\u5269\u4F59\u8003\u8BD5\u65F6\u95F4\uFF1A",te.createElement("span",{className:"ml5"},ht||Ct?"--":Nn),"\u5206\u949F",Nn!==0&&(ot==null?void 0:ot.user_end_time)&&te.createElement("span",null,"\uFF0C\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\uFF1A",te.createElement("span",{className:"ml5"},oe()(ot==null?void 0:ot.user_end_time).add(it||0,"m").format("YYYY-MM-DD HH:mm:ss"))))):te.createElement("span",{style:{color:"#F6A53B"}}," \u5F53\u524D\u8003\u8BD5\u672A\u9650\u5236\u8003\u751F\u7B54\u9898\u65F6\u957F\uFF0C\u8003\u8BD5\u622A\u6B62\u65F6\u95F4\u4E3A ",oe()(Rn).format("YYYY-MM-DD HH:mm")))),te.createElement(Ae.Z,{justify:"space-between",align:"middle"},te.createElement(Ie.Z,null),te.createElement(Ie.Z,null,te.createElement(ze.ZP,{loading:lt,onClick:st},"\u8FDB\u5165\u8003\u8BD5"))))))};rt.Z=(0,E.connect)(({exercise:ve})=>({exercise:ve}))(fe)},7703:function(Ft,rt,z){"use strict";z.d(rt,{w:function(){return xe}});var a=z(33170),Ce=z(62844),ke=z(35973),he=z(67294),Fe=(pe,Se,Ae)=>new Promise((Ie,ze)=>{var Me=E=>{try{oe(Ae.next(E))}catch(y){ze(y)}},me=E=>{try{oe(Ae.throw(E))}catch(y){ze(y)}},oe=E=>E.done?Ie(E.value):Promise.resolve(E.value).then(Me,me);oe((Ae=Ae.apply(pe,Se)).next())});const xe=(pe,Se,Ae="\u6B63\u5728\u8FDB\u5165\u8BC4\u9605\uFF0C\u8BF7\u7A0D\u540E...",Ie=1,ze=2)=>Fe(void 0,null,function*(){Ie===1&&(0,ke.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:Ie===1?Ae:"\u6B63\u5728\u68C0\u6D4B\u4E2D\uFF0C\u8BF7\u7A0D\u540E..."}});const Me=yield(0,a.ZP)(`/api/exercises/${Se}/user_appraise_status.json`,{method:"get",params:{appraise_type:Ie}});if((Me==null?void 0:Me.status)===-1)return(0,ke.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1}}),Promise.reject();let me={status:0};if((Me==null?void 0:Me.type)===2&&(me=yield(0,a.ZP)(`/api/exercises/${Se}/create_appraise_students.json`,{method:"get"})),(0,ke.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),(me==null?void 0:me.status)===-1)return Promise.reject();if((Me==null?void 0:Me.type)===2){const oe=()=>{ke.history.replace(`/classrooms/${pe}/exercise/${Se}/centralizeReview/${me==null?void 0:me.login}`)};if(Ce.default.confirm({centered:!0,width:470,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",keyboard:!1,onOk:oe,onCancel:()=>{ze===1&&ke.history.replace(`/classrooms/${pe}/exercise/${Se}/detail`)},content:he.createElement("div",null,he.createElement("div",null,"\u60A8\u5DF2\u6210\u4E3A\u6307\u5B9A\u9605\u5377\u6559\u5E08\uFF0C\u662F\u5426\u73B0\u5728\u524D\u5F80",he.createElement("span",{onClick:oe,className:"ml5 mr5 c-light-primary current"},"\u96C6\u4E2D\u9605\u5377"),"\u7EE7\u7EED\u8BC4\u9605\uFF1F"),he.createElement("div",{className:"c-grey-999"},"\uFF08\u9605\u5377\u7ED3\u675F\u540E\u6062\u590D\u5B66\u751F\u4E2A\u4EBA\u8BC4\u9605\u529F\u80FD\uFF0C\u5E76\u5C55\u793A\u5B66\u751F\u6210\u7EE9\uFF09"))}),ze!==3)return Promise.reject()}if((Me==null?void 0:Me.type)===3&&(Ce.default.info({centered:!0,width:470,okText:"\u786E\u5B9A",keyboard:!1,title:"\u63D0\u793A",onOk:()=>{ze===1&&ke.history.replace(`/classrooms/${pe}/exercise/${Se}/detail`)},content:he.createElement("div",null,(Me==null?void 0:Me.message)||"")}),ze!==3)||(Me==null?void 0:Me.type)===4&&(Ce.default.info({centered:!0,width:470,okText:"\u786E\u5B9A",title:"\u63D0\u793A",keyboard:!1,onOk:()=>{ze===1&&ke.history.replace(`/classrooms/${pe}/exercise/${Se}/detail`)},content:he.createElement("div",null,(Me==null?void 0:Me.message)||"")}),ze!==3))return Promise.reject()})},42469:function(Ft,rt,z){"use strict";z.d(rt,{Z:function(){return ve}});var a=z(67294),Ce={anchorNavigation:"anchorNavigation___qD4R0",tabs:"tabs___hVMvA",box:"box___Qz1lW",head:"head___WZZdl"},ke=Object.defineProperty,he=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,pe=(Ne,Le,Re)=>Le in Ne?ke(Ne,Le,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ne[Le]=Re,Se=(Ne,Le)=>{for(var Re in Le||(Le={}))Fe.call(Le,Re)&&pe(Ne,Re,Le[Re]);if(he)for(var Re of he(Le))xe.call(Le,Re)&&pe(Ne,Re,Le[Re]);return Ne};const Ae=Ne=>React.createElement("svg",Se({width:17,height:18,xmlns:"http://www.w3.org/2000/svg"},Ne),React.createElement("title",null,"\u88C5\u9970\u70B9"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"100%",y1:"50%",x2:"0%",y2:"50%",id:"dot_svg__a"},React.createElement("stop",{stopColor:"#5EC7EA",offset:"0%"}),React.createElement("stop",{stopColor:"#3055D0",offset:"100%"}))),React.createElement("g",{transform:"translate(0 -1)",fill:"none",fillRule:"evenodd"},React.createElement("path",{d:"m4.342 2.005 11.896 7.138a1 1 0 0 1 0 1.714L4.342 17.995a1 1 0 0 1-1.378-1.362L6.834 10l-3.87-6.633a1 1 0 0 1 1.378-1.362Z",fill:"url(#dot_svg__a)"}),React.createElement("circle",{fill:"#3061D0",cx:2,cy:10,r:2})));var Ie="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIxMDAlIiB5MT0iNTAlIiB4Mj0iMCUiIHkyPSI1MCUiIGlkPSJhIj48c3RvcCBzdG9wLWNvbG9yPSIjNUVDN0VBIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzMwNTVEMCIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAtMSkiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PHBhdGggZD0ibTQuMzQyIDIuMDA1IDExLjg5NiA3LjEzOGExIDEgMCAwIDEgMCAxLjcxNEw0LjM0MiAxNy45OTVhMSAxIDAgMCAxLTEuMzc4LTEuMzYyTDYuODM0IDEwbC0zLjg3LTYuNjMzYTEgMSAwIDAgMSAxLjM3OC0xLjM2MloiIGZpbGw9InVybCgjYSkiLz48Y2lyY2xlIGZpbGw9IiMzMDYxRDAiIGN4PSIyIiBjeT0iMTAiIHI9IjIiLz48L2c+PC9zdmc+",ze=z(55238),Me=z(94184),me=z.n(Me),oe=z(67294),E=Object.defineProperty,y=Object.defineProperties,x=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,ne=(Ne,Le,Re)=>Le in Ne?E(Ne,Le,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ne[Le]=Re,de=(Ne,Le)=>{for(var Re in Le||(Le={}))ee.call(Le,Re)&&ne(Ne,Re,Le[Re]);if(b)for(var Re of b(Le))te.call(Le,Re)&&ne(Ne,Re,Le[Re]);return Ne},ye=(Ne,Le)=>y(Ne,x(Le)),ve=({dataSource:Ne,className:Le,style:Re})=>{const[He,We]=(0,a.useState)([]),[Ge,Ue]=(0,a.useState)(""),Ye=(0,a.useRef)("");(0,a.useEffect)(()=>{if(Ne!=null&&Ne.length){const Bt=String(Math.random()).slice(-6),ct=Ne.map(nt=>ye(de({},nt),{key:`${Bt}-${nt.key}`}));We(ct),Ue(ct[0].key)}},[Ne.length]);const it=Bt=>{Ue(Bt),Ye.current=Bt;const ct=document.getElementById(Bt);if(ct){const nt=ct.getBoundingClientRect().top+window.scrollY-50;window.scrollTo({top:nt,behavior:"smooth"})}},lt=()=>{const Bt=He.map(nt=>document.getElementById(nt.key)),ct=window.innerHeight/2;for(const nt of Bt)if(nt){const Ze=nt.getBoundingClientRect();if(Ze.top>=0&&Ze.top(window.addEventListener("scroll",lt),()=>{window.removeEventListener("scroll",lt)}),[He]),oe.createElement("div",{className:me()(Ce.anchorNavigation,Le),style:Re},oe.createElement(ze.default,{items:He,tabBarGutter:60,className:Ce.tabs,activeKey:Ge,onChange:it}),He.map(Bt=>oe.createElement("div",{key:Bt.key,id:Bt.key,className:Ce.box},oe.createElement("div",{className:Ce.head},oe.createElement("img",{className:"mr10",src:Ie,alt:"Dot"}),Bt.label),oe.createElement("div",{className:Ce.element},Bt.element))))}},17998:function(Ft,rt,z){"use strict";z.d(rt,{Q8:function(){return nt},d0:function(){return Ze},w6:function(){return ct}});var a=z(67294),Ce=z(18046),ke=z(88044),he=z(2453),Fe=z(62844),xe=z(98813),pe=z(71230),Se=z(15746),Ae=z(83062),Ie=z(84567),ze=z(85804),Me=z(94699),me=z.n(Me),oe=z(52262),E=z(33170),y=z(96486),x=z.n(y),b=z(28706),ee=z(39886),te=z(35973),ne=z(39717),de=z(78207),ye=z(92882),fe=z(96332),ve=z(93686),Ne=z(67294),Le=Object.defineProperty,Re=Object.defineProperties,He=Object.getOwnPropertyDescriptors,We=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,Ye=(Ct,kt,Mt)=>kt in Ct?Le(Ct,kt,{enumerable:!0,configurable:!0,writable:!0,value:Mt}):Ct[kt]=Mt,it=(Ct,kt)=>{for(var Mt in kt||(kt={}))Ge.call(kt,Mt)&&Ye(Ct,Mt,kt[Mt]);if(We)for(var Mt of We(kt))Ue.call(kt,Mt)&&Ye(Ct,Mt,kt[Mt]);return Ct},lt=(Ct,kt)=>Re(Ct,He(kt)),Bt=(Ct,kt,Mt)=>new Promise((st,ut)=>{var un=bt=>{try{Rn(Mt.next(bt))}catch(An){ut(An)}},Pn=bt=>{try{Rn(Mt.throw(bt))}catch(An){ut(An)}},Rn=bt=>bt.done?st(bt.value):Promise.resolve(bt.value).then(un,Pn);Rn((Mt=Mt.apply(Ct,kt)).next())});function ct(Ct,kt){const Mt=[];for(let st=Ct;st{const st=Ctme()(kt).endOf("day"),un=Ct{const Mt=parseInt(me()(Ct).format("HH")),st=parseInt(me()().format("HH")),ut=parseInt(me()().format("mm"));if(!Ct)return{disabledHours:()=>ct(0,st),disabledMinutes:()=>ct(0,ut)};if(kt){const un=parseInt(me()(kt).format("HH")),Pn=parseInt(me()(kt).format("mm"));return me()(Ct).isSame(me()(kt),"day")?{disabledHours:()=>ct(0,un),disabledMinutes:()=>Mt<=un?ct(0,Pn):[]}:void 0}if(me()(Ct).isSame(me()(),"day"))return{disabledHours:()=>ct(0,st),disabledMinutes:()=>me()(Ct).isSame(me()(),"hour")&&Mt<=st?ct(0,ut):[]}},yt=(Ct,kt)=>Ct==null?void 0:Ct.map(Mt=>{var st;return(st=kt==null?void 0:kt.find(ut=>ut.value===Mt))==null?void 0:st.id}),{RangePicker:ht}=Ce.default,{Option:Je}=ke.default,ot=({shixunHomeworks:Ct,loading:kt,dispatch:Mt,classroomList:st,user:ut})=>{var un,Pn,Rn,bt,An,Nn,Qt,zt,jt;const sn=(0,te.useParams)(),{workSetting:vt,workList:Tt,shixunWorkList:qt,headerInfo:St,changeData:Ke}=Ct,[ln,Un]=(0,a.useState)(!1),[Ca,Cu]=(0,a.useState)(!1);let[Da,nr]=(0,a.useState)([]),[cu,or]=(0,a.useState)([]),[Aa,Zt]=(0,a.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,penalty_type:ne.Q.Percent,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,comment_public:!0,total_score:"",eff_score:0,action_analysis:!1,work_end_forbid_evaluate:!1});const[xn,vl]=(0,a.useState)({}),[Er,er]=(0,a.useState)({});(0,a.useEffect)(()=>()=>{nr([])},[]),(0,a.useEffect)(()=>{Un(!(0,oe.GJ)())},[(0,oe.GJ)()]);const Pa=()=>{Mt({type:"shixunHomeworks/getWorkSetting",payload:it({},sn)})};(0,a.useEffect)(()=>{if(!(vt!=null&&vt.course_id))return;Object.keys(Aa).map(function(_n){Aa[_n]=vt[_n]}),(!Aa.allow_late||!Aa.unified_late)&&(Aa.late_penalty=20,Aa.penalty_type=ne.Q.Percent),Aa.unified_setting||(Aa.unified_late=!1,Aa.unified_anonymous_comment=!1,Aa.unified_anonymous_appeal=!1),Da=JSON.parse(JSON.stringify(vt.group_settings.map(_n=>lt(it({},_n),{group_name:[_n.group_name]})).filter(_n=>_n.publish_time!==null))),cu=JSON.parse(JSON.stringify(vt.allow_late_settings.map(_n=>lt(it({},_n),{group_name:[_n.group_name]})).filter(_n=>_n.late_time!==null))),Zt(it({},Aa));const Jt=(0,b.QE)((Da==null?void 0:Da.length)>0?Da:[]);nr([...Jt]),(cu==null?void 0:cu.length)<=0?or([{penalty_type:ne.Q.Percent,late_penalty:20}]):or([...cu])},[vt]);const Za=()=>Bt(void 0,null,function*(){var Jt,_n;if(((Jt=ut==null?void 0:ut.userInfo)==null?void 0:Jt.user_status)===2){(0,de.Rd)();return}const Gn=JSON.parse(JSON.stringify(Aa));if(Gn.challenge_settings.filter(oa=>!oa.hide),Gn.categoryId=sn.categoryId,(_n=Gn.challenge_settings)!=null&&_n.every(oa=>!oa.checked)){he.ZP.warning("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}if(console.log(Da),!Aa.unified_setting)Da=Da==null?void 0:Da.map(oa=>{var Ta;if(!oa.publish_time||!oa.end_time)throw he.ZP.error("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!oa.group_name)throw he.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return oa.group_name=typeof(oa==null?void 0:oa.group_name)=="string"?[oa==null?void 0:oa.group_name]:oa==null?void 0:oa.group_name,oa.group_id=(Ta=vt.group_settings)==null?void 0:Ta.filter(hu=>{var ft;return(ft=oa==null?void 0:oa.group_name)==null?void 0:ft.includes(hu.group_name)}).map(hu=>hu.group_id||hu.id).toString().split(","),oa});else if(!Aa.publish_time||!Aa.end_time)throw he.ZP.error("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A");if(Gn.group_settings=Da,Aa.allow_late)if(Aa.unified_late){if(Aa.late_penalty===null||Aa.late_penalty===void 0||Aa.late_penalty<0||Aa.late_penalty>100)throw he.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!Aa.late_time)throw he.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574")}else cu=cu==null?void 0:cu.map(oa=>{var Ta,hu;if(oa.late_penalty===null||oa.late_penalty===void 0||oa.late_penalty<0||oa.late_penalty>100)throw he.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!oa.late_time)throw he.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!oa.group_name)throw he.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return oa.group_name=typeof(oa==null?void 0:oa.group_name)=="string"?[oa==null?void 0:oa.group_name]:oa==null?void 0:oa.group_name,oa.group_id=(hu=(Ta=oa==null?void 0:oa.group_name)==null?void 0:Ta.map(ft=>{var re,ge;let De=(ge=(re=vt.group_settings)==null?void 0:re.filter(Xe=>(Xe==null?void 0:Xe.group_name)===ft))==null?void 0:ge[0];return De==null?void 0:De.group_id}))==null?void 0:hu.toString().split(","),oa}),Gn.allow_late_settings=cu;let ua=yield(0,ve.Tr)({homework_common_ids:[parseInt(sn.categoryId)],course_id:sn.coursesId,type:"homework_common"});(ua==null?void 0:ua.student_count)===0?qn(Gn):(er(Gn),vl(ua))}),qn=Jt=>{var _n;if(Jt.total_score===null){he.ZP.warning("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(Jt!=null&&Jt.work_efficiency&&Jt.eff_score===null){he.ZP.warning("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}const Gn=Jt.challenge_settings.reduce((Ta,hu)=>Ta+Number(hu.challenge_score),0);if((Gn==null?void 0:Gn.toFixed(10))!==((_n=Jt.total_score-Jt.eff_score)==null?void 0:_n.toFixed(10))){he.ZP.warning(`\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A${Jt.total_score}\u5206`);return}const ua={shixun_evaluation:Jt.shixun_evaluation,challenge_settings:Jt.challenge_settings};let oa=()=>{var Ta;const hu=()=>Bt(void 0,null,function*(){Cu(!0),(yield(0,E.ZP)(`/api/homework_commons/${sn.categoryId}/publish_setting.json`,{method:"post",body:it({},Jt)})).status===0&&(he.ZP.success("\u66F4\u65B0\u6210\u529F"),Pa(),Mt({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:it({},sn)})),Cu(!1)});!(0,y.isEqual)(Ke,ua)&&!((Ta=St==null?void 0:St.homework_status)!=null&&Ta.includes("\u672A\u53D1\u5E03"))?Fe.default.confirm({title:"\u66F4\u65B0\u6210\u7EE9",content:"\u60A8\u6539\u52A8\u4E86\u672C\u6B21\u4F5C\u4E1A\u7684\u5173\u5361\u5F97\u5206\u8BBE\u7F6E\uFF0C\u8FD9\u53EF\u80FD\u5BFC\u81F4\u5DF2\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\u7684\u6210\u7EE9\u4EA7\u751F\u9519\u8BEF\u3002\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u6309\u94AE\u5C06\u4FDD\u5B58\u6700\u65B0\u8BBE\u7F6E\u5E76\u6309\u6700\u65B0\u8BBE\u7F6E\u66F4\u65B0\u5168\u73ED\u6210\u7EE9\u3002",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:hu}):hu()};vt!=null&&vt.high_resources_consume&&!(vt!=null&&vt.high_resources_consume_permission)?Mt({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:sn.coursesId,type:"shixun",type_id:sn.categoryId,name:vt.homework_name,fn:()=>{oa()}}}):oa()},Vn=(Jt,_n,Gn="group_id")=>{var ua;return _n?_n.find(oa=>oa[Gn]===Jt):(ua=vt==null?void 0:vt.group_settings)==null?void 0:ua.find(oa=>oa.group_id[0]===Jt)},Qa=(vt==null?void 0:vt.allow_late)||(vt==null?void 0:vt.anonymous_comment),gu=Jt=>{var _n,Gn;const ua=Vn(Jt,vt==null?void 0:vt.allow_late_settings,"id"),oa=Vn(Jt,vt==null?void 0:vt.anonymous_comment_settings),Ta=Vn(Jt);return(vt==null?void 0:vt.allow_late)&&ua&&me()(ua==null?void 0:ua.late_time)<=me()()||(vt==null?void 0:vt.anonymous_comment)&&oa&&(oa==null?void 0:oa.evaluation_start)!==null||((Gn=(me()(Ta==null?void 0:Ta.end_time)<=me()()&&((_n=vt==null?void 0:vt.allow_late_settings)==null?void 0:_n.filter(hu=>hu.group_id.includes(Jt))))[0])==null?void 0:Gn.late_time)!=null},_u=(0,a.useMemo)(()=>(vt==null?void 0:vt.allow_late)||(vt==null?void 0:vt.all_group_late),[vt,St]),ir=vt==null?void 0:vt.anonymous_comment,ul=Jt=>{if(!Jt)return!1;const _n=Vn(Jt,vt==null?void 0:vt.anonymous_comment_settings);return(vt==null?void 0:vt.anonymous_comment)&&_n&&(_n==null?void 0:_n.evaluation_start)!==null},On=(Jt,_n)=>{var Gn,ua,oa,Ta,hu;Jt!=null&&Jt.group_id||(Jt.group_id=yt(Jt==null?void 0:Jt.group_name,vt==null?void 0:vt.group_settings)),Mt({type:"classroomList/setActionTabs",payload:{key:"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",data:Jt,index:_n,rangePickerDisabled:(ua=(Gn=Jt==null?void 0:Jt.group_id)==null?void 0:Gn[0])!=null&&ua.publish_time?ln||(me()()<=me()((Ta=Vn((oa=Jt==null?void 0:Jt.group_id)==null?void 0:oa[0]))==null?void 0:Ta.publish_time)?!1:[!0,gu((hu=Jt==null?void 0:Jt.group_id)==null?void 0:hu[0])]):!1,disabledDate:vt==null?void 0:vt.course_end_date}})};return Ne.createElement("section",{className:ee.Z.form},Ne.createElement("div",{className:ee.Z.title},"\u4F5C\u4E1A\u53D1\u5E03",Ne.createElement("span",{className:"c-grey-666 font14",style:{fontWeight:400}},"\uFF08\u4F5C\u4E1A\u4E00\u65E6\u53D1\u5E03\u540E\u4E0D\u53EF\u53D8\u66F4\u8BD5\u9898\u53D1\u5E03\u6A21\u5F0F\uFF09")),Ne.createElement("div",null,Ne.createElement("div",{style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},Ne.createElement(xe.ZP.Group,{disabled:ln||!((un=St==null?void 0:St.homework_status)!=null&&un.includes("\u672A\u53D1\u5E03"))||(0,oe.Rm)()&&!((Pn=st.AssistantObject.practice)!=null&&Pn.can_publish),value:Aa.unified_setting,onChange:Jt=>{var _n;if(!((_n=St==null?void 0:St.homework_status)!=null&&_n.includes("\u672A\u53D1\u5E03"))){he.ZP.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u7EDF\u4E00\u8BBE\u7F6E");return}if(Aa.unified_setting=!Aa.unified_setting,Aa.unified_setting||(Aa.unified_late=!1,or([{late_penalty:5}])),Zt(Object.assign({},Aa)),Aa.unified_setting===!1&&Da==""){nr(Da.concat({}));return}Aa.unified_setting&&(nr([]),or([{late_penalty:5}]))}},Ne.createElement(xe.ZP,{value:!0,disabled:ln||!(vt!=null&&vt.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u53D1\u5E03"),Ne.createElement(xe.ZP,{disabled:ln||!((Rn=vt==null?void 0:vt.group_settings)!=null&&Rn.length),value:!1},"\u5206\u73ED\u53D1\u5E03")),((bt=vt==null?void 0:vt.group_settings)==null?void 0:bt.length)===0&&Ne.createElement("div",{style:{color:"rgba(0, 0, 0, 0.25)",height:"22px"}},"\uFF08\u672C\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03\u201C\uFF09")),Aa.unified_setting&&Ne.createElement("div",{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",height:"50px",marginTop:"1px"}},Ne.createElement(pe.Z,{align:"middle"},Ne.createElement(Se.Z,{style:{marginLeft:"23px"}},"\u53D1\u5E03\u65F6\u95F4"),Ne.createElement(Se.Z,{className:"ml10"},Ne.createElement(Ce.default,{size:"large",disabled:ln||!((An=St==null?void 0:St.homework_status)!=null&&An.includes("\u672A\u53D1\u5E03")||(Nn=St==null?void 0:St.homework_status)!=null&&Nn.includes("\u672A\u5F00\u59CB"))||(0,oe.Rm)()&&!((Qt=st.AssistantObject.practice)!=null&&Qt.can_publish),style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},allowClear:!1,format:"YYYY-MM-DD HH:mm",disabledDate:Jt=>nt(Jt,vt==null?void 0:vt.course_end_date),disabledTime:Jt=>Ze(Jt),value:Aa.publish_time?me()(Aa.publish_time):"",onChange:(Jt,_n)=>{Aa.publish_time=_n,(Aa.end_time==""||!Aa.end_time)&&Aa.unified_setting&&(Aa.end_time=me()(Jt).add(7,"days").format("YYYY-MM-DD HH:mm:ss")),Zt(Object.assign({},Aa))}}))),Ne.createElement(pe.Z,{align:"middle",className:"pl30"},Ne.createElement(Se.Z,null,"\u622A\u6B62\u65F6\u95F4"),Ne.createElement(Se.Z,{className:"ml10"},Ne.createElement(Ce.default,{size:"large",style:{width:170},allowClear:!1,placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:me()((0,b.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:(vt==null?void 0:vt.allow_late)&&(vt==null?void 0:vt.homework_status.includes("\u5DF2\u622A\u6B62"))||ln||(vt==null?void 0:vt.allow_late)&&me()()>=me()(vt==null?void 0:vt.end_time)||(0,oe.Rm)()&&!((zt=st.AssistantObject.practice)!=null&&zt.can_publish),disabledDate:Jt=>nt(Jt,vt==null?void 0:vt.course_end_date,Aa.publish_time),disabledTime:Jt=>Ze(Jt,Aa.publish_time),value:Aa.end_time?me()(Aa.end_time):"",onChange:(Jt,_n)=>{Aa.end_time=_n,Zt(Object.assign({},Aa))}})))),!Aa.unified_setting&&(Da==null?void 0:Da.length)>0&&Ne.createElement(pe.Z,{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",marginTop:"1px"}},Da&&Da.map(function(Jt,_n){var Gn,ua,oa,Ta,hu,ft,re;return Ne.createElement(Se.Z,{span:24,key:_n},Ne.createElement(pe.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:_n==(Da==null?void 0:Da.length)-1?"0px":"10px"}},Ne.createElement("div",{style:{minWidth:85,marginRight:"15px",textAlign:"right"}},"\u53D1\u5E03\u89C4\u5219",_n+1),Ne.createElement(ke.default,{disabled:ln||((Gn=St==null?void 0:St.homework_status)!=null&&Gn.includes("\u672A\u53D1\u5E03")&&Jt.id||me()(){var De;if((0,oe.Rm)()&&!((De=st.AssistantObject.practice)!=null&&De.can_publish)){he.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Da[_n].group_name=ge,Da[_n].group_id=Jt.group_id;const Xe=(0,y.flattenDeep)(Da.map(Ot=>Ot.group_name)),tt=cu.map(Ot=>{let Lt=(Ot==null?void 0:Ot.group_name)||[];return lt(it({},Ot),{group_name:(0,y.remove)(Lt,Wn=>Xe.includes(Wn))})});or(tt),nr(Da.slice())},maxTagCount:4,maxTagPlaceholder:ge=>Ne.createElement("div",{style:{cursor:"pointer"},onClick:()=>On(Jt,_n)},"+",ge==null?void 0:ge.length)},vt.group_settings&&vt.group_settings.map(function(ge){if(!Da.map(Xe=>Xe.group_name).flat().includes(ge.group_name))return Ne.createElement(Je,{value:ge.group_name,key:ge.id},ge.group_name)})),Ne.createElement("div",{className:"ml20"},Ne.createElement(ht,{size:"large",ranges:{\u6B64\u523B:[Jt.publish_time?me()(Jt.publish_time):me()(),me()()]},allowClear:!1,disabled:ln||(me()()<=me()((Ta=Vn((oa=Jt==null?void 0:Jt.group_id)==null?void 0:oa[0]))==null?void 0:Ta.publish_time)?!1:[!0,gu((hu=Jt==null?void 0:Jt.group_id)==null?void 0:hu[0])]),style:{width:605},placeholder:["\u53D1\u5E03\u65F6\u95F4\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4\uFF09","\u622A\u6B62\u65F6\u95F4\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9\uFF09"],disabledDate:ge=>nt(ge,vt==null?void 0:vt.course_end_date),disabledTime:ge=>Ze(ge),showTime:{showNow:!0,format:"HH:mm",defaultValue:[me()((0,b.U6)(),"HH:mm"),me()((0,b.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:[Jt.publish_time?me()(Jt.publish_time):void 0,Jt.end_time?me()(Jt.end_time):void 0],onChange:(ge,De)=>{var Xe;if((0,oe.Rm)()&&!((Xe=st.AssistantObject.practice)!=null&&Xe.can_publish)){he.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Da[_n].publish_time=De[0],!Jt.end_time&&De[0]?Da[_n].end_time=me()(De[0]).add(7,"days"):Da[_n].end_time=De[1],nr([...Da])},onCalendarChange:(ge,De,Xe)=>{if(De!=null&&De[0]&&!De[1]){const tt=me()(De[0]).add(7,"days");Da[_n].publish_time=De[0],Da[_n].end_time=tt,nr([...Da])}}})),!ln&&Ne.createElement("div",{style:{display:"flex",width:"50px"}},((ft=Jt==null?void 0:Jt.group_id)==null?void 0:ft.length)>1&&Ne.createElement(Ae.Z,{title:"\u89C4\u5219\u62C6\u5206"},Ne.createElement("i",{className:"iconfont icon-chaifen ml10",style:{cursor:"pointer",color:"#3061d0"},onClick:()=>On(Jt,_n)})),Da.length<((re=vt==null?void 0:vt.group_settings)==null?void 0:re.length)&&Ne.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var ge;if((0,oe.Rm)()&&!((ge=st.AssistantObject.practice)!=null&&ge.can_publish)){he.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}nr(Da.concat({}))}}),((Jt==null?void 0:Jt.publish_time)&&me()(){const ge=(0,y.cloneDeep)(cu);ge.forEach((De,Xe)=>{De.group_name&&(De.group_name=De.group_name.filter(tt=>{var Ot;return!((Ot=Da[_n].group_name)!=null&&Ot.includes(tt))}))}),Da=Da.filter((De,Xe)=>_n!==Xe),or(ge),nr(Da.slice()),setTimeout(()=>nr(Da.slice()),10)}}))))}))),Ne.createElement(pe.Z,null,Ne.createElement(Se.Z,null,Ne.createElement("div",{className:ee.Z.title,style:{marginTop:"30px"}},"\u8865\u4EA4\u8BBE\u7F6E",Ne.createElement("span",{className:"c-grey-666 font14",style:{fontWeight:400}},"\uFF08\u53EF\u5BF9\u5728\u4F5C\u4E1A\u53D1\u5E03\u65F6\u95F4\u8303\u56F4\u5185\u672A\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\uFF0C\u5EF6\u957F\u65F6\u95F4\u8FDB\u884C\u8865\u4EA4\uFF09"))),Ne.createElement(Se.Z,{span:24,style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},Ne.createElement(Ie.default,{checked:Aa.allow_late,disabled:ln||_u,onChange:Jt=>{var _n;if((0,oe.Rm)()&&!((_n=st.AssistantObject.practice)!=null&&_n.can_late)){he.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Jt.target.checked&&Fe.default.warning({title:"\u5F00\u542F\u8865\u4EA4\u63D0\u793A",centered:!0,width:480,content:Ne.createElement("div",{style:{padding:10,background:"#f5f6f9"}},Ne.createElement("div",null,"1.\u5F00\u542F\u8865\u4EA4\u540E\u4E0D\u53EF\u5173\u95ED\uFF0C\u8865\u4EA4\u65B9\u5F0F\u63D0\u4EA4\u4FDD\u5B58\u540E\u4E0D\u53EF\u4FEE\u6539\uFF1B"),Ne.createElement("div",null,"2.\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u5FC5\u987B\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\uFF1B"),Ne.createElement("div",null,"3.\u73ED\u7EA7\u9636\u6BB5\u8FDB\u5165\u201C\u8865\u4EA4\u4E2D\u201D\u5219\u4E0D\u53EF\u53D8\u66F4\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\u3002"))}),Aa.allow_late=!Aa.allow_late,cu==""&&or([{late_penalty:5}]),Zt(Object.assign({},Aa))}},Ne.createElement("strong",null,"\u5F00\u542F\u8865\u4EA4")))),(Aa==null?void 0:Aa.allow_late)&&Ne.createElement("div",{style:{background:"#F6F7F9",padding:"10px 30px",marginTop:"1px",color:"#666666"}},Ne.createElement("div",{style:{display:"flex"}},Ne.createElement("div",{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u65B9\u5F0F"),Ne.createElement(xe.ZP.Group,{style:{marginLeft:"20px"},disabled:ln||(vt==null?void 0:vt.anonymous_comment)||(vt==null?void 0:vt.allow_late),value:Aa.unified_late,onChange:Jt=>{var _n;if((0,oe.Rm)()&&!((_n=st.AssistantObject.practice)!=null&&_n.can_late)){he.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Aa.unified_late=Jt.target.value,cu==""&&!Jt.target.value&&or([{penalty_type:ne.Q.Percent,late_penalty:20}]),Zt(it({},Aa))}},(Aa==null?void 0:Aa.unified_setting)&&Ne.createElement(xe.ZP,{value:!0,disabled:!(vt!=null&&vt.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u8865\u4EA4"),((jt=vt==null?void 0:vt.group_settings)==null?void 0:jt.length)>0&&Ne.createElement(xe.ZP,{value:!1},"\u5206\u73ED\u8865\u4EA4"))),Aa!=null&&Aa.unified_late?Ne.createElement(Ne.Fragment,null,Ne.createElement(pe.Z,{align:"middle",style:{marginTop:"10px"}},Ne.createElement(Se.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u6263\u5206"),Ne.createElement(Se.Z,{className:"ml20"},Ne.createElement(ne.Z,{disabled:ln||ir,value:{type:Aa.penalty_type,inputValue:Aa.late_penalty},onChange:Jt=>{var _n;if((0,oe.Rm)()&&!((_n=st.AssistantObject.practice)!=null&&_n.can_late)){he.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Zt(lt(it({},Aa),{late_penalty:Jt.inputValue,penalty_type:Jt.type}))}})),Ne.createElement(Se.Z,{flex:"1",className:"ml5"},Ne.createElement("span",{className:"c-grey-c ml10"},Aa.penalty_type===ne.Q.Number?"(\u8865\u4EA4\u65F6\u6309\u7167\u5B66\u751F\u603B\u6210\u7EE9\u6263\u5206)":"(\u5B66\u751F\u6700\u7EC8\u5F97\u5206=\u8865\u4EA4\u524D\u5F97\u5206+\u8865\u4EA4\u9636\u6BB5\u589E\u52A0\u7684\u5206\u503C*\uFF08100%-\u767E\u5206\u6BD4%\uFF09)"))),Ne.createElement(pe.Z,{align:"middle",style:{marginTop:"15px"}},Ne.createElement(Se.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),Ne.createElement(Se.Z,{className:"ml20"},Ne.createElement(Ce.default,{size:"large",allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:me()((0,b.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:ln||ir,value:Aa.late_time?me()(Aa.late_time):"",disabledDate:Jt=>nt(Jt,vt==null?void 0:vt.course_end_date),onChange:(Jt,_n)=>{var Gn;if((0,oe.Rm)()&&!((Gn=st.AssistantObject.practice)!=null&&Gn.can_late)){he.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Aa.late_time=_n,Zt(Object.assign({},Aa))}})))):cu.map(function(Jt,_n){var Gn;return Ne.createElement(Se.Z,{span:24,key:_n},Ne.createElement(pe.Z,{style:{display:"flex",alignItems:"center",marginTop:"10px"}},Ne.createElement("div",{style:{width:"85px",marginLeft:"27px",textAlign:"right"}},"\u8865\u4EA4\u89C4\u5219",_n+1),Ne.createElement(ke.default,{disabled:ln||!((Gn=St==null?void 0:St.homework_status)!=null&&Gn.includes("\u672A\u53D1\u5E03"))&&Jt.id||(vt==null?void 0:vt.anonymous_comment),mode:"multiple",className:ee.Z.multiple_select,style:{width:"212px",marginLeft:"18px"},value:typeof Jt.group_name=="string"?[Jt.group_name]:Jt.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:ua=>{var oa;if((0,oe.Rm)()&&!((oa=st.AssistantObject.practice)!=null&&oa.can_late)){he.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}cu[_n].group_name=ua,cu[_n].group_id=Jt.group_id,or(cu.slice())}},vt.group_settings&&vt.group_settings.map(function(ua){const oa=cu.map(hu=>hu.group_name).flat(),Ta=Da.map(hu=>hu.group_name).flat();if(Aa!=null&&Aa.unified_setting){if(!oa.includes(ua.group_name))return Ne.createElement(Je,{value:ua.group_name,key:ua.id},ua.group_name)}else if(Ta.includes(ua.group_name)&&!oa.includes(ua.group_name))return Ne.createElement(Je,{value:ua.group_name,key:ua.id},ua.group_name)})),Ne.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u6263\u5206"),Ne.createElement(ne.Z,{disabled:ln||ul(Jt.id),value:{type:Jt.penalty_type,inputValue:Jt.late_penalty},onChange:ua=>{var oa;if((0,oe.Rm)()&&!((oa=st.AssistantObject.practice)!=null&&oa.can_late)){he.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}cu[_n].late_penalty=ua.inputValue,cu[_n].penalty_type=ua.type,or([...cu])}}),Ne.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),Ne.createElement(Ce.default,{size:"large",disabled:ln||ul(Jt.id),style:{width:225},showTime:{format:"HH:mm",defaultValue:me()((0,b.U6)(),"HH:mm")},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",disabledDate:ua=>nt(ua,vt==null?void 0:vt.course_end_date),format:"YYYY-MM-DD HH:mm",value:Jt!=null&&Jt.late_time?me()(Jt.late_time):void 0,onChange:(ua,oa)=>{var Ta;if((0,oe.Rm)()&&!((Ta=st.AssistantObject.practice)!=null&&Ta.can_late)){he.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}cu[_n].late_time=oa,or([...cu])}}),!ln&&Ne.createElement("div",{style:{display:"flex",width:"50px"}},Ne.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var ua;if((0,oe.Rm)()&&!((ua=st.AssistantObject.practice)!=null&&ua.can_late)){he.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}or(cu.concat({penalty_type:ne.Q.Percent,late_penalty:20}))}}),_n>0&&!Jt.id&&Ne.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{var ua;if((0,oe.Rm)()&&!((ua=st.AssistantObject.practice)!=null&&ua.can_late)){he.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}cu=cu.filter((oa,Ta)=>_n!==Ta),or(cu.slice()),setTimeout(()=>or(cu.slice()),10)}}))))})),!ln&&Ne.createElement(Ne.Fragment,null,Ne.createElement(ze.ZP,{type:"primary",size:"large",loading:Ca,style:{width:"138px",marginTop:"30px"},onClick:()=>Za()},"\u4FDD\u5B58")),Ne.createElement(ye.Z,{onConfirm:(Jt,_n)=>{Da.splice(Jt,0,..._n),Da.splice(Jt+_n.length,1);const Gn=(0,b.QE)([...Da]);nr([...Gn])}}),Ne.createElement(fe.Z,{resdata:xn,type:"shixun",okloading:Ca,oktext:(xn==null?void 0:xn.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:Jt=>Bt(void 0,null,function*(){Cu(!0);let _n=yield(0,E.ZP)(`/api/courses/${sn.coursesId}/batch_copy_shixuns.json`,{method:"post",body:{type:"homework_common",ids:[parseInt(sn.categoryId)]}});Cu(!1),(_n==null?void 0:_n.status)===0&&qn(Er)})}))};rt.ZP=(0,te.connect)(({shixunHomeworks:Ct,classroomList:kt,loading:Mt,user:st})=>({shixunHomeworks:Ct,classroomList:kt,loading:Mt.effects,user:st}))(ot)},6151:function(Ft,rt,z){"use strict";var a=z(67294),Ce=z(35059),ke=z(91773),he=z(62844),Fe=z(2453),xe=z(57399),pe=z(35973),Se=z(11320),Ae=z(67795),Ie=z(33170),ze=z(94699),Me=z.n(ze),me=z(28706),oe=z(67294),E=Object.defineProperty,y=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,ee=(fe,ve,Ne)=>ve in fe?E(fe,ve,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):fe[ve]=Ne,te=(fe,ve)=>{for(var Ne in ve||(ve={}))x.call(ve,Ne)&&ee(fe,Ne,ve[Ne]);if(y)for(var Ne of y(ve))b.call(ve,Ne)&&ee(fe,Ne,ve[Ne]);return fe},ne=(fe,ve,Ne)=>new Promise((Le,Re)=>{var He=Ue=>{try{Ge(Ne.next(Ue))}catch(Ye){Re(Ye)}},We=Ue=>{try{Ge(Ne.throw(Ue))}catch(Ye){Re(Ye)}},Ge=Ue=>Ue.done?Le(Ue.value):Promise.resolve(Ue.value).then(He,We);Ge((Ne=Ne.apply(fe,ve)).next())});const{Dragger:de}=Ce.default,ye=({classroomList:fe,dispatch:ve,onOk:Ne})=>{const Le=(0,pe.useParams)(),[Re]=ke.default.useForm(),[He,We]=(0,a.useState)(),[Ge,Ue]=(0,a.useState)(!1),Ye={height:100,onRemove:()=>{We("")},accept:".xls,.xlsx",multiple:!1,maxCount:1,beforeUpload:it=>ne(void 0,null,function*(){return We(it),!1})};return(0,a.useEffect)(()=>{Re.setFieldsValue({publish_time:Me()(Me()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:Me()(Me()(new Date((0,me.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))})},[]),oe.createElement(he.default,{centered:!0,title:"\u8865\u5145\u6210\u7EE9",open:fe.actionTabs.key==="\u8865\u5145\u6210\u7EE9",okText:"\u786E\u5B9A",width:750,destroyOnClose:!0,cancelText:"\u53D6\u6D88",okButtonProps:{loading:Ge},onOk:()=>ne(void 0,null,function*(){Re.submit()}),onCancel:()=>{Re.resetFields(),ve({type:"classroomList/setActionTabs",payload:{}})}},oe.createElement(ke.default,{form:Re,onFinish:it=>ne(void 0,null,function*(){var lt,Bt,ct;if(!(He!=null&&He.size)){Fe.ZP.info("\u8BF7\u4E0A\u4F20\u6587\u4EF6");return}Ue(!0);let nt=new FormData;nt.append("type",fe.actionTabs.type),nt.append("file",He);let Ze;window.location.href.indexOf("exercise")>-1?Ze=`/api/exercises/${fe.actionTabs.id}/supplement_score.json`:Ze=`/api/homework_commons/${fe.actionTabs.id}/supplement_score.json`;let yt=yield(0,Ie.ZP)(Ze,{method:"post",body:nt},!0);Ue(!1),(yt==null?void 0:yt.status)===0&&(Ne(),Re.resetFields(),ve({type:"classroomList/setActionTabs",payload:{}}),((Bt=(lt=yt==null?void 0:yt.data)==null?void 0:lt.fail)==null?void 0:Bt.length)>0&&he.default.confirm({title:"\u5BFC\u5165\u5931\u8D25",closable:!0,icon:null,width:610,content:oe.createElement(xe.default,{pagination:!1,dataSource:(ct=yt==null?void 0:yt.data)==null?void 0:ct.fail,scroll:{y:400},columns:[{title:"\u59D3\u540D",align:"left",dataIndex:"name"},{title:"\u5B66\u53F7/\u624B\u673A\u53F7/\u90AE\u7BB1",align:"left",dataIndex:"student_id"},{title:"\u5BFC\u5165\u5931\u8D25\u539F\u56E0",align:"left",dataIndex:"message"}]}),okText:"\u4E0B\u8F7D\u5BFC\u5165\u5931\u8D25\u6587\u4EF6",cancelText:"\u53D6\u6D88",onOk:()=>{(0,me.FH)("",Se.Z.API_SERVER+`/api/courses/get_external_score_fail_data.xlsx?type=${fe.actionTabs.type}`)}}))})},oe.createElement(ke.default.Item,{label:"\u4F5C\u4E1A\u540D\u79F0",labelCol:{span:3},name:"name"},fe.actionTabs.name),oe.createElement(ke.default.Item,{style:{marginBottom:0},label:oe.createElement("div",null,oe.createElement("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"}},"*"),oe.createElement("span",null,"\u5BFC\u5165\u6587\u4EF6")),labelCol:{span:3},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u540D\u79F0"}]},oe.createElement("div",null,oe.createElement("a",{download:"\u6A21\u7248.xlsx",className:Ae.Z.downloadbutton,href:Se.Z.API_SERVER+`/api/courses/down_external_score_template.json?type=${fe.actionTabs.type}`},"\u4E0B\u8F7D\u6A21\u7248\u8868\u683C"),oe.createElement("span",{style:{marginLeft:10,color:"#999999"}},"\uFF08\u6839\u636E\u63D0\u793A\u4FE1\u606F\u5B8C\u5584\u8868\u683C\u5185\u5BB9\uFF09")),oe.createElement(ke.default.Item,{style:{marginBottom:0}},oe.createElement(de,te({},Ye),oe.createElement("a",{className:Ae.Z.downloadbutton,style:{width:96}},"\u9009\u62E9\u6587\u4EF6"),oe.createElement("br",null),oe.createElement("span",{style:{color:"#999999"}},"\u4E0B\u8F7D\u6A21\u677F\u5E76\u5B8C\u5584\u4FE1\u606F\u540E\uFF0C\u53EF\u5C06\u6587\u4EF6\u62D6\u66F3\u81F3\u6B64\u5904\u4E0A\u4F20\u3002\u652F\u6301\u683C\u5F0F\uFF1A.xls\u3001.xlsx"))))))};rt.Z=(0,pe.connect)(({classroomList:fe})=>({classroomList:fe}))(ye)},44694:function(Ft,rt,z){"use strict";var a=z(67294),Ce=z(35059),ke=z(91773),he=z(55238),Fe=z(57399),xe=z(14845),pe=z(35973),Se=z(33170),Ae=z(94699),Ie=z.n(Ae),ze=z(67294),Me=(E,y,x)=>new Promise((b,ee)=>{var te=ye=>{try{de(x.next(ye))}catch(fe){ee(fe)}},ne=ye=>{try{de(x.throw(ye))}catch(fe){ee(fe)}},de=ye=>ye.done?b(ye.value):Promise.resolve(ye.value).then(te,ne);de((x=x.apply(E,y)).next())});const{Dragger:me}=Ce.default,oe=({})=>{const E=(0,pe.useParams)(),[y]=ke.default.useForm(),[x,b]=(0,a.useState)(!0),[ee,te]=(0,a.useState)(!1);let[ne,de]=(0,a.useState)({type:window.location.href.indexOf("program_homework")>-1?2:1,limit:10,page:1});const ye=[{name:"\u5168\u90E8",value:"",question_type:0},{name:"\u5355\u9009\u9898",value:"SINGLE",question_type:0},{name:"\u591A\u9009\u9898",value:"MULTIPLE",question_type:1},{name:"\u5224\u65AD\u9898",value:"JUDGMENT",question_type:2},{name:"\u586B\u7A7A\u9898",value:"COMPLETION",question_type:3},{name:"\u7B80\u7B54\u9898",value:"SUBJECTIVE",question_type:4},{name:"\u5B9E\u8BAD\u9898",value:"SHIXUN",question_type:5},{name:"\u7F16\u7A0B\u9898",value:"PROGRAM",question_type:6},{name:"\u7EC4\u5408\u9898",value:"COMBINATION",question_type:7},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",value:"BPROGRAM",question_type:8}];function fe(){return Me(this,null,function*(){let Ne;te(!0),window.location.href.indexOf("exercise")>-1?Ne=`/api/exercises/${E==null?void 0:E.categoryId}/redo_logs.json`:Ne=`/api/homework_commons/${E==null?void 0:E.categoryId}/redo_logs.json`;let Le=yield(0,Se.ZP)(Ne,{method:"get",params:ne});te(!1),(Le==null?void 0:Le.status)===0&&b(Le==null?void 0:Le.data)})}(0,a.useEffect)(()=>{fe()},[]);let ve=[{title:"\u59D3\u540D",dataIndex:"user_name"},{title:"\u5B66\u53F7",dataIndex:"student_id"},{title:"\u73ED\u7EA7",dataIndex:"course_group_name"},window.location.href.indexOf("exercise")>-1&&{title:"\u9898\u578B",dataIndex:"question_type",render:(Ne,Le,Re)=>{var He;return(He=ye.find(We=>We.question_type===Ne))==null?void 0:He.name}},window.location.href.indexOf("exercise")>-1&&{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"question_name"},window.location.href.indexOf("exercise")>-1&&{title:"\u5173\u5361\u540D\u79F0",dataIndex:"challenge_name"},window.location.href.indexOf("exercise")<=-1&&{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"task_name",width:"40%"},{title:"\u64CD\u4F5C",dataIndex:"redo_type",render:(Ne,Le,Re)=>{var He;return(He=[{id:1,name:"\u6253\u56DE\u91CD\u505A"},{id:2,name:"\u6062\u590D\u521D\u59CB\u4EE3\u7801"},{id:3,name:"\u91CD\u7F6E\u4EE3\u7801\u4ED3\u5E93"}].find(We=>We.id===Ne))==null?void 0:He.name}},{title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801\u65F6\u95F4",dataIndex:"created_at",render:(Ne,Le,Re)=>Ie()(Ne).format("YYYY-MM-DD HH:mm:ss")}].filter(Ne=>!!Ne);return ze.createElement("div",{style:{padding:"0px 30px",background:"#fff",paddingBottom:30}},ze.createElement(he.default,{destroyInactiveTabPane:!0,onChange:Ne=>{ne.type=Ne,ne.page=1,ne.limit=10,de(ne),fe()},items:[window.location.href.indexOf("program_homework")<=-1&&{key:"1",label:"\u6253\u56DE\u91CD\u505A",children:ze.createElement(Fe.default,{className:"mt20",loading:ee,columns:[{title:"\u59D3\u540D",dataIndex:"user_name"},{title:"\u5B66\u53F7",dataIndex:"student_id"},{title:"\u73ED\u7EA7",dataIndex:"course_group_name"},{title:"\u6253\u56DE\u91CD\u505A\u65F6\u95F4",dataIndex:"created_at",render:(Ne,Le,Re)=>Ie()(Ne).format("YYYY-MM-DD HH:mm:ss")},{title:"\u64CD\u4F5C\u4EBA",dataIndex:"operator"}],dataSource:x==null?void 0:x.list,pagination:!1})},{key:"2",label:"\u91CD\u7F6E\u4EE3\u7801",children:ze.createElement(Fe.default,{className:"mt20",loading:ee,columns:ve,dataSource:x==null?void 0:x.list,pagination:!1})}].filter(Ne=>!!Ne)}),ze.createElement(xe.Z,{hideOnSinglePage:!0,showSizeChanger:!1,onChange:(Ne,Le)=>{ne.page=Ne,ne.limit=Le,de(ne),fe()},current:ne.page,total:x.count,pageSize:ne.limit,style:{marginTop:20}}))};rt.Z=(0,pe.connect)(({classroomList:E})=>({classroomList:E}))(oe)},58387:function(Ft,rt,z){"use strict";var a=z(67294),Ce=z(35059),ke=z(91773),he=z(62844),Fe=z(37720),xe=z(35973),pe=z(33170),Se=z(94699),Ae=z.n(Se),Ie=z(28706),ze=z(67294),Me=Object.defineProperty,me=Object.defineProperties,oe=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,b=(fe,ve,Ne)=>ve in fe?Me(fe,ve,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):fe[ve]=Ne,ee=(fe,ve)=>{for(var Ne in ve||(ve={}))y.call(ve,Ne)&&b(fe,Ne,ve[Ne]);if(E)for(var Ne of E(ve))x.call(ve,Ne)&&b(fe,Ne,ve[Ne]);return fe},te=(fe,ve)=>me(fe,oe(ve)),ne=(fe,ve,Ne)=>new Promise((Le,Re)=>{var He=Ue=>{try{Ge(Ne.next(Ue))}catch(Ye){Re(Ye)}},We=Ue=>{try{Ge(Ne.throw(Ue))}catch(Ye){Re(Ye)}},Ge=Ue=>Ue.done?Le(Ue.value):Promise.resolve(Ue.value).then(He,We);Ge((Ne=Ne.apply(fe,ve)).next())});const{Dragger:de}=Ce.default,ye=({classroomList:fe,dispatch:ve,onOk:Ne})=>{const Le=(0,xe.useParams)(),[Re]=ke.default.useForm(),[He,We]=(0,a.useState)(),[Ge,Ue]=(0,a.useState)(!1),Ye={height:100,onRemove:()=>{We("")},accept:".xls,.xlsx",multiple:!1,beforeUpload:it=>ne(void 0,null,function*(){return We(it),!1})};return(0,a.useEffect)(()=>{Re.setFieldsValue({publish_time:Ae()(Ae()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:Ae()(Ae()(new Date((0,Ie.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))})},[]),ze.createElement(he.default,{centered:!0,title:"\u4FEE\u6539\u6210\u7EE9",open:fe.actionTabs.key==="\u4FEE\u6539\u6210\u7EE9",okText:"\u786E\u5B9A",width:600,cancelText:"\u53D6\u6D88",okButtonProps:{loading:Ge},onOk:()=>ne(void 0,null,function*(){Re.submit()}),onCancel:()=>{Re.resetFields(),ve({type:"classroomList/setActionTabs",payload:{}})}},ze.createElement(ke.default,{form:Re,onFinish:it=>ne(void 0,null,function*(){var lt,Bt;console.log("---",fe.actionTabs,it,Le);let ct=((lt=fe==null?void 0:fe.actionTabs)==null?void 0:lt.type)==="exercise"?`/api/exercises/${Le==null?void 0:Le.category}/exercise_user/edit_score.json`:`/api/student_works/${fe.actionTabs.id}/edit_score.json`;Ue(!0);let nt=yield(0,pe.ZP)(ct,{method:"post",body:te(ee({},it),{exercise_user_id:((Bt=fe==null?void 0:fe.actionTabs)==null?void 0:Bt.type)==="exercise"?fe.actionTabs.id:""})});Ue(!1),Re.resetFields(),ve({type:"classroomList/setActionTabs",payload:{}}),Ne()})},ze.createElement(ke.default.Item,{label:"\u6700\u7EC8\u6210\u7EE9",style:{marginBottom:0},name:"score",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6700\u7EC8\u6210\u7EE9"}]},ze.createElement(Fe.Z,{min:0,style:{width:"100%"}}))))};rt.Z=(0,xe.connect)(({classroomList:fe})=>({classroomList:fe}))(ye)},17755:function(Ft,rt,z){"use strict";var a=z(67294),Ce=z(35059),ke=z(91773),he=z(85804),Fe=z(71230),xe=z(78957),pe=z(18046),Se=z(35973),Ae=z(94699),Ie=z.n(Ae),ze=z(17998),Me=z(33170),me=z(67294),oe=(x,b,ee)=>new Promise((te,ne)=>{var de=ve=>{try{fe(ee.next(ve))}catch(Ne){ne(Ne)}},ye=ve=>{try{fe(ee.throw(ve))}catch(Ne){ne(Ne)}},fe=ve=>ve.done?te(ve.value):Promise.resolve(ve.value).then(de,ye);fe((ee=ee.apply(x,b)).next())});const{Dragger:E}=Ce.default,y=({})=>{const x=(0,Se.useParams)(),[b]=ke.default.useForm(),[ee,te]=(0,a.useState)(!0),[ne,de]=(0,a.useState)(!1);console.log("----",x);function ye(){return oe(this,null,function*(){var fe,ve;let Ne;window.location.href.indexOf("exercise")>-1?Ne=`/api/exercises/${x==null?void 0:x.categoryId}/get_time_setting.json`:Ne=`/api/homework_commons/${x==null?void 0:x.categoryId}/get_time_setting.json`;let Le=yield(0,Me.ZP)(Ne,{method:"get"});(Le==null?void 0:Le.status)===0&&b.setFieldsValue({publish_time:Ie()(Ie()((fe=Le==null?void 0:Le.data)==null?void 0:fe.publish_time).format("YYYY-MM-DD HH:mm")),end_time:Ie()(Ie()((ve=Le==null?void 0:Le.data)==null?void 0:ve.end_time).format("YYYY-MM-DD HH:mm"))})})}return(0,a.useEffect)(()=>{ye()},[]),me.createElement("div",{style:{padding:"50px 30px",background:"#fff"}},me.createElement("div",{style:{textAlign:"end"}},ee&&me.createElement(he.ZP,{onClick:()=>{te(!1)}},"\u7F16\u8F91\u8BBE\u7F6E"),!ee&&me.createElement("div",null,me.createElement(he.ZP,{type:"primary",loading:ne,onClick:()=>{b.submit()}},"\u63D0\u4EA4"),me.createElement(he.ZP,{style:{marginLeft:20},onClick:()=>{te(!0)}},"\u53D6\u6D88"))),me.createElement(ke.default,{form:b,disabled:ee,onFinish:fe=>oe(void 0,null,function*(){de(!0),console.log("---",window.location.href);let ve;window.location.href.indexOf("exercise")>-1?ve=`/api/exercises/${x==null?void 0:x.categoryId}/time_setting.json`:ve=`/api/homework_commons/${x==null?void 0:x.categoryId}/time_setting.json`;let Ne=yield(0,Me.ZP)(ve,{method:"post",body:{publish_time:Ie()(fe.publish_time).format("YYYY-MM-DD HH:mm"),end_time:Ie()(fe.end_time).format("YYYY-MM-DD HH:mm")}});de(!1),(Ne==null?void 0:Ne.status)===0&&te(!0)})},me.createElement(Fe.Z,null,me.createElement(xe.Z,null,me.createElement(ke.default.Item,{label:"\u5F00\u59CB\u65F6\u95F4",name:"publish_time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4"}]},me.createElement(pe.default,{placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},style:{width:260},size:"large",disabledDate:fe=>(0,ze.Q8)(fe),disabledTime:fe=>(0,ze.d0)(fe),allowClear:!1,format:"YYYY-MM-DD HH:mm"})),me.createElement("span",{style:{color:"#999999",fontSize:"14px",height:40,marginBottom:8,display:"block"}},"\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u7684\u65F6\u95F4\uFF09"))),me.createElement(Fe.Z,null,me.createElement(xe.Z,null,me.createElement(ke.default.Item,{label:"\u7ED3\u675F\u65F6\u95F4",name:"end_time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4"}]},me.createElement(pe.default,{placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},style:{width:260},size:"large",disabledDate:fe=>(0,ze.Q8)(fe,"",b.getFieldValue("publish_time")),disabledTime:fe=>(0,ze.d0)(fe,b.getFieldValue("publish_time")),allowClear:!1,format:"YYYY-MM-DD HH:mm"})),me.createElement("span",{style:{color:"#999999",fontSize:"14px",height:40,marginBottom:8,display:"block"}},"\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u7684\u65F6\u95F4\u622A\u70B9\uFF09")))))};rt.Z=(0,Se.connect)(({classroomList:x})=>({classroomList:x}))(y)},92882:function(Ft,rt,z){"use strict";z.d(rt,{Z:function(){return x}});var a=z(67294),Ce=z(35973),ke=z(18046),he=z(62844),Fe=z(28802),xe=z(2453),pe=z(71230),Se=z(15746),Ae={title_tooltip:"title_tooltip___LLdrn",multiple_select:"multiple_select___kDXUm",modal_con:"modal_con___ERnkW"},Ie=z(94699),ze=z.n(Ie),Me=z(28706),me=z(26194),oe=z(67294);const{RangePicker:E}=ke.default,y=({dispatch:b,classroomList:ee,onConfirm:te})=>{const[ne,de]=(0,a.useState)([]),[ye,fe]=(0,a.useState)([]),[ve,Ne]=(0,a.useState)(""),[Le,Re]=(0,a.useState)([!1,!1]);(0,a.useEffect)(()=>{var Ge,Ue,Ye,it;if(ee.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206"){console.log((Ge=ee.actionTabs)==null?void 0:Ge.rangePickerDisabled),(Ue=ee.actionTabs)!=null&&Ue.rangePickerDisabled?Re((Ye=ee.actionTabs)==null?void 0:Ye.rangePickerDisabled):Re([!1,!1]);let lt=ee.actionTabs.data,Bt=(it=lt==null?void 0:lt.group_name)==null?void 0:it.map((ct,nt)=>{var Ze;return{group_id:lt==null?void 0:lt.group_id[nt],group_name:lt==null?void 0:lt.group_name[nt],is_admin:lt==null?void 0:lt.is_admin,end_time:lt==null?void 0:lt.end_time,publish_time:Array.isArray(lt==null?void 0:lt.publish_time)?(Ze=lt==null?void 0:lt.publish_time)==null?void 0:Ze[0]:lt==null?void 0:lt.publish_time}});Bt&&(de([...Bt]),fe([...Bt]))}},[ee.actionTabs]);const He=()=>{b({type:"classroomList/setActionTabs",payload:{}}),Ne("")},We=Ge=>{if(Ge){const Ue=ye==null?void 0:ye.filter(Ye=>{var it,lt;return(lt=(it=Ye==null?void 0:Ye.group_name)==null?void 0:it.toLowerCase())==null?void 0:lt.includes(Ge==null?void 0:Ge.toLowerCase())});de(Ue)}else de(ye)};return oe.createElement(he.default,{width:980,title:oe.createElement("div",{style:{fontWeight:"bold",display:"flex"}},oe.createElement("div",null,"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",oe.createElement("span",{className:Ae.title_tooltip},"\uFF08\u5F53\u5206\u73ED\u53D1\u5E03\u65F6\u95F4\u548C\u622A\u6B62\u65F6\u95F4\u4E0D\u76F8\u540C\u65F6\u5019\uFF0C\u73ED\u7EA7\u81EA\u52A8\u62C6\u5206\u51FA\u53BB\u65B0\u8D77\u89C4\u5219\uFF09")),oe.createElement(Fe.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",style:{width:220,marginLeft:"60px"},value:ve,onChange:Ge=>{Ne(Ge.target.value.trim()),We(Ge.target.value.trim())}})),centered:!0,maskClosable:!1,open:ee.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",onCancel:()=>He(),onOk:()=>{var Ge;if(ye.some(Ye=>!Ye.end_time||!Ye.publish_time)){xe.ZP.warning("\u8BF7\u5C06\u5217\u8868\u6570\u636E\u4E2D\u7684\u53D1\u5E03\u65F6\u95F4\u548C\u622A\u6B62\u65F6\u95F4\u8865\u5145\u5B8C\u6574\uFF01");return}te((Ge=ee.actionTabs)==null?void 0:Ge.index,ye),He()}},oe.createElement("div",{className:Ae.modal_con},oe.createElement(pe.Z,{style:{display:"flex",color:"#666666",padding:"5px",marginTop:"1px"}},(ne==null?void 0:ne.length)>0?ne.map(function(Ge,Ue){return oe.createElement(Se.Z,{span:24,key:Ue},oe.createElement(pe.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:Ue==(ne==null?void 0:ne.length)-1?"0px":"10px"}},oe.createElement("div",{className:Ae.multiple_select,title:Ge==null?void 0:Ge.group_name},Ge==null?void 0:Ge.group_name),oe.createElement("div",{className:"ml20"},oe.createElement(E,{size:"large",allowClear:!1,disabled:Le,style:{width:600},placeholder:["\u53D1\u5E03\u65F6\u95F4\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4\uFF09","\u622A\u6B62\u65F6\u95F4\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9\uFF09"],disabledDate:Ye=>{var it;return(0,Me.Q8)(Ye,(it=ee.actionTabs)==null?void 0:it.disabledDate)},disabledTime:Ye=>(0,Me.d0)(Ye),showTime:{showNow:!0,format:"HH:mm",defaultValue:[ze()((0,Me.U6)(),"HH:mm"),ze()((0,Me.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:(Ge==null?void 0:Ge.publish_time)&&[ze()(Ge==null?void 0:Ge.publish_time),Ge!=null&&Ge.end_time?ze()(Ge==null?void 0:Ge.end_time):void 0],onChange:(Ye,it)=>{ne[Ue].publish_time=it[0],ne[Ue].end_time=it[1],de([...ne]),ye.forEach(lt=>{lt.group_id===(Ge==null?void 0:Ge.group_id)&&(lt.publish_time=it[0],lt.end_time=it[1])}),fe([...ye])},onCalendarChange:(Ye,it,lt)=>{if(it!=null&&it[0]&&!it[1]){const Bt=ze()(it[0]).add(7,"days");ne[Ue].publish_time=it[0],ne[Ue].end_time=Bt,de([...ne]),ye.forEach(ct=>{ct.group_id===(Ge==null?void 0:Ge.group_id)&&(ct.publish_time=it[0],ct.end_time=Bt)}),fe([...ye])}}})),Le[0]?oe.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{color:"#E30000",opacity:"0.2",cursor:"not-allowed"}}):oe.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{ne.splice(Ue,1),de([...ne]),ye.forEach((Ye,it)=>{Ye.group_id===(Ge==null?void 0:Ge.group_id)&&ye.splice(it,1)}),fe([...ye])}})))}):oe.createElement(me.Z,null))))};var x=(0,Ce.connect)(({classroomList:b})=>({classroomList:b}))(y)},38365:function(Ft,rt,z){"use strict";z.d(rt,{Z:function(){return E}});var a=z(67294),Ce=z(35973),ke=z(62844),he=z(85804),Fe=z(74330),xe=z(88742),pe=z(72971),Se=z(36295),Ae=z(19575),Ie=z(94699),ze=z.n(Ie),Me=z(94189),me=z(67294),oe=(y,x,b)=>new Promise((ee,te)=>{var ne=fe=>{try{ye(b.next(fe))}catch(ve){te(ve)}},de=fe=>{try{ye(b.throw(fe))}catch(ve){te(ve)}},ye=fe=>fe.done?ee(fe.value):Promise.resolve(fe.value).then(ne,de);ye((b=b.apply(y,x)).next())}),E=({open:y,onClose:x})=>{const[b,ee]=(0,a.useState)(void 0);console.log((0,Ce.useLocation)(),33);const te=(0,Ce.useLocation)();(0,a.useEffect)(()=>{y&&function(){return oe(this,null,function*(){const yt=yield(0,xe.X6)(y);ee(yt.data)})}()},[y]);const{status:ne,created_at:de,code:ye,name:fe,language:ve,pass_sets_count:Ne,set_count:Le,error_msg:Re,output:He,input:We,expected_output:Ge,execute_memory:Ue,user:Ye,execute_time:it,input_file_url:lt,output_file_url:Bt,is_file:ct,expected_output_file_url:nt}=b||{};return me.createElement(ke.default,{open:y,width:1e3,onCancel:()=>x(!1),footer:me.createElement(he.ZP,{type:"primary",onClick:()=>x(!1)},"\u5173\u95ED"),centered:!0},me.createElement(Fe.Z,{spinning:!b,delay:500},me.createElement("div",{className:"record-detail-info"},b?me.createElement(me.Fragment,null,me.createElement("div",{className:"record-detail-body"},me.createElement("h2",null," \u63D0\u4EA4\u8BB0\u5F55 "),me.createElement("ul",{className:"record-info"},me.createElement("li",null," \u8BC4\u6D4B\u7ED3\u679C\uFF1A",me.createElement("span",{className:ne===0?"c-green":"c-red"},pe.Im[ne])," "),me.createElement("li",null," \u63D0\u4EA4\u65F6\u95F4\uFF1A",me.createElement("span",null,ze()(de).format("YYYY-MM-DD HH:mm:ss"))," "),me.createElement("li",null," \u8BED\u8A00\uFF1A",me.createElement("span",null,ve)," "),me.createElement("li",null," \u6267\u884C\u7528\u65F6\uFF1A",me.createElement("span",null,it*1e3,"ms")," "),me.createElement("li",null," ",`${ne===Me.h.HIDE_COMPILE_STATUS?"--":Ne} / ${Le} \u4E2A\u901A\u8FC7\u7684\u6D4B\u8BD5\u7528\u4F8B`," ")),(0,pe.gZ)({status:ne,error_msg:Re,execute_time:it,output:He,input:We,expected_output:Ge,input_file_url:lt,output_file_url:Bt,is_file:ct,expected_output_file_url:nt}),me.createElement("h2",null," \u63D0\u4EA4\u7684\u5185\u5BB9 "),me.createElement(Se.ZP,{height:"200px",width:"100%",language:ve==null?void 0:ve.toLocaleLowerCase(),value:Ae.Base64.decode(ye),options:{readOnly:!0}}))):null)))}},86276:function(Ft,rt,z){"use strict";z.d(rt,{Im:function(){return Le},Y4:function(){return He}});var a=z(67294),Ce=z(28802),ke=z(2453),he=z(85804),Fe=z(96707),xe=z(19575),pe=z.n(xe),Se=z(11579),Ae=z(7621),Ie=z(65226),ze=z(28706),Me=z(12320),me=z.n(Me),oe=z(33170),E=z(35973),y=z(38365),x=z(33054),b=z(88742),ee=z(30546),te=z(20819),ne=z(94184),de=z.n(ne),ye=z(51959),fe=z(67294),ve=(Ue,Ye,it)=>new Promise((lt,Bt)=>{var ct=yt=>{try{Ze(it.next(yt))}catch(ht){Bt(ht)}},nt=yt=>{try{Ze(it.throw(yt))}catch(ht){Bt(ht)}},Ze=yt=>yt.done?lt(yt.value):Promise.resolve(yt.value).then(ct,nt);Ze((it=it.apply(Ue,Ye)).next())});const{TextArea:Ne}=Ce.default,Le={[Fe.h.HIDE_COMPILE_STATUS]:"\u6682\u4E0D\u652F\u6301\u67E5\u770B",[Fe.h.NOMATCH]:"\u6D4B\u8BD5\u7528\u4F8B\u7ED3\u679C\u4E0D\u5339\u914D",[Fe.h.OK]:"\u8C03\u8BD5\u901A\u8FC7",2:"\u8C03\u8BD5\u8D85\u65F6",3:"\u8C03\u8BD5pod\u5931\u8D25",4:"\u7F16\u8BD1\u5931\u8D25",5:"\u6267\u884C\u5931\u8D25"};var Re=(Ue=>(Ue[Ue.SET_VISIBLE=0]="SET_VISIBLE",Ue[Ue.SET_TABINDEX=1]="SET_TABINDEX",Ue))(Re||{});function He(Ue){const{status:Ye,error_msg:it,output:lt,input:Bt,expected_output:ct,is_file:nt,input_file_url:Ze,output_file_url:yt,expected_output_file_url:ht,setMonacoValue:Je,setData:ot,highlightEndEntry:Ct}=Ue,kt=(0,a.useRef)(),Mt=(0,a.useRef)(),st=(0,a.useRef)();let ut=null;const un={minHeight:150,marginBottom:10,paddingLeft:24,background:"#070f19",color:"#fff"};switch((0,a.useEffect)(()=>{if(lt&&!nt&&kt.current){const Pn=new Me.Terminal({fontSize:14,letterSpacing:1,cols:83,rows:10});Pn.open(kt.current);const Rn=(Ct?ze.jl:ze.pp)(xe.Base64.decode(lt));Pn.write(Rn),Pn.setOption("theme",{background:"#1e1e1e"})}if(Bt&&!nt&&Mt.current){const Pn=new Me.Terminal({fontSize:14,letterSpacing:1,cols:83,rows:10});Pn.open(Mt.current),Pn.write((Ct?ze.jl:ze.pp)(Bt)),Pn.setOption("theme",{background:"#1e1e1e"})}if(ct&&!nt&&st.current){const Pn=new Me.Terminal({fontSize:14,letterSpacing:1,cols:83,rows:10});Pn.open(st.current),Pn.write((Ct?ze.jl:ze.pp)(xe.Base64.decode(ct))),Pn.setOption("theme",{background:"#1e1e1e"})}},[lt]),Ye){case Fe.h.NOMATCH:ut=fe.createElement(fe.Fragment,null,fe.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u51FA\uFF1A"),!nt&&fe.createElement("div",{ref:kt}),nt&&fe.createElement("div",{style:un},fe.createElement("a",{style:{fontSize:"16px"},onClick:()=>ve(this,null,function*(){const Pn=yield(0,oe.ZP)(yt,{method:"Get",headers:{"Content-Type":"application/xml",Accept:"*/*"}});Je(Pn),setTimeout(()=>{ot(yt)},200)})},lt)),fe.createElement("p",{className:"c-red"},"\u9884\u671F\u8F93\u51FA\uFF1A"),!nt&&fe.createElement("div",{ref:st}),nt&&fe.createElement("div",{style:un},fe.createElement("a",{style:{fontSize:"16px"},onClick:()=>ve(this,null,function*(){const Pn=yield fetch(ht,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}});Je(yield Pn.text()),setTimeout(()=>{ot(ht)},200)})},ct)));break;case Fe.h.EXECUTEFAILURE:ut=fe.createElement(fe.Fragment,null,fe.createElement("div",{style:{border:"1px #F6F7F9 solid"}},fe.createElement("p",{style:{width:"100%",height:40,background:"#F6F7F9",lineHeight:"40px",color:"#666666",paddingLeft:"12px"}},"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!nt&&fe.createElement(Ie.Z,{value:Bt,style:un}),nt&&fe.createElement("div",{style:un},fe.createElement("a",{onClick:()=>(0,ze.LR)(Ze,Bt)},Bt))),fe.createElement("div",{style:{border:"1px #F6F7F9 solid",marginTop:"10px"}},fe.createElement("p",{style:{width:"100%",height:40,background:"#F6F7F9",lineHeight:"40px",color:"#666666",paddingLeft:"12px"}},"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),fe.createElement("pre",{className:Se.Z.error,style:{color:"#E30000",padding:"0 10px"}},xe.Base64.decode(it),"111")));break;case Fe.h.COMPILEFAILURE:ut=fe.createElement(fe.Fragment,null,fe.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),fe.createElement("pre",{className:Se.Z.error},xe.Base64.decode(it)));break;case Fe.h.PODFAILURE:ut=fe.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case Fe.h.TIMEOUT:ut=fe.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return fe.createElement(fe.Fragment,null," ",ut," ")}function We(Ue){const{status:Ye,error_msg:it,execute_time:lt,output:Bt,input:ct,expected_output:nt,is_file:Ze,input_file_url:yt,output_file_url:ht,expected_output_file_url:Je}=Ue;let ot=null;switch(Ye){case Fe.h.OK:case Fe.h.NOMATCH:case Fe.h.EXECUTEFAILURE:case Fe.h.COMPILEFAILURE:ot=fe.createElement("div",{id:"outputResultRef",className:"h100"});break;case Fe.h.PODFAILURE:ot=fe.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case Fe.h.TIMEOUT:ot=fe.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return fe.createElement(fe.Fragment,null," ",ot," ")}function Ge({value:Ue,className:Ye}){return fe.createElement("span",{className:Ye},Ue)}rt.ZP=({input:Ue,is_file:Ye,debuging:it,submitting:lt,executingMessage:Bt,debugResult:ct,onChangeInput:nt,onDebugCode:Ze,onSubmitCode:yt,hack:ht,user:Je,submitResult:ot,isWhiteTheme:Ct,topDispatch:kt})=>{const[Mt]=(0,E.useSearchParams)(),st=(0,E.useParams)(),[ut,un]=(0,a.useState)(!1),[Pn,Rn]=(0,a.useState)(!1),[bt,An]=(0,a.useState)(1),[Nn,Qt]=(0,a.useState)(!1),[zt,jt]=(0,a.useState)(0),[sn,vt]=(0,a.useState)(!1),[Tt,qt]=(0,a.useState)(""),[St,Ke]=(0,a.useState)(""),ln=(0,a.useRef)(),Un=(0,a.useRef)(),Ca=(0,a.useRef)(null),Cu=(0,a.useRef)(null),Da=(0,a.useRef)(null);console.log(ot,"submitResult",st);const{status:nr,id:cu,input:or,output:Aa,expected_output:Zt,is_file:xn,input_file_url:vl,output_file_url:Er,expected_output_file_url:er,error_msg:Pa,hack_sets:Za}=ot||{};(0,a.useEffect)(()=>{nr===0&&(An(1),jt(0))},[nr,cu]),(0,a.useEffect)(()=>{ve(void 0,null,function*(){var _n;const Gn=yield(0,b.rX)(st==null?void 0:st.id,"submit");(Gn==null?void 0:Gn.status)===0&&(Gn!=null&&Gn.data&&((_n=Gn==null?void 0:Gn.data)==null?void 0:_n.status)!==0?(kt({type:ee.Types.SET_SUBMIT_RESULT,payload:{submitResult:Gn==null?void 0:Gn.data}}),An(2),jt(320)):(An(1),jt(0)))})},[st==null?void 0:st.id]),(0,a.useEffect)(()=>{if(ln.current){let Jt=function(re){oa=ua.offsetHeight,Ta=!0,hu=re.pageY,Da.current.style.display="block"},_n=function(){Ta=!1,Da.current.style.display="none"},Gn=function(re){if(Ta){qn();let ge=hu-re.pageY,De=oa+ge;if(De<0&&(De=0),De>window.innerHeight-150&&(De=window.innerHeight-150),bt===1){De<=34?jt(0):jt(De);return}console.log(De,"resizeH"),jt(De)}};const ua=Ca.current;let oa=0,Ta=!1,hu=0;const ft=document.getElementById("case-y-bar");return ft==null||ft.addEventListener("mousedown",Jt),document.addEventListener("mousemove",Gn),document.addEventListener("mouseup",_n),()=>{const re=document.getElementById("case-y-bar");re==null||re.removeEventListener("mousedown",Jt),document.removeEventListener("mousemove",Gn),document.removeEventListener("mouseup",_n)}}},[ln,bt]),(0,a.useEffect)(()=>{const Jt=x.Z.subscribe("resize-move-bar",qn);if(Mt.get("type")!=="exercises")return document.addEventListener((0,ye.gH)(),gu),()=>{document.removeEventListener((0,ye.gH)(),gu),Jt()}},[]),(0,a.useEffect)(()=>{});function qn(){var Jt,_n,Gn,ua;const oa=document.getElementById("outputResultRef");if(oa){let Ta=oa.dataset.text;Un.current.reset(),Un.current.writeln(Ta);const hu=document.getElementById("outputResultRef").offsetWidth-20,ft=((ua=(Gn=(_n=(Jt=Un.current)==null?void 0:Jt._core)==null?void 0:_n._renderService)==null?void 0:Gn.dimensions)==null?void 0:ua.actualCellWidth)||10,re=Math.ceil(hu/ft);Un.current.resize(re,Math.ceil(oa.clientHeight/16))}}function Vn(){un(!ut),setTimeout(()=>{qn()},300),ut?jt(320):(jt(window.innerHeight-150),Qt(!0))}function Qa(){Pn?(Rn(!1),(0,ye.BU)()):(Rn(!0),(0,ye.Dj)(Cu.current))}const gu=Jt=>{(0,ye.vp)()||Rn(!1)},_u=(0,a.useMemo)(()=>{if(ct){const{status:Jt,output:_n,error_msg:Gn}=ct;return setTimeout(()=>{let ua="",oa=document.getElementById("outputResultRef");_n?ua=xe.Base64.decode(_n):Gn&&(ua=xe.Base64.decode(Gn)),Un.current=new Me.Terminal({fontSize:14,theme:{background:"#181e2e",cursor:"transparent"},rendererType:"dom"}),Un.current.open(oa),Un.current.onKey(function(Ta){var hu;if(Ta.domEvent.key.toLocaleUpperCase()==="C"&&Ta.domEvent.ctrlKey){Ta.domEvent.preventDefault();let ft=(hu=Un.current)==null?void 0:hu.getSelection();navigator.clipboard.writeText(ft).then(()=>{})}}),oa.dataset.text=ua,Un.current.setOption("convertEol",!0),qn()},300),fe.createElement(fe.Fragment,null,We(ct))}return null},[ct]);function ir(){var Jt,_n;if(!(ht!=null&&ht.code)||((Jt=ht==null?void 0:ht.code)==null?void 0:Jt.trim().length)===0){(_n=ke.ZP)==null||_n.warning("\u4EE3\u7801\u4E0D\u80FD\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7F16\u5199\u4EE3\u7801\u540E\uFF0C\u518D\u8FDB\u884C\u8BC4\u6D4B\uFF01");return}An(1),jt(320),Ze()}const ul=Jt=>ve(void 0,null,function*(){let _n=yield(0,oe.ZP)(`/api/problems/${Jt}/start.json`,{method:"get",params:{hack_user_id:Je==null?void 0:Je.user_id}});_n&&(window.location.href=`/myproblems/${_n==null?void 0:_n.identifier}${window.location.search}`)});function On(){xn?navigator.clipboard.writeText(xe.Base64.decode(Pa)).then(()=>{ke.ZP.success("\u590D\u5236\u9519\u8BEF\u4FE1\u606F\u6210\u529F")}):navigator.clipboard.writeText(xe.Base64.decode(Aa)).then(()=>{ke.ZP.success("\u590D\u5236\u9519\u8BEF\u4FE1\u606F\u6210\u529F")})}return fe.createElement(a.Fragment,null,fe.createElement("div",{className:de()(Se.Z.case,Ct&&Se.Z.whiteCase),style:{height:zt},ref:Ca},fe.createElement("div",{className:Se.Z.fullMask,ref:Da}),fe.createElement("div",{className:Se.Z["resize-y-bar"],id:"case-y-bar",ref:ln,draggable:!1},bt===2&&fe.createElement("i",{className:"iconfont icon-guangbiao",draggable:!1})),bt===1&&(zt<=34?fe.createElement("div",{onClick:()=>{jt(320)},className:Se.Z.unfoldBtn},"\u63A7\u5236\u53F0",fe.createElement("i",{className:"iconfont icon-zhankai9 ml10 font12"})):fe.createElement("div",{onClick:()=>{jt(0)},className:Se.Z.unfoldBtn,style:{borderRadius:"0px 0px 8px 8px",top:0}},"\u63A7\u5236\u53F0",fe.createElement("i",{className:"iconfont icon-shouqi8 ml10 font12"}))),fe.createElement("div",null,fe.createElement("div",{className:Se.Z.caseHead},fe.createElement("div",{className:Se.Z.dot}),fe.createElement("div",{className:Se.Z.text},bt===1?"\u8C03\u8BD5\u4EE3\u7801\u7ED3\u679C":"\u8BC4\u6D4B\u7ED3\u679C"),bt===2&&!lt&&typeof nr=="number"&&fe.createElement(fe.Fragment,null,nr===Fe.h.OK?fe.createElement("div",{className:Se.Z.pass},fe.createElement("i",{className:"iconfont icon-tongguo font14 mr5"}),"\u8BC4\u6D4B\u901A\u8FC7"):fe.createElement("div",{className:Se.Z.noPass},fe.createElement("i",{className:"iconfont icon-jinggao-3 font14 mr5"}),Le[nr])),fe.createElement("div",{className:Se.Z.btns},bt===2&&!lt&&fe.createElement(fe.Fragment,null,nr!==Fe.h.OK&&fe.createElement("div",{onClick:On},fe.createElement("i",{className:"iconfont icon-fuzhi8"}),"\u590D\u5236\u9519\u8BEF\u4FE1\u606F"),fe.createElement("div",{onClick:()=>{vt(cu)}},fe.createElement("i",{className:"iconfont icon-danceng-xinjianwenjian"}),"\u663E\u793A\u8BE6\u60C5")),Mt.get("type")!=="exercises"&&fe.createElement("div",{title:"\u5C55\u5F00/\u6536\u7F29",onClick:()=>Vn()},fe.createElement("i",{className:`iconfont icon-${ut?"suoxiao1":"fangda"}`})))),fe.createElement("div",{style:{display:bt===1?"block":"none"}},it?fe.createElement(Ae.Z,{style:{color:"#1976d2"},message:"\u670D\u52A1\u542F\u52A8\u4E2D..."}):fe.createElement("div",{style:{height:zt-34}},fe.createElement("div",{className:Se.Z.result},fe.createElement("div",{className:Se.Z.left},fe.createElement("div",{className:Se.Z.title},fe.createElement("i",{style:{color:"#00FA95"},className:"iconfont iconfont icon-zidingyiceshiyongli font14 mr5"}),fe.createElement("span",null,"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B")),fe.createElement("div",{className:Se.Z.leftNode},fe.createElement(Ne,{placeholder:"\u8BF7\u8F93\u5165\u81EA\u6D4B\u7528\u4F8B\uFF08\u5982\u679C\u672A\u586B\u5199\uFF0C\u9996\u6B21\u81EA\u6D4B\u8FD0\u884C\u65F6\uFF0C\u7CFB\u7EDF\u4F1A\u81EA\u52A8\u586B\u5145\u7B2C\u4E00\u4E2A\u975E\u9690\u85CF\u7684\u6587\u672C\u7C7B\u578B\u7684\u6D4B\u8BD5\u7528\u4F8B\uFF09",value:Ye?"":Ue,onChange:nt}))),fe.createElement("div",{className:Se.Z.right},fe.createElement("div",{className:Se.Z.title},fe.createElement("i",{style:{color:"#00DFFF"},className:"iconfont iconfont icon-daimazhihangjieguo font14 mr5"}),fe.createElement("span",null,"\u4EE3\u7801\u6267\u884C\u7ED3\u679C")),fe.createElement("div",{className:Se.Z.node},ct?_u:fe.createElement("p",{style:{color:"#8F96B1"}},"\u8BF7\u5728\u5DE6\u4FA7\u8F93\u5165\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B\u7684\u8F93\u5165\u503C\uFF0C\u70B9\u51FB\u201C\u8C03\u8BD5\u4EE3\u7801\u201D\uFF0C\u5373\u53EF\u751F\u6210\u4EE3\u7801\u6267\u884C\u7ED3\u679C")))))),fe.createElement("div",{style:{display:bt===2?"block":"none"}},lt?fe.createElement(Ae.Z,{style:{color:"#1976d2"},message:"\u670D\u52A1\u542F\u52A8\u4E2D..."}):fe.createElement("div",{style:{height:zt-34,display:"flex",flexDirection:"column",overflow:"hidden"}},fe.createElement("div",{ref:Cu,className:Se.Z.elseNode},fe.createElement("div",{className:Se.Z.nameWrap},fe.createElement("i",{style:{color:"#00DFFF"},className:"iconfont iconfont icon-zidingyiceshiyongli font14 mr5"}),fe.createElement("span",null,"\u5B9E\u9645\u8F93\u5165")),fe.createElement("div",{className:Se.Z.scroll},fe.createElement("pre",{className:Se.Z.scrollBox,style:Nn?{height:Pn?"calc(100vh - 20px)":200}:{height:24,overflow:"hidden"}},!xn&&fe.createElement(Ge,{value:or}),xn&&fe.createElement("a",{style:{fontSize:"16px"},onClick:()=>ve(void 0,null,function*(){const Jt=yield fetch(vl,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}});Ke(yield Jt.text()),setTimeout(()=>{qt(vl)},200)})},or)),or&&fe.createElement("div",{className:Se.Z.action},fe.createElement("span",{onClick:()=>Qt(!Nn)},Nn?"\u6536\u8D77":"\u5C55\u5F00")))),fe.createElement("div",{className:Se.Z.result,style:{flex:1,overflow:"hidden"}},fe.createElement("div",{className:Se.Z.left},fe.createElement("div",{className:Se.Z.title},fe.createElement("i",{style:{color:"#00FA95"},className:"iconfont iconfont icon-zidingyiceshiyongli font14 mr5"}),fe.createElement("span",null,"\u9884\u671F\u8F93\u51FA")),fe.createElement("div",{className:Se.Z.node,style:{background:"#1B2333",color:"#2ABD8C"}},fe.createElement("pre",null,!xn&&fe.createElement(Ge,{className:"mb10",value:Zt&&xe.Base64.decode(Zt)||""}),xn&&fe.createElement("a",{style:{fontSize:"16px"},onClick:()=>ve(void 0,null,function*(){const Jt=yield fetch(er,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}});Ke(yield Jt.text()),setTimeout(()=>{qt(er)},200)})},Zt)))),fe.createElement("div",{className:Se.Z.right},fe.createElement("div",{className:Se.Z.title},fe.createElement("i",{style:{color:"#00DFFF"},className:"iconfont iconfont icon-daimazhihangjieguo font14 mr5"}),fe.createElement("span",null,"\u5B9E\u9645\u8F93\u51FA")),fe.createElement("div",{className:Se.Z.node,style:{color:nr===Fe.h.OK?"#2ABD8C":"#FF2C29"}},fe.createElement("pre",null,(nr===4||nr===5)&&fe.createElement(Ge,{className:"mb10",value:Pa&&xe.Base64.decode(Pa)||""}),nr!=4&&nr!=5&&(xn?fe.createElement("a",{style:{fontSize:"16px"},onClick:()=>ve(void 0,null,function*(){const Jt=yield(0,oe.ZP)(Er,{method:"Get",headers:{"Content-Type":"application/xml",Accept:"*/*"}});try{Ke(Jt)}catch(_n){Ke("")}setTimeout(()=>{qt(Er)},200)})},Aa):fe.createElement(Ge,{className:"mb10",value:Aa&&xe.Base64.decode(Aa)||""})))))))))),fe.createElement("div",{className:de()(Se.Z.footer,Ct&&Se.Z.whiteFooter),style:{zIndex:100}},(ht==null?void 0:ht.is_program)&&(ht==null?void 0:ht.above_question)&&fe.createElement(he.ZP,{className:"mr10",type:"primary",onClick:()=>ul(ht==null?void 0:ht.above_question),id:"oj-prev",ghost:!0},"\u4E0A\u4E00\u9898"),(ht==null?void 0:ht.is_program)&&(ht==null?void 0:ht.under_question)&&fe.createElement(he.ZP,{className:"mr10",type:"primary",onClick:()=>ul(ht==null?void 0:ht.under_question),id:"oj-next",ghost:!0},"\u4E0B\u4E00\u9898"),fe.createElement(he.ZP,{style:{border:"1px solid #2ABD8C",color:"#2ABD8C"},ghost:!0,disabled:it||lt,loading:it,color:"#2ABD8C",className:"mr10",onClick:ir},"\u8C03\u8BD5\u4EE3\u7801"),Mt.get("qtype")!=="8"&&fe.createElement(he.ZP,{className:Se.Z.disabled,type:"primary",icon:fe.createElement("i",{className:"iconfont icon-bofang1"}),loading:lt,disabled:it||lt,onClick:()=>{var Jt,_n;if(!(ht!=null&&ht.code)||((Jt=ht==null?void 0:ht.code)==null?void 0:Jt.trim().length)===0){(_n=ke.ZP)==null||_n.warning("\u4EE3\u7801\u4E0D\u80FD\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7F16\u5199\u4EE3\u7801\u540E\uFF0C\u518D\u8FDB\u884C\u8BC4\u6D4B\uFF01");return}An(2),jt(320),yt()}},"\u8BC4\u6D4B\u5E76\u63D0\u4EA4")),fe.createElement(y.Z,{onClose:vt,open:sn}),fe.createElement(te.Z,{close:!0,data:Tt,type:Tt.length?"txt":"",onClose:()=>qt(""),monacoEditor:{value:St,language:"txt",onChange:()=>{},options:{fontSize:14,readOnly:!0,minimap:{enabled:!1}}}}))}},30546:function(Ft,rt,z){"use strict";z.r(rt),z.d(rt,{Types:function(){return Pc},default:function(){return Wr}});var a=z(67294),Ce=z(35973),ke=z(55054),he=z(62844),Fe=z(74330),xe=z(85804),pe=z(83062),Se=z(71230),Ae=z(88742),Ie=z(15835),ze=z(51959),Me=z(60076),me=z(11320),oe=z(55304),E=z(95012),y=z(36295),x=z(76621),b=z(40471),ee=z(21434),te=z(2453),ne={list:"list___IRN6i",copy:"copy___qCn9B"},de=z(74855),ye=z(33170),fe=(yn,fa,va)=>new Promise((Vr,Bl)=>{var Gr=Qr=>{try{Dl(va.next(Qr))}catch(Kr){Bl(Kr)}},El=Qr=>{try{Dl(va.throw(Qr))}catch(Kr){Bl(Kr)}},Dl=Qr=>Qr.done?Vr(Qr.value):Promise.resolve(Qr.value).then(Gr,El);Dl((va=va.apply(yn,fa)).next())}),Ne=({showResourceCentre:yn,identifier:fa})=>{const va=(0,Ce.useParams)(),[Vr,Bl]=(0,a.useState)(null);(0,a.useEffect)(()=>{yn&&Gr()},[yn]);const Gr=()=>fe(void 0,null,function*(){const El=yield(0,ye.ZP)(`/api/problems/${fa}/attachment_list.json`,{method:"get"});(El==null?void 0:El.status)==0&&Bl(El.data||[])});return a.createElement("div",{className:"tpi-code-setting"},a.createElement("h3",null,"\u8D44\u6E90\u4E2D\u5FC3"),!(Vr!=null&&Vr.length)&&a.createElement("div",{className:"tc mt50 c-grey-999"},"\u6682\u65E0\u8D44\u6E90\u6570\u636E"),Vr==null?void 0:Vr.map((El,Dl)=>a.createElement("dl",{className:ne.list,key:Dl},a.createElement(pe.Z,{title:El.title},a.createElement("dt",null,a.createElement("i",{className:"icon-wenjian4 mr5"}),El.title)),a.createElement("dd",null,a.createElement(de.CopyToClipboard,{text:El.saved_file_path,onCopy:()=>te.ZP.success("\u590D\u5236\u6210\u529F")},a.createElement("span",{className:`${ne.copy} current`},"\u70B9\u51FB\u590D\u5236"))))))},Le=z(67294),Re=Object.defineProperty,He=Object.defineProperties,We=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,it=(yn,fa,va)=>fa in yn?Re(yn,fa,{enumerable:!0,configurable:!0,writable:!0,value:va}):yn[fa]=va,lt=(yn,fa)=>{for(var va in fa||(fa={}))Ue.call(fa,va)&&it(yn,va,fa[va]);if(Ge)for(var va of Ge(fa))Ye.call(fa,va)&&it(yn,va,fa[va]);return yn},Bt=(yn,fa)=>He(yn,We(fa));const ct={theme:(0,b.G)("ProgrammingCodeMode","vs-dark"),fontSize:(0,b.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,b.G)("cmTabToSpace",!0),showResourceCentre:!1};var nt=(yn=>(yn[yn.set_font_size=0]="set_font_size",yn[yn.set_theme=1]="set_theme",yn[yn.on_tab_to_space=2]="on_tab_to_space",yn[yn.set_show_editor_setting=3]="set_show_editor_setting",yn[yn.set_show_respurce_center=4]="set_show_respurce_center",yn))(nt||{});function Ze(yn,fa){switch(fa.type){case 3:return Bt(lt({},yn),{showEditorSetting:fa.payload});case 1:return Bt(lt({},yn),{theme:fa.payload});case 0:return Bt(lt({},yn),{fontSize:fa.payload});case 2:return Bt(lt({},yn),{tabToSpace:fa.payload});case 4:return Bt(lt({},yn),{showResourceCentre:fa.payload});default:throw new Error}}var yt=({isLoading:yn,value:fa,onChange:va,language:Vr,onUpdateCode:Bl,ActionBarRender:Gr,setIsWhiteTheme:El,identifier:Dl})=>{const[Qr,Kr]=(0,a.useReducer)(Ze,ct),{theme:Do,fontSize:Co,showEditorSetting:Br,tabToSpace:Wl,showResourceCentre:hi}=Qr,bu=(0,a.useRef)(),ns=(0,a.useRef)();(0,a.useEffect)(()=>{El(Do==="vs")},[Do]);const cl={onFontSizeChange:oi=>{Kr({type:0,payload:oi}),(0,b.t)("cmFontSize",oi)},tabToSpace:Wl,cmFontSize:Co,className:"oj",cmCodeMode:Do,onTabToSpace:oi=>{Kr({type:2,payload:oi}),(0,b.t)("cmTabToSpace",oi)},onCodeModeChange:oi=>{Kr({type:1,payload:oi}),(0,b.t)("ProgrammingCodeMode",oi)}};function is(){Kr({type:3,payload:!1})}function li(){Kr({type:3,payload:!0})}function _i(){Kr({type:4,payload:!1})}function as(){Kr({type:4,payload:!0})}const ho={value:fa,language:Vr,theme:Do,options:{fontSize:Co,insertSpaces:Wl},onChange:oi=>{va(oi),ns.current=oi,clearTimeout(bu.current),bu.current=setTimeout(()=>{Bl(ns.current)},1e4)},onEditBlur:oi=>{ns.current&&Bl(ns.current)}};return Le.createElement(a.Fragment,null,Gr(li,as),Le.createElement("div",{style:{flex:1,overflow:"hidden"}},!yn&&Le.createElement(y.ZP,lt({},ho))),Le.createElement(x.Z,null,Le.createElement(E.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:Br,onClose:is},Le.createElement(ee.Z,lt({},cl)))),Le.createElement(x.Z,null,Le.createElement(E.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:hi,onClose:_i},Le.createElement(Ne,{showResourceCentre:hi,identifier:Dl}))))},ht=z(60141),Je=z(19575),ot=z(86276),Ct={flex_box_center:"flex_box_center___rM3g8",flex_space_between:"flex_space_between___Oc7SE",flex_box_vertical_center:"flex_box_vertical_center___MnmYE",flex_box_center_end:"flex_box_center_end___QQh83",flex_box_column:"flex_box_column___ZRFbL","left-panel":"left-panel___SKGyd","tab-panel-body":"tab-panel-body___gABdv",b1:"b1___QpbmK","oj-width-input":"oj-width-input___eJQWT","oj-mr":"oj-mr___AxILO","s-navs":"s-navs___FXwOi","bg-white":"bg-white___kbZ6r",active:"active___QGOnZ",list:"list___PXTsq",btns:"btns___F8yZK",drawer:"drawer___xdGaT",tour:"tour___oMkVh"},kt={pagination:"pagination___yDAjZ",info:"info___ATmsa",wrap:"wrap____KX19"},Mt=z(57399),st=z(14845),ut=z(3407),un=z(38365),Pn=z(94699),Rn=z.n(Pn),bt=z(67294);const{Column:An}=Mt.default;var Nn=({submitResult:yn,submitting:fa,submitRecords:va,page:Vr,onPageChange:Bl,topicId:Gr})=>{const[El]=(0,Ce.useSearchParams)(),{records:Dl,records_count:Qr}=va||{},[Kr,Do]=(0,a.useState)(!1),Co=El.get("type")==="1";return bt.createElement(Fe.Z,{spinning:fa,tip:"\u8BC4\u6D4B\u4E2D...",indicator:bt.createElement(ut.Z,{style:{fontSize:24},spin:!0})},(Dl==null?void 0:Dl.length)>0?bt.createElement(Mt.default,{dataSource:Dl,rowKey:"id",pagination:!1},bt.createElement(An,{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"created_at",key:"created_at",render:(Br,Wl)=>bt.createElement("span",null," ",Rn()(Br).format("YYYY-MM-DD HH:mm:ss"))}),bt.createElement(An,{title:"\u8BC4\u6D4B\u7ED3\u679C",dataIndex:"status",key:"status",render:(Br,Wl)=>{var hi;return bt.createElement("span",{className:`${Br===0?"c-green":"c-red"} current`,onClick:()=>{Do(Wl.id)}},(hi=ot.Im[Br])==null?void 0:hi.replace("\u8C03\u8BD5","\u8BC4\u6D4B"))}}),bt.createElement(An,{title:`\u6267\u884C\u7528\u65F6 (${Co?"MS":"S"})`,dataIndex:"execute_time",key:"execute_time",render:Br=>Br?Co?Br:Br/1e3:""}),bt.createElement(An,{title:`\u5185\u5B58\u6D88\u8017\uFF08${Co?"KB":"MB"}\uFF09`,dataIndex:"execute_memory",key:"execute_memory",render:Br=>Br?Co?Br:parseFloat((Br/1024).toFixed(2)):""}),bt.createElement(An,{title:"\u8BED\u8A00",dataIndex:"language",key:"language"}),bt.createElement(An,{title:"\u64CD\u4F5C",dataIndex:"status",key:"status",render:(Br,Wl)=>bt.createElement("span",{className:"c-light-primary current",onClick:()=>{Do(Wl.id)}},"\u67E5\u770B")})):bt.createElement("div",{style:{height:300,width:"100%"}}),bt.createElement(un.Z,{onClose:Do,open:Kr}),Qr>15?bt.createElement(st.Z,{className:kt.pagination,current:Vr,pageSize:15,total:Qr,onChange:Bl}):null)},Qt=z(26194),zt=z(66309),jt={desc:"desc___iOAgd",info:"info___GPALq",info_tag:"info_tag___CFEn8"},sn=z(65226),vt=z(67294);const Tt={1:{name:"\u7B80\u5355",color:"#52c41a"},2:{name:"\u4E2D\u7B49",color:"#faad14"},3:{name:"\u56F0\u96BE",color:"#f5222d"}};var qt=({hack:yn})=>{const{language:fa,difficult:va,time_limit:Vr,description:Bl}=yn,[Gr]=(0,Ce.useSearchParams)(),El=Tt[va];return vt.createElement(vt.Fragment,null,vt.createElement("ul",{className:jt.info},vt.createElement("li",null,"\u7F16\u7A0B\u8BED\u8A00\xA0\xA0",vt.createElement("b",{className:jt.info_tag},fa)),vt.createElement("li",null,vt.createElement("span",{className:"ml20"},"\u96BE\u5EA6"),"\xA0\xA0",vt.createElement(zt.default,{color:El==null?void 0:El.color},El==null?void 0:El.name)),vt.createElement("li",null,vt.createElement("span",{className:"ml20"},"\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"),"\xA0\xA0",vt.createElement("span",{style:{color:"#333333"}},Vr,"\u79D2"))),Gr.get("qtype")==="8"?vt.createElement(sn.Z,{value:Bl,showProgramFill:!0,className:jt.desc}):vt.createElement(sn.Z,{value:Bl,className:jt.desc}))},St={},Ke=z(67294),ln=({hack:yn,current_user:fa})=>Ke.createElement("div",{className:St.answer},yn!=null&&yn.answer_text?Ke.createElement(sn.Z,{style:{padding:"13px 0"},value:(yn==null?void 0:yn.answer_text)||""}):Ke.createElement(Qt.Z,{customText:"\u6682\u672A\u8BBE\u7F6E\u53C2\u8003\u7B54\u6848~"})),Un=z(33054);function Ca(yn,fa){return(0,ye.U2)(`/problems/${yn}/comments.json`,{page:fa,limit:10})}function Cu(yn){return(0,ye.v_)(`/discusses/${yn}/plus.json`,{container_type:"Discuss",type:1})}function Da(yn,fa,va){return(0,ye.v_)(`/problems/${yn}/comments/reply.json`,{comments:{content:va,parent_id:fa}})}function nr(yn,fa){return(0,ye.v_)(`/problems/${yn}/comments.json`,{comments:{content:fa}})}function cu(yn,fa,va){return(0,ye.v_)(`/problems/${yn}/comments/${fa}/hidden.json`,va)}function or(yn,fa){return(0,ye.IV)(`/problems/${yn}/comments/${fa}`)}var Aa=z(93989);function Zt({author:yn}){return a.createElement("a",{href:`/users/${yn.login}`,target:"_blank"},a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"50",style:{borderRadius:"50%"},src:`${me.Z.IMG_SERVER}/images/${yn.image_url}`,width:"50"}))}function xn({data:yn,index:fa,parentDiscussIndex:va,user:Vr,onSetActionType:Bl}){const{author:Gr,can_delete:El,content:Dl,id:Qr,time:Kr}=yn;function Do(){Bl({id:Qr,index:fa,type:"delete-discuss",parentDiscussIndex:va,message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}const Co=Vr.admin||El||Gr.user_id===Vr.user_id;return a.createElement("div",{className:"discuss-item-container second-discuss "},a.createElement(Zt,{author:Gr}),a.createElement("section",null,a.createElement("div",{className:"discuss-info"},a.createElement("a",{href:`/users/${Gr.login}`,target:"_blank"},Gr.name),a.createElement("span",{className:"grey"},Kr),a.createElement("div",{className:"btn-group",style:{marginBottom:0}},Co?a.createElement("a",{onClick:Do,title:"\u5220\u9664"},a.createElement("i",{className:"iconfont icon-shanchu"})):null)),a.createElement(sn.Z,{className:"discuss-content",value:Dl})))}var vl=({user:yn,data:fa,index:va,onPlusDiscuss:Vr,onSetActionType:Bl,activeDiscussIndex:Gr,onReplyDiscuss:El,onSetActiveDiscussIndex:Dl})=>{const{content:Qr,children:Kr,hidden:Do,id:Co,praise_count:Br,time:Wl,user_praise:hi,can_delete:bu,author:ns}=fa;function cl(){Dl(Co)}function is(){Vr(Co,!hi,va)}function li(){Bl({id:Co,index:va,type:"delete-discuss",message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}function _i(){Bl({id:Co,index:va,params:{hidden:Do?"0":"1"},type:"hidden-discuss",message:Do?"\u786E\u5B9A\u8981\u53D6\u6D88\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417":"\u786E\u5B9A\u8981\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417"})}const as=yn.admin||yn.user_id===ns.user_id;return a.createElement("div",{className:"discuss-item-container",key:Co},a.createElement(Zt,{author:ns}),a.createElement("section",null,a.createElement("div",{className:"discuss-info"},a.createElement("a",{href:`/users/${ns.login}`,target:"_blank"}," ",ns.name," "),a.createElement("span",{className:"grey"},Wl)),a.createElement(sn.Z,{className:"discuss-content",value:Qr}),Kr&&Kr.length>0?a.createElement("div",{className:"reply-discuss-container"},Kr.map((ho,oi)=>a.createElement(xn,{key:ho.id,data:ho,index:oi,user:yn,onSetActionType:Bl,parentDiscussIndex:va}))):null,a.createElement("div",{className:"btn-group"},as?a.createElement("a",{onClick:_i,title:Do?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF\u8BC4\u8BBA"},a.createElement("i",{className:Do?"iconfont icon-yincangbiyan":"fa fa-eye"})):null,bu&&(!Kr||Kr.length==0)?a.createElement("a",{onClick:li,title:"\u5220\u9664"},a.createElement("i",{className:"iconfont icon-shanchu"})):null,a.createElement("a",{onClick:cl,title:"\u56DE\u590D"}," ",a.createElement("i",{className:"iconfont icon-huifu1"})," "),a.createElement("a",{onClick:is,className:hi?"c-orange":""},a.createElement("i",{className:hi?"iconfont icon-dianzan mr3":"iconfont icon-dianzan-xian mr3 "}),a.createElement("span",null,Br||""))),a.createElement(Aa.Z,{id:Co,activeDiscussIndex:Gr,onReplyDiscuss:El})))},Er=z(71865),er={"dis-input-editor-container":"dis-input-editor-container___nKGxx",active:"active___tmt7T","input-mask":"input-mask___epEle","text-area":"text-area___Vry8W","tip-container":"tip-container___plpA3",hide:"hide___kPfyC","md-container":"md-container___u85aq","btn-send":"btn-send___deQ5v"},Pa=z(35567),Za=(yn,fa,va)=>new Promise((Vr,Bl)=>{var Gr=Qr=>{try{Dl(va.next(Qr))}catch(Kr){Bl(Kr)}},El=Qr=>{try{Dl(va.throw(Qr))}catch(Kr){Bl(Kr)}},Dl=Qr=>Qr.done?Vr(Qr.value):Promise.resolve(Qr.value).then(Gr,El);Dl((va=va.apply(yn,fa)).next())}),qn=({user_praise:yn,praise_count:fa,praisePlus:va,onCreateDiscuss:Vr,discuss_count:Bl})=>{const[Gr,El]=(0,a.useState)(!1),[Dl,Qr]=(0,a.useState)("");function Kr(Wl){Qr(Wl)}function Do(){El(!0)}function Co(){El(!1)}function Br(){return Za(this,null,function*(){Vr(Dl),Qr(""),El(!1)})}return a.createElement("div",{className:`${er["dis-input-editor-container"]} ${Gr?er.active:""} `},a.createElement("div",{className:Gr?`hide ${er["text-area"]}`:er["text-area"]},a.createElement("input",{placeholder:"\u8BF4\u70B9\u4EC0\u4E48",onClick:Do}),a.createElement("a",null," ",a.createElement("i",{className:"iconfont icon-huifu1"})," \xA0 \xA0",Bl," "),a.createElement("a",{className:"c-light-black",onClick:va,title:yn?"\u53D6\u6D88\u70B9\u8D5E":"\u70B9\u8D5E"},a.createElement("i",{className:`mr3 ${yn?"iconfont icon-dianzan c-orange":"iconfont icon-dianzan-xian"} `}),fa?a.createElement("span",null,fa):"")),Gr?a.createElement("div",{className:er["input-mask"],onClick:Co}):null,a.createElement("div",{className:Gr?er["md-container"]:`${er["md-container"]} hide`},a.createElement(Pa.Z,{id:"discuss-input-editor",miniToolbar:!0,watch:!1,noStorage:!0,defaultValue:Dl,height:240,onChange:Kr}),a.createElement("div",{className:er["tip-container"],onClick:Co},a.createElement("a",{className:er["btn-send"],onClick:Br}," \u53D1\u9001 "))))},Vn=z(67294),Qa=Object.defineProperty,gu=Object.defineProperties,_u=Object.getOwnPropertyDescriptors,ir=Object.getOwnPropertySymbols,ul=Object.prototype.hasOwnProperty,On=Object.prototype.propertyIsEnumerable,Jt=(yn,fa,va)=>fa in yn?Qa(yn,fa,{enumerable:!0,configurable:!0,writable:!0,value:va}):yn[fa]=va,_n=(yn,fa)=>{for(var va in fa||(fa={}))ul.call(fa,va)&&Jt(yn,va,fa[va]);if(ir)for(var va of ir(fa))On.call(fa,va)&&Jt(yn,va,fa[va]);return yn},Gn=(yn,fa)=>gu(yn,_u(fa)),ua=(yn,fa,va)=>new Promise((Vr,Bl)=>{var Gr=Qr=>{try{Dl(va.next(Qr))}catch(Kr){Bl(Kr)}},El=Qr=>{try{Dl(va.throw(Qr))}catch(Kr){Bl(Kr)}},Dl=Qr=>Qr.done?Vr(Qr.value):Promise.resolve(Qr.value).then(Gr,El);Dl((va=va.apply(yn,fa)).next())});const oa={loading:!1,page:1,data:[],count:0,actionType:null,activeDiscussIndex:null};var Ta=(yn=>(yn[yn.GET_DISCUSSES=0]="GET_DISCUSSES",yn[yn.TOP_OR_DOWN_DISCUSS=1]="TOP_OR_DOWN_DISCUSS",yn[yn.ACTIVE_DISCUSS_INDEX=2]="ACTIVE_DISCUSS_INDEX",yn[yn.PLUS_DISCUSS=3]="PLUS_DISCUSS",yn[yn.SET_ACTION_TYPE=4]="SET_ACTION_TYPE",yn[yn.SET_PAGE=5]="SET_PAGE",yn[yn.SHOW_DISCUSSES_LOADING=6]="SHOW_DISCUSSES_LOADING",yn))(Ta||{});function hu(yn,fa){switch(fa.type){case 6:return Gn(_n({},yn),{loading:!0});case 0:return _n(_n({},yn),fa.payload);case 1:return _n(_n({},yn),fa.payload);case 4:return _n(_n({},yn),fa.payload);case 3:return _n(_n({},yn),fa.payload);case 5:return Gn(_n({},yn),{page:fa.payload});case 2:return _n(_n({},yn),fa.payload);default:throw new Error}}var ft=({user:yn,identifier:fa,hack:va,onTriggerPraise:Vr,activeIndex:Bl})=>{const[Gr,El]=(0,a.useReducer)(hu,oa),{loading:Dl,page:Qr,data:Kr,count:Do,actionType:Co,activeDiscussIndex:Br}=Gr,Wl=(0,a.useCallback)(()=>ua(void 0,null,function*(){El({type:6});const ho=yield Ca(fa,Qr),{comments:oi,disscuss_count:Zi}=ho;El({type:0,payload:{data:oi,count:Zi,loading:!1}})}),[Qr,fa]);(0,a.useEffect)(()=>{Bl==="2"&&Wl()},[fa,Qr,Bl]);function hi(ho){El({type:5,payload:ho})}function bu(ho){El({type:4,payload:{actionType:ho}})}function ns(ho){El(Br===ho?{type:2,payload:{activeDiscussIndex:null}}:{type:2,payload:{activeDiscussIndex:ho}})}function cl(ho,oi,Zi){return ua(this,null,function*(){try{const Ss=yield Cu(ho);Kr[Zi].user_praise=oi,Kr[Zi].praise_count=Ss.praise_count,El({type:3,payload:{data:[...Kr]}})}catch(Ss){console.log(Ss)}})}function is(){return ua(this,null,function*(){const{id:ho,params:oi,type:Zi,index:Ss,parentDiscussIndex:ss}=Co;if(Zi==="hidden-discuss"&&(yield cu(fa,ho,oi),ss?Kr[ss].children[Ss].hidden=oi.hidden==1:Kr[Ss].hidden=oi.hidden==1,El({type:4,payload:{actionType:null,data:[...Kr]}})),Zi==="delete-discuss"){if(yield or(fa,ho),ss||ss===0){let Os=Kr[ss].children;for(let Es=Os.length-1;Es>=0;Es--)if(Os[Es].id===ho){Os.splice(Es,1);break}Kr[ss].children=Os}else for(let Os=Kr.length-1;Os>=0;Os--)if(Kr[Os].id===ho){Kr.splice(Os,1);break}El({type:4,payload:{actionType:null,data:[...Kr]}})}})}function li(){El({type:4,payload:{actionType:null}})}function _i(ho,oi){return ua(this,null,function*(){try{yield Da(fa,ho,oi),Wl()}catch(Zi){console.log(Zi)}})}function as(ho){return ua(this,null,function*(){El({type:6}),yield nr(fa,ho),Wl()})}return Vn.createElement(Vn.Fragment,null,Vn.createElement("div",{className:"discuss-panel"},Kr.length===0?Vn.createElement(Qt.Z,null):Kr.map((ho,oi)=>Vn.createElement(vl,{onReplyDiscuss:_i,onPlusDiscuss:cl,onSetActiveDiscussIndex:ns,onSetActionType:bu,data:ho,index:oi,user:yn,activeDiscussIndex:Br})),Do>10?Vn.createElement("div",{className:"pagination-container"},Vn.createElement(st.Z,{showQuickJumper:!0,onChange:hi,current:Qr,total:Do})):null),Vn.createElement(qn,{user_praise:va.user_praise,praise_count:va.praises_count,praisePlus:Vr,discuss_count:va.comments_count,onCreateDiscuss:as}),Vn.createElement(x.Z,null,Vn.createElement(he.default,{centered:!0,title:"\u63D0\u793A",open:!!Co,onOk:is,onCancel:li},Vn.createElement("p",null,Co?Co.message:"")),Vn.createElement(Er.Z,null)))},re=z(88044),ge=z(28802),De=z(31221),Xe={},tt=z(67294),Ot=({hack:yn,current_user:fa})=>tt.createElement("div",{className:Xe.answer},yn!=null&&yn.analysis?tt.createElement(sn.Z,{style:{padding:"13px 0"},value:(yn==null?void 0:yn.analysis)||""}):tt.createElement(Qt.Z,{customText:"\u6682\u672A\u8BBE\u7F6E\u9898\u76EE\u89E3\u6790~"})),Lt={hackSets:"hackSets___tw75g",collapseWrapper:"collapseWrapper___TteKi",panelHeader:"panelHeader___Y_Xjq",rateInput:"rateInput___y1qUi",open:"open___xrixP",close:"close___jb6D2",uploadTableWrapper:"uploadTableWrapper___U9Tz_"},Wn=z(69234),ra=z(15746),xa=z(91773),Kn=z(37720),Du=z(32259),la=z(67294);const{TextArea:lu}=ge.default,{Panel:Ga}=Wn.default;var Ea=({data:yn,hack:fa})=>(console.log(yn,fa,"data"),fa!=null&&fa.is_file?la.createElement(Du.Y2,{disabled:!0,className:Lt.uploadTableWrapper,showScore:!fa.test_set_score,data:yn,isProgramHomework:!0}):la.createElement("div",{className:Lt.hackSets},yn==null?void 0:yn.map((va,Vr)=>la.createElement(Wn.default,{accordion:!0,bordered:!1,key:Vr,defaultActiveKey:Vr===0&&va.id,className:Lt.collapseWrapper,expandIcon:({isActive:Bl})=>la.createElement("i",{className:`iconfont icon-weizhankai ${Bl?Lt.open:Lt.close}`,style:{fontSize:14,transition:"all .2s"}})},la.createElement(Ga,{key:va.id,header:la.createElement(Se.Z,{align:"middle",justify:"space-between",wrap:!1},la.createElement(ra.Z,{className:Lt.panelHeader},la.createElement("span",null,"\u6D4B\u8BD5\u7528\u4F8B",Vr+1)),la.createElement(ra.Z,{flex:1},la.createElement(Se.Z,{align:"middle",justify:"end",wrap:!1},!(fa!=null&&fa.test_set_score)&&la.createElement(ra.Z,{className:Lt.rateInput},la.createElement("span",{className:"mr20"},"\u8BC4\u5206\u5360\u6BD4"),la.createElement("div",null,la.createElement(xa.default.Item,{noStyle:!0},la.createElement(Kn.Z,{value:va==null?void 0:va.score,className:Lt.baseFormItem,min:0,max:100,disabled:!0}))),la.createElement("span",{className:"ml10"},"%")))))},la.createElement(xa.default.Item,{label:"\u8F93\u5165",labelCol:{span:24}},la.createElement(lu,{readOnly:!0,value:va==null?void 0:va.input,rows:4})),la.createElement(xa.default.Item,{label:"\u8F93\u51FA",labelCol:{span:24}},la.createElement(lu,{readOnly:!0,value:va==null?void 0:va.output,rows:4}))))))),ga={tabs:"tabs___p2jIb",tabWarp:"tabWarp___mt05L",tab:"tab___IYGdQ",active:"active___fQMlP",content:"content___GWVJY"},jn=z(67294),Hr=(0,a.forwardRef)(({data:yn=[]},fa)=>{var va;const[Vr,Bl]=(0,a.useState)(),Gr=yn.filter(Dl=>Dl.show);(0,a.useEffect)(()=>{Gr.length&&Bl(Gr[0].id)},[yn==null?void 0:yn.length]);const El=((va=Gr.find(Dl=>Dl.id===Vr))==null?void 0:va.element)||null;return(0,a.useImperativeHandle)(fa,()=>({setActiveTab:Dl=>Bl(Dl)})),jn.createElement("div",{className:ga.tabs},jn.createElement("div",{className:ga.tabWarp},Gr.map(Dl=>jn.createElement("div",{onClick:()=>Bl(Dl.id),className:`${ga.tab} ${Dl.id===Vr?ga.active:""}`,key:Dl.id},Dl.name))),jn.createElement("div",{className:ga.content},El))}),Wa=z(67294),rl=Object.defineProperty,sr=Object.defineProperties,uu=Object.getOwnPropertyDescriptors,ya=Object.getOwnPropertySymbols,Ua=Object.prototype.hasOwnProperty,zi=Object.prototype.propertyIsEnumerable,Ki=(yn,fa,va)=>fa in yn?rl(yn,fa,{enumerable:!0,configurable:!0,writable:!0,value:va}):yn[fa]=va,Yo=(yn,fa)=>{for(var va in fa||(fa={}))Ua.call(fa,va)&&Ki(yn,va,fa[va]);if(ya)for(var va of ya(fa))zi.call(fa,va)&&Ki(yn,va,fa[va]);return yn},fo=(yn,fa)=>sr(yn,uu(fa)),du=(yn,fa,va)=>new Promise((Vr,Bl)=>{var Gr=Qr=>{try{Dl(va.next(Qr))}catch(Kr){Bl(Kr)}},El=Qr=>{try{Dl(va.throw(Qr))}catch(Kr){Bl(Kr)}},Dl=Qr=>Qr.done?Vr(Qr.value):Promise.resolve(Qr.value).then(Gr,El);Dl((va=va.apply(yn,fa)).next())});const Gu={1:"\u7B80\u5355",2:"\u9002\u4E2D",3:"\u56F0\u96BE"},pl={1:"#2fa34f",2:"#0152d9",3:"#fa6400"};var Ir=({hack:yn,onTriggerPraise:fa,topicId:va,page:Vr,onPageChange:Bl,user:Gr,current_user:El,submitRecords:Dl,submitting:Qr,submitResult:Kr,setActiveIndex:Do,hack_sets:Co})=>{var Br,Wl;const[hi]=(0,Ce.useSearchParams)(),[bu,ns]=(0,a.useState)("0"),cl=(0,Ce.useLocation)(),[is,li]=(0,a.useState)(!1),[_i,as]=(0,a.useState)(null),[ho,oi]=(0,a.useState)([]),[Zi,Ss]=(0,a.useState)([]),[ss,Os]=(0,a.useState)({page:1,limit:10}),Es=(0,a.useRef)(null),ws=(0,a.useRef)(null);console.log(Gr,"user");let[no,Dc]=(0,a.useState)(fo(Yo({},(0,Ce.useParams)()),{page:1,per_page:20,name:""}));(0,a.useEffect)(()=>{ws.current&&(yn==null?void 0:yn.is_close_tips)===!1&&_i===null&&as(!0)},[ws.current,yn==null?void 0:yn.is_close_tips,_i]);function Oc(){return du(this,null,function*(){yield(0,ye.ZP)("/api/users/close_tips.json",{method:"post"})})}(0,a.useEffect)(()=>{Do(bu)},[bu]);function Ts(ll){return du(this,null,function*(){let ba=ll.target.id;if(ba==="1"){let Jn=yield(0,ye.ZP)(`/api/myproblems/${no.id}/redo_logs.json`,{method:"get",params:Yo({},ss)});(Jn==null?void 0:Jn.status)===0&&Ss(Jn==null?void 0:Jn.data)}ns(ba)})}(0,a.useEffect)(()=>Un.Z.subscribe("to-commit-info",()=>{ns("1"),Es.current&&Es.current.setActiveTab("1")}),[]),(0,a.useEffect)(()=>Un.Z.subscribe("to-reset-info",()=>{Ts({target:{id:"1"}}),Es.current&&Es.current.setActiveTab("2")}),[]);function ks(){ns("2")}function Fi(){return du(this,null,function*(){let ll=yield(0,ye.ZP)("/api/problems/my_hack_list.json",{method:"get",params:Yo({identifier:no==null?void 0:no.id},no)});oi(ll)})}const ac=[{title:null,description:Wa.createElement("div",null,Wa.createElement("b",{onClick:()=>{as(!1),Oc(),li(!0),Fi()},className:"c-light-primary font16 current"},"\u67E5\u770B\u9898\u76EE\u5217\u8868\u5165\u53E3"),Wa.createElement("div",{className:"c-grey-333 mt10 mb20"},"\u672C\u6B21\u4F5C\u4E1A\u6240\u9700\u5B8C\u6210\u7684\u8BD5\u9898\u90FD\u53EF\u4EE5\u5728\u8FD9\u91CC\u627E\u5230\uFF0C\u5E76\u652F\u6301\u70B9\u51FB\u8BD5\u9898\u8C03\u6574\u5230\u505A\u9898\u9875"),Wa.createElement(xe.ZP,{onClick:()=>{as(!1),Oc()},style:{padding:"2px 29px",height:30,float:"right"},type:"primary"},"\u77E5\u9053\u4E86")),target:()=>ws.current}];return Wa.createElement("div",{className:Ct["left-panel"]},Wa.createElement("ul",{className:`${Ct["s-navs"]} ${Ct["bg-white"]} ${Ct.b1}`},(yn==null?void 0:yn.is_program)&&!hi.get("pageId")&&Wa.createElement(pe.Z,{title:"\u9898\u76EE\u5217\u8868"},Wa.createElement("div",{onClick:()=>{Fi(),li(!0)},className:Ct.btns,ref:ws,style:_i?{pointerEvents:"none"}:{}},Wa.createElement("i",{className:"iconfont icon-yidongdaomulu1 font14 c-white"}))),Wa.createElement("li",{style:{marginLeft:20}},Wa.createElement("a",{className:bu==="0"?Ct.active:"",id:"0",onClick:Ts},"\u9898\u76EE\u63CF\u8FF0")),Wa.createElement("li",null,Wa.createElement("a",{className:bu==="1"?Ct.active:"",id:"1",onClick:Ts},"\u64CD\u4F5C\u8BB0\u5F55")),(hi.get("type")!=="exercises"&&(yn==null?void 0:yn.answer_text_show)||hi.get("type")!=="exercises"&&(yn==null?void 0:yn.analysis_show))&&Wa.createElement("li",null,Wa.createElement("a",{className:bu==="4"?Ct.active:"",id:"4",onClick:Ts},"\u89E3\u7B54\u53C2\u8003")),hi.get("type")!=="exercises"&&Wa.createElement("li",null,Wa.createElement("a",{className:bu==="2"?Ct.active:"",id:"2",onClick:Ts},"\u8BC4\u8BBA")),!!(Co!=null&&Co.length)&&hi.get("type")!=="exercises"&&hi.get("type")!=="1"&&Wa.createElement("li",null,Wa.createElement("a",{className:bu==="5"?Ct.active:"",id:"5",onClick:Ts},"\u6D4B\u8BD5\u7528\u4F8B"))),Wa.createElement("div",{className:`${Ct["tab-panel-body"]} ${bu==="0"?"":"hide"}`,style:{borderRight:"1px #dddddd solid",padding:0}},Wa.createElement(qt,{hack:yn,onTriggerPraise:fa,toDiscuss:ks})),Wa.createElement("div",{style:{padding:"12px"},className:`${Ct["tab-panel-body"]} ${bu==="1"?"":"hide"}`},Wa.createElement(Hr,{ref:Es,data:[{id:"1",show:hi.get("qtype")!=="8",name:"\u63D0\u4EA4\u8BB0\u5F55",element:Wa.createElement(Wa.Fragment,null,Dl!=null&&Dl.records_count||Qr?Wa.createElement(Nn,{page:Vr,onPageChange:Bl,topicId:va,submitting:Qr,key:(Kr==null?void 0:Kr.id)||1,submitRecords:Dl,submitResult:Kr}):Wa.createElement(Qt.Z,null))},{id:"2",show:hi.get("type")==="exercises"||(yn==null?void 0:yn.homework_common_id),name:"\u91CD\u7F6E\u8BB0\u5F55",element:Wa.createElement(Wa.Fragment,null,Wa.createElement(Mt.default,{pagination:!1,dataSource:Zi==null?void 0:Zi.list,columns:[{title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801\u65F6\u95F4",dataIndex:"created_at",render:(ll,ba,Jn)=>Rn()(ll).format("YYYY-MM-DD HH:mm:ss")},{title:"\u64CD\u4F5C\u4EBA",dataIndex:"operator"},{title:"\u64CD\u4F5C",dataIndex:"redo_type",render:(ll,ba,Jn)=>{var cr;return(cr=[{id:1,name:"\u6253\u56DE\u91CD\u505A"},{id:2,name:"\u6062\u590D\u521D\u59CB\u4EE3\u7801"},{id:3,name:"\u91CD\u7F6E\u4EE3\u7801\u4ED3\u5E93"}].find($n=>$n.id===ll))==null?void 0:cr.name}}]}),Wa.createElement(st.Z,{style:{marginTop:10},current:ss.page,total:Zi==null?void 0:Zi.count,hideOnSinglePage:!0,onChange:ll=>du(void 0,null,function*(){ss.page=ll,Os(ss);let ba=yield(0,ye.ZP)(`/api/myproblems/${no.id}/redo_logs.json`,{method:"get",params:fo(Yo({},ss),{courseId:no.courseId})});(ba==null?void 0:ba.status)===0&&Ss(ba==null?void 0:ba.data)})}))}]})),Wa.createElement("div",{style:{padding:"12px"},className:`${Ct["tab-panel-body"]} ${bu==="4"?"":"hide"}`},Wa.createElement(Hr,{data:[{id:"1",show:hi.get("type")!=="exercises"&&(yn==null?void 0:yn.answer_text_show),name:"\u7B54\u6848",element:Wa.createElement(Wa.Fragment,null,Wa.createElement(ln,{hack:yn,current_user:El}))},{id:"2",show:hi.get("type")!=="exercises"&&(yn==null?void 0:yn.analysis_show),name:"\u89E3\u6790",element:Wa.createElement(Wa.Fragment,null,Wa.createElement(Ot,{hack:yn,current_user:El}))}]})),Wa.createElement("div",{className:`${Ct["tab-panel-body"]} ${bu==="2"?"":"hide"}`,style:{padding:0}},Wa.createElement(ft,{user:Gr,activeIndex:bu,identifier:yn.identifier,hack:yn,onTriggerPraise:fa})),Wa.createElement("div",{className:`${Ct["tab-panel-body"]} ${bu==="5"?"":"hide"}`,style:{padding:12}},Wa.createElement(Ea,{data:Co||[],hack:yn})),Wa.createElement(E.Z,{rootClassName:Ct.drawer,closable:!1,title:null,bodyStyle:{background:"#1B2333",padding:25,display:"flex",flexDirection:"column"},footer:null,width:500,placement:"left",onClose:()=>li(!1),open:is},Wa.createElement(Se.Z,null,Wa.createElement("b",{style:{color:"#008CFF",fontWeight:500,lineHeight:"19px"},className:"font16"},"\u9898\u76EE\u5217\u8868"),Wa.createElement("span",{style:{color:"#FA8D30",fontWeight:500},className:"font12 ml10"},"\u5171",ho==null?void 0:ho.total_count,"\u9898\xA0[\xA0",ho==null?void 0:ho.total_score,"\u5206\xA0]\xA0"),!(Gr!=null&&Gr.hack_manager)&&Wa.createElement("span",{style:{color:"#FA8D30",fontWeight:500,marginLeft:"auto"},className:"font12"},"\u6211\u7684\u5F97\u5206\xA0:\xA0",ho==null?void 0:ho.work_score,"\u5206")),Wa.createElement("div",{style:{height:1,background:"#1C313F",marginTop:12}}),Wa.createElement(Se.Z,{align:"middle",className:"mt10 mb10"},!(Gr!=null&&Gr.hack_manager)&&Wa.createElement(re.default,{size:"large",className:"mr10",style:{width:104},placeholder:"\u901A\u8FC7\u60C5\u51B5",onChange:ll=>{no.page=1,no.finish_status=ll,Dc(Yo({},no)),Fi()}},Wa.createElement(re.default.Option,{value:""},"\u5168\u90E8"),Wa.createElement(re.default.Option,{value:0},"\u672A\u5F00\u59CB"),Wa.createElement(re.default.Option,{value:1},"\u8FDB\u884C\u4E2D"),Wa.createElement(re.default.Option,{value:2},"\u5DF2\u5B8C\u6210")),Wa.createElement(re.default,{size:"large",className:"mr10",style:{width:104},placeholder:"\u9898\u76EE\u96BE\u5EA6",onChange:ll=>{no.page=1,no.difficult=ll||null,Dc(Yo({},no)),Fi()}},Wa.createElement(re.default.Option,{value:0},"\u5168\u90E8"),Wa.createElement(re.default.Option,{value:1},"\u7B80\u5355"),Wa.createElement(re.default.Option,{value:2},"\u9002\u4E2D"),Wa.createElement(re.default.Option,{value:3},"\u56F0\u96BE")),Wa.createElement(ge.default.Search,{size:"large",onSearch:ll=>{no.name=ll,no.page=1,Dc(Yo({},no)),Fi()},style:{flex:1},placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0\u8FDB\u884C\u641C\u7D22"})),Wa.createElement("div",{className:Ct.list,style:{height:36,background:"#3D445C"}},!(Gr!=null&&Gr.hack_manager)&&Wa.createElement("span",null,"\u72B6\u6001"),Wa.createElement("span",null,"\u5E8F\u53F7"),Wa.createElement("span",{style:{flex:1}},"\u9898\u76EE\u540D\u79F0"),Wa.createElement("span",{style:{flexBasis:48,paddingRight:0}},"\u96BE\u5EA6")),Wa.createElement("div",{style:{overflow:"auto",flex:1}},(Br=ho==null?void 0:ho.data)!=null&&Br.length?(Wl=ho==null?void 0:ho.data)==null?void 0:Wl.map((ll,ba)=>Wa.createElement("div",{onClick:()=>du(void 0,null,function*(){let Jn=yield(0,ye.ZP)(`/api/problems/${ll==null?void 0:ll.identifier}/start.json`,{method:"get",params:{hack_user_id:Gr==null?void 0:Gr.user_id}});Jn&&(Ce.history.replace(`/myproblems/${Jn==null?void 0:Jn.identifier}${window.location.search}`),window.location.reload())}),className:`${Ct.list} ${ll!=null&&ll.checked?Ct.active:""}`},!(Gr!=null&&Gr.hack_manager)&&Wa.createElement(Wa.Fragment,null,!(ll!=null&&ll.opened)&&Wa.createElement("span",{style:{color:"#E02020"}},"\u672A\u5F00\u59CB"),(ll==null?void 0:ll.opened)&&!(ll!=null&&ll.passed)&&Wa.createElement("span",{style:{color:"#FA6400"}},"\u8FDB\u884C\u4E2D"),(ll==null?void 0:ll.opened)&&(ll==null?void 0:ll.passed)&&Wa.createElement("span",{style:{color:"#24C074"}},"\u5DF2\u5B8C\u6210")),Wa.createElement("span",null,(no.page-1)*20+(ba+1)),Wa.createElement("span",{style:{flex:1},title:ll.name},`[${ll==null?void 0:ll.score}\u5206]`,"\xA0",ll.name),Wa.createElement("span",{style:{flexBasis:48,paddingRight:0}},Gu[ll.difficult]))):Wa.createElement(Qt.Z,null)),Wa.createElement(st.Z,{current:no.page,className:"mt20",hideOnSinglePage:!0,total:ho==null?void 0:ho.count,pageSize:no.per_page,onChange:(ll,ba)=>{no.page=ll,no.per_page=ba,Fi()}})),Wa.createElement(De.Z,{rootClassName:Ct.tour,closeIcon:!1,open:!!_i,steps:ac,gap:{offset:3,radius:2}}))},Cl=z(62522),ol=z(53814),ti=z(88508),io=z(97917),Xo=z(43462),Sn=z(93137),Li=z(11579),ic=z(94184),lc=z.n(ic),tc=z(96325),nc=z(67132),Jl=z(52262),Vs=z(45180),ri=z(22707),Gs=z(8861),Wu=z(67294),Qi=Object.defineProperty,pc=Object.defineProperties,vs=Object.getOwnPropertyDescriptors,fs=Object.getOwnPropertySymbols,ps=Object.prototype.hasOwnProperty,so=Object.prototype.propertyIsEnumerable,sc=(yn,fa,va)=>fa in yn?Qi(yn,fa,{enumerable:!0,configurable:!0,writable:!0,value:va}):yn[fa]=va,Wo=(yn,fa)=>{for(var va in fa||(fa={}))ps.call(fa,va)&&sc(yn,va,fa[va]);if(fs)for(var va of fs(fa))so.call(fa,va)&&sc(yn,va,fa[va]);return yn},bi=(yn,fa)=>pc(yn,vs(fa)),cc=(yn,fa)=>{var va={};for(var Vr in yn)ps.call(yn,Vr)&&fa.indexOf(Vr)<0&&(va[Vr]=yn[Vr]);if(yn!=null&&fs)for(var Vr of fs(yn))fa.indexOf(Vr)<0&&so.call(yn,Vr)&&(va[Vr]=yn[Vr]);return va},ts=(yn,fa,va)=>new Promise((Vr,Bl)=>{var Gr=Qr=>{try{Dl(va.next(Qr))}catch(Kr){Bl(Kr)}},El=Qr=>{try{Dl(va.throw(Qr))}catch(Kr){Bl(Kr)}},Dl=Qr=>Qr.done?Vr(Qr.value):Promise.resolve(Qr.value).then(Gr,El);Dl((va=va.apply(yn,fa)).next())});const{Countdown:Hc}=ke.default,Nc={Java:"java",C:"c",Python:"py","C++":"c"};var Pc=(yn=>(yn[yn.SET_LOADING=0]="SET_LOADING",yn[yn.GET_DATA=1]="GET_DATA",yn[yn.GET_SUBMIT_RECORDS=2]="GET_SUBMIT_RECORDS",yn[yn.SET_DATA=3]="SET_DATA",yn[yn.SET_DEBUGING=4]="SET_DEBUGING",yn[yn.SET_SUBMITING=5]="SET_SUBMITING",yn[yn.SET_EXECUTE_MESSAGE=6]="SET_EXECUTE_MESSAGE",yn[yn.SET_EXECUTE_RESULT=7]="SET_EXECUTE_RESULT",yn[yn.SET_SUBMIT_RESULT=8]="SET_SUBMIT_RESULT",yn[yn.SET_SHOW_NOTE=9]="SET_SHOW_NOTE",yn[yn.SET_PAGE=10]="SET_PAGE",yn))(Pc||{});function Rr(){return new Date().getTime()}const vr={loading:!0,data:void 0,showNote:!1,debugResult:void 0,submitResult:void 0,debuging:!1,submitting:!1,submitRecords:void 0,submitRecordPage:1,executingMessage:""};function fl(yn,fa){switch(fa.type){case 1:return Wo(Wo({},yn),fa.payload);case 3:return bi(Wo({},yn),{data:fa.payload});case 0:return bi(Wo({},yn),{loading:fa.payload});case 9:return bi(Wo({},yn),{showNote:fa.payload});case 4:return bi(Wo({},yn),{debuging:fa.payload});case 5:return bi(Wo({},yn),{submitting:fa.payload});case 2:return bi(Wo({},yn),{submitRecords:fa.payload});case 10:return bi(Wo({},yn),{submitRecordPage:fa.payload});case 6:return bi(Wo({},yn),{executingMessage:fa.payload});case 7:return Wo(Wo({},yn),fa.payload);case 8:return Wo(Wo({},yn),fa.payload);default:throw new Error}}var Wr=({children:yn})=>{var fa,va,Vr,Bl,Gr,El,Dl,Qr,Kr,Do;const[Co,Br]=(0,a.useReducer)(fl,vr),{id:Wl}=(0,Ce.useParams)(),hi=(0,Ce.useLocation)(),[bu]=(0,Ce.useSearchParams)(),{loading:ns,data:cl,debugResult:is,submitResult:li,submitRecords:_i,submitRecordPage:as,showNote:ho,debuging:oi,submitting:Zi,executingMessage:Ss}=Co,[ss,Os]=(0,a.useState)("#37AD83"),[Es,ws]=(0,a.useState)(null),[no,Dc]=(0,a.useState)({}),[Oc,Ts]=(0,a.useState)(!0),[ks,Fi]=(0,a.useState)(!1),[ac,ll]=(0,a.useState)(!1),ba=(0,a.useRef)(null),Jn=(0,a.useRef)(0),cr=cl==null?void 0:cl.user,$n=cl==null?void 0:cl.hack,[Ql,Bo]=(0,a.useState)(!1),ao=(0,a.useRef)(1),Ui=(0,a.useRef)(!1);(0,tc.y)(bu.get("type")==="exercises");const{setOpenDisableCopyAndPaste:xs}=(0,tc.X)(),[Ps,vi]=(0,a.useState)(""),Ni=(0,Xo._)(no),[Mc,jc]=(0,a.useState)({open:!1,text:""}),[Is,Cc]=(0,a.useState)(null),dc=(0,a.useRef)(null);(0,a.useEffect)(()=>{var yu;let xu=(yu=$n==null?void 0:$n.homework_extension)==null?void 0:yu.failed_evaluate_num;typeof xu=="number"&&Cc(xu)},[(fa=$n==null?void 0:$n.homework_extension)==null?void 0:fa.failed_evaluate_num]),(0,a.useEffect)(()=>{function yu(){return ts(this,null,function*(){var xu,Al,Yl,Ol,Mu;Ts(!0);const Lr=yield(0,Ae.fu)(Wl,{exercise_id:bu.get("exercisesId")});if(setTimeout(()=>{Ts(!1)},800),Lr.status!==401){try{Lr.hack.code=Je.Base64.decode(Lr.hack.code)}catch(Tr){console.log(Tr)}Lr.hack=bi(Wo({},Lr.hack),{is_program:bu.get("type")==="1"}),Br({type:1,payload:{loading:!1,data:Lr}})}if(bu.get("type")==="exercises"){if(window.self===window.top){window.top.location.href="/";return}let Tr;bu.get("coursesId")=="coursesId"?Tr=yield(0,Ie._F)({categoryId:bu.get("exercisesId"),login:bu.get("login")}):Tr=yield(0,Ie._B)({categoryId:bu.get("exercisesId"),login:bu.get("login")}),Dc(Wo({},Tr)),xs((xu=Tr==null?void 0:Tr.exercise)==null?void 0:xu.forbid_copy),typeof((Al=Tr==null?void 0:Tr.exercise)==null?void 0:Al.left_time)=="number"&&(ws(Date.now()+((Yl=Tr==null?void 0:Tr.exercise)==null?void 0:Yl.left_time)*1e3),setTimeout(()=>{Os("red")},(((Ol=Tr==null?void 0:Tr.exercise)==null?void 0:Ol.left_time)-300>0?((Mu=Tr==null?void 0:Tr.exercise)==null?void 0:Mu.left_time)-300:0)*1e3))}})}Wl&&yu()},[Wl]),(0,a.useEffect)(()=>{var yu;return bu.get("type")==="exercises"&&((yu=no==null?void 0:no.exercise)!=null&&yu.screen_open)&&(window.removeEventListener("blur",Ec,!1),Sn.U.forEach((xu,Al)=>{window.addEventListener(xu,Ec,!1)}),window.addEventListener("blur",Ec,!1),window.focus()),()=>{document.removeEventListener((0,ze.gH)(),Ec)}},[no]),(0,a.useEffect)(()=>{Ps==="1"&&Wl&&$n!=null&&$n.language&&Wc()},[Wl,as,$n==null?void 0:$n.language,Ps]),(0,a.useEffect)(()=>($n!=null&&$n.is_program&&(Jn.current=0,ba.current=setInterval(()=>{Ks()},15e3)),()=>{clearInterval(ba.current)}),[$n==null?void 0:$n.is_program]);const Ks=()=>ts(void 0,null,function*(){let yu=yield(0,ye.ZP)(`/api/myproblems/${Wl}/save_long_time.json`,{method:"get",params:{answer_long_time:Jn.current}})}),Ec=()=>{Ui.current||(0,ze.BU)(),window.parent.postMessage("backExercise","*")};function Wc(){return ts(this,null,function*(){try{const yu=yield(0,Ae.zO)(Wl,{limit:15,page:as,language:$n==null?void 0:$n.language});Br({type:2,payload:yu})}catch(yu){console.log(yu)}})}function bc(yu){Br({type:10,payload:yu})}function Ys(yu){return ts(this,null,function*(){var xu;let Al;(bu.get("ip_limit")==="inner"||bu.get("ip_bind_type")==="true")&&(Al=yield(0,ol.y)({ip_limit:bu.get("ip_limit"),ip_bind:bu.get("ip_bind_type")==="true"}));const Yl=yield(0,Ae.n4)(Wl,{code:Je.Base64.encode(yu||$n.code),language:$n==null?void 0:$n.language,exercise_id:bu.get("exercisesId"),question_id:bu.get("questionId"),ip:Al});return Yl.status===-5&&(0,Ce.getDvaApp)()._store.dispatch({type:"exercise/setActionTabs",payload:{key:"student-unlock",exerciseParams:bi(Wo({errorMessage:Yl==null?void 0:Yl.message},(no==null?void 0:no.exercise)||{}),{exercise_user_id:(xu=no==null?void 0:no.exercise)==null?void 0:xu.exercise_user_id,id:bu.get("exercisesId")})}}),Yl})}function Ac(){return ts(this,null,function*(){if(ao.current=2,!Zi){Br({type:5,payload:!0});try{Un.Z.publish("to-commit-info");const yu=yield Ys();if(console.log(yu,1),yu.status===0){let Lr=function(){return ts(this,null,function*(){const{status:Tr,data:Ml}=yield(0,Ae.rX)(Wl,"submit"),co=Rr()-Mu>(Yl*Ol+3)*1e3;if(Tr!==0&&!co&&setTimeout(Lr,1e3),co){he.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8BC4\u6D4B\u4EE3\u7801\u8D85\u65F6"}),Br({type:5,payload:!1});return}if(Tr===0){Ml.status===2&&he.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8BC4\u6D4B\u4EE3\u7801\u8D85\u65F6"}),(Ml==null?void 0:Ml.status)===0&&bu.get("type")==="1"&&ll(!0),(Ml==null?void 0:Ml.status)!==0&&bu.get("type")==="1"&&Cc(hr=>hr+1);const Tu=yield(0,Ae.zO)(Wl,{limit:15,page:as,language:$n==null?void 0:$n.language});Br({type:8,payload:bi(Wo({},Co),{submitResult:Ml,submitting:!1,submitRecords:Tu})})}})},xu={};if(bu.get("type")==="exercises"?(xu.extras={exercise_id:bu.get("exercisesId"),question_id:bu.get("questionId")},(bu.get("ip_limit")==="inner"||bu.get("ip_bind_type")==="true")&&(xu.extras.ip=yield(0,ol.y)({ip_limit:bu.get("ip_limit"),ip_bind:bu.get("ip_bind_type")==="true"}))):bu.get("type")==="smartPlan"&&(xu.extras={smart_plan_page_item_bank_id:bu.get("smartPlanItemBankId"),simulate:bu.get("simulate")==="true"}),(yield(0,Ae.bM)(Wl,xu)).status===-1&&bu.get("exercisesId")){window.parent.location.href=`/classrooms/${bu.get("coursesId")}/exercise/${bu.get("exercisesId")}/detail`;return}const{time_limit:Yl,test_case_size:Ol}=$n,Mu=Rr();Lr()}else Br({type:5,payload:!1})}catch(yu){console.log(yu),Br({type:5,payload:!1})}Bo(!1)}})}function wc(){return ts(this,null,function*(){ao.current=1,Co.debuging=!0,Br({type:4,payload:!0});try{if((yield Ys()).status===0){let Mu=function(){return ts(this,null,function*(){const{status:Lr,message:Tr,data:Ml}=yield(0,Ae.rX)(Wl,"debug"),co=Rr()-Ol>(xu+3)*1e3;if(Lr!==0&&!co&&(Br({type:6,payload:Tr}),setTimeout(Mu,1e3)),co){he.default.error({title:"\u63D0\u793A",centered:!0,okText:"\u77E5\u9053\u5566",content:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}),Br({type:4,payload:!1}),Br({type:7,payload:bi(Wo({},Co),{debugResult:{status:2},debuging:!1})});return}Lr===0&&(Ml.status===2&&he.default.error({title:"\u63D0\u793A",centered:!0,okText:"\u77E5\u9053\u5566",content:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}),Br({type:4,payload:!1}),Br({type:7,payload:bi(Wo({},Co),{debugResult:Ml,debuging:!1})}))})};const{time_limit:xu}=$n;let Al={input:encodeURIComponent(cl.test_case.input)};if(bu.get("type")==="exercises"&&(Al.exercise_id=bu.get("exercisesId")),(yield(0,Ae.MU)(Wl,Al)).status===-1&&bu.get("exercisesId")){window.parent.location.href=`/classrooms/${bu.get("coursesId")}/exercise/${bu.get("exercisesId")}/detail`;return}const Ol=Rr();Mu()}else Br({type:4,payload:!1})}catch(yu){console.log(yu)}finally{}})}function Vc(yu,xu){const Al=xu?{modify_code:!1}:{};Br({type:3,payload:bi(Wo({},cl),{hack:Wo(bi(Wo({},$n),{code:yu}),Al)})}),Bo(!0)}const hd=yu=>ts(void 0,null,function*(){let xu=yield(0,ye.ZP)(`/api/problems/${$n==null?void 0:$n.identifier}/start.json`,{method:"get",params:{language:yu==="C++"||yu==="c++"?encodeURIComponent(yu):yu,hack_user_id:cr==null?void 0:cr.user_id}});xu.status!==-1&&Ce.history.replace(`/myproblems/${xu==null?void 0:xu.identifier}${window.location.search}`)});function Ms(yu){let xu=yu.target.value;Br({type:3,payload:bi(Wo({},cl),{test_case:{input:xu}})})}function uc(){return ts(this,null,function*(){try{let yu={};bu.get("type")==="exercises"?yu.exercise_id=bu.get("exercisesId"):$n!=null&&$n.homework_common_id&&(yu.homework_common_id=$n==null?void 0:$n.homework_common_id);const xu=yield(0,Ae.H7)(Wl,Wo({},yu));xu.status===401||(Vc(Je.Base64.decode(xu.code)),(bu.get("type")==="exercises"||$n!=null&&$n.homework_common_id)&&Un.Z.publish("to-reset-info"))}catch(yu){console.log(yu)}})}function Ds(){he.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Wu.createElement("p",null,"\u521D\u59CB\u4EE3\u7801\u6709\u4FEE\u6539\uFF0C\u66F4\u65B0\u540E\u5C06\u8986\u76D6\u73B0\u6709\u4EE3\u7801\u54E6~ ",Wu.createElement("br",null),"\u8BF7\u5C06\u60A8\u7F16\u8F91\u7684\u4EE3\u7801\u4FDD\u5B58\u81F3\u672C\u5730\uFF0C\u4EE5\u9632\u4E22\u5931"),onOk(){return ts(this,null,function*(){const yu=yield(0,Ae.fi)(Wl);yu.status===401||Vc(Je.Base64.decode(yu.code),!0)})}})}function cd(){Br({type:9,payload:!0})}function Gc(){Br({type:9,payload:!1})}function wt(yu){return ts(this,null,function*(){yield(0,Ae.MK)(Wl,yu),Br({type:1,payload:{showNote:!1,data:bi(Wo({},cl),{hack:bi(Wo({},$n),{notes:yu.notes})})}})})}const _t={hack:$n,isLoading:Oc,input:(va=cl==null?void 0:cl.test_case)==null?void 0:va.input,is_file:(Vr=cl==null?void 0:cl.test_case)==null?void 0:Vr.is_file,identifier:$n==null?void 0:$n.identifier,attachments_count:cl==null?void 0:cl.attachments_count,language:$n==null?void 0:$n.language,code:$n==null?void 0:$n.code,title:"main."+Nc[$n==null?void 0:$n.language],modify_code:$n==null?void 0:$n.modify_code,notes:$n==null?void 0:$n.notes,debugResult:is,debuging:oi,submitting:Zi,submitResult:li,executingMessage:Ss,onCancelNote:Gc,onAddNote:wt,showNote:ho,user:cr,onShowNote:cd,onSubmitCode:Ac,onChangeCode:Vc,onChangeInput:Ms,onDebugCode:wc,onResetCode:uc,onSyncCode:Ds,onUpdateCode:Ys,onChangeLanguage:hd,isWhiteTheme:ks,setIsWhiteTheme:Fi,topDispatch:Br};function gn(){return ts(this,null,function*(){const{praise_count:yu}=yield(0,Ae.vl)($n.id,{container_type:"Hack",type:1});let xu=bi(Wo({},cl),{hack:bi(Wo({},$n),{praises_count:yu,user_praise:!$n.user_praise})});Br({type:3,payload:xu})})}const Yn={topicId:Wl,submitResult:li,submitRecords:_i,submitting:Zi,page:as,onPageChange:bc,hack:$n,user:cl==null?void 0:cl.user,hack_sets:cl==null?void 0:cl.hack_sets,current_user:cl==null?void 0:cl.current_user,onTriggerPraise:gn,setActiveIndex:vi};console.log(no);const[Ur,Or]=(0,a.useState)(!1),[ql,zr]=(0,a.useState)(!1);(0,a.useEffect)(()=>{const yu=xu=>{if(console.log("event-----",xu),xu.data.type==="showIntelligentTeacherStatus"){const{aiStatus:Al,questionStatus:Yl}=xu.data;if(Or(Al),Yl){let Ol=JSON.parse(localStorage.getItem("smartPlanProgramIds")||"[]");if(Ol.includes(bu.get("smartPlanItemBankId")))return;he.default.info({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",content:Wu.createElement("div",{className:"tc font16"},Yl?"\u8001\u5E08\u5DF2\u7ED3\u675F\u7B54\u9898":"\u8001\u5E08\u5DF2\u7ED3\u675F\u6388\u8BFE","\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u4E86\u3002"),onOk:()=>ts(void 0,null,function*(){Ac(),localStorage.setItem("smartPlanProgramIds",JSON.stringify(Ol.push(bu.get("smartPlanItemBankId"))));let Mu="";bu.get("isMiniprogram")?Mu=`/miniprogram/courseware/study?courses_id=${bu.get("coursesId")}&id=${bu.get("exercisesId")}`:Mu=`/classrooms/${bu.get("coursesId")}/smart_plan/${bu.get("exercisesId")}/ppt_info/info`,window.opener?window.close():Ce.history.push(Mu)})})}}};return window.addEventListener("message",yu),()=>{window.removeEventListener("message",yu)}},[]);const su=()=>{if(bu.get("type")==="exercises")return!1;const yu=Object.entries(($n==null?void 0:$n.homework_extension)||{}).some(([xu,Al])=>xu!=="ai_code_evaluation_promote"&&!!Al);return!!(bu.get("type")==="1"&&((0,Jl.$O)()||yu)||bu.get("type")==="smartPlan"&&(Ur||bu.get("showAi")))};return(0,a.useEffect)(()=>{var yu,xu,Al,Yl,Ol,Mu,Lr;su()&&(Is>((xu=(yu=$n==null?void 0:$n.homework_extension)==null?void 0:yu.ai_guide_data)==null?void 0:xu.evaluation_num)&&jc({open:!0,text:(Yl=(Al=$n==null?void 0:$n.homework_extension)==null?void 0:Al.ai_guide_data)==null?void 0:Yl.evaluation_msg}),(Ol=$n==null?void 0:$n.homework_extension)!=null&&Ol.ai_guide&&Is==0&&!dc.current&&(dc.current=setTimeout(()=>{var Tr,Ml;jc({open:!0,text:(Ml=(Tr=$n==null?void 0:$n.homework_extension)==null?void 0:Tr.ai_guide_data)==null?void 0:Ml.unanswered_msg})},(((Lr=(Mu=$n==null?void 0:$n.homework_extension)==null?void 0:Mu.ai_guide_data)==null?void 0:Lr.unanswered_time)||0)*60*1e3)),dc.current&&Is>0&&clearTimeout(dc.current))},[Is,$n]),Wu.createElement(Wu.Fragment,null,Wu.createElement(Fe.Z,{spinning:ns,delay:500},cl?Wu.createElement("div",{style:{minWidth:"1200px"}},Wu.createElement("header",{className:lc()(Li.Z.header,ks&&Li.Z.whiteHeader)},!((Bl=["smartPlan","exercises"])!=null&&Bl.includes(bu.get("type")))&&Wu.createElement("div",null,Wu.createElement("img",{src:`${me.Z.IMG_SERVER}/images/${cr==null?void 0:cr.image_url}`,alt:"user",width:36}),Wu.createElement("span",{style:{color:ks?"#333":"#B2BACB",fontSize:16}},cr==null?void 0:cr.name)),((Gr=["smartPlan","exercises"])==null?void 0:Gr.includes(bu.get("type")))&&Wu.createElement("div",null,Wu.createElement("div",{className:"exercise_user_info"},"\u59D3\u540D",Wu.createElement("span",{className:"ml10"},((El=no==null?void 0:no.exercise)==null?void 0:El.user_name)||(cr==null?void 0:cr.name)||"--")),Wu.createElement("div",{className:"exercise_user_info ml30"},"\u5B66\u53F7",Wu.createElement("span",{className:"ml10"},((Dl=no==null?void 0:no.exercise)==null?void 0:Dl.student_id)||(cr==null?void 0:cr.student_id)||"--"))),Wu.createElement("h2",{className:"flex-wrp flex_box_column flex_box_center"},Wu.createElement("div",null,$n.name)),(bu.get("type")==="smartPlan"||($n==null?void 0:$n.is_program))&&Wu.createElement(ti.Z,{defaultValue:($n==null?void 0:$n.answer_long_time)||0,onChange:yu=>{Jn.current=yu},className:Li.Z.timepiece}),cr!=null&&cr.hack_manager&&!bu.get("is_smart_plan")?Wu.createElement(Ce.Link,{className:Li.Z.btn_edit,to:bu.get("type")==="1"?bu.get("pageId")?`/problems/newedit/${$n.identifier}?type=1&pageId=${bu.get("pageId")}&backUrl=${bu.get("backUrl")}`:`/problems/newedit/${$n.identifier}?type=1`:bu.get("backUrl")?`/problems/newedit/${$n.identifier}?backUrl=${bu.get("backUrl")}`:`/problems/newedit/${$n.identifier}`}," ",Wu.createElement("i",{className:"iconfont icon-bianji13 font14 mr5"})," \u7F16\u8F91"):null,!!((Qr=no==null?void 0:no.exercise)!=null&&Qr.left_time)&&Wu.createElement(Wu.Fragment,null,Wu.createElement("span",{style:{color:ss,marginRight:6},className:`iconfont icon-daojishi ${Li.Z.djs}`}),Wu.createElement("span",{className:"c-white mr20"},Wu.createElement(Hc,{valueStyle:{color:ss,fontSize:20,fontWeight:500},title:Wu.createElement("span",{style:{color:ss,fontSize:14,marginRight:10},className:"time"},"\u5269\u4F59\u7B54\u9898\u65F6\u957F"),value:Es,onFinish:()=>ts(void 0,null,function*(){const yu=yield(0,Ie.VL)({categoryId:bu.get("exercisesId"),commit_method:2});if((yu==null?void 0:yu.status)===0&&(Ys(),he.default.info({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",content:Wu.createElement("div",{className:"tc font16"},"\u7B54\u9898\u7ED3\u675F\u4E86\uFF0C\u7CFB\u7EDF\u5DF2\u81EA\u52A8\u63D0\u4EA4\u8BD5\u5377",Wu.createElement("br",null),"\u4E0D\u80FD\u518D\u4FEE\u6539\u7B54\u9898"),onOk:()=>ts(void 0,null,function*(){window.parent.location.href=`/classrooms/${bu.get("coursesId")}/exercise/${bu.get("exercisesId")}/detail`})})),(yu==null?void 0:yu.status)===-3){const xu=parseInt(yu==null?void 0:yu.message);ws(Date.now()+xu*1e3)}})}))),(Kr=["smartPlan","exercises"])!=null&&Kr.includes(bu.get("type"))?Wu.createElement(xe.ZP,{type:"primary",onClick:()=>{if(bu.get("type")==="exercises"){const yu=()=>ts(void 0,null,function*(){yield Ys(),Bo(!1),Ni(),Ui.current=!0,Ec()});if(!(_i!=null&&_i.records_count)||Ql){he.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",icon:null,title:"\u63D0\u793A",content:Wu.createElement("div",{style:{color:"#FF0000"}},"\u8BF7\u786E\u8BA4\u4F60\u7684\u7B54\u9898\u5185\u5BB9\u662F\u5426\u8FDB\u884C\u8BC4\u6D4B\u5E76\u63D0\u4EA4\uFF0C\u672A\u8BC4\u6D4B\u5219\u4F1A\u5BFC\u81F4\u8BE5\u9898\u65E0\u6CD5\u83B7\u5F97\u5206\u6570"),onOk:yu});return}yu()}else{let yu="";bu.get("isMiniprogram")=="true"?yu=`/miniprogram/courseware/study?courses_id=${bu.get("coursesId")}&id=${bu.get("exercisesId")}`:yu=`/classrooms/${bu.get("coursesId")}/smart_plan/${bu.get("exercisesId")}/ppt_info/info`,window.opener?window.close():(console.log("11",`program_${bu.get("coursesId")}_${bu.get("exercisesId")}`),console.log(bu.get("isMiniprogram")=="true"),bu.get("isMiniprogram")=="true"?localStorage.removeItem(`iframeprogram_${bu.get("coursesId")}_${bu.get("exercisesId")}`):Ce.history.push(yu))}}},bu.get("type")==="exercises"?"\u8FD4\u56DE\u8BD5\u5377":"\u8FD4\u56DE\u8BFE\u4EF6"," "):Wu.createElement("span",{onClick:()=>{var yu;if(bu.get("backUrl"))Ce.history.push(bu.get("backUrl"));else if(bu.get("type")==="1"){let xu=(yu=localStorage.getItem("program_homework"))==null?void 0:yu.split(",");Ce.history.push(`/classrooms/${xu==null?void 0:xu[0]}/program_homework/${xu==null?void 0:xu[1]}/detail`)}else Ce.history.push("/problemset")}},Wu.createElement(pe.Z,{title:"\u5173\u95ED"},Wu.createElement("i",{style:{color:ks?"#8D929F":"#fff"},className:"iconfont icon-fanhuishijuan font16 "})))),Wu.createElement(Fe.Z,{size:"large",spinning:Oc},Wu.createElement(Me.Z,{className:lc()(Li.Z.myProblems,ks&&Li.Z.whiteMyProblems),leftChild:Wu.createElement(Ir,Wo({},Yn)),rightChild:Wu.createElement(Ti,Wo({},_t))}))):null,Wu.createElement(he.default,{centered:!0,closable:!1,width:680,footer:null,open:ac,className:"oj-modal"},Wu.createElement("section",{className:"oj-modal-content"},Wu.createElement("div",{className:"oj-modal-head"},Wu.createElement("img",{src:Cl,alt:""}),Wu.createElement("i",{onClick:()=>ll(!1),className:"iconfont icon-guanbi1"})),Wu.createElement("aside",null,Wu.createElement("img",{className:"mr30",src:Gs.Z}),"\u8FD0\u884C\u65F6\u95F4:\xA0",Wu.createElement("span",{style:{color:"#75d6ba",marginRight:100}},li==null?void 0:li.execute_time,"ms"),"\u4F18\u4E8E",Wu.createElement("span",{style:{color:"#f3b087",margin:"0 5px"}},(li==null?void 0:li.time_better_than)||100,"%"),"\u7684\u7528\u6237"),Wu.createElement("aside",{className:"mb50"},Wu.createElement("img",{src:ri.Z,className:"mr30"}),Wu.createElement("span",{className:"oj-modal-tt"},Wu.createElement("span",null,Wu.createElement("span",null,"\u5360\u7528\u5185\u5B58:\xA0"),Wu.createElement("span",{className:"c-light-primary"},li==null?void 0:li.execute_memory,"kb")),Wu.createElement("span",null,Wu.createElement("span",null))),"\u4F18\u4E8E",Wu.createElement("span",{style:{color:"#f3b087",margin:"0 5px"}},(li==null?void 0:li.memory_better_than)||100,"%"),"\u7684\u7528\u6237"),Wu.createElement("div",{id:"oj-modal-next",onClick:()=>ts(void 0,null,function*(){var yu;if(li!=null&&li.next_identifier){let xu=yield(0,ye.ZP)(`/api/problems/${li==null?void 0:li.next_identifier}/start.json`,{method:"get",params:{hack_user_id:cr==null?void 0:cr.user_id}});xu&&(Ce.history.replace(`/myproblems/${xu==null?void 0:xu.identifier}${window.location.search}`),window.location.reload())}else{let xu=(yu=localStorage.getItem("program_homework"))==null?void 0:yu.split(",");Ce.history.push(`/classrooms/${xu==null?void 0:xu[0]}/program_homework/${xu==null?void 0:xu[1]}/detail`)}}),className:"oj-modal-btn"},li!=null&&li.next_identifier?"\u8FDB\u5165\u4E0B\u4E00\u9898":"\u56DE\u5230\u4F5C\u4E1A\u8BE6\u60C5\u9875"))),su()&&Wu.createElement(nc.Z,{showData:bu.get("type")==="smartPlan"?{ai_exam_question:!0,ai_syntax_check:!0,ai_code_diagnosis:!0,ai_guidance:!0,ai_q_and_a:!0}:$n==null?void 0:$n.homework_extension,description:$n==null?void 0:$n.description,allShow:(0,Jl.$O)(),code:$n==null?void 0:$n.code,sendParams:{source:"hack",hack_id:Wl},draggableExtraNode:((Do=$n==null?void 0:$n.homework_extension)==null?void 0:Do.ai_guide)&&(Mc==null?void 0:Mc.open)&&Wu.createElement("div",{className:"bg-white rounded-2px-rem p-10px flex item-center justify-between gap-10px",style:{position:"absolute",top:"50%",transform:"translateY(-50%)",right:"75px",width:"400px"}},Wu.createElement("div",{className:"bg-white absolute",style:{WebkitClipPath:"polygon(0 0, 0% 100%, 100% 50%)",clipPath:"polygon(0 0, 0% 100%, 100% 50%)",width:"10px",height:"15px",right:"-10px"}}),Wu.createElement(Vs.Z,{text:(Mc==null?void 0:Mc.text)||""}),Wu.createElement("span",{className:"iconfont icon-tupianguanbi font14 current c-grey-666",onClick:yu=>{jc({open:!1,text:""})}}))})),Wu.createElement(io.Z,{successCb:()=>{ao.current===1?wc():Ac()}}))};function jo({title:yn,modify_code:fa,onSyncCode:va,onShowCodeSetting:Vr,onResetCode:Bl,hack:Gr,onChangeLanguage:El,isWhiteTheme:Dl,onShowResourceCentre:Qr,attachments_count:Kr}){var Do;const Co=()=>{he.default.confirm({title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801",icon:Wu.createElement(oe.Z,null),content:"\u4F60\u5728\u672C\u6587\u4EF6\u4E2D\u4FEE\u6539\u7684\u5185\u5BB9\u5C06\u4E22\u5931\uFF0C\u662F\u5426\u786E\u5B9A\u91CD\u65B0\u52A0\u8F7D\u521D\u59CB\u4EE3\u7801\uFF1F",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Bl})},[Br]=(0,Ce.useSearchParams)(),Wl=Br.get("language"),hi=bu=>bu==="1"?"c++":bu==="2"?"C++":bu;return(0,a.useEffect)(()=>{Wl&&El(hi(Wl))},[]),(0,a.useEffect)(()=>{Gr!=null&&Gr.tpm_code_modified&&he.default.confirm({title:"\u66F4\u65B0\u521D\u59CB\u4EE3\u7801",icon:Wu.createElement(oe.Z,null),content:Wu.createElement("div",null,Wu.createElement("div",null,"\u7F16\u7A0B\u9898\u7684\u521D\u59CB\u4EE3\u7801\u5185\u5BB9\u6709\u66F4\u65B0,"),Wu.createElement("div",null,"\u66F4\u65B0\u64CD\u4F5C\u5C06\u4FDD\u7559\u5DF2\u5B8C\u6210\u7684\u8BC4\u6D4B\u8BB0\u5F55\u548C\u6210\u7EE9,"),Wu.createElement("div",null,"\u8FD8\u672A\u5B8C\u6210\u8BC4\u6D4B\u7684\u4EFB\u52A1\u4EFB\u52A1\u4EE3\u7801\uFF0C\u8BF7\u81EA\u884C\u4FDD\u5B58\uFF01")),centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Bl()})},[Gr==null?void 0:Gr.language]),console.log(Gr,Dl,"hack"),Wu.createElement("div",{className:`${Li.Z.codeHead} ${Dl?Li.Z.whiteCodeHead:""}`},Wu.createElement("div",{className:Li.Z.navWrap},(Do=Gr==null?void 0:Gr.all_language)==null?void 0:Do.map(bu=>Wu.createElement("div",{className:`${Li.Z.nav} ${bu===(Gr==null?void 0:Gr.language)?Li.Z.active:""}`,key:bu,onClick:()=>El(bu)},Wu.createElement(pe.Z,{title:"\u7F16\u7A0B\u8BED\u8A00"},Wu.createElement("i",{className:"iconfont icon-bianchengyuyan1"})),Wu.createElement("span",null,bu)))),Wu.createElement(Se.Z,{align:"middle",style:{marginLeft:"auto"}},fa?Wu.createElement("a",{title:"\u66F4\u65B0\u901A\u77E5",onClick:va},Wu.createElement("img",{src:ht,alt:"notice",style:{height:13,transform:"translateY(-2px)"}})):null,Kr>0&&Wu.createElement("a",{onClick:Qr},Wu.createElement(pe.Z,{title:"\u8D44\u6E90\u4E2D\u5FC3"},Wu.createElement("i",{style:{color:"#8D929F"},className:"iconfont icon-ziyuanzhongxin mr15"}))),Wu.createElement("a",{onClick:Co},Wu.createElement(pe.Z,{title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801"},Wu.createElement("i",{style:{color:"#8D929F"},className:"iconfont icon-huifuchushihuashezhi mr15"}))),Wu.createElement("a",{onClick:Vr},Wu.createElement(pe.Z,{title:"\u8BBE\u7F6E"},Wu.createElement("i",{style:{color:"#8D929F"},className:"iconfont icon-shezhi8 font14 mr15"})))))}function Ti(yn){var fa=yn,{input:va,is_file:Vr,identifier:Bl,showNote:Gr,onShowNote:El,notes:Dl,onCancelNote:Qr,onAddNote:Kr,debugResult:Do,language:Co,debuging:Br,submitting:Wl,executingMessage:hi,code:bu,onSubmitCode:ns,onDebugCode:cl,onChangeCode:is,onChangeInput:li,onUpdateCode:_i,user:as,isLoading:ho,submitResult:oi}=fa,Zi=cc(fa,["input","is_file","identifier","showNote","onShowNote","notes","onCancelNote","onAddNote","debugResult","language","debuging","submitting","executingMessage","code","onSubmitCode","onDebugCode","onChangeCode","onChangeInput","onUpdateCode","user","isLoading","submitResult"]);function Ss(Os,Es){return Wu.createElement(jo,bi(Wo({},Zi),{onShowCodeSetting:Os,onShowResourceCentre:Es}))}const ss=Wo({input:va,is_file:Vr,debugResult:Do,debuging:Br,submitting:Wl,executingMessage:hi,onDebugCode:cl,onChangeCode:is,onSubmitCode:ns,onChangeInput:li,user:as,submitResult:oi},Zi);return Wu.createElement("div",{style:{display:"flex",flexDirection:"column",height:"100%",background:"#1B2333"}},Wu.createElement(yt,{setIsWhiteTheme:Zi==null?void 0:Zi.setIsWhiteTheme,isLoading:ho,language:Co,value:bu,identifier:Bl,onChange:is,onUpdateCode:_i,ActionBarRender:Ss}),Wu.createElement(ot.ZP,Wo({},ss)))}},96707:function(Ft,rt,z){"use strict";z.d(rt,{h:function(){return a}});var a=(Ce=>(Ce[Ce.NOMATCH=-1]="NOMATCH",Ce[Ce.OK=0]="OK",Ce[Ce.TIMEOUT=2]="TIMEOUT",Ce[Ce.PODFAILURE=3]="PODFAILURE",Ce[Ce.COMPILEFAILURE=4]="COMPILEFAILURE",Ce[Ce.EXECUTEFAILURE=5]="EXECUTEFAILURE",Ce[Ce.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",Ce))(a||{})},88742:function(Ft,rt,z){"use strict";z.d(rt,{H7:function(){return E},MK:function(){return oe},MU:function(){return Ie},X6:function(){return Me},bM:function(){return Ae},fi:function(){return y},fu:function(){return Se},n4:function(){return x},rX:function(){return me},vl:function(){return b},zO:function(){return ze}});var a=z(33170),Ce=Object.defineProperty,ke=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,xe=(ee,te,ne)=>te in ee?Ce(ee,te,{enumerable:!0,configurable:!0,writable:!0,value:ne}):ee[te]=ne,pe=(ee,te)=>{for(var ne in te||(te={}))he.call(te,ne)&&xe(ee,ne,te[ne]);if(ke)for(var ne of ke(te))Fe.call(te,ne)&&xe(ee,ne,te[ne]);return ee};function Se(ee,te){return(0,a.U2)(`myproblems/${ee}.json`,pe({hidePopLogin:!0},te||{}))}function Ae(ee,te){return(0,a.v_)(`myproblems/${ee}/code_submit.json`,te)}function Ie(ee,te){return(0,a.v_)(`myproblems/${ee}/code_debug.json`,te)}function ze(ee,te){return te.language&&(te.language=encodeURIComponent(te.language)),(0,a.U2)(`myproblems/${ee}/submit_records.json`,te)}function Me(ee){return(0,a.U2)("myproblems/record_detail.json",{id:ee})}function me(ee,te){return(0,a.U2)(`myproblems/${ee}/result.json`,{mode:te})}function oe(ee,te){return(0,a.v_)(`myproblems/${ee}/add_notes.json`,te)}function E(ee,te){return(0,a.v_)(`myproblems/${ee}/restore_initial_code.json`,te)}function y(ee){return(0,a.v_)(`myproblems/${ee}/sync_code.json`)}function x(ee,te){return(0,a.v_)(`myproblems/${ee}/update_code.json`,te)}function b(ee,te){return(0,a.v_)(`discusses/${ee}/plus.json`,te)}},38884:function(Ft,rt,z){"use strict";z.d(rt,{Z:function(){return Gc}});var a=z(67294),Ce={flex_box_center:"flex_box_center___bZaL5",flex_space_between:"flex_space_between___oaJSq",flex_box_vertical_center:"flex_box_vertical_center____hsuP",flex_box_center_end:"flex_box_center_end___ZYbPQ",flex_box_column:"flex_box_column___nE_62",wrap:"wrap___ulhwR",left:"left___kyWln",title:"title___jsO1D",total:"total___GEhiU",list:"list___u9dBZ",name:"name___Wxggs",b:"b___Y15YO",r:"r___mKQoe",l:"l___uelFD",tag:"tag___Mpkbg",right:"right___mQ3dU",examName:"examName___Na1r8",t:"t___IgCWK",num:"num___CXI8j",topWarp:"topWarp___Kicpu",head:"head___jx3W8",so:"so___qYW7F",btn:"btn___EMJDz",content:"content___sHGsV",titleWrap:"titleWrap___I__GR",single:"single___K5iv9",analysis:"analysis___NoAuR",text:"text___xESW2",modalColumn:"modalColumn___I_tK_",modalRow:"modalRow___lyw_U",sup:"sup___HSz3Z",popover:"popover___kE8aI",btn_warp:"btn_warp___fOE2S"},ke=z(91773),he=z(83062),Fe=z(85804),xe=z(62844),pe=z(37720),Se=z(2453),Ae=z(28802),Ie=z(96074),ze=z(84567),Me=z(55241),me=z(71230),oe=z(15746),E=z(14845),y=Object.defineProperty,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,te=(wt,_t,gn)=>_t in wt?y(wt,_t,{enumerable:!0,configurable:!0,writable:!0,value:gn}):wt[_t]=gn,ne=(wt,_t)=>{for(var gn in _t||(_t={}))b.call(_t,gn)&&te(wt,gn,_t[gn]);if(x)for(var gn of x(_t))ee.call(_t,gn)&&te(wt,gn,_t[gn]);return wt};const de=wt=>React.createElement("svg",ne({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},wt),React.createElement("title",null,"\u7F16\u7EC4 6"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"#E4E6FD",width:34,height:34,rx:10}),React.createElement("g",{fillRule:"nonzero"},React.createElement("path",{d:"M13.808 11.448a.558.558 0 0 1 0 .788l-1.564 1.565a.558.558 0 1 1-.789-.79l1.564-1.563a.558.558 0 0 1 .79 0Zm9.882 2.462a.558.558 0 0 1-.789 0l-1.564-1.563a.558.558 0 1 1 .789-.789l1.564 1.564a.556.556 0 0 1 0 .788Z",fill:"#6678EB"}),React.createElement("path",{d:"M21.753 21.707a5.937 5.937 0 1 0-8.58.015l-.937.936a.558.558 0 1 0 .789.788l.995-.994a5.91 5.91 0 0 0 3.436 1.095c1.287 0 2.48-.41 3.452-1.106l.992.992a.558.558 0 1 0 .789-.789l-.936-.937Z",fill:"#6678EB"}),React.createElement("path",{d:"m20.858 18.95-3.024-1.745v-2.054a.558.558 0 1 0-1.117 0v2.351c0 .064.011.126.031.184a.551.551 0 0 0 .258.33l3.293 1.9a.557.557 0 0 0 .559-.966Z",fill:"#FFF"}))));var ye="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSIjRTRFNkZEIiB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIvPjxnIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZD0iTTEzLjgwOCAxMS40NDhhLjU1OC41NTggMCAwIDEgMCAuNzg4bC0xLjU2NCAxLjU2NWEuNTU4LjU1OCAwIDEgMS0uNzg5LS43OWwxLjU2NC0xLjU2M2EuNTU4LjU1OCAwIDAgMSAuNzkgMFptOS44ODIgMi40NjJhLjU1OC41NTggMCAwIDEtLjc4OSAwbC0xLjU2NC0xLjU2M2EuNTU4LjU1OCAwIDEgMSAuNzg5LS43ODlsMS41NjQgMS41NjRhLjU1Ni41NTYgMCAwIDEgMCAuNzg4WiIgZmlsbD0iIzY2NzhFQiIvPjxwYXRoIGQ9Ik0yMS43NTMgMjEuNzA3YTUuOTM3IDUuOTM3IDAgMSAwLTguNTguMDE1bC0uOTM3LjkzNmEuNTU4LjU1OCAwIDEgMCAuNzg5Ljc4OGwuOTk1LS45OTRhNS45MSA1LjkxIDAgMCAwIDMuNDM2IDEuMDk1YzEuMjg3IDAgMi40OC0uNDEgMy40NTItMS4xMDZsLjk5Mi45OTJhLjU1OC41NTggMCAxIDAgLjc4OS0uNzg5bC0uOTM2LS45MzdaIiBmaWxsPSIjNjY3OEVCIi8+PHBhdGggZD0ibTIwLjg1OCAxOC45NS0zLjAyNC0xLjc0NXYtMi4wNTRhLjU1OC41NTggMCAxIDAtMS4xMTcgMHYyLjM1MWMwIC4wNjQuMDExLjEyNi4wMzEuMTg0YS41NTEuNTUxIDAgMCAwIC4yNTguMzNsMy4yOTMgMS45YS41NTcuNTU3IDAgMCAwIC41NTktLjk2NloiIGZpbGw9IiNGRkYiLz48L2c+PC9nPjwvc3ZnPg==",fe=z(65226),ve=z(35973),Ne=z(28706),Le=z(33170),Re=Object.defineProperty,He=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,Ue=(wt,_t,gn)=>_t in wt?Re(wt,_t,{enumerable:!0,configurable:!0,writable:!0,value:gn}):wt[_t]=gn,Ye=(wt,_t)=>{for(var gn in _t||(_t={}))We.call(_t,gn)&&Ue(wt,gn,_t[gn]);if(He)for(var gn of He(_t))Ge.call(_t,gn)&&Ue(wt,gn,_t[gn]);return wt};const it=wt=>React.createElement("svg",Ye({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},wt),React.createElement("title",null,"\u7F16\u7EC4 12"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{width:34,height:34,rx:10,fill:"#EAF3F4"}),React.createElement("path",{d:"M25.905 15.37a.775.775 0 0 0-.626-.529l-4.814-.7-2.152-4.362a.776.776 0 0 0-1.392 0l-2.153 4.363-4.814.699a.775.775 0 0 0-.43 1.323l3.484 3.396-.823 4.794a.777.777 0 0 0 1.126.818l4.306-2.264 4.305 2.264a.778.778 0 0 0 .817-.059.777.777 0 0 0 .31-.759l-.823-4.794 3.483-3.396a.777.777 0 0 0 .196-.795Z",fill:"#21C0A6",fillRule:"nonzero"})));var lt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIgZmlsbD0iI0VBRjNGNCIvPjxwYXRoIGQ9Ik0yNS45MDUgMTUuMzdhLjc3NS43NzUgMCAwIDAtLjYyNi0uNTI5bC00LjgxNC0uNy0yLjE1Mi00LjM2MmEuNzc2Ljc3NiAwIDAgMC0xLjM5MiAwbC0yLjE1MyA0LjM2My00LjgxNC42OTlhLjc3NS43NzUgMCAwIDAtLjQzIDEuMzIzbDMuNDg0IDMuMzk2LS44MjMgNC43OTRhLjc3Ny43NzcgMCAwIDAgMS4xMjYuODE4bDQuMzA2LTIuMjY0IDQuMzA1IDIuMjY0YS43NzguNzc4IDAgMCAwIC44MTctLjA1OS43NzcuNzc3IDAgMCAwIC4zMS0uNzU5bC0uODIzLTQuNzk0IDMuNDgzLTMuMzk2YS43NzcuNzc3IDAgMCAwIC4xOTYtLjc5NVoiIGZpbGw9IiMyMUMwQTYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvZz48L3N2Zz4=",Bt=Object.defineProperty,ct=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,yt=(wt,_t,gn)=>_t in wt?Bt(wt,_t,{enumerable:!0,configurable:!0,writable:!0,value:gn}):wt[_t]=gn,ht=(wt,_t)=>{for(var gn in _t||(_t={}))nt.call(_t,gn)&&yt(wt,gn,_t[gn]);if(ct)for(var gn of ct(_t))Ze.call(_t,gn)&&yt(wt,gn,_t[gn]);return wt};const Je=wt=>React.createElement("svg",ht({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},wt),React.createElement("title",null,"\u9898\u76EE"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"#E7F3FF",width:34,height:34,rx:10}),React.createElement("g",{fill:"#4C6FFF",fillRule:"nonzero"},React.createElement("path",{d:"m23.719 13.325-4.098-3.94c-.097-.13-.225-.162-.355-.162-.129 0-.258.064-.387.161l-7.55 7.753c-.065.065-.098.162-.13.227l-1.032 5.427c-.033.194.032.323.16.484.13.13.227.162.389.162h.096l4.776-1.099c.097-.032.194-.064.258-.161l7.841-8.108c.194-.162.194-.517.033-.744h-.001Zm-8.1 8.044a.534.534 0 0 1-.386.162.56.56 0 0 1-.388-.162l-3-2.81c-.226-.194-.226-.517-.033-.743.194-.227.517-.227.743-.033l3 2.811c.259.226.291.55.065.776ZM17 22.92h6.844v1.055H17z"}))));var ot="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSIjRTdGM0ZGIiB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIvPjxnIGZpbGw9IiM0QzZGRkYiIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZD0ibTIzLjcxOSAxMy4zMjUtNC4wOTgtMy45NGMtLjA5Ny0uMTMtLjIyNS0uMTYyLS4zNTUtLjE2Mi0uMTI5IDAtLjI1OC4wNjQtLjM4Ny4xNjFsLTcuNTUgNy43NTNjLS4wNjUuMDY1LS4wOTguMTYyLS4xMy4yMjdsLTEuMDMyIDUuNDI3Yy0uMDMzLjE5NC4wMzIuMzIzLjE2LjQ4NC4xMy4xMy4yMjcuMTYyLjM4OS4xNjJoLjA5Nmw0Ljc3Ni0xLjA5OWMuMDk3LS4wMzIuMTk0LS4wNjQuMjU4LS4xNjFsNy44NDEtOC4xMDhjLjE5NC0uMTYyLjE5NC0uNTE3LjAzMy0uNzQ0aC0uMDAxWm0tOC4xIDguMDQ0YS41MzQuNTM0IDAgMCAxLS4zODYuMTYyLjU2LjU2IDAgMCAxLS4zODgtLjE2MmwtMy0yLjgxYy0uMjI2LS4xOTQtLjIyNi0uNTE3LS4wMzMtLjc0My4xOTQtLjIyNy41MTctLjIyNy43NDMtLjAzM2wzIDIuODExYy4yNTkuMjI2LjI5MS41NS4wNjUuNzc2Wk0xNyAyMi45Mmg2Ljg0NHYxLjA1NUgxN3oiLz48L2c+PC9nPjwvc3ZnPg==",Ct=z(14375),kt=z(35567),Mt=z(35566),st=z(73646),ut={wrap:"wrap___OIoOI",modal:"modal___Z3hfU",titleWrap:"titleWrap___aK3oG",required:"required___NHoO7",title:"title___uxb1R",colorGray:"colorGray___O8YPg",choiceWrap:"choiceWrap___t51sb",answer:"answer___vsBnh",activeAnswer:"activeAnswer___AJN4p",deleteIcon:"deleteIcon___WvOJZ",addIcon:"addIcon___UyeIs",editorWrap:"editorWrap___uqcFU",htmlWrap:"htmlWrap___GcBNL",radio:"radio___e8qQ5",color333:"color333___PLzVK",color999:"color999___v3EY0",fold:"fold___OfvPe",head:"head___EejYX",collapseWrapper:"collapseWrapper___sQyVD",panelHeader:"panelHeader___Ivicf",open:"open___aEOQE",close:"close___z4P5H",inputBorder:"inputBorder___ix67O",keywordTag:"keywordTag___iGx08",scoreByBlankRadio:"scoreByBlankRadio___Kwu7q"},un=z(67294),Pn=Object.defineProperty,Rn=Object.defineProperties,bt=Object.getOwnPropertyDescriptors,An=Object.getOwnPropertySymbols,Nn=Object.prototype.hasOwnProperty,Qt=Object.prototype.propertyIsEnumerable,zt=(wt,_t,gn)=>_t in wt?Pn(wt,_t,{enumerable:!0,configurable:!0,writable:!0,value:gn}):wt[_t]=gn,jt=(wt,_t)=>{for(var gn in _t||(_t={}))Nn.call(_t,gn)&&zt(wt,gn,_t[gn]);if(An)for(var gn of An(_t))Qt.call(_t,gn)&&zt(wt,gn,_t[gn]);return wt},sn=(wt,_t)=>Rn(wt,bt(_t)),vt=(wt,_t)=>{var gn={};for(var Yn in wt)Nn.call(wt,Yn)&&_t.indexOf(Yn)<0&&(gn[Yn]=wt[Yn]);if(wt!=null&&An)for(var Yn of An(wt))_t.indexOf(Yn)<0&&Qt.call(wt,Yn)&&(gn[Yn]=wt[Yn]);return gn};const Tt=null,qt=(wt,_t)=>{var gn=wt,{globalSetting:Yn,loading:Ur,dispatch:Or,isEdit:ql,editData:zr}=gn,su=vt(gn,["globalSetting","loading","dispatch","isEdit","editData"]);const[yu,xu]=(0,a.useState)(""),[Al,Yl]=(0,a.useState)(""),[Ol,Mu]=(0,a.useState)([]),[Lr,Tr]=(0,a.useState)(""),[Ml,hl]=(0,a.useState)(),[co,Tu]=(0,a.useState)(!1),[hr,Yr]=(0,a.useState)({}),[ar,Mr]=(0,a.useState)([]);(0,a.useEffect)(()=>{!zr||!ql||(xu(zr==null?void 0:zr.name),Yl(zr==null?void 0:zr.analysis),hl(zr==null?void 0:zr.is_ordered),Yr(zr),Tu(!0))},[zr]),(0,a.useEffect)(()=>{if(!co)return;const wl=zr==null?void 0:zr.standard_answer.map(Yi=>Yi==null?void 0:Yi.answer_text);Mu(wl);const Bi=zr==null?void 0:zr.standard_answer.map(Yi=>Yi==null?void 0:Yi.score);Mr(Bi),Tu(!1)},[co]),(0,a.useImperativeHandle)(_t,()=>({onSave:zo,Clear:Jo}));const zo=()=>{let wl=[],Bi=!1;return yu?(Ol.forEach((Yi,Vo)=>{wl.push({position:Vo+1,answer_text:[],score:ar[Vo]}),Yi==null||Yi.forEach((bs,zc)=>{wl[Vo].answer_text.push(bs),(!bs||!(0,Ne.eR)(bs,1e4))&&(Tr(`${Vo}-${zc}`),Se.ZP.info(bs?"\u7B54\u6848\u4E0D\u80FD\u8D85\u8FC710000\u5B57\u7B26":"\u7B54\u6848\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"),Bi=!0)})}),Bi?!1:(wl==null?void 0:wl.length)>20?(Se.ZP.warning("\u586B\u7A7A\u9898\u6807\u51C6\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A/\u4E0D\u80FD\u8D85\u8FC720\u4E2A\uFF01"),!1):{name:yu,analysis:Al,standard_answers:wl,is_ordered:Ml,downcase:hr==null?void 0:hr.downcase,no_space:hr==null?void 0:hr.no_space,use_blank_score:hr==null?void 0:hr.use_blank_score}):(Se.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1)},Jo=()=>{xu(""),Yl(""),Mu([]),hl(!1)},wi=(wl,Bi,Yi)=>{const Vo=Ol.slice();if(Bi&&Vo.splice(wl,Bi),Yi)for(let bs=0;bs{Tr("");let Vo=Ol.slice();Vo[wl][Bi]=Yi,Mu(Vo)},Ul=wl=>{let Bi=Ol.slice();Bi[wl]=[...Bi[wl],""],Mu(Bi)},Xs=(wl,Bi)=>{let Yi=Ol.slice();if(!Yi[wl][Bi]){Yi[wl]=Yi[wl].filter((Vo,bs)=>bs!==Bi),Mu(Yi);return}xe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:ut.modal,onOk:()=>{Yi[wl]=Yi[wl].filter((Vo,bs)=>bs!==Bi),Mu(Yi)}})},Js=wl=>{xe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:ut.modal,onOk:()=>{let Bi=Ol.slice();Bi=Ol.filter((Yi,Vo)=>wl!==Vo),Mu(Bi)}})};return un.createElement("section",{className:ut.wrap},un.createElement("p",{className:ut.titleWrap},un.createElement("span",{className:ut.required},"*"),un.createElement("span",{className:ut.title},"\u9898\u5E72\uFF1A")),un.createElement("div",null,un.createElement(Mt.Z,{id:"completion-question-tittle",placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE",height:155,defaultValue:yu,onChange:wl=>xu(wl),showNullButton:!0,onPlaceholderChange:wi})),un.createElement("div",{className:"mt20"},Ol.map((wl,Bi)=>un.createElement("div",{style:{display:"flex"}},un.createElement("div",{style:{flex:1}},un.createElement(st.Z,{key:Bi,answers:wl,index:Bi,flex:1,is_md:!0,activeOptionErrorIndex:Lr,onAnswerChange:ys,addChildAnswer:Ul,deleteChildAnswer:Xs,deleteChildAnswermain:Js})),hr.use_blank_score&&un.createElement("div",{style:{display:"flex",alignItems:"center",width:"165px"}},un.createElement("span",{style:{color:"red",margin:"auto 5px auto 10px"}},"*"),"\u5206\u503C\uFF1A",un.createElement(pe.Z,{style:{width:"100px"},size:"large",defaultValue:ar[Bi],onBlur:Yi=>{ar[Bi]=Yi.target.value,Mr([...ar])}}))))),un.createElement("div",null,un.createElement(ze.default,{className:`${ut.color333} font14 mt20`,checked:hr.use_blank_score,onChange:wl=>Yr(sn(jt({},hr),{use_blank_score:wl.target.checked}))},"\u5224\u5206\u65F6\u6309\u7A7A\u7ED9\u5206"),un.createElement("span",{style:{color:"#999999",fontSize:"12px"}},"\uFF08\u9009\u4E2D\uFF0C\u5219\u9700\u8981\u8BBE\u7F6E\u6BCF\u7A7A\u5206\u503C\uFF0C\u5B66\u751F\u7B54\u6848\u5224\u5206\u65F6\u6309\u7A7A\u7ED9\u5206\uFF09")),un.createElement("div",null,un.createElement(ze.default,{className:`${ut.color333} font14 mt20`,checked:hr.downcase,onChange:wl=>Yr(sn(jt({},hr),{downcase:wl.target.checked}))},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),un.createElement("div",null,un.createElement(ze.default,{className:`${ut.color333} font14 mt20`,checked:hr.no_space,onChange:wl=>Yr(sn(jt({},hr),{no_space:wl.target.checked}))},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),un.createElement("div",{className:"mt20"},(Ol==null?void 0:Ol.length)>1&&un.createElement("span",null,un.createElement(ze.default,{checked:Ml,onChange:wl=>hl(wl.target.checked),className:`${ut.color333} font14`},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),un.createElement("span",{className:`${ut.color999} font12`},"\uFF08\u9009\u4E2D\uFF0C\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u987A\u5E8F\u5FC5\u987B\u4E0E\u53C2\u8003\u7B54\u6848\u4E00\u81F4\uFF09"))),un.createElement("p",{className:ut.titleWrap},un.createElement("span",{className:ut.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),un.createElement(kt.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Al,onChange:wl=>Yl(wl)}))};var St=(0,ve.connect)(({loading:wt,globalSetting:_t})=>({globalSetting:_t,loading:wt.effects}),null,null,{forwardRef:!0})((0,a.forwardRef)(qt)),Ke=z(98813),ln=Object.getOwnPropertySymbols,Un=Object.prototype.hasOwnProperty,Ca=Object.prototype.propertyIsEnumerable,Cu=(wt,_t)=>{var gn={};for(var Yn in wt)Un.call(wt,Yn)&&_t.indexOf(Yn)<0&&(gn[Yn]=wt[Yn]);if(wt!=null&&ln)for(var Yn of ln(wt))_t.indexOf(Yn)<0&&Ca.call(wt,Yn)&&(gn[Yn]=wt[Yn]);return gn};const Da=null,nr=(wt,_t)=>{var gn=wt,{globalSetting:Yn,loading:Ur,editData:Or,dispatch:ql,onRef:zr=()=>{},isEdit:su}=gn,yu=Cu(gn,["globalSetting","loading","editData","dispatch","onRef","isEdit"]);const[xu,Al]=(0,a.useState)(),[Yl,Ol]=(0,a.useState)(""),[Mu,Lr]=(0,a.useState)("");(0,a.useEffect)(()=>{if(!Or||!su)return;Ol(Or==null?void 0:Or.name),Lr(Or==null?void 0:Or.analysis);const hl=Or==null?void 0:Or.choices.find(co=>co.is_answer);Al(hl.choice_text==="\u6B63\u786E"?"0":"1")},[Or]),(0,a.useImperativeHandle)(_t,()=>({onSave:Tr,Clear:Ml}));const Tr=()=>Yl?xu?{name:Yl,choices:[{choice_text:"\u6B63\u786E",is_answer:xu==="0"?1:0},{choice_text:"\u9519\u8BEF",is_answer:xu==="1"?1:0}],analysis:Mu}:(Se.ZP.info("\u8BF7\u5148\u70B9\u51FB\u9009\u62E9\u672C\u9009\u62E9\u9898\u7684\u6B63\u786E\u9009\u9879"),!1):(Se.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1),Ml=()=>{Ol(""),Lr(""),Al("")};return a.createElement("section",{className:ut.wrap},a.createElement("p",{className:ut.titleWrap},a.createElement("span",{className:ut.required},"*"),a.createElement("span",{className:ut.title},"\u9898\u5E72\uFF1A")),a.createElement(kt.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Yl,onChange:hl=>Ol(hl)}),a.createElement("p",{className:ut.titleWrap},a.createElement("span",{className:ut.required},"*"),a.createElement("span",{className:ut.title},"\u7B54\u6848\u9009\u9879\uFF1A",a.createElement("span",{className:ut.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),a.createElement(Ke.ZP.Group,{buttonStyle:"solid",value:xu,onChange:hl=>Al(hl.target.value)},a.createElement(Ke.ZP.Button,{value:"0",className:`${ut.radio} mr40`},"\u6B63\u786E"),a.createElement(Ke.ZP.Button,{value:"1",className:ut.radio},"\u9519\u8BEF")),a.createElement("p",{className:ut.titleWrap},a.createElement("span",{className:ut.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),a.createElement(kt.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Mu,onChange:hl=>Lr(hl)}))};var cu=(0,ve.connect)(({loading:wt,globalSetting:_t})=>({globalSetting:_t,loading:wt.effects}),null,null,{forwardRef:!0})((0,a.forwardRef)(nr)),or=Object.getOwnPropertySymbols,Aa=Object.prototype.hasOwnProperty,Zt=Object.prototype.propertyIsEnumerable,xn=(wt,_t)=>{var gn={};for(var Yn in wt)Aa.call(wt,Yn)&&_t.indexOf(Yn)<0&&(gn[Yn]=wt[Yn]);if(wt!=null&&or)for(var Yn of or(wt))_t.indexOf(Yn)<0&&Zt.call(wt,Yn)&&(gn[Yn]=wt[Yn]);return gn};const vl=null,Er=(wt,_t)=>{var gn=wt,{globalSetting:Yn,loading:Ur,editData:Or,dispatch:ql,onRef:zr=()=>{},isEdit:su}=gn,yu=xn(gn,["globalSetting","loading","editData","dispatch","onRef","isEdit"]);const[xu,Al]=(0,a.useState)([]);(0,a.useEffect)(()=>{var Lr;if(!Or||!su)return;const Tr=(Lr=Or==null?void 0:Or.shixun)==null?void 0:Lr.challenges.map(Ml=>({id:Ml==null?void 0:Ml.id,score:Ml.score}));Al(Tr)},[Or]),(0,a.useImperativeHandle)(_t,()=>({onSave:Yl,Clear:Ol}));const Yl=()=>({challenges:[...xu]}),Ol=()=>{Al([])};console.log("editData--",Or);const Mu=Lr=>{var Tr,Ml;return a.createElement("div",null,(Ml=(Tr=Lr==null?void 0:Lr.shixun)==null?void 0:Tr.challenges)==null?void 0:Ml.map((hl,co)=>{var Tu;return a.createElement("div",{className:"c-grey-666 font14 ml25",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"15px"}},a.createElement("div",null,a.createElement("span",{className:"mr5"},"\u7B2C",co+1,"\u5173"),a.createElement(he.Z,{key:co,title:hl==null?void 0:hl.challenge_name},a.createElement("span",null,(0,Ne.Pq)(hl==null?void 0:hl.challenge_name,44)))),a.createElement("p",{style:{marginBottom:0}},a.createElement("span",{className:ut.required},"*"),a.createElement("span",{className:ut.title},"\u5206\u503C\uFF1A"),a.createElement(pe.Z,{precision:1,min:1,max:100,className:ut.baseFormItem,style:{width:176},value:(Tu=xu.find(hr=>hr.id===hl.id))==null?void 0:Tu.score,onChange:hr=>{xu.find(Yr=>Yr.id===hl.id).score=hr,Al([...xu])}})))}),a.createElement("div",{style:{clear:"both"}}))};return a.createElement("section",{className:ut.wrap},a.createElement(fe.Z,{style:{paddingRight:10},className:ut.titleHtml,value:`${Or==null?void 0:Or.position}\u3001${Or==null?void 0:Or.name}`}),a.createElement("p",{style:{marginBottom:"10px",marginTop:"25px"}},a.createElement("span",{className:ut.required},"*"),a.createElement("span",{className:ut.title},"\u5173\u5361")),Mu(Or))};var er=(0,ve.connect)(({loading:wt,globalSetting:_t})=>({globalSetting:_t,loading:wt.effects}),null,null,{forwardRef:!0})((0,a.forwardRef)(Er)),Pa=Object.getOwnPropertySymbols,Za=Object.prototype.hasOwnProperty,qn=Object.prototype.propertyIsEnumerable,Vn=(wt,_t)=>{var gn={};for(var Yn in wt)Za.call(wt,Yn)&&_t.indexOf(Yn)<0&&(gn[Yn]=wt[Yn]);if(wt!=null&&Pa)for(var Yn of Pa(wt))_t.indexOf(Yn)<0&&qn.call(wt,Yn)&&(gn[Yn]=wt[Yn]);return gn};const Qa=["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"],gu=(wt,_t)=>{var gn=wt,{editData:Yn,globalSetting:Ur,loading:Or,dispatch:ql,onRef:zr=()=>{},isEdit:su}=gn,yu=Vn(gn,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[xu,Al]=(0,a.useState)([]),[Yl,Ol]=(0,a.useState)(),[Mu,Lr]=(0,a.useState)([]),[Tr,Ml]=(0,a.useState)(""),[hl,co]=(0,a.useState)("");(0,a.useEffect)(()=>{Al(["","","",""])},[]),(0,a.useEffect)(()=>{if(!Yn||!su)return;Ml(Yn==null?void 0:Yn.name),co(Yn==null?void 0:Yn.analysis),Al(Yn==null?void 0:Yn.choices.map(ar=>ar.choice_text));const Yr=[];Yn==null||Yn.choices.map((ar,Mr)=>{ar.is_answer&&Yr.push(Mr)}),Lr(Yr)},[Yn]),(0,a.useImperativeHandle)(_t,()=>({onSave:Tu,Clear:hr}));const Tu=()=>{if(!Tr)return Se.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;const Yr=xu.findIndex(Mr=>!Mr);if(Yr>-1)return Se.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${Qa[Yr]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!Mu.length)return Se.ZP.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;if(Mu.length<2)return Se.ZP.info("\u591A\u9009\u9898\u6700\u5C0F\u6B63\u786E\u9009\u9879\u4E3A2\u4E2A"),!1;const ar=xu.map((Mr,zo)=>({choice_text:Mr,is_answer:Mu.includes(zo)?1:0}));return{name:Tr,choices:ar,analysis:hl}},hr=()=>{Al(["","","",""]),Ml(""),co(""),Lr("")};return a.createElement("section",{className:ut.wrap},a.createElement("p",{className:ut.titleWrap},a.createElement("span",{className:ut.required},"*"),a.createElement("span",{className:ut.title},"\u9898\u5E72\uFF1A")),a.createElement(kt.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Tr,onChange:Yr=>Ml(Yr)}),a.createElement("p",{className:ut.titleWrap},a.createElement("span",{className:ut.required},"*"),a.createElement("span",{className:ut.title},"\u7B54\u6848\u9009\u9879\uFF1A",a.createElement("span",{className:ut.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),xu.map((Yr,ar)=>a.createElement("div",{className:ut.choiceWrap,key:ar},a.createElement(he.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},a.createElement("div",{className:`${ut.answer} ${Mu.includes(ar)?ut.activeAnswer:""}`,onClick:()=>{Mu.includes(ar)?Lr(Mu.filter(Mr=>Mr!==ar)):Lr([...Mu,ar])}},Qa[ar])),a.createElement("div",{className:ut.editorWrap},Yl===ar?a.createElement(kt.Z,{id:`single-question-option-${ar}`,watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:Yr,onChange:Mr=>{xu[ar]=Mr,Al(xu)}}):a.createElement("div",{className:ut.htmlWrap,onClick:()=>Ol(ar)},a.createElement(fe.Z,{value:Yr}))),ar>1&&a.createElement(he.Z,{title:"\u5220\u9664"},a.createElement("i",{className:`${ut.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>{Al(xu.filter((Mr,zo)=>zo!==ar)),Mu.includes(ar)?Lr(Mu.filter(Mr=>Mr!==ar)):Lr([...Mu,ar])}})),ar<7&&ar===xu.length-1&&a.createElement(he.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},a.createElement("i",{className:`${ut.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>Al([...xu,""])})))),a.createElement("p",{className:ut.titleWrap},a.createElement("span",{className:ut.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),a.createElement(kt.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:hl,onChange:Yr=>co(Yr)}))};var _u=(0,ve.connect)(({loading:wt,globalSetting:_t})=>({globalSetting:_t,loading:wt.effects}),null,null,{forwardRef:!0})((0,a.forwardRef)(gu)),ir=Object.getOwnPropertySymbols,ul=Object.prototype.hasOwnProperty,On=Object.prototype.propertyIsEnumerable,Jt=(wt,_t)=>{var gn={};for(var Yn in wt)ul.call(wt,Yn)&&_t.indexOf(Yn)<0&&(gn[Yn]=wt[Yn]);if(wt!=null&&ir)for(var Yn of ir(wt))_t.indexOf(Yn)<0&&On.call(wt,Yn)&&(gn[Yn]=wt[Yn]);return gn};const _n=["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"],Gn=(wt,_t)=>{var gn=wt,{editData:Yn,globalSetting:Ur,loading:Or,dispatch:ql,onRef:zr=()=>{},isEdit:su}=gn,yu=Jt(gn,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[xu,Al]=(0,a.useState)([]),[Yl,Ol]=(0,a.useState)(),[Mu,Lr]=(0,a.useState)(),[Tr,Ml]=(0,a.useState)(""),[hl,co]=(0,a.useState)("");(0,a.useEffect)(()=>{Al(["","","",""])},[]),(0,a.useEffect)(()=>{if(!Yn||!su)return;const Yr=[],ar=[];Yn==null||Yn.choices.forEach((Mr,zo)=>{Yr.push(Mr.choice_text),Mr.is_answer&&ar.push(zo)}),Ml(Yn==null?void 0:Yn.name),co(Yn==null?void 0:Yn.analysis),Al(Yr),Lr(ar)},[Yn]),(0,a.useImperativeHandle)(_t,()=>({onSave:Tu,Clear:hr}));const Tu=()=>{if(!Tr)return Se.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;const Yr=xu.findIndex(Mr=>!Mr);if(Yr>-1)return Se.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${_n[Yr]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!Array.isArray(Mu))return Se.ZP.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;const ar=xu.map((Mr,zo)=>({choice_text:Mr,is_answer:Mu.includes(zo)?1:0}));return{name:Tr,choices:ar,analysis:hl}},hr=()=>{Al(["","","",""]),Ml(""),co(""),Lr("")};return a.createElement("section",{className:ut.wrap},a.createElement("p",{className:ut.titleWrap},a.createElement("span",{className:ut.required},"*"),a.createElement("span",{className:ut.title},"\u9898\u5E72\uFF1A")),a.createElement(kt.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Tr,onChange:Yr=>Ml(Yr)}),a.createElement("p",{className:ut.titleWrap},a.createElement("span",{className:ut.required},"*"),a.createElement("span",{className:ut.title},"\u7B54\u6848\u9009\u9879\uFF1A",a.createElement("span",{className:ut.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),xu.map((Yr,ar)=>a.createElement("div",{className:ut.choiceWrap,key:ar},a.createElement(he.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},a.createElement("div",{className:`${ut.answer} ${Mu!=null&&Mu.includes(ar)?ut.activeAnswer:""}`,onClick:()=>Lr([ar])},_n[ar])),a.createElement("div",{className:ut.editorWrap},Yl===ar?a.createElement(kt.Z,{id:`single-question-option-${ar}`,watch:!0,height:155,isFocus:!0,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:Yr,onChange:Mr=>{xu[ar]=Mr,Al(xu)}}):a.createElement("div",{className:ut.htmlWrap,onClick:()=>Ol(ar)},a.createElement(fe.Z,{value:Yr}))),ar>1&&a.createElement(he.Z,{title:"\u5220\u9664"},a.createElement("i",{className:`${ut.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>{Al(xu.filter((Mr,zo)=>zo!==ar)),ar===Mu&&Lr(null)}})),ar<7&&ar===xu.length-1&&a.createElement(he.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},a.createElement("i",{className:`${ut.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>Al([...xu,""])})))),a.createElement("p",{className:ut.titleWrap},a.createElement("span",{className:ut.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),a.createElement(kt.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:hl,onChange:Yr=>co(Yr)}))};var ua=(0,ve.connect)(({loading:wt,globalSetting:_t})=>({globalSetting:_t,loading:wt.effects}),null,null,{forwardRef:!0})((0,a.forwardRef)(Gn)),oa=z(66309),Ta=z(59637),hu=z(17663),ft=z(67294),re=Object.defineProperty,ge=Object.defineProperties,De=Object.getOwnPropertyDescriptors,Xe=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,Ot=Object.prototype.propertyIsEnumerable,Lt=(wt,_t,gn)=>_t in wt?re(wt,_t,{enumerable:!0,configurable:!0,writable:!0,value:gn}):wt[_t]=gn,Wn=(wt,_t)=>{for(var gn in _t||(_t={}))tt.call(_t,gn)&&Lt(wt,gn,_t[gn]);if(Xe)for(var gn of Xe(_t))Ot.call(_t,gn)&&Lt(wt,gn,_t[gn]);return wt},ra=(wt,_t)=>ge(wt,De(_t)),xa=(wt,_t)=>{var gn={};for(var Yn in wt)tt.call(wt,Yn)&&_t.indexOf(Yn)<0&&(gn[Yn]=wt[Yn]);if(wt!=null&&Xe)for(var Yn of Xe(wt))_t.indexOf(Yn)<0&&Ot.call(wt,Yn)&&(gn[Yn]=wt[Yn]);return gn},Kn=(wt,_t,gn)=>new Promise((Yn,Ur)=>{var Or=su=>{try{zr(gn.next(su))}catch(yu){Ur(yu)}},ql=su=>{try{zr(gn.throw(su))}catch(yu){Ur(yu)}},zr=su=>su.done?Yn(su.value):Promise.resolve(su.value).then(Or,ql);zr((gn=gn.apply(wt,_t)).next())});const Du=wt=>{if(!wt)return!1;if(/^s*$/.test(wt)||wt.trim()===""){Se.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let _t=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return wt==="|"?(Se.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},la=({value:wt=[],onClose:_t})=>ft.createElement(oa.default,{closable:!0,onClose:_t,className:ut.keywordTag},ft.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},wt.join(" \u6216 "))),lu=(wt,_t)=>{var gn=wt,{editData:Yn,globalSetting:Ur,loading:Or,dispatch:ql,onRef:zr=()=>{},isEdit:su}=gn,yu=xa(gn,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[xu,Al]=(0,a.useState)(""),[Yl,Ol]=(0,a.useState)(""),[Mu,Lr]=(0,a.useState)(""),[Tr,Ml]=(0,a.useState)(""),[hl]=ke.default.useForm(),co=ke.default.useWatch("use_keywords",hl);(0,a.useEffect)(()=>{var ar;!Yn||!su||(Al(Yn==null?void 0:Yn.name),Ol(Yn==null?void 0:Yn.analysis),Lr((ar=Yn==null?void 0:Yn.answer_texts)==null?void 0:ar[0]),hl.setFieldsValue(Wn({},Yn)))},[Yn]),(0,a.useImperativeHandle)(_t,()=>({onSave:Tu,Clear:hr}));const Tu=()=>Kn(void 0,null,function*(){if(!xu)return Se.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;try{yield hl.validateFields()}catch(Mr){Se.ZP.error(Mr.errorFields[0].errors[0]);return}const ar=hl.getFieldsValue();return console.log(ar,"values"),Wn({name:xu,answer_texts:[Mu],analysis:Yl},ar)}),hr=()=>{Al(""),Ol(""),Lr(""),hl.resetFields()},Yr=Yn==null?void 0:Yn.score;return ft.createElement("section",{className:ut.wrap},ft.createElement("p",{className:ut.titleWrap},ft.createElement("span",{className:ut.required},"*"),ft.createElement("span",{className:ut.title},"\u9898\u5E72\uFF1A")),ft.createElement(kt.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:xu,onChange:ar=>Al(ar)}),ft.createElement("p",{className:ut.titleWrap},ft.createElement("span",{className:ut.title},"\u53C2\u8003\u7B54\u6848\uFF1A")),ft.createElement(kt.Z,{id:"single-question-reference-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u53C2\u8003\u7B54\u6848",defaultValue:Mu,onChange:ar=>Lr(ar)}),ft.createElement("p",{className:ut.titleWrap},ft.createElement("span",{className:ut.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),ft.createElement(kt.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Yl,onChange:ar=>Ol(ar)}),ft.createElement(ke.default,{form:hl,size:"large",onFinishFailed:ar=>Kn(void 0,null,function*(){var Mr,zo;Se.ZP.error(ar.errorFields[0].errors[0]),hl.scrollToField((zo=(Mr=ar==null?void 0:ar.errorFields)==null?void 0:Mr[0])==null?void 0:zo.name,{behavior:"smooth",block:"center"})})},ft.createElement(me.Z,{align:"middle",className:"mb30 mt20"},ft.createElement(ke.default.Item,{noStyle:!0,name:"use_keywords",valuePropName:"checked"},ft.createElement(Ta.Z,null)),ft.createElement(oe.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),ft.createElement(oe.Z,null,ft.createElement(he.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},ft.createElement(hu.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),co&&ft.createElement(ke.default.List,{name:"keywords",rules:[{validator(ar,Mr){return Mr!=null&&Mr.length?(Mr==null?void 0:Mr.reduce((Jo,wi)=>Jo+wi.score,0))>parseFloat(Yr)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD"))}}]},(ar,{add:Mr,remove:zo})=>ft.createElement(ft.Fragment,null,ft.createElement("div",{className:"mb10"},"\u5173\u952E\u8BCD"),ft.createElement(me.Z,{align:"middle",className:"font14 mb30"},ft.createElement(oe.Z,{flex:1},ft.createElement(Ae.default,{value:Tr,onChange:Jo=>{Ml(Jo.target.value)},maxLength:50,allowClear:!0,onPressEnter:Jo=>{var wi,ys,Ul,Xs;const Js=`${(wi=Jo.target)==null?void 0:wi.value}`,wl=(Ul=(ys=Js==null?void 0:Js.split("|"))==null?void 0:ys.filter(Vo=>!!Vo))==null?void 0:Ul.map(Vo=>Vo==null?void 0:Vo.trim()),Bi=hl.getFieldValue("keywords"),Yi=((Xs=Bi==null?void 0:Bi.map(Vo=>Vo==null?void 0:Vo.keyword))==null?void 0:Xs.flat())||[];for(const Vo of wl)if(Yi.includes(Vo)){Se.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Du(Js)&&(Mr({keyword:wl,score:1}),Ml(""))},className:ut.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),ft.createElement(oe.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),ar.map(Jo=>{var wi=Jo,{key:ys,name:Ul}=wi,Xs=xa(wi,["key","name"]);return ft.createElement(me.Z,{key:ys,style:{marginRight:148}},ft.createElement(oe.Z,{flex:1},ft.createElement(me.Z,{align:"middle",justify:"space-between"},ft.createElement(ke.default.Item,ra(Wn({},Xs),{name:[Ul,"keyword"]}),ft.createElement(la,{onClose:()=>zo(Ul)})),ft.createElement(ke.default.Item,ra(Wn({},Xs),{name:[Ul,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),ft.createElement(pe.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))})))))};var Ga=(0,ve.connect)(({loading:wt,globalSetting:_t})=>({globalSetting:_t,loading:wt.effects}),null,null,{forwardRef:!0})((0,a.forwardRef)(lu)),Ea=z(69234),ga={wrap:"wrap___Cc0gS",deleteIcon:"deleteIcon___ebwMv",keywordTag:"keywordTag___lUfL5",questionTitleEditorWrap:"questionTitleEditorWrap___u9UgK",choiceWrap:"choiceWrap___VHsr3",choiceIndex:"choiceIndex___rsj9r",judgementIndex:"judgementIndex___fMm6E",setAnswerBtn:"setAnswerBtn___krVC9",activeAnswer:"activeAnswer___WiYo2",activeJudgementAnswer:"activeJudgementAnswer___M6iww",actionWrapper:"actionWrapper___oKI8_",addIcon:"addIcon___eMbGP",inputBorder:"inputBorder___ob_6x",placeholder:"placeholder___Vkwr4",blankWrapper:"blankWrapper____MZQ5",blankInput:"blankInput___ephwY",blankInputNumberWrapper:"blankInputNumberWrapper___C1UJS",addBtn:"addBtn___qRBpJ",blankIndex:"blankIndex___QsKgf",baseInputWrapper:"baseInputWrapper___juqCB",collapseWrapper:"collapseWrapper___kAXJ0",panelHeader:"panelHeader___hLTSe",open:"open___wWDjf",close:"close___XPTJ0",hide:"hide___VytUy"},jn=z(40043),Hu=z(24018),Hr=Object.defineProperty,Wa=Object.defineProperties,rl=Object.getOwnPropertyDescriptors,sr=Object.getOwnPropertySymbols,uu=Object.prototype.hasOwnProperty,ya=Object.prototype.propertyIsEnumerable,Ua=(wt,_t,gn)=>_t in wt?Hr(wt,_t,{enumerable:!0,configurable:!0,writable:!0,value:gn}):wt[_t]=gn,zi=(wt,_t)=>{for(var gn in _t||(_t={}))uu.call(_t,gn)&&Ua(wt,gn,_t[gn]);if(sr)for(var gn of sr(_t))ya.call(_t,gn)&&Ua(wt,gn,_t[gn]);return wt},Ki=(wt,_t)=>Wa(wt,rl(_t)),Yo=(wt,_t)=>{var gn={};for(var Yn in wt)uu.call(wt,Yn)&&_t.indexOf(Yn)<0&&(gn[Yn]=wt[Yn]);if(wt!=null&&sr)for(var Yn of sr(wt))_t.indexOf(Yn)<0&&ya.call(wt,Yn)&&(gn[Yn]=wt[Yn]);return gn};const fo=wt=>{var _t=wt,{value:gn,onChange:Yn,scrollId:Ur}=_t,Or=Yo(_t,["value","onChange","scrollId"]);return a.createElement("div",{id:Ur||""},a.createElement(kt.Z,Ki(zi({},Or),{defaultValue:gn,onChange:(ql,zr)=>{zr!=null&&zr.length?Yn(ql,zr):Yn(ql)}})))},du=({value:wt,onChange:_t,placeholder:gn,height:Yn=140,isEdit:Ur})=>Ur?a.createElement(kt.Z,{watch:!0,isFocus:!0,height:Yn,placeholder:gn,defaultValue:wt,onChange:_t}):a.createElement("div",{style:{cursor:"pointer"}},wt?a.createElement(fe.Z,{className:ga.inputBorder,value:wt}):a.createElement("div",{className:`${ga.inputBorder} ${ga.placeholder}`},gn));var Gu=z(67294),pl=Object.defineProperty,Ir=Object.defineProperties,Cl=Object.getOwnPropertyDescriptors,ol=Object.getOwnPropertySymbols,ti=Object.prototype.hasOwnProperty,io=Object.prototype.propertyIsEnumerable,Xo=(wt,_t,gn)=>_t in wt?pl(wt,_t,{enumerable:!0,configurable:!0,writable:!0,value:gn}):wt[_t]=gn,Sn=(wt,_t)=>{for(var gn in _t||(_t={}))ti.call(_t,gn)&&Xo(wt,gn,_t[gn]);if(ol)for(var gn of ol(_t))io.call(_t,gn)&&Xo(wt,gn,_t[gn]);return wt},Li=(wt,_t)=>Ir(wt,Cl(_t)),ic=(wt,_t)=>{var gn={};for(var Yn in wt)ti.call(wt,Yn)&&_t.indexOf(Yn)<0&&(gn[Yn]=wt[Yn]);if(wt!=null&&ol)for(var Yn of ol(wt))_t.indexOf(Yn)<0&&io.call(wt,Yn)&&(gn[Yn]=wt[Yn]);return gn};const lc=["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"],tc=({value:wt,onChange:_t,choiceTextKey:gn,answerKey:Yn,index:Ur,isEdit:Or,setInputActive:ql,form:zr,choiceOptionsPath:su,allowChangeMode:yu,showAddIcon:xu,addItem:Al,deleteItem:Yl})=>{const Ol=(wt==null?void 0:wt[Yn])===!0,Mu=()=>{const Tr=zr.getFieldValue(su);zr.setFieldValue(su,Tr.map(Ml=>Li(Sn({},Ml),{[Yn]:!1})))},Lr=()=>{Ol?_t(Li(Sn({},wt),{[Yn]:!1})):(yu||Mu(),_t(Li(Sn({},wt),{[Yn]:!0})))};return Gu.createElement(me.Z,{className:ga.choiceWrap,align:"middle",wrap:!1},Gu.createElement(oe.Z,{onClick:Lr,className:`${ga.choiceIndex} ${Ol?ga.activeAnswer:""}`},lc[Ur]),Gu.createElement(oe.Z,{flex:1,className:`${ga.editorWrap} ml15`,onClick:ql},Gu.createElement(du,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:Or,value:wt==null?void 0:wt[gn],onChange:Tr=>{_t(Li(Sn({},wt),{[gn]:Tr}))}})),Gu.createElement(oe.Z,{flex:"0 0 auto",className:"ml15"},Gu.createElement("div",{onClick:Lr,className:`${ga.setAnswerBtn} ${Ol?ga.activeAnswer:""}`},Ol?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),Gu.createElement(oe.Z,{className:ga.actionWrapper},Gu.createElement(he.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},Gu.createElement(jn.Z,{className:ga.addIcon,onClick:Al,style:{visibility:xu?"visible":"hidden"}})),Gu.createElement(he.Z,{title:"\u5220\u9664"},Gu.createElement(Hu.Z,{className:ga.deleteIcon,onClick:Yl,style:{visibility:Ur>1?"visible":"hidden"}}))))},nc=({questionTitlePlaceholder:wt,titleKey:_t,choiceKey:gn,analysisKey:Yn,choiceTextKey:Ur,answerKey:Or,choiceOptionsPath:ql,allowChangeMode:zr=!0,form:su,showAnalysis:yu=!0})=>{const[xu,Al]=(0,a.useState)(),[Yl,Ol]=(0,a.useState)(!1);return Gu.createElement("div",{className:ga.wrap},Gu.createElement("div",{className:ga.questionTitleEditorWrap},Gu.createElement(ke.default.Item,{label:"\u9898\u5E72",name:_t,labelCol:{span:24},rules:[{required:!0}]},Gu.createElement(fo,{scrollId:Array.isArray(_t)?_t.join("_"):`${_t}`,watch:!0,height:140,placeholder:wt}))),Gu.createElement(ke.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),Gu.createElement(ke.default.List,{name:gn,rules:[{validator(Mu,Lr){const Tr=Lr.some(hl=>hl[Or]),Ml=Lr.findIndex(hl=>{var co;return((co=hl[Ur])==null?void 0:co.length)<=0});return Ml!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${lc[Ml]}\u9009\u9879\u7684\u5185\u5BB9`)):Tr?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(Mu,{add:Lr,remove:Tr})=>Gu.createElement("div",{id:Array.isArray(ql)?ql.join("_"):`${ql}`},Mu.map((Ml,hl)=>{var co=Ml,{key:Tu,name:hr}=co,Yr=ic(co,["key","name"]);const ar=xu===Tu,Mr=()=>{Al(Tu)},zo=hl<7&&hl===Mu.length-1,Jo=()=>Lr({[Ur]:"",[Or]:0}),wi=()=>Tr(hr);return Gu.createElement(ke.default.Item,Li(Sn({},Yr),{key:Tu,name:hr,noStyle:!0}),Gu.createElement(tc,{choiceTextKey:Ur,answerKey:Or,index:hl,isEdit:ar,setInputActive:Mr,form:su,choiceOptionsPath:ql,allowChangeMode:zr,showAddIcon:zo,addItem:Jo,deleteItem:wi}))}),Mu.length<8&&Gu.createElement("div",{className:`${ga.addBtn} mb30`,onClick:()=>Lr({[Ur]:"",[Or]:0})},"\u6DFB\u52A0\u9009\u9879"))),yu&&Gu.createElement("div",{onClick:()=>Ol(!0)},Gu.createElement(ke.default.Item,{name:Yn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Gu.createElement(du,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Yl}))))};var Jl=z(67294),Vs=Object.defineProperty,ri=Object.defineProperties,Gs=Object.getOwnPropertyDescriptors,Wu=Object.getOwnPropertySymbols,Qi=Object.prototype.hasOwnProperty,pc=Object.prototype.propertyIsEnumerable,vs=(wt,_t,gn)=>_t in wt?Vs(wt,_t,{enumerable:!0,configurable:!0,writable:!0,value:gn}):wt[_t]=gn,fs=(wt,_t)=>{for(var gn in _t||(_t={}))Qi.call(_t,gn)&&vs(wt,gn,_t[gn]);if(Wu)for(var gn of Wu(_t))pc.call(_t,gn)&&vs(wt,gn,_t[gn]);return wt},ps=(wt,_t)=>ri(wt,Gs(_t)),so=(wt,_t)=>{var gn={};for(var Yn in wt)Qi.call(wt,Yn)&&_t.indexOf(Yn)<0&&(gn[Yn]=wt[Yn]);if(wt!=null&&Wu)for(var Yn of Wu(wt))_t.indexOf(Yn)<0&&pc.call(wt,Yn)&&(gn[Yn]=wt[Yn]);return gn};const sc=({value:wt,onChange:_t})=>{const gn=Ur=>{xe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:ga.modal,onOk:()=>{const Or=[...wt];Or.splice(Ur,1),_t(Or)}})},Yn=()=>{const Ur=[...wt];Ur.push(""),_t(Ur)};return Jl.createElement(me.Z,{align:"middle",className:"ml20",gutter:[40,20]},wt==null?void 0:wt.map((Ur,Or)=>Jl.createElement(oe.Z,{key:`${Ur}_${Or}`,className:ga.blankWrapper},Jl.createElement(Ae.default,{className:ga.blankInput,defaultValue:Ur,maxLength:1e3,onBlur:ql=>{const zr=[...wt],su=ql.target.value.trim();zr[Or]=su,_t(zr)}}),Jl.createElement(he.Z,{title:"\u5220\u9664"},Jl.createElement(Hu.Z,{className:ga.deleteIcon,style:{marginLeft:15,visibility:Or>0?"visible":"hidden"},onClick:()=>gn(Or)})))),Jl.createElement(oe.Z,null,Jl.createElement("div",{className:`${ga.addBtn}`,onClick:()=>{Yn()}},"\u65B0\u589E\u7B54\u6848")))},Wo=({value:wt=!0,onChange:_t})=>Jl.createElement(Ta.Z,{checked:!wt,onChange:gn=>{_t(!gn)}}),bi="\u2581",cc=({questionTitlePlaceholder:wt,form:_t,name:gn,scoreByBlank:Yn="use_blank_score",answerKey:Ur,titleKey:Or="name",analysisKey:ql="analysis",isOrdered:zr="is_ordered"})=>{var su,yu;const[xu,Al]=(0,a.useState)(!1),Yl=(Tu,hr)=>{const Yr=hr.line;let ar=0;for(let zo=0;zo{const Mr=Tu.getRange(hr.from,hr.to);let zo=0;if(hr.text.forEach(Jo=>{zo+=Jo.split(bi).length-1}),hr.origin!=="setValue"){if(Mr&&Mr.indexOf(bi)!==-1){const Jo=Mr.split(bi).length-1,wi=Yl(Tu,hr.from);if(console.log(`\u5220\u9664${Jo}\u4E2A\uFF0C \u524D\u9762\u6709${wi}\u4E2A\uFF0C\u65B0\u589E${zo}\u4E2A`),Jo>1){const ys=Array.from({length:Jo},(Ul,Xs)=>wi+Xs);ar(ys)}else ar(wi)}else if(zo>0){const Jo=Yl(Tu,hr.from);console.log(`\u65B0\u589E${zo}\u4E2A\uFF0C\u4E4B\u524D\u6709${Jo}\u4E2A`),Yr(zo,Jo)}}},Mu=()=>{const Tu=_t.getFieldValue(["sub_item_banks",...Ur]);_t.setFieldValue(["sub_item_banks",...Ur],Tu==null?void 0:Tu.map((hr,Yr)=>ps(fs({},hr),{position:Yr+1})))},Lr=(0,a.useRef)(),Tr=(Tu,hr)=>{for(let Yr=0;Yr{Ml.current(Tu),Mu()},co=(yu=(su=_t.getFieldValue("sub_item_banks"))==null?void 0:su[Ur==null?void 0:Ur[0]])==null?void 0:yu[Ur==null?void 0:Ur[1]];return Jl.createElement("div",{className:ga.wrap},Jl.createElement("div",{className:ga.questionTitleEditorWrap},Jl.createElement(ke.default.Item,{label:"\u9898\u5E72",name:Or,labelCol:{span:24},rules:[{required:!0}]},Jl.createElement(fo,{scrollId:"name",watch:!0,height:140,placeholder:wt,showNullButton:!0,onCMBeforeChange:(Tu,hr)=>{Ol(Tu,hr,Tr,hl)}}))),Jl.createElement(ke.default.List,{name:Ur,rules:[{validator(Tu,hr){if((hr==null?void 0:hr.length)===0)return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const Yr of hr){const{answer_text:ar}=Yr||{};if(ar!=null&&ar.some(Mr=>(Mr==null?void 0:Mr.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Tu,{add:hr,remove:Yr},{errors:ar})=>(Lr.current=hr,Ml.current=Yr,Jl.createElement(Jl.Fragment,null,Jl.createElement(ke.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),Tu.map((Mr,zo)=>{var Jo=Mr,{key:wi,name:ys}=Jo,Ul=so(Jo,["key","name"]);return Jl.createElement(me.Z,{className:"mb20",key:wi,align:"middle",wrap:!1},Jl.createElement(oe.Z,{flex:"0 0 auto",className:`${ga.blankIndex}`},"\u586B\u7A7A\u9879",zo+1),Jl.createElement(oe.Z,{flex:1},Jl.createElement(me.Z,{align:"top",justify:"space-between",wrap:!1},Jl.createElement(oe.Z,null,Jl.createElement(ke.default.Item,ps(fs({},Ul),{name:[ys,"answer_text"],noStyle:!0}),Jl.createElement(sc,null))),(_t==null?void 0:_t.getFieldValue(["sub_item_banks",...Yn]))&&Jl.createElement(oe.Z,{flex:"224px"},Jl.createElement(ke.default.Item,ps(fs({},Ul),{name:[ys,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:ga.blankInputNumberWrapper}),Jl.createElement(pe.Z,{className:ga.blankInput,min:.1,max:100,style:{width:"100%"},placeholder:"\u6309\u7A7A\u7ED9\u5206\u8BF7\u8F93\u5165\u5206\u503C"})))),Jl.createElement(ke.default.Item,ps(fs({},Ul),{name:[ys,"position"],noStyle:!0}),Jl.createElement(Ae.default,{type:"hidden"}))))})))),Jl.createElement(me.Z,{align:"middle"},Jl.createElement(ke.default.Item,{name:[gn,"downcase"],valuePropName:"checked"},Jl.createElement(Ta.Z,null)),Jl.createElement(oe.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),Jl.createElement(me.Z,{align:"middle"},Jl.createElement(ke.default.Item,{name:[gn,"no_space"],valuePropName:"checked"},Jl.createElement(Ta.Z,null)),Jl.createElement(oe.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(co==null?void 0:co.length)>1&&Jl.createElement(me.Z,{align:"middle",className:(co==null?void 0:co.length)>1?"mb30":`${ga.hide}`},Jl.createElement(ke.default.Item,{name:zr},Jl.createElement(Wo,null)),Jl.createElement(oe.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),Jl.createElement("div",{onClick:()=>Al(!0)},Jl.createElement(ke.default.Item,{name:ql,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Jl.createElement(du,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:xu}))))};var ts=Object.defineProperty,Hc=Object.defineProperties,Nc=Object.getOwnPropertyDescriptors,Pc=Object.getOwnPropertySymbols,Rr=Object.prototype.hasOwnProperty,vr=Object.prototype.propertyIsEnumerable,fl=(wt,_t,gn)=>_t in wt?ts(wt,_t,{enumerable:!0,configurable:!0,writable:!0,value:gn}):wt[_t]=gn,Wr=(wt,_t)=>{for(var gn in _t||(_t={}))Rr.call(_t,gn)&&fl(wt,gn,_t[gn]);if(Pc)for(var gn of Pc(_t))vr.call(_t,gn)&&fl(wt,gn,_t[gn]);return wt},jo=(wt,_t)=>Hc(wt,Nc(_t)),Ti=(wt,_t)=>{var gn={};for(var Yn in wt)Rr.call(wt,Yn)&&_t.indexOf(Yn)<0&&(gn[Yn]=wt[Yn]);if(wt!=null&&Pc)for(var Yn of Pc(wt))_t.indexOf(Yn)<0&&vr.call(wt,Yn)&&(gn[Yn]=wt[Yn]);return gn};const yn={\u6B63\u786E:"T",\u9519\u8BEF:"F"},fa=({value:wt,onChange:_t,form:gn,choiceKey:Yn})=>{const Ur=(wt==null?void 0:wt.is_answer)===!0,Or=wt==null?void 0:wt.choice_text,ql=()=>{var zr;const su=(zr=gn==null?void 0:gn.getFieldValue(["sub_item_banks",...Yn]))==null?void 0:zr.map(yu=>({choice_text:yu==null?void 0:yu.choice_text,is_answer:!1}));gn==null||gn.setFieldValue(["sub_item_banks",...Yn],su),_t(jo(Wr({},wt),{is_answer:!0}))};return a.createElement(me.Z,{className:ga.choiceWrap,align:"middle",wrap:!1},a.createElement(oe.Z,{onClick:ql,className:`${ga.choiceIndex} ${ga.judgementIndex} ${Ur?ga.activeAnswer:""}`},yn[Or]),a.createElement(oe.Z,{flex:1,className:`${ga.editorWrap} ml15`},a.createElement("div",{className:`${ga.inputBorder} ${ga.placeholder} ${Ur?ga.activeJudgementAnswer:""}`},Or)),a.createElement(oe.Z,{flex:"0 0 auto",className:"ml15"},a.createElement("div",{onClick:ql,className:`${ga.setAnswerBtn} ${Ur?ga.activeAnswer:""}`},Ur?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},va=({questionTitlePlaceholder:wt,choiceKey:_t="choices",form:gn,titleKey:Yn="name",analysisKey:Ur="analysis"})=>{const[Or,ql]=(0,a.useState)(!1);return a.createElement("div",{className:ga.wrap},a.createElement("div",{className:ga.questionTitleEditorWrap},a.createElement(ke.default.Item,{label:"\u9898\u5E72",name:Yn,labelCol:{span:24},rules:[{required:!0}]},a.createElement(fo,{scrollId:"name",watch:!0,height:140,placeholder:wt}))),a.createElement(ke.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},a.createElement(ke.default.List,{name:_t,rules:[{validator(zr,su){return su.some(xu=>(xu==null?void 0:xu.is_answer)===!0)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},zr=>a.createElement("div",{id:"choices"},zr.map(su=>{var yu=su,{key:xu,name:Al}=yu,Yl=Ti(yu,["key","name"]);return a.createElement(ke.default.Item,jo(Wr({},Yl),{key:xu,name:Al,noStyle:!0}),a.createElement(fa,{form:gn,choiceKey:_t}))})))),a.createElement("div",{onClick:()=>ql(!0)},a.createElement(ke.default.Item,{name:Ur,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},a.createElement(du,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Or}))))};var Vr=Object.defineProperty,Bl=Object.defineProperties,Gr=Object.getOwnPropertyDescriptors,El=Object.getOwnPropertySymbols,Dl=Object.prototype.hasOwnProperty,Qr=Object.prototype.propertyIsEnumerable,Kr=(wt,_t,gn)=>_t in wt?Vr(wt,_t,{enumerable:!0,configurable:!0,writable:!0,value:gn}):wt[_t]=gn,Do=(wt,_t)=>{for(var gn in _t||(_t={}))Dl.call(_t,gn)&&Kr(wt,gn,_t[gn]);if(El)for(var gn of El(_t))Qr.call(_t,gn)&&Kr(wt,gn,_t[gn]);return wt},Co=(wt,_t)=>Bl(wt,Gr(_t)),Br=(wt,_t)=>{var gn={};for(var Yn in wt)Dl.call(wt,Yn)&&_t.indexOf(Yn)<0&&(gn[Yn]=wt[Yn]);if(wt!=null&&El)for(var Yn of El(wt))_t.indexOf(Yn)<0&&Qr.call(wt,Yn)&&(gn[Yn]=wt[Yn]);return gn};const Wl=wt=>{var _t=wt,{value:gn,onChange:Yn}=_t,Ur=Br(_t,["value","onChange"]);const Or=ql=>{Yn([ql])};return a.createElement(kt.Z,Co(Do({},Ur),{defaultValue:gn==null?void 0:gn[0],onChange:Or}))},hi=wt=>{if(!wt)return!1;let _t=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return wt==="|"?(Se.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},bu=({value:wt=[],onClose:_t})=>a.createElement(oa.default,{closable:!0,onClose:_t,className:ga.keywordTag},wt==null?void 0:wt.join(" \u6216 ")),ns=({questionTitlePlaceholder:wt,form:_t,showKeywords:gn,isMustKeyWords:Yn=gn,titleKey:Ur="name",analysisKey:Or="analysis",answerTexts:ql="answer_texts",keywords:zr="keywords",useKeywords:su="use_keywords",indexs:yu})=>{const[xu,Al]=(0,a.useState)(!1),[Yl,Ol]=(0,a.useState)(""),Mu=ke.default.useWatch("sub_item_banks",_t),{use_keywords:Lr,score:Tr}=(Mu==null?void 0:Mu[yu])||{};return console.log(Lr,Tr,"itemValues"),a.createElement("div",{className:ga.wrap},a.createElement("div",{className:ga.questionTitleEditorWrap},a.createElement(ke.default.Item,{label:"\u9898\u5E72",name:Ur,labelCol:{span:24},rules:[{required:!0}]},a.createElement(fo,{scrollId:"name",watch:!0,height:140,placeholder:wt}))),a.createElement(ke.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:ql,labelCol:{span:24}},a.createElement(Wl,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),gn&&!Yn&&a.createElement(ke.default.Item,{hidden:!0,name:su,valuePropName:"checked"},a.createElement(Ta.Z,{defaultChecked:!0})),gn&&Yn&&a.createElement(me.Z,{align:"middle",className:"mb30"},a.createElement(ke.default.Item,{name:su,valuePropName:"checked"},a.createElement(Ta.Z,null)),a.createElement(oe.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),a.createElement(oe.Z,null,a.createElement(he.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},a.createElement(hu.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(Lr||!Yn)&&a.createElement(ke.default.List,{name:zr,rules:[{validator(Ml,hl){return Yn?hl!=null&&hl.length?(hl==null?void 0:hl.reduce((Tu,hr)=>Tu+hr.score,0))>parseFloat(Tr)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(Ml,{add:hl,remove:co})=>a.createElement(a.Fragment,null,a.createElement("div",{className:`${ga.title} mb10`},Yn?"\u5173\u952E\u8BCD":a.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),a.createElement(me.Z,{align:"middle",className:"font14 mb30"},a.createElement(oe.Z,{flex:1},a.createElement(Ae.default,{value:Yl,onChange:Tu=>{Ol(Tu.target.value)},maxLength:50,allowClear:!0,onPressEnter:Tu=>{var hr,Yr,ar,Mr;const zo=`${(hr=Tu.target)==null?void 0:hr.value}`,Jo=(ar=(Yr=zo==null?void 0:zo.split("|"))==null?void 0:Yr.filter(Ul=>!!Ul))==null?void 0:ar.map(Ul=>Ul==null?void 0:Ul.trim()),wi=_t.getFieldValue(["sub_item_banks",...zr]),ys=((Mr=wi==null?void 0:wi.map(Ul=>Ul==null?void 0:Ul.keyword))==null?void 0:Mr.flat())||[];for(const Ul of Jo)if(ys.includes(Ul)){Se.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}hi(zo)&&(hl({keyword:Jo,score:1}),Ol(""))},className:ga.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),a.createElement(oe.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),Ml.map(Tu=>{var hr=Tu,{key:Yr,name:ar}=hr,Mr=Br(hr,["key","name"]);return a.createElement(me.Z,{key:Yr,className:"mb20",style:{marginRight:148}},a.createElement(oe.Z,{flex:1},a.createElement(me.Z,{align:"middle",justify:"space-between"},a.createElement(ke.default.Item,Co(Do({},Mr),{name:[ar,"keyword"]}),a.createElement(bu,{onClose:()=>co(ar)})),Yn&&a.createElement(ke.default.Item,Co(Do({},Mr),{name:[ar,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:ga.blankInputNumberWrapper}),a.createElement(pe.Z,{className:ga.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),a.createElement("div",{onClick:()=>Al(!0)},a.createElement(ke.default.Item,{name:Or,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},a.createElement(du,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:xu}))))};var cl=z(67294),is=Object.defineProperty,li=Object.defineProperties,_i=Object.getOwnPropertyDescriptors,as=Object.getOwnPropertySymbols,ho=Object.prototype.hasOwnProperty,oi=Object.prototype.propertyIsEnumerable,Zi=(wt,_t,gn)=>_t in wt?is(wt,_t,{enumerable:!0,configurable:!0,writable:!0,value:gn}):wt[_t]=gn,Ss=(wt,_t)=>{for(var gn in _t||(_t={}))ho.call(_t,gn)&&Zi(wt,gn,_t[gn]);if(as)for(var gn of as(_t))oi.call(_t,gn)&&Zi(wt,gn,_t[gn]);return wt},ss=(wt,_t)=>li(wt,_i(_t)),Os=(wt,_t)=>{var gn={};for(var Yn in wt)ho.call(wt,Yn)&&_t.indexOf(Yn)<0&&(gn[Yn]=wt[Yn]);if(wt!=null&&as)for(var Yn of as(wt))_t.indexOf(Yn)<0&&oi.call(wt,Yn)&&(gn[Yn]=wt[Yn]);return gn},Es=(wt,_t,gn)=>new Promise((Yn,Ur)=>{var Or=su=>{try{zr(gn.next(su))}catch(yu){Ur(yu)}},ql=su=>{try{zr(gn.throw(su))}catch(yu){Ur(yu)}},zr=su=>su.done?Yn(su.value):Promise.resolve(su.value).then(Or,ql);zr((gn=gn.apply(wt,_t)).next())});const{Panel:ws}=Ea.default,no=null,Dc=(wt,_t)=>{var gn=wt,{globalSetting:Yn,loading:Ur,dispatch:Or,editData:ql,onRef:zr=()=>{},isEdit:su}=gn,yu=Os(gn,["globalSetting","loading","dispatch","editData","onRef","isEdit"]);const[xu,Al]=(0,a.useState)(""),[Yl,Ol]=(0,a.useState)([]),[Mu]=ke.default.useForm();(0,a.useEffect)(()=>{!ql||!su||(Al(ql==null?void 0:ql.name),Ol(ql==null?void 0:ql.sub_item_banks),Mu.setFieldsValue(Ss({},ql)))},[ql]),(0,a.useEffect)(()=>{Ol(Mu.getFieldValue("sub_item_banks"))},[ke.default.useWatch("sub_item_banks",Mu)]),(0,a.useImperativeHandle)(_t,()=>({onSave:Lr,Clear:Tr}));const Lr=()=>Es(void 0,null,function*(){if(!xu)return Se.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;try{yield Mu.validateFields()}catch(Yr){return console.log(Yr,"errInfo"),Se.ZP.error(Yr.errorFields[0].errors[0]),!1}const hr=Yl.map(Yr=>Ss({id:Yr.id>1?Yr.id:null},Yr));return{name:xu,sub_item_banks:hr}}),Tr=()=>{Al(""),Ol([])},Ml={single:"\u5355\u9009\u9898",multiple:"\u591A\u9009\u9898",judgement:"\u5224\u65AD\u9898",completion:"\u586B\u7A7A\u9898",subjective:"\u7B80\u7B54\u9898",practical:"\u5B9E\u8BAD\u9898",program:"\u7F16\u7A0B\u9898",bprogram:"\u7A0B\u5E8F\u586B\u7A7A\u9898",combination:"\u7EC4\u5408\u9898"},hl=({value:hr})=>cl.createElement("div",{style:{textAlign:"center",color:"#DF3065",margin:"0 5px"}},hr),[co,Tu]=(0,a.useState)();return cl.createElement("section",{className:ut.wrap},cl.createElement("p",{className:ut.titleWrap},cl.createElement("span",{className:ut.required},"*"),cl.createElement("span",{className:ut.title},"\u9898\u5E72\uFF1A")),cl.createElement(kt.Z,{id:"combination-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:xu,onChange:hr=>Al(hr)}),cl.createElement(ke.default,{form:Mu,autoComplete:"off"},cl.createElement(ke.default.List,{name:"sub_item_banks",rules:[{validator(hr,Yr){return Yr?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(hr,{add:Yr,remove:ar})=>{const Mr=Mu.getFieldValue("sub_item_banks");return cl.createElement(cl.Fragment,null,cl.createElement(Ea.default,{className:hr.length>0?ut.collapseWrapper:"",bordered:!1,expandIcon:({isActive:zo})=>cl.createElement("i",{className:`iconfont icon-weizhankai ${zo?ut.open:ut.close}`,style:{fontSize:14,transition:"all .2s"}})},hr.map((zo,Jo)=>{var wi=zo,{key:ys,name:Ul}=wi,Xs=Os(wi,["key","name"]),Js,wl,Bi,Yi,Vo,bs,zc,mc,dd,Kc,Xl,hc;return cl.createElement(ws,{className:ut.panel,forceRender:!0,header:cl.createElement("div",{className:ut.panelHeader},"\u7B2C",Jo+1,"\u5C0F\u9898",cl.createElement("span",null,"\uFF08",Ml[(Js=Mr==null?void 0:Mr[Ul])==null?void 0:Js.item_type],"\uFF09")),extra:cl.createElement(me.Z,{align:"middle",onClick:xc=>xc.stopPropagation(),style:{display:"flex",alignItems:"center"}},((wl=Mr==null?void 0:Mr[Ul])==null?void 0:wl.item_type)=="completion"&&cl.createElement(ke.default.Item,ss(Ss({},Xs),{name:[Ul,"score"],className:ut.blankInputNumberWrapper,style:{marginBottom:0}}),((Bi=Mr==null?void 0:Mr[Ul])==null?void 0:Bi.item_type)=="completion"&&cl.createElement("div",{style:{display:"flex",alignItems:"center",color:"#191919"}},"\u5171",cl.createElement(hl,{value:(Yi=Mr==null?void 0:Mr[Ul])==null?void 0:Yi.score}),"\u5206")),((Vo=Mr==null?void 0:Mr[Ul])==null?void 0:Vo.item_type)=="completion"&&cl.createElement(cl.Fragment,null,cl.createElement(Ke.ZP.Group,{defaultValue:(bs=Mr==null?void 0:Mr[Ul])==null?void 0:bs.use_blank_score,className:ut.scoreByBlankRadio,style:{marginRight:10},optionType:"button",options:[{label:"\u6309\u7A7A\u7ED9\u5206",value:!0},{label:"\u6309\u9898\u7ED9\u5206",value:!1}],onChange:xc=>{var Yc;console.log(Mu.getFieldsValue()),Mu==null||Mu.setFieldValue(["sub_item_banks",Ul,"use_blank_score"],(Yc=xc==null?void 0:xc.target)==null?void 0:Yc.value),Tu(new Date)}}),cl.createElement(he.Z,{overlayInnerStyle:{width:460},title:cl.createElement("div",null,"\u6309\u7A7A\u7ED9\u5206\uFF1A\u9700\u8981\u5206\u522B\u8BBE\u7F6E\u6BCF\u4E2A\u586B\u7A7A\u9879\u7684\u5206\u503C\uFF0C\u586B\u7A7A\u9879\u7B54\u5BF9\u4E4B\u540E\u5219\u83B7\u5F97\u5BF9\u5E94\u7684\u5206\u503C\u3002",cl.createElement("br",null),"\u6309\u9898\u7ED9\u5206\uFF1A\u7B54\u5BF9\u5168\u90E8\u586B\u7A7A\u9879\u4E4B\u540E\u624D\u80FD\u83B7\u5F97\u8BE5\u5C0F\u9898\u7684\u5206\u503C\u3002")},cl.createElement("i",{className:"icon-tishixiaowenhao font18 c-3061d0"})))),key:ys},cl.createElement(ke.default.Item,ss(Ss({},Xs),{name:Ul}),(((zc=Mr==null?void 0:Mr[Ul])==null?void 0:zc.item_type)=="single"||((mc=Mr==null?void 0:Mr[Ul])==null?void 0:mc.item_type)=="multiple")&&cl.createElement(nc,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((dd=Mr==null?void 0:Mr[Ul])==null?void 0:dd.item_type)!="single",form:Mu,choiceKey:[Ul,"choices"],titleKey:[Ul,"name"],analysisKey:[Ul,"analysis"],choiceOptionsPath:["sub_item_banks",Ul,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((Kc=Mr==null?void 0:Mr[Ul])==null?void 0:Kc.item_type)=="completion"&&cl.createElement(cc,{form:Mu,name:Ul,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",scoreByBlank:[Ul,"use_blank_score"],titleKey:[Ul,"name"],analysisKey:[Ul,"analysis"],isOrdered:[Ul,"is_ordered"],answerKey:[Ul,"standard_answer"],key:co}),((Xl=Mr==null?void 0:Mr[Ul])==null?void 0:Xl.item_type)=="judgement"&&cl.createElement(va,{form:Mu,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[Ul,"name"],analysisKey:[Ul,"analysis"],choiceKey:[Ul,"choices"]}),((hc=Mr==null?void 0:Mr[Ul])==null?void 0:hc.item_type)=="subjective"&&cl.createElement(ns,{showKeywords:!0,form:Mu,titleKey:[Ul,"name"],analysisKey:[Ul,"analysis"],answerTexts:[Ul,"answer_texts"],useKeywords:[Ul,"use_keywords"],keywords:[Ul,"keywords"],indexs:Ul,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"})))})))})))};var Oc=(0,ve.connect)(({loading:wt,globalSetting:_t})=>({globalSetting:_t,loading:wt.effects}),null,null,{forwardRef:!0})((0,a.forwardRef)(Dc)),Ts=z(60580),ks=z(38089),Fi=z(88044),ac=z(57399),ll={flex_box_center:"flex_box_center___xDdtW",flex_space_between:"flex_space_between___J4mFI",flex_box_vertical_center:"flex_box_vertical_center___hDYn6",flex_box_center_end:"flex_box_center_end___H7l1j",flex_box_column:"flex_box_column___TPd2T",questionInfo:"questionInfo___ABq66",label:"label___VQOr7",content:"content____HZ6z",leftPart:"leftPart___YB0y5",rightPart:"rightPart___UVMmS",dragItem:"dragItem___Hbx8k",blackText:"blackText___U4u33",greyText:"greyText___rWIL_",iconWrapper:"iconWrapper___I0kek",contentArea:"contentArea___hGC13",dragging:"dragging___z7VVY",hidden:"hidden___nWAxb",dragIcon:"dragIcon___j91TC",deleteIcon:"deleteIcon___cmCqc",disabled:"disabled___ZlKMj",challengeNameWrapper:"challengeNameWrapper___SpiRb",challengeName:"challengeName___lmQe2",shixunPreviewFooter:"shixunPreviewFooter___u0CzD",shixunInfoWrapper:"shixunInfoWrapper___HzLHD",shixunInfo:"shixunInfo___qaQlF",btnToDetail:"btnToDetail___scXqr",fixedBottom:"fixedBottom___wTBAR",cancelBtn:"cancelBtn___Km4Gi",confirmBtn:"confirmBtn___WrECz",previewBtn:"previewBtn____oGPS",setScoreModalTable:"setScoreModalTable___CjDlp",title:"title___cQWdZ",tipcontent:"tipcontent___A8tZ5",name:"name___CvfT9",tip:"tip___EvoCF",info:"info___y_ayi",img:"img___X9CNn"},ba=z(30001),Jn=z(99678),cr=z(89779),$n=z(9343),Ql=z(26194),Bo=z(20670),Ui=({open:wt,onCancel:_t,onOk:gn})=>{const Yn=(0,Jn.g)(),[Ur,Or,ql,zr]=(0,$n.U)(cr.Gm,{page:1,limit:10,keyword:"",diff:"",shixun_publish_status:"",discipline_id:"",sub_discipline_id:"",type:0,include_shixuns:!0,item_type:"SHIXUN"}),[su,yu]=(0,a.useState)(!1);(0,a.useEffect)(()=>{wt&&ql({page:1,limit:10,type:0},!0).then(Mu=>{(Mu==null?void 0:Mu.shixuns_count)===0&&yu(!0)})},[wt]);const[xu,Al]=(0,a.useState)([]),[Yl,Ol]=(0,a.useState)([]);return a.createElement(xe.default,{title:"\u9009\u62E9\u5B9E\u8BAD\u9898",open:wt,width:948,centered:!0,closable:!0,onCancel:_t,onOk:()=>gn(Yl),destroyOnClose:!0},a.createElement(me.Z,{justify:"space-between",className:"mb20",style:{maxHeight:650}},a.createElement(oe.Z,null,a.createElement(ks.Z,{style:{width:160},size:"large",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:Yn,onChange:Mu=>{ql({page:1,discipline_id:Mu==null?void 0:Mu[0],sub_discipline_id:Mu==null?void 0:Mu[1]})}}),a.createElement(Fi.default,{className:"ml20",style:{width:118},size:"large",placeholder:"\u96BE\u5EA6",allowClear:!0,options:[{label:"\u521D\u7EA7",value:1},{label:"\u4E2D\u7EA7",value:2},{label:"\u4E2D\u9AD8\u7EA7",value:3},{label:"\u9AD8\u7EA7",value:4}],onChange:Mu=>ql({page:1,diff:Mu})}),a.createElement(Fi.default,{className:"ml20",placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"large",allowClear:!0,options:[{label:"\u672A\u53D1\u5E03",value:"unpublish"},{label:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{label:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],onChange:Mu=>ql({page:1,shixun_publish_status:Mu})})),a.createElement(ba.t7,{placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",style:{width:290},onChange:Mu=>{ql({keyword:Mu,page:1})}})),su?a.createElement("div",null,a.createElement(Ql.Z,{customText:"\u6682\u65E0\u6570\u636E",ButtonText:"\u524D\u5F80\u5B9E\u8DF5\u9879\u76EE\u5E93\uFF0C\u6DFB\u52A0\u66F4\u591A\u8BD5\u9898>",ButtonClick:()=>(0,Ne.xg)("/shixuns")})):a.createElement(ac.default,{loading:Or,rowKey:"id",columns:[{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:"30%",ellipsis:{showTitle:!0},render:(Mu,Lr)=>a.createElement("div",{style:{display:"flex",alignItems:"center"}},a.createElement("div",{className:Lr!=null&&Lr.high_resources_consume?ll.title:"",title:Mu||"--"},a.createElement(fe.Z,{key:1,showLines:1,showTextOnly:!0,value:Mu||"--"})),(Lr==null?void 0:Lr.high_resources_consume)&&a.createElement(Bo.Z,{type:"shixun",style:{marginLeft:10}}))},{title:"\u96BE\u5EA6",dataIndex:"level"},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",render:(Mu,Lr,Tr)=>a.createElement("span",null,Mu||"- -")},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"study_count"},{title:a.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",a.createElement(he.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},a.createElement(hu.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",width:100,render:(Mu,Lr,Tr)=>a.createElement("span",null,Mu||"- -")},{title:"\u64CD\u4F5C",render(Mu,Lr){const{title:Tr,challenge_names:Ml,author_name:hl,identifier:co,author_school_name:Tu,study_count:hr}=Lr||{};return a.createElement("div",null,a.createElement("span",{style:{color:"#165DFF",cursor:"pointer"},onClick:()=>{xe.default.confirm({title:"\u9898\u76EE\u8BE6\u60C5",closable:!0,width:1e3,centered:!0,icon:null,footer:null,content:a.createElement("div",null,a.createElement(fe.Z,{value:Tr,style:{marginBottom:18}}),a.createElement("div",{className:ll.challengeNameWrapper},Ml.map((Yr,ar)=>a.createElement("div",{className:ll.challengeName,key:ar},"\u7B2C",(0,Ne.EM)(ar+1),"\u9898\xA0",Yr))),a.createElement(me.Z,{className:ll.shixunPreviewFooter,justify:"space-between",style:{alignItems:"center"}},a.createElement(oe.Z,{className:ll.shixunInfoWrapper},a.createElement("span",null,"\u521B\u5EFA\u8005"),a.createElement("span",{className:ll.shixunInfo},hl.split("\u3001")[0]),a.createElement("span",null,"\u6240\u5C5E\u5355\u4F4D"),a.createElement("span",{className:ll.shixunInfo},Tu),a.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570"),a.createElement("span",{className:ll.shixunInfo},hr)),a.createElement(Fe.ZP,{type:"primary",className:ll.btnToDetail,onClick:()=>(0,Ne.xg)(`/shixuns/${co}/challenges?exercise=true`)},a.createElement("i",{className:"iconfont icon-shixunkecheng"}),"\u5B9E\u8BAD\u8BE6\u60C5")))})}},"\u67E5\u770B"),(Lr==null?void 0:Lr.shixun_tag_num)===1&&a.createElement("a",{target:"_blank",href:`/shixuns/${Lr==null?void 0:Lr.identifier}/challenges`,style:{marginLeft:10}},"\u53BB\u53D1\u5E03"))}}],dataSource:zr==null?void 0:zr.items,rowSelection:{type:"radio",selectedRowKeys:xu,preserveSelectedRowKeys:!0,getCheckboxProps:Mu=>({disabled:Mu.shixun_tag_num===1}),onChange(Mu,Lr){var Tr,Ml,hl;console.log(Mu),Al(Mu);const co=[];for(const hr of Yl)Mu.includes(hr.id)&&co.push(hr);const Tu=co.map(hr=>hr.id);for(const hr of Lr)hr&&Mu.includes(hr.id)&&!Tu.includes(hr.id)&&co.push({id:hr.id,difficulty:hr.level,identifier:hr.identifier,name:hr.name,real_name:(Tr=hr==null?void 0:hr.author_name)==null?void 0:Tr.split("\u3001")[0],school_name:hr.author_school_name,challenge_names:hr.challenge_names,challenges:(Ml=hr.challenge_names)==null?void 0:Ml.map((Yr,ar)=>({subject:Yr,id:ar,score:5})),score:((hl=hr.challenge_names)==null?void 0:hl.length)*5,study_count:hr.study_count,challenges_count:hr.challenges_count});Ol(co)}},pagination:{current:Ur.page,pageSize:Ur.limit,total:zr==null?void 0:zr.items_count,showTotal:Mu=>a.createElement("span",null,"\u5171\xA0",a.createElement("span",{style:{color:"#165DFF"}},Mu),"\xA0\u6761\u6570\u636E"),showQuickJumper:!0,onChange(Mu,Lr){ql({page:Mu,limit:Lr})},size:"default"},scroll:{y:400}}))},xs=z(96332),Ps=z(93686),vi=(wt,_t,gn)=>new Promise((Yn,Ur)=>{var Or=su=>{try{zr(gn.next(su))}catch(yu){Ur(yu)}},ql=su=>{try{zr(gn.throw(su))}catch(yu){Ur(yu)}},zr=su=>su.done?Yn(su.value):Promise.resolve(su.value).then(Or,ql);zr((gn=gn.apply(wt,_t)).next())}),Mc=({visible:wt,getdata:_t,onCancel:gn,onRandomExchange:Yn,selectFromProblemSet:Ur,questionParams:Or})=>{const[ql,zr]=(0,a.useState)(!1),[su,yu]=(0,a.useState)(!1),[xu,Al]=(0,a.useState)({}),Yl=(0,ve.useParams)(),[Ol,Mu]=(0,a.useState)(),Lr=(Tr,Ml)=>vi(void 0,null,function*(){yu(!0);const hl=yield(0,Le.ZP)(`/api/exercises/${Yl.categoryId}/toggle_random_question.json`,{method:"post",body:{question_id:Or.id,item_bank_id:Tr,shixuns_info:[{id:Tr,is_copy:Ml!=1,is_use:Ml!=1}]}});yu(!1),hl!=null&&hl.status||(Se.ZP.info("\u6362\u9898\u6210\u529F"),gn(),_t())});return a.createElement(xe.default,{title:"\u8BF7\u9009\u62E9\u66FF\u6362\u65B9\u5F0F",open:wt,onCancel:gn,centered:!0,maskClosable:!0,footer:null},a.createElement(me.Z,{justify:"center",className:"pb20"},a.createElement(Ts.Z,{onClick:Yn},"\u968F\u673A\u66F4\u6362"),(Or==null?void 0:Or.type)!=="PRACTICAL"&&a.createElement(Fe.ZP,{style:{marginLeft:24},onClick:Ur},"\u4ECE\u9898\u5E93\u4E2D\u9009\u62E9"),(Or==null?void 0:Or.type)==="PRACTICAL"&&a.createElement(Fe.ZP,{style:{marginLeft:24},onClick:()=>{zr(!0)}},"\u4ECE\u9898\u5E93\u4E2D\u9009\u62E9")),a.createElement(Ui,{open:ql,onCancel:()=>zr(!1),onOk:Tr=>vi(void 0,null,function*(){if(console.log("----selectedRows",Tr,Yl),(Tr==null?void 0:Tr.length)<=0){Se.ZP.info("\u8BF7\u9009\u62E9\u5B9E\u8BAD");return}let Ml=Tr==null?void 0:Tr.map(co=>co==null?void 0:co.id),hl=yield(0,Ps.Tr)({id:[...Ml],course_id:Yl.coursesId,type:"shixun"});(hl==null?void 0:hl.student_count)===0?Lr(Ml==null?void 0:Ml[0],1):(Mu(Ml),Al(hl)),zr(!1)})}),a.createElement(xs.Z,{resdata:xu,type:"shixun",okloading:su,oktext:(xu==null?void 0:xu.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:Tr=>vi(void 0,null,function*(){Lr(Ol==null?void 0:Ol[0],2)})}))},jc=z(30351),Is=z(19575),Cc=z(2715),dc=z(48994),Ks=z(52810),Ec=z(52262),Wc=Object.defineProperty,bc=Object.defineProperties,Ys=Object.getOwnPropertyDescriptors,Ac=Object.getOwnPropertySymbols,wc=Object.prototype.hasOwnProperty,Vc=Object.prototype.propertyIsEnumerable,hd=(wt,_t,gn)=>_t in wt?Wc(wt,_t,{enumerable:!0,configurable:!0,writable:!0,value:gn}):wt[_t]=gn,Ms=(wt,_t)=>{for(var gn in _t||(_t={}))wc.call(_t,gn)&&hd(wt,gn,_t[gn]);if(Ac)for(var gn of Ac(_t))Vc.call(_t,gn)&&hd(wt,gn,_t[gn]);return wt},uc=(wt,_t)=>bc(wt,Ys(_t)),Ds=(wt,_t,gn)=>new Promise((Yn,Ur)=>{var Or=su=>{try{zr(gn.next(su))}catch(yu){Ur(yu)}},ql=su=>{try{zr(gn.throw(su))}catch(yu){Ur(yu)}},zr=su=>su.done?Yn(su.value):Promise.resolve(su.value).then(Or,ql);zr((gn=gn.apply(wt,_t)).next())});const cd=({data:wt,submit:_t,goBack:gn,loading:Yn,onTypeScore:Ur,editPreview:Or=!1,onSkipExamination:ql,selectValue:zr,onExchange:su,getdata:yu,handleMarkWrongQuestion:xu,dispatch:Al})=>{var Yl,Ol,Mu,Lr,Tr,Ml,hl,co,Tu,hr,Yr;const ar=(0,a.useRef)(),[Mr,zo]=(0,a.useState)(null),[Jo,wi]=(0,a.useState)(!1),[ys,Ul]=(0,a.useState)(!1),Xs=(0,a.useRef)(),[Js]=ke.default.useForm(),wl=(0,ve.useParams)(),[Bi,Yi]=(0,a.useState)(!1),[Vo,bs]=(0,a.useState)([]);(0,a.useEffect)(()=>{wi(!0)},[]),(0,a.useEffect)(()=>{Or||(0,Ne.Dk)("\u8BD5\u5377\u9884\u89C8")},[Or]),(0,a.useEffect)(()=>{var Xn;((Xn=wt==null?void 0:wt.questionList)==null?void 0:Xn.length)>0&&(wt==null||wt.questionList.forEach(Ar=>{var _l;Ar.type==="PRACTICAL"&&((_l=Ar==null?void 0:Ar.questions)==null||_l.forEach((Ia,Bu)=>{var Zo;Vo[Bu]=!((Zo=Ia==null?void 0:Ia.shixun)!=null&&Zo.ignore_prompt),bs([...Vo])}))}))},[wt]);const zc=["\u5BB9\u6613","\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],mc={SINGLE:"\u5355\u9009\u9898",MULTIPLE:"\u591A\u9009\u9898",JUDGMENT:"\u5224\u65AD\u9898",COMPLETION:"\u586B\u7A7A\u9898",SUBJECTIVE:"\u7B80\u7B54\u9898",PRACTICAL:"\u5B9E\u8BAD\u9898",PROGRAM:"\u7F16\u7A0B\u9898",BPROGRAM:"\u7A0B\u5E8F\u586B\u7A7A\u9898",COMBINATION:"\u7EC4\u5408\u9898"},dd={single:"\u5355\u9009\u9898",multiple:"\u591A\u9009\u9898",judgement:"\u5224\u65AD\u9898",completion:"\u586B\u7A7A\u9898",subjective:"\u7B80\u7B54\u9898",practical:"\u5B9E\u8BAD\u9898",program:"\u7F16\u7A0B\u9898",bprogram:"\u7A0B\u5E8F\u586B\u7A7A\u9898",combination:"\u7EC4\u5408\u9898"},Kc=Xn=>{var Ar;const _l=[];return a.createElement(a.Fragment,null,a.createElement("aside",{className:Ce.single},(Ar=Xn==null?void 0:Xn.choices)==null?void 0:Ar.map((Ia,Bu)=>(Ia.is_answer&&_l.push(Ks.k4[Bu]),a.createElement("ul",{key:Bu},a.createElement("li",null,Ks.k4[Bu],"\u3001"),a.createElement("li",null,a.createElement(fe.Z,{value:Ia.choice_text})))))),a.createElement("div",{className:Ce.analysis},a.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",_l.join(""),a.createElement("span",{className:"ml30"},"\u96BE\u5EA6\uFF1A",zc[Xn.difficulty])),a.createElement("aside",null,a.createElement("span",{className:Ce.text},"\u89E3\u6790:"),a.createElement(fe.Z,{value:Xn.analysis?Xn.analysis:"\u6682\u65E0\u89E3\u6790"})),a.createElement("ul",null,a.createElement("li",null,a.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),`${(Xn==null?void 0:Xn.discipline_name)||"--"}/${Xn==null?void 0:Xn.sub_discipline_name}`),a.createElement(he.Z,{title:Xn==null?void 0:Xn.tag_discipline_name},a.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},a.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Xn==null?void 0:Xn.tag_discipline_name)))))},Xl=(Xn,Ar)=>{var _l;const Ia=(_l=Xn==null?void 0:Xn.standard_answer)==null?void 0:_l.map((Bu,Zo)=>{var yi;return a.createElement("div",{key:Zo},`\u7B54\u6848\uFF08\u586B\u7A7A${Bu==null?void 0:Bu.position}\uFF09\uFF1A${(yi=Bu==null?void 0:Bu.answer_text)==null?void 0:yi.join("\u3001")}`)});return a.createElement(a.Fragment,null,a.createElement("div",{className:Ce.analysis},a.createElement("div",{style:{display:"flex"}},a.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A"),a.createElement("div",null,Ia)),a.createElement("aside",null,a.createElement("span",{className:Ce.text},"\u89E3\u6790:"),a.createElement(fe.Z,{value:Xn.analysis?Xn.analysis:"\u6682\u65E0\u89E3\u6790"})),a.createElement("ul",null,a.createElement("li",null,a.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),Ar?`${(Ar==null?void 0:Ar.discipline_name)||"--"}/${Ar==null?void 0:Ar.sub_discipline_name}`:`${(Xn==null?void 0:Xn.discipline_name)||"--"}/${Xn==null?void 0:Xn.sub_discipline_name}`),a.createElement(he.Z,{title:Ar?Ar==null?void 0:Ar.tag_discipline_name:Xn==null?void 0:Xn.tag_discipline_name},a.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},a.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Ar?Ar==null?void 0:Ar.tag_discipline_name:Xn==null?void 0:Xn.tag_discipline_name)))))},hc=Xn=>{var Ar;const _l=(Ar=Xn==null?void 0:Xn.standard_answer)==null?void 0:Ar.map((Ia,Bu)=>a.createElement("div",{key:Bu},`\u7B54\u6848\uFF08\u586B\u7A7A${(Ia==null?void 0:Ia.position)||(Ia==null?void 0:Ia.exercise_choice_id)}\uFF09\uFF1A${Ia==null?void 0:Ia.answer_text}`));return a.createElement(a.Fragment,null,a.createElement("div",{className:Ce.analysis},a.createElement("div",{style:{display:"flex"}},a.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A"),a.createElement("div",null,_l)),a.createElement("aside",null,a.createElement("span",{className:Ce.text},"\u89E3\u6790:"),a.createElement(fe.Z,{value:Xn.analysis?Xn.analysis:"\u6682\u65E0\u89E3\u6790"})),a.createElement("ul",null,a.createElement("li",null,a.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),`${(Xn==null?void 0:Xn.discipline_name)||"--"}/${Xn==null?void 0:Xn.sub_discipline_name}`),a.createElement(he.Z,{title:Xn==null?void 0:Xn.tag_discipline_name},a.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},a.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Xn==null?void 0:Xn.tag_discipline_name)))))},xc=(Xn,Ar)=>{var _l;return a.createElement("div",{className:Ce.analysis},a.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",(_l=Xn==null?void 0:Xn.answer_texts)==null?void 0:_l[0]),a.createElement("aside",null,a.createElement("span",{className:Ce.text},"\u89E3\u6790:"),a.createElement(fe.Z,{value:Xn.analysis?Xn.analysis:"\u6682\u65E0\u89E3\u6790"})),a.createElement("ul",null,a.createElement("li",null,a.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),Ar?`${(Ar==null?void 0:Ar.discipline_name)||"--"}/${Ar==null?void 0:Ar.sub_discipline_name}`:`${(Xn==null?void 0:Xn.discipline_name)||"--"}/${Xn==null?void 0:Xn.sub_discipline_name}`),a.createElement(he.Z,{title:Ar?Ar==null?void 0:Ar.tag_discipline_name:Xn==null?void 0:Xn.tag_discipline_name},a.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},a.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Ar?Ar==null?void 0:Ar.tag_discipline_name:Xn==null?void 0:Xn.tag_discipline_name))))},Yc=Xn=>{var Ar,_l;return a.createElement("div",{className:Ce.analysis},a.createElement("aside",null,a.createElement("span",{className:Ce.text},"\u9884\u671F\u8F93\u51FA:"),a.createElement(fe.Z,{value:(Ar=Xn==null?void 0:Xn.program_attr)==null?void 0:Ar.description})),a.createElement("div",{style:{marginTop:20}},"\u6B63\u786E\u7B54\u6848\uFF1A",((_l=Xn==null?void 0:Xn.program_attr)==null?void 0:_l.answer_text)||"--"),a.createElement("aside",null,a.createElement("span",{className:Ce.text},"\u89E3\u6790:"),a.createElement(fe.Z,{value:Xn.analysis?Xn.analysis:"\u6682\u65E0\u89E3\u6790"})),a.createElement("ul",null,a.createElement("li",null,a.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),`${(Xn==null?void 0:Xn.discipline_name)||"--"}/${Xn==null?void 0:Xn.sub_discipline_name}`),a.createElement(he.Z,{title:Xn==null?void 0:Xn.tag_discipline_name},a.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},a.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Xn==null?void 0:Xn.tag_discipline_name))))},qo=(Xn,Ar)=>{var _l;return a.createElement("div",null,(_l=Xn==null?void 0:Xn.sub_item_banks)==null?void 0:_l.map((Ia,Bu)=>{var Zo,yi;const Oi=[];return a.createElement(a.Fragment,null,a.createElement("div",{style:{marginLeft:25,fontSize:"16px",color:"#333",paddingTop:"15px"}},Ar+1+"."+(Bu+1),"\uFF08",mc[Ia.item_type]||dd[Ia.item_type],"\uFF09",Ia.name),(Ia.item_type=="SINGLE"||Ia.item_type=="MULTIPLE"||Ia.item_type=="JUDGMENT"||Ia.item_type=="single"||Ia.item_type=="multiple"||Ia.item_type=="judgement")&&a.createElement(a.Fragment,null,a.createElement("aside",{className:Ce.single},(Zo=Ia==null?void 0:Ia.choices)==null?void 0:Zo.map((uo,As)=>(uo.is_answer&&Oi.push(Ks.k4[As]),a.createElement("ul",{key:As},a.createElement("li",null,Ks.k4[As],"\u3001"),a.createElement("li",null,a.createElement(fe.Z,{value:uo.choice_text})))))),a.createElement("div",{className:Ce.analysis},a.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",Oi.join(""),a.createElement("span",{className:"ml30"},"\u96BE\u5EA6\uFF1A",zc[Ia.difficulty])),a.createElement("aside",null,a.createElement("span",{className:Ce.text},"\u89E3\u6790:"),a.createElement(fe.Z,{value:Ia.analysis?Ia.analysis:"\u6682\u65E0\u89E3\u6790"})),a.createElement("ul",null,a.createElement("li",null,a.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),`${(Xn==null?void 0:Xn.discipline_name)||"--"}/${Xn==null?void 0:Xn.sub_discipline_name}`),a.createElement(he.Z,{title:Xn==null?void 0:Xn.tag_discipline_name},a.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},a.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Xn==null?void 0:Xn.tag_discipline_name))))),(Ia.item_type=="COMPLETION"||Ia.item_type=="completion")&&Xl(Ia,Xn),(Ia.item_type=="SUBJECTIVE"||Ia.item_type=="subjective")&&xc(Ia,Xn),((yi=wt==null?void 0:wt.exam)==null?void 0:yi.exercise_status)===3&&a.createElement("div",{className:"flex gap-20px mt20"},a.createElement(Cc.Z,{state:Ia==null?void 0:Ia.is_wrong,onClick:()=>{xu==null||xu({value:uc(Ms({},Ia),{question_id:Ia==null?void 0:Ia.id,question_score:Ia==null?void 0:Ia.score})})}}),Ia.item_type=="single"&&a.createElement(Fe.ZP,{style:{color:"#3061D0"},onClick:()=>{Ud({value:Ia})}},"\u589E\u8BBE\u6B63\u786E\u7B54\u6848")))}))},ad=Xn=>{var Ar,_l,Ia;return a.createElement("div",{style:{marginTop:"12px"}},(_l=(Ar=Xn==null?void 0:Xn.shixun)==null?void 0:Ar.challenges)==null?void 0:_l.map((Bu,Zo)=>a.createElement("div",{className:"c-grey-666 font14 mb10 ml25",style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},a.createElement("div",null,a.createElement("span",{className:"mr5"},"\u7B2C",Zo+1,"\u5173"),a.createElement(he.Z,{key:Zo,title:Bu==null?void 0:Bu.challenge_name},a.createElement("span",null,(0,Ne.Pq)(Bu==null?void 0:Bu.challenge_name,44)))),Or&&a.createElement("div",null,"\u5206\u503C\uFF1A",Bu.score,"\u5206"))),a.createElement(ve.Link,{style:{float:"right"},target:"_blank",to:`/shixuns/${(Ia=Xn==null?void 0:Xn.shixun)==null?void 0:Ia.identifier}/challenges`},"\u5B9E\u8BAD\u8BE6\u60C5"),a.createElement("div",{style:{clear:"both"}}))},Zc=Xn=>{let Ar=Xn.questions_score/Xn.questions_count;xe.default.confirm({icon:null,centered:!0,title:"\u5206\u6570\u8BBE\u7F6E",content:a.createElement("div",{className:Ce.modalColumn},a.createElement("div",{className:Ce.modalRow,style:{justifyContent:"flex-start"}},a.createElement("sup",{className:Ce.sup},"*"),a.createElement("span",null,Xn==null?void 0:Xn.name,"\uFF1A"),a.createElement(pe.Z,{min:0,precision:1,defaultValue:Ar,onChange:_l=>{Ar=_l}}),a.createElement("span",{className:"ml5"},"\u5206/\u9898"))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Ds(void 0,null,function*(){var _l;if(!Ar)return Se.ZP.warning("\u5206\u6570\u4E0D\u80FD\u4E3A\u7A7A\u6216\u4E3A0"),Promise.reject();const Ia={type:Xn==null?void 0:Xn.type,score:Ar,scoreTotal:Number((_l=Ar*Xn.questions_count)==null?void 0:_l.toFixed(1))};Ur(Ia)})})},qd=()=>{let Xn="";xe.default.confirm({icon:null,centered:!0,title:"\u4FDD\u5B58\u8BD5\u5377",content:a.createElement("div",{className:Ce.modalColumn},a.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20"},a.createElement("img",{style:{marginRight:5},src:Ct.Z}),"\u4FDD\u5B58\u540E\u5355\u72EC\u751F\u6210\u4E00\u4EFD\u4EBA\u5DE5\u7EC4\u5377\u7C7B\u578B\u7684\u56FA\u5B9A\u8BD5\u5377\u3002"),a.createElement("div",{className:Ce.modalRow,style:{marginTop:20}},a.createElement("sup",{className:Ce.sup},"*"),a.createElement("span",{style:{flexShrink:0}},"\u8BD5\u5377\u540D\u79F0\uFF1A"),a.createElement(Ae.default,{placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",min:0,maxLength:60,defaultValue:Xn,onChange:Ar=>{Xn=Ar.target.value}}))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Ds(void 0,null,function*(){var Ar;if(!Xn)return Se.ZP.warning("\u8BD5\u5377\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),Promise.reject();const _l=[],Ia=[],Bu=[],Zo=[];(Ar=wt==null?void 0:wt.questionList)==null||Ar.forEach(Oi=>{var uo;(uo=Oi.questions)==null||uo.forEach(As=>{let Mi=Oi.questions_score/Oi.questions_count;Mi=Mi&&Mi.toFixed(1),Oi.type==="COMBINATION"&&Bu.push({id:As.id,sub_item_bank_ids:As.sub_item_banks.map(Bc=>Bc.id)}),Oi.type==="PRACTICAL"?Zo.push(As.id):(_l.push(As.id),Ia.push(Mi))})}),console.log("-----",Bu),yield _t({item_bank_ids:_l,item_bank_scores:Ia,name:Xn,combination_item_banks:Bu,shixun_ids:Zo})})})},Qd=(Xn,Ar,_l,Ia)=>{var Bu;const Zo=`${location.pathname}${location.search}`,yi=(Bu=Ia.questions)==null?void 0:Bu.map(Oi=>Oi==null?void 0:Oi.id);if(Zo.includes("exercise"))Xs.current={id:Xn,ids:yi,type:Ar,index:_l},Ul(!0);else{let Oi=xe.default.confirm({icon:null,centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:"\u786E\u8BA4\u8981\u66F4\u6362\u8BE5\u8BD5\u9898\u5417\uFF1F",cancelButtonProps:{disabled:!1},maskClosable:!0,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Ds(void 0,null,function*(){Oi.update({cancelButtonProps:{disabled:!0}}),yield su({single_question_id:Xn,seleted_item_bank_ids:yi},{type:Ar,index:_l}),Oi.update({cancelButtonProps:{disabled:!1}}),Se.ZP.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210\u8BD5\u9898")})})}},Id=Xn=>{var Ar;const _l=(Ar=Xn.questions)==null?void 0:Ar.map(Zo=>Zo==null?void 0:Zo.id),Ia=Xn.name;let Bu=xe.default.confirm({icon:null,centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:`\u786E\u8BA4\u66F4\u6362${Ia}\u4E2D\u7684\u6240\u6709\u8BD5\u9898\u5417\uFF1F`,cancelButtonProps:{disabled:!1},maskClosable:!1,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Ds(void 0,null,function*(){Bu.update({cancelButtonProps:{disabled:!0}}),yield su({seleted_item_bank_ids:_l},{type:Xn.type}),Bu.update({cancelButtonProps:{disabled:!1}}),Se.ZP.success(`\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210${Ia}\u8BD5\u9898`)})})},Ld=()=>{let Xn=xe.default.confirm({icon:null,centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:"\u786E\u8BA4\u66F4\u6362\u9884\u89C8\u4E2D\u7684\u6240\u6709\u8BD5\u9898\u5417\uFF1F",cancelButtonProps:{disabled:!1},maskClosable:!1,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Ds(void 0,null,function*(){Xn.update({cancelButtonProps:{disabled:!0}}),yield su(),Xn.update({cancelButtonProps:{disabled:!1}}),Se.ZP.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210\u6574\u5F20\u8BD5\u9898")})})},Fd=Xn=>{console.log(Xn,"key"),ql(Xn-1)},md=(Xn,Ar)=>{var _l,Ia;if(Ar==="SINGLE")return a.createElement(a.Fragment,null,a.createElement(ua,{ref:ar,editData:Xn,isEdit:!0}),a.createElement(Ie.Z,null));if(Ar==="MULTIPLE")return a.createElement(a.Fragment,null,a.createElement(_u,{ref:ar,editData:Xn,isEdit:!0}),a.createElement(Ie.Z,null));if(Ar==="JUDGMENT")return a.createElement(a.Fragment,null,a.createElement(cu,{ref:ar,editData:Xn,isEdit:!0}),a.createElement(Ie.Z,null));if(Ar==="COMPLETION")return a.createElement(a.Fragment,null,a.createElement(St,{ref:ar,editData:Xn,isEdit:!0}),a.createElement(Ie.Z,null));if(Ar==="SUBJECTIVE")return a.createElement(a.Fragment,null,a.createElement(Ga,{ref:ar,editData:Xn,isEdit:!0}),a.createElement(Ie.Z,null));if(Ar==="COMBINATION")return a.createElement(a.Fragment,null,a.createElement(Oc,{ref:ar,editData:Xn,isEdit:!0}),a.createElement(Ie.Z,null));if(Ar==="BPROGRAM")return a.createElement(a.Fragment,null,a.createElement(ke.default,{form:Js,style:{marginTop:20},onFinishFailed:Bu=>{var Zo,yi;Bu.errorFields[0].name.includes("standard_answers")?Se.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):Se.ZP.error(Bu.errorFields[0].errors[0]),Js.scrollToField((yi=(Zo=Bu==null?void 0:Bu.errorFields)==null?void 0:Zo[0])==null?void 0:yi.name,{behavior:"smooth",block:"center"})},onFinish:Bu=>Ds(void 0,null,function*(){var Zo;let yi=uc(Ms({question_score:Xn.score},Bu),{question_type:8,hack:uc(Ms({},Bu.hack),{difficult:Xn.program_attr.difficult}),hack_codes:uc(Ms({},Bu.hack_codes),{code:Is.Base64.encode((Zo=Bu.hack_codes)==null?void 0:Zo.code)})});Bi&&(yi.is_cover=1);const Oi=yield(0,Le.ZP)(`/api/exercise_questions/${Xn.id}.json`,{method:"put",body:yi});(Oi==null?void 0:Oi.status)===0&&(Se.ZP.success("\u7F16\u8F91\u6210\u529F"),Fd(zr+1)),zo(null)})},a.createElement(jc.tc,{form:Js,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",scoreByBlank:!1,hackidentifier:(_l=Xn==null?void 0:Xn.program_attr)==null?void 0:_l.identifier,answerKey:"standard_answers"}),a.createElement(Ie.Z,null)));if(Ar==="PROGRAM"&&ve.history.push(`/problems/${(Ia=Xn==null?void 0:Xn.program_attr)==null?void 0:Ia.identifier}/edit?type=exercises&express_id=${wl.categoryId}&question_id=${Xn==null?void 0:Xn.id}&score=${Xn==null?void 0:Xn.score}&callback_url=${location.pathname}&select=${zr}&exercise=true`),Ar==="PRACTICAL")return a.createElement(a.Fragment,null,a.createElement(er,{ref:ar,editData:Xn,isEdit:!0}),a.createElement(Ie.Z,null))},d0=(Xn,Ar)=>Ds(void 0,null,function*(){var _l,Ia,Bu,Zo,yi,Oi;const uo=yield(_l=ar.current)==null?void 0:_l.onSave();if(!uo)return;const As=dl=>{const qs=dl.map(be=>be.choice_text.trim().replace(/^\s+|\s+$/g,""));return new Set(qs).size!==qs.length},Mi={question_score:Ar.score,analysis:uo.analysis};if(Xn==="SINGLE"||Xn==="MULTIPLE"||Xn==="JUDGMENT"){if(Xn!=="JUDGMENT"&&As(uo==null?void 0:uo.choices)){Se.ZP.error("\u9009\u62E9\u9898\u9009\u9879\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58");return}const dl=[],qs=[];Mi.question_type=Xn==="JUDGMENT"?2:1,Mi.question_title=uo==null?void 0:uo.name,(Ia=uo==null?void 0:uo.choices)==null||Ia.forEach((Fc,be)=>{dl.push(Fc.choice_text),Fc!=null&&Fc.is_answer&&qs.push(be+1)}),Mi.question_choices=dl,Mi.standard_answers=qs}if(Xn==="COMPLETION"){let dl=(Bu=uo==null?void 0:uo.standard_answers)==null?void 0:Bu.map((be,Te)=>(be==null?void 0:be.score)<=0?Te+1:null).filter(be=>be!==null);if((dl==null?void 0:dl.length)>0)return Se.ZP.warning(`\u7B2C${dl.join("\u3001")}\u9879\u7684\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A`),!1;let qs=(Zo=uo==null?void 0:uo.standard_answers)==null?void 0:Zo.reduce((be,Te)=>be+(Number(Te==null?void 0:Te.score)||0),0);if(parseFloat(qs.toFixed(2))!=(Mi==null?void 0:Mi.question_score))return Se.ZP.warning("\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E\u8BE5\u5C0F\u9898\u5206\u503C\uFF01"),!1;Mi.is_ordered=uo.is_ordered,Mi.question_title=uo==null?void 0:uo.name,Mi.use_blank_score=uo==null?void 0:uo.use_blank_score,Mi.question_type=3;const Fc=[];(yi=uo==null?void 0:uo.standard_answers)==null||yi.forEach((be,Te)=>{Fc.push({choice_id:be.position,answer_text:be.answer_text,score:be.score})}),Mi.standard_answers=Fc,Mi.downcase=uo==null?void 0:uo.downcase,Mi.no_space=uo==null?void 0:uo.no_space}if(Xn==="SUBJECTIVE"&&(console.log("editorData"),console.log(uo),Mi.question_title=uo==null?void 0:uo.name,Mi.question_type=4,Mi.answer_texts=uo==null?void 0:uo.answer_texts,Mi.use_keywords=uo==null?void 0:uo.use_keywords,Mi.keywords=uo==null?void 0:uo.keywords),Xn==="COMBINATION"){Mi.question_title=uo==null?void 0:uo.name,Mi.question_type=7;try{Mi.sub_questions=(Oi=uo==null?void 0:uo.sub_item_banks)==null?void 0:Oi.map((dl,qs)=>{var Fc,be,Te;if((dl==null?void 0:dl.item_type)=="single"||(dl==null?void 0:dl.item_type)=="multiple"){if(As(dl==null?void 0:dl.choices))throw new Error(`\u7B2C${qs+1}\u5C0F\u9898\u9009\u9879\u5185\u5BB9\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58`);const at=[],Et=[];return(Fc=dl==null?void 0:dl.choices)==null||Fc.forEach((rn,Mn)=>{at.push(rn.choice_text),rn!=null&&rn.is_answer&&Et.push(Mn+1)}),{id:dl.id,question_id:dl.id,question_title:dl.name,difficulty:dl.difficulty,question_type:(dl==null?void 0:dl.item_type)=="single"?0:(dl==null?void 0:dl.item_type)=="multiple"?1:2,question_choices:at,standard_answers:Et,analysis:dl.analysis,question_score:dl==null?void 0:dl.score}}else if((dl==null?void 0:dl.item_type)=="completion"){let at=(be=dl==null?void 0:dl.standard_answer)==null?void 0:be.reduce((rn,Mn)=>rn+(Number(Mn==null?void 0:Mn.score)||0),0);if(parseFloat(at.toFixed(2))!=(dl==null?void 0:dl.score))throw new Error("\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E\u8BE5\u5C0F\u9898\u5206\u503C\uFF01");const Et=[];return(Te=dl==null?void 0:dl.standard_answer)==null||Te.forEach((rn,Mn)=>{Et.push({choice_id:rn.position,answer_text:rn.answer_text,score:rn.score})}),{id:dl.id,question_id:dl.id,is_ordered:dl.is_ordered,question_title:dl.name,difficulty:dl.difficulty,question_type:3,standard_answers:Et,use_blank_score:dl.use_blank_score,analysis:dl.analysis,downcase:dl==null?void 0:dl.downcase,no_space:dl==null?void 0:dl.no_space,question_score:dl==null?void 0:dl.score}}else if((dl==null?void 0:dl.item_type)=="subjective")return{id:dl.id,question_id:dl.id,question_title:dl.name,question_type:4,difficulty:dl.difficulty,answer_texts:dl==null?void 0:dl.answer_texts,analysis:dl.analysis,question_score:dl==null?void 0:dl.score,use_keywords:dl.use_keywords,keywords:dl==null?void 0:dl.keywords}})}catch(dl){Se.ZP.warning(dl.message);return}delete Mi.analysis}let Bc=!1;(Ar==null?void 0:Ar.is_my)===1&&(Bc=yield new Promise((qs,Fc)=>{xe.default.confirm({title:"\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",keyboard:!1,onOk:()=>{qs(!0)},onCancel:()=>{qs(!1)}})})),Bc&&(Mi.is_cover=1);const gd=Xn!=="PRACTICAL"?yield(0,Le.ZP)(`/api/exercise_questions/${Ar.id}.json`,{method:"put",body:Mi}):yield(0,Le.ZP)(`/api/exercise_questions/${Ar.id}/update_shixun_score.json`,{method:"post",body:Ms({},uo)});(gd==null?void 0:gd.status)===0&&(Se.ZP.success("\u7F16\u8F91\u6210\u529F"),Fd(zr+1),zo(null))}),_d=()=>Ds(void 0,null,function*(){(0,ve.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u66F4\u65B0\u8BD5\u5377\uFF0C\u8BF7\u7A0D\u540E..."}}),(yield(0,Le.ZP)(`/api/exercises/${wl.categoryId}/sync_random_question.json`,{method:"post"})).status===0&&(yield ql(zr),Se.ZP.success("\u66F4\u65B0\u6210\u529F")),(0,ve.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1}})}),Ud=({value:Xn}={})=>{var Ar;const _l=[];let Ia=[];const Bu=(Ar=Xn==null?void 0:Xn.choices)==null?void 0:Ar.map((yi,Oi)=>{var uo;const As=Oi+1;return yi!=null&&yi.is_answer&&(_l.push(As),Ia.push(As)),{value:As,label:a.createElement(fe.Z,{className:"c-black font14",value:`${(uo=Ks.k4)==null?void 0:uo[Oi]}. ${yi==null?void 0:yi.choice_text}`}),disabled:yi==null?void 0:yi.origin_standard_answer}}),Zo=xe.default.confirm({centered:!0,icon:null,title:"\u589E\u8BBE\u6B63\u786E\u7B54\u6848",width:800,content:a.createElement(a.Fragment,null,"\u5F53\u524D\u8BD5\u9898\u7684\u6B63\u786E\u7B54\u6848\u4E3A ",_l==null?void 0:_l.map(yi=>{var Oi;return(Oi=Ks.k4)==null?void 0:Oi[yi-1]}),"\uFF0C\u8BF7\u9009\u62E9\u9700\u8981\u589E\u8BBE\u4E3A\u6B63\u786E\u7B54\u6848\u7684\u9009\u9879\u3002",a.createElement("br",null),"\u52FE\u9009\u63D0\u4EA4\u4E4B\u540E\uFF0C\u9009\u4E2D\u589E\u8BBE\u4E3A\u6B63\u786E\u7B54\u6848\u4EFB\u4E00\u9009\u9879\u7684\u5B66\u751F\u4E5F\u4F1A\u83B7\u5F97\u8BE5\u5C0F\u9898\u7684\u5206\u503C\uFF0C\u4F46\u4E0D\u4F1A\u4FEE\u6539\u5F53\u524D\u8BD5\u9898\u7684\u9898\u578B\u3002\u53D6\u6D88\u52FE\u9009\u63D0\u4EA4\u4E4B\u540E\uFF0C\u4E5F\u4F1A\u91CD\u65B0\u8BA1\u7B97\u5BF9\u5E94\u5B66\u751F\u7684\u5F97\u5206\u3002",a.createElement("br",null),a.createElement(ze.default.Group,{className:"flex-col mt20",options:Bu,defaultValue:Ia,onChange:yi=>{Ia=yi}})),onOk:()=>Ds(void 0,null,function*(){const yi=yield(0,Le.ZP)(`/api/exercises/${wl.categoryId}/questions/${Xn==null?void 0:Xn.id}/add_standard_answers.json`,{method:"put",body:{standard_answer:Ia}});(yi==null?void 0:yi.status)===0&&(Se.ZP.success("\u4FEE\u6539\u6210\u529F"),Fd(zr+1))})})},Nd=(Yl=wt==null?void 0:wt.questionList)==null?void 0:Yl.reduce((Xn,Ar)=>Xn+Number(Ar.questions_score),0),js=Or&&((Ol=wt==null?void 0:wt.exam)==null?void 0:Ol.exercise_status)!==1,ud=Xn=>Ds(void 0,null,function*(){const Ar=yield(0,Le.ZP)(`/api/courses/${wl==null?void 0:wl.coursesId}/sync_shixuns.json`,{method:"post",body:{exercise_ids:[wl==null?void 0:wl.categoryId],exercise_question_id:Xn.id}});(Ar==null?void 0:Ar.status)===0&&(Al({type:"classroomList/setActionTabs",payload:{}}),Se.ZP.info("\u5B9E\u8BAD\u540C\u6B65\u4E2D\uFF0C\u8BF7\u7A0D\u540E"))}),cs=(Xn,Ar)=>Ds(void 0,null,function*(){let _l=yield(0,Le.ZP)(`/api/courses/${wl==null?void 0:wl.coursesId}/ignore_prompt.json`,{method:"post",body:{container_type:"Exercise",container_id:wl==null?void 0:wl.categoryId,exercise_question_id:Xn==null?void 0:Xn.id}});(_l==null?void 0:_l.status)===0&&(Vo[Ar]=!1,bs([...Vo]))});return a.createElement("section",{className:Ce.wrap},a.createElement("div",{id:"id_left_preview",className:Ce.left,onMouseEnter:Xn=>{const Ar=document.getElementById("id_left_preview");Ar.style.overflowY="auto"},onMouseLeave:Xn=>{const Ar=document.getElementById("id_left_preview");Ar.style.overflowY="hidden"}},a.createElement("div",{className:Ce.title},a.createElement("div",{className:"body-overflow-initial"},a.createElement("b",null),a.createElement("span",null,"\u7B54\u9898\u5361"))),a.createElement("div",{className:Ce.total},a.createElement("div",null,a.createElement("img",{src:lt}),a.createElement("span",null,"\u9898\u6570(\u9053)"),a.createElement("aside",null,wt==null?void 0:wt.all_questions_count)),a.createElement("div",{className:"mr30 ml30"},a.createElement("img",{src:ot}),a.createElement("span",null,"\u603B\u5206(\u5206)"),a.createElement("aside",null,Nd&&Nd.toFixed(1))),a.createElement("div",null,a.createElement("img",{src:ye}),a.createElement("span",null,"\u65F6\u957F(\u5206)"),a.createElement("aside",null,((Mu=wt==null?void 0:wt.exam)==null?void 0:Mu.time)===-1||((Lr=wt==null?void 0:wt.exam)==null?void 0:Lr.time)===null?"\u4E0D\u9650":(Tr=wt==null?void 0:wt.exam)==null?void 0:Tr.time))),(Ml=wt==null?void 0:wt.questionList)==null?void 0:Ml.map((Xn,Ar)=>{var _l;return a.createElement("div",{className:Ce.list,key:Ar},a.createElement("div",{className:Ce.name},a.createElement("b",null),a.createElement("span",null,Xn.name)),a.createElement("aside",null,a.createElement("div",null,"\u5171",a.createElement("span",{className:Ce.b},Xn.questions_count),"\u9898 ",a.createElement("span",{className:Ce.l},"|"),"\u5171",a.createElement("span",{className:Ce.r},Xn.questions_score),"\u5206"),a.createElement("div",{className:Ce.answerSheet},(_l=Xn==null?void 0:Xn.questions)==null?void 0:_l.map((Ia,Bu)=>a.createElement("div",{onClick:()=>{const Zo=`Anchor_${Ia==null?void 0:Ia.id}`;let yi=document.getElementById(Zo);yi&&setTimeout(()=>yi.scrollIntoView({block:"center",behavior:"smooth"}))},key:Ia==null?void 0:Ia.id,className:Ce.tag},Bu+1)))))})),a.createElement("div",{className:Ce.right},a.createElement("div",{className:Ce.examName,id:"examName"},a.createElement("div",{className:Ce.name},a.createElement(he.Z,{title:(hl=wt==null?void 0:wt.exam)==null?void 0:hl.name,getPopupContainer:Xn=>Xn.parentNode},a.createElement("span",{className:Ce.t},(co=wt==null?void 0:wt.exam)==null?void 0:co.name))),Or&&((Tu=wt==null?void 0:wt.exam)==null?void 0:Tu.exercise_status)===1&&a.createElement(ba.op,{openLoading:!0,shape:"default",onClick:()=>{xe.default.confirm({title:"\u63D0\u793A",content:"\u786E\u8BA4\u6839\u636E\u6700\u65B0\u7684\u968F\u673A\u7EC4\u5377\u62BD\u9898\u89C4\u5219\u91CD\u65B0\u751F\u6210\u8BD5\u5377\u5417\uFF1F",onOk:()=>{_d()}})},type:"primary"},"\u66F4\u65B0\u8BD5\u5377"),!Or&&a.createElement(Fe.ZP,{onClick:Ld,type:"primary"},"\u968F\u673A\u66F4\u6362")),a.createElement("div",{className:Ce.topWarp},(hr=wt==null?void 0:wt.questionList)==null?void 0:hr.map((Xn,Ar)=>{var _l,Ia;return a.createElement(a.Fragment,{key:Ar},a.createElement("div",{className:Ce.head,style:Ar===0?{border:0,marginTop:-16}:{}},a.createElement("div",{className:Ce.name},a.createElement("b",null),a.createElement("span",null,Xn.name)),a.createElement("div",{className:Ce.so},"\u5171",a.createElement("span",{className:Ce.b},Xn.questions_count," "),"\u9898 ",Xn.type==="COMBINATION"&&`\uFF08\u5305\u542B${(_l=Xn==null?void 0:Xn.questions)==null?void 0:_l.map(Bu=>{var Zo;return(Zo=Bu==null?void 0:Bu.sub_item_banks)==null?void 0:Zo.length}).reduce((Bu,Zo)=>Bu+Zo)}\u5C0F\u9898\uFF09`,a.createElement("span",{className:Ce.l},"|"),"\u5171",a.createElement("span",{className:Ce.r},Xn.questions_score),"\u5206"),!Or&&a.createElement("div",{className:Ce.btn},a.createElement(Fe.ZP,{onClick:()=>{Zc(Xn)},type:"primary",ghost:!0,className:"mr20"},"\u8BBE\u7F6E\u5F97\u5206"),a.createElement(Fe.ZP,{onClick:()=>Id(Xn),type:"primary",ghost:!0},"\u968F\u673A\u66F4\u6362"))),(Ia=Xn==null?void 0:Xn.questions)==null?void 0:Ia.map((Bu,Zo)=>{var yi,Oi,uo,As,Mi;return Mr===(Bu==null?void 0:Bu.id)?a.createElement("div",{id:`Anchor_${Bu==null?void 0:Bu.id}`,className:Ce.content,style:{padding:0,marginTop:24},key:Bu==null?void 0:Bu.id},a.createElement("div",{style:{float:"right",marginTop:`${(Xn==null?void 0:Xn.type)==="PRACTICAL"?"-2px":"-6px"}`}},a.createElement(Fe.ZP,{onClick:()=>zo(null),className:"mr20",type:"primary",ghost:!0},"\u53D6\u6D88"),a.createElement(Fe.ZP,{onClick:()=>{d0(Xn==null?void 0:Xn.type,Bu)},type:"primary"},"\u4FDD\u5B58")),md(Bu,Xn.type)):a.createElement("div",{id:`Anchor_${Bu==null?void 0:Bu.id}`,className:Ce.content,key:Bu==null?void 0:Bu.id},a.createElement("div",{className:Ce.titleWrap},(Bu==null?void 0:Bu.item_type)==="bprogram"?a.createElement(fe.Z,{style:{paddingRight:10},value:Zo+1+"\u3001"+((yi=Bu==null?void 0:Bu.program_attr)==null?void 0:yi.description)}):a.createElement(fe.Z,{style:{paddingRight:10},className:Ce.titleHtml,value:Zo+1+`\u3001${(Bu==null?void 0:Bu.item_type)==="combination"?"\uFF08\u9898\u5E72\uFF09":""}`+(Bu==null?void 0:Bu.name)}),(0,Ec.G5)()&&((Oi=Bu==null?void 0:Bu.shixun)==null?void 0:Oi.shixun_change)&&a.createElement(Me.Z,{trigger:"click",open:Vo[Zo],onOpenChange:Bc=>{Vo[Zo]=!0,bs([...Vo])},placement:"bottomLeft",autoAdjustOverflow:!1,title:null,content:a.createElement("div",{style:{width:"310px",color:"#000"}},a.createElement("div",null,"\u5B9E\u8BAD\u7BA1\u7406\u5458\u5BF9\u8BD5\u5377\u4E2D\u4F7F\u7528\u7684\u5B9E\u8DF5\u9879\u76EE\u8FDB\u884C\u4E86\u4FEE\u6539\uFF0C\u8BF7\u68C0\u67E5\u540E\uFF0C\u786E\u8BA4\u662F\u5426\u9700\u8981\u540C\u6B65\u5230\u8BD5\u5377\u4E2D"),a.createElement("div",{className:Ce.btn_warp},a.createElement(Fe.ZP,{size:"small",onClick:()=>cs(Bu,Zo)},"\u5FFD\u7565"),a.createElement(Fe.ZP,{className:"ml20",size:"small",type:"primary",onClick:()=>{Vo[Zo]=!1,bs([...Vo]),Al({type:"classroomList/setActionTabs",payload:{key:"\u5B9E\u8BAD\u540C\u6B65\u786E\u8BA4",onOK:()=>ud(Bu)}})}},"\u786E\u8BA4\u540C\u6B65"),a.createElement(Fe.ZP,{className:"ml20",size:"small",type:"primary",onClick:()=>(0,Ne.xg)(`/shixuns/${Bu==null?void 0:Bu.forked_shixun_identifier}/challenges?exercise=true`)},"\u524D\u5F80\u67E5\u770B")))},a.createElement("i",{className:"iconfont icon-tongzhi1 pl10 current",style:{fontSize:"16px",color:"#F7B500"},onClick:Bc=>Bc.stopPropagation()})),Or&&a.createElement(Fe.ZP,{onClick:()=>{var Bc,gd,dl;if(Mr){Se.ZP.warning("\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898");return}Js.setFieldsValue({standard_answers:Bu==null?void 0:Bu.standard_answer,hack:Ms(Ms({},Bu),Bu==null?void 0:Bu.program_attr),hack_codes:uc(Ms({},Bu==null?void 0:Bu.program_attr),{code:Is.Base64.decode(((Bc=Bu==null?void 0:Bu.program_attr)==null?void 0:Bc.code)||"")}),hack_sets:Ms({},(gd=Bu==null?void 0:Bu.hack_sets)==null?void 0:gd[0])}),(Bu==null?void 0:Bu.item_type)=="program"?ve.history.push(`/problems/newedit/${(dl=Bu==null?void 0:Bu.program_attr)==null?void 0:dl.identifier}?type=exercises&express_id=${wl.categoryId}&question_id=${Bu==null?void 0:Bu.id}&score=${Bu==null?void 0:Bu.score}&exercise=true&callback_url=/classrooms/${wl.coursesId}/exercise/${wl.categoryId}/detail?random=true`):zo(Bu==null?void 0:Bu.id)},type:"primary",style:{marginLeft:"auto"},ghost:!0},"\u7F16\u8F91"),!js&&a.createElement(Fe.ZP,{disabled:js,className:"ml20",onClick:()=>Qd(Bu==null?void 0:Bu.id,Xn.type,Zo,Xn),type:"primary",ghost:!0},"\u6362\u4E00\u9898")),(Bu==null?void 0:Bu.item_type)==="bprogram"&&a.createElement(fe.Z,{style:{paddingRight:10,paddingLeft:25},showProgramFill:!0,disabledFill:!0,className:Ce.titleHtml,value:Is.Base64.decode(((uo=Bu==null?void 0:Bu.program_attr)==null?void 0:uo.code)||"")}),(Xn.type==="SINGLE"||Xn.type==="JUDGMENT"||Xn.type==="MULTIPLE")&&Kc(Bu),Xn.type==="COMPLETION"&&Xl(Bu),Xn.type==="SUBJECTIVE"&&xc(Bu),Xn.type==="PROGRAM"&&Yc(Bu),Xn.type==="BPROGRAM"&&hc(Bu),Xn.type==="COMBINATION"&&qo(Bu,Zo),Xn.type==="PRACTICAL"&&ad(Bu),a.createElement(me.Z,{className:"mt20",wrap:!1,align:"middle",gutter:20},((As=wt==null?void 0:wt.exam)==null?void 0:As.exercise_status)===3&&!["PROGRAM","BPROGRAM","PRACTICAL","COMBINATION"].includes(Xn.type)&&a.createElement(oe.Z,null,a.createElement(Cc.Z,{state:Bu==null?void 0:Bu.is_wrong,onClick:()=>{xu==null||xu({value:uc(Ms({},Bu),{question_id:Bu==null?void 0:Bu.id,question_score:Bu==null?void 0:Bu.score})})}})),["PROGRAM","BPROGRAM","PRACTICAL"].includes(Xn.type)&&(Bu==null?void 0:Bu.show_resubmit)&&a.createElement(oe.Z,null,a.createElement(dc.C,{dataSource:uc(Ms({},Bu),{question_id:Bu==null?void 0:Bu.id})})),((Mi=wt==null?void 0:wt.exam)==null?void 0:Mi.exercise_status)===3&&["SINGLE"].includes(Xn.type)&&a.createElement(oe.Z,null,a.createElement(Fe.ZP,{style:{color:"#3061D0"},onClick:()=>{Ud({value:Bu})}},"\u589E\u8BBE\u6B63\u786E\u7B54\u6848"))))}))}))),Or?a.createElement(ba.vr,null,a.createElement(E.Z,{showTotal:Ne.rU,total:(Yr=wt==null?void 0:wt.exam)==null?void 0:Yr.total_num,pageSize:1,current:zr+1,showSizeChanger:!1,onChange:Fd,showQuickJumper:!1,hideOnSinglePage:!1})):a.createElement(ba.vr,{LeftContent:a.createElement(ba.op,{onClick:gn,shape:"default",style:{height:38,background:"#fff",boxShadow:"none"}},"\u8FD4\u56DE"),RightContent:a.createElement(me.Z,{align:"middle"},a.createElement(Me.Z,{color:"#55575D",overlayClassName:Ce.popover,open:Jo,getPopupContainer:Xn=>Xn==null?void 0:Xn.parentNode,content:"\u5982\u60A8\u5BF9\u6B64\u4EFD\u8BD5\u9898\u6EE1\u610F\uFF0C\u53EF\u5C06\u6B64\u4EFD\u8BD5\u9898\u4FDD\u5B58\u4E3A\u56FA\u5B9A\u8BD5\u5377"},a.createElement(ba.op,{onMouseEnter:()=>wi(!0),onMouseLeave:()=>wi(!1),onClick:()=>qd(),shape:"default",style:{height:38,background:"#fff",boxShadow:"none"}},"\u4FDD\u5B58")),a.createElement(ba.op,{shape:"default",type:"primary",onClick:()=>_t(),style:{height:38,marginLeft:20}},"\u63D0\u4EA4"))}),a.createElement(Mc,{visible:ys,questionParams:Xs.current,getdata:yu,onRandomExchange:()=>Ds(void 0,null,function*(){const Xn=Xs.current;yield su({single_question_id:Xn.id,seleted_item_bank_ids:Xn.ids},{type:Xn.type,index:Xn.index}),Ul(!1)}),selectFromProblemSet:()=>{const Xn=Xs.current,Ar=`${location.pathname}${location.search}`;Ar.includes("exercise")&&ve.history.push(`/paperlibrary/exchangequestion?type=exercise&qid=${Xn.id}&qtype=${Xn.type}&exerciseid=${wl.categoryId}&from=${Ar}`)},onCancel:()=>{Ul(!1)}}))};var Gc=(0,ve.connect)(({classroomList:wt})=>({classroomList:wt}))(cd)},72911:function(Ft,rt,z){"use strict";z.r(rt),z.d(rt,{default:function(){return b}});var a=z(67294),Ce=z(35973),ke={flex_box_center:"flex_box_center___kQBcj",flex_space_between:"flex_space_between___Znlbo",flex_box_vertical_center:"flex_box_vertical_center___CPD50",flex_box_center_end:"flex_box_center_end___jzPvK",flex_box_column:"flex_box_column___cvIBS",wrap:"wrap___lab8O",crumbs:"crumbs___qvTza"},he=z(38884),Fe=z(2453),xe=z(48054),pe=z(33170),Se=z(28706),Ae=z(67294),Ie=Object.defineProperty,ze=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,oe=(ee,te,ne)=>te in ee?Ie(ee,te,{enumerable:!0,configurable:!0,writable:!0,value:ne}):ee[te]=ne,E=(ee,te)=>{for(var ne in te||(te={}))Me.call(te,ne)&&oe(ee,ne,te[ne]);if(ze)for(var ne of ze(te))me.call(te,ne)&&oe(ee,ne,te[ne]);return ee},y=(ee,te,ne)=>new Promise((de,ye)=>{var fe=Le=>{try{Ne(ne.next(Le))}catch(Re){ye(Re)}},ve=Le=>{try{Ne(ne.throw(Le))}catch(Re){ye(Re)}},Ne=Le=>Le.done?de(Le.value):Promise.resolve(Le.value).then(fe,ve);Ne((ne=ne.apply(ee,te)).next())});const x=({paperlibrary:ee,user:te,globalSetting:ne,dispatch:de,location:ye})=>{var fe,ve,Ne,Le;const[Re]=(0,Ce.useSearchParams)(),He=Re.get("select")||0,[We,Ge]=(0,a.useState)(!1),[Ue,Ye]=(0,a.useState)(!0),[it,lt]=(0,a.useState)(Number(He)),[Bt,ct]=(0,a.useState)({}),nt=(0,Ce.useParams)(),{userInfo:Ze}=te,{actionTabs:yt}=ee;(0,a.useEffect)(()=>(de({type:"globalSetting/footerToggle",payload:!1}),()=>{de({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,a.useEffect)(()=>(de({type:"globalSetting/onlyShowBackTopToggle",payload:!1}),de({type:"globalSetting/onlyShowBackTopIconToggle",payload:!1}),de({type:"exercise/getWorkSetting",payload:E({},nt)}),()=>{de({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),de({type:"globalSetting/onlyShowBackTopIconToggle",payload:!0})}),[]),(0,a.useEffect)(()=>{ht(it)},[]),(0,a.useEffect)(()=>{var st;(st=yt==null?void 0:yt.params)!=null&&st.isUpdateData&&ht(it)},[(fe=yt==null?void 0:yt.params)==null?void 0:fe.isUpdateData]);const ht=(st=0)=>y(void 0,null,function*(){console.log(nt),Ye(!0);const ut=yield(0,pe.ZP)(`/api/exercises/${nt.categoryId}/preview_random_exercise.json`,{method:"get",params:{num:st}});de({type:"paperlibrary/setActionTabs",payload:{params:{isUpdateData:!1}}}),Ye(!1),ct((0,Se.PF)(ut))}),Je=()=>{Ce.history.push(`/classrooms/${nt.coursesId}/exercise`)},ot=()=>{alert("\u4FDD\u5B58")},Ct=(st,ut)=>y(void 0,null,function*(){const un=yield(0,pe.ZP)(`/api/exercises/${nt.categoryId}/toggle_random_question.json`,{method:"post",body:{question_id:st==null?void 0:st.single_question_id}});un!=null&&un.question&&(Fe.ZP.info("\u6362\u9898\u6210\u529F"),ht(it))}),kt=st=>y(void 0,null,function*(){document.body.scrollIntoView(),lt(st),yield ht(st)}),Mt=st=>{de({type:"exercise/setActionTabs",payload:{key:"\u6807\u8BB0\u9519\u9898",params:st}})};return console.log((0,Ce.useLocation)(),"location333"),Ae.createElement("section",{className:ke.wrap},Ae.createElement(xe.Z,{loading:Ue,active:!0,paragraph:{rows:5}},((Ne=(ve=(0,Ce.useLocation)())==null?void 0:ve.pathname)==null?void 0:Ne.includes("preview"))&&Ae.createElement("div",{className:ke.crumbs},Ae.createElement("b",null),Ae.createElement("span",{className:"current",onClick:()=>Ce.history.push(`/classrooms/${nt.coursesId}/exercise`)},`${(Le=Ze==null?void 0:Ze.course)==null?void 0:Le.course_name}>`),Ae.createElement("span",{className:"current",onClick:()=>Ce.history.push(`/classrooms/${nt.coursesId}/exercise`)},"\u8BD5\u5377\u5217\u8868>"),Ae.createElement("span",{style:{color:"#bebebe"}},"\u9884\u89C8")),Ae.createElement(he.Z,{loading:We,submit:ot,goBack:Je,data:Bt,getdata:()=>{ht(it)},selectValue:it,editPreview:!0,onExchange:Ct,onSkipExamination:kt,handleMarkWrongQuestion:Mt})))};var b=(0,Ce.connect)(({paperlibrary:ee,user:te,globalSetting:ne})=>({paperlibrary:ee,user:te,globalSetting:ne}))(x)},72971:function(Ft,rt,z){"use strict";z.d(rt,{Im:function(){return Le},ZP:function(){return Ye},gZ:function(){return Ge}});var a=z(67294),Ce=z(28802),ke=z(85804),he=z(42922),Fe=z(53978),xe=z(94189),pe=z(19575),Se=z(7621),Ae=z(65226),Ie=z(28706),ze=z(38658),Me=z(12320),me=z(94184),oe=z.n(me),E=z(67294),y=Object.defineProperty,x=Object.defineProperties,b=Object.getOwnPropertyDescriptors,ee=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,de=(it,lt,Bt)=>lt in it?y(it,lt,{enumerable:!0,configurable:!0,writable:!0,value:Bt}):it[lt]=Bt,ye=(it,lt)=>{for(var Bt in lt||(lt={}))te.call(lt,Bt)&&de(it,Bt,lt[Bt]);if(ee)for(var Bt of ee(lt))ne.call(lt,Bt)&&de(it,Bt,lt[Bt]);return it},fe=(it,lt)=>x(it,b(lt));const{TextArea:ve}=Ce.default,Ne={visible:!1,tabIndex:"0"},Le={[xe.h.HIDE_COMPILE_STATUS]:"\u6682\u4E0D\u652F\u6301\u67E5\u770B",[xe.h.NOMATCH]:"\u6D4B\u8BD5\u7528\u4F8B\u7ED3\u679C\u4E0D\u5339\u914D",[xe.h.OK]:"\u8C03\u8BD5\u901A\u8FC7",2:"\u8C03\u8BD5\u8D85\u65F6",3:"\u8C03\u8BD5pod\u5931\u8D25",4:"\u7F16\u8BD1\u5931\u8D25",5:"\u6267\u884C\u5931\u8D25"};var Re=(it=>(it[it.SET_VISIBLE=0]="SET_VISIBLE",it[it.SET_TABINDEX=1]="SET_TABINDEX",it))(Re||{});function He(it,lt){switch(lt.type){case 0:return fe(ye({},it),{visible:lt.payload});case 1:return fe(ye({},it),{tabIndex:lt.payload});default:throw new Error}}function We({value:it,className:lt}){const[Bt,ct]=(0,a.useState)(!1),nt=(0,a.useRef)(),Ze=(0,a.useRef)();return(0,a.useEffect)(()=>{Bt&&(Ze.current.reset(),Ze.current.write((0,Ie.pp)(it||"")))},[it,Bt]),(0,a.useEffect)(()=>{var yt,ht,Je,ot;if(nt.current){Ze.current=new Me.Terminal({fontSize:14,disableStdin:!0}),Ze.current.open(nt.current);const Ct=nt.current.offsetWidth-14,kt=((ot=(Je=(ht=(yt=Ze.current)==null?void 0:yt._core)==null?void 0:ht._renderService)==null?void 0:Je.dimensions)==null?void 0:ot.actualCellWidth)||9.5,Mt=Math.ceil(Ct/kt);Ze.current.resize(Mt,8),ct(!0)}},[]),E.createElement("div",{ref:nt,className:oe()("XtermText-valueRef",lt)})}function Ge(it){const{status:lt,error_msg:Bt,output:ct,input:nt,expected_output:Ze,is_file:yt,input_file_url:ht,output_file_url:Je,expected_output_file_url:ot}=it;let Ct=null;const kt={minHeight:150,marginBottom:10,paddingLeft:24,background:"#070f19",color:"#fff"};switch(lt){case xe.h.NOMATCH:Ct=E.createElement(E.Fragment,null,E.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u5165\uFF1A"),!yt&&E.createElement(We,{className:"mb10",value:nt}),yt&&E.createElement("div",{style:kt},E.createElement("a",{onClick:()=>(0,Ie.LR)(ht,nt)},nt)),E.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u51FA\uFF1A"),!yt&&E.createElement(We,{className:"mb10",value:ct&&pe.Base64.decode(ct)||""}),yt&&E.createElement("div",{style:kt},E.createElement("a",{onClick:()=>(0,Ie.LR)(Je,ct)},ct)),E.createElement("p",{className:"c-red"},"\u9884\u671F\u8F93\u51FA\uFF1A"),!yt&&E.createElement(We,{className:"mb10",value:Ze&&pe.Base64.decode(Ze)||""}),yt&&E.createElement("div",{style:kt},E.createElement("a",{onClick:()=>(0,Ie.LR)(ot,Ze)},Ze)));break;case xe.h.EXECUTEFAILURE:Ct=E.createElement(E.Fragment,null,E.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!yt&&E.createElement(Ae.Z,{value:nt,style:kt}),yt&&E.createElement("div",{style:kt},E.createElement("a",{onClick:()=>(0,Ie.LR)(ht,nt)},nt)),E.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),E.createElement("pre",{className:"error"},pe.Base64.decode(Bt)));break;case xe.h.COMPILEFAILURE:Ct=E.createElement(E.Fragment,null,E.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!yt&&E.createElement(Ae.Z,{value:nt,style:kt}),yt&&E.createElement("div",{style:kt},E.createElement("a",{onClick:()=>(0,Ie.LR)(ht,nt)},nt)),E.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),E.createElement("pre",{className:"error"},pe.Base64.decode(Bt)));break;case xe.h.PODFAILURE:Ct=E.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case xe.h.TIMEOUT:Ct=E.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return E.createElement(E.Fragment,null," ",Ct," ")}function Ue(it){const{status:lt,error_msg:Bt,execute_time:ct,output:nt,input:Ze,expected_output:yt,is_file:ht,input_file_url:Je,output_file_url:ot,expected_output_file_url:Ct}=it;let kt=null;switch(lt){case xe.h.OK:kt=E.createElement(E.Fragment,null,E.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",ct,"\u79D2"),E.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A"),E.createElement("pre",null,pe.Base64.decode(nt)));break;case xe.h.NOMATCH:kt=E.createElement(E.Fragment,null,E.createElement("p",null,"\u8F93\u5165\uFF1A",E.createElement("pre",null,Ze)),E.createElement("p",null,"\u8F93\u51FA\uFF1A",nt&&pe.Base64.decode(nt)),E.createElement("p",null,"\u9884\u671F\u8F93\u51FA\uFF1A",yt&&pe.Base64.decode(yt)));break;case xe.h.EXECUTEFAILURE:kt=E.createElement(E.Fragment,null,E.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",E.createElement("pre",null,Ze)),E.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),E.createElement("pre",{className:"error"},pe.Base64.decode(Bt)));break;case xe.h.COMPILEFAILURE:kt=E.createElement(E.Fragment,null,E.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",E.createElement("pre",null,Ze)),E.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),E.createElement("pre",{className:"error"},pe.Base64.decode(Bt)));break;case xe.h.PODFAILURE:kt=E.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case xe.h.TIMEOUT:kt=E.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return E.createElement(E.Fragment,null," ",kt," ")}var Ye=({id:it,is_file:lt,input:Bt,debuging:ct,submitting:nt,executingMessage:Ze,debugResult:yt,onChangeInput:ht,onDebugCode:Je,onSubmitCode:ot})=>{const[Ct,kt]=(0,a.useReducer)(He,Ne),{visible:Mt,tabIndex:st}=Ct;(0,a.useEffect)(()=>{kt({type:0,payload:!1})},[it]);function ut(bt){let An=bt.target.id;kt({type:1,payload:An})}function un(){kt({type:0,payload:!Mt})}const Pn=(0,a.useMemo)(()=>{if(yt){const{status:bt}=yt;return E.createElement(E.Fragment,null,Ue(yt))}return null},[yt]);function Rn(){kt({type:0,payload:!0}),kt({type:1,payload:"1"}),Je()}return E.createElement("div",{className:"test-case-panel"},E.createElement("div",{className:`test-case-panel-body ${Mt?"active":""}`},E.createElement("ul",{className:"s-navs"},E.createElement("li",null,E.createElement("a",{className:"active"},"\u8C03\u8BD5\u4EE3\u7801\u7ED3\u679C"))),E.createElement(ze.Z,{leftTitle:"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B",rightTitle:"\u4EE3\u7801\u6267\u884C\u7ED3\u679C",style:{height:240},leftNode:E.createElement(ve,{placeholder:"\u8BF7\u8F93\u5165\u81EA\u6D4B\u7528\u4F8B\uFF08\u5982\u679C\u672A\u586B\u5199\uFF0C\u9996\u6B21\u81EA\u6D4B\u8FD0\u884C\u65F6\uFF0C\u7CFB\u7EDF\u4F1A\u81EA\u52A8\u586B\u5145\u7B2C\u4E00\u4E2A\u975E\u9690\u85CF\u7684\u6587\u672C\u7C7B\u578B\u7684\u6D4B\u8BD5\u7528\u4F8B\uFF09",value:lt?"":Bt,onChange:ht}),rightNode:ct?E.createElement(Se.Z,{message:"\u4EE3\u7801\u6267\u884C\u4E2D..."}):yt?Pn:E.createElement("p",{style:{color:"#536879"}},"\u8BF7\u586B\u5199\u6D4B\u8BD5\u7528\u4F8B\u7684\u8F93\u5165\u503C\uFF0C\u70B9\u51FB\u201C\u8C03\u8BD5\u4EE3\u7801\u201D")})),E.createElement("a",{className:`btn-collapse ${Mt?"up":""}`,onClick:un},Mt?E.createElement(he.Z,null):E.createElement(Fe.Z,null)),E.createElement("footer",{className:"footer"},E.createElement("span",{style:{visibility:"hidden"}},"\u63A7\u5236\u53F0"),E.createElement("div",{className:"flex-container"},E.createElement(ke.ZP,{id:"oj-prev",className:"btn-blue",type:"ghost"},"\u4E0A\u4E00\u9898"),E.createElement(ke.ZP,{id:"oj-next",className:"btn-blue",type:"ghost"},"\u4E0B\u4E00\u9898"),E.createElement(ke.ZP,{className:"btn-green",type:"ghost",loading:ct,onClick:Rn},"\u8C03\u8BD5\u4EE3\u7801"),E.createElement(ke.ZP,{type:"primary",className:"custom-ant-disabled",loading:nt,disabled:nt,onClick:()=>{kt({type:0,payload:!1}),ot()}},"\u8BC4\u6D4B\u5E76\u63D0\u4EA4"))))}},94189:function(Ft,rt,z){"use strict";z.d(rt,{h:function(){return a}});var a=(Ce=>(Ce[Ce.NOMATCH=-1]="NOMATCH",Ce[Ce.OK=0]="OK",Ce[Ce.TIMEOUT=2]="TIMEOUT",Ce[Ce.PODFAILURE=3]="PODFAILURE",Ce[Ce.COMPILEFAILURE=4]="COMPILEFAILURE",Ce[Ce.EXECUTEFAILURE=5]="EXECUTEFAILURE",Ce[Ce.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",Ce))(a||{})},32259:function(Ft,rt,z){"use strict";z.d(rt,{Y2:function(){return it},ZP:function(){return lt}});var a=z(67294),Ce=z(35059),ke=z(2453),he=z(62844),Fe=z(71230),xe=z(98813),pe=z(85804),Se=z(84567),Ae=z(83062),Ie=z(28802),ze={wrap:"wrap___MkYbQ",colorBlue:"colorBlue___onjbP",repeatedName:"repeatedName___nbqnE",text:"text___xvutp",greyText:"greyText___dihvZ",noData:"noData___LxOJA",dragger:"dragger___y7F4A",uploadText:"uploadText___Et3KS",btnS:"btnS___k1e6j",testCaseRadio:"testCaseRadio___q1wXT",head:"head___s4Eix",operation:"operation___JCAVh",headProgram:"headProgram___uWA_M",listWrapper:"listWrapper___xW3b4",list:"list___dCbd6",del:"del___abNho",info:"info___J1Wmf"},Me="data:image/png;base64,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",me=z(56448),oe=z.n(me),E=z(59451),y=z(33170),x=z(25934),b=z(28706),ee=z(20819),te=z(67294),ne=Object.defineProperty,de=Object.defineProperties,ye=Object.getOwnPropertyDescriptors,fe=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,Le=(Bt,ct,nt)=>ct in Bt?ne(Bt,ct,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Bt[ct]=nt,Re=(Bt,ct)=>{for(var nt in ct||(ct={}))ve.call(ct,nt)&&Le(Bt,nt,ct[nt]);if(fe)for(var nt of fe(ct))Ne.call(ct,nt)&&Le(Bt,nt,ct[nt]);return Bt},He=(Bt,ct)=>de(Bt,ye(ct)),We=(Bt,ct,nt)=>new Promise((Ze,yt)=>{var ht=Ct=>{try{ot(nt.next(Ct))}catch(kt){yt(kt)}},Je=Ct=>{try{ot(nt.throw(Ct))}catch(kt){yt(kt)}},ot=Ct=>Ct.done?Ze(Ct.value):Promise.resolve(Ct.value).then(ht,Je);ot((nt=nt.apply(Bt,ct)).next())});const{Dragger:Ge}=Ce.default,Ue=Bt=>{const ct=kt=>kt&&kt.substring(0,kt.lastIndexOf("."));for(var nt=[...Bt],Ze=0,yt=[],ht=0;ht{if(kt.forEach(Mt=>{let st=Mt.name.split(/\.(?=[^\.]+$)/);Mt.name=`${st[0]}.${st[1].toLowerCase()}`}),kt[0].name.includes(".in"))return kt.length===2?kt:[kt[0],{}];if(kt[0].name.includes(".out"))return kt.length===2?kt.reverse():[{},kt[0]]})},Ye=({onClose:Bt,onOK:ct,visible:nt,wrapClassName:Ze,rootIdentifier:yt,multiple:ht=!1,defaultMultipleValue:Je=!0})=>{const[ot,Ct]=(0,a.useState)([]),[kt,Mt]=(0,a.useState)({}),[st,ut]=(0,a.useState)(!1),[un,Pn]=(0,a.useState)(!0),Rn=(0,a.useRef)([]),bt=(0,a.useRef)(0),An=()=>{Bt()};(0,a.useEffect)(()=>{Nn()},[]),(0,a.useEffect)(()=>{nt&&(Rn.current=[],bt.current=0,Ct([]),Pn(Je))},[nt]);const Nn=()=>We(void 0,null,function*(){try{const St=yield(0,y.ZP)("/api/buckets/get_upload_token_for_big_files",{method:"get"}),Ke=JSON.parse((0,E.pe)(St.data));Mt(Ke)}catch(St){}}),Qt=St=>St&&St.substring(0,St.lastIndexOf(".")),zt=St=>{var Ke,ln;const Un=Qt((Ke=St[0])==null?void 0:Ke.name)||Qt((ln=St[1])==null?void 0:ln.name),Ca=ot.filter(Cu=>Qt(Cu.name)!==Un);Rn.current=[...Ca],Ct([...Ca])},jt=St=>{if(!un){const Da=new FormData;Da.append("file",St.file),(0,y.ZP)("/api/attachments/get_file_content.json",{method:"post",body:Da},!0).then(cu=>{if(cu.status===0){bt.current=bt.current+1;const or=Rn.current.map(Aa=>{var Zt;if(Aa.name===St.name){const xn=Re({},Aa);return(Zt=St==null?void 0:St.name)!=null&&Zt.includes(".in")?xn.input=cu==null?void 0:cu.content:xn.output=cu==null?void 0:cu.content,xn}return Aa});if(Rn.current=[...or],Ct([...or]),bt.current>0&&bt.current===ot.length){ut(!1);let Aa=Ue(or);Aa=Aa.filter(Zt=>{var xn,vl;return!!((xn=Zt[0])!=null&&xn.name&&((vl=Zt[1])!=null&&vl.name))}),Aa=Aa.map(Zt=>He(Re(Re({},Zt[0]),Zt[1]),{is_file:!1})),ct(Aa),Bt()}}else ut(!1),Bt()});return}const Ke=new(oe())({endpoint:kt.end_point,region:kt.region,accessKeyId:kt.access_key_id,accessKeySecret:kt.access_key_secret,bucket:kt.bucket,stsToken:kt.security_token}),ln=St.name,Un={container_type:"TestSet",file_name:ln},Ca=(0,x.Z)();let Cu=`testsets/${yt}/${Ca}${ln.indexOf(".")>-1?"."+ln.split(".").pop():""}`;yt===null&&(Cu=`testsets/${Ca}${ln.indexOf(".")>-1?"."+ln.split(".").pop():""}`),Ke.multipartUpload(Cu,new Blob([St.file],{type:St.file.type}),{timeout:3600*1e3,partSize:1002400,callback:{customValue:{id:ln+""},url:kt==null?void 0:kt.callback_url,host:kt==null?void 0:kt.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,y.rz)(Un)}}).then(function(Da){if(Da.data.status===0){bt.current=bt.current+1;const nr=Rn.current.map(cu=>{var or,Aa,Zt,xn,vl,Er,er,Pa,Za,qn,Vn,Qa,gu,_u,ir,ul,On;if(cu.name===((Aa=(or=Da.data)==null?void 0:or.data)==null?void 0:Aa.file_name)){const Jt=Re({},cu);return(vl=(xn=(Zt=Da.data)==null?void 0:Zt.data)==null?void 0:xn.file_name)!=null&&vl.includes(".in")?(Jt.in_object_key=(er=(Er=Da.data)==null?void 0:Er.data)==null?void 0:er.object,Jt.in_object_size=(Za=(Pa=Da.data)==null?void 0:Pa.data)==null?void 0:Za.size,Jt.input=(Vn=(qn=Da.data)==null?void 0:qn.data)==null?void 0:Vn.file_name,Jt.in_file=St):(Jt.out_object_key=(gu=(Qa=Da.data)==null?void 0:Qa.data)==null?void 0:gu.object,Jt.out_object_size=(ir=(_u=Da.data)==null?void 0:_u.data)==null?void 0:ir.size,Jt.output=(On=(ul=Da.data)==null?void 0:ul.data)==null?void 0:On.file_name,Jt.out_file=St),Jt}return cu});if(Rn.current=[...nr],Ct([...nr]),bt.current>0&&bt.current===ot.length){ut(!1);let cu=Ue(nr);cu=cu.filter(or=>{var Aa,Zt;return!!((Aa=or[0])!=null&&Aa.name&&((Zt=or[1])!=null&&Zt.name))}),cu=cu.map(or=>He(Re(Re({},or[0]),or[1]),{is_file:!0})),ct(cu),Bt()}}})},sn=St=>new Promise((Ke,ln)=>{let Un=0,Ca=[];for(let Cu=0;Cu{Un++,Un===St.length&&(Ca.length?(ke.ZP.warning(`${Ca.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),ln()):Ke(St))}).catch(Da=>{console.log("\u9519\u8BEF\u4FE1\u606F\uFF1A",Da),Un++,Ca.push(St[Cu].name),Un===St.length&&(Ca.length?(ke.ZP.warning(`${Ca.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),ln()):Ke(St))})}),vt=()=>We(void 0,null,function*(){if(ot.length===0){ke.ZP.warning("\u8BF7\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");return}if(yield sn(ot),ut(!0),Ue(ot).some(Ke=>{var ln,Un;return!((ln=Ke[0])!=null&&ln.name&&((Un=Ke[1])!=null&&Un.name))})){he.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u4E0A\u4F20\u7684\u6D4B\u8BD5\u7528\u4F8B\u4E2D\u5B58\u5728\u672A\u914D\u5BF9\u7684\u6587\u4EF6\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u4EC5\u4FDD\u5B58\u5DF2\u914D\u5BF9\u7684\u6D4B\u8BD5\u7528\u4F8B\uFF1F",onOk:()=>We(void 0,null,function*(){ot.map(Ke=>We(void 0,null,function*(){jt(Ke)}))}),onCancel:()=>{ut(!1)}});return}ot.map(Ke=>We(void 0,null,function*(){jt(Ke)}))}),Tt={name:"file",fileList:ot,multiple:!0,accept:".in, .out",showUploadList:!1,beforeUpload:St=>{if(ot!=null&&ot.some(ln=>ln.name===St.name))return ke.ZP.info(`${St.name}\u6587\u4EF6\u5DF2\u5B58\u5728`),!1;if(St.size/1024/1024>100)return ke.ZP.info("\u6587\u4EF6\u8D85\u8FC7100M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;if(!/\.(in|out|IN|OUT)$/.test(St.name))return ke.ZP.warning("\u8F93\u5165\u6587\u4EF6\u53EA\u80FD\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6"),!1;const Ke={name:St.name,uid:St.uid,file:St,percent:0};return ot.push(Ke),Rn.current=[...ot],Ct([...ot]),!1}},qt=Ue(ot);return console.log(ot,qt,"fileList"),te.createElement(he.default,{open:nt,wrapClassName:Ze,onOk:vt,centered:!0,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",okButtonProps:{loading:st},onCancel:An,width:730,title:"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"},te.createElement("div",{className:ze.wrap},ot.length?te.createElement("div",null,te.createElement(Fe.Z,{justify:"space-between",align:"middle",style:{marginBottom:40}},te.createElement("div",{style:{visibility:ht?"visible":"hidden"}},te.createElement("span",{className:ze.greyText},"\u7528\u4F8B\u7C7B\u578B"),te.createElement(xe.ZP.Group,{className:`ml20 ${ze.testCaseRadio}`,optionType:"button",value:un,onChange:St=>Pn(St.target.value)},te.createElement(xe.ZP,{value:!1},"\u6587\u672C"),te.createElement(xe.ZP,{value:!0},"\u6587\u4EF6"))),te.createElement(Ce.default,Re({},Tt),te.createElement(pe.ZP,{type:"primary",className:ze.btnS},te.createElement("i",{className:"iconfont icon-shangchuan2"}),"\u4E0A\u4F20\u6587\u4EF6"))),te.createElement(it,{data:qt,onRemove:zt})):te.createElement("div",{className:`${ze.noData} mb30`},te.createElement(Ce.default.Dragger,He(Re({},Tt),{className:ze.dragger}),te.createElement("img",{src:Me,alt:"",className:"mb20"}),te.createElement("div",null,te.createElement("span",null,"\u62D6\u62FD\u6587\u4EF6\u6216"),te.createElement("span",{className:ze.uploadText},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))),te.createElement("div",{className:ze.text},te.createElement("span",{style:{color:"#FA6400"}},"\u63D0\u793A"),te.createElement("br",null),"1\u3001\u6587\u4EF6\u5FC5\u987B\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6\u3002",te.createElement("br",null),"2\u3001\u4E0A\u4F20\u7684\u6587\u4EF6\u7F16\u7801\u4EC5\u652F\u6301UTF-8\uFF0C\u5426\u5219\u53EF\u80FD\u4F1A\u51FA\u73B0\u6587\u672C\u4E71\u7801\u3002",te.createElement("br",null),"3\u3001\u8F93\u5165\u8F93\u51FA\u6587\u4EF6\u9700\u6587\u4EF6\u540D\u79F0\u4E00\u4E00\u5BF9\u5E94\uFF0C\u672A\u5BF9\u5E94\u65F6\uFF0C\u5C06\u65E0\u6CD5\u4E0A\u4F20\u3002",te.createElement("br",null),"4\u3001\u5355\u4E2A\u4E0A\u4F20\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7100MB\uFF0C\u8D85\u8FC7\u65F6\u53EF\u4EE5\u5206\u6279\u6B21\u4E0A\u4F20\u3002",te.createElement("br",null))))},it=({data:Bt=[],onRemove:ct,width:nt="auto",showScore:Ze=!1,disabled:yt=!1,inputChange:ht,onEvaluatingChange:Je,onSelectAll:ot,checkAll1:Ct,checkAll2:kt,checkAll3:Mt,checkAll4:st,checkAll5:ut,showEvaluatingSetting:un=!1,className:Pn="",isProgramHomework:Rn=!1})=>{const bt={value:"",filename:"",dataUrl:""},[An,Nn]=(0,a.useState)(Re({},bt)),Qt=sn=>{let vt=document.createElement("a");document.body.appendChild(vt);let Tt=URL.createObjectURL(sn.file);vt.href=Tt,vt.download=sn.name,vt.click(),URL.revokeObjectURL(Tt),document.body.removeChild(vt)},zt=(sn,vt)=>{(0,b.LR)(sn,vt)},jt=(sn,vt)=>{he.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:te.createElement("div",{className:"tc font16"},"\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664\u8BE5\u6D4B\u8BD5\u7528\u4F8B?"),onOk:()=>{ct(sn,vt)},onCancel:()=>{}})};return Bt.length?te.createElement("div",{className:Pn,style:{width:nt}},te.createElement("div",{className:`${Rn?ze.headProgram:ze.head}`},un&&te.createElement("div",{style:{width:"15%",display:"flex",alignItems:"center"}},te.createElement(Se.default,{checked:Ct,onChange:sn=>{ot(sn.target.checked,"hidden")}}),te.createElement(Ae.Z,{title:'\u9690\u85CF\u6D4B\u8BD5\u96C6\u53EF\u4EE5\u9632\u6B62\u5B66\u751F\u901A\u8FC7"print"\u7B49\u624B\u6BB5\u76F4\u63A5\u901A\u5173'},te.createElement("span",{style:{marginLeft:"8px"}},"\u9690\u85CF"),te.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),te.createElement("div",{style:{width:Rn?"25%":"15%"}},"\u7528\u4F8B"),te.createElement("div",{style:{width:Ze?Rn?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u5165"),te.createElement("div",{style:{width:Ze?Rn?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u51FA"),Ze&&te.createElement("div",{style:{width:"20%"}},"\u5F97\u5206\u6BD4\u4F8B"),un&&te.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},te.createElement(Se.default,{checked:st,onChange:sn=>{ot(sn.target.checked,"input_visible")}}),te.createElement(Ae.Z,{title:"\u52FE\u9009\u540E\uFF0C\u8F93\u5165\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},te.createElement("span",{style:{marginLeft:"8px"}},"\u8F93\u5165"),te.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),un&&te.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},te.createElement(Se.default,{checked:kt,onChange:sn=>{ot(sn.target.checked,"is_invisible")}}),te.createElement(Ae.Z,{title:"\u52FE\u9009\u540E\uFF0C\u9884\u671F\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},te.createElement("span",{style:{marginLeft:"8px"}},"\u9884\u671F\u8F93\u51FA"),te.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),un&&te.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},te.createElement(Se.default,{checked:ut,onChange:sn=>{ot(sn.target.checked,"actual_output_visible")}}),te.createElement(Ae.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},te.createElement("span",{style:{marginLeft:"8px"}},"\u5B9E\u9645\u8F93\u51FA"),te.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),un&&te.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},te.createElement(Se.default,{checked:Mt,onChange:sn=>{ot(sn.target.checked,"last_match_rule")}}),te.createElement(Ae.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u4E0E\u9884\u671F\u8F93\u51FA\u6700\u540E\u4E00\u884C\u76F8\u540C\u5373\u53EF\u901A\u5173"},te.createElement("span",{style:{marginLeft:"8px"}},"\u7279\u6B8A\u5224\u5B9A"),te.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),te.createElement("div",{className:ze.operation,style:Rn?{flex:1,textAlign:"right"}:{width:"10%"}},"\u64CD\u4F5C")),te.createElement("div",{className:ze.listWrapper,style:{boxShadow:Rn?"0px 2px 4px 0px #EAEEF4":"unset"}},Bt.map((sn,vt)=>{var Tt,qt,St,Ke;return te.createElement("div",{key:vt,className:ze.list,style:Rn?{marginBottom:"0px",height:"66px",borderBottom:"1px solid #F6F7F8"}:{}},un&&te.createElement("div",{style:{width:"15%"}},te.createElement(Se.default,{checked:!!sn.hidden,onChange:ln=>{Je(ln.target.checked,vt,"hidden")}})),te.createElement("div",{style:{width:Rn?"25%":"15%",paddingLeft:Rn?"5px":"0px",paddingRight:Rn?"5px":"0px"}},"\u6D4B\u8BD5\u7528\u4F8B",vt+1),te.createElement("div",{className:ze.info,style:{width:Ze?Rn?"20%":"15%":"25%"}},te.createElement("span",{title:sn.input||((Tt=sn[0])==null?void 0:Tt.name),onClick:()=>We(void 0,null,function*(){let ln;sn.input?sn.input_file_url?ln=sn.input_file_url:ln=sn.in_file:ln=sn[0];let Un;typeof ln=="string"?(Un=yield fetch(ln,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),Nn({value:yield Un.text(),filename:"",dataUrl:ln})):(Un=yield(0,b.db)(ln.file),Nn({value:Un.text,filename:ln.name,dataUrl:Un.link}))})},sn.input||((qt=sn[0])==null?void 0:qt.name))),te.createElement("div",{className:ze.info,style:{width:Ze?Rn?"20%":"15%":"25%"}},te.createElement("span",{title:sn.output||((St=sn[1])==null?void 0:St.name),onClick:()=>We(void 0,null,function*(){let ln;sn.input?sn.output_file_url?ln=sn.output_file_url:ln=sn.out_file:ln=sn[1];let Un;typeof ln=="string"?(Un=yield fetch(ln,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),Nn({value:yield Un.text(),filename:"",dataUrl:ln})):(Un=yield(0,b.db)(ln.file),Nn({value:Un.text,filename:ln.name,dataUrl:Un.link}))})},sn.output||((Ke=sn[1])==null?void 0:Ke.name))),Ze&&te.createElement("div",{style:{width:"20%"}},te.createElement(Ie.default,{size:"large",addonAfter:Rn?"%":null,disabled:yt,style:{width:"80%"},onChange:ln=>ht(ln,vt),value:sn.score}),!Rn&&te.createElement("span",null,"\xA0%")),un&&te.createElement("div",{style:{width:"20%"}},te.createElement(Se.default,{checked:sn.input_visible||!1,onChange:ln=>{Je(ln.target.checked,vt,"input_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),un&&te.createElement("div",{style:{width:"20%"}},te.createElement(Se.default,{checked:sn.is_invisible||!1,onChange:ln=>{Je(ln.target.checked,vt,"is_invisible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),un&&te.createElement("div",{style:{width:"20%"}},te.createElement(Se.default,{checked:sn.actual_output_visible||!1,onChange:ln=>{Je(ln.target.checked,vt,"actual_output_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),un&&te.createElement("div",{style:{width:"20%"}},te.createElement(Se.default,{checked:sn.last_match_rule||!1,onChange:ln=>{Je(ln.target.checked,vt,"last_match_rule")},className:"font14"},"\u672B\u5C3E\u5339\u914D")),te.createElement("div",{onClick:()=>jt(sn,vt),style:Rn?{flex:1,textAlign:"right",paddingLeft:"5px",paddingRight:"5px"}:{width:"10%",textAlign:"center"}},te.createElement("span",{className:ze.del},"\u5220\u9664")))})),te.createElement(ee.Z,{close:!0,data:An.dataUrl,filename:An.filename,type:An.dataUrl.length?"txt":"",onClose:()=>Nn(Re({},bt)),monacoEditor:{value:An.value,language:"txt",onChange:()=>{},options:{fontSize:14,readOnly:!0,minimap:{enabled:!1}}}})):te.createElement(te.Fragment,null)};var lt=Ye},93989:function(Ft,rt,z){"use strict";z.d(rt,{Z:function(){return me}});var a=z(67294),Ce=z(2453),ke=z(83062),he=z(74330),Fe=z(71230),xe=z(15746),pe=z(14845),Se=z(85804),Ae=z(35567),Ie=z(33170),ze=z(65226),Me=(E,y,x)=>new Promise((b,ee)=>{var te=ye=>{try{de(x.next(ye))}catch(fe){ee(fe)}},ne=ye=>{try{de(x.throw(ye))}catch(fe){ee(fe)}},de=ye=>ye.done?b(ye.value):Promise.resolve(ye.value).then(te,ne);de((x=x.apply(E,y)).next())}),me=({id:E,activeDiscussIndex:y,onReplyDiscuss:x,adminOrOperator:b})=>{const[ee,te]=(0,a.useState)(""),[ne,de]=(0,a.useState)(!1);function ye(ve){te(ve)}function fe(){if(!ee){Ce.ZP.info("\u56DE\u590D\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A!");return}x(E,ee),te("")}return(0,a.useEffect)(()=>{y!=E&&de(!1)},[y]),a.createElement("div",{key:E,className:"discuss-item-editor",style:{display:y===E?"block":"none",width:"100%"}},a.createElement(Ae.Z,{miniToolbar:!0,startInit:y===E,defaultValue:ee,id:E,noStorage:!0,watch:!1,height:155,placeholder:"\u6211\u8981\u56DE\u590D",showResizeBar:!0,onChange:ye,extraUse:b&&a.createElement(ke.Z,{color:"#fff",open:ne,destroyTooltipOnHide:!0,title:oe({id:E,isOpen:ne,activeDiscussIndex:y,onChange:ye,setIsOpen:de}),overlayStyle:{maxWidth:600}},a.createElement("a",{title:ne?"\u5173\u95ED\u63A8\u8350":"\u6253\u5F00\u63A8\u8350",onClick:()=>de(!ne)},a.createElement("i",{className:"iconfont icon-dianzan11"})))}),a.createElement("a",{onClick:fe,className:"btn-send"},"\u53D1\u9001"))};const oe=E=>{const[y,x]=(0,a.useState)(!1),[b,ee]=(0,a.useState)([]),[te,ne]=(0,a.useState)(1);(0,a.useEffect)(()=>{E!=null&&E.isOpen?de():(ne(1),ee([]))},[E==null?void 0:E.isOpen]);const de=()=>Me(void 0,null,function*(){x(!0);const ye=yield(0,Ie.ZP)(`/api/discusses/${E==null?void 0:E.id}/recommend_answer.json`,{method:"get"});(ye==null?void 0:ye.status)==0&&ee(ye==null?void 0:ye.answer),x(!1)});return a.createElement(he.Z,{spinning:y},a.createElement("div",{style:{color:"#000"}},a.createElement(ze.Z,{className:"font14",style:{maxHeight:500,overflow:"auto"},value:(b==null?void 0:b[te-1])||""}),a.createElement(Fe.Z,{justify:"end",align:"middle"},a.createElement(xe.Z,null,a.createElement(pe.Z,{simple:!0,current:te,pageSize:1,total:(b==null?void 0:b.length)||0,onChange:ye=>{ne(ye)}})),a.createElement(xe.Z,null,a.createElement(Se.ZP,{onClick:()=>Me(void 0,null,function*(){E==null||E.onChange(b==null?void 0:b[te-1]),E==null||E.setIsOpen(!1)})},"\u586B\u5165\u6587\u672C\u6846")))))}},5764:function(Ft,rt,z){"use strict";z.d(rt,{CP:function(){return ke},_V:function(){return xe}});var a=z(81354),Ce=z.n(a);const ke={secret:a.enc.Utf8.parse("0a18e199b87f1a8d"),iv:a.enc.Utf8.parse("6e7b11a2d8475a3c"),recordScreen1:"8Cl7udD6KTt8HPYOZOopZQ==",recordScreen2:"2OizCBkuJOsBhw8rNenXhYCv3XTIsgM5YB4rOmXz7tSksBaXYYyAirzxs7TSR1vRsyWPVAt4owje5yiTfFsxAA==",recordScreen3:"neJjLaAaeW/dFCOx/cRGopZHNvjZTB0x8p9/TcYCsAGn0mWINwybT7VQlqzmJ55DjVgOrmi/iclg/G6uBGjm/Q==",recordScreen4:"SGYXWA9MzSO+02aOU0lf0g==",recordScreen5:"oCICX8dGCYMnb+4d1CTCTQ==",recordScreen6:"5MlFeP+Uwb/T5ADmGmB6NpaUgOJy3MlJ4WpA38wds8U=",recordScreen7:"TEQF1ezPIxvVVMQNJ08HIiHpj1mXdcVt5qmr6+ALw8Y=",recordScreen8:"9a9QOkgLXlgDq14d3ZEWzA==",recordScreen9:"O0prHhH+rDoUVnpw8acqwRQvRL7fh32v1bLyv4qv71U=",recordScreen10:"nfkbhFR34HkBQLpjlbNkk3FgEdBomIsnFLVgHA1RZVBeN/H3vWJpt0re6w4cjtaKmIkNgpJhxaFgyEkcJ7Z99GCAgC0CgxaaXNQNiDmz2MygiesZVZ9laQvHFQhZehEEaFKUozvNVQMkRw0MV0eoPg==",recordScreen11:"jarJWElZmu7HFZnjOTPwNx44FImKQVf8Bx2Jrm74G44=",recordScreen12:"e7Q/zr1KcI3oVpnQ3JeDgA==",recordScreen13:"pm38jjAC3l2p/JR8E3kDWg==",recordScreen14:"/mTQurqh9htD7+PNrTooMJgdPOE914grpIKomFnikk8=",recordScreen15:"bEPsKA+wwGyQEDShAMuQmQ==",recordScreen16:"uitMDSXWhi/tOOfbtHNmyNh8e9PCLJ0naA02kzBCOD/mdg+1g9ScswIEDpdHuE1l",recordScreen17:"4+bY5u3lx+VxRA/PjP/r3Tl9C0SmKM8CRtCpmkAJq+M=",recordScreen18:"L3Tz5XdvbIAqzHw/XxJnmrx8R+v3cPrYaho0/yDug6M=",recordScreen19:"bo+SiWR7f4uhJXP1wk3oQxBEFmQdbpZPV1in12O3jaj14CuNU2kP2g2MKMTFmRqE12Di4jS3RKzRI14yWpi6Zw==",recordScreen20:"9zp6SENXwO+8GNr4+g+xIzt6s/Gf38ukabRJjhQhQoY=",recordScreen21:"9zp6SENXwO+8GNr4+g+xIy36f4lSwnfFtW0weuO6Gj8=",recordScreen22:"JrbzlyV7pBS7Yw/W1geouw==",recordScreen23:"HBRPVLqnAH9kbzQ7clr8JsTgjT3nCOaP6D+q1lrMX0T6z7vU1Nh5XljgB+Qw/Hs8",recordScreen24:"bq3vruZCtCaGLs7egAWDrgXjmyW8iQX5L+nEwqCeguM=",recordScreen25:"CjveXk9FHEWiBbhwyVRzPQ==",recordScreen26:"FxZnr4aTDDJTcRMUEb3SfA==",answer1:"YXOzThjf+mcj1OALSFqA8A==",answer2:"iyOS4uLz85NAsAWdMjWs6A==",answer3:"cnZErv6FfE02OBkLzlWAeDAW3+ysEYfgoPhcC707e9kJN3PHMP7E05NC7nRf5ESWhemykQ0Y+JYQAd1PGsIJVIZFsA7OlceUwyOfid7oTeg=",answer4:"xXjNeCMbPG5xznAfVbSmjvHn/2xVBArzvsRXJZVk7yY=",answer5:"8Cl7udD6KTt8HPYOZOopZQ==",answer6:"r4qWdIzOZoUDAHIC6Rkiz3KJVZoKCNj9MmeR76VANv90Zyj57hrKtRcOipt3SZUPfZlt17GKyBf504lj5ROxVg==",answer7:"t1d0b8j3bdsJoH9adhzqOQ==",answer8:"0TBptfONacS/9JDvt/q9BO9S0+Jv0m1glMCiAQweO4E=",answer9:"2DA7p8Fws9TWo+O5djurjrORgQjZjMrKtuIbjfCoAI8ZpLy4+sq9PFZuua40lLxjTVb7vhKqm6exT5/R19YdjnUTh6Kyt+6Px8xr6JnEHVw=",answer10:"xcjM1HNI8s6ckETto63Gq83vw68ATty2i534hkfjKAa+izWStVVH5fvCEpQxd8rYYki3IW9Qy0NU8cLJsHQXWOsYtYD70yB44qG5j3fnlDahQUcsDWEBXzx2NlAp6x5R",answer11:"0/t7yKZD1CFg6kerAPJksqJATDsJMtkB06datFVfwac=",answer12:"SJ4yd9DEs9YHnGhybPplEg=="},he={exam:ke};function Fe(pe="",Se="exam"){const{secret:Ae,iv:Ie}=he[Se];return AES.encrypt(pe,Ae,{iv:Ie,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7}).toString()}function xe(pe="",Se="exam"){const{secret:Ae,iv:Ie}=he[Se];return a.AES.decrypt(pe,Ae,{iv:Ie,mode:Ce().mode.CBC,padding:Ce().pad.Pkcs7}).toString(a.enc.Utf8)}},98769:function(Ft,rt,z){"use strict";z.d(rt,{AD:function(){return Ue},D9:function(){return Ze},Hp:function(){return ye},IM:function(){return ht},Iy:function(){return ve},KM:function(){return Rn},MJ:function(){return fe},Ne:function(){return yt},ON:function(){return Mt},Uj:function(){return un},VY:function(){return Ct},YO:function(){return ut},YX:function(){return st},Zn:function(){return E},_g:function(){return te},_k:function(){return ct},c6:function(){return We},cr:function(){return y},eV:function(){return Ge},fi:function(){return x},gh:function(){return Re},hS:function(){return Je},iA:function(){return b},j6:function(){return ne},je:function(){return lt},jj:function(){return de},kS:function(){return kt},lS:function(){return Bt},o6:function(){return He},pO:function(){return Pn},rQ:function(){return Ye},sA:function(){return Le},xm:function(){return nt},xo:function(){return ot},y8:function(){return it},yd:function(){return ee}});var a=z(89779),Ce=z(35973),ke=z(28706),he=z(2453),Fe=z(11320),xe=Object.defineProperty,pe=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,Ie=(bt,An,Nn)=>An in bt?xe(bt,An,{enumerable:!0,configurable:!0,writable:!0,value:Nn}):bt[An]=Nn,ze=(bt,An)=>{for(var Nn in An||(An={}))Se.call(An,Nn)&&Ie(bt,Nn,An[Nn]);if(pe)for(var Nn of pe(An))Ae.call(An,Nn)&&Ie(bt,Nn,An[Nn]);return bt},Me=(bt,An,Nn)=>new Promise((Qt,zt)=>{var jt=Tt=>{try{vt(Nn.next(Tt))}catch(qt){zt(qt)}},sn=Tt=>{try{vt(Nn.throw(Tt))}catch(qt){zt(qt)}},vt=Tt=>Tt.done?Qt(Tt.value):Promise.resolve(Tt.value).then(jt,sn);vt((Nn=Nn.apply(bt,An)).next())});const me=()=>{(0,Ce.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},oe=()=>{(0,Ce.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},E=bt=>Me(void 0,null,function*(){me(),(yield(0,a.YR)(ze({},bt))).status===0&&(yield(0,ke.QH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+`/api/courses/${bt.coursesId}/export_couser_info.json`,query:bt}))),oe()}),y=bt=>Me(void 0,null,function*(){const An=yield(0,a.yS)(ze({},bt));if(An.status===0)he.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/course_member_act_score`);else{if(An.status===-2)return An;An.status===-3&&((0,Ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/course_member_act_score`))}}),x=bt=>Me(void 0,null,function*(){const An=yield(0,a.W0)(ze({},bt));if(An.status===0)he.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/course_total_score`);else{if(An.status===-4)return An;An.status===-3&&((0,Ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/course_total_score`))}}),b=bt=>Me(void 0,null,function*(){const An=yield(0,a.Nl)(ze({},bt));if(An.status===0)he.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/course_total_exercise_and_other`);else{if(An.status===-4)return An;An.status===-3&&((0,Ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/course_total_exercise_and_other`))}}),ee=bt=>Me(void 0,null,function*(){const An=yield(0,a.IU)(ze({},bt));if(An.status===0)he.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/export_star_user`);else{if(An.status===-4)return An;An.status===-3&&((0,Ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/export_star_user`))}}),te=bt=>Me(void 0,null,function*(){const An=yield(0,a.td)(ze({},bt));if(An.status===0)he.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/course_total_exercise_and_other`);else{if(An.status===-2)return An;if(An.status===-3)(0,Ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/course_total_exercise_and_other`);else if(An.status===-4)return An}}),ne=bt=>Me(void 0,null,function*(){const An=yield(0,a.QX)(ze({},bt));if(An.status===0)he.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/course_total_homework`);else{if(An.status===-4)return An;An.status===-3&&((0,Ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/course_total_homework`))}}),de=(bt,An)=>Me(void 0,null,function*(){const Nn=yield(0,a.o_)(ze({},bt));Nn.status===0?(he.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/${An}`)):Nn.status===-3&&((0,Ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/${An}`))}),ye=(bt,An)=>Me(void 0,null,function*(){const Nn=yield(0,a.ZL)(ze({},bt));Nn.status===0?(he.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/${An}`)):Nn.status===-3&&((0,Ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/${An}`))}),fe=(bt,An)=>Me(void 0,null,function*(){const Nn=yield(0,a.vV)(ze({},bt));Nn.status===0?(he.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/${An}`)):Nn.status===-3&&((0,Ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/${An}`))}),ve=(bt,An)=>Me(void 0,null,function*(){const Nn=yield(0,a.aP)(ze({},bt));Nn.status===0?(he.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/${An}`)):Nn.status===-3&&((0,Ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/${An}`))}),Ne=bt=>Me(void 0,null,function*(){me(),(yield exportCourseWorkListAppendix(ze({},bt))).status===0&&(yield downLoadFileIframe("",setUrlQuery({url:ENV.API_SERVER+`/api/homework_commons/${bt.categoryId}/works_list.zip`,query:bt}))),oe()}),Le=bt=>Me(void 0,null,function*(){me(),yield(0,ke.QH)("",Fe.Z.API_SERVER+`/api/polls/${bt.categoryId}/commit_result.xlsx`),oe()}),Re=bt=>Me(void 0,null,function*(){yield(0,ke.FH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+`/api/courses/${bt.coursesId}/attendances/export_xlsx_data.xlsx`,query:bt}))}),He=bt=>Me(void 0,null,function*(){yield(0,ke.FH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+`/api/courses/${bt.coursesId}/video_study_statics.xlsx`,query:bt}))}),We=bt=>Me(void 0,null,function*(){yield(0,ke.FH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+`/api/courses/${bt.coursesId}/export_video_study.xlsx`,query:bt}))}),Ge=bt=>Me(void 0,null,function*(){yield(0,ke.FH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+`/api/courses/${bt.coursesId}/export_course_students_info.xlsx`,query:bt}))}),Ue=bt=>Me(void 0,null,function*(){yield(0,ke.FH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+"/api/school_manages/students.xlsx",query:bt}))}),Ye=bt=>Me(void 0,null,function*(){yield(0,ke.FH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+"/api/item_banks/export.xlsx",query:bt}))}),it=bt=>Me(void 0,null,function*(){yield(0,ke.FH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+"/api/competitions/region_reports.xlsx",query:bt}))}),lt=bt=>Me(void 0,null,function*(){const An=yield(0,a.Uy)(ze({},bt));An.status===0?(he.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/exercise_score,export_exercise_users`)):An.status===-3&&((0,Ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/exercise_score,export_exercise_users`))}),Bt=bt=>Me(void 0,null,function*(){const An=yield(0,a.tg)(ze({},bt));An.status===0?(he.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/exercise_score,export_exercise_report`)):An.status===-3&&((0,Ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/exercise_score,export_exercise_report`))}),ct=bt=>Me(void 0,null,function*(){console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),yield(0,ke.FH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+`/api/export_records/${bt.id}.xlsx`,query:bt}))}),nt=bt=>Me(void 0,null,function*(){yield(0,ke.FH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:bt}))}),Ze=bt=>Me(void 0,null,function*(){yield(0,ke.FH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+`/api/courses/${bt==null?void 0:bt.coursesId}/${bt.menuKey}_statistic.xlsx?${bt.checkedList.map(An=>`course_group_id[]=${An}`).join("&")}`,query:bt}))}),yt=bt=>Me(void 0,null,function*(){yield(0,ke.FH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+`/api/ec_years/${bt==null?void 0:bt.ec_year_id}/ec_training_objectives.xlsx`,query:bt}))}),ht=bt=>Me(void 0,null,function*(){yield(0,ke.FH)(bt==null?void 0:bt.name,(0,ke.NY)({url:Fe.Z.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:bt}))}),Je=bt=>Me(void 0,null,function*(){yield(0,ke.FH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+`/api/ec_years/${bt==null?void 0:bt.ec_year_id}/ec_courses.xlsx`,query:bt}))}),ot=bt=>Me(void 0,null,function*(){yield(0,ke.FH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+`/api/ec_years/${bt==null?void 0:bt.ec_year_id}/ec_graduation_requirements.xlsx`,query:bt}))}),Ct=bt=>Me(void 0,null,function*(){yield(0,ke.FH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+"/api/courses/rank_list.xlsx",query:bt}))}),kt=bt=>Me(void 0,null,function*(){yield(0,ke.FH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+"/api/courses/question_rank_list.xlsx",query:bt}))}),Mt=bt=>Me(void 0,null,function*(){yield(0,ke.FH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+`/api/examination_banks/${bt.id}.json`,query:bt}))}),st=bt=>Me(void 0,null,function*(){yield(0,ke.FH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+`/api/exercises/${bt.categoryId}.json`,query:bt}))}),ut=bt=>Me(void 0,null,function*(){yield(0,ke.FH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+`/api/polls/${bt==null?void 0:bt.id}/commit_result.json`,query:bt}))}),un=bt=>Me(void 0,null,function*(){yield(0,ke.FH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+"/api/paths/get_task_pass.json",query:bt}))}),Pn=(bt,An)=>Me(void 0,null,function*(){yield(0,ke.FH)(An||"",(0,ke.NY)({url:Fe.Z.API_SERVER+`/api/exercises/${bt==null?void 0:bt.exercise_id}/consult_exercise.json`,query:bt}))}),Rn=bt=>Me(void 0,null,function*(){yield(0,ke.FH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+`/api/competitions/${bt==null?void 0:bt.identifier}/competition_commit_records/member_works.xlsx`,query:bt}))})},51959:function(Ft,rt,z){"use strict";z.d(rt,{BU:function(){return Ce},Dj:function(){return a},gH:function(){return ke},vp:function(){return he}});function a(Fe){try{Fe.mozRequestFullScreen?Fe.mozRequestFullScreen():Fe.webkitRequestFullScreen&&Fe.webkitRequestFullScreen()}catch(xe){console.log(xe,":e")}}function Ce(){window.top.document.webkitExitFullscreen?window.top.document.webkitExitFullscreen():document.exitFullscreen?window.top.document.exitFullscreen():document.msExitFullscreen?window.top.document.msExitFullscreen():document.mozCancelFullScreen&&window.top.document.mozCancelFullScreen()}const ke=()=>{if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function he(){var Fe=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,xe=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",Fe),window.isFullScreen?window.isFullScreen:Fe!=null}},99678:function(Ft,rt,z){"use strict";z.d(rt,{g:function(){return Fe}});var a=z(67294),Ce=z(56443),ke=z(53430),he=(xe,pe,Se)=>new Promise((Ae,Ie)=>{var ze=oe=>{try{me(Se.next(oe))}catch(E){Ie(E)}},Me=oe=>{try{me(Se.throw(oe))}catch(E){Ie(E)}},me=oe=>oe.done?Ae(oe.value):Promise.resolve(oe.value).then(ze,Me);me((Se=Se.apply(xe,pe)).next())});const Fe=()=>{const[xe,pe]=(0,a.useState)([]);return(0,a.useEffect)(()=>{he(void 0,null,function*(){const Ae=yield(0,Ce.d1)({source:"question"});Ae!=null&&Ae.disciplines&&pe((0,ke.L)(Ae==null?void 0:Ae.disciplines))})},[]),xe}},9343:function(Ft,rt,z){"use strict";z.d(rt,{U:function(){return Ae}});var a=z(67294),Ce=Object.defineProperty,ke=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,xe=(Ie,ze,Me)=>ze in Ie?Ce(Ie,ze,{enumerable:!0,configurable:!0,writable:!0,value:Me}):Ie[ze]=Me,pe=(Ie,ze)=>{for(var Me in ze||(ze={}))he.call(ze,Me)&&xe(Ie,Me,ze[Me]);if(ke)for(var Me of ke(ze))Fe.call(ze,Me)&&xe(Ie,Me,ze[Me]);return Ie},Se=(Ie,ze,Me)=>new Promise((me,oe)=>{var E=b=>{try{x(Me.next(b))}catch(ee){oe(ee)}},y=b=>{try{x(Me.throw(b))}catch(ee){oe(ee)}},x=b=>b.done?me(b.value):Promise.resolve(b.value).then(E,y);x((Me=Me.apply(Ie,ze)).next())});function Ae(Ie,ze){const[Me,me]=(0,a.useState)(ze),[oe,E]=(0,a.useState)(!1),[y,x]=(0,a.useState)();return[Me,oe,(ee,te=!1)=>Se(this,null,function*(){const ne=te?ze:pe(pe({},Me),ee);E(!0),me(ne);const de=yield Ie(ne);return E(!1),x(de),de}),y,x]}},65107:function(Ft,rt,z){"use strict";z.d(rt,{Z:function(){return pe}});var a=z(67294),Ce=z.p+"static/modelContact.7a7eb113.png",ke=z(1083),he=z(52262),Fe=z(67294),pe=()=>{const[Se,Ae]=(0,a.useState)(!1);return{verifyModelUser:()=>(0,he.$O)()?!0:(Ae(!0),!1),ContactModalElement:()=>Fe.createElement(ke.Z,{visible:Se,setVisible:Ae,image:Ce}),contactOpen:Se,setContactOpen:Ae}}},43462:function(Ft,rt,z){"use strict";z.d(rt,{_:function(){return ke}});var a=z(67294),Ce=z(62844);const ke=he=>{var Fe,xe;const pe=(0,a.useRef)([]),Se=()=>{for(const Ae of pe.current)clearTimeout(Ae);pe.current=[]};return(0,a.useEffect)(()=>{var Ae,Ie,ze,Me,me,oe;if(Se(),(Ae=he==null?void 0:he.exercise)!=null&&Ae.left_time&&((ze=(Ie=he==null?void 0:he.exercise)==null?void 0:Ie.exercise_events)==null?void 0:ze.length)>0){for(const E of(Me=he==null?void 0:he.exercise)==null?void 0:Me.exercise_events)if(((me=he==null?void 0:he.exercise)==null?void 0:me.left_time)>(E==null?void 0:E.reminder_time)*60){let y=(((oe=he==null?void 0:he.exercise)==null?void 0:oe.left_time)-(E==null?void 0:E.reminder_time)*60)*1e3;y=y>2147483647?2147483647:y;const x=setTimeout(()=>{Ce.default.info({content:`${E==null?void 0:E.reminder_content}`,icon:null,title:"\u63D0\u793A",centered:!0,okText:"\u77E5\u9053\u4E86"})},y);pe.current.push(x)}}},[(Fe=he==null?void 0:he.exercise)==null?void 0:Fe.left_time,(xe=he==null?void 0:he.exercise)==null?void 0:xe.exercise_events]),Se}},51161:function(Ft,rt,z){"use strict";z.d(rt,{AL:function(){return ne},Iy:function(){return ze},Qv:function(){return oe},ez:function(){return te},jb:function(){return Me}});var a=z(47084),Ce=z.n(a),ke=z(90621),he=z.n(ke);let Fe=1;function xe(Ne,Le){const Re=Ne.match(/^(\s+)(?:```)/);if(Re===null)return Le;const He=Re[1];return Le.split(` +{d}%`,position:"outside"},labelLine:{show:!0,length:20,length2:15},data:Oa==null?void 0:Oa.data1,color:(mu=Oa==null?void 0:Oa.data1)==null?void 0:mu.map($u=>Tn[$u==null?void 0:$u.name])}]},style:{width:420,height:230,margin:"0 auto"},onEvents:{click:$u=>{console.log("sdfsdf===",$u),setTimeout(()=>{ae({type:"exercise/setActionTabs",payload:{key:"\u63A8\u9001\u8BD5\u9898\u8BE6\u60C5",data:wd(kc({},tn),{question_type:pn[$u==null?void 0:$u.name]})}})},0)}}})},[Oa==null?void 0:Oa.data1]),sa=(0,a.useMemo)(()=>{var mu,$u;return a.createElement(td.Z,{option:{tooltip:{trigger:"axis",formatter:"{b}: {c}\u4EBA",axisPointer:{type:"shadow",shadowStyle:{color:"rgba(0, 0, 0, 0.1)"}}},grid:{left:10,right:40,bottom:"5%",top:50,containLabel:!0},xAxis:{type:"category",data:(mu=Oa==null?void 0:Oa.data2)==null?void 0:mu.map(jr=>jr==null?void 0:jr.name),axisLine:{lineStyle:{color:"#EBEBEB"}},axisTick:{show:!1},axisLabel:{color:"#86909C",fontSize:12},name:"\u8BD5\u9898",nameTextStyle:{color:"#86909C",fontSize:12,padding:[0,0,0,-5]}},yAxis:{type:"value",name:"\u4EBA\u6570",nameTextStyle:{color:"#86909C",fontSize:12,padding:[0,20,10,0]},axisLine:{show:!1},axisTick:{show:!1},splitLine:{lineStyle:{color:"#EBEBEB"}},axisLabel:{color:"#86909C",fontSize:12},splitNumber:5,minInterval:5},series:[{data:($u=Oa==null?void 0:Oa.data2)==null?void 0:$u.map(jr=>jr==null?void 0:jr.value),type:"bar",barWidth:22,itemStyle:{color:"#2EC25B"},label:{show:!0,position:"top",color:"#86909C",fontSize:12}}]},style:{width:530,height:320},onEvents:{click:jr=>{console.log("sdfsdf===",jr),setTimeout(()=>{var Eu;ae({type:"exercise/setActionTabs",payload:{key:"\u9AD8\u9891\u9519\u9898\u8BE6\u60C5",data:wd(kc(wd(kc({},tn),{title:jr==null?void 0:jr.name,type:2}),(Eu=Oa==null?void 0:Oa.data2)==null?void 0:Eu.find(wr=>(wr==null?void 0:wr.name)===(jr==null?void 0:jr.name))),{not_complete:!0})}})},0)}}})},[Oa==null?void 0:Oa.data2]),Ru=()=>G0(void 0,null,function*(){Ba(!0),yield Promise.all([mr(),gl(),Tl()]),Ba(!1)}),mr=()=>G0(void 0,null,function*(){var mu;const $u=yield(0,Ce.ZP)(`/api/ai/wrong_question_push_charts/${Xt==null?void 0:Xt.categoryId}/data_overview.json`,{method:"post",body:wd(kc({},tn),{exercise_group_id:(mu=tn==null?void 0:tn.exercise_group_id)!=null&&mu.includes("all")?"":tn==null?void 0:tn.exercise_group_id})});($u==null?void 0:$u.status)===0&&wu($u==null?void 0:$u.data)}),gl=()=>G0(void 0,null,function*(){var mu;const $u=yield(0,Ce.ZP)(`/api/ai/wrong_question_push_charts/${Xt==null?void 0:Xt.categoryId}/charts.json`,{method:"post",body:wd(kc({},tn),{exercise_group_id:(mu=tn==null?void 0:tn.exercise_group_id)!=null&&mu.includes("all")?"":tn==null?void 0:tn.exercise_group_id})});($u==null?void 0:$u.status)===0&&Hn($u==null?void 0:$u.data)}),Tl=()=>G0(void 0,null,function*(){var mu;const $u=yield(0,Ce.ZP)(`/api/ai/wrong_question_push_charts/${Xt==null?void 0:Xt.categoryId}/ai_charts.json`,{method:"post",body:wd(kc({},tn),{exercise_group_id:(mu=tn==null?void 0:tn.exercise_group_id)!=null&&mu.includes("all")?"":tn==null?void 0:tn.exercise_group_id})});($u==null?void 0:$u.status)===0&&tu($u==null?void 0:$u.data)});return a.createElement("div",null,a.createElement(fe.default,{className:ls.FormCheckBoxDom,colon:!1,initialValues:tn,onValuesChange:(mu,$u)=>{const jr=kc(kc({},tn),$u);console.log(jr,"newValue"),Ja(kc({},jr))}},a.createElement(oe.Z,{wrap:!1,justify:"space-between"},a.createElement(ve.Z,null,a.createElement(fe.default.Item,{label:"\u9009\u62E9\u73ED\u7EA7",name:"exercise_group_id",normalize:(mu,$u,jr)=>{var Eu,wr;return(Eu=$u||[])!=null&&Eu.every(Va=>Va==="all")&&mu.includes("all")&&mu.length>1&&(mu=mu.filter(Va=>Va!=="all")),(!((wr=$u||[])!=null&&wr.includes("all"))&&mu.includes("all")||(mu==null?void 0:mu.length)==0)&&(mu=["all"]),mu}},a.createElement(Se.default.Group,{options:dt}))))),a.createElement("div",{className:ls.content},a.createElement(jt.Z,{spinning:Ka},a.createElement("div",{className:ls.head},a.createElement("div",{className:ls.title},"\u6570\u636E\u6982\u89C8",a.createElement("span",{className:"font14",style:{color:"#9096A3"}},"\uFF08\u70B9\u51FB\u6570\u5B57\u53EF\u67E5\u770B\u8BE6\u60C5\uFF09"))),a.createElement("div",{className:ls.data_overview},[{text:"\u5DF2\u5B8C\u6210\u4EBA\u6570"},{text:"\u90E8\u5206\u5B8C\u6210\u4EBA\u6570"},{text:"\u672A\u5F00\u59CB\u4EBA\u6570"},{text:"\u63A8\u9001\u8BD5\u9898\u603B\u6570"}].map(mu=>{let $u=ia==null?void 0:ia[da[mu==null?void 0:mu.text]];return a.createElement("div",{className:ls.data_overview_item,onClick:()=>{["\u63A8\u9001\u8BD5\u9898\u603B\u6570","\u70B9\u8D5E\u6570","\u70B9\u8E29\u6570"].includes(mu==null?void 0:mu.text)?ae({type:"exercise/setActionTabs",payload:{key:"\u63A8\u9001\u8BD5\u9898\u8BE6\u60C5",data:wd(kc({},tn),{status:Qn[mu==null?void 0:mu.text]})}}):ae({type:"exercise/setActionTabs",payload:{key:"\u9519\u9898\u5DE9\u56FA\u8BE6\u60C5",data:wd(kc({},tn),{status:Qn[mu==null?void 0:mu.text]})}})}},a.createElement("span",{className:ls.num},$u),a.createElement("span",{className:ls.text},mu==null?void 0:mu.text))})),a.createElement("div",{className:ls.head},a.createElement("div",{className:ls.title},"\u9519\u9898\u5DE9\u56FA\u60C5\u51B5 ",a.createElement("span",{className:"font14",style:{color:"#9096A3"}},"\uFF08 \u70B9\u51FB\u56FE\u8868\u53EF\u67E5\u770B\u8BE6\u60C5 \uFF09"))),a.createElement("div",{className:ls.tubiao},a.createElement("div",{className:ls.pie_style},a.createElement("div",{className:ls.tb_title},"\u5DF2\u6709",ia==null?void 0:ia.completed,"\u4EBA\u5B8C\u6210\u9519\u9898\u5DE9\u56FA\uFF0C\u5360\u6BD4",(Dt=(Ve=Sa==null?void 0:Sa.data1)==null?void 0:Ve.find(mu=>(mu==null?void 0:mu.name)==="\u5DF2\u5B8C\u6210"))==null?void 0:Dt.rate,"%\uFF1B\u672A\u5F00\u59CB\u9519\u9898\u5DE9\u56FA\u7684\u5B66\u751F\u6709",ia==null?void 0:ia.not_started,"\u4EBA\uFF0C\u5360\u6BD4",(Be=(et=Sa==null?void 0:Sa.data1)==null?void 0:et.find(mu=>(mu==null?void 0:mu.name)==="\u672A\u5F00\u59CB"))==null?void 0:Be.rate,"%"),((Pe=Sa==null?void 0:Sa.data1)==null?void 0:Pe.length)>0&&au,a.createElement("div",{className:ls.legend,style:{marginTop:30,padding:"0 100px"}},(Ht=Sa==null?void 0:Sa.data1)==null?void 0:Ht.map(mu=>a.createElement("div",{className:ls.legend_item},a.createElement("div",{className:ls.legend_item_color,style:{backgroundColor:En[mu==null?void 0:mu.name]}}),a.createElement("div",{className:ls.legend_item_text},mu==null?void 0:mu.name))))),a.createElement("div",{className:ls.line}),a.createElement("div",{className:ls.bar_style},a.createElement("div",{className:ls.tb_title},"\u5B8C\u6210\u9519\u9898\u5DE9\u56FA\u7684\u5B66\u751F\u4E2D\uFF0C\u8003\u8BD5\u622A\u6B62\u540E1\u5929\u5185\u5B8C\u6210\u7684\u5B66\u751F\u6709",(hn=(vn=Sa==null?void 0:Sa.data2)==null?void 0:vn.find(mu=>(mu==null?void 0:mu.name)==="1\u5929\u5185"))==null?void 0:hn.value,"\u4EBA\uFF0C\u5360\u6BD4",(Gt=(xt=Sa==null?void 0:Sa.data2)==null?void 0:xt.find(mu=>(mu==null?void 0:mu.name)==="1\u5929\u5185"))==null?void 0:Gt.rate,"%\uFF1B\u8003\u8BD5\u622A\u6B62\u540E16\u5929\u4EE5\u4E0A\u5B8C\u6210\u7684\u5B66\u751F",(Dn=(Bn=Sa==null?void 0:Sa.data2)==null?void 0:Bn.find(mu=>(mu==null?void 0:mu.name)==="16\u5929\u4EE5\u4E0A"))==null?void 0:Dn.value,"\u4EBA\uFF0C\u5360\u6BD4",(Wt=(Fn=Sa==null?void 0:Sa.data2)==null?void 0:Fn.find(mu=>(mu==null?void 0:mu.name)==="16\u5929\u4EE5\u4E0A"))==null?void 0:Wt.rate,"%"),((Ut=Sa==null?void 0:Sa.data2)==null?void 0:Ut.length)>0&&Ya)),a.createElement("div",{className:ls.head,style:{marginTop:30}},a.createElement("div",{className:ls.title},"\u9AD8\u9891\u9519\u9898 ",a.createElement("span",{className:"font14",style:{color:"#9096A3"}},"\uFF08 \u70B9\u51FB\u56FE\u8868\u53EF\u67E5\u770B\u8BE6\u60C5 \uFF09")),a.createElement("div",{style:{marginLeft:"auto",color:"#666666"}},"\u6B63\u786E\u7387\u2264",_e,"%"),a.createElement("div",{className:"flex item-center current ml30",onClick:()=>{Zn(!0)}},a.createElement("i",{className:"iconfont icon-shezhi9 mr5 font14",style:{color:"#165DFF"}}),a.createElement("span",{style:{color:"#3061D0"}},"\u8BBE\u7F6E"))),a.createElement("div",{className:ls.tubiao2},((Yt=Sa==null?void 0:Sa.data3)==null?void 0:Yt.length)>0?Cr:a.createElement(zt.Z,null)),a.createElement("div",{className:ls.head,style:{marginTop:30}},a.createElement("div",{className:ls.title},"AI\u63A8\u9001\u9519\u9898\u60C5\u51B5 ",a.createElement("span",{className:"font14",style:{color:"#9096A3"}},"\uFF08 \u70B9\u51FB\u56FE\u8868\u53EF\u67E5\u770B\u8BE6\u60C5 \uFF09"))),a.createElement("div",{className:ls.tubiao},a.createElement("div",{className:ls.pie_style},((ta=Oa==null?void 0:Oa.data1)==null?void 0:ta.length)>0?a.createElement(a.Fragment,null,a.createElement("div",{className:ls.tb_title,style:{textAlign:"center"}},"AI\u52A9\u6559\u603B\u5171\u7ED9\u5B66\u751F\u63A8\u9001\u4E86",Oa==null?void 0:Oa.wrong_exercise_question_size,"\u9053\u8BD5\u9898"),Zu):a.createElement(zt.Z,null),a.createElement("div",{className:ls.legend},(nn=Oa==null?void 0:Oa.data1)==null?void 0:nn.map(mu=>a.createElement("div",{className:ls.legend_item},a.createElement("div",{className:ls.legend_item_color,style:{backgroundColor:Tn[mu==null?void 0:mu.name]}}),a.createElement("div",{className:ls.legend_item_text},mu==null?void 0:mu.name))))),a.createElement("div",{className:ls.line}),a.createElement("div",{className:ls.bar_style},((zn=Oa==null?void 0:Oa.data2)==null?void 0:zn.length)>0?a.createElement(a.Fragment,null,a.createElement("div",{className:ls.tb_title},"\u5DF2\u63A8\u9001\u7684\u8BD5\u9898\u4E2D\uFF0C",(mn=Oa==null?void 0:Oa.data2)==null?void 0:mn.map(mu=>mu==null?void 0:mu.name).join("\u3001"),"\u7684\u9519\u8BEF\u4EBA\u6570\u8F83\u591A\uFF0C\u6709\u53EF\u80FD\u5B66\u751F\u5BF9\u8FD9\u90E8\u5206\u8BD5\u9898\u8003\u5BDF\u7684\u77E5\u8BC6\u70B9\u638C\u63E1\u4E0D\u591F\uFF0C\u53EF\u8003\u8651\u91CD\u70B9\u8BB2\u89E3\u3002"),sa):a.createElement(zt.Z,null))))),((pa=se==null?void 0:se.actionTabs)==null?void 0:pa.key)==="\u9519\u9898\u5DE9\u56FA\u8BE6\u60C5"&&a.createElement(Gv,null),((Pt=se==null?void 0:se.actionTabs)==null?void 0:Pt.key)==="\u9AD8\u9891\u9519\u9898\u8BE6\u60C5"&&a.createElement(ep,null),((Nt=se==null?void 0:se.actionTabs)==null?void 0:Nt.key)==="\u63A8\u9001\u8BD5\u9898\u8BE6\u60C5"&&a.createElement(op,null),a.createElement(Fe.default,{centered:!0,title:"\u9AD8\u9891\u9519\u9898\u8BBE\u7F6E",width:400,open:La,okText:"\u786E\u5B9A",afterClose:()=>{},cancelText:"\u53D6\u6D88",onOk:()=>G0(void 0,null,function*(){if(!_e){pe.ZP.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7387");return}const mu=yield(0,Ce.ZP)(`/api/ai/wrong_question_push_charts/${Xt==null?void 0:Xt.categoryId}/set_ai_accuracy.json`,{method:"post",body:{ai_accuracy:bn}});(mu==null?void 0:mu.status)===0&&(pe.ZP.success("\u8BBE\u7F6E\u6210\u529F"),pt(bn),gl(),Zn(!1))}),onCancel:()=>{Zn(!1)}},a.createElement("div",{className:ls.accuracySetting},a.createElement("span",null,"\u6B63\u786E\u7387\u2264"),a.createElement(Re.Z,{size:"large",value:bn,defaultValue:bn,min:1,max:100,precision:0,className:"ml10 mr10",style:{width:"140px"},onChange:mu=>{console.log(mu,"e"),ca(mu)}}),a.createElement("span",{className:"text_45"},"%\u7684\u8BD5\u9898\u3002"))))};var fp=(0,he.connect)(({classroomList:ce,exercise:se})=>({classroomList:ce,exercise:se}))(gp),qm=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const vp=({exercise:ce,dispatch:se})=>{const{commonHeader:ae}=ce,_e=(0,he.useParams)(),[pt,Ve]=(0,a.useState)(!0),[Dt,et]=(0,a.useState)(!1),[Be,Pe]=(0,a.useState)(0),{verifyModelUser:Ht,ContactModalElement:vn}=(0,Wd.Z)();(0,a.useEffect)(()=>{hn()},[]);const hn=()=>qm(void 0,null,function*(){var xt,Gt,Bn,Dn;Ve(!0);const Fn=yield(0,Ce.ZP)(`/api/exercises/${_e==null?void 0:_e.categoryId}/get_wrong_question_push_infos.json`,{method:"get"});(Fn==null?void 0:Fn.status)===0&&(et((Gt=(xt=Fn==null?void 0:Fn.data)==null?void 0:xt.exercise)==null?void 0:Gt.ai_push_wrong_question),Pe((Dn=(Bn=Fn==null?void 0:Fn.data)==null?void 0:Bn.exercise)==null?void 0:Dn.ai_accuracy)),Ve(!1)});return a.createElement("div",{className:jv.wrap},a.createElement(oe.Z,{align:"middle",style:{background:"#fff",padding:20}},a.createElement(Ne.Z,{loading:pt,checked:Dt,onChange:xt=>qm(void 0,null,function*(){if(!Ht())return;const Gt=()=>qm(void 0,null,function*(){Ve(!0);const Bn=yield(0,Ce.ZP)(`/api/exercises/${_e==null?void 0:_e.categoryId}/wrong_question_push_settings.json`,{method:"post",body:{ai_push_wrong_question:xt}});(Bn==null?void 0:Bn.status)===0&&hn()});if(xt){Fe.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5F00\u542F\u4E4B\u540E\uFF0C\u5B66\u751F\u8FDB\u5165\u9519\u9898\u5DE9\u56FA\u9875\u9762\u53EF\u4EE5\u67E5\u770B\u539F\u9898\u7684\u7B54\u6848\u3001\u89E3\u6790\u3001\u77E5\u8BC6\u70B9\u4FE1\u606F\uFF0C\u662F\u5426\u786E\u5B9A\u5F00\u542F\uFF1F",onOk:Gt});return}Gt()})}),a.createElement("b",{className:"c-grey-333 ml10"},"\u667A\u80FD\u63A8\u9001\u9519\u9898"),a.createElement("span",{className:"c-grey-999 mr10"},"\uFF08\u8003\u8BD5\u622A\u6B62\u540E\uFF0C\u5DF2\u53C2\u52A0\u8003\u8BD5\u7684\u5B66\u751F\u53EF\u8FDB\u884C\u9519\u9898\u5DE9\u56FA\u7EC3\u4E60\uFF0C\u5927\u6A21\u578B\u5C06\u4F1A\u6839\u636E\u5B66\u751F\u7684\u6BCF\u9053\u9519\u9898\u81EA\u52A8\u63A8\u90011\u9053\u540C\u77E5\u8BC6\u70B9\u7684\u65B0\u8BD5\u9898\uFF0C\u6682\u4E0D\u652F\u6301\u7B80\u7B54\u9898\u3001\u7EC4\u5408\u9898\u3001\u5B9E\u8BAD\u9898\uFF09")),(ae==null?void 0:ae.exercise_status)===3&&Dt&&a.createElement(fp,{accuracy:Be,setAccuracy:Pe}),vn())};var pp=(0,he.connect)(({exercise:ce})=>({exercise:ce}))(vp),yo={flex_box_center:"flex_box_center___zJWmM",flex_space_between:"flex_space_between___W2IOG",flex_box_vertical_center:"flex_box_vertical_center___xVzUb",flex_box_center_end:"flex_box_center_end___zjcQD",flex_box_column:"flex_box_column___UqhhE",ai_review:"ai_review___GqZQo",top_warp:"top_warp___P2TQq",under_review:"under_review___vLnly",btn_operate:"btn_operate___E8qFp",btn_review:"btn_review___rxH04",is_disabled:"is_disabled___wJPew",config_warp:"config_warp___dn_f1",config_title:"config_title___MI463",znpy:"znpy___ifOzh",pfbz_ts:"pfbz_ts___j5lp8",btns_pfbz:"btns_pfbz___bng1r",lable_name1:"lable_name1___cLVR4",h_lh_40:"h_lh_40___lNgKg",teacherList:"teacherList___ikneH",teacherItem:"teacherItem___xeda2",activeTeacherItem:"activeTeacherItem___bNhun",title_sty:"title_sty___FJZX2",btn_config:"btn_config___qXb8n",conSroreWrap:"conSroreWrap___Ugjtm",leftWrap:"leftWrap___xo0Rp",title_con:"title_con___IFC9a",questionItemWrap:"questionItemWrap___D6S_R",question_title:"question_title___VsIs5",activeItem:"activeItem___cOsu7",rightWrap:"rightWrap___u288N",titleTooltip:"titleTooltip___MPH1I",qtitle:"qtitle___Du75n",simple:"simple___iqQLx",title:"title___n1640",content:"content___TnfJ2",bottom:"bottom___KYXml",bottomitem:"bottomitem___eQp2L",left:"left___SFTJ_",right:"right___x_pZn"},Ep=z(13014),Ap="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAA7dJREFUWEftl01sVGUUht/33rktfzaIaBojVas1SDsdB6wExYQZM8bGhXGhYQlTFpWEHW7QyLhwoe40hqTakrgxkR0LG2kcDIaAlLbcGUrSYDREIxiCwUGmZX6+19xph5Qyc2fqDIkL7+Le5Ps55znnO+c79xALTyIh69tfL6w9Ndz9Z3nsXny3DUyva92wKvt94vE5Tz69Vzh+bhDChwLaSFyCOEZaY4GVge/OfPb0tUZA+uKpzjwVpRCFEBHUDvIGhXenDoc+4eY9qS2mqHFAJZg7HtIQmIQwZtEe6+zgySOJ7pwf0NY97iM5g6igCEXv21FtPWn3cXPcfdtIH9VjJYkswBOAxmzy2Nnh0PnnB92H5gqKqIgI4ClGl68s0kCySmssHvAAEkY6uDDwQQD2qFExJikG4jkJAR+B1wGs9VNIICPiBwLJgO0kC6b4uox5b14/378DwBuYHAklygK37rvYdmt2NgJjYgBjkJ6q5SkCsyBPikjaBsnO/t6zR95ksbxvscE1AZYqCw9ceFTIeyAxii8JegBgjsRpAsdFJp/cYJ/2i5OGABYDeWl77EpqfUt7W6acUrW84803DaAeZZXW/A/QkAde3u+uvnoN/bRlVzwCYytgmfEzX4R+qXZEDQGEd7spQUH/8+dN23G6JoY2XW5qDPTvu9h65e/sdUEragWgQ+uJ8ZHen5sK4AnbMpB+tYjiTho6FSEIQTg6dTj01T05glqW1zPfUAzUo6DWmoYBduydXnOjsKJiFgRajX78tCvjB9EQQDjuHpI06F/9OGk5D744MfRwtqlB6GXB5ZvZ7O1a7kPhBJzw+Ofd55oKUCoku92PRe0CUDELJIjk0cnh3l0k1XSAWgFWz3xDMVCPglpr/nsAz8Tdg5Dmf8PIPwB9Y8lOik5yamTj77UsWu783R4YcF8xRqOVr1bOkEjCIOmsajm+3B6hb+90ez5ngjTFoIAegkFI3QJWLhic4Btfy/5p1H1H5H5I91W3iCKV8n42LQ9ozeoT5UvHu5wyuUIPDD1FQcH00PsK6/08ZNnYebsZ2ZFQIPNb6lljECVKXcwLfpWPRAGgK2AdhMcqNjZVtJPwSvWXr3WEDtzdDS1s8i6eq7Nz24pGUcF4UF6PULkKVjNzvgWbFpEmlLYtO221BtKLj7IqwFKZJTffKmw3mveQgHD5ViSRFzhDIC3gvEWkW5yW9KlDGy9Vu5DK8usGWAq0/a3U/XM5axNQ/Et278zEEPPLzYhS4v2bTc3c8w/DyoAfDIR6+gAAAABJRU5ErkJggg==",iu=z(67294),hp=Object.defineProperty,Fp=Object.defineProperties,yp=Object.getOwnPropertyDescriptors,Ng=Object.getOwnPropertySymbols,Cp=Object.prototype.hasOwnProperty,Bp=Object.prototype.propertyIsEnumerable,Og=(ce,se,ae)=>se in ce?hp(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,c0=(ce,se)=>{for(var ae in se||(se={}))Cp.call(se,ae)&&Og(ce,ae,se[ae]);if(Ng)for(var ae of Ng(se))Bp.call(se,ae)&&Og(ce,ae,se[ae]);return ce},xm=(ce,se)=>Fp(ce,yp(se)),xd=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Sp=z(96486),Pp=({exercise:ce,globalSetting:se,user:ae,loading:_e,dispatch:pt})=>{var Ve,Dt,et,Be,Pe,Ht,vn,hn,xt,Gt,Bn,Dn,Fn,Wt;const{is_open_ai_review:Ut,ai_review_settings:Yt,unified_ai_setting:ta,ai_review_user_id:nn,exercise_author_id:zn,is_random:mn,unanswered_handling:pa,unanswered_comment:Pt}=ce==null?void 0:ce.commonHeader,Nt=(0,he.useParams)(),[Rt,Xt]=(0,a.useState)([]),[cn,tn]=(0,a.useState)(null),[Ja,ha]=(0,a.useState)(!1),[dt,Fa]=(0,a.useState)({is_open_ai_review:!1}),[ia,wu]=(0,a.useState)(!1),[Sa,Hn]=(0,a.useState)(!1),[Oa,tu]=(0,a.useState)(""),[Ka]=fe.default.useForm(),[Ba,La]=(0,a.useState)(1),[Zn,bn]=(0,a.useState)({combine:[],simple:[]}),[ca,Qn]=(0,a.useState)(null),[pn,Tn]=(0,a.useState)({}),[En,da]=(0,a.useState)({}),[Ha,au]=(0,a.useState)(!1),[Ya,Cr]=(0,a.useState)({}),[Zu,sa]=(0,a.useState)(!1),Ru=[{name:"\u51C6\u786E\u6027",content:"\u7B54\u6848\u662F\u5426\u51C6\u786E\u5730\u56DE\u7B54\u4E86\u9898\u76EE\uFF0C\u662F\u5426\u6B63\u786E\u8868\u8FBE\u6838\u5FC3\u77E5\u8BC6\u70B9\uFF0C\u662F\u5426\u6709\u6982\u5FF5\u6027\u9519\u8BEF",weight:60},{name:"\u5B8C\u6574\u6027",content:"\u7B54\u6848\u662F\u5426\u6DB5\u76D6\u6240\u6709\u5224\u5206\u5173\u952E\u8BCD\u548C\u6838\u5FC3\u77E5\u8BC6\u70B9\uFF0C\u662F\u5426\u6709\u91CD\u8981\u77E5\u8BC6\u70B9\u9057\u6F0F",weight:20},{name:"\u903B\u8F91\u6027",content:"\u7B54\u6848\u662F\u5426\u903B\u8F91\u6E05\u6670\u3001\u6761\u7406\u5206\u660E\uFF0C\u662F\u5426\u80FD\u591F\u6E05\u695A\u8868\u8FBE\u6838\u5FC3\u601D\u60F3",weight:10},{name:"\u521B\u65B0\u548C\u6DF1\u5EA6",content:"\u7B54\u6848\u662F\u5426\u5177\u6709\u521B\u65B0\u6027\u6216\u8F83\u9AD8\u7684\u601D\u7EF4\u6DF1\u5EA6\uFF0C\u662F\u5426\u80FD\u63D0\u4F9B\u72EC\u7ACB\u601D\u8003\u3001\u989D\u5916\u5206\u6790\u6216\u65B0\u9896\u89C1\u89E3",weight:10}],mr=[{name:"\u51C6\u786E\u6027",content:"\u7B54\u6848\u662F\u5426\u51C6\u786E\u5730\u56DE\u7B54\u4E86\u9898\u76EE\uFF0C\u662F\u5426\u6B63\u786E\u8868\u8FBE\u6838\u5FC3\u77E5\u8BC6\u70B9\uFF0C\u662F\u5426\u6709\u6982\u5FF5\u6027\u9519\u8BEF",weight:60},{name:"\u5B8C\u6574\u6027",content:"\u7B54\u6848\u662F\u5426\u6DB5\u76D6\u6240\u6709\u5224\u5206\u5173\u952E\u8BCD\u548C\u6838\u5FC3\u77E5\u8BC6\u70B9\uFF0C\u662F\u5426\u6709\u91CD\u8981\u77E5\u8BC6\u70B9\u9057\u6F0F",weight:20},{name:"\u903B\u8F91\u6027",content:"\u7B54\u6848\u662F\u5426\u903B\u8F91\u6E05\u6670\u3001\u6761\u7406\u5206\u660E\uFF0C\u662F\u5426\u80FD\u591F\u6E05\u695A\u8868\u8FBE\u6838\u5FC3\u601D\u60F3",weight:10},{name:"\u521B\u65B0\u548C\u6DF1\u5EA6",content:"\u7B54\u6848\u662F\u5426\u5177\u6709\u521B\u65B0\u6027\u6216\u8F83\u9AD8\u7684\u601D\u7EF4\u6DF1\u5EA6\uFF0C\u662F\u5426\u80FD\u63D0\u4F9B\u72EC\u7ACB\u601D\u8003\u3001\u989D\u5916\u5206\u6790\u6216\u65B0\u9896\u89C1\u89E3",weight:10}];(0,a.useEffect)(()=>{_e["exercise/getCommonHeader"]||gl()},[_e["exercise/getCommonHeader"]]);const gl=()=>xd(void 0,null,function*(){Fa({is_open_ai_review:Ut}),La(ta?1:2),ta?Ka.setFieldValue("ai_review_settings",(Yt==null?void 0:Yt.length)>0?Yt:Ru):yield Va(),Tl(),nn&&nn!=-1?(wu(!1),tn(nn)):nn==-1?wu(!0):tn(zn),pa==2?Hn(!1):(Hn(!0),tu(Pt))}),Tl=()=>xd(void 0,null,function*(){const Su=yield pt({type:"teachers/getList",payload:{id:Nt==null?void 0:Nt.coursesId,coursesId:Nt==null?void 0:Nt.coursesId,page:1}});return Xt(Su==null?void 0:Su.teacher_list),Su==null?void 0:Su.teacher_list}),mu=()=>{Fe.default.info({centered:!0,icon:null,width:440,title:"\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458",content:iu.createElement("div",{className:"tc"},iu.createElement("div",{className:"mb10"},"\u8BE5\u529F\u80FD\u5C5E\u4E8E\u8BD5\u7528\u9636\u6BB5\uFF0C\u5982\u679C\u60A8\u9700\u8981\u4F7F\u7528\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458~"),iu.createElement("img",{src:Ep,alt:"\u4E8C\u7EF4\u7801",width:182,height:182,style:{pointerEvents:"none",userSelect:"none"}})),okText:"\u6211\u77E5\u9053\u4E86"})},$u=()=>xd(void 0,null,function*(){if((dt==null?void 0:dt.is_open_ai_review)===!1)return jr({is_open_ai_review:!1});let Su=Ka.getFieldValue("ai_review_settings");if(Ba==1){if(!(0,de.BR)(Su))return}else{const Pu=[];for(const[ci,Ho]of Object.entries(pn)){if(!(En!=null&&En[ci])){pe.ZP.warning("\u8BF7\u5148\u5B8C\u5584\u9898\u76EE\u7684\u8BC4\u5206\u6807\u51C6\uFF01");return}Pu.push({exercise_question_id:ci,list:Ho})}Su=Pu}yield Ka.validateFields(),jr(xm(c0({},dt),{unified_ai_setting:Ba==1,ai_review_settings:Su,ai_review_user_id:ia?-1:cn,unanswered_handling:Sa?1:2,unanswered_comment:Sa?Oa:""}))}),jr=Su=>xd(void 0,null,function*(){ha(!0);const Pu=yield(0,Ce.ZP)(`/api/exercises/${Nt==null?void 0:Nt.categoryId}/ai_review_settings.json`,{method:"post",body:Su});(Pu==null?void 0:Pu.status)===0&&(Su!=null&&Su.is_open_ai_review?Fe.default.confirm({title:"\u63D0\u793A",icon:null,width:390,closable:!0,centered:!0,okText:"\u7ACB\u5373\u667A\u80FD\u8BC4\u9605",cancelText:"\u4E0B\u6B21\u518D\u8BF4",onOk:()=>xd(void 0,null,function*(){const ci=yield(0,Ce.ZP)("/api/exercise_resubmits/check_resubmit.json",{method:"get",params:{exercise_id:Nt.categoryId}});if((ci==null?void 0:ci.status)===-21){Fe.default.confirm({title:"\u5F53\u524D\u8BD5\u5377\u65E0\u7B80\u7B54\u9898",icon:null,width:400,closable:!0,centered:!0,autoFocusButton:null,okText:"\u6211\u77E5\u9053\u4E86",cancelButtonProps:{style:{display:"none"}},onOk:()=>xd(void 0,null,function*(){}),content:iu.createElement("div",null,iu.createElement("div",{style:{color:"#E30000",fontSize:"14px"}},"\u667A\u80FD\u8BC4\u9605\u76EE\u524D\u4EC5\u652F\u6301\u7B80\u7B54\u9898\uFF08\u542B\u7EC4\u5408\u9898\u4E2D\u7684\u7B80\u7B54\u9898\uFF09\u3002"),iu.createElement("div",{style:{color:"#333330",fontSize:"14px"}},"\u5F53\u524D\u8003\u8BD5\u6CA1\u6709\u7B80\u7B54\u9898\uFF0C\u6240\u4EE5\u65E0\u987B\u8FDB\u884C\u667A\u80FD\u8BC4\u9605\u3002"))});return}pt({type:"exercise/setActionTabs",payload:{key:"\u5728\u7EBF\u8003\u8BD5\u667A\u80FD\u8BC4\u9605"}})}),content:iu.createElement("div",null,"\u4FDD\u5B58\u6210\u529F\uFF01\u73B0\u5728\u5C31\u5F00\u59CB\u667A\u80FD\u8BC4\u9605\uFF1F")}):pe.ZP.success("\u4FDD\u5B58\u6210\u529F\uFF01"),Eu()),ha(!1)}),Eu=()=>{pt({type:"exercise/getCommonHeader",payload:{categoryId:Nt==null?void 0:Nt.categoryId,coursesId:Nt==null?void 0:Nt.coursesId,category:Nt==null?void 0:Nt.categoryId}})},wr=()=>Sp.isEqual({ai_review_settings:Yt,ai_review_user_id:nn,is_open_ai_review:Ut,unified_ai_setting:ta},{ai_review_settings:Ka.getFieldValue("ai_review_settings"),ai_review_user_id:ia?-1:cn,is_open_ai_review:dt==null?void 0:dt.is_open_ai_review,unified_ai_setting:Ba==1}),Va=()=>xd(void 0,null,function*(){var Su,Pu,ci,Ho,ji,fc,qa;sa(!0);const bl=yield(0,Ce.ZP)(`/api/exercises/${Nt==null?void 0:Nt.categoryId}.json`,{method:"get"});if(sa(!1),bl.status==0){let lo=(Pu=(Su=bl==null?void 0:bl.exercise_question_types)==null?void 0:Su.find(Zl=>(Zl==null?void 0:Zl.question_type)==4))==null?void 0:Pu.items;const Yu=(Ho=(ci=bl==null?void 0:bl.exercise_question_types)==null?void 0:ci.find(Zl=>(Zl==null?void 0:Zl.question_type)==7))==null?void 0:Ho.items;let tl=0,_r=[];_r=(ji=Yu==null?void 0:Yu.map((Zl,Bs)=>{var Di,Us;return(Us=(Di=Zl==null?void 0:Zl.sub_exercise_questions)==null?void 0:Di.map(($c,Ln)=>($c==null?void 0:$c.question_type)==4?xm(c0({},$c),{index:Bs+1,jdex:Ln+1,parentTitle:Zl==null?void 0:Zl.question_title,isCombine:!0}):null))==null?void 0:Us.filter($c=>$c)}))==null?void 0:ji.flat(),console.log("allShortQuestions",_r),(lo==null?void 0:lo.length)>0?(tl=(fc=lo==null?void 0:lo[0])==null?void 0:fc.question_id,Cr(c0({index:1},(lo==null?void 0:lo[0])||{}))):(_r==null?void 0:_r.length)>0&&(tl=(qa=_r==null?void 0:_r[0])==null?void 0:qa.question_id,Cr(c0({},(_r==null?void 0:_r[0])||{}))),Qn(tl),bn({combine:_r,simple:lo}),console.log("allShortQuestions--simple",_r,lo);const Io={},os={};[...lo||[],..._r||[]].forEach(Zl=>{var Bs;Io[Zl==null?void 0:Zl.question_id]=((Bs=Zl==null?void 0:Zl.ai_review_settings)==null?void 0:Bs.length)>0?Zl==null?void 0:Zl.ai_review_settings:mr,os[Zl==null?void 0:Zl.question_id]=!0}),Tn(Io),da(os),Ka.setFieldValue("ai_review_settings",Io==null?void 0:Io[tl])}}),Nu=(Su,Pu)=>xd(void 0,null,function*(){if(ca){const ci=c0({},pn);ci[ca]=Pu==null?void 0:Pu.ai_review_settings,Tn(ci);const Ho=(0,de.BR)(Pu==null?void 0:Pu.ai_review_settings,!1);da(ji=>xm(c0({},ji),{[ca]:Ho})),yield Ka.validateFields()}}),oo=Su=>xd(void 0,null,function*(){try{yield Ka.resetFields();const Pu=pn[Su]||[];console.log("settings--questionId",Su,Pu);const ci=Pu.flatMap((Ho,ji)=>[[ji,"name"],[ji,"content"],[ji,"weight"]]).map(Ho=>["ai_review_settings",...Ho]);Ka.setFieldValue("ai_review_settings",Pu),yield Ka.validateFields(ci)}catch(Pu){console.log("errorInfo",Pu)}});return iu.createElement(jt.Z,{spinning:_e["exercise/getCommonHeader"]},iu.createElement("div",{className:yo.ai_review},iu.createElement("div",{className:yo.config_warp},iu.createElement(oe.Z,{align:"middle"},iu.createElement(Ne.Z,{style:{color:"#000"},value:dt==null?void 0:dt.is_open_ai_review,onChange:Su=>{var Pu;if(!((Pu=ae==null?void 0:ae.userInfo)!=null&&Pu.has_big_model_permission))return mu(),!1;Fa(xm(c0({},dt),{is_open_ai_review:Su}))}}),iu.createElement("b",{className:"c-grey-333 ml10"},"\u7B80\u7B54\u9898\u667A\u80FD\u8BC4\u9605"),iu.createElement("span",{className:"c-grey-999"},"\uFF08\u5F00\u542F\u540E\uFF0C\u5728\u8BD5\u5377\u8BC4\u9605\u9875\u9762\u5C31\u53EF\u4EE5\u4F7F\u7528\u667A\u80FD\u8BC4\u9605\u529F\u80FD\uFF0C\u8BA9AI\u52A9\u6559\u5E2E\u52A9\u4F60\u6253\u5206\u548C\u5199\u8BC4\u8BED\uFF09"),iu.createElement("a",{target:"_blank",href:"https://www.educoder.net/forums/40205"},"\u64CD\u4F5C\u8BF4\u660E")),(dt==null?void 0:dt.is_open_ai_review)&&iu.createElement(iu.Fragment,null,iu.createElement("div",{className:`${yo.config_title} mt30`},"\u8BBE\u7F6E\u8BC4\u5206\u6807\u51C6"),iu.createElement("div",{className:yo.pfbz_ts},iu.createElement(Ie.ZP.Group,{onChange:Su=>xd(void 0,null,function*(){La(Su.target.value),Su.target.value==1?Ka.setFieldValue("ai_review_settings",(Yt==null?void 0:Yt.length)>0&&ta?Yt:Ru):yield Va()}),value:Ba,options:[{value:1,label:"\u7EDF\u4E00\u8BC4\u5206\u6807\u51C6",style:{marginRight:44}},{value:2,label:"\u6BCF\u9898\u5355\u72EC\u8BBE\u5B9A"}]})),Ba==1&&iu.createElement(iu.Fragment,null,iu.createElement("div",{className:yo.pfbz_ts},iu.createElement("div",{style:{color:"#333"}},"\u63D0\u793A\uFF1A\u53C2\u8003\u7B54\u6848\u548C\u9898\u76EE\u89E3\u6790\u8D8A\u5B8C\u5584\uFF0CAI\u667A\u80FD\u8BC4\u9605\u5C31\u8D8A\u7CBE\u51C6~"),iu.createElement("div",{className:"flex"},iu.createElement("div",{className:yo.btns_pfbz,onClick:()=>{pt({type:"exercise/setActionTabs",payload:{key:"\u6D4B\u8BD5AI\u8BC4\u5206",isUnify:!0,questionDetail:{ai_review_settings:Ka.getFieldValue("ai_review_settings")}}})}},iu.createElement("img",{src:ud.Z}),"\u6D4B\u8BD5AI\u8BC4\u5206"))),iu.createElement(fe.default,{form:Ka,colon:!1,style:{background:"#F6F7F9"}},iu.createElement(fe.default.List,{name:"ai_review_settings"},(Su,{add:Pu,remove:ci})=>Su.map((Ho,ji)=>{var fc;return iu.createElement(oe.Z,{key:Ho.key,style:{padding:"5px 14px 5px 30px"}},iu.createElement(ve.Z,{className:yo.lable_name1},"\u8BC4\u5206\u70B9"),iu.createElement(ve.Z,null,iu.createElement(fe.default.Item,{className:"ml10",name:[Ho.name,"name"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC4\u5206\u70B9"}]},iu.createElement(Le.default,{onChange:qa=>{Ka.setFieldValue([Ho.name,"content"],qa.target.value)},placeholder:"\u8BF7\u8F93\u5165\u6700\u591A10\u5B57\u7B26",size:"large",style:{width:164},maxLength:10,className:"mr20"}))),iu.createElement(ve.Z,{className:yo.lable_name1},"\u8BC4\u5206\u6807\u51C6"),iu.createElement(ve.Z,null,iu.createElement(fe.default.Item,{className:"ml10",name:[Ho.name,"content"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC4\u5206\u6807\u51C6"}]},iu.createElement(Le.default,{onChange:qa=>{Ka.setFieldValue([Ho.name,"content"],qa.target.value)},placeholder:"\u8BF7\u8F93\u5165\u8BC4\u5206\u6807\u51C6",size:"large",style:{width:550},className:"mr20",maxLength:500}))),iu.createElement(ve.Z,{className:yo.lable_name1},"\u6743\u91CD"),iu.createElement(ve.Z,null,iu.createElement(fe.default.Item,{className:"ml10",name:[Ho.name,"weight"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6743\u91CD"},{pattern:/^(?!0(\.0+)?$)(\d+(\.\d)?)$/,message:"\u6700\u591A\u4FDD\u7559\u4E00\u4F4D\u5C0F\u6570"}]},iu.createElement(Re.Z,{value:Ka.getFieldValue([Ho.name,"weight"]),onChange:qa=>{Number.isInteger(qa)||Ka.setFieldValue([Ho.name,"weight"],parseFloat(qa).toFixed(2))},size:"large",addonAfter:"%",placeholder:"\u8BF7\u8F93\u5165\u6743\u91CD",min:.01,step:1,max:100,style:{width:"134px"}}))),iu.createElement(oe.Z,{className:(fc=yo)==null?void 0:fc.h_lh_40},iu.createElement(ve.Z,null,iu.createElement("i",{className:"iconfont icon-tianjiatimu ml20 current",style:{color:"#00B187"},onClick:()=>{if(Su.length>=10)return pe.ZP.info("\u6700\u591A\u53EA\u80FD\u6DFB\u52A010\u4E2A\u8BC4\u5206\u70B9");Pu()}})),ji>0&&iu.createElement(ve.Z,null,iu.createElement("i",{className:"iconfont icon-shanjian1 ml10 current",style:{color:"#E30000"},onClick:()=>{ci(Ho.name)}}))))})))),Ba==2&&iu.createElement(jt.Z,{spinning:Zu},iu.createElement("div",{className:yo.conSroreWrap},iu.createElement("div",{className:yo.leftWrap},((Ve=Zn==null?void 0:Zn.simple)==null?void 0:Ve.length)>0&&iu.createElement("div",{style:{marginBottom:"5px"}},iu.createElement("div",{className:yo.title_con},"\u3010\u7B80\u7B54\u9898\u3011"),iu.createElement("div",null,(Dt=Zn==null?void 0:Zn.simple)==null?void 0:Dt.map((Su,Pu)=>iu.createElement("div",{className:`${yo.questionItemWrap} ${ca==(Su==null?void 0:Su.question_id)?yo.activeItem:""}`,key:Su==null?void 0:Su.question_id,onClick:()=>xd(void 0,null,function*(){Qn(Su==null?void 0:Su.question_id),Cr(c0({index:Pu+1},Su||{})),yield oo(Su==null?void 0:Su.question_id)})},iu.createElement(Ae.Z,{title:iu.createElement(uu.Z,{value:Su==null?void 0:Su.question_title}),color:"#fff",placement:"left",overlayClassName:yo.titleTooltip},iu.createElement("span",{className:`${yo.question_title}`},iu.createElement(uu.Z,{value:Pu+1+"\u3001"+(Su==null?void 0:Su.question_title),showTextOnly:!0}))),!(En!=null&&En[Su==null?void 0:Su.question_id])&&iu.createElement(Ae.Z,{title:"\u5F53\u524D\u9898\u76EE\u7684\u8BC4\u5206\u6807\u51C6\u8BBE\u7F6E\u4E0D\u5B8C\u5584\u3002"},iu.createElement("i",{className:"iconfont icon-tishi12 font14 c-orange current",style:{transform:"scaleY(-1)",color:"#E99237",marginRight:"5px"}})))))),((et=Zn==null?void 0:Zn.combine)==null?void 0:et.length)>0&&iu.createElement("div",{style:{marginBottom:"5px"}},iu.createElement("div",{className:yo.title_con},"\u3010\u7EC4\u5408\u9898\u3011"),iu.createElement("div",null,(Be=Zn==null?void 0:Zn.combine)==null?void 0:Be.map((Su,Pu)=>iu.createElement("div",{key:Su==null?void 0:Su.question_id,onClick:()=>xd(void 0,null,function*(){Qn(Su==null?void 0:Su.question_id),Cr(c0({},Su||{})),yield oo(Su==null?void 0:Su.question_id)}),className:`${yo.questionItemWrap} ${ca==(Su==null?void 0:Su.question_id)?yo.activeItem:""}`},iu.createElement(Ae.Z,{title:iu.createElement(uu.Z,{value:Su==null?void 0:Su.question_title}),color:"#fff",placement:"left",overlayClassName:yo.titleTooltip},iu.createElement("span",{className:`${yo.question_title}`},iu.createElement(uu.Z,{value:(Su==null?void 0:Su.index)+"."+(Su==null?void 0:Su.jdex)+"\u3001"+(Su==null?void 0:Su.question_title),showTextOnly:!0}))),!(En!=null&&En[Su==null?void 0:Su.question_id])&&iu.createElement(Ae.Z,{title:"\u5F53\u524D\u9898\u76EE\u7684\u8BC4\u5206\u6807\u51C6\u8BBE\u7F6E\u4E0D\u5B8C\u5584\u3002"},iu.createElement("i",{className:"iconfont icon-tishi12 font14 c-orange current",style:{transform:"scaleY(-1)",color:"#E99237",marginRight:"5px"}}))))))),iu.createElement("div",{className:yo.rightWrap},iu.createElement("div",{className:yo.pfbz_ts},iu.createElement("div",{style:{color:"#333"}},"\u63D0\u793A\uFF1A\u53C2\u8003\u7B54\u6848\u548C\u9898\u76EE\u89E3\u6790\u8D8A\u5B8C\u5584\uFF0CAI\u667A\u80FD\u8BC4\u9605\u5C31\u8D8A\u7CBE\u51C6~"),iu.createElement("div",{className:"flex"},iu.createElement("div",{className:yo.btns_pfbz,onClick:()=>{au(!0)}},iu.createElement("img",{src:Ap,width:16}),"\u9898\u76EE\u8BE6\u60C5"),iu.createElement("div",{className:yo.btns_pfbz,onClick:()=>{pt({type:"exercise/setActionTabs",payload:{key:"\u6D4B\u8BD5AI\u8BC4\u5206",isUnify:!1,questionId:ca,questionDetail:{ai_review_settings:Ka.getFieldValue("ai_review_settings")}}})}},iu.createElement("img",{src:ud.Z}),"\u6D4B\u8BD5AI\u8BC4\u5206"))),iu.createElement(fe.default,{form:Ka,colon:!1,onValuesChange:Nu,style:{background:"#F6F7F9",maxHeight:"480px",overflowY:"auto"}},iu.createElement("div",{className:yo.pfbz_ts,style:{display:"flex",alignItems:"center",justifyContent:"flex-start"}},iu.createElement("div",{className:yo.lable_name1,style:{width:"164px"}},"\u8BC4\u5206\u70B9"),iu.createElement("div",{className:yo.lable_name1,style:{width:"425px",marginLeft:"20px"}},"\u8BC4\u5206\u6807\u51C6"),iu.createElement("div",{className:yo.lable_name1,style:{width:"100px",marginLeft:"20px"}},"\u6743\u91CD (%)"),iu.createElement("div",{className:yo.lable_name1,style:{marginLeft:"20px"}},"\u64CD\u4F5C")),iu.createElement(fe.default.List,{name:"ai_review_settings"},(Su,{add:Pu,remove:ci})=>Su.map((Ho,ji)=>{var fc;return iu.createElement(oe.Z,{key:Ho.key,style:{padding:"5px 14px 5px 30px"}},iu.createElement(ve.Z,null,iu.createElement(fe.default.Item,{name:[Ho.name,"name"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC4\u5206\u70B9"}]},iu.createElement(Le.default,{onChange:qa=>{Ka.setFieldValue([Ho.name,"name"],qa.target.value)},placeholder:"\u8BF7\u8F93\u5165\u6700\u591A10\u5B57\u7B26",size:"large",style:{width:165},maxLength:10,className:"mr20"}))),iu.createElement(ve.Z,null,iu.createElement(fe.default.Item,{name:[Ho.name,"content"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC4\u5206\u6807\u51C6"}]},iu.createElement(Le.default,{onChange:qa=>{Ka.setFieldValue([Ho.name,"content"],qa.target.value)},placeholder:"\u8BF7\u8F93\u5165\u8BC4\u5206\u6807\u51C6",size:"large",style:{width:425},className:"mr20",maxLength:50}))),iu.createElement(ve.Z,null,iu.createElement(fe.default.Item,{name:[Ho.name,"weight"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6743\u91CD"},{pattern:/^(?!0(\.0+)?$)(\d+(\.\d)?)$/,message:"\u6700\u591A\u4FDD\u7559\u4E00\u4F4D\u5C0F\u6570"},({getFieldValue:qa})=>({validator(bl,lo){return(qa("ai_review_settings")||[]).reduce((_r,Io)=>_r+(Number(Io.weight)||0),0)===100||!lo||!/^(?!0(\.0+)?$)(\d+(\.\d)?)$/.test(lo)?Promise.resolve():Promise.reject(new Error("\u6743\u91CD\u603B\u548C\u5E94\u4E3A100%"))}})]},iu.createElement(Re.Z,{value:Ka.getFieldValue([Ho.name,"weight"]),onChange:qa=>{Number.isInteger(qa)||Ka.setFieldValue([Ho.name,"weight"],parseFloat(qa).toFixed(2))},size:"large",addonAfter:"%",placeholder:"\u8BF7\u8F93\u5165\u6743\u91CD",min:.01,step:1,max:100,style:{width:"100px"}}))),iu.createElement(ve.Z,null,iu.createElement(oe.Z,{className:(fc=yo)==null?void 0:fc.h_lh_40},iu.createElement(ve.Z,{style:{marginLeft:"20px"}},iu.createElement("i",{className:"iconfont icon-tianjiatimu current",style:{color:"#00B187"},onClick:()=>{if(Su.length>=10)return pe.ZP.info("\u6700\u591A\u53EA\u80FD\u6DFB\u52A010\u4E2A\u8BC4\u5206\u70B9");Pu({name:"",content:"",weight:""})}})),ji>0&&iu.createElement(ve.Z,{style:{marginLeft:"20px"}},iu.createElement("i",{className:"iconfont icon-shanjian1 current",style:{color:"#E30000"},onClick:()=>{ci(Ho.name)}})))))})))))),iu.createElement("div",{className:`${yo.config_title} mt30`},"\u672A\u4F5C\u7B54\u7684\u5904\u7406\u65B9\u5F0F"),iu.createElement("div",{className:yo.znpy},iu.createElement(Ie.ZP,{style:{color:"#000"},checked:!Sa,onChange:Su=>{Hn(!Sa)}},"\u672A\u4F5C\u7B54\u4E0D\u8BC4\u9605",iu.createElement("span",{style:{color:"#666"}},"\uFF08\u5BF9\u4E8E\u5B66\u751F\u672A\u4F5C\u7B54\u7684\u7B80\u7B54\u9898\uFF0C\u4E0D\u8FDB\u884C\u8BC4\u9605\uFF0C\u9700\u8981\u6559\u5E08\u4EBA\u5DE5\u8FDB\u884C\u8BC4\u9605\uFF09"))),iu.createElement("div",{className:yo.znpy},iu.createElement(Ie.ZP,{style:{color:"#000"},checked:Sa,onChange:Su=>{Hn(!Sa)}},"\u672A\u4F5C\u7B54\u7ED90\u5206",iu.createElement("span",{style:{color:"#666"}},"\uFF08\u5BF9\u4E8E\u5B66\u751F\u672A\u4F5C\u7B54\u7684\u7B80\u7B54\u9898\uFF0C\u76F4\u63A5\u7ED90\u5206\uFF0C\u5E76\u4E14\u53EF\u4EE5\u8BBE\u7F6E\u7EDF\u4E00\u7684\u8BC4\u8BED\uFF09"))),Sa&&iu.createElement("div",{style:{padding:"5px 30px 5px 30px",backgroundColor:"rgb(246, 247, 249)"}},iu.createElement(Le.default.TextArea,{value:Oa,onChange:Su=>{tu(Su.target.value)},placeholder:"\u5BF9\u4E8E\u5B66\u751F\u672A\u4F5C\u7B54\u7684\u7B80\u7B54\u9898\uFF0C\u4F60\u53EF\u4EE5\u5728\u8FD9\u91CC\u8BBE\u7F6E\u7EDF\u4E00\u7684\u8BC4\u8BED~",rows:3,size:"large"})),iu.createElement("div",{className:`${yo.config_title} mt30`},"\u9009\u62E9\u8BC4\u9605\u8EAB\u4EFD"),iu.createElement("div",{className:yo.znpy,style:{border:0}},iu.createElement(Ie.ZP,{style:{color:"#000"},checked:!ia,onChange:Su=>{if(wu(!ia),nn&&nn!==-1)return tn(nn);tn(zn)}},"\u9009\u62E9\u4E00\u540D\u6559\u5E08",iu.createElement("span",{style:{color:"#666"}},"\uFF08\u5728\u5B66\u751F\u67E5\u770B\u8BC4\u9605\u4FE1\u606F\u65F6\uFF0C\u6240\u663E\u793A\u7684\u8BC4\u9605\u8005\u8EAB\u4EFD\u4E3A\u4EE5\u4E0B\u6240\u9009\u6559\u5E08\uFF09"))),!ia&&(Rt==null?void 0:Rt.length)>0&&iu.createElement("div",{className:yo.teacherList},Rt==null?void 0:Rt.map((Su,Pu)=>iu.createElement("div",{className:`${yo.teacherItem} ${(Su==null?void 0:Su.user_id)==cn?yo.activeTeacherItem:""}`,key:Pu,onClick:()=>tn(Su==null?void 0:Su.user_id)},Su==null?void 0:Su.name))),iu.createElement("div",{className:yo.znpy},iu.createElement(Ie.ZP,{style:{color:"#000"},checked:ia,onChange:Su=>{wu(!ia)}},"AI\u667A\u80FD\u4F53",iu.createElement("span",{style:{color:"#666"}},"\uFF08\u5728\u5B66\u751F\u67E5\u770B\u8BC4\u9605\u4FE1\u606F\u65F6\uFF0C\u6240\u663E\u793A\u7684\u8BC4\u9605\u8005\u8EAB\u4EFD\u4E3AAI\u667A\u80FD\u4F53\uFF09")))),iu.createElement(me.ZP,{loading:Ja,type:"primary",size:"large",style:{width:"138px",marginTop:"20px"},onClick:()=>$u()},"\u4FDD\u5B58")),iu.createElement(Fe.default,{width:800,bodyStyle:{maxHeight:"calc(100vh - 200px)",overflowY:"auto"},centered:!0,title:"\u9898\u76EE\u8BE6\u60C5",open:Ha,destroyOnClose:!0,onCancel:()=>{au(!1)},footer:null},(Ya==null?void 0:Ya.isCombine)&&iu.createElement(uu.Z,{className:yo.qtitle,value:(Ya==null?void 0:Ya.index)+`\u3001\u3010\u7EC4\u5408\u9898\u3011${Ya==null?void 0:Ya.parentTitle}`}),(Ya==null?void 0:Ya.isCombine)&&iu.createElement(uu.Z,{className:yo.qtitle,value:(Ya==null?void 0:Ya.index)+"."+(Ya==null?void 0:Ya.jdex)+`\u3001\u3010\u7B80\u7B54\u9898\u3011${Ya==null?void 0:Ya.question_title}`}),!(Ya!=null&&Ya.isCombine)&&iu.createElement(uu.Z,{className:yo.qtitle,value:(Ya==null?void 0:Ya.index)+`\u3001\u3010\u7B80\u7B54\u9898\u3011${Ya==null?void 0:Ya.question_title}`}),iu.createElement("div",{className:yo.simple},iu.createElement("div",{className:yo.title},"\u53C2\u8003\u7B54\u6848"),iu.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Pe=Ya==null?void 0:Ya.answer_texts)!=null&&Pe[0]?iu.createElement(uu.Z,{className:yo.content,value:(Ht=Ya==null?void 0:Ya.answer_texts)==null?void 0:Ht[0]}):iu.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")),iu.createElement("div",{className:"mt20 "},iu.createElement("span",{className:yo.title,style:{color:"#3061D0"}},"\u5224\u5206\u65B9\u5F0F"),iu.createElement("span",{style:{color:"#000",marginLeft:10,fontSize:"16px"}},Ya!=null&&Ya.use_keywords?"\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206":"\u624B\u52A8\u5224\u5206"))),iu.createElement("div",{className:yo.bottom},iu.createElement("div",{className:`${yo.bottomitem} mb30`},iu.createElement("span",{className:yo.left},"\u89E3\u6790"),iu.createElement("span",{className:yo.right},Ya!=null&&Ya.analysis?iu.createElement(uu.Z,{value:Ya==null?void 0:Ya.analysis}):iu.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),iu.createElement("div",{className:`${yo.bottomitem} mb30`},iu.createElement("span",{className:yo.left},"\u96BE\u5EA6"),iu.createElement("span",{className:yo.right},(Ya==null?void 0:Ya.difficulty)===1?"\u7B80\u5355":(Ya==null?void 0:Ya.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),iu.createElement("div",{className:yo.bottomitem},iu.createElement("span",{className:yo.left},"\u77E5\u8BC6\u70B9"),iu.createElement(Ae.Z,{title:((vn=Ya==null?void 0:Ya.tag_discipline_names)==null?void 0:vn.length)<=0||((hn=Ya==null?void 0:Ya.tag_discipline_names)==null?void 0:hn.length)==1&&["-"].includes(Ya==null?void 0:Ya.tag_discipline_names[0])?"\u6682\u672A\u8BBE\u7F6E~":(Gt=(xt=Ya==null?void 0:Ya.tag_discipline_names)==null?void 0:xt.join("\uFF1B"))==null?void 0:Gt.toString()},iu.createElement("span",{className:yo.right},((Bn=Ya==null?void 0:Ya.tag_discipline_names)==null?void 0:Bn.length)<=0?iu.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"):((Dn=Ya==null?void 0:Ya.tag_discipline_names)==null?void 0:Dn.length)==1&&["-"].includes(Ya==null?void 0:Ya.tag_discipline_names[0])?iu.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"):(Wt=(Fn=Ya==null?void 0:Ya.tag_discipline_names)==null?void 0:Fn.join("\uFF1B"))==null?void 0:Wt.toString())))))))};var Dp=(0,he.connect)(({exercise:ce,globalSetting:se,loading:ae,user:_e})=>({exercise:ce,globalSetting:se,loading:ae.effects,user:_e}))(Pp),Im=z(67294);const bp=({exercise:ce,globalSetting:se,dispatch:ae})=>{var _e,pt;const Ve=[!((0,On.dE)()||(_e=ce==null?void 0:ce.commonHeader)!=null&&_e.is_random||((pt=ce==null?void 0:ce.commonHeader)==null?void 0:pt.exercise_type)==2)&&{label:"\u667A\u80FD\u8BC4\u9605",key:"1",element:Im.createElement(Dp,null)},!((0,On.dE)()||!(0,On.$O)())&&{label:"\u9519\u9898\u63A8\u9001",key:"0",element:Im.createElement(pp,null)}].filter(Dt=>!!Dt);return(0,a.useEffect)(()=>(ae({type:"globalSetting/footerToggle",payload:!1}),()=>{ae({type:"globalSetting/footerToggle",payload:!0})}),[]),Im.createElement("div",{style:{paddingBottom:"50px"}},Im.createElement(q0.Z,{dataSource:Ve,style:{marginBottom:52}}))};var wp=(0,he.connect)(({exercise:ce,globalSetting:se})=>({exercise:ce,globalSetting:se}))(bp),xp=z(29916),ma=z(67294),Ip=Object.defineProperty,Lp=Object.defineProperties,Np=Object.getOwnPropertyDescriptors,Lm=Object.getOwnPropertySymbols,Mg=Object.prototype.hasOwnProperty,Rg=Object.prototype.propertyIsEnumerable,Tg=(ce,se,ae)=>se in ce?Ip(ce,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[se]=ae,_c=(ce,se)=>{for(var ae in se||(se={}))Mg.call(se,ae)&&Tg(ce,ae,se[ae]);if(Lm)for(var ae of Lm(se))Rg.call(se,ae)&&Tg(ce,ae,se[ae]);return ce},K0=(ce,se)=>Lp(ce,Np(se)),Op=(ce,se)=>{var ae={};for(var _e in ce)Mg.call(ce,_e)&&se.indexOf(_e)<0&&(ae[_e]=ce[_e]);if(ce!=null&&Lm)for(var _e of Lm(ce))se.indexOf(_e)<0&&Rg.call(ce,_e)&&(ae[_e]=ce[_e]);return ae},T0=(ce,se,ae)=>new Promise((_e,pt)=>{var Ve=Be=>{try{et(ae.next(Be))}catch(Pe){pt(Pe)}},Dt=Be=>{try{et(ae.throw(Be))}catch(Pe){pt(Pe)}},et=Be=>Be.done?_e(Be.value):Promise.resolve(Be.value).then(Ve,Dt);et((ae=ae.apply(ce,se)).next())});const Mp=ce=>{var se=ce,{exercise:ae,globalSetting:_e,loading:pt,dispatch:Ve,classroomList:Dt,user:et,match:Be}=se,Pe=Op(se,["exercise","globalSetting","loading","dispatch","classroomList","user","match"]),Ht,vn,hn,xt,Gt,Bn,Dn,Fn,Wt,Ut,Yt,ta,nn,zn,mn,pa,Pt,Nt;const Rt=(0,he.useParams)(),[Xt]=(0,he.useSearchParams)(),cn=(0,he.useLocation)(),[tn,Ja]=(0,a.useState)([]),{exerciseList:ha,commonHeader:dt,checkDomain:Fa,workSetting:ia,saveExerciseDownUsers:wu,course_groups:Sa}=ae,[Hn,Oa]=(0,a.useState)(null),[tu,Ka]=(0,a.useState)(Ge()(new Date).valueOf()),[Ba,La]=(0,a.useState)(),[Zn,bn]=(0,a.useState)(!1),[ca,Qn]=(0,a.useState)(1),[pn,Tn]=(0,a.useState)(!1),[En,da]=(0,a.useState)({name:"",id:"",list:[]}),[Ha,au]=(0,a.useState)({}),{userInfo:Ya}=et;Rt.category=Xt.get("category_id");const Cr=!Fa||Fa&&((Ht=Ya==null?void 0:Ya.course)==null?void 0:Ht.course_identity)<3,Zu=(0,a.useRef)(Date.now()),sa=(0,a.useRef)(),[Ru,mr]=(0,a.useState)({});(0,a.useEffect)(()=>{(0,On.Rm)()&&Ve({type:"classroomList/getAssistantPermissions",payload:{course_id:Rt.coursesId}})},[(vn=et==null?void 0:et.userInfo)==null?void 0:vn.username]),(0,a.useEffect)(()=>{new URLSearchParams(cn.search).get("tabs")==="3"&&Eu(),(0,lr.hs)(Ve)},[]),(0,a.useEffect)(()=>{ae.actionTabs.key=="\u8C03\u6574tabs\u9009\u4E2D"&&Oa(3)},[ae.actionTabs.key]),(0,a.useEffect)(()=>(clearInterval(sa.current),(0,On.G5)()&&(dt==null?void 0:dt.exercise_status)===2&&(dt!=null&&dt.enable_monitor)&&(sa.current=setInterval(()=>{mu()},5*1e3)),()=>{clearInterval(sa.current)}),[et.userInfo,dt==null?void 0:dt.exercise_status]),(0,a.useEffect)(()=>{gl();const qa=sessionStorage.getItem("illegalEntry");sessionStorage.getItem("illegalEntry")&&(sessionStorage.removeItem("illegalEntry"),Fe.default.info({title:"\u63D0\u793A",centered:!0,width:600,content:ma.createElement("div",null,"\u5728\u7EBF\u8003\u8BD5\u7981\u6B62\u4F7F\u7528\u94FE\u63A5\u76F4\u63A5\u8BBF\u95EE\u7B54\u9898\u9875\u9762\uFF0C\u8BF7\u4F7F\u7528\u4E0B\u9762\u4E24\u79CD\u6B63\u5E38\u65B9\u5F0F\u8FDB\u5165\u8003\u8BD5\u7B54\u9898\u9875\u9762\u3002",ma.createElement("br",null),"1\u3001\u5728",ma.createElement("span",{className:"c-red blod"},"\u8003\u8BD5\u5217\u8868"),"\u9875\u9762\u4E2D\uFF0C\u70B9\u51FB\u201C",ma.createElement("span",{className:"c-blue blod"},"\u5F00\u59CB\u8003\u8BD5"),"\u201D\u6216\u201C",ma.createElement("span",{className:"c-blue blod"},"\u7EE7\u7EED\u8003\u8BD5"),"\u201D\u6309\u94AE\u8FDB\u5165\u8003\u8BD5\u7B54\u9898\u9875\u9762\u3002",ma.createElement("br",null),"2\u3001\u5728",ma.createElement("span",{className:"c-red blod"},"\u8003\u8BD5\u8BE6\u60C5"),"\u9875\u9762\u4E2D\uFF0C\u70B9\u51FB\u201C",ma.createElement("span",{className:"c-blue blod"},"\u5F00\u59CB\u8003\u8BD5"),"\u201D\u6216\u201C",ma.createElement("span",{className:"c-blue blod"},"\u7EE7\u7EED\u8003\u8BD5"),"\u201D\u6309\u94AE\u8FDB\u5165\u8003\u8BD5\u7B54\u9898\u9875\u9762\u3002",ma.createElement("br",null),qa==="allowRouter"&&ma.createElement(ma.Fragment,null,"3\u3001",ma.createElement("span",{className:"c-red blod"},"\u4E25\u7981\u67E5\u770B\u4ED6\u4EBA\u7684\u8BD5\u5377\u3002"))),okText:"\u77E5\u9053\u4E86"}))},[Rt.coursesId]);const gl=()=>T0(void 0,null,function*(){const qa=yield Ve({type:"exercise/getCommonHeader",payload:_c({},Rt)});qa&&da(qa==null?void 0:qa.simulate_exercise_records)}),Tl=()=>{const qa=(dt==null?void 0:dt.simulate_exercise_num)-(dt==null?void 0:dt.user_simulate_num);return qa>=0?qa:0},mu=()=>T0(void 0,null,function*(){const qa=yield(0,Ce.ZP)(`/api/exercises/${Rt.categoryId}/new_abnormities.json`,{method:"get",params:{time:Zu.current}});if((qa==null?void 0:qa.status)===401){clearInterval(sa.current);return}Zu.current=Date.now(),(qa==null?void 0:qa.message)!==""&&(qa==null?void 0:qa.message)!=="\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"&&vv({title:(qa==null?void 0:qa.exercise_name)+"-\u8003\u8BD5\u5F02\u5E38",message:qa.message,target:"self",icon:"/warning.png",link:`/classrooms/${Rt.coursesId}/exercise/${Rt.categoryId}/detail?random=${Xt.get("random")==="true"}&tabs=7`})}),$u=(qa=!1)=>{he.history.push(`/classrooms/${Rt.coursesId}/exercisenotice/${dt.id}/users/${Ya.login}`)},jr=()=>{Ve({type:"exercise/setUpdateIndex"})},Eu=()=>{Ve({type:"exercise/getWorkSetting",payload:_c({},Rt)})},wr=()=>{Ve({type:"exercise/getCommonHeader",payload:_c({},Rt)});const qa={0:()=>{jr()},2:()=>{Qn(ca+1)},3:()=>{Ve({type:"exercise/getWorkSetting",payload:_c({},Rt)})}};qa[Hn]&&qa[Hn]()};function Va(qa){La(_c({},qa))}const Nu=[{name:"\u7B54\u9898\u5217\u8868",id:0,hidden:!1,component:ma.createElement(vs,{getparams:Va,checkDomainAuthority:Cr})},{name:"\u8BD5\u5377\u9884\u89C8",id:2,hidden:(dt==null?void 0:dt.exercise_status)===-1||(0,de._m)()&&!(0,On.ag)()||!Cr||(0,On.dE)(),component:(0,On.Rm)()&&!((hn=Dt.AssistantObject.exercise)!=null&&hn.can_preview)||(dt==null?void 0:dt.exercise_status)==1&&(0,On.Ny)()&&!(dt!=null&&dt.exercise_can_preview)?ma.createElement("div",{style:{height:"500px",background:"#fff",textAlign:"center",alignContent:"center"}},ma.createElement("img",{src:z(85004),width:220}),(0,On.Rm)()?ma.createElement("div",{style:{color:"#5F6367",marginTop:"18px"}},"\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"):ma.createElement(ma.Fragment,null,ma.createElement("div",{style:{color:"#5F6367",marginTop:"18px"}},"\u8003\u8BD5\u672A\u5F00\u59CB\u524D\uFF0C\u4EC5\u652F\u6301\u8BD5\u5377\u521B\u5EFA\u8005\u548C\u8BFE\u5802\u534F\u4F5C\u8001\u5E08\u67E5\u770B\u8BD5\u5377"),ma.createElement("div",{style:{color:"#5F6367",marginTop:"10px"}},"\u5982\u9700\u67E5\u770B\u8BD5\u5377\uFF0C\u8BF7\u8054\u7CFB\u8BFE\u5802\u7BA1\u7406\u5458\u5148\u52A0\u5165\u8BFE\u5802"))):dt!=null&&dt.is_random?ma.createElement(ru.default,{key:ca}):ma.createElement($l,{activeTabs:Hn})},{name:"\u7EDF\u8BA1\u5206\u6790",id:1,hidden:(dt==null?void 0:dt.exercise_status)===-1||!Cr||(0,de._m)()&&!(0,On.ag)()||(0,On.dE)()&&!(dt!=null&&dt.show_statistic),component:ma.createElement(Nf,null)},{name:"\u8D28\u91CF\u68C0\u6D4B",id:7,hidden:(dt==null?void 0:dt.exercise_status)===-1||!(dt!=null&&dt.open_code_quality_analysis)||(0,On.dE)(),component:ma.createElement($f,null)},{name:"\u4EE3\u7801\u67E5\u91CD",id:4,hidden:(dt==null?void 0:dt.exercise_status)===-1||(0,On.dE)()||dt.exercise_status===1||!dt.exist_program,component:ma.createElement(Ts,{key:tu})},{name:"\u91CD\u505A\u8BB0\u5F55",id:9,hidden:(dt==null?void 0:dt.exercise_status)===-1||(dt==null?void 0:dt.exercise_type)===2||(0,On.dE)()&&(dt==null?void 0:dt.exercise_status)===1,component:ma.createElement(hv.Z,null)},{name:"\u89C4\u5219\u8BBE\u7F6E",id:3,hidden:!Cr||(0,On.dE)(),component:(dt==null?void 0:dt.exercise_status)===-1?ma.createElement(pv.Z,null):ma.createElement(_0,null)},{name:"\u8003\u8BD5\u76D1\u63A7",id:7,hidden:(dt==null?void 0:dt.exercise_status)===-1||!(0,On.G5)()||!(dt!=null&&dt.enable_monitor),component:ma.createElement(ov,null)},{name:"\u4EBA\u8138\u5BA1\u6838",id:5,hidden:(dt==null?void 0:dt.exercise_status)===-1||!dt.identity_verify||(0,On.dE)(),component:ma.createElement(jo,null)},{name:"\u6444\u50CF\u76D1\u63A7",id:6,hidden:(dt==null?void 0:dt.exercise_status)===-1||!dt.open_phone_video_recording||(0,On.dE)(),component:ma.createElement(hi,null)},{name:ma.createElement("div",null,"AI\u8003\u8BD5\u62D3\u5C55 ",ma.createElement("img",{className:R0.ai_review_new,src:Ea.Z})),id:12,component:ma.createElement(wp,null),hidden:((0,On.dE)()||!(0,On.$O)())&&((0,On.dE)()||(dt==null?void 0:dt.is_random)||(dt==null?void 0:dt.exercise_type)==2)}].filter(qa=>!qa.hidden);(dt==null?void 0:dt.exercise_status)===1&&Nu.splice(0,1,...Nu.splice(1,1,Nu[0])),(0,a.useEffect)(()=>{if(typeof(dt==null?void 0:dt.exercise_status)=="number"){if(Xt.get("tabs")){Oa(Xt.get("tabs"));return}(dt==null?void 0:dt.exercise_status)===1?(Oa("2"),(0,On.dE)()&&Oa("0")):Oa("0")}},[dt==null?void 0:dt.exercise_status]);const oo="YYYY-MM-DD",Su=Ge()("2020-11-15",oo),Pu=()=>Fe.default.info({title:"\u9898\u5E93\u6539\u7248\u544A\u77E5",content:ma.createElement(ma.Fragment,null,"EduCoder\u5DF2\u5347\u7EA7\u9898\u5E93\u529F\u80FD\uFF0C\u6240\u6709\u8BD5\u9898\u5747\u9700\u5339\u914D\u77E5\u8BC6\u70B9\u3002 \u5F53\u524D\u8BD5\u5377\u6240\u6D89\u53CA\u8BD5\u9898\u5747\u672A\u5339\u914D\u77E5\u8BC6\u70B9\uFF0C\u65E0\u6CD5\u968F\u673A\u62BD\u53D6\uFF0C\u5DF2\u4E0D\u80FD\u6709\u6548\u4F7F\u7528\u3002\u8BF7\u5728\u8BD5\u5377\u5E93\u91CD\u65B0\u7EC4\u5377\u540E\u4F7F\u7528\u3002 \u7531\u6B64\u5E26\u6765\u7684\u4E0D\u4FBF\uFF0C\u656C\u8BF7\u8C05\u89E3\uFF01")}),ci=()=>{var qa,bl;return ma.createElement(xe.default,{onClick:lo=>T0(void 0,null,function*(){var Yu,tl;switch(ae.order&&(Rt.order=ae.order,Rt.order_type=ae.order_type),lo.key){case"1":if((0,On.Rm)()&&!((Yu=Dt.AssistantObject.exercise)!=null&&Yu.can_download)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Ve({type:"classroomList/setActionTabs",payload:{key:"\u9009\u62E9\u73ED\u7EA7",title:"\u5BFC\u51FA\u5B66\u751F\u6210\u7EE9",course_groups:Sa==null?void 0:Sa.map(_r=>({course_group_id:_r==null?void 0:_r.exercise_group_id,group_group_name:_r==null?void 0:_r.exercise_group_name,count:_r==null?void 0:_r.exercise_group_students})),fn:()=>{let _r=[];Fe.default.confirm({title:"\u5BFC\u51FA\u5B66\u751F\u6210\u7EE9\u8BBE\u7F6E",icon:null,width:650,closable:!0,centered:!0,onOk:()=>T0(void 0,null,function*(){if(_r.length===0)return pe.ZP.info("\u8BF7\u9009\u62E9\u9009\u9879\uFF01"),Promise.reject();Rt.types=_r,(yield(0,ne.Uj)(K0(_c(_c({},Rt),Ba),{exercise_group_id:[...JSON.parse(sessionStorage.all_student_works_params).course_group]}))).status===0&&(0,ye.je)(K0(_c(_c({},Rt),Ba),{exercise_group_id:[...JSON.parse(sessionStorage.all_student_works_params).course_group]}))}),content:ma.createElement("div",null,ma.createElement("p",{style:{color:"#E99237",marginBottom:"20"}},ma.createElement(b.Z,{style:{marginRight:5,color:"#E99237"}}),"\u8BF7\u9009\u62E9\u60A8\u9700\u8981\u7684\u5B66\u751F\u6210\u7EE9\u6570\u636E\u8FDB\u884C\u5BFC\u51FA\uFF0C\u5426\u5219\u53EF\u80FD\u4F1A\u56E0\u4E3A\u5BFC\u51FA\u7684\u6570\u636E\u592A\u591A\u800C\u5F71\u54CD\u5BFC\u51FA\u8FDB\u5EA6\u3002"),ma.createElement("div",null,ma.createElement(Se.default,{onChange:Io=>{Io.target.checked?_r.push(1):_r=_r.filter(os=>os!==1)}},"\u57FA\u672C\u6570\u636E",ma.createElement("span",{style:{color:"#666666"}},"\uFF08\u7EDF\u8BA1\u6BCF\u4E2A\u5B66\u751F\u7684\u5404\u9898\u578B\u5F97\u5206\u4E0E\u6700\u7EC8\u6210\u7EE9\uFF09"))),ma.createElement("div",{style:{marginTop:15,marginBottom:15}},ma.createElement(Se.default,{onChange:Io=>{Io.target.checked?_r.push(2):_r=_r.filter(os=>os!==2)}},"\u5F97\u5206\u8BE6\u8868",ma.createElement("span",{style:{color:"#666666"}},"\uFF08\u7EDF\u8BA1\u6BCF\u4E2A\u5B66\u751F\u7684\u5404\u5C0F\u9898\u5F97\u5206\u4E0E\u5404\u9898\u578B\u603B\u5F97\u5206\uFF09"))),ma.createElement("div",null,ma.createElement(Se.default,{onChange:Io=>{Io.target.checked?_r.push(3):_r=_r.filter(os=>os!==3)}},"\u6570\u636E\u5206\u6790",ma.createElement("span",{style:{color:"#666666"}},"\uFF08\u7EDF\u8BA1\u8BD5\u5377\u4E2D\u6BCF\u4E2A\u5C0F\u9898\u7684\u53C2\u8003\u603B\u4EBA\u6570\u3001\u7B54\u9898\u4EBA\u6570\u3001\u7B54\u5BF9\u4EBA\u6570\u3001\u6EE1\u5206\u4EBA\u6570\u548C\u5F97\u5206\u7387\uFF09"))))})}}});break;case"9":Ve({type:"classroomList/setActionTabs",payload:{key:"\u9009\u62E9\u73ED\u7EA7",title:"\u5BFC\u51FA\u5B9E\u9A8C\u62A5\u544A",course_groups:Sa==null?void 0:Sa.map(_r=>({course_group_id:_r==null?void 0:_r.exercise_group_id,group_group_name:_r==null?void 0:_r.exercise_group_name,count:_r==null?void 0:_r.exercise_group_students})),fn:()=>{(0,ye.lS)(K0(_c(_c({},Rt),Ba),{type:sessionStorage.getItem("exptype"),exercise_group_id:[...JSON.parse(sessionStorage.all_student_works_params).course_group]}))}}});break;case"8":if((0,On.Rm)()&&!((tl=Dt.AssistantObject.exercise)!=null&&tl.can_download)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}if(dt!=null&&dt.can_export_exam_summary)Ve({type:"exercise/setActionTabs",payload:{title:"\u8003\u8BD5\u603B\u7ED3\u8BBE\u7F6E"}});else{const _r=yield(0,ne.aU)({id:(Rt==null?void 0:Rt.categoryId)||(Rt==null?void 0:Rt.exerciseId)});Fe.default.confirm({title:"\u63D0\u793A",centered:!0,icon:null,closable:!0,footer:null,content:ma.createElement(ma.Fragment,null,"\u60A8\u6240\u5728\u7684\u5355\u4F4D\u8FD8\u6CA1\u6709\u4E13\u5C5E\u7684\u8003\u8BD5\u603B\u7ED3\u6A21\u677F\uFF0C\u6682\u65F6\u65E0\u6CD5\u751F\u6210\u8003\u8BD5\u603B\u7ED3\u3002\u5982\u9700\u5B9A\u5236\u6A21\u677F\uFF0C\u8BF7\u8054\u7CFB\u6559\u7814\u52A9\u7406\uFF01",ma.createElement("br",null),ma.createElement("div",{className:"mt-20px"},ma.createElement("a",{onClick:()=>{var Io,os,Zl,Bs,Di,Us,$c,Ln;mr({url:ke.Z.API_SERVER+((Bs=(Zl=(os=(Io=_r==null?void 0:_r.data)==null?void 0:Io.exam_summary_templates)==null?void 0:os[0])==null?void 0:Zl.attachment_info)==null?void 0:Bs.url),file_type:(Ln=($c=(Us=(Di=_r==null?void 0:_r.data)==null?void 0:Di.exam_summary_templates)==null?void 0:Us[0])==null?void 0:$c.attachment_info)==null?void 0:Ln.file_type})}},"\u67E5\u770B\u8003\u8BD5\u603B\u7ED3\u6A21\u677F\u793A\u4F8B>")),ma.createElement("div",{className:"mt-20px ml-auto mr-auto p10 rounded-4px",style:{width:180,height:180,boxShadow:"0px 0px 10px 0px rgba(162,162,162,0.3)"}},ma.createElement("img",{className:"h-full w-full",src:yv})),ma.createElement("div",{className:"mt10 mb-12px",style:{color:"#9096A3",textAlign:"center"}},"\u5FAE\u4FE1\u626B\u4E00\u626B\uFF0C\u6DFB\u52A0\u6559\u7814\u52A9\u7406"))})}break}})},(0,On.GJ)()&&!(dt!=null&&dt.appraise_label)&&Cr&&((qa=dt==null?void 0:dt.user_permission)==null?void 0:qa.exercise_unpublish_count)>0&&(dt==null?void 0:dt.exercise_status)!==1&&(!(dt!=null&&dt.is_make_up_exercise)||(dt==null?void 0:dt.is_make_up_exercise)&&!((bl=ia==null?void 0:ia.exercise)!=null&&bl.publish_time)&&(dt==null?void 0:dt.allow_create_make_up))&&ma.createElement(xe.default.Item,{key:"7",onClick:()=>{var lo,Yu,tl,_r;if(console.log(dt),(0,On.Rm)()&&!((Yu=(lo=Dt==null?void 0:Dt.AssistantObject)==null?void 0:lo.exercise)!=null&&Yu.can_publish)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}if((dt==null?void 0:dt.exercise_question_count)===0){pe.ZP.warning("\u8BD5\u5377\u5185\u6CA1\u6709\u8BD5\u9898\u4E0D\u5141\u8BB8\u53D1\u5E03\u8003\u8BD5");return}const Io=Ge()(dt==null?void 0:dt.created_at,oo);if(Ge()(Su).diff(Ge()(Io),"days")>0&&(dt!=null&&dt.is_random)){Pu();return}if(((tl=et==null?void 0:et.userInfo)==null?void 0:tl.user_status)===2){(0,lr.Rd)();return}dt!=null&&dt.high_resources_consume&&!(dt!=null&&dt.high_resources_consume_permission)?Ve({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:Rt.coursesId,type:"exercise",type_id:Rt.categoryId,name:dt.exercise_name,fn:()=>{var Zl;Ve({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u53D1\u5E03",selectArrs:[Rt.categoryId],unified_setting:dt==null?void 0:dt.unified_setting,params:Rt,disabled:(dt==null?void 0:dt.exercise_status)!==1,type:2,activeTab:Hn,cb:wr,manage_all_group:(Zl=ia==null?void 0:ia.exercise)==null?void 0:Zl.manage_all_group}})}}}):Ve({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u53D1\u5E03",selectArrs:[Rt.categoryId],unified_setting:dt==null?void 0:dt.unified_setting,params:Rt,disabled:(dt==null?void 0:dt.exercise_status)!==1,type:2,activeTab:Hn,cb:wr,manage_all_group:(_r=ia==null?void 0:ia.exercise)==null?void 0:_r.manage_all_group}})}},"\u53D1\u5E03\u8003\u8BD5"),(dt==null?void 0:dt.exercise_status)!==-1&&(0,On.GJ)()&&Cr&&dt.exercise_status!==1&&!(dt!=null&&dt.is_make_up_exercise&&dt.exercise_status===3)&&(dt!=null&&dt.open_appraise?ma.createElement(Ae.Z,{overlayStyle:{maxWidth:"initial"},title:ma.createElement("div",null,ma.createElement("div",null,"\u63D0\u793A\uFF1A"),ma.createElement("div",null,"\u672C\u573A\u8003\u8BD5\u5DF2\u5F00\u542F\u96C6\u4E2D\u9605\u5377\uFF0C\u4E3A\u4E86\u4E0D\u5F71\u54CD\u6210\u7EE9\u8BC4\u5B9A\uFF0C\u4E0D\u53EF\u8FDB\u884C\u6B64\u64CD\u4F5C\u3002"),ma.createElement("div",null,"\uFF08\u5982\u9700\u53D1\u5E03\u65B0\u73ED\u7EA7\u8003\u8BD5\uFF0C\u8BF7\u521B\u5EFA\u65B0\u8BD5\u5377\u540E\u53D1\u5E03\uFF09"))},ma.createElement(xe.default.Item,{key:"5"},"\u7F16\u8F91\u8BD5\u5377")):ma.createElement(xe.default.Item,{key:"5",onClick:()=>{var lo,Yu;if((0,On.Rm)()&&!((Yu=(lo=Dt==null?void 0:Dt.AssistantObject)==null?void 0:lo.exercise)!=null&&Yu.can_create)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const tl=Ge()(dt==null?void 0:dt.created_at,oo);if(Ge()(Su).diff(Ge()(tl),"days")>0&&(dt!=null&&dt.is_random)){Pu();return}else he.history.push(dt!=null&&dt.is_random?`/classrooms/${Rt.coursesId}/exercise/${Rt.categoryId}/random/edit?type=settings`:`/classrooms/${Rt.coursesId}/exercise/add/${Rt.categoryId}?random=false&type=2`)}},"\u7F16\u8F91\u8BD5\u5377")),(dt==null?void 0:dt.exercise_status)!==-1&&!(0,On.dE)()&&Cr&&dt.exercise_status>1&&dt.exist_program&&ma.createElement(xe.default.Item,{key:"4",onClick:lo=>{Ve({type:"exercise/setActionTabs",payload:{key:"\u4EE3\u7801\u67E5\u91CD",params:Rt}})}},"\u4EE3\u7801\u67E5\u91CD"),ma.createElement(xe.default.Item,{key:"1"},"\u5BFC\u51FA\u5B66\u751F\u6210\u7EE9"),(dt==null?void 0:dt.enable_report_setting)&&ma.createElement(xe.default.Item,{key:"9"},"\u5BFC\u51FA\u5B9E\u9A8C\u62A5\u544A"),(dt==null?void 0:dt.exercise_status)===3&&ma.createElement(xe.default.Item,{key:"8"},"\u5BFC\u51FA\u8003\u8BD5\u603B\u7ED3"),(dt==null?void 0:dt.exercise_status)!==-1&&ma.createElement(xe.default.Item,{key:"2",onClick:()=>{var lo;if((0,On.Rm)()&&!((lo=Dt.AssistantObject.exercise)!=null&&lo.can_download)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}if((0,On.Ny)()&&(dt==null?void 0:dt.exercise_status)==1&&!(dt!=null&&dt.exercise_can_preview)){pe.ZP.warning("\u8BD5\u5377\u53D1\u5E03\u524D\uFF0C\u4EC5\u652F\u6301\u8BD5\u5377\u521B\u5EFA\u8005\u548C\u8BFE\u5802\u534F\u4F5C\u8001\u5E08\u8FDB\u884C\u64CD\u4F5C");return}if((dt==null?void 0:dt.exercise_status)===1)(0,de.xg)(`/classrooms/${Rt.coursesId}/exercise/${Rt.categoryId}/export_blank`);else{let Yu=1;Fe.default.confirm({title:"\u8BF7\u9009\u62E9\u9700\u8981\u5BFC\u51FA\u7684\u7C7B\u578B",icon:null,centered:!0,closable:!0,content:ma.createElement(Ie.ZP.Group,{defaultValue:1,onChange:tl=>{Yu=tl.target.value}},ma.createElement(ze.Z,{direction:"vertical"},ma.createElement(Ie.ZP,{value:1},"\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377+\u7B54\u6848"),ma.createElement(Ie.ZP,{value:2},"\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377"),ma.createElement(Ie.ZP,{value:3},"\u5BFC\u51FA\u6240\u6709\u5B66\u751F\u8BD5\u5377"))),onOk:()=>{Yu===3?Ve({type:"classroomList/setActionTabs",payload:{key:"\u9009\u62E9\u73ED\u7EA7",title:"\u5BFC\u51FA\u8BD5\u5377",course_groups:Sa==null?void 0:Sa.map(tl=>({course_group_id:tl==null?void 0:tl.exercise_group_id,group_group_name:tl==null?void 0:tl.exercise_group_name,count:tl==null?void 0:tl.exercise_group_students})),fn:()=>T0(void 0,null,function*(){var tl,_r,Io,os;wu&&wu();let Zl="",Bs=0;const Di=yield(0,Ce.ZP)(`/api/exercises/${Rt.categoryId}/exercise_users.json`,{method:"get",params:K0(_c({},Rt),{exercise_group_id:[...JSON.parse(sessionStorage.all_student_works_params).course_group]})});if((Di==null?void 0:Di.status)===0){Zl=(tl=Di==null?void 0:Di.data)==null?void 0:tl.first_export_user_login,Bs=(_r=Di==null?void 0:Di.data)==null?void 0:_r.total_count;const Us=JSON.parse(localStorage[`${(Io=et==null?void 0:et.userInfo)==null?void 0:Io.login}-${Rt.coursesId}-${Rt.categoryId}-downFilter`]);localStorage[`${(os=et==null?void 0:et.userInfo)==null?void 0:os.login}-${Rt.coursesId}-${Rt.categoryId}-downFilter`]=JSON.stringify(K0(_c({},Us),{firstTargetLogin:Zl,totalCount:Bs,exercise_group_id:[...JSON.parse(sessionStorage.all_student_works_params).course_group]}))}(0,de.xg)(`/classrooms/${Rt.coursesId}/exercise/${Rt.categoryId}/export_blank?type=${Yu}`)})}}):(0,de.xg)(`/classrooms/${Rt.coursesId}/exercise/${Rt.categoryId}/export_blank?type=${Yu}`)}})}}},"\u5BFC\u51FA\u8BD5\u5377"),ma.createElement(xe.default.Item,{key:"3",onClick:()=>{var lo;if((0,On.Rm)()&&!((lo=Dt.AssistantObject.exercise)!=null&&lo.can_download)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}he.history.push(`/classrooms/${Rt.coursesId}/exportlist/exercise_score,export_exercise_users,export_exercise_report`)}},"\u5386\u53F2\u5BFC\u51FA"),(dt==null?void 0:dt.exercise_status)!==-1&&ma.createElement(xe.default.Item,{key:"6",onClick:()=>{var lo;if((0,On.Rm)()&&!((lo=Dt.AssistantObject.exercise)!=null&&lo.can_download)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Ve({type:"exercise/setActionTabs",payload:{key:"exportSetting"}})}},"\u5BFC\u51FA\u683C\u5F0F\u8BBE\u7F6E"))},Ho=qa=>T0(void 0,null,function*(){const bl=yield(0,Ce.ZP)(`/api/courses/${Rt==null?void 0:Rt.coursesId}/exercises/exercise_code_repeat.json`,{method:"post",body:{group_ids:qa,id:Rt==null?void 0:Rt.categoryId}});if(bl.status===0){Oa(4),Ka(Ge()(new Date).valueOf()),Ve({type:"exercise/setActionTabs",payload:{}});return}bl.status<-2&&pe.ZP.error(bl==null?void 0:bl.message)});let ji=[{live:"A",gz:"0\u4E2A\u9519\u8BEF",ld:"0\u4E2A\u6F0F\u6D1E",gf:"0 - 5%"},{live:"B",gz:"\u81F3\u5C111\u4E2A\u6B21\u8981\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u6B21\u8981\u6F0F\u6D1E",gf:"6% - 10%"},{live:"C",gz:"\u81F3\u5C111\u4E2A\u4E3B\u8981\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u4E3B\u8981\u6F0F\u6D1E",gf:"11% - 20%"},{live:"D",gz:"\u81F3\u5C111\u4E2A\u4E25\u91CD\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u4E25\u91CD\u6F0F\u6D1E",gf:"21% - 50%"},{live:"E",gz:"\u81F3\u5C111\u4E2A\u963B\u65AD\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u963B\u65AD\u6F0F\u6D1E",gf:"\u8D85\u8FC750%"}];const fc=[{title:"\u5E8F\u53F7",dataIndex:"name",fixed:"left",align:"center",width:60,render:(qa,bl,lo)=>ma.createElement(Ae.Z,{title:((Rt.page||1)-1)*20+lo+1},ma.createElement("span",null,((Rt.page||1)-1)*20+lo+1))},{title:"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",align:"center",width:100,render:(qa,bl)=>bl.commit_status===0||bl.commit_status===1?"--":!bl.open_total_score&&(0,On.dE)()?"\u8001\u5E08\u5BA1\u6838\u4E2D":(qa=typeof qa=="number"?Number(qa):qa,qa||(qa=0),qa===100?ma.createElement("span",{className:"c-green"},qa||"--"):qa>60?ma.createElement("span",{className:"c-orange"},qa||"--"):ma.createElement("span",null,qa||"--"))},!((Ha==null?void 0:Ha.objective)!==1||(Ha==null?void 0:Ha.objective)===1&&(Ha==null?void 0:Ha.subjective)!==1)&&{title:"\u5BA2\u89C2\u9898\u5F97\u5206",dataIndex:"objective_score",align:"center",render:(qa,bl)=>{if(bl.commit_status===0||bl.commit_status===1)return"--";if(!bl.open_total_score&&(0,On.dE)())return"\u8001\u5E08\u5BA1\u6838\u4E2D";{qa=typeof qa=="number"?Number(qa):qa,qa||(qa=0);let lo;return qa>=0&&qa<=60?lo=ma.createElement("span",null,qa):qa===100?lo=ma.createElement("span",{className:"c-green"},qa):qa>60?lo=ma.createElement("span",{className:"c-orange"},qa):lo="--",ma.createElement(oa,{renderText:lo,item:bl})}}},!((Ha==null?void 0:Ha.subjective)!==1||(Ha==null?void 0:Ha.subjective)===1&&(Ha==null?void 0:Ha.objective)!==1)&&{title:"\u4E3B\u89C2\u9898\u5F97\u5206",dataIndex:"subjective_score",align:"center",render:(qa,bl)=>{if(bl.commit_status===0||bl.commit_status===1)return"--";if(!bl.open_total_score&&(0,On.dE)())return"\u8001\u5E08\u5BA1\u6838\u4E2D";{qa=typeof qa=="number"?Number(qa):qa,qa||(qa=0);let lo;return qa==0||qa>0&&qa<=60?lo=ma.createElement("span",null,qa):qa===100?lo=ma.createElement("span",{className:"c-green"},qa):qa>60?lo=ma.createElement("span",{className:"c-orange"},qa):lo="--",lo}}},{title:"\u63D0\u4EA4\u72B6\u6001",dataIndex:"commit_status",align:"center",width:200,render:(qa,bl)=>qa===0?ma.createElement("span",{style:{color:"#666666"}},"\u672A\u5F00\u59CB"):qa===1?ma.createElement("span",{style:{color:"#DF3042"}},!bl.is_make_up&&"\u8003\u8BD5\u4E2D",bl.is_make_up&&"\u8003\u8BD5\u4E2D (\u8865\u8003)"):qa===2?ma.createElement("span",{style:{color:"#5AB891"}},!bl.is_make_up&&!bl.is_force_commit&&"\u5DF2\u4EA4\u5377",bl.is_make_up&&!bl.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003)",bl.is_make_up&&bl.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003/\u5F3A\u5236)",!bl.is_make_up&&bl.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u5F3A\u5236)"):ma.createElement("span",{style:{color:"#5AB891"}},!bl.is_make_up&&!bl.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54",bl.is_make_up&&!bl.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003)",bl.is_make_up&&bl.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003/\u5F3A\u5236)",!bl.is_make_up&&bl.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u5F3A\u5236)")},{title:"\u5F00\u59CB\u7B54\u9898\u65F6\u95F4",dataIndex:"start_at",align:"center",width:200,render:qa=>qa?Ge()(qa).format("YYYY-MM-DD HH:mm"):"--"},{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"end_at",align:"center",width:200,render:qa=>qa?Ge()(qa).format("YYYY-MM-DD HH:mm"):"--"}].filter(qa=>!!qa);return(0,On.RV)()?(0,On.RV)()?ma.createElement("section",{className:R0.bg},ma.createElement("div",{className:"edu-container"},Ya.username&&ma.createElement("section",{className:"animated fadeIn"},ma.createElement("aside",{className:"mt10"},ma.createElement(Me.Z,{separator:">"},ma.createElement(Me.Z.Item,{href:`/classrooms/${Rt.coursesId}/exercise`},(Gt=(xt=et==null?void 0:et.userInfo)==null?void 0:xt.course)==null?void 0:Gt.course_name),ma.createElement(Me.Z.Item,{href:`/classrooms/${Rt.coursesId}/exercise`},"\u5728\u7EBF\u8003\u8BD5"),ma.createElement(Me.Z.Item,null,"\u8BD5\u5377\u8BE6\u60C5"))),ma.createElement("aside",{className:[R0.title,"mt20"].join(" ")},ma.createElement("a",{href:`/classrooms/${Rt.coursesId}/exercise`},ma.createElement(ee.Z,{className:"font16 c-black"})),(0,de.vB)(dt==null?void 0:dt.exercise_status,dt==null?void 0:dt.appraise_label),(dt==null?void 0:dt.is_make_up_exercise)&&ma.createElement("img",{src:mv,width:44,height:24,style:{marginRight:5,marginLeft:10}}),ma.createElement("strong",{className:"font20 ml5 mr10"},dt==null?void 0:dt.exercise_name),(dt==null?void 0:dt.exercise_type)==2&&ma.createElement("span",{style:{flexShrink:0,marginRight:10,display:"flex",alignItems:"center"},className:R0.moni},ma.createElement("img",{src:gv,width:18,height:14}),"\u6A21\u62DF\u8003\u8BD5"),(dt==null?void 0:dt.is_make_up_exercise)&&ma.createElement(Ae.Z,{title:"\u70B9\u51FB\u53EF\u67E5\u770B\u539F\u8003\u8BD5"},ma.createElement("i",{className:"iconfont icon-yuankaoshi",style:{color:"#165DFF",cursor:"pointer"},onClick:()=>{(0,de.xg)(`/classrooms/${Rt.coursesId}/exercise/${dt==null?void 0:dt.make_up_exercise_id}/detail?random=${dt==null?void 0:dt.make_up_exercise_is_random}`)}})))),ma.createElement("aside",{className:"mt30 relative"},Hn=="12"?ma.createElement("div",{className:R0.export},ma.createElement(Xo,null)):ma.createElement("div",{className:R0.export},!(0,On.dE)()&&!(dt!=null&&dt.is_make_up_exercise)&&(dt==null?void 0:dt.exercise_status)===3&&(dt==null?void 0:dt.exercise_type)!=2&&ma.createElement(me.ZP,{onClick:qa=>{if(qa.preventDefault(),!(dt!=null&&dt.allow_create_make_up)){pe.ZP.warning("\u60A8\u5F53\u524D\u6CA1\u6709\u64CD\u4F5C\u6743\u9650\uFF0C\u8BF7\u8054\u7CFB\u8BFE\u5802\u7BA1\u7406\u5458");return}Ve({type:"exercise/setActionTabs",payload:{key:"\u8865\u8003\u8BB0\u5F55",params:Rt}})}},ma.createElement("span",{className:"iconfont icon-shenhezhong font14 mr5"}),"\u8865\u8003\u8BB0\u5F55"),(0,On.dE)()&&dt.exercise_status<3&&(dt==null?void 0:dt.is_show_report_setting)&&((Bn=dt==null?void 0:dt.exercise_report_template)==null?void 0:Bn.length)>0&&ma.createElement(me.ZP,{style:{marginRight:10},onClick:qa=>{qa.preventDefault(),Ve({type:"exercise/setActionTabs",payload:{key:"\u63D0\u4EA4\u62A5\u544A",params:K0(_c({},Rt),{exercise_user_id:dt.exercise_user_id})}})}},ma.createElement("span",{className:"iconfont icon-tijiaojilu font14 mr5"}),"\u63D0\u4EA4\u62A5\u544A"),!(0,On.dE)()&&!(dt!=null&&dt.is_make_up_exercise)&&dt.exercise_status===3&&(dt==null?void 0:dt.exercise_type)!=2&&ma.createElement(me.ZP,{onClick:qa=>{if(qa.preventDefault(),!(dt!=null&&dt.allow_create_make_up)){pe.ZP.warning("\u60A8\u5F53\u524D\u6CA1\u6709\u64CD\u4F5C\u6743\u9650\uFF0C\u8BF7\u8054\u7CFB\u8BFE\u5802\u7BA1\u7406\u5458");return}Ve({type:"exercise/setActionTabs",payload:{key:"\u8BD5\u5377\u9009\u7528",params:Rt}})}},ma.createElement("span",{className:"iconfont icon-shenhezhong font14 mr5"}),"\u521B\u5EFA\u8865\u8003"),(0,On.GJ)()&&Cr&&((Dn=dt==null?void 0:dt.user_permission)==null?void 0:Dn.user_commit_counts)>0&&(dt==null?void 0:dt.exercise_status)===2&&(dt==null?void 0:dt.exercise_type)!=2&&ma.createElement(me.ZP,{onClick:qa=>{var bl,lo;if(qa.preventDefault(),(0,On.Rm)()&&!((lo=(bl=Dt==null?void 0:Dt.AssistantObject)==null?void 0:bl.exercise)!=null&&lo.can_redo)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Ve({type:"exercise/setActionTabs",payload:{key:"\u6253\u56DE\u91CD\u505A",params:Rt}})}},ma.createElement("span",{className:"iconfont icon-dahuizhongzuo3x font14 mr5"}),"\u6253\u56DE\u91CD\u505A"),(0,On.GJ)()&&Cr&&((Fn=dt==null?void 0:dt.user_permission)==null?void 0:Fn.exercise_unpublish_count)>0&&(dt==null?void 0:dt.exercise_status)===1&&(!(dt!=null&&dt.is_make_up_exercise)||(dt==null?void 0:dt.is_make_up_exercise)&&(dt==null?void 0:dt.allow_create_make_up))&&ma.createElement(hg.Z,{tips:dt==null?void 0:dt.open_appraise,style:{marginLeft:10}},ma.createElement(me.ZP,{onClick:qa=>{var bl,lo,Yu,tl;if(qa.preventDefault(),(0,On.Rm)()&&!((lo=(bl=Dt==null?void 0:Dt.AssistantObject)==null?void 0:bl.exercise)!=null&&lo.can_publish)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}if((dt==null?void 0:dt.exercise_question_count)===0){pe.ZP.warning("\u8BD5\u5377\u5185\u6CA1\u6709\u8BD5\u9898\u4E0D\u5141\u8BB8\u53D1\u5E03\u8003\u8BD5");return}if(((Yu=et==null?void 0:et.userInfo)==null?void 0:Yu.user_status)===2){(0,lr.Rd)();return}const _r=Ge()(dt==null?void 0:dt.created_at,oo);if(Ge()(Su).diff(Ge()(_r),"days")>0&&(dt!=null&&dt.is_random)){Pu();return}dt!=null&&dt.high_resources_consume&&!(dt!=null&&dt.high_resources_consume_permission)?Ve({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:Rt.coursesId,type:"exercise",type_id:Rt.categoryId,name:dt.exercise_name,fn:()=>{var os;Ve({type:"exercise/getCommonHeader",payload:_c({},Rt)}),Ve({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u53D1\u5E03",selectArrs:[Rt.categoryId],unified_setting:dt==null?void 0:dt.unified_setting,params:Rt,disabled:(dt==null?void 0:dt.exercise_status)!==1,type:2,activeTab:Hn,cb:wr,manage_all_group:(os=ia==null?void 0:ia.exercise)==null?void 0:os.manage_all_group}})}}}):Ve({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u53D1\u5E03",selectArrs:[Rt.categoryId],unified_setting:dt==null?void 0:dt.unified_setting,params:Rt,disabled:(dt==null?void 0:dt.exercise_status)!==1,type:2,activeTab:Hn,cb:wr,manage_all_group:(tl=ia==null?void 0:ia.exercise)==null?void 0:tl.manage_all_group}})}},ma.createElement("span",{className:"iconfont icon-fabuzhiwei font14 mr5"}),"\u53D1\u5E03\u8003\u8BD5")),(0,On.GJ)()&&Cr&&((Wt=dt==null?void 0:dt.user_permission)==null?void 0:Wt.exercise_publish_count)>0&&ma.createElement(me.ZP,{onClick:qa=>{var bl,lo;if(qa.preventDefault(),(0,On.Rm)()&&!((lo=(bl=Dt==null?void 0:Dt.AssistantObject)==null?void 0:bl.exercise)!=null&&lo.can_stop)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Ve({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u7ED3\u675F",unified_setting:dt==null?void 0:dt.unified_setting,selectArrs:[Rt.categoryId],params:Rt,cb:wr}})}},ma.createElement("span",{className:"iconfont icon-lijijiezhi mr5 font14"}),"\u7ED3\u675F\u8003\u8BD5"),(0,On.dE)()&&dt.is_late&&`\u8FDF\u5230\u8D85\u8FC7${dt.last_times}\u5206\u949F\uFF0C\u7981\u6B62\u8FDB\u5165\u7B54\u9898`,(0,On.dE)()&&(dt==null?void 0:dt.exercise_type)===2&&ma.createElement(me.ZP,{onClick:qa=>T0(void 0,null,function*(){qa.preventDefault();const bl=yield(0,Ce.ZP)(`/api/exercises/${Rt.categoryId}/header_info.json`,{method:"get"});(bl==null?void 0:bl.status)===0&&au((bl==null?void 0:bl.data)||{}),Tn(!0)})},ma.createElement("span",{className:"iconfont icon-shenhezhong font14 mr5"}),"\u8003\u8BD5\u8BB0\u5F55"),(0,On.dE)()&&(dt==null?void 0:dt.exercise_type)===1&&((Ut=dt==null?void 0:dt.user_permission)==null?void 0:Ut.current_status)===2&&!dt.is_late&&dt.exercise_status>1&&ma.createElement(me.ZP,{onClick:()=>$u()},ma.createElement("span",{className:"iconfont icon-bianjizuoye mr5 font14"}),(Yt=ha==null?void 0:ha.exercise_types)!=null&&Yt.is_redo?"\u91CD\u65B0\u8003\u8BD5":"\u5F00\u59CB\u8003\u8BD5"),(0,On.dE)()&&(dt==null?void 0:dt.exercise_type)===2&&!dt.is_late&&(dt==null?void 0:dt.exercise_status)!=3&&dt.exercise_status>1&&ma.createElement(Ae.Z,{title:ma.createElement("span",null,"\u672C\u6B21\u8003\u8BD5\u53EF\u91CD\u590D\u8003\u8BD5",dt==null?void 0:dt.simulate_exercise_num,"\u6B21\uFF0C\u5269\u4F59",Tl(),"\u6B21")},ma.createElement(me.ZP,{onClick:()=>$u(),disabled:Tl()===0&&((ta=dt==null?void 0:dt.user_permission)==null?void 0:ta.current_status)!=0,style:{marginLeft:8}},ma.createElement("span",{className:"iconfont icon-bianjizuoye mr5 font14"}),((nn=dt==null?void 0:dt.user_permission)==null?void 0:nn.current_status)==0?"\u7EE7\u7EED\u8003\u8BD5":"\u5F00\u59CB\u8003\u8BD5")),(0,On.dE)()&&(dt==null?void 0:dt.exercise_type)===1&&((zn=dt==null?void 0:dt.user_permission)==null?void 0:zn.current_status)===0&&!dt.is_late&&dt.exercise_status>1&&ma.createElement(me.ZP,{onClick:()=>$u(!0)},ma.createElement("span",{className:"iconfont icon-bianjizuoye mr5 font14"}),"\u7EE7\u7EED\u8003\u8BD5"),(0,On.dE)()&&(dt==null?void 0:dt.screen_used_num)>(dt==null?void 0:dt.screen_num)&&dt.exercise_status!==3&&ma.createElement(me.ZP,{onClick:()=>$u(!0)},ma.createElement("span",{className:"iconfont icon-bianjizuoye mr5 font14"}),"\u7533\u8BF7","\u7EE7\u7EED\u8003\u8BD5"),(0,On.dE)()&&(dt==null?void 0:dt.whole_exercise_status)===3&&(dt==null?void 0:dt.ai_push_wrong_question)&&((mn=dt==null?void 0:dt.user_permission)==null?void 0:mn.current_status)!==4&&ma.createElement(oe.Z,{align:"middle"},(dt==null?void 0:dt.wrong_questions_size)!==0&&((pa=dt==null?void 0:dt.progress)==null?void 0:pa.stat)===1&&ma.createElement(Rv,{dispatch:Ve,id:dt==null?void 0:dt.ai_question_record_id}),ma.createElement(me.ZP,{onClick:()=>{var qa;if((dt==null?void 0:dt.wrong_questions_size)===0){pe.ZP.warning("\u672C\u6B21\u8003\u8BD5\u4F60\u65E0\u9700\u8FDB\u884C\u9519\u9898\u5DE9\u56FA\uFF5E");return}if(((qa=dt==null?void 0:dt.progress)==null?void 0:qa.stat)===1){pe.ZP.warning("\u63A8\u8350\u8BD5\u9898\u6B63\u5728\u751F\u6210\u4E2D\uFF0C\u8BF7\u7B49\u5F85\u751F\u6210\u5B8C\u6210\u540E\u518D\u5F00\u59CB\u5DE9\u56FA");return}(0,de.xg)(`/classrooms/${Rt.coursesId}/exercise/${Rt.categoryId}/wrongAnswer/${Ya==null?void 0:Ya.login}`)}},ma.createElement("span",{className:"iconfont icon-cuotigonggu mr5 font14"}),"\u9519\u9898\u5DE9\u56FA")),(dt==null?void 0:dt.show_analysis_detail)&&ma.createElement(me.ZP,{onClick:()=>{(0,de.xg)(`/classrooms/${Rt.coursesId}/exercise/${Rt.categoryId}/analysis/${dt==null?void 0:dt.analysis_id}`)}},ma.createElement("span",{className:"iconfont icon-a-08zhiliang-xianxing font14 pr5"}),"\u8D28\u91CF\u8BC4\u5206"),(0,On.GJ)()&&Cr&&(dt.exercise_status===1||dt.exercise_status===3&&(dt==null?void 0:dt.is_make_up_exercise))&&ma.createElement(hg.Z,{tips:dt==null?void 0:dt.open_appraise,style:{marginLeft:10}},ma.createElement(me.ZP,{onClick:()=>{var qa,bl;if((0,On.Rm)()&&!((bl=(qa=Dt==null?void 0:Dt.AssistantObject)==null?void 0:qa.exercise)!=null&&bl.can_create)){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}if((0,On.Ny)()&&(dt==null?void 0:dt.exercise_status)==1&&!(dt!=null&&dt.exercise_can_preview)){pe.ZP.warning("\u8BD5\u5377\u53D1\u5E03\u524D\uFF0C\u4EC5\u652F\u6301\u8BD5\u5377\u521B\u5EFA\u8005\u548C\u8BFE\u5802\u534F\u4F5C\u8001\u5E08\u8FDB\u884C\u64CD\u4F5C");return}const lo=Ge()(dt==null?void 0:dt.created_at,oo);if(Ge()(Su).diff(Ge()(lo),"days")>0&&(dt!=null&&dt.is_random)){Pu();return}else he.history.push(dt!=null&&dt.is_random?`/classrooms/${Rt.coursesId}/exercise/${Rt.categoryId}/random/edit?type=settings`:`/classrooms/${Rt.coursesId}/exercise/add/${Rt.categoryId}?random=false&type=2`)}},ma.createElement("span",{className:"iconfont icon-bianjizuoye mr5 font14"}),"\u7F16\u8F91\u8BD5\u5377")),(dt==null?void 0:dt.exercise_status)===-1&&(0,On.GJ)()&&ma.createElement(me.ZP,{icon:ma.createElement("span",{className:"iconfont icon-shixun3 translateY1"}),onClick:()=>{Ve({type:"classroomList/setActionTabs",payload:{key:"\u8865\u5145\u6210\u7EE9",name:dt==null?void 0:dt.exercise_name,id:dt==null?void 0:dt.id,type:"exercise"}})}},"\u8865\u5145\u6210\u7EE9"),(0,On.GJ)()&&Cr&&ma.createElement(E.Z,{dropdownRender:ci},ma.createElement(me.ZP,null,"\u66F4\u591A\u64CD\u4F5C",ma.createElement(te.Z,null)))),ma.createElement("aside",{className:`mt30 relative ${R0.workListTabWrap}`},ma.createElement(y.default,{activeKey:`${Hn}`,onChange:qa=>{var bl;if(parseInt(qa)===1&&!((bl=Dt.AssistantObject.exercise)!=null&&bl.can_view)&&(0,On.Rm)()){pe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const lo=Ge()(dt==null?void 0:dt.created_at,oo),Yu=Ge()(Su).diff(Ge()(lo),"days");if(ae.actionTabs.key=="\u8868\u5355\u672A\u4FDD\u5B58")Fe.default.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:()=>{if(Yu>0&&parseInt(qa)===3&&(dt!=null&&dt.is_random)){Pu();return}Oa(qa),Ve({type:"exercise/setActionTabs",payload:{key:""}})}});else{if(Yu>0&&parseInt(qa)===3&&(dt!=null&&dt.is_random)){Pu();return}Oa(qa)}qa==="3"?Eu():(qa==="2"||qa==="11")&&Ve({type:"exercise/getCommonHeader",payload:_c({},Rt)})},items:Nu.map(qa=>({label:qa.name,key:`${qa.id}`}))})),ma.createElement("section",{className:dt!=null&&dt.is_random&&Hn==="2"||["3","9","10","11","12"].includes(Hn)?"":"pl25 pr25 bg-white"},(Nt=(Pt=Nu.filter(qa=>qa.id==Hn))==null?void 0:Pt[0])==null?void 0:Nt.component))),ma.createElement(Lu.Z,null),ma.createElement(xr,{onOk:Ho}),ma.createElement(Nr.Z,null),ma.createElement(us,{cb:()=>jr()}),ma.createElement(Ev.Z,{onOk:()=>jr()}),ma.createElement(Av.Z,{onOk:()=>jr()}),ma.createElement(mt,null),ma.createElement(Uf,null),ma.createElement(fv.Z,null),ma.createElement(Iu,null),ma.createElement(Vf,null),ma.createElement(dv.Z,{successCb:()=>$u(currentEnterExamRef.current)}),ma.createElement(Fe.default,{open:Zn,title:"\u89C4\u5219\u8BF4\u660E",width:800,footer:null,onCancel:()=>{bn(!1)}},ma.createElement("p",null,"\u4E00\u3001\u7B49\u7EA7\u89C4\u5219"),ma.createElement("p",{style:{marginLeft:"10px"}},"1. \u7F3A\u9677\u7B49\u7EA7"),ma.createElement("p",{style:{marginLeft:"10px"}},ma.createElement(x.default,{dataSource:ji,columns:[{title:"\u7B49\u7EA7",dataIndex:"live"},{title:"\u7F3A\u9677\u8BC4\u4F30\u89C4\u5219",dataIndex:"gz"},{title:"\u6F0F\u6D1E\u8BC4\u4F30\u89C4\u5219",dataIndex:"ld"},{title:"\u4EE3\u7801\u89C4\u8303\u8BC4\u4F30\u89C4\u5219",dataIndex:"gf"}],pagination:!1})),ma.createElement("p",{style:{marginLeft:"10px"}},"\u6CE8\uFF1A\u4EE3\u7801\u89C4\u8303\u8BC4\u4F30\u89C4\u5219\u4E2D\u6570\u503C\u6765\u6E90\u4E3A\u8BA1\u7B97\u6280\u672F\u503A\u52A1\u65F6\u95F4\u5360\u5F00\u53D1\u6240\u6709\u4EE3\u7801\u6240\u9700\u8981\u7684\u65F6\u95F4\u7684\u6BD4\u4F8B\uFF08Technical Debt Ratio\uFF09"),ma.createElement("p",{style:{marginLeft:"20px"}},"Technical Debt Ratio = \u6280\u672F\u503A\u52A1\u65F6\u95F4 / \u5F00\u53D1\u65F6\u95F4"),ma.createElement("p",{style:{marginLeft:"20px"}},"\u6280\u672F\u503A\u52A1\u65F6\u95F4\u4E3A\u4FEE\u590D\u6240\u6709\u95EE\u9898\u6240\u9700\u8981\u7684\u65F6\u95F4\u3002"),ma.createElement("p",null,"\u4E8C\u3001\u590D\u6742\u5EA6\u89C4\u5219"),ma.createElement("p",{style:{marginLeft:"10px"}},"\u6839\u636E\u4EE3\u7801\u8DEF\u5F84\u6570\u8BA1\u7B97\u7684\u6570\u503C\uFF0C\u6BCF\u5F53\u4E00\u4E2A\u51FD\u6570\u7684\u63A7\u5236\u6D41\u5206\u53C9\u65F6\uFF0C\u590D\u6742\u5EA6\u8BA1\u6570\u5668\u5C31\u4F1A\u81EA\u589E\u4E00\u3002"),ma.createElement("p",{style:{marginLeft:"10px"}},"\u6BCF\u4E2A\u7A0B\u5E8F\u8BED\u8A00\u7684\u5173\u952E\u5B57\u5BF9\u5E94\u7684\u590D\u6742\u5EA6\u6570\u636E\u4E0D\u540C\uFF0C\u4F46\u6BCF\u4E2A\u51FD\u6570\u7684\u6700\u5C0F\u590D\u6742\u5EA6\u4E3A1\u3002\uFF08\u7279\u5B9A\u8BED\u8A00\u7684\u8BE6\u7EC6\u6570\u636E\u7565\uFF09"),ma.createElement("p",null,"\u4E09\u3001\u4EE3\u7801\u8D28\u91CF\u5206\u89C4\u5219"),ma.createElement("p",{style:{marginLeft:"10px"}},"\u4EE3\u7801\u8D28\u91CF\u5206 = 0.5*\u7F3A\u9677\u5206\u6570 + 0.3*\u6F0F\u6D1E\u5206\u6570 + 0.2*\u4EE3\u7801\u89C4\u8303\u6027\u5206\u6570"),ma.createElement("p",{style:{marginLeft:"10px"}},"\u5176\u4E2D\uFF1A"),ma.createElement("p",{style:{marginLeft:"10px"}},"\u7F3A\u9677/\u6F0F\u6D1E/\u4EE3\u7801\u89C4\u8303\u6027\u5206\u6570\u8BA1\u7B97\u89C4\u5219\u4E3A\uFF1A100 - 100 *((100*\u963B\u65AD\u6570 + 5*\u4E25\u91CD\u6570 + 3*\u4E3B\u8981\u6570 + 1*\u6B21\u6570\uFF09/ \u4EE3\u7801\u884C\u6570\uFF09"),ma.createElement("p",{style:{marginLeft:"10px"}},"\u6CE8\uFF1A\u5206\u6570\u4E3A\u7A7A\u7684\u4EE3\u8868\u4E0D\u652F\u6301\u7684\u6587\u4EF6\u683C\u5F0F\u3002")),ma.createElement(Fe.default,{open:pn,title:"\u8003\u8BD5\u8BB0\u5F55",centered:!0,width:1e3,footer:null,onCancel:()=>{Tn(!1)}},(En==null?void 0:En.length)===0?ma.createElement(zt.Z,{styles:{margin:"0 auto"},customText:"\u6682\u65E0\u6570\u636E"}):ma.createElement(x.default,{dataSource:En,columns:fc,pagination:!1})),ma.createElement(Fv.Z,null),ma.createElement(ga.Z,{close:!0,hasMask:!0,style:{zIndex:9999},data:Ru==null?void 0:Ru.url,type:Ru==null?void 0:Ru.file_type,onClose:()=>mr({})}),ma.createElement(Ov,null),ma.createElement(Iv,null),ma.createElement(Cv.Z,null),ma.createElement(kv,null),ma.createElement(xp.Z,null)):"":null};var Rp=(0,he.connect)(({exercise:ce,loading:se,user:ae,globalSetting:_e,classroomList:pt})=>({classroomList:pt,exercise:ce,globalSetting:_e,user:ae,loading:se.effects}))(Mp)},23377:function(Ft,rt,z){"use strict";z.d(rt,{Z:function(){return Ge}});var a=z(67294),Ce=z(28802),ke=z(2453),he=z(62844),Fe=z(74330),xe=z(71230),pe=z(15746),Se=z(35059),Ae=z(84567),Ie=z(37720),ze=z(38308),Me={modalWrapper:"modalWrapper___rWDvO",exportSettingWrapper:"exportSettingWrapper___pCClH",imgPreviewPart:"imgPreviewPart___PCv0Y",tips:"tips___EVeBl",pottedLine:"pottedLine___AaY68",text:"text___ho3u_"},me=z(35973),oe=z(33170),E=z(63494),y=z(33054),x=z(11320),b=z(71865),ee="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAAAECAYAAADLcnBRAAAAAXNSR0IArs4c6QAAAcNJREFUSEvtlT1oFFEURs+dndmAqGBAMCAoKAqChT+lYGER6xQLlsGdXWMQFETbtREhjQgmuxmLdJIEi1SxCdjYRpCQbkEhoihioYjMneyVCDtMCuG+fqedc9437775ZoTRNZrAaAL/nYDs3bFZTmjB0dA5Jbt8kRfseD2b4YgOOOXlh1wCv6XHttezFWq6wQUvX+WSa7yTBrte19qcUzjg5cs9RfRlgR9ez5oc1xrHvHyZE/NNnvPR69kdDmvOGS9f5gh/pMtWiJe3uRzCl1kTvJcOude1Gc7qgENevswxPvwrSN6kB7RCF5CIuWSRB16vSGkMjGUvX3LCZj3jkteze4zrT757+X0FSRgPeXHzJpsQXsYoohEvsup9Rk2ZM+O+lx9ykdCLM255PU2ZNOO1l6+cUb+ecdrrWYdYd1Avv++MxjgZUnpNeWPG1dCsCJrDgsyKcD10AYFXccaS19MWVzAeevkK108y7no9u83BQnnp5atcnHBD5vnldTXlKYT/FanxJOny1ptTtJm2AVNefsgZrNcz5r2etbhYGI+8fCXncz3zf2StQ1R8Yi00Z4+Pa9yULl+9rqY8Bs57+ZKLePYXdsiA6BdYLZkAAAAASUVORK5CYII=",te="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAn4AAAAECAYAAAAQ9jLuAAAAAXNSR0IArs4c6QAABLVJREFUaEPtmVuIVVUYgL+1z17H0S6kliWaJdlVS7pQBHajoLAMKpjo8hKdfc7MiNmoaA8Fx4IIjMzIuZx9sijLrkRGGURQdHkJjSy7G2bqWHaTKbO99pw/ztRs9rz9ax58qHPeDnzf+tf6/7XWXmtvQ+vXykArA60MtDLQykArA60MtDLwv8iAaY5SFnKCSznGd8R2iL2mzi6tJ51MdA1O0vIjnIUDpp/PtJ48T8G9xdlaPs/Zy/nItDOkdaXCGQ4maPlsTAHbTS+/aj0pMd0VOE7LZ3FC9pm1fKf1ZBFHuoRTtHwWx3DQ9PGpj5dUOM+Hz2JNZaupkmhd6eRU1+AILZ/FEXaYGj9pPSkz1RmmafncXPjF9PKt1pNlHOYGOV3L59aRM/187ONJmXOcIfBxmqydwDazmj+1nnQxyw1xlJbPxtTG92YNP2g96WCKE2Zo+SxOgd9MD99oPanS5gaYo+Vzc65hamzx8aTCXAfWxxmuUYEvTA+/az0pMdMVmKzlszFZ9phH2dP8P+Y6G3aaPn7Uxj5kde5mvDvAbG2//tN1FnabGgPaXMhCJruUmVo+t18Oml6+1HpSpegGOEvL5znbx2ZjEK0rHcxxQpuWz82Hr02N/VpPysxwhilaPovz75lt+OCXlOgHyr6NmIBVtsZyrZdGtDeE57R8xhm2FGPO1XrSzSQ3yM9aflShLZN8DmRJaXiT9j5kBgHtYY0XtH10EatEWKblR7jA0B/GdGg9F3GlCG9o+VyNthdjZmk9qRK6XTgtP6pG4zjR5zDrIt4W4RLfWAGUwjqPaT0XcbcI92n5XO42FGNu1nquwoUyxAdafoQzsM/W/TYLF/GHyBguNpa5ppet2j66EhsFFmj5jAtYUqyxWuslZe6gwRotn8vd67bO1VpPImY78bsINds2hr9s7PfgcCUGBP9LoQm4yNZ4TzumpMRTwK1aPstdwEpbo9r87yJeFeEa3zaA7mKdh7VeErEY0fNZXw2v2Vjfv+EHfcon2n7l5tNBW2e8j+dK7BU41scZnlMh82wf72u9JGI9wi1aPjemqq2zUuulFW5rDLFOy+dq9K6NuVjrSRfHu4SdWj7P2emM83nJkER8hXCyb6zAMD+M2aT10hI9DejU8rncPWRjlo4c/BYaw1XejcBLYcwTWs+VmYewQsvnuO025k6tJ10cnjo2aPk8F1pu8rkFu2h4c/F+i0mBB3wWY3ORSIPrfccksKkY06P1mm94UtEv3pF2BQaKsf7yIFWCdDevaPs1qkYFbve5/buI+4EzvWMFPGL7eVPrpRVulIb/gxF4x8Y8qI0jZU5LhVVaPlej/cXYr38u4kVgnG+ssMAi08cOrdc8NAMXaPlsIxPqYV0/j9IKC6Shn6e5/nxoY+7V9q95I0+FtVo+xzkb+63zJOJJAxN9Y4UBK3y+pLiIJcBlvnGM8ExY/2c/dmXuQTjfuw2Iw5iNWi+NuFYg0vKHvM5CYuvc4NO/MdfZstz08Lk2liuzFOFSLZ+tRXg6jHlW67mIK4DFWj7HbbMxd2k9KXN0Kjyu5Uc9a6ZxnamSat00ok/w/+ojQrVYZ7M2TlKm0wjztXyuRi+HMev+Bu2qoBRawxtVAAAAAElFTkSuQmCC",ne=z(67294),de=Object.defineProperty,ye=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,Ne=(Ue,Ye,it)=>Ye in Ue?de(Ue,Ye,{enumerable:!0,configurable:!0,writable:!0,value:it}):Ue[Ye]=it,Le=(Ue,Ye)=>{for(var it in Ye||(Ye={}))fe.call(Ye,it)&&Ne(Ue,it,Ye[it]);if(ye)for(var it of ye(Ye))ve.call(Ye,it)&&Ne(Ue,it,Ye[it]);return Ue},Re=(Ue,Ye,it)=>new Promise((lt,Bt)=>{var ct=yt=>{try{Ze(it.next(yt))}catch(ht){Bt(ht)}},nt=yt=>{try{Ze(it.throw(yt))}catch(ht){Bt(ht)}},Ze=yt=>yt.done?lt(yt.value):Promise.resolve(yt.value).then(ct,nt);Ze((it=it.apply(Ue,Ye)).next())});const{TextArea:He}=Ce.default,We=({exercise:Ue,loading:Ye,dispatch:it})=>{var lt;const{workSetting:Bt}=Ue,ct=(0,me.useParams)();ct.category=ct.categoryId||ct.exerciseId,ct.categoryId=ct.categoryId||ct.exerciseId;const[nt,Ze]=(0,a.useState)(!1),[yt,ht]=(0,a.useState)(!1);let[Je,ot]=(0,a.useState)({file_list:[],attachment_id:"",show_title:!1,show_body:!1,show_info:!1,show_table:!1,show_user:!1,show_no:!1,show_group:!1,show_phone:!1,show_school_name:!1,export_page_num:40,show_desc:!1,description:""});(0,a.useEffect)(()=>{Ct()},[Bt]),(0,a.useEffect)(()=>{Ue.actionTabs.key==="exportSetting"&&!(Bt!=null&&Bt.exercise_header)&&it({type:"exercise/getWorkSetting",payload:Le({},ct)})},[Ue.actionTabs.key]);const Ct=()=>{var ut,un,Pn,Rn;const bt=JSON.parse(JSON.stringify(Bt));Object.keys(Je).forEach(An=>{var Nn;Je[An]=(Nn=bt==null?void 0:bt.exercise_header)==null?void 0:Nn[An]}),Je.file_list=(ut=bt==null?void 0:bt.exercise_header)!=null&&ut.attachment_id?[{uid:(un=bt==null?void 0:bt.exercise_header)==null?void 0:un.attachment_id,id:(Pn=bt==null?void 0:bt.exercise_header)==null?void 0:Pn.attachment_id,url:(Rn=bt==null?void 0:bt.exercise_header)==null?void 0:Rn.photo_url}]:[],ot(Je)},kt=()=>{var ut,un,Pn;const Rn=JSON.parse(JSON.stringify(Je));Rn.categoryId=ct.categoryId,Rn.attachment_id=((Pn=(un=(ut=Rn.file_list)==null?void 0:ut[0])==null?void 0:un.response)==null?void 0:Pn.id)||null,Mt(Rn)},Mt=ut=>Re(void 0,null,function*(){ht(!0),(yield(0,oe.ZP)(`/api/exercises/${ct==null?void 0:ct.categoryId}/foramt_settings.json`,{method:"post",body:ut})).status===0&&(ke.ZP.success("\u66F4\u65B0\u6210\u529F"),it({type:"exercise/getCommonHeader",payload:Le({},ct)}),it({type:"exercise/getWorkSetting",payload:Le({},ct)}),it({type:"exercise/getExerciseExportHeadData",payload:{id:ct.exerciseId||ct.categoryId,identify:ct.userId||null}}),ht(!1))}),st={disabled:nt,multiple:!1,listType:"picture-card",onPreview:ut=>{y.Z.publish("preview-image",ut.thumbUrl||ut.url)},withCredentials:!0,fileList:Je.file_list,beforeUpload:ut=>ut.size/1024>200?(ke.ZP.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(200KB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20"),!1):!0,action:`${x.Z.API_SERVER}/api/attachments.json`,onChange(ut){let un=ut.fileList.filter(Pn=>!!Pn.status);Je.file_list=un,ot(Object.assign({},Je))},onRemove:ut=>Re(void 0,null,function*(){return Je.file_list=[],ot(Object.assign({},Je)),!0})};return ne.createElement(he.default,{title:"\u5BFC\u51FA\u8BBE\u7F6E",className:Me.modalWrapper,width:900,centered:!0,open:Ue.actionTabs.key==="exportSetting",onOk:()=>kt(),onCancel:()=>{Ct(),it({type:"exercise/setActionTabs",payload:{}})}},ne.createElement("section",{className:Me.exportSettingWrapper},ne.createElement(Fe.Z,{spinning:Ye["exercise/getWorkSetting"]||yt},ne.createElement(xe.Z,{wrap:!1,justify:"space-between"},ne.createElement(pe.Z,null,ne.createElement(xe.Z,{align:"middle"},ne.createElement("div",null,"\u5377\u5934\u5DE6\u89D2\u6807"),ne.createElement("span",{className:Me.tips},"\u56FE\u7247\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A700px*500px\uFF0C\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7200k")),ne.createElement("div",{className:"mt15"},ne.createElement(Se.default,Le({},st),!((lt=Je.file_list)!=null&<.length)&&ne.createElement("div",null,ne.createElement(ze.Z,null),ne.createElement("div",{style:{marginTop:8}},"\u4E0A\u4F20")))),ne.createElement(pe.Z,{span:24,className:"mt15"},ne.createElement(Ae.default,{checked:Je.show_title,disabled:nt,onChange:ut=>{Je.show_title=ut.target.checked,ot(Object.assign({},Je))}},ne.createElement("div",null,"\u5C55\u793A\u8BD5\u5377\u6807\u9898"))),ne.createElement(pe.Z,{span:24,className:"mt15"},ne.createElement(Ae.default,{checked:Je.show_body,disabled:nt,onChange:ut=>{Je.show_body=ut.target.checked,ot(Object.assign({},Je))}},ne.createElement("div",null,"\u5C55\u793A\u8003\u8BD5\u5185\u5BB9\uFF08\u5373\u672C\u8BD5\u5377\u6240\u5C5E\u8BFE\u7A0B\u540D\u79F0\uFF09"))),ne.createElement(pe.Z,{span:24,className:"mt15"},ne.createElement(Ae.default,{checked:Je.show_info,disabled:nt,onChange:ut=>{Je.show_info=ut.target.checked,ot(Object.assign({},Je))}},ne.createElement("div",null,"\u5C55\u793A\u9898\u91CF\u3001\u5206\u503C\u3001\u8003\u8BD5\u65F6\u957F"))),ne.createElement(pe.Z,{span:24,className:"mt15"},ne.createElement(Ae.default,{checked:Je.show_table,disabled:nt,onChange:ut=>{Je.show_table=ut.target.checked,ot(Object.assign({},Je))}},ne.createElement("div",null,"\u5C55\u793A\u5F97\u5206\u3001\u8BC4\u5206\u8868\u683C"))),ne.createElement(xe.Z,{align:"middle",className:`mt20 ${Me.pottedLine}`},ne.createElement(pe.Z,null,ne.createElement("img",{src:ee,alt:""})),ne.createElement(pe.Z,{className:Me.text},"\u5BC6\u5C01\u7EBF\u533A\u57DF\u8BBE\u7F6E"),ne.createElement(pe.Z,null,ne.createElement("img",{src:ee,alt:""}))),ne.createElement(xe.Z,{className:"mt15",justify:"center",style:{width:320}},ne.createElement(Ae.default,{className:"pl8",checked:Je.show_user,disabled:nt,onChange:ut=>{Je.show_user=ut.target.checked,ot(Object.assign({},Je))}},ne.createElement("div",null,"\u59D3\u540D")),ne.createElement(Ae.default,{checked:Je.show_no,disabled:nt,onChange:ut=>{Je.show_no=ut.target.checked,ot(Object.assign({},Je))}},ne.createElement("div",null,"\u5B66\u53F7")),ne.createElement(Ae.default,{checked:Je.show_group,disabled:nt,onChange:ut=>{Je.show_group=ut.target.checked,ot(Object.assign({},Je))}},ne.createElement("div",null,"\u4E13\u4E1A\u73ED\u7EA7")),ne.createElement(Ae.default,{checked:Je.show_school_name,disabled:nt,onChange:ut=>{Je.show_school_name=ut.target.checked,ot(Object.assign({},Je))}},ne.createElement("div",null,"\u5B66\u6821/\u5355\u4F4D")),ne.createElement(Ae.default,{checked:Je.show_phone,disabled:nt,onChange:ut=>{Je.show_phone=ut.target.checked,ot(Object.assign({},Je))}},ne.createElement("div",null,"\u624B\u673A\u53F7"))),ne.createElement("img",{src:te,alt:"",className:"mt15",style:{width:320}}),ne.createElement(pe.Z,{span:24,className:"mt15"},ne.createElement("span",null,"\u6BCF\u9875\u5BFC\u51FA\u6700\u5927\u8BD5\u9898\u6570\uFF1A"),ne.createElement(Ie.Z,{size:"middle",min:1,value:Je.export_page_num?Je.export_page_num:40,onChange:ut=>{Je.export_page_num=ut,ot(Le({},Je))}}),ne.createElement("span",{className:"ml10"},"\u9898")),ne.createElement(xe.Z,{className:"mt15"},ne.createElement(Ae.default,{checked:Je.show_desc,disabled:nt,onChange:ut=>{Je.show_desc=ut.target.checked,ot(Object.assign({},Je))}},ne.createElement("div",null,"\u8003\u8BD5\u987B\u77E5")))),ne.createElement(pe.Z,{className:Me.imgPreviewPart},ne.createElement("div",{className:"pb10"},"\u793A\u4F8B\u56FE\u7247\u9884\u89C8\uFF1A"),ne.createElement("img",{src:E.qz})))),ne.createElement(b.Z,null)))};var Ge=(0,me.connect)(({exercise:Ue,loading:Ye,globalSetting:it})=>({exercise:Ue,loading:Ye.effects,globalSetting:it}))(We)},80193:function(Ft,rt,z){"use strict";z.d(rt,{Z:function(){return te}});var a=z(67294),Ce=z(35973),ke=z(71230),he=z(57399),Fe={wrap:"wrap___SSpd0",img:"img___nbd2O",table:"table___fcP71",totalScore:"totalScore___YxSMe",people:"people___bf9pK",glassSeal:"glassSeal___dYhKO",paperHeader:"paperHeader___gYUbq",exportBtn:"exportBtn___nyRYQ"},xe=z(15835),pe=z(28706),Se=z(23377),Ae=z(52810),Ie=z(11320),ze=z(67294),Me=Object.defineProperty,me=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,y=(ne,de,ye)=>de in ne?Me(ne,de,{enumerable:!0,configurable:!0,writable:!0,value:ye}):ne[de]=ye,x=(ne,de)=>{for(var ye in de||(de={}))oe.call(de,ye)&&y(ne,ye,de[ye]);if(me)for(var ye of me(de))E.call(de,ye)&&y(ne,ye,de[ye]);return ne},b=(ne,de,ye)=>new Promise((fe,ve)=>{var Ne=He=>{try{Re(ye.next(He))}catch(We){ve(We)}},Le=He=>{try{Re(ye.throw(He))}catch(We){ve(We)}},Re=He=>He.done?fe(He.value):Promise.resolve(He.value).then(Ne,Le);Re((ye=ye.apply(ne,de)).next())});const ee=({isPreview:ne=!1,isExportBlank:de=!1,activeTabs:ye,exercise:fe,globalSetting:ve,loading:Ne,user:Le,dispatch:Re,showExportBtn:He=!1,sealStyle:We={}})=>{var Ge,Ue,Ye,it,lt,Bt,ct,nt,Ze,yt,ht,Je,ot,Ct,kt;const Mt=(0,Ce.useParams)(),{userInfo:st}=Le,[ut,un]=(0,a.useState)(),[Pn,Rn]=(0,a.useState)();let bt=(0,a.useRef)(null);const[An,Nn]=(0,a.useState)(21),[Qt,zt]=(0,a.useState)([]),jt=(0,a.useRef)(!0);(0,a.useEffect)(()=>{b(void 0,null,function*(){if(!jt.current)return;jt.current=!1;const qt=yield(0,xe.cV)({id:Mt.exerciseId||Mt.categoryId});qt.status==0&&zt(qt.data)}),(0,pe.W)(ye)||ye==="2"&&sn()},[Mt.userId,Mt.coursesId,Mt.exerciseId,Mt.categoryId,ye]),(0,a.useEffect)(()=>{bt.current&&Nn(bt.current.clientHeight)},[bt.current]),(0,a.useEffect)(()=>{var qt;if((qt=fe.exerciseExportHeadData)!=null&&qt.title){const St=fe.exerciseExportHeadData;un(x({},St||{}));const{table:Ke}=St||{};let ln,Un;(Ke!=null&&Ke.total_singles_scores||Ke!=null&&Ke.total_doubles_scores||Ke!=null&&Ke.total_nulls_scores||Ke!=null&&Ke.total_judges_scores||Ke!=null&&Ke.total_pros_scores||Ke!=null&&Ke.total_shixuns_scores||Ke!=null&&Ke.total_mains_scores||Ke!=null&&Ke.total_combination_scores||Ke!=null&&Ke.total_bpros_scores)&&(ln=Number(Ke==null?void 0:Ke.total_singles_scores)+Number(Ke==null?void 0:Ke.total_doubles_scores)+Number(Ke==null?void 0:Ke.total_nulls_scores)+Number(Ke==null?void 0:Ke.total_judges_scores)+Number(Ke==null?void 0:Ke.total_bpros_scores)+Number(Ke==null?void 0:Ke.total_pros_scores)+Number(Ke==null?void 0:Ke.total_shixuns_scores)+Number(Ke==null?void 0:Ke.total_mains_scores)+Number(Ke==null?void 0:Ke.total_combination_scores)),(Ke!=null&&Ke.singles_scores||Ke!=null&&Ke.doubles_scores||Ke!=null&&Ke.nulls_scores||Ke!=null&&Ke.judges_scores||Ke!=null&&Ke.pros_scores||Ke!=null&&Ke.bpros_scores||Ke!=null&&Ke.shixuns_scores||Ke!=null&&Ke.mains_scores||Ke!=null&&Ke.combination_scores)&&(Un=Number(Ke==null?void 0:Ke.singles_scores)+Number(Ke==null?void 0:Ke.doubles_scores)+Number(Ke==null?void 0:Ke.nulls_scores)+Number(Ke==null?void 0:Ke.judges_scores)+Number(Ke==null?void 0:Ke.pros_scores)+Number(Ke==null?void 0:Ke.bpros_scores)+Number(Ke==null?void 0:Ke.shixuns_scores)+Number(Ke==null?void 0:Ke.mains_scores)+Number(Ke==null?void 0:Ke.combination_scores));const Ca=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:(Ke==null?void 0:Ke.total_singles_scores)||0,doubles_score:(Ke==null?void 0:Ke.total_doubles_scores)||0,nulls_score:(Ke==null?void 0:Ke.total_nulls_scores)||0,judges_score:(Ke==null?void 0:Ke.total_judges_scores)||0,pros_score:(Ke==null?void 0:Ke.total_pros_scores)||0,bpros_score:(Ke==null?void 0:Ke.total_bpros_scores)||0,shixuns_score:(Ke==null?void 0:Ke.total_shixuns_scores)||0,mains_score:(Ke==null?void 0:Ke.total_mains_scores)||0,total_combination_scores:(Ke==null?void 0:Ke.total_combination_scores)||0,total_score:ln||0},{key:"2",name:"\u5B9E\u5F97\u5206",singles_score:(Ke==null?void 0:Ke.singles_scores)||0,doubles_score:(Ke==null?void 0:Ke.doubles_scores)||0,nulls_score:(Ke==null?void 0:Ke.nulls_scores)||0,judges_score:(Ke==null?void 0:Ke.judges_scores)||0,pros_score:(Ke==null?void 0:Ke.pros_scores)||0,bpros_score:(Ke==null?void 0:Ke.bpros_scores)||0,shixuns_score:(Ke==null?void 0:Ke.shixuns_scores)||0,mains_score:(Ke==null?void 0:Ke.mains_scores)||0,total_combination_scores:(Ke==null?void 0:Ke.combination_scores)||0,total_score:Un||0},{key:"3",name:"\u8BC4\u5377\u4EBA"}],Cu=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:(Ke==null?void 0:Ke.total_singles_scores)||0,doubles_score:(Ke==null?void 0:Ke.total_doubles_scores)||0,nulls_score:(Ke==null?void 0:Ke.total_nulls_scores)||0,judges_score:(Ke==null?void 0:Ke.total_judges_scores)||0,pros_score:(Ke==null?void 0:Ke.total_pros_scores)||0,bpros_score:(Ke==null?void 0:Ke.total_bpros_scores)||0,shixuns_score:(Ke==null?void 0:Ke.total_shixuns_scores)||0,mains_score:(Ke==null?void 0:Ke.total_mains_scores)||0,total_combination_scores:(Ke==null?void 0:Ke.total_combination_scores)||0,total_score:ln||0},{key:"2",name:"\u5B9E\u5F97\u5206"},{key:"3",name:"\u8BC4\u5377\u4EBA"}];Rn([...de?Cu:Ca])}},[fe.exerciseExportHeadData]);const sn=()=>b(void 0,null,function*(){const qt={id:Mt.exerciseId||Mt.categoryId,identify:(st==null?void 0:st.login)||null},St=yield(0,xe.iw)(qt);un(St||{});const{table:Ke}=St||{};let ln,Un;(Ke!=null&&Ke.total_singles_scores||Ke!=null&&Ke.total_doubles_scores||Ke!=null&&Ke.total_nulls_scores||Ke!=null&&Ke.total_judges_scores||Ke!=null&&Ke.total_pros_scores||Ke!=null&&Ke.total_bpros_scores||Ke!=null&&Ke.total_shixuns_scores||Ke!=null&&Ke.total_mains_scores||Ke!=null&&Ke.total_combination_scores)&&(ln=Number(Ke==null?void 0:Ke.total_singles_scores)+Number(Ke==null?void 0:Ke.total_doubles_scores)+Number(Ke==null?void 0:Ke.total_nulls_scores)+Number(Ke==null?void 0:Ke.total_bpros_scores)+Number(Ke==null?void 0:Ke.total_judges_scores)+Number(Ke==null?void 0:Ke.total_pros_scores)+Number(Ke==null?void 0:Ke.total_shixuns_scores)+Number(Ke==null?void 0:Ke.total_mains_scores)+Number(Ke==null?void 0:Ke.total_combination_scores)),(Ke!=null&&Ke.singles_scores||Ke!=null&&Ke.doubles_scores||Ke!=null&&Ke.nulls_scores||Ke!=null&&Ke.judges_scores||Ke!=null&&Ke.pros_scores||Ke!=null&&Ke.bpros_scores||Ke!=null&&Ke.shixuns_scores||Ke!=null&&Ke.mains_scores||Ke!=null&&Ke.combination_scores)&&(Un=Number(Ke==null?void 0:Ke.singles_scores)+Number(Ke==null?void 0:Ke.doubles_scores)+Number(Ke==null?void 0:Ke.bpros_scores)+Number(Ke==null?void 0:Ke.nulls_scores)+Number(Ke==null?void 0:Ke.judges_scores)+Number(Ke==null?void 0:Ke.pros_scores)+Number(Ke==null?void 0:Ke.shixuns_scores)+Number(Ke==null?void 0:Ke.mains_scores)+Number(Ke==null?void 0:Ke.combination_scores));const Ca=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:(Ke==null?void 0:Ke.total_singles_scores)||0,doubles_score:(Ke==null?void 0:Ke.total_doubles_scores)||0,nulls_score:(Ke==null?void 0:Ke.total_nulls_scores)||0,judges_score:(Ke==null?void 0:Ke.total_judges_scores)||0,pros_score:(Ke==null?void 0:Ke.total_pros_scores)||0,bpros_score:(Ke==null?void 0:Ke.total_bpros_scores)||0,shixuns_score:(Ke==null?void 0:Ke.total_shixuns_scores)||0,mains_score:(Ke==null?void 0:Ke.total_mains_scores)||0,total_combination_scores:(Ke==null?void 0:Ke.total_combination_scores)||0,total_score:ln||0},{key:"2",name:"\u5B9E\u5F97\u5206",singles_score:(Ke==null?void 0:Ke.singles_scores)||0,doubles_score:(Ke==null?void 0:Ke.doubles_scores)||0,nulls_score:(Ke==null?void 0:Ke.nulls_scores)||0,judges_score:(Ke==null?void 0:Ke.judges_scores)||0,pros_score:(Ke==null?void 0:Ke.pros_scores)||0,bpros_score:(Ke==null?void 0:Ke.bpros_scores)||0,shixuns_score:(Ke==null?void 0:Ke.shixuns_scores)||0,mains_score:(Ke==null?void 0:Ke.mains_scores)||0,total_combination_scores:(Ke==null?void 0:Ke.combination_scores)||0,total_score:Un||0},{key:"3",name:"\u8BC4\u5377\u4EBA"}];Rn(de?[{key:"1",name:"\u5E94\u5F97\u5206"},{key:"2",name:"\u5B9E\u5F97\u5206"},{key:"3",name:"\u8BC4\u5377\u4EBA"}]:Ca)}),vt=[{width:"10%",title:"\u9898\u578B",align:"center",dataIndex:"name",render:qt=>ze.createElement("a",null,qt)},{title:((Ge=Qt==null?void 0:Qt.find(qt=>qt.value==Ae.fw[0].nameType))==null?void 0:Ge.name)||"\u5355\u9009\u9898",align:"center",dataIndex:"singles_score",render:qt=>ze.createElement("a",null,qt==="0.0"?0:qt)},{title:((Ue=Qt==null?void 0:Qt.find(qt=>qt.value==Ae.fw[1].nameType))==null?void 0:Ue.name)||"\u591A\u9009\u9898",align:"center",dataIndex:"doubles_score",render:qt=>ze.createElement("a",null,qt==="0.0"?0:qt)},{title:((Ye=Qt==null?void 0:Qt.find(qt=>qt.value==Ae.fw[3].nameType))==null?void 0:Ye.name)||"\u586B\u7A7A\u9898",align:"center",dataIndex:"nulls_score",render:qt=>ze.createElement("a",null,qt==="0.0"?0:qt)},{title:((it=Qt==null?void 0:Qt.find(qt=>qt.value==Ae.fw[2].nameType))==null?void 0:it.name)||"\u5224\u65AD\u9898",align:"center",dataIndex:"judges_score",render:qt=>ze.createElement("a",null,qt==="0.0"?0:qt)},{title:((lt=Qt==null?void 0:Qt.find(qt=>qt.value==Ae.fw[6].nameType))==null?void 0:lt.name)||"\u7F16\u7A0B\u9898",align:"center",dataIndex:"pros_score",render:qt=>ze.createElement("a",null,qt==="0.0"?0:qt)},{title:((Bt=Qt==null?void 0:Qt.find(qt=>qt.value==Ae.fw[5].nameType))==null?void 0:Bt.name)||"\u5B9E\u8BAD\u9898",align:"center",dataIndex:"shixuns_score",render:qt=>ze.createElement("a",null,qt==="0.0"?0:qt)},{title:((ct=Qt==null?void 0:Qt.find(qt=>qt.value==Ae.fw[4].nameType))==null?void 0:ct.name)||"\u7B80\u7B54\u9898",align:"center",dataIndex:"mains_score",render:qt=>ze.createElement("a",null,qt==="0.0"?0:qt)},{title:((nt=Qt==null?void 0:Qt.find(qt=>qt.value==Ae.fw[7].nameType))==null?void 0:nt.name)||"\u7EC4\u5408\u9898",align:"center",dataIndex:"total_combination_scores",render:qt=>ze.createElement("a",null,qt==="0.0"?0:qt)},{title:((Ze=Qt==null?void 0:Qt.find(qt=>qt.value==Ae.fw[8].nameType))==null?void 0:Ze.name)||"\u7A0B\u5E8F\u586B\u7A7A\u9898",align:"center",dataIndex:"bpros_score",render:qt=>ze.createElement("a",null,qt==="0.0"?0:qt)},{width:"10%",title:"\u603B\u5206",align:"center",dataIndex:"total_score",render:qt=>ze.createElement("a",null,qt==="0.0"?0:qt==null?void 0:qt.toFixed(1))}],{exercise_header:Tt}=ut||{};return ze.createElement(ze.Fragment,null,((Tt==null?void 0:Tt.show_user)||(Tt==null?void 0:Tt.show_no)||(Tt==null?void 0:Tt.show_group))&&ze.createElement("section",{className:Fe.glassSeal,style:We},(Tt==null?void 0:Tt.show_user)&&ze.createElement("span",null,"\u59D3\u540D\uFF1A",ze.createElement("span",null,ut==null?void 0:ut.user)),(Tt==null?void 0:Tt.show_no)&&ze.createElement("span",null,"\u5B66\u53F7\uFF1A",ze.createElement("span",null,ut==null?void 0:ut.student_id)),(Tt==null?void 0:Tt.show_group)&&ze.createElement("span",null,"\u4E13\u4E1A\u73ED\u7EA7\uFF1A",ze.createElement("span",null,ut==null?void 0:ut.group_name)),(Tt==null?void 0:Tt.show_school_name)&&ze.createElement("span",null,"\u5B66\u6821/\u5355\u4F4D\uFF1A",ze.createElement("span",null,ut==null?void 0:ut.school_name)),(Tt==null?void 0:Tt.show_phone)&&ze.createElement("span",null,"\u624B\u673A\u53F7\uFF1A",ze.createElement("span",null,ut==null?void 0:ut.phone))),ze.createElement("section",{className:`${Fe.wrap} ${ne?"pl20":""} `},(ut==null?void 0:ut.photo_url)&&ze.createElement("img",{className:Fe.img,src:`${Ie.Z.API_SERVER}${ut==null?void 0:ut.photo_url}`}),(Tt==null?void 0:Tt.show_title)&&ze.createElement(ke.Z,{className:Fe.paperHeader,justify:"center"},ze.createElement("div",null,ut==null?void 0:ut.title)),(Tt==null?void 0:Tt.show_info)&&ze.createElement("div",{className:"tc c-grey-666 mb20"},"\u5171:\u3010",ut==null?void 0:ut.large_counts,"\u5927\u9898\u3011\u3010",ut==null?void 0:ut.total_count,"\u5C0F\u9898\u3011\u3010 \u6EE1\u5206",ut==null?void 0:ut.score,"\u5206\u3011 \u8003\u8BD5\u65F6\u95F4\uFF1A\u3010",(ut==null?void 0:ut.time)>-1?`${ut==null?void 0:ut.time}\u5206\u949F`:"\u4E0D\u9650","\u3011"),(Tt==null?void 0:Tt.show_desc)&&(((yt=fe==null?void 0:fe.exerciseExportHeadData)==null?void 0:yt.exercise_description)||((ht=fe==null?void 0:fe.commonHeader)==null?void 0:ht.exercise_description))&&ze.createElement("div",{style:{fontSize:14,marginBottom:30,marginTop:20,textAlign:"left",color:"#3A3A3A",maxHeight:"210px",overflowY:"auto"}},ze.createElement("b",null,"\u8BD5\u5377\u987B\u77E5\uFF1A"),ze.createElement("span",null,((Je=fe==null?void 0:fe.exerciseExportHeadData)==null?void 0:Je.exercise_description)||((ot=fe==null?void 0:fe.commonHeader)==null?void 0:ot.exercise_description))),(Tt==null?void 0:Tt.show_table)&&ze.createElement("div",{className:"mt10"},ze.createElement(he.default,{className:Fe.table,columns:vt,dataSource:[...Pn||[]],bordered:!0,pagination:!1})),((Ct=fe==null?void 0:fe.exerciseExportHeadData)==null?void 0:Ct.analysis)&&ze.createElement("span",{style:{justifyContent:"left",wordBreak:"break-all",display:"flex",textAlign:"left",marginTop:"10px"},className:"tc c-grey-333"},`\u8003\u8BD5\u8BC4\u4EF7\uFF1A${(kt=fe==null?void 0:fe.exerciseExportHeadData)==null?void 0:kt.analysis}`)),ze.createElement(Se.Z,null))};var te=(0,Ce.connect)(({exercise:ne,loading:de,user:ye,globalSetting:fe})=>({exercise:ne,globalSetting:fe,user:ye,loading:de.effects}))(ee)},91640:function(Ft,rt,z){"use strict";var a=z(20819),Ce=z(15835),ke=z(9343),he=z(91773),Fe=z(62844),xe=z(85804),pe=z(74330),Se=z(84567),Ae=z(98813),Ie=z(78957),ze=z(67294),Me=z(35973),me=z(11320),oe=z(67294),E=(x,b,ee)=>new Promise((te,ne)=>{var de=ve=>{try{fe(ee.next(ve))}catch(Ne){ne(Ne)}},ye=ve=>{try{fe(ee.throw(ve))}catch(Ne){ne(Ne)}},fe=ve=>ve.done?te(ve.value):Promise.resolve(ve.value).then(de,ye);fe((ee=ee.apply(x,b)).next())});const y=({exercise:x,dispatch:b})=>{var ee,te,ne,de;const ye=(0,Me.useParams)(),[fe]=(0,Me.useSearchParams)(),ve=fe.getAll("exercise_group_id").map(ht=>ht==="all"?ht:Number(ht)),{actionTabs:Ne}=x,[Le]=he.default.useForm(),[Re,He]=(0,ze.useState)(!1),We=(0,ze.useRef)(null),[Ge,Ue]=(0,ze.useState)(!1),[,Ye,it,lt]=(0,ke.U)(Ce.aU,{}),[Bt,ct]=(0,ze.useState)({}),nt=()=>{b({type:"exercise/setActionTabs",payload:{title:""}})},Ze=(ht,Je)=>{Me.history.push(`/classrooms/${ye.coursesId}/exercise/${(ye==null?void 0:ye.categoryId)||(ye==null?void 0:ye.exerciseId)}/sumup?exam_summary_id=${(Je==null?void 0:Je.exam_summary_id)||""}&template=${ht==null?void 0:ht.exam_summary_template_id}&${ht==null?void 0:ht.exercise_group_id.map(ot=>`exercise_group_id=${ot}`).join("&")}`)},yt=()=>E(void 0,null,function*(){var ht,Je,ot,Ct,kt;const Mt=yield it({id:(ye==null?void 0:ye.categoryId)||(ye==null?void 0:ye.exerciseId)});Le.setFieldsValue({exercise_group_id:Ne!=null&&Ne.isEdit&&ve.length>0?ve:["all",...((Je=(ht=Mt==null?void 0:Mt.data)==null?void 0:ht.course_groups)==null?void 0:Je.map(st=>st==null?void 0:st.exercise_group_id))||[]],exam_summary_template_id:Ne!=null&&Ne.isEdit?Number(fe.get("template")):(kt=(Ct=(ot=Mt==null?void 0:Mt.data)==null?void 0:ot.exam_summary_templates)==null?void 0:Ct[0])==null?void 0:kt.id})});return(0,ze.useEffect)(()=>{We.current&&We.current.scrollHeight>134&&Ue(!0)},[We]),(0,ze.useEffect)(()=>{(Ne==null?void 0:Ne.title)==="\u8003\u8BD5\u603B\u7ED3\u8BBE\u7F6E"?yt():Le.resetFields()},[Ne==null?void 0:Ne.title]),oe.createElement(oe.Fragment,null,oe.createElement(Fe.default,{title:Ne.title,width:800,centered:!0,open:(Ne==null?void 0:Ne.title)==="\u8003\u8BD5\u603B\u7ED3\u8BBE\u7F6E",footer:oe.createElement("div",{style:{textAlign:"center"}},oe.createElement(xe.ZP,{type:"primary",onClick:()=>{Le.submit()}},"\u603B\u7ED3\u62A5\u544A\u9884\u89C8")),onCancel:()=>{nt()}},oe.createElement(pe.Z,{spinning:Ye},oe.createElement(he.default,{form:Le,onFinish:ht=>E(void 0,null,function*(){var Je,ot;const Ct=(ot=(Je=lt==null?void 0:lt.data)==null?void 0:Je.exam_summaries)==null?void 0:ot.find(kt=>(kt==null?void 0:kt.exam_summary_template_id)===ht.exam_summary_template_id);if(Ct!=null&&Ct.exam_summary_id){const kt=Fe.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,closeIcon:oe.createElement("i",{className:"iconfont icon-guanbi1 current",style:{fontSize:"10px"},onClick:Mt=>{Mt.preventDefault(),Mt.stopPropagation(),kt.destroy()}}),closable:!0,content:"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u60A8\u6709\u4E00\u4EFD\u5DF2\u751F\u6210\u7684\u603B\u7ED3\u62A5\u544A\uFF0C\u91CD\u65B0\u751F\u6210\u64CD\u4F5C\u4F1A\u5C06\u60A8\u4E4B\u524D\u7684\u7F16\u8F91\u8BB0\u5F55\u91CD\u7F6E\u4E3A\u521D\u59CB\u72B6\u6001\u3002\u662F\u5426\u9700\u8981\u91CD\u65B0\u751F\u6210\uFF1F",onOk:()=>{Ze(ht,Ct),nt()},cancelText:"\u91CD\u65B0\u751F\u6210",okText:"\u67E5\u770B\u5DF2\u6709\u62A5\u544A",onCancel:()=>{Ze(ht,{}),nt()}});return}Ze(ht,Ct),nt()})},oe.createElement("div",{ref:We,className:"mt5 flex flex-wrap gap-20px",style:{maxHeight:Re?"none":"134px",overflow:"hidden",transition:"max-height 0.3s ease",position:"relative"}},oe.createElement(he.default.Item,{name:"exercise_group_id",label:"\u5206\u6790\u5BF9\u8C61",normalize:(ht,Je=[],ot)=>{var Ct,kt;let Mt=ht;const st=((kt=(Ct=lt==null?void 0:lt.data)==null?void 0:Ct.course_groups)==null?void 0:kt.map(ut=>ut==null?void 0:ut.exercise_group_id))||[];return!(Je!=null&&Je.includes("all"))&&(ht.includes("all")||ht.length===st.length)?Mt=[...st,"all"]:ht.includes("all")&&ht.length!==st.length+1?Mt=ht.filter(ut=>ut!=="all"):Je!=null&&Je.includes("all")&&!ht.includes("all")&&(Mt=[]),Mt}},oe.createElement(Se.default.Group,{options:[{label:"\u5168\u90E8",value:"all"},...((te=(ee=lt==null?void 0:lt.data)==null?void 0:ee.course_groups)==null?void 0:te.map(ht=>({value:ht==null?void 0:ht.exercise_group_id,label:`${ht==null?void 0:ht.exercise_group_name}\uFF08${ht==null?void 0:ht.exercise_group_students}\uFF09`})))||[]]})),Ge&&oe.createElement("div",{className:"current",style:{position:"absolute",bottom:24,right:0,lineHeight:"32px"},onClick:()=>He(!Re)},Re?"\u6536\u8D77":"\u5C55\u5F00",oe.createElement("i",{className:"iconfont icon-a-bianzu11 font12"}))),oe.createElement(he.default.Item,{className:"mb0",name:"exam_summary_template_id",label:"\u5206\u6790\u6A21\u677F"},oe.createElement(Ae.ZP.Group,null,oe.createElement(Ie.Z,{className:"mt5",direction:"vertical"},(de=(ne=lt==null?void 0:lt.data)==null?void 0:ne.exam_summary_templates)==null?void 0:de.map((ht,Je)=>oe.createElement(Ae.ZP,{key:Je,value:ht==null?void 0:ht.id},`\u6A21\u677F${Je+1}-${ht==null?void 0:ht.name}`,oe.createElement("a",{className:"ml5",onClick:()=>{var ot,Ct;ct({url:me.Z.API_SERVER+((ot=ht==null?void 0:ht.attachment_info)==null?void 0:ot.url),file_type:(Ct=ht==null?void 0:ht.attachment_info)==null?void 0:Ct.file_type})}},"\u67E5\u770B"))))))))),oe.createElement(a.Z,{close:!0,hasMask:!0,style:{zIndex:9999},data:Bt==null?void 0:Bt.url,type:Bt==null?void 0:Bt.file_type,onClose:()=>ct({})}))};rt.Z=(0,Me.connect)(({exercise:x})=>({exercise:x}))(y)},16199:function(Ft,rt,z){"use strict";z.d(rt,{jM:function(){return ut},ZP:function(){return An},g0:function(){return bt},rK:function(){return Nn},P1:function(){return Pn},PQ:function(){return st},JE:function(){return Rn},$C:function(){return un},eS:function(){return Mt}});var a=z(67294),Ce=z(98813),ke=z(71230),he=z(84567),Fe=z(28802),xe=z(85804),pe={extra:"extra___yTab3",row:"row___HnRCs",md:"md___L1tuZ",title:"title___iSLhz",btn:"btn___C2OtF",boxHead:"boxHead___GfOIb",iframe:"iframe___J6XBA"},Se=z(65226),Ae=z(94184),Ie=z.n(Ae),ze=z(35567),Me=z(35713),me=z(3830),oe=z(15835),E=z(19575),y=z(2453),x=z(62844),b=z(33170),ee=z(88742),te=z(86276),ne=z(94699),de=z.n(ne),ye=z(67294),fe=Object.defineProperty,ve=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable,Re=(Qt,zt,jt)=>zt in Qt?fe(Qt,zt,{enumerable:!0,configurable:!0,writable:!0,value:jt}):Qt[zt]=jt,He=(Qt,zt)=>{for(var jt in zt||(zt={}))Ne.call(zt,jt)&&Re(Qt,jt,zt[jt]);if(ve)for(var jt of ve(zt))Le.call(zt,jt)&&Re(Qt,jt,zt[jt]);return Qt},We=(Qt,zt,jt)=>new Promise((sn,vt)=>{var Tt=Ke=>{try{St(jt.next(Ke))}catch(ln){vt(ln)}},qt=Ke=>{try{St(jt.throw(Ke))}catch(ln){vt(ln)}},St=Ke=>Ke.done?sn(Ke.value):Promise.resolve(Ke.value).then(Tt,qt);St((jt=jt.apply(Qt,zt)).next())}),Ue=({className:Qt,data:zt={},identifier:jt,userAnswer:sn,onFinish:vt})=>{const[Tt,qt]=(0,a.useState)(!1),[St,Ke]=(0,a.useState)({}),ln=()=>new Date().getTime(),Un=Cu=>We(void 0,null,function*(){let Da=E.Base64.decode(zt.code);return sn.length>0&&(sn==null||sn.map(cu=>{cu.multi_line?Da=Da.substring(0,Da.indexOf("@\u2581\u2581@"))+cu.value+Da.substring(Da.indexOf("@\u2581\u2581@")+4):Da=Da.substring(0,Da.indexOf("@\u2581@"))+cu.value+Da.substring(Da.indexOf("@\u2581@")+3)})),yield(0,ee.n4)(Cu,{code:E.Base64.encode(Da),language:zt.language,answers:sn==null?void 0:sn.map(cu=>cu.value)})}),Ca=()=>We(void 0,null,function*(){var Cu;if((Cu=sn==null?void 0:sn.filter(cu=>!cu.value))!=null&&Cu.length){y.ZP.warning("\u8BF7\u5148\u586B\u5199\u4EE3\u7801\u4E4B\u540E\u518D\u63D0\u4EA4");return}qt(!0);const Da=yield(0,b.ZP)(`/api/problems/${jt}/start.json`,{method:"get"}),nr=yield Un(Da==null?void 0:Da.identifier);if((nr==null?void 0:nr.status)===0){let or=function(){return We(this,null,function*(){const{status:Aa,message:Zt,data:xn}=yield(0,ee.rX)(Da==null?void 0:Da.identifier,"submit");if(ln()-cu>10*1e3*(sn==null?void 0:sn.length)){qt(!1),x.default.error({centered:!0,icon:null,okText:"\u77E5\u9053\u5566",title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6",content:"\u8BF7\u68C0\u67E5\u7A0B\u5E8F\u4EE3\u7801\u662F\u5426\u5B58\u5728\u6B7B\u5FAA\u73AF"});return}if(Aa===0){qt(!1),xn.status===2?x.default.error({centered:!0,icon:null,okText:"\u77E5\u9053\u5566",title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}):Ke(xn);return}setTimeout(or,1e3)})};const cu=ln();yield(0,ee.bM)(Da==null?void 0:Da.identifier,{}),or();return}qt(!1)});return ye.createElement("div",null,ye.createElement(xe.ZP,{className:Ie()(Qt),loading:Tt,onClick:Ca},"\u63D0\u4EA4\u4EE3\u7801"),ye.createElement(x.default,{open:!!(St!=null&&St.id),title:"\u8FD0\u884C\u7ED3\u679C",width:1100,destroyOnClose:!0,afterClose:()=>vt==null?void 0:vt(),footer:!1,onOk:()=>Ke({}),onCancel:()=>Ke({})},ye.createElement("div",{style:{maxHeight:600,overflow:"auto",marginBottom:15}},ye.createElement("div",{style:{marginBottom:20,display:"flex",justifyContent:"space-between",fontSize:14}},ye.createElement("div",null,ye.createElement("span",{style:{color:"#666666"}},"\u72B6\u6001"),ye.createElement("span",{style:{marginLeft:12,color:St.status!==0&&"#E30000"}},te.Im[St.status])),ye.createElement("div",null,ye.createElement("span",{style:{color:"#666666"}},"\u63D0\u4EA4\u65F6\u95F4"),ye.createElement("span",{style:{marginLeft:12}},de()(St.created_at).format("YYYY-MM-DD HH:mm:ss"))),ye.createElement("div",null,ye.createElement("span",{style:{color:"#666666"}},"\u8BED\u8A00"),ye.createElement("span",{style:{marginLeft:12}},St.language)),ye.createElement("div",null,ye.createElement("span",{style:{color:"#666666"}},"\u6267\u884C\u7528\u65F6"),ye.createElement("span",{style:{marginLeft:12}},St.execute_time,"ms"))),ye.createElement(te.Y4,He({highlightEndEntry:!0},St)))))},Ye=z(67294),it=Object.defineProperty,lt=Object.defineProperties,Bt=Object.getOwnPropertyDescriptors,ct=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,yt=(Qt,zt,jt)=>zt in Qt?it(Qt,zt,{enumerable:!0,configurable:!0,writable:!0,value:jt}):Qt[zt]=jt,ht=(Qt,zt)=>{for(var jt in zt||(zt={}))nt.call(zt,jt)&&yt(Qt,jt,zt[jt]);if(ct)for(var jt of ct(zt))Ze.call(zt,jt)&&yt(Qt,jt,zt[jt]);return Qt},Je=(Qt,zt)=>lt(Qt,Bt(zt)),ot=(Qt,zt,jt)=>new Promise((sn,vt)=>{var Tt=Ke=>{try{St(jt.next(Ke))}catch(ln){vt(ln)}},qt=Ke=>{try{St(jt.throw(Ke))}catch(ln){vt(ln)}},St=Ke=>Ke.done?sn(Ke.value):Promise.resolve(Ke.value).then(Tt,qt);St((jt=jt.apply(Qt,zt)).next())});const Ct=["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"],kt=({data:Qt})=>{const{question_type:zt,group_topic_id:jt,commit_wrong_question:{analysis:sn,standard_answer_show:vt,tag_discipline_names:Tt,standard_answer:qt}={}}=Qt,St=()=>{if([0,1,2].includes(zt))return Ye.createElement("div",{className:pe.row},Ye.createElement("div",null,"\u7B54\xA0\xA0\xA0\xA0\u6848"),Ye.createElement("div",{className:"c-black"},vt));if([3].includes(zt))return qt==null?void 0:qt.map((Ke,ln)=>{var Un,Ca;return Ye.createElement(a.Fragment,{key:ln},Ye.createElement("div",{className:pe.row},Ye.createElement("div",null,"\u7B54\xA0\xA0\xA0\xA0\u6848",ln+1),(Ke==null?void 0:Ke.model)===1&&Ye.createElement("div",{className:"c-black"},(Un=Ke==null?void 0:Ke.answer_text)==null?void 0:Un.join("\u3001")),(Ke==null?void 0:Ke.model)===2&&Ye.createElement("div",{className:"flex gap-10px"},(Ca=Ke==null?void 0:Ke.answer_text)==null?void 0:Ca.map((Cu,Da)=>Ye.createElement(Me.Z,{key:ln+""+Da,disabled:!0,value:Cu})))))});if([4].includes(zt))return Ye.createElement("div",{className:pe.row},Ye.createElement("div",null,"\u7B54\xA0\xA0\xA0\xA0\u6848"),Ye.createElement("div",{className:"c-black"},qt==null?void 0:qt[0]));if([6].includes(zt))return Ye.createElement("div",{className:pe.row},Ye.createElement("div",null,"\u7B54\xA0\xA0\xA0\xA0\u6848"),Ye.createElement(Se.Z,{className:pe.md,value:qt||"-"}));if([8].includes(zt))return qt==null?void 0:qt.map((Ke,ln)=>Ye.createElement(a.Fragment,{key:ln},Ye.createElement("div",{className:pe.row},Ye.createElement("div",null,"\u7B54\xA0\xA0\xA0\xA0\u6848",ln+1),Ye.createElement("div",{className:"c-black"},Ke==null?void 0:Ke.answer_text))))};return Ye.createElement("div",{className:pe.extra},St(),Ye.createElement("div",{className:pe.row},Ye.createElement("div",null,"\u89E3\xA0\xA0\xA0\xA0\u6790"),Ye.createElement(Se.Z,{className:pe.md,value:sn||"-"})),Ye.createElement("div",{className:pe.row},Ye.createElement("div",null,"\u77E5\u8BC6\u70B9"),Ye.createElement("div",{className:"c-black"},Tt==null?void 0:Tt.join("\u3001"))))},Mt=Qt=>{const zt=sn=>{const{user_answer:vt,standard_answer:Tt,standard_answers:qt,standard_answer_show:St,tag_discipline_names:Ke,analysis:ln,user_answer_infos:Un}=sn;return sn={user_answer_is_right:(Un==null?void 0:Un.user_answer_is_right)===void 0?null:Un==null?void 0:Un.user_answer_is_right,user_answer:vt,analysis:ln,standard_answer_show:St,tag_discipline_names:Ke,standard_answer:qt||Tt},sn};return Qt.map((sn,vt)=>(sn.q_position=vt+1,sn.commit_wrong_question=zt(sn),[7].includes(sn==null?void 0:sn.question_type)&&(sn.commit_wrong_question.sub_exercise_questions=sn.sub_exercise_questions.map(Tt=>zt(Tt))),sn))},st=({data:Qt={},value:zt,onChange:jt})=>{const{question_title:sn,question_choices:vt,q_position:Tt,commit_wrong_question:{user_answer_is_right:qt,user_answer:St}={}}=Qt,Ke=qt!==void 0,ln=Un=>{const Ca=Un.target.value;jt(Ca)};return Ye.createElement("div",{className:pe.question},Ye.createElement(Se.Z,{className:Ie()(pe.title,pe.md),value:`${Tt}\u3001`+sn}),Ye.createElement(Ce.ZP.Group,{disabled:Ke,value:Ke?St==null?void 0:St[0]:zt,onChange:ln,className:Ke&&`edu-radio-${qt?"green":"red"}`},vt==null?void 0:vt.map((Un,Ca)=>Ye.createElement("div",{key:Ca},Ye.createElement(Ce.ZP,{value:Un==null?void 0:Un.choice_id,className:"mb20"},Ye.createElement(ke.Z,{align:"middle",wrap:!1,className:"c-black ml5"},Ye.createElement("span",{className:"mr5 c-black"},Ct[Ca],"."),Ye.createElement(Se.Z,{className:pe.md,value:Un==null?void 0:Un.choice_text})))))),Ke&&Ye.createElement(kt,{data:Qt}))},ut=({data:Qt={},value:zt,onChange:jt})=>{const{question_title:sn,question_choices:vt,q_position:Tt,commit_wrong_question:{user_answer_is_right:qt,user_answer:St}={}}=Qt,Ke=qt!==void 0,ln=Un=>{jt(Un)};return Ye.createElement("div",{className:pe.question},Ye.createElement(Se.Z,{className:Ie()(pe.title,pe.md),value:`${Tt}\u3001`+sn}),Ye.createElement(he.default.Group,{disabled:Ke,style:{flexDirection:"column"},value:Ke?St:zt,onChange:ln,className:Ke&&`edu-checkbox-${qt?"green":"red"}`},vt==null?void 0:vt.map((Un,Ca)=>Ye.createElement("div",{key:Ca},Ye.createElement(he.default,{value:Un==null?void 0:Un.choice_id,className:"mb20"},Ye.createElement(ke.Z,{align:"middle",wrap:!1,className:"c-black ml5"},Ye.createElement("span",{className:"mr5 c-black"},Ct[Ca],"."),Ye.createElement(Se.Z,{className:pe.md,value:Un==null?void 0:Un.choice_text})))))),Ke&&Ye.createElement(kt,{data:Qt}))},un=({data:Qt={},value:zt,onChange:jt})=>{const{question_title:sn,question_choices:vt,q_position:Tt,commit_wrong_question:{user_answer_is_right:qt,user_answer:St}={}}=Qt,Ke=qt!==void 0,ln=Un=>{const Ca=Un.target.value;jt(Ca)};return Ye.createElement("div",{className:pe.question},Ye.createElement(Se.Z,{className:Ie()(pe.title,pe.md),value:`${Tt}\u3001`+sn}),Ye.createElement(Ce.ZP.Group,{disabled:Ke,value:Ke?St==null?void 0:St[0]:zt,onChange:ln,className:Ke&&`edu-radio-${qt?"green":"red"}`},vt==null?void 0:vt.map((Un,Ca)=>Ye.createElement("div",{key:Ca},Ye.createElement(Ce.ZP,{value:Un==null?void 0:Un.choice_id,className:"mb20"},Ye.createElement(ke.Z,{align:"middle",wrap:!1,className:"c-black ml5"},Ye.createElement(Se.Z,{className:pe.md,value:Un==null?void 0:Un.choice_text})))))),Ke&&Ye.createElement(kt,{data:Qt}))},Pn=({data:Qt={},value:zt,onChange:jt})=>{const[sn,vt]=(0,a.useState)([]),{question_title:Tt,q_position:qt,standard_answer:St,commit_wrong_question:{user_answer_is_right:Ke,user_answer:ln}={}}=Qt,Un=Ke!==void 0,Ca=Cu=>{jt(Cu)};return(0,a.useEffect)(()=>{if(Un){vt(ln);return}if(zt){vt(zt);return}const Cu=St==null?void 0:St.map(Da=>Je(ht({},Da),{exercise_choice_id:Da.position,answer_text:""}));vt(Cu)},[]),Ye.createElement("div",{className:pe.question},Ye.createElement(Se.Z,{className:Ie()(pe.title,pe.md),value:`${qt}\u3001`+Tt}),Ye.createElement("div",{className:"flex flex-col gap-20px mb20"},sn==null?void 0:sn.map((Cu,Da)=>Ye.createElement(ke.Z,{align:"middle",wrap:!1},Ye.createElement("div",{className:"mr10"},"\u586B\u7A7A\u9879",Da+1),Ye.createElement("div",{className:"flex-1"},(Cu==null?void 0:Cu.model)===1?Ye.createElement(Fe.default,{placeholder:"\u8BF7\u8F93\u5165\u7B54\u6848",disabled:Un,value:Cu==null?void 0:Cu.answer_text,onChange:nr=>{sn[Da].answer_text=nr.target.value,vt([...sn]),Ca(sn)}}):Ye.createElement(Me.Z,{value:Cu==null?void 0:Cu.answer_text,disabled:Un,onChange:nr=>{sn[Da].answer_text=nr,vt([...sn]),Ca(sn)}}))))),Un&&Ye.createElement(kt,{data:Qt}))},Rn=({data:Qt={},value:zt,onChange:jt})=>{const{question_title:sn,q_position:vt,commit_wrong_question:{user_answer_is_right:Tt,user_answer:qt}={}}=Qt,St=Tt!==void 0,Ke=ln=>{jt(ln)};return Ye.createElement("div",{className:pe.question},Ye.createElement(Se.Z,{className:Ie()(pe.title,pe.md),value:`${vt}\u3001`+sn}),St?Ye.createElement("div",{style:{border:"1px solid #dcdcdc"},className:"mb20 p20 c-black"},qt==null?void 0:qt[0]):Ye.createElement(ze.Z,{watch:!0,onChange:Ke,defaultValue:zt}),St&&Ye.createElement(kt,{data:Qt}))},bt=({showEntryAnswer:Qt,updateData:zt,examPaperId:jt,params:sn,data:vt={}})=>{const[Tt,qt]=(0,a.useState)(!1),[St,Ke]=(0,a.useState)(""),[ln,Un]=(0,a.useState)("none"),Ca=(0,a.useRef)(),{question_id:Cu,question_title:Da,q_position:nr,languages:cu,description:or,hack_identifier:Aa,commit_wrong_question:{user_answer_is_right:Zt}={}}=vt,vl=typeof Qt!="undefined"?Qt:!(Zt!==void 0),Er=()=>ot(void 0,null,function*(){if(qt(!0),Aa){const Pa=yield(0,oe.nF)({id:Aa});(Pa==null?void 0:Pa.status)===0&&(Ke(`/myproblems/${Pa.identifier}?type=exercises&exercisesId=${jt}&coursesId=coursesId&login=${sn.login}&questionId=${Cu}`),Un("block"))}qt(!1)}),er=Pa=>{Pa.data==="backExercise"&&(Un("none"),Ke(""),zt())};return(0,a.useEffect)(()=>(window.addEventListener("message",er),()=>{window.removeEventListener("message",er)}),[]),Ye.createElement("div",{className:pe.question},Ye.createElement(Se.Z,{className:Ie()(pe.title,pe.md),value:`${nr}\u3001`+Da}),vl&&Ye.createElement("div",{className:pe.boxHead},Ye.createElement(me.Z,{title:"\u7F16\u7A0B\u8BED\u8A00",dataSource:cu}),Ye.createElement(xe.ZP,{loading:Tt,onClick:Er,className:pe.btn},"\u8FDB\u5165\u7B54\u9898")),Ye.createElement("div",{style:{border:"1px solid #dcdcdc"},className:"mb20 p20 c-black"},Ye.createElement(Se.Z,{className:pe.md,value:or})),!vl&&Ye.createElement(kt,{data:vt}),Ye.createElement("iframe",{style:{display:ln},className:pe.iframe,src:St,ref:Ca}))},An=({showEntryAnswer:Qt,updateData:zt,data:jt={},value:sn,onChange:vt})=>{const[Tt,qt]=(0,a.useState)([]),{code:St,hack_identifier:Ke,question_title:ln,q_position:Un,standard_answer_with_score:Ca,commit_wrong_question:{user_answer_is_right:Cu,user_answer:Da}={}}=jt,cu=typeof Qt!="undefined"?Qt:!(Cu!==void 0),or=Aa=>{vt(Aa)};return(0,a.useEffect)(()=>{if(Da){const Zt=Da==null?void 0:Da.map(xn=>Je(ht({},xn),{exercise_choice_id:xn==null?void 0:xn.choice_id,value:xn.answer_text}));qt(Zt),Qt===!0&&or(Zt);return}if(sn){qt(sn);return}const Aa=Ca==null?void 0:Ca.map(Zt=>Je(ht({},Zt),{exercise_choice_id:Zt.position,answer_text:"",score:""}));qt(Aa)},[]),Ye.createElement("div",{className:pe.question},Ye.createElement(Se.Z,{className:Ie()(pe.title,pe.md),value:`${Un}\u3001`+ln}),cu&&Ye.createElement("div",{className:pe.boxHead},Ye.createElement("div",{style:{color:"#FA6400"}},Ye.createElement("i",{className:"iconfont icon-tishi9 font14 mr8"}),"\u6CE8\u610F\uFF1A\u586B\u5199\u7B54\u6848\u540E\uFF0C\u5FC5\u987B\u63D0\u4EA4\u4EE3\u7801\u8FDB\u884C\u8BC4\u6D4B\uFF0C\u5426\u5219\u65E0\u6CD5\u5F97\u5206"),Ye.createElement(Ue,{className:pe.btn,data:jt,onFinish:zt,userAnswer:Tt,identifier:Ke})),Ye.createElement("div",{style:{border:"1px solid #dcdcdc"},className:"mb20 p20 c-black"},Ye.createElement(Se.Z,{disabledFill:!cu,programFillValue:Tt,showProgramFill:!0,onFillChange:(Aa,Zt)=>{var xn;Tt[Number(Zt)].answer_text=(xn=Aa[Number(Zt)])==null?void 0:xn.value,qt([...Tt]),or(Tt)},value:E.Base64.decode(St||"")})),!cu&&Ye.createElement(kt,{data:jt}))},Nn=({data:Qt={},value:zt,onChange:jt})=>{const[sn,vt]=(0,a.useState)([]),[Tt,qt]=(0,a.useState)([]),{question_title:St,q_position:Ke,commit_wrong_question:ln,sub_exercise_questions:Un}=Qt,Ca=(Cu,Da)=>{sn[Da]=Cu,vt([...sn]),jt(sn)};return(0,a.useEffect)(()=>{const Cu=Un==null?void 0:Un.map((Da,nr)=>{var cu;return Je(ht({},Da),{q_position:`${Ke}.${nr+1}`,commit_wrong_question:(cu=ln==null?void 0:ln.sub_exercise_questions)==null?void 0:cu[nr]})});qt(Cu)},[]),(0,a.useEffect)(()=>{if(zt){vt(zt);return}const Cu=Array(Un==null?void 0:Un.length).fill(void 0);vt(Cu)},[]),Ye.createElement("div",{className:pe.question},Ye.createElement(Se.Z,{className:Ie()(pe.title,pe.md),value:`${Ke}\u3001`+St}),Ye.createElement("div",{className:"flex flex-col gap-20px"},Tt==null?void 0:Tt.map((Cu,Da)=>{const nr=sn[Da];return Ye.createElement(a.Fragment,{key:Da},(Cu==null?void 0:Cu.question_type)===0&&Ye.createElement(st,{value:nr,data:Cu,onChange:cu=>Ca(cu,Da)}),(Cu==null?void 0:Cu.question_type)===1&&Ye.createElement(ut,{value:nr,data:Cu,onChange:cu=>Ca(cu,Da)}),(Cu==null?void 0:Cu.question_type)===2&&Ye.createElement(un,{value:nr,data:Cu,onChange:cu=>Ca(cu,Da)}),(Cu==null?void 0:Cu.question_type)===3&&Ye.createElement(Pn,{value:nr,data:Cu,onChange:cu=>Ca(cu,Da)}),(Cu==null?void 0:Cu.question_type)===4&&Ye.createElement(Rn,{value:nr,data:Cu,onChange:cu=>Ca(cu,Da)}))})))}},99543:function(Ft,rt,z){"use strict";var a=z(67294),Ce=z(62844),ke=z(33170),he=z(35973),Fe=z(67294),xe=(Se,Ae,Ie)=>new Promise((ze,Me)=>{var me=y=>{try{E(Ie.next(y))}catch(x){Me(x)}},oe=y=>{try{E(Ie.throw(y))}catch(x){Me(x)}},E=y=>y.done?ze(y.value):Promise.resolve(y.value).then(me,oe);E((Ie=Ie.apply(Se,Ae)).next())});const pe=({exercise:Se,dispatch:Ae,init:Ie,haveInit:ze=!1})=>{const Me=(0,he.useParams)(),[me,oe]=(0,a.useState)(!1);let[E,y]=(0,a.useState)();const[x,b]=(0,a.useState)(!1),[ee,te]=(0,a.useState)(!1);(0,a.useEffect)(()=>{Se.actionTabs.key==="\u5355\u4E2A\u52A0\u5165\u8BD5\u5377\u5E93"&&ne()},[Se.actionTabs]);function ne(){return xe(this,null,function*(){var de,ye;let fe=yield(0,ke.ZP)(`/api/courses/${Me==null?void 0:Me.coursesId}/exercises/check_exercise_cover.json`,{method:"post",body:{check_ids:Se.actionTabs.selectArrs}});if(((de=fe==null?void 0:fe.cover_exercises)==null?void 0:de.length)>0)oe(!0),y((ye=fe==null?void 0:fe.cover_exercises)==null?void 0:ye[0]);else{let ve=yield(0,ke.ZP)(`/api/courses/${Me==null?void 0:Me.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:Se.actionTabs.selectArrs}});Ae({type:"exercise/setActionTabs",payload:{key:""}}),(ve==null?void 0:ve.status)===0&&(ze&&Ie(),Ce.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u52A0\u5165\u6210\u529F\uFF01\u8BD5\u5377\u4E2D\u65B0\u5EFA\u7684\u8BD5\u9898\u5DF2\u4E3A\u60A8\u81EA\u52A8\u540C\u6B65\u81F3\u8BD5\u9898\u5E93~",okText:"\u524D\u5F80\u8BD5\u5377\u5E93",cancelText:"\u7A0D\u540E\u518D\u8BF4",onOk:()=>{he.history.push("/paperlibrary")}}))}})}return Fe.createElement("div",null,Fe.createElement(Ce.default,{open:me,centered:!0,onCancel:de=>xe(void 0,null,function*(){if(de.target.outerText==="\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377"){b(!0);let ye=yield(0,ke.ZP)(`/api/courses/${Me==null?void 0:Me.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:Se.actionTabs.selectArrs,update:1}});Ae({type:"exercise/setActionTabs",payload:{key:""}}),b(!1),(ye==null?void 0:ye.status)===0&&(ze&&Ie(),oe(!1),Ce.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u52A0\u5165\u6210\u529F\uFF01\u8BD5\u5377\u4E2D\u65B0\u5EFA\u7684\u8BD5\u9898\u5DF2\u4E3A\u60A8\u81EA\u52A8\u540C\u6B65\u81F3\u8BD5\u9898\u5E93~",okText:"\u524D\u5F80\u8BD5\u5377\u5E93",cancelText:"\u7A0D\u540E\u518D\u8BF4",onOk:()=>{he.history.push("/paperlibrary")}}))}else oe(!1)}),cancelButtonProps:{loading:x},okText:"\u5F62\u6210\u65B0\u8BD5\u5377",cancelText:"\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377",okButtonProps:{loading:ee},onOk:()=>xe(void 0,null,function*(){te(!0);let de=yield(0,ke.ZP)(`/api/courses/${Me==null?void 0:Me.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:Se.actionTabs.selectArrs}});te(!1),(de==null?void 0:de.status)===0&&(ze&&Ie(),Ae({type:"exercise/setActionTabs",payload:{key:""}}),oe(!1),Ce.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u52A0\u5165\u6210\u529F\uFF01\u8BD5\u5377\u4E2D\u65B0\u5EFA\u7684\u8BD5\u9898\u5DF2\u4E3A\u60A8\u81EA\u52A8\u540C\u6B65\u81F3\u8BD5\u9898\u5E93~",okText:"\u524D\u5F80\u8BD5\u5377\u5E93",cancelText:"\u7A0D\u540E\u518D\u8BF4",onOk:()=>{he.history.push("/paperlibrary")}}))}),title:"\u52A0\u5165\u8BD5\u5377\u5E93\u63D0\u793A"},Fe.createElement("div",null,Fe.createElement("p",null,"\u8BE5\u8BD5\u5377\u5728\u8BD5\u5377\u5E93\u91CD\u590D\uFF0C\u662F\u5426\u9700\u8981\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377\uFF1F"),Fe.createElement("div",null,Fe.createElement("div",null,"\u8BD5\u5377\uFF1A",E==null?void 0:E.origin_exercise_nam),Fe.createElement("div",null,"\u539F\u8BD5\u5377\uFF1A",Fe.createElement("a",{href:`/paperlibrary/see/${E==null?void 0:E.examination_bank_id}?defaultActiveKey=0`,target:"_blank"},E==null?void 0:E.examination_bank_name))))))};rt.Z=(0,he.connect)(({exercise:Se})=>({exercise:Se}))(pe)},76223:function(Ft,rt,z){"use strict";z.d(rt,{Z:function(){return ve}});var a=z(67294),Ce=z(62844),ke=z(71230),he=z(15746),Fe=z(88044),xe=z(57399),pe=z(85804),Se=z(30001),Ae=z(33170),Ie={cstuModal:"cstuModal___aIPVR",removeStyle:"removeStyle___wY4gp",bottom:"bottom___a8tK0",yes:"yes___Zhc4z",no:"no___Ngwsa",Onerow:"Onerow___Q59ve",searchMember:"searchMember___Jj460",searchMemberHeader:"searchMemberHeader___SxfUY"},ze=z(35973),Me=z(96622),me=z(67294),oe=Object.defineProperty,E=Object.defineProperties,y=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,te=(Ne,Le,Re)=>Le in Ne?oe(Ne,Le,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ne[Le]=Re,ne=(Ne,Le)=>{for(var Re in Le||(Le={}))b.call(Le,Re)&&te(Ne,Re,Le[Re]);if(x)for(var Re of x(Le))ee.call(Le,Re)&&te(Ne,Re,Le[Re]);return Ne},de=(Ne,Le)=>E(Ne,y(Le)),ye=(Ne,Le,Re)=>new Promise((He,We)=>{var Ge=it=>{try{Ye(Re.next(it))}catch(lt){We(lt)}},Ue=it=>{try{Ye(Re.throw(it))}catch(lt){We(lt)}},Ye=it=>it.done?He(it.value):Promise.resolve(it.value).then(Ge,Ue);Ye((Re=Re.apply(Ne,Le)).next())});const fe=({visible:Ne,setVisible:Le,onK:Re,selectKeys:He,selectRows:We,appointStudent:Ge,modalParams:Ue,courseId:Ye})=>{const it=(0,ze.useParams)(),[lt,Bt]=(0,a.useState)(!1),[ct,nt]=(0,a.useState)(!1),[Ze,yt]=(0,a.useState)([]),[ht,Je]=(0,a.useState)([]),[ot,Ct]=(0,a.useState)([]),[kt,Mt]=(0,a.useState)("all"),[st,ut]=(0,a.useState)("all");let[un,Pn]=(0,a.useState)(!0);const[Rn,bt]=(0,a.useState)([{value:"all",label:"\u5168\u90E8\u5206\u73ED"}]),[An,Nn]=(0,a.useState)({page:1,limit:1e4,status:null,course_group_id:null,keywords:"",sort_by:null,direction:null}),Qt={selectedRowKeys:ht,columnWidth:40,hideSelectAll:!0,onSelect:(Tt,qt,St)=>{let Ke=!0;for(let ln=0;ln{if(Tt&&St.length>0){St.forEach(Ke=>{ht.push(Ke.user_id),ot.push(Ke)}),Je([...ht]),Ct([...ot]);return}if(!Tt&&St.length>0){let Ke=[],ln=[];const Un=new Set(St),Ca=new Set(ht),Cu=new Set(ot);Ke=[...Ca].filter(Da=>[...Un].every(nr=>nr.user_id!==Da)),ln=[...Cu].filter(Da=>[...Un].every(nr=>nr.user_id!==Da.user_id)),Je([...Ke]),Ct([...ln])}}};(0,a.useEffect)(()=>{Ne&&He&&(Je([...He]),Ct(We))},[Ne,He]),(0,a.useEffect)(()=>{Ne&&(!Ge&&Ue?An.status=Ue:An.status=null,Nn(ne({},An)),jt())},[Ne,Ge,Ue]);const zt=[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",ellipsis:!0,fixed:"left",width:100,render:(Tt,qt,St)=>me.createElement("span",{style:{color:"#333"}},St+1)},{title:"\u59D3\u540D",dataIndex:"user_name",key:"user_name",ellipsis:!0,render:(Tt,qt,St)=>me.createElement("span",null,Tt)},{title:"\u5B66\u53F7",dataIndex:"student_id",key:"student_id",ellipsis:!0,render:(Tt,qt,St)=>me.createElement("span",{style:{color:"#666"}},Tt)},{title:"\u5206\u73ED1",dataIndex:"user_group_name",key:"user_group_name",align:"left",ellipsis:!0,render:(Tt,qt)=>me.createElement("span",null,Tt)},{title:"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",key:"score",sorter:!0,render:(Tt,qt)=>me.createElement("span",null,Tt||"--")},{title:"\u72B6\u6001",dataIndex:"status_cn",key:"status_cn",align:"center",ellipsis:!0,render:(Tt,qt)=>me.createElement("span",null,Tt)}].filter(Tt=>Ue===1||Ue===2?Tt.title!=="\u72B6\u6001":!0),jt=()=>ye(void 0,null,function*(){var Tt,qt,St;nt(!0);const Ke=yield(0,Ae.ZP)(`/api/exercises/${it.categoryId||Ye}/wait_make_up_students.json`,{method:"get",params:de(ne({},An),{keywords:(Tt=An==null?void 0:An.keywords)==null?void 0:Tt.trim()})});if(Ke.status===0){const ln=((St=(qt=Ke==null?void 0:Ke.data)==null?void 0:qt.all_course_groups)==null?void 0:St.map(Un=>({value:Un==null?void 0:Un.id,label:Un==null?void 0:Un.name})))||[];bt([{value:"all",label:"\u5168\u90E8\u5206\u73ED"},...ln]),yt(Ke.data)}nt(!1)}),sn=()=>{An.page=1,An.status=null,An.course_group_id=null,An.keywords="",Mt("all"),ut("all"),Je([]),Ct([]),Nn(ne({},An)),Ge&&Re(ht==null?void 0:ht.length,ht,ot)},vt=()=>{An.page=1,An.status=null,An.course_group_id=null,An.keywords="",Nn(ne({},An)),Mt("all"),ut("all"),Je([]),Ct([]),Le(!1)};return me.createElement(Ce.default,{centered:!0,className:Ie.cstuModal,title:Ue===1?"\u7F3A\u8003\u5B66\u751F":Ue===2?"\u672A\u53CA\u683C\u5B66\u751F":"\u9009\u62E9\u8865\u8003\u5B66\u751F",open:Ne,width:1200,footer:null,onCancel:()=>{vt()}},me.createElement(ke.Z,{style:{marginBottom:"20px",marginTop:"15px",display:"flex",alignItems:"center",justifyContent:"space-between"}},me.createElement(ke.Z,null,me.createElement(he.Z,null,me.createElement(Fe.default,{size:"large",value:kt,style:{width:200,marginRight:20},onChange:Tt=>{Mt(Tt),Tt==="all"?An.course_group_id=null:An.course_group_id=Tt,An.page=1,Nn(ne({},An)),jt()},options:Rn})),Ge&&me.createElement(he.Z,null,me.createElement(Fe.default,{size:"large",value:st,style:{width:200},onChange:Tt=>{ut(Tt),Tt==="all"?An.status=null:An.status=Tt,An.page=1,Nn(ne({},An)),jt()},options:[{value:"all",label:"\u5168\u90E8\u72B6\u6001"},{value:"1",label:"\u7F3A\u8003"},{value:"2",label:"\u672A\u53CA\u683C"},{value:"3",label:"\u53CA\u683C"}]}))),me.createElement(he.Z,null,me.createElement(Se.t7,{style:{width:300,marginLeft:15},value:An.keywords,allowClear:!0,onChange:Tt=>{An.keywords=Tt,An.page=1,Nn(ne({},An)),jt()},placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u5B66\u53F7\u8FDB\u884C\u641C\u7D22"}))),me.createElement(ke.Z,{align:"middle",className:"mb30"},me.createElement(he.Z,{span:14},me.createElement("div",{className:"flexd-table-header"},me.createElement(xe.default,{pagination:!1,dataSource:[],columns:zt,rowSelection:Ge?Qt:null,rowKey:Tt=>Tt.user_id})),me.createElement("div",null,me.createElement(xe.default,{rowSelection:Ge?Qt:null,columns:zt,showHeader:!1,style:{minHeight:390},scroll:{y:390},rowKey:Tt=>Tt.user_id,loading:ct,dataSource:Ze==null?void 0:Ze.exercise_users,onChange:(Tt,qt,St)=>{An.page=Tt==null?void 0:Tt.current,An.limit=Tt==null?void 0:Tt.pageSize,St!=null&&St.order?(An.sort_by=St==null?void 0:St.field,An.direction=(St==null?void 0:St.order)==="ascend"?"asc":"desc"):(An.sort_by=null,An.direction=null),Nn(ne({},An)),jt()},pagination:!1}))),me.createElement(he.Z,{span:1},me.createElement("img",{src:Me,style:{marginLeft:10}})),me.createElement(he.Z,{span:9,style:{display:"flex",justifyContent:"flex-end"}},me.createElement("div",{className:Ie.searchMember,style:{width:550}},me.createElement(ke.Z,{className:Ie.searchMemberHeader},me.createElement(he.Z,{className:"ml30",flex:"100px"},"\u59D3\u540D"),me.createElement(he.Z,{flex:"110px"},"\u5B66\u53F7"),me.createElement(he.Z,{flex:"120px",style:{marginLeft:5}},"\u5206\u73ED")),me.createElement("div",{style:{overflow:"auto",height:390}},ot==null?void 0:ot.map((Tt,qt)=>me.createElement(ke.Z,{key:qt,align:"middle",style:{height:48,lineHeight:"48px",paddingLeft:30,borderBottom:"1px solid rgba(48,97,208,0.1)"}},me.createElement(he.Z,{flex:"100px"},Tt.user_name),me.createElement(he.Z,{flex:"110px"},Tt.student_id),me.createElement(he.Z,{flex:"120px",style:{marginLeft:5}},Tt.user_group_name),me.createElement(he.Z,{style:{marginLeft:10}},me.createElement("i",{className:"iconfont icon-shanchudiao current",onClick:()=>{Ct(ot.filter(St=>St.user_id!=Tt.user_id)),Je(ht.filter(St=>St!=Tt.user_id))}})))))))),!(Ue===1||Ue===2)&&me.createElement("div",{className:Ie.bottom},me.createElement(pe.ZP,{className:Ie.no,onClick:()=>{vt()}},"\u53D6\u6D88"),me.createElement(pe.ZP,{loading:lt,type:"primary",onClick:()=>{sn()}},"\u786E\u5B9A")))};var ve=(0,ze.connect)(({})=>({}))(fe)},77722:function(Ft,rt,z){"use strict";var a=z(67294),Ce=z(91773),ke=z(2453),he=z(62844),Fe=z(74330),xe=z(71230),pe=z(98813),Se=z(18046),Ae=z(84567),Ie=z(94699),ze=z.n(Ie),Me=z(33170),me=z(28706),oe=z(35973),E=z(14375),y=z(63938),x=Object.defineProperty,b=Object.defineProperties,ee=Object.getOwnPropertyDescriptors,te=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,ye=(We,Ge,Ue)=>Ge in We?x(We,Ge,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):We[Ge]=Ue,fe=(We,Ge)=>{for(var Ue in Ge||(Ge={}))ne.call(Ge,Ue)&&ye(We,Ue,Ge[Ue]);if(te)for(var Ue of te(Ge))de.call(Ge,Ue)&&ye(We,Ue,Ge[Ue]);return We},ve=(We,Ge)=>b(We,ee(Ge)),Ne=(We,Ge,Ue)=>new Promise((Ye,it)=>{var lt=nt=>{try{ct(Ue.next(nt))}catch(Ze){it(Ze)}},Bt=nt=>{try{ct(Ue.throw(nt))}catch(Ze){it(Ze)}},ct=nt=>nt.done?Ye(nt.value):Promise.resolve(nt.value).then(lt,Bt);ct((Ue=Ue.apply(We,Ge)).next())});function Le(We,Ge){const Ue=[];for(let Ye=We;Ye{let Ge=new Date;const Ue=ze()(We).format("HH");if(ze()(We).isSame(ze()(Ge),"day")){const Ye=ze()(Ge).format("HH"),it=ze()(Ge).format("mm");return{disabledHours:()=>Le(0,24).splice(1,Ye*1-1),disabledMinutes:()=>ze()(We).isSame(ze()(Ge),"hour")&&Ue<=Ye?Le(0,60).splice(0,it):Le(60,60)}}else if(ze()(We).isSame(ze()(),"day")){const Ye=ze()().format("HH"),it=ze()().format("mm");return{disabledHours:()=>Le(0,24).splice(0,Ye),disabledMinutes:()=>Ue<=Ye?Le(0,it):Le(60,60)}}else return!1},He=({exercise:We,dispatch:Ge})=>{var Ue;const Ye=(0,oe.useParams)(),[it]=Ce.default.useForm(),[lt,Bt]=(0,a.useState)(1),[ct,nt]=(0,a.useState)([]),[Ze,yt]=(0,a.useState)(!0),[ht,Je]=(0,a.useState)([]),[ot,Ct]=(0,a.useState)(!0),[kt,Mt]=(0,a.useState)(!1);(0,a.useEffect)(()=>{We.actionTabs.key==="\u6279\u91CF\u7ED3\u675F"&&st()},[We.actionTabs]);const st=Pn=>Ne(void 0,null,function*(){var Rn,bt;yt(!0);const An=yield Ge({type:"exercise/getEndGroups",payload:ve(fe({},Ye),{check_ids:[...((Rn=We.actionTabs.selectArrs)==null?void 0:Rn.map(Qt=>Number(Qt)))||[]]})}),Nn=(bt=An==null?void 0:An.course_info)==null?void 0:bt.map((Qt,zt)=>ve(fe({},Qt),{key:Qt.course_group_id,title:Qt.course_group_name,name:Qt.course_group_name,disabled:!!Qt.is_published}));An&&(An!=null&&An.course_info)&&(nt([...Nn]),it.setFieldsValue({end_time:ze()(ze()(new Date((0,me.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))})),yt(!1)}),ut=()=>Ne(void 0,null,function*(){var Pn,Rn,bt,An;const Nn=fe({},it.getFieldsValue());if((ht==null?void 0:ht.length)<=0&&ct.length>0&&!((Pn=We.actionTabs)!=null&&Pn.unified_setting)){ke.ZP.info("\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A");return}Mt(!0);const Qt={check_ids:[...((Rn=We.actionTabs.selectArrs)==null?void 0:Rn.map(jt=>Number(jt)))||[]],group_ids:ht};ot||(Qt.end_time=ze()(Nn.end_time).format("YYYY-MM-DD HH:mm")),Qt.group_ids=ht.map(jt=>jt.course_group_id),(yield(0,Me.ZP)(`/api/courses/${Ye.coursesId}/exercises/end_exercise.json`,{method:"post",body:Qt})).status===0&&(ke.ZP.success("\u64CD\u4F5C\u6210\u529F"),(0,me.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u6279\u91CF\u7ED3\u675F"]),Ge({type:"exercise/setActionTabs",payload:{}}),(bt=We==null?void 0:We.actionTabs)!=null&&bt.cb?(An=We==null?void 0:We.actionTabs)==null||An.cb():Ge({type:"classroomList/getClassroomExercisesList",payload:fe({},We.actionTabs.params)})),Mt(!1)}),un=()=>{Bt(1),nt([]),Je([]),Ct(!0)};return a.createElement(he.default,{centered:!0,title:"\u7ED3\u675F\u8003\u8BD5",open:We.actionTabs.key==="\u6279\u91CF\u7ED3\u675F",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:ut,width:680,confirmLoading:kt||Ze,onCancel:()=>{un(),Ge({type:"exercise/setActionTabs",payload:{}})}},a.createElement(Fe.Z,{spinning:Ze},ct&&a.createElement(Ce.default,{form:it},a.createElement("div",{style:{color:"#333333",display:"flex"},className:"font14 mb10"},a.createElement("img",{style:{marginRight:5,objectFit:"contain"},src:E.Z}),"\u8003\u8BD5\u65F6\u95F4\u7ED3\u675F\u540E\uFF0C\u5B66\u751F\u5C06\u4E0D\u80FD\u518D\u7B54\u9898\u3002"),a.createElement(xe.Z,{className:"mt20 mb10"},a.createElement("span",{className:"mr10"},a.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u7ED3\u675F\u65F6\u95F4"),a.createElement(pe.ZP.Group,{value:ot,onChange:Pn=>{Ct(Pn.target.value),Je([])}},a.createElement(pe.ZP,{value:!0},"\u7ACB\u5373\u7ED3\u675F"),a.createElement(pe.ZP,{value:!1},"\u5B9A\u65F6\u7ED3\u675F")),a.createElement(Ce.default.Item,{name:"end_time",style:{marginTop:-3,visibility:ot?"hidden":"visible"}},a.createElement(Se.default,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:ze()((0,me.U6)(),"HH:mm")},disabledDate:Pn=>Pn&&Pn0&&!((Ue=We.actionTabs)!=null&&Ue.unified_setting)&&a.createElement(xe.Z,{style:{marginBottom:"10px"}},a.createElement("span",{className:"mr10"},a.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u9009\u62E9\u73ED\u7EA7:"),a.createElement("div",null,ct.length>0&&a.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},a.createElement("span",{style:{flex:1}},a.createElement(Ae.default,{checked:ht.length===ct.length,onChange:Pn=>{ht.length===ct.length?Je([]):Je(ct)}},"\u5168\u9009")," "),a.createElement("span",{style:{width:16}}),a.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",ht.length||0,"\u4E2A\u5206\u73ED")),a.createElement(y.Z,{data:ct,selectedRowKeys:ht,setSelectedRowKeys:Je}))))))};rt.Z=(0,oe.connect)(({exercise:We})=>({exercise:We}))(He)},28400:function(Ft,rt,z){"use strict";z.d(rt,{Z:function(){return Ze}});var a=z(67294),Ce=z(91773),ke=z(2453),he=z(62844),Fe=z(74330),xe=z(71230),pe=z(98813),Se=z(37720),Ae=z(18046),Ie=z(59637),ze=z(84567),Me=z(85804),me=z(94699),oe=z.n(me),E=z(33170),y=z(28706),x=z(35973),b=z(15835),ee=z(14375),te=z(63938),ne=z(76223),de={contentInterval:"contentInterval___wAfD8",numberInput:"numberInput___R9kLf",minorRuleText:"minorRuleText___LjpSg",failedList:"failedList___KYTHd",name:"name___MqNtz",publish:"publish___TPl6Z"},ye=z(96332),fe=z(93686),ve=z(67294),Ne=Object.defineProperty,Le=Object.defineProperties,Re=Object.getOwnPropertyDescriptors,He=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,Ue=(yt,ht,Je)=>ht in yt?Ne(yt,ht,{enumerable:!0,configurable:!0,writable:!0,value:Je}):yt[ht]=Je,Ye=(yt,ht)=>{for(var Je in ht||(ht={}))We.call(ht,Je)&&Ue(yt,Je,ht[Je]);if(He)for(var Je of He(ht))Ge.call(ht,Je)&&Ue(yt,Je,ht[Je]);return yt},it=(yt,ht)=>Le(yt,Re(ht)),lt=(yt,ht,Je)=>new Promise((ot,Ct)=>{var kt=ut=>{try{st(Je.next(ut))}catch(un){Ct(un)}},Mt=ut=>{try{st(Je.throw(ut))}catch(un){Ct(un)}},st=ut=>ut.done?ot(ut.value):Promise.resolve(ut.value).then(kt,Mt);st((Je=Je.apply(yt,ht)).next())});function Bt(yt,ht){const Je=[];for(let ot=yt;ot{let ht=new Date;const Je=oe()(yt).format("HH");if(oe()(yt).isSame(oe()(ht),"day")){const ot=oe()(ht).format("HH"),Ct=oe()(ht).format("mm");return{disabledHours:()=>Bt(0,24).splice(1,ot*1-1),disabledMinutes:()=>(console.log("\u7981\u6B62\u65F6\u95F4\uFF1A",Je,ot),oe()(yt).isSame(oe()(ht),"hour")&&Je<=ot?Bt(0,60).splice(0,Ct):Bt(60,60))}}else if(oe()(yt).isSame(oe()(),"day")){const ot=oe()().format("HH"),Ct=oe()().format("mm");return{disabledHours:()=>Bt(0,24).splice(0,ot),disabledMinutes:()=>Je<=ot?Bt(0,Ct):Bt(60,60)}}else return!1},nt=({exercise:yt,dispatch:ht})=>{var Je,ot,Ct,kt,Mt,st,ut,un,Pn,Rn,bt,An,Nn,Qt,zt,jt,sn,vt,Tt,qt,St,Ke;const ln=(0,x.useParams)(),[Un]=Ce.default.useForm(),[Ca,Cu]=(0,a.useState)(1),[Da,nr]=(0,a.useState)([]),[cu,or]=(0,a.useState)(!0),[Aa,Zt]=(0,a.useState)([]),[xn,vl]=(0,a.useState)(!0),[Er,er]=(0,a.useState)(!1),{workSetting:Pa}=yt,[Za,qn]=(0,a.useState)(!1),[Vn,Qa]=(0,a.useState)([]),[gu,_u]=(0,a.useState)([]),[ir,ul]=(0,a.useState)(!1),[On,Jt]=(0,a.useState)(!1),[_n,Gn]=(0,a.useState)(!1),[ua,oa]=(0,a.useState)(null),[Ta,hu]=(0,a.useState)(1),[ft,re]=(0,a.useState)({}),[ge,De]=(0,a.useState)({}),[Xe,tt]=(0,a.useState)(!1);(0,a.useEffect)(()=>{var la;if(yt.actionTabs.key==="\u6279\u91CF\u53D1\u5E03"&&(Lt(),Kn(),yt.actionTabs.type===2)){const lu=(la=yt.actionTabs)==null?void 0:la.unified_setting;vl(lu)}},[yt.actionTabs]),(0,a.useEffect)(()=>{var la,lu,Ga,Ea,ga,jn,Hu;(la=Pa==null?void 0:Pa.exercise)!=null&&la.publish_time&&Un.setFieldsValue({publish_time:oe()((lu=Pa==null?void 0:Pa.exercise)==null?void 0:lu.publish_time)}),(Ga=Pa==null?void 0:Pa.exercise)!=null&&Ga.end_time&&Un.setFieldsValue({end_time:oe()((Ea=Pa==null?void 0:Pa.exercise)==null?void 0:Ea.end_time)}),Un.setFieldsValue({exercise_type:(ga=Pa==null?void 0:Pa.exercise)==null?void 0:ga.exercise_type,simulate_exercise_num:(jn=Pa==null?void 0:Pa.exercise)==null?void 0:jn.simulate_exercise_num}),hu((Hu=Pa==null?void 0:Pa.exercise)==null?void 0:Hu.exercise_type)},[yt]);const Ot=la=>{var lu;const Ga=Un.getFieldValue("publish_time");if(!Ga||(lu=Pa==null?void 0:Pa.exercise)!=null&&lu.publish_time)return;let Ea;la===1?Ea=oe()(Ga).add(120,"minutes"):Ea=oe()(Ga).add(7,"days"),Un.setFieldsValue({end_time:Ea})},Lt=la=>lt(void 0,null,function*(){var lu,Ga;or(!0);const Ea=yield(0,b.N3)({coursesId:ln.coursesId,check_ids:[...((lu=yt.actionTabs.selectArrs)==null?void 0:lu.map(jn=>Number(jn)))||[]]});console.log(Ea,"res");const ga=((Ga=Ea==null?void 0:Ea.course_info)==null?void 0:Ga.map((jn,Hu)=>it(Ye({},jn),{key:jn.course_group_id,title:jn.course_group_name,name:jn.course_group_name,disabled:!!jn.is_published})))||[];if((Ea==null?void 0:Ea.status)!==-1){nr([...ga]);const jn=oe()();Un.setFieldsValue({publish_time:jn}),(Un.getFieldValue("exercise_type")||1)===1?Un.setFieldsValue({end_time:oe()(jn).add(120,"minutes")}):Un.setFieldsValue({end_time:oe()(jn).add(7,"days")})}or(!1)});(0,a.useEffect)(()=>{var la,lu,Ga,Ea,ga,jn;if((la=Pa==null?void 0:Pa.exercise)!=null&&la.is_appoint_user){const Hu=((Ga=(lu=Pa==null?void 0:Pa.exercise)==null?void 0:lu.all_exercise_users)==null?void 0:Ga.map(Hr=>Hr.user_id))||[];Qa([...Hu])}ul((Ea=Pa==null?void 0:Pa.exercise)==null?void 0:Ea.is_appoint_user),Jt((ga=Pa==null?void 0:Pa.exercise)==null?void 0:ga.is_miss_exam_user),Gn((jn=Pa==null?void 0:Pa.exercise)==null?void 0:jn.is_no_passing_user)},[Pa]),(0,a.useEffect)(()=>{var la,lu,Ga,Ea,ga,jn,Hu,Hr;(lu=(la=yt==null?void 0:yt.actionTabs)==null?void 0:la.selectArrs)!=null&&lu[0]&&yt.actionTabs.key==="\u6279\u91CF\u53D1\u5E03"&&ht({type:"exercise/getWorkSetting",payload:{categoryId:(Ea=(Ga=yt==null?void 0:yt.actionTabs)==null?void 0:Ga.selectArrs)==null?void 0:Ea[0],category:(jn=(ga=yt==null?void 0:yt.actionTabs)==null?void 0:ga.selectArrs)==null?void 0:jn[0],coursesId:(Hr=(Hu=yt==null?void 0:yt.actionTabs)==null?void 0:Hu.params)==null?void 0:Hr.id}})},[(Je=yt==null?void 0:yt.actionTabs)==null?void 0:Je.selectArrs]);const Wn=()=>lt(void 0,null,function*(){var la,lu,Ga,Ea,ga,jn,Hu;const Hr=Ye({},Un.getFieldsValue()),Wa=oe()(oe()(Hr.publish_time).format("YYYY-MM-DD HH:mm")).valueOf(),rl=oe()(oe()(Hr.end_time).format("YYYY-MM-DD HH:mm")).valueOf();if(console.log(Wa,Wa,33),rl<=Wa){ke.ZP.info("\u7ED3\u675F\u65F6\u95F4\u4E0D\u5141\u8BB8\u5C0F\u4E8E\u7B49\u4E8E\u5F00\u59CB\u65F6\u95F4");return}if((Aa==null?void 0:Aa.length)<=0&&!xn&&Da.length>0&&!((la=Pa==null?void 0:Pa.exercise)!=null&&la.is_make_up_exercise)){ke.ZP.info("\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A");return}const sr=Da.map(ol=>ol.key),uu={check_ids:[...((lu=yt.actionTabs.selectArrs)==null?void 0:lu.map(ol=>Number(ol)))||[]],end_time:oe()(Hr.end_time).format("YYYY-MM-DD HH:mm"),publish_time:oe()(Hr.publish_time).format("YYYY-MM-DD HH:mm"),group_ids:Aa.map(ol=>ol.course_group_id),unified_setting:!Aa.length,exercise_type:Hr.exercise_type,simulate_exercise_num:Hr.simulate_exercise_num};if(((Ga=yt.actionTabs.selectArrsAll)==null?void 0:Ga.length)>0&&yt.actionTabs.type===1&&(uu.check_ids=[...((ga=(Ea=yt.actionTabs.selectArrsAll)==null?void 0:Ea.filter(ol=>!ol.high_resources_consume||ol.high_resources_consume_permission))==null?void 0:ga.map(ol=>Number(ol==null?void 0:ol.id)))||[]]),(jn=Pa==null?void 0:Pa.exercise)!=null&&jn.is_make_up_exercise){if(ir&&Vn.length<=0||!ir&&!(On||_n)){ke.ZP.error("\u8BF7\u9009\u62E9\u8865\u8003\u5B66\u751F");return}uu.is_appoint_user=ir,uu.is_miss_exam_user=On,uu.is_no_passing_user=_n,ir?uu.make_up_exercise_users=Vn.map(ol=>({user_id:ol})):uu.make_up_exercise_user=[]}let{is_locked:ya,open_camera:Ua,screen_open:zi,login_restrict:Ki,ip_bind:Yo,ip_limit:fo,is_random:du,id:Gu,identity_verify:pl,open_phone_video_recording:Ir}=Pa==null?void 0:Pa.exercise;if(yt.actionTabs.key!=="\u6279\u91CF\u53D1\u5E03"||(ya||Ua||zi||Ki||Yo||fo=="pub"||fo=="inner"||pl||Ir)&&Hr.exercise_type==2){if(ht({type:"exercise/setActionTabs",payload:{}}),yt.actionTabs.type==2){let ol=he.default.confirm({width:666,centered:!0,okText:"\u7ACB\u5373\u8C03\u6574",cancelText:"\u4E0D\u9700\u8981",title:"\u63D0\u793A",icon:null,content:ve.createElement("div",null,"\u5F53\u524D\u8003\u8BD5\u6A21\u5F0F\u4E3A\u201C\u6A21\u62DF\u8003\u8BD5\u201D\uFF0C\u60A8\u5DF2\u5F00\u542F",ve.createElement("span",{style:{color:"#FA6400"}}," ",(0,y.hi)(Pa==null?void 0:Pa.exercise)," "),"\u9632\u4F5C\u5F0A\u89C4\u5219\uFF0C\u53EF\u80FD\u4F1A\u5F71\u54CD\u5B66\u751F\u8FDB\u884C\u91CD\u590D\u8003\u8BD5\u3002\u662F\u5426\u9700\u8981\u8FDB\u884C\u8C03\u6574\uFF1F"),onOk:()=>lt(void 0,null,function*(){var ti;tt(!0);let io=yield(0,fe.Tr)({exercise_ids:[...((ti=yt.actionTabs.selectArrs)==null?void 0:ti.map(Xo=>Number(Xo)))||[]],course_id:ln.coursesId,type:"exercise"});if((io==null?void 0:io.student_count)===0){if((yield xa(uu))&&yt.actionTabs.isRouter){ol.destroy(),x.history.push(`/classrooms/${ln.coursesId}/exercise/${Gu}/detail?random=${du}&tabs=3&childrenTabs=2`);return}ht({type:"exercise/setActionTabs",payload:{key:"\u8C03\u6574tabs\u9009\u4E2D"}})}else De(uu),re(io)}),onCancel:()=>{ol.destroy(),tt(!1),xa(uu)}})}else{let ol=he.default.info({width:580,centered:!0,okText:"\u6211\u77E5\u9053\u4E86",title:"\u63D0\u793A",icon:null,content:ve.createElement("div",null,"\u6A21\u62DF\u8003\u8BD5\u5F00\u542F\u9632\u4F5C\u5F0A\u89C4\u5219\u53EF\u80FD\u4F1A\u5F71\u54CD\u5B66\u751F\u8FDB\u884C\u91CD\u590D\u8003\u8BD5\uFF0C\u53EF\u6839\u636E\u8003\u8BD5\u9700\u8981\u8FDB\u884C\u8C03\u6574\u3002"),onOk:()=>lt(void 0,null,function*(){var ti;tt(!0);let io=yield(0,fe.Tr)({exercise_ids:[...((ti=yt.actionTabs.selectArrs)==null?void 0:ti.map(Xo=>Number(Xo)))||[]],course_id:ln.coursesId,type:"exercise"});if((io==null?void 0:io.student_count)===0){if((yield xa(uu))&&yt.actionTabs.isRouter){x.history.push(`/classrooms/${ln.coursesId}/exercise/${Gu}/detail?random=${du}&tabs=3&childrenTabs=2`);return}ht({type:"exercise/setActionTabs",payload:{key:"\u8C03\u6574tabs\u9009\u4E2D"}})}else De(uu),re(io)})})}return}let Cl=yield(0,fe.Tr)({exercise_ids:[...((Hu=yt.actionTabs.selectArrs)==null?void 0:Hu.map(ol=>Number(ol)))||[]],course_id:ln.coursesId,type:"exercise"});(Cl==null?void 0:Cl.student_count)===0?xa(uu):(De(uu),re(Cl))}),ra=()=>{var la;let lu=[...(la=yt.actionTabs.selectArrsAll)==null?void 0:la.filter(Ga=>Ga.high_resources_consume&&!Ga.high_resources_consume_permission)];(lu==null?void 0:lu.length)>0&&yt.actionTabs.type===1&&he.default.confirm({centered:!0,icon:null,footer:null,width:560,title:"\u63D0\u793A",closable:!0,content:ve.createElement("div",null,ve.createElement("div",{className:de.tipcontent},ve.createElement("div",{style:{color:"#191919"}},"\u60A8\u6709 ",lu==null?void 0:lu.length," \u4E2A\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u53D1\u5E03\u5931\u8D25\uFF0C\u8BF7\u5355\u72EC\u8FDB\u884C\u53D1\u5E03\u3002"),ve.createElement("div",{className:"mt20 mb20"},lu==null?void 0:lu.map(Ga=>ve.createElement("div",{className:de.failedList,key:Ga.id},ve.createElement("div",{className:de.name},Ga==null?void 0:Ga.exercise_name),ve.createElement("div",{className:de.publish,onClick:()=>{(0,y.xg)(`/classrooms/${ln.coursesId}/exercise/${Ga.id}/detail?random=${Ga.is_random}`)}},"\u53D1\u5E03"))))))})},xa=la=>lt(void 0,null,function*(){var lu,Ga,Ea;if(yt.actionTabs.type===1){let Hu=[...(lu=yt.actionTabs.selectArrsAll)==null?void 0:lu.filter(Hr=>Hr.high_resources_consume&&!Hr.high_resources_consume_permission)];if((Hu==null?void 0:Hu.length)==yt.actionTabs.selectArrsAll.length){ht({type:"exercise/setActionTabs",payload:{}}),ra();return}}let ga=!1;return er(!0),(yield(0,E.ZP)(`/api/courses/${ln.coursesId}/exercises/publish.json`,{method:"post",body:la})).status===0&&((0,y.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u7ACB\u5373\u53D1\u5E03"]),Kn(),ke.ZP.success("\u53D1\u5E03\u6210\u529F"),ht({type:"exercise/setActionTabs",payload:{}}),(Ga=yt==null?void 0:yt.actionTabs)!=null&&Ga.cb?(Ea=yt==null?void 0:yt.actionTabs)==null||Ea.cb():ht({type:"classroomList/getClassroomExercisesList",payload:Ye({},yt.actionTabs.params)}),ga=!0,yt.actionTabs.type===1&&ra()),er(!1),ga}),Kn=()=>{Cu(1),nr([]),Zt([])},Du=(la,lu,Ga)=>{la<=0?ke.ZP.info("\u8BF7\u9009\u62E9\u8865\u8003\u5B66\u751F"):(Qa(lu),_u(Ga),qn(!1))};return ve.createElement(he.default,{centered:!0,title:"\u53D1\u5E03\u8003\u8BD5",open:yt.actionTabs.key==="\u6279\u91CF\u53D1\u5E03",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",width:660,onOk:Wn,confirmLoading:Er||cu,onCancel:()=>{Kn(),ht({type:"exercise/setActionTabs",payload:{}})}},ve.createElement(Fe.Z,{spinning:cu},Da&&ve.createElement(Ce.default,{form:Un},!!((ot=yt==null?void 0:yt.actionTabs)!=null&&ot.disabled)&&ve.createElement("div",{style:{color:"#333333",display:"flex"},className:"font14 mb10"},ve.createElement("img",{style:{marginRight:5,objectFit:"contain"},src:ee.Z}),"\u5DF2\u7ECF\u53D1\u5E03\u8FC7\u8003\u8BD5\u7684\u8BD5\u5377\u4E0D\u53EF\u4EE5\u7EDF\u4E00\u53D1\u5E03\u3002"),!((Ct=Pa==null?void 0:Pa.exercise)!=null&&Ct.is_make_up_exercise)&&ve.createElement(ve.Fragment,null,ve.createElement(xe.Z,null,ve.createElement("span",{className:"mr10",style:{lineHeight:"32px"}},ve.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u8003\u8BD5\u6A21\u5F0F"),ve.createElement(Ce.default.Item,{name:"exercise_type"},ve.createElement(pe.ZP.Group,{disabled:((kt=Pa==null?void 0:Pa.exercise)==null?void 0:kt.exercise_status)>1,onChange:la=>{hu(la.target.value),Ot(la.target.value)}},ve.createElement(pe.ZP,{value:1},"\u6B63\u5F0F\u8003\u8BD5"),ve.createElement(pe.ZP,{value:2},"\u6A21\u62DF\u8003\u8BD5")))),Ta==2&&ve.createElement(xe.Z,{className:`${de.contentInterval}`},ve.createElement("span",{className:`${de.minorRuleText}`,style:{marginLeft:50}},"\u6BCF\u4E2A\u5B66\u751F\u5141\u8BB8\u8FDB\u884C\u8003\u8BD5"),ve.createElement(Ce.default.Item,{name:"simulate_exercise_num"},ve.createElement(Se.Z,{className:de.numberInput,style:{width:145},precision:0,size:"middle",disabled:((Mt=Pa==null?void 0:Pa.exercise)==null?void 0:Mt.exercise_status)>1,min:1,max:999})),ve.createElement("span",null,"\u6B21",ve.createElement("span",{style:{color:"#999999"}},"\uFF08\u53EF\u8BBE\u7F6E1~999\u6B21\uFF09")))),ve.createElement(xe.Z,null,ve.createElement("span",{className:"mr10 mt5"},ve.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u8003\u8BD5\u65F6\u95F4"),ve.createElement(Ce.default.Item,{name:"publish_time"},ve.createElement(Ae.default,{style:{width:170},disabledDate:la=>la&&la<=oe()().subtract(0,"days"),disabledTime:ct,placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:oe()((0,y.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1})),ve.createElement("span",{className:"mt5 ml5 mr5"},"\u5230"),ve.createElement(Ce.default.Item,{name:"end_time"},ve.createElement(Ae.default,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:oe()((0,y.U6)(),"HH:mm")},disabledDate:la=>la&&la{var Ga,Ea,ga,jn,Hu;if(ul(la),la)if((Ga=Pa==null?void 0:Pa.exercise)!=null&&Ga.is_appoint_user){const Hr=(ga=(Ea=Pa==null?void 0:Pa.exercise)==null?void 0:Ea.all_exercise_users)==null?void 0:ga.map(Wa=>Wa.user_id);Qa([...Hr])}else Qa([]),Jt(!1),Gn(!1);else Jt((jn=Pa==null?void 0:Pa.exercise)==null?void 0:jn.is_miss_exam_user),Gn((Hu=Pa==null?void 0:Pa.exercise)==null?void 0:Hu.is_no_passing_user)},disabled:((ut=Pa==null?void 0:Pa.exercise)==null?void 0:ut.exercise_status)!==1}),ve.createElement("span",{style:{marginLeft:"10px",fontSize:"14px",color:"3333"}},"\u6307\u5B9A\u5B66\u751F")),!ir&&ve.createElement(xe.Z,{className:"mt20",style:{paddingLeft:"90px"},align:"middle"},ve.createElement(ze.default,{checked:On,disabled:((un=Pa==null?void 0:Pa.exercise)==null?void 0:un.exercise_status)!==1||((Pn=Pa==null?void 0:Pa.exercise)==null?void 0:Pn.miss_exam_count)<=0,onChange:la=>{Jt(la.target.checked)}},ve.createElement("span",{style:{fontSize:"14px",color:"#333"}},"\u7F3A\u8003")),ve.createElement("span",{style:{color:"#0152d9",cursor:"pointer",marginRight:"60px"},onClick:()=>{oa(1),ul(!1),qn(!0)}},"\uFF08",`${(Rn=Pa==null?void 0:Pa.exercise)==null?void 0:Rn.miss_exam_count}\u4EBA`,"\uFF09"),ve.createElement(ze.default,{checked:_n,disabled:((bt=Pa==null?void 0:Pa.exercise)==null?void 0:bt.exercise_status)!==1||((An=Pa==null?void 0:Pa.exercise)==null?void 0:An.no_passing_count)<=0,onChange:la=>{Gn(la.target.checked)}},ve.createElement("span",{style:{fontSize:"14px",color:"#333"}},"\u672A\u53CA\u683C")),ve.createElement("span",{style:{color:"#0152d9",cursor:"pointer"},onClick:()=>{oa(2),ul(!1),qn(!0)}},"\uFF08",`${(Nn=Pa==null?void 0:Pa.exercise)==null?void 0:Nn.no_passing_count}\u4EBA`,"\uFF09")),ir&&ve.createElement(xe.Z,{className:"mt20",style:{paddingLeft:"90px"}},ve.createElement(Me.ZP,{type:"primary",ghost:!0,disabled:((Qt=Pa==null?void 0:Pa.exercise)==null?void 0:Qt.exercise_status)!==1,onClick:()=>{qn(!0),oa(void 0)}},ve.createElement("span",null,ve.createElement("i",{className:"iconfont icon-tianjia4 mr5",style:{fontSize:"14px"}})),ve.createElement("span",null,"\u9009\u62E9\u5B66\u751F")),ve.createElement("span",{style:{color:"#333",display:"inline-block",height:"32px",lineHeight:"32px",marginLeft:"10px"}},"\uFF08\u5DF2\u9009 ",`${Vn.length||0} \u4EBA`,"\uFF09"))),yt.actionTabs.type===2&&!((zt=Pa==null?void 0:Pa.exercise)!=null&&zt.is_make_up_exercise)&&ve.createElement(xe.Z,{style:{marginBottom:"10px"}},ve.createElement("span",{className:"mr10"},ve.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u9009\u62E9\u73ED\u7EA7"),ve.createElement(pe.ZP.Group,{value:xn,onChange:la=>{vl(la.target.value),Zt([])}},ve.createElement(pe.ZP,{disabled:!!((jt=yt==null?void 0:yt.actionTabs)!=null&&jt.disabled)||Da.some(la=>la==null?void 0:la.is_published)||!((sn=yt==null?void 0:yt.actionTabs)!=null&&sn.manage_all_group),value:!0},"\u7EDF\u4E00\u53D1\u5E03"),ve.createElement(pe.ZP,{disabled:Da.length<=0,value:!1},"\u5206\u73ED\u53D1\u5E03"))),Da.length<=0&&yt.actionTabs.type===2&&!((vt=Pa==null?void 0:Pa.exercise)!=null&&vt.is_make_up_exercise)&&ve.createElement("span",{style:{marginLeft:"65px",color:"rgba(0, 0, 0, 0.25)"}},'\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03"'),(yt.actionTabs.type===1||!xn)&&!((Tt=Pa==null?void 0:Pa.exercise)!=null&&Tt.is_make_up_exercise)&&Da.length>0&&ve.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},ve.createElement("span",{style:{flex:1}},ve.createElement(ze.default,{checked:Aa.length===Da.length,onChange:la=>{Aa.length===Da.length?Zt([]):Zt(Da)}},"\u5168\u9009")),ve.createElement("span",{style:{width:16}}),ve.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",Aa.length||0,"\u4E2A\u5206\u73ED")),(yt.actionTabs.type===1||!xn)&&!((qt=Pa==null?void 0:Pa.exercise)!=null&&qt.is_make_up_exercise)&&Da.length>0&&ve.createElement(te.Z,{data:Da,selectedRowKeys:Aa,setSelectedRowKeys:Zt})),ve.createElement(ne.Z,{visible:Za,setVisible:qn,onK:Du,selectKeys:Vn,selectRows:gu,appointStudent:ir,modalParams:ua,courseId:ln.categoryId||((Ke=(St=yt==null?void 0:yt.actionTabs)==null?void 0:St.selectArrs)==null?void 0:Ke[0])})),ve.createElement(ye.Z,{resdata:ft,type:"exercisepush",okloading:Er,oktext:(ft==null?void 0:ft.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:la=>lt(void 0,null,function*(){var lu,Ga,Ea;er(!0);let ga=yield(0,E.ZP)(`/api/courses/${ln.coursesId}/batch_copy_shixuns.json`,{method:"post",body:{type:"exercise",ids:[...((lu=yt.actionTabs.selectArrs)==null?void 0:lu.map(jn=>Number(jn)))||[]]}});if(er(!1),(ga==null?void 0:ga.status)===0)if(Xe){let jn=yield xa(ge);if(he.default.destroyAll(),jn&&yt.actionTabs.isRouter){x.history.push(`/classrooms/${ln.coursesId}/exercise/${(Ga=Pa==null?void 0:Pa.exercise)==null?void 0:Ga.id}/detail?random=${(Ea=Pa==null?void 0:Pa.exercise)==null?void 0:Ea.is_random}&tabs=3&childrenTabs=2`);return}ht({type:"exercise/setActionTabs",payload:{key:"\u8C03\u6574tabs\u9009\u4E2D"}})}else xa(ge)})}))};var Ze=(0,x.connect)(({exercise:yt})=>({exercise:yt}))(nt)},63938:function(Ft,rt,z){"use strict";z.d(rt,{Z:function(){return Ie}});var a=z(67294),Ce=z(28802),ke=z(84567),he=z(71230),Fe={leftdiv:"leftdiv___iuhY9",listClass:"listClass___o5N53",spantitle:"spantitle___KVMSL",rightdiv:"rightdiv___f2zZr"},xe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC",pe=z(26194),Se=(ze,Me,me)=>new Promise((oe,E)=>{var y=ee=>{try{b(me.next(ee))}catch(te){E(te)}},x=ee=>{try{b(me.throw(ee))}catch(te){E(te)}},b=ee=>ee.done?oe(ee.value):Promise.resolve(ee.value).then(y,x);b((me=me.apply(ze,Me)).next())}),Ie=({data:ze,value:Me=[],handleChangePage:me,setSelectedRowKeys:oe,selectedRowKeys:E,onChange:y=()=>{}})=>{const[x,b]=(0,a.useState)([]),[ee,te]=(0,a.useState)([]),[ne,de]=(0,a.useState)([]);let[ye,fe]=(0,a.useState)(1),[ve,Ne]=(0,a.useState)();return(0,a.useEffect)(()=>{b(ze),te([]),de([])},[ze]),(0,a.useEffect)(()=>{oe&&(te(E),de(E))},[E]),a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},a.createElement("div",{className:Fe.leftdiv},a.createElement(Ce.default.Search,{size:"middle",onChange:Le=>Se(void 0,null,function*(){b(ze.filter(Re=>{var He;return(He=Re==null?void 0:Re.name)==null?void 0:He.includes(Le.target.value)}))}),placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),x.length===0&&a.createElement(pe.Z,{styles:{margin:"70px auto"},customText:"\u6682\u65E0\u5206\u73ED"}),a.createElement("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"}},a.createElement(ke.default.Group,{value:ee.map(Le=>`${Le.course_group_id}`),onChange:Le=>{oe(x.filter(Re=>Le.includes(`${Re.course_group_id}`)))},style:{marginTop:"10px",flexDirection:"column"}},x.map((Le,Re)=>a.createElement(he.Z,{key:Le.course_group_id,style:{marginTop:"10px",lineHeight:"24px",display:"flex",width:200}},a.createElement(ke.default,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:Le.is_published,value:`${Le.course_group_id}`},a.createElement("div",{className:Fe.listClass},a.createElement("span",{className:Fe.spantitle,style:{width:Le.is_published?"108px":"170px"}},Le.name),Le.is_published&&a.createElement("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"}},"\u5DF2\u53D1\u5E03")))))))),a.createElement("div",{className:Fe.rightdiv},a.createElement(Ce.default.Search,{onChange:Le=>{de(ee.filter(Re=>Re.name.includes(Le.target.value)))},size:"middle",placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),ne.length===0&&a.createElement(pe.Z,{styles:{margin:"70px auto"},customText:"\u6682\u672A\u9009\u62E9\u5206\u73ED"}),ne.length>0&&a.createElement("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"}},a.createElement("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0}},ne.map((Le,Re)=>a.createElement(he.Z,{justify:"space-between",style:{marginTop:"10px"},key:Le.course_group_id},a.createElement("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"}},Le.name),a.createElement("img",{src:xe,style:{cursor:"pointer",height:"16px",marginRight:17},onClick:()=>{oe(ee.filter(He=>`${He.course_group_name}`!=`${Le.course_group_name}`))}})))))))}},97917:function(Ft,rt,z){"use strict";var a=z(67294),Ce=z(55054),ke=z(37720),he=z(91773),Fe=z(62844),xe=z(74330),pe=z(57399),Se=z(28802),Ae=z(71230),Ie=z(15746),ze=z(85804),Me=z(15835),me=z(94699),oe=z.n(me),E=z(35973),y=z(28706),x=z(53814),b=z(52262),ee=z(9343),te=z(67294),ne=(ve,Ne,Le)=>new Promise((Re,He)=>{var We=Ye=>{try{Ue(Le.next(Ye))}catch(it){He(it)}},Ge=Ye=>{try{Ue(Le.throw(Ye))}catch(it){He(it)}},Ue=Ye=>Ye.done?Re(Ye.value):Promise.resolve(Ye.value).then(We,Ge);Ue((Le=Le.apply(ve,Ne)).next())});const{Countdown:de}=Ce.default,ye=({value:ve,onChange:Ne,MaxMinutes:Le})=>te.createElement(te.Fragment,null,te.createElement("div",{className:"p10 mb20",style:{background:"#F6F7F9"}},"1.\u53EA\u6709\u5F53\u8003\u8BD5\u622A\u6B62\u65F6\u95F4\u665A\u4E8E\u5B66\u751F\u7684\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\u65F6\uFF0C\u624D\u652F\u6301\u5BF9\u5B66\u751F\u8FDB\u884C\u5EF6\u65F6\u64CD\u4F5C\uFF1B",te.createElement("br",null),"2.\u6BCF\u4E2A\u5B66\u751F\u7684\u6700\u5927\u53EF\u5EF6\u65F6\u65F6\u95F4=\u8003\u8BD5\u622A\u6B62\u65F6\u95F4-\u5B66\u751F\u5F53\u524D\u7684\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\u3002",te.createElement("br",null)),te.createElement(ke.Z,{value:ve,onChange:Ne,min:0,precision:0,max:Le,style:{width:"100%"},placeholder:`\u6700\u5927\u53EF\u5EF6\u957F\u65F6\u95F4\u4E3A${Le}\u5206\u949F\uFF0C\u5728\u5B66\u751F\u5269\u4F59\u65F6\u95F4\u57FA\u7840\u4E0A\u5EF6\u65F6`,addonAfter:"\u5206\u949F"})),fe=({exercise:ve,successCb:Ne,dispatch:Le})=>{var Re,He,We,Ge;const Ue=(0,E.useParams)(),[Ye]=he.default.useForm(),it=he.default.useWatch("time",Ye),[lt,Bt]=(0,a.useState)(!1),ct=(0,a.useRef)(),{actionTabs:nt}=ve,[Ze,yt]=(0,a.useState)(),[,ht,Je,ot]=(0,ee.U)(Me.n7,{id:Ue.categoryId}),[,Ct,kt]=(0,ee.U)(Me.Cd,{});(0,a.useEffect)(()=>{ve.actionTabs.key==="student-unlock"&&(Bt(!1),Ye.resetFields())},[ve.actionTabs.key]);const Mt=()=>new Promise(Qt=>ne(void 0,null,function*(){var zt,jt;return ct.current=yield(0,x.y)({ip_limit:(zt=nt==null?void 0:nt.exerciseParams)==null?void 0:zt.ip_limit,ip_bind:(jt=nt==null?void 0:nt.exerciseParams)==null?void 0:jt.ip_bind_type}),Qt()})),st=()=>ne(void 0,null,function*(){var Qt,zt,jt,sn,vt;yield Ye.validateFields();const Tt=Ye.getFieldsValue();if(Bt(!0),(((Qt=nt==null?void 0:nt.exerciseParams)==null?void 0:Qt.ip_limit)!=="no"||(zt=nt==null?void 0:nt.exerciseParams)!=null&&zt.ip_bind_type)&&(yield Mt()),(yield(0,Me.ZD)((jt=nt==null?void 0:nt.exerciseParams)==null?void 0:jt.id,{exercise_user_id:(sn=nt==null?void 0:nt.exerciseParams)==null?void 0:sn.exercise_user_id,unlock_key:Tt.unlock_key,time:Tt.time,ip:ct.current})).status===0){if(Ne){Le({type:"exercise/setActionTabs",payload:{}}),Ne();return}const St=nt==null?void 0:nt.exerciseParams;(0,y.nr)({inner_ip:St.inner_ip,public_ip:St.public_ip,open_camera:St.open_camera,ip_limit:St.ip_limit,ip_bind:St.ip_bind,ip_bind_type:St.ip_bind_type,exercise_tips:St.exercise_tips,exerciseId:St.id,screen_open:St.screen_open,screen_num:St.screen_num,screen_sec:St.screen_sec,coursesId:Ue.coursesId,login:(vt=(0,b.eY)())==null?void 0:vt.login,history,identity_verify:St.identity_verify,open_phone_video_recording:St.open_phone_video_recording,current_status:St.current_status}),Le({type:"exercise/setActionTabs",payload:{}})}Bt(!1)}),ut=[{title:"IP\u5730\u5740",dataIndex:"ip",key:"ip",render:Qt=>te.createElement("span",{className:Qt.indexOf("\u5F02\u5E38")>-1?"c-red":"c-green"},Qt)},{title:"\u6D4F\u89C8\u5668",dataIndex:"browser",key:"browser",render:Qt=>te.createElement("span",{className:Qt.indexOf("\u5F02\u5E38")>-1?"c-red":"c-green"},Qt)},{title:"\u4E0A\u6B21\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_time",key:"last_login_time"}],un=((Re=nt==null?void 0:nt.exerciseParams)==null?void 0:Re.errorMessage)&&typeof((He=nt==null?void 0:nt.exerciseParams)==null?void 0:He.errorMessage)=="object";(0,a.useEffect)(()=>{ve.actionTabs.key==="student-unlock"&&ne(void 0,null,function*(){const Qt=yield kt(Ue);yield Je({}),Qt.status||yt(Qt)})},[ve.actionTabs.key]);const{time:Pn,end_time:Rn}=(Ze==null?void 0:Ze.exercise)||{},bt=ot!=null&&ot.user_end_time?oe()(ot==null?void 0:ot.user_end_time).add(1,"minutes"):oe()(),An=oe()(ot==null?void 0:ot.user_total_end_time)>bt?Math.round(oe().duration(oe()(ot==null?void 0:ot.user_total_end_time).diff(bt.startOf("minute"))).asMinutes()):0,Nn=((ot==null?void 0:ot.student_left_minutes)||0)+(it||0);return te.createElement(te.Fragment,null,te.createElement(Fe.default,{width:514,centered:!0,closable:!!((We=nt==null?void 0:nt.exerciseParams)!=null&&We.unlockClose),maskClosable:!1,keyboard:!1,maskStyle:{background:"#000"},title:"\u63D0\u793A",open:ve.actionTabs.key==="student-unlock",footer:null,onCancel:()=>{Le({type:"exercise/setActionTabs",payload:{}})}},te.createElement(xe.Z,{spinning:ht||Ct},un&&te.createElement("div",{style:{marginBottom:16}},"\u8BE5\u8D26\u53F7\u5DF2\u7ECF\u5B58\u5728\u5F02\u5E38\u60C5\u51B5\uFF0C\u82E5\u975E\u672C\u4EBA\u64CD\u4F5C\uFF0C\u8BF7\u8054\u7CFB\u76D1\u8003\u8001\u5E08\u8BF4\u660E\u60C5\u51B5\u3002 "),!un&&te.createElement("div",{style:{marginBottom:16}},"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u60A8\u5728\u8003\u8BD5\u65F6\u4E2D\u9014\u9000\u51FA\uFF0C\u73B0\u5DF2\u5C06\u8003\u8BD5\u9501\u5B9A\u3002\u5982\u9700\u7EE7\u7EED\u8FDB\u884C\u8003\u8BD5\uFF0C \u8BF7\u5C3D\u5FEB\u8054\u7CFB\u8BFE\u5802\u8001\u5E08\u8FDB\u884C\u89E3\u9501\uFF01"),un&&te.createElement(pe.default,{className:"mb20",pagination:{hideOnSinglePage:!0},dataSource:[((Ge=nt==null?void 0:nt.exerciseParams)==null?void 0:Ge.errorMessage)||{}],columns:ut}),te.createElement("div",{className:""},te.createElement(he.default,{form:Ye,layout:"vertical",autoComplete:"off"},te.createElement(he.default.Item,{label:"\u8003\u8BD5\u89E3\u9501\u7801",name:"unlock_key",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801"}]},te.createElement(Se.default.Password,{autoComplete:"off",placeholder:"\u8BF7\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801",visibilityToggle:!1})),Pn!==-1?te.createElement(te.Fragment,null,te.createElement(he.default.Item,{name:"time",label:te.createElement("span",null,"\u5EF6\u957F\u65F6\u95F4\uFF08",te.createElement("span",{style:{color:"#9096A3"}},"\u5F53\u524D\u8003\u8BD5\u622A\u6B62\u65F6\u95F4",oe()(ot==null?void 0:ot.user_total_end_time).format("YYYY-MM-DD HH:mm")),"\uFF09")},te.createElement(ye,{MaxMinutes:An})),te.createElement("div",{className:"mb20",style:{color:"#FA6400"}},"\u8BE5\u5B66\u751F\u5269\u4F59\u8003\u8BD5\u65F6\u95F4\uFF1A",te.createElement("span",{className:"ml5"},ht||Ct?"--":Nn),"\u5206\u949F",Nn!==0&&(ot==null?void 0:ot.user_end_time)&&te.createElement("span",null,"\uFF0C\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\uFF1A",te.createElement("span",{className:"ml5"},oe()(ot==null?void 0:ot.user_end_time).add(it||0,"m").format("YYYY-MM-DD HH:mm:ss"))))):te.createElement("span",{style:{color:"#F6A53B"}}," \u5F53\u524D\u8003\u8BD5\u672A\u9650\u5236\u8003\u751F\u7B54\u9898\u65F6\u957F\uFF0C\u8003\u8BD5\u622A\u6B62\u65F6\u95F4\u4E3A ",oe()(Rn).format("YYYY-MM-DD HH:mm")))),te.createElement(Ae.Z,{justify:"space-between",align:"middle"},te.createElement(Ie.Z,null),te.createElement(Ie.Z,null,te.createElement(ze.ZP,{loading:lt,onClick:st},"\u8FDB\u5165\u8003\u8BD5"))))))};rt.Z=(0,E.connect)(({exercise:ve})=>({exercise:ve}))(fe)},7703:function(Ft,rt,z){"use strict";z.d(rt,{w:function(){return xe}});var a=z(33170),Ce=z(62844),ke=z(35973),he=z(67294),Fe=(pe,Se,Ae)=>new Promise((Ie,ze)=>{var Me=E=>{try{oe(Ae.next(E))}catch(y){ze(y)}},me=E=>{try{oe(Ae.throw(E))}catch(y){ze(y)}},oe=E=>E.done?Ie(E.value):Promise.resolve(E.value).then(Me,me);oe((Ae=Ae.apply(pe,Se)).next())});const xe=(pe,Se,Ae="\u6B63\u5728\u8FDB\u5165\u8BC4\u9605\uFF0C\u8BF7\u7A0D\u540E...",Ie=1,ze=2)=>Fe(void 0,null,function*(){Ie===1&&(0,ke.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:Ie===1?Ae:"\u6B63\u5728\u68C0\u6D4B\u4E2D\uFF0C\u8BF7\u7A0D\u540E..."}});const Me=yield(0,a.ZP)(`/api/exercises/${Se}/user_appraise_status.json`,{method:"get",params:{appraise_type:Ie}});if((Me==null?void 0:Me.status)===-1)return(0,ke.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1}}),Promise.reject();let me={status:0};if((Me==null?void 0:Me.type)===2&&(me=yield(0,a.ZP)(`/api/exercises/${Se}/create_appraise_students.json`,{method:"get"})),(0,ke.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),(me==null?void 0:me.status)===-1)return Promise.reject();if((Me==null?void 0:Me.type)===2){const oe=()=>{ke.history.replace(`/classrooms/${pe}/exercise/${Se}/centralizeReview/${me==null?void 0:me.login}`)};if(Ce.default.confirm({centered:!0,width:470,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",keyboard:!1,onOk:oe,onCancel:()=>{ze===1&&ke.history.replace(`/classrooms/${pe}/exercise/${Se}/detail`)},content:he.createElement("div",null,he.createElement("div",null,"\u60A8\u5DF2\u6210\u4E3A\u6307\u5B9A\u9605\u5377\u6559\u5E08\uFF0C\u662F\u5426\u73B0\u5728\u524D\u5F80",he.createElement("span",{onClick:oe,className:"ml5 mr5 c-light-primary current"},"\u96C6\u4E2D\u9605\u5377"),"\u7EE7\u7EED\u8BC4\u9605\uFF1F"),he.createElement("div",{className:"c-grey-999"},"\uFF08\u9605\u5377\u7ED3\u675F\u540E\u6062\u590D\u5B66\u751F\u4E2A\u4EBA\u8BC4\u9605\u529F\u80FD\uFF0C\u5E76\u5C55\u793A\u5B66\u751F\u6210\u7EE9\uFF09"))}),ze!==3)return Promise.reject()}if((Me==null?void 0:Me.type)===3&&(Ce.default.info({centered:!0,width:470,okText:"\u786E\u5B9A",keyboard:!1,title:"\u63D0\u793A",onOk:()=>{ze===1&&ke.history.replace(`/classrooms/${pe}/exercise/${Se}/detail`)},content:he.createElement("div",null,(Me==null?void 0:Me.message)||"")}),ze!==3)||(Me==null?void 0:Me.type)===4&&(Ce.default.info({centered:!0,width:470,okText:"\u786E\u5B9A",title:"\u63D0\u793A",keyboard:!1,onOk:()=>{ze===1&&ke.history.replace(`/classrooms/${pe}/exercise/${Se}/detail`)},content:he.createElement("div",null,(Me==null?void 0:Me.message)||"")}),ze!==3))return Promise.reject()})},42469:function(Ft,rt,z){"use strict";z.d(rt,{Z:function(){return ve}});var a=z(67294),Ce={anchorNavigation:"anchorNavigation___qD4R0",tabs:"tabs___hVMvA",box:"box___Qz1lW",head:"head___WZZdl"},ke=Object.defineProperty,he=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,pe=(Ne,Le,Re)=>Le in Ne?ke(Ne,Le,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ne[Le]=Re,Se=(Ne,Le)=>{for(var Re in Le||(Le={}))Fe.call(Le,Re)&&pe(Ne,Re,Le[Re]);if(he)for(var Re of he(Le))xe.call(Le,Re)&&pe(Ne,Re,Le[Re]);return Ne};const Ae=Ne=>React.createElement("svg",Se({width:17,height:18,xmlns:"http://www.w3.org/2000/svg"},Ne),React.createElement("title",null,"\u88C5\u9970\u70B9"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"100%",y1:"50%",x2:"0%",y2:"50%",id:"dot_svg__a"},React.createElement("stop",{stopColor:"#5EC7EA",offset:"0%"}),React.createElement("stop",{stopColor:"#3055D0",offset:"100%"}))),React.createElement("g",{transform:"translate(0 -1)",fill:"none",fillRule:"evenodd"},React.createElement("path",{d:"m4.342 2.005 11.896 7.138a1 1 0 0 1 0 1.714L4.342 17.995a1 1 0 0 1-1.378-1.362L6.834 10l-3.87-6.633a1 1 0 0 1 1.378-1.362Z",fill:"url(#dot_svg__a)"}),React.createElement("circle",{fill:"#3061D0",cx:2,cy:10,r:2})));var Ie="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIxMDAlIiB5MT0iNTAlIiB4Mj0iMCUiIHkyPSI1MCUiIGlkPSJhIj48c3RvcCBzdG9wLWNvbG9yPSIjNUVDN0VBIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzMwNTVEMCIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAtMSkiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PHBhdGggZD0ibTQuMzQyIDIuMDA1IDExLjg5NiA3LjEzOGExIDEgMCAwIDEgMCAxLjcxNEw0LjM0MiAxNy45OTVhMSAxIDAgMCAxLTEuMzc4LTEuMzYyTDYuODM0IDEwbC0zLjg3LTYuNjMzYTEgMSAwIDAgMSAxLjM3OC0xLjM2MloiIGZpbGw9InVybCgjYSkiLz48Y2lyY2xlIGZpbGw9IiMzMDYxRDAiIGN4PSIyIiBjeT0iMTAiIHI9IjIiLz48L2c+PC9zdmc+",ze=z(55238),Me=z(94184),me=z.n(Me),oe=z(67294),E=Object.defineProperty,y=Object.defineProperties,x=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,ne=(Ne,Le,Re)=>Le in Ne?E(Ne,Le,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ne[Le]=Re,de=(Ne,Le)=>{for(var Re in Le||(Le={}))ee.call(Le,Re)&&ne(Ne,Re,Le[Re]);if(b)for(var Re of b(Le))te.call(Le,Re)&&ne(Ne,Re,Le[Re]);return Ne},ye=(Ne,Le)=>y(Ne,x(Le)),ve=({dataSource:Ne,className:Le,style:Re})=>{const[He,We]=(0,a.useState)([]),[Ge,Ue]=(0,a.useState)(""),Ye=(0,a.useRef)("");(0,a.useEffect)(()=>{if(Ne!=null&&Ne.length){const Bt=String(Math.random()).slice(-6),ct=Ne.map(nt=>ye(de({},nt),{key:`${Bt}-${nt.key}`}));We(ct),Ue(ct[0].key)}},[Ne.length]);const it=Bt=>{Ue(Bt),Ye.current=Bt;const ct=document.getElementById(Bt);if(ct){const nt=ct.getBoundingClientRect().top+window.scrollY-50;window.scrollTo({top:nt,behavior:"smooth"})}},lt=()=>{const Bt=He.map(nt=>document.getElementById(nt.key)),ct=window.innerHeight/2;for(const nt of Bt)if(nt){const Ze=nt.getBoundingClientRect();if(Ze.top>=0&&Ze.top(window.addEventListener("scroll",lt),()=>{window.removeEventListener("scroll",lt)}),[He]),oe.createElement("div",{className:me()(Ce.anchorNavigation,Le),style:Re},oe.createElement(ze.default,{items:He,tabBarGutter:60,className:Ce.tabs,activeKey:Ge,onChange:it}),He.map(Bt=>oe.createElement("div",{key:Bt.key,id:Bt.key,className:Ce.box},oe.createElement("div",{className:Ce.head},oe.createElement("img",{className:"mr10",src:Ie,alt:"Dot"}),Bt.label),oe.createElement("div",{className:Ce.element},Bt.element))))}},17998:function(Ft,rt,z){"use strict";z.d(rt,{Q8:function(){return nt},d0:function(){return Ze},w6:function(){return ct}});var a=z(67294),Ce=z(18046),ke=z(88044),he=z(2453),Fe=z(62844),xe=z(98813),pe=z(71230),Se=z(15746),Ae=z(83062),Ie=z(84567),ze=z(85804),Me=z(94699),me=z.n(Me),oe=z(52262),E=z(33170),y=z(96486),x=z.n(y),b=z(28706),ee=z(39886),te=z(35973),ne=z(39717),de=z(78207),ye=z(92882),fe=z(96332),ve=z(93686),Ne=z(67294),Le=Object.defineProperty,Re=Object.defineProperties,He=Object.getOwnPropertyDescriptors,We=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,Ye=(Ct,kt,Mt)=>kt in Ct?Le(Ct,kt,{enumerable:!0,configurable:!0,writable:!0,value:Mt}):Ct[kt]=Mt,it=(Ct,kt)=>{for(var Mt in kt||(kt={}))Ge.call(kt,Mt)&&Ye(Ct,Mt,kt[Mt]);if(We)for(var Mt of We(kt))Ue.call(kt,Mt)&&Ye(Ct,Mt,kt[Mt]);return Ct},lt=(Ct,kt)=>Re(Ct,He(kt)),Bt=(Ct,kt,Mt)=>new Promise((st,ut)=>{var un=bt=>{try{Rn(Mt.next(bt))}catch(An){ut(An)}},Pn=bt=>{try{Rn(Mt.throw(bt))}catch(An){ut(An)}},Rn=bt=>bt.done?st(bt.value):Promise.resolve(bt.value).then(un,Pn);Rn((Mt=Mt.apply(Ct,kt)).next())});function ct(Ct,kt){const Mt=[];for(let st=Ct;st{const st=Ctme()(kt).endOf("day"),un=Ct{const Mt=parseInt(me()(Ct).format("HH")),st=parseInt(me()().format("HH")),ut=parseInt(me()().format("mm"));if(!Ct)return{disabledHours:()=>ct(0,st),disabledMinutes:()=>ct(0,ut)};if(kt){const un=parseInt(me()(kt).format("HH")),Pn=parseInt(me()(kt).format("mm"));return me()(Ct).isSame(me()(kt),"day")?{disabledHours:()=>ct(0,un),disabledMinutes:()=>Mt<=un?ct(0,Pn):[]}:void 0}if(me()(Ct).isSame(me()(),"day"))return{disabledHours:()=>ct(0,st),disabledMinutes:()=>me()(Ct).isSame(me()(),"hour")&&Mt<=st?ct(0,ut):[]}},yt=(Ct,kt)=>Ct==null?void 0:Ct.map(Mt=>{var st;return(st=kt==null?void 0:kt.find(ut=>ut.value===Mt))==null?void 0:st.id}),{RangePicker:ht}=Ce.default,{Option:Je}=ke.default,ot=({shixunHomeworks:Ct,loading:kt,dispatch:Mt,classroomList:st,user:ut})=>{var un,Pn,Rn,bt,An,Nn,Qt,zt,jt;const sn=(0,te.useParams)(),{workSetting:vt,workList:Tt,shixunWorkList:qt,headerInfo:St,changeData:Ke}=Ct,[ln,Un]=(0,a.useState)(!1),[Ca,Cu]=(0,a.useState)(!1);let[Da,nr]=(0,a.useState)([]),[cu,or]=(0,a.useState)([]),[Aa,Zt]=(0,a.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,penalty_type:ne.Q.Percent,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,comment_public:!0,total_score:"",eff_score:0,action_analysis:!1,work_end_forbid_evaluate:!1});const[xn,vl]=(0,a.useState)({}),[Er,er]=(0,a.useState)({});(0,a.useEffect)(()=>()=>{nr([])},[]),(0,a.useEffect)(()=>{Un(!(0,oe.GJ)())},[(0,oe.GJ)()]);const Pa=()=>{Mt({type:"shixunHomeworks/getWorkSetting",payload:it({},sn)})};(0,a.useEffect)(()=>{if(!(vt!=null&&vt.course_id))return;Object.keys(Aa).map(function(_n){Aa[_n]=vt[_n]}),(!Aa.allow_late||!Aa.unified_late)&&(Aa.late_penalty=20,Aa.penalty_type=ne.Q.Percent),Aa.unified_setting||(Aa.unified_late=!1,Aa.unified_anonymous_comment=!1,Aa.unified_anonymous_appeal=!1),Da=JSON.parse(JSON.stringify(vt.group_settings.map(_n=>lt(it({},_n),{group_name:[_n.group_name]})).filter(_n=>_n.publish_time!==null))),cu=JSON.parse(JSON.stringify(vt.allow_late_settings.map(_n=>lt(it({},_n),{group_name:[_n.group_name]})).filter(_n=>_n.late_time!==null))),Zt(it({},Aa));const Jt=(0,b.QE)((Da==null?void 0:Da.length)>0?Da:[]);nr([...Jt]),(cu==null?void 0:cu.length)<=0?or([{penalty_type:ne.Q.Percent,late_penalty:20}]):or([...cu])},[vt]);const Za=()=>Bt(void 0,null,function*(){var Jt,_n;if(((Jt=ut==null?void 0:ut.userInfo)==null?void 0:Jt.user_status)===2){(0,de.Rd)();return}const Gn=JSON.parse(JSON.stringify(Aa));if(Gn.challenge_settings.filter(oa=>!oa.hide),Gn.categoryId=sn.categoryId,(_n=Gn.challenge_settings)!=null&&_n.every(oa=>!oa.checked)){he.ZP.warning("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}if(console.log(Da),!Aa.unified_setting)Da=Da==null?void 0:Da.map(oa=>{var Ta;if(!oa.publish_time||!oa.end_time)throw he.ZP.error("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!oa.group_name)throw he.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return oa.group_name=typeof(oa==null?void 0:oa.group_name)=="string"?[oa==null?void 0:oa.group_name]:oa==null?void 0:oa.group_name,oa.group_id=(Ta=vt.group_settings)==null?void 0:Ta.filter(hu=>{var ft;return(ft=oa==null?void 0:oa.group_name)==null?void 0:ft.includes(hu.group_name)}).map(hu=>hu.group_id||hu.id).toString().split(","),oa});else if(!Aa.publish_time||!Aa.end_time)throw he.ZP.error("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A");if(Gn.group_settings=Da,Aa.allow_late)if(Aa.unified_late){if(Aa.late_penalty===null||Aa.late_penalty===void 0||Aa.late_penalty<0||Aa.late_penalty>100)throw he.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!Aa.late_time)throw he.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574")}else cu=cu==null?void 0:cu.map(oa=>{var Ta,hu;if(oa.late_penalty===null||oa.late_penalty===void 0||oa.late_penalty<0||oa.late_penalty>100)throw he.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!oa.late_time)throw he.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!oa.group_name)throw he.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return oa.group_name=typeof(oa==null?void 0:oa.group_name)=="string"?[oa==null?void 0:oa.group_name]:oa==null?void 0:oa.group_name,oa.group_id=(hu=(Ta=oa==null?void 0:oa.group_name)==null?void 0:Ta.map(ft=>{var re,ge;let De=(ge=(re=vt.group_settings)==null?void 0:re.filter(Xe=>(Xe==null?void 0:Xe.group_name)===ft))==null?void 0:ge[0];return De==null?void 0:De.group_id}))==null?void 0:hu.toString().split(","),oa}),Gn.allow_late_settings=cu;let ua=yield(0,ve.Tr)({homework_common_ids:[parseInt(sn.categoryId)],course_id:sn.coursesId,type:"homework_common"});(ua==null?void 0:ua.student_count)===0?qn(Gn):(er(Gn),vl(ua))}),qn=Jt=>{var _n;if(Jt.total_score===null){he.ZP.warning("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(Jt!=null&&Jt.work_efficiency&&Jt.eff_score===null){he.ZP.warning("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}const Gn=Jt.challenge_settings.reduce((Ta,hu)=>Ta+Number(hu.challenge_score),0);if((Gn==null?void 0:Gn.toFixed(10))!==((_n=Jt.total_score-Jt.eff_score)==null?void 0:_n.toFixed(10))){he.ZP.warning(`\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A${Jt.total_score}\u5206`);return}const ua={shixun_evaluation:Jt.shixun_evaluation,challenge_settings:Jt.challenge_settings};let oa=()=>{var Ta;const hu=()=>Bt(void 0,null,function*(){Cu(!0),(yield(0,E.ZP)(`/api/homework_commons/${sn.categoryId}/publish_setting.json`,{method:"post",body:it({},Jt)})).status===0&&(he.ZP.success("\u66F4\u65B0\u6210\u529F"),Pa(),Mt({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:it({},sn)})),Cu(!1)});!(0,y.isEqual)(Ke,ua)&&!((Ta=St==null?void 0:St.homework_status)!=null&&Ta.includes("\u672A\u53D1\u5E03"))?Fe.default.confirm({title:"\u66F4\u65B0\u6210\u7EE9",content:"\u60A8\u6539\u52A8\u4E86\u672C\u6B21\u4F5C\u4E1A\u7684\u5173\u5361\u5F97\u5206\u8BBE\u7F6E\uFF0C\u8FD9\u53EF\u80FD\u5BFC\u81F4\u5DF2\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\u7684\u6210\u7EE9\u4EA7\u751F\u9519\u8BEF\u3002\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u6309\u94AE\u5C06\u4FDD\u5B58\u6700\u65B0\u8BBE\u7F6E\u5E76\u6309\u6700\u65B0\u8BBE\u7F6E\u66F4\u65B0\u5168\u73ED\u6210\u7EE9\u3002",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:hu}):hu()};vt!=null&&vt.high_resources_consume&&!(vt!=null&&vt.high_resources_consume_permission)?Mt({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:sn.coursesId,type:"shixun",type_id:sn.categoryId,name:vt.homework_name,fn:()=>{oa()}}}):oa()},Vn=(Jt,_n,Gn="group_id")=>{var ua;return _n?_n.find(oa=>oa[Gn]===Jt):(ua=vt==null?void 0:vt.group_settings)==null?void 0:ua.find(oa=>oa.group_id[0]===Jt)},Qa=(vt==null?void 0:vt.allow_late)||(vt==null?void 0:vt.anonymous_comment),gu=Jt=>{var _n,Gn;const ua=Vn(Jt,vt==null?void 0:vt.allow_late_settings,"id"),oa=Vn(Jt,vt==null?void 0:vt.anonymous_comment_settings),Ta=Vn(Jt);return(vt==null?void 0:vt.allow_late)&&ua&&me()(ua==null?void 0:ua.late_time)<=me()()||(vt==null?void 0:vt.anonymous_comment)&&oa&&(oa==null?void 0:oa.evaluation_start)!==null||((Gn=(me()(Ta==null?void 0:Ta.end_time)<=me()()&&((_n=vt==null?void 0:vt.allow_late_settings)==null?void 0:_n.filter(hu=>hu.group_id.includes(Jt))))[0])==null?void 0:Gn.late_time)!=null},_u=(0,a.useMemo)(()=>(vt==null?void 0:vt.allow_late)||(vt==null?void 0:vt.all_group_late),[vt,St]),ir=vt==null?void 0:vt.anonymous_comment,ul=Jt=>{if(!Jt)return!1;const _n=Vn(Jt,vt==null?void 0:vt.anonymous_comment_settings);return(vt==null?void 0:vt.anonymous_comment)&&_n&&(_n==null?void 0:_n.evaluation_start)!==null},On=(Jt,_n)=>{var Gn,ua,oa,Ta,hu;Jt!=null&&Jt.group_id||(Jt.group_id=yt(Jt==null?void 0:Jt.group_name,vt==null?void 0:vt.group_settings)),Mt({type:"classroomList/setActionTabs",payload:{key:"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",data:Jt,index:_n,rangePickerDisabled:(ua=(Gn=Jt==null?void 0:Jt.group_id)==null?void 0:Gn[0])!=null&&ua.publish_time?ln||(me()()<=me()((Ta=Vn((oa=Jt==null?void 0:Jt.group_id)==null?void 0:oa[0]))==null?void 0:Ta.publish_time)?!1:[!0,gu((hu=Jt==null?void 0:Jt.group_id)==null?void 0:hu[0])]):!1,disabledDate:vt==null?void 0:vt.course_end_date}})};return Ne.createElement("section",{className:ee.Z.form},Ne.createElement("div",{className:ee.Z.title},"\u4F5C\u4E1A\u53D1\u5E03",Ne.createElement("span",{className:"c-grey-666 font14",style:{fontWeight:400}},"\uFF08\u4F5C\u4E1A\u4E00\u65E6\u53D1\u5E03\u540E\u4E0D\u53EF\u53D8\u66F4\u8BD5\u9898\u53D1\u5E03\u6A21\u5F0F\uFF09")),Ne.createElement("div",null,Ne.createElement("div",{style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},Ne.createElement(xe.ZP.Group,{disabled:ln||!((un=St==null?void 0:St.homework_status)!=null&&un.includes("\u672A\u53D1\u5E03"))||(0,oe.Rm)()&&!((Pn=st.AssistantObject.practice)!=null&&Pn.can_publish),value:Aa.unified_setting,onChange:Jt=>{var _n;if(!((_n=St==null?void 0:St.homework_status)!=null&&_n.includes("\u672A\u53D1\u5E03"))){he.ZP.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u7EDF\u4E00\u8BBE\u7F6E");return}if(Aa.unified_setting=!Aa.unified_setting,Aa.unified_setting||(Aa.unified_late=!1,or([{late_penalty:5}])),Zt(Object.assign({},Aa)),Aa.unified_setting===!1&&Da==""){nr(Da.concat({}));return}Aa.unified_setting&&(nr([]),or([{late_penalty:5}]))}},Ne.createElement(xe.ZP,{value:!0,disabled:ln||!(vt!=null&&vt.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u53D1\u5E03"),Ne.createElement(xe.ZP,{disabled:ln||!((Rn=vt==null?void 0:vt.group_settings)!=null&&Rn.length),value:!1},"\u5206\u73ED\u53D1\u5E03")),((bt=vt==null?void 0:vt.group_settings)==null?void 0:bt.length)===0&&Ne.createElement("div",{style:{color:"rgba(0, 0, 0, 0.25)",height:"22px"}},"\uFF08\u672C\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03\u201C\uFF09")),Aa.unified_setting&&Ne.createElement("div",{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",height:"50px",marginTop:"1px"}},Ne.createElement(pe.Z,{align:"middle"},Ne.createElement(Se.Z,{style:{marginLeft:"23px"}},"\u53D1\u5E03\u65F6\u95F4"),Ne.createElement(Se.Z,{className:"ml10"},Ne.createElement(Ce.default,{size:"large",disabled:ln||!((An=St==null?void 0:St.homework_status)!=null&&An.includes("\u672A\u53D1\u5E03")||(Nn=St==null?void 0:St.homework_status)!=null&&Nn.includes("\u672A\u5F00\u59CB"))||(0,oe.Rm)()&&!((Qt=st.AssistantObject.practice)!=null&&Qt.can_publish),style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},allowClear:!1,format:"YYYY-MM-DD HH:mm",disabledDate:Jt=>nt(Jt,vt==null?void 0:vt.course_end_date),disabledTime:Jt=>Ze(Jt),value:Aa.publish_time?me()(Aa.publish_time):"",onChange:(Jt,_n)=>{Aa.publish_time=_n,(Aa.end_time==""||!Aa.end_time)&&Aa.unified_setting&&(Aa.end_time=me()(Jt).add(7,"days").format("YYYY-MM-DD HH:mm:ss")),Zt(Object.assign({},Aa))}}))),Ne.createElement(pe.Z,{align:"middle",className:"pl30"},Ne.createElement(Se.Z,null,"\u622A\u6B62\u65F6\u95F4"),Ne.createElement(Se.Z,{className:"ml10"},Ne.createElement(Ce.default,{size:"large",style:{width:170},allowClear:!1,placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:me()((0,b.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:(vt==null?void 0:vt.allow_late)&&(vt==null?void 0:vt.homework_status.includes("\u5DF2\u622A\u6B62"))||ln||(vt==null?void 0:vt.allow_late)&&me()()>=me()(vt==null?void 0:vt.end_time)||(0,oe.Rm)()&&!((zt=st.AssistantObject.practice)!=null&&zt.can_publish),disabledDate:Jt=>nt(Jt,vt==null?void 0:vt.course_end_date,Aa.publish_time),disabledTime:Jt=>Ze(Jt,Aa.publish_time),value:Aa.end_time?me()(Aa.end_time):"",onChange:(Jt,_n)=>{Aa.end_time=_n,Zt(Object.assign({},Aa))}})))),!Aa.unified_setting&&(Da==null?void 0:Da.length)>0&&Ne.createElement(pe.Z,{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",marginTop:"1px"}},Da&&Da.map(function(Jt,_n){var Gn,ua,oa,Ta,hu,ft,re;return Ne.createElement(Se.Z,{span:24,key:_n},Ne.createElement(pe.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:_n==(Da==null?void 0:Da.length)-1?"0px":"10px"}},Ne.createElement("div",{style:{minWidth:85,marginRight:"15px",textAlign:"right"}},"\u53D1\u5E03\u89C4\u5219",_n+1),Ne.createElement(ke.default,{disabled:ln||((Gn=St==null?void 0:St.homework_status)!=null&&Gn.includes("\u672A\u53D1\u5E03")&&Jt.id||me()(){var De;if((0,oe.Rm)()&&!((De=st.AssistantObject.practice)!=null&&De.can_publish)){he.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Da[_n].group_name=ge,Da[_n].group_id=Jt.group_id;const Xe=(0,y.flattenDeep)(Da.map(Ot=>Ot.group_name)),tt=cu.map(Ot=>{let Lt=(Ot==null?void 0:Ot.group_name)||[];return lt(it({},Ot),{group_name:(0,y.remove)(Lt,Wn=>Xe.includes(Wn))})});or(tt),nr(Da.slice())},maxTagCount:4,maxTagPlaceholder:ge=>Ne.createElement("div",{style:{cursor:"pointer"},onClick:()=>On(Jt,_n)},"+",ge==null?void 0:ge.length)},vt.group_settings&&vt.group_settings.map(function(ge){if(!Da.map(Xe=>Xe.group_name).flat().includes(ge.group_name))return Ne.createElement(Je,{value:ge.group_name,key:ge.id},ge.group_name)})),Ne.createElement("div",{className:"ml20"},Ne.createElement(ht,{size:"large",ranges:{\u6B64\u523B:[Jt.publish_time?me()(Jt.publish_time):me()(),me()()]},allowClear:!1,disabled:ln||(me()()<=me()((Ta=Vn((oa=Jt==null?void 0:Jt.group_id)==null?void 0:oa[0]))==null?void 0:Ta.publish_time)?!1:[!0,gu((hu=Jt==null?void 0:Jt.group_id)==null?void 0:hu[0])]),style:{width:605},placeholder:["\u53D1\u5E03\u65F6\u95F4\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4\uFF09","\u622A\u6B62\u65F6\u95F4\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9\uFF09"],disabledDate:ge=>nt(ge,vt==null?void 0:vt.course_end_date),disabledTime:ge=>Ze(ge),showTime:{showNow:!0,format:"HH:mm",defaultValue:[me()((0,b.U6)(),"HH:mm"),me()((0,b.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:[Jt.publish_time?me()(Jt.publish_time):void 0,Jt.end_time?me()(Jt.end_time):void 0],onChange:(ge,De)=>{var Xe;if((0,oe.Rm)()&&!((Xe=st.AssistantObject.practice)!=null&&Xe.can_publish)){he.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Da[_n].publish_time=De[0],!Jt.end_time&&De[0]?Da[_n].end_time=me()(De[0]).add(7,"days"):Da[_n].end_time=De[1],nr([...Da])},onCalendarChange:(ge,De,Xe)=>{if(De!=null&&De[0]&&!De[1]){const tt=me()(De[0]).add(7,"days");Da[_n].publish_time=De[0],Da[_n].end_time=tt,nr([...Da])}}})),!ln&&Ne.createElement("div",{style:{display:"flex",width:"50px"}},((ft=Jt==null?void 0:Jt.group_id)==null?void 0:ft.length)>1&&Ne.createElement(Ae.Z,{title:"\u89C4\u5219\u62C6\u5206"},Ne.createElement("i",{className:"iconfont icon-chaifen ml10",style:{cursor:"pointer",color:"#3061d0"},onClick:()=>On(Jt,_n)})),Da.length<((re=vt==null?void 0:vt.group_settings)==null?void 0:re.length)&&Ne.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var ge;if((0,oe.Rm)()&&!((ge=st.AssistantObject.practice)!=null&&ge.can_publish)){he.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}nr(Da.concat({}))}}),((Jt==null?void 0:Jt.publish_time)&&me()(){const ge=(0,y.cloneDeep)(cu);ge.forEach((De,Xe)=>{De.group_name&&(De.group_name=De.group_name.filter(tt=>{var Ot;return!((Ot=Da[_n].group_name)!=null&&Ot.includes(tt))}))}),Da=Da.filter((De,Xe)=>_n!==Xe),or(ge),nr(Da.slice()),setTimeout(()=>nr(Da.slice()),10)}}))))}))),Ne.createElement(pe.Z,null,Ne.createElement(Se.Z,null,Ne.createElement("div",{className:ee.Z.title,style:{marginTop:"30px"}},"\u8865\u4EA4\u8BBE\u7F6E",Ne.createElement("span",{className:"c-grey-666 font14",style:{fontWeight:400}},"\uFF08\u53EF\u5BF9\u5728\u4F5C\u4E1A\u53D1\u5E03\u65F6\u95F4\u8303\u56F4\u5185\u672A\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\uFF0C\u5EF6\u957F\u65F6\u95F4\u8FDB\u884C\u8865\u4EA4\uFF09"))),Ne.createElement(Se.Z,{span:24,style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},Ne.createElement(Ie.default,{checked:Aa.allow_late,disabled:ln||_u,onChange:Jt=>{var _n;if((0,oe.Rm)()&&!((_n=st.AssistantObject.practice)!=null&&_n.can_late)){he.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Jt.target.checked&&Fe.default.warning({title:"\u5F00\u542F\u8865\u4EA4\u63D0\u793A",centered:!0,width:480,content:Ne.createElement("div",{style:{padding:10,background:"#f5f6f9"}},Ne.createElement("div",null,"1.\u5F00\u542F\u8865\u4EA4\u540E\u4E0D\u53EF\u5173\u95ED\uFF0C\u8865\u4EA4\u65B9\u5F0F\u63D0\u4EA4\u4FDD\u5B58\u540E\u4E0D\u53EF\u4FEE\u6539\uFF1B"),Ne.createElement("div",null,"2.\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u5FC5\u987B\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\uFF1B"),Ne.createElement("div",null,"3.\u73ED\u7EA7\u9636\u6BB5\u8FDB\u5165\u201C\u8865\u4EA4\u4E2D\u201D\u5219\u4E0D\u53EF\u53D8\u66F4\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\u3002"))}),Aa.allow_late=!Aa.allow_late,cu==""&&or([{late_penalty:5}]),Zt(Object.assign({},Aa))}},Ne.createElement("strong",null,"\u5F00\u542F\u8865\u4EA4")))),(Aa==null?void 0:Aa.allow_late)&&Ne.createElement("div",{style:{background:"#F6F7F9",padding:"10px 30px",marginTop:"1px",color:"#666666"}},Ne.createElement("div",{style:{display:"flex"}},Ne.createElement("div",{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u65B9\u5F0F"),Ne.createElement(xe.ZP.Group,{style:{marginLeft:"20px"},disabled:ln||(vt==null?void 0:vt.anonymous_comment)||(vt==null?void 0:vt.allow_late),value:Aa.unified_late,onChange:Jt=>{var _n;if((0,oe.Rm)()&&!((_n=st.AssistantObject.practice)!=null&&_n.can_late)){he.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Aa.unified_late=Jt.target.value,cu==""&&!Jt.target.value&&or([{penalty_type:ne.Q.Percent,late_penalty:20}]),Zt(it({},Aa))}},(Aa==null?void 0:Aa.unified_setting)&&Ne.createElement(xe.ZP,{value:!0,disabled:!(vt!=null&&vt.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u8865\u4EA4"),((jt=vt==null?void 0:vt.group_settings)==null?void 0:jt.length)>0&&Ne.createElement(xe.ZP,{value:!1},"\u5206\u73ED\u8865\u4EA4"))),Aa!=null&&Aa.unified_late?Ne.createElement(Ne.Fragment,null,Ne.createElement(pe.Z,{align:"middle",style:{marginTop:"10px"}},Ne.createElement(Se.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u6263\u5206"),Ne.createElement(Se.Z,{className:"ml20"},Ne.createElement(ne.Z,{disabled:ln||ir,value:{type:Aa.penalty_type,inputValue:Aa.late_penalty},onChange:Jt=>{var _n;if((0,oe.Rm)()&&!((_n=st.AssistantObject.practice)!=null&&_n.can_late)){he.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Zt(lt(it({},Aa),{late_penalty:Jt.inputValue,penalty_type:Jt.type}))}})),Ne.createElement(Se.Z,{flex:"1",className:"ml5"},Ne.createElement("span",{className:"c-grey-c ml10"},Aa.penalty_type===ne.Q.Number?"(\u8865\u4EA4\u65F6\u6309\u7167\u5B66\u751F\u603B\u6210\u7EE9\u6263\u5206)":"(\u5B66\u751F\u6700\u7EC8\u5F97\u5206=\u8865\u4EA4\u524D\u5F97\u5206+\u8865\u4EA4\u9636\u6BB5\u589E\u52A0\u7684\u5206\u503C*\uFF08100%-\u767E\u5206\u6BD4%\uFF09)"))),Ne.createElement(pe.Z,{align:"middle",style:{marginTop:"15px"}},Ne.createElement(Se.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),Ne.createElement(Se.Z,{className:"ml20"},Ne.createElement(Ce.default,{size:"large",allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:me()((0,b.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:ln||ir,value:Aa.late_time?me()(Aa.late_time):"",disabledDate:Jt=>nt(Jt,vt==null?void 0:vt.course_end_date),onChange:(Jt,_n)=>{var Gn;if((0,oe.Rm)()&&!((Gn=st.AssistantObject.practice)!=null&&Gn.can_late)){he.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Aa.late_time=_n,Zt(Object.assign({},Aa))}})))):cu.map(function(Jt,_n){var Gn;return Ne.createElement(Se.Z,{span:24,key:_n},Ne.createElement(pe.Z,{style:{display:"flex",alignItems:"center",marginTop:"10px"}},Ne.createElement("div",{style:{width:"85px",marginLeft:"27px",textAlign:"right"}},"\u8865\u4EA4\u89C4\u5219",_n+1),Ne.createElement(ke.default,{disabled:ln||!((Gn=St==null?void 0:St.homework_status)!=null&&Gn.includes("\u672A\u53D1\u5E03"))&&Jt.id||(vt==null?void 0:vt.anonymous_comment),mode:"multiple",className:ee.Z.multiple_select,style:{width:"212px",marginLeft:"18px"},value:typeof Jt.group_name=="string"?[Jt.group_name]:Jt.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:ua=>{var oa;if((0,oe.Rm)()&&!((oa=st.AssistantObject.practice)!=null&&oa.can_late)){he.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}cu[_n].group_name=ua,cu[_n].group_id=Jt.group_id,or(cu.slice())}},vt.group_settings&&vt.group_settings.map(function(ua){const oa=cu.map(hu=>hu.group_name).flat(),Ta=Da.map(hu=>hu.group_name).flat();if(Aa!=null&&Aa.unified_setting){if(!oa.includes(ua.group_name))return Ne.createElement(Je,{value:ua.group_name,key:ua.id},ua.group_name)}else if(Ta.includes(ua.group_name)&&!oa.includes(ua.group_name))return Ne.createElement(Je,{value:ua.group_name,key:ua.id},ua.group_name)})),Ne.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u6263\u5206"),Ne.createElement(ne.Z,{disabled:ln||ul(Jt.id),value:{type:Jt.penalty_type,inputValue:Jt.late_penalty},onChange:ua=>{var oa;if((0,oe.Rm)()&&!((oa=st.AssistantObject.practice)!=null&&oa.can_late)){he.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}cu[_n].late_penalty=ua.inputValue,cu[_n].penalty_type=ua.type,or([...cu])}}),Ne.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),Ne.createElement(Ce.default,{size:"large",disabled:ln||ul(Jt.id),style:{width:225},showTime:{format:"HH:mm",defaultValue:me()((0,b.U6)(),"HH:mm")},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",disabledDate:ua=>nt(ua,vt==null?void 0:vt.course_end_date),format:"YYYY-MM-DD HH:mm",value:Jt!=null&&Jt.late_time?me()(Jt.late_time):void 0,onChange:(ua,oa)=>{var Ta;if((0,oe.Rm)()&&!((Ta=st.AssistantObject.practice)!=null&&Ta.can_late)){he.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}cu[_n].late_time=oa,or([...cu])}}),!ln&&Ne.createElement("div",{style:{display:"flex",width:"50px"}},Ne.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var ua;if((0,oe.Rm)()&&!((ua=st.AssistantObject.practice)!=null&&ua.can_late)){he.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}or(cu.concat({penalty_type:ne.Q.Percent,late_penalty:20}))}}),_n>0&&!Jt.id&&Ne.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{var ua;if((0,oe.Rm)()&&!((ua=st.AssistantObject.practice)!=null&&ua.can_late)){he.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}cu=cu.filter((oa,Ta)=>_n!==Ta),or(cu.slice()),setTimeout(()=>or(cu.slice()),10)}}))))})),!ln&&Ne.createElement(Ne.Fragment,null,Ne.createElement(ze.ZP,{type:"primary",size:"large",loading:Ca,style:{width:"138px",marginTop:"30px"},onClick:()=>Za()},"\u4FDD\u5B58")),Ne.createElement(ye.Z,{onConfirm:(Jt,_n)=>{Da.splice(Jt,0,..._n),Da.splice(Jt+_n.length,1);const Gn=(0,b.QE)([...Da]);nr([...Gn])}}),Ne.createElement(fe.Z,{resdata:xn,type:"shixun",okloading:Ca,oktext:(xn==null?void 0:xn.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:Jt=>Bt(void 0,null,function*(){Cu(!0);let _n=yield(0,E.ZP)(`/api/courses/${sn.coursesId}/batch_copy_shixuns.json`,{method:"post",body:{type:"homework_common",ids:[parseInt(sn.categoryId)]}});Cu(!1),(_n==null?void 0:_n.status)===0&&qn(Er)})}))};rt.ZP=(0,te.connect)(({shixunHomeworks:Ct,classroomList:kt,loading:Mt,user:st})=>({shixunHomeworks:Ct,classroomList:kt,loading:Mt.effects,user:st}))(ot)},6151:function(Ft,rt,z){"use strict";var a=z(67294),Ce=z(35059),ke=z(91773),he=z(62844),Fe=z(2453),xe=z(57399),pe=z(35973),Se=z(11320),Ae=z(67795),Ie=z(33170),ze=z(94699),Me=z.n(ze),me=z(28706),oe=z(67294),E=Object.defineProperty,y=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,ee=(fe,ve,Ne)=>ve in fe?E(fe,ve,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):fe[ve]=Ne,te=(fe,ve)=>{for(var Ne in ve||(ve={}))x.call(ve,Ne)&&ee(fe,Ne,ve[Ne]);if(y)for(var Ne of y(ve))b.call(ve,Ne)&&ee(fe,Ne,ve[Ne]);return fe},ne=(fe,ve,Ne)=>new Promise((Le,Re)=>{var He=Ue=>{try{Ge(Ne.next(Ue))}catch(Ye){Re(Ye)}},We=Ue=>{try{Ge(Ne.throw(Ue))}catch(Ye){Re(Ye)}},Ge=Ue=>Ue.done?Le(Ue.value):Promise.resolve(Ue.value).then(He,We);Ge((Ne=Ne.apply(fe,ve)).next())});const{Dragger:de}=Ce.default,ye=({classroomList:fe,dispatch:ve,onOk:Ne})=>{const Le=(0,pe.useParams)(),[Re]=ke.default.useForm(),[He,We]=(0,a.useState)(),[Ge,Ue]=(0,a.useState)(!1),Ye={height:100,onRemove:()=>{We("")},accept:".xls,.xlsx",multiple:!1,maxCount:1,beforeUpload:it=>ne(void 0,null,function*(){return We(it),!1})};return(0,a.useEffect)(()=>{Re.setFieldsValue({publish_time:Me()(Me()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:Me()(Me()(new Date((0,me.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))})},[]),oe.createElement(he.default,{centered:!0,title:"\u8865\u5145\u6210\u7EE9",open:fe.actionTabs.key==="\u8865\u5145\u6210\u7EE9",okText:"\u786E\u5B9A",width:750,destroyOnClose:!0,cancelText:"\u53D6\u6D88",okButtonProps:{loading:Ge},onOk:()=>ne(void 0,null,function*(){Re.submit()}),onCancel:()=>{Re.resetFields(),ve({type:"classroomList/setActionTabs",payload:{}})}},oe.createElement(ke.default,{form:Re,onFinish:it=>ne(void 0,null,function*(){var lt,Bt,ct;if(!(He!=null&&He.size)){Fe.ZP.info("\u8BF7\u4E0A\u4F20\u6587\u4EF6");return}Ue(!0);let nt=new FormData;nt.append("type",fe.actionTabs.type),nt.append("file",He);let Ze;window.location.href.indexOf("exercise")>-1?Ze=`/api/exercises/${fe.actionTabs.id}/supplement_score.json`:Ze=`/api/homework_commons/${fe.actionTabs.id}/supplement_score.json`;let yt=yield(0,Ie.ZP)(Ze,{method:"post",body:nt},!0);Ue(!1),(yt==null?void 0:yt.status)===0&&(Ne(),Re.resetFields(),ve({type:"classroomList/setActionTabs",payload:{}}),((Bt=(lt=yt==null?void 0:yt.data)==null?void 0:lt.fail)==null?void 0:Bt.length)>0&&he.default.confirm({title:"\u5BFC\u5165\u5931\u8D25",closable:!0,icon:null,width:610,content:oe.createElement(xe.default,{pagination:!1,dataSource:(ct=yt==null?void 0:yt.data)==null?void 0:ct.fail,scroll:{y:400},columns:[{title:"\u59D3\u540D",align:"left",dataIndex:"name"},{title:"\u5B66\u53F7/\u624B\u673A\u53F7/\u90AE\u7BB1",align:"left",dataIndex:"student_id"},{title:"\u5BFC\u5165\u5931\u8D25\u539F\u56E0",align:"left",dataIndex:"message"}]}),okText:"\u4E0B\u8F7D\u5BFC\u5165\u5931\u8D25\u6587\u4EF6",cancelText:"\u53D6\u6D88",onOk:()=>{(0,me.FH)("",Se.Z.API_SERVER+`/api/courses/get_external_score_fail_data.xlsx?type=${fe.actionTabs.type}`)}}))})},oe.createElement(ke.default.Item,{label:"\u4F5C\u4E1A\u540D\u79F0",labelCol:{span:3},name:"name"},fe.actionTabs.name),oe.createElement(ke.default.Item,{style:{marginBottom:0},label:oe.createElement("div",null,oe.createElement("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"}},"*"),oe.createElement("span",null,"\u5BFC\u5165\u6587\u4EF6")),labelCol:{span:3},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u540D\u79F0"}]},oe.createElement("div",null,oe.createElement("a",{download:"\u6A21\u7248.xlsx",className:Ae.Z.downloadbutton,href:Se.Z.API_SERVER+`/api/courses/down_external_score_template.json?type=${fe.actionTabs.type}`},"\u4E0B\u8F7D\u6A21\u7248\u8868\u683C"),oe.createElement("span",{style:{marginLeft:10,color:"#999999"}},"\uFF08\u6839\u636E\u63D0\u793A\u4FE1\u606F\u5B8C\u5584\u8868\u683C\u5185\u5BB9\uFF09")),oe.createElement(ke.default.Item,{style:{marginBottom:0}},oe.createElement(de,te({},Ye),oe.createElement("a",{className:Ae.Z.downloadbutton,style:{width:96}},"\u9009\u62E9\u6587\u4EF6"),oe.createElement("br",null),oe.createElement("span",{style:{color:"#999999"}},"\u4E0B\u8F7D\u6A21\u677F\u5E76\u5B8C\u5584\u4FE1\u606F\u540E\uFF0C\u53EF\u5C06\u6587\u4EF6\u62D6\u66F3\u81F3\u6B64\u5904\u4E0A\u4F20\u3002\u652F\u6301\u683C\u5F0F\uFF1A.xls\u3001.xlsx"))))))};rt.Z=(0,pe.connect)(({classroomList:fe})=>({classroomList:fe}))(ye)},44694:function(Ft,rt,z){"use strict";var a=z(67294),Ce=z(35059),ke=z(91773),he=z(55238),Fe=z(57399),xe=z(14845),pe=z(35973),Se=z(33170),Ae=z(94699),Ie=z.n(Ae),ze=z(67294),Me=(E,y,x)=>new Promise((b,ee)=>{var te=ye=>{try{de(x.next(ye))}catch(fe){ee(fe)}},ne=ye=>{try{de(x.throw(ye))}catch(fe){ee(fe)}},de=ye=>ye.done?b(ye.value):Promise.resolve(ye.value).then(te,ne);de((x=x.apply(E,y)).next())});const{Dragger:me}=Ce.default,oe=({})=>{const E=(0,pe.useParams)(),[y]=ke.default.useForm(),[x,b]=(0,a.useState)(!0),[ee,te]=(0,a.useState)(!1);let[ne,de]=(0,a.useState)({type:window.location.href.indexOf("program_homework")>-1?2:1,limit:10,page:1});const ye=[{name:"\u5168\u90E8",value:"",question_type:0},{name:"\u5355\u9009\u9898",value:"SINGLE",question_type:0},{name:"\u591A\u9009\u9898",value:"MULTIPLE",question_type:1},{name:"\u5224\u65AD\u9898",value:"JUDGMENT",question_type:2},{name:"\u586B\u7A7A\u9898",value:"COMPLETION",question_type:3},{name:"\u7B80\u7B54\u9898",value:"SUBJECTIVE",question_type:4},{name:"\u5B9E\u8BAD\u9898",value:"SHIXUN",question_type:5},{name:"\u7F16\u7A0B\u9898",value:"PROGRAM",question_type:6},{name:"\u7EC4\u5408\u9898",value:"COMBINATION",question_type:7},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",value:"BPROGRAM",question_type:8}];function fe(){return Me(this,null,function*(){let Ne;te(!0),window.location.href.indexOf("exercise")>-1?Ne=`/api/exercises/${E==null?void 0:E.categoryId}/redo_logs.json`:Ne=`/api/homework_commons/${E==null?void 0:E.categoryId}/redo_logs.json`;let Le=yield(0,Se.ZP)(Ne,{method:"get",params:ne});te(!1),(Le==null?void 0:Le.status)===0&&b(Le==null?void 0:Le.data)})}(0,a.useEffect)(()=>{fe()},[]);let ve=[{title:"\u59D3\u540D",dataIndex:"user_name"},{title:"\u5B66\u53F7",dataIndex:"student_id"},{title:"\u73ED\u7EA7",dataIndex:"course_group_name"},window.location.href.indexOf("exercise")>-1&&{title:"\u9898\u578B",dataIndex:"question_type",render:(Ne,Le,Re)=>{var He;return(He=ye.find(We=>We.question_type===Ne))==null?void 0:He.name}},window.location.href.indexOf("exercise")>-1&&{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"question_name"},window.location.href.indexOf("exercise")>-1&&{title:"\u5173\u5361\u540D\u79F0",dataIndex:"challenge_name"},window.location.href.indexOf("exercise")<=-1&&{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"task_name",width:"40%"},{title:"\u64CD\u4F5C",dataIndex:"redo_type",render:(Ne,Le,Re)=>{var He;return(He=[{id:1,name:"\u6253\u56DE\u91CD\u505A"},{id:2,name:"\u6062\u590D\u521D\u59CB\u4EE3\u7801"},{id:3,name:"\u91CD\u7F6E\u4EE3\u7801\u4ED3\u5E93"}].find(We=>We.id===Ne))==null?void 0:He.name}},{title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801\u65F6\u95F4",dataIndex:"created_at",render:(Ne,Le,Re)=>Ie()(Ne).format("YYYY-MM-DD HH:mm:ss")}].filter(Ne=>!!Ne);return ze.createElement("div",{style:{padding:"0px 30px",background:"#fff",paddingBottom:30}},ze.createElement(he.default,{destroyInactiveTabPane:!0,onChange:Ne=>{ne.type=Ne,ne.page=1,ne.limit=10,de(ne),fe()},items:[window.location.href.indexOf("program_homework")<=-1&&{key:"1",label:"\u6253\u56DE\u91CD\u505A",children:ze.createElement(Fe.default,{className:"mt20",loading:ee,columns:[{title:"\u59D3\u540D",dataIndex:"user_name"},{title:"\u5B66\u53F7",dataIndex:"student_id"},{title:"\u73ED\u7EA7",dataIndex:"course_group_name"},{title:"\u6253\u56DE\u91CD\u505A\u65F6\u95F4",dataIndex:"created_at",render:(Ne,Le,Re)=>Ie()(Ne).format("YYYY-MM-DD HH:mm:ss")},{title:"\u64CD\u4F5C\u4EBA",dataIndex:"operator"}],dataSource:x==null?void 0:x.list,pagination:!1})},{key:"2",label:"\u91CD\u7F6E\u4EE3\u7801",children:ze.createElement(Fe.default,{className:"mt20",loading:ee,columns:ve,dataSource:x==null?void 0:x.list,pagination:!1})}].filter(Ne=>!!Ne)}),ze.createElement(xe.Z,{hideOnSinglePage:!0,showSizeChanger:!1,onChange:(Ne,Le)=>{ne.page=Ne,ne.limit=Le,de(ne),fe()},current:ne.page,total:x.count,pageSize:ne.limit,style:{marginTop:20}}))};rt.Z=(0,pe.connect)(({classroomList:E})=>({classroomList:E}))(oe)},58387:function(Ft,rt,z){"use strict";var a=z(67294),Ce=z(35059),ke=z(91773),he=z(62844),Fe=z(37720),xe=z(35973),pe=z(33170),Se=z(94699),Ae=z.n(Se),Ie=z(28706),ze=z(67294),Me=Object.defineProperty,me=Object.defineProperties,oe=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,b=(fe,ve,Ne)=>ve in fe?Me(fe,ve,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):fe[ve]=Ne,ee=(fe,ve)=>{for(var Ne in ve||(ve={}))y.call(ve,Ne)&&b(fe,Ne,ve[Ne]);if(E)for(var Ne of E(ve))x.call(ve,Ne)&&b(fe,Ne,ve[Ne]);return fe},te=(fe,ve)=>me(fe,oe(ve)),ne=(fe,ve,Ne)=>new Promise((Le,Re)=>{var He=Ue=>{try{Ge(Ne.next(Ue))}catch(Ye){Re(Ye)}},We=Ue=>{try{Ge(Ne.throw(Ue))}catch(Ye){Re(Ye)}},Ge=Ue=>Ue.done?Le(Ue.value):Promise.resolve(Ue.value).then(He,We);Ge((Ne=Ne.apply(fe,ve)).next())});const{Dragger:de}=Ce.default,ye=({classroomList:fe,dispatch:ve,onOk:Ne})=>{const Le=(0,xe.useParams)(),[Re]=ke.default.useForm(),[He,We]=(0,a.useState)(),[Ge,Ue]=(0,a.useState)(!1),Ye={height:100,onRemove:()=>{We("")},accept:".xls,.xlsx",multiple:!1,beforeUpload:it=>ne(void 0,null,function*(){return We(it),!1})};return(0,a.useEffect)(()=>{Re.setFieldsValue({publish_time:Ae()(Ae()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:Ae()(Ae()(new Date((0,Ie.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))})},[]),ze.createElement(he.default,{centered:!0,title:"\u4FEE\u6539\u6210\u7EE9",open:fe.actionTabs.key==="\u4FEE\u6539\u6210\u7EE9",okText:"\u786E\u5B9A",width:600,cancelText:"\u53D6\u6D88",okButtonProps:{loading:Ge},onOk:()=>ne(void 0,null,function*(){Re.submit()}),onCancel:()=>{Re.resetFields(),ve({type:"classroomList/setActionTabs",payload:{}})}},ze.createElement(ke.default,{form:Re,onFinish:it=>ne(void 0,null,function*(){var lt,Bt;console.log("---",fe.actionTabs,it,Le);let ct=((lt=fe==null?void 0:fe.actionTabs)==null?void 0:lt.type)==="exercise"?`/api/exercises/${Le==null?void 0:Le.category}/exercise_user/edit_score.json`:`/api/student_works/${fe.actionTabs.id}/edit_score.json`;Ue(!0);let nt=yield(0,pe.ZP)(ct,{method:"post",body:te(ee({},it),{exercise_user_id:((Bt=fe==null?void 0:fe.actionTabs)==null?void 0:Bt.type)==="exercise"?fe.actionTabs.id:""})});Ue(!1),Re.resetFields(),ve({type:"classroomList/setActionTabs",payload:{}}),Ne()})},ze.createElement(ke.default.Item,{label:"\u6700\u7EC8\u6210\u7EE9",style:{marginBottom:0},name:"score",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6700\u7EC8\u6210\u7EE9"}]},ze.createElement(Fe.Z,{min:0,style:{width:"100%"}}))))};rt.Z=(0,xe.connect)(({classroomList:fe})=>({classroomList:fe}))(ye)},17755:function(Ft,rt,z){"use strict";var a=z(67294),Ce=z(35059),ke=z(91773),he=z(85804),Fe=z(71230),xe=z(78957),pe=z(18046),Se=z(35973),Ae=z(94699),Ie=z.n(Ae),ze=z(17998),Me=z(33170),me=z(67294),oe=(x,b,ee)=>new Promise((te,ne)=>{var de=ve=>{try{fe(ee.next(ve))}catch(Ne){ne(Ne)}},ye=ve=>{try{fe(ee.throw(ve))}catch(Ne){ne(Ne)}},fe=ve=>ve.done?te(ve.value):Promise.resolve(ve.value).then(de,ye);fe((ee=ee.apply(x,b)).next())});const{Dragger:E}=Ce.default,y=({})=>{const x=(0,Se.useParams)(),[b]=ke.default.useForm(),[ee,te]=(0,a.useState)(!0),[ne,de]=(0,a.useState)(!1);console.log("----",x);function ye(){return oe(this,null,function*(){var fe,ve;let Ne;window.location.href.indexOf("exercise")>-1?Ne=`/api/exercises/${x==null?void 0:x.categoryId}/get_time_setting.json`:Ne=`/api/homework_commons/${x==null?void 0:x.categoryId}/get_time_setting.json`;let Le=yield(0,Me.ZP)(Ne,{method:"get"});(Le==null?void 0:Le.status)===0&&b.setFieldsValue({publish_time:Ie()(Ie()((fe=Le==null?void 0:Le.data)==null?void 0:fe.publish_time).format("YYYY-MM-DD HH:mm")),end_time:Ie()(Ie()((ve=Le==null?void 0:Le.data)==null?void 0:ve.end_time).format("YYYY-MM-DD HH:mm"))})})}return(0,a.useEffect)(()=>{ye()},[]),me.createElement("div",{style:{padding:"50px 30px",background:"#fff"}},me.createElement("div",{style:{textAlign:"end"}},ee&&me.createElement(he.ZP,{onClick:()=>{te(!1)}},"\u7F16\u8F91\u8BBE\u7F6E"),!ee&&me.createElement("div",null,me.createElement(he.ZP,{type:"primary",loading:ne,onClick:()=>{b.submit()}},"\u63D0\u4EA4"),me.createElement(he.ZP,{style:{marginLeft:20},onClick:()=>{te(!0)}},"\u53D6\u6D88"))),me.createElement(ke.default,{form:b,disabled:ee,onFinish:fe=>oe(void 0,null,function*(){de(!0),console.log("---",window.location.href);let ve;window.location.href.indexOf("exercise")>-1?ve=`/api/exercises/${x==null?void 0:x.categoryId}/time_setting.json`:ve=`/api/homework_commons/${x==null?void 0:x.categoryId}/time_setting.json`;let Ne=yield(0,Me.ZP)(ve,{method:"post",body:{publish_time:Ie()(fe.publish_time).format("YYYY-MM-DD HH:mm"),end_time:Ie()(fe.end_time).format("YYYY-MM-DD HH:mm")}});de(!1),(Ne==null?void 0:Ne.status)===0&&te(!0)})},me.createElement(Fe.Z,null,me.createElement(xe.Z,null,me.createElement(ke.default.Item,{label:"\u5F00\u59CB\u65F6\u95F4",name:"publish_time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4"}]},me.createElement(pe.default,{placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},style:{width:260},size:"large",disabledDate:fe=>(0,ze.Q8)(fe),disabledTime:fe=>(0,ze.d0)(fe),allowClear:!1,format:"YYYY-MM-DD HH:mm"})),me.createElement("span",{style:{color:"#999999",fontSize:"14px",height:40,marginBottom:8,display:"block"}},"\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u7684\u65F6\u95F4\uFF09"))),me.createElement(Fe.Z,null,me.createElement(xe.Z,null,me.createElement(ke.default.Item,{label:"\u7ED3\u675F\u65F6\u95F4",name:"end_time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4"}]},me.createElement(pe.default,{placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},style:{width:260},size:"large",disabledDate:fe=>(0,ze.Q8)(fe,"",b.getFieldValue("publish_time")),disabledTime:fe=>(0,ze.d0)(fe,b.getFieldValue("publish_time")),allowClear:!1,format:"YYYY-MM-DD HH:mm"})),me.createElement("span",{style:{color:"#999999",fontSize:"14px",height:40,marginBottom:8,display:"block"}},"\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u7684\u65F6\u95F4\u622A\u70B9\uFF09")))))};rt.Z=(0,Se.connect)(({classroomList:x})=>({classroomList:x}))(y)},92882:function(Ft,rt,z){"use strict";z.d(rt,{Z:function(){return x}});var a=z(67294),Ce=z(35973),ke=z(18046),he=z(62844),Fe=z(28802),xe=z(2453),pe=z(71230),Se=z(15746),Ae={title_tooltip:"title_tooltip___LLdrn",multiple_select:"multiple_select___kDXUm",modal_con:"modal_con___ERnkW"},Ie=z(94699),ze=z.n(Ie),Me=z(28706),me=z(26194),oe=z(67294);const{RangePicker:E}=ke.default,y=({dispatch:b,classroomList:ee,onConfirm:te})=>{const[ne,de]=(0,a.useState)([]),[ye,fe]=(0,a.useState)([]),[ve,Ne]=(0,a.useState)(""),[Le,Re]=(0,a.useState)([!1,!1]);(0,a.useEffect)(()=>{var Ge,Ue,Ye,it;if(ee.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206"){console.log((Ge=ee.actionTabs)==null?void 0:Ge.rangePickerDisabled),(Ue=ee.actionTabs)!=null&&Ue.rangePickerDisabled?Re((Ye=ee.actionTabs)==null?void 0:Ye.rangePickerDisabled):Re([!1,!1]);let lt=ee.actionTabs.data,Bt=(it=lt==null?void 0:lt.group_name)==null?void 0:it.map((ct,nt)=>{var Ze;return{group_id:lt==null?void 0:lt.group_id[nt],group_name:lt==null?void 0:lt.group_name[nt],is_admin:lt==null?void 0:lt.is_admin,end_time:lt==null?void 0:lt.end_time,publish_time:Array.isArray(lt==null?void 0:lt.publish_time)?(Ze=lt==null?void 0:lt.publish_time)==null?void 0:Ze[0]:lt==null?void 0:lt.publish_time}});Bt&&(de([...Bt]),fe([...Bt]))}},[ee.actionTabs]);const He=()=>{b({type:"classroomList/setActionTabs",payload:{}}),Ne("")},We=Ge=>{if(Ge){const Ue=ye==null?void 0:ye.filter(Ye=>{var it,lt;return(lt=(it=Ye==null?void 0:Ye.group_name)==null?void 0:it.toLowerCase())==null?void 0:lt.includes(Ge==null?void 0:Ge.toLowerCase())});de(Ue)}else de(ye)};return oe.createElement(he.default,{width:980,title:oe.createElement("div",{style:{fontWeight:"bold",display:"flex"}},oe.createElement("div",null,"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",oe.createElement("span",{className:Ae.title_tooltip},"\uFF08\u5F53\u5206\u73ED\u53D1\u5E03\u65F6\u95F4\u548C\u622A\u6B62\u65F6\u95F4\u4E0D\u76F8\u540C\u65F6\u5019\uFF0C\u73ED\u7EA7\u81EA\u52A8\u62C6\u5206\u51FA\u53BB\u65B0\u8D77\u89C4\u5219\uFF09")),oe.createElement(Fe.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",style:{width:220,marginLeft:"60px"},value:ve,onChange:Ge=>{Ne(Ge.target.value.trim()),We(Ge.target.value.trim())}})),centered:!0,maskClosable:!1,open:ee.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",onCancel:()=>He(),onOk:()=>{var Ge;if(ye.some(Ye=>!Ye.end_time||!Ye.publish_time)){xe.ZP.warning("\u8BF7\u5C06\u5217\u8868\u6570\u636E\u4E2D\u7684\u53D1\u5E03\u65F6\u95F4\u548C\u622A\u6B62\u65F6\u95F4\u8865\u5145\u5B8C\u6574\uFF01");return}te((Ge=ee.actionTabs)==null?void 0:Ge.index,ye),He()}},oe.createElement("div",{className:Ae.modal_con},oe.createElement(pe.Z,{style:{display:"flex",color:"#666666",padding:"5px",marginTop:"1px"}},(ne==null?void 0:ne.length)>0?ne.map(function(Ge,Ue){return oe.createElement(Se.Z,{span:24,key:Ue},oe.createElement(pe.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:Ue==(ne==null?void 0:ne.length)-1?"0px":"10px"}},oe.createElement("div",{className:Ae.multiple_select,title:Ge==null?void 0:Ge.group_name},Ge==null?void 0:Ge.group_name),oe.createElement("div",{className:"ml20"},oe.createElement(E,{size:"large",allowClear:!1,disabled:Le,style:{width:600},placeholder:["\u53D1\u5E03\u65F6\u95F4\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4\uFF09","\u622A\u6B62\u65F6\u95F4\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9\uFF09"],disabledDate:Ye=>{var it;return(0,Me.Q8)(Ye,(it=ee.actionTabs)==null?void 0:it.disabledDate)},disabledTime:Ye=>(0,Me.d0)(Ye),showTime:{showNow:!0,format:"HH:mm",defaultValue:[ze()((0,Me.U6)(),"HH:mm"),ze()((0,Me.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:(Ge==null?void 0:Ge.publish_time)&&[ze()(Ge==null?void 0:Ge.publish_time),Ge!=null&&Ge.end_time?ze()(Ge==null?void 0:Ge.end_time):void 0],onChange:(Ye,it)=>{ne[Ue].publish_time=it[0],ne[Ue].end_time=it[1],de([...ne]),ye.forEach(lt=>{lt.group_id===(Ge==null?void 0:Ge.group_id)&&(lt.publish_time=it[0],lt.end_time=it[1])}),fe([...ye])},onCalendarChange:(Ye,it,lt)=>{if(it!=null&&it[0]&&!it[1]){const Bt=ze()(it[0]).add(7,"days");ne[Ue].publish_time=it[0],ne[Ue].end_time=Bt,de([...ne]),ye.forEach(ct=>{ct.group_id===(Ge==null?void 0:Ge.group_id)&&(ct.publish_time=it[0],ct.end_time=Bt)}),fe([...ye])}}})),Le[0]?oe.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{color:"#E30000",opacity:"0.2",cursor:"not-allowed"}}):oe.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{ne.splice(Ue,1),de([...ne]),ye.forEach((Ye,it)=>{Ye.group_id===(Ge==null?void 0:Ge.group_id)&&ye.splice(it,1)}),fe([...ye])}})))}):oe.createElement(me.Z,null))))};var x=(0,Ce.connect)(({classroomList:b})=>({classroomList:b}))(y)},38365:function(Ft,rt,z){"use strict";z.d(rt,{Z:function(){return E}});var a=z(67294),Ce=z(35973),ke=z(62844),he=z(85804),Fe=z(74330),xe=z(88742),pe=z(72971),Se=z(36295),Ae=z(19575),Ie=z(94699),ze=z.n(Ie),Me=z(94189),me=z(67294),oe=(y,x,b)=>new Promise((ee,te)=>{var ne=fe=>{try{ye(b.next(fe))}catch(ve){te(ve)}},de=fe=>{try{ye(b.throw(fe))}catch(ve){te(ve)}},ye=fe=>fe.done?ee(fe.value):Promise.resolve(fe.value).then(ne,de);ye((b=b.apply(y,x)).next())}),E=({open:y,onClose:x})=>{const[b,ee]=(0,a.useState)(void 0);console.log((0,Ce.useLocation)(),33);const te=(0,Ce.useLocation)();(0,a.useEffect)(()=>{y&&function(){return oe(this,null,function*(){const yt=yield(0,xe.X6)(y);ee(yt.data)})}()},[y]);const{status:ne,created_at:de,code:ye,name:fe,language:ve,pass_sets_count:Ne,set_count:Le,error_msg:Re,output:He,input:We,expected_output:Ge,execute_memory:Ue,user:Ye,execute_time:it,input_file_url:lt,output_file_url:Bt,is_file:ct,expected_output_file_url:nt}=b||{};return me.createElement(ke.default,{open:y,width:1e3,onCancel:()=>x(!1),footer:me.createElement(he.ZP,{type:"primary",onClick:()=>x(!1)},"\u5173\u95ED"),centered:!0},me.createElement(Fe.Z,{spinning:!b,delay:500},me.createElement("div",{className:"record-detail-info"},b?me.createElement(me.Fragment,null,me.createElement("div",{className:"record-detail-body"},me.createElement("h2",null," \u63D0\u4EA4\u8BB0\u5F55 "),me.createElement("ul",{className:"record-info"},me.createElement("li",null," \u8BC4\u6D4B\u7ED3\u679C\uFF1A",me.createElement("span",{className:ne===0?"c-green":"c-red"},pe.Im[ne])," "),me.createElement("li",null," \u63D0\u4EA4\u65F6\u95F4\uFF1A",me.createElement("span",null,ze()(de).format("YYYY-MM-DD HH:mm:ss"))," "),me.createElement("li",null," \u8BED\u8A00\uFF1A",me.createElement("span",null,ve)," "),me.createElement("li",null," \u6267\u884C\u7528\u65F6\uFF1A",me.createElement("span",null,it*1e3,"ms")," "),me.createElement("li",null," ",`${ne===Me.h.HIDE_COMPILE_STATUS?"--":Ne} / ${Le} \u4E2A\u901A\u8FC7\u7684\u6D4B\u8BD5\u7528\u4F8B`," ")),(0,pe.gZ)({status:ne,error_msg:Re,execute_time:it,output:He,input:We,expected_output:Ge,input_file_url:lt,output_file_url:Bt,is_file:ct,expected_output_file_url:nt}),me.createElement("h2",null," \u63D0\u4EA4\u7684\u5185\u5BB9 "),me.createElement(Se.ZP,{height:"200px",width:"100%",language:ve==null?void 0:ve.toLocaleLowerCase(),value:Ae.Base64.decode(ye),options:{readOnly:!0}}))):null)))}},86276:function(Ft,rt,z){"use strict";z.d(rt,{Im:function(){return Le},Y4:function(){return He}});var a=z(67294),Ce=z(28802),ke=z(2453),he=z(85804),Fe=z(96707),xe=z(19575),pe=z.n(xe),Se=z(11579),Ae=z(7621),Ie=z(65226),ze=z(28706),Me=z(12320),me=z.n(Me),oe=z(33170),E=z(35973),y=z(38365),x=z(33054),b=z(88742),ee=z(30546),te=z(20819),ne=z(94184),de=z.n(ne),ye=z(51959),fe=z(67294),ve=(Ue,Ye,it)=>new Promise((lt,Bt)=>{var ct=yt=>{try{Ze(it.next(yt))}catch(ht){Bt(ht)}},nt=yt=>{try{Ze(it.throw(yt))}catch(ht){Bt(ht)}},Ze=yt=>yt.done?lt(yt.value):Promise.resolve(yt.value).then(ct,nt);Ze((it=it.apply(Ue,Ye)).next())});const{TextArea:Ne}=Ce.default,Le={[Fe.h.HIDE_COMPILE_STATUS]:"\u6682\u4E0D\u652F\u6301\u67E5\u770B",[Fe.h.NOMATCH]:"\u6D4B\u8BD5\u7528\u4F8B\u7ED3\u679C\u4E0D\u5339\u914D",[Fe.h.OK]:"\u8C03\u8BD5\u901A\u8FC7",2:"\u8C03\u8BD5\u8D85\u65F6",3:"\u8C03\u8BD5pod\u5931\u8D25",4:"\u7F16\u8BD1\u5931\u8D25",5:"\u6267\u884C\u5931\u8D25"};var Re=(Ue=>(Ue[Ue.SET_VISIBLE=0]="SET_VISIBLE",Ue[Ue.SET_TABINDEX=1]="SET_TABINDEX",Ue))(Re||{});function He(Ue){const{status:Ye,error_msg:it,output:lt,input:Bt,expected_output:ct,is_file:nt,input_file_url:Ze,output_file_url:yt,expected_output_file_url:ht,setMonacoValue:Je,setData:ot,highlightEndEntry:Ct}=Ue,kt=(0,a.useRef)(),Mt=(0,a.useRef)(),st=(0,a.useRef)();let ut=null;const un={minHeight:150,marginBottom:10,paddingLeft:24,background:"#070f19",color:"#fff"};switch((0,a.useEffect)(()=>{if(lt&&!nt&&kt.current){const Pn=new Me.Terminal({fontSize:14,letterSpacing:1,cols:83,rows:10});Pn.open(kt.current);const Rn=(Ct?ze.jl:ze.pp)(xe.Base64.decode(lt));Pn.write(Rn),Pn.setOption("theme",{background:"#1e1e1e"})}if(Bt&&!nt&&Mt.current){const Pn=new Me.Terminal({fontSize:14,letterSpacing:1,cols:83,rows:10});Pn.open(Mt.current),Pn.write((Ct?ze.jl:ze.pp)(Bt)),Pn.setOption("theme",{background:"#1e1e1e"})}if(ct&&!nt&&st.current){const Pn=new Me.Terminal({fontSize:14,letterSpacing:1,cols:83,rows:10});Pn.open(st.current),Pn.write((Ct?ze.jl:ze.pp)(xe.Base64.decode(ct))),Pn.setOption("theme",{background:"#1e1e1e"})}},[lt]),Ye){case Fe.h.NOMATCH:ut=fe.createElement(fe.Fragment,null,fe.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u51FA\uFF1A"),!nt&&fe.createElement("div",{ref:kt}),nt&&fe.createElement("div",{style:un},fe.createElement("a",{style:{fontSize:"16px"},onClick:()=>ve(this,null,function*(){const Pn=yield(0,oe.ZP)(yt,{method:"Get",headers:{"Content-Type":"application/xml",Accept:"*/*"}});Je(Pn),setTimeout(()=>{ot(yt)},200)})},lt)),fe.createElement("p",{className:"c-red"},"\u9884\u671F\u8F93\u51FA\uFF1A"),!nt&&fe.createElement("div",{ref:st}),nt&&fe.createElement("div",{style:un},fe.createElement("a",{style:{fontSize:"16px"},onClick:()=>ve(this,null,function*(){const Pn=yield fetch(ht,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}});Je(yield Pn.text()),setTimeout(()=>{ot(ht)},200)})},ct)));break;case Fe.h.EXECUTEFAILURE:ut=fe.createElement(fe.Fragment,null,fe.createElement("div",{style:{border:"1px #F6F7F9 solid"}},fe.createElement("p",{style:{width:"100%",height:40,background:"#F6F7F9",lineHeight:"40px",color:"#666666",paddingLeft:"12px"}},"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!nt&&fe.createElement(Ie.Z,{value:Bt,style:un}),nt&&fe.createElement("div",{style:un},fe.createElement("a",{onClick:()=>(0,ze.LR)(Ze,Bt)},Bt))),fe.createElement("div",{style:{border:"1px #F6F7F9 solid",marginTop:"10px"}},fe.createElement("p",{style:{width:"100%",height:40,background:"#F6F7F9",lineHeight:"40px",color:"#666666",paddingLeft:"12px"}},"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),fe.createElement("pre",{className:Se.Z.error,style:{color:"#E30000",padding:"0 10px"}},xe.Base64.decode(it),"111")));break;case Fe.h.COMPILEFAILURE:ut=fe.createElement(fe.Fragment,null,fe.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),fe.createElement("pre",{className:Se.Z.error},xe.Base64.decode(it)));break;case Fe.h.PODFAILURE:ut=fe.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case Fe.h.TIMEOUT:ut=fe.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return fe.createElement(fe.Fragment,null," ",ut," ")}function We(Ue){const{status:Ye,error_msg:it,execute_time:lt,output:Bt,input:ct,expected_output:nt,is_file:Ze,input_file_url:yt,output_file_url:ht,expected_output_file_url:Je}=Ue;let ot=null;switch(Ye){case Fe.h.OK:case Fe.h.NOMATCH:case Fe.h.EXECUTEFAILURE:case Fe.h.COMPILEFAILURE:ot=fe.createElement("div",{id:"outputResultRef",className:"h100"});break;case Fe.h.PODFAILURE:ot=fe.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case Fe.h.TIMEOUT:ot=fe.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return fe.createElement(fe.Fragment,null," ",ot," ")}function Ge({value:Ue,className:Ye}){return fe.createElement("span",{className:Ye},Ue)}rt.ZP=({input:Ue,is_file:Ye,debuging:it,submitting:lt,executingMessage:Bt,debugResult:ct,onChangeInput:nt,onDebugCode:Ze,onSubmitCode:yt,hack:ht,user:Je,submitResult:ot,isWhiteTheme:Ct,topDispatch:kt})=>{const[Mt]=(0,E.useSearchParams)(),st=(0,E.useParams)(),[ut,un]=(0,a.useState)(!1),[Pn,Rn]=(0,a.useState)(!1),[bt,An]=(0,a.useState)(1),[Nn,Qt]=(0,a.useState)(!1),[zt,jt]=(0,a.useState)(0),[sn,vt]=(0,a.useState)(!1),[Tt,qt]=(0,a.useState)(""),[St,Ke]=(0,a.useState)(""),ln=(0,a.useRef)(),Un=(0,a.useRef)(),Ca=(0,a.useRef)(null),Cu=(0,a.useRef)(null),Da=(0,a.useRef)(null);console.log(ot,"submitResult",st);const{status:nr,id:cu,input:or,output:Aa,expected_output:Zt,is_file:xn,input_file_url:vl,output_file_url:Er,expected_output_file_url:er,error_msg:Pa,hack_sets:Za}=ot||{};(0,a.useEffect)(()=>{nr===0&&(An(1),jt(0))},[nr,cu]),(0,a.useEffect)(()=>{ve(void 0,null,function*(){var _n;const Gn=yield(0,b.rX)(st==null?void 0:st.id,"submit");(Gn==null?void 0:Gn.status)===0&&(Gn!=null&&Gn.data&&((_n=Gn==null?void 0:Gn.data)==null?void 0:_n.status)!==0?(kt({type:ee.Types.SET_SUBMIT_RESULT,payload:{submitResult:Gn==null?void 0:Gn.data}}),An(2),jt(320)):(An(1),jt(0)))})},[st==null?void 0:st.id]),(0,a.useEffect)(()=>{if(ln.current){let Jt=function(re){oa=ua.offsetHeight,Ta=!0,hu=re.pageY,Da.current.style.display="block"},_n=function(){Ta=!1,Da.current.style.display="none"},Gn=function(re){if(Ta){qn();let ge=hu-re.pageY,De=oa+ge;if(De<0&&(De=0),De>window.innerHeight-150&&(De=window.innerHeight-150),bt===1){De<=34?jt(0):jt(De);return}console.log(De,"resizeH"),jt(De)}};const ua=Ca.current;let oa=0,Ta=!1,hu=0;const ft=document.getElementById("case-y-bar");return ft==null||ft.addEventListener("mousedown",Jt),document.addEventListener("mousemove",Gn),document.addEventListener("mouseup",_n),()=>{const re=document.getElementById("case-y-bar");re==null||re.removeEventListener("mousedown",Jt),document.removeEventListener("mousemove",Gn),document.removeEventListener("mouseup",_n)}}},[ln,bt]),(0,a.useEffect)(()=>{const Jt=x.Z.subscribe("resize-move-bar",qn);if(Mt.get("type")!=="exercises")return document.addEventListener((0,ye.gH)(),gu),()=>{document.removeEventListener((0,ye.gH)(),gu),Jt()}},[]),(0,a.useEffect)(()=>{});function qn(){var Jt,_n,Gn,ua;const oa=document.getElementById("outputResultRef");if(oa){let Ta=oa.dataset.text;Un.current.reset(),Un.current.writeln(Ta);const hu=document.getElementById("outputResultRef").offsetWidth-20,ft=((ua=(Gn=(_n=(Jt=Un.current)==null?void 0:Jt._core)==null?void 0:_n._renderService)==null?void 0:Gn.dimensions)==null?void 0:ua.actualCellWidth)||10,re=Math.ceil(hu/ft);Un.current.resize(re,Math.ceil(oa.clientHeight/16))}}function Vn(){un(!ut),setTimeout(()=>{qn()},300),ut?jt(320):(jt(window.innerHeight-150),Qt(!0))}function Qa(){Pn?(Rn(!1),(0,ye.BU)()):(Rn(!0),(0,ye.Dj)(Cu.current))}const gu=Jt=>{(0,ye.vp)()||Rn(!1)},_u=(0,a.useMemo)(()=>{if(ct){const{status:Jt,output:_n,error_msg:Gn}=ct;return setTimeout(()=>{let ua="",oa=document.getElementById("outputResultRef");_n?ua=xe.Base64.decode(_n):Gn&&(ua=xe.Base64.decode(Gn)),Un.current=new Me.Terminal({fontSize:14,theme:{background:"#181e2e",cursor:"transparent"},rendererType:"dom"}),Un.current.open(oa),Un.current.onKey(function(Ta){var hu;if(Ta.domEvent.key.toLocaleUpperCase()==="C"&&Ta.domEvent.ctrlKey){Ta.domEvent.preventDefault();let ft=(hu=Un.current)==null?void 0:hu.getSelection();navigator.clipboard.writeText(ft).then(()=>{})}}),oa.dataset.text=ua,Un.current.setOption("convertEol",!0),qn()},300),fe.createElement(fe.Fragment,null,We(ct))}return null},[ct]);function ir(){var Jt,_n;if(!(ht!=null&&ht.code)||((Jt=ht==null?void 0:ht.code)==null?void 0:Jt.trim().length)===0){(_n=ke.ZP)==null||_n.warning("\u4EE3\u7801\u4E0D\u80FD\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7F16\u5199\u4EE3\u7801\u540E\uFF0C\u518D\u8FDB\u884C\u8BC4\u6D4B\uFF01");return}An(1),jt(320),Ze()}const ul=Jt=>ve(void 0,null,function*(){let _n=yield(0,oe.ZP)(`/api/problems/${Jt}/start.json`,{method:"get",params:{hack_user_id:Je==null?void 0:Je.user_id}});_n&&(window.location.href=`/myproblems/${_n==null?void 0:_n.identifier}${window.location.search}`)});function On(){xn?navigator.clipboard.writeText(xe.Base64.decode(Pa)).then(()=>{ke.ZP.success("\u590D\u5236\u9519\u8BEF\u4FE1\u606F\u6210\u529F")}):navigator.clipboard.writeText(xe.Base64.decode(Aa)).then(()=>{ke.ZP.success("\u590D\u5236\u9519\u8BEF\u4FE1\u606F\u6210\u529F")})}return fe.createElement(a.Fragment,null,fe.createElement("div",{className:de()(Se.Z.case,Ct&&Se.Z.whiteCase),style:{height:zt},ref:Ca},fe.createElement("div",{className:Se.Z.fullMask,ref:Da}),fe.createElement("div",{className:Se.Z["resize-y-bar"],id:"case-y-bar",ref:ln,draggable:!1},bt===2&&fe.createElement("i",{className:"iconfont icon-guangbiao",draggable:!1})),bt===1&&(zt<=34?fe.createElement("div",{onClick:()=>{jt(320)},className:Se.Z.unfoldBtn},"\u63A7\u5236\u53F0",fe.createElement("i",{className:"iconfont icon-zhankai9 ml10 font12"})):fe.createElement("div",{onClick:()=>{jt(0)},className:Se.Z.unfoldBtn,style:{borderRadius:"0px 0px 8px 8px",top:0}},"\u63A7\u5236\u53F0",fe.createElement("i",{className:"iconfont icon-shouqi8 ml10 font12"}))),fe.createElement("div",null,fe.createElement("div",{className:Se.Z.caseHead},fe.createElement("div",{className:Se.Z.dot}),fe.createElement("div",{className:Se.Z.text},bt===1?"\u8C03\u8BD5\u4EE3\u7801\u7ED3\u679C":"\u8BC4\u6D4B\u7ED3\u679C"),bt===2&&!lt&&typeof nr=="number"&&fe.createElement(fe.Fragment,null,nr===Fe.h.OK?fe.createElement("div",{className:Se.Z.pass},fe.createElement("i",{className:"iconfont icon-tongguo font14 mr5"}),"\u8BC4\u6D4B\u901A\u8FC7"):fe.createElement("div",{className:Se.Z.noPass},fe.createElement("i",{className:"iconfont icon-jinggao-3 font14 mr5"}),Le[nr])),fe.createElement("div",{className:Se.Z.btns},bt===2&&!lt&&fe.createElement(fe.Fragment,null,nr!==Fe.h.OK&&fe.createElement("div",{onClick:On},fe.createElement("i",{className:"iconfont icon-fuzhi8"}),"\u590D\u5236\u9519\u8BEF\u4FE1\u606F"),fe.createElement("div",{onClick:()=>{vt(cu)}},fe.createElement("i",{className:"iconfont icon-danceng-xinjianwenjian"}),"\u663E\u793A\u8BE6\u60C5")),Mt.get("type")!=="exercises"&&fe.createElement("div",{title:"\u5C55\u5F00/\u6536\u7F29",onClick:()=>Vn()},fe.createElement("i",{className:`iconfont icon-${ut?"suoxiao1":"fangda"}`})))),fe.createElement("div",{style:{display:bt===1?"block":"none"}},it?fe.createElement(Ae.Z,{style:{color:"#1976d2"},message:"\u670D\u52A1\u542F\u52A8\u4E2D..."}):fe.createElement("div",{style:{height:zt-34}},fe.createElement("div",{className:Se.Z.result},fe.createElement("div",{className:Se.Z.left},fe.createElement("div",{className:Se.Z.title},fe.createElement("i",{style:{color:"#00FA95"},className:"iconfont iconfont icon-zidingyiceshiyongli font14 mr5"}),fe.createElement("span",null,"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B")),fe.createElement("div",{className:Se.Z.leftNode},fe.createElement(Ne,{placeholder:"\u8BF7\u8F93\u5165\u81EA\u6D4B\u7528\u4F8B\uFF08\u5982\u679C\u672A\u586B\u5199\uFF0C\u9996\u6B21\u81EA\u6D4B\u8FD0\u884C\u65F6\uFF0C\u7CFB\u7EDF\u4F1A\u81EA\u52A8\u586B\u5145\u7B2C\u4E00\u4E2A\u975E\u9690\u85CF\u7684\u6587\u672C\u7C7B\u578B\u7684\u6D4B\u8BD5\u7528\u4F8B\uFF09",value:Ye?"":Ue,onChange:nt}))),fe.createElement("div",{className:Se.Z.right},fe.createElement("div",{className:Se.Z.title},fe.createElement("i",{style:{color:"#00DFFF"},className:"iconfont iconfont icon-daimazhihangjieguo font14 mr5"}),fe.createElement("span",null,"\u4EE3\u7801\u6267\u884C\u7ED3\u679C")),fe.createElement("div",{className:Se.Z.node},ct?_u:fe.createElement("p",{style:{color:"#8F96B1"}},"\u8BF7\u5728\u5DE6\u4FA7\u8F93\u5165\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B\u7684\u8F93\u5165\u503C\uFF0C\u70B9\u51FB\u201C\u8C03\u8BD5\u4EE3\u7801\u201D\uFF0C\u5373\u53EF\u751F\u6210\u4EE3\u7801\u6267\u884C\u7ED3\u679C")))))),fe.createElement("div",{style:{display:bt===2?"block":"none"}},lt?fe.createElement(Ae.Z,{style:{color:"#1976d2"},message:"\u670D\u52A1\u542F\u52A8\u4E2D..."}):fe.createElement("div",{style:{height:zt-34,display:"flex",flexDirection:"column",overflow:"hidden"}},fe.createElement("div",{ref:Cu,className:Se.Z.elseNode},fe.createElement("div",{className:Se.Z.nameWrap},fe.createElement("i",{style:{color:"#00DFFF"},className:"iconfont iconfont icon-zidingyiceshiyongli font14 mr5"}),fe.createElement("span",null,"\u5B9E\u9645\u8F93\u5165")),fe.createElement("div",{className:Se.Z.scroll},fe.createElement("pre",{className:Se.Z.scrollBox,style:Nn?{height:Pn?"calc(100vh - 20px)":200}:{height:24,overflow:"hidden"}},!xn&&fe.createElement(Ge,{value:or}),xn&&fe.createElement("a",{style:{fontSize:"16px"},onClick:()=>ve(void 0,null,function*(){const Jt=yield fetch(vl,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}});Ke(yield Jt.text()),setTimeout(()=>{qt(vl)},200)})},or)),or&&fe.createElement("div",{className:Se.Z.action},fe.createElement("span",{onClick:()=>Qt(!Nn)},Nn?"\u6536\u8D77":"\u5C55\u5F00")))),fe.createElement("div",{className:Se.Z.result,style:{flex:1,overflow:"hidden"}},fe.createElement("div",{className:Se.Z.left},fe.createElement("div",{className:Se.Z.title},fe.createElement("i",{style:{color:"#00FA95"},className:"iconfont iconfont icon-zidingyiceshiyongli font14 mr5"}),fe.createElement("span",null,"\u9884\u671F\u8F93\u51FA")),fe.createElement("div",{className:Se.Z.node,style:{background:"#1B2333",color:"#2ABD8C"}},fe.createElement("pre",null,!xn&&fe.createElement(Ge,{className:"mb10",value:Zt&&xe.Base64.decode(Zt)||""}),xn&&fe.createElement("a",{style:{fontSize:"16px"},onClick:()=>ve(void 0,null,function*(){const Jt=yield fetch(er,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}});Ke(yield Jt.text()),setTimeout(()=>{qt(er)},200)})},Zt)))),fe.createElement("div",{className:Se.Z.right},fe.createElement("div",{className:Se.Z.title},fe.createElement("i",{style:{color:"#00DFFF"},className:"iconfont iconfont icon-daimazhihangjieguo font14 mr5"}),fe.createElement("span",null,"\u5B9E\u9645\u8F93\u51FA")),fe.createElement("div",{className:Se.Z.node,style:{color:nr===Fe.h.OK?"#2ABD8C":"#FF2C29"}},fe.createElement("pre",null,(nr===4||nr===5)&&fe.createElement(Ge,{className:"mb10",value:Pa&&xe.Base64.decode(Pa)||""}),nr!=4&&nr!=5&&(xn?fe.createElement("a",{style:{fontSize:"16px"},onClick:()=>ve(void 0,null,function*(){const Jt=yield(0,oe.ZP)(Er,{method:"Get",headers:{"Content-Type":"application/xml",Accept:"*/*"}});try{Ke(Jt)}catch(_n){Ke("")}setTimeout(()=>{qt(Er)},200)})},Aa):fe.createElement(Ge,{className:"mb10",value:Aa&&xe.Base64.decode(Aa)||""})))))))))),fe.createElement("div",{className:de()(Se.Z.footer,Ct&&Se.Z.whiteFooter),style:{zIndex:100}},(ht==null?void 0:ht.is_program)&&(ht==null?void 0:ht.above_question)&&fe.createElement(he.ZP,{className:"mr10",type:"primary",onClick:()=>ul(ht==null?void 0:ht.above_question),id:"oj-prev",ghost:!0},"\u4E0A\u4E00\u9898"),(ht==null?void 0:ht.is_program)&&(ht==null?void 0:ht.under_question)&&fe.createElement(he.ZP,{className:"mr10",type:"primary",onClick:()=>ul(ht==null?void 0:ht.under_question),id:"oj-next",ghost:!0},"\u4E0B\u4E00\u9898"),fe.createElement(he.ZP,{style:{border:"1px solid #2ABD8C",color:"#2ABD8C"},ghost:!0,disabled:it||lt,loading:it,color:"#2ABD8C",className:"mr10",onClick:ir},"\u8C03\u8BD5\u4EE3\u7801"),Mt.get("qtype")!=="8"&&fe.createElement(he.ZP,{className:Se.Z.disabled,type:"primary",icon:fe.createElement("i",{className:"iconfont icon-bofang1"}),loading:lt,disabled:it||lt,onClick:()=>{var Jt,_n;if(!(ht!=null&&ht.code)||((Jt=ht==null?void 0:ht.code)==null?void 0:Jt.trim().length)===0){(_n=ke.ZP)==null||_n.warning("\u4EE3\u7801\u4E0D\u80FD\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7F16\u5199\u4EE3\u7801\u540E\uFF0C\u518D\u8FDB\u884C\u8BC4\u6D4B\uFF01");return}An(2),jt(320),yt()}},"\u8BC4\u6D4B\u5E76\u63D0\u4EA4")),fe.createElement(y.Z,{onClose:vt,open:sn}),fe.createElement(te.Z,{close:!0,data:Tt,type:Tt.length?"txt":"",onClose:()=>qt(""),monacoEditor:{value:St,language:"txt",onChange:()=>{},options:{fontSize:14,readOnly:!0,minimap:{enabled:!1}}}}))}},30546:function(Ft,rt,z){"use strict";z.r(rt),z.d(rt,{Types:function(){return Pc},default:function(){return Wr}});var a=z(67294),Ce=z(35973),ke=z(55054),he=z(62844),Fe=z(74330),xe=z(85804),pe=z(83062),Se=z(71230),Ae=z(88742),Ie=z(15835),ze=z(51959),Me=z(60076),me=z(11320),oe=z(55304),E=z(95012),y=z(36295),x=z(76621),b=z(40471),ee=z(21434),te=z(2453),ne={list:"list___IRN6i",copy:"copy___qCn9B"},de=z(74855),ye=z(33170),fe=(yn,fa,va)=>new Promise((Vr,Bl)=>{var Gr=Qr=>{try{Dl(va.next(Qr))}catch(Kr){Bl(Kr)}},El=Qr=>{try{Dl(va.throw(Qr))}catch(Kr){Bl(Kr)}},Dl=Qr=>Qr.done?Vr(Qr.value):Promise.resolve(Qr.value).then(Gr,El);Dl((va=va.apply(yn,fa)).next())}),Ne=({showResourceCentre:yn,identifier:fa})=>{const va=(0,Ce.useParams)(),[Vr,Bl]=(0,a.useState)(null);(0,a.useEffect)(()=>{yn&&Gr()},[yn]);const Gr=()=>fe(void 0,null,function*(){const El=yield(0,ye.ZP)(`/api/problems/${fa}/attachment_list.json`,{method:"get"});(El==null?void 0:El.status)==0&&Bl(El.data||[])});return a.createElement("div",{className:"tpi-code-setting"},a.createElement("h3",null,"\u8D44\u6E90\u4E2D\u5FC3"),!(Vr!=null&&Vr.length)&&a.createElement("div",{className:"tc mt50 c-grey-999"},"\u6682\u65E0\u8D44\u6E90\u6570\u636E"),Vr==null?void 0:Vr.map((El,Dl)=>a.createElement("dl",{className:ne.list,key:Dl},a.createElement(pe.Z,{title:El.title},a.createElement("dt",null,a.createElement("i",{className:"icon-wenjian4 mr5"}),El.title)),a.createElement("dd",null,a.createElement(de.CopyToClipboard,{text:El.saved_file_path,onCopy:()=>te.ZP.success("\u590D\u5236\u6210\u529F")},a.createElement("span",{className:`${ne.copy} current`},"\u70B9\u51FB\u590D\u5236"))))))},Le=z(67294),Re=Object.defineProperty,He=Object.defineProperties,We=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,it=(yn,fa,va)=>fa in yn?Re(yn,fa,{enumerable:!0,configurable:!0,writable:!0,value:va}):yn[fa]=va,lt=(yn,fa)=>{for(var va in fa||(fa={}))Ue.call(fa,va)&&it(yn,va,fa[va]);if(Ge)for(var va of Ge(fa))Ye.call(fa,va)&&it(yn,va,fa[va]);return yn},Bt=(yn,fa)=>He(yn,We(fa));const ct={theme:(0,b.G)("ProgrammingCodeMode","vs-dark"),fontSize:(0,b.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,b.G)("cmTabToSpace",!0),showResourceCentre:!1};var nt=(yn=>(yn[yn.set_font_size=0]="set_font_size",yn[yn.set_theme=1]="set_theme",yn[yn.on_tab_to_space=2]="on_tab_to_space",yn[yn.set_show_editor_setting=3]="set_show_editor_setting",yn[yn.set_show_respurce_center=4]="set_show_respurce_center",yn))(nt||{});function Ze(yn,fa){switch(fa.type){case 3:return Bt(lt({},yn),{showEditorSetting:fa.payload});case 1:return Bt(lt({},yn),{theme:fa.payload});case 0:return Bt(lt({},yn),{fontSize:fa.payload});case 2:return Bt(lt({},yn),{tabToSpace:fa.payload});case 4:return Bt(lt({},yn),{showResourceCentre:fa.payload});default:throw new Error}}var yt=({isLoading:yn,value:fa,onChange:va,language:Vr,onUpdateCode:Bl,ActionBarRender:Gr,setIsWhiteTheme:El,identifier:Dl})=>{const[Qr,Kr]=(0,a.useReducer)(Ze,ct),{theme:Do,fontSize:Co,showEditorSetting:Br,tabToSpace:Wl,showResourceCentre:hi}=Qr,bu=(0,a.useRef)(),ns=(0,a.useRef)();(0,a.useEffect)(()=>{El(Do==="vs")},[Do]);const cl={onFontSizeChange:oi=>{Kr({type:0,payload:oi}),(0,b.t)("cmFontSize",oi)},tabToSpace:Wl,cmFontSize:Co,className:"oj",cmCodeMode:Do,onTabToSpace:oi=>{Kr({type:2,payload:oi}),(0,b.t)("cmTabToSpace",oi)},onCodeModeChange:oi=>{Kr({type:1,payload:oi}),(0,b.t)("ProgrammingCodeMode",oi)}};function is(){Kr({type:3,payload:!1})}function li(){Kr({type:3,payload:!0})}function _i(){Kr({type:4,payload:!1})}function as(){Kr({type:4,payload:!0})}const ho={value:fa,language:Vr,theme:Do,options:{fontSize:Co,insertSpaces:Wl},onChange:oi=>{va(oi),ns.current=oi,clearTimeout(bu.current),bu.current=setTimeout(()=>{Bl(ns.current)},1e4)},onEditBlur:oi=>{ns.current&&Bl(ns.current)}};return Le.createElement(a.Fragment,null,Gr(li,as),Le.createElement("div",{style:{flex:1,overflow:"hidden"}},!yn&&Le.createElement(y.ZP,lt({},ho))),Le.createElement(x.Z,null,Le.createElement(E.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:Br,onClose:is},Le.createElement(ee.Z,lt({},cl)))),Le.createElement(x.Z,null,Le.createElement(E.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:hi,onClose:_i},Le.createElement(Ne,{showResourceCentre:hi,identifier:Dl}))))},ht=z(60141),Je=z(19575),ot=z(86276),Ct={flex_box_center:"flex_box_center___rM3g8",flex_space_between:"flex_space_between___Oc7SE",flex_box_vertical_center:"flex_box_vertical_center___MnmYE",flex_box_center_end:"flex_box_center_end___QQh83",flex_box_column:"flex_box_column___ZRFbL","left-panel":"left-panel___SKGyd","tab-panel-body":"tab-panel-body___gABdv",b1:"b1___QpbmK","oj-width-input":"oj-width-input___eJQWT","oj-mr":"oj-mr___AxILO","s-navs":"s-navs___FXwOi","bg-white":"bg-white___kbZ6r",active:"active___QGOnZ",list:"list___PXTsq",btns:"btns___F8yZK",drawer:"drawer___xdGaT",tour:"tour___oMkVh"},kt={pagination:"pagination___yDAjZ",info:"info___ATmsa",wrap:"wrap____KX19"},Mt=z(57399),st=z(14845),ut=z(3407),un=z(38365),Pn=z(94699),Rn=z.n(Pn),bt=z(67294);const{Column:An}=Mt.default;var Nn=({submitResult:yn,submitting:fa,submitRecords:va,page:Vr,onPageChange:Bl,topicId:Gr})=>{const[El]=(0,Ce.useSearchParams)(),{records:Dl,records_count:Qr}=va||{},[Kr,Do]=(0,a.useState)(!1),Co=El.get("type")==="1";return bt.createElement(Fe.Z,{spinning:fa,tip:"\u8BC4\u6D4B\u4E2D...",indicator:bt.createElement(ut.Z,{style:{fontSize:24},spin:!0})},(Dl==null?void 0:Dl.length)>0?bt.createElement(Mt.default,{dataSource:Dl,rowKey:"id",pagination:!1},bt.createElement(An,{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"created_at",key:"created_at",render:(Br,Wl)=>bt.createElement("span",null," ",Rn()(Br).format("YYYY-MM-DD HH:mm:ss"))}),bt.createElement(An,{title:"\u8BC4\u6D4B\u7ED3\u679C",dataIndex:"status",key:"status",render:(Br,Wl)=>{var hi;return bt.createElement("span",{className:`${Br===0?"c-green":"c-red"} current`,onClick:()=>{Do(Wl.id)}},(hi=ot.Im[Br])==null?void 0:hi.replace("\u8C03\u8BD5","\u8BC4\u6D4B"))}}),bt.createElement(An,{title:`\u6267\u884C\u7528\u65F6 (${Co?"MS":"S"})`,dataIndex:"execute_time",key:"execute_time",render:Br=>Br?Co?Br:Br/1e3:""}),bt.createElement(An,{title:`\u5185\u5B58\u6D88\u8017\uFF08${Co?"KB":"MB"}\uFF09`,dataIndex:"execute_memory",key:"execute_memory",render:Br=>Br?Co?Br:parseFloat((Br/1024).toFixed(2)):""}),bt.createElement(An,{title:"\u8BED\u8A00",dataIndex:"language",key:"language"}),bt.createElement(An,{title:"\u64CD\u4F5C",dataIndex:"status",key:"status",render:(Br,Wl)=>bt.createElement("span",{className:"c-light-primary current",onClick:()=>{Do(Wl.id)}},"\u67E5\u770B")})):bt.createElement("div",{style:{height:300,width:"100%"}}),bt.createElement(un.Z,{onClose:Do,open:Kr}),Qr>15?bt.createElement(st.Z,{className:kt.pagination,current:Vr,pageSize:15,total:Qr,onChange:Bl}):null)},Qt=z(26194),zt=z(66309),jt={desc:"desc___iOAgd",info:"info___GPALq",info_tag:"info_tag___CFEn8"},sn=z(65226),vt=z(67294);const Tt={1:{name:"\u7B80\u5355",color:"#52c41a"},2:{name:"\u4E2D\u7B49",color:"#faad14"},3:{name:"\u56F0\u96BE",color:"#f5222d"}};var qt=({hack:yn})=>{const{language:fa,difficult:va,time_limit:Vr,description:Bl}=yn,[Gr]=(0,Ce.useSearchParams)(),El=Tt[va];return vt.createElement(vt.Fragment,null,vt.createElement("ul",{className:jt.info},vt.createElement("li",null,"\u7F16\u7A0B\u8BED\u8A00\xA0\xA0",vt.createElement("b",{className:jt.info_tag},fa)),vt.createElement("li",null,vt.createElement("span",{className:"ml20"},"\u96BE\u5EA6"),"\xA0\xA0",vt.createElement(zt.default,{color:El==null?void 0:El.color},El==null?void 0:El.name)),vt.createElement("li",null,vt.createElement("span",{className:"ml20"},"\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"),"\xA0\xA0",vt.createElement("span",{style:{color:"#333333"}},Vr,"\u79D2"))),Gr.get("qtype")==="8"?vt.createElement(sn.Z,{value:Bl,showProgramFill:!0,className:jt.desc}):vt.createElement(sn.Z,{value:Bl,className:jt.desc}))},St={},Ke=z(67294),ln=({hack:yn,current_user:fa})=>Ke.createElement("div",{className:St.answer},yn!=null&&yn.answer_text?Ke.createElement(sn.Z,{style:{padding:"13px 0"},value:(yn==null?void 0:yn.answer_text)||""}):Ke.createElement(Qt.Z,{customText:"\u6682\u672A\u8BBE\u7F6E\u53C2\u8003\u7B54\u6848~"})),Un=z(33054);function Ca(yn,fa){return(0,ye.U2)(`/problems/${yn}/comments.json`,{page:fa,limit:10})}function Cu(yn){return(0,ye.v_)(`/discusses/${yn}/plus.json`,{container_type:"Discuss",type:1})}function Da(yn,fa,va){return(0,ye.v_)(`/problems/${yn}/comments/reply.json`,{comments:{content:va,parent_id:fa}})}function nr(yn,fa){return(0,ye.v_)(`/problems/${yn}/comments.json`,{comments:{content:fa}})}function cu(yn,fa,va){return(0,ye.v_)(`/problems/${yn}/comments/${fa}/hidden.json`,va)}function or(yn,fa){return(0,ye.IV)(`/problems/${yn}/comments/${fa}`)}var Aa=z(93989);function Zt({author:yn}){return a.createElement("a",{href:`/users/${yn.login}`,target:"_blank"},a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"50",style:{borderRadius:"50%"},src:`${me.Z.IMG_SERVER}/images/${yn.image_url}`,width:"50"}))}function xn({data:yn,index:fa,parentDiscussIndex:va,user:Vr,onSetActionType:Bl}){const{author:Gr,can_delete:El,content:Dl,id:Qr,time:Kr}=yn;function Do(){Bl({id:Qr,index:fa,type:"delete-discuss",parentDiscussIndex:va,message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}const Co=Vr.admin||El||Gr.user_id===Vr.user_id;return a.createElement("div",{className:"discuss-item-container second-discuss "},a.createElement(Zt,{author:Gr}),a.createElement("section",null,a.createElement("div",{className:"discuss-info"},a.createElement("a",{href:`/users/${Gr.login}`,target:"_blank"},Gr.name),a.createElement("span",{className:"grey"},Kr),a.createElement("div",{className:"btn-group",style:{marginBottom:0}},Co?a.createElement("a",{onClick:Do,title:"\u5220\u9664"},a.createElement("i",{className:"iconfont icon-shanchu"})):null)),a.createElement(sn.Z,{className:"discuss-content",value:Dl})))}var vl=({user:yn,data:fa,index:va,onPlusDiscuss:Vr,onSetActionType:Bl,activeDiscussIndex:Gr,onReplyDiscuss:El,onSetActiveDiscussIndex:Dl})=>{const{content:Qr,children:Kr,hidden:Do,id:Co,praise_count:Br,time:Wl,user_praise:hi,can_delete:bu,author:ns}=fa;function cl(){Dl(Co)}function is(){Vr(Co,!hi,va)}function li(){Bl({id:Co,index:va,type:"delete-discuss",message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}function _i(){Bl({id:Co,index:va,params:{hidden:Do?"0":"1"},type:"hidden-discuss",message:Do?"\u786E\u5B9A\u8981\u53D6\u6D88\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417":"\u786E\u5B9A\u8981\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417"})}const as=yn.admin||yn.user_id===ns.user_id;return a.createElement("div",{className:"discuss-item-container",key:Co},a.createElement(Zt,{author:ns}),a.createElement("section",null,a.createElement("div",{className:"discuss-info"},a.createElement("a",{href:`/users/${ns.login}`,target:"_blank"}," ",ns.name," "),a.createElement("span",{className:"grey"},Wl)),a.createElement(sn.Z,{className:"discuss-content",value:Qr}),Kr&&Kr.length>0?a.createElement("div",{className:"reply-discuss-container"},Kr.map((ho,oi)=>a.createElement(xn,{key:ho.id,data:ho,index:oi,user:yn,onSetActionType:Bl,parentDiscussIndex:va}))):null,a.createElement("div",{className:"btn-group"},as?a.createElement("a",{onClick:_i,title:Do?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF\u8BC4\u8BBA"},a.createElement("i",{className:Do?"iconfont icon-yincangbiyan":"fa fa-eye"})):null,bu&&(!Kr||Kr.length==0)?a.createElement("a",{onClick:li,title:"\u5220\u9664"},a.createElement("i",{className:"iconfont icon-shanchu"})):null,a.createElement("a",{onClick:cl,title:"\u56DE\u590D"}," ",a.createElement("i",{className:"iconfont icon-huifu1"})," "),a.createElement("a",{onClick:is,className:hi?"c-orange":""},a.createElement("i",{className:hi?"iconfont icon-dianzan mr3":"iconfont icon-dianzan-xian mr3 "}),a.createElement("span",null,Br||""))),a.createElement(Aa.Z,{id:Co,activeDiscussIndex:Gr,onReplyDiscuss:El})))},Er=z(71865),er={"dis-input-editor-container":"dis-input-editor-container___nKGxx",active:"active___tmt7T","input-mask":"input-mask___epEle","text-area":"text-area___Vry8W","tip-container":"tip-container___plpA3",hide:"hide___kPfyC","md-container":"md-container___u85aq","btn-send":"btn-send___deQ5v"},Pa=z(35567),Za=(yn,fa,va)=>new Promise((Vr,Bl)=>{var Gr=Qr=>{try{Dl(va.next(Qr))}catch(Kr){Bl(Kr)}},El=Qr=>{try{Dl(va.throw(Qr))}catch(Kr){Bl(Kr)}},Dl=Qr=>Qr.done?Vr(Qr.value):Promise.resolve(Qr.value).then(Gr,El);Dl((va=va.apply(yn,fa)).next())}),qn=({user_praise:yn,praise_count:fa,praisePlus:va,onCreateDiscuss:Vr,discuss_count:Bl})=>{const[Gr,El]=(0,a.useState)(!1),[Dl,Qr]=(0,a.useState)("");function Kr(Wl){Qr(Wl)}function Do(){El(!0)}function Co(){El(!1)}function Br(){return Za(this,null,function*(){Vr(Dl),Qr(""),El(!1)})}return a.createElement("div",{className:`${er["dis-input-editor-container"]} ${Gr?er.active:""} `},a.createElement("div",{className:Gr?`hide ${er["text-area"]}`:er["text-area"]},a.createElement("input",{placeholder:"\u8BF4\u70B9\u4EC0\u4E48",onClick:Do}),a.createElement("a",null," ",a.createElement("i",{className:"iconfont icon-huifu1"})," \xA0 \xA0",Bl," "),a.createElement("a",{className:"c-light-black",onClick:va,title:yn?"\u53D6\u6D88\u70B9\u8D5E":"\u70B9\u8D5E"},a.createElement("i",{className:`mr3 ${yn?"iconfont icon-dianzan c-orange":"iconfont icon-dianzan-xian"} `}),fa?a.createElement("span",null,fa):"")),Gr?a.createElement("div",{className:er["input-mask"],onClick:Co}):null,a.createElement("div",{className:Gr?er["md-container"]:`${er["md-container"]} hide`},a.createElement(Pa.Z,{id:"discuss-input-editor",miniToolbar:!0,watch:!1,noStorage:!0,defaultValue:Dl,height:240,onChange:Kr}),a.createElement("div",{className:er["tip-container"],onClick:Co},a.createElement("a",{className:er["btn-send"],onClick:Br}," \u53D1\u9001 "))))},Vn=z(67294),Qa=Object.defineProperty,gu=Object.defineProperties,_u=Object.getOwnPropertyDescriptors,ir=Object.getOwnPropertySymbols,ul=Object.prototype.hasOwnProperty,On=Object.prototype.propertyIsEnumerable,Jt=(yn,fa,va)=>fa in yn?Qa(yn,fa,{enumerable:!0,configurable:!0,writable:!0,value:va}):yn[fa]=va,_n=(yn,fa)=>{for(var va in fa||(fa={}))ul.call(fa,va)&&Jt(yn,va,fa[va]);if(ir)for(var va of ir(fa))On.call(fa,va)&&Jt(yn,va,fa[va]);return yn},Gn=(yn,fa)=>gu(yn,_u(fa)),ua=(yn,fa,va)=>new Promise((Vr,Bl)=>{var Gr=Qr=>{try{Dl(va.next(Qr))}catch(Kr){Bl(Kr)}},El=Qr=>{try{Dl(va.throw(Qr))}catch(Kr){Bl(Kr)}},Dl=Qr=>Qr.done?Vr(Qr.value):Promise.resolve(Qr.value).then(Gr,El);Dl((va=va.apply(yn,fa)).next())});const oa={loading:!1,page:1,data:[],count:0,actionType:null,activeDiscussIndex:null};var Ta=(yn=>(yn[yn.GET_DISCUSSES=0]="GET_DISCUSSES",yn[yn.TOP_OR_DOWN_DISCUSS=1]="TOP_OR_DOWN_DISCUSS",yn[yn.ACTIVE_DISCUSS_INDEX=2]="ACTIVE_DISCUSS_INDEX",yn[yn.PLUS_DISCUSS=3]="PLUS_DISCUSS",yn[yn.SET_ACTION_TYPE=4]="SET_ACTION_TYPE",yn[yn.SET_PAGE=5]="SET_PAGE",yn[yn.SHOW_DISCUSSES_LOADING=6]="SHOW_DISCUSSES_LOADING",yn))(Ta||{});function hu(yn,fa){switch(fa.type){case 6:return Gn(_n({},yn),{loading:!0});case 0:return _n(_n({},yn),fa.payload);case 1:return _n(_n({},yn),fa.payload);case 4:return _n(_n({},yn),fa.payload);case 3:return _n(_n({},yn),fa.payload);case 5:return Gn(_n({},yn),{page:fa.payload});case 2:return _n(_n({},yn),fa.payload);default:throw new Error}}var ft=({user:yn,identifier:fa,hack:va,onTriggerPraise:Vr,activeIndex:Bl})=>{const[Gr,El]=(0,a.useReducer)(hu,oa),{loading:Dl,page:Qr,data:Kr,count:Do,actionType:Co,activeDiscussIndex:Br}=Gr,Wl=(0,a.useCallback)(()=>ua(void 0,null,function*(){El({type:6});const ho=yield Ca(fa,Qr),{comments:oi,disscuss_count:Zi}=ho;El({type:0,payload:{data:oi,count:Zi,loading:!1}})}),[Qr,fa]);(0,a.useEffect)(()=>{Bl==="2"&&Wl()},[fa,Qr,Bl]);function hi(ho){El({type:5,payload:ho})}function bu(ho){El({type:4,payload:{actionType:ho}})}function ns(ho){El(Br===ho?{type:2,payload:{activeDiscussIndex:null}}:{type:2,payload:{activeDiscussIndex:ho}})}function cl(ho,oi,Zi){return ua(this,null,function*(){try{const Ss=yield Cu(ho);Kr[Zi].user_praise=oi,Kr[Zi].praise_count=Ss.praise_count,El({type:3,payload:{data:[...Kr]}})}catch(Ss){console.log(Ss)}})}function is(){return ua(this,null,function*(){const{id:ho,params:oi,type:Zi,index:Ss,parentDiscussIndex:ss}=Co;if(Zi==="hidden-discuss"&&(yield cu(fa,ho,oi),ss?Kr[ss].children[Ss].hidden=oi.hidden==1:Kr[Ss].hidden=oi.hidden==1,El({type:4,payload:{actionType:null,data:[...Kr]}})),Zi==="delete-discuss"){if(yield or(fa,ho),ss||ss===0){let Os=Kr[ss].children;for(let Es=Os.length-1;Es>=0;Es--)if(Os[Es].id===ho){Os.splice(Es,1);break}Kr[ss].children=Os}else for(let Os=Kr.length-1;Os>=0;Os--)if(Kr[Os].id===ho){Kr.splice(Os,1);break}El({type:4,payload:{actionType:null,data:[...Kr]}})}})}function li(){El({type:4,payload:{actionType:null}})}function _i(ho,oi){return ua(this,null,function*(){try{yield Da(fa,ho,oi),Wl()}catch(Zi){console.log(Zi)}})}function as(ho){return ua(this,null,function*(){El({type:6}),yield nr(fa,ho),Wl()})}return Vn.createElement(Vn.Fragment,null,Vn.createElement("div",{className:"discuss-panel"},Kr.length===0?Vn.createElement(Qt.Z,null):Kr.map((ho,oi)=>Vn.createElement(vl,{onReplyDiscuss:_i,onPlusDiscuss:cl,onSetActiveDiscussIndex:ns,onSetActionType:bu,data:ho,index:oi,user:yn,activeDiscussIndex:Br})),Do>10?Vn.createElement("div",{className:"pagination-container"},Vn.createElement(st.Z,{showQuickJumper:!0,onChange:hi,current:Qr,total:Do})):null),Vn.createElement(qn,{user_praise:va.user_praise,praise_count:va.praises_count,praisePlus:Vr,discuss_count:va.comments_count,onCreateDiscuss:as}),Vn.createElement(x.Z,null,Vn.createElement(he.default,{centered:!0,title:"\u63D0\u793A",open:!!Co,onOk:is,onCancel:li},Vn.createElement("p",null,Co?Co.message:"")),Vn.createElement(Er.Z,null)))},re=z(88044),ge=z(28802),De=z(31221),Xe={},tt=z(67294),Ot=({hack:yn,current_user:fa})=>tt.createElement("div",{className:Xe.answer},yn!=null&&yn.analysis?tt.createElement(sn.Z,{style:{padding:"13px 0"},value:(yn==null?void 0:yn.analysis)||""}):tt.createElement(Qt.Z,{customText:"\u6682\u672A\u8BBE\u7F6E\u9898\u76EE\u89E3\u6790~"})),Lt={hackSets:"hackSets___tw75g",collapseWrapper:"collapseWrapper___TteKi",panelHeader:"panelHeader___Y_Xjq",rateInput:"rateInput___y1qUi",open:"open___xrixP",close:"close___jb6D2",uploadTableWrapper:"uploadTableWrapper___U9Tz_"},Wn=z(69234),ra=z(15746),xa=z(91773),Kn=z(37720),Du=z(32259),la=z(67294);const{TextArea:lu}=ge.default,{Panel:Ga}=Wn.default;var Ea=({data:yn,hack:fa})=>(console.log(yn,fa,"data"),fa!=null&&fa.is_file?la.createElement(Du.Y2,{disabled:!0,className:Lt.uploadTableWrapper,showScore:!fa.test_set_score,data:yn,isProgramHomework:!0}):la.createElement("div",{className:Lt.hackSets},yn==null?void 0:yn.map((va,Vr)=>la.createElement(Wn.default,{accordion:!0,bordered:!1,key:Vr,defaultActiveKey:Vr===0&&va.id,className:Lt.collapseWrapper,expandIcon:({isActive:Bl})=>la.createElement("i",{className:`iconfont icon-weizhankai ${Bl?Lt.open:Lt.close}`,style:{fontSize:14,transition:"all .2s"}})},la.createElement(Ga,{key:va.id,header:la.createElement(Se.Z,{align:"middle",justify:"space-between",wrap:!1},la.createElement(ra.Z,{className:Lt.panelHeader},la.createElement("span",null,"\u6D4B\u8BD5\u7528\u4F8B",Vr+1)),la.createElement(ra.Z,{flex:1},la.createElement(Se.Z,{align:"middle",justify:"end",wrap:!1},!(fa!=null&&fa.test_set_score)&&la.createElement(ra.Z,{className:Lt.rateInput},la.createElement("span",{className:"mr20"},"\u8BC4\u5206\u5360\u6BD4"),la.createElement("div",null,la.createElement(xa.default.Item,{noStyle:!0},la.createElement(Kn.Z,{value:va==null?void 0:va.score,className:Lt.baseFormItem,min:0,max:100,disabled:!0}))),la.createElement("span",{className:"ml10"},"%")))))},la.createElement(xa.default.Item,{label:"\u8F93\u5165",labelCol:{span:24}},la.createElement(lu,{readOnly:!0,value:va==null?void 0:va.input,rows:4})),la.createElement(xa.default.Item,{label:"\u8F93\u51FA",labelCol:{span:24}},la.createElement(lu,{readOnly:!0,value:va==null?void 0:va.output,rows:4}))))))),ga={tabs:"tabs___p2jIb",tabWarp:"tabWarp___mt05L",tab:"tab___IYGdQ",active:"active___fQMlP",content:"content___GWVJY"},jn=z(67294),Hr=(0,a.forwardRef)(({data:yn=[]},fa)=>{var va;const[Vr,Bl]=(0,a.useState)(),Gr=yn.filter(Dl=>Dl.show);(0,a.useEffect)(()=>{Gr.length&&Bl(Gr[0].id)},[yn==null?void 0:yn.length]);const El=((va=Gr.find(Dl=>Dl.id===Vr))==null?void 0:va.element)||null;return(0,a.useImperativeHandle)(fa,()=>({setActiveTab:Dl=>Bl(Dl)})),jn.createElement("div",{className:ga.tabs},jn.createElement("div",{className:ga.tabWarp},Gr.map(Dl=>jn.createElement("div",{onClick:()=>Bl(Dl.id),className:`${ga.tab} ${Dl.id===Vr?ga.active:""}`,key:Dl.id},Dl.name))),jn.createElement("div",{className:ga.content},El))}),Wa=z(67294),rl=Object.defineProperty,sr=Object.defineProperties,uu=Object.getOwnPropertyDescriptors,ya=Object.getOwnPropertySymbols,Ua=Object.prototype.hasOwnProperty,zi=Object.prototype.propertyIsEnumerable,Ki=(yn,fa,va)=>fa in yn?rl(yn,fa,{enumerable:!0,configurable:!0,writable:!0,value:va}):yn[fa]=va,Yo=(yn,fa)=>{for(var va in fa||(fa={}))Ua.call(fa,va)&&Ki(yn,va,fa[va]);if(ya)for(var va of ya(fa))zi.call(fa,va)&&Ki(yn,va,fa[va]);return yn},fo=(yn,fa)=>sr(yn,uu(fa)),du=(yn,fa,va)=>new Promise((Vr,Bl)=>{var Gr=Qr=>{try{Dl(va.next(Qr))}catch(Kr){Bl(Kr)}},El=Qr=>{try{Dl(va.throw(Qr))}catch(Kr){Bl(Kr)}},Dl=Qr=>Qr.done?Vr(Qr.value):Promise.resolve(Qr.value).then(Gr,El);Dl((va=va.apply(yn,fa)).next())});const Gu={1:"\u7B80\u5355",2:"\u9002\u4E2D",3:"\u56F0\u96BE"},pl={1:"#2fa34f",2:"#0152d9",3:"#fa6400"};var Ir=({hack:yn,onTriggerPraise:fa,topicId:va,page:Vr,onPageChange:Bl,user:Gr,current_user:El,submitRecords:Dl,submitting:Qr,submitResult:Kr,setActiveIndex:Do,hack_sets:Co})=>{var Br,Wl;const[hi]=(0,Ce.useSearchParams)(),[bu,ns]=(0,a.useState)("0"),cl=(0,Ce.useLocation)(),[is,li]=(0,a.useState)(!1),[_i,as]=(0,a.useState)(null),[ho,oi]=(0,a.useState)([]),[Zi,Ss]=(0,a.useState)([]),[ss,Os]=(0,a.useState)({page:1,limit:10}),Es=(0,a.useRef)(null),ws=(0,a.useRef)(null);console.log(Gr,"user");let[no,Dc]=(0,a.useState)(fo(Yo({},(0,Ce.useParams)()),{page:1,per_page:20,name:""}));(0,a.useEffect)(()=>{ws.current&&(yn==null?void 0:yn.is_close_tips)===!1&&_i===null&&as(!0)},[ws.current,yn==null?void 0:yn.is_close_tips,_i]);function Oc(){return du(this,null,function*(){yield(0,ye.ZP)("/api/users/close_tips.json",{method:"post"})})}(0,a.useEffect)(()=>{Do(bu)},[bu]);function Ts(ll){return du(this,null,function*(){let ba=ll.target.id;if(ba==="1"){let Jn=yield(0,ye.ZP)(`/api/myproblems/${no.id}/redo_logs.json`,{method:"get",params:Yo({},ss)});(Jn==null?void 0:Jn.status)===0&&Ss(Jn==null?void 0:Jn.data)}ns(ba)})}(0,a.useEffect)(()=>Un.Z.subscribe("to-commit-info",()=>{ns("1"),Es.current&&Es.current.setActiveTab("1")}),[]),(0,a.useEffect)(()=>Un.Z.subscribe("to-reset-info",()=>{Ts({target:{id:"1"}}),Es.current&&Es.current.setActiveTab("2")}),[]);function ks(){ns("2")}function Fi(){return du(this,null,function*(){let ll=yield(0,ye.ZP)("/api/problems/my_hack_list.json",{method:"get",params:Yo({identifier:no==null?void 0:no.id},no)});oi(ll)})}const ac=[{title:null,description:Wa.createElement("div",null,Wa.createElement("b",{onClick:()=>{as(!1),Oc(),li(!0),Fi()},className:"c-light-primary font16 current"},"\u67E5\u770B\u9898\u76EE\u5217\u8868\u5165\u53E3"),Wa.createElement("div",{className:"c-grey-333 mt10 mb20"},"\u672C\u6B21\u4F5C\u4E1A\u6240\u9700\u5B8C\u6210\u7684\u8BD5\u9898\u90FD\u53EF\u4EE5\u5728\u8FD9\u91CC\u627E\u5230\uFF0C\u5E76\u652F\u6301\u70B9\u51FB\u8BD5\u9898\u8C03\u6574\u5230\u505A\u9898\u9875"),Wa.createElement(xe.ZP,{onClick:()=>{as(!1),Oc()},style:{padding:"2px 29px",height:30,float:"right"},type:"primary"},"\u77E5\u9053\u4E86")),target:()=>ws.current}];return Wa.createElement("div",{className:Ct["left-panel"]},Wa.createElement("ul",{className:`${Ct["s-navs"]} ${Ct["bg-white"]} ${Ct.b1}`},(yn==null?void 0:yn.is_program)&&!hi.get("pageId")&&Wa.createElement(pe.Z,{title:"\u9898\u76EE\u5217\u8868"},Wa.createElement("div",{onClick:()=>{Fi(),li(!0)},className:Ct.btns,ref:ws,style:_i?{pointerEvents:"none"}:{}},Wa.createElement("i",{className:"iconfont icon-yidongdaomulu1 font14 c-white"}))),Wa.createElement("li",{style:{marginLeft:20}},Wa.createElement("a",{className:bu==="0"?Ct.active:"",id:"0",onClick:Ts},"\u9898\u76EE\u63CF\u8FF0")),Wa.createElement("li",null,Wa.createElement("a",{className:bu==="1"?Ct.active:"",id:"1",onClick:Ts},"\u64CD\u4F5C\u8BB0\u5F55")),(hi.get("type")!=="exercises"&&(yn==null?void 0:yn.answer_text_show)||hi.get("type")!=="exercises"&&(yn==null?void 0:yn.analysis_show))&&Wa.createElement("li",null,Wa.createElement("a",{className:bu==="4"?Ct.active:"",id:"4",onClick:Ts},"\u89E3\u7B54\u53C2\u8003")),hi.get("type")!=="exercises"&&Wa.createElement("li",null,Wa.createElement("a",{className:bu==="2"?Ct.active:"",id:"2",onClick:Ts},"\u8BC4\u8BBA")),!!(Co!=null&&Co.length)&&hi.get("type")!=="exercises"&&hi.get("type")!=="1"&&Wa.createElement("li",null,Wa.createElement("a",{className:bu==="5"?Ct.active:"",id:"5",onClick:Ts},"\u6D4B\u8BD5\u7528\u4F8B"))),Wa.createElement("div",{className:`${Ct["tab-panel-body"]} ${bu==="0"?"":"hide"}`,style:{borderRight:"1px #dddddd solid",padding:0}},Wa.createElement(qt,{hack:yn,onTriggerPraise:fa,toDiscuss:ks})),Wa.createElement("div",{style:{padding:"12px"},className:`${Ct["tab-panel-body"]} ${bu==="1"?"":"hide"}`},Wa.createElement(Hr,{ref:Es,data:[{id:"1",show:hi.get("qtype")!=="8",name:"\u63D0\u4EA4\u8BB0\u5F55",element:Wa.createElement(Wa.Fragment,null,Dl!=null&&Dl.records_count||Qr?Wa.createElement(Nn,{page:Vr,onPageChange:Bl,topicId:va,submitting:Qr,key:(Kr==null?void 0:Kr.id)||1,submitRecords:Dl,submitResult:Kr}):Wa.createElement(Qt.Z,null))},{id:"2",show:hi.get("type")==="exercises"||(yn==null?void 0:yn.homework_common_id),name:"\u91CD\u7F6E\u8BB0\u5F55",element:Wa.createElement(Wa.Fragment,null,Wa.createElement(Mt.default,{pagination:!1,dataSource:Zi==null?void 0:Zi.list,columns:[{title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801\u65F6\u95F4",dataIndex:"created_at",render:(ll,ba,Jn)=>Rn()(ll).format("YYYY-MM-DD HH:mm:ss")},{title:"\u64CD\u4F5C\u4EBA",dataIndex:"operator"},{title:"\u64CD\u4F5C",dataIndex:"redo_type",render:(ll,ba,Jn)=>{var cr;return(cr=[{id:1,name:"\u6253\u56DE\u91CD\u505A"},{id:2,name:"\u6062\u590D\u521D\u59CB\u4EE3\u7801"},{id:3,name:"\u91CD\u7F6E\u4EE3\u7801\u4ED3\u5E93"}].find($n=>$n.id===ll))==null?void 0:cr.name}}]}),Wa.createElement(st.Z,{style:{marginTop:10},current:ss.page,total:Zi==null?void 0:Zi.count,hideOnSinglePage:!0,onChange:ll=>du(void 0,null,function*(){ss.page=ll,Os(ss);let ba=yield(0,ye.ZP)(`/api/myproblems/${no.id}/redo_logs.json`,{method:"get",params:fo(Yo({},ss),{courseId:no.courseId})});(ba==null?void 0:ba.status)===0&&Ss(ba==null?void 0:ba.data)})}))}]})),Wa.createElement("div",{style:{padding:"12px"},className:`${Ct["tab-panel-body"]} ${bu==="4"?"":"hide"}`},Wa.createElement(Hr,{data:[{id:"1",show:hi.get("type")!=="exercises"&&(yn==null?void 0:yn.answer_text_show),name:"\u7B54\u6848",element:Wa.createElement(Wa.Fragment,null,Wa.createElement(ln,{hack:yn,current_user:El}))},{id:"2",show:hi.get("type")!=="exercises"&&(yn==null?void 0:yn.analysis_show),name:"\u89E3\u6790",element:Wa.createElement(Wa.Fragment,null,Wa.createElement(Ot,{hack:yn,current_user:El}))}]})),Wa.createElement("div",{className:`${Ct["tab-panel-body"]} ${bu==="2"?"":"hide"}`,style:{padding:0}},Wa.createElement(ft,{user:Gr,activeIndex:bu,identifier:yn.identifier,hack:yn,onTriggerPraise:fa})),Wa.createElement("div",{className:`${Ct["tab-panel-body"]} ${bu==="5"?"":"hide"}`,style:{padding:12}},Wa.createElement(Ea,{data:Co||[],hack:yn})),Wa.createElement(E.Z,{rootClassName:Ct.drawer,closable:!1,title:null,bodyStyle:{background:"#1B2333",padding:25,display:"flex",flexDirection:"column"},footer:null,width:500,placement:"left",onClose:()=>li(!1),open:is},Wa.createElement(Se.Z,null,Wa.createElement("b",{style:{color:"#008CFF",fontWeight:500,lineHeight:"19px"},className:"font16"},"\u9898\u76EE\u5217\u8868"),Wa.createElement("span",{style:{color:"#FA8D30",fontWeight:500},className:"font12 ml10"},"\u5171",ho==null?void 0:ho.total_count,"\u9898\xA0[\xA0",ho==null?void 0:ho.total_score,"\u5206\xA0]\xA0"),!(Gr!=null&&Gr.hack_manager)&&Wa.createElement("span",{style:{color:"#FA8D30",fontWeight:500,marginLeft:"auto"},className:"font12"},"\u6211\u7684\u5F97\u5206\xA0:\xA0",ho==null?void 0:ho.work_score,"\u5206")),Wa.createElement("div",{style:{height:1,background:"#1C313F",marginTop:12}}),Wa.createElement(Se.Z,{align:"middle",className:"mt10 mb10"},!(Gr!=null&&Gr.hack_manager)&&Wa.createElement(re.default,{size:"large",className:"mr10",style:{width:104},placeholder:"\u901A\u8FC7\u60C5\u51B5",onChange:ll=>{no.page=1,no.finish_status=ll,Dc(Yo({},no)),Fi()}},Wa.createElement(re.default.Option,{value:""},"\u5168\u90E8"),Wa.createElement(re.default.Option,{value:0},"\u672A\u5F00\u59CB"),Wa.createElement(re.default.Option,{value:1},"\u8FDB\u884C\u4E2D"),Wa.createElement(re.default.Option,{value:2},"\u5DF2\u5B8C\u6210")),Wa.createElement(re.default,{size:"large",className:"mr10",style:{width:104},placeholder:"\u9898\u76EE\u96BE\u5EA6",onChange:ll=>{no.page=1,no.difficult=ll||null,Dc(Yo({},no)),Fi()}},Wa.createElement(re.default.Option,{value:0},"\u5168\u90E8"),Wa.createElement(re.default.Option,{value:1},"\u7B80\u5355"),Wa.createElement(re.default.Option,{value:2},"\u9002\u4E2D"),Wa.createElement(re.default.Option,{value:3},"\u56F0\u96BE")),Wa.createElement(ge.default.Search,{size:"large",onSearch:ll=>{no.name=ll,no.page=1,Dc(Yo({},no)),Fi()},style:{flex:1},placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0\u8FDB\u884C\u641C\u7D22"})),Wa.createElement("div",{className:Ct.list,style:{height:36,background:"#3D445C"}},!(Gr!=null&&Gr.hack_manager)&&Wa.createElement("span",null,"\u72B6\u6001"),Wa.createElement("span",null,"\u5E8F\u53F7"),Wa.createElement("span",{style:{flex:1}},"\u9898\u76EE\u540D\u79F0"),Wa.createElement("span",{style:{flexBasis:48,paddingRight:0}},"\u96BE\u5EA6")),Wa.createElement("div",{style:{overflow:"auto",flex:1}},(Br=ho==null?void 0:ho.data)!=null&&Br.length?(Wl=ho==null?void 0:ho.data)==null?void 0:Wl.map((ll,ba)=>Wa.createElement("div",{onClick:()=>du(void 0,null,function*(){let Jn=yield(0,ye.ZP)(`/api/problems/${ll==null?void 0:ll.identifier}/start.json`,{method:"get",params:{hack_user_id:Gr==null?void 0:Gr.user_id}});Jn&&(Ce.history.replace(`/myproblems/${Jn==null?void 0:Jn.identifier}${window.location.search}`),window.location.reload())}),className:`${Ct.list} ${ll!=null&&ll.checked?Ct.active:""}`},!(Gr!=null&&Gr.hack_manager)&&Wa.createElement(Wa.Fragment,null,!(ll!=null&&ll.opened)&&Wa.createElement("span",{style:{color:"#E02020"}},"\u672A\u5F00\u59CB"),(ll==null?void 0:ll.opened)&&!(ll!=null&&ll.passed)&&Wa.createElement("span",{style:{color:"#FA6400"}},"\u8FDB\u884C\u4E2D"),(ll==null?void 0:ll.opened)&&(ll==null?void 0:ll.passed)&&Wa.createElement("span",{style:{color:"#24C074"}},"\u5DF2\u5B8C\u6210")),Wa.createElement("span",null,(no.page-1)*20+(ba+1)),Wa.createElement("span",{style:{flex:1},title:ll.name},`[${ll==null?void 0:ll.score}\u5206]`,"\xA0",ll.name),Wa.createElement("span",{style:{flexBasis:48,paddingRight:0}},Gu[ll.difficult]))):Wa.createElement(Qt.Z,null)),Wa.createElement(st.Z,{current:no.page,className:"mt20",hideOnSinglePage:!0,total:ho==null?void 0:ho.count,pageSize:no.per_page,onChange:(ll,ba)=>{no.page=ll,no.per_page=ba,Fi()}})),Wa.createElement(De.Z,{rootClassName:Ct.tour,closeIcon:!1,open:!!_i,steps:ac,gap:{offset:3,radius:2}}))},Cl=z(62522),ol=z(53814),ti=z(88508),io=z(97917),Xo=z(43462),Sn=z(93137),Li=z(11579),ic=z(94184),lc=z.n(ic),tc=z(96325),nc=z(67132),Jl=z(52262),Vs=z(45180),ri=z(22707),Gs=z(8861),Wu=z(67294),Qi=Object.defineProperty,pc=Object.defineProperties,vs=Object.getOwnPropertyDescriptors,fs=Object.getOwnPropertySymbols,ps=Object.prototype.hasOwnProperty,so=Object.prototype.propertyIsEnumerable,sc=(yn,fa,va)=>fa in yn?Qi(yn,fa,{enumerable:!0,configurable:!0,writable:!0,value:va}):yn[fa]=va,Wo=(yn,fa)=>{for(var va in fa||(fa={}))ps.call(fa,va)&&sc(yn,va,fa[va]);if(fs)for(var va of fs(fa))so.call(fa,va)&&sc(yn,va,fa[va]);return yn},bi=(yn,fa)=>pc(yn,vs(fa)),cc=(yn,fa)=>{var va={};for(var Vr in yn)ps.call(yn,Vr)&&fa.indexOf(Vr)<0&&(va[Vr]=yn[Vr]);if(yn!=null&&fs)for(var Vr of fs(yn))fa.indexOf(Vr)<0&&so.call(yn,Vr)&&(va[Vr]=yn[Vr]);return va},ts=(yn,fa,va)=>new Promise((Vr,Bl)=>{var Gr=Qr=>{try{Dl(va.next(Qr))}catch(Kr){Bl(Kr)}},El=Qr=>{try{Dl(va.throw(Qr))}catch(Kr){Bl(Kr)}},Dl=Qr=>Qr.done?Vr(Qr.value):Promise.resolve(Qr.value).then(Gr,El);Dl((va=va.apply(yn,fa)).next())});const{Countdown:Hc}=ke.default,Nc={Java:"java",C:"c",Python:"py","C++":"c"};var Pc=(yn=>(yn[yn.SET_LOADING=0]="SET_LOADING",yn[yn.GET_DATA=1]="GET_DATA",yn[yn.GET_SUBMIT_RECORDS=2]="GET_SUBMIT_RECORDS",yn[yn.SET_DATA=3]="SET_DATA",yn[yn.SET_DEBUGING=4]="SET_DEBUGING",yn[yn.SET_SUBMITING=5]="SET_SUBMITING",yn[yn.SET_EXECUTE_MESSAGE=6]="SET_EXECUTE_MESSAGE",yn[yn.SET_EXECUTE_RESULT=7]="SET_EXECUTE_RESULT",yn[yn.SET_SUBMIT_RESULT=8]="SET_SUBMIT_RESULT",yn[yn.SET_SHOW_NOTE=9]="SET_SHOW_NOTE",yn[yn.SET_PAGE=10]="SET_PAGE",yn))(Pc||{});function Rr(){return new Date().getTime()}const vr={loading:!0,data:void 0,showNote:!1,debugResult:void 0,submitResult:void 0,debuging:!1,submitting:!1,submitRecords:void 0,submitRecordPage:1,executingMessage:""};function fl(yn,fa){switch(fa.type){case 1:return Wo(Wo({},yn),fa.payload);case 3:return bi(Wo({},yn),{data:fa.payload});case 0:return bi(Wo({},yn),{loading:fa.payload});case 9:return bi(Wo({},yn),{showNote:fa.payload});case 4:return bi(Wo({},yn),{debuging:fa.payload});case 5:return bi(Wo({},yn),{submitting:fa.payload});case 2:return bi(Wo({},yn),{submitRecords:fa.payload});case 10:return bi(Wo({},yn),{submitRecordPage:fa.payload});case 6:return bi(Wo({},yn),{executingMessage:fa.payload});case 7:return Wo(Wo({},yn),fa.payload);case 8:return Wo(Wo({},yn),fa.payload);default:throw new Error}}var Wr=({children:yn})=>{var fa,va,Vr,Bl,Gr,El,Dl,Qr,Kr,Do;const[Co,Br]=(0,a.useReducer)(fl,vr),{id:Wl}=(0,Ce.useParams)(),hi=(0,Ce.useLocation)(),[bu]=(0,Ce.useSearchParams)(),{loading:ns,data:cl,debugResult:is,submitResult:li,submitRecords:_i,submitRecordPage:as,showNote:ho,debuging:oi,submitting:Zi,executingMessage:Ss}=Co,[ss,Os]=(0,a.useState)("#37AD83"),[Es,ws]=(0,a.useState)(null),[no,Dc]=(0,a.useState)({}),[Oc,Ts]=(0,a.useState)(!0),[ks,Fi]=(0,a.useState)(!1),[ac,ll]=(0,a.useState)(!1),ba=(0,a.useRef)(null),Jn=(0,a.useRef)(0),cr=cl==null?void 0:cl.user,$n=cl==null?void 0:cl.hack,[Ql,Bo]=(0,a.useState)(!1),ao=(0,a.useRef)(1),Ui=(0,a.useRef)(!1);(0,tc.y)(bu.get("type")==="exercises");const{setOpenDisableCopyAndPaste:xs}=(0,tc.X)(),[Ps,vi]=(0,a.useState)(""),Ni=(0,Xo._)(no),[Mc,jc]=(0,a.useState)({open:!1,text:""}),[Is,Cc]=(0,a.useState)(null),dc=(0,a.useRef)(null);(0,a.useEffect)(()=>{var yu;let xu=(yu=$n==null?void 0:$n.homework_extension)==null?void 0:yu.failed_evaluate_num;typeof xu=="number"&&Cc(xu)},[(fa=$n==null?void 0:$n.homework_extension)==null?void 0:fa.failed_evaluate_num]),(0,a.useEffect)(()=>{function yu(){return ts(this,null,function*(){var xu,Al,Yl,Ol,Mu;Ts(!0);const Lr=yield(0,Ae.fu)(Wl,{exercise_id:bu.get("exercisesId")});if(setTimeout(()=>{Ts(!1)},800),Lr.status!==401){try{Lr.hack.code=Je.Base64.decode(Lr.hack.code)}catch(Tr){console.log(Tr)}Lr.hack=bi(Wo({},Lr.hack),{is_program:bu.get("type")==="1"}),Br({type:1,payload:{loading:!1,data:Lr}})}if(bu.get("type")==="exercises"){if(window.self===window.top){window.top.location.href="/";return}let Tr;bu.get("coursesId")=="coursesId"?Tr=yield(0,Ie._F)({categoryId:bu.get("exercisesId"),login:bu.get("login")}):Tr=yield(0,Ie._B)({categoryId:bu.get("exercisesId"),login:bu.get("login")}),Dc(Wo({},Tr)),xs((xu=Tr==null?void 0:Tr.exercise)==null?void 0:xu.forbid_copy),typeof((Al=Tr==null?void 0:Tr.exercise)==null?void 0:Al.left_time)=="number"&&(ws(Date.now()+((Yl=Tr==null?void 0:Tr.exercise)==null?void 0:Yl.left_time)*1e3),setTimeout(()=>{Os("red")},(((Ol=Tr==null?void 0:Tr.exercise)==null?void 0:Ol.left_time)-300>0?((Mu=Tr==null?void 0:Tr.exercise)==null?void 0:Mu.left_time)-300:0)*1e3))}})}Wl&&yu()},[Wl]),(0,a.useEffect)(()=>{var yu;return bu.get("type")==="exercises"&&((yu=no==null?void 0:no.exercise)!=null&&yu.screen_open)&&(window.removeEventListener("blur",Ec,!1),Sn.U.forEach((xu,Al)=>{window.addEventListener(xu,Ec,!1)}),window.addEventListener("blur",Ec,!1),window.focus()),()=>{document.removeEventListener((0,ze.gH)(),Ec)}},[no]),(0,a.useEffect)(()=>{Ps==="1"&&Wl&&$n!=null&&$n.language&&Wc()},[Wl,as,$n==null?void 0:$n.language,Ps]),(0,a.useEffect)(()=>($n!=null&&$n.is_program&&(Jn.current=0,ba.current=setInterval(()=>{Ks()},15e3)),()=>{clearInterval(ba.current)}),[$n==null?void 0:$n.is_program]);const Ks=()=>ts(void 0,null,function*(){let yu=yield(0,ye.ZP)(`/api/myproblems/${Wl}/save_long_time.json`,{method:"get",params:{answer_long_time:Jn.current}})}),Ec=()=>{Ui.current||(0,ze.BU)(),window.parent.postMessage("backExercise","*")};function Wc(){return ts(this,null,function*(){try{const yu=yield(0,Ae.zO)(Wl,{limit:15,page:as,language:$n==null?void 0:$n.language});Br({type:2,payload:yu})}catch(yu){console.log(yu)}})}function bc(yu){Br({type:10,payload:yu})}function Ys(yu){return ts(this,null,function*(){var xu;let Al;(bu.get("ip_limit")==="inner"||bu.get("ip_bind_type")==="true")&&(Al=yield(0,ol.y)({ip_limit:bu.get("ip_limit"),ip_bind:bu.get("ip_bind_type")==="true"}));const Yl=yield(0,Ae.n4)(Wl,{code:Je.Base64.encode(yu||$n.code),language:$n==null?void 0:$n.language,exercise_id:bu.get("exercisesId"),question_id:bu.get("questionId"),ip:Al});return Yl.status===-5&&(0,Ce.getDvaApp)()._store.dispatch({type:"exercise/setActionTabs",payload:{key:"student-unlock",exerciseParams:bi(Wo({errorMessage:Yl==null?void 0:Yl.message},(no==null?void 0:no.exercise)||{}),{exercise_user_id:(xu=no==null?void 0:no.exercise)==null?void 0:xu.exercise_user_id,id:bu.get("exercisesId")})}}),Yl})}function Ac(){return ts(this,null,function*(){if(ao.current=2,!Zi){Br({type:5,payload:!0});try{Un.Z.publish("to-commit-info");const yu=yield Ys();if(console.log(yu,1),yu.status===0){let Lr=function(){return ts(this,null,function*(){const{status:Tr,data:Ml}=yield(0,Ae.rX)(Wl,"submit"),co=Rr()-Mu>(Yl*Ol+3)*1e3;if(Tr!==0&&!co&&setTimeout(Lr,1e3),co){he.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8BC4\u6D4B\u4EE3\u7801\u8D85\u65F6"}),Br({type:5,payload:!1});return}if(Tr===0){Ml.status===2&&he.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8BC4\u6D4B\u4EE3\u7801\u8D85\u65F6"}),(Ml==null?void 0:Ml.status)===0&&bu.get("type")==="1"&&ll(!0),(Ml==null?void 0:Ml.status)!==0&&bu.get("type")==="1"&&Cc(hr=>hr+1);const Tu=yield(0,Ae.zO)(Wl,{limit:15,page:as,language:$n==null?void 0:$n.language});Br({type:8,payload:bi(Wo({},Co),{submitResult:Ml,submitting:!1,submitRecords:Tu})})}})},xu={};if(bu.get("type")==="exercises"?(xu.extras={exercise_id:bu.get("exercisesId"),question_id:bu.get("questionId")},(bu.get("ip_limit")==="inner"||bu.get("ip_bind_type")==="true")&&(xu.extras.ip=yield(0,ol.y)({ip_limit:bu.get("ip_limit"),ip_bind:bu.get("ip_bind_type")==="true"}))):bu.get("type")==="smartPlan"&&(xu.extras={smart_plan_page_item_bank_id:bu.get("smartPlanItemBankId"),simulate:bu.get("simulate")==="true"}),(yield(0,Ae.bM)(Wl,xu)).status===-1&&bu.get("exercisesId")){window.parent.location.href=`/classrooms/${bu.get("coursesId")}/exercise/${bu.get("exercisesId")}/detail`;return}const{time_limit:Yl,test_case_size:Ol}=$n,Mu=Rr();Lr()}else Br({type:5,payload:!1})}catch(yu){console.log(yu),Br({type:5,payload:!1})}Bo(!1)}})}function wc(){return ts(this,null,function*(){ao.current=1,Co.debuging=!0,Br({type:4,payload:!0});try{if((yield Ys()).status===0){let Mu=function(){return ts(this,null,function*(){const{status:Lr,message:Tr,data:Ml}=yield(0,Ae.rX)(Wl,"debug"),co=Rr()-Ol>(xu+3)*1e3;if(Lr!==0&&!co&&(Br({type:6,payload:Tr}),setTimeout(Mu,1e3)),co){he.default.error({title:"\u63D0\u793A",centered:!0,okText:"\u77E5\u9053\u5566",content:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}),Br({type:4,payload:!1}),Br({type:7,payload:bi(Wo({},Co),{debugResult:{status:2},debuging:!1})});return}Lr===0&&(Ml.status===2&&he.default.error({title:"\u63D0\u793A",centered:!0,okText:"\u77E5\u9053\u5566",content:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}),Br({type:4,payload:!1}),Br({type:7,payload:bi(Wo({},Co),{debugResult:Ml,debuging:!1})}))})};const{time_limit:xu}=$n;let Al={input:encodeURIComponent(cl.test_case.input)};if(bu.get("type")==="exercises"&&(Al.exercise_id=bu.get("exercisesId")),(yield(0,Ae.MU)(Wl,Al)).status===-1&&bu.get("exercisesId")){window.parent.location.href=`/classrooms/${bu.get("coursesId")}/exercise/${bu.get("exercisesId")}/detail`;return}const Ol=Rr();Mu()}else Br({type:4,payload:!1})}catch(yu){console.log(yu)}finally{}})}function Vc(yu,xu){const Al=xu?{modify_code:!1}:{};Br({type:3,payload:bi(Wo({},cl),{hack:Wo(bi(Wo({},$n),{code:yu}),Al)})}),Bo(!0)}const hd=yu=>ts(void 0,null,function*(){let xu=yield(0,ye.ZP)(`/api/problems/${$n==null?void 0:$n.identifier}/start.json`,{method:"get",params:{language:yu==="C++"||yu==="c++"?encodeURIComponent(yu):yu,hack_user_id:cr==null?void 0:cr.user_id}});xu.status!==-1&&Ce.history.replace(`/myproblems/${xu==null?void 0:xu.identifier}${window.location.search}`)});function Ms(yu){let xu=yu.target.value;Br({type:3,payload:bi(Wo({},cl),{test_case:{input:xu}})})}function uc(){return ts(this,null,function*(){try{let yu={};bu.get("type")==="exercises"?yu.exercise_id=bu.get("exercisesId"):$n!=null&&$n.homework_common_id&&(yu.homework_common_id=$n==null?void 0:$n.homework_common_id);const xu=yield(0,Ae.H7)(Wl,Wo({},yu));xu.status===401||(Vc(Je.Base64.decode(xu.code)),(bu.get("type")==="exercises"||$n!=null&&$n.homework_common_id)&&Un.Z.publish("to-reset-info"))}catch(yu){console.log(yu)}})}function Ds(){he.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Wu.createElement("p",null,"\u521D\u59CB\u4EE3\u7801\u6709\u4FEE\u6539\uFF0C\u66F4\u65B0\u540E\u5C06\u8986\u76D6\u73B0\u6709\u4EE3\u7801\u54E6~ ",Wu.createElement("br",null),"\u8BF7\u5C06\u60A8\u7F16\u8F91\u7684\u4EE3\u7801\u4FDD\u5B58\u81F3\u672C\u5730\uFF0C\u4EE5\u9632\u4E22\u5931"),onOk(){return ts(this,null,function*(){const yu=yield(0,Ae.fi)(Wl);yu.status===401||Vc(Je.Base64.decode(yu.code),!0)})}})}function cd(){Br({type:9,payload:!0})}function Gc(){Br({type:9,payload:!1})}function wt(yu){return ts(this,null,function*(){yield(0,Ae.MK)(Wl,yu),Br({type:1,payload:{showNote:!1,data:bi(Wo({},cl),{hack:bi(Wo({},$n),{notes:yu.notes})})}})})}const _t={hack:$n,isLoading:Oc,input:(va=cl==null?void 0:cl.test_case)==null?void 0:va.input,is_file:(Vr=cl==null?void 0:cl.test_case)==null?void 0:Vr.is_file,identifier:$n==null?void 0:$n.identifier,attachments_count:cl==null?void 0:cl.attachments_count,language:$n==null?void 0:$n.language,code:$n==null?void 0:$n.code,title:"main."+Nc[$n==null?void 0:$n.language],modify_code:$n==null?void 0:$n.modify_code,notes:$n==null?void 0:$n.notes,debugResult:is,debuging:oi,submitting:Zi,submitResult:li,executingMessage:Ss,onCancelNote:Gc,onAddNote:wt,showNote:ho,user:cr,onShowNote:cd,onSubmitCode:Ac,onChangeCode:Vc,onChangeInput:Ms,onDebugCode:wc,onResetCode:uc,onSyncCode:Ds,onUpdateCode:Ys,onChangeLanguage:hd,isWhiteTheme:ks,setIsWhiteTheme:Fi,topDispatch:Br};function gn(){return ts(this,null,function*(){const{praise_count:yu}=yield(0,Ae.vl)($n.id,{container_type:"Hack",type:1});let xu=bi(Wo({},cl),{hack:bi(Wo({},$n),{praises_count:yu,user_praise:!$n.user_praise})});Br({type:3,payload:xu})})}const Yn={topicId:Wl,submitResult:li,submitRecords:_i,submitting:Zi,page:as,onPageChange:bc,hack:$n,user:cl==null?void 0:cl.user,hack_sets:cl==null?void 0:cl.hack_sets,current_user:cl==null?void 0:cl.current_user,onTriggerPraise:gn,setActiveIndex:vi};console.log(no);const[Ur,Or]=(0,a.useState)(!1),[ql,zr]=(0,a.useState)(!1);(0,a.useEffect)(()=>{const yu=xu=>{if(console.log("event-----",xu),xu.data.type==="showIntelligentTeacherStatus"){const{aiStatus:Al,questionStatus:Yl}=xu.data;if(Or(Al),Yl){let Ol=JSON.parse(localStorage.getItem("smartPlanProgramIds")||"[]");if(Ol.includes(bu.get("smartPlanItemBankId")))return;he.default.info({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",content:Wu.createElement("div",{className:"tc font16"},Yl?"\u8001\u5E08\u5DF2\u7ED3\u675F\u7B54\u9898":"\u8001\u5E08\u5DF2\u7ED3\u675F\u6388\u8BFE","\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u4E86\u3002"),onOk:()=>ts(void 0,null,function*(){Ac(),localStorage.setItem("smartPlanProgramIds",JSON.stringify(Ol.push(bu.get("smartPlanItemBankId"))));let Mu="";bu.get("isMiniprogram")?Mu=`/miniprogram/courseware/study?courses_id=${bu.get("coursesId")}&id=${bu.get("exercisesId")}`:Mu=`/classrooms/${bu.get("coursesId")}/smart_plan/${bu.get("exercisesId")}/ppt_info/info`,window.opener?window.close():Ce.history.push(Mu)})})}}};return window.addEventListener("message",yu),()=>{window.removeEventListener("message",yu)}},[]);const su=()=>{if(bu.get("type")==="exercises")return!1;const yu=Object.entries(($n==null?void 0:$n.homework_extension)||{}).some(([xu,Al])=>xu!=="ai_code_evaluation_promote"&&!!Al);return!!(bu.get("type")==="1"&&((0,Jl.$O)()||yu)||bu.get("type")==="smartPlan"&&(Ur||bu.get("showAi")))};return(0,a.useEffect)(()=>{var yu,xu,Al,Yl,Ol,Mu,Lr;su()&&(Is>((xu=(yu=$n==null?void 0:$n.homework_extension)==null?void 0:yu.ai_guide_data)==null?void 0:xu.evaluation_num)&&jc({open:!0,text:(Yl=(Al=$n==null?void 0:$n.homework_extension)==null?void 0:Al.ai_guide_data)==null?void 0:Yl.evaluation_msg}),(Ol=$n==null?void 0:$n.homework_extension)!=null&&Ol.ai_guide&&Is==0&&!dc.current&&(dc.current=setTimeout(()=>{var Tr,Ml;jc({open:!0,text:(Ml=(Tr=$n==null?void 0:$n.homework_extension)==null?void 0:Tr.ai_guide_data)==null?void 0:Ml.unanswered_msg})},(((Lr=(Mu=$n==null?void 0:$n.homework_extension)==null?void 0:Mu.ai_guide_data)==null?void 0:Lr.unanswered_time)||0)*60*1e3)),dc.current&&Is>0&&clearTimeout(dc.current))},[Is,$n]),Wu.createElement(Wu.Fragment,null,Wu.createElement(Fe.Z,{spinning:ns,delay:500},cl?Wu.createElement("div",{style:{minWidth:"1200px"}},Wu.createElement("header",{className:lc()(Li.Z.header,ks&&Li.Z.whiteHeader)},!((Bl=["smartPlan","exercises"])!=null&&Bl.includes(bu.get("type")))&&Wu.createElement("div",null,Wu.createElement("img",{src:`${me.Z.IMG_SERVER}/images/${cr==null?void 0:cr.image_url}`,alt:"user",width:36}),Wu.createElement("span",{style:{color:ks?"#333":"#B2BACB",fontSize:16}},cr==null?void 0:cr.name)),((Gr=["smartPlan","exercises"])==null?void 0:Gr.includes(bu.get("type")))&&Wu.createElement("div",null,Wu.createElement("div",{className:"exercise_user_info"},"\u59D3\u540D",Wu.createElement("span",{className:"ml10"},((El=no==null?void 0:no.exercise)==null?void 0:El.user_name)||(cr==null?void 0:cr.name)||"--")),Wu.createElement("div",{className:"exercise_user_info ml30"},"\u5B66\u53F7",Wu.createElement("span",{className:"ml10"},((Dl=no==null?void 0:no.exercise)==null?void 0:Dl.student_id)||(cr==null?void 0:cr.student_id)||"--"))),Wu.createElement("h2",{className:"flex-wrp flex_box_column flex_box_center"},Wu.createElement("div",null,$n.name)),(bu.get("type")==="smartPlan"||($n==null?void 0:$n.is_program))&&Wu.createElement(ti.Z,{defaultValue:($n==null?void 0:$n.answer_long_time)||0,onChange:yu=>{Jn.current=yu},className:Li.Z.timepiece}),cr!=null&&cr.hack_manager&&!bu.get("is_smart_plan")?Wu.createElement(Ce.Link,{className:Li.Z.btn_edit,to:bu.get("type")==="1"?bu.get("pageId")?`/problems/newedit/${$n.identifier}?type=1&pageId=${bu.get("pageId")}&backUrl=${bu.get("backUrl")}`:`/problems/newedit/${$n.identifier}?type=1`:bu.get("backUrl")?`/problems/newedit/${$n.identifier}?backUrl=${bu.get("backUrl")}`:`/problems/newedit/${$n.identifier}`}," ",Wu.createElement("i",{className:"iconfont icon-bianji13 font14 mr5"})," \u7F16\u8F91"):null,!!((Qr=no==null?void 0:no.exercise)!=null&&Qr.left_time)&&Wu.createElement(Wu.Fragment,null,Wu.createElement("span",{style:{color:ss,marginRight:6},className:`iconfont icon-daojishi ${Li.Z.djs}`}),Wu.createElement("span",{className:"c-white mr20"},Wu.createElement(Hc,{valueStyle:{color:ss,fontSize:20,fontWeight:500},title:Wu.createElement("span",{style:{color:ss,fontSize:14,marginRight:10},className:"time"},"\u5269\u4F59\u7B54\u9898\u65F6\u957F"),value:Es,onFinish:()=>ts(void 0,null,function*(){const yu=yield(0,Ie.VL)({categoryId:bu.get("exercisesId"),commit_method:2});if((yu==null?void 0:yu.status)===0&&(Ys(),he.default.info({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",content:Wu.createElement("div",{className:"tc font16"},"\u7B54\u9898\u7ED3\u675F\u4E86\uFF0C\u7CFB\u7EDF\u5DF2\u81EA\u52A8\u63D0\u4EA4\u8BD5\u5377",Wu.createElement("br",null),"\u4E0D\u80FD\u518D\u4FEE\u6539\u7B54\u9898"),onOk:()=>ts(void 0,null,function*(){window.parent.location.href=`/classrooms/${bu.get("coursesId")}/exercise/${bu.get("exercisesId")}/detail`})})),(yu==null?void 0:yu.status)===-3){const xu=parseInt(yu==null?void 0:yu.message);ws(Date.now()+xu*1e3)}})}))),(Kr=["smartPlan","exercises"])!=null&&Kr.includes(bu.get("type"))?Wu.createElement(xe.ZP,{type:"primary",onClick:()=>{if(bu.get("type")==="exercises"){const yu=()=>ts(void 0,null,function*(){yield Ys(),Bo(!1),Ni(),Ui.current=!0,Ec()});if(!(_i!=null&&_i.records_count)||Ql){he.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",icon:null,title:"\u63D0\u793A",content:Wu.createElement("div",{style:{color:"#FF0000"}},"\u8BF7\u786E\u8BA4\u4F60\u7684\u7B54\u9898\u5185\u5BB9\u662F\u5426\u8FDB\u884C\u8BC4\u6D4B\u5E76\u63D0\u4EA4\uFF0C\u672A\u8BC4\u6D4B\u5219\u4F1A\u5BFC\u81F4\u8BE5\u9898\u65E0\u6CD5\u83B7\u5F97\u5206\u6570"),onOk:yu});return}yu()}else{let yu="";bu.get("isMiniprogram")=="true"?yu=`/miniprogram/courseware/study?courses_id=${bu.get("coursesId")}&id=${bu.get("exercisesId")}`:yu=`/classrooms/${bu.get("coursesId")}/smart_plan/${bu.get("exercisesId")}/ppt_info/info`,window.opener?window.close():(console.log("11",`program_${bu.get("coursesId")}_${bu.get("exercisesId")}`),console.log(bu.get("isMiniprogram")=="true"),bu.get("isMiniprogram")=="true"?localStorage.removeItem(`iframeprogram_${bu.get("coursesId")}_${bu.get("exercisesId")}`):Ce.history.push(yu))}}},bu.get("type")==="exercises"?"\u8FD4\u56DE\u8BD5\u5377":"\u8FD4\u56DE\u8BFE\u4EF6"," "):Wu.createElement("span",{onClick:()=>{var yu;if(bu.get("backUrl"))Ce.history.push(bu.get("backUrl"));else if(bu.get("type")==="1"){let xu=(yu=localStorage.getItem("program_homework"))==null?void 0:yu.split(",");Ce.history.push(`/classrooms/${xu==null?void 0:xu[0]}/program_homework/${xu==null?void 0:xu[1]}/detail`)}else Ce.history.push("/problemset")}},Wu.createElement(pe.Z,{title:"\u5173\u95ED"},Wu.createElement("i",{style:{color:ks?"#8D929F":"#fff"},className:"iconfont icon-fanhuishijuan font16 "})))),Wu.createElement(Fe.Z,{size:"large",spinning:Oc},Wu.createElement(Me.Z,{className:lc()(Li.Z.myProblems,ks&&Li.Z.whiteMyProblems),leftChild:Wu.createElement(Ir,Wo({},Yn)),rightChild:Wu.createElement(Ti,Wo({},_t))}))):null,Wu.createElement(he.default,{centered:!0,closable:!1,width:680,footer:null,open:ac,className:"oj-modal"},Wu.createElement("section",{className:"oj-modal-content"},Wu.createElement("div",{className:"oj-modal-head"},Wu.createElement("img",{src:Cl,alt:""}),Wu.createElement("i",{onClick:()=>ll(!1),className:"iconfont icon-guanbi1"})),Wu.createElement("aside",null,Wu.createElement("img",{className:"mr30",src:Gs.Z}),"\u8FD0\u884C\u65F6\u95F4:\xA0",Wu.createElement("span",{style:{color:"#75d6ba",marginRight:100}},li==null?void 0:li.execute_time,"ms"),"\u4F18\u4E8E",Wu.createElement("span",{style:{color:"#f3b087",margin:"0 5px"}},(li==null?void 0:li.time_better_than)||100,"%"),"\u7684\u7528\u6237"),Wu.createElement("aside",{className:"mb50"},Wu.createElement("img",{src:ri.Z,className:"mr30"}),Wu.createElement("span",{className:"oj-modal-tt"},Wu.createElement("span",null,Wu.createElement("span",null,"\u5360\u7528\u5185\u5B58:\xA0"),Wu.createElement("span",{className:"c-light-primary"},li==null?void 0:li.execute_memory,"kb")),Wu.createElement("span",null,Wu.createElement("span",null))),"\u4F18\u4E8E",Wu.createElement("span",{style:{color:"#f3b087",margin:"0 5px"}},(li==null?void 0:li.memory_better_than)||100,"%"),"\u7684\u7528\u6237"),Wu.createElement("div",{id:"oj-modal-next",onClick:()=>ts(void 0,null,function*(){var yu;if(li!=null&&li.next_identifier){let xu=yield(0,ye.ZP)(`/api/problems/${li==null?void 0:li.next_identifier}/start.json`,{method:"get",params:{hack_user_id:cr==null?void 0:cr.user_id}});xu&&(Ce.history.replace(`/myproblems/${xu==null?void 0:xu.identifier}${window.location.search}`),window.location.reload())}else{let xu=(yu=localStorage.getItem("program_homework"))==null?void 0:yu.split(",");Ce.history.push(`/classrooms/${xu==null?void 0:xu[0]}/program_homework/${xu==null?void 0:xu[1]}/detail`)}}),className:"oj-modal-btn"},li!=null&&li.next_identifier?"\u8FDB\u5165\u4E0B\u4E00\u9898":"\u56DE\u5230\u4F5C\u4E1A\u8BE6\u60C5\u9875"))),su()&&Wu.createElement(nc.Z,{showData:bu.get("type")==="smartPlan"?{ai_exam_question:!0,ai_syntax_check:!0,ai_code_diagnosis:!0,ai_guidance:!0,ai_q_and_a:!0}:$n==null?void 0:$n.homework_extension,description:$n==null?void 0:$n.description,allShow:(0,Jl.$O)(),code:$n==null?void 0:$n.code,sendParams:{source:"hack",hack_id:Wl},draggableExtraNode:((Do=$n==null?void 0:$n.homework_extension)==null?void 0:Do.ai_guide)&&(Mc==null?void 0:Mc.open)&&Wu.createElement("div",{className:"bg-white rounded-2px-rem p-10px flex item-center justify-between gap-10px",style:{position:"absolute",top:"50%",transform:"translateY(-50%)",right:"75px",width:"400px"}},Wu.createElement("div",{className:"bg-white absolute",style:{WebkitClipPath:"polygon(0 0, 0% 100%, 100% 50%)",clipPath:"polygon(0 0, 0% 100%, 100% 50%)",width:"10px",height:"15px",right:"-10px"}}),Wu.createElement(Vs.Z,{text:(Mc==null?void 0:Mc.text)||""}),Wu.createElement("span",{className:"iconfont icon-tupianguanbi font14 current c-grey-666",onClick:yu=>{jc({open:!1,text:""})}}))})),Wu.createElement(io.Z,{successCb:()=>{ao.current===1?wc():Ac()}}))};function jo({title:yn,modify_code:fa,onSyncCode:va,onShowCodeSetting:Vr,onResetCode:Bl,hack:Gr,onChangeLanguage:El,isWhiteTheme:Dl,onShowResourceCentre:Qr,attachments_count:Kr}){var Do;const Co=()=>{he.default.confirm({title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801",icon:Wu.createElement(oe.Z,null),content:"\u4F60\u5728\u672C\u6587\u4EF6\u4E2D\u4FEE\u6539\u7684\u5185\u5BB9\u5C06\u4E22\u5931\uFF0C\u662F\u5426\u786E\u5B9A\u91CD\u65B0\u52A0\u8F7D\u521D\u59CB\u4EE3\u7801\uFF1F",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Bl})},[Br]=(0,Ce.useSearchParams)(),Wl=Br.get("language"),hi=bu=>bu==="1"?"c++":bu==="2"?"C++":bu;return(0,a.useEffect)(()=>{Wl&&El(hi(Wl))},[]),(0,a.useEffect)(()=>{Gr!=null&&Gr.tpm_code_modified&&he.default.confirm({title:"\u66F4\u65B0\u521D\u59CB\u4EE3\u7801",icon:Wu.createElement(oe.Z,null),content:Wu.createElement("div",null,Wu.createElement("div",null,"\u7F16\u7A0B\u9898\u7684\u521D\u59CB\u4EE3\u7801\u5185\u5BB9\u6709\u66F4\u65B0,"),Wu.createElement("div",null,"\u66F4\u65B0\u64CD\u4F5C\u5C06\u4FDD\u7559\u5DF2\u5B8C\u6210\u7684\u8BC4\u6D4B\u8BB0\u5F55\u548C\u6210\u7EE9,"),Wu.createElement("div",null,"\u8FD8\u672A\u5B8C\u6210\u8BC4\u6D4B\u7684\u4EFB\u52A1\u4EFB\u52A1\u4EE3\u7801\uFF0C\u8BF7\u81EA\u884C\u4FDD\u5B58\uFF01")),centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Bl()})},[Gr==null?void 0:Gr.language]),console.log(Gr,Dl,"hack"),Wu.createElement("div",{className:`${Li.Z.codeHead} ${Dl?Li.Z.whiteCodeHead:""}`},Wu.createElement("div",{className:Li.Z.navWrap},(Do=Gr==null?void 0:Gr.all_language)==null?void 0:Do.map(bu=>Wu.createElement("div",{className:`${Li.Z.nav} ${bu===(Gr==null?void 0:Gr.language)?Li.Z.active:""}`,key:bu,onClick:()=>El(bu)},Wu.createElement(pe.Z,{title:"\u7F16\u7A0B\u8BED\u8A00"},Wu.createElement("i",{className:"iconfont icon-bianchengyuyan1"})),Wu.createElement("span",null,bu)))),Wu.createElement(Se.Z,{align:"middle",style:{marginLeft:"auto"}},fa?Wu.createElement("a",{title:"\u66F4\u65B0\u901A\u77E5",onClick:va},Wu.createElement("img",{src:ht,alt:"notice",style:{height:13,transform:"translateY(-2px)"}})):null,Kr>0&&Wu.createElement("a",{onClick:Qr},Wu.createElement(pe.Z,{title:"\u8D44\u6E90\u4E2D\u5FC3"},Wu.createElement("i",{style:{color:"#8D929F"},className:"iconfont icon-ziyuanzhongxin mr15"}))),Wu.createElement("a",{onClick:Co},Wu.createElement(pe.Z,{title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801"},Wu.createElement("i",{style:{color:"#8D929F"},className:"iconfont icon-huifuchushihuashezhi mr15"}))),Wu.createElement("a",{onClick:Vr},Wu.createElement(pe.Z,{title:"\u8BBE\u7F6E"},Wu.createElement("i",{style:{color:"#8D929F"},className:"iconfont icon-shezhi8 font14 mr15"})))))}function Ti(yn){var fa=yn,{input:va,is_file:Vr,identifier:Bl,showNote:Gr,onShowNote:El,notes:Dl,onCancelNote:Qr,onAddNote:Kr,debugResult:Do,language:Co,debuging:Br,submitting:Wl,executingMessage:hi,code:bu,onSubmitCode:ns,onDebugCode:cl,onChangeCode:is,onChangeInput:li,onUpdateCode:_i,user:as,isLoading:ho,submitResult:oi}=fa,Zi=cc(fa,["input","is_file","identifier","showNote","onShowNote","notes","onCancelNote","onAddNote","debugResult","language","debuging","submitting","executingMessage","code","onSubmitCode","onDebugCode","onChangeCode","onChangeInput","onUpdateCode","user","isLoading","submitResult"]);function Ss(Os,Es){return Wu.createElement(jo,bi(Wo({},Zi),{onShowCodeSetting:Os,onShowResourceCentre:Es}))}const ss=Wo({input:va,is_file:Vr,debugResult:Do,debuging:Br,submitting:Wl,executingMessage:hi,onDebugCode:cl,onChangeCode:is,onSubmitCode:ns,onChangeInput:li,user:as,submitResult:oi},Zi);return Wu.createElement("div",{style:{display:"flex",flexDirection:"column",height:"100%",background:"#1B2333"}},Wu.createElement(yt,{setIsWhiteTheme:Zi==null?void 0:Zi.setIsWhiteTheme,isLoading:ho,language:Co,value:bu,identifier:Bl,onChange:is,onUpdateCode:_i,ActionBarRender:Ss}),Wu.createElement(ot.ZP,Wo({},ss)))}},96707:function(Ft,rt,z){"use strict";z.d(rt,{h:function(){return a}});var a=(Ce=>(Ce[Ce.NOMATCH=-1]="NOMATCH",Ce[Ce.OK=0]="OK",Ce[Ce.TIMEOUT=2]="TIMEOUT",Ce[Ce.PODFAILURE=3]="PODFAILURE",Ce[Ce.COMPILEFAILURE=4]="COMPILEFAILURE",Ce[Ce.EXECUTEFAILURE=5]="EXECUTEFAILURE",Ce[Ce.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",Ce))(a||{})},88742:function(Ft,rt,z){"use strict";z.d(rt,{H7:function(){return E},MK:function(){return oe},MU:function(){return Ie},X6:function(){return Me},bM:function(){return Ae},fi:function(){return y},fu:function(){return Se},n4:function(){return x},rX:function(){return me},vl:function(){return b},zO:function(){return ze}});var a=z(33170),Ce=Object.defineProperty,ke=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,xe=(ee,te,ne)=>te in ee?Ce(ee,te,{enumerable:!0,configurable:!0,writable:!0,value:ne}):ee[te]=ne,pe=(ee,te)=>{for(var ne in te||(te={}))he.call(te,ne)&&xe(ee,ne,te[ne]);if(ke)for(var ne of ke(te))Fe.call(te,ne)&&xe(ee,ne,te[ne]);return ee};function Se(ee,te){return(0,a.U2)(`myproblems/${ee}.json`,pe({hidePopLogin:!0},te||{}))}function Ae(ee,te){return(0,a.v_)(`myproblems/${ee}/code_submit.json`,te)}function Ie(ee,te){return(0,a.v_)(`myproblems/${ee}/code_debug.json`,te)}function ze(ee,te){return te.language&&(te.language=encodeURIComponent(te.language)),(0,a.U2)(`myproblems/${ee}/submit_records.json`,te)}function Me(ee){return(0,a.U2)("myproblems/record_detail.json",{id:ee})}function me(ee,te){return(0,a.U2)(`myproblems/${ee}/result.json`,{mode:te})}function oe(ee,te){return(0,a.v_)(`myproblems/${ee}/add_notes.json`,te)}function E(ee,te){return(0,a.v_)(`myproblems/${ee}/restore_initial_code.json`,te)}function y(ee){return(0,a.v_)(`myproblems/${ee}/sync_code.json`)}function x(ee,te){return(0,a.v_)(`myproblems/${ee}/update_code.json`,te)}function b(ee,te){return(0,a.v_)(`discusses/${ee}/plus.json`,te)}},38884:function(Ft,rt,z){"use strict";z.d(rt,{Z:function(){return Gc}});var a=z(67294),Ce={flex_box_center:"flex_box_center___bZaL5",flex_space_between:"flex_space_between___oaJSq",flex_box_vertical_center:"flex_box_vertical_center____hsuP",flex_box_center_end:"flex_box_center_end___ZYbPQ",flex_box_column:"flex_box_column___nE_62",wrap:"wrap___ulhwR",left:"left___kyWln",title:"title___jsO1D",total:"total___GEhiU",list:"list___u9dBZ",name:"name___Wxggs",b:"b___Y15YO",r:"r___mKQoe",l:"l___uelFD",tag:"tag___Mpkbg",right:"right___mQ3dU",examName:"examName___Na1r8",t:"t___IgCWK",num:"num___CXI8j",topWarp:"topWarp___Kicpu",head:"head___jx3W8",so:"so___qYW7F",btn:"btn___EMJDz",content:"content___sHGsV",titleWrap:"titleWrap___I__GR",single:"single___K5iv9",analysis:"analysis___NoAuR",text:"text___xESW2",modalColumn:"modalColumn___I_tK_",modalRow:"modalRow___lyw_U",sup:"sup___HSz3Z",popover:"popover___kE8aI",btn_warp:"btn_warp___fOE2S"},ke=z(91773),he=z(83062),Fe=z(85804),xe=z(62844),pe=z(37720),Se=z(2453),Ae=z(28802),Ie=z(96074),ze=z(84567),Me=z(55241),me=z(71230),oe=z(15746),E=z(14845),y=Object.defineProperty,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,te=(wt,_t,gn)=>_t in wt?y(wt,_t,{enumerable:!0,configurable:!0,writable:!0,value:gn}):wt[_t]=gn,ne=(wt,_t)=>{for(var gn in _t||(_t={}))b.call(_t,gn)&&te(wt,gn,_t[gn]);if(x)for(var gn of x(_t))ee.call(_t,gn)&&te(wt,gn,_t[gn]);return wt};const de=wt=>React.createElement("svg",ne({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},wt),React.createElement("title",null,"\u7F16\u7EC4 6"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"#E4E6FD",width:34,height:34,rx:10}),React.createElement("g",{fillRule:"nonzero"},React.createElement("path",{d:"M13.808 11.448a.558.558 0 0 1 0 .788l-1.564 1.565a.558.558 0 1 1-.789-.79l1.564-1.563a.558.558 0 0 1 .79 0Zm9.882 2.462a.558.558 0 0 1-.789 0l-1.564-1.563a.558.558 0 1 1 .789-.789l1.564 1.564a.556.556 0 0 1 0 .788Z",fill:"#6678EB"}),React.createElement("path",{d:"M21.753 21.707a5.937 5.937 0 1 0-8.58.015l-.937.936a.558.558 0 1 0 .789.788l.995-.994a5.91 5.91 0 0 0 3.436 1.095c1.287 0 2.48-.41 3.452-1.106l.992.992a.558.558 0 1 0 .789-.789l-.936-.937Z",fill:"#6678EB"}),React.createElement("path",{d:"m20.858 18.95-3.024-1.745v-2.054a.558.558 0 1 0-1.117 0v2.351c0 .064.011.126.031.184a.551.551 0 0 0 .258.33l3.293 1.9a.557.557 0 0 0 .559-.966Z",fill:"#FFF"}))));var ye="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSIjRTRFNkZEIiB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIvPjxnIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZD0iTTEzLjgwOCAxMS40NDhhLjU1OC41NTggMCAwIDEgMCAuNzg4bC0xLjU2NCAxLjU2NWEuNTU4LjU1OCAwIDEgMS0uNzg5LS43OWwxLjU2NC0xLjU2M2EuNTU4LjU1OCAwIDAgMSAuNzkgMFptOS44ODIgMi40NjJhLjU1OC41NTggMCAwIDEtLjc4OSAwbC0xLjU2NC0xLjU2M2EuNTU4LjU1OCAwIDEgMSAuNzg5LS43ODlsMS41NjQgMS41NjRhLjU1Ni41NTYgMCAwIDEgMCAuNzg4WiIgZmlsbD0iIzY2NzhFQiIvPjxwYXRoIGQ9Ik0yMS43NTMgMjEuNzA3YTUuOTM3IDUuOTM3IDAgMSAwLTguNTguMDE1bC0uOTM3LjkzNmEuNTU4LjU1OCAwIDEgMCAuNzg5Ljc4OGwuOTk1LS45OTRhNS45MSA1LjkxIDAgMCAwIDMuNDM2IDEuMDk1YzEuMjg3IDAgMi40OC0uNDEgMy40NTItMS4xMDZsLjk5Mi45OTJhLjU1OC41NTggMCAxIDAgLjc4OS0uNzg5bC0uOTM2LS45MzdaIiBmaWxsPSIjNjY3OEVCIi8+PHBhdGggZD0ibTIwLjg1OCAxOC45NS0zLjAyNC0xLjc0NXYtMi4wNTRhLjU1OC41NTggMCAxIDAtMS4xMTcgMHYyLjM1MWMwIC4wNjQuMDExLjEyNi4wMzEuMTg0YS41NTEuNTUxIDAgMCAwIC4yNTguMzNsMy4yOTMgMS45YS41NTcuNTU3IDAgMCAwIC41NTktLjk2NloiIGZpbGw9IiNGRkYiLz48L2c+PC9nPjwvc3ZnPg==",fe=z(65226),ve=z(35973),Ne=z(28706),Le=z(33170),Re=Object.defineProperty,He=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,Ue=(wt,_t,gn)=>_t in wt?Re(wt,_t,{enumerable:!0,configurable:!0,writable:!0,value:gn}):wt[_t]=gn,Ye=(wt,_t)=>{for(var gn in _t||(_t={}))We.call(_t,gn)&&Ue(wt,gn,_t[gn]);if(He)for(var gn of He(_t))Ge.call(_t,gn)&&Ue(wt,gn,_t[gn]);return wt};const it=wt=>React.createElement("svg",Ye({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},wt),React.createElement("title",null,"\u7F16\u7EC4 12"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{width:34,height:34,rx:10,fill:"#EAF3F4"}),React.createElement("path",{d:"M25.905 15.37a.775.775 0 0 0-.626-.529l-4.814-.7-2.152-4.362a.776.776 0 0 0-1.392 0l-2.153 4.363-4.814.699a.775.775 0 0 0-.43 1.323l3.484 3.396-.823 4.794a.777.777 0 0 0 1.126.818l4.306-2.264 4.305 2.264a.778.778 0 0 0 .817-.059.777.777 0 0 0 .31-.759l-.823-4.794 3.483-3.396a.777.777 0 0 0 .196-.795Z",fill:"#21C0A6",fillRule:"nonzero"})));var lt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIgZmlsbD0iI0VBRjNGNCIvPjxwYXRoIGQ9Ik0yNS45MDUgMTUuMzdhLjc3NS43NzUgMCAwIDAtLjYyNi0uNTI5bC00LjgxNC0uNy0yLjE1Mi00LjM2MmEuNzc2Ljc3NiAwIDAgMC0xLjM5MiAwbC0yLjE1MyA0LjM2My00LjgxNC42OTlhLjc3NS43NzUgMCAwIDAtLjQzIDEuMzIzbDMuNDg0IDMuMzk2LS44MjMgNC43OTRhLjc3Ny43NzcgMCAwIDAgMS4xMjYuODE4bDQuMzA2LTIuMjY0IDQuMzA1IDIuMjY0YS43NzguNzc4IDAgMCAwIC44MTctLjA1OS43NzcuNzc3IDAgMCAwIC4zMS0uNzU5bC0uODIzLTQuNzk0IDMuNDgzLTMuMzk2YS43NzcuNzc3IDAgMCAwIC4xOTYtLjc5NVoiIGZpbGw9IiMyMUMwQTYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvZz48L3N2Zz4=",Bt=Object.defineProperty,ct=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,yt=(wt,_t,gn)=>_t in wt?Bt(wt,_t,{enumerable:!0,configurable:!0,writable:!0,value:gn}):wt[_t]=gn,ht=(wt,_t)=>{for(var gn in _t||(_t={}))nt.call(_t,gn)&&yt(wt,gn,_t[gn]);if(ct)for(var gn of ct(_t))Ze.call(_t,gn)&&yt(wt,gn,_t[gn]);return wt};const Je=wt=>React.createElement("svg",ht({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},wt),React.createElement("title",null,"\u9898\u76EE"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"#E7F3FF",width:34,height:34,rx:10}),React.createElement("g",{fill:"#4C6FFF",fillRule:"nonzero"},React.createElement("path",{d:"m23.719 13.325-4.098-3.94c-.097-.13-.225-.162-.355-.162-.129 0-.258.064-.387.161l-7.55 7.753c-.065.065-.098.162-.13.227l-1.032 5.427c-.033.194.032.323.16.484.13.13.227.162.389.162h.096l4.776-1.099c.097-.032.194-.064.258-.161l7.841-8.108c.194-.162.194-.517.033-.744h-.001Zm-8.1 8.044a.534.534 0 0 1-.386.162.56.56 0 0 1-.388-.162l-3-2.81c-.226-.194-.226-.517-.033-.743.194-.227.517-.227.743-.033l3 2.811c.259.226.291.55.065.776ZM17 22.92h6.844v1.055H17z"}))));var ot="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSIjRTdGM0ZGIiB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIvPjxnIGZpbGw9IiM0QzZGRkYiIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZD0ibTIzLjcxOSAxMy4zMjUtNC4wOTgtMy45NGMtLjA5Ny0uMTMtLjIyNS0uMTYyLS4zNTUtLjE2Mi0uMTI5IDAtLjI1OC4wNjQtLjM4Ny4xNjFsLTcuNTUgNy43NTNjLS4wNjUuMDY1LS4wOTguMTYyLS4xMy4yMjdsLTEuMDMyIDUuNDI3Yy0uMDMzLjE5NC4wMzIuMzIzLjE2LjQ4NC4xMy4xMy4yMjcuMTYyLjM4OS4xNjJoLjA5Nmw0Ljc3Ni0xLjA5OWMuMDk3LS4wMzIuMTk0LS4wNjQuMjU4LS4xNjFsNy44NDEtOC4xMDhjLjE5NC0uMTYyLjE5NC0uNTE3LjAzMy0uNzQ0aC0uMDAxWm0tOC4xIDguMDQ0YS41MzQuNTM0IDAgMCAxLS4zODYuMTYyLjU2LjU2IDAgMCAxLS4zODgtLjE2MmwtMy0yLjgxYy0uMjI2LS4xOTQtLjIyNi0uNTE3LS4wMzMtLjc0My4xOTQtLjIyNy41MTctLjIyNy43NDMtLjAzM2wzIDIuODExYy4yNTkuMjI2LjI5MS41NS4wNjUuNzc2Wk0xNyAyMi45Mmg2Ljg0NHYxLjA1NUgxN3oiLz48L2c+PC9nPjwvc3ZnPg==",Ct=z(14375),kt=z(35567),Mt=z(35566),st=z(73646),ut={wrap:"wrap___OIoOI",modal:"modal___Z3hfU",titleWrap:"titleWrap___aK3oG",required:"required___NHoO7",title:"title___uxb1R",colorGray:"colorGray___O8YPg",choiceWrap:"choiceWrap___t51sb",answer:"answer___vsBnh",activeAnswer:"activeAnswer___AJN4p",deleteIcon:"deleteIcon___WvOJZ",addIcon:"addIcon___UyeIs",editorWrap:"editorWrap___uqcFU",htmlWrap:"htmlWrap___GcBNL",radio:"radio___e8qQ5",color333:"color333___PLzVK",color999:"color999___v3EY0",fold:"fold___OfvPe",head:"head___EejYX",collapseWrapper:"collapseWrapper___sQyVD",panelHeader:"panelHeader___Ivicf",open:"open___aEOQE",close:"close___z4P5H",inputBorder:"inputBorder___ix67O",keywordTag:"keywordTag___iGx08",scoreByBlankRadio:"scoreByBlankRadio___Kwu7q"},un=z(67294),Pn=Object.defineProperty,Rn=Object.defineProperties,bt=Object.getOwnPropertyDescriptors,An=Object.getOwnPropertySymbols,Nn=Object.prototype.hasOwnProperty,Qt=Object.prototype.propertyIsEnumerable,zt=(wt,_t,gn)=>_t in wt?Pn(wt,_t,{enumerable:!0,configurable:!0,writable:!0,value:gn}):wt[_t]=gn,jt=(wt,_t)=>{for(var gn in _t||(_t={}))Nn.call(_t,gn)&&zt(wt,gn,_t[gn]);if(An)for(var gn of An(_t))Qt.call(_t,gn)&&zt(wt,gn,_t[gn]);return wt},sn=(wt,_t)=>Rn(wt,bt(_t)),vt=(wt,_t)=>{var gn={};for(var Yn in wt)Nn.call(wt,Yn)&&_t.indexOf(Yn)<0&&(gn[Yn]=wt[Yn]);if(wt!=null&&An)for(var Yn of An(wt))_t.indexOf(Yn)<0&&Qt.call(wt,Yn)&&(gn[Yn]=wt[Yn]);return gn};const Tt=null,qt=(wt,_t)=>{var gn=wt,{globalSetting:Yn,loading:Ur,dispatch:Or,isEdit:ql,editData:zr}=gn,su=vt(gn,["globalSetting","loading","dispatch","isEdit","editData"]);const[yu,xu]=(0,a.useState)(""),[Al,Yl]=(0,a.useState)(""),[Ol,Mu]=(0,a.useState)([]),[Lr,Tr]=(0,a.useState)(""),[Ml,hl]=(0,a.useState)(),[co,Tu]=(0,a.useState)(!1),[hr,Yr]=(0,a.useState)({}),[ar,Mr]=(0,a.useState)([]);(0,a.useEffect)(()=>{!zr||!ql||(xu(zr==null?void 0:zr.name),Yl(zr==null?void 0:zr.analysis),hl(zr==null?void 0:zr.is_ordered),Yr(zr),Tu(!0))},[zr]),(0,a.useEffect)(()=>{if(!co)return;const wl=zr==null?void 0:zr.standard_answer.map(Yi=>Yi==null?void 0:Yi.answer_text);Mu(wl);const Bi=zr==null?void 0:zr.standard_answer.map(Yi=>Yi==null?void 0:Yi.score);Mr(Bi),Tu(!1)},[co]),(0,a.useImperativeHandle)(_t,()=>({onSave:zo,Clear:Jo}));const zo=()=>{let wl=[],Bi=!1;return yu?(Ol.forEach((Yi,Vo)=>{wl.push({position:Vo+1,answer_text:[],score:ar[Vo]}),Yi==null||Yi.forEach((bs,zc)=>{wl[Vo].answer_text.push(bs),(!bs||!(0,Ne.eR)(bs,1e4))&&(Tr(`${Vo}-${zc}`),Se.ZP.info(bs?"\u7B54\u6848\u4E0D\u80FD\u8D85\u8FC710000\u5B57\u7B26":"\u7B54\u6848\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"),Bi=!0)})}),Bi?!1:(wl==null?void 0:wl.length)>20?(Se.ZP.warning("\u586B\u7A7A\u9898\u6807\u51C6\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A/\u4E0D\u80FD\u8D85\u8FC720\u4E2A\uFF01"),!1):{name:yu,analysis:Al,standard_answers:wl,is_ordered:Ml,downcase:hr==null?void 0:hr.downcase,no_space:hr==null?void 0:hr.no_space,use_blank_score:hr==null?void 0:hr.use_blank_score}):(Se.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1)},Jo=()=>{xu(""),Yl(""),Mu([]),hl(!1)},wi=(wl,Bi,Yi)=>{const Vo=Ol.slice();if(Bi&&Vo.splice(wl,Bi),Yi)for(let bs=0;bs{Tr("");let Vo=Ol.slice();Vo[wl][Bi]=Yi,Mu(Vo)},Ul=wl=>{let Bi=Ol.slice();Bi[wl]=[...Bi[wl],""],Mu(Bi)},Xs=(wl,Bi)=>{let Yi=Ol.slice();if(!Yi[wl][Bi]){Yi[wl]=Yi[wl].filter((Vo,bs)=>bs!==Bi),Mu(Yi);return}xe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:ut.modal,onOk:()=>{Yi[wl]=Yi[wl].filter((Vo,bs)=>bs!==Bi),Mu(Yi)}})},Js=wl=>{xe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:ut.modal,onOk:()=>{let Bi=Ol.slice();Bi=Ol.filter((Yi,Vo)=>wl!==Vo),Mu(Bi)}})};return un.createElement("section",{className:ut.wrap},un.createElement("p",{className:ut.titleWrap},un.createElement("span",{className:ut.required},"*"),un.createElement("span",{className:ut.title},"\u9898\u5E72\uFF1A")),un.createElement("div",null,un.createElement(Mt.Z,{id:"completion-question-tittle",placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE",height:155,defaultValue:yu,onChange:wl=>xu(wl),showNullButton:!0,onPlaceholderChange:wi})),un.createElement("div",{className:"mt20"},Ol.map((wl,Bi)=>un.createElement("div",{style:{display:"flex"}},un.createElement("div",{style:{flex:1}},un.createElement(st.Z,{key:Bi,answers:wl,index:Bi,flex:1,is_md:!0,activeOptionErrorIndex:Lr,onAnswerChange:ys,addChildAnswer:Ul,deleteChildAnswer:Xs,deleteChildAnswermain:Js})),hr.use_blank_score&&un.createElement("div",{style:{display:"flex",alignItems:"center",width:"165px"}},un.createElement("span",{style:{color:"red",margin:"auto 5px auto 10px"}},"*"),"\u5206\u503C\uFF1A",un.createElement(pe.Z,{style:{width:"100px"},size:"large",defaultValue:ar[Bi],onBlur:Yi=>{ar[Bi]=Yi.target.value,Mr([...ar])}}))))),un.createElement("div",null,un.createElement(ze.default,{className:`${ut.color333} font14 mt20`,checked:hr.use_blank_score,onChange:wl=>Yr(sn(jt({},hr),{use_blank_score:wl.target.checked}))},"\u5224\u5206\u65F6\u6309\u7A7A\u7ED9\u5206"),un.createElement("span",{style:{color:"#999999",fontSize:"12px"}},"\uFF08\u9009\u4E2D\uFF0C\u5219\u9700\u8981\u8BBE\u7F6E\u6BCF\u7A7A\u5206\u503C\uFF0C\u5B66\u751F\u7B54\u6848\u5224\u5206\u65F6\u6309\u7A7A\u7ED9\u5206\uFF09")),un.createElement("div",null,un.createElement(ze.default,{className:`${ut.color333} font14 mt20`,checked:hr.downcase,onChange:wl=>Yr(sn(jt({},hr),{downcase:wl.target.checked}))},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),un.createElement("div",null,un.createElement(ze.default,{className:`${ut.color333} font14 mt20`,checked:hr.no_space,onChange:wl=>Yr(sn(jt({},hr),{no_space:wl.target.checked}))},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),un.createElement("div",{className:"mt20"},(Ol==null?void 0:Ol.length)>1&&un.createElement("span",null,un.createElement(ze.default,{checked:Ml,onChange:wl=>hl(wl.target.checked),className:`${ut.color333} font14`},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),un.createElement("span",{className:`${ut.color999} font12`},"\uFF08\u9009\u4E2D\uFF0C\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u987A\u5E8F\u5FC5\u987B\u4E0E\u53C2\u8003\u7B54\u6848\u4E00\u81F4\uFF09"))),un.createElement("p",{className:ut.titleWrap},un.createElement("span",{className:ut.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),un.createElement(kt.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Al,onChange:wl=>Yl(wl)}))};var St=(0,ve.connect)(({loading:wt,globalSetting:_t})=>({globalSetting:_t,loading:wt.effects}),null,null,{forwardRef:!0})((0,a.forwardRef)(qt)),Ke=z(98813),ln=Object.getOwnPropertySymbols,Un=Object.prototype.hasOwnProperty,Ca=Object.prototype.propertyIsEnumerable,Cu=(wt,_t)=>{var gn={};for(var Yn in wt)Un.call(wt,Yn)&&_t.indexOf(Yn)<0&&(gn[Yn]=wt[Yn]);if(wt!=null&&ln)for(var Yn of ln(wt))_t.indexOf(Yn)<0&&Ca.call(wt,Yn)&&(gn[Yn]=wt[Yn]);return gn};const Da=null,nr=(wt,_t)=>{var gn=wt,{globalSetting:Yn,loading:Ur,editData:Or,dispatch:ql,onRef:zr=()=>{},isEdit:su}=gn,yu=Cu(gn,["globalSetting","loading","editData","dispatch","onRef","isEdit"]);const[xu,Al]=(0,a.useState)(),[Yl,Ol]=(0,a.useState)(""),[Mu,Lr]=(0,a.useState)("");(0,a.useEffect)(()=>{if(!Or||!su)return;Ol(Or==null?void 0:Or.name),Lr(Or==null?void 0:Or.analysis);const hl=Or==null?void 0:Or.choices.find(co=>co.is_answer);Al(hl.choice_text==="\u6B63\u786E"?"0":"1")},[Or]),(0,a.useImperativeHandle)(_t,()=>({onSave:Tr,Clear:Ml}));const Tr=()=>Yl?xu?{name:Yl,choices:[{choice_text:"\u6B63\u786E",is_answer:xu==="0"?1:0},{choice_text:"\u9519\u8BEF",is_answer:xu==="1"?1:0}],analysis:Mu}:(Se.ZP.info("\u8BF7\u5148\u70B9\u51FB\u9009\u62E9\u672C\u9009\u62E9\u9898\u7684\u6B63\u786E\u9009\u9879"),!1):(Se.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1),Ml=()=>{Ol(""),Lr(""),Al("")};return a.createElement("section",{className:ut.wrap},a.createElement("p",{className:ut.titleWrap},a.createElement("span",{className:ut.required},"*"),a.createElement("span",{className:ut.title},"\u9898\u5E72\uFF1A")),a.createElement(kt.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Yl,onChange:hl=>Ol(hl)}),a.createElement("p",{className:ut.titleWrap},a.createElement("span",{className:ut.required},"*"),a.createElement("span",{className:ut.title},"\u7B54\u6848\u9009\u9879\uFF1A",a.createElement("span",{className:ut.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),a.createElement(Ke.ZP.Group,{buttonStyle:"solid",value:xu,onChange:hl=>Al(hl.target.value)},a.createElement(Ke.ZP.Button,{value:"0",className:`${ut.radio} mr40`},"\u6B63\u786E"),a.createElement(Ke.ZP.Button,{value:"1",className:ut.radio},"\u9519\u8BEF")),a.createElement("p",{className:ut.titleWrap},a.createElement("span",{className:ut.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),a.createElement(kt.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Mu,onChange:hl=>Lr(hl)}))};var cu=(0,ve.connect)(({loading:wt,globalSetting:_t})=>({globalSetting:_t,loading:wt.effects}),null,null,{forwardRef:!0})((0,a.forwardRef)(nr)),or=Object.getOwnPropertySymbols,Aa=Object.prototype.hasOwnProperty,Zt=Object.prototype.propertyIsEnumerable,xn=(wt,_t)=>{var gn={};for(var Yn in wt)Aa.call(wt,Yn)&&_t.indexOf(Yn)<0&&(gn[Yn]=wt[Yn]);if(wt!=null&&or)for(var Yn of or(wt))_t.indexOf(Yn)<0&&Zt.call(wt,Yn)&&(gn[Yn]=wt[Yn]);return gn};const vl=null,Er=(wt,_t)=>{var gn=wt,{globalSetting:Yn,loading:Ur,editData:Or,dispatch:ql,onRef:zr=()=>{},isEdit:su}=gn,yu=xn(gn,["globalSetting","loading","editData","dispatch","onRef","isEdit"]);const[xu,Al]=(0,a.useState)([]);(0,a.useEffect)(()=>{var Lr;if(!Or||!su)return;const Tr=(Lr=Or==null?void 0:Or.shixun)==null?void 0:Lr.challenges.map(Ml=>({id:Ml==null?void 0:Ml.id,score:Ml.score}));Al(Tr)},[Or]),(0,a.useImperativeHandle)(_t,()=>({onSave:Yl,Clear:Ol}));const Yl=()=>({challenges:[...xu]}),Ol=()=>{Al([])};console.log("editData--",Or);const Mu=Lr=>{var Tr,Ml;return a.createElement("div",null,(Ml=(Tr=Lr==null?void 0:Lr.shixun)==null?void 0:Tr.challenges)==null?void 0:Ml.map((hl,co)=>{var Tu;return a.createElement("div",{className:"c-grey-666 font14 ml25",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"15px"}},a.createElement("div",null,a.createElement("span",{className:"mr5"},"\u7B2C",co+1,"\u5173"),a.createElement(he.Z,{key:co,title:hl==null?void 0:hl.challenge_name},a.createElement("span",null,(0,Ne.Pq)(hl==null?void 0:hl.challenge_name,44)))),a.createElement("p",{style:{marginBottom:0}},a.createElement("span",{className:ut.required},"*"),a.createElement("span",{className:ut.title},"\u5206\u503C\uFF1A"),a.createElement(pe.Z,{precision:1,min:1,max:100,className:ut.baseFormItem,style:{width:176},value:(Tu=xu.find(hr=>hr.id===hl.id))==null?void 0:Tu.score,onChange:hr=>{xu.find(Yr=>Yr.id===hl.id).score=hr,Al([...xu])}})))}),a.createElement("div",{style:{clear:"both"}}))};return a.createElement("section",{className:ut.wrap},a.createElement(fe.Z,{style:{paddingRight:10},className:ut.titleHtml,value:`${Or==null?void 0:Or.position}\u3001${Or==null?void 0:Or.name}`}),a.createElement("p",{style:{marginBottom:"10px",marginTop:"25px"}},a.createElement("span",{className:ut.required},"*"),a.createElement("span",{className:ut.title},"\u5173\u5361")),Mu(Or))};var er=(0,ve.connect)(({loading:wt,globalSetting:_t})=>({globalSetting:_t,loading:wt.effects}),null,null,{forwardRef:!0})((0,a.forwardRef)(Er)),Pa=Object.getOwnPropertySymbols,Za=Object.prototype.hasOwnProperty,qn=Object.prototype.propertyIsEnumerable,Vn=(wt,_t)=>{var gn={};for(var Yn in wt)Za.call(wt,Yn)&&_t.indexOf(Yn)<0&&(gn[Yn]=wt[Yn]);if(wt!=null&&Pa)for(var Yn of Pa(wt))_t.indexOf(Yn)<0&&qn.call(wt,Yn)&&(gn[Yn]=wt[Yn]);return gn};const Qa=["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"],gu=(wt,_t)=>{var gn=wt,{editData:Yn,globalSetting:Ur,loading:Or,dispatch:ql,onRef:zr=()=>{},isEdit:su}=gn,yu=Vn(gn,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[xu,Al]=(0,a.useState)([]),[Yl,Ol]=(0,a.useState)(),[Mu,Lr]=(0,a.useState)([]),[Tr,Ml]=(0,a.useState)(""),[hl,co]=(0,a.useState)("");(0,a.useEffect)(()=>{Al(["","","",""])},[]),(0,a.useEffect)(()=>{if(!Yn||!su)return;Ml(Yn==null?void 0:Yn.name),co(Yn==null?void 0:Yn.analysis),Al(Yn==null?void 0:Yn.choices.map(ar=>ar.choice_text));const Yr=[];Yn==null||Yn.choices.map((ar,Mr)=>{ar.is_answer&&Yr.push(Mr)}),Lr(Yr)},[Yn]),(0,a.useImperativeHandle)(_t,()=>({onSave:Tu,Clear:hr}));const Tu=()=>{if(!Tr)return Se.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;const Yr=xu.findIndex(Mr=>!Mr);if(Yr>-1)return Se.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${Qa[Yr]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!Mu.length)return Se.ZP.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;if(Mu.length<2)return Se.ZP.info("\u591A\u9009\u9898\u6700\u5C0F\u6B63\u786E\u9009\u9879\u4E3A2\u4E2A"),!1;const ar=xu.map((Mr,zo)=>({choice_text:Mr,is_answer:Mu.includes(zo)?1:0}));return{name:Tr,choices:ar,analysis:hl}},hr=()=>{Al(["","","",""]),Ml(""),co(""),Lr("")};return a.createElement("section",{className:ut.wrap},a.createElement("p",{className:ut.titleWrap},a.createElement("span",{className:ut.required},"*"),a.createElement("span",{className:ut.title},"\u9898\u5E72\uFF1A")),a.createElement(kt.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Tr,onChange:Yr=>Ml(Yr)}),a.createElement("p",{className:ut.titleWrap},a.createElement("span",{className:ut.required},"*"),a.createElement("span",{className:ut.title},"\u7B54\u6848\u9009\u9879\uFF1A",a.createElement("span",{className:ut.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),xu.map((Yr,ar)=>a.createElement("div",{className:ut.choiceWrap,key:ar},a.createElement(he.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},a.createElement("div",{className:`${ut.answer} ${Mu.includes(ar)?ut.activeAnswer:""}`,onClick:()=>{Mu.includes(ar)?Lr(Mu.filter(Mr=>Mr!==ar)):Lr([...Mu,ar])}},Qa[ar])),a.createElement("div",{className:ut.editorWrap},Yl===ar?a.createElement(kt.Z,{id:`single-question-option-${ar}`,watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:Yr,onChange:Mr=>{xu[ar]=Mr,Al(xu)}}):a.createElement("div",{className:ut.htmlWrap,onClick:()=>Ol(ar)},a.createElement(fe.Z,{value:Yr}))),ar>1&&a.createElement(he.Z,{title:"\u5220\u9664"},a.createElement("i",{className:`${ut.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>{Al(xu.filter((Mr,zo)=>zo!==ar)),Mu.includes(ar)?Lr(Mu.filter(Mr=>Mr!==ar)):Lr([...Mu,ar])}})),ar<7&&ar===xu.length-1&&a.createElement(he.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},a.createElement("i",{className:`${ut.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>Al([...xu,""])})))),a.createElement("p",{className:ut.titleWrap},a.createElement("span",{className:ut.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),a.createElement(kt.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:hl,onChange:Yr=>co(Yr)}))};var _u=(0,ve.connect)(({loading:wt,globalSetting:_t})=>({globalSetting:_t,loading:wt.effects}),null,null,{forwardRef:!0})((0,a.forwardRef)(gu)),ir=Object.getOwnPropertySymbols,ul=Object.prototype.hasOwnProperty,On=Object.prototype.propertyIsEnumerable,Jt=(wt,_t)=>{var gn={};for(var Yn in wt)ul.call(wt,Yn)&&_t.indexOf(Yn)<0&&(gn[Yn]=wt[Yn]);if(wt!=null&&ir)for(var Yn of ir(wt))_t.indexOf(Yn)<0&&On.call(wt,Yn)&&(gn[Yn]=wt[Yn]);return gn};const _n=["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"],Gn=(wt,_t)=>{var gn=wt,{editData:Yn,globalSetting:Ur,loading:Or,dispatch:ql,onRef:zr=()=>{},isEdit:su}=gn,yu=Jt(gn,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[xu,Al]=(0,a.useState)([]),[Yl,Ol]=(0,a.useState)(),[Mu,Lr]=(0,a.useState)(),[Tr,Ml]=(0,a.useState)(""),[hl,co]=(0,a.useState)("");(0,a.useEffect)(()=>{Al(["","","",""])},[]),(0,a.useEffect)(()=>{if(!Yn||!su)return;const Yr=[],ar=[];Yn==null||Yn.choices.forEach((Mr,zo)=>{Yr.push(Mr.choice_text),Mr.is_answer&&ar.push(zo)}),Ml(Yn==null?void 0:Yn.name),co(Yn==null?void 0:Yn.analysis),Al(Yr),Lr(ar)},[Yn]),(0,a.useImperativeHandle)(_t,()=>({onSave:Tu,Clear:hr}));const Tu=()=>{if(!Tr)return Se.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;const Yr=xu.findIndex(Mr=>!Mr);if(Yr>-1)return Se.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${_n[Yr]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!Array.isArray(Mu))return Se.ZP.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;const ar=xu.map((Mr,zo)=>({choice_text:Mr,is_answer:Mu.includes(zo)?1:0}));return{name:Tr,choices:ar,analysis:hl}},hr=()=>{Al(["","","",""]),Ml(""),co(""),Lr("")};return a.createElement("section",{className:ut.wrap},a.createElement("p",{className:ut.titleWrap},a.createElement("span",{className:ut.required},"*"),a.createElement("span",{className:ut.title},"\u9898\u5E72\uFF1A")),a.createElement(kt.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Tr,onChange:Yr=>Ml(Yr)}),a.createElement("p",{className:ut.titleWrap},a.createElement("span",{className:ut.required},"*"),a.createElement("span",{className:ut.title},"\u7B54\u6848\u9009\u9879\uFF1A",a.createElement("span",{className:ut.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),xu.map((Yr,ar)=>a.createElement("div",{className:ut.choiceWrap,key:ar},a.createElement(he.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},a.createElement("div",{className:`${ut.answer} ${Mu!=null&&Mu.includes(ar)?ut.activeAnswer:""}`,onClick:()=>Lr([ar])},_n[ar])),a.createElement("div",{className:ut.editorWrap},Yl===ar?a.createElement(kt.Z,{id:`single-question-option-${ar}`,watch:!0,height:155,isFocus:!0,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:Yr,onChange:Mr=>{xu[ar]=Mr,Al(xu)}}):a.createElement("div",{className:ut.htmlWrap,onClick:()=>Ol(ar)},a.createElement(fe.Z,{value:Yr}))),ar>1&&a.createElement(he.Z,{title:"\u5220\u9664"},a.createElement("i",{className:`${ut.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>{Al(xu.filter((Mr,zo)=>zo!==ar)),ar===Mu&&Lr(null)}})),ar<7&&ar===xu.length-1&&a.createElement(he.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},a.createElement("i",{className:`${ut.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>Al([...xu,""])})))),a.createElement("p",{className:ut.titleWrap},a.createElement("span",{className:ut.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),a.createElement(kt.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:hl,onChange:Yr=>co(Yr)}))};var ua=(0,ve.connect)(({loading:wt,globalSetting:_t})=>({globalSetting:_t,loading:wt.effects}),null,null,{forwardRef:!0})((0,a.forwardRef)(Gn)),oa=z(66309),Ta=z(59637),hu=z(17663),ft=z(67294),re=Object.defineProperty,ge=Object.defineProperties,De=Object.getOwnPropertyDescriptors,Xe=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,Ot=Object.prototype.propertyIsEnumerable,Lt=(wt,_t,gn)=>_t in wt?re(wt,_t,{enumerable:!0,configurable:!0,writable:!0,value:gn}):wt[_t]=gn,Wn=(wt,_t)=>{for(var gn in _t||(_t={}))tt.call(_t,gn)&&Lt(wt,gn,_t[gn]);if(Xe)for(var gn of Xe(_t))Ot.call(_t,gn)&&Lt(wt,gn,_t[gn]);return wt},ra=(wt,_t)=>ge(wt,De(_t)),xa=(wt,_t)=>{var gn={};for(var Yn in wt)tt.call(wt,Yn)&&_t.indexOf(Yn)<0&&(gn[Yn]=wt[Yn]);if(wt!=null&&Xe)for(var Yn of Xe(wt))_t.indexOf(Yn)<0&&Ot.call(wt,Yn)&&(gn[Yn]=wt[Yn]);return gn},Kn=(wt,_t,gn)=>new Promise((Yn,Ur)=>{var Or=su=>{try{zr(gn.next(su))}catch(yu){Ur(yu)}},ql=su=>{try{zr(gn.throw(su))}catch(yu){Ur(yu)}},zr=su=>su.done?Yn(su.value):Promise.resolve(su.value).then(Or,ql);zr((gn=gn.apply(wt,_t)).next())});const Du=wt=>{if(!wt)return!1;if(/^s*$/.test(wt)||wt.trim()===""){Se.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let _t=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return wt==="|"?(Se.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},la=({value:wt=[],onClose:_t})=>ft.createElement(oa.default,{closable:!0,onClose:_t,className:ut.keywordTag},ft.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},wt.join(" \u6216 "))),lu=(wt,_t)=>{var gn=wt,{editData:Yn,globalSetting:Ur,loading:Or,dispatch:ql,onRef:zr=()=>{},isEdit:su}=gn,yu=xa(gn,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[xu,Al]=(0,a.useState)(""),[Yl,Ol]=(0,a.useState)(""),[Mu,Lr]=(0,a.useState)(""),[Tr,Ml]=(0,a.useState)(""),[hl]=ke.default.useForm(),co=ke.default.useWatch("use_keywords",hl);(0,a.useEffect)(()=>{var ar;!Yn||!su||(Al(Yn==null?void 0:Yn.name),Ol(Yn==null?void 0:Yn.analysis),Lr((ar=Yn==null?void 0:Yn.answer_texts)==null?void 0:ar[0]),hl.setFieldsValue(Wn({},Yn)))},[Yn]),(0,a.useImperativeHandle)(_t,()=>({onSave:Tu,Clear:hr}));const Tu=()=>Kn(void 0,null,function*(){if(!xu)return Se.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;try{yield hl.validateFields()}catch(Mr){Se.ZP.error(Mr.errorFields[0].errors[0]);return}const ar=hl.getFieldsValue();return console.log(ar,"values"),Wn({name:xu,answer_texts:[Mu],analysis:Yl},ar)}),hr=()=>{Al(""),Ol(""),Lr(""),hl.resetFields()},Yr=Yn==null?void 0:Yn.score;return ft.createElement("section",{className:ut.wrap},ft.createElement("p",{className:ut.titleWrap},ft.createElement("span",{className:ut.required},"*"),ft.createElement("span",{className:ut.title},"\u9898\u5E72\uFF1A")),ft.createElement(kt.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:xu,onChange:ar=>Al(ar)}),ft.createElement("p",{className:ut.titleWrap},ft.createElement("span",{className:ut.title},"\u53C2\u8003\u7B54\u6848\uFF1A")),ft.createElement(kt.Z,{id:"single-question-reference-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u53C2\u8003\u7B54\u6848",defaultValue:Mu,onChange:ar=>Lr(ar)}),ft.createElement("p",{className:ut.titleWrap},ft.createElement("span",{className:ut.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),ft.createElement(kt.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Yl,onChange:ar=>Ol(ar)}),ft.createElement(ke.default,{form:hl,size:"large",onFinishFailed:ar=>Kn(void 0,null,function*(){var Mr,zo;Se.ZP.error(ar.errorFields[0].errors[0]),hl.scrollToField((zo=(Mr=ar==null?void 0:ar.errorFields)==null?void 0:Mr[0])==null?void 0:zo.name,{behavior:"smooth",block:"center"})})},ft.createElement(me.Z,{align:"middle",className:"mb30 mt20"},ft.createElement(ke.default.Item,{noStyle:!0,name:"use_keywords",valuePropName:"checked"},ft.createElement(Ta.Z,null)),ft.createElement(oe.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),ft.createElement(oe.Z,null,ft.createElement(he.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},ft.createElement(hu.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),co&&ft.createElement(ke.default.List,{name:"keywords",rules:[{validator(ar,Mr){return Mr!=null&&Mr.length?(Mr==null?void 0:Mr.reduce((Jo,wi)=>Jo+wi.score,0))>parseFloat(Yr)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD"))}}]},(ar,{add:Mr,remove:zo})=>ft.createElement(ft.Fragment,null,ft.createElement("div",{className:"mb10"},"\u5173\u952E\u8BCD"),ft.createElement(me.Z,{align:"middle",className:"font14 mb30"},ft.createElement(oe.Z,{flex:1},ft.createElement(Ae.default,{value:Tr,onChange:Jo=>{Ml(Jo.target.value)},maxLength:50,allowClear:!0,onPressEnter:Jo=>{var wi,ys,Ul,Xs;const Js=`${(wi=Jo.target)==null?void 0:wi.value}`,wl=(Ul=(ys=Js==null?void 0:Js.split("|"))==null?void 0:ys.filter(Vo=>!!Vo))==null?void 0:Ul.map(Vo=>Vo==null?void 0:Vo.trim()),Bi=hl.getFieldValue("keywords"),Yi=((Xs=Bi==null?void 0:Bi.map(Vo=>Vo==null?void 0:Vo.keyword))==null?void 0:Xs.flat())||[];for(const Vo of wl)if(Yi.includes(Vo)){Se.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Du(Js)&&(Mr({keyword:wl,score:1}),Ml(""))},className:ut.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),ft.createElement(oe.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),ar.map(Jo=>{var wi=Jo,{key:ys,name:Ul}=wi,Xs=xa(wi,["key","name"]);return ft.createElement(me.Z,{key:ys,style:{marginRight:148}},ft.createElement(oe.Z,{flex:1},ft.createElement(me.Z,{align:"middle",justify:"space-between"},ft.createElement(ke.default.Item,ra(Wn({},Xs),{name:[Ul,"keyword"]}),ft.createElement(la,{onClose:()=>zo(Ul)})),ft.createElement(ke.default.Item,ra(Wn({},Xs),{name:[Ul,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),ft.createElement(pe.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))})))))};var Ga=(0,ve.connect)(({loading:wt,globalSetting:_t})=>({globalSetting:_t,loading:wt.effects}),null,null,{forwardRef:!0})((0,a.forwardRef)(lu)),Ea=z(69234),ga={wrap:"wrap___Cc0gS",deleteIcon:"deleteIcon___ebwMv",keywordTag:"keywordTag___lUfL5",questionTitleEditorWrap:"questionTitleEditorWrap___u9UgK",choiceWrap:"choiceWrap___VHsr3",choiceIndex:"choiceIndex___rsj9r",judgementIndex:"judgementIndex___fMm6E",setAnswerBtn:"setAnswerBtn___krVC9",activeAnswer:"activeAnswer___WiYo2",activeJudgementAnswer:"activeJudgementAnswer___M6iww",actionWrapper:"actionWrapper___oKI8_",addIcon:"addIcon___eMbGP",inputBorder:"inputBorder___ob_6x",placeholder:"placeholder___Vkwr4",blankWrapper:"blankWrapper____MZQ5",blankInput:"blankInput___ephwY",blankInputNumberWrapper:"blankInputNumberWrapper___C1UJS",addBtn:"addBtn___qRBpJ",blankIndex:"blankIndex___QsKgf",baseInputWrapper:"baseInputWrapper___juqCB",collapseWrapper:"collapseWrapper___kAXJ0",panelHeader:"panelHeader___hLTSe",open:"open___wWDjf",close:"close___XPTJ0",hide:"hide___VytUy"},jn=z(40043),Hu=z(24018),Hr=Object.defineProperty,Wa=Object.defineProperties,rl=Object.getOwnPropertyDescriptors,sr=Object.getOwnPropertySymbols,uu=Object.prototype.hasOwnProperty,ya=Object.prototype.propertyIsEnumerable,Ua=(wt,_t,gn)=>_t in wt?Hr(wt,_t,{enumerable:!0,configurable:!0,writable:!0,value:gn}):wt[_t]=gn,zi=(wt,_t)=>{for(var gn in _t||(_t={}))uu.call(_t,gn)&&Ua(wt,gn,_t[gn]);if(sr)for(var gn of sr(_t))ya.call(_t,gn)&&Ua(wt,gn,_t[gn]);return wt},Ki=(wt,_t)=>Wa(wt,rl(_t)),Yo=(wt,_t)=>{var gn={};for(var Yn in wt)uu.call(wt,Yn)&&_t.indexOf(Yn)<0&&(gn[Yn]=wt[Yn]);if(wt!=null&&sr)for(var Yn of sr(wt))_t.indexOf(Yn)<0&&ya.call(wt,Yn)&&(gn[Yn]=wt[Yn]);return gn};const fo=wt=>{var _t=wt,{value:gn,onChange:Yn,scrollId:Ur}=_t,Or=Yo(_t,["value","onChange","scrollId"]);return a.createElement("div",{id:Ur||""},a.createElement(kt.Z,Ki(zi({},Or),{defaultValue:gn,onChange:(ql,zr)=>{zr!=null&&zr.length?Yn(ql,zr):Yn(ql)}})))},du=({value:wt,onChange:_t,placeholder:gn,height:Yn=140,isEdit:Ur})=>Ur?a.createElement(kt.Z,{watch:!0,isFocus:!0,height:Yn,placeholder:gn,defaultValue:wt,onChange:_t}):a.createElement("div",{style:{cursor:"pointer"}},wt?a.createElement(fe.Z,{className:ga.inputBorder,value:wt}):a.createElement("div",{className:`${ga.inputBorder} ${ga.placeholder}`},gn));var Gu=z(67294),pl=Object.defineProperty,Ir=Object.defineProperties,Cl=Object.getOwnPropertyDescriptors,ol=Object.getOwnPropertySymbols,ti=Object.prototype.hasOwnProperty,io=Object.prototype.propertyIsEnumerable,Xo=(wt,_t,gn)=>_t in wt?pl(wt,_t,{enumerable:!0,configurable:!0,writable:!0,value:gn}):wt[_t]=gn,Sn=(wt,_t)=>{for(var gn in _t||(_t={}))ti.call(_t,gn)&&Xo(wt,gn,_t[gn]);if(ol)for(var gn of ol(_t))io.call(_t,gn)&&Xo(wt,gn,_t[gn]);return wt},Li=(wt,_t)=>Ir(wt,Cl(_t)),ic=(wt,_t)=>{var gn={};for(var Yn in wt)ti.call(wt,Yn)&&_t.indexOf(Yn)<0&&(gn[Yn]=wt[Yn]);if(wt!=null&&ol)for(var Yn of ol(wt))_t.indexOf(Yn)<0&&io.call(wt,Yn)&&(gn[Yn]=wt[Yn]);return gn};const lc=["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"],tc=({value:wt,onChange:_t,choiceTextKey:gn,answerKey:Yn,index:Ur,isEdit:Or,setInputActive:ql,form:zr,choiceOptionsPath:su,allowChangeMode:yu,showAddIcon:xu,addItem:Al,deleteItem:Yl})=>{const Ol=(wt==null?void 0:wt[Yn])===!0,Mu=()=>{const Tr=zr.getFieldValue(su);zr.setFieldValue(su,Tr.map(Ml=>Li(Sn({},Ml),{[Yn]:!1})))},Lr=()=>{Ol?_t(Li(Sn({},wt),{[Yn]:!1})):(yu||Mu(),_t(Li(Sn({},wt),{[Yn]:!0})))};return Gu.createElement(me.Z,{className:ga.choiceWrap,align:"middle",wrap:!1},Gu.createElement(oe.Z,{onClick:Lr,className:`${ga.choiceIndex} ${Ol?ga.activeAnswer:""}`},lc[Ur]),Gu.createElement(oe.Z,{flex:1,className:`${ga.editorWrap} ml15`,onClick:ql},Gu.createElement(du,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:Or,value:wt==null?void 0:wt[gn],onChange:Tr=>{_t(Li(Sn({},wt),{[gn]:Tr}))}})),Gu.createElement(oe.Z,{flex:"0 0 auto",className:"ml15"},Gu.createElement("div",{onClick:Lr,className:`${ga.setAnswerBtn} ${Ol?ga.activeAnswer:""}`},Ol?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),Gu.createElement(oe.Z,{className:ga.actionWrapper},Gu.createElement(he.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},Gu.createElement(jn.Z,{className:ga.addIcon,onClick:Al,style:{visibility:xu?"visible":"hidden"}})),Gu.createElement(he.Z,{title:"\u5220\u9664"},Gu.createElement(Hu.Z,{className:ga.deleteIcon,onClick:Yl,style:{visibility:Ur>1?"visible":"hidden"}}))))},nc=({questionTitlePlaceholder:wt,titleKey:_t,choiceKey:gn,analysisKey:Yn,choiceTextKey:Ur,answerKey:Or,choiceOptionsPath:ql,allowChangeMode:zr=!0,form:su,showAnalysis:yu=!0})=>{const[xu,Al]=(0,a.useState)(),[Yl,Ol]=(0,a.useState)(!1);return Gu.createElement("div",{className:ga.wrap},Gu.createElement("div",{className:ga.questionTitleEditorWrap},Gu.createElement(ke.default.Item,{label:"\u9898\u5E72",name:_t,labelCol:{span:24},rules:[{required:!0}]},Gu.createElement(fo,{scrollId:Array.isArray(_t)?_t.join("_"):`${_t}`,watch:!0,height:140,placeholder:wt}))),Gu.createElement(ke.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),Gu.createElement(ke.default.List,{name:gn,rules:[{validator(Mu,Lr){const Tr=Lr.some(hl=>hl[Or]),Ml=Lr.findIndex(hl=>{var co;return((co=hl[Ur])==null?void 0:co.length)<=0});return Ml!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${lc[Ml]}\u9009\u9879\u7684\u5185\u5BB9`)):Tr?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(Mu,{add:Lr,remove:Tr})=>Gu.createElement("div",{id:Array.isArray(ql)?ql.join("_"):`${ql}`},Mu.map((Ml,hl)=>{var co=Ml,{key:Tu,name:hr}=co,Yr=ic(co,["key","name"]);const ar=xu===Tu,Mr=()=>{Al(Tu)},zo=hl<7&&hl===Mu.length-1,Jo=()=>Lr({[Ur]:"",[Or]:0}),wi=()=>Tr(hr);return Gu.createElement(ke.default.Item,Li(Sn({},Yr),{key:Tu,name:hr,noStyle:!0}),Gu.createElement(tc,{choiceTextKey:Ur,answerKey:Or,index:hl,isEdit:ar,setInputActive:Mr,form:su,choiceOptionsPath:ql,allowChangeMode:zr,showAddIcon:zo,addItem:Jo,deleteItem:wi}))}),Mu.length<8&&Gu.createElement("div",{className:`${ga.addBtn} mb30`,onClick:()=>Lr({[Ur]:"",[Or]:0})},"\u6DFB\u52A0\u9009\u9879"))),yu&&Gu.createElement("div",{onClick:()=>Ol(!0)},Gu.createElement(ke.default.Item,{name:Yn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Gu.createElement(du,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Yl}))))};var Jl=z(67294),Vs=Object.defineProperty,ri=Object.defineProperties,Gs=Object.getOwnPropertyDescriptors,Wu=Object.getOwnPropertySymbols,Qi=Object.prototype.hasOwnProperty,pc=Object.prototype.propertyIsEnumerable,vs=(wt,_t,gn)=>_t in wt?Vs(wt,_t,{enumerable:!0,configurable:!0,writable:!0,value:gn}):wt[_t]=gn,fs=(wt,_t)=>{for(var gn in _t||(_t={}))Qi.call(_t,gn)&&vs(wt,gn,_t[gn]);if(Wu)for(var gn of Wu(_t))pc.call(_t,gn)&&vs(wt,gn,_t[gn]);return wt},ps=(wt,_t)=>ri(wt,Gs(_t)),so=(wt,_t)=>{var gn={};for(var Yn in wt)Qi.call(wt,Yn)&&_t.indexOf(Yn)<0&&(gn[Yn]=wt[Yn]);if(wt!=null&&Wu)for(var Yn of Wu(wt))_t.indexOf(Yn)<0&&pc.call(wt,Yn)&&(gn[Yn]=wt[Yn]);return gn};const sc=({value:wt,onChange:_t})=>{const gn=Ur=>{xe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:ga.modal,onOk:()=>{const Or=[...wt];Or.splice(Ur,1),_t(Or)}})},Yn=()=>{const Ur=[...wt];Ur.push(""),_t(Ur)};return Jl.createElement(me.Z,{align:"middle",className:"ml20",gutter:[40,20]},wt==null?void 0:wt.map((Ur,Or)=>Jl.createElement(oe.Z,{key:`${Ur}_${Or}`,className:ga.blankWrapper},Jl.createElement(Ae.default,{className:ga.blankInput,defaultValue:Ur,maxLength:1e3,onBlur:ql=>{const zr=[...wt],su=ql.target.value.trim();zr[Or]=su,_t(zr)}}),Jl.createElement(he.Z,{title:"\u5220\u9664"},Jl.createElement(Hu.Z,{className:ga.deleteIcon,style:{marginLeft:15,visibility:Or>0?"visible":"hidden"},onClick:()=>gn(Or)})))),Jl.createElement(oe.Z,null,Jl.createElement("div",{className:`${ga.addBtn}`,onClick:()=>{Yn()}},"\u65B0\u589E\u7B54\u6848")))},Wo=({value:wt=!0,onChange:_t})=>Jl.createElement(Ta.Z,{checked:!wt,onChange:gn=>{_t(!gn)}}),bi="\u2581",cc=({questionTitlePlaceholder:wt,form:_t,name:gn,scoreByBlank:Yn="use_blank_score",answerKey:Ur,titleKey:Or="name",analysisKey:ql="analysis",isOrdered:zr="is_ordered"})=>{var su,yu;const[xu,Al]=(0,a.useState)(!1),Yl=(Tu,hr)=>{const Yr=hr.line;let ar=0;for(let zo=0;zo{const Mr=Tu.getRange(hr.from,hr.to);let zo=0;if(hr.text.forEach(Jo=>{zo+=Jo.split(bi).length-1}),hr.origin!=="setValue"){if(Mr&&Mr.indexOf(bi)!==-1){const Jo=Mr.split(bi).length-1,wi=Yl(Tu,hr.from);if(console.log(`\u5220\u9664${Jo}\u4E2A\uFF0C \u524D\u9762\u6709${wi}\u4E2A\uFF0C\u65B0\u589E${zo}\u4E2A`),Jo>1){const ys=Array.from({length:Jo},(Ul,Xs)=>wi+Xs);ar(ys)}else ar(wi)}else if(zo>0){const Jo=Yl(Tu,hr.from);console.log(`\u65B0\u589E${zo}\u4E2A\uFF0C\u4E4B\u524D\u6709${Jo}\u4E2A`),Yr(zo,Jo)}}},Mu=()=>{const Tu=_t.getFieldValue(["sub_item_banks",...Ur]);_t.setFieldValue(["sub_item_banks",...Ur],Tu==null?void 0:Tu.map((hr,Yr)=>ps(fs({},hr),{position:Yr+1})))},Lr=(0,a.useRef)(),Tr=(Tu,hr)=>{for(let Yr=0;Yr{Ml.current(Tu),Mu()},co=(yu=(su=_t.getFieldValue("sub_item_banks"))==null?void 0:su[Ur==null?void 0:Ur[0]])==null?void 0:yu[Ur==null?void 0:Ur[1]];return Jl.createElement("div",{className:ga.wrap},Jl.createElement("div",{className:ga.questionTitleEditorWrap},Jl.createElement(ke.default.Item,{label:"\u9898\u5E72",name:Or,labelCol:{span:24},rules:[{required:!0}]},Jl.createElement(fo,{scrollId:"name",watch:!0,height:140,placeholder:wt,showNullButton:!0,onCMBeforeChange:(Tu,hr)=>{Ol(Tu,hr,Tr,hl)}}))),Jl.createElement(ke.default.List,{name:Ur,rules:[{validator(Tu,hr){if((hr==null?void 0:hr.length)===0)return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const Yr of hr){const{answer_text:ar}=Yr||{};if(ar!=null&&ar.some(Mr=>(Mr==null?void 0:Mr.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Tu,{add:hr,remove:Yr},{errors:ar})=>(Lr.current=hr,Ml.current=Yr,Jl.createElement(Jl.Fragment,null,Jl.createElement(ke.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),Tu.map((Mr,zo)=>{var Jo=Mr,{key:wi,name:ys}=Jo,Ul=so(Jo,["key","name"]);return Jl.createElement(me.Z,{className:"mb20",key:wi,align:"middle",wrap:!1},Jl.createElement(oe.Z,{flex:"0 0 auto",className:`${ga.blankIndex}`},"\u586B\u7A7A\u9879",zo+1),Jl.createElement(oe.Z,{flex:1},Jl.createElement(me.Z,{align:"top",justify:"space-between",wrap:!1},Jl.createElement(oe.Z,null,Jl.createElement(ke.default.Item,ps(fs({},Ul),{name:[ys,"answer_text"],noStyle:!0}),Jl.createElement(sc,null))),(_t==null?void 0:_t.getFieldValue(["sub_item_banks",...Yn]))&&Jl.createElement(oe.Z,{flex:"224px"},Jl.createElement(ke.default.Item,ps(fs({},Ul),{name:[ys,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:ga.blankInputNumberWrapper}),Jl.createElement(pe.Z,{className:ga.blankInput,min:.1,max:100,style:{width:"100%"},placeholder:"\u6309\u7A7A\u7ED9\u5206\u8BF7\u8F93\u5165\u5206\u503C"})))),Jl.createElement(ke.default.Item,ps(fs({},Ul),{name:[ys,"position"],noStyle:!0}),Jl.createElement(Ae.default,{type:"hidden"}))))})))),Jl.createElement(me.Z,{align:"middle"},Jl.createElement(ke.default.Item,{name:[gn,"downcase"],valuePropName:"checked"},Jl.createElement(Ta.Z,null)),Jl.createElement(oe.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),Jl.createElement(me.Z,{align:"middle"},Jl.createElement(ke.default.Item,{name:[gn,"no_space"],valuePropName:"checked"},Jl.createElement(Ta.Z,null)),Jl.createElement(oe.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(co==null?void 0:co.length)>1&&Jl.createElement(me.Z,{align:"middle",className:(co==null?void 0:co.length)>1?"mb30":`${ga.hide}`},Jl.createElement(ke.default.Item,{name:zr},Jl.createElement(Wo,null)),Jl.createElement(oe.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),Jl.createElement("div",{onClick:()=>Al(!0)},Jl.createElement(ke.default.Item,{name:ql,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Jl.createElement(du,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:xu}))))};var ts=Object.defineProperty,Hc=Object.defineProperties,Nc=Object.getOwnPropertyDescriptors,Pc=Object.getOwnPropertySymbols,Rr=Object.prototype.hasOwnProperty,vr=Object.prototype.propertyIsEnumerable,fl=(wt,_t,gn)=>_t in wt?ts(wt,_t,{enumerable:!0,configurable:!0,writable:!0,value:gn}):wt[_t]=gn,Wr=(wt,_t)=>{for(var gn in _t||(_t={}))Rr.call(_t,gn)&&fl(wt,gn,_t[gn]);if(Pc)for(var gn of Pc(_t))vr.call(_t,gn)&&fl(wt,gn,_t[gn]);return wt},jo=(wt,_t)=>Hc(wt,Nc(_t)),Ti=(wt,_t)=>{var gn={};for(var Yn in wt)Rr.call(wt,Yn)&&_t.indexOf(Yn)<0&&(gn[Yn]=wt[Yn]);if(wt!=null&&Pc)for(var Yn of Pc(wt))_t.indexOf(Yn)<0&&vr.call(wt,Yn)&&(gn[Yn]=wt[Yn]);return gn};const yn={\u6B63\u786E:"T",\u9519\u8BEF:"F"},fa=({value:wt,onChange:_t,form:gn,choiceKey:Yn})=>{const Ur=(wt==null?void 0:wt.is_answer)===!0,Or=wt==null?void 0:wt.choice_text,ql=()=>{var zr;const su=(zr=gn==null?void 0:gn.getFieldValue(["sub_item_banks",...Yn]))==null?void 0:zr.map(yu=>({choice_text:yu==null?void 0:yu.choice_text,is_answer:!1}));gn==null||gn.setFieldValue(["sub_item_banks",...Yn],su),_t(jo(Wr({},wt),{is_answer:!0}))};return a.createElement(me.Z,{className:ga.choiceWrap,align:"middle",wrap:!1},a.createElement(oe.Z,{onClick:ql,className:`${ga.choiceIndex} ${ga.judgementIndex} ${Ur?ga.activeAnswer:""}`},yn[Or]),a.createElement(oe.Z,{flex:1,className:`${ga.editorWrap} ml15`},a.createElement("div",{className:`${ga.inputBorder} ${ga.placeholder} ${Ur?ga.activeJudgementAnswer:""}`},Or)),a.createElement(oe.Z,{flex:"0 0 auto",className:"ml15"},a.createElement("div",{onClick:ql,className:`${ga.setAnswerBtn} ${Ur?ga.activeAnswer:""}`},Ur?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},va=({questionTitlePlaceholder:wt,choiceKey:_t="choices",form:gn,titleKey:Yn="name",analysisKey:Ur="analysis"})=>{const[Or,ql]=(0,a.useState)(!1);return a.createElement("div",{className:ga.wrap},a.createElement("div",{className:ga.questionTitleEditorWrap},a.createElement(ke.default.Item,{label:"\u9898\u5E72",name:Yn,labelCol:{span:24},rules:[{required:!0}]},a.createElement(fo,{scrollId:"name",watch:!0,height:140,placeholder:wt}))),a.createElement(ke.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},a.createElement(ke.default.List,{name:_t,rules:[{validator(zr,su){return su.some(xu=>(xu==null?void 0:xu.is_answer)===!0)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},zr=>a.createElement("div",{id:"choices"},zr.map(su=>{var yu=su,{key:xu,name:Al}=yu,Yl=Ti(yu,["key","name"]);return a.createElement(ke.default.Item,jo(Wr({},Yl),{key:xu,name:Al,noStyle:!0}),a.createElement(fa,{form:gn,choiceKey:_t}))})))),a.createElement("div",{onClick:()=>ql(!0)},a.createElement(ke.default.Item,{name:Ur,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},a.createElement(du,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Or}))))};var Vr=Object.defineProperty,Bl=Object.defineProperties,Gr=Object.getOwnPropertyDescriptors,El=Object.getOwnPropertySymbols,Dl=Object.prototype.hasOwnProperty,Qr=Object.prototype.propertyIsEnumerable,Kr=(wt,_t,gn)=>_t in wt?Vr(wt,_t,{enumerable:!0,configurable:!0,writable:!0,value:gn}):wt[_t]=gn,Do=(wt,_t)=>{for(var gn in _t||(_t={}))Dl.call(_t,gn)&&Kr(wt,gn,_t[gn]);if(El)for(var gn of El(_t))Qr.call(_t,gn)&&Kr(wt,gn,_t[gn]);return wt},Co=(wt,_t)=>Bl(wt,Gr(_t)),Br=(wt,_t)=>{var gn={};for(var Yn in wt)Dl.call(wt,Yn)&&_t.indexOf(Yn)<0&&(gn[Yn]=wt[Yn]);if(wt!=null&&El)for(var Yn of El(wt))_t.indexOf(Yn)<0&&Qr.call(wt,Yn)&&(gn[Yn]=wt[Yn]);return gn};const Wl=wt=>{var _t=wt,{value:gn,onChange:Yn}=_t,Ur=Br(_t,["value","onChange"]);const Or=ql=>{Yn([ql])};return a.createElement(kt.Z,Co(Do({},Ur),{defaultValue:gn==null?void 0:gn[0],onChange:Or}))},hi=wt=>{if(!wt)return!1;let _t=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return wt==="|"?(Se.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},bu=({value:wt=[],onClose:_t})=>a.createElement(oa.default,{closable:!0,onClose:_t,className:ga.keywordTag},wt==null?void 0:wt.join(" \u6216 ")),ns=({questionTitlePlaceholder:wt,form:_t,showKeywords:gn,isMustKeyWords:Yn=gn,titleKey:Ur="name",analysisKey:Or="analysis",answerTexts:ql="answer_texts",keywords:zr="keywords",useKeywords:su="use_keywords",indexs:yu})=>{const[xu,Al]=(0,a.useState)(!1),[Yl,Ol]=(0,a.useState)(""),Mu=ke.default.useWatch("sub_item_banks",_t),{use_keywords:Lr,score:Tr}=(Mu==null?void 0:Mu[yu])||{};return console.log(Lr,Tr,"itemValues"),a.createElement("div",{className:ga.wrap},a.createElement("div",{className:ga.questionTitleEditorWrap},a.createElement(ke.default.Item,{label:"\u9898\u5E72",name:Ur,labelCol:{span:24},rules:[{required:!0}]},a.createElement(fo,{scrollId:"name",watch:!0,height:140,placeholder:wt}))),a.createElement(ke.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:ql,labelCol:{span:24}},a.createElement(Wl,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),gn&&!Yn&&a.createElement(ke.default.Item,{hidden:!0,name:su,valuePropName:"checked"},a.createElement(Ta.Z,{defaultChecked:!0})),gn&&Yn&&a.createElement(me.Z,{align:"middle",className:"mb30"},a.createElement(ke.default.Item,{name:su,valuePropName:"checked"},a.createElement(Ta.Z,null)),a.createElement(oe.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),a.createElement(oe.Z,null,a.createElement(he.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},a.createElement(hu.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(Lr||!Yn)&&a.createElement(ke.default.List,{name:zr,rules:[{validator(Ml,hl){return Yn?hl!=null&&hl.length?(hl==null?void 0:hl.reduce((Tu,hr)=>Tu+hr.score,0))>parseFloat(Tr)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(Ml,{add:hl,remove:co})=>a.createElement(a.Fragment,null,a.createElement("div",{className:`${ga.title} mb10`},Yn?"\u5173\u952E\u8BCD":a.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),a.createElement(me.Z,{align:"middle",className:"font14 mb30"},a.createElement(oe.Z,{flex:1},a.createElement(Ae.default,{value:Yl,onChange:Tu=>{Ol(Tu.target.value)},maxLength:50,allowClear:!0,onPressEnter:Tu=>{var hr,Yr,ar,Mr;const zo=`${(hr=Tu.target)==null?void 0:hr.value}`,Jo=(ar=(Yr=zo==null?void 0:zo.split("|"))==null?void 0:Yr.filter(Ul=>!!Ul))==null?void 0:ar.map(Ul=>Ul==null?void 0:Ul.trim()),wi=_t.getFieldValue(["sub_item_banks",...zr]),ys=((Mr=wi==null?void 0:wi.map(Ul=>Ul==null?void 0:Ul.keyword))==null?void 0:Mr.flat())||[];for(const Ul of Jo)if(ys.includes(Ul)){Se.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}hi(zo)&&(hl({keyword:Jo,score:1}),Ol(""))},className:ga.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),a.createElement(oe.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),Ml.map(Tu=>{var hr=Tu,{key:Yr,name:ar}=hr,Mr=Br(hr,["key","name"]);return a.createElement(me.Z,{key:Yr,className:"mb20",style:{marginRight:148}},a.createElement(oe.Z,{flex:1},a.createElement(me.Z,{align:"middle",justify:"space-between"},a.createElement(ke.default.Item,Co(Do({},Mr),{name:[ar,"keyword"]}),a.createElement(bu,{onClose:()=>co(ar)})),Yn&&a.createElement(ke.default.Item,Co(Do({},Mr),{name:[ar,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:ga.blankInputNumberWrapper}),a.createElement(pe.Z,{className:ga.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),a.createElement("div",{onClick:()=>Al(!0)},a.createElement(ke.default.Item,{name:Or,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},a.createElement(du,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:xu}))))};var cl=z(67294),is=Object.defineProperty,li=Object.defineProperties,_i=Object.getOwnPropertyDescriptors,as=Object.getOwnPropertySymbols,ho=Object.prototype.hasOwnProperty,oi=Object.prototype.propertyIsEnumerable,Zi=(wt,_t,gn)=>_t in wt?is(wt,_t,{enumerable:!0,configurable:!0,writable:!0,value:gn}):wt[_t]=gn,Ss=(wt,_t)=>{for(var gn in _t||(_t={}))ho.call(_t,gn)&&Zi(wt,gn,_t[gn]);if(as)for(var gn of as(_t))oi.call(_t,gn)&&Zi(wt,gn,_t[gn]);return wt},ss=(wt,_t)=>li(wt,_i(_t)),Os=(wt,_t)=>{var gn={};for(var Yn in wt)ho.call(wt,Yn)&&_t.indexOf(Yn)<0&&(gn[Yn]=wt[Yn]);if(wt!=null&&as)for(var Yn of as(wt))_t.indexOf(Yn)<0&&oi.call(wt,Yn)&&(gn[Yn]=wt[Yn]);return gn},Es=(wt,_t,gn)=>new Promise((Yn,Ur)=>{var Or=su=>{try{zr(gn.next(su))}catch(yu){Ur(yu)}},ql=su=>{try{zr(gn.throw(su))}catch(yu){Ur(yu)}},zr=su=>su.done?Yn(su.value):Promise.resolve(su.value).then(Or,ql);zr((gn=gn.apply(wt,_t)).next())});const{Panel:ws}=Ea.default,no=null,Dc=(wt,_t)=>{var gn=wt,{globalSetting:Yn,loading:Ur,dispatch:Or,editData:ql,onRef:zr=()=>{},isEdit:su}=gn,yu=Os(gn,["globalSetting","loading","dispatch","editData","onRef","isEdit"]);const[xu,Al]=(0,a.useState)(""),[Yl,Ol]=(0,a.useState)([]),[Mu]=ke.default.useForm();(0,a.useEffect)(()=>{!ql||!su||(Al(ql==null?void 0:ql.name),Ol(ql==null?void 0:ql.sub_item_banks),Mu.setFieldsValue(Ss({},ql)))},[ql]),(0,a.useEffect)(()=>{Ol(Mu.getFieldValue("sub_item_banks"))},[ke.default.useWatch("sub_item_banks",Mu)]),(0,a.useImperativeHandle)(_t,()=>({onSave:Lr,Clear:Tr}));const Lr=()=>Es(void 0,null,function*(){if(!xu)return Se.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;try{yield Mu.validateFields()}catch(Yr){return console.log(Yr,"errInfo"),Se.ZP.error(Yr.errorFields[0].errors[0]),!1}const hr=Yl.map(Yr=>Ss({id:Yr.id>1?Yr.id:null},Yr));return{name:xu,sub_item_banks:hr}}),Tr=()=>{Al(""),Ol([])},Ml={single:"\u5355\u9009\u9898",multiple:"\u591A\u9009\u9898",judgement:"\u5224\u65AD\u9898",completion:"\u586B\u7A7A\u9898",subjective:"\u7B80\u7B54\u9898",practical:"\u5B9E\u8BAD\u9898",program:"\u7F16\u7A0B\u9898",bprogram:"\u7A0B\u5E8F\u586B\u7A7A\u9898",combination:"\u7EC4\u5408\u9898"},hl=({value:hr})=>cl.createElement("div",{style:{textAlign:"center",color:"#DF3065",margin:"0 5px"}},hr),[co,Tu]=(0,a.useState)();return cl.createElement("section",{className:ut.wrap},cl.createElement("p",{className:ut.titleWrap},cl.createElement("span",{className:ut.required},"*"),cl.createElement("span",{className:ut.title},"\u9898\u5E72\uFF1A")),cl.createElement(kt.Z,{id:"combination-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:xu,onChange:hr=>Al(hr)}),cl.createElement(ke.default,{form:Mu,autoComplete:"off"},cl.createElement(ke.default.List,{name:"sub_item_banks",rules:[{validator(hr,Yr){return Yr?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(hr,{add:Yr,remove:ar})=>{const Mr=Mu.getFieldValue("sub_item_banks");return cl.createElement(cl.Fragment,null,cl.createElement(Ea.default,{className:hr.length>0?ut.collapseWrapper:"",bordered:!1,expandIcon:({isActive:zo})=>cl.createElement("i",{className:`iconfont icon-weizhankai ${zo?ut.open:ut.close}`,style:{fontSize:14,transition:"all .2s"}})},hr.map((zo,Jo)=>{var wi=zo,{key:ys,name:Ul}=wi,Xs=Os(wi,["key","name"]),Js,wl,Bi,Yi,Vo,bs,zc,mc,dd,Kc,Xl,hc;return cl.createElement(ws,{className:ut.panel,forceRender:!0,header:cl.createElement("div",{className:ut.panelHeader},"\u7B2C",Jo+1,"\u5C0F\u9898",cl.createElement("span",null,"\uFF08",Ml[(Js=Mr==null?void 0:Mr[Ul])==null?void 0:Js.item_type],"\uFF09")),extra:cl.createElement(me.Z,{align:"middle",onClick:xc=>xc.stopPropagation(),style:{display:"flex",alignItems:"center"}},((wl=Mr==null?void 0:Mr[Ul])==null?void 0:wl.item_type)=="completion"&&cl.createElement(ke.default.Item,ss(Ss({},Xs),{name:[Ul,"score"],className:ut.blankInputNumberWrapper,style:{marginBottom:0}}),((Bi=Mr==null?void 0:Mr[Ul])==null?void 0:Bi.item_type)=="completion"&&cl.createElement("div",{style:{display:"flex",alignItems:"center",color:"#191919"}},"\u5171",cl.createElement(hl,{value:(Yi=Mr==null?void 0:Mr[Ul])==null?void 0:Yi.score}),"\u5206")),((Vo=Mr==null?void 0:Mr[Ul])==null?void 0:Vo.item_type)=="completion"&&cl.createElement(cl.Fragment,null,cl.createElement(Ke.ZP.Group,{defaultValue:(bs=Mr==null?void 0:Mr[Ul])==null?void 0:bs.use_blank_score,className:ut.scoreByBlankRadio,style:{marginRight:10},optionType:"button",options:[{label:"\u6309\u7A7A\u7ED9\u5206",value:!0},{label:"\u6309\u9898\u7ED9\u5206",value:!1}],onChange:xc=>{var Yc;console.log(Mu.getFieldsValue()),Mu==null||Mu.setFieldValue(["sub_item_banks",Ul,"use_blank_score"],(Yc=xc==null?void 0:xc.target)==null?void 0:Yc.value),Tu(new Date)}}),cl.createElement(he.Z,{overlayInnerStyle:{width:460},title:cl.createElement("div",null,"\u6309\u7A7A\u7ED9\u5206\uFF1A\u9700\u8981\u5206\u522B\u8BBE\u7F6E\u6BCF\u4E2A\u586B\u7A7A\u9879\u7684\u5206\u503C\uFF0C\u586B\u7A7A\u9879\u7B54\u5BF9\u4E4B\u540E\u5219\u83B7\u5F97\u5BF9\u5E94\u7684\u5206\u503C\u3002",cl.createElement("br",null),"\u6309\u9898\u7ED9\u5206\uFF1A\u7B54\u5BF9\u5168\u90E8\u586B\u7A7A\u9879\u4E4B\u540E\u624D\u80FD\u83B7\u5F97\u8BE5\u5C0F\u9898\u7684\u5206\u503C\u3002")},cl.createElement("i",{className:"icon-tishixiaowenhao font18 c-3061d0"})))),key:ys},cl.createElement(ke.default.Item,ss(Ss({},Xs),{name:Ul}),(((zc=Mr==null?void 0:Mr[Ul])==null?void 0:zc.item_type)=="single"||((mc=Mr==null?void 0:Mr[Ul])==null?void 0:mc.item_type)=="multiple")&&cl.createElement(nc,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((dd=Mr==null?void 0:Mr[Ul])==null?void 0:dd.item_type)!="single",form:Mu,choiceKey:[Ul,"choices"],titleKey:[Ul,"name"],analysisKey:[Ul,"analysis"],choiceOptionsPath:["sub_item_banks",Ul,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((Kc=Mr==null?void 0:Mr[Ul])==null?void 0:Kc.item_type)=="completion"&&cl.createElement(cc,{form:Mu,name:Ul,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",scoreByBlank:[Ul,"use_blank_score"],titleKey:[Ul,"name"],analysisKey:[Ul,"analysis"],isOrdered:[Ul,"is_ordered"],answerKey:[Ul,"standard_answer"],key:co}),((Xl=Mr==null?void 0:Mr[Ul])==null?void 0:Xl.item_type)=="judgement"&&cl.createElement(va,{form:Mu,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[Ul,"name"],analysisKey:[Ul,"analysis"],choiceKey:[Ul,"choices"]}),((hc=Mr==null?void 0:Mr[Ul])==null?void 0:hc.item_type)=="subjective"&&cl.createElement(ns,{showKeywords:!0,form:Mu,titleKey:[Ul,"name"],analysisKey:[Ul,"analysis"],answerTexts:[Ul,"answer_texts"],useKeywords:[Ul,"use_keywords"],keywords:[Ul,"keywords"],indexs:Ul,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"})))})))})))};var Oc=(0,ve.connect)(({loading:wt,globalSetting:_t})=>({globalSetting:_t,loading:wt.effects}),null,null,{forwardRef:!0})((0,a.forwardRef)(Dc)),Ts=z(60580),ks=z(38089),Fi=z(88044),ac=z(57399),ll={flex_box_center:"flex_box_center___xDdtW",flex_space_between:"flex_space_between___J4mFI",flex_box_vertical_center:"flex_box_vertical_center___hDYn6",flex_box_center_end:"flex_box_center_end___H7l1j",flex_box_column:"flex_box_column___TPd2T",questionInfo:"questionInfo___ABq66",label:"label___VQOr7",content:"content____HZ6z",leftPart:"leftPart___YB0y5",rightPart:"rightPart___UVMmS",dragItem:"dragItem___Hbx8k",blackText:"blackText___U4u33",greyText:"greyText___rWIL_",iconWrapper:"iconWrapper___I0kek",contentArea:"contentArea___hGC13",dragging:"dragging___z7VVY",hidden:"hidden___nWAxb",dragIcon:"dragIcon___j91TC",deleteIcon:"deleteIcon___cmCqc",disabled:"disabled___ZlKMj",challengeNameWrapper:"challengeNameWrapper___SpiRb",challengeName:"challengeName___lmQe2",shixunPreviewFooter:"shixunPreviewFooter___u0CzD",shixunInfoWrapper:"shixunInfoWrapper___HzLHD",shixunInfo:"shixunInfo___qaQlF",btnToDetail:"btnToDetail___scXqr",fixedBottom:"fixedBottom___wTBAR",cancelBtn:"cancelBtn___Km4Gi",confirmBtn:"confirmBtn___WrECz",previewBtn:"previewBtn____oGPS",setScoreModalTable:"setScoreModalTable___CjDlp",title:"title___cQWdZ",tipcontent:"tipcontent___A8tZ5",name:"name___CvfT9",tip:"tip___EvoCF",info:"info___y_ayi",img:"img___X9CNn"},ba=z(30001),Jn=z(99678),cr=z(89779),$n=z(9343),Ql=z(26194),Bo=z(20670),Ui=({open:wt,onCancel:_t,onOk:gn})=>{const Yn=(0,Jn.g)(),[Ur,Or,ql,zr]=(0,$n.U)(cr.Gm,{page:1,limit:10,keyword:"",diff:"",shixun_publish_status:"",discipline_id:"",sub_discipline_id:"",type:0,include_shixuns:!0,item_type:"SHIXUN"}),[su,yu]=(0,a.useState)(!1);(0,a.useEffect)(()=>{wt&&ql({page:1,limit:10,type:0},!0).then(Mu=>{(Mu==null?void 0:Mu.shixuns_count)===0&&yu(!0)})},[wt]);const[xu,Al]=(0,a.useState)([]),[Yl,Ol]=(0,a.useState)([]);return a.createElement(xe.default,{title:"\u9009\u62E9\u5B9E\u8BAD\u9898",open:wt,width:948,centered:!0,closable:!0,onCancel:_t,onOk:()=>gn(Yl),destroyOnClose:!0},a.createElement(me.Z,{justify:"space-between",className:"mb20",style:{maxHeight:650}},a.createElement(oe.Z,null,a.createElement(ks.Z,{style:{width:160},size:"large",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:Yn,onChange:Mu=>{ql({page:1,discipline_id:Mu==null?void 0:Mu[0],sub_discipline_id:Mu==null?void 0:Mu[1]})}}),a.createElement(Fi.default,{className:"ml20",style:{width:118},size:"large",placeholder:"\u96BE\u5EA6",allowClear:!0,options:[{label:"\u521D\u7EA7",value:1},{label:"\u4E2D\u7EA7",value:2},{label:"\u4E2D\u9AD8\u7EA7",value:3},{label:"\u9AD8\u7EA7",value:4}],onChange:Mu=>ql({page:1,diff:Mu})}),a.createElement(Fi.default,{className:"ml20",placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"large",allowClear:!0,options:[{label:"\u672A\u53D1\u5E03",value:"unpublish"},{label:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{label:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],onChange:Mu=>ql({page:1,shixun_publish_status:Mu})})),a.createElement(ba.t7,{placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",style:{width:290},onChange:Mu=>{ql({keyword:Mu,page:1})}})),su?a.createElement("div",null,a.createElement(Ql.Z,{customText:"\u6682\u65E0\u6570\u636E",ButtonText:"\u524D\u5F80\u5B9E\u8DF5\u9879\u76EE\u5E93\uFF0C\u6DFB\u52A0\u66F4\u591A\u8BD5\u9898>",ButtonClick:()=>(0,Ne.xg)("/shixuns")})):a.createElement(ac.default,{loading:Or,rowKey:"id",columns:[{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:"30%",ellipsis:{showTitle:!0},render:(Mu,Lr)=>a.createElement("div",{style:{display:"flex",alignItems:"center"}},a.createElement("div",{className:Lr!=null&&Lr.high_resources_consume?ll.title:"",title:Mu||"--"},a.createElement(fe.Z,{key:1,showLines:1,showTextOnly:!0,value:Mu||"--"})),(Lr==null?void 0:Lr.high_resources_consume)&&a.createElement(Bo.Z,{type:"shixun",style:{marginLeft:10}}))},{title:"\u96BE\u5EA6",dataIndex:"level"},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",render:(Mu,Lr,Tr)=>a.createElement("span",null,Mu||"- -")},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"study_count"},{title:a.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",a.createElement(he.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},a.createElement(hu.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",width:100,render:(Mu,Lr,Tr)=>a.createElement("span",null,Mu||"- -")},{title:"\u64CD\u4F5C",render(Mu,Lr){const{title:Tr,challenge_names:Ml,author_name:hl,identifier:co,author_school_name:Tu,study_count:hr}=Lr||{};return a.createElement("div",null,a.createElement("span",{style:{color:"#165DFF",cursor:"pointer"},onClick:()=>{xe.default.confirm({title:"\u9898\u76EE\u8BE6\u60C5",closable:!0,width:1e3,centered:!0,icon:null,footer:null,content:a.createElement("div",null,a.createElement(fe.Z,{value:Tr,style:{marginBottom:18}}),a.createElement("div",{className:ll.challengeNameWrapper},Ml.map((Yr,ar)=>a.createElement("div",{className:ll.challengeName,key:ar},"\u7B2C",(0,Ne.EM)(ar+1),"\u9898\xA0",Yr))),a.createElement(me.Z,{className:ll.shixunPreviewFooter,justify:"space-between",style:{alignItems:"center"}},a.createElement(oe.Z,{className:ll.shixunInfoWrapper},a.createElement("span",null,"\u521B\u5EFA\u8005"),a.createElement("span",{className:ll.shixunInfo},hl.split("\u3001")[0]),a.createElement("span",null,"\u6240\u5C5E\u5355\u4F4D"),a.createElement("span",{className:ll.shixunInfo},Tu),a.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570"),a.createElement("span",{className:ll.shixunInfo},hr)),a.createElement(Fe.ZP,{type:"primary",className:ll.btnToDetail,onClick:()=>(0,Ne.xg)(`/shixuns/${co}/challenges?exercise=true`)},a.createElement("i",{className:"iconfont icon-shixunkecheng"}),"\u5B9E\u8BAD\u8BE6\u60C5")))})}},"\u67E5\u770B"),(Lr==null?void 0:Lr.shixun_tag_num)===1&&a.createElement("a",{target:"_blank",href:`/shixuns/${Lr==null?void 0:Lr.identifier}/challenges`,style:{marginLeft:10}},"\u53BB\u53D1\u5E03"))}}],dataSource:zr==null?void 0:zr.items,rowSelection:{type:"radio",selectedRowKeys:xu,preserveSelectedRowKeys:!0,getCheckboxProps:Mu=>({disabled:Mu.shixun_tag_num===1}),onChange(Mu,Lr){var Tr,Ml,hl;console.log(Mu),Al(Mu);const co=[];for(const hr of Yl)Mu.includes(hr.id)&&co.push(hr);const Tu=co.map(hr=>hr.id);for(const hr of Lr)hr&&Mu.includes(hr.id)&&!Tu.includes(hr.id)&&co.push({id:hr.id,difficulty:hr.level,identifier:hr.identifier,name:hr.name,real_name:(Tr=hr==null?void 0:hr.author_name)==null?void 0:Tr.split("\u3001")[0],school_name:hr.author_school_name,challenge_names:hr.challenge_names,challenges:(Ml=hr.challenge_names)==null?void 0:Ml.map((Yr,ar)=>({subject:Yr,id:ar,score:5})),score:((hl=hr.challenge_names)==null?void 0:hl.length)*5,study_count:hr.study_count,challenges_count:hr.challenges_count});Ol(co)}},pagination:{current:Ur.page,pageSize:Ur.limit,total:zr==null?void 0:zr.items_count,showTotal:Mu=>a.createElement("span",null,"\u5171\xA0",a.createElement("span",{style:{color:"#165DFF"}},Mu),"\xA0\u6761\u6570\u636E"),showQuickJumper:!0,onChange(Mu,Lr){ql({page:Mu,limit:Lr})},size:"default"},scroll:{y:400}}))},xs=z(96332),Ps=z(93686),vi=(wt,_t,gn)=>new Promise((Yn,Ur)=>{var Or=su=>{try{zr(gn.next(su))}catch(yu){Ur(yu)}},ql=su=>{try{zr(gn.throw(su))}catch(yu){Ur(yu)}},zr=su=>su.done?Yn(su.value):Promise.resolve(su.value).then(Or,ql);zr((gn=gn.apply(wt,_t)).next())}),Mc=({visible:wt,getdata:_t,onCancel:gn,onRandomExchange:Yn,selectFromProblemSet:Ur,questionParams:Or})=>{const[ql,zr]=(0,a.useState)(!1),[su,yu]=(0,a.useState)(!1),[xu,Al]=(0,a.useState)({}),Yl=(0,ve.useParams)(),[Ol,Mu]=(0,a.useState)(),Lr=(Tr,Ml)=>vi(void 0,null,function*(){yu(!0);const hl=yield(0,Le.ZP)(`/api/exercises/${Yl.categoryId}/toggle_random_question.json`,{method:"post",body:{question_id:Or.id,item_bank_id:Tr,shixuns_info:[{id:Tr,is_copy:Ml!=1,is_use:Ml!=1}]}});yu(!1),hl!=null&&hl.status||(Se.ZP.info("\u6362\u9898\u6210\u529F"),gn(),_t())});return a.createElement(xe.default,{title:"\u8BF7\u9009\u62E9\u66FF\u6362\u65B9\u5F0F",open:wt,onCancel:gn,centered:!0,maskClosable:!0,footer:null},a.createElement(me.Z,{justify:"center",className:"pb20"},a.createElement(Ts.Z,{onClick:Yn},"\u968F\u673A\u66F4\u6362"),(Or==null?void 0:Or.type)!=="PRACTICAL"&&a.createElement(Fe.ZP,{style:{marginLeft:24},onClick:Ur},"\u4ECE\u9898\u5E93\u4E2D\u9009\u62E9"),(Or==null?void 0:Or.type)==="PRACTICAL"&&a.createElement(Fe.ZP,{style:{marginLeft:24},onClick:()=>{zr(!0)}},"\u4ECE\u9898\u5E93\u4E2D\u9009\u62E9")),a.createElement(Ui,{open:ql,onCancel:()=>zr(!1),onOk:Tr=>vi(void 0,null,function*(){if(console.log("----selectedRows",Tr,Yl),(Tr==null?void 0:Tr.length)<=0){Se.ZP.info("\u8BF7\u9009\u62E9\u5B9E\u8BAD");return}let Ml=Tr==null?void 0:Tr.map(co=>co==null?void 0:co.id),hl=yield(0,Ps.Tr)({id:[...Ml],course_id:Yl.coursesId,type:"shixun"});(hl==null?void 0:hl.student_count)===0?Lr(Ml==null?void 0:Ml[0],1):(Mu(Ml),Al(hl)),zr(!1)})}),a.createElement(xs.Z,{resdata:xu,type:"shixun",okloading:su,oktext:(xu==null?void 0:xu.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:Tr=>vi(void 0,null,function*(){Lr(Ol==null?void 0:Ol[0],2)})}))},jc=z(30351),Is=z(19575),Cc=z(2715),dc=z(48994),Ks=z(52810),Ec=z(52262),Wc=Object.defineProperty,bc=Object.defineProperties,Ys=Object.getOwnPropertyDescriptors,Ac=Object.getOwnPropertySymbols,wc=Object.prototype.hasOwnProperty,Vc=Object.prototype.propertyIsEnumerable,hd=(wt,_t,gn)=>_t in wt?Wc(wt,_t,{enumerable:!0,configurable:!0,writable:!0,value:gn}):wt[_t]=gn,Ms=(wt,_t)=>{for(var gn in _t||(_t={}))wc.call(_t,gn)&&hd(wt,gn,_t[gn]);if(Ac)for(var gn of Ac(_t))Vc.call(_t,gn)&&hd(wt,gn,_t[gn]);return wt},uc=(wt,_t)=>bc(wt,Ys(_t)),Ds=(wt,_t,gn)=>new Promise((Yn,Ur)=>{var Or=su=>{try{zr(gn.next(su))}catch(yu){Ur(yu)}},ql=su=>{try{zr(gn.throw(su))}catch(yu){Ur(yu)}},zr=su=>su.done?Yn(su.value):Promise.resolve(su.value).then(Or,ql);zr((gn=gn.apply(wt,_t)).next())});const cd=({data:wt,submit:_t,goBack:gn,loading:Yn,onTypeScore:Ur,editPreview:Or=!1,onSkipExamination:ql,selectValue:zr,onExchange:su,getdata:yu,handleMarkWrongQuestion:xu,dispatch:Al})=>{var Yl,Ol,Mu,Lr,Tr,Ml,hl,co,Tu,hr,Yr;const ar=(0,a.useRef)(),[Mr,zo]=(0,a.useState)(null),[Jo,wi]=(0,a.useState)(!1),[ys,Ul]=(0,a.useState)(!1),Xs=(0,a.useRef)(),[Js]=ke.default.useForm(),wl=(0,ve.useParams)(),[Bi,Yi]=(0,a.useState)(!1),[Vo,bs]=(0,a.useState)([]);(0,a.useEffect)(()=>{wi(!0)},[]),(0,a.useEffect)(()=>{Or||(0,Ne.Dk)("\u8BD5\u5377\u9884\u89C8")},[Or]),(0,a.useEffect)(()=>{var Xn;((Xn=wt==null?void 0:wt.questionList)==null?void 0:Xn.length)>0&&(wt==null||wt.questionList.forEach(Ar=>{var _l;Ar.type==="PRACTICAL"&&((_l=Ar==null?void 0:Ar.questions)==null||_l.forEach((Ia,Bu)=>{var Zo;Vo[Bu]=!((Zo=Ia==null?void 0:Ia.shixun)!=null&&Zo.ignore_prompt),bs([...Vo])}))}))},[wt]);const zc=["\u5BB9\u6613","\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],mc={SINGLE:"\u5355\u9009\u9898",MULTIPLE:"\u591A\u9009\u9898",JUDGMENT:"\u5224\u65AD\u9898",COMPLETION:"\u586B\u7A7A\u9898",SUBJECTIVE:"\u7B80\u7B54\u9898",PRACTICAL:"\u5B9E\u8BAD\u9898",PROGRAM:"\u7F16\u7A0B\u9898",BPROGRAM:"\u7A0B\u5E8F\u586B\u7A7A\u9898",COMBINATION:"\u7EC4\u5408\u9898"},dd={single:"\u5355\u9009\u9898",multiple:"\u591A\u9009\u9898",judgement:"\u5224\u65AD\u9898",completion:"\u586B\u7A7A\u9898",subjective:"\u7B80\u7B54\u9898",practical:"\u5B9E\u8BAD\u9898",program:"\u7F16\u7A0B\u9898",bprogram:"\u7A0B\u5E8F\u586B\u7A7A\u9898",combination:"\u7EC4\u5408\u9898"},Kc=Xn=>{var Ar;const _l=[];return a.createElement(a.Fragment,null,a.createElement("aside",{className:Ce.single},(Ar=Xn==null?void 0:Xn.choices)==null?void 0:Ar.map((Ia,Bu)=>(Ia.is_answer&&_l.push(Ks.k4[Bu]),a.createElement("ul",{key:Bu},a.createElement("li",null,Ks.k4[Bu],"\u3001"),a.createElement("li",null,a.createElement(fe.Z,{value:Ia.choice_text})))))),a.createElement("div",{className:Ce.analysis},a.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",_l.join(""),a.createElement("span",{className:"ml30"},"\u96BE\u5EA6\uFF1A",zc[Xn.difficulty])),a.createElement("aside",null,a.createElement("span",{className:Ce.text},"\u89E3\u6790:"),a.createElement(fe.Z,{value:Xn.analysis?Xn.analysis:"\u6682\u65E0\u89E3\u6790"})),a.createElement("ul",null,a.createElement("li",null,a.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),`${(Xn==null?void 0:Xn.discipline_name)||"--"}/${Xn==null?void 0:Xn.sub_discipline_name}`),a.createElement(he.Z,{title:Xn==null?void 0:Xn.tag_discipline_name},a.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},a.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Xn==null?void 0:Xn.tag_discipline_name)))))},Xl=(Xn,Ar)=>{var _l;const Ia=(_l=Xn==null?void 0:Xn.standard_answer)==null?void 0:_l.map((Bu,Zo)=>{var yi;return a.createElement("div",{key:Zo},`\u7B54\u6848\uFF08\u586B\u7A7A${Bu==null?void 0:Bu.position}\uFF09\uFF1A${(yi=Bu==null?void 0:Bu.answer_text)==null?void 0:yi.join("\u3001")}`)});return a.createElement(a.Fragment,null,a.createElement("div",{className:Ce.analysis},a.createElement("div",{style:{display:"flex"}},a.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A"),a.createElement("div",null,Ia)),a.createElement("aside",null,a.createElement("span",{className:Ce.text},"\u89E3\u6790:"),a.createElement(fe.Z,{value:Xn.analysis?Xn.analysis:"\u6682\u65E0\u89E3\u6790"})),a.createElement("ul",null,a.createElement("li",null,a.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),Ar?`${(Ar==null?void 0:Ar.discipline_name)||"--"}/${Ar==null?void 0:Ar.sub_discipline_name}`:`${(Xn==null?void 0:Xn.discipline_name)||"--"}/${Xn==null?void 0:Xn.sub_discipline_name}`),a.createElement(he.Z,{title:Ar?Ar==null?void 0:Ar.tag_discipline_name:Xn==null?void 0:Xn.tag_discipline_name},a.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},a.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Ar?Ar==null?void 0:Ar.tag_discipline_name:Xn==null?void 0:Xn.tag_discipline_name)))))},hc=Xn=>{var Ar;const _l=(Ar=Xn==null?void 0:Xn.standard_answer)==null?void 0:Ar.map((Ia,Bu)=>a.createElement("div",{key:Bu},`\u7B54\u6848\uFF08\u586B\u7A7A${(Ia==null?void 0:Ia.position)||(Ia==null?void 0:Ia.exercise_choice_id)}\uFF09\uFF1A${Ia==null?void 0:Ia.answer_text}`));return a.createElement(a.Fragment,null,a.createElement("div",{className:Ce.analysis},a.createElement("div",{style:{display:"flex"}},a.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A"),a.createElement("div",null,_l)),a.createElement("aside",null,a.createElement("span",{className:Ce.text},"\u89E3\u6790:"),a.createElement(fe.Z,{value:Xn.analysis?Xn.analysis:"\u6682\u65E0\u89E3\u6790"})),a.createElement("ul",null,a.createElement("li",null,a.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),`${(Xn==null?void 0:Xn.discipline_name)||"--"}/${Xn==null?void 0:Xn.sub_discipline_name}`),a.createElement(he.Z,{title:Xn==null?void 0:Xn.tag_discipline_name},a.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},a.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Xn==null?void 0:Xn.tag_discipline_name)))))},xc=(Xn,Ar)=>{var _l;return a.createElement("div",{className:Ce.analysis},a.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",(_l=Xn==null?void 0:Xn.answer_texts)==null?void 0:_l[0]),a.createElement("aside",null,a.createElement("span",{className:Ce.text},"\u89E3\u6790:"),a.createElement(fe.Z,{value:Xn.analysis?Xn.analysis:"\u6682\u65E0\u89E3\u6790"})),a.createElement("ul",null,a.createElement("li",null,a.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),Ar?`${(Ar==null?void 0:Ar.discipline_name)||"--"}/${Ar==null?void 0:Ar.sub_discipline_name}`:`${(Xn==null?void 0:Xn.discipline_name)||"--"}/${Xn==null?void 0:Xn.sub_discipline_name}`),a.createElement(he.Z,{title:Ar?Ar==null?void 0:Ar.tag_discipline_name:Xn==null?void 0:Xn.tag_discipline_name},a.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},a.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Ar?Ar==null?void 0:Ar.tag_discipline_name:Xn==null?void 0:Xn.tag_discipline_name))))},Yc=Xn=>{var Ar,_l;return a.createElement("div",{className:Ce.analysis},a.createElement("aside",null,a.createElement("span",{className:Ce.text},"\u9884\u671F\u8F93\u51FA:"),a.createElement(fe.Z,{value:(Ar=Xn==null?void 0:Xn.program_attr)==null?void 0:Ar.description})),a.createElement("div",{style:{marginTop:20}},"\u6B63\u786E\u7B54\u6848\uFF1A",((_l=Xn==null?void 0:Xn.program_attr)==null?void 0:_l.answer_text)||"--"),a.createElement("aside",null,a.createElement("span",{className:Ce.text},"\u89E3\u6790:"),a.createElement(fe.Z,{value:Xn.analysis?Xn.analysis:"\u6682\u65E0\u89E3\u6790"})),a.createElement("ul",null,a.createElement("li",null,a.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),`${(Xn==null?void 0:Xn.discipline_name)||"--"}/${Xn==null?void 0:Xn.sub_discipline_name}`),a.createElement(he.Z,{title:Xn==null?void 0:Xn.tag_discipline_name},a.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},a.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Xn==null?void 0:Xn.tag_discipline_name))))},qo=(Xn,Ar)=>{var _l;return a.createElement("div",null,(_l=Xn==null?void 0:Xn.sub_item_banks)==null?void 0:_l.map((Ia,Bu)=>{var Zo,yi;const Oi=[];return a.createElement(a.Fragment,null,a.createElement("div",{style:{marginLeft:25,fontSize:"16px",color:"#333",paddingTop:"15px"}},Ar+1+"."+(Bu+1),"\uFF08",mc[Ia.item_type]||dd[Ia.item_type],"\uFF09",Ia.name),(Ia.item_type=="SINGLE"||Ia.item_type=="MULTIPLE"||Ia.item_type=="JUDGMENT"||Ia.item_type=="single"||Ia.item_type=="multiple"||Ia.item_type=="judgement")&&a.createElement(a.Fragment,null,a.createElement("aside",{className:Ce.single},(Zo=Ia==null?void 0:Ia.choices)==null?void 0:Zo.map((uo,As)=>(uo.is_answer&&Oi.push(Ks.k4[As]),a.createElement("ul",{key:As},a.createElement("li",null,Ks.k4[As],"\u3001"),a.createElement("li",null,a.createElement(fe.Z,{value:uo.choice_text})))))),a.createElement("div",{className:Ce.analysis},a.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",Oi.join(""),a.createElement("span",{className:"ml30"},"\u96BE\u5EA6\uFF1A",zc[Ia.difficulty])),a.createElement("aside",null,a.createElement("span",{className:Ce.text},"\u89E3\u6790:"),a.createElement(fe.Z,{value:Ia.analysis?Ia.analysis:"\u6682\u65E0\u89E3\u6790"})),a.createElement("ul",null,a.createElement("li",null,a.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),`${(Xn==null?void 0:Xn.discipline_name)||"--"}/${Xn==null?void 0:Xn.sub_discipline_name}`),a.createElement(he.Z,{title:Xn==null?void 0:Xn.tag_discipline_name},a.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},a.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Xn==null?void 0:Xn.tag_discipline_name))))),(Ia.item_type=="COMPLETION"||Ia.item_type=="completion")&&Xl(Ia,Xn),(Ia.item_type=="SUBJECTIVE"||Ia.item_type=="subjective")&&xc(Ia,Xn),((yi=wt==null?void 0:wt.exam)==null?void 0:yi.exercise_status)===3&&a.createElement("div",{className:"flex gap-20px mt20"},a.createElement(Cc.Z,{state:Ia==null?void 0:Ia.is_wrong,onClick:()=>{xu==null||xu({value:uc(Ms({},Ia),{question_id:Ia==null?void 0:Ia.id,question_score:Ia==null?void 0:Ia.score})})}}),Ia.item_type=="single"&&a.createElement(Fe.ZP,{style:{color:"#3061D0"},onClick:()=>{Ud({value:Ia})}},"\u589E\u8BBE\u6B63\u786E\u7B54\u6848")))}))},ad=Xn=>{var Ar,_l,Ia;return a.createElement("div",{style:{marginTop:"12px"}},(_l=(Ar=Xn==null?void 0:Xn.shixun)==null?void 0:Ar.challenges)==null?void 0:_l.map((Bu,Zo)=>a.createElement("div",{className:"c-grey-666 font14 mb10 ml25",style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},a.createElement("div",null,a.createElement("span",{className:"mr5"},"\u7B2C",Zo+1,"\u5173"),a.createElement(he.Z,{key:Zo,title:Bu==null?void 0:Bu.challenge_name},a.createElement("span",null,(0,Ne.Pq)(Bu==null?void 0:Bu.challenge_name,44)))),Or&&a.createElement("div",null,"\u5206\u503C\uFF1A",Bu.score,"\u5206"))),a.createElement(ve.Link,{style:{float:"right"},target:"_blank",to:`/shixuns/${(Ia=Xn==null?void 0:Xn.shixun)==null?void 0:Ia.identifier}/challenges`},"\u5B9E\u8BAD\u8BE6\u60C5"),a.createElement("div",{style:{clear:"both"}}))},Zc=Xn=>{let Ar=Xn.questions_score/Xn.questions_count;xe.default.confirm({icon:null,centered:!0,title:"\u5206\u6570\u8BBE\u7F6E",content:a.createElement("div",{className:Ce.modalColumn},a.createElement("div",{className:Ce.modalRow,style:{justifyContent:"flex-start"}},a.createElement("sup",{className:Ce.sup},"*"),a.createElement("span",null,Xn==null?void 0:Xn.name,"\uFF1A"),a.createElement(pe.Z,{min:0,precision:1,defaultValue:Ar,onChange:_l=>{Ar=_l}}),a.createElement("span",{className:"ml5"},"\u5206/\u9898"))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Ds(void 0,null,function*(){var _l;if(!Ar)return Se.ZP.warning("\u5206\u6570\u4E0D\u80FD\u4E3A\u7A7A\u6216\u4E3A0"),Promise.reject();const Ia={type:Xn==null?void 0:Xn.type,score:Ar,scoreTotal:Number((_l=Ar*Xn.questions_count)==null?void 0:_l.toFixed(1))};Ur(Ia)})})},qd=()=>{let Xn="";xe.default.confirm({icon:null,centered:!0,title:"\u4FDD\u5B58\u8BD5\u5377",content:a.createElement("div",{className:Ce.modalColumn},a.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20"},a.createElement("img",{style:{marginRight:5},src:Ct.Z}),"\u4FDD\u5B58\u540E\u5355\u72EC\u751F\u6210\u4E00\u4EFD\u4EBA\u5DE5\u7EC4\u5377\u7C7B\u578B\u7684\u56FA\u5B9A\u8BD5\u5377\u3002"),a.createElement("div",{className:Ce.modalRow,style:{marginTop:20}},a.createElement("sup",{className:Ce.sup},"*"),a.createElement("span",{style:{flexShrink:0}},"\u8BD5\u5377\u540D\u79F0\uFF1A"),a.createElement(Ae.default,{placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",min:0,maxLength:60,defaultValue:Xn,onChange:Ar=>{Xn=Ar.target.value}}))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Ds(void 0,null,function*(){var Ar;if(!Xn)return Se.ZP.warning("\u8BD5\u5377\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),Promise.reject();const _l=[],Ia=[],Bu=[],Zo=[];(Ar=wt==null?void 0:wt.questionList)==null||Ar.forEach(Oi=>{var uo;(uo=Oi.questions)==null||uo.forEach(As=>{let Mi=Oi.questions_score/Oi.questions_count;Mi=Mi&&Mi.toFixed(1),Oi.type==="COMBINATION"&&Bu.push({id:As.id,sub_item_bank_ids:As.sub_item_banks.map(Bc=>Bc.id)}),Oi.type==="PRACTICAL"?Zo.push(As.id):(_l.push(As.id),Ia.push(Mi))})}),console.log("-----",Bu),yield _t({item_bank_ids:_l,item_bank_scores:Ia,name:Xn,combination_item_banks:Bu,shixun_ids:Zo})})})},Qd=(Xn,Ar,_l,Ia)=>{var Bu;const Zo=`${location.pathname}${location.search}`,yi=(Bu=Ia.questions)==null?void 0:Bu.map(Oi=>Oi==null?void 0:Oi.id);if(Zo.includes("exercise"))Xs.current={id:Xn,ids:yi,type:Ar,index:_l},Ul(!0);else{let Oi=xe.default.confirm({icon:null,centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:"\u786E\u8BA4\u8981\u66F4\u6362\u8BE5\u8BD5\u9898\u5417\uFF1F",cancelButtonProps:{disabled:!1},maskClosable:!0,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Ds(void 0,null,function*(){Oi.update({cancelButtonProps:{disabled:!0}}),yield su({single_question_id:Xn,seleted_item_bank_ids:yi},{type:Ar,index:_l}),Oi.update({cancelButtonProps:{disabled:!1}}),Se.ZP.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210\u8BD5\u9898")})})}},Id=Xn=>{var Ar;const _l=(Ar=Xn.questions)==null?void 0:Ar.map(Zo=>Zo==null?void 0:Zo.id),Ia=Xn.name;let Bu=xe.default.confirm({icon:null,centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:`\u786E\u8BA4\u66F4\u6362${Ia}\u4E2D\u7684\u6240\u6709\u8BD5\u9898\u5417\uFF1F`,cancelButtonProps:{disabled:!1},maskClosable:!1,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Ds(void 0,null,function*(){Bu.update({cancelButtonProps:{disabled:!0}}),yield su({seleted_item_bank_ids:_l},{type:Xn.type}),Bu.update({cancelButtonProps:{disabled:!1}}),Se.ZP.success(`\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210${Ia}\u8BD5\u9898`)})})},Ld=()=>{let Xn=xe.default.confirm({icon:null,centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:"\u786E\u8BA4\u66F4\u6362\u9884\u89C8\u4E2D\u7684\u6240\u6709\u8BD5\u9898\u5417\uFF1F",cancelButtonProps:{disabled:!1},maskClosable:!1,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Ds(void 0,null,function*(){Xn.update({cancelButtonProps:{disabled:!0}}),yield su(),Xn.update({cancelButtonProps:{disabled:!1}}),Se.ZP.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210\u6574\u5F20\u8BD5\u9898")})})},Fd=Xn=>{console.log(Xn,"key"),ql(Xn-1)},md=(Xn,Ar)=>{var _l,Ia;if(Ar==="SINGLE")return a.createElement(a.Fragment,null,a.createElement(ua,{ref:ar,editData:Xn,isEdit:!0}),a.createElement(Ie.Z,null));if(Ar==="MULTIPLE")return a.createElement(a.Fragment,null,a.createElement(_u,{ref:ar,editData:Xn,isEdit:!0}),a.createElement(Ie.Z,null));if(Ar==="JUDGMENT")return a.createElement(a.Fragment,null,a.createElement(cu,{ref:ar,editData:Xn,isEdit:!0}),a.createElement(Ie.Z,null));if(Ar==="COMPLETION")return a.createElement(a.Fragment,null,a.createElement(St,{ref:ar,editData:Xn,isEdit:!0}),a.createElement(Ie.Z,null));if(Ar==="SUBJECTIVE")return a.createElement(a.Fragment,null,a.createElement(Ga,{ref:ar,editData:Xn,isEdit:!0}),a.createElement(Ie.Z,null));if(Ar==="COMBINATION")return a.createElement(a.Fragment,null,a.createElement(Oc,{ref:ar,editData:Xn,isEdit:!0}),a.createElement(Ie.Z,null));if(Ar==="BPROGRAM")return a.createElement(a.Fragment,null,a.createElement(ke.default,{form:Js,style:{marginTop:20},onFinishFailed:Bu=>{var Zo,yi;Bu.errorFields[0].name.includes("standard_answers")?Se.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):Se.ZP.error(Bu.errorFields[0].errors[0]),Js.scrollToField((yi=(Zo=Bu==null?void 0:Bu.errorFields)==null?void 0:Zo[0])==null?void 0:yi.name,{behavior:"smooth",block:"center"})},onFinish:Bu=>Ds(void 0,null,function*(){var Zo;let yi=uc(Ms({question_score:Xn.score},Bu),{question_type:8,hack:uc(Ms({},Bu.hack),{difficult:Xn.program_attr.difficult}),hack_codes:uc(Ms({},Bu.hack_codes),{code:Is.Base64.encode((Zo=Bu.hack_codes)==null?void 0:Zo.code)})});Bi&&(yi.is_cover=1);const Oi=yield(0,Le.ZP)(`/api/exercise_questions/${Xn.id}.json`,{method:"put",body:yi});(Oi==null?void 0:Oi.status)===0&&(Se.ZP.success("\u7F16\u8F91\u6210\u529F"),Fd(zr+1)),zo(null)})},a.createElement(jc.tc,{form:Js,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",scoreByBlank:!1,hackidentifier:(_l=Xn==null?void 0:Xn.program_attr)==null?void 0:_l.identifier,answerKey:"standard_answers"}),a.createElement(Ie.Z,null)));if(Ar==="PROGRAM"&&ve.history.push(`/problems/${(Ia=Xn==null?void 0:Xn.program_attr)==null?void 0:Ia.identifier}/edit?type=exercises&express_id=${wl.categoryId}&question_id=${Xn==null?void 0:Xn.id}&score=${Xn==null?void 0:Xn.score}&callback_url=${location.pathname}&select=${zr}&exercise=true`),Ar==="PRACTICAL")return a.createElement(a.Fragment,null,a.createElement(er,{ref:ar,editData:Xn,isEdit:!0}),a.createElement(Ie.Z,null))},d0=(Xn,Ar)=>Ds(void 0,null,function*(){var _l,Ia,Bu,Zo,yi,Oi;const uo=yield(_l=ar.current)==null?void 0:_l.onSave();if(!uo)return;const As=dl=>{const qs=dl.map(be=>be.choice_text.trim().replace(/^\s+|\s+$/g,""));return new Set(qs).size!==qs.length},Mi={question_score:Ar.score,analysis:uo.analysis};if(Xn==="SINGLE"||Xn==="MULTIPLE"||Xn==="JUDGMENT"){if(Xn!=="JUDGMENT"&&As(uo==null?void 0:uo.choices)){Se.ZP.error("\u9009\u62E9\u9898\u9009\u9879\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58");return}const dl=[],qs=[];Mi.question_type=Xn==="JUDGMENT"?2:1,Mi.question_title=uo==null?void 0:uo.name,(Ia=uo==null?void 0:uo.choices)==null||Ia.forEach((Fc,be)=>{dl.push(Fc.choice_text),Fc!=null&&Fc.is_answer&&qs.push(be+1)}),Mi.question_choices=dl,Mi.standard_answers=qs}if(Xn==="COMPLETION"){let dl=(Bu=uo==null?void 0:uo.standard_answers)==null?void 0:Bu.map((be,Te)=>(be==null?void 0:be.score)<=0?Te+1:null).filter(be=>be!==null);if((dl==null?void 0:dl.length)>0)return Se.ZP.warning(`\u7B2C${dl.join("\u3001")}\u9879\u7684\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A`),!1;let qs=(Zo=uo==null?void 0:uo.standard_answers)==null?void 0:Zo.reduce((be,Te)=>be+(Number(Te==null?void 0:Te.score)||0),0);if(parseFloat(qs.toFixed(2))!=(Mi==null?void 0:Mi.question_score))return Se.ZP.warning("\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E\u8BE5\u5C0F\u9898\u5206\u503C\uFF01"),!1;Mi.is_ordered=uo.is_ordered,Mi.question_title=uo==null?void 0:uo.name,Mi.use_blank_score=uo==null?void 0:uo.use_blank_score,Mi.question_type=3;const Fc=[];(yi=uo==null?void 0:uo.standard_answers)==null||yi.forEach((be,Te)=>{Fc.push({choice_id:be.position,answer_text:be.answer_text,score:be.score})}),Mi.standard_answers=Fc,Mi.downcase=uo==null?void 0:uo.downcase,Mi.no_space=uo==null?void 0:uo.no_space}if(Xn==="SUBJECTIVE"&&(console.log("editorData"),console.log(uo),Mi.question_title=uo==null?void 0:uo.name,Mi.question_type=4,Mi.answer_texts=uo==null?void 0:uo.answer_texts,Mi.use_keywords=uo==null?void 0:uo.use_keywords,Mi.keywords=uo==null?void 0:uo.keywords),Xn==="COMBINATION"){Mi.question_title=uo==null?void 0:uo.name,Mi.question_type=7;try{Mi.sub_questions=(Oi=uo==null?void 0:uo.sub_item_banks)==null?void 0:Oi.map((dl,qs)=>{var Fc,be,Te;if((dl==null?void 0:dl.item_type)=="single"||(dl==null?void 0:dl.item_type)=="multiple"){if(As(dl==null?void 0:dl.choices))throw new Error(`\u7B2C${qs+1}\u5C0F\u9898\u9009\u9879\u5185\u5BB9\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58`);const at=[],Et=[];return(Fc=dl==null?void 0:dl.choices)==null||Fc.forEach((rn,Mn)=>{at.push(rn.choice_text),rn!=null&&rn.is_answer&&Et.push(Mn+1)}),{id:dl.id,question_id:dl.id,question_title:dl.name,difficulty:dl.difficulty,question_type:(dl==null?void 0:dl.item_type)=="single"?0:(dl==null?void 0:dl.item_type)=="multiple"?1:2,question_choices:at,standard_answers:Et,analysis:dl.analysis,question_score:dl==null?void 0:dl.score}}else if((dl==null?void 0:dl.item_type)=="completion"){let at=(be=dl==null?void 0:dl.standard_answer)==null?void 0:be.reduce((rn,Mn)=>rn+(Number(Mn==null?void 0:Mn.score)||0),0);if(parseFloat(at.toFixed(2))!=(dl==null?void 0:dl.score))throw new Error("\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E\u8BE5\u5C0F\u9898\u5206\u503C\uFF01");const Et=[];return(Te=dl==null?void 0:dl.standard_answer)==null||Te.forEach((rn,Mn)=>{Et.push({choice_id:rn.position,answer_text:rn.answer_text,score:rn.score})}),{id:dl.id,question_id:dl.id,is_ordered:dl.is_ordered,question_title:dl.name,difficulty:dl.difficulty,question_type:3,standard_answers:Et,use_blank_score:dl.use_blank_score,analysis:dl.analysis,downcase:dl==null?void 0:dl.downcase,no_space:dl==null?void 0:dl.no_space,question_score:dl==null?void 0:dl.score}}else if((dl==null?void 0:dl.item_type)=="subjective")return{id:dl.id,question_id:dl.id,question_title:dl.name,question_type:4,difficulty:dl.difficulty,answer_texts:dl==null?void 0:dl.answer_texts,analysis:dl.analysis,question_score:dl==null?void 0:dl.score,use_keywords:dl.use_keywords,keywords:dl==null?void 0:dl.keywords}})}catch(dl){Se.ZP.warning(dl.message);return}delete Mi.analysis}let Bc=!1;(Ar==null?void 0:Ar.is_my)===1&&(Bc=yield new Promise((qs,Fc)=>{xe.default.confirm({title:"\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",keyboard:!1,onOk:()=>{qs(!0)},onCancel:()=>{qs(!1)}})})),Bc&&(Mi.is_cover=1);const gd=Xn!=="PRACTICAL"?yield(0,Le.ZP)(`/api/exercise_questions/${Ar.id}.json`,{method:"put",body:Mi}):yield(0,Le.ZP)(`/api/exercise_questions/${Ar.id}/update_shixun_score.json`,{method:"post",body:Ms({},uo)});(gd==null?void 0:gd.status)===0&&(Se.ZP.success("\u7F16\u8F91\u6210\u529F"),Fd(zr+1),zo(null))}),_d=()=>Ds(void 0,null,function*(){(0,ve.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u66F4\u65B0\u8BD5\u5377\uFF0C\u8BF7\u7A0D\u540E..."}}),(yield(0,Le.ZP)(`/api/exercises/${wl.categoryId}/sync_random_question.json`,{method:"post"})).status===0&&(yield ql(zr),Se.ZP.success("\u66F4\u65B0\u6210\u529F")),(0,ve.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1}})}),Ud=({value:Xn}={})=>{var Ar;const _l=[];let Ia=[];const Bu=(Ar=Xn==null?void 0:Xn.choices)==null?void 0:Ar.map((yi,Oi)=>{var uo;const As=Oi+1;return yi!=null&&yi.is_answer&&(_l.push(As),Ia.push(As)),{value:As,label:a.createElement(fe.Z,{className:"c-black font14",value:`${(uo=Ks.k4)==null?void 0:uo[Oi]}. ${yi==null?void 0:yi.choice_text}`}),disabled:yi==null?void 0:yi.origin_standard_answer}}),Zo=xe.default.confirm({centered:!0,icon:null,title:"\u589E\u8BBE\u6B63\u786E\u7B54\u6848",width:800,content:a.createElement(a.Fragment,null,"\u5F53\u524D\u8BD5\u9898\u7684\u6B63\u786E\u7B54\u6848\u4E3A ",_l==null?void 0:_l.map(yi=>{var Oi;return(Oi=Ks.k4)==null?void 0:Oi[yi-1]}),"\uFF0C\u8BF7\u9009\u62E9\u9700\u8981\u589E\u8BBE\u4E3A\u6B63\u786E\u7B54\u6848\u7684\u9009\u9879\u3002",a.createElement("br",null),"\u52FE\u9009\u63D0\u4EA4\u4E4B\u540E\uFF0C\u9009\u4E2D\u589E\u8BBE\u4E3A\u6B63\u786E\u7B54\u6848\u4EFB\u4E00\u9009\u9879\u7684\u5B66\u751F\u4E5F\u4F1A\u83B7\u5F97\u8BE5\u5C0F\u9898\u7684\u5206\u503C\uFF0C\u4F46\u4E0D\u4F1A\u4FEE\u6539\u5F53\u524D\u8BD5\u9898\u7684\u9898\u578B\u3002\u53D6\u6D88\u52FE\u9009\u63D0\u4EA4\u4E4B\u540E\uFF0C\u4E5F\u4F1A\u91CD\u65B0\u8BA1\u7B97\u5BF9\u5E94\u5B66\u751F\u7684\u5F97\u5206\u3002",a.createElement("br",null),a.createElement(ze.default.Group,{className:"flex-col mt20",options:Bu,defaultValue:Ia,onChange:yi=>{Ia=yi}})),onOk:()=>Ds(void 0,null,function*(){const yi=yield(0,Le.ZP)(`/api/exercises/${wl.categoryId}/questions/${Xn==null?void 0:Xn.id}/add_standard_answers.json`,{method:"put",body:{standard_answer:Ia}});(yi==null?void 0:yi.status)===0&&(Se.ZP.success("\u4FEE\u6539\u6210\u529F"),Fd(zr+1))})})},Nd=(Yl=wt==null?void 0:wt.questionList)==null?void 0:Yl.reduce((Xn,Ar)=>Xn+Number(Ar.questions_score),0),js=Or&&((Ol=wt==null?void 0:wt.exam)==null?void 0:Ol.exercise_status)!==1,ud=Xn=>Ds(void 0,null,function*(){const Ar=yield(0,Le.ZP)(`/api/courses/${wl==null?void 0:wl.coursesId}/sync_shixuns.json`,{method:"post",body:{exercise_ids:[wl==null?void 0:wl.categoryId],exercise_question_id:Xn.id}});(Ar==null?void 0:Ar.status)===0&&(Al({type:"classroomList/setActionTabs",payload:{}}),Se.ZP.info("\u5B9E\u8BAD\u540C\u6B65\u4E2D\uFF0C\u8BF7\u7A0D\u540E"))}),cs=(Xn,Ar)=>Ds(void 0,null,function*(){let _l=yield(0,Le.ZP)(`/api/courses/${wl==null?void 0:wl.coursesId}/ignore_prompt.json`,{method:"post",body:{container_type:"Exercise",container_id:wl==null?void 0:wl.categoryId,exercise_question_id:Xn==null?void 0:Xn.id}});(_l==null?void 0:_l.status)===0&&(Vo[Ar]=!1,bs([...Vo]))});return a.createElement("section",{className:Ce.wrap},a.createElement("div",{id:"id_left_preview",className:Ce.left,onMouseEnter:Xn=>{const Ar=document.getElementById("id_left_preview");Ar.style.overflowY="auto"},onMouseLeave:Xn=>{const Ar=document.getElementById("id_left_preview");Ar.style.overflowY="hidden"}},a.createElement("div",{className:Ce.title},a.createElement("div",{className:"body-overflow-initial"},a.createElement("b",null),a.createElement("span",null,"\u7B54\u9898\u5361"))),a.createElement("div",{className:Ce.total},a.createElement("div",null,a.createElement("img",{src:lt}),a.createElement("span",null,"\u9898\u6570(\u9053)"),a.createElement("aside",null,wt==null?void 0:wt.all_questions_count)),a.createElement("div",{className:"mr30 ml30"},a.createElement("img",{src:ot}),a.createElement("span",null,"\u603B\u5206(\u5206)"),a.createElement("aside",null,Nd&&Nd.toFixed(1))),a.createElement("div",null,a.createElement("img",{src:ye}),a.createElement("span",null,"\u65F6\u957F(\u5206)"),a.createElement("aside",null,((Mu=wt==null?void 0:wt.exam)==null?void 0:Mu.time)===-1||((Lr=wt==null?void 0:wt.exam)==null?void 0:Lr.time)===null?"\u4E0D\u9650":(Tr=wt==null?void 0:wt.exam)==null?void 0:Tr.time))),(Ml=wt==null?void 0:wt.questionList)==null?void 0:Ml.map((Xn,Ar)=>{var _l;return a.createElement("div",{className:Ce.list,key:Ar},a.createElement("div",{className:Ce.name},a.createElement("b",null),a.createElement("span",null,Xn.name)),a.createElement("aside",null,a.createElement("div",null,"\u5171",a.createElement("span",{className:Ce.b},Xn.questions_count),"\u9898 ",a.createElement("span",{className:Ce.l},"|"),"\u5171",a.createElement("span",{className:Ce.r},Xn.questions_score),"\u5206"),a.createElement("div",{className:Ce.answerSheet},(_l=Xn==null?void 0:Xn.questions)==null?void 0:_l.map((Ia,Bu)=>a.createElement("div",{onClick:()=>{const Zo=`Anchor_${Ia==null?void 0:Ia.id}`;let yi=document.getElementById(Zo);yi&&setTimeout(()=>yi.scrollIntoView({block:"center",behavior:"smooth"}))},key:Ia==null?void 0:Ia.id,className:Ce.tag},Bu+1)))))})),a.createElement("div",{className:Ce.right},a.createElement("div",{className:Ce.examName,id:"examName"},a.createElement("div",{className:Ce.name},a.createElement(he.Z,{title:(hl=wt==null?void 0:wt.exam)==null?void 0:hl.name,getPopupContainer:Xn=>Xn.parentNode},a.createElement("span",{className:Ce.t},(co=wt==null?void 0:wt.exam)==null?void 0:co.name))),Or&&((Tu=wt==null?void 0:wt.exam)==null?void 0:Tu.exercise_status)===1&&a.createElement(ba.op,{openLoading:!0,shape:"default",onClick:()=>{xe.default.confirm({title:"\u63D0\u793A",content:"\u786E\u8BA4\u6839\u636E\u6700\u65B0\u7684\u968F\u673A\u7EC4\u5377\u62BD\u9898\u89C4\u5219\u91CD\u65B0\u751F\u6210\u8BD5\u5377\u5417\uFF1F",onOk:()=>{_d()}})},type:"primary"},"\u66F4\u65B0\u8BD5\u5377"),!Or&&a.createElement(Fe.ZP,{onClick:Ld,type:"primary"},"\u968F\u673A\u66F4\u6362")),a.createElement("div",{className:Ce.topWarp},(hr=wt==null?void 0:wt.questionList)==null?void 0:hr.map((Xn,Ar)=>{var _l,Ia;return a.createElement(a.Fragment,{key:Ar},a.createElement("div",{className:Ce.head,style:Ar===0?{border:0,marginTop:-16}:{}},a.createElement("div",{className:Ce.name},a.createElement("b",null),a.createElement("span",null,Xn.name)),a.createElement("div",{className:Ce.so},"\u5171",a.createElement("span",{className:Ce.b},Xn.questions_count," "),"\u9898 ",Xn.type==="COMBINATION"&&`\uFF08\u5305\u542B${(_l=Xn==null?void 0:Xn.questions)==null?void 0:_l.map(Bu=>{var Zo;return(Zo=Bu==null?void 0:Bu.sub_item_banks)==null?void 0:Zo.length}).reduce((Bu,Zo)=>Bu+Zo)}\u5C0F\u9898\uFF09`,a.createElement("span",{className:Ce.l},"|"),"\u5171",a.createElement("span",{className:Ce.r},Xn.questions_score),"\u5206"),!Or&&a.createElement("div",{className:Ce.btn},a.createElement(Fe.ZP,{onClick:()=>{Zc(Xn)},type:"primary",ghost:!0,className:"mr20"},"\u8BBE\u7F6E\u5F97\u5206"),a.createElement(Fe.ZP,{onClick:()=>Id(Xn),type:"primary",ghost:!0},"\u968F\u673A\u66F4\u6362"))),(Ia=Xn==null?void 0:Xn.questions)==null?void 0:Ia.map((Bu,Zo)=>{var yi,Oi,uo,As,Mi;return Mr===(Bu==null?void 0:Bu.id)?a.createElement("div",{id:`Anchor_${Bu==null?void 0:Bu.id}`,className:Ce.content,style:{padding:0,marginTop:24},key:Bu==null?void 0:Bu.id},a.createElement("div",{style:{float:"right",marginTop:`${(Xn==null?void 0:Xn.type)==="PRACTICAL"?"-2px":"-6px"}`}},a.createElement(Fe.ZP,{onClick:()=>zo(null),className:"mr20",type:"primary",ghost:!0},"\u53D6\u6D88"),a.createElement(Fe.ZP,{onClick:()=>{d0(Xn==null?void 0:Xn.type,Bu)},type:"primary"},"\u4FDD\u5B58")),md(Bu,Xn.type)):a.createElement("div",{id:`Anchor_${Bu==null?void 0:Bu.id}`,className:Ce.content,key:Bu==null?void 0:Bu.id},a.createElement("div",{className:Ce.titleWrap},(Bu==null?void 0:Bu.item_type)==="bprogram"?a.createElement(fe.Z,{style:{paddingRight:10},value:Zo+1+"\u3001"+((yi=Bu==null?void 0:Bu.program_attr)==null?void 0:yi.description)}):a.createElement(fe.Z,{style:{paddingRight:10},className:Ce.titleHtml,value:Zo+1+`\u3001${(Bu==null?void 0:Bu.item_type)==="combination"?"\uFF08\u9898\u5E72\uFF09":""}`+(Bu==null?void 0:Bu.name)}),(0,Ec.G5)()&&((Oi=Bu==null?void 0:Bu.shixun)==null?void 0:Oi.shixun_change)&&a.createElement(Me.Z,{trigger:"click",open:Vo[Zo],onOpenChange:Bc=>{Vo[Zo]=!0,bs([...Vo])},placement:"bottomLeft",autoAdjustOverflow:!1,title:null,content:a.createElement("div",{style:{width:"310px",color:"#000"}},a.createElement("div",null,"\u5B9E\u8BAD\u7BA1\u7406\u5458\u5BF9\u8BD5\u5377\u4E2D\u4F7F\u7528\u7684\u5B9E\u8DF5\u9879\u76EE\u8FDB\u884C\u4E86\u4FEE\u6539\uFF0C\u8BF7\u68C0\u67E5\u540E\uFF0C\u786E\u8BA4\u662F\u5426\u9700\u8981\u540C\u6B65\u5230\u8BD5\u5377\u4E2D"),a.createElement("div",{className:Ce.btn_warp},a.createElement(Fe.ZP,{size:"small",onClick:()=>cs(Bu,Zo)},"\u5FFD\u7565"),a.createElement(Fe.ZP,{className:"ml20",size:"small",type:"primary",onClick:()=>{Vo[Zo]=!1,bs([...Vo]),Al({type:"classroomList/setActionTabs",payload:{key:"\u5B9E\u8BAD\u540C\u6B65\u786E\u8BA4",onOK:()=>ud(Bu)}})}},"\u786E\u8BA4\u540C\u6B65"),a.createElement(Fe.ZP,{className:"ml20",size:"small",type:"primary",onClick:()=>(0,Ne.xg)(`/shixuns/${Bu==null?void 0:Bu.forked_shixun_identifier}/challenges?exercise=true`)},"\u524D\u5F80\u67E5\u770B")))},a.createElement("i",{className:"iconfont icon-tongzhi1 pl10 current",style:{fontSize:"16px",color:"#F7B500"},onClick:Bc=>Bc.stopPropagation()})),Or&&a.createElement(Fe.ZP,{onClick:()=>{var Bc,gd,dl;if(Mr){Se.ZP.warning("\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898");return}Js.setFieldsValue({standard_answers:Bu==null?void 0:Bu.standard_answer,hack:Ms(Ms({},Bu),Bu==null?void 0:Bu.program_attr),hack_codes:uc(Ms({},Bu==null?void 0:Bu.program_attr),{code:Is.Base64.decode(((Bc=Bu==null?void 0:Bu.program_attr)==null?void 0:Bc.code)||"")}),hack_sets:Ms({},(gd=Bu==null?void 0:Bu.hack_sets)==null?void 0:gd[0])}),(Bu==null?void 0:Bu.item_type)=="program"?ve.history.push(`/problems/newedit/${(dl=Bu==null?void 0:Bu.program_attr)==null?void 0:dl.identifier}?type=exercises&express_id=${wl.categoryId}&question_id=${Bu==null?void 0:Bu.id}&score=${Bu==null?void 0:Bu.score}&exercise=true&callback_url=/classrooms/${wl.coursesId}/exercise/${wl.categoryId}/detail?random=true`):zo(Bu==null?void 0:Bu.id)},type:"primary",style:{marginLeft:"auto"},ghost:!0},"\u7F16\u8F91"),!js&&a.createElement(Fe.ZP,{disabled:js,className:"ml20",onClick:()=>Qd(Bu==null?void 0:Bu.id,Xn.type,Zo,Xn),type:"primary",ghost:!0},"\u6362\u4E00\u9898")),(Bu==null?void 0:Bu.item_type)==="bprogram"&&a.createElement(fe.Z,{style:{paddingRight:10,paddingLeft:25},showProgramFill:!0,disabledFill:!0,className:Ce.titleHtml,value:Is.Base64.decode(((uo=Bu==null?void 0:Bu.program_attr)==null?void 0:uo.code)||"")}),(Xn.type==="SINGLE"||Xn.type==="JUDGMENT"||Xn.type==="MULTIPLE")&&Kc(Bu),Xn.type==="COMPLETION"&&Xl(Bu),Xn.type==="SUBJECTIVE"&&xc(Bu),Xn.type==="PROGRAM"&&Yc(Bu),Xn.type==="BPROGRAM"&&hc(Bu),Xn.type==="COMBINATION"&&qo(Bu,Zo),Xn.type==="PRACTICAL"&&ad(Bu),a.createElement(me.Z,{className:"mt20",wrap:!1,align:"middle",gutter:20},((As=wt==null?void 0:wt.exam)==null?void 0:As.exercise_status)===3&&!["PROGRAM","BPROGRAM","PRACTICAL","COMBINATION"].includes(Xn.type)&&a.createElement(oe.Z,null,a.createElement(Cc.Z,{state:Bu==null?void 0:Bu.is_wrong,onClick:()=>{xu==null||xu({value:uc(Ms({},Bu),{question_id:Bu==null?void 0:Bu.id,question_score:Bu==null?void 0:Bu.score})})}})),["PROGRAM","BPROGRAM","PRACTICAL"].includes(Xn.type)&&(Bu==null?void 0:Bu.show_resubmit)&&a.createElement(oe.Z,null,a.createElement(dc.C,{dataSource:uc(Ms({},Bu),{question_id:Bu==null?void 0:Bu.id})})),((Mi=wt==null?void 0:wt.exam)==null?void 0:Mi.exercise_status)===3&&["SINGLE"].includes(Xn.type)&&a.createElement(oe.Z,null,a.createElement(Fe.ZP,{style:{color:"#3061D0"},onClick:()=>{Ud({value:Bu})}},"\u589E\u8BBE\u6B63\u786E\u7B54\u6848"))))}))}))),Or?a.createElement(ba.vr,null,a.createElement(E.Z,{showTotal:Ne.rU,total:(Yr=wt==null?void 0:wt.exam)==null?void 0:Yr.total_num,pageSize:1,current:zr+1,showSizeChanger:!1,onChange:Fd,showQuickJumper:!1,hideOnSinglePage:!1})):a.createElement(ba.vr,{LeftContent:a.createElement(ba.op,{onClick:gn,shape:"default",style:{height:38,background:"#fff",boxShadow:"none"}},"\u8FD4\u56DE"),RightContent:a.createElement(me.Z,{align:"middle"},a.createElement(Me.Z,{color:"#55575D",overlayClassName:Ce.popover,open:Jo,getPopupContainer:Xn=>Xn==null?void 0:Xn.parentNode,content:"\u5982\u60A8\u5BF9\u6B64\u4EFD\u8BD5\u9898\u6EE1\u610F\uFF0C\u53EF\u5C06\u6B64\u4EFD\u8BD5\u9898\u4FDD\u5B58\u4E3A\u56FA\u5B9A\u8BD5\u5377"},a.createElement(ba.op,{onMouseEnter:()=>wi(!0),onMouseLeave:()=>wi(!1),onClick:()=>qd(),shape:"default",style:{height:38,background:"#fff",boxShadow:"none"}},"\u4FDD\u5B58")),a.createElement(ba.op,{shape:"default",type:"primary",onClick:()=>_t(),style:{height:38,marginLeft:20}},"\u63D0\u4EA4"))}),a.createElement(Mc,{visible:ys,questionParams:Xs.current,getdata:yu,onRandomExchange:()=>Ds(void 0,null,function*(){const Xn=Xs.current;yield su({single_question_id:Xn.id,seleted_item_bank_ids:Xn.ids},{type:Xn.type,index:Xn.index}),Ul(!1)}),selectFromProblemSet:()=>{const Xn=Xs.current,Ar=`${location.pathname}${location.search}`;Ar.includes("exercise")&&ve.history.push(`/paperlibrary/exchangequestion?type=exercise&qid=${Xn.id}&qtype=${Xn.type}&exerciseid=${wl.categoryId}&from=${Ar}`)},onCancel:()=>{Ul(!1)}}))};var Gc=(0,ve.connect)(({classroomList:wt})=>({classroomList:wt}))(cd)},72911:function(Ft,rt,z){"use strict";z.r(rt),z.d(rt,{default:function(){return b}});var a=z(67294),Ce=z(35973),ke={flex_box_center:"flex_box_center___kQBcj",flex_space_between:"flex_space_between___Znlbo",flex_box_vertical_center:"flex_box_vertical_center___CPD50",flex_box_center_end:"flex_box_center_end___jzPvK",flex_box_column:"flex_box_column___cvIBS",wrap:"wrap___lab8O",crumbs:"crumbs___qvTza"},he=z(38884),Fe=z(2453),xe=z(48054),pe=z(33170),Se=z(28706),Ae=z(67294),Ie=Object.defineProperty,ze=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,oe=(ee,te,ne)=>te in ee?Ie(ee,te,{enumerable:!0,configurable:!0,writable:!0,value:ne}):ee[te]=ne,E=(ee,te)=>{for(var ne in te||(te={}))Me.call(te,ne)&&oe(ee,ne,te[ne]);if(ze)for(var ne of ze(te))me.call(te,ne)&&oe(ee,ne,te[ne]);return ee},y=(ee,te,ne)=>new Promise((de,ye)=>{var fe=Le=>{try{Ne(ne.next(Le))}catch(Re){ye(Re)}},ve=Le=>{try{Ne(ne.throw(Le))}catch(Re){ye(Re)}},Ne=Le=>Le.done?de(Le.value):Promise.resolve(Le.value).then(fe,ve);Ne((ne=ne.apply(ee,te)).next())});const x=({paperlibrary:ee,user:te,globalSetting:ne,dispatch:de,location:ye})=>{var fe,ve,Ne,Le;const[Re]=(0,Ce.useSearchParams)(),He=Re.get("select")||0,[We,Ge]=(0,a.useState)(!1),[Ue,Ye]=(0,a.useState)(!0),[it,lt]=(0,a.useState)(Number(He)),[Bt,ct]=(0,a.useState)({}),nt=(0,Ce.useParams)(),{userInfo:Ze}=te,{actionTabs:yt}=ee;(0,a.useEffect)(()=>(de({type:"globalSetting/footerToggle",payload:!1}),()=>{de({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,a.useEffect)(()=>(de({type:"globalSetting/onlyShowBackTopToggle",payload:!1}),de({type:"globalSetting/onlyShowBackTopIconToggle",payload:!1}),de({type:"exercise/getWorkSetting",payload:E({},nt)}),()=>{de({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),de({type:"globalSetting/onlyShowBackTopIconToggle",payload:!0})}),[]),(0,a.useEffect)(()=>{ht(it)},[]),(0,a.useEffect)(()=>{var st;(st=yt==null?void 0:yt.params)!=null&&st.isUpdateData&&ht(it)},[(fe=yt==null?void 0:yt.params)==null?void 0:fe.isUpdateData]);const ht=(st=0)=>y(void 0,null,function*(){console.log(nt),Ye(!0);const ut=yield(0,pe.ZP)(`/api/exercises/${nt.categoryId}/preview_random_exercise.json`,{method:"get",params:{num:st}});de({type:"paperlibrary/setActionTabs",payload:{params:{isUpdateData:!1}}}),Ye(!1),ct((0,Se.PF)(ut))}),Je=()=>{Ce.history.push(`/classrooms/${nt.coursesId}/exercise`)},ot=()=>{alert("\u4FDD\u5B58")},Ct=(st,ut)=>y(void 0,null,function*(){const un=yield(0,pe.ZP)(`/api/exercises/${nt.categoryId}/toggle_random_question.json`,{method:"post",body:{question_id:st==null?void 0:st.single_question_id}});un!=null&&un.question&&(Fe.ZP.info("\u6362\u9898\u6210\u529F"),ht(it))}),kt=st=>y(void 0,null,function*(){document.body.scrollIntoView(),lt(st),yield ht(st)}),Mt=st=>{de({type:"exercise/setActionTabs",payload:{key:"\u6807\u8BB0\u9519\u9898",params:st}})};return console.log((0,Ce.useLocation)(),"location333"),Ae.createElement("section",{className:ke.wrap},Ae.createElement(xe.Z,{loading:Ue,active:!0,paragraph:{rows:5}},((Ne=(ve=(0,Ce.useLocation)())==null?void 0:ve.pathname)==null?void 0:Ne.includes("preview"))&&Ae.createElement("div",{className:ke.crumbs},Ae.createElement("b",null),Ae.createElement("span",{className:"current",onClick:()=>Ce.history.push(`/classrooms/${nt.coursesId}/exercise`)},`${(Le=Ze==null?void 0:Ze.course)==null?void 0:Le.course_name}>`),Ae.createElement("span",{className:"current",onClick:()=>Ce.history.push(`/classrooms/${nt.coursesId}/exercise`)},"\u8BD5\u5377\u5217\u8868>"),Ae.createElement("span",{style:{color:"#bebebe"}},"\u9884\u89C8")),Ae.createElement(he.Z,{loading:We,submit:ot,goBack:Je,data:Bt,getdata:()=>{ht(it)},selectValue:it,editPreview:!0,onExchange:Ct,onSkipExamination:kt,handleMarkWrongQuestion:Mt})))};var b=(0,Ce.connect)(({paperlibrary:ee,user:te,globalSetting:ne})=>({paperlibrary:ee,user:te,globalSetting:ne}))(x)},72971:function(Ft,rt,z){"use strict";z.d(rt,{Im:function(){return Le},ZP:function(){return Ye},gZ:function(){return Ge}});var a=z(67294),Ce=z(28802),ke=z(85804),he=z(42922),Fe=z(53978),xe=z(94189),pe=z(19575),Se=z(7621),Ae=z(65226),Ie=z(28706),ze=z(38658),Me=z(12320),me=z(94184),oe=z.n(me),E=z(67294),y=Object.defineProperty,x=Object.defineProperties,b=Object.getOwnPropertyDescriptors,ee=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,de=(it,lt,Bt)=>lt in it?y(it,lt,{enumerable:!0,configurable:!0,writable:!0,value:Bt}):it[lt]=Bt,ye=(it,lt)=>{for(var Bt in lt||(lt={}))te.call(lt,Bt)&&de(it,Bt,lt[Bt]);if(ee)for(var Bt of ee(lt))ne.call(lt,Bt)&&de(it,Bt,lt[Bt]);return it},fe=(it,lt)=>x(it,b(lt));const{TextArea:ve}=Ce.default,Ne={visible:!1,tabIndex:"0"},Le={[xe.h.HIDE_COMPILE_STATUS]:"\u6682\u4E0D\u652F\u6301\u67E5\u770B",[xe.h.NOMATCH]:"\u6D4B\u8BD5\u7528\u4F8B\u7ED3\u679C\u4E0D\u5339\u914D",[xe.h.OK]:"\u8C03\u8BD5\u901A\u8FC7",2:"\u8C03\u8BD5\u8D85\u65F6",3:"\u8C03\u8BD5pod\u5931\u8D25",4:"\u7F16\u8BD1\u5931\u8D25",5:"\u6267\u884C\u5931\u8D25"};var Re=(it=>(it[it.SET_VISIBLE=0]="SET_VISIBLE",it[it.SET_TABINDEX=1]="SET_TABINDEX",it))(Re||{});function He(it,lt){switch(lt.type){case 0:return fe(ye({},it),{visible:lt.payload});case 1:return fe(ye({},it),{tabIndex:lt.payload});default:throw new Error}}function We({value:it,className:lt}){const[Bt,ct]=(0,a.useState)(!1),nt=(0,a.useRef)(),Ze=(0,a.useRef)();return(0,a.useEffect)(()=>{Bt&&(Ze.current.reset(),Ze.current.write((0,Ie.pp)(it||"")))},[it,Bt]),(0,a.useEffect)(()=>{var yt,ht,Je,ot;if(nt.current){Ze.current=new Me.Terminal({fontSize:14,disableStdin:!0}),Ze.current.open(nt.current);const Ct=nt.current.offsetWidth-14,kt=((ot=(Je=(ht=(yt=Ze.current)==null?void 0:yt._core)==null?void 0:ht._renderService)==null?void 0:Je.dimensions)==null?void 0:ot.actualCellWidth)||9.5,Mt=Math.ceil(Ct/kt);Ze.current.resize(Mt,8),ct(!0)}},[]),E.createElement("div",{ref:nt,className:oe()("XtermText-valueRef",lt)})}function Ge(it){const{status:lt,error_msg:Bt,output:ct,input:nt,expected_output:Ze,is_file:yt,input_file_url:ht,output_file_url:Je,expected_output_file_url:ot}=it;let Ct=null;const kt={minHeight:150,marginBottom:10,paddingLeft:24,background:"#070f19",color:"#fff"};switch(lt){case xe.h.NOMATCH:Ct=E.createElement(E.Fragment,null,E.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u5165\uFF1A"),!yt&&E.createElement(We,{className:"mb10",value:nt}),yt&&E.createElement("div",{style:kt},E.createElement("a",{onClick:()=>(0,Ie.LR)(ht,nt)},nt)),E.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u51FA\uFF1A"),!yt&&E.createElement(We,{className:"mb10",value:ct&&pe.Base64.decode(ct)||""}),yt&&E.createElement("div",{style:kt},E.createElement("a",{onClick:()=>(0,Ie.LR)(Je,ct)},ct)),E.createElement("p",{className:"c-red"},"\u9884\u671F\u8F93\u51FA\uFF1A"),!yt&&E.createElement(We,{className:"mb10",value:Ze&&pe.Base64.decode(Ze)||""}),yt&&E.createElement("div",{style:kt},E.createElement("a",{onClick:()=>(0,Ie.LR)(ot,Ze)},Ze)));break;case xe.h.EXECUTEFAILURE:Ct=E.createElement(E.Fragment,null,E.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!yt&&E.createElement(Ae.Z,{value:nt,style:kt}),yt&&E.createElement("div",{style:kt},E.createElement("a",{onClick:()=>(0,Ie.LR)(ht,nt)},nt)),E.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),E.createElement("pre",{className:"error"},pe.Base64.decode(Bt)));break;case xe.h.COMPILEFAILURE:Ct=E.createElement(E.Fragment,null,E.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!yt&&E.createElement(Ae.Z,{value:nt,style:kt}),yt&&E.createElement("div",{style:kt},E.createElement("a",{onClick:()=>(0,Ie.LR)(ht,nt)},nt)),E.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),E.createElement("pre",{className:"error"},pe.Base64.decode(Bt)));break;case xe.h.PODFAILURE:Ct=E.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case xe.h.TIMEOUT:Ct=E.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return E.createElement(E.Fragment,null," ",Ct," ")}function Ue(it){const{status:lt,error_msg:Bt,execute_time:ct,output:nt,input:Ze,expected_output:yt,is_file:ht,input_file_url:Je,output_file_url:ot,expected_output_file_url:Ct}=it;let kt=null;switch(lt){case xe.h.OK:kt=E.createElement(E.Fragment,null,E.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",ct,"\u79D2"),E.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A"),E.createElement("pre",null,pe.Base64.decode(nt)));break;case xe.h.NOMATCH:kt=E.createElement(E.Fragment,null,E.createElement("p",null,"\u8F93\u5165\uFF1A",E.createElement("pre",null,Ze)),E.createElement("p",null,"\u8F93\u51FA\uFF1A",nt&&pe.Base64.decode(nt)),E.createElement("p",null,"\u9884\u671F\u8F93\u51FA\uFF1A",yt&&pe.Base64.decode(yt)));break;case xe.h.EXECUTEFAILURE:kt=E.createElement(E.Fragment,null,E.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",E.createElement("pre",null,Ze)),E.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),E.createElement("pre",{className:"error"},pe.Base64.decode(Bt)));break;case xe.h.COMPILEFAILURE:kt=E.createElement(E.Fragment,null,E.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",E.createElement("pre",null,Ze)),E.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),E.createElement("pre",{className:"error"},pe.Base64.decode(Bt)));break;case xe.h.PODFAILURE:kt=E.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case xe.h.TIMEOUT:kt=E.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return E.createElement(E.Fragment,null," ",kt," ")}var Ye=({id:it,is_file:lt,input:Bt,debuging:ct,submitting:nt,executingMessage:Ze,debugResult:yt,onChangeInput:ht,onDebugCode:Je,onSubmitCode:ot})=>{const[Ct,kt]=(0,a.useReducer)(He,Ne),{visible:Mt,tabIndex:st}=Ct;(0,a.useEffect)(()=>{kt({type:0,payload:!1})},[it]);function ut(bt){let An=bt.target.id;kt({type:1,payload:An})}function un(){kt({type:0,payload:!Mt})}const Pn=(0,a.useMemo)(()=>{if(yt){const{status:bt}=yt;return E.createElement(E.Fragment,null,Ue(yt))}return null},[yt]);function Rn(){kt({type:0,payload:!0}),kt({type:1,payload:"1"}),Je()}return E.createElement("div",{className:"test-case-panel"},E.createElement("div",{className:`test-case-panel-body ${Mt?"active":""}`},E.createElement("ul",{className:"s-navs"},E.createElement("li",null,E.createElement("a",{className:"active"},"\u8C03\u8BD5\u4EE3\u7801\u7ED3\u679C"))),E.createElement(ze.Z,{leftTitle:"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B",rightTitle:"\u4EE3\u7801\u6267\u884C\u7ED3\u679C",style:{height:240},leftNode:E.createElement(ve,{placeholder:"\u8BF7\u8F93\u5165\u81EA\u6D4B\u7528\u4F8B\uFF08\u5982\u679C\u672A\u586B\u5199\uFF0C\u9996\u6B21\u81EA\u6D4B\u8FD0\u884C\u65F6\uFF0C\u7CFB\u7EDF\u4F1A\u81EA\u52A8\u586B\u5145\u7B2C\u4E00\u4E2A\u975E\u9690\u85CF\u7684\u6587\u672C\u7C7B\u578B\u7684\u6D4B\u8BD5\u7528\u4F8B\uFF09",value:lt?"":Bt,onChange:ht}),rightNode:ct?E.createElement(Se.Z,{message:"\u4EE3\u7801\u6267\u884C\u4E2D..."}):yt?Pn:E.createElement("p",{style:{color:"#536879"}},"\u8BF7\u586B\u5199\u6D4B\u8BD5\u7528\u4F8B\u7684\u8F93\u5165\u503C\uFF0C\u70B9\u51FB\u201C\u8C03\u8BD5\u4EE3\u7801\u201D")})),E.createElement("a",{className:`btn-collapse ${Mt?"up":""}`,onClick:un},Mt?E.createElement(he.Z,null):E.createElement(Fe.Z,null)),E.createElement("footer",{className:"footer"},E.createElement("span",{style:{visibility:"hidden"}},"\u63A7\u5236\u53F0"),E.createElement("div",{className:"flex-container"},E.createElement(ke.ZP,{id:"oj-prev",className:"btn-blue",type:"ghost"},"\u4E0A\u4E00\u9898"),E.createElement(ke.ZP,{id:"oj-next",className:"btn-blue",type:"ghost"},"\u4E0B\u4E00\u9898"),E.createElement(ke.ZP,{className:"btn-green",type:"ghost",loading:ct,onClick:Rn},"\u8C03\u8BD5\u4EE3\u7801"),E.createElement(ke.ZP,{type:"primary",className:"custom-ant-disabled",loading:nt,disabled:nt,onClick:()=>{kt({type:0,payload:!1}),ot()}},"\u8BC4\u6D4B\u5E76\u63D0\u4EA4"))))}},94189:function(Ft,rt,z){"use strict";z.d(rt,{h:function(){return a}});var a=(Ce=>(Ce[Ce.NOMATCH=-1]="NOMATCH",Ce[Ce.OK=0]="OK",Ce[Ce.TIMEOUT=2]="TIMEOUT",Ce[Ce.PODFAILURE=3]="PODFAILURE",Ce[Ce.COMPILEFAILURE=4]="COMPILEFAILURE",Ce[Ce.EXECUTEFAILURE=5]="EXECUTEFAILURE",Ce[Ce.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",Ce))(a||{})},32259:function(Ft,rt,z){"use strict";z.d(rt,{Y2:function(){return it},ZP:function(){return lt}});var a=z(67294),Ce=z(35059),ke=z(2453),he=z(62844),Fe=z(71230),xe=z(98813),pe=z(85804),Se=z(84567),Ae=z(83062),Ie=z(28802),ze={wrap:"wrap___MkYbQ",colorBlue:"colorBlue___onjbP",repeatedName:"repeatedName___nbqnE",text:"text___xvutp",greyText:"greyText___dihvZ",noData:"noData___LxOJA",dragger:"dragger___y7F4A",uploadText:"uploadText___Et3KS",btnS:"btnS___k1e6j",testCaseRadio:"testCaseRadio___q1wXT",head:"head___s4Eix",operation:"operation___JCAVh",headProgram:"headProgram___uWA_M",listWrapper:"listWrapper___xW3b4",list:"list___dCbd6",del:"del___abNho",info:"info___J1Wmf"},Me="data:image/png;base64,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",me=z(56448),oe=z.n(me),E=z(59451),y=z(33170),x=z(25934),b=z(28706),ee=z(20819),te=z(67294),ne=Object.defineProperty,de=Object.defineProperties,ye=Object.getOwnPropertyDescriptors,fe=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,Le=(Bt,ct,nt)=>ct in Bt?ne(Bt,ct,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Bt[ct]=nt,Re=(Bt,ct)=>{for(var nt in ct||(ct={}))ve.call(ct,nt)&&Le(Bt,nt,ct[nt]);if(fe)for(var nt of fe(ct))Ne.call(ct,nt)&&Le(Bt,nt,ct[nt]);return Bt},He=(Bt,ct)=>de(Bt,ye(ct)),We=(Bt,ct,nt)=>new Promise((Ze,yt)=>{var ht=Ct=>{try{ot(nt.next(Ct))}catch(kt){yt(kt)}},Je=Ct=>{try{ot(nt.throw(Ct))}catch(kt){yt(kt)}},ot=Ct=>Ct.done?Ze(Ct.value):Promise.resolve(Ct.value).then(ht,Je);ot((nt=nt.apply(Bt,ct)).next())});const{Dragger:Ge}=Ce.default,Ue=Bt=>{const ct=kt=>kt&&kt.substring(0,kt.lastIndexOf("."));for(var nt=[...Bt],Ze=0,yt=[],ht=0;ht{if(kt.forEach(Mt=>{let st=Mt.name.split(/\.(?=[^\.]+$)/);Mt.name=`${st[0]}.${st[1].toLowerCase()}`}),kt[0].name.includes(".in"))return kt.length===2?kt:[kt[0],{}];if(kt[0].name.includes(".out"))return kt.length===2?kt.reverse():[{},kt[0]]})},Ye=({onClose:Bt,onOK:ct,visible:nt,wrapClassName:Ze,rootIdentifier:yt,multiple:ht=!1,defaultMultipleValue:Je=!0})=>{const[ot,Ct]=(0,a.useState)([]),[kt,Mt]=(0,a.useState)({}),[st,ut]=(0,a.useState)(!1),[un,Pn]=(0,a.useState)(!0),Rn=(0,a.useRef)([]),bt=(0,a.useRef)(0),An=()=>{Bt()};(0,a.useEffect)(()=>{Nn()},[]),(0,a.useEffect)(()=>{nt&&(Rn.current=[],bt.current=0,Ct([]),Pn(Je))},[nt]);const Nn=()=>We(void 0,null,function*(){try{const St=yield(0,y.ZP)("/api/buckets/get_upload_token_for_big_files",{method:"get"}),Ke=JSON.parse((0,E.pe)(St.data));Mt(Ke)}catch(St){}}),Qt=St=>St&&St.substring(0,St.lastIndexOf(".")),zt=St=>{var Ke,ln;const Un=Qt((Ke=St[0])==null?void 0:Ke.name)||Qt((ln=St[1])==null?void 0:ln.name),Ca=ot.filter(Cu=>Qt(Cu.name)!==Un);Rn.current=[...Ca],Ct([...Ca])},jt=St=>{if(!un){const Da=new FormData;Da.append("file",St.file),(0,y.ZP)("/api/attachments/get_file_content.json",{method:"post",body:Da},!0).then(cu=>{if(cu.status===0){bt.current=bt.current+1;const or=Rn.current.map(Aa=>{var Zt;if(Aa.name===St.name){const xn=Re({},Aa);return(Zt=St==null?void 0:St.name)!=null&&Zt.includes(".in")?xn.input=cu==null?void 0:cu.content:xn.output=cu==null?void 0:cu.content,xn}return Aa});if(Rn.current=[...or],Ct([...or]),bt.current>0&&bt.current===ot.length){ut(!1);let Aa=Ue(or);Aa=Aa.filter(Zt=>{var xn,vl;return!!((xn=Zt[0])!=null&&xn.name&&((vl=Zt[1])!=null&&vl.name))}),Aa=Aa.map(Zt=>He(Re(Re({},Zt[0]),Zt[1]),{is_file:!1})),ct(Aa),Bt()}}else ut(!1),Bt()});return}const Ke=new(oe())({endpoint:kt.end_point,region:kt.region,accessKeyId:kt.access_key_id,accessKeySecret:kt.access_key_secret,bucket:kt.bucket,stsToken:kt.security_token}),ln=St.name,Un={container_type:"TestSet",file_name:ln},Ca=(0,x.Z)();let Cu=`testsets/${yt}/${Ca}${ln.indexOf(".")>-1?"."+ln.split(".").pop():""}`;yt===null&&(Cu=`testsets/${Ca}${ln.indexOf(".")>-1?"."+ln.split(".").pop():""}`),Ke.multipartUpload(Cu,new Blob([St.file],{type:St.file.type}),{timeout:3600*1e3,partSize:1002400,callback:{customValue:{id:ln+""},url:kt==null?void 0:kt.callback_url,host:kt==null?void 0:kt.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,y.rz)(Un)}}).then(function(Da){if(Da.data.status===0){bt.current=bt.current+1;const nr=Rn.current.map(cu=>{var or,Aa,Zt,xn,vl,Er,er,Pa,Za,qn,Vn,Qa,gu,_u,ir,ul,On;if(cu.name===((Aa=(or=Da.data)==null?void 0:or.data)==null?void 0:Aa.file_name)){const Jt=Re({},cu);return(vl=(xn=(Zt=Da.data)==null?void 0:Zt.data)==null?void 0:xn.file_name)!=null&&vl.includes(".in")?(Jt.in_object_key=(er=(Er=Da.data)==null?void 0:Er.data)==null?void 0:er.object,Jt.in_object_size=(Za=(Pa=Da.data)==null?void 0:Pa.data)==null?void 0:Za.size,Jt.input=(Vn=(qn=Da.data)==null?void 0:qn.data)==null?void 0:Vn.file_name,Jt.in_file=St):(Jt.out_object_key=(gu=(Qa=Da.data)==null?void 0:Qa.data)==null?void 0:gu.object,Jt.out_object_size=(ir=(_u=Da.data)==null?void 0:_u.data)==null?void 0:ir.size,Jt.output=(On=(ul=Da.data)==null?void 0:ul.data)==null?void 0:On.file_name,Jt.out_file=St),Jt}return cu});if(Rn.current=[...nr],Ct([...nr]),bt.current>0&&bt.current===ot.length){ut(!1);let cu=Ue(nr);cu=cu.filter(or=>{var Aa,Zt;return!!((Aa=or[0])!=null&&Aa.name&&((Zt=or[1])!=null&&Zt.name))}),cu=cu.map(or=>He(Re(Re({},or[0]),or[1]),{is_file:!0})),ct(cu),Bt()}}})},sn=St=>new Promise((Ke,ln)=>{let Un=0,Ca=[];for(let Cu=0;Cu{Un++,Un===St.length&&(Ca.length?(ke.ZP.warning(`${Ca.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),ln()):Ke(St))}).catch(Da=>{console.log("\u9519\u8BEF\u4FE1\u606F\uFF1A",Da),Un++,Ca.push(St[Cu].name),Un===St.length&&(Ca.length?(ke.ZP.warning(`${Ca.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),ln()):Ke(St))})}),vt=()=>We(void 0,null,function*(){if(ot.length===0){ke.ZP.warning("\u8BF7\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");return}if(yield sn(ot),ut(!0),Ue(ot).some(Ke=>{var ln,Un;return!((ln=Ke[0])!=null&&ln.name&&((Un=Ke[1])!=null&&Un.name))})){he.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u4E0A\u4F20\u7684\u6D4B\u8BD5\u7528\u4F8B\u4E2D\u5B58\u5728\u672A\u914D\u5BF9\u7684\u6587\u4EF6\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u4EC5\u4FDD\u5B58\u5DF2\u914D\u5BF9\u7684\u6D4B\u8BD5\u7528\u4F8B\uFF1F",onOk:()=>We(void 0,null,function*(){ot.map(Ke=>We(void 0,null,function*(){jt(Ke)}))}),onCancel:()=>{ut(!1)}});return}ot.map(Ke=>We(void 0,null,function*(){jt(Ke)}))}),Tt={name:"file",fileList:ot,multiple:!0,accept:".in, .out",showUploadList:!1,beforeUpload:St=>{if(ot!=null&&ot.some(ln=>ln.name===St.name))return ke.ZP.info(`${St.name}\u6587\u4EF6\u5DF2\u5B58\u5728`),!1;if(St.size/1024/1024>100)return ke.ZP.info("\u6587\u4EF6\u8D85\u8FC7100M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;if(!/\.(in|out|IN|OUT)$/.test(St.name))return ke.ZP.warning("\u8F93\u5165\u6587\u4EF6\u53EA\u80FD\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6"),!1;const Ke={name:St.name,uid:St.uid,file:St,percent:0};return ot.push(Ke),Rn.current=[...ot],Ct([...ot]),!1}},qt=Ue(ot);return console.log(ot,qt,"fileList"),te.createElement(he.default,{open:nt,wrapClassName:Ze,onOk:vt,centered:!0,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",okButtonProps:{loading:st},onCancel:An,width:730,title:"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"},te.createElement("div",{className:ze.wrap},ot.length?te.createElement("div",null,te.createElement(Fe.Z,{justify:"space-between",align:"middle",style:{marginBottom:40}},te.createElement("div",{style:{visibility:ht?"visible":"hidden"}},te.createElement("span",{className:ze.greyText},"\u7528\u4F8B\u7C7B\u578B"),te.createElement(xe.ZP.Group,{className:`ml20 ${ze.testCaseRadio}`,optionType:"button",value:un,onChange:St=>Pn(St.target.value)},te.createElement(xe.ZP,{value:!1},"\u6587\u672C"),te.createElement(xe.ZP,{value:!0},"\u6587\u4EF6"))),te.createElement(Ce.default,Re({},Tt),te.createElement(pe.ZP,{type:"primary",className:ze.btnS},te.createElement("i",{className:"iconfont icon-shangchuan2"}),"\u4E0A\u4F20\u6587\u4EF6"))),te.createElement(it,{data:qt,onRemove:zt})):te.createElement("div",{className:`${ze.noData} mb30`},te.createElement(Ce.default.Dragger,He(Re({},Tt),{className:ze.dragger}),te.createElement("img",{src:Me,alt:"",className:"mb20"}),te.createElement("div",null,te.createElement("span",null,"\u62D6\u62FD\u6587\u4EF6\u6216"),te.createElement("span",{className:ze.uploadText},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))),te.createElement("div",{className:ze.text},te.createElement("span",{style:{color:"#FA6400"}},"\u63D0\u793A"),te.createElement("br",null),"1\u3001\u6587\u4EF6\u5FC5\u987B\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6\u3002",te.createElement("br",null),"2\u3001\u4E0A\u4F20\u7684\u6587\u4EF6\u7F16\u7801\u4EC5\u652F\u6301UTF-8\uFF0C\u5426\u5219\u53EF\u80FD\u4F1A\u51FA\u73B0\u6587\u672C\u4E71\u7801\u3002",te.createElement("br",null),"3\u3001\u8F93\u5165\u8F93\u51FA\u6587\u4EF6\u9700\u6587\u4EF6\u540D\u79F0\u4E00\u4E00\u5BF9\u5E94\uFF0C\u672A\u5BF9\u5E94\u65F6\uFF0C\u5C06\u65E0\u6CD5\u4E0A\u4F20\u3002",te.createElement("br",null),"4\u3001\u5355\u4E2A\u4E0A\u4F20\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7100MB\uFF0C\u8D85\u8FC7\u65F6\u53EF\u4EE5\u5206\u6279\u6B21\u4E0A\u4F20\u3002",te.createElement("br",null))))},it=({data:Bt=[],onRemove:ct,width:nt="auto",showScore:Ze=!1,disabled:yt=!1,inputChange:ht,onEvaluatingChange:Je,onSelectAll:ot,checkAll1:Ct,checkAll2:kt,checkAll3:Mt,checkAll4:st,checkAll5:ut,showEvaluatingSetting:un=!1,className:Pn="",isProgramHomework:Rn=!1})=>{const bt={value:"",filename:"",dataUrl:""},[An,Nn]=(0,a.useState)(Re({},bt)),Qt=sn=>{let vt=document.createElement("a");document.body.appendChild(vt);let Tt=URL.createObjectURL(sn.file);vt.href=Tt,vt.download=sn.name,vt.click(),URL.revokeObjectURL(Tt),document.body.removeChild(vt)},zt=(sn,vt)=>{(0,b.LR)(sn,vt)},jt=(sn,vt)=>{he.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:te.createElement("div",{className:"tc font16"},"\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664\u8BE5\u6D4B\u8BD5\u7528\u4F8B?"),onOk:()=>{ct(sn,vt)},onCancel:()=>{}})};return Bt.length?te.createElement("div",{className:Pn,style:{width:nt}},te.createElement("div",{className:`${Rn?ze.headProgram:ze.head}`},un&&te.createElement("div",{style:{width:"15%",display:"flex",alignItems:"center"}},te.createElement(Se.default,{checked:Ct,onChange:sn=>{ot(sn.target.checked,"hidden")}}),te.createElement(Ae.Z,{title:'\u9690\u85CF\u6D4B\u8BD5\u96C6\u53EF\u4EE5\u9632\u6B62\u5B66\u751F\u901A\u8FC7"print"\u7B49\u624B\u6BB5\u76F4\u63A5\u901A\u5173'},te.createElement("span",{style:{marginLeft:"8px"}},"\u9690\u85CF"),te.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),te.createElement("div",{style:{width:Rn?"25%":"15%"}},"\u7528\u4F8B"),te.createElement("div",{style:{width:Ze?Rn?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u5165"),te.createElement("div",{style:{width:Ze?Rn?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u51FA"),Ze&&te.createElement("div",{style:{width:"20%"}},"\u5F97\u5206\u6BD4\u4F8B"),un&&te.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},te.createElement(Se.default,{checked:st,onChange:sn=>{ot(sn.target.checked,"input_visible")}}),te.createElement(Ae.Z,{title:"\u52FE\u9009\u540E\uFF0C\u8F93\u5165\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},te.createElement("span",{style:{marginLeft:"8px"}},"\u8F93\u5165"),te.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),un&&te.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},te.createElement(Se.default,{checked:kt,onChange:sn=>{ot(sn.target.checked,"is_invisible")}}),te.createElement(Ae.Z,{title:"\u52FE\u9009\u540E\uFF0C\u9884\u671F\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},te.createElement("span",{style:{marginLeft:"8px"}},"\u9884\u671F\u8F93\u51FA"),te.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),un&&te.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},te.createElement(Se.default,{checked:ut,onChange:sn=>{ot(sn.target.checked,"actual_output_visible")}}),te.createElement(Ae.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},te.createElement("span",{style:{marginLeft:"8px"}},"\u5B9E\u9645\u8F93\u51FA"),te.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),un&&te.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},te.createElement(Se.default,{checked:Mt,onChange:sn=>{ot(sn.target.checked,"last_match_rule")}}),te.createElement(Ae.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u4E0E\u9884\u671F\u8F93\u51FA\u6700\u540E\u4E00\u884C\u76F8\u540C\u5373\u53EF\u901A\u5173"},te.createElement("span",{style:{marginLeft:"8px"}},"\u7279\u6B8A\u5224\u5B9A"),te.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),te.createElement("div",{className:ze.operation,style:Rn?{flex:1,textAlign:"right"}:{width:"10%"}},"\u64CD\u4F5C")),te.createElement("div",{className:ze.listWrapper,style:{boxShadow:Rn?"0px 2px 4px 0px #EAEEF4":"unset"}},Bt.map((sn,vt)=>{var Tt,qt,St,Ke;return te.createElement("div",{key:vt,className:ze.list,style:Rn?{marginBottom:"0px",height:"66px",borderBottom:"1px solid #F6F7F8"}:{}},un&&te.createElement("div",{style:{width:"15%"}},te.createElement(Se.default,{checked:!!sn.hidden,onChange:ln=>{Je(ln.target.checked,vt,"hidden")}})),te.createElement("div",{style:{width:Rn?"25%":"15%",paddingLeft:Rn?"5px":"0px",paddingRight:Rn?"5px":"0px"}},"\u6D4B\u8BD5\u7528\u4F8B",vt+1),te.createElement("div",{className:ze.info,style:{width:Ze?Rn?"20%":"15%":"25%"}},te.createElement("span",{title:sn.input||((Tt=sn[0])==null?void 0:Tt.name),onClick:()=>We(void 0,null,function*(){let ln;sn.input?sn.input_file_url?ln=sn.input_file_url:ln=sn.in_file:ln=sn[0];let Un;typeof ln=="string"?(Un=yield fetch(ln,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),Nn({value:yield Un.text(),filename:"",dataUrl:ln})):(Un=yield(0,b.db)(ln.file),Nn({value:Un.text,filename:ln.name,dataUrl:Un.link}))})},sn.input||((qt=sn[0])==null?void 0:qt.name))),te.createElement("div",{className:ze.info,style:{width:Ze?Rn?"20%":"15%":"25%"}},te.createElement("span",{title:sn.output||((St=sn[1])==null?void 0:St.name),onClick:()=>We(void 0,null,function*(){let ln;sn.input?sn.output_file_url?ln=sn.output_file_url:ln=sn.out_file:ln=sn[1];let Un;typeof ln=="string"?(Un=yield fetch(ln,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),Nn({value:yield Un.text(),filename:"",dataUrl:ln})):(Un=yield(0,b.db)(ln.file),Nn({value:Un.text,filename:ln.name,dataUrl:Un.link}))})},sn.output||((Ke=sn[1])==null?void 0:Ke.name))),Ze&&te.createElement("div",{style:{width:"20%"}},te.createElement(Ie.default,{size:"large",addonAfter:Rn?"%":null,disabled:yt,style:{width:"80%"},onChange:ln=>ht(ln,vt),value:sn.score}),!Rn&&te.createElement("span",null,"\xA0%")),un&&te.createElement("div",{style:{width:"20%"}},te.createElement(Se.default,{checked:sn.input_visible||!1,onChange:ln=>{Je(ln.target.checked,vt,"input_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),un&&te.createElement("div",{style:{width:"20%"}},te.createElement(Se.default,{checked:sn.is_invisible||!1,onChange:ln=>{Je(ln.target.checked,vt,"is_invisible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),un&&te.createElement("div",{style:{width:"20%"}},te.createElement(Se.default,{checked:sn.actual_output_visible||!1,onChange:ln=>{Je(ln.target.checked,vt,"actual_output_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),un&&te.createElement("div",{style:{width:"20%"}},te.createElement(Se.default,{checked:sn.last_match_rule||!1,onChange:ln=>{Je(ln.target.checked,vt,"last_match_rule")},className:"font14"},"\u672B\u5C3E\u5339\u914D")),te.createElement("div",{onClick:()=>jt(sn,vt),style:Rn?{flex:1,textAlign:"right",paddingLeft:"5px",paddingRight:"5px"}:{width:"10%",textAlign:"center"}},te.createElement("span",{className:ze.del},"\u5220\u9664")))})),te.createElement(ee.Z,{close:!0,data:An.dataUrl,filename:An.filename,type:An.dataUrl.length?"txt":"",onClose:()=>Nn(Re({},bt)),monacoEditor:{value:An.value,language:"txt",onChange:()=>{},options:{fontSize:14,readOnly:!0,minimap:{enabled:!1}}}})):te.createElement(te.Fragment,null)};var lt=Ye},93989:function(Ft,rt,z){"use strict";z.d(rt,{Z:function(){return me}});var a=z(67294),Ce=z(2453),ke=z(83062),he=z(74330),Fe=z(71230),xe=z(15746),pe=z(14845),Se=z(85804),Ae=z(35567),Ie=z(33170),ze=z(65226),Me=(E,y,x)=>new Promise((b,ee)=>{var te=ye=>{try{de(x.next(ye))}catch(fe){ee(fe)}},ne=ye=>{try{de(x.throw(ye))}catch(fe){ee(fe)}},de=ye=>ye.done?b(ye.value):Promise.resolve(ye.value).then(te,ne);de((x=x.apply(E,y)).next())}),me=({id:E,activeDiscussIndex:y,onReplyDiscuss:x,adminOrOperator:b})=>{const[ee,te]=(0,a.useState)(""),[ne,de]=(0,a.useState)(!1);function ye(ve){te(ve)}function fe(){if(!ee){Ce.ZP.info("\u56DE\u590D\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A!");return}x(E,ee),te("")}return(0,a.useEffect)(()=>{y!=E&&de(!1)},[y]),a.createElement("div",{key:E,className:"discuss-item-editor",style:{display:y===E?"block":"none",width:"100%"}},a.createElement(Ae.Z,{miniToolbar:!0,startInit:y===E,defaultValue:ee,id:E,noStorage:!0,watch:!1,height:155,placeholder:"\u6211\u8981\u56DE\u590D",showResizeBar:!0,onChange:ye,extraUse:b&&a.createElement(ke.Z,{color:"#fff",open:ne,destroyTooltipOnHide:!0,title:oe({id:E,isOpen:ne,activeDiscussIndex:y,onChange:ye,setIsOpen:de}),overlayStyle:{maxWidth:600}},a.createElement("a",{title:ne?"\u5173\u95ED\u63A8\u8350":"\u6253\u5F00\u63A8\u8350",onClick:()=>de(!ne)},a.createElement("i",{className:"iconfont icon-dianzan11"})))}),a.createElement("a",{onClick:fe,className:"btn-send"},"\u53D1\u9001"))};const oe=E=>{const[y,x]=(0,a.useState)(!1),[b,ee]=(0,a.useState)([]),[te,ne]=(0,a.useState)(1);(0,a.useEffect)(()=>{E!=null&&E.isOpen?de():(ne(1),ee([]))},[E==null?void 0:E.isOpen]);const de=()=>Me(void 0,null,function*(){x(!0);const ye=yield(0,Ie.ZP)(`/api/discusses/${E==null?void 0:E.id}/recommend_answer.json`,{method:"get"});(ye==null?void 0:ye.status)==0&&ee(ye==null?void 0:ye.answer),x(!1)});return a.createElement(he.Z,{spinning:y},a.createElement("div",{style:{color:"#000"}},a.createElement(ze.Z,{className:"font14",style:{maxHeight:500,overflow:"auto"},value:(b==null?void 0:b[te-1])||""}),a.createElement(Fe.Z,{justify:"end",align:"middle"},a.createElement(xe.Z,null,a.createElement(pe.Z,{simple:!0,current:te,pageSize:1,total:(b==null?void 0:b.length)||0,onChange:ye=>{ne(ye)}})),a.createElement(xe.Z,null,a.createElement(Se.ZP,{onClick:()=>Me(void 0,null,function*(){E==null||E.onChange(b==null?void 0:b[te-1]),E==null||E.setIsOpen(!1)})},"\u586B\u5165\u6587\u672C\u6846")))))}},5764:function(Ft,rt,z){"use strict";z.d(rt,{CP:function(){return ke},_V:function(){return xe}});var a=z(81354),Ce=z.n(a);const ke={secret:a.enc.Utf8.parse("0a18e199b87f1a8d"),iv:a.enc.Utf8.parse("6e7b11a2d8475a3c"),recordScreen1:"8Cl7udD6KTt8HPYOZOopZQ==",recordScreen2:"2OizCBkuJOsBhw8rNenXhYCv3XTIsgM5YB4rOmXz7tSksBaXYYyAirzxs7TSR1vRsyWPVAt4owje5yiTfFsxAA==",recordScreen3:"neJjLaAaeW/dFCOx/cRGopZHNvjZTB0x8p9/TcYCsAGn0mWINwybT7VQlqzmJ55DjVgOrmi/iclg/G6uBGjm/Q==",recordScreen4:"SGYXWA9MzSO+02aOU0lf0g==",recordScreen5:"oCICX8dGCYMnb+4d1CTCTQ==",recordScreen6:"5MlFeP+Uwb/T5ADmGmB6NpaUgOJy3MlJ4WpA38wds8U=",recordScreen7:"TEQF1ezPIxvVVMQNJ08HIiHpj1mXdcVt5qmr6+ALw8Y=",recordScreen8:"9a9QOkgLXlgDq14d3ZEWzA==",recordScreen9:"O0prHhH+rDoUVnpw8acqwRQvRL7fh32v1bLyv4qv71U=",recordScreen10:"nfkbhFR34HkBQLpjlbNkk3FgEdBomIsnFLVgHA1RZVBeN/H3vWJpt0re6w4cjtaKmIkNgpJhxaFgyEkcJ7Z99GCAgC0CgxaaXNQNiDmz2MygiesZVZ9laQvHFQhZehEEaFKUozvNVQMkRw0MV0eoPg==",recordScreen11:"jarJWElZmu7HFZnjOTPwNx44FImKQVf8Bx2Jrm74G44=",recordScreen12:"e7Q/zr1KcI3oVpnQ3JeDgA==",recordScreen13:"pm38jjAC3l2p/JR8E3kDWg==",recordScreen14:"/mTQurqh9htD7+PNrTooMJgdPOE914grpIKomFnikk8=",recordScreen15:"bEPsKA+wwGyQEDShAMuQmQ==",recordScreen16:"uitMDSXWhi/tOOfbtHNmyNh8e9PCLJ0naA02kzBCOD/mdg+1g9ScswIEDpdHuE1l",recordScreen17:"4+bY5u3lx+VxRA/PjP/r3Tl9C0SmKM8CRtCpmkAJq+M=",recordScreen18:"L3Tz5XdvbIAqzHw/XxJnmrx8R+v3cPrYaho0/yDug6M=",recordScreen19:"bo+SiWR7f4uhJXP1wk3oQxBEFmQdbpZPV1in12O3jaj14CuNU2kP2g2MKMTFmRqE12Di4jS3RKzRI14yWpi6Zw==",recordScreen20:"9zp6SENXwO+8GNr4+g+xIzt6s/Gf38ukabRJjhQhQoY=",recordScreen21:"9zp6SENXwO+8GNr4+g+xIy36f4lSwnfFtW0weuO6Gj8=",recordScreen22:"JrbzlyV7pBS7Yw/W1geouw==",recordScreen23:"HBRPVLqnAH9kbzQ7clr8JsTgjT3nCOaP6D+q1lrMX0T6z7vU1Nh5XljgB+Qw/Hs8",recordScreen24:"bq3vruZCtCaGLs7egAWDrgXjmyW8iQX5L+nEwqCeguM=",recordScreen25:"CjveXk9FHEWiBbhwyVRzPQ==",recordScreen26:"FxZnr4aTDDJTcRMUEb3SfA==",answer1:"YXOzThjf+mcj1OALSFqA8A==",answer2:"iyOS4uLz85NAsAWdMjWs6A==",answer3:"cnZErv6FfE02OBkLzlWAeDAW3+ysEYfgoPhcC707e9kJN3PHMP7E05NC7nRf5ESWhemykQ0Y+JYQAd1PGsIJVIZFsA7OlceUwyOfid7oTeg=",answer4:"xXjNeCMbPG5xznAfVbSmjvHn/2xVBArzvsRXJZVk7yY=",answer5:"8Cl7udD6KTt8HPYOZOopZQ==",answer6:"r4qWdIzOZoUDAHIC6Rkiz3KJVZoKCNj9MmeR76VANv90Zyj57hrKtRcOipt3SZUPfZlt17GKyBf504lj5ROxVg==",answer7:"t1d0b8j3bdsJoH9adhzqOQ==",answer8:"0TBptfONacS/9JDvt/q9BO9S0+Jv0m1glMCiAQweO4E=",answer9:"2DA7p8Fws9TWo+O5djurjrORgQjZjMrKtuIbjfCoAI8ZpLy4+sq9PFZuua40lLxjTVb7vhKqm6exT5/R19YdjnUTh6Kyt+6Px8xr6JnEHVw=",answer10:"xcjM1HNI8s6ckETto63Gq83vw68ATty2i534hkfjKAa+izWStVVH5fvCEpQxd8rYYki3IW9Qy0NU8cLJsHQXWOsYtYD70yB44qG5j3fnlDahQUcsDWEBXzx2NlAp6x5R",answer11:"0/t7yKZD1CFg6kerAPJksqJATDsJMtkB06datFVfwac=",answer12:"SJ4yd9DEs9YHnGhybPplEg=="},he={exam:ke};function Fe(pe="",Se="exam"){const{secret:Ae,iv:Ie}=he[Se];return AES.encrypt(pe,Ae,{iv:Ie,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7}).toString()}function xe(pe="",Se="exam"){const{secret:Ae,iv:Ie}=he[Se];return a.AES.decrypt(pe,Ae,{iv:Ie,mode:Ce().mode.CBC,padding:Ce().pad.Pkcs7}).toString(a.enc.Utf8)}},98769:function(Ft,rt,z){"use strict";z.d(rt,{AD:function(){return Ue},D9:function(){return Ze},Hp:function(){return ye},IM:function(){return ht},Iy:function(){return ve},KM:function(){return Rn},MJ:function(){return fe},Ne:function(){return yt},ON:function(){return Mt},Uj:function(){return un},VY:function(){return Ct},YO:function(){return ut},YX:function(){return st},Zn:function(){return E},_g:function(){return te},_k:function(){return ct},c6:function(){return We},cr:function(){return y},eV:function(){return Ge},fi:function(){return x},gh:function(){return Re},hS:function(){return Je},iA:function(){return b},j6:function(){return ne},je:function(){return lt},jj:function(){return de},kS:function(){return kt},lS:function(){return Bt},o6:function(){return He},pO:function(){return Pn},rQ:function(){return Ye},sA:function(){return Le},xm:function(){return nt},xo:function(){return ot},y8:function(){return it},yd:function(){return ee}});var a=z(89779),Ce=z(35973),ke=z(28706),he=z(2453),Fe=z(11320),xe=Object.defineProperty,pe=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,Ie=(bt,An,Nn)=>An in bt?xe(bt,An,{enumerable:!0,configurable:!0,writable:!0,value:Nn}):bt[An]=Nn,ze=(bt,An)=>{for(var Nn in An||(An={}))Se.call(An,Nn)&&Ie(bt,Nn,An[Nn]);if(pe)for(var Nn of pe(An))Ae.call(An,Nn)&&Ie(bt,Nn,An[Nn]);return bt},Me=(bt,An,Nn)=>new Promise((Qt,zt)=>{var jt=Tt=>{try{vt(Nn.next(Tt))}catch(qt){zt(qt)}},sn=Tt=>{try{vt(Nn.throw(Tt))}catch(qt){zt(qt)}},vt=Tt=>Tt.done?Qt(Tt.value):Promise.resolve(Tt.value).then(jt,sn);vt((Nn=Nn.apply(bt,An)).next())});const me=()=>{(0,Ce.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},oe=()=>{(0,Ce.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},E=bt=>Me(void 0,null,function*(){me(),(yield(0,a.YR)(ze({},bt))).status===0&&(yield(0,ke.QH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+`/api/courses/${bt.coursesId}/export_couser_info.json`,query:bt}))),oe()}),y=bt=>Me(void 0,null,function*(){const An=yield(0,a.yS)(ze({},bt));if(An.status===0)he.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/course_member_act_score`);else{if(An.status===-2)return An;An.status===-3&&((0,Ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/course_member_act_score`))}}),x=bt=>Me(void 0,null,function*(){const An=yield(0,a.W0)(ze({},bt));if(An.status===0)he.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/course_total_score`);else{if(An.status===-4)return An;An.status===-3&&((0,Ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/course_total_score`))}}),b=bt=>Me(void 0,null,function*(){const An=yield(0,a.Nl)(ze({},bt));if(An.status===0)he.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/course_total_exercise_and_other`);else{if(An.status===-4)return An;An.status===-3&&((0,Ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/course_total_exercise_and_other`))}}),ee=bt=>Me(void 0,null,function*(){const An=yield(0,a.IU)(ze({},bt));if(An.status===0)he.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/export_star_user`);else{if(An.status===-4)return An;An.status===-3&&((0,Ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/export_star_user`))}}),te=bt=>Me(void 0,null,function*(){const An=yield(0,a.td)(ze({},bt));if(An.status===0)he.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/course_total_exercise_and_other`);else{if(An.status===-2)return An;if(An.status===-3)(0,Ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/course_total_exercise_and_other`);else if(An.status===-4)return An}}),ne=bt=>Me(void 0,null,function*(){const An=yield(0,a.QX)(ze({},bt));if(An.status===0)he.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/course_total_homework`);else{if(An.status===-4)return An;An.status===-3&&((0,Ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/course_total_homework`))}}),de=(bt,An)=>Me(void 0,null,function*(){const Nn=yield(0,a.o_)(ze({},bt));Nn.status===0?(he.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/${An}`)):Nn.status===-3&&((0,Ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/${An}`))}),ye=(bt,An)=>Me(void 0,null,function*(){const Nn=yield(0,a.ZL)(ze({},bt));Nn.status===0?(he.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/${An}`)):Nn.status===-3&&((0,Ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/${An}`))}),fe=(bt,An)=>Me(void 0,null,function*(){const Nn=yield(0,a.vV)(ze({},bt));Nn.status===0?(he.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/${An}`)):Nn.status===-3&&((0,Ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/${An}`))}),ve=(bt,An)=>Me(void 0,null,function*(){const Nn=yield(0,a.aP)(ze({},bt));Nn.status===0?(he.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/${An}`)):Nn.status===-3&&((0,Ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/${An}`))}),Ne=bt=>Me(void 0,null,function*(){me(),(yield exportCourseWorkListAppendix(ze({},bt))).status===0&&(yield downLoadFileIframe("",setUrlQuery({url:ENV.API_SERVER+`/api/homework_commons/${bt.categoryId}/works_list.zip`,query:bt}))),oe()}),Le=bt=>Me(void 0,null,function*(){me(),yield(0,ke.QH)("",Fe.Z.API_SERVER+`/api/polls/${bt.categoryId}/commit_result.xlsx`),oe()}),Re=bt=>Me(void 0,null,function*(){yield(0,ke.FH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+`/api/courses/${bt.coursesId}/attendances/export_xlsx_data.xlsx`,query:bt}))}),He=bt=>Me(void 0,null,function*(){yield(0,ke.FH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+`/api/courses/${bt.coursesId}/video_study_statics.xlsx`,query:bt}))}),We=bt=>Me(void 0,null,function*(){yield(0,ke.FH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+`/api/courses/${bt.coursesId}/export_video_study.xlsx`,query:bt}))}),Ge=bt=>Me(void 0,null,function*(){yield(0,ke.FH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+`/api/courses/${bt.coursesId}/export_course_students_info.xlsx`,query:bt}))}),Ue=bt=>Me(void 0,null,function*(){yield(0,ke.FH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+"/api/school_manages/students.xlsx",query:bt}))}),Ye=bt=>Me(void 0,null,function*(){yield(0,ke.FH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+"/api/item_banks/export.xlsx",query:bt}))}),it=bt=>Me(void 0,null,function*(){yield(0,ke.FH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+"/api/competitions/region_reports.xlsx",query:bt}))}),lt=bt=>Me(void 0,null,function*(){const An=yield(0,a.Uy)(ze({},bt));An.status===0?(he.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/exercise_score,export_exercise_users`)):An.status===-3&&((0,Ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/exercise_score,export_exercise_users`))}),Bt=bt=>Me(void 0,null,function*(){const An=yield(0,a.tg)(ze({},bt));An.status===0?(he.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/exercise_score,export_exercise_report`)):An.status===-3&&((0,Ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ce.history.push(`/classrooms/${bt.coursesId}/exportlist/exercise_score,export_exercise_report`))}),ct=bt=>Me(void 0,null,function*(){console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),yield(0,ke.FH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+`/api/export_records/${bt.id}.xlsx`,query:bt}))}),nt=bt=>Me(void 0,null,function*(){yield(0,ke.FH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:bt}))}),Ze=bt=>Me(void 0,null,function*(){yield(0,ke.FH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+`/api/courses/${bt==null?void 0:bt.coursesId}/${bt.menuKey}_statistic.xlsx?${bt.checkedList.map(An=>`course_group_id[]=${An}`).join("&")}`,query:bt}))}),yt=bt=>Me(void 0,null,function*(){yield(0,ke.FH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+`/api/ec_years/${bt==null?void 0:bt.ec_year_id}/ec_training_objectives.xlsx`,query:bt}))}),ht=bt=>Me(void 0,null,function*(){yield(0,ke.FH)(bt==null?void 0:bt.name,(0,ke.NY)({url:Fe.Z.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:bt}))}),Je=bt=>Me(void 0,null,function*(){yield(0,ke.FH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+`/api/ec_years/${bt==null?void 0:bt.ec_year_id}/ec_courses.xlsx`,query:bt}))}),ot=bt=>Me(void 0,null,function*(){yield(0,ke.FH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+`/api/ec_years/${bt==null?void 0:bt.ec_year_id}/ec_graduation_requirements.xlsx`,query:bt}))}),Ct=bt=>Me(void 0,null,function*(){yield(0,ke.FH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+"/api/courses/rank_list.xlsx",query:bt}))}),kt=bt=>Me(void 0,null,function*(){yield(0,ke.FH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+"/api/courses/question_rank_list.xlsx",query:bt}))}),Mt=bt=>Me(void 0,null,function*(){yield(0,ke.FH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+`/api/examination_banks/${bt.id}.json`,query:bt}))}),st=bt=>Me(void 0,null,function*(){yield(0,ke.FH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+`/api/exercises/${bt.categoryId}.json`,query:bt}))}),ut=bt=>Me(void 0,null,function*(){yield(0,ke.FH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+`/api/polls/${bt==null?void 0:bt.id}/commit_result.json`,query:bt}))}),un=bt=>Me(void 0,null,function*(){yield(0,ke.FH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+"/api/paths/get_task_pass.json",query:bt}))}),Pn=(bt,An)=>Me(void 0,null,function*(){yield(0,ke.FH)(An||"",(0,ke.NY)({url:Fe.Z.API_SERVER+`/api/exercises/${bt==null?void 0:bt.exercise_id}/consult_exercise.json`,query:bt}))}),Rn=bt=>Me(void 0,null,function*(){yield(0,ke.FH)("",(0,ke.NY)({url:Fe.Z.API_SERVER+`/api/competitions/${bt==null?void 0:bt.identifier}/competition_commit_records/member_works.xlsx`,query:bt}))})},51959:function(Ft,rt,z){"use strict";z.d(rt,{BU:function(){return Ce},Dj:function(){return a},gH:function(){return ke},vp:function(){return he}});function a(Fe){try{Fe.mozRequestFullScreen?Fe.mozRequestFullScreen():Fe.webkitRequestFullScreen&&Fe.webkitRequestFullScreen()}catch(xe){console.log(xe,":e")}}function Ce(){window.top.document.webkitExitFullscreen?window.top.document.webkitExitFullscreen():document.exitFullscreen?window.top.document.exitFullscreen():document.msExitFullscreen?window.top.document.msExitFullscreen():document.mozCancelFullScreen&&window.top.document.mozCancelFullScreen()}const ke=()=>{if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function he(){var Fe=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,xe=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",Fe),window.isFullScreen?window.isFullScreen:Fe!=null}},99678:function(Ft,rt,z){"use strict";z.d(rt,{g:function(){return Fe}});var a=z(67294),Ce=z(56443),ke=z(53430),he=(xe,pe,Se)=>new Promise((Ae,Ie)=>{var ze=oe=>{try{me(Se.next(oe))}catch(E){Ie(E)}},Me=oe=>{try{me(Se.throw(oe))}catch(E){Ie(E)}},me=oe=>oe.done?Ae(oe.value):Promise.resolve(oe.value).then(ze,Me);me((Se=Se.apply(xe,pe)).next())});const Fe=()=>{const[xe,pe]=(0,a.useState)([]);return(0,a.useEffect)(()=>{he(void 0,null,function*(){const Ae=yield(0,Ce.d1)({source:"question"});Ae!=null&&Ae.disciplines&&pe((0,ke.L)(Ae==null?void 0:Ae.disciplines))})},[]),xe}},9343:function(Ft,rt,z){"use strict";z.d(rt,{U:function(){return Ae}});var a=z(67294),Ce=Object.defineProperty,ke=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,xe=(Ie,ze,Me)=>ze in Ie?Ce(Ie,ze,{enumerable:!0,configurable:!0,writable:!0,value:Me}):Ie[ze]=Me,pe=(Ie,ze)=>{for(var Me in ze||(ze={}))he.call(ze,Me)&&xe(Ie,Me,ze[Me]);if(ke)for(var Me of ke(ze))Fe.call(ze,Me)&&xe(Ie,Me,ze[Me]);return Ie},Se=(Ie,ze,Me)=>new Promise((me,oe)=>{var E=b=>{try{x(Me.next(b))}catch(ee){oe(ee)}},y=b=>{try{x(Me.throw(b))}catch(ee){oe(ee)}},x=b=>b.done?me(b.value):Promise.resolve(b.value).then(E,y);x((Me=Me.apply(Ie,ze)).next())});function Ae(Ie,ze){const[Me,me]=(0,a.useState)(ze),[oe,E]=(0,a.useState)(!1),[y,x]=(0,a.useState)();return[Me,oe,(ee,te=!1)=>Se(this,null,function*(){const ne=te?ze:pe(pe({},Me),ee);E(!0),me(ne);const de=yield Ie(ne);return E(!1),x(de),de}),y,x]}},65107:function(Ft,rt,z){"use strict";z.d(rt,{Z:function(){return pe}});var a=z(67294),Ce=z.p+"static/modelContact.7a7eb113.png",ke=z(1083),he=z(52262),Fe=z(67294),pe=()=>{const[Se,Ae]=(0,a.useState)(!1);return{verifyModelUser:()=>(0,he.$O)()?!0:(Ae(!0),!1),ContactModalElement:()=>Fe.createElement(ke.Z,{visible:Se,setVisible:Ae,image:Ce}),contactOpen:Se,setContactOpen:Ae}}},43462:function(Ft,rt,z){"use strict";z.d(rt,{_:function(){return ke}});var a=z(67294),Ce=z(62844);const ke=he=>{var Fe,xe;const pe=(0,a.useRef)([]),Se=()=>{for(const Ae of pe.current)clearTimeout(Ae);pe.current=[]};return(0,a.useEffect)(()=>{var Ae,Ie,ze,Me,me,oe;if(Se(),(Ae=he==null?void 0:he.exercise)!=null&&Ae.left_time&&((ze=(Ie=he==null?void 0:he.exercise)==null?void 0:Ie.exercise_events)==null?void 0:ze.length)>0){for(const E of(Me=he==null?void 0:he.exercise)==null?void 0:Me.exercise_events)if(((me=he==null?void 0:he.exercise)==null?void 0:me.left_time)>(E==null?void 0:E.reminder_time)*60){let y=(((oe=he==null?void 0:he.exercise)==null?void 0:oe.left_time)-(E==null?void 0:E.reminder_time)*60)*1e3;y=y>2147483647?2147483647:y;const x=setTimeout(()=>{Ce.default.info({content:`${E==null?void 0:E.reminder_content}`,icon:null,title:"\u63D0\u793A",centered:!0,okText:"\u77E5\u9053\u4E86"})},y);pe.current.push(x)}}},[(Fe=he==null?void 0:he.exercise)==null?void 0:Fe.left_time,(xe=he==null?void 0:he.exercise)==null?void 0:xe.exercise_events]),Se}},51161:function(Ft,rt,z){"use strict";z.d(rt,{AL:function(){return ne},Iy:function(){return ze},Qv:function(){return oe},ez:function(){return te},jb:function(){return Me}});var a=z(47084),Ce=z.n(a),ke=z(90621),he=z.n(ke);let Fe=1;function xe(Ne,Le){const Re=Ne.match(/^(\s+)(?:```)/);if(Re===null)return Le;const He=Re[1];return Le.split(` `).map(We=>{const Ge=We.match(/^\s+/);if(Ge===null)return We;const[Ue]=Ge;return Ue.length>=He.length?We.slice(He.length):We}).join(` `)}let pe=[],Se=["
    "];const Ae=new(Ce()).Renderer,Ie=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function ze(){pe.length=0,Se=["
      "]}const Me={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function me(Ne,Le,Re,He){if(Le>=Ne.length||Ne[Le].level<=Re)return Le;var We=Ne[Le];He.push("
    • "+We.text+""),Le++;var Ge=[];return Le=me(Ne,Le,We.level,Ge),Ge.length>0&&(He.push("
        "),Ge.forEach(function(Ue){He.push(Ue)}),He.push("
      ")),He.push("
    • "),Le=me(Ne,Le,Re,He),Le}function oe(){return me(pe,0,0,Se),Se.push("
    "),Se.join("")}const E={heading(Ne){const Le=Ie.exec(Ne);if(Fe+=1,Le)return{type:"heading",raw:Le[0],depth:Le[1].length,text:Le[2]}},fences(Ne){const Le=this.rules.block.fences.exec(Ne);if(Le){const Re=Le[0];let He=xe(Re,Le[3]||"");const We=Le[2]?Le[2].trim():Le[2];if(["latex","katex","math"].indexOf(We)>=0){const Ge=b(),Ue=He;He=Ge,ee[Ge]={type:"block",expression:Ue}}return{type:"code",raw:Re,lang:We,text:He}}}},y=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let x=0;const b=()=>`__special_katext_id_${x++}__`;let ee={};function te(){return ee}function ne(){x=0,ee={}}function de(Ne){return Ne=Ne.replace(y,(Le,Re)=>{const He=b();return ee[He]={type:"inline",expression:Re},He}),Ne}const ye=Ae.listitem;Ae.listitem=function(Ne){return ye(de(Ne))};const fe=Ae.paragraph;Ae.paragraph=function(Ne){return fe(de(Ne))};const ve=Ae.tablecell;Ae.tablecell=function(Ne,Le){return ve(de(Ne),Le)},Ae.code=function(Ne,Le,Re){const He=(Le||"").match(/\S*/)[0];return He?["latex","katex","math"].indexOf(He)>=0?`

    ${Ne}

    `:`
    ${Re?Ne:(0,ke.escape)(Ne,!0)}
    `:'
    '+(Re?Ne:(0,ke.escape)(Ne,!0))+"
    "},Ae.heading=function(Ne,Le,Re){let He=this.options.headerPrefix+Re.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return pe.push({anchor:He,level:Le,text:Ne}),"'+Ne+""},Ce().setOptions({silent:!0,gfm:!0,pedantic:!1}),Ce().use({tokenizer:E,renderer:Ae}),rt.ZP=Ce()},40471:function(Ft,rt,z){"use strict";z.d(rt,{G:function(){return Fe},t:function(){return he}});var a=z(58971),Ce=z.n(a);const ke=null;function he(xe,pe){let Se=Ce().get("__ec");Se||(Se={}),Se[xe]=pe,Ce().set("__ec",Se)}function Fe(xe,pe){let Se=Ce().get("__ec");return Se?Se[xe]===void 0?pe:Se[xe]:pe}},78207:function(Ft,rt,z){"use strict";z.d(rt,{rX:function(){return de},pW:function(){return ye},gy:function(){return fe},xY:function(){return ne},O5:function(){return te},hs:function(){return y},tJ:function(){return oe},o1:function(){return E},Rd:function(){return ee}});var a=z(35973),Ce=z(62844),ke=z(96074),he=z(2453),Fe=z(52262),xe=z(28706),pe=z(55304),Se=z(25510),Ae="data:image/png;base64,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",Ie=z.p+"static/newqrcode.a8740efb.png",ze=z(32637),Me=z(67294),me=(ve,Ne,Le)=>new Promise((Re,He)=>{var We=Ye=>{try{Ue(Le.next(Ye))}catch(it){He(it)}},Ge=Ye=>{try{Ue(Le.throw(Ye))}catch(it){He(it)}},Ue=Ye=>Ye.done?Re(Ye.value):Promise.resolve(Ye.value).then(We,Ge);Ue((Le=Le.apply(ve,Ne)).next())});const oe=(ve,Ne=!1,Le=!1,Re="",He=!1)=>!!(E(ve)&&x(ve,Ne,Le,Re,He)),E=ve=>(0,Fe.bg)()?!0:(ve({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),y=ve=>{var Ne,Le,Re;const{user:He}=(0,a.getDvaApp)()._store.getState();(0,Fe.bg)()&&!((Le=(Ne=He==null?void 0:He.userInfo)==null?void 0:Ne.course)!=null&&Le.course_public)&&!((Re=He==null?void 0:He.userInfo)!=null&&Re.profile_completed)&&ve({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:"/account/profile/edit",isCurrentPage:!0}})},x=(ve,Ne=!1,Le=!0,Re="",He=!1)=>{var We;const{user:Ge}=(0,a.getDvaApp)()._store.getState();return(We=Ge.userInfo)!=null&&We.profile_completed?!0:(Le?ve({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:Re,isCurrentPage:He}}):Ce.default.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,xe.xg)("/account/profile/edit"),b()}}),!1)},b=()=>{Ce.default.success({title:"\u63D0\u793A",width:430,closable:!0,centered:!0,content:"\u5DF2\u5B8C\u5584\u4E2A\u4EBA\u8D44\u6599\uFF1F\u8BF7\u5237\u65B0\u9875\u9762",okText:"\u7ACB\u5373\u5237\u65B0",icon:null,onOk:()=>{location.reload()}})},ee=()=>{Ce.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:Me.createElement("div",{style:{textAlign:"center"}},Me.createElement("div",{style:{color:"#191919",fontSize:14,marginBottom:15,textAlign:"left"}},"\u8001\u5E08\u60A8\u597D\uFF0C\u60A8\u7684\u8BFE\u5802\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u76F8\u5173\u529F\u80FD\u88AB\u9650\u5236\u3002 \u5982\u9700\u7EE7\u7EED\u4F7F\u7528\uFF0C\u8BF7\u5C3D\u5FEB\u5BF9\u63A5\u4EBA\u5DE5\u652F\u6301\uFF01"),Me.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:ze}),Me.createElement("div",{style:{color:"#666666",fontSize:14,marginTop:15}},"\u6DFB\u52A0\u5BA2\u670D\u4EBA\u5458\u5FAE\u4FE1\uFF0C\u83B7\u5F97\u66F4\u591A\u652F\u6301"))})},te=()=>{var ve;const{user:Ne}=(0,a.getDvaApp)()._store.getState();return(ve=Ne.userInfo)!=null&&ve.professional_certification?!0:(Ce.default.confirm({title:"\u63D0\u793A",centered:!0,content:Me.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,xe.xg)("/account/certification")}}),!1)},ne=()=>(0,Fe.V9)()?!0:(Ce.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:Me.createElement("div",{className:"tc",style:{marginLeft:-38}},Me.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),Me.createElement("img",{src:Ie,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),de=(ve,Ne)=>ve?!0:(Ce.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:Me.createElement("div",null,Me.createElement("p",null,Ne||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),Me.createElement("div",{style:{marginLeft:"110px"}},Me.createElement("img",{src:Ae,width:200}),Me.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,xe.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),ye=ve=>{Ce.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:Me.createElement("div",null,Me.createElement("div",null,Me.createElement("p",{style:{color:"#191919",fontWeight:400,fontSize:14}},"\u201C\u4FDD\u5B58\u5B9E\u9A8C\u4E34\u65F6\u6570\u636E\u201D\u529F\u80FD\u4E3A\u4ED8\u8D39\u529F\u80FD\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425\u8FDB\u884C\u5F00\u901A\u3002"),Me.createElement(ke.Z,null),Me.createElement("p",{style:{color:"#666666",fontSize:12}}," ",Me.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"1")," \u56E0\u5E73\u53F0\u7684\u5B9E\u9A8C\u6570\u636E\u50A8\u5B58\u5BB9\u91CF\u548C\u6210\u672C\u6D88\u8017\u8F83\u5927\uFF0C\u5B9E\u8DF5\u9879\u76EE\u9ED8\u8BA4\u4FDD\u5B58\u5B9E\u9A8C\u73AF\u5883\u4E2D\u4E34\u65F6\u6570\u636E ",Me.createElement("a",null,ve),"\u5929\u3002"),Me.createElement("p",{style:{color:"#666666",fontSize:12}}," ",Me.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"2"),"\u82E5\u60A8\u9700\u8981\u4E2A\u6027\u5316\u7684\u6570\u636E\u4FDD\u5B58\u5468\u671F\u670D\u52A1\uFF0C\u6211\u4EEC\u53EF\u4EE5\u63D0\u4F9B\u76F8\u5173\u6280\u672F\u652F\u6301\uFF0C\u5E76\u6839\u636E\u60A8\u7684\u9700\u6C42\u6536\u53D6\u5B9A\u5236\u8D39\u7528\u3002")),Me.createElement("div",{style:{textAlign:"center",marginTop:30}},Me.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Se,alt:"\u4E8C\u7EF4\u7801",width:160})))})},fe=(ve,Ne="")=>{const{shixunsDetail:{detail:Le}}=(0,a.getDvaApp)()._store.getState();if((Le==null?void 0:Le.public)===2||(Le==null?void 0:Le.public)===1||(Le==null?void 0:Le.shixun_status)===3){let Re="";return(Le==null?void 0:Le.public)===2&&(Re="\u5DF2\u516C\u5F00"),(Le==null?void 0:Le.public)===1&&(Re="\u5F85\u5BA1\u6838"),(Le==null?void 0:Le.shixun_status)===3&&(Re="\u5DF2\u5173\u95ED"),Ce.default.info({centered:!0,icon:Me.createElement(pe.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:Me.createElement("div",{className:"tc",style:{marginLeft:-38}},Me.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},Me.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",Re,"\uFF0C",Ne,"\u3002"),Me.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),Me.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Se,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(Le==null?void 0:Le.shixun_status)===2?(Ce.default.confirm({centered:!0,icon:Me.createElement(pe.Z,null),title:"\u63D0\u793A",content:Me.createElement("div",null,Me.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",Ne,"\u3002"),Me.createElement("br",null),Me.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>{Ce.default.confirm({width:440,centered:!0,icon:Me.createElement(pe.Z,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>me(void 0,null,function*(){(yield ve({type:"shixunsDetail/cancelRelease",payload:{id:Le==null?void 0:Le.identifier}})).status!==401&&(he.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),ve({type:"shixunsDetail/getShixunsDetail",payload:{id:Le==null?void 0:Le.identifier}}),ve({type:"practiceSetting/getCommonData",payload:{id:Le==null?void 0:Le.identifier}}))})})}}),!0):!1}},24577:function(Ft,rt,z){"use strict";z.d(rt,{Z:function(){return hu}});class a{static install(){Object.setPrototypeOf=Object.setPrototypeOf||function(re,ge){return re.__proto__=ge,re},Object.assign=Object.assign||function(re){if(re==null)throw new TypeError("Cannot convert undefined or null to object");let ge=Object(re);for(let De=1;De ${ge}`;Fe.ENABLE_CALLBACK&&Fe.emitter.emit("log","error",De),Fe.ENABLE_ERROR&&(console.error?console.error(De):console.warn?console.warn(De):console.log(De))}static i(re,ge){(!re||Fe.FORCE_GLOBAL_TAG)&&(re=Fe.GLOBAL_TAG);let De=`[${re}] > ${ge}`;Fe.ENABLE_CALLBACK&&Fe.emitter.emit("log","info",De),Fe.ENABLE_INFO&&(console.info?console.info(De):console.log(De))}static w(re,ge){(!re||Fe.FORCE_GLOBAL_TAG)&&(re=Fe.GLOBAL_TAG);let De=`[${re}] > ${ge}`;Fe.ENABLE_CALLBACK&&Fe.emitter.emit("log","warn",De),Fe.ENABLE_WARN&&(console.warn?console.warn(De):console.log(De))}static d(re,ge){(!re||Fe.FORCE_GLOBAL_TAG)&&(re=Fe.GLOBAL_TAG);let De=`[${re}] > ${ge}`;Fe.ENABLE_CALLBACK&&Fe.emitter.emit("log","debug",De),Fe.ENABLE_DEBUG&&(console.debug?console.debug(De):console.log(De))}static v(re,ge){(!re||Fe.FORCE_GLOBAL_TAG)&&(re=Fe.GLOBAL_TAG);let De=`[${re}] > ${ge}`;Fe.ENABLE_CALLBACK&&Fe.emitter.emit("log","verbose",De),Fe.ENABLE_VERBOSE&&console.log(De)}}Fe.GLOBAL_TAG="flv.js",Fe.FORCE_GLOBAL_TAG=!1,Fe.ENABLE_ERROR=!0,Fe.ENABLE_INFO=!0,Fe.ENABLE_WARN=!0,Fe.ENABLE_DEBUG=!0,Fe.ENABLE_VERBOSE=!0,Fe.ENABLE_CALLBACK=!1,Fe.emitter=new(he());var xe=Fe;class pe{constructor(){this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}reset(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}addBytes(re){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=re,this._totalBytes+=re):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=re,this._totalBytes+=re):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=re,this._totalBytes+=re,this._lastCheckpoint=this._now())}get currentKBps(){this.addBytes(0);let re=(this._now()-this._lastCheckpoint)/1e3;return re==0&&(re=1),this._intervalBytes/re/1024}get lastSecondKBps(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}get averageKBps(){let re=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/re/1024}}var Se=pe;class Ae{constructor(re){this._message=re}get name(){return"RuntimeException"}get message(){return this._message}toString(){return this.name+": "+this.message}}class Ie extends Ae{constructor(re){super(re)}get name(){return"IllegalStateException"}}class ze extends Ae{constructor(re){super(re)}get name(){return"InvalidArgumentException"}}class Me extends Ae{constructor(re){super(re)}get name(){return"NotImplementedException"}}const me={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},oe={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"};class E{constructor(re){this._type=re||"undefined",this._status=me.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}destroy(){this._status=me.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}isWorking(){return this._status===me.kConnecting||this._status===me.kBuffering}get type(){return this._type}get status(){return this._status}get needStashBuffer(){return this._needStash}get onContentLengthKnown(){return this._onContentLengthKnown}set onContentLengthKnown(re){this._onContentLengthKnown=re}get onURLRedirect(){return this._onURLRedirect}set onURLRedirect(re){this._onURLRedirect=re}get onDataArrival(){return this._onDataArrival}set onDataArrival(re){this._onDataArrival=re}get onError(){return this._onError}set onError(re){this._onError=re}get onComplete(){return this._onComplete}set onComplete(re){this._onComplete=re}open(re,ge){throw new Me("Unimplemented abstract function!")}abort(){throw new Me("Unimplemented abstract function!")}}let y={};function x(){let ft=self.navigator.userAgent.toLowerCase(),re=/(edge)\/([\w.]+)/.exec(ft)||/(opr)[\/]([\w.]+)/.exec(ft)||/(chrome)[ \/]([\w.]+)/.exec(ft)||/(iemobile)[\/]([\w.]+)/.exec(ft)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(ft)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(ft)||/(webkit)[ \/]([\w.]+)/.exec(ft)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ft)||/(msie) ([\w.]+)/.exec(ft)||ft.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(ft)||ft.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(ft)||[],ge=/(ipad)/.exec(ft)||/(ipod)/.exec(ft)||/(windows phone)/.exec(ft)||/(iphone)/.exec(ft)||/(kindle)/.exec(ft)||/(android)/.exec(ft)||/(windows)/.exec(ft)||/(mac)/.exec(ft)||/(linux)/.exec(ft)||/(cros)/.exec(ft)||[],De={browser:re[5]||re[3]||re[1]||"",version:re[2]||re[4]||"0",majorVersion:re[4]||re[2]||"0",platform:ge[0]||""},Xe={};if(De.browser){Xe[De.browser]=!0;let tt=De.majorVersion.split(".");Xe.version={major:parseInt(De.majorVersion,10),string:De.version},tt.length>1&&(Xe.version.minor=parseInt(tt[1],10)),tt.length>2&&(Xe.version.build=parseInt(tt[2],10))}if(De.platform&&(Xe[De.platform]=!0),(Xe.chrome||Xe.opr||Xe.safari)&&(Xe.webkit=!0),Xe.rv||Xe.iemobile){Xe.rv&&delete Xe.rv;let tt="msie";De.browser=tt,Xe[tt]=!0}if(Xe.edge){delete Xe.edge;let tt="msedge";De.browser=tt,Xe[tt]=!0}if(Xe.opr){let tt="opera";De.browser=tt,Xe[tt]=!0}if(Xe.safari&&Xe.android){let tt="android";De.browser=tt,Xe[tt]=!0}Xe.name=De.browser,Xe.platform=De.platform;for(let tt in y)y.hasOwnProperty(tt)&&delete y[tt];Object.assign(y,Xe)}x();var b=y;class ee extends E{static isSupported(){try{let re=b.msedge&&b.version.minor>=15048,ge=b.msedge?re:!0;return self.fetch&&self.ReadableStream&&ge}catch(re){return!1}}constructor(re,ge){super("fetch-stream-loader"),this.TAG="FetchStreamLoader",this._seekHandler=re,this._config=ge,this._needStash=!0,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),super.destroy()}open(re,ge){this._dataSource=re,this._range=ge;let De=re.url;this._config.reuseRedirectedURL&&re.redirectedURL!=null&&(De=re.redirectedURL);let Xe=this._seekHandler.getConfig(De,ge),tt=new self.Headers;if(typeof Xe.headers=="object"){let Lt=Xe.headers;for(let Wn in Lt)Lt.hasOwnProperty(Wn)&&tt.append(Wn,Lt[Wn])}let Ot={method:"GET",headers:tt,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(let Lt in this._config.headers)tt.append(Lt,this._config.headers[Lt]);re.cors===!1&&(Ot.mode="same-origin"),re.withCredentials&&(Ot.credentials="include"),re.referrerPolicy&&(Ot.referrerPolicy=re.referrerPolicy),this._status=me.kConnecting,self.fetch(Xe.url,Ot).then(Lt=>{if(this._requestAbort){this._requestAbort=!1,this._status=me.kIdle;return}if(Lt.ok&&Lt.status>=200&&Lt.status<=299){if(Lt.url!==Xe.url&&this._onURLRedirect){let ra=this._seekHandler.removeURLParameters(Lt.url);this._onURLRedirect(ra)}let Wn=Lt.headers.get("Content-Length");return Wn!=null&&(this._contentLength=parseInt(Wn),this._contentLength!==0&&this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)),this._pump.call(this,Lt.body.getReader())}else if(this._status=me.kError,this._onError)this._onError(oe.HTTP_STATUS_CODE_INVALID,{code:Lt.status,msg:Lt.statusText});else throw new Ae("FetchStreamLoader: Http code invalid, "+Lt.status+" "+Lt.statusText)}).catch(Lt=>{if(this._status=me.kError,this._onError)this._onError(oe.EXCEPTION,{code:-1,msg:Lt.message});else throw Lt})}abort(){this._requestAbort=!0}_pump(re){return re.read().then(ge=>{if(ge.done)if(this._contentLength!==null&&this._receivedLength{if(ge.code===11&&b.msedge)return;this._status=me.kError;let De=0,Xe=null;if((ge.code===19||ge.message==="network error")&&(this._contentLength===null||this._contentLength!==null&&this._receivedLength299))if(this._status=me.kError,this._onError)this._onError(oe.HTTP_STATUS_CODE_INVALID,{code:ge.status,msg:ge.statusText});else throw new Ae("MozChunkedLoader: Http code invalid, "+ge.status+" "+ge.statusText);else this._status=me.kBuffering}}_onProgress(re){if(this._status===me.kError)return;this._contentLength===null&&re.total!==null&&re.total!==0&&(this._contentLength=re.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));let ge=re.target.response,De=this._range.from+this._receivedLength;this._receivedLength+=ge.byteLength,this._onDataArrival&&this._onDataArrival(ge,De,this._receivedLength)}_onLoadEnd(re){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===me.kError)return;this._status=me.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}_onXhrError(re){this._status=me.kError;let ge=0,De=null;if(this._contentLength&&re.loaded=200&&ge.status<=299){if(this._status=LoaderStatus.kBuffering,ge.responseURL!=null){let Xe=this._seekHandler.removeURLParameters(ge.responseURL);ge.responseURL!==this._currentRequestURL&&Xe!==this._currentRedirectedURL&&(this._currentRedirectedURL=Xe,this._onURLRedirect&&this._onURLRedirect(Xe))}let De=ge.getResponseHeader("Content-Length");if(De!=null&&this._contentLength==null){let Xe=parseInt(De);Xe>0&&(this._contentLength=Xe,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=LoaderStatus.kError,this._onError)this._onError(LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:ge.status,msg:ge.statusText});else throw new RuntimeException("MSStreamLoader: Http code invalid, "+ge.status+" "+ge.statusText);else if(ge.readyState===3&&ge.status>=200&&ge.status<=299){this._status=LoaderStatus.kBuffering;let De=ge.response;this._reader.readAsArrayBuffer(De)}}_xhrOnError(re){this._status=LoaderStatus.kError;let ge=LoaderErrors.EXCEPTION,De={code:-1,msg:re.constructor.name+" "+re.type};if(this._onError)this._onError(ge,De);else throw new RuntimeException(De.msg)}_msrOnProgress(re){let De=re.target.result;if(De==null){this._doReconnectIfNeeded();return}let Xe=De.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=De.byteLength;let tt=this._totalRange.from+this._receivedLength;this._receivedLength+=Xe.byteLength,this._onDataArrival&&this._onDataArrival(Xe,tt,this._receivedLength),De.byteLength>=this._bufferLimit&&(Log.v(this.TAG,`MSStream buffer exceeded max size near ${tt+Xe.byteLength}, reconnecting...`),this._doReconnectIfNeeded())}_doReconnectIfNeeded(){if(this._contentLength==null||this._receivedLength=this._contentLength&&(De=this._range.from+this._contentLength-1),this._currentRequestRange={from:ge,to:De},this._internalOpen(this._dataSource,this._currentRequestRange)}_internalOpen(re,ge){this._lastTimeLoaded=0;let De=re.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?De=this._currentRedirectedURL:re.redirectedURL!=null&&(De=re.redirectedURL));let Xe=this._seekHandler.getConfig(De,ge);this._currentRequestURL=Xe.url;let tt=this._xhr=new XMLHttpRequest;if(tt.open("GET",Xe.url,!0),tt.responseType="arraybuffer",tt.onreadystatechange=this._onReadyStateChange.bind(this),tt.onprogress=this._onProgress.bind(this),tt.onload=this._onLoad.bind(this),tt.onerror=this._onXhrError.bind(this),re.withCredentials&&(tt.withCredentials=!0),typeof Xe.headers=="object"){let Ot=Xe.headers;for(let Lt in Ot)Ot.hasOwnProperty(Lt)&&tt.setRequestHeader(Lt,Ot[Lt])}if(typeof this._config.headers=="object"){let Ot=this._config.headers;for(let Lt in Ot)Ot.hasOwnProperty(Lt)&&tt.setRequestHeader(Lt,Ot[Lt])}tt.send()}abort(){this._requestAbort=!0,this._internalAbort(),this._status=me.kComplete}_internalAbort(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}_onReadyStateChange(re){let ge=re.target;if(ge.readyState===2){if(ge.responseURL!=null){let De=this._seekHandler.removeURLParameters(ge.responseURL);ge.responseURL!==this._currentRequestURL&&De!==this._currentRedirectedURL&&(this._currentRedirectedURL=De,this._onURLRedirect&&this._onURLRedirect(De))}if(ge.status>=200&&ge.status<=299){if(this._waitForTotalLength)return;this._status=me.kBuffering}else if(this._status=me.kError,this._onError)this._onError(oe.HTTP_STATUS_CODE_INVALID,{code:ge.status,msg:ge.statusText});else throw new Ae("RangeLoader: Http code invalid, "+ge.status+" "+ge.statusText)}}_onProgress(re){if(this._status===me.kError)return;if(this._contentLength===null){let De=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,De=!0;let Xe=re.total;this._internalAbort(),Xe!=null&Xe!==0&&(this._totalLength=Xe)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,De){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}let ge=re.loaded-this._lastTimeLoaded;this._lastTimeLoaded=re.loaded,this._speedSampler.addBytes(ge)}_normalizeSpeed(re){let ge=this._chunkSizeKBList,De=ge.length-1,Xe=0,tt=0,Ot=De;if(re=ge[Xe]&&re=3&&(ge=this._speedSampler.currentKBps)),ge!==0){let Ot=this._normalizeSpeed(ge);this._currentSpeedNormalized!==Ot&&(this._currentSpeedNormalized=Ot,this._currentChunkSizeKB=Ot)}let De=re.target.response,Xe=this._range.from+this._receivedLength;this._receivedLength+=De.byteLength;let tt=!1;this._contentLength!=null&&this._receivedLength0&&this._receivedLength{this._dispatchArrayBuffer(ge.result)},ge.readAsArrayBuffer(re.data)}else{this._status=me.kError;let ge={code:-1,msg:"Unsupported WebSocket message type: "+re.data.constructor.name};if(this._onError)this._onError(oe.EXCEPTION,ge);else throw new Ae(ge.msg)}}_dispatchArrayBuffer(re){let ge=re,De=this._receivedLength;this._receivedLength+=ge.byteLength,this._onDataArrival&&this._onDataArrival(ge,De,this._receivedLength)}_onWebSocketError(re){this._status=me.kError;let ge={code:re.code,msg:re.message};if(this._onError)this._onError(oe.EXCEPTION,ge);else throw new Ae(ge.msg)}}var Re=Le;class He{constructor(re){this._zeroStart=re||!1}getConfig(re,ge){let De={};if(ge.from!==0||ge.to!==-1){let Xe;ge.to!==-1?Xe=`bytes=${ge.from.toString()}-${ge.to.toString()}`:Xe=`bytes=${ge.from.toString()}-`,De.Range=Xe}else this._zeroStart&&(De.Range="bytes=0-");return{url:re,headers:De}}removeURLParameters(re){return re}}var We=He;class Ge{constructor(re,ge){this._startName=re,this._endName=ge}getConfig(re,ge){let De=re;if(ge.from!==0||ge.to!==-1){let Xe=!0;De.indexOf("?")===-1&&(De+="?",Xe=!1),Xe&&(De+="&"),De+=`${this._startName}=${ge.from.toString()}`,ge.to!==-1&&(De+=`&${this._endName}=${ge.to.toString()}`)}return{url:De,headers:{}}}removeURLParameters(re){let ge=re.split("?")[0],De,Xe=re.indexOf("?");Xe!==-1&&(De=re.substring(Xe+1));let tt="";if(De!=null&&De.length>0){let Ot=De.split("&");for(let Lt=0;Lt0;Wn[0]!==this._startName&&Wn[0]!==this._endName&&(ra&&(tt+="&"),tt+=Ot[Lt])}}return tt.length===0?ge:ge+"?"+tt}}var Ue=Ge;class Ye{constructor(re,ge,De){this.TAG="IOController",this._config=ge,this._extraData=De,this._stashInitialSize=1024*384,ge.stashInitialSize!=null&&ge.stashInitialSize>0&&(this._stashInitialSize=ge.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=1024*1024*3,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,ge.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=re,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(re.url),this._refTotalLength=re.filesize?re.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new Se,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}destroy(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null}isWorking(){return this._loader&&this._loader.isWorking()&&!this._paused}isPaused(){return this._paused}get status(){return this._loader.status}get extraData(){return this._extraData}set extraData(re){this._extraData=re}get onDataArrival(){return this._onDataArrival}set onDataArrival(re){this._onDataArrival=re}get onSeeked(){return this._onSeeked}set onSeeked(re){this._onSeeked=re}get onError(){return this._onError}set onError(re){this._onError=re}get onComplete(){return this._onComplete}set onComplete(re){this._onComplete=re}get onRedirect(){return this._onRedirect}set onRedirect(re){this._onRedirect=re}get onRecoveredEarlyEof(){return this._onRecoveredEarlyEof}set onRecoveredEarlyEof(re){this._onRecoveredEarlyEof=re}get currentURL(){return this._dataSource.url}get hasRedirect(){return this._redirectedURL!=null||this._dataSource.redirectedURL!=null}get currentRedirectedURL(){return this._redirectedURL||this._dataSource.redirectedURL}get currentSpeed(){return this._loaderClass===Ne?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}get loaderType(){return this._loader.type}_selectSeekHandler(){let re=this._config;if(re.seekType==="range")this._seekHandler=new We(this._config.rangeLoadZeroStart);else if(re.seekType==="param"){let ge=re.seekParamStart||"bstart",De=re.seekParamEnd||"bend";this._seekHandler=new Ue(ge,De)}else if(re.seekType==="custom"){if(typeof re.customSeekHandler!="function")throw new ze("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new re.customSeekHandler}else throw new ze(`Invalid seekType in config: ${re.seekType}`)}_selectLoader(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=Re;else if(te.isSupported())this._loaderClass=te;else if(de.isSupported())this._loaderClass=de;else if(Ne.isSupported())this._loaderClass=Ne;else throw new Ae("Your browser doesn't support xhr with arraybuffer responseType!")}_createLoader(){this._loader=new this._loaderClass(this._seekHandler,this._config),this._loader.needStashBuffer===!1&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)}open(re){this._currentRange={from:0,to:-1},re&&(this._currentRange.from=re),this._speedSampler.reset(),re||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))}abort(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)}pause(){this.isWorking()&&(this._loader.abort(),this._stashUsed!==0?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)}resume(){if(this._paused){this._paused=!1;let re=this._resumeFrom;this._resumeFrom=0,this._internalSeek(re,!0)}}seek(re){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(re,!0)}_internalSeek(re,ge){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(ge),this._loader.destroy(),this._loader=null;let De={from:re,to:-1};this._currentRange={from:De.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,De),this._onSeeked&&this._onSeeked()}updateUrl(re){if(!re||typeof re!="string"||re.length===0)throw new ze("Url must be a non-empty string!");this._dataSource.url=re}_expandBuffer(re){let ge=this._stashSize;for(;ge+1024*1024*10){let Xe=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(De,0,ge).set(Xe,0)}this._stashBuffer=De,this._bufferSize=ge}_normalizeSpeed(re){let ge=this._speedNormalizeList,De=ge.length-1,Xe=0,tt=0,Ot=De;if(re=ge[Xe]&&re=512&&re<=1024?ge=Math.floor(re*1.5):ge=re*2,ge>8192&&(ge=8192);let De=ge*1024+1024*1024*1;this._bufferSize0){let Ot=this._stashBuffer.slice(0,this._stashUsed),Lt=this._dispatchChunks(Ot,this._stashByteStart);if(Lt0){let Wn=new Uint8Array(Ot,Lt);tt.set(Wn,0),this._stashUsed=Wn.byteLength,this._stashByteStart+=Lt}}else this._stashUsed=0,this._stashByteStart+=Lt;this._stashUsed+re.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+re.byteLength),tt=new Uint8Array(this._stashBuffer,0,this._bufferSize)),tt.set(new Uint8Array(re),this._stashUsed),this._stashUsed+=re.byteLength}else{let Ot=this._dispatchChunks(re,ge);if(Otthis._bufferSize&&(this._expandBuffer(Lt),tt=new Uint8Array(this._stashBuffer,0,this._bufferSize)),tt.set(new Uint8Array(re,Ot),0),this._stashUsed+=Lt,this._stashByteStart=ge+Ot}}}else if(this._stashUsed===0){let tt=this._dispatchChunks(re,ge);if(ttthis._bufferSize&&this._expandBuffer(Ot),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array(re,tt),0),this._stashUsed+=Ot,this._stashByteStart=ge+tt}}else{this._stashUsed+re.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+re.byteLength);let tt=new Uint8Array(this._stashBuffer,0,this._bufferSize);tt.set(new Uint8Array(re),this._stashUsed),this._stashUsed+=re.byteLength;let Ot=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(Ot0){let Lt=new Uint8Array(this._stashBuffer,Ot);tt.set(Lt,0)}this._stashUsed-=Ot,this._stashByteStart+=Ot}}_flushStashBuffer(re){if(this._stashUsed>0){let ge=this._stashBuffer.slice(0,this._stashUsed),De=this._dispatchChunks(ge,this._stashByteStart),Xe=ge.byteLength-De;if(De0){let tt=new Uint8Array(this._stashBuffer,0,this._bufferSize),Ot=new Uint8Array(ge,De);tt.set(Ot,0),this._stashUsed=Ot.byteLength,this._stashByteStart+=De}return 0}return this._stashUsed=0,this._stashByteStart=0,Xe}return 0}_onLoaderComplete(re,ge){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}_onLoaderError(re,ge){switch(xe.e(this.TAG,`Loader error, code = ${ge.code}, msg = ${ge.msg}`),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,re=oe.UNRECOVERABLE_EARLY_EOF),re){case oe.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){let De=this._currentRange.to+1;De0){let ge=ht.getConfig();re.emit("change",ge)}}static registerListener(re){ht.emitter.addListener("change",re)}static removeListener(re){ht.emitter.removeListener("change",re)}static addLogListener(re){xe.emitter.addListener("log",re),xe.emitter.listenerCount("log")>0&&(xe.ENABLE_CALLBACK=!0,ht._notifyChange())}static removeLogListener(re){xe.emitter.removeListener("log",re),xe.emitter.listenerCount("log")===0&&(xe.ENABLE_CALLBACK=!1,ht._notifyChange())}}ht.emitter=new(he());var Je=ht;class ot{constructor(){this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}isComplete(){let re=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,ge=this.hasVideo===!1||this.hasVideo===!0&&this.videoCodec!=null&&this.width!=null&&this.height!=null&&this.fps!=null&&this.profile!=null&&this.level!=null&&this.refFrames!=null&&this.chromaFormat!=null&&this.sarNum!=null&&this.sarDen!=null;return this.mimeType!=null&&this.duration!=null&&this.metadata!=null&&this.hasKeyframesIndex!=null&&re&&ge}isSeekable(){return this.hasKeyframesIndex===!0}getNearestKeyframe(re){if(this.keyframesIndex==null)return null;let ge=this.keyframesIndex,De=this._search(ge.times,re);return{index:De,milliseconds:ge.times[De],fileposition:ge.filepositions[De]}}_search(re,ge){let De=0,Xe=re.length-1,tt=0,Ot=0,Lt=Xe;for(ge=re[tt]&&ge=128){re.push(String.fromCharCode(tt&65535)),De+=2;continue}}}else if(ge[De]<240){if(kt(ge,De,2)){let tt=(ge[De]&15)<<12|(ge[De+1]&63)<<6|ge[De+2]&63;if(tt>=2048&&(tt&63488)!==55296){re.push(String.fromCharCode(tt&65535)),De+=3;continue}}}else if(ge[De]<248&&kt(ge,De,3)){let tt=(ge[De]&7)<<18|(ge[De+1]&63)<<12|(ge[De+2]&63)<<6|ge[De+3]&63;if(tt>65536&&tt<1114112){tt-=65536,re.push(String.fromCharCode(tt>>>10|55296)),re.push(String.fromCharCode(tt&1023|56320)),De+=4;continue}}}re.push("\uFFFD"),++De}return re.join("")}var st=Mt;let ut=function(){let ft=new ArrayBuffer(2);return new DataView(ft).setInt16(0,256,!0),new Int16Array(ft)[0]===256}();class un{static parseScriptData(re,ge,De){let Xe={};try{let tt=un.parseValue(re,ge,De),Ot=un.parseValue(re,ge+tt.size,De-tt.size);Xe[tt.data]=Ot.data}catch(tt){xe.e("AMF",tt.toString())}return Xe}static parseObject(re,ge,De){if(De<3)throw new Ie("Data not enough when parse ScriptDataObject");let Xe=un.parseString(re,ge,De),tt=un.parseValue(re,ge+Xe.size,De-Xe.size),Ot=tt.objectEnd;return{data:{name:Xe.data,value:tt.data},size:Xe.size+tt.size,objectEnd:Ot}}static parseVariable(re,ge,De){return un.parseObject(re,ge,De)}static parseString(re,ge,De){if(De<2)throw new Ie("Data not enough when parse String");let tt=new DataView(re,ge,De).getUint16(0,!ut),Ot;return tt>0?Ot=st(new Uint8Array(re,ge+2,tt)):Ot="",{data:Ot,size:2+tt}}static parseLongString(re,ge,De){if(De<4)throw new Ie("Data not enough when parse LongString");let tt=new DataView(re,ge,De).getUint32(0,!ut),Ot;return tt>0?Ot=st(new Uint8Array(re,ge+4,tt)):Ot="",{data:Ot,size:4+tt}}static parseDate(re,ge,De){if(De<10)throw new Ie("Data size invalid when parse Date");let Xe=new DataView(re,ge,De),tt=Xe.getFloat64(0,!ut),Ot=Xe.getInt16(8,!ut);return tt+=Ot*60*1e3,{data:new Date(tt),size:10}}static parseValue(re,ge,De){if(De<1)throw new Ie("Data not enough when parse Value");let Xe=new DataView(re,ge,De),tt=1,Ot=Xe.getUint8(0),Lt,Wn=!1;try{switch(Ot){case 0:Lt=Xe.getFloat64(1,!ut),tt+=8;break;case 1:{Lt=!!Xe.getUint8(1),tt+=1;break}case 2:{let ra=un.parseString(re,ge+1,De-1);Lt=ra.data,tt+=ra.size;break}case 3:{Lt={};let ra=0;for((Xe.getUint32(De-4,!ut)&16777215)===9&&(ra=3);tt32)throw new ze("ExpGolomb: readBits() bits exceeded max 32bits!");if(re<=this._current_word_bits_left){let Ot=this._current_word>>>32-re;return this._current_word<<=re,this._current_word_bits_left-=re,Ot}let ge=this._current_word_bits_left?this._current_word:0;ge=ge>>>32-this._current_word_bits_left;let De=re-this._current_word_bits_left;this._fillCurrentWord();let Xe=Math.min(De,this._current_word_bits_left),tt=this._current_word>>>32-Xe;return this._current_word<<=Xe,this._current_word_bits_left-=Xe,ge=ge<>>re)return this._current_word<<=re,this._current_word_bits_left-=re,re;return this._fillCurrentWord(),re+this._skipLeadingZero()}readUEG(){let re=this._skipLeadingZero();return this.readBits(re+1)-1}readSEG(){let re=this.readUEG();return re&1?re+1>>>1:-1*(re>>>1)}}var bt=Rn;class An{static _ebsp2rbsp(re){let ge=re,De=ge.byteLength,Xe=new Uint8Array(De),tt=0;for(let Ot=0;Ot=2&&ge[Ot]===3&&ge[Ot-1]===0&&ge[Ot-2]===0||(Xe[tt]=ge[Ot],tt++);return new Uint8Array(Xe.buffer,0,tt)}static parseSPS(re){let ge=An._ebsp2rbsp(re),De=new bt(ge);De.readByte();let Xe=De.readByte();De.readByte();let tt=De.readByte();De.readUEG();let Ot=An.getProfileString(Xe),Lt=An.getLevelString(tt),Wn=1,ra=420,xa=[0,420,422,444],Kn=8;if((Xe===100||Xe===110||Xe===122||Xe===244||Xe===44||Xe===83||Xe===86||Xe===118||Xe===128||Xe===138||Xe===144)&&(Wn=De.readUEG(),Wn===3&&De.readBits(1),Wn<=3&&(ra=xa[Wn]),Kn=De.readUEG()+8,De.readUEG(),De.readBits(1),De.readBool())){let Cl=Wn!==3?8:12;for(let ol=0;ol0&&Cl<16?(rl=ol[Cl-1],sr=ti[Cl-1]):Cl===255&&(rl=De.readByte()<<8|De.readByte(),sr=De.readByte()<<8|De.readByte())}if(De.readBool()&&De.readBool(),De.readBool()&&(De.readBits(4),De.readBool()&&De.readBits(24)),De.readBool()&&(De.readUEG(),De.readUEG()),De.readBool()){let Cl=De.readBits(32),ol=De.readBits(32);ya=De.readBool(),Ua=ol,zi=Cl*2,uu=Ua/zi}}let Yo=1;(rl!==1||sr!==1)&&(Yo=rl/sr);let fo=0,du=0;if(Wn===0)fo=1,du=2-Ea;else{let Cl=Wn===3?1:2,ol=Wn===1?2:1;fo=Cl,du=ol*(2-Ea)}let Gu=(lu+1)*16,pl=(2-Ea)*((Ga+1)*16);Gu-=(ga+jn)*fo,pl-=(Hu+Hr)*du;let Ir=Math.ceil(Gu*Yo);return De.destroy(),De=null,{profile_string:Ot,level_string:Lt,bit_depth:Kn,ref_frames:la,chroma_format:ra,chroma_format_string:An.getChromaFormatString(ra),frame_rate:{fixed:ya,fps:uu,fps_den:zi,fps_num:Ua},sar_ratio:{width:rl,height:sr},codec_size:{width:Gu,height:pl},present_size:{width:Ir,height:pl}}}static _skipScalingList(re,ge){let De=8,Xe=8,tt=0;for(let Ot=0;Ot>>8&255|(ft&255)<<8}function sn(ft){return(ft&4278190080)>>>24|(ft&16711680)>>>8|(ft&65280)<<8|(ft&255)<<24}function vt(ft,re){return ft[re]<<24|ft[re+1]<<16|ft[re+2]<<8|ft[re+3]}class Tt{constructor(re,ge){this.TAG="FLVDemuxer",this._config=ge,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=re.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=re.hasAudioTrack,this._hasVideo=re.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new Ct,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=function(){let De=new ArrayBuffer(2);return new DataView(De).setInt16(0,256,!0),new Int16Array(De)[0]===256}()}destroy(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null}static probe(re){let ge=new Uint8Array(re),De={match:!1};if(ge[0]!==70||ge[1]!==76||ge[2]!==86||ge[3]!==1)return De;let Xe=(ge[4]&4)>>>2!==0,tt=(ge[4]&1)!==0,Ot=vt(ge,5);return Ot<9?De:{match:!0,consumed:Ot,dataOffset:Ot,hasAudioTrack:Xe,hasVideoTrack:tt}}bindDataSource(re){return re.onDataArrival=this.parseChunks.bind(this),this}get onTrackMetadata(){return this._onTrackMetadata}set onTrackMetadata(re){this._onTrackMetadata=re}get onMediaInfo(){return this._onMediaInfo}set onMediaInfo(re){this._onMediaInfo=re}get onMetaDataArrived(){return this._onMetaDataArrived}set onMetaDataArrived(re){this._onMetaDataArrived=re}get onScriptDataArrived(){return this._onScriptDataArrived}set onScriptDataArrived(re){this._onScriptDataArrived=re}get onError(){return this._onError}set onError(re){this._onError=re}get onDataAvailable(){return this._onDataAvailable}set onDataAvailable(re){this._onDataAvailable=re}get timestampBase(){return this._timestampBase}set timestampBase(re){this._timestampBase=re}get overridedDuration(){return this._duration}set overridedDuration(re){this._durationOverrided=!0,this._duration=re,this._mediaInfo.duration=re}set overridedHasAudio(re){this._hasAudioFlagOverrided=!0,this._hasAudio=re,this._mediaInfo.hasAudio=re}set overridedHasVideo(re){this._hasVideoFlagOverrided=!0,this._hasVideo=re,this._mediaInfo.hasVideo=re}resetMediaInfo(){this._mediaInfo=new Ct}_isInitialMetadataDispatched(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1}parseChunks(re,ge){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new Ie("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");let De=0,Xe=this._littleEndian;if(ge===0)if(re.byteLength>13)De=Tt.probe(re).dataOffset;else return 0;for(this._firstParse&&(this._firstParse=!1,ge+De!==this._dataOffset&&xe.w(this.TAG,"First time parsing but chunk byteStart invalid!"),new DataView(re,De).getUint32(0,!Xe)!==0&&xe.w(this.TAG,"PrevTagSize0 !== 0 !!!"),De+=4);Dere.byteLength)break;let Ot=tt.getUint8(0),Lt=tt.getUint32(0,!Xe)&16777215;if(De+11+Lt+4>re.byteLength)break;if(Ot!==8&&Ot!==9&&Ot!==18){xe.w(this.TAG,`Unsupported tag type ${Ot}, skipped`),De+=11+Lt+4;continue}let Wn=tt.getUint8(4),ra=tt.getUint8(5),xa=tt.getUint8(6),Kn=tt.getUint8(7),Du=xa|ra<<8|Wn<<16|Kn<<24;(tt.getUint32(7,!Xe)&16777215)!==0&&xe.w(this.TAG,"Meet tag which has StreamID != 0!");let lu=De+11;switch(Ot){case 8:this._parseAudioData(re,lu,Lt,Du);break;case 9:this._parseVideoData(re,lu,Lt,Du,ge+De);break;case 18:this._parseScriptData(re,lu,Lt);break}let Ga=tt.getUint32(11+Lt,!Xe);Ga!==11+Lt&&xe.w(this.TAG,`Invalid PrevTagSize ${Ga}`),De+=11+Lt+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),De}_parseScriptData(re,ge,De){let Xe=Pn.parseScriptData(re,ge,De);if(Xe.hasOwnProperty("onMetaData")){if(Xe.onMetaData==null||typeof Xe.onMetaData!="object"){xe.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&xe.w(this.TAG,"Found another onMetaData tag!"),this._metadata=Xe;let tt=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},tt)),typeof tt.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=tt.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof tt.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=tt.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof tt.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=tt.audiodatarate),typeof tt.videodatarate=="number"&&(this._mediaInfo.videoDataRate=tt.videodatarate),typeof tt.width=="number"&&(this._mediaInfo.width=tt.width),typeof tt.height=="number"&&(this._mediaInfo.height=tt.height),typeof tt.duration=="number"){if(!this._durationOverrided){let Ot=Math.floor(tt.duration*this._timescale);this._duration=Ot,this._mediaInfo.duration=Ot}}else this._mediaInfo.duration=0;if(typeof tt.framerate=="number"){let Ot=Math.floor(tt.framerate*1e3);if(Ot>0){let Lt=Ot/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=Lt,this._referenceFrameRate.fps_num=Ot,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=Lt}}if(typeof tt.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;let Ot=tt.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(Ot),tt.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=tt,xe.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(Xe).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},Xe))}_parseKeyframesIndex(re){let ge=[],De=[];for(let Xe=1;Xe>>4;if(Wn!==2&&Wn!==10){this._onError(zt.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+Wn);return}let ra=0,xa=(Lt&12)>>>2;if(xa>=0&&xa<=4)ra=this._flvSoundRateTable[xa];else{this._onError(zt.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+xa);return}let Kn=(Lt&2)>>>1,Du=Lt&1,la=this._audioMetadata,lu=this._audioTrack;if(la||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),la=this._audioMetadata={},la.type="audio",la.id=lu.id,la.timescale=this._timescale,la.duration=this._duration,la.audioSampleRate=ra,la.channelCount=Du===0?1:2),Wn===10){let Ga=this._parseAACAudioData(re,ge+1,De-1);if(Ga==null)return;if(Ga.packetType===0){la.config&&xe.w(this.TAG,"Found another AudioSpecificConfig!");let Ea=Ga.data;la.audioSampleRate=Ea.samplingRate,la.channelCount=Ea.channelCount,la.codec=Ea.codec,la.originalCodec=Ea.originalCodec,la.config=Ea.config,la.refSampleDuration=1024/la.audioSampleRate*la.timescale,xe.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",la);let ga=this._mediaInfo;ga.audioCodec=la.originalCodec,ga.audioSampleRate=la.audioSampleRate,ga.audioChannelCount=la.channelCount,ga.hasVideo?ga.videoCodec!=null&&(ga.mimeType='video/x-flv; codecs="'+ga.videoCodec+","+ga.audioCodec+'"'):ga.mimeType='video/x-flv; codecs="'+ga.audioCodec+'"',ga.isComplete()&&this._onMediaInfo(ga)}else if(Ga.packetType===1){let Ea=this._timestampBase+Xe,ga={unit:Ga.data,length:Ga.data.byteLength,dts:Ea,pts:Ea};lu.samples.push(ga),lu.length+=Ga.data.length}else xe.e(this.TAG,`Flv: Unsupported AAC data type ${Ga.packetType}`)}else if(Wn===2){if(!la.codec){let jn=this._parseMP3AudioData(re,ge+1,De-1,!0);if(jn==null)return;la.audioSampleRate=jn.samplingRate,la.channelCount=jn.channelCount,la.codec=jn.codec,la.originalCodec=jn.originalCodec,la.refSampleDuration=1152/la.audioSampleRate*la.timescale,xe.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",la);let Hu=this._mediaInfo;Hu.audioCodec=la.codec,Hu.audioSampleRate=la.audioSampleRate,Hu.audioChannelCount=la.channelCount,Hu.audioDataRate=jn.bitRate,Hu.hasVideo?Hu.videoCodec!=null&&(Hu.mimeType='video/x-flv; codecs="'+Hu.videoCodec+","+Hu.audioCodec+'"'):Hu.mimeType='video/x-flv; codecs="'+Hu.audioCodec+'"',Hu.isComplete()&&this._onMediaInfo(Hu)}let Ga=this._parseMP3AudioData(re,ge+1,De-1,!1);if(Ga==null)return;let Ea=this._timestampBase+Xe,ga={unit:Ga,length:Ga.byteLength,dts:Ea,pts:Ea};lu.samples.push(ga),lu.length+=Ga.length}}_parseAACAudioData(re,ge,De){if(De<=1){xe.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}let Xe={},tt=new Uint8Array(re,ge,De);return Xe.packetType=tt[0],tt[0]===0?Xe.data=this._parseAACAudioSpecificConfig(re,ge+1,De-1):Xe.data=tt.subarray(1),Xe}_parseAACAudioSpecificConfig(re,ge,De){let Xe=new Uint8Array(re,ge,De),tt=null,Ot=0,Lt=0,Wn=null,ra=0,xa=null;if(Ot=Lt=Xe[0]>>>3,ra=(Xe[0]&7)<<1|Xe[1]>>>7,ra<0||ra>=this._mpegSamplingRates.length){this._onError(zt.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}let Kn=this._mpegSamplingRates[ra],Du=(Xe[1]&120)>>>3;if(Du<0||Du>=8){this._onError(zt.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}Ot===5&&(xa=(Xe[1]&7)<<1|Xe[2]>>>7,Wn=(Xe[2]&124)>>>2);let la=self.navigator.userAgent.toLowerCase();return la.indexOf("firefox")!==-1?ra>=6?(Ot=5,tt=new Array(4),xa=ra-3):(Ot=2,tt=new Array(2),xa=ra):la.indexOf("android")!==-1?(Ot=2,tt=new Array(2),xa=ra):(Ot=5,xa=ra,tt=new Array(4),ra>=6?xa=ra-3:Du===1&&(Ot=2,tt=new Array(2),xa=ra)),tt[0]=Ot<<3,tt[0]|=(ra&15)>>>1,tt[1]=(ra&15)<<7,tt[1]|=(Du&15)<<3,Ot===5&&(tt[1]|=(xa&15)>>>1,tt[2]=(xa&1)<<7,tt[2]|=8,tt[3]=0),{config:tt,samplingRate:Kn,channelCount:Du,codec:"mp4a.40."+Ot,originalCodec:"mp4a.40."+Lt}}_parseMP3AudioData(re,ge,De,Xe){if(De<4){xe.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}let tt=this._littleEndian,Ot=new Uint8Array(re,ge,De),Lt=null;if(Xe){if(Ot[0]!==255)return;let Wn=Ot[1]>>>3&3,ra=(Ot[1]&6)>>1,xa=(Ot[2]&240)>>>4,Kn=(Ot[2]&12)>>>2,la=(Ot[3]>>>6&3)!==3?2:1,lu=0,Ga=0,Ea=34,ga="mp3";switch(Wn){case 0:lu=this._mpegAudioV25SampleRateTable[Kn];break;case 2:lu=this._mpegAudioV20SampleRateTable[Kn];break;case 3:lu=this._mpegAudioV10SampleRateTable[Kn];break}switch(ra){case 1:Ea=34,xa>>4,Wn=Ot&15;if(Wn!==7){this._onError(zt.CODEC_UNSUPPORTED,`Flv: Unsupported codec in video frame: ${Wn}`);return}this._parseAVCVideoPacket(re,ge+1,De-1,Xe,tt,Lt)}_parseAVCVideoPacket(re,ge,De,Xe,tt,Ot){if(De<4){xe.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}let Lt=this._littleEndian,Wn=new DataView(re,ge,De),ra=Wn.getUint8(0),Kn=(Wn.getUint32(0,!Lt)&16777215)<<8>>8;if(ra===0)this._parseAVCDecoderConfigurationRecord(re,ge+4,De-4);else if(ra===1)this._parseAVCVideoData(re,ge+4,De-4,Xe,tt,Ot,Kn);else if(ra!==2){this._onError(zt.FORMAT_ERROR,`Flv: Invalid video packet type ${ra}`);return}}_parseAVCDecoderConfigurationRecord(re,ge,De){if(De<7){xe.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}let Xe=this._videoMetadata,tt=this._videoTrack,Ot=this._littleEndian,Lt=new DataView(re,ge,De);Xe?typeof Xe.avcc!="undefined"&&xe.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),Xe=this._videoMetadata={},Xe.type="video",Xe.id=tt.id,Xe.timescale=this._timescale,Xe.duration=this._duration);let Wn=Lt.getUint8(0),ra=Lt.getUint8(1),xa=Lt.getUint8(2),Kn=Lt.getUint8(3);if(Wn!==1||ra===0){this._onError(zt.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(Lt.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(zt.FORMAT_ERROR,`Flv: Strange NaluLengthSizeMinusOne: ${this._naluLengthSize-1}`);return}let Du=Lt.getUint8(5)&31;if(Du===0){this._onError(zt.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else Du>1&&xe.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ${Du}`);let la=6;for(let Ga=0;Ga1&&xe.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ${lu}`);la++;for(let Ga=0;Ga=De){xe.w(this.TAG,`Malformed Nalu near timestamp ${lu}, offset = ${Du}, dataSize = ${De}`);break}let Ea=ra.getUint32(Du,!Wn);if(la===3&&(Ea>>>=8),Ea>De-la){xe.w(this.TAG,`Malformed Nalus near timestamp ${lu}, NaluSize > DataSize!`);return}let ga=ra.getUint8(Du+la)&31;ga===5&&(Ga=!0);let jn=new Uint8Array(re,ge+Du,la+Ea),Hu={type:ga,data:jn};xa.push(Hu),Kn+=jn.byteLength,Du+=la+Ea}if(xa.length){let Ea=this._videoTrack,ga={units:xa,length:Kn,isKeyframe:Ga,dts:lu,cts:Lt,pts:lu+Lt};Ga&&(ga.fileposition=tt),Ea.samples.push(ga),Ea.length+=Kn}}}var qt=Tt;class St{static init(){St.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]};for(let ge in St.types)St.types.hasOwnProperty(ge)&&(St.types[ge]=[ge.charCodeAt(0),ge.charCodeAt(1),ge.charCodeAt(2),ge.charCodeAt(3)]);let re=St.constants={};re.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),re.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),re.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),re.STSC=re.STCO=re.STTS,re.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),re.HDLR_VIDEO=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),re.HDLR_AUDIO=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),re.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),re.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),re.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}static box(re){let ge=8,De=null,Xe=Array.prototype.slice.call(arguments,1),tt=Xe.length;for(let Lt=0;Lt>>24&255,De[1]=ge>>>16&255,De[2]=ge>>>8&255,De[3]=ge&255,De.set(re,4);let Ot=8;for(let Lt=0;Lt>>24&255,re>>>16&255,re>>>8&255,re&255,ge>>>24&255,ge>>>16&255,ge>>>8&255,ge&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))}static trak(re){return St.box(St.types.trak,St.tkhd(re),St.mdia(re))}static tkhd(re){let ge=re.id,De=re.duration,Xe=re.presentWidth,tt=re.presentHeight;return St.box(St.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,ge>>>24&255,ge>>>16&255,ge>>>8&255,ge&255,0,0,0,0,De>>>24&255,De>>>16&255,De>>>8&255,De&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,Xe>>>8&255,Xe&255,0,0,tt>>>8&255,tt&255,0,0]))}static mdia(re){return St.box(St.types.mdia,St.mdhd(re),St.hdlr(re),St.minf(re))}static mdhd(re){let ge=re.timescale,De=re.duration;return St.box(St.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,ge>>>24&255,ge>>>16&255,ge>>>8&255,ge&255,De>>>24&255,De>>>16&255,De>>>8&255,De&255,85,196,0,0]))}static hdlr(re){let ge=null;return re.type==="audio"?ge=St.constants.HDLR_AUDIO:ge=St.constants.HDLR_VIDEO,St.box(St.types.hdlr,ge)}static minf(re){let ge=null;return re.type==="audio"?ge=St.box(St.types.smhd,St.constants.SMHD):ge=St.box(St.types.vmhd,St.constants.VMHD),St.box(St.types.minf,ge,St.dinf(),St.stbl(re))}static dinf(){return St.box(St.types.dinf,St.box(St.types.dref,St.constants.DREF))}static stbl(re){return St.box(St.types.stbl,St.stsd(re),St.box(St.types.stts,St.constants.STTS),St.box(St.types.stsc,St.constants.STSC),St.box(St.types.stsz,St.constants.STSZ),St.box(St.types.stco,St.constants.STCO))}static stsd(re){return re.type==="audio"?re.codec==="mp3"?St.box(St.types.stsd,St.constants.STSD_PREFIX,St.mp3(re)):St.box(St.types.stsd,St.constants.STSD_PREFIX,St.mp4a(re)):St.box(St.types.stsd,St.constants.STSD_PREFIX,St.avc1(re))}static mp3(re){let ge=re.channelCount,De=re.audioSampleRate,Xe=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ge,0,16,0,0,0,0,De>>>8&255,De&255,0,0]);return St.box(St.types[".mp3"],Xe)}static mp4a(re){let ge=re.channelCount,De=re.audioSampleRate,Xe=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ge,0,16,0,0,0,0,De>>>8&255,De&255,0,0]);return St.box(St.types.mp4a,Xe,St.esds(re))}static esds(re){let ge=re.config||[],De=ge.length,Xe=new Uint8Array([0,0,0,0,3,23+De,0,1,0,4,15+De,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([De]).concat(ge).concat([6,1,2]));return St.box(St.types.esds,Xe)}static avc1(re){let ge=re.avcc,De=re.codecWidth,Xe=re.codecHeight,tt=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,De>>>8&255,De&255,Xe>>>8&255,Xe&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return St.box(St.types.avc1,tt,St.box(St.types.avcC,ge))}static mvex(re){return St.box(St.types.mvex,St.trex(re))}static trex(re){let ge=re.id,De=new Uint8Array([0,0,0,0,ge>>>24&255,ge>>>16&255,ge>>>8&255,ge&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return St.box(St.types.trex,De)}static moof(re,ge){return St.box(St.types.moof,St.mfhd(re.sequenceNumber),St.traf(re,ge))}static mfhd(re){let ge=new Uint8Array([0,0,0,0,re>>>24&255,re>>>16&255,re>>>8&255,re&255]);return St.box(St.types.mfhd,ge)}static traf(re,ge){let De=re.id,Xe=St.box(St.types.tfhd,new Uint8Array([0,0,0,0,De>>>24&255,De>>>16&255,De>>>8&255,De&255])),tt=St.box(St.types.tfdt,new Uint8Array([0,0,0,0,ge>>>24&255,ge>>>16&255,ge>>>8&255,ge&255])),Ot=St.sdtp(re),Lt=St.trun(re,Ot.byteLength+16+16+8+16+8+8);return St.box(St.types.traf,Xe,tt,Lt,Ot)}static sdtp(re){let ge=re.samples||[],De=ge.length,Xe=new Uint8Array(4+De);for(let tt=0;tt>>24&255,Xe>>>16&255,Xe>>>8&255,Xe&255,ge>>>24&255,ge>>>16&255,ge>>>8&255,ge&255],0);for(let Lt=0;Lt>>24&255,Wn>>>16&255,Wn>>>8&255,Wn&255,ra>>>24&255,ra>>>16&255,ra>>>8&255,ra&255,xa.isLeading<<2|xa.dependsOn,xa.isDependedOn<<6|xa.hasRedundancy<<4|xa.isNonSync,0,0,Kn>>>24&255,Kn>>>16&255,Kn>>>8&255,Kn&255],12+16*Lt)}return St.box(St.types.trun,Ot)}static mdat(re){return St.box(St.types.mdat,re)}}St.init();var Ke=St;class ln{static getSilentFrame(re,ge){if(re==="mp4a.40.2"){if(ge===1)return new Uint8Array([0,200,0,128,35,128]);if(ge===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(ge===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(ge===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(ge===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(ge===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(ge===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(ge===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(ge===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null}}var Un=ln;class Ca{constructor(re,ge,De,Xe,tt){this.dts=re,this.pts=ge,this.duration=De,this.originalDts=Xe,this.isSyncPoint=tt,this.fileposition=null}}class Cu{constructor(){this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}appendSyncPoint(re){re.isSyncPoint=!0,this.syncPoints.push(re)}}class Da{constructor(){this._list=[]}clear(){this._list=[]}appendArray(re){let ge=this._list;re.length!==0&&(ge.length>0&&re[0].originalDts=ge[tt].dts&&rege[Xe].lastSample.originalDts&&re=ge[Xe].lastSample.originalDts&&(Xe===ge.length-1||Xe0&&(tt=this._searchNearestSegmentBefore(De.originalBeginDts)+1),this._lastAppendLocation=tt,this._list.splice(tt,0,De)}getLastSegmentBefore(re){let ge=this._searchNearestSegmentBefore(re);return ge>=0?this._list[ge]:null}getLastSampleBefore(re){let ge=this.getLastSegmentBefore(re);return ge!=null?ge.lastSample:null}getLastSyncPointBefore(re){let ge=this._searchNearestSegmentBefore(re),De=this._list[ge].syncPoints;for(;De.length===0&&ge>0;)ge--,De=this._list[ge].syncPoints;return De.length>0?De[De.length-1]:null}}class cu{constructor(re){this.TAG="MP4Remuxer",this._config=re,this._isLive=re.isLive===!0,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=1/0,this._videoDtsBase=1/0,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new nr("audio"),this._videoSegmentInfoList=new nr("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(b.chrome&&(b.version.major<50||b.version.major===50&&b.version.build<2661)),this._fillSilentAfterSeek=b.msedge||b.msie,this._mp3UseMpegAudio=!b.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}destroy(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null}bindDataSource(re){return re.onDataAvailable=this.remux.bind(this),re.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}get onInitSegment(){return this._onInitSegment}set onInitSegment(re){this._onInitSegment=re}get onMediaSegment(){return this._onMediaSegment}set onMediaSegment(re){this._onMediaSegment=re}insertDiscontinuity(){this._audioNextDts=this._videoNextDts=void 0}seek(re){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}remux(re,ge){if(!this._onMediaSegment)throw new Ie("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(re,ge),this._remuxVideo(ge),this._remuxAudio(re)}_onTrackMetadataReceived(re,ge){let De=null,Xe="mp4",tt=ge.codec;if(re==="audio")this._audioMeta=ge,ge.codec==="mp3"&&this._mp3UseMpegAudio?(Xe="mpeg",tt="",De=new Uint8Array):De=Ke.generateInitSegment(ge);else if(re==="video")this._videoMeta=ge,De=Ke.generateInitSegment(ge);else return;if(!this._onInitSegment)throw new Ie("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(re,{type:re,data:De.buffer,codec:tt,container:`${re}/${Xe}`,mediaDuration:ge.duration})}_calculateDtsBase(re,ge){this._dtsBaseInited||(re.samples&&re.samples.length&&(this._audioDtsBase=re.samples[0].dts),ge.samples&&ge.samples.length&&(this._videoDtsBase=ge.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)}flushStashedSamples(){let re=this._videoStashedLastSample,ge=this._audioStashedLastSample,De={type:"video",id:1,sequenceNumber:0,samples:[],length:0};re!=null&&(De.samples.push(re),De.length=re.length);let Xe={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};ge!=null&&(Xe.samples.push(ge),Xe.length=ge.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(De,!0),this._remuxAudio(Xe,!0)}_remuxAudio(re,ge){if(this._audioMeta==null)return;let De=re,Xe=De.samples,tt,Ot=-1,Lt=-1,Wn=-1,ra=this._audioMeta.refSampleDuration,xa=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,Kn=this._dtsBaseInited&&this._audioNextDts===void 0,Du=!1;if(!Xe||Xe.length===0||Xe.length===1&&!ge)return;let la=0,lu=null,Ga=0;xa?(la=0,Ga=De.length):(la=8,Ga=8+De.length);let Ea=null;if(Xe.length>1&&(Ea=Xe.pop(),Ga-=Ea.length),this._audioStashedLastSample!=null){let sr=this._audioStashedLastSample;this._audioStashedLastSample=null,Xe.unshift(sr),Ga+=sr.length}Ea!=null&&(this._audioStashedLastSample=Ea);let ga=Xe[0].dts-this._dtsBase;if(this._audioNextDts)tt=ga-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())tt=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(Du=!0);else{let sr=this._audioSegmentInfoList.getLastSampleBefore(ga);if(sr!=null){let uu=ga-(sr.originalDts+sr.duration);uu<=3&&(uu=0);let ya=sr.dts+sr.duration+uu;tt=ga-ya}else tt=0}if(Du){let sr=ga-tt,uu=this._videoSegmentInfoList.getLastSegmentBefore(ga);if(uu!=null&&uu.beginDts=1?Ki=jn[jn.length-1].duration:Ki=Math.floor(ra);let Yo=!1,fo=null;if(Ki>ra*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!b.safari){Yo=!0;let du=Math.abs(Ki-ra),Gu=Math.ceil(du/ra),pl=zi+ra;xe.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync. @@ -1144,13 +1144,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Pa="".concat(Er," ").concat(er).split(/[\s\n]+/),Za="aria-",qn="data-";function Vn(be,Te){return be.indexOf(Te)===0}function Qa(be){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,at;Te===!1?at={aria:!0,data:!0,attr:!0}:Te===!0?at={aria:!0}:at=Ue({},Te);var Et={};return Object.keys(be).forEach(function(rn){(at.aria&&(rn==="role"||Vn(rn,Za))||at.data&&Vn(rn,qn)||at.attr&&Pa.includes(rn))&&(Et[rn]=be[rn])}),Et}function gu(){return gu=Object.assign?Object.assign.bind():function(be){for(var Te=1;Tebe.length)&&(Te=be.length);for(var at=0,Et=new Array(Te);at=0)&&(at[rn]=be[rn]);return at}function ge(be,Te){if(be==null)return{};var at=re(be,Te),Et,rn;if(Object.getOwnPropertySymbols){var Mn=Object.getOwnPropertySymbols(be);for(rn=0;rn=0)&&Object.prototype.propertyIsEnumerable.call(be,Et)&&(at[Et]=be[Et])}return at}var De=z(48555);function Xe(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var tt=Xe()?Ze.useLayoutEffect:Ze.useEffect,Ot=function(Te,at){var Et=Ze.useRef(!0);tt(function(){return Te(Et.current)},at),tt(function(){return Et.current=!1,function(){Et.current=!0}},[])},Lt=function(Te,at){Ot(function(Et){if(!Et)return Te()},at)},Wn=Ot,ra=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],xa=void 0;function Kn(be,Te){var at=be.prefixCls,Et=be.invalidate,rn=be.item,Mn=be.renderItem,na=be.responsive,ka=be.responsiveDisabled,nu=be.registerSize,vu=be.itemKey,Uu=be.className,tr=be.style,gr=be.children,Xu=be.display,Fr=be.order,br=be.component,yr=br===void 0?"div":br,Sl=ge(be,ra),ro=na&&!Xu;function kr(zl){nu(vu,zl)}Ze.useEffect(function(){return function(){kr(null)}},[]);var nl=Mn&&rn!==xa?Mn(rn):gr,vo;Et||(vo={opacity:ro?0:1,height:ro?0:xa,overflowY:ro?"hidden":xa,order:na?Fr:xa,pointerEvents:ro?"none":xa,position:ro?"absolute":xa});var Xr={};ro&&(Xr["aria-hidden"]=!0);var Pl=Ze.createElement(yr,gu({className:jt()(!Et&&at,Uu),style:_n(_n({},vo),tr)},Xr,Sl,{ref:Te}),nl);return na&&(Pl=Ze.createElement(De.Z,{onResize:function(kl){var Eo=kl.offsetWidth;kr(Eo)},disabled:ka},Pl)),Pl}var Du=Ze.forwardRef(Kn);Du.displayName="Item";var la=Du;function lu(be){var Te=Ze.useRef();Te.current=be;var at=Ze.useCallback(function(){for(var Et,rn=arguments.length,Mn=new Array(rn),na=0;na1&&arguments[1]!==void 0?arguments[1]:1;jn+=1;var Et=jn;function rn(Mn){if(Mn===0)Hr(Et),Te();else{var na=Ea(function(){rn(Mn-1)});Hu.set(Et,na)}}return rn(at),Et};Wa.cancel=function(be){var Te=Hu.get(be);return Hr(Te),ga(Te)};var rl=Wa;function sr(be){if(typeof MessageChannel=="undefined")rl(be);else{var Te=new MessageChannel;Te.port1.onmessage=function(){return be()},Te.port2.postMessage(void 0)}}function uu(){var be=Ze.useRef(null),Te=function(Et){be.current||(be.current=[],sr(function(){(0,Ga.unstable_batchedUpdates)(function(){be.current.forEach(function(rn){rn()}),be.current=null})})),be.current.push(Et)};return Te}function ya(be,Te){var at=Ze.useState(Te),Et=ft(at,2),rn=Et[0],Mn=Et[1],na=lu(function(ka){be(function(){Mn(ka)})});return[rn,na]}var Ua=Ze.createContext(null),zi=["component"],Ki=["className"],Yo=["className"],fo=function(Te,at){var Et=Ze.useContext(Ua);if(!Et){var rn=Te.component,Mn=rn===void 0?"div":rn,na=ge(Te,zi);return Ze.createElement(Mn,gu({},na,{ref:at}))}var ka=Et.className,nu=ge(Et,Ki),vu=Te.className,Uu=ge(Te,Yo);return Ze.createElement(Ua.Provider,{value:null},Ze.createElement(la,gu({ref:at,className:jt()(ka,vu)},nu,Uu)))},du=Ze.forwardRef(fo);du.displayName="RawItem";var Gu=du,pl=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Ir="responsive",Cl="invalidate";function ol(be){return"+ ".concat(be.length," ...")}function ti(be,Te){var at=be.prefixCls,Et=at===void 0?"rc-overflow":at,rn=be.data,Mn=rn===void 0?[]:rn,na=be.renderItem,ka=be.renderRawItem,nu=be.itemKey,vu=be.itemWidth,Uu=vu===void 0?10:vu,tr=be.ssr,gr=be.style,Xu=be.className,Fr=be.maxCount,br=be.renderRest,yr=be.renderRawRest,Sl=be.suffix,ro=be.component,kr=ro===void 0?"div":ro,nl=be.itemComponent,vo=be.onVisibleChange,Xr=ge(be,pl),Pl=tr==="full",zl=uu(),kl=ya(zl,null),Eo=ft(kl,2),$r=Eo[0],$l=Eo[1],xl=$r||0,ni=ya(zl,new Map),bo=ft(ni,2),Qo=bo[0],di=bo[1],ku=ya(zl,0),Mo=ft(ku,2),Jr=Mo[0],Fo=Mo[1],mi=ya(zl,0),Hi=ft(mi,2),$i=Hi[0],gi=Hi[1],Lo=ya(zl,0),_o=ft(Lo,2),Wi=_o[0],zs=_o[1],us=(0,Ze.useState)(null),Il=ft(us,2),Pr=Il[0],Hl=Il[1],yl=(0,Ze.useState)(null),el=ft(yl,2),Ll=el[0],ie=el[1],we=Ze.useMemo(function(){return Ll===null&&Pl?Number.MAX_SAFE_INTEGER:Ll||0},[Ll,$r]),Oe=(0,Ze.useState)(!1),Qe=ft(Oe,2),mt=Qe[0],It=Qe[1],$t="".concat(Et,"-item"),dn=Math.max(Jr,$i),ta=Fr===Ir,aa=Mn.length&&ta,wn=Fr===Cl,ja=aa||typeof Fr=="number"&&Mn.length>Fr,$a=(0,Ze.useMemo)(function(){var Au=Mn;return aa?$r===null&&Pl?Au=Mn:Au=Mn.slice(0,Math.min(Mn.length,xl/Uu)):typeof Fr=="number"&&(Au=Mn.slice(0,Fr)),Au},[Mn,Uu,$r,Fr,aa]),Ra=(0,Ze.useMemo)(function(){return aa?Mn.slice(we+1):Mn.slice($a.length)},[Mn,$a,aa,we]),wa=(0,Ze.useCallback)(function(Au,Vu){var Ju;return typeof nu=="function"?nu(Au):(Ju=nu&&(Au==null?void 0:Au[nu]))!==null&&Ju!==void 0?Ju:Vu},[nu]),eu=(0,Ze.useCallback)(na||function(Au){return Au},[na]);function za(Au,Vu,Ju){Ll===Au&&(Vu===void 0||Vu===Pr)||(ie(Au),Ju||(It(Auxl){za(qr-1,Au-Nl-Wi+$i);break}}Sl&&Ku(0)+Wi>xl&&Hl(null)}},[xl,Qo,$i,Wi,wa,$a]);var Fu=mt&&!!Ra.length,Ou={};Pr!==null&&aa&&(Ou={position:"absolute",left:Pr,top:0});var xr={prefixCls:$t,responsive:aa,component:nl,invalidate:wn},Nr=ka?function(Au,Vu){var Ju=wa(Au,Vu);return Ze.createElement(Ua.Provider,{key:Ju,value:_n(_n({},xr),{},{order:Vu,item:Au,itemKey:Ju,registerSize:Iu,display:Vu<=we})},ka(Au,Vu))}:function(Au,Vu){var Ju=wa(Au,Vu);return Ze.createElement(la,gu({},xr,{order:Vu,key:Ju,item:Au,renderItem:eu,itemKey:Ju,registerSize:Iu,display:Vu<=we}))},pu,pr={order:Fu?we:Number.MAX_SAFE_INTEGER,className:"".concat($t,"-rest"),registerSize:Lu,display:Fu};if(yr)yr&&(pu=Ze.createElement(Ua.Provider,{value:_n(_n({},xr),pr)},yr(Ra)));else{var il=br||ol;pu=Ze.createElement(la,gu({},xr,pr),typeof il=="function"?il(Ra):il)}var ur=Ze.createElement(kr,gu({className:jt()(!wn&&Et,Xu),style:gr,ref:Te},Xr),$a.map(Nr),ja?pu:null,Sl&&Ze.createElement(la,gu({},xr,{responsive:ta,responsiveDisabled:!aa,order:we,className:"".concat($t,"-suffix"),registerSize:ru,display:!0,style:Ou}),Sl));return ta&&(ur=Ze.createElement(De.Z,{onResize:_a,disabled:!aa},ur)),ur}var io=Ze.forwardRef(ti);io.displayName="Overflow",io.Item=Gu,io.RESPONSIVE=Ir,io.INVALIDATE=Cl;var Xo=io,Sn=Xo,Li=function(Te,at){var Et,rn=Te.prefixCls,Mn=Te.id,na=Te.inputElement,ka=Te.disabled,nu=Te.tabIndex,vu=Te.autoFocus,Uu=Te.autoComplete,tr=Te.editable,gr=Te.activeDescendantId,Xu=Te.value,Fr=Te.maxLength,br=Te.onKeyDown,yr=Te.onMouseDown,Sl=Te.onChange,ro=Te.onPaste,kr=Te.onCompositionStart,nl=Te.onCompositionEnd,vo=Te.onBlur,Xr=Te.open,Pl=Te.attrs,zl=na||Ze.createElement("input",null),kl=zl,Eo=kl.ref,$r=kl.props,$l=$r.onKeyDown,xl=$r.onChange,ni=$r.onMouseDown,bo=$r.onCompositionStart,Qo=$r.onCompositionEnd,di=$r.onBlur,ku=$r.style;return"maxLength"in zl.props,zl=Ze.cloneElement(zl,Ue(Ue(Ue({type:"search"},$r),{},{id:Mn,ref:St(at,Eo),disabled:ka,tabIndex:nu,autoComplete:Uu||"off",autoFocus:vu,className:jt()("".concat(rn,"-selection-search-input"),(Et=zl)===null||Et===void 0||(Et=Et.props)===null||Et===void 0?void 0:Et.className),role:"combobox","aria-expanded":Xr||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Mn,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Mn,"_list"),"aria-activedescendant":Xr?gr:void 0},Pl),{},{value:tr?Xu:"",maxLength:Fr,readOnly:!tr,unselectable:tr?null:"on",style:Ue(Ue({},ku),{},{opacity:tr?null:0}),onKeyDown:function(Jr){br(Jr),$l&&$l(Jr)},onMouseDown:function(Jr){yr(Jr),ni&&ni(Jr)},onChange:function(Jr){Sl(Jr),xl&&xl(Jr)},onCompositionStart:function(Jr){kr(Jr),bo&&bo(Jr)},onCompositionEnd:function(Jr){nl(Jr),Qo&&Qo(Jr)},onPaste:ro,onBlur:function(Jr){vo(Jr),di&&di(Jr)}})),zl},ic=Ze.forwardRef(Li),lc=ic;function tc(be){return Array.isArray(be)?be:be!==void 0?[be]:[]}var nc=typeof window!="undefined"&&window.document&&window.document.documentElement,Jl=nc;function Vs(be){return be!=null}function ri(be){return!be&&be!==0}function Gs(be){return["string","number"].includes(Le(be))}function Wu(be){var Te=void 0;return be&&(Gs(be.title)?Te=be.title.toString():Gs(be.label)&&(Te=be.label.toString())),Te}function Qi(be,Te){Jl?Ze.useLayoutEffect(be,Te):Ze.useEffect(be,Te)}function pc(be){var Te;return(Te=be.key)!==null&&Te!==void 0?Te:be.value}var vs=function(Te){Te.preventDefault(),Te.stopPropagation()},fs=function(Te){var at=Te.id,Et=Te.prefixCls,rn=Te.values,Mn=Te.open,na=Te.searchValue,ka=Te.autoClearSearchValue,nu=Te.inputRef,vu=Te.placeholder,Uu=Te.disabled,tr=Te.mode,gr=Te.showSearch,Xu=Te.autoFocus,Fr=Te.autoComplete,br=Te.activeDescendantId,yr=Te.tabIndex,Sl=Te.removeIcon,ro=Te.maxTagCount,kr=Te.maxTagTextLength,nl=Te.maxTagPlaceholder,vo=nl===void 0?function(yl){return"+ ".concat(yl.length," ...")}:nl,Xr=Te.tagRender,Pl=Te.onToggleOpen,zl=Te.onRemove,kl=Te.onInputChange,Eo=Te.onInputPaste,$r=Te.onInputKeyDown,$l=Te.onInputMouseDown,xl=Te.onInputCompositionStart,ni=Te.onInputCompositionEnd,bo=Te.onInputBlur,Qo=Ze.useRef(null),di=(0,Ze.useState)(0),ku=Bt(di,2),Mo=ku[0],Jr=ku[1],Fo=(0,Ze.useState)(!1),mi=Bt(Fo,2),Hi=mi[0],$i=mi[1],gi="".concat(Et,"-selection"),Lo=Mn||tr==="multiple"&&ka===!1||tr==="tags"?na:"",_o=tr==="tags"||tr==="multiple"&&ka===!1||gr&&(Mn||Hi);Qi(function(){Jr(Qo.current.scrollWidth)},[Lo]);var Wi=function(el,Ll,ie,we,Oe){return Ze.createElement("span",{title:Wu(el),className:jt()("".concat(gi,"-item"),We({},"".concat(gi,"-item-disabled"),ie))},Ze.createElement("span",{className:"".concat(gi,"-item-content")},Ll),we&&Ze.createElement(Ca,{className:"".concat(gi,"-item-remove"),onMouseDown:vs,onClick:Oe,customizeIcon:Sl},"\xD7"))},zs=function(el,Ll,ie,we,Oe,Qe){var mt=function($t){vs($t),Pl(!Mn)};return Ze.createElement("span",{onMouseDown:mt},Xr({label:Ll,value:el,disabled:ie,closable:we,onClose:Oe,isMaxTag:!!Qe}))},us=function(el){var Ll=el.disabled,ie=el.label,we=el.value,Oe=!Uu&&!Ll,Qe=ie;if(typeof kr=="number"&&(typeof ie=="string"||typeof ie=="number")){var mt=String(Qe);mt.length>kr&&(Qe="".concat(mt.slice(0,kr),"..."))}var It=function(dn){dn&&dn.stopPropagation(),zl(el)};return typeof Xr=="function"?zs(we,Qe,Ll,Oe,It):Wi(el,Qe,Ll,Oe,It)},Il=function(el){if(!rn.length)return null;var Ll=typeof vo=="function"?vo(el):vo;return typeof Xr=="function"?zs(void 0,Ll,!1,!1,void 0,!0):Wi({title:Ll},Ll,!1)},Pr=Ze.createElement("div",{className:"".concat(gi,"-search"),style:{width:Mo},onFocus:function(){$i(!0)},onBlur:function(){$i(!1)}},Ze.createElement(lc,{ref:nu,open:Mn,prefixCls:Et,id:at,inputElement:null,disabled:Uu,autoFocus:Xu,autoComplete:Fr,editable:_o,activeDescendantId:br,value:Lo,onKeyDown:$r,onMouseDown:$l,onChange:kl,onPaste:Eo,onCompositionStart:xl,onCompositionEnd:ni,onBlur:bo,tabIndex:yr,attrs:Qa(Te,!0)}),Ze.createElement("span",{ref:Qo,className:"".concat(gi,"-search-mirror"),"aria-hidden":!0},Lo,"\xA0")),Hl=Ze.createElement(Sn,{prefixCls:"".concat(gi,"-overflow"),data:rn,renderItem:us,renderRest:Il,suffix:Pr,itemKey:pc,maxCount:ro});return Ze.createElement("span",{className:"".concat(gi,"-wrap")},Hl,!rn.length&&!Lo&&Ze.createElement("span",{className:"".concat(gi,"-placeholder")},vu))},ps=fs,so=function(Te){var at=Te.inputElement,Et=Te.prefixCls,rn=Te.id,Mn=Te.inputRef,na=Te.disabled,ka=Te.autoFocus,nu=Te.autoComplete,vu=Te.activeDescendantId,Uu=Te.mode,tr=Te.open,gr=Te.values,Xu=Te.placeholder,Fr=Te.tabIndex,br=Te.showSearch,yr=Te.searchValue,Sl=Te.activeValue,ro=Te.maxLength,kr=Te.onInputKeyDown,nl=Te.onInputMouseDown,vo=Te.onInputChange,Xr=Te.onInputPaste,Pl=Te.onInputCompositionStart,zl=Te.onInputCompositionEnd,kl=Te.onInputBlur,Eo=Te.title,$r=Ze.useState(!1),$l=Bt($r,2),xl=$l[0],ni=$l[1],bo=Uu==="combobox",Qo=bo||br,di=gr[0],ku=yr||"";bo&&Sl&&!xl&&(ku=Sl),Ze.useEffect(function(){bo&&ni(!1)},[bo,Sl]);var Mo=Uu!=="combobox"&&!tr&&!br?!1:!!ku,Jr=Eo===void 0?Wu(di):Eo,Fo=Ze.useMemo(function(){return di?null:Ze.createElement("span",{className:"".concat(Et,"-selection-placeholder"),style:Mo?{visibility:"hidden"}:void 0},Xu)},[di,Mo,Xu,Et]);return Ze.createElement("span",{className:"".concat(Et,"-selection-wrap")},Ze.createElement("span",{className:"".concat(Et,"-selection-search")},Ze.createElement(lc,{ref:Mn,prefixCls:Et,id:rn,open:tr,inputElement:at,disabled:na,autoFocus:ka,autoComplete:nu,editable:Qo,activeDescendantId:vu,value:ku,onKeyDown:kr,onMouseDown:nl,onChange:function(Hi){ni(!0),vo(Hi)},onPaste:Xr,onCompositionStart:Pl,onCompositionEnd:zl,onBlur:kl,tabIndex:Fr,attrs:Qa(Te,!0),maxLength:bo?ro:void 0})),!bo&&di?Ze.createElement("span",{className:"".concat(Et,"-selection-item"),title:Jr,style:Mo?{visibility:"hidden"}:void 0},di.label):null,Fo)},sc=so,Wo=function(Te,at){var Et=(0,Ze.useRef)(null),rn=(0,Ze.useRef)(!1),Mn=Te.prefixCls,na=Te.open,ka=Te.mode,nu=Te.showSearch,vu=Te.tokenWithEnter,Uu=Te.disabled,tr=Te.prefix,gr=Te.autoClearSearchValue,Xu=Te.onSearch,Fr=Te.onSearchSubmit,br=Te.onToggleOpen,yr=Te.onInputKeyDown,Sl=Te.onInputBlur,ro=Te.domRef;Ze.useImperativeHandle(at,function(){return{focus:function(Jr){Et.current.focus(Jr)},blur:function(){Et.current.blur()}}});var kr=or(0),nl=Bt(kr,2),vo=nl[0],Xr=nl[1],Pl=function(Jr){var Fo=Jr.which,mi=Et.current instanceof HTMLTextAreaElement;!mi&&na&&(Fo===xn.UP||Fo===xn.DOWN)&&Jr.preventDefault(),yr&&yr(Jr),Fo===xn.ENTER&&ka==="tags"&&!rn.current&&!na&&(Fr==null||Fr(Jr.target.value)),!(mi&&!na&&~[xn.UP,xn.DOWN,xn.LEFT,xn.RIGHT].indexOf(Fo))&&vl(Fo)&&br(!0)},zl=function(){Xr(!0)},kl=(0,Ze.useRef)(null),Eo=function(Jr){Xu(Jr,!0,rn.current)!==!1&&br(!0)},$r=function(){rn.current=!0},$l=function(Jr){rn.current=!1,ka!=="combobox"&&Eo(Jr.target.value)},xl=function(Jr){var Fo=Jr.target.value;if(vu&&kl.current&&/[\r\n]/.test(kl.current)){var mi=kl.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Fo=Fo.replace(mi,kl.current)}kl.current=null,Eo(Fo)},ni=function(Jr){var Fo=Jr.clipboardData,mi=Fo==null?void 0:Fo.getData("text");kl.current=mi||""},bo=function(Jr){var Fo=Jr.target;if(Fo!==Et.current){var mi=document.body.style.msTouchAction!==void 0;mi?setTimeout(function(){Et.current.focus()}):Et.current.focus()}},Qo=function(Jr){var Fo=vo();Jr.target!==Et.current&&!Fo&&!(ka==="combobox"&&Uu)&&Jr.preventDefault(),(ka!=="combobox"&&(!nu||!Fo)||!na)&&(na&&gr!==!1&&Xu("",!0,!1),br())},di={inputRef:Et,onInputKeyDown:Pl,onInputMouseDown:zl,onInputChange:xl,onInputPaste:ni,onInputCompositionStart:$r,onInputCompositionEnd:$l,onInputBlur:Sl},ku=ka==="multiple"||ka==="tags"?Ze.createElement(ps,te({},Te,di)):Ze.createElement(sc,te({},Te,di));return Ze.createElement("div",{ref:ro,className:"".concat(Mn,"-selector"),onClick:bo,onMouseDown:Qo},tr&&Ze.createElement("div",{className:"".concat(Mn,"-prefix")},tr),ku)},bi=Ze.forwardRef(Wo),cc=bi,ts=z(98280),Hc=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Nc=function(Te){var at=Te===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:at,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:at,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:at,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:at,adjustY:1},htmlRegion:"scroll"}}},Pc=function(Te,at){var Et=Te.prefixCls,rn=Te.disabled,Mn=Te.visible,na=Te.children,ka=Te.popupElement,nu=Te.animation,vu=Te.transitionName,Uu=Te.dropdownStyle,tr=Te.dropdownClassName,gr=Te.direction,Xu=gr===void 0?"ltr":gr,Fr=Te.placement,br=Te.builtinPlacements,yr=Te.dropdownMatchSelectWidth,Sl=Te.dropdownRender,ro=Te.dropdownAlign,kr=Te.getPopupContainer,nl=Te.empty,vo=Te.getTriggerDOMNode,Xr=Te.onPopupVisibleChange,Pl=Te.onPopupMouseEnter,zl=nt(Te,Hc),kl="".concat(Et,"-dropdown"),Eo=ka;Sl&&(Eo=Sl(ka));var $r=Ze.useMemo(function(){return br||Nc(yr)},[br,yr]),$l=nu?"".concat(kl,"-").concat(nu):vu,xl=typeof yr=="number",ni=Ze.useMemo(function(){return xl?null:yr===!1?"minWidth":"width"},[yr,xl]),bo=Uu;xl&&(bo=Ue(Ue({},bo),{},{width:yr}));var Qo=Ze.useRef(null);return Ze.useImperativeHandle(at,function(){return{getPopupElement:function(){var ku;return(ku=Qo.current)===null||ku===void 0?void 0:ku.popupElement}}}),Ze.createElement(ts.Z,te({},zl,{showAction:Xr?["click"]:[],hideAction:Xr?["click"]:[],popupPlacement:Fr||(Xu==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:$r,prefixCls:kl,popupTransitionName:$l,popup:Ze.createElement("div",{onMouseEnter:Pl},Eo),ref:Qo,stretch:ni,popupAlign:ro,popupVisible:Mn,getPopupContainer:kr,popupClassName:jt()(tr,We({},"".concat(kl,"-empty"),nl)),popupStyle:bo,getTriggerDOMNode:vo,onPopupVisibleChange:Xr}),na)},Rr=Ze.forwardRef(Pc),vr=Rr;function fl(be){return Ye(be)||ye(be)||fe(be)||lt()}function Wr(be,Te){var at=be.key,Et;return"value"in be&&(Et=be.value),at!=null?at:Et!==void 0?Et:"rc-index-key-".concat(Te)}function jo(be){return typeof be!="undefined"&&!Number.isNaN(be)}function Ti(be,Te){var at=be||{},Et=at.label,rn=at.value,Mn=at.options,na=at.groupLabel,ka=Et||(Te?"children":"label");return{label:ka,value:rn||"value",options:Mn||"options",groupLabel:na||ka}}function yn(be){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},at=Te.fieldNames,Et=Te.childrenAsData,rn=[],Mn=Ti(at,!1),na=Mn.label,ka=Mn.value,nu=Mn.options,vu=Mn.groupLabel;function Uu(tr,gr){Array.isArray(tr)&&tr.forEach(function(Xu){if(gr||!(nu in Xu)){var Fr=Xu[ka];rn.push({key:Wr(Xu,rn.length),groupOption:gr,data:Xu,label:Xu[na],value:Fr})}else{var br=Xu[vu];br===void 0&&Et&&(br=Xu.label),rn.push({key:Wr(Xu,rn.length),group:!0,data:Xu,label:br}),Uu(Xu[nu],!0)}})}return Uu(be,!1),rn}function fa(be){var Te=Ue({},be);return"props"in Te||Object.defineProperty(Te,"props",{get:function(){return Qt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Te}}),Te}var va=function(Te,at,Et){if(!at||!at.length)return null;var rn=!1,Mn=function ka(nu,vu){var Uu=fl(vu),tr=Uu[0],gr=Uu.slice(1);if(!tr)return[nu];var Xu=nu.split(tr);return rn=rn||Xu.length>1,Xu.reduce(function(Fr,br){return[].concat(Ne(Fr),Ne(ka(br,gr)))},[]).filter(Boolean)},na=Mn(Te,at);return rn?typeof Et!="undefined"?na.slice(0,Et):na:null},Vr=Ze.createContext(null),Bl=Vr;function Gr(be){var Te=be.visible,at=be.values;if(!Te)return null;var Et=50;return Ze.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(at.slice(0,Et).map(function(rn){var Mn=rn.label,na=rn.value;return["number","string"].includes(Le(Mn))?Mn:na}).join(", ")),at.length>Et?", ...":null)}var El=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Dl=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Qr=function(Te){return Te==="tags"||Te==="multiple"},Kr=Ze.forwardRef(function(be,Te){var at,Et=be.id,rn=be.prefixCls,Mn=be.className,na=be.showSearch,ka=be.tagRender,nu=be.direction,vu=be.omitDomProps,Uu=be.displayValues,tr=be.onDisplayValuesChange,gr=be.emptyOptions,Xu=be.notFoundContent,Fr=Xu===void 0?"Not Found":Xu,br=be.onClear,yr=be.mode,Sl=be.disabled,ro=be.loading,kr=be.getInputElement,nl=be.getRawInputElement,vo=be.open,Xr=be.defaultOpen,Pl=be.onDropdownVisibleChange,zl=be.activeValue,kl=be.onActiveValueChange,Eo=be.activeDescendantId,$r=be.searchValue,$l=be.autoClearSearchValue,xl=be.onSearch,ni=be.onSearchSplit,bo=be.tokenSeparators,Qo=be.allowClear,di=be.prefix,ku=be.suffixIcon,Mo=be.clearIcon,Jr=be.OptionList,Fo=be.animation,mi=be.transitionName,Hi=be.dropdownStyle,$i=be.dropdownClassName,gi=be.dropdownMatchSelectWidth,Lo=be.dropdownRender,_o=be.dropdownAlign,Wi=be.placement,zs=be.builtinPlacements,us=be.getPopupContainer,Il=be.showAction,Pr=Il===void 0?[]:Il,Hl=be.onFocus,yl=be.onBlur,el=be.onKeyUp,Ll=be.onKeyDown,ie=be.onMouseDown,we=nt(be,El),Oe=Qr(yr),Qe=(na!==void 0?na:Oe)||yr==="combobox",mt=Ue({},we);Dl.forEach(function(ml){delete mt[ml]}),vu==null||vu.forEach(function(ml){delete mt[ml]});var It=Ze.useState(!1),$t=Bt(It,2),dn=$t[0],ta=$t[1];Ze.useEffect(function(){ta(sn())},[]);var aa=Ze.useRef(null),wn=Ze.useRef(null),ja=Ze.useRef(null),$a=Ze.useRef(null),Ra=Ze.useRef(null),wa=Ze.useRef(!1),eu=cu(),za=Bt(eu,3),_a=za[0],Iu=za[1],Lu=za[2];Ze.useImperativeHandle(Te,function(){var ml,Qu;return{focus:(ml=$a.current)===null||ml===void 0?void 0:ml.focus,blur:(Qu=$a.current)===null||Qu===void 0?void 0:Qu.blur,scrollTo:function(pi){var Uo;return(Uo=Ra.current)===null||Uo===void 0?void 0:Uo.scrollTo(pi)},nativeElement:aa.current||wn.current}});var ru=Ze.useMemo(function(){var ml;if(yr!=="combobox")return $r;var Qu=(ml=Uu[0])===null||ml===void 0?void 0:ml.value;return typeof Qu=="string"||typeof Qu=="number"?String(Qu):""},[$r,yr,Uu]),Ku=yr==="combobox"&&typeof kr=="function"&&kr()||null,Fu=typeof nl=="function"&&nl(),Ou=Ke(wn,Fu==null||(at=Fu.props)===null||at===void 0?void 0:at.ref),xr=Ze.useState(!1),Nr=Bt(xr,2),pu=Nr[0],pr=Nr[1];ot(function(){pr(!0)},[]);var il=st(!1,{defaultValue:Xr,value:vo}),ur=Bt(il,2),Au=ur[0],Vu=ur[1],Ju=pu?Au:!1,qr=!Fr&&gr;(Sl||qr&&Ju&&yr==="combobox")&&(Ju=!1);var Nl=qr?!1:Ju,qu=Ze.useCallback(function(ml){var Qu=ml!==void 0?ml:!Ju;Sl||(Vu(Qu),Ju!==Qu&&(Pl==null||Pl(Qu)))},[Sl,Ju,Vu,Pl]),fr=Ze.useMemo(function(){return(bo||[]).some(function(ml){return[` +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ft(be,Te){return Gn(be)||ua(be,Te)||Ta(be,Te)||hu()}function re(be,Te){if(be==null)return{};var at={},Et=Object.keys(be),rn,Mn;for(Mn=0;Mn=0)&&(at[rn]=be[rn]);return at}function ge(be,Te){if(be==null)return{};var at=re(be,Te),Et,rn;if(Object.getOwnPropertySymbols){var Mn=Object.getOwnPropertySymbols(be);for(rn=0;rn=0)&&Object.prototype.propertyIsEnumerable.call(be,Et)&&(at[Et]=be[Et])}return at}var De=z(48555);function Xe(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var tt=Xe()?Ze.useLayoutEffect:Ze.useEffect,Ot=function(Te,at){var Et=Ze.useRef(!0);tt(function(){return Te(Et.current)},at),tt(function(){return Et.current=!1,function(){Et.current=!0}},[])},Lt=function(Te,at){Ot(function(Et){if(!Et)return Te()},at)},Wn=Ot,ra=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],xa=void 0;function Kn(be,Te){var at=be.prefixCls,Et=be.invalidate,rn=be.item,Mn=be.renderItem,na=be.responsive,ka=be.responsiveDisabled,nu=be.registerSize,vu=be.itemKey,Uu=be.className,tr=be.style,gr=be.children,Xu=be.display,Fr=be.order,br=be.component,yr=br===void 0?"div":br,Sl=ge(be,ra),ro=na&&!Xu;function kr(zl){nu(vu,zl)}Ze.useEffect(function(){return function(){kr(null)}},[]);var nl=Mn&&rn!==xa?Mn(rn):gr,vo;Et||(vo={opacity:ro?0:1,height:ro?0:xa,overflowY:ro?"hidden":xa,order:na?Fr:xa,pointerEvents:ro?"none":xa,position:ro?"absolute":xa});var Xr={};ro&&(Xr["aria-hidden"]=!0);var Pl=Ze.createElement(yr,gu({className:jt()(!Et&&at,Uu),style:_n(_n({},vo),tr)},Xr,Sl,{ref:Te}),nl);return na&&(Pl=Ze.createElement(De.Z,{onResize:function(kl){var Eo=kl.offsetWidth;kr(Eo)},disabled:ka},Pl)),Pl}var Du=Ze.forwardRef(Kn);Du.displayName="Item";var la=Du;function lu(be){var Te=Ze.useRef();Te.current=be;var at=Ze.useCallback(function(){for(var Et,rn=arguments.length,Mn=new Array(rn),na=0;na1&&arguments[1]!==void 0?arguments[1]:1;jn+=1;var Et=jn;function rn(Mn){if(Mn===0)Hr(Et),Te();else{var na=Ea(function(){rn(Mn-1)});Hu.set(Et,na)}}return rn(at),Et};Wa.cancel=function(be){var Te=Hu.get(be);return Hr(Te),ga(Te)};var rl=Wa;function sr(be){if(typeof MessageChannel=="undefined")rl(be);else{var Te=new MessageChannel;Te.port1.onmessage=function(){return be()},Te.port2.postMessage(void 0)}}function uu(){var be=Ze.useRef(null),Te=function(Et){be.current||(be.current=[],sr(function(){(0,Ga.unstable_batchedUpdates)(function(){be.current.forEach(function(rn){rn()}),be.current=null})})),be.current.push(Et)};return Te}function ya(be,Te){var at=Ze.useState(Te),Et=ft(at,2),rn=Et[0],Mn=Et[1],na=lu(function(ka){be(function(){Mn(ka)})});return[rn,na]}var Ua=Ze.createContext(null),zi=["component"],Ki=["className"],Yo=["className"],fo=function(Te,at){var Et=Ze.useContext(Ua);if(!Et){var rn=Te.component,Mn=rn===void 0?"div":rn,na=ge(Te,zi);return Ze.createElement(Mn,gu({},na,{ref:at}))}var ka=Et.className,nu=ge(Et,Ki),vu=Te.className,Uu=ge(Te,Yo);return Ze.createElement(Ua.Provider,{value:null},Ze.createElement(la,gu({ref:at,className:jt()(ka,vu)},nu,Uu)))},du=Ze.forwardRef(fo);du.displayName="RawItem";var Gu=du,pl=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Ir="responsive",Cl="invalidate";function ol(be){return"+ ".concat(be.length," ...")}function ti(be,Te){var at=be.prefixCls,Et=at===void 0?"rc-overflow":at,rn=be.data,Mn=rn===void 0?[]:rn,na=be.renderItem,ka=be.renderRawItem,nu=be.itemKey,vu=be.itemWidth,Uu=vu===void 0?10:vu,tr=be.ssr,gr=be.style,Xu=be.className,Fr=be.maxCount,br=be.renderRest,yr=be.renderRawRest,Sl=be.suffix,ro=be.component,kr=ro===void 0?"div":ro,nl=be.itemComponent,vo=be.onVisibleChange,Xr=ge(be,pl),Pl=tr==="full",zl=uu(),kl=ya(zl,null),Eo=ft(kl,2),$r=Eo[0],$l=Eo[1],xl=$r||0,ni=ya(zl,new Map),bo=ft(ni,2),Qo=bo[0],di=bo[1],ku=ya(zl,0),Mo=ft(ku,2),Jr=Mo[0],Fo=Mo[1],mi=ya(zl,0),Hi=ft(mi,2),$i=Hi[0],gi=Hi[1],Lo=ya(zl,0),_o=ft(Lo,2),Wi=_o[0],zs=_o[1],us=(0,Ze.useState)(null),Il=ft(us,2),Pr=Il[0],Hl=Il[1],yl=(0,Ze.useState)(null),el=ft(yl,2),Ll=el[0],ie=el[1],we=Ze.useMemo(function(){return Ll===null&&Pl?Number.MAX_SAFE_INTEGER:Ll||0},[Ll,$r]),Oe=(0,Ze.useState)(!1),Qe=ft(Oe,2),mt=Qe[0],It=Qe[1],$t="".concat(Et,"-item"),dn=Math.max(Jr,$i),ea=Fr===Ir,aa=Mn.length&&ea,wn=Fr===Cl,ja=aa||typeof Fr=="number"&&Mn.length>Fr,$a=(0,Ze.useMemo)(function(){var Au=Mn;return aa?$r===null&&Pl?Au=Mn:Au=Mn.slice(0,Math.min(Mn.length,xl/Uu)):typeof Fr=="number"&&(Au=Mn.slice(0,Fr)),Au},[Mn,Uu,$r,Fr,aa]),Ra=(0,Ze.useMemo)(function(){return aa?Mn.slice(we+1):Mn.slice($a.length)},[Mn,$a,aa,we]),wa=(0,Ze.useCallback)(function(Au,Vu){var Ju;return typeof nu=="function"?nu(Au):(Ju=nu&&(Au==null?void 0:Au[nu]))!==null&&Ju!==void 0?Ju:Vu},[nu]),eu=(0,Ze.useCallback)(na||function(Au){return Au},[na]);function za(Au,Vu,Ju){Ll===Au&&(Vu===void 0||Vu===Pr)||(ie(Au),Ju||(It(Auxl){za(qr-1,Au-Nl-Wi+$i);break}}Sl&&Ku(0)+Wi>xl&&Hl(null)}},[xl,Qo,$i,Wi,wa,$a]);var Fu=mt&&!!Ra.length,Ou={};Pr!==null&&aa&&(Ou={position:"absolute",left:Pr,top:0});var xr={prefixCls:$t,responsive:aa,component:nl,invalidate:wn},Nr=ka?function(Au,Vu){var Ju=wa(Au,Vu);return Ze.createElement(Ua.Provider,{key:Ju,value:_n(_n({},xr),{},{order:Vu,item:Au,itemKey:Ju,registerSize:Iu,display:Vu<=we})},ka(Au,Vu))}:function(Au,Vu){var Ju=wa(Au,Vu);return Ze.createElement(la,gu({},xr,{order:Vu,key:Ju,item:Au,renderItem:eu,itemKey:Ju,registerSize:Iu,display:Vu<=we}))},pu,pr={order:Fu?we:Number.MAX_SAFE_INTEGER,className:"".concat($t,"-rest"),registerSize:Lu,display:Fu};if(yr)yr&&(pu=Ze.createElement(Ua.Provider,{value:_n(_n({},xr),pr)},yr(Ra)));else{var il=br||ol;pu=Ze.createElement(la,gu({},xr,pr),typeof il=="function"?il(Ra):il)}var ur=Ze.createElement(kr,gu({className:jt()(!wn&&Et,Xu),style:gr,ref:Te},Xr),$a.map(Nr),ja?pu:null,Sl&&Ze.createElement(la,gu({},xr,{responsive:ea,responsiveDisabled:!aa,order:we,className:"".concat($t,"-suffix"),registerSize:ru,display:!0,style:Ou}),Sl));return ea&&(ur=Ze.createElement(De.Z,{onResize:_a,disabled:!aa},ur)),ur}var io=Ze.forwardRef(ti);io.displayName="Overflow",io.Item=Gu,io.RESPONSIVE=Ir,io.INVALIDATE=Cl;var Xo=io,Sn=Xo,Li=function(Te,at){var Et,rn=Te.prefixCls,Mn=Te.id,na=Te.inputElement,ka=Te.disabled,nu=Te.tabIndex,vu=Te.autoFocus,Uu=Te.autoComplete,tr=Te.editable,gr=Te.activeDescendantId,Xu=Te.value,Fr=Te.maxLength,br=Te.onKeyDown,yr=Te.onMouseDown,Sl=Te.onChange,ro=Te.onPaste,kr=Te.onCompositionStart,nl=Te.onCompositionEnd,vo=Te.onBlur,Xr=Te.open,Pl=Te.attrs,zl=na||Ze.createElement("input",null),kl=zl,Eo=kl.ref,$r=kl.props,$l=$r.onKeyDown,xl=$r.onChange,ni=$r.onMouseDown,bo=$r.onCompositionStart,Qo=$r.onCompositionEnd,di=$r.onBlur,ku=$r.style;return"maxLength"in zl.props,zl=Ze.cloneElement(zl,Ue(Ue(Ue({type:"search"},$r),{},{id:Mn,ref:St(at,Eo),disabled:ka,tabIndex:nu,autoComplete:Uu||"off",autoFocus:vu,className:jt()("".concat(rn,"-selection-search-input"),(Et=zl)===null||Et===void 0||(Et=Et.props)===null||Et===void 0?void 0:Et.className),role:"combobox","aria-expanded":Xr||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Mn,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Mn,"_list"),"aria-activedescendant":Xr?gr:void 0},Pl),{},{value:tr?Xu:"",maxLength:Fr,readOnly:!tr,unselectable:tr?null:"on",style:Ue(Ue({},ku),{},{opacity:tr?null:0}),onKeyDown:function(Jr){br(Jr),$l&&$l(Jr)},onMouseDown:function(Jr){yr(Jr),ni&&ni(Jr)},onChange:function(Jr){Sl(Jr),xl&&xl(Jr)},onCompositionStart:function(Jr){kr(Jr),bo&&bo(Jr)},onCompositionEnd:function(Jr){nl(Jr),Qo&&Qo(Jr)},onPaste:ro,onBlur:function(Jr){vo(Jr),di&&di(Jr)}})),zl},ic=Ze.forwardRef(Li),lc=ic;function tc(be){return Array.isArray(be)?be:be!==void 0?[be]:[]}var nc=typeof window!="undefined"&&window.document&&window.document.documentElement,Jl=nc;function Vs(be){return be!=null}function ri(be){return!be&&be!==0}function Gs(be){return["string","number"].includes(Le(be))}function Wu(be){var Te=void 0;return be&&(Gs(be.title)?Te=be.title.toString():Gs(be.label)&&(Te=be.label.toString())),Te}function Qi(be,Te){Jl?Ze.useLayoutEffect(be,Te):Ze.useEffect(be,Te)}function pc(be){var Te;return(Te=be.key)!==null&&Te!==void 0?Te:be.value}var vs=function(Te){Te.preventDefault(),Te.stopPropagation()},fs=function(Te){var at=Te.id,Et=Te.prefixCls,rn=Te.values,Mn=Te.open,na=Te.searchValue,ka=Te.autoClearSearchValue,nu=Te.inputRef,vu=Te.placeholder,Uu=Te.disabled,tr=Te.mode,gr=Te.showSearch,Xu=Te.autoFocus,Fr=Te.autoComplete,br=Te.activeDescendantId,yr=Te.tabIndex,Sl=Te.removeIcon,ro=Te.maxTagCount,kr=Te.maxTagTextLength,nl=Te.maxTagPlaceholder,vo=nl===void 0?function(yl){return"+ ".concat(yl.length," ...")}:nl,Xr=Te.tagRender,Pl=Te.onToggleOpen,zl=Te.onRemove,kl=Te.onInputChange,Eo=Te.onInputPaste,$r=Te.onInputKeyDown,$l=Te.onInputMouseDown,xl=Te.onInputCompositionStart,ni=Te.onInputCompositionEnd,bo=Te.onInputBlur,Qo=Ze.useRef(null),di=(0,Ze.useState)(0),ku=Bt(di,2),Mo=ku[0],Jr=ku[1],Fo=(0,Ze.useState)(!1),mi=Bt(Fo,2),Hi=mi[0],$i=mi[1],gi="".concat(Et,"-selection"),Lo=Mn||tr==="multiple"&&ka===!1||tr==="tags"?na:"",_o=tr==="tags"||tr==="multiple"&&ka===!1||gr&&(Mn||Hi);Qi(function(){Jr(Qo.current.scrollWidth)},[Lo]);var Wi=function(el,Ll,ie,we,Oe){return Ze.createElement("span",{title:Wu(el),className:jt()("".concat(gi,"-item"),We({},"".concat(gi,"-item-disabled"),ie))},Ze.createElement("span",{className:"".concat(gi,"-item-content")},Ll),we&&Ze.createElement(Ca,{className:"".concat(gi,"-item-remove"),onMouseDown:vs,onClick:Oe,customizeIcon:Sl},"\xD7"))},zs=function(el,Ll,ie,we,Oe,Qe){var mt=function($t){vs($t),Pl(!Mn)};return Ze.createElement("span",{onMouseDown:mt},Xr({label:Ll,value:el,disabled:ie,closable:we,onClose:Oe,isMaxTag:!!Qe}))},us=function(el){var Ll=el.disabled,ie=el.label,we=el.value,Oe=!Uu&&!Ll,Qe=ie;if(typeof kr=="number"&&(typeof ie=="string"||typeof ie=="number")){var mt=String(Qe);mt.length>kr&&(Qe="".concat(mt.slice(0,kr),"..."))}var It=function(dn){dn&&dn.stopPropagation(),zl(el)};return typeof Xr=="function"?zs(we,Qe,Ll,Oe,It):Wi(el,Qe,Ll,Oe,It)},Il=function(el){if(!rn.length)return null;var Ll=typeof vo=="function"?vo(el):vo;return typeof Xr=="function"?zs(void 0,Ll,!1,!1,void 0,!0):Wi({title:Ll},Ll,!1)},Pr=Ze.createElement("div",{className:"".concat(gi,"-search"),style:{width:Mo},onFocus:function(){$i(!0)},onBlur:function(){$i(!1)}},Ze.createElement(lc,{ref:nu,open:Mn,prefixCls:Et,id:at,inputElement:null,disabled:Uu,autoFocus:Xu,autoComplete:Fr,editable:_o,activeDescendantId:br,value:Lo,onKeyDown:$r,onMouseDown:$l,onChange:kl,onPaste:Eo,onCompositionStart:xl,onCompositionEnd:ni,onBlur:bo,tabIndex:yr,attrs:Qa(Te,!0)}),Ze.createElement("span",{ref:Qo,className:"".concat(gi,"-search-mirror"),"aria-hidden":!0},Lo,"\xA0")),Hl=Ze.createElement(Sn,{prefixCls:"".concat(gi,"-overflow"),data:rn,renderItem:us,renderRest:Il,suffix:Pr,itemKey:pc,maxCount:ro});return Ze.createElement("span",{className:"".concat(gi,"-wrap")},Hl,!rn.length&&!Lo&&Ze.createElement("span",{className:"".concat(gi,"-placeholder")},vu))},ps=fs,so=function(Te){var at=Te.inputElement,Et=Te.prefixCls,rn=Te.id,Mn=Te.inputRef,na=Te.disabled,ka=Te.autoFocus,nu=Te.autoComplete,vu=Te.activeDescendantId,Uu=Te.mode,tr=Te.open,gr=Te.values,Xu=Te.placeholder,Fr=Te.tabIndex,br=Te.showSearch,yr=Te.searchValue,Sl=Te.activeValue,ro=Te.maxLength,kr=Te.onInputKeyDown,nl=Te.onInputMouseDown,vo=Te.onInputChange,Xr=Te.onInputPaste,Pl=Te.onInputCompositionStart,zl=Te.onInputCompositionEnd,kl=Te.onInputBlur,Eo=Te.title,$r=Ze.useState(!1),$l=Bt($r,2),xl=$l[0],ni=$l[1],bo=Uu==="combobox",Qo=bo||br,di=gr[0],ku=yr||"";bo&&Sl&&!xl&&(ku=Sl),Ze.useEffect(function(){bo&&ni(!1)},[bo,Sl]);var Mo=Uu!=="combobox"&&!tr&&!br?!1:!!ku,Jr=Eo===void 0?Wu(di):Eo,Fo=Ze.useMemo(function(){return di?null:Ze.createElement("span",{className:"".concat(Et,"-selection-placeholder"),style:Mo?{visibility:"hidden"}:void 0},Xu)},[di,Mo,Xu,Et]);return Ze.createElement("span",{className:"".concat(Et,"-selection-wrap")},Ze.createElement("span",{className:"".concat(Et,"-selection-search")},Ze.createElement(lc,{ref:Mn,prefixCls:Et,id:rn,open:tr,inputElement:at,disabled:na,autoFocus:ka,autoComplete:nu,editable:Qo,activeDescendantId:vu,value:ku,onKeyDown:kr,onMouseDown:nl,onChange:function(Hi){ni(!0),vo(Hi)},onPaste:Xr,onCompositionStart:Pl,onCompositionEnd:zl,onBlur:kl,tabIndex:Fr,attrs:Qa(Te,!0),maxLength:bo?ro:void 0})),!bo&&di?Ze.createElement("span",{className:"".concat(Et,"-selection-item"),title:Jr,style:Mo?{visibility:"hidden"}:void 0},di.label):null,Fo)},sc=so,Wo=function(Te,at){var Et=(0,Ze.useRef)(null),rn=(0,Ze.useRef)(!1),Mn=Te.prefixCls,na=Te.open,ka=Te.mode,nu=Te.showSearch,vu=Te.tokenWithEnter,Uu=Te.disabled,tr=Te.prefix,gr=Te.autoClearSearchValue,Xu=Te.onSearch,Fr=Te.onSearchSubmit,br=Te.onToggleOpen,yr=Te.onInputKeyDown,Sl=Te.onInputBlur,ro=Te.domRef;Ze.useImperativeHandle(at,function(){return{focus:function(Jr){Et.current.focus(Jr)},blur:function(){Et.current.blur()}}});var kr=or(0),nl=Bt(kr,2),vo=nl[0],Xr=nl[1],Pl=function(Jr){var Fo=Jr.which,mi=Et.current instanceof HTMLTextAreaElement;!mi&&na&&(Fo===xn.UP||Fo===xn.DOWN)&&Jr.preventDefault(),yr&&yr(Jr),Fo===xn.ENTER&&ka==="tags"&&!rn.current&&!na&&(Fr==null||Fr(Jr.target.value)),!(mi&&!na&&~[xn.UP,xn.DOWN,xn.LEFT,xn.RIGHT].indexOf(Fo))&&vl(Fo)&&br(!0)},zl=function(){Xr(!0)},kl=(0,Ze.useRef)(null),Eo=function(Jr){Xu(Jr,!0,rn.current)!==!1&&br(!0)},$r=function(){rn.current=!0},$l=function(Jr){rn.current=!1,ka!=="combobox"&&Eo(Jr.target.value)},xl=function(Jr){var Fo=Jr.target.value;if(vu&&kl.current&&/[\r\n]/.test(kl.current)){var mi=kl.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Fo=Fo.replace(mi,kl.current)}kl.current=null,Eo(Fo)},ni=function(Jr){var Fo=Jr.clipboardData,mi=Fo==null?void 0:Fo.getData("text");kl.current=mi||""},bo=function(Jr){var Fo=Jr.target;if(Fo!==Et.current){var mi=document.body.style.msTouchAction!==void 0;mi?setTimeout(function(){Et.current.focus()}):Et.current.focus()}},Qo=function(Jr){var Fo=vo();Jr.target!==Et.current&&!Fo&&!(ka==="combobox"&&Uu)&&Jr.preventDefault(),(ka!=="combobox"&&(!nu||!Fo)||!na)&&(na&&gr!==!1&&Xu("",!0,!1),br())},di={inputRef:Et,onInputKeyDown:Pl,onInputMouseDown:zl,onInputChange:xl,onInputPaste:ni,onInputCompositionStart:$r,onInputCompositionEnd:$l,onInputBlur:Sl},ku=ka==="multiple"||ka==="tags"?Ze.createElement(ps,te({},Te,di)):Ze.createElement(sc,te({},Te,di));return Ze.createElement("div",{ref:ro,className:"".concat(Mn,"-selector"),onClick:bo,onMouseDown:Qo},tr&&Ze.createElement("div",{className:"".concat(Mn,"-prefix")},tr),ku)},bi=Ze.forwardRef(Wo),cc=bi,ts=z(98280),Hc=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Nc=function(Te){var at=Te===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:at,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:at,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:at,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:at,adjustY:1},htmlRegion:"scroll"}}},Pc=function(Te,at){var Et=Te.prefixCls,rn=Te.disabled,Mn=Te.visible,na=Te.children,ka=Te.popupElement,nu=Te.animation,vu=Te.transitionName,Uu=Te.dropdownStyle,tr=Te.dropdownClassName,gr=Te.direction,Xu=gr===void 0?"ltr":gr,Fr=Te.placement,br=Te.builtinPlacements,yr=Te.dropdownMatchSelectWidth,Sl=Te.dropdownRender,ro=Te.dropdownAlign,kr=Te.getPopupContainer,nl=Te.empty,vo=Te.getTriggerDOMNode,Xr=Te.onPopupVisibleChange,Pl=Te.onPopupMouseEnter,zl=nt(Te,Hc),kl="".concat(Et,"-dropdown"),Eo=ka;Sl&&(Eo=Sl(ka));var $r=Ze.useMemo(function(){return br||Nc(yr)},[br,yr]),$l=nu?"".concat(kl,"-").concat(nu):vu,xl=typeof yr=="number",ni=Ze.useMemo(function(){return xl?null:yr===!1?"minWidth":"width"},[yr,xl]),bo=Uu;xl&&(bo=Ue(Ue({},bo),{},{width:yr}));var Qo=Ze.useRef(null);return Ze.useImperativeHandle(at,function(){return{getPopupElement:function(){var ku;return(ku=Qo.current)===null||ku===void 0?void 0:ku.popupElement}}}),Ze.createElement(ts.Z,te({},zl,{showAction:Xr?["click"]:[],hideAction:Xr?["click"]:[],popupPlacement:Fr||(Xu==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:$r,prefixCls:kl,popupTransitionName:$l,popup:Ze.createElement("div",{onMouseEnter:Pl},Eo),ref:Qo,stretch:ni,popupAlign:ro,popupVisible:Mn,getPopupContainer:kr,popupClassName:jt()(tr,We({},"".concat(kl,"-empty"),nl)),popupStyle:bo,getTriggerDOMNode:vo,onPopupVisibleChange:Xr}),na)},Rr=Ze.forwardRef(Pc),vr=Rr;function fl(be){return Ye(be)||ye(be)||fe(be)||lt()}function Wr(be,Te){var at=be.key,Et;return"value"in be&&(Et=be.value),at!=null?at:Et!==void 0?Et:"rc-index-key-".concat(Te)}function jo(be){return typeof be!="undefined"&&!Number.isNaN(be)}function Ti(be,Te){var at=be||{},Et=at.label,rn=at.value,Mn=at.options,na=at.groupLabel,ka=Et||(Te?"children":"label");return{label:ka,value:rn||"value",options:Mn||"options",groupLabel:na||ka}}function yn(be){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},at=Te.fieldNames,Et=Te.childrenAsData,rn=[],Mn=Ti(at,!1),na=Mn.label,ka=Mn.value,nu=Mn.options,vu=Mn.groupLabel;function Uu(tr,gr){Array.isArray(tr)&&tr.forEach(function(Xu){if(gr||!(nu in Xu)){var Fr=Xu[ka];rn.push({key:Wr(Xu,rn.length),groupOption:gr,data:Xu,label:Xu[na],value:Fr})}else{var br=Xu[vu];br===void 0&&Et&&(br=Xu.label),rn.push({key:Wr(Xu,rn.length),group:!0,data:Xu,label:br}),Uu(Xu[nu],!0)}})}return Uu(be,!1),rn}function fa(be){var Te=Ue({},be);return"props"in Te||Object.defineProperty(Te,"props",{get:function(){return Qt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Te}}),Te}var va=function(Te,at,Et){if(!at||!at.length)return null;var rn=!1,Mn=function ka(nu,vu){var Uu=fl(vu),tr=Uu[0],gr=Uu.slice(1);if(!tr)return[nu];var Xu=nu.split(tr);return rn=rn||Xu.length>1,Xu.reduce(function(Fr,br){return[].concat(Ne(Fr),Ne(ka(br,gr)))},[]).filter(Boolean)},na=Mn(Te,at);return rn?typeof Et!="undefined"?na.slice(0,Et):na:null},Vr=Ze.createContext(null),Bl=Vr;function Gr(be){var Te=be.visible,at=be.values;if(!Te)return null;var Et=50;return Ze.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(at.slice(0,Et).map(function(rn){var Mn=rn.label,na=rn.value;return["number","string"].includes(Le(Mn))?Mn:na}).join(", ")),at.length>Et?", ...":null)}var El=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Dl=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Qr=function(Te){return Te==="tags"||Te==="multiple"},Kr=Ze.forwardRef(function(be,Te){var at,Et=be.id,rn=be.prefixCls,Mn=be.className,na=be.showSearch,ka=be.tagRender,nu=be.direction,vu=be.omitDomProps,Uu=be.displayValues,tr=be.onDisplayValuesChange,gr=be.emptyOptions,Xu=be.notFoundContent,Fr=Xu===void 0?"Not Found":Xu,br=be.onClear,yr=be.mode,Sl=be.disabled,ro=be.loading,kr=be.getInputElement,nl=be.getRawInputElement,vo=be.open,Xr=be.defaultOpen,Pl=be.onDropdownVisibleChange,zl=be.activeValue,kl=be.onActiveValueChange,Eo=be.activeDescendantId,$r=be.searchValue,$l=be.autoClearSearchValue,xl=be.onSearch,ni=be.onSearchSplit,bo=be.tokenSeparators,Qo=be.allowClear,di=be.prefix,ku=be.suffixIcon,Mo=be.clearIcon,Jr=be.OptionList,Fo=be.animation,mi=be.transitionName,Hi=be.dropdownStyle,$i=be.dropdownClassName,gi=be.dropdownMatchSelectWidth,Lo=be.dropdownRender,_o=be.dropdownAlign,Wi=be.placement,zs=be.builtinPlacements,us=be.getPopupContainer,Il=be.showAction,Pr=Il===void 0?[]:Il,Hl=be.onFocus,yl=be.onBlur,el=be.onKeyUp,Ll=be.onKeyDown,ie=be.onMouseDown,we=nt(be,El),Oe=Qr(yr),Qe=(na!==void 0?na:Oe)||yr==="combobox",mt=Ue({},we);Dl.forEach(function(ml){delete mt[ml]}),vu==null||vu.forEach(function(ml){delete mt[ml]});var It=Ze.useState(!1),$t=Bt(It,2),dn=$t[0],ea=$t[1];Ze.useEffect(function(){ea(sn())},[]);var aa=Ze.useRef(null),wn=Ze.useRef(null),ja=Ze.useRef(null),$a=Ze.useRef(null),Ra=Ze.useRef(null),wa=Ze.useRef(!1),eu=cu(),za=Bt(eu,3),_a=za[0],Iu=za[1],Lu=za[2];Ze.useImperativeHandle(Te,function(){var ml,Qu;return{focus:(ml=$a.current)===null||ml===void 0?void 0:ml.focus,blur:(Qu=$a.current)===null||Qu===void 0?void 0:Qu.blur,scrollTo:function(pi){var Uo;return(Uo=Ra.current)===null||Uo===void 0?void 0:Uo.scrollTo(pi)},nativeElement:aa.current||wn.current}});var ru=Ze.useMemo(function(){var ml;if(yr!=="combobox")return $r;var Qu=(ml=Uu[0])===null||ml===void 0?void 0:ml.value;return typeof Qu=="string"||typeof Qu=="number"?String(Qu):""},[$r,yr,Uu]),Ku=yr==="combobox"&&typeof kr=="function"&&kr()||null,Fu=typeof nl=="function"&&nl(),Ou=Ke(wn,Fu==null||(at=Fu.props)===null||at===void 0?void 0:at.ref),xr=Ze.useState(!1),Nr=Bt(xr,2),pu=Nr[0],pr=Nr[1];ot(function(){pr(!0)},[]);var il=st(!1,{defaultValue:Xr,value:vo}),ur=Bt(il,2),Au=ur[0],Vu=ur[1],Ju=pu?Au:!1,qr=!Fr&&gr;(Sl||qr&&Ju&&yr==="combobox")&&(Ju=!1);var Nl=qr?!1:Ju,qu=Ze.useCallback(function(ml){var Qu=ml!==void 0?ml:!Ju;Sl||(Vu(Qu),Ju!==Qu&&(Pl==null||Pl(Qu)))},[Sl,Ju,Vu,Pl]),fr=Ze.useMemo(function(){return(bo||[]).some(function(ml){return[` `,`\r -`].includes(ml)})},[bo]),zu=Ze.useContext(Bl)||{},fu=zu.maxCount,rr=zu.rawValues,lr=function(Qu,Zr,pi){if(!(Oe&&jo(fu)&&(rr==null?void 0:rr.size)>=fu)){var Uo=!0,ai=Qu;kl==null||kl(null);var ds=va(Qu,bo,jo(fu)?fu-rr.size:void 0),ms=pi?null:ds;return yr!=="combobox"&&ms&&(ai="",ni==null||ni(ms),qu(!1),Uo=!1),xl&&ru!==ai&&xl(ai,{source:Zr?"typing":"effect"}),Uo}},eo=function(Qu){!Qu||!Qu.trim()||xl(Qu,{source:"submit"})};Ze.useEffect(function(){!Ju&&!Oe&&yr!=="combobox"&&lr("",!1,!1)},[Ju]),Ze.useEffect(function(){Au&&Sl&&Vu(!1),Sl&&!wa.current&&Iu(!1)},[Sl]);var to=or(),ou=Bt(to,2),jl=ou[0],Vl=ou[1],wo=Ze.useRef(!1),Ro=function(Qu){var Zr=jl(),pi=Qu.key,Uo=pi==="Enter";if(Uo&&(yr!=="combobox"&&Qu.preventDefault(),Ju||qu(!0)),Vl(!!ru),pi==="Backspace"&&!Zr&&Oe&&!ru&&Uu.length){for(var ai=Ne(Uu),ds=null,ms=ai.length-1;ms>=0;ms-=1){var Zs=ai[ms];if(!Zs.disabled){ai.splice(ms,1),ds=Zs;break}}ds&&tr(ai,{type:"remove",values:[ds]})}for(var Hs=arguments.length,_s=new Array(Hs>1?Hs-1:0),ju=1;ju1?Zr-1:0),Uo=1;Uo1?ds-1:0),Zs=1;Zs=Fr},[ka,Fr,nl==null?void 0:nl.size]),bo=function(Pr){Pr.preventDefault()},Qo=function(Pr){var Hl;(Hl=xl.current)===null||Hl===void 0||Hl.scrollTo(typeof Pr=="number"?{index:Pr}:Pr)},di=Ze.useCallback(function(Il){return nu==="combobox"?!1:nl.has(Il)},[nu,Ne(nl).toString(),nl.size]),ku=function(Pr){for(var Hl=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,yl=$l.length,el=0;el1&&arguments[1]!==void 0?arguments[1]:!1;mi(Pr);var yl={source:Hl?"keyboard":"mouse"},el=$l[Pr];if(!el){yr(null,-1,yl);return}yr(el.value,Pr,yl)};(0,Ze.useEffect)(function(){Hi(Sl!==!1?ku(0):-1)},[$l.length,vu]);var $i=Ze.useCallback(function(Il){return nu==="combobox"?String(Il).toLowerCase()===vu.toLowerCase():nl.has(Il)},[nu,vu,Ne(nl).toString(),nl.size]);(0,Ze.useEffect)(function(){var Il=setTimeout(function(){if(!ka&&na&&nl.size===1){var Hl=Array.from(nl)[0],yl=$l.findIndex(function(el){var Ll=el.data;return Ll.value===Hl});yl!==-1&&(Hi(yl),Qo(yl))}});if(na){var Pr;(Pr=xl.current)===null||Pr===void 0||Pr.scrollTo(void 0)}return function(){return clearTimeout(Il)}},[na,vu]);var gi=function(Pr){Pr!==void 0&&ro(Pr,{selected:!nl.has(Pr)}),ka||Uu(!1)};if(Ze.useImperativeHandle(at,function(){return{onKeyDown:function(Pr){var Hl=Pr.which,yl=Pr.ctrlKey;switch(Hl){case xn.N:case xn.P:case xn.UP:case xn.DOWN:{var el=0;if(Hl===xn.UP?el=-1:Hl===xn.DOWN?el=1:cl()&&yl&&(Hl===xn.N?el=1:Hl===xn.P&&(el=-1)),el!==0){var Ll=ku(Fo+el,el);Qo(Ll),Hi(Ll,!0)}break}case xn.TAB:case xn.ENTER:{var ie,we=$l[Fo];we&&!(we!=null&&(ie=we.data)!==null&&ie!==void 0&&ie.disabled)&&!ni?gi(we.value):gi(void 0),na&&Pr.preventDefault();break}case xn.ESC:Uu(!1),na&&Pr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Pr){Qo(Pr)}}}),$l.length===0)return Ze.createElement("div",{role:"listbox",id:"".concat(Mn,"_list"),className:"".concat($r,"-empty"),onMouseDown:bo},tr);var Lo=Object.keys(vo).map(function(Il){return vo[Il]}),_o=function(Pr){return Pr.label};function Wi(Il,Pr){var Hl=Il.group;return{role:Hl?"presentation":"option",id:"".concat(Mn,"_list_").concat(Pr)}}var zs=function(Pr){var Hl=$l[Pr];if(!Hl)return null;var yl=Hl.data||{},el=yl.value,Ll=Hl.group,ie=Qa(yl,!0),we=_o(Hl);return Hl?Ze.createElement("div",te({"aria-label":typeof we=="string"&&!Ll?we:null},ie,{key:Pr},Wi(Hl,Pr),{"aria-selected":$i(el)}),el):null},us={role:"listbox",id:"".concat(Mn,"_list")};return Ze.createElement(Ze.Fragment,null,Xr&&Ze.createElement("div",te({},us,{style:{height:0,width:0,overflow:"hidden"}}),zs(Fo-1),zs(Fo),zs(Fo+1)),Ze.createElement(ns.Z,{itemKey:"key",ref:xl,data:$l,height:zl,itemHeight:kl,fullHeight:!1,onMouseDown:bo,onScroll:gr,virtual:Xr,direction:Pl,innerProps:Xr?null:us},function(Il,Pr){var Hl=Il.group,yl=Il.groupOption,el=Il.data,Ll=Il.label,ie=Il.value,we=el.key;if(Hl){var Oe,Qe=(Oe=el.title)!==null&&Oe!==void 0?Oe:li(Ll)?Ll.toString():void 0;return Ze.createElement("div",{className:jt()($r,"".concat($r,"-group"),el.className),title:Qe},Ll!==void 0?Ll:we)}var mt=el.disabled,It=el.title,$t=el.children,dn=el.style,ta=el.className,aa=nt(el,is),wn=bu(aa,Lo),ja=di(ie),$a=mt||!ja&&ni,Ra="".concat($r,"-option"),wa=jt()($r,Ra,ta,We(We(We(We({},"".concat(Ra,"-grouped"),yl),"".concat(Ra,"-active"),Fo===Pr&&!$a),"".concat(Ra,"-disabled"),$a),"".concat(Ra,"-selected"),ja)),eu=_o(Il),za=!kr||typeof kr=="function"||ja,_a=typeof eu=="number"?eu:eu||ie,Iu=li(_a)?_a.toString():void 0;return It!==void 0&&(Iu=It),Ze.createElement("div",te({},Qa(wn),Xr?{}:Wi(Il,Pr),{"aria-selected":$i(ie),className:wa,title:Iu,onMouseMove:function(){Fo===Pr||$a||Hi(Pr)},onClick:function(){$a||gi(ie)},style:dn}),Ze.createElement("div",{className:"".concat(Ra,"-content")},typeof Eo=="function"?Eo(Il,{index:Pr}):_a),Ze.isValidElement(kr)||ja,za&&Ze.createElement(Ca,{className:"".concat($r,"-option-state"),customizeIcon:kr,customizeIconProps:{value:ie,disabled:$a,isSelected:ja}},ja?"\u2713":null))}))},as=Ze.forwardRef(_i),ho=as,oi=function(be,Te){var at=Ze.useRef({values:new Map,options:new Map}),Et=Ze.useMemo(function(){var Mn=at.current,na=Mn.values,ka=Mn.options,nu=be.map(function(tr){if(tr.label===void 0){var gr;return Ue(Ue({},tr),{},{label:(gr=na.get(tr.value))===null||gr===void 0?void 0:gr.label})}return tr}),vu=new Map,Uu=new Map;return nu.forEach(function(tr){vu.set(tr.value,tr),Uu.set(tr.value,Te.get(tr.value)||ka.get(tr.value))}),at.current.values=vu,at.current.options=Uu,nu},[be,Te]),rn=Ze.useCallback(function(Mn){return Te.get(Mn)||at.current.options.get(Mn)},[Te]);return[Et,rn]};function Zi(be,Te){return tc(be).join("").toUpperCase().includes(Te)}var Ss=function(be,Te,at,Et,rn){return Ze.useMemo(function(){if(!at||Et===!1)return be;var Mn=Te.options,na=Te.label,ka=Te.value,nu=[],vu=typeof Et=="function",Uu=at.toUpperCase(),tr=vu?Et:function(Xu,Fr){return rn?Zi(Fr[rn],Uu):Fr[Mn]?Zi(Fr[na!=="children"?na:"label"],Uu):Zi(Fr[ka],Uu)},gr=vu?function(Xu){return fa(Xu)}:function(Xu){return Xu};return be.forEach(function(Xu){if(Xu[Mn]){var Fr=tr(at,gr(Xu));if(Fr)nu.push(Xu);else{var br=Xu[Mn].filter(function(yr){return tr(at,gr(yr))});br.length&&nu.push(Ue(Ue({},Xu),{},We({},Mn,br)))}return}tr(at,gr(Xu))&&nu.push(Xu)}),nu},[be,Et,rn,at,Te])},ss=0,Os=ht();function Es(){var be;return Os?(be=ss,ss+=1):be="TEST_OR_SSR",be}function ws(be){var Te=Ze.useState(),at=Bt(Te,2),Et=at[0],rn=at[1];return Ze.useEffect(function(){rn("rc_select_".concat(Es()))},[]),be||Et}function no(be){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},at=[];return Ze.Children.forEach(be,function(Et){Et==null&&!Te.keepEmpty||(Array.isArray(Et)?at=at.concat(no(Et)):(0,vt.isFragment)(Et)&&Et.props?at=at.concat(no(Et.props.children,Te)):at.push(Et))}),at}var Dc=["children","value"],Oc=["children"];function Ts(be){var Te=be,at=Te.key,Et=Te.props,rn=Et.children,Mn=Et.value,na=nt(Et,Dc);return Ue({key:at,value:Mn!==void 0?Mn:at,children:rn},na)}function ks(be){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return no(be).map(function(at,Et){if(!Ze.isValidElement(at)||!at.type)return null;var rn=at,Mn=rn.type.isSelectOptGroup,na=rn.key,ka=rn.props,nu=ka.children,vu=nt(ka,Oc);return Te||!Mn?Ts(at):Ue(Ue({key:"__RC_SELECT_GRP__".concat(na===null?Et:na,"__"),label:na},vu),{},{options:ks(nu)})}).filter(function(at){return at})}var Fi=function(Te,at,Et,rn,Mn){return Ze.useMemo(function(){var na=Te,ka=!Te;ka&&(na=ks(at));var nu=new Map,vu=new Map,Uu=function(Xu,Fr,br){br&&typeof br=="string"&&Xu.set(Fr[br],Fr)},tr=function gr(Xu){for(var Fr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,br=0;br1&&arguments[1]!==void 0?arguments[1]:!1,na=0;na0?qu(fu.options):fu.options}):fu})},za=Ze.useMemo(function(){return ro?eu(wa):wa},[wa,ro,us]),_a=Ze.useMemo(function(){return yn(za,{fieldNames:_o,childrenAsData:gi})},[za,_o,gi]),Iu=function(fr){var zu=Ll(fr);if(Qe(zu),Jr&&(zu.length!==dn.length||zu.some(function(lr,eo){var to;return((to=dn[eo])===null||to===void 0?void 0:to.value)!==(lr==null?void 0:lr.value)}))){var fu=Mo?zu:zu.map(function(lr){return lr.value}),rr=zu.map(function(lr){return fa(ta(lr.value))});Jr($i?fu:fu[0],$i?rr:rr[0])}},Lu=Ze.useState(null),ru=Bt(Lu,2),Ku=ru[0],Fu=ru[1],Ou=Ze.useState(0),xr=Bt(Ou,2),Nr=xr[0],pu=xr[1],pr=zl!==void 0?zl:Et!=="combobox",il=Ze.useCallback(function(qu,fr){var zu=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},fu=zu.source,rr=fu===void 0?"keyboard":fu;pu(fr),na&&Et==="combobox"&&qu!==null&&rr==="keyboard"&&Fu(String(qu))},[na,Et]),ur=function(fr,zu,fu){var rr=function(){var ii,po=ta(fr);return[Mo?{label:po==null?void 0:po[_o.label],value:fr,key:(ii=po==null?void 0:po.key)!==null&&ii!==void 0?ii:fr}:fr,fa(po)]};if(zu&&Xu){var lr=rr(),eo=Bt(lr,2),to=eo[0],ou=eo[1];Xu(to,ou)}else if(!zu&&Fr&&fu!=="clear"){var jl=rr(),Vl=Bt(jl,2),wo=Vl[0],Ro=Vl[1];Fr(wo,Ro)}},Au=ll(function(qu,fr){var zu,fu=$i?fr.selected:!0;fu?zu=$i?[].concat(Ne(dn),[qu]):[qu]:zu=dn.filter(function(rr){return rr.value!==qu}),Iu(zu),ur(qu,fu),Et==="combobox"?Fu(""):(!Qr||gr)&&(Il(""),Fu(""))}),Vu=function(fr,zu){Iu(fr);var fu=zu.type,rr=zu.values;(fu==="remove"||fu==="clear")&&rr.forEach(function(lr){ur(lr.value,!1,fu)})},Ju=function(fr,zu){if(Il(fr),Fu(null),zu.source==="submit"){var fu=(fr||"").trim();if(fu){var rr=Array.from(new Set([].concat(Ne(wn),[fu])));Iu(rr),ur(fu,!0),Il("")}return}zu.source!=="blur"&&(Et==="combobox"&&Iu(fr),Uu==null||Uu(fr))},qr=function(fr){var zu=fr;Et!=="tags"&&(zu=fr.map(function(rr){var lr=yl.get(rr);return lr==null?void 0:lr.value}).filter(function(rr){return rr!==void 0}));var fu=Array.from(new Set([].concat(Ne(wn),Ne(zu))));Iu(fu),fu.forEach(function(rr){ur(rr,!0)})},Nl=Ze.useMemo(function(){var qu=Eo!==!1&&yr!==!1;return Ue(Ue({},Pr),{},{flattenOptions:_a,onActiveValue:il,defaultActiveFirstOption:pr,onSelect:Au,menuItemSelectedIcon:kl,rawValues:wn,fieldNames:_o,virtual:qu,direction:$r,listHeight:xl,listItemHeight:bo,childrenAsData:gi,maxCount:Fo,optionRender:Xr})},[Fo,Pr,_a,il,pr,Au,kl,wn,_o,Eo,yr,$r,xl,bo,gi,Xr]);return Ze.createElement(Bl.Provider,{value:Nl},Ze.createElement(Do,te({},mi,{id:Hi,prefixCls:Mn,ref:Te,omitDomProps:Ql,mode:Et,displayValues:aa,onDisplayValuesChange:Vu,direction:$r,searchValue:us,onSearch:Ju,autoClearSearchValue:gr,onSearchSplit:qr,dropdownMatchSelectWidth:yr,OptionList:ho,emptyOptions:!_a.length,activeValue:Ku,activeDescendantId:"".concat(Hi,"_list_").concat(Nr)})))}),Ui=ao;Ui.Option=hi,Ui.OptGroup=Br;var xs=null,Ps=null;function vi(be){var Te=Ze.useRef();Te.current=be;var at=Ze.useCallback(function(){for(var Et,rn=arguments.length,Mn=new Array(rn),na=0;nabe.length)&&(Te=be.length);for(var at=0,Et=new Array(Te);at2&&arguments[2]!==void 0?arguments[2]:!1;yr.forEach(function(kr){if(!(!Xu&&gr!==!1&&gr>0&&Fr.length>=gr)){var nl=[].concat(me(Sl),[kr]),vo=kr[Et.children],Xr=ro||kr.disabled;if((!vo||vo.length===0||na)&&nu(Te,nl,{label:Et.label})){var Pl;Fr.push(pe(pe({},kr),{},(Pl={disabled:Xr},Fe(Pl,Et.label,Uu(Te,nl,rn,Et)),Fe(Pl,uc,nl),Fe(Pl,Et.children,void 0),Pl)))}vo&&br(kr[Et.children],nl,Xr)}})}return br(at,[]),Xu&&Fr.sort(function(yr,Sl){return Xu(yr[uc],Sl[uc],Te,Et)}),gr!==!1&&gr>0?Fr.slice(0,gr):Fr},[Te,at,Et,rn,Uu,na,nu,Xu,gr])},wt=Gc,_t="__RC_CASCADER_SPLIT__",gn="SHOW_PARENT",Yn="SHOW_CHILD";function Ur(be){return be.join(_t)}function Or(be){return be.map(Ur)}function ql(be){return be.split(_t)}function zr(be){var Te=be||{},at=Te.label,Et=Te.value,rn=Te.children,Mn=Et||"value";return{label:at||"label",value:Mn,key:Mn,children:rn||"children"}}function su(be,Te){var at,Et;return(at=be.isLeaf)!==null&&at!==void 0?at:!((Et=be[Te.children])!==null&&Et!==void 0&&Et.length)}function yu(be){var Te=be.parentElement;if(Te){var at=be.offsetTop-Te.offsetTop;at-Te.scrollTop<0?Te.scrollTo({top:at}):at+be.offsetHeight-Te.scrollTop>Te.offsetHeight&&Te.scrollTo({top:at+be.offsetHeight-Te.offsetHeight})}}function xu(be,Te){return be.map(function(at){var Et;return(Et=at[uc])===null||Et===void 0?void 0:Et.map(function(rn){return rn[Te.value]})})}function Al(be){return Array.isArray(be)&&Array.isArray(be[0])}function Yl(be){return be?Al(be)?be:(be.length===0?[]:[be]).map(function(Te){return Array.isArray(Te)?Te:[Te]}):[]}function Ol(be,Te,at){var Et=new Set(be),rn=Te();return be.filter(function(Mn){var na=rn[Mn],ka=na?na.parent:null,nu=na?na.children:null;return na&&na.node.disabled?!0:at===Yn?!(nu&&nu.some(function(vu){return vu.key&&Et.has(vu.key)})):!(ka&&!ka.node.disabled&&Et.has(ka.key))})}function Mu(be,Te,at){for(var Et=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,rn=Te,Mn=[],na=function(){var vu,Uu,tr,gr=be[ka],Xu=(vu=rn)===null||vu===void 0?void 0:vu.findIndex(function(br){var yr=br[at.value];return Et?String(yr)===String(gr):yr===gr}),Fr=Xu!==-1?(Uu=rn)===null||Uu===void 0?void 0:Uu[Xu]:null;Mn.push({value:(tr=Fr==null?void 0:Fr[at.value])!==null&&tr!==void 0?tr:gr,index:Xu,option:Fr}),rn=Fr==null?void 0:Fr[at.children]},ka=0;ka=Xl.F1&&at<=Xl.F12)return!1;switch(at){case Xl.ALT:case Xl.CAPS_LOCK:case Xl.CONTEXT_MENU:case Xl.CTRL:case Xl.DOWN:case Xl.END:case Xl.ESC:case Xl.HOME:case Xl.INSERT:case Xl.LEFT:case Xl.MAC_FF_META:case Xl.META:case Xl.NUMLOCK:case Xl.NUM_CENTER:case Xl.PAGE_DOWN:case Xl.PAGE_UP:case Xl.PAUSE:case Xl.PRINT_SCREEN:case Xl.RIGHT:case Xl.SHIFT:case Xl.UP:case Xl.WIN_KEY:case Xl.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Te){if(Te>=Xl.ZERO&&Te<=Xl.NINE||Te>=Xl.NUM_ZERO&&Te<=Xl.NUM_MULTIPLY||Te>=Xl.A&&Te<=Xl.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Te===0)return!0;switch(Te){case Xl.SPACE:case Xl.QUESTION_MARK:case Xl.NUM_PLUS:case Xl.NUM_MINUS:case Xl.NUM_PERIOD:case Xl.NUM_DIVISION:case Xl.SEMICOLON:case Xl.DASH:case Xl.EQUALS:case Xl.COMMA:case Xl.PERIOD:case Xl.SLASH:case Xl.APOSTROPHE:case Xl.SINGLE_QUOTE:case Xl.OPEN_SQUARE_BRACKET:case Xl.BACKSLASH:case Xl.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},hc=Xl,xc=function(be,Te,at,Et,rn,Mn,na){var ka=na.direction,nu=na.searchValue,vu=na.toggleOpen,Uu=na.open,tr=ka==="rtl",gr=Ze.useMemo(function(){for(var Xr=-1,Pl=Te,zl=[],kl=[],Eo=Et.length,$r=xu(Te,at),$l=function(di){var ku=Pl.findIndex(function(Mo,Jr){return($r[Jr]?Ur($r[Jr]):Mo[at.value])===Et[di]});if(ku===-1)return 1;Xr=ku,zl.push(Xr),kl.push(Et[di]),Pl=Pl[Xr][at.children]},xl=0;xl1){var Pl=Fr.slice(0,-1);ro(Pl)}else vu(!1)},vo=function(){var Pl,zl=((Pl=yr[br])===null||Pl===void 0?void 0:Pl[at.children])||[],kl=zl.find(function($r){return!$r.disabled});if(kl){var Eo=[].concat(me(Fr),[kl[at.value]]);ro(Eo)}};Ze.useImperativeHandle(be,function(){return{onKeyDown:function(Pl){var zl=Pl.which;switch(zl){case hc.UP:case hc.DOWN:{var kl=0;zl===hc.UP?kl=-1:zl===hc.DOWN&&(kl=1),kl!==0&&kr(kl);break}case hc.LEFT:{if(nu)break;tr?vo():nl();break}case hc.RIGHT:{if(nu)break;tr?nl():vo();break}case hc.BACKSPACE:{nu||nl();break}case hc.ENTER:{if(Fr.length){var Eo=yr[br],$r=(Eo==null?void 0:Eo[uc])||[];$r.length?Mn($r.map(function($l){return $l[at.value]}),$r[$r.length-1]):Mn(Fr,yr[br])}break}case hc.ESC:vu(!1),Uu&&Pl.stopPropagation()}},onKeyUp:function(){}}})},Yc=Ze.forwardRef(function(be,Te){var at,Et,rn,Mn=be.prefixCls,na=be.multiple,ka=be.searchValue,nu=be.toggleOpen,vu=be.notFoundContent,Uu=be.direction,tr=be.open,gr=be.disabled,Xu=Ze.useRef(null),Fr=Uu==="rtl",br=Ze.useContext(Ms),yr=br.options,Sl=br.values,ro=br.halfValues,kr=br.fieldNames,nl=br.changeOnSelect,vo=br.onSelect,Xr=br.searchOptions,Pl=br.dropdownPrefixCls,zl=br.loadData,kl=br.expandTrigger,Eo=Pl||Mn,$r=Ze.useState([]),$l=x($r,2),xl=$l[0],ni=$l[1],bo=function(yl){if(!(!zl||ka)){var el=Mu(yl,yr,kr),Ll=el.map(function(Oe){var Qe=Oe.option;return Qe}),ie=Ll[Ll.length-1];if(ie&&!su(ie,kr)){var we=Ur(yl);ni(function(Oe){return[].concat(me(Oe),[we])}),zl(Ll)}}};Ze.useEffect(function(){xl.length&&xl.forEach(function(Hl){var yl=ql(Hl),el=Mu(yl,yr,kr,!0).map(function(ie){var we=ie.option;return we}),Ll=el[el.length-1];(!Ll||Ll[kr.children]||su(Ll,kr))&&ni(function(ie){return ie.filter(function(we){return we!==Hl})})})},[yr,xl,kr]);var Qo=Ze.useMemo(function(){return new Set(Or(Sl))},[Sl]),di=Ze.useMemo(function(){return new Set(Or(ro))},[ro]),ku=Kc(na,tr),Mo=x(ku,2),Jr=Mo[0],Fo=Mo[1],mi=function(yl){Fo(yl),bo(yl)},Hi=function(yl){if(gr)return!1;var el=yl.disabled,Ll=su(yl,kr);return!el&&(Ll||nl||na)},$i=function(yl,el){var Ll=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;vo(yl),!na&&(el||nl&&(kl==="hover"||Ll))&&nu(!1)},gi=Ze.useMemo(function(){return ka?Xr:yr},[ka,Xr,yr]),Lo=Ze.useMemo(function(){for(var Hl=[{options:gi}],yl=gi,el=xu(yl,kr),Ll=function(){var Oe=Jr[ie],Qe=yl.find(function(It,$t){return(el[$t]?Ur(el[$t]):It[kr.value])===Oe}),mt=Qe==null?void 0:Qe[kr.children];if(!(mt!=null&&mt.length))return 1;yl=mt,Hl.push({options:mt})},ie=0;ie=19)return!0;var rn=isMemo(Te)?Te.type.type:Te.type;return!(typeof rn=="function"&&!((at=rn.prototype)!==null&&at!==void 0&&at.render)&&rn.$$typeof!==ForwardRef||typeof Te=="function"&&!((Et=Te.prototype)!==null&&Et!==void 0&&Et.render)&&Te.$$typeof!==ForwardRef)};function ud(be){return isValidElement(be)&&!isFragment(be)}var cs=function(Te){return ud(Te)&&js(Te)},Xn=function(Te){if(Te&&ud(Te)){var at=Te;return at.props.propertyIsEnumerable("ref")?at.props.ref:at.ref}return null};function Ar(be,Te,at,Et){if(!Te.length)return at;var rn=_toArray(Te),Mn=rn[0],na=rn.slice(1),ka;return!be&&typeof Mn=="number"?ka=[]:Array.isArray(be)?ka=_toConsumableArray(be):ka=_objectSpread({},be),Et&&at===void 0&&na.length===1?delete ka[Mn][na[0]]:ka[Mn]=Ar(ka[Mn],na,at,Et),ka}function _l(be,Te,at){var Et=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Te.length&&Et&&at===void 0&&!get(be,Te.slice(0,-1))?be:Ar(be,Te,at,Et)}function Ia(be){return _typeof(be)==="object"&&be!==null&&Object.getPrototypeOf(be)===Object.prototype}function Bu(be){return Array.isArray(be)?[]:{}}var Zo=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function yi(){for(var be=arguments.length,Te=new Array(be),at=0;at":Sl,kr=at.loadingIcon,nl=at.direction,vo=at.notFoundContent,Xr=vo===void 0?"Not Found":vo,Pl=at.disabled,zl=!!nu,kl=Vc(vu,{value:Uu,postState:Yl}),Eo=x(kl,2),$r=Eo[0],$l=Eo[1],xl=Ze.useMemo(function(){return zr(tr)},[JSON.stringify(tr)]),ni=co(xl,ka),bo=x(ni,3),Qo=bo[0],di=bo[1],ku=bo[2],Mo=Tr(Qo,xl),Jr=Bi(zl,$r,di,ku,Mo),Fo=x(Jr,3),mi=Fo[0],Hi=Fo[1],$i=Fo[2],gi=vi(function(Il){if($l(Il),Xu){var Pr=Yl(Il),Hl=Pr.map(function(Ll){return Mu(Ll,Qo,xl).map(function(ie){return ie.option})}),yl=zl?Pr:Pr[0],el=zl?Hl:Hl[0];Xu(yl,el)}}),Lo=wl(zl,gi,mi,Hi,$i,di,ku,Fr),_o=vi(function(Il){Lo(Il)}),Wi=Ze.useMemo(function(){return{options:Qo,fieldNames:xl,values:mi,halfValues:Hi,changeOnSelect:gr,onSelect:_o,checkable:nu,searchOptions:[],dropdownPrefixCls:void 0,loadData:br,expandTrigger:yr,expandIcon:ro,loadingIcon:kr,dropdownMenuColumnStyle:void 0}},[Qo,xl,mi,Hi,gr,_o,nu,br,yr,ro,kr]),zs="".concat(rn,"-panel"),us=!Qo.length;return Ze.createElement(Ms.Provider,{value:Wi},Ze.createElement("div",{className:jt()(zs,(Te={},Fe(Te,"".concat(zs,"-rtl"),nl==="rtl"),Fe(Te,"".concat(zs,"-empty"),us),Te),na),style:Mn},us?Xr:Ze.createElement(qo,{prefixCls:rn,searchValue:"",multiple:zl,toggleOpen:Oi,open:!0,direction:nl,disabled:Pl})))}function As(be){var Te=be.onPopupVisibleChange,at=be.popupVisible,Et=be.popupClassName,rn=be.popupPlacement;warning(!Te,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(at===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(Et===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(rn===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function Mi(be,Te){if(be){var at=function Et(rn){for(var Mn=0;Mn":bo,di=be.loadingIcon,ku=be.children,Mo=be.dropdownMatchSelectWidth,Jr=Mo===void 0?!1:Mo,Fo=be.showCheckedStrategy,mi=Fo===void 0?gn:Fo,Hi=be.optionRender,$i=ee(be,gd),gi=ws(at),Lo=!!tr,_o=Vc(na,{value:ka,postState:Yl}),Wi=x(_o,2),zs=Wi[0],us=Wi[1],Il=Ze.useMemo(function(){return zr(Mn)},[JSON.stringify(Mn)]),Pr=co(Il,ro),Hl=x(Pr,3),yl=Hl[0],el=Hl[1],Ll=Hl[2],ie=Vc("",{value:Fr,postState:function(Au){return Au||""}}),we=x(ie,2),Oe=we[0],Qe=we[1],mt=function(Au,Vu){Qe(Au),Vu.source!=="blur"&&br&&br(Au)},It=Xs(yr),$t=x(It,2),dn=$t[0],ta=$t[1],aa=wt(Oe,yl,Il,kr||rn,ta,nu||Lo),wn=Tr(yl,Il),ja=Bi(Lo,zs,el,Ll,wn),$a=x(ja,3),Ra=$a[0],wa=$a[1],eu=$a[2],za=Ze.useMemo(function(){var ur=Or(Ra),Au=Ol(ur,el,mi);return[].concat(me(eu),me(Ll(Au)))},[Ra,el,Ll,eu,mi]),_a=Lr(za,yl,Il,Lo,Uu),Iu=vi(function(ur){if(us(ur),vu){var Au=Yl(ur),Vu=Au.map(function(Nl){return Mu(Nl,yl,Il).map(function(qu){return qu.option})}),Ju=Lo?Au:Au[0],qr=Lo?Vu:Vu[0];vu(Ju,qr)}}),Lu=wl(Lo,Iu,Ra,wa,eu,el,Ll,mi),ru=vi(function(ur){(!Lo||Xu)&&Qe(""),Lu(ur)}),Ku=function(Au,Vu){if(Vu.type==="clear"){Iu([]);return}var Ju=Vu.values[0],qr=Ju.valueCells;ru(qr)},Fu=Xr!==void 0?Xr:vo,Ou=zl||Pl,xr=$l||$r,Nr=function(Au){xl==null||xl(Au),ni==null||ni(Au)},pu=Ze.useMemo(function(){return{options:yl,fieldNames:Il,values:Ra,halfValues:wa,changeOnSelect:nu,onSelect:ru,checkable:tr,searchOptions:aa,dropdownPrefixCls:kr,loadData:nl,expandTrigger:Sl,expandIcon:Qo,loadingIcon:di,dropdownMenuColumnStyle:kl,optionRender:Hi}},[yl,Il,Ra,wa,nu,ru,tr,aa,kr,nl,Sl,Qo,di,kl,Hi]),pr=!(Oe?aa:yl).length,il=Oe&&ta.matchInputWidth||pr?{}:{minWidth:"auto"};return Ze.createElement(Ms.Provider,{value:pu},Ze.createElement(Do,a({},$i,{ref:Te,id:gi,prefixCls:rn,autoClearSearchValue:Xu,dropdownMatchSelectWidth:Jr,dropdownStyle:pe(pe({},il),Eo),displayValues:_a,onDisplayValuesChange:Ku,mode:Lo?"multiple":void 0,searchValue:Oe,onSearch:mt,showSearch:dn,OptionList:Zc,emptyOptions:pr,open:Fu,dropdownClassName:Ou,placement:xr,onDropdownVisibleChange:Nr,getRawInputElement:function(){return ku}})))});dl.SHOW_PARENT=gn,dl.SHOW_CHILD=Yn,dl.Panel=uo;var qs=dl,Fc=qs},42767:function(Ft,rt){"use strict";var z;var a=typeof Symbol=="function"&&Symbol.for,Ce=a?Symbol.for("react.element"):60103,ke=a?Symbol.for("react.portal"):60106,he=a?Symbol.for("react.fragment"):60107,Fe=a?Symbol.for("react.strict_mode"):60108,xe=a?Symbol.for("react.profiler"):60114,pe=a?Symbol.for("react.provider"):60109,Se=a?Symbol.for("react.context"):60110,Ae=a?Symbol.for("react.async_mode"):60111,Ie=a?Symbol.for("react.concurrent_mode"):60111,ze=a?Symbol.for("react.forward_ref"):60112,Me=a?Symbol.for("react.suspense"):60113,me=a?Symbol.for("react.suspense_list"):60120,oe=a?Symbol.for("react.memo"):60115,E=a?Symbol.for("react.lazy"):60116,y=a?Symbol.for("react.block"):60121,x=a?Symbol.for("react.fundamental"):60117,b=a?Symbol.for("react.responder"):60118,ee=a?Symbol.for("react.scope"):60119;function te(de){if(typeof de=="object"&&de!==null){var ye=de.$$typeof;switch(ye){case Ce:switch(de=de.type,de){case Ae:case Ie:case he:case xe:case Fe:case Me:return de;default:switch(de=de&&de.$$typeof,de){case Se:case ze:case E:case oe:case pe:return de;default:return ye}}case ke:return ye}}}function ne(de){return te(de)===Ie}z=Ae,z=Ie,z=Se,z=pe,z=Ce,z=ze,z=he,z=E,z=oe,z=ke,z=xe,z=Fe,z=Me,z=function(de){return ne(de)||te(de)===Ae},z=ne,z=function(de){return te(de)===Se},z=function(de){return te(de)===pe},z=function(de){return typeof de=="object"&&de!==null&&de.$$typeof===Ce},z=function(de){return te(de)===ze},rt.isFragment=function(de){return te(de)===he},z=function(de){return te(de)===E},z=function(de){return te(de)===oe},z=function(de){return te(de)===ke},z=function(de){return te(de)===xe},z=function(de){return te(de)===Fe},z=function(de){return te(de)===Me},z=function(de){return typeof de=="string"||typeof de=="function"||de===he||de===Ie||de===xe||de===Fe||de===Me||de===me||typeof de=="object"&&de!==null&&(de.$$typeof===E||de.$$typeof===oe||de.$$typeof===pe||de.$$typeof===Se||de.$$typeof===ze||de.$$typeof===x||de.$$typeof===b||de.$$typeof===ee||de.$$typeof===y)},z=te},16357:function(Ft,rt,z){"use strict";Ft.exports=z(42767)},16404:function(Ft,rt){"use strict";var z;var a=Symbol.for("react.element"),Ce=Symbol.for("react.portal"),ke=Symbol.for("react.fragment"),he=Symbol.for("react.strict_mode"),Fe=Symbol.for("react.profiler"),xe=Symbol.for("react.provider"),pe=Symbol.for("react.context"),Se=Symbol.for("react.server_context"),Ae=Symbol.for("react.forward_ref"),Ie=Symbol.for("react.suspense"),ze=Symbol.for("react.suspense_list"),Me=Symbol.for("react.memo"),me=Symbol.for("react.lazy"),oe=Symbol.for("react.offscreen"),E;E=Symbol.for("react.module.reference");function y(x){if(typeof x=="object"&&x!==null){var b=x.$$typeof;switch(b){case a:switch(x=x.type,x){case ke:case Fe:case he:case Ie:case ze:return x;default:switch(x=x&&x.$$typeof,x){case Se:case pe:case Ae:case me:case Me:case xe:return x;default:return b}}case Ce:return b}}}z=pe,z=xe,z=a,z=Ae,z=ke,z=me,z=Me,z=Ce,z=Fe,z=he,z=Ie,z=ze,z=function(){return!1},z=function(){return!1},z=function(x){return y(x)===pe},z=function(x){return y(x)===xe},z=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===a},z=function(x){return y(x)===Ae},z=function(x){return y(x)===ke},z=function(x){return y(x)===me},z=function(x){return y(x)===Me},z=function(x){return y(x)===Ce},z=function(x){return y(x)===Fe},z=function(x){return y(x)===he},z=function(x){return y(x)===Ie},z=function(x){return y(x)===ze},z=function(x){return typeof x=="string"||typeof x=="function"||x===ke||x===Fe||x===he||x===Ie||x===ze||x===oe||typeof x=="object"&&x!==null&&(x.$$typeof===me||x.$$typeof===Me||x.$$typeof===xe||x.$$typeof===pe||x.$$typeof===Ae||x.$$typeof===E||x.getModuleId!==void 0)},z=y},80705:function(Ft,rt,z){"use strict";z(16404)},3510:function(Ft,rt,z){"use strict";z.r(rt),z.d(rt,{Panel:function(){return Ge},default:function(){return We}});var a=z(87462),Ce=z(74902),ke=z(97685),he=z(71002),Fe=z(94184),xe=z.n(Fe),pe=z(21770),Se=z(80334),Ae=z(67294),Ie=z(45987),ze=z(50344),Me=z(1413),me=z(4942),oe=z(62874),E=z(15105),y=Ae.forwardRef(function(Ue,Ye){var it=Ue.prefixCls,lt=Ue.forceRender,Bt=Ue.className,ct=Ue.style,nt=Ue.children,Ze=Ue.isActive,yt=Ue.role,ht=Ue.classNames,Je=Ue.styles,ot=Ae.useState(Ze||lt),Ct=(0,ke.Z)(ot,2),kt=Ct[0],Mt=Ct[1];return Ae.useEffect(function(){(lt||Ze)&&Mt(!0)},[lt,Ze]),kt?Ae.createElement("div",{ref:Ye,className:xe()("".concat(it,"-content"),(0,me.Z)((0,me.Z)({},"".concat(it,"-content-active"),Ze),"".concat(it,"-content-inactive"),!Ze),Bt),style:ct,role:yt},Ae.createElement("div",{className:xe()("".concat(it,"-content-box"),ht==null?void 0:ht.body),style:Je==null?void 0:Je.body},nt)):null});y.displayName="PanelContent";var x=y,b=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],ee=Ae.forwardRef(function(Ue,Ye){var it=Ue.showArrow,lt=it===void 0?!0:it,Bt=Ue.headerClass,ct=Ue.isActive,nt=Ue.onItemClick,Ze=Ue.forceRender,yt=Ue.className,ht=Ue.classNames,Je=ht===void 0?{}:ht,ot=Ue.styles,Ct=ot===void 0?{}:ot,kt=Ue.prefixCls,Mt=Ue.collapsible,st=Ue.accordion,ut=Ue.panelKey,un=Ue.extra,Pn=Ue.header,Rn=Ue.expandIcon,bt=Ue.openMotion,An=Ue.destroyInactivePanel,Nn=Ue.children,Qt=(0,Ie.Z)(Ue,b),zt=Mt==="disabled",jt=un!=null&&typeof un!="boolean",sn=(0,me.Z)((0,me.Z)((0,me.Z)({onClick:function(){nt==null||nt(ut)},onKeyDown:function(Un){(Un.key==="Enter"||Un.keyCode===E.Z.ENTER||Un.which===E.Z.ENTER)&&(nt==null||nt(ut))},role:st?"tab":"button"},"aria-expanded",ct),"aria-disabled",zt),"tabIndex",zt?-1:0),vt=typeof Rn=="function"?Rn(Ue):Ae.createElement("i",{className:"arrow"}),Tt=vt&&Ae.createElement("div",(0,a.Z)({className:"".concat(kt,"-expand-icon")},["header","icon"].includes(Mt)?sn:{}),vt),qt=xe()("".concat(kt,"-item"),(0,me.Z)((0,me.Z)({},"".concat(kt,"-item-active"),ct),"".concat(kt,"-item-disabled"),zt),yt),St=xe()(Bt,"".concat(kt,"-header"),(0,me.Z)({},"".concat(kt,"-collapsible-").concat(Mt),!!Mt),Je.header),Ke=(0,Me.Z)({className:St,style:Ct.header},["header","icon"].includes(Mt)?{}:sn);return Ae.createElement("div",(0,a.Z)({},Qt,{ref:Ye,className:qt}),Ae.createElement("div",Ke,lt&&Tt,Ae.createElement("span",(0,a.Z)({className:"".concat(kt,"-header-text")},Mt==="header"?sn:{}),Pn),jt&&Ae.createElement("div",{className:"".concat(kt,"-extra")},un)),Ae.createElement(oe.Z,(0,a.Z)({visible:ct,leavedClassName:"".concat(kt,"-content-hidden")},bt,{forceRender:Ze,removeOnLeave:An}),function(ln,Un){var Ca=ln.className,Cu=ln.style;return Ae.createElement(x,{ref:Un,prefixCls:kt,className:Ca,classNames:Je,style:Cu,styles:Ct,isActive:ct,forceRender:Ze,role:st?"tabpanel":void 0},Nn)}))}),te=ee,ne=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],de=function(Ye,it){var lt=it.prefixCls,Bt=it.accordion,ct=it.collapsible,nt=it.destroyInactivePanel,Ze=it.onItemClick,yt=it.activeKey,ht=it.openMotion,Je=it.expandIcon;return Ye.map(function(ot,Ct){var kt=ot.children,Mt=ot.label,st=ot.key,ut=ot.collapsible,un=ot.onItemClick,Pn=ot.destroyInactivePanel,Rn=(0,Ie.Z)(ot,ne),bt=String(st!=null?st:Ct),An=ut!=null?ut:ct,Nn=Pn!=null?Pn:nt,Qt=function(sn){An!=="disabled"&&(Ze(sn),un==null||un(sn))},zt=!1;return Bt?zt=yt[0]===bt:zt=yt.indexOf(bt)>-1,Ae.createElement(te,(0,a.Z)({},Rn,{prefixCls:lt,key:bt,panelKey:bt,isActive:zt,accordion:Bt,openMotion:ht,expandIcon:Je,header:Mt,collapsible:An,onItemClick:Qt,destroyInactivePanel:Nn}),kt)})},ye=function(Ye,it,lt){if(!Ye)return null;var Bt=lt.prefixCls,ct=lt.accordion,nt=lt.collapsible,Ze=lt.destroyInactivePanel,yt=lt.onItemClick,ht=lt.activeKey,Je=lt.openMotion,ot=lt.expandIcon,Ct=Ye.key||String(it),kt=Ye.props,Mt=kt.header,st=kt.headerClass,ut=kt.destroyInactivePanel,un=kt.collapsible,Pn=kt.onItemClick,Rn=!1;ct?Rn=ht[0]===Ct:Rn=ht.indexOf(Ct)>-1;var bt=un!=null?un:nt,An=function(zt){bt!=="disabled"&&(yt(zt),Pn==null||Pn(zt))},Nn={key:Ct,panelKey:Ct,header:Mt,headerClass:st,isActive:Rn,prefixCls:Bt,destroyInactivePanel:ut!=null?ut:Ze,openMotion:Je,accordion:ct,children:Ye.props.children,onItemClick:An,expandIcon:ot,collapsible:bt};return typeof Ye.type=="string"?Ye:(Object.keys(Nn).forEach(function(Qt){typeof Nn[Qt]=="undefined"&&delete Nn[Qt]}),Ae.cloneElement(Ye,Nn))};function fe(Ue,Ye,it){return Array.isArray(Ue)?de(Ue,it):(0,ze.Z)(Ye).map(function(lt,Bt){return ye(lt,Bt,it)})}var ve=fe,Ne=z(64217);function Le(Ue){var Ye=Ue;if(!Array.isArray(Ye)){var it=(0,he.Z)(Ye);Ye=it==="number"||it==="string"?[Ye]:[]}return Ye.map(function(lt){return String(lt)})}var Re=Ae.forwardRef(function(Ue,Ye){var it=Ue.prefixCls,lt=it===void 0?"rc-collapse":it,Bt=Ue.destroyInactivePanel,ct=Bt===void 0?!1:Bt,nt=Ue.style,Ze=Ue.accordion,yt=Ue.className,ht=Ue.children,Je=Ue.collapsible,ot=Ue.openMotion,Ct=Ue.expandIcon,kt=Ue.activeKey,Mt=Ue.defaultActiveKey,st=Ue.onChange,ut=Ue.items,un=xe()(lt,yt),Pn=(0,pe.Z)([],{value:kt,onChange:function(jt){return st==null?void 0:st(jt)},defaultValue:Mt,postState:Le}),Rn=(0,ke.Z)(Pn,2),bt=Rn[0],An=Rn[1],Nn=function(jt){return An(function(){if(Ze)return bt[0]===jt?[]:[jt];var sn=bt.indexOf(jt),vt=sn>-1;return vt?bt.filter(function(Tt){return Tt!==jt}):[].concat((0,Ce.Z)(bt),[jt])})};(0,Se.ZP)(!ht,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var Qt=ve(ut,ht,{prefixCls:lt,accordion:Ze,openMotion:ot,expandIcon:Ct,collapsible:Je,destroyInactivePanel:ct,onItemClick:Nn,activeKey:bt});return Ae.createElement("div",(0,a.Z)({ref:Ye,className:un,style:nt,role:Ze?"tablist":void 0},(0,Ne.Z)(Ue,{aria:!0,data:!0})),Qt)}),He=Object.assign(Re,{Panel:te}),We=He,Ge=He.Panel},63697:function(Ft,rt,z){"use strict";var a=z(27484),Ce=z.n(a),ke=z(6833),he=z.n(ke),Fe=z(96036),xe=z.n(Fe),pe=z(55183),Se=z.n(pe),Ae=z(172),Ie=z.n(Ae),ze=z(28734),Me=z.n(ze),me=z(10285),oe=z.n(me);Ce().extend(oe()),Ce().extend(Me()),Ce().extend(he()),Ce().extend(xe()),Ce().extend(Se()),Ce().extend(Ie()),Ce().extend(function(ee,te){var ne=te.prototype,de=ne.format;ne.format=function(fe){var ve=(fe||"").replace("Wo","wo");return de.bind(this)(ve)}});var E={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},y=function(te){var ne=E[te];return ne||te.split("_")[0]},x=function(){},b={getNow:function(){var te=Ce()();return typeof te.tz=="function"?te.tz():te},getFixedDate:function(te){return Ce()(te,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(te){return te.endOf("month")},getWeekDay:function(te){var ne=te.locale("en");return ne.weekday()+ne.localeData().firstDayOfWeek()},getYear:function(te){return te.year()},getMonth:function(te){return te.month()},getDate:function(te){return te.date()},getHour:function(te){return te.hour()},getMinute:function(te){return te.minute()},getSecond:function(te){return te.second()},getMillisecond:function(te){return te.millisecond()},addYear:function(te,ne){return te.add(ne,"year")},addMonth:function(te,ne){return te.add(ne,"month")},addDate:function(te,ne){return te.add(ne,"day")},setYear:function(te,ne){return te.year(ne)},setMonth:function(te,ne){return te.month(ne)},setDate:function(te,ne){return te.date(ne)},setHour:function(te,ne){return te.hour(ne)},setMinute:function(te,ne){return te.minute(ne)},setSecond:function(te,ne){return te.second(ne)},setMillisecond:function(te,ne){return te.millisecond(ne)},isAfter:function(te,ne){return te.isAfter(ne)},isValidate:function(te){return te.isValid()},locale:{getWeekFirstDay:function(te){return Ce()().locale(y(te)).localeData().firstDayOfWeek()},getWeekFirstDate:function(te,ne){return ne.locale(y(te)).weekday(0)},getWeek:function(te,ne){return ne.locale(y(te)).week()},getShortWeekDays:function(te){return Ce()().locale(y(te)).localeData().weekdaysMin()},getShortMonths:function(te){return Ce()().locale(y(te)).localeData().monthsShort()},format:function(te,ne,de){return ne.locale(y(te)).format(de)},parse:function(te,ne,de){for(var ye=y(te),fe=0;feie.length)&&(we=ie.length);for(var Oe=0,Qe=Array(we);Oeie.length)&&(we=ie.length);for(var Oe=0,Qe=new Array(we);Oe=19)return!0;var mt=(0,We.isMemo)(we)?we.type.type:we.type;return!(typeof mt=="function"&&!((Oe=mt.prototype)!==null&&Oe!==void 0&&Oe.render)&&mt.$$typeof!==We.ForwardRef||typeof we=="function"&&!((Qe=we.prototype)!==null&&Qe!==void 0&&Qe.render)&&we.$$typeof!==We.ForwardRef)};function ht(ie){return(0,me.isValidElement)(ie)&&!lt(ie)}var Je=function(we){return ht(we)&&yt(we)},ot=function(we){if(we&&ht(we)){var Oe=we;return Oe.props.propertyIsEnumerable("ref")?Oe.props.ref:Oe.ref}return null};function Ct(ie,we,Oe,Qe){if(!we.length)return Oe;var mt=_toArray(we),It=mt[0],$t=mt.slice(1),dn;return!ie&&typeof It=="number"?dn=[]:Array.isArray(ie)?dn=_toConsumableArray(ie):dn=_objectSpread({},ie),Qe&&Oe===void 0&&$t.length===1?delete dn[It][$t[0]]:dn[It]=Ct(dn[It],$t,Oe,Qe),dn}function kt(ie,we,Oe){var Qe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return we.length&&Qe&&Oe===void 0&&!get(ie,we.slice(0,-1))?ie:Ct(ie,we,Oe,Qe)}function Mt(ie){return _typeof(ie)==="object"&&ie!==null&&Object.getPrototypeOf(ie)===Object.prototype}function st(ie){return Array.isArray(ie)?[]:{}}var ut=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function un(){for(var ie=arguments.length,we=new Array(ie),Oe=0;Oe=fu)){var Uo=!0,ai=Qu;kl==null||kl(null);var ds=va(Qu,bo,jo(fu)?fu-rr.size:void 0),ms=pi?null:ds;return yr!=="combobox"&&ms&&(ai="",ni==null||ni(ms),qu(!1),Uo=!1),xl&&ru!==ai&&xl(ai,{source:Zr?"typing":"effect"}),Uo}},eo=function(Qu){!Qu||!Qu.trim()||xl(Qu,{source:"submit"})};Ze.useEffect(function(){!Ju&&!Oe&&yr!=="combobox"&&lr("",!1,!1)},[Ju]),Ze.useEffect(function(){Au&&Sl&&Vu(!1),Sl&&!wa.current&&Iu(!1)},[Sl]);var to=or(),ou=Bt(to,2),jl=ou[0],Vl=ou[1],wo=Ze.useRef(!1),Ro=function(Qu){var Zr=jl(),pi=Qu.key,Uo=pi==="Enter";if(Uo&&(yr!=="combobox"&&Qu.preventDefault(),Ju||qu(!0)),Vl(!!ru),pi==="Backspace"&&!Zr&&Oe&&!ru&&Uu.length){for(var ai=Ne(Uu),ds=null,ms=ai.length-1;ms>=0;ms-=1){var Zs=ai[ms];if(!Zs.disabled){ai.splice(ms,1),ds=Zs;break}}ds&&tr(ai,{type:"remove",values:[ds]})}for(var Hs=arguments.length,_s=new Array(Hs>1?Hs-1:0),ju=1;ju1?Zr-1:0),Uo=1;Uo1?ds-1:0),Zs=1;Zs=Fr},[ka,Fr,nl==null?void 0:nl.size]),bo=function(Pr){Pr.preventDefault()},Qo=function(Pr){var Hl;(Hl=xl.current)===null||Hl===void 0||Hl.scrollTo(typeof Pr=="number"?{index:Pr}:Pr)},di=Ze.useCallback(function(Il){return nu==="combobox"?!1:nl.has(Il)},[nu,Ne(nl).toString(),nl.size]),ku=function(Pr){for(var Hl=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,yl=$l.length,el=0;el1&&arguments[1]!==void 0?arguments[1]:!1;mi(Pr);var yl={source:Hl?"keyboard":"mouse"},el=$l[Pr];if(!el){yr(null,-1,yl);return}yr(el.value,Pr,yl)};(0,Ze.useEffect)(function(){Hi(Sl!==!1?ku(0):-1)},[$l.length,vu]);var $i=Ze.useCallback(function(Il){return nu==="combobox"?String(Il).toLowerCase()===vu.toLowerCase():nl.has(Il)},[nu,vu,Ne(nl).toString(),nl.size]);(0,Ze.useEffect)(function(){var Il=setTimeout(function(){if(!ka&&na&&nl.size===1){var Hl=Array.from(nl)[0],yl=$l.findIndex(function(el){var Ll=el.data;return Ll.value===Hl});yl!==-1&&(Hi(yl),Qo(yl))}});if(na){var Pr;(Pr=xl.current)===null||Pr===void 0||Pr.scrollTo(void 0)}return function(){return clearTimeout(Il)}},[na,vu]);var gi=function(Pr){Pr!==void 0&&ro(Pr,{selected:!nl.has(Pr)}),ka||Uu(!1)};if(Ze.useImperativeHandle(at,function(){return{onKeyDown:function(Pr){var Hl=Pr.which,yl=Pr.ctrlKey;switch(Hl){case xn.N:case xn.P:case xn.UP:case xn.DOWN:{var el=0;if(Hl===xn.UP?el=-1:Hl===xn.DOWN?el=1:cl()&&yl&&(Hl===xn.N?el=1:Hl===xn.P&&(el=-1)),el!==0){var Ll=ku(Fo+el,el);Qo(Ll),Hi(Ll,!0)}break}case xn.TAB:case xn.ENTER:{var ie,we=$l[Fo];we&&!(we!=null&&(ie=we.data)!==null&&ie!==void 0&&ie.disabled)&&!ni?gi(we.value):gi(void 0),na&&Pr.preventDefault();break}case xn.ESC:Uu(!1),na&&Pr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Pr){Qo(Pr)}}}),$l.length===0)return Ze.createElement("div",{role:"listbox",id:"".concat(Mn,"_list"),className:"".concat($r,"-empty"),onMouseDown:bo},tr);var Lo=Object.keys(vo).map(function(Il){return vo[Il]}),_o=function(Pr){return Pr.label};function Wi(Il,Pr){var Hl=Il.group;return{role:Hl?"presentation":"option",id:"".concat(Mn,"_list_").concat(Pr)}}var zs=function(Pr){var Hl=$l[Pr];if(!Hl)return null;var yl=Hl.data||{},el=yl.value,Ll=Hl.group,ie=Qa(yl,!0),we=_o(Hl);return Hl?Ze.createElement("div",te({"aria-label":typeof we=="string"&&!Ll?we:null},ie,{key:Pr},Wi(Hl,Pr),{"aria-selected":$i(el)}),el):null},us={role:"listbox",id:"".concat(Mn,"_list")};return Ze.createElement(Ze.Fragment,null,Xr&&Ze.createElement("div",te({},us,{style:{height:0,width:0,overflow:"hidden"}}),zs(Fo-1),zs(Fo),zs(Fo+1)),Ze.createElement(ns.Z,{itemKey:"key",ref:xl,data:$l,height:zl,itemHeight:kl,fullHeight:!1,onMouseDown:bo,onScroll:gr,virtual:Xr,direction:Pl,innerProps:Xr?null:us},function(Il,Pr){var Hl=Il.group,yl=Il.groupOption,el=Il.data,Ll=Il.label,ie=Il.value,we=el.key;if(Hl){var Oe,Qe=(Oe=el.title)!==null&&Oe!==void 0?Oe:li(Ll)?Ll.toString():void 0;return Ze.createElement("div",{className:jt()($r,"".concat($r,"-group"),el.className),title:Qe},Ll!==void 0?Ll:we)}var mt=el.disabled,It=el.title,$t=el.children,dn=el.style,ea=el.className,aa=nt(el,is),wn=bu(aa,Lo),ja=di(ie),$a=mt||!ja&&ni,Ra="".concat($r,"-option"),wa=jt()($r,Ra,ea,We(We(We(We({},"".concat(Ra,"-grouped"),yl),"".concat(Ra,"-active"),Fo===Pr&&!$a),"".concat(Ra,"-disabled"),$a),"".concat(Ra,"-selected"),ja)),eu=_o(Il),za=!kr||typeof kr=="function"||ja,_a=typeof eu=="number"?eu:eu||ie,Iu=li(_a)?_a.toString():void 0;return It!==void 0&&(Iu=It),Ze.createElement("div",te({},Qa(wn),Xr?{}:Wi(Il,Pr),{"aria-selected":$i(ie),className:wa,title:Iu,onMouseMove:function(){Fo===Pr||$a||Hi(Pr)},onClick:function(){$a||gi(ie)},style:dn}),Ze.createElement("div",{className:"".concat(Ra,"-content")},typeof Eo=="function"?Eo(Il,{index:Pr}):_a),Ze.isValidElement(kr)||ja,za&&Ze.createElement(Ca,{className:"".concat($r,"-option-state"),customizeIcon:kr,customizeIconProps:{value:ie,disabled:$a,isSelected:ja}},ja?"\u2713":null))}))},as=Ze.forwardRef(_i),ho=as,oi=function(be,Te){var at=Ze.useRef({values:new Map,options:new Map}),Et=Ze.useMemo(function(){var Mn=at.current,na=Mn.values,ka=Mn.options,nu=be.map(function(tr){if(tr.label===void 0){var gr;return Ue(Ue({},tr),{},{label:(gr=na.get(tr.value))===null||gr===void 0?void 0:gr.label})}return tr}),vu=new Map,Uu=new Map;return nu.forEach(function(tr){vu.set(tr.value,tr),Uu.set(tr.value,Te.get(tr.value)||ka.get(tr.value))}),at.current.values=vu,at.current.options=Uu,nu},[be,Te]),rn=Ze.useCallback(function(Mn){return Te.get(Mn)||at.current.options.get(Mn)},[Te]);return[Et,rn]};function Zi(be,Te){return tc(be).join("").toUpperCase().includes(Te)}var Ss=function(be,Te,at,Et,rn){return Ze.useMemo(function(){if(!at||Et===!1)return be;var Mn=Te.options,na=Te.label,ka=Te.value,nu=[],vu=typeof Et=="function",Uu=at.toUpperCase(),tr=vu?Et:function(Xu,Fr){return rn?Zi(Fr[rn],Uu):Fr[Mn]?Zi(Fr[na!=="children"?na:"label"],Uu):Zi(Fr[ka],Uu)},gr=vu?function(Xu){return fa(Xu)}:function(Xu){return Xu};return be.forEach(function(Xu){if(Xu[Mn]){var Fr=tr(at,gr(Xu));if(Fr)nu.push(Xu);else{var br=Xu[Mn].filter(function(yr){return tr(at,gr(yr))});br.length&&nu.push(Ue(Ue({},Xu),{},We({},Mn,br)))}return}tr(at,gr(Xu))&&nu.push(Xu)}),nu},[be,Et,rn,at,Te])},ss=0,Os=ht();function Es(){var be;return Os?(be=ss,ss+=1):be="TEST_OR_SSR",be}function ws(be){var Te=Ze.useState(),at=Bt(Te,2),Et=at[0],rn=at[1];return Ze.useEffect(function(){rn("rc_select_".concat(Es()))},[]),be||Et}function no(be){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},at=[];return Ze.Children.forEach(be,function(Et){Et==null&&!Te.keepEmpty||(Array.isArray(Et)?at=at.concat(no(Et)):(0,vt.isFragment)(Et)&&Et.props?at=at.concat(no(Et.props.children,Te)):at.push(Et))}),at}var Dc=["children","value"],Oc=["children"];function Ts(be){var Te=be,at=Te.key,Et=Te.props,rn=Et.children,Mn=Et.value,na=nt(Et,Dc);return Ue({key:at,value:Mn!==void 0?Mn:at,children:rn},na)}function ks(be){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return no(be).map(function(at,Et){if(!Ze.isValidElement(at)||!at.type)return null;var rn=at,Mn=rn.type.isSelectOptGroup,na=rn.key,ka=rn.props,nu=ka.children,vu=nt(ka,Oc);return Te||!Mn?Ts(at):Ue(Ue({key:"__RC_SELECT_GRP__".concat(na===null?Et:na,"__"),label:na},vu),{},{options:ks(nu)})}).filter(function(at){return at})}var Fi=function(Te,at,Et,rn,Mn){return Ze.useMemo(function(){var na=Te,ka=!Te;ka&&(na=ks(at));var nu=new Map,vu=new Map,Uu=function(Xu,Fr,br){br&&typeof br=="string"&&Xu.set(Fr[br],Fr)},tr=function gr(Xu){for(var Fr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,br=0;br1&&arguments[1]!==void 0?arguments[1]:!1,na=0;na0?qu(fu.options):fu.options}):fu})},za=Ze.useMemo(function(){return ro?eu(wa):wa},[wa,ro,us]),_a=Ze.useMemo(function(){return yn(za,{fieldNames:_o,childrenAsData:gi})},[za,_o,gi]),Iu=function(fr){var zu=Ll(fr);if(Qe(zu),Jr&&(zu.length!==dn.length||zu.some(function(lr,eo){var to;return((to=dn[eo])===null||to===void 0?void 0:to.value)!==(lr==null?void 0:lr.value)}))){var fu=Mo?zu:zu.map(function(lr){return lr.value}),rr=zu.map(function(lr){return fa(ea(lr.value))});Jr($i?fu:fu[0],$i?rr:rr[0])}},Lu=Ze.useState(null),ru=Bt(Lu,2),Ku=ru[0],Fu=ru[1],Ou=Ze.useState(0),xr=Bt(Ou,2),Nr=xr[0],pu=xr[1],pr=zl!==void 0?zl:Et!=="combobox",il=Ze.useCallback(function(qu,fr){var zu=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},fu=zu.source,rr=fu===void 0?"keyboard":fu;pu(fr),na&&Et==="combobox"&&qu!==null&&rr==="keyboard"&&Fu(String(qu))},[na,Et]),ur=function(fr,zu,fu){var rr=function(){var ii,po=ea(fr);return[Mo?{label:po==null?void 0:po[_o.label],value:fr,key:(ii=po==null?void 0:po.key)!==null&&ii!==void 0?ii:fr}:fr,fa(po)]};if(zu&&Xu){var lr=rr(),eo=Bt(lr,2),to=eo[0],ou=eo[1];Xu(to,ou)}else if(!zu&&Fr&&fu!=="clear"){var jl=rr(),Vl=Bt(jl,2),wo=Vl[0],Ro=Vl[1];Fr(wo,Ro)}},Au=ll(function(qu,fr){var zu,fu=$i?fr.selected:!0;fu?zu=$i?[].concat(Ne(dn),[qu]):[qu]:zu=dn.filter(function(rr){return rr.value!==qu}),Iu(zu),ur(qu,fu),Et==="combobox"?Fu(""):(!Qr||gr)&&(Il(""),Fu(""))}),Vu=function(fr,zu){Iu(fr);var fu=zu.type,rr=zu.values;(fu==="remove"||fu==="clear")&&rr.forEach(function(lr){ur(lr.value,!1,fu)})},Ju=function(fr,zu){if(Il(fr),Fu(null),zu.source==="submit"){var fu=(fr||"").trim();if(fu){var rr=Array.from(new Set([].concat(Ne(wn),[fu])));Iu(rr),ur(fu,!0),Il("")}return}zu.source!=="blur"&&(Et==="combobox"&&Iu(fr),Uu==null||Uu(fr))},qr=function(fr){var zu=fr;Et!=="tags"&&(zu=fr.map(function(rr){var lr=yl.get(rr);return lr==null?void 0:lr.value}).filter(function(rr){return rr!==void 0}));var fu=Array.from(new Set([].concat(Ne(wn),Ne(zu))));Iu(fu),fu.forEach(function(rr){ur(rr,!0)})},Nl=Ze.useMemo(function(){var qu=Eo!==!1&&yr!==!1;return Ue(Ue({},Pr),{},{flattenOptions:_a,onActiveValue:il,defaultActiveFirstOption:pr,onSelect:Au,menuItemSelectedIcon:kl,rawValues:wn,fieldNames:_o,virtual:qu,direction:$r,listHeight:xl,listItemHeight:bo,childrenAsData:gi,maxCount:Fo,optionRender:Xr})},[Fo,Pr,_a,il,pr,Au,kl,wn,_o,Eo,yr,$r,xl,bo,gi,Xr]);return Ze.createElement(Bl.Provider,{value:Nl},Ze.createElement(Do,te({},mi,{id:Hi,prefixCls:Mn,ref:Te,omitDomProps:Ql,mode:Et,displayValues:aa,onDisplayValuesChange:Vu,direction:$r,searchValue:us,onSearch:Ju,autoClearSearchValue:gr,onSearchSplit:qr,dropdownMatchSelectWidth:yr,OptionList:ho,emptyOptions:!_a.length,activeValue:Ku,activeDescendantId:"".concat(Hi,"_list_").concat(Nr)})))}),Ui=ao;Ui.Option=hi,Ui.OptGroup=Br;var xs=null,Ps=null;function vi(be){var Te=Ze.useRef();Te.current=be;var at=Ze.useCallback(function(){for(var Et,rn=arguments.length,Mn=new Array(rn),na=0;nabe.length)&&(Te=be.length);for(var at=0,Et=new Array(Te);at2&&arguments[2]!==void 0?arguments[2]:!1;yr.forEach(function(kr){if(!(!Xu&&gr!==!1&&gr>0&&Fr.length>=gr)){var nl=[].concat(me(Sl),[kr]),vo=kr[Et.children],Xr=ro||kr.disabled;if((!vo||vo.length===0||na)&&nu(Te,nl,{label:Et.label})){var Pl;Fr.push(pe(pe({},kr),{},(Pl={disabled:Xr},Fe(Pl,Et.label,Uu(Te,nl,rn,Et)),Fe(Pl,uc,nl),Fe(Pl,Et.children,void 0),Pl)))}vo&&br(kr[Et.children],nl,Xr)}})}return br(at,[]),Xu&&Fr.sort(function(yr,Sl){return Xu(yr[uc],Sl[uc],Te,Et)}),gr!==!1&&gr>0?Fr.slice(0,gr):Fr},[Te,at,Et,rn,Uu,na,nu,Xu,gr])},wt=Gc,_t="__RC_CASCADER_SPLIT__",gn="SHOW_PARENT",Yn="SHOW_CHILD";function Ur(be){return be.join(_t)}function Or(be){return be.map(Ur)}function ql(be){return be.split(_t)}function zr(be){var Te=be||{},at=Te.label,Et=Te.value,rn=Te.children,Mn=Et||"value";return{label:at||"label",value:Mn,key:Mn,children:rn||"children"}}function su(be,Te){var at,Et;return(at=be.isLeaf)!==null&&at!==void 0?at:!((Et=be[Te.children])!==null&&Et!==void 0&&Et.length)}function yu(be){var Te=be.parentElement;if(Te){var at=be.offsetTop-Te.offsetTop;at-Te.scrollTop<0?Te.scrollTo({top:at}):at+be.offsetHeight-Te.scrollTop>Te.offsetHeight&&Te.scrollTo({top:at+be.offsetHeight-Te.offsetHeight})}}function xu(be,Te){return be.map(function(at){var Et;return(Et=at[uc])===null||Et===void 0?void 0:Et.map(function(rn){return rn[Te.value]})})}function Al(be){return Array.isArray(be)&&Array.isArray(be[0])}function Yl(be){return be?Al(be)?be:(be.length===0?[]:[be]).map(function(Te){return Array.isArray(Te)?Te:[Te]}):[]}function Ol(be,Te,at){var Et=new Set(be),rn=Te();return be.filter(function(Mn){var na=rn[Mn],ka=na?na.parent:null,nu=na?na.children:null;return na&&na.node.disabled?!0:at===Yn?!(nu&&nu.some(function(vu){return vu.key&&Et.has(vu.key)})):!(ka&&!ka.node.disabled&&Et.has(ka.key))})}function Mu(be,Te,at){for(var Et=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,rn=Te,Mn=[],na=function(){var vu,Uu,tr,gr=be[ka],Xu=(vu=rn)===null||vu===void 0?void 0:vu.findIndex(function(br){var yr=br[at.value];return Et?String(yr)===String(gr):yr===gr}),Fr=Xu!==-1?(Uu=rn)===null||Uu===void 0?void 0:Uu[Xu]:null;Mn.push({value:(tr=Fr==null?void 0:Fr[at.value])!==null&&tr!==void 0?tr:gr,index:Xu,option:Fr}),rn=Fr==null?void 0:Fr[at.children]},ka=0;ka=Xl.F1&&at<=Xl.F12)return!1;switch(at){case Xl.ALT:case Xl.CAPS_LOCK:case Xl.CONTEXT_MENU:case Xl.CTRL:case Xl.DOWN:case Xl.END:case Xl.ESC:case Xl.HOME:case Xl.INSERT:case Xl.LEFT:case Xl.MAC_FF_META:case Xl.META:case Xl.NUMLOCK:case Xl.NUM_CENTER:case Xl.PAGE_DOWN:case Xl.PAGE_UP:case Xl.PAUSE:case Xl.PRINT_SCREEN:case Xl.RIGHT:case Xl.SHIFT:case Xl.UP:case Xl.WIN_KEY:case Xl.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Te){if(Te>=Xl.ZERO&&Te<=Xl.NINE||Te>=Xl.NUM_ZERO&&Te<=Xl.NUM_MULTIPLY||Te>=Xl.A&&Te<=Xl.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Te===0)return!0;switch(Te){case Xl.SPACE:case Xl.QUESTION_MARK:case Xl.NUM_PLUS:case Xl.NUM_MINUS:case Xl.NUM_PERIOD:case Xl.NUM_DIVISION:case Xl.SEMICOLON:case Xl.DASH:case Xl.EQUALS:case Xl.COMMA:case Xl.PERIOD:case Xl.SLASH:case Xl.APOSTROPHE:case Xl.SINGLE_QUOTE:case Xl.OPEN_SQUARE_BRACKET:case Xl.BACKSLASH:case Xl.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},hc=Xl,xc=function(be,Te,at,Et,rn,Mn,na){var ka=na.direction,nu=na.searchValue,vu=na.toggleOpen,Uu=na.open,tr=ka==="rtl",gr=Ze.useMemo(function(){for(var Xr=-1,Pl=Te,zl=[],kl=[],Eo=Et.length,$r=xu(Te,at),$l=function(di){var ku=Pl.findIndex(function(Mo,Jr){return($r[Jr]?Ur($r[Jr]):Mo[at.value])===Et[di]});if(ku===-1)return 1;Xr=ku,zl.push(Xr),kl.push(Et[di]),Pl=Pl[Xr][at.children]},xl=0;xl1){var Pl=Fr.slice(0,-1);ro(Pl)}else vu(!1)},vo=function(){var Pl,zl=((Pl=yr[br])===null||Pl===void 0?void 0:Pl[at.children])||[],kl=zl.find(function($r){return!$r.disabled});if(kl){var Eo=[].concat(me(Fr),[kl[at.value]]);ro(Eo)}};Ze.useImperativeHandle(be,function(){return{onKeyDown:function(Pl){var zl=Pl.which;switch(zl){case hc.UP:case hc.DOWN:{var kl=0;zl===hc.UP?kl=-1:zl===hc.DOWN&&(kl=1),kl!==0&&kr(kl);break}case hc.LEFT:{if(nu)break;tr?vo():nl();break}case hc.RIGHT:{if(nu)break;tr?nl():vo();break}case hc.BACKSPACE:{nu||nl();break}case hc.ENTER:{if(Fr.length){var Eo=yr[br],$r=(Eo==null?void 0:Eo[uc])||[];$r.length?Mn($r.map(function($l){return $l[at.value]}),$r[$r.length-1]):Mn(Fr,yr[br])}break}case hc.ESC:vu(!1),Uu&&Pl.stopPropagation()}},onKeyUp:function(){}}})},Yc=Ze.forwardRef(function(be,Te){var at,Et,rn,Mn=be.prefixCls,na=be.multiple,ka=be.searchValue,nu=be.toggleOpen,vu=be.notFoundContent,Uu=be.direction,tr=be.open,gr=be.disabled,Xu=Ze.useRef(null),Fr=Uu==="rtl",br=Ze.useContext(Ms),yr=br.options,Sl=br.values,ro=br.halfValues,kr=br.fieldNames,nl=br.changeOnSelect,vo=br.onSelect,Xr=br.searchOptions,Pl=br.dropdownPrefixCls,zl=br.loadData,kl=br.expandTrigger,Eo=Pl||Mn,$r=Ze.useState([]),$l=x($r,2),xl=$l[0],ni=$l[1],bo=function(yl){if(!(!zl||ka)){var el=Mu(yl,yr,kr),Ll=el.map(function(Oe){var Qe=Oe.option;return Qe}),ie=Ll[Ll.length-1];if(ie&&!su(ie,kr)){var we=Ur(yl);ni(function(Oe){return[].concat(me(Oe),[we])}),zl(Ll)}}};Ze.useEffect(function(){xl.length&&xl.forEach(function(Hl){var yl=ql(Hl),el=Mu(yl,yr,kr,!0).map(function(ie){var we=ie.option;return we}),Ll=el[el.length-1];(!Ll||Ll[kr.children]||su(Ll,kr))&&ni(function(ie){return ie.filter(function(we){return we!==Hl})})})},[yr,xl,kr]);var Qo=Ze.useMemo(function(){return new Set(Or(Sl))},[Sl]),di=Ze.useMemo(function(){return new Set(Or(ro))},[ro]),ku=Kc(na,tr),Mo=x(ku,2),Jr=Mo[0],Fo=Mo[1],mi=function(yl){Fo(yl),bo(yl)},Hi=function(yl){if(gr)return!1;var el=yl.disabled,Ll=su(yl,kr);return!el&&(Ll||nl||na)},$i=function(yl,el){var Ll=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;vo(yl),!na&&(el||nl&&(kl==="hover"||Ll))&&nu(!1)},gi=Ze.useMemo(function(){return ka?Xr:yr},[ka,Xr,yr]),Lo=Ze.useMemo(function(){for(var Hl=[{options:gi}],yl=gi,el=xu(yl,kr),Ll=function(){var Oe=Jr[ie],Qe=yl.find(function(It,$t){return(el[$t]?Ur(el[$t]):It[kr.value])===Oe}),mt=Qe==null?void 0:Qe[kr.children];if(!(mt!=null&&mt.length))return 1;yl=mt,Hl.push({options:mt})},ie=0;ie=19)return!0;var rn=isMemo(Te)?Te.type.type:Te.type;return!(typeof rn=="function"&&!((at=rn.prototype)!==null&&at!==void 0&&at.render)&&rn.$$typeof!==ForwardRef||typeof Te=="function"&&!((Et=Te.prototype)!==null&&Et!==void 0&&Et.render)&&Te.$$typeof!==ForwardRef)};function ud(be){return isValidElement(be)&&!isFragment(be)}var cs=function(Te){return ud(Te)&&js(Te)},Xn=function(Te){if(Te&&ud(Te)){var at=Te;return at.props.propertyIsEnumerable("ref")?at.props.ref:at.ref}return null};function Ar(be,Te,at,Et){if(!Te.length)return at;var rn=_toArray(Te),Mn=rn[0],na=rn.slice(1),ka;return!be&&typeof Mn=="number"?ka=[]:Array.isArray(be)?ka=_toConsumableArray(be):ka=_objectSpread({},be),Et&&at===void 0&&na.length===1?delete ka[Mn][na[0]]:ka[Mn]=Ar(ka[Mn],na,at,Et),ka}function _l(be,Te,at){var Et=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Te.length&&Et&&at===void 0&&!get(be,Te.slice(0,-1))?be:Ar(be,Te,at,Et)}function Ia(be){return _typeof(be)==="object"&&be!==null&&Object.getPrototypeOf(be)===Object.prototype}function Bu(be){return Array.isArray(be)?[]:{}}var Zo=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function yi(){for(var be=arguments.length,Te=new Array(be),at=0;at":Sl,kr=at.loadingIcon,nl=at.direction,vo=at.notFoundContent,Xr=vo===void 0?"Not Found":vo,Pl=at.disabled,zl=!!nu,kl=Vc(vu,{value:Uu,postState:Yl}),Eo=x(kl,2),$r=Eo[0],$l=Eo[1],xl=Ze.useMemo(function(){return zr(tr)},[JSON.stringify(tr)]),ni=co(xl,ka),bo=x(ni,3),Qo=bo[0],di=bo[1],ku=bo[2],Mo=Tr(Qo,xl),Jr=Bi(zl,$r,di,ku,Mo),Fo=x(Jr,3),mi=Fo[0],Hi=Fo[1],$i=Fo[2],gi=vi(function(Il){if($l(Il),Xu){var Pr=Yl(Il),Hl=Pr.map(function(Ll){return Mu(Ll,Qo,xl).map(function(ie){return ie.option})}),yl=zl?Pr:Pr[0],el=zl?Hl:Hl[0];Xu(yl,el)}}),Lo=wl(zl,gi,mi,Hi,$i,di,ku,Fr),_o=vi(function(Il){Lo(Il)}),Wi=Ze.useMemo(function(){return{options:Qo,fieldNames:xl,values:mi,halfValues:Hi,changeOnSelect:gr,onSelect:_o,checkable:nu,searchOptions:[],dropdownPrefixCls:void 0,loadData:br,expandTrigger:yr,expandIcon:ro,loadingIcon:kr,dropdownMenuColumnStyle:void 0}},[Qo,xl,mi,Hi,gr,_o,nu,br,yr,ro,kr]),zs="".concat(rn,"-panel"),us=!Qo.length;return Ze.createElement(Ms.Provider,{value:Wi},Ze.createElement("div",{className:jt()(zs,(Te={},Fe(Te,"".concat(zs,"-rtl"),nl==="rtl"),Fe(Te,"".concat(zs,"-empty"),us),Te),na),style:Mn},us?Xr:Ze.createElement(qo,{prefixCls:rn,searchValue:"",multiple:zl,toggleOpen:Oi,open:!0,direction:nl,disabled:Pl})))}function As(be){var Te=be.onPopupVisibleChange,at=be.popupVisible,Et=be.popupClassName,rn=be.popupPlacement;warning(!Te,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(at===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(Et===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(rn===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function Mi(be,Te){if(be){var at=function Et(rn){for(var Mn=0;Mn":bo,di=be.loadingIcon,ku=be.children,Mo=be.dropdownMatchSelectWidth,Jr=Mo===void 0?!1:Mo,Fo=be.showCheckedStrategy,mi=Fo===void 0?gn:Fo,Hi=be.optionRender,$i=ee(be,gd),gi=ws(at),Lo=!!tr,_o=Vc(na,{value:ka,postState:Yl}),Wi=x(_o,2),zs=Wi[0],us=Wi[1],Il=Ze.useMemo(function(){return zr(Mn)},[JSON.stringify(Mn)]),Pr=co(Il,ro),Hl=x(Pr,3),yl=Hl[0],el=Hl[1],Ll=Hl[2],ie=Vc("",{value:Fr,postState:function(Au){return Au||""}}),we=x(ie,2),Oe=we[0],Qe=we[1],mt=function(Au,Vu){Qe(Au),Vu.source!=="blur"&&br&&br(Au)},It=Xs(yr),$t=x(It,2),dn=$t[0],ea=$t[1],aa=wt(Oe,yl,Il,kr||rn,ea,nu||Lo),wn=Tr(yl,Il),ja=Bi(Lo,zs,el,Ll,wn),$a=x(ja,3),Ra=$a[0],wa=$a[1],eu=$a[2],za=Ze.useMemo(function(){var ur=Or(Ra),Au=Ol(ur,el,mi);return[].concat(me(eu),me(Ll(Au)))},[Ra,el,Ll,eu,mi]),_a=Lr(za,yl,Il,Lo,Uu),Iu=vi(function(ur){if(us(ur),vu){var Au=Yl(ur),Vu=Au.map(function(Nl){return Mu(Nl,yl,Il).map(function(qu){return qu.option})}),Ju=Lo?Au:Au[0],qr=Lo?Vu:Vu[0];vu(Ju,qr)}}),Lu=wl(Lo,Iu,Ra,wa,eu,el,Ll,mi),ru=vi(function(ur){(!Lo||Xu)&&Qe(""),Lu(ur)}),Ku=function(Au,Vu){if(Vu.type==="clear"){Iu([]);return}var Ju=Vu.values[0],qr=Ju.valueCells;ru(qr)},Fu=Xr!==void 0?Xr:vo,Ou=zl||Pl,xr=$l||$r,Nr=function(Au){xl==null||xl(Au),ni==null||ni(Au)},pu=Ze.useMemo(function(){return{options:yl,fieldNames:Il,values:Ra,halfValues:wa,changeOnSelect:nu,onSelect:ru,checkable:tr,searchOptions:aa,dropdownPrefixCls:kr,loadData:nl,expandTrigger:Sl,expandIcon:Qo,loadingIcon:di,dropdownMenuColumnStyle:kl,optionRender:Hi}},[yl,Il,Ra,wa,nu,ru,tr,aa,kr,nl,Sl,Qo,di,kl,Hi]),pr=!(Oe?aa:yl).length,il=Oe&&ea.matchInputWidth||pr?{}:{minWidth:"auto"};return Ze.createElement(Ms.Provider,{value:pu},Ze.createElement(Do,a({},$i,{ref:Te,id:gi,prefixCls:rn,autoClearSearchValue:Xu,dropdownMatchSelectWidth:Jr,dropdownStyle:pe(pe({},il),Eo),displayValues:_a,onDisplayValuesChange:Ku,mode:Lo?"multiple":void 0,searchValue:Oe,onSearch:mt,showSearch:dn,OptionList:Zc,emptyOptions:pr,open:Fu,dropdownClassName:Ou,placement:xr,onDropdownVisibleChange:Nr,getRawInputElement:function(){return ku}})))});dl.SHOW_PARENT=gn,dl.SHOW_CHILD=Yn,dl.Panel=uo;var qs=dl,Fc=qs},42767:function(Ft,rt){"use strict";var z;var a=typeof Symbol=="function"&&Symbol.for,Ce=a?Symbol.for("react.element"):60103,ke=a?Symbol.for("react.portal"):60106,he=a?Symbol.for("react.fragment"):60107,Fe=a?Symbol.for("react.strict_mode"):60108,xe=a?Symbol.for("react.profiler"):60114,pe=a?Symbol.for("react.provider"):60109,Se=a?Symbol.for("react.context"):60110,Ae=a?Symbol.for("react.async_mode"):60111,Ie=a?Symbol.for("react.concurrent_mode"):60111,ze=a?Symbol.for("react.forward_ref"):60112,Me=a?Symbol.for("react.suspense"):60113,me=a?Symbol.for("react.suspense_list"):60120,oe=a?Symbol.for("react.memo"):60115,E=a?Symbol.for("react.lazy"):60116,y=a?Symbol.for("react.block"):60121,x=a?Symbol.for("react.fundamental"):60117,b=a?Symbol.for("react.responder"):60118,ee=a?Symbol.for("react.scope"):60119;function te(de){if(typeof de=="object"&&de!==null){var ye=de.$$typeof;switch(ye){case Ce:switch(de=de.type,de){case Ae:case Ie:case he:case xe:case Fe:case Me:return de;default:switch(de=de&&de.$$typeof,de){case Se:case ze:case E:case oe:case pe:return de;default:return ye}}case ke:return ye}}}function ne(de){return te(de)===Ie}z=Ae,z=Ie,z=Se,z=pe,z=Ce,z=ze,z=he,z=E,z=oe,z=ke,z=xe,z=Fe,z=Me,z=function(de){return ne(de)||te(de)===Ae},z=ne,z=function(de){return te(de)===Se},z=function(de){return te(de)===pe},z=function(de){return typeof de=="object"&&de!==null&&de.$$typeof===Ce},z=function(de){return te(de)===ze},rt.isFragment=function(de){return te(de)===he},z=function(de){return te(de)===E},z=function(de){return te(de)===oe},z=function(de){return te(de)===ke},z=function(de){return te(de)===xe},z=function(de){return te(de)===Fe},z=function(de){return te(de)===Me},z=function(de){return typeof de=="string"||typeof de=="function"||de===he||de===Ie||de===xe||de===Fe||de===Me||de===me||typeof de=="object"&&de!==null&&(de.$$typeof===E||de.$$typeof===oe||de.$$typeof===pe||de.$$typeof===Se||de.$$typeof===ze||de.$$typeof===x||de.$$typeof===b||de.$$typeof===ee||de.$$typeof===y)},z=te},16357:function(Ft,rt,z){"use strict";Ft.exports=z(42767)},16404:function(Ft,rt){"use strict";var z;var a=Symbol.for("react.element"),Ce=Symbol.for("react.portal"),ke=Symbol.for("react.fragment"),he=Symbol.for("react.strict_mode"),Fe=Symbol.for("react.profiler"),xe=Symbol.for("react.provider"),pe=Symbol.for("react.context"),Se=Symbol.for("react.server_context"),Ae=Symbol.for("react.forward_ref"),Ie=Symbol.for("react.suspense"),ze=Symbol.for("react.suspense_list"),Me=Symbol.for("react.memo"),me=Symbol.for("react.lazy"),oe=Symbol.for("react.offscreen"),E;E=Symbol.for("react.module.reference");function y(x){if(typeof x=="object"&&x!==null){var b=x.$$typeof;switch(b){case a:switch(x=x.type,x){case ke:case Fe:case he:case Ie:case ze:return x;default:switch(x=x&&x.$$typeof,x){case Se:case pe:case Ae:case me:case Me:case xe:return x;default:return b}}case Ce:return b}}}z=pe,z=xe,z=a,z=Ae,z=ke,z=me,z=Me,z=Ce,z=Fe,z=he,z=Ie,z=ze,z=function(){return!1},z=function(){return!1},z=function(x){return y(x)===pe},z=function(x){return y(x)===xe},z=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===a},z=function(x){return y(x)===Ae},z=function(x){return y(x)===ke},z=function(x){return y(x)===me},z=function(x){return y(x)===Me},z=function(x){return y(x)===Ce},z=function(x){return y(x)===Fe},z=function(x){return y(x)===he},z=function(x){return y(x)===Ie},z=function(x){return y(x)===ze},z=function(x){return typeof x=="string"||typeof x=="function"||x===ke||x===Fe||x===he||x===Ie||x===ze||x===oe||typeof x=="object"&&x!==null&&(x.$$typeof===me||x.$$typeof===Me||x.$$typeof===xe||x.$$typeof===pe||x.$$typeof===Ae||x.$$typeof===E||x.getModuleId!==void 0)},z=y},80705:function(Ft,rt,z){"use strict";z(16404)},3510:function(Ft,rt,z){"use strict";z.r(rt),z.d(rt,{Panel:function(){return Ge},default:function(){return We}});var a=z(87462),Ce=z(74902),ke=z(97685),he=z(71002),Fe=z(94184),xe=z.n(Fe),pe=z(21770),Se=z(80334),Ae=z(67294),Ie=z(45987),ze=z(50344),Me=z(1413),me=z(4942),oe=z(62874),E=z(15105),y=Ae.forwardRef(function(Ue,Ye){var it=Ue.prefixCls,lt=Ue.forceRender,Bt=Ue.className,ct=Ue.style,nt=Ue.children,Ze=Ue.isActive,yt=Ue.role,ht=Ue.classNames,Je=Ue.styles,ot=Ae.useState(Ze||lt),Ct=(0,ke.Z)(ot,2),kt=Ct[0],Mt=Ct[1];return Ae.useEffect(function(){(lt||Ze)&&Mt(!0)},[lt,Ze]),kt?Ae.createElement("div",{ref:Ye,className:xe()("".concat(it,"-content"),(0,me.Z)((0,me.Z)({},"".concat(it,"-content-active"),Ze),"".concat(it,"-content-inactive"),!Ze),Bt),style:ct,role:yt},Ae.createElement("div",{className:xe()("".concat(it,"-content-box"),ht==null?void 0:ht.body),style:Je==null?void 0:Je.body},nt)):null});y.displayName="PanelContent";var x=y,b=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],ee=Ae.forwardRef(function(Ue,Ye){var it=Ue.showArrow,lt=it===void 0?!0:it,Bt=Ue.headerClass,ct=Ue.isActive,nt=Ue.onItemClick,Ze=Ue.forceRender,yt=Ue.className,ht=Ue.classNames,Je=ht===void 0?{}:ht,ot=Ue.styles,Ct=ot===void 0?{}:ot,kt=Ue.prefixCls,Mt=Ue.collapsible,st=Ue.accordion,ut=Ue.panelKey,un=Ue.extra,Pn=Ue.header,Rn=Ue.expandIcon,bt=Ue.openMotion,An=Ue.destroyInactivePanel,Nn=Ue.children,Qt=(0,Ie.Z)(Ue,b),zt=Mt==="disabled",jt=un!=null&&typeof un!="boolean",sn=(0,me.Z)((0,me.Z)((0,me.Z)({onClick:function(){nt==null||nt(ut)},onKeyDown:function(Un){(Un.key==="Enter"||Un.keyCode===E.Z.ENTER||Un.which===E.Z.ENTER)&&(nt==null||nt(ut))},role:st?"tab":"button"},"aria-expanded",ct),"aria-disabled",zt),"tabIndex",zt?-1:0),vt=typeof Rn=="function"?Rn(Ue):Ae.createElement("i",{className:"arrow"}),Tt=vt&&Ae.createElement("div",(0,a.Z)({className:"".concat(kt,"-expand-icon")},["header","icon"].includes(Mt)?sn:{}),vt),qt=xe()("".concat(kt,"-item"),(0,me.Z)((0,me.Z)({},"".concat(kt,"-item-active"),ct),"".concat(kt,"-item-disabled"),zt),yt),St=xe()(Bt,"".concat(kt,"-header"),(0,me.Z)({},"".concat(kt,"-collapsible-").concat(Mt),!!Mt),Je.header),Ke=(0,Me.Z)({className:St,style:Ct.header},["header","icon"].includes(Mt)?{}:sn);return Ae.createElement("div",(0,a.Z)({},Qt,{ref:Ye,className:qt}),Ae.createElement("div",Ke,lt&&Tt,Ae.createElement("span",(0,a.Z)({className:"".concat(kt,"-header-text")},Mt==="header"?sn:{}),Pn),jt&&Ae.createElement("div",{className:"".concat(kt,"-extra")},un)),Ae.createElement(oe.Z,(0,a.Z)({visible:ct,leavedClassName:"".concat(kt,"-content-hidden")},bt,{forceRender:Ze,removeOnLeave:An}),function(ln,Un){var Ca=ln.className,Cu=ln.style;return Ae.createElement(x,{ref:Un,prefixCls:kt,className:Ca,classNames:Je,style:Cu,styles:Ct,isActive:ct,forceRender:Ze,role:st?"tabpanel":void 0},Nn)}))}),te=ee,ne=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],de=function(Ye,it){var lt=it.prefixCls,Bt=it.accordion,ct=it.collapsible,nt=it.destroyInactivePanel,Ze=it.onItemClick,yt=it.activeKey,ht=it.openMotion,Je=it.expandIcon;return Ye.map(function(ot,Ct){var kt=ot.children,Mt=ot.label,st=ot.key,ut=ot.collapsible,un=ot.onItemClick,Pn=ot.destroyInactivePanel,Rn=(0,Ie.Z)(ot,ne),bt=String(st!=null?st:Ct),An=ut!=null?ut:ct,Nn=Pn!=null?Pn:nt,Qt=function(sn){An!=="disabled"&&(Ze(sn),un==null||un(sn))},zt=!1;return Bt?zt=yt[0]===bt:zt=yt.indexOf(bt)>-1,Ae.createElement(te,(0,a.Z)({},Rn,{prefixCls:lt,key:bt,panelKey:bt,isActive:zt,accordion:Bt,openMotion:ht,expandIcon:Je,header:Mt,collapsible:An,onItemClick:Qt,destroyInactivePanel:Nn}),kt)})},ye=function(Ye,it,lt){if(!Ye)return null;var Bt=lt.prefixCls,ct=lt.accordion,nt=lt.collapsible,Ze=lt.destroyInactivePanel,yt=lt.onItemClick,ht=lt.activeKey,Je=lt.openMotion,ot=lt.expandIcon,Ct=Ye.key||String(it),kt=Ye.props,Mt=kt.header,st=kt.headerClass,ut=kt.destroyInactivePanel,un=kt.collapsible,Pn=kt.onItemClick,Rn=!1;ct?Rn=ht[0]===Ct:Rn=ht.indexOf(Ct)>-1;var bt=un!=null?un:nt,An=function(zt){bt!=="disabled"&&(yt(zt),Pn==null||Pn(zt))},Nn={key:Ct,panelKey:Ct,header:Mt,headerClass:st,isActive:Rn,prefixCls:Bt,destroyInactivePanel:ut!=null?ut:Ze,openMotion:Je,accordion:ct,children:Ye.props.children,onItemClick:An,expandIcon:ot,collapsible:bt};return typeof Ye.type=="string"?Ye:(Object.keys(Nn).forEach(function(Qt){typeof Nn[Qt]=="undefined"&&delete Nn[Qt]}),Ae.cloneElement(Ye,Nn))};function fe(Ue,Ye,it){return Array.isArray(Ue)?de(Ue,it):(0,ze.Z)(Ye).map(function(lt,Bt){return ye(lt,Bt,it)})}var ve=fe,Ne=z(64217);function Le(Ue){var Ye=Ue;if(!Array.isArray(Ye)){var it=(0,he.Z)(Ye);Ye=it==="number"||it==="string"?[Ye]:[]}return Ye.map(function(lt){return String(lt)})}var Re=Ae.forwardRef(function(Ue,Ye){var it=Ue.prefixCls,lt=it===void 0?"rc-collapse":it,Bt=Ue.destroyInactivePanel,ct=Bt===void 0?!1:Bt,nt=Ue.style,Ze=Ue.accordion,yt=Ue.className,ht=Ue.children,Je=Ue.collapsible,ot=Ue.openMotion,Ct=Ue.expandIcon,kt=Ue.activeKey,Mt=Ue.defaultActiveKey,st=Ue.onChange,ut=Ue.items,un=xe()(lt,yt),Pn=(0,pe.Z)([],{value:kt,onChange:function(jt){return st==null?void 0:st(jt)},defaultValue:Mt,postState:Le}),Rn=(0,ke.Z)(Pn,2),bt=Rn[0],An=Rn[1],Nn=function(jt){return An(function(){if(Ze)return bt[0]===jt?[]:[jt];var sn=bt.indexOf(jt),vt=sn>-1;return vt?bt.filter(function(Tt){return Tt!==jt}):[].concat((0,Ce.Z)(bt),[jt])})};(0,Se.ZP)(!ht,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var Qt=ve(ut,ht,{prefixCls:lt,accordion:Ze,openMotion:ot,expandIcon:Ct,collapsible:Je,destroyInactivePanel:ct,onItemClick:Nn,activeKey:bt});return Ae.createElement("div",(0,a.Z)({ref:Ye,className:un,style:nt,role:Ze?"tablist":void 0},(0,Ne.Z)(Ue,{aria:!0,data:!0})),Qt)}),He=Object.assign(Re,{Panel:te}),We=He,Ge=He.Panel},63697:function(Ft,rt,z){"use strict";var a=z(27484),Ce=z.n(a),ke=z(6833),he=z.n(ke),Fe=z(96036),xe=z.n(Fe),pe=z(55183),Se=z.n(pe),Ae=z(172),Ie=z.n(Ae),ze=z(28734),Me=z.n(ze),me=z(10285),oe=z.n(me);Ce().extend(oe()),Ce().extend(Me()),Ce().extend(he()),Ce().extend(xe()),Ce().extend(Se()),Ce().extend(Ie()),Ce().extend(function(ee,te){var ne=te.prototype,de=ne.format;ne.format=function(fe){var ve=(fe||"").replace("Wo","wo");return de.bind(this)(ve)}});var E={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},y=function(te){var ne=E[te];return ne||te.split("_")[0]},x=function(){},b={getNow:function(){var te=Ce()();return typeof te.tz=="function"?te.tz():te},getFixedDate:function(te){return Ce()(te,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(te){return te.endOf("month")},getWeekDay:function(te){var ne=te.locale("en");return ne.weekday()+ne.localeData().firstDayOfWeek()},getYear:function(te){return te.year()},getMonth:function(te){return te.month()},getDate:function(te){return te.date()},getHour:function(te){return te.hour()},getMinute:function(te){return te.minute()},getSecond:function(te){return te.second()},getMillisecond:function(te){return te.millisecond()},addYear:function(te,ne){return te.add(ne,"year")},addMonth:function(te,ne){return te.add(ne,"month")},addDate:function(te,ne){return te.add(ne,"day")},setYear:function(te,ne){return te.year(ne)},setMonth:function(te,ne){return te.month(ne)},setDate:function(te,ne){return te.date(ne)},setHour:function(te,ne){return te.hour(ne)},setMinute:function(te,ne){return te.minute(ne)},setSecond:function(te,ne){return te.second(ne)},setMillisecond:function(te,ne){return te.millisecond(ne)},isAfter:function(te,ne){return te.isAfter(ne)},isValidate:function(te){return te.isValid()},locale:{getWeekFirstDay:function(te){return Ce()().locale(y(te)).localeData().firstDayOfWeek()},getWeekFirstDate:function(te,ne){return ne.locale(y(te)).weekday(0)},getWeek:function(te,ne){return ne.locale(y(te)).week()},getShortWeekDays:function(te){return Ce()().locale(y(te)).localeData().weekdaysMin()},getShortMonths:function(te){return Ce()().locale(y(te)).localeData().monthsShort()},format:function(te,ne,de){return ne.locale(y(te)).format(de)},parse:function(te,ne,de){for(var ye=y(te),fe=0;feie.length)&&(we=ie.length);for(var Oe=0,Qe=Array(we);Oeie.length)&&(we=ie.length);for(var Oe=0,Qe=new Array(we);Oe=19)return!0;var mt=(0,We.isMemo)(we)?we.type.type:we.type;return!(typeof mt=="function"&&!((Oe=mt.prototype)!==null&&Oe!==void 0&&Oe.render)&&mt.$$typeof!==We.ForwardRef||typeof we=="function"&&!((Qe=we.prototype)!==null&&Qe!==void 0&&Qe.render)&&we.$$typeof!==We.ForwardRef)};function ht(ie){return(0,me.isValidElement)(ie)&&!lt(ie)}var Je=function(we){return ht(we)&&yt(we)},ot=function(we){if(we&&ht(we)){var Oe=we;return Oe.props.propertyIsEnumerable("ref")?Oe.props.ref:Oe.ref}return null};function Ct(ie,we,Oe,Qe){if(!we.length)return Oe;var mt=_toArray(we),It=mt[0],$t=mt.slice(1),dn;return!ie&&typeof It=="number"?dn=[]:Array.isArray(ie)?dn=_toConsumableArray(ie):dn=_objectSpread({},ie),Qe&&Oe===void 0&&$t.length===1?delete dn[It][$t[0]]:dn[It]=Ct(dn[It],$t,Oe,Qe),dn}function kt(ie,we,Oe){var Qe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return we.length&&Qe&&Oe===void 0&&!get(ie,we.slice(0,-1))?ie:Ct(ie,we,Oe,Qe)}function Mt(ie){return _typeof(ie)==="object"&&ie!==null&&Object.getPrototypeOf(ie)===Object.prototype}function st(ie){return Array.isArray(ie)?[]:{}}var ut=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function un(){for(var ie=arguments.length,we=new Array(ie),Oe=0;Oe1&&arguments[1]!==void 0?arguments[1]:!1,Oe;we===!1?Oe={aria:!0,data:!0,attr:!0}:we===!0?Oe={aria:!0}:Oe=Un({},we);var Qe={};return Object.keys(ie).forEach(function(mt){(Oe.aria&&(mt==="role"||or(mt,nr))||Oe.data&&or(mt,cu)||Oe.attr&&Da.includes(mt))&&(Qe[mt]=ie[mt])}),Qe}var Zt=z(53550),xn=z(98280),vl=z(94184),Er=z.n(vl);function er(ie,we){return ie!==void 0?ie:we?"bottomRight":"bottomLeft"}var Pa=me.createContext(null),Za=Pa,qn={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function Vn(ie){var we=ie.popupElement,Oe=ie.popupStyle,Qe=ie.popupClassName,mt=ie.popupAlign,It=ie.transitionName,$t=ie.getPopupContainer,dn=ie.children,ta=ie.range,aa=ie.placement,wn=ie.builtinPlacements,ja=wn===void 0?qn:wn,$a=ie.direction,Ra=ie.visible,wa=ie.onClose,eu=me.useContext(Za),za=eu.prefixCls,_a="".concat(za,"-dropdown"),Iu=er(aa,$a==="rtl");return me.createElement(xn.Z,{showAction:[],hideAction:["click"],popupPlacement:Iu,builtinPlacements:ja,prefixCls:_a,popupTransitionName:It,popup:we,popupAlign:mt,popupVisible:Ra,popupClassName:Er()(Qe,(0,Zt.Z)((0,Zt.Z)({},"".concat(_a,"-range"),ta),"".concat(_a,"-rtl"),$a==="rtl")),popupStyle:Oe,stretch:"minWidth",getPopupContainer:$t,onPopupVisibleChange:function(ru){ru||wa()}},dn)}var Qa=Vn;function gu(ie,we){for(var Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",Qe=String(ie);Qe.length2&&arguments[2]!==void 0?arguments[2]:[],Qe=me.useState([!1,!1]),mt=Me(Qe,2),It=mt[0],$t=mt[1],dn=function(wn,ja){$t(function($a){return ir($a,ja,wn)})},ta=me.useMemo(function(){return It.map(function(aa,wn){if(aa)return!0;var ja=ie[wn];return ja?!!(!Oe[wn]&&!ja||ja&&we(ja,{activeIndex:wn})):!1})},[ie,It,we,Oe]);return[ta,dn]}function oa(ie,we,Oe,Qe,mt){var It="",$t=[];return ie&&$t.push(mt?"hh":"HH"),we&&$t.push("mm"),Oe&&$t.push("ss"),It=$t.join(":"),Qe&&(It+=".SSS"),mt&&(It+=" A"),It}function Ta(ie,we,Oe,Qe,mt,It){var $t=ie.fieldDateTimeFormat,dn=ie.fieldDateFormat,ta=ie.fieldTimeFormat,aa=ie.fieldMonthFormat,wn=ie.fieldYearFormat,ja=ie.fieldWeekFormat,$a=ie.fieldQuarterFormat,Ra=ie.yearFormat,wa=ie.cellYearFormat,eu=ie.cellQuarterFormat,za=ie.dayFormat,_a=ie.cellDateFormat,Iu=oa(we,Oe,Qe,mt,It);return(0,Se.Z)((0,Se.Z)({},ie),{},{fieldDateTimeFormat:$t||"YYYY-MM-DD ".concat(Iu),fieldDateFormat:dn||"YYYY-MM-DD",fieldTimeFormat:ta||Iu,fieldMonthFormat:aa||"YYYY-MM",fieldYearFormat:wn||"YYYY",fieldWeekFormat:ja||"gggg-wo",fieldQuarterFormat:$a||"YYYY-[Q]Q",yearFormat:Ra||"YYYY",cellYearFormat:wa||"YYYY",cellQuarterFormat:eu||"[Q]Q",cellDateFormat:_a||za||"D"})}function hu(ie,we){var Oe=we.showHour,Qe=we.showMinute,mt=we.showSecond,It=we.showMillisecond,$t=we.use12Hours;return me.useMemo(function(){return Ta(ie,Oe,Qe,mt,It,$t)},[ie,Oe,Qe,mt,It,$t])}var ft=z(19706);function re(ie,we,Oe){return Oe!=null?Oe:we.some(function(Qe){return ie.includes(Qe)})}var ge=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function De(ie){var we=ul(ie,ge),Oe=ie.format,Qe=ie.picker,mt=null;return Oe&&(mt=Oe,Array.isArray(mt)&&(mt=mt[0]),mt=(0,ft.Z)(mt)==="object"?mt.format:mt),Qe==="time"&&(we.format=mt),[we,mt]}function Xe(ie){return ie&&typeof ie=="string"}function tt(ie,we,Oe,Qe){return[ie,we,Oe,Qe].some(function(mt){return mt!==void 0})}function Ot(ie,we,Oe,Qe,mt){var It=we,$t=Oe,dn=Qe;if(!ie&&!It&&!$t&&!dn&&!mt)It=!0,$t=!0,dn=!0;else if(ie){var ta,aa,wn,ja=[It,$t,dn].some(function(wa){return wa===!1}),$a=[It,$t,dn].some(function(wa){return wa===!0}),Ra=ja?!0:!$a;It=(ta=It)!==null&&ta!==void 0?ta:Ra,$t=(aa=$t)!==null&&aa!==void 0?aa:Ra,dn=(wn=dn)!==null&&wn!==void 0?wn:Ra}return[It,$t,dn,mt]}function Lt(ie){var we=ie.showTime,Oe=De(ie),Qe=Me(Oe,2),mt=Qe[0],It=Qe[1],$t=we&&(0,ft.Z)(we)==="object"?we:{},dn=(0,Se.Z)((0,Se.Z)({defaultOpenValue:$t.defaultOpenValue||$t.defaultValue},mt),$t),ta=dn.showMillisecond,aa=dn.showHour,wn=dn.showMinute,ja=dn.showSecond,$a=tt(aa,wn,ja,ta),Ra=Ot($a,aa,wn,ja,ta),wa=Me(Ra,3);return aa=wa[0],wn=wa[1],ja=wa[2],[dn,(0,Se.Z)((0,Se.Z)({},dn),{},{showHour:aa,showMinute:wn,showSecond:ja,showMillisecond:ta}),dn.format,It]}function Wn(ie,we,Oe,Qe,mt){var It=ie==="time";if(ie==="datetime"||It){for(var $t=Qe,dn=On(ie,mt,null),ta=dn,aa=[we,Oe],wn=0;wn1&&($t=we.addDate($t,-7)),$t}function ya(ie,we){var Oe=we.generateConfig,Qe=we.locale,mt=we.format;return ie?typeof mt=="function"?mt(ie):Oe.locale.format(Qe.locale,ie,mt):""}function Ua(ie,we,Oe){var Qe=we,mt=["getHour","getMinute","getSecond","getMillisecond"],It=["setHour","setMinute","setSecond","setMillisecond"];return It.forEach(function($t,dn){Oe?Qe=ie[$t](Qe,ie[mt[dn]](Oe)):Qe=ie[$t](Qe,0)}),Qe}function zi(ie,we,Oe,Qe,mt){var It=oe(function($t,dn){return!!(Oe&&Oe($t,dn)||Qe&&ie.isAfter(Qe,$t)&&!Wa(ie,we,Qe,$t,dn.type)||mt&&ie.isAfter($t,mt)&&!Wa(ie,we,mt,$t,dn.type))});return It}function Ki(ie,we,Oe){return me.useMemo(function(){var Qe=On(ie,we,Oe),mt=_u(Qe),It=mt[0],$t=(0,ft.Z)(It)==="object"&&It.type==="mask"?It.format:null;return[mt.map(function(dn){return typeof dn=="string"||typeof dn=="function"?dn:dn.format}),$t]},[ie,we,Oe])}function Yo(ie,we,Oe){return typeof ie[0]=="function"||Oe?!0:we}function fo(ie,we,Oe,Qe){var mt=oe(function(It,$t){var dn=(0,Se.Z)({type:we},$t);if(delete dn.activeIndex,!ie.isValidate(It)||Oe&&Oe(It,dn))return!0;if((we==="date"||we==="time")&&Qe){var ta,aa=$t&&$t.activeIndex===1?"end":"start",wn=((ta=Qe.disabledTime)===null||ta===void 0?void 0:ta.call(Qe,It,aa,{from:dn.from}))||{},ja=wn.disabledHours,$a=wn.disabledMinutes,Ra=wn.disabledSeconds,wa=wn.disabledMilliseconds,eu=Qe.disabledHours,za=Qe.disabledMinutes,_a=Qe.disabledSeconds,Iu=ja||eu,Lu=$a||za,ru=Ra||_a,Ku=ie.getHour(It),Fu=ie.getMinute(It),Ou=ie.getSecond(It),xr=ie.getMillisecond(It);if(Iu&&Iu().includes(Ku)||Lu&&Lu(Ku).includes(Fu)||ru&&ru(Ku,Fu).includes(Ou)||wa&&wa(Ku,Fu,Ou).includes(xr))return!0}return!1});return mt}function du(ie){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Oe=me.useMemo(function(){var Qe=ie&&_u(ie);return we&&Qe&&(Qe[1]=Qe[1]||Qe[0]),Qe},[ie,we]);return Oe}function Gu(ie,we){var Oe=ie.generateConfig,Qe=ie.locale,mt=ie.picker,It=mt===void 0?"date":mt,$t=ie.prefixCls,dn=$t===void 0?"rc-picker":$t,ta=ie.styles,aa=ta===void 0?{}:ta,wn=ie.classNames,ja=wn===void 0?{}:wn,$a=ie.order,Ra=$a===void 0?!0:$a,wa=ie.components,eu=wa===void 0?{}:wa,za=ie.inputRender,_a=ie.allowClear,Iu=ie.clearIcon,Lu=ie.needConfirm,ru=ie.multiple,Ku=ie.format,Fu=ie.inputReadOnly,Ou=ie.disabledDate,xr=ie.minDate,Nr=ie.maxDate,pu=ie.showTime,pr=ie.value,il=ie.defaultValue,ur=ie.pickerValue,Au=ie.defaultPickerValue,Vu=du(pr),Ju=du(il),qr=du(ur),Nl=du(Au),qu=It==="date"&&pu?"datetime":It,fr=qu==="time"||qu==="datetime",zu=fr||ru,fu=Lu!=null?Lu:fr,rr=Lt(ie),lr=Me(rr,4),eo=lr[0],to=lr[1],ou=lr[2],jl=lr[3],Vl=hu(Qe,to),wo=me.useMemo(function(){return Wn(qu,ou,jl,eo,Vl)},[qu,ou,jl,eo,Vl]),Ro=me.useMemo(function(){return(0,Se.Z)((0,Se.Z)({},ie),{},{prefixCls:dn,locale:Vl,picker:It,styles:aa,classNames:ja,order:Ra,components:(0,Se.Z)({input:za},eu),clearIcon:ra(dn,_a,Iu),showTime:wo,value:Vu,defaultValue:Ju,pickerValue:qr,defaultPickerValue:Nl},we==null?void 0:we())},[ie]),No=Ki(qu,Vl,Ku),ii=Me(No,2),po=ii[0],So=ii[1],mo=Yo(po,Fu,ru),ki=zi(Oe,Qe,Ou,xr,Nr),Ao=fo(Oe,It,ki,wo),Vi=me.useMemo(function(){return(0,Se.Z)((0,Se.Z)({},Ro),{},{needConfirm:fu,inputReadOnly:mo,disabledDate:ki})},[Ro,fu,mo,ki]);return[Vi,qu,zu,po,So,Ao]}var pl=function(we){return+setTimeout(we,16)},Ir=function(we){return clearTimeout(we)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(pl=function(we){return window.requestAnimationFrame(we)},Ir=function(we){return window.cancelAnimationFrame(we)});var Cl=0,ol=new Map;function ti(ie){ol.delete(ie)}var io=function(we){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Cl+=1;var Qe=Cl;function mt(It){if(It===0)ti(Qe),we();else{var $t=pl(function(){mt(It-1)});ol.set(Qe,$t)}}return mt(Oe),Qe};io.cancel=function(ie){var we=ol.get(ie);return ti(ie),Ir(we)};var Xo=io;function Sn(ie,we,Oe){var Qe=Re(we,{value:ie}),mt=Me(Qe,2),It=mt[0],$t=mt[1],dn=me.useRef(ie),ta=me.useRef(),aa=function(){Xo.cancel(ta.current)},wn=oe(function(){$t(dn.current),Oe&&It!==dn.current&&Oe(dn.current)}),ja=oe(function($a,Ra){aa(),dn.current=$a,$a||Ra?wn():ta.current=Xo(wn)});return me.useEffect(function(){return aa},[]),[It,ja]}function Li(ie,we){var Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],Qe=arguments.length>3?arguments[3]:void 0,mt=Oe.every(function(wn){return wn})?!1:ie,It=Sn(mt,we||!1,Qe),$t=Me(It,2),dn=$t[0],ta=$t[1];function aa(wn){var ja=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!ja.inherit||dn)&&ta(wn,ja.force)}return[dn,aa]}function ic(ie){var we=me.useRef();return me.useImperativeHandle(ie,function(){var Oe;return{nativeElement:(Oe=we.current)===null||Oe===void 0?void 0:Oe.nativeElement,focus:function(mt){var It;(It=we.current)===null||It===void 0||It.focus(mt)},blur:function(){var mt;(mt=we.current)===null||mt===void 0||mt.blur()}}}),we}function lc(ie,we){return me.useMemo(function(){return ie||(we?(vt(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(we).map(function(Oe){var Qe=Me(Oe,2),mt=Qe[0],It=Qe[1];return{label:mt,value:It}})):[])},[ie,we])}function tc(ie,we){var Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Qe=me.useRef(we);Qe.current=we,fe(function(){if(ie)Qe.current(ie);else{var mt=Xo(function(){Qe.current(ie)},Oe);return function(){Xo.cancel(mt)}}},[ie])}function nc(ie){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Qe=me.useState(0),mt=Me(Qe,2),It=mt[0],$t=mt[1],dn=me.useState(!1),ta=Me(dn,2),aa=ta[0],wn=ta[1],ja=me.useRef([]),$a=me.useRef(null),Ra=me.useRef(null),wa=function(ru){$a.current=ru},eu=function(ru){return $a.current===ru},za=function(ru){wn(ru)},_a=function(ru){return ru&&(Ra.current=ru),Ra.current},Iu=function(ru){var Ku=ja.current,Fu=new Set(Ku.filter(function(xr){return ru[xr]||we[xr]})),Ou=Ku[Ku.length-1]===0?1:0;return Fu.size>=2||ie[Ou]?null:Ou};return tc(aa||Oe,function(){aa||(ja.current=[],wa(null))}),me.useEffect(function(){aa&&ja.current.push(It)},[aa,It]),[aa,za,_a,It,$t,Iu,ja.current,wa,eu]}function Jl(ie,we,Oe,Qe,mt,It){var $t=Oe[Oe.length-1],dn=function(aa,wn){var ja=Me(ie,2),$a=ja[0],Ra=ja[1],wa=(0,Se.Z)((0,Se.Z)({},wn),{},{from:Jt(ie,Oe)});return $t===1&&we[0]&&$a&&!Wa(Qe,mt,$a,aa,wa.type)&&Qe.isAfter($a,aa)||$t===0&&we[1]&&Ra&&!Wa(Qe,mt,Ra,aa,wa.type)&&Qe.isAfter(aa,Ra)?!0:It==null?void 0:It(aa,wa)};return dn}function Vs(ie,we,Oe,Qe){switch(we){case"date":case"week":return ie.addMonth(Oe,Qe);case"month":case"quarter":return ie.addYear(Oe,Qe);case"year":return ie.addYear(Oe,Qe*10);case"decade":return ie.addYear(Oe,Qe*100);default:return Oe}}var ri=[];function Gs(ie,we,Oe,Qe,mt,It,$t,dn){var ta=arguments.length>8&&arguments[8]!==void 0?arguments[8]:ri,aa=arguments.length>9&&arguments[9]!==void 0?arguments[9]:ri,wn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:ri,ja=arguments.length>11?arguments[11]:void 0,$a=arguments.length>12?arguments[12]:void 0,Ra=arguments.length>13?arguments[13]:void 0,wa=$t==="time",eu=It||0,za=function(qr){var Nl=ie.getNow();return wa&&(Nl=Ua(ie,Nl)),ta[qr]||Oe[qr]||Nl},_a=Me(aa,2),Iu=_a[0],Lu=_a[1],ru=Re(function(){return za(0)},{value:Iu}),Ku=Me(ru,2),Fu=Ku[0],Ou=Ku[1],xr=Re(function(){return za(1)},{value:Lu}),Nr=Me(xr,2),pu=Nr[0],pr=Nr[1],il=me.useMemo(function(){var Ju=[Fu,pu][eu];return wa?Ju:Ua(ie,Ju,wn[eu])},[wa,Fu,pu,eu,ie,wn]),ur=function(qr){var Nl=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",qu=[Ou,pr][eu];qu(qr);var fr=[Fu,pu];fr[eu]=qr,ja&&(!Wa(ie,we,Fu,fr[0],$t)||!Wa(ie,we,pu,fr[1],$t))&&ja(fr,{source:Nl,range:eu===1?"end":"start",mode:Qe})},Au=function(qr,Nl){if(dn){var qu={date:"month",week:"month",month:"year",quarter:"year"},fr=qu[$t];if(fr&&!Wa(ie,we,qr,Nl,fr))return Vs(ie,$t,Nl,-1);if($t==="year"&&qr){var zu=Math.floor(ie.getYear(qr)/10),fu=Math.floor(ie.getYear(Nl)/10);if(zu!==fu)return Vs(ie,$t,Nl,-1)}}return Nl},Vu=me.useRef(null);return ve(function(){if(mt&&!ta[eu]){var Ju=wa?null:ie.getNow();if(Vu.current!==null&&Vu.current!==eu?Ju=[Fu,pu][eu^1]:Oe[eu]?Ju=eu===0?Oe[0]:Au(Oe[0],Oe[1]):Oe[eu^1]&&(Ju=Oe[eu^1]),Ju){$a&&ie.isAfter($a,Ju)&&(Ju=$a);var qr=dn?Vs(ie,$t,Ju,1):Ju;Ra&&ie.isAfter(qr,Ra)&&(Ju=dn?Vs(ie,$t,Ra,-1):Ra),ur(Ju,"reset")}}},[mt,eu,Oe[eu]]),me.useEffect(function(){mt?Vu.current=eu:Vu.current=null},[mt,eu]),ve(function(){mt&&ta&&ta[eu]&&ur(ta[eu],"reset")},[mt,eu]),[il,ur]}function Wu(ie,we){var Oe=me.useRef(ie),Qe=me.useState({}),mt=Me(Qe,2),It=mt[1],$t=function(aa){return aa&&we!==void 0?we:Oe.current},dn=function(aa){Oe.current=aa,It({})};return[$t,dn,$t(!0)]}var Qi=[];function pc(ie,we,Oe){var Qe=function($t){return $t.map(function(dn){return ya(dn,{generateConfig:ie,locale:we,format:Oe[0]})})},mt=function($t,dn){for(var ta=Math.max($t.length,dn.length),aa=-1,wn=0;wn1&&arguments[1]!==void 0?arguments[1]:{},Oe=[];return me.Children.forEach(ie,function(Qe){Qe==null&&!we.keepEmpty||(Array.isArray(Qe)?Oe=Oe.concat(bi(Qe)):lt(Qe)&&Qe.props?Oe=Oe.concat(bi(Qe.props.children,we)):Oe.push(Qe))}),Oe}function cc(ie){"@babel/helpers - typeof";return cc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(we){return typeof we}:function(we){return we&&typeof Symbol=="function"&&we.constructor===Symbol&&we!==Symbol.prototype?"symbol":typeof we},cc(ie)}function ts(ie,we){if(cc(ie)!=="object"||ie===null)return ie;var Oe=ie[Symbol.toPrimitive];if(Oe!==void 0){var Qe=Oe.call(ie,we||"default");if(cc(Qe)!=="object")return Qe;throw new TypeError("@@toPrimitive must return a primitive value.")}return(we==="string"?String:Number)(ie)}function Hc(ie){var we=ts(ie,"string");return cc(we)==="symbol"?we:String(we)}function Nc(ie,we,Oe){return we=Hc(we),we in ie?Object.defineProperty(ie,we,{value:Oe,enumerable:!0,configurable:!0,writable:!0}):ie[we]=Oe,ie}function Pc(ie,we){var Oe=Object.keys(ie);if(Object.getOwnPropertySymbols){var Qe=Object.getOwnPropertySymbols(ie);we&&(Qe=Qe.filter(function(mt){return Object.getOwnPropertyDescriptor(ie,mt).enumerable})),Oe.push.apply(Oe,Qe)}return Oe}function Rr(ie){for(var we=1;we2&&arguments[2]!==void 0?arguments[2]:1,Qe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,mt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],It=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,$t=[],dn=Oe>=1?Oe|0:1,ta=ie;ta<=we;ta+=dn){var aa=mt.includes(ta);(!aa||!Qe)&&$t.push({label:gu(ta,It),value:ta,disabled:aa})}return $t}function no(ie){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Oe=arguments.length>2?arguments[2]:void 0,Qe=we||{},mt=Qe.use12Hours,It=Qe.hourStep,$t=It===void 0?1:It,dn=Qe.minuteStep,ta=dn===void 0?1:dn,aa=Qe.secondStep,wn=aa===void 0?1:aa,ja=Qe.millisecondStep,$a=ja===void 0?100:ja,Ra=Qe.hideDisabledOptions,wa=Qe.disabledTime,eu=Qe.disabledHours,za=Qe.disabledMinutes,_a=Qe.disabledSeconds,Iu=me.useMemo(function(){return Oe||ie.getNow()},[Oe,ie]);if(0)var Lu,ru,Ku;var Fu=me.useCallback(function(zu){var fu=(wa==null?void 0:wa(zu))||{};return[fu.disabledHours||eu||Es,fu.disabledMinutes||za||Es,fu.disabledSeconds||_a||Es,fu.disabledMilliseconds||Es]},[wa,eu,za,_a]),Ou=me.useMemo(function(){return Fu(Iu)},[Iu,Fu]),xr=Me(Ou,4),Nr=xr[0],pu=xr[1],pr=xr[2],il=xr[3],ur=me.useCallback(function(zu,fu,rr,lr){var eo=ws(0,23,$t,Ra,zu()),to=mt?eo.map(function(wo){return(0,Se.Z)((0,Se.Z)({},wo),{},{label:gu(wo.value%12||12,2)})}):eo,ou=function(Ro){return ws(0,59,ta,Ra,fu(Ro))},jl=function(Ro,No){return ws(0,59,wn,Ra,rr(Ro,No))},Vl=function(Ro,No,ii){return ws(0,999,$a,Ra,lr(Ro,No,ii),3)};return[to,ou,jl,Vl]},[Ra,$t,mt,$a,ta,wn]),Au=me.useMemo(function(){return ur(Nr,pu,pr,il)},[ur,Nr,pu,pr,il]),Vu=Me(Au,4),Ju=Vu[0],qr=Vu[1],Nl=Vu[2],qu=Vu[3],fr=function(fu,rr){var lr=function(){return Ju},eo=qr,to=Nl,ou=qu;if(rr){var jl=Fu(rr),Vl=Me(jl,4),wo=Vl[0],Ro=Vl[1],No=Vl[2],ii=Vl[3],po=ur(wo,Ro,No,ii),So=Me(po,4),mo=So[0],ki=So[1],Ao=So[2],Vi=So[3];lr=function(){return mo},eo=ki,to=Ao,ou=Vi}var Xi=Os(fu,lr,eo,to,ou,ie);return Xi};return[fr,Ju,qr,Nl,qu]}function Dc(ie){var we=ie.mode,Oe=ie.internalMode,Qe=ie.renderExtraFooter,mt=ie.showNow,It=ie.showTime,$t=ie.onSubmit,dn=ie.onNow,ta=ie.invalid,aa=ie.needConfirm,wn=ie.generateConfig,ja=ie.disabledDate,$a=me.useContext(Za),Ra=$a.prefixCls,wa=$a.locale,eu=$a.button,za=eu===void 0?"button":eu,_a=wn.getNow(),Iu=no(wn,It,_a),Lu=Me(Iu,1),ru=Lu[0],Ku=Qe==null?void 0:Qe(we),Fu=ja(_a,{type:we}),Ou=function(){if(!Fu){var Au=ru(_a);dn(Au)}},xr="".concat(Ra,"-now"),Nr="".concat(xr,"-btn"),pu=mt&&me.createElement("li",{className:xr},me.createElement("a",{className:Er()(Nr,Fu&&"".concat(Nr,"-disabled")),"aria-disabled":Fu,onClick:Ou},Oe==="date"?wa.today:wa.now)),pr=aa&&me.createElement("li",{className:"".concat(Ra,"-ok")},me.createElement(za,{disabled:ta,onClick:$t},wa.ok)),il=(pu||pr)&&me.createElement("ul",{className:"".concat(Ra,"-ranges")},pu,pr);return!Ku&&!il?null:me.createElement("div",{className:"".concat(Ra,"-footer")},Ku&&me.createElement("div",{className:"".concat(Ra,"-footer-extra")},Ku),il)}function Oc(ie,we,Oe){function Qe(mt,It){var $t=mt.findIndex(function(ta){return Wa(ie,we,ta,It,Oe)});if($t===-1)return[].concat(pe(mt),[It]);var dn=pe(mt);return dn.splice($t,1),dn}return Qe}var Ts=me.createContext(null);function ks(){return me.useContext(Ts)}function Fi(ie,we){var Oe=ie.prefixCls,Qe=ie.generateConfig,mt=ie.locale,It=ie.disabledDate,$t=ie.minDate,dn=ie.maxDate,ta=ie.cellRender,aa=ie.hoverValue,wn=ie.hoverRangeValue,ja=ie.onHover,$a=ie.values,Ra=ie.pickerValue,wa=ie.onSelect,eu=ie.prevIcon,za=ie.nextIcon,_a=ie.superPrevIcon,Iu=ie.superNextIcon,Lu=Qe.getNow(),ru={now:Lu,values:$a,pickerValue:Ra,prefixCls:Oe,disabledDate:It,minDate:$t,maxDate:dn,cellRender:ta,hoverValue:aa,hoverRangeValue:wn,onHover:ja,locale:mt,generateConfig:Qe,onSelect:wa,panelType:we,prevIcon:eu,nextIcon:za,superPrevIcon:_a,superNextIcon:Iu};return[ru,Lu]}var ac=me.createContext({});function ll(ie){for(var we=ie.rowNum,Oe=ie.colNum,Qe=ie.baseDate,mt=ie.getCellDate,It=ie.prefixColumn,$t=ie.rowClassName,dn=ie.titleFormat,ta=ie.getCellText,aa=ie.getCellClassName,wn=ie.headerCells,ja=ie.cellSelection,$a=ja===void 0?!0:ja,Ra=ie.disabledDate,wa=ks(),eu=wa.prefixCls,za=wa.panelType,_a=wa.now,Iu=wa.disabledDate,Lu=wa.cellRender,ru=wa.onHover,Ku=wa.hoverValue,Fu=wa.hoverRangeValue,Ou=wa.generateConfig,xr=wa.values,Nr=wa.locale,pu=wa.onSelect,pr=Ra||Iu,il="".concat(eu,"-cell"),ur=me.useContext(ac),Au=ur.onCellDblClick,Vu=function(rr){return xr.some(function(lr){return lr&&Wa(Ou,Nr,rr,lr,za)})},Ju=[],qr=0;qr1&&arguments[1]!==void 0?arguments[1]:!1;Po(al),za==null||za(al),ml&&Ji(al)},gs=function(al,ml){Vl(al),ml&&Gi(ml),Ji(ml,al)},Oo=function(al){if(Ao(al),Gi(al),jl!==ru){var ml=["decade","year"],Qu=[].concat(ml,["month"]),Zr={quarter:[].concat(ml,["quarter"]),week:[].concat(pe(Qu),["week"]),date:[].concat(pe(Qu),["date"])},pi=Zr[ru]||Qu,Uo=pi.indexOf(jl),ai=pi[Uo+1];ai&&gs(ai,al)}},Ls=me.useMemo(function(){var Cn,al;if(Array.isArray(Ou)){var ml=Me(Ou,2);Cn=ml[0],al=ml[1]}else Cn=Ou;return!Cn&&!al?null:(Cn=Cn||al,al=al||Cn,mt.isAfter(Cn,al)?[al,Cn]:[Cn,al])},[Ou,mt]),xi=Gn(xr,Nr,pu),To=il[wo]||Wc[wo]||$n,Si=me.useContext(ac),hs=me.useMemo(function(){return(0,Se.Z)((0,Se.Z)({},Si),{},{hideHeader:ur})},[Si,ur]),ko="".concat(Au,"-panel"),oc=ul(ie,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return me.createElement(ac.Provider,{value:hs},me.createElement("div",{ref:Vu,tabIndex:ta,className:Er()(ko,(0,Zt.Z)({},"".concat(ko,"-rtl"),It==="rtl"))},me.createElement(To,a({},oc,{showTime:lr,prefixCls:Au,locale:fu,generateConfig:mt,onModeChange:gs,pickerValue:Ci,onPickerValueChange:function(al){Gi(al,!0)},value:mo[0],onSelect:Oo,values:mo,cellRender:xi,hoverRangeValue:Ls,hoverValue:Fu}))))}var Ys=me.memo(me.forwardRef(bc)),Ac=Ys;function wc(ie){var we=ie.picker,Oe=ie.multiplePanel,Qe=ie.pickerValue,mt=ie.onPickerValueChange,It=ie.needConfirm,$t=ie.onSubmit,dn=ie.range,ta=ie.hoverValue,aa=me.useContext(Za),wn=aa.prefixCls,ja=aa.generateConfig,$a=me.useCallback(function(Iu,Lu){return Vs(ja,we,Iu,Lu)},[ja,we]),Ra=me.useMemo(function(){return $a(Qe,1)},[Qe,$a]),wa=function(Lu){mt($a(Lu,-1))},eu={onCellDblClick:function(){It&&$t()}},za=we==="time",_a=(0,Se.Z)((0,Se.Z)({},ie),{},{hoverValue:null,hoverRangeValue:null,hideHeader:za});return dn?_a.hoverRangeValue=ta:_a.hoverValue=ta,Oe?me.createElement("div",{className:"".concat(wn,"-panels")},me.createElement(ac.Provider,{value:(0,Se.Z)((0,Se.Z)({},eu),{},{hideNext:!0})},me.createElement(Ac,_a)),me.createElement(ac.Provider,{value:(0,Se.Z)((0,Se.Z)({},eu),{},{hidePrev:!0})},me.createElement(Ac,a({},_a,{pickerValue:Ra,onPickerValueChange:wa})))):me.createElement(ac.Provider,{value:(0,Se.Z)({},eu)},me.createElement(Ac,_a))}function Vc(ie){return typeof ie=="function"?ie():ie}function hd(ie){var we=ie.prefixCls,Oe=ie.presets,Qe=ie.onClick,mt=ie.onHover;return Oe.length?me.createElement("div",{className:"".concat(we,"-presets")},me.createElement("ul",null,Oe.map(function(It,$t){var dn=It.label,ta=It.value;return me.createElement("li",{key:$t,onClick:function(){Qe(Vc(ta))},onMouseEnter:function(){mt(Vc(ta))},onMouseLeave:function(){mt(null)}},dn)}))):null}function Ms(ie){var we=ie.panelRender,Oe=ie.internalMode,Qe=ie.picker,mt=ie.showNow,It=ie.range,$t=ie.multiple,dn=ie.activeInfo,ta=dn===void 0?[0,0,0]:dn,aa=ie.presets,wn=ie.onPresetHover,ja=ie.onPresetSubmit,$a=ie.onFocus,Ra=ie.onBlur,wa=ie.onPanelMouseDown,eu=ie.direction,za=ie.value,_a=ie.onSelect,Iu=ie.isInvalid,Lu=ie.defaultOpenValue,ru=ie.onOk,Ku=ie.onSubmit,Fu=me.useContext(Za),Ou=Fu.prefixCls,xr="".concat(Ou,"-panel"),Nr=eu==="rtl",pu=me.useRef(null),pr=me.useRef(null),il=me.useState(0),ur=Me(il,2),Au=ur[0],Vu=ur[1],Ju=me.useState(0),qr=Me(Ju,2),Nl=qr[0],qu=qr[1],fr=me.useState(0),zu=Me(fr,2),fu=zu[0],rr=zu[1],lr=function(Oo){Oo.width&&Vu(Oo.width)},eo=Me(ta,3),to=eo[0],ou=eo[1],jl=eo[2],Vl=me.useState(0),wo=Me(Vl,2),Ro=wo[0],No=wo[1];me.useEffect(function(){No(10)},[to]),me.useEffect(function(){if(It&&pr.current){var gs,Oo=((gs=pu.current)===null||gs===void 0?void 0:gs.offsetWidth)||0,Ls=pr.current.getBoundingClientRect();if(!Ls.height||Ls.right<0){No(function(hs){return Math.max(0,hs-1)});return}var xi=(Nr?ou-Oo:to)-Ls.left;if(rr(xi),Au&&Au=dn&&Oe<=ta)return It;var aa=Math.min(Math.abs(Oe-dn),Math.abs(Oe-ta));aa0?fi:Ns));var rd=yd+Hs,Od=Ns-fi+1;return String(fi+(Od+rd-fi)%Od)};switch(ml){case"Backspace":case"Delete":Qu="",Zr=Uo;break;case"ArrowLeft":Qu="",ai(-1);break;case"ArrowRight":Qu="",ai(1);break;case"ArrowUp":Qu="",Zr=ds(1);break;case"ArrowDown":Qu="",Zr=ds(-1);break;default:isNaN(Number(ml))||(Qu=fu+ml,Zr=Qu);break}if(Qu!==null&&(rr(Qu),Qu.length>=pi&&(ai(1),rr(""))),Zr!==null){var ms=No.slice(0,Ao)+gu(Zr,pi)+No.slice(Vi);Ci(ms.slice(0,$t.length))}Ro({})},ko=me.useRef();ve(function(){if(!(!Au||!$t||Gi.current)){if(!So.match(No)){Ci($t);return}return po.current.setSelectionRange(Ao,Vi),ko.current=Xo(function(){po.current.setSelectionRange(Ao,Vi)}),function(){Xo.cancel(ko.current)}}},[So,$t,Au,No,to,Ao,Vi,wo,Ci]);var oc=$t?{onFocus:Ls,onBlur:To,onKeyDown:hs,onMouseDown:gs,onMouseUp:Oo,onPaste:Ji}:{};return me.createElement("div",{ref:ii,className:Er()(pr,(0,Zt.Z)((0,Zt.Z)({},"".concat(pr,"-active"),Oe&&mt),"".concat(pr,"-placeholder"),wn))},me.createElement(pu,a({ref:po,"aria-invalid":za,autoComplete:"off"},Iu,{onKeyDown:Si,onBlur:xi},oc,{value:No,onChange:Po})),me.createElement(Yn,{type:"suffix",icon:It}),_a)}),Lr=Mu,Tr=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],Ml=["index"];function hl(ie,we){var Oe=ie.id,Qe=ie.prefix,mt=ie.clearIcon,It=ie.suffixIcon,$t=ie.separator,dn=$t===void 0?"~":$t,ta=ie.activeIndex,aa=ie.activeHelp,wn=ie.allHelp,ja=ie.focused,$a=ie.onFocus,Ra=ie.onBlur,wa=ie.onKeyDown,eu=ie.locale,za=ie.generateConfig,_a=ie.placeholder,Iu=ie.className,Lu=ie.style,ru=ie.onClick,Ku=ie.onClear,Fu=ie.value,Ou=ie.onChange,xr=ie.onSubmit,Nr=ie.onInputChange,pu=ie.format,pr=ie.maskFormat,il=ie.preserveInvalidOnBlur,ur=ie.onInvalid,Au=ie.disabled,Vu=ie.invalid,Ju=ie.inputReadOnly,qr=ie.direction,Nl=ie.onOpenChange,qu=ie.onActiveInfo,fr=ie.placement,zu=ie.onMouseDown,fu=ie.required,rr=ie["aria-required"],lr=ie.autoFocus,eo=ie.tabIndex,to=Ds(ie,Tr),ou=qr==="rtl",jl=me.useContext(Za),Vl=jl.prefixCls,wo=me.useMemo(function(){if(typeof Oe=="string")return[Oe];var xi=Oe||{};return[xi.start,xi.end]},[Oe]),Ro=me.useRef(),No=me.useRef(),ii=me.useRef(),po=function(To){var Si;return(Si=[No,ii][To])===null||Si===void 0?void 0:Si.current};me.useImperativeHandle(we,function(){return{nativeElement:Ro.current,focus:function(To){if((0,ft.Z)(To)==="object"){var Si,hs=To||{},ko=hs.index,oc=ko===void 0?0:ko,Cn=Ds(hs,Ml);(Si=po(oc))===null||Si===void 0||Si.focus(Cn)}else{var al;(al=po(To!=null?To:0))===null||al===void 0||al.focus()}},blur:function(){var To,Si;(To=po(0))===null||To===void 0||To.blur(),(Si=po(1))===null||Si===void 0||Si.blur()}}});var So=wt(to),mo=me.useMemo(function(){return Array.isArray(_a)?_a:[_a,_a]},[_a]),ki=cd((0,Se.Z)((0,Se.Z)({},ie),{},{id:wo,placeholder:mo})),Ao=Me(ki,1),Vi=Ao[0],Xi=me.useState({position:"absolute",width:0}),Ci=Me(Xi,2),Po=Ci[0],Ji=Ci[1],Gi=oe(function(){var xi=po(ta);if(xi){var To=xi.nativeElement.getBoundingClientRect(),Si=Ro.current.getBoundingClientRect(),hs=To.left-Si.left;Ji(function(ko){return(0,Se.Z)((0,Se.Z)({},ko),{},{width:To.width,left:hs})}),qu([To.left,To.right,Si.width])}});me.useEffect(function(){Gi()},[ta]);var gs=mt&&(Fu[0]&&!Au[0]||Fu[1]&&!Au[1]),Oo=lr&&!Au[0],Ls=lr&&!Oo&&!Au[1];return me.createElement(ss,{onResize:Gi},me.createElement("div",a({},So,{className:Er()(Vl,"".concat(Vl,"-range"),(0,Zt.Z)((0,Zt.Z)((0,Zt.Z)((0,Zt.Z)({},"".concat(Vl,"-focused"),ja),"".concat(Vl,"-disabled"),Au.every(function(xi){return xi})),"".concat(Vl,"-invalid"),Vu.some(function(xi){return xi})),"".concat(Vl,"-rtl"),ou),Iu),style:Lu,ref:Ro,onClick:ru,onMouseDown:function(To){var Si=To.target;Si!==No.current.inputElement&&Si!==ii.current.inputElement&&To.preventDefault(),zu==null||zu(To)}}),Qe&&me.createElement("div",{className:"".concat(Vl,"-prefix")},Qe),me.createElement(Lr,a({ref:No},Vi(0),{autoFocus:Oo,tabIndex:eo,"date-range":"start"})),me.createElement("div",{className:"".concat(Vl,"-range-separator")},dn),me.createElement(Lr,a({ref:ii},Vi(1),{autoFocus:Ls,tabIndex:eo,"date-range":"end"})),me.createElement("div",{className:"".concat(Vl,"-active-bar"),style:Po}),me.createElement(Yn,{type:"suffix",icon:It}),gs&&me.createElement(Ur,{icon:mt,onClear:Ku})))}var co=me.forwardRef(hl),Tu=co;function hr(ie,we){var Oe=ie!=null?ie:we;return Array.isArray(Oe)?Oe:[Oe,Oe]}function Yr(ie){return ie===1?"end":"start"}function ar(ie,we){var Oe=Gu(ie,function(){var qi=ie.disabled,ui=ie.allowEmpty,Ii=hr(qi,!1),Qs=hr(ui,!1);return{disabled:Ii,allowEmpty:Qs}}),Qe=Me(Oe,6),mt=Qe[0],It=Qe[1],$t=Qe[2],dn=Qe[3],ta=Qe[4],aa=Qe[5],wn=mt.prefixCls,ja=mt.styles,$a=mt.classNames,Ra=mt.defaultValue,wa=mt.value,eu=mt.needConfirm,za=mt.onKeyDown,_a=mt.disabled,Iu=mt.allowEmpty,Lu=mt.disabledDate,ru=mt.minDate,Ku=mt.maxDate,Fu=mt.defaultOpen,Ou=mt.open,xr=mt.onOpenChange,Nr=mt.locale,pu=mt.generateConfig,pr=mt.picker,il=mt.showNow,ur=mt.showToday,Au=mt.showTime,Vu=mt.mode,Ju=mt.onPanelChange,qr=mt.onCalendarChange,Nl=mt.onOk,qu=mt.defaultPickerValue,fr=mt.pickerValue,zu=mt.onPickerValueChange,fu=mt.inputReadOnly,rr=mt.suffixIcon,lr=mt.onFocus,eo=mt.onBlur,to=mt.presets,ou=mt.ranges,jl=mt.components,Vl=mt.cellRender,wo=mt.dateRender,Ro=mt.monthCellRender,No=mt.onClick,ii=ic(we),po=Li(Ou,Fu,_a,xr),So=Me(po,2),mo=So[0],ki=So[1],Ao=function(ui,Ii){(_a.some(function(Qs){return!Qs})||!ui)&&ki(ui,Ii)},Vi=ps(pu,Nr,dn,!0,!1,Ra,wa,qr,Nl),Xi=Me(Vi,5),Ci=Xi[0],Po=Xi[1],Ji=Xi[2],Gi=Xi[3],gs=Xi[4],Oo=Ji(),Ls=nc(_a,Iu,mo),xi=Me(Ls,9),To=xi[0],Si=xi[1],hs=xi[2],ko=xi[3],oc=xi[4],Cn=xi[5],al=xi[6],ml=xi[7],Qu=xi[8],Zr=function(ui,Ii){Si(!0),lr==null||lr(ui,{range:Yr(Ii!=null?Ii:ko)})},pi=function(ui,Ii){Si(!1),eo==null||eo(ui,{range:Yr(Ii!=null?Ii:ko)})},Uo=me.useMemo(function(){if(!Au)return null;var qi=Au.disabledTime,ui=qi?function(Ii){var Qs=Yr(ko),yc=Jt(Oo,al,ko);return qi(Ii,Qs,{from:yc})}:void 0;return(0,Se.Z)((0,Se.Z)({},Au),{},{disabledTime:ui})},[Au,ko,Oo,al]),ai=Re([pr,pr],{value:Vu}),ds=Me(ai,2),ms=ds[0],Zs=ds[1],Hs=ms[ko]||pr,_s=Hs==="date"&&Uo?"datetime":Hs,ju=_s===pr&&_s!=="time",fi=sc(pr,Hs,il,ur,!0),Ns=so(mt,Ci,Po,Ji,Gi,_a,dn,To,mo,aa),rc=Me(Ns,2),Qc=rc[0],yd=rc[1],rd=Jl(Oo,_a,al,pu,Nr,Lu),Od=ua(Oo,aa,Iu),Xc=Me(Od,2),Hd=Xc[0],m0=Xc[1],B0=Gs(pu,Nr,Oo,ms,mo,ko,It,ju,qu,fr,Uo==null?void 0:Uo.defaultOpenValue,zu,ru,Ku),g0=Me(B0,2),Wd=g0[0],Gl=g0[1],fd=oe(function(qi,ui,Ii){var Qs=ir(ms,ko,ui);if((Qs[0]!==ms[0]||Qs[1]!==ms[1])&&Zs(Qs),Ju&&Ii!==!1){var yc=pe(Oo);qi&&(yc[ko]=qi),Ju(yc,Qs)}}),$d=function(ui,Ii){return ir(Oo,Ii,ui)},ed=function(ui,Ii){var Qs=Oo;ui&&(Qs=$d(ui,ko)),ml(ko);var yc=Cn(Qs);Gi(Qs),Qc(ko,yc===null),yc===null?Ao(!1,{force:!0}):Ii||ii.current.focus({index:yc})},f0=function(ui){var Ii,Qs=ui.target.getRootNode();if(!ii.current.nativeElement.contains((Ii=Qs.activeElement)!==null&&Ii!==void 0?Ii:document.activeElement)){var yc=_a.findIndex(function(Y0){return!Y0});yc>=0&&ii.current.focus({index:yc})}Ao(!0),No==null||No(ui)},e0=function(){yd(null),Ao(!1,{force:!0})},S0=me.useState(null),Md=Me(S0,2),ld=Md[0],Jc=Md[1],od=me.useState(null),Vd=Me(od,2),Gd=Vd[0],xo=Vd[1],v0=me.useMemo(function(){return Gd||Oo},[Oo,Gd]);me.useEffect(function(){mo||xo(null)},[mo]);var P0=me.useState([0,0,0]),t0=Me(P0,2),n0=t0[0],Kd=t0[1],Yd=lc(to,ou),p0=function(ui){xo(ui),Jc("preset")},Rd=function(ui){var Ii=yd(ui);Ii&&Ao(!1,{force:!0})},E0=function(ui){ed(ui)},D0=function(ui){xo(ui?$d(ui,ko):null),Jc("cell")},b0=function(ui){Ao(!0),Zr(ui)},w0=function(){hs("panel")},Cs=function(ui){var Ii=ir(Oo,ko,ui);Gi(Ii),!eu&&!$t&&It===_s&&ed(ui)},Cd=function(){Ao(!1)},Go=Gn(Vl,wo,Ro,Yr(ko)),a0=Oo[ko]||null,u0=oe(function(qi){return aa(qi,{activeIndex:ko})}),Ei=me.useMemo(function(){var qi=Aa(mt,!1),ui=Tt(mt,[].concat(pe(Object.keys(qi)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return ui},[mt]),Ko=me.createElement(Ms,a({},Ei,{showNow:fi,showTime:Uo,range:!0,multiplePanel:ju,activeInfo:n0,disabledDate:rd,onFocus:b0,onBlur:pi,onPanelMouseDown:w0,picker:pr,mode:Hs,internalMode:_s,onPanelChange:fd,format:ta,value:a0,isInvalid:u0,onChange:null,onSelect:Cs,pickerValue:Wd,defaultOpenValue:_u(Au==null?void 0:Au.defaultOpenValue)[ko],onPickerValueChange:Gl,hoverValue:v0,onHover:D0,needConfirm:eu,onSubmit:ed,onOk:gs,presets:Yd,onPresetHover:p0,onPresetSubmit:Rd,onNow:E0,cellRender:Go})),Rc=function(ui,Ii){var Qs=$d(ui,Ii);Gi(Qs)},id=function(){hs("input")},r0=function(ui,Ii){var Qs=al.length,yc=al[Qs-1];if(Qs&&yc!==Ii&&eu&&!Iu[yc]&&!Qu(yc)&&Oo[yc]){ii.current.focus({index:yc});return}hs("input"),Ao(!0,{inherit:!0}),ko!==Ii&&mo&&!eu&&$t&&ed(null,!0),oc(Ii),Zr(ui,Ii)},x0=function(ui,Ii){if(Ao(!1),!eu&&hs()==="input"){var Qs=Cn(Oo);Qc(ko,Qs===null)}pi(ui,Ii)},k0=function(ui,Ii){ui.key==="Tab"&&ed(null,!0),za==null||za(ui,Ii)},A0=me.useMemo(function(){return{prefixCls:wn,locale:Nr,generateConfig:pu,button:jl.button,input:jl.input}},[wn,Nr,pu,jl.button,jl.input]);if(ve(function(){mo&&ko!==void 0&&fd(null,pr,!1)},[mo,ko,pr]),ve(function(){var qi=hs();!mo&&qi==="input"&&(Ao(!1),ed(null,!0)),!mo&&$t&&!eu&&qi==="panel"&&(Ao(!0),ed())},[mo]),0)var mm;return me.createElement(Za.Provider,{value:A0},me.createElement(Qa,a({},_n(mt),{popupElement:Ko,popupStyle:ja.popup,popupClassName:$a.popup,visible:mo,onClose:Cd,range:!0}),me.createElement(Tu,a({},mt,{ref:ii,suffixIcon:rr,activeIndex:To||mo?ko:null,activeHelp:!!Gd,allHelp:!!Gd&&ld==="preset",focused:To,onFocus:r0,onBlur:x0,onKeyDown:k0,onSubmit:ed,value:v0,maskFormat:ta,onChange:Rc,onInputChange:id,format:dn,inputReadOnly:fu,disabled:_a,open:mo,onOpenChange:Ao,onClick:f0,onClear:e0,invalid:Hd,onInvalid:m0,onActiveInfo:Kd}))))}var Mr=me.forwardRef(ar),zo=Mr;function Jo(){return Jo=Object.assign?Object.assign.bind():function(ie){for(var we=1;weie.length)&&(we=ie.length);for(var Oe=0,Qe=new Array(we);Oe=0)&&(Oe[mt]=ie[mt]);return Oe}function Kc(ie,we){if(ie==null)return{};var Oe=dd(ie,we),Qe,mt;if(Object.getOwnPropertySymbols){var It=Object.getOwnPropertySymbols(ie);for(mt=0;mt=0)&&Object.prototype.propertyIsEnumerable.call(ie,Qe)&&(Oe[Qe]=ie[Qe])}return Oe}var Xl=z(64363);function hc(ie){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Oe=[];return me.Children.forEach(ie,function(Qe){Qe==null&&!we.keepEmpty||(Array.isArray(Qe)?Oe=Oe.concat(hc(Qe)):(0,Xl.isFragment)(Qe)&&Qe.props?Oe=Oe.concat(hc(Qe.props.children,we)):Oe.push(Qe))}),Oe}var xc={};function Yc(ie,we){}function qo(ie,we){}function ad(){xc={}}function Zc(ie,we,Oe){!we&&!xc[Oe]&&(ie(!1,Oe),xc[Oe]=!0)}function qd(ie,we){Zc(Yc,ie,we)}function Qd(ie,we){Zc(qo,ie,we)}var Id=null;function Ld(ie,we,Oe){var Qe=React.useRef({});return(!("value"in Qe.current)||Oe(Qe.current.condition,we))&&(Qe.current.value=ie(),Qe.current.condition=we),Qe.current.value}function Fd(ie,we){typeof ie=="function"?ie(we):wi(ie)==="object"&&ie&&"current"in ie&&(ie.current=we)}function md(){for(var ie=arguments.length,we=new Array(ie),Oe=0;Oe1&&arguments[1]!==void 0?arguments[1]:1;vo+=1;var Qe=vo;function mt(It){if(It===0)Pl(Qe),we();else{var $t=kr(function(){mt(It-1)});Xr.set(Qe,$t)}}return mt(Oe),Qe};zl.cancel=function(ie){var we=Xr.get(ie);return Pl(we),nl(we)};var kl=zl;function Eo(ie){if(typeof MessageChannel=="undefined")kl(ie);else{var we=new MessageChannel;we.port1.onmessage=function(){return ie()},we.port2.postMessage(void 0)}}function $r(){var ie=me.useRef(null),we=function(Qe){ie.current||(ie.current=[],Eo(function(){(0,vr.unstable_batchedUpdates)(function(){ie.current.forEach(function(mt){mt()}),ie.current=null})})),ie.current.push(Qe)};return we}function $l(ie,we){var Oe=me.useState(we),Qe=mc(Oe,2),mt=Qe[0],It=Qe[1],$t=ro(function(dn){ie(function(){It(dn)})});return[mt,$t]}var xl=me.createContext(null),ni=["component"],bo=["className"],Qo=["className"],di=function(we,Oe){var Qe=me.useContext(xl);if(!Qe){var mt=we.component,It=mt===void 0?"div":mt,$t=Kc(we,ni);return me.createElement(It,Jo({},$t,{ref:Oe}))}var dn=Qe.className,ta=Kc(Qe,bo),aa=we.className,wn=Kc(we,Qo);return me.createElement(xl.Provider,{value:null},me.createElement(Sl,Jo({ref:Oe,className:Er()(dn,aa)},ta,wn)))},ku=me.forwardRef(di);ku.displayName="RawItem";var Mo=ku,Jr=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Fo="responsive",mi="invalidate";function Hi(ie){return"+ ".concat(ie.length," ...")}function $i(ie,we){var Oe=ie.prefixCls,Qe=Oe===void 0?"rc-overflow":Oe,mt=ie.data,It=mt===void 0?[]:mt,$t=ie.renderItem,dn=ie.renderRawItem,ta=ie.itemKey,aa=ie.itemWidth,wn=aa===void 0?10:aa,ja=ie.ssr,$a=ie.style,Ra=ie.className,wa=ie.maxCount,eu=ie.renderRest,za=ie.renderRawRest,_a=ie.suffix,Iu=ie.component,Lu=Iu===void 0?"div":Iu,ru=ie.itemComponent,Ku=ie.onVisibleChange,Fu=Kc(ie,Jr),Ou=ja==="full",xr=$r(),Nr=$l(xr,null),pu=mc(Nr,2),pr=pu[0],il=pu[1],ur=pr||0,Au=$l(xr,new Map),Vu=mc(Au,2),Ju=Vu[0],qr=Vu[1],Nl=$l(xr,0),qu=mc(Nl,2),fr=qu[0],zu=qu[1],fu=$l(xr,0),rr=mc(fu,2),lr=rr[0],eo=rr[1],to=$l(xr,0),ou=mc(to,2),jl=ou[0],Vl=ou[1],wo=(0,me.useState)(null),Ro=mc(wo,2),No=Ro[0],ii=Ro[1],po=(0,me.useState)(null),So=mc(po,2),mo=So[0],ki=So[1],Ao=me.useMemo(function(){return mo===null&&Ou?Number.MAX_SAFE_INTEGER:mo||0},[mo,pr]),Vi=(0,me.useState)(!1),Xi=mc(Vi,2),Ci=Xi[0],Po=Xi[1],Ji="".concat(Qe,"-item"),Gi=Math.max(fr,lr),gs=wa===Fo,Oo=It.length&&gs,Ls=wa===mi,xi=Oo||typeof wa=="number"&&It.length>wa,To=(0,me.useMemo)(function(){var ju=It;return Oo?pr===null&&Ou?ju=It:ju=It.slice(0,Math.min(It.length,ur/wn)):typeof wa=="number"&&(ju=It.slice(0,wa)),ju},[It,wn,pr,wa,Oo]),Si=(0,me.useMemo)(function(){return Oo?It.slice(Ao+1):It.slice(To.length)},[It,To,Oo,Ao]),hs=(0,me.useCallback)(function(ju,fi){var Ns;return typeof ta=="function"?ta(ju):(Ns=ta&&(ju==null?void 0:ju[ta]))!==null&&Ns!==void 0?Ns:fi},[ta]),ko=(0,me.useCallback)($t||function(ju){return ju},[$t]);function oc(ju,fi,Ns){mo===ju&&(fi===void 0||fi===No)||(ki(ju),Ns||(Po(juur){oc(rc-1,ju-Qc-jl+lr);break}}_a&&Zr(0)+jl>ur&&ii(null)}},[ur,Ju,lr,jl,hs,To]);var pi=Ci&&!!Si.length,Uo={};No!==null&&Oo&&(Uo={position:"absolute",left:No,top:0});var ai={prefixCls:Ji,responsive:Oo,component:ru,invalidate:Ls},ds=dn?function(ju,fi){var Ns=hs(ju,fi);return me.createElement(xl.Provider,{key:Ns,value:wl(wl({},ai),{},{order:fi,item:ju,itemKey:Ns,registerSize:al,display:fi<=Ao})},dn(ju,fi))}:function(ju,fi){var Ns=hs(ju,fi);return me.createElement(Sl,Jo({},ai,{order:fi,key:Ns,item:ju,renderItem:ko,itemKey:Ns,registerSize:al,display:fi<=Ao}))},ms={order:pi?Ao:Number.MAX_SAFE_INTEGER,className:"".concat(Ji,"-rest"),registerSize:ml,display:pi},Zs=eu||Hi,Hs=za?me.createElement(xl.Provider,{value:wl(wl({},ai),ms)},za(Si)):me.createElement(Sl,Jo({},ai,ms),typeof Zs=="function"?Zs(Si):Zs),_s=me.createElement(Lu,Jo({className:Er()(!Ls&&Qe,Ra),style:$a,ref:we},Fu),To.map(ds),xi?Hs:null,_a&&me.createElement(Sl,Jo({},ai,{responsive:gs,responsiveDisabled:!Oo,order:Ao,className:"".concat(Ji,"-suffix"),registerSize:Qu,display:!0,style:Uo}),_a));return gs?me.createElement(ka,{onResize:Cn,disabled:!Oo},_s):_s}var gi=me.forwardRef($i);gi.displayName="Overflow",gi.Item=Mo,gi.RESPONSIVE=Fo,gi.INVALIDATE=mi;var Lo=gi,_o=Lo;function Wi(ie){var we=ie.prefixCls,Oe=ie.value,Qe=ie.onRemove,mt=ie.removeIcon,It=mt===void 0?"\xD7":mt,$t=ie.formatDate,dn=ie.disabled,ta=ie.maxTagCount,aa=ie.placeholder,wn="".concat(we,"-selector"),ja="".concat(we,"-selection"),$a="".concat(ja,"-overflow");function Ra(za,_a){return me.createElement("span",{className:Er()("".concat(ja,"-item")),title:typeof za=="string"?za:null},me.createElement("span",{className:"".concat(ja,"-item-content")},za),!dn&&_a&&me.createElement("span",{onMouseDown:function(Lu){Lu.preventDefault()},onClick:_a,className:"".concat(ja,"-item-remove")},It))}function wa(za){var _a=$t(za),Iu=function(ru){ru&&ru.stopPropagation(),Qe(za)};return Ra(_a,Iu)}function eu(za){var _a="+ ".concat(za.length," ...");return Ra(_a)}return me.createElement("div",{className:wn},me.createElement(_o,{prefixCls:$a,data:Oe,renderItem:wa,renderRest:eu,itemKey:function(_a){return $t(_a)},maxCount:ta}),!Oe.length&&me.createElement("span",{className:"".concat(we,"-selection-placeholder")},aa))}var zs=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function us(ie,we){var Oe=ie.id,Qe=ie.open,mt=ie.prefix,It=ie.clearIcon,$t=ie.suffixIcon,dn=ie.activeHelp,ta=ie.allHelp,aa=ie.focused,wn=ie.onFocus,ja=ie.onBlur,$a=ie.onKeyDown,Ra=ie.locale,wa=ie.generateConfig,eu=ie.placeholder,za=ie.className,_a=ie.style,Iu=ie.onClick,Lu=ie.onClear,ru=ie.internalPicker,Ku=ie.value,Fu=ie.onChange,Ou=ie.onSubmit,xr=ie.onInputChange,Nr=ie.multiple,pu=ie.maxTagCount,pr=ie.format,il=ie.maskFormat,ur=ie.preserveInvalidOnBlur,Au=ie.onInvalid,Vu=ie.disabled,Ju=ie.invalid,qr=ie.inputReadOnly,Nl=ie.direction,qu=ie.onOpenChange,fr=ie.onMouseDown,zu=ie.required,fu=ie["aria-required"],rr=ie.autoFocus,lr=ie.tabIndex,eo=ie.removeIcon,to=Ds(ie,zs),ou=Nl==="rtl",jl=me.useContext(Za),Vl=jl.prefixCls,wo=me.useRef(),Ro=me.useRef();me.useImperativeHandle(we,function(){return{nativeElement:wo.current,focus:function(Po){var Ji;(Ji=Ro.current)===null||Ji===void 0||Ji.focus(Po)},blur:function(){var Po;(Po=Ro.current)===null||Po===void 0||Po.blur()}}});var No=wt(to),ii=function(Po){Fu([Po])},po=function(Po){var Ji=Ku.filter(function(Gi){return Gi&&!Wa(wa,Ra,Gi,Po,ru)});Fu(Ji),Qe||Ou()},So=cd((0,Se.Z)((0,Se.Z)({},ie),{},{onChange:ii}),function(Ci){var Po=Ci.valueTexts;return{value:Po[0]||"",active:aa}}),mo=Me(So,2),ki=mo[0],Ao=mo[1],Vi=!!(It&&Ku.length&&!Vu),Xi=Nr?me.createElement(me.Fragment,null,me.createElement(Wi,{prefixCls:Vl,value:Ku,onRemove:po,formatDate:Ao,maxTagCount:pu,disabled:Vu,removeIcon:eo,placeholder:eu}),me.createElement("input",{className:"".concat(Vl,"-multiple-input"),value:Ku.map(Ao).join(","),ref:Ro,readOnly:!0,autoFocus:rr,tabIndex:lr}),me.createElement(Yn,{type:"suffix",icon:$t}),Vi&&me.createElement(Ur,{icon:It,onClear:Lu})):me.createElement(Lr,a({ref:Ro},ki(),{autoFocus:rr,tabIndex:lr,suffixIcon:$t,clearIcon:Vi&&me.createElement(Ur,{icon:It,onClear:Lu}),showActiveCls:!1}));return me.createElement("div",a({},No,{className:Er()(Vl,(0,Zt.Z)((0,Zt.Z)((0,Zt.Z)((0,Zt.Z)((0,Zt.Z)({},"".concat(Vl,"-multiple"),Nr),"".concat(Vl,"-focused"),aa),"".concat(Vl,"-disabled"),Vu),"".concat(Vl,"-invalid"),Ju),"".concat(Vl,"-rtl"),ou),za),style:_a,ref:wo,onClick:Iu,onMouseDown:function(Po){var Ji,Gi=Po.target;Gi!==((Ji=Ro.current)===null||Ji===void 0?void 0:Ji.inputElement)&&Po.preventDefault(),fr==null||fr(Po)}}),mt&&me.createElement("div",{className:"".concat(Vl,"-prefix")},mt),Xi)}var Il=me.forwardRef(us),Pr=Il;function Hl(ie,we){var Oe=Gu(ie),Qe=Me(Oe,6),mt=Qe[0],It=Qe[1],$t=Qe[2],dn=Qe[3],ta=Qe[4],aa=Qe[5],wn=mt,ja=wn.prefixCls,$a=wn.styles,Ra=wn.classNames,wa=wn.order,eu=wn.defaultValue,za=wn.value,_a=wn.needConfirm,Iu=wn.onChange,Lu=wn.onKeyDown,ru=wn.disabled,Ku=wn.disabledDate,Fu=wn.minDate,Ou=wn.maxDate,xr=wn.defaultOpen,Nr=wn.open,pu=wn.onOpenChange,pr=wn.locale,il=wn.generateConfig,ur=wn.picker,Au=wn.showNow,Vu=wn.showToday,Ju=wn.showTime,qr=wn.mode,Nl=wn.onPanelChange,qu=wn.onCalendarChange,fr=wn.onOk,zu=wn.multiple,fu=wn.defaultPickerValue,rr=wn.pickerValue,lr=wn.onPickerValueChange,eo=wn.inputReadOnly,to=wn.suffixIcon,ou=wn.removeIcon,jl=wn.onFocus,Vl=wn.onBlur,wo=wn.presets,Ro=wn.components,No=wn.cellRender,ii=wn.dateRender,po=wn.monthCellRender,So=wn.onClick,mo=ic(we);function ki(Ei){return Ei===null?null:zu?Ei:Ei[0]}var Ao=Oc(il,pr,It),Vi=Li(Nr,xr,[ru],pu),Xi=Me(Vi,2),Ci=Xi[0],Po=Xi[1],Ji=function(Ko,Rc,id){if(qu){var r0=(0,Se.Z)({},id);delete r0.range,qu(ki(Ko),ki(Rc),r0)}},Gi=function(Ko){fr==null||fr(ki(Ko))},gs=ps(il,pr,dn,!1,wa,eu,za,Ji,Gi),Oo=Me(gs,5),Ls=Oo[0],xi=Oo[1],To=Oo[2],Si=Oo[3],hs=Oo[4],ko=To(),oc=nc([ru]),Cn=Me(oc,4),al=Cn[0],ml=Cn[1],Qu=Cn[2],Zr=Cn[3],pi=function(Ko){ml(!0),jl==null||jl(Ko,{})},Uo=function(Ko){ml(!1),Vl==null||Vl(Ko,{})},ai=Re(ur,{value:qr}),ds=Me(ai,2),ms=ds[0],Zs=ds[1],Hs=ms==="date"&&Ju?"datetime":ms,_s=sc(ur,ms,Au,Vu),ju=Iu&&function(Ei,Ko){Iu(ki(Ei),ki(Ko))},fi=so((0,Se.Z)((0,Se.Z)({},mt),{},{onChange:ju}),Ls,xi,To,Si,[],dn,al,Ci,aa),Ns=Me(fi,2),rc=Ns[1],Qc=ua(ko,aa),yd=Me(Qc,2),rd=yd[0],Od=yd[1],Xc=me.useMemo(function(){return rd.some(function(Ei){return Ei})},[rd]),Hd=function(Ko,Rc){if(lr){var id=(0,Se.Z)((0,Se.Z)({},Rc),{},{mode:Rc.mode[0]});delete id.range,lr(Ko[0],id)}},m0=Gs(il,pr,ko,[ms],Ci,Zr,It,!1,fu,rr,_u(Ju==null?void 0:Ju.defaultOpenValue),Hd,Fu,Ou),B0=Me(m0,2),g0=B0[0],Wd=B0[1],Gl=oe(function(Ei,Ko,Rc){if(Zs(Ko),Nl&&Rc!==!1){var id=Ei||ko[ko.length-1];Nl(id,Ko)}}),fd=function(){rc(To()),Po(!1,{force:!0})},$d=function(Ko){!ru&&!mo.current.nativeElement.contains(document.activeElement)&&mo.current.focus(),Po(!0),So==null||So(Ko)},ed=function(){rc(null),Po(!1,{force:!0})},f0=me.useState(null),e0=Me(f0,2),S0=e0[0],Md=e0[1],ld=me.useState(null),Jc=Me(ld,2),od=Jc[0],Vd=Jc[1],Gd=me.useMemo(function(){var Ei=[od].concat(pe(ko)).filter(function(Ko){return Ko});return zu?Ei:Ei.slice(0,1)},[ko,od,zu]),xo=me.useMemo(function(){return!zu&&od?[od]:ko.filter(function(Ei){return Ei})},[ko,od,zu]);me.useEffect(function(){Ci||Vd(null)},[Ci]);var v0=lc(wo),P0=function(Ko){Vd(Ko),Md("preset")},t0=function(Ko){var Rc=zu?Ao(To(),Ko):[Ko],id=rc(Rc);id&&!zu&&Po(!1,{force:!0})},n0=function(Ko){t0(Ko)},Kd=function(Ko){Vd(Ko),Md("cell")},Yd=function(Ko){Po(!0),pi(Ko)},p0=function(Ko){if(Qu("panel"),!(zu&&Hs!==ur)){var Rc=zu?Ao(To(),Ko):[Ko];Si(Rc),!_a&&!$t&&It===Hs&&fd()}},Rd=function(){Po(!1)},E0=Gn(No,ii,po),D0=me.useMemo(function(){var Ei=Aa(mt,!1),Ko=Tt(mt,[].concat(pe(Object.keys(Ei)),["onChange","onCalendarChange","style","className","onPanelChange"]));return(0,Se.Z)((0,Se.Z)({},Ko),{},{multiple:mt.multiple})},[mt]),b0=me.createElement(Ms,a({},D0,{showNow:_s,showTime:Ju,disabledDate:Ku,onFocus:Yd,onBlur:Uo,picker:ur,mode:ms,internalMode:Hs,onPanelChange:Gl,format:ta,value:ko,isInvalid:aa,onChange:null,onSelect:p0,pickerValue:g0,defaultOpenValue:Ju==null?void 0:Ju.defaultOpenValue,onPickerValueChange:Wd,hoverValue:Gd,onHover:Kd,needConfirm:_a,onSubmit:fd,onOk:hs,presets:v0,onPresetHover:P0,onPresetSubmit:t0,onNow:n0,cellRender:E0})),w0=function(Ko){Si(Ko)},Cs=function(){Qu("input")},Cd=function(Ko){Qu("input"),Po(!0,{inherit:!0}),pi(Ko)},Go=function(Ko){Po(!1),Uo(Ko)},a0=function(Ko,Rc){Ko.key==="Tab"&&fd(),Lu==null||Lu(Ko,Rc)},u0=me.useMemo(function(){return{prefixCls:ja,locale:pr,generateConfig:il,button:Ro.button,input:Ro.input}},[ja,pr,il,Ro.button,Ro.input]);return ve(function(){Ci&&Zr!==void 0&&Gl(null,ur,!1)},[Ci,Zr,ur]),ve(function(){var Ei=Qu();!Ci&&Ei==="input"&&(Po(!1),fd()),!Ci&&$t&&!_a&&Ei==="panel"&&fd()},[Ci]),me.createElement(Za.Provider,{value:u0},me.createElement(Qa,a({},_n(mt),{popupElement:b0,popupStyle:$a.popup,popupClassName:Ra.popup,visible:Ci,onClose:Rd}),me.createElement(Pr,a({},mt,{ref:mo,suffixIcon:to,removeIcon:ou,activeHelp:!!od,allHelp:!!od&&S0==="preset",focused:al,onFocus:Cd,onBlur:Go,onKeyDown:a0,onSubmit:fd,value:xo,maskFormat:ta,onChange:w0,onInputChange:Cs,internalPicker:It,format:dn,inputReadOnly:eo,disabled:ru,open:Ci,onOpenChange:Po,onClick:$d,onClear:ed,invalid:Xc,onInvalid:function(Ko){Od(Ko,0)}}))))}var yl=me.forwardRef(Hl),el=yl,Ll=el},50538:function(Ft,rt){"use strict";var z;var a=typeof Symbol=="function"&&Symbol.for,Ce=a?Symbol.for("react.element"):60103,ke=a?Symbol.for("react.portal"):60106,he=a?Symbol.for("react.fragment"):60107,Fe=a?Symbol.for("react.strict_mode"):60108,xe=a?Symbol.for("react.profiler"):60114,pe=a?Symbol.for("react.provider"):60109,Se=a?Symbol.for("react.context"):60110,Ae=a?Symbol.for("react.async_mode"):60111,Ie=a?Symbol.for("react.concurrent_mode"):60111,ze=a?Symbol.for("react.forward_ref"):60112,Me=a?Symbol.for("react.suspense"):60113,me=a?Symbol.for("react.suspense_list"):60120,oe=a?Symbol.for("react.memo"):60115,E=a?Symbol.for("react.lazy"):60116,y=a?Symbol.for("react.block"):60121,x=a?Symbol.for("react.fundamental"):60117,b=a?Symbol.for("react.responder"):60118,ee=a?Symbol.for("react.scope"):60119;function te(de){if(typeof de=="object"&&de!==null){var ye=de.$$typeof;switch(ye){case Ce:switch(de=de.type,de){case Ae:case Ie:case he:case xe:case Fe:case Me:return de;default:switch(de=de&&de.$$typeof,de){case Se:case ze:case E:case oe:case pe:return de;default:return ye}}case ke:return ye}}}function ne(de){return te(de)===Ie}z=Ae,z=Ie,z=Se,z=pe,z=Ce,z=ze,z=he,z=E,z=oe,z=ke,z=xe,z=Fe,z=Me,z=function(de){return ne(de)||te(de)===Ae},z=ne,z=function(de){return te(de)===Se},z=function(de){return te(de)===pe},z=function(de){return typeof de=="object"&&de!==null&&de.$$typeof===Ce},z=function(de){return te(de)===ze},rt.isFragment=function(de){return te(de)===he},z=function(de){return te(de)===E},rt.isMemo=function(de){return te(de)===oe},z=function(de){return te(de)===ke},z=function(de){return te(de)===xe},z=function(de){return te(de)===Fe},z=function(de){return te(de)===Me},z=function(de){return typeof de=="string"||typeof de=="function"||de===he||de===Ie||de===xe||de===Fe||de===Me||de===me||typeof de=="object"&&de!==null&&(de.$$typeof===E||de.$$typeof===oe||de.$$typeof===pe||de.$$typeof===Se||de.$$typeof===ze||de.$$typeof===x||de.$$typeof===b||de.$$typeof===ee||de.$$typeof===y)},z=te},64363:function(Ft,rt,z){"use strict";Ft.exports=z(50538)},36963:function(Ft,rt){"use strict";var z;var a=Symbol.for("react.element"),Ce=Symbol.for("react.portal"),ke=Symbol.for("react.fragment"),he=Symbol.for("react.strict_mode"),Fe=Symbol.for("react.profiler"),xe=Symbol.for("react.provider"),pe=Symbol.for("react.context"),Se=Symbol.for("react.server_context"),Ae=Symbol.for("react.forward_ref"),Ie=Symbol.for("react.suspense"),ze=Symbol.for("react.suspense_list"),Me=Symbol.for("react.memo"),me=Symbol.for("react.lazy"),oe=Symbol.for("react.offscreen"),E;E=Symbol.for("react.module.reference");function y(x){if(typeof x=="object"&&x!==null){var b=x.$$typeof;switch(b){case a:switch(x=x.type,x){case ke:case Fe:case he:case Ie:case ze:return x;default:switch(x=x&&x.$$typeof,x){case Se:case pe:case Ae:case me:case Me:case xe:return x;default:return b}}case Ce:return b}}}z=pe,z=xe,z=a,rt.ForwardRef=Ae,z=ke,z=me,z=Me,z=Ce,z=Fe,z=he,z=Ie,z=ze,z=function(){return!1},z=function(){return!1},z=function(x){return y(x)===pe},z=function(x){return y(x)===xe},z=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===a},z=function(x){return y(x)===Ae},z=function(x){return y(x)===ke},z=function(x){return y(x)===me},rt.isMemo=function(x){return y(x)===Me},z=function(x){return y(x)===Ce},z=function(x){return y(x)===Fe},z=function(x){return y(x)===he},z=function(x){return y(x)===Ie},z=function(x){return y(x)===ze},z=function(x){return typeof x=="string"||typeof x=="function"||x===ke||x===Fe||x===he||x===Ie||x===ze||x===oe||typeof x=="object"&&x!==null&&(x.$$typeof===me||x.$$typeof===Me||x.$$typeof===xe||x.$$typeof===pe||x.$$typeof===Ae||x.$$typeof===E||x.getModuleId!==void 0)},z=y},17756:function(Ft,rt,z){"use strict";Ft.exports=z(36963)},66012:function(Ft,rt,z){"use strict";z.d(rt,{Z5:function(){return g0},_l:function(){return Td},bK:function(){return pm}});var a=z(67294),Ce=z(89611);function ke(ue,le){ue.prototype=Object.create(le.prototype),ue.prototype.constructor=ue,(0,Ce.Z)(ue,le)}var he=z(87462),Fe=z(14890),xe=a.createContext(null),pe=null;function Se(ue){ue()}var Ae=Se,Ie=function(le){return Ae=le},ze=function(){return Ae};function Me(){var ue=ze(),le=null,Ee=null;return{clear:function(){le=null,Ee=null},notify:function(){ue(function(){for(var qe=le;qe;)qe.callback(),qe=qe.next})},get:function(){for(var qe=[],$e=le;$e;)qe.push($e),$e=$e.next;return qe},subscribe:function(qe){var $e=!0,gt=Ee={callback:qe,next:null,prev:Ee};return gt.prev?gt.prev.next=gt:le=gt,function(){!$e||le===null||($e=!1,gt.next?gt.next.prev=gt.prev:Ee=gt.prev,gt.prev?gt.prev.next=gt.next:le=gt.next)}}}}var me={notify:function(){},get:function(){return[]}};function oe(ue,le){var Ee,je=me;function qe(en){return Kt(),je.subscribe(en)}function $e(){je.notify()}function gt(){on.onStateChange&&on.onStateChange()}function At(){return!!Ee}function Kt(){Ee||(Ee=le?le.addNestedSub(gt):ue.subscribe(gt),je=Me())}function fn(){Ee&&(Ee(),Ee=void 0,je.clear(),je=me)}var on={addNestedSub:qe,notifyNestedSubs:$e,handleChangeWrapper:gt,isSubscribed:At,trySubscribe:Kt,tryUnsubscribe:fn,getListeners:function(){return je}};return on}var E=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?a.useLayoutEffect:a.useEffect;function y(ue){var le=ue.store,Ee=ue.context,je=ue.children,qe=(0,a.useMemo)(function(){var At=oe(le);return{store:le,subscription:At}},[le]),$e=(0,a.useMemo)(function(){return le.getState()},[le]);E(function(){var At=qe.subscription;return At.onStateChange=At.notifyNestedSubs,At.trySubscribe(),$e!==le.getState()&&At.notifyNestedSubs(),function(){At.tryUnsubscribe(),At.onStateChange=null}},[qe,$e]);var gt=Ee||xe;return a.createElement(gt.Provider,{value:qe},je)}var x=y,b=z(63366),ee=z(8679),te=z.n(ee),ne=z(72973),de=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],ye=["reactReduxForwardedRef"],fe=[],ve=[null,null],Ne=function(le){try{return JSON.stringify(le)}catch(Ee){return String(le)}};function Le(ue,le){var Ee=ue[1];return[le.payload,Ee+1]}function Re(ue,le,Ee){E(function(){return ue.apply(void 0,le)},Ee)}function He(ue,le,Ee,je,qe,$e,gt){ue.current=je,le.current=qe,Ee.current=!1,$e.current&&($e.current=null,gt())}function We(ue,le,Ee,je,qe,$e,gt,At,Kt,fn){if(ue){var on=!1,en=null,an=function(){if(!on){var dr=le.getState(),Sr,Vt;try{Sr=je(dr,qe.current)}catch(sl){Vt=sl,en=sl}Vt||(en=null),Sr===$e.current?gt.current||Kt():($e.current=Sr,At.current=Sr,gt.current=!0,fn({type:"STORE_UPDATED",payload:{error:Vt}}))}};Ee.onStateChange=an,Ee.trySubscribe(),an();var In=function(){if(on=!0,Ee.tryUnsubscribe(),Ee.onStateChange=null,en)throw en};return In}}var Ge=function(){return[null,0]};function Ue(ue,le){le===void 0&&(le={});var Ee=le,je=Ee.getDisplayName,qe=je===void 0?function(ei){return"ConnectAdvanced("+ei+")"}:je,$e=Ee.methodName,gt=$e===void 0?"connectAdvanced":$e,At=Ee.renderCountProp,Kt=At===void 0?void 0:At,fn=Ee.shouldHandleStateChanges,on=fn===void 0?!0:fn,en=Ee.storeKey,an=en===void 0?"store":en,In=Ee.withRef,Na=In===void 0?!1:In,dr=Ee.forwardRef,Sr=dr===void 0?!1:dr,Vt=Ee.context,sl=Vt===void 0?xe:Vt,Rl=(0,b.Z)(Ee,de);if(0)var Kl;var $o=sl;return function(Ri){var Ws=Ri.displayName||Ri.name||"Component",si=qe(Ws),Fs=(0,he.Z)({},Rl,{getDisplayName:qe,methodName:gt,renderCountProp:Kt,shouldHandleStateChanges:on,storeKey:an,displayName:si,wrappedComponentName:Ws,WrappedComponent:Ri}),gc=Rl.pure;function Ic(Lc){return ue(Lc.dispatch,Fs)}var Bd=gc?a.useMemo:function(Lc){return Lc()};function sd(Lc){var Xd=(0,a.useMemo)(function(){var N0=Lc.reactReduxForwardedRef,kd=(0,b.Z)(Lc,ye);return[Lc.context,N0,kd]},[Lc]),Sd=Xd[0],Pi=Xd[1],l0=Xd[2],Jd=(0,a.useMemo)(function(){return Sd&&Sd.Consumer&&(0,ne.isContextConsumer)(a.createElement(Sd.Consumer,null))?Sd:$o},[Sd,$o]),Pd=(0,a.useContext)(Jd),Dd=!!Lc.store&&!!Lc.store.getState&&!!Lc.store.dispatch,L0=!!Pd&&!!Pd.store,pd=Dd?Lc.store:Pd.store,h0=(0,a.useMemo)(function(){return Ic(pd)},[pd]),o0=(0,a.useMemo)(function(){if(!on)return ve;var N0=oe(pd,Dd?null:Pd.subscription),kd=N0.notifyNestedSubs.bind(N0);return[N0,kd]},[pd,Dd,Pd]),F0=o0[0],j0=o0[1],z0=(0,a.useMemo)(function(){return Dd?Pd:(0,he.Z)({},Pd,{subscription:F0})},[Dd,Pd,F0]),Em=(0,a.useReducer)(Le,fe,Ge),Hm=Em[0],qc=Hm[0],Wm=Em[1];if(qc&&qc.error)throw qc.error;var $0=(0,a.useRef)(),em=(0,a.useRef)(l0),Z0=(0,a.useRef)(),tm=(0,a.useRef)(!1),nm=Bd(function(){return Z0.current&&l0===em.current?Z0.current:h0(pd.getState(),l0)},[pd,qc,l0]);Re(He,[em,$0,tm,l0,nm,Z0,j0]),Re(We,[on,pd,F0,h0,em,$0,tm,Z0,j0,Wm],[pd,F0,h0]);var am=(0,a.useMemo)(function(){return a.createElement(Ri,(0,he.Z)({},nm,{ref:Pi}))},[Pi,Ri,nm]),Vm=(0,a.useMemo)(function(){return on?a.createElement(Jd.Provider,{value:z0},am):am},[Jd,am,z0]);return Vm}var nd=gc?a.memo(sd):sd;if(nd.WrappedComponent=Ri,nd.displayName=sd.displayName=si,Sr){var vd=a.forwardRef(function(Xd,Sd){return a.createElement(nd,(0,he.Z)({},Xd,{reactReduxForwardedRef:Sd}))});return vd.displayName=si,vd.WrappedComponent=Ri,te()(vd,Ri)}return te()(nd,Ri)}}function Ye(ue,le){return ue===le?ue!==0||le!==0||1/ue===1/le:ue!==ue&&le!==le}function it(ue,le){if(Ye(ue,le))return!0;if(typeof ue!="object"||ue===null||typeof le!="object"||le===null)return!1;var Ee=Object.keys(ue),je=Object.keys(le);if(Ee.length!==je.length)return!1;for(var qe=0;qe=0;je--){var qe=le[je](ue);if(qe)return qe}return function($e,gt){throw new Error("Invalid value of type "+typeof ue+" for "+Ee+" argument when connecting component "+gt.wrappedComponentName+".")}}function jt(ue,le){return ue===le}function sn(ue){var le=ue===void 0?{}:ue,Ee=le.connectHOC,je=Ee===void 0?Ue:Ee,qe=le.mapStateToPropsFactories,$e=qe===void 0?kt:qe,gt=le.mapDispatchToPropsFactories,At=gt===void 0?Je:gt,Kt=le.mergePropsFactories,fn=Kt===void 0?Pn:Kt,on=le.selectorFactory,en=on===void 0?Nn:on;return function(In,Na,dr,Sr){Sr===void 0&&(Sr={});var Vt=Sr,sl=Vt.pure,Rl=sl===void 0?!0:sl,Kl=Vt.areStatesEqual,$o=Kl===void 0?jt:Kl,ei=Vt.areOwnPropsEqual,Ri=ei===void 0?it:ei,Ws=Vt.areStatePropsEqual,si=Ws===void 0?it:Ws,Fs=Vt.areMergedPropsEqual,gc=Fs===void 0?it:Fs,Ic=(0,b.Z)(Vt,Qt),Bd=zt(In,$e,"mapStateToProps"),sd=zt(Na,At,"mapDispatchToProps"),nd=zt(dr,fn,"mergeProps");return je(en,(0,he.Z)({methodName:"connect",getDisplayName:function(Lc){return"Connect("+Lc+")"},shouldHandleStateChanges:!!In,initMapStateToProps:Bd,initMapDispatchToProps:sd,initMergeProps:nd,pure:Rl,areStatesEqual:$o,areOwnPropsEqual:Ri,areStatePropsEqual:si,areMergedPropsEqual:gc},Ic))}}var vt=sn();function Tt(){var ue=useContext(ReactReduxContext);return ue}function qt(ue){ue===void 0&&(ue=ReactReduxContext);var le=ue===ReactReduxContext?useDefaultReduxContext:function(){return useContext(ue)};return function(){var je=le(),qe=je.store;return qe}}var St=null;function Ke(ue){ue===void 0&&(ue=ReactReduxContext);var le=ue===ReactReduxContext?useDefaultStore:createStoreHook(ue);return function(){var je=le();return je.dispatch}}var ln=null,Un=function(le,Ee){return le===Ee};function Ca(ue,le,Ee,je){var qe=useReducer(function(Na){return Na+1},0),$e=qe[1],gt=useMemo(function(){return createSubscription(Ee,je)},[Ee,je]),At=useRef(),Kt=useRef(),fn=useRef(),on=useRef(),en=Ee.getState(),an;try{if(ue!==Kt.current||en!==fn.current||At.current){var In=ue(en);on.current===void 0||!le(In,on.current)?an=In:an=on.current}else an=on.current}catch(Na){throw At.current&&(Na.message+=` + onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Da="".concat(Ca," ").concat(Cu).split(/[\s\n]+/),nr="aria-",cu="data-";function or(ie,we){return ie.indexOf(we)===0}function Aa(ie){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Oe;we===!1?Oe={aria:!0,data:!0,attr:!0}:we===!0?Oe={aria:!0}:Oe=Un({},we);var Qe={};return Object.keys(ie).forEach(function(mt){(Oe.aria&&(mt==="role"||or(mt,nr))||Oe.data&&or(mt,cu)||Oe.attr&&Da.includes(mt))&&(Qe[mt]=ie[mt])}),Qe}var Zt=z(53550),xn=z(98280),vl=z(94184),Er=z.n(vl);function er(ie,we){return ie!==void 0?ie:we?"bottomRight":"bottomLeft"}var Pa=me.createContext(null),Za=Pa,qn={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function Vn(ie){var we=ie.popupElement,Oe=ie.popupStyle,Qe=ie.popupClassName,mt=ie.popupAlign,It=ie.transitionName,$t=ie.getPopupContainer,dn=ie.children,ea=ie.range,aa=ie.placement,wn=ie.builtinPlacements,ja=wn===void 0?qn:wn,$a=ie.direction,Ra=ie.visible,wa=ie.onClose,eu=me.useContext(Za),za=eu.prefixCls,_a="".concat(za,"-dropdown"),Iu=er(aa,$a==="rtl");return me.createElement(xn.Z,{showAction:[],hideAction:["click"],popupPlacement:Iu,builtinPlacements:ja,prefixCls:_a,popupTransitionName:It,popup:we,popupAlign:mt,popupVisible:Ra,popupClassName:Er()(Qe,(0,Zt.Z)((0,Zt.Z)({},"".concat(_a,"-range"),ea),"".concat(_a,"-rtl"),$a==="rtl")),popupStyle:Oe,stretch:"minWidth",getPopupContainer:$t,onPopupVisibleChange:function(ru){ru||wa()}},dn)}var Qa=Vn;function gu(ie,we){for(var Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",Qe=String(ie);Qe.length2&&arguments[2]!==void 0?arguments[2]:[],Qe=me.useState([!1,!1]),mt=Me(Qe,2),It=mt[0],$t=mt[1],dn=function(wn,ja){$t(function($a){return ir($a,ja,wn)})},ea=me.useMemo(function(){return It.map(function(aa,wn){if(aa)return!0;var ja=ie[wn];return ja?!!(!Oe[wn]&&!ja||ja&&we(ja,{activeIndex:wn})):!1})},[ie,It,we,Oe]);return[ea,dn]}function oa(ie,we,Oe,Qe,mt){var It="",$t=[];return ie&&$t.push(mt?"hh":"HH"),we&&$t.push("mm"),Oe&&$t.push("ss"),It=$t.join(":"),Qe&&(It+=".SSS"),mt&&(It+=" A"),It}function Ta(ie,we,Oe,Qe,mt,It){var $t=ie.fieldDateTimeFormat,dn=ie.fieldDateFormat,ea=ie.fieldTimeFormat,aa=ie.fieldMonthFormat,wn=ie.fieldYearFormat,ja=ie.fieldWeekFormat,$a=ie.fieldQuarterFormat,Ra=ie.yearFormat,wa=ie.cellYearFormat,eu=ie.cellQuarterFormat,za=ie.dayFormat,_a=ie.cellDateFormat,Iu=oa(we,Oe,Qe,mt,It);return(0,Se.Z)((0,Se.Z)({},ie),{},{fieldDateTimeFormat:$t||"YYYY-MM-DD ".concat(Iu),fieldDateFormat:dn||"YYYY-MM-DD",fieldTimeFormat:ea||Iu,fieldMonthFormat:aa||"YYYY-MM",fieldYearFormat:wn||"YYYY",fieldWeekFormat:ja||"gggg-wo",fieldQuarterFormat:$a||"YYYY-[Q]Q",yearFormat:Ra||"YYYY",cellYearFormat:wa||"YYYY",cellQuarterFormat:eu||"[Q]Q",cellDateFormat:_a||za||"D"})}function hu(ie,we){var Oe=we.showHour,Qe=we.showMinute,mt=we.showSecond,It=we.showMillisecond,$t=we.use12Hours;return me.useMemo(function(){return Ta(ie,Oe,Qe,mt,It,$t)},[ie,Oe,Qe,mt,It,$t])}var ft=z(19706);function re(ie,we,Oe){return Oe!=null?Oe:we.some(function(Qe){return ie.includes(Qe)})}var ge=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function De(ie){var we=ul(ie,ge),Oe=ie.format,Qe=ie.picker,mt=null;return Oe&&(mt=Oe,Array.isArray(mt)&&(mt=mt[0]),mt=(0,ft.Z)(mt)==="object"?mt.format:mt),Qe==="time"&&(we.format=mt),[we,mt]}function Xe(ie){return ie&&typeof ie=="string"}function tt(ie,we,Oe,Qe){return[ie,we,Oe,Qe].some(function(mt){return mt!==void 0})}function Ot(ie,we,Oe,Qe,mt){var It=we,$t=Oe,dn=Qe;if(!ie&&!It&&!$t&&!dn&&!mt)It=!0,$t=!0,dn=!0;else if(ie){var ea,aa,wn,ja=[It,$t,dn].some(function(wa){return wa===!1}),$a=[It,$t,dn].some(function(wa){return wa===!0}),Ra=ja?!0:!$a;It=(ea=It)!==null&&ea!==void 0?ea:Ra,$t=(aa=$t)!==null&&aa!==void 0?aa:Ra,dn=(wn=dn)!==null&&wn!==void 0?wn:Ra}return[It,$t,dn,mt]}function Lt(ie){var we=ie.showTime,Oe=De(ie),Qe=Me(Oe,2),mt=Qe[0],It=Qe[1],$t=we&&(0,ft.Z)(we)==="object"?we:{},dn=(0,Se.Z)((0,Se.Z)({defaultOpenValue:$t.defaultOpenValue||$t.defaultValue},mt),$t),ea=dn.showMillisecond,aa=dn.showHour,wn=dn.showMinute,ja=dn.showSecond,$a=tt(aa,wn,ja,ea),Ra=Ot($a,aa,wn,ja,ea),wa=Me(Ra,3);return aa=wa[0],wn=wa[1],ja=wa[2],[dn,(0,Se.Z)((0,Se.Z)({},dn),{},{showHour:aa,showMinute:wn,showSecond:ja,showMillisecond:ea}),dn.format,It]}function Wn(ie,we,Oe,Qe,mt){var It=ie==="time";if(ie==="datetime"||It){for(var $t=Qe,dn=On(ie,mt,null),ea=dn,aa=[we,Oe],wn=0;wn1&&($t=we.addDate($t,-7)),$t}function ya(ie,we){var Oe=we.generateConfig,Qe=we.locale,mt=we.format;return ie?typeof mt=="function"?mt(ie):Oe.locale.format(Qe.locale,ie,mt):""}function Ua(ie,we,Oe){var Qe=we,mt=["getHour","getMinute","getSecond","getMillisecond"],It=["setHour","setMinute","setSecond","setMillisecond"];return It.forEach(function($t,dn){Oe?Qe=ie[$t](Qe,ie[mt[dn]](Oe)):Qe=ie[$t](Qe,0)}),Qe}function zi(ie,we,Oe,Qe,mt){var It=oe(function($t,dn){return!!(Oe&&Oe($t,dn)||Qe&&ie.isAfter(Qe,$t)&&!Wa(ie,we,Qe,$t,dn.type)||mt&&ie.isAfter($t,mt)&&!Wa(ie,we,mt,$t,dn.type))});return It}function Ki(ie,we,Oe){return me.useMemo(function(){var Qe=On(ie,we,Oe),mt=_u(Qe),It=mt[0],$t=(0,ft.Z)(It)==="object"&&It.type==="mask"?It.format:null;return[mt.map(function(dn){return typeof dn=="string"||typeof dn=="function"?dn:dn.format}),$t]},[ie,we,Oe])}function Yo(ie,we,Oe){return typeof ie[0]=="function"||Oe?!0:we}function fo(ie,we,Oe,Qe){var mt=oe(function(It,$t){var dn=(0,Se.Z)({type:we},$t);if(delete dn.activeIndex,!ie.isValidate(It)||Oe&&Oe(It,dn))return!0;if((we==="date"||we==="time")&&Qe){var ea,aa=$t&&$t.activeIndex===1?"end":"start",wn=((ea=Qe.disabledTime)===null||ea===void 0?void 0:ea.call(Qe,It,aa,{from:dn.from}))||{},ja=wn.disabledHours,$a=wn.disabledMinutes,Ra=wn.disabledSeconds,wa=wn.disabledMilliseconds,eu=Qe.disabledHours,za=Qe.disabledMinutes,_a=Qe.disabledSeconds,Iu=ja||eu,Lu=$a||za,ru=Ra||_a,Ku=ie.getHour(It),Fu=ie.getMinute(It),Ou=ie.getSecond(It),xr=ie.getMillisecond(It);if(Iu&&Iu().includes(Ku)||Lu&&Lu(Ku).includes(Fu)||ru&&ru(Ku,Fu).includes(Ou)||wa&&wa(Ku,Fu,Ou).includes(xr))return!0}return!1});return mt}function du(ie){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Oe=me.useMemo(function(){var Qe=ie&&_u(ie);return we&&Qe&&(Qe[1]=Qe[1]||Qe[0]),Qe},[ie,we]);return Oe}function Gu(ie,we){var Oe=ie.generateConfig,Qe=ie.locale,mt=ie.picker,It=mt===void 0?"date":mt,$t=ie.prefixCls,dn=$t===void 0?"rc-picker":$t,ea=ie.styles,aa=ea===void 0?{}:ea,wn=ie.classNames,ja=wn===void 0?{}:wn,$a=ie.order,Ra=$a===void 0?!0:$a,wa=ie.components,eu=wa===void 0?{}:wa,za=ie.inputRender,_a=ie.allowClear,Iu=ie.clearIcon,Lu=ie.needConfirm,ru=ie.multiple,Ku=ie.format,Fu=ie.inputReadOnly,Ou=ie.disabledDate,xr=ie.minDate,Nr=ie.maxDate,pu=ie.showTime,pr=ie.value,il=ie.defaultValue,ur=ie.pickerValue,Au=ie.defaultPickerValue,Vu=du(pr),Ju=du(il),qr=du(ur),Nl=du(Au),qu=It==="date"&&pu?"datetime":It,fr=qu==="time"||qu==="datetime",zu=fr||ru,fu=Lu!=null?Lu:fr,rr=Lt(ie),lr=Me(rr,4),eo=lr[0],to=lr[1],ou=lr[2],jl=lr[3],Vl=hu(Qe,to),wo=me.useMemo(function(){return Wn(qu,ou,jl,eo,Vl)},[qu,ou,jl,eo,Vl]),Ro=me.useMemo(function(){return(0,Se.Z)((0,Se.Z)({},ie),{},{prefixCls:dn,locale:Vl,picker:It,styles:aa,classNames:ja,order:Ra,components:(0,Se.Z)({input:za},eu),clearIcon:ra(dn,_a,Iu),showTime:wo,value:Vu,defaultValue:Ju,pickerValue:qr,defaultPickerValue:Nl},we==null?void 0:we())},[ie]),No=Ki(qu,Vl,Ku),ii=Me(No,2),po=ii[0],So=ii[1],mo=Yo(po,Fu,ru),ki=zi(Oe,Qe,Ou,xr,Nr),Ao=fo(Oe,It,ki,wo),Vi=me.useMemo(function(){return(0,Se.Z)((0,Se.Z)({},Ro),{},{needConfirm:fu,inputReadOnly:mo,disabledDate:ki})},[Ro,fu,mo,ki]);return[Vi,qu,zu,po,So,Ao]}var pl=function(we){return+setTimeout(we,16)},Ir=function(we){return clearTimeout(we)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(pl=function(we){return window.requestAnimationFrame(we)},Ir=function(we){return window.cancelAnimationFrame(we)});var Cl=0,ol=new Map;function ti(ie){ol.delete(ie)}var io=function(we){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Cl+=1;var Qe=Cl;function mt(It){if(It===0)ti(Qe),we();else{var $t=pl(function(){mt(It-1)});ol.set(Qe,$t)}}return mt(Oe),Qe};io.cancel=function(ie){var we=ol.get(ie);return ti(ie),Ir(we)};var Xo=io;function Sn(ie,we,Oe){var Qe=Re(we,{value:ie}),mt=Me(Qe,2),It=mt[0],$t=mt[1],dn=me.useRef(ie),ea=me.useRef(),aa=function(){Xo.cancel(ea.current)},wn=oe(function(){$t(dn.current),Oe&&It!==dn.current&&Oe(dn.current)}),ja=oe(function($a,Ra){aa(),dn.current=$a,$a||Ra?wn():ea.current=Xo(wn)});return me.useEffect(function(){return aa},[]),[It,ja]}function Li(ie,we){var Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],Qe=arguments.length>3?arguments[3]:void 0,mt=Oe.every(function(wn){return wn})?!1:ie,It=Sn(mt,we||!1,Qe),$t=Me(It,2),dn=$t[0],ea=$t[1];function aa(wn){var ja=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!ja.inherit||dn)&&ea(wn,ja.force)}return[dn,aa]}function ic(ie){var we=me.useRef();return me.useImperativeHandle(ie,function(){var Oe;return{nativeElement:(Oe=we.current)===null||Oe===void 0?void 0:Oe.nativeElement,focus:function(mt){var It;(It=we.current)===null||It===void 0||It.focus(mt)},blur:function(){var mt;(mt=we.current)===null||mt===void 0||mt.blur()}}}),we}function lc(ie,we){return me.useMemo(function(){return ie||(we?(vt(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(we).map(function(Oe){var Qe=Me(Oe,2),mt=Qe[0],It=Qe[1];return{label:mt,value:It}})):[])},[ie,we])}function tc(ie,we){var Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Qe=me.useRef(we);Qe.current=we,fe(function(){if(ie)Qe.current(ie);else{var mt=Xo(function(){Qe.current(ie)},Oe);return function(){Xo.cancel(mt)}}},[ie])}function nc(ie){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Qe=me.useState(0),mt=Me(Qe,2),It=mt[0],$t=mt[1],dn=me.useState(!1),ea=Me(dn,2),aa=ea[0],wn=ea[1],ja=me.useRef([]),$a=me.useRef(null),Ra=me.useRef(null),wa=function(ru){$a.current=ru},eu=function(ru){return $a.current===ru},za=function(ru){wn(ru)},_a=function(ru){return ru&&(Ra.current=ru),Ra.current},Iu=function(ru){var Ku=ja.current,Fu=new Set(Ku.filter(function(xr){return ru[xr]||we[xr]})),Ou=Ku[Ku.length-1]===0?1:0;return Fu.size>=2||ie[Ou]?null:Ou};return tc(aa||Oe,function(){aa||(ja.current=[],wa(null))}),me.useEffect(function(){aa&&ja.current.push(It)},[aa,It]),[aa,za,_a,It,$t,Iu,ja.current,wa,eu]}function Jl(ie,we,Oe,Qe,mt,It){var $t=Oe[Oe.length-1],dn=function(aa,wn){var ja=Me(ie,2),$a=ja[0],Ra=ja[1],wa=(0,Se.Z)((0,Se.Z)({},wn),{},{from:Jt(ie,Oe)});return $t===1&&we[0]&&$a&&!Wa(Qe,mt,$a,aa,wa.type)&&Qe.isAfter($a,aa)||$t===0&&we[1]&&Ra&&!Wa(Qe,mt,Ra,aa,wa.type)&&Qe.isAfter(aa,Ra)?!0:It==null?void 0:It(aa,wa)};return dn}function Vs(ie,we,Oe,Qe){switch(we){case"date":case"week":return ie.addMonth(Oe,Qe);case"month":case"quarter":return ie.addYear(Oe,Qe);case"year":return ie.addYear(Oe,Qe*10);case"decade":return ie.addYear(Oe,Qe*100);default:return Oe}}var ri=[];function Gs(ie,we,Oe,Qe,mt,It,$t,dn){var ea=arguments.length>8&&arguments[8]!==void 0?arguments[8]:ri,aa=arguments.length>9&&arguments[9]!==void 0?arguments[9]:ri,wn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:ri,ja=arguments.length>11?arguments[11]:void 0,$a=arguments.length>12?arguments[12]:void 0,Ra=arguments.length>13?arguments[13]:void 0,wa=$t==="time",eu=It||0,za=function(qr){var Nl=ie.getNow();return wa&&(Nl=Ua(ie,Nl)),ea[qr]||Oe[qr]||Nl},_a=Me(aa,2),Iu=_a[0],Lu=_a[1],ru=Re(function(){return za(0)},{value:Iu}),Ku=Me(ru,2),Fu=Ku[0],Ou=Ku[1],xr=Re(function(){return za(1)},{value:Lu}),Nr=Me(xr,2),pu=Nr[0],pr=Nr[1],il=me.useMemo(function(){var Ju=[Fu,pu][eu];return wa?Ju:Ua(ie,Ju,wn[eu])},[wa,Fu,pu,eu,ie,wn]),ur=function(qr){var Nl=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",qu=[Ou,pr][eu];qu(qr);var fr=[Fu,pu];fr[eu]=qr,ja&&(!Wa(ie,we,Fu,fr[0],$t)||!Wa(ie,we,pu,fr[1],$t))&&ja(fr,{source:Nl,range:eu===1?"end":"start",mode:Qe})},Au=function(qr,Nl){if(dn){var qu={date:"month",week:"month",month:"year",quarter:"year"},fr=qu[$t];if(fr&&!Wa(ie,we,qr,Nl,fr))return Vs(ie,$t,Nl,-1);if($t==="year"&&qr){var zu=Math.floor(ie.getYear(qr)/10),fu=Math.floor(ie.getYear(Nl)/10);if(zu!==fu)return Vs(ie,$t,Nl,-1)}}return Nl},Vu=me.useRef(null);return ve(function(){if(mt&&!ea[eu]){var Ju=wa?null:ie.getNow();if(Vu.current!==null&&Vu.current!==eu?Ju=[Fu,pu][eu^1]:Oe[eu]?Ju=eu===0?Oe[0]:Au(Oe[0],Oe[1]):Oe[eu^1]&&(Ju=Oe[eu^1]),Ju){$a&&ie.isAfter($a,Ju)&&(Ju=$a);var qr=dn?Vs(ie,$t,Ju,1):Ju;Ra&&ie.isAfter(qr,Ra)&&(Ju=dn?Vs(ie,$t,Ra,-1):Ra),ur(Ju,"reset")}}},[mt,eu,Oe[eu]]),me.useEffect(function(){mt?Vu.current=eu:Vu.current=null},[mt,eu]),ve(function(){mt&&ea&&ea[eu]&&ur(ea[eu],"reset")},[mt,eu]),[il,ur]}function Wu(ie,we){var Oe=me.useRef(ie),Qe=me.useState({}),mt=Me(Qe,2),It=mt[1],$t=function(aa){return aa&&we!==void 0?we:Oe.current},dn=function(aa){Oe.current=aa,It({})};return[$t,dn,$t(!0)]}var Qi=[];function pc(ie,we,Oe){var Qe=function($t){return $t.map(function(dn){return ya(dn,{generateConfig:ie,locale:we,format:Oe[0]})})},mt=function($t,dn){for(var ea=Math.max($t.length,dn.length),aa=-1,wn=0;wn1&&arguments[1]!==void 0?arguments[1]:{},Oe=[];return me.Children.forEach(ie,function(Qe){Qe==null&&!we.keepEmpty||(Array.isArray(Qe)?Oe=Oe.concat(bi(Qe)):lt(Qe)&&Qe.props?Oe=Oe.concat(bi(Qe.props.children,we)):Oe.push(Qe))}),Oe}function cc(ie){"@babel/helpers - typeof";return cc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(we){return typeof we}:function(we){return we&&typeof Symbol=="function"&&we.constructor===Symbol&&we!==Symbol.prototype?"symbol":typeof we},cc(ie)}function ts(ie,we){if(cc(ie)!=="object"||ie===null)return ie;var Oe=ie[Symbol.toPrimitive];if(Oe!==void 0){var Qe=Oe.call(ie,we||"default");if(cc(Qe)!=="object")return Qe;throw new TypeError("@@toPrimitive must return a primitive value.")}return(we==="string"?String:Number)(ie)}function Hc(ie){var we=ts(ie,"string");return cc(we)==="symbol"?we:String(we)}function Nc(ie,we,Oe){return we=Hc(we),we in ie?Object.defineProperty(ie,we,{value:Oe,enumerable:!0,configurable:!0,writable:!0}):ie[we]=Oe,ie}function Pc(ie,we){var Oe=Object.keys(ie);if(Object.getOwnPropertySymbols){var Qe=Object.getOwnPropertySymbols(ie);we&&(Qe=Qe.filter(function(mt){return Object.getOwnPropertyDescriptor(ie,mt).enumerable})),Oe.push.apply(Oe,Qe)}return Oe}function Rr(ie){for(var we=1;we2&&arguments[2]!==void 0?arguments[2]:1,Qe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,mt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],It=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,$t=[],dn=Oe>=1?Oe|0:1,ea=ie;ea<=we;ea+=dn){var aa=mt.includes(ea);(!aa||!Qe)&&$t.push({label:gu(ea,It),value:ea,disabled:aa})}return $t}function no(ie){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Oe=arguments.length>2?arguments[2]:void 0,Qe=we||{},mt=Qe.use12Hours,It=Qe.hourStep,$t=It===void 0?1:It,dn=Qe.minuteStep,ea=dn===void 0?1:dn,aa=Qe.secondStep,wn=aa===void 0?1:aa,ja=Qe.millisecondStep,$a=ja===void 0?100:ja,Ra=Qe.hideDisabledOptions,wa=Qe.disabledTime,eu=Qe.disabledHours,za=Qe.disabledMinutes,_a=Qe.disabledSeconds,Iu=me.useMemo(function(){return Oe||ie.getNow()},[Oe,ie]);if(0)var Lu,ru,Ku;var Fu=me.useCallback(function(zu){var fu=(wa==null?void 0:wa(zu))||{};return[fu.disabledHours||eu||Es,fu.disabledMinutes||za||Es,fu.disabledSeconds||_a||Es,fu.disabledMilliseconds||Es]},[wa,eu,za,_a]),Ou=me.useMemo(function(){return Fu(Iu)},[Iu,Fu]),xr=Me(Ou,4),Nr=xr[0],pu=xr[1],pr=xr[2],il=xr[3],ur=me.useCallback(function(zu,fu,rr,lr){var eo=ws(0,23,$t,Ra,zu()),to=mt?eo.map(function(wo){return(0,Se.Z)((0,Se.Z)({},wo),{},{label:gu(wo.value%12||12,2)})}):eo,ou=function(Ro){return ws(0,59,ea,Ra,fu(Ro))},jl=function(Ro,No){return ws(0,59,wn,Ra,rr(Ro,No))},Vl=function(Ro,No,ii){return ws(0,999,$a,Ra,lr(Ro,No,ii),3)};return[to,ou,jl,Vl]},[Ra,$t,mt,$a,ea,wn]),Au=me.useMemo(function(){return ur(Nr,pu,pr,il)},[ur,Nr,pu,pr,il]),Vu=Me(Au,4),Ju=Vu[0],qr=Vu[1],Nl=Vu[2],qu=Vu[3],fr=function(fu,rr){var lr=function(){return Ju},eo=qr,to=Nl,ou=qu;if(rr){var jl=Fu(rr),Vl=Me(jl,4),wo=Vl[0],Ro=Vl[1],No=Vl[2],ii=Vl[3],po=ur(wo,Ro,No,ii),So=Me(po,4),mo=So[0],ki=So[1],Ao=So[2],Vi=So[3];lr=function(){return mo},eo=ki,to=Ao,ou=Vi}var Xi=Os(fu,lr,eo,to,ou,ie);return Xi};return[fr,Ju,qr,Nl,qu]}function Dc(ie){var we=ie.mode,Oe=ie.internalMode,Qe=ie.renderExtraFooter,mt=ie.showNow,It=ie.showTime,$t=ie.onSubmit,dn=ie.onNow,ea=ie.invalid,aa=ie.needConfirm,wn=ie.generateConfig,ja=ie.disabledDate,$a=me.useContext(Za),Ra=$a.prefixCls,wa=$a.locale,eu=$a.button,za=eu===void 0?"button":eu,_a=wn.getNow(),Iu=no(wn,It,_a),Lu=Me(Iu,1),ru=Lu[0],Ku=Qe==null?void 0:Qe(we),Fu=ja(_a,{type:we}),Ou=function(){if(!Fu){var Au=ru(_a);dn(Au)}},xr="".concat(Ra,"-now"),Nr="".concat(xr,"-btn"),pu=mt&&me.createElement("li",{className:xr},me.createElement("a",{className:Er()(Nr,Fu&&"".concat(Nr,"-disabled")),"aria-disabled":Fu,onClick:Ou},Oe==="date"?wa.today:wa.now)),pr=aa&&me.createElement("li",{className:"".concat(Ra,"-ok")},me.createElement(za,{disabled:ea,onClick:$t},wa.ok)),il=(pu||pr)&&me.createElement("ul",{className:"".concat(Ra,"-ranges")},pu,pr);return!Ku&&!il?null:me.createElement("div",{className:"".concat(Ra,"-footer")},Ku&&me.createElement("div",{className:"".concat(Ra,"-footer-extra")},Ku),il)}function Oc(ie,we,Oe){function Qe(mt,It){var $t=mt.findIndex(function(ea){return Wa(ie,we,ea,It,Oe)});if($t===-1)return[].concat(pe(mt),[It]);var dn=pe(mt);return dn.splice($t,1),dn}return Qe}var Ts=me.createContext(null);function ks(){return me.useContext(Ts)}function Fi(ie,we){var Oe=ie.prefixCls,Qe=ie.generateConfig,mt=ie.locale,It=ie.disabledDate,$t=ie.minDate,dn=ie.maxDate,ea=ie.cellRender,aa=ie.hoverValue,wn=ie.hoverRangeValue,ja=ie.onHover,$a=ie.values,Ra=ie.pickerValue,wa=ie.onSelect,eu=ie.prevIcon,za=ie.nextIcon,_a=ie.superPrevIcon,Iu=ie.superNextIcon,Lu=Qe.getNow(),ru={now:Lu,values:$a,pickerValue:Ra,prefixCls:Oe,disabledDate:It,minDate:$t,maxDate:dn,cellRender:ea,hoverValue:aa,hoverRangeValue:wn,onHover:ja,locale:mt,generateConfig:Qe,onSelect:wa,panelType:we,prevIcon:eu,nextIcon:za,superPrevIcon:_a,superNextIcon:Iu};return[ru,Lu]}var ac=me.createContext({});function ll(ie){for(var we=ie.rowNum,Oe=ie.colNum,Qe=ie.baseDate,mt=ie.getCellDate,It=ie.prefixColumn,$t=ie.rowClassName,dn=ie.titleFormat,ea=ie.getCellText,aa=ie.getCellClassName,wn=ie.headerCells,ja=ie.cellSelection,$a=ja===void 0?!0:ja,Ra=ie.disabledDate,wa=ks(),eu=wa.prefixCls,za=wa.panelType,_a=wa.now,Iu=wa.disabledDate,Lu=wa.cellRender,ru=wa.onHover,Ku=wa.hoverValue,Fu=wa.hoverRangeValue,Ou=wa.generateConfig,xr=wa.values,Nr=wa.locale,pu=wa.onSelect,pr=Ra||Iu,il="".concat(eu,"-cell"),ur=me.useContext(ac),Au=ur.onCellDblClick,Vu=function(rr){return xr.some(function(lr){return lr&&Wa(Ou,Nr,rr,lr,za)})},Ju=[],qr=0;qr1&&arguments[1]!==void 0?arguments[1]:!1;Po(al),za==null||za(al),ml&&Ji(al)},gs=function(al,ml){Vl(al),ml&&Gi(ml),Ji(ml,al)},Oo=function(al){if(Ao(al),Gi(al),jl!==ru){var ml=["decade","year"],Qu=[].concat(ml,["month"]),Zr={quarter:[].concat(ml,["quarter"]),week:[].concat(pe(Qu),["week"]),date:[].concat(pe(Qu),["date"])},pi=Zr[ru]||Qu,Uo=pi.indexOf(jl),ai=pi[Uo+1];ai&&gs(ai,al)}},Ls=me.useMemo(function(){var Cn,al;if(Array.isArray(Ou)){var ml=Me(Ou,2);Cn=ml[0],al=ml[1]}else Cn=Ou;return!Cn&&!al?null:(Cn=Cn||al,al=al||Cn,mt.isAfter(Cn,al)?[al,Cn]:[Cn,al])},[Ou,mt]),xi=Gn(xr,Nr,pu),To=il[wo]||Wc[wo]||$n,Si=me.useContext(ac),hs=me.useMemo(function(){return(0,Se.Z)((0,Se.Z)({},Si),{},{hideHeader:ur})},[Si,ur]),ko="".concat(Au,"-panel"),oc=ul(ie,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return me.createElement(ac.Provider,{value:hs},me.createElement("div",{ref:Vu,tabIndex:ea,className:Er()(ko,(0,Zt.Z)({},"".concat(ko,"-rtl"),It==="rtl"))},me.createElement(To,a({},oc,{showTime:lr,prefixCls:Au,locale:fu,generateConfig:mt,onModeChange:gs,pickerValue:Ci,onPickerValueChange:function(al){Gi(al,!0)},value:mo[0],onSelect:Oo,values:mo,cellRender:xi,hoverRangeValue:Ls,hoverValue:Fu}))))}var Ys=me.memo(me.forwardRef(bc)),Ac=Ys;function wc(ie){var we=ie.picker,Oe=ie.multiplePanel,Qe=ie.pickerValue,mt=ie.onPickerValueChange,It=ie.needConfirm,$t=ie.onSubmit,dn=ie.range,ea=ie.hoverValue,aa=me.useContext(Za),wn=aa.prefixCls,ja=aa.generateConfig,$a=me.useCallback(function(Iu,Lu){return Vs(ja,we,Iu,Lu)},[ja,we]),Ra=me.useMemo(function(){return $a(Qe,1)},[Qe,$a]),wa=function(Lu){mt($a(Lu,-1))},eu={onCellDblClick:function(){It&&$t()}},za=we==="time",_a=(0,Se.Z)((0,Se.Z)({},ie),{},{hoverValue:null,hoverRangeValue:null,hideHeader:za});return dn?_a.hoverRangeValue=ea:_a.hoverValue=ea,Oe?me.createElement("div",{className:"".concat(wn,"-panels")},me.createElement(ac.Provider,{value:(0,Se.Z)((0,Se.Z)({},eu),{},{hideNext:!0})},me.createElement(Ac,_a)),me.createElement(ac.Provider,{value:(0,Se.Z)((0,Se.Z)({},eu),{},{hidePrev:!0})},me.createElement(Ac,a({},_a,{pickerValue:Ra,onPickerValueChange:wa})))):me.createElement(ac.Provider,{value:(0,Se.Z)({},eu)},me.createElement(Ac,_a))}function Vc(ie){return typeof ie=="function"?ie():ie}function hd(ie){var we=ie.prefixCls,Oe=ie.presets,Qe=ie.onClick,mt=ie.onHover;return Oe.length?me.createElement("div",{className:"".concat(we,"-presets")},me.createElement("ul",null,Oe.map(function(It,$t){var dn=It.label,ea=It.value;return me.createElement("li",{key:$t,onClick:function(){Qe(Vc(ea))},onMouseEnter:function(){mt(Vc(ea))},onMouseLeave:function(){mt(null)}},dn)}))):null}function Ms(ie){var we=ie.panelRender,Oe=ie.internalMode,Qe=ie.picker,mt=ie.showNow,It=ie.range,$t=ie.multiple,dn=ie.activeInfo,ea=dn===void 0?[0,0,0]:dn,aa=ie.presets,wn=ie.onPresetHover,ja=ie.onPresetSubmit,$a=ie.onFocus,Ra=ie.onBlur,wa=ie.onPanelMouseDown,eu=ie.direction,za=ie.value,_a=ie.onSelect,Iu=ie.isInvalid,Lu=ie.defaultOpenValue,ru=ie.onOk,Ku=ie.onSubmit,Fu=me.useContext(Za),Ou=Fu.prefixCls,xr="".concat(Ou,"-panel"),Nr=eu==="rtl",pu=me.useRef(null),pr=me.useRef(null),il=me.useState(0),ur=Me(il,2),Au=ur[0],Vu=ur[1],Ju=me.useState(0),qr=Me(Ju,2),Nl=qr[0],qu=qr[1],fr=me.useState(0),zu=Me(fr,2),fu=zu[0],rr=zu[1],lr=function(Oo){Oo.width&&Vu(Oo.width)},eo=Me(ea,3),to=eo[0],ou=eo[1],jl=eo[2],Vl=me.useState(0),wo=Me(Vl,2),Ro=wo[0],No=wo[1];me.useEffect(function(){No(10)},[to]),me.useEffect(function(){if(It&&pr.current){var gs,Oo=((gs=pu.current)===null||gs===void 0?void 0:gs.offsetWidth)||0,Ls=pr.current.getBoundingClientRect();if(!Ls.height||Ls.right<0){No(function(hs){return Math.max(0,hs-1)});return}var xi=(Nr?ou-Oo:to)-Ls.left;if(rr(xi),Au&&Au=dn&&Oe<=ea)return It;var aa=Math.min(Math.abs(Oe-dn),Math.abs(Oe-ea));aa0?fi:Ns));var rd=yd+Hs,Od=Ns-fi+1;return String(fi+(Od+rd-fi)%Od)};switch(ml){case"Backspace":case"Delete":Qu="",Zr=Uo;break;case"ArrowLeft":Qu="",ai(-1);break;case"ArrowRight":Qu="",ai(1);break;case"ArrowUp":Qu="",Zr=ds(1);break;case"ArrowDown":Qu="",Zr=ds(-1);break;default:isNaN(Number(ml))||(Qu=fu+ml,Zr=Qu);break}if(Qu!==null&&(rr(Qu),Qu.length>=pi&&(ai(1),rr(""))),Zr!==null){var ms=No.slice(0,Ao)+gu(Zr,pi)+No.slice(Vi);Ci(ms.slice(0,$t.length))}Ro({})},ko=me.useRef();ve(function(){if(!(!Au||!$t||Gi.current)){if(!So.match(No)){Ci($t);return}return po.current.setSelectionRange(Ao,Vi),ko.current=Xo(function(){po.current.setSelectionRange(Ao,Vi)}),function(){Xo.cancel(ko.current)}}},[So,$t,Au,No,to,Ao,Vi,wo,Ci]);var oc=$t?{onFocus:Ls,onBlur:To,onKeyDown:hs,onMouseDown:gs,onMouseUp:Oo,onPaste:Ji}:{};return me.createElement("div",{ref:ii,className:Er()(pr,(0,Zt.Z)((0,Zt.Z)({},"".concat(pr,"-active"),Oe&&mt),"".concat(pr,"-placeholder"),wn))},me.createElement(pu,a({ref:po,"aria-invalid":za,autoComplete:"off"},Iu,{onKeyDown:Si,onBlur:xi},oc,{value:No,onChange:Po})),me.createElement(Yn,{type:"suffix",icon:It}),_a)}),Lr=Mu,Tr=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],Ml=["index"];function hl(ie,we){var Oe=ie.id,Qe=ie.prefix,mt=ie.clearIcon,It=ie.suffixIcon,$t=ie.separator,dn=$t===void 0?"~":$t,ea=ie.activeIndex,aa=ie.activeHelp,wn=ie.allHelp,ja=ie.focused,$a=ie.onFocus,Ra=ie.onBlur,wa=ie.onKeyDown,eu=ie.locale,za=ie.generateConfig,_a=ie.placeholder,Iu=ie.className,Lu=ie.style,ru=ie.onClick,Ku=ie.onClear,Fu=ie.value,Ou=ie.onChange,xr=ie.onSubmit,Nr=ie.onInputChange,pu=ie.format,pr=ie.maskFormat,il=ie.preserveInvalidOnBlur,ur=ie.onInvalid,Au=ie.disabled,Vu=ie.invalid,Ju=ie.inputReadOnly,qr=ie.direction,Nl=ie.onOpenChange,qu=ie.onActiveInfo,fr=ie.placement,zu=ie.onMouseDown,fu=ie.required,rr=ie["aria-required"],lr=ie.autoFocus,eo=ie.tabIndex,to=Ds(ie,Tr),ou=qr==="rtl",jl=me.useContext(Za),Vl=jl.prefixCls,wo=me.useMemo(function(){if(typeof Oe=="string")return[Oe];var xi=Oe||{};return[xi.start,xi.end]},[Oe]),Ro=me.useRef(),No=me.useRef(),ii=me.useRef(),po=function(To){var Si;return(Si=[No,ii][To])===null||Si===void 0?void 0:Si.current};me.useImperativeHandle(we,function(){return{nativeElement:Ro.current,focus:function(To){if((0,ft.Z)(To)==="object"){var Si,hs=To||{},ko=hs.index,oc=ko===void 0?0:ko,Cn=Ds(hs,Ml);(Si=po(oc))===null||Si===void 0||Si.focus(Cn)}else{var al;(al=po(To!=null?To:0))===null||al===void 0||al.focus()}},blur:function(){var To,Si;(To=po(0))===null||To===void 0||To.blur(),(Si=po(1))===null||Si===void 0||Si.blur()}}});var So=wt(to),mo=me.useMemo(function(){return Array.isArray(_a)?_a:[_a,_a]},[_a]),ki=cd((0,Se.Z)((0,Se.Z)({},ie),{},{id:wo,placeholder:mo})),Ao=Me(ki,1),Vi=Ao[0],Xi=me.useState({position:"absolute",width:0}),Ci=Me(Xi,2),Po=Ci[0],Ji=Ci[1],Gi=oe(function(){var xi=po(ea);if(xi){var To=xi.nativeElement.getBoundingClientRect(),Si=Ro.current.getBoundingClientRect(),hs=To.left-Si.left;Ji(function(ko){return(0,Se.Z)((0,Se.Z)({},ko),{},{width:To.width,left:hs})}),qu([To.left,To.right,Si.width])}});me.useEffect(function(){Gi()},[ea]);var gs=mt&&(Fu[0]&&!Au[0]||Fu[1]&&!Au[1]),Oo=lr&&!Au[0],Ls=lr&&!Oo&&!Au[1];return me.createElement(ss,{onResize:Gi},me.createElement("div",a({},So,{className:Er()(Vl,"".concat(Vl,"-range"),(0,Zt.Z)((0,Zt.Z)((0,Zt.Z)((0,Zt.Z)({},"".concat(Vl,"-focused"),ja),"".concat(Vl,"-disabled"),Au.every(function(xi){return xi})),"".concat(Vl,"-invalid"),Vu.some(function(xi){return xi})),"".concat(Vl,"-rtl"),ou),Iu),style:Lu,ref:Ro,onClick:ru,onMouseDown:function(To){var Si=To.target;Si!==No.current.inputElement&&Si!==ii.current.inputElement&&To.preventDefault(),zu==null||zu(To)}}),Qe&&me.createElement("div",{className:"".concat(Vl,"-prefix")},Qe),me.createElement(Lr,a({ref:No},Vi(0),{autoFocus:Oo,tabIndex:eo,"date-range":"start"})),me.createElement("div",{className:"".concat(Vl,"-range-separator")},dn),me.createElement(Lr,a({ref:ii},Vi(1),{autoFocus:Ls,tabIndex:eo,"date-range":"end"})),me.createElement("div",{className:"".concat(Vl,"-active-bar"),style:Po}),me.createElement(Yn,{type:"suffix",icon:It}),gs&&me.createElement(Ur,{icon:mt,onClear:Ku})))}var co=me.forwardRef(hl),Tu=co;function hr(ie,we){var Oe=ie!=null?ie:we;return Array.isArray(Oe)?Oe:[Oe,Oe]}function Yr(ie){return ie===1?"end":"start"}function ar(ie,we){var Oe=Gu(ie,function(){var qi=ie.disabled,ui=ie.allowEmpty,Ii=hr(qi,!1),Qs=hr(ui,!1);return{disabled:Ii,allowEmpty:Qs}}),Qe=Me(Oe,6),mt=Qe[0],It=Qe[1],$t=Qe[2],dn=Qe[3],ea=Qe[4],aa=Qe[5],wn=mt.prefixCls,ja=mt.styles,$a=mt.classNames,Ra=mt.defaultValue,wa=mt.value,eu=mt.needConfirm,za=mt.onKeyDown,_a=mt.disabled,Iu=mt.allowEmpty,Lu=mt.disabledDate,ru=mt.minDate,Ku=mt.maxDate,Fu=mt.defaultOpen,Ou=mt.open,xr=mt.onOpenChange,Nr=mt.locale,pu=mt.generateConfig,pr=mt.picker,il=mt.showNow,ur=mt.showToday,Au=mt.showTime,Vu=mt.mode,Ju=mt.onPanelChange,qr=mt.onCalendarChange,Nl=mt.onOk,qu=mt.defaultPickerValue,fr=mt.pickerValue,zu=mt.onPickerValueChange,fu=mt.inputReadOnly,rr=mt.suffixIcon,lr=mt.onFocus,eo=mt.onBlur,to=mt.presets,ou=mt.ranges,jl=mt.components,Vl=mt.cellRender,wo=mt.dateRender,Ro=mt.monthCellRender,No=mt.onClick,ii=ic(we),po=Li(Ou,Fu,_a,xr),So=Me(po,2),mo=So[0],ki=So[1],Ao=function(ui,Ii){(_a.some(function(Qs){return!Qs})||!ui)&&ki(ui,Ii)},Vi=ps(pu,Nr,dn,!0,!1,Ra,wa,qr,Nl),Xi=Me(Vi,5),Ci=Xi[0],Po=Xi[1],Ji=Xi[2],Gi=Xi[3],gs=Xi[4],Oo=Ji(),Ls=nc(_a,Iu,mo),xi=Me(Ls,9),To=xi[0],Si=xi[1],hs=xi[2],ko=xi[3],oc=xi[4],Cn=xi[5],al=xi[6],ml=xi[7],Qu=xi[8],Zr=function(ui,Ii){Si(!0),lr==null||lr(ui,{range:Yr(Ii!=null?Ii:ko)})},pi=function(ui,Ii){Si(!1),eo==null||eo(ui,{range:Yr(Ii!=null?Ii:ko)})},Uo=me.useMemo(function(){if(!Au)return null;var qi=Au.disabledTime,ui=qi?function(Ii){var Qs=Yr(ko),yc=Jt(Oo,al,ko);return qi(Ii,Qs,{from:yc})}:void 0;return(0,Se.Z)((0,Se.Z)({},Au),{},{disabledTime:ui})},[Au,ko,Oo,al]),ai=Re([pr,pr],{value:Vu}),ds=Me(ai,2),ms=ds[0],Zs=ds[1],Hs=ms[ko]||pr,_s=Hs==="date"&&Uo?"datetime":Hs,ju=_s===pr&&_s!=="time",fi=sc(pr,Hs,il,ur,!0),Ns=so(mt,Ci,Po,Ji,Gi,_a,dn,To,mo,aa),rc=Me(Ns,2),Qc=rc[0],yd=rc[1],rd=Jl(Oo,_a,al,pu,Nr,Lu),Od=ua(Oo,aa,Iu),Xc=Me(Od,2),Hd=Xc[0],m0=Xc[1],B0=Gs(pu,Nr,Oo,ms,mo,ko,It,ju,qu,fr,Uo==null?void 0:Uo.defaultOpenValue,zu,ru,Ku),g0=Me(B0,2),Wd=g0[0],Gl=g0[1],fd=oe(function(qi,ui,Ii){var Qs=ir(ms,ko,ui);if((Qs[0]!==ms[0]||Qs[1]!==ms[1])&&Zs(Qs),Ju&&Ii!==!1){var yc=pe(Oo);qi&&(yc[ko]=qi),Ju(yc,Qs)}}),$d=function(ui,Ii){return ir(Oo,Ii,ui)},ed=function(ui,Ii){var Qs=Oo;ui&&(Qs=$d(ui,ko)),ml(ko);var yc=Cn(Qs);Gi(Qs),Qc(ko,yc===null),yc===null?Ao(!1,{force:!0}):Ii||ii.current.focus({index:yc})},f0=function(ui){var Ii,Qs=ui.target.getRootNode();if(!ii.current.nativeElement.contains((Ii=Qs.activeElement)!==null&&Ii!==void 0?Ii:document.activeElement)){var yc=_a.findIndex(function(Y0){return!Y0});yc>=0&&ii.current.focus({index:yc})}Ao(!0),No==null||No(ui)},e0=function(){yd(null),Ao(!1,{force:!0})},S0=me.useState(null),Md=Me(S0,2),ld=Md[0],Jc=Md[1],od=me.useState(null),Vd=Me(od,2),Gd=Vd[0],xo=Vd[1],v0=me.useMemo(function(){return Gd||Oo},[Oo,Gd]);me.useEffect(function(){mo||xo(null)},[mo]);var P0=me.useState([0,0,0]),t0=Me(P0,2),n0=t0[0],Kd=t0[1],Yd=lc(to,ou),p0=function(ui){xo(ui),Jc("preset")},Rd=function(ui){var Ii=yd(ui);Ii&&Ao(!1,{force:!0})},E0=function(ui){ed(ui)},D0=function(ui){xo(ui?$d(ui,ko):null),Jc("cell")},b0=function(ui){Ao(!0),Zr(ui)},w0=function(){hs("panel")},Cs=function(ui){var Ii=ir(Oo,ko,ui);Gi(Ii),!eu&&!$t&&It===_s&&ed(ui)},Cd=function(){Ao(!1)},Go=Gn(Vl,wo,Ro,Yr(ko)),a0=Oo[ko]||null,u0=oe(function(qi){return aa(qi,{activeIndex:ko})}),Ei=me.useMemo(function(){var qi=Aa(mt,!1),ui=Tt(mt,[].concat(pe(Object.keys(qi)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return ui},[mt]),Ko=me.createElement(Ms,a({},Ei,{showNow:fi,showTime:Uo,range:!0,multiplePanel:ju,activeInfo:n0,disabledDate:rd,onFocus:b0,onBlur:pi,onPanelMouseDown:w0,picker:pr,mode:Hs,internalMode:_s,onPanelChange:fd,format:ea,value:a0,isInvalid:u0,onChange:null,onSelect:Cs,pickerValue:Wd,defaultOpenValue:_u(Au==null?void 0:Au.defaultOpenValue)[ko],onPickerValueChange:Gl,hoverValue:v0,onHover:D0,needConfirm:eu,onSubmit:ed,onOk:gs,presets:Yd,onPresetHover:p0,onPresetSubmit:Rd,onNow:E0,cellRender:Go})),Rc=function(ui,Ii){var Qs=$d(ui,Ii);Gi(Qs)},id=function(){hs("input")},r0=function(ui,Ii){var Qs=al.length,yc=al[Qs-1];if(Qs&&yc!==Ii&&eu&&!Iu[yc]&&!Qu(yc)&&Oo[yc]){ii.current.focus({index:yc});return}hs("input"),Ao(!0,{inherit:!0}),ko!==Ii&&mo&&!eu&&$t&&ed(null,!0),oc(Ii),Zr(ui,Ii)},x0=function(ui,Ii){if(Ao(!1),!eu&&hs()==="input"){var Qs=Cn(Oo);Qc(ko,Qs===null)}pi(ui,Ii)},k0=function(ui,Ii){ui.key==="Tab"&&ed(null,!0),za==null||za(ui,Ii)},A0=me.useMemo(function(){return{prefixCls:wn,locale:Nr,generateConfig:pu,button:jl.button,input:jl.input}},[wn,Nr,pu,jl.button,jl.input]);if(ve(function(){mo&&ko!==void 0&&fd(null,pr,!1)},[mo,ko,pr]),ve(function(){var qi=hs();!mo&&qi==="input"&&(Ao(!1),ed(null,!0)),!mo&&$t&&!eu&&qi==="panel"&&(Ao(!0),ed())},[mo]),0)var mm;return me.createElement(Za.Provider,{value:A0},me.createElement(Qa,a({},_n(mt),{popupElement:Ko,popupStyle:ja.popup,popupClassName:$a.popup,visible:mo,onClose:Cd,range:!0}),me.createElement(Tu,a({},mt,{ref:ii,suffixIcon:rr,activeIndex:To||mo?ko:null,activeHelp:!!Gd,allHelp:!!Gd&&ld==="preset",focused:To,onFocus:r0,onBlur:x0,onKeyDown:k0,onSubmit:ed,value:v0,maskFormat:ea,onChange:Rc,onInputChange:id,format:dn,inputReadOnly:fu,disabled:_a,open:mo,onOpenChange:Ao,onClick:f0,onClear:e0,invalid:Hd,onInvalid:m0,onActiveInfo:Kd}))))}var Mr=me.forwardRef(ar),zo=Mr;function Jo(){return Jo=Object.assign?Object.assign.bind():function(ie){for(var we=1;weie.length)&&(we=ie.length);for(var Oe=0,Qe=new Array(we);Oe=0)&&(Oe[mt]=ie[mt]);return Oe}function Kc(ie,we){if(ie==null)return{};var Oe=dd(ie,we),Qe,mt;if(Object.getOwnPropertySymbols){var It=Object.getOwnPropertySymbols(ie);for(mt=0;mt=0)&&Object.prototype.propertyIsEnumerable.call(ie,Qe)&&(Oe[Qe]=ie[Qe])}return Oe}var Xl=z(64363);function hc(ie){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Oe=[];return me.Children.forEach(ie,function(Qe){Qe==null&&!we.keepEmpty||(Array.isArray(Qe)?Oe=Oe.concat(hc(Qe)):(0,Xl.isFragment)(Qe)&&Qe.props?Oe=Oe.concat(hc(Qe.props.children,we)):Oe.push(Qe))}),Oe}var xc={};function Yc(ie,we){}function qo(ie,we){}function ad(){xc={}}function Zc(ie,we,Oe){!we&&!xc[Oe]&&(ie(!1,Oe),xc[Oe]=!0)}function qd(ie,we){Zc(Yc,ie,we)}function Qd(ie,we){Zc(qo,ie,we)}var Id=null;function Ld(ie,we,Oe){var Qe=React.useRef({});return(!("value"in Qe.current)||Oe(Qe.current.condition,we))&&(Qe.current.value=ie(),Qe.current.condition=we),Qe.current.value}function Fd(ie,we){typeof ie=="function"?ie(we):wi(ie)==="object"&&ie&&"current"in ie&&(ie.current=we)}function md(){for(var ie=arguments.length,we=new Array(ie),Oe=0;Oe1&&arguments[1]!==void 0?arguments[1]:1;vo+=1;var Qe=vo;function mt(It){if(It===0)Pl(Qe),we();else{var $t=kr(function(){mt(It-1)});Xr.set(Qe,$t)}}return mt(Oe),Qe};zl.cancel=function(ie){var we=Xr.get(ie);return Pl(we),nl(we)};var kl=zl;function Eo(ie){if(typeof MessageChannel=="undefined")kl(ie);else{var we=new MessageChannel;we.port1.onmessage=function(){return ie()},we.port2.postMessage(void 0)}}function $r(){var ie=me.useRef(null),we=function(Qe){ie.current||(ie.current=[],Eo(function(){(0,vr.unstable_batchedUpdates)(function(){ie.current.forEach(function(mt){mt()}),ie.current=null})})),ie.current.push(Qe)};return we}function $l(ie,we){var Oe=me.useState(we),Qe=mc(Oe,2),mt=Qe[0],It=Qe[1],$t=ro(function(dn){ie(function(){It(dn)})});return[mt,$t]}var xl=me.createContext(null),ni=["component"],bo=["className"],Qo=["className"],di=function(we,Oe){var Qe=me.useContext(xl);if(!Qe){var mt=we.component,It=mt===void 0?"div":mt,$t=Kc(we,ni);return me.createElement(It,Jo({},$t,{ref:Oe}))}var dn=Qe.className,ea=Kc(Qe,bo),aa=we.className,wn=Kc(we,Qo);return me.createElement(xl.Provider,{value:null},me.createElement(Sl,Jo({ref:Oe,className:Er()(dn,aa)},ea,wn)))},ku=me.forwardRef(di);ku.displayName="RawItem";var Mo=ku,Jr=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Fo="responsive",mi="invalidate";function Hi(ie){return"+ ".concat(ie.length," ...")}function $i(ie,we){var Oe=ie.prefixCls,Qe=Oe===void 0?"rc-overflow":Oe,mt=ie.data,It=mt===void 0?[]:mt,$t=ie.renderItem,dn=ie.renderRawItem,ea=ie.itemKey,aa=ie.itemWidth,wn=aa===void 0?10:aa,ja=ie.ssr,$a=ie.style,Ra=ie.className,wa=ie.maxCount,eu=ie.renderRest,za=ie.renderRawRest,_a=ie.suffix,Iu=ie.component,Lu=Iu===void 0?"div":Iu,ru=ie.itemComponent,Ku=ie.onVisibleChange,Fu=Kc(ie,Jr),Ou=ja==="full",xr=$r(),Nr=$l(xr,null),pu=mc(Nr,2),pr=pu[0],il=pu[1],ur=pr||0,Au=$l(xr,new Map),Vu=mc(Au,2),Ju=Vu[0],qr=Vu[1],Nl=$l(xr,0),qu=mc(Nl,2),fr=qu[0],zu=qu[1],fu=$l(xr,0),rr=mc(fu,2),lr=rr[0],eo=rr[1],to=$l(xr,0),ou=mc(to,2),jl=ou[0],Vl=ou[1],wo=(0,me.useState)(null),Ro=mc(wo,2),No=Ro[0],ii=Ro[1],po=(0,me.useState)(null),So=mc(po,2),mo=So[0],ki=So[1],Ao=me.useMemo(function(){return mo===null&&Ou?Number.MAX_SAFE_INTEGER:mo||0},[mo,pr]),Vi=(0,me.useState)(!1),Xi=mc(Vi,2),Ci=Xi[0],Po=Xi[1],Ji="".concat(Qe,"-item"),Gi=Math.max(fr,lr),gs=wa===Fo,Oo=It.length&&gs,Ls=wa===mi,xi=Oo||typeof wa=="number"&&It.length>wa,To=(0,me.useMemo)(function(){var ju=It;return Oo?pr===null&&Ou?ju=It:ju=It.slice(0,Math.min(It.length,ur/wn)):typeof wa=="number"&&(ju=It.slice(0,wa)),ju},[It,wn,pr,wa,Oo]),Si=(0,me.useMemo)(function(){return Oo?It.slice(Ao+1):It.slice(To.length)},[It,To,Oo,Ao]),hs=(0,me.useCallback)(function(ju,fi){var Ns;return typeof ea=="function"?ea(ju):(Ns=ea&&(ju==null?void 0:ju[ea]))!==null&&Ns!==void 0?Ns:fi},[ea]),ko=(0,me.useCallback)($t||function(ju){return ju},[$t]);function oc(ju,fi,Ns){mo===ju&&(fi===void 0||fi===No)||(ki(ju),Ns||(Po(juur){oc(rc-1,ju-Qc-jl+lr);break}}_a&&Zr(0)+jl>ur&&ii(null)}},[ur,Ju,lr,jl,hs,To]);var pi=Ci&&!!Si.length,Uo={};No!==null&&Oo&&(Uo={position:"absolute",left:No,top:0});var ai={prefixCls:Ji,responsive:Oo,component:ru,invalidate:Ls},ds=dn?function(ju,fi){var Ns=hs(ju,fi);return me.createElement(xl.Provider,{key:Ns,value:wl(wl({},ai),{},{order:fi,item:ju,itemKey:Ns,registerSize:al,display:fi<=Ao})},dn(ju,fi))}:function(ju,fi){var Ns=hs(ju,fi);return me.createElement(Sl,Jo({},ai,{order:fi,key:Ns,item:ju,renderItem:ko,itemKey:Ns,registerSize:al,display:fi<=Ao}))},ms={order:pi?Ao:Number.MAX_SAFE_INTEGER,className:"".concat(Ji,"-rest"),registerSize:ml,display:pi},Zs=eu||Hi,Hs=za?me.createElement(xl.Provider,{value:wl(wl({},ai),ms)},za(Si)):me.createElement(Sl,Jo({},ai,ms),typeof Zs=="function"?Zs(Si):Zs),_s=me.createElement(Lu,Jo({className:Er()(!Ls&&Qe,Ra),style:$a,ref:we},Fu),To.map(ds),xi?Hs:null,_a&&me.createElement(Sl,Jo({},ai,{responsive:gs,responsiveDisabled:!Oo,order:Ao,className:"".concat(Ji,"-suffix"),registerSize:Qu,display:!0,style:Uo}),_a));return gs?me.createElement(ka,{onResize:Cn,disabled:!Oo},_s):_s}var gi=me.forwardRef($i);gi.displayName="Overflow",gi.Item=Mo,gi.RESPONSIVE=Fo,gi.INVALIDATE=mi;var Lo=gi,_o=Lo;function Wi(ie){var we=ie.prefixCls,Oe=ie.value,Qe=ie.onRemove,mt=ie.removeIcon,It=mt===void 0?"\xD7":mt,$t=ie.formatDate,dn=ie.disabled,ea=ie.maxTagCount,aa=ie.placeholder,wn="".concat(we,"-selector"),ja="".concat(we,"-selection"),$a="".concat(ja,"-overflow");function Ra(za,_a){return me.createElement("span",{className:Er()("".concat(ja,"-item")),title:typeof za=="string"?za:null},me.createElement("span",{className:"".concat(ja,"-item-content")},za),!dn&&_a&&me.createElement("span",{onMouseDown:function(Lu){Lu.preventDefault()},onClick:_a,className:"".concat(ja,"-item-remove")},It))}function wa(za){var _a=$t(za),Iu=function(ru){ru&&ru.stopPropagation(),Qe(za)};return Ra(_a,Iu)}function eu(za){var _a="+ ".concat(za.length," ...");return Ra(_a)}return me.createElement("div",{className:wn},me.createElement(_o,{prefixCls:$a,data:Oe,renderItem:wa,renderRest:eu,itemKey:function(_a){return $t(_a)},maxCount:ea}),!Oe.length&&me.createElement("span",{className:"".concat(we,"-selection-placeholder")},aa))}var zs=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function us(ie,we){var Oe=ie.id,Qe=ie.open,mt=ie.prefix,It=ie.clearIcon,$t=ie.suffixIcon,dn=ie.activeHelp,ea=ie.allHelp,aa=ie.focused,wn=ie.onFocus,ja=ie.onBlur,$a=ie.onKeyDown,Ra=ie.locale,wa=ie.generateConfig,eu=ie.placeholder,za=ie.className,_a=ie.style,Iu=ie.onClick,Lu=ie.onClear,ru=ie.internalPicker,Ku=ie.value,Fu=ie.onChange,Ou=ie.onSubmit,xr=ie.onInputChange,Nr=ie.multiple,pu=ie.maxTagCount,pr=ie.format,il=ie.maskFormat,ur=ie.preserveInvalidOnBlur,Au=ie.onInvalid,Vu=ie.disabled,Ju=ie.invalid,qr=ie.inputReadOnly,Nl=ie.direction,qu=ie.onOpenChange,fr=ie.onMouseDown,zu=ie.required,fu=ie["aria-required"],rr=ie.autoFocus,lr=ie.tabIndex,eo=ie.removeIcon,to=Ds(ie,zs),ou=Nl==="rtl",jl=me.useContext(Za),Vl=jl.prefixCls,wo=me.useRef(),Ro=me.useRef();me.useImperativeHandle(we,function(){return{nativeElement:wo.current,focus:function(Po){var Ji;(Ji=Ro.current)===null||Ji===void 0||Ji.focus(Po)},blur:function(){var Po;(Po=Ro.current)===null||Po===void 0||Po.blur()}}});var No=wt(to),ii=function(Po){Fu([Po])},po=function(Po){var Ji=Ku.filter(function(Gi){return Gi&&!Wa(wa,Ra,Gi,Po,ru)});Fu(Ji),Qe||Ou()},So=cd((0,Se.Z)((0,Se.Z)({},ie),{},{onChange:ii}),function(Ci){var Po=Ci.valueTexts;return{value:Po[0]||"",active:aa}}),mo=Me(So,2),ki=mo[0],Ao=mo[1],Vi=!!(It&&Ku.length&&!Vu),Xi=Nr?me.createElement(me.Fragment,null,me.createElement(Wi,{prefixCls:Vl,value:Ku,onRemove:po,formatDate:Ao,maxTagCount:pu,disabled:Vu,removeIcon:eo,placeholder:eu}),me.createElement("input",{className:"".concat(Vl,"-multiple-input"),value:Ku.map(Ao).join(","),ref:Ro,readOnly:!0,autoFocus:rr,tabIndex:lr}),me.createElement(Yn,{type:"suffix",icon:$t}),Vi&&me.createElement(Ur,{icon:It,onClear:Lu})):me.createElement(Lr,a({ref:Ro},ki(),{autoFocus:rr,tabIndex:lr,suffixIcon:$t,clearIcon:Vi&&me.createElement(Ur,{icon:It,onClear:Lu}),showActiveCls:!1}));return me.createElement("div",a({},No,{className:Er()(Vl,(0,Zt.Z)((0,Zt.Z)((0,Zt.Z)((0,Zt.Z)((0,Zt.Z)({},"".concat(Vl,"-multiple"),Nr),"".concat(Vl,"-focused"),aa),"".concat(Vl,"-disabled"),Vu),"".concat(Vl,"-invalid"),Ju),"".concat(Vl,"-rtl"),ou),za),style:_a,ref:wo,onClick:Iu,onMouseDown:function(Po){var Ji,Gi=Po.target;Gi!==((Ji=Ro.current)===null||Ji===void 0?void 0:Ji.inputElement)&&Po.preventDefault(),fr==null||fr(Po)}}),mt&&me.createElement("div",{className:"".concat(Vl,"-prefix")},mt),Xi)}var Il=me.forwardRef(us),Pr=Il;function Hl(ie,we){var Oe=Gu(ie),Qe=Me(Oe,6),mt=Qe[0],It=Qe[1],$t=Qe[2],dn=Qe[3],ea=Qe[4],aa=Qe[5],wn=mt,ja=wn.prefixCls,$a=wn.styles,Ra=wn.classNames,wa=wn.order,eu=wn.defaultValue,za=wn.value,_a=wn.needConfirm,Iu=wn.onChange,Lu=wn.onKeyDown,ru=wn.disabled,Ku=wn.disabledDate,Fu=wn.minDate,Ou=wn.maxDate,xr=wn.defaultOpen,Nr=wn.open,pu=wn.onOpenChange,pr=wn.locale,il=wn.generateConfig,ur=wn.picker,Au=wn.showNow,Vu=wn.showToday,Ju=wn.showTime,qr=wn.mode,Nl=wn.onPanelChange,qu=wn.onCalendarChange,fr=wn.onOk,zu=wn.multiple,fu=wn.defaultPickerValue,rr=wn.pickerValue,lr=wn.onPickerValueChange,eo=wn.inputReadOnly,to=wn.suffixIcon,ou=wn.removeIcon,jl=wn.onFocus,Vl=wn.onBlur,wo=wn.presets,Ro=wn.components,No=wn.cellRender,ii=wn.dateRender,po=wn.monthCellRender,So=wn.onClick,mo=ic(we);function ki(Ei){return Ei===null?null:zu?Ei:Ei[0]}var Ao=Oc(il,pr,It),Vi=Li(Nr,xr,[ru],pu),Xi=Me(Vi,2),Ci=Xi[0],Po=Xi[1],Ji=function(Ko,Rc,id){if(qu){var r0=(0,Se.Z)({},id);delete r0.range,qu(ki(Ko),ki(Rc),r0)}},Gi=function(Ko){fr==null||fr(ki(Ko))},gs=ps(il,pr,dn,!1,wa,eu,za,Ji,Gi),Oo=Me(gs,5),Ls=Oo[0],xi=Oo[1],To=Oo[2],Si=Oo[3],hs=Oo[4],ko=To(),oc=nc([ru]),Cn=Me(oc,4),al=Cn[0],ml=Cn[1],Qu=Cn[2],Zr=Cn[3],pi=function(Ko){ml(!0),jl==null||jl(Ko,{})},Uo=function(Ko){ml(!1),Vl==null||Vl(Ko,{})},ai=Re(ur,{value:qr}),ds=Me(ai,2),ms=ds[0],Zs=ds[1],Hs=ms==="date"&&Ju?"datetime":ms,_s=sc(ur,ms,Au,Vu),ju=Iu&&function(Ei,Ko){Iu(ki(Ei),ki(Ko))},fi=so((0,Se.Z)((0,Se.Z)({},mt),{},{onChange:ju}),Ls,xi,To,Si,[],dn,al,Ci,aa),Ns=Me(fi,2),rc=Ns[1],Qc=ua(ko,aa),yd=Me(Qc,2),rd=yd[0],Od=yd[1],Xc=me.useMemo(function(){return rd.some(function(Ei){return Ei})},[rd]),Hd=function(Ko,Rc){if(lr){var id=(0,Se.Z)((0,Se.Z)({},Rc),{},{mode:Rc.mode[0]});delete id.range,lr(Ko[0],id)}},m0=Gs(il,pr,ko,[ms],Ci,Zr,It,!1,fu,rr,_u(Ju==null?void 0:Ju.defaultOpenValue),Hd,Fu,Ou),B0=Me(m0,2),g0=B0[0],Wd=B0[1],Gl=oe(function(Ei,Ko,Rc){if(Zs(Ko),Nl&&Rc!==!1){var id=Ei||ko[ko.length-1];Nl(id,Ko)}}),fd=function(){rc(To()),Po(!1,{force:!0})},$d=function(Ko){!ru&&!mo.current.nativeElement.contains(document.activeElement)&&mo.current.focus(),Po(!0),So==null||So(Ko)},ed=function(){rc(null),Po(!1,{force:!0})},f0=me.useState(null),e0=Me(f0,2),S0=e0[0],Md=e0[1],ld=me.useState(null),Jc=Me(ld,2),od=Jc[0],Vd=Jc[1],Gd=me.useMemo(function(){var Ei=[od].concat(pe(ko)).filter(function(Ko){return Ko});return zu?Ei:Ei.slice(0,1)},[ko,od,zu]),xo=me.useMemo(function(){return!zu&&od?[od]:ko.filter(function(Ei){return Ei})},[ko,od,zu]);me.useEffect(function(){Ci||Vd(null)},[Ci]);var v0=lc(wo),P0=function(Ko){Vd(Ko),Md("preset")},t0=function(Ko){var Rc=zu?Ao(To(),Ko):[Ko],id=rc(Rc);id&&!zu&&Po(!1,{force:!0})},n0=function(Ko){t0(Ko)},Kd=function(Ko){Vd(Ko),Md("cell")},Yd=function(Ko){Po(!0),pi(Ko)},p0=function(Ko){if(Qu("panel"),!(zu&&Hs!==ur)){var Rc=zu?Ao(To(),Ko):[Ko];Si(Rc),!_a&&!$t&&It===Hs&&fd()}},Rd=function(){Po(!1)},E0=Gn(No,ii,po),D0=me.useMemo(function(){var Ei=Aa(mt,!1),Ko=Tt(mt,[].concat(pe(Object.keys(Ei)),["onChange","onCalendarChange","style","className","onPanelChange"]));return(0,Se.Z)((0,Se.Z)({},Ko),{},{multiple:mt.multiple})},[mt]),b0=me.createElement(Ms,a({},D0,{showNow:_s,showTime:Ju,disabledDate:Ku,onFocus:Yd,onBlur:Uo,picker:ur,mode:ms,internalMode:Hs,onPanelChange:Gl,format:ea,value:ko,isInvalid:aa,onChange:null,onSelect:p0,pickerValue:g0,defaultOpenValue:Ju==null?void 0:Ju.defaultOpenValue,onPickerValueChange:Wd,hoverValue:Gd,onHover:Kd,needConfirm:_a,onSubmit:fd,onOk:hs,presets:v0,onPresetHover:P0,onPresetSubmit:t0,onNow:n0,cellRender:E0})),w0=function(Ko){Si(Ko)},Cs=function(){Qu("input")},Cd=function(Ko){Qu("input"),Po(!0,{inherit:!0}),pi(Ko)},Go=function(Ko){Po(!1),Uo(Ko)},a0=function(Ko,Rc){Ko.key==="Tab"&&fd(),Lu==null||Lu(Ko,Rc)},u0=me.useMemo(function(){return{prefixCls:ja,locale:pr,generateConfig:il,button:Ro.button,input:Ro.input}},[ja,pr,il,Ro.button,Ro.input]);return ve(function(){Ci&&Zr!==void 0&&Gl(null,ur,!1)},[Ci,Zr,ur]),ve(function(){var Ei=Qu();!Ci&&Ei==="input"&&(Po(!1),fd()),!Ci&&$t&&!_a&&Ei==="panel"&&fd()},[Ci]),me.createElement(Za.Provider,{value:u0},me.createElement(Qa,a({},_n(mt),{popupElement:b0,popupStyle:$a.popup,popupClassName:Ra.popup,visible:Ci,onClose:Rd}),me.createElement(Pr,a({},mt,{ref:mo,suffixIcon:to,removeIcon:ou,activeHelp:!!od,allHelp:!!od&&S0==="preset",focused:al,onFocus:Cd,onBlur:Go,onKeyDown:a0,onSubmit:fd,value:xo,maskFormat:ea,onChange:w0,onInputChange:Cs,internalPicker:It,format:dn,inputReadOnly:eo,disabled:ru,open:Ci,onOpenChange:Po,onClick:$d,onClear:ed,invalid:Xc,onInvalid:function(Ko){Od(Ko,0)}}))))}var yl=me.forwardRef(Hl),el=yl,Ll=el},50538:function(Ft,rt){"use strict";var z;var a=typeof Symbol=="function"&&Symbol.for,Ce=a?Symbol.for("react.element"):60103,ke=a?Symbol.for("react.portal"):60106,he=a?Symbol.for("react.fragment"):60107,Fe=a?Symbol.for("react.strict_mode"):60108,xe=a?Symbol.for("react.profiler"):60114,pe=a?Symbol.for("react.provider"):60109,Se=a?Symbol.for("react.context"):60110,Ae=a?Symbol.for("react.async_mode"):60111,Ie=a?Symbol.for("react.concurrent_mode"):60111,ze=a?Symbol.for("react.forward_ref"):60112,Me=a?Symbol.for("react.suspense"):60113,me=a?Symbol.for("react.suspense_list"):60120,oe=a?Symbol.for("react.memo"):60115,E=a?Symbol.for("react.lazy"):60116,y=a?Symbol.for("react.block"):60121,x=a?Symbol.for("react.fundamental"):60117,b=a?Symbol.for("react.responder"):60118,ee=a?Symbol.for("react.scope"):60119;function te(de){if(typeof de=="object"&&de!==null){var ye=de.$$typeof;switch(ye){case Ce:switch(de=de.type,de){case Ae:case Ie:case he:case xe:case Fe:case Me:return de;default:switch(de=de&&de.$$typeof,de){case Se:case ze:case E:case oe:case pe:return de;default:return ye}}case ke:return ye}}}function ne(de){return te(de)===Ie}z=Ae,z=Ie,z=Se,z=pe,z=Ce,z=ze,z=he,z=E,z=oe,z=ke,z=xe,z=Fe,z=Me,z=function(de){return ne(de)||te(de)===Ae},z=ne,z=function(de){return te(de)===Se},z=function(de){return te(de)===pe},z=function(de){return typeof de=="object"&&de!==null&&de.$$typeof===Ce},z=function(de){return te(de)===ze},rt.isFragment=function(de){return te(de)===he},z=function(de){return te(de)===E},rt.isMemo=function(de){return te(de)===oe},z=function(de){return te(de)===ke},z=function(de){return te(de)===xe},z=function(de){return te(de)===Fe},z=function(de){return te(de)===Me},z=function(de){return typeof de=="string"||typeof de=="function"||de===he||de===Ie||de===xe||de===Fe||de===Me||de===me||typeof de=="object"&&de!==null&&(de.$$typeof===E||de.$$typeof===oe||de.$$typeof===pe||de.$$typeof===Se||de.$$typeof===ze||de.$$typeof===x||de.$$typeof===b||de.$$typeof===ee||de.$$typeof===y)},z=te},64363:function(Ft,rt,z){"use strict";Ft.exports=z(50538)},36963:function(Ft,rt){"use strict";var z;var a=Symbol.for("react.element"),Ce=Symbol.for("react.portal"),ke=Symbol.for("react.fragment"),he=Symbol.for("react.strict_mode"),Fe=Symbol.for("react.profiler"),xe=Symbol.for("react.provider"),pe=Symbol.for("react.context"),Se=Symbol.for("react.server_context"),Ae=Symbol.for("react.forward_ref"),Ie=Symbol.for("react.suspense"),ze=Symbol.for("react.suspense_list"),Me=Symbol.for("react.memo"),me=Symbol.for("react.lazy"),oe=Symbol.for("react.offscreen"),E;E=Symbol.for("react.module.reference");function y(x){if(typeof x=="object"&&x!==null){var b=x.$$typeof;switch(b){case a:switch(x=x.type,x){case ke:case Fe:case he:case Ie:case ze:return x;default:switch(x=x&&x.$$typeof,x){case Se:case pe:case Ae:case me:case Me:case xe:return x;default:return b}}case Ce:return b}}}z=pe,z=xe,z=a,rt.ForwardRef=Ae,z=ke,z=me,z=Me,z=Ce,z=Fe,z=he,z=Ie,z=ze,z=function(){return!1},z=function(){return!1},z=function(x){return y(x)===pe},z=function(x){return y(x)===xe},z=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===a},z=function(x){return y(x)===Ae},z=function(x){return y(x)===ke},z=function(x){return y(x)===me},rt.isMemo=function(x){return y(x)===Me},z=function(x){return y(x)===Ce},z=function(x){return y(x)===Fe},z=function(x){return y(x)===he},z=function(x){return y(x)===Ie},z=function(x){return y(x)===ze},z=function(x){return typeof x=="string"||typeof x=="function"||x===ke||x===Fe||x===he||x===Ie||x===ze||x===oe||typeof x=="object"&&x!==null&&(x.$$typeof===me||x.$$typeof===Me||x.$$typeof===xe||x.$$typeof===pe||x.$$typeof===Ae||x.$$typeof===E||x.getModuleId!==void 0)},z=y},17756:function(Ft,rt,z){"use strict";Ft.exports=z(36963)},66012:function(Ft,rt,z){"use strict";z.d(rt,{Z5:function(){return g0},_l:function(){return Td},bK:function(){return pm}});var a=z(67294),Ce=z(89611);function ke(ue,le){ue.prototype=Object.create(le.prototype),ue.prototype.constructor=ue,(0,Ce.Z)(ue,le)}var he=z(87462),Fe=z(14890),xe=a.createContext(null),pe=null;function Se(ue){ue()}var Ae=Se,Ie=function(le){return Ae=le},ze=function(){return Ae};function Me(){var ue=ze(),le=null,Ee=null;return{clear:function(){le=null,Ee=null},notify:function(){ue(function(){for(var qe=le;qe;)qe.callback(),qe=qe.next})},get:function(){for(var qe=[],$e=le;$e;)qe.push($e),$e=$e.next;return qe},subscribe:function(qe){var $e=!0,gt=Ee={callback:qe,next:null,prev:Ee};return gt.prev?gt.prev.next=gt:le=gt,function(){!$e||le===null||($e=!1,gt.next?gt.next.prev=gt.prev:Ee=gt.prev,gt.prev?gt.prev.next=gt.next:le=gt.next)}}}}var me={notify:function(){},get:function(){return[]}};function oe(ue,le){var Ee,je=me;function qe(en){return Kt(),je.subscribe(en)}function $e(){je.notify()}function gt(){on.onStateChange&&on.onStateChange()}function At(){return!!Ee}function Kt(){Ee||(Ee=le?le.addNestedSub(gt):ue.subscribe(gt),je=Me())}function fn(){Ee&&(Ee(),Ee=void 0,je.clear(),je=me)}var on={addNestedSub:qe,notifyNestedSubs:$e,handleChangeWrapper:gt,isSubscribed:At,trySubscribe:Kt,tryUnsubscribe:fn,getListeners:function(){return je}};return on}var E=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?a.useLayoutEffect:a.useEffect;function y(ue){var le=ue.store,Ee=ue.context,je=ue.children,qe=(0,a.useMemo)(function(){var At=oe(le);return{store:le,subscription:At}},[le]),$e=(0,a.useMemo)(function(){return le.getState()},[le]);E(function(){var At=qe.subscription;return At.onStateChange=At.notifyNestedSubs,At.trySubscribe(),$e!==le.getState()&&At.notifyNestedSubs(),function(){At.tryUnsubscribe(),At.onStateChange=null}},[qe,$e]);var gt=Ee||xe;return a.createElement(gt.Provider,{value:qe},je)}var x=y,b=z(63366),ee=z(8679),te=z.n(ee),ne=z(72973),de=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],ye=["reactReduxForwardedRef"],fe=[],ve=[null,null],Ne=function(le){try{return JSON.stringify(le)}catch(Ee){return String(le)}};function Le(ue,le){var Ee=ue[1];return[le.payload,Ee+1]}function Re(ue,le,Ee){E(function(){return ue.apply(void 0,le)},Ee)}function He(ue,le,Ee,je,qe,$e,gt){ue.current=je,le.current=qe,Ee.current=!1,$e.current&&($e.current=null,gt())}function We(ue,le,Ee,je,qe,$e,gt,At,Kt,fn){if(ue){var on=!1,en=null,an=function(){if(!on){var dr=le.getState(),Sr,Vt;try{Sr=je(dr,qe.current)}catch(sl){Vt=sl,en=sl}Vt||(en=null),Sr===$e.current?gt.current||Kt():($e.current=Sr,At.current=Sr,gt.current=!0,fn({type:"STORE_UPDATED",payload:{error:Vt}}))}};Ee.onStateChange=an,Ee.trySubscribe(),an();var In=function(){if(on=!0,Ee.tryUnsubscribe(),Ee.onStateChange=null,en)throw en};return In}}var Ge=function(){return[null,0]};function Ue(ue,le){le===void 0&&(le={});var Ee=le,je=Ee.getDisplayName,qe=je===void 0?function(ei){return"ConnectAdvanced("+ei+")"}:je,$e=Ee.methodName,gt=$e===void 0?"connectAdvanced":$e,At=Ee.renderCountProp,Kt=At===void 0?void 0:At,fn=Ee.shouldHandleStateChanges,on=fn===void 0?!0:fn,en=Ee.storeKey,an=en===void 0?"store":en,In=Ee.withRef,Na=In===void 0?!1:In,dr=Ee.forwardRef,Sr=dr===void 0?!1:dr,Vt=Ee.context,sl=Vt===void 0?xe:Vt,Rl=(0,b.Z)(Ee,de);if(0)var Kl;var $o=sl;return function(Ri){var Ws=Ri.displayName||Ri.name||"Component",si=qe(Ws),Fs=(0,he.Z)({},Rl,{getDisplayName:qe,methodName:gt,renderCountProp:Kt,shouldHandleStateChanges:on,storeKey:an,displayName:si,wrappedComponentName:Ws,WrappedComponent:Ri}),gc=Rl.pure;function Ic(Lc){return ue(Lc.dispatch,Fs)}var Bd=gc?a.useMemo:function(Lc){return Lc()};function sd(Lc){var Xd=(0,a.useMemo)(function(){var N0=Lc.reactReduxForwardedRef,kd=(0,b.Z)(Lc,ye);return[Lc.context,N0,kd]},[Lc]),Sd=Xd[0],Pi=Xd[1],l0=Xd[2],Jd=(0,a.useMemo)(function(){return Sd&&Sd.Consumer&&(0,ne.isContextConsumer)(a.createElement(Sd.Consumer,null))?Sd:$o},[Sd,$o]),Pd=(0,a.useContext)(Jd),Dd=!!Lc.store&&!!Lc.store.getState&&!!Lc.store.dispatch,L0=!!Pd&&!!Pd.store,pd=Dd?Lc.store:Pd.store,h0=(0,a.useMemo)(function(){return Ic(pd)},[pd]),o0=(0,a.useMemo)(function(){if(!on)return ve;var N0=oe(pd,Dd?null:Pd.subscription),kd=N0.notifyNestedSubs.bind(N0);return[N0,kd]},[pd,Dd,Pd]),F0=o0[0],j0=o0[1],z0=(0,a.useMemo)(function(){return Dd?Pd:(0,he.Z)({},Pd,{subscription:F0})},[Dd,Pd,F0]),Em=(0,a.useReducer)(Le,fe,Ge),Hm=Em[0],qc=Hm[0],Wm=Em[1];if(qc&&qc.error)throw qc.error;var $0=(0,a.useRef)(),em=(0,a.useRef)(l0),Z0=(0,a.useRef)(),tm=(0,a.useRef)(!1),nm=Bd(function(){return Z0.current&&l0===em.current?Z0.current:h0(pd.getState(),l0)},[pd,qc,l0]);Re(He,[em,$0,tm,l0,nm,Z0,j0]),Re(We,[on,pd,F0,h0,em,$0,tm,Z0,j0,Wm],[pd,F0,h0]);var am=(0,a.useMemo)(function(){return a.createElement(Ri,(0,he.Z)({},nm,{ref:Pi}))},[Pi,Ri,nm]),Vm=(0,a.useMemo)(function(){return on?a.createElement(Jd.Provider,{value:z0},am):am},[Jd,am,z0]);return Vm}var nd=gc?a.memo(sd):sd;if(nd.WrappedComponent=Ri,nd.displayName=sd.displayName=si,Sr){var vd=a.forwardRef(function(Xd,Sd){return a.createElement(nd,(0,he.Z)({},Xd,{reactReduxForwardedRef:Sd}))});return vd.displayName=si,vd.WrappedComponent=Ri,te()(vd,Ri)}return te()(nd,Ri)}}function Ye(ue,le){return ue===le?ue!==0||le!==0||1/ue===1/le:ue!==ue&&le!==le}function it(ue,le){if(Ye(ue,le))return!0;if(typeof ue!="object"||ue===null||typeof le!="object"||le===null)return!1;var Ee=Object.keys(ue),je=Object.keys(le);if(Ee.length!==je.length)return!1;for(var qe=0;qe=0;je--){var qe=le[je](ue);if(qe)return qe}return function($e,gt){throw new Error("Invalid value of type "+typeof ue+" for "+Ee+" argument when connecting component "+gt.wrappedComponentName+".")}}function jt(ue,le){return ue===le}function sn(ue){var le=ue===void 0?{}:ue,Ee=le.connectHOC,je=Ee===void 0?Ue:Ee,qe=le.mapStateToPropsFactories,$e=qe===void 0?kt:qe,gt=le.mapDispatchToPropsFactories,At=gt===void 0?Je:gt,Kt=le.mergePropsFactories,fn=Kt===void 0?Pn:Kt,on=le.selectorFactory,en=on===void 0?Nn:on;return function(In,Na,dr,Sr){Sr===void 0&&(Sr={});var Vt=Sr,sl=Vt.pure,Rl=sl===void 0?!0:sl,Kl=Vt.areStatesEqual,$o=Kl===void 0?jt:Kl,ei=Vt.areOwnPropsEqual,Ri=ei===void 0?it:ei,Ws=Vt.areStatePropsEqual,si=Ws===void 0?it:Ws,Fs=Vt.areMergedPropsEqual,gc=Fs===void 0?it:Fs,Ic=(0,b.Z)(Vt,Qt),Bd=zt(In,$e,"mapStateToProps"),sd=zt(Na,At,"mapDispatchToProps"),nd=zt(dr,fn,"mergeProps");return je(en,(0,he.Z)({methodName:"connect",getDisplayName:function(Lc){return"Connect("+Lc+")"},shouldHandleStateChanges:!!In,initMapStateToProps:Bd,initMapDispatchToProps:sd,initMergeProps:nd,pure:Rl,areStatesEqual:$o,areOwnPropsEqual:Ri,areStatePropsEqual:si,areMergedPropsEqual:gc},Ic))}}var vt=sn();function Tt(){var ue=useContext(ReactReduxContext);return ue}function qt(ue){ue===void 0&&(ue=ReactReduxContext);var le=ue===ReactReduxContext?useDefaultReduxContext:function(){return useContext(ue)};return function(){var je=le(),qe=je.store;return qe}}var St=null;function Ke(ue){ue===void 0&&(ue=ReactReduxContext);var le=ue===ReactReduxContext?useDefaultStore:createStoreHook(ue);return function(){var je=le();return je.dispatch}}var ln=null,Un=function(le,Ee){return le===Ee};function Ca(ue,le,Ee,je){var qe=useReducer(function(Na){return Na+1},0),$e=qe[1],gt=useMemo(function(){return createSubscription(Ee,je)},[Ee,je]),At=useRef(),Kt=useRef(),fn=useRef(),on=useRef(),en=Ee.getState(),an;try{if(ue!==Kt.current||en!==fn.current||At.current){var In=ue(en);on.current===void 0||!le(In,on.current)?an=In:an=on.current}else an=on.current}catch(Na){throw At.current&&(Na.message+=` The error may be correlated with this previous error: `+At.current.stack+` @@ -1231,12 +1231,12 @@ The error may be correlated with this previous error: -moz-user-select: none; -ms-user-select: none; overflow-anchor: none; - `}},gt=[je,Ee,qe,$e];return{always:Ll(gt,"always"),resting:Ll(gt,"resting"),dragging:Ll(gt,"dragging"),dropAnimating:Ll(gt,"dropAnimating"),userCancel:Ll(gt,"userCancel")}},Oe=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?a.useLayoutEffect:a.useEffect,Qe=function(){var le=document.querySelector("head");return le||jn(!1),le},mt=function(le){var Ee=document.createElement("style");return le&&Ee.setAttribute("nonce",le),Ee.type="text/css",Ee};function It(ue,le){var Ee=Zt(function(){return we(ue)},[ue]),je=(0,a.useRef)(null),qe=(0,a.useRef)(null),$e=xn(hu(function(en){var an=qe.current;an||jn(!1),an.textContent=en}),[]),gt=xn(function(en){var an=je.current;an||jn(!1),an.textContent=en},[]);Oe(function(){!je.current&&!qe.current||jn(!1);var en=mt(le),an=mt(le);return je.current=en,qe.current=an,en.setAttribute(us+"-always",ue),an.setAttribute(us+"-dynamic",ue),Qe().appendChild(en),Qe().appendChild(an),gt(Ee.always),$e(Ee.resting),function(){var In=function(dr){var Sr=dr.current;Sr||jn(!1),Qe().removeChild(Sr),dr.current=null};In(je),In(qe)}},[le,gt,$e,Ee.always,Ee.resting,ue]);var At=xn(function(){return $e(Ee.dragging)},[$e,Ee.dragging]),Kt=xn(function(en){if(en==="DROP"){$e(Ee.dropAnimating);return}$e(Ee.userCancel)},[$e,Ee.dropAnimating,Ee.userCancel]),fn=xn(function(){qe.current&&$e(Ee.resting)},[$e,Ee.resting]),on=Zt(function(){return{dragging:At,dropping:Kt,resting:fn}},[At,Kt,fn]);return on}var $t=function(ue){return ue&&ue.ownerDocument?ue.ownerDocument.defaultView:window};function dn(ue){return ue instanceof $t(ue).HTMLElement}function ta(ue,le){var Ee="["+Il.contextId+'="'+ue+'"]',je=Qi(document.querySelectorAll(Ee));if(!je.length)return null;var qe=Wu(je,function($e){return $e.getAttribute(Il.draggableId)===le});return!qe||!dn(qe)?null:qe}function aa(ue){var le=(0,a.useRef)({}),Ee=(0,a.useRef)(null),je=(0,a.useRef)(null),qe=(0,a.useRef)(!1),$e=xn(function(an,In){var Na={id:an,focus:In};return le.current[an]=Na,function(){var Sr=le.current,Vt=Sr[an];Vt!==Na&&delete Sr[an]}},[]),gt=xn(function(an){var In=ta(ue,an);In&&In!==document.activeElement&&In.focus()},[ue]),At=xn(function(an,In){Ee.current===an&&(Ee.current=In)},[]),Kt=xn(function(){je.current||qe.current&&(je.current=requestAnimationFrame(function(){je.current=null;var an=Ee.current;an&>(an)}))},[gt]),fn=xn(function(an){Ee.current=null;var In=document.activeElement;In&&In.getAttribute(Il.draggableId)===an&&(Ee.current=an)},[]);Oe(function(){return qe.current=!0,function(){qe.current=!1;var an=je.current;an&&cancelAnimationFrame(an)}},[]);var on=Zt(function(){return{register:$e,tryRecordFocus:fn,tryRestoreFocusRecorded:Kt,tryShiftRecord:At}},[$e,fn,Kt,At]);return on}function wn(){var ue={draggables:{},droppables:{}},le=[];function Ee(en){return le.push(en),function(){var In=le.indexOf(en);In!==-1&&le.splice(In,1)}}function je(en){le.length&&le.forEach(function(an){return an(en)})}function qe(en){return ue.draggables[en]||null}function $e(en){var an=qe(en);return an||jn(!1),an}var gt={register:function(an){ue.draggables[an.descriptor.id]=an,je({type:"ADDITION",value:an})},update:function(an,In){var Na=ue.draggables[In.descriptor.id];Na&&Na.uniqueId===an.uniqueId&&(delete ue.draggables[In.descriptor.id],ue.draggables[an.descriptor.id]=an)},unregister:function(an){var In=an.descriptor.id,Na=qe(In);Na&&an.uniqueId===Na.uniqueId&&(delete ue.draggables[In],je({type:"REMOVAL",value:an}))},getById:$e,findById:qe,exists:function(an){return!!qe(an)},getAllByType:function(an){return ri(ue.draggables).filter(function(In){return In.descriptor.type===an})}};function At(en){return ue.droppables[en]||null}function Kt(en){var an=At(en);return an||jn(!1),an}var fn={register:function(an){ue.droppables[an.descriptor.id]=an},unregister:function(an){var In=At(an.descriptor.id);In&&an.uniqueId===In.uniqueId&&delete ue.droppables[an.descriptor.id]},getById:Kt,findById:At,exists:function(an){return!!At(an)},getAllByType:function(an){return ri(ue.droppables).filter(function(In){return In.descriptor.type===an})}};function on(){ue.draggables={},ue.droppables={},le.length=0}return{draggable:gt,droppable:fn,subscribe:Ee,clean:on}}function ja(){var ue=Zt(wn,[]);return(0,a.useEffect)(function(){return function(){requestAnimationFrame(ue.clean)}},[ue]),ue}var $a=a.createContext(null),Ra=function(){var ue=document.body;return ue||jn(!1),ue},wa={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},eu=function(le){return"rbd-announcement-"+le};function za(ue){var le=Zt(function(){return eu(ue)},[ue]),Ee=(0,a.useRef)(null);(0,a.useEffect)(function(){var $e=document.createElement("div");return Ee.current=$e,$e.id=le,$e.setAttribute("aria-live","assertive"),$e.setAttribute("aria-atomic","true"),(0,he.Z)($e.style,wa),Ra().appendChild($e),function(){setTimeout(function(){var Kt=Ra();Kt.contains($e)&&Kt.removeChild($e),$e===Ee.current&&(Ee.current=null)})}},[le]);var je=xn(function(qe){var $e=Ee.current;if($e){$e.textContent=qe;return}},[]);return je}var _a=0,Iu={separator:"::"};function Lu(){_a=0}function ru(ue,le){return le===void 0&&(le=Iu),Zt(function(){return""+ue+le.separator+_a++},[le.separator,ue])}function Ku(ue){var le=ue.contextId,Ee=ue.uniqueId;return"rbd-hidden-text-"+le+"-"+Ee}function Fu(ue){var le=ue.contextId,Ee=ue.text,je=ru("hidden-text",{separator:"-"}),qe=Zt(function(){return Ku({contextId:le,uniqueId:je})},[je,le]);return(0,a.useEffect)(function(){var gt=document.createElement("div");return gt.id=qe,gt.textContent=Ee,gt.style.display="none",Ra().appendChild(gt),function(){var Kt=Ra();Kt.contains(gt)&&Kt.removeChild(gt)}},[qe,Ee]),qe}var Ou=a.createContext(null),xr={react:"^16.8.5","react-dom":"^16.8.5"},Nr=/(\d+)\.(\d+)\.(\d+)/,pu=function(le){var Ee=Nr.exec(le);Ee==null&&jn(!1);var je=Number(Ee[1]),qe=Number(Ee[2]),$e=Number(Ee[3]);return{major:je,minor:qe,patch:$e,raw:le}},pr=function(le,Ee){return Ee.major>le.major?!0:Ee.majorle.minor?!0:Ee.minor=le.patch},il=function(ue,le){var Ee=pu(ue),je=pu(le);pr(Ee,je)},ur=` + `}},gt=[je,Ee,qe,$e];return{always:Ll(gt,"always"),resting:Ll(gt,"resting"),dragging:Ll(gt,"dragging"),dropAnimating:Ll(gt,"dropAnimating"),userCancel:Ll(gt,"userCancel")}},Oe=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?a.useLayoutEffect:a.useEffect,Qe=function(){var le=document.querySelector("head");return le||jn(!1),le},mt=function(le){var Ee=document.createElement("style");return le&&Ee.setAttribute("nonce",le),Ee.type="text/css",Ee};function It(ue,le){var Ee=Zt(function(){return we(ue)},[ue]),je=(0,a.useRef)(null),qe=(0,a.useRef)(null),$e=xn(hu(function(en){var an=qe.current;an||jn(!1),an.textContent=en}),[]),gt=xn(function(en){var an=je.current;an||jn(!1),an.textContent=en},[]);Oe(function(){!je.current&&!qe.current||jn(!1);var en=mt(le),an=mt(le);return je.current=en,qe.current=an,en.setAttribute(us+"-always",ue),an.setAttribute(us+"-dynamic",ue),Qe().appendChild(en),Qe().appendChild(an),gt(Ee.always),$e(Ee.resting),function(){var In=function(dr){var Sr=dr.current;Sr||jn(!1),Qe().removeChild(Sr),dr.current=null};In(je),In(qe)}},[le,gt,$e,Ee.always,Ee.resting,ue]);var At=xn(function(){return $e(Ee.dragging)},[$e,Ee.dragging]),Kt=xn(function(en){if(en==="DROP"){$e(Ee.dropAnimating);return}$e(Ee.userCancel)},[$e,Ee.dropAnimating,Ee.userCancel]),fn=xn(function(){qe.current&&$e(Ee.resting)},[$e,Ee.resting]),on=Zt(function(){return{dragging:At,dropping:Kt,resting:fn}},[At,Kt,fn]);return on}var $t=function(ue){return ue&&ue.ownerDocument?ue.ownerDocument.defaultView:window};function dn(ue){return ue instanceof $t(ue).HTMLElement}function ea(ue,le){var Ee="["+Il.contextId+'="'+ue+'"]',je=Qi(document.querySelectorAll(Ee));if(!je.length)return null;var qe=Wu(je,function($e){return $e.getAttribute(Il.draggableId)===le});return!qe||!dn(qe)?null:qe}function aa(ue){var le=(0,a.useRef)({}),Ee=(0,a.useRef)(null),je=(0,a.useRef)(null),qe=(0,a.useRef)(!1),$e=xn(function(an,In){var Na={id:an,focus:In};return le.current[an]=Na,function(){var Sr=le.current,Vt=Sr[an];Vt!==Na&&delete Sr[an]}},[]),gt=xn(function(an){var In=ea(ue,an);In&&In!==document.activeElement&&In.focus()},[ue]),At=xn(function(an,In){Ee.current===an&&(Ee.current=In)},[]),Kt=xn(function(){je.current||qe.current&&(je.current=requestAnimationFrame(function(){je.current=null;var an=Ee.current;an&>(an)}))},[gt]),fn=xn(function(an){Ee.current=null;var In=document.activeElement;In&&In.getAttribute(Il.draggableId)===an&&(Ee.current=an)},[]);Oe(function(){return qe.current=!0,function(){qe.current=!1;var an=je.current;an&&cancelAnimationFrame(an)}},[]);var on=Zt(function(){return{register:$e,tryRecordFocus:fn,tryRestoreFocusRecorded:Kt,tryShiftRecord:At}},[$e,fn,Kt,At]);return on}function wn(){var ue={draggables:{},droppables:{}},le=[];function Ee(en){return le.push(en),function(){var In=le.indexOf(en);In!==-1&&le.splice(In,1)}}function je(en){le.length&&le.forEach(function(an){return an(en)})}function qe(en){return ue.draggables[en]||null}function $e(en){var an=qe(en);return an||jn(!1),an}var gt={register:function(an){ue.draggables[an.descriptor.id]=an,je({type:"ADDITION",value:an})},update:function(an,In){var Na=ue.draggables[In.descriptor.id];Na&&Na.uniqueId===an.uniqueId&&(delete ue.draggables[In.descriptor.id],ue.draggables[an.descriptor.id]=an)},unregister:function(an){var In=an.descriptor.id,Na=qe(In);Na&&an.uniqueId===Na.uniqueId&&(delete ue.draggables[In],je({type:"REMOVAL",value:an}))},getById:$e,findById:qe,exists:function(an){return!!qe(an)},getAllByType:function(an){return ri(ue.draggables).filter(function(In){return In.descriptor.type===an})}};function At(en){return ue.droppables[en]||null}function Kt(en){var an=At(en);return an||jn(!1),an}var fn={register:function(an){ue.droppables[an.descriptor.id]=an},unregister:function(an){var In=At(an.descriptor.id);In&&an.uniqueId===In.uniqueId&&delete ue.droppables[an.descriptor.id]},getById:Kt,findById:At,exists:function(an){return!!At(an)},getAllByType:function(an){return ri(ue.droppables).filter(function(In){return In.descriptor.type===an})}};function on(){ue.draggables={},ue.droppables={},le.length=0}return{draggable:gt,droppable:fn,subscribe:Ee,clean:on}}function ja(){var ue=Zt(wn,[]);return(0,a.useEffect)(function(){return function(){requestAnimationFrame(ue.clean)}},[ue]),ue}var $a=a.createContext(null),Ra=function(){var ue=document.body;return ue||jn(!1),ue},wa={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},eu=function(le){return"rbd-announcement-"+le};function za(ue){var le=Zt(function(){return eu(ue)},[ue]),Ee=(0,a.useRef)(null);(0,a.useEffect)(function(){var $e=document.createElement("div");return Ee.current=$e,$e.id=le,$e.setAttribute("aria-live","assertive"),$e.setAttribute("aria-atomic","true"),(0,he.Z)($e.style,wa),Ra().appendChild($e),function(){setTimeout(function(){var Kt=Ra();Kt.contains($e)&&Kt.removeChild($e),$e===Ee.current&&(Ee.current=null)})}},[le]);var je=xn(function(qe){var $e=Ee.current;if($e){$e.textContent=qe;return}},[]);return je}var _a=0,Iu={separator:"::"};function Lu(){_a=0}function ru(ue,le){return le===void 0&&(le=Iu),Zt(function(){return""+ue+le.separator+_a++},[le.separator,ue])}function Ku(ue){var le=ue.contextId,Ee=ue.uniqueId;return"rbd-hidden-text-"+le+"-"+Ee}function Fu(ue){var le=ue.contextId,Ee=ue.text,je=ru("hidden-text",{separator:"-"}),qe=Zt(function(){return Ku({contextId:le,uniqueId:je})},[je,le]);return(0,a.useEffect)(function(){var gt=document.createElement("div");return gt.id=qe,gt.textContent=Ee,gt.style.display="none",Ra().appendChild(gt),function(){var Kt=Ra();Kt.contains(gt)&&Kt.removeChild(gt)}},[qe,Ee]),qe}var Ou=a.createContext(null),xr={react:"^16.8.5","react-dom":"^16.8.5"},Nr=/(\d+)\.(\d+)\.(\d+)/,pu=function(le){var Ee=Nr.exec(le);Ee==null&&jn(!1);var je=Number(Ee[1]),qe=Number(Ee[2]),$e=Number(Ee[3]);return{major:je,minor:qe,patch:$e,raw:le}},pr=function(le,Ee){return Ee.major>le.major?!0:Ee.majorle.minor?!0:Ee.minor=le.patch},il=function(ue,le){var Ee=pu(ue),je=pu(le);pr(Ee,je)},ur=` We expect a html5 doctype: This is to ensure consistent browser layout and measurement More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/doctype.md -`,Au=function(ue){var le=ue.doctype;le&&(le.name.toLowerCase(),le.publicId)};function Vu(ue){}function Ju(ue,le){}function qr(){Ju(function(){il(xr.react,a.version),Au(document)},[])}function Nl(ue){var le=(0,a.useRef)(ue);return(0,a.useEffect)(function(){le.current=ue}),le}function qu(){var ue=null;function le(){return!!ue}function Ee(gt){return gt===ue}function je(gt){ue&&jn(!1);var At={abandon:gt};return ue=At,At}function qe(){ue||jn(!1),ue=null}function $e(){ue&&(ue.abandon(),qe())}return{isClaimed:le,isActive:Ee,claim:je,release:qe,tryAbandon:$e}}var fr=9,zu=13,fu=27,rr=32,lr=33,eo=34,to=35,ou=36,jl=37,Vl=38,wo=39,Ro=40,No,ii=(No={},No[zu]=!0,No[fr]=!0,No),po=function(ue){ii[ue.keyCode]&&ue.preventDefault()},So=function(){var ue="visibilitychange";if(typeof document=="undefined")return ue;var le=[ue,"ms"+ue,"webkit"+ue,"moz"+ue,"o"+ue],Ee=Wu(le,function(je){return"on"+je in document});return Ee||ue}(),mo=0,ki=5;function Ao(ue,le){return Math.abs(le.x-ue.x)>=ki||Math.abs(le.y-ue.y)>=ki}var Vi={type:"IDLE"};function Xi(ue){var le=ue.cancel,Ee=ue.completed,je=ue.getPhase,qe=ue.setPhase;return[{eventName:"mousemove",fn:function(gt){var At=gt.button,Kt=gt.clientX,fn=gt.clientY;if(At===mo){var on={x:Kt,y:fn},en=je();if(en.type==="DRAGGING"){gt.preventDefault(),en.actions.move(on);return}en.type!=="PENDING"&&jn(!1);var an=en.point;if(Ao(an,on)){gt.preventDefault();var In=en.actions.fluidLift(on);qe({type:"DRAGGING",actions:In})}}}},{eventName:"mouseup",fn:function(gt){var At=je();if(At.type!=="DRAGGING"){le();return}gt.preventDefault(),At.actions.drop({shouldBlockNextClick:!0}),Ee()}},{eventName:"mousedown",fn:function(gt){je().type==="DRAGGING"&>.preventDefault(),le()}},{eventName:"keydown",fn:function(gt){var At=je();if(At.type==="PENDING"){le();return}if(gt.keyCode===fu){gt.preventDefault(),le();return}po(gt)}},{eventName:"resize",fn:le},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){je().type==="PENDING"&&le()}},{eventName:"webkitmouseforcedown",fn:function(gt){var At=je();if(At.type==="IDLE"&&jn(!1),At.actions.shouldRespectForcePress()){le();return}gt.preventDefault()}},{eventName:So,fn:le}]}function Ci(ue){var le=(0,a.useRef)(Vi),Ee=(0,a.useRef)(Du),je=Zt(function(){return{eventName:"mousedown",fn:function(en){if(!en.defaultPrevented&&en.button===mo&&!(en.ctrlKey||en.metaKey||en.shiftKey||en.altKey)){var an=ue.findClosestDraggableId(en);if(an){var In=ue.tryGetLock(an,gt,{sourceEvent:en});if(In){en.preventDefault();var Na={x:en.clientX,y:en.clientY};Ee.current(),fn(In,Na)}}}}}},[ue]),qe=Zt(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(en){if(!en.defaultPrevented){var an=ue.findClosestDraggableId(en);if(an){var In=ue.findOptionsForDraggable(an);In&&(In.shouldRespectForcePress||ue.canGetLock(an)&&en.preventDefault())}}}}},[ue]),$e=xn(function(){var en={passive:!1,capture:!0};Ee.current=lu(window,[qe,je],en)},[qe,je]),gt=xn(function(){var on=le.current;on.type!=="IDLE"&&(le.current=Vi,Ee.current(),$e())},[$e]),At=xn(function(){var on=le.current;gt(),on.type==="DRAGGING"&&on.actions.cancel({shouldBlockNextClick:!0}),on.type==="PENDING"&&on.actions.abort()},[gt]),Kt=xn(function(){var en={capture:!0,passive:!1},an=Xi({cancel:At,completed:gt,getPhase:function(){return le.current},setPhase:function(Na){le.current=Na}});Ee.current=lu(window,an,en)},[At,gt]),fn=xn(function(en,an){le.current.type!=="IDLE"&&jn(!1),le.current={type:"PENDING",point:an,actions:en},Kt()},[Kt]);Oe(function(){return $e(),function(){Ee.current()}},[$e])}var Po;function Ji(){}var Gi=(Po={},Po[eo]=!0,Po[lr]=!0,Po[ou]=!0,Po[to]=!0,Po);function gs(ue,le){function Ee(){le(),ue.cancel()}function je(){le(),ue.drop()}return[{eventName:"keydown",fn:function($e){if($e.keyCode===fu){$e.preventDefault(),Ee();return}if($e.keyCode===rr){$e.preventDefault(),je();return}if($e.keyCode===Ro){$e.preventDefault(),ue.moveDown();return}if($e.keyCode===Vl){$e.preventDefault(),ue.moveUp();return}if($e.keyCode===wo){$e.preventDefault(),ue.moveRight();return}if($e.keyCode===jl){$e.preventDefault(),ue.moveLeft();return}if(Gi[$e.keyCode]){$e.preventDefault();return}po($e)}},{eventName:"mousedown",fn:Ee},{eventName:"mouseup",fn:Ee},{eventName:"click",fn:Ee},{eventName:"touchstart",fn:Ee},{eventName:"resize",fn:Ee},{eventName:"wheel",fn:Ee,options:{passive:!0}},{eventName:So,fn:Ee}]}function Oo(ue){var le=(0,a.useRef)(Ji),Ee=Zt(function(){return{eventName:"keydown",fn:function($e){if($e.defaultPrevented||$e.keyCode!==rr)return;var gt=ue.findClosestDraggableId($e);if(!gt)return;var At=ue.tryGetLock(gt,on,{sourceEvent:$e});if(!At)return;$e.preventDefault();var Kt=!0,fn=At.snapLift();le.current();function on(){Kt||jn(!1),Kt=!1,le.current(),je()}le.current=lu(window,gs(fn,on),{capture:!0,passive:!1})}}},[ue]),je=xn(function(){var $e={passive:!1,capture:!0};le.current=lu(window,[Ee],$e)},[Ee]);Oe(function(){return je(),function(){le.current()}},[je])}var Ls={type:"IDLE"},xi=120,To=.15;function Si(ue){var le=ue.cancel,Ee=ue.getPhase;return[{eventName:"orientationchange",fn:le},{eventName:"resize",fn:le},{eventName:"contextmenu",fn:function(qe){qe.preventDefault()}},{eventName:"keydown",fn:function(qe){if(Ee().type!=="DRAGGING"){le();return}qe.keyCode===fu&&qe.preventDefault(),le()}},{eventName:So,fn:le}]}function hs(ue){var le=ue.cancel,Ee=ue.completed,je=ue.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function($e){var gt=je();if(gt.type!=="DRAGGING"){le();return}gt.hasMoved=!0;var At=$e.touches[0],Kt=At.clientX,fn=At.clientY,on={x:Kt,y:fn};$e.preventDefault(),gt.actions.move(on)}},{eventName:"touchend",fn:function($e){var gt=je();if(gt.type!=="DRAGGING"){le();return}$e.preventDefault(),gt.actions.drop({shouldBlockNextClick:!0}),Ee()}},{eventName:"touchcancel",fn:function($e){if(je().type!=="DRAGGING"){le();return}$e.preventDefault(),le()}},{eventName:"touchforcechange",fn:function($e){var gt=je();gt.type==="IDLE"&&jn(!1);var At=$e.touches[0];if(At){var Kt=At.force>=To;if(Kt){var fn=gt.actions.shouldRespectForcePress();if(gt.type==="PENDING"){fn&&le();return}if(fn){if(gt.hasMoved){$e.preventDefault();return}le();return}$e.preventDefault()}}}},{eventName:So,fn:le}]}function ko(ue){var le=(0,a.useRef)(Ls),Ee=(0,a.useRef)(Du),je=xn(function(){return le.current},[]),qe=xn(function(In){le.current=In},[]),$e=Zt(function(){return{eventName:"touchstart",fn:function(In){if(!In.defaultPrevented){var Na=ue.findClosestDraggableId(In);if(Na){var dr=ue.tryGetLock(Na,At,{sourceEvent:In});if(dr){var Sr=In.touches[0],Vt=Sr.clientX,sl=Sr.clientY,Rl={x:Vt,y:sl};Ee.current(),en(dr,Rl)}}}}}},[ue]),gt=xn(function(){var In={capture:!0,passive:!1};Ee.current=lu(window,[$e],In)},[$e]),At=xn(function(){var an=le.current;an.type!=="IDLE"&&(an.type==="PENDING"&&clearTimeout(an.longPressTimerId),qe(Ls),Ee.current(),gt())},[gt,qe]),Kt=xn(function(){var an=le.current;At(),an.type==="DRAGGING"&&an.actions.cancel({shouldBlockNextClick:!0}),an.type==="PENDING"&&an.actions.abort()},[At]),fn=xn(function(){var In={capture:!0,passive:!1},Na={cancel:Kt,completed:At,getPhase:je},dr=lu(window,hs(Na),In),Sr=lu(window,Si(Na),In);Ee.current=function(){dr(),Sr()}},[Kt,je,At]),on=xn(function(){var In=je();In.type!=="PENDING"&&jn(!1);var Na=In.actions.fluidLift(In.point);qe({type:"DRAGGING",actions:Na,hasMoved:!1})},[je,qe]),en=xn(function(In,Na){je().type!=="IDLE"&&jn(!1);var dr=setTimeout(on,xi);qe({type:"PENDING",point:Na,actions:In,longPressTimerId:dr}),fn()},[fn,je,qe,on]);Oe(function(){return gt(),function(){Ee.current();var Na=je();Na.type==="PENDING"&&(clearTimeout(Na.longPressTimerId),qe(Ls))}},[je,gt,qe]),Oe(function(){var In=lu(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return In},[])}function oc(ue){}var Cn={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function al(ue,le){if(le==null)return!1;var Ee=!!Cn[le.tagName.toLowerCase()];if(Ee)return!0;var je=le.getAttribute("contenteditable");return je==="true"||je===""?!0:le===ue?!1:al(ue,le.parentElement)}function ml(ue,le){var Ee=le.target;return dn(Ee)?al(ue,Ee):!1}var Qu=function(ue){return Pa(ue.getBoundingClientRect()).center};function Zr(ue){return ue instanceof $t(ue).Element}var pi=function(){var ue="matches";if(typeof document=="undefined")return ue;var le=[ue,"msMatchesSelector","webkitMatchesSelector"],Ee=Wu(le,function(je){return je in Element.prototype});return Ee||ue}();function Uo(ue,le){return ue==null?null:ue[pi](le)?ue:Uo(ue.parentElement,le)}function ai(ue,le){return ue.closest?ue.closest(le):Uo(ue,le)}function ds(ue){return"["+Il.contextId+'="'+ue+'"]'}function ms(ue,le){var Ee=le.target;if(!Zr(Ee))return null;var je=ds(ue),qe=ai(Ee,je);return!qe||!dn(qe)?null:qe}function Zs(ue,le){var Ee=ms(ue,le);return Ee?Ee.getAttribute(Il.draggableId):null}function Hs(ue,le){var Ee="["+Pr.contextId+'="'+ue+'"]',je=Qi(document.querySelectorAll(Ee)),qe=Wu(je,function($e){return $e.getAttribute(Pr.id)===le});return!qe||!dn(qe)?null:qe}function _s(ue){ue.preventDefault()}function ju(ue){var le=ue.expected,Ee=ue.phase,je=ue.isLockActive,qe=ue.shouldWarn;return!(!je()||le!==Ee)}function fi(ue){var le=ue.lockAPI,Ee=ue.store,je=ue.registry,qe=ue.draggableId;if(le.isClaimed())return!1;var $e=je.draggable.findById(qe);return!(!$e||!$e.options.isEnabled||!br(Ee.getState(),qe))}function Ns(ue){var le=ue.lockAPI,Ee=ue.contextId,je=ue.store,qe=ue.registry,$e=ue.draggableId,gt=ue.forceSensorStop,At=ue.sourceEvent,Kt=fi({lockAPI:le,store:je,registry:qe,draggableId:$e});if(!Kt)return null;var fn=qe.draggable.getById($e),on=Hs(Ee,fn.descriptor.id);if(!on||At&&!fn.options.canDragInteractiveElements&&ml(on,At))return null;var en=le.claim(gt||Du),an="PRE_DRAG";function In(){return fn.options.shouldRespectForcePress}function Na(){return le.isActive(en)}function dr(ei,Ri){ju({expected:ei,phase:an,isLockActive:Na,shouldWarn:!0})&&je.dispatch(Ri())}var Sr=dr.bind(null,"DRAGGING");function Vt(ei){function Ri(){le.release(),an="COMPLETED"}an!=="PRE_DRAG"&&(Ri(),an!=="PRE_DRAG"&&jn(!1)),je.dispatch(co(ei.liftActionArgs)),an="DRAGGING";function Ws(si,Fs){if(Fs===void 0&&(Fs={shouldBlockNextClick:!1}),ei.cleanup(),Fs.shouldBlockNextClick){var gc=lu(window,[{eventName:"click",fn:_s,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(gc)}Ri(),je.dispatch(bs({reason:si}))}return(0,he.Z)({isActive:function(){return ju({expected:"DRAGGING",phase:an,isLockActive:Na,shouldWarn:!1})},shouldRespectForcePress:In,drop:function(Fs){return Ws("DROP",Fs)},cancel:function(Fs){return Ws("CANCEL",Fs)}},ei.actions)}function sl(ei){var Ri=re(function(si){Sr(function(){return Jo({client:si})})}),Ws=Vt({liftActionArgs:{id:$e,clientSelection:ei,movementMode:"FLUID"},cleanup:function(){return Ri.cancel()},actions:{move:Ri}});return(0,he.Z)({},Ws,{move:Ri})}function Rl(){var ei={moveUp:function(){return Sr(Ul)},moveRight:function(){return Sr(Js)},moveDown:function(){return Sr(Xs)},moveLeft:function(){return Sr(wl)}};return Vt({liftActionArgs:{id:$e,clientSelection:Qu(on),movementMode:"SNAP"},cleanup:Du,actions:ei})}function Kl(){var ei=ju({expected:"PRE_DRAG",phase:an,isLockActive:Na,shouldWarn:!0});ei&&le.release()}var $o={isActive:function(){return ju({expected:"PRE_DRAG",phase:an,isLockActive:Na,shouldWarn:!1})},shouldRespectForcePress:In,fluidLift:sl,snapLift:Rl,abort:Kl};return $o}var rc=[Ci,Oo,ko];function Qc(ue){var le=ue.contextId,Ee=ue.store,je=ue.registry,qe=ue.customSensors,$e=ue.enableDefaultSensors,gt=[].concat($e?rc:[],qe||[]),At=(0,a.useState)(function(){return qu()})[0],Kt=xn(function(sl,Rl){sl.isDragging&&!Rl.isDragging&&At.tryAbandon()},[At]);Oe(function(){var sl=Ee.getState(),Rl=Ee.subscribe(function(){var Kl=Ee.getState();Kt(sl,Kl),sl=Kl});return Rl},[At,Ee,Kt]),Oe(function(){return At.tryAbandon},[At.tryAbandon]);var fn=xn(function(Vt){return fi({lockAPI:At,registry:je,store:Ee,draggableId:Vt})},[At,je,Ee]),on=xn(function(Vt,sl,Rl){return Ns({lockAPI:At,registry:je,contextId:le,store:Ee,draggableId:Vt,forceSensorStop:sl,sourceEvent:Rl&&Rl.sourceEvent?Rl.sourceEvent:null})},[le,At,je,Ee]),en=xn(function(Vt){return Zs(le,Vt)},[le]),an=xn(function(Vt){var sl=je.draggable.findById(Vt);return sl?sl.options:null},[je.draggable]),In=xn(function(){At.isClaimed()&&(At.tryAbandon(),Ee.getState().phase!=="IDLE"&&Ee.dispatch(Bi()))},[At,Ee]),Na=xn(At.isClaimed,[At]),dr=Zt(function(){return{canGetLock:fn,tryGetLock:on,findClosestDraggableId:en,findOptionsForDraggable:an,tryReleaseLock:In,isLockClaimed:Na}},[fn,on,en,an,In,Na]);oc(gt);for(var Sr=0;Sr=0||Object.prototype.hasOwnProperty.call(Me,E)&&(oe[E]=Me[E]);return oe}function Se(Me,me){if(!(Me instanceof me))throw new TypeError("Cannot call a class as a function")}function Ae(Me,me){if(!Me)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return me&&(typeof me=="object"||typeof me=="function")?me:Me}function Ie(Me,me){if(typeof me!="function"&&me!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof me);Me.prototype=Object.create(me&&me.prototype,{constructor:{value:Me,enumerable:!1,writable:!0,configurable:!0}}),me&&(Object.setPrototypeOf?Object.setPrototypeOf(Me,me):Me.__proto__=me)}var ze=function(Me){Ie(me,Me);function me(oe){Se(this,me);var E=Ae(this,(me.__proto__||Object.getPrototypeOf(me)).call(this,oe));return E.scrollListener=E.scrollListener.bind(E),E.eventListenerOptions=E.eventListenerOptions.bind(E),E.mousewheelListener=E.mousewheelListener.bind(E),E}return a(me,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var E=this.getParentElement(this.scrollComponent);E.scrollTop=E.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var E=!1,y={get passive(){E=!0}};try{document.addEventListener("test",null,y),document.removeEventListener("test",null,y)}catch(x){}return E}},{key:"eventListenerOptions",value:function(){var E=this.props.useCapture;return this.isPassiveSupported()&&(E={useCapture:this.props.useCapture,passive:!0}),E}},{key:"setDefaultLoader",value:function(E){this.defaultLoader=E}},{key:"detachMousewheelListener",value:function(){var E=window;this.props.useWindow===!1&&(E=this.scrollComponent.parentNode),E.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var E=window;this.props.useWindow===!1&&(E=this.getParentElement(this.scrollComponent)),E.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),E.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(E){var y=this.props.getScrollParent&&this.props.getScrollParent();return y!=null?y:E&&E.parentNode}},{key:"filterProps",value:function(E){return E}},{key:"attachScrollListener",value:function(){var E=this.getParentElement(this.scrollComponent);if(!(!this.props.hasMore||!E)){var y=window;this.props.useWindow===!1&&(y=E),y.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),y.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),y.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(E){E.deltaY===1&&!this.isPassiveSupported()&&E.preventDefault()}},{key:"scrollListener",value:function(){var E=this.scrollComponent,y=window,x=this.getParentElement(E),b=void 0;if(this.props.useWindow){var ee=document.documentElement||document.body.parentNode||document.body,te=y.pageYOffset!==void 0?y.pageYOffset:ee.scrollTop;this.props.isReverse?b=te:b=this.calculateOffset(E,te)}else this.props.isReverse?b=x.scrollTop:b=E.scrollHeight-x.scrollTop-x.clientHeight;b=0)&&(y[b]=oe[b]);return y}function Ie(oe){if(oe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return oe}function ze(oe,E){oe.prototype=Object.create(E.prototype),oe.prototype.constructor=oe,oe.__proto__=E}function Me(oe,E,y){return E in oe?Object.defineProperty(oe,E,{value:y,enumerable:!0,configurable:!0,writable:!0}):oe[E]=y,oe}var me=function(oe){ze(E,oe);function E(){for(var x,b=arguments.length,ee=new Array(b),te=0;te=0)&&(ee[ne]=x[ne]);return ee}function me(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}function oe(x,b){x.prototype=Object.create(b.prototype),x.prototype.constructor=x,x.__proto__=b}function E(x,b,ee){return b in x?Object.defineProperty(x,b,{value:ee,enumerable:!0,configurable:!0,writable:!0}):x[b]=ee,x}var y=function(x){oe(b,x);function b(){for(var te,ne=arguments.length,de=new Array(ne),ye=0;ye=0)&&Object.prototype.propertyIsEnumerable.call(nt,ht)&&(yt[ht]=nt[ht])}return yt}function x(nt,Ze){if(nt==null)return{};var yt={},ht=Object.keys(nt),Je,ot;for(ot=0;ot=0)&&(yt[Je]=nt[Je]);return yt}function b(nt,Ze){var yt=Object.keys(nt);if(Object.getOwnPropertySymbols){var ht=Object.getOwnPropertySymbols(nt);Ze&&(ht=ht.filter(function(Je){return Object.getOwnPropertyDescriptor(nt,Je).enumerable})),yt.push.apply(yt,ht)}return yt}function ee(nt){for(var Ze=1;Ze=ki||Math.abs(le.y-ue.y)>=ki}var Vi={type:"IDLE"};function Xi(ue){var le=ue.cancel,Ee=ue.completed,je=ue.getPhase,qe=ue.setPhase;return[{eventName:"mousemove",fn:function(gt){var At=gt.button,Kt=gt.clientX,fn=gt.clientY;if(At===mo){var on={x:Kt,y:fn},en=je();if(en.type==="DRAGGING"){gt.preventDefault(),en.actions.move(on);return}en.type!=="PENDING"&&jn(!1);var an=en.point;if(Ao(an,on)){gt.preventDefault();var In=en.actions.fluidLift(on);qe({type:"DRAGGING",actions:In})}}}},{eventName:"mouseup",fn:function(gt){var At=je();if(At.type!=="DRAGGING"){le();return}gt.preventDefault(),At.actions.drop({shouldBlockNextClick:!0}),Ee()}},{eventName:"mousedown",fn:function(gt){je().type==="DRAGGING"&>.preventDefault(),le()}},{eventName:"keydown",fn:function(gt){var At=je();if(At.type==="PENDING"){le();return}if(gt.keyCode===fu){gt.preventDefault(),le();return}po(gt)}},{eventName:"resize",fn:le},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){je().type==="PENDING"&&le()}},{eventName:"webkitmouseforcedown",fn:function(gt){var At=je();if(At.type==="IDLE"&&jn(!1),At.actions.shouldRespectForcePress()){le();return}gt.preventDefault()}},{eventName:So,fn:le}]}function Ci(ue){var le=(0,a.useRef)(Vi),Ee=(0,a.useRef)(Du),je=Zt(function(){return{eventName:"mousedown",fn:function(en){if(!en.defaultPrevented&&en.button===mo&&!(en.ctrlKey||en.metaKey||en.shiftKey||en.altKey)){var an=ue.findClosestDraggableId(en);if(an){var In=ue.tryGetLock(an,gt,{sourceEvent:en});if(In){en.preventDefault();var Na={x:en.clientX,y:en.clientY};Ee.current(),fn(In,Na)}}}}}},[ue]),qe=Zt(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(en){if(!en.defaultPrevented){var an=ue.findClosestDraggableId(en);if(an){var In=ue.findOptionsForDraggable(an);In&&(In.shouldRespectForcePress||ue.canGetLock(an)&&en.preventDefault())}}}}},[ue]),$e=xn(function(){var en={passive:!1,capture:!0};Ee.current=lu(window,[qe,je],en)},[qe,je]),gt=xn(function(){var on=le.current;on.type!=="IDLE"&&(le.current=Vi,Ee.current(),$e())},[$e]),At=xn(function(){var on=le.current;gt(),on.type==="DRAGGING"&&on.actions.cancel({shouldBlockNextClick:!0}),on.type==="PENDING"&&on.actions.abort()},[gt]),Kt=xn(function(){var en={capture:!0,passive:!1},an=Xi({cancel:At,completed:gt,getPhase:function(){return le.current},setPhase:function(Na){le.current=Na}});Ee.current=lu(window,an,en)},[At,gt]),fn=xn(function(en,an){le.current.type!=="IDLE"&&jn(!1),le.current={type:"PENDING",point:an,actions:en},Kt()},[Kt]);Oe(function(){return $e(),function(){Ee.current()}},[$e])}var Po;function Ji(){}var Gi=(Po={},Po[eo]=!0,Po[lr]=!0,Po[ou]=!0,Po[to]=!0,Po);function gs(ue,le){function Ee(){le(),ue.cancel()}function je(){le(),ue.drop()}return[{eventName:"keydown",fn:function($e){if($e.keyCode===fu){$e.preventDefault(),Ee();return}if($e.keyCode===rr){$e.preventDefault(),je();return}if($e.keyCode===Ro){$e.preventDefault(),ue.moveDown();return}if($e.keyCode===Vl){$e.preventDefault(),ue.moveUp();return}if($e.keyCode===wo){$e.preventDefault(),ue.moveRight();return}if($e.keyCode===jl){$e.preventDefault(),ue.moveLeft();return}if(Gi[$e.keyCode]){$e.preventDefault();return}po($e)}},{eventName:"mousedown",fn:Ee},{eventName:"mouseup",fn:Ee},{eventName:"click",fn:Ee},{eventName:"touchstart",fn:Ee},{eventName:"resize",fn:Ee},{eventName:"wheel",fn:Ee,options:{passive:!0}},{eventName:So,fn:Ee}]}function Oo(ue){var le=(0,a.useRef)(Ji),Ee=Zt(function(){return{eventName:"keydown",fn:function($e){if($e.defaultPrevented||$e.keyCode!==rr)return;var gt=ue.findClosestDraggableId($e);if(!gt)return;var At=ue.tryGetLock(gt,on,{sourceEvent:$e});if(!At)return;$e.preventDefault();var Kt=!0,fn=At.snapLift();le.current();function on(){Kt||jn(!1),Kt=!1,le.current(),je()}le.current=lu(window,gs(fn,on),{capture:!0,passive:!1})}}},[ue]),je=xn(function(){var $e={passive:!1,capture:!0};le.current=lu(window,[Ee],$e)},[Ee]);Oe(function(){return je(),function(){le.current()}},[je])}var Ls={type:"IDLE"},xi=120,To=.15;function Si(ue){var le=ue.cancel,Ee=ue.getPhase;return[{eventName:"orientationchange",fn:le},{eventName:"resize",fn:le},{eventName:"contextmenu",fn:function(qe){qe.preventDefault()}},{eventName:"keydown",fn:function(qe){if(Ee().type!=="DRAGGING"){le();return}qe.keyCode===fu&&qe.preventDefault(),le()}},{eventName:So,fn:le}]}function hs(ue){var le=ue.cancel,Ee=ue.completed,je=ue.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function($e){var gt=je();if(gt.type!=="DRAGGING"){le();return}gt.hasMoved=!0;var At=$e.touches[0],Kt=At.clientX,fn=At.clientY,on={x:Kt,y:fn};$e.preventDefault(),gt.actions.move(on)}},{eventName:"touchend",fn:function($e){var gt=je();if(gt.type!=="DRAGGING"){le();return}$e.preventDefault(),gt.actions.drop({shouldBlockNextClick:!0}),Ee()}},{eventName:"touchcancel",fn:function($e){if(je().type!=="DRAGGING"){le();return}$e.preventDefault(),le()}},{eventName:"touchforcechange",fn:function($e){var gt=je();gt.type==="IDLE"&&jn(!1);var At=$e.touches[0];if(At){var Kt=At.force>=To;if(Kt){var fn=gt.actions.shouldRespectForcePress();if(gt.type==="PENDING"){fn&&le();return}if(fn){if(gt.hasMoved){$e.preventDefault();return}le();return}$e.preventDefault()}}}},{eventName:So,fn:le}]}function ko(ue){var le=(0,a.useRef)(Ls),Ee=(0,a.useRef)(Du),je=xn(function(){return le.current},[]),qe=xn(function(In){le.current=In},[]),$e=Zt(function(){return{eventName:"touchstart",fn:function(In){if(!In.defaultPrevented){var Na=ue.findClosestDraggableId(In);if(Na){var dr=ue.tryGetLock(Na,At,{sourceEvent:In});if(dr){var Sr=In.touches[0],Vt=Sr.clientX,sl=Sr.clientY,Rl={x:Vt,y:sl};Ee.current(),en(dr,Rl)}}}}}},[ue]),gt=xn(function(){var In={capture:!0,passive:!1};Ee.current=lu(window,[$e],In)},[$e]),At=xn(function(){var an=le.current;an.type!=="IDLE"&&(an.type==="PENDING"&&clearTimeout(an.longPressTimerId),qe(Ls),Ee.current(),gt())},[gt,qe]),Kt=xn(function(){var an=le.current;At(),an.type==="DRAGGING"&&an.actions.cancel({shouldBlockNextClick:!0}),an.type==="PENDING"&&an.actions.abort()},[At]),fn=xn(function(){var In={capture:!0,passive:!1},Na={cancel:Kt,completed:At,getPhase:je},dr=lu(window,hs(Na),In),Sr=lu(window,Si(Na),In);Ee.current=function(){dr(),Sr()}},[Kt,je,At]),on=xn(function(){var In=je();In.type!=="PENDING"&&jn(!1);var Na=In.actions.fluidLift(In.point);qe({type:"DRAGGING",actions:Na,hasMoved:!1})},[je,qe]),en=xn(function(In,Na){je().type!=="IDLE"&&jn(!1);var dr=setTimeout(on,xi);qe({type:"PENDING",point:Na,actions:In,longPressTimerId:dr}),fn()},[fn,je,qe,on]);Oe(function(){return gt(),function(){Ee.current();var Na=je();Na.type==="PENDING"&&(clearTimeout(Na.longPressTimerId),qe(Ls))}},[je,gt,qe]),Oe(function(){var In=lu(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return In},[])}function oc(ue){}var Cn={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function al(ue,le){if(le==null)return!1;var Ee=!!Cn[le.tagName.toLowerCase()];if(Ee)return!0;var je=le.getAttribute("contenteditable");return je==="true"||je===""?!0:le===ue?!1:al(ue,le.parentElement)}function ml(ue,le){var Ee=le.target;return dn(Ee)?al(ue,Ee):!1}var Qu=function(ue){return Pa(ue.getBoundingClientRect()).center};function Zr(ue){return ue instanceof $t(ue).Element}var pi=function(){var ue="matches";if(typeof document=="undefined")return ue;var le=[ue,"msMatchesSelector","webkitMatchesSelector"],Ee=Wu(le,function(je){return je in Element.prototype});return Ee||ue}();function Uo(ue,le){return ue==null?null:ue[pi](le)?ue:Uo(ue.parentElement,le)}function ai(ue,le){return ue.closest?ue.closest(le):Uo(ue,le)}function ds(ue){return"["+Il.contextId+'="'+ue+'"]'}function ms(ue,le){var Ee=le.target;if(!Zr(Ee))return null;var je=ds(ue),qe=ai(Ee,je);return!qe||!dn(qe)?null:qe}function Zs(ue,le){var Ee=ms(ue,le);return Ee?Ee.getAttribute(Il.draggableId):null}function Hs(ue,le){var Ee="["+Pr.contextId+'="'+ue+'"]',je=Qi(document.querySelectorAll(Ee)),qe=Wu(je,function($e){return $e.getAttribute(Pr.id)===le});return!qe||!dn(qe)?null:qe}function _s(ue){ue.preventDefault()}function ju(ue){var le=ue.expected,Ee=ue.phase,je=ue.isLockActive,qe=ue.shouldWarn;return!(!je()||le!==Ee)}function fi(ue){var le=ue.lockAPI,Ee=ue.store,je=ue.registry,qe=ue.draggableId;if(le.isClaimed())return!1;var $e=je.draggable.findById(qe);return!(!$e||!$e.options.isEnabled||!br(Ee.getState(),qe))}function Ns(ue){var le=ue.lockAPI,Ee=ue.contextId,je=ue.store,qe=ue.registry,$e=ue.draggableId,gt=ue.forceSensorStop,At=ue.sourceEvent,Kt=fi({lockAPI:le,store:je,registry:qe,draggableId:$e});if(!Kt)return null;var fn=qe.draggable.getById($e),on=Hs(Ee,fn.descriptor.id);if(!on||At&&!fn.options.canDragInteractiveElements&&ml(on,At))return null;var en=le.claim(gt||Du),an="PRE_DRAG";function In(){return fn.options.shouldRespectForcePress}function Na(){return le.isActive(en)}function dr(ei,Ri){ju({expected:ei,phase:an,isLockActive:Na,shouldWarn:!0})&&je.dispatch(Ri())}var Sr=dr.bind(null,"DRAGGING");function Vt(ei){function Ri(){le.release(),an="COMPLETED"}an!=="PRE_DRAG"&&(Ri(),an!=="PRE_DRAG"&&jn(!1)),je.dispatch(co(ei.liftActionArgs)),an="DRAGGING";function Ws(si,Fs){if(Fs===void 0&&(Fs={shouldBlockNextClick:!1}),ei.cleanup(),Fs.shouldBlockNextClick){var gc=lu(window,[{eventName:"click",fn:_s,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(gc)}Ri(),je.dispatch(bs({reason:si}))}return(0,he.Z)({isActive:function(){return ju({expected:"DRAGGING",phase:an,isLockActive:Na,shouldWarn:!1})},shouldRespectForcePress:In,drop:function(Fs){return Ws("DROP",Fs)},cancel:function(Fs){return Ws("CANCEL",Fs)}},ei.actions)}function sl(ei){var Ri=re(function(si){Sr(function(){return Jo({client:si})})}),Ws=Vt({liftActionArgs:{id:$e,clientSelection:ei,movementMode:"FLUID"},cleanup:function(){return Ri.cancel()},actions:{move:Ri}});return(0,he.Z)({},Ws,{move:Ri})}function Rl(){var ei={moveUp:function(){return Sr(Ul)},moveRight:function(){return Sr(Js)},moveDown:function(){return Sr(Xs)},moveLeft:function(){return Sr(wl)}};return Vt({liftActionArgs:{id:$e,clientSelection:Qu(on),movementMode:"SNAP"},cleanup:Du,actions:ei})}function Kl(){var ei=ju({expected:"PRE_DRAG",phase:an,isLockActive:Na,shouldWarn:!0});ei&&le.release()}var $o={isActive:function(){return ju({expected:"PRE_DRAG",phase:an,isLockActive:Na,shouldWarn:!1})},shouldRespectForcePress:In,fluidLift:sl,snapLift:Rl,abort:Kl};return $o}var rc=[Ci,Oo,ko];function Qc(ue){var le=ue.contextId,Ee=ue.store,je=ue.registry,qe=ue.customSensors,$e=ue.enableDefaultSensors,gt=[].concat($e?rc:[],qe||[]),At=(0,a.useState)(function(){return qu()})[0],Kt=xn(function(sl,Rl){sl.isDragging&&!Rl.isDragging&&At.tryAbandon()},[At]);Oe(function(){var sl=Ee.getState(),Rl=Ee.subscribe(function(){var Kl=Ee.getState();Kt(sl,Kl),sl=Kl});return Rl},[At,Ee,Kt]),Oe(function(){return At.tryAbandon},[At.tryAbandon]);var fn=xn(function(Vt){return fi({lockAPI:At,registry:je,store:Ee,draggableId:Vt})},[At,je,Ee]),on=xn(function(Vt,sl,Rl){return Ns({lockAPI:At,registry:je,contextId:le,store:Ee,draggableId:Vt,forceSensorStop:sl,sourceEvent:Rl&&Rl.sourceEvent?Rl.sourceEvent:null})},[le,At,je,Ee]),en=xn(function(Vt){return Zs(le,Vt)},[le]),an=xn(function(Vt){var sl=je.draggable.findById(Vt);return sl?sl.options:null},[je.draggable]),In=xn(function(){At.isClaimed()&&(At.tryAbandon(),Ee.getState().phase!=="IDLE"&&Ee.dispatch(Bi()))},[At,Ee]),Na=xn(At.isClaimed,[At]),dr=Zt(function(){return{canGetLock:fn,tryGetLock:on,findClosestDraggableId:en,findOptionsForDraggable:an,tryReleaseLock:In,isLockClaimed:Na}},[fn,on,en,an,In,Na]);oc(gt);for(var Sr=0;Sr=0||Object.prototype.hasOwnProperty.call(Me,E)&&(oe[E]=Me[E]);return oe}function Se(Me,me){if(!(Me instanceof me))throw new TypeError("Cannot call a class as a function")}function Ae(Me,me){if(!Me)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return me&&(typeof me=="object"||typeof me=="function")?me:Me}function Ie(Me,me){if(typeof me!="function"&&me!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof me);Me.prototype=Object.create(me&&me.prototype,{constructor:{value:Me,enumerable:!1,writable:!0,configurable:!0}}),me&&(Object.setPrototypeOf?Object.setPrototypeOf(Me,me):Me.__proto__=me)}var ze=function(Me){Ie(me,Me);function me(oe){Se(this,me);var E=Ae(this,(me.__proto__||Object.getPrototypeOf(me)).call(this,oe));return E.scrollListener=E.scrollListener.bind(E),E.eventListenerOptions=E.eventListenerOptions.bind(E),E.mousewheelListener=E.mousewheelListener.bind(E),E}return a(me,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var E=this.getParentElement(this.scrollComponent);E.scrollTop=E.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var E=!1,y={get passive(){E=!0}};try{document.addEventListener("test",null,y),document.removeEventListener("test",null,y)}catch(x){}return E}},{key:"eventListenerOptions",value:function(){var E=this.props.useCapture;return this.isPassiveSupported()&&(E={useCapture:this.props.useCapture,passive:!0}),E}},{key:"setDefaultLoader",value:function(E){this.defaultLoader=E}},{key:"detachMousewheelListener",value:function(){var E=window;this.props.useWindow===!1&&(E=this.scrollComponent.parentNode),E.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var E=window;this.props.useWindow===!1&&(E=this.getParentElement(this.scrollComponent)),E.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),E.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(E){var y=this.props.getScrollParent&&this.props.getScrollParent();return y!=null?y:E&&E.parentNode}},{key:"filterProps",value:function(E){return E}},{key:"attachScrollListener",value:function(){var E=this.getParentElement(this.scrollComponent);if(!(!this.props.hasMore||!E)){var y=window;this.props.useWindow===!1&&(y=E),y.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),y.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),y.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(E){E.deltaY===1&&!this.isPassiveSupported()&&E.preventDefault()}},{key:"scrollListener",value:function(){var E=this.scrollComponent,y=window,x=this.getParentElement(E),b=void 0;if(this.props.useWindow){var ee=document.documentElement||document.body.parentNode||document.body,te=y.pageYOffset!==void 0?y.pageYOffset:ee.scrollTop;this.props.isReverse?b=te:b=this.calculateOffset(E,te)}else this.props.isReverse?b=x.scrollTop:b=E.scrollHeight-x.scrollTop-x.clientHeight;b=0)&&(y[b]=oe[b]);return y}function Ie(oe){if(oe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return oe}function ze(oe,E){oe.prototype=Object.create(E.prototype),oe.prototype.constructor=oe,oe.__proto__=E}function Me(oe,E,y){return E in oe?Object.defineProperty(oe,E,{value:y,enumerable:!0,configurable:!0,writable:!0}):oe[E]=y,oe}var me=function(oe){ze(E,oe);function E(){for(var x,b=arguments.length,ee=new Array(b),te=0;te=0)&&(ee[ne]=x[ne]);return ee}function me(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}function oe(x,b){x.prototype=Object.create(b.prototype),x.prototype.constructor=x,x.__proto__=b}function E(x,b,ee){return b in x?Object.defineProperty(x,b,{value:ee,enumerable:!0,configurable:!0,writable:!0}):x[b]=ee,x}var y=function(x){oe(b,x);function b(){for(var te,ne=arguments.length,de=new Array(ne),ye=0;ye=0)&&Object.prototype.propertyIsEnumerable.call(nt,ht)&&(yt[ht]=nt[ht])}return yt}function x(nt,Ze){if(nt==null)return{};var yt={},ht=Object.keys(nt),Je,ot;for(ot=0;ot=0)&&(yt[Je]=nt[Je]);return yt}function b(nt,Ze){var yt=Object.keys(nt);if(Object.getOwnPropertySymbols){var ht=Object.getOwnPropertySymbols(nt);Ze&&(ht=ht.filter(function(Je){return Object.getOwnPropertyDescriptor(nt,Je).enumerable})),yt.push.apply(yt,ht)}return yt}function ee(nt){for(var Ze=1;Zent.length)&&(Ze=nt.length);for(var yt=0,ht=new Array(Ze);yt, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),Je}return Re(yt,[{key:"componentDidMount",value:function(){typeof window.SVGElement!="undefined"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function(){var Je,ot,Ct;return(Je=(ot=this.props)===null||ot===void 0||(Ct=ot.nodeRef)===null||Ct===void 0?void 0:Ct.current)!==null&&Je!==void 0?Je:he.default.findDOMNode(this)}},{key:"render",value:function(){var Je,ot=this.props,Ct=ot.axis,kt=ot.bounds,Mt=ot.children,st=ot.defaultPosition,ut=ot.defaultClassName,un=ot.defaultClassNameDragging,Pn=ot.defaultClassNameDragged,Rn=ot.position,bt=ot.positionOffset,An=ot.scale,Nn=y(ot,ze),Qt={},zt=null,jt=!!Rn,sn=!jt||this.state.dragging,vt=Rn||st,Tt={x:(0,pe.canDragX)(this)&&sn?this.state.x:vt.x,y:(0,pe.canDragY)(this)&&sn?this.state.y:vt.y};this.state.isElementSVG?zt=(0,xe.createSVGTransform)(Tt,bt):Qt=(0,xe.createCSSTransform)(Tt,bt);var qt=(0,Fe.default)(Mt.props.className||"",ut,(Je={},Bt(Je,un,this.state.dragging),Bt(Je,Pn,this.state.dragged),Je));return Ce.createElement(Ae.default,E({},Nn,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),Ce.cloneElement(Ce.Children.only(Mt),{className:qt,style:ee(ee({},Mt.props.style),Qt),transform:zt}))}}],[{key:"getDerivedStateFromProps",value:function(Je,ot){var Ct=Je.position,kt=ot.prevPropsPosition;return Ct&&(!kt||Ct.x!==kt.x||Ct.y!==kt.y)?((0,Ie.default)("Draggable: getDerivedStateFromProps %j",{position:Ct,prevPropsPosition:kt}),{x:Ct.x,y:Ct.y,prevPropsPosition:ee({},Ct)}):null}}]),yt}(Ce.Component);rt.default=ct,Bt(ct,"displayName","Draggable"),Bt(ct,"propTypes",ee(ee({},Ae.default.propTypes),{},{axis:ke.default.oneOf(["both","x","y","none"]),bounds:ke.default.oneOfType([ke.default.shape({left:ke.default.number,right:ke.default.number,top:ke.default.number,bottom:ke.default.number}),ke.default.string,ke.default.oneOf([!1])]),defaultClassName:ke.default.string,defaultClassNameDragging:ke.default.string,defaultClassNameDragged:ke.default.string,defaultPosition:ke.default.shape({x:ke.default.number,y:ke.default.number}),positionOffset:ke.default.shape({x:ke.default.oneOfType([ke.default.number,ke.default.string]),y:ke.default.oneOfType([ke.default.number,ke.default.string])}),position:ke.default.shape({x:ke.default.number,y:ke.default.number}),className:Se.dontSetMe,style:Se.dontSetMe,transform:Se.dontSetMe})),Bt(ct,"defaultProps",ee(ee({},Ae.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},49285:function(Ft,rt,z){"use strict";function a(Ue){"@babel/helpers - typeof";return a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ye){return typeof Ye}:function(Ye){return Ye&&typeof Symbol=="function"&&Ye.constructor===Symbol&&Ye!==Symbol.prototype?"symbol":typeof Ye},a(Ue)}Object.defineProperty(rt,"__esModule",{value:!0}),rt.default=void 0;var Ce=ze(z(67294)),ke=Ae(z(45697)),he=Ae(z(73935)),Fe=z(75323),xe=z(45758),pe=z(16723),Se=Ae(z(5042));function Ae(Ue){return Ue&&Ue.__esModule?Ue:{default:Ue}}function Ie(Ue){if(typeof WeakMap!="function")return null;var Ye=new WeakMap,it=new WeakMap;return(Ie=function(Bt){return Bt?it:Ye})(Ue)}function ze(Ue,Ye){if(!Ye&&Ue&&Ue.__esModule)return Ue;if(Ue===null||a(Ue)!=="object"&&typeof Ue!="function")return{default:Ue};var it=Ie(Ye);if(it&&it.has(Ue))return it.get(Ue);var lt={},Bt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ct in Ue)if(ct!=="default"&&Object.prototype.hasOwnProperty.call(Ue,ct)){var nt=Bt?Object.getOwnPropertyDescriptor(Ue,ct):null;nt&&(nt.get||nt.set)?Object.defineProperty(lt,ct,nt):lt[ct]=Ue[ct]}return lt.default=Ue,it&&it.set(Ue,lt),lt}function Me(Ue,Ye){return x(Ue)||y(Ue,Ye)||oe(Ue,Ye)||me()}function me(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oe(Ue,Ye){if(Ue){if(typeof Ue=="string")return E(Ue,Ye);var it=Object.prototype.toString.call(Ue).slice(8,-1);if(it==="Object"&&Ue.constructor&&(it=Ue.constructor.name),it==="Map"||it==="Set")return Array.from(Ue);if(it==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(it))return E(Ue,Ye)}}function E(Ue,Ye){(Ye==null||Ye>Ue.length)&&(Ye=Ue.length);for(var it=0,lt=new Array(Ye);it not mounted on DragStart!");var ht=yt.ownerDocument;if(!(lt.props.disabled||!(Ze.target instanceof ht.defaultView.Node)||lt.props.handle&&!(0,Fe.matchesSelectorAndParentsTo)(Ze.target,lt.props.handle,yt)||lt.props.cancel&&(0,Fe.matchesSelectorAndParentsTo)(Ze.target,lt.props.cancel,yt))){Ze.type==="touchstart"&&Ze.preventDefault();var Je=(0,Fe.getTouchIdentifier)(Ze);lt.setState({touchIdentifier:Je});var ot=(0,xe.getControlPosition)(Ze,Je,ve(lt));if(ot!=null){var Ct=ot.x,kt=ot.y,Mt=(0,xe.createCoreData)(ve(lt),Ct,kt);(0,Se.default)("DraggableCore: handleDragStart: %j",Mt),(0,Se.default)("calling",lt.props.onStart);var st=lt.props.onStart(Ze,Mt);st===!1||lt.mounted===!1||(lt.props.enableUserSelectHack&&(0,Fe.addUserSelectStyles)(ht),lt.setState({dragging:!0,lastX:Ct,lastY:kt}),(0,Fe.addEvent)(ht,We.move,lt.handleDrag),(0,Fe.addEvent)(ht,We.stop,lt.handleDragStop))}}}),Re(ve(lt),"handleDrag",function(Ze){var yt=(0,xe.getControlPosition)(Ze,lt.state.touchIdentifier,ve(lt));if(yt!=null){var ht=yt.x,Je=yt.y;if(Array.isArray(lt.props.grid)){var ot=ht-lt.state.lastX,Ct=Je-lt.state.lastY,kt=(0,xe.snapToGrid)(lt.props.grid,ot,Ct),Mt=Me(kt,2);if(ot=Mt[0],Ct=Mt[1],!ot&&!Ct)return;ht=lt.state.lastX+ot,Je=lt.state.lastY+Ct}var st=(0,xe.createCoreData)(ve(lt),ht,Je);(0,Se.default)("DraggableCore: handleDrag: %j",st);var ut=lt.props.onDrag(Ze,st);if(ut===!1||lt.mounted===!1){try{lt.handleDragStop(new MouseEvent("mouseup"))}catch(Pn){var un=document.createEvent("MouseEvents");un.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),lt.handleDragStop(un)}return}lt.setState({lastX:ht,lastY:Je})}}),Re(ve(lt),"handleDragStop",function(Ze){if(lt.state.dragging){var yt=(0,xe.getControlPosition)(Ze,lt.state.touchIdentifier,ve(lt));if(yt!=null){var ht=yt.x,Je=yt.y;if(Array.isArray(lt.props.grid)){var ot=ht-lt.state.lastX||0,Ct=Je-lt.state.lastY||0,kt=(0,xe.snapToGrid)(lt.props.grid,ot,Ct),Mt=Me(kt,2);ot=Mt[0],Ct=Mt[1],ht=lt.state.lastX+ot,Je=lt.state.lastY+Ct}var st=(0,xe.createCoreData)(ve(lt),ht,Je),ut=lt.props.onStop(Ze,st);if(ut===!1||lt.mounted===!1)return!1;var un=lt.findDOMNode();un&<.props.enableUserSelectHack&&(0,Fe.removeUserSelectStyles)(un.ownerDocument),(0,Se.default)("DraggableCore: handleDragStop: %j",st),lt.setState({dragging:!1,lastX:NaN,lastY:NaN}),un&&((0,Se.default)("DraggableCore: Removing handlers"),(0,Fe.removeEvent)(un.ownerDocument,We.move,lt.handleDrag),(0,Fe.removeEvent)(un.ownerDocument,We.stop,lt.handleDragStop))}}}),Re(ve(lt),"onMouseDown",function(Ze){return We=He.mouse,lt.handleDragStart(Ze)}),Re(ve(lt),"onMouseUp",function(Ze){return We=He.mouse,lt.handleDragStop(Ze)}),Re(ve(lt),"onTouchStart",function(Ze){return We=He.touch,lt.handleDragStart(Ze)}),Re(ve(lt),"onTouchEnd",function(Ze){return We=He.touch,lt.handleDragStop(Ze)}),lt}return te(it,[{key:"componentDidMount",value:function(){this.mounted=!0;var Bt=this.findDOMNode();Bt&&(0,Fe.addEvent)(Bt,He.touch.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var Bt=this.findDOMNode();if(Bt){var ct=Bt.ownerDocument;(0,Fe.removeEvent)(ct,He.mouse.move,this.handleDrag),(0,Fe.removeEvent)(ct,He.touch.move,this.handleDrag),(0,Fe.removeEvent)(ct,He.mouse.stop,this.handleDragStop),(0,Fe.removeEvent)(ct,He.touch.stop,this.handleDragStop),(0,Fe.removeEvent)(Bt,He.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,Fe.removeUserSelectStyles)(ct)}}},{key:"findDOMNode",value:function(){var Bt,ct,nt;return(Bt=this.props)!==null&&Bt!==void 0&&Bt.nodeRef?(ct=this.props)===null||ct===void 0||(nt=ct.nodeRef)===null||nt===void 0?void 0:nt.current:he.default.findDOMNode(this)}},{key:"render",value:function(){return Ce.cloneElement(Ce.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}]),it}(Ce.Component);rt.default=Ge,Re(Ge,"displayName","DraggableCore"),Re(Ge,"propTypes",{allowAnyClick:ke.default.bool,disabled:ke.default.bool,enableUserSelectHack:ke.default.bool,offsetParent:function(Ye,it){if(Ye[it]&&Ye[it].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:ke.default.arrayOf(ke.default.number),handle:ke.default.string,cancel:ke.default.string,nodeRef:ke.default.object,onStart:ke.default.func,onDrag:ke.default.func,onStop:ke.default.func,onMouseDown:ke.default.func,scale:ke.default.number,className:pe.dontSetMe,style:pe.dontSetMe,transform:pe.dontSetMe}),Re(Ge,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},26422:function(Ft,rt,z){"use strict";var a=z(18385),Ce=a.default,ke=a.DraggableCore;Ft.exports=Ce,Ft.exports.default=Ce,Ft.exports.DraggableCore=ke},75323:function(Ft,rt,z){"use strict";function a(Re){"@babel/helpers - typeof";return a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(He){return typeof He}:function(He){return He&&typeof Symbol=="function"&&He.constructor===Symbol&&He!==Symbol.prototype?"symbol":typeof He},a(Re)}Object.defineProperty(rt,"__esModule",{value:!0}),rt.addClassName=Ne,rt.addEvent=Me,rt.addUserSelectStyles=fe,rt.createCSSTransform=ee,rt.createSVGTransform=te,rt.getTouch=de,rt.getTouchIdentifier=ye,rt.getTranslation=ne,rt.innerHeight=y,rt.innerWidth=x,rt.matchesSelector=Ie,rt.matchesSelectorAndParentsTo=ze,rt.offsetXYFromParent=b,rt.outerHeight=oe,rt.outerWidth=E,rt.removeClassName=Le,rt.removeEvent=me,rt.removeUserSelectStyles=ve;var Ce=z(16723),ke=Fe(z(21227));function he(Re){if(typeof WeakMap!="function")return null;var He=new WeakMap,We=new WeakMap;return(he=function(Ue){return Ue?We:He})(Re)}function Fe(Re,He){if(!He&&Re&&Re.__esModule)return Re;if(Re===null||a(Re)!=="object"&&typeof Re!="function")return{default:Re};var We=he(He);if(We&&We.has(Re))return We.get(Re);var Ge={},Ue=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Ye in Re)if(Ye!=="default"&&Object.prototype.hasOwnProperty.call(Re,Ye)){var it=Ue?Object.getOwnPropertyDescriptor(Re,Ye):null;it&&(it.get||it.set)?Object.defineProperty(Ge,Ye,it):Ge[Ye]=Re[Ye]}return Ge.default=Re,We&&We.set(Re,Ge),Ge}function xe(Re,He){var We=Object.keys(Re);if(Object.getOwnPropertySymbols){var Ge=Object.getOwnPropertySymbols(Re);He&&(Ge=Ge.filter(function(Ue){return Object.getOwnPropertyDescriptor(Re,Ue).enumerable})),We.push.apply(We,Ge)}return We}function pe(Re){for(var He=1;HeObject.keys(zn)},53814:function(i,f,e){"use strict";e.d(f,{y:function(){return u}});var t=e(62844),r=e(71230),n=e(15746),a=e(5270),s=e(67294);const u=c=>new Promise((o,p)=>{if(window.RTCPeerConnection=window.RTCPeerConnection||window.mozRTCPeerConnection||window.webkitRTCPeerConnection,typeof window.RTCPeerConnection=="undefined")return p("WebRTC not supported by browser");let h=new RTCPeerConnection,d=[];h.createDataChannel(""),h.createOffer().then(g=>h.setLocalDescription(g)).catch(g=>p(g)),h.onicecandidate=g=>{console.log("event:",g);const v=[];if(!g||!g.candidate){if(console.log("ips",d),d.length==0||!(0,a.t)(d[0])){const L=t.default.info({title:s.createElement(r.Z,null,s.createElement(n.Z,{flex:"1"},"\u63D0\u793A"),s.createElement(n.Z,null,s.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:()=>L.destroy()}))),icon:null,width:500,className:"custom-modal-divider",content:s.createElement(r.Z,null,s.createElement(n.Z,null,"\u5F53\u524D\u8003\u8BD5\u5DF2\u542F\u7528\u9650\u5236\u8003\u8BD5\u8BBF\u95EEIP\uFF08\u9650\u5236\u516C\u5171IP+\u5185\u7F51IP\uFF09\u3002",(c.ip_limit==="inner"||c.ip_bind)&&s.createElement(s.Fragment,null,s.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"),s.createElement("br",null),s.createElement("a",{href:"https://www.educoder.net/forums/4478",target:"_blank"},"\u5982\u4F55\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6?"))))});return p("WebRTC disabled or restricted by browser")}const N=d.filter(L=>(0,a.t)(L));return!N||!N.length?p("IP\u83B7\u53D6\u5931\u8D25"):o(N.join(""))}let S=g.candidate.candidate.split(" "),[C,E,x,O,I,T,,R,...k]=S,D=["rtp","rtpc"];if(console.log("event:",g),d.some(N=>N==I)||d.push(I),console.log(" candidate: "+C.split(":")[1]),console.log(" component: "+D[E-1]),console.log(" protocol: "+x),console.log(" priority: "+O),console.log(" ip: "+I),console.log(" port: "+T),console.log(" type: "+R),k.length){console.log("attributes: ");for(let N=0;N "+k[N]+": "+k[N+1])}}})},5728:function(i,f,e){"use strict";e.d(f,{k:function(){return S}});var t=e(91303),r=e(2453),n=e(70583),a=Object.defineProperty,s=Object.defineProperties,u=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,h=(E,x,O)=>x in E?a(E,x,{enumerable:!0,configurable:!0,writable:!0,value:O}):E[x]=O,d=(E,x)=>{for(var O in x||(x={}))o.call(x,O)&&h(E,O,x[O]);if(c)for(var O of c(x))p.call(x,O)&&h(E,O,x[O]);return E},g=(E,x)=>s(E,u(x)),v=(E,x)=>{var O={};for(var I in E)o.call(E,I)&&x.indexOf(I)<0&&(O[I]=E[I]);if(E!=null&&c)for(var I of c(E))x.indexOf(I)<0&&p.call(E,I)&&(O[I]=E[I]);return O};const S=["\u8BA4\u8BC1\u4E13\u4E1A","\u8BA4\u8BC1\u5C4A\u522B"],C={namespace:"engineeringEvaluteList",state:{actionTabs:{key:"",params:{}},headerData:{dataSource:{[S[0]]:{width:235,placeholder:`\u8BF7\u9009\u62E9${S[0]}`,loading:"engineeringEvaluteList/getMajorList",dataList:[]},[S[1]]:{width:138,placeholder:`\u8BF7\u9009\u62E9${S[1]}`,loading:"engineeringEvaluteList/getYearList",dataList:[]}},active:{}},tabListData:{total:0,pageNo:1,pageSize:20,dataSource:[]}},effects:{*setActionTabs({payload:E},{call:x,put:O}){yield O({type:"save",payload:{actionTabs:d({},E)}})},*getMajorList({payload:E},{call:x,put:O,select:I}){const{userInfo:T}=yield I(R=>R.user);if(T!=null&&T.school_id){const R=yield x(t.BA,T.school_id);if(R&&R.data){const k=n.U.getItem(T==null?void 0:T.login);yield O({type:"setMajorOrYearDataSource",payload:{key:S[0],value:R.data.map(D=>({label:D.name,value:D.ec_major_school_id})),active:R.data.length>0?k[0]||R.data[0].ec_major_school_id:void 0}})}}},*getYearList({payload:E},{call:x,put:O,select:I}){const T=yield x(t.Nx,E.id),{userInfo:R}=yield I(k=>k.user);if(T&&T.data){const k=n.U.getItem(R==null?void 0:R.login);yield O({type:"setMajorOrYearDataSource",payload:{key:S[1],value:T.data.map(D=>({label:D.year,value:D.ec_year_id})),active:T.data.length>0?E.firstEnter?k[1]:T.data[0].ec_year_id:void 0}})}},*getCourseResults({payload:E={}},{call:x,put:O,select:I}){const{calc:T,page:R,per_page:k}=E,{headerData:D,tabListData:N}=yield I(W=>W.engineeringEvaluteList),{userInfo:L}=yield I(W=>W.user);let q=D.active[S[1]];if(q){let W={id:q,page:R||1,per_page:k||N.pageSize};T&&(W=g(d({},W),{page:N.pageNo}));const K=yield x(t._y,W),Z=[D.active[S[0]],D.active[S[1]]];n.U.setItem(L==null?void 0:L.login,Z),K&&K.ec_courses&&(yield O({type:"setCourseResults",payload:g(d({},N),{pageNo:W.page,total:K.count,pageSize:W.per_page||N.pageSize,dataSource:K.ec_courses.map((H,j)=>g(d({},H),{key:W.page>1?(W.page-1)*W.per_page+j+1:j+1}))})}))}else yield O({type:"setCourseResults",payload:g(d({},N),{pageNo:1,total:0,dataSource:[]})})},*exportCourse({payload:E},{call:x,select:O}){const{headerData:I}=yield O(T=>T.engineeringEvaluteList);I.active[S[1]]&&(yield x(t.F,I.active[S[1]]))},*compute({payload:E},{call:x,put:O}){const I=E,{all:T}=I,R=v(I,["all"]),k=yield x(T?t.At:t.PX,R);k&&k.status===0?(r.ZP.success("\u8BA1\u7B97\u5B8C\u6210"),yield O({type:"getCourseResults",payload:{calc:!0}})):r.ZP.error(k.message)}},reducers:{save(E,x){return d(d({},E),x.payload)},setMajorOrYearDataSource(E,{payload:x}){let O=E.headerData.active;return x.active&&(O=g(d({},O),{[x.key]:x.active})),g(d({},E),{headerData:g(d({},E.headerData),{dataSource:g(d({},E.headerData.dataSource),{[x.key]:g(d({},E.headerData.dataSource[x.key]),{dataList:x.value})}),active:O})})},setMajorOrYearActive(E,{payload:x}){return g(d({},E),{headerData:g(d({},E.headerData),{active:g(d({},E.headerData.active),{[x.key]:x.value})})})},setCourseResults(E,{payload:x}){return g(d({},E),{tabListData:d(d({},E.tabListData),x)})}},subscriptions:{setup({dispatch:E,history:x}){return x.listen(({pathname:O})=>{O==="/"&&E({type:"query"})})}}};f.Z=C},53430:function(i,f,e){"use strict";e.d(f,{L:function(){return c},r:function(){return p}});var t=Object.defineProperty,r=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,s=(h,d,g)=>d in h?t(h,d,{enumerable:!0,configurable:!0,writable:!0,value:g}):h[d]=g,u=(h,d)=>{for(var g in d||(d={}))n.call(d,g)&&s(h,g,d[g]);if(r)for(var g of r(d))a.call(d,g)&&s(h,g,d[g]);return h};const c=h=>h==null?void 0:h.map(d=>{const g=(d.sub_disciplines||[]).map(v=>({value:v.id,label:v.name}));return{value:d.id,label:d.name,children:g}}),o={1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D",7:"\u4E03",8:"\u516B"},p=h=>{if(!h)return;const{all_questions_count:d,all_score:g,single_questions:v,multiple_questions:S,judgement_questions:C,program_questions:E,completion_questions:x,subjective_questions:O,practical_questions:I,combination_questions:T}=h||{},k=[u({type:"SINGLE",name:"\u5355\u9009\u9898"},v),u({type:"MULTIPLE",name:"\u591A\u9009\u9898"},S),u({type:"COMPLETION",name:"\u586B\u7A7A\u9898"},x),u({type:"JUDGMENT",name:"\u5224\u65AD\u9898"},C),u({type:"SUBJECTIVE",name:"\u7B80\u7B54\u9898"},O),u({type:"PROGRAM",name:"\u7F16\u7A0B\u9898"},E),u({type:"PRACTICAL",name:"\u5B9E\u8BAD\u9898"},I),u({type:"COMBINATION",name:"\u7EC4\u5408\u9898"},T)].filter(D=>D.questions_count>0).map((D,N)=>u(u({},D),{number:o[N+1]}));return{all_questions_count:d,all_score:g,questionList:k}}},70583:function(i,f,e){"use strict";e.d(f,{U:function(){return a},t:function(){return n}});var t=e(62844),r=e(52262);const n=(s,u="")=>{t.default.confirm({centered:!0,width:520,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:u,onOk:s})},a={setItem:(s,u)=>{var c;const o=s+"-engineering"+((c=(0,r.eY)())==null?void 0:c.school_id),p=JSON.stringify(u);localStorage.setItem(o,p)},getItem:s=>{var u;const c=s+"-engineering"+((u=(0,r.eY)())==null?void 0:u.school_id),o=localStorage.getItem(c);return o!==null&&o!=="[object Object]"?JSON.parse(o):[]},clear:s=>{var u;const c=s+"-engineering"+((u=(0,r.eY)())==null?void 0:u.school_id);localStorage.removeItem(c)}}},60532:function(i,f,e){"use strict";e.d(f,{$f:function(){return d},Cq:function(){return S},GY:function(){return u},I8:function(){return E},Ow:function(){return g},P:function(){return h},Ql:function(){return c},RA:function(){return I},Zm:function(){return o},bz:function(){return s},eF:function(){return C},gQ:function(){return x},ht:function(){return v},kN:function(){return T},n1:function(){return n},nI:function(){return R},o9:function(){return a},sG:function(){return p},wi:function(){return O}});var t=e(33170),r=(k,D,N)=>new Promise((L,q)=>{var W=H=>{try{Z(N.next(H))}catch(j){q(j)}},K=H=>{try{Z(N.throw(H))}catch(j){q(j)}},Z=H=>H.done?L(H.value):Promise.resolve(H.value).then(W,K);Z((N=N.apply(k,D)).next())});function n(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.login}/avatar.json`,{method:"put",body:k})})}function a(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.login}.json`,{method:"get"})})}function s(k){return r(this,null,function*(){return(0,t.ZP)("/api/add_school_applies.json",{method:"post",body:k})})}function u(k){return r(this,null,function*(){return(0,t.ZP)("/api/schools/limit_list.json",{method:"get",params:k})})}function c(k){return r(this,null,function*(){return(0,t.ZP)(`/api/schools/${k.id}/departments/for_option.json`,{method:"get",params:k})})}function o(k){return r(this,null,function*(){return(0,t.ZP)("/api/add_department_applies.json",{method:"post",body:k})})}function p(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.id}.json`,{method:"put",body:k})})}function h(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.login}/authentication_apply.json`,{method:"delete"})})}function d(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.login}/professional_auth_apply.json`,{method:"delete"})})}function g(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.id}/professional_auth_apply.json`,{method:"post",body:k})})}function v(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.id}/authentication_apply.json`,{method:"post",body:k})})}function S(k){return r(this,null,function*(){return(0,t.ZP)("/api/accounts/get_verification_code.json",{method:"get",params:k})})}function C(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.login}/phone_bind.json`,{method:"post",body:k})})}function E(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.login}/email_bind.json`,{method:"post",body:k})})}function x(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.login}/password.json`,{method:"put",body:k})})}function O(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.basicInfoId}/open_users/${k.id}.json`,{method:"delete"})})}function I(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/${k.login}/cancel_authentication.json`,{method:"post",body:k})})}function T(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/${k.login}/cancel_professional_certification.json`,{method:"post",body:k})})}function R(k,D){return r(this,null,function*(){return(0,t.ZP)(`/api/users/${k.login}/videos/${k.id}/create_subject_video.json`,{method:"post",body:D})})}},61747:function(i,f,e){"use strict";e.d(f,{An:function(){return g},TO:function(){return p},my:function(){return d},nZ:function(){return h}});var t=e(33170),r=Object.defineProperty,n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(v,S,C)=>S in v?r(v,S,{enumerable:!0,configurable:!0,writable:!0,value:C}):v[S]=C,c=(v,S)=>{for(var C in S||(S={}))a.call(S,C)&&u(v,C,S[C]);if(n)for(var C of n(S))s.call(S,C)&&u(v,C,S[C]);return v},o=(v,S,C)=>new Promise((E,x)=>{var O=R=>{try{T(C.next(R))}catch(k){x(k)}},I=R=>{try{T(C.throw(R))}catch(k){x(k)}},T=R=>R.done?E(R.value):Promise.resolve(R.value).then(O,I);T((C=C.apply(v,S)).next())});function p(v){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${v.coursesId}/inform_up.json`,{method:"post",body:c({},v)})})}function h(v){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${v.coursesId}/inform_down.json`,{method:"post",body:c({},v)})})}function d(v){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${v.coursesId}/update_informs.json`,{method:"post",body:c({},v)})})}function g(v){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${v.coursesId}/new_informs.json`,{method:"post",body:c({},v)})})}},66540:function(i,f,e){"use strict";e.d(f,{$n:function(){return C},H:function(){return S},Nm:function(){return g},Ot:function(){return v},SV:function(){return p},fc:function(){return x},mn:function(){return E},tO:function(){return d},zI:function(){return h}});var t=e(33170),r=Object.defineProperty,n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(O,I,T)=>I in O?r(O,I,{enumerable:!0,configurable:!0,writable:!0,value:T}):O[I]=T,c=(O,I)=>{for(var T in I||(I={}))a.call(I,T)&&u(O,T,I[T]);if(n)for(var T of n(I))s.call(I,T)&&u(O,T,I[T]);return O},o=(O,I,T)=>new Promise((R,k)=>{var D=q=>{try{L(T.next(q))}catch(W){k(W)}},N=q=>{try{L(T.throw(q))}catch(W){k(W)}},L=q=>q.done?R(q.value):Promise.resolve(q.value).then(D,N);L((T=T.apply(O,I)).next())});function p(O){return o(this,null,function*(){return(0,t.ZP)("/api/files/public_with_course_and_project",{method:"get",params:c({},O)})})}function h(O){return o(this,null,function*(){return(0,t.ZP)("/api/files/mine_with_course_and_project.json",{method:"get",params:c({},O)})})}function d(O){return o(this,null,function*(){return(0,t.ZP)("/api/files/import.json",{method:"post",body:c({},O)})})}function g(O){return o(this,null,function*(){return(0,t.ZP)(`/api/files/${O.id}.json`,{method:"get",params:c({},O)})})}function v(O){return o(this,null,function*(){const{id:I}=O;return delete O.id,(0,t.ZP)(`/api/files/${I}.json`,{method:"put",body:c({},O)})})}function S(O){return o(this,null,function*(){return(0,t.ZP)(`/api/files/${O.id}/update_visits.json`,{method:"post"})})}function C(O){return o(this,null,function*(){return(0,t.ZP)(`/api/files/${O==null?void 0:O.id}/watch_list.json`,{method:"get",params:c({},O)})})}function E(O){return o(this,null,function*(){return(0,t.ZP)("/api/files/get_batches_publish_info.json",{method:"get",params:c({},O)})})}function x(O){return o(this,null,function*(){return(0,t.ZP)(`/api/files/${O==null?void 0:O.id}/add_file_quantity.json`,{method:"post",body:c({},O)})})}},25250:function(i,f,e){"use strict";e.d(f,{CJ:function(){return g},Mf:function(){return x},NA:function(){return C},PC:function(){return v},PP:function(){return S},YQ:function(){return E},cc:function(){return d},dI:function(){return h},yq:function(){return p}});var t=e(33170),r=Object.defineProperty,n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(O,I,T)=>I in O?r(O,I,{enumerable:!0,configurable:!0,writable:!0,value:T}):O[I]=T,c=(O,I)=>{for(var T in I||(I={}))a.call(I,T)&&u(O,T,I[T]);if(n)for(var T of n(I))s.call(I,T)&&u(O,T,I[T]);return O},o=(O,I,T)=>new Promise((R,k)=>{var D=q=>{try{L(T.next(q))}catch(W){k(W)}},N=q=>{try{L(T.throw(q))}catch(W){k(W)}},L=q=>q.done?R(q.value):Promise.resolve(q.value).then(D,N);L((T=T.apply(O,I)).next())});function p(O){return o(this,null,function*(){return(0,t.ZP)("/api/courses/board_list.json",{method:"get",params:c({},O)})})}function h(O){return o(this,null,function*(){return(0,t.ZP)(`/api/messages/${O.boardId}.json`,{method:"get",params:c({},O)})})}function d(O){return o(this,null,function*(){return(0,t.ZP)(`/api/messages/${O.id}/sticky_top.json`,{method:"put",body:{course_id:O.coursesId}})})}function g(O){return o(this,null,function*(){return(0,t.ZP)(`/api/messages/${O.id}/sticky_top.json`,{method:"put",body:{course_id:O.coursesId}})})}function v(O){return o(this,null,function*(){return(0,t.ZP)(`/api/messages/${O.boardId}/reply_list.json`,{method:"get",params:c({},O)})})}function S(O){return o(this,null,function*(){return(0,t.ZP)(`/api/messages/${O.boardId}/reply.json`,{method:"post",body:c({},O)})})}function C(O){return o(this,null,function*(){return(0,t.ZP)("/api/praise_tread/like.json",{method:"post",body:c({},O)})})}function E(O){return o(this,null,function*(){return(0,t.ZP)("/api/praise_tread/unlike.json",{method:"delete",body:c({},O)})})}function x(O){return o(this,null,function*(){return(0,t.ZP)("/api/commons/delete.json",{method:"delete",body:c({},O)})})}},89779:function(i,f,e){"use strict";e.d(f,{$T:function(){return Te},A:function(){return ke},Ab:function(){return Yr},Al:function(){return F},BQ:function(){return Nt},BR:function(){return j},Bn:function(){return wt},Cq:function(){return Pe},DJ:function(){return me},Dd:function(){return v},Ds:function(){return Rr},EO:function(){return We},Ed:function(){return _e},Ew:function(){return rr},FU:function(){return Oe},Fg:function(){return S},GV:function(){return _t},Gk:function(){return W},Gm:function(){return Je},Gz:function(){return C},Hl:function(){return E},Hn:function(){return k},ID:function(){return ur},IU:function(){return Le},J2:function(){return tt},K$:function(){return Pr},KP:function(){return be},KT:function(){return ee},L$:function(){return Ve},Lk:function(){return Ht},Ls:function(){return U},MA:function(){return cr},Mc:function(){return vn},N7:function(){return H},Nd:function(){return q},Nl:function(){return vt},Ns:function(){return Er},O3:function(){return de},Pj:function(){return It},QX:function(){return Ut},QZ:function(){return Y},R2:function(){return Z},Rk:function(){return Ee},S9:function(){return Ct},U8:function(){return st},UD:function(){return ye},U_:function(){return N},Uy:function(){return St},V8:function(){return R},Vw:function(){return Q},W0:function(){return ut},W7:function(){return gr},WK:function(){return Ce},Wr:function(){return br},YR:function(){return Ge},Z0:function(){return Xe},ZL:function(){return ir},ZT:function(){return Hr},ZX:function(){return Ke},Zj:function(){return ar},_9:function(){return Tt},_B:function(){return wn},aP:function(){return kt},aQ:function(){return nr},aZ:function(){return Et},al:function(){return ue},bm:function(){return xa},bz:function(){return dt},c_:function(){return it},ds:function(){return Xn},fN:function(){return Qe},fr:function(){return Ue},g4:function(){return Ot},gq:function(){return x},hf:function(){return M},i:function(){return Tr},i6:function(){return jt},i7:function(){return Wt},iE:function(){return p},ih:function(){return ze},kW:function(){return pt},km:function(){return tr},l4:function(){return T},nP:function(){return d},nQ:function(){return Ze},nX:function(){return Cn},oM:function(){return at},oR:function(){return Tn},o_:function(){return Xt},pf:function(){return Ln},pr:function(){return cn},pv:function(){return He},qB:function(){return $},rS:function(){return O},s:function(){return ie},sb:function(){return ht},sm:function(){return g},t1:function(){return Gt},tB:function(){return Jt},tI:function(){return Bt},td:function(){return yt},tg:function(){return Pt},uh:function(){return ot},up:function(){return $t},v2:function(){return h},vV:function(){return Wr},w9:function(){return L},wH:function(){return I},wR:function(){return Zt},yS:function(){return ct},yV:function(){return K},yd:function(){return dn},zC:function(){return mt},zg:function(){return z}});var t=e(33170),r=Object.defineProperty,n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(he,Or,Nr)=>Or in he?r(he,Or,{enumerable:!0,configurable:!0,writable:!0,value:Nr}):he[Or]=Nr,c=(he,Or)=>{for(var Nr in Or||(Or={}))a.call(Or,Nr)&&u(he,Nr,Or[Nr]);if(n)for(var Nr of n(Or))s.call(Or,Nr)&&u(he,Nr,Or[Nr]);return he},o=(he,Or,Nr)=>new Promise((Gr,Vr)=>{var zn=ua=>{try{pn(Nr.next(ua))}catch(Da){Vr(Da)}},Jn=ua=>{try{pn(Nr.throw(ua))}catch(Da){Vr(Da)}},pn=ua=>ua.done?Gr(ua.value):Promise.resolve(ua.value).then(zn,Jn);pn((Nr=Nr.apply(he,Or)).next())});const p=he=>o(void 0,null,function*(){return(0,t.ZP)(`/api/courses/${he==null?void 0:he.course_id}/course_videos/configs.json`,{method:"put",body:he})}),h=he=>o(void 0,null,function*(){return(0,t.ZP)(`/api/courses/${he==null?void 0:he.course_id}/course_videos/list_for_config.json`,{method:"Get",params:he})}),d=he=>o(void 0,null,function*(){return(0,t.ZP)(`/api/courses/${he==null?void 0:he.course_id}/homework_commons/max_late_time.json`,{method:"Get",params:he})}),g=he=>o(void 0,null,function*(){return(0,t.ZP)(`/api/courses/${he==null?void 0:he.course_id}/homework_commons/batch_late_setting`,{method:"post",body:he})}),v=he=>o(void 0,null,function*(){return(0,t.ZP)("/api/course_statistics/course_use_infos.json",{method:"Get",params:he})}),S=he=>o(void 0,null,function*(){return(0,t.ZP)("/api/course_statistics/rank_list.json",{method:"Get",params:he})}),C=he=>o(void 0,null,function*(){return(0,t.ZP)("/api/course_statistics/statistics_body.json",{method:"Get",params:he})}),E=he=>o(void 0,null,function*(){return(0,t.ZP)("/api/course_statistics/statistics_header.json",{method:"Get",params:he})});function x(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.course_id}/set_assistant_permissions.json`,{method:"post",body:c({},he.permissions)})})}function O(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.course_id}/assistant_permissions.json`,{method:"Get",params:c({},he)})})}function I(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he==null?void 0:he.course_id}/smart_plans/${he==null?void 0:he.id}.json`,{method:"Get",params:c({},he)})})}function T(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he==null?void 0:he.course_id}/smart_plans/${he==null?void 0:he.id}/item_banks.json`,{method:"Get",params:c({},he)})})}function R(he){return o(this,null,function*(){return(0,t.ZP)("/api/courses.json",{method:"Get",params:c({},he)})})}function k(he){return o(this,null,function*(){return(0,t.ZP)("/api/intelligent_recommendations/according_course_recommend_shixuns.json",{method:"Get",params:c({},he)})})}function D(he){return o(this,null,function*(){return Fetch("/api/disciplines.json",{method:"Get",params:c({},he)})})}function N(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.id}/top_banner.json`,{method:"get",params:c({},he)})})}function L(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.id||he.coursesId}/left_banner.json`,{method:"get",params:c({},he)})})}function q(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.id}/homework_commons.json`,{method:"get",params:c({},he)})})}function W(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.id}/homework_commons/list.json`,{method:"get",params:c({},he)})})}function K(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.id}/graduation_topics.json`,{method:"get",params:c({},he)})})}function Z(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.id}/graduation_tasks.json`,{method:"get",params:c({},he)})})}function H(he){return o(this,null,function*(){return(0,t.ZP)(`/api/v2/courses/${he.id}/exercises.json`,{method:"get",params:c({},he)})})}function j(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.id}/polls.json`,{method:"get",params:c({},he)})})}function F(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.id}/homework_commons.json`,{method:"get",params:c({},he)})})}function $(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.id}/course_groups.json`,{method:"get",params:c({},he)})})}function M(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.id}/all_course_groups.json`,{method:"get",params:c({},he)})})}function Q(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.id}/attendances.json`,{method:"get",params:c({},he)})})}function U(he){return o(this,null,function*(){return(0,t.ZP)(`/api/weapps/courses/${he.coursesId}/attendances.json`,{method:"get",params:c({},he)})})}function z(he){return o(this,null,function*(){return(0,t.ZP)(`/api/attendances/${he.id}/edit.json`,{method:"get",params:c({},he)})})}function Y(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.id}/informs.json`,{method:"get",params:c({},he)})})}function ee(he){return o(this,null,function*(){return(0,t.ZP)("/api/files.json",{method:"get",params:c({},he)})})}function de(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.id}/course_videos.json`,{method:"get",params:c({},he)})})}function me(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.id}/live_links.json`,{method:"get",params:c({},he)})})}function _e(he){return o(this,null,function*(){return(0,t.ZP)("/api/courses/mine.json",{method:"get",params:c({},he)})})}function be(he){return o(this,null,function*(){return(0,t.ZP)(`/api/boards/${he.categoryId}/messages.json`,{method:"get",params:c({},he)})})}function pt(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.id}/course_groups.json`,{method:"get",params:c({},he)})})}function tt(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.id}/students.json`,{method:"get",params:c({},he)})})}function Ot(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/statistics.json`,{method:"get",params:c({},he)})})}function _t(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/work_score.json`,{method:"get",params:c({},he)})})}function Gt(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/act_score.json`,{method:"get",params:c({},he)})})}function It(he){return o(this,null,function*(){return(0,t.ZP)("/api/shixun_lists.json",{method:"get",params:c({},he)})})}function Je(he){return o(this,null,function*(){return(0,t.ZP)("/api/item_banks.json",{method:"get",params:c({},he)})})}function Tt(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he==null?void 0:he.course_id}/homework_commons/impersonal_list.json`,{method:"get",params:c({},he)})})}function nr(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/homework_commons/create_shixun_homework.json`,{method:"post",body:c({},he)})})}function Nt(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he==null?void 0:he.course_id}/homework_commons/create_collaborators.json`,{method:"post",body:c({},he)})})}function gr(he){return o(this,null,function*(){return(0,t.ZP)("/api/subject_lists.json",{method:"get",params:c({},he)})})}function Rr(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/homework_commons/create_subject_homework.json`,{method:"post",body:c({},he)})})}function Pr(he){return o(this,null,function*(){return(0,t.ZP)("/api/schools/school_list.json",{method:"get",params:he})})}function at(he){return o(this,null,function*(){return(0,t.ZP)("/api/courses/search_course_list.json",{method:"post",body:he})})}function wt(he){return o(this,null,function*(){return(0,t.ZP)("/api/courses.json",{method:"post",body:he})})}function dt(he){return o(this,null,function*(){return(0,t.ZP)("/api/add_school_applies.json",{method:"post",body:he})})}function Ze(he){return o(this,null,function*(){return(0,t.ZP)("/api/users/member_search.json",{method:"get",params:he})})}function Oe(he){return o(this,null,function*(){return(0,t.ZP)("/api/courses/search_all.json",{method:"get",params:he})})}function ot(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/add_teacher.json`,{method:"post",body:he})})}function Et(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/add_students_by_search.json`,{method:"post",body:he})})}function ht(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/set_public_or_private.json`,{method:"post",body:he})})}function Ve(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/set_invite_code_halt.json`,{method:"post",body:he})})}function Ct(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/duplicate_course.json`,{method:"post",body:he})})}function ue(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/update_end_date.json`,{method:"put",body:he})})}function ke(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}.json`,{method:"delete",body:he})})}function We(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/settings.json`,{method:"get",params:c({},he)})})}function Ue(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}.json`,{method:"put",body:he})})}function Ge(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/export_couser_info.json`,{method:"get",params:{export:!0}})})}function ct(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/export_member_act_score_async.json`,{method:"get",params:c({export:!0},he)})})}function Ut(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/export_total_homework_commons_score.json`,{method:"get",params:c({export:!0},he)})})}function vt(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/export_total_exercises_and_other_score.json`,{method:"get",params:c({export:!0},he)})})}function Le(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/export_star_user.json`,{method:"get",params:c({export:!0},he)})})}function yt(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/export_mooc_records.json`,{method:"get",params:c({export:!0},he)})})}function ut(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/export_total_course_score.json`,{method:"get",params:c({export:!0},he)})})}function kt(he){return o(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${he.categoryId}/export_scores.json`,{method:"get",params:c({export:!0},he)})})}function Xt(he){return o(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${he.categoryId}/export_shixun_report.json`,{method:"get",params:c({export:!0},he)})})}function ir(he){return o(this,null,function*(){return(0,t.ZP)(`/api/exercises/${he.categoryId}/export_exercise_users.json`,{method:"get",params:c({export:!0},he)})})}function Wr(he){return o(this,null,function*(){return(0,t.ZP)(`/api/exercises/${he.categoryId}/export_exercise_word.json`,{method:"get",params:c({export:!0},he)})})}function xn(he){return o(this,null,function*(){return Fetch(`/api/homework_commons/${he.categoryId}/works_list.zip`,{method:"get",params:c({export:!0},he)})})}function Xe(he){return o(this,null,function*(){return(0,t.ZP)(`/api//course_second_categories/${he.id}.json`,{method:"delete",params:{export:!0}})})}function Tr(he){return o(this,null,function*(){return(0,t.ZP)(`/api//boards/${he.id}.json`,{method:"delete",params:{export:!0}})})}function dn(he){return o(this,null,function*(){return(0,t.ZP)(`/api/course_modules/${he.id}/sticky_module.json`,{method:"get"})})}function Cn(he){return o(this,null,function*(){return(0,t.ZP)(`/api/course_modules/${he.id}/hidden_module.json`,{method:"get"})})}function Ln(he){return o(this,null,function*(){return(0,t.ZP)("/api/courses/new.json",{method:"get",params:he})})}function Xn(he){return o(this,null,function*(){return(0,t.ZP)(`/api/weapps/attendances/${he.id}.json`,{method:"get",params:he})})}function xa(he){return o(this,null,function*(){return(0,t.ZP)("/api/weapps/course_member_attendances.json",{method:"get",params:he})})}function ye(he){return o(this,null,function*(){return(0,t.ZP)("/api/weapps/course_member_attendances/update_status.json",{method:"post",body:he})})}function er(he){return o(this,null,function*(){return Fetch(`/api/polls/${he.categoryId}/commit_result.xlsx`,{method:"get",params:c({export:!0},he)})})}function St(he){return o(this,null,function*(){return(0,t.ZP)(`/api/exercises/${he.categoryId}/export_scores.json`,{method:"get",params:c({export:!0},he)})})}function Pt(he){return o(this,null,function*(){return(0,t.ZP)(`/api/exercises/${he.categoryId}/export_exercise_reports.json`,{method:"get",params:c({export:!0},he)})})}function Wt(he){return(0,t.ZP)(`/api/polls/${he.categoryId}/start_answer.json`,{method:"get",params:c({},he)})}function ur(he){return o(this,null,function*(){return(0,t.ZP)(`/api/poll_questions/${he.questionId}/poll_votes.json`,{method:"post",body:he})})}function Er(he){return o(this,null,function*(){return(0,t.ZP)(`/api/polls/${he.categoryId}/commit_poll.json`,{method:"post",body:he})})}function tr(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.courseId}/tasks_list.json`,{method:"get",params:he})})}function st(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.courseId}/update_task_position.json`,{method:"post",body:he})})}function $t(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/calculate_all_shixun_scores.json`,{method:"get",params:he})})}function it(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/all_course_groups.json`,{method:"get",params:he})})}function Pe(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/polls/all_course_groups.json`,{method:"get",params:he})})}function Ee(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/students.json`,{method:"get",params:he})})}function Te(he){return o(this,null,function*(){return(0,t.ZP)(`/api/course_groups/${he.categoryId}/rename_group.json`,{method:"POST",body:he})})}function He(he){return o(this,null,function*(){return(0,t.ZP)(`/api/course_groups/${he.categoryId}.json`,{method:"delete",body:he})})}function jt(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/join_course_group.json`,{method:"POST",body:he})})}function Zt(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/transfer_to_course_group.json`,{method:"post",body:he})})}function cr(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/delete_from_course.json`,{method:"post",body:he})})}function Ce(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/join_course_group.json`,{method:"post",body:he})})}function Qe(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/exit_course.json`,{method:"post"})})}function Ke(he){return o(this,null,function*(){return(0,t.ZP)("/api/weapps/course_member_attendances.json",{method:"post",body:c({},he)})})}function ze(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/mooc_users/${he.user_id}/edit.json`,{method:"get",params:he})})}function ie(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/mooc_users.json`,{method:"post",body:he})})}function Jt(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/mooc_users/${he.user_id}.json`,{method:"put",body:he})})}function br(he){return o(this,null,function*(){return(0,t.ZP)(`/api/course_second_categories/${he.id}/move_category.json`,{method:"post",body:he})})}function Yr(he){return o(this,null,function*(){return(0,t.ZP)(`/api/boards/${he.id}/move_category.json`,{method:"post",body:he})})}function Hr(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.id}/courseware.json`,{method:"get",params:he})})}function cn(he,Or){return o(this,null,function*(){return(0,t.ZP)(`/api/exercises/${he}/mark_wrong_topic.json`,{method:"get",params:Or})})}function wn(he,Or){return o(this,null,function*(){return(0,t.ZP)(`/api/exercises/${he}/cancel_wrong_topic.json`,{method:"get",params:Or})})}function Tn(he,Or){return o(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${he}/allow_end_group.json`,{method:"get",params:Or})})}function vn(he,Or){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he}/homework_commons/end_with_homework_list_position.json`,{method:"post",body:Or})})}function Ht(he,Or){return o(this,null,function*(){return(0,t.ZP)(`/api/tasks/${he}/get_content_for_commit_id.json`,{method:"get",params:Or})})}function Bt(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.course_id}/course_ai_info.json`,{method:"Get",params:c({},he)})})}function mt(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.course_id}/set_open_ai.json`,{method:"post",body:he})})}function rr(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he==null?void 0:he.id}/smart_plans.json`,{method:"get",params:c({},he)})})}function ar(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he==null?void 0:he.id}/smart_plans.json`,{method:"post",body:c({},he)})})}},78392:function(i,f,e){"use strict";e.d(f,{$M:function(){return Gt},$P:function(){return Ve},Ax:function(){return h},Dh:function(){return E},FU:function(){return L},GQ:function(){return $},IN:function(){return at},JM:function(){return Oe},Ju:function(){return _t},Mn:function(){return Pr},Ni:function(){return Y},Pg:function(){return x},Pt:function(){return C},Qp:function(){return j},R9:function(){return q},Ux:function(){return F},Vy:function(){return _e},XJ:function(){return z},XR:function(){return tt},Ze:function(){return R},aq:function(){return T},bQ:function(){return v},bu:function(){return d},cC:function(){return p},jS:function(){return K},lm:function(){return wt},ml:function(){return Q},o3:function(){return Je},pA:function(){return nr},pS:function(){return Ze},pU:function(){return U},ps:function(){return N},q0:function(){return gr},qN:function(){return Rr},qS:function(){return S},qj:function(){return pt},qt:function(){return Et},rV:function(){return O},rZ:function(){return ot},rk:function(){return de},rm:function(){return H},sK:function(){return Z},sL:function(){return Nt},su:function(){return dt},tC:function(){return me},tO:function(){return be},u9:function(){return M},uZ:function(){return ee},vV:function(){return D},xx:function(){return Ct},y8:function(){return Ot},yS:function(){return k},zF:function(){return g},zc:function(){return W},zj:function(){return I},zz:function(){return ht}});var t=e(33170),r=Object.defineProperty,n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(ue,ke,We)=>ke in ue?r(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:We}):ue[ke]=We,c=(ue,ke)=>{for(var We in ke||(ke={}))a.call(ke,We)&&u(ue,We,ke[We]);if(n)for(var We of n(ke))s.call(ke,We)&&u(ue,We,ke[We]);return ue},o=(ue,ke,We)=>new Promise((Ue,Ge)=>{var ct=Le=>{try{vt(We.next(Le))}catch(yt){Ge(yt)}},Ut=Le=>{try{vt(We.throw(Le))}catch(yt){Ge(yt)}},vt=Le=>Le.done?Ue(Le.value):Promise.resolve(Le.value).then(ct,Ut);vt((We=We.apply(ue,ke)).next())});const p=ue=>(0,t.ZP)(`/api/competitions/${ue.identifier}/create_guide.json`,{method:"post",body:ue}),h=ue=>(0,t.ZP)(`/api/competitions/${ue.identifier}/guides.json`,{method:"get",params:ue}),d=ue=>(0,t.ZP)(`/api/competitions/${ue.identifier}/competition_teams/${ue.competition_team_id}/edit_info.json`,{method:"put",body:ue});function g(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/update_result.json`,{method:"post",body:ue})})}function v(ue){return o(this,null,function*(){return(0,t.ZP)("/api/competitions.json",{method:"Get",params:c({},ue)})})}function S(ue){return o(this,null,function*(){return(0,t.ZP)("/api/courses/apply_to_join_course.json",{method:"post",body:ue})})}function C(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/competition_teams.json`,{method:"post"})})}function E(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/competition_staff.json`,{method:"get"})})}function x(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/common_header.json`,{method:"get"})})}function O(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/${ue.url}`,{method:"get",params:c({},ue)})})}function I(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/update_md_content.json`,{method:"post",body:ue})})}function T(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/competition_teams.json`,{method:"get",params:ue})})}function R(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/competition_teams/${ue.Teannameid}/edit.json`,{method:"get",params:ue})})}function k(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/competition_teams/${ue.Teannameid}.json`,{method:"put",body:ue})})}function D(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/competition_teams/${ue.id}/leave.json`,{method:"post",body:ue})})}function N(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/competition_teams/${ue.id}.json`,{method:"delete"})})}function L(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/competition_teams.json`,{method:"post",body:ue})})}function q(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.id}/add_managers.json`,{method:"post",body:ue})})}function W(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/competition_teams/join.json`,{method:"post",body:ue})})}function K(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/teachers.json`,{method:"get",params:ue})})}function Z(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/students.json`,{method:"get",params:ue})})}function H(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/competition_teams/${ue.teamid}/crud_team_members.json`,{method:"post",body:ue})})}function j(ue){return o(this,null,function*(){return(0,t.ZP)("/api/users/competition_reward.json",{method:"post",body:ue})})}function F(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/chart_rules.json`,{method:"get"})})}function $(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/charts.json`,{method:"get",params:ue})})}function M(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/results.json`,{method:"get",params:ue})})}function Q(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/md_tab_rules.json`,{method:"get",params:ue})})}function U(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/prize.json`,{method:"get",params:ue})})}function z(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${ue.id}.json`,{method:"get",params:ue})})}function Y(ue){return o(this,null,function*(){return(0,t.ZP)("/api/accounts/get_verification_code.json",{method:"get",params:ue})})}function ee(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${ue.userid}/phone_bind.json`,{method:"post",body:ue})})}function de(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${ue.userid}/email_bind.json`,{method:"post",body:ue})})}function me(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${ue.userid}/professional_auth_apply.json`,{method:"delete"})})}function _e(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${ue.userid}/authentication_apply.json`,{method:"delete"})})}function be(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/prize_leader_account.json`,{method:"put",body:ue})})}function pt(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/competition_teams/${ue.teamid}/shixun_detail.json`,{method:"get"})})}function tt(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/competition_teams/${ue.teamid}/course_detail.json`,{method:"get"})})}function Ot(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/attachments/${ue.id}.json`,{method:"delete"})})}function _t(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.id}/get_certificate_info.json`,{method:"get",params:ue})})}function Gt(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.id}/basic_setting.json`,{method:"post",body:ue})})}function It(){return o(this,null,function*(){return Fetch("/api/competitions/download_template",{method:"get",responseType:"arraybuffer"})})}function Je(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue}/common_header.json`,{method:"get"})})}function Tt(ue){return o(this,null,function*(){return Fetch("/api/competitions.json",{method:"post",body:ue})})}function nr(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue==null?void 0:ue.id}/search_managers.json`,{method:"get",params:ue})})}function Nt(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue}/get_managers.json`,{method:"get"})})}function gr(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue==null?void 0:ue.id}/add_managers.json`,{method:"post",body:ue})})}function Rr(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue==null?void 0:ue.id}/delete_managers.json`,{method:"delete",body:ue})})}function Pr(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue}/get_picture.json`,{method:"get"})})}function at(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue==null?void 0:ue.id}/identifier_exist.json`,{method:"post",body:ue})})}function wt(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue}/get_shixun_settings.json`,{method:"get"})})}function dt(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue==null?void 0:ue.id}/shixun_add.json`,{method:"post",body:ue})})}function Ze(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue==null?void 0:ue.id}/shixun_delete.json`,{method:"delete",body:ue})})}function Oe(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue==null?void 0:ue.id}/shixun_select.json`,{method:"post",body:ue})})}function ot(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue}/info_finish.json`,{method:"get"})})}function Et(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue==null?void 0:ue.id}/competition_review.json`,{method:"post",body:c({},ue)})})}function ht(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/competition_teams.json`,{method:"get",params:ue})})}function Ve(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/all_team_members.json`,{method:"get",params:ue})})}function Ct(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/competition_commit_records/member_works.json`,{method:"get",params:ue})})}},91303:function(i,f,e){"use strict";e.d(f,{F:function(){return S},OE:function(){return I},ff:function(){return C},p1:function(){return E},_y:function(){return v},mK:function(){return D},gq:function(){return L},eM:function(){return k},BA:function(){return K},bA:function(){return H},Nx:function(){return Z},Qx:function(){return T},At:function(){return x},PX:function(){return O},Xl:function(){return R},y9:function(){return N},No:function(){return q},ay:function(){return j}});var t=e(33170),r=Object.defineProperty,n=Object.defineProperties,a=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,o=(F,$,M)=>$ in F?r(F,$,{enumerable:!0,configurable:!0,writable:!0,value:M}):F[$]=M,p=(F,$)=>{for(var M in $||($={}))u.call($,M)&&o(F,M,$[M]);if(s)for(var M of s($))c.call($,M)&&o(F,M,$[M]);return F},h=(F,$)=>n(F,a($)),d=(F,$)=>{var M={};for(var Q in F)u.call(F,Q)&&$.indexOf(Q)<0&&(M[Q]=F[Q]);if(F!=null&&s)for(var Q of s(F))$.indexOf(Q)<0&&c.call(F,Q)&&(M[Q]=F[Q]);return M},g=(F,$,M)=>new Promise((Q,U)=>{var z=de=>{try{ee(M.next(de))}catch(me){U(me)}},Y=de=>{try{ee(M.throw(de))}catch(me){U(me)}},ee=de=>de.done?Q(de.value):Promise.resolve(de.value).then(z,Y);ee((M=M.apply(F,$)).next())});const v=F=>g(void 0,null,function*(){var $=F,{id:M}=$,Q=d($,["id"]);return(0,t.ZP)(`/api/ec_years/${M}/course_results.json`,{method:"get",params:Q})}),S=F=>{let $=document.createElement("iframe");$.src=`/api/ec_years/${F}/course_results.xlsx`,$.style.display="none",document.body.appendChild($)},C=({ec_year_id:F})=>(0,t.ZP)(`/api/ec_years/${F}/course_results/get_class.json`,{method:"get"}),E=({ec_year_id:F,id:$,class_name:M=null})=>(0,t.ZP)(`/api/ec_years/${F}/course_results/${$}.json`,{method:"get",params:{class_name:M}}),x=({ec_year_id:F})=>(0,t.ZP)("/api/ec_courses/1/evaluations/compute_all_courses_data",{method:"post",body:{ec_year_id:F}}),O=({ec_course_id:F})=>(0,t.ZP)(`/api/ec_courses/${F}/evaluations/evaluation_data`,{method:"POST"}),I=F=>{let $=document.createElement("iframe");$.src=`/api/ec_years/${F}/ec_graduation_results.xlsx`,$.style.display="none",document.body.appendChild($)},T=({ec_year_id:F})=>(0,t.ZP)(`/api/ec_years/${F}/ec_graduation_results/compute_all`,{method:"post"}),R=({ec_year_id:F,id:$})=>(0,t.ZP)(`/api/ec_years/${F}/ec_graduation_results/compute_single?id=${$}`,{method:"POST"}),k=F=>(0,t.ZP)(`/api/ec_years/${F}/ec_graduation_results.json`,{method:"get"}),D=F=>(0,t.ZP)(`/api/ec_years/${F}/ec_graduation_results/get_formulas.json`,{method:"get"}),N=({ec_year_id:F,formula_one:$,formula_two:M,formula_three:Q})=>(0,t.ZP)(`/api/ec_years/${F}/ec_graduation_results/set_formulas.json`,{method:"PUT",body:{formula_one_id:$,formula_two_id:M,formula_three_id:Q}}),L=({ec_year_id:F,id:$})=>(0,t.ZP)(`/api/ec_years/${F}/ec_graduation_results/${$}.json`,{method:"get"}),q=F=>{var $=F,{ec_year_id:M,type:Q,goal_value:U}=$,z=d($,["ec_year_id","type","goal_value"]);let Y=`?type=${Q}`,ee={method:"PUT"};return Q==="all"&&(Y+=`&goal_value=${U}`),Q==="each"&&(ee=h(p({},ee),{body:z})),(0,t.ZP)(`/api/ec_years/${M}/ec_graduation_results/set_goal_value${Y}`,ee)};var W=(F,$,M)=>new Promise((Q,U)=>{var z=de=>{try{ee(M.next(de))}catch(me){U(me)}},Y=de=>{try{ee(M.throw(de))}catch(me){U(me)}},ee=de=>de.done?Q(de.value):Promise.resolve(de.value).then(z,Y);ee((M=M.apply(F,$)).next())});const K=F=>W(void 0,null,function*(){return(0,t.ZP)(`/api/schools/${F}/ec_majors/get_major_list.json`,{method:"get"})}),Z=F=>W(void 0,null,function*(){return(0,t.ZP)(`/api/ec_major_schools/${F}/ec_years/get_year_list.json`,{method:"get"})}),H=({ec_year_id:F,school_id:$})=>(0,t.ZP)(`/api/ec_years/${F}/top_pages.json`,{method:"get",params:{school_id:$}}),j=({id:F,name:$})=>(0,t.ZP)(`/api/ec_years/1/top_pages/${F}?name=${$}`,{method:"PUT"})},15835:function(i,f,e){"use strict";e.d(f,{$Q:function(){return T},$l:function(){return Ce},BJ:function(){return at},CD:function(){return Ue},Cd:function(){return Ve},Cl:function(){return er},Di:function(){return Tt},FN:function(){return Qe},Fl:function(){return gr},G$:function(){return U},GK:function(){return Nt},Ip:function(){return Ze},J:function(){return z},KE:function(){return Rr},L8:function(){return yt},LP:function(){return Oe},MK:function(){return nr},Mb:function(){return Er},N0:function(){return L},N3:function(){return pt},OL:function(){return Ke},OO:function(){return O},P8:function(){return Pe},PJ:function(){return ee},PT:function(){return st},Qc:function(){return W},RK:function(){return Q},Ty:function(){return Xn},UH:function(){return xn},UK:function(){return tt},Uj:function(){return ke},Ul:function(){return ht},VL:function(){return Ut},Vj:function(){return kt},W4:function(){return ue},WL:function(){return Xt},Wj:function(){return M},Wm:function(){return ze},X4:function(){return dt},Xn:function(){return Wt},Xo:function(){return Z},YY:function(){return Je},Ym:function(){return D},Yu:function(){return Ee},ZD:function(){return it},Zg:function(){return St},_B:function(){return We},_F:function(){return tr},_U:function(){return j},_u:function(){return de},aU:function(){return N},ab:function(){return ye},cC:function(){return Ln},cV:function(){return F},ck:function(){return $t},dp:function(){return q},eA:function(){return Zt},fG:function(){return C},gA:function(){return $},gG:function(){return ur},gJ:function(){return Te},hk:function(){return g},hv:function(){return v},iB:function(){return S},iU:function(){return E},iw:function(){return Cn},j:function(){return x},kp:function(){return vt},lL:function(){return I},lf:function(){return be},n$:function(){return _e},n7:function(){return H},nF:function(){return ut},o3:function(){return He},oS:function(){return ot},oX:function(){return ct},oy:function(){return xa},p7:function(){return k},pL:function(){return Ge},pu:function(){return wt},q6:function(){return Le},qf:function(){return It},qz:function(){return Et},s:function(){return Tr},sA:function(){return ir},sS:function(){return jt},se:function(){return Gt},tX:function(){return Xe},uR:function(){return Ot},ux:function(){return Pr},wy:function(){return _t},xA:function(){return dn},yE:function(){return K},yu:function(){return Wr},zP:function(){return R},zR:function(){return cr}});var t=e(33170),r=Object.defineProperty,n=Object.defineProperties,a=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,o=(ie,Jt,br)=>Jt in ie?r(ie,Jt,{enumerable:!0,configurable:!0,writable:!0,value:br}):ie[Jt]=br,p=(ie,Jt)=>{for(var br in Jt||(Jt={}))u.call(Jt,br)&&o(ie,br,Jt[br]);if(s)for(var br of s(Jt))c.call(Jt,br)&&o(ie,br,Jt[br]);return ie},h=(ie,Jt)=>n(ie,a(Jt)),d=(ie,Jt,br)=>new Promise((Yr,Hr)=>{var cn=vn=>{try{Tn(br.next(vn))}catch(Ht){Hr(Ht)}},wn=vn=>{try{Tn(br.throw(vn))}catch(Ht){Hr(Ht)}},Tn=vn=>vn.done?Yr(vn.value):Promise.resolve(vn.value).then(cn,wn);Tn((br=br.apply(ie,Jt)).next())});const g=ie=>(0,t.ZP)(`/api/exercises/${ie==null?void 0:ie.exercise_id}/statistics/list_student_score_by_question_type.json`,{method:"get",params:ie}),v=ie=>(0,t.ZP)(`/api/exercises/${ie==null?void 0:ie.exercise_id}/statistics/list_student_score_by_question.json`,{method:"get",params:ie}),S=ie=>(0,t.ZP)(`/api/exercises/${ie.exercise_id}/statistics/export_class_compare.xlsl`,{method:"get",params:ie}),C=ie=>(0,t.ZP)(`/api/exercises/${ie.exercise_id}/statistics/class_question_compare.json`,{method:"get",params:ie}),E=ie=>(0,t.ZP)(`/api/exercises/${ie==null?void 0:ie.exercise_id}/statistics/class_score_distribution.json`,{method:"get",params:ie}),x=ie=>(0,t.ZP)(`/api/exercises/${ie==null?void 0:ie.exercise_id}/exercise_tag_result.json`,{method:"get",params:ie}),O=ie=>(0,t.ZP)(`/api/exercises/${ie==null?void 0:ie.exercise_id}/statistics/list_student_score.json`,{method:"get",params:ie}),I=ie=>(0,t.ZP)(`/api/exercises/${ie==null?void 0:ie.exercise_id}/statistics/set_score_ranges.json`,{method:"put",body:ie}),T=ie=>(0,t.ZP)(`/api/exercises/${ie==null?void 0:ie.exercise_id}/statistics/score_ranges.json`,{method:"get",params:ie}),R=ie=>(0,t.ZP)(`/api/exercises/${ie.id}/sava_exam_summary.json`,{method:"post",body:ie}),k=ie=>(0,t.ZP)("/api/intelligent_reviews/exam_summary.json",{method:"post",body:ie}),D=ie=>(0,t.ZP)(`/api/exercises/${ie.id}/generate_exam_summary.json`,{method:"post",body:ie}),N=ie=>(0,t.ZP)(`/api/exercises/${ie.id}/exam_summary_settings.json`,{method:"post",body:ie}),L=ie=>d(void 0,null,function*(){return(0,t.ZP)(`/api/exercises/${ie==null?void 0:ie.exercise_id}/review_exercise_user.json`,{method:"post",body:ie})}),q=ie=>(0,t.ZP)(`/api/exercises/${ie==null?void 0:ie.id}/code_check.json`,{method:"get",params:ie}),W=ie=>(0,t.ZP)(`/api/exercises/${ie.id}/reset_pwd.json`,{method:"post",body:ie}),K=ie=>(0,t.ZP)(`/api/exercises/${ie.id}/encrypt_or_decrypt.json`,{method:"post",body:ie}),Z=ie=>d(void 0,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.id}/delayed_time_or_force.json`,{method:"post",body:ie})}),H=ie=>d(void 0,null,function*(){return(0,t.ZP)(`/api/exercises/${ie==null?void 0:ie.id}/exercise_time.json`,{method:"Get",params:ie})}),j=ie=>(0,t.ZP)(`/api/exercises/${ie==null?void 0:ie.id}/exercise_question_result.json`,{method:"get",params:ie}),F=ie=>(0,t.ZP)(`/api/exercises/${ie.id}/get_question_type_alias.json`,{method:"get",params:ie});function $(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercise_questions/${ie==null?void 0:ie.id}/teacher_update.json`,{method:"post",body:p({},ie)})})}function M(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercise_questions/${ie==null?void 0:ie.id}/adjust_comment.json`,{method:"post",body:p({},ie)})})}function Q(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.id}/edit_question_type_alias.json`,{method:"POST",body:ie})})}function U(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/exercise_lists.json`,{method:"get",params:p({},ie)})})}function z(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/exercise_identity_photos.json`,{method:"get",params:p({},ie)})})}function Y(ie){return d(this,null,function*(){return Fetch(`/api/exercises/${ie.categoryId}/video_push_url.json`,{method:"get",params:p({},ie)})})}function ee(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/query_identity_photo_state.json`,{method:"get",params:p({},ie)})})}function de(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/exercise_result.json`,{method:"get",params:p({},ie)})})}function me(ie){return d(this,null,function*(){return Fetch(`/api/exercises/${ie.categoryId}/exercise_score_area_setting.json`,{method:"post",body:p({},ie)})})}function _e(ie){return d(this,null,function*(){return(0,t.ZP)("/api/question_banks/bank_list.json",{method:"get",params:p({},ie)})})}function be(ie){return d(this,null,function*(){return(0,t.ZP)("/api/question_banks/save_banks.json",{method:"POST",body:p({},ie)})})}function pt(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/courses/${ie.coursesId}/exercises/publish_modal.json`,{method:"get",params:p({},ie)})})}function tt(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/common_header.json`,{method:"get",params:p({},ie)})})}function Ot(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/courses/${ie.coursesId}/exercises.json`,{method:"post",body:p({},ie)})})}function _t(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.exerciseId}.json`,{method:"put",body:p({},ie)})})}function Gt(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ie.exerciseId}/update_name.json`,{method:"post",body:p({},ie)})})}function It(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.categoryId}.json`,{method:"get",params:p({},ie)})})}function Je(ie){return d(this,null,function*(){return(0,t.ZP)("/api/tag_disciplines.json",{method:"get",params:p({},ie)})})}function Tt(ie){return d(this,null,function*(){const{id:Jt}=ie;return delete ie.id,(0,t.ZP)(`/api/exercise_questions/${Jt}.json`,{method:"put",body:p({},ie)})})}function nr(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/exercise_questions.json`,{method:"post",body:p({},ie)})})}function Nt(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercise_questions/${ie.id}/up_down.json`,{method:"post",body:p({},ie)})})}function gr(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercise_questions/${ie.id}.json`,{method:"delete"})})}function Rr(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/courses/${ie.coursesId}/exercises/end_modal.json`,{method:"get",params:p({},ie)})})}function Pr(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/publish_groups.json`,{method:"get",params:p({},ie)})})}function at(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.exerciseId}/user_exercise_detail.json`,{method:"get",params:p({},ie)})})}function wt(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.exerciseId}/consult_exercise.json`,{method:"post",body:p({},ie)})})}function dt(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.exerciseId}/teacher_appraise.json`,{method:"get",params:p({},ie)})})}function Ze(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercise_questions/${ie.id}/adjust_score.json`,{method:"post",body:p({},ie)})})}function Oe(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercise_questions/${ie.id}/batch_adjust_score.json`,{method:"post",body:p({},ie)})})}function ot(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.id}/adjust_score.json`,{method:"post",body:p({},ie)})})}function Et(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.id}/delayed_time.json`,{method:"post",body:p({},ie)})})}function ht(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/exercise_setting.json`,{method:"get",params:p({},ie)})})}function Ve(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/v2/exercises/${ie.categoryId}/exercise_setting.json`,{method:"get",params:p({},ie)})})}function Ct(ie){return d(this,null,function*(){return Fetch(`/api/exercises/${ie.categoryId}/commit_setting.json`,{method:"post",body:p({},ie)})})}function ue(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.exerciseId}/review_exercises_by_students.json`,{method:"post",body:p({},ie)})})}function ke(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/exercise_lists.xlsx`,{method:"get",params:h(p({},ie),{export:!0})})})}function We(ie){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/user_exercise_detail.json`,{method:"get",params:h(p({},ie),{login:null})})}function Ue(ie){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/start.json`,{method:"get",params:p({},ie)})}function Ge(ie){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/start_unlock.json`,{method:"post",body:p({},ie)})}function ct(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercise_questions/${ie.questionId}/exercise_answers.json`,{method:"post",body:ie})})}function Ut(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/commit_exercise.json`,{method:"post",body:ie})})}function vt(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/simulate_commit_exercise.json`,{method:"post",body:ie})})}function Le(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/redo_exercise.json`,{method:"post",body:ie})})}function yt(ie){return(0,t.ZP)(`/api/${ie.url}`,{method:"get",params:p({},ie)})}function ut(ie){return(0,t.ZP)(`/api/problems/${ie.id}/start.json`,{method:"get",params:p({},ie)})}function kt(ie){return(0,t.ZP)(`/api/exercises/${ie.id}/begin_commit.json`,{method:"get",params:p({},ie)})}function Xt(ie){return(0,t.ZP)(`/api/exercises/${ie.id}/simulate_begin_commit.json`,{method:"get",params:p({},ie)})}function ir(ie){return(0,t.ZP)("/api/examination_intelligent_settings/optional_items.json",{method:"post",body:p({},ie)})}function Wr(ie){return console.log("params:",ie),(0,t.ZP)(`/api/exercises/${ie.categoryId}/edit.json`,{method:"get",params:p({},ie)})}function xn(ie){return(0,t.ZP)(`/api/exercises/${ie.id}/get_objective_scores.json`,{method:"get",params:p({},ie)})}function Xe(ie){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/redo_modal.json`,{method:"get",params:p({},ie)})}function Tr(ie){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/student_redo_lists.json`,{method:"get",params:p({},ie)})}function dn(ie){return(0,t.ZP)("/api/exercises/get_user_exercises.json",{method:"get",params:ie})}function Cn(ie){return(0,t.ZP)(`/api/exercises/${ie.id}/exercise_header.json`,{method:"get",params:p({},ie)})}function Ln(ie){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/allow_close_camera.json`,{method:"post",body:p({},ie)})}function Xn(ie){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/get_exercise_user_info.json`,{method:"get",params:p({},ie)})}function xa(ie){return(0,t.ZP)(`/api/exercises/${ie.id}/record_screen`,{method:"post",params:p({},ie)})}function ye(ie){return(0,t.ZP)(`/api/exercises/${ie.id}/unbind_ip.json`,{method:"post",body:p({},ie)})}function er(ie){return(0,t.ZP)(`/api/exercises/${ie.id}/check_ip.json`,{method:"get",params:p({},ie)})}function St(ie){return(0,t.ZP)(`/api/exercises/${ie==null?void 0:ie.id}/check_user_exercise.json`,{method:"get",params:p({},ie)})}function Pt(ie){return Fetch(`/api/exercises/${ie.id}/make_up_students.json`,{method:"get",params:p({},ie)})}function Wt(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/courses/${ie.coursesId}/exercises/code_review_detail.json`,{method:"get",params:p({},ie)})})}function ur(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercise_questions/${ie.question_id}/adjust_score.json`,{method:"post",body:p({},ie)})})}function Er(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ie.categoryId}/simulate_exercise.json`,{method:"post",body:p({},ie)})})}function tr(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/simulate_start_answer.json`,{method:"get",params:p({},ie)})})}function st(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/exercise_time.json`,{method:"get",params:p({},ie)})})}function $t(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/commit_screen_at.json`,{method:"post",body:p({},ie)})})}function it(ie,Jt){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie}/unlock_user`,{method:"post",body:Jt})})}function Pe(ie,Jt){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie}/save_screen_record.json`,{method:"post",body:Jt})})}function Ee(ie,Jt){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie}/screen_record_list.json`,{method:"get",params:Jt})})}function Te(ie){return d(this,null,function*(){return(0,t.ZP)("/api/attachments/set_ecs_attachment.json",{method:"get",params:p({},ie)})})}function He(ie){return d(this,null,function*(){return(0,t.ZP)("/api/exercises/need_redo.json",{method:"get",params:ie})})}function jt(ie,Jt){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie}/mark.json`,{method:"post",body:Jt})})}function Zt(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/myshixuns/${ie}/exit_delete_pod.json`,{method:"post",body:ie})})}function cr(ie){return d(this,null,function*(){return(0,t.ZP)("/api/users/change_exercise_score.json",{method:"put",body:ie})})}function Ce(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercise_questions/${ie==null?void 0:ie.id}/send_to_item_bank.json`,{method:"post",body:p({},ie)})})}function Qe(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/ai/wrong_question_push_charts/${ie.exercise_id}/wrong_details.json`,{method:"get",params:p({},ie)})})}function Ke(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/ai/wrong_question_push_charts/${ie.exercise_id}/wrong_question.json`,{method:"get",params:p({},ie)})})}function ze(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/ai/wrong_question_push_charts/${ie.exercise_id}/wrong_question_lists.json`,{method:"get",params:p({},ie)})})}},13703:function(i,f,e){"use strict";e.d(f,{B0:function(){return d},Si:function(){return x},Sr:function(){return I},YP:function(){return O},b4:function(){return E},bc:function(){return p},dX:function(){return C},eh:function(){return T},iI:function(){return v},kd:function(){return h},qR:function(){return S},sW:function(){return g},ts:function(){return k},vL:function(){return R},z5:function(){return D}});var t=e(33170),r=Object.defineProperty,n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(N,L,q)=>L in N?r(N,L,{enumerable:!0,configurable:!0,writable:!0,value:q}):N[L]=q,c=(N,L)=>{for(var q in L||(L={}))a.call(L,q)&&u(N,q,L[q]);if(n)for(var q of n(L))s.call(L,q)&&u(N,q,L[q]);return N},o=(N,L,q)=>new Promise((W,K)=>{var Z=F=>{try{j(q.next(F))}catch($){K($)}},H=F=>{try{j(q.throw(F))}catch($){K($)}},j=F=>F.done?W(F.value):Promise.resolve(F.value).then(Z,H);j((q=q.apply(N,L)).next())});function p(N){return o(this,null,function*(){return(0,t.ZP)("/api/memos.json",{method:"get",params:N})})}function h(N){return o(this,null,function*(){return(0,t.ZP)("/api/discusses/forum_discusses.json",{method:"get",params:N})})}function d(N){return o(this,null,function*(){return(0,t.ZP)(`/api/memos/${N.id}/sticky_or_cancel.json`,{method:"post",body:N})})}function g(N){return o(this,null,function*(){return(0,t.ZP)(`/api/memos/${N.id}.json`,{method:"delete",body:N})})}function v(N){return o(this,null,function*(){return(0,t.ZP)("/api/memos/new.json",{method:"get",params:N})})}function S(N){return o(this,null,function*(){return(0,t.ZP)(`/api/memos/${N.id}/edit.json`,{method:"get",params:N})})}function C(N){return o(this,null,function*(){return(0,t.ZP)("/api/memos.json",{method:"post",body:c({},N)})})}function E(N){return o(this,null,function*(){return(0,t.ZP)(`/api/memos/${N.id}.json`,{method:"put",body:c({},N)})})}function x(N){return o(this,null,function*(){return(0,t.ZP)(`/api/memos/${N.id}.json`,{method:"get",params:N})})}function O(N){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${N.user_id}/watch.json`,{method:"post",body:N})})}function I(N){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${N.user_id}/watch.json`,{method:"delete",body:c({},N)})})}function T(N){return o(this,null,function*(){return(0,t.ZP)(`/api/discusses/${N.id}/reward_code.json`,{method:"post",body:N})})}function R(N){return o(this,null,function*(){return(0,t.ZP)(`/api/discusses/${N.id}/plus.json`,{method:"post",body:N})})}function k(N){return o(this,null,function*(){return(0,t.ZP)("/api/memos/reply.json",{method:"post",body:N})})}function D(N){return o(this,null,function*(){return(0,t.ZP)(`/api/memos/${N.id}/more_reply.json`,{method:"get",params:N})})}},34562:function(i,f,e){"use strict";e.d(f,{D2:function(){return n},n0:function(){return a},tk:function(){return s}});var t=e(33170),r=(u,c,o)=>new Promise((p,h)=>{var d=S=>{try{v(o.next(S))}catch(C){h(C)}},g=S=>{try{v(o.throw(S))}catch(C){h(C)}},v=S=>S.done?p(S.value):Promise.resolve(S.value).then(d,g);v((o=o.apply(u,c)).next())});function n(){return r(this,null,function*(){return(0,t.ZP)("/api/setting.json",{method:"Get"})})}function a(){return r(this,null,function*(){return(0,t.ZP)("/api/users/system_update.json",{method:"Get"})})}function s(u){return r(this,null,function*(){return(0,t.ZP)("/api/search_records",{method:"post",body:u})})}},49711:function(i,f,e){"use strict";e.d(f,{B6:function(){return d},Gr:function(){return k},Mf:function(){return I},NA:function(){return x},PC:function(){return C},PP:function(){return E},QA:function(){return h},RP:function(){return L},Sv:function(){return N},YQ:function(){return O},_n:function(){return q},hL:function(){return R},je:function(){return S},mM:function(){return v},wA:function(){return D},x_:function(){return g},y0:function(){return T},y3:function(){return p}});var t=e(33170),r=Object.defineProperty,n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(W,K,Z)=>K in W?r(W,K,{enumerable:!0,configurable:!0,writable:!0,value:Z}):W[K]=Z,c=(W,K)=>{for(var Z in K||(K={}))a.call(K,Z)&&u(W,Z,K[Z]);if(n)for(var Z of n(K))s.call(K,Z)&&u(W,Z,K[Z]);return W},o=(W,K,Z)=>new Promise((H,j)=>{var F=Q=>{try{M(Z.next(Q))}catch(U){j(U)}},$=Q=>{try{M(Z.throw(Q))}catch(U){j(U)}},M=Q=>Q.done?H(Q.value):Promise.resolve(Q.value).then(F,$);M((Z=Z.apply(W,K)).next())});function p(W){return o(this,null,function*(){return(0,t.ZP)(`/api/graduation_tasks/${W.categoryId}.json`,{method:"get",params:c({},W)})})}function h(W){return o(this,null,function*(){return(0,t.ZP)(`/api/graduation_tasks/${W.categoryId}/tasks_list.json`,{method:"get",params:c({},W)})})}function d(W){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${W.coursesId}/graduation_topics/${W.categoryId}/show_detail.json`,{method:"get",params:c({},W)})})}function g(W){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${W.coursesId}/graduation_topics/${W.categoryId}.json`,{method:"get",params:c({},W)})})}function v(W){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${W.coursesId}/graduation_topics/${W.categoryId}/refuse_student_topic.json`,{method:"post",body:c({},W)})})}function S(W){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${W.coursesId}/graduation_topics/${W.categoryId}/accept_student_topic.json`,{method:"post",body:c({},W)})})}function C(W){return o(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${W.categoryId}/show_comment.json`,{method:"get",params:c({},W)})})}function E(W){return o(this,null,function*(){return(0,t.ZP)("/api/users/reply_message.json",{method:"post",body:c({},W)})})}function x(W){return o(this,null,function*(){return(0,t.ZP)("/api/praise_tread/like.json",{method:"post",body:c({},W)})})}function O(W){return o(this,null,function*(){return(0,t.ZP)("/api/praise_tread/unlike.json",{method:"delete",body:c({},W)})})}function I(W){return o(this,null,function*(){return(0,t.ZP)("/api/commons/delete.json",{method:"delete",body:c({},W)})})}function T(W){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${W.coursesId}/graduation_topics/new.json`,{method:"get",params:c({},W)})})}function R(W){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${W.coursesId}/graduation_topics/${W.categoryId}/edit.json`,{method:"get",params:c({},W)})})}function k(W){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${W.coursesId}/graduation_topics`,{method:"post",body:c({},W)})})}function D(W){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${W.coursesId}/graduation_topics/${W.categoryId}`,{method:"put",body:c({},W)})})}function N(W){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${W.coursesId}/graduation_tasks`,{method:"post",body:c({},W)})})}function L(W){return o(this,null,function*(){return(0,t.ZP)(`/api/graduation_tasks/${W.categoryId}.json`,{method:"put",body:c({},W)})})}function q(W){return o(this,null,function*(){return(0,t.ZP)(`/api/graduation_tasks/${W.categoryId}/edit.json`,{method:"get",params:c({},W)})})}},73983:function(i,f,e){"use strict";e.d(f,{AA:function(){return D},Db:function(){return h},Dd:function(){return S},F7:function(){return Z},Fi:function(){return Q},H3:function(){return v},HF:function(){return E},HH:function(){return g},Ib:function(){return F},J3:function(){return u},NT:function(){return n},NX:function(){return O},Ot:function(){return x},Ou:function(){return H},Ps:function(){return a},Rk:function(){return K},Tz:function(){return p},V1:function(){return $},Wz:function(){return s},Xh:function(){return d},Xw:function(){return W},YS:function(){return L},Zd:function(){return M},bS:function(){return I},ck:function(){return C},eh:function(){return k},il:function(){return c},j7:function(){return o},jW:function(){return N},km:function(){return q},l5:function(){return R},rU:function(){return U},xF:function(){return T},zC:function(){return j},zT:function(){return z}});var t=e(33170),r=(Y,ee,de)=>new Promise((me,_e)=>{var be=Ot=>{try{tt(de.next(Ot))}catch(_t){_e(_t)}},pt=Ot=>{try{tt(de.throw(Ot))}catch(_t){_e(_t)}},tt=Ot=>Ot.done?me(Ot.value):Promise.resolve(Ot.value).then(be,pt);tt((de=de.apply(Y,ee)).next())});function n(Y){return(0,t.ZP)("/api/schools/search.json",{method:"get",params:Y})}function a(Y){return(0,t.ZP)(`/api/schools/${Y.id}/departments/for_option.json`,{method:"get",params:Y})}function s(Y){return(0,t.ZP)("/api/graduations.json",{method:"POST",body:Y})}function u(Y){return(0,t.ZP)("/api/graduations.json",{method:"get",params:Y})}function c(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.identifier}/graduation_stages/${Y.stageid}/authorized_redelivery.json`,{method:"POST",body:Y})})}function o(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.identifier}/graduation_stages/${Y.stageid}/submit.json`,{method:"POST",body:Y})})}function p(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.id}/student_tasks/export_status.json`,{method:"get",params:Y})})}function h(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.id}/student_tasks/export_all_attachments.json`,{method:"get",params:Y})})}function d(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.identifier}/graduation_stages/${Y.id}.json`,{method:"get",params:Y})})}function g(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.id}/student_tasks/set_final_score.json`,{method:"POST",body:Y})})}function v(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.id}/student_tasks/final_score.json`,{method:"get",params:Y})})}function S(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.id}/set_novice_guide.json`,{method:"POST",body:Y})})}function C(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.id}/graduation_notices/${Y.doid}/set_do.json`,{method:"POST",body:Y})})}function E(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.id}/graduation_teachers.json`,{method:"POST",body:Y})})}function x(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.identifier}/graduation_students/${Y.id}/update_major.json`,{method:"PUT",body:Y})})}function O(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.id}/graduation_students.json`,{method:"POST",body:Y})})}function I(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.id}/graduation_teachers/search.json`,{method:"get",params:Y})})}function T(Y){return r(this,null,function*(){return(0,t.ZP)("/api/schools/search.json",{method:"get",params:Y})})}function R(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.id}/graduation_students/search.json`,{method:"get",params:Y})})}function k(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.id}/graduation_students.json`,{method:"get",params:Y})})}function D(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.id}/graduation_teachers.json`,{method:"get",params:Y})})}function N(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.graduation_id}/graduation_tasks.json`,{method:"POST",body:Y})})}function L(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.graduation_id}/graduation_tasks/${Y.id}.json`,{method:"PUT",body:Y})})}function q(Y){return r(this,null,function*(){var ee;return(0,t.ZP)(`/api/graduations/${Y.id}/graduation_tasks/${(ee=Y.ids)==null?void 0:ee[0]}`,{method:"DELETE",body:{ids:Y.ids}})})}function W(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.id}/graduation_tasks.json`,{method:"get",params:Y})})}function K(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.id}/graduation_notices.json`,{method:"get",params:Y})})}function Z(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.id}.json`,{method:"get"})})}function H(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y==null?void 0:Y.id}/common_header.json`,{method:"get"})})}function j(Y,ee){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y}/preview.json`,{method:"get"})})}function F(Y,ee){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y}/graduation_teachers/not_pass.json`,{method:"post",body:ee})})}function $(Y,ee){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y}/graduation_teachers/pass.json`,{method:"post",body:ee})})}function M(Y,ee){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y}/graduation_students/not_pass.json`,{method:"post",body:ee})})}function Q(Y,ee){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y}/graduation_students/pass.json`,{method:"post",body:ee})})}function U(Y,ee){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y}/graduation_students/batch_delete`,{method:"delete",body:ee})})}function z(Y,ee){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y}/graduation_teachers/batch_delete`,{method:"delete",body:ee})})}},51710:function(i,f,e){"use strict";e.d(f,{LA:function(){return u},S_:function(){return c},Tt:function(){return n},cR:function(){return a},vm:function(){return s}});var t=e(33170),r=(o,p,h)=>new Promise((d,g)=>{var v=E=>{try{C(h.next(E))}catch(x){g(x)}},S=E=>{try{C(h.throw(E))}catch(x){g(x)}},C=E=>E.done?d(E.value):Promise.resolve(E.value).then(v,S);C((h=h.apply(o,p)).next())});function n(){return r(this,null,function*(){return(0,t.ZP)("/api/home/index.json",{method:"Get"})})}function a(o){return r(this,null,function*(){return(0,t.ZP)("/api/courses/apply_to_join_course.json",{method:"post",body:o})})}function s(o){return r(this,null,function*(){return(0,t.ZP)("/api/project_applies.json",{method:"post",body:o})})}function u(o){return r(this,null,function*(){return(0,t.ZP)("/api/users/home_notice.json",{method:"Get"})})}function c(o){return r(this,null,function*(){return(0,t.ZP)("/api/users/view_notice.json",{method:"post",body:o})})}},21450:function(i,f,e){"use strict";e.d(f,{AD:function(){return p},Ig:function(){return h},Ko:function(){return v},QJ:function(){return S},Ub:function(){return C},V8:function(){return d},dl:function(){return E},w0:function(){return g}});var t=e(33170),r=Object.defineProperty,n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(x,O,I)=>O in x?r(x,O,{enumerable:!0,configurable:!0,writable:!0,value:I}):x[O]=I,c=(x,O)=>{for(var I in O||(O={}))a.call(O,I)&&u(x,I,O[I]);if(n)for(var I of n(O))s.call(O,I)&&u(x,I,O[I]);return x},o=(x,O,I)=>new Promise((T,R)=>{var k=L=>{try{N(I.next(L))}catch(q){R(q)}},D=L=>{try{N(I.throw(L))}catch(q){R(q)}},N=L=>L.done?T(L.value):Promise.resolve(L.value).then(k,D);N((I=I.apply(x,O)).next())});function p(x){return o(this,null,function*(){return(0,t.ZP)("/api/users/tidings.json",{method:"get",params:c({},x)})})}function h(x){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${x.userId}/unread_message_info.json`,{method:"get",params:c({},x)})})}function d(x){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${x.userId}/private_messages.json`,{method:"get",params:c({},x)})})}function g(x){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${x.userId}/private_messages.json`,{method:"post",body:c({},x)})})}function v(x){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${x.id}/recent_contacts.json`,{method:"get",params:c({},x)})})}function S(x){return o(this,null,function*(){return(0,t.ZP)("/api/users_for_private_messages.json",{method:"get",params:c({},x)})})}function C(x){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${x.userId}/private_message_details.json`,{method:"get",params:c({},x)})})}function E(x){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${x.userId}/private_messages/${x.id}.json`,{method:"delete"})})}},36600:function(i,f,e){"use strict";e.d(f,{A2:function(){return S},CI:function(){return d},Ep:function(){return v},Ex:function(){return T},R7:function(){return p},WW:function(){return R},_V:function(){return I},ms:function(){return x},s0:function(){return C},vf:function(){return g},xn:function(){return h},yy:function(){return O}});var t=e(33170),r=Object.defineProperty,n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(k,D,N)=>D in k?r(k,D,{enumerable:!0,configurable:!0,writable:!0,value:N}):k[D]=N,c=(k,D)=>{for(var N in D||(D={}))a.call(D,N)&&u(k,N,D[N]);if(n)for(var N of n(D))s.call(D,N)&&u(k,N,D[N]);return k},o=(k,D,N)=>new Promise((L,q)=>{var W=H=>{try{Z(N.next(H))}catch(j){q(j)}},K=H=>{try{Z(N.throw(H))}catch(j){q(j)}},Z=H=>H.done?L(H.value):Promise.resolve(H.value).then(W,K);Z((N=N.apply(k,D)).next())});function p(k){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${k.coursesId}/online_learning.json`,{method:"get"})})}function h(k){return o(this,null,function*(){return(0,t.ZP)(`/api/course_stages/${k.id}.json`,{method:"put",body:k})})}function d(k){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${k.coursesId}/course_stages.json`,{method:"post",body:k})})}function g(k){return o(this,null,function*(){return(0,t.ZP)(`/api/course_stages/${k.id}/add_shixun_to_stage.json`,{method:"post",body:k})})}function v(k){return o(this,null,function*(){return(0,t.ZP)(`/api/course_stages/${k.id}/select_shixun_to_stage.json`,{method:"post",body:k})})}function S(k){return o(this,null,function*(){return(0,t.ZP)(`/api/course_stages/${k.id}/add_video_to_stage.json`,{method:"post",body:k})})}function C(k){return o(this,null,function*(){return(0,t.ZP)(`/api/course_stages/${k.id}/add_attachment_to_stage.json`,{method:"post",body:k})})}function E(k){return o(this,null,function*(){return Fetch("/api/paths/add_shixun_to_stage.json",{method:"post",body:k})})}function x(k){return o(this,null,function*(){return(0,t.ZP)(`/api/course_stages/${k.id}/up_position.json`,{method:"post"})})}function O(k){return o(this,null,function*(){return(0,t.ZP)(`/api/course_stages/${k.id}/down_position.json`,{method:"post"})})}function I(k){return o(this,null,function*(){return(0,t.ZP)(`/api/course_stages/${k.id}.json`,{method:"delete"})})}function T(k){return o(this,null,function*(){return(0,t.ZP)(`/api/course_stages/${k.stage_id}/items/move_position.json`,{method:"post",body:c({},k)})})}function R(k){return o(this,null,function*(){return(0,t.ZP)(`/api/course_stages/${k.stage_id}/items/${k.id}`,{method:"delete"})})}},56443:function(i,f,e){"use strict";e.d(f,{DF:function(){return S},Di:function(){return $},Dm:function(){return K},Dq:function(){return de},Gd:function(){return v},Hb:function(){return me},Hm:function(){return L},ID:function(){return o},JP:function(){return ee},NC:function(){return D},Pl:function(){return C},Qc:function(){return a},Qp:function(){return Z},RK:function(){return h},YP:function(){return N},a2:function(){return u},ar:function(){return g},cV:function(){return p},d1:function(){return d},dp:function(){return n},fn:function(){return E},iT:function(){return T},jK:function(){return W},kF:function(){return _e},kp:function(){return I},lc:function(){return O},oF:function(){return Q},q$:function(){return c},qN:function(){return q},tS:function(){return x},ts:function(){return R},un:function(){return j},w0:function(){return F},wX:function(){return H},yE:function(){return s}});var t=e(33170),r=(be,pt,tt)=>new Promise((Ot,_t)=>{var Gt=Tt=>{try{Je(tt.next(Tt))}catch(nr){_t(nr)}},It=Tt=>{try{Je(tt.throw(Tt))}catch(nr){_t(nr)}},Je=Tt=>Tt.done?Ot(Tt.value):Promise.resolve(Tt.value).then(Gt,It);Je((tt=tt.apply(be,pt)).next())});const n=be=>(0,t.ZP)(`/api/examination_banks/${be==null?void 0:be.id}/code_check.json`,{method:"get",params:be}),a=be=>(0,t.ZP)(`/api/examination_banks/${be.id}/reset_pwd.json`,{method:"post",body:be}),s=be=>(0,t.ZP)(`/api/examination_banks/${be.id}/encrypt_or_decrypt.json`,{method:"post",body:be}),u=be=>(0,t.ZP)("/api/examination_banks/exist_course.json",{method:"post",body:be}),c=be=>(0,t.ZP)("/api/examination_banks/check_examination_banks.json",{method:"post",body:be}),o=be=>(0,t.ZP)(`/api/examination_banks/${be.id}/copy.json`,{method:"post",body:be}),p=be=>(0,t.ZP)(`/api/examination_banks/${be.id}/get_question_type_alias.json`,{method:"get",params:be});function h(be){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${be.id}/edit_question_type_alias.json`,{method:"POST",body:be})})}function d(be){return r(this,null,function*(){return(0,t.ZP)("/api/disciplines.json",{method:"get",params:be})})}function g(be){return r(this,null,function*(){return(0,t.ZP)("/api/disciplines/by_examination_banks.json",{method:"get",params:be})})}function v(be){return r(this,null,function*(){return(0,t.ZP)("/api/examination_banks.json",{method:"get",params:be})})}function S(be){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${be.id}/set_public.json`,{method:"post"})})}function C(be){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${be.id}/set_private.json`,{method:"post"})})}function E(be){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${be.id}.json`,{method:"delete"})})}function x(be){return r(this,null,function*(){return(0,t.ZP)("/api/question_banks/my_courses.json",{method:"get",params:be})})}const O=be=>(0,t.ZP)("/api/examination_banks/batch_send_to_course.json",{method:"post",body:be});function I(be){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${be.id}/send_to_course.json`,{method:"post",body:be})})}function T(be){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${be.id}.json`,{method:"get",params:be})})}function R(be){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${be.id}/examination_banks_item_banks/${be.itemId}/set_score`,{method:"post",body:be})})}function k(be){return r(this,null,function*(){return Fetch(`/api/examination_banks/${be.id}/examination_banks_item_banks/${be.itemId}/set_shixun_score.json`,{method:"post",body:be})})}function D(be){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${be.id}/examination_banks_item_banks/${be.itemId}.json`,{method:"delete"})})}function N(be){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${be.id}/examination_banks_item_banks/batch_set_score.json`,{method:"post",body:be})})}function L(be){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${be.id}/examination_banks_item_banks/destroy_by_item_type.json`,{method:"delete",body:be})})}function q(be){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${be.id}/examination_banks_item_banks/${be.itemId}/adjust_position.json`,{method:"post",body:be})})}function W(be){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${be.id}.json`,{method:"put",body:be})})}function K(be){return r(this,null,function*(){return(0,t.ZP)("/api/teach_group_shares.json",{method:"get",params:be})})}function Z(be){return r(this,null,function*(){return(0,t.ZP)("/api/examination_banks/set_batch_public.json",{method:"post",body:be})})}function H(be){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${be==null?void 0:be.id}/set_public.json`,{method:"post",body:be})})}function j(be){return r(this,null,function*(){return(0,t.ZP)("/api/examination_banks/create_exam.json",{method:"post",body:be})})}function F(be){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${be.id}/update_exam.json`,{method:"put",body:be})})}function $(be){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${be.id}/edit_exam.json`,{method:"get"})})}function M(be,pt){return r(this,null,function*(){return Fetch(`/api/examination_banks/${be}/examination_banks_item_banks.json`,{method:"post",body:pt})})}function Q(be){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${be.id}/examination_banks_item_banks/create_item_bank.json`,{method:"post",body:be})})}function U(be,pt){return r(this,null,function*(){return Fetch(`/api/examination_banks/${be}/sort_question_type.json`,{method:"post",body:pt})})}function z(be){return r(this,null,function*(){return Fetch(`/api/examination_banks/${be.exam_id}/examination_banks_item_banks/${be.question_id}.json`,{method:"delete"})})}function Y(be,pt){return r(this,null,function*(){return Fetch(`/api/examination_banks/${be}/batch_set_score.json`,{method:"post",body:pt})})}function ee(be){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${be}/simulate_exercise.json`,{method:"post"})})}function de(be){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${be}/exercise_header.json`,{method:"get"})})}function me(be,pt,tt){return r(this,null,function*(){const Ot=new FormData;return Ot.append("file",pt),Ot.append("sub_discipline_id",tt),(0,t.ZP)(`/api/examination_banks/${be}/import_item_banks.json`,{method:"post",body:Ot},!0)})}function _e(be){return r(this,null,function*(){return(0,t.ZP)("/api/users/change_exam_score.json",{method:"put",body:be})})}},93671:function(i,f,e){"use strict";e.d(f,{$D:function(){return nr},A2:function(){return Wr},A7:function(){return He},AQ:function(){return tt},Ax:function(){return ye},Bn:function(){return cr},Bz:function(){return O},CB:function(){return k},CI:function(){return dn},D$:function(){return d},DQ:function(){return it},DU:function(){return Le},EG:function(){return W},EP:function(){return Tt},Ep:function(){return ir},Er:function(){return Oe},Eu:function(){return T},Ex:function(){return Pt},FD:function(){return Pe},F_:function(){return vt},Fg:function(){return $},GY:function(){return tr},Go:function(){return wt},Gz:function(){return M},Hl:function(){return Q},Ho:function(){return E},JS:function(){return ke},Jd:function(){return D},Ju:function(){return I},KM:function(){return Rr},M1:function(){return p},M2:function(){return Xe},Mt:function(){return Tr},Mu:function(){return er},NV:function(){return Zt},O9:function(){return C},PQ:function(){return R},Q:function(){return Et},S$:function(){return g},Sp:function(){return pt},VO:function(){return Ee},WD:function(){return Er},WO:function(){return Ze},WW:function(){return Wt},YP:function(){return Z},_C:function(){return jt},_V:function(){return xa},b:function(){return v},bw:function(){return Je},bz:function(){return $t},c2:function(){return N},c3:function(){return ue},cn:function(){return Y},dX:function(){return j},eJ:function(){return at},ef:function(){return Ut},fh:function(){return ee},fj:function(){return dt},hS:function(){return U},jT:function(){return Te},j_:function(){return H},ke:function(){return ur},lk:function(){return be},mB:function(){return h},mE:function(){return x},mQ:function(){return _e},ms:function(){return Ln},mx:function(){return Ve},nq:function(){return F},ol:function(){return st},p:function(){return _t},p4:function(){return ht},pU:function(){return me},pf:function(){return q},rS:function(){return We},rs:function(){return Pr},s0:function(){return xn},se:function(){return L},sm:function(){return Ct},tS:function(){return z},tu:function(){return de},ue:function(){return Ot},vf:function(){return kt},w4:function(){return Gt},wv:function(){return K},xG:function(){return Xt},xn:function(){return ut},yN:function(){return It},yy:function(){return Xn},zc:function(){return S}});var t=e(33170),r=Object.defineProperty,n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(Ce,Qe,Ke)=>Qe in Ce?r(Ce,Qe,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Ce[Qe]=Ke,c=(Ce,Qe)=>{for(var Ke in Qe||(Qe={}))a.call(Qe,Ke)&&u(Ce,Ke,Qe[Ke]);if(n)for(var Ke of n(Qe))s.call(Qe,Ke)&&u(Ce,Ke,Qe[Ke]);return Ce},o=(Ce,Qe,Ke)=>new Promise((ze,ie)=>{var Jt=Hr=>{try{Yr(Ke.next(Hr))}catch(cn){ie(cn)}},br=Hr=>{try{Yr(Ke.throw(Hr))}catch(cn){ie(cn)}},Yr=Hr=>Hr.done?ze(Hr.value):Promise.resolve(Hr.value).then(Jt,br);Yr((Ke=Ke.apply(Ce,Qe)).next())});const p=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/subject_knowledge/student_detail.json",{method:"get",params:Ce})}),h=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/subject_knowledge/knowledge_detail.json",{method:"get",params:Ce})}),d=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/subject_knowledge/update_statistic.json",{method:"get",params:Ce})}),g=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/subject_knowledge/statistic_lists.json",{method:"get",params:Ce})}),v=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/subject_knowledge/route_statistics.json",{method:"get",params:Ce})}),S=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/knowledge/v2/send_to_course.json",{method:"POST",body:Ce})}),C=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/knowledge/v2/check_knowledge_repeat.json",{method:"POST",body:Ce})}),E=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/knowledge/v2/courses.json",{method:"get",params:Ce})}),x=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/subject_knowledge/toggle.json",{method:"get",params:Ce})}),O=Ce=>o(void 0,null,function*(){return(0,t.ZP)(`/api/v2/knowledge_graphs/${Ce==null?void 0:Ce.graphable_type}/${Ce==null?void 0:Ce.graphable_id}`,{method:"get",params:Ce})}),I=Ce=>o(void 0,null,function*(){return(0,t.ZP)(`/api/ability_goals/${Ce==null?void 0:Ce.id}/detail.json`,{method:"get",params:Ce})}),T=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/ability_goals/home.json",{method:"get",params:Ce})}),R=Ce=>o(void 0,null,function*(){return(0,t.ZP)(`/api/ability_tags/${Ce==null?void 0:Ce.id}.json`,{method:"delete",body:Ce})}),k=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/ability_tags.json",{method:"POST",body:Ce})}),D=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/ability_tags.json",{method:"get",params:Ce})}),N=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/subject_knowledge/tree.json",{method:"get",params:Ce})}),L=Ce=>o(void 0,null,function*(){return(0,t.ZP)(`/api/ability_goals/${Ce==null?void 0:Ce.id}/edit`,{method:"get",params:Ce})}),q=Ce=>o(void 0,null,function*(){return(0,t.ZP)(`/api/ability_goals/${Ce==null?void 0:Ce.id}.json`,{method:"delete",body:Ce})}),W=Ce=>o(void 0,null,function*(){return(0,t.ZP)(`/api/ability_goals/${Ce==null?void 0:Ce.id}.json`,{method:"PUT",body:Ce})}),K=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/ability_goals.json",{method:"POST",body:Ce})}),Z=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/ability_goals.json",{method:"get",params:Ce})}),H=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/knowledge/v2/update_knowledge_statistic.json",{method:"POST",body:Ce})}),j=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/knowledge/v2/subject_knowledge_statistic.json",{method:"Get",params:Ce})}),F=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/subject_statistics/subject_use_infos.json",{method:"Get",params:Ce})}),$=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/subject_statistics/rank_list.json",{method:"Get",params:Ce})}),M=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/subject_statistics/statistics_body.json",{method:"Get",params:Ce})}),Q=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/subject_statistics/statistics_header.json",{method:"Get",params:Ce})}),U=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/subject_statistics/online_count.json",{method:"Get",params:Ce})});function z(Ce){return o(this,null,function*(){return(0,t.ZP)("/api/paths.json",{method:"Get",params:c({},Ce)})})}function Y(Ce){return o(this,null,function*(){return(0,t.ZP)("/api/intelligent_recommendations/subject_lists.json",{method:"Get",params:c({},Ce)})})}function ee(Ce){return o(this,null,function*(){return(0,t.ZP)("/api/disciplines.json",{method:"Get",params:c({},Ce)})})}function de(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}.json`,{method:"PUT",body:Ce})})}function me(Ce){return o(this,null,function*(){return(0,t.ZP)("/api/paths.json",{method:"post",body:Ce})})}function _e(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}/edit.json`,{method:"get"})})}function be(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}.json`,{method:"get",params:c({identifier:Ce.id},Ce)})})}function pt(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ce.id}.json`,{method:"get",params:c({identifier:Ce.id},Ce)})})}function tt(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}/right_banner.json`,{method:"get",params:Ce})})}function Ot(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}/spoc_courses.json`,{method:"get",params:Ce})})}const _t=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/v2/stages.json",{method:"Get",params:Ce})}),Gt=Ce=>o(void 0,null,function*(){return(0,t.ZP)(`/api/v2/stage_shixuns/${Ce.id}/children.json`,{method:"Get",params:Ce})});function It(Ce){return o(this,null,function*(){return(0,t.ZP)("/api/stages.json",{method:"get",params:Ce})})}function Je(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}/update_team_title.json`,{method:"post",body:Ce})})}function Tt(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}/delete_member.json`,{method:"Delete",body:Ce})})}function nr(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}/spoc_courses/${Ce==null?void 0:Ce.courseid}.json`,{method:"Delete"})})}function Nt(Ce){return o(this,null,function*(){return Fetch(`/api/paths/${Ce.id}/up_member_position.json`,{method:"post",body:Ce})})}function gr(Ce){return o(this,null,function*(){return Fetch(`/api/paths/${Ce.id}/down_member_position.json`,{method:"post",body:Ce})})}function Rr(Ce){return o(this,null,function*(){return(0,t.ZP)("/api/collections.json",{method:"post",body:Ce})})}function Pr(Ce){return o(this,null,function*(){return(0,t.ZP)("/api/collections/cancel.json",{method:"Delete",body:Ce})})}function at(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}.json`,{method:"Delete",body:Ce})})}function wt(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}/publish.json`,{method:"post",body:Ce})})}function dt(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}/cancel_publish.json`,{method:"post",body:Ce})})}function Ze(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}/apply_public.json`,{method:"post",body:Ce})})}function Oe(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}/cancel_public.json`,{method:"post",body:Ce})})}function ot(Ce){return o(this,null,function*(){return Fetch(`/api/paths/${Ce.id}/choose_course.json`,{method:"get",params:Ce})})}function Et(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}/send_to_course.json`,{method:"post",body:Ce})})}function ht(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${Ce.id}/send_to_course.json`,{method:"post",body:Ce})})}function Ve(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}/add_subject_members.json`,{method:"post",body:Ce})})}function Ct(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}/spoc_courses.json`,{method:"post",body:Ce})})}function ue(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}/appointment.json`,{method:"post",body:Ce})})}function ke(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ce.id}/join_excellent_course.json`,{method:"post",body:Ce})})}function We(Ce){return o(this,null,function*(){return(0,t.ZP)("/api/watch_attachment_histories.json",{method:"post",body:Ce})})}function Ue(Ce){return o(this,null,function*(){return Fetch(`/api/paths/${Ce.id}/statistics_info.json`,{method:"get",params:Ce})})}function Ge(Ce){return o(this,null,function*(){return Fetch(`/api/paths/${Ce.id}/shixun_analyze.json`,{method:"get",params:Ce})})}function ct(Ce){return o(this,null,function*(){return Fetch(`/api/paths/${Ce.id}/learning_analyze.json`,{method:"get",params:Ce})})}function Ut(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}/learning_statistics.json`,{method:"get",params:Ce})})}function vt(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}/shixun_statistics.json`,{method:"get",params:Ce})})}function Le(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}/study_analyze/${Ce.type}.json`,{method:"get",params:Ce})})}function yt(Ce){return o(this,null,function*(){return Fetch("/api/paths/append_to_stage.json",{method:"post",body:Ce})})}function ut(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/stages/${Ce.id}.json`,{method:"put",body:Ce})})}function kt(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/stages/${Ce.id}/add_shixun_to_stage.json`,{method:"post",body:Ce})})}const Xt=Ce=>o(void 0,null,function*(){return(0,t.ZP)(`/api/stages/${Ce==null?void 0:Ce.stage_id}/select_challenge_to_stage.json`,{method:"post",body:Ce})});function ir(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/stages/${Ce.id}/select_shixun_to_stage.json`,{method:"post",body:Ce})})}function Wr(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/stages/${Ce.id}/add_video_to_stage.json`,{method:"post",body:Ce})})}function xn(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/stages/${Ce.id}/add_attachment_to_stage.json`,{method:"post",body:Ce})})}function Xe(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/stage_shixuns/${Ce.id}.json`,{method:"put",body:Ce})})}function Tr(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/stages/${Ce.id}/add_blank_to_stage.json`,{method:"post",body:Ce})})}function dn(Ce){return o(this,null,function*(){return(0,t.ZP)("/api/stages.json",{method:"post",body:Ce})})}function Cn(Ce){return o(this,null,function*(){return Fetch("/api/paths/add_shixun_to_stage.json",{method:"post",body:Ce})})}function Ln(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/stages/${Ce.id}/up_position.json`,{method:"get"})})}function Xn(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/stages/${Ce.id}/down_position.json`,{method:"get"})})}function xa(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/stages/${Ce.id}.json`,{method:"delete"})})}function ye(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.pathId}/discusses.json`,{method:"get",params:c({},Ce)})})}function er(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ce.coursesId}/excellent_discusses.json`,{method:"get",params:c({},Ce)})})}function St(Ce){return o(this,null,function*(){return Fetch("/api/discusses.json",{method:"post",body:c({},Ce)})})}function Pt(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/stages/${Ce.stage_id}/items/move_position`,{method:"post",body:c({},Ce)})})}function Wt(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/stages/${Ce.stage_id}/items/${Ce.id}`,{method:"delete"})})}function ur(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ce.id}/excellent_discuss`,{method:"post",body:c({},Ce)})})}function Er(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}/post_discuss`,{method:"post",body:c({},Ce)})})}function tr(Ce){return o(this,null,function*(){return(0,t.ZP)("/api/schools/for_option.json",{method:"get",params:Ce})})}function st(Ce){return o(this,null,function*(){return(0,t.ZP)("/api/schools/province_data.json",{method:"get",params:Ce})})}function $t(Ce){return o(this,null,function*(){return(0,t.ZP)("/api/add_school_applies.json",{method:"post",body:Ce})})}function it(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/stages/${Ce==null?void 0:Ce.id}/add_homework_to_stage.json`,{method:"post",body:Ce})})}function Pe(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/stage_shixuns/${Ce==null?void 0:Ce.id}/edit.json`,{method:"get",params:Ce})})}function Ee(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/stage_shixuns/${Ce==null?void 0:Ce.id}.json`,{method:"put",body:Ce})})}function Te(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${Ce==null?void 0:Ce.user_id}/subjects/subject_homework.json`,{method:"get",params:Ce})})}function He(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${Ce==null?void 0:Ce.user_id}/courses/course_homework.json`,{method:"get",params:Ce})})}function jt(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/stages/${Ce==null?void 0:Ce.id}/batch_add_homework_to_stage.json`,{method:"post",body:Ce})})}function Zt(Ce){return o(this,null,function*(){return(0,t.ZP)("/api/paths/get_homework_detail.json",{method:"get",params:Ce})})}function cr(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${Ce==null?void 0:Ce.user_login}/subjects/cancel.json`,{method:"get",params:Ce})})}},32027:function(i,f,e){"use strict";e.d(f,{Fd:function(){return F},Hi:function(){return g},IU:function(){return D},KE:function(){return S},Kc:function(){return M},MK:function(){return N},Q9:function(){return I},Qg:function(){return k},Qn:function(){return E},UK:function(){return d},W:function(){return U},Ye:function(){return R},_c:function(){return p},hO:function(){return K},iV:function(){return Q},jy:function(){return L},kp:function(){return W},lf:function(){return O},m7:function(){return v},n$:function(){return x},rJ:function(){return T},s3:function(){return h},ux:function(){return C},vf:function(){return j},wh:function(){return q},wo:function(){return $},x$:function(){return H}});var t=e(33170),r=Object.defineProperty,n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(z,Y,ee)=>Y in z?r(z,Y,{enumerable:!0,configurable:!0,writable:!0,value:ee}):z[Y]=ee,c=(z,Y)=>{for(var ee in Y||(Y={}))a.call(Y,ee)&&u(z,ee,Y[ee]);if(n)for(var ee of n(Y))s.call(Y,ee)&&u(z,ee,Y[ee]);return z},o=(z,Y,ee)=>new Promise((de,me)=>{var _e=tt=>{try{pt(ee.next(tt))}catch(Ot){me(Ot)}},be=tt=>{try{pt(ee.throw(tt))}catch(Ot){me(Ot)}},pt=tt=>tt.done?de(tt.value):Promise.resolve(tt.value).then(_e,be);pt((ee=ee.apply(z,Y)).next())});const p=z=>o(void 0,null,function*(){return(0,t.ZP)(`/api/poll_questions/${z==null?void 0:z.id}/commit_word_cloud.json`,{method:"Get",params:z})});function h(z){return o(this,null,function*(){return(0,t.ZP)(`/api/polls/${z.categoryId}/poll_lists.json`,{method:"get",params:c({},z)})})}function d(z){return o(this,null,function*(){return(0,t.ZP)(`/api/polls/${z.categoryId}/common_header.json`,{method:"get"})})}function g(z){return o(this,null,function*(){return(0,t.ZP)(`/api/polls/${z.categoryId}/poll_setting.json`,{method:"get"})})}function v(z){return o(this,null,function*(){return(0,t.ZP)(`/api/polls/${z.categoryId}/commit_setting.json`,{method:"post",body:c({},z)})})}function S(z){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${z.coursesId}/polls/end_poll_modal.json`,{method:"get",params:c({},z)})})}function C(z){return o(this,null,function*(){return(0,t.ZP)(`/api/polls/${z.categoryId}/publish_groups.json`,{method:"get",params:c({},z)})})}function E(z){return o(this,null,function*(){return(0,t.ZP)(`/api/polls/${z.categoryId}/commit_result.json`,{method:"get",params:c({},z)})})}function x(z){return o(this,null,function*(){return(0,t.ZP)("/api/question_banks/bank_list.json",{method:"get",params:c({},z)})})}function O(z){return o(this,null,function*(){return(0,t.ZP)("/api/question_banks/save_banks.json",{method:"POST",body:c({},z)})})}function I(z){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${z.coursesId}/polls/publish_modal.json`,{method:"get",params:c({},z)})})}function T(z){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${z.coursesId}/polls.json`,{method:"POST",body:c({},z)})})}function R(z){return o(this,null,function*(){return(0,t.ZP)(`/api/polls/${z.categoryId}/edit.json`,{method:"get"})})}function k(z){return o(this,null,function*(){return(0,t.ZP)(`/api/polls/${z.pollsId}.json`,{method:"put",body:c({},z)})})}function D(z){return o(this,null,function*(){return(0,t.ZP)(`/api/poll_questions/${z.pollsId}.json`,{method:"put",body:c({},z)})})}function N(z){return o(this,null,function*(){return(0,t.ZP)(`/api/polls/${z.pollsId}/poll_questions.json`,{method:"post",body:c({},z)})})}function L(z){return o(this,null,function*(){return(0,t.ZP)(`/api/poll_questions/${z.pollsId}.json`,{method:"delete",body:c({},z)})})}function q(z){return o(this,null,function*(){return(0,t.ZP)(`/api/poll_questions/${z.pollsId}/up_down.json`,{method:"post",body:c({},z)})})}function W(z){return o(this,null,function*(){return(0,t.ZP)(`/api/exercise_banks/${z.topicId}.json`,{method:"get"})})}function K(z){return o(this,null,function*(){return(0,t.ZP)(`/api/exercise_banks/${z.topicId}.json`,{method:"put",body:c({},z)})})}function Z(z){return o(this,null,function*(){return Fetch(`/api/exercise_banks/${z.topicId}.json`,{method:"put",body:c({},z)})})}function H(z){return o(this,null,function*(){return(0,t.ZP)(`/api/exercise_bank_questions/${z.pollsId}.json`,{method:"delete",body:c({},z)})})}function j(z){return o(this,null,function*(){return(0,t.ZP)(`/api/poll_questions/${z.pollsId}/up_down.json`,{method:"post",body:c({},z)})})}function F(z){return o(this,null,function*(){return(0,t.ZP)("/api/poll_bank_questions.json",{method:"post",body:c({},z)})})}function $(z){return o(this,null,function*(){return(0,t.ZP)(`/api/poll_bank_questions/${z.pollsId}.json`,{method:"put",body:c({},z)})})}function M(z){return o(this,null,function*(){return(0,t.ZP)(`/api/exercise_bank_questions/${z.id}.json`,{method:"put",body:c({},z)})})}function Q(z){return o(this,null,function*(){return(0,t.ZP)("/api/exercise_bank_questions.json",{method:"post",body:c({},z)})})}function U(z){return o(this,null,function*(){return(0,t.ZP)(`/api/exercise_bank_questions/${z.exerciseId}/up_down.json`,{method:"post",body:c({},z)})})}},38244:function(i,f,e){"use strict";e.d(f,{$c:function(){return Et},A1:function(){return Oe},Bd:function(){return I},Bo:function(){return Z},Cc:function(){return F},Cn:function(){return Q},DF:function(){return x},Dm:function(){return Je},FG:function(){return K},GW:function(){return Tt},HF:function(){return N},Hm:function(){return z},IJ:function(){return Ze},L5:function(){return It},LS:function(){return Nt},MZ:function(){return wt},Mr:function(){return W},NZ:function(){return pt},Of:function(){return C},Pl:function(){return E},Qj:function(){return v},Qp:function(){return Rr},RT:function(){return ue},Rp:function(){return gr},U6:function(){return L},Vl:function(){return $},Wk:function(){return q},YP:function(){return U},Ys:function(){return R},al:function(){return T},bF:function(){return ht},d1:function(){return g},dt:function(){return Ve},et:function(){return ee},ex:function(){return S},fY:function(){return de},fn:function(){return O},hI:function(){return tt},hg:function(){return at},iT:function(){return H},lS:function(){return be},nD:function(){return nr},qN:function(){return Y},rV:function(){return k},s:function(){return _e},sD:function(){return dt},sS:function(){return Gt},ts:function(){return j},vi:function(){return ot},wX:function(){return Pr},x5:function(){return D},zh:function(){return me}});var t=e(33170),r=Object.defineProperty,n=Object.defineProperties,a=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,o=(ke,We,Ue)=>We in ke?r(ke,We,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):ke[We]=Ue,p=(ke,We)=>{for(var Ue in We||(We={}))u.call(We,Ue)&&o(ke,Ue,We[Ue]);if(s)for(var Ue of s(We))c.call(We,Ue)&&o(ke,Ue,We[Ue]);return ke},h=(ke,We)=>n(ke,a(We)),d=(ke,We,Ue)=>new Promise((Ge,ct)=>{var Ut=yt=>{try{Le(Ue.next(yt))}catch(ut){ct(ut)}},vt=yt=>{try{Le(Ue.throw(yt))}catch(ut){ct(ut)}},Le=yt=>yt.done?Ge(yt.value):Promise.resolve(yt.value).then(Ut,vt);Le((Ue=Ue.apply(ke,We)).next())});function g(ke){return d(this,null,function*(){return(0,t.ZP)("/api/disciplines.json",{method:"get",params:h(p({},ke),{clazz:"ItemBanksGroup"})})})}function v(ke){return d(this,null,function*(){return(0,t.ZP)("/api/item_baskets/basket_list.json",{method:"get",params:ke})})}function S(ke){return d(this,null,function*(){return(0,t.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:ke})})}function C(ke){return d(this,null,function*(){return(0,t.ZP)("/api/item_banks/list.json",{method:"post",body:ke})})}function E(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/item_banks/${ke.id}/set_private.json`,{method:"post"})})}function x(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/item_banks/${ke.id}/set_public.json`,{method:"post"})})}function O(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/item_banks/${ke.id}.json`,{method:"delete"})})}function I(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/problems/${ke.id}/start.json`,{method:"get"})})}function T(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/item_baskets/${ke.id}.json`,{method:"delete",body:p({},ke)})})}function R(ke){return d(this,null,function*(){return(0,t.ZP)("/api/item_baskets.json",{method:"post",body:ke})})}function k(ke){return d(this,null,function*(){return(0,t.ZP)("/api/examination_banks/cancel_items.json",{method:"post",body:ke})})}function D(ke){return d(this,null,function*(){return(0,t.ZP)("/api/item_baskets/delete_item_type.json",{method:"delete",body:{item_type:ke.type}})})}function N(ke){return d(this,null,function*(){return(0,t.ZP)("/api/examination_banks/cancel_items.json",{method:"post",body:ke})})}function L(ke){return d(this,null,function*(){return(0,t.ZP)("/api/tag_disciplines.json",{method:"post",body:ke})})}function q(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/item_banks/${ke.id}.json`,{method:"put",body:ke})})}function W(ke){return d(this,null,function*(){return(0,t.ZP)("/api/item_banks.json",{method:"post",body:ke})})}function K(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/item_banks/${ke.id}/edit.json`,{method:"get"})})}function Z(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/problems/${ke.id}/edit.json`,{method:"get"})})}function H(ke){return d(this,null,function*(){return(0,t.ZP)("/api/item_baskets.json",{method:"get",params:ke})})}function j(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/item_baskets/${ke.id}/set_score.json`,{method:"post",body:ke})})}function F(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/item_baskets/${ke.id}/set_challenge_score.json`,{method:"post",body:ke})})}function $(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/item_baskets/${ke.id}/combination_set_score.json`,{method:"post",body:ke})})}function M(ke){return d(this,null,function*(){return Fetch(`/api/examination_banks//${ke.exerid}/examination_banks_item_banks/${ke.id}/combination_set_score.json`,{method:"post",body:ke})})}function Q(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/item_baskets/${ke.id}.json`,{method:"delete"})})}function U(ke){return d(this,null,function*(){return(0,t.ZP)("/api/item_baskets/batch_set_score.json",{method:"post",body:ke})})}function z(ke){return d(this,null,function*(){return(0,t.ZP)("/api/item_baskets/delete_item_type.json",{method:"delete",body:ke})})}function Y(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/item_baskets/${ke.id}/adjust_position.json`,{method:"post",body:ke})})}function ee(ke){return d(this,null,function*(){return(0,t.ZP)("/api/examination_banks.json",{method:"post",body:ke})})}function de(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ke.id}/revoke_item.json`,{method:"delete",body:ke})})}function me(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ke.exam_id}/examination_banks_item_banks.json`,{method:"post",body:ke})})}function _e(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/item_banks/${ke.id}/join_to_collection.json`,{method:"post",params:ke})})}function be(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/item_banks/${ke.id}/cancel_collection.json`,{method:"post",params:ke})})}function pt(ke){return d(this,null,function*(){return(0,t.ZP)("/api/item_banks_groups.json",{method:"get",params:ke})})}function tt(ke){return d(this,null,function*(){return(0,t.ZP)("/api/item_banks_groups/mine.json",{method:"get",params:ke})})}function Ot(ke){return d(this,null,function*(){return Fetch(`/api/item_banks/${ke.id}/join_to_group.json`,{method:"post",body:ke})})}function _t(ke){return d(this,null,function*(){return Fetch(`/api/item_banks_groups/${ke.id}.json`,{method:"put",body:ke})})}function Gt(ke){return d(this,null,function*(){return(0,t.ZP)("/api/item_banks_groups.json",{method:"post",body:ke})})}function It(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/item_banks/${ke.id}/feedback.json`,{method:"post",body:ke})})}function Je(ke){return d(this,null,function*(){return(0,t.ZP)("/api/teach_group_shares.json",{method:"get",params:ke})})}function Tt(ke){return d(this,null,function*(){return(0,t.ZP)("/api/teach_group_shares.json",{method:"post",body:ke})})}function nr(ke){return d(this,null,function*(){return(0,t.ZP)("/api/item_banks/batch_delete.json",{method:"post",body:ke})})}function Nt(ke){return d(this,null,function*(){return(0,t.ZP)("/api/item_banks/batch_to_group.json",{method:"post",body:ke})})}function gr(ke){return d(this,null,function*(){return(0,t.ZP)("/api/item_banks/add_to_mine.json",{method:"post",body:ke})})}function Rr(ke){return d(this,null,function*(){return(0,t.ZP)("/api/item_banks/set_batch_public.json",{method:"post",body:ke})})}function Pr(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/item_banks/${ke==null?void 0:ke.id}/set_public.json`,{method:"post",body:ke})})}function at(ke){return d(this,null,function*(){return(0,t.ZP)("/api/teach_group_shares/show_groups.json",{method:"get",params:ke})})}function wt(ke){return(0,t.ZP)(`/api/problems/${ke.identifier}/publish.json`,{method:"post",body:ke})}function dt(ke){return(0,t.ZP)(`/api/problems/${ke.identifier}/cancel_publish.json`,{method:"post",body:ke})}function Ze(ke){return(0,t.ZP)("/api/item_banks/cancel_public.json",{method:"post",body:{ids:[...ke.id]}})}function Oe(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/item_banks_groups/${ke.id}/up_position.json`,{method:"get",params:ke})})}function ot(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/item_banks_groups/${ke.id}/down_position.json`,{method:"get",params:ke})})}function Et(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${ke.id}/edit_hack.json`,{method:"get",params:ke})})}function ht(ke){return d(this,null,function*(){return(0,t.ZP)("/api/problems/batch_publish_condition.json",{method:"post",body:ke})})}function Ve(ke){return d(this,null,function*(){return(0,t.ZP)("/api/problems/batch_publish.json",{method:"post",body:ke})})}function Ct(ke){return d(this,null,function*(){return Fetch("/api/item_banks/get_groups.json",{method:"get",params:ke})})}function ue(){return d(this,null,function*(){return(0,t.ZP)("/api/item_baskets/delete_all_items.json",{method:"delete"})})}},41498:function(i,f,e){"use strict";e.d(f,{E1:function(){return s},Go:function(){return n},H5:function(){return a}});var t=e(33170),r=(u,c,o)=>new Promise((p,h)=>{var d=S=>{try{v(o.next(S))}catch(C){h(C)}},g=S=>{try{v(o.throw(S))}catch(C){h(C)}},v=S=>S.done?p(S.value):Promise.resolve(S.value).then(d,g);v((o=o.apply(u,c)).next())});function n(u){return r(this,null,function*(){return(0,t.ZP)("/api/restfuls.json",{method:"get",params:u})})}function a(u){return r(this,null,function*(){return(0,t.ZP)(`/api/restfuls/${u.id}.json`,{method:"get",params:u})})}function s(u){return r(this,null,function*(){return(0,t.ZP)(`/api/restfuls/${u.id}.json`,{method:"delete",params:u})})}},86763:function(i,f,e){"use strict";e.d(f,{Am:function(){return v},Ar:function(){return Je},BD:function(){return ot},Be:function(){return Pr},Dx:function(){return $},Fr:function(){return ut},G$:function(){return E},GS:function(){return L},Gw:function(){return C},H:function(){return Gt},H1:function(){return It},Hj:function(){return ht},JA:function(){return Ct},JG:function(){return F},KE:function(){return U},Lz:function(){return Ze},Mf:function(){return _t},NA:function(){return tt},PC:function(){return be},PP:function(){return pt},PW:function(){return Nt},Q3:function(){return M},QC:function(){return ue},Qt:function(){return Oe},Qz:function(){return I},R$:function(){return Le},RP:function(){return K},Ti:function(){return xn},Uc:function(){return Ge},Ul:function(){return H},VB:function(){return ir},Vs:function(){return ct},Wr:function(){return x},Xn:function(){return Z},YQ:function(){return Ot},Yn:function(){return S},Z8:function(){return D},ak:function(){return nr},cN:function(){return R},co:function(){return at},cz:function(){return me},fK:function(){return N},gG:function(){return _e},gZ:function(){return Ue},h$:function(){return k},ku:function(){return dt},lf:function(){return Y},m7:function(){return j},mQ:function(){return T},mz:function(){return Rr},n$:function(){return z},oK:function(){return g},oN:function(){return Wr},pH:function(){return Et},pb:function(){return Xt},qP:function(){return ke},ql:function(){return We},rN:function(){return wt},sw:function(){return ee},t1:function(){return de},to:function(){return W},ub:function(){return Ve},ux:function(){return Q},wS:function(){return kt},wT:function(){return O},yT:function(){return Tt},yy:function(){return Ut},z2:function(){return gr}});var t=e(33170),r=Object.defineProperty,n=Object.defineProperties,a=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,o=(Xe,Tr,dn)=>Tr in Xe?r(Xe,Tr,{enumerable:!0,configurable:!0,writable:!0,value:dn}):Xe[Tr]=dn,p=(Xe,Tr)=>{for(var dn in Tr||(Tr={}))u.call(Tr,dn)&&o(Xe,dn,Tr[dn]);if(s)for(var dn of s(Tr))c.call(Tr,dn)&&o(Xe,dn,Tr[dn]);return Xe},h=(Xe,Tr)=>n(Xe,a(Tr)),d=(Xe,Tr,dn)=>new Promise((Cn,Ln)=>{var Xn=er=>{try{ye(dn.next(er))}catch(St){Ln(St)}},xa=er=>{try{ye(dn.throw(er))}catch(St){Ln(St)}},ye=er=>er.done?Cn(er.value):Promise.resolve(er.value).then(Xn,xa);ye((dn=dn.apply(Xe,Tr)).next())});const g=Xe=>d(void 0,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe.id}/update_journals.json`,{method:"post",body:Xe})}),v=Xe=>d(void 0,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe==null?void 0:Xe.homeworkId}/change_score.json`,{method:"post",body:Xe})}),S=Xe=>d(void 0,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe==null?void 0:Xe.homeworkId}/history_comment`,{method:"Get",params:Xe})}),C=Xe=>d(void 0,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe==null?void 0:Xe.homeworkId}/feedback_know`,{method:"Get",params:Xe})}),E=Xe=>d(void 0,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe==null?void 0:Xe.userId}/student_work_feedbacks.json`,{method:"POST",body:Xe})}),x=Xe=>d(void 0,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe==null?void 0:Xe.userId}/feedback_list.json`,{method:"Get",params:Xe})}),O=Xe=>d(void 0,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe==null?void 0:Xe.userId}/histories.json`,{method:"Get",params:Xe})}),I=Xe=>d(void 0,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe==null?void 0:Xe.homeworkId}/feedback_list`,{method:"Get",params:Xe})}),T=Xe=>d(void 0,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe==null?void 0:Xe.homeworkId}/anonymous_exception_list.json`,{method:"Get",params:Xe})}),R=Xe=>d(void 0,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe==null?void 0:Xe.homeworkId}/appeal_list`,{method:"Get",params:Xe})});function k(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.categoryId}/works_list.json`,{method:"post",body:p({},Xe)})})}function D(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/shixun_homeworks/${Xe.categoryId}/student_works.json`,{method:"get",params:p({},Xe)})})}function N(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/shixun_homeworks/${Xe.categoryId}/header_info.json`,{method:"get",params:p({},Xe)})})}function L(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe}/query_game_url.json`,{method:"get"})})}function q(Xe){return d(this,null,function*(){return Fetch(`/api/student_works/${Xe}/get_newest_shixun_work_comments.json`,{method:"get"})})}function W(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.categoryId}.json`,{method:"get"})})}function K(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.categoryId}/code_review_results.json`,{method:"get",params:p({},Xe)})})}function Z(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.categoryId}/code_review_detail.json`,{method:"get",params:p({},Xe)})})}function H(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.categoryId}/settings.json`,{method:"get",params:p({},Xe)})})}function j(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.categoryId}/update_settings.json`,{method:"post",body:p({},Xe)})})}function F(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.categoryId}/group_list.json`,{method:"get",params:p({},Xe)})})}function $(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.categoryId}/works_list.xlsx`,{method:"get",params:p({},Xe)})})}function M(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.coursesId}/reference_answer.json`,{method:"get",params:p({},Xe)})})}function Q(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.categoryId}/publish_groups.json`,{method:"get",params:p({},Xe)})})}function U(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.categoryId}/end_groups.json`,{method:"get",params:p({},Xe)})})}function z(Xe){return d(this,null,function*(){return(0,t.ZP)("/api/question_banks/bank_list.json",{method:"get",params:p({},Xe)})})}function Y(Xe){return d(this,null,function*(){return(0,t.ZP)("/api/question_banks/save_banks.json",{method:"post",body:p({},Xe)})})}function ee(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe.homeworkId}/shixun_work_report.json`,{method:"get",params:Xe})})}function de(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe.homeworkId}/shixun_work_report_echart_data.json`,{method:"get",params:Xe})})}function me(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/courses/${Xe.coursesId}/homework_commons/user_hack_detail.json`,{method:"get",params:h(p({},Xe),{id:Xe.categoryId})})})}function _e(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe.categoryId}/adjust_review_score.json`,{method:"post",body:p({},Xe)})})}function be(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.categoryId}/show_comment.json`,{method:"get",params:p({},Xe)})})}function pt(Xe){return d(this,null,function*(){return(0,t.ZP)("/api/users/reply_message.json",{method:"post",body:p({},Xe)})})}function tt(Xe){return d(this,null,function*(){return(0,t.ZP)("/api/praise_tread/like.json",{method:"post",body:p({},Xe)})})}function Ot(Xe){return d(this,null,function*(){return(0,t.ZP)("/api/praise_tread/unlike.json",{method:"delete",body:p({},Xe)})})}function _t(Xe){return d(this,null,function*(){return(0,t.ZP)("/api/commons/delete.json",{method:"delete",body:p({},Xe)})})}function Gt(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.categoryId}/update_explanation.json`,{method:"post",body:p({},Xe)})})}function It(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/courses/${Xe.coursesId}/homework_commons.json`,{method:"post",body:p({},Xe)})})}function Je(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.categoryId}.json`,{method:"put",body:p({},Xe)})})}function Tt(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_banks/${Xe.id}.json`,{method:"put",body:p({},Xe)})})}function nr(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.commonHomeworkId}/student_works/new.json`,{method:"get",params:p({},Xe)})})}function Nt(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe.homeworkId}/edit.json`,{method:"get",params:p({},Xe)})})}function gr(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe.homeworkId}.json`,{method:"put",body:p({},Xe)})})}function Rr(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe.homeworkId}/revise_attachment.json`,{method:"post",body:p({},Xe)})})}function Pr(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.commonHomeworkId}/student_works.json`,{method:"post",body:p({},Xe)})})}function at(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.homeworkId}/student_works/relate_project.json`,{method:"post",body:p({},Xe)})})}function wt(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.homeworkId}/student_works/cancel_relate_project.json`,{method:"get"})})}function dt(Xe){return d(this,null,function*(){return(0,t.ZP)("/api/users/projects/search.json",{method:"get",params:p({},Xe)})})}function Ze(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.commonHomeworkId}/student_works/search_member_list.json`,{method:"get",params:p({},Xe)})})}function Oe(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/courses/${Xe.coursesId}/homework_commons/new.json`,{method:"get",params:p({},Xe)})})}function ot(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.categoryId}/edit.json`,{method:"get",params:p({},Xe)})})}function Et(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_banks/${Xe.id}.json`,{method:"get",params:p({},Xe)})})}function ht(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe.userId}.json`,{method:"get",params:p({},Xe)})})}function Ve(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe.userId}/supply_attachments.json`,{method:"get",params:p({},Xe)})})}function Ct(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe.userId}/comment_list.json`,{method:"get",params:p({},Xe)})})}function ue(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe.userId}/destroy_score.json`,{method:"delete",body:p({},Xe)})})}function ke(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe.userId}/add_score_reply.json`,{method:"post",body:p({},Xe)})})}function We(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.categoryId}/all_student_works.json`,{method:"get",params:p({},Xe)})})}function Ue(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe.homeworkId}/destroy_work_comment.json`,{method:"delete",body:p({},Xe)})})}function Ge(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.categoryId}/score_status.json`,{method:"get",params:p({},Xe)})})}function ct(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.categoryId}/update_score.json`,{method:"get",params:p({},Xe)})})}function Ut(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe.userId}/add_score.json`,{method:"post",body:p({},Xe)})})}function vt(Xe){return d(this,null,function*(){return Fetch(`/api/student_works/${Xe.userId}/cancel_appeal.json`,{method:"post",body:p({},Xe)})})}function Le(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe.userId}/appeal_anonymous_score.json`,{method:"post",body:p({},Xe)})})}function yt(Xe){return d(this,null,function*(){return Fetch(`/api/student_works/${Xe.userId}/deal_appeal_score.json`,{method:"post",body:p({},Xe)})})}function ut(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/myshixuns/${Xe.id}/reset_my_game.json`,{method:"get",params:p({},Xe)})})}function kt(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe.homeworkId}/commit_des.json`,{method:"get",params:p({},Xe)})})}function Xt(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe.homeworkId}/update_des.json`,{method:"post",body:p({},Xe)})})}function ir(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/courses/${Xe.coursesId}/homework_commons/file_repeat_list.json`,{method:"get",params:p({},Xe)})})}function Wr(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/courses/${Xe.coursesId}/homework_commons/file_repeat_result.json`,{method:"get",params:p({},Xe)})})}function xn(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/courses/${Xe.course_id}/homework_commons/file_repeat_detail.json`,{method:"get",params:p({},Xe)})})}},93686:function(i,f,e){"use strict";e.d(f,{$Q:function(){return ze},AE:function(){return Xn},AQ:function(){return U},Ag:function(){return it},Ar:function(){return Tt},At:function(){return cn},BK:function(){return ee},Bj:function(){return ke},Cf:function(){return E},DC:function(){return Ct},Dz:function(){return wn},E4:function(){return g},EH:function(){return gr},Ee:function(){return ar},Er:function(){return It},Ez:function(){return O},FB:function(){return Y},Fg:function(){return j},Ft:function(){return q},GI:function(){return at},Gr:function(){return Ge},Gu:function(){return Pr},Gz:function(){return H},HS:function(){return so},Hl:function(){return K},IF:function(){return D},IT:function(){return st},I_:function(){return M},Ij:function(){return N},Ir:function(){return de},Je:function(){return jt},K:function(){return vn},K0:function(){return rr},KM:function(){return tt},K_:function(){return Jt},LK:function(){return Zt},LP:function(){return wt},Ne:function(){return Gt},OL:function(){return x},OQ:function(){return v},OV:function(){return Ze},OW:function(){return Nt},Op:function(){return Ke},P2:function(){return ot},P4:function(){return L},Po:function(){return Q},Ps:function(){return ct},Q:function(){return _t},Q1:function(){return Ht},QA:function(){return va},Ql:function(){return vt},Rs:function(){return Xe},SG:function(){return ma},Tn:function(){return ye},Tr:function(){return ha},U0:function(){return kt},U9:function(){return Ut},UQ:function(){return ur},Ui:function(){return ie},Vx:function(){return mt},WO:function(){return Je},WT:function(){return Oa},Wi:function(){return We},Wl:function(){return Pe},X$:function(){return Et},Yn:function(){return St},Z2:function(){return ue},ZO:function(){return Ue},Zt:function(){return Tn},_7:function(){return Ot},_9:function(){return Pt},aH:function(){return Le},al:function(){return Wr},b8:function(){return nr},bV:function(){return k},bk:function(){return C},bq:function(){return er},dK:function(){return me},e:function(){return F},eX:function(){return Rr},eb:function(){return Tr},fH:function(){return I},fL:function(){return He},h4:function(){return Bt},hS:function(){return Z},h_:function(){return Ve},he:function(){return $},hn:function(){return be},hy:function(){return T},ii:function(){return xn},im:function(){return Wt},j8:function(){return dt},jq:function(){return Qe},kF:function(){return Ce},km:function(){return ir},l3:function(){return Oe},m7:function(){return ut},mI:function(){return Da},n5:function(){return z},np:function(){return R},nu:function(){return cr},p0:function(){return tr},q0:function(){return Ln},q9:function(){return Hr},qA:function(){return Yr},rO:function(){return Cn},rs:function(){return pt},sr:function(){return Er},t2:function(){return $t},tX:function(){return he},uo:function(){return Xt},v3:function(){return Te},w:function(){return Ee},wX:function(){return W},xK:function(){return xa},xM:function(){return S},xg:function(){return dn},xk:function(){return ht},yE:function(){return yt},yx:function(){return ua},zD:function(){return _e},zH:function(){return br}});var t=e(33170),r=Object.defineProperty,n=Object.defineProperties,a=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,o=(Ae,Se,Ye)=>Se in Ae?r(Ae,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):Ae[Se]=Ye,p=(Ae,Se)=>{for(var Ye in Se||(Se={}))u.call(Se,Ye)&&o(Ae,Ye,Se[Ye]);if(s)for(var Ye of s(Se))c.call(Se,Ye)&&o(Ae,Ye,Se[Ye]);return Ae},h=(Ae,Se)=>n(Ae,a(Se)),d=(Ae,Se,Ye)=>new Promise((J,Ft)=>{var Yt=Lr=>{try{Ur(Ye.next(Lr))}catch(na){Ft(na)}},Mr=Lr=>{try{Ur(Ye.throw(Lr))}catch(na){Ft(na)}},Ur=Lr=>Lr.done?J(Lr.value):Promise.resolve(Lr.value).then(Yt,Mr);Ur((Ye=Ye.apply(Ae,Se)).next())});const g=Ae=>d(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls/commit_result.json",{method:"get",params:Ae})}),v=Ae=>d(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls/edit.json",{method:"get",params:Ae})}),S=Ae=>d(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls/select_polls.json",{method:"post",body:Ae})}),C=Ae=>d(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls/select_polls_list.json",{method:"get",params:Ae})}),E=Ae=>d(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls/commit_poll.json",{method:"post",body:Ae})}),x=Ae=>d(void 0,null,function*(){return(0,t.ZP)(`/api/poll_questions/${Ae==null?void 0:Ae.questionId}/poll_votes.json`,{method:"post",body:Ae})}),O=Ae=>d(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls.json",{method:"put",body:Ae})}),I=Ae=>d(void 0,null,function*(){return(0,t.ZP)(`/api/poll_questions/${Ae==null?void 0:Ae.poll_question_id}/up_down.json`,{method:"post",body:Ae})}),T=Ae=>d(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls.json",{method:"post",body:Ae})}),R=Ae=>d(void 0,null,function*(){return(0,t.ZP)(`/api/poll_questions/${Ae==null?void 0:Ae.poll_question_id}.json`,{method:"put",body:Ae})}),k=Ae=>d(void 0,null,function*(){return(0,t.ZP)("/api/poll_questions.json",{method:"post",body:Ae})}),D=Ae=>d(void 0,null,function*(){return(0,t.ZP)(`/api/poll_questions/${Ae==null?void 0:Ae.poll_question_id}.json`,{method:"delete"})}),N=Ae=>d(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls/collect.json",{method:"post",body:Ae})}),L=Ae=>d(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls/publish.json",{method:"post",body:Ae})}),q=Ae=>d(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls/delete.json",{method:"post",body:Ae})}),W=Ae=>d(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls/start_answer.json",{method:"Get",params:Ae})}),K=Ae=>d(void 0,null,function*(){return(0,t.ZP)("/api/shixun_statistics/statistics_header.json",{method:"Get",params:Ae})}),Z=Ae=>d(void 0,null,function*(){return(0,t.ZP)("/api/shixun_statistics/online_count.json",{method:"Get",params:Ae})}),H=Ae=>d(void 0,null,function*(){return(0,t.ZP)("/api/shixun_statistics/statistics_body.json",{method:"Get",params:Ae})}),j=Ae=>d(void 0,null,function*(){return(0,t.ZP)("/api/shixun_statistics/rank_list.json",{method:"Get",params:Ae})}),F=Ae=>d(void 0,null,function*(){return(0,t.ZP)("/api/shixun_statistics/shixun_use_infos.json",{method:"Get",params:Ae})});function $(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/shixuns.json",{method:"Get",params:p({},Ae)})})}function M(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/disciplines.json",{method:"Get",params:p({source:"shixun"},Ae||{})})})}function Q(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}.json`,{method:"Get",params:Ae})})}function U(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/show_right.json`,{method:"Get"})})}function z(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/challenges.json`,{method:"Get"})})}function Y(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/save_copy_for_exercise.json`,{method:"post",body:{save_type:Ae.save_type}})})}function ee(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/jupyter_exec.json${Ae.reset?`?reset=${Ae.reset}`:""}`,{method:"Get",params:Ae})})}function de(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/shixun_exec.json${Ae.reset?`?reset=${Ae.reset}`:""}`,{method:"Get",params:Ae})})}function me(Ae){return d(this,null,function*(){return(0,t.ZP)(Ae.url,{method:"Get"})})}function _e(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.shixun_identifier}/challenges/${Ae.challenge_id}/index_up.json`,{method:"Get"})})}function be(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.shixun_identifier}/challenges/${Ae.challenge_id}/index_down.json`,{method:"Get"})})}function pt(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/collections/cancel.json",{method:"Delete",body:{container_id:Ae.container_id,container_type:Ae.container_type}})})}function tt(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/collections.json",{method:"Post",body:{container_id:Ae.container_id,container_type:Ae.container_type}})})}function Ot(Ae){return d(this,null,function*(){const{id:Se}=Ae||{};return(0,t.ZP)(`/api/shixuns/${Se}/search_user_courses.json`,{method:"Get",params:Ae})})}function _t(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae==null?void 0:Ae.id}/send_to_course.json`,{method:"Post",body:p({},Ae)})})}function Gt(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/cancel_publish.json`,{method:"Get"})})}function It(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/cancel_apply_public.json`,{method:"Get"})})}function Je(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/apply_public.json`,{method:"post",body:p({},Ae)})})}function Tt(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/publish.json`,{method:"Get"})})}function nr(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/shixuns/jupyter_new.json",{method:"Get"})})}function Nt(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/attachments/${Ae.id}.json`,{method:"delete"})})}function gr(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/shixuns/apply_shixun_mirror.json",{method:"post",body:Ae})})}function Rr(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/shixuns.json",{method:"post",body:Ae})})}function Pr(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/shixuns/jupyter_lab_new.json",{method:"get",params:Ae})})}function at(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/review_newest_record.json`,{method:"Get"})})}function wt(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/review_shixun.json`,{method:"post",body:Ae})})}function dt(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/collaborators.json`,{method:"Get",params:Ae})})}function Ze(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/shixun_members_added.json`,{method:"post",body:Ae})})}function Oe(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.identifier}/add_members_group.json`,{method:"post",body:Ae})})}function ot(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/change_manager.json`,{method:"Get",params:Ae})})}function Et(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/change_manager.json`,{method:"post",body:Ae})})}function ht(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/collaborators_delete.json`,{method:"delete",body:{user_id:Ae.userId}})})}function Ve(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/ranking_list.json`,{method:"Get"})})}function Ct(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/settings.json`,{method:"Get"})})}function ue(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/shixuns/get_mirror_script.json",{method:"Get",params:{mirror_id:Ae.mirror_id}})})}function ke(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/get_script_contents.json`,{method:"Get",params:Ae})})}function We(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/get_custom_script.json`,{method:"Get",params:Ae})})}function Ue(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/update_for_jupyter.json`,{method:"put",body:Ae})})}function Ge(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/shixun_quotes.json`,{method:"Get"})})}function ct(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}.json`,{method:"delete"})})}function Ut(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/close.json`,{method:"post",body:Ae})})}function vt(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/shixuns/departments.json",{method:"Get",params:Ae})})}function Le(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/update_permission_setting.json`,{method:"post",body:Ae})})}function yt(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/update_learn_setting.json`,{method:"post",body:Ae})})}function ut(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/update_setting`,{method:"post",body:Ae})})}function kt(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/get_data_sets.json`,{method:"Get",params:Ae})})}function Xt(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/destroy_data_sets.json`,{method:"Delete",body:{id:Ae.deleteId}})})}function ir(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/challenges/new.json`,{method:"get"})})}function Wr(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.identifier}/challenges.json`,{method:"post",body:p({},Ae)})})}function xn(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/challenges/${Ae.challengeId}/edit.json`,{method:"get",params:{tab:Ae.tab}})})}function Xe(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/challenges/${Ae.challengesId}.json`,{method:"put",body:p({},Ae)})})}function Tr(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/challenges/${Ae.challengesId}/choose_questions.json`,{method:"get"})})}function dn(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/challenges/move_position.json`,{method:"post",body:p({},Ae)})})}function Cn(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/challenges/${Ae.challengesId}.json`,{method:"delete",body:p({},Ae)})})}function Ln(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/challenges/${Ae.challengesId}/edit.json`,{method:"get",params:p({},Ae)})})}function Xn(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/challenges/${Ae.challengeId}/answer.json`,{method:"get",params:p({},Ae)})})}function xa(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/challenges/${Ae.challengeId}/crud_answer.json`,{method:"post",body:p({},Ae)})})}function ye(Ae){return d(this,null,function*(){if(Ae.type===1)return(0,t.ZP)(`/api/shixuns/${Ae.id}/challenges/${Ae.challengesId}/create_choose_question.json`,{method:"post",body:p({},Ae)});if(Ae.type===2)return(0,t.ZP)(`/api/shixuns/${Ae.id}/challenges/${Ae.challengesId}/create_blank_question.json`,{method:"post",body:p({},Ae)});if(Ae.type===3)return(0,t.ZP)(`/api/shixuns/${Ae.id}/challenges/${Ae.challengesId}/create_judge_question.json`,{method:"post",body:p({},Ae)})})}function er(Ae){return d(this,null,function*(){if(Ae.type===1)return(0,t.ZP)(`/api/shixuns/${Ae.id}/challenges/${Ae.challengesId}/update_choose_question.json`,{method:"post",body:h(p({},Ae),{choose_id:Ae.questionId})});if(Ae.type===2)return(0,t.ZP)(`/api/shixuns/${Ae.id}/challenges/${Ae.challengesId}/update_blank_question.json`,{method:"put",body:h(p({},Ae),{choose_id:Ae.questionId})});if(Ae.type===3)return(0,t.ZP)(`/api/shixuns/${Ae.id}/challenges/${Ae.challengesId}/update_judge_question.json`,{method:"put",body:h(p({},Ae),{choose_id:Ae.questionId})})})}function St(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/challenges/${Ae.challengesId}/destroy_challenge_choose.json`,{method:"Delete",body:{choose_id:Ae.questionId}})})}function Pt(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/challenges/${Ae.challengesId}/choose_question_up_position.json`,{method:"post",body:{challenge_choose_id:Ae.questionId}})})}function Wt(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/challenges/${Ae.challengesId}/choose_question_down_position.json`,{method:"post",body:{challenge_choose_id:Ae.questionId}})})}function ur(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/challenges/${Ae.challengesId}/edit_choose_question.json`,{method:"get",params:h(p({},Ae),{choose_id:Ae.questionId})})})}function Er(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/delete_git_file.json`,{method:"Delete",body:Ae})})}function tr(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/sci/projects/${Ae.id}/delete_git_file.json`,{method:"Delete",body:Ae})})}function st(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/mv_file.json`,{method:"post",body:Ae})})}function $t(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/sci/projects/${Ae.id}/mv_file.json`,{method:"post",body:Ae})})}function it(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/repository.json`,{method:"post",body:Ae})})}function Pe(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/sci/projects/${Ae.id}/repository.json`,{method:"post",body:Ae})})}function Ee(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/secret_repository.json`,{method:"post",body:Ae})})}function Te(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/add_file.json`,{method:"post",body:Ae})})}function He(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/sci/projects/${Ae.id}/add_file.json`,{method:"post",body:Ae})})}function jt(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/commits.json`,{method:"post",body:Ae})})}function Zt(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/file_content.json`,{method:"post",body:Ae})})}function cr(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/sci/projects/${Ae.id}/file_content.json`,{method:"post",body:Ae})})}function Ce(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/update_file.json`,{method:"post",body:Ae})})}function Qe(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/sci/projects/${Ae.id}/update_file.json`,{method:"post",body:Ae})})}function Ke(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/upload_git_folder.json`,{method:"post",body:{path:Ae.path,secret_repository:Ae.secret_repository}})})}function ze(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/${Ae.url}`,{method:"Get"})})}function ie(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/jupyters/get_info_with_tpm.json",{method:"Get",params:Ae})})}function Jt(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/jupyters/timeinfo_with_tpm.json",{method:"Get",params:Ae})})}function br(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/jupyters/reset_with_tpm.json",{method:"Get",params:Ae})})}function Yr(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/jupyters/save_with_tpm.json",{method:"Get",params:Ae})})}function Hr(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/jupyters/active_with_tpm.json",{method:"Get",params:Ae})})}function cn(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/fork_list.json`,{method:"Get",params:Ae})})}function wn(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.identifier}/change_editable.json`,{method:"put",body:p({},Ae)})})}function Tn(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/set_secret_dir.json`,{method:"post",body:p({},Ae)})})}function vn(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/shixuns/new.json",{method:"Get",params:Ae})})}function Ht(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/shixuns/environment_info",{method:"Get",params:Ae})})}function Bt(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/init_repository.json`,{method:"post",body:p({},Ae)})})}function mt(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/sci/projects/${Ae.id}/init_repository.json`,{method:"post",body:p({},Ae)})})}function rr(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/update_secret_repository.json`,{method:"post",body:p({},Ae)})})}function ar(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/exist_exercise.json`,{method:"get",params:p({},Ae)})})}function he(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/mirror_applies/${Ae.id}.json`,{method:"get",params:p({},Ae)})})}function Or(Ae){return d(this,null,function*(){return Fetch(`/api/mirror_applies/${Ae.id}/publish.json`,{method:"post",body:p({},Ae)})})}function Nr(Ae){return d(this,null,function*(){return Fetch(`/api/mirror_applies/${Ae.id}/open_vnc.json`,{method:"post",params:p({},Ae)})})}function Gr(Ae){return d(this,null,function*(){return Fetch(`/api/mirror_applies/${Ae.id}/open_webssh.json`,{method:"post",params:p({},Ae)})})}function Vr(Ae){return d(this,null,function*(){return Fetch(`/api/mirror_applies/${Ae.id}/save_image.json`,{method:"post",body:p({},Ae)})})}function zn(Ae){return d(this,null,function*(){return Fetch(`/api/mirror_applies/${Ae.id}/delete_image.json`,{method:"post",body:p({},Ae)})})}function Jn(Ae){return d(this,null,function*(){return Fetch(`/api/mirror_applies/${Ae.id}/extend_vnc.json`,{method:"post",body:p({},Ae)})})}function pn(Ae){return d(this,null,function*(){return Fetch(`/api/mirror_applies/${Ae.id}/reset_vnc_link.json`,{method:"post",body:p({},Ae)})})}function ua(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/paths/get_task_pass.json",{method:"get",params:p({},Ae)})})}function Da(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/jupyters/get_info_with_jupyter_lab.json",{method:"get",params:p({},Ae)})})}function va(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/update_jupyter_lab_setting.json`,{method:"post",body:p({},Ae)})})}function ha(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/shixuns/check_shixun_copy.json",{method:"post",body:Ae})})}function Oa(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/progress_homeworks/${Ae}`,{method:"get",params:{is_initiative_study:1}})})}function Sa(Ae){return d(this,null,function*(){return Fetch(`/api/shixuns/${Ae.id}/update_shixun_study_num.json`,{method:"post",body:p({},Ae)})})}function ma(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/jupyters/preview.json",{method:"get",params:Ae})})}function so(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae}/recommend_config.json`,{method:"get"})})}},34306:function(i,f,e){"use strict";e.d(f,{Bg:function(){return d},FO:function(){return T},eJ:function(){return S},eZ:function(){return C},fd:function(){return N},gp:function(){return p},iU:function(){return k},l3:function(){return x},mw:function(){return O},oZ:function(){return v},rM:function(){return I},r_:function(){return D},s:function(){return h},ur:function(){return R},xV:function(){return g},yb:function(){return E}});var t=e(33170),r=Object.defineProperty,n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(L,q,W)=>q in L?r(L,q,{enumerable:!0,configurable:!0,writable:!0,value:W}):L[q]=W,c=(L,q)=>{for(var W in q||(q={}))a.call(q,W)&&u(L,W,q[W]);if(n)for(var W of n(q))s.call(q,W)&&u(L,W,q[W]);return L},o=(L,q,W)=>new Promise((K,Z)=>{var H=$=>{try{F(W.next($))}catch(M){Z(M)}},j=$=>{try{F(W.throw($))}catch(M){Z(M)}},F=$=>$.done?K($.value):Promise.resolve($.value).then(H,j);F((W=W.apply(L,q)).next())});function p(L){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${L.coursesId}/teachers.json`,{method:"get",params:c({},L)})})}function h(L){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${L.coursesId}/apply_teachers.json`,{method:"get",params:c({},L)})})}function d(L){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${L.coursesId}/graduation_group_list.json`,{method:"get",params:c({},L)})})}function g(L){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${L.coursesId}/all_course_groups.json`,{method:"get",params:c({},L)})})}function v(L){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${L.coursesId}/set_course_group.json`,{method:"post",body:c({},L)})})}function S(L){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${L.coursesId}/join_graduation_group.json`,{method:"post",body:c({},L)})})}function C(L){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${L.coursesId}/create_graduation_group.json`,{method:"post",body:c({},L)})})}function E(L){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${L.coursesId}/delete_course_teacher.json`,{method:"post",body:c({},L)})})}function x(L){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${L.coursesId}/delete_from_course.json`,{method:"post",body:c({},L)})})}function O(L){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${L.coursesId}/change_member_role.json`,{method:"post",body:c({},L)})})}function I(L){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${L.coursesId}/change_course_admin.json`,{method:"post",body:c({},L)})})}function T(L){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${L.coursesId}/teacher_application_review.json`,{method:"post",body:c({},L)})})}function R(L){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${L.coursesId}/students.json`,{method:"get",params:c({},L)})})}function k(L,q){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${L}/apply_students.json`,{method:"get",params:q})})}function D(L,q){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${L}/join_student_checkout.json`,{method:"get",params:q})})}function N(L,q){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${L}/student_application_review.json`,{method:"post",body:q})})}},65900:function(i,f,e){"use strict";e.d(f,{B$:function(){return g},Cx:function(){return H},Cy:function(){return de},DA:function(){return I},DH:function(){return d},Ef:function(){return $},Es:function(){return S},Ex:function(){return _t},FM:function(){return W},Fn:function(){return M},Gq:function(){return It},Ho:function(){return R},IU:function(){return ee},JJ:function(){return Q},Ol:function(){return be},Qx:function(){return q},Tv:function(){return U},V8:function(){return h},WS:function(){return j},WY:function(){return L},ai:function(){return Z},bG:function(){return E},bJ:function(){return p},c0:function(){return Gt},dE:function(){return Y},dt:function(){return z},gI:function(){return F},lO:function(){return K},mW:function(){return N},n0:function(){return O},nV:function(){return _e},o1:function(){return pt},qE:function(){return v},qN:function(){return T},rV:function(){return k},sh:function(){return me},vR:function(){return C},w3:function(){return D},x4:function(){return x},z2:function(){return tt}});var t=e(33170),r=Object.defineProperty,n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(Je,Tt,nr)=>Tt in Je?r(Je,Tt,{enumerable:!0,configurable:!0,writable:!0,value:nr}):Je[Tt]=nr,c=(Je,Tt)=>{for(var nr in Tt||(Tt={}))a.call(Tt,nr)&&u(Je,nr,Tt[nr]);if(n)for(var nr of n(Tt))s.call(Tt,nr)&&u(Je,nr,Tt[nr]);return Je},o=(Je,Tt,nr)=>new Promise((Nt,gr)=>{var Rr=wt=>{try{at(nr.next(wt))}catch(dt){gr(dt)}},Pr=wt=>{try{at(nr.throw(wt))}catch(dt){gr(dt)}},at=wt=>wt.done?Nt(wt.value):Promise.resolve(wt.value).then(Rr,Pr);at((nr=nr.apply(Je,Tt)).next())});const p=Je=>o(void 0,null,function*(){return(0,t.ZP)(`/api/common_comments/${Je.id}/move.json`,{method:"post",body:Je})}),h=Je=>o(void 0,null,function*(){return(0,t.ZP)(`/api/common_comments/${Je.id}.json`,{method:"delete",body:Je})}),d=Je=>o(void 0,null,function*(){return(0,t.ZP)(`/api/common_comments/${Je.id}.json`,{method:"put",body:Je})}),g=Je=>o(void 0,null,function*(){return(0,t.ZP)("/api/common_comments.json",{method:"post",body:Je})}),v=Je=>o(void 0,null,function*(){return(0,t.ZP)("/api/common_comments.json",{method:"Get",params:Je})});function S(Je){return o(this,null,function*(){return(0,t.ZP)("/api/accounts/login.json",{method:"post",body:c({},Je)})})}function C(Je){return o(this,null,function*(){return(0,t.ZP)("/api/accounts/logout.json",{method:"get"})})}function E(Je){return o(this,null,function*(){return(0,t.ZP)("/api/users/get_user_info.json",{method:"get",params:c({},Je)})})}function x(Je){return o(this,null,function*(){return(0,t.ZP)("/api/users/get_notice.json",{method:"get",params:c({},Je)})})}function O(){return o(this,null,function*(){return(0,t.ZP)("/api/users/system_update.json",{method:"get"})})}function I(Je){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${Je.username}/homepage_info.json`,{method:"get"})})}function T(Je){return o(this,null,function*(){return(0,t.ZP)("/api/users/attendance.json",{method:"post"})})}function R(Je){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${Je.username}/courses.json`,{method:"get",params:Je})})}function k(Je){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${Je.username}/shixuns.json`,{method:"get",params:Je})})}function D(Je){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${Je.username}/subjects.json`,{method:"get",params:Je})})}function N(Je){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${Je.username}/projects.json`,{method:"get",params:Je})})}function L(Je){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${Je.username}/videos.json`,{method:"get",params:Je})})}function q(Je){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${Je.username}/videos/review.json`,{method:"get",params:Je})})}function W(Je){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${Je.username}/videos/${Je.id}.json`,{method:"delete"})})}function K(Je){return o(this,null,function*(){return(0,t.ZP)("/api/watch_video_histories.json",{method:"post",body:Je})})}function Z(Je){return o(this,null,function*(){return(0,t.ZP)("/api/users/question_banks.json",{method:"get",params:Je})})}function H(Je){return o(this,null,function*(){return(0,t.ZP)("/api/question_banks/multi_public.json",{method:"post",body:Je})})}function j(Je){return o(this,null,function*(){return(0,t.ZP)("/api/question_banks/multi_delete.json",{method:"delete",body:Je})})}function F(Je){return o(this,null,function*(){return(0,t.ZP)("/api/question_banks/my_courses.json",{method:"get",params:Je})})}function $(Je){return o(this,null,function*(){return(0,t.ZP)("/api/question_banks/send_to_course.json",{method:"post",body:Je})})}function M(Je){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${Je.username}/videos/${Je.object_id}/create_course_video.json`,{method:"post",body:Je})})}function Q(Je){return o(this,null,function*(){return(0,t.ZP)(`/api/homework_banks/${Je.topicId}.json`,{method:"get",params:Je})})}function U(Je){return o(this,null,function*(){return(0,t.ZP)("/api/question_banks/multi_delete.json",{method:"delete",body:c({},Je)})})}function z(Je){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${Je.username}/videos/batch_publish.json`,{method:"post",body:Je})})}function Y(Je){return o(this,null,function*(){return(0,t.ZP)(`/api/myshixuns/${Je.identifier}/cancel.json`,{method:"delete",body:c({},Je)})})}function ee(){return o(this,null,function*(){return(0,t.ZP)("/api/users/get_engineer_url.json",{method:"get"})})}function de(Je){return o(this,null,function*(){return(0,t.ZP)("/api/intelligent_recommendations/user_choice_learn_path.json",{method:"post",body:c({},Je)})})}function me(){return o(this,null,function*(){return(0,t.ZP)("/api/intelligent_recommendations/persona.json",{method:"get"})})}function _e(){return o(this,null,function*(){return(0,t.ZP)("/api/intelligent_recommendations/user_learn_path.json",{method:"get"})})}function be(Je){return(0,t.ZP)("/api/accounts/valid_email_and_phone.json",{method:"get",params:Je})}function pt(Je){return(0,t.ZP)("/api/accounts/get_verification_code.json",{method:"get",params:Je})}function tt(Je){return(0,t.ZP)("/api/accounts/register.json",{method:"post",body:c({},Je)})}function Ot(Je){return Fetch("/api/weapps/register.json",{method:"post",body:c({},Je)})}function _t(Je){return(0,t.ZP)(`/api/users/accounts/${Je.login}/password.json`,{method:"put",body:c({},Je)})}function Gt(Je){return(0,t.ZP)("/api/accounts/reset_password.json",{method:"post",body:c({},Je)})}function It(Je){return(0,t.ZP)("/api/accounts/login_for_phone.json",{method:"get",params:c({},Je)})}},56188:function(i,f,e){"use strict";e.d(f,{BQ:function(){return p},DH:function(){return R},Db:function(){return K},Ju:function(){return W},Mz:function(){return N},O2:function(){return v},TJ:function(){return E},Vg:function(){return g},ZY:function(){return h},Zx:function(){return D},cU:function(){return d},fn:function(){return q},jK:function(){return x},yN:function(){return L}});var t=e(33170),r=Object.defineProperty,n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(Z,H,j)=>H in Z?r(Z,H,{enumerable:!0,configurable:!0,writable:!0,value:j}):Z[H]=j,c=(Z,H)=>{for(var j in H||(H={}))a.call(H,j)&&u(Z,j,H[j]);if(n)for(var j of n(H))s.call(H,j)&&u(Z,j,H[j]);return Z},o=(Z,H,j)=>new Promise((F,$)=>{var M=z=>{try{U(j.next(z))}catch(Y){$(Y)}},Q=z=>{try{U(j.throw(z))}catch(Y){$(Y)}},U=z=>z.done?F(z.value):Promise.resolve(z.value).then(M,Q);U((j=j.apply(Z,H)).next())});function p(Z){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${Z.coursesId}/watch_video_histories.json`,{method:"Get",params:c({},Z)})})}function h(Z){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${Z.coursesId}/watch_statics.json`,{method:"Get",params:c({},Z)})})}function d(Z){return o(this,null,function*(){return(0,t.ZP)(`/api/course_videos/${Z.videoId}/watch_histories.json`,{method:"Get",params:c({},Z)})})}function g(Z){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${Z.coursesId}/own_watch_histories.json`,{method:"Get",params:c({},Z)})})}function v(Z){return o(this,null,function*(){return(0,t.ZP)(`/api/video_items/${Z.id}.json`,{method:"Get",params:c({},Z)})})}function S(Z){return o(this,null,function*(){return Fetch("/api/video_items.json",{method:"post",body:Z})})}function C(Z){return o(this,null,function*(){return Fetch(`/api/video_items/${Z.id}/edit.json`,{method:"Get",params:c({},Z)})})}function E(Z){return o(this,null,function*(){return(0,t.ZP)(`/api/stage_shixuns/${Z.id}/edit.json`,{method:"Get",params:c({},Z)})})}function x(Z){return o(this,null,function*(){return(0,t.ZP)(`/api/video_items/${Z.id}/star.json`,{method:"post",body:Z})})}function O(Z){return o(this,null,function*(){return Fetch(`/api/video_items/${Z.id}.json`,{method:"put",body:Z})})}function I(Z){return o(this,null,function*(){return Fetch(`/api/video_items/${Z.id}/send_to_course.json`,{method:"post",body:Z})})}function T(Z){return o(this,null,function*(){return Fetch("/api/users/my_courses.json",{method:"Get",params:c({},Z)})})}function R(Z){return o(this,null,function*(){return(0,t.ZP)(`/api/video_items/${Z.id}/view_video.json`,{method:"post",body:Z})})}function k(Z){return o(this,null,function*(){return Fetch(`/api/video_items/${Z.id}/add_school.json`,{method:"post",body:Z})})}function D(Z){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${Z.course_id}/video_people_statics.json`,{method:"get",params:Z})})}function N(Z){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${Z.course_id}/video_duration_statics.json`,{method:"get",params:Z})})}function L(Z){return o(this,null,function*(){return(0,t.ZP)("/api/stages.json",{method:"get",params:Z})})}function q(Z){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${Z==null?void 0:Z.id}/course_videos_tree.json`,{method:"get",params:Z})})}function W(Z){return o(this,null,function*(){return(0,t.ZP)("/api/study_action_analyses.json",{method:"post",body:Z})})}function K(Z){return o(this,null,function*(){return(0,t.ZP)("/api/study_action_analyses/detail.json",{method:"post",body:Z})})}},69237:function(i,f,e){"use strict";e.d(f,{A:function(){return N},CH:function(){return a},EA:function(){return c},FU:function(){return h},G_:function(){return v},LY:function(){return T},Ll:function(){return u},MM:function(){return x},Ps:function(){return R},Sl:function(){return C},To:function(){return d},Vf:function(){return g},XQ:function(){return s},b:function(){return p},bq:function(){return D},cZ:function(){return o},rV:function(){return I},sT:function(){return S},tS:function(){return k},xt:function(){return O},y2:function(){return n}});var t=e(33170),r=(L,q,W)=>new Promise((K,Z)=>{var H=$=>{try{F(W.next($))}catch(M){Z(M)}},j=$=>{try{F(W.throw($))}catch(M){Z(M)}},F=$=>$.done?K($.value):Promise.resolve($.value).then(H,j);F((W=W.apply(L,q)).next())});const n=L=>r(void 0,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L.virtual_spacesId}/base_statistic_data.json`,{method:"Get",params:L})});function a(L){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L.virtual_spacesId}/discussions/${L.id}.json`,{method:"put",body:L})})}function s(L){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L.virtual_spacesId}/discussions/${L.id}.json`,{method:"get",params:L})})}function u(L){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L.virtual_spacesId}/discussions.json`,{method:"post",body:L})})}function c(L){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L.virtual_spacesId}/discussions.json`,{method:"get",params:L})})}function o(L){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L.virtual_spacesId}/good_lessons/${L.id}/add_resources.json`,{method:"post",body:L})})}function p(L){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L.virtual_spacesId}/good_lessons/${L.id}/lesson_resources_list.json`,{method:"get",params:L})})}function h(L){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L.virtual_spacesId}/good_lessons/${L.id}.json`,{method:"get",params:L})})}function d(L){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L.virtual_spacesId}/good_lessons/${L.id}.json`,{method:"put",body:L})})}function g(L){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L.virtual_spacesId}/good_lessons.json`,{method:"post",body:L})})}function v(L){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L.virtual_spacesId}/good_lessons.json`,{method:"get",params:L})})}function S(L){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L==null?void 0:L.id}.json`,{method:"get"})})}function C(L){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L==null?void 0:L.id}/modules.json`,{method:"get"})})}function E(L){return r(this,null,function*(){return Fetch(`/api/virtual_classrooms/${L.id}/videos/batch_publish.json`,{method:"post",body:L})})}function x(L){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L.virtual_spacesId}/members.json`,{method:"post",body:L})})}function O(L){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L.virtual_spacesId}/members/${L.id}/change_creator.json`,{method:"post",body:L})})}function I(L,q){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L}/shixuns.json`,{method:"get",params:q})})}function T(L,q){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L}/shixuns`,{method:"post",body:q})})}function R(L){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L.virtual_classroom_id}/shixuns/${L.shixun_id}.json`,{method:"delete"})})}function k(L,q){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L}/subjects.json`,{method:"get",params:q})})}function D(L,q){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L}/subjects.json`,{method:"post",body:q})})}function N(L){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L.virtual_classroom_id}/subjects/${L.subject_id}.json`,{method:"delete"})})}},52262:function(i,f,e){"use strict";e.d(f,{$O:function(){return H},G5:function(){return D},GD:function(){return r},GJ:function(){return h},Gg:function(){return d},I2:function(){return s},IR:function(){return L},JA:function(){return Et},JL:function(){return O},Jd:function(){return Z},Ny:function(){return E},RV:function(){return W},Rb:function(){return k},Rm:function(){return N},V9:function(){return Y},Yh:function(){return Q},aN:function(){return S},aQ:function(){return o},ag:function(){return ot},bg:function(){return Ct},d8:function(){return R},dE:function(){return q},eB:function(){return K},eY:function(){return ue},fn:function(){return Oe},h:function(){return Ut},j5:function(){return v},m$:function(){return ke},oF:function(){return g},qz:function(){return c},t_:function(){return C},tu:function(){return Ue},y8:function(){return Ve}});var t=e(35973),r=(vt=>(vt[vt.SuperAdmin=1]="SuperAdmin",vt[vt.Operation=2]="Operation",vt[vt.CertifiedTeacher=5]="CertifiedTeacher",vt[vt.TrainingProduction=8]="TrainingProduction",vt[vt.UncertifiedTeacher=12]="UncertifiedTeacher",vt[vt.Student=15]="Student",vt))(r||{}),n=(vt=>(vt[vt.SuperAdmin=1]="SuperAdmin",vt[vt.Operation=2]="Operation",vt[vt.Admin=5]="Admin",vt[vt.Teacher=8]="Teacher",vt[vt.Assistant=12]="Assistant",vt[vt.Student=15]="Student",vt))(n||{}),a=(vt=>(vt[vt.SuperAdmin=0]="SuperAdmin",vt[vt.Teacher=1]="Teacher",vt[vt.Student=2]="Student",vt))(a||{});const s=vt=>{const{user:Le}=(0,t.getDvaApp)()._store.getState(),{userInfo:yt}=Le;return vt.some(ut=>ut==(yt==null?void 0:yt.role))},u=vt=>{const{user:Le}=(0,t.getDvaApp)()._store.getState(),{userInfo:yt}=Le;return yt!=null&&yt.own?!0:vt.some(ut=>{var kt;return ut==((kt=yt==null?void 0:yt.course)==null?void 0:kt.course_role)})},c=()=>{const{user:vt}=(0,t.getDvaApp)()._store.getState(),{userInfo:Le}=vt;return Le.main_site},o=()=>{var vt;const{user:Le}=(0,t.getDvaApp)()._store.getState(),{userInfo:yt}=Le;return(vt=yt==null?void 0:yt.course)==null?void 0:vt.course_is_end},p=()=>{const{user:vt}=getDvaApp()._store.getState(),{userInfo:Le}=vt;return Le.authentication},h=()=>u([1,2,5,8,12]),d=()=>u([1,8,5,12,2]),g=()=>u([1,8,5]),v=()=>u([1]),S=()=>u([1,2,5]),C=()=>u([1,2]),E=()=>s([1,2]),x=()=>s([1]),O=()=>s([1,2,5]),I=()=>u([1,5]),T=()=>u([5,8]),R=()=>u([5]),k=()=>u([1,5,2]),D=()=>u([1,2,5,8]),N=()=>u([12]),L=()=>u([8]),q=()=>u([15]),W=()=>u([1,2,5,8,12,15]),K=()=>u([1,2,5,8,12]),Z=()=>{var vt;const{user:Le}=(0,t.getDvaApp)()._store.getState(),{userInfo:yt}=Le;return((vt=yt==null?void 0:yt.course)==null?void 0:vt.course_role)===null},H=()=>{const{user:vt}=(0,t.getDvaApp)()._store.getState(),{userInfo:Le}=vt;return Le==null?void 0:Le.has_big_model_permission},j=()=>{const{user:vt}=getDvaApp()._store.getState(),{userInfo:Le}=vt;return Le==null?void 0:Le.big_model_user_unlimited},F=(vt=!0,Le=!1)=>s([1,2,5,8,12,15]),$=(vt=!0,Le=!1)=>Le||!Le&&s([1]),M=(vt=!0,Le=!1)=>Le||!Le&&s([1,2]),Q=()=>s([15]),U=(vt=!0,Le=!1)=>vt?s([1,2,5,8,12,15]):Le||!Le&&s([1,2]),z=(vt=!0,Le=!1)=>vt?s([1,2,5,8,12,15]):Le||!Le&&s([1,2]),Y=(vt=!0,Le=!1)=>{const{user:yt}=(0,t.getDvaApp)()._store.getState(),{userInfo:ut}=yt;return ut!=null&&ut.is_shixun_marker?!0:s([1,2,5,8])},ee=(vt=!0,Le=!1)=>vt?s([1]):Le||!Le&&s([1]),de=(vt=!0,Le=!1)=>vt?s([1,2]):Le||!Le&&s([1,2]),me=(vt=!0,Le=!1)=>vt?s([1,2,5,8,12,15]):Le||!Le&&s([1,2]),_e=(vt=!0,Le=!1)=>vt?s([1,2,5,8,12]):Le||!Le&&s([1,2]),be=(vt=!0,Le=!1)=>vt?s([1,2,5]):Le||!Le&&s([1,2]),pt=(vt=!0,Le=!1)=>vt?s([1]):!1,tt=(vt=!0,Le=!1)=>s([1,2,5,8,12,15]),Ot=(vt=!0,Le=!1)=>vt?s([1]):Le||!Le&&s([1]),_t=(vt=!0,Le=!1)=>vt?s([1,2]):Le||!Le&&s([1,2]),Gt=(vt=!0,Le=!1)=>vt?s([1,2,5,8,12,15]):Le||!Le&&s([1,2]),It=(vt=!0,Le=!1)=>vt?!1:Le||!Le&&s([1,2]),Je=(vt=!0,Le=!1)=>vt?Le||!Le&&s([1,2]):!1,Tt=(vt=!0,Le=!1)=>vt?s([1,2,5,8,12]):!1,nr=(vt=!0,Le=!1)=>vt?!Le&&s([1,2,5,8,12]):!1,Nt=(vt=!0,Le=!1)=>vt?s([1,2,5]):Le||!Le&&s([1,2]),gr=(vt=!0,Le=!1)=>s([1,2,5,8,12]),Rr=(vt=!0,Le=!1)=>vt?s([1]):Le||!Le&&s([1]),Pr=(vt=!0,Le=!1)=>vt?s([1,2]):Le||!Le&&s([1,2]),at=(vt=!0,Le=!1)=>vt?s([1,2,5,8,12]):Le||!Le&&s([1,2]),wt=(vt=!0,Le=!1)=>vt?Le||!Le&&s([1,2]):!1,dt=(vt=!0,Le=!1)=>vt?s([1,2,5,8,12]):Le||!Le&&s([1,2]),Ze=(vt=!0,Le=!1)=>u([8]),Oe=()=>s([1]),ot=()=>s([1,2]),Et=()=>s([15]),ht=()=>s([1,2,5]),Ve=()=>s([1,2,5,12]),Ct=()=>{var vt;const{user:Le}=(0,t.getDvaApp)()._store.getState();return!!((vt=Le.userInfo)!=null&&vt.login)},ue=()=>{const{user:vt}=(0,t.getDvaApp)()._store.getState();return vt.userInfo},ke=()=>{var vt,Le;const{user:yt}=(0,t.getDvaApp)()._store.getState();return!!((Le=(vt=yt.userInfo)==null?void 0:vt.path)!=null&&Le.own)},We=vt=>{const{graduations:Le}=(0,t.getDvaApp)()._store.getState(),{details:yt}=Le;return vt.some(ut=>ut===(yt==null?void 0:yt.user_identity))},Ue=()=>We([0,1]),Ge=()=>We([0]),ct=()=>We([1]),Ut=()=>We([2])},52810:function(i,f,e){"use strict";e.d(f,{a2:function(){return a},fw:function(){return t},gW:function(){return n},k:function(){return s},k4:function(){return r}});const t=[{id:0,name:"\u5355\u9009\u9898",nameType:"SINGLE"},{id:1,name:"\u591A\u9009\u9898",nameType:"MULTIPLE"},{id:2,name:"\u5224\u65AD\u9898",nameType:"JUDGMENT"},{id:3,name:"\u586B\u7A7A\u9898",nameType:"COMPLETION"},{id:4,name:"\u7B80\u7B54\u9898",nameType:"SUBJECTIVE"},{id:5,name:"\u5B9E\u8BAD\u9898",nameType:"PRACTICAL"},{id:6,name:"\u7F16\u7A0B\u9898",nameType:"PROGRAM"},{id:7,name:"\u7EC4\u5408\u9898",nameType:"COMBINATION"},{id:8,name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",nameType:"BPROGRAM"}],r=["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"];var n=(u=>(u.PROBLEM="problem",u.PAPER="paper",u.OTHER="other",u))(n||{}),a=(u=>(u.SINGLE="single",u.MULTIPLEFLOW="multiple_flow",u.MULTIPLEFIXED="multiple_fixed",u.OTHER="other",u))(a||{}),s=(u=>(u[u.BISHI=1]="BISHI",u[u.JISHI=2]="JISHI",u[u.KOUSHI=3]="KOUSHI",u[u.OTHER=4]="OTHER",u))(s||{})},36720:function(i,f,e){"use strict";e.d(f,{F:function(){return t}});const t={load:"text/html",123:"application/vndlotus-1-2-3","3ds":"image/x-3ds","3g2":"video/3gpp","3ga":"video/3gpp","3gp":"video/3gpp","3gpp":"video/3gpp",602:"application/x-t602",669:"audio/x-mod","7z":"application/x-7z-compressed",a:"application/x-archive",aac:"audio/mp4",abw:"application/x-abiword",abwcrashed:"application/x-abiword",abwgz:"application/x-abiword",ac3:"audio/ac3",ace:"application/x-ace",adb:"text/x-adasrc",ads:"text/x-adasrc",afm:"application/x-font-afm",ag:"image/x-applix-graphics",ai:"application/illustrator",aif:"audio/x-aiff",aifc:"audio/x-aiff",aiff:"audio/x-aiff",al:"application/x-perl",alz:"application/x-alz",amr:"audio/amr",ani:"application/x-navi-animation","anim[1-9j]":"video/x-anim",anx:"application/annodex",ape:"audio/x-ape",arj:"application/x-arj",arw:"image/x-sony-arw",as:"application/x-applix-spreadsheet",asc:"text/plain",asf:"video/x-ms-asf",asp:"application/x-asp",ass:"text/x-ssa",asx:"audio/x-ms-asx",atom:"application/atom+xml",au:"audio/basic",avi:"video/x-msvideo",aw:"application/x-applix-word",awb:"audio/amr-wb",awk:"application/x-awk",axa:"audio/annodex",axv:"video/annodex",bak:"application/x-trash",bcpio:"application/x-bcpio",bdf:"application/x-font-bdf",bib:"text/x-bibtex",bin:"application/octet-stream",blend:"application/x-blender",blender:"application/x-blender",bmp:"image/bmp",bz:"application/x-bzip",bz2:"application/x-bzip",c:"text/x-csrc","c++":"text/x-c++src",cab:"application/vndms-cab-compressed",cb7:"application/x-cb7",cbr:"application/x-cbr",cbt:"application/x-cbt",cbz:"application/x-cbz",cc:"text/x-c++src",cdf:"application/x-netcdf",cdr:"application/vndcorel-draw",cer:"application/x-x509-ca-cert",cert:"application/x-x509-ca-cert",cgm:"image/cgm",chm:"application/x-chm",chrt:"application/x-kchart",class:"application/x-java",cls:"text/x-tex",cmake:"text/x-cmake",cpio:"application/x-cpio",cpiogz:"application/x-cpio-compressed",cpp:"text/x-c++src",cr2:"image/x-canon-cr2",crt:"application/x-x509-ca-cert",crw:"image/x-canon-crw",cs:"text/x-csharp",csh:"application/x-csh",css:"text/css",cssl:"text/css",csv:"text/csv",cue:"application/x-cue",cur:"image/x-win-bitmap",cxx:"text/x-c++src",d:"text/x-dsrc",dar:"application/x-dar",dbf:"application/x-dbf",dc:"application/x-dc-rom",dcl:"text/x-dcl",dcm:"application/dicom",dcr:"image/x-kodak-dcr",dds:"image/x-dds",deb:"application/x-deb",der:"application/x-x509-ca-cert",desktop:"application/x-desktop",dia:"application/x-dia-diagram",diff:"text/x-patch",divx:"video/x-msvideo",djv:"image/vnddjvu",djvu:"image/vnddjvu",dng:"image/x-adobe-dng",doc:"application/msword",docbook:"application/docbook+xml",docm:"application/vndopenxmlformats-officedocumentwordprocessingmldocument",docx:"application/vndopenxmlformats-officedocumentwordprocessingmldocument",dot:"text/vndgraphviz",dsl:"text/x-dsl",dtd:"application/xml-dtd",dtx:"text/x-tex",dv:"video/dv",dvi:"application/x-dvi",dvibz2:"application/x-bzdvi",dvigz:"application/x-gzdvi",dwg:"image/vnddwg",dxf:"image/vnddxf",e:"text/x-eiffel",egon:"application/x-egon",eif:"text/x-eiffel",el:"text/x-emacs-lisp",emf:"image/x-emf",emp:"application/vndemusic-emusic_package",ent:"application/xml-external-parsed-entity",eps:"image/x-eps",epsbz2:"image/x-bzeps",epsgz:"image/x-gzeps",epsf:"image/x-eps",epsfbz2:"image/x-bzeps",epsfgz:"image/x-gzeps",epsi:"image/x-eps",epsibz2:"image/x-bzeps",epsigz:"image/x-gzeps",epub:"application/epub+zip",erl:"text/x-erlang",es:"application/ecmascript",etheme:"application/x-e-theme",etx:"text/x-setext",exe:"application/x-ms-dos-executable",exr:"image/x-exr",ez:"application/andrew-inset",f:"text/x-fortran",f90:"text/x-fortran",f95:"text/x-fortran",fb2:"application/x-fictionbook+xml",fig:"image/x-xfig",fits:"image/fits",fl:"application/x-fluid",flac:"audio/x-flac",flc:"video/x-flic",fli:"video/x-flic",flv:"video/x-flv",flw:"application/x-kivio",fo:"text/x-xslfo",for:"text/x-fortran",g3:"image/fax-g3",gb:"application/x-gameboy-rom",gba:"application/x-gba-rom",gcrd:"text/directory",ged:"application/x-gedcom",gedcom:"application/x-gedcom",gen:"application/x-genesis-rom",gf:"application/x-tex-gf",gg:"application/x-sms-rom",gif:"image/gif",glade:"application/x-glade",gmo:"application/x-gettext-translation",gnc:"application/x-gnucash",gnd:"application/gnunet-directory",gnucash:"application/x-gnucash",gnumeric:"application/x-gnumeric",gnuplot:"application/x-gnuplot",gp:"application/x-gnuplot",gpg:"application/pgp-encrypted",gplt:"application/x-gnuplot",gra:"application/x-graphite",gsf:"application/x-font-type1",gsm:"audio/x-gsm",gtar:"application/x-tar",gv:"text/vndgraphviz",gvp:"text/x-google-video-pointer",gz:"application/x-gzip",h:"text/x-chdr","h++":"text/x-c++hdr",hdf:"application/x-hdf",hh:"text/x-c++hdr",hp:"text/x-c++hdr",hpgl:"application/vndhp-hpgl",hpp:"text/x-c++hdr",hs:"text/x-haskell",htm:"text/html",html:"text/html",hwp:"application/x-hwp",hwt:"application/x-hwt",hxx:"text/x-c++hdr",ica:"application/x-ica",icb:"image/x-tga",icns:"image/x-icns",ico:"image/vndmicrosofticon",ics:"text/calendar",idl:"text/x-idl",ief:"image/ief",iff:"image/x-iff",ilbm:"image/x-ilbm",ime:"text/x-imelody",imy:"text/x-imelody",ins:"text/x-tex",iptables:"text/x-iptables",iso:"application/x-cd-image",iso9660:"application/x-cd-image",it:"audio/x-it",j2k:"image/jp2",jad:"text/vndsunj2meapp-descriptor",jar:"application/x-java-archive",java:"text/x-java",jng:"image/x-jng",jnlp:"application/x-java-jnlp-file",jp2:"image/jp2",jpc:"image/jp2",jpe:"image/jpeg",jpeg:"image/jpeg",jpf:"image/jp2",jpg:"image/jpeg",jpr:"application/x-jbuilder-project",jpx:"image/jp2",js:"application/javascript",json:"application/json",jsonp:"application/jsonp",k25:"image/x-kodak-k25",kar:"audio/midi",karbon:"application/x-karbon",kdc:"image/x-kodak-kdc",kdelnk:"application/x-desktop",kexi:"application/x-kexiproject-sqlite3",kexic:"application/x-kexi-connectiondata",kexis:"application/x-kexiproject-shortcut",kfo:"application/x-kformula",kil:"application/x-killustrator",kino:"application/smil",kml:"application/vndgoogle-earthkml+xml",kmz:"application/vndgoogle-earthkmz",kon:"application/x-kontour",kpm:"application/x-kpovmodeler",kpr:"application/x-kpresenter",kpt:"application/x-kpresenter",kra:"application/x-krita",ksp:"application/x-kspread",kud:"application/x-kugar",kwd:"application/x-kword",kwt:"application/x-kword",la:"application/x-shared-library-la",latex:"text/x-tex",ldif:"text/x-ldif",lha:"application/x-lha",lhs:"text/x-literate-haskell",lhz:"application/x-lhz",log:"text/x-log",ltx:"text/x-tex",lua:"text/x-lua",lwo:"image/x-lwo",lwob:"image/x-lwo",lws:"image/x-lws",ly:"text/x-lilypond",lyx:"application/x-lyx",lz:"application/x-lzip",lzh:"application/x-lha",lzma:"application/x-lzma",lzo:"application/x-lzop",m:"text/x-matlab",m15:"audio/x-mod",m2t:"video/mpeg",m3u:"audio/x-mpegurl",m3u8:"audio/x-mpegurl",m4:"application/x-m4",m4a:"audio/mp4",m4b:"audio/x-m4b",m4v:"video/mp4",mab:"application/x-markaby",man:"application/x-troff-man",mbox:"application/mbox",md:"application/x-genesis-rom",mdb:"application/vndms-access",mdi:"image/vndms-modi",me:"text/x-troff-me",med:"audio/x-mod",metalink:"application/metalink+xml",mgp:"application/x-magicpoint",mid:"audio/midi",midi:"audio/midi",mif:"application/x-mif",minipsf:"audio/x-minipsf",mka:"audio/x-matroska",mkv:"video/x-matroska",ml:"text/x-ocaml",mli:"text/x-ocaml",mm:"text/x-troff-mm",mmf:"application/x-smaf",mml:"text/mathml",mng:"video/x-mng",mo:"application/x-gettext-translation",mo3:"audio/x-mo3",moc:"text/x-moc",mod:"audio/x-mod",mof:"text/x-mof",moov:"video/quicktime",mov:"video/quicktime",movie:"video/x-sgi-movie","mp+":"audio/x-musepack",mp2:"video/mpeg",mp3:"audio/mpeg",mp4:"video/mp4",mpc:"audio/x-musepack",mpe:"video/mpeg",mpeg:"video/mpeg",mpg:"video/mpeg",mpga:"audio/mpeg",mpp:"audio/x-musepack",mrl:"text/x-mrml",mrml:"text/x-mrml",mrw:"image/x-minolta-mrw",ms:"text/x-troff-ms",msi:"application/x-msi",msod:"image/x-msod",msx:"application/x-msx-rom",mtm:"audio/x-mod",mup:"text/x-mup",mxf:"application/mxf",n64:"application/x-n64-rom",nb:"application/mathematica",nc:"application/x-netcdf",nds:"application/x-nintendo-ds-rom",nef:"image/x-nikon-nef",nes:"application/x-nes-rom",nfo:"text/x-nfo",not:"text/x-mup",nsc:"application/x-netshow-channel",nsv:"video/x-nsv",o:"application/x-object",obj:"application/x-tgif",ocl:"text/x-ocl",oda:"application/oda",odb:"application/vndoasisopendocumentdatabase",odc:"application/vndoasisopendocumentchart",odf:"application/vndoasisopendocumentformula",odg:"application/vndoasisopendocumentgraphics",odi:"application/vndoasisopendocumentimage",odm:"application/vndoasisopendocumenttext-master",odp:"application/vndoasisopendocumentpresentation",ods:"application/vndoasisopendocumentspreadsheet",odt:"application/vndoasisopendocumenttext",oga:"audio/ogg",ogg:"video/x-theora+ogg",ogm:"video/x-ogm+ogg",ogv:"video/ogg",ogx:"application/ogg",old:"application/x-trash",oleo:"application/x-oleo",opml:"text/x-opml+xml",ora:"image/openraster",orf:"image/x-olympus-orf",otc:"application/vndoasisopendocumentchart-template",otf:"application/x-font-otf",otg:"application/vndoasisopendocumentgraphics-template",oth:"application/vndoasisopendocumenttext-web",otp:"application/vndoasisopendocumentpresentation-template",ots:"application/vndoasisopendocumentspreadsheet-template",ott:"application/vndoasisopendocumenttext-template",owl:"application/rdf+xml",oxt:"application/vndopenofficeorgextension",p:"text/x-pascal",p10:"application/pkcs10",p12:"application/x-pkcs12",p7b:"application/x-pkcs7-certificates",p7s:"application/pkcs7-signature",pack:"application/x-java-pack200",pak:"application/x-pak",par2:"application/x-par2",pas:"text/x-pascal",patch:"text/x-patch",pbm:"image/x-portable-bitmap",pcd:"image/x-photo-cd",pcf:"application/x-cisco-vpn-settings",pcfgz:"application/x-font-pcf",pcfz:"application/x-font-pcf",pcl:"application/vndhp-pcl",pcx:"image/x-pcx",pdb:"chemical/x-pdb",pdc:"application/x-aportisdoc",pdf:"application/pdf",pdfbz2:"application/x-bzpdf",pdfgz:"application/x-gzpdf",pef:"image/x-pentax-pef",pem:"application/x-x509-ca-cert",perl:"application/x-perl",pfa:"application/x-font-type1",pfb:"application/x-font-type1",pfx:"application/x-pkcs12",pgm:"image/x-portable-graymap",pgn:"application/x-chess-pgn",pgp:"application/pgp-encrypted",php:"application/x-php",php3:"application/x-php",php4:"application/x-php",pict:"image/x-pict",pict1:"image/x-pict",pict2:"image/x-pict",pickle:"application/python-pickle",pk:"application/x-tex-pk",pkipath:"application/pkix-pkipath",pkr:"application/pgp-keys",pl:"application/x-perl",pla:"audio/x-iriver-pla",pln:"application/x-planperfect",pls:"audio/x-scpls",pm:"application/x-perl",png:"image/png",pnm:"image/x-portable-anymap",pntg:"image/x-macpaint",po:"text/x-gettext-translation",por:"application/x-spss-por",pot:"text/x-gettext-translation-template",ppm:"image/x-portable-pixmap",pps:"application/vndms-powerpoint",ppt:"application/vndms-powerpoint",pptm:"application/vndopenxmlformats-officedocumentpresentationmlpresentation",pptx:"application/vndopenxmlformats-officedocumentpresentationmlpresentation",ppz:"application/vndms-powerpoint",prc:"application/x-palm-database",ps:"application/postscript",psbz2:"application/x-bzpostscript",psgz:"application/x-gzpostscript",psd:"image/vndadobephotoshop",psf:"audio/x-psf",psfgz:"application/x-gz-font-linux-psf",psflib:"audio/x-psflib",psid:"audio/prssid",psw:"application/x-pocket-word",pw:"application/x-pw",py:"text/x-python",pyc:"application/x-python-bytecode",pyo:"application/x-python-bytecode",qif:"image/x-quicktime",qt:"video/quicktime",qtif:"image/x-quicktime",qtl:"application/x-quicktime-media-link",qtvr:"video/quicktime",ra:"audio/vndrn-realaudio",raf:"image/x-fuji-raf",ram:"application/ram",rar:"application/x-rar",ras:"image/x-cmu-raster",raw:"image/x-panasonic-raw",rax:"audio/vndrn-realaudio",rb:"application/x-ruby",rdf:"application/rdf+xml",rdfs:"application/rdf+xml",reg:"text/x-ms-regedit",rej:"application/x-reject",rgb:"image/x-rgb",rle:"image/rle",rm:"application/vndrn-realmedia",rmj:"application/vndrn-realmedia",rmm:"application/vndrn-realmedia",rms:"application/vndrn-realmedia",rmvb:"application/vndrn-realmedia",rmx:"application/vndrn-realmedia",roff:"text/troff",rp:"image/vndrn-realpix",rpm:"application/x-rpm",rss:"application/rss+xml",rt:"text/vndrn-realtext",rtf:"application/rtf",rtx:"text/richtext",rv:"video/vndrn-realvideo",rvx:"video/vndrn-realvideo",s3m:"audio/x-s3m",sam:"application/x-amipro",sami:"application/x-sami",sav:"application/x-spss-sav",scm:"text/x-scheme",sda:"application/vndstardivisiondraw",sdc:"application/vndstardivisioncalc",sdd:"application/vndstardivisionimpress",sdp:"application/sdp",sds:"application/vndstardivisionchart",sdw:"application/vndstardivisionwriter",sgf:"application/x-go-sgf",sgi:"image/x-sgi",sgl:"application/vndstardivisionwriter",sgm:"text/sgml",sgml:"text/sgml",sh:"application/x-shellscript",shar:"application/x-shar",shn:"application/x-shorten",siag:"application/x-siag",sid:"audio/prssid",sik:"application/x-trash",sis:"application/vndsymbianinstall",sisx:"x-epoc/x-sisx-app",sit:"application/x-stuffit",siv:"application/sieve",sk:"image/x-skencil",sk1:"image/x-skencil",skr:"application/pgp-keys",slk:"text/spreadsheet",smaf:"application/x-smaf",smc:"application/x-snes-rom",smd:"application/vndstardivisionmail",smf:"application/vndstardivisionmath",smi:"application/x-sami",smil:"application/smil",sml:"application/smil",sms:"application/x-sms-rom",snd:"audio/basic",so:"application/x-sharedlib",spc:"application/x-pkcs7-certificates",spd:"application/x-font-speedo",spec:"text/x-rpm-spec",spl:"application/x-shockwave-flash",spx:"audio/x-speex",sql:"text/x-sql",sr2:"image/x-sony-sr2",src:"application/x-wais-source",srf:"image/x-sony-srf",srt:"application/x-subrip",ssa:"text/x-ssa",stc:"application/vndsunxmlcalctemplate",std:"application/vndsunxmldrawtemplate",sti:"application/vndsunxmlimpresstemplate",stm:"audio/x-stm",stw:"application/vndsunxmlwritertemplate",sty:"text/x-tex",sub:"text/x-subviewer",sun:"image/x-sun-raster",sv4cpio:"application/x-sv4cpio",sv4crc:"application/x-sv4crc",svg:"image/svg+xml",svgz:"image/svg+xml-compressed",swf:"application/x-shockwave-flash",sxc:"application/vndsunxmlcalc",sxd:"application/vndsunxmldraw",sxg:"application/vndsunxmlwriterglobal",sxi:"application/vndsunxmlimpress",sxm:"application/vndsunxmlmath",sxw:"application/vndsunxmlwriter",sylk:"text/spreadsheet",t:"text/troff",t2t:"text/x-txt2tags",tar:"application/x-tar",tarbz:"application/x-bzip-compressed-tar",tarbz2:"application/x-bzip-compressed-tar",targz:"application/x-compressed-tar",tarlzma:"application/x-lzma-compressed-tar",tarlzo:"application/x-tzo",tarxz:"application/x-xz-compressed-tar",tarz:"application/x-tarz",tbz:"application/x-bzip-compressed-tar",tbz2:"application/x-bzip-compressed-tar",tcl:"text/x-tcl",tex:"text/x-tex",texi:"text/x-texinfo",texinfo:"text/x-texinfo",tga:"image/x-tga",tgz:"application/x-compressed-tar",theme:"application/x-theme",themepack:"application/x-windows-themepack",tif:"image/tiff",tiff:"image/tiff",tk:"text/x-tcl",tlz:"application/x-lzma-compressed-tar",tnef:"application/vndms-tnef",tnf:"application/vndms-tnef",toc:"application/x-cdrdao-toc",torrent:"application/x-bittorrent",tpic:"image/x-tga",tr:"text/troff",ts:"application/x-linguist",tsv:"text/tab-separated-values",tta:"audio/x-tta",ttc:"application/x-font-ttf",ttf:"application/x-font-ttf",ttx:"application/x-font-ttx",txt:"text/plain",txz:"application/x-xz-compressed-tar",tzo:"application/x-tzo",ufraw:"application/x-ufraw",ui:"application/x-designer",uil:"text/x-uil",ult:"audio/x-mod",uni:"audio/x-mod",uri:"text/x-uri",url:"text/x-uri",ustar:"application/x-ustar",vala:"text/x-vala",vapi:"text/x-vala",vcf:"text/directory",vcs:"text/calendar",vct:"text/directory",vda:"image/x-tga",vhd:"text/x-vhdl",vhdl:"text/x-vhdl",viv:"video/vivo",vivo:"video/vivo",vlc:"audio/x-mpegurl",vob:"video/mpeg",voc:"audio/x-voc",vor:"application/vndstardivisionwriter",vst:"image/x-tga",wav:"audio/x-wav",wax:"audio/x-ms-asx",wb1:"application/x-quattropro",wb2:"application/x-quattropro",wb3:"application/x-quattropro",wbmp:"image/vndwapwbmp",wcm:"application/vndms-works",wdb:"application/vndms-works",webm:"video/webm",wk1:"application/vndlotus-1-2-3",wk3:"application/vndlotus-1-2-3",wk4:"application/vndlotus-1-2-3",wks:"application/vndms-works",wma:"audio/x-ms-wma",wmf:"image/x-wmf",wml:"text/vndwapwml",wmls:"text/vndwapwmlscript",wmv:"video/x-ms-wmv",wmx:"audio/x-ms-asx",wp:"application/vndwordperfect",wp4:"application/vndwordperfect",wp5:"application/vndwordperfect",wp6:"application/vndwordperfect",wpd:"application/vndwordperfect",wpg:"application/x-wpg",wpl:"application/vndms-wpl",wpp:"application/vndwordperfect",wps:"application/vndms-works",wri:"application/x-mswrite",wrl:"model/vrml",wv:"audio/x-wavpack",wvc:"audio/x-wavpack-correction",wvp:"audio/x-wavpack",wvx:"audio/x-ms-asx",x3f:"image/x-sigma-x3f",xac:"application/x-gnucash",xbel:"application/x-xbel",xbl:"application/xml",xbm:"image/x-xbitmap",xcf:"image/x-xcf",xcfbz2:"image/x-compressed-xcf",xcfgz:"image/x-compressed-xcf",xhtml:"application/xhtml+xml",xi:"audio/x-xi",xla:"application/vndms-excel",xlc:"application/vndms-excel",xld:"application/vndms-excel",xlf:"application/x-xliff",xliff:"application/x-xliff",xll:"application/vndms-excel",xlm:"application/vndms-excel",xls:"application/vndms-excel",xlsm:"application/vndopenxmlformats-officedocumentspreadsheetmlsheet",xlsx:"application/vndopenxmlformats-officedocumentspreadsheetmlsheet",xlt:"application/vndms-excel",xlw:"application/vndms-excel",xm:"audio/x-xm",xmf:"audio/x-xmf",xmi:"text/x-xmi",xml:"application/xml",xpm:"image/x-xpixmap",xps:"application/vndms-xpsdocument",xsl:"application/xml",xslfo:"text/x-xslfo",xslt:"application/xml",xspf:"application/xspf+xml",xul:"application/vndmozillaxul+xml",xwd:"image/x-xwindowdump",xyz:"chemical/x-pdb",xz:"application/x-xz",w2p:"application/w2p",z:"application/x-compress",zabw:"application/x-abiword",zip:"application/zip"}},11320:function(i,f,e){"use strict";e.d(f,{Z:function(){return a}});const t={PROXY_SERVER:"https://test3-data.educoder.net",API_SERVER:"",REPORT_SERVER:"http://192.168.1.57:3001",IMG_SERVER:"https://new-testali-cdn.educoder.net",FORGE:"https://code.educoder.net/",SSH_SERVER:"wss://webssh.educoder.net",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",CABLE_SERVER:"wss://test3-data.educoder.net/cable",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",TERMINAL_URL:"testsvc1.vnc.educoder.net",QQLoginCB:encodeURIComponent("https://test-newweb.educoder.net"),AI_PLATFORM_URL:"https://aitest.educoder.net"};var r=null,a={local:{API_SERVER:"http://localhost:3000",IMG_SERVER:"https://testali-cdn.educoder.net/",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"https://test-oldweb.educoder.net/",SSH_SERVER:"wss://pre-webssh.educoder.net",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",CABLE_SERVER:"wss://test-data.educoder.net/cable",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",QQLoginCB:encodeURIComponent("https://test-newweb.educoder.net"),AI_PLATFORM_URL:"https://aitest.educoder.net"},dev:t,newReactTest:{API_SERVER:(()=>{let s;switch(location.host){case"test4.educoder.net":s="https://test4-data.educoder.net";break;case"test3.educoder.net":s="https://test3-data.educoder.net";break;case"test2.educoder.net":s="https://test2-data.educoder.net";break;default:s="https://test-data.educoder.net";break}return s})(),SSH_SERVER:"wss://pre-webssh.educoder.net",SSH_Slice:"https://testfu.educoder.net",IMG_SERVER:(()=>{let s="https://new-testali-cdn.educoder.net";const u=location.host;return u==="test3.educoder.net"&&(s="https://test3-data.educoder.net"),u==="test4.educoder.net"&&(s="https://test4-data.educoder.net"),s})(),OFFICE_SERVER:"https://testoffice.educoder.net",CABLE_SERVER:"wss://test-data.educoder.net/cable",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"https://test-oldweb.educoder.net/",QQLoginCB:encodeURIComponent("https://test-data.educoder.net"),TERMINAL_URL:"testsvc1.vnc.educoder.net",AI_PLATFORM_URL:"https://aitest.educoder.net"},preNewBuild:{API_SERVER:(()=>{let s="https://pre-data.educoder.net";return location.host==="pre2.educoder.net"&&(s="https://pre-data2.educoder.net"),s})(),IMG_SERVER:"https://preali-cdn.educoder.net",SSH_SERVER:"wss://pre-webssh.educoder.net",SSH_Slice:"https://testfu.educoder.net",REPORT_SERVER:"http://192.168.1.57:3001",OFFICE_SERVER:"https://testoffice.educoder.net",CABLE_SERVER:"wss://pre-data.educoder.net/cable",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",FORGE:"https://forge.educoder.net/",QQLoginCB:encodeURIComponent("https://pre.educoder.net"),AI_PLATFORM_URL:"https://aitest.educoder.net"},newBuild:{API_SERVER:(()=>{let s="https://data.educoder.net";return document.domain==="kepukehuan.educoder.net"?s="https://kepukehuan-data.educoder.net":(document.domain==="www.tokcoder.com"||document.domain==="tokcoder.com")&&(s="https://data.tokcoder.com"),s})(),SSH_SERVER:"wss://webssh.educoder.net",REPORT_SERVER:"http://192.168.1.57:3001",SSH_Slice:"https://fu.educoder.net",IMG_SERVER:"https://ali-cdn.educoder.net",OFFICE_SERVER:"https://officeserver.educoder.net",CABLE_SERVER:"wss://data.educoder.net/cable",ONLYOFFICE:"https://office.educoder.net",OFFICE_IP:"https://officedata.educoder.net",FORGE:"https://code.educoder.net/",QQLoginCB:encodeURIComponent("https://www.educoder.net"),TERMINAL_URL:".jupyter.educoder.net",AI_PLATFORM_URL:"https://ai.educoder.net"},newTest:{API_SERVER:"https://test-data.educoder.net",IMG_SERVER:"https://test-data.educoder.net",REPORT_SERVER:"http://192.168.1.57:3001",SSH_SERVER:"wss://pre-webssh.educoder.net",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",CABLE_SERVER:"wss://test-data.educoder.net/cable",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",FORGE:"http://test-oldweb.educoder.net/",QQLoginCB:encodeURIComponent("https://test-data.educoder.net"),AI_PLATFORM_URL:"https://aitest.educoder.net"},test:{API_SERVER:"",IMG_SERVER:"",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"http://test-oldweb.educoder.net/",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",CABLE_SERVER:"wss://test-data.educoder.net/cable",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",SSH_SERVER:"wss://pre-webssh.educoder.net",QQLoginCB:encodeURIComponent("https://test-newweb.educoder.net"),AI_PLATFORM_URL:"https://aitest.educoder.net"},preBuild:{API_SERVER:"",IMG_SERVER:"https://preali-cdn.educoder.net",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"https://forge.educoder.net/",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",CABLE_SERVER:"wss://test-data.educoder.net/cable",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",SSH_SERVER:"wss://pre-webssh.educoder.net",QQLoginCB:encodeURIComponent("https://test-newweb.educoder.net"),AI_PLATFORM_URL:"https://aitest.educoder.net"},newWeb:{API_SERVER:"https://test-newweb.educoder.net",IMG_SERVER:"https://test-newweb.educoder.net/",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"http://test-oldweb.educoder.net/",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",CABLE_SERVER:"wss://test-data.educoder.net/cable",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",SSH_SERVER:"wss://pre-webssh.educoder.net",QQLoginCB:encodeURIComponent("https://test-newweb.educoder.net"),AI_PLATFORM_URL:"https://aitest.educoder.net"},build:{API_SERVER:"",IMG_SERVER:"",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"https://forge.educoder.net/",SSH_SERVER:"wss://webssh.educoder.net",SSH_Slice:"https://fu.educoder.net",OFFICE_SERVER:"https://officeserver.educoder.net",CABLE_SERVER:"wss://data.educoder.net/cable",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"https://officedata.educoder.net",QQLoginCB:encodeURIComponent("https://www.educoder.net"),TERMINAL_URL:".jupyter.educoder.net",AI_PLATFORM_URL:"https://aitest.educoder.net"}}[window.ENV||"dev"]},33170:function(i,f,e){"use strict";e.d(f,{IV:function(){return Q},U2:function(){return j},ZP:function(){return W},d4:function(){return F},gz:function(){return M},rz:function(){return q},v_:function(){return $}});var t=e(11320),r=e(16568),n=e(62844),a=e(2453),s=e(33715),u=e.n(s),c=e(67294),o=e(35973),p=e(28706),h=Object.defineProperty,d=Object.defineProperties,g=Object.getOwnPropertyDescriptors,v=Object.getOwnPropertySymbols,S=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable,E=(U,z,Y)=>z in U?h(U,z,{enumerable:!0,configurable:!0,writable:!0,value:Y}):U[z]=Y,x=(U,z)=>{for(var Y in z||(z={}))S.call(z,Y)&&E(U,Y,z[Y]);if(v)for(var Y of v(z))C.call(z,Y)&&E(U,Y,z[Y]);return U},O=(U,z)=>d(U,g(z)),I=(U,z,Y)=>new Promise((ee,de)=>{var me=pt=>{try{be(Y.next(pt))}catch(tt){de(tt)}},_e=pt=>{try{be(Y.throw(pt))}catch(tt){de(tt)}},be=pt=>pt.done?ee(pt.value):Promise.resolve(pt.value).then(me,_e);be((Y=Y.apply(U,z)).next())});let T;const R={200:"\u670D\u52A1\u5668\u6210\u529F\u8FD4\u56DE\u8BF7\u6C42\u7684\u6570\u636E\u3002",201:"\u65B0\u5EFA\u6216\u4FEE\u6539\u6570\u636E\u6210\u529F\u3002",202:"\u4E00\u4E2A\u8BF7\u6C42\u5DF2\u7ECF\u8FDB\u5165\u540E\u53F0\u6392\u961F\uFF08\u5F02\u6B65\u4EFB\u52A1\uFF09\u3002",204:"\u5220\u9664\u6570\u636E\u6210\u529F\u3002",400:"\u53D1\u51FA\u7684\u8BF7\u6C42\u6709\u9519\u8BEF\uFF0C\u670D\u52A1\u5668\u6CA1\u6709\u8FDB\u884C\u65B0\u5EFA\u6216\u4FEE\u6539\u6570\u636E\u7684\u64CD\u4F5C\u3002",401:"\u7528\u6237\u6CA1\u6709\u6743\u9650\uFF08\u4EE4\u724C\u3001\u7528\u6237\u540D\u3001\u5BC6\u7801\u9519\u8BEF\uFF09\u3002",403:"\u7528\u6237\u5F97\u5230\u6388\u6743\uFF0C\u4F46\u662F\u8BBF\u95EE\u662F\u88AB\u7981\u6B62\u7684\u3002",404:"\u53D1\u51FA\u7684\u8BF7\u6C42\u9488\u5BF9\u7684\u662F\u4E0D\u5B58\u5728\u7684\u8BB0\u5F55\uFF0C\u670D\u52A1\u5668\u6CA1\u6709\u8FDB\u884C\u64CD\u4F5C\u3002",406:"\u8BF7\u6C42\u7684\u683C\u5F0F\u4E0D\u53EF\u5F97\u3002",410:"\u8BF7\u6C42\u7684\u8D44\u6E90\u88AB\u6C38\u4E45\u5220\u9664\uFF0C\u4E14\u4E0D\u4F1A\u518D\u5F97\u5230\u7684\u3002",422:"\u5F53\u521B\u5EFA\u4E00\u4E2A\u5BF9\u8C61\u65F6\uFF0C\u53D1\u751F\u4E00\u4E2A\u9A8C\u8BC1\u9519\u8BEF\u3002",500:"\u670D\u52A1\u5668\u53D1\u751F\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u670D\u52A1\u5668\u3002",502:"\u7F51\u5173\u9519\u8BEF\u3002",503:"\u670D\u52A1\u4E0D\u53EF\u7528\uFF0C\u670D\u52A1\u5668\u6682\u65F6\u8FC7\u8F7D\u6216\u7EF4\u62A4\u3002",504:"\u7F51\u5173\u8D85\u65F6\u3002"},k=U=>{try{typeof U=="string"&&(U=JSON.parse(U));const z=/\(\s+\/api\/attachments\/(\d+)|\(\/api\/attachments\/(\d+)\//g,Y=/\"\/api\/attachments\/(\d+)\//g,ee=/\(\s+\/files\/uploads\/(\d+)|\"\/files\/uploads\/(\d+)\//g,de=/\/api\/attachments\/(\d+)/g,me=/\/attachments\/download\/(\d+)/g;return JSON.stringify(U).replace(de,(be,pt,tt,Ot)=>{const _t=pt||tt||Ot;return"/api/attachments/"+(0,p.Jn)(_t)}).replace(me,(be,pt,tt)=>{const Ot=pt||tt;return"/attachments/download/"+(0,p.Jn)(Ot)}).replace(z,(be,pt,tt,Ot)=>{const _t=pt||tt||Ot;return"(/api/attachments/"+(0,p.Jn)(_t)}).replace(Y,(be,pt,tt)=>{const Ot=pt||tt;return'"/api/attachments/'+(0,p.Jn)(Ot)}).replace(ee,(be,pt,tt)=>{const Ot=pt||tt;return"(/files/uploads/"+(0,p.Jn)(Ot)}).replace(/\r\n/g,` + `),ma=!1),he||va(ha()),he.formatMessage(Se,Ye)),Ae=()=>Object.keys(zn)},53814:function(i,f,e){"use strict";e.d(f,{y:function(){return u}});var t=e(62844),r=e(71230),n=e(15746),a=e(5270),s=e(67294);const u=c=>new Promise((o,p)=>{if(window.RTCPeerConnection=window.RTCPeerConnection||window.mozRTCPeerConnection||window.webkitRTCPeerConnection,typeof window.RTCPeerConnection=="undefined")return p("WebRTC not supported by browser");let h=new RTCPeerConnection,d=[];h.createDataChannel(""),h.createOffer().then(g=>h.setLocalDescription(g)).catch(g=>p(g)),h.onicecandidate=g=>{console.log("event:",g);const v=[];if(!g||!g.candidate){if(console.log("ips",d),d.length==0||!(0,a.t)(d[0])){const L=t.default.info({title:s.createElement(r.Z,null,s.createElement(n.Z,{flex:"1"},"\u63D0\u793A"),s.createElement(n.Z,null,s.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:()=>L.destroy()}))),icon:null,width:500,className:"custom-modal-divider",content:s.createElement(r.Z,null,s.createElement(n.Z,null,"\u5F53\u524D\u8003\u8BD5\u5DF2\u542F\u7528\u9650\u5236\u8003\u8BD5\u8BBF\u95EEIP\uFF08\u9650\u5236\u516C\u5171IP+\u5185\u7F51IP\uFF09\u3002",(c.ip_limit==="inner"||c.ip_bind)&&s.createElement(s.Fragment,null,s.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"),s.createElement("br",null),s.createElement("a",{href:"https://www.educoder.net/forums/4478",target:"_blank"},"\u5982\u4F55\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6?"))))});return p("WebRTC disabled or restricted by browser")}const N=d.filter(L=>(0,a.t)(L));return!N||!N.length?p("IP\u83B7\u53D6\u5931\u8D25"):o(N.join(""))}let S=g.candidate.candidate.split(" "),[C,E,x,O,I,T,,R,...k]=S,D=["rtp","rtpc"];if(console.log("event:",g),d.some(N=>N==I)||d.push(I),console.log(" candidate: "+C.split(":")[1]),console.log(" component: "+D[E-1]),console.log(" protocol: "+x),console.log(" priority: "+O),console.log(" ip: "+I),console.log(" port: "+T),console.log(" type: "+R),k.length){console.log("attributes: ");for(let N=0;N "+k[N]+": "+k[N+1])}}})},5728:function(i,f,e){"use strict";e.d(f,{k:function(){return S}});var t=e(91303),r=e(2453),n=e(70583),a=Object.defineProperty,s=Object.defineProperties,u=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,h=(E,x,O)=>x in E?a(E,x,{enumerable:!0,configurable:!0,writable:!0,value:O}):E[x]=O,d=(E,x)=>{for(var O in x||(x={}))o.call(x,O)&&h(E,O,x[O]);if(c)for(var O of c(x))p.call(x,O)&&h(E,O,x[O]);return E},g=(E,x)=>s(E,u(x)),v=(E,x)=>{var O={};for(var I in E)o.call(E,I)&&x.indexOf(I)<0&&(O[I]=E[I]);if(E!=null&&c)for(var I of c(E))x.indexOf(I)<0&&p.call(E,I)&&(O[I]=E[I]);return O};const S=["\u8BA4\u8BC1\u4E13\u4E1A","\u8BA4\u8BC1\u5C4A\u522B"],C={namespace:"engineeringEvaluteList",state:{actionTabs:{key:"",params:{}},headerData:{dataSource:{[S[0]]:{width:235,placeholder:`\u8BF7\u9009\u62E9${S[0]}`,loading:"engineeringEvaluteList/getMajorList",dataList:[]},[S[1]]:{width:138,placeholder:`\u8BF7\u9009\u62E9${S[1]}`,loading:"engineeringEvaluteList/getYearList",dataList:[]}},active:{}},tabListData:{total:0,pageNo:1,pageSize:20,dataSource:[]}},effects:{*setActionTabs({payload:E},{call:x,put:O}){yield O({type:"save",payload:{actionTabs:d({},E)}})},*getMajorList({payload:E},{call:x,put:O,select:I}){const{userInfo:T}=yield I(R=>R.user);if(T!=null&&T.school_id){const R=yield x(t.BA,T.school_id);if(R&&R.data){const k=n.U.getItem(T==null?void 0:T.login);yield O({type:"setMajorOrYearDataSource",payload:{key:S[0],value:R.data.map(D=>({label:D.name,value:D.ec_major_school_id})),active:R.data.length>0?k[0]||R.data[0].ec_major_school_id:void 0}})}}},*getYearList({payload:E},{call:x,put:O,select:I}){const T=yield x(t.Nx,E.id),{userInfo:R}=yield I(k=>k.user);if(T&&T.data){const k=n.U.getItem(R==null?void 0:R.login);yield O({type:"setMajorOrYearDataSource",payload:{key:S[1],value:T.data.map(D=>({label:D.year,value:D.ec_year_id})),active:T.data.length>0?E.firstEnter?k[1]:T.data[0].ec_year_id:void 0}})}},*getCourseResults({payload:E={}},{call:x,put:O,select:I}){const{calc:T,page:R,per_page:k}=E,{headerData:D,tabListData:N}=yield I(W=>W.engineeringEvaluteList),{userInfo:L}=yield I(W=>W.user);let q=D.active[S[1]];if(q){let W={id:q,page:R||1,per_page:k||N.pageSize};T&&(W=g(d({},W),{page:N.pageNo}));const K=yield x(t._y,W),Z=[D.active[S[0]],D.active[S[1]]];n.U.setItem(L==null?void 0:L.login,Z),K&&K.ec_courses&&(yield O({type:"setCourseResults",payload:g(d({},N),{pageNo:W.page,total:K.count,pageSize:W.per_page||N.pageSize,dataSource:K.ec_courses.map((H,j)=>g(d({},H),{key:W.page>1?(W.page-1)*W.per_page+j+1:j+1}))})}))}else yield O({type:"setCourseResults",payload:g(d({},N),{pageNo:1,total:0,dataSource:[]})})},*exportCourse({payload:E},{call:x,select:O}){const{headerData:I}=yield O(T=>T.engineeringEvaluteList);I.active[S[1]]&&(yield x(t.F,I.active[S[1]]))},*compute({payload:E},{call:x,put:O}){const I=E,{all:T}=I,R=v(I,["all"]),k=yield x(T?t.At:t.PX,R);k&&k.status===0?(r.ZP.success("\u8BA1\u7B97\u5B8C\u6210"),yield O({type:"getCourseResults",payload:{calc:!0}})):r.ZP.error(k.message)}},reducers:{save(E,x){return d(d({},E),x.payload)},setMajorOrYearDataSource(E,{payload:x}){let O=E.headerData.active;return x.active&&(O=g(d({},O),{[x.key]:x.active})),g(d({},E),{headerData:g(d({},E.headerData),{dataSource:g(d({},E.headerData.dataSource),{[x.key]:g(d({},E.headerData.dataSource[x.key]),{dataList:x.value})}),active:O})})},setMajorOrYearActive(E,{payload:x}){return g(d({},E),{headerData:g(d({},E.headerData),{active:g(d({},E.headerData.active),{[x.key]:x.value})})})},setCourseResults(E,{payload:x}){return g(d({},E),{tabListData:d(d({},E.tabListData),x)})}},subscriptions:{setup({dispatch:E,history:x}){return x.listen(({pathname:O})=>{O==="/"&&E({type:"query"})})}}};f.Z=C},53430:function(i,f,e){"use strict";e.d(f,{L:function(){return c},r:function(){return p}});var t=Object.defineProperty,r=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,s=(h,d,g)=>d in h?t(h,d,{enumerable:!0,configurable:!0,writable:!0,value:g}):h[d]=g,u=(h,d)=>{for(var g in d||(d={}))n.call(d,g)&&s(h,g,d[g]);if(r)for(var g of r(d))a.call(d,g)&&s(h,g,d[g]);return h};const c=h=>h==null?void 0:h.map(d=>{const g=(d.sub_disciplines||[]).map(v=>({value:v.id,label:v.name}));return{value:d.id,label:d.name,children:g}}),o={1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D",7:"\u4E03",8:"\u516B"},p=h=>{if(!h)return;const{all_questions_count:d,all_score:g,single_questions:v,multiple_questions:S,judgement_questions:C,program_questions:E,completion_questions:x,subjective_questions:O,practical_questions:I,combination_questions:T}=h||{},k=[u({type:"SINGLE",name:"\u5355\u9009\u9898"},v),u({type:"MULTIPLE",name:"\u591A\u9009\u9898"},S),u({type:"COMPLETION",name:"\u586B\u7A7A\u9898"},x),u({type:"JUDGMENT",name:"\u5224\u65AD\u9898"},C),u({type:"SUBJECTIVE",name:"\u7B80\u7B54\u9898"},O),u({type:"PROGRAM",name:"\u7F16\u7A0B\u9898"},E),u({type:"PRACTICAL",name:"\u5B9E\u8BAD\u9898"},I),u({type:"COMBINATION",name:"\u7EC4\u5408\u9898"},T)].filter(D=>D.questions_count>0).map((D,N)=>u(u({},D),{number:o[N+1]}));return{all_questions_count:d,all_score:g,questionList:k}}},70583:function(i,f,e){"use strict";e.d(f,{U:function(){return a},t:function(){return n}});var t=e(62844),r=e(52262);const n=(s,u="")=>{t.default.confirm({centered:!0,width:520,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:u,onOk:s})},a={setItem:(s,u)=>{var c;const o=s+"-engineering"+((c=(0,r.eY)())==null?void 0:c.school_id),p=JSON.stringify(u);localStorage.setItem(o,p)},getItem:s=>{var u;const c=s+"-engineering"+((u=(0,r.eY)())==null?void 0:u.school_id),o=localStorage.getItem(c);return o!==null&&o!=="[object Object]"?JSON.parse(o):[]},clear:s=>{var u;const c=s+"-engineering"+((u=(0,r.eY)())==null?void 0:u.school_id);localStorage.removeItem(c)}}},60532:function(i,f,e){"use strict";e.d(f,{$f:function(){return d},Cq:function(){return S},GY:function(){return u},I8:function(){return E},Ow:function(){return g},P:function(){return h},Ql:function(){return c},RA:function(){return I},Zm:function(){return o},bz:function(){return s},eF:function(){return C},gQ:function(){return x},ht:function(){return v},kN:function(){return T},n1:function(){return n},nI:function(){return R},o9:function(){return a},sG:function(){return p},wi:function(){return O}});var t=e(33170),r=(k,D,N)=>new Promise((L,q)=>{var W=H=>{try{Z(N.next(H))}catch(j){q(j)}},K=H=>{try{Z(N.throw(H))}catch(j){q(j)}},Z=H=>H.done?L(H.value):Promise.resolve(H.value).then(W,K);Z((N=N.apply(k,D)).next())});function n(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.login}/avatar.json`,{method:"put",body:k})})}function a(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.login}.json`,{method:"get"})})}function s(k){return r(this,null,function*(){return(0,t.ZP)("/api/add_school_applies.json",{method:"post",body:k})})}function u(k){return r(this,null,function*(){return(0,t.ZP)("/api/schools/limit_list.json",{method:"get",params:k})})}function c(k){return r(this,null,function*(){return(0,t.ZP)(`/api/schools/${k.id}/departments/for_option.json`,{method:"get",params:k})})}function o(k){return r(this,null,function*(){return(0,t.ZP)("/api/add_department_applies.json",{method:"post",body:k})})}function p(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.id}.json`,{method:"put",body:k})})}function h(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.login}/authentication_apply.json`,{method:"delete"})})}function d(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.login}/professional_auth_apply.json`,{method:"delete"})})}function g(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.id}/professional_auth_apply.json`,{method:"post",body:k})})}function v(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.id}/authentication_apply.json`,{method:"post",body:k})})}function S(k){return r(this,null,function*(){return(0,t.ZP)("/api/accounts/get_verification_code.json",{method:"get",params:k})})}function C(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.login}/phone_bind.json`,{method:"post",body:k})})}function E(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.login}/email_bind.json`,{method:"post",body:k})})}function x(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.login}/password.json`,{method:"put",body:k})})}function O(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${k.basicInfoId}/open_users/${k.id}.json`,{method:"delete"})})}function I(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/${k.login}/cancel_authentication.json`,{method:"post",body:k})})}function T(k){return r(this,null,function*(){return(0,t.ZP)(`/api/users/${k.login}/cancel_professional_certification.json`,{method:"post",body:k})})}function R(k,D){return r(this,null,function*(){return(0,t.ZP)(`/api/users/${k.login}/videos/${k.id}/create_subject_video.json`,{method:"post",body:D})})}},61747:function(i,f,e){"use strict";e.d(f,{An:function(){return g},TO:function(){return p},my:function(){return d},nZ:function(){return h}});var t=e(33170),r=Object.defineProperty,n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(v,S,C)=>S in v?r(v,S,{enumerable:!0,configurable:!0,writable:!0,value:C}):v[S]=C,c=(v,S)=>{for(var C in S||(S={}))a.call(S,C)&&u(v,C,S[C]);if(n)for(var C of n(S))s.call(S,C)&&u(v,C,S[C]);return v},o=(v,S,C)=>new Promise((E,x)=>{var O=R=>{try{T(C.next(R))}catch(k){x(k)}},I=R=>{try{T(C.throw(R))}catch(k){x(k)}},T=R=>R.done?E(R.value):Promise.resolve(R.value).then(O,I);T((C=C.apply(v,S)).next())});function p(v){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${v.coursesId}/inform_up.json`,{method:"post",body:c({},v)})})}function h(v){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${v.coursesId}/inform_down.json`,{method:"post",body:c({},v)})})}function d(v){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${v.coursesId}/update_informs.json`,{method:"post",body:c({},v)})})}function g(v){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${v.coursesId}/new_informs.json`,{method:"post",body:c({},v)})})}},66540:function(i,f,e){"use strict";e.d(f,{$n:function(){return C},H:function(){return S},Nm:function(){return g},Ot:function(){return v},SV:function(){return p},fc:function(){return x},mn:function(){return E},tO:function(){return d},zI:function(){return h}});var t=e(33170),r=Object.defineProperty,n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(O,I,T)=>I in O?r(O,I,{enumerable:!0,configurable:!0,writable:!0,value:T}):O[I]=T,c=(O,I)=>{for(var T in I||(I={}))a.call(I,T)&&u(O,T,I[T]);if(n)for(var T of n(I))s.call(I,T)&&u(O,T,I[T]);return O},o=(O,I,T)=>new Promise((R,k)=>{var D=q=>{try{L(T.next(q))}catch(W){k(W)}},N=q=>{try{L(T.throw(q))}catch(W){k(W)}},L=q=>q.done?R(q.value):Promise.resolve(q.value).then(D,N);L((T=T.apply(O,I)).next())});function p(O){return o(this,null,function*(){return(0,t.ZP)("/api/files/public_with_course_and_project",{method:"get",params:c({},O)})})}function h(O){return o(this,null,function*(){return(0,t.ZP)("/api/files/mine_with_course_and_project.json",{method:"get",params:c({},O)})})}function d(O){return o(this,null,function*(){return(0,t.ZP)("/api/files/import.json",{method:"post",body:c({},O)})})}function g(O){return o(this,null,function*(){return(0,t.ZP)(`/api/files/${O.id}.json`,{method:"get",params:c({},O)})})}function v(O){return o(this,null,function*(){const{id:I}=O;return delete O.id,(0,t.ZP)(`/api/files/${I}.json`,{method:"put",body:c({},O)})})}function S(O){return o(this,null,function*(){return(0,t.ZP)(`/api/files/${O.id}/update_visits.json`,{method:"post"})})}function C(O){return o(this,null,function*(){return(0,t.ZP)(`/api/files/${O==null?void 0:O.id}/watch_list.json`,{method:"get",params:c({},O)})})}function E(O){return o(this,null,function*(){return(0,t.ZP)("/api/files/get_batches_publish_info.json",{method:"get",params:c({},O)})})}function x(O){return o(this,null,function*(){return(0,t.ZP)(`/api/files/${O==null?void 0:O.id}/add_file_quantity.json`,{method:"post",body:c({},O)})})}},25250:function(i,f,e){"use strict";e.d(f,{CJ:function(){return g},Mf:function(){return x},NA:function(){return C},PC:function(){return v},PP:function(){return S},YQ:function(){return E},cc:function(){return d},dI:function(){return h},yq:function(){return p}});var t=e(33170),r=Object.defineProperty,n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(O,I,T)=>I in O?r(O,I,{enumerable:!0,configurable:!0,writable:!0,value:T}):O[I]=T,c=(O,I)=>{for(var T in I||(I={}))a.call(I,T)&&u(O,T,I[T]);if(n)for(var T of n(I))s.call(I,T)&&u(O,T,I[T]);return O},o=(O,I,T)=>new Promise((R,k)=>{var D=q=>{try{L(T.next(q))}catch(W){k(W)}},N=q=>{try{L(T.throw(q))}catch(W){k(W)}},L=q=>q.done?R(q.value):Promise.resolve(q.value).then(D,N);L((T=T.apply(O,I)).next())});function p(O){return o(this,null,function*(){return(0,t.ZP)("/api/courses/board_list.json",{method:"get",params:c({},O)})})}function h(O){return o(this,null,function*(){return(0,t.ZP)(`/api/messages/${O.boardId}.json`,{method:"get",params:c({},O)})})}function d(O){return o(this,null,function*(){return(0,t.ZP)(`/api/messages/${O.id}/sticky_top.json`,{method:"put",body:{course_id:O.coursesId}})})}function g(O){return o(this,null,function*(){return(0,t.ZP)(`/api/messages/${O.id}/sticky_top.json`,{method:"put",body:{course_id:O.coursesId}})})}function v(O){return o(this,null,function*(){return(0,t.ZP)(`/api/messages/${O.boardId}/reply_list.json`,{method:"get",params:c({},O)})})}function S(O){return o(this,null,function*(){return(0,t.ZP)(`/api/messages/${O.boardId}/reply.json`,{method:"post",body:c({},O)})})}function C(O){return o(this,null,function*(){return(0,t.ZP)("/api/praise_tread/like.json",{method:"post",body:c({},O)})})}function E(O){return o(this,null,function*(){return(0,t.ZP)("/api/praise_tread/unlike.json",{method:"delete",body:c({},O)})})}function x(O){return o(this,null,function*(){return(0,t.ZP)("/api/commons/delete.json",{method:"delete",body:c({},O)})})}},89779:function(i,f,e){"use strict";e.d(f,{$T:function(){return Te},A:function(){return ke},Ab:function(){return Yr},Al:function(){return F},BQ:function(){return Nt},BR:function(){return j},Bn:function(){return wt},Cq:function(){return Pe},DJ:function(){return me},Dd:function(){return v},Ds:function(){return Rr},EO:function(){return We},Ed:function(){return _e},Ew:function(){return rr},FU:function(){return Oe},Fg:function(){return S},GV:function(){return _t},Gk:function(){return W},Gm:function(){return Je},Gz:function(){return C},Hl:function(){return E},Hn:function(){return k},ID:function(){return ur},IU:function(){return Le},J2:function(){return tt},K$:function(){return Pr},KP:function(){return be},KT:function(){return ee},L$:function(){return Ve},Lk:function(){return Ht},Ls:function(){return U},MA:function(){return cr},Mc:function(){return vn},N7:function(){return H},Nd:function(){return q},Nl:function(){return vt},Ns:function(){return Er},O3:function(){return de},Pj:function(){return It},QX:function(){return Ut},QZ:function(){return Y},R2:function(){return Z},Rk:function(){return Ee},S9:function(){return Ct},U8:function(){return st},UD:function(){return ye},U_:function(){return N},Uy:function(){return St},V8:function(){return R},Vw:function(){return Q},W0:function(){return ut},W7:function(){return gr},WK:function(){return Ce},Wr:function(){return br},YR:function(){return Ge},Z0:function(){return Xe},ZL:function(){return ir},ZT:function(){return Hr},ZX:function(){return Ke},Zj:function(){return ar},_9:function(){return Tt},_B:function(){return wn},aP:function(){return kt},aQ:function(){return nr},aZ:function(){return Et},al:function(){return ue},bm:function(){return xa},bz:function(){return dt},c_:function(){return it},ds:function(){return Xn},fN:function(){return Qe},fr:function(){return Ue},g4:function(){return Ot},gq:function(){return x},hf:function(){return M},i:function(){return Tr},i6:function(){return jt},i7:function(){return Wt},iE:function(){return p},ih:function(){return ze},kW:function(){return pt},km:function(){return tr},l4:function(){return T},nP:function(){return d},nQ:function(){return Ze},nX:function(){return Cn},oM:function(){return at},oR:function(){return Tn},o_:function(){return Xt},pf:function(){return Ln},pr:function(){return cn},pv:function(){return He},qB:function(){return $},rS:function(){return O},s:function(){return ie},sb:function(){return ht},sm:function(){return g},t1:function(){return Gt},tB:function(){return Jt},tI:function(){return Bt},td:function(){return yt},tg:function(){return Pt},uh:function(){return ot},up:function(){return $t},v2:function(){return h},vV:function(){return Wr},w9:function(){return L},wH:function(){return I},wR:function(){return Zt},yS:function(){return ct},yV:function(){return K},yd:function(){return dn},zC:function(){return mt},zg:function(){return z}});var t=e(33170),r=Object.defineProperty,n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(he,Or,Nr)=>Or in he?r(he,Or,{enumerable:!0,configurable:!0,writable:!0,value:Nr}):he[Or]=Nr,c=(he,Or)=>{for(var Nr in Or||(Or={}))a.call(Or,Nr)&&u(he,Nr,Or[Nr]);if(n)for(var Nr of n(Or))s.call(Or,Nr)&&u(he,Nr,Or[Nr]);return he},o=(he,Or,Nr)=>new Promise((Gr,Vr)=>{var zn=ua=>{try{pn(Nr.next(ua))}catch(Da){Vr(Da)}},Jn=ua=>{try{pn(Nr.throw(ua))}catch(Da){Vr(Da)}},pn=ua=>ua.done?Gr(ua.value):Promise.resolve(ua.value).then(zn,Jn);pn((Nr=Nr.apply(he,Or)).next())});const p=he=>o(void 0,null,function*(){return(0,t.ZP)(`/api/courses/${he==null?void 0:he.course_id}/course_videos/configs.json`,{method:"put",body:he})}),h=he=>o(void 0,null,function*(){return(0,t.ZP)(`/api/courses/${he==null?void 0:he.course_id}/course_videos/list_for_config.json`,{method:"Get",params:he})}),d=he=>o(void 0,null,function*(){return(0,t.ZP)(`/api/courses/${he==null?void 0:he.course_id}/homework_commons/max_late_time.json`,{method:"Get",params:he})}),g=he=>o(void 0,null,function*(){return(0,t.ZP)(`/api/courses/${he==null?void 0:he.course_id}/homework_commons/batch_late_setting`,{method:"post",body:he})}),v=he=>o(void 0,null,function*(){return(0,t.ZP)("/api/course_statistics/course_use_infos.json",{method:"Get",params:he})}),S=he=>o(void 0,null,function*(){return(0,t.ZP)("/api/course_statistics/rank_list.json",{method:"Get",params:he})}),C=he=>o(void 0,null,function*(){return(0,t.ZP)("/api/course_statistics/statistics_body.json",{method:"Get",params:he})}),E=he=>o(void 0,null,function*(){return(0,t.ZP)("/api/course_statistics/statistics_header.json",{method:"Get",params:he})});function x(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.course_id}/set_assistant_permissions.json`,{method:"post",body:c({},he.permissions)})})}function O(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.course_id}/assistant_permissions.json`,{method:"Get",params:c({},he)})})}function I(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he==null?void 0:he.course_id}/smart_plans/${he==null?void 0:he.id}.json`,{method:"Get",params:c({},he)})})}function T(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he==null?void 0:he.course_id}/smart_plans/${he==null?void 0:he.id}/item_banks.json`,{method:"Get",params:c({},he)})})}function R(he){return o(this,null,function*(){return(0,t.ZP)("/api/courses.json",{method:"Get",params:c({},he)})})}function k(he){return o(this,null,function*(){return(0,t.ZP)("/api/intelligent_recommendations/according_course_recommend_shixuns.json",{method:"Get",params:c({},he)})})}function D(he){return o(this,null,function*(){return Fetch("/api/disciplines.json",{method:"Get",params:c({},he)})})}function N(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.id}/top_banner.json`,{method:"get",params:c({},he)})})}function L(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.id||he.coursesId}/left_banner.json`,{method:"get",params:c({},he)})})}function q(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.id}/homework_commons.json`,{method:"get",params:c({},he)})})}function W(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.id}/homework_commons/list.json`,{method:"get",params:c({},he)})})}function K(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.id}/graduation_topics.json`,{method:"get",params:c({},he)})})}function Z(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.id}/graduation_tasks.json`,{method:"get",params:c({},he)})})}function H(he){return o(this,null,function*(){return(0,t.ZP)(`/api/v2/courses/${he.id}/exercises.json`,{method:"get",params:c({},he)})})}function j(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.id}/polls.json`,{method:"get",params:c({},he)})})}function F(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.id}/homework_commons.json`,{method:"get",params:c({},he)})})}function $(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.id}/course_groups.json`,{method:"get",params:c({},he)})})}function M(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.id}/all_course_groups.json`,{method:"get",params:c({},he)})})}function Q(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.id}/attendances.json`,{method:"get",params:c({},he)})})}function U(he){return o(this,null,function*(){return(0,t.ZP)(`/api/weapps/courses/${he.coursesId}/attendances.json`,{method:"get",params:c({},he)})})}function z(he){return o(this,null,function*(){return(0,t.ZP)(`/api/attendances/${he.id}/edit.json`,{method:"get",params:c({},he)})})}function Y(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.id}/informs.json`,{method:"get",params:c({},he)})})}function ee(he){return o(this,null,function*(){return(0,t.ZP)("/api/files.json",{method:"get",params:c({},he)})})}function de(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.id}/course_videos.json`,{method:"get",params:c({},he)})})}function me(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.id}/live_links.json`,{method:"get",params:c({},he)})})}function _e(he){return o(this,null,function*(){return(0,t.ZP)("/api/courses/mine.json",{method:"get",params:c({},he)})})}function be(he){return o(this,null,function*(){return(0,t.ZP)(`/api/boards/${he.categoryId}/messages.json`,{method:"get",params:c({},he)})})}function pt(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.id}/course_groups.json`,{method:"get",params:c({},he)})})}function tt(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.id}/students.json`,{method:"get",params:c({},he)})})}function Ot(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/statistics.json`,{method:"get",params:c({},he)})})}function _t(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/work_score.json`,{method:"get",params:c({},he)})})}function Gt(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/act_score.json`,{method:"get",params:c({},he)})})}function It(he){return o(this,null,function*(){return(0,t.ZP)("/api/shixun_lists.json",{method:"get",params:c({},he)})})}function Je(he){return o(this,null,function*(){return(0,t.ZP)("/api/item_banks.json",{method:"get",params:c({},he)})})}function Tt(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he==null?void 0:he.course_id}/homework_commons/impersonal_list.json`,{method:"get",params:c({},he)})})}function nr(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/homework_commons/create_shixun_homework.json`,{method:"post",body:c({},he)})})}function Nt(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he==null?void 0:he.course_id}/homework_commons/create_collaborators.json`,{method:"post",body:c({},he)})})}function gr(he){return o(this,null,function*(){return(0,t.ZP)("/api/subject_lists.json",{method:"get",params:c({},he)})})}function Rr(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/homework_commons/create_subject_homework.json`,{method:"post",body:c({},he)})})}function Pr(he){return o(this,null,function*(){return(0,t.ZP)("/api/schools/school_list.json",{method:"get",params:he})})}function at(he){return o(this,null,function*(){return(0,t.ZP)("/api/courses/search_course_list.json",{method:"post",body:he})})}function wt(he){return o(this,null,function*(){return(0,t.ZP)("/api/courses.json",{method:"post",body:he})})}function dt(he){return o(this,null,function*(){return(0,t.ZP)("/api/add_school_applies.json",{method:"post",body:he})})}function Ze(he){return o(this,null,function*(){return(0,t.ZP)("/api/users/member_search.json",{method:"get",params:he})})}function Oe(he){return o(this,null,function*(){return(0,t.ZP)("/api/courses/search_all.json",{method:"get",params:he})})}function ot(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/add_teacher.json`,{method:"post",body:he})})}function Et(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/add_students_by_search.json`,{method:"post",body:he})})}function ht(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/set_public_or_private.json`,{method:"post",body:he})})}function Ve(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/set_invite_code_halt.json`,{method:"post",body:he})})}function Ct(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/duplicate_course.json`,{method:"post",body:he})})}function ue(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/update_end_date.json`,{method:"put",body:he})})}function ke(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}.json`,{method:"delete",body:he})})}function We(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/settings.json`,{method:"get",params:c({},he)})})}function Ue(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}.json`,{method:"put",body:he})})}function Ge(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/export_couser_info.json`,{method:"get",params:{export:!0}})})}function ct(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/export_member_act_score_async.json`,{method:"get",params:c({export:!0},he)})})}function Ut(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/export_total_homework_commons_score.json`,{method:"get",params:c({export:!0},he)})})}function vt(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/export_total_exercises_and_other_score.json`,{method:"get",params:c({export:!0},he)})})}function Le(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/export_star_user.json`,{method:"get",params:c({export:!0},he)})})}function yt(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/export_mooc_records.json`,{method:"get",params:c({export:!0},he)})})}function ut(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/export_total_course_score.json`,{method:"get",params:c({export:!0},he)})})}function kt(he){return o(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${he.categoryId}/export_scores.json`,{method:"get",params:c({export:!0},he)})})}function Xt(he){return o(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${he.categoryId}/export_shixun_report.json`,{method:"get",params:c({export:!0},he)})})}function ir(he){return o(this,null,function*(){return(0,t.ZP)(`/api/exercises/${he.categoryId}/export_exercise_users.json`,{method:"get",params:c({export:!0},he)})})}function Wr(he){return o(this,null,function*(){return(0,t.ZP)(`/api/exercises/${he.categoryId}/export_exercise_word.json`,{method:"get",params:c({export:!0},he)})})}function xn(he){return o(this,null,function*(){return Fetch(`/api/homework_commons/${he.categoryId}/works_list.zip`,{method:"get",params:c({export:!0},he)})})}function Xe(he){return o(this,null,function*(){return(0,t.ZP)(`/api//course_second_categories/${he.id}.json`,{method:"delete",params:{export:!0}})})}function Tr(he){return o(this,null,function*(){return(0,t.ZP)(`/api//boards/${he.id}.json`,{method:"delete",params:{export:!0}})})}function dn(he){return o(this,null,function*(){return(0,t.ZP)(`/api/course_modules/${he.id}/sticky_module.json`,{method:"get"})})}function Cn(he){return o(this,null,function*(){return(0,t.ZP)(`/api/course_modules/${he.id}/hidden_module.json`,{method:"get"})})}function Ln(he){return o(this,null,function*(){return(0,t.ZP)("/api/courses/new.json",{method:"get",params:he})})}function Xn(he){return o(this,null,function*(){return(0,t.ZP)(`/api/weapps/attendances/${he.id}.json`,{method:"get",params:he})})}function xa(he){return o(this,null,function*(){return(0,t.ZP)("/api/weapps/course_member_attendances.json",{method:"get",params:he})})}function ye(he){return o(this,null,function*(){return(0,t.ZP)("/api/weapps/course_member_attendances/update_status.json",{method:"post",body:he})})}function er(he){return o(this,null,function*(){return Fetch(`/api/polls/${he.categoryId}/commit_result.xlsx`,{method:"get",params:c({export:!0},he)})})}function St(he){return o(this,null,function*(){return(0,t.ZP)(`/api/exercises/${he.categoryId}/export_scores.json`,{method:"get",params:c({export:!0},he)})})}function Pt(he){return o(this,null,function*(){return(0,t.ZP)(`/api/exercises/${he.categoryId}/export_exercise_reports.json`,{method:"get",params:c({export:!0},he)})})}function Wt(he){return(0,t.ZP)(`/api/polls/${he.categoryId}/start_answer.json`,{method:"get",params:c({},he)})}function ur(he){return o(this,null,function*(){return(0,t.ZP)(`/api/poll_questions/${he.questionId}/poll_votes.json`,{method:"post",body:he})})}function Er(he){return o(this,null,function*(){return(0,t.ZP)(`/api/polls/${he.categoryId}/commit_poll.json`,{method:"post",body:he})})}function tr(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.courseId}/tasks_list.json`,{method:"get",params:he})})}function st(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.courseId}/update_task_position.json`,{method:"post",body:he})})}function $t(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/calculate_all_shixun_scores.json`,{method:"get",params:he})})}function it(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/all_course_groups.json`,{method:"get",params:he})})}function Pe(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/polls/all_course_groups.json`,{method:"get",params:he})})}function Ee(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/students.json`,{method:"get",params:he})})}function Te(he){return o(this,null,function*(){return(0,t.ZP)(`/api/course_groups/${he.categoryId}/rename_group.json`,{method:"POST",body:he})})}function He(he){return o(this,null,function*(){return(0,t.ZP)(`/api/course_groups/${he.categoryId}.json`,{method:"delete",body:he})})}function jt(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/join_course_group.json`,{method:"POST",body:he})})}function Zt(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/transfer_to_course_group.json`,{method:"post",body:he})})}function cr(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/delete_from_course.json`,{method:"post",body:he})})}function Ce(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/join_course_group.json`,{method:"post",body:he})})}function Qe(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/exit_course.json`,{method:"post"})})}function Ke(he){return o(this,null,function*(){return(0,t.ZP)("/api/weapps/course_member_attendances.json",{method:"post",body:c({},he)})})}function ze(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/mooc_users/${he.user_id}/edit.json`,{method:"get",params:he})})}function ie(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/mooc_users.json`,{method:"post",body:he})})}function Jt(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.coursesId}/mooc_users/${he.user_id}.json`,{method:"put",body:he})})}function br(he){return o(this,null,function*(){return(0,t.ZP)(`/api/course_second_categories/${he.id}/move_category.json`,{method:"post",body:he})})}function Yr(he){return o(this,null,function*(){return(0,t.ZP)(`/api/boards/${he.id}/move_category.json`,{method:"post",body:he})})}function Hr(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.id}/courseware.json`,{method:"get",params:he})})}function cn(he,Or){return o(this,null,function*(){return(0,t.ZP)(`/api/exercises/${he}/mark_wrong_topic.json`,{method:"get",params:Or})})}function wn(he,Or){return o(this,null,function*(){return(0,t.ZP)(`/api/exercises/${he}/cancel_wrong_topic.json`,{method:"get",params:Or})})}function Tn(he,Or){return o(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${he}/allow_end_group.json`,{method:"get",params:Or})})}function vn(he,Or){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he}/homework_commons/end_with_homework_list_position.json`,{method:"post",body:Or})})}function Ht(he,Or){return o(this,null,function*(){return(0,t.ZP)(`/api/tasks/${he}/get_content_for_commit_id.json`,{method:"get",params:Or})})}function Bt(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.course_id}/course_ai_info.json`,{method:"Get",params:c({},he)})})}function mt(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he.course_id}/set_open_ai.json`,{method:"post",body:he})})}function rr(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he==null?void 0:he.id}/smart_plans.json`,{method:"get",params:c({},he)})})}function ar(he){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${he==null?void 0:he.id}/smart_plans.json`,{method:"post",body:c({},he)})})}},78392:function(i,f,e){"use strict";e.d(f,{$M:function(){return Gt},$P:function(){return Ve},Ax:function(){return h},Dh:function(){return E},FU:function(){return L},GQ:function(){return $},IN:function(){return at},JM:function(){return Oe},Ju:function(){return _t},Mn:function(){return Pr},Ni:function(){return Y},Pg:function(){return x},Pt:function(){return C},Qp:function(){return j},R9:function(){return q},Ux:function(){return F},Vy:function(){return _e},XJ:function(){return z},XR:function(){return tt},Ze:function(){return R},aq:function(){return T},bQ:function(){return v},bu:function(){return d},cC:function(){return p},jS:function(){return K},lm:function(){return wt},ml:function(){return Q},o3:function(){return Je},pA:function(){return nr},pS:function(){return Ze},pU:function(){return U},ps:function(){return N},q0:function(){return gr},qN:function(){return Rr},qS:function(){return S},qj:function(){return pt},qt:function(){return Et},rV:function(){return O},rZ:function(){return ot},rk:function(){return de},rm:function(){return H},sK:function(){return Z},sL:function(){return Nt},su:function(){return dt},tC:function(){return me},tO:function(){return be},u9:function(){return M},uZ:function(){return ee},vV:function(){return D},xx:function(){return Ct},y8:function(){return Ot},yS:function(){return k},zF:function(){return g},zc:function(){return W},zj:function(){return I},zz:function(){return ht}});var t=e(33170),r=Object.defineProperty,n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(ue,ke,We)=>ke in ue?r(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:We}):ue[ke]=We,c=(ue,ke)=>{for(var We in ke||(ke={}))a.call(ke,We)&&u(ue,We,ke[We]);if(n)for(var We of n(ke))s.call(ke,We)&&u(ue,We,ke[We]);return ue},o=(ue,ke,We)=>new Promise((Ue,Ge)=>{var ct=Le=>{try{vt(We.next(Le))}catch(yt){Ge(yt)}},Ut=Le=>{try{vt(We.throw(Le))}catch(yt){Ge(yt)}},vt=Le=>Le.done?Ue(Le.value):Promise.resolve(Le.value).then(ct,Ut);vt((We=We.apply(ue,ke)).next())});const p=ue=>(0,t.ZP)(`/api/competitions/${ue.identifier}/create_guide.json`,{method:"post",body:ue}),h=ue=>(0,t.ZP)(`/api/competitions/${ue.identifier}/guides.json`,{method:"get",params:ue}),d=ue=>(0,t.ZP)(`/api/competitions/${ue.identifier}/competition_teams/${ue.competition_team_id}/edit_info.json`,{method:"put",body:ue});function g(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/update_result.json`,{method:"post",body:ue})})}function v(ue){return o(this,null,function*(){return(0,t.ZP)("/api/competitions.json",{method:"Get",params:c({},ue)})})}function S(ue){return o(this,null,function*(){return(0,t.ZP)("/api/courses/apply_to_join_course.json",{method:"post",body:ue})})}function C(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/competition_teams.json`,{method:"post"})})}function E(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/competition_staff.json`,{method:"get"})})}function x(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/common_header.json`,{method:"get"})})}function O(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/${ue.url}`,{method:"get",params:c({},ue)})})}function I(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/update_md_content.json`,{method:"post",body:ue})})}function T(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/competition_teams.json`,{method:"get",params:ue})})}function R(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/competition_teams/${ue.Teannameid}/edit.json`,{method:"get",params:ue})})}function k(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/competition_teams/${ue.Teannameid}.json`,{method:"put",body:ue})})}function D(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/competition_teams/${ue.id}/leave.json`,{method:"post",body:ue})})}function N(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/competition_teams/${ue.id}.json`,{method:"delete"})})}function L(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/competition_teams.json`,{method:"post",body:ue})})}function q(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.id}/add_managers.json`,{method:"post",body:ue})})}function W(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/competition_teams/join.json`,{method:"post",body:ue})})}function K(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/teachers.json`,{method:"get",params:ue})})}function Z(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/students.json`,{method:"get",params:ue})})}function H(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/competition_teams/${ue.teamid}/crud_team_members.json`,{method:"post",body:ue})})}function j(ue){return o(this,null,function*(){return(0,t.ZP)("/api/users/competition_reward.json",{method:"post",body:ue})})}function F(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/chart_rules.json`,{method:"get"})})}function $(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/charts.json`,{method:"get",params:ue})})}function M(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/results.json`,{method:"get",params:ue})})}function Q(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/md_tab_rules.json`,{method:"get",params:ue})})}function U(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/prize.json`,{method:"get",params:ue})})}function z(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${ue.id}.json`,{method:"get",params:ue})})}function Y(ue){return o(this,null,function*(){return(0,t.ZP)("/api/accounts/get_verification_code.json",{method:"get",params:ue})})}function ee(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${ue.userid}/phone_bind.json`,{method:"post",body:ue})})}function de(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${ue.userid}/email_bind.json`,{method:"post",body:ue})})}function me(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${ue.userid}/professional_auth_apply.json`,{method:"delete"})})}function _e(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/users/accounts/${ue.userid}/authentication_apply.json`,{method:"delete"})})}function be(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/prize_leader_account.json`,{method:"put",body:ue})})}function pt(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/competition_teams/${ue.teamid}/shixun_detail.json`,{method:"get"})})}function tt(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/competition_teams/${ue.teamid}/course_detail.json`,{method:"get"})})}function Ot(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/attachments/${ue.id}.json`,{method:"delete"})})}function _t(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.id}/get_certificate_info.json`,{method:"get",params:ue})})}function Gt(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.id}/basic_setting.json`,{method:"post",body:ue})})}function It(){return o(this,null,function*(){return Fetch("/api/competitions/download_template",{method:"get",responseType:"arraybuffer"})})}function Je(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue}/common_header.json`,{method:"get"})})}function Tt(ue){return o(this,null,function*(){return Fetch("/api/competitions.json",{method:"post",body:ue})})}function nr(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue==null?void 0:ue.id}/search_managers.json`,{method:"get",params:ue})})}function Nt(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue}/get_managers.json`,{method:"get"})})}function gr(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue==null?void 0:ue.id}/add_managers.json`,{method:"post",body:ue})})}function Rr(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue==null?void 0:ue.id}/delete_managers.json`,{method:"delete",body:ue})})}function Pr(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue}/get_picture.json`,{method:"get"})})}function at(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue==null?void 0:ue.id}/identifier_exist.json`,{method:"post",body:ue})})}function wt(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue}/get_shixun_settings.json`,{method:"get"})})}function dt(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue==null?void 0:ue.id}/shixun_add.json`,{method:"post",body:ue})})}function Ze(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue==null?void 0:ue.id}/shixun_delete.json`,{method:"delete",body:ue})})}function Oe(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue==null?void 0:ue.id}/shixun_select.json`,{method:"post",body:ue})})}function ot(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue}/info_finish.json`,{method:"get"})})}function Et(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue==null?void 0:ue.id}/competition_review.json`,{method:"post",body:c({},ue)})})}function ht(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/competition_teams.json`,{method:"get",params:ue})})}function Ve(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/all_team_members.json`,{method:"get",params:ue})})}function Ct(ue){return o(this,null,function*(){return(0,t.ZP)(`/api/competitions/${ue.identifier}/competition_commit_records/member_works.json`,{method:"get",params:ue})})}},91303:function(i,f,e){"use strict";e.d(f,{F:function(){return S},OE:function(){return I},ff:function(){return C},p1:function(){return E},_y:function(){return v},mK:function(){return D},gq:function(){return L},eM:function(){return k},BA:function(){return K},bA:function(){return H},Nx:function(){return Z},Qx:function(){return T},At:function(){return x},PX:function(){return O},Xl:function(){return R},y9:function(){return N},No:function(){return q},ay:function(){return j}});var t=e(33170),r=Object.defineProperty,n=Object.defineProperties,a=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,o=(F,$,M)=>$ in F?r(F,$,{enumerable:!0,configurable:!0,writable:!0,value:M}):F[$]=M,p=(F,$)=>{for(var M in $||($={}))u.call($,M)&&o(F,M,$[M]);if(s)for(var M of s($))c.call($,M)&&o(F,M,$[M]);return F},h=(F,$)=>n(F,a($)),d=(F,$)=>{var M={};for(var Q in F)u.call(F,Q)&&$.indexOf(Q)<0&&(M[Q]=F[Q]);if(F!=null&&s)for(var Q of s(F))$.indexOf(Q)<0&&c.call(F,Q)&&(M[Q]=F[Q]);return M},g=(F,$,M)=>new Promise((Q,U)=>{var z=de=>{try{ee(M.next(de))}catch(me){U(me)}},Y=de=>{try{ee(M.throw(de))}catch(me){U(me)}},ee=de=>de.done?Q(de.value):Promise.resolve(de.value).then(z,Y);ee((M=M.apply(F,$)).next())});const v=F=>g(void 0,null,function*(){var $=F,{id:M}=$,Q=d($,["id"]);return(0,t.ZP)(`/api/ec_years/${M}/course_results.json`,{method:"get",params:Q})}),S=F=>{let $=document.createElement("iframe");$.src=`/api/ec_years/${F}/course_results.xlsx`,$.style.display="none",document.body.appendChild($)},C=({ec_year_id:F})=>(0,t.ZP)(`/api/ec_years/${F}/course_results/get_class.json`,{method:"get"}),E=({ec_year_id:F,id:$,class_name:M=null})=>(0,t.ZP)(`/api/ec_years/${F}/course_results/${$}.json`,{method:"get",params:{class_name:M}}),x=({ec_year_id:F})=>(0,t.ZP)("/api/ec_courses/1/evaluations/compute_all_courses_data",{method:"post",body:{ec_year_id:F}}),O=({ec_course_id:F})=>(0,t.ZP)(`/api/ec_courses/${F}/evaluations/evaluation_data`,{method:"POST"}),I=F=>{let $=document.createElement("iframe");$.src=`/api/ec_years/${F}/ec_graduation_results.xlsx`,$.style.display="none",document.body.appendChild($)},T=({ec_year_id:F})=>(0,t.ZP)(`/api/ec_years/${F}/ec_graduation_results/compute_all`,{method:"post"}),R=({ec_year_id:F,id:$})=>(0,t.ZP)(`/api/ec_years/${F}/ec_graduation_results/compute_single?id=${$}`,{method:"POST"}),k=F=>(0,t.ZP)(`/api/ec_years/${F}/ec_graduation_results.json`,{method:"get"}),D=F=>(0,t.ZP)(`/api/ec_years/${F}/ec_graduation_results/get_formulas.json`,{method:"get"}),N=({ec_year_id:F,formula_one:$,formula_two:M,formula_three:Q})=>(0,t.ZP)(`/api/ec_years/${F}/ec_graduation_results/set_formulas.json`,{method:"PUT",body:{formula_one_id:$,formula_two_id:M,formula_three_id:Q}}),L=({ec_year_id:F,id:$})=>(0,t.ZP)(`/api/ec_years/${F}/ec_graduation_results/${$}.json`,{method:"get"}),q=F=>{var $=F,{ec_year_id:M,type:Q,goal_value:U}=$,z=d($,["ec_year_id","type","goal_value"]);let Y=`?type=${Q}`,ee={method:"PUT"};return Q==="all"&&(Y+=`&goal_value=${U}`),Q==="each"&&(ee=h(p({},ee),{body:z})),(0,t.ZP)(`/api/ec_years/${M}/ec_graduation_results/set_goal_value${Y}`,ee)};var W=(F,$,M)=>new Promise((Q,U)=>{var z=de=>{try{ee(M.next(de))}catch(me){U(me)}},Y=de=>{try{ee(M.throw(de))}catch(me){U(me)}},ee=de=>de.done?Q(de.value):Promise.resolve(de.value).then(z,Y);ee((M=M.apply(F,$)).next())});const K=F=>W(void 0,null,function*(){return(0,t.ZP)(`/api/schools/${F}/ec_majors/get_major_list.json`,{method:"get"})}),Z=F=>W(void 0,null,function*(){return(0,t.ZP)(`/api/ec_major_schools/${F}/ec_years/get_year_list.json`,{method:"get"})}),H=({ec_year_id:F,school_id:$})=>(0,t.ZP)(`/api/ec_years/${F}/top_pages.json`,{method:"get",params:{school_id:$}}),j=({id:F,name:$})=>(0,t.ZP)(`/api/ec_years/1/top_pages/${F}?name=${$}`,{method:"PUT"})},15835:function(i,f,e){"use strict";e.d(f,{$Q:function(){return T},$l:function(){return Ce},BJ:function(){return at},CD:function(){return Ue},Cd:function(){return Ve},Cl:function(){return er},Di:function(){return Tt},FN:function(){return Qe},Fl:function(){return gr},G$:function(){return U},GK:function(){return Nt},Ip:function(){return Ze},J:function(){return z},KE:function(){return Rr},L8:function(){return yt},LP:function(){return Oe},MK:function(){return nr},Mb:function(){return Er},N0:function(){return L},N3:function(){return pt},OL:function(){return Ke},OO:function(){return O},P8:function(){return Pe},PJ:function(){return ee},PT:function(){return st},Qc:function(){return W},RK:function(){return Q},Ty:function(){return Xn},UH:function(){return xn},UK:function(){return tt},Uj:function(){return ke},Ul:function(){return ht},VL:function(){return Ut},Vj:function(){return kt},W4:function(){return ue},WL:function(){return Xt},Wj:function(){return M},Wm:function(){return ze},X4:function(){return dt},Xn:function(){return Wt},Xo:function(){return Z},YY:function(){return Je},Ym:function(){return D},Yu:function(){return Ee},ZD:function(){return it},Zg:function(){return St},_B:function(){return We},_F:function(){return tr},_U:function(){return j},_u:function(){return de},aU:function(){return N},ab:function(){return ye},cC:function(){return Ln},cV:function(){return F},ck:function(){return $t},dp:function(){return q},eA:function(){return Zt},fG:function(){return C},gA:function(){return $},gG:function(){return ur},gJ:function(){return Te},hk:function(){return g},hv:function(){return v},iB:function(){return S},iU:function(){return E},iw:function(){return Cn},j:function(){return x},kp:function(){return vt},lL:function(){return I},lf:function(){return be},n$:function(){return _e},n7:function(){return H},nF:function(){return ut},o3:function(){return He},oS:function(){return ot},oX:function(){return ct},oy:function(){return xa},p7:function(){return k},pL:function(){return Ge},pu:function(){return wt},q6:function(){return Le},qf:function(){return It},qz:function(){return Et},s:function(){return Tr},sA:function(){return ir},sS:function(){return jt},se:function(){return Gt},tX:function(){return Xe},uR:function(){return Ot},ux:function(){return Pr},wy:function(){return _t},xA:function(){return dn},yE:function(){return K},yu:function(){return Wr},zP:function(){return R},zR:function(){return cr}});var t=e(33170),r=Object.defineProperty,n=Object.defineProperties,a=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,o=(ie,Jt,br)=>Jt in ie?r(ie,Jt,{enumerable:!0,configurable:!0,writable:!0,value:br}):ie[Jt]=br,p=(ie,Jt)=>{for(var br in Jt||(Jt={}))u.call(Jt,br)&&o(ie,br,Jt[br]);if(s)for(var br of s(Jt))c.call(Jt,br)&&o(ie,br,Jt[br]);return ie},h=(ie,Jt)=>n(ie,a(Jt)),d=(ie,Jt,br)=>new Promise((Yr,Hr)=>{var cn=vn=>{try{Tn(br.next(vn))}catch(Ht){Hr(Ht)}},wn=vn=>{try{Tn(br.throw(vn))}catch(Ht){Hr(Ht)}},Tn=vn=>vn.done?Yr(vn.value):Promise.resolve(vn.value).then(cn,wn);Tn((br=br.apply(ie,Jt)).next())});const g=ie=>(0,t.ZP)(`/api/exercises/${ie==null?void 0:ie.exercise_id}/statistics/list_student_score_by_question_type.json`,{method:"get",params:ie}),v=ie=>(0,t.ZP)(`/api/exercises/${ie==null?void 0:ie.exercise_id}/statistics/list_student_score_by_question.json`,{method:"get",params:ie}),S=ie=>(0,t.ZP)(`/api/exercises/${ie.exercise_id}/statistics/export_class_compare.xlsl`,{method:"get",params:ie}),C=ie=>(0,t.ZP)(`/api/exercises/${ie.exercise_id}/statistics/class_question_compare.json`,{method:"get",params:ie}),E=ie=>(0,t.ZP)(`/api/exercises/${ie==null?void 0:ie.exercise_id}/statistics/class_score_distribution.json`,{method:"get",params:ie}),x=ie=>(0,t.ZP)(`/api/exercises/${ie==null?void 0:ie.exercise_id}/exercise_tag_result.json`,{method:"get",params:ie}),O=ie=>(0,t.ZP)(`/api/exercises/${ie==null?void 0:ie.exercise_id}/statistics/list_student_score.json`,{method:"get",params:ie}),I=ie=>(0,t.ZP)(`/api/exercises/${ie==null?void 0:ie.exercise_id}/statistics/set_score_ranges.json`,{method:"put",body:ie}),T=ie=>(0,t.ZP)(`/api/exercises/${ie==null?void 0:ie.exercise_id}/statistics/score_ranges.json`,{method:"get",params:ie}),R=ie=>(0,t.ZP)(`/api/exercises/${ie.id}/sava_exam_summary.json`,{method:"post",body:ie}),k=ie=>(0,t.ZP)("/api/intelligent_reviews/exam_summary.json",{method:"post",body:ie}),D=ie=>(0,t.ZP)(`/api/exercises/${ie.id}/generate_exam_summary.json`,{method:"post",body:ie}),N=ie=>(0,t.ZP)(`/api/exercises/${ie.id}/exam_summary_settings.json`,{method:"post",body:ie}),L=ie=>d(void 0,null,function*(){return(0,t.ZP)(`/api/exercises/${ie==null?void 0:ie.exercise_id}/review_exercise_user.json`,{method:"post",body:ie})}),q=ie=>(0,t.ZP)(`/api/exercises/${ie==null?void 0:ie.id}/code_check.json`,{method:"get",params:ie}),W=ie=>(0,t.ZP)(`/api/exercises/${ie.id}/reset_pwd.json`,{method:"post",body:ie}),K=ie=>(0,t.ZP)(`/api/exercises/${ie.id}/encrypt_or_decrypt.json`,{method:"post",body:ie}),Z=ie=>d(void 0,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.id}/delayed_time_or_force.json`,{method:"post",body:ie})}),H=ie=>d(void 0,null,function*(){return(0,t.ZP)(`/api/exercises/${ie==null?void 0:ie.id}/exercise_time.json`,{method:"Get",params:ie})}),j=ie=>(0,t.ZP)(`/api/exercises/${ie==null?void 0:ie.id}/exercise_question_result.json`,{method:"get",params:ie}),F=ie=>(0,t.ZP)(`/api/exercises/${ie.id}/get_question_type_alias.json`,{method:"get",params:ie});function $(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercise_questions/${ie==null?void 0:ie.id}/teacher_update.json`,{method:"post",body:p({},ie)})})}function M(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercise_questions/${ie==null?void 0:ie.id}/adjust_comment.json`,{method:"post",body:p({},ie)})})}function Q(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.id}/edit_question_type_alias.json`,{method:"POST",body:ie})})}function U(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/exercise_lists.json`,{method:"get",params:p({},ie)})})}function z(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/exercise_identity_photos.json`,{method:"get",params:p({},ie)})})}function Y(ie){return d(this,null,function*(){return Fetch(`/api/exercises/${ie.categoryId}/video_push_url.json`,{method:"get",params:p({},ie)})})}function ee(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/query_identity_photo_state.json`,{method:"get",params:p({},ie)})})}function de(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/exercise_result.json`,{method:"get",params:p({},ie)})})}function me(ie){return d(this,null,function*(){return Fetch(`/api/exercises/${ie.categoryId}/exercise_score_area_setting.json`,{method:"post",body:p({},ie)})})}function _e(ie){return d(this,null,function*(){return(0,t.ZP)("/api/question_banks/bank_list.json",{method:"get",params:p({},ie)})})}function be(ie){return d(this,null,function*(){return(0,t.ZP)("/api/question_banks/save_banks.json",{method:"POST",body:p({},ie)})})}function pt(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/courses/${ie.coursesId}/exercises/publish_modal.json`,{method:"get",params:p({},ie)})})}function tt(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/common_header.json`,{method:"get",params:p({},ie)})})}function Ot(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/courses/${ie.coursesId}/exercises.json`,{method:"post",body:p({},ie)})})}function _t(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.exerciseId}.json`,{method:"put",body:p({},ie)})})}function Gt(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ie.exerciseId}/update_name.json`,{method:"post",body:p({},ie)})})}function It(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.categoryId}.json`,{method:"get",params:p({},ie)})})}function Je(ie){return d(this,null,function*(){return(0,t.ZP)("/api/tag_disciplines.json",{method:"get",params:p({},ie)})})}function Tt(ie){return d(this,null,function*(){const{id:Jt}=ie;return delete ie.id,(0,t.ZP)(`/api/exercise_questions/${Jt}.json`,{method:"put",body:p({},ie)})})}function nr(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/exercise_questions.json`,{method:"post",body:p({},ie)})})}function Nt(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercise_questions/${ie.id}/up_down.json`,{method:"post",body:p({},ie)})})}function gr(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercise_questions/${ie.id}.json`,{method:"delete"})})}function Rr(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/courses/${ie.coursesId}/exercises/end_modal.json`,{method:"get",params:p({},ie)})})}function Pr(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/publish_groups.json`,{method:"get",params:p({},ie)})})}function at(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.exerciseId}/user_exercise_detail.json`,{method:"get",params:p({},ie)})})}function wt(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.exerciseId}/consult_exercise.json`,{method:"post",body:p({},ie)})})}function dt(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.exerciseId}/teacher_appraise.json`,{method:"get",params:p({},ie)})})}function Ze(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercise_questions/${ie.id}/adjust_score.json`,{method:"post",body:p({},ie)})})}function Oe(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercise_questions/${ie.id}/batch_adjust_score.json`,{method:"post",body:p({},ie)})})}function ot(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.id}/adjust_score.json`,{method:"post",body:p({},ie)})})}function Et(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.id}/delayed_time.json`,{method:"post",body:p({},ie)})})}function ht(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/exercise_setting.json`,{method:"get",params:p({},ie)})})}function Ve(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/v2/exercises/${ie.categoryId}/exercise_setting.json`,{method:"get",params:p({},ie)})})}function Ct(ie){return d(this,null,function*(){return Fetch(`/api/exercises/${ie.categoryId}/commit_setting.json`,{method:"post",body:p({},ie)})})}function ue(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.exerciseId}/review_exercises_by_students.json`,{method:"post",body:p({},ie)})})}function ke(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/exercise_lists.xlsx`,{method:"get",params:h(p({},ie),{export:!0})})})}function We(ie){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/user_exercise_detail.json`,{method:"get",params:h(p({},ie),{login:null})})}function Ue(ie){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/start.json`,{method:"get",params:p({},ie)})}function Ge(ie){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/start_unlock.json`,{method:"post",body:p({},ie)})}function ct(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercise_questions/${ie.questionId}/exercise_answers.json`,{method:"post",body:ie})})}function Ut(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/commit_exercise.json`,{method:"post",body:ie})})}function vt(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/simulate_commit_exercise.json`,{method:"post",body:ie})})}function Le(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/redo_exercise.json`,{method:"post",body:ie})})}function yt(ie){return(0,t.ZP)(`/api/${ie.url}`,{method:"get",params:p({},ie)})}function ut(ie){return(0,t.ZP)(`/api/problems/${ie.id}/start.json`,{method:"get",params:p({},ie)})}function kt(ie){return(0,t.ZP)(`/api/exercises/${ie.id}/begin_commit.json`,{method:"get",params:p({},ie)})}function Xt(ie){return(0,t.ZP)(`/api/exercises/${ie.id}/simulate_begin_commit.json`,{method:"get",params:p({},ie)})}function ir(ie){return(0,t.ZP)("/api/examination_intelligent_settings/optional_items.json",{method:"post",body:p({},ie)})}function Wr(ie){return console.log("params:",ie),(0,t.ZP)(`/api/exercises/${ie.categoryId}/edit.json`,{method:"get",params:p({},ie)})}function xn(ie){return(0,t.ZP)(`/api/exercises/${ie.id}/get_objective_scores.json`,{method:"get",params:p({},ie)})}function Xe(ie){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/redo_modal.json`,{method:"get",params:p({},ie)})}function Tr(ie){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/student_redo_lists.json`,{method:"get",params:p({},ie)})}function dn(ie){return(0,t.ZP)("/api/exercises/get_user_exercises.json",{method:"get",params:ie})}function Cn(ie){return(0,t.ZP)(`/api/exercises/${ie.id}/exercise_header.json`,{method:"get",params:p({},ie)})}function Ln(ie){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/allow_close_camera.json`,{method:"post",body:p({},ie)})}function Xn(ie){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/get_exercise_user_info.json`,{method:"get",params:p({},ie)})}function xa(ie){return(0,t.ZP)(`/api/exercises/${ie.id}/record_screen`,{method:"post",params:p({},ie)})}function ye(ie){return(0,t.ZP)(`/api/exercises/${ie.id}/unbind_ip.json`,{method:"post",body:p({},ie)})}function er(ie){return(0,t.ZP)(`/api/exercises/${ie.id}/check_ip.json`,{method:"get",params:p({},ie)})}function St(ie){return(0,t.ZP)(`/api/exercises/${ie==null?void 0:ie.id}/check_user_exercise.json`,{method:"get",params:p({},ie)})}function Pt(ie){return Fetch(`/api/exercises/${ie.id}/make_up_students.json`,{method:"get",params:p({},ie)})}function Wt(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/courses/${ie.coursesId}/exercises/code_review_detail.json`,{method:"get",params:p({},ie)})})}function ur(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercise_questions/${ie.question_id}/adjust_score.json`,{method:"post",body:p({},ie)})})}function Er(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ie.categoryId}/simulate_exercise.json`,{method:"post",body:p({},ie)})})}function tr(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/simulate_start_answer.json`,{method:"get",params:p({},ie)})})}function st(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/exercise_time.json`,{method:"get",params:p({},ie)})})}function $t(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie.categoryId}/commit_screen_at.json`,{method:"post",body:p({},ie)})})}function it(ie,Jt){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie}/unlock_user`,{method:"post",body:Jt})})}function Pe(ie,Jt){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie}/save_screen_record.json`,{method:"post",body:Jt})})}function Ee(ie,Jt){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie}/screen_record_list.json`,{method:"get",params:Jt})})}function Te(ie){return d(this,null,function*(){return(0,t.ZP)("/api/attachments/set_ecs_attachment.json",{method:"get",params:p({},ie)})})}function He(ie){return d(this,null,function*(){return(0,t.ZP)("/api/exercises/need_redo.json",{method:"get",params:ie})})}function jt(ie,Jt){return d(this,null,function*(){return(0,t.ZP)(`/api/exercises/${ie}/mark.json`,{method:"post",body:Jt})})}function Zt(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/myshixuns/${ie}/exit_delete_pod.json`,{method:"post",body:ie})})}function cr(ie){return d(this,null,function*(){return(0,t.ZP)("/api/users/change_exercise_score.json",{method:"put",body:ie})})}function Ce(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/exercise_questions/${ie==null?void 0:ie.id}/send_to_item_bank.json`,{method:"post",body:p({},ie)})})}function Qe(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/ai/wrong_question_push_charts/${ie.exercise_id}/wrong_details.json`,{method:"get",params:p({},ie)})})}function Ke(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/ai/wrong_question_push_charts/${ie.exercise_id}/wrong_question.json`,{method:"get",params:p({},ie)})})}function ze(ie){return d(this,null,function*(){return(0,t.ZP)(`/api/ai/wrong_question_push_charts/${ie.exercise_id}/wrong_question_lists.json`,{method:"get",params:p({},ie)})})}},13703:function(i,f,e){"use strict";e.d(f,{B0:function(){return d},Si:function(){return x},Sr:function(){return I},YP:function(){return O},b4:function(){return E},bc:function(){return p},dX:function(){return C},eh:function(){return T},iI:function(){return v},kd:function(){return h},qR:function(){return S},sW:function(){return g},ts:function(){return k},vL:function(){return R},z5:function(){return D}});var t=e(33170),r=Object.defineProperty,n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(N,L,q)=>L in N?r(N,L,{enumerable:!0,configurable:!0,writable:!0,value:q}):N[L]=q,c=(N,L)=>{for(var q in L||(L={}))a.call(L,q)&&u(N,q,L[q]);if(n)for(var q of n(L))s.call(L,q)&&u(N,q,L[q]);return N},o=(N,L,q)=>new Promise((W,K)=>{var Z=F=>{try{j(q.next(F))}catch($){K($)}},H=F=>{try{j(q.throw(F))}catch($){K($)}},j=F=>F.done?W(F.value):Promise.resolve(F.value).then(Z,H);j((q=q.apply(N,L)).next())});function p(N){return o(this,null,function*(){return(0,t.ZP)("/api/memos.json",{method:"get",params:N})})}function h(N){return o(this,null,function*(){return(0,t.ZP)("/api/discusses/forum_discusses.json",{method:"get",params:N})})}function d(N){return o(this,null,function*(){return(0,t.ZP)(`/api/memos/${N.id}/sticky_or_cancel.json`,{method:"post",body:N})})}function g(N){return o(this,null,function*(){return(0,t.ZP)(`/api/memos/${N.id}.json`,{method:"delete",body:N})})}function v(N){return o(this,null,function*(){return(0,t.ZP)("/api/memos/new.json",{method:"get",params:N})})}function S(N){return o(this,null,function*(){return(0,t.ZP)(`/api/memos/${N.id}/edit.json`,{method:"get",params:N})})}function C(N){return o(this,null,function*(){return(0,t.ZP)("/api/memos.json",{method:"post",body:c({},N)})})}function E(N){return o(this,null,function*(){return(0,t.ZP)(`/api/memos/${N.id}.json`,{method:"put",body:c({},N)})})}function x(N){return o(this,null,function*(){return(0,t.ZP)(`/api/memos/${N.id}.json`,{method:"get",params:N})})}function O(N){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${N.user_id}/watch.json`,{method:"post",body:N})})}function I(N){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${N.user_id}/watch.json`,{method:"delete",body:c({},N)})})}function T(N){return o(this,null,function*(){return(0,t.ZP)(`/api/discusses/${N.id}/reward_code.json`,{method:"post",body:N})})}function R(N){return o(this,null,function*(){return(0,t.ZP)(`/api/discusses/${N.id}/plus.json`,{method:"post",body:N})})}function k(N){return o(this,null,function*(){return(0,t.ZP)("/api/memos/reply.json",{method:"post",body:N})})}function D(N){return o(this,null,function*(){return(0,t.ZP)(`/api/memos/${N.id}/more_reply.json`,{method:"get",params:N})})}},34562:function(i,f,e){"use strict";e.d(f,{D2:function(){return n},n0:function(){return a},tk:function(){return s}});var t=e(33170),r=(u,c,o)=>new Promise((p,h)=>{var d=S=>{try{v(o.next(S))}catch(C){h(C)}},g=S=>{try{v(o.throw(S))}catch(C){h(C)}},v=S=>S.done?p(S.value):Promise.resolve(S.value).then(d,g);v((o=o.apply(u,c)).next())});function n(){return r(this,null,function*(){return(0,t.ZP)("/api/setting.json",{method:"Get"})})}function a(){return r(this,null,function*(){return(0,t.ZP)("/api/users/system_update.json",{method:"Get"})})}function s(u){return r(this,null,function*(){return(0,t.ZP)("/api/search_records",{method:"post",body:u})})}},49711:function(i,f,e){"use strict";e.d(f,{B6:function(){return d},Gr:function(){return k},Mf:function(){return I},NA:function(){return x},PC:function(){return C},PP:function(){return E},QA:function(){return h},RP:function(){return L},Sv:function(){return N},YQ:function(){return O},_n:function(){return q},hL:function(){return R},je:function(){return S},mM:function(){return v},wA:function(){return D},x_:function(){return g},y0:function(){return T},y3:function(){return p}});var t=e(33170),r=Object.defineProperty,n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(W,K,Z)=>K in W?r(W,K,{enumerable:!0,configurable:!0,writable:!0,value:Z}):W[K]=Z,c=(W,K)=>{for(var Z in K||(K={}))a.call(K,Z)&&u(W,Z,K[Z]);if(n)for(var Z of n(K))s.call(K,Z)&&u(W,Z,K[Z]);return W},o=(W,K,Z)=>new Promise((H,j)=>{var F=Q=>{try{M(Z.next(Q))}catch(U){j(U)}},$=Q=>{try{M(Z.throw(Q))}catch(U){j(U)}},M=Q=>Q.done?H(Q.value):Promise.resolve(Q.value).then(F,$);M((Z=Z.apply(W,K)).next())});function p(W){return o(this,null,function*(){return(0,t.ZP)(`/api/graduation_tasks/${W.categoryId}.json`,{method:"get",params:c({},W)})})}function h(W){return o(this,null,function*(){return(0,t.ZP)(`/api/graduation_tasks/${W.categoryId}/tasks_list.json`,{method:"get",params:c({},W)})})}function d(W){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${W.coursesId}/graduation_topics/${W.categoryId}/show_detail.json`,{method:"get",params:c({},W)})})}function g(W){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${W.coursesId}/graduation_topics/${W.categoryId}.json`,{method:"get",params:c({},W)})})}function v(W){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${W.coursesId}/graduation_topics/${W.categoryId}/refuse_student_topic.json`,{method:"post",body:c({},W)})})}function S(W){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${W.coursesId}/graduation_topics/${W.categoryId}/accept_student_topic.json`,{method:"post",body:c({},W)})})}function C(W){return o(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${W.categoryId}/show_comment.json`,{method:"get",params:c({},W)})})}function E(W){return o(this,null,function*(){return(0,t.ZP)("/api/users/reply_message.json",{method:"post",body:c({},W)})})}function x(W){return o(this,null,function*(){return(0,t.ZP)("/api/praise_tread/like.json",{method:"post",body:c({},W)})})}function O(W){return o(this,null,function*(){return(0,t.ZP)("/api/praise_tread/unlike.json",{method:"delete",body:c({},W)})})}function I(W){return o(this,null,function*(){return(0,t.ZP)("/api/commons/delete.json",{method:"delete",body:c({},W)})})}function T(W){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${W.coursesId}/graduation_topics/new.json`,{method:"get",params:c({},W)})})}function R(W){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${W.coursesId}/graduation_topics/${W.categoryId}/edit.json`,{method:"get",params:c({},W)})})}function k(W){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${W.coursesId}/graduation_topics`,{method:"post",body:c({},W)})})}function D(W){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${W.coursesId}/graduation_topics/${W.categoryId}`,{method:"put",body:c({},W)})})}function N(W){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${W.coursesId}/graduation_tasks`,{method:"post",body:c({},W)})})}function L(W){return o(this,null,function*(){return(0,t.ZP)(`/api/graduation_tasks/${W.categoryId}.json`,{method:"put",body:c({},W)})})}function q(W){return o(this,null,function*(){return(0,t.ZP)(`/api/graduation_tasks/${W.categoryId}/edit.json`,{method:"get",params:c({},W)})})}},73983:function(i,f,e){"use strict";e.d(f,{AA:function(){return D},Db:function(){return h},Dd:function(){return S},F7:function(){return Z},Fi:function(){return Q},H3:function(){return v},HF:function(){return E},HH:function(){return g},Ib:function(){return F},J3:function(){return u},NT:function(){return n},NX:function(){return O},Ot:function(){return x},Ou:function(){return H},Ps:function(){return a},Rk:function(){return K},Tz:function(){return p},V1:function(){return $},Wz:function(){return s},Xh:function(){return d},Xw:function(){return W},YS:function(){return L},Zd:function(){return M},bS:function(){return I},ck:function(){return C},eh:function(){return k},il:function(){return c},j7:function(){return o},jW:function(){return N},km:function(){return q},l5:function(){return R},rU:function(){return U},xF:function(){return T},zC:function(){return j},zT:function(){return z}});var t=e(33170),r=(Y,ee,de)=>new Promise((me,_e)=>{var be=Ot=>{try{tt(de.next(Ot))}catch(_t){_e(_t)}},pt=Ot=>{try{tt(de.throw(Ot))}catch(_t){_e(_t)}},tt=Ot=>Ot.done?me(Ot.value):Promise.resolve(Ot.value).then(be,pt);tt((de=de.apply(Y,ee)).next())});function n(Y){return(0,t.ZP)("/api/schools/search.json",{method:"get",params:Y})}function a(Y){return(0,t.ZP)(`/api/schools/${Y.id}/departments/for_option.json`,{method:"get",params:Y})}function s(Y){return(0,t.ZP)("/api/graduations.json",{method:"POST",body:Y})}function u(Y){return(0,t.ZP)("/api/graduations.json",{method:"get",params:Y})}function c(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.identifier}/graduation_stages/${Y.stageid}/authorized_redelivery.json`,{method:"POST",body:Y})})}function o(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.identifier}/graduation_stages/${Y.stageid}/submit.json`,{method:"POST",body:Y})})}function p(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.id}/student_tasks/export_status.json`,{method:"get",params:Y})})}function h(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.id}/student_tasks/export_all_attachments.json`,{method:"get",params:Y})})}function d(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.identifier}/graduation_stages/${Y.id}.json`,{method:"get",params:Y})})}function g(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.id}/student_tasks/set_final_score.json`,{method:"POST",body:Y})})}function v(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.id}/student_tasks/final_score.json`,{method:"get",params:Y})})}function S(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.id}/set_novice_guide.json`,{method:"POST",body:Y})})}function C(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.id}/graduation_notices/${Y.doid}/set_do.json`,{method:"POST",body:Y})})}function E(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.id}/graduation_teachers.json`,{method:"POST",body:Y})})}function x(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.identifier}/graduation_students/${Y.id}/update_major.json`,{method:"PUT",body:Y})})}function O(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.id}/graduation_students.json`,{method:"POST",body:Y})})}function I(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.id}/graduation_teachers/search.json`,{method:"get",params:Y})})}function T(Y){return r(this,null,function*(){return(0,t.ZP)("/api/schools/search.json",{method:"get",params:Y})})}function R(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.id}/graduation_students/search.json`,{method:"get",params:Y})})}function k(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.id}/graduation_students.json`,{method:"get",params:Y})})}function D(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.id}/graduation_teachers.json`,{method:"get",params:Y})})}function N(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.graduation_id}/graduation_tasks.json`,{method:"POST",body:Y})})}function L(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.graduation_id}/graduation_tasks/${Y.id}.json`,{method:"PUT",body:Y})})}function q(Y){return r(this,null,function*(){var ee;return(0,t.ZP)(`/api/graduations/${Y.id}/graduation_tasks/${(ee=Y.ids)==null?void 0:ee[0]}`,{method:"DELETE",body:{ids:Y.ids}})})}function W(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.id}/graduation_tasks.json`,{method:"get",params:Y})})}function K(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.id}/graduation_notices.json`,{method:"get",params:Y})})}function Z(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y.id}.json`,{method:"get"})})}function H(Y){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y==null?void 0:Y.id}/common_header.json`,{method:"get"})})}function j(Y,ee){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y}/preview.json`,{method:"get"})})}function F(Y,ee){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y}/graduation_teachers/not_pass.json`,{method:"post",body:ee})})}function $(Y,ee){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y}/graduation_teachers/pass.json`,{method:"post",body:ee})})}function M(Y,ee){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y}/graduation_students/not_pass.json`,{method:"post",body:ee})})}function Q(Y,ee){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y}/graduation_students/pass.json`,{method:"post",body:ee})})}function U(Y,ee){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y}/graduation_students/batch_delete`,{method:"delete",body:ee})})}function z(Y,ee){return r(this,null,function*(){return(0,t.ZP)(`/api/graduations/${Y}/graduation_teachers/batch_delete`,{method:"delete",body:ee})})}},51710:function(i,f,e){"use strict";e.d(f,{LA:function(){return u},S_:function(){return c},Tt:function(){return n},cR:function(){return a},vm:function(){return s}});var t=e(33170),r=(o,p,h)=>new Promise((d,g)=>{var v=E=>{try{C(h.next(E))}catch(x){g(x)}},S=E=>{try{C(h.throw(E))}catch(x){g(x)}},C=E=>E.done?d(E.value):Promise.resolve(E.value).then(v,S);C((h=h.apply(o,p)).next())});function n(){return r(this,null,function*(){return(0,t.ZP)("/api/home/index.json",{method:"Get"})})}function a(o){return r(this,null,function*(){return(0,t.ZP)("/api/courses/apply_to_join_course.json",{method:"post",body:o})})}function s(o){return r(this,null,function*(){return(0,t.ZP)("/api/project_applies.json",{method:"post",body:o})})}function u(o){return r(this,null,function*(){return(0,t.ZP)("/api/users/home_notice.json",{method:"Get"})})}function c(o){return r(this,null,function*(){return(0,t.ZP)("/api/users/view_notice.json",{method:"post",body:o})})}},21450:function(i,f,e){"use strict";e.d(f,{AD:function(){return p},Ig:function(){return h},Ko:function(){return v},QJ:function(){return S},Ub:function(){return C},V8:function(){return d},dl:function(){return E},w0:function(){return g}});var t=e(33170),r=Object.defineProperty,n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(x,O,I)=>O in x?r(x,O,{enumerable:!0,configurable:!0,writable:!0,value:I}):x[O]=I,c=(x,O)=>{for(var I in O||(O={}))a.call(O,I)&&u(x,I,O[I]);if(n)for(var I of n(O))s.call(O,I)&&u(x,I,O[I]);return x},o=(x,O,I)=>new Promise((T,R)=>{var k=L=>{try{N(I.next(L))}catch(q){R(q)}},D=L=>{try{N(I.throw(L))}catch(q){R(q)}},N=L=>L.done?T(L.value):Promise.resolve(L.value).then(k,D);N((I=I.apply(x,O)).next())});function p(x){return o(this,null,function*(){return(0,t.ZP)("/api/users/tidings.json",{method:"get",params:c({},x)})})}function h(x){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${x.userId}/unread_message_info.json`,{method:"get",params:c({},x)})})}function d(x){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${x.userId}/private_messages.json`,{method:"get",params:c({},x)})})}function g(x){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${x.userId}/private_messages.json`,{method:"post",body:c({},x)})})}function v(x){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${x.id}/recent_contacts.json`,{method:"get",params:c({},x)})})}function S(x){return o(this,null,function*(){return(0,t.ZP)("/api/users_for_private_messages.json",{method:"get",params:c({},x)})})}function C(x){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${x.userId}/private_message_details.json`,{method:"get",params:c({},x)})})}function E(x){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${x.userId}/private_messages/${x.id}.json`,{method:"delete"})})}},36600:function(i,f,e){"use strict";e.d(f,{A2:function(){return S},CI:function(){return d},Ep:function(){return v},Ex:function(){return T},R7:function(){return p},WW:function(){return R},_V:function(){return I},ms:function(){return x},s0:function(){return C},vf:function(){return g},xn:function(){return h},yy:function(){return O}});var t=e(33170),r=Object.defineProperty,n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(k,D,N)=>D in k?r(k,D,{enumerable:!0,configurable:!0,writable:!0,value:N}):k[D]=N,c=(k,D)=>{for(var N in D||(D={}))a.call(D,N)&&u(k,N,D[N]);if(n)for(var N of n(D))s.call(D,N)&&u(k,N,D[N]);return k},o=(k,D,N)=>new Promise((L,q)=>{var W=H=>{try{Z(N.next(H))}catch(j){q(j)}},K=H=>{try{Z(N.throw(H))}catch(j){q(j)}},Z=H=>H.done?L(H.value):Promise.resolve(H.value).then(W,K);Z((N=N.apply(k,D)).next())});function p(k){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${k.coursesId}/online_learning.json`,{method:"get"})})}function h(k){return o(this,null,function*(){return(0,t.ZP)(`/api/course_stages/${k.id}.json`,{method:"put",body:k})})}function d(k){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${k.coursesId}/course_stages.json`,{method:"post",body:k})})}function g(k){return o(this,null,function*(){return(0,t.ZP)(`/api/course_stages/${k.id}/add_shixun_to_stage.json`,{method:"post",body:k})})}function v(k){return o(this,null,function*(){return(0,t.ZP)(`/api/course_stages/${k.id}/select_shixun_to_stage.json`,{method:"post",body:k})})}function S(k){return o(this,null,function*(){return(0,t.ZP)(`/api/course_stages/${k.id}/add_video_to_stage.json`,{method:"post",body:k})})}function C(k){return o(this,null,function*(){return(0,t.ZP)(`/api/course_stages/${k.id}/add_attachment_to_stage.json`,{method:"post",body:k})})}function E(k){return o(this,null,function*(){return Fetch("/api/paths/add_shixun_to_stage.json",{method:"post",body:k})})}function x(k){return o(this,null,function*(){return(0,t.ZP)(`/api/course_stages/${k.id}/up_position.json`,{method:"post"})})}function O(k){return o(this,null,function*(){return(0,t.ZP)(`/api/course_stages/${k.id}/down_position.json`,{method:"post"})})}function I(k){return o(this,null,function*(){return(0,t.ZP)(`/api/course_stages/${k.id}.json`,{method:"delete"})})}function T(k){return o(this,null,function*(){return(0,t.ZP)(`/api/course_stages/${k.stage_id}/items/move_position.json`,{method:"post",body:c({},k)})})}function R(k){return o(this,null,function*(){return(0,t.ZP)(`/api/course_stages/${k.stage_id}/items/${k.id}`,{method:"delete"})})}},56443:function(i,f,e){"use strict";e.d(f,{DF:function(){return S},Di:function(){return $},Dm:function(){return K},Dq:function(){return de},Gd:function(){return v},Hb:function(){return me},Hm:function(){return L},ID:function(){return o},JP:function(){return ee},NC:function(){return D},Pl:function(){return C},Qc:function(){return a},Qp:function(){return Z},RK:function(){return h},YP:function(){return N},a2:function(){return u},ar:function(){return g},cV:function(){return p},d1:function(){return d},dp:function(){return n},fn:function(){return E},iT:function(){return T},jK:function(){return W},kF:function(){return _e},kp:function(){return I},lc:function(){return O},oF:function(){return Q},q$:function(){return c},qN:function(){return q},tS:function(){return x},ts:function(){return R},un:function(){return j},w0:function(){return F},wX:function(){return H},yE:function(){return s}});var t=e(33170),r=(be,pt,tt)=>new Promise((Ot,_t)=>{var Gt=Tt=>{try{Je(tt.next(Tt))}catch(nr){_t(nr)}},It=Tt=>{try{Je(tt.throw(Tt))}catch(nr){_t(nr)}},Je=Tt=>Tt.done?Ot(Tt.value):Promise.resolve(Tt.value).then(Gt,It);Je((tt=tt.apply(be,pt)).next())});const n=be=>(0,t.ZP)(`/api/examination_banks/${be==null?void 0:be.id}/code_check.json`,{method:"get",params:be}),a=be=>(0,t.ZP)(`/api/examination_banks/${be.id}/reset_pwd.json`,{method:"post",body:be}),s=be=>(0,t.ZP)(`/api/examination_banks/${be.id}/encrypt_or_decrypt.json`,{method:"post",body:be}),u=be=>(0,t.ZP)("/api/examination_banks/exist_course.json",{method:"post",body:be}),c=be=>(0,t.ZP)("/api/examination_banks/check_examination_banks.json",{method:"post",body:be}),o=be=>(0,t.ZP)(`/api/examination_banks/${be.id}/copy.json`,{method:"post",body:be}),p=be=>(0,t.ZP)(`/api/examination_banks/${be.id}/get_question_type_alias.json`,{method:"get",params:be});function h(be){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${be.id}/edit_question_type_alias.json`,{method:"POST",body:be})})}function d(be){return r(this,null,function*(){return(0,t.ZP)("/api/disciplines.json",{method:"get",params:be})})}function g(be){return r(this,null,function*(){return(0,t.ZP)("/api/disciplines/by_examination_banks.json",{method:"get",params:be})})}function v(be){return r(this,null,function*(){return(0,t.ZP)("/api/examination_banks.json",{method:"get",params:be})})}function S(be){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${be.id}/set_public.json`,{method:"post"})})}function C(be){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${be.id}/set_private.json`,{method:"post"})})}function E(be){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${be.id}.json`,{method:"delete"})})}function x(be){return r(this,null,function*(){return(0,t.ZP)("/api/question_banks/my_courses.json",{method:"get",params:be})})}const O=be=>(0,t.ZP)("/api/examination_banks/batch_send_to_course.json",{method:"post",body:be});function I(be){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${be.id}/send_to_course.json`,{method:"post",body:be})})}function T(be){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${be.id}.json`,{method:"get",params:be})})}function R(be){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${be.id}/examination_banks_item_banks/${be.itemId}/set_score`,{method:"post",body:be})})}function k(be){return r(this,null,function*(){return Fetch(`/api/examination_banks/${be.id}/examination_banks_item_banks/${be.itemId}/set_shixun_score.json`,{method:"post",body:be})})}function D(be){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${be.id}/examination_banks_item_banks/${be.itemId}.json`,{method:"delete"})})}function N(be){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${be.id}/examination_banks_item_banks/batch_set_score.json`,{method:"post",body:be})})}function L(be){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${be.id}/examination_banks_item_banks/destroy_by_item_type.json`,{method:"delete",body:be})})}function q(be){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${be.id}/examination_banks_item_banks/${be.itemId}/adjust_position.json`,{method:"post",body:be})})}function W(be){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${be.id}.json`,{method:"put",body:be})})}function K(be){return r(this,null,function*(){return(0,t.ZP)("/api/teach_group_shares.json",{method:"get",params:be})})}function Z(be){return r(this,null,function*(){return(0,t.ZP)("/api/examination_banks/set_batch_public.json",{method:"post",body:be})})}function H(be){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${be==null?void 0:be.id}/set_public.json`,{method:"post",body:be})})}function j(be){return r(this,null,function*(){return(0,t.ZP)("/api/examination_banks/create_exam.json",{method:"post",body:be})})}function F(be){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${be.id}/update_exam.json`,{method:"put",body:be})})}function $(be){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${be.id}/edit_exam.json`,{method:"get"})})}function M(be,pt){return r(this,null,function*(){return Fetch(`/api/examination_banks/${be}/examination_banks_item_banks.json`,{method:"post",body:pt})})}function Q(be){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${be.id}/examination_banks_item_banks/create_item_bank.json`,{method:"post",body:be})})}function U(be,pt){return r(this,null,function*(){return Fetch(`/api/examination_banks/${be}/sort_question_type.json`,{method:"post",body:pt})})}function z(be){return r(this,null,function*(){return Fetch(`/api/examination_banks/${be.exam_id}/examination_banks_item_banks/${be.question_id}.json`,{method:"delete"})})}function Y(be,pt){return r(this,null,function*(){return Fetch(`/api/examination_banks/${be}/batch_set_score.json`,{method:"post",body:pt})})}function ee(be){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${be}/simulate_exercise.json`,{method:"post"})})}function de(be){return r(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${be}/exercise_header.json`,{method:"get"})})}function me(be,pt,tt){return r(this,null,function*(){const Ot=new FormData;return Ot.append("file",pt),Ot.append("sub_discipline_id",tt),(0,t.ZP)(`/api/examination_banks/${be}/import_item_banks.json`,{method:"post",body:Ot},!0)})}function _e(be){return r(this,null,function*(){return(0,t.ZP)("/api/users/change_exam_score.json",{method:"put",body:be})})}},93671:function(i,f,e){"use strict";e.d(f,{$D:function(){return nr},A2:function(){return Wr},A7:function(){return He},AQ:function(){return tt},Ax:function(){return ye},Bn:function(){return cr},Bz:function(){return O},CB:function(){return k},CI:function(){return dn},D$:function(){return d},DQ:function(){return it},DU:function(){return Le},EG:function(){return W},EP:function(){return Tt},Ep:function(){return ir},Er:function(){return Oe},Eu:function(){return T},Ex:function(){return Pt},FD:function(){return Pe},F_:function(){return vt},Fg:function(){return $},GY:function(){return tr},Go:function(){return wt},Gz:function(){return M},Hl:function(){return Q},Ho:function(){return E},JS:function(){return ke},Jd:function(){return D},Ju:function(){return I},KM:function(){return Rr},M1:function(){return p},M2:function(){return Xe},Mt:function(){return Tr},Mu:function(){return er},NV:function(){return Zt},O9:function(){return C},PQ:function(){return R},Q:function(){return Et},S$:function(){return g},Sp:function(){return pt},VO:function(){return Ee},WD:function(){return Er},WO:function(){return Ze},WW:function(){return Wt},YP:function(){return Z},_C:function(){return jt},_V:function(){return xa},b:function(){return v},bw:function(){return Je},bz:function(){return $t},c2:function(){return N},c3:function(){return ue},cn:function(){return Y},dX:function(){return j},eJ:function(){return at},ef:function(){return Ut},fh:function(){return ee},fj:function(){return dt},hS:function(){return U},jT:function(){return Te},j_:function(){return H},ke:function(){return ur},lk:function(){return be},mB:function(){return h},mE:function(){return x},mQ:function(){return _e},ms:function(){return Ln},mx:function(){return Ve},nq:function(){return F},ol:function(){return st},p:function(){return _t},p4:function(){return ht},pU:function(){return me},pf:function(){return q},rS:function(){return We},rs:function(){return Pr},s0:function(){return xn},se:function(){return L},sm:function(){return Ct},tS:function(){return z},tu:function(){return de},ue:function(){return Ot},vf:function(){return kt},w4:function(){return Gt},wv:function(){return K},xG:function(){return Xt},xn:function(){return ut},yN:function(){return It},yy:function(){return Xn},zc:function(){return S}});var t=e(33170),r=Object.defineProperty,n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(Ce,Qe,Ke)=>Qe in Ce?r(Ce,Qe,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Ce[Qe]=Ke,c=(Ce,Qe)=>{for(var Ke in Qe||(Qe={}))a.call(Qe,Ke)&&u(Ce,Ke,Qe[Ke]);if(n)for(var Ke of n(Qe))s.call(Qe,Ke)&&u(Ce,Ke,Qe[Ke]);return Ce},o=(Ce,Qe,Ke)=>new Promise((ze,ie)=>{var Jt=Hr=>{try{Yr(Ke.next(Hr))}catch(cn){ie(cn)}},br=Hr=>{try{Yr(Ke.throw(Hr))}catch(cn){ie(cn)}},Yr=Hr=>Hr.done?ze(Hr.value):Promise.resolve(Hr.value).then(Jt,br);Yr((Ke=Ke.apply(Ce,Qe)).next())});const p=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/subject_knowledge/student_detail.json",{method:"get",params:Ce})}),h=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/subject_knowledge/knowledge_detail.json",{method:"get",params:Ce})}),d=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/subject_knowledge/update_statistic.json",{method:"get",params:Ce})}),g=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/subject_knowledge/statistic_lists.json",{method:"get",params:Ce})}),v=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/subject_knowledge/route_statistics.json",{method:"get",params:Ce})}),S=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/knowledge/v2/send_to_course.json",{method:"POST",body:Ce})}),C=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/knowledge/v2/check_knowledge_repeat.json",{method:"POST",body:Ce})}),E=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/knowledge/v2/courses.json",{method:"get",params:Ce})}),x=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/subject_knowledge/toggle.json",{method:"get",params:Ce})}),O=Ce=>o(void 0,null,function*(){return(0,t.ZP)(`/api/v2/knowledge_graphs/${Ce==null?void 0:Ce.graphable_type}/${Ce==null?void 0:Ce.graphable_id}`,{method:"get",params:Ce})}),I=Ce=>o(void 0,null,function*(){return(0,t.ZP)(`/api/ability_goals/${Ce==null?void 0:Ce.id}/detail.json`,{method:"get",params:Ce})}),T=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/ability_goals/home.json",{method:"get",params:Ce})}),R=Ce=>o(void 0,null,function*(){return(0,t.ZP)(`/api/ability_tags/${Ce==null?void 0:Ce.id}.json`,{method:"delete",body:Ce})}),k=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/ability_tags.json",{method:"POST",body:Ce})}),D=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/ability_tags.json",{method:"get",params:Ce})}),N=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/subject_knowledge/tree.json",{method:"get",params:Ce})}),L=Ce=>o(void 0,null,function*(){return(0,t.ZP)(`/api/ability_goals/${Ce==null?void 0:Ce.id}/edit`,{method:"get",params:Ce})}),q=Ce=>o(void 0,null,function*(){return(0,t.ZP)(`/api/ability_goals/${Ce==null?void 0:Ce.id}.json`,{method:"delete",body:Ce})}),W=Ce=>o(void 0,null,function*(){return(0,t.ZP)(`/api/ability_goals/${Ce==null?void 0:Ce.id}.json`,{method:"PUT",body:Ce})}),K=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/ability_goals.json",{method:"POST",body:Ce})}),Z=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/ability_goals.json",{method:"get",params:Ce})}),H=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/knowledge/v2/update_knowledge_statistic.json",{method:"POST",body:Ce})}),j=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/knowledge/v2/subject_knowledge_statistic.json",{method:"Get",params:Ce})}),F=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/subject_statistics/subject_use_infos.json",{method:"Get",params:Ce})}),$=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/subject_statistics/rank_list.json",{method:"Get",params:Ce})}),M=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/subject_statistics/statistics_body.json",{method:"Get",params:Ce})}),Q=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/subject_statistics/statistics_header.json",{method:"Get",params:Ce})}),U=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/subject_statistics/online_count.json",{method:"Get",params:Ce})});function z(Ce){return o(this,null,function*(){return(0,t.ZP)("/api/paths.json",{method:"Get",params:c({},Ce)})})}function Y(Ce){return o(this,null,function*(){return(0,t.ZP)("/api/intelligent_recommendations/subject_lists.json",{method:"Get",params:c({},Ce)})})}function ee(Ce){return o(this,null,function*(){return(0,t.ZP)("/api/disciplines.json",{method:"Get",params:c({},Ce)})})}function de(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}.json`,{method:"PUT",body:Ce})})}function me(Ce){return o(this,null,function*(){return(0,t.ZP)("/api/paths.json",{method:"post",body:Ce})})}function _e(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}/edit.json`,{method:"get"})})}function be(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}.json`,{method:"get",params:c({identifier:Ce.id},Ce)})})}function pt(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ce.id}.json`,{method:"get",params:c({identifier:Ce.id},Ce)})})}function tt(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}/right_banner.json`,{method:"get",params:Ce})})}function Ot(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}/spoc_courses.json`,{method:"get",params:Ce})})}const _t=Ce=>o(void 0,null,function*(){return(0,t.ZP)("/api/v2/stages.json",{method:"Get",params:Ce})}),Gt=Ce=>o(void 0,null,function*(){return(0,t.ZP)(`/api/v2/stage_shixuns/${Ce.id}/children.json`,{method:"Get",params:Ce})});function It(Ce){return o(this,null,function*(){return(0,t.ZP)("/api/stages.json",{method:"get",params:Ce})})}function Je(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}/update_team_title.json`,{method:"post",body:Ce})})}function Tt(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}/delete_member.json`,{method:"Delete",body:Ce})})}function nr(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}/spoc_courses/${Ce==null?void 0:Ce.courseid}.json`,{method:"Delete"})})}function Nt(Ce){return o(this,null,function*(){return Fetch(`/api/paths/${Ce.id}/up_member_position.json`,{method:"post",body:Ce})})}function gr(Ce){return o(this,null,function*(){return Fetch(`/api/paths/${Ce.id}/down_member_position.json`,{method:"post",body:Ce})})}function Rr(Ce){return o(this,null,function*(){return(0,t.ZP)("/api/collections.json",{method:"post",body:Ce})})}function Pr(Ce){return o(this,null,function*(){return(0,t.ZP)("/api/collections/cancel.json",{method:"Delete",body:Ce})})}function at(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}.json`,{method:"Delete",body:Ce})})}function wt(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}/publish.json`,{method:"post",body:Ce})})}function dt(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}/cancel_publish.json`,{method:"post",body:Ce})})}function Ze(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}/apply_public.json`,{method:"post",body:Ce})})}function Oe(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}/cancel_public.json`,{method:"post",body:Ce})})}function ot(Ce){return o(this,null,function*(){return Fetch(`/api/paths/${Ce.id}/choose_course.json`,{method:"get",params:Ce})})}function Et(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}/send_to_course.json`,{method:"post",body:Ce})})}function ht(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${Ce.id}/send_to_course.json`,{method:"post",body:Ce})})}function Ve(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}/add_subject_members.json`,{method:"post",body:Ce})})}function Ct(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}/spoc_courses.json`,{method:"post",body:Ce})})}function ue(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}/appointment.json`,{method:"post",body:Ce})})}function ke(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ce.id}/join_excellent_course.json`,{method:"post",body:Ce})})}function We(Ce){return o(this,null,function*(){return(0,t.ZP)("/api/watch_attachment_histories.json",{method:"post",body:Ce})})}function Ue(Ce){return o(this,null,function*(){return Fetch(`/api/paths/${Ce.id}/statistics_info.json`,{method:"get",params:Ce})})}function Ge(Ce){return o(this,null,function*(){return Fetch(`/api/paths/${Ce.id}/shixun_analyze.json`,{method:"get",params:Ce})})}function ct(Ce){return o(this,null,function*(){return Fetch(`/api/paths/${Ce.id}/learning_analyze.json`,{method:"get",params:Ce})})}function Ut(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}/learning_statistics.json`,{method:"get",params:Ce})})}function vt(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}/shixun_statistics.json`,{method:"get",params:Ce})})}function Le(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}/study_analyze/${Ce.type}.json`,{method:"get",params:Ce})})}function yt(Ce){return o(this,null,function*(){return Fetch("/api/paths/append_to_stage.json",{method:"post",body:Ce})})}function ut(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/stages/${Ce.id}.json`,{method:"put",body:Ce})})}function kt(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/stages/${Ce.id}/add_shixun_to_stage.json`,{method:"post",body:Ce})})}const Xt=Ce=>o(void 0,null,function*(){return(0,t.ZP)(`/api/stages/${Ce==null?void 0:Ce.stage_id}/select_challenge_to_stage.json`,{method:"post",body:Ce})});function ir(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/stages/${Ce.id}/select_shixun_to_stage.json`,{method:"post",body:Ce})})}function Wr(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/stages/${Ce.id}/add_video_to_stage.json`,{method:"post",body:Ce})})}function xn(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/stages/${Ce.id}/add_attachment_to_stage.json`,{method:"post",body:Ce})})}function Xe(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/stage_shixuns/${Ce.id}.json`,{method:"put",body:Ce})})}function Tr(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/stages/${Ce.id}/add_blank_to_stage.json`,{method:"post",body:Ce})})}function dn(Ce){return o(this,null,function*(){return(0,t.ZP)("/api/stages.json",{method:"post",body:Ce})})}function Cn(Ce){return o(this,null,function*(){return Fetch("/api/paths/add_shixun_to_stage.json",{method:"post",body:Ce})})}function Ln(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/stages/${Ce.id}/up_position.json`,{method:"get"})})}function Xn(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/stages/${Ce.id}/down_position.json`,{method:"get"})})}function xa(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/stages/${Ce.id}.json`,{method:"delete"})})}function ye(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.pathId}/discusses.json`,{method:"get",params:c({},Ce)})})}function er(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ce.coursesId}/excellent_discusses.json`,{method:"get",params:c({},Ce)})})}function St(Ce){return o(this,null,function*(){return Fetch("/api/discusses.json",{method:"post",body:c({},Ce)})})}function Pt(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/stages/${Ce.stage_id}/items/move_position`,{method:"post",body:c({},Ce)})})}function Wt(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/stages/${Ce.stage_id}/items/${Ce.id}`,{method:"delete"})})}function ur(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${Ce.id}/excellent_discuss`,{method:"post",body:c({},Ce)})})}function Er(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/paths/${Ce.id}/post_discuss`,{method:"post",body:c({},Ce)})})}function tr(Ce){return o(this,null,function*(){return(0,t.ZP)("/api/schools/for_option.json",{method:"get",params:Ce})})}function st(Ce){return o(this,null,function*(){return(0,t.ZP)("/api/schools/province_data.json",{method:"get",params:Ce})})}function $t(Ce){return o(this,null,function*(){return(0,t.ZP)("/api/add_school_applies.json",{method:"post",body:Ce})})}function it(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/stages/${Ce==null?void 0:Ce.id}/add_homework_to_stage.json`,{method:"post",body:Ce})})}function Pe(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/stage_shixuns/${Ce==null?void 0:Ce.id}/edit.json`,{method:"get",params:Ce})})}function Ee(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/stage_shixuns/${Ce==null?void 0:Ce.id}.json`,{method:"put",body:Ce})})}function Te(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${Ce==null?void 0:Ce.user_id}/subjects/subject_homework.json`,{method:"get",params:Ce})})}function He(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${Ce==null?void 0:Ce.user_id}/courses/course_homework.json`,{method:"get",params:Ce})})}function jt(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/stages/${Ce==null?void 0:Ce.id}/batch_add_homework_to_stage.json`,{method:"post",body:Ce})})}function Zt(Ce){return o(this,null,function*(){return(0,t.ZP)("/api/paths/get_homework_detail.json",{method:"get",params:Ce})})}function cr(Ce){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${Ce==null?void 0:Ce.user_login}/subjects/cancel.json`,{method:"get",params:Ce})})}},32027:function(i,f,e){"use strict";e.d(f,{Fd:function(){return F},Hi:function(){return g},IU:function(){return D},KE:function(){return S},Kc:function(){return M},MK:function(){return N},Q9:function(){return I},Qg:function(){return k},Qn:function(){return E},UK:function(){return d},W:function(){return U},Ye:function(){return R},_c:function(){return p},hO:function(){return K},iV:function(){return Q},jy:function(){return L},kp:function(){return W},lf:function(){return O},m7:function(){return v},n$:function(){return x},rJ:function(){return T},s3:function(){return h},ux:function(){return C},vf:function(){return j},wh:function(){return q},wo:function(){return $},x$:function(){return H}});var t=e(33170),r=Object.defineProperty,n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(z,Y,ee)=>Y in z?r(z,Y,{enumerable:!0,configurable:!0,writable:!0,value:ee}):z[Y]=ee,c=(z,Y)=>{for(var ee in Y||(Y={}))a.call(Y,ee)&&u(z,ee,Y[ee]);if(n)for(var ee of n(Y))s.call(Y,ee)&&u(z,ee,Y[ee]);return z},o=(z,Y,ee)=>new Promise((de,me)=>{var _e=tt=>{try{pt(ee.next(tt))}catch(Ot){me(Ot)}},be=tt=>{try{pt(ee.throw(tt))}catch(Ot){me(Ot)}},pt=tt=>tt.done?de(tt.value):Promise.resolve(tt.value).then(_e,be);pt((ee=ee.apply(z,Y)).next())});const p=z=>o(void 0,null,function*(){return(0,t.ZP)(`/api/poll_questions/${z==null?void 0:z.id}/commit_word_cloud.json`,{method:"Get",params:z})});function h(z){return o(this,null,function*(){return(0,t.ZP)(`/api/polls/${z.categoryId}/poll_lists.json`,{method:"get",params:c({},z)})})}function d(z){return o(this,null,function*(){return(0,t.ZP)(`/api/polls/${z.categoryId}/common_header.json`,{method:"get"})})}function g(z){return o(this,null,function*(){return(0,t.ZP)(`/api/polls/${z.categoryId}/poll_setting.json`,{method:"get"})})}function v(z){return o(this,null,function*(){return(0,t.ZP)(`/api/polls/${z.categoryId}/commit_setting.json`,{method:"post",body:c({},z)})})}function S(z){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${z.coursesId}/polls/end_poll_modal.json`,{method:"get",params:c({},z)})})}function C(z){return o(this,null,function*(){return(0,t.ZP)(`/api/polls/${z.categoryId}/publish_groups.json`,{method:"get",params:c({},z)})})}function E(z){return o(this,null,function*(){return(0,t.ZP)(`/api/polls/${z.categoryId}/commit_result.json`,{method:"get",params:c({},z)})})}function x(z){return o(this,null,function*(){return(0,t.ZP)("/api/question_banks/bank_list.json",{method:"get",params:c({},z)})})}function O(z){return o(this,null,function*(){return(0,t.ZP)("/api/question_banks/save_banks.json",{method:"POST",body:c({},z)})})}function I(z){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${z.coursesId}/polls/publish_modal.json`,{method:"get",params:c({},z)})})}function T(z){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${z.coursesId}/polls.json`,{method:"POST",body:c({},z)})})}function R(z){return o(this,null,function*(){return(0,t.ZP)(`/api/polls/${z.categoryId}/edit.json`,{method:"get"})})}function k(z){return o(this,null,function*(){return(0,t.ZP)(`/api/polls/${z.pollsId}.json`,{method:"put",body:c({},z)})})}function D(z){return o(this,null,function*(){return(0,t.ZP)(`/api/poll_questions/${z.pollsId}.json`,{method:"put",body:c({},z)})})}function N(z){return o(this,null,function*(){return(0,t.ZP)(`/api/polls/${z.pollsId}/poll_questions.json`,{method:"post",body:c({},z)})})}function L(z){return o(this,null,function*(){return(0,t.ZP)(`/api/poll_questions/${z.pollsId}.json`,{method:"delete",body:c({},z)})})}function q(z){return o(this,null,function*(){return(0,t.ZP)(`/api/poll_questions/${z.pollsId}/up_down.json`,{method:"post",body:c({},z)})})}function W(z){return o(this,null,function*(){return(0,t.ZP)(`/api/exercise_banks/${z.topicId}.json`,{method:"get"})})}function K(z){return o(this,null,function*(){return(0,t.ZP)(`/api/exercise_banks/${z.topicId}.json`,{method:"put",body:c({},z)})})}function Z(z){return o(this,null,function*(){return Fetch(`/api/exercise_banks/${z.topicId}.json`,{method:"put",body:c({},z)})})}function H(z){return o(this,null,function*(){return(0,t.ZP)(`/api/exercise_bank_questions/${z.pollsId}.json`,{method:"delete",body:c({},z)})})}function j(z){return o(this,null,function*(){return(0,t.ZP)(`/api/poll_questions/${z.pollsId}/up_down.json`,{method:"post",body:c({},z)})})}function F(z){return o(this,null,function*(){return(0,t.ZP)("/api/poll_bank_questions.json",{method:"post",body:c({},z)})})}function $(z){return o(this,null,function*(){return(0,t.ZP)(`/api/poll_bank_questions/${z.pollsId}.json`,{method:"put",body:c({},z)})})}function M(z){return o(this,null,function*(){return(0,t.ZP)(`/api/exercise_bank_questions/${z.id}.json`,{method:"put",body:c({},z)})})}function Q(z){return o(this,null,function*(){return(0,t.ZP)("/api/exercise_bank_questions.json",{method:"post",body:c({},z)})})}function U(z){return o(this,null,function*(){return(0,t.ZP)(`/api/exercise_bank_questions/${z.exerciseId}/up_down.json`,{method:"post",body:c({},z)})})}},38244:function(i,f,e){"use strict";e.d(f,{$c:function(){return Et},A1:function(){return Oe},Bd:function(){return I},Bo:function(){return Z},Cc:function(){return F},Cn:function(){return Q},DF:function(){return x},Dm:function(){return Je},FG:function(){return K},GW:function(){return Tt},HF:function(){return N},Hm:function(){return z},IJ:function(){return Ze},L5:function(){return It},LS:function(){return Nt},MZ:function(){return wt},Mr:function(){return W},NZ:function(){return pt},Of:function(){return C},Pl:function(){return E},Qj:function(){return v},Qp:function(){return Rr},RT:function(){return ue},Rp:function(){return gr},U6:function(){return L},Vl:function(){return $},Wk:function(){return q},YP:function(){return U},Ys:function(){return R},al:function(){return T},bF:function(){return ht},d1:function(){return g},dt:function(){return Ve},et:function(){return ee},ex:function(){return S},fY:function(){return de},fn:function(){return O},hI:function(){return tt},hg:function(){return at},iT:function(){return H},lS:function(){return be},nD:function(){return nr},qN:function(){return Y},rV:function(){return k},s:function(){return _e},sD:function(){return dt},sS:function(){return Gt},ts:function(){return j},vi:function(){return ot},wX:function(){return Pr},x5:function(){return D},zh:function(){return me}});var t=e(33170),r=Object.defineProperty,n=Object.defineProperties,a=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,o=(ke,We,Ue)=>We in ke?r(ke,We,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):ke[We]=Ue,p=(ke,We)=>{for(var Ue in We||(We={}))u.call(We,Ue)&&o(ke,Ue,We[Ue]);if(s)for(var Ue of s(We))c.call(We,Ue)&&o(ke,Ue,We[Ue]);return ke},h=(ke,We)=>n(ke,a(We)),d=(ke,We,Ue)=>new Promise((Ge,ct)=>{var Ut=yt=>{try{Le(Ue.next(yt))}catch(ut){ct(ut)}},vt=yt=>{try{Le(Ue.throw(yt))}catch(ut){ct(ut)}},Le=yt=>yt.done?Ge(yt.value):Promise.resolve(yt.value).then(Ut,vt);Le((Ue=Ue.apply(ke,We)).next())});function g(ke){return d(this,null,function*(){return(0,t.ZP)("/api/disciplines.json",{method:"get",params:h(p({},ke),{clazz:"ItemBanksGroup"})})})}function v(ke){return d(this,null,function*(){return(0,t.ZP)("/api/item_baskets/basket_list.json",{method:"get",params:ke})})}function S(ke){return d(this,null,function*(){return(0,t.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:ke})})}function C(ke){return d(this,null,function*(){return(0,t.ZP)("/api/item_banks/list.json",{method:"post",body:ke})})}function E(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/item_banks/${ke.id}/set_private.json`,{method:"post"})})}function x(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/item_banks/${ke.id}/set_public.json`,{method:"post"})})}function O(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/item_banks/${ke.id}.json`,{method:"delete"})})}function I(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/problems/${ke.id}/start.json`,{method:"get"})})}function T(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/item_baskets/${ke.id}.json`,{method:"delete",body:p({},ke)})})}function R(ke){return d(this,null,function*(){return(0,t.ZP)("/api/item_baskets.json",{method:"post",body:ke})})}function k(ke){return d(this,null,function*(){return(0,t.ZP)("/api/examination_banks/cancel_items.json",{method:"post",body:ke})})}function D(ke){return d(this,null,function*(){return(0,t.ZP)("/api/item_baskets/delete_item_type.json",{method:"delete",body:{item_type:ke.type}})})}function N(ke){return d(this,null,function*(){return(0,t.ZP)("/api/examination_banks/cancel_items.json",{method:"post",body:ke})})}function L(ke){return d(this,null,function*(){return(0,t.ZP)("/api/tag_disciplines.json",{method:"post",body:ke})})}function q(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/item_banks/${ke.id}.json`,{method:"put",body:ke})})}function W(ke){return d(this,null,function*(){return(0,t.ZP)("/api/item_banks.json",{method:"post",body:ke})})}function K(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/item_banks/${ke.id}/edit.json`,{method:"get"})})}function Z(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/problems/${ke.id}/edit.json`,{method:"get"})})}function H(ke){return d(this,null,function*(){return(0,t.ZP)("/api/item_baskets.json",{method:"get",params:ke})})}function j(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/item_baskets/${ke.id}/set_score.json`,{method:"post",body:ke})})}function F(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/item_baskets/${ke.id}/set_challenge_score.json`,{method:"post",body:ke})})}function $(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/item_baskets/${ke.id}/combination_set_score.json`,{method:"post",body:ke})})}function M(ke){return d(this,null,function*(){return Fetch(`/api/examination_banks//${ke.exerid}/examination_banks_item_banks/${ke.id}/combination_set_score.json`,{method:"post",body:ke})})}function Q(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/item_baskets/${ke.id}.json`,{method:"delete"})})}function U(ke){return d(this,null,function*(){return(0,t.ZP)("/api/item_baskets/batch_set_score.json",{method:"post",body:ke})})}function z(ke){return d(this,null,function*(){return(0,t.ZP)("/api/item_baskets/delete_item_type.json",{method:"delete",body:ke})})}function Y(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/item_baskets/${ke.id}/adjust_position.json`,{method:"post",body:ke})})}function ee(ke){return d(this,null,function*(){return(0,t.ZP)("/api/examination_banks.json",{method:"post",body:ke})})}function de(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ke.id}/revoke_item.json`,{method:"delete",body:ke})})}function me(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/examination_banks/${ke.exam_id}/examination_banks_item_banks.json`,{method:"post",body:ke})})}function _e(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/item_banks/${ke.id}/join_to_collection.json`,{method:"post",params:ke})})}function be(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/item_banks/${ke.id}/cancel_collection.json`,{method:"post",params:ke})})}function pt(ke){return d(this,null,function*(){return(0,t.ZP)("/api/item_banks_groups.json",{method:"get",params:ke})})}function tt(ke){return d(this,null,function*(){return(0,t.ZP)("/api/item_banks_groups/mine.json",{method:"get",params:ke})})}function Ot(ke){return d(this,null,function*(){return Fetch(`/api/item_banks/${ke.id}/join_to_group.json`,{method:"post",body:ke})})}function _t(ke){return d(this,null,function*(){return Fetch(`/api/item_banks_groups/${ke.id}.json`,{method:"put",body:ke})})}function Gt(ke){return d(this,null,function*(){return(0,t.ZP)("/api/item_banks_groups.json",{method:"post",body:ke})})}function It(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/item_banks/${ke.id}/feedback.json`,{method:"post",body:ke})})}function Je(ke){return d(this,null,function*(){return(0,t.ZP)("/api/teach_group_shares.json",{method:"get",params:ke})})}function Tt(ke){return d(this,null,function*(){return(0,t.ZP)("/api/teach_group_shares.json",{method:"post",body:ke})})}function nr(ke){return d(this,null,function*(){return(0,t.ZP)("/api/item_banks/batch_delete.json",{method:"post",body:ke})})}function Nt(ke){return d(this,null,function*(){return(0,t.ZP)("/api/item_banks/batch_to_group.json",{method:"post",body:ke})})}function gr(ke){return d(this,null,function*(){return(0,t.ZP)("/api/item_banks/add_to_mine.json",{method:"post",body:ke})})}function Rr(ke){return d(this,null,function*(){return(0,t.ZP)("/api/item_banks/set_batch_public.json",{method:"post",body:ke})})}function Pr(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/item_banks/${ke==null?void 0:ke.id}/set_public.json`,{method:"post",body:ke})})}function at(ke){return d(this,null,function*(){return(0,t.ZP)("/api/teach_group_shares/show_groups.json",{method:"get",params:ke})})}function wt(ke){return(0,t.ZP)(`/api/problems/${ke.identifier}/publish.json`,{method:"post",body:ke})}function dt(ke){return(0,t.ZP)(`/api/problems/${ke.identifier}/cancel_publish.json`,{method:"post",body:ke})}function Ze(ke){return(0,t.ZP)("/api/item_banks/cancel_public.json",{method:"post",body:{ids:[...ke.id]}})}function Oe(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/item_banks_groups/${ke.id}/up_position.json`,{method:"get",params:ke})})}function ot(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/item_banks_groups/${ke.id}/down_position.json`,{method:"get",params:ke})})}function Et(ke){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${ke.id}/edit_hack.json`,{method:"get",params:ke})})}function ht(ke){return d(this,null,function*(){return(0,t.ZP)("/api/problems/batch_publish_condition.json",{method:"post",body:ke})})}function Ve(ke){return d(this,null,function*(){return(0,t.ZP)("/api/problems/batch_publish.json",{method:"post",body:ke})})}function Ct(ke){return d(this,null,function*(){return Fetch("/api/item_banks/get_groups.json",{method:"get",params:ke})})}function ue(){return d(this,null,function*(){return(0,t.ZP)("/api/item_baskets/delete_all_items.json",{method:"delete"})})}},41498:function(i,f,e){"use strict";e.d(f,{E1:function(){return s},Go:function(){return n},H5:function(){return a}});var t=e(33170),r=(u,c,o)=>new Promise((p,h)=>{var d=S=>{try{v(o.next(S))}catch(C){h(C)}},g=S=>{try{v(o.throw(S))}catch(C){h(C)}},v=S=>S.done?p(S.value):Promise.resolve(S.value).then(d,g);v((o=o.apply(u,c)).next())});function n(u){return r(this,null,function*(){return(0,t.ZP)("/api/restfuls.json",{method:"get",params:u})})}function a(u){return r(this,null,function*(){return(0,t.ZP)(`/api/restfuls/${u.id}.json`,{method:"get",params:u})})}function s(u){return r(this,null,function*(){return(0,t.ZP)(`/api/restfuls/${u.id}.json`,{method:"delete",params:u})})}},86763:function(i,f,e){"use strict";e.d(f,{Am:function(){return v},Ar:function(){return Je},BD:function(){return ot},Be:function(){return Pr},Dx:function(){return $},Fr:function(){return ut},G$:function(){return E},GS:function(){return L},Gw:function(){return C},H:function(){return Gt},H1:function(){return It},Hj:function(){return ht},JA:function(){return Ct},JG:function(){return F},KE:function(){return U},Lz:function(){return Ze},Mf:function(){return _t},NA:function(){return tt},PC:function(){return be},PP:function(){return pt},PW:function(){return Nt},Q3:function(){return M},QC:function(){return ue},Qt:function(){return Oe},Qz:function(){return I},R$:function(){return Le},RP:function(){return K},Ti:function(){return xn},Uc:function(){return Ge},Ul:function(){return H},VB:function(){return ir},Vs:function(){return ct},Wr:function(){return x},Xn:function(){return Z},YQ:function(){return Ot},Yn:function(){return S},Z8:function(){return D},ak:function(){return nr},cN:function(){return R},co:function(){return at},cz:function(){return me},fK:function(){return N},gG:function(){return _e},gZ:function(){return Ue},h$:function(){return k},ku:function(){return dt},lf:function(){return Y},m7:function(){return j},mQ:function(){return T},mz:function(){return Rr},n$:function(){return z},oK:function(){return g},oN:function(){return Wr},pH:function(){return Et},pb:function(){return Xt},qP:function(){return ke},ql:function(){return We},rN:function(){return wt},sw:function(){return ee},t1:function(){return de},to:function(){return W},ub:function(){return Ve},ux:function(){return Q},wS:function(){return kt},wT:function(){return O},yT:function(){return Tt},yy:function(){return Ut},z2:function(){return gr}});var t=e(33170),r=Object.defineProperty,n=Object.defineProperties,a=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,o=(Xe,Tr,dn)=>Tr in Xe?r(Xe,Tr,{enumerable:!0,configurable:!0,writable:!0,value:dn}):Xe[Tr]=dn,p=(Xe,Tr)=>{for(var dn in Tr||(Tr={}))u.call(Tr,dn)&&o(Xe,dn,Tr[dn]);if(s)for(var dn of s(Tr))c.call(Tr,dn)&&o(Xe,dn,Tr[dn]);return Xe},h=(Xe,Tr)=>n(Xe,a(Tr)),d=(Xe,Tr,dn)=>new Promise((Cn,Ln)=>{var Xn=er=>{try{ye(dn.next(er))}catch(St){Ln(St)}},xa=er=>{try{ye(dn.throw(er))}catch(St){Ln(St)}},ye=er=>er.done?Cn(er.value):Promise.resolve(er.value).then(Xn,xa);ye((dn=dn.apply(Xe,Tr)).next())});const g=Xe=>d(void 0,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe.id}/update_journals.json`,{method:"post",body:Xe})}),v=Xe=>d(void 0,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe==null?void 0:Xe.homeworkId}/change_score.json`,{method:"post",body:Xe})}),S=Xe=>d(void 0,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe==null?void 0:Xe.homeworkId}/history_comment`,{method:"Get",params:Xe})}),C=Xe=>d(void 0,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe==null?void 0:Xe.homeworkId}/feedback_know`,{method:"Get",params:Xe})}),E=Xe=>d(void 0,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe==null?void 0:Xe.userId}/student_work_feedbacks.json`,{method:"POST",body:Xe})}),x=Xe=>d(void 0,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe==null?void 0:Xe.userId}/feedback_list.json`,{method:"Get",params:Xe})}),O=Xe=>d(void 0,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe==null?void 0:Xe.userId}/histories.json`,{method:"Get",params:Xe})}),I=Xe=>d(void 0,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe==null?void 0:Xe.homeworkId}/feedback_list`,{method:"Get",params:Xe})}),T=Xe=>d(void 0,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe==null?void 0:Xe.homeworkId}/anonymous_exception_list.json`,{method:"Get",params:Xe})}),R=Xe=>d(void 0,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe==null?void 0:Xe.homeworkId}/appeal_list`,{method:"Get",params:Xe})});function k(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.categoryId}/works_list.json`,{method:"post",body:p({},Xe)})})}function D(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/shixun_homeworks/${Xe.categoryId}/student_works.json`,{method:"get",params:p({},Xe)})})}function N(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/shixun_homeworks/${Xe.categoryId}/header_info.json`,{method:"get",params:p({},Xe)})})}function L(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe}/query_game_url.json`,{method:"get"})})}function q(Xe){return d(this,null,function*(){return Fetch(`/api/student_works/${Xe}/get_newest_shixun_work_comments.json`,{method:"get"})})}function W(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.categoryId}.json`,{method:"get"})})}function K(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.categoryId}/code_review_results.json`,{method:"get",params:p({},Xe)})})}function Z(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.categoryId}/code_review_detail.json`,{method:"get",params:p({},Xe)})})}function H(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.categoryId}/settings.json`,{method:"get",params:p({},Xe)})})}function j(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.categoryId}/update_settings.json`,{method:"post",body:p({},Xe)})})}function F(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.categoryId}/group_list.json`,{method:"get",params:p({},Xe)})})}function $(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.categoryId}/works_list.xlsx`,{method:"get",params:p({},Xe)})})}function M(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.coursesId}/reference_answer.json`,{method:"get",params:p({},Xe)})})}function Q(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.categoryId}/publish_groups.json`,{method:"get",params:p({},Xe)})})}function U(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.categoryId}/end_groups.json`,{method:"get",params:p({},Xe)})})}function z(Xe){return d(this,null,function*(){return(0,t.ZP)("/api/question_banks/bank_list.json",{method:"get",params:p({},Xe)})})}function Y(Xe){return d(this,null,function*(){return(0,t.ZP)("/api/question_banks/save_banks.json",{method:"post",body:p({},Xe)})})}function ee(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe.homeworkId}/shixun_work_report.json`,{method:"get",params:Xe})})}function de(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe.homeworkId}/shixun_work_report_echart_data.json`,{method:"get",params:Xe})})}function me(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/courses/${Xe.coursesId}/homework_commons/user_hack_detail.json`,{method:"get",params:h(p({},Xe),{id:Xe.categoryId})})})}function _e(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe.categoryId}/adjust_review_score.json`,{method:"post",body:p({},Xe)})})}function be(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.categoryId}/show_comment.json`,{method:"get",params:p({},Xe)})})}function pt(Xe){return d(this,null,function*(){return(0,t.ZP)("/api/users/reply_message.json",{method:"post",body:p({},Xe)})})}function tt(Xe){return d(this,null,function*(){return(0,t.ZP)("/api/praise_tread/like.json",{method:"post",body:p({},Xe)})})}function Ot(Xe){return d(this,null,function*(){return(0,t.ZP)("/api/praise_tread/unlike.json",{method:"delete",body:p({},Xe)})})}function _t(Xe){return d(this,null,function*(){return(0,t.ZP)("/api/commons/delete.json",{method:"delete",body:p({},Xe)})})}function Gt(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.categoryId}/update_explanation.json`,{method:"post",body:p({},Xe)})})}function It(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/courses/${Xe.coursesId}/homework_commons.json`,{method:"post",body:p({},Xe)})})}function Je(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.categoryId}.json`,{method:"put",body:p({},Xe)})})}function Tt(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_banks/${Xe.id}.json`,{method:"put",body:p({},Xe)})})}function nr(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.commonHomeworkId}/student_works/new.json`,{method:"get",params:p({},Xe)})})}function Nt(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe.homeworkId}/edit.json`,{method:"get",params:p({},Xe)})})}function gr(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe.homeworkId}.json`,{method:"put",body:p({},Xe)})})}function Rr(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe.homeworkId}/revise_attachment.json`,{method:"post",body:p({},Xe)})})}function Pr(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.commonHomeworkId}/student_works.json`,{method:"post",body:p({},Xe)})})}function at(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.homeworkId}/student_works/relate_project.json`,{method:"post",body:p({},Xe)})})}function wt(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.homeworkId}/student_works/cancel_relate_project.json`,{method:"get"})})}function dt(Xe){return d(this,null,function*(){return(0,t.ZP)("/api/users/projects/search.json",{method:"get",params:p({},Xe)})})}function Ze(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.commonHomeworkId}/student_works/search_member_list.json`,{method:"get",params:p({},Xe)})})}function Oe(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/courses/${Xe.coursesId}/homework_commons/new.json`,{method:"get",params:p({},Xe)})})}function ot(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.categoryId}/edit.json`,{method:"get",params:p({},Xe)})})}function Et(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_banks/${Xe.id}.json`,{method:"get",params:p({},Xe)})})}function ht(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe.userId}.json`,{method:"get",params:p({},Xe)})})}function Ve(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe.userId}/supply_attachments.json`,{method:"get",params:p({},Xe)})})}function Ct(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe.userId}/comment_list.json`,{method:"get",params:p({},Xe)})})}function ue(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe.userId}/destroy_score.json`,{method:"delete",body:p({},Xe)})})}function ke(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe.userId}/add_score_reply.json`,{method:"post",body:p({},Xe)})})}function We(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.categoryId}/all_student_works.json`,{method:"get",params:p({},Xe)})})}function Ue(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe.homeworkId}/destroy_work_comment.json`,{method:"delete",body:p({},Xe)})})}function Ge(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.categoryId}/score_status.json`,{method:"get",params:p({},Xe)})})}function ct(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/homework_commons/${Xe.categoryId}/update_score.json`,{method:"get",params:p({},Xe)})})}function Ut(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe.userId}/add_score.json`,{method:"post",body:p({},Xe)})})}function vt(Xe){return d(this,null,function*(){return Fetch(`/api/student_works/${Xe.userId}/cancel_appeal.json`,{method:"post",body:p({},Xe)})})}function Le(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe.userId}/appeal_anonymous_score.json`,{method:"post",body:p({},Xe)})})}function yt(Xe){return d(this,null,function*(){return Fetch(`/api/student_works/${Xe.userId}/deal_appeal_score.json`,{method:"post",body:p({},Xe)})})}function ut(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/myshixuns/${Xe.id}/reset_my_game.json`,{method:"get",params:p({},Xe)})})}function kt(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe.homeworkId}/commit_des.json`,{method:"get",params:p({},Xe)})})}function Xt(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/student_works/${Xe.homeworkId}/update_des.json`,{method:"post",body:p({},Xe)})})}function ir(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/courses/${Xe.coursesId}/homework_commons/file_repeat_list.json`,{method:"get",params:p({},Xe)})})}function Wr(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/courses/${Xe.coursesId}/homework_commons/file_repeat_result.json`,{method:"get",params:p({},Xe)})})}function xn(Xe){return d(this,null,function*(){return(0,t.ZP)(`/api/courses/${Xe.course_id}/homework_commons/file_repeat_detail.json`,{method:"get",params:p({},Xe)})})}},93686:function(i,f,e){"use strict";e.d(f,{$Q:function(){return ze},AE:function(){return Xn},AQ:function(){return U},Ag:function(){return it},Ar:function(){return Tt},At:function(){return cn},BK:function(){return ee},Bj:function(){return ke},Cf:function(){return E},DC:function(){return Ct},Dz:function(){return wn},E4:function(){return g},EH:function(){return gr},Ee:function(){return ar},Er:function(){return It},Ez:function(){return O},FB:function(){return Y},Fg:function(){return j},Ft:function(){return q},GI:function(){return at},Gr:function(){return Ge},Gu:function(){return Pr},Gz:function(){return H},HS:function(){return so},Hl:function(){return K},IF:function(){return D},IT:function(){return st},I_:function(){return M},Ij:function(){return N},Ir:function(){return de},Je:function(){return jt},K:function(){return vn},K0:function(){return rr},KM:function(){return tt},K_:function(){return Jt},LK:function(){return Zt},LP:function(){return wt},Ne:function(){return Gt},OL:function(){return x},OQ:function(){return v},OV:function(){return Ze},OW:function(){return Nt},Op:function(){return Ke},P2:function(){return ot},P4:function(){return L},Po:function(){return Q},Ps:function(){return ct},Q:function(){return _t},Q1:function(){return Ht},QA:function(){return va},Ql:function(){return vt},Rs:function(){return Xe},SG:function(){return ma},Tn:function(){return ye},Tr:function(){return ha},U0:function(){return kt},U9:function(){return Ut},UQ:function(){return ur},Ui:function(){return ie},Vx:function(){return mt},WO:function(){return Je},WT:function(){return Oa},Wi:function(){return We},Wl:function(){return Pe},X$:function(){return Et},Yn:function(){return St},Z2:function(){return ue},ZO:function(){return Ue},Zt:function(){return Tn},_7:function(){return Ot},_9:function(){return Pt},aH:function(){return Le},al:function(){return Wr},b8:function(){return nr},bV:function(){return k},bk:function(){return C},bq:function(){return er},dK:function(){return me},e:function(){return F},eX:function(){return Rr},eb:function(){return Tr},fH:function(){return I},fL:function(){return He},h4:function(){return Bt},hS:function(){return Z},h_:function(){return Ve},he:function(){return $},hn:function(){return be},hy:function(){return T},ii:function(){return xn},im:function(){return Wt},j8:function(){return dt},jq:function(){return Qe},kF:function(){return Ce},km:function(){return ir},l3:function(){return Oe},m7:function(){return ut},mI:function(){return Da},n5:function(){return z},np:function(){return R},nu:function(){return cr},p0:function(){return tr},q0:function(){return Ln},q9:function(){return Hr},qA:function(){return Yr},rO:function(){return Cn},rs:function(){return pt},sr:function(){return Er},t2:function(){return $t},tX:function(){return he},uo:function(){return Xt},v3:function(){return Te},w:function(){return Ee},wX:function(){return W},xK:function(){return xa},xM:function(){return S},xg:function(){return dn},xk:function(){return ht},yE:function(){return yt},yx:function(){return ua},zD:function(){return _e},zH:function(){return br}});var t=e(33170),r=Object.defineProperty,n=Object.defineProperties,a=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,o=(Ae,Se,Ye)=>Se in Ae?r(Ae,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):Ae[Se]=Ye,p=(Ae,Se)=>{for(var Ye in Se||(Se={}))u.call(Se,Ye)&&o(Ae,Ye,Se[Ye]);if(s)for(var Ye of s(Se))c.call(Se,Ye)&&o(Ae,Ye,Se[Ye]);return Ae},h=(Ae,Se)=>n(Ae,a(Se)),d=(Ae,Se,Ye)=>new Promise((J,Ft)=>{var Yt=Lr=>{try{Ur(Ye.next(Lr))}catch(na){Ft(na)}},Mr=Lr=>{try{Ur(Ye.throw(Lr))}catch(na){Ft(na)}},Ur=Lr=>Lr.done?J(Lr.value):Promise.resolve(Lr.value).then(Yt,Mr);Ur((Ye=Ye.apply(Ae,Se)).next())});const g=Ae=>d(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls/commit_result.json",{method:"get",params:Ae})}),v=Ae=>d(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls/edit.json",{method:"get",params:Ae})}),S=Ae=>d(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls/select_polls.json",{method:"post",body:Ae})}),C=Ae=>d(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls/select_polls_list.json",{method:"get",params:Ae})}),E=Ae=>d(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls/commit_poll.json",{method:"post",body:Ae})}),x=Ae=>d(void 0,null,function*(){return(0,t.ZP)(`/api/poll_questions/${Ae==null?void 0:Ae.questionId}/poll_votes.json`,{method:"post",body:Ae})}),O=Ae=>d(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls.json",{method:"put",body:Ae})}),I=Ae=>d(void 0,null,function*(){return(0,t.ZP)(`/api/poll_questions/${Ae==null?void 0:Ae.poll_question_id}/up_down.json`,{method:"post",body:Ae})}),T=Ae=>d(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls.json",{method:"post",body:Ae})}),R=Ae=>d(void 0,null,function*(){return(0,t.ZP)(`/api/poll_questions/${Ae==null?void 0:Ae.poll_question_id}.json`,{method:"put",body:Ae})}),k=Ae=>d(void 0,null,function*(){return(0,t.ZP)("/api/poll_questions.json",{method:"post",body:Ae})}),D=Ae=>d(void 0,null,function*(){return(0,t.ZP)(`/api/poll_questions/${Ae==null?void 0:Ae.poll_question_id}.json`,{method:"delete"})}),N=Ae=>d(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls/collect.json",{method:"post",body:Ae})}),L=Ae=>d(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls/publish.json",{method:"post",body:Ae})}),q=Ae=>d(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls/delete.json",{method:"post",body:Ae})}),W=Ae=>d(void 0,null,function*(){return(0,t.ZP)("/api/shixun_polls/start_answer.json",{method:"Get",params:Ae})}),K=Ae=>d(void 0,null,function*(){return(0,t.ZP)("/api/shixun_statistics/statistics_header.json",{method:"Get",params:Ae})}),Z=Ae=>d(void 0,null,function*(){return(0,t.ZP)("/api/shixun_statistics/online_count.json",{method:"Get",params:Ae})}),H=Ae=>d(void 0,null,function*(){return(0,t.ZP)("/api/shixun_statistics/statistics_body.json",{method:"Get",params:Ae})}),j=Ae=>d(void 0,null,function*(){return(0,t.ZP)("/api/shixun_statistics/rank_list.json",{method:"Get",params:Ae})}),F=Ae=>d(void 0,null,function*(){return(0,t.ZP)("/api/shixun_statistics/shixun_use_infos.json",{method:"Get",params:Ae})});function $(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/shixuns.json",{method:"Get",params:p({},Ae)})})}function M(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/disciplines.json",{method:"Get",params:p({source:"shixun"},Ae||{})})})}function Q(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}.json`,{method:"Get",params:Ae})})}function U(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/show_right.json`,{method:"Get"})})}function z(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/challenges.json`,{method:"Get"})})}function Y(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/save_copy_for_exercise.json`,{method:"post",body:{save_type:Ae.save_type}})})}function ee(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/jupyter_exec.json${Ae.reset?`?reset=${Ae.reset}`:""}`,{method:"Get",params:Ae})})}function de(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/shixun_exec.json${Ae.reset?`?reset=${Ae.reset}`:""}`,{method:"Get",params:Ae})})}function me(Ae){return d(this,null,function*(){return(0,t.ZP)(Ae.url,{method:"Get"})})}function _e(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.shixun_identifier}/challenges/${Ae.challenge_id}/index_up.json`,{method:"Get"})})}function be(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.shixun_identifier}/challenges/${Ae.challenge_id}/index_down.json`,{method:"Get"})})}function pt(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/collections/cancel.json",{method:"Delete",body:{container_id:Ae.container_id,container_type:Ae.container_type}})})}function tt(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/collections.json",{method:"Post",body:{container_id:Ae.container_id,container_type:Ae.container_type}})})}function Ot(Ae){return d(this,null,function*(){const{id:Se}=Ae||{};return(0,t.ZP)(`/api/shixuns/${Se}/search_user_courses.json`,{method:"Get",params:Ae})})}function _t(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae==null?void 0:Ae.id}/send_to_course.json`,{method:"Post",body:p({},Ae)})})}function Gt(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/cancel_publish.json`,{method:"Get"})})}function It(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/cancel_apply_public.json`,{method:"Get"})})}function Je(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/apply_public.json`,{method:"post",body:p({},Ae)})})}function Tt(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/publish.json`,{method:"Get"})})}function nr(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/shixuns/jupyter_new.json",{method:"Get"})})}function Nt(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/attachments/${Ae.id}.json`,{method:"delete"})})}function gr(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/shixuns/apply_shixun_mirror.json",{method:"post",body:Ae})})}function Rr(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/shixuns.json",{method:"post",body:Ae})})}function Pr(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/shixuns/jupyter_lab_new.json",{method:"get",params:Ae})})}function at(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/review_newest_record.json`,{method:"Get"})})}function wt(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/review_shixun.json`,{method:"post",body:Ae})})}function dt(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/collaborators.json`,{method:"Get",params:Ae})})}function Ze(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/shixun_members_added.json`,{method:"post",body:Ae})})}function Oe(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.identifier}/add_members_group.json`,{method:"post",body:Ae})})}function ot(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/change_manager.json`,{method:"Get",params:Ae})})}function Et(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/change_manager.json`,{method:"post",body:Ae})})}function ht(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/collaborators_delete.json`,{method:"delete",body:{user_id:Ae.userId}})})}function Ve(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/ranking_list.json`,{method:"Get"})})}function Ct(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/settings.json`,{method:"Get"})})}function ue(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/shixuns/get_mirror_script.json",{method:"Get",params:{mirror_id:Ae.mirror_id}})})}function ke(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/get_script_contents.json`,{method:"Get",params:Ae})})}function We(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/get_custom_script.json`,{method:"Get",params:Ae})})}function Ue(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/update_for_jupyter.json`,{method:"put",body:Ae})})}function Ge(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/shixun_quotes.json`,{method:"Get"})})}function ct(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}.json`,{method:"delete"})})}function Ut(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/close.json`,{method:"post",body:Ae})})}function vt(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/shixuns/departments.json",{method:"Get",params:Ae})})}function Le(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/update_permission_setting.json`,{method:"post",body:Ae})})}function yt(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/update_learn_setting.json`,{method:"post",body:Ae})})}function ut(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/update_setting`,{method:"post",body:Ae})})}function kt(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/get_data_sets.json`,{method:"Get",params:Ae})})}function Xt(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/destroy_data_sets.json`,{method:"Delete",body:{id:Ae.deleteId}})})}function ir(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/challenges/new.json`,{method:"get"})})}function Wr(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.identifier}/challenges.json`,{method:"post",body:p({},Ae)})})}function xn(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/challenges/${Ae.challengeId}/edit.json`,{method:"get",params:{tab:Ae.tab}})})}function Xe(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/challenges/${Ae.challengesId}.json`,{method:"put",body:p({},Ae)})})}function Tr(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/challenges/${Ae.challengesId}/choose_questions.json`,{method:"get"})})}function dn(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/challenges/move_position.json`,{method:"post",body:p({},Ae)})})}function Cn(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/challenges/${Ae.challengesId}.json`,{method:"delete",body:p({},Ae)})})}function Ln(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/challenges/${Ae.challengesId}/edit.json`,{method:"get",params:p({},Ae)})})}function Xn(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/challenges/${Ae.challengeId}/answer.json`,{method:"get",params:p({},Ae)})})}function xa(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/challenges/${Ae.challengeId}/crud_answer.json`,{method:"post",body:p({},Ae)})})}function ye(Ae){return d(this,null,function*(){if(Ae.type===1)return(0,t.ZP)(`/api/shixuns/${Ae.id}/challenges/${Ae.challengesId}/create_choose_question.json`,{method:"post",body:p({},Ae)});if(Ae.type===2)return(0,t.ZP)(`/api/shixuns/${Ae.id}/challenges/${Ae.challengesId}/create_blank_question.json`,{method:"post",body:p({},Ae)});if(Ae.type===3)return(0,t.ZP)(`/api/shixuns/${Ae.id}/challenges/${Ae.challengesId}/create_judge_question.json`,{method:"post",body:p({},Ae)})})}function er(Ae){return d(this,null,function*(){if(Ae.type===1)return(0,t.ZP)(`/api/shixuns/${Ae.id}/challenges/${Ae.challengesId}/update_choose_question.json`,{method:"post",body:h(p({},Ae),{choose_id:Ae.questionId})});if(Ae.type===2)return(0,t.ZP)(`/api/shixuns/${Ae.id}/challenges/${Ae.challengesId}/update_blank_question.json`,{method:"put",body:h(p({},Ae),{choose_id:Ae.questionId})});if(Ae.type===3)return(0,t.ZP)(`/api/shixuns/${Ae.id}/challenges/${Ae.challengesId}/update_judge_question.json`,{method:"put",body:h(p({},Ae),{choose_id:Ae.questionId})})})}function St(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/challenges/${Ae.challengesId}/destroy_challenge_choose.json`,{method:"Delete",body:{choose_id:Ae.questionId}})})}function Pt(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/challenges/${Ae.challengesId}/choose_question_up_position.json`,{method:"post",body:{challenge_choose_id:Ae.questionId}})})}function Wt(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/challenges/${Ae.challengesId}/choose_question_down_position.json`,{method:"post",body:{challenge_choose_id:Ae.questionId}})})}function ur(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/challenges/${Ae.challengesId}/edit_choose_question.json`,{method:"get",params:h(p({},Ae),{choose_id:Ae.questionId})})})}function Er(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/delete_git_file.json`,{method:"Delete",body:Ae})})}function tr(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/sci/projects/${Ae.id}/delete_git_file.json`,{method:"Delete",body:Ae})})}function st(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/mv_file.json`,{method:"post",body:Ae})})}function $t(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/sci/projects/${Ae.id}/mv_file.json`,{method:"post",body:Ae})})}function it(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/repository.json`,{method:"post",body:Ae})})}function Pe(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/sci/projects/${Ae.id}/repository.json`,{method:"post",body:Ae})})}function Ee(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/secret_repository.json`,{method:"post",body:Ae})})}function Te(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/add_file.json`,{method:"post",body:Ae})})}function He(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/sci/projects/${Ae.id}/add_file.json`,{method:"post",body:Ae})})}function jt(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/commits.json`,{method:"post",body:Ae})})}function Zt(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/file_content.json`,{method:"post",body:Ae})})}function cr(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/sci/projects/${Ae.id}/file_content.json`,{method:"post",body:Ae})})}function Ce(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/update_file.json`,{method:"post",body:Ae})})}function Qe(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/sci/projects/${Ae.id}/update_file.json`,{method:"post",body:Ae})})}function Ke(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/upload_git_folder.json`,{method:"post",body:{path:Ae.path,secret_repository:Ae.secret_repository}})})}function ze(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/${Ae.url}`,{method:"Get"})})}function ie(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/jupyters/get_info_with_tpm.json",{method:"Get",params:Ae})})}function Jt(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/jupyters/timeinfo_with_tpm.json",{method:"Get",params:Ae})})}function br(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/jupyters/reset_with_tpm.json",{method:"Get",params:Ae})})}function Yr(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/jupyters/save_with_tpm.json",{method:"Get",params:Ae})})}function Hr(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/jupyters/active_with_tpm.json",{method:"Get",params:Ae})})}function cn(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/fork_list.json`,{method:"Get",params:Ae})})}function wn(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.identifier}/change_editable.json`,{method:"put",body:p({},Ae)})})}function Tn(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/set_secret_dir.json`,{method:"post",body:p({},Ae)})})}function vn(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/shixuns/new.json",{method:"Get",params:Ae})})}function Ht(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/shixuns/environment_info",{method:"Get",params:Ae})})}function Bt(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/init_repository.json`,{method:"post",body:p({},Ae)})})}function mt(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/sci/projects/${Ae.id}/init_repository.json`,{method:"post",body:p({},Ae)})})}function rr(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/update_secret_repository.json`,{method:"post",body:p({},Ae)})})}function ar(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/exist_exercise.json`,{method:"get",params:p({},Ae)})})}function he(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/mirror_applies/${Ae.id}.json`,{method:"get",params:p({},Ae)})})}function Or(Ae){return d(this,null,function*(){return Fetch(`/api/mirror_applies/${Ae.id}/publish.json`,{method:"post",body:p({},Ae)})})}function Nr(Ae){return d(this,null,function*(){return Fetch(`/api/mirror_applies/${Ae.id}/open_vnc.json`,{method:"post",params:p({},Ae)})})}function Gr(Ae){return d(this,null,function*(){return Fetch(`/api/mirror_applies/${Ae.id}/open_webssh.json`,{method:"post",params:p({},Ae)})})}function Vr(Ae){return d(this,null,function*(){return Fetch(`/api/mirror_applies/${Ae.id}/save_image.json`,{method:"post",body:p({},Ae)})})}function zn(Ae){return d(this,null,function*(){return Fetch(`/api/mirror_applies/${Ae.id}/delete_image.json`,{method:"post",body:p({},Ae)})})}function Jn(Ae){return d(this,null,function*(){return Fetch(`/api/mirror_applies/${Ae.id}/extend_vnc.json`,{method:"post",body:p({},Ae)})})}function pn(Ae){return d(this,null,function*(){return Fetch(`/api/mirror_applies/${Ae.id}/reset_vnc_link.json`,{method:"post",body:p({},Ae)})})}function ua(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/paths/get_task_pass.json",{method:"get",params:p({},Ae)})})}function Da(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/jupyters/get_info_with_jupyter_lab.json",{method:"get",params:p({},Ae)})})}function va(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae.id}/update_jupyter_lab_setting.json`,{method:"post",body:p({},Ae)})})}function ha(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/shixuns/check_shixun_copy.json",{method:"post",body:Ae})})}function Oa(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/progress_homeworks/${Ae}`,{method:"get",params:{is_initiative_study:1}})})}function Sa(Ae){return d(this,null,function*(){return Fetch(`/api/shixuns/${Ae.id}/update_shixun_study_num.json`,{method:"post",body:p({},Ae)})})}function ma(Ae){return d(this,null,function*(){return(0,t.ZP)("/api/jupyters/preview.json",{method:"get",params:Ae})})}function so(Ae){return d(this,null,function*(){return(0,t.ZP)(`/api/shixuns/${Ae}/recommend_config.json`,{method:"get"})})}},34306:function(i,f,e){"use strict";e.d(f,{Bg:function(){return d},FO:function(){return T},eJ:function(){return S},eZ:function(){return C},fd:function(){return N},gp:function(){return p},iU:function(){return k},l3:function(){return x},mw:function(){return O},oZ:function(){return v},rM:function(){return I},r_:function(){return D},s:function(){return h},ur:function(){return R},xV:function(){return g},yb:function(){return E}});var t=e(33170),r=Object.defineProperty,n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(L,q,W)=>q in L?r(L,q,{enumerable:!0,configurable:!0,writable:!0,value:W}):L[q]=W,c=(L,q)=>{for(var W in q||(q={}))a.call(q,W)&&u(L,W,q[W]);if(n)for(var W of n(q))s.call(q,W)&&u(L,W,q[W]);return L},o=(L,q,W)=>new Promise((K,Z)=>{var H=$=>{try{F(W.next($))}catch(M){Z(M)}},j=$=>{try{F(W.throw($))}catch(M){Z(M)}},F=$=>$.done?K($.value):Promise.resolve($.value).then(H,j);F((W=W.apply(L,q)).next())});function p(L){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${L.coursesId}/teachers.json`,{method:"get",params:c({},L)})})}function h(L){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${L.coursesId}/apply_teachers.json`,{method:"get",params:c({},L)})})}function d(L){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${L.coursesId}/graduation_group_list.json`,{method:"get",params:c({},L)})})}function g(L){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${L.coursesId}/all_course_groups.json`,{method:"get",params:c({},L)})})}function v(L){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${L.coursesId}/set_course_group.json`,{method:"post",body:c({},L)})})}function S(L){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${L.coursesId}/join_graduation_group.json`,{method:"post",body:c({},L)})})}function C(L){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${L.coursesId}/create_graduation_group.json`,{method:"post",body:c({},L)})})}function E(L){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${L.coursesId}/delete_course_teacher.json`,{method:"post",body:c({},L)})})}function x(L){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${L.coursesId}/delete_from_course.json`,{method:"post",body:c({},L)})})}function O(L){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${L.coursesId}/change_member_role.json`,{method:"post",body:c({},L)})})}function I(L){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${L.coursesId}/change_course_admin.json`,{method:"post",body:c({},L)})})}function T(L){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${L.coursesId}/teacher_application_review.json`,{method:"post",body:c({},L)})})}function R(L){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${L.coursesId}/students.json`,{method:"get",params:c({},L)})})}function k(L,q){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${L}/apply_students.json`,{method:"get",params:q})})}function D(L,q){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${L}/join_student_checkout.json`,{method:"get",params:q})})}function N(L,q){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${L}/student_application_review.json`,{method:"post",body:q})})}},65900:function(i,f,e){"use strict";e.d(f,{B$:function(){return g},Cx:function(){return H},Cy:function(){return de},DA:function(){return I},DH:function(){return d},Ef:function(){return $},Es:function(){return S},Ex:function(){return _t},FM:function(){return W},Fn:function(){return M},Gq:function(){return It},Ho:function(){return R},IU:function(){return ee},JJ:function(){return Q},Ol:function(){return be},Qx:function(){return q},Tv:function(){return U},V8:function(){return h},WS:function(){return j},WY:function(){return L},ai:function(){return Z},bG:function(){return E},bJ:function(){return p},c0:function(){return Gt},dE:function(){return Y},dt:function(){return z},gI:function(){return F},lO:function(){return K},mW:function(){return N},n0:function(){return O},nV:function(){return _e},o1:function(){return pt},qE:function(){return v},qN:function(){return T},rV:function(){return k},sh:function(){return me},vR:function(){return C},w3:function(){return D},x4:function(){return x},z2:function(){return tt}});var t=e(33170),r=Object.defineProperty,n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(Je,Tt,nr)=>Tt in Je?r(Je,Tt,{enumerable:!0,configurable:!0,writable:!0,value:nr}):Je[Tt]=nr,c=(Je,Tt)=>{for(var nr in Tt||(Tt={}))a.call(Tt,nr)&&u(Je,nr,Tt[nr]);if(n)for(var nr of n(Tt))s.call(Tt,nr)&&u(Je,nr,Tt[nr]);return Je},o=(Je,Tt,nr)=>new Promise((Nt,gr)=>{var Rr=wt=>{try{at(nr.next(wt))}catch(dt){gr(dt)}},Pr=wt=>{try{at(nr.throw(wt))}catch(dt){gr(dt)}},at=wt=>wt.done?Nt(wt.value):Promise.resolve(wt.value).then(Rr,Pr);at((nr=nr.apply(Je,Tt)).next())});const p=Je=>o(void 0,null,function*(){return(0,t.ZP)(`/api/common_comments/${Je.id}/move.json`,{method:"post",body:Je})}),h=Je=>o(void 0,null,function*(){return(0,t.ZP)(`/api/common_comments/${Je.id}.json`,{method:"delete",body:Je})}),d=Je=>o(void 0,null,function*(){return(0,t.ZP)(`/api/common_comments/${Je.id}.json`,{method:"put",body:Je})}),g=Je=>o(void 0,null,function*(){return(0,t.ZP)("/api/common_comments.json",{method:"post",body:Je})}),v=Je=>o(void 0,null,function*(){return(0,t.ZP)("/api/common_comments.json",{method:"Get",params:Je})});function S(Je){return o(this,null,function*(){return(0,t.ZP)("/api/accounts/login.json",{method:"post",body:c({},Je)})})}function C(Je){return o(this,null,function*(){return(0,t.ZP)("/api/accounts/logout.json",{method:"get"})})}function E(Je){return o(this,null,function*(){return(0,t.ZP)("/api/users/get_user_info.json",{method:"get",params:c({},Je)})})}function x(Je){return o(this,null,function*(){return(0,t.ZP)("/api/users/get_notice.json",{method:"get",params:c({},Je)})})}function O(){return o(this,null,function*(){return(0,t.ZP)("/api/users/system_update.json",{method:"get"})})}function I(Je){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${Je.username}/homepage_info.json`,{method:"get"})})}function T(Je){return o(this,null,function*(){return(0,t.ZP)("/api/users/attendance.json",{method:"post"})})}function R(Je){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${Je.username}/courses.json`,{method:"get",params:Je})})}function k(Je){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${Je.username}/shixuns.json`,{method:"get",params:Je})})}function D(Je){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${Je.username}/subjects.json`,{method:"get",params:Je})})}function N(Je){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${Je.username}/projects.json`,{method:"get",params:Je})})}function L(Je){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${Je.username}/videos.json`,{method:"get",params:Je})})}function q(Je){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${Je.username}/videos/review.json`,{method:"get",params:Je})})}function W(Je){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${Je.username}/videos/${Je.id}.json`,{method:"delete"})})}function K(Je){return o(this,null,function*(){return(0,t.ZP)("/api/watch_video_histories.json",{method:"post",body:Je})})}function Z(Je){return o(this,null,function*(){return(0,t.ZP)("/api/users/question_banks.json",{method:"get",params:Je})})}function H(Je){return o(this,null,function*(){return(0,t.ZP)("/api/question_banks/multi_public.json",{method:"post",body:Je})})}function j(Je){return o(this,null,function*(){return(0,t.ZP)("/api/question_banks/multi_delete.json",{method:"delete",body:Je})})}function F(Je){return o(this,null,function*(){return(0,t.ZP)("/api/question_banks/my_courses.json",{method:"get",params:Je})})}function $(Je){return o(this,null,function*(){return(0,t.ZP)("/api/question_banks/send_to_course.json",{method:"post",body:Je})})}function M(Je){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${Je.username}/videos/${Je.object_id}/create_course_video.json`,{method:"post",body:Je})})}function Q(Je){return o(this,null,function*(){return(0,t.ZP)(`/api/homework_banks/${Je.topicId}.json`,{method:"get",params:Je})})}function U(Je){return o(this,null,function*(){return(0,t.ZP)("/api/question_banks/multi_delete.json",{method:"delete",body:c({},Je)})})}function z(Je){return o(this,null,function*(){return(0,t.ZP)(`/api/users/${Je.username}/videos/batch_publish.json`,{method:"post",body:Je})})}function Y(Je){return o(this,null,function*(){return(0,t.ZP)(`/api/myshixuns/${Je.identifier}/cancel.json`,{method:"delete",body:c({},Je)})})}function ee(){return o(this,null,function*(){return(0,t.ZP)("/api/users/get_engineer_url.json",{method:"get"})})}function de(Je){return o(this,null,function*(){return(0,t.ZP)("/api/intelligent_recommendations/user_choice_learn_path.json",{method:"post",body:c({},Je)})})}function me(){return o(this,null,function*(){return(0,t.ZP)("/api/intelligent_recommendations/persona.json",{method:"get"})})}function _e(){return o(this,null,function*(){return(0,t.ZP)("/api/intelligent_recommendations/user_learn_path.json",{method:"get"})})}function be(Je){return(0,t.ZP)("/api/accounts/valid_email_and_phone.json",{method:"get",params:Je})}function pt(Je){return(0,t.ZP)("/api/accounts/get_verification_code.json",{method:"get",params:Je})}function tt(Je){return(0,t.ZP)("/api/accounts/register.json",{method:"post",body:c({},Je)})}function Ot(Je){return Fetch("/api/weapps/register.json",{method:"post",body:c({},Je)})}function _t(Je){return(0,t.ZP)(`/api/users/accounts/${Je.login}/password.json`,{method:"put",body:c({},Je)})}function Gt(Je){return(0,t.ZP)("/api/accounts/reset_password.json",{method:"post",body:c({},Je)})}function It(Je){return(0,t.ZP)("/api/accounts/login_for_phone.json",{method:"get",params:c({},Je)})}},56188:function(i,f,e){"use strict";e.d(f,{BQ:function(){return p},DH:function(){return R},Db:function(){return K},Ju:function(){return W},Mz:function(){return N},O2:function(){return v},TJ:function(){return E},Vg:function(){return g},ZY:function(){return h},Zx:function(){return D},cU:function(){return d},fn:function(){return q},jK:function(){return x},yN:function(){return L}});var t=e(33170),r=Object.defineProperty,n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(Z,H,j)=>H in Z?r(Z,H,{enumerable:!0,configurable:!0,writable:!0,value:j}):Z[H]=j,c=(Z,H)=>{for(var j in H||(H={}))a.call(H,j)&&u(Z,j,H[j]);if(n)for(var j of n(H))s.call(H,j)&&u(Z,j,H[j]);return Z},o=(Z,H,j)=>new Promise((F,$)=>{var M=z=>{try{U(j.next(z))}catch(Y){$(Y)}},Q=z=>{try{U(j.throw(z))}catch(Y){$(Y)}},U=z=>z.done?F(z.value):Promise.resolve(z.value).then(M,Q);U((j=j.apply(Z,H)).next())});function p(Z){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${Z.coursesId}/watch_video_histories.json`,{method:"Get",params:c({},Z)})})}function h(Z){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${Z.coursesId}/watch_statics.json`,{method:"Get",params:c({},Z)})})}function d(Z){return o(this,null,function*(){return(0,t.ZP)(`/api/course_videos/${Z.videoId}/watch_histories.json`,{method:"Get",params:c({},Z)})})}function g(Z){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${Z.coursesId}/own_watch_histories.json`,{method:"Get",params:c({},Z)})})}function v(Z){return o(this,null,function*(){return(0,t.ZP)(`/api/video_items/${Z.id}.json`,{method:"Get",params:c({},Z)})})}function S(Z){return o(this,null,function*(){return Fetch("/api/video_items.json",{method:"post",body:Z})})}function C(Z){return o(this,null,function*(){return Fetch(`/api/video_items/${Z.id}/edit.json`,{method:"Get",params:c({},Z)})})}function E(Z){return o(this,null,function*(){return(0,t.ZP)(`/api/stage_shixuns/${Z.id}/edit.json`,{method:"Get",params:c({},Z)})})}function x(Z){return o(this,null,function*(){return(0,t.ZP)(`/api/video_items/${Z.id}/star.json`,{method:"post",body:Z})})}function O(Z){return o(this,null,function*(){return Fetch(`/api/video_items/${Z.id}.json`,{method:"put",body:Z})})}function I(Z){return o(this,null,function*(){return Fetch(`/api/video_items/${Z.id}/send_to_course.json`,{method:"post",body:Z})})}function T(Z){return o(this,null,function*(){return Fetch("/api/users/my_courses.json",{method:"Get",params:c({},Z)})})}function R(Z){return o(this,null,function*(){return(0,t.ZP)(`/api/video_items/${Z.id}/view_video.json`,{method:"post",body:Z})})}function k(Z){return o(this,null,function*(){return Fetch(`/api/video_items/${Z.id}/add_school.json`,{method:"post",body:Z})})}function D(Z){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${Z.course_id}/video_people_statics.json`,{method:"get",params:Z})})}function N(Z){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${Z.course_id}/video_duration_statics.json`,{method:"get",params:Z})})}function L(Z){return o(this,null,function*(){return(0,t.ZP)("/api/stages.json",{method:"get",params:Z})})}function q(Z){return o(this,null,function*(){return(0,t.ZP)(`/api/courses/${Z==null?void 0:Z.id}/course_videos_tree.json`,{method:"get",params:Z})})}function W(Z){return o(this,null,function*(){return(0,t.ZP)("/api/study_action_analyses.json",{method:"post",body:Z})})}function K(Z){return o(this,null,function*(){return(0,t.ZP)("/api/study_action_analyses/detail.json",{method:"post",body:Z})})}},69237:function(i,f,e){"use strict";e.d(f,{A:function(){return N},CH:function(){return a},EA:function(){return c},FU:function(){return h},G_:function(){return v},LY:function(){return T},Ll:function(){return u},MM:function(){return x},Ps:function(){return R},Sl:function(){return C},To:function(){return d},Vf:function(){return g},XQ:function(){return s},b:function(){return p},bq:function(){return D},cZ:function(){return o},rV:function(){return I},sT:function(){return S},tS:function(){return k},xt:function(){return O},y2:function(){return n}});var t=e(33170),r=(L,q,W)=>new Promise((K,Z)=>{var H=$=>{try{F(W.next($))}catch(M){Z(M)}},j=$=>{try{F(W.throw($))}catch(M){Z(M)}},F=$=>$.done?K($.value):Promise.resolve($.value).then(H,j);F((W=W.apply(L,q)).next())});const n=L=>r(void 0,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L.virtual_spacesId}/base_statistic_data.json`,{method:"Get",params:L})});function a(L){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L.virtual_spacesId}/discussions/${L.id}.json`,{method:"put",body:L})})}function s(L){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L.virtual_spacesId}/discussions/${L.id}.json`,{method:"get",params:L})})}function u(L){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L.virtual_spacesId}/discussions.json`,{method:"post",body:L})})}function c(L){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L.virtual_spacesId}/discussions.json`,{method:"get",params:L})})}function o(L){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L.virtual_spacesId}/good_lessons/${L.id}/add_resources.json`,{method:"post",body:L})})}function p(L){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L.virtual_spacesId}/good_lessons/${L.id}/lesson_resources_list.json`,{method:"get",params:L})})}function h(L){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L.virtual_spacesId}/good_lessons/${L.id}.json`,{method:"get",params:L})})}function d(L){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L.virtual_spacesId}/good_lessons/${L.id}.json`,{method:"put",body:L})})}function g(L){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L.virtual_spacesId}/good_lessons.json`,{method:"post",body:L})})}function v(L){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L.virtual_spacesId}/good_lessons.json`,{method:"get",params:L})})}function S(L){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L==null?void 0:L.id}.json`,{method:"get"})})}function C(L){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L==null?void 0:L.id}/modules.json`,{method:"get"})})}function E(L){return r(this,null,function*(){return Fetch(`/api/virtual_classrooms/${L.id}/videos/batch_publish.json`,{method:"post",body:L})})}function x(L){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L.virtual_spacesId}/members.json`,{method:"post",body:L})})}function O(L){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L.virtual_spacesId}/members/${L.id}/change_creator.json`,{method:"post",body:L})})}function I(L,q){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L}/shixuns.json`,{method:"get",params:q})})}function T(L,q){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L}/shixuns`,{method:"post",body:q})})}function R(L){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L.virtual_classroom_id}/shixuns/${L.shixun_id}.json`,{method:"delete"})})}function k(L,q){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L}/subjects.json`,{method:"get",params:q})})}function D(L,q){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L}/subjects.json`,{method:"post",body:q})})}function N(L){return r(this,null,function*(){return(0,t.ZP)(`/api/virtual_classrooms/${L.virtual_classroom_id}/subjects/${L.subject_id}.json`,{method:"delete"})})}},52262:function(i,f,e){"use strict";e.d(f,{$O:function(){return H},G5:function(){return D},GD:function(){return r},GJ:function(){return h},Gg:function(){return d},I2:function(){return s},IR:function(){return L},JA:function(){return Et},JL:function(){return O},Jd:function(){return Z},Ny:function(){return E},RV:function(){return W},Rb:function(){return k},Rm:function(){return N},V9:function(){return Y},Yh:function(){return Q},aN:function(){return S},aQ:function(){return o},ag:function(){return ot},bg:function(){return Ct},d8:function(){return R},dE:function(){return q},eB:function(){return K},eY:function(){return ue},fn:function(){return Oe},h:function(){return Ut},j5:function(){return v},m$:function(){return ke},oF:function(){return g},qz:function(){return c},t_:function(){return C},tu:function(){return Ue},y8:function(){return Ve}});var t=e(35973),r=(vt=>(vt[vt.SuperAdmin=1]="SuperAdmin",vt[vt.Operation=2]="Operation",vt[vt.CertifiedTeacher=5]="CertifiedTeacher",vt[vt.TrainingProduction=8]="TrainingProduction",vt[vt.UncertifiedTeacher=12]="UncertifiedTeacher",vt[vt.Student=15]="Student",vt))(r||{}),n=(vt=>(vt[vt.SuperAdmin=1]="SuperAdmin",vt[vt.Operation=2]="Operation",vt[vt.Admin=5]="Admin",vt[vt.Teacher=8]="Teacher",vt[vt.Assistant=12]="Assistant",vt[vt.Student=15]="Student",vt))(n||{}),a=(vt=>(vt[vt.SuperAdmin=0]="SuperAdmin",vt[vt.Teacher=1]="Teacher",vt[vt.Student=2]="Student",vt))(a||{});const s=vt=>{const{user:Le}=(0,t.getDvaApp)()._store.getState(),{userInfo:yt}=Le;return vt.some(ut=>ut==(yt==null?void 0:yt.role))},u=vt=>{const{user:Le}=(0,t.getDvaApp)()._store.getState(),{userInfo:yt}=Le;return yt!=null&&yt.own?!0:vt.some(ut=>{var kt;return ut==((kt=yt==null?void 0:yt.course)==null?void 0:kt.course_role)})},c=()=>{const{user:vt}=(0,t.getDvaApp)()._store.getState(),{userInfo:Le}=vt;return Le.main_site},o=()=>{var vt;const{user:Le}=(0,t.getDvaApp)()._store.getState(),{userInfo:yt}=Le;return(vt=yt==null?void 0:yt.course)==null?void 0:vt.course_is_end},p=()=>{const{user:vt}=getDvaApp()._store.getState(),{userInfo:Le}=vt;return Le.authentication},h=()=>u([1,2,5,8,12]),d=()=>u([1,8,5,12,2]),g=()=>u([1,8,5]),v=()=>u([1]),S=()=>u([1,2,5]),C=()=>u([1,2]),E=()=>s([1,2]),x=()=>s([1]),O=()=>s([1,2,5]),I=()=>u([1,5]),T=()=>u([5,8]),R=()=>u([5]),k=()=>u([1,5,2]),D=()=>u([1,2,5,8]),N=()=>u([12]),L=()=>u([8]),q=()=>u([15]),W=()=>u([1,2,5,8,12,15]),K=()=>u([1,2,5,8,12]),Z=()=>{var vt;const{user:Le}=(0,t.getDvaApp)()._store.getState(),{userInfo:yt}=Le;return((vt=yt==null?void 0:yt.course)==null?void 0:vt.course_role)===null},H=()=>{const{user:vt}=(0,t.getDvaApp)()._store.getState(),{userInfo:Le}=vt;return Le==null?void 0:Le.has_big_model_permission},j=()=>{const{user:vt}=getDvaApp()._store.getState(),{userInfo:Le}=vt;return Le==null?void 0:Le.big_model_user_unlimited},F=(vt=!0,Le=!1)=>s([1,2,5,8,12,15]),$=(vt=!0,Le=!1)=>Le||!Le&&s([1]),M=(vt=!0,Le=!1)=>Le||!Le&&s([1,2]),Q=()=>s([15]),U=(vt=!0,Le=!1)=>vt?s([1,2,5,8,12,15]):Le||!Le&&s([1,2]),z=(vt=!0,Le=!1)=>vt?s([1,2,5,8,12,15]):Le||!Le&&s([1,2]),Y=(vt=!0,Le=!1)=>{const{user:yt}=(0,t.getDvaApp)()._store.getState(),{userInfo:ut}=yt;return ut!=null&&ut.is_shixun_marker?!0:s([1,2,5,8])},ee=(vt=!0,Le=!1)=>vt?s([1]):Le||!Le&&s([1]),de=(vt=!0,Le=!1)=>vt?s([1,2]):Le||!Le&&s([1,2]),me=(vt=!0,Le=!1)=>vt?s([1,2,5,8,12,15]):Le||!Le&&s([1,2]),_e=(vt=!0,Le=!1)=>vt?s([1,2,5,8,12]):Le||!Le&&s([1,2]),be=(vt=!0,Le=!1)=>vt?s([1,2,5]):Le||!Le&&s([1,2]),pt=(vt=!0,Le=!1)=>vt?s([1]):!1,tt=(vt=!0,Le=!1)=>s([1,2,5,8,12,15]),Ot=(vt=!0,Le=!1)=>vt?s([1]):Le||!Le&&s([1]),_t=(vt=!0,Le=!1)=>vt?s([1,2]):Le||!Le&&s([1,2]),Gt=(vt=!0,Le=!1)=>vt?s([1,2,5,8,12,15]):Le||!Le&&s([1,2]),It=(vt=!0,Le=!1)=>vt?!1:Le||!Le&&s([1,2]),Je=(vt=!0,Le=!1)=>vt?Le||!Le&&s([1,2]):!1,Tt=(vt=!0,Le=!1)=>vt?s([1,2,5,8,12]):!1,nr=(vt=!0,Le=!1)=>vt?!Le&&s([1,2,5,8,12]):!1,Nt=(vt=!0,Le=!1)=>vt?s([1,2,5]):Le||!Le&&s([1,2]),gr=(vt=!0,Le=!1)=>s([1,2,5,8,12]),Rr=(vt=!0,Le=!1)=>vt?s([1]):Le||!Le&&s([1]),Pr=(vt=!0,Le=!1)=>vt?s([1,2]):Le||!Le&&s([1,2]),at=(vt=!0,Le=!1)=>vt?s([1,2,5,8,12]):Le||!Le&&s([1,2]),wt=(vt=!0,Le=!1)=>vt?Le||!Le&&s([1,2]):!1,dt=(vt=!0,Le=!1)=>vt?s([1,2,5,8,12]):Le||!Le&&s([1,2]),Ze=(vt=!0,Le=!1)=>u([8]),Oe=()=>s([1]),ot=()=>s([1,2]),Et=()=>s([15]),ht=()=>s([1,2,5]),Ve=()=>s([1,2,5,12]),Ct=()=>{var vt;const{user:Le}=(0,t.getDvaApp)()._store.getState();return!!((vt=Le.userInfo)!=null&&vt.login)},ue=()=>{const{user:vt}=(0,t.getDvaApp)()._store.getState();return vt.userInfo},ke=()=>{var vt,Le;const{user:yt}=(0,t.getDvaApp)()._store.getState();return!!((Le=(vt=yt.userInfo)==null?void 0:vt.path)!=null&&Le.own)},We=vt=>{const{graduations:Le}=(0,t.getDvaApp)()._store.getState(),{details:yt}=Le;return vt.some(ut=>ut===(yt==null?void 0:yt.user_identity))},Ue=()=>We([0,1]),Ge=()=>We([0]),ct=()=>We([1]),Ut=()=>We([2])},52810:function(i,f,e){"use strict";e.d(f,{a2:function(){return a},fw:function(){return t},gW:function(){return n},k:function(){return s},k4:function(){return r}});const t=[{id:0,name:"\u5355\u9009\u9898",nameType:"SINGLE"},{id:1,name:"\u591A\u9009\u9898",nameType:"MULTIPLE"},{id:2,name:"\u5224\u65AD\u9898",nameType:"JUDGMENT"},{id:3,name:"\u586B\u7A7A\u9898",nameType:"COMPLETION"},{id:4,name:"\u7B80\u7B54\u9898",nameType:"SUBJECTIVE"},{id:5,name:"\u5B9E\u8BAD\u9898",nameType:"PRACTICAL"},{id:6,name:"\u7F16\u7A0B\u9898",nameType:"PROGRAM"},{id:7,name:"\u7EC4\u5408\u9898",nameType:"COMBINATION"},{id:8,name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",nameType:"BPROGRAM"}],r=["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"];var n=(u=>(u.PROBLEM="problem",u.PAPER="paper",u.OTHER="other",u))(n||{}),a=(u=>(u.SINGLE="single",u.MULTIPLEFLOW="multiple_flow",u.MULTIPLEFIXED="multiple_fixed",u.OTHER="other",u))(a||{}),s=(u=>(u[u.BISHI=1]="BISHI",u[u.JISHI=2]="JISHI",u[u.KOUSHI=3]="KOUSHI",u[u.OTHER=4]="OTHER",u))(s||{})},36720:function(i,f,e){"use strict";e.d(f,{F:function(){return t}});const t={load:"text/html",123:"application/vndlotus-1-2-3","3ds":"image/x-3ds","3g2":"video/3gpp","3ga":"video/3gpp","3gp":"video/3gpp","3gpp":"video/3gpp",602:"application/x-t602",669:"audio/x-mod","7z":"application/x-7z-compressed",a:"application/x-archive",aac:"audio/mp4",abw:"application/x-abiword",abwcrashed:"application/x-abiword",abwgz:"application/x-abiword",ac3:"audio/ac3",ace:"application/x-ace",adb:"text/x-adasrc",ads:"text/x-adasrc",afm:"application/x-font-afm",ag:"image/x-applix-graphics",ai:"application/illustrator",aif:"audio/x-aiff",aifc:"audio/x-aiff",aiff:"audio/x-aiff",al:"application/x-perl",alz:"application/x-alz",amr:"audio/amr",ani:"application/x-navi-animation","anim[1-9j]":"video/x-anim",anx:"application/annodex",ape:"audio/x-ape",arj:"application/x-arj",arw:"image/x-sony-arw",as:"application/x-applix-spreadsheet",asc:"text/plain",asf:"video/x-ms-asf",asp:"application/x-asp",ass:"text/x-ssa",asx:"audio/x-ms-asx",atom:"application/atom+xml",au:"audio/basic",avi:"video/x-msvideo",aw:"application/x-applix-word",awb:"audio/amr-wb",awk:"application/x-awk",axa:"audio/annodex",axv:"video/annodex",bak:"application/x-trash",bcpio:"application/x-bcpio",bdf:"application/x-font-bdf",bib:"text/x-bibtex",bin:"application/octet-stream",blend:"application/x-blender",blender:"application/x-blender",bmp:"image/bmp",bz:"application/x-bzip",bz2:"application/x-bzip",c:"text/x-csrc","c++":"text/x-c++src",cab:"application/vndms-cab-compressed",cb7:"application/x-cb7",cbr:"application/x-cbr",cbt:"application/x-cbt",cbz:"application/x-cbz",cc:"text/x-c++src",cdf:"application/x-netcdf",cdr:"application/vndcorel-draw",cer:"application/x-x509-ca-cert",cert:"application/x-x509-ca-cert",cgm:"image/cgm",chm:"application/x-chm",chrt:"application/x-kchart",class:"application/x-java",cls:"text/x-tex",cmake:"text/x-cmake",cpio:"application/x-cpio",cpiogz:"application/x-cpio-compressed",cpp:"text/x-c++src",cr2:"image/x-canon-cr2",crt:"application/x-x509-ca-cert",crw:"image/x-canon-crw",cs:"text/x-csharp",csh:"application/x-csh",css:"text/css",cssl:"text/css",csv:"text/csv",cue:"application/x-cue",cur:"image/x-win-bitmap",cxx:"text/x-c++src",d:"text/x-dsrc",dar:"application/x-dar",dbf:"application/x-dbf",dc:"application/x-dc-rom",dcl:"text/x-dcl",dcm:"application/dicom",dcr:"image/x-kodak-dcr",dds:"image/x-dds",deb:"application/x-deb",der:"application/x-x509-ca-cert",desktop:"application/x-desktop",dia:"application/x-dia-diagram",diff:"text/x-patch",divx:"video/x-msvideo",djv:"image/vnddjvu",djvu:"image/vnddjvu",dng:"image/x-adobe-dng",doc:"application/msword",docbook:"application/docbook+xml",docm:"application/vndopenxmlformats-officedocumentwordprocessingmldocument",docx:"application/vndopenxmlformats-officedocumentwordprocessingmldocument",dot:"text/vndgraphviz",dsl:"text/x-dsl",dtd:"application/xml-dtd",dtx:"text/x-tex",dv:"video/dv",dvi:"application/x-dvi",dvibz2:"application/x-bzdvi",dvigz:"application/x-gzdvi",dwg:"image/vnddwg",dxf:"image/vnddxf",e:"text/x-eiffel",egon:"application/x-egon",eif:"text/x-eiffel",el:"text/x-emacs-lisp",emf:"image/x-emf",emp:"application/vndemusic-emusic_package",ent:"application/xml-external-parsed-entity",eps:"image/x-eps",epsbz2:"image/x-bzeps",epsgz:"image/x-gzeps",epsf:"image/x-eps",epsfbz2:"image/x-bzeps",epsfgz:"image/x-gzeps",epsi:"image/x-eps",epsibz2:"image/x-bzeps",epsigz:"image/x-gzeps",epub:"application/epub+zip",erl:"text/x-erlang",es:"application/ecmascript",etheme:"application/x-e-theme",etx:"text/x-setext",exe:"application/x-ms-dos-executable",exr:"image/x-exr",ez:"application/andrew-inset",f:"text/x-fortran",f90:"text/x-fortran",f95:"text/x-fortran",fb2:"application/x-fictionbook+xml",fig:"image/x-xfig",fits:"image/fits",fl:"application/x-fluid",flac:"audio/x-flac",flc:"video/x-flic",fli:"video/x-flic",flv:"video/x-flv",flw:"application/x-kivio",fo:"text/x-xslfo",for:"text/x-fortran",g3:"image/fax-g3",gb:"application/x-gameboy-rom",gba:"application/x-gba-rom",gcrd:"text/directory",ged:"application/x-gedcom",gedcom:"application/x-gedcom",gen:"application/x-genesis-rom",gf:"application/x-tex-gf",gg:"application/x-sms-rom",gif:"image/gif",glade:"application/x-glade",gmo:"application/x-gettext-translation",gnc:"application/x-gnucash",gnd:"application/gnunet-directory",gnucash:"application/x-gnucash",gnumeric:"application/x-gnumeric",gnuplot:"application/x-gnuplot",gp:"application/x-gnuplot",gpg:"application/pgp-encrypted",gplt:"application/x-gnuplot",gra:"application/x-graphite",gsf:"application/x-font-type1",gsm:"audio/x-gsm",gtar:"application/x-tar",gv:"text/vndgraphviz",gvp:"text/x-google-video-pointer",gz:"application/x-gzip",h:"text/x-chdr","h++":"text/x-c++hdr",hdf:"application/x-hdf",hh:"text/x-c++hdr",hp:"text/x-c++hdr",hpgl:"application/vndhp-hpgl",hpp:"text/x-c++hdr",hs:"text/x-haskell",htm:"text/html",html:"text/html",hwp:"application/x-hwp",hwt:"application/x-hwt",hxx:"text/x-c++hdr",ica:"application/x-ica",icb:"image/x-tga",icns:"image/x-icns",ico:"image/vndmicrosofticon",ics:"text/calendar",idl:"text/x-idl",ief:"image/ief",iff:"image/x-iff",ilbm:"image/x-ilbm",ime:"text/x-imelody",imy:"text/x-imelody",ins:"text/x-tex",iptables:"text/x-iptables",iso:"application/x-cd-image",iso9660:"application/x-cd-image",it:"audio/x-it",j2k:"image/jp2",jad:"text/vndsunj2meapp-descriptor",jar:"application/x-java-archive",java:"text/x-java",jng:"image/x-jng",jnlp:"application/x-java-jnlp-file",jp2:"image/jp2",jpc:"image/jp2",jpe:"image/jpeg",jpeg:"image/jpeg",jpf:"image/jp2",jpg:"image/jpeg",jpr:"application/x-jbuilder-project",jpx:"image/jp2",js:"application/javascript",json:"application/json",jsonp:"application/jsonp",k25:"image/x-kodak-k25",kar:"audio/midi",karbon:"application/x-karbon",kdc:"image/x-kodak-kdc",kdelnk:"application/x-desktop",kexi:"application/x-kexiproject-sqlite3",kexic:"application/x-kexi-connectiondata",kexis:"application/x-kexiproject-shortcut",kfo:"application/x-kformula",kil:"application/x-killustrator",kino:"application/smil",kml:"application/vndgoogle-earthkml+xml",kmz:"application/vndgoogle-earthkmz",kon:"application/x-kontour",kpm:"application/x-kpovmodeler",kpr:"application/x-kpresenter",kpt:"application/x-kpresenter",kra:"application/x-krita",ksp:"application/x-kspread",kud:"application/x-kugar",kwd:"application/x-kword",kwt:"application/x-kword",la:"application/x-shared-library-la",latex:"text/x-tex",ldif:"text/x-ldif",lha:"application/x-lha",lhs:"text/x-literate-haskell",lhz:"application/x-lhz",log:"text/x-log",ltx:"text/x-tex",lua:"text/x-lua",lwo:"image/x-lwo",lwob:"image/x-lwo",lws:"image/x-lws",ly:"text/x-lilypond",lyx:"application/x-lyx",lz:"application/x-lzip",lzh:"application/x-lha",lzma:"application/x-lzma",lzo:"application/x-lzop",m:"text/x-matlab",m15:"audio/x-mod",m2t:"video/mpeg",m3u:"audio/x-mpegurl",m3u8:"audio/x-mpegurl",m4:"application/x-m4",m4a:"audio/mp4",m4b:"audio/x-m4b",m4v:"video/mp4",mab:"application/x-markaby",man:"application/x-troff-man",mbox:"application/mbox",md:"application/x-genesis-rom",mdb:"application/vndms-access",mdi:"image/vndms-modi",me:"text/x-troff-me",med:"audio/x-mod",metalink:"application/metalink+xml",mgp:"application/x-magicpoint",mid:"audio/midi",midi:"audio/midi",mif:"application/x-mif",minipsf:"audio/x-minipsf",mka:"audio/x-matroska",mkv:"video/x-matroska",ml:"text/x-ocaml",mli:"text/x-ocaml",mm:"text/x-troff-mm",mmf:"application/x-smaf",mml:"text/mathml",mng:"video/x-mng",mo:"application/x-gettext-translation",mo3:"audio/x-mo3",moc:"text/x-moc",mod:"audio/x-mod",mof:"text/x-mof",moov:"video/quicktime",mov:"video/quicktime",movie:"video/x-sgi-movie","mp+":"audio/x-musepack",mp2:"video/mpeg",mp3:"audio/mpeg",mp4:"video/mp4",mpc:"audio/x-musepack",mpe:"video/mpeg",mpeg:"video/mpeg",mpg:"video/mpeg",mpga:"audio/mpeg",mpp:"audio/x-musepack",mrl:"text/x-mrml",mrml:"text/x-mrml",mrw:"image/x-minolta-mrw",ms:"text/x-troff-ms",msi:"application/x-msi",msod:"image/x-msod",msx:"application/x-msx-rom",mtm:"audio/x-mod",mup:"text/x-mup",mxf:"application/mxf",n64:"application/x-n64-rom",nb:"application/mathematica",nc:"application/x-netcdf",nds:"application/x-nintendo-ds-rom",nef:"image/x-nikon-nef",nes:"application/x-nes-rom",nfo:"text/x-nfo",not:"text/x-mup",nsc:"application/x-netshow-channel",nsv:"video/x-nsv",o:"application/x-object",obj:"application/x-tgif",ocl:"text/x-ocl",oda:"application/oda",odb:"application/vndoasisopendocumentdatabase",odc:"application/vndoasisopendocumentchart",odf:"application/vndoasisopendocumentformula",odg:"application/vndoasisopendocumentgraphics",odi:"application/vndoasisopendocumentimage",odm:"application/vndoasisopendocumenttext-master",odp:"application/vndoasisopendocumentpresentation",ods:"application/vndoasisopendocumentspreadsheet",odt:"application/vndoasisopendocumenttext",oga:"audio/ogg",ogg:"video/x-theora+ogg",ogm:"video/x-ogm+ogg",ogv:"video/ogg",ogx:"application/ogg",old:"application/x-trash",oleo:"application/x-oleo",opml:"text/x-opml+xml",ora:"image/openraster",orf:"image/x-olympus-orf",otc:"application/vndoasisopendocumentchart-template",otf:"application/x-font-otf",otg:"application/vndoasisopendocumentgraphics-template",oth:"application/vndoasisopendocumenttext-web",otp:"application/vndoasisopendocumentpresentation-template",ots:"application/vndoasisopendocumentspreadsheet-template",ott:"application/vndoasisopendocumenttext-template",owl:"application/rdf+xml",oxt:"application/vndopenofficeorgextension",p:"text/x-pascal",p10:"application/pkcs10",p12:"application/x-pkcs12",p7b:"application/x-pkcs7-certificates",p7s:"application/pkcs7-signature",pack:"application/x-java-pack200",pak:"application/x-pak",par2:"application/x-par2",pas:"text/x-pascal",patch:"text/x-patch",pbm:"image/x-portable-bitmap",pcd:"image/x-photo-cd",pcf:"application/x-cisco-vpn-settings",pcfgz:"application/x-font-pcf",pcfz:"application/x-font-pcf",pcl:"application/vndhp-pcl",pcx:"image/x-pcx",pdb:"chemical/x-pdb",pdc:"application/x-aportisdoc",pdf:"application/pdf",pdfbz2:"application/x-bzpdf",pdfgz:"application/x-gzpdf",pef:"image/x-pentax-pef",pem:"application/x-x509-ca-cert",perl:"application/x-perl",pfa:"application/x-font-type1",pfb:"application/x-font-type1",pfx:"application/x-pkcs12",pgm:"image/x-portable-graymap",pgn:"application/x-chess-pgn",pgp:"application/pgp-encrypted",php:"application/x-php",php3:"application/x-php",php4:"application/x-php",pict:"image/x-pict",pict1:"image/x-pict",pict2:"image/x-pict",pickle:"application/python-pickle",pk:"application/x-tex-pk",pkipath:"application/pkix-pkipath",pkr:"application/pgp-keys",pl:"application/x-perl",pla:"audio/x-iriver-pla",pln:"application/x-planperfect",pls:"audio/x-scpls",pm:"application/x-perl",png:"image/png",pnm:"image/x-portable-anymap",pntg:"image/x-macpaint",po:"text/x-gettext-translation",por:"application/x-spss-por",pot:"text/x-gettext-translation-template",ppm:"image/x-portable-pixmap",pps:"application/vndms-powerpoint",ppt:"application/vndms-powerpoint",pptm:"application/vndopenxmlformats-officedocumentpresentationmlpresentation",pptx:"application/vndopenxmlformats-officedocumentpresentationmlpresentation",ppz:"application/vndms-powerpoint",prc:"application/x-palm-database",ps:"application/postscript",psbz2:"application/x-bzpostscript",psgz:"application/x-gzpostscript",psd:"image/vndadobephotoshop",psf:"audio/x-psf",psfgz:"application/x-gz-font-linux-psf",psflib:"audio/x-psflib",psid:"audio/prssid",psw:"application/x-pocket-word",pw:"application/x-pw",py:"text/x-python",pyc:"application/x-python-bytecode",pyo:"application/x-python-bytecode",qif:"image/x-quicktime",qt:"video/quicktime",qtif:"image/x-quicktime",qtl:"application/x-quicktime-media-link",qtvr:"video/quicktime",ra:"audio/vndrn-realaudio",raf:"image/x-fuji-raf",ram:"application/ram",rar:"application/x-rar",ras:"image/x-cmu-raster",raw:"image/x-panasonic-raw",rax:"audio/vndrn-realaudio",rb:"application/x-ruby",rdf:"application/rdf+xml",rdfs:"application/rdf+xml",reg:"text/x-ms-regedit",rej:"application/x-reject",rgb:"image/x-rgb",rle:"image/rle",rm:"application/vndrn-realmedia",rmj:"application/vndrn-realmedia",rmm:"application/vndrn-realmedia",rms:"application/vndrn-realmedia",rmvb:"application/vndrn-realmedia",rmx:"application/vndrn-realmedia",roff:"text/troff",rp:"image/vndrn-realpix",rpm:"application/x-rpm",rss:"application/rss+xml",rt:"text/vndrn-realtext",rtf:"application/rtf",rtx:"text/richtext",rv:"video/vndrn-realvideo",rvx:"video/vndrn-realvideo",s3m:"audio/x-s3m",sam:"application/x-amipro",sami:"application/x-sami",sav:"application/x-spss-sav",scm:"text/x-scheme",sda:"application/vndstardivisiondraw",sdc:"application/vndstardivisioncalc",sdd:"application/vndstardivisionimpress",sdp:"application/sdp",sds:"application/vndstardivisionchart",sdw:"application/vndstardivisionwriter",sgf:"application/x-go-sgf",sgi:"image/x-sgi",sgl:"application/vndstardivisionwriter",sgm:"text/sgml",sgml:"text/sgml",sh:"application/x-shellscript",shar:"application/x-shar",shn:"application/x-shorten",siag:"application/x-siag",sid:"audio/prssid",sik:"application/x-trash",sis:"application/vndsymbianinstall",sisx:"x-epoc/x-sisx-app",sit:"application/x-stuffit",siv:"application/sieve",sk:"image/x-skencil",sk1:"image/x-skencil",skr:"application/pgp-keys",slk:"text/spreadsheet",smaf:"application/x-smaf",smc:"application/x-snes-rom",smd:"application/vndstardivisionmail",smf:"application/vndstardivisionmath",smi:"application/x-sami",smil:"application/smil",sml:"application/smil",sms:"application/x-sms-rom",snd:"audio/basic",so:"application/x-sharedlib",spc:"application/x-pkcs7-certificates",spd:"application/x-font-speedo",spec:"text/x-rpm-spec",spl:"application/x-shockwave-flash",spx:"audio/x-speex",sql:"text/x-sql",sr2:"image/x-sony-sr2",src:"application/x-wais-source",srf:"image/x-sony-srf",srt:"application/x-subrip",ssa:"text/x-ssa",stc:"application/vndsunxmlcalctemplate",std:"application/vndsunxmldrawtemplate",sti:"application/vndsunxmlimpresstemplate",stm:"audio/x-stm",stw:"application/vndsunxmlwritertemplate",sty:"text/x-tex",sub:"text/x-subviewer",sun:"image/x-sun-raster",sv4cpio:"application/x-sv4cpio",sv4crc:"application/x-sv4crc",svg:"image/svg+xml",svgz:"image/svg+xml-compressed",swf:"application/x-shockwave-flash",sxc:"application/vndsunxmlcalc",sxd:"application/vndsunxmldraw",sxg:"application/vndsunxmlwriterglobal",sxi:"application/vndsunxmlimpress",sxm:"application/vndsunxmlmath",sxw:"application/vndsunxmlwriter",sylk:"text/spreadsheet",t:"text/troff",t2t:"text/x-txt2tags",tar:"application/x-tar",tarbz:"application/x-bzip-compressed-tar",tarbz2:"application/x-bzip-compressed-tar",targz:"application/x-compressed-tar",tarlzma:"application/x-lzma-compressed-tar",tarlzo:"application/x-tzo",tarxz:"application/x-xz-compressed-tar",tarz:"application/x-tarz",tbz:"application/x-bzip-compressed-tar",tbz2:"application/x-bzip-compressed-tar",tcl:"text/x-tcl",tex:"text/x-tex",texi:"text/x-texinfo",texinfo:"text/x-texinfo",tga:"image/x-tga",tgz:"application/x-compressed-tar",theme:"application/x-theme",themepack:"application/x-windows-themepack",tif:"image/tiff",tiff:"image/tiff",tk:"text/x-tcl",tlz:"application/x-lzma-compressed-tar",tnef:"application/vndms-tnef",tnf:"application/vndms-tnef",toc:"application/x-cdrdao-toc",torrent:"application/x-bittorrent",tpic:"image/x-tga",tr:"text/troff",ts:"application/x-linguist",tsv:"text/tab-separated-values",tta:"audio/x-tta",ttc:"application/x-font-ttf",ttf:"application/x-font-ttf",ttx:"application/x-font-ttx",txt:"text/plain",txz:"application/x-xz-compressed-tar",tzo:"application/x-tzo",ufraw:"application/x-ufraw",ui:"application/x-designer",uil:"text/x-uil",ult:"audio/x-mod",uni:"audio/x-mod",uri:"text/x-uri",url:"text/x-uri",ustar:"application/x-ustar",vala:"text/x-vala",vapi:"text/x-vala",vcf:"text/directory",vcs:"text/calendar",vct:"text/directory",vda:"image/x-tga",vhd:"text/x-vhdl",vhdl:"text/x-vhdl",viv:"video/vivo",vivo:"video/vivo",vlc:"audio/x-mpegurl",vob:"video/mpeg",voc:"audio/x-voc",vor:"application/vndstardivisionwriter",vst:"image/x-tga",wav:"audio/x-wav",wax:"audio/x-ms-asx",wb1:"application/x-quattropro",wb2:"application/x-quattropro",wb3:"application/x-quattropro",wbmp:"image/vndwapwbmp",wcm:"application/vndms-works",wdb:"application/vndms-works",webm:"video/webm",wk1:"application/vndlotus-1-2-3",wk3:"application/vndlotus-1-2-3",wk4:"application/vndlotus-1-2-3",wks:"application/vndms-works",wma:"audio/x-ms-wma",wmf:"image/x-wmf",wml:"text/vndwapwml",wmls:"text/vndwapwmlscript",wmv:"video/x-ms-wmv",wmx:"audio/x-ms-asx",wp:"application/vndwordperfect",wp4:"application/vndwordperfect",wp5:"application/vndwordperfect",wp6:"application/vndwordperfect",wpd:"application/vndwordperfect",wpg:"application/x-wpg",wpl:"application/vndms-wpl",wpp:"application/vndwordperfect",wps:"application/vndms-works",wri:"application/x-mswrite",wrl:"model/vrml",wv:"audio/x-wavpack",wvc:"audio/x-wavpack-correction",wvp:"audio/x-wavpack",wvx:"audio/x-ms-asx",x3f:"image/x-sigma-x3f",xac:"application/x-gnucash",xbel:"application/x-xbel",xbl:"application/xml",xbm:"image/x-xbitmap",xcf:"image/x-xcf",xcfbz2:"image/x-compressed-xcf",xcfgz:"image/x-compressed-xcf",xhtml:"application/xhtml+xml",xi:"audio/x-xi",xla:"application/vndms-excel",xlc:"application/vndms-excel",xld:"application/vndms-excel",xlf:"application/x-xliff",xliff:"application/x-xliff",xll:"application/vndms-excel",xlm:"application/vndms-excel",xls:"application/vndms-excel",xlsm:"application/vndopenxmlformats-officedocumentspreadsheetmlsheet",xlsx:"application/vndopenxmlformats-officedocumentspreadsheetmlsheet",xlt:"application/vndms-excel",xlw:"application/vndms-excel",xm:"audio/x-xm",xmf:"audio/x-xmf",xmi:"text/x-xmi",xml:"application/xml",xpm:"image/x-xpixmap",xps:"application/vndms-xpsdocument",xsl:"application/xml",xslfo:"text/x-xslfo",xslt:"application/xml",xspf:"application/xspf+xml",xul:"application/vndmozillaxul+xml",xwd:"image/x-xwindowdump",xyz:"chemical/x-pdb",xz:"application/x-xz",w2p:"application/w2p",z:"application/x-compress",zabw:"application/x-abiword",zip:"application/zip"}},11320:function(i,f,e){"use strict";e.d(f,{Z:function(){return a}});const t={PROXY_SERVER:"https://pre-data.educoder.net",API_SERVER:"",REPORT_SERVER:"http://192.168.1.57:3001",IMG_SERVER:"https://new-testali-cdn.educoder.net",FORGE:"https://code.educoder.net/",SSH_SERVER:"wss://webssh.educoder.net",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",CABLE_SERVER:"wss://test3-data.educoder.net/cable",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",TERMINAL_URL:"testsvc1.vnc.educoder.net",QQLoginCB:encodeURIComponent("https://test-newweb.educoder.net"),AI_PLATFORM_URL:"https://aitest.educoder.net"};var r=null,a={local:{API_SERVER:"http://localhost:3000",IMG_SERVER:"https://testali-cdn.educoder.net/",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"https://test-oldweb.educoder.net/",SSH_SERVER:"wss://pre-webssh.educoder.net",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",CABLE_SERVER:"wss://test-data.educoder.net/cable",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",QQLoginCB:encodeURIComponent("https://test-newweb.educoder.net"),AI_PLATFORM_URL:"https://aitest.educoder.net"},dev:t,newReactTest:{API_SERVER:(()=>{let s;switch(location.host){case"test4.educoder.net":s="https://test4-data.educoder.net";break;case"test3.educoder.net":s="https://test3-data.educoder.net";break;case"test2.educoder.net":s="https://test2-data.educoder.net";break;default:s="https://test-data.educoder.net";break}return s})(),SSH_SERVER:"wss://pre-webssh.educoder.net",SSH_Slice:"https://testfu.educoder.net",IMG_SERVER:(()=>{let s="https://new-testali-cdn.educoder.net";const u=location.host;return u==="test3.educoder.net"&&(s="https://test3-data.educoder.net"),u==="test4.educoder.net"&&(s="https://test4-data.educoder.net"),s})(),OFFICE_SERVER:"https://testoffice.educoder.net",CABLE_SERVER:"wss://test-data.educoder.net/cable",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"https://test-oldweb.educoder.net/",QQLoginCB:encodeURIComponent("https://test-data.educoder.net"),TERMINAL_URL:"testsvc1.vnc.educoder.net",AI_PLATFORM_URL:"https://aitest.educoder.net"},preNewBuild:{API_SERVER:(()=>{let s="https://pre-data.educoder.net";return location.host==="pre2.educoder.net"&&(s="https://pre-data2.educoder.net"),s})(),IMG_SERVER:"https://preali-cdn.educoder.net",SSH_SERVER:"wss://pre-webssh.educoder.net",SSH_Slice:"https://testfu.educoder.net",REPORT_SERVER:"http://192.168.1.57:3001",OFFICE_SERVER:"https://testoffice.educoder.net",CABLE_SERVER:"wss://pre-data.educoder.net/cable",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",FORGE:"https://forge.educoder.net/",QQLoginCB:encodeURIComponent("https://pre.educoder.net"),AI_PLATFORM_URL:"https://aitest.educoder.net"},newBuild:{API_SERVER:(()=>{let s="https://data.educoder.net";return document.domain==="kepukehuan.educoder.net"?s="https://kepukehuan-data.educoder.net":(document.domain==="www.tokcoder.com"||document.domain==="tokcoder.com")&&(s="https://data.tokcoder.com"),s})(),SSH_SERVER:"wss://webssh.educoder.net",REPORT_SERVER:"http://192.168.1.57:3001",SSH_Slice:"https://fu.educoder.net",IMG_SERVER:"https://ali-cdn.educoder.net",OFFICE_SERVER:"https://officeserver.educoder.net",CABLE_SERVER:"wss://data.educoder.net/cable",ONLYOFFICE:"https://office.educoder.net",OFFICE_IP:"https://officedata.educoder.net",FORGE:"https://code.educoder.net/",QQLoginCB:encodeURIComponent("https://www.educoder.net"),TERMINAL_URL:".jupyter.educoder.net",AI_PLATFORM_URL:"https://ai.educoder.net"},newTest:{API_SERVER:"https://test-data.educoder.net",IMG_SERVER:"https://test-data.educoder.net",REPORT_SERVER:"http://192.168.1.57:3001",SSH_SERVER:"wss://pre-webssh.educoder.net",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",CABLE_SERVER:"wss://test-data.educoder.net/cable",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",FORGE:"http://test-oldweb.educoder.net/",QQLoginCB:encodeURIComponent("https://test-data.educoder.net"),AI_PLATFORM_URL:"https://aitest.educoder.net"},test:{API_SERVER:"",IMG_SERVER:"",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"http://test-oldweb.educoder.net/",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",CABLE_SERVER:"wss://test-data.educoder.net/cable",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",SSH_SERVER:"wss://pre-webssh.educoder.net",QQLoginCB:encodeURIComponent("https://test-newweb.educoder.net"),AI_PLATFORM_URL:"https://aitest.educoder.net"},preBuild:{API_SERVER:"",IMG_SERVER:"https://preali-cdn.educoder.net",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"https://forge.educoder.net/",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",CABLE_SERVER:"wss://test-data.educoder.net/cable",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",SSH_SERVER:"wss://pre-webssh.educoder.net",QQLoginCB:encodeURIComponent("https://test-newweb.educoder.net"),AI_PLATFORM_URL:"https://aitest.educoder.net"},newWeb:{API_SERVER:"https://test-newweb.educoder.net",IMG_SERVER:"https://test-newweb.educoder.net/",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"http://test-oldweb.educoder.net/",SSH_Slice:"https://testfu.educoder.net",OFFICE_SERVER:"https://testoffice.educoder.net",CABLE_SERVER:"wss://test-data.educoder.net/cable",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"http://113.246.243.98:9569",SSH_SERVER:"wss://pre-webssh.educoder.net",QQLoginCB:encodeURIComponent("https://test-newweb.educoder.net"),AI_PLATFORM_URL:"https://aitest.educoder.net"},build:{API_SERVER:"",IMG_SERVER:"",REPORT_SERVER:"http://192.168.1.57:3001",FORGE:"https://forge.educoder.net/",SSH_SERVER:"wss://webssh.educoder.net",SSH_Slice:"https://fu.educoder.net",OFFICE_SERVER:"https://officeserver.educoder.net",CABLE_SERVER:"wss://data.educoder.net/cable",ONLYOFFICE:"https://testoffice.educoder.net",OFFICE_IP:"https://officedata.educoder.net",QQLoginCB:encodeURIComponent("https://www.educoder.net"),TERMINAL_URL:".jupyter.educoder.net",AI_PLATFORM_URL:"https://aitest.educoder.net"}}[window.ENV||"dev"]},33170:function(i,f,e){"use strict";e.d(f,{IV:function(){return Q},U2:function(){return j},ZP:function(){return W},d4:function(){return F},gz:function(){return M},rz:function(){return q},v_:function(){return $}});var t=e(11320),r=e(16568),n=e(62844),a=e(2453),s=e(33715),u=e.n(s),c=e(67294),o=e(35973),p=e(28706),h=Object.defineProperty,d=Object.defineProperties,g=Object.getOwnPropertyDescriptors,v=Object.getOwnPropertySymbols,S=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable,E=(U,z,Y)=>z in U?h(U,z,{enumerable:!0,configurable:!0,writable:!0,value:Y}):U[z]=Y,x=(U,z)=>{for(var Y in z||(z={}))S.call(z,Y)&&E(U,Y,z[Y]);if(v)for(var Y of v(z))C.call(z,Y)&&E(U,Y,z[Y]);return U},O=(U,z)=>d(U,g(z)),I=(U,z,Y)=>new Promise((ee,de)=>{var me=pt=>{try{be(Y.next(pt))}catch(tt){de(tt)}},_e=pt=>{try{be(Y.throw(pt))}catch(tt){de(tt)}},be=pt=>pt.done?ee(pt.value):Promise.resolve(pt.value).then(me,_e);be((Y=Y.apply(U,z)).next())});let T;const R={200:"\u670D\u52A1\u5668\u6210\u529F\u8FD4\u56DE\u8BF7\u6C42\u7684\u6570\u636E\u3002",201:"\u65B0\u5EFA\u6216\u4FEE\u6539\u6570\u636E\u6210\u529F\u3002",202:"\u4E00\u4E2A\u8BF7\u6C42\u5DF2\u7ECF\u8FDB\u5165\u540E\u53F0\u6392\u961F\uFF08\u5F02\u6B65\u4EFB\u52A1\uFF09\u3002",204:"\u5220\u9664\u6570\u636E\u6210\u529F\u3002",400:"\u53D1\u51FA\u7684\u8BF7\u6C42\u6709\u9519\u8BEF\uFF0C\u670D\u52A1\u5668\u6CA1\u6709\u8FDB\u884C\u65B0\u5EFA\u6216\u4FEE\u6539\u6570\u636E\u7684\u64CD\u4F5C\u3002",401:"\u7528\u6237\u6CA1\u6709\u6743\u9650\uFF08\u4EE4\u724C\u3001\u7528\u6237\u540D\u3001\u5BC6\u7801\u9519\u8BEF\uFF09\u3002",403:"\u7528\u6237\u5F97\u5230\u6388\u6743\uFF0C\u4F46\u662F\u8BBF\u95EE\u662F\u88AB\u7981\u6B62\u7684\u3002",404:"\u53D1\u51FA\u7684\u8BF7\u6C42\u9488\u5BF9\u7684\u662F\u4E0D\u5B58\u5728\u7684\u8BB0\u5F55\uFF0C\u670D\u52A1\u5668\u6CA1\u6709\u8FDB\u884C\u64CD\u4F5C\u3002",406:"\u8BF7\u6C42\u7684\u683C\u5F0F\u4E0D\u53EF\u5F97\u3002",410:"\u8BF7\u6C42\u7684\u8D44\u6E90\u88AB\u6C38\u4E45\u5220\u9664\uFF0C\u4E14\u4E0D\u4F1A\u518D\u5F97\u5230\u7684\u3002",422:"\u5F53\u521B\u5EFA\u4E00\u4E2A\u5BF9\u8C61\u65F6\uFF0C\u53D1\u751F\u4E00\u4E2A\u9A8C\u8BC1\u9519\u8BEF\u3002",500:"\u670D\u52A1\u5668\u53D1\u751F\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u670D\u52A1\u5668\u3002",502:"\u7F51\u5173\u9519\u8BEF\u3002",503:"\u670D\u52A1\u4E0D\u53EF\u7528\uFF0C\u670D\u52A1\u5668\u6682\u65F6\u8FC7\u8F7D\u6216\u7EF4\u62A4\u3002",504:"\u7F51\u5173\u8D85\u65F6\u3002"},k=U=>{try{typeof U=="string"&&(U=JSON.parse(U));const z=/\(\s+\/api\/attachments\/(\d+)|\(\/api\/attachments\/(\d+)\//g,Y=/\"\/api\/attachments\/(\d+)\//g,ee=/\(\s+\/files\/uploads\/(\d+)|\"\/files\/uploads\/(\d+)\//g,de=/\/api\/attachments\/(\d+)/g,me=/\/attachments\/download\/(\d+)/g;return JSON.stringify(U).replace(de,(be,pt,tt,Ot)=>{const _t=pt||tt||Ot;return"/api/attachments/"+(0,p.Jn)(_t)}).replace(me,(be,pt,tt)=>{const Ot=pt||tt;return"/attachments/download/"+(0,p.Jn)(Ot)}).replace(z,(be,pt,tt,Ot)=>{const _t=pt||tt||Ot;return"(/api/attachments/"+(0,p.Jn)(_t)}).replace(Y,(be,pt,tt)=>{const Ot=pt||tt;return'"/api/attachments/'+(0,p.Jn)(Ot)}).replace(ee,(be,pt,tt)=>{const Ot=pt||tt;return"(/files/uploads/"+(0,p.Jn)(Ot)}).replace(/\r\n/g,` `)}catch(z){return null}},D=(U,z)=>I(void 0,null,function*(){if(U.status>=200&&U.status<300)return U;const Y=R[U.status]||U.statusText;let ee;var de=U.json();yield de.then((_e,be)=>{setTimeout(()=>{let pt=(0,o.getDvaApp)()},400),ee=_e.message,window.showNetworkErrorTip(_e.message||`\u8BF7\u6C42\u9519\u8BEF ${U.status}: ${U.message}`),r.ZP.error({style:{wordBreak:"break-all"},message:_e.message||`\u8BF7\u6C42\u9519\u8BEF ${U.status}: ${U.message}`,description:_e.message?"":Y})});const me=new Error(Y);throw me.name=U.status,me.response=U,{data:U,code:U.status,message:ee||Y}}),N=(U,z)=>{const Y=U.headers.get("Content-Type");return Y&&Y.match(/application\/json/i)&&U.clone().text().then(()=>{}),U};function L(U){try{return decodeURIComponent(U),decodeURIComponent(encodeURIComponent(U))===U}catch(z){return!1}}const q=U=>{U=U||{};let z="";for(let Y in U)typeof U[Y]=="object"?Array.isArray(U[Y])&&U[Y].forEach((ee,de)=>{z+="&"+Y+"[]="+ee}):U[Y]!==void 0&&(z+="&"+Y+"="+(L(U[Y])?U[Y]:encodeURIComponent(U[Y])));return z.substr(1)};function W(U,z,Y,ee){z.method||(z.method="get"),z.method=z.method.toUpperCase(),z.mode="cors";const de=x({},z),{user:me}=(0,o.getDvaApp)()._store.getState(),{userInfo:_e}=me,be=U+(de.body?JSON.stringify(de.body):""),pt=u().sha256().update(be).digest("hex"),tt={credentials:"include",withCredentials:!0},Ot={};_e!=null&&_e.login&&(Ot.zzud=_e==null?void 0:_e.login,_e!=null&&_e.school_id&&(Ot.zzsud=_e==null?void 0:_e.school_id),de.params=x(x({},de.params||{}),Ot));let _t=x(x({},tt),JSON.parse(JSON.stringify(de)));(_t.method==="POST"||_t.method==="PUT"||_t.method==="PATCH"||_t.method==="DELETE")&&(Y?(_t.headers=O(x({},_t.headers),{Origin:location.origin,"Pc-Authorization":(0,p.ej)("_educoder_session")}),_t.body=de.body):(_t.headers=x({Accept:"application/json","Content-Type":"application/json; charset=utf-8","Pc-Authorization":(0,p.ej)("_educoder_session"),Origin:location.origin},_t.headers),_t.body=JSON.stringify(de.body))),_t.method=="GET"?(_t.headers=O(x({Accept:"application/json","Content-Type":"application/json; charset=utf-8"},_t.headers),{Origin:location.origin,"Pc-Authorization":(0,p.ej)("_educoder_session")}),de.params&&q(de.params)&&(U+="?"+q(de.params))):Ot.zzud&&(U+="?"+q(x({},Ot)));const Gt=de.expirys&&60;let It;(Nt=>{Nt.json="application/json;charset=UTF-8",Nt.form="application/x-www-form-urlencoded; charset=UTF-8"})(It||(It={}));let Je;(Nt=>{Nt.get="GET",Nt.post="POST"})(Je||(Je={}));const Tt=Nt=>I(this,null,function*(){const gr=yield Nt.arrayBuffer();let Rr;const Pr=new Blob([gr]);try{Rr=Nt.headers.get("Content-Disposition").split(";")[1].replace("filename=","").replace(/[\s+,\',\",\‘,\’,\“,\”,\<,\>,\《,\》]/g,"")}catch(Ze){Rr="userfiles.zip"}const at=document.createElement("a"),wt=window.URL.createObjectURL(Pr),dt=Rr;return at.href=wt,at.download=dt,at.click(),window.URL.revokeObjectURL(wt),gr});let nr=t.Z.API_SERVER;return(window.ENV==="dev"||U.startsWith("http"))&&(nr=""),_t.method=="GET"&&_t.params&&Object.keys(_t.params).map(Nt=>{if(_t.params[Nt]&&!Array.isArray(_t.params[Nt]))try{_t.params[Nt]=encodeURIComponent(decodeURIComponent(_t.params[Nt]))}catch(gr){_t.params[Nt]=encodeURIComponent(_t.params[Nt])}}),(0,p.Ec)(_t,U),ee&&(nr=""),fetch(nr+U,_t).then(Nt=>D(Nt,x({url:t.Z.API_SERVER+U},_t))).then(Nt=>N(Nt,pt)).then(Nt=>I(this,null,function*(){var gr,Rr,Pr,at;try{const dt=Nt.headers.get("cs");dt&&(0,p.d8)("_educoder_session",dt,1)}catch(dt){}if(Nt.status===204)return Nt.text();let wt;if(Nt.headers.get("content-type").indexOf("application/json")>-1){wt=yield Nt.json();try{wt=JSON.parse(k(wt))}catch(dt){}}else _t.headers["Content-Type"]==="application/xml"?wt=yield Nt.text():(gr=de.body)!=null&&gr.autoDownload||(Rr=de.params)!=null&&Rr.autoDownload?wt=yield Tt(Nt):wt=yield Nt.arrayBuffer();try{wt.status===401&&(!((Pr=_t.params)!=null&&Pr.hidePopLogin)||!((at=_t.body)!=null&&at.hidePopLogin))&&(0,o.getDvaApp)()._store.dispatch({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),wt.status===402&&(localStorage.getItem("addinfo")==="2"?(0,o.getDvaApp)()._store.dispatch({type:"shixunHomeworks/setActionTabs",payload:{key:"\u586B\u5145\u4FE1\u606F\u5F39\u7A97"}}):(T=T||n.default.confirm({visible:!1,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88"}),T.update({centered:!0,visible:!0,title:"\u63D0\u793A",content:"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{o.history.push("/account/profile/edit")}})))}catch(dt){console.log("fetcherr",dt)}return H(wt,U),wt})).catch(Nt=>{try{const gr=Nt.code;if(Nt instanceof TypeError&&window.showNetworkErrorTip(`${U}${Nt.message}`),gr){if(gr===401){(0,o.getDvaApp)()._store.dispatch({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}});return}H(Nt,U)}else U.includes("/file/filePatchMerge")?(0,o.getDvaApp)()._store.dispatch({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5206\u7247\u4E13\u7528504",params:_t.body}}):Nt.message!=="403"&&window.showNetworkErrorTip(`${U}${Nt.message}`);return Nt}catch(gr){}})}let K=!1,Z=!1;const H=(U,z)=>{var Y,ee,de;if(U.status==-6&&!Z){Z=!0,(0,p.d8)("_educoder_session","logout",1),(0,p.m5)(),setTimeout(()=>Z=!1,500),n.default.info({title:"\u7CFB\u7EDF\u901A\u77E5",content:U.message,okText:"\u77E5\u9053\u4E86",maskStyle:{background:"#000"},onOk:()=>{window.location.reload()}});return}if(U.status==-7){Z=!0,setTimeout(()=>Z=!1,500);let _e="";(Y=U==null?void 0:U.data)!=null&&Y.exercise_list&&((de=(ee=U==null?void 0:U.data)==null?void 0:ee.exercise_list)==null||de.map(be=>{_e+=`\u300A${be.exercise_name}\u300B`})),n.default.info({title:"\u63D0\u793A",content:c.createElement("div",{id:"fetchStatus7",className:"fetchStatus7"},""),maskClosable:!1,closeIcon:!1,width:550,maskStyle:{background:"#000"},okText:"\u8FD4\u56DE\u9996\u9875",onOk:()=>{window.location.href="/"}}),setTimeout(()=>{document.getElementById("fetchStatus7").innerHTML=`
    \u60A8\u5F53\u524D\u6709\u6B63\u5728\u8FDB\u884C\u7684\u8003\u8BD5 ${_e} \uFF0C\u8BF7\u5728\u8003\u8BD5\u7ED3\u675F\u540E\u8BBF\u95EE\u8BE5\u9875\u9762
    `},500);return}if((U.status==-1||U.status==-2||U.status==-102||U.status>400)&&U.status!=403&&!Z){Z=!0,setTimeout(()=>Z=!1,500),a.ZP.warning({content:U.message,key:"message-key"});return}const me={403:"/403",404:"/404",500:"/500"};if(me[U.status]&&!K){const{user:_e}=(0,o.getDvaApp)()._store.getState(),{userInfo:be}=_e;throw window.location.pathname.indexOf("/users")>-1&&document.domain==="kepukehuan.educoder.net"&&(K=!0),setTimeout(()=>K=!1,500),sessionStorage.setItem("errorStatus",JSON.stringify(U)),Object.values(me).includes(window.location.pathname)?console.log("\u5F53\u524D\u8DEF\u5F84\u5B58\u5728\u4E8E mapping \u4E2D, \u4E0D\u518D\u6267\u884C\u8DF3\u8F6C"):location.replace(me[U.status]),new Error("403")}};function j(U,z){return W(`/api/${U}`,{method:"Get",params:z||{}})}function F(U,z){return W(`/${U}`,{method:"Get",params:z})}function $(U,z){return W(`/api/${U}`,{method:"Post",body:x({},z)})}function M(U,z){return W(`/api/${U}`,{method:"Put",body:x({},z)})}function Q(U,z){return W(`/api/${U}`,{method:"delete",body:x({},z||{})})}},27951:function(i,f,e){"use strict";e.d(f,{Bn:function(){return n},hw:function(){return r},mi:function(){return t}});const t="WlRsa1pEVmlORE15TW1ZNVpqZGtPRE5rTURBNVpHVTVZbVpoTVRBd1l6TT0=",r="TW1VelpHRXdObUZsTWpaaVlUbG1OelpoTldRNFpETTFOVGMwTm1ZeVptVT0=",n="T1RkaE1XWTRaalJoTUdaaE9HUmxaR016T0RGa05XTTNPRFkwTkdJeVpUQT0="},28706:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{AS:function(){return vtrsKey},BO:function(){return NewAntdDisabledDate},BR:function(){return aiReviewConfigformatChecks},Br:function(){return getBlob},DH:function(){return timego},Dk:function(){return setDocumentTitle},Dw:function(){return onPreviewImage},EJ:function(){return HighLightedContent},EM:function(){return toChineseNumber},EN:function(){return preciseCalculation},Ec:function(){return setHeader},FH:function(){return downLoadFile},G5:function(){return sendAppStatus},G7:function(){return handleValidatorNickName},Gn:function(){return storageHomeworkId},HJ:function(){return handleValidatorName},I9:function(){return RomanNumber},IS:function(){return isWechatBrowser},Il:function(){return setThreeComponent},JL:function(){return formatHomeWorkStatusToName},Jn:function(){return getImageUrl},L4:function(){return PollsStatus},L9:function(){return trackEvent},LR:function(){return download},Ll:function(){return checkIsClientExam},M:function(){return setmiyah},M2:function(){return randomArray},NY:function(){return setUrlQuery},Nd:function(){return downLoadLink},Oo:function(){return getCategoryName},Or:function(){return toWechatLogin},PF:function(){return formatRandomPaperDatas},Pq:function(){return cutName},Q8:function(){return disabledDate},QB:function(){return timeContrast},QE:function(){return releaseRuleDataAdjust},QH:function(){return downLoadFileIframe},Qq:function(){return JudgeSort},RD:function(){return bytesToSize},RG:function(){return copyTextFuc},Sp:function(){return rangeNumber},Sv:function(){return downloadFile},TG:function(){return getStorageHomeworkId},Tv:function(){return ImgSrcConvert},U6:function(){return HalfPastOne},UQ:function(){return HomeWorkDetailStatus},Uw:function(){return CommonWorkStatus},VV:function(){return StatusClassroomsTags},Vf:function(){return domScrollToTop},W:function(){return isUnOrNull},WX:function(){return isLocalApp},Y:function(){return HomeWorkCommonDetailStatus},YA:function(){return getHiddenName},ZJ:function(){return toDataUrl},ZR:function(){return GetElementHeight},_g:function(){return getMessagesUrl},_m:function(){return isKepuKehuan},ad:function(){return formatRandomPaperData},b9:function(){return isPc},cX:function(){return localSort},d0:function(){return disabledTime},d8:function(){return setCookie},db:function(){return getFileContentAndUrl},eF:function(){return bindPhone},eR:function(){return validateLength},ej:function(){return getCookie},en:function(){return parseUrl},fX:function(){return buildTree},hi:function(){return getExamRestrictionInfo},hv:function(){return NewAntdDisabledTime},i7:function(){return isChrome},j1:function(){return StatusGraduationProjectTags},jh:function(){return educationList},jl:function(){return highlightLastNewline},ju:function(){return ExerciseStatus},jz:function(){return replaceParamVal},k3:function(){return scrollToTop},kk:function(){return pointerEvents},lC:function(){return HomeWorkListStatus},lF:function(){return toWNumber},li:function(){return toTimeFormat},m5:function(){return clearAllCookies},nr:function(){return startExercise},oP:function(){return getJsonFromUrl},oV:function(){return ZimuSort},og:function(){return formatRate},oi:function(){return checkLocalOrPublicIp},pE:function(){return addJumping},pp:function(){return findEndWhitespace},qZ:function(){return arrTrans},qd:function(){return DayHalfPastOne},rK:function(){return HomeWorkShixunListStatus},rU:function(){return showTotal},rz:function(){return moveArray},s2:function(){return isMobileDevice},tP:function(){return cutFileName},tw:function(){return getTwoDecimalPlaces},uD:function(){return dealUploadChange},vA:function(){return HomeWorkShixunDetailStatus},vB:function(){return exerciseTips},xg:function(){return openNewWindow},y3:function(){return getBase64},yC:function(){return compareVersion}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(67294),_utils_authority__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(52262),antd__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(2453),antd__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(62844),antd__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(71230),antd__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(15746),_components_Exercise_ip__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(53814),_service_exercise__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(15835),_contentType__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(36720),umi__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(35973),md5__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(2568),md5__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(md5__WEBPACK_IMPORTED_MODULE_6__),_env__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(11320),_components_mediator__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(33054),crypto_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(81354),crypto_js__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(crypto_js__WEBPACK_IMPORTED_MODULE_9__),_key__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(27951),moment__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(94699),moment__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_10__),dayjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(27484),dayjs__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(dayjs__WEBPACK_IMPORTED_MODULE_11__),dayjs_plugin_customParseFormat__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(10285),dayjs_plugin_customParseFormat__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(dayjs_plugin_customParseFormat__WEBPACK_IMPORTED_MODULE_12__),uuid__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(25934),__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(i,f,e)=>f in i?__defProp(i,f,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[f]=e,__spreadValues=(i,f)=>{for(var e in f||(f={}))__hasOwnProp.call(f,e)&&__defNormalProp(i,e,f[e]);if(__getOwnPropSymbols)for(var e of __getOwnPropSymbols(f))__propIsEnum.call(f,e)&&__defNormalProp(i,e,f[e]);return i},__spreadProps=(i,f)=>__defProps(i,__getOwnPropDescs(f)),__async=(i,f,e)=>new Promise((t,r)=>{var n=u=>{try{s(e.next(u))}catch(c){r(c)}},a=u=>{try{s(e.throw(u))}catch(c){r(c)}},s=u=>u.done?t(u.value):Promise.resolve(u.value).then(n,a);s((e=e.apply(i,f)).next())}),_a,_b;dayjs__WEBPACK_IMPORTED_MODULE_11___default().extend(dayjs_plugin_customParseFormat__WEBPACK_IMPORTED_MODULE_12___default());const GetElementHeight=(i,f="px",e,t=!1)=>{if(!i)return 0;const r=t?i.scrollHeight:i.offsetHeight;if(f==="rem"){const n=e?`${e}`:getComputedStyle(document.documentElement).fontSize,a=parseFloat(n);return r/a}return r},HighLightedContent=(i,f=[],e="#2EC25B")=>(typeof f=="string"&&(f=[f]),i.replace(new RegExp(`(${f.join("|")})`,"gi"),`$1`)),parseParams=i=>{i=i||{};let f="";for(let e in i)typeof i[e]=="object"?Array.isArray(i[e])&&i[e].forEach((t,r)=>{f+="&"+e+"[]="+t}):i[e]!==void 0&&(f+="&"+e+"="+i[e]);return f.substr(1)},getKey=i=>window.atob(window.atob(i));function bytesToSize(i){var f=["Bytes","KB","MB","GB","TB"];if(i==0)return"0 Byte";var e=parseInt(""+Math.floor(Math.log(i)/Math.log(1024)),10);return(i/Math.pow(1024,e)).toFixed(1)+" "+f[e]}const getTwoDecimalPlaces=i=>Math.round(Math.round(i*1e5)/1e3*100)/100,NewAntdDisabledDate=(i,f=null)=>{const e=idayjs__WEBPACK_IMPORTED_MODULE_11___default()(f==null?void 0:f.endTime).endOf("day"),r=i{const e=parseInt(dayjs__WEBPACK_IMPORTED_MODULE_11___default()(i).format("HH")),t=parseInt(dayjs__WEBPACK_IMPORTED_MODULE_11___default()(i).format("mm")),r=parseInt(dayjs__WEBPACK_IMPORTED_MODULE_11___default()().format("HH")),n=parseInt(dayjs__WEBPACK_IMPORTED_MODULE_11___default()().format("mm")),a=parseInt(dayjs__WEBPACK_IMPORTED_MODULE_11___default()().format("ss"));function s(u,c){const o=[];for(let p=u;ps(0,r),disabledMinutes:()=>s(0,n)};if(f!=null&&f.compared){const u=parseInt(dayjs__WEBPACK_IMPORTED_MODULE_11___default()(f==null?void 0:f.compared).format("HH")),c=parseInt(dayjs__WEBPACK_IMPORTED_MODULE_11___default()(f==null?void 0:f.compared).format("mm")),o=parseInt(dayjs__WEBPACK_IMPORTED_MODULE_11___default()(f==null?void 0:f.compared).format("ss"));return dayjs__WEBPACK_IMPORTED_MODULE_11___default()(i).isSame(dayjs__WEBPACK_IMPORTED_MODULE_11___default()(f==null?void 0:f.compared),"day")?{disabledHours:()=>s(0,u),disabledMinutes:()=>e<=u?s(0,c):[]}:void 0}if(dayjs__WEBPACK_IMPORTED_MODULE_11___default()(i).isSame(dayjs__WEBPACK_IMPORTED_MODULE_11___default()(),"day"))return{disabledHours:()=>s(0,r),disabledMinutes:()=>dayjs__WEBPACK_IMPORTED_MODULE_11___default()(i).isSame(dayjs__WEBPACK_IMPORTED_MODULE_11___default()(),"hour")&&e<=r?s(0,n):[]}},disabledDate=(i,f,e,t)=>{t=typeof t=="string"?moment__WEBPACK_IMPORTED_MODULE_10___default()(t):t;const r=t?i<(t==null?void 0:t.startOf("day")):imoment__WEBPACK_IMPORTED_MODULE_10___default()(f).endOf("day"),a=i{const e=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()(i).format("HH")),t=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()().format("HH")),r=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()().format("mm"));function n(a,s){const u=[];for(let c=a;cn(0,t),disabledMinutes:()=>n(0,r)};if(f){const a=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()(f).format("HH")),s=parseInt(moment__WEBPACK_IMPORTED_MODULE_10___default()(f).format("mm"));return moment__WEBPACK_IMPORTED_MODULE_10___default()(i).isSame(moment__WEBPACK_IMPORTED_MODULE_10___default()(f),"day")?{disabledHours:()=>n(0,a),disabledMinutes:()=>e<=a?n(0,s):[]}:void 0}if(moment__WEBPACK_IMPORTED_MODULE_10___default()(i).isSame(moment__WEBPACK_IMPORTED_MODULE_10___default()(),"day"))return{disabledHours:()=>n(0,t),disabledMinutes:()=>moment__WEBPACK_IMPORTED_MODULE_10___default()(i).isSame(moment__WEBPACK_IMPORTED_MODULE_10___default()(),"hour")&&e<=t?n(0,r):[]}},preciseCalculation=(i,f,e)=>{typeof i=="string"&&(i=Number(i)),typeof f=="string"&&(f=Number(f));const t=(i.toString().split(".")[1]||"").length,r=(f.toString().split(".")[1]||"").length,n=Math.max(t,r),a=Math.pow(10,n);return(()=>{switch(e){case"+":return(Math.round(i*a)+Math.round(f*a))/a;case"-":return(Math.round(i*a)-Math.round(f*a))/a;case"*":return Math.round(i*a)*Math.round(f*a)/(a*a);case"/":return Math.round(i*a)/Math.round(f*a);default:throw new Error("\u4E0D\u652F\u6301\u7684\u8FD0\u7B97\u7B26\u53F7")}})()},toWNumber=i=>i/1e4>1?react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,Math.round(i/1e4*100)/100,react__WEBPACK_IMPORTED_MODULE_0__.createElement("i",{className:"font12"},"w")):i,toChineseNumber=i=>{const f=i.toString().replace(/(?=(\d{4})+$)/g,",").split(",").filter(Boolean),e=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],t=["","\u5341","\u767E","\u5343"],r=["","\u4E07","\u4EBF"],n=s=>{let u="";for(let c=0;c{const t=i.splice(f,1)[0];return i.splice(e,0,t),i},ZimuSort=["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"],JudgeSort=["\u6B63\u786E","\u9519\u8BEF"],RomanNumber=["I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII","XIII","XIV","XV","XVI","XVII","XVIII","XIX","XX"],findEndWhitespace=i=>{if(!i)return"";const f=i.replace(/(?:\r\n|\n)/g,`\x1B[41m\x1B[37m\u21B5\x1B[0m\r `).replace(/ +$/g,"\x1B[41m \x1B[0m");return console.debug("str:",f,JSON.stringify(i)),f},highlightLastNewline=i=>i?(i=i.replace(/(^|[^\r])\r(?!\n)/g,`$1\r `),i=i.replace(new RegExp("(?=0)&&(s[c]=n[c]);return s}function r(n,a){if(n==null)return{};var s=t(n,a),u,c;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);for(c=0;c=0)&&Object.prototype.propertyIsEnumerable.call(n,u)&&(s[u]=n[u])}return s}},48804:function(i,f,e){"use strict";e.d(f,{Z:function(){return u}});function t(c){if(Array.isArray(c))return c}function r(c,o){var p=c==null?null:typeof Symbol!="undefined"&&c[Symbol.iterator]||c["@@iterator"];if(p!=null){var h,d,g,v,S=[],C=!0,E=!1;try{if(g=(p=p.call(c)).next,o===0){if(Object(p)!==p)return;C=!1}else for(;!(C=(h=g.call(p)).done)&&(S.push(h.value),S.length!==o);C=!0);}catch(x){E=!0,d=x}finally{try{if(!C&&p.return!=null&&(v=p.return(),Object(v)!==v))return}finally{if(E)throw d}}return S}}function n(c,o){(o==null||o>c.length)&&(o=c.length);for(var p=0,h=new Array(o);pr.length)&&(n=r.length);for(var a=0,s=Array(n);ar.length)&&(n=r.length);for(var a=0,s=new Array(n);a0&&arguments[0]!==void 0?arguments[0]:"";return rn.endsWith("/")?rn:"".concat(rn,"/")}var Bs=__webpack_require__(49647),Cs=__webpack_require__(58096),Nc=["content"],yc=["content"],Vu=/^(http:|https:)?\/\//;function eu(rn){return Vu.test(rn)||rn.startsWith("/")&&!rn.startsWith("/*")||rn.startsWith("./")||rn.startsWith("../")}var Ls=function(){return oe.createElement("noscript",{dangerouslySetInnerHTML:{__html:"Enable JavaScript to run this app."}})},Bc=function(an){var ya,eo=an.loaderData,Ao=an.htmlPageOpts,$o=an.manifest,To=($o==null||(ya=$o.assets)===null||ya===void 0?void 0:ya["umi.css"])||"";return oe.createElement("script",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:"window.__UMI_LOADER_DATA__ = ".concat(JSON.stringify(eo||{}),"; window.__UMI_METADATA_LOADER_DATA__ = ").concat(JSON.stringify(Ao||{}),"; window.__UMI_BUILD_ClIENT_CSS__ = '").concat(To,"'")}})};function Gu(rn){var an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof rn=="string")return eu(rn)?vs({src:rn},an):{content:rn};if(ou(rn)==="object")return vs(vs({},rn),an);throw new Error("Invalid script type: ".concat(ou(rn)))}function Ku(rn){return eu(rn)?{type:"link",href:rn}:{type:"style",content:rn}}var gl=function(an){var ya,eo,Ao,$o,To,Ri,co=an.htmlPageOpts;return oe.createElement(oe.Fragment,null,(co==null?void 0:co.title)&&oe.createElement("title",null,co.title),co==null||(ya=co.favicons)===null||ya===void 0?void 0:ya.map(function($i,tu){return oe.createElement("link",{key:tu,rel:"shortcut icon",href:$i})}),(co==null?void 0:co.description)&&oe.createElement("meta",{name:"description",content:co.description}),(co==null||(eo=co.keywords)===null||eo===void 0?void 0:eo.length)&&oe.createElement("meta",{name:"keywords",content:co.keywords.join(",")}),co==null||(Ao=co.metas)===null||Ao===void 0?void 0:Ao.map(function($i){return oe.createElement("meta",{key:$i.name,name:$i.name,content:$i.content})}),co==null||($o=co.links)===null||$o===void 0?void 0:$o.map(function($i,tu){return oe.createElement("link",(0,Cs.Z)({key:tu},$i))}),co==null||(To=co.styles)===null||To===void 0?void 0:To.map(function($i,tu){var Os=Ku($i),Ru=Os.type,Du=Os.href,yu=Os.content;if(Ru==="link")return oe.createElement("link",{key:tu,rel:"stylesheet",href:Du});if(Ru==="style")return oe.createElement("style",{key:tu},yu)}),co==null||(Ri=co.headScripts)===null||Ri===void 0?void 0:Ri.map(function($i,tu){var Os=Gu($i),Ru=Os.content,Du=(0,Bs.Z)(Os,Nc);return oe.createElement("script",(0,Cs.Z)({dangerouslySetInnerHTML:{__html:Ru},key:tu},Du))}))};function Yu(rn){var an,ya=rn.children,eo=rn.loaderData,Ao=rn.manifest,$o=rn.htmlPageOpts,To=rn.__INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ri=rn.mountElementId;if(To!=null&&To.pureHtml)return oe.createElement("html",null,oe.createElement("head",null),oe.createElement("body",null,oe.createElement(Ls,null),oe.createElement("div",{id:Ri},ya),oe.createElement(Bc,{manifest:Ao,loaderData:eo,htmlPageOpts:$o})));if(To!=null&&To.pureApp)return oe.createElement(oe.Fragment,null,ya);var co=typeof window=="undefined"?Ao==null?void 0:Ao.assets["umi.css"]:window.__UMI_BUILD_ClIENT_CSS__;return oe.createElement("html",{suppressHydrationWarning:!0,lang:($o==null?void 0:$o.lang)||"en"},oe.createElement("head",null,oe.createElement("meta",{charSet:"utf-8"}),oe.createElement("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),co&&oe.createElement("link",{suppressHydrationWarning:!0,rel:"stylesheet",href:co}),oe.createElement(gl,{htmlPageOpts:$o})),oe.createElement("body",null,oe.createElement(Ls,null),oe.createElement("div",{id:Ri},ya),oe.createElement(Bc,{manifest:Ao,loaderData:eo,htmlPageOpts:$o}),$o==null||(an=$o.scripts)===null||an===void 0?void 0:an.map(function($i,tu){var Os=Gu($i),Ru=Os.content,Du=(0,Bs.Z)(Os,yc);return oe.createElement("script",(0,Cs.Z)({dangerouslySetInnerHTML:{__html:Ru},key:tu},Du))})))}var vu=oe.createContext(void 0);function Uc(){return oe.useContext(vu)}var yl=["redirect"];function cc(rn){var an=rn.routesById,ya=rn.parentId,eo=rn.routeComponents,Ao=rn.useStream,$o=Ao===void 0?!0:Ao;return Object.keys(an).filter(function(To){return an[To].parentId===ya}).map(function(To){var Ri=xc(vs(vs({route:an[To],routeComponent:eo[To],loadingComponent:rn.loadingComponent,reactRouter5Compat:rn.reactRouter5Compat},rn.reactRouter5Compat&&{hasChildren:Object.keys(an).filter(function($i){return an[$i].parentId===To}).length>0}),{},{useStream:$o})),co=cc({routesById:an,routeComponents:eo,parentId:Ri.id,loadingComponent:rn.loadingComponent,reactRouter5Compat:rn.reactRouter5Compat,useStream:$o});return co.length>0&&(Ri.children=co,Ri.routes=co),Ri})}function bc(rn){var an=(0,Ys.UO)(),ya=(0,Ys.Gn)(rn.to,an),eo=(0,Hu.T$)(),Ao=(0,Ys.TH)();if(eo!=null&&eo.keepQuery){var $o=Ao.search+Ao.hash;ya+=$o}var To=vs(vs({},rn),{},{to:ya});return oe.createElement(Ys.Fg,(0,Cs.Z)({replace:!0},To))}function xc(rn){var an=rn.route,ya=rn.useStream,eo=ya===void 0?!0:ya,Ao=an.redirect,$o=(0,Bs.Z)(an,yl),To=rn.reactRouter5Compat?bl:Ec;return vs({element:Ao?oe.createElement(bc,{to:Ao}):oe.createElement(vu.Provider,{value:{route:rn.route}},oe.createElement(To,{loader:oe.memo(rn.routeComponent),loadingComponent:rn.loadingComponent||wc,hasChildren:rn.hasChildren,useStream:eo}))},$o)}function wc(){return oe.createElement("div",null)}function bl(rn){var an=Uc(),ya=an.route,eo=(0,Hu.Ov)(),Ao=eo.history,$o=eo.clientRoutes,To=(0,Ys.UO)(),Ri={params:To,isExact:!0,path:ya.path,url:Ao.location.pathname},co=rn.loader,$i={location:Ao.location,match:Ri,history:Ao,params:To,route:ya,routes:$o};return rn.useStream?oe.createElement(oe.Suspense,{fallback:oe.createElement(rn.loadingComponent,null)},oe.createElement(co,$i,rn.hasChildren&&oe.createElement(Ys.j3,null))):oe.createElement(co,$i,rn.hasChildren&&oe.createElement(Ys.j3,null))}function Ec(rn){var an=rn.loader;return rn.useStream?oe.createElement(oe.Suspense,{fallback:oe.createElement(rn.loadingComponent,null)},oe.createElement(an,null)):oe.createElement(an,null)}var Us=null;function Sc(){return Us}function Pc(rn){var an=rn.history,ya=oe.useState({action:an.action,location:an.location}),eo=(0,uc.Z)(ya,2),Ao=eo[0],$o=eo[1];return(0,oe.useLayoutEffect)(function(){return an.listen($o)},[an]),(0,oe.useLayoutEffect)(function(){function To(Ri){rn.pluginManager.applyPlugins({key:"onRouteChange",type:"event",args:{routes:rn.routes,clientRoutes:rn.clientRoutes,location:Ri.location,action:Ri.action,basename:rn.basename,isFirst:!!Ri.isFirst}})}return To({location:Ao.location,action:Ao.action,isFirst:!0}),an.listen(To)},[an,rn.routes,rn.clientRoutes]),oe.createElement(Ys.F0,{navigator:an,location:Ao.location,basename:rn.basename},rn.children)}function xl(){var rn=(0,Hu.Ov)(),an=rn.clientRoutes;return(0,Ys.V$)(an)}var y=["innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","rootContainer"],b=function(an,ya){var eo=an.basename||"/",Ao=cc({routesById:an.routes,routeComponents:an.routeComponents,loadingComponent:an.loadingComponent,reactRouter5Compat:an.reactRouter5Compat,useStream:an.useStream});an.pluginManager.applyPlugins({key:"patchClientRoutes",type:"event",args:{routes:Ao}});for(var $o=oe.createElement(Pc,{basename:eo,pluginManager:an.pluginManager,routes:an.routes,clientRoutes:Ao,history:an.history},ya),To=0,Ri=y;Tonew Promise((eo,Ao)=>{var $o=co=>{try{Ri(ya.next(co))}catch($i){Ao($i)}},To=co=>{try{Ri(ya.throw(co))}catch($i){Ao($i)}},Ri=co=>co.done?eo(co.value):Promise.resolve(co.value).then($o,To);Ri((ya=ya.apply(rn,an)).next())});function ce(){return V(this,null,function*(){return{routes:{1:{path:"/",parentId:"@@/global-layout",id:"1"},2:{path:"/paperlibrary",parentId:"1",id:"2"},3:{path:"/paperlibrary",parentId:"2",id:"3"},4:{path:"/paperlibrary/add",parentId:"2",id:"4"},5:{path:"/paperlibrary/add/:id",parentId:"2",id:"5"},6:{path:"/paperlibrary/see/:id",parentId:"2",id:"6"},7:{path:"/paperlibrary/edit_select/:id",parentId:"2",id:"7"},8:{path:"/paperlibrary/exchangequestion",parentId:"2",id:"8"},9:{path:"/paths",parentId:"1",id:"9"},10:{path:"/paths",parentId:"9",id:"10"},11:{path:"/paths/higherVocationalEducation",parentId:"9",id:"11"},12:{path:"/paths/new",parentId:"9",id:"12"},13:{path:"/paths/guidance",exact:!0,parentId:"9",id:"13"},14:{path:"/paths/:pathId",parentId:"9",id:"14"},15:{path:"/paths/:pathId/statistics",parentId:"9",id:"15"},16:{path:"/paths/:pathId/edit",parentId:"9",id:"16"},17:{path:"/paths/:pathId/:stageId/program_homework/:categoryId/add",parentId:"9",id:"17"},18:{path:"/paths/:pathId/:stageId/program_homework/:categoryId/edit",parentId:"9",id:"18"},19:{path:"/classrooms",parentId:"1",id:"19"},20:{path:"/classrooms",parentId:"19",id:"20"},21:{path:"/classrooms/examList",parentId:"19",id:"21"},22:{path:"/classrooms/classicCases",parentId:"19",id:"22"},23:{path:"/classrooms/index",parentId:"19",id:"23"},24:{path:"/classrooms/new",parentId:"19",id:"24"},25:{path:"/classrooms/:coursesId/edit",parentId:"19",id:"25"},26:{path:"/classrooms/news/:subjectid/newgold/:id",parentId:"19",id:"26"},27:{path:"/classrooms/:coursesId/newgolds/settings",parentId:"19",id:"27"},28:{path:"/classrooms/:coursesId/shixun_homework/:categoryId/review_detail/:userId",parentId:"19",id:"28"},29:{path:"/classrooms/:coursesId/common_homework/:categoryId/review_detail/:userId",parentId:"19",id:"29"},30:{path:"/classrooms/:coursesId/program_homework/:categoryId/review_detail/:userId",parentId:"19",id:"30"},31:{path:"/classrooms/:coursesId/shixun_homework/:categoryId/detail",parentId:"19",id:"31"},32:{path:"/classrooms/:coursesId/shixun_homework/:categoryId/:homeworkId/comment",parentId:"19",id:"32"},33:{path:"/classrooms/:coursesId/common_homework/:categoryId/:homeworkId/comment",parentId:"19",id:"33"},34:{path:"/classrooms/:coursesId/shixun_homework/:categoryId/:homeworkId/commitsummary",parentId:"19",id:"34"},35:{path:"/classrooms/:coursesId/group_homework/:categoryId/detail",parentId:"19",id:"35"},36:{path:"/classrooms/:coursesId/common_homework/:categoryId/detail",parentId:"19",id:"36"},37:{path:"/classrooms/:coursesId/common_homework/:categoryId/review/:userId",parentId:"19",id:"37"},38:{path:"/classrooms/:coursesId/group_homework/:commonHomeworkId/review/:userId",parentId:"19",id:"38"},39:{path:"/classrooms/:coursesId/group_homework/:commonHomeworkId/post",parentId:"19",id:"39"},40:{path:"/classrooms/:coursesId/group_homework/:commonHomeworkId/:homeworkId/edit",parentId:"19",id:"40"},41:{path:"/classrooms/:coursesId/exercise/:categoryId/detail/:userId/review_detail",parentId:"19",id:"41"},42:{path:"/classrooms/:coursesId/exercise/:categoryId/WordInfo/:userid",parentId:"19",id:"42"},43:{path:"/classrooms/:coursesId/exercise/:categoryId/detail",parentId:"19",id:"43"},44:{path:"/classrooms/:coursesId/exercise/:categoryId/preview_select",parentId:"19",id:"44"},45:{path:"/classrooms/:coursesId/exercise/:categoryId/:login/initate_answer",parentId:"19",id:"45"},46:{path:"/classrooms/:coursesId/exercise/:categoryId/users/:login",parentId:"19",id:"46"},47:{path:"/classrooms/:coursesId/exercise/:categoryId/wrongAnswer/:login",parentId:"19",id:"47"},48:{path:"/classrooms/:coursesId/exercisenotice/:categoryId/users/:login",parentId:"19",id:"48"},49:{path:"/classrooms/:coursesId/exercise/:categoryId/random/edit",parentId:"19",id:"49"},50:{path:"/classrooms/:coursesId/exercise/:categoryId/random/preview",parentId:"19",id:"50"},51:{path:"/classrooms/:coursesId/exercise/add",parentId:"19",id:"51"},52:{path:"/classrooms/:coursesId/exercise/add/:exerciseId",parentId:"19",id:"52"},53:{path:"/classrooms/:coursesId/exercise/:exerciseId/reviews/group",parentId:"19",id:"53"},54:{path:"/classrooms/:coursesId/exercise/:exerciseId/review/:userId",parentId:"19",id:"54"},55:{path:"/classrooms/:coursesId/exercise/:exerciseId/centralizeReview/:userId",parentId:"19",id:"55"},56:{path:"/classrooms/:coursesId/exercise/:exerciseId/export_blank",parentId:"19",id:"56"},57:{path:"/classrooms/:coursesId/exercise/:exerciseId/sumup",parentId:"19",id:"57"},58:{path:"/classrooms/:coursesId/exercise/:exerciseId/sumup/edit",parentId:"19",id:"58"},59:{path:"/classrooms/:coursesId/exercise/:exerciseId/analysis/:studentId",parentId:"19",id:"59"},60:{path:"/classrooms/:coursesId/shixun_homework/:exerciseId/analysis/:studentId",parentId:"19",id:"60"},61:{path:"/classrooms/:coursesId/exercise/:exerciseId/analysis/:studentId/code",parentId:"19",id:"61"},62:{path:"/classrooms/:coursesId/shixun_homework/:exerciseId/analysis/:studentId/code",parentId:"19",id:"62"},63:{path:"/classrooms/:coursesId/graduation_topics/:categoryId/detail",parentId:"19",id:"63"},64:{path:"/classrooms/:coursesId/graduation_topics/:categoryId/add",parentId:"19",id:"64"},65:{path:"/classrooms/:coursesId/graduation_topics/:categoryId/edit",parentId:"19",id:"65"},66:{path:"/classrooms/:coursesId/graduation_tasks/:categoryId/add",parentId:"19",id:"66"},67:{path:"/classrooms/:coursesId/graduation_tasks/:categoryId/edit",parentId:"19",id:"67"},68:{path:"/classrooms/:coursesId/graduation_tasks/:categoryId/detail",parentId:"19",id:"68"},69:{path:"/classrooms/:coursesId/common_homework/:categoryId/add",parentId:"19",id:"69"},70:{path:"/classrooms/:coursesId/common_homework/:categoryId/edit",parentId:"19",id:"70"},71:{path:"/classrooms/:coursesId/common_homework/:commonHomeworkId/post",parentId:"19",id:"71"},72:{path:"/classrooms/:coursesId/common_homework/:commonHomeworkId/:homeworkId/edit",parentId:"19",id:"72"},73:{path:"/classrooms/:coursesId/group_homework/:categoryId/add",parentId:"19",id:"73"},74:{path:"/classrooms/:coursesId/group_homework/:categoryId/edit",parentId:"19",id:"74"},75:{path:"/classrooms/:coursesId/poll/:categoryId/add",parentId:"19",id:"75"},76:{path:"/classrooms/:coursesId/poll/:categoryId/edit",parentId:"19",id:"76"},77:{path:"/classrooms/:coursesId/poll/:categoryId/detail",parentId:"19",id:"77"},78:{path:"/classrooms/:coursesId/poll/:categoryId/users/:login",parentId:"19",id:"78"},79:{path:"/classrooms/:coursesId/poll/:categoryId/questionnaireInfo/:login",parentId:"19",id:"79"},80:{path:"/classrooms/:coursesId/board/:categoryId/Add",parentId:"19",id:"80"},81:{path:"/classrooms/:coursesId/board/:categoryId/Edit/:boardId",parentId:"19",id:"81"},82:{path:"/classrooms/:coursesId/board/:categoryId/Detail/:boardId",parentId:"19",id:"82"},83:{path:"/classrooms/:courseId/template/:templateId",parentId:"19",id:"83"},84:{path:"/classrooms/:courseId/common_homework/:homeworkId/lab-report/:reportId",parentId:"19",id:"84"},85:{path:"/classrooms/guidance",parentId:"19",id:"85"},86:{path:"/classrooms/:courseId/common_homework/:homeworkId/lab-report-view/:workId",parentId:"19",id:"86"},87:{path:"/classrooms/:coursesId/exercise/:categoryId/users/:login/check",parentId:"19",id:"87"},88:{path:"/classrooms/:coursesId/Studentdetail/:login",parentId:"19",id:"88"},89:{path:"/classrooms/:coursesId/StudentSituation/:categoryId/:login",parentId:"19",id:"89"},90:{path:"/classrooms/:coursesId/engineering/datail",parentId:"19",id:"90"},91:{path:"/classrooms/:coursesId/program_homework/:categoryId/add",parentId:"19",id:"91"},92:{path:"/classrooms/:coursesId/program_homework/:categoryId/edit",parentId:"19",id:"92"},93:{path:"/classrooms/:coursesId/program_homework/ranking",parentId:"19",id:"93"},94:{path:"/classrooms/:coursesId/program_homework/:categoryId/detail",parentId:"19",id:"94"},95:{path:"/classrooms/:coursesId/program_homework/:categoryId/:homeworkId/ranking",parentId:"19",id:"95"},96:{path:"/classrooms/:coursesId/program_homework/:categoryId/:homeworkId/:user_id/comment",parentId:"19",id:"96"},97:{path:"/classrooms/:coursesId/program_homework/:categoryId/answer",parentId:"19",id:"97"},98:{path:"/classrooms/:coursesId/program_homework/:categoryId/answer/add",parentId:"19",id:"98"},99:{path:"/classrooms/:coursesId/program_homework/:categoryId/answer/:answerid/edit",parentId:"19",id:"99"},100:{path:"/classrooms/:coursesId/program_homework/:categoryId/answer/:answerid/detail",parentId:"19",id:"100"},101:{path:"/classrooms/:videoId/video_info",parentId:"19",id:"101"},102:{path:"/classrooms/",parentId:"19",id:"102"},103:{path:"/classrooms/:coursesId/shixun_homework/:categoryId",parentId:"102",id:"103"},104:{path:"/classrooms/:coursesId/shixun_homework",parentId:"102",id:"104"},105:{path:"/classrooms/:coursesId/graduation_topics/:categoryId",parentId:"102",id:"105"},106:{path:"/classrooms/:coursesId/graduation_tasks/:categoryId",parentId:"102",id:"106"},107:{path:"/classrooms/:coursesId/graduation_tasks/:categoryId",parentId:"102",id:"107"},108:{path:"/classrooms/:coursesId/exercise/:categoryId",parentId:"102",id:"108"},109:{path:"/classrooms/:coursesId/exercise",parentId:"102",id:"109"},110:{path:"/classrooms/:coursesId/poll/:categoryId",parentId:"102",id:"110"},111:{path:"/classrooms/:coursesId/poll",parentId:"102",id:"111"},112:{path:"/classrooms/:coursesId/common_homework/:categoryId",parentId:"102",id:"112"},113:{path:"/classrooms/:coursesId/common_homework",parentId:"102",id:"113"},114:{path:"/classrooms/:coursesId/group_homework/:categoryId",parentId:"102",id:"114"},115:{path:"/classrooms/:coursesId/group_homework",parentId:"102",id:"115"},116:{path:"/classrooms/:coursesId/teachers",parentId:"102",id:"116"},117:{path:"/classrooms/:coursesId/students",parentId:"102",id:"117"},118:{path:"/classrooms/:coursesId/assistant",parentId:"102",id:"118"},119:{path:"/classrooms/:coursesId/program_homework",parentId:"102",id:"119"},120:{path:"/classrooms/:coursesId/program_homework/:categoryId",parentId:"102",id:"120"},121:{path:"/classrooms/:coursesId/engineering",parentId:"102",id:"121"},122:{path:"/classrooms/:coursesId/learning_path",parentId:"102",id:"122"},123:{path:"/classrooms/:coursesId/resource_recommend",parentId:"102",id:"123"},124:{path:"/classrooms/:coursesId/attendance",parentId:"102",id:"124"},125:{path:"/classrooms/:coursesId/attendance/StudetnSign",parentId:"102",id:"125"},126:{path:"/classrooms/:coursesId/attendance/:categoryId/:tabId/detail",parentId:"102",id:"126"},127:{path:"/classrooms/:coursesId/announcement",parentId:"102",id:"127"},128:{path:"/classrooms/:coursesId/announcement/:categoryId",parentId:"102",id:"128"},129:{path:"/classrooms/:coursesId/online_learning",parentId:"102",id:"129"},130:{path:"/classrooms/:coursesId/online_learning/:categoryId",parentId:"102",id:"130"},131:{path:"/classrooms/:coursesId/attachment/:categoryId",parentId:"102",id:"131"},132:{path:"/classrooms/:coursesId/attachment",parentId:"102",id:"132"},133:{path:"/classrooms/:coursesId/video",parentId:"102",id:"133"},134:{path:"/classrooms/:coursesId/video/:categoryId",parentId:"102",id:"134"},135:{path:"/classrooms/:coursesId/video/:categoryId/statistics",parentId:"102",id:"135"},136:{path:"/classrooms/:coursesId/video/:username/upload",parentId:"102",id:"136"},137:{path:"/classrooms/:coursesId/video/:categoryId/statistics/:videoId",parentId:"102",id:"137"},138:{path:"/classrooms/:coursesId/video/:categoryId/statistics/:videoId/:userId",parentId:"102",id:"138"},139:{path:"/classrooms/:coursesId/live_video/:categoryId",parentId:"102",id:"139"},140:{path:"/classrooms/:coursesId/live_video",parentId:"102",id:"140"},141:{path:"/classrooms/:coursesId/video/:categoryId/studentstatistics",parentId:"102",id:"141"},142:{path:"/classrooms/:coursesId/board/:categoryId",parentId:"102",id:"142"},143:{path:"/classrooms/:coursesId/board",parentId:"102",id:"143"},144:{path:"/classrooms/:coursesId/course_group",parentId:"102",id:"144"},145:{path:"/classrooms/:coursesId/course_group/:categoryId",parentId:"102",id:"145"},146:{path:"/classrooms/:coursesId/course_group/:categoryId/detail",parentId:"102",id:"146"},147:{path:"/classrooms/:coursesId/not_course_group/:categoryId",parentId:"102",id:"147"},148:{path:"/classrooms/:coursesId/not_course_group",parentId:"102",id:"148"},149:{path:"/classrooms/:coursesId/statistics/",parentId:"102",id:"149"},150:{path:"/classrooms/:coursesId/statistics/:categoryId",parentId:"102",id:"150"},151:{path:"/classrooms/:coursesId/statistics_video/:categoryId",parentId:"102",id:"151"},152:{path:"/classrooms/:coursesId/statistics_quality/:categoryId",parentId:"102",id:"152"},153:{path:"/classrooms/:coursesId/student_statistics/:categoryId",parentId:"102",id:"153"},154:{path:"/classrooms/:coursesId/student_statistics/:categoryId/:listId/:type",parentId:"102",id:"154"},155:{path:"/classrooms/:coursesId/video_statistics/:categoryId/Student/:studentid",parentId:"102",id:"155"},156:{path:"/classrooms/:coursesId/exportlist/:type",parentId:"102",id:"156"},157:{path:"/classrooms/:coursesId",parentId:"102",id:"157"},158:{path:"/classrooms/:coursesId/template",parentId:"102",id:"158"},159:{path:"/classrooms/:coursesId/smart_plan",parentId:"102",id:"159"},160:{path:"/classrooms/:coursesId/smart_plan/:id/detail",parentId:"19",id:"160"},161:{path:"/competitions",parentId:"1",id:"161"},162:{path:"/competitions/index",parentId:"161",id:"162"},163:{path:"/competitions/:identifier/list",parentId:"161",id:"163"},164:{path:"/competitions/exports",parentId:"161",id:"164"},165:{path:"/competitions",parentId:"161",id:"165"},166:{path:"/competitions/:identifier",parentId:"161",id:"166"},167:{path:"/competitions/index/:identifier",parentId:"161",id:"167"},168:{path:"/competitions/:identifier/detail/enroll",parentId:"161",id:"168"},169:{path:"/competitions/:identifier/detail/UpdateTeanname/:Teannameid",parentId:"161",id:"169"},170:{path:"/competitions/:identifier/detail/teamDetail/:Teamid",parentId:"161",id:"170"},171:{path:"/competitions/detail/:identifier",parentId:"161",id:"171"},172:{path:"/forums",parentId:"1",id:"172"},173:{path:"/forums",parentId:"172",id:"173"},174:{path:"/forums/categories/:memoType",parentId:"172",id:"174"},175:{path:"/forums/new",parentId:"172",id:"175"},176:{path:"/forums/:memoId/edit",parentId:"172",id:"176"},177:{path:"/forums/:memoId",parentId:"172",id:"177"},178:{path:"/problemset",parentId:"1",id:"178"},179:{path:"/problemset",parentId:"178",id:"179"},180:{path:"/problemset/newitem",parentId:"178",id:"180"},181:{path:"/problemset/:type/:id",parentId:"178",id:"181"},182:{path:"/problemset/preview",parentId:"178",id:"182"},183:{path:"/problemset/preview_new",parentId:"178",id:"183"},184:{path:"/problemset/preview_select",parentId:"178",id:"184"},185:{path:"/shixuns",parentId:"1",id:"185"},186:{path:"/shixuns",parentId:"185",id:"186"},187:{path:"/shixuns/exports",parentId:"185",id:"187"},188:{path:"/shixuns/new",parentId:"185",id:"188"},189:{path:"/shixuns/new/CreateImg",parentId:"185",id:"189"},190:{path:"/shixuns/new/:id/imagepreview",parentId:"185",id:"190"},191:{path:"/shixuns/:id/Merge",parentId:"185",id:"191"},192:{path:"/shixuns/:id/Split",parentId:"185",id:"192"},193:{path:"/shixuns/:id/edit",parentId:"185",id:"193"},194:{path:"shixuns/:id/edit/warehouse",parentId:"193",id:"194"},195:{path:"/shixuns/:id/edit/newquestion",parentId:"193",id:"195"},196:{path:"/shixuns/:id/edit/:challengesId/editquestion",parentId:"193",id:"196"},197:{path:"/shixuns/:id/edit/:challengesId/editquestion/:questionId",parentId:"193",id:"197"},198:{path:"/shixuns/:id/edit/new",parentId:"193",id:"198"},199:{path:"/shixuns/:id/edit/:challengesId/editcheckpoint",parentId:"193",id:"199"},200:{path:"/shixuns/:id/edit/:challengesId/tab=2",parentId:"193",id:"200"},201:{path:"/shixuns/:id/edit/:challengesId/tab=3",parentId:"193",id:"201"},202:{path:"/shixuns/:id/edit/:challengesId/tab=4",parentId:"193",id:"202"},203:{path:"/shixuns/:id",parentId:"185",id:"203"},204:{path:"/shixuns/:id/poll",parentId:"203",id:"204"},205:{path:"/shixuns/:id/challenges",parentId:"203",id:"205"},206:{path:"/shixuns/:id/repository",parentId:"203",id:"206"},207:{path:"/shixuns/:id/secret_repository",parentId:"203",id:"207"},208:{path:"/shixuns/:id/collaborators",parentId:"203",id:"208"},209:{path:"/shixuns/:id/dataset",parentId:"203",id:"209"},210:{path:"/shixuns/:id/dataset/jupyterEdit",parentId:"203",id:"210"},211:{path:"/shixuns/:id/shixun_discuss",parentId:"203",id:"211"},212:{path:"/shixuns/:id/ranking_list",parentId:"203",id:"212"},213:{path:"/shixuns/:id/settings",parentId:"203",id:"213"},214:{path:"/shixuns/:id/repository/:repoId/commits",parentId:"203",id:"214"},215:{path:"/shixuns/:id/secret_repository/:repoId/commits",parentId:"203",id:"215"},216:{path:"/shixuns/:id/repository/upload_file",parentId:"203",id:"216"},217:{path:"/shixuns/:id/secret_repository/upload_file",parentId:"203",id:"217"},218:{path:"/shixuns/:id/repository/add_file",parentId:"203",id:"218"},219:{path:"/shixuns/:id/secret_repository/add_file",parentId:"203",id:"219"},220:{path:"/shixuns/:id/repository/master/shixun_show/:fileId",exact:!1,parentId:"203",id:"220"},221:{path:"/shixuns/:id/secret_repository/master/shixun_show/:fileId",exact:!1,parentId:"203",id:"221"},222:{path:"/shixuns/:id/audit_situation",parentId:"203",id:"222"},223:{path:"/shixuns/:id/fork_list",parentId:"203",id:"223"},224:{path:"/users",parentId:"1",id:"224"},225:{path:"/users/:username/videos/protocol",parentId:"224",id:"225"},226:{path:"/users/:username/videos/resourceProtocol",parentId:"224",id:"226"},227:{path:"/users/:username/videos/success",parentId:"224",id:"227"},228:{path:"/users/:username/topicbank/:topicstype",parentId:"224",id:"228"},229:{path:"/users/:username/topics/:topicId/:topictype/normal/detail",parentId:"224",id:"229"},230:{path:"/users/:username/topics/:topicId/:topictype/group/detail",parentId:"224",id:"230"},231:{path:"/users/:username/topics/:topicId/:topictype/normal/edit",parentId:"224",id:"231"},232:{path:"/users/:username/topics/:topicId/:topictype/group/edit",parentId:"224",id:"232"},233:{path:"/users/:username/topics/:topicId/:topictype/exercise/edit",parentId:"224",id:"233"},234:{path:"/users/:username/topics/:topicId/:topictype/exercise/detail",parentId:"224",id:"234"},235:{path:"/users/:username/topics/:topicId/:topictype/poll/edit",parentId:"224",id:"235"},236:{path:"/users/:username/topics/:topicId/:topictype/poll/detail",parentId:"224",id:"236"},237:{path:"/users/:username/experiment-img/add",parentId:"224",id:"237"},238:{path:"/users/:username",parentId:"224",id:"238"},239:{path:"/users/:username",parentId:"238",id:"239"},240:{path:"/users/:username/baseInfo/edit",parentId:"238",id:"240"},241:{path:"/users/:username/baseInfo",parentId:"238",id:"241"},242:{path:"/users/:username/realNameCertification",parentId:"238",id:"242"},243:{path:"/users/:username/careerCertification",parentId:"238",id:"243"},244:{path:"/users/:username/classrooms",parentId:"238",id:"244"},245:{path:"/users/:username/shixuns",parentId:"238",id:"245"},246:{path:"/users/:username/dataSet",parentId:"238",id:"246"},247:{path:"/users/:username/userPortrait",parentId:"238",id:"247"},248:{path:"/users/:username/learningPath",parentId:"238",id:"248"},249:{path:"/users/:username/teach-group",parentId:"238",id:"249"},250:{path:"/users/:username/competitions",parentId:"238",id:"250"},251:{path:"/users/:username/experiment-img",parentId:"238",id:"251"},252:{path:"/users/:username/experiment-img/:experid/detail",parentId:"238",id:"252"},253:{path:"/users/:username/certificate",parentId:"238",id:"253"},254:{path:"/users/:username/otherResources",parentId:"238",id:"254"},255:{path:"/users/:username/paths",parentId:"238",id:"255"},256:{path:"/users/:username/projects",parentId:"238",id:"256"},257:{path:"/users/:username/videos",parentId:"238",id:"257"},258:{path:"/users/:username/videos/upload",parentId:"238",id:"258"},259:{path:"/users/:username/topics/:topicstype",parentId:"238",id:"259"},260:{path:"/users/:username/vspaces",parentId:"238",id:"260"},261:{path:"/users/:username/resourcesCenter",parentId:"238",id:"261"},262:{path:"/users/:username/resourcesCenter/:id/detail",parentId:"238",id:"262"},263:{path:"/users/:username/resourceGuarantee",parentId:"238",id:"263"},264:{path:"/users/:username/resourceAllocation",parentId:"238",id:"264"},265:{parentId:"1",id:"265"},266:{path:"/problems",parentId:"265",id:"266"},267:{path:"/problems",parentId:"266",id:"267"},268:{path:"/problems/batchAdd",parentId:"266",id:"268"},269:{path:"/problems/newcreate",parentId:"265",id:"269"},270:{path:"/problems/newedit/:id",exact:!0,parentId:"265",id:"270"},271:{path:"/problems/:id/edit",exact:!0,parentId:"265",id:"271"},272:{path:"/problems/new",exact:!0,parentId:"265",id:"272"},273:{path:"/problems/:id/oj/:save_identifier",parentId:"265",id:"273"},274:{path:"/problems/:id/record-detail/:submitId",parentId:"265",id:"274"},275:{path:"/problems/add",parentId:"265",id:"275"},276:{path:"/problems/:id/ojedit",parentId:"265",id:"276"},277:{path:"/engineering",parentId:"1",id:"277"},278:{path:"/engineering",parentId:"277",id:"278"},279:{path:"/engineering/teacherList",parentId:"278",id:"279"},280:{path:"/engineering/studentList",parentId:"278",id:"280"},281:{path:"/engineering/training/program",parentId:"278",id:"281"},282:{path:"/engineering/training/program/add",parentId:"278",id:"282"},283:{path:"/engineering/training/program/edit",parentId:"278",id:"283"},284:{path:"/engineering/training/objectives",parentId:"278",id:"284"},285:{path:"/engineering/graduated/index",parentId:"278",id:"285"},286:{path:"/engineering/graduated/matrix",parentId:"278",id:"286"},287:{path:"/engineering/course/list",parentId:"278",id:"287"},288:{path:"/engineering/course/setting",parentId:"278",id:"288"},289:{path:"/engineering/course/matrix",parentId:"278",id:"289"},290:{path:"/engineering/navigation",parentId:"278",id:"290"},291:{path:"/engineering/evaluate/course",parentId:"278",id:"291"},292:{path:"/engineering/evaluate/course/:ec_year_id/:id",parentId:"278",id:"292"},293:{path:"/engineering/evaluate/norm",parentId:"278",id:"293"},294:{path:"/engineering/evaluate/document",parentId:"278",id:"294"},295:{path:"/engineering/evaluate/norm/:ec_year_id/:id",parentId:"278",id:"295"},296:{path:"/engineering/*",redirect:"/404",parentId:"278",id:"296"},297:{path:"/innovation",parentId:"1",id:"297"},298:{path:"/innovation/tasks/:taskId",parentId:"297",id:"298"},299:{path:"/innovation",parentId:"297",id:"299"},300:{path:"/innovation/project",parentId:"299",id:"300"},301:{path:"/innovation/dataset",parentId:"299",id:"301"},302:{path:"/innovation/mirror",parentId:"299",id:"302"},303:{path:"/innovation/my-project",parentId:"299",id:"303"},304:{path:"/innovation/my-dataset",parentId:"299",id:"304"},305:{path:"/innovation/my-mirror",parentId:"299",id:"305"},306:{path:"/innovation/project/create",parentId:"299",id:"306"},307:{path:"/innovation/project/edit/:id",parentId:"299",id:"307"},308:{path:"/innovation/project/detail/:taskId",parentId:"299",id:"308"},309:{path:"/tasks",parentId:"1",id:"309"},310:{path:"/tasks/:taskId",exact:!0,parentId:"309",id:"310"},311:{path:"/tasks/:identifier/jupyter/",exact:!0,parentId:"309",id:"311"},312:{path:"/tasks/:courseId/:homeworkId/:taskId",exact:!0,parentId:"309",id:"312"},313:{path:"/tasks/jupyter/:courseId/:homeworkId/:identifier",exact:!0,parentId:"309",id:"313"},314:{path:"/tasks/:courseId/:exerciseId/:taskId/exercise",exact:!0,parentId:"309",id:"314"},315:{path:"/myproblems",parentId:"1",id:"315"},316:{path:"/myproblems/:id/record-detail/:submitId",exact:!0,parentId:"315",id:"316"},317:{path:"/myproblems/:id",exact:!0,parentId:"315",id:"317"},318:{path:"/account",parentId:"1",id:"318"},319:{path:"/account",parentId:"318",id:"319"},320:{path:"/account/profile",parentId:"319",id:"320"},321:{path:"/account/profile/edit",parentId:"319",id:"321"},322:{path:"/account/certification",parentId:"319",id:"322"},323:{path:"/account/secure",parentId:"319",id:"323"},324:{path:"/account/binding",parentId:"319",id:"324"},325:{path:"/account/Results",parentId:"319",id:"325"},326:{path:"/ch",parentId:"1",id:"326"},327:{path:"/ch/rest/edit/:categoryId/:id",exact:!0,parentId:"326",id:"327"},328:{path:"/ch/rest/",exact:!0,parentId:"326",id:"328"},329:{path:"/ch/rest/:id",exact:!0,parentId:"326",id:"329"},330:{path:"/order",parentId:"1",id:"330"},331:{path:"/order",parentId:"330",id:"331"},332:{path:"/order/invoice",parentId:"330",id:"332"},333:{path:"/order/records",parentId:"330",id:"333"},334:{path:"/order/apply",parentId:"330",id:"334"},335:{path:"/order/view",parentId:"330",id:"335"},336:{path:"/order/:courseId/information",parentId:"330",id:"336"},337:{path:"/order/:courseId/pay",parentId:"330",id:"337"},338:{path:"/order/:orderNum/result",parentId:"330",id:"338"},339:{path:"/messages",parentId:"1",id:"339"},340:{path:"/messages/:userId/user_tidings",parentId:"339",id:"340"},341:{path:"/messages/:userId/private_messages",parentId:"339",id:"341"},342:{path:"/messages/:userId/message_detail",parentId:"339",id:"342"},343:{path:"/vtrs",parentId:"1",id:"343"},344:{path:"/vtrs/:virtual_spacesId",parentId:"343",id:"344"},345:{path:"/vtrs/:virtual_spacesId",exact:!0,parentId:"344",id:"345"},346:{path:"/vtrs/:virtual_spacesId/workplace",exact:!0,parentId:"344",id:"346"},347:{path:"/vtrs/:virtual_spacesId/experiment",parentId:"344",id:"347"},348:{path:"/vtrs/:virtual_spacesId/announcement",parentId:"344",id:"348"},349:{path:"/vtrs/:virtual_spacesId/announcement/add",parentId:"344",id:"349"},350:{path:"/vtrs/:virtual_spacesId/announcement/:id/edit",parentId:"344",id:"350"},351:{path:"/vtrs/:virtual_spacesId/announcement/:id/detail",parentId:"344",id:"351"},352:{path:"/vtrs/:virtual_spacesId/survey",parentId:"344",id:"352"},353:{path:"/vtrs/:virtual_spacesId/survey/:id/detail",parentId:"344",id:"353"},354:{path:"/vtrs/:virtual_spacesId/knowledge",parentId:"344",id:"354"},355:{path:"/vtrs/:virtual_spacesId/knowledge/add",parentId:"344",id:"355"},356:{path:"/vtrs/:virtual_spacesId/knowledge/:id/edit",parentId:"344",id:"356"},357:{path:"/vtrs/:virtual_spacesId/material",parentId:"344",id:"357"},358:{path:"/vtrs/:virtual_spacesId/material/:id/detail",parentId:"344",id:"358"},359:{path:"/vtrs/:virtual_spacesId/lesson",parentId:"344",id:"359"},360:{path:"/vtrs/:virtual_spacesId/lesson/:id/detail",parentId:"344",id:"360"},361:{path:"/vtrs/:virtual_spacesId/lesson/:id/detail/:fileid",parentId:"344",id:"361"},362:{path:"/vtrs/:virtual_spacesId/discussion",parentId:"344",id:"362"},363:{path:"/vtrs/:virtual_spacesId/discussion/:id/detail",parentId:"344",id:"363"},364:{path:"/vtrs/:virtual_spacesId/discussion/:id/detail/:fileid",parentId:"344",id:"364"},365:{path:"/vtrs/:virtual_spacesId/settings",parentId:"344",id:"365"},366:{path:"/vtrs/:virtual_spacesId/resources",parentId:"344",id:"366"},367:{path:"/vtrs/:virtual_spacesId/resources/:id/detail",parentId:"344",id:"367"},368:{path:"/vtrs/:virtual_spacesId/Plan",parentId:"344",id:"368"},369:{path:"/vtrs/:virtual_spacesId/plan/:id/detail",parentId:"344",id:"369"},370:{path:"/vtrs/:virtual_spacesId/digtal",parentId:"344",id:"370"},371:{path:"/vtrs/:virtual_spacesId/homepage",parentId:"344",id:"371"},372:{path:"/vtrs/:virtual_spacesId/*",parentId:"344",id:"372"},373:{path:"/101",parentId:"1",id:"373"},374:{path:"/101/:virtual_spacesId",parentId:"373",id:"374"},375:{path:"/101/:virtual_spacesId",exact:!0,parentId:"374",id:"375"},376:{path:"/101/:virtual_spacesId/workplace",exact:!0,parentId:"374",id:"376"},377:{path:"/101/:virtual_spacesId/experiment",parentId:"374",id:"377"},378:{path:"/101/:virtual_spacesId/announcement",parentId:"374",id:"378"},379:{path:"/101/:virtual_spacesId/announcement/add",parentId:"374",id:"379"},380:{path:"/101/:virtual_spacesId/announcement/:id/edit",parentId:"374",id:"380"},381:{path:"/101/:virtual_spacesId/announcement/:id/detail",parentId:"374",id:"381"},382:{path:"/101/:virtual_spacesId/survey",parentId:"374",id:"382"},383:{path:"/101/:virtual_spacesId/survey/:id/detail",parentId:"374",id:"383"},384:{path:"/101/:virtual_spacesId/knowledge",parentId:"374",id:"384"},385:{path:"/101/:virtual_spacesId/knowledge/add",parentId:"374",id:"385"},386:{path:"/101/:virtual_spacesId/knowledge/:id/edit",parentId:"374",id:"386"},387:{path:"/101/:virtual_spacesId/material",parentId:"374",id:"387"},388:{path:"/101/:virtual_spacesId/material/:id/detail",parentId:"374",id:"388"},389:{path:"/101/:virtual_spacesId/lesson",parentId:"374",id:"389"},390:{path:"/101/:virtual_spacesId/lesson/:id/detail",parentId:"374",id:"390"},391:{path:"/101/:virtual_spacesId/lesson/:id/detail/:fileid",parentId:"374",id:"391"},392:{path:"/101/:virtual_spacesId/discussion",parentId:"374",id:"392"},393:{path:"/101/:virtual_spacesId/discussion/:id/detail",parentId:"374",id:"393"},394:{path:"/101/:virtual_spacesId/discussion/:id/detail/:fileid",parentId:"374",id:"394"},395:{path:"/101/:virtual_spacesId/settings",parentId:"374",id:"395"},396:{path:"/101/:virtual_spacesId/resources",parentId:"374",id:"396"},397:{path:"/101/:virtual_spacesId/resources/:id/detail",parentId:"374",id:"397"},398:{path:"/101/:virtual_spacesId/Plan",parentId:"374",id:"398"},399:{path:"/101/:virtual_spacesId/plan/:id/detail",parentId:"374",id:"399"},400:{path:"/101/:virtual_spacesId/digtal",parentId:"374",id:"400"},401:{path:"/101/:virtual_spacesId/homepage",parentId:"374",id:"401"},402:{path:"/101/:virtual_spacesId/*",parentId:"374",id:"402"},403:{path:"/administration",parentId:"1",id:"403"},404:{path:"/administration",parentId:"403",id:"404"},405:{path:"/administration/college",parentId:"404",id:"405"},406:{path:"/administration/student",parentId:"404",id:"406"},407:{path:"/administration/student/:studentId/edit",parentId:"404",id:"407"},408:{path:"/administration/profession",parentId:"404",id:"408"},409:{path:"/graduations",parentId:"1",id:"409"},410:{path:"/graduations",exact:!0,parentId:"409",id:"410"},411:{path:"/graduations/:id/:moduleKey/:moduleId/review/:itemId",exact:!0,parentId:"409",id:"411"},412:{path:"/graduations/:id",parentId:"409",id:"412"},413:{path:"/graduations/:id/index",parentId:"412",id:"413"},414:{path:"/graduations/:id/topics",parentId:"412",id:"414"},415:{path:"/graduations/:id/student_selection",parentId:"412",id:"415"},416:{path:"/graduations/:id/tasks",parentId:"412",id:"416"},417:{path:"/graduations/:id/opening_report",parentId:"412",id:"417"},418:{path:"/graduations/:id/midterm_report",parentId:"412",id:"418"},419:{path:"/graduations/:id/thesis",parentId:"412",id:"419"},420:{path:"/graduations/:id/final_defense",parentId:"412",id:"420"},421:{path:"/graduations/:id/final_thesis",parentId:"412",id:"421"},422:{path:"/graduations/:id/settings",parentId:"412",id:"422"},423:{path:"/graduations/:id/teachers",parentId:"412",id:"423"},424:{path:"/graduations/:id/students",parentId:"412",id:"424"},425:{path:"/graduations/:id/archives",parentId:"412",id:"425"},426:{path:"/graduations/:id/grading_summary",parentId:"412",id:"426"},427:{path:"/dataset",parentId:"1",id:"427"},428:{path:"/dataset",exact:!0,parentId:"427",id:"428"},429:{path:"/dataset/:id/detail",exact:!0,parentId:"427",id:"429"},430:{path:"/knowledgegraph",parentId:"1",id:"430"},431:{path:"/knowledgegraph/:pathId",parentId:"430",id:"431"},432:{path:"/knowledgegraph/:pathId/abilityMap/edit/:abilityMapId",parentId:"430",id:"432"},433:{path:"/knowledgegraph/:pathId/abilityMap/detail/:abilityId",parentId:"430",id:"433"},434:{path:"/knowledgegraph/:pathId/statistics",parentId:"430",id:"434"},435:{parentId:"430",id:"435"},436:{path:"/knowledgegraph/:pathId/statistics/learningpath/:learningpathId",parentId:"435",id:"436"},437:{path:"/knowledgegraph/:pathId/statistics/learningpath/:learningpathId/detail/:detailId",parentId:"435",id:"437"},438:{path:"/miniprogram",parentId:"1",id:"438"},439:{path:"/miniprogram/courseware/study",exact:!0,parentId:"438",id:"439"},440:{path:"/educoder-demo",exact:!0,parentId:"1",id:"440"},441:{path:"/classrooms/:coursesId/smart_plan/:id/ppt_info/info",exact:!0,parentId:"1",id:"441"},442:{path:"/classrooms/:coursesId/smart_plan/:id/users/:user_login/ppt_info/info",exact:!0,parentId:"1",id:"442"},443:{path:"/training",parentId:"1",id:"443"},444:{name:"\u7CBE\u57F9\u8BFE\u7A0B",path:"/training",parentId:"443",id:"444"},445:{path:"/largeScreen",exact:!0,parentId:"1",id:"445"},446:{path:"/effectivenessAnalysis/:coursesId",exact:!0,parentId:"1",id:"446"},447:{path:"/quality",parentId:"1",id:"447"},448:{name:"\u7CBE\u54C1\u8BFE\u7A0B",path:"/quality",parentId:"447",id:"448"},449:{path:"/otherlogin",exact:!0,parentId:"1",id:"449"},450:{path:"/otherloginqq",exact:!0,parentId:"1",id:"450"},451:{path:"/otherloginstart",exact:!0,parentId:"1",id:"451"},452:{path:"/pathsoverview",exact:!0,parentId:"1",id:"452"},453:{path:"/shixunsoverview",exact:!0,parentId:"1",id:"453"},454:{path:"/classroomsoverview",exact:!0,parentId:"1",id:"454"},455:{path:"/login",parentId:"1",id:"455"},456:{path:"/login",parentId:"455",id:"456"},457:{path:"/user",parentId:"1",id:"457"},458:{path:"/user/login",parentId:"457",id:"458"},459:{path:"/user/register",parentId:"457",id:"459"},460:{path:"/user/reset-password",parentId:"457",id:"460"},461:{path:"/colleges",parentId:"1",id:"461"},462:{path:"/colleges/:id/statistics",parentId:"461",id:"462"},463:{path:"/help",parentId:"1",id:"463"},464:{path:"/help/:id",parentId:"463",id:"464"},465:{path:"/video",parentId:"1",id:"465"},466:{path:"/video/:videoId",parentId:"465",id:"466"},467:{path:"/terminal",parentId:"1",id:"467"},468:{path:"/report/:taskId/:game_report_id",parentId:"1",id:"468"},469:{path:"/wrongAnswer",parentId:"1",id:"469"},470:{path:"/bwdemo",parentId:"1",id:"470"},471:{path:"/",parentId:"1",id:"471"},472:{path:"/",exact:!0,parentId:"471",id:"472"},473:{path:"/api/*",exact:!0,parentId:"471",id:"473"},474:{path:"/search",exact:!0,parentId:"471",id:"474"},475:{path:"/moop_cases",exact:!0,parentId:"471",id:"475"},476:{path:"/moop_cases/new",exact:!0,parentId:"471",id:"476"},477:{path:"/moop_cases/:caseId",exact:!0,parentId:"471",id:"477"},478:{path:"/moop_cases/:caseId/edit",exact:!0,parentId:"471",id:"478"},479:{path:"/moop_cases/:caseId/publish-success",exact:!0,parentId:"471",id:"479"},480:{path:"/randompaper",exact:!0,parentId:"471",id:"480"},481:{path:"/randompaper/edit/:id",exact:!0,parentId:"471",id:"481"},482:{path:"/randompaper/detail/:id",exact:!0,parentId:"471",id:"482"},483:{path:"/403",parentId:"471",id:"483"},484:{path:"/500",parentId:"471",id:"484"},485:{path:"/404",parentId:"471",id:"485"},486:{path:"/download",parentId:"471",id:"486"},487:{path:"/iwce",parentId:"471",id:"487"},488:{path:"/classrooms/:coursesId/attendance/TeacherSign",parentId:"471",id:"488"},489:{path:"/classrooms/:coursesId/attendance/:categoryId",parentId:"471",id:"489"},490:{path:"/Activities",parentId:"471",id:"490"},491:{path:"/iwce/:itemname",parentId:"471",id:"491"},492:{path:"/hpc-course",parentId:"471",id:"492"},493:{path:"/user_agents",parentId:"471",id:"493"},494:{path:"/three",parentId:"471",id:"494"},495:{path:"/introduction",parentId:"471",id:"495"},496:{path:"/chatgpt",parentId:"471",id:"496"},497:{path:"/*",parentId:"471",id:"497"},"@@/global-layout":{id:"@@/global-layout",path:"/",isLayout:!0}},routeComponents:{1:oe.lazy(()=>__webpack_require__.e(4552).then(__webpack_require__.bind(__webpack_require__,4552))),2:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7961),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,16978))),3:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(4862)]).then(__webpack_require__.bind(__webpack_require__,52647))),4:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7973),__webpack_require__.e(3260)]).then(__webpack_require__.bind(__webpack_require__,69668))),5:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7973),__webpack_require__.e(3260)]).then(__webpack_require__.bind(__webpack_require__,69668))),6:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(3247)]).then(__webpack_require__.bind(__webpack_require__,52))),7:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(2993),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,77708))),8:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(2993),__webpack_require__.e(1545)]).then(__webpack_require__.bind(__webpack_require__,37862))),9:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7961),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,16978))),10:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(6052)]).then(__webpack_require__.bind(__webpack_require__,33794))),11:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(5572)]).then(__webpack_require__.bind(__webpack_require__,89574))),12:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(8982)]).then(__webpack_require__.bind(__webpack_require__,40957))),13:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(869)]).then(__webpack_require__.bind(__webpack_require__,87866))),14:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(596),__webpack_require__.e(5625),__webpack_require__.e(3332)]).then(__webpack_require__.bind(__webpack_require__,98842))),15:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(596),__webpack_require__.e(4601)]).then(__webpack_require__.bind(__webpack_require__,53106))),16:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(8982)]).then(__webpack_require__.bind(__webpack_require__,40957))),17:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(2993),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,77708))),18:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(2993),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,77708))),19:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7961),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,16978))),20:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(6685)]).then(__webpack_require__.bind(__webpack_require__,64678))),21:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(9921)]).then(__webpack_require__.bind(__webpack_require__,13597))),22:oe.lazy(()=>__webpack_require__.e(1674).then(__webpack_require__.bind(__webpack_require__,34143))),23:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(6685)]).then(__webpack_require__.bind(__webpack_require__,64678))),24:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(1702)]).then(__webpack_require__.bind(__webpack_require__,74497))),25:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(1702)]).then(__webpack_require__.bind(__webpack_require__,74497))),26:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(6882)]).then(__webpack_require__.bind(__webpack_require__,9573))),27:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(6882)]).then(__webpack_require__.bind(__webpack_require__,9573))),28:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(109)]).then(__webpack_require__.bind(__webpack_require__,94576))),29:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(737)]).then(__webpack_require__.bind(__webpack_require__,30624))),30:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(3391)]).then(__webpack_require__.bind(__webpack_require__,96247))),31:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(596),__webpack_require__.e(5247),__webpack_require__.e(3581)]).then(__webpack_require__.bind(__webpack_require__,54093))),32:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(596),__webpack_require__.e(342)]).then(__webpack_require__.bind(__webpack_require__,3822))),33:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(8870),__webpack_require__.e(2303)]).then(__webpack_require__.bind(__webpack_require__,30957))),34:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(1450)]).then(__webpack_require__.bind(__webpack_require__,83563))),35:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(5247),__webpack_require__.e(195)]).then(__webpack_require__.bind(__webpack_require__,27682))),36:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(5247),__webpack_require__.e(3668)]).then(__webpack_require__.bind(__webpack_require__,80409))),37:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(8870),__webpack_require__.e(2338)]).then(__webpack_require__.bind(__webpack_require__,23372))),38:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(4662)]).then(__webpack_require__.bind(__webpack_require__,32648))),39:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(8072)]).then(__webpack_require__.bind(__webpack_require__,34929))),40:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(479)]).then(__webpack_require__.bind(__webpack_require__,19531))),41:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(5297)]).then(__webpack_require__.bind(__webpack_require__,55490))),42:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(8795)]).then(__webpack_require__.bind(__webpack_require__,96725))),43:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(596),__webpack_require__.e(2993),__webpack_require__.e(4164)]).then(__webpack_require__.bind(__webpack_require__,27765))),44:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(2993),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,77708))),45:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(2993),__webpack_require__.e(4889)]).then(__webpack_require__.bind(__webpack_require__,88445))),46:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(2993),__webpack_require__.e(4105)]).then(__webpack_require__.bind(__webpack_require__,81655))),47:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(2993),__webpack_require__.e(7883)]).then(__webpack_require__.bind(__webpack_require__,72551))),48:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(7482)]).then(__webpack_require__.bind(__webpack_require__,45303))),49:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(5816)]).then(__webpack_require__.bind(__webpack_require__,83292))),50:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(337)]).then(__webpack_require__.bind(__webpack_require__,72911))),51:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7973),__webpack_require__.e(292)]).then(__webpack_require__.bind(__webpack_require__,29576))),52:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7973),__webpack_require__.e(292)]).then(__webpack_require__.bind(__webpack_require__,29576))),53:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(5992)]).then(__webpack_require__.bind(__webpack_require__,90343))),54:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(596),__webpack_require__.e(2993),__webpack_require__.e(8085)]).then(__webpack_require__.bind(__webpack_require__,49890))),55:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(596),__webpack_require__.e(2993),__webpack_require__.e(8085)]).then(__webpack_require__.bind(__webpack_require__,49890))),56:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(8431)]).then(__webpack_require__.bind(__webpack_require__,24632))),57:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(596),__webpack_require__.e(5902)]).then(__webpack_require__.bind(__webpack_require__,58659))),58:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(596),__webpack_require__.e(3433)]).then(__webpack_require__.bind(__webpack_require__,96528))),59:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(5125)]).then(__webpack_require__.bind(__webpack_require__,23781))),60:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(5125)]).then(__webpack_require__.bind(__webpack_require__,23781))),61:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(921)]).then(__webpack_require__.bind(__webpack_require__,18099))),62:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(921)]).then(__webpack_require__.bind(__webpack_require__,18099))),63:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(1578)]).then(__webpack_require__.bind(__webpack_require__,15028))),64:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(3317)]).then(__webpack_require__.bind(__webpack_require__,6469))),65:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(1482)]).then(__webpack_require__.bind(__webpack_require__,11264))),66:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(4795)]).then(__webpack_require__.bind(__webpack_require__,84959))),67:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(26)]).then(__webpack_require__.bind(__webpack_require__,91625))),68:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(8882)]).then(__webpack_require__.bind(__webpack_require__,36347))),69:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(5888)]).then(__webpack_require__.bind(__webpack_require__,38693))),70:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(9715)]).then(__webpack_require__.bind(__webpack_require__,61712))),71:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7045)]).then(__webpack_require__.bind(__webpack_require__,51110))),72:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(1211)]).then(__webpack_require__.bind(__webpack_require__,89010))),73:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(1582)]).then(__webpack_require__.bind(__webpack_require__,40980))),74:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(6729)]).then(__webpack_require__.bind(__webpack_require__,43477))),75:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(9695)]).then(__webpack_require__.bind(__webpack_require__,58083))),76:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(8723)]).then(__webpack_require__.bind(__webpack_require__,29335))),77:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(596),__webpack_require__.e(7622)]).then(__webpack_require__.bind(__webpack_require__,11195))),78:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(5148)]).then(__webpack_require__.bind(__webpack_require__,98377))),79:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(643)]).then(__webpack_require__.bind(__webpack_require__,65041))),80:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(3442)]).then(__webpack_require__.bind(__webpack_require__,17836))),81:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(2102)]).then(__webpack_require__.bind(__webpack_require__,5212))),82:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(2425)]).then(__webpack_require__.bind(__webpack_require__,73094))),83:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(2404)]).then(__webpack_require__.bind(__webpack_require__,410))),84:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(9785)]).then(__webpack_require__.bind(__webpack_require__,92322))),85:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(869)]).then(__webpack_require__.bind(__webpack_require__,87866))),86:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(2819)]).then(__webpack_require__.bind(__webpack_require__,1524))),87:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(1512)]).then(__webpack_require__.bind(__webpack_require__,46415))),88:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(7395)]).then(__webpack_require__.bind(__webpack_require__,39695))),89:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(3585)]).then(__webpack_require__.bind(__webpack_require__,60127))),90:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(6963)]).then(__webpack_require__.bind(__webpack_require__,74250))),91:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(4030)]).then(__webpack_require__.bind(__webpack_require__,81119))),92:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(4030)]).then(__webpack_require__.bind(__webpack_require__,81119))),93:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(6127)]).then(__webpack_require__.bind(__webpack_require__,84597))),94:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(596),__webpack_require__.e(5247),__webpack_require__.e(3951)]).then(__webpack_require__.bind(__webpack_require__,59639))),95:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(1048)]).then(__webpack_require__.bind(__webpack_require__,89780))),96:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(2993),__webpack_require__.e(2884)]).then(__webpack_require__.bind(__webpack_require__,65085))),97:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(4770)]).then(__webpack_require__.bind(__webpack_require__,52765))),98:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(2603)]).then(__webpack_require__.bind(__webpack_require__,49442))),99:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(4216)]).then(__webpack_require__.bind(__webpack_require__,51636))),100:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(5319)]).then(__webpack_require__.bind(__webpack_require__,50960))),101:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(895)]).then(__webpack_require__.bind(__webpack_require__,63961))),102:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(3282)]).then(__webpack_require__.bind(__webpack_require__,51887))),103:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(5247),__webpack_require__.e(7852)]).then(__webpack_require__.bind(__webpack_require__,19117))),104:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(5247),__webpack_require__.e(7852)]).then(__webpack_require__.bind(__webpack_require__,19117))),105:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(5048)]).then(__webpack_require__.bind(__webpack_require__,4336))),106:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(1043)]).then(__webpack_require__.bind(__webpack_require__,79958))),107:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(1043)]).then(__webpack_require__.bind(__webpack_require__,79958))),108:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(5825)]).then(__webpack_require__.bind(__webpack_require__,25545))),109:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(5825)]).then(__webpack_require__.bind(__webpack_require__,25545))),110:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(3355)]).then(__webpack_require__.bind(__webpack_require__,17183))),111:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(3355)]).then(__webpack_require__.bind(__webpack_require__,17183))),112:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(5247),__webpack_require__.e(9890)]).then(__webpack_require__.bind(__webpack_require__,92388))),113:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(5247),__webpack_require__.e(9890)]).then(__webpack_require__.bind(__webpack_require__,92388))),114:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(5247),__webpack_require__.e(3935)]).then(__webpack_require__.bind(__webpack_require__,75429))),115:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(5247),__webpack_require__.e(3935)]).then(__webpack_require__.bind(__webpack_require__,75429))),116:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(8014)]).then(__webpack_require__.bind(__webpack_require__,48662))),117:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(8077)]).then(__webpack_require__.bind(__webpack_require__,15622))),118:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(3356)]).then(__webpack_require__.bind(__webpack_require__,49540))),119:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(5247),__webpack_require__.e(6788)]).then(__webpack_require__.bind(__webpack_require__,91711))),120:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(5247),__webpack_require__.e(6788)]).then(__webpack_require__.bind(__webpack_require__,91711))),121:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(1962)]).then(__webpack_require__.bind(__webpack_require__,34026))),122:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(4928)]).then(__webpack_require__.bind(__webpack_require__,71941))),123:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(1257)]).then(__webpack_require__.bind(__webpack_require__,88270))),124:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(596),__webpack_require__.e(8435)]).then(__webpack_require__.bind(__webpack_require__,45957))),125:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(8340)]).then(__webpack_require__.bind(__webpack_require__,62879))),126:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(4093)]).then(__webpack_require__.bind(__webpack_require__,58583))),127:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(1265)]).then(__webpack_require__.bind(__webpack_require__,15389))),128:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(1265)]).then(__webpack_require__.bind(__webpack_require__,15389))),129:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(5625),__webpack_require__.e(8827)]).then(__webpack_require__.bind(__webpack_require__,85615))),130:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(5625),__webpack_require__.e(8827)]).then(__webpack_require__.bind(__webpack_require__,85615))),131:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(6758)]).then(__webpack_require__.bind(__webpack_require__,4676))),132:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(6758)]).then(__webpack_require__.bind(__webpack_require__,4676))),133:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(9332)]).then(__webpack_require__.bind(__webpack_require__,44037))),134:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(9332)]).then(__webpack_require__.bind(__webpack_require__,44037))),135:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(4217)]).then(__webpack_require__.bind(__webpack_require__,98241))),136:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(3220)]).then(__webpack_require__.bind(__webpack_require__,60115))),137:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(596),__webpack_require__.e(533)]).then(__webpack_require__.bind(__webpack_require__,1793))),138:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(596),__webpack_require__.e(5798)]).then(__webpack_require__.bind(__webpack_require__,95355))),139:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(7878)]).then(__webpack_require__.bind(__webpack_require__,89722))),140:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(7878)]).then(__webpack_require__.bind(__webpack_require__,89722))),141:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(9944)]).then(__webpack_require__.bind(__webpack_require__,90768))),142:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(8302)]).then(__webpack_require__.bind(__webpack_require__,19104))),143:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(8302)]).then(__webpack_require__.bind(__webpack_require__,19104))),144:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(8634)]).then(__webpack_require__.bind(__webpack_require__,32627))),145:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(8634)]).then(__webpack_require__.bind(__webpack_require__,32627))),146:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(7922)]).then(__webpack_require__.bind(__webpack_require__,55439))),147:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(1727)]).then(__webpack_require__.bind(__webpack_require__,55362))),148:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(1727)]).then(__webpack_require__.bind(__webpack_require__,55362))),149:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(596),__webpack_require__.e(1427)]).then(__webpack_require__.bind(__webpack_require__,54098))),150:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(596),__webpack_require__.e(1427)]).then(__webpack_require__.bind(__webpack_require__,54098))),151:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(596),__webpack_require__.e(8689)]).then(__webpack_require__.bind(__webpack_require__,95181))),152:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(596),__webpack_require__.e(7806)]).then(__webpack_require__.bind(__webpack_require__,13581))),153:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(8885)]).then(__webpack_require__.bind(__webpack_require__,88228))),154:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(3451)]).then(__webpack_require__.bind(__webpack_require__,63772))),155:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(9922)]).then(__webpack_require__.bind(__webpack_require__,85141))),156:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(4572)]).then(__webpack_require__.bind(__webpack_require__,41841))),157:oe.lazy(()=>__webpack_require__.e(4017).then(__webpack_require__.bind(__webpack_require__,43261))),158:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(5518)]).then(__webpack_require__.bind(__webpack_require__,40322))),159:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(5741)]).then(__webpack_require__.bind(__webpack_require__,26310))),160:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(596),__webpack_require__.e(745)]).then(__webpack_require__.bind(__webpack_require__,77716))),161:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7961),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,16978))),162:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(596),__webpack_require__.e(6883)]).then(__webpack_require__.bind(__webpack_require__,67299))),163:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(596),__webpack_require__.e(6883)]).then(__webpack_require__.bind(__webpack_require__,67299))),164:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(4449)]).then(__webpack_require__.bind(__webpack_require__,61970))),165:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(596),__webpack_require__.e(6883)]).then(__webpack_require__.bind(__webpack_require__,67299))),166:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7961),__webpack_require__.e(2570)]).then(__webpack_require__.bind(__webpack_require__,1167))),167:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7961),__webpack_require__.e(2570)]).then(__webpack_require__.bind(__webpack_require__,1167))),168:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(8787)]).then(__webpack_require__.bind(__webpack_require__,34468))),169:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(5650)]).then(__webpack_require__.bind(__webpack_require__,35180))),170:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(1799)]).then(__webpack_require__.bind(__webpack_require__,65035))),171:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7961),__webpack_require__.e(8797)]).then(__webpack_require__.bind(__webpack_require__,30890))),172:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7961),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,16978))),173:oe.lazy(()=>__webpack_require__.e(8639).then(__webpack_require__.bind(__webpack_require__,83387))),174:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(2983)]).then(__webpack_require__.bind(__webpack_require__,36297))),175:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(4264)]).then(__webpack_require__.bind(__webpack_require__,59963))),176:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(4264)]).then(__webpack_require__.bind(__webpack_require__,59963))),177:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(508)]).then(__webpack_require__.bind(__webpack_require__,44081))),178:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7961),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,16978))),179:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(2993),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,77708))),180:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(1953)]).then(__webpack_require__.bind(__webpack_require__,86137))),181:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(1953)]).then(__webpack_require__.bind(__webpack_require__,86137))),182:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(1581)]).then(__webpack_require__.bind(__webpack_require__,89740))),183:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(4144)]).then(__webpack_require__.bind(__webpack_require__,2869))),184:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(2993),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,77708))),185:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7961),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,16978))),186:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(8782)]).then(__webpack_require__.bind(__webpack_require__,91363))),187:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(7884)]).then(__webpack_require__.bind(__webpack_require__,28415))),188:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7008)]).then(__webpack_require__.bind(__webpack_require__,34579))),189:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(5549)]).then(__webpack_require__.bind(__webpack_require__,80505))),190:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(9674)]).then(__webpack_require__.bind(__webpack_require__,86663))),191:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(5573)]).then(__webpack_require__.bind(__webpack_require__,20044))),192:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(2141)]).then(__webpack_require__.bind(__webpack_require__,1795))),193:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(596),__webpack_require__.e(5314),__webpack_require__.e(6277)]).then(__webpack_require__.bind(__webpack_require__,59992))),194:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(6328)]).then(__webpack_require__.bind(__webpack_require__,50939))),195:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7857)]).then(__webpack_require__.bind(__webpack_require__,26948))),196:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7959),__webpack_require__.e(1657)]).then(__webpack_require__.bind(__webpack_require__,39323))),197:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7959),__webpack_require__.e(1657)]).then(__webpack_require__.bind(__webpack_require__,39323))),198:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7959),__webpack_require__.e(4498)]).then(__webpack_require__.bind(__webpack_require__,16605))),199:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7959),__webpack_require__.e(4498)]).then(__webpack_require__.bind(__webpack_require__,16605))),200:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(9205)]).then(__webpack_require__.bind(__webpack_require__,83434))),201:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(1423)]).then(__webpack_require__.bind(__webpack_require__,80358))),202:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(7614)]).then(__webpack_require__.bind(__webpack_require__,68181))),203:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(2875)]).then(__webpack_require__.bind(__webpack_require__,99683))),204:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(596),__webpack_require__.e(9472)]).then(__webpack_require__.bind(__webpack_require__,69296))),205:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(596),__webpack_require__.e(9133)]).then(__webpack_require__.bind(__webpack_require__,1699))),206:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(596),__webpack_require__.e(8688)]).then(__webpack_require__.bind(__webpack_require__,19106))),207:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(596),__webpack_require__.e(8688)]).then(__webpack_require__.bind(__webpack_require__,19106))),208:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(596),__webpack_require__.e(5470)]).then(__webpack_require__.bind(__webpack_require__,52400))),209:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(596),__webpack_require__.e(6541)]).then(__webpack_require__.bind(__webpack_require__,67014))),210:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(1475)]).then(__webpack_require__.bind(__webpack_require__,89525))),211:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(596),__webpack_require__.e(2254)]).then(__webpack_require__.bind(__webpack_require__,16601))),212:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(596),__webpack_require__.e(9408)]).then(__webpack_require__.bind(__webpack_require__,41026))),213:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(596),__webpack_require__.e(5314),__webpack_require__.e(6845)]).then(__webpack_require__.bind(__webpack_require__,72969))),214:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(596),__webpack_require__.e(4884)]).then(__webpack_require__.bind(__webpack_require__,28258))),215:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(596),__webpack_require__.e(4884)]).then(__webpack_require__.bind(__webpack_require__,28258))),216:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(1148)]).then(__webpack_require__.bind(__webpack_require__,52531))),217:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(1148)]).then(__webpack_require__.bind(__webpack_require__,52531))),218:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(7046)]).then(__webpack_require__.bind(__webpack_require__,74131))),219:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(7046)]).then(__webpack_require__.bind(__webpack_require__,74131))),220:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(596),__webpack_require__.e(8688)]).then(__webpack_require__.bind(__webpack_require__,19106))),221:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(596),__webpack_require__.e(8688)]).then(__webpack_require__.bind(__webpack_require__,19106))),222:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(596),__webpack_require__.e(5096)]).then(__webpack_require__.bind(__webpack_require__,29884))),223:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(9215)]).then(__webpack_require__.bind(__webpack_require__,99184))),224:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7961),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,16978))),225:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(5176)]).then(__webpack_require__.bind(__webpack_require__,61543))),226:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(6587)]).then(__webpack_require__.bind(__webpack_require__,28570))),227:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(9891)]).then(__webpack_require__.bind(__webpack_require__,90913))),228:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(8062)]).then(__webpack_require__.bind(__webpack_require__,61080))),229:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(5402)]).then(__webpack_require__.bind(__webpack_require__,8483))),230:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(5402)]).then(__webpack_require__.bind(__webpack_require__,8483))),231:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(6820)]).then(__webpack_require__.bind(__webpack_require__,27946))),232:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(8517)]).then(__webpack_require__.bind(__webpack_require__,38361))),233:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7043)]).then(__webpack_require__.bind(__webpack_require__,79061))),234:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(2806)]).then(__webpack_require__.bind(__webpack_require__,25628))),235:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(5043)]).then(__webpack_require__.bind(__webpack_require__,70005))),236:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(799)]).then(__webpack_require__.bind(__webpack_require__,42737))),237:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(3157)]).then(__webpack_require__.bind(__webpack_require__,22543))),238:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(2529)]).then(__webpack_require__.bind(__webpack_require__,33898))),239:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(6583)]).then(__webpack_require__.bind(__webpack_require__,15605))),240:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(5895)]).then(__webpack_require__.bind(__webpack_require__,17751))),241:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(6982)]).then(__webpack_require__.bind(__webpack_require__,92483))),242:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(6805)]).then(__webpack_require__.bind(__webpack_require__,50483))),243:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(1416)]).then(__webpack_require__.bind(__webpack_require__,51814))),244:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(6583)]).then(__webpack_require__.bind(__webpack_require__,15605))),245:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(8307)]).then(__webpack_require__.bind(__webpack_require__,40446))),246:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(2826)]).then(__webpack_require__.bind(__webpack_require__,28018))),247:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(596),__webpack_require__.e(2659)]).then(__webpack_require__.bind(__webpack_require__,15698))),248:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(4610)]).then(__webpack_require__.bind(__webpack_require__,83892))),249:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(9590)]).then(__webpack_require__.bind(__webpack_require__,55099))),250:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(2076)]).then(__webpack_require__.bind(__webpack_require__,57977))),251:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(4849)]).then(__webpack_require__.bind(__webpack_require__,40174))),252:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(310)]).then(__webpack_require__.bind(__webpack_require__,35678))),253:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(5191)]).then(__webpack_require__.bind(__webpack_require__,89096))),254:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(3496)]).then(__webpack_require__.bind(__webpack_require__,2682))),255:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(5599)]).then(__webpack_require__.bind(__webpack_require__,97689))),256:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(4736)]).then(__webpack_require__.bind(__webpack_require__,84884))),257:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(2412)]).then(__webpack_require__.bind(__webpack_require__,75818))),258:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(2240)]).then(__webpack_require__.bind(__webpack_require__,3801))),259:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(265)]).then(__webpack_require__.bind(__webpack_require__,45813))),260:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(9360)]).then(__webpack_require__.bind(__webpack_require__,1465))),261:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(2396)]).then(__webpack_require__.bind(__webpack_require__,88854))),262:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(7855)]).then(__webpack_require__.bind(__webpack_require__,89226))),263:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(9507)]).then(__webpack_require__.bind(__webpack_require__,11902))),264:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(1343)]).then(__webpack_require__.bind(__webpack_require__,33396))),265:oe.lazy(()=>__webpack_require__.e(4552).then(__webpack_require__.bind(__webpack_require__,4552))),266:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7961),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,16978))),267:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(9647)]).then(__webpack_require__.bind(__webpack_require__,1418))),268:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(485)]).then(__webpack_require__.bind(__webpack_require__,63564))),269:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(319),__webpack_require__.e(4741)]).then(__webpack_require__.bind(__webpack_require__,42502))),270:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(319),__webpack_require__.e(4741)]).then(__webpack_require__.bind(__webpack_require__,42502))),271:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(319),__webpack_require__.e(4994)]).then(__webpack_require__.bind(__webpack_require__,5937))),272:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(319),__webpack_require__.e(4994)]).then(__webpack_require__.bind(__webpack_require__,5937))),273:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7460)]).then(__webpack_require__.bind(__webpack_require__,11624))),274:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(9716)]).then(__webpack_require__.bind(__webpack_require__,57560))),275:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(6913)]).then(__webpack_require__.bind(__webpack_require__,7644))),276:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(6913)]).then(__webpack_require__.bind(__webpack_require__,7644))),277:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7961),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,16978))),278:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(3006)]).then(__webpack_require__.bind(__webpack_require__,13403))),279:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(2045)]).then(__webpack_require__.bind(__webpack_require__,41508))),280:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(1520)]).then(__webpack_require__.bind(__webpack_require__,17556))),281:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(9649)]).then(__webpack_require__.bind(__webpack_require__,22615))),282:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(4546)]).then(__webpack_require__.bind(__webpack_require__,12738))),283:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(5357)]).then(__webpack_require__.bind(__webpack_require__,20585))),284:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(8665)]).then(__webpack_require__.bind(__webpack_require__,22789))),285:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(3183)]).then(__webpack_require__.bind(__webpack_require__,20887))),286:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(4800)]).then(__webpack_require__.bind(__webpack_require__,75151))),287:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(9489)]).then(__webpack_require__.bind(__webpack_require__,95028))),288:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(9391)]).then(__webpack_require__.bind(__webpack_require__,69913))),289:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(5335)]).then(__webpack_require__.bind(__webpack_require__,11888))),290:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(2823)]).then(__webpack_require__.bind(__webpack_require__,29262))),291:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(4973)]).then(__webpack_require__.bind(__webpack_require__,54756))),292:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(596),__webpack_require__.e(6651)]).then(__webpack_require__.bind(__webpack_require__,12907))),293:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(6741)]).then(__webpack_require__.bind(__webpack_require__,63053))),294:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(5775)]).then(__webpack_require__.bind(__webpack_require__,4384))),295:oe.lazy(()=>__webpack_require__.e(2548).then(__webpack_require__.bind(__webpack_require__,88653))),296:oe.lazy(()=>__webpack_require__.e(4552).then(__webpack_require__.bind(__webpack_require__,4552))),297:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7961),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,16978))),298:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(6634)]).then(__webpack_require__.bind(__webpack_require__,34073))),299:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(680)]).then(__webpack_require__.bind(__webpack_require__,24631))),300:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(6366)]).then(__webpack_require__.bind(__webpack_require__,54996))),301:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(6452)]).then(__webpack_require__.bind(__webpack_require__,61890))),302:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(1070)]).then(__webpack_require__.bind(__webpack_require__,4067))),303:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(7242)]).then(__webpack_require__.bind(__webpack_require__,96777))),304:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(2707)]).then(__webpack_require__.bind(__webpack_require__,38385))),305:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(2865)]).then(__webpack_require__.bind(__webpack_require__,71417))),306:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(6784)]).then(__webpack_require__.bind(__webpack_require__,9996))),307:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(6784)]).then(__webpack_require__.bind(__webpack_require__,9996))),308:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(3141)]).then(__webpack_require__.bind(__webpack_require__,35047))),309:oe.lazy(()=>__webpack_require__.e(4552).then(__webpack_require__.bind(__webpack_require__,4552))),310:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(596),__webpack_require__.e(2993),__webpack_require__.e(3665)]).then(__webpack_require__.bind(__webpack_require__,62511))),311:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(596),__webpack_require__.e(700)]).then(__webpack_require__.bind(__webpack_require__,32012))),312:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(596),__webpack_require__.e(2993),__webpack_require__.e(3665)]).then(__webpack_require__.bind(__webpack_require__,62511))),313:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(596),__webpack_require__.e(700)]).then(__webpack_require__.bind(__webpack_require__,32012))),314:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(596),__webpack_require__.e(2993),__webpack_require__.e(3665)]).then(__webpack_require__.bind(__webpack_require__,62511))),315:oe.lazy(()=>__webpack_require__.e(4552).then(__webpack_require__.bind(__webpack_require__,4552))),316:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(2993),__webpack_require__.e(7527)]).then(__webpack_require__.bind(__webpack_require__,4459))),317:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(2993),__webpack_require__.e(6270)]).then(__webpack_require__.bind(__webpack_require__,30546))),318:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7961),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,16978))),319:oe.lazy(()=>__webpack_require__.e(547).then(__webpack_require__.bind(__webpack_require__,13398))),320:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(9788)]).then(__webpack_require__.bind(__webpack_require__,62520))),321:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(576)]).then(__webpack_require__.bind(__webpack_require__,9671))),322:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(7260)]).then(__webpack_require__.bind(__webpack_require__,16744))),323:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(4520)]).then(__webpack_require__.bind(__webpack_require__,88362))),324:oe.lazy(()=>__webpack_require__.e(9076).then(__webpack_require__.bind(__webpack_require__,11769))),325:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(4514)]).then(__webpack_require__.bind(__webpack_require__,1022))),326:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7961),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,16978))),327:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(928)]).then(__webpack_require__.bind(__webpack_require__,57810))),328:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(1006)]).then(__webpack_require__.bind(__webpack_require__,40818))),329:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(1006)]).then(__webpack_require__.bind(__webpack_require__,40818))),330:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7961),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,16978))),331:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(1939)]).then(__webpack_require__.bind(__webpack_require__,56944))),332:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(556)]).then(__webpack_require__.bind(__webpack_require__,75977))),333:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(6434)]).then(__webpack_require__.bind(__webpack_require__,2132))),334:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(1880)]).then(__webpack_require__.bind(__webpack_require__,72135))),335:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(8237)]).then(__webpack_require__.bind(__webpack_require__,6712))),336:oe.lazy(()=>__webpack_require__.e(3447).then(__webpack_require__.bind(__webpack_require__,40960))),337:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(264)]).then(__webpack_require__.bind(__webpack_require__,69207))),338:oe.lazy(()=>__webpack_require__.e(4259).then(__webpack_require__.bind(__webpack_require__,37281))),339:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7961),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,16978))),340:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(4078)]).then(__webpack_require__.bind(__webpack_require__,72490))),341:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(2829)]).then(__webpack_require__.bind(__webpack_require__,89994))),342:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(5359)]).then(__webpack_require__.bind(__webpack_require__,90670))),343:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7961),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,16978))),344:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(559)]).then(__webpack_require__.bind(__webpack_require__,78889))),345:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(3747)]).then(__webpack_require__.bind(__webpack_require__,70796))),346:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(4757)]).then(__webpack_require__.bind(__webpack_require__,25094))),347:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(1783)]).then(__webpack_require__.bind(__webpack_require__,67216))),348:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(7477)]).then(__webpack_require__.bind(__webpack_require__,33502))),349:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(9677)]).then(__webpack_require__.bind(__webpack_require__,42357))),350:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(9677)]).then(__webpack_require__.bind(__webpack_require__,42357))),351:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(6796)]).then(__webpack_require__.bind(__webpack_require__,65936))),352:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(4504)]).then(__webpack_require__.bind(__webpack_require__,89515))),353:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(7058)]).then(__webpack_require__.bind(__webpack_require__,46677))),354:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(8447)]).then(__webpack_require__.bind(__webpack_require__,3710))),355:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(1045)]).then(__webpack_require__.bind(__webpack_require__,41580))),356:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(1045)]).then(__webpack_require__.bind(__webpack_require__,41580))),357:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(5238)]).then(__webpack_require__.bind(__webpack_require__,9695))),358:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(4715)]).then(__webpack_require__.bind(__webpack_require__,39575))),359:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(3873)]).then(__webpack_require__.bind(__webpack_require__,42531))),360:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(6069)]).then(__webpack_require__.bind(__webpack_require__,65034))),361:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(6069)]).then(__webpack_require__.bind(__webpack_require__,65034))),362:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(6265)]).then(__webpack_require__.bind(__webpack_require__,60128))),363:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(8563)]).then(__webpack_require__.bind(__webpack_require__,54053))),364:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(8563)]).then(__webpack_require__.bind(__webpack_require__,54053))),365:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(1713)]).then(__webpack_require__.bind(__webpack_require__,38432))),366:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(5891)]).then(__webpack_require__.bind(__webpack_require__,9033))),367:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(8398)]).then(__webpack_require__.bind(__webpack_require__,19031))),368:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(8241)]).then(__webpack_require__.bind(__webpack_require__,81475))),369:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(2339)]).then(__webpack_require__.bind(__webpack_require__,23637))),370:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(7589)]).then(__webpack_require__.bind(__webpack_require__,43348))),371:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(3747)]).then(__webpack_require__.bind(__webpack_require__,70796))),372:oe.lazy(()=>__webpack_require__.e(5705).then(__webpack_require__.bind(__webpack_require__,86776))),373:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7961),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,16978))),374:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(559)]).then(__webpack_require__.bind(__webpack_require__,78889))),375:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(3747)]).then(__webpack_require__.bind(__webpack_require__,70796))),376:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(4757)]).then(__webpack_require__.bind(__webpack_require__,25094))),377:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(1783)]).then(__webpack_require__.bind(__webpack_require__,67216))),378:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(7477)]).then(__webpack_require__.bind(__webpack_require__,33502))),379:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(9677)]).then(__webpack_require__.bind(__webpack_require__,42357))),380:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(9677)]).then(__webpack_require__.bind(__webpack_require__,42357))),381:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(6796)]).then(__webpack_require__.bind(__webpack_require__,65936))),382:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(4504)]).then(__webpack_require__.bind(__webpack_require__,89515))),383:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(7058)]).then(__webpack_require__.bind(__webpack_require__,46677))),384:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(8447)]).then(__webpack_require__.bind(__webpack_require__,3710))),385:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(1045)]).then(__webpack_require__.bind(__webpack_require__,41580))),386:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(1045)]).then(__webpack_require__.bind(__webpack_require__,41580))),387:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(5238)]).then(__webpack_require__.bind(__webpack_require__,9695))),388:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(4715)]).then(__webpack_require__.bind(__webpack_require__,39575))),389:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(3873)]).then(__webpack_require__.bind(__webpack_require__,42531))),390:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(6069)]).then(__webpack_require__.bind(__webpack_require__,65034))),391:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(6069)]).then(__webpack_require__.bind(__webpack_require__,65034))),392:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(6265)]).then(__webpack_require__.bind(__webpack_require__,60128))),393:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(8563)]).then(__webpack_require__.bind(__webpack_require__,54053))),394:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(8563)]).then(__webpack_require__.bind(__webpack_require__,54053))),395:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(1713)]).then(__webpack_require__.bind(__webpack_require__,38432))),396:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(5891)]).then(__webpack_require__.bind(__webpack_require__,9033))),397:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(8398)]).then(__webpack_require__.bind(__webpack_require__,19031))),398:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(8241)]).then(__webpack_require__.bind(__webpack_require__,81475))),399:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(2339)]).then(__webpack_require__.bind(__webpack_require__,23637))),400:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(7589)]).then(__webpack_require__.bind(__webpack_require__,43348))),401:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(3747)]).then(__webpack_require__.bind(__webpack_require__,70796))),402:oe.lazy(()=>__webpack_require__.e(5705).then(__webpack_require__.bind(__webpack_require__,86776))),403:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7961),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,16978))),404:oe.lazy(()=>__webpack_require__.e(4766).then(__webpack_require__.bind(__webpack_require__,64524))),405:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(7560)]).then(__webpack_require__.bind(__webpack_require__,48651))),406:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(6029)]).then(__webpack_require__.bind(__webpack_require__,66802))),407:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(5179)]).then(__webpack_require__.bind(__webpack_require__,66003))),408:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(4621)]).then(__webpack_require__.bind(__webpack_require__,8710))),409:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7961),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,16978))),410:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(1831)]).then(__webpack_require__.bind(__webpack_require__,19995))),411:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(2539)]).then(__webpack_require__.bind(__webpack_require__,9319))),412:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(8143)]).then(__webpack_require__.bind(__webpack_require__,88963))),413:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(5624)]).then(__webpack_require__.bind(__webpack_require__,76112))),414:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(1461)]).then(__webpack_require__.bind(__webpack_require__,75590))),415:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(4944),__webpack_require__.e(4492)]).then(__webpack_require__.bind(__webpack_require__,97547))),416:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(4944),__webpack_require__.e(9416)]).then(__webpack_require__.bind(__webpack_require__,41859))),417:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(4944),__webpack_require__.e(2443)]).then(__webpack_require__.bind(__webpack_require__,76634))),418:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(4944),__webpack_require__.e(2443)]).then(__webpack_require__.bind(__webpack_require__,76634))),419:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(4944),__webpack_require__.e(2443)]).then(__webpack_require__.bind(__webpack_require__,76634))),420:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(4944),__webpack_require__.e(2443)]).then(__webpack_require__.bind(__webpack_require__,76634))),421:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(4944),__webpack_require__.e(2443)]).then(__webpack_require__.bind(__webpack_require__,76634))),422:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(5022)]).then(__webpack_require__.bind(__webpack_require__,13451))),423:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(6063)]).then(__webpack_require__.bind(__webpack_require__,95910))),424:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(6063)]).then(__webpack_require__.bind(__webpack_require__,95910))),425:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(4944),__webpack_require__.e(7545)]).then(__webpack_require__.bind(__webpack_require__,69298))),426:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(1253)]).then(__webpack_require__.bind(__webpack_require__,14015))),427:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7961),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,16978))),428:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(2216)]).then(__webpack_require__.bind(__webpack_require__,89657))),429:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(5382)]).then(__webpack_require__.bind(__webpack_require__,34339))),430:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7961),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,16978))),431:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(596),__webpack_require__.e(7646),__webpack_require__.e(8823)]).then(__webpack_require__.bind(__webpack_require__,53012))),432:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(3685)]).then(__webpack_require__.bind(__webpack_require__,96134))),433:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(596),__webpack_require__.e(7646),__webpack_require__.e(2524)]).then(__webpack_require__.bind(__webpack_require__,18905))),434:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(596),__webpack_require__.e(5915)]).then(__webpack_require__.bind(__webpack_require__,4467))),435:oe.lazy(()=>__webpack_require__.e(3589).then(__webpack_require__.bind(__webpack_require__,20490))),436:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(596),__webpack_require__.e(919)]).then(__webpack_require__.bind(__webpack_require__,669))),437:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(596),__webpack_require__.e(7042)]).then(__webpack_require__.bind(__webpack_require__,72695))),438:oe.lazy(()=>__webpack_require__.e(4552).then(__webpack_require__.bind(__webpack_require__,4552))),439:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(2993),__webpack_require__.e(3897)]).then(__webpack_require__.bind(__webpack_require__,41992))),440:oe.lazy(()=>__webpack_require__.e(4058).then(__webpack_require__.bind(__webpack_require__,40165))),441:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(596),__webpack_require__.e(2993),__webpack_require__.e(8522)]).then(__webpack_require__.bind(__webpack_require__,81336))),442:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(596),__webpack_require__.e(2993),__webpack_require__.e(8522)]).then(__webpack_require__.bind(__webpack_require__,81336))),443:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7961),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,16978))),444:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(4056)]).then(__webpack_require__.bind(__webpack_require__,45271))),445:oe.lazy(()=>__webpack_require__.e(9487).then(__webpack_require__.bind(__webpack_require__,72077))),446:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(596),__webpack_require__.e(1443)]).then(__webpack_require__.bind(__webpack_require__,165))),447:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7961),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,16978))),448:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(532)]).then(__webpack_require__.bind(__webpack_require__,7904))),449:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(7178)]).then(__webpack_require__.bind(__webpack_require__,93949))),450:oe.lazy(()=>__webpack_require__.e(1660).then(__webpack_require__.bind(__webpack_require__,84008))),451:oe.lazy(()=>__webpack_require__.e(7333).then(__webpack_require__.bind(__webpack_require__,91071))),452:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(596),__webpack_require__.e(4227)]).then(__webpack_require__.bind(__webpack_require__,88181))),453:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(596),__webpack_require__.e(8155)]).then(__webpack_require__.bind(__webpack_require__,678))),454:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(596),__webpack_require__.e(5186)]).then(__webpack_require__.bind(__webpack_require__,17117))),455:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(5786)]).then(__webpack_require__.bind(__webpack_require__,13858))),456:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(9366)]).then(__webpack_require__.bind(__webpack_require__,75938))),457:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(5786)]).then(__webpack_require__.bind(__webpack_require__,13858))),458:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(9366)]).then(__webpack_require__.bind(__webpack_require__,75938))),459:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(1470)]).then(__webpack_require__.bind(__webpack_require__,23798))),460:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(7182)]).then(__webpack_require__.bind(__webpack_require__,99409))),461:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7961),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,16978))),462:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(596),__webpack_require__.e(2476)]).then(__webpack_require__.bind(__webpack_require__,42321))),463:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7961),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,16978))),464:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(5729)]).then(__webpack_require__.bind(__webpack_require__,81765))),465:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7961),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,16978))),466:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(6444)]).then(__webpack_require__.bind(__webpack_require__,28805))),467:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(5111)]).then(__webpack_require__.bind(__webpack_require__,95458))),468:oe.lazy(()=>__webpack_require__.e(2307).then(__webpack_require__.bind(__webpack_require__,40146))),469:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(2993),__webpack_require__.e(7883)]).then(__webpack_require__.bind(__webpack_require__,72551))),470:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(1150)]).then(__webpack_require__.bind(__webpack_require__,569))),471:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(7961),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,16978))),472:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(8866)]).then(__webpack_require__.bind(__webpack_require__,92978))),473:oe.lazy(()=>__webpack_require__.e(2300).then(__webpack_require__.bind(__webpack_require__,72748))),474:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(2501)]).then(__webpack_require__.bind(__webpack_require__,3324))),475:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(3212)]).then(__webpack_require__.bind(__webpack_require__,70198))),476:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(6904)]).then(__webpack_require__.bind(__webpack_require__,69363))),477:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(1855)]).then(__webpack_require__.bind(__webpack_require__,45589))),478:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(6904)]).then(__webpack_require__.bind(__webpack_require__,69363))),479:oe.lazy(()=>__webpack_require__.e(1276).then(__webpack_require__.bind(__webpack_require__,66889))),480:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(5816)]).then(__webpack_require__.bind(__webpack_require__,83292))),481:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(5816)]).then(__webpack_require__.bind(__webpack_require__,83292))),482:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(3784)]).then(__webpack_require__.bind(__webpack_require__,1829))),483:oe.lazy(()=>__webpack_require__.e(3862).then(__webpack_require__.bind(__webpack_require__,73582))),484:oe.lazy(()=>__webpack_require__.e(4565).then(__webpack_require__.bind(__webpack_require__,67818))),485:oe.lazy(()=>__webpack_require__.e(6531).then(__webpack_require__.bind(__webpack_require__,87362))),486:oe.lazy(()=>__webpack_require__.e(6170).then(__webpack_require__.bind(__webpack_require__,65926))),487:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(4496)]).then(__webpack_require__.bind(__webpack_require__,87494))),488:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(1836)]).then(__webpack_require__.bind(__webpack_require__,82066))),489:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(596),__webpack_require__.e(8435)]).then(__webpack_require__.bind(__webpack_require__,45957))),490:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(3509)]).then(__webpack_require__.bind(__webpack_require__,14200))),491:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(4496)]).then(__webpack_require__.bind(__webpack_require__,87494))),492:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(4496)]).then(__webpack_require__.bind(__webpack_require__,87494))),493:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(6034)]).then(__webpack_require__.bind(__webpack_require__,80946))),494:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(8999)]).then(__webpack_require__.bind(__webpack_require__,34294))),495:oe.lazy(()=>__webpack_require__.e(3910).then(__webpack_require__.bind(__webpack_require__,33045))),496:oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(205),__webpack_require__.e(67)]).then(__webpack_require__.bind(__webpack_require__,15210))),497:oe.lazy(()=>__webpack_require__.e(6531).then(__webpack_require__.bind(__webpack_require__,87362))),"@@/global-layout":oe.lazy(()=>Promise.all([__webpack_require__.e(8891),__webpack_require__.e(1717)]).then(__webpack_require__.bind(__webpack_require__,32821)))}}})}var nn=__webpack_require__(34038),sn=__webpack_require__(5796),Ra=__webpack_require__(74330),Ca=__webpack_require__(80410),Qn=()=>oe.createElement(Ra.Z,{size:"middle",className:Ca.Z.loading}),Ti=__webpack_require__(35973),ds=__webpack_require__(94699),Ja=__webpack_require__.n(ds),hs=__webpack_require__(78452),Es=__webpack_require__.n(hs),qu=__webpack_require__(68707),ts=__webpack_require__.n(qu),Zc=__webpack_require__(43272),zc=__webpack_require__.n(Zc),Cc=__webpack_require__(31197),Wc=__webpack_require__.n(Cc),hu=__webpack_require__(3429),za=__webpack_require__.n(hu),Hc=__webpack_require__(23662),Vc=__webpack_require__.n(Hc),Mo=__webpack_require__(58097),Zi=__webpack_require__.n(Mo),mu=__webpack_require__(26712),Qu=__webpack_require__.n(mu),Gc=__webpack_require__(80398),Dl=__webpack_require__.n(Gc),Au=__webpack_require__(87305),ku=__webpack_require__.n(Au),wl=__webpack_require__(8880),Kc=__webpack_require__.n(wl),Tu=__webpack_require__(96667),El=__webpack_require__.n(Tu),Yc=__webpack_require__(32869),Sl=__webpack_require__.n(Yc);Ja().extend(ts()),Ja().extend(zc()),Ja().extend(Wc()),Ja().extend(za()),Ja().extend(Vc()),Ja().extend(Zi()),Ja().extend(Qu()),Ja().extend(Dl()),Ja().extend(ku()),Ja().extend(Kc()),Ja().extend(El()),Ja().extend(Sl()),Ja().extend(Es());var Ws=Object.defineProperty,gu=Object.getOwnPropertySymbols,Xu=Object.prototype.hasOwnProperty,Oc=Object.prototype.propertyIsEnumerable,Hs=(rn,an,ya)=>an in rn?Ws(rn,an,{enumerable:!0,configurable:!0,writable:!0,value:ya}):rn[an]=ya,Ic=(rn,an)=>{for(var ya in an||(an={}))Xu.call(an,ya)&&Hs(rn,ya,an[ya]);if(gu)for(var ya of gu(an))Oc.call(an,ya)&&Hs(rn,ya,an[ya]);return rn},Ju=(rn,an,ya)=>new Promise((eo,Ao)=>{var $o=co=>{try{Ri(ya.next(co))}catch($i){Ao($i)}},To=co=>{try{Ri(ya.throw(co))}catch($i){Ao($i)}},Ri=co=>co.done?eo(co.value):Promise.resolve(co.value).then($o,To);Ri((ya=ya.apply(rn,an)).next())});const Pl="https://www-cdn.educoder.net/",Ul=!1;function qc(){return Ju(this,null,function*(){const rn=(0,nn.gD)(),{routes:an,routeComponents:ya}=yield ce(rn);yield rn.applyPlugins({key:"patchRoutes",type:Ti.ApplyPluginsType.event,args:{routes:an,routeComponents:ya}});const eo=rn.applyPlugins({key:"modifyContextOpts",type:Ti.ApplyPluginsType.modify,initialValue:{}}),Ao=eo.basename||"/",$o=eo.historyType||"browser",To=(0,sn.fi)(Ic({type:$o,basename:Ao},eo.historyOpts));return rn.applyPlugins({key:"render",type:Ti.ApplyPluginsType.compose,initialValue(){const Ri={useStream:!0,routes:an,routeComponents:ya,pluginManager:rn,mountElementId:"root",rootElement:eo.rootElement||document.getElementById("root"),loadingComponent:Qn,publicPath:Pl,runtimePublicPath:Ul,history:To,historyType:$o,basename:Ao,__INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{pureApp:!1,pureHtml:!1},callback:eo.callback},co=rn.applyPlugins({key:"modifyClientRenderOpts",type:Ti.ApplyPluginsType.modify,initialValue:Ri});return w(co)}})()})}qc(),typeof window!="undefined"&&(window.g_umi={version:"4.4.6"})})()})();