n8n-editor-ui
Version:
Workflow Editor UI for n8n
2 lines • 3.58 kB
JavaScript
!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","./core-legacy-VD8c7QJ-.js","./src-legacy-B67uuxhB.js","./_plugin-vue_export-helper-legacy-DFdC_I5Z.js","./users.store-legacy-azRUgFdP.js","./constants-legacy-2_ytuuS3.js","./CredentialIcon-legacy-B7DgooOp.js","./fileUtils-legacy-Dp16LI9C.js"],(function(e,n){var t,s,i,l,_,o,a,c,y,d,r,b,g,j,p,u,f,h,m,x,v,I,w;return{setters:[function(e){t=e.$,s=e.A,i=e.C,l=e.E,_=e.N,o=e.S,a=e.Sn,c=e.Wt,y=e._n,d=e.w,r=e.yt},function(e){b=e.at},function(e){g=e.Di,j=e.Qi},function(e){p=e.t},function(e){u=e.it},function(e){f=e.Kr},function(e){h=e.t},function(e){m=e.E,x=e.S,v=e.v}],execute:function(){(I=document.createElement("style")).textContent="._container_jbs4y_125{justify-content:center;align-items:center;display:flex;position:relative}._n8nIcon_jbs4y_132{outline:none}._n8nIcon_jbs4y_132._lg_jbs4y_135{width:24px;height:24px}._n8nIcon_jbs4y_132._lg_jbs4y_135 g,._n8nIcon_jbs4y_132._lg_jbs4y_135 path{stroke-width:1.25px}._n8nIcon_jbs4y_132._xl_jbs4y_142{width:40px;height:40px}._emoji_jbs4y_147{justify-content:center;align-items:center;display:inline-flex}._emoji_jbs4y_147._sm_jbs4y_152{width:16px;height:16px}._emoji_jbs4y_147._md_jbs4y_156{width:20px;height:20px;font-size:20px}._emoji_jbs4y_147._lg_jbs4y_135{width:24px;height:24px;font-size:24px}._emoji_jbs4y_147._xl_jbs4y_142{width:40px;height:40px;font-size:40px}._credentialsIcon_jbs4y_172{visibility:hidden}._credentialsIcon_jbs4y_172._isReady_jbs4y_175{visibility:visible}\n/*$vite$:1*/",document.head.appendChild(I);try{n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(z=(new n.Error).stack)&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[z]="1d492b38-8c3d-4569-af96-7e045d91ce20",n._sentryDebugIdIdentifier="sentry-dbid-1d492b38-8c3d-4569-af96-7e045d91ce20")}catch(n){}var n,z;w=_({__name:"ChatAgentAvatar",props:{agent:{},size:{},tooltip:{type:Boolean}},setup(e){const n=u(),_=o((()=>n.allCredentialTypes.length>0)),p=b();return(n,o)=>(t(),d(c(g),{"show-after":100,placement:"left",disabled:!e.tooltip},{content:r((()=>[s(a(e.agent?.name||c(p).baseText("chatHub.agent.unavailableAgent")),1)])),default:r((()=>[i("div",{class:y([n.$style.container,n.$attrs.class])},["emoji"===e.agent?.icon?.type?(t(),l("span",{key:0,class:y([n.$style.emoji,n.$style[e.size]])},a(e.agent.icon.value),3)):e.agent&&c(v)(e.agent.model)?(t(),d(h,{key:2,class:y([n.$style.credentialsIcon,{[n.$style.isReady]:_.value}]),"credential-type-name":c(f)[e.agent.model.provider],size:"xl"===e.size?40:"sm"===e.size?16:"lg"===e.size?40:20},null,8,["class","credential-type-name","size"])):(t(),d(c(j),{key:1,color:"sm"===e.size?"text-base":"text-light",class:y([n.$style.n8nIcon,n.$style[e.size]]),icon:e.agent?.icon?.value??("n8n"===e.agent?.model.provider?c(m):c(x)).value,size:"xl"===e.size||"lg"===e.size?"xxlarge":"sm"===e.size?"large":"xlarge"},null,8,["color","class","icon","size"]))],2)])),_:1},8,["disabled"]))}}),e("t",p(w,[["__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"}}]]))}}}));
//# sourceMappingURL=ChatAgentAvatar-legacy-ZLBSRRfK.js.map