PageSourceSearch

https://watcha.cn/_nuxt/_lJVDx0P.js

js watcha.cn collected 2026-10-07 03:09:10 UTC 2,757 bytes, 1 lines download raw bytes

1import{bv as _,cD as j,bo as A,cE as U,bl as C,o,m as d,q as L,t as g,bN as E,bm as l,cF as H,cG as N,cH as P,cI as B,G as r,L as i,bF as t,bV as u,aj as w,c1 as R,y as h,cJ as V,cK as D,E as y,cL as F,bT as M,bA as S}from"./zBomRP-_.js";const $="https://tos.watcha.cn/products/logo/default-avatar.jpg",G=_({__name:"index",props:{user:{},userId:{},size:{},round:{type:Boolean,default:!0},clickHandling:{default:"popup"}},emits:["loaded"],setup(e,{emit:m}){const a=l(()=>s.user??H.get("user",s.userId??0)??N()),s=e,n=m,p=l(()=>{const c=typeof s.size=="number"?`${s.size/16}rem`:s.size||"2.5rem";return c==="full"?{width:"100%",height:"100%"}:{width:c,height:c}}),z=l(()=>s.round!==!1),v=l(()=>s.clickHandling==="popup"?a.value.id?P("user",a.value.id):{}:s.clickHandling==="route"?{href:B(a.value)}:{}),k=j();let f=!1;const x=A({...k,...v.value});return U(()=>{f||(f=!0,x.value={...k,...v.value},C(()=>f=!1))}),(c,b)=>(o(),d("a",L({class:["border-borderColor inline-flex items-center justify-center overflow-hidden border bg-gray-200 select-none",z.value?"rounded-full":"rounded-md"],style:p.value},x.value),[(o(),g(E,{key:a.value.avatar_url,fallback:$,src:a.value.avatar_url??"",alt:"avatar",onLoaded:b[0]||(b[0]=I=>n("loaded",I))},null,8,["src"]))],16))}}),O=Object.assign(G,{__name:"AvatarEx"}),T={key:0,class:"flex items-center justify-between py-2"},q={class:"flex items-center gap-3"},J={class:"flex flex-col gap-1"},K={class:"flex min-w-0 flex-1 flex-col justify-center gap-0.5 px-4"},Q={class:"flex"},W={class:"user-nickname"},X={class:"user-slug"},Y={class:"flex items-center"},Z={key:0,class:"user-bio"},ee=_({__name:"index",props:{user:{},showBio:{type:Boolean}},setup(e){const m=e,a=l(()=>M(m.user));return(s,n)=>a.value?(o(),d("div",T,[r("div",q,[i(t(u),{width:"40px",height:"40px",shape:"circle"}),r("div",J,[i(t(u),{width:"95px",height:"1rem"}),i(t(u),{width:"5rem",height:"0.75rem"})])]),i(t(u),{width:"4rem",height:"1.75rem","border-radius":"9999px"})])):(o(),d("div",{key:1,class:"user-row-item hover-bg",onClick:n[1]||(n[1]=w(p=>t(R).push(t(B)(e.user)),["stop"]))},[i(O,{user:e.user,size:40,"click-handling":"route",class:"shrink-0"},null,8,["user"]),r("div",K,[r("div",Q,[r("span",W,h(e.user.nickname),1),e.user.is_official?(o(),g(t(V),{key:0,class:"mx-1 shrink-0 text-sky-600",size:14,"stroke-width":2})):e.user.is_gold_member?(o(),g(t(D),{key:1,class:"mx-1 shrink-0 text-orange-500",size:14,"stroke-width":2})):y("",!0)]),r("span",X,"@"+h(e.user.username??e.user.id),1)]),r("div",Y,[i(F,{class:"small h-7.5",user:e.user,onClick:n[0]||(n[0]=w(()=>{},["stop"]))},null,8,["user"])]),e.showBio?(o(),d("span",Z,h(e.user.bio),1)):y("",!0)]))}}),te=Object.assign(S(ee,[["__scopeId","data-v-106454c3"]]),{__name:"UserRowItem"});export{te as U};

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.