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 as u,ev as n}from"./outputWidgets.397b3720.js";import{S as h,L as w}from"./SmartConsole.b1e4cb7e.js";import{a as x}from"./asyncComputed.28fc9d36.js";import{H as B}from"./hooks.62ea9eb4.js";import{_ as C}from"./SaveButton.vue_vue_type_script_setup_true_lang.004d0186.js";import{_ as H}from"./DocsButton.vue_vue_type_script_setup_true_lang.b76c2b76.js";import{B as I}from"./BaseLayout.a83edf4c.js";import{_ as S,a as T}from"./HookSettings.vue_vue_type_script_setup_true_lang.da5d2098.js";import{c as D}from"./index.65a47e55.js";import{A as _,T as R}from"./TabPane.9487729b.js";import"./forms.d18d2f2f.js";import"./activeRecord.6bb6b853.js";import"./pubsub.fe0f0397.js";import"./dashes.ba5de5ab.js";import"./runnerData.e0501241.js";import"./jobs.afb91f3b.js";import"./workspaces.d5f1211a.js";import"./url.53bc193a.js";import"./icons.5e65f599.js";import"./Title.382247fb.js";import"./index.c9ea7155.js";import"./uuid.365a94b6.js";import"./ant-design.29edbf4a.js";import"./StageRunSelector.vue_vue_type_script_setup_true_lang.4d81e244.js";import"./RunButton.vue_vue_type_script_setup_true_lang.d5cce440.js";import"./index.6ad276ec.js";import"./index.40ca2e79.js";import"./CollapsePanel.fc6c100b.js";import"./index.e12747aa.js";import"./index.71272f89.js";import"./index.4acaedbb.js";import"./Form.5ce50c8f.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]="bbe24b4e-e0aa-405e-9863-3dd186ec39d0",i._sentryDebugIdIdentifier="sentry-dbid-bbe24b4e-e0aa-405e-9863-3dd186ec39d0")}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(),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(()=>[u(e(R),{"active-key":o.value,"onUpdate:activeKey":f[0]||(f[0]=p=>o.value=p)},{default:a(()=>[u(e(_),{key:"test",tab:"Test"}),u(e(_),{key:"settings",tab:"Settings"})]),_:1},8,["active-key"])]),extra:a(()=>[u(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:c,hook:e(t),"log-service":e(d)},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(d),onRestart:(p=c.value)==null?void 0:p.runHook},null,8,["log-service","onRestart"])):n("",!0)]}),_:1}))}});export{le as default};
//# sourceMappingURL=HookEditor.a0e30a8b.js.map
