n8n-editor-ui
Version:
Workflow Editor UI for n8n
2 lines • 1.51 kB
JavaScript
(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`n8n@2.16.1`}}catch{}})();try{(function(){var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`c73ccbea-c083-4e60-92fc-b73984348c73`,e._sentryDebugIdIdentifier=`sentry-dbid-c73ccbea-c083-4e60-92fc-b73984348c73`)})()}catch{}import{Ft as e,S as t,W as n,gt as r}from"./vue.runtime.esm-bundler-C3C09Zii.js";import{ct as i}from"./src-XqE2yCpG.js";import{fr as a,hr as o}from"./users.store-xP93bV7X.js";import{Bc as s,Xo as c}from"./constants-DuQbSl-q.js";import{T as l}from"./useRootStore-XEREVjMN.js";import{An as u,t as d}from"./settings.store-CAFiYCMH.js";function f(e,t){return typeof e==`string`&&t.includes(e)}var p=l(u.CHAT_HUB_PANEL,()=>{let l=i(),u=o(),p=d(),m=a(),h=e(!1),g=e(!1),_=t(()=>p.isChatFeatureEnabled&&u.isVariantEnabled(s.name,s.variant));function v(){f(l?.name,c)&&(h.value=!0,m.track(`User opened floating chat panel`,{source:`canvas`}))}function y(){g.value?(g.value=!1,n(()=>{h.value=!1})):h.value=!1}function b(){g.value=!0,m.track(`User popped out floating chat panel`,{source:`canvas`})}return r(()=>l?.name,e=>{!e||!h.value||f(e,c)||y()}),{isOpen:h,isPoppedOut:g,isFloatingChatEnabled:_,open:v,close:y,popOut:b}});export{p as t};
//# sourceMappingURL=chatHubPanel.store-BHZAKW4-.js.map