import{d as g,ez as v,eA as k,r as b,b as r,c as s,w as a,u as e,f as u,ew as i}from"./outputWidgets.b43a489b.js";import{S as w,L as j}from"./SmartConsole.5df8d8f1.js";import{a as I}from"./asyncComputed.a42e75bb.js";import{J as B}from"./jobs.a52f7106.js";import{_ as C}from"./SaveButton.vue_vue_type_script_setup_true_lang.3c7b2774.js";import{_ as S}from"./DocsButton.vue_vue_type_script_setup_true_lang.e267e7a4.js";import{B as T}from"./BaseLayout.87d1e05b.js";import{_ as x,a as A}from"./JobSettings.vue_vue_type_script_setup_true_lang.24fc6d9c.js";import{c as D}from"./index.523f4a12.js";import{A as _,T as R}from"./TabPane.b49c19a0.js";import"./forms.83be8c86.js";import"./activeRecord.2bc5cc59.js";import"./pubsub.6fd47a9d.js";import"./dashes.952e2e3f.js";import"./index.42b92ee8.js";import"./hooks.18db1931.js";import"./workspaces.eecbf708.js";import"./icons.de9af46a.js";import"./Title.47040052.js";import"./index.8a60ee51.js";import"./uuid.3c022812.js";import"./ant-design.dc7acb1e.js";import"./RunButton.vue_vue_type_script_setup_true_lang.6ccefb0d.js";import"./dayjs.caeff4fe.js";import"./index.0279b5ff.js";import"./Form.1797df89.js";import"./index.65dea612.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},m=new Error().stack;m&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[m]="f37bd844-d0af-44ae-be78-61ff43e96d38",n._sentryDebugIdIdentifier="sentry-dbid-f37bd844-d0af-44ae-be78-61ff43e96d38")}catch{}})();const ne=g({__name:"JobEditor",setup(n){const m=v(),l=k(),p=b(null),o=b("test");function y(){m.push({name:"jobs"})}const{result:t}=I(()=>B.get(l.params.jobId)),c=j.create();return($,d)=>(r(),s(T,null,{navbar:a(()=>[e(t)?(r(),s(e(D),{key:0,title:e(t).title,onBack:y},{footer:a(()=>[u(e(R),{"active-key":o.value,"onUpdate:activeKey":d[0]||(d[0]=f=>o.value=f)},{default:a(()=>[u(e(_),{key:"test",tab:"Test"}),u(e(_),{key:"settings",tab:"Settings"})]),_:1},8,["active-key"])]),extra:a(()=>[u(S),o.value==="settings"?(r(),s(C,{key:0,model:e(t)},null,8,["model"])):i("",!0)]),_:1},8,["title"])):i("",!0)]),content:a(()=>[e(t)&&o.value==="test"?(r(),s(x,{key:0,ref_key:"tester",ref:p,job:e(t),"log-service":e(c)},null,8,["job","log-service"])):i("",!0),e(t)&&o.value==="settings"?(r(),s(A,{key:1,job:e(t)},null,8,["job"])):i("",!0)]),footer:a(()=>{var f;return[e(t)&&o.value==="test"?(r(),s(w,{key:0,runtime:"forms","log-service":e(c),onRestart:(f=p.value)==null?void 0:f.test},null,8,["log-service","onRestart"])):i("",!0)]}),_:1}))}});export{ne as default};
//# sourceMappingURL=JobEditor.987e1589.js.map
