import{d as g,eA as v,eB as k,r as _,b as r,c as s,w as a,u as e,f as n,ew as m}from"./outputWidgets.562826ac.js";import{S as w,L as j}from"./SmartConsole.cf3476b7.js";import{a as x}from"./asyncComputed.df2d9552.js";import{J as B}from"./jobs.8122e83b.js";import{_ as I}from"./SaveButton.vue_vue_type_script_setup_true_lang.cb63a1cf.js";import{_ as C}from"./DocsButton.vue_vue_type_script_setup_true_lang.9c0b8f6c.js";import{B as S}from"./BaseLayout.544f6749.js";import{_ as T,a as $}from"./JobSettings.vue_vue_type_script_setup_true_lang.e216219a.js";import{_ as A}from"./Debugger.vue_vue_type_script_setup_true_lang.2a4a526e.js";import{c as D}from"./index.ab0f4a56.js";import{A as b,T as R}from"./TabPane.84849352.js";import"./forms.5ca19b70.js";import"./activeRecord.6bb1bd7f.js";import"./pubsub.7185b91b.js";import"./dashes.b69dfa2c.js";import"./runnerData.52ec0396.js";import"./hooks.df04f598.js";import"./workspaces.5bce544b.js";import"./url.5a1383d2.js";import"./icons.63405824.js";import"./FormItem.fc4e7da8.js";import"./index.01bf1f2c.js";import"./uuid.aae1573d.js";import"./ant-design.1ee2ab2c.js";import"./transButton.17480f27.js";import"./RunButton.vue_vue_type_script_setup_true_lang.619bfa77.js";import"./index.d63b7f4e.js";import"./Text.712cfc26.js";import"./Base.bf8dc0b1.js";import"./dayjs.573eb7d1.js";import"./Title.f7aaa881.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]="2d186eba-ee84-4ee4-a2d1-c04222f9d2d4",i._sentryDebugIdIdentifier="sentry-dbid-2d186eba-ee84-4ee4-a2d1-c04222f9d2d4")}catch{}})();const le=g({__name:"JobEditor",setup(i){const p=v(),l=k(),c=_(null),o=_("test");function y(){p.push({name:"jobs"})}const{result:t}=x(()=>B.get(l.params.jobId)),f=j.create();return(J,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(()=>[n(e(R),{"active-key":o.value,"onUpdate:activeKey":d[0]||(d[0]=u=>o.value=u)},{default:a(()=>[n(e(b),{key:"test",tab:"Test"}),n(e(b),{key:"settings",tab:"Settings"})]),_:1},8,["active-key"])]),extra:a(()=>[n(A),n(C),o.value==="settings"?(r(),s(I,{key:0,model:e(t)},null,8,["model"])):m("",!0)]),_:1},8,["title"])):m("",!0)]),content:a(()=>[e(t)&&o.value==="test"?(r(),s(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(),s($,{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(f),onRestart:(u=c.value)==null?void 0:u.test},null,8,["log-service","onRestart"])):m("",!0)]}),_:1}))}});export{le as default};
//# sourceMappingURL=JobEditor.5b1ad8c3.js.map
