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__Graduations__Lists__Task...

1 line
44 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.

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[9416,39483,12768],{48689:function(e,t,n){n.d(t,{Z:function(){return s}});var a=n(87462),r=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},l=n(43387),o=function(e,t){return r.createElement(l.Z,(0,a.Z)({},e,{ref:t,icon:i}))};var s=r.forwardRef(o)},64789:function(e,t,n){n.d(t,{Z:function(){return s}});var a=n(87462),r=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},l=n(43387),o=function(e,t){return r.createElement(l.Z,(0,a.Z)({},e,{ref:t,icon:i}))};var s=r.forwardRef(o)},25035:function(e,t,n){n.d(t,{Z:function(){return s}});var a=n(87462),r=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},l=n(43387),o=function(e,t){return r.createElement(l.Z,(0,a.Z)({},e,{ref:t,icon:i}))};var s=r.forwardRef(o)},36579:function(e,t,n){n.d(t,{Z:function(){return w}});var a=n(42122),r=n.n(a),i=n(17061),l=n.n(i),o=n(17156),s=n.n(o),c=n(27424),u=n.n(c),d=n(67294),f={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},p=n(71577),h=n(77171),m=n(8691),v=n(83062),g=n(29427),x=n(51412),_=n(82982),j=n(59758),y=n(85893),w=function(e){var t,n,a,i,o,c,w,b=e.editOffice,k=void 0===b?"view":b,S=e.data,N=(e.theme,e.type),Z=e.filename,E=e.monacoEditor,C=e.className,z=e.style,$=e.close,P=e.onClose,R=e.hasMask,I=e.disabledDownload,T=e.onImgDimensions,M=e.showNodata,O=(0,d.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),L=u()(O,2),H=(L[0],L[1],(0,d.useState)("")),W=u()(H,2),A=(W[0],W[1]),B=(0,d.useState)(),D=u()(B,2),F=D[0],V=D[1],Y="build"===window.ENV?"/react/build":"",G=location.host.startsWith("localhost")?j.Z.PROXY_SERVER:j.Z.API_SERVER,U=(0,d.useRef)();null!==(t=S)&&void 0!==t&&t.startsWith("/api")&&"txt"!==N&&(S=j.Z.API_SERVER+S),Z&&(E.filename=Z),(0,d.useEffect)((function(){var e,t,n=null===(e=document.cookie)||void 0===e||null===(t=e.replace(/\s/g,""))||void 0===t?void 0:t.split(";");null==n||n.map((function(e){var t=e.split("=");"_educoder_session"===t[0]&&A(t[1])}))}),[]),(0,d.useEffect)((function(){"office"===N&&q()}),[N,S]);var q=function(){var e=s()(l()().mark((function e(){var t,n,a;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=S,S.startsWith("http")||(t=location.origin+t),n=new URL(t).pathname.split("/").pop(),e.next=5,(0,x.gJ)({attachment_id:n});case 5:a=e.sent,V(a);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),J=function(){X()},X=function(){(0,g.Nd)(Z||"educoder",decodeURIComponent(S))};return(0,y.jsxs)("div",{style:r()({},z||{}),className:"".concat(R&&f.bgBlack," ").concat(N?f.wrp:"hide"),children:[$&&(0,y.jsxs)("div",{className:f.close,ref:U,children:[!!T&&(0,y.jsx)(v.Z,{title:"点击对图片进行批注",getPopupContainer:function(){return U.current},children:(0,y.jsx)("span",{onClick:function(){P(),T()},children:(0,y.jsx)("i",{className:"icon-yulanpizhu"})})}),!I&&(0,y.jsx)(v.Z,{title:"点击下载此文件",getPopupContainer:function(){return U.current},children:(0,y.jsx)("span",{onClick:X,children:(0,y.jsx)("i",{className:"icon-quxiaozhiding"})})}),(0,y.jsx)(v.Z,{title:"关闭",getPopupContainer:function(){return U.current},children:(0,y.jsx)("span",{className:"",onClick:P,children:(0,y.jsx)("i",{className:"icon-guanbi1"})})})]}),(0,y.jsx)("div",{className:"".concat(f[C]," ").concat(C," ").concat(f.monaco," ").concat("txt"===N?"show":"hide"),children:"txt"===N&&(0,y.jsx)(m.ZP,r()({},E))}),"audio"===N&&(0,y.jsx)("audio",{src:(null===(n=S)||void 0===n?void 0:n.indexOf("http"))>-1||null!==(a=S)&&void 0!==a&&a.startsWith("/api")?S:"data:image/png;base64,".concat(S),autoPlay:!0}),"video"===N&&(0,y.jsx)(y.Fragment,{children:(null===(i=S)||void 0===i?void 0:i.indexOf("http"))>-1||null!==(o=S)&&void 0!==o&&o.startsWith("/api")?(0,y.jsx)("video",{controls:!0,src:"".concat(S),autoPlay:!0}):(0,y.jsx)("video",{controls:!0,src:"data:video/mp4;base64,".concat(S),autoPlay:!0})}),"office"===N&&F&&(0,y.jsx)("iframe",{src:"".concat(Y,"/office.html?key=").concat(F.key,"&url=").concat(G+F.url,"&callbackUrl=").concat(G+F.callbackUrl,"&fileType=").concat(F.fileType,"&title=").concat(F.title,"&model=").concat(k,"&officeServer=").concat(j.Z.ONLYOFFICE,"&disabledDownload=").concat(!!I)}),"html"===N&&(0,y.jsx)("iframe",{src:S+"&disposition=inline"}),"pdf"===N&&(0,y.jsx)("iframe",{src:"".concat(Y,"/js/pdfview/index.html?url=").concat(S,"&disabledDownload=").concat(!!I)}),"image"===N&&(0,y.jsx)("img",{src:(null===(c=S)||void 0===c?void 0:c.indexOf("http"))>-1||null!==(w=S)&&void 0!==w&&w.startsWith("/api")?S:"data:image/png;base64,".concat(S)}),("other"===N||"download"===N)&&(0,y.jsx)(y.Fragment,{children:M?(0,y.jsx)(_.Z,{customText:"当前文件不支持预览,可点击下载查看",ButtonTwo:(0,y.jsx)(p.ZP,{icon:(0,y.jsx)("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:J,children:"下载"})}):(0,y.jsxs)(p.ZP,{type:"primary",size:"middle",onClick:J,children:[(0,y.jsx)(h.Z,{}),"点击下载"]})})]})}},12768:function(e,t,n){n.d(t,{Z:function(){return F}});var a=n(42122),r=n.n(a),i=n(861),l=n.n(i),o=n(74704),s=n.n(o),c=n(27424),u=n.n(c),d=n(67294),f=(n(81897),n(47084)),p=n.n(f),h=n(90621);var m=[],v=["<ul>"],g=new(p().Renderer),x=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function _(){m.length=0,v=["<ul>"]}var j={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function y(e,t,n,a){if(t>=e.length||e[t].level<=n)return t;var r=e[t];a.push("<li><a href='#"+r.anchor+"'>"+r.text+"</a>");var i=[];return t=y(e,++t,r.level,i),i.length>0&&(a.push("<ul>"),i.forEach((function(e){a.push(e)})),a.push("</ul>")),a.push("</li>"),t=y(e,t,n,a)}function w(){return y(m,0,0,v),v.push("</ul>"),v.join("")}var b={heading:function(e){var t=x.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[1].length,text:t[2]}},fences:function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],a=function(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var a=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:u()(t,1)[0].length>=a.length?e.slice(a.length):e})).join("\n")}(n,t[3]||""),r=t[2]?t[2].trim():t[2];if(["latex","katex","math"].indexOf(r)>=0){var i=N(),l=a;a=i,Z[i]={type:"block",expression:l}}return{type:"code",raw:n,lang:r,text:a}}}},k=/(?:\${2})([^\n`]+?)(?:\${2})/gi,S=0,N=function(){return"__special_katext_id_".concat(S++,"__")},Z={};function E(){return Z}function C(){S=0,Z={}}function z(e){return e=e.replace(k,(function(e,t){var n=N();return Z[n]={type:"inline",expression:t},n}))}var $=g.listitem;g.listitem=function(e){return $(z(e))};var P=g.paragraph;g.paragraph=function(e){return P(z(e))};var R=g.tablecell;g.tablecell=function(e,t){return R(z(e),t)},g.code=function(e,t,n){var a=(t||"").match(/\S*/)[0];return a?["latex","katex","math"].indexOf(a)>=0?"<p class='editormd-tex'>".concat(e,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(t,'">').concat(n?e:(0,h.escape)(e,!0),"</code></pre>\n"):'<pre class="prettyprint linenums"><code>'+(n?e:(0,h.escape)(e,!0))+"</code></pre>"},g.heading=function(e,t,n){var a=this.options.headerPrefix+n.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return m.push({anchor:a,level:t,text:e}),"<h"+t+' id="'+a+'">'+e+"</h"+t+">"},p().setOptions({silent:!0,gfm:!0,pedantic:!1}),p().use({tokenizer:b,renderer:g});var I=p(),T=(n(11771),n(67631)),M=n.n(T),O=n(59758),L=n(20527),H=n(25934),W=n(36579),A=n(85893),B="@▁@",D=/<pre[^>]*>/g;var F=function(e){var t=e.value,n=void 0===t?"":t,a=e.className,i=e.showTextOnly,o=e.showLines,c=e.style,f=void 0===c?{}:c,p=e.stylesPrev,h=void 0===p?{}:p,m=e.highlightKeywords,v=e.showProgramFill,g=(e.isProgramFill,e.disabledFill),x=void 0!==g&&g,y=e.programFillValue,b=e.onFillChange,k=void 0===b?function(e){}:b,S=e.onFillBlur,N=void 0===S?function(){}:S,Z=String(n),z=(0,d.useState)(""),$=u()(z,2),P=$[0],R=$[1],T=(0,d.useState)("office"),F=u()(T,2),V=F[0],Y=F[1],G=(0,d.useState)([]),U=u()(G,2),q=U[0],J=U[1],X=(0,d.useRef)("a"+(0,H.Z)()),K={},Q=function(e){return e.replace(/<style.*?>([\s\S]+?)<\/style>/gim,(function(e,t){var n=t.replace(/(\n|\r)/g,"").split("}"),a=[];return n.map((function(e){""!=e&&a.push(".".concat(X.current," ").concat(e))})),"<style>".concat(a.join("}"),"</style>")}))},ee=(0,d.useMemo)((function(){try{Z=Z.replace(/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,"("+O.Z.API_SERVER+"/api/attachments/").replace(/\"\/api\/attachments\/|\"\/attachments\/download\//g,'"'+O.Z.API_SERVER+"/api/attachments/").replace(/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,'"'+O.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,"\n")}catch(e){}if(v){var e=-1;return Z=Z.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,(function(t,n,a){return function(e,t){var n=document.createElement(e===B?"input":"textarea");n.style.width="100%",n.style.height=e===B?"40px":"151px",n.rows=5,n.spellcheck=!1,n.name="edu-program-fill",n.placeholder="请输入",n.dataset.id=t;var a=Object.keys(K).length;return K[a]=n,'<span class="edu-program-fill-wrap '.concat(e===B?"":"show",'" style="width:').concat(e===B?"200px":"100%",'"><span>').concat(n.outerHTML,'<span class="edu-program-fill-score"></span></span></span>')}(t,++e)})),'<pre style="background:#fff;padding:4px">'.concat(Q(Z||""),"</pre>")}var t=I(Z);t=Q(t);var n=E();Z.match(/\[TOC\]/)&&(t=t.replace("<p>[TOC]</p>",w()),_()),t=t.replace(/(__special_katext_id_\d+__)/g,(function(e,t){var a=n[t],r=a.type,i=a.expression;return(0,L.renderToString)(function(e){var t=document.createElement("div");return t.innerHTML=e,0===t.childNodes.length?"":t.childNodes[0].nodeValue}(i)||"",{displayMode:"block"===r,throwOnError:!1,output:"html"})})),t=t.replace(/▁/g,"▁▁▁"),C();var a=document.createElement("div");return a.innerHTML=t,m?(ae(a,m.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),a.innerHTML):i?a.innerText:(setTimeout((function(){return le()}),500),a.innerHTML)}),[Z,m]);(0,d.useEffect)((function(){re.current&&re.current.querySelectorAll(["input","textarea"]).forEach((function(e){e.oninput=te,e.onblur=ne}))}),[q]),(0,d.useEffect)((function(){if(null!=y&&y.length){var e,t=re.current.querySelectorAll(".edu-program-fill-score"),n=re.current.querySelectorAll('[name="edu-program-fill"]'),a=s()(n.entries());try{for(a.s();!(e=a.n()).done;){var r,i=u()(e.value,2),l=i[0],o=i[1];o.value=null===(r=y[l])||void 0===r?void 0:r.value,"warning"===y[l].type?o.className="program-fill-warning":"success"===y[l].type?o.className="program-fill-success":o.className=""}}catch(e){a.e(e)}finally{a.f()}var c,d=s()(t.entries());try{for(d.s();!(c=d.n()).done;){var f,p,h=u()(c.value,2),m=h[0];h[1].innerHTML=null!==(f=y[m])&&void 0!==f&&f.score?"".concat(null===(p=y[m])||void 0===p?void 0:p.score,"分"):""}}catch(e){d.e(e)}finally{d.f()}J(y)}}),[y]);var te=function(e){q[e.target.dataset.id]=q[e.target.dataset.id]||{},q[e.target.dataset.id].value=e.target.value,J(l()(q)),k(q,e.target.dataset.id)},ne=function(e){q[e.target.dataset.id]=q[e.target.dataset.id]||{},q[e.target.dataset.id].value=e.target.value,J(l()(q)),N(q,e.target.dataset.id)};function ae(e,t){return e.childNodes.forEach((function(e){if(e.childNodes.length>0)ae(e,t);else if("IMG"!==e.nodeName)if(e.innerHTML){var n;e.innerHTML=null===(n=e.innerHTML)||void 0===n?void 0:n.replace(new RegExp(t,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>')}else{var a=document.createElement("span");a.innerHTML=e.textContent.replace(new RegExp(t,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),e.replaceWith(a)}}))}var re=(0,d.useRef)();function ie(e){var t=e.target;if("A"===t.tagName.toUpperCase()){var n=t.getAttribute("href");if(n.indexOf("office")>-1)e.preventDefault(),R(n),Y("office");else if(n.indexOf("application/pdf")>-1)e.preventDefault(),R(n),Y("pdf");else if(n.indexOf("text/html")>-1)e.preventDefault(),R(n),Y("html");else if(n.startsWith("#")){e.preventDefault();var a=document.getElementById(n.replace("#",""));a&&a.scrollIntoView(!0)}}}j.WebkitLineClamp=o,o&&(f=r()(r()({},f),j));var le=function(){var e,t=null===(e=re.current)||void 0===e?void 0:e.querySelectorAll("video");null==t||t.forEach((function(e){if(e.oncontextmenu=function(){return!1},e.src.indexOf(".m3u8")>-1)if(e.canPlayType("application/vnd.apple.mpegurl"));else if(M().isSupported()){var t=new(M());t.loadSource(e.src),t.attachMedia(e)}}))};return(0,d.useEffect)((function(){if(re.current&&ee&&ee.match(D)&&window.PR.prettyPrint(),re.current)return re.current.addEventListener("click",ie),function(){var e;null===(e=re.current)||void 0===e||e.removeEventListener("click",ie),C(),_()}}),[ee,re.current,ie]),(0,A.jsxs)(A.Fragment,{children:[i&&(0,A.jsx)("div",{ref:re,children:ee}),!i&&(0,A.jsx)("div",{ref:re,style:r()({},f),className:"".concat(a||""," ").concat(x?"disabled-fill":""," markdown-body ").concat(X.current),dangerouslySetInnerHTML:{__html:ee}}),(0,A.jsx)(W.Z,{close:!0,data:P,type:null!=P&&P.length?V:"",style:r()({},h),onClose:function(){return R("")}})]})}},43409:function(e,t,n){n.r(t),n.d(t,{default:function(){return X}});var a=n(67294),r=n(88275),i=n(4310),l=n(42122),o=n.n(l),s=n(17061),c=n.n(s),u=n(17156),d=n.n(u),f=n(27424),p=n.n(f),h=n(2453),m=n(92421),v=n(83062),g=n(71230),x=n(29427),_=n(83280),j=n(59758),y=n(84519),w=n(14446),b="File___Vzzv4",k="deletfileIcon___snNZ9",S="wrap___eGzSn",N="row___qfnoA",Z="img___Ftdlp",E=n(82749),C=n(87462),z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"},$=n(43387),P=function(e,t){return a.createElement($.Z,(0,C.Z)({},e,{ref:t,icon:z}))};var R=a.forwardRef(P),I=n(85893),T=function(e){var t,n,r,i=e.visible,l=e.data,s=e.onClose,u=void 0===s?function(){}:s,f=e.sendUrl,v=(0,a.useState)([]),_=p()(v,2),C=_[0],z=_[1],$=C.map((function(e){var t;return e.response?o()(o()({},e),{},{linkProps:{download:!0},url:null==e||null===(t=e.response)||void 0===t?void 0:t.url}):e}));(0,a.useEffect)((function(){var e;i&&z((null==l||null===(e=l.attachments)||void 0===e?void 0:e.map((function(e){return{name:e.title,status:"done",linkProps:{download:!0},response:{id:e.id,url:e.url}}})))||[])}),[i]);var P={multiple:!0,withCredentials:!0,fileList:$,beforeUpload:function(e){return!(e.size/1024/1024>150)||(h.ZP.error("《".concat(e.name,"》文件无法上传。超过文件大小限制(150M)")),m.Z.LIST_IGNORE)},itemRender:function(e,t){var n;return(0,I.jsxs)(g.Z,{wrap:!1,align:"middle",justify:"space-between",className:"ant-upload-list-item ant-upload-list-item-done ".concat(b),children:[(0,I.jsxs)("a",{download:"download",onClick:function(e){var n;console.log(t,"file"),e.preventDefault(),(0,x.Nd)("","".concat(j.Z.API_SERVER).concat(null==t||null===(n=t.url)||void 0===n?void 0:n.replace("disposition=inline","")))},title:null==t?void 0:t.name,href:t.url,children:[(0,I.jsx)(R,{className:"mr10 c-grey-666"}),(0,x.tP)(null==t?void 0:t.name,35)]}),(null==t||null===(n=t.response)||void 0===n?void 0:n.id)&&(0,I.jsx)("i",{className:"iconfont icon-shanchu14 font14 ".concat(k),onClick:d()(c()().mark((function e(){return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,T(null==$?void 0:$.filter((function(e){return e.response.id!=t.response.id})));case 2:0==e.sent.status&&(h.ZP.success("删除成功"),z(null==$?void 0:$.filter((function(e){var n,a;return(null==e||null===(n=e.response)||void 0===n?void 0:n.id)!=(null==t||null===(a=t.response)||void 0===a?void 0:a.id)}))));case 4:case"end":return e.stop()}}),e)})))})]})},action:"".concat(j.Z.API_SERVER,"/api/attachments.json"),onChange:function(e){var t=(0,x.uD)(e);z(t),t.every((function(e){return"uploading"!==e.status}))&&T(t)}},T=function(){var e=d()(c()().mark((function e(t){var n;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,y.ZP)(f,{method:"post",body:{graduation_task_id:l.id,attachment_ids:t.filter((function(e){return"done"===e.status})).map((function(e){var t;return null==e||null===(t=e.response)||void 0===t?void 0:t.id}))}});case 2:return(n=e.sent).status,e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,I.jsx)(w.Z,{centered:!0,destroyOnClose:!0,onCancel:u,open:i,footer:null,title:"任务书详情",width:620,className:"pb20",afterClose:function(){z([])},children:(0,I.jsxs)("div",{className:S,children:[(0,I.jsxs)("div",{className:N,children:[(0,I.jsx)("div",{children:"课题名称"}),(0,I.jsx)("div",{title:l.name,children:l.name})]}),(0,I.jsxs)("div",{className:N,children:[(0,I.jsx)("div",{children:"指导老师"}),(0,I.jsx)("div",{children:null!=l&&null!==(t=l.teachers)&&void 0!==t&&t.length?null==l||null===(n=l.teachers)||void 0===n||null===(r=n.map((function(e){return e.real_name})))||void 0===r?void 0:r.join("、"):"--"})]}),(0,I.jsxs)("div",{className:N,children:[(0,I.jsx)("div",{children:"课题来源"}),(0,I.jsx)("div",{children:l.source||"--"})]}),(0,I.jsxs)("div",{className:N,children:[(0,I.jsx)("div",{children:"选题学生"}),(0,I.jsx)("div",{children:l.real_name||"--"})]}),1===l.status&&(0,I.jsx)("div",{className:"".concat(Z," iconfont icon-yixiada")}),(0,I.jsx)(m.Z,o()(o()({},P),{},{children:(0,I.jsxs)(g.Z,{align:"middle",className:"mt10",children:[(0,I.jsxs)(E.op,{style:{borderRadius:2},children:[(0,I.jsx)("i",{className:"icon-shangchuan3 mr5"}),"上传文档"]}),(0,I.jsx)("div",{className:"ml10 font14",style:{color:"#5F6367"},onClick:function(e){e.stopPropagation()},children:"上传任务书单个文档大小不超过150M"})]})})),(0,I.jsx)("div",{style:{height:"20px"}})]})})},M=(0,r.connect)((function(e){return{graduations:e.graduations}}))((function(e){var t,n=e.graduations,i=e.dispatch,l=(0,r.useParams)(),s=(0,a.useState)([]),u=p()(s,2),f=u[0],w=u[1],b=(0,a.useState)({}),k=p()(b,2),S=k[0],N=k[1],Z=(0,a.useState)(!1),E=p()(Z,2),C=E[0],z=E[1],$=(0,a.useState)(1),P=p()($,2),R=P[0],M=P[1],O=(0,a.useRef)(null),L=(0,a.useRef)([]),H=null===(t=location.pathname.split("/"))||void 0===t?void 0:t[3],W=n.menus.find((function(e){return e.clazz===H}))||{},A="/api/graduations/".concat(l.id,"/graduation_stages/").concat(null==W?void 0:W.id,"/submit.json"),B={multiple:!0,withCredentials:!0,fileList:f,showUploadList:!1,beforeUpload:function(e){return!(e.size/1024/1024>150)||(h.ZP.error("《".concat(e.name,"》文件无法上传。超过文件大小限制(150M)")),m.Z.LIST_IGNORE)},action:"".concat(j.Z.API_SERVER,"/api/attachments.json"),onChange:function(e){i({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"正在上传中,请稍候"}});var t=(0,x.uD)(e);w(t),t.every((function(e){return"uploading"!==e.status}))&&D(t)}},D=function(){var e=d()(c()().mark((function e(t){var n;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,y.ZP)(A,{method:"post",body:{graduation_task_id:O.current,attachment_ids:null===(n=t.filter((function(e){return"done"===e.status})).map((function(e){var t;return null==e||null===(t=e.response)||void 0===t?void 0:t.id})))||void 0===n?void 0:n.concat(L.current)}});case 2:0===e.sent.status&&(h.ZP.success("提交成功"),M(R+1)),w([]),O.current=null,L.current=[],i({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}});case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),F=[{title:"课题名称",dataIndex:"name",ellipsis:!0,render:function(e){return(0,I.jsx)(v.Z,{placement:"topLeft",title:e,children:(0,I.jsx)("span",{className:"c-grey-333",children:e||"--"})})}},{title:"指导老师",dataIndex:"teachers",width:156,ellipsis:!0,render:function(e){var t,n=null!=e&&e.length?null==e||null===(t=e.map((function(e){return e.real_name})))||void 0===t?void 0:t.join("、"):"";return(0,I.jsx)(v.Z,{placement:"topLeft",title:n,children:(0,I.jsx)("span",{className:"c-grey-333",children:n||"--"})})}},{title:"选题学生",width:156,ellipsis:!0,dataIndex:"real_name",render:function(e){return(0,I.jsx)(v.Z,{placement:"topLeft",title:e,children:(0,I.jsx)("span",{className:"c-black",children:e||"--"})})}},{title:"文档",dataIndex:"attachments",width:156,ellipsis:{showTitle:!1},render:function(e,t){var n;if(null==e||!e.length)return"--";var a,r="";null!=e&&e.length&&(r=(0,x.tP)(null==e||null===(a=e[0])||void 0===a?void 0:a.title,6));return(0,I.jsx)(v.Z,{placement:"topLeft",title:null==e||null===(n=e[0])||void 0===n?void 0:n.title,children:(0,I.jsx)("span",{onClick:function(){var t,n;(0,x.Nd)("","".concat(j.Z.API_SERVER).concat(null===(t=e[0])||void 0===t||null===(n=t.url)||void 0===n?void 0:n.replace("disposition=inline","")))},className:"current",style:{color:"#3061D0"},children:r})})}},{title:"状态",dataIndex:"status",width:90,render:function(e){return(0,I.jsxs)(I.Fragment,{children:[0===e&&(0,I.jsx)("span",{className:"c-black",children:"未下达"}),1===e&&(0,I.jsx)("span",{className:"c-black",children:"已下达"})]})}},{title:"操作",dataIndex:"action",align:"right",width:100,render:function(e,t){return(0,I.jsxs)(g.Z,{align:"middle",justify:"end",children:[(0,I.jsx)(m.Z,o()(o()({},B),{},{children:(0,I.jsx)("span",{onClick:function(){var e;O.current=t.id,L.current=null==t||null===(e=t.attachments)||void 0===e?void 0:e.map((function(e){return e.id}))},className:"current font14 c-light-primary",children:"提交"})})),(0,I.jsx)("span",{onClick:function(){z(!0),N(o()({},t))},className:"current font14 c-light-primary ml20",children:"详情"})]})}}];return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_.Z,{tags:[{id:"",name:"全部"},{id:0,name:"未下达"},{id:1,name:"已下达"}],tagsTitle:"下达状态",tagsTitleWidth:56,placeholder:"请输入课题名称进行搜索",columns:F,updateKey:R,inputWidth:222}),(0,I.jsx)(T,{visible:C,data:S,sendUrl:A,onClose:function(){z(!1),N({}),M(R+1)}})]})})),O=n(74704),L=n.n(O),H=n(861),W=n.n(H),A={flex_box_center:"flex_box_center___YhVJ8",flex_space_between:"flex_space_between___ZwNFf",flex_box_vertical_center:"flex_box_vertical_center___zVi38",flex_box_center_end:"flex_box_center_end___XiBd9",flex_box_column:"flex_box_column___wlJ_z",wrap:"wrap___btDZi",card:"card___ynWkb",title:"title___ZK2i5",teacherWrap:"teacherWrap___mwbsp",titleCol:"titleCol___Yw1us",head:"head___Eh7hH",rowWrap:"rowWrap___iqlIh",row:"row___ysuMF",name:"name___Vp5LK",btns:"btns___TQ4qx"},B=n(84567),D=n(82982),F=n(25104),V=n(36579),Y=n(55733),G=n.n(Y),U=n(96486),q=(0,r.connect)((function(e){return{graduations:e.graduations}}))((function(e){var t,n=e.graduations,l=(e.dispatch,(0,r.useParams)()),o=(0,a.useState)(!0),s=p()(o,2),u=s[0],f=s[1],m=(0,a.useState)([{}]),_=p()(m,2),b=_[0],k=_[1],S=(0,a.useState)([{}]),N=p()(S,2),Z=N[0],E=N[1],C=(0,a.useState)([]),z=p()(C,2),$=z[0],P=z[1],R=(0,a.useState)([]),T=p()(R,2),M=T[0],O=T[1],H=(0,a.useState)(0),Y=p()(H,2),q=Y[0],J=Y[1],X=(0,a.useRef)(),K=n.menus,Q=n.details,ee=K.find((function(e){return"tasks"===e.clazz}))||{};(0,a.useEffect)((function(){null!=ee&&ee.id&&te()}),[null==ee?void 0:ee.id]);var te=function(){var e=d()(c()().mark((function e(){var t,n,a,r,i,o,s,u;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return f(!0),e.next=3,(0,y.ZP)("/api/graduations/".concat(l.id,"/graduation_stages/").concat(null==ee?void 0:ee.id,".json"),{method:"get"});case 3:0===(t=e.sent).status&&(k((null==t||null===(n=t.data)||void 0===n?void 0:n[0])||{}),P((null==t||null===(a=t.data)||void 0===a||null===(r=a[0])||void 0===r?void 0:r.attachments)||[]),u=0,(0,U.isEmpty)(null==t||null===(i=t.data)||void 0===i?void 0:i[0])?u=1:0===(null==t||null===(o=t.data)||void 0===o||null===(s=o[0])||void 0===s?void 0:s.status)&&(u=2),J(u)),f(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ne=function(e,t,n){var a=[];"all"===n&&e?a=$.map((function(e){return e.id})):"all"!==n&&(a=e?[].concat(W()(M),[t]):M.filter((function(e){return e!==t}))),O(a)},ae=function(){var e=d()(c()().mark((function e(t){var n;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("txt"!==t.file_type){e.next=5;break}return e.next=3,(0,y.ZP)(t.url,{method:"get",headers:{"Content-Type":"application/xml"}});case 3:n=e.sent,X.current=n;case 5:E({type:t.file_type,content:j.Z.API_SERVER+t.url});case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),re=function(){var e=d()(c()().mark((function e(t){var n,a,r,i,l,o,s,u,f,p,m=arguments;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=m.length>1&&void 0!==m[1]?m[1]:[],a=null==n?void 0:n.filter((function(e){return""!=e.url})),0!=a.length){e.next=5;break}return h.ZP.warning("暂无下载文件"),e.abrupt("return");case 5:if(r=w.Z.info({width:500,icon:null,title:(0,I.jsxs)("div",{children:["正在批量导出任务文件,",(0,I.jsx)("span",{className:"c-red",children:"请勿关闭或操作当前浏览器窗口"})]}),content:(0,I.jsxs)("div",{children:["当前进度: ",(0,I.jsx)("span",{className:"c-blue",children:0}),"/",a.length]}),maskClosable:!1,className:A.modal,onOk:function(){}}),i=new(G()),l=[],o=function(){var e=d()(c()().mark((function e(t,n){var o,s,u;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch(j.Z.API_SERVER+t.url,{method:"get"});case 3:return o=e.sent,e.next=6,o.blob();case 6:return s=e.sent,u=function(){var e=d()(c()().mark((function e(t){var n,a,r,o=arguments;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=o.length>1&&void 0!==o[1]?o[1]:0,(a=t.split(".")).pop(),r="".concat(a.join(""),"(").concat(n,").").concat(t.split(".").at(-1)),0==n&&l.includes(t)||l.includes(r)?u(t,n+1):(l.push(0==n?t:r),i.file(0==n?t:r,s));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),e.next=10,u(null==t?void 0:t.title);case 10:r.update({content:(0,I.jsxs)("div",{children:["当前进度: ",(0,I.jsx)("span",{className:"c-blue",children:n}),"/",a.length]})}),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(0),h.ZP.error("".concat(null==t?void 0:t.title,"下载失败,原因:").concat(e.t0));case 16:case"end":return e.stop()}}),e,null,[[0,13]])})));return function(t,n){return e.apply(this,arguments)}}(),!(a.length>0)){e.next=29;break}s=0,u=L()(a),e.prev=12,u.s();case 14:if((f=u.n()).done){e.next=20;break}return p=f.value,e.next=18,o(p,++s);case 18:e.next=14;break;case 20:e.next=25;break;case 22:e.prev=22,e.t0=e.catch(12),u.e(e.t0);case 25:return e.prev=25,u.f(),e.finish(25);case 28:i.generateAsync({type:"blob"}).then((function(e){(0,x.FH)(t,window.URL.createObjectURL(e))}));case 29:r.destroy();case 30:case"end":return e.stop()}}),e,null,[[12,22,25,28]])})));return function(t){return e.apply(this,arguments)}}();return console.log(Z,"previewData"),(0,I.jsxs)("div",{className:A.wrap,children:[(0,I.jsx)(F.Z,{title:"任务书",status:null==ee?void 0:ee.status,startAt:null==ee?void 0:ee.start_at,endAt:null==ee?void 0:ee.end_at}),(0,I.jsxs)(i.Z,{active:!0,loading:u,children:[!!q&&(0,I.jsx)(D.Z,{customText:1===q?"当前阶段暂时无法开启,请先完成之前阶段的任务":"当前老师还未下达任务书哦"}),!q&&(0,I.jsxs)("div",{className:A.card,children:[(0,I.jsxs)(g.Z,{align:"middle",children:[(0,I.jsx)("span",{style:{color:"#5f6368"},className:"mr20 font14",children:"课题名称"}),(0,I.jsx)(v.Z,{title:null==b?void 0:b.name,children:(0,I.jsx)("span",{style:{color:"#333",fontSize:16},children:(0,x.Pq)(null==b?void 0:b.name,59)})})]}),(0,I.jsxs)("div",{className:A.title,children:[(0,I.jsx)("span",{style:{flexShrink:0,marginTop:4,color:"#5f6368"},className:"mr20",children:"指导老师"}),(0,I.jsx)("div",{className:A.teacherWrap,children:null==b||null===(t=b.teachers)||void 0===t?void 0:t.map((function(e,t){return(0,I.jsxs)("div",{className:A.titleCol,children:[(0,I.jsx)("img",{width:28,height:28,style:{borderRadius:"50%"},src:"".concat(null===j.Z||void 0===j.Z?void 0:j.Z.IMG_SERVER,"/images/").concat(null==e?void 0:e.avatar_url)}),(0,I.jsx)("span",{className:"c-grey-333 ml10 font16",children:e.real_name})]},t)}))})]}),(0,I.jsxs)("div",{className:A.head,children:[(0,I.jsx)(B.Z,{onChange:function(e){return ne(e.target.checked,null,"all")},checked:!!M.length&&M.length===$.length,indeterminate:!!M.length&&M.length!==$.length}),(0,I.jsx)("span",{className:"ml10",children:"任务书"}),!(null==M||!M.length)&&(0,I.jsxs)("span",{onClick:function(){if(M.length){var e=$.filter((function(e){return M.includes(e.id)}));re((null==Q?void 0:Q.name)+"-任务书",e)}else h.ZP.warning("请选择文件")},style:{marginLeft:"auto"},className:"c-light-primary current",children:[(0,I.jsx)("i",{className:"iconfont icon-xiazai4 mr5 font14"}),"批量下载"]})]}),(0,I.jsx)("div",{className:A.rowWrap,children:null==$?void 0:$.map((function(e){return(0,I.jsxs)("div",{className:A.row,children:[(0,I.jsx)(B.Z,{onChange:function(t){return ne(t.target.checked,e.id)},checked:M.includes(e.id)}),(0,I.jsx)("span",{className:A.name,title:e.title,children:(0,x.tP)(e.title,60)}),(0,I.jsxs)("span",{className:A.btns,children:[(0,I.jsxs)(v.Z,{className:"mr20",title:"预览",children:[" ",(0,I.jsx)("i",{onClick:function(){return ae(e)},className:"iconfont icon-chakanshenqingjilu c-light-primary current font14"})]}),(0,I.jsxs)(v.Z,{title:"下载",children:[" ",(0,I.jsx)("i",{onClick:function(){var t;(0,x.Nd)("","".concat(j.Z.API_SERVER).concat(null===(t=e.url)||void 0===t?void 0:t.replace("disposition=inline","")))},className:"iconfont icon-xiazai4 c-light-primary current font14"})]})]})]},e.id)}))})]})]}),(0,I.jsx)(V.Z,{close:!0,data:null==Z?void 0:Z.content,type:null==Z?void 0:Z.type,hasMask:!0,monacoEditor:{value:X.current,language:"txt",onChange:function(){},options:{readOnly:!0,fontSize:14,minimap:{enabled:!1}}},onClose:function(){E({content:"",type:""})}})]})})),J=n(7),X=(0,r.connect)((function(e){return{loading:e.loading,graduations:e.graduations}}))((function(e){e.graduations,e.dispatch;var t=e.loading;return(0,I.jsx)(i.Z,{style:{margin:"20px 0 0 45px"},loading:t.effects["graduations/getGraduationsDetails"],children:(0,J.tu)()?(0,I.jsx)(M,{}):(0,I.jsx)(q,{})})}))},25104:function(e,t,n){n.d(t,{Z:function(){return d}});n(67294);var a="title___Ynb7w",r="time___dxFRB",i=n(94184),l=n.n(i),o=n(67617),s=n(27484),c=n.n(s),u=n(85893),d=function(e){var t=e.className,n=e.status,i=e.style,s=void 0===i?{}:i,d=e.startAt,f=e.endAt,p=e.title;return(0,u.jsxs)("div",{className:l()(a,t),style:s,children:[(0,u.jsx)("b",{children:p}),(0,u.jsx)(o.Z,{className:"ml10",status:n}),(0,u.jsxs)("span",{className:r,children:[(0,u.jsxs)("span",{children:["开启时间",(0,u.jsx)("span",{className:"ml10",children:d?c()(d).format("YYYY-MM-DD HH:mm"):"--"})]}),(0,u.jsxs)("span",{className:"ml30",children:["截止时间",(0,u.jsx)("span",{className:"ml10",children:f?c()(f).format("YYYY-MM-DD HH:mm"):"--"})]})]})]})}},67617:function(e,t,n){n.d(t,{Z:function(){return s}});var a=n(67294),r="tag___NEywM",i=n(94184),l=n.n(i),o=n(85893),s=function(e){var t=e.className,n=e.status;return(0,o.jsxs)(a.Fragment,{children:[0===n&&(0,o.jsx)("div",{className:l()(r,t),children:"未开始"}),1===n&&(0,o.jsx)("div",{className:l()(r,t),style:{background:"#19CB70"},children:"进行中"}),2===n&&(0,o.jsx)("div",{className:l()(r,t),style:{background:"#EE5D5D"},children:"已结束"})]})}},83280:function(e,t,n){n.d(t,{Z:function(){return b}});var a=n(42122),r=n.n(a),i=n(17061),l=n.n(i),o=n(17156),s=n.n(o),c=n(27424),u=n.n(c),d=n(67294),f="wrap____H2XH",p=n(88275),h=n(71230),m=n(76661),v=n(82749),g=n(25104),x=n(84519),_=n(43035),j=n(82982),y=n(29427),w=n(85893),b=(0,p.connect)((function(e){return{graduations:e.graduations}}))((function(e){var t,n,a,i=e.graduations,o=(e.dispatch,e.tags),c=e.tagsTitle,b=e.tagsTitleWidth,k=e.placeholder,S=e.columns,N=e.updateKey,Z=e.inputWidth,E=void 0===Z?214:Z,C=(0,p.useParams)(),z=(0,p.useSearchParams)(),$=u()(z,1)[0],P=(0,d.useState)(!1),R=u()(P,2),I=R[0],T=R[1],M=(0,d.useState)(0),O=u()(M,2),L=O[0],H=O[1],W=(0,d.useState)([]),A=u()(W,2),B=A[0],D=A[1],F=(0,d.useState)(!1),V=u()(F,2),Y=V[0],G=V[1],U=i.menus,q=null===(t=location.pathname.split("/"))||void 0===t?void 0:t[3],J=U.find((function(e){return e.clazz===q}))||{},X=U.find((function(e){return e.clazz===q}))||1,K=null!=$&&$.get("state")?Number(null==$?void 0:$.get("state")):"",Q=(0,d.useState)({keyword:"",status:K,page:1,limit:20}),ee=u()(Q,2),te=ee[0],ne=ee[1];(0,d.useEffect)((function(){null!=J&&J.id&&ae(te)}),[null==J?void 0:J.id,N]);var ae=function(){var e=s()(l()().mark((function e(t){var n;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return T(!0),e.next=3,(0,x.ZP)("/api/graduations/".concat(C.id,"/graduation_stages/").concat(null==J?void 0:J.id,".json"),{method:"get",params:t});case 3:0===(n=e.sent).status&&(D((null==n?void 0:n.data)||[]),H(null==n?void 0:n.total_count)),T(!1);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),re=[{name:"任务书",key:"tasks",notStartText:"当前阶段还未开启"},{name:"开题报告",key:"opening_report",notStartText:"当前阶段还未开启"},{name:"中期检查",key:"midterm_report",notStartText:"当前阶段还未开启"},{name:"毕业论文",key:"thesis",notStartText:"当前阶段还未开启"},{name:"毕业答辩",key:"final_defense",notStartText:"当前阶段还未开启"},{name:"论文定稿",key:"final_thesis",notStartText:"当前阶段还未开启"}],ie=null==re||null===(n=re.find((function(e){return e.key===(null==J?void 0:J.clazz)})))||void 0===n?void 0:n.notStartText;return(0,w.jsxs)("div",{className:f,children:[(0,w.jsx)(g.Z,{title:null==J?void 0:J.name,className:"mb10",status:null==J?void 0:J.status,startAt:null==J?void 0:J.start_at,endAt:null==J?void 0:J.end_at}),(0,w.jsxs)(h.Z,{align:"middle",justify:"end",style:{height:66},children:[!(null==J||!J.status)&&(0,w.jsxs)(h.Z,{align:"middle",style:{flex:1},children:[(0,w.jsx)(v.qp,{title:c,value:te.status,onChange:function(e){te.status=e,te.page=1,ne(te),ae(te)},dataSource:o,className:"mt20",titleWidth:b}),(0,w.jsx)(v.t7,{style:{width:E,marginLeft:"auto"},placeholder:k,value:te.keyword,onChange:function(e){te.keyword=e,te.page=1,ne(te),ae(te)}})]}),(0,y.QB)(null==J?void 0:J.next_start_at)&&(0,w.jsxs)(v.op,{style:{marginLeft:15},onClick:function(){return G(!0)},children:[(0,w.jsx)("i",{className:"iconfont icon-anquanshezhi font14 mr5"}),null==J?void 0:J.name,"设置"]})]}),0===(null==J?void 0:J.status)&&(0,w.jsx)(j.Z,{customText:ie}),!(null==J||!J.status)&&(0,w.jsx)(m.Z,{columns:S,dataSource:B,loading:I,rowKey:"id",locale:{emptyText:(0,w.jsx)(j.Z,{})},pagination:{current:te.page,hideOnSinglePage:!L,showQuickJumper:!0,showSizeChanger:!0,pageSize:te.limit,pageSizeOptions:["10","20","50","100","200"],total:L,size:"default",showTotal:y.rU,onChange:function(e,t){te.page=e,te.limit=t,ne(te),ae(te)}}}),(0,w.jsx)(_.Z,{visible:Y,data:r()(r()({},J),{},{disabled_time:null==U||null===(a=U[X-1])||void 0===a?void 0:a.end_at}),onClose:function(){return G(!1)},onSuccess:function(){G(!1)}})]})}))},96074:function(e,t,n){n.d(t,{Z:function(){return p}});var a=n(94184),r=n.n(a),i=n(67294),l=n(53124),o=n(14747),s=n(67968),c=n(45503);const u=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:a,lineWidth:r,textPaddingInline:i,orientationMargin:l,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},(0,o.Wf)(e)),{borderBlockStart:`${r}px solid ${a}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${r}px solid ${a}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-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 ${a}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${r}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:100*l+"%"},"&::after":{width:100-100*l+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*l+"%"},"&::after":{width:100*l+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:a,borderStyle:"dashed",borderWidth:`${r}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var d=(0,s.Z)("Divider",(e=>{const t=(0,c.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[u(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),f=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n};var p=e=>{const{getPrefixCls:t,direction:n,divider:a}=i.useContext(l.E_),{prefixCls:o,type:s="horizontal",orientation:c="center",orientationMargin:u,className:p,rootClassName:h,children:m,dashed:v,plain:g,style:x}=e,_=f(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),j=t("divider",o),[y,w]=d(j),b=c.length>0?`-${c}`:c,k=!!m,S="left"===c&&null!=u,N="right"===c&&null!=u,Z=r()(j,null==a?void 0:a.className,w,`${j}-${s}`,{[`${j}-with-text`]:k,[`${j}-with-text${b}`]:k,[`${j}-dashed`]:!!v,[`${j}-plain`]:!!g,[`${j}-rtl`]:"rtl"===n,[`${j}-no-default-orientation-margin-left`]:S,[`${j}-no-default-orientation-margin-right`]:N},p,h),E=i.useMemo((()=>"number"==typeof u?u:/^\d+$/.test(u)?Number(u):u),[u]),C=Object.assign(Object.assign({},S&&{marginLeft:E}),N&&{marginRight:E});return y(i.createElement("div",Object.assign({className:Z,style:Object.assign(Object.assign({},null==a?void 0:a.style),x)},_,{role:"separator"}),m&&"vertical"!==s&&i.createElement("span",{className:`${j}-inner-text`,style:C},m)))}},55054:function(e,t,n){n.d(t,{Z:function(){return y}});var a=n(67294),r=n(57838),i=n(96159),l=n(94184),o=n.n(l),s=n(53124),c=n(4310);var u=e=>{const{value:t,formatter:n,precision:r,decimalSeparator:i,groupSeparator:l="",prefixCls:o}=e;let s;if("function"==typeof n)s=n(t);else{const e=String(t),n=e.match(/^(-?)(\d*)(\.(\d+))?$/);if(n&&"-"!==e){const e=n[1];let t=n[2]||"0",c=n[4]||"";t=t.replace(/\B(?=(\d{3})+(?!\d))/g,l),"number"==typeof r&&(c=c.padEnd(r,"0").slice(0,r>0?r:0)),c&&(c=`${i}${c}`),s=[a.createElement("span",{key:"int",className:`${o}-content-value-int`},e,t),c&&a.createElement("span",{key:"decimal",className:`${o}-content-value-decimal`},c)]}else s=e}return a.createElement("span",{className:`${o}-content-value`},s)},d=n(14747),f=n(67968),p=n(45503);const h=e=>{const{componentCls:t,marginXXS:n,padding:a,colorTextDescription:r,titleFontSize:i,colorTextHeading:l,contentFontSize:o,fontFamily:s}=e;return{[`${t}`]:Object.assign(Object.assign({},(0,d.Wf)(e)),{[`${t}-title`]:{marginBottom:n,color:r,fontSize:i},[`${t}-skeleton`]:{paddingTop:a},[`${t}-content`]:{color:l,fontSize:o,fontFamily:s,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}})}};var m=(0,f.Z)("Statistic",(e=>{const t=(0,p.TS)(e,{});return[h(t)]}),(e=>{const{fontSizeHeading3:t,fontSize:n}=e;return{titleFontSize:n,contentFontSize:t}}));var v=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,valueStyle:l,value:d=0,title:f,valueRender:p,prefix:h,suffix:v,loading:g=!1,onMouseEnter:x,onMouseLeave:_,decimalSeparator:j=".",groupSeparator:y=","}=e,{getPrefixCls:w,direction:b,statistic:k}=a.useContext(s.E_),S=w("statistic",t),[N,Z]=m(S),E=a.createElement(u,Object.assign({decimalSeparator:j,groupSeparator:y,prefixCls:S},e,{value:d})),C=o()(S,{[`${S}-rtl`]:"rtl"===b},null==k?void 0:k.className,n,r,Z);return N(a.createElement("div",{className:C,style:Object.assign(Object.assign({},null==k?void 0:k.style),i),onMouseEnter:x,onMouseLeave:_},f&&a.createElement("div",{className:`${S}-title`},f),a.createElement(c.Z,{paragraph:!1,loading:g,className:`${S}-skeleton`},a.createElement("div",{style:l,className:`${S}-content`},h&&a.createElement("span",{className:`${S}-content-prefix`},h),p?p(E):E,v&&a.createElement("span",{className:`${S}-content-suffix`},v)))))};const g=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];function x(e,t){const{format:n=""}=t,a=new Date(e).getTime(),r=Date.now();return function(e,t){let n=e;const a=/\[[^\]]*]/g,r=(t.match(a)||[]).map((e=>e.slice(1,-1))),i=t.replace(a,"[]"),l=g.reduce(((e,t)=>{let[a,r]=t;if(e.includes(a)){const t=Math.floor(n/r);return n-=t*r,e.replace(new RegExp(`${a}+`,"g"),(e=>{const n=e.length;return t.toString().padStart(n,"0")}))}return e}),i);let o=0;return l.replace(a,(()=>{const e=r[o];return o+=1,e}))}(Math.max(a-r,0),n)}const _=e=>{const{value:t,format:n="HH:mm:ss",onChange:l,onFinish:o}=e,s=(0,r.Z)(),c=a.useRef(null),u=()=>{const e=function(e){return new Date(e).getTime()}(t);e>=Date.now()&&(c.current=setInterval((()=>{s(),null==l||l(e-Date.now()),e<Date.now()&&(null==o||o(),c.current&&(clearInterval(c.current),c.current=null))}),33.333333333333336))};a.useEffect((()=>(u(),()=>{c.current&&(clearInterval(c.current),c.current=null)})),[t]);return a.createElement(v,Object.assign({},e,{valueRender:e=>(0,i.Tm)(e,{title:void 0}),formatter:(e,t)=>x(e,Object.assign(Object.assign({},t),{format:n}))}))};var j=a.memo(_);v.Countdown=j;var y=v}}]);