import{d as f,ey as u,b as n,d2 as b,u as o,c as l,w as r,f as t,cy as g,e as y,v as h}from"./registerWidgets.e46eca28.js";import{T as v,_ as w,a as j}from"./UnsavedChangesHandler.vue_vue_type_script_setup_true_lang.27db324e.js";import{L as k}from"./CircularLoading.484aa2f6.js";import{a as B}from"./asyncComputed.15fd30e0.js";import{J as I}from"./jobs.08d5f9ac.js";import{_ as C}from"./SaveButton.vue_vue_type_script_setup_true_lang.0cecc98a.js";import{B as S}from"./BackButton.ff29c188.js";import{S as x,R as E,L as J}from"./SmartConsole.13554642.js";import{_ as D}from"./DocsButton.vue_vue_type_script_setup_true_lang.b60f35ac.js";import{_ as L}from"./JobSettings.vue_vue_type_script_setup_true_lang.f1dc0d1b.js";import"./lottie.2b81658b.js";import"./activeRecord.d83b1b14.js";import"./pubsub.8f2ecd1e.js";import"./forms.e1efaa71.js";import"./dashes.668993c6.js";import"./index.2ced575c.js";import"./hooks.a12c1aa6.js";import"./workspaces.5c5c851b.js";import"./icons.db549bc5.js";import"./index.00020abd.js";import"./Title.6ee361e2.js";import"./transButton.6834f8a3.js";import"./uuid.241470e3.js";import"./storage.f303ee10.js";import"./dayjs.860058b8.js";import"./index.3579f3be.js";import"./Form.6fcc3ee8.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[a]="15fec907-2a3b-49a8-90fa-f73d8feb09e5",s._sentryDebugIdIdentifier="sentry-dbid-15fec907-2a3b-49a8-90fa-f73d8feb09e5")}catch{}})();const R={class:"job-editor"},$={class:"settings"},T=f({__name:"JobEditor",setup(s){const a=u(),{result:e,loading:p}=B(()=>I.get(a.params.jobId)),i=J.create();async function _(){if(!e.value)return;const{stdout:d,stderr:m}=await e.value.test();i.log({type:"stdout",log:d}),i.log({type:"stderr",log:m})}return(d,m)=>{var c;return n(),b("div",R,[o(p)||!o(e)?(n(),l(k,{key:0})):(n(),l(v,{key:1},{left:r(()=>[t(S,{link:"/_editor/jobs"})]),right:r(()=>[t(o(g),null,{default:r(()=>[t(D,{path:"jobs"}),t(C,{model:o(e)},null,8,["model"])]),_:1})]),default:r(()=>[t(j,{title:"Settings"},{default:r(()=>[y("div",$,[t(E,{runtime:o(e)},null,8,["runtime"]),t(L,{style:{width:"100%",height:"100%"},job:o(e)},null,8,["job"])])]),_:1})]),_:1})),t(x,{"log-service":o(i),runtime:"jobs",onRestart:_},null,8,["log-service"]),t(w,{"has-changes":(c=o(e))==null?void 0:c.hasChanges()},null,8,["has-changes"])])}}});const mt=h(T,[["__scopeId","data-v-cbd8d573"]]);export{mt as default};
//# sourceMappingURL=JobEditor.c809725f.js.map
