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 p,ew as n}from"./outputWidgets.17392370.js";import{S as h,L as w}from"./SmartConsole.995c5bb7.js";import{a as B}from"./asyncComputed.76849272.js";import{H as C}from"./hooks.5364daac.js";import{_ as H}from"./SaveButton.vue_vue_type_script_setup_true_lang.26c691c2.js";import{_ as I}from"./DocsButton.vue_vue_type_script_setup_true_lang.84611838.js";import{B as S}from"./BaseLayout.b515a973.js";import{_ as T,a as x}from"./HookSettings.vue_vue_type_script_setup_true_lang.f8ae6033.js";import{c as A}from"./index.2e2d3a0a.js";import{A as _,T as D}from"./TabPane.25e9ccd4.js";import"./forms.cc7f6703.js";import"./activeRecord.84b679f6.js";import"./pubsub.fc739490.js";import"./dashes.5976f8f5.js";import"./index.7c30bb7a.js";import"./jobs.205fd41b.js";import"./workspaces.9a283772.js";import"./icons.baa5f07a.js";import"./Title.bc3ff086.js";import"./index.8c91651f.js";import"./uuid.339b60bd.js";import"./ant-design.9c3ff8a2.js";import"./StageRunSelector.vue_vue_type_script_setup_true_lang.6c9809c0.js";import"./RunButton.vue_vue_type_script_setup_true_lang.0c62ce3b.js";import"./index.d2f4083e.js";import"./index.1fd97730.js";import"./CollapsePanel.853dbd0d.js";import"./index.ba0ff767.js";import"./index.56ff0f0c.js";import"./Form.e398e550.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]="7453e8d5-3883-4945-9572-86bd6a439e75",i._sentryDebugIdIdentifier="sentry-dbid-7453e8d5-3883-4945-9572-86bd6a439e75")}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(),s(S,null,{navbar:a(()=>[e(t)?(r(),s(e(A),{key:0,title:e(t).title,onBack:y},{footer:a(()=>[p(e(D),{"active-key":o.value,"onUpdate:activeKey":d[0]||(d[0]=u=>o.value=u)},{default:a(()=>[p(e(_),{key:"test",tab:"Test"}),p(e(_),{key:"settings",tab:"Settings"})]),_:1},8,["active-key"])]),extra:a(()=>[p(I,{path:"hooks"}),o.value==="settings"?(r(),s(H,{key:0,model:e(t)},null,8,["model"])):n("",!0)]),_:1},8,["title"])):n("",!0)]),content:a(()=>[e(t)&&o.value==="test"?(r(),s(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(),s(x,{key:1,hook:e(t)},null,8,["hook"])):n("",!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"])):n("",!0)]}),_:1}))}});export{ue as default};
//# sourceMappingURL=HookEditor.5a5da99a.js.map
