import{d as g,ey as v,ez as k,r as b,b as r,c as s,w as a,u as e,f as n,ev as m}from"./outputWidgets.1739e6b5.js";import{_ as j,S as w,L as x}from"./Debugger.vue_vue_type_script_setup_true_lang.8a10c449.js";import{a as I}from"./asyncComputed.b4d87a94.js";import{J as B}from"./jobs.7d056170.js";import{_ as C}from"./SaveButton.vue_vue_type_script_setup_true_lang.70064dca.js";import{_ as S}from"./DocsButton.vue_vue_type_script_setup_true_lang.c5192ab8.js";import{B as T}from"./BaseLayout.afdc77f1.js";import{_ as $,a as D}from"./JobSettings.vue_vue_type_script_setup_true_lang.33d428a7.js";import{c as R}from"./index.ef7ab7ff.js";import{A as _,T as A}from"./TabPane.80dc2dd6.js";import"./forms.109d1b54.js";import"./activeRecord.55a23e4a.js";import"./pubsub.e4395938.js";import"./dashes.3d94d969.js";import"./runnerData.f7d9251a.js";import"./hooks.877c6925.js";import"./workspaces.cad93b01.js";import"./url.8bddfe76.js";import"./icons.1c3e2bde.js";import"./Title.1261c75a.js";import"./index.8b3d4030.js";import"./uuid.5051bed8.js";import"./Text.f4c0ef3e.js";import"./index.fbff59b3.js";import"./ant-design.6ecbca2a.js";import"./RunButton.vue_vue_type_script_setup_true_lang.c6e02b30.js";import"./index.f2a60ef5.js";import"./index.366cf7e1.js";import"./dayjs.0f835e5e.js";import"./Form.6a4829ad.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},p=new Error().stack;p&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[p]="7b20b42f-e49a-4975-8966-d67e055a1d32",i._sentryDebugIdIdentifier="sentry-dbid-7b20b42f-e49a-4975-8966-d67e055a1d32")}catch{}})();const ue=g({__name:"JobEditor",setup(i){const p=v(),l=k(),f=b(null),o=b("test");function y(){p.push({name:"jobs"})}const{result:t}=I(()=>B.get(l.params.jobId)),c=x.create();return(J,d)=>(r(),s(T,null,{navbar:a(()=>[e(t)?(r(),s(e(R),{key:0,title:e(t).title,style:{padding:"5px 10px"},onBack:y},{footer:a(()=>[n(e(A),{"active-key":o.value,"onUpdate:activeKey":d[0]||(d[0]=u=>o.value=u)},{default:a(()=>[n(e(_),{key:"test",tab:"Test"}),n(e(_),{key:"settings",tab:"Settings"})]),_:1},8,["active-key"])]),extra:a(()=>[n(j),n(S),o.value==="settings"?(r(),s(C,{key:0,model:e(t)},null,8,["model"])):m("",!0)]),_:1},8,["title"])):m("",!0)]),content:a(()=>[e(t)&&o.value==="test"?(r(),s($,{key:0,ref_key:"tester",ref:f,job:e(t),"log-service":e(c)},null,8,["job","log-service"])):m("",!0),e(t)&&o.value==="settings"?(r(),s(D,{key:1,job:e(t)},null,8,["job"])):m("",!0)]),footer:a(()=>{var u;return[e(t)&&o.value==="test"?(r(),s(w,{key:0,runtime:"forms","log-service":e(c),onRestart:(u=f.value)==null?void 0:u.test},null,8,["log-service","onRestart"])):m("",!0)]}),_:1}))}});export{ue as default};
//# sourceMappingURL=JobEditor.9fd61a3e.js.map
