1import{_ as h}from"./ARtQS2cI.js";import{H as p,Y as i,$ as c,a2 as b,a5 as g,B as t,ai as l,aa as d,f as r,aF as v,ao as w,a1 as x,aG as m,aj as y,X as n,_ as k}from"./D2IC83re.js";import{c as z}from"./CMfAClo_.js";import{D as I}from"./Ce7gU1o-.js";try{(function(){var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="2dee2680-80c1-4268-87e9-f14b33aa3205",e._sentryDebugIdIdentifier="sentry-dbid-2dee2680-80c1-4268-87e9-f14b33aa3205")})()}catch{}const D={class:"tc-avatar relative rounded-full flex text-[1rem] max-w-[100%] max-h-[100%] h-full"},A=["width"],L={height:"100%",preserveAspectRatio:"xMinYMid meet",viewBox:"0 0 500 75",width:"100%",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},T={"dominant-baseline":"central",fill:"black","font-size":"240","text-anchor":"middle",x:"50%",y:"50%"},j={class:"absolute z-10 -bottom-1 -right-0.5 rounded-full bg-smail block"},B=p({__name:"TcAvatar",props:{src:{},smail:{},alt:{},size:{},sizeSmail:{},variantLetter:{},variantImg:{},letter:{},user:{},userLink:{}},setup(e){const a=e,s=r(()=>a.src||a.user?.avatar),o=r(()=>a.letter||a.user?.name?.charAt(0).toUpperCase()),u=r(()=>a.userLink?v:"span");return(C,E)=>{const f=h,_=w;return n(),i("span",D,[(n(),c(g(t(u)),{to:e.userLink,"aria-label":"Avatar",class:"w-full"},{default:b(()=>[l("object",{width:e.size,class:"h-0 pt-[100%]"},[x(f,{alt:"ФоÑогÑаÑиÑ",class:m([[e.variantImg,{"opacity-0":!t(s)&&t(o),"object-none":!t(s)&&!t(o)}],"bg-[var(--black-4)] rounded-full object-cover w-full h-full absolute top-0 left-0"]),src:t(s)||"/img/person-ic-dark.svg",loading:"lazy",provider:t(s)?void 0:t(I)},null,8,["class","src","provider"])],8,A),!t(s)&&t(o)?(n(),i("span",{key:0,class:m([e.variantLetter,"absolute w-full h-full rounded-full top-0 left-0 z-10 bg-[var(--opacity-4)] text-[var(--black-50)] flex items-center justify-center medium"])},[(n(),i("svg",L,[l("text",T,y(t(z)(t(o))),1)]))],2)):d("",!0)]),_:1},8,["to"])),l("span",j,[e.smail?(n(),c(_,{key:0,name:e.smail,width:e.sizeSmail,height:e.sizeSmail},null,8,["name","width","height"])):d("",!0)])])}}}),N=Object.assign(k(B,[["__scopeId","data-v-d080a670"]]),{__name:"UiTcAvatar"});export{N as T};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.