n8n-editor-ui
Version:
Workflow Editor UI for n8n
2 lines • 3.6 kB
JavaScript
!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"n8n@2.13.4"}}catch(e){}}(),System.register(["./vue.runtime.esm-bundler-legacy-IafOlCW8.js","./_MapCache-legacy-DwgdC8YO.js","./src-legacy-Dwzr7bD0.js","./_plugin-vue_export-helper-legacy-DEZAmQqp.js","./users.store-legacy-OKuN0qAC.js","./ProjectIcon-legacy-Bou4IyeB.js"],(function(e,r){var t,o,n,a,l,s,c,i,d,u,p,g,_,h,y,b,j,f,v;return{setters:[function(e){t=e.$,o=e.A,n=e.E,a=e.N,l=e.S,s=e.Sn,c=e.Wt,i=e._n,d=e.j,u=e.yt},function(e){p=e.bt},function(e){g=e.Zi,_=e.lt},function(e){h=e.t},function(e){y=e.It},function(e){b=e.n,j=e.t}],execute:function(){(f=document.createElement("style")).textContent="._home-project_12ho2_125{padding:var(--spacing--3xs)var(--spacing--4xs)var(--spacing--4xs);border:var(--border-width)var(--border-style)transparent;display:flex}._home-project_12ho2_125._dragging_12ho2_130:hover{border:var(--border-width)var(--border-style)var(--color--secondary);border-radius:var(--radius);background-color:var(--callout--color--background--secondary)}._home-project_12ho2_125._dragging_12ho2_130:hover *{cursor:grabbing;color:var(--color--text)}._home-project_12ho2_125:hover .n8n-text{color:var(--color--text--shade-1)}._project-link_12ho2_143 .n8n-text{align-items:center;gap:var(--spacing--4xs);display:flex}.n8n-text._project-label_12ho2_149{text-overflow:ellipsis;white-space:nowrap;max-width:200px;overflow:hidden}@media (max-width:992px){.n8n-text._project-label_12ho2_149{display:none}}\n/*$vite$:1*/",document.head.appendChild(f);try{r="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(m=(new r.Error).stack)&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[m]="aa0eda92-508d-4e20-bd34-5b21b890f98a",r._sentryDebugIdIdentifier="sentry-dbid-aa0eda92-508d-4e20-bd34-5b21b890f98a")}catch(r){}var r,m;v=a({__name:"ProjectBreadcrumb",props:{currentProject:{default:void 0},isDragging:{type:Boolean,default:!1},isShared:{type:Boolean,default:!1}},emits:["projectHover","projectDrop"],setup(e,{emit:r}){const a=e,h=r,f=p(),v=l((()=>a.isShared?{type:"icon",value:"share"}:a.currentProject?.type===y.Personal?{type:"icon",value:"user"}:a.currentProject?.name?b(a.currentProject.icon)?a.currentProject.icon:{type:"icon",value:"layers"}:{type:"icon",value:"house"})),m=l((()=>a.isShared?f.baseText("projects.menu.shared"):a.currentProject?.type===y.Personal?f.baseText("projects.menu.personal"):a.currentProject?.name)),x=l((()=>a.isShared?"/shared":a.currentProject?`/projects/${a.currentProject.id}`:"/home")),w=()=>{h("projectHover")};return(r,l)=>(t(),n("div",{class:i({[r.$style["home-project"]]:!0,[r.$style.dragging]:e.isDragging}),"data-test-id":"home-project","data-droppable":"",onMouseenter:w,onMouseup:l[0]||(l[0]=r=>e.isDragging?void(a.isDragging&&h("projectDrop")):null)},[d(c(_),{to:x.value,class:i([r.$style["project-link"]])},{default:u((()=>[d(j,{icon:v.value,"border-less":!0,size:"mini",title:m.value},null,8,["icon","title"]),d(c(g),{size:"medium",color:"text-base",class:i(r.$style["project-label"]),title:m.value},{default:u((()=>[o(s(m.value),1)])),_:1},8,["class","title"])])),_:1},8,["to","class"])],34))}}),e("t",h(v,[["__cssModules",{$style:{"home-project":"_home-project_12ho2_125",dragging:"_dragging_12ho2_130","project-link":"_project-link_12ho2_143","project-label":"_project-label_12ho2_149"}}]]))}}}));
//# sourceMappingURL=ProjectBreadcrumb-legacy-Cm3lPpsW.js.map