var h=Object.defineProperty,S=Object.defineProperties;var C=Object.getOwnPropertyDescriptors;var s=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;var c=(t,i,e)=>i in t?h(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,m=(t,i)=>{for(var e in i||(i={}))L.call(i,e)&&c(t,e,i[e]);if(s)for(var e of s(i))f.call(i,e)&&c(t,e,i[e]);return t},l=(t,i)=>S(t,C(i));import{R as j,h as n,F as r,a3 as u,j as o,I as b,k as I}from"./vendor.e6eaca24.js";import{L as k}from"./LazyCodeEditor.3c6c290e.js";import{g as d,h as w,S as p}from"./index.e392a50c.js";import{C as g}from"./CodeLanguageAndOptions.9efb7ca8.js";import"./index.c6944236.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 z=j.memo(t=>{const i=d(t.judgeInfo,"timeLimit"),e=d(t.judgeInfo,"memoryLimit");return n(r,{children:[i&&n(u,{size:t.size,color:"pink",children:[o(b,{name:"clock"}),i+" ms"]}),e&&n(u,{size:t.size,color:"blue",children:[o(b,{name:"microchip"}),e+" MiB"]})]})});let a=t=>o(r,{children:o(p,l(m({},t),{showSkipSamples:t.judgeInfo.runSamples,mainContent:o(p.EditorWrapper,{children:o(k,{language:t.submissionContent.language,value:t.submissionContent.code,onChange:i=>t.onUpdateSubmissionContent("code",i)})}),sidebarContent:o(r,{children:o(g,m({objectPath:""},t))}),submitDisabled:!t.submissionContent.code}))});a=I(a);const et={Labels:z,SubmitView:a,getDefaultSubmissionContent:()=>Object.assign({code:""},g.getDefault()),isSubmittable:w,enableStatistics:()=>!0};export{et as default};
