import{d as g,ez as v,eA as k,r as b,b as r,c as a,w as s,u as e,f as u,ew as i}from"./outputWidgets.eddbac36.js";import{S as w,L as j}from"./SmartConsole.41c65287.js";import{a as I}from"./asyncComputed.fbd351ba.js";import{J as B}from"./jobs.ee7e6eb2.js";import{_ as C}from"./SaveButton.vue_vue_type_script_setup_true_lang.f7559256.js";import{_ as S}from"./DocsButton.vue_vue_type_script_setup_true_lang.24b9d7bf.js";import{B as T}from"./BaseLayout.bab34813.js";import{_ as x,a as A}from"./JobSettings.vue_vue_type_script_setup_true_lang.a2374888.js";import{c as D}from"./index.1a0ec4ff.js";import{A as _,T as R}from"./TabPane.05333dfb.js";import"./forms.4b8bb1c1.js";import"./activeRecord.64b754df.js";import"./pubsub.9aea5614.js";import"./dashes.f8c3da60.js";import"./index.cc18f239.js";import"./hooks.7f3d2eee.js";import"./workspaces.54224ba5.js";import"./icons.08aaa24c.js";import"./Title.7ca27be1.js";import"./index.3475d619.js";import"./uuid.a7963699.js";import"./ant-design.109b29f5.js";import"./dayjs.d80a3524.js";import"./index.8318ec36.js";import"./Form.f5163eed.js";import"./index.31447910.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]="dafca9cb-8815-4915-ac8c-965d8e0ec12a",n._sentryDebugIdIdentifier="sentry-dbid-dafca9cb-8815-4915-ac8c-965d8e0ec12a")}catch{}})();const se=g({__name:"JobEditor",setup(n){const m=v(),l=k(),f=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(),a(T,null,{navbar:s(()=>[e(t)?(r(),a(e(D),{key:0,title:e(t).title,onBack:y},{footer:s(()=>[u(e(R),{"active-key":o.value,"onUpdate:activeKey":d[0]||(d[0]=c=>o.value=c)},{default:s(()=>[u(e(_),{key:"test",tab:"Test"}),u(e(_),{key:"settings",tab:"Settings"})]),_:1},8,["active-key"])]),extra:s(()=>[u(S),o.value==="settings"?(r(),a(C,{key:0,model:e(t)},null,8,["model"])):i("",!0)]),_:1},8,["title"])):i("",!0)]),content:s(()=>[e(t)&&o.value==="test"?(r(),a(x,{key:0,ref_key:"tester",ref:f,job:e(t),"log-service":e(p)},null,8,["job","log-service"])):i("",!0),e(t)&&o.value==="settings"?(r(),a(A,{key:1,job:e(t)},null,8,["job"])):i("",!0)]),footer:s(()=>{var c;return[e(t)&&o.value==="test"?(r(),a(w,{key:0,runtime:"forms","log-service":e(p),onRestart:(c=f.value)==null?void 0:c.test},null,8,["log-service","onRestart"])):i("",!0)]}),_:1}))}});export{se as default};
//# sourceMappingURL=JobEditor.5ea48cfa.js.map
