UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

2 lines 1.47 kB
(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.13.4`}}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]=`bd64bc57-b018-479b-803e-91e81d1d625f`,e._sentryDebugIdIdentifier=`sentry-dbid-bd64bc57-b018-479b-803e-91e81d1d625f`)})()}catch{}import{Ft as e,S as t,W as n,gt as r}from"./vue.runtime.esm-bundler-D9KLAxvJ.js";import{gt as i}from"./src-wni2AGA3.js";import{As as a,Hr as o,en as s,sl as c}from"./users.store-BHWXXawf.js";import{el as l,fs as u}from"./constants-CIP7tKq1.js";import{j as d}from"./_baseOrderBy-CaKruttV.js";function f(e,t){return typeof e==`string`&&t.includes(e)}const p=d(c.CHAT_HUB_PANEL,()=>{let c=i(),d=o(),p=a(),m=s(),h=e(!1),g=e(!1),_=t(()=>p.isChatFeatureEnabled&&d.isVariantEnabled(l.name,l.variant));function v(){f(c?.name,u)&&(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(()=>c?.name,e=>{!e||!h.value||f(e,u)||y()}),{isOpen:h,isPoppedOut:g,isFloatingChatEnabled:_,open:v,close:y,popOut:b}});export{p as t}; //# sourceMappingURL=chatHubPanel.store-DX1OXDdC.js.map