import{d as b,ey as g,ez as v,r as _,b as r,c as s,w as a,u as e,f as n,ev as m}from"./outputWidgets.24bc53e6.js";import{S as h,L as w}from"./SmartConsole.31c75568.js";import{a as x}from"./asyncComputed.e4b96939.js";import{H as B}from"./hooks.e39e9595.js";import{_ as C}from"./SaveButton.vue_vue_type_script_setup_true_lang.a4cb36cd.js";import{_ as H}from"./DocsButton.vue_vue_type_script_setup_true_lang.4b5f8765.js";import{B as I}from"./BaseLayout.5b763e9c.js";import{_ as S,a as T}from"./HookSettings.vue_vue_type_script_setup_true_lang.9b0103d2.js";import{_ as $}from"./Debugger.vue_vue_type_script_setup_true_lang.c83042b3.js";import{c as D}from"./index.eba97539.js";import{A as k,T as R}from"./TabPane.c8538b54.js";import"./forms.67d54833.js";import"./activeRecord.7f48ce0d.js";import"./pubsub.6b8c4d65.js";import"./dashes.4af1e6b4.js";import"./runnerData.3021bf76.js";import"./jobs.7e4ad3f1.js";import"./workspaces.81cdf281.js";import"./url.12ca99c5.js";import"./icons.346b8028.js";import"./Title.d959e45a.js";import"./transButton.082aab94.js";import"./index.3a0ced65.js";import"./uuid.2f7a2235.js";import"./ant-design.3bddf1a0.js";import"./StageRunSelector.vue_vue_type_script_setup_true_lang.80de7e6e.js";import"./RunButton.vue_vue_type_script_setup_true_lang.c038096b.js";import"./index.99dbce4e.js";import"./index.b19c9d88.js";import"./CollapsePanel.65857923.js";import"./index.d2b2175c.js";import"./index.4b05c792.js";import"./index.0ec384bd.js";import"./Form.026abd8d.js";import"./Text.9efc0467.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]="d4b5f9ed-1d55-4eeb-80fd-5cf9f2baa731",i._sentryDebugIdIdentifier="sentry-dbid-d4b5f9ed-1d55-4eeb-80fd-5cf9f2baa731")}catch{}})();const _e=b({__name:"HookEditor",setup(i){const p=g(),u=v(),l=_(null),o=_("test");function y(){p.push({name:"hooks"})}const{result:t}=x(()=>B.get(u.params.hookPath)),c=w.create();return(A,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(()=>[n(e(R),{"active-key":o.value,"onUpdate:activeKey":d[0]||(d[0]=f=>o.value=f)},{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:l,hook:e(t),"log-service":e(c)},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 f;return[e(t)&&o.value==="test"?(r(),s(h,{key:0,runtime:"forms","log-service":e(c),onRestart:(f=l.value)==null?void 0:f.runHook},null,8,["log-service","onRestart"])):m("",!0)]}),_:1}))}});export{_e as default};
//# sourceMappingURL=HookEditor.59461c4d.js.map
