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 p,ew as n}from"./outputWidgets.b43a489b.js";import{S as h,L as w}from"./SmartConsole.5df8d8f1.js";import{a as B}from"./asyncComputed.a42e75bb.js";import{H as C}from"./hooks.18db1931.js";import{_ as H}from"./SaveButton.vue_vue_type_script_setup_true_lang.3c7b2774.js";import{_ as I}from"./DocsButton.vue_vue_type_script_setup_true_lang.e267e7a4.js";import{B as S}from"./BaseLayout.87d1e05b.js";import{_ as T,a as x}from"./HookSettings.vue_vue_type_script_setup_true_lang.d7c3088c.js";import{c as A}from"./index.523f4a12.js";import{A as _,T as D}from"./TabPane.b49c19a0.js";import"./forms.83be8c86.js";import"./activeRecord.2bc5cc59.js";import"./pubsub.6fd47a9d.js";import"./dashes.952e2e3f.js";import"./index.42b92ee8.js";import"./jobs.a52f7106.js";import"./workspaces.eecbf708.js";import"./icons.de9af46a.js";import"./Title.47040052.js";import"./index.8a60ee51.js";import"./uuid.3c022812.js";import"./ant-design.dc7acb1e.js";import"./StageRunSelector.vue_vue_type_script_setup_true_lang.2d955392.js";import"./RunButton.vue_vue_type_script_setup_true_lang.6ccefb0d.js";import"./index.479accfd.js";import"./index.9367a16c.js";import"./CollapsePanel.3e5384f9.js";import"./index.65dea612.js";import"./index.0279b5ff.js";import"./Form.1797df89.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]="d50ede64-9079-4cda-aa12-1c3914a1a1aa",i._sentryDebugIdIdentifier="sentry-dbid-d50ede64-9079-4cda-aa12-1c3914a1a1aa")}catch{}})();const ue=g({__name:"HookEditor",setup(i){const m=v(),l=b(),c=k(null),o=k("test");function y(){m.push({name:"hooks"})}const{result:t}=B(()=>C.get(l.params.hookPath)),f=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(()=>[p(e(D),{"active-key":o.value,"onUpdate:activeKey":d[0]||(d[0]=u=>o.value=u)},{default:s(()=>[p(e(_),{key:"test",tab:"Test"}),p(e(_),{key:"settings",tab:"Settings"})]),_:1},8,["active-key"])]),extra:s(()=>[p(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:c,hook:e(t),"log-service":e(f)},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 u;return[e(t)&&o.value==="test"?(r(),a(h,{key:0,runtime:"forms","log-service":e(f),onRestart:(u=c.value)==null?void 0:u.runHook},null,8,["log-service","onRestart"])):n("",!0)]}),_:1}))}});export{ue as default};
//# sourceMappingURL=HookEditor.55aedf42.js.map
