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 c,ew as n}from"./outputWidgets.9b7c29ed.js";import{S as h,L as w}from"./SmartConsole.4a9a44c1.js";import{a as x}from"./asyncComputed.6a414bed.js";import{H as B}from"./hooks.146679d7.js";import{_ as C}from"./SaveButton.vue_vue_type_script_setup_true_lang.4fcf11c4.js";import{_ as H}from"./DocsButton.vue_vue_type_script_setup_true_lang.33d71eda.js";import{B as I}from"./BaseLayout.0edd5899.js";import{_ as S,a as T}from"./HookSettings.vue_vue_type_script_setup_true_lang.f505b4cb.js";import{c as A}from"./index.530f7175.js";import{A as _,T as D}from"./TabPane.40b534c7.js";import"./forms.d2f1a2f3.js";import"./activeRecord.264ba54c.js";import"./pubsub.f1df5000.js";import"./dashes.920727b6.js";import"./index.31be9da9.js";import"./jobs.2d5da298.js";import"./workspaces.a26f4872.js";import"./url.c61c9940.js";import"./icons.7c250a15.js";import"./Title.55bc3e25.js";import"./index.d8ed1958.js";import"./uuid.5cd70888.js";import"./ant-design.9b0f163e.js";import"./StageRunSelector.vue_vue_type_script_setup_true_lang.81954ce9.js";import"./RunButton.vue_vue_type_script_setup_true_lang.966a41b1.js";import"./index.f2f11f30.js";import"./index.817f3ac7.js";import"./CollapsePanel.7557b7a0.js";import"./index.316bc1ac.js";import"./index.b1ad1cca.js";import"./index.5695780b.js";import"./Form.77e50956.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]="ffdec7cd-6b88-40d9-863c-2691230521c4",i._sentryDebugIdIdentifier="sentry-dbid-ffdec7cd-6b88-40d9-863c-2691230521c4")}catch{}})();const ue=g({__name:"HookEditor",setup(i){const m=v(),u=b(),l=k(null),o=k("test");function y(){m.push({name:"hooks"})}const{result:t}=x(()=>B.get(u.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:y},{footer:a(()=>[c(e(D),{"active-key":o.value,"onUpdate:activeKey":d[0]||(d[0]=p=>o.value=p)},{default:a(()=>[c(e(_),{key:"test",tab:"Test"}),c(e(_),{key:"settings",tab:"Settings"})]),_:1},8,["active-key"])]),extra:a(()=>[c(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:l,hook:e(t),"log-service":e(f)},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(f),onRestart:(p=l.value)==null?void 0:p.runHook},null,8,["log-service","onRestart"])):n("",!0)]}),_:1}))}});export{ue as default};
//# sourceMappingURL=HookEditor.5a6ee8b6.js.map
