import{d as b,ey as g,ez as v,r as k,b as r,c as a,w as s,u as e,f as u,ev as n}from"./outputWidgets.942e04a7.js";import{S as h,L as w}from"./SmartConsole.e0f7c581.js";import{a as x}from"./asyncComputed.581a6d32.js";import{H as B}from"./hooks.0db879f8.js";import{_ as C}from"./SaveButton.vue_vue_type_script_setup_true_lang.50260a39.js";import{_ as H}from"./DocsButton.vue_vue_type_script_setup_true_lang.01e0f656.js";import{B as I}from"./BaseLayout.d874b5ce.js";import{_ as S,a as T}from"./HookSettings.vue_vue_type_script_setup_true_lang.8fdfa1a5.js";import{c as D}from"./index.e7605f26.js";import{A as _,T as R}from"./TabPane.7d8b12fe.js";import"./forms.4f96615b.js";import"./activeRecord.c49c8827.js";import"./pubsub.c4874b0f.js";import"./dashes.6b0715ff.js";import"./runnerData.e597f90f.js";import"./jobs.a4c576d9.js";import"./workspaces.cf573e29.js";import"./url.c27b4b3f.js";import"./icons.c37bd5be.js";import"./Title.02f374d5.js";import"./index.f7b7cb5d.js";import"./uuid.40086d10.js";import"./ant-design.683e844e.js";import"./StageRunSelector.vue_vue_type_script_setup_true_lang.4265f2b8.js";import"./RunButton.vue_vue_type_script_setup_true_lang.bdfb5828.js";import"./index.bb5900cf.js";import"./index.182b7916.js";import"./CollapsePanel.ca2159fa.js";import"./index.90e879e1.js";import"./index.afbbab9c.js";import"./index.a1c695e0.js";import"./Form.fa989528.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]="dd967499-99aa-4454-90cc-1b0a0168b9d7",i._sentryDebugIdIdentifier="sentry-dbid-dd967499-99aa-4454-90cc-1b0a0168b9d7")}catch{}})();const le=b({__name:"HookEditor",setup(i){const m=g(),l=v(),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($,f)=>(r(),a(I,null,{navbar:s(()=>[e(t)?(r(),a(e(D),{key:0,title:e(t).title,style:{padding:"5px 10px"},onBack:y},{footer:s(()=>[u(e(R),{"active-key":o.value,"onUpdate:activeKey":f[0]||(f[0]=p=>o.value=p)},{default:s(()=>[u(e(_),{key:"test",tab:"Test"}),u(e(_),{key:"settings",tab:"Settings"})]),_:1},8,["active-key"])]),extra:s(()=>[u(H,{path:"hooks"}),o.value==="settings"?(r(),a(C,{key:0,model:e(t)},null,8,["model"])):n("",!0)]),_:1},8,["title"])):n("",!0)]),content:s(()=>[e(t)&&o.value==="test"?(r(),a(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(),a(T,{key:1,hook:e(t)},null,8,["hook"])):n("",!0)]),footer:s(()=>{var p;return[e(t)&&o.value==="test"?(r(),a(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.4802de51.js.map
