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

1 line
45 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(self.webpackChunk=self.webpackChunk||[]).push([[48431,52720],{22596:function(e,n,t){"use strict";t.d(n,{Z:function(){return a}});var r=t(1565),i=t(59301),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},s=t(68475),l=function(e,n){return i.createElement(s.Z,(0,r.Z)({},e,{ref:n,icon:o}))};var a=i.forwardRef(l)},44770:function(e,n,t){"use strict";t.d(n,{Z:function(){return a}});var r=t(1565),i=t(59301),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M632 698.3l141.9-112a8 8 0 000-12.6L632 461.7c-5.3-4.2-13-.4-13 6.3v76H295c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h324v76c0 6.7 7.8 10.4 13 6.3zm261.3-405L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v278c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V422c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-83.5c0-17-6.7-33.2-18.7-45.2zM640 288H384V184h256v104zm264 436h-56c-4.4 0-8 3.6-8 8v108H184V732c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v148c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V732c0-4.4-3.6-8-8-8z"}}]},name:"delivered-procedure",theme:"outlined"},s=t(68475),l=function(e,n){return i.createElement(s.Z,(0,r.Z)({},e,{ref:n,icon:o}))};var a=i.forwardRef(l)},80814:function(e,n,t){"use strict";t.d(n,{Z:function(){return a}});var r=t(1565),i=t(59301),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},s=t(68475),l=function(e,n){return i.createElement(s.Z,(0,r.Z)({},e,{ref:n,icon:o}))};var a=i.forwardRef(l)},62615:function(e,n,t){"use strict";t.r(n);var r=t(91232),i=t.n(r),o=t(7557),s=t.n(o),l=t(82242),a=t.n(l),c=t(41498),d=t.n(c),u=t(79800),p=t.n(u),x=t(39647),h=t.n(x),f=t(59301),v=t(7880),m=t(98135),g=t(8591),y=t(43418),j=t(95237),b=t(43604),w=t(5112),_=t(24905),Z=t(28103),S=t(66104),k=t(38854),C=t(3113),O=t(6848),I=t(53864),N=t(27065),E=t(86129),P=t.n(E),A=t(22596),q=t(65041),$=t(44770),z=t(86984),B=t(80814),H=t(85699),T=t(38438),M=t(42783),R=t(6457),D=t(77553),F=t(32212),L=t(31115),X=t(96153),V=t(99232),W=t.n(V),Y=t(44425),U=t.n(Y),G=t(89918),J=t(4374),Q=t(5764),K=t(84717),ee=t(24334),ne=t(51136),te=t(30347),re=t(37712),ie=["exercise","globalSetting","loading","user","dispatch"],oe=m.Z.TextArea,se={0:"单选题",1:"多选题",2:"判断题",3:"填空题",4:"简答题"},le=["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"];n.default=(0,v.connect)((function(e){var n=e.exercise,t=e.loading,r=e.user;return{exercise:n,globalSetting:e.globalSetting,user:r,loading:t.effects}}))((function(e){var n,r,o,l,c,u,x,m,E,V,Y=e.exercise,ae=(e.globalSetting,e.loading,e.user),ce=e.dispatch,de=(h()(e,ie),(0,v.useParams)()),ue=ae.userInfo,pe=(0,f.useState)({}),xe=p()(pe,2),he=xe[0],fe=xe[1],ve=(0,f.useRef)(),me=(0,f.useRef)(!1),ge=(0,f.useRef)(""),ye=(0,f.useRef)(0),je=(0,f.useState)(!1),be=p()(je,2),we=(be[0],be[1]),_e=(0,f.useState)({}),Ze=p()(_e,2),Se=Ze[0],ke=Ze[1],Ce=(0,f.useState)(new(P())),Oe=p()(Ce,2),Ie=Oe[0],Ne=Oe[1],Ee=(0,f.useState)(!1),Pe=p()(Ee,2),Ae=Pe[0],qe=Pe[1],$e=(0,f.useState)(!1),ze=p()($e,2),Be=ze[0],He=ze[1],Te=(0,f.useState)(!1),Me=p()(Te,2),Re=Me[0],De=Me[1],Fe=(0,f.useState)(!1),Le=p()(Fe,2),Xe=Le[0],Ve=Le[1],We=(0,f.useState)(!1),Ye=p()(We,2),Ue=Ye[0],Ge=Ye[1],Je=(0,f.useState)("1"),Qe=p()(Je,2),Ke=Qe[0],en=Qe[1],nn=(0,f.useState)("1"),tn=p()(nn,2),rn=tn[0],on=tn[1],sn=(0,f.useState)(!1),ln=p()(sn,2),an=ln[0],cn=ln[1],dn=(0,f.useState)(!1),un=p()(dn,2),pn=un[0],xn=un[1],hn=(0,f.useState)(""),fn=p()(hn,2),vn=fn[0],mn=fn[1],gn=(V=(V=localStorage["".concat(null==ae||null===(E=ae.userInfo)||void 0===E?void 0:E.login,"-").concat(de.coursesId,"-").concat(de.exerciseId,"-downFilter")])?JSON.parse(V):{},"[object Object]"!==Object.prototype.toString.call(V)?{}:V);(0,f.useEffect)((function(){null!=ue&&ue.login&&wn()}),[de.userId,de.coursesId,de.exerciseId,ue]);var yn=function(){document.querySelectorAll("canvas").forEach((function(e){(!e.clientWidth||!e.clientHeight)&&e.remove()}))},jn=function(){document.body.scrollIntoView()},bn=function(e){var n,t,r,i=null==e||null===(n=e.exercise_answer_user)||void 0===n?void 0:n.user_id;if(null!=e&&null!==(t=e.exercise)&&void 0!==t&&t.question_random||null!=e&&null!==(r=e.exercise)&&void 0!==r&&r.choice_random){var o,s=1;e.exercise.question_random=null==e||null===(o=e.exercise_question_types)||void 0===o?void 0:o.map((function(n){var t,r;return null!=e&&null!==(t=e.exercise)&&void 0!==t&&t.choice_random&&(0!==n.question_type&&1!==n.question_type||n.items.map((function(e){return e.question_choices=(0,R.M2)(e.question_choices,i),e})),7===n.question_type&&n.items.forEach((function(e){e.sub_exercise_questions.forEach((function(e){e.question_choices&&(e.question_choices=(0,R.M2)(e.question_choices,i))}))}))),null!=e&&null!==(r=e.exercise)&&void 0!==r&&r.question_random&&(n.items=(0,R.M2)(n.items,i)),n.items.map((function(e){return e.question_num=s,s++,e})),n}))}},wn=function(){var e=d()(s()().mark((function e(){var n;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(ce({type:"exercise/getExerciseExportHeadData",payload:{id:de.exerciseId,identify:de.userId}}),!de.userId){e.next=9;break}return e.next=4,ce({type:"exercise/getReviewExercise",payload:{exerciseId:de.exerciseId,login:de.userId}});case 4:n=e.sent,bn(n),me.current=!1,e.next=13;break;case 9:return e.next=11,ce({type:"exercise/editExercise",payload:{coursesId:de.coursesId,categoryId:de.exerciseId}});case 11:n=e.sent,me.current=!0;case 13:me.current=!0,ge.current=null==gn?void 0:gn.firstTargetLogin,ye.current=(null==gn?void 0:gn.totalCount)||0,ke(a()({},n||{}));case 17:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),_n=function(){Ie.generateAsync({type:"blob"}).then((function(e){var n,t,r,i=document.createElement("a");i.href=window.URL.createObjectURL(e),i.download=Object.keys(Ie.files).length>1?(null==Se||null===(n=Se.exercise)||void 0===n?void 0:n.exercise_name)+".zip":((null==Y||null===(t=Y.exerciseExportHeadData)||void 0===t?void 0:t.user)||(null==Se||null===(r=Se.exercise)||void 0===r?void 0:r.exercise_name))+".zip",document.body.appendChild(i);var o=document.createEvent("MouseEvents");o.initEvent("click",!1,!1),i.dispatchEvent(o),document.body.removeChild(i),Ne(new(P()))})),Ve(!1),De(!1),qe(!1)},Zn=function(){var e=d()(s()().mark((function e(n){var t,r,i,o,l,c,u,p,x,h,f,v,m,j;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return j=function(){return j=d()(s()().mark((function e(){var n,t,l,c;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r++,me.current=!1,jn(),e.next=5,ce({type:"exercise/getExerciseExportHeadData",payload:{id:de.exerciseId,identify:ge.current}});case 5:return l=e.sent,e.next=8,ce({type:"exercise/postReviewExercise",payload:a()({exerciseId:de.exerciseId,login:ge.current,export:!0},gn)});case 8:if(null==(c=e.sent)||!c.type){e.next=14;break}return i.destroy(),g.ZP.warning(c.message),we(!1),e.abrupt("return");case 14:ge.current=(null==c||null===(n=c.export_user_data)||void 0===n?void 0:n.next_user_login)||(null==c||null===(t=c.export_user_data)||void 0===t?void 0:t.first_user_login),bn(c),ke(a()({},c||{})),setTimeout(d()(s()().mark((function e(){var n,t,a;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:yn(),n=U()(),t=s()().mark((function e(t){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.set(x).from(o[t]).toContainer().toCanvas().toPdf().get("pdf").then(function(){var e=d()(s()().mark((function e(n){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t<o.length-1)){e.next=3;break}return e.next=3,n.addPage();case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}());case 2:case"end":return e.stop()}}),e)})),a=0;case 4:if(!(a<o.length)){e.next=9;break}return e.delegateYield(t(a),"t0",6);case 6:a++,e.next=4;break;case 9:Ie.file("".concat(null!=l&&l.student_id?"".concat(null==l?void 0:l.student_id,"+"):"").concat(null==l?void 0:l.user,".pdf"),n.output("blob")),i.update({content:(0,re.jsxs)("div",{children:["当前进度: ",(0,re.jsx)("span",{className:"c-blue",children:r+1}),"/",ye.current]})}),r==ye.current?(i.destroy(),we(!1),_n()):m();case 12:case"end":return e.stop()}}),e)}))),2600);case 18:case"end":return e.stop()}}),e)}))),j.apply(this,arguments)},m=function(){return j.apply(this,arguments)},"all"===n?me.current=!1:de.userId||(me.current=!0),jn(),qe(!0),r=0,"all"!==n&&we(!0),i=y.Z.info({width:460,title:(0,re.jsxs)("div",{children:["正在导出试卷,",(0,re.jsx)("span",{className:"c-red",children:"请勿关闭或操作当前浏览器窗口"})]}),content:"all"===n?(0,re.jsxs)("div",{children:["当前进度: ",(0,re.jsx)("span",{className:"c-blue",children:r+1}),"/",ye.current]}):null,maskClosable:!1,className:T.Z.modal,onOk:function(){}}),yn(),e.next=11,new Promise((function(e,n){setTimeout((function(){e("")}),1e3)}));case 11:o=ve.current.children,l="".concat(W()().format("YYYY-MM-DD HH:mm:ss")),null!==(t=Y.exerciseExportHeadData)&&void 0!==t&&t.user&&(l="".concat(null!==(c=Y.exerciseExportHeadData)&&void 0!==c&&c.student_id?"".concat(null==Y||null===(u=Y.exerciseExportHeadData)||void 0===u?void 0:u.student_id,"+"):"").concat(null===(p=Y.exerciseExportHeadData)||void 0===p?void 0:p.user)),x={html2canvas:{letterRendering:!0,useCORS:!0,allowTaint:!1},jsPDF:{unit:"in",format:"letter",orientation:"portrait"},pagebreak:{mode:["avoid-all"]}},h=U()(),f=s()().mark((function e(n){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h.set(x).from(o[n]).toContainer().toCanvas().toPdf().get("pdf").then(function(){var e=d()(s()().mark((function e(t){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n<o.length-1)){e.next=3;break}return e.next=3,t.addPage();case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}());case 2:case"end":return e.stop()}}),e)})),v=0;case 18:if(!(v<o.length)){e.next=23;break}return e.delegateYield(f(v),"t0",20);case 20:v++,e.next=18;break;case 23:ye.current&&"all"===n?m():(Ie.file("".concat(l,".pdf"),h.output("blob"),{base64:!1}),i.destroy(),we(!1),_n());case 24:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Sn=function(){var e=d()(s()().mark((function e(n){var t,r,i,o,l,c,u,p;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return p=function(){return(p=d()(s()().mark((function e(){var n,t;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r++,me.current=!1,jn(),e.next=5,(0,ne.ZP)("/api/exercises/".concat(de.exerciseId,"/get_next_export_user"),{method:"get",params:a()(a()({},gn),{},{login:ge.current})});case 5:if(null==(n=e.sent)||!n.type){e.next=11;break}return i.destroy(),g.ZP.warning(n.message),we(!1),e.abrupt("return");case 11:t=null==n?void 0:n.data,console.log(ge.current,222),setTimeout(d()(s()().mark((function e(){var n,o;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=de.exerciseId,o=(0,R.NY)({url:N.Z.API_SERVER+"/api/exercises/".concat(n,"/consult_exercise.json"),query:{exercise_id:n,login:ge.current,middle_export:1,is_export_comment:Ue?1:0}}),console.log(o,"urlStr"),e.next=5,(0,R.Br)(o).then((function(e){Ie.file("".concat(null!=t&&t.student_id?"".concat(null==t?void 0:t.student_id,"+"):"").concat(null==t?void 0:t.user,".docx"),e)}));case 5:ge.current=(null==t?void 0:t.next_user_login)||(null==t?void 0:t.first_user_login),i.update({content:(0,re.jsxs)("div",{children:["当前进度: ",(0,re.jsx)("span",{className:"c-blue",children:r+1}),"/",ye.current]})}),r==ye.current?(i.destroy(),we(!1),_n()):u();case 8:case"end":return e.stop()}}),e)}))),2600);case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)},u=function(){return p.apply(this,arguments)},me.current=!1,jn(),qe(!0),r=0,"all"!==n&&we(!0),i=y.Z.info({width:460,title:(0,re.jsxs)("div",{children:["正在导出试卷,",(0,re.jsx)("span",{className:"c-red",children:"请勿关闭或操作当前浏览器窗口"})]}),content:"all"===n?(0,re.jsxs)("div",{children:["当前进度: ",(0,re.jsx)("span",{className:"c-blue",children:r+1}),"/",ye.current]}):null,maskClosable:!1,className:T.Z.modal,onOk:function(){}}),e.next=10,new Promise((function(e,n){setTimeout((function(){e("")}),1e3)}));case 10:ve.current.children,"".concat(W()().format("YYYY-MM-DD HH:mm:ss")),null!==(t=Y.exerciseExportHeadData)&&void 0!==t&&t.user&&"".concat(null!==(o=Y.exerciseExportHeadData)&&void 0!==o&&o.student_id?"".concat(null==Y||null===(l=Y.exerciseExportHeadData)||void 0===l?void 0:l.student_id,"+"):"").concat(null===(c=Y.exerciseExportHeadData)||void 0===c?void 0:c.user),u();case 14:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),kn=function e(n,t,r){var i,o,s,l,c,d,u,p,x,h,f,v,m,g,y,S,k;return(0,re.jsxs)(re.Fragment,{children:[!r&&(0,re.jsxs)("div",{style:{display:"flex"},className:T.Z.programTitle,children:[(0,re.jsxs)("span",{style:{flexShrink:0},className:"font18",children:[t,"."]}),(0,re.jsx)(M.Z,{value:8===(null==n?void 0:n.question_type)?null==n?void 0:n.description:n.question_title}),(0,re.jsxs)("span",{style:{flexShrink:0},className:"font16",children:["",7===(null==n?void 0:n.question_type)?"共".concat(null==n?void 0:n.sub_q_count,"小题"):""," ",n.question_score,"分)"]})]}),8===(null==n?void 0:n.question_type)&&(0,re.jsx)(M.Z,{showProgramFill:!0,disabledFill:!0,value:ee.Base64.decode((null==n?void 0:n.code)||"")}),n.question_type===J.c.Single&&(0,re.jsx)(re.Fragment,{children:null===(i=n.question_choices)||void 0===i?void 0:i.map((function(e,t){var r;return(0,re.jsxs)(j.Z,{children:[(0,re.jsx)(b.Z,{flex:"25px",children:(0,re.jsx)("div",{style:{width:25,overflow:"hidden"},children:(0,re.jsx)(w.ZP,{checked:null===(r=n.user_answer)||void 0===r?void 0:r.includes(e.choice_id),style:{width:25}})})}),(0,re.jsx)(b.Z,{flex:"1",children:(0,re.jsxs)("div",{style:{display:"flex"},children:[(0,re.jsx)("div",{style:{lineHeight:"24px",flexShrink:0},children:le[t]}),(0,re.jsx)(M.Z,{value:e.choice_text||""})]})})]},t)}))}),n.question_type===J.c.Multiple&&(0,re.jsx)(re.Fragment,{children:null===(o=n.question_choices)||void 0===o?void 0:o.map((function(e,t){var r;return(0,re.jsxs)(j.Z,{children:[(0,re.jsx)(b.Z,{flex:"25px",children:(0,re.jsx)("div",{style:{width:25,overflow:"hidden"},children:(0,re.jsx)(_.Z,{checked:null===(r=n.user_answer)||void 0===r?void 0:r.includes(e.choice_id),style:{width:25}})})}),(0,re.jsx)(b.Z,{flex:"1",children:(0,re.jsxs)("div",{style:{display:"flex"},children:[(0,re.jsx)("div",{style:{lineHeight:"24px",flexShrink:0},children:le[t]}),(0,re.jsx)(M.Z,{value:e.choice_text||""})]})})]},t)}))}),n.question_type===J.c.Judge&&(0,re.jsx)("div",{className:T.Z.flexRow,children:null===(s=n.question_choices)||void 0===s?void 0:s.map((function(e,t){var r;return(0,re.jsxs)(j.Z,{children:[(0,re.jsx)(b.Z,{flex:"25px",children:(0,re.jsx)("div",{style:{width:25,overflow:"hidden"},children:(0,re.jsx)(w.ZP,{checked:null===(r=n.user_answer)||void 0===r?void 0:r.includes(e.choice_id),style:{width:25}})})}),(0,re.jsx)(b.Z,{flex:"1",children:e.choice_text})]},t)}))}),n.question_type===J.c.Fill&&!me.current&&(0,re.jsx)(D.Z,{item:n,answerData:Se,changeScoreData:he,textValue:null===(l=he[n.q_position])||void 0===l?void 0:l.text,textOnChange:function(e){he[n.q_position].text=e,fe(a()({},he))},seeAnswerVisible:!1}),n.question_type===J.c.Shixun&&(0,re.jsx)(F.Z,{item:n,answerData:Se,hasChangeScore:!1,autoHeight:Ae,showAnswer:Be}),n.question_type===J.c.Subjective&&null!=n&&null!==(c=n.user_answer)&&void 0!==c&&c[0]?(0,re.jsxs)("div",{className:T.Z.simpleBg,children:[(0,re.jsx)("aside",{className:"font14 c-light-primary mb5",children:"学生答题"}),(0,re.jsx)("div",{children:Xe?(0,re.jsx)(M.Z,{value:null==n||null===(d=n.user_answer_light)||void 0===d?void 0:d[0]}):(0,re.jsx)(M.Z,{value:null==n||null===(u=n.user_answer)||void 0===u?void 0:u[0]})})]}):null,n.question_type===J.c.Program&&(0,re.jsx)(L.Z,{item:n,answerData:Se,autoHeight:Ae}),n.question_type===J.c.Combine&&(0,re.jsx)(re.Fragment,{children:null===(p=n.sub_exercise_questions)||void 0===p?void 0:p.map((function(n,r){return(0,re.jsxs)("div",{style:{marginLeft:10},children:[(0,re.jsxs)("span",{style:{fontSize:"16px"},children:[t,".",r+1,"",se["".concat(null==n?void 0:n.question_type)],"",null==n?void 0:n.question_title,"",null==n?void 0:n.question_score,"分)"]}),e(n,r,!0)]})}))}),8===n.question_type&&(0,re.jsx)(re.Fragment,{children:(0,re.jsxs)("div",{className:"mt5",style:{padding:"10px 17px",background:"#FAFAFA"},children:[(0,re.jsx)("aside",{className:"font14 c-light-primary mb5",children:"学生答题"}),(null==n||null===(x=n.user_answer)||void 0===x?void 0:x.length)>0&&(null==n||null===(h=n.user_answer)||void 0===h?void 0:h.map((function(e){return(0,re.jsxs)("div",{style:{display:"flex"},children:[(0,re.jsxs)("div",{style:{lineHeight:"25px"},children:["答案(填空",null==e?void 0:e.choice_id,")"]}),(0,re.jsx)("pre",{style:{whiteSpace:"pre-wrap"},children:null==e?void 0:e.answer_text})]})})))]})}),Be&&(0,re.jsxs)("div",{style:{marginTop:10},children:[(null==n?void 0:n.question_type)<3&&(null==n?void 0:n.standard_answer_show)&&(0,re.jsxs)("span",{className:"font16 ",children:["正确答案:",null==n?void 0:n.standard_answer_show]}),!(null==n||null===(f=n.standard_answers)||void 0===f||!f.length)&&Be&&3===(null==n?void 0:n.question_type)&&(0,re.jsx)("div",{children:null==n||null===(v=n.standard_answers)||void 0===v?void 0:v.map((function(e,n){return(0,re.jsxs)("div",{children:[(0,re.jsxs)("span",{children:["参考答案:(填空",n+1,":"]}),(0,re.jsx)("div",{children:1===(null==e?void 0:e.model)?(0,re.jsx)(oe,{autoSize:!0,disabled:!0,value:null==e?void 0:e.answer_text[0]}):(0,re.jsx)(te.Z,{value:null==e?void 0:e.answer_text[0],disabled:!0})})]})}))}),!(null==n||null===(m=n.standard_answer)||void 0===m||!m.length)&&Be&&8===(null==n?void 0:n.question_type)&&(0,re.jsx)("div",{children:null==n||null===(g=n.standard_answer)||void 0===g?void 0:g.map((function(e,n){return(0,re.jsxs)("div",{children:[(0,re.jsxs)("span",{children:["参考答案:(填空",n+1,":"]}),(0,re.jsx)("div",{children:(0,re.jsx)(oe,{autoSize:!0,disabled:!0,value:(null==e?void 0:e.answer_text)||""})})]})}))}),!(null==n||null===(y=n.answer_texts)||void 0===y||!y.length)&&4===(null==n?void 0:n.question_type)&&(0,re.jsxs)("div",{children:[(0,re.jsx)("p",{className:"mt10 mb0",children:"参考答案:"}),(0,re.jsx)("div",{style:{border:"1px solid #eee",background:"#f5f5f5",borderRadius:4,padding:5},children:(0,re.jsx)(M.Z,{value:null==n||null===(S=n.answer_texts)||void 0===S?void 0:S[0]})})]}),6===(null==n?void 0:n.question_type)&&(0,re.jsxs)("div",{children:[(0,re.jsxs)("p",{className:"mt10 mb0",children:["参考答案:",!(null!=n&&n.answer_text)&&"暂无"]}),(null==n?void 0:n.answer_text)&&(0,re.jsx)("div",{style:{border:"1px solid #eee",background:"#f5f5f5",borderRadius:4,padding:5},children:(0,re.jsx)(M.Z,{value:null==n?void 0:n.answer_text})})]}),(null==n?void 0:n.question_type)<=4&&((null==n?void 0:n.standard_answer_show)||(null==n||null===(k=n.standard_answer)||void 0===k?void 0:k.length)>0)&&(0,re.jsxs)(j.Z,{style:{marginTop:14},children:[(0,re.jsx)("span",{className:"font16 ",children:"解析:"}),(0,re.jsx)(M.Z,{className:T.Z.renderHtml,value:(null==n?void 0:n.analysis)||"暂无解析"})]})]}),Re&&!Number.isNaN(parseFloat(null==n?void 0:n.user_score))&&(null==n?void 0:n.question_type)!==J.c.Shixun&&(null==n?void 0:n.question_type)!==J.c.Combine&&(0,re.jsxs)("span",{children:[(0,re.jsx)("span",{style:{color:"#0152d9"},children:"学生得分:"}),null==n?void 0:n.user_score,"分"]}),(null==n?void 0:n.answer_comments)&&Xe&&(0,re.jsx)(Q.Z,{newuserCommentVisible:Ue,list:null==n?void 0:n.answer_comments,hideScore:!1}),!r&&(0,re.jsx)(Z.Z,{style:me.current?{marginTop:30}:{}})]})},Cn=(0,f.useCallback)((function(){var e,n,t,r,o=(null==Y||null===(e=Y.exerciseExportHeadData)||void 0===e||null===(e=e.exercise_header)||void 0===e?void 0:e.export_page_num)||40,s=[],l=1,c=i()((null==Se||null===(t=Se.exercise_question_types)||void 0===t?void 0:t.entries())||[]);try{var d=function(){var e=p()(r.value,2),n=e[0],t=e[1];t.items.forEach((function(e,r){0===r?s.push(a()(a()({},t),{},{items:null,category:n+1,questionDetail:e,questionIndex:l})):s.push({questionDetail:e,questionIndex:l}),l++}))};for(c.s();!(r=c.n()).done;)d()}catch(e){c.e(e)}finally{c.f()}return null!=s&&s.length?null===(n=new Array(Math.ceil((null==s?void 0:s.length)/o)))||void 0===n||null===(n=n.fill([]))||void 0===n||null===(n=n.map((function(e,n){return s.slice(n*o,n*o+o)})))||void 0===n?void 0:n.map((function(e,n){return(0,re.jsxs)("div",{className:"pl60 pr30",style:{minHeight:0===n?1e3:"auto"},children:[0===n&&(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(X.Z,{isExportBlank:me.current}),(0,re.jsx)(Z.Z,{className:T.Z.divider})]}),null==e?void 0:e.map((function(e,n){return t=e,r=e.questionIndex,t.category?(0,re.jsxs)("div",{children:[(0,re.jsxs)("div",{children:[(0,re.jsxs)("span",{className:"font16 c-light-primary",children:[(0,R.EM)(null==t?void 0:t.category),"、",t.name]}),(0,re.jsxs)("span",{className:"c-grey-999",children:["(共",t.count,"题,",7===(null==t?void 0:t.question_type)?"包含".concat(null==t?void 0:t.sub_count,"小题;"):"","共",t.score,"分)"]})]}),kn(t.questionDetail,r)]}):kn(t.questionDetail,r);var t,r}))]},n)})):null}),[Se,Y,Ae]),On=(0,f.useState)({num:1}),In=p()(On,2),Nn=In[0],En=In[1],Pn=function(){return(0,re.jsx)("div",{className:T.Z.export_type_modal,children:(0,re.jsxs)("div",{className:T.Z.export_type_modal_con,children:[(0,re.jsxs)("div",{className:T.Z.type_item,children:[(0,re.jsx)("div",{className:"".concat(T.Z.img_warp," ").concat("pdf"==vn?T.Z.img_warp_active:""),onClick:function(){mn("pdf"),an&&(Ge(!1),Ve(!0),en("1"))},children:(0,re.jsx)("img",{src:t(45614),width:70,height:70})}),"pdf格式"]}),(0,re.jsxs)("div",{className:T.Z.type_item,children:[(0,re.jsx)("div",{className:"".concat(T.Z.img_warp," ").concat("word"==vn?T.Z.img_warp_active:""),onClick:function(){mn("word"),an&&(Ge(!0),en("1"))},children:(0,re.jsx)("img",{src:t(38347),width:70,height:70})}),"word格式"]})]})})};return(0,re.jsxs)("section",{className:"edu-container",children:[(0,re.jsxs)("section",{className:"animated fadeIn",children:[(0,re.jsx)("aside",{className:"mt10",children:ue&&(0,re.jsxs)(S.Z,{separator:">",children:[(0,re.jsx)(S.Z.Item,{children:(0,re.jsx)(v.Link,{to:"/classrooms/".concat(de.coursesId,"/exercise"),children:null==ue||null===(n=ue.course)||void 0===n?void 0:n.course_name})}),(0,re.jsx)(S.Z.Item,{children:(0,re.jsx)(v.Link,{to:"/classrooms/".concat(de.coursesId,"/exercise"),children:"试卷列表"})}),(0,re.jsx)(S.Z.Item,{children:(0,re.jsx)(v.Link,{to:"/classrooms/".concat(de.coursesId,"/exercise/").concat(null==Se||null===(r=Se.exercise)||void 0===r?void 0:r.id,"/detail"),children:"试卷详情"})}),(0,re.jsx)(S.Z.Item,{children:(null==Se||null===(o=Se.exercise_answer_user)||void 0===o?void 0:o.user_name)||(null==Se||null===(l=Se.exercise)||void 0===l?void 0:l.exercise_name)})]})}),(0,re.jsx)("aside",{className:[T.Z.title,"mt20"].join(" "),children:(0,re.jsxs)(j.Z,{style:{width:"100%"},children:[(0,re.jsxs)(b.Z,{flex:"1",style:{lineHeight:"24px"},children:[(0,re.jsx)(v.Link,{to:"/classrooms/".concat(de.coursesId,"/exercise/").concat(null==Se||null===(c=Se.exercise)||void 0===c?void 0:c.id,"/detail"),children:(0,re.jsx)(A.Z,{className:"font16 c-black",rev:void 0})}),(0,R.vB)(null===(u=Se.exercise)||void 0===u?void 0:u.exercise_status),(0,re.jsx)("strong",{className:"font20 ml5",children:null==Se||null===(x=Se.exercise)||void 0===x?void 0:x.exercise_name})]}),(0,re.jsx)(b.Z,{children:(0,re.jsx)(k.Z,{menu:{items:[{label:(0,re.jsxs)("span",{style:{paddingLeft:15},onClick:function(){wn(),He(!0),mn(""),xn(!0)},children:[(0,re.jsx)(q.Z,{style:{marginRight:8},rev:void 0}),"导出空白试卷+答案"]}),key:"1",show:!0},{label:(0,re.jsxs)("span",{style:{paddingLeft:15},onClick:function(){He(!1),mn(""),xn(!0)},children:[(0,re.jsx)(q.Z,{style:{marginRight:8},rev:void 0}),"导出空白试卷"]}),key:"2",show:!0},{label:(0,re.jsxs)("span",{style:{paddingLeft:15},onClick:function(){mn("pdf"),Ge(!1),Ve(!0),en("1"),He(!1),cn(!0)},children:[(0,re.jsx)(q.Z,{style:{marginRight:8},rev:void 0}),"导出所有学生试卷"]}),key:"3",show:(0,G.GJ)()}].filter((function(e){return e.show})).map((function(e){return{label:e.label,key:e.key}}))},children:(0,re.jsxs)(C.ZP,{className:T.Z.exportBtn,children:[(0,re.jsx)($.Z,{rev:void 0}),"导出",(0,re.jsx)(z.Z,{rev:void 0})]})})}),(0,re.jsx)(b.Z,{className:"ml20",children:(0,re.jsx)(C.ZP,{icon:(0,re.jsx)(B.Z,{}),className:T.Z.exportBtn,onClick:function(){ce({type:"exercise/setActionTabs",payload:{key:"exportSetting"}})},children:"导出设置"})}),(0,re.jsx)(b.Z,{})]})})]}),(0,re.jsxs)(y.Z,{title:"导出试卷选择",open:an,onCancel:function(){return cn(!1)},footer:(0,re.jsxs)("div",{children:[(0,re.jsx)(C.ZP,{onClick:function(){cn(!1)},children:"取消"}),(0,re.jsx)(C.ZP,{type:"primary",onClick:function(){if(De(!0),""!=vn){if("pdf"==vn)if("2"===rn){if(!(0,G.Ny)())return void g.ZP.error("目前仅支持平台管理员和运营人员使用后台导出!");(0,K.Hp)({categoryId:de.categoryId,coursesId:de.coursesId,comment:Ke},"export_exercise_users")}else Zn("all");else if("word"==vn)if("2"===rn){if(!(0,G.Ny)())return void g.ZP.error("目前仅支持平台管理员和运营人员使用后台导出!");(0,K.MJ)({categoryId:de.categoryId,coursesId:de.coursesId,comment:Ke},"export_exercise_users")}else ye.current>0?Sn("all"):g.ZP.info("没有可导出的学生试卷");cn(!1)}else g.ZP.info("请选择一种导出格式")},children:"确定"})]}),children:[(0,re.jsx)("div",{style:{fontSize:14,marginBottom:"15px",marginTop:"5px",color:"#666"},children:"请选择需要导出的格式"}),Pn(),"pdf"==vn&&(0,re.jsxs)("div",{style:{marginTop:"30px"},children:[(0,re.jsx)("div",{style:{fontSize:14,color:"#666"},children:"导出评阅教师的评阅记录"}),(0,re.jsx)("p",{style:{display:"flex",alignItems:"center",marginTop:"20px",marginBottom:0},children:(0,re.jsxs)(w.ZP.Group,{onChange:function(e){switch(en(e.target.value),e.target.value){case"1":Ge(!1),Ve(!0);break;case"2":Ge(!0),Ve(!0);break;case"3":Ge(!1),Ve(!1)}},value:Ke,children:[(0,re.jsx)(w.ZP,{value:"1",children:"导出所有的评阅记录"}),(0,re.jsx)(w.ZP,{value:"2",children:"导出最新的评阅记录"}),(0,re.jsx)(w.ZP,{value:"3",children:"不导出评阅记录"})]})})]}),(0,re.jsxs)("div",{style:{marginTop:"30px"},children:[(0,re.jsx)("div",{style:{fontSize:14,color:"#666"},children:"请选择导出方式"}),(0,re.jsx)("p",{style:{display:"flex",alignItems:"center",marginTop:"20px",marginBottom:0},children:(0,re.jsxs)(w.ZP.Group,{onChange:function(e){on(e.target.value)},value:rn,children:[(0,re.jsxs)(w.ZP,{value:"1",children:["前端导出",(0,re.jsx)(O.Z,{title:"导出时不能退出或关闭导出页面,可能会影响其他操作",children:(0,re.jsx)(H.Z,{style:{marginLeft:5,color:"#3061d0"}})})]}),(0,re.jsxs)(w.ZP,{value:"2",children:["后台导出",(0,re.jsx)(O.Z,{title:"生成导出任务后可关闭页面,后台导出成功后在历史导出页面自行下载,不影响其他操作",children:(0,re.jsx)(H.Z,{style:{marginLeft:5,color:"#3061d0"}})})]})]})})]}),"word"==vn&&(0,re.jsxs)("div",{style:{marginTop:"30px"},children:[(0,re.jsx)("div",{style:{fontSize:14,color:"#666"},children:"是否导出评阅教师的评语"}),(0,re.jsx)("p",{style:{display:"flex",alignItems:"center",marginTop:"20px",marginBottom:0},children:(0,re.jsxs)(w.ZP.Group,{onChange:function(e){switch(en(e.target.value),e.target.value){case"1":Ge(!0);break;case"2":Ge(!1)}},value:Ke,children:[(0,re.jsx)(w.ZP,{value:"1",children:"是"}),(0,re.jsx)(w.ZP,{value:"2",children:"否"})]})})]})]}),(0,re.jsxs)("div",{className:"".concat(T.Z.bg," pt30 mt20"),children:[(null==Se||null===(m=Se.exercise)||void 0===m?void 0:m.is_random)&&(0,re.jsx)(I.Z,{className:"".concat(T.Z.paginationWrapper),showTotal:function(e){return(0,re.jsxs)("span",{className:T.Z.totalText,style:{marginLeft:20},children:["共计",(0,re.jsx)("span",{className:T.Z.num,children:e}),"份试卷"]})},total:null==Se?void 0:Se.exercise_count,pageSize:1,current:Nn.num,showSizeChanger:!1,onChange:function(){var e=d()(s()().mark((function e(n){var t;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return En({num:n}),e.next=3,ce({type:"exercise/editExercise",payload:{coursesId:de.coursesId,categoryId:de.exerciseId,num:n-1}});case 3:t=e.sent,ke(t);case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),showQuickJumper:!0,hideOnSinglePage:!1}),(0,re.jsx)("section",{id:"export-all",className:[T.Z.bg,"pt30","pb30","mt20","mb20","relative"].join(" "),ref:ve,children:Cn()})]}),(0,re.jsx)(y.Z,{width:450,title:"请选择需要导出的格式",open:pn,onCancel:function(){return xn(!1)},onOk:d()(s()().mark((function e(){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(""!=vn){e.next=5;break}return g.ZP.info("请选择一种导出格式"),e.abrupt("return");case 5:"pdf"==vn?Zn(""):"word"==vn&&(0,K.YX)({coursesId:de.coursesId,categoryId:de.exerciseId,middle_export:1,export_type:Be?1:0});case 6:xn(!1);case 7:case"end":return e.stop()}}),e)}))),children:Pn()})]})}))},66104:function(e,n,t){"use strict";t.d(n,{Z:function(){return N}});var r=t(92310),i=t.n(r),o=t(55401),s=t(87147),l=t(59301),a=t(92343),c=t(36355),d=t(43501),u=t(91857);const p=e=>{let{children:n}=e;const{getPrefixCls:t}=l.useContext(c.E_),r=t("breadcrumb");return l.createElement("li",{className:`${r}-separator`,"aria-hidden":"true"},""===n?n:n||"/")};p.__ANT_BREADCRUMB_SEPARATOR=!0;var x=p,h=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(t[r[i]]=e[r[i]])}return t};function f(e,n,t,r){if(null==t)return null;const{className:o,onClick:a}=n,c=h(n,["className","onClick"]),d=Object.assign(Object.assign({},(0,s.Z)(c,{data:!0,aria:!0})),{onClick:a});return void 0!==r?l.createElement("a",Object.assign({},d,{className:i()(`${e}-link`,o),href:r}),t):l.createElement("span",Object.assign({},d,{className:i()(`${e}-link`,o)}),t)}function v(e,n){return(t,r,i,o,s)=>{if(n)return n(t,r,i,o);const l=function(e,n){if(void 0===e.title||null===e.title)return null;const t=Object.keys(n).join("|");return"object"==typeof e.title?e.title:String(e.title).replace(new RegExp(`:(${t})`,"g"),((e,t)=>n[t]||e))}(t,r);return f(e,t,l,s)}}var m=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(t[r[i]]=e[r[i]])}return t};const g=e=>{const{prefixCls:n,separator:t="/",children:r,menu:i,overlay:o,dropdownProps:s,href:a}=e;const c=(e=>{if(i||o){const t=Object.assign({},s);if(i){const e=i||{},{items:n}=e,r=m(e,["items"]);t.menu=Object.assign(Object.assign({},r),{items:null==n?void 0:n.map(((e,n)=>{var{key:t,title:r,label:i,path:o}=e,s=m(e,["key","title","label","path"]);let c=null!=i?i:r;return o&&(c=l.createElement("a",{href:`${a}${o}`},c)),Object.assign(Object.assign({},s),{key:null!=t?t:n,label:c})}))})}else o&&(t.overlay=o);return l.createElement(u.Z,Object.assign({placement:"bottom"},t),l.createElement("span",{className:`${n}-overlay-link`},e,l.createElement(d.Z,null)))}return e})(r);return null!=c?l.createElement(l.Fragment,null,l.createElement("li",null,c),t&&l.createElement(x,null,t)):null},y=e=>{const{prefixCls:n,children:t,href:r}=e,i=m(e,["prefixCls","children","href"]),{getPrefixCls:o}=l.useContext(c.E_),s=o("breadcrumb",n);return l.createElement(g,Object.assign({},i,{prefixCls:s}),f(s,i,t,r))};y.__ANT_BREADCRUMB_ITEM=!0;var j=y,b=t(17313),w=t(83116),_=t(37613);const Z=e=>{const{componentCls:n,iconCls:t}=e;return{[n]:Object.assign(Object.assign({},(0,b.Wf)(e)),{color:e.itemColor,fontSize:e.fontSize,[t]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",marginInline:-e.marginXXS,"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},(0,b.Qy)(e)),"li:last-child":{color:e.lastItemColor},[`${n}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${n}-link`]:{[`\n > ${t} + span,\n > ${t} + a\n `]:{marginInlineStart:e.marginXXS}},[`${n}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${t}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}};var S=(0,w.Z)("Breadcrumb",(e=>{const n=(0,_.TS)(e,{});return[Z(n)]}),(e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}))),k=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(t[r[i]]=e[r[i]])}return t};function C(e){const{breadcrumbName:n,children:t}=e,r=k(e,["breadcrumbName","children"]),i=Object.assign({title:n},r);return t&&(i.menu={items:t.map((e=>{var{breadcrumbName:n}=e,t=k(e,["breadcrumbName"]);return Object.assign(Object.assign({},t),{title:n})}))}),i}var O=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(t[r[i]]=e[r[i]])}return t};const I=e=>{const{prefixCls:n,separator:t="/",style:r,className:d,rootClassName:u,routes:p,items:h,children:f,itemRender:m,params:y={}}=e,j=O(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:b,direction:w,breadcrumb:_}=l.useContext(c.E_);let Z;const k=b("breadcrumb",n),[I,N]=S(k),E=function(e,n){return(0,l.useMemo)((()=>e||(n?n.map(C):null)),[e,n])}(h,p);const P=v(k,m);if(E&&E.length>0){const e=[],n=h||p;Z=E.map(((r,i)=>{const{path:o,key:a,type:c,menu:d,overlay:u,onClick:p,className:h,separator:f,dropdownProps:v}=r,m=((e,n)=>{if(void 0===n)return n;let t=(n||"").replace(/^\//,"");return Object.keys(e).forEach((n=>{t=t.replace(`:${n}`,e[n])})),t})(y,o);void 0!==m&&e.push(m);const j=null!=a?a:i;if("separator"===c)return l.createElement(x,{key:j},f);const b={},w=i===E.length-1;d?b.menu=d:u&&(b.overlay=u);let{href:_}=r;return e.length&&void 0!==m&&(_=`#/${e.join("/")}`),l.createElement(g,Object.assign({key:j},b,(0,s.Z)(r,{data:!0,aria:!0}),{className:h,dropdownProps:v,href:_,separator:w?"":t,onClick:p,prefixCls:k}),P(r,y,n,e,_))}))}else if(f){const e=(0,o.Z)(f).length;Z=(0,o.Z)(f).map(((n,r)=>{if(!n)return n;const i=r===e-1;return(0,a.Tm)(n,{separator:i?"":t,key:r})}))}const A=i()(k,null==_?void 0:_.className,{[`${k}-rtl`]:"rtl"===w},d,u,N),q=Object.assign(Object.assign({},null==_?void 0:_.style),r);return I(l.createElement("nav",Object.assign({className:A,style:q},j),l.createElement("ol",null,Z)))};I.Item=j,I.Separator=x;var N=I},28103:function(e,n,t){"use strict";t.d(n,{Z:function(){return x}});var r=t(92310),i=t.n(r),o=t(59301),s=t(36355),l=t(17313),a=t(83116),c=t(37613);const d=e=>{const{componentCls:n,sizePaddingEdgeHorizontal:t,colorSplit:r,lineWidth:i,textPaddingInline:o,orientationMargin:s,verticalMarginInline:a}=e;return{[n]:Object.assign(Object.assign({},(0,l.Wf)(e)),{borderBlockStart:`${i}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:a,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${i}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${n}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${i}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${n}-with-text-left`]:{"&::before":{width:100*s+"%"},"&::after":{width:100-100*s+"%"}},[`&-horizontal${n}-with-text-right`]:{"&::before":{width:100-100*s+"%"},"&::after":{width:100*s+"%"}},[`${n}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${i}px 0 0`},[`&-horizontal${n}-with-text${n}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${n}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${n}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${n}-with-text-left${n}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${n}-inner-text`]:{paddingInlineStart:t}},[`&-horizontal${n}-with-text-right${n}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${n}-inner-text`]:{paddingInlineEnd:t}}})}};var u=(0,a.Z)("Divider",(e=>{const n=(0,c.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[d(n)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),p=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(t[r[i]]=e[r[i]])}return t};var x=e=>{const{getPrefixCls:n,direction:t,divider:r}=o.useContext(s.E_),{prefixCls:l,type:a="horizontal",orientation:c="center",orientationMargin:d,className:x,rootClassName:h,children:f,dashed:v,plain:m,style:g}=e,y=p(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),j=n("divider",l),[b,w]=u(j),_=c.length>0?`-${c}`:c,Z=!!f,S="left"===c&&null!=d,k="right"===c&&null!=d,C=i()(j,null==r?void 0:r.className,w,`${j}-${a}`,{[`${j}-with-text`]:Z,[`${j}-with-text${_}`]:Z,[`${j}-dashed`]:!!v,[`${j}-plain`]:!!m,[`${j}-rtl`]:"rtl"===t,[`${j}-no-default-orientation-margin-left`]:S,[`${j}-no-default-orientation-margin-right`]:k},x,h),O=o.useMemo((()=>"number"==typeof d?d:/^\d+$/.test(d)?Number(d):d),[d]),I=Object.assign(Object.assign({},S&&{marginLeft:O}),k&&{marginRight:O});return b(o.createElement("div",Object.assign({className:C,style:Object.assign(Object.assign({},null==r?void 0:r.style),g)},y,{role:"separator"}),f&&"vertical"!==a&&o.createElement("span",{className:`${j}-inner-text`,style:I},f)))}},24334:function(e,n,t){var r,i;i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t.g?t.g:this,e.exports=function(t){"use strict";var i,o=(t=t||{}).Base64,s="2.6.4",l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=function(e){for(var n={},t=0,r=e.length;t<r;t++)n[e.charAt(t)]=t;return n}(l),c=String.fromCharCode,d=function(e){if(e.length<2)return(n=e.charCodeAt(0))<128?e:n<2048?c(192|n>>>6)+c(128|63&n):c(224|n>>>12&15)+c(128|n>>>6&63)+c(128|63&n);var n=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return c(240|n>>>18&7)+c(128|n>>>12&63)+c(128|n>>>6&63)+c(128|63&n)},u=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,p=function(e){return e.replace(u,d)},x=function(e){var n=[0,2,1][e.length%3],t=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[l.charAt(t>>>18),l.charAt(t>>>12&63),n>=2?"=":l.charAt(t>>>6&63),n>=1?"=":l.charAt(63&t)].join("")},h=t.btoa&&"function"==typeof t.btoa?function(e){return t.btoa(e)}:function(e){if(e.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return e.replace(/[\s\S]{1,3}/g,x)},f=function(e){return h(p(String(e)))},v=function(e){return e.replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,"")},m=function(e,n){return n?v(f(e)):f(e)},g=function(e){return m(e,!0)};t.Uint8Array&&(i=function(e,n){for(var t="",r=0,i=e.length;r<i;r+=3){var o=e[r],s=e[r+1],a=e[r+2],c=o<<16|s<<8|a;t+=l.charAt(c>>>18)+l.charAt(c>>>12&63)+(void 0!==s?l.charAt(c>>>6&63):"=")+(void 0!==a?l.charAt(63&c):"=")}return n?v(t):t});var y,j=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,b=function(e){switch(e.length){case 4:var n=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return c(55296+(n>>>10))+c(56320+(1023&n));case 3:return c((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return c((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},w=function(e){return e.replace(j,b)},_=function(e){var n=e.length,t=n%4,r=(n>0?a[e.charAt(0)]<<18:0)|(n>1?a[e.charAt(1)]<<12:0)|(n>2?a[e.charAt(2)]<<6:0)|(n>3?a[e.charAt(3)]:0),i=[c(r>>>16),c(r>>>8&255),c(255&r)];return i.length-=[0,0,2,1][t],i.join("")},Z=t.atob&&"function"==typeof t.atob?function(e){return t.atob(e)}:function(e){return e.replace(/\S{1,4}/g,_)},S=function(e){return Z(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},k=function(e){return w(Z(e))},C=function(e){return String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,"")},O=function(e){return k(C(e))};t.Uint8Array&&(y=function(e){return Uint8Array.from(S(C(e)),(function(e){return e.charCodeAt(0)}))});var I=function(){var e=t.Base64;return t.Base64=o,e};if(t.Base64={VERSION:s,atob:S,btoa:h,fromBase64:O,toBase64:m,utob:p,encode:m,encodeURI:g,btou:w,decode:O,noConflict:I,fromUint8Array:i,toUint8Array:y},"function"==typeof Object.defineProperty){var N=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};t.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",N((function(){return O(this)}))),Object.defineProperty(String.prototype,"toBase64",N((function(e){return m(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",N((function(){return m(this,!0)})))}}return t.Meteor&&(Base64=t.Base64),e.exports?e.exports.Base64=t.Base64:void 0===(r=function(){return t.Base64}.apply(n,[]))||(e.exports=r),{Base64:t.Base64}}(i)}}]);