n8n-editor-ui
Version:
Workflow Editor UI for n8n
2 lines • 2.45 kB
JavaScript
(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`n8n@2.16.1`}}catch{}})();try{(function(){var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`5bf28a57-920c-420c-aa89-a5e3821567b9`,e._sentryDebugIdIdentifier=`sentry-dbid-5bf28a57-920c-420c-aa89-a5e3821567b9`)})()}catch{}import{$ as e,A as t,C as n,E as r,N as i,S as a,Sn as o,Wt as s,_n as c,w as l,yt as u}from"./vue.runtime.esm-bundler-C3C09Zii.js";import{at as d}from"./core-Bz5WjPxS.js";import{Di as f,Qi as p}from"./src-XqE2yCpG.js";import{t as m}from"./_plugin-vue_export-helper-CIL7EULb.js";import{it as h}from"./users.store-xP93bV7X.js";import{Kr as g}from"./constants-DuQbSl-q.js";import{t as _}from"./CredentialIcon-BVAlIa2j.js";import{E as v,S as y,v as b}from"./fileUtils-D6dhtxVJ.js";var x=m(i({__name:`ChatAgentAvatar`,props:{agent:{},size:{},tooltip:{type:Boolean}},setup(i){let m=h(),x=a(()=>m.allCredentialTypes.length>0),S=d();return(a,d)=>(e(),l(s(f),{"show-after":100,placement:`left`,disabled:!i.tooltip},{content:u(()=>[t(o(i.agent?.name||s(S).baseText(`chatHub.agent.unavailableAgent`)),1)]),default:u(()=>[n(`div`,{class:c([a.$style.container,a.$attrs.class])},[i.agent?.icon?.type===`emoji`?(e(),r(`span`,{key:0,class:c([a.$style.emoji,a.$style[i.size]])},o(i.agent.icon.value),3)):!i.agent||!s(b)(i.agent.model)?(e(),l(s(p),{key:1,color:i.size===`sm`?`text-base`:`text-light`,class:c([a.$style.n8nIcon,a.$style[i.size]]),icon:i.agent?.icon?.value??(i.agent?.model.provider===`n8n`?s(v):s(y)).value,size:i.size===`xl`||i.size===`lg`?`xxlarge`:i.size===`sm`?`large`:`xlarge`},null,8,[`color`,`class`,`icon`,`size`])):(e(),l(_,{key:2,class:c([a.$style.credentialsIcon,{[a.$style.isReady]:x.value}]),"credential-type-name":s(g)[i.agent.model.provider],size:i.size===`xl`?40:i.size===`sm`?16:i.size===`lg`?40:20},null,8,[`class`,`credential-type-name`,`size`]))],2)]),_:1},8,[`disabled`]))}}),[[`__cssModules`,{$style:{container:`_container_jbs4y_125`,n8nIcon:`_n8nIcon_jbs4y_132`,lg:`_lg_jbs4y_135`,xl:`_xl_jbs4y_142`,emoji:`_emoji_jbs4y_147`,sm:`_sm_jbs4y_152`,md:`_md_jbs4y_156`,credentialsIcon:`_credentialsIcon_jbs4y_172`,isReady:`_isReady_jbs4y_175`}}]]);export{x as t};
//# sourceMappingURL=ChatAgentAvatar-DKWX_rQ_.js.map