import{d as y,ex as g,ey as v,r as b,b as r,c as a,w as s,u as e,f as l,eu as i}from"./registerWidgets.faf49e08.js";import{S as h,L as w}from"./SmartConsole.6d2b3045.js";import{a as x}from"./asyncComputed.70c50dd2.js";import{H as B}from"./hooks.487cca4e.js";import{_ as C}from"./SaveButton.vue_vue_type_script_setup_true_lang.2808d1a6.js";import{_ as H}from"./DocsButton.vue_vue_type_script_setup_true_lang.d6a2f39c.js";import{B as I}from"./BaseLayout.2545ec4d.js";import{_ as S,a as T}from"./HookSettings.vue_vue_type_script_setup_true_lang.bb769446.js";import{c as D}from"./index.d5a89d63.js";import{a as k,T as R}from"./index.65170895.js";import"./forms.87eac015.js";import"./activeRecord.a639288f.js";import"./pubsub.04fb37b2.js";import"./dashes.e9024cfc.js";import"./index.b0babef5.js";import"./jobs.96e90e4c.js";import"./workspaces.5a397dd7.js";import"./icons.18b78fe3.js";import"./Title.a7f9a7d9.js";import"./transButton.4230aac2.js";import"./FormItem.b7aa4c27.js";import"./uuid.0244e198.js";import"./storage.0aff2700.js";import"./index.2d98cc0f.js";import"./index.92a90235.js";import"./index.e6dcb33c.js";import"./index.fcf76a3b.js";import"./Form.4d822450.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]="e74bc9da-5f8b-4014-b5d9-bba81b3734fc",n._sentryDebugIdIdentifier="sentry-dbid-e74bc9da-5f8b-4014-b5d9-bba81b3734fc")}catch{}})();const ie=y({__name:"HookEditor",setup(n){const m=g(),c=v(),p=b(null),o=b("test");function _(){m.push({name:"hooks"})}const{result:t}=x(()=>B.get(c.params.hookPath)),f=w.create();return($,d)=>(r(),a(I,null,{navbar:s(()=>[e(t)?(r(),a(e(D),{key:0,title:e(t).title,onBack:_},{footer:s(()=>[l(e(R),{"active-key":o.value,"onUpdate:activeKey":d[0]||(d[0]=u=>o.value=u)},{default:s(()=>[l(e(k),{key:"test",tab:"Test"}),l(e(k),{key:"settings",tab:"Settings"})]),_:1},8,["active-key"])]),extra:s(()=>[l(H,{path:"hooks"}),o.value==="settings"?(r(),a(C,{key:0,model:e(t)},null,8,["model"])):i("",!0)]),_:1},8,["title"])):i("",!0)]),content:s(()=>[e(t)&&o.value==="test"?(r(),a(S,{key:0,ref_key:"tester",ref:p,hook:e(t),"log-service":e(f)},null,8,["hook","log-service"])):i("",!0),e(t)&&o.value==="settings"?(r(),a(T,{key:1,hook:e(t)},null,8,["hook"])):i("",!0)]),footer:s(()=>{var u;return[e(t)&&o.value==="test"?(r(),a(h,{key:0,runtime:"forms","log-service":e(f),onRestart:(u=p.value)==null?void 0:u.runHook},null,8,["log-service","onRestart"])):i("",!0)]}),_:1}))}});export{ie as default};
//# sourceMappingURL=HookEditor.7a402af1.js.map
