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AAAwB,EAAA8E,EAAA,iBAjEN","names":["isAuthed","$.derived","page","goRater","e","nickname","close","openAuthSheet","goProfile","goto","profileKey","onCam","$.prop","$$props","onFloor","floorLabel","f","t","total","preview","previewNames","r","sheetOpen","$.state","open","$.set","onBackdrop","onKey","button","root_1","span","$.child","$.each","node_1","$.get","span_1","root_2","getAvatarUrl","DuelAvatar","node_2","span_2","root_3","text","$.reset","$.append","$$anchor","$$render","consequent","span_3","span_4","span_5","$.set_attribute","$0","$.delegated","consequent_1","div","root_4","div_1","div_2","div_3","h3","button_1","$.sibling","ul","li","$.first_child","fragment_1","text_4","node_6","li_1","root_6","a","div_4","node_7","div_5","div_6","div_7","span_6","text_7","$.template_effect","$.set_text","consequent_2","li_2","fragment_2","node_9","li_3","root_8","a_1","div_8","node_10","div_9","div_10","div_11","span_7","text_8","consequent_3","li_4","fragment_3","node_12","li_5","root_10","a_2","span_8","node_13","div_12","div_13","span_9","text_13","div_14","span_10","root_11","TokenCoin","span_11","root_12","text_15","consequent_5","$1","text_12","consequent_6","div_15","a_3","$2","fly","cubicOut","consequent_7"],"sources":["../../../../../../src/lib/components/post/LiveRatersRail.svelte"],"sourcesContent":["<script lang=\"ts\">\n\timport { t } from '$lib/i18n';\n\t/**\n\t * Live ticker for /f and /c.\n\t *\n\t * COLLAPSED: a neutral bar — avatar stack + \"N live raters\", where N counts\n\t * everyone live: floors + on-cam + 1:1 raters. Deliberately does NOT split by\n\t * type. It used to swap its own label/colour for on-cam (and briefly for\n\t * floors), which meant one kind hid the existence of the others and a single\n\t * floor made the ticker claim nobody was on cam. Collapsed, this answers one\n\t * question — how many people are live — and nothing else.\n\t *\n\t * OPENED: the bottom sheet is where the distinction earns its space, in\n\t * priority order, each with its own header, row treatment and CTA verb:\n\t *   1. THE FLOOR · OPEN NOW — public rate rooms that are actually live AND\n\t *      occupied right now (RAT-459: empty/pending floors no longer surface —\n\t *      listOnFloor gates on occupancy) (link → /floor/[id], \"join\").\n\t *   2. ON CAM NOW — people livecam-streaming (link → /livecam/[id], \"watch\").\n\t *   3. LIVE RATERS — raters online + accepting pics (link → hrefBase).\n\t *\n\t * Server-rendered on every load; no client polling.\n\t */\n\n\timport { fly } from 'svelte/transition';\n\timport { cubicOut } from 'svelte/easing';\n\timport { goto } from '$app/navigation';\n\timport { page } from '$app/state';\n\timport { openAuthSheet } from '$lib/stores/authSheet';\n\timport DuelAvatar from '$lib/components/duel/DuelAvatar.svelte';\n\timport TokenCoin from '$lib/components/TokenCoin.svelte';\n\timport { getAvatarUrl } from '$lib/avatar';\n\n\t// A rater row opens the 1:1 chat at /c/[nickname], which is gated by\n\t// (chat)/+layout.server.ts. For a signed-out viewer that tap used to bounce\n\t// off a full-page 303 to /auth/sign-in — losing their feed scroll position.\n\t// Raise the in-place sign-in sheet instead (with the thread as `next`, so\n\t// they land in the chat once authed).\n\tconst isAuthed = $derived(!!page.data.user);\n\tfunction goRater(e: MouseEvent, nickname: string | null) {\n\t\tif (isAuthed || !nickname) return; // <a href> handles the authed nav\n\t\te.preventDefault();\n\t\tclose();\n\t\topenAuthSheet(`/c/${encodeURIComponent(nickname)}?from=live_raters`);\n\t}\n\n\t// RAT-423: a rater row opens the chat by default (send a pic / get rated);\n\t// the avatar + name are the carve-out that goes to the public profile.\n\tfunction goProfile(e: Event, nickname: string | null) {\n\t\tif (!nickname) return;\n\t\te.preventDefault();\n\t\te.stopPropagation();\n\t\tgoto(`/u/${encodeURIComponent(nickname)}`);\n\t}\n\tfunction profileKey(e: KeyboardEvent, nickname: string | null) {\n\t\tif (e.key === 'Enter' || e.key === ' ') goProfile(e, nickname);\n\t}\n\n\tinterface LiveItem {\n\t\tid: string;\n\t\tnickname: string | null;\n\t\tavatarPath: string | null;\n\t\t// RAT-423: free vs token-only marker (optional — some feeds don't carry it).\n\t\tfreeRateEnabled?: boolean;\n\t\tminPriceTokens?: number;\n\t}\n\tinterface FloorItem extends LiveItem {\n\t\t/** 'live' = someone is on stage. 'pending' = open, nobody in line yet. */\n\t\tfloorStatus?: 'live' | 'pending';\n\t\tqueueDepth?: number;\n\t}\n\tinterface Props {\n\t\traters: LiveItem[];\n\t\t/** Livecam-live people (id = live session id), surfaced ABOVE the raters. */\n\t\tonCam?: LiveItem[];\n\t\t/** RAT-441: floors open now (id = live session id) — surfaced FIRST.\n\t\t *  A floor is a show you can join, not a 1:1 you queue for privately.\n\t\t *  RAT-459: only live AND occupied floors reach here now (listOnFloor gates\n\t\t *  on occupancy), so every row is a room with someone on stage or in line. */\n\t\tonFloor?: FloorItem[];\n\t}\n\tlet { raters, onCam = [], onFloor = [] }: Props = $props();\n\n\t// No ● in the text: the avatar's badge dot is already the green dot, and the\n\t// two of them a centimetre apart read as a mistake, not as emphasis.\n\tconst floorLabel = (f: FloorItem) =>\n\t\tf.floorStatus === 'pending'\n\t\t\t? t('open · be the first in line')\n\t\t\t: f.queueDepth\n\t\t\t\t? t('rating live · {n} in line', { n: f.queueDepth })\n\t\t\t\t: t('rating live · get in line');\n\n\t// The collapsed pill is ONE number in the page accent, always: floors and cams\n\t// ADD to the rater count rather than relabelling/recolouring the whole ticker.\n\t// It used to branch — floor beat cam beat raters — so a single floor hid the\n\t// fact that anyone was on cam at all, and the two knocked each other out.\n\t// The distinction is real, but it belongs in the opened sheet, where there's\n\t// room to say it. Collapsed, this is just \"how many people are live\".\n\tconst total = $derived(onFloor.length + onCam.length + raters.length);\n\t// The stack, not a lead. One avatar said \"a person is live\"; four overlapping\n\t// say \"people are live\", which is the thing the ticker exists to say. Floors\n\t// and cams keep their priority order, same as the opened sheet.\n\tconst preview = $derived([...onFloor, ...onCam, ...raters].slice(0, 4));\n\tconst previewNames = $derived(\n\t\t[...onFloor, ...onCam, ...raters]\n\t\t\t.slice(0, 3)\n\t\t\t.map((r) => `@${r.nickname ?? t('rater')}`)\n\t\t\t.join(' · ')\n\t);\n\n\tlet sheetOpen = $state(false);\n\tfunction open() {\n\t\tsheetOpen = true;\n\t}\n\tfunction close() {\n\t\tsheetOpen = false;\n\t}\n\tfunction onBackdrop(e: MouseEvent) {\n\t\tif (e.target === e.currentTarget) close();\n\t}\n\tfunction onKey(e: KeyboardEvent) {\n\t\tif (e.key === 'Escape') close();\n\t}\n</script>\n\n<svelte:window onkeydown={onKey} />\n\n{#if total > 0}\n\t<!-- Neutral ground, one point of colour. The bar wore the accent as a wash —\n\t\t tinted fill, tinted border, tinted label, tinted chevron — which on this\n\t\t site reads as neon trim, and the house rule is fills and hierarchy, not\n\t\t glow. The pulsing dot is the one thing left in accent: \"live\" is the only\n\t\t word here that colour has to say. -->\n\t<!-- w-full, because a button is not a div: it shrink-wraps its content, so\n\t\t the bar's width followed the length of the names — short list, short bar\n\t\t on desktop; long list, a bar wider than the phone with the chevron pushed\n\t\t off-screen and the fade happening where nobody can see it. -->\n\t<button\n\t\ttype=\"button\"\n\t\tonclick={open}\n\t\tclass=\"live-ticker flex w-full items-center gap-2.5 border-b border-border bg-surface/60 px-5 py-2.5 text-left transition-colors hover:bg-surface sm:mb-4 sm:rounded-lg sm:border sm:border-border sm:px-3\"\n\t\taria-label={t(\"see who's live\")}\n\t>\n\t\t<span class=\"flex shrink-0 -space-x-2\">\n\t\t\t{#each preview as r (r.id)}\n\t\t\t\t<span class=\"flex rounded-full ring-2 ring-bg\">\n\t\t\t\t\t<DuelAvatar\n\t\t\t\t\t\tnickname={r.nickname}\n\t\t\t\t\t\tavatarUrl={getAvatarUrl(r.avatarPath)}\n\t\t\t\t\t\tsize={26}\n\t\t\t\t\t\tlink={false}\n\t\t\t\t\t/>\n\t\t\t\t</span>\n\t\t\t{/each}\n\t\t\t{#if total > preview.length}\n\t\t\t\t<span\n\t\t\t\t\tclass=\"flex h-[26px] w-[26px] items-center justify-center rounded-full bg-surface-2 font-mono text-[9px] font-bold text-muted ring-2 ring-bg\"\n\t\t\t\t\t>+{total - preview.length}</span\n\t\t\t\t>\n\t\t\t{/if}\n\t\t</span>\n\t\t<span class=\"flex shrink-0 items-center gap-1.5\">\n\t\t\t<span class=\"live-dot h-1.5 w-1.5 rounded-full bg-accent\"></span>\n\t\t\t<span class=\"font-mono text-[10px] font-bold tracking-[0.18em] text-text uppercase\">\n\t\t\t\t{total === 1 ? t('1 live rater') : t('{n} live raters', { n: total })}\n\t\t\t</span>\n\t\t</span>\n\t\t<!-- Fade, not ellipsis: three dots at the cut read as punctuation inside a\n\t\t\t list that is already made of dots and dashes. The mask says \"there is\n\t\t\t more\" without adding a character, and the chevron beside it says where\n\t\t\t the more is. -->\n\t\t<span class=\"fadeclip min-w-0 flex-1 text-[12px] text-muted\">\n\t\t\t{previewNames}\n\t\t</span>\n\t\t<svg\n\t\t\tclass=\"h-3.5 w-3.5 shrink-0 text-muted\"\n\t\t\tviewBox=\"0 0 24 24\"\n\t\t\tfill=\"none\"\n\t\t\tstroke=\"currentColor\"\n\t\t\tstroke-width=\"2.5\"\n\t\t\tstroke-linecap=\"round\"\n\t\t\tstroke-linejoin=\"round\"\n\t\t>\n\t\t\t<path d=\"M9 5l7 7-7 7\" />\n\t\t</svg>\n\t</button>\n{/if}\n\n{#if sheetOpen}\n\t<!-- svelte-ignore a11y_click_events_have_key_events a11y_no_static_element_interactions -->\n\t<div\n\t\trole=\"presentation\"\n\t\tclass=\"fixed inset-0 z-[210] flex items-end justify-center bg-bg/85 backdrop-blur-sm md:items-center\"\n\t\tonclick={onBackdrop}\n\t\ttransition:fly={{ duration: 180 }}\n\t>\n\t\t<div\n\t\t\trole=\"dialog\"\n\t\t\taria-modal=\"true\"\n\t\t\taria-label={t(\"who's live\")}\n\t\t\tclass=\"w-full max-w-md rounded-t-2xl border-t border-border bg-surface shadow-soft md:rounded-2xl md:border\"\n\t\t\tstyle=\"padding-bottom: env(safe-area-inset-bottom, 0px);\"\n\t\t\ttransition:fly={{ y: 400, duration: 240, easing: cubicOut }}\n\t\t>\n\t\t\t<div class=\"flex items-center justify-between px-5 pt-5 pb-2\">\n\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t<span class=\"live-dot relative flex h-2 w-2\">\n\t\t\t\t\t\t<span\n\t\t\t\t\t\t\tclass=\"absolute inline-flex h-full w-full animate-ping rounded-full bg-accent opacity-75\"\n\t\t\t\t\t\t></span>\n\t\t\t\t\t\t<span class=\"relative inline-flex h-2 w-2 rounded-full bg-accent\"></span>\n\t\t\t\t\t</span>\n\t\t\t\t\t<h3 class=\"font-display text-base font-semibold\">{t('live now')}</h3>\n\t\t\t\t</div>\n\t\t\t\t<!-- A 44px target around the glyph. It was the bare 14px ×, and people\n\t\t\t\t\t tapped it three and four times running (162 sessions on /c, 37 on\n\t\t\t\t\t /f in 30 days). The negative margins spend the header's own padding\n\t\t\t\t\t on it, so the header keeps its height and the list below keeps its\n\t\t\t\t\t place. -->\n\t\t\t\t<button\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\tonclick={close}\n\t\t\t\t\tclass=\"-mt-3 -mr-3 -mb-2 flex h-11 w-11 items-center justify-center text-lg leading-none text-muted hover:text-text\"\n\t\t\t\t\taria-label={t('close')}>×</button\n\t\t\t\t>\n\t\t\t</div>\n\n\t\t\t<ul class=\"sheetscroll max-h-[60vh] overflow-y-auto px-3 pb-5\">\n\t\t\t\t<!-- RAT-441: floors first. A floor is a live show with a queue you can\n\t\t\t\t\t join; the rows below it are private 1:1 rates. Same separation\n\t\t\t\t\t device the on-cam block already uses — its own header, its own row\n\t\t\t\t\t treatment, its own CTA verb (join, not watch). -->\n\t\t\t\t{#if onFloor.length > 0}\n\t\t\t\t\t<li\n\t\t\t\t\t\tclass=\"px-2 pt-2 pb-1 font-mono text-[10px] font-bold tracking-[0.18em] uppercase\"\n\t\t\t\t\t\tstyle=\"color: #22c55e;\"\n\t\t\t\t\t>\n\t\t\t\t\t\t{t('public stage · open now')}\n\t\t\t\t\t</li>\n\t\t\t\t\t{#each onFloor as r (r.id)}\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<a\n\t\t\t\t\t\t\t\thref=\"/floor/{r.id}\"\n\t\t\t\t\t\t\t\tclass=\"flex items-center gap-3 rounded-lg px-2 py-2.5 no-underline transition-colors hover:bg-surface-2\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<!-- flex, so the wrapper hugs the inline-flex avatar: as a plain\n\t\t\t\t\t\t\t\t\t block it kept the line-box descender under it, and the badge\n\t\t\t\t\t\t\t\t\t dot anchored to -bottom sat visibly below the circle. -->\n\t\t\t\t\t\t\t\t<div class=\"relative flex shrink-0\">\n\t\t\t\t\t\t\t\t\t<DuelAvatar\n\t\t\t\t\t\t\t\t\t\tnickname={r.nickname}\n\t\t\t\t\t\t\t\t\t\tavatarUrl={getAvatarUrl(r.avatarPath)}\n\t\t\t\t\t\t\t\t\t\tsize={44}\n\t\t\t\t\t\t\t\t\t\thref=\"\"\n\t\t\t\t\t\t\t\t\t\tlink={false}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\t\t\tclass=\"absolute -right-0.5 -bottom-0.5 h-3 w-3 rounded-full border-2 border-surface\"\n\t\t\t\t\t\t\t\t\t\tstyle=\"background: #22c55e;\"\n\t\t\t\t\t\t\t\t\t></span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class=\"min-w-0 flex-1\">\n\t\t\t\t\t\t\t\t\t<div class=\"truncate text-sm font-semibold text-text\">\n\t\t\t\t\t\t\t\t\t\t@{r.nickname ?? t('host')}\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class=\"text-[11px]\" style=\"color: #22c55e;\">{floorLabel(r)}</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\t\tclass=\"shrink-0 rounded-lg px-2.5 py-1 text-[11px] font-bold\"\n\t\t\t\t\t\t\t\t\tstyle=\"background: #22c55e; color: #05230f;\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{t('join')}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t{/each}\n\t\t\t\t\t<li class=\"mx-2 my-2 border-t border-border\"></li>\n\t\t\t\t{/if}\n\t\t\t\t{#if onCam.length > 0}\n\t\t\t\t\t<li class=\"px-2 pt-2 pb-1 font-mono text-[10px] font-bold tracking-[0.18em] uppercase\" style=\"color: #22c55e;\">\n\t\t\t\t\t\t{t('on cam now')}\n\t\t\t\t\t</li>\n\t\t\t\t\t{#each onCam as r (r.id)}\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<a\n\t\t\t\t\t\t\t\thref=\"/livecam/{r.id}\"\n\t\t\t\t\t\t\t\tclass=\"flex items-center gap-3 rounded-lg px-2 py-2.5 no-underline transition-colors hover:bg-surface-2\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<div class=\"relative flex shrink-0\">\n\t\t\t\t\t\t\t\t\t<DuelAvatar\n\t\t\t\t\t\t\t\t\t\tnickname={r.nickname}\n\t\t\t\t\t\t\t\t\t\tavatarUrl={getAvatarUrl(r.avatarPath)}\n\t\t\t\t\t\t\t\t\t\tsize={44}\n\t\t\t\t\t\t\t\t\t\thref=\"\"\n\t\t\t\t\t\t\t\t\t\tlink={false}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\t\t\tclass=\"absolute -right-0.5 -bottom-0.5 h-3 w-3 rounded-full border-2 border-surface\"\n\t\t\t\t\t\t\t\t\t\tstyle=\"background: #22c55e;\"\n\t\t\t\t\t\t\t\t\t></span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class=\"min-w-0 flex-1\">\n\t\t\t\t\t\t\t\t\t<div class=\"truncate text-sm font-semibold text-text\">@{r.nickname ?? t('model')}</div>\n\t\t\t\t\t\t\t\t\t<div class=\"text-[11px]\" style=\"color: #22c55e;\">{t('live · on cam')}</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<span class=\"shrink-0 rounded-lg px-2.5 py-1 text-[11px] font-bold\" style=\"background: #22c55e; color: #05230f;\">\n\t\t\t\t\t\t\t\t\t{t('watch')}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t{/each}\n\t\t\t\t{/if}\n\n\t\t\t\t{#if raters.length > 0}\n\t\t\t\t\t<li class=\"px-2 pt-3 pb-1 font-mono text-[10px] font-bold tracking-[0.18em] text-muted uppercase\">\n\t\t\t\t\t\t{t('live raters · accepting pics')}\n\t\t\t\t\t</li>\n\t\t\t\t\t{#each raters as r (r.id)}\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<a\n\t\t\t\t\t\t\t\thref={r.nickname ? `/c/${encodeURIComponent(r.nickname)}?from=live_raters` : '/r'}\n\t\t\t\t\t\t\t\tonclick={(e) => goRater(e, r.nickname)}\n\t\t\t\t\t\t\t\tclass=\"flex items-center gap-3 rounded-lg px-2 py-2.5 no-underline transition-colors hover:bg-surface-2\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<!-- avatar → profile; the row itself → chat -->\n\t\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\t\tclass=\"relative flex shrink-0\"\n\t\t\t\t\t\t\t\t\trole=\"link\"\n\t\t\t\t\t\t\t\t\ttabindex=\"0\"\n\t\t\t\t\t\t\t\t\taria-label={t('open @{name} profile', { name: r.nickname ?? '' })}\n\t\t\t\t\t\t\t\t\tonclick={(e) => goProfile(e, r.nickname)}\n\t\t\t\t\t\t\t\t\tonkeydown={(e) => profileKey(e, r.nickname)}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<DuelAvatar\n\t\t\t\t\t\t\t\t\t\tnickname={r.nickname}\n\t\t\t\t\t\t\t\t\t\tavatarUrl={getAvatarUrl(r.avatarPath)}\n\t\t\t\t\t\t\t\t\t\tsize={44}\n\t\t\t\t\t\t\t\t\t\thref=\"\"\n\t\t\t\t\t\t\t\t\t\tlink={false}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t<span class=\"absolute -right-0.5 -bottom-0.5 h-3 w-3 rounded-full border-2 border-surface bg-accent\"></span>\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<div class=\"min-w-0 flex-1\">\n\t\t\t\t\t\t\t\t\t<div class=\"truncate text-sm font-semibold text-text\">\n\t\t\t\t\t\t\t\t\t\t<!-- name → profile -->\n\t\t\t\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\t\t\t\tclass=\"cursor-pointer hover:underline\"\n\t\t\t\t\t\t\t\t\t\t\trole=\"link\"\n\t\t\t\t\t\t\t\t\t\t\ttabindex=\"0\"\n\t\t\t\t\t\t\t\t\t\t\tonclick={(e) => goProfile(e, r.nickname)}\n\t\t\t\t\t\t\t\t\t\t\tonkeydown={(e) => profileKey(e, r.nickname)}>@{r.nickname ?? t('rater')}</span\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class=\"text-[11px] text-accent\">{t('live · accepting now')}</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t{#if r.freeRateEnabled === false}\n\t\t\t\t\t\t\t\t\t<span class=\"inline-flex shrink-0 items-center rounded bg-yellow/12 px-1.5 py-1\" aria-label={t('costs tokens')}>\n\t\t\t\t\t\t\t\t\t\t<TokenCoin size={13} />\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t{:else if r.freeRateEnabled === true}\n\t\t\t\t\t\t\t\t\t<span class=\"shrink-0 rounded bg-accent/12 px-1.5 py-0.5 font-display text-[10px] font-bold text-accent uppercase\">{t('free')}</span>\n\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t<svg class=\"h-4 w-4 shrink-0 text-muted\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n\t\t\t\t\t\t\t\t\t<path d=\"M9 5l7 7-7 7\" />\n\t\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t{/each}\n\t\t\t\t{/if}\n\t\t\t</ul>\n\n\t\t\t<div class=\"border-t border-border px-5 py-3 text-center\">\n\t\t\t\t<a href=\"/r\" class=\"text-[12px] font-semibold text-accent hover:underline\">\n\t\t\t\t\t{t('browse all raters →')}\n\t\t\t\t</a>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n{/if}\n\n<style>\n\t/* The sheet's list scrolls behind a faint thin thumb instead of the stock\n\t   bar — same treatment the NavMenu panel uses. Chrome reads the two\n\t   standard properties; the -webkit rules are for Safari, which still\n\t   ignores them. Track stays invisible either way. */\n\t.sheetscroll {\n\t\tscrollbar-width: thin;\n\t\tscrollbar-color: rgba(255, 255, 255, 0.16) transparent;\n\t}\n\t.sheetscroll::-webkit-scrollbar {\n\t\twidth: 6px;\n\t}\n\t.sheetscroll::-webkit-scrollbar-track {\n\t\tbackground: transparent;\n\t}\n\t.sheetscroll::-webkit-scrollbar-thumb {\n\t\tbackground: rgba(255, 255, 255, 0.16);\n\t\tborder-radius: 3px;\n\t}\n\n\t/* Overflowing names dissolve at the right edge instead of hitting it.\n\t   -webkit- prefix carried along for iOS Safari. */\n\t.fadeclip {\n\t\toverflow: hidden;\n\t\twhite-space: nowrap;\n\t\t-webkit-mask-image: linear-gradient(to right, black 78%, transparent);\n\t\tmask-image: linear-gradient(to right, black 78%, transparent);\n\t}\n\t.live-dot {\n\t\tanimation: live-pulse 1.6s ease-in-out infinite;\n\t}\n\t@keyframes live-pulse {\n\t\t0%,\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t\t50% {\n\t\t\topacity: 0.55;\n\t\t}\n\t}\n</style>\n"],"version":3}