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 as c,eu as i}from"./registerWidgets.7c26f935.js";import{S as h,L as w}from"./SmartConsole.299d0349.js";import{a as x}from"./asyncComputed.cfc29dee.js";import{H as B}from"./hooks.3d13470e.js";import{_ as C}from"./SaveButton.vue_vue_type_script_setup_true_lang.72254330.js";import{_ as H}from"./DocsButton.vue_vue_type_script_setup_true_lang.d8e65587.js";import{B as I}from"./BaseLayout.772b473a.js";import{_ as S,a as T}from"./HookSettings.vue_vue_type_script_setup_true_lang.bc63518b.js";import{c as D}from"./index.4f17481f.js";import{a as _,T as R}from"./index.dee97b44.js";import"./forms.4f444334.js";import"./activeRecord.d07557d8.js";import"./pubsub.c3a63076.js";import"./dashes.0c09108e.js";import"./index.1d4b40b5.js";import"./jobs.dad8f341.js";import"./workspaces.2b9ec268.js";import"./icons.d315d375.js";import"./Title.9a021125.js";import"./uuid.18e8e762.js";import"./storage.53222b6f.js";import"./index.a762c3c3.js";import"./index.f889318a.js";import"./index.9a7a96c9.js";import"./index.611607c8.js";import"./Form.ac091445.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]="72e91967-cbe6-4f91-a9f5-2b9c77fc90dc",n._sentryDebugIdIdentifier="sentry-dbid-72e91967-cbe6-4f91-a9f5-2b9c77fc90dc")}catch{}})();const ae=b({__name:"HookEditor",setup(n){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)),p=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(()=>[c(e(R),{"active-key":o.value,"onUpdate:activeKey":d[0]||(d[0]=u=>o.value=u)},{default:a(()=>[c(e(_),{key:"test",tab:"Test"}),c(e(_),{key:"settings",tab:"Settings"})]),_:1},8,["active-key"])]),extra:a(()=>[c(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:l,hook:e(t),"log-service":e(p)},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(p),onRestart:(u=l.value)==null?void 0:u.runHook},null,8,["log-service","onRestart"])):i("",!0)]}),_:1}))}});export{ae as default};
//# sourceMappingURL=HookEditor.a0eeaebc.js.map
