import{d as g,ey as v,ez as k,r as _,b as r,c as s,w as a,u as e,f as u,ev as n}from"./outputWidgets.397b3720.js";import{S as j,L as w}from"./SmartConsole.b1e4cb7e.js";import{a as x}from"./asyncComputed.28fc9d36.js";import{J as I}from"./jobs.afb91f3b.js";import{_ as B}from"./SaveButton.vue_vue_type_script_setup_true_lang.004d0186.js";import{_ as C}from"./DocsButton.vue_vue_type_script_setup_true_lang.b76c2b76.js";import{B as S}from"./BaseLayout.a83edf4c.js";import{_ as T,a as D}from"./JobSettings.vue_vue_type_script_setup_true_lang.edd13d3b.js";import{c as R}from"./index.65a47e55.js";import{A as b,T as $}from"./TabPane.9487729b.js";import"./forms.d18d2f2f.js";import"./activeRecord.6bb6b853.js";import"./pubsub.fe0f0397.js";import"./dashes.ba5de5ab.js";import"./runnerData.e0501241.js";import"./hooks.62ea9eb4.js";import"./workspaces.d5f1211a.js";import"./url.53bc193a.js";import"./icons.5e65f599.js";import"./Title.382247fb.js";import"./index.c9ea7155.js";import"./uuid.365a94b6.js";import"./ant-design.29edbf4a.js";import"./RunButton.vue_vue_type_script_setup_true_lang.d5cce440.js";import"./index.14368f49.js";import"./index.4acaedbb.js";import"./dayjs.83a27cba.js";import"./Form.5ce50c8f.js";import"./index.e12747aa.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]="e1d4c7f3-524d-4942-9736-43e73de07246",i._sentryDebugIdIdentifier="sentry-dbid-e1d4c7f3-524d-4942-9736-43e73de07246")}catch{}})();const me=g({__name:"JobEditor",setup(i){const m=v(),l=k(),c=_(null),o=_("test");function y(){m.push({name:"jobs"})}const{result:t}=x(()=>I.get(l.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(()=>[u(e($),{"active-key":o.value,"onUpdate:activeKey":d[0]||(d[0]=p=>o.value=p)},{default:a(()=>[u(e(b),{key:"test",tab:"Test"}),u(e(b),{key:"settings",tab:"Settings"})]),_:1},8,["active-key"])]),extra:a(()=>[u(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:c,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 p;return[e(t)&&o.value==="test"?(r(),s(j,{key:0,runtime:"forms","log-service":e(f),onRestart:(p=c.value)==null?void 0:p.test},null,8,["log-service","onRestart"])):n("",!0)]}),_:1}))}});export{me as default};
//# sourceMappingURL=JobEditor.3d0ca369.js.map
