UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

2 lines 2.48 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]=`42208db9-5458-4691-8585-dbfae731df38`,e._sentryDebugIdIdentifier=`sentry-dbid-42208db9-5458-4691-8585-dbfae731df38`)})()}catch{}import{$ as e,A as t,E as n,N as r,S as i,Sn as a,Wt as o,_n as s,j as c,yt as l}from"./vue.runtime.esm-bundler-D9KLAxvJ.js";import{bt as u}from"./_MapCache-CUJwh2qp.js";import{Zi as d,lt as f}from"./src-wni2AGA3.js";import{t as p}from"./_plugin-vue_export-helper-Dm3nT7Ps.js";import{It as m}from"./users.store-BHWXXawf.js";import{n as h,t as g}from"./ProjectIcon-BBMQDCgu.js";var _=p(r({__name:`ProjectBreadcrumb`,props:{currentProject:{default:void 0},isDragging:{type:Boolean,default:!1},isShared:{type:Boolean,default:!1}},emits:[`projectHover`,`projectDrop`],setup(r,{emit:p}){let _=r,v=p,y=u(),b=i(()=>_.isShared?{type:`icon`,value:`share`}:_.currentProject?.type===m.Personal?{type:`icon`,value:`user`}:_.currentProject?.name?h(_.currentProject.icon)?_.currentProject.icon:{type:`icon`,value:`layers`}:{type:`icon`,value:`house`}),x=i(()=>_.isShared?y.baseText(`projects.menu.shared`):_.currentProject?.type===m.Personal?y.baseText(`projects.menu.personal`):_.currentProject?.name),S=i(()=>_.isShared?`/shared`:_.currentProject?`/projects/${_.currentProject.id}`:`/home`),C=()=>{v(`projectHover`)},w=()=>{_.isDragging&&v(`projectDrop`)};return(i,u)=>(e(),n(`div`,{class:s({[i.$style[`home-project`]]:!0,[i.$style.dragging]:r.isDragging}),"data-test-id":`home-project`,"data-droppable":``,onMouseenter:C,onMouseup:u[0]||=e=>r.isDragging?w():null},[c(o(f),{to:S.value,class:s([i.$style[`project-link`]])},{default:l(()=>[c(g,{icon:b.value,"border-less":!0,size:`mini`,title:x.value},null,8,[`icon`,`title`]),c(o(d),{size:`medium`,color:`text-base`,class:s(i.$style[`project-label`]),title:x.value},{default:l(()=>[t(a(x.value),1)]),_:1},8,[`class`,`title`])]),_:1},8,[`to`,`class`])],34))}}),[[`__cssModules`,{$style:{"home-project":`_home-project_12ho2_125`,dragging:`_dragging_12ho2_130`,"project-link":`_project-link_12ho2_143`,"project-label":`_project-label_12ho2_149`}}]]);export{_ as t}; //# sourceMappingURL=ProjectBreadcrumb-Dme2WBZU.js.map