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 l,ew as i}from"./outputWidgets.52de64cd.js";import{S as w,L as j}from"./SmartConsole.9babf82e.js";import{a as I}from"./asyncComputed.00e76dd1.js";import{J as B}from"./jobs.4df37514.js";import{_ as C}from"./SaveButton.vue_vue_type_script_setup_true_lang.50c1fabc.js";import{_ as S}from"./DocsButton.vue_vue_type_script_setup_true_lang.5f9b00a2.js";import{B as T}from"./BaseLayout.c2f90625.js";import{_ as x,a as A}from"./JobSettings.vue_vue_type_script_setup_true_lang.8aaa714f.js";import{c as D}from"./index.7800af0b.js";import{A as _,T as R}from"./TabPane.c3c2f5a1.js";import"./forms.a88741b7.js";import"./activeRecord.ebcbfc07.js";import"./pubsub.6e9aa6f2.js";import"./dashes.9265143d.js";import"./index.a07ffcc5.js";import"./hooks.50fa5e89.js";import"./workspaces.bfe7b570.js";import"./icons.bf6505eb.js";import"./Title.baba2b21.js";import"./index.5a37ef67.js";import"./uuid.0840f7c5.js";import"./ant-design.20ade584.js";import"./dayjs.7ad6aa6d.js";import"./index.5718341d.js";import"./Form.09072055.js";import"./index.c0e74c90.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]="462cd2eb-b745-4653-972e-25e73eaad8da",n._sentryDebugIdIdentifier="sentry-dbid-462cd2eb-b745-4653-972e-25e73eaad8da")}catch{}})();const ae=g({__name:"JobEditor",setup(n){const m=v(),c=k(),p=b(null),o=b("test");function y(){m.push({name:"jobs"})}const{result:t}=I(()=>B.get(c.params.jobId)),f=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(()=>[l(e(R),{"active-key":o.value,"onUpdate:activeKey":d[0]||(d[0]=u=>o.value=u)},{default:a(()=>[l(e(_),{key:"test",tab:"Test"}),l(e(_),{key:"settings",tab:"Settings"})]),_:1},8,["active-key"])]),extra:a(()=>[l(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(f)},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 u;return[e(t)&&o.value==="test"?(r(),s(w,{key:0,runtime:"forms","log-service":e(f),onRestart:(u=p.value)==null?void 0:u.test},null,8,["log-service","onRestart"])):i("",!0)]}),_:1}))}});export{ae as default};
//# sourceMappingURL=JobEditor.70afa6b1.js.map
