UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

2 lines 2.62 kB
!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"n8n@2.16.1"}}catch(e){}}(),System.register(["./users.store-legacy-azRUgFdP.js","./constants-legacy-2_ytuuS3.js","./useRootStore-legacy-CC08el-l.js"],(function(e,n){var t,i,o,r,a,c,l,s,f,d,u,p,y,g,b,m,h,T;return e("t",(function(e,n){if(!e)return;if("string"==typeof e)return T(e);if("iconData"in e&&e.iconData){if(e.iconData.icon)return h(e.iconData.icon,e);if(e.iconData.fileBuffer)return m(e.iconData.fileBuffer,e)}if(e.name&&t(e.name)){const n=i(e.iconUrl,o().appliedTheme);if(n)return{type:"file",src:n,badge:void 0}}const r=u(e);if(r)return m(g(r),e);if(e.icon){let t=e;!("iconBasePath"in e)&&"name"in e&&e.name&&(t=a().getNodeType(e.name)??e);const i=d(t,n);if(!i)return;const[o,r]=i.split(":");if("file"===o){if("iconBasePath"in t&&t.iconBasePath){const e=r.replace(/^\//,"");return m(g(`${t.iconBasePath}/${e}`),t)}return}return h(r,t)}})),{setters:[function(e){t=e.F,i=e.Ki,o=e.r,r=e.s,a=e.w,c=e.z},function(e){l=e.no},function(e){s=e.t}],execute:function(){try{e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(n=(new e.Error).stack)&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="decd8293-d35b-440c-93e0-71882e3285a6",e._sentryDebugIdIdentifier="sentry-dbid-decd8293-d35b-440c-93e0-71882e3285a6")}catch(e){}var e,n;f=(e,n,t)=>{try{const i=r(),o=n.defaults&&"parameters"in n.defaults?n.defaults.parameters:{},a=t?.parameters??o??{},c={};c.$parameter=a;const l=i.workflowObject.expression.getParameterValue(e,null,0,0,t?.name??"",[],"internal",c,void 0,!1);if("string"!=typeof l)return null;const[s]=l.split(":");return"file"!==s&&"icon"!==s?null:l}catch{return null}},d=(e,n)=>{const t=i(e.icon,o().appliedTheme);return l(t)?f(t,e,n):t},u=e=>i(e.iconUrl,o().appliedTheme),p=e=>i(e.badgeIconUrl,o().appliedTheme),y=e=>{if("iconColor"in e&&e.iconColor)return`var(--node--icon--color--${e.iconColor})`;const n=e?.defaults?.color;return"string"==typeof n?n:void 0},g=e=>s().baseUrl+e,b=e=>{if(!("badgeIconUrl"in e)||!e.badgeIconUrl)return;const n=p(e);return n?{type:"file",src:g(n)}:void 0},m=(e,n)=>({type:"file",src:e,badge:b(n)}),h=(e,n)=>({type:"icon",name:e,color:y(n),badge:b(n)}),T=e=>{const n=a(),t=c(e),r=n.communityNodeType(t)?.nodeDescription??n.getNodeType(t),l=r?.iconUrl?i(r.iconUrl,o().appliedTheme):null;return l?{type:"file",src:l}:void 0}}}})); //# sourceMappingURL=nodeIcon-legacy-DR5Etm69.js.map