import{d as g,ex as v,ey as k,r as _,b as r,c as s,w as a,u as e,f as u,eu as i}from"./registerWidgets.d207d3d8.js";import{S as j,L as w}from"./SmartConsole.f594a1ad.js";import{a as I}from"./asyncComputed.9245c077.js";import{J as x}from"./jobs.7da71109.js";import{_ as B}from"./SaveButton.vue_vue_type_script_setup_true_lang.a446ddad.js";import{_ as C}from"./DocsButton.vue_vue_type_script_setup_true_lang.28f3e777.js";import{B as S}from"./BaseLayout.0d1c7e47.js";import{_ as T,a as D}from"./JobSettings.vue_vue_type_script_setup_true_lang.17b7c8a4.js";import{c as R}from"./index.7710c197.js";import{a as b,T as $}from"./index.d8b0e5b9.js";import"./forms.ae7baac0.js";import"./activeRecord.3ac0bec0.js";import"./pubsub.a025efb1.js";import"./dashes.e3e34823.js";import"./index.4ee96554.js";import"./hooks.37f13771.js";import"./workspaces.84f5cd92.js";import"./icons.4cf3c6e7.js";import"./Title.db9c20f2.js";import"./transButton.c5e342ac.js";import"./FormItem.15ae57a9.js";import"./uuid.82f651b9.js";import"./storage.955f9c37.js";import"./dayjs.145e42b2.js";import"./index.a0581434.js";import"./Form.93c8c2f5.js";import"./index.ce572c42.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},m=new Error().stack;m&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[m]="fe6c8cf9-0da3-4e85-8331-17ff9f57f259",n._sentryDebugIdIdentifier="sentry-dbid-fe6c8cf9-0da3-4e85-8331-17ff9f57f259")}catch{}})();const ne=g({__name:"JobEditor",setup(n){const m=v(),l=k(),c=_(null),o=_("test");function y(){m.push({name:"jobs"})}const{result:t}=I(()=>x.get(l.params.jobId)),p=w.create();return(J,d)=>(r(),s(S,null,{navbar:a(()=>[e(t)?(r(),s(e(R),{key:0,title:e(t).title,onBack:y},{footer:a(()=>[u(e($),{"active-key":o.value,"onUpdate:activeKey":d[0]||(d[0]=f=>o.value=f)},{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"])):i("",!0)]),_:1},8,["title"])):i("",!0)]),content:a(()=>[e(t)&&o.value==="test"?(r(),s(T,{key:0,ref_key:"tester",ref:c,job:e(t),"log-service":e(p)},null,8,["job","log-service"])):i("",!0),e(t)&&o.value==="settings"?(r(),s(D,{key:1,job:e(t)},null,8,["job"])):i("",!0)]),footer:a(()=>{var f;return[e(t)&&o.value==="test"?(r(),s(j,{key:0,runtime:"forms","log-service":e(p),onRestart:(f=c.value)==null?void 0:f.test},null,8,["log-service","onRestart"])):i("",!0)]}),_:1}))}});export{ne as default};
//# sourceMappingURL=JobEditor.7373d9c3.js.map
