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.7bdcec0a.js";import{_ as j,S as w,L as x}from"./Debugger.vue_vue_type_script_setup_true_lang.d89c8bc1.js";import{a as I}from"./asyncComputed.cfb98789.js";import{J as B}from"./jobs.8b72f085.js";import{_ as C}from"./SaveButton.vue_vue_type_script_setup_true_lang.04051643.js";import{_ as S}from"./DocsButton.vue_vue_type_script_setup_true_lang.53314c28.js";import{B as T}from"./BaseLayout.8a75f5c8.js";import{_ as $,a as D}from"./JobSettings.vue_vue_type_script_setup_true_lang.dad96e41.js";import{c as R}from"./index.daee6445.js";import{A as b,T as A}from"./TabPane.80ddb907.js";import"./forms.8c9f59fc.js";import"./activeRecord.84d52553.js";import"./pubsub.c455bec9.js";import"./dashes.a2ed9201.js";import"./runnerData.9bca67ea.js";import"./hooks.23cddd97.js";import"./workspaces.be6d809d.js";import"./url.5caacc63.js";import"./icons.6934ad19.js";import"./Title.9c0d0c5f.js";import"./index.a9a6d5a2.js";import"./uuid.d3821bce.js";import"./Text.94a8ea41.js";import"./index.23129d61.js";import"./ant-design.b9d9c398.js";import"./RunButton.vue_vue_type_script_setup_true_lang.b67f1f55.js";import"./index.d4c84138.js";import"./index.d2a75d88.js";import"./dayjs.b81c9e45.js";import"./Form.f84b91b7.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},p=new Error().stack;p&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[p]="c3abca60-498d-4515-9649-081a2e87a989",i._sentryDebugIdIdentifier="sentry-dbid-c3abca60-498d-4515-9649-081a2e87a989")}catch{}})();const ue=g({__name:"JobEditor",setup(i){const p=v(),l=k(),c=_(null),o=_("test");function y(){p.push({name:"jobs"})}const{result:t}=I(()=>B.get(l.params.jobId)),f=x.create();return(J,d)=>(r(),a(T,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":d[0]||(d[0]=u=>o.value=u)},{default:s(()=>[n(e(b),{key:"test",tab:"Test"}),n(e(b),{key:"settings",tab:"Settings"})]),_:1},8,["active-key"])]),extra:s(()=>[n(j),n(S),o.value==="settings"?(r(),a(C,{key:0,model:e(t)},null,8,["model"])):m("",!0)]),_:1},8,["title"])):m("",!0)]),content:s(()=>[e(t)&&o.value==="test"?(r(),a($,{key:0,ref_key:"tester",ref:c,job:e(t),"log-service":e(f)},null,8,["job","log-service"])):m("",!0),e(t)&&o.value==="settings"?(r(),a(D,{key:1,job:e(t)},null,8,["job"])):m("",!0)]),footer:s(()=>{var u;return[e(t)&&o.value==="test"?(r(),a(w,{key:0,runtime:"forms","log-service":e(f),onRestart:(u=c.value)==null?void 0:u.test},null,8,["log-service","onRestart"])):m("",!0)]}),_:1}))}});export{ue as default};
//# sourceMappingURL=JobEditor.07b404ab.js.map
