import{d as g,ey as v,ez as k,r as _,b as r,c as a,w as s,u as e,f as n,ev as m}from"./outputWidgets.a8447bcb.js";import{S as j,L as w}from"./SmartConsole.1a7a902f.js";import{a as x}from"./asyncComputed.6c2627ea.js";import{J as I}from"./jobs.0e97b322.js";import{_ as B}from"./SaveButton.vue_vue_type_script_setup_true_lang.183ff268.js";import{_ as C}from"./DocsButton.vue_vue_type_script_setup_true_lang.e2056d48.js";import{B as S}from"./BaseLayout.f14ed0a1.js";import{_ as T,a as $}from"./JobSettings.vue_vue_type_script_setup_true_lang.886962ff.js";import{_ as D}from"./Debugger.vue_vue_type_script_setup_true_lang.f3cfaf7f.js";import{c as R}from"./index.251d2c0f.js";import{A as b,T as A}from"./TabPane.628602f8.js";import"./forms.2a06fab8.js";import"./activeRecord.52c1b6f8.js";import"./pubsub.3b516de1.js";import"./dashes.d6e52b47.js";import"./runnerData.64650392.js";import"./hooks.9f2c5143.js";import"./workspaces.11e30eec.js";import"./url.0a1547fb.js";import"./icons.6de7af10.js";import"./Title.4127a4b4.js";import"./transButton.26020e2e.js";import"./index.823e1eed.js";import"./uuid.219059f6.js";import"./ant-design.1bcd10c9.js";import"./RunButton.vue_vue_type_script_setup_true_lang.ece50532.js";import"./index.c2734470.js";import"./index.c058ebd2.js";import"./dayjs.12e4241e.js";import"./Form.a869b3cf.js";import"./Text.722e2789.js";import"./index.5fa32c06.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new Error().stack;d&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[d]="afd1dd8e-54da-4ad3-9b7d-670e23d35a5d",i._sentryDebugIdIdentifier="sentry-dbid-afd1dd8e-54da-4ad3-9b7d-670e23d35a5d")}catch{}})();const le=g({__name:"JobEditor",setup(i){const d=v(),u=k(),l=_(null),o=_("test");function y(){d.push({name:"jobs"})}const{result:t}=x(()=>I.get(u.params.jobId)),f=w.create();return(J,c)=>(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":c[0]||(c[0]=p=>o.value=p)},{default:s(()=>[n(e(b),{key:"test",tab:"Test"}),n(e(b),{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:l,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 p;return[e(t)&&o.value==="test"?(r(),a(j,{key:0,runtime:"forms","log-service":e(f),onRestart:(p=l.value)==null?void 0:p.test},null,8,["log-service","onRestart"])):m("",!0)]}),_:1}))}});export{le as default};
//# sourceMappingURL=JobEditor.518058a0.js.map
