PageSourceSearch

https://ifind.com.br/_nuxt/DfMAGSzG.js

js ifind.com.br collected 2026-09-24 13:43:54 UTC 1,749 bytes, 1 lines download raw bytes

1import{a as g,r as h,g as m,l as R}from"./D7qV8NOt.js";import{U as $,f as x,l as B,m as n,o,c as u,g as c,n as S,a as C,a4 as b,s as w}from"./Ddm3Z2_a.js";const A={class:"relative flex-shrink-0"},E={key:0,class:"h-full w-full animate-pulse rounded-full bg-gray-200"},M=["src"],T={__name:"avatar",props:{id:{type:String,default:""},src:{type:String,default:""},padding:{type:String,default:"1"}},setup(d,{expose:_}){const e=d,{user:i}=$(),{ready:f}=x(),t=w(""),s=w(!1),v=async a=>a?/^https?:\/\//.test(a)?a:g(h(m(),a)):"",U=async a=>{const r=[`users/avatars/${a}`,`users/${a}/avatar`];for(const y of r)try{return await v(y)}catch{}try{const p=(await R(h(m(),`users/${a}`))).items.find(k=>k.name.startsWith("avatar_"));return p?await g(p):""}catch{return""}},l=async()=>{if(e.src)try{s.value=!0,t.value=await v(e.src);return}catch{t.value=""}finally{s.value=!1}if(e.id==="CURRENT"&&!i.value.id){t.value="";return}else if(f.value&&e.id)try{s.value=!0,t.value=await U(e.id==="CURRENT"?i.value.id:e.id)}catch{t.value=""}finally{s.value=!1}else t.value=""};return B(()=>l()),n(f,()=>l()),n(i,()=>l()),n(()=>e.id,()=>l()),n(()=>e.src,()=>l()),_({init:l}),(a,r)=>(o(),u("div",A,[c(s)?(o(),u("div",E)):c(t)?(o(),u("img",{key:1,class:"h-full w-full rounded-full object-cover",src:c(t)},null,8,M)):(o(),u("svg",{key:2,class:S([`p-${d.padding}`,"h-full w-full rounded-full bg-gray-200 text-white"]),viewBox:"0 0 24 24",fill:"currentColor"},[...r[0]||(r[0]=[C("path",{"fill-rule":"evenodd",d:"M7.5 6a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0ZM3.751 20.105a8.25 8.25 0 0 1 16.498 0 .75.75 0 0 1-.437.695A18.683 18.683 0 0 1 12 22.5c-2.786 0-5.433-.608-7.812-1.7a.75.75 0 0 1-.437-.695Z","clip-rule":"evenodd"},null,-1)])],2)),b(a.$slots,"default")]))}};export{T as _};

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.