plaudo-yt 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -1
- package/dist/cli/commands/serve.js +3 -0
- package/dist/dashboard/404.html +1 -1
- package/dist/dashboard/__next.__PAGE__.txt +10 -10
- package/dist/dashboard/__next._tree.txt +2 -2
- package/dist/dashboard/_next/static/chunks/{2h-l2fucgspda.js → 00b_mhfw_4bns.js} +1 -1
- package/dist/dashboard/_next/static/chunks/0kvw5pmfzrs53.js +1 -0
- package/dist/dashboard/_next/static/chunks/0rljsnn1k5cwe.js +1 -0
- package/dist/dashboard/_next/static/chunks/130ji-9g0yqmh.js +1 -0
- package/dist/dashboard/_next/static/chunks/1epiely1wggb1.js +1 -0
- package/dist/dashboard/_next/static/chunks/1ew-75vfigq7o.js +1 -0
- package/dist/dashboard/_next/static/chunks/1ohw1h687al9p.js +1 -0
- package/dist/dashboard/_next/static/chunks/{10089po-dtsmd.css → 2mg3r6g4ft-wg.css} +1 -1
- package/dist/dashboard/_next/static/chunks/{18znzfu2da8y1.js → 2nfdghy0oijv_.js} +1 -1
- package/dist/dashboard/_next/static/chunks/2yumeplyom0ho.js +1 -0
- package/dist/dashboard/_next/static/chunks/{39zba7q5ib54w.js → 3nywioopbfd3b.js} +1 -1
- package/dist/dashboard/_next/static/chunks/{3khjm37ti06ga.js → 3rknix09-i7iz.js} +1 -1
- package/dist/dashboard/_not-found/__next._not-found.__PAGE__.txt +4 -4
- package/dist/dashboard/_not-found/__next._tree.txt +2 -2
- package/dist/dashboard/_not-found.html +1 -1
- package/dist/dashboard/_not-found.txt +5 -5
- package/dist/dashboard/audience/__next._tree.txt +2 -2
- package/dist/dashboard/audience/__next.audience.__PAGE__.txt +8 -8
- package/dist/dashboard/audience.html +1 -1
- package/dist/dashboard/audience.txt +9 -9
- package/dist/dashboard/comments/__next._tree.txt +2 -2
- package/dist/dashboard/comments/__next.comments.__PAGE__.txt +8 -8
- package/dist/dashboard/comments.html +1 -1
- package/dist/dashboard/comments.txt +9 -9
- package/dist/dashboard/history/__next._tree.txt +2 -2
- package/dist/dashboard/history/__next.history.__PAGE__.txt +10 -10
- package/dist/dashboard/history.html +1 -1
- package/dist/dashboard/history.txt +11 -11
- package/dist/dashboard/index.html +1 -1
- package/dist/dashboard/index.txt +11 -11
- package/dist/dashboard/retention/__next._tree.txt +2 -2
- package/dist/dashboard/retention/__next.retention.__PAGE__.txt +10 -10
- package/dist/dashboard/retention.html +1 -1
- package/dist/dashboard/retention.txt +11 -11
- package/dist/dashboard/traffic/__next._tree.txt +2 -2
- package/dist/dashboard/traffic/__next.traffic.__PAGE__.txt +8 -8
- package/dist/dashboard/traffic.html +1 -1
- package/dist/dashboard/traffic.txt +9 -9
- package/dist/dashboard/video/__next._tree.txt +2 -2
- package/dist/dashboard/video/__next.video.__PAGE__.txt +10 -10
- package/dist/dashboard/video.html +1 -1
- package/dist/dashboard/video.txt +11 -11
- package/dist/server/app.d.ts +3 -0
- package/dist/server/app.js +3 -0
- package/dist/server/github-stars.d.ts +21 -0
- package/dist/server/github-stars.js +48 -0
- package/dist/server/index.d.ts +1 -0
- package/dist/server/index.js +1 -0
- package/package.json +3 -2
- package/dist/dashboard/_next/static/chunks/0oir97o3p3ub5.js +0 -1
- package/dist/dashboard/_next/static/chunks/1c3m5b_gqgzgt.js +0 -1
- package/dist/dashboard/_next/static/chunks/23-lngy32ofp_.js +0 -1
- package/dist/dashboard/_next/static/chunks/23janxssqh1uo.js +0 -1
- package/dist/dashboard/_next/static/chunks/24g_p2k05hvif.js +0 -1
- package/dist/dashboard/_next/static/chunks/2gm25dnuir21-.js +0 -1
- package/dist/dashboard/_next/static/chunks/36nezd8szp7wz.js +0 -1
- /package/dist/dashboard/_next/static/{4nrEWksTZ9s_jN9rXJgOf → wZOsiCNCh4Vth2vLvxSsz}/_buildManifest.js +0 -0
- /package/dist/dashboard/_next/static/{4nrEWksTZ9s_jN9rXJgOf → wZOsiCNCh4Vth2vLvxSsz}/_clientMiddlewareManifest.js +0 -0
- /package/dist/dashboard/_next/static/{4nrEWksTZ9s_jN9rXJgOf → wZOsiCNCh4Vth2vLvxSsz}/_ssgManifest.js +0 -0
package/README.md
CHANGED
|
@@ -2,7 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
# youtube-advanced-suite
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
**Your YouTube analytics: local, fast, and readable by your AI agents.**
|
|
6
|
+
|
|
7
|
+
<a href="docs/demo.mp4"><img src="docs/demo.gif" alt="plaudo-yt dashboard demo: switching periods and views with no loading" width="800"></a>
|
|
8
|
+
|
|
9
|
+
YouTube Studio is slow to load and slow to click through. The public YouTube Analytics API leaves out part of what Studio shows, such as thumbnail impressions and click-through rate, and new and returning viewers. Neither is built for AI agents.
|
|
10
|
+
|
|
11
|
+
`plaudo-yt` fixes all three. It captures your own channel's analytics in the background, with your own Google sign-in, and keeps them in a SQLite database on your machine. Every view of the local dashboard opens at once, the numbers build up into a history you can browse, compare and export, and your AI agent can read them through the built-in MCP server. Part of [Plaudo](https://plaudo.dev).
|
|
6
12
|
|
|
7
13
|
> **Unofficial.** This project is not made, endorsed or supported by YouTube or Google. YouTube is a trademark of Google LLC. YouTube's Terms of Service restrict access to the service by automated means, which may cover this use. Read [TERMS-NOTICE.md](TERMS-NOTICE.md): you accept it before the first capture, and you carry any consequence for your account.
|
|
8
14
|
|
|
@@ -3,6 +3,7 @@ import { chmodSync, existsSync, mkdirSync } from "node:fs";
|
|
|
3
3
|
import { join, resolve } from "node:path";
|
|
4
4
|
import { DEFAULT_MAX_REQUESTS } from "../../core/capture/engine.js";
|
|
5
5
|
import { mcpLaunch } from "../../mcp/launch.js";
|
|
6
|
+
import { githubStars } from "../../server/github-stars.js";
|
|
6
7
|
import { DEFAULT_PORT, startServer } from "../../server/server.js";
|
|
7
8
|
import { defaultDashboardDir } from "../../server/static.js";
|
|
8
9
|
import { ensureToken, generateToken } from "../../server/token.js";
|
|
@@ -87,6 +88,7 @@ async function serveDemo(ctx, port, staticDir) {
|
|
|
87
88
|
version: toolVersion(),
|
|
88
89
|
dashboardCapture: false,
|
|
89
90
|
demo: true,
|
|
91
|
+
githubStars: githubStars(),
|
|
90
92
|
mcp: mcpLaunch({
|
|
91
93
|
entry: process.argv[1],
|
|
92
94
|
execPath: process.execPath,
|
|
@@ -285,6 +287,7 @@ export default defineCommand({
|
|
|
285
287
|
setup,
|
|
286
288
|
settings,
|
|
287
289
|
dashboardCapture: ctx.options["no-capture-button"] !== true,
|
|
290
|
+
githubStars: githubStars(),
|
|
288
291
|
mcp: mcpLaunch({ entry: process.argv[1], execPath: process.execPath, env: ctx.env, ...launchFolders(ctx) }),
|
|
289
292
|
}).catch((e) => {
|
|
290
293
|
throw new CliError(`cannot listen on 127.0.0.1:${port}: ${e.code ?? e.message}`, ExitCode.failedTasks);
|
package/dist/dashboard/404.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/10089po-dtsmd.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/3b2e2hlmp0878.js"/><script src="/_next/static/chunks/2mq-pu4_mzyzw.js" async=""></script><script src="/_next/static/chunks/44c5n5qfmm7ak.js" async=""></script><script src="/_next/static/chunks/3f59deov-4q1z.js" async=""></script><script src="/_next/static/chunks/turbopack-2lihmh2pdnr2x.js" async=""></script><script src="/_next/static/chunks/2a3h7hdj0v6mq.js" async=""></script><script src="/_next/static/chunks/1kb_hgwtfl3rf.js" async=""></script><script src="/_next/static/chunks/39zba7q5ib54w.js" async=""></script><script src="/_next/static/chunks/0oir97o3p3ub5.js" async=""></script><meta name="robots" content="noindex"/><meta name="color-scheme" content="light dark"/><title>Overview | plaudo-yt</title><meta name="description" content="Your YouTube Studio numbers, kept on your machine."/><meta name="robots" content="noindex, nofollow"/><link rel="icon" href="/icon.svg?icon.40xy95--ln73k.svg" sizes="any" type="image/svg+xml"/><script>try{var t=localStorage.getItem("plaudo-yt.theme");if(t==="dark"||(t!=="light"&&matchMedia("(prefers-color-scheme: dark)").matches))document.documentElement.classList.add("dark")}catch(e){}</script><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><a href="#main" class="skip-link rounded-full bg-card px-4 py-2 text-sm font-medium text-card-foreground shadow-card ring-2 ring-ring">Skip to content</a><div data-slot="app-shell" class="isolate min-h-dvh bg-background sm:p-3 lg:p-5"><div data-slot="app-shell-backdrop" aria-hidden="true" class="vellum-backdrop"><span class="vellum-glow"></span><span class="vellum-glow"></span><span class="vellum-glow"></span></div><div data-slot="app-shell-panel" class="mx-auto flex min-h-dvh max-w-[1680px] min-w-0 flex-col bg-panel text-panel-foreground sm:min-h-[calc(100dvh-1.5rem)] sm:rounded-xl sm:border sm:shadow-panel lg:min-h-[calc(100dvh-2.5rem)]"><!--$!--><template data-dgst=""></template><header data-slot="top-nav" data-variant="flat" class="flex w-full min-w-0 flex-col gap-3 px-3 pt-3 pb-2 sm:px-4 md:px-6 md:pt-5"><div class="flex w-full min-w-0 flex-wrap items-center gap-x-3 gap-y-3 lg:flex-nowrap lg:gap-x-5"><div class="order-1 flex min-w-0 shrink items-center lg:max-w-[16rem] xl:max-w-[22rem]"><!--$!--><template data-dgst=""></template><div class="flex h-10 items-center gap-2.5 pl-1" aria-hidden="true"><div data-slot="skeleton" class="animate-pulse bg-muted size-8 rounded-full"></div><div data-slot="skeleton" class="animate-pulse bg-muted h-5 w-32 rounded-full"></div></div><!--/$--></div><div class="order-2 ml-auto flex min-w-0 shrink-0 items-center gap-2 lg:order-3"><!--$!--><template data-dgst=""></template><!--/$--><!--$!--><template data-dgst=""></template><!--/$--><!--$!--><template data-dgst=""></template><!--/$--><button data-slot="sheet-trigger" data-variant="outline" data-size="icon" class="inline-flex shrink-0 items-center justify-center gap-2 rounded-full text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 border bg-card text-card-foreground shadow-control hover:bg-accent hover:text-accent-foreground size-9 md:hidden" aria-label="Open menu" type="button" aria-haspopup="dialog" aria-expanded="false" data-state="closed"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-menu" aria-hidden="true"><path d="M4 5h16"></path><path d="M4 12h16"></path><path d="M4 19h16"></path></svg></button></div><nav aria-label="Views" class="order-3 hidden w-full min-w-0 md:block lg:order-2 lg:w-auto lg:flex-1"><ul class="m-0 flex max-w-full list-none items-center gap-1 overflow-x-auto p-0.5 [scrollbar-width:none]"><li class="shrink-0"><a data-slot="top-nav-link" class="inline-flex h-9 items-center rounded-full px-3.5 text-sm font-medium whitespace-nowrap text-muted-foreground transition-colors outline-none hover:bg-accent hover:text-accent-foreground focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-[current=page]:bg-card aria-[current=page]:text-card-foreground aria-[current=page]:shadow-control aria-[current=page]:ring-1 aria-[current=page]:ring-border" href="/">Overview</a></li><li class="shrink-0"><a data-slot="top-nav-link" class="inline-flex h-9 items-center rounded-full px-3.5 text-sm font-medium whitespace-nowrap text-muted-foreground transition-colors outline-none hover:bg-accent hover:text-accent-foreground focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-[current=page]:bg-card aria-[current=page]:text-card-foreground aria-[current=page]:shadow-control aria-[current=page]:ring-1 aria-[current=page]:ring-border" href="/traffic">Traffic</a></li><li class="shrink-0"><a data-slot="top-nav-link" class="inline-flex h-9 items-center rounded-full px-3.5 text-sm font-medium whitespace-nowrap text-muted-foreground transition-colors outline-none hover:bg-accent hover:text-accent-foreground focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-[current=page]:bg-card aria-[current=page]:text-card-foreground aria-[current=page]:shadow-control aria-[current=page]:ring-1 aria-[current=page]:ring-border" href="/retention">Retention</a></li><li class="shrink-0"><a data-slot="top-nav-link" class="inline-flex h-9 items-center rounded-full px-3.5 text-sm font-medium whitespace-nowrap text-muted-foreground transition-colors outline-none hover:bg-accent hover:text-accent-foreground focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-[current=page]:bg-card aria-[current=page]:text-card-foreground aria-[current=page]:shadow-control aria-[current=page]:ring-1 aria-[current=page]:ring-border" href="/audience">Audience</a></li><li class="shrink-0"><a data-slot="top-nav-link" class="inline-flex h-9 items-center rounded-full px-3.5 text-sm font-medium whitespace-nowrap text-muted-foreground transition-colors outline-none hover:bg-accent hover:text-accent-foreground focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-[current=page]:bg-card aria-[current=page]:text-card-foreground aria-[current=page]:shadow-control aria-[current=page]:ring-1 aria-[current=page]:ring-border" href="/comments">Comments</a></li><li class="shrink-0"><a data-slot="top-nav-link" class="inline-flex h-9 items-center rounded-full px-3.5 text-sm font-medium whitespace-nowrap text-muted-foreground transition-colors outline-none hover:bg-accent hover:text-accent-foreground focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-[current=page]:bg-card aria-[current=page]:text-card-foreground aria-[current=page]:shadow-control aria-[current=page]:ring-1 aria-[current=page]:ring-border" href="/history">History</a></li></ul></nav></div></header><!--/$--><main id="main" tabindex="-1" class="flex w-full min-w-0 flex-1 flex-col gap-6 px-3 pt-3 pb-8 sm:px-4 md:px-6"><div data-slot="empty" class="flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg border-dashed p-6 text-center text-balance md:p-12"><div data-slot="empty-header" class="flex max-w-sm flex-col items-center gap-2 text-center"><div data-slot="empty-title" class="text-lg font-medium tracking-tight">Page not found</div><div data-slot="empty-description" class="text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary">This address is not one of the dashboard's views.</div></div><div data-slot="empty-content" class="flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance"><a data-slot="button" data-variant="outline" data-size="sm" class="inline-flex shrink-0 items-center justify-center rounded-full text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 border bg-card text-card-foreground shadow-control hover:bg-accent hover:text-accent-foreground h-8 gap-1.5 px-3 has-[>svg]:px-2.5" href="/">Back to the overview</a></div></div><!--$--><!--/$--><footer class="mt-auto pt-2 text-center text-xs text-muted-foreground">Made with<!-- --> <span role="img" aria-label="love">❤️</span> <!-- -->by<!-- --> <a href="https://x.com/nicklaunches" target="_blank" rel="noopener noreferrer" class="font-medium text-foreground underline-offset-4 hover:underline">@nicklaunches</a></footer></main></div></div><script id="_R_">(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push({"otherChunks":["static/chunks/3b2e2hlmp0878.js","static/chunks/2mq-pu4_mzyzw.js","static/chunks/44c5n5qfmm7ak.js","static/chunks/3f59deov-4q1z.js"],"runtimeModuleIds":[94553]});</script><script src="/_next/static/chunks/3b2e2hlmp0878.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:\"/_next/static/chunks/2a3h7hdj0v6mq.js\"\n3:\"/_next/static/chunks/1kb_hgwtfl3rf.js\"\n4:\"/_next/static/chunks/39zba7q5ib54w.js\"\n5:\"/_next/static/chunks/0oir97o3p3ub5.js\"\n6:I[28231,[\"$2\",\"$3\",\"$4\",\"$5\"],\"TooltipProvider\"]\n7:I[81856,[\"$2\",\"$3\",\"$4\",\"$5\"],\"SiteHeader\"]\n8:I[39756,[\"$2\",\"$3\",\"$4\",\"$5\"],\"default\"]\n9:I[37457,[\"$2\",\"$3\",\"$4\",\"$5\"],\"default\"]\na:I[22016,[\"$2\",\"$3\",\"$4\",\"$5\"],\"\"]\n11:I[68027,[\"$2\",\"$3\",\"$4\",\"$5\"],\"default\",1]\n:HL[\"/_next/static/chunks/10089po-dtsmd.css\",\"style\"]\nd:X\ne:[[\"children\",{\"s\":\"__PAGE__\",\"h\":512,\"d\":{\"r\":\"$Lf\",\"p\":false,\"v\":null}}]]\nb:[[\"children\",{\"s\":\"/_not-found\",\"h\":512,\"d\":{\"r\":\"$Lc\",\"p\":false,\"v\":\"$d\"},\"c\":\"$Qe\"}]]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"t\":{\"t\":{\"s\":\"\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/10089po-dtsmd.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/2a3h7hdj0v6mq.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/1kb_hgwtfl3rf.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/_next/static/chunks/39zba7q5ib54w.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/_next/static/chunks/0oir97o3p3ub5.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"try{var t=localStorage.getItem(\\\"plaudo-yt.theme\\\");if(t===\\\"dark\\\"||(t!==\\\"light\\\"\u0026\u0026matchMedia(\\\"(prefers-color-scheme: dark)\\\").matches))document.documentElement.classList.add(\\\"dark\\\")}catch(e){}\"}}]}],[\"$\",\"body\",null,{\"children\":[[\"$\",\"a\",null,{\"href\":\"#main\",\"className\":\"skip-link rounded-full bg-card px-4 py-2 text-sm font-medium text-card-foreground shadow-card ring-2 ring-ring\",\"children\":\"Skip to content\"}],[\"$\",\"$L6\",null,{\"children\":[\"$\",\"div\",null,{\"data-slot\":\"app-shell\",\"className\":\"isolate min-h-dvh bg-background sm:p-3 lg:p-5\",\"children\":[[\"$\",\"div\",null,{\"data-slot\":\"app-shell-backdrop\",\"aria-hidden\":\"true\",\"className\":\"vellum-backdrop\",\"children\":[[\"$\",\"span\",null,{\"className\":\"vellum-glow\"}],[\"$\",\"span\",null,{\"className\":\"vellum-glow\"}],[\"$\",\"span\",null,{\"className\":\"vellum-glow\"}]]}],[\"$\",\"div\",null,{\"data-slot\":\"app-shell-panel\",\"className\":\"mx-auto flex min-h-dvh max-w-[1680px] min-w-0 flex-col bg-panel text-panel-foreground sm:min-h-[calc(100dvh-1.5rem)] sm:rounded-xl sm:border sm:shadow-panel lg:min-h-[calc(100dvh-2.5rem)]\",\"children\":[[\"$\",\"$L7\",null,{}],[\"$\",\"main\",null,{\"id\":\"main\",\"tabIndex\":-1,\"className\":\"flex w-full min-w-0 flex-1 flex-col gap-6 px-3 pt-3 pb-8 sm:px-4 md:px-6\",\"children\":[[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L9\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"div\",null,{\"data-slot\":\"empty\",\"className\":\"flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg border-dashed p-6 text-center text-balance md:p-12\",\"children\":[[\"$\",\"div\",null,{\"data-slot\":\"empty-header\",\"className\":\"flex max-w-sm flex-col items-center gap-2 text-center\",\"children\":[[\"$\",\"div\",null,{\"data-slot\":\"empty-title\",\"className\":\"text-lg font-medium tracking-tight\",\"children\":\"Page not found\"}],[\"$\",\"div\",null,{\"data-slot\":\"empty-description\",\"className\":\"text-sm/relaxed text-muted-foreground [\u0026\u003ea]:underline [\u0026\u003ea]:underline-offset-4 [\u0026\u003ea:hover]:text-primary\",\"children\":\"This address is not one of the dashboard's views.\"}]]}],[\"$\",\"div\",null,{\"data-slot\":\"empty-content\",\"className\":\"flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance\",\"children\":[\"$\",\"$La\",null,{\"href\":\"/\",\"children\":\"Back to the overview\",\"data-slot\":\"button\",\"data-variant\":\"outline\",\"data-size\":\"sm\",\"className\":\"inline-flex shrink-0 items-center justify-center rounded-full text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [\u0026_svg]:pointer-events-none [\u0026_svg]:shrink-0 [\u0026_svg:not([class*='size-'])]:size-4 border bg-card text-card-foreground shadow-control hover:bg-accent hover:text-accent-foreground h-8 gap-1.5 px-3 has-[\u003esvg]:px-2.5\",\"ref\":null}]}]]}],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}],[\"$\",\"footer\",null,{\"className\":\"mt-auto pt-2 text-center text-xs text-muted-foreground\",\"children\":[\"Made with\",\" \",[\"$\",\"span\",null,{\"role\":\"img\",\"aria-label\":\"love\",\"children\":\"❤️\"}],\" \",\"by\",\" \",[\"$\",\"a\",null,{\"href\":\"https://x.com/nicklaunches\",\"target\":\"_blank\",\"rel\":\"noopener noreferrer\",\"className\":\"font-medium text-foreground underline-offset-4 hover:underline\",\"children\":\"@nicklaunches\"}]]}]]}],\"$undefined\"]}]]}]}]]}]]}]]}],\"p\":false,\"v\":null},\"c\":\"$Qb\"},\"h\":{\"r\":\"$L10\",\"p\":false,\"v\":null}},\"m\":\"$undefined\",\"G\":[\"$11\",[\"$L12\"]],\"S\":true,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"4nrEWksTZ9s_jN9rXJgOf\"}\n"])</script><script>self.__next_f.push([1,"13:I[97367,[\"$2\",\"$3\",\"$4\",\"$5\"],\"OutletBoundary\"]\n14:\"$Sreact.suspense\"\n16:\"ViewportBoundary\"\n17:I[97367,[\"$2\",\"$3\",\"$4\",\"$5\"],\"$16\"]\n19:\"MetadataBoundary\"\n1a:I[97367,[\"$2\",\"$3\",\"$4\",\"$5\"],\"$19\"]\nc:[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L9\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}]\n"])</script><script>self.__next_f.push([1,"f:[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"div\",null,{\"data-slot\":\"empty\",\"className\":\"flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg border-dashed p-6 text-center text-balance md:p-12\",\"children\":[[\"$\",\"div\",null,{\"data-slot\":\"empty-header\",\"className\":\"flex max-w-sm flex-col items-center gap-2 text-center\",\"children\":[[\"$\",\"div\",null,{\"data-slot\":\"empty-title\",\"className\":\"text-lg font-medium tracking-tight\",\"children\":\"Page not found\"}],[\"$\",\"div\",null,{\"data-slot\":\"empty-description\",\"className\":\"text-sm/relaxed text-muted-foreground [\u0026\u003ea]:underline [\u0026\u003ea]:underline-offset-4 [\u0026\u003ea:hover]:text-primary\",\"children\":\"This address is not one of the dashboard's views.\"}]]}],[\"$\",\"div\",null,{\"data-slot\":\"empty-content\",\"className\":\"flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance\",\"children\":[\"$\",\"$La\",null,{\"href\":\"/\",\"children\":\"Back to the overview\",\"data-slot\":\"button\",\"data-variant\":\"outline\",\"data-size\":\"sm\",\"className\":\"inline-flex shrink-0 items-center justify-center rounded-full text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [\u0026_svg]:pointer-events-none [\u0026_svg]:shrink-0 [\u0026_svg:not([class*='size-'])]:size-4 border bg-card text-card-foreground shadow-control hover:bg-accent hover:text-accent-foreground h-8 gap-1.5 px-3 has-[\u003esvg]:px-2.5\",\"ref\":null}]}]]}],null,[\"$\",\"$L13\",null,{\"children\":[\"$\",\"$14\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@15\"}]}]]}]\n"])</script><script>self.__next_f.push([1,"10:[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L17\",null,{\"children\":\"$L18\"}],[\"$\",\"$L1a\",null,{\"children\":[[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$14\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L1b\"}]}],null]}],null]}]\n12:[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/10089po-dtsmd.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]\n"])</script><script>self.__next_f.push([1,"d:C\n18:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"2\",{\"name\":\"color-scheme\",\"content\":\"light dark\"}]]\n"])</script><script>self.__next_f.push([1,"1c:I[27201,[\"$2\",\"$3\",\"$4\",\"$5\"],\"IconMark\"]\n15:null\n1b:[[\"$\",\"title\",\"0\",{\"children\":\"Overview | plaudo-yt\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Your YouTube Studio numbers, kept on your machine.\"}],[\"$\",\"meta\",\"2\",{\"name\":\"robots\",\"content\":\"noindex, nofollow\"}],[\"$\",\"link\",\"3\",{\"rel\":\"icon\",\"href\":\"/icon.svg?icon.40xy95--ln73k.svg\",\"sizes\":\"any\",\"type\":\"image/svg+xml\"}],[\"$\",\"$L1c\",\"4\",{}]]\n"])</script></body></html>
|
|
1
|
+
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/2mg3r6g4ft-wg.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/3b2e2hlmp0878.js"/><script src="/_next/static/chunks/2mq-pu4_mzyzw.js" async=""></script><script src="/_next/static/chunks/44c5n5qfmm7ak.js" async=""></script><script src="/_next/static/chunks/3f59deov-4q1z.js" async=""></script><script src="/_next/static/chunks/turbopack-2lihmh2pdnr2x.js" async=""></script><script src="/_next/static/chunks/2a3h7hdj0v6mq.js" async=""></script><script src="/_next/static/chunks/1kb_hgwtfl3rf.js" async=""></script><script src="/_next/static/chunks/3nywioopbfd3b.js" async=""></script><script src="/_next/static/chunks/2yumeplyom0ho.js" async=""></script><meta name="robots" content="noindex"/><meta name="color-scheme" content="light dark"/><title>Overview | plaudo-yt</title><meta name="description" content="Your YouTube Studio numbers, kept on your machine."/><meta name="robots" content="noindex, nofollow"/><link rel="icon" href="/icon.svg?icon.40xy95--ln73k.svg" sizes="any" type="image/svg+xml"/><script>try{var t=localStorage.getItem("plaudo-yt.theme");if(t==="dark"||(t!=="light"&&matchMedia("(prefers-color-scheme: dark)").matches))document.documentElement.classList.add("dark")}catch(e){}</script><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><a href="#main" class="skip-link rounded-full bg-card px-4 py-2 text-sm font-medium text-card-foreground shadow-card ring-2 ring-ring">Skip to content</a><div data-slot="app-shell" class="isolate min-h-dvh bg-background sm:p-3 lg:p-5"><div data-slot="app-shell-backdrop" aria-hidden="true" class="vellum-backdrop"><span class="vellum-glow"></span><span class="vellum-glow"></span><span class="vellum-glow"></span></div><div data-slot="app-shell-panel" class="mx-auto flex min-h-dvh max-w-[1680px] min-w-0 flex-col bg-panel text-panel-foreground sm:min-h-[calc(100dvh-1.5rem)] sm:rounded-xl sm:border sm:shadow-panel lg:min-h-[calc(100dvh-2.5rem)]"><!--$!--><template data-dgst=""></template><header data-slot="top-nav" data-variant="flat" class="flex w-full min-w-0 flex-col gap-3 px-3 pt-3 pb-2 sm:px-4 md:px-6 md:pt-5"><div class="flex w-full min-w-0 flex-wrap items-center gap-x-3 gap-y-3 lg:flex-nowrap lg:gap-x-5"><div class="order-1 flex min-w-0 shrink items-center lg:max-w-[16rem] xl:max-w-[22rem]"><!--$!--><template data-dgst=""></template><div class="flex h-10 items-center gap-2.5 pl-1" aria-hidden="true"><div data-slot="skeleton" class="animate-pulse bg-muted size-8 rounded-full"></div><div data-slot="skeleton" class="animate-pulse bg-muted h-5 w-32 rounded-full"></div></div><!--/$--></div><div class="order-2 ml-auto flex min-w-0 shrink-0 items-center gap-2 lg:order-3"><!--$!--><template data-dgst=""></template><!--/$--><!--$!--><template data-dgst=""></template><!--/$--><a href="https://github.com/nicklaunches/youtube-advanced-suite" target="_blank" rel="noopener noreferrer" aria-label="plaudo-yt on GitHub" data-slot="github-link" data-variant="outline" data-size="icon" class="shrink-0 items-center justify-center gap-2 rounded-full text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 border bg-card text-card-foreground shadow-control hover:bg-accent hover:text-accent-foreground size-9 hidden md:inline-flex" data-state="closed"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" focusable="false" class="size-4"><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"></path></svg></a><!--$!--><template data-dgst=""></template><!--/$--><button data-slot="sheet-trigger" data-variant="outline" data-size="icon" class="inline-flex shrink-0 items-center justify-center gap-2 rounded-full text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 border bg-card text-card-foreground shadow-control hover:bg-accent hover:text-accent-foreground size-9 md:hidden" aria-label="Open menu" type="button" aria-haspopup="dialog" aria-expanded="false" data-state="closed"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-menu" aria-hidden="true"><path d="M4 5h16"></path><path d="M4 12h16"></path><path d="M4 19h16"></path></svg></button></div><nav aria-label="Views" class="order-3 hidden w-full min-w-0 md:block lg:order-2 lg:w-auto lg:flex-1"><ul class="m-0 flex max-w-full list-none items-center gap-1 overflow-x-auto p-0.5 [scrollbar-width:none]"><li class="shrink-0"><a data-slot="top-nav-link" class="inline-flex h-9 items-center rounded-full px-3.5 text-sm font-medium whitespace-nowrap text-muted-foreground transition-colors outline-none hover:bg-accent hover:text-accent-foreground focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-[current=page]:bg-card aria-[current=page]:text-card-foreground aria-[current=page]:shadow-control aria-[current=page]:ring-1 aria-[current=page]:ring-border" href="/">Overview</a></li><li class="shrink-0"><a data-slot="top-nav-link" class="inline-flex h-9 items-center rounded-full px-3.5 text-sm font-medium whitespace-nowrap text-muted-foreground transition-colors outline-none hover:bg-accent hover:text-accent-foreground focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-[current=page]:bg-card aria-[current=page]:text-card-foreground aria-[current=page]:shadow-control aria-[current=page]:ring-1 aria-[current=page]:ring-border" href="/traffic">Traffic</a></li><li class="shrink-0"><a data-slot="top-nav-link" class="inline-flex h-9 items-center rounded-full px-3.5 text-sm font-medium whitespace-nowrap text-muted-foreground transition-colors outline-none hover:bg-accent hover:text-accent-foreground focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-[current=page]:bg-card aria-[current=page]:text-card-foreground aria-[current=page]:shadow-control aria-[current=page]:ring-1 aria-[current=page]:ring-border" href="/retention">Retention</a></li><li class="shrink-0"><a data-slot="top-nav-link" class="inline-flex h-9 items-center rounded-full px-3.5 text-sm font-medium whitespace-nowrap text-muted-foreground transition-colors outline-none hover:bg-accent hover:text-accent-foreground focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-[current=page]:bg-card aria-[current=page]:text-card-foreground aria-[current=page]:shadow-control aria-[current=page]:ring-1 aria-[current=page]:ring-border" href="/audience">Audience</a></li><li class="shrink-0"><a data-slot="top-nav-link" class="inline-flex h-9 items-center rounded-full px-3.5 text-sm font-medium whitespace-nowrap text-muted-foreground transition-colors outline-none hover:bg-accent hover:text-accent-foreground focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-[current=page]:bg-card aria-[current=page]:text-card-foreground aria-[current=page]:shadow-control aria-[current=page]:ring-1 aria-[current=page]:ring-border" href="/comments">Comments</a></li><li class="shrink-0"><a data-slot="top-nav-link" class="inline-flex h-9 items-center rounded-full px-3.5 text-sm font-medium whitespace-nowrap text-muted-foreground transition-colors outline-none hover:bg-accent hover:text-accent-foreground focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-[current=page]:bg-card aria-[current=page]:text-card-foreground aria-[current=page]:shadow-control aria-[current=page]:ring-1 aria-[current=page]:ring-border" href="/history">History</a></li></ul></nav></div></header><!--/$--><main id="main" tabindex="-1" class="flex w-full min-w-0 flex-1 flex-col gap-6 px-3 pt-3 pb-8 sm:px-4 md:px-6"><div data-slot="empty" class="flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg border-dashed p-6 text-center text-balance md:p-12"><div data-slot="empty-header" class="flex max-w-sm flex-col items-center gap-2 text-center"><div data-slot="empty-title" class="text-lg font-medium tracking-tight">Page not found</div><div data-slot="empty-description" class="text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary">This address is not one of the dashboard's views.</div></div><div data-slot="empty-content" class="flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance"><a data-slot="button" data-variant="outline" data-size="sm" class="inline-flex shrink-0 items-center justify-center rounded-full text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 border bg-card text-card-foreground shadow-control hover:bg-accent hover:text-accent-foreground h-8 gap-1.5 px-3 has-[>svg]:px-2.5" href="/">Back to the overview</a></div></div><!--$--><!--/$--><footer class="mt-auto pt-2 text-center text-xs text-muted-foreground">Made with<!-- --> <span role="img" aria-label="love">❤️</span> <!-- -->by<!-- --> <a href="https://x.com/nicklaunches" target="_blank" rel="noopener noreferrer" class="font-medium text-foreground underline-offset-4 hover:underline">@nicklaunches</a></footer></main></div></div><script id="_R_">(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push({"otherChunks":["static/chunks/3b2e2hlmp0878.js","static/chunks/2mq-pu4_mzyzw.js","static/chunks/44c5n5qfmm7ak.js","static/chunks/3f59deov-4q1z.js"],"runtimeModuleIds":[94553]});</script><script src="/_next/static/chunks/3b2e2hlmp0878.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:\"/_next/static/chunks/2a3h7hdj0v6mq.js\"\n3:\"/_next/static/chunks/1kb_hgwtfl3rf.js\"\n4:\"/_next/static/chunks/3nywioopbfd3b.js\"\n5:\"/_next/static/chunks/2yumeplyom0ho.js\"\n6:I[28231,[\"$2\",\"$3\",\"$4\",\"$5\"],\"TooltipProvider\"]\n7:I[81856,[\"$2\",\"$3\",\"$4\",\"$5\"],\"SiteHeader\"]\n8:I[39756,[\"$2\",\"$3\",\"$4\",\"$5\"],\"default\"]\n9:I[37457,[\"$2\",\"$3\",\"$4\",\"$5\"],\"default\"]\na:I[22016,[\"$2\",\"$3\",\"$4\",\"$5\"],\"\"]\n11:I[68027,[\"$2\",\"$3\",\"$4\",\"$5\"],\"default\",1]\n:HL[\"/_next/static/chunks/2mg3r6g4ft-wg.css\",\"style\"]\nd:X\ne:[[\"children\",{\"s\":\"__PAGE__\",\"h\":512,\"d\":{\"r\":\"$Lf\",\"p\":false,\"v\":null}}]]\nb:[[\"children\",{\"s\":\"/_not-found\",\"h\":512,\"d\":{\"r\":\"$Lc\",\"p\":false,\"v\":\"$d\"},\"c\":\"$Qe\"}]]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"t\":{\"t\":{\"s\":\"\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/2mg3r6g4ft-wg.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/2a3h7hdj0v6mq.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/1kb_hgwtfl3rf.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/_next/static/chunks/3nywioopbfd3b.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/_next/static/chunks/2yumeplyom0ho.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"try{var t=localStorage.getItem(\\\"plaudo-yt.theme\\\");if(t===\\\"dark\\\"||(t!==\\\"light\\\"\u0026\u0026matchMedia(\\\"(prefers-color-scheme: dark)\\\").matches))document.documentElement.classList.add(\\\"dark\\\")}catch(e){}\"}}]}],[\"$\",\"body\",null,{\"children\":[[\"$\",\"a\",null,{\"href\":\"#main\",\"className\":\"skip-link rounded-full bg-card px-4 py-2 text-sm font-medium text-card-foreground shadow-card ring-2 ring-ring\",\"children\":\"Skip to content\"}],[\"$\",\"$L6\",null,{\"children\":[\"$\",\"div\",null,{\"data-slot\":\"app-shell\",\"className\":\"isolate min-h-dvh bg-background sm:p-3 lg:p-5\",\"children\":[[\"$\",\"div\",null,{\"data-slot\":\"app-shell-backdrop\",\"aria-hidden\":\"true\",\"className\":\"vellum-backdrop\",\"children\":[[\"$\",\"span\",null,{\"className\":\"vellum-glow\"}],[\"$\",\"span\",null,{\"className\":\"vellum-glow\"}],[\"$\",\"span\",null,{\"className\":\"vellum-glow\"}]]}],[\"$\",\"div\",null,{\"data-slot\":\"app-shell-panel\",\"className\":\"mx-auto flex min-h-dvh max-w-[1680px] min-w-0 flex-col bg-panel text-panel-foreground sm:min-h-[calc(100dvh-1.5rem)] sm:rounded-xl sm:border sm:shadow-panel lg:min-h-[calc(100dvh-2.5rem)]\",\"children\":[[\"$\",\"$L7\",null,{}],[\"$\",\"main\",null,{\"id\":\"main\",\"tabIndex\":-1,\"className\":\"flex w-full min-w-0 flex-1 flex-col gap-6 px-3 pt-3 pb-8 sm:px-4 md:px-6\",\"children\":[[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L9\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"div\",null,{\"data-slot\":\"empty\",\"className\":\"flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg border-dashed p-6 text-center text-balance md:p-12\",\"children\":[[\"$\",\"div\",null,{\"data-slot\":\"empty-header\",\"className\":\"flex max-w-sm flex-col items-center gap-2 text-center\",\"children\":[[\"$\",\"div\",null,{\"data-slot\":\"empty-title\",\"className\":\"text-lg font-medium tracking-tight\",\"children\":\"Page not found\"}],[\"$\",\"div\",null,{\"data-slot\":\"empty-description\",\"className\":\"text-sm/relaxed text-muted-foreground [\u0026\u003ea]:underline [\u0026\u003ea]:underline-offset-4 [\u0026\u003ea:hover]:text-primary\",\"children\":\"This address is not one of the dashboard's views.\"}]]}],[\"$\",\"div\",null,{\"data-slot\":\"empty-content\",\"className\":\"flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance\",\"children\":[\"$\",\"$La\",null,{\"href\":\"/\",\"children\":\"Back to the overview\",\"data-slot\":\"button\",\"data-variant\":\"outline\",\"data-size\":\"sm\",\"className\":\"inline-flex shrink-0 items-center justify-center rounded-full text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [\u0026_svg]:pointer-events-none [\u0026_svg]:shrink-0 [\u0026_svg:not([class*='size-'])]:size-4 border bg-card text-card-foreground shadow-control hover:bg-accent hover:text-accent-foreground h-8 gap-1.5 px-3 has-[\u003esvg]:px-2.5\",\"ref\":null}]}]]}],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}],[\"$\",\"footer\",null,{\"className\":\"mt-auto pt-2 text-center text-xs text-muted-foreground\",\"children\":[\"Made with\",\" \",[\"$\",\"span\",null,{\"role\":\"img\",\"aria-label\":\"love\",\"children\":\"❤️\"}],\" \",\"by\",\" \",[\"$\",\"a\",null,{\"href\":\"https://x.com/nicklaunches\",\"target\":\"_blank\",\"rel\":\"noopener noreferrer\",\"className\":\"font-medium text-foreground underline-offset-4 hover:underline\",\"children\":\"@nicklaunches\"}]]}]]}],\"$undefined\"]}]]}]}]]}]]}]]}],\"p\":false,\"v\":null},\"c\":\"$Qb\"},\"h\":{\"r\":\"$L10\",\"p\":false,\"v\":null}},\"m\":\"$undefined\",\"G\":[\"$11\",[\"$L12\"]],\"S\":true,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"wZOsiCNCh4Vth2vLvxSsz\"}\n"])</script><script>self.__next_f.push([1,"13:I[97367,[\"$2\",\"$3\",\"$4\",\"$5\"],\"OutletBoundary\"]\n14:\"$Sreact.suspense\"\n16:\"ViewportBoundary\"\n17:I[97367,[\"$2\",\"$3\",\"$4\",\"$5\"],\"$16\"]\n19:\"MetadataBoundary\"\n1a:I[97367,[\"$2\",\"$3\",\"$4\",\"$5\"],\"$19\"]\nc:[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L9\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}]\n"])</script><script>self.__next_f.push([1,"f:[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"div\",null,{\"data-slot\":\"empty\",\"className\":\"flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg border-dashed p-6 text-center text-balance md:p-12\",\"children\":[[\"$\",\"div\",null,{\"data-slot\":\"empty-header\",\"className\":\"flex max-w-sm flex-col items-center gap-2 text-center\",\"children\":[[\"$\",\"div\",null,{\"data-slot\":\"empty-title\",\"className\":\"text-lg font-medium tracking-tight\",\"children\":\"Page not found\"}],[\"$\",\"div\",null,{\"data-slot\":\"empty-description\",\"className\":\"text-sm/relaxed text-muted-foreground [\u0026\u003ea]:underline [\u0026\u003ea]:underline-offset-4 [\u0026\u003ea:hover]:text-primary\",\"children\":\"This address is not one of the dashboard's views.\"}]]}],[\"$\",\"div\",null,{\"data-slot\":\"empty-content\",\"className\":\"flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance\",\"children\":[\"$\",\"$La\",null,{\"href\":\"/\",\"children\":\"Back to the overview\",\"data-slot\":\"button\",\"data-variant\":\"outline\",\"data-size\":\"sm\",\"className\":\"inline-flex shrink-0 items-center justify-center rounded-full text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [\u0026_svg]:pointer-events-none [\u0026_svg]:shrink-0 [\u0026_svg:not([class*='size-'])]:size-4 border bg-card text-card-foreground shadow-control hover:bg-accent hover:text-accent-foreground h-8 gap-1.5 px-3 has-[\u003esvg]:px-2.5\",\"ref\":null}]}]]}],null,[\"$\",\"$L13\",null,{\"children\":[\"$\",\"$14\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@15\"}]}]]}]\n"])</script><script>self.__next_f.push([1,"10:[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L17\",null,{\"children\":\"$L18\"}],[\"$\",\"$L1a\",null,{\"children\":[[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$14\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L1b\"}]}],null]}],null]}]\n12:[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/2mg3r6g4ft-wg.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]\n"])</script><script>self.__next_f.push([1,"d:C\n18:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"2\",{\"name\":\"color-scheme\",\"content\":\"light dark\"}]]\n"])</script><script>self.__next_f.push([1,"1c:I[27201,[\"$2\",\"$3\",\"$4\",\"$5\"],\"IconMark\"]\n15:null\n1b:[[\"$\",\"title\",\"0\",{\"children\":\"Overview | plaudo-yt\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Your YouTube Studio numbers, kept on your machine.\"}],[\"$\",\"meta\",\"2\",{\"name\":\"robots\",\"content\":\"noindex, nofollow\"}],[\"$\",\"link\",\"3\",{\"rel\":\"icon\",\"href\":\"/icon.svg?icon.40xy95--ln73k.svg\",\"sizes\":\"any\",\"type\":\"image/svg+xml\"}],[\"$\",\"$L1c\",\"4\",{}]]\n"])</script></body></html>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
2
|
2:"/_next/static/chunks/2a3h7hdj0v6mq.js"
|
|
3
3
|
3:"/_next/static/chunks/1kb_hgwtfl3rf.js"
|
|
4
|
-
4:"/_next/static/chunks/
|
|
5
|
-
5:"/_next/static/chunks/
|
|
4
|
+
4:"/_next/static/chunks/3nywioopbfd3b.js"
|
|
5
|
+
5:"/_next/static/chunks/2yumeplyom0ho.js"
|
|
6
6
|
6:I[28231,["$2","$3","$4","$5"],"TooltipProvider"]
|
|
7
7
|
7:I[81856,["$2","$3","$4","$5"],"SiteHeader"]
|
|
8
8
|
8:I[39756,["$2","$3","$4","$5"],"default"]
|
|
@@ -11,13 +11,13 @@ a:I[22016,["$2","$3","$4","$5"],""]
|
|
|
11
11
|
e:"$Sreact.suspense"
|
|
12
12
|
1a:"ViewportBoundary"
|
|
13
13
|
1b:I[97367,["$2","$3","$4","$5"],"$1a"]
|
|
14
|
-
:HL["/_next/static/chunks/
|
|
14
|
+
:HL["/_next/static/chunks/2mg3r6g4ft-wg.css","style"]
|
|
15
15
|
c:X
|
|
16
16
|
d:[["children",{"s":"__PAGE__","h":160,"d":{"r":["$","$1","c",{"children":[["$","$e",null,{"fallback":["$","div",null,{"role":"status","aria-busy":"true","aria-live":"polite","className":"flex flex-col gap-6","children":["$Lf","$L10","$L11"]}],"children":"$L12"}],["$L13","$L14","$L15","$L16","$L17"],"$L18"]}],"p":"$@19","v":null,"s":"$c"}}]]
|
|
17
|
-
0:{"t":{"t":{"s":"","h":80,"d":{"r":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/
|
|
18
|
-
23:"/_next/static/chunks/
|
|
19
|
-
24:"/_next/static/chunks/
|
|
20
|
-
25:"/_next/static/chunks/
|
|
17
|
+
0:{"t":{"t":{"s":"","h":80,"d":{"r":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/2mg3r6g4ft-wg.css","precedence":"next"}],["$","script","script-0",{"src":"/_next/static/chunks/2a3h7hdj0v6mq.js","async":true}],["$","script","script-1",{"src":"/_next/static/chunks/1kb_hgwtfl3rf.js","async":true}],["$","script","script-2",{"src":"/_next/static/chunks/3nywioopbfd3b.js","async":true}],["$","script","script-3",{"src":"/_next/static/chunks/2yumeplyom0ho.js","async":true}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":[["$","head",null,{"children":["$","script",null,{"dangerouslySetInnerHTML":{"__html":"try{var t=localStorage.getItem(\"plaudo-yt.theme\");if(t===\"dark\"||(t!==\"light\"&&matchMedia(\"(prefers-color-scheme: dark)\").matches))document.documentElement.classList.add(\"dark\")}catch(e){}"}}]}],["$","body",null,{"children":[["$","a",null,{"href":"#main","className":"skip-link rounded-full bg-card px-4 py-2 text-sm font-medium text-card-foreground shadow-card ring-2 ring-ring","children":"Skip to content"}],["$","$L6",null,{"children":["$","div",null,{"data-slot":"app-shell","className":"isolate min-h-dvh bg-background sm:p-3 lg:p-5","children":[["$","div",null,{"data-slot":"app-shell-backdrop","aria-hidden":"true","className":"vellum-backdrop","children":[["$","span",null,{"className":"vellum-glow"}],["$","span",null,{"className":"vellum-glow"}],["$","span",null,{"className":"vellum-glow"}]]}],["$","div",null,{"data-slot":"app-shell-panel","className":"mx-auto flex min-h-dvh max-w-[1680px] min-w-0 flex-col bg-panel text-panel-foreground sm:min-h-[calc(100dvh-1.5rem)] sm:rounded-xl sm:border sm:shadow-panel lg:min-h-[calc(100dvh-2.5rem)]","children":[["$","$L7",null,{}],["$","main",null,{"id":"main","tabIndex":-1,"className":"flex w-full min-w-0 flex-1 flex-col gap-6 px-3 pt-3 pb-8 sm:px-4 md:px-6","children":[["$","$L8",null,{"parallelRouterKey":"children","template":["$","$L9",null,{}],"notFound":[["$","div",null,{"data-slot":"empty","className":"flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg border-dashed p-6 text-center text-balance md:p-12","children":[["$","div",null,{"data-slot":"empty-header","className":"flex max-w-sm flex-col items-center gap-2 text-center","children":[["$","div",null,{"data-slot":"empty-title","className":"text-lg font-medium tracking-tight","children":"Page not found"}],["$","div",null,{"data-slot":"empty-description","className":"text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary","children":"This address is not one of the dashboard's views."}]]}],["$","div",null,{"data-slot":"empty-content","className":"flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance","children":["$","$La",null,{"href":"/","children":"Back to the overview","data-slot":"button","data-variant":"outline","data-size":"sm","className":"inline-flex shrink-0 items-center justify-center rounded-full text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 border bg-card text-card-foreground shadow-control hover:bg-accent hover:text-accent-foreground h-8 gap-1.5 px-3 has-[>svg]:px-2.5","ref":null}]}]]}],[]]}],["$","footer",null,{"className":"mt-auto pt-2 text-center text-xs text-muted-foreground","children":["Made with"," ",["$","span",null,{"role":"img","aria-label":"love","children":"❤️"}]," ","by"," ",["$","a",null,{"href":"https://x.com/nicklaunches","target":"_blank","rel":"noopener noreferrer","className":"font-medium text-foreground underline-offset-4 hover:underline","children":"@nicklaunches"}]]}]]}],"$undefined"]}]]}]}]]}]]}]]}],"p":"$@b","v":null,"s":"$c"},"c":"$Qd"},"h":{"r":["$","$1","h",{"children":[null,["$","$L1b",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],"$L1c"]}],"$L1d",null]}],"p":"$@1e","v":null,"s":"$c"}},"u":"$@1f","b":"wZOsiCNCh4Vth2vLvxSsz"}
|
|
18
|
+
23:"/_next/static/chunks/0rljsnn1k5cwe.js"
|
|
19
|
+
24:"/_next/static/chunks/3rknix09-i7iz.js"
|
|
20
|
+
25:"/_next/static/chunks/00b_mhfw_4bns.js"
|
|
21
21
|
26:"/_next/static/chunks/0jdk56kfmqlph.js"
|
|
22
22
|
27:I[38156,["$2","$3","$4","$5","$23","$24","$25","$26"],"OverviewView"]
|
|
23
23
|
28:I[97367,["$2","$3","$4","$5"],"OutletBoundary"]
|
|
@@ -30,9 +30,9 @@ f:["$","span",null,{"className":"sr-only","children":"Loading..."}]
|
|
|
30
30
|
11:["$","div",null,{"className":"flex flex-col gap-6","aria-hidden":"true","children":[["$","div",null,{"className":"flex flex-col gap-4","children":[["$","div",null,{"className":"flex flex-col gap-1.5 px-1","children":[["$","div",null,{"data-slot":"skeleton","className":"animate-pulse rounded-sm bg-muted h-6 w-40"}],["$","div",null,{"data-slot":"skeleton","className":"animate-pulse rounded-sm bg-muted h-4 w-80 max-w-full"}]]}],["$","div",null,{"className":"@container overflow-hidden rounded-lg border bg-card shadow-card","children":["$","div",null,{"className":"-mr-px -mb-px grid grid-cols-1 @3xl:grid-cols-2 @3xl:[&>:last-child:nth-child(odd)]:col-span-2","children":[["$","div","0",{"className":"flex min-h-15 items-center gap-3 px-4 py-3 shadow-[inset_-1px_-1px_0_0_var(--border)] sm:px-5","children":[["$","div",null,{"data-slot":"skeleton","className":"animate-pulse rounded-sm bg-muted size-8 shrink-0"}],["$","div",null,{"data-slot":"skeleton","className":"animate-pulse rounded-sm bg-muted h-4 w-28"}],["$","div",null,{"data-slot":"skeleton","className":"animate-pulse rounded-sm bg-muted ml-auto h-5 w-20"}],["$","div",null,{"data-slot":"skeleton","className":"animate-pulse bg-muted h-5 w-16 rounded-full"}]]}],["$","div","1",{"className":"flex min-h-15 items-center gap-3 px-4 py-3 shadow-[inset_-1px_-1px_0_0_var(--border)] sm:px-5","children":[["$","div",null,{"data-slot":"skeleton","className":"animate-pulse rounded-sm bg-muted size-8 shrink-0"}],["$","div",null,{"data-slot":"skeleton","className":"animate-pulse rounded-sm bg-muted h-4 w-28"}],["$","div",null,{"data-slot":"skeleton","className":"animate-pulse rounded-sm bg-muted ml-auto h-5 w-20"}],["$","div",null,{"data-slot":"skeleton","className":"animate-pulse bg-muted h-5 w-16 rounded-full"}]]}],["$","div","2",{"className":"flex min-h-15 items-center gap-3 px-4 py-3 shadow-[inset_-1px_-1px_0_0_var(--border)] sm:px-5","children":[["$","div",null,{"data-slot":"skeleton","className":"animate-pulse rounded-sm bg-muted size-8 shrink-0"}],["$","div",null,{"data-slot":"skeleton","className":"animate-pulse rounded-sm bg-muted h-4 w-28"}],["$","div",null,{"data-slot":"skeleton","className":"animate-pulse rounded-sm bg-muted ml-auto h-5 w-20"}],["$","div",null,{"data-slot":"skeleton","className":"animate-pulse bg-muted h-5 w-16 rounded-full"}]]}],["$","div","3",{"className":"flex min-h-15 items-center gap-3 px-4 py-3 shadow-[inset_-1px_-1px_0_0_var(--border)] sm:px-5","children":[["$","div",null,{"data-slot":"skeleton","className":"animate-pulse rounded-sm bg-muted size-8 shrink-0"}],["$","div",null,{"data-slot":"skeleton","className":"animate-pulse rounded-sm bg-muted h-4 w-28"}],["$","div",null,{"data-slot":"skeleton","className":"animate-pulse rounded-sm bg-muted ml-auto h-5 w-20"}],["$","div",null,{"data-slot":"skeleton","className":"animate-pulse bg-muted h-5 w-16 rounded-full"}]]}],["$","div","4",{"className":"flex min-h-15 items-center gap-3 px-4 py-3 shadow-[inset_-1px_-1px_0_0_var(--border)] sm:px-5","children":[["$","div",null,{"data-slot":"skeleton","className":"animate-pulse rounded-sm bg-muted size-8 shrink-0"}],["$","div",null,{"data-slot":"skeleton","className":"animate-pulse rounded-sm bg-muted h-4 w-28"}],["$","div",null,{"data-slot":"skeleton","className":"animate-pulse rounded-sm bg-muted ml-auto h-5 w-20"}],["$","div",null,{"data-slot":"skeleton","className":"animate-pulse bg-muted h-5 w-16 rounded-full"}]]}],["$","div","5",{"className":"flex min-h-15 items-center gap-3 px-4 py-3 shadow-[inset_-1px_-1px_0_0_var(--border)] sm:px-5","children":[["$","div",null,{"data-slot":"skeleton","className":"animate-pulse rounded-sm bg-muted size-8 shrink-0"}],["$","div",null,{"data-slot":"skeleton","className":"animate-pulse rounded-sm bg-muted h-4 w-28"}],["$","div",null,{"data-slot":"skeleton","className":"animate-pulse rounded-sm bg-muted ml-auto h-5 w-20"}],["$","div",null,{"data-slot":"skeleton","className":"animate-pulse bg-muted h-5 w-16 rounded-full"}]]}]]}]}]]}],["$","div",null,{"className":"grid min-w-0 gap-6 xl:grid-cols-[minmax(0,1fr)_minmax(17rem,22rem)]","children":["$L20","$L21"]}],"$L22"]}]
|
|
31
31
|
12:["$","$L27",null,{}]
|
|
32
32
|
13:["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/41ddnqyptpema.css","precedence":"next"}]
|
|
33
|
-
14:["$","script","script-0",{"src":"/_next/static/chunks/
|
|
34
|
-
15:["$","script","script-1",{"src":"/_next/static/chunks/
|
|
35
|
-
16:["$","script","script-2",{"src":"/_next/static/chunks/
|
|
33
|
+
14:["$","script","script-0",{"src":"/_next/static/chunks/0rljsnn1k5cwe.js","async":true}]
|
|
34
|
+
15:["$","script","script-1",{"src":"/_next/static/chunks/3rknix09-i7iz.js","async":true}]
|
|
35
|
+
16:["$","script","script-2",{"src":"/_next/static/chunks/00b_mhfw_4bns.js","async":true}]
|
|
36
36
|
17:["$","script","script-3",{"src":"/_next/static/chunks/0jdk56kfmqlph.js","async":true}]
|
|
37
37
|
18:["$","$L28",null,{"children":["$","$e",null,{"name":"Next.MetadataOutlet","children":"$@29"}]}]
|
|
38
38
|
1c:["$","meta","2",{"name":"color-scheme","content":"light dark"}]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
:HL["/_next/static/chunks/
|
|
1
|
+
:HL["/_next/static/chunks/2mg3r6g4ft-wg.css","style"]
|
|
2
2
|
:HL["/_next/static/chunks/41ddnqyptpema.css","style"]
|
|
3
3
|
1:[["children",{"s":"__PAGE__","h":160}]]
|
|
4
|
-
0:{"b":"
|
|
4
|
+
0:{"b":"wZOsiCNCh4Vth2vLvxSsz","t":{"t":{"s":"","h":80,"c":"$Q1"}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,6603,a=>{var b=a.i(43476),c=a.i(79862);function d({items:a,className:e,...f}){let g=a.filter(a=>null!=a&&!1!==a&&""!==a);return g.length?(0,b.jsx)("ul",{"data-slot":"fact-chips",className:(0,c.f)("m-0 flex list-none flex-wrap gap-1.5 p-0",e),...f,children:g.map((a,c)=>(0,b.jsx)("li",{className:"inline-flex max-w-full min-w-0 items-center rounded-full bg-inset px-2.5 py-0.5 text-xs leading-5 font-medium text-muted-foreground [&_a]:truncate [&_a]:underline-offset-4 [&_a:hover]:underline [&_a:focus-visible]:rounded-full [&_a:focus-visible]:outline-none [&_a:focus-visible]:ring-[3px] [&_a:focus-visible]:ring-ring/50",children:a},c))}):null}a.s(["f",0,function({title:a,facts:e,description:f,actions:g,className:h}){return(0,b.jsxs)("div",{"data-slot":"page-header",className:(0,c.f)("flex flex-wrap items-end justify-between gap-x-8 gap-y-4 px-1 pt-1 sm:pt-2",h),children:[(0,b.jsxs)("div",{className:"flex max-w-3xl min-w-0 flex-col gap-2",children:[(0,b.jsx)("h1",{className:"min-w-0 font-display text-2xl leading-tight font-semibold tracking-tight text-balance break-words sm:text-[1.875rem]",children:a}),e?.length?(0,b.jsx)(d,{items:e,"aria-label":"About this page"}):null,f?(0,b.jsx)("div",{className:"max-w-[72ch] text-sm leading-relaxed text-muted-foreground",children:f}):null]}),g?(0,b.jsx)("div",{className:"flex min-w-0 flex-wrap items-end gap-3 sm:ml-auto sm:justify-end",children:g}):null]})}],6603)},27419,a=>{var b=a.i(43476),c=a.i(71645),d=a.i(70065),e=a.i(79862);a.s(["f",0,function({title:a,description:f,actions:g,children:h,className:i,contentClassName:j,level:k=2}){let l=(0,c.useId)();return(0,b.jsxs)(d.N,{role:"region","aria-labelledby":l,className:(0,e.f)("min-w-0 gap-5 py-5 sm:py-6",i),children:[(0,b.jsxs)("div",{className:"flex flex-wrap items-end justify-between gap-x-6 gap-y-3 px-4 sm:px-6",children:[(0,b.jsxs)("div",{className:"flex min-w-0 flex-col gap-1",children:[(0,b.jsx)(3===k?"h3":"h2",{id:l,"data-slot":"card-title",className:(0,e.f)("font-display leading-snug font-semibold tracking-tight text-balance",3===k?"text-base":"text-lg"),children:a}),f?(0,b.jsx)(d.u,{className:"max-w-[68ch] leading-relaxed text-pretty",children:f}):null]}),g?(0,b.jsx)("div",{className:"flex flex-wrap items-end gap-3 sm:ml-auto",children:g}):null]}),(0,b.jsx)(d.O,{className:(0,e.f)("min-w-0 px-4 sm:px-6",j),children:h})]})}])},43248,a=>{var b=a.i(43476),c=a.i(18566),d=a.i(6603),e=a.i(23394),f=a.i(74233),g=a.i(17148),h=a.i(6356),i=a.i(64935),j=a.i(54765),k=a.i(55575),l=a.i(72750),m=a.i(27419),n=a.i(71428);let o=[{label:"Read and accept the notice, and create the data folder",command:"plaudo-yt init"},{label:"Sign in to YouTube Studio in the window it opens; a full capture of the channel follows",command:"plaudo-yt login"}];function p(){let a=(0,e.c)();return(0,b.jsx)(m.f,{title:"Add your YouTube channel",description:"plaudo-yt reads your own channel's analytics from YouTube Studio, through a sign-in you make yourself in a separate Chrome window, and keeps every capture on this computer.",children:(0,b.jsxs)("div",{className:"flex min-w-0 flex-col gap-6",children:[null===a?(0,b.jsx)(n.f,{className:"h-9 w-40 rounded-full"}):a?(0,b.jsx)(k.f,{label:"Add your channel"}):null,(0,b.jsxs)("div",{className:"flex min-w-0 flex-col gap-3",children:[(0,b.jsx)("h3",{className:"m-0 text-sm font-semibold",children:a?"Or set it up in a terminal":"Set it up in a terminal"}),o.map(a=>(0,b.jsx)(l.f,{command:a.command,label:a.label,className:"max-w-xl"},a.command))]}),(0,b.jsxs)("div",{className:"flex min-w-0 flex-col gap-2",children:[(0,b.jsx)("p",{className:"m-0 text-sm text-muted-foreground",children:"To look around with made-up demo data first, start a demo dashboard beside this one:"}),(0,b.jsx)(l.f,{command:"plaudo-yt serve --demo",className:"max-w-xl"})]})]})})}a.s(["f",0,function({children:a,skeleton:k}){let{channel:l,channels:m,error:n,loading:o}=(0,f.f)(),q=(0,e.E)(),r=(0,c.usePathname)(),s=q.target?.origin===g.N&&(0,g.Y)(q)&&1===m.length&&m[0]?.id===q.channelId;return n?(0,b.jsx)(i.f,{title:(0,h.m)(r),error:n}):o?(0,b.jsx)(b.Fragment,{children:k??(0,b.jsx)(j.Y,{})}):!l||s?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(d.f,{title:(0,h.m)(r)}),(0,b.jsx)(p,{})]}):(0,b.jsx)(b.Fragment,{children:a(l)})}],43248)},91081,a=>{var b=a.i(43476),c=a.i(56420);let d={name:"inbox",size:24,node:[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11",key:"1gpv7n"}]]};d.node;let e=(0,c.f)(d);var f=a.i(25913),g=a.i(79862);function h({className:a,...c}){return(0,b.jsx)("div",{"data-slot":"empty",className:(0,g.f)("flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg border-dashed p-6 text-center text-balance md:p-12",a),...c})}function i({className:a,...c}){return(0,b.jsx)("div",{"data-slot":"empty-header",className:(0,g.f)("flex max-w-sm flex-col items-center gap-2 text-center",a),...c})}let j=(0,f.f)("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"flex size-10 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-6"}},defaultVariants:{variant:"default"}});function k({className:a,variant:c="default",...d}){return(0,b.jsx)("div",{"data-slot":"empty-icon","data-variant":c,className:(0,g.f)(j({variant:c,className:a})),...d})}function l({className:a,...c}){return(0,b.jsx)("div",{"data-slot":"empty-title",className:(0,g.f)("text-lg font-medium tracking-tight",a),...c})}function m({className:a,...c}){return(0,b.jsx)("div",{"data-slot":"empty-description",className:(0,g.f)("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",a),...c})}function n({className:a,...c}){return(0,b.jsx)("div",{"data-slot":"empty-content",className:(0,g.f)("flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance",a),...c})}var o=a.i(61106);a.s(["f",0,function({title:a,description:c,action:d,compact:f,className:j}){return f?(0,b.jsxs)(h,{className:(0,g.f)("gap-1.5 rounded-md bg-inset p-6 md:p-8",j),children:[(0,b.jsx)(m,{children:a}),c?(0,b.jsx)(m,{children:c}):null]}):(0,b.jsxs)(h,{className:(0,g.f)("gap-4 border border-dashed bg-card md:p-10",j),children:[(0,b.jsxs)(i,{children:[(0,b.jsx)(k,{children:(0,b.jsx)(o.f,{tone:"neutral",size:"lg",children:(0,b.jsx)(e,{})})}),(0,b.jsx)(l,{className:"font-display text-base font-semibold",children:a}),c?(0,b.jsx)(m,{children:c}):null]}),d?(0,b.jsx)(n,{children:d}):null]})}],91081)},73743,24003,a=>{var b=a.i(43476),c=a.i(3636),d=a.i(56420);let e={name:"database",size:24,node:[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5v14a9 3 0 0 0 18 0V5",key:"aqi0yr"}],["path",{d:"M3 12a9 3 0 0 0 18 0",key:"115u2b"}]]};e.node;let f=(0,d.f)(e);var g=a.i(38906),h=a.i(30222);let i={name:"search-check",size:24,node:[["path",{d:"m8 11 2 2 4-4",key:"1sed1v"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]};i.node;let j=(0,d.f)(i);var k=a.i(71645),l=a.i(17825),m=a.i(72750),n=a.i(76969),o=a.i(86341),p=a.i(81947),q=a.i(67881),r=a.i(66413),s=a.i(23394),t=a.i(54858),u=a.i(17148),v=a.i(91392);let w={retention:"No retention data in Studio yet",comments:"No comments in Studio yet",totals:"No numbers in Studio yet",daily:"No per-day numbers in Studio yet",breakdowns:"No breakdowns in Studio yet",traffic_sources:"No traffic sources in Studio yet",traffic_details:"No traffic details in Studio yet",audience_grid:"No online times in Studio yet",channel_cards:"No channel cards in Studio yet"};function x(a,b,c={},d=Date.now()){if(a?.outcome!=="empty")return null;let e=function(a,b=Date.now()){if(!a)return null;let c=new Date(a).getTime();if(Number.isNaN(c)||b-c>=1728e5||b<c)return null;let d=Math.floor((b-c)/36e5),e=d<1?"less than an hour ago":1===d?"1 hour ago":`${d} hours ago`;return`Published ${e}. Studio usually needs a day or two.`}(c.publishedAt,d);return{title:w[b],reason:e,checked:`Checked ${(0,v.X)(a.checkedAt,d)}`}}function y(a,b){return b.target&&b.canCapture?a?"check_again":"capture_now":b.target||b.command?"command":null}a.s(["A",0,function(a){return a>20?"Capture 20 of them":1===a?"Capture it":"Capture them"},"J",0,function(a,b,c=Date.now()){if("not_captured"===a)return"Not captured yet";let d=b?`, checked ${(0,v.X)(b.checkedAt,c)}`:"";return"too_new"===a?`No curve in Studio yet${d}`:`Studio has no curve${d}`},"T",0,y,"X",0,20,"c",0,x,"k",0,function(a){if(!a.missing)return null;let b=(a,b,c)=>`${(0,v.e)(a)} ${1===a?b:c}`,c=[a.tooNew?b(a.tooNew,"is too new for Studio","are too new for Studio"):null,a.notCaptured?b(a.notCaptured,"has not been captured","have not been captured"):null,a.studioHasNone?b(a.studioHasNone,"has none in Studio","have none in Studio"):null].filter(a=>null!==a),d=b(a.missing,"video has no retention curve yet","videos have no retention curve yet");return`${d}: ${c.join(", ")}.`}],24003);var z=a.i(79862);function A({command:a,what:c="it"}){return(0,b.jsxs)("p",{children:["Run ",(0,b.jsx)("code",{className:"rounded-sm bg-inset px-1.5 py-0.5 font-mono text-xs text-inset-foreground",children:a})," ","to capture ",c,"."]})}function B({target:a,label:d="Capture now",what:e="it"}){let f=(0,s.E)(),i=(0,s.U)(),[j,p]=(0,k.useState)(!1),v=(0,k.useId)(),w=(0,k.useId)(),x={...a,origin:w},y=f.target?.origin===w,C=(0,u.O)(x),D=(0,u.Y)(f),E="ended"===f.phase&&(y||f.channelId===x.channelId),F=(0,u.Z)(i)&&i.channelId===x.channelId,G=E&&"unavailable"===f.problem,H=(0,r.B)(G?`/api/channels/${(0,t.B)(x.channelId)}/capture`:null).data,I=H?.setup?.terms&&"accepted"!==H.setup.terms?H.setup.terms:null;return G?I?(0,b.jsx)(n.j,{terms:I}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("p",{children:["The dashboard could not start it: ",f.message,"."]}),(0,b.jsx)(A,{command:C,what:e})]}):(0,b.jsxs)("div",{className:"flex min-w-0 flex-col gap-3 pt-1",children:[(0,b.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,b.jsxs)(q.K,{type:"button",onClick:()=>void s.s.start(x),disabled:D||F,children:[D?(0,b.jsx)(g.f,{className:"motion-safe:animate-spin","aria-hidden":"true"}):(0,b.jsx)(h.f,{"aria-hidden":"true"}),D?"Capturing...":d]}),(0,b.jsxs)(q.K,{type:"button",variant:"ghost",size:"sm","aria-expanded":j,"aria-controls":v,onClick:()=>p(a=>!a),className:"text-muted-foreground",children:[j?"Hide command":"Show command",(0,b.jsx)(c.f,{className:(0,z.f)("transition-transform",j&&"rotate-180"),"aria-hidden":"true"})]})]}),(0,b.jsx)("div",{id:v,hidden:!j,children:j?(0,b.jsx)(m.f,{command:C,label:"Or run in a terminal",className:"w-full"}):null}),D||E?(0,b.jsx)(l.F,{run:f,live:y}):null,y&&(E&&(0,u.S)(f)||"idle"!==i.phase&&i.channelId===x.channelId)?(0,b.jsx)(o.x,{channelId:x.channelId,retry:f.target??x}):null]})}function C({target:a}){let c=(0,s.E)(),d=(0,s.U)(),e=(0,k.useId)(),f={...a,origin:e},h=c.target?.origin===e,i=(0,u.Y)(c),j=(0,u.Z)(d)&&d.channelId===f.channelId,m="ended"===c.phase&&h;return(0,b.jsxs)("div",{className:"flex min-w-0 flex-col gap-2",children:[(0,b.jsx)("div",{children:(0,b.jsxs)(q.K,{type:"button",variant:"link",size:"sm",className:"h-auto px-0",onClick:()=>void s.s.start(f),disabled:i||j,children:[i?(0,b.jsx)(g.f,{className:"motion-safe:animate-spin","aria-hidden":"true"}):null,i?"Checking...":"Check again"]})}),i&&h||m&&"done"!==c.state?(0,b.jsx)(l.F,{run:c,live:h}):null,h&&m&&(0,u.S)(c)?(0,b.jsx)(o.x,{channelId:f.channelId,retry:c.target??f}):null]})}a.s(["M",0,function({what:a,command:c,capture:d,check:e,section:g,context:h}){let i=(0,s.u)(),k=(0,r.v)()?void 0:d?(0,u.O)(d):c,l=g?x(e,g,h):null,m=y(l,{target:!!d,canCapture:!0===i,command:!!k}),n="capture_now"===m||"check_again"===m;return l?(0,b.jsxs)(p.J,{role:n?"group":"status",className:"border-dashed bg-card px-5 py-4 [&>svg]:text-muted-foreground",children:[(0,b.jsx)(j,{"aria-hidden":"true"}),(0,b.jsx)(p.s,{className:"font-semibold",children:l.title}),(0,b.jsxs)(p.p,{className:"min-w-0",children:[l.reason?(0,b.jsx)("p",{children:l.reason}):null,(0,b.jsx)("p",{className:"text-muted-foreground",children:l.checked}),"check_again"===m&&d?(0,b.jsx)(C,{target:d}):k?(0,b.jsxs)("p",{children:["Run"," ",(0,b.jsx)("code",{className:"rounded-sm bg-inset px-1.5 py-0.5 font-mono text-xs text-inset-foreground",children:k})," ","to check again."]}):null]})]}):(0,b.jsxs)(p.J,{role:n?"group":"status",className:"border-dashed bg-card px-5 py-4 [&>svg]:text-info",children:[(0,b.jsx)(f,{"aria-hidden":"true"}),(0,b.jsx)(p.s,{className:"font-semibold",children:"Not captured yet."}),(0,b.jsxs)(p.p,{className:(0,z.f)(n&&"min-w-0"),children:[(0,b.jsx)("p",{children:a}),n&&d?(0,b.jsx)(B,{target:d}):k?(0,b.jsx)(A,{command:k}):null]})]})},"U",0,B,"d",0,A],73743)},64935,41011,73168,a=>{var b=a.i(43476),c=a.i(6603),d=a.i(56420);let e={name:"circle-exclamation-point",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],aliases:["alert-circle","circle-alert"]};e.node;let f=(0,d.f)(e);a.s(["f",0,f],41011);var g=a.i(81947),h=a.i(54858);function i({error:a,title:c}){let d=a instanceof h.a?a.status:null;return(0,b.jsxs)(g.J,{className:"border-danger/30 bg-danger-soft px-5 py-4 text-danger-soft-foreground",children:[(0,b.jsx)(f,{"aria-hidden":"true"}),(0,b.jsx)(g.s,{className:"font-semibold",children:c??(404===d?"Not found.":"Could not load this view.")}),(0,b.jsx)(g.p,{className:"text-danger-soft-foreground",children:(0,b.jsxs)("p",{children:[a.message,null===d?(0,b.jsxs)(b.Fragment,{children:[" ","Is"," ",(0,b.jsx)("code",{className:"rounded-sm bg-card px-1.5 py-0.5 font-mono text-xs text-foreground",children:"plaudo-yt serve"})," ","still running?"]}):null]})})]})}a.s(["f",0,i],73168),a.s(["f",0,function({title:a,description:d,error:e}){return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(c.f,{title:a,description:d}),(0,b.jsx)(i,{error:e})]})}],64935)},54765,a=>{var b=a.i(43476),c=a.i(70065),d=a.i(71428),e=a.i(79862);let f=a=>Array.from({length:a},(a,b)=>b);function g({className:a,children:d}){return(0,b.jsx)(c.N,{className:(0,e.f)("min-w-0 gap-5 px-4 py-5 sm:px-6 sm:py-6",a),children:d})}function h({className:a}){return(0,b.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,b.jsx)(d.f,{className:"h-4 w-14"}),(0,b.jsx)(d.f,{className:(0,e.f)("h-9 w-36 rounded-full",a)})]})}function i({control:a=!0}){return(0,b.jsxs)("div",{className:"flex flex-wrap items-end justify-between gap-x-6 gap-y-3",children:[(0,b.jsx)(d.f,{className:"h-6 w-44"}),a?(0,b.jsx)(h,{}):null]})}function j(){return(0,b.jsxs)("div",{className:"flex flex-col gap-1.5 px-1",children:[(0,b.jsx)(d.f,{className:"h-6 w-40"}),(0,b.jsx)(d.f,{className:"h-4 w-80 max-w-full"})]})}function k({rows:a=4}){return(0,b.jsx)("div",{className:"flex flex-col divide-y",children:f(a).map(a=>(0,b.jsxs)("div",{className:"flex gap-3 py-4 first:pt-0 last:pb-0",children:[(0,b.jsx)(d.f,{className:"size-8 shrink-0"}),(0,b.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-2",children:[(0,b.jsx)(d.f,{className:"h-4 w-40 max-w-full"}),(0,b.jsx)(d.f,{className:"h-4 w-full"}),(0,b.jsx)(d.f,{className:"h-4 w-2/3"}),(0,b.jsx)(d.f,{className:"h-4 w-52 max-w-full"})]})]},a))})}function l(){return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(m,{items:3}),(0,b.jsxs)(g,{children:[(0,b.jsx)(i,{control:!1}),(0,b.jsxs)("div",{className:"flex flex-wrap items-end gap-3",children:[(0,b.jsx)(h,{className:"w-full sm:w-72"}),(0,b.jsx)(h,{className:"w-52"}),(0,b.jsx)(h,{className:"w-56"})]}),(0,b.jsx)(k,{rows:5})]})]})}function m({items:a=6}){return(0,b.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,b.jsx)(j,{}),(0,b.jsx)("div",{className:"@container overflow-hidden rounded-lg border bg-card shadow-card",children:(0,b.jsx)("div",{className:"-mr-px -mb-px grid grid-cols-1 @3xl:grid-cols-2 @3xl:[&>:last-child:nth-child(odd)]:col-span-2",children:f(a).map(a=>(0,b.jsxs)("div",{className:"flex min-h-15 items-center gap-3 px-4 py-3 shadow-[inset_-1px_-1px_0_0_var(--border)] sm:px-5",children:[(0,b.jsx)(d.f,{className:"size-8 shrink-0"}),(0,b.jsx)(d.f,{className:"h-4 w-28"}),(0,b.jsx)(d.f,{className:"ml-auto h-5 w-20"}),(0,b.jsx)(d.f,{className:"h-5 w-16 rounded-full"})]},a))})})]})}function n({height:a="h-[260px]"}){return(0,b.jsxs)("div",{className:(0,e.f)("relative w-full overflow-hidden rounded-sm",a),children:[(0,b.jsx)("div",{className:"absolute inset-0 flex flex-col justify-between py-2",children:f(5).map(a=>(0,b.jsx)("div",{className:"border-t border-dashed"},a))}),(0,b.jsx)(d.f,{className:"absolute inset-x-0 bottom-0 h-3/5 rounded-none rounded-t-lg bg-brand-soft"})]})}function o(){return(0,b.jsxs)(g,{children:[(0,b.jsx)(i,{}),(0,b.jsx)(n,{})]})}function p(){return(0,b.jsxs)("div",{className:"grid min-w-0 gap-6 xl:grid-cols-[minmax(0,1fr)_minmax(17rem,22rem)]",children:[(0,b.jsx)(o,{}),(0,b.jsxs)("div",{className:"flex min-h-56 flex-col gap-6 rounded-lg bg-brand-soft p-6",children:[(0,b.jsx)(d.f,{className:"h-6 w-56 max-w-full rounded-full bg-card/60"}),(0,b.jsx)(d.f,{className:"h-12 w-full bg-card/60"}),(0,b.jsxs)("div",{className:"mt-auto flex flex-col gap-4",children:[(0,b.jsx)(d.f,{className:"h-6 w-full bg-card/60"}),(0,b.jsx)(d.f,{className:"h-6 w-full bg-card/60"})]})]})]})}function q({rows:a}){return(0,b.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,b.jsx)(d.f,{className:"h-10 w-full bg-inset"}),f(a).map(a=>(0,b.jsx)(d.f,{className:"h-10 w-full"},a))]})}function r({rows:a=6,control:c=!1}){return(0,b.jsxs)(g,{children:[(0,b.jsx)(i,{control:c}),(0,b.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,b.jsx)(d.f,{className:"h-9 w-full rounded-full sm:w-72"}),(0,b.jsx)(d.f,{className:"ml-auto h-9 w-36 rounded-full"})]}),(0,b.jsx)(q,{rows:a})]})}function s(){return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(g,{children:[(0,b.jsx)(i,{control:!1}),(0,b.jsx)("div",{className:"grid gap-3 sm:grid-cols-3",children:f(3).map(a=>(0,b.jsx)(d.f,{className:"h-16 w-full bg-inset"},a))}),(0,b.jsx)(n,{height:"h-[220px]"})]}),(0,b.jsxs)(g,{children:[(0,b.jsx)(i,{control:!1}),(0,b.jsx)(d.f,{className:"h-9 w-72 max-w-full rounded-full"}),(0,b.jsx)("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(min(100%,24rem),1fr))] gap-4",children:f(4).map(a=>(0,b.jsxs)("div",{className:"flex flex-col gap-4 rounded-sm bg-inset p-4 sm:p-5",children:[(0,b.jsx)(d.f,{className:"h-5 w-40 bg-card"}),f(4).map(a=>(0,b.jsx)(d.f,{className:"h-12 w-full bg-card"},a))]},a))})]})]})}a.s(["Y",0,function({variant:a="chart-table"}){return(0,b.jsxs)("div",{role:"status","aria-busy":"true","aria-live":"polite",className:"flex flex-col gap-6",children:[(0,b.jsx)("span",{className:"sr-only",children:"Loading..."}),(0,b.jsxs)("div",{className:"flex flex-wrap items-end justify-between gap-x-8 gap-y-4 px-1 pt-1 sm:pt-2","aria-hidden":"true",children:[(0,b.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,b.jsx)(d.f,{className:"h-9 w-48 max-w-full"}),(0,b.jsxs)("div",{className:"flex flex-wrap gap-1.5",children:[(0,b.jsx)(d.f,{className:"h-6 w-24 rounded-full"}),(0,b.jsx)(d.f,{className:"h-6 w-20 rounded-full"}),(0,b.jsx)(d.f,{className:"h-6 w-32 rounded-full"})]})]}),(0,b.jsx)(h,{className:"w-[26rem] max-w-full"})]}),(0,b.jsx)("div",{className:"flex flex-col gap-6","aria-hidden":"true",children:"cards-chart-table"===a?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(m,{}),(0,b.jsx)(p,{}),(0,b.jsx)(r,{})]}):"chart-table"===a?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o,{}),(0,b.jsx)(r,{})]}):"grid"===a?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(r,{rows:4}),(0,b.jsx)(o,{}),(0,b.jsxs)("div",{className:"grid gap-4 2xl:grid-cols-2",children:[(0,b.jsx)(r,{rows:4}),(0,b.jsx)(r,{rows:4})]})]}):"audience"===a?(0,b.jsx)(s,{}):"comments"===a?(0,b.jsx)(l,{}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(r,{rows:5}),(0,b.jsx)(r,{rows:5,control:!0})]})})]})},"h",0,function({rows:a=3,label:c="Loading..."}){return(0,b.jsxs)("div",{role:"status","aria-busy":"true",className:"flex flex-col gap-1",children:[(0,b.jsx)("span",{className:"sr-only",children:c}),(0,b.jsx)(d.f,{className:"h-10 w-full bg-inset"}),f(a).map(a=>(0,b.jsx)(d.f,{className:"h-10 w-full"},a))]})},"s",0,k])},70065,a=>{var b=a.i(43476),c=a.i(25913),d=a.i(79862);let e=(0,c.f)("flex flex-col gap-6 py-6",{variants:{variant:{default:"rounded-lg border bg-card text-card-foreground shadow-card",inset:"rounded-sm bg-inset text-inset-foreground"}},defaultVariants:{variant:"default"}});a.s(["N",0,function({className:a,variant:c="default",...f}){return(0,b.jsx)("div",{"data-slot":"card","data-variant":c,className:(0,d.f)(e({variant:c}),a),...f})},"O",0,function({className:a,...c}){return(0,b.jsx)("div",{"data-slot":"card-content",className:(0,d.f)("px-6",a),...c})},"u",0,function({className:a,...c}){return(0,b.jsx)("div",{"data-slot":"card-description",className:(0,d.f)("text-sm text-muted-foreground",a),...c})}])},23750,a=>{var b=a.i(43476),c=a.i(79862);a.s(["f",0,function({className:a,type:d,...e}){return(0,b.jsx)("input",{type:d,"data-slot":"input",className:(0,c.f)("h-9 w-full min-w-0 rounded-full border border-input bg-card px-4 py-1 text-base shadow-control transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",a),...e})}])},10708,a=>{var b=a.i(43476),c=a.i(79862),d=a.i(71645),e=a.i(48425),f=Object.defineProperty,g=d.forwardRef(f(function(a,c){return(0,b.jsx)(e.V.label,{...a,ref:c,onMouseDown:b=>{b.target.closest("button, input, select, textarea")||(a.onMouseDown?.(b),!b.defaultPrevented&&b.detail>1&&b.preventDefault())}})},"name",{value:"Label",configurable:!0}));a.s(["Root",0,g],73741);var h=a.i(73741),h=h;a.s(["f",0,function({className:a,...d}){return(0,b.jsx)(h.Root,{"data-slot":"label",className:(0,c.f)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",a),...d})}],10708)},59377,a=>{var b=a.i(43476),c=a.i(79862),d=a.i(71645);a.i(34620);var e=a.i(81140),f=a.i(20783),g=a.i(30030),h=a.i(26330),i=a.i(3536),j=a.i(65491),k=a.i(10772),l=a.i(53660),m=a.i(74606),n=a.i(96626),o=a.i(48425),p=a.i(91918),q=a.i(69340),r=a.i(86312),s=a.i(85369),t=Object.defineProperty,u=(a,b)=>t(a,"name",{value:b,configurable:!0}),v="Popover",[w,x]=(0,g.f)(v,[l.y]),y=(0,l.y)(),[z,A]=w(v),B=u(a=>{let{__scopePopover:c,children:e,open:f,defaultOpen:g,onOpenChange:h,modal:i=!1}=a,j=y(c),m=d.useRef(null),[n,o]=d.useState(!1),[p,r]=d.useState(0),[s,t]=d.useState(0),[u,w]=(0,q.f)({prop:f,defaultProp:g??!1,onChange:h,caller:v});return(0,b.jsx)(l.F,{...j,children:(0,b.jsx)(z,{scope:c,contentId:(0,k.f)(),titleId:(0,k.f)(),descriptionId:(0,k.f)(),titlePresent:p>0,descriptionPresent:s>0,setTitleCount:r,setDescriptionCount:t,triggerRef:m,open:u,onOpenChange:w,onOpenToggle:d.useCallback(()=>w(a=>!a),[w]),hasCustomAnchor:n,onCustomAnchorAdd:d.useCallback(()=>o(!0),[]),onCustomAnchorRemove:d.useCallback(()=>o(!1),[]),modal:i,children:e})})},"Popover"),C=d.forwardRef(u(function(a,c){let{__scopePopover:e,...f}=a,g=A("PopoverAnchor",e),h=y(e),{onCustomAnchorAdd:i,onCustomAnchorRemove:j}=g;return d.useEffect(()=>(i(),()=>j()),[i,j]),(0,b.jsx)(l.g,{...h,...f,ref:c})},"PopoverAnchor")),D=d.forwardRef(u(function(a,c){let{__scopePopover:d,...g}=a,h=A("PopoverTrigger",d),i=y(d),j=(0,f.f)(c,h.triggerRef),k=(0,b.jsx)(o.V.button,{type:"button","aria-haspopup":"dialog","aria-expanded":h.open,"aria-controls":h.open?h.contentId:void 0,"data-state":O(h.open),...g,ref:j,onClick:(0,e.f)(a.onClick,h.onOpenToggle)});return h.hasCustomAnchor?k:(0,b.jsx)(l.g,{asChild:!0,...i,children:k})},"PopoverTrigger")),E="PopoverPortal",[F,G]=w(E,{forceMount:void 0}),H=u(a=>{let{__scopePopover:c,forceMount:d,children:e,container:f}=a,g=A(E,c);return(0,b.jsx)(F,{scope:c,forceMount:d,children:(0,b.jsx)(n.f,{present:d||g.open,children:(0,b.jsx)(m.f,{asChild:!0,container:f,children:e})})})},"PopoverPortal"),I="PopoverContent",J=d.forwardRef(u(function(a,c){let d=G(I,a.__scopePopover),{forceMount:e=d.forceMount,...f}=a,g=A(I,a.__scopePopover);return(0,b.jsx)(n.f,{present:e||g.open,children:g.modal?(0,b.jsx)(L,{...f,ref:c}):(0,b.jsx)(M,{...f,ref:c})})},"PopoverContent")),K=(0,p.createSlot)("PopoverContent.RemoveScroll"),L=d.forwardRef(u(function(a,c){let g=A(I,a.__scopePopover),h=d.useRef(null),i=(0,f.f)(c,h),k=d.useRef(!1),{nodes:l,registry:m}=(0,j.D)();return d.useEffect(()=>{let a=h.current;if(a)return(0,r.f)(a)},[]),(0,b.jsx)(s.f,{as:K,allowPinchZoom:!0,shards:d.useMemo(()=>[h,...l.map(a=>({current:a}))],[h,l]),children:(0,b.jsx)(N,{...a,ref:i,branchNodes:l,branchRegistry:m,trapFocus:g.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,e.f)(a.onCloseAutoFocus,a=>{a.preventDefault(),k.current||g.triggerRef.current?.focus()}),onPointerDownOutside:(0,e.f)(a.onPointerDownOutside,a=>{let b=a.detail.originalEvent,c=0===b.button&&!0===b.ctrlKey;k.current=2===b.button||c},{checkForDefaultPrevented:!1}),onFocusOutside:(0,e.f)(a.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),M=d.forwardRef(u(function(a,c){let e=A(I,a.__scopePopover),f=d.useRef(!1),g=d.useRef(!1);return(0,b.jsx)(N,{...a,ref:c,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:b=>{a.onCloseAutoFocus?.(b),b.defaultPrevented||(f.current||e.triggerRef.current?.focus(),b.preventDefault()),f.current=!1,g.current=!1},onInteractOutside:b=>{a.onInteractOutside?.(b),b.defaultPrevented||(f.current=!0,"pointerdown"===b.detail.originalEvent.type&&(g.current=!0));let c=b.target;e.triggerRef.current?.contains(c)&&b.preventDefault(),"focusin"===b.detail.originalEvent.type&&g.current&&b.preventDefault()}})},"PopoverContentNonModal")),N=d.forwardRef(u(function(a,c){let{__scopePopover:e,trapFocus:g,onOpenAutoFocus:k,onCloseAutoFocus:m,disableOutsidePointerEvents:n,onEscapeKeyDown:o,onPointerDownOutside:p,onFocusOutside:q,onInteractOutside:r,"aria-describedby":s,branchNodes:t,branchRegistry:u,...v}=a,w=A(I,e),x=y(e),[z,B]=d.useState(null),C=(0,f.f)(c,B);return(0,j.i)(z),(0,i.f)(),(0,b.jsx)(j.l,{registry:u,children:(0,b.jsx)(j.v,{asChild:!0,loop:!0,trapped:g,branches:t,onMountAutoFocus:k,onUnmountAutoFocus:m,children:(0,b.jsx)(h.V,{asChild:!0,disableOutsidePointerEvents:n,onInteractOutside:r,onEscapeKeyDown:o,onPointerDownOutside:p,onFocusOutside:q,onDismiss:()=>w.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,b.jsx)(l.c,{"data-state":O(w.open),role:"dialog",id:w.contentId,"aria-labelledby":w.titlePresent?w.titleId:void 0,"aria-describedby":w.descriptionPresent?P(s,w.descriptionId):s,...x,...v,ref:C,style:{...v.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})})},"PopoverContentImpl"));function O(a){return a?"open":"closed"}function P(...a){let b=new Set;for(let c of a)if("string"==typeof c)for(let a of String(c).trim().split(/\s+/))a&&b.add(a);return b.size>0?Array.from(b).join(" "):void 0}u(O,"getState"),u(P,"concatAriaDescribedby"),a.s(["Anchor",0,C,"Content",0,J,"Portal",0,H,"Root",0,B,"Trigger",0,D],78761);var Q=a.i(78761),Q=Q,R=Q,S=Q,T=Q;a.s(["J",0,function({...a}){return(0,b.jsx)(R.Trigger,{"data-slot":"popover-trigger",...a})},"T",0,function({className:a,align:d="center",sideOffset:e=4,...f}){return(0,b.jsx)(S.Portal,{children:(0,b.jsx)(T.Content,{"data-slot":"popover-content",align:d,sideOffset:e,className:(0,c.f)("z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-card outline-hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",a),...f})})},"V",0,function({...a}){return(0,b.jsx)(Q.Root,{"data-slot":"popover",...a})}],59377)},60024,80305,a=>{var b=a.i(43476),c=a.i(25913),d=a.i(79862),e=a.i(71645),f=a.i(81140),g=a.i(69340),h=a.i(48425),i=Object.defineProperty,j=e.forwardRef(i(function(a,c){let{pressed:d,defaultPressed:e,onPressedChange:i,...j}=a,[k,l]=(0,g.f)({prop:d,onChange:i,defaultProp:e??!1,caller:"Toggle"});return(0,b.jsx)(h.V.button,{type:"button","aria-pressed":k,"data-state":k?"on":"off","data-disabled":a.disabled?"":void 0,...j,ref:c,onClick:(0,f.f)(a.onClick,()=>{a.disabled||l(!k)})})},"name",{value:"Toggle",configurable:!0}));a.s(["Root",0,j,"Toggle",0,j],80305);var k=a.i(80305),k=k;let l=(0,c.f)("inline-flex items-center justify-center gap-2 rounded-full text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none hover:bg-accent hover:text-accent-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground data-[state=on]:shadow-control dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-transparent",outline:"border bg-card shadow-control"},size:{default:"h-9 min-w-9 px-2",sm:"h-8 min-w-8 px-1.5",lg:"h-10 min-w-10 px-2.5"}},defaultVariants:{variant:"default",size:"default"}});a.s(["F",0,l,"z",0,function({className:a,variant:c,size:e,...f}){return(0,b.jsx)(k.Root,{"data-slot":"toggle",className:(0,d.f)(l({variant:c,size:e,className:a})),...f})}],60024)},26805,a=>{var b=a.i(56420);let c={name:"calendar",size:24,node:[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}]]};c.node;let d=(0,b.f)(c);a.s(["f",0,d],26805)}]);})()
|
|
1
|
+
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,6603,a=>{var b=a.i(43476),c=a.i(79862);function d({items:a,className:e,...f}){let g=a.filter(a=>null!=a&&!1!==a&&""!==a);return g.length?(0,b.jsx)("ul",{"data-slot":"fact-chips",className:(0,c.f)("m-0 flex list-none flex-wrap gap-1.5 p-0",e),...f,children:g.map((a,c)=>(0,b.jsx)("li",{className:"inline-flex max-w-full min-w-0 items-center rounded-full bg-inset px-2.5 py-0.5 text-xs leading-5 font-medium text-muted-foreground [&_a]:truncate [&_a]:underline-offset-4 [&_a:hover]:underline [&_a:focus-visible]:rounded-full [&_a:focus-visible]:outline-none [&_a:focus-visible]:ring-[3px] [&_a:focus-visible]:ring-ring/50",children:a},c))}):null}a.s(["f",0,function({title:a,facts:e,description:f,actions:g,className:h}){return(0,b.jsxs)("div",{"data-slot":"page-header",className:(0,c.f)("flex flex-wrap items-end justify-between gap-x-8 gap-y-4 px-1 pt-1 sm:pt-2",h),children:[(0,b.jsxs)("div",{className:"flex max-w-3xl min-w-0 flex-col gap-2",children:[(0,b.jsx)("h1",{className:"min-w-0 font-display text-2xl leading-tight font-semibold tracking-tight text-balance break-words sm:text-[1.875rem]",children:a}),e?.length?(0,b.jsx)(d,{items:e,"aria-label":"About this page"}):null,f?(0,b.jsx)("div",{className:"max-w-[72ch] text-sm leading-relaxed text-muted-foreground",children:f}):null]}),g?(0,b.jsx)("div",{className:"flex min-w-0 flex-wrap items-end gap-3 sm:ml-auto sm:justify-end",children:g}):null]})}],6603)},27419,a=>{var b=a.i(43476),c=a.i(71645),d=a.i(70065),e=a.i(79862);a.s(["f",0,function({title:a,description:f,actions:g,children:h,className:i,contentClassName:j,level:k=2}){let l=(0,c.useId)();return(0,b.jsxs)(d.N,{role:"region","aria-labelledby":l,className:(0,e.f)("min-w-0 gap-5 py-5 sm:py-6",i),children:[(0,b.jsxs)("div",{className:"flex flex-wrap items-end justify-between gap-x-6 gap-y-3 px-4 sm:px-6",children:[(0,b.jsxs)("div",{className:"flex min-w-0 flex-col gap-1",children:[(0,b.jsx)(3===k?"h3":"h2",{id:l,"data-slot":"card-title",className:(0,e.f)("font-display leading-snug font-semibold tracking-tight text-balance",3===k?"text-base":"text-lg"),children:a}),f?(0,b.jsx)(d.u,{className:"max-w-[68ch] leading-relaxed text-pretty",children:f}):null]}),g?(0,b.jsx)("div",{className:"flex flex-wrap items-end gap-3 sm:ml-auto",children:g}):null]}),(0,b.jsx)(d.O,{className:(0,e.f)("min-w-0 px-4 sm:px-6",j),children:h})]})}])},43248,a=>{var b=a.i(43476),c=a.i(18566),d=a.i(6603),e=a.i(23394),f=a.i(74233),g=a.i(17148),h=a.i(6356),i=a.i(64935),j=a.i(54765),k=a.i(55575),l=a.i(72750),m=a.i(27419),n=a.i(71428);let o=[{label:"Read and accept the notice, and create the data folder",command:"plaudo-yt init"},{label:"Sign in to YouTube Studio in the window it opens; a full capture of the channel follows",command:"plaudo-yt login"}];function p(){let a=(0,e.c)();return(0,b.jsx)(m.f,{title:"Add your YouTube channel",description:"plaudo-yt reads your own channel's analytics from YouTube Studio, through a sign-in you make yourself in a separate Chrome window, and keeps every capture on this computer.",children:(0,b.jsxs)("div",{className:"flex min-w-0 flex-col gap-6",children:[null===a?(0,b.jsx)(n.f,{className:"h-9 w-40 rounded-full"}):a?(0,b.jsx)(k.f,{label:"Add your channel"}):null,(0,b.jsxs)("div",{className:"flex min-w-0 flex-col gap-3",children:[(0,b.jsx)("h3",{className:"m-0 text-sm font-semibold",children:a?"Or set it up in a terminal":"Set it up in a terminal"}),o.map(a=>(0,b.jsx)(l.f,{command:a.command,label:a.label,className:"max-w-xl"},a.command))]}),(0,b.jsxs)("div",{className:"flex min-w-0 flex-col gap-2",children:[(0,b.jsx)("p",{className:"m-0 text-sm text-muted-foreground",children:"To look around with made-up demo data first, start a demo dashboard beside this one:"}),(0,b.jsx)(l.f,{command:"plaudo-yt serve --demo",className:"max-w-xl"})]})]})})}a.s(["f",0,function({children:a,skeleton:k}){let{channel:l,channels:m,error:n,loading:o}=(0,f.f)(),q=(0,e.E)(),r=(0,c.usePathname)(),s=q.target?.origin===g.N&&(0,g.Y)(q)&&1===m.length&&m[0]?.id===q.channelId;return n?(0,b.jsx)(i.f,{title:(0,h.m)(r),error:n}):o?(0,b.jsx)(b.Fragment,{children:k??(0,b.jsx)(j.Y,{})}):!l||s?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(d.f,{title:(0,h.m)(r)}),(0,b.jsx)(p,{})]}):(0,b.jsx)(b.Fragment,{children:a(l)})}],43248)},91081,a=>{var b=a.i(43476),c=a.i(56420);let d={name:"inbox",size:24,node:[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11",key:"1gpv7n"}]]};d.node;let e=(0,c.f)(d);var f=a.i(25913),g=a.i(79862);function h({className:a,...c}){return(0,b.jsx)("div",{"data-slot":"empty",className:(0,g.f)("flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg border-dashed p-6 text-center text-balance md:p-12",a),...c})}function i({className:a,...c}){return(0,b.jsx)("div",{"data-slot":"empty-header",className:(0,g.f)("flex max-w-sm flex-col items-center gap-2 text-center",a),...c})}let j=(0,f.f)("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"flex size-10 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-6"}},defaultVariants:{variant:"default"}});function k({className:a,variant:c="default",...d}){return(0,b.jsx)("div",{"data-slot":"empty-icon","data-variant":c,className:(0,g.f)(j({variant:c,className:a})),...d})}function l({className:a,...c}){return(0,b.jsx)("div",{"data-slot":"empty-title",className:(0,g.f)("text-lg font-medium tracking-tight",a),...c})}function m({className:a,...c}){return(0,b.jsx)("div",{"data-slot":"empty-description",className:(0,g.f)("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",a),...c})}function n({className:a,...c}){return(0,b.jsx)("div",{"data-slot":"empty-content",className:(0,g.f)("flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance",a),...c})}var o=a.i(61106);a.s(["f",0,function({title:a,description:c,action:d,compact:f,className:j}){return f?(0,b.jsxs)(h,{className:(0,g.f)("gap-1.5 rounded-md bg-inset p-6 md:p-8",j),children:[(0,b.jsx)(m,{children:a}),c?(0,b.jsx)(m,{children:c}):null]}):(0,b.jsxs)(h,{className:(0,g.f)("gap-4 border border-dashed bg-card md:p-10",j),children:[(0,b.jsxs)(i,{children:[(0,b.jsx)(k,{children:(0,b.jsx)(o.f,{tone:"neutral",size:"lg",children:(0,b.jsx)(e,{})})}),(0,b.jsx)(l,{className:"font-display text-base font-semibold",children:a}),c?(0,b.jsx)(m,{children:c}):null]}),d?(0,b.jsx)(n,{children:d}):null]})}],91081)},73743,24003,a=>{var b=a.i(43476),c=a.i(3636),d=a.i(56420);let e={name:"database",size:24,node:[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5v14a9 3 0 0 0 18 0V5",key:"aqi0yr"}],["path",{d:"M3 12a9 3 0 0 0 18 0",key:"115u2b"}]]};e.node;let f=(0,d.f)(e);var g=a.i(38906),h=a.i(30222);let i={name:"search-check",size:24,node:[["path",{d:"m8 11 2 2 4-4",key:"1sed1v"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]};i.node;let j=(0,d.f)(i);var k=a.i(71645),l=a.i(17825),m=a.i(72750),n=a.i(76969),o=a.i(86341),p=a.i(81947),q=a.i(67881),r=a.i(66413),s=a.i(23394),t=a.i(54858),u=a.i(17148),v=a.i(91392);let w={retention:"No retention data in Studio yet",comments:"No comments in Studio yet",totals:"No numbers in Studio yet",daily:"No per-day numbers in Studio yet",breakdowns:"No breakdowns in Studio yet",traffic_sources:"No traffic sources in Studio yet",traffic_details:"No traffic details in Studio yet",audience_grid:"No online times in Studio yet",channel_cards:"No channel cards in Studio yet"};function x(a,b,c={},d=Date.now()){if(a?.outcome!=="empty")return null;let e=function(a,b=Date.now()){if(!a)return null;let c=new Date(a).getTime();if(Number.isNaN(c)||b-c>=1728e5||b<c)return null;let d=Math.floor((b-c)/36e5),e=d<1?"less than an hour ago":1===d?"1 hour ago":`${d} hours ago`;return`Published ${e}. Studio usually needs a day or two.`}(c.publishedAt,d);return{title:w[b],reason:e,checked:`Checked ${(0,v.X)(a.checkedAt,d)}`}}function y(a,b){return b.target&&b.canCapture?a?"check_again":"capture_now":b.target||b.command?"command":null}a.s(["A",0,function(a){return a>20?"Capture 20 of them":1===a?"Capture it":"Capture them"},"J",0,function(a,b,c=Date.now()){if("not_captured"===a)return"Not captured yet";let d=b?`, checked ${(0,v.X)(b.checkedAt,c)}`:"";return"too_new"===a?`No curve in Studio yet${d}`:`Studio has no curve${d}`},"T",0,y,"X",0,20,"c",0,x,"k",0,function(a){if(!a.missing)return null;let b=(a,b,c)=>`${(0,v.e)(a)} ${1===a?b:c}`,c=[a.tooNew?b(a.tooNew,"is too new for Studio","are too new for Studio"):null,a.notCaptured?b(a.notCaptured,"has not been captured","have not been captured"):null,a.studioHasNone?b(a.studioHasNone,"has none in Studio","have none in Studio"):null].filter(a=>null!==a),d=b(a.missing,"video has no retention curve yet","videos have no retention curve yet");return`${d}: ${c.join(", ")}.`}],24003);var z=a.i(79862);function A({command:a,what:c="it"}){return(0,b.jsxs)("p",{children:["Run ",(0,b.jsx)("code",{className:"rounded-sm bg-inset px-1.5 py-0.5 font-mono text-xs text-inset-foreground",children:a})," ","to capture ",c,"."]})}function B({target:a,label:d="Capture now",what:e="it"}){let f=(0,s.E)(),i=(0,s.U)(),[j,p]=(0,k.useState)(!1),v=(0,k.useId)(),w=(0,k.useId)(),x={...a,origin:w},y=f.target?.origin===w,C=(0,u.O)(x),D=(0,u.Y)(f),E="ended"===f.phase&&(y||f.channelId===x.channelId),F=(0,u.Z)(i)&&i.channelId===x.channelId,G=E&&"unavailable"===f.problem,H=(0,r.B)(G?`/api/channels/${(0,t.B)(x.channelId)}/capture`:null).data,I=H?.setup?.terms&&"accepted"!==H.setup.terms?H.setup.terms:null;return G?I?(0,b.jsx)(n.j,{terms:I}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("p",{children:["The dashboard could not start it: ",f.message,"."]}),(0,b.jsx)(A,{command:C,what:e})]}):(0,b.jsxs)("div",{className:"flex min-w-0 flex-col gap-3 pt-1",children:[(0,b.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,b.jsxs)(q.K,{type:"button",onClick:()=>void s.s.start(x),disabled:D||F,children:[D?(0,b.jsx)(g.f,{className:"motion-safe:animate-spin","aria-hidden":"true"}):(0,b.jsx)(h.f,{"aria-hidden":"true"}),D?"Capturing...":d]}),(0,b.jsxs)(q.K,{type:"button",variant:"ghost",size:"sm","aria-expanded":j,"aria-controls":v,onClick:()=>p(a=>!a),className:"text-muted-foreground",children:[j?"Hide command":"Show command",(0,b.jsx)(c.f,{className:(0,z.f)("transition-transform",j&&"rotate-180"),"aria-hidden":"true"})]})]}),(0,b.jsx)("div",{id:v,hidden:!j,children:j?(0,b.jsx)(m.f,{command:C,label:"Or run in a terminal",className:"w-full"}):null}),D||E?(0,b.jsx)(l.F,{run:f,live:y}):null,y&&(E&&(0,u.S)(f)||"idle"!==i.phase&&i.channelId===x.channelId)?(0,b.jsx)(o.x,{channelId:x.channelId,retry:f.target??x}):null]})}function C({target:a}){let c=(0,s.E)(),d=(0,s.U)(),e=(0,k.useId)(),f={...a,origin:e},h=c.target?.origin===e,i=(0,u.Y)(c),j=(0,u.Z)(d)&&d.channelId===f.channelId,m="ended"===c.phase&&h;return(0,b.jsxs)("div",{className:"flex min-w-0 flex-col gap-2",children:[(0,b.jsx)("div",{children:(0,b.jsxs)(q.K,{type:"button",variant:"link",size:"sm",className:"h-auto px-0",onClick:()=>void s.s.start(f),disabled:i||j,children:[i?(0,b.jsx)(g.f,{className:"motion-safe:animate-spin","aria-hidden":"true"}):null,i?"Checking...":"Check again"]})}),i&&h||m&&"done"!==c.state?(0,b.jsx)(l.F,{run:c,live:h}):null,h&&m&&(0,u.S)(c)?(0,b.jsx)(o.x,{channelId:f.channelId,retry:c.target??f}):null]})}a.s(["M",0,function({what:a,command:c,capture:d,check:e,section:g,context:h}){let i=(0,s.u)(),k=(0,r.v)()?void 0:d?(0,u.O)(d):c,l=g?x(e,g,h):null,m=y(l,{target:!!d,canCapture:!0===i,command:!!k}),n="capture_now"===m||"check_again"===m;return l?(0,b.jsxs)(p.J,{role:n?"group":"status",className:"border-dashed bg-card px-5 py-4 [&>svg]:text-muted-foreground",children:[(0,b.jsx)(j,{"aria-hidden":"true"}),(0,b.jsx)(p.s,{className:"font-semibold",children:l.title}),(0,b.jsxs)(p.p,{className:"min-w-0",children:[l.reason?(0,b.jsx)("p",{children:l.reason}):null,(0,b.jsx)("p",{className:"text-muted-foreground",children:l.checked}),"check_again"===m&&d?(0,b.jsx)(C,{target:d}):k?(0,b.jsxs)("p",{children:["Run"," ",(0,b.jsx)("code",{className:"rounded-sm bg-inset px-1.5 py-0.5 font-mono text-xs text-inset-foreground",children:k})," ","to check again."]}):null]})]}):(0,b.jsxs)(p.J,{role:n?"group":"status",className:"border-dashed bg-card px-5 py-4 [&>svg]:text-info",children:[(0,b.jsx)(f,{"aria-hidden":"true"}),(0,b.jsx)(p.s,{className:"font-semibold",children:"Not captured yet."}),(0,b.jsxs)(p.p,{className:(0,z.f)(n&&"min-w-0"),children:[(0,b.jsx)("p",{children:a}),n&&d?(0,b.jsx)(B,{target:d}):k?(0,b.jsx)(A,{command:k}):null]})]})},"U",0,B,"d",0,A],73743)},64935,41011,73168,a=>{var b=a.i(43476),c=a.i(6603),d=a.i(56420);let e={name:"circle-exclamation-point",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],aliases:["alert-circle","circle-alert"]};e.node;let f=(0,d.f)(e);a.s(["f",0,f],41011);var g=a.i(81947),h=a.i(54858);function i({error:a,title:c}){let d=a instanceof h.a?a.status:null;return(0,b.jsxs)(g.J,{className:"border-danger/30 bg-danger-soft px-5 py-4 text-danger-soft-foreground",children:[(0,b.jsx)(f,{"aria-hidden":"true"}),(0,b.jsx)(g.s,{className:"font-semibold",children:c??(404===d?"Not found.":"Could not load this view.")}),(0,b.jsx)(g.p,{className:"text-danger-soft-foreground",children:(0,b.jsxs)("p",{children:[a.message,null===d?(0,b.jsxs)(b.Fragment,{children:[" ","Is"," ",(0,b.jsx)("code",{className:"rounded-sm bg-card px-1.5 py-0.5 font-mono text-xs text-foreground",children:"plaudo-yt serve"})," ","still running?"]}):null]})})]})}a.s(["f",0,i],73168),a.s(["f",0,function({title:a,description:d,error:e}){return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(c.f,{title:a,description:d}),(0,b.jsx)(i,{error:e})]})}],64935)},54765,a=>{var b=a.i(43476),c=a.i(70065),d=a.i(71428),e=a.i(79862);let f=a=>Array.from({length:a},(a,b)=>b);function g({className:a,children:d}){return(0,b.jsx)(c.N,{className:(0,e.f)("min-w-0 gap-5 px-4 py-5 sm:px-6 sm:py-6",a),children:d})}function h({className:a}){return(0,b.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,b.jsx)(d.f,{className:"h-4 w-14"}),(0,b.jsx)(d.f,{className:(0,e.f)("h-9 w-36 rounded-full",a)})]})}function i({control:a=!0}){return(0,b.jsxs)("div",{className:"flex flex-wrap items-end justify-between gap-x-6 gap-y-3",children:[(0,b.jsx)(d.f,{className:"h-6 w-44"}),a?(0,b.jsx)(h,{}):null]})}function j(){return(0,b.jsxs)("div",{className:"flex flex-col gap-1.5 px-1",children:[(0,b.jsx)(d.f,{className:"h-6 w-40"}),(0,b.jsx)(d.f,{className:"h-4 w-80 max-w-full"})]})}function k({rows:a=4}){return(0,b.jsx)("div",{className:"flex flex-col divide-y",children:f(a).map(a=>(0,b.jsxs)("div",{className:"flex gap-3 py-4 first:pt-0 last:pb-0",children:[(0,b.jsx)(d.f,{className:"size-8 shrink-0"}),(0,b.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-2",children:[(0,b.jsx)(d.f,{className:"h-4 w-40 max-w-full"}),(0,b.jsx)(d.f,{className:"h-4 w-full"}),(0,b.jsx)(d.f,{className:"h-4 w-2/3"}),(0,b.jsx)(d.f,{className:"h-4 w-52 max-w-full"})]})]},a))})}function l(){return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(m,{items:3}),(0,b.jsxs)(g,{children:[(0,b.jsx)(i,{control:!1}),(0,b.jsxs)("div",{className:"flex flex-wrap items-end gap-3",children:[(0,b.jsx)(h,{className:"w-full sm:w-72"}),(0,b.jsx)(h,{className:"w-52"}),(0,b.jsx)(h,{className:"w-56"})]}),(0,b.jsx)(k,{rows:5})]})]})}function m({items:a=6}){return(0,b.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,b.jsx)(j,{}),(0,b.jsx)("div",{className:"@container overflow-hidden rounded-lg border bg-card shadow-card",children:(0,b.jsx)("div",{className:"-mr-px -mb-px grid grid-cols-1 @3xl:grid-cols-2 @3xl:[&>:last-child:nth-child(odd)]:col-span-2",children:f(a).map(a=>(0,b.jsxs)("div",{className:"flex min-h-15 items-center gap-3 px-4 py-3 shadow-[inset_-1px_-1px_0_0_var(--border)] sm:px-5",children:[(0,b.jsx)(d.f,{className:"size-8 shrink-0"}),(0,b.jsx)(d.f,{className:"h-4 w-28"}),(0,b.jsx)(d.f,{className:"ml-auto h-5 w-20"}),(0,b.jsx)(d.f,{className:"h-5 w-16 rounded-full"})]},a))})})]})}function n({height:a="h-[260px]"}){return(0,b.jsxs)("div",{className:(0,e.f)("relative w-full overflow-hidden rounded-sm",a),children:[(0,b.jsx)("div",{className:"absolute inset-0 flex flex-col justify-between py-2",children:f(5).map(a=>(0,b.jsx)("div",{className:"border-t border-dashed"},a))}),(0,b.jsx)(d.f,{className:"absolute inset-x-0 bottom-0 h-3/5 rounded-none rounded-t-lg bg-brand-soft"})]})}function o(){return(0,b.jsxs)(g,{children:[(0,b.jsx)(i,{}),(0,b.jsx)(n,{})]})}function p(){return(0,b.jsxs)("div",{className:"grid min-w-0 gap-6 xl:grid-cols-[minmax(0,1fr)_minmax(17rem,22rem)]",children:[(0,b.jsx)(o,{}),(0,b.jsxs)("div",{className:"flex min-h-56 flex-col gap-6 rounded-lg bg-brand-soft p-6",children:[(0,b.jsx)(d.f,{className:"h-6 w-56 max-w-full rounded-full bg-card/60"}),(0,b.jsx)(d.f,{className:"h-12 w-full bg-card/60"}),(0,b.jsxs)("div",{className:"mt-auto flex flex-col gap-4",children:[(0,b.jsx)(d.f,{className:"h-6 w-full bg-card/60"}),(0,b.jsx)(d.f,{className:"h-6 w-full bg-card/60"})]})]})]})}function q({rows:a}){return(0,b.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,b.jsx)(d.f,{className:"h-10 w-full bg-inset"}),f(a).map(a=>(0,b.jsx)(d.f,{className:"h-10 w-full"},a))]})}function r({rows:a=6,control:c=!1}){return(0,b.jsxs)(g,{children:[(0,b.jsx)(i,{control:c}),(0,b.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,b.jsx)(d.f,{className:"h-9 w-full rounded-full sm:w-72"}),(0,b.jsx)(d.f,{className:"ml-auto h-9 w-36 rounded-full"})]}),(0,b.jsx)(q,{rows:a})]})}function s(){return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(g,{children:[(0,b.jsx)(i,{control:!1}),(0,b.jsx)("div",{className:"grid gap-3 sm:grid-cols-3",children:f(3).map(a=>(0,b.jsx)(d.f,{className:"h-16 w-full bg-inset"},a))}),(0,b.jsx)(n,{height:"h-[220px]"})]}),(0,b.jsxs)(g,{children:[(0,b.jsx)(i,{control:!1}),(0,b.jsx)(d.f,{className:"h-9 w-72 max-w-full rounded-full"}),(0,b.jsx)("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(min(100%,24rem),1fr))] gap-4",children:f(4).map(a=>(0,b.jsxs)("div",{className:"flex flex-col gap-4 rounded-sm bg-inset p-4 sm:p-5",children:[(0,b.jsx)(d.f,{className:"h-5 w-40 bg-card"}),f(4).map(a=>(0,b.jsx)(d.f,{className:"h-12 w-full bg-card"},a))]},a))})]})]})}a.s(["Y",0,function({variant:a="chart-table"}){return(0,b.jsxs)("div",{role:"status","aria-busy":"true","aria-live":"polite",className:"flex flex-col gap-6",children:[(0,b.jsx)("span",{className:"sr-only",children:"Loading..."}),(0,b.jsxs)("div",{className:"flex flex-wrap items-end justify-between gap-x-8 gap-y-4 px-1 pt-1 sm:pt-2","aria-hidden":"true",children:[(0,b.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,b.jsx)(d.f,{className:"h-9 w-48 max-w-full"}),(0,b.jsxs)("div",{className:"flex flex-wrap gap-1.5",children:[(0,b.jsx)(d.f,{className:"h-6 w-24 rounded-full"}),(0,b.jsx)(d.f,{className:"h-6 w-20 rounded-full"}),(0,b.jsx)(d.f,{className:"h-6 w-32 rounded-full"})]})]}),(0,b.jsx)(h,{className:"w-[26rem] max-w-full"})]}),(0,b.jsx)("div",{className:"flex flex-col gap-6","aria-hidden":"true",children:"cards-chart-table"===a?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(m,{}),(0,b.jsx)(p,{}),(0,b.jsx)(r,{})]}):"chart-table"===a?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o,{}),(0,b.jsx)(r,{})]}):"grid"===a?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(r,{rows:4}),(0,b.jsx)(o,{}),(0,b.jsxs)("div",{className:"grid gap-4 2xl:grid-cols-2",children:[(0,b.jsx)(r,{rows:4}),(0,b.jsx)(r,{rows:4})]})]}):"audience"===a?(0,b.jsx)(s,{}):"comments"===a?(0,b.jsx)(l,{}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(r,{rows:5}),(0,b.jsx)(r,{rows:5,control:!0})]})})]})},"h",0,function({rows:a=3,label:c="Loading..."}){return(0,b.jsxs)("div",{role:"status","aria-busy":"true",className:"flex flex-col gap-1",children:[(0,b.jsx)("span",{className:"sr-only",children:c}),(0,b.jsx)(d.f,{className:"h-10 w-full bg-inset"}),f(a).map(a=>(0,b.jsx)(d.f,{className:"h-10 w-full"},a))]})},"s",0,k])},70065,a=>{var b=a.i(43476),c=a.i(25913),d=a.i(79862);let e=(0,c.f)("flex flex-col gap-6 py-6",{variants:{variant:{default:"rounded-lg border bg-card text-card-foreground shadow-card",inset:"rounded-sm bg-inset text-inset-foreground"}},defaultVariants:{variant:"default"}});a.s(["N",0,function({className:a,variant:c="default",...f}){return(0,b.jsx)("div",{"data-slot":"card","data-variant":c,className:(0,d.f)(e({variant:c}),a),...f})},"O",0,function({className:a,...c}){return(0,b.jsx)("div",{"data-slot":"card-content",className:(0,d.f)("px-6",a),...c})},"u",0,function({className:a,...c}){return(0,b.jsx)("div",{"data-slot":"card-description",className:(0,d.f)("text-sm text-muted-foreground",a),...c})}])},23750,a=>{var b=a.i(43476),c=a.i(79862);a.s(["f",0,function({className:a,type:d,...e}){return(0,b.jsx)("input",{type:d,"data-slot":"input",className:(0,c.f)("h-9 w-full min-w-0 rounded-full border border-input bg-card px-4 py-1 text-base shadow-control transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",a),...e})}])},10708,a=>{var b=a.i(43476),c=a.i(79862),d=a.i(71645),e=a.i(48425),f=Object.defineProperty,g=d.forwardRef(f(function(a,c){return(0,b.jsx)(e.V.label,{...a,ref:c,onMouseDown:b=>{b.target.closest("button, input, select, textarea")||(a.onMouseDown?.(b),!b.defaultPrevented&&b.detail>1&&b.preventDefault())}})},"name",{value:"Label",configurable:!0}));a.s(["Root",0,g],73741);var h=a.i(73741),h=h;a.s(["f",0,function({className:a,...d}){return(0,b.jsx)(h.Root,{"data-slot":"label",className:(0,c.f)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",a),...d})}],10708)},59377,a=>{var b=a.i(43476),c=a.i(79862),d=a.i(71645);a.i(34620);var e=a.i(81140),f=a.i(20783),g=a.i(30030),h=a.i(26330),i=a.i(3536),j=a.i(65491),k=a.i(10772),l=a.i(53660),m=a.i(74606),n=a.i(96626),o=a.i(48425),p=a.i(91918),q=a.i(69340),r=a.i(86312),s=a.i(85369),t=Object.defineProperty,u=(a,b)=>t(a,"name",{value:b,configurable:!0}),v="Popover",[w,x]=(0,g.f)(v,[l.y]),y=(0,l.y)(),[z,A]=w(v),B=u(a=>{let{__scopePopover:c,children:e,open:f,defaultOpen:g,onOpenChange:h,modal:i=!1}=a,j=y(c),m=d.useRef(null),[n,o]=d.useState(!1),[p,r]=d.useState(0),[s,t]=d.useState(0),[u,w]=(0,q.f)({prop:f,defaultProp:g??!1,onChange:h,caller:v});return(0,b.jsx)(l.F,{...j,children:(0,b.jsx)(z,{scope:c,contentId:(0,k.f)(),titleId:(0,k.f)(),descriptionId:(0,k.f)(),titlePresent:p>0,descriptionPresent:s>0,setTitleCount:r,setDescriptionCount:t,triggerRef:m,open:u,onOpenChange:w,onOpenToggle:d.useCallback(()=>w(a=>!a),[w]),hasCustomAnchor:n,onCustomAnchorAdd:d.useCallback(()=>o(!0),[]),onCustomAnchorRemove:d.useCallback(()=>o(!1),[]),modal:i,children:e})})},"Popover"),C=d.forwardRef(u(function(a,c){let{__scopePopover:e,...f}=a,g=A("PopoverAnchor",e),h=y(e),{onCustomAnchorAdd:i,onCustomAnchorRemove:j}=g;return d.useEffect(()=>(i(),()=>j()),[i,j]),(0,b.jsx)(l.g,{...h,...f,ref:c})},"PopoverAnchor")),D=d.forwardRef(u(function(a,c){let{__scopePopover:d,...g}=a,h=A("PopoverTrigger",d),i=y(d),j=(0,f.f)(c,h.triggerRef),k=(0,b.jsx)(o.V.button,{type:"button","aria-haspopup":"dialog","aria-expanded":h.open,"aria-controls":h.open?h.contentId:void 0,"data-state":O(h.open),...g,ref:j,onClick:(0,e.f)(a.onClick,h.onOpenToggle)});return h.hasCustomAnchor?k:(0,b.jsx)(l.g,{asChild:!0,...i,children:k})},"PopoverTrigger")),E="PopoverPortal",[F,G]=w(E,{forceMount:void 0}),H=u(a=>{let{__scopePopover:c,forceMount:d,children:e,container:f}=a,g=A(E,c);return(0,b.jsx)(F,{scope:c,forceMount:d,children:(0,b.jsx)(n.f,{present:d||g.open,children:(0,b.jsx)(m.f,{asChild:!0,container:f,children:e})})})},"PopoverPortal"),I="PopoverContent",J=d.forwardRef(u(function(a,c){let d=G(I,a.__scopePopover),{forceMount:e=d.forceMount,...f}=a,g=A(I,a.__scopePopover);return(0,b.jsx)(n.f,{present:e||g.open,children:g.modal?(0,b.jsx)(L,{...f,ref:c}):(0,b.jsx)(M,{...f,ref:c})})},"PopoverContent")),K=(0,p.createSlot)("PopoverContent.RemoveScroll"),L=d.forwardRef(u(function(a,c){let g=A(I,a.__scopePopover),h=d.useRef(null),i=(0,f.f)(c,h),k=d.useRef(!1),{nodes:l,registry:m}=(0,j.D)();return d.useEffect(()=>{let a=h.current;if(a)return(0,r.f)(a)},[]),(0,b.jsx)(s.f,{as:K,allowPinchZoom:!0,shards:d.useMemo(()=>[h,...l.map(a=>({current:a}))],[h,l]),children:(0,b.jsx)(N,{...a,ref:i,branchNodes:l,branchRegistry:m,trapFocus:g.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,e.f)(a.onCloseAutoFocus,a=>{a.preventDefault(),k.current||g.triggerRef.current?.focus()}),onPointerDownOutside:(0,e.f)(a.onPointerDownOutside,a=>{let b=a.detail.originalEvent,c=0===b.button&&!0===b.ctrlKey;k.current=2===b.button||c},{checkForDefaultPrevented:!1}),onFocusOutside:(0,e.f)(a.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),M=d.forwardRef(u(function(a,c){let e=A(I,a.__scopePopover),f=d.useRef(!1),g=d.useRef(!1);return(0,b.jsx)(N,{...a,ref:c,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:b=>{a.onCloseAutoFocus?.(b),b.defaultPrevented||(f.current||e.triggerRef.current?.focus(),b.preventDefault()),f.current=!1,g.current=!1},onInteractOutside:b=>{a.onInteractOutside?.(b),b.defaultPrevented||(f.current=!0,"pointerdown"===b.detail.originalEvent.type&&(g.current=!0));let c=b.target;e.triggerRef.current?.contains(c)&&b.preventDefault(),"focusin"===b.detail.originalEvent.type&&g.current&&b.preventDefault()}})},"PopoverContentNonModal")),N=d.forwardRef(u(function(a,c){let{__scopePopover:e,trapFocus:g,onOpenAutoFocus:k,onCloseAutoFocus:m,disableOutsidePointerEvents:n,onEscapeKeyDown:o,onPointerDownOutside:p,onFocusOutside:q,onInteractOutside:r,"aria-describedby":s,branchNodes:t,branchRegistry:u,...v}=a,w=A(I,e),x=y(e),[z,B]=d.useState(null),C=(0,f.f)(c,B);return(0,j.i)(z),(0,i.f)(),(0,b.jsx)(j.l,{registry:u,children:(0,b.jsx)(j.v,{asChild:!0,loop:!0,trapped:g,branches:t,onMountAutoFocus:k,onUnmountAutoFocus:m,children:(0,b.jsx)(h.V,{asChild:!0,disableOutsidePointerEvents:n,onInteractOutside:r,onEscapeKeyDown:o,onPointerDownOutside:p,onFocusOutside:q,onDismiss:()=>w.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,b.jsx)(l.c,{"data-state":O(w.open),role:"dialog",id:w.contentId,"aria-labelledby":w.titlePresent?w.titleId:void 0,"aria-describedby":w.descriptionPresent?P(s,w.descriptionId):s,...x,...v,ref:C,style:{...v.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})})},"PopoverContentImpl"));function O(a){return a?"open":"closed"}function P(...a){let b=new Set;for(let c of a)if("string"==typeof c)for(let a of String(c).trim().split(/\s+/))a&&b.add(a);return b.size>0?Array.from(b).join(" "):void 0}u(O,"getState"),u(P,"concatAriaDescribedby"),a.s(["Anchor",0,C,"Content",0,J,"Portal",0,H,"Root",0,B,"Trigger",0,D],78761);var Q=a.i(78761),Q=Q,R=Q,S=Q,T=Q;a.s(["J",0,function({...a}){return(0,b.jsx)(R.Trigger,{"data-slot":"popover-trigger",...a})},"T",0,function({className:a,align:d="center",sideOffset:e=4,...f}){return(0,b.jsx)(S.Portal,{children:(0,b.jsx)(T.Content,{"data-slot":"popover-content",align:d,sideOffset:e,className:(0,c.f)("z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-card outline-hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",a),...f})})},"V",0,function({...a}){return(0,b.jsx)(Q.Root,{"data-slot":"popover",...a})}],59377)},60024,80305,a=>{var b=a.i(43476),c=a.i(25913),d=a.i(79862),e=a.i(71645),f=a.i(81140),g=a.i(69340),h=a.i(48425),i=Object.defineProperty,j=e.forwardRef(i(function(a,c){let{pressed:d,defaultPressed:e,onPressedChange:i,...j}=a,[k,l]=(0,g.f)({prop:d,onChange:i,defaultProp:e??!1,caller:"Toggle"});return(0,b.jsx)(h.V.button,{type:"button","aria-pressed":k,"data-state":k?"on":"off","data-disabled":a.disabled?"":void 0,...j,ref:c,onClick:(0,f.f)(a.onClick,()=>{a.disabled||l(!k)})})},"name",{value:"Toggle",configurable:!0}));a.s(["Root",0,j,"Toggle",0,j],80305);var k=a.i(80305),k=k;let l=(0,c.f)("inline-flex items-center justify-center gap-2 rounded-full text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none hover:bg-accent hover:text-accent-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground data-[state=on]:shadow-control dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-transparent",outline:"border bg-card shadow-control"},size:{default:"h-9 min-w-9 px-2",sm:"h-8 min-w-8 px-1.5",lg:"h-10 min-w-10 px-2.5"}},defaultVariants:{variant:"default",size:"default"}});a.s(["F",0,l,"z",0,function({className:a,variant:c,size:e,...f}){return(0,b.jsx)(k.Root,{"data-slot":"toggle",className:(0,d.f)(l({variant:c,size:e,className:a})),...f})}],60024)},7681,88528,a=>{var b=a.i(71645);let c=(a,b)=>`${a}.${b}`;function d(a,b,c){if(!a)return c;let d=a.lastIndexOf(".");if(d<=0)return c;let e=a.slice(0,d),f=a.slice(d+1);return("asc"===f||"desc"===f)&&b.includes(e)?{key:e,dir:f}:c}function e(a,b){return!a||b&&a.key===b.key&&a.dir===b.dir?null:`${a.key}.${a.dir}`}let f=a=>"1"===a,g=a=>a?"1":null;function h(a,b){return b.find(b=>b===a)??b[0]??null}let i=(a,b)=>a===b[0]?null:a;function j(a){return a.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}let k={TRAFFIC_SOURCE_TYPE:"source",COUNTRY:"country",DEVICE_PLATFORM_TYPE:"device",VIEWER_AGE:"age",VIEWER_GENDER:"gender",SUBSCRIBED_TO_UPLOADER_STATE:"subscribed"};a.s(["J",0,a=>a>1?String(a):null,"K",0,function(a,b=1e3){if(!a||!/^\d{1,6}$/.test(a))return 1;let c=Number(a);return c>=1&&c<=b?c:1},"L",0,e,"P",0,c,"Q",0,h,"S",0,d,"_",0,f,"e",0,function(a,b){let c=`by-${k[a]??j(a)}`;return"lifetime"===b?c:`${c}-${j(b)}`},"g",0,function(a,b,c){return a?.key===b?{key:b,dir:"asc"===a.dir?"desc":"asc"}:{key:b,dir:c?"desc":"asc"}},"h",0,g,"p",0,function(a){let b=new Set;return a.map((a,c)=>{let d=j(a)||String(c+1),e=b.has(d)?`${d}-${c+1}`:d;return b.add(e),e})},"u",0,i],88528);var l=a.i(74399);function m(a,c,f){let g=(0,l.o)(),h=d((0,l.I)(a),c,f),i=f?.key,j=f?.dir;return[h,(0,b.useCallback)(b=>g({[a]:e(b,i&&j?{key:i,dir:j}:null)}),[g,a,i,j])]}function n(a){let c=(0,l.o)();return[f((0,l.I)(a)),(0,b.useCallback)(b=>c({[a]:g(b)}),[c,a])]}function o(a,c,d=300){let[e,f]=(0,b.useState)(a),g=(0,b.useRef)(c);return g.current=c,(0,b.useEffect)(()=>{f(b=>b.trim()===a?b:a)},[a]),(0,b.useEffect)(()=>{if(e.trim()===a)return;let b=setTimeout(()=>g.current(e.trim()),d);return()=>clearTimeout(b)},[e,a,d]),[e,f]}a.s(["$",0,m,"C",0,o,"D",0,function(a,d,e){let f=(0,l.o)(),[g,h]=m(a?c(a,"sort"):"",d,e),i=(0,l.I)(a?c(a,"q"):"")??"",[j,k]=n(a?c(a,"all"):""),p=(0,b.useCallback)(b=>{a&&f({[c(a,"q")]:b||null})},[f,a]),[q,r]=o(a?i:"",p),[s,t]=(0,b.useState)(e),[u,v]=(0,b.useState)(""),[w,x]=(0,b.useState)(!1);return a?{sort:g,setSort:h,filter:q,setFilter:r,all:j,setAll:k}:{sort:s,setSort:t,filter:u,setFilter:v,all:w,setAll:x}},"Q",0,n,"X",0,function(a,c){let d=(0,l.o)(),e=h((0,l.I)(a),c),f=c.join("\0");return[e,(0,b.useCallback)(b=>d({[a]:i(b,c)}),[d,a,f])]}],7681)},26805,a=>{var b=a.i(56420);let c={name:"calendar",size:24,node:[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}]]};c.node;let d=(0,b.f)(c);a.s(["f",0,d],26805)}]);})()
|