import{d as g,eA as v,eB as b,r as _,b as r,c as s,w as a,u as e,f as n,ew as m}from"./outputWidgets.f8f8676d.js";import{S as h,L as w}from"./SmartConsole.473bd024.js";import{a as x}from"./asyncComputed.9c91cdf6.js";import{H as B}from"./hooks.96151980.js";import{_ as C}from"./SaveButton.vue_vue_type_script_setup_true_lang.2a589021.js";import{_ as H}from"./DocsButton.vue_vue_type_script_setup_true_lang.2226328a.js";import{B as I}from"./BaseLayout.f7927f02.js";import{_ as S,a as T}from"./HookSettings.vue_vue_type_script_setup_true_lang.3d34f936.js";import{_ as $}from"./Debugger.vue_vue_type_script_setup_true_lang.0602cf1a.js";import{c as A}from"./index.44b02920.js";import{A as k,T as D}from"./TabPane.56eaca62.js";import"./forms.2d526500.js";import"./activeRecord.913921b5.js";import"./pubsub.8eddc628.js";import"./dashes.9d405fa0.js";import"./runnerData.8fc648cc.js";import"./jobs.0ffa7c0c.js";import"./workspaces.31df14fc.js";import"./url.46c79102.js";import"./icons.c3170cf4.js";import"./Title.53d37289.js";import"./transButton.ca7603a2.js";import"./index.97771f01.js";import"./uuid.23323229.js";import"./ant-design.8ffd5ed0.js";import"./StageRunSelector.vue_vue_type_script_setup_true_lang.f27742c7.js";import"./RunButton.vue_vue_type_script_setup_true_lang.b8566fcc.js";import"./index.408e6d37.js";import"./index.2ab0079e.js";import"./CollapsePanel.cc3e3f63.js";import"./index.e041bc2d.js";import"./index.4c4e9bdd.js";import"./Form.2b1bb5d1.js";import"./Text.7ab5366c.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]="48aeb014-66f7-4cfe-84c3-093435e55752",i._sentryDebugIdIdentifier="sentry-dbid-48aeb014-66f7-4cfe-84c3-093435e55752")}catch{}})();const de=g({__name:"HookEditor",setup(i){const p=v(),l=b(),c=_(null),o=_("test");function y(){p.push({name:"hooks"})}const{result:t}=x(()=>B.get(l.params.hookPath)),f=w.create();return(R,d)=>(r(),s(I,null,{navbar:a(()=>[e(t)?(r(),s(e(A),{key:0,title:e(t).title,style:{padding:"5px 10px"},onBack:y},{footer:a(()=>[n(e(D),{"active-key":o.value,"onUpdate:activeKey":d[0]||(d[0]=u=>o.value=u)},{default:a(()=>[n(e(k),{key:"test",tab:"Test"}),n(e(k),{key:"settings",tab:"Settings"})]),_:1},8,["active-key"])]),extra:a(()=>[n($),n(H,{path:"hooks"}),o.value==="settings"?(r(),s(C,{key:0,model:e(t)},null,8,["model"])):m("",!0)]),_:1},8,["title"])):m("",!0)]),content:a(()=>[e(t)&&o.value==="test"?(r(),s(S,{key:0,ref_key:"tester",ref:c,hook:e(t),"log-service":e(f)},null,8,["hook","log-service"])):m("",!0),e(t)&&o.value==="settings"?(r(),s(T,{key:1,hook:e(t)},null,8,["hook"])):m("",!0)]),footer:a(()=>{var u;return[e(t)&&o.value==="test"?(r(),s(h,{key:0,runtime:"forms","log-service":e(f),onRestart:(u=c.value)==null?void 0:u.runHook},null,8,["log-service","onRestart"])):m("",!0)]}),_:1}))}});export{de as default};
//# sourceMappingURL=HookEditor.f93813ab.js.map
