{"release_id":"01a1998d-9802-0000-b0f7-33a23307f4ed","chunk_id":"01a1998d-9959-7440-a5ed-fcddf55a2874","file":"nYDbGcYu.mjs","mappings":"qTAaO,SAASA,EAAeC,EAA0C,CAGtC,OAAO,IAG1C","names":["devPreviewTier","url"],"sources":["../../../../../../src/lib/dev-preview.ts"],"sourcesContent":["/** Dev-only subscription-tier override, driven by `?preview=pro|plus`.\n *\n *  Premium Plus only renders for someone already holding an active pro seat, so\n *  none of its surfaces (the plus grid, the drawer row, the bonus counts on the\n *  token packs) can be reviewed on a local machine without standing up a real\n *  Stripe subscription. This lets the whole feature be walked through locally.\n *\n *  `import.meta.env.DEV` is replaced with the literal `false` at build time, so\n *  every caller collapses to `null` and the branch is dropped by the bundler.\n *  It cannot weaken the real gate on a deployed site.\n */\nexport type PreviewTier = 'pro' | 'plus';\n\nexport function devPreviewTier(url: URL | undefined): PreviewTier | null {\n\t// Guarded rather than assumed: this is a debug affordance, and it must never\n\t// be the reason a surface fails to render.\n\tif (!import.meta.env.DEV || !url) return null;\n\tconst v = url.searchParams.get('preview');\n\treturn v === 'pro' || v === 'plus' ? v : null;\n}\n"],"version":3}