import{d as u,ey as f,b as n,d2 as b,u as e,c as l,w as r,f as t,cy as g,e as y,v as h}from"./registerWidgets.d6e66474.js";import{T as v,_ as w,a as j}from"./UnsavedChangesHandler.vue_vue_type_script_setup_true_lang.7699558a.js";import{L as k}from"./CircularLoading.2744e4b0.js";import{a as B}from"./asyncComputed.5c362931.js";import{J as I}from"./jobs.b7c93ebe.js";import{_ as C}from"./SaveButton.vue_vue_type_script_setup_true_lang.ed344e02.js";import{B as S}from"./BackButton.000dfb31.js";import{S as x,R as E,L as J}from"./SmartConsole.85b38544.js";import{_ as D}from"./DocsButton.vue_vue_type_script_setup_true_lang.3de0e9fb.js";import{_ as L}from"./JobSettings.vue_vue_type_script_setup_true_lang.a6a7ad0d.js";import"./lottie.b059da2e.js";import"./activeRecord.1009e596.js";import"./pubsub.9e806cff.js";import"./forms.2e38c299.js";import"./dashes.811e4dd5.js";import"./index.977cda87.js";import"./hooks.a4b6e8df.js";import"./workspaces.5e4a741d.js";import"./icons.4be6cb33.js";import"./index.55d44a5a.js";import"./Title.dd14f24f.js";import"./transButton.63ba82b1.js";import"./uuid.baa8712a.js";import"./storage.d7eb729a.js";import"./dayjs.45d100a4.js";import"./index.3aa3e246.js";import"./Form.fafe4307.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]="856029fc-eda4-48cc-aa21-1812f1e514b4",s._sentryDebugIdIdentifier="sentry-dbid-856029fc-eda4-48cc-aa21-1812f1e514b4")}catch{}})();const R={class:"job-editor"},$={class:"settings"},T=u({__name:"JobEditor",setup(s){const a=f(),{result:o,loading:p}=B(()=>I.get(a.params.jobId)),i=J.create();async function _(){if(!o.value)return;const{stdout:d,stderr:m}=await o.value.test();i.log({type:"stdout",log:d}),i.log({type:"stderr",log:m})}return(d,m)=>{var c;return n(),b("div",R,[e(p)||!e(o)?(n(),l(k,{key:0})):(n(),l(v,{key:1},{left:r(()=>[t(S,{link:"/_editor/jobs"})]),right:r(()=>[t(e(g),null,{default:r(()=>[t(D,{path:"jobs"}),t(C,{model:e(o)},null,8,["model"])]),_:1})]),default:r(()=>[t(j,{title:"Settings"},{default:r(()=>[y("div",$,[t(E,{runtime:e(o)},null,8,["runtime"]),t(L,{style:{width:"100%",height:"100%"},job:e(o)},null,8,["job"])])]),_:1})]),_:1})),t(x,{"log-service":e(i),runtime:"jobs",onRestart:_},null,8,["log-service"]),t(w,{"has-changes":(c=e(o))==null?void 0:c.hasChanges()},null,8,["has-changes"])])}}});const mt=h(T,[["__scopeId","data-v-cbd8d573"]]);export{mt as default};
//# sourceMappingURL=JobEditor.a72e52ba.js.map
