UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

2 lines 1.88 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.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]=`379e6f85-c22b-45dc-97ed-c6f82284c95d`,e._sentryDebugIdIdentifier=`sentry-dbid-379e6f85-c22b-45dc-97ed-c6f82284c95d`)})()}catch{}import{$ as e,A as t,C as n,E as r,N as i,S as a,Sn as o,Wt as s,bt as c,it as l,j as u,ot as d,yt as f}from"./vue.runtime.esm-bundler-C3C09Zii.js";import{at as p}from"./core-Bz5WjPxS.js";import{Di as m,Qi as h,Xi as g}from"./src-XqE2yCpG.js";import{t as _}from"./_plugin-vue_export-helper-CIL7EULb.js";import{Bt as v}from"./users.store-xP93bV7X.js";import{t as y}from"./pushConnection.store-D7Wwlyyp.js";var b={key:0,class:`connection-lost`},x={class:`connection-lost-content`},S=_(i({__name:`ConnectionTracker`,setup(i){let _=y(),S=v(),C=p(),w=a(()=>S.isOnline?_.isConnectionRequested&&!_.isConnected&&!_.isConnecting?{hasError:!0,message:`pushConnection.error.message`,tooltip:`pushConnection.error.tooltip`}:{hasError:!1,message:null,tooltip:null}:{hasError:!0,message:`network.error.message`,tooltip:`network.error.tooltip`});return(i,a)=>{let p=d(`n8n-html`);return e(),r(`span`,null,[w.value.hasError?(e(),r(`div`,b,[u(s(m),{placement:`bottom-end`},{content:f(()=>[c(n(`div`,null,null,512),[[p,s(C).baseText(w.value.tooltip)]])]),default:f(()=>[n(`span`,x,[u(s(h),{icon:`triangle-alert`,color:`warning`}),u(s(g),{size:`small`},{default:f(()=>[t(o(s(C).baseText(w.value.message)),1)]),_:1})])]),_:1})])):l(i.$slots,`default`,{key:1},void 0,!0)])}}}),[[`__scopeId`,`data-v-6825e866`]]);export{S as t}; //# sourceMappingURL=ConnectionTracker-DKoLG4SI.js.map