UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

2 lines 2.53 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","./src-legacy-Dwzr7bD0.js","./_plugin-vue_export-helper-legacy-DEZAmQqp.js","./nodeIcon-legacy-CU0X8703.js"],(function(e,o){var n,t,l,d,i,a,c,u,s,r,f,p;return{setters:[function(e){n=e.$,t=e.N,l=e.S,d=e.Wt,i=e._n,a=e.l,c=e.w},function(e){u=e.q},function(e){s=e.t},function(e){r=e.t}],execute:function(){(f=document.createElement("style")).textContent="._nodeIcon_16wly_125{--node--icon--color:var(--node-creator--icon--color,var(--canvas-node--icon-color,var(--v36aed390)))}\n/*$vite$:1*/",document.head.appendChild(f);try{o="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(y=(new o.Error).stack)&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[y]="d3b36c9f-7b88-475c-808d-31e662033c6c",o._sentryDebugIdIdentifier="sentry-dbid-d3b36c9f-7b88-475c-808d-31e662033c6c")}catch(o){}var o,y;p=t({__name:"NodeIcon",props:{size:{default:void 0},disabled:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},colorDefault:{default:""},showTooltip:{type:Boolean,default:!1},tooltipPosition:{default:"top"},nodeName:{default:""},iconSource:{default:void 0},nodeType:{default:void 0},node:{default:void 0}},emits:["click"],setup(e,{emit:o}){a((e=>({v36aed390:b.value})));const t=e,s=o,f=l((()=>t.iconSource?t.iconSource:r(t.nodeType,t.node??null))),p=l((()=>f.value?.type??"unknown")),y=l((()=>{if("file"===f.value?.type)return f.value.src})),v=l((()=>{if("icon"===f.value?.type)return f.value.name})),b=l((()=>{if("icon"===f.value?.type)return f.value.color??t.colorDefault})),g=l((()=>{if("file"===f.value?.badge?.type)return f.value.badge})),m=l((()=>t.nodeName&&""!==t.nodeName?t.nodeName:t.nodeType?.displayName));return(o,t)=>(n(),c(d(u),{type:p.value,src:y.value,name:v.value,disabled:e.disabled,size:e.size,circle:e.circle,"node-type-name":m.value,"show-tooltip":e.showTooltip,"tooltip-position":e.tooltipPosition,badge:g.value,class:i(o.$style.nodeIcon),onClick:t[0]||(t[0]=e=>s("click"))},null,8,["type","src","name","disabled","size","circle","node-type-name","show-tooltip","tooltip-position","badge","class"]))}}),e("t",s(p,[["__cssModules",{$style:{nodeIcon:"_nodeIcon_16wly_125"}}]]))}}})); //# sourceMappingURL=NodeIcon-legacy-B4uktMo3.js.map