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 n}from"./outputWidgets.65926c1d.js";import{S as w,L as j}from"./SmartConsole.fd1185cf.js";import{a as x}from"./asyncComputed.4723d9b8.js";import{J as I}from"./jobs.4fb3de9f.js";import{_ as B}from"./SaveButton.vue_vue_type_script_setup_true_lang.640515bd.js";import{_ as C}from"./DocsButton.vue_vue_type_script_setup_true_lang.ecd1b9ae.js";import{B as S}from"./BaseLayout.7f35e98f.js";import{_ as T,a as A}from"./JobSettings.vue_vue_type_script_setup_true_lang.f87609a6.js";import{c as D}from"./index.205aa6f9.js";import{A as _,T as R}from"./TabPane.844c7fcb.js";import"./forms.06ee06be.js";import"./activeRecord.994400e6.js";import"./pubsub.dc5bec39.js";import"./dashes.5b745c3f.js";import"./index.553ada1f.js";import"./hooks.4d601fd1.js";import"./workspaces.d75870ed.js";import"./url.bc2b44ba.js";import"./icons.da7d27cd.js";import"./Title.2cced18a.js";import"./index.006c6212.js";import"./uuid.d95c8d0f.js";import"./ant-design.14676eb3.js";import"./RunButton.vue_vue_type_script_setup_true_lang.e3f0b122.js";import"./index.db5ce87a.js";import"./index.0312767e.js";import"./dayjs.71c0f113.js";import"./Form.47548ee6.js";import"./index.1bb9605d.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]="7df9285a-65c8-4834-bd66-c6d7481e6ce5",i._sentryDebugIdIdentifier="sentry-dbid-7df9285a-65c8-4834-bd66-c6d7481e6ce5")}catch{}})();const me=g({__name:"JobEditor",setup(i){const m=v(),c=k(),l=b(null),o=b("test");function y(){m.push({name:"jobs"})}const{result:t}=x(()=>I.get(c.params.jobId)),f=j.create();return($,d)=>(r(),s(S,null,{navbar:a(()=>[e(t)?(r(),s(e(D),{key:0,title:e(t).title,style:{padding:"5px 10px"},onBack:y},{footer:a(()=>[u(e(R),{"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:l,job:e(t),"log-service":e(f)},null,8,["job","log-service"])):n("",!0),e(t)&&o.value==="settings"?(r(),s(A,{key:1,job:e(t)},null,8,["job"])):n("",!0)]),footer:a(()=>{var p;return[e(t)&&o.value==="test"?(r(),s(w,{key:0,runtime:"forms","log-service":e(f),onRestart:(p=l.value)==null?void 0:p.test},null,8,["log-service","onRestart"])):n("",!0)]}),_:1}))}});export{me as default};
//# sourceMappingURL=JobEditor.f09baecf.js.map
