import{d as b,ey as g,ez as v,r as k,b as r,c as s,w as a,u as e,f,ev as n}from"./outputWidgets.1cf78234.js";import{S as h,L as w}from"./SmartConsole.80750b35.js";import{a as x}from"./asyncComputed.513601fc.js";import{H as B}from"./hooks.632b946b.js";import{_ as C}from"./SaveButton.vue_vue_type_script_setup_true_lang.5ad185ad.js";import{_ as H}from"./DocsButton.vue_vue_type_script_setup_true_lang.64d31a0b.js";import{B as I}from"./BaseLayout.eb5e397f.js";import{_ as S,a as T}from"./HookSettings.vue_vue_type_script_setup_true_lang.e9c3cb2e.js";import{c as D}from"./index.c833051c.js";import{A as _,T as R}from"./TabPane.389dade5.js";import"./forms.b536b14a.js";import"./activeRecord.1ee4e98a.js";import"./pubsub.a66a61fd.js";import"./dashes.e131628f.js";import"./runnerData.c735532a.js";import"./jobs.451e8a5e.js";import"./workspaces.8e5d684c.js";import"./url.18ee0e18.js";import"./icons.ba4d43de.js";import"./Title.a8b8fdd6.js";import"./index.960f4655.js";import"./uuid.9fffc83f.js";import"./ant-design.b7f18845.js";import"./StageRunSelector.vue_vue_type_script_setup_true_lang.370927b2.js";import"./RunButton.vue_vue_type_script_setup_true_lang.a675e762.js";import"./index.2fc16f3e.js";import"./index.7a53699a.js";import"./CollapsePanel.beab295e.js";import"./index.67188546.js";import"./index.427c7dc5.js";import"./index.4f30f3fe.js";import"./Form.5fb25f40.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]="c7b03fe0-0354-4ec3-8b75-ffbff81bcd3c",i._sentryDebugIdIdentifier="sentry-dbid-c7b03fe0-0354-4ec3-8b75-ffbff81bcd3c")}catch{}})();const ce=b({__name:"HookEditor",setup(i){const m=g(),c=v(),u=k(null),o=k("test");function y(){m.push({name:"hooks"})}const{result:t}=x(()=>B.get(c.params.hookPath)),l=w.create();return($,d)=>(r(),s(I,null,{navbar:a(()=>[e(t)?(r(),s(e(D),{key:0,title:e(t).title,style:{padding:"5px 10px"},onBack:y},{footer:a(()=>[f(e(R),{"active-key":o.value,"onUpdate:activeKey":d[0]||(d[0]=p=>o.value=p)},{default:a(()=>[f(e(_),{key:"test",tab:"Test"}),f(e(_),{key:"settings",tab:"Settings"})]),_:1},8,["active-key"])]),extra:a(()=>[f(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:u,hook:e(t),"log-service":e(l)},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(l),onRestart:(p=u.value)==null?void 0:p.runHook},null,8,["log-service","onRestart"])):n("",!0)]}),_:1}))}});export{ce as default};
//# sourceMappingURL=HookEditor.ea19585b.js.map
