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.17392370.js";import{S as w,L as j}from"./SmartConsole.995c5bb7.js";import{a as I}from"./asyncComputed.76849272.js";import{J as B}from"./jobs.205fd41b.js";import{_ as C}from"./SaveButton.vue_vue_type_script_setup_true_lang.26c691c2.js";import{_ as S}from"./DocsButton.vue_vue_type_script_setup_true_lang.84611838.js";import{B as T}from"./BaseLayout.b515a973.js";import{_ as x,a as A}from"./JobSettings.vue_vue_type_script_setup_true_lang.5f094b13.js";import{c as D}from"./index.2e2d3a0a.js";import{A as _,T as R}from"./TabPane.25e9ccd4.js";import"./forms.cc7f6703.js";import"./activeRecord.84b679f6.js";import"./pubsub.fc739490.js";import"./dashes.5976f8f5.js";import"./index.7c30bb7a.js";import"./hooks.5364daac.js";import"./workspaces.9a283772.js";import"./icons.baa5f07a.js";import"./Title.bc3ff086.js";import"./index.8c91651f.js";import"./uuid.339b60bd.js";import"./ant-design.9c3ff8a2.js";import"./RunButton.vue_vue_type_script_setup_true_lang.0c62ce3b.js";import"./dayjs.05e1ae11.js";import"./index.56ff0f0c.js";import"./Form.e398e550.js";import"./index.ba0ff767.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]="5c8745db-daeb-4ef6-b0b2-fff1a3713840",n._sentryDebugIdIdentifier="sentry-dbid-5c8745db-daeb-4ef6-b0b2-fff1a3713840")}catch{}})();const ne=g({__name:"JobEditor",setup(n){const m=v(),l=k(),c=b(null),o=b("test");function y(){m.push({name:"jobs"})}const{result:t}=I(()=>B.get(l.params.jobId)),p=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:c,job:e(t),"log-service":e(p)},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(p),onRestart:(f=c.value)==null?void 0:f.test},null,8,["log-service","onRestart"])):i("",!0)]}),_:1}))}});export{ne as default};
//# sourceMappingURL=JobEditor.e16c0e0a.js.map
