import{d as g,ez as v,eA as k,r as _,b as r,c as s,w as a,u as e,f as u,ew as n}from"./outputWidgets.9b7c29ed.js";import{S as w,L as j}from"./SmartConsole.4a9a44c1.js";import{a as x}from"./asyncComputed.6a414bed.js";import{J as I}from"./jobs.2d5da298.js";import{_ as B}from"./SaveButton.vue_vue_type_script_setup_true_lang.4fcf11c4.js";import{_ as C}from"./DocsButton.vue_vue_type_script_setup_true_lang.33d71eda.js";import{B as S}from"./BaseLayout.0edd5899.js";import{_ as T,a as A}from"./JobSettings.vue_vue_type_script_setup_true_lang.db3fdeda.js";import{c as D}from"./index.530f7175.js";import{A as b,T as R}from"./TabPane.40b534c7.js";import"./forms.d2f1a2f3.js";import"./activeRecord.264ba54c.js";import"./pubsub.f1df5000.js";import"./dashes.920727b6.js";import"./index.31be9da9.js";import"./hooks.146679d7.js";import"./workspaces.a26f4872.js";import"./url.c61c9940.js";import"./icons.7c250a15.js";import"./Title.55bc3e25.js";import"./index.d8ed1958.js";import"./uuid.5cd70888.js";import"./ant-design.9b0f163e.js";import"./RunButton.vue_vue_type_script_setup_true_lang.966a41b1.js";import"./index.bf42d2cc.js";import"./index.5695780b.js";import"./dayjs.a3c3e770.js";import"./Form.77e50956.js";import"./index.316bc1ac.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]="fd361aae-4f80-4197-9c99-92ece7e79704",i._sentryDebugIdIdentifier="sentry-dbid-fd361aae-4f80-4197-9c99-92ece7e79704")}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=j.create();return($,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(()=>[u(e(R),{"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(A,{key:1,job:e(t)},null,8,["job"])):n("",!0)]),footer:a(()=>{var p;return[e(t)&&o.value==="test"?(r(),s(w,{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.3f0464ef.js.map
