import{d as y,eA as g,eB as v,r as _,b as r,c as s,w as a,u as e,f as n,ew as m}from"./outputWidgets.427e9347.js";import{S as h,L as w}from"./SmartConsole.191e476a.js";import{a as x}from"./asyncComputed.32abd7c2.js";import{H as B}from"./hooks.4b184497.js";import{_ as C}from"./SaveButton.vue_vue_type_script_setup_true_lang.a846a0dc.js";import{_ as H}from"./DocsButton.vue_vue_type_script_setup_true_lang.09beac58.js";import{B as I}from"./BaseLayout.0abe2ed6.js";import{_ as S,a as T}from"./HookSettings.vue_vue_type_script_setup_true_lang.ec0ccf7a.js";import{_ as $}from"./Debugger.vue_vue_type_script_setup_true_lang.fec54b81.js";import{c as A}from"./index.e58605b8.js";import{A as k,T as D}from"./TabPane.7a3514c0.js";import"./forms.9ae53624.js";import"./activeRecord.91f10272.js";import"./pubsub.9b59356e.js";import"./dashes.c44ff20c.js";import"./runnerData.f3941ca5.js";import"./jobs.00698289.js";import"./workspaces.4100d442.js";import"./url.9044ee0d.js";import"./icons.2a865956.js";import"./FormItem.e1548cef.js";import"./index.8fcd530b.js";import"./uuid.dfb0647f.js";import"./ant-design.484e81b9.js";import"./transButton.470f2fe6.js";import"./StageRunSelector.vue_vue_type_script_setup_true_lang.339641a9.js";import"./RunButton.vue_vue_type_script_setup_true_lang.85994879.js";import"./index.11baa8c3.js";import"./CollapsePanel.bad9e978.js";import"./index.3804082b.js";import"./index.36e3a141.js";import"./Text.31458a16.js";import"./Base.dbea8db9.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]="57b3ae28-047b-46ac-b139-b7b1ee2d7346",i._sentryDebugIdIdentifier="sentry-dbid-57b3ae28-047b-46ac-b139-b7b1ee2d7346")}catch{}})();const fe=y({__name:"HookEditor",setup(i){const p=g(),l=v(),c=_(null),o=_("test");function b(){p.push({name:"hooks"})}const{result:t}=x(()=>B.get(l.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:b},{footer:a(()=>[n(e(D),{"active-key":o.value,"onUpdate:activeKey":d[0]||(d[0]=u=>o.value=u)},{default:a(()=>[n(e(k),{key:"test",tab:"Test"}),n(e(k),{key:"settings",tab:"Settings"})]),_:1},8,["active-key"])]),extra:a(()=>[n($),n(H,{path:"hooks"}),o.value==="settings"?(r(),s(C,{key:0,model:e(t)},null,8,["model"])):m("",!0)]),_:1},8,["title"])):m("",!0)]),content:a(()=>[e(t)&&o.value==="test"?(r(),s(S,{key:0,ref_key:"tester",ref:c,hook:e(t),"log-service":e(f)},null,8,["hook","log-service"])):m("",!0),e(t)&&o.value==="settings"?(r(),s(T,{key:1,hook:e(t)},null,8,["hook"])):m("",!0)]),footer:a(()=>{var u;return[e(t)&&o.value==="test"?(r(),s(h,{key:0,runtime:"forms","log-service":e(f),onRestart:(u=c.value)==null?void 0:u.runHook},null,8,["log-service","onRestart"])):m("",!0)]}),_:1}))}});export{fe as default};
//# sourceMappingURL=HookEditor.dec7fcc7.js.map
