import{d as g,ex as v,ey as k,r as b,b as r,c as s,w as a,u as e,f as l,eu as i}from"./registerWidgets.aa99a257.js";import{S as j,L as w}from"./SmartConsole.d70c8a2d.js";import{a as I}from"./asyncComputed.0fe9c7ca.js";import{J as x}from"./jobs.093b9a31.js";import{_ as B}from"./SaveButton.vue_vue_type_script_setup_true_lang.ed4c011d.js";import{_ as C}from"./DocsButton.vue_vue_type_script_setup_true_lang.0a7246b9.js";import{B as S}from"./BaseLayout.7727a5c7.js";import{_ as T,a as D}from"./JobSettings.vue_vue_type_script_setup_true_lang.c4727c98.js";import{c as R}from"./index.3dca4144.js";import{a as _,T as $}from"./index.4c73616e.js";import"./forms.ea000aa1.js";import"./activeRecord.a0fab812.js";import"./pubsub.1c962ca1.js";import"./dashes.fa9afad9.js";import"./index.237f2f09.js";import"./hooks.b7fde148.js";import"./workspaces.469ca98e.js";import"./icons.28b8a025.js";import"./Title.6e572405.js";import"./uuid.ef3a90b6.js";import"./storage.140ce577.js";import"./dayjs.89a27922.js";import"./index.c751bb41.js";import"./Form.edded16b.js";import"./index.782ff7c7.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]="566809d1-6413-4a8f-8920-d7b1d1eac662",n._sentryDebugIdIdentifier="sentry-dbid-566809d1-6413-4a8f-8920-d7b1d1eac662")}catch{}})();const se=g({__name:"JobEditor",setup(n){const m=v(),c=k(),f=b(null),o=b("test");function y(){m.push({name:"jobs"})}const{result:t}=I(()=>x.get(c.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(()=>[l(e($),{"active-key":o.value,"onUpdate:activeKey":d[0]||(d[0]=u=>o.value=u)},{default:a(()=>[l(e(_),{key:"test",tab:"Test"}),l(e(_),{key:"settings",tab:"Settings"})]),_:1},8,["active-key"])]),extra:a(()=>[l(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:f,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 u;return[e(t)&&o.value==="test"?(r(),s(j,{key:0,runtime:"forms","log-service":e(p),onRestart:(u=f.value)==null?void 0:u.test},null,8,["log-service","onRestart"])):i("",!0)]}),_:1}))}});export{se as default};
//# sourceMappingURL=JobEditor.0b732c91.js.map
