import{d as s,o as t,n as a,w as c,s as i,aW as w,t as u,a as d,b as v,dJ as n,N as m}from"./index-lT0LPxUj.js";const z=s({__name:"NeuronAvatar",props:{color:{type:String,default:"primary"},text:{type:String,default:""},weight:{type:String,default:""}},setup(o){return(l,e)=>(t(),a(n,{class:"neuron",rounded:"0"},{default:c(()=>[i("span",{class:w([{"mt-2":o.weight==="excitatory"},"label"])},u(o.text),3),d(v,{color:o.color,icon:`network:neuron${o.weight?`-${l.$props.weight}`:""}`,class:"icon-size position-absolute"},null,8,["color","icon"])]),_:1}))}}),_={class:"label"},x=s({__name:"RecorderAvatar",props:{color:String,text:String},setup(o){return(l,e)=>(t(),a(n,{class:"recorder",rounded:"0"},{default:c(()=>[i("span",_,u(o.text),1),d(v,{color:o.color,class:"position-absolute icon-size",icon:"network:recorder"},null,8,["color"])]),_:1}))}}),g={class:"label"},h=s({__name:"StimulatorAvatar",props:{color:String,text:String},setup(o){return(l,e)=>(t(),a(n,{class:"stimulator",rounded:"0"},{default:c(()=>[i("span",g,u(o.text),1),d(v,{color:o.color,class:"position-absolute icon-size",icon:"network:stimulator"},null,8,["color"])]),_:1}))}}),b=s({__name:"NodeAvatar",props:{node:{},size:{}},setup(o){const l=o,e=m(()=>l.node),p=m(()=>l.node);return(r,y)=>e.value.elementType==="stimulator"?(t(),a(h,{key:0,color:e.value.view.color,text:e.value.view.label,size:r.size||40},null,8,["color","text","size"])):e.value.elementType==="recorder"?(t(),a(x,{key:1,color:e.value.view.color,text:e.value.view.label,size:r.size||40},null,8,["color","text","size"])):e.value.elementType==="neuron"?(t(),a(z,{key:2,color:e.value.view.color,text:e.value.view.label,size:r.size||40,weight:e.value.view.synWeights},null,8,["color","text","size","weight"])):(t(),a(n,{key:3,color:p.value.view.color,size:r.size||40,text:p.value.view.label,class:"node-avatar",variant:"tonal"},null,8,["color","size","text"]))}});export{b as _};
