import{d as g,ey as v,ez as k,r as d,b as r,c as a,w as s,u as e,f as n,ev as m}from"./outputWidgets.24bc53e6.js";import{S as j,L as w}from"./SmartConsole.31c75568.js";import{a as x}from"./asyncComputed.e4b96939.js";import{J as I}from"./jobs.7e4ad3f1.js";import{_ as B}from"./SaveButton.vue_vue_type_script_setup_true_lang.a4cb36cd.js";import{_ as C}from"./DocsButton.vue_vue_type_script_setup_true_lang.4b5f8765.js";import{B as S}from"./BaseLayout.5b763e9c.js";import{_ as T,a as $}from"./JobSettings.vue_vue_type_script_setup_true_lang.3426dd66.js";import{_ as D}from"./Debugger.vue_vue_type_script_setup_true_lang.c83042b3.js";import{c as R}from"./index.eba97539.js";import{A as _,T as A}from"./TabPane.c8538b54.js";import"./forms.67d54833.js";import"./activeRecord.7f48ce0d.js";import"./pubsub.6b8c4d65.js";import"./dashes.4af1e6b4.js";import"./runnerData.3021bf76.js";import"./hooks.e39e9595.js";import"./workspaces.81cdf281.js";import"./url.12ca99c5.js";import"./icons.346b8028.js";import"./Title.d959e45a.js";import"./transButton.082aab94.js";import"./index.3a0ced65.js";import"./uuid.2f7a2235.js";import"./ant-design.3bddf1a0.js";import"./RunButton.vue_vue_type_script_setup_true_lang.c038096b.js";import"./index.517519f3.js";import"./index.0ec384bd.js";import"./dayjs.a0dc9bed.js";import"./Form.026abd8d.js";import"./Text.9efc0467.js";import"./index.d2b2175c.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]="827a72c0-9cbe-4499-afa4-b210e4bbba85",i._sentryDebugIdIdentifier="sentry-dbid-827a72c0-9cbe-4499-afa4-b210e4bbba85")}catch{}})();const ce=g({__name:"JobEditor",setup(i){const p=v(),l=k(),c=d(null),o=d("test");function y(){p.push({name:"jobs"})}const{result:t}=x(()=>I.get(l.params.jobId)),f=w.create();return(J,b)=>(r(),a(S,null,{navbar:s(()=>[e(t)?(r(),a(e(R),{key:0,title:e(t).title,style:{padding:"5px 10px"},onBack:y},{footer:s(()=>[n(e(A),{"active-key":o.value,"onUpdate:activeKey":b[0]||(b[0]=u=>o.value=u)},{default:s(()=>[n(e(_),{key:"test",tab:"Test"}),n(e(_),{key:"settings",tab:"Settings"})]),_:1},8,["active-key"])]),extra:s(()=>[n(D),n(C),o.value==="settings"?(r(),a(B,{key:0,model:e(t)},null,8,["model"])):m("",!0)]),_:1},8,["title"])):m("",!0)]),content:s(()=>[e(t)&&o.value==="test"?(r(),a(T,{key:0,ref_key:"tester",ref:c,job:e(t),"log-service":e(f)},null,8,["job","log-service"])):m("",!0),e(t)&&o.value==="settings"?(r(),a($,{key:1,job:e(t)},null,8,["job"])):m("",!0)]),footer:s(()=>{var u;return[e(t)&&o.value==="test"?(r(),a(j,{key:0,runtime:"forms","log-service":e(f),onRestart:(u=c.value)==null?void 0:u.test},null,8,["log-service","onRestart"])):m("",!0)]}),_:1}))}});export{ce as default};
//# sourceMappingURL=JobEditor.ffe3e498.js.map
