__vite_ssr_exportName__("channelStatusTone", () => { try { return channelStatusTone } catch {} });
__vite_ssr_exportName__("channelUrl", () => { try { return channelUrl } catch {} });
/** Following is the normal state; paused/blocked are the ones worth noticing. */
function channelStatusTone(status) {
	if (status === "following") return "success";
	if (status === "blocked") return "danger";
	if (status === "paused") return "warning";
	return "neutral";
};
/** The channel page on YouTube (by UC id when known, else by @handle). */
function channelUrl(channel) {
	return channel.channel_id.startsWith("UC") ? `https://www.youtube.com/channel/${channel.channel_id}` : `https://www.youtube.com/${channel.handle}`;
}

//# vitestCache=W3siZmlsZSI6IjEiLCJpZCI6IjEiLCJpbXBvcnRzIjoiMiIsIm1hcHBpbmdzIjpmYWxzZSwiZGVwcyI6IjMiLCJkeW5hbWljRGVwcyI6IjQiLCJzdGF0aWNNb2NrcyI6bnVsbCwiaGFzQ292ZXJhZ2VEYXRhIjpmYWxzZX0sIkQ6L0dpdEh1Yi9WaWNlQ3V0L3dlYi9zcmMvZW50aXRpZXMvY2hhbm5lbC9zdGF0dXMudHMiLHsidXJscyI6IjUiLCJpZHMiOiI2In0sW10sW10sW10se31d
//# vitestSourceMap={"version":3,"mappings":"AAAA,CAAA;;;AAGO,SAAS,kBAAkB,QAAsB;CACtD,IAAI,WAAW,aAAa,OAAO;CACnC,IAAI,WAAW,WAAW,OAAO;CACjC,IAAI,WAAW,UAAU,OAAO;CAChC,OAAO;AACT;;AAGO,SAAS,WAAW,SAAyD;CAClF,OAAO,QAAQ,WAAW,WAAW,IAAI,IACrC,mCAAmC,QAAQ,eAC3C,2BAA2B,QAAQ;AACzC","names":[],"ignoreList":[],"sources":["status.ts"],"sourcesContent":["import type { Tone } from \"@/shared/ui\";\n\n/** Following is the normal state; paused/blocked are the ones worth noticing. */\nexport function channelStatusTone(status: string): Tone {\n  if (status === \"following\") return \"success\";\n  if (status === \"blocked\") return \"danger\";\n  if (status === \"paused\") return \"warning\";\n  return \"neutral\";\n}\n\n/** The channel page on YouTube (by UC id when known, else by @handle). */\nexport function channelUrl(channel: { channel_id: string; handle: string }): string {\n  return channel.channel_id.startsWith(\"UC\")\n    ? `https://www.youtube.com/channel/${channel.channel_id}`\n    : `https://www.youtube.com/${channel.handle}`;\n}\n"],"file":"/web/src/entities/channel/status.ts"}