import{d as g,ez as v,eA as b,r as k,b as r,c as a,w as s,u as e,f as u,ew as n}from"./outputWidgets.52de64cd.js";import{S as h,L as w}from"./SmartConsole.9babf82e.js";import{a as B}from"./asyncComputed.00e76dd1.js";import{H as C}from"./hooks.50fa5e89.js";import{_ as H}from"./SaveButton.vue_vue_type_script_setup_true_lang.50c1fabc.js";import{_ as I}from"./DocsButton.vue_vue_type_script_setup_true_lang.5f9b00a2.js";import{B as S}from"./BaseLayout.c2f90625.js";import{_ as T,a as x}from"./HookSettings.vue_vue_type_script_setup_true_lang.97c68a3e.js";import{c as A}from"./index.7800af0b.js";import{A as _,T as D}from"./TabPane.c3c2f5a1.js";import"./forms.a88741b7.js";import"./activeRecord.ebcbfc07.js";import"./pubsub.6e9aa6f2.js";import"./dashes.9265143d.js";import"./index.a07ffcc5.js";import"./jobs.4df37514.js";import"./workspaces.bfe7b570.js";import"./icons.bf6505eb.js";import"./Title.baba2b21.js";import"./index.5a37ef67.js";import"./uuid.0840f7c5.js";import"./ant-design.20ade584.js";import"./StageRunSelector.vue_vue_type_script_setup_true_lang.6f54e569.js";import"./index.f7915957.js";import"./index.1ebdd57a.js";import"./CollapsePanel.d756b861.js";import"./index.c0e74c90.js";import"./index.5718341d.js";import"./Form.09072055.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]="1aa6d2ff-60f2-45f7-a60a-fc1b799912f9",i._sentryDebugIdIdentifier="sentry-dbid-1aa6d2ff-60f2-45f7-a60a-fc1b799912f9")}catch{}})();const me=g({__name:"HookEditor",setup(i){const m=v(),l=b(),p=k(null),o=k("test");function y(){m.push({name:"hooks"})}const{result:t}=B(()=>C.get(l.params.hookPath)),c=w.create();return(R,d)=>(r(),a(S,null,{navbar:s(()=>[e(t)?(r(),a(e(A),{key:0,title:e(t).title,onBack:y},{footer:s(()=>[u(e(D),{"active-key":o.value,"onUpdate:activeKey":d[0]||(d[0]=f=>o.value=f)},{default:s(()=>[u(e(_),{key:"test",tab:"Test"}),u(e(_),{key:"settings",tab:"Settings"})]),_:1},8,["active-key"])]),extra:s(()=>[u(I,{path:"hooks"}),o.value==="settings"?(r(),a(H,{key:0,model:e(t)},null,8,["model"])):n("",!0)]),_:1},8,["title"])):n("",!0)]),content:s(()=>[e(t)&&o.value==="test"?(r(),a(T,{key:0,ref_key:"tester",ref:p,hook:e(t),"log-service":e(c)},null,8,["hook","log-service"])):n("",!0),e(t)&&o.value==="settings"?(r(),a(x,{key:1,hook:e(t)},null,8,["hook"])):n("",!0)]),footer:s(()=>{var f;return[e(t)&&o.value==="test"?(r(),a(h,{key:0,runtime:"forms","log-service":e(c),onRestart:(f=p.value)==null?void 0:f.runHook},null,8,["log-service","onRestart"])):n("",!0)]}),_:1}))}});export{me as default};
//# sourceMappingURL=HookEditor.228488b0.js.map
