import{d as g,ey as v,ez as b,r as _,b as r,c as a,w as s,u as e,f as n,ev as m}from"./outputWidgets.a8447bcb.js";import{S as h,L as w}from"./SmartConsole.1a7a902f.js";import{a as x}from"./asyncComputed.6c2627ea.js";import{H as B}from"./hooks.9f2c5143.js";import{_ as C}from"./SaveButton.vue_vue_type_script_setup_true_lang.183ff268.js";import{_ as H}from"./DocsButton.vue_vue_type_script_setup_true_lang.e2056d48.js";import{B as I}from"./BaseLayout.f14ed0a1.js";import{_ as S,a as T}from"./HookSettings.vue_vue_type_script_setup_true_lang.78e21b30.js";import{_ as $}from"./Debugger.vue_vue_type_script_setup_true_lang.f3cfaf7f.js";import{c as D}from"./index.251d2c0f.js";import{A as k,T as R}from"./TabPane.628602f8.js";import"./forms.2a06fab8.js";import"./activeRecord.52c1b6f8.js";import"./pubsub.3b516de1.js";import"./dashes.d6e52b47.js";import"./runnerData.64650392.js";import"./jobs.0e97b322.js";import"./workspaces.11e30eec.js";import"./url.0a1547fb.js";import"./icons.6de7af10.js";import"./Title.4127a4b4.js";import"./transButton.26020e2e.js";import"./index.823e1eed.js";import"./uuid.219059f6.js";import"./ant-design.1bcd10c9.js";import"./StageRunSelector.vue_vue_type_script_setup_true_lang.75368518.js";import"./RunButton.vue_vue_type_script_setup_true_lang.ece50532.js";import"./index.152e224a.js";import"./index.71f713cd.js";import"./CollapsePanel.5153ab25.js";import"./index.5fa32c06.js";import"./index.ee9a096e.js";import"./index.c058ebd2.js";import"./Form.a869b3cf.js";import"./Text.722e2789.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]="5457ea48-faae-4391-8215-419c511dfa8b",i._sentryDebugIdIdentifier="sentry-dbid-5457ea48-faae-4391-8215-419c511dfa8b")}catch{}})();const _e=g({__name:"HookEditor",setup(i){const p=v(),l=b(),f=_(null),o=_("test");function y(){p.push({name:"hooks"})}const{result:t}=x(()=>B.get(l.params.hookPath)),c=w.create();return(A,d)=>(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(()=>[n(e(R),{"active-key":o.value,"onUpdate:activeKey":d[0]||(d[0]=u=>o.value=u)},{default:s(()=>[n(e(k),{key:"test",tab:"Test"}),n(e(k),{key:"settings",tab:"Settings"})]),_:1},8,["active-key"])]),extra:s(()=>[n($),n(H,{path:"hooks"}),o.value==="settings"?(r(),a(C,{key:0,model:e(t)},null,8,["model"])):m("",!0)]),_:1},8,["title"])):m("",!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"])):m("",!0),e(t)&&o.value==="settings"?(r(),a(T,{key:1,hook:e(t)},null,8,["hook"])):m("",!0)]),footer:s(()=>{var u;return[e(t)&&o.value==="test"?(r(),a(h,{key:0,runtime:"forms","log-service":e(c),onRestart:(u=f.value)==null?void 0:u.runHook},null,8,["log-service","onRestart"])):m("",!0)]}),_:1}))}});export{_e as default};
//# sourceMappingURL=HookEditor.c117c92c.js.map
