UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

2 lines 2.33 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(["./vue.runtime.esm-bundler-legacy-BW6xDdqj.js","./src-legacy-B67uuxhB.js","./_plugin-vue_export-helper-legacy-DFdC_I5Z.js","./users.store-legacy-azRUgFdP.js","./useRootStore-legacy-CC08el-l.js"],(function(e,n){var t,l,o,r,i,a,u,c,s,d,f,y,p,g,v;return{setters:[function(e){t=e.$,l=e.N,o=e.S,r=e.Wt,i=e._n,a=e.w},function(e){u=e.z},function(e){c=e.t},function(e){s=e.Ki,d=e.it,f=e.r,y=e.w},function(e){p=e.t}],execute:function(){(g=document.createElement("style")).textContent="._icon_6l2me_125{--node--icon--color:var(--color--foreground--shade-1)}\n/*$vite$:1*/",document.head.appendChild(g);try{n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(b=(new n.Error).stack)&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[b]="8f6c543b-ab7a-47aa-8de6-ff0146970a6c",n._sentryDebugIdIdentifier="sentry-dbid-8f6c543b-ab7a-47aa-8de6-ff0146970a6c")}catch(n){}var n,b;v=l({__name:"CredentialIcon",props:{credentialTypeName:{},size:{},theme:{}},setup(e){const n=e,l=d(),c=p(),g=f(),v=y(),b=o((()=>I(n.credentialTypeName))),m=o((()=>n.theme??g.appliedTheme)),_=o((()=>{const e=s(b.value?.icon,m.value);return e?.startsWith("node:")?v.getNodeType(e.replace("node:",""))?.iconUrl:null})),h=o((()=>{const e=s(_.value??b.value?.iconUrl,m.value);if(e)return c.baseUrl+e})),w=o((()=>h.value?"file":T.value?"icon":"unknown")),T=o((()=>{const e=s(b.value?.icon,g.appliedTheme);if(e?.startsWith("fa:"))return e.replace("fa:","")})),E=o((()=>{const{iconColor:e}=b.value??{};if(e)return`var(--node--icon--color--${e})`}));function I(e){if(!e)return null;const n=l.getCredentialTypeByName(e);if(!n)return null;if(n.icon??n.iconUrl)return n;if(n.extends){let e=null;return n.extends.forEach((n=>{e=I(n)})),e}return null}return(n,l)=>(t(),a(r(u),{class:i(n.$style.icon),type:w.value,size:e.size??26,src:h.value,name:T.value,color:E.value},null,8,["class","type","size","src","name","color"]))}}),e("t",c(v,[["__cssModules",{$style:{icon:"_icon_6l2me_125"}}]]))}}})); //# sourceMappingURL=CredentialIcon-legacy-B7DgooOp.js.map