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.e46eca28.js";import{T as b,_ as w,a as p}from"./UnsavedChangesHandler.vue_vue_type_script_setup_true_lang.27db324e.js";import{L as B}from"./CircularLoading.484aa2f6.js";import{_ as I,a as x}from"./HookTester.vue_vue_type_script_setup_true_lang.b64d484b.js";import{a as C}from"./asyncComputed.15fd30e0.js";import{H as D}from"./hooks.a12c1aa6.js";import{B as E}from"./BackButton.ff29c188.js";import{_ as H}from"./SaveButton.vue_vue_type_script_setup_true_lang.0cecc98a.js";import{S,L as $}from"./SmartConsole.13554642.js";import{_ as L}from"./DocsButton.vue_vue_type_script_setup_true_lang.b60f35ac.js";import"./lottie.2b81658b.js";import"./Title.6ee361e2.js";import"./transButton.6834f8a3.js";import"./Form.6fcc3ee8.js";import"./index.3579f3be.js";import"./index.5eb2b06c.js";import"./index.00020abd.js";import"./index.aba1cab9.js";import"./index.43b1476f.js";import"./activeRecord.d83b1b14.js";import"./pubsub.8f2ecd1e.js";import"./forms.e1efaa71.js";import"./dashes.668993c6.js";import"./index.2ced575c.js";import"./jobs.08d5f9ac.js";import"./workspaces.5c5c851b.js";import"./icons.db549bc5.js";import"./uuid.241470e3.js";import"./storage.f303ee10.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]="218c8809-451e-4593-9b81-198e17844c50",s._sentryDebugIdIdentifier="sentry-dbid-218c8809-451e-4593-9b81-198e17844c50")}catch{}})();const P={class:"page"},T={key:0,class:"loading"},M=u({__name:"HookEditor",setup(s){const r=f(),i=$.create(),{loading:d,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(d)||!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(p,{title:"Debug"},{default:a(()=>[o(I,{class:"content",hook:e(t),"log-service":e(i)},null,8,["hook","log-service"])]),_:1}),o(p,{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.c34cb993.js.map
