import{d as g,ez as v,eA as b,r as k,b as r,c as a,w as s,u as e,f as u,ew as n}from"./outputWidgets.ec044eb8.js";import{S as h,L as w}from"./SmartConsole.465b88e6.js";import{a as x}from"./asyncComputed.70e28ece.js";import{H as B}from"./hooks.145c1403.js";import{_ as C}from"./SaveButton.vue_vue_type_script_setup_true_lang.c4f118cc.js";import{_ as H}from"./DocsButton.vue_vue_type_script_setup_true_lang.75cdce33.js";import{B as I}from"./BaseLayout.8ae9d39e.js";import{_ as S,a as T}from"./HookSettings.vue_vue_type_script_setup_true_lang.43b35b31.js";import{c as A}from"./index.10d6c7c5.js";import{A as _,T as D}from"./TabPane.e94c4a37.js";import"./forms.f110dabf.js";import"./activeRecord.eb528dd4.js";import"./pubsub.33b79e26.js";import"./dashes.e0b0def7.js";import"./index.6e43b5b9.js";import"./jobs.8fb07b74.js";import"./workspaces.b17a6d0e.js";import"./url.a1da359b.js";import"./icons.a554ebda.js";import"./Title.85fa9137.js";import"./index.d97f12e1.js";import"./uuid.7d798e0e.js";import"./ant-design.50ece8f6.js";import"./StageRunSelector.vue_vue_type_script_setup_true_lang.cf37b4c9.js";import"./RunButton.vue_vue_type_script_setup_true_lang.077b2d92.js";import"./index.37c3a347.js";import"./index.cd569242.js";import"./CollapsePanel.8e659084.js";import"./index.185a1704.js";import"./index.1a867dcf.js";import"./index.67245513.js";import"./Form.316ac787.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]="d000f245-4621-4a04-87a5-1b6aaf9347f5",i._sentryDebugIdIdentifier="sentry-dbid-d000f245-4621-4a04-87a5-1b6aaf9347f5")}catch{}})();const le=g({__name:"HookEditor",setup(i){const m=v(),l=b(),f=k(null),o=k("test");function y(){m.push({name:"hooks"})}const{result:t}=x(()=>B.get(l.params.hookPath)),c=w.create();return(R,d)=>(r(),a(I,null,{navbar:s(()=>[e(t)?(r(),a(e(A),{key:0,title:e(t).title,style:{padding:"5px 10px"},onBack:y},{footer:s(()=>[u(e(D),{"active-key":o.value,"onUpdate:activeKey":d[0]||(d[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:f,hook:e(t),"log-service":e(c)},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(c),onRestart:(p=f.value)==null?void 0:p.runHook},null,8,["log-service","onRestart"])):n("",!0)]}),_:1}))}});export{le as default};
//# sourceMappingURL=HookEditor.31d80190.js.map
