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 p,ev as n}from"./outputWidgets.8a1294ac.js";import{S as j,L as w}from"./SmartConsole.c8a83b1e.js";import{a as x}from"./asyncComputed.3699cd44.js";import{J as I}from"./jobs.72cd80f9.js";import{_ as B}from"./SaveButton.vue_vue_type_script_setup_true_lang.e71a8bc9.js";import{_ as C}from"./DocsButton.vue_vue_type_script_setup_true_lang.417f95a4.js";import{B as S}from"./BaseLayout.5edfc1d1.js";import{_ as T,a as D}from"./JobSettings.vue_vue_type_script_setup_true_lang.799290ca.js";import{c as R}from"./index.d1c22e15.js";import{A as _,T as $}from"./TabPane.50d60f15.js";import"./forms.66c73721.js";import"./activeRecord.4f50a80e.js";import"./pubsub.5ff7800d.js";import"./dashes.20f3fde0.js";import"./runnerData.9cd8b9cf.js";import"./hooks.e742fa23.js";import"./workspaces.744a8260.js";import"./url.9a5c0e6d.js";import"./icons.25b21aee.js";import"./Title.c5e29cf7.js";import"./index.91683b65.js";import"./uuid.a09f1b9a.js";import"./ant-design.8f569ff8.js";import"./RunButton.vue_vue_type_script_setup_true_lang.8c93e503.js";import"./index.d7aee2db.js";import"./index.4fc6eb1b.js";import"./dayjs.52131e4c.js";import"./Form.1860c0ed.js";import"./index.0f4f2049.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]="6d680457-4a4c-4238-96ec-b7ec08c9059b",i._sentryDebugIdIdentifier="sentry-dbid-6d680457-4a4c-4238-96ec-b7ec08c9059b")}catch{}})();const me=g({__name:"JobEditor",setup(i){const m=v(),u=k(),l=b(null),o=b("test");function y(){m.push({name:"jobs"})}const{result:t}=x(()=>I.get(u.params.jobId)),f=w.create();return(A,d)=>(r(),s(S,null,{navbar:a(()=>[e(t)?(r(),s(e(R),{key:0,title:e(t).title,style:{padding:"5px 10px"},onBack:y},{footer:a(()=>[p(e($),{"active-key":o.value,"onUpdate:activeKey":d[0]||(d[0]=c=>o.value=c)},{default:a(()=>[p(e(_),{key:"test",tab:"Test"}),p(e(_),{key:"settings",tab:"Settings"})]),_:1},8,["active-key"])]),extra:a(()=>[p(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(D,{key:1,job:e(t)},null,8,["job"])):n("",!0)]),footer:a(()=>{var c;return[e(t)&&o.value==="test"?(r(),s(j,{key:0,runtime:"forms","log-service":e(f),onRestart:(c=l.value)==null?void 0:c.test},null,8,["log-service","onRestart"])):n("",!0)]}),_:1}))}});export{me as default};
//# sourceMappingURL=JobEditor.62c67474.js.map
