import{d as g,eA as v,eB as k,r as b,b as r,c as s,w as a,u as e,f as n,ew as m}from"./outputWidgets.427e9347.js";import{S as w,L as j}from"./SmartConsole.191e476a.js";import{a as x}from"./asyncComputed.32abd7c2.js";import{J as B}from"./jobs.00698289.js";import{_ as I}from"./SaveButton.vue_vue_type_script_setup_true_lang.a846a0dc.js";import{_ as C}from"./DocsButton.vue_vue_type_script_setup_true_lang.09beac58.js";import{B as S}from"./BaseLayout.0abe2ed6.js";import{_ as T,a as $}from"./JobSettings.vue_vue_type_script_setup_true_lang.34162017.js";import{_ as A}from"./Debugger.vue_vue_type_script_setup_true_lang.fec54b81.js";import{c as D}from"./index.e58605b8.js";import{A as _,T as R}from"./TabPane.7a3514c0.js";import"./forms.9ae53624.js";import"./activeRecord.91f10272.js";import"./pubsub.9b59356e.js";import"./dashes.c44ff20c.js";import"./runnerData.f3941ca5.js";import"./hooks.4b184497.js";import"./workspaces.4100d442.js";import"./url.9044ee0d.js";import"./icons.2a865956.js";import"./FormItem.e1548cef.js";import"./index.8fcd530b.js";import"./uuid.dfb0647f.js";import"./ant-design.484e81b9.js";import"./transButton.470f2fe6.js";import"./RunButton.vue_vue_type_script_setup_true_lang.85994879.js";import"./index.122357f4.js";import"./Text.31458a16.js";import"./Base.dbea8db9.js";import"./dayjs.7725c967.js";import"./Title.213e158e.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},f=new Error().stack;f&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[f]="205f809a-c2b9-444e-bd7f-5e19fbc43f57",i._sentryDebugIdIdentifier="sentry-dbid-205f809a-c2b9-444e-bd7f-5e19fbc43f57")}catch{}})();const ue=g({__name:"JobEditor",setup(i){const f=v(),u=k(),l=b(null),o=b("test");function y(){f.push({name:"jobs"})}const{result:t}=x(()=>B.get(u.params.jobId)),c=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]=p=>o.value=p)},{default:a(()=>[n(e(_),{key:"test",tab:"Test"}),n(e(_),{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:l,job:e(t),"log-service":e(c)},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 p;return[e(t)&&o.value==="test"?(r(),s(w,{key:0,runtime:"forms","log-service":e(c),onRestart:(p=l.value)==null?void 0:p.test},null,8,["log-service","onRestart"])):m("",!0)]}),_:1}))}});export{ue as default};
//# sourceMappingURL=JobEditor.7e8dd43b.js.map
