(self["webpackJsonp@lyrio/ui"]=self["webpackJsonp@lyrio/ui"]||[]).push([[76],{904:function(s,i,t){"use strict";var e=t(1),n=(t(0),t(601)),a=t(1807),c=t(618),r=t(1803),o=t(55),l=t(1648),u=t.n(l),b=t(22),m=t(721),d=t(861),j=function(s){var i=Object(b.i)("problem");return Object(e.jsxs)("div",{className:u.a.submitView,style:{display:s.inSubmitView?null:"none"},children:[Object(e.jsx)("div",{className:u.a.leftContainer,children:s.mainContent}),Object(e.jsxs)("div",{className:u.a.rightContainer,children:[Object(e.jsxs)(n.a,{pointing:!0,secondary:!0,vertical:!0,className:u.a.actionMenu,children:[Object(e.jsx)(n.a.Item,{name:i(".submit.back_to_statement"),icon:"arrow left",onClick:s.onCloseSubmitView}),Object(e.jsx)("div",{})]}),s.sidebarContent,s.showSkipSamples&&Object(e.jsx)(a.a,{className:u.a.skipSamples,label:i(".submit.skip_samples"),checked:s.submissionContent.skipSamples,onChange:function(i,t){var e=t.checked;return s.onUpdateSubmissionContent("skipSamples",e)}}),Object(e.jsx)(c.a,{className:u.a.submitButton,primary:!0,fluid:!0,icon:"paper plane",loading:s.pendingSubmit,disabled:s.submitDisabled,content:i(".submit.submit"),onClick:function(){return s.onSubmit(s.onGetSubmitFile)}}),s.lastSubmission&&s.lastSubmission.lastSubmission&&Object(e.jsxs)("div",{className:u.a.lastSubmission,children:[Object(e.jsx)(r.a,{size:"tiny",content:i(".submit.last_submission")}),Object(e.jsx)(b.a,{href:"/s/".concat(s.lastSubmission.lastSubmission.id),children:Object(e.jsx)(m.b,{status:s.lastSubmission.lastSubmission.status})}),Object(e.jsx)(b.a,{className:u.a.scoreText,href:"/s/".concat(s.lastSubmission.lastSubmission.id),children:Object(e.jsx)(d.a,{score:s.lastSubmission.lastSubmission.score||0})})]})]})]})};j=Object(o.a)(j);i.a=Object.assign(j,{EditorWrapper:function(s){return Object(e.jsx)("div",{className:u.a.editorWrapper+(s.disabled?" "+u.a.disabled:""),children:s.children})}})},905:function(s,i,t){"use strict";t.d(i,"a",(function(){return n})),t.d(i,"b",(function(){return a}));var e=t(622);function n(s,i){var t,n=function(s){return Number.isSafeInteger(s)&&s>=0},a=n(s[i])?s[i]:1/0,c=1/0,r=-1/0,o=Object(e.a)(s.subtasks||[]);try{for(o.s();!(t=o.n()).done;){var l,u=t.value,b=n(u[i])?u[i]:a,m=Object(e.a)(u.testcases||[]);try{for(m.s();!(l=m.n()).done;){var d=l.value,j=n(d[i])?d[i]:b;0!==j&&(c=Math.min(c,j),r=Math.max(r,j))}}catch(p){m.e(p)}finally{m.f()}}}catch(p){o.e(p)}finally{o.f()}return Number.isFinite(c)?c===r?c.toString():c+" - "+r:null}function a(s){return Array.isArray(null===s||void 0===s?void 0:s.subtasks)&&s.subtasks.some((function(s){return Array.isArray(null===s||void 0===s?void 0:s.testcases)&&(null===s||void 0===s?void 0:s.testcases.length)>0}))}}}]);
//# sourceMappingURL=76.76e180b0.chunk.js.map