import{d as u,ey as f,b as n,d2 as m,e as h,u as e,f as o,c as g,w as a,bu as k,cy as y,v}from"./registerWidgets.d6e66474.js";import{T as b,_ as w,a as d}from"./UnsavedChangesHandler.vue_vue_type_script_setup_true_lang.7699558a.js";import{L as B}from"./CircularLoading.2744e4b0.js";import{_ as I,a as x}from"./HookTester.vue_vue_type_script_setup_true_lang.6963d3e1.js";import{a as C}from"./asyncComputed.5c362931.js";import{H as D}from"./hooks.a4b6e8df.js";import{B as E}from"./BackButton.000dfb31.js";import{_ as H}from"./SaveButton.vue_vue_type_script_setup_true_lang.ed344e02.js";import{S,L as $}from"./SmartConsole.85b38544.js";import{_ as L}from"./DocsButton.vue_vue_type_script_setup_true_lang.3de0e9fb.js";import"./lottie.b059da2e.js";import"./Title.dd14f24f.js";import"./transButton.63ba82b1.js";import"./Form.fafe4307.js";import"./index.3aa3e246.js";import"./index.3e93f088.js";import"./index.55d44a5a.js";import"./index.4d1ecd17.js";import"./index.4a78a071.js";import"./activeRecord.1009e596.js";import"./pubsub.9e806cff.js";import"./forms.2e38c299.js";import"./dashes.811e4dd5.js";import"./index.977cda87.js";import"./jobs.b7c93ebe.js";import"./workspaces.5e4a741d.js";import"./icons.4be6cb33.js";import"./uuid.baa8712a.js";import"./storage.d7eb729a.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[r]="004560c7-eb77-4700-86f9-deca1736cea6",s._sentryDebugIdIdentifier="sentry-dbid-004560c7-eb77-4700-86f9-deca1736cea6")}catch{}})();const P={class:"page"},T={key:0,class:"loading"},M=u({__name:"HookEditor",setup(s){const r=f(),i=$.create(),{loading:p,result:t}=C(async()=>await D.get(r.params.hookPath)),_=async c=>{t.value&&(t.value.path=c,await t.value.save())};return(c,N)=>{var l;return n(),m(k,null,[h("div",P,[e(p)||!e(t)?(n(),m("div",T,[o(B)])):(n(),g(b,{key:1,class:"editor"},{left:a(()=>[o(E,{link:"/_editor/hooks"})]),right:a(()=>[o(e(y),null,{default:a(()=>[o(L,{path:"hooks"}),o(H,{model:e(t)},null,8,["model"])]),_:1})]),default:a(()=>[o(d,{title:"Debug"},{default:a(()=>[o(I,{class:"content",hook:e(t),"log-service":e(i)},null,8,["hook","log-service"])]),_:1}),o(d,{title:"Settings"},{default:a(()=>[o(x,{class:"content",hook:e(t),onUpdatePath:_},null,8,["hook"])]),_:1})]),_:1})),o(S,{"log-service":e(i),runtime:"hooks"},null,8,["log-service"])]),o(w,{"has-changes":(l=e(t))==null?void 0:l.hasChanges()},null,8,["has-changes"])],64)}}});const _o=v(M,[["__scopeId","data-v-b6c8e500"]]);export{_o as default};
//# sourceMappingURL=HookEditor.fefbebe8.js.map
