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.8a1294ac.js";import{S as h,L as w}from"./SmartConsole.c8a83b1e.js";import{a as x}from"./asyncComputed.3699cd44.js";import{H as B}from"./hooks.e742fa23.js";import{_ as C}from"./SaveButton.vue_vue_type_script_setup_true_lang.e71a8bc9.js";import{_ as H}from"./DocsButton.vue_vue_type_script_setup_true_lang.417f95a4.js";import{B as I}from"./BaseLayout.5edfc1d1.js";import{_ as S,a as T}from"./HookSettings.vue_vue_type_script_setup_true_lang.03c58d88.js";import{c as D}from"./index.d1c22e15.js";import{A as _,T as R}from"./TabPane.50d60f15.js";import"./forms.66c73721.js";import"./activeRecord.4f50a80e.js";import"./pubsub.5ff7800d.js";import"./dashes.20f3fde0.js";import"./runnerData.9cd8b9cf.js";import"./jobs.72cd80f9.js";import"./workspaces.744a8260.js";import"./url.9a5c0e6d.js";import"./icons.25b21aee.js";import"./Title.c5e29cf7.js";import"./index.91683b65.js";import"./uuid.a09f1b9a.js";import"./ant-design.8f569ff8.js";import"./StageRunSelector.vue_vue_type_script_setup_true_lang.85b36002.js";import"./RunButton.vue_vue_type_script_setup_true_lang.8c93e503.js";import"./index.7e76acc9.js";import"./index.bf7f5369.js";import"./CollapsePanel.4c5c4fe6.js";import"./index.0f4f2049.js";import"./index.d5d7d1dc.js";import"./index.4fc6eb1b.js";import"./Form.1860c0ed.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]="4b2479f0-0ac3-45f6-9f76-03be2fb29d4a",i._sentryDebugIdIdentifier="sentry-dbid-4b2479f0-0ac3-45f6-9f76-03be2fb29d4a")}catch{}})();const fe=b({__name:"HookEditor",setup(i){const m=g(),f=v(),l=k(null),o=k("test");function y(){m.push({name:"hooks"})}const{result:t}=x(()=>B.get(f.params.hookPath)),c=w.create();return($,d)=>(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":d[0]||(d[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:l,hook:e(t),"log-service":e(c)},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(c),onRestart:(p=l.value)==null?void 0:p.runHook},null,8,["log-service","onRestart"])):n("",!0)]}),_:1}))}});export{fe as default};
//# sourceMappingURL=HookEditor.0edecc28.js.map
