import{d as g,ez as v,eA as k,r as b,b as r,c as s,w as a,u as e,f as p,ew as n}from"./outputWidgets.b8e3fbc0.js";import{S as w,L as j}from"./SmartConsole.46f2fdc5.js";import{a as x}from"./asyncComputed.977b7d3a.js";import{J as I}from"./jobs.cfb40b83.js";import{_ as B}from"./SaveButton.vue_vue_type_script_setup_true_lang.04452329.js";import{_ as C}from"./DocsButton.vue_vue_type_script_setup_true_lang.7f06376e.js";import{B as S}from"./BaseLayout.8874d2af.js";import{_ as T,a as A}from"./JobSettings.vue_vue_type_script_setup_true_lang.1e3d706a.js";import{c as D}from"./index.35048621.js";import{A as _,T as R}from"./TabPane.5ecaf5db.js";import"./forms.b47e0232.js";import"./activeRecord.407da188.js";import"./pubsub.dbd75de9.js";import"./dashes.f399352b.js";import"./index.b9764f4b.js";import"./hooks.c0f7a94d.js";import"./workspaces.1cd723ed.js";import"./url.e34f8e7c.js";import"./icons.4de3900f.js";import"./Title.b922ff42.js";import"./index.4cd7b067.js";import"./uuid.686be72f.js";import"./ant-design.589d9b06.js";import"./RunButton.vue_vue_type_script_setup_true_lang.01d09b98.js";import"./index.df9708be.js";import"./index.0e41e755.js";import"./dayjs.94938ab9.js";import"./Form.a05787d5.js";import"./index.5ca55868.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]="525c6dda-e651-4257-8f77-09c7eccdf2b7",i._sentryDebugIdIdentifier="sentry-dbid-525c6dda-e651-4257-8f77-09c7eccdf2b7")}catch{}})();const me=g({__name:"JobEditor",setup(i){const m=v(),u=k(),l=b(null),o=b("test");function y(){m.push({name:"jobs"})}const{result:t}=x(()=>I.get(u.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(()=>[p(e(R),{"active-key":o.value,"onUpdate:activeKey":d[0]||(d[0]=c=>o.value=c)},{default:a(()=>[p(e(_),{key:"test",tab:"Test"}),p(e(_),{key:"settings",tab:"Settings"})]),_:1},8,["active-key"])]),extra:a(()=>[p(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:l,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 c;return[e(t)&&o.value==="test"?(r(),s(w,{key:0,runtime:"forms","log-service":e(f),onRestart:(c=l.value)==null?void 0:c.test},null,8,["log-service","onRestart"])):n("",!0)]}),_:1}))}});export{me as default};
//# sourceMappingURL=JobEditor.5b6462a4.js.map
