UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

2 lines 5.43 kB
!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","./constants-legacy-DNCca_FT.js","./router-legacy-Z_TN1ADz.js"],(function(e,t){var a,l,o,n,s,r,i,c,d,w,f,p,_,u,m,y,k,g,h,v,$;return{setters:[function(e){a=e.$,l=e.A,o=e.C,n=e.E,s=e.N,r=e.S,i=e.Sn,c=e.T,d=e.Wt,w=e._n,f=e.j,p=e.w,_=e.yt},function(e){u=e.bt},function(e){m=e.Zi,y=e.lt},function(e){k=e.t},function(e){g=e.ms},function(e){h=e.t}],execute:function(){(v=document.createElement("style")).textContent="._location-container_1mlnw_125{align-items:center;gap:var(--spacing--4xs);color:var(--color--text);min-width:0;display:flex;overflow:hidden}._ellipsis_1mlnw_134{padding-right:var(--spacing--4xs)}._ellipsis_1mlnw_134,._separator_1mlnw_139{user-select:none;color:var(--color--text--tint-1)}._grandparent_1mlnw_144{flex-shrink:0;align-items:center;display:flex}._parent-folder_1mlnw_150{align-items:center;gap:var(--spacing--4xs);min-width:0;display:flex;overflow:hidden}._truncate_1mlnw_158{text-overflow:ellipsis;white-space:nowrap;min-width:0;display:block;overflow:hidden}._location-link_1mlnw_166{color:var(--color--text)}._workflow-name_1mlnw_170{color:var(--color--text--shade-1)}\n/*$vite$:1*/",document.head.appendChild(v);try{t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(j=(new t.Error).stack)&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[j]="d04ffb1a-2aa6-4fc9-9f00-2cc66408c5f8",t._sentryDebugIdIdentifier="sentry-dbid-d04ffb1a-2aa6-4fc9-9f00-2cc66408c5f8")}catch(t){}var t,j;$=s({__name:"WorkflowLocation",props:{workflowId:{},workflowName:{default:void 0},homeProject:{default:void 0},parentFolder:{default:void 0},asLinks:{type:Boolean,default:!1}},setup(e){const t=e,s=u(),k=r((()=>"personal"===t.homeProject?.type?s.baseText("projects.menu.personal"):t.homeProject?.name??"")),v=r((()=>t.homeProject?h.resolve({name:g.PROJECTS_WORKFLOWS,params:{projectId:t.homeProject.id}}).fullPath:"")),$=r((()=>t.homeProject&&t.parentFolder?`/projects/${t.homeProject.id}/folders/${t.parentFolder.id}/workflows`:"")),j=r((()=>t.workflowId?h.resolve({name:g.WORKFLOW,params:{name:t.workflowId}}).fullPath:"")),b=r((()=>!!t.parentFolder?.parentFolderId));return(t,s)=>(a(),n("div",{class:w(t.$style["location-container"])},[e.homeProject?(a(),n("span",{key:0,class:w(t.$style.truncate)},[e.asLinks?(a(),p(d(y),{key:0,"data-test-id":"workflow-location-project-link",to:v.value,theme:"text",class:w([t.$style["location-link"],t.$style.truncate]),"new-window":!0},{default:_((()=>[f(d(m),{class:w(t.$style.truncate),"data-test-id":"workflow-location-project-name"},{default:_((()=>[l(i(k.value),1)])),_:1},8,["class"])])),_:1},8,["to","class"])):(a(),p(d(m),{key:1,class:w(t.$style.truncate),"data-test-id":"workflow-location-project-name"},{default:_((()=>[l(i(k.value),1)])),_:1},8,["class"]))],2)):c("",!0),e.parentFolder||e.workflowName?(a(),n("span",{key:1,class:w(t.$style.separator),"data-test-id":"workflow-location-separator"}," / ",2)):c("",!0),b.value?(a(),n("span",{key:2,class:w(t.$style.grandparent),"data-test-id":"workflow-location-grandparent"},[o("span",{class:w(t.$style.ellipsis)},"...",2),o("span",{class:w(t.$style.separator),"data-test-id":"workflow-location-ellipsis-separator"},"/",2)],2)):c("",!0),e.parentFolder?(a(),n("span",{key:3,class:w(t.$style["parent-folder"])},[e.asLinks&&e.homeProject?(a(),p(d(y),{key:0,"data-test-id":"workflow-location-folder-link",to:$.value,theme:"text",class:w([t.$style["location-link"],t.$style.truncate]),"new-window":!0},{default:_((()=>[f(d(m),{class:w(t.$style.truncate),"data-test-id":"workflow-location-folder-name"},{default:_((()=>[l(i(e.parentFolder.name),1)])),_:1},8,["class"])])),_:1},8,["to","class"])):(a(),p(d(m),{key:1,class:w(t.$style.truncate),"data-test-id":"workflow-location-folder-name"},{default:_((()=>[l(i(e.parentFolder.name),1)])),_:1},8,["class"]))],2)):c("",!0),e.parentFolder&&e.workflowName?(a(),n("span",{key:4,class:w(t.$style.separator)},"/",2)):c("",!0),e.workflowName?(a(),n("span",{key:5,class:w([t.$style["workflow-name"],t.$style.truncate])},[e.asLinks&&e.workflowId?(a(),p(d(y),{key:0,"data-test-id":"workflow-location-workflow-link",to:j.value,theme:"text",class:w([t.$style["location-link"],t.$style.truncate]),"new-window":!0},{default:_((()=>[f(d(m),{class:w(t.$style.truncate),"data-test-id":"workflow-location-workflow-name"},{default:_((()=>[l(i(e.workflowName),1)])),_:1},8,["class"])])),_:1},8,["to","class"])):(a(),p(d(m),{key:1,class:w(t.$style.truncate),"data-test-id":"workflow-location-workflow-name"},{default:_((()=>[l(i(e.workflowName),1)])),_:1},8,["class"]))],2)):c("",!0)],2))}}),e("t",k($,[["__cssModules",{$style:{"location-container":"_location-container_1mlnw_125",ellipsis:"_ellipsis_1mlnw_134",separator:"_separator_1mlnw_139",grandparent:"_grandparent_1mlnw_144","parent-folder":"_parent-folder_1mlnw_150",truncate:"_truncate_1mlnw_158","location-link":"_location-link_1mlnw_166","workflow-name":"_workflow-name_1mlnw_170"}}]]))}}})); //# sourceMappingURL=WorkflowLocation-legacy-DahcjxTd.js.map