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AErB,IAAA1C,EAAAhB,GAAA,EAAAI,EAAA0B,EAAAd,EAAA,EAAA,EAAAe,EAAAf,CAAA,cAAAgB,EAAAhB,EAAA,OAAAd,CAAA,EAAA8B,EAAAhB,EAAA,eAIc0C,IAAChE,EAAA,MAAa,OAAS,MAAS,EAJ9CyC,EAAAnB,EAAA,EAAA8C,CAAA,sBACWJ,CAAC,EAIL,IAAAtB,EAAAuB,EAAID,IAAChE,EAAA,KAAA,CAAA,EACX,IAAA+D,EAAMC,CAAC,IANRzB,EAAAC,EAAAlB,CAAA,SAQA,IAAA+C,EAAAvD,GAAA,EAAAiB,EAAAK,EAAAiC,EAAA,EAAA,EAAAhC,EAAAgC,CAAA,YAAA/B,EAAA+B,EAAA,eAGcL,IAAChE,EAAA,KAAA,EAHfyC,EAAA4B,EAAA,EAAA7D,CAAA,UAIO,CAAA,IAAAkC,EAAAuB,EAAID,IAAChE,EAAA,KAAA,CAAA,EAAA,IACX+D,EAAMC,CAAC,CAAA,GALRM,GAAA,QAAAD,EAAA,IAAArE,EAAA,SAEwBgE,CAAC,CAAA,EAFzBzB,EAAAC,EAAA6B,CAAA,0CAfHhC,EAAAxB,CAAA,SAAAA,EAAA,aAAAL,CAAA,EAAA,CAAA,IAGYJ,EAAE,gBAAgB,CAAA,CAAA,EAH9BmC,EAAAC,EAAA3B,CAAA,MAFO","names":["variant","source","limit","heading","shown","$.derived","$$props","p","followers","n","t","p_1","root_2","$.template_effect","$0","$.set_text","text","$$render","consequent","div","root_3","Rail","node_3","$.each","node_4","$.get","div_1","root_5","a","getAvatarUrl","DuelAvatar","node_5","a_1","span","FollowButton","node_6","f","text_1","a_2","root_6","span_1","$.sibling","$.child","$.reset","$.set_attribute","$.append","$$anchor","$.set_class","$.clsx","ul","$.first_child","fragment_3","li","root_8","a_3","node_8","a_4","span_2","span_3","node_9","text_4","a_5","root_9","consequent_2","alternate","consequent_4","PEOPLE_SORTS","DEFAULT_PEOPLE_SORT","PEOPLE_SORT_SOURCE","label","s","cls","on","root","$1","button","$.delegated"],"sources":["../../../../../../src/lib/components/post/SuggestedPeople.svelte","../../../../../../src/lib/people-sorts.ts","../../../../../../src/lib/components/post/PeopleSortTabs.svelte"],"sourcesContent":["<script lang=\"ts\">\n\t// RAT-673: \"people worth following\" wherever the viewer runs out of people —\n\t// the empty Following tab, the end of it, and the top of Explore. A list\n\t// (rows, for the Following tab) or a rail (swipeable cards, for Explore).\n\timport { t } from '$lib/i18n';\n\timport FollowButton from '$lib/components/profile/FollowButton.svelte';\n\timport DuelAvatar from '$lib/components/duel/DuelAvatar.svelte';\n\timport { getAvatarUrl } from '$lib/avatar';\n\timport type { FollowSource } from '$lib/social-sources';\n\timport Rail from '$lib/components/post/Rail.svelte';\n\n\tinterface Person {\n\t\tid: string;\n\t\tnickname: string | null;\n\t\tavatarPath: string | null;\n\t\tfollowerCount: number;\n\t}\n\tinterface Props {\n\t\tpeople: Person[];\n\t\tvariant?: 'list' | 'rail';\n\t\tsource?: FollowSource;\n\t\tlimit?: number;\n\t\t/** fired after a follow / unfollow lands */\n\t\tonfollow?: (id: string, following: boolean) => void;\n\t\t/** the \"people worth following\" label above the list */\n\t\theading?: boolean;\n\t\t/** a \"see all\" card / link to the full list */\n\t\tseeAllHref?: string;\n\t\t/** rail only: remembers how far it was swiped, so coming back from a\n\t\t *  profile lands on the same card */\n\t\trestoreKey?: string;\n\t}\n\tlet {\n\t\tpeople,\n\t\tvariant = 'list',\n\t\tsource = 'feed_recommended',\n\t\tlimit = 5,\n\t\tonfollow,\n\t\theading = true,\n\t\tseeAllHref,\n\t\trestoreKey\n\t}: Props = $props();\n\n\tconst shown = $derived(people.filter((p) => !!p.nickname).slice(0, limit));\n\tconst followers = (n: number) => (n === 1 ? t('1 follower') : t('{n} followers', { n }));\n</script>\n\n{#if shown.length > 0}\n\t{#if heading}\n\t\t<p class=\"text-[11px] font-bold tracking-[0.18em] text-muted uppercase\">{t('people worth following')}</p>\n\t{/if}\n\t{#if variant === 'rail'}\n\t\t<!-- full-bleed swipe row on a phone; snap so a card never sits half-cut -->\n\t\t<div class={heading ? 'mt-3' : ''}>\n\t\t<Rail label={t('people worth following')} {restoreKey}>\n\t\t\t{#each shown as p (p.id)}\n\t\t\t\t<div class=\"flex w-[132px] shrink-0 snap-start flex-col items-center rounded-2xl border border-border bg-surface px-3 pt-4 pb-3 text-center\">\n\t\t\t\t\t<a href={`/u/${p.nickname}`} aria-label={`@${p.nickname}`}>\n\t\t\t\t\t\t<DuelAvatar nickname={p.nickname} avatarUrl={getAvatarUrl(p.avatarPath)} size={56} href=\"\" link={false} />\n\t\t\t\t\t</a>\n\t\t\t\t\t<a href={`/u/${p.nickname}`} class=\"mt-2 block w-full truncate text-[13px] font-semibold text-text\">@{p.nickname}</a>\n\t\t\t\t\t<span class=\"mb-3 block text-[11px] text-muted\">{followers(p.followerCount)}</span>\n\t\t\t\t\t<FollowButton\n\t\t\t\t\t\tvariant=\"compact\"\n\t\t\t\t\t\t{source}\n\t\t\t\t\t\ttargetUserId={p.id}\n\t\t\t\t\t\tinitialIsFollowing={false}\n\t\t\t\t\t\tonchange={(f) => onfollow?.(p.id, f)}\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t{/each}\n\t\t\t{#if seeAllHref}\n\t\t\t\t<a\n\t\t\t\t\thref={seeAllHref}\n\t\t\t\t\tclass=\"flex w-[132px] shrink-0 snap-start flex-col items-center justify-center gap-2 rounded-2xl border border-border bg-surface px-3 text-center no-underline transition-colors hover:border-border-strong\"\n\t\t\t\t>\n\t\t\t\t\t<span class=\"flex h-14 w-14 items-center justify-center rounded-full bg-surface-2 text-xl text-text\">→</span>\n\t\t\t\t\t<span class=\"text-[13px] font-semibold text-text\">{t('see all')}</span>\n\t\t\t\t</a>\n\t\t\t{/if}\n\t\t</Rail>\n\t\t</div>\n\t{:else}\n\t\t<ul class=\"{heading ? 'mt-2' : ''} divide-y divide-border\">\n\t\t\t{#each shown as p (p.id)}\n\t\t\t\t<li class=\"flex items-center gap-3 py-2.5\">\n\t\t\t\t\t<a href={`/u/${p.nickname}`} class=\"shrink-0\" aria-label={`@${p.nickname}`}>\n\t\t\t\t\t\t<DuelAvatar nickname={p.nickname} avatarUrl={getAvatarUrl(p.avatarPath)} size={36} href=\"\" link={false} />\n\t\t\t\t\t</a>\n\t\t\t\t\t<a href={`/u/${p.nickname}`} class=\"min-w-0 flex-1\">\n\t\t\t\t\t\t<span class=\"block truncate text-sm font-semibold text-text\">@{p.nickname}</span>\n\t\t\t\t\t\t<span class=\"block text-[11px] text-muted\">{followers(p.followerCount)}</span>\n\t\t\t\t\t</a>\n\t\t\t\t\t<FollowButton\n\t\t\t\t\t\tvariant=\"compact\"\n\t\t\t\t\t\t{source}\n\t\t\t\t\t\ttargetUserId={p.id}\n\t\t\t\t\t\tinitialIsFollowing={false}\n\t\t\t\t\t\tonchange={(f) => onfollow?.(p.id, f)}\n\t\t\t\t\t/>\n\t\t\t\t</li>\n\t\t\t{/each}\n\t\t</ul>\n\t\t{#if seeAllHref}\n\t\t\t<a href={seeAllHref} class=\"mt-3 inline-block text-[13px] font-semibold text-accent hover:underline\">\n\t\t\t\t{t('see all people →')}\n\t\t\t</a>\n\t\t{/if}\n\t{/if}\n{/if}\n","import type { FollowSource } from './social-sources';\n\n/**\n * RAT-677: the ways \"people worth following\" is sorted — the chips over the\n * Explore row and the tabs on /people. Shared by the page, the API and the\n * server query, so an unknown value can only ever mean the default.\n */\nexport const PEOPLE_SORTS = ['active', 'rising', 'followed'] as const;\nexport type PeopleSort = (typeof PEOPLE_SORTS)[number];\n\n/** The default: people with hand-made posts that got reactions lately. Sorted\n *  by followers, 9 of the top 10 had nothing hand-made in 14 days (2026-11-28). */\nexport const DEFAULT_PEOPLE_SORT: PeopleSort = 'active';\n\nexport function parsePeopleSort(v: string | null | undefined): PeopleSort {\n\treturn (PEOPLE_SORTS as readonly string[]).includes(v ?? '') ? (v as PeopleSort) : DEFAULT_PEOPLE_SORT;\n}\n\n/** Where a follow from each list says it came from — one source per tab, so the\n *  tabs can be compared. */\nexport const PEOPLE_SORT_SOURCE: Record<PeopleSort, FollowSource> = {\n\tactive: 'suggest_active',\n\trising: 'suggest_rising',\n\tfollowed: 'suggest_followed'\n};\n","<script lang=\"ts\">\n\t// RAT-677: Most active / Rising / Most followed, shown like Explore's niche\n\t// filters. Links on /people (the sort is in the URL), buttons over the row\n\t// on Explore (it swaps the cards in place).\n\timport { t } from '$lib/i18n';\n\timport { PEOPLE_SORTS, type PeopleSort } from '$lib/people-sorts';\n\n\tinterface Props {\n\t\tvalue: PeopleSort;\n\t\thref?: (sort: PeopleSort) => string;\n\t\tonpick?: (sort: PeopleSort) => void;\n\t}\n\tlet { value, href, onpick }: Props = $props();\n\n\tconst label = (s: PeopleSort) =>\n\t\ts === 'active' ? t('Most active') : s === 'rising' ? t('Rising') : t('Most followed');\n\tconst cls = (on: boolean) =>\n\t\t`shrink-0 whitespace-nowrap rounded-md px-3 py-1.5 text-[12px] no-underline transition-colors ${\n\t\t\ton ? 'bg-accent font-semibold text-bg' : 'text-muted hover:text-text'\n\t\t}`;\n</script>\n\n<div\n\tclass=\"flex w-fit max-w-full gap-0.5 overflow-x-auto rounded-lg border border-border bg-surface/50 p-0.5 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden\"\n\trole=\"group\"\n\taria-label={t('sort people by')}\n>\n\t{#each PEOPLE_SORTS as s (s)}\n\t\t{#if href}\n\t\t\t<a\n\t\t\t\thref={href(s)}\n\t\t\t\tdata-sveltekit-noscroll\n\t\t\t\tdata-sveltekit-replacestate\n\t\t\t\taria-current={s === value ? 'page' : undefined}\n\t\t\t\tclass={cls(s === value)}\n\t\t\t>{label(s)}</a>\n\t\t{:else}\n\t\t\t<button\n\t\t\t\ttype=\"button\"\n\t\t\t\tonclick={() => onpick?.(s)}\n\t\t\t\taria-pressed={s === value}\n\t\t\t\tclass={cls(s === value)}\n\t\t\t>{label(s)}</button>\n\t\t{/if}\n\t{/each}\n</div>\n"],"version":3}