import{d as g,ez as v,eA as b,r as k,b as r,c as s,w as a,u as e,f as u,ew as n}from"./outputWidgets.5f5dca9f.js";import{S as h,L as w}from"./SmartConsole.9fe0ab76.js";import{a as x}from"./asyncComputed.eae0c0ea.js";import{H as B}from"./hooks.3f2564e0.js";import{_ as C}from"./SaveButton.vue_vue_type_script_setup_true_lang.4f8148d9.js";import{_ as H}from"./DocsButton.vue_vue_type_script_setup_true_lang.e0e69f03.js";import{B as I}from"./BaseLayout.ff65337e.js";import{_ as S,a as T}from"./HookSettings.vue_vue_type_script_setup_true_lang.16498aaf.js";import{c as A}from"./index.de5dbed2.js";import{A as _,T as D}from"./TabPane.c45032a7.js";import"./forms.f0016f62.js";import"./activeRecord.ad81cab4.js";import"./pubsub.628f19a6.js";import"./dashes.1843abee.js";import"./index.92c8cf6e.js";import"./jobs.c17d5857.js";import"./workspaces.48c8fd8f.js";import"./url.1555ad6e.js";import"./icons.a77543dc.js";import"./Title.c2ba09dc.js";import"./index.10f6bb5a.js";import"./uuid.80bf1f32.js";import"./ant-design.b34b2997.js";import"./StageRunSelector.vue_vue_type_script_setup_true_lang.0d7bb722.js";import"./RunButton.vue_vue_type_script_setup_true_lang.c0c70e47.js";import"./index.05f33f4e.js";import"./index.7ef152c5.js";import"./CollapsePanel.0689bbb8.js";import"./index.7ab474e7.js";import"./index.9f395a03.js";import"./index.f5a72b75.js";import"./Form.09052538.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]="00a96aec-4881-4edf-8dd1-5e71d059e104",i._sentryDebugIdIdentifier="sentry-dbid-00a96aec-4881-4edf-8dd1-5e71d059e104")}catch{}})();const le=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}=x(()=>B.get(l.params.hookPath)),d=w.create();return(R,f)=>(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(()=>[u(e(D),{"active-key":o.value,"onUpdate:activeKey":f[0]||(f[0]=p=>o.value=p)},{default:a(()=>[u(e(_),{key:"test",tab:"Test"}),u(e(_),{key:"settings",tab:"Settings"})]),_:1},8,["active-key"])]),extra:a(()=>[u(H,{path:"hooks"}),o.value==="settings"?(r(),s(C,{key:0,model:e(t)},null,8,["model"])):n("",!0)]),_:1},8,["title"])):n("",!0)]),content:a(()=>[e(t)&&o.value==="test"?(r(),s(S,{key:0,ref_key:"tester",ref:c,hook:e(t),"log-service":e(d)},null,8,["hook","log-service"])):n("",!0),e(t)&&o.value==="settings"?(r(),s(T,{key:1,hook:e(t)},null,8,["hook"])):n("",!0)]),footer:a(()=>{var p;return[e(t)&&o.value==="test"?(r(),s(h,{key:0,runtime:"forms","log-service":e(d),onRestart:(p=c.value)==null?void 0:p.runHook},null,8,["log-service","onRestart"])):n("",!0)]}),_:1}))}});export{le as default};
//# sourceMappingURL=HookEditor.3f7d3120.js.map
