import{d as y,eA as g,eB as v,r as _,b as r,c as s,w as a,u as e,f as n,ew as m}from"./outputWidgets.562826ac.js";import{S as h,L as w}from"./SmartConsole.cf3476b7.js";import{a as x}from"./asyncComputed.df2d9552.js";import{H as B}from"./hooks.df04f598.js";import{_ as C}from"./SaveButton.vue_vue_type_script_setup_true_lang.cb63a1cf.js";import{_ as H}from"./DocsButton.vue_vue_type_script_setup_true_lang.9c0b8f6c.js";import{B as I}from"./BaseLayout.544f6749.js";import{_ as S,a as T}from"./HookSettings.vue_vue_type_script_setup_true_lang.f177c055.js";import{_ as $}from"./Debugger.vue_vue_type_script_setup_true_lang.2a4a526e.js";import{c as A}from"./index.ab0f4a56.js";import{A as k,T as D}from"./TabPane.84849352.js";import"./forms.5ca19b70.js";import"./activeRecord.6bb1bd7f.js";import"./pubsub.7185b91b.js";import"./dashes.b69dfa2c.js";import"./runnerData.52ec0396.js";import"./jobs.8122e83b.js";import"./workspaces.5bce544b.js";import"./url.5a1383d2.js";import"./icons.63405824.js";import"./FormItem.fc4e7da8.js";import"./index.01bf1f2c.js";import"./uuid.aae1573d.js";import"./ant-design.1ee2ab2c.js";import"./transButton.17480f27.js";import"./StageRunSelector.vue_vue_type_script_setup_true_lang.8fca959b.js";import"./RunButton.vue_vue_type_script_setup_true_lang.619bfa77.js";import"./index.f99d7fdc.js";import"./CollapsePanel.5e649f25.js";import"./index.9cdd1b35.js";import"./index.583cd440.js";import"./Text.712cfc26.js";import"./Base.bf8dc0b1.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]="cbf7e5d2-e9c2-4ab8-8e41-dbb7d9f903b9",i._sentryDebugIdIdentifier="sentry-dbid-cbf7e5d2-e9c2-4ab8-8e41-dbb7d9f903b9")}catch{}})();const fe=y({__name:"HookEditor",setup(i){const p=g(),l=v(),c=_(null),o=_("test");function b(){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:b},{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{fe as default};
//# sourceMappingURL=HookEditor.fb98c69d.js.map
