import{d as b,ey as g,ez as v,r as _,b as r,c as s,w as a,u as e,f as n,ev as m}from"./outputWidgets.7bdcec0a.js";import{_ as h,S as w,L as x}from"./Debugger.vue_vue_type_script_setup_true_lang.d89c8bc1.js";import{a as B}from"./asyncComputed.cfb98789.js";import{H as C}from"./hooks.23cddd97.js";import{_ as H}from"./SaveButton.vue_vue_type_script_setup_true_lang.04051643.js";import{_ as I}from"./DocsButton.vue_vue_type_script_setup_true_lang.53314c28.js";import{B as S}from"./BaseLayout.8a75f5c8.js";import{_ as T,a as $}from"./HookSettings.vue_vue_type_script_setup_true_lang.77757c7f.js";import{c as D}from"./index.daee6445.js";import{A as k,T as R}from"./TabPane.80ddb907.js";import"./forms.8c9f59fc.js";import"./activeRecord.84d52553.js";import"./pubsub.c455bec9.js";import"./dashes.a2ed9201.js";import"./runnerData.9bca67ea.js";import"./jobs.8b72f085.js";import"./workspaces.be6d809d.js";import"./url.5caacc63.js";import"./icons.6934ad19.js";import"./Title.9c0d0c5f.js";import"./index.a9a6d5a2.js";import"./uuid.d3821bce.js";import"./Text.94a8ea41.js";import"./index.23129d61.js";import"./ant-design.b9d9c398.js";import"./StageRunSelector.vue_vue_type_script_setup_true_lang.b5da33a6.js";import"./RunButton.vue_vue_type_script_setup_true_lang.b67f1f55.js";import"./index.972d8614.js";import"./index.a2310446.js";import"./CollapsePanel.3b9bef6a.js";import"./index.125aa6b3.js";import"./index.d2a75d88.js";import"./Form.f84b91b7.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]="92f9bc1b-7b7b-47d3-a1c0-0f4f89919c47",i._sentryDebugIdIdentifier="sentry-dbid-92f9bc1b-7b7b-47d3-a1c0-0f4f89919c47")}catch{}})();const le=b({__name:"HookEditor",setup(i){const p=g(),c=v(),f=_(null),o=_("test");function y(){p.push({name:"hooks"})}const{result:t}=B(()=>C.get(c.params.hookPath)),l=x.create();return(A,d)=>(r(),s(S,null,{navbar:a(()=>[e(t)?(r(),s(e(D),{key:0,title:e(t).title,style:{padding:"5px 10px"},onBack:y},{footer:a(()=>[n(e(R),{"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(h),n(I,{path:"hooks"}),o.value==="settings"?(r(),s(H,{key:0,model:e(t)},null,8,["model"])):m("",!0)]),_:1},8,["title"])):m("",!0)]),content:a(()=>[e(t)&&o.value==="test"?(r(),s(T,{key:0,ref_key:"tester",ref:f,hook:e(t),"log-service":e(l)},null,8,["hook","log-service"])):m("",!0),e(t)&&o.value==="settings"?(r(),s($,{key:1,hook:e(t)},null,8,["hook"])):m("",!0)]),footer:a(()=>{var u;return[e(t)&&o.value==="test"?(r(),s(w,{key:0,runtime:"forms","log-service":e(l),onRestart:(u=f.value)==null?void 0:u.runHook},null,8,["log-service","onRestart"])):m("",!0)]}),_:1}))}});export{le as default};
//# sourceMappingURL=HookEditor.9ae6bfd3.js.map
