import{d as b,ex as g,ey as v,r as k,b as r,c as s,w as a,u as e,f,eu as i}from"./registerWidgets.ca9618c6.js";import{S as h,L as w}from"./SmartConsole.445faa75.js";import{a as x}from"./asyncComputed.f26ab310.js";import{H as B}from"./hooks.9e493a50.js";import{_ as C}from"./SaveButton.vue_vue_type_script_setup_true_lang.a9541ad1.js";import{_ as H}from"./DocsButton.vue_vue_type_script_setup_true_lang.4a4a53ac.js";import{B as I}from"./BaseLayout.f93a7179.js";import{_ as S,a as T}from"./HookSettings.vue_vue_type_script_setup_true_lang.10e04ba2.js";import{c as D}from"./index.980eab3b.js";import{A as _,T as R}from"./TabPane.db1a28e3.js";import"./forms.29c990b7.js";import"./activeRecord.fa727ba5.js";import"./pubsub.197ceb4e.js";import"./dashes.cb835544.js";import"./index.0504862b.js";import"./jobs.915e461d.js";import"./workspaces.6d55a87a.js";import"./icons.71da0300.js";import"./Title.f740cc19.js";import"./index.c0bd1022.js";import"./uuid.77949d68.js";import"./storage.a502fdce.js";import"./ant-design.c8da8814.js";import"./index.76111b57.js";import"./index.6a4df70c.js";import"./index.7c566b28.js";import"./index.11818713.js";import"./Form.fac64e0c.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},m=new Error().stack;m&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[m]="01919e6f-d6b1-4b1e-8f4f-57338a81cdeb",n._sentryDebugIdIdentifier="sentry-dbid-01919e6f-d6b1-4b1e-8f4f-57338a81cdeb")}catch{}})();const ie=b({__name:"HookEditor",setup(n){const m=g(),l=v(),p=k(null),o=k("test");function y(){m.push({name:"hooks"})}const{result:t}=x(()=>B.get(l.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,onBack:y},{footer:a(()=>[f(e(R),{"active-key":o.value,"onUpdate:activeKey":d[0]||(d[0]=u=>o.value=u)},{default:a(()=>[f(e(_),{key:"test",tab:"Test"}),f(e(_),{key:"settings",tab:"Settings"})]),_:1},8,["active-key"])]),extra:a(()=>[f(H,{path:"hooks"}),o.value==="settings"?(r(),s(C,{key:0,model:e(t)},null,8,["model"])):i("",!0)]),_:1},8,["title"])):i("",!0)]),content:a(()=>[e(t)&&o.value==="test"?(r(),s(S,{key:0,ref_key:"tester",ref:p,hook:e(t),"log-service":e(c)},null,8,["hook","log-service"])):i("",!0),e(t)&&o.value==="settings"?(r(),s(T,{key:1,hook:e(t)},null,8,["hook"])):i("",!0)]),footer:a(()=>{var u;return[e(t)&&o.value==="test"?(r(),s(h,{key:0,runtime:"forms","log-service":e(c),onRestart:(u=p.value)==null?void 0:u.runHook},null,8,["log-service","onRestart"])):i("",!0)]}),_:1}))}});export{ie as default};
//# sourceMappingURL=HookEditor.9d316d41.js.map
