PageSourceSearch

https://novogamer.com/build/assets/UserCardCompact.vue_vue_type_script_setup_true_lang-UTp-040G.js

js novogamer.com collected 2026-10-05 03:04:35 UTC 2,766 bytes, 1 lines download raw bytes

1import{_ as $}from"./index-8GyMFlfz.js";import{d as h,o as n,k as c,u as d,w as l,l as C,t as o,E as _,r as F,z as L,j as t,e as u,b as N,n as j,m as D,p as s}from"./framework-vendor-Bcgp7FPJ.js";import{_ as E}from"./Card.vue_vue_type_style_index_0_lang-sXjkZk_a.js";import{_ as P,b as A}from"./UserFollowButton.vue_vue_type_script_setup_true_lang-DijI18yg.js";import{_ as M}from"./index-BQXkAo_n.js";import{u as x}from"./usePlural-aRKkGe27.js";import{u as S,a as T}from"./useCountArticles-DKHgtLib.js";const te=h({__name:"UserLevelPill",props:{level:{}},setup(e){return(f,a)=>(n(),c(d($),{variant:"outline",class:"h-6 px-2.5 text-[11px] font-semibold"},{default:l(()=>[C(" Level "+o(e.level??1),1)]),_:1}))}}),q={class:"relative"},G={class:"min-w-0 leading-tight"},H={class:"truncate text-sm font-semibold group-hover/link:text-primary transition-colors"},I={class:"truncate -mt-1 text-xs flex gap-1.5 items-center text-zinc-500 font-medium"},J={class:"flex items-center space-x-1"},K={class:"flex items-center gap-2"},O={key:0,class:"shrink-0 min-w-20 flex justify-end"},oe=h({__name:"UserCardCompact",props:{user:{},actions:{type:Boolean,default:!0},confirmUnfollow:{type:Boolean,default:!0},inline:{type:Boolean,default:!1}},emits:["followed","unfollowed","updatedFollowers"],setup(e,{emit:f}){const a=e,i=f;function k(w){i("updatedFollowers",w)}function g(){i("followed")}function y(){i("unfollowed")}const b=S(a.user,0),B=T(a.user,0),m=s(()=>b.value??0),p=s(()=>B.value??0),V=s(()=>x("article",p.value)),z=s(()=>x("follower",m.value));return(w,v)=>(n(),c(E,{class:_([e.inline?"p-0 md:p-0 shadow-none":"p-3 md:py-2 md:px-3","flex items-center gap-4 justify-between dark:bg-zinc-900"])},{default:l(()=>[(n(),c(F(e.user.canBeViewed?d(L):"div"),{href:e.user.canBeViewed?e.user.permalink:null,class:"flex group/link min-w-0 items-center gap-3"},{default:l(()=>[t("div",q,[u(P,{"rounded-class":"rounded-md md:rounded-lg",class:"w-8 transition-all group-hover/link:opacity-80",user:e.user},null,8,["user"])]),t("div",G,[t("div",H,o(e.user.name),1),t("div",I,[t("div",J,[t("span",null,o(p.value)+" "+o(V.value),1)]),v[0]||(v[0]=t("span",{class:"size-[2px] rounded-full bg-zinc-500 dark:bg-zinc-400"},null,-1)),t("div",K,[t("span",null,o(m.value)+" "+o(z.value),1)])])])]),_:1},8,["href"])),e.actions?(n(),N("div",O,[u(A,{user:e.user,"confirm-unfollow":e.confirmUnfollow,onUpdated:k,onFollowed:g,onUnfollowed:y},{default:l(({isFollowing:r,onClick:U})=>[u(d(M),{type:"button",class:_([r,"h-auto px-3 py-1 text-xs font-semibold"]),variant:r?"white":"default",onClick:j(U,["stop"])},{default:l(()=>[C(o(r?"Following":"Follow"),1)]),_:2},1032,["class","variant","onClick"])]),_:1},8,["user","confirm-unfollow"])])):D("",!0)]),_:1},8,["class"]))}});export{te as _,oe as a};

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.