var L=Object.defineProperty,S=Object.defineProperties;var C=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable;var f=(e,i,o)=>i in e?L(e,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[i]=o,m=(e,i)=>{for(var o in i||(i={}))j.call(i,o)&&f(e,o,i[o]);if(b)for(var o of b(i))z.call(i,o)&&f(e,o,i[o]);return e},h=(e,i)=>S(e,C(i));import{R as N,h as n,F as c,a3 as a,j as t,I as l,Z as w,k as _}from"./vendor.e6eaca24.js";import{u as y}from"./index.c6944236.js";import{L as k}from"./LazyCodeEditor.3c6c290e.js";import{g,h as v,S as p}from"./index.e392a50c.js";import{C as I}from"./CodeLanguageAndOptions.9efb7ca8.js";import"./StatusText.c4c8fc8c.js";import"./ScoreText.136453e4.js";import"./ProblemViewPage.cfb5f42b.js";import"./index.b18eeccd.js";import"./useDialog.e491a615.js";import"./useAsyncCallbackPending.bf7bbf90.js";import"./useRecaptcha.217097ff.js";import"./copyToClipboard.f94d8929.js";import"./validators.ad4c624c.js";import"./LazyPermissionManager.4e5d6942.js";import"./problemTag.257d3b19.js";import"./ProblemType.f584dacb.js";import"./MarkdownContent.1e1566a9.js";import"./v4.90f1a8cc.js";import"./CodeBox.16e9a888.js";import"./ProblemFilesPage.71a16d7d.js";import"./getFileIcon.c80d5d84.js";import"./formatFileSize.22c4f2a5.js";import"./downloadFile.5d04037d.js";import"./utils.47c10adb.js";import"./onEnterPress.b56e5f51.js";import"./lodash.default.91c04a21.js";import"./CodeLanguage.24acdb11.js";import"./CodeLanguageAndOptions.76c2a300.js";const x="_fileIo_1towx_1",F="_fileIoName_1towx_4";var s={fileIo:x,fileIoName:F};const P=N.memo(e=>{const i=y("problem"),o=g(e.judgeInfo,"timeLimit"),u=g(e.judgeInfo,"memoryLimit"),r=e.judgeInfo&&e.judgeInfo.fileIo;return n(c,{children:[o&&n(a,{size:e.size,color:"pink",children:[t(l,{name:"clock"}),o+" ms"]}),u&&n(a,{size:e.size,color:"blue",children:[t(l,{name:"microchip"}),u+" MiB"]}),r&&t(w,{trigger:n(a,{size:e.size,color:"orange",children:[t(l,{name:"file"}),i(".fileio.fileio")]}),content:t("table",{className:s.fileIo,children:n("tbody",{children:[n("tr",{children:[t("td",{align:"right",className:s.fileIoName,children:t("strong",{children:i(".fileio.input")})}),t("td",{children:r.inputFilename})]}),n("tr",{children:[t("td",{align:"right",className:s.fileIoName,children:t("strong",{children:i(".fileio.output")})}),t("td",{children:r.outputFilename})]})]})}),hoverable:!0,on:"hover",position:"bottom center"})]})});let d=e=>t(c,{children:t(p,h(m({},e),{showSkipSamples:e.judgeInfo.runSamples,mainContent:t(p.EditorWrapper,{children:t(k,{language:e.submissionContent.language,value:e.submissionContent.code,onChange:i=>e.onUpdateSubmissionContent("code",i)})}),sidebarContent:t(c,{children:t(I,m({objectPath:""},e))}),submitDisabled:!e.submissionContent.code}))});d=_(d);const se={Labels:P,SubmitView:d,getDefaultSubmissionContent:()=>Object.assign({code:""},I.getDefault()),isSubmittable:v,enableStatistics:()=>!0};export{se as default};
