import{k as u,j as i,a1 as d}from"./vendor.e6eaca24.js";import{o as m}from"./ProblemViewPage.cfb5f42b.js";import{u as r}from"./index.c6944236.js";import{g as s,a as p}from"./CodeLanguage.24acdb11.js";import{C as l}from"./CodeLanguageAndOptions.76c2a300.js";let o=n=>{r("problem");const t=m.get(n.submissionContent,n.objectPath);function a(e,g){n.onUpdateSubmissionContent(n.objectPath?n.objectPath+"."+e:e,g)}return i(d,{children:i(l,{pending:n.pendingSubmit,language:t.language,compileAndRunOptions:t.compileAndRunOptions,onUpdateLanguage:e=>a("language",e),onUpdateCompileAndRunOptions:e=>a("compileAndRunOptions",e)})})};o=u(o);var A=Object.assign(o,{getDefault:()=>({language:s(),code:"",compileAndRunOptions:p(s())})});export{A as C};
