import{d as g,ey as v,ez as k,r as b,b as r,c as s,w as a,u as e,f as u,ev as n}from"./outputWidgets.d5738148.js";import{S as j,L as w}from"./SmartConsole.52e656a6.js";import{a as x}from"./asyncComputed.5b25749a.js";import{J as I}from"./jobs.a31f38f7.js";import{_ as B}from"./SaveButton.vue_vue_type_script_setup_true_lang.4babfe01.js";import{_ as C}from"./DocsButton.vue_vue_type_script_setup_true_lang.1e4e7f85.js";import{B as S}from"./BaseLayout.f9b3a861.js";import{_ as T,a as D}from"./JobSettings.vue_vue_type_script_setup_true_lang.d3413529.js";import{c as R}from"./index.78151aa2.js";import{A as _,T as $}from"./TabPane.ee7b48d1.js";import"./forms.e581133c.js";import"./activeRecord.bb15dfc5.js";import"./pubsub.601f5d35.js";import"./dashes.2209d5c8.js";import"./runnerData.25a438f3.js";import"./hooks.52b998fc.js";import"./workspaces.18bd05b5.js";import"./url.d1f492ee.js";import"./icons.fc57d5d6.js";import"./Title.69748959.js";import"./index.2791d1cb.js";import"./uuid.9ae4bd37.js";import"./ant-design.5238fdc0.js";import"./RunButton.vue_vue_type_script_setup_true_lang.2687a304.js";import"./index.85f080a9.js";import"./index.f9a2f10c.js";import"./dayjs.8c779a9e.js";import"./Form.45dee1c8.js";import"./index.ffe76733.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},m=new Error().stack;m&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[m]="79656f1b-1261-496f-b577-5944533f27c8",i._sentryDebugIdIdentifier="sentry-dbid-79656f1b-1261-496f-b577-5944533f27c8")}catch{}})();const me=g({__name:"JobEditor",setup(i){const m=v(),l=k(),f=b(null),o=b("test");function y(){m.push({name:"jobs"})}const{result:t}=x(()=>I.get(l.params.jobId)),c=w.create();return(A,d)=>(r(),s(S,null,{navbar:a(()=>[e(t)?(r(),s(e(R),{key:0,title:e(t).title,style:{padding:"5px 10px"},onBack:y},{footer:a(()=>[u(e($),{"active-key":o.value,"onUpdate:activeKey":d[0]||(d[0]=p=>o.value=p)},{default:a(()=>[u(e(_),{key:"test",tab:"Test"}),u(e(_),{key:"settings",tab:"Settings"})]),_:1},8,["active-key"])]),extra:a(()=>[u(C),o.value==="settings"?(r(),s(B,{key:0,model:e(t)},null,8,["model"])):n("",!0)]),_:1},8,["title"])):n("",!0)]),content:a(()=>[e(t)&&o.value==="test"?(r(),s(T,{key:0,ref_key:"tester",ref:f,job:e(t),"log-service":e(c)},null,8,["job","log-service"])):n("",!0),e(t)&&o.value==="settings"?(r(),s(D,{key:1,job:e(t)},null,8,["job"])):n("",!0)]),footer:a(()=>{var p;return[e(t)&&o.value==="test"?(r(),s(j,{key:0,runtime:"forms","log-service":e(c),onRestart:(p=f.value)==null?void 0:p.test},null,8,["log-service","onRestart"])):n("",!0)]}),_:1}))}});export{me as default};
//# sourceMappingURL=JobEditor.168d58b0.js.map
