watchbell 1.7.0 → 1.7.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/package.json +1 -1
- package/server/.next/BUILD_ID +1 -1
- package/server/.next/build-manifest.json +3 -3
- package/server/.next/prerender-manifest.json +3 -3
- package/server/.next/required-server-files.json +1 -1
- package/server/.next/server/app/(console)/(private)/ai/agents/page/server-reference-manifest.json +13 -13
- package/server/.next/server/app/(console)/(private)/ai/agents/page.js +52 -51
- package/server/.next/server/app/(console)/(private)/ai/agents/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/(private)/ai/agents/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/(private)/ai/ask/page/server-reference-manifest.json +12 -12
- package/server/.next/server/app/(console)/(private)/ai/ask/page.js +52 -51
- package/server/.next/server/app/(console)/(private)/ai/ask/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/(private)/ai/ask/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/(private)/ai/connect/page/server-reference-manifest.json +11 -11
- package/server/.next/server/app/(console)/(private)/ai/connect/page.js +52 -51
- package/server/.next/server/app/(console)/(private)/ai/connect/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/(private)/ai/connect/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/(private)/ai/keys/page/server-reference-manifest.json +14 -14
- package/server/.next/server/app/(console)/(private)/ai/keys/page.js +52 -51
- package/server/.next/server/app/(console)/(private)/ai/keys/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/(private)/ai/keys/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/(private)/ai/logs/page/server-reference-manifest.json +12 -12
- package/server/.next/server/app/(console)/(private)/ai/logs/page.js +52 -51
- package/server/.next/server/app/(console)/(private)/ai/logs/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/(private)/ai/logs/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/(private)/ai/models/page/server-reference-manifest.json +21 -21
- package/server/.next/server/app/(console)/(private)/ai/models/page.js +52 -51
- package/server/.next/server/app/(console)/(private)/ai/models/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/(private)/ai/models/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/(private)/ai/page/server-reference-manifest.json +11 -11
- package/server/.next/server/app/(console)/(private)/ai/page.js +52 -51
- package/server/.next/server/app/(console)/(private)/ai/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/(private)/ai/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/(private)/ai/playground/page/server-reference-manifest.json +14 -14
- package/server/.next/server/app/(console)/(private)/ai/playground/page.js +52 -51
- package/server/.next/server/app/(console)/(private)/ai/playground/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/(private)/ai/playground/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/(private)/ai/providers/page/server-reference-manifest.json +17 -17
- package/server/.next/server/app/(console)/(private)/ai/providers/page.js +52 -51
- package/server/.next/server/app/(console)/(private)/ai/providers/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/(private)/ai/providers/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/(private)/ai/quota/page/server-reference-manifest.json +12 -12
- package/server/.next/server/app/(console)/(private)/ai/quota/page.js +52 -51
- package/server/.next/server/app/(console)/(private)/ai/quota/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/(private)/ai/quota/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/(private)/ai/usage/page/server-reference-manifest.json +12 -12
- package/server/.next/server/app/(console)/(private)/ai/usage/page.js +52 -51
- package/server/.next/server/app/(console)/(private)/ai/usage/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/(private)/ai/usage/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/(private)/api-docs/[[...op]]/page/server-reference-manifest.json +11 -11
- package/server/.next/server/app/(console)/(private)/api-docs/[[...op]]/page.js +52 -51
- package/server/.next/server/app/(console)/(private)/api-docs/[[...op]]/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/(private)/api-docs/[[...op]]/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/(private)/auto-actions/page/server-reference-manifest.json +12 -12
- package/server/.next/server/app/(console)/(private)/auto-actions/page.js +52 -51
- package/server/.next/server/app/(console)/(private)/auto-actions/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/(private)/auto-actions/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/alerts/page/server-reference-manifest.json +27 -27
- package/server/.next/server/app/(console)/alerts/page.js +52 -51
- package/server/.next/server/app/(console)/alerts/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/alerts/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/apps/[id]/page/server-reference-manifest.json +34 -34
- package/server/.next/server/app/(console)/apps/[id]/page.js +52 -51
- package/server/.next/server/app/(console)/apps/[id]/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/apps/[id]/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/apps/page/server-reference-manifest.json +14 -14
- package/server/.next/server/app/(console)/apps/page.js +52 -51
- package/server/.next/server/app/(console)/apps/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/apps/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/backups/page/server-reference-manifest.json +14 -14
- package/server/.next/server/app/(console)/backups/page.js +52 -51
- package/server/.next/server/app/(console)/backups/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/backups/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/catalog/page/server-reference-manifest.json +11 -11
- package/server/.next/server/app/(console)/catalog/page.js +52 -51
- package/server/.next/server/app/(console)/catalog/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/catalog/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/connections/page/server-reference-manifest.json +22 -22
- package/server/.next/server/app/(console)/connections/page.js +52 -51
- package/server/.next/server/app/(console)/connections/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/connections/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/containers/page/server-reference-manifest.json +14 -14
- package/server/.next/server/app/(console)/containers/page.js +52 -51
- package/server/.next/server/app/(console)/containers/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/containers/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/d1/page/server-reference-manifest.json +11 -11
- package/server/.next/server/app/(console)/d1/page.js +52 -51
- package/server/.next/server/app/(console)/d1/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/d1/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/deploy/page/server-reference-manifest.json +11 -11
- package/server/.next/server/app/(console)/deploy/page.js +52 -51
- package/server/.next/server/app/(console)/deploy/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/deploy/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/deployments/page/server-reference-manifest.json +19 -19
- package/server/.next/server/app/(console)/deployments/page.js +52 -51
- package/server/.next/server/app/(console)/deployments/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/deployments/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/dns/page/server-reference-manifest.json +18 -18
- package/server/.next/server/app/(console)/dns/page.js +52 -51
- package/server/.next/server/app/(console)/dns/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/dns/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/domains/page/server-reference-manifest.json +13 -13
- package/server/.next/server/app/(console)/domains/page.js +52 -51
- package/server/.next/server/app/(console)/domains/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/domains/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/events/page/server-reference-manifest.json +11 -11
- package/server/.next/server/app/(console)/events/page.js +52 -51
- package/server/.next/server/app/(console)/events/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/events/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/firebase/page/server-reference-manifest.json +18 -18
- package/server/.next/server/app/(console)/firebase/page.js +52 -51
- package/server/.next/server/app/(console)/firebase/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/firebase/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/logs/page/server-reference-manifest.json +12 -12
- package/server/.next/server/app/(console)/logs/page.js +52 -51
- package/server/.next/server/app/(console)/logs/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/logs/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/manage/sections/page/server-reference-manifest.json +12 -12
- package/server/.next/server/app/(console)/manage/sections/page.js +52 -51
- package/server/.next/server/app/(console)/manage/sections/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/manage/sections/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/neon/page/server-reference-manifest.json +22 -22
- package/server/.next/server/app/(console)/neon/page.js +52 -51
- package/server/.next/server/app/(console)/neon/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/neon/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/os/page/server-reference-manifest.json +12 -12
- package/server/.next/server/app/(console)/os/page.js +52 -51
- package/server/.next/server/app/(console)/os/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/os/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/overview/page/server-reference-manifest.json +19 -19
- package/server/.next/server/app/(console)/overview/page.js +52 -51
- package/server/.next/server/app/(console)/overview/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/overview/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/reports/[id]/pdf/route.js +5 -5
- package/server/.next/server/app/(console)/reports/[id]/pdf/route.js.nft.json +1 -1
- package/server/.next/server/app/(console)/reports/page/server-reference-manifest.json +35 -15
- package/server/.next/server/app/(console)/reports/page.js +52 -51
- package/server/.next/server/app/(console)/reports/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/reports/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/repos/[id]/page/server-reference-manifest.json +12 -12
- package/server/.next/server/app/(console)/repos/[id]/page.js +52 -51
- package/server/.next/server/app/(console)/repos/[id]/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/repos/[id]/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/repos/page/server-reference-manifest.json +11 -11
- package/server/.next/server/app/(console)/repos/page.js +52 -51
- package/server/.next/server/app/(console)/repos/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/repos/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/settings/page/server-reference-manifest.json +23 -23
- package/server/.next/server/app/(console)/settings/page.js +52 -51
- package/server/.next/server/app/(console)/settings/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/settings/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/sql/page/server-reference-manifest.json +18 -18
- package/server/.next/server/app/(console)/sql/page.js +52 -51
- package/server/.next/server/app/(console)/sql/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/sql/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/status/page/server-reference-manifest.json +11 -11
- package/server/.next/server/app/(console)/status/page.js +52 -51
- package/server/.next/server/app/(console)/status/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/status/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/supabase/page/server-reference-manifest.json +30 -30
- package/server/.next/server/app/(console)/supabase/page.js +52 -51
- package/server/.next/server/app/(console)/supabase/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/supabase/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/topology/page/server-reference-manifest.json +11 -11
- package/server/.next/server/app/(console)/topology/page.js +52 -51
- package/server/.next/server/app/(console)/topology/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/topology/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/turso/page/server-reference-manifest.json +11 -11
- package/server/.next/server/app/(console)/turso/page.js +52 -51
- package/server/.next/server/app/(console)/turso/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/turso/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/upstash/page/server-reference-manifest.json +11 -11
- package/server/.next/server/app/(console)/upstash/page.js +52 -51
- package/server/.next/server/app/(console)/upstash/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/upstash/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/uptime/page/server-reference-manifest.json +25 -25
- package/server/.next/server/app/(console)/uptime/page.js +52 -51
- package/server/.next/server/app/(console)/uptime/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/uptime/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/(console)/welcome/page/server-reference-manifest.json +16 -16
- package/server/.next/server/app/(console)/welcome/page.js +52 -51
- package/server/.next/server/app/(console)/welcome/page.js.nft.json +1 -1
- package/server/.next/server/app/(console)/welcome/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/_global-error/page/server-reference-manifest.json +1 -1
- package/server/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/server/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/_global-error.html +1 -1
- package/server/.next/server/app/_global-error.rsc +2 -2
- package/server/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +2 -2
- package/server/.next/server/app/_global-error.segments/_full.segment.rsc +2 -2
- package/server/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/server/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
- package/server/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/server/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/_not-found.html +1 -1
- package/server/.next/server/app/_not-found.rsc +3 -3
- package/server/.next/server/app/_not-found.segments/_full.segment.rsc +3 -3
- package/server/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/server/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/server/.next/server/app/account/password/page/server-reference-manifest.json +2 -2
- package/server/.next/server/app/account/password/page.js.nft.json +1 -1
- package/server/.next/server/app/account/password/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/api/collect/route/server-reference-manifest.json +8 -8
- package/server/.next/server/app/api/collect/route.js +59 -59
- package/server/.next/server/app/api/collect/route.js.nft.json +1 -1
- package/server/.next/server/app/api/daily/route/server-reference-manifest.json +8 -8
- package/server/.next/server/app/api/daily/route.js +66 -66
- package/server/.next/server/app/api/daily/route.js.nft.json +1 -1
- package/server/.next/server/app/api/ping/[...parts]/route.js +1 -1
- package/server/.next/server/app/api/ping/[...parts]/route.js.nft.json +1 -1
- package/server/.next/server/app/api/status/route.js.nft.json +1 -1
- package/server/.next/server/app/api/telegram/webhook/route/server-reference-manifest.json +8 -8
- package/server/.next/server/app/api/telegram/webhook/route.js +50 -49
- package/server/.next/server/app/api/telegram/webhook/route.js.nft.json +1 -1
- package/server/.next/server/app/api/v1/advice/route.js +9 -9
- package/server/.next/server/app/api/v1/advice/route.js.nft.json +1 -1
- package/server/.next/server/app/api/v1/ai/chat/completions/route.js.nft.json +1 -1
- package/server/.next/server/app/api/v1/ai/models/route.js.nft.json +1 -1
- package/server/.next/server/app/api/v1/ai/questions/[id]/route.js.nft.json +1 -1
- package/server/.next/server/app/api/v1/ai/questions/route.js +8 -8
- package/server/.next/server/app/api/v1/ai/questions/route.js.nft.json +1 -1
- package/server/.next/server/app/api/v1/mcp/route.js +7 -7
- package/server/.next/server/app/api/v1/mcp/route.js.nft.json +1 -1
- package/server/.next/server/app/api/v1/me/route.js.nft.json +1 -1
- package/server/.next/server/app/api/v1/openapi.json/route.js.nft.json +1 -1
- package/server/.next/server/app/api/v1/status/apps/[app]/route.js +10 -10
- package/server/.next/server/app/api/v1/status/apps/[app]/route.js.nft.json +1 -1
- package/server/.next/server/app/api/v1/status/route.js +10 -10
- package/server/.next/server/app/api/v1/status/route.js.nft.json +1 -1
- package/server/.next/server/app/api/watchdog/route.js +4 -4
- package/server/.next/server/app/api/watchdog/route.js.nft.json +1 -1
- package/server/.next/server/app/auth/confirm/route.js.nft.json +1 -1
- package/server/.next/server/app/auth/google/callback/route.js.nft.json +1 -1
- package/server/.next/server/app/auth/google/create/callback/route.js.nft.json +1 -1
- package/server/.next/server/app/auth/not-member/route.js.nft.json +1 -1
- package/server/.next/server/app/auth/session-ended/route.js.nft.json +1 -1
- package/server/.next/server/app/brand-icon/route.js +6 -6
- package/server/.next/server/app/brand-icon/route.js.nft.json +1 -1
- package/server/.next/server/app/invite/page/server-reference-manifest.json +2 -2
- package/server/.next/server/app/invite/page.js.nft.json +1 -1
- package/server/.next/server/app/invite/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/mfa/page/server-reference-manifest.json +2 -2
- package/server/.next/server/app/mfa/page.js +27 -26
- package/server/.next/server/app/mfa/page.js.nft.json +1 -1
- package/server/.next/server/app/mfa/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/mfa/setup/page/server-reference-manifest.json +3 -3
- package/server/.next/server/app/mfa/setup/page.js +27 -26
- package/server/.next/server/app/mfa/setup/page.js.nft.json +1 -1
- package/server/.next/server/app/mfa/setup/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/page/server-reference-manifest.json +1 -1
- package/server/.next/server/app/page.js.nft.json +1 -1
- package/server/.next/server/app/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/s/[slug]/badge/[file]/route.js.nft.json +1 -1
- package/server/.next/server/app/s/[slug]/page/server-reference-manifest.json +1 -1
- package/server/.next/server/app/s/[slug]/page.js +1 -1
- package/server/.next/server/app/s/[slug]/page.js.nft.json +1 -1
- package/server/.next/server/app/s/[slug]/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/setup/page/server-reference-manifest.json +2 -2
- package/server/.next/server/app/setup/page.js.nft.json +1 -1
- package/server/.next/server/app/setup/page_client-reference-manifest.js +1 -1
- package/server/.next/server/app/signin/page/server-reference-manifest.json +3 -3
- package/server/.next/server/app/signin/page.js +25 -24
- package/server/.next/server/app/signin/page.js.nft.json +1 -1
- package/server/.next/server/app/signin/page_client-reference-manifest.js +1 -1
- package/server/.next/server/chunks/{[externals]__0oqc6ym5k457v._.js → [externals]__0ws552tlu2170._.js} +1 -1
- package/server/.next/server/chunks/{[externals]__1aervsuoo1qe_._.js → [externals]__14rgrk9t-kxa1._.js} +1 -1
- package/server/.next/server/chunks/{[externals]__1oag9t_9gex2-._.js → [externals]__1pdwh-htbnox8._.js} +1 -1
- package/server/.next/server/chunks/[root-of-the-server]__0-amtx67pqi56._.js +3 -0
- package/server/.next/server/chunks/[root-of-the-server]__01dj-ln12bcmb._.js +1 -1
- package/server/.next/server/chunks/{[root-of-the-server]__0_2fr1g7uby1m._.js → [root-of-the-server]__01nlh4ps9u-65._.js} +2 -2
- package/server/.next/server/chunks/{[root-of-the-server]__016wnct3b5iby._.js → [root-of-the-server]__01ur0kf75ampv._.js} +2 -2
- package/server/.next/server/chunks/{[root-of-the-server]__0ra_bw8zg6kmk._.js → [root-of-the-server]__028m_6oqyqmyy._.js} +2 -2
- package/server/.next/server/chunks/[root-of-the-server]__02v25dn1cwxz6._.js +1 -1
- package/server/.next/server/chunks/{[root-of-the-server]__1hcn00gn9mapd._.js → [root-of-the-server]__02wzui3ksepqf._.js} +2 -2
- package/server/.next/server/chunks/[root-of-the-server]__0326wv5xmnp48._.js +3 -0
- package/server/.next/server/chunks/[root-of-the-server]__03276vwi4jgvk._.js +1 -1
- package/server/.next/server/chunks/{[root-of-the-server]__0tsly874_mafr._.js → [root-of-the-server]__03537tx7cun49._.js} +2 -2
- package/server/.next/server/chunks/{[root-of-the-server]__1p1e6x-mb7ro2._.js → [root-of-the-server]__0400g-0wvq3uf._.js} +2 -2
- package/server/.next/server/chunks/[root-of-the-server]__04htuwoulmp21._.js +3 -0
- package/server/.next/server/chunks/[root-of-the-server]__05qcc-0e8z1u8._.js +1 -1
- package/server/.next/server/chunks/{[root-of-the-server]__0ux78ppoct5b_._.js → [root-of-the-server]__06bn4cfh-g8-d._.js} +2 -2
- package/server/.next/server/chunks/{[root-of-the-server]__1ia-rts7ilt7c._.js → [root-of-the-server]__06ty1ktg427pm._.js} +2 -2
- package/server/.next/server/chunks/{[root-of-the-server]__0afpn-tk2qlu0._.js → [root-of-the-server]__076yrld-lo25r._.js} +2 -2
- package/server/.next/server/chunks/[root-of-the-server]__07eo--c90cju2._.js +1 -1
- package/server/.next/server/chunks/{[root-of-the-server]__0xnag1k7mnvoh._.js → [root-of-the-server]__081k4lp976vd7._.js} +2 -2
- package/server/.next/server/chunks/[root-of-the-server]__08i6b8tzxads4._.js +3 -0
- package/server/.next/server/chunks/[root-of-the-server]__09oipjf2ew_pn._.js +3 -0
- package/server/.next/server/chunks/{[root-of-the-server]__1-bbb_srnbm5x._.js → [root-of-the-server]__0_c_c1bv7sopk._.js} +1 -1
- package/server/.next/server/chunks/{[root-of-the-server]__0mg6rmq22tf26._.js → [root-of-the-server]__0a34twsor45ml._.js} +1 -1
- package/server/.next/server/chunks/{[root-of-the-server]__07gjmfv5mi33j._.js → [root-of-the-server]__0bjh2kw90a-m_._.js} +1 -1
- package/server/.next/server/chunks/{[root-of-the-server]__0pm83e1a3wwlw._.js → [root-of-the-server]__0c41pzboxtjvz._.js} +1 -1
- package/server/.next/server/chunks/{[root-of-the-server]__0ng-t81zeeipc._.js → [root-of-the-server]__0dahxh87cvyn2._.js} +2 -2
- package/server/.next/server/chunks/[root-of-the-server]__0dd4hulw1w-4i._.js +3 -0
- package/server/.next/server/chunks/{[root-of-the-server]__0nyxfjn368366._.js → [root-of-the-server]__0dfkxg4ax2hqz._.js} +1 -1
- package/server/.next/server/chunks/[root-of-the-server]__0e3hcgbyb09-p._.js +3 -0
- package/server/.next/server/chunks/{[root-of-the-server]__0gv3v5775wfmw._.js → [root-of-the-server]__0fk1609_5zg7g._.js} +2 -2
- package/server/.next/server/chunks/[root-of-the-server]__0fl1uspuemkzr._.js +3 -0
- package/server/.next/server/chunks/[root-of-the-server]__0gb4uz-gv3va0._.js +1 -1
- package/server/.next/server/chunks/[root-of-the-server]__0gqye-fi-f3zk._.js +1 -1
- package/server/.next/server/chunks/{[root-of-the-server]__0jz91oppmwtiq._.js → [root-of-the-server]__0hm5-0_rh9r6m._.js} +2 -2
- package/server/.next/server/chunks/{[root-of-the-server]__1qelr0qe50xap._.js → [root-of-the-server]__0hwm4j4o2v8nc._.js} +2 -2
- package/server/.next/server/chunks/[root-of-the-server]__0k73a-s2lcpoz._.js +3 -0
- package/server/.next/server/chunks/[root-of-the-server]__0kk-m8_ul4f4k._.js +1 -1
- package/server/.next/server/chunks/{[root-of-the-server]__0jevd1p5unnre._.js → [root-of-the-server]__0kzgu06ee59vd._.js} +2 -2
- package/server/.next/server/chunks/[root-of-the-server]__0mrbo2p5fy4ji._.js +3 -0
- package/server/.next/server/chunks/[root-of-the-server]__0nw8jgr3bsi8b._.js +3 -0
- package/server/.next/server/chunks/{[root-of-the-server]__0g0-q56cumuup._.js → [root-of-the-server]__0o4e39mvq8_el._.js} +1 -1
- package/server/.next/server/chunks/[root-of-the-server]__0o6q27cnw6-77._.js +1 -1
- package/server/.next/server/chunks/{[root-of-the-server]__1le7r_1_00km1._.js → [root-of-the-server]__0opds07bp1fnb._.js} +2 -2
- package/server/.next/server/chunks/{[root-of-the-server]__070v8547b4qpa._.js → [root-of-the-server]__0pfcnbr0br6li._.js} +1 -1
- package/server/.next/server/chunks/{[root-of-the-server]__1-9vvc9y0qqhf._.js → [root-of-the-server]__0pi9id-ywuq6g._.js} +2 -2
- package/server/.next/server/chunks/{[root-of-the-server]__0aazgg7203ez1._.js → [root-of-the-server]__0s3zxs-_ayd-6._.js} +1 -1
- package/server/.next/server/chunks/{[root-of-the-server]__0eyd4kffoz9ex._.js → [root-of-the-server]__0sgy49rgsxyvy._.js} +1 -1
- package/server/.next/server/chunks/[root-of-the-server]__0sp5xoed3-994._.js +3 -0
- package/server/.next/server/chunks/{[root-of-the-server]__03y8yvaulshnn._.js → [root-of-the-server]__0swji6flwxtbv._.js} +2 -2
- package/server/.next/server/chunks/{[root-of-the-server]__0p_rkszoindlf._.js → [root-of-the-server]__0tyilr06jn8nb._.js} +1 -1
- package/server/.next/server/chunks/[root-of-the-server]__0uss50b85q1j1._.js +3 -0
- package/server/.next/server/chunks/{[root-of-the-server]__0w1iqt-rpp_3h._.js → [root-of-the-server]__0vco1v37du1ez._.js} +1 -1
- package/server/.next/server/chunks/[root-of-the-server]__0vp-x4ifpr3p9._.js +1 -1
- package/server/.next/server/chunks/{[root-of-the-server]__05s9-538s47_e._.js → [root-of-the-server]__0w_hiz5nrm8-4._.js} +1 -1
- package/server/.next/server/chunks/[root-of-the-server]__0xzl28izr2tiq._.js +3 -0
- package/server/.next/server/chunks/[root-of-the-server]__0xzreqng-t2g8._.js +3 -0
- package/server/.next/server/chunks/{[root-of-the-server]__0b7xflnrk4amk._.js → [root-of-the-server]__0z9of310ruzug._.js} +2 -2
- package/server/.next/server/chunks/[root-of-the-server]__0zu1odpvrptrt._.js +3 -0
- package/server/.next/server/chunks/{[root-of-the-server]__14cb1pomeg0x7._.js → [root-of-the-server]__1-3u16rnk101p._.js} +2 -2
- package/server/.next/server/chunks/[root-of-the-server]__1-pe9ipc3y6rn._.js +3 -0
- package/server/.next/server/chunks/[root-of-the-server]__1-tqm3jzny4zd._.js +3 -0
- package/server/.next/server/chunks/{[root-of-the-server]__1mqv7anx5l3yq._.js → [root-of-the-server]__108g59p2fl8tw._.js} +2 -2
- package/server/.next/server/chunks/[root-of-the-server]__12_wmn5mkj9v7._.js +3 -0
- package/server/.next/server/chunks/{[root-of-the-server]__0vuirlylhcyzm._.js → [root-of-the-server]__12bo9op0qkw9d._.js} +2 -2
- package/server/.next/server/chunks/{[root-of-the-server]__0p955ekgdwy_c._.js → [root-of-the-server]__12tontjm90s-j._.js} +2 -2
- package/server/.next/server/chunks/[root-of-the-server]__13-qqkdecmwba._.js +1 -1
- package/server/.next/server/chunks/{[root-of-the-server]__1qxm3lqqdbyy7._.js → [root-of-the-server]__140ixflf83vxj._.js} +2 -2
- package/server/.next/server/chunks/{[root-of-the-server]__1qqdsrhuw0z-w._.js → [root-of-the-server]__152e1b97gc8hw._.js} +2 -2
- package/server/.next/server/chunks/[root-of-the-server]__153lxhkj8-_vf._.js +3 -0
- package/server/.next/server/chunks/{[root-of-the-server]__1rusbj8ktmzj0._.js → [root-of-the-server]__15tr3yx8k9lyt._.js} +2 -2
- package/server/.next/server/chunks/{[root-of-the-server]__029099rqwqwff._.js → [root-of-the-server]__16-0nul8mfe2m._.js} +2 -2
- package/server/.next/server/chunks/{[root-of-the-server]__0qhyj1r9qcxp3._.js → [root-of-the-server]__172vz80sdr5ny._.js} +2 -2
- package/server/.next/server/chunks/[root-of-the-server]__177l2p7kcj-16._.js +1 -1
- package/server/.next/server/chunks/{[root-of-the-server]__0u4o6oo428rvf._.js → [root-of-the-server]__17bz0jxsns742._.js} +2 -2
- package/server/.next/server/chunks/{[root-of-the-server]__1gl0-1oziw-g0._.js → [root-of-the-server]__17jjm80vttqmq._.js} +2 -2
- package/server/.next/server/chunks/{[root-of-the-server]__1pu84qy7loc8o._.js → [root-of-the-server]__18eqxi2vwpdjm._.js} +2 -2
- package/server/.next/server/chunks/[root-of-the-server]__194y_mcnn0zs3._.js +3 -0
- package/server/.next/server/chunks/[root-of-the-server]__1_iy7tzpesarf._.js +1 -1
- package/server/.next/server/chunks/[root-of-the-server]__1_vfu21n1zq17._.js +3 -0
- package/server/.next/server/chunks/[root-of-the-server]__1akvpmbiap6nf._.js +1 -1
- package/server/.next/server/chunks/[root-of-the-server]__1c78cu7kb9vkl._.js +1 -1
- package/server/.next/server/chunks/[root-of-the-server]__1cy1k8jbwoull._.js +3 -0
- package/server/.next/server/chunks/[root-of-the-server]__1d4wmw2wohveb._.js +3 -0
- package/server/.next/server/chunks/{[root-of-the-server]__02ctwy1u4z3fj._.js → [root-of-the-server]__1dp_mz2p02ze6._.js} +2 -2
- package/server/.next/server/chunks/{[root-of-the-server]__11yn1ky7yixd7._.js → [root-of-the-server]__1eng6c6q52y-6._.js} +2 -2
- package/server/.next/server/chunks/[root-of-the-server]__1etg41llk7f09._.js +3 -0
- package/server/.next/server/chunks/[root-of-the-server]__1f-rkijnm8me7._.js +3 -0
- package/server/.next/server/chunks/{[root-of-the-server]__0t6rge6laz89-._.js → [root-of-the-server]__1gfuhug61s-qy._.js} +2 -2
- package/server/.next/server/chunks/{[root-of-the-server]__1ywvdsk_bmws0._.js → [root-of-the-server]__1git7o20yf9nn._.js} +2 -2
- package/server/.next/server/chunks/[root-of-the-server]__1h496oc8wu4s6._.js +3 -0
- package/server/.next/server/chunks/[root-of-the-server]__1hertcbqi_w97._.js +3 -0
- package/server/.next/server/chunks/[root-of-the-server]__1io5zo7iam532._.js +1 -1
- package/server/.next/server/chunks/[root-of-the-server]__1j-nkcwy3w6sy._.js +3 -0
- package/server/.next/server/chunks/[root-of-the-server]__1jcr8cc_tlvfc._.js +1 -1
- package/server/.next/server/chunks/[root-of-the-server]__1l3uz57-1a35s._.js +3 -0
- package/server/.next/server/chunks/[root-of-the-server]__1l9pn8y-o6xyp._.js +3 -0
- package/server/.next/server/chunks/[root-of-the-server]__1lp_rypkkdjp9._.js +3 -0
- package/server/.next/server/chunks/[root-of-the-server]__1m-z1ne4p7pi5._.js +3 -0
- package/server/.next/server/chunks/{[root-of-the-server]__12w6gylk59cym._.js → [root-of-the-server]__1ma2tpf6wh9p6._.js} +2 -2
- package/server/.next/server/chunks/[root-of-the-server]__1nohrxjajgm5c._.js +3 -0
- package/server/.next/server/chunks/[root-of-the-server]__1o2km61kftkj1._.js +3 -0
- package/server/.next/server/chunks/[root-of-the-server]__1pn773t93gvn-._.js +3 -0
- package/server/.next/server/chunks/[root-of-the-server]__1q0h-x-7ob6cu._.js +3 -0
- package/server/.next/server/chunks/[root-of-the-server]__1q2e13halne9s._.js +3 -0
- package/server/.next/server/chunks/[root-of-the-server]__1q7xy_u4inf4h._.js +3 -0
- package/server/.next/server/chunks/[root-of-the-server]__1qtorf4s2dfeg._.js +3 -0
- package/server/.next/server/chunks/[root-of-the-server]__1sm4p209f_yie._.js +3 -0
- package/server/.next/server/chunks/[root-of-the-server]__1uhgqik99k1y6._.js +3 -0
- package/server/.next/server/chunks/[root-of-the-server]__1uq4f0bdphqs2._.js +3 -0
- package/server/.next/server/chunks/{[root-of-the-server]__1gufo2kz88z04._.js → [root-of-the-server]__1usilhckla3wj._.js} +1 -1
- package/server/.next/server/chunks/[root-of-the-server]__1v_8mu8mt1n5i._.js +3 -0
- package/server/.next/server/chunks/{[root-of-the-server]__1yk1psrx0yy4n._.js → [root-of-the-server]__1vtlx_63lj4tg._.js} +2 -2
- package/server/.next/server/chunks/[root-of-the-server]__1wxj0f-l93gkh._.js +3 -0
- package/server/.next/server/chunks/[root-of-the-server]__1x4u0cdsl_81t._.js +1 -1
- package/server/.next/server/chunks/{[root-of-the-server]__1lvf4tk_1td0a._.js → [root-of-the-server]__1x7en4waq21dd._.js} +2 -2
- package/server/.next/server/chunks/[root-of-the-server]__1xzg_370-w-6t._.js +3 -0
- package/server/.next/server/chunks/[root-of-the-server]__20dehd8e5-v9y._.js +1 -1
- package/server/.next/server/chunks/_01epotkqa90nv._.js +1 -1
- package/server/.next/server/chunks/_03wces6vk33l0._.js +3 -0
- package/server/.next/server/chunks/_08q7x7rdbiaql._.js +9 -9
- package/server/.next/server/chunks/_09iin0yvuppj0._.js +3 -0
- package/server/.next/server/chunks/{_1w9di5m91vtjk._.js → _0buibatfr6-k_._.js} +3 -3
- package/server/.next/server/chunks/_0d29nzne5jrwy._.js +9 -9
- package/server/.next/server/chunks/{_1txqs5b7jg9so._.js → _0hekve2tk2eyv._.js} +3 -3
- package/server/.next/server/chunks/_0huryxihjw6tl._.js +9 -9
- package/server/.next/server/chunks/_0n-wbmmvp4omq._.js +1 -1
- package/server/.next/server/chunks/_0ou2tylxx1ltw._.js +2 -2
- package/server/.next/server/chunks/{_0lboyl6w4kfx4._.js → _0s_2fgaxby9fy._.js} +3 -3
- package/server/.next/server/chunks/_0z4b07-oa6ms9._.js +3 -0
- package/server/.next/server/chunks/_10mj3f1wis1ld._.js +1 -1
- package/server/.next/server/chunks/_139_9h76gakgh._.js +3 -0
- package/server/.next/server/chunks/_14jiq00zwwqdl._.js +3 -0
- package/server/.next/server/chunks/_15f0c7f46zkh3._.js +1 -1
- package/server/.next/server/chunks/_1e4rch26scbhq._.js +9 -9
- package/server/.next/server/chunks/_1iunyzyr-tfdj._.js +9 -9
- package/server/.next/server/chunks/_1jor4_sz1x8mt._.js +3 -0
- package/server/.next/server/chunks/_1m3zrm9-rc926._.js +3 -0
- package/server/.next/server/chunks/_1mwwg18ni-phb._.js +3 -0
- package/server/.next/server/chunks/_1ohb_bmawpjlz._.js +2 -2
- package/server/.next/server/chunks/src_0--qn984h6czu._.js +1 -1
- package/server/.next/server/chunks/src_0071b0w5aco6_._.js +3 -0
- package/server/.next/server/chunks/src_1-6a00bmwlymu._.js +3 -0
- package/server/.next/server/chunks/src_1-dy6ie3_ezvm._.js +3 -0
- package/server/.next/server/chunks/{src_1s913pql1_n-f._.js → src_13ij0feyzy7me._.js} +2 -2
- package/server/.next/server/chunks/{src_1_y0pxtbr6e04._.js → src_14vh1kj98t0xu._.js} +2 -2
- package/server/.next/server/chunks/src_1_s_jyur8tzy3._.js +3 -0
- package/server/.next/server/chunks/src_1a5yibsjcy1ga._.js +1 -1
- package/server/.next/server/chunks/src_1dio7z4_so000._.js +3 -0
- package/server/.next/server/chunks/src_1hpbxjbqlnuob._.js +3 -0
- package/server/.next/server/chunks/src_1u-olt84z63rx._.js +1 -1
- package/server/.next/server/chunks/{src_1mwttl5ainte0._.js → src_20eae99bkrgpt._.js} +2 -2
- package/server/.next/server/chunks/src_lib_0-fln6xaazo-9._.js +12 -0
- package/server/.next/server/chunks/src_lib_0eqv8l-v8d5ze._.js +1 -1
- package/server/.next/server/chunks/src_lib_0glcfed-uogyd._.js +1 -1
- package/server/.next/server/chunks/src_lib_0pyyxm3m1rttg._.js +1 -1
- package/server/.next/server/chunks/src_lib_13irheo9qqhgx._.js +1 -1
- package/server/.next/server/chunks/src_lib_1jlvdx5ho171c._.js +12 -0
- package/server/.next/server/chunks/src_lib_alerts_catalog_ts_1ndg28acul64q._.js +1 -1
- package/server/.next/server/chunks/src_lib_branding_ts_03ns4y_8z0-6e._.js +1 -1
- package/server/.next/server/chunks/src_lib_branding_ts_0jfv9nur5alvy._.js +1 -1
- package/server/.next/server/chunks/src_lib_collector_auth_ts_0lqx92__e4zij._.js +4 -4
- package/server/.next/server/chunks/src_lib_data_report-db_ts_0b5f4dpxn08gk._.js +1 -1
- package/server/.next/server/chunks/src_lib_data_sections-db_ts_1ky6-o4z1mimq._.js +4 -4
- package/server/.next/server/chunks/src_lib_data_settings-db_ts_1to3jtggxlaz4._.js +3 -0
- package/server/.next/server/chunks/src_lib_data_settings-db_ts_2060-w9nbvitr._.js +3 -0
- package/server/.next/server/chunks/src_lib_demo_pool_ts_0fpn8acsdk64i._.js +8 -8
- package/server/.next/server/chunks/src_lib_demo_pool_ts_14rjvkgozh1d4._.js +1 -1
- package/server/.next/server/chunks/src_lib_demo_pool_ts_17xz9bk-d5uic._.js +1 -1
- package/server/.next/server/chunks/src_lib_demo_pool_ts_210g_on8zx_-n._.js +1 -1
- package/server/.next/server/chunks/src_private_notes_notes-actions_ts_1g63g8u965fhc._.js +1 -1
- package/server/.next/server/chunks/ssr/1oeh_server_app_(console)_(private)_ai_agents_page_actions_21atz5tidps07.js +1 -1
- package/server/.next/server/chunks/ssr/1oeh_server_app_(console)_(private)_ai_models_page_actions_0rvlzfa8rjyz_.js +1 -1
- package/server/.next/server/chunks/ssr/1oeh_server_app_(console)_(private)_ai_playground_page_actions_01ejc1xilpuh4.js +1 -1
- package/server/.next/server/chunks/ssr/1oeh_server_app_(console)_(private)_ai_quota_page_actions_0iki29gyi8cwa.js +1 -1
- package/server/.next/server/chunks/ssr/1oeh_server_app_(console)_(private)_ai_usage_page_actions_1c99h-kwdnep7.js +1 -1
- package/server/.next/server/chunks/ssr/1oeh_server_app_(console)_(private)_auto-actions_page_actions_1kw4ce6-efkr1.js +1 -1
- package/server/.next/server/chunks/ssr/{[externals]__0byytapt83qke._.js → [externals]__1299yq-rye4ww._.js} +1 -1
- package/server/.next/server/chunks/ssr/{[externals]__1baveo0r8_hf1._.js → [externals]__134px-n77ygse._.js} +1 -1
- package/server/.next/server/chunks/ssr/{[externals]__02peoq6kft9oz._.js → [externals]__1s9zy_6f7xfd5._.js} +1 -1
- package/server/.next/server/chunks/ssr/{[externals]__0gb_9a2m3eqk5._.js → [externals]__1t5grpj1lrsbr._.js} +1 -1
- package/server/.next/server/chunks/ssr/[root-of-the-server]__001mglelq4wpc._.js +1 -1
- package/server/.next/server/chunks/ssr/{[root-of-the-server]__1pr-neo8jutji._.js → [root-of-the-server]__03iw2anbe7pxg._.js} +2 -2
- package/server/.next/server/chunks/ssr/{[root-of-the-server]__1_axyb404w3bf._.js → [root-of-the-server]__059q8f4tia03z._.js} +2 -2
- package/server/.next/server/chunks/ssr/{[root-of-the-server]__05uxv6qwfpp79._.js → [root-of-the-server]__05ot6j41b9i8j._.js} +2 -2
- package/server/.next/server/chunks/ssr/[root-of-the-server]__09blzlbsxqvy9._.js +1 -1
- package/server/.next/server/chunks/ssr/{[root-of-the-server]__12c2r19g75dyy._.js → [root-of-the-server]__0_wsm-adqpmgy._.js} +1 -1
- package/server/.next/server/chunks/ssr/{[root-of-the-server]__1_q3kww244pif._.js → [root-of-the-server]__0buxkrf7nrji8._.js} +2 -2
- package/server/.next/server/chunks/ssr/{[root-of-the-server]__041mpme_x36vq._.js → [root-of-the-server]__0f6ao2fs70kab._.js} +1 -1
- package/server/.next/server/chunks/ssr/{[root-of-the-server]__0rrnk3_fb0l_9._.js → [root-of-the-server]__0f8ibnqfh_mp0._.js} +2 -2
- package/server/.next/server/chunks/ssr/[root-of-the-server]__0h8-rlmhjyebb._.js +3 -0
- package/server/.next/server/chunks/ssr/[root-of-the-server]__0jgapr1cnvhi6._.js +1 -1
- package/server/.next/server/chunks/ssr/[root-of-the-server]__0kejvdc7h-pgz._.js +3 -0
- package/server/.next/server/chunks/ssr/[root-of-the-server]__0keo0-hwsnkw9._.js +1 -1
- package/server/.next/server/chunks/ssr/{[root-of-the-server]__1ev5rocipbkjw._.js → [root-of-the-server]__0kjdpn_g9gvwr._.js} +2 -2
- package/server/.next/server/chunks/ssr/[root-of-the-server]__0l50vsk8enxzj._.js +1 -1
- package/server/.next/server/chunks/ssr/{[root-of-the-server]__1z_pt3d8lty_n._.js → [root-of-the-server]__0msczl_qf2eml._.js} +2 -2
- package/server/.next/server/chunks/ssr/[root-of-the-server]__0mvauw9r_4qss._.js +1 -1
- package/server/.next/server/chunks/ssr/[root-of-the-server]__0rdf04ziqasfz._.js +1 -1
- package/server/.next/server/chunks/ssr/[root-of-the-server]__0rrdzb9wowemv._.js +1 -1
- package/server/.next/server/chunks/ssr/{[root-of-the-server]__1xkfr7qk7oxjf._.js → [root-of-the-server]__0s9z1kusbxvae._.js} +2 -2
- package/server/.next/server/chunks/ssr/{[root-of-the-server]__13x0qmv4fm_1p._.js → [root-of-the-server]__0wlctoz_-yuyh._.js} +1 -1
- package/server/.next/server/chunks/ssr/[root-of-the-server]__0y6psx1_d7fkt._.js +3 -0
- package/server/.next/server/chunks/ssr/{[root-of-the-server]__1zsqu1mecqptt._.js → [root-of-the-server]__0yr0heg1b0y5t._.js} +2 -2
- package/server/.next/server/chunks/ssr/{[root-of-the-server]__1z3vauqrf2l-_._.js → [root-of-the-server]__0yvm5q_auexh3._.js} +2 -2
- package/server/.next/server/chunks/ssr/{[root-of-the-server]__0qhbs-or7q-om._.js → [root-of-the-server]__0zgo5h9mstjc8._.js} +1 -1
- package/server/.next/server/chunks/ssr/{[root-of-the-server]__1mbb917mrz5c-._.js → [root-of-the-server]__107qfgl2c58q0._.js} +1 -1
- package/server/.next/server/chunks/ssr/[root-of-the-server]__10ahcnczmy5hx._.js +3 -0
- package/server/.next/server/chunks/ssr/{[root-of-the-server]__1n-rcmbkk7duv._.js → [root-of-the-server]__12cdcpj45tu6j._.js} +2 -2
- package/server/.next/server/chunks/ssr/[root-of-the-server]__18dcfrlpoapw9._.js +1 -1
- package/server/.next/server/chunks/ssr/[root-of-the-server]__1_f7nip9age3d._.js +1 -1
- package/server/.next/server/chunks/ssr/{[root-of-the-server]__1k8mxdm-cxfg_._.js → [root-of-the-server]__1a3_aiqflmt4f._.js} +2 -2
- package/server/.next/server/chunks/ssr/{[root-of-the-server]__0vqae5m2ntd34._.js → [root-of-the-server]__1brzt_134_2iy._.js} +2 -2
- package/server/.next/server/chunks/ssr/[root-of-the-server]__1g6kynby65m0v._.js +1 -1
- package/server/.next/server/chunks/ssr/[root-of-the-server]__1sw2q1p1t59y8._.js +1 -1
- package/server/.next/server/chunks/ssr/[root-of-the-server]__1t9_ue4abugtn._.js +3 -0
- package/server/.next/server/chunks/ssr/[root-of-the-server]__1u_13nhw3kuz3._.js +1 -1
- package/server/.next/server/chunks/ssr/[root-of-the-server]__1vgliw2256_6l._.js +1 -1
- package/server/.next/server/chunks/ssr/{[root-of-the-server]__1gkcoq0cmmax1._.js → [root-of-the-server]__1zki66ic3cluq._.js} +2 -2
- package/server/.next/server/chunks/ssr/_008i8a0_8skrp._.js +1 -1
- package/server/.next/server/chunks/ssr/_02eudwc8ieb2r._.js +2 -2
- package/server/.next/server/chunks/ssr/_08xqk3eibu5aw._.js +1 -1
- package/server/.next/server/chunks/ssr/_0_oc9q0vqkynd._.js +1 -1
- package/server/.next/server/chunks/ssr/_0a22b7zsckifp._.js +1 -1
- package/server/.next/server/chunks/ssr/_0bd4cxnpnnq2u._.js +1 -1
- package/server/.next/server/chunks/ssr/_0cbbks0ms7i_u._.js +2 -2
- package/server/.next/server/chunks/ssr/_0cw4kz3d6kmb1._.js +1 -1
- package/server/.next/server/chunks/ssr/_0d2d527wcx-lf._.js +2 -2
- package/server/.next/server/chunks/ssr/_0d702k82llasi._.js +1 -1
- package/server/.next/server/chunks/ssr/_0gl-ewvbhb677._.js +2 -2
- package/server/.next/server/chunks/ssr/_0gmw45sb1llld._.js +1 -1
- package/server/.next/server/chunks/ssr/_0hqya_yuov5jw._.js +1 -1
- package/server/.next/server/chunks/ssr/_0i04zoixa2iup._.js +2 -2
- package/server/.next/server/chunks/ssr/_0idbg-ok0so2h._.js +2 -2
- package/server/.next/server/chunks/ssr/_0iy27gi4y9-fe._.js +1 -1
- package/server/.next/server/chunks/ssr/{_0xkl4rb1wydtd._.js → _0k6kbi721s28p._.js} +2 -2
- package/server/.next/server/chunks/ssr/_0kdn56_ow-x_s._.js +1 -1
- package/server/.next/server/chunks/ssr/_0kk0of-t4vhyh._.js +1 -1
- package/server/.next/server/chunks/ssr/{_0lg6_we0pe3nk._.js → _0l0eho21fo-8l._.js} +2 -2
- package/server/.next/server/chunks/ssr/_0oovfx_t_-u0k._.js +1 -1
- package/server/.next/server/chunks/ssr/_0oub-njkja8gu._.js +2 -2
- package/server/.next/server/chunks/ssr/_0pqkexxo7rts_._.js +2 -2
- package/server/.next/server/chunks/ssr/_0tnd528j0i1i4._.js +2 -2
- package/server/.next/server/chunks/ssr/_0uwkwcgucqgcf._.js +2 -2
- package/server/.next/server/chunks/ssr/_0uz60lk-7e_cj._.js +2 -2
- package/server/.next/server/chunks/ssr/_0wo-lpqf7hr1y._.js +2 -2
- package/server/.next/server/chunks/ssr/{_1ge8mluhma23o._.js → _0x4ybc829r3ta._.js} +2 -2
- package/server/.next/server/chunks/ssr/_0xmud7u5hdnqu._.js +2 -2
- package/server/.next/server/chunks/ssr/_1-4401bfn50mf._.js +1 -1
- package/server/.next/server/chunks/ssr/_1-6d1tm3r_qwg._.js +1 -1
- package/server/.next/server/chunks/ssr/_10bven6gb1vj0._.js +1 -1
- package/server/.next/server/chunks/ssr/_118h21qua_4o3._.js +1 -1
- package/server/.next/server/chunks/ssr/_12makqwatfke-._.js +2 -2
- package/server/.next/server/chunks/ssr/_19-3vzkc6rk97._.js +1 -1
- package/server/.next/server/chunks/ssr/_1_-o2s48aj4i7._.js +1 -1
- package/server/.next/server/chunks/ssr/_1c7jkkvkvzj_u._.js +2 -2
- package/server/.next/server/chunks/ssr/{_0kq3wqx86yyhb._.js → _1cdlzhw6tkrhd._.js} +2 -2
- package/server/.next/server/chunks/ssr/_1cl55h_h3q-b_._.js +1 -1
- package/server/.next/server/chunks/ssr/_1dlo17ba9g-f9._.js +2 -2
- package/server/.next/server/chunks/ssr/_1fc8k_0p8l00c._.js +2 -2
- package/server/.next/server/chunks/ssr/_1fuywfexex2s8._.js +2 -2
- package/server/.next/server/chunks/ssr/_1g2zbl_-4z_hg._.js +1 -1
- package/server/.next/server/chunks/ssr/_1he21-bt45k8z._.js +2 -2
- package/server/.next/server/chunks/ssr/_1j9cka-44jd65._.js +1 -1
- package/server/.next/server/chunks/ssr/_1jh_o2i8hj2g5._.js +1 -1
- package/server/.next/server/chunks/ssr/_1ln6o3a9quwxo._.js +2 -2
- package/server/.next/server/chunks/ssr/_1m4km_w39x5e9._.js +1 -1
- package/server/.next/server/chunks/ssr/_1ong0a252wcvc._.js +8 -8
- package/server/.next/server/chunks/ssr/_1pp1o361lgpwu._.js +2 -2
- package/server/.next/server/chunks/ssr/_1q3fi6a4gklq6._.js +1 -1
- package/server/.next/server/chunks/ssr/_1ul3og9l7vp32._.js +2 -2
- package/server/.next/server/chunks/ssr/_1yh3k88t_kh4h._.js +2 -2
- package/server/.next/server/chunks/ssr/_1z6dy1k48mskn._.js +1 -1
- package/server/.next/server/chunks/ssr/{_170okt24rw1yx._.js → _1zsfeuyrhcwmh._.js} +2 -2
- package/server/.next/server/chunks/ssr/_next-internal_server_app_(console)_(private)_ai_keys_page_actions_181-3r4e_0yb5.js +1 -1
- package/server/.next/server/chunks/ssr/_next-internal_server_app_(console)_(private)_ai_logs_page_actions_1ryb93n6khky3.js +1 -1
- package/server/.next/server/chunks/ssr/_next-internal_server_app_(console)_alerts_page_actions_06_3gmyq3jtvi.js +1 -1
- package/server/.next/server/chunks/ssr/_next-internal_server_app_(console)_apps_[id]_page_actions_1myo_rodrlg3a.js +2 -2
- package/server/.next/server/chunks/ssr/_next-internal_server_app_(console)_apps_page_actions_0ksau5eicvycc.js +1 -1
- package/server/.next/server/chunks/ssr/_next-internal_server_app_(console)_connections_page_actions_1fgolmmpxrouc.js +1 -1
- package/server/.next/server/chunks/ssr/_next-internal_server_app_(console)_containers_page_actions_1ainjsbrnl360.js +1 -1
- package/server/.next/server/chunks/ssr/_next-internal_server_app_(console)_dns_page_actions_17d_lvhl-u_4w.js +1 -1
- package/server/.next/server/chunks/ssr/_next-internal_server_app_(console)_domains_page_actions_1yv3fj_fh-n-5.js +1 -1
- package/server/.next/server/chunks/ssr/_next-internal_server_app_(console)_firebase_page_actions_00wuues_v_j3r.js +1 -1
- package/server/.next/server/chunks/ssr/_next-internal_server_app_(console)_logs_page_actions_0oqh51t2rx6q0.js +1 -1
- package/server/.next/server/chunks/ssr/_next-internal_server_app_(console)_manage_sections_page_actions_1sb2ldu57uj32.js +1 -1
- package/server/.next/server/chunks/ssr/_next-internal_server_app_(console)_settings_page_actions_1363m-cfkgyvr.js +1 -1
- package/server/.next/server/chunks/ssr/_next-internal_server_app_(console)_supabase_page_actions_1f3a_tpkwjo8z.js +1 -1
- package/server/.next/server/chunks/ssr/_next-internal_server_app_(console)_uptime_page_actions_1ylbdz0-ykfh6.js +1 -1
- package/server/.next/server/chunks/ssr/_next-internal_server_app_account_password_page_actions_1v4e71_oifbx9.js +1 -1
- package/server/.next/server/chunks/ssr/_next-internal_server_app_signin_page_actions_11wzk446p6_zi.js +1 -1
- package/server/.next/server/chunks/ssr/{[root-of-the-server]__1q6iypbn6yagc._.js → src_000iv6actp3t_._.js} +2 -2
- package/server/.next/server/chunks/ssr/src_0330uf9pdfco9._.js +1 -1
- package/server/.next/server/chunks/ssr/src_06tjy8wljego8._.js +1 -1
- package/server/.next/server/chunks/ssr/src_084tdkx3c_yqi._.js +1 -1
- package/server/.next/server/chunks/ssr/src_0abts6wp5ucc0._.js +1 -1
- package/server/.next/server/chunks/ssr/src_0etvjdinp5urq._.js +1 -1
- package/server/.next/server/chunks/ssr/src_0ovx2ogvlz2eh._.js +1 -1
- package/server/.next/server/chunks/ssr/src_0ph020gy78gi9._.js +1 -1
- package/server/.next/server/chunks/ssr/{src_18ofj2_oxqb0g._.js → src_0torilf0s7p-e._.js} +2 -2
- package/server/.next/server/chunks/ssr/src_10zavgy86u3us._.js +1 -1
- package/server/.next/server/chunks/ssr/{src_1ldp01vcphvw5._.js → src_1_b884ul0envr._.js} +2 -2
- package/server/.next/server/chunks/ssr/src_1q-jgpnd3lbcu._.js +1 -1
- package/server/.next/server/chunks/ssr/src_app_(console)_(private)_ai_agents_1fyhh1ldgm23z._.js +1 -1
- package/server/.next/server/chunks/ssr/src_app_(console)_(private)_ai_ask_ask-form_tsx_18ttm9nna_9y6._.js +1 -1
- package/server/.next/server/chunks/ssr/src_app_(console)_(private)_ai_logs_export-button_tsx_1k-crb88n1za_._.js +1 -1
- package/server/.next/server/chunks/ssr/src_app_(console)_(private)_ai_models_0ayzqn062pnv5._.js +1 -1
- package/server/.next/server/chunks/ssr/src_app_(console)_(private)_ai_playground_playground-view_tsx_18ua5zn_a0mar._.js +1 -1
- package/server/.next/server/chunks/ssr/src_app_(console)_(private)_ai_providers_1ru-30x6-uwu4._.js +1 -1
- package/server/.next/server/chunks/ssr/src_app_(console)_(private)_ai_quota_limits-form_tsx_1vouaaf560z_x._.js +1 -1
- package/server/.next/server/chunks/ssr/src_app_(console)_(private)_ai_usage_limits-form_tsx_0sfk3ver58rqw._.js +1 -1
- package/server/.next/server/chunks/ssr/{src_app_(console)_0eh38ymzn-s-m._.js → src_app_(console)_0e1l3e9r_60s4._.js} +2 -2
- package/server/.next/server/chunks/ssr/{src_app_(console)_03s-e0b0zsqqr._.js → src_app_(console)_124kgxvmqm7j4._.js} +2 -2
- package/server/.next/server/chunks/ssr/src_app_(console)_alerts_0j5xlt68kwg8x._.js +2 -2
- package/server/.next/server/chunks/ssr/src_app_(console)_apps_[id]_08in-j3xp5mbn._.js +1 -1
- package/server/.next/server/chunks/ssr/src_app_(console)_backups_actions_ts_1vpytsdh0wc1f._.js +1 -1
- package/server/.next/server/chunks/ssr/src_app_(console)_backups_drive-buttons_tsx_00cku5r_z3jkg._.js +1 -1
- package/server/.next/server/chunks/ssr/src_app_(console)_connections_1fahc65-97qla._.js +1 -1
- package/server/.next/server/chunks/ssr/src_app_(console)_connections_1fmp_anbkapur._.js +1 -1
- package/server/.next/server/chunks/ssr/src_app_(console)_connections_actions_ts_103blv4gzq76z._.js +1 -1
- package/server/.next/server/chunks/ssr/src_app_(console)_containers_containers-view_tsx_1xkcrw5gx53xo._.js +1 -1
- package/server/.next/server/chunks/ssr/src_app_(console)_create_actions_ts_05-86qr6kfjey._.js +1 -1
- package/server/.next/server/chunks/ssr/src_app_(console)_dns_actions_ts_1jzn58xzwbukz._.js +1 -1
- package/server/.next/server/chunks/ssr/src_app_(console)_dns_record-actions_tsx_0cqmz51zcuebv._.js +1 -1
- package/server/.next/server/chunks/ssr/src_app_(console)_firebase_row-menu_tsx_0hssoq3pqjl-n._.js +1 -1
- package/server/.next/server/chunks/ssr/src_app_(console)_logs_log-viewer_tsx_0v3e4cflfk14w._.js +1 -1
- package/server/.next/server/chunks/ssr/src_app_(console)_manage_sections_section-switch_tsx_1mfs-o_357i22._.js +1 -1
- package/server/.next/server/chunks/ssr/src_app_(console)_monitor-actions_ts_10w3h7myk2ppi._.js +1 -1
- package/server/.next/server/chunks/ssr/src_app_(console)_os_os-view_tsx_0xr69f5vtstls._.js +1 -1
- package/server/.next/server/chunks/ssr/src_app_(console)_palette-action_ts_0zyw9a9imev6p._.js +1 -1
- package/server/.next/server/chunks/ssr/src_app_(console)_reports_reports-view_tsx_1l0apba6g810q._.js +1 -1
- package/server/.next/server/chunks/ssr/src_app_(console)_sql_1icfsti04djqe._.js +2 -2
- package/server/.next/server/chunks/ssr/src_app_(console)_sql_actions_ts_1oqco02hw-3vp._.js +1 -1
- package/server/.next/server/chunks/ssr/src_app_(console)_supabase_0ib3m2ch9gu-4._.js +1 -1
- package/server/.next/server/chunks/ssr/src_app_(console)_supabase_1ofufib3-zzt-._.js +1 -1
- package/server/.next/server/chunks/ssr/src_app_(console)_supabase_pool-actions_ts_0nzd4vwy_9zzx._.js +1 -1
- package/server/.next/server/chunks/ssr/src_app_(console)_uptime_1mnnkfi-2zv-k._.js +1 -1
- package/server/.next/server/chunks/ssr/src_app_(console)_vercel-actions_ts_0wpk1yo9v632d._.js +1 -1
- package/server/.next/server/chunks/ssr/src_app_mfa_setup_setup-flow_tsx_1fpwygr2vdgnh._.js +1 -1
- package/server/.next/server/chunks/ssr/src_app_s_[slug]_page_tsx_0jjqe6py82mpb._.js +1 -1
- package/server/.next/server/chunks/ssr/src_app_setup_setup-form_tsx_0izoagdur96e1._.js +1 -1
- package/server/.next/server/chunks/ssr/src_app_signin_1_sp0qx8_z7c9._.js +1 -1
- package/server/.next/server/chunks/ssr/{src_app_signin_1-h17es4-y1-k._.js → src_app_signin_1qq0_77_vdutm._.js} +2 -2
- package/server/.next/server/chunks/ssr/src_components_create_create-dialog_tsx_1s_9clly_m1ru._.js +1 -1
- package/server/.next/server/chunks/ssr/src_lib_0eqv8l-v8d5ze._.js +1 -1
- package/server/.next/server/chunks/ssr/src_lib_0jnv54-8idu07._.js +1 -1
- package/server/.next/server/chunks/ssr/src_lib_1eioo4oodq-8h._.js +1 -1
- package/server/.next/server/chunks/ssr/src_lib_alerts_catalog_ts_1ndg28acul64q._.js +1 -1
- package/server/.next/server/chunks/ssr/src_lib_branding_ts_03ns4y_8z0-6e._.js +1 -1
- package/server/.next/server/chunks/ssr/src_lib_branding_ts_1p22ju9pii41w._.js +3 -0
- package/server/.next/server/chunks/ssr/src_lib_collector_self-update_ts_18m5vmptpjhtg._.js +1 -1
- package/server/.next/server/chunks/ssr/src_lib_data_sections-db_ts_1ky6-o4z1mimq._.js +2 -2
- package/server/.next/server/chunks/ssr/src_lib_data_settings-db_ts_1to3jtggxlaz4._.js +3 -0
- package/server/.next/server/chunks/ssr/{src_lib_demo_0r3c3k5102jja._.js → src_lib_demo_03sepqqjq9usk._.js} +2 -2
- package/server/.next/server/chunks/ssr/src_lib_demo_pool_ts_0fpn8acsdk64i._.js +5 -5
- package/server/.next/server/chunks/ssr/src_lib_view_usage_ts_1h1tj0m3n2vul._.js +1 -1
- package/server/.next/server/chunks/ssr/src_private_0iy_wyg2p1jkn._.js +1 -1
- package/server/.next/server/chunks/ssr/src_private_actions_decide-form_tsx_1hngtxpyle3v8._.js +1 -1
- package/server/.next/server/chunks/ssr/src_private_ai_providers_actions_ts_0wxa36ai6s5nn._.js +1 -1
- package/server/.next/server/chunks/ssr/src_private_notes_notes-actions_ts_1g63g8u965fhc._.js +1 -1
- package/server/.next/server/middleware-build-manifest.js +3 -3
- package/server/.next/server/pages/404.html +1 -1
- package/server/.next/server/pages/500.html +1 -1
- package/server/.next/server/preview-props.json +3 -3
- package/server/.next/server/server-reference-manifest.js +1 -1
- package/server/.next/server/server-reference-manifest.json +178 -158
- package/server/.next/static/chunks/{2co8kv2tj776w.js → 0-v128fmc05bf.js} +1 -1
- package/server/.next/static/chunks/{1416wraxs5p8g.js → 02db293pqegsb.js} +1 -1
- package/server/.next/static/chunks/{2i5_2zcei6rqr.js → 03t36gu4t__cw.js} +1 -1
- package/server/.next/static/chunks/{3bvj3-0xltkjo.js → 07p13q6tuqr2r.js} +1 -1
- package/server/.next/static/chunks/{3ic9vbadne9of.js → 09qtiybhnydd3.js} +1 -1
- package/server/.next/static/chunks/{2txgb9zusks-w.js → 0_5leiwhgv7d6.js} +1 -1
- package/server/.next/static/chunks/{1nv_9c1bate-f.js → 0_ebioh9utve_.js} +1 -1
- package/server/.next/static/chunks/{1_uuog1-u6y0t.js → 0_hd-kx6h59a8.js} +1 -1
- package/server/.next/static/chunks/{2azwg3my8wh40.js → 0if7r4ximmzwb.js} +1 -1
- package/server/.next/static/chunks/{2n198u7xx1koh.js → 0ohm_qoe5thrr.js} +1 -1
- package/server/.next/static/chunks/0ssmmtio659vh.js +1 -0
- package/server/.next/static/chunks/{07_cb192ydsaj.js → 0t0igs6uqhbf0.js} +1 -1
- package/server/.next/static/chunks/{0zwq-z8jt5hpz.js → 0ut06v9sng9g4.js} +1 -1
- package/server/.next/static/chunks/{0s00_-em3cj00.js → 0w--mj7tf-9f-.js} +1 -1
- package/server/.next/static/chunks/131egbz-4xsjl.js +1 -0
- package/server/.next/static/chunks/{3ic7ri5b4ifjp.js → 14dbn6_jif37v.js} +2 -2
- package/server/.next/static/chunks/{1vt_t7dg_-pyu.js → 15l58okvbrc4_.js} +1 -1
- package/server/.next/static/chunks/{378ttzg87hows.js → 1_nuygyg_kes5.js} +2 -2
- package/server/.next/static/chunks/{3-us-wg44ohoc.js → 1bsq3x1wh49bp.js} +1 -1
- package/server/.next/static/chunks/{3n98m8tj20wcf.js → 1esunqtpnjwkw.js} +1 -1
- package/server/.next/static/chunks/{1j_hduntj28ij.js → 1gizey8idqrkt.js} +1 -1
- package/server/.next/static/chunks/{0gxxyq5l_0rp2.js → 1itgjll79qm1l.js} +1 -1
- package/server/.next/static/chunks/{3dktq-qmj2q5b.js → 1o27sfcuph25w.js} +1 -1
- package/server/.next/static/chunks/{31fs88f_h861n.js → 1pz19kzjaj8uw.js} +1 -1
- package/server/.next/static/chunks/{0a9mqrzg8420n.js → 1qzun1-bna-sy.js} +1 -1
- package/server/.next/static/chunks/{3mgd5b39ghc-w.js → 1ugo5ye01racz.js} +1 -1
- package/server/.next/static/chunks/{2gk24b05q4q57.js → 1z5s55o29xqyu.js} +1 -1
- package/server/.next/static/chunks/21gu7xcv8ix3_.js +1 -0
- package/server/.next/static/chunks/{3aglnkhgcl_kq.js → 21p4xz6ysy8mv.js} +1 -1
- package/server/.next/static/chunks/{0ynyx3s7s4mv7.js → 22bdke6t-doqh.js} +1 -1
- package/server/.next/static/chunks/{1nqpnndfmw0tc.js → 28ljlwfuuz5a1.js} +1 -1
- package/server/.next/static/chunks/29lr_ae0uli9o.js +1 -0
- package/server/.next/static/chunks/{1yyigrxptb7jm.js → 2jkqfajf-i0r6.js} +2 -2
- package/server/.next/static/chunks/{2sr03gtef27q0.js → 2mhli3hpy5vr9.js} +1 -1
- package/server/.next/static/chunks/{3u1v2wpzthilq.js → 2ns8p-8ngmi9h.js} +1 -1
- package/server/.next/static/chunks/{0valedxcn7j8k.js → 2vdwhg5fnxmu-.js} +2 -2
- package/server/.next/static/chunks/{1azdri14ocjgg.js → 2xgya43mybqsr.js} +11 -11
- package/server/.next/static/chunks/{3cti7pgg_jjlx.js → 2yv02i0h6tppe.js} +1 -1
- package/server/.next/static/chunks/{3-789qaoce7ff.js → 31gsdl-_t96jr.js} +1 -1
- package/server/.next/static/chunks/{2db0smm21dva_.js → 3_lq_n61v4j3r.js} +1 -1
- package/server/.next/static/chunks/{0_xoojw9q_nof.js → 3a11wypkvc5ey.js} +1 -1
- package/server/.next/static/chunks/{0dn6fty1ilg-n.js → 3g0p8ugqre9ft.js} +1 -1
- package/server/.next/static/chunks/{28_88x_e_ynaj.js → 3jq1ae0_9wu-o.js} +1 -1
- package/server/.next/static/chunks/3o358k-0653gr.js +1 -0
- package/server/.next/static/chunks/{05c15dcfh7cxm.js → 3pnzdk7snuzti.js} +1 -1
- package/server/.next/static/chunks/4114b2ynqr24j.js +1 -0
- package/server/.next/static/chunks/{28qjoy38cp5by.js → 41r6z31pmixbr.js} +1 -1
- package/server/.next/static/chunks/{3lw5n6yzs0665.js → 43wc7pgukn2dp.js} +1 -1
- package/server/.next/static/chunks/{1cd-2y1kwqosv.js → 4451kr05p691g.js} +1 -1
- package/server/.next/static/chunks/{1w51uxl19faw3.js → 44t_7rpq23-bz.js} +1 -1
- package/server/server.js +1 -1
- package/server/.next/server/chunks/[root-of-the-server]__00s0famyfjv1y._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__03z520-siwkv_._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__06od3qx7q00rc._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__09bwtkv2iniyt._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__0bb8xnocnnbt8._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__0c0drtvym6hf4._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__0frz3wu-qcv-d._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__0hm-azhxs9ted._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__0n-u6p8-hd-89._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__0p2n1_qp53y51._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__0p8j8b2tg73dq._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__0q9s7rbt0e-cf._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__0ra3lgjt0yuyy._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__0sgumm0843o2j._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__0vjvvirn6-fx-._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__0welpj78704um._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__0ymf9ppvpsffe._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__0zxrhqtvpoio4._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__10-4cctiab73h._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__11300e77grhx6._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__11tzj3jzqzk6v._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__12m0p1vyef6d5._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__13i4zx_j8zugt._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__1420nm1i823v8._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__1cnmxehqzmqq_._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__1f84fftr_6_6n._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__1i_vd8w3df3i6._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__1igmx9-fdh2wd._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__1kp2wois-47bg._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__1lcszcm98v484._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__1mufebnwyxlwx._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__1o0lvy6ek0v5d._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__1qwy7s_95k9k-._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__1rxaooz-d8jfs._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__1s8f1ovcj5r99._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__1tdb11b6vn4qm._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__1ti5-6okt7fur._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__1w_ga9n2lj53n._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__1xe_98y-j38aq._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__1z9kl-irij2lu._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__1zmoy4u_xb_yi._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__1zq2zv2ogn3ot._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__202mmzv3u-hk1._.js +0 -3
- package/server/.next/server/chunks/[root-of-the-server]__20tvyorpg49kd._.js +0 -3
- package/server/.next/server/chunks/_04oi0m63biyjd._.js +0 -3
- package/server/.next/server/chunks/_0bki3kju_1u1f._.js +0 -3
- package/server/.next/server/chunks/_0djze-128wsu0._.js +0 -3
- package/server/.next/server/chunks/_0hm72d9am2vfs._.js +0 -3
- package/server/.next/server/chunks/_1nuny071s602h._.js +0 -3
- package/server/.next/server/chunks/_1sx70w_rurjin._.js +0 -3
- package/server/.next/server/chunks/_1tl0532dffdm-._.js +0 -3
- package/server/.next/server/chunks/src_0frmhaaejchbk._.js +0 -3
- package/server/.next/server/chunks/src_0kihmyo3yghxy._.js +0 -3
- package/server/.next/server/chunks/src_16t2uefmdlh8d._.js +0 -3
- package/server/.next/server/chunks/src_17j4dgvb7rx7k._.js +0 -3
- package/server/.next/server/chunks/src_20xyhmuf0y6_v._.js +0 -3
- package/server/.next/server/chunks/src_lib_0hw2g5g295xx0._.js +0 -12
- package/server/.next/server/chunks/src_lib_1hveabvnpk83x._.js +0 -12
- package/server/.next/server/chunks/src_lib_collector_deploy-days_ts_087kwe68m4i93._.js +0 -3
- package/server/.next/server/chunks/src_lib_notify_lang_ts_1r2w02ctaky7e._.js +0 -3
- package/server/.next/server/chunks/ssr/[root-of-the-server]__01o65-2jgmg9x._.js +0 -3
- package/server/.next/server/chunks/ssr/[root-of-the-server]__0q7rssq_3unbc._.js +0 -3
- package/server/.next/server/chunks/ssr/[root-of-the-server]__11yadiuejywcz._.js +0 -3
- package/server/.next/server/chunks/ssr/_0j_qqta7rirh5._.js +0 -3
- package/server/.next/server/chunks/ssr/src_09q8lx_19nta6._.js +0 -3
- package/server/.next/static/chunks/10y41_ed7ty6e.js +0 -1
- package/server/.next/static/chunks/16gt7hkgltvf7.js +0 -1
- package/server/.next/static/chunks/1sjgdu3r0baj-.js +0 -1
- package/server/.next/static/chunks/1velx-cd3d5y1.js +0 -1
- package/server/.next/static/chunks/1xydxxektmjgr.js +0 -1
- package/server/.next/static/chunks/2jflssspiz3-i.js +0 -1
- /package/server/.next/static/{NUZVcU60U-vXVedu_GB0w → GBOxoOLq1PhjMCzrjHGdg}/_buildManifest.js +0 -0
- /package/server/.next/static/{NUZVcU60U-vXVedu_GB0w → GBOxoOLq1PhjMCzrjHGdg}/_clientMiddlewareManifest.js +0 -0
- /package/server/.next/static/{NUZVcU60U-vXVedu_GB0w → GBOxoOLq1PhjMCzrjHGdg}/_ssgManifest.js +0 -0
|
@@ -2,6 +2,6 @@ module.exports=[719825,a=>{"use strict";var b=a.i(137936),c=a.i(118558),d=a.i(60
|
|
|
2
2
|
begin
|
|
3
3
|
${a.map(a=>` ${a}`).join("\n")}
|
|
4
4
|
end
|
|
5
|
-
$watchpost$;`,ac=[`revoke select on all tables in schema public from ${X};`,`alter default privileges for role postgres in schema public revoke select on tables from ${X};`,`revoke usage on schema public from ${X};`,`revoke connect on database postgres from ${X};`,`revoke pg_read_all_stats from ${X};`,`alter role ${X} nologin;`].map(a=>`begin ${a} exception when others then null; end;`);var ad=a.i(367623);let ae={target:async function(a){let b=await (0,ad.i)(a);if(!b||"supabase"!==b.provider)return null;let c=await (0,P.p)(a,"supabase_project");return c&&c.resource.externalId===b.externalId?{ref:b.externalId,token:c.token,paused:"paused"===b.state}:null},pooler:(a,b)=>V(a,b),run:(a,b,c,d)=>T(a,b,c,d),access:(a,b)=>W(a,b),save:(a,b,c)=>(0,ad.o)(a,b,!1,c),alias:async a=>(0,I.X)(await (0,J.e)(),a),password:()=>(function(a=g.randomBytes){return a(32).toString("base64url")})(),verifier:a=>(function(a,b=(0,g.randomBytes)(16),c=4096){let d=(0,g.pbkdf2Sync)(a.normalize("NFKC"),b,c,32,"sha256"),e=(0,g.createHash)("sha256").update(_(d,"Client Key")).digest(),f=_(d,"Server Key");return`SCRAM-SHA-256$${c}:${b.toString("base64")}$${e.toString("base64")}:${f.toString("base64")}`})(a),sleep:a=>new Promise(b=>setTimeout(b,a))},af="That Supabase project is no longer watched, or its token can't be read.",ag="This project is paused. Restore it first, then add SQL access.",ah=new Set([{code:"28P01"},{code:"08006"},{code:"CONNECT_TIMEOUT"}].map(Y.E));function ai(a){if("scope"===a.kind){let b;return b=a.missing??["database_write"],`This project's token can't set the role up (missing ${b.join(", ")}). It needs Database: Read-write and Connection pooling: Read; replace the token on Connections, or create the role by hand below.`}return a.error}async function aj(a,b=ae){if(!(0,n.f)(a))return{can:!1,reason:"other",error:"Something in that request wasn't valid."};let c=await b.target(a);return c?c.paused?{can:!1,reason:"other",error:ag}:b.access(c.token,c.ref):{can:!1,reason:"other",error:af}}async function ak(a,b,c=ae){if(!(0,n.f)(a))return{ok:!1,error:"Something in that request wasn't valid."};let d=await c.target(a);if(!d)return{ok:!1,error:af};if(d.paused)return{ok:!1,error:ag};let e=await c.pooler(d.token,d.ref);if(!e.ok)return{ok:!1,error:ai(e)};let f=c.password(),g=function(a,b,c){if(!Z.k.test(b))return{ok:!1,error:"This project's ref doesn't look right."};if(!$.test(c))return{ok:!1,error:"The generated password isn't valid."};let d=a.filter(a=>!a.database_type||"PRIMARY"===a.database_type),e=d.map(a=>(a.db_host??"").toLowerCase()).find(a=>Z.J.test(a));if(!e)return{ok:!1,error:"This project has no shared Supavisor pooler host (…pooler.supabase.com). Use the manual steps."};let f=d.find(a=>a.db_name&&/^[A-Za-z_][A-Za-z0-9_]{0,62}$/.test(a.db_name))?.db_name??"postgres";return{ok:!0,dsn:`postgresql://${X}.${b}:${encodeURIComponent(c)}@${e}:6543/${f}?sslmode=require`}}(e.data,d.ref,f);if(!g.ok)return{ok:!1,error:g.error};let h=await c.alias(a),i={kind:"err",message:`SQL access automatic setup failed \xb7 ${h}`,resourceId:a},j=async()=>(await c.run(d.token,d.ref,ab(ac),!1)).ok,k=await c.run(d.token,d.ref,ab(function(a){if(!aa.test(a))throw Error("bad verifier");return[`if not exists (select 1 from pg_catalog.pg_roles where rolname = '${X}') then create role ${X} login password '${a}'; else alter role ${X} with login password '${a}'; end if;`,`alter role ${X} set default_transaction_read_only = on;`,`alter role ${X} set statement_timeout = '5s';`,`grant connect on database postgres to ${X};`,`grant usage on schema public to ${X};`,`grant select on all tables in schema public to ${X};`,`alter default privileges for role postgres in schema public grant select on tables to ${X};`,`begin grant pg_read_all_stats to ${X}; exception when others then null; end;`]}(c.verifier(f))),!1);if(!k.ok){if("transient"===k.kind&&void 0===k.status){let a=await j();return{ok:!1,error:`${k.error} ${a?"Any grants it may have given were revoked.":`Check the ${X} role in the Supabase SQL Editor.`}`,audit:i}}return{ok:!1,error:ai(k),audit:i}}let l={ok:!1,error:"Not checked."};for(let d=0;d<3&&(d>0&&await c.sleep(2e3),!(l=await c.save(a,g.dsn,b)).ok&&ah.has(l.error));d++);if(!l.ok){let a=await j();return{ok:!1,error:`The new role didn't pass the read-only check, so nothing was saved: ${l.error} ${a?`Its grants were revoked and its login turned off (the role ${X} stays; nothing was dropped).`:`Revoking its grants failed too: run "revoke all on all tables in schema public from ${X}; alter role ${X} nologin;" in the Supabase SQL Editor.`}`,audit:i}}return{ok:!0,message:`SQL access created for ${h}: read-only role ${X} checked and saved.`,audit:{kind:"ok",message:`SQL access created automatically for ${h} (read-only role ${X})`,resourceId:a}}}var al=a.i(75105),am=a.i(312573),an=a.i(323878),ao=a.i(530175),ap=a.i(713095);let aq={requireActionMember:e.g};async function ar(a,b){if(a)try{await (0,f.f)({kind:a.kind,message:a.message,detail:a.detail,resourceId:a.resourceId,actorUserId:b.userId})}catch{console.warn("audit event failed")}}let as=(a,b,c)=>async()=>{let d=await (0,an.C)(a,b.id);return d.allowed?null:`Too many ${c}. Try again in ${(0,am.H)(d.retryAfter)}.`};async function at(a,b,c){return(0,d.F)("owner",async d=>{if(!(0,n.f)(a)||"boolean"!=typeof c)return{ok:!1,error:al.w};let e=(0,ao.E)(b);if(!e.ok)return{ok:!1,error:e.error,fieldErrors:{sql:e.error}};let f=await (0,ad.A)(a,e.text,c,as(am.t.sqlRun,d,"runs"));if(await ar(f.audit,d),!f.ok)return{ok:!1,error:f.error,...f.needsWake?{data:{needsWake:!0}}:{}};let{columns:g,rows:h,rowCount:i,truncated:j,durationMs:k}=f.result;return{ok:!0,data:{run:{columns:g,rows:h,rowCount:i,truncated:j,durationMs:k}}}},aq)}async function au(a,b){if(!a.ok)return{ok:!1,error:a.error,..."needsWake"in a&&a.needsWake?{data:{needsWake:!0}}:{}};if(a.audit)try{await (0,f.f)({kind:"ok",...a.audit,actorUserId:b.userId})}catch{console.warn("audit event failed")}return(0,c.refresh)(),{ok:!0,message:a.message}}async function av(a,b,c){return(0,d.F)("owner",async d=>{if(!(0,n.f)(a)||"string"!=typeof b||"boolean"!=typeof c)return{ok:!1,error:al.w};if(!b.trim())return{ok:!1,error:"Paste a connection string.",fieldErrors:{dsn:"Paste a connection string."}};let e=await as(am.t.credential,d,"connection tests")();return e?{ok:!1,error:e}:au(await (0,ad.o)(a,b,c,d.userId),d)},aq)}async function aw(a){return(0,d.F)("owner",async b=>{if(!(0,n.f)(a))return{ok:!1,error:al.w};let c=await as(am.t.credential,b,"connection tests")();return c?{ok:!1,error:c}:{ok:!0,data:await aj(a)}},aq)}async function ax(a){return(0,d.F)("owner",async b=>{if(!(0,n.f)(a))return{ok:!1,error:al.w};let d=await (0,P.q)(b.id,"sql-auto",a);if(d)return{ok:!1,error:d};let e=await ak(a,b.userId);if(e.audit)try{await (0,f.f)({kind:e.audit.kind,message:e.audit.message,resourceId:e.audit.resourceId,actorUserId:b.userId})}catch{console.warn("audit event failed")}return e.ok?((0,c.refresh)(),{ok:!0,message:e.message}):{ok:!1,error:e.error}},aq)}async function ay(a){return(0,d.F)("owner",async b=>{if(!(0,n.f)(a))return{ok:!1,error:al.w};let c=await as(am.t.monitorWrite,b,"changes")();return c?{ok:!1,error:c}:au(await (0,ad.y)(a),b)},aq)}async function az(a){return(0,d.F)("owner",async b=>{if(!(0,n.f)(a))return{ok:!1,error:al.w};let c=await as(am.t.firestoreQuery,b,"Firestore queries")();if(c)return{ok:!1,error:c};let d=await N(a);return d.ok?{ok:!0,data:{collections:d.ids,more:d.more}}:{ok:!1,error:d.error}},aq)}async function aA(a,b){return(0,d.F)("owner",async c=>{if(!(0,n.f)(a))return{ok:!1,error:al.w};let d=await O(a,b,as(am.t.firestoreQuery,c,"Firestore queries"));return await ar(d.audit,c),d.ok?{ok:!0,data:{run:d.result}}:{ok:!1,error:d.error}},aq)}(0,ap.ensureServerEntryExports)([at,av,aw,ax,ay,az,aA]),(0,b.registerServerReference)(at,"
|
|
5
|
+
$watchpost$;`,ac=[`revoke select on all tables in schema public from ${X};`,`alter default privileges for role postgres in schema public revoke select on tables from ${X};`,`revoke usage on schema public from ${X};`,`revoke connect on database postgres from ${X};`,`revoke pg_read_all_stats from ${X};`,`alter role ${X} nologin;`].map(a=>`begin ${a} exception when others then null; end;`);var ad=a.i(367623);let ae={target:async function(a){let b=await (0,ad.i)(a);if(!b||"supabase"!==b.provider)return null;let c=await (0,P.p)(a,"supabase_project");return c&&c.resource.externalId===b.externalId?{ref:b.externalId,token:c.token,paused:"paused"===b.state}:null},pooler:(a,b)=>V(a,b),run:(a,b,c,d)=>T(a,b,c,d),access:(a,b)=>W(a,b),save:(a,b,c)=>(0,ad.o)(a,b,!1,c),alias:async a=>(0,I.X)(await (0,J.e)(),a),password:()=>(function(a=g.randomBytes){return a(32).toString("base64url")})(),verifier:a=>(function(a,b=(0,g.randomBytes)(16),c=4096){let d=(0,g.pbkdf2Sync)(a.normalize("NFKC"),b,c,32,"sha256"),e=(0,g.createHash)("sha256").update(_(d,"Client Key")).digest(),f=_(d,"Server Key");return`SCRAM-SHA-256$${c}:${b.toString("base64")}$${e.toString("base64")}:${f.toString("base64")}`})(a),sleep:a=>new Promise(b=>setTimeout(b,a))},af="That Supabase project is no longer watched, or its token can't be read.",ag="This project is paused. Restore it first, then add SQL access.",ah=new Set([{code:"28P01"},{code:"08006"},{code:"CONNECT_TIMEOUT"}].map(Y.E));function ai(a){if("scope"===a.kind){let b;return b=a.missing??["database_write"],`This project's token can't set the role up (missing ${b.join(", ")}). It needs Database: Read-write and Connection pooling: Read; replace the token on Connections, or create the role by hand below.`}return a.error}async function aj(a,b=ae){if(!(0,n.f)(a))return{can:!1,reason:"other",error:"Something in that request wasn't valid."};let c=await b.target(a);return c?c.paused?{can:!1,reason:"other",error:ag}:b.access(c.token,c.ref):{can:!1,reason:"other",error:af}}async function ak(a,b,c=ae){if(!(0,n.f)(a))return{ok:!1,error:"Something in that request wasn't valid."};let d=await c.target(a);if(!d)return{ok:!1,error:af};if(d.paused)return{ok:!1,error:ag};let e=await c.pooler(d.token,d.ref);if(!e.ok)return{ok:!1,error:ai(e)};let f=c.password(),g=function(a,b,c){if(!Z.k.test(b))return{ok:!1,error:"This project's ref doesn't look right."};if(!$.test(c))return{ok:!1,error:"The generated password isn't valid."};let d=a.filter(a=>!a.database_type||"PRIMARY"===a.database_type),e=d.map(a=>(a.db_host??"").toLowerCase()).find(a=>Z.J.test(a));if(!e)return{ok:!1,error:"This project has no shared Supavisor pooler host (…pooler.supabase.com). Use the manual steps."};let f=d.find(a=>a.db_name&&/^[A-Za-z_][A-Za-z0-9_]{0,62}$/.test(a.db_name))?.db_name??"postgres";return{ok:!0,dsn:`postgresql://${X}.${b}:${encodeURIComponent(c)}@${e}:6543/${f}?sslmode=require`}}(e.data,d.ref,f);if(!g.ok)return{ok:!1,error:g.error};let h=await c.alias(a),i={kind:"err",message:`SQL access automatic setup failed \xb7 ${h}`,resourceId:a},j=async()=>(await c.run(d.token,d.ref,ab(ac),!1)).ok,k=await c.run(d.token,d.ref,ab(function(a){if(!aa.test(a))throw Error("bad verifier");return[`if not exists (select 1 from pg_catalog.pg_roles where rolname = '${X}') then create role ${X} login password '${a}'; else alter role ${X} with login password '${a}'; end if;`,`alter role ${X} set default_transaction_read_only = on;`,`alter role ${X} set statement_timeout = '5s';`,`grant connect on database postgres to ${X};`,`grant usage on schema public to ${X};`,`grant select on all tables in schema public to ${X};`,`alter default privileges for role postgres in schema public grant select on tables to ${X};`,`begin grant pg_read_all_stats to ${X}; exception when others then null; end;`]}(c.verifier(f))),!1);if(!k.ok){if("transient"===k.kind&&void 0===k.status){let a=await j();return{ok:!1,error:`${k.error} ${a?"Any grants it may have given were revoked.":`Check the ${X} role in the Supabase SQL Editor.`}`,audit:i}}return{ok:!1,error:ai(k),audit:i}}let l={ok:!1,error:"Not checked."};for(let d=0;d<3&&(d>0&&await c.sleep(2e3),!(l=await c.save(a,g.dsn,b)).ok&&ah.has(l.error));d++);if(!l.ok){let a=await j();return{ok:!1,error:`The new role didn't pass the read-only check, so nothing was saved: ${l.error} ${a?`Its grants were revoked and its login turned off (the role ${X} stays; nothing was dropped).`:`Revoking its grants failed too: run "revoke all on all tables in schema public from ${X}; alter role ${X} nologin;" in the Supabase SQL Editor.`}`,audit:i}}return{ok:!0,message:`SQL access created for ${h}: read-only role ${X} checked and saved.`,audit:{kind:"ok",message:`SQL access created automatically for ${h} (read-only role ${X})`,resourceId:a}}}var al=a.i(75105),am=a.i(312573),an=a.i(323878),ao=a.i(530175),ap=a.i(713095);let aq={requireActionMember:e.g};async function ar(a,b){if(a)try{await (0,f.f)({kind:a.kind,message:a.message,detail:a.detail,resourceId:a.resourceId,actorUserId:b.userId})}catch{console.warn("audit event failed")}}let as=(a,b,c)=>async()=>{let d=await (0,an.C)(a,b.id);return d.allowed?null:`Too many ${c}. Try again in ${(0,am.H)(d.retryAfter)}.`};async function at(a,b,c){return(0,d.F)("owner",async d=>{if(!(0,n.f)(a)||"boolean"!=typeof c)return{ok:!1,error:al.w};let e=(0,ao.E)(b);if(!e.ok)return{ok:!1,error:e.error,fieldErrors:{sql:e.error}};let f=await (0,ad.A)(a,e.text,c,as(am.t.sqlRun,d,"runs"));if(await ar(f.audit,d),!f.ok)return{ok:!1,error:f.error,...f.needsWake?{data:{needsWake:!0}}:{}};let{columns:g,rows:h,rowCount:i,truncated:j,durationMs:k}=f.result;return{ok:!0,data:{run:{columns:g,rows:h,rowCount:i,truncated:j,durationMs:k}}}},aq)}async function au(a,b){if(!a.ok)return{ok:!1,error:a.error,..."needsWake"in a&&a.needsWake?{data:{needsWake:!0}}:{}};if(a.audit)try{await (0,f.f)({kind:"ok",...a.audit,actorUserId:b.userId})}catch{console.warn("audit event failed")}return(0,c.refresh)(),{ok:!0,message:a.message}}async function av(a,b,c){return(0,d.F)("owner",async d=>{if(!(0,n.f)(a)||"string"!=typeof b||"boolean"!=typeof c)return{ok:!1,error:al.w};if(!b.trim())return{ok:!1,error:"Paste a connection string.",fieldErrors:{dsn:"Paste a connection string."}};let e=await as(am.t.credential,d,"connection tests")();return e?{ok:!1,error:e}:au(await (0,ad.o)(a,b,c,d.userId),d)},aq)}async function aw(a){return(0,d.F)("owner",async b=>{if(!(0,n.f)(a))return{ok:!1,error:al.w};let c=await as(am.t.credential,b,"connection tests")();return c?{ok:!1,error:c}:{ok:!0,data:await aj(a)}},aq)}async function ax(a){return(0,d.F)("owner",async b=>{if(!(0,n.f)(a))return{ok:!1,error:al.w};let d=await (0,P.q)(b.id,"sql-auto",a);if(d)return{ok:!1,error:d};let e=await ak(a,b.userId);if(e.audit)try{await (0,f.f)({kind:e.audit.kind,message:e.audit.message,resourceId:e.audit.resourceId,actorUserId:b.userId})}catch{console.warn("audit event failed")}return e.ok?((0,c.refresh)(),{ok:!0,message:e.message}):{ok:!1,error:e.error}},aq)}async function ay(a){return(0,d.F)("owner",async b=>{if(!(0,n.f)(a))return{ok:!1,error:al.w};let c=await as(am.t.monitorWrite,b,"changes")();return c?{ok:!1,error:c}:au(await (0,ad.y)(a),b)},aq)}async function az(a){return(0,d.F)("owner",async b=>{if(!(0,n.f)(a))return{ok:!1,error:al.w};let c=await as(am.t.firestoreQuery,b,"Firestore queries")();if(c)return{ok:!1,error:c};let d=await N(a);return d.ok?{ok:!0,data:{collections:d.ids,more:d.more}}:{ok:!1,error:d.error}},aq)}async function aA(a,b){return(0,d.F)("owner",async c=>{if(!(0,n.f)(a))return{ok:!1,error:al.w};let d=await O(a,b,as(am.t.firestoreQuery,c,"Firestore queries"));return await ar(d.audit,c),d.ok?{ok:!0,data:{run:d.result}}:{ok:!1,error:d.error}},aq)}(0,ap.ensureServerEntryExports)([at,av,aw,ax,ay,az,aA]),(0,b.registerServerReference)(at,"70092a0ef07ac722fb93db9df6df3a3ff437030f4b",null),(0,b.registerServerReference)(av,"70283f53c4e0066535528036521e1198244c5d75a6",null),(0,b.registerServerReference)(aw,"402c2b9b5dc67b0a320e86a40a4360f34c83a66c1f",null),(0,b.registerServerReference)(ax,"401f9f587ff420e4e3bf14a75d64072caee00a946b",null),(0,b.registerServerReference)(ay,"402552ed7de502a456f0f5251db6cd192ef96a1929",null),(0,b.registerServerReference)(az,"402861b36154a5fef57bf6a0cfd1c902cd133e13f5",null),(0,b.registerServerReference)(aA,"60d72bfad7ad7a9f4554fd0981b65af274d65d3ae5",null),a.s(["u",0,ax,"o",0,ay,"L",0,az,"n",0,aA,"S",0,at,"$",0,av,"M",0,aw],719825)}];
|
|
6
6
|
|
|
7
7
|
//# sourceMappingURL=src_app_%28console%29_sql_actions_ts_1oqco02hw-3vp._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
(()=>{"use strict";module.exports=[28358,a=>{var b=a.i(187924),c=a.i(196790),d=a.i(572131),e=a.i(823292),f=a.i(611619),g=a.i(619089),h=a.i(507504),i=a.i(814574),j=a.i(405050);let k=(0,j.createServerReference)("40a4648c60d28bb1491b7dcde7122cea6b1fe4ae6a",j.callServer,void 0,j.findSourceMapURL,"deleteMetricsKey"),l=(0,j.createServerReference)("7072a83be0a679d0ab6c74d1df4cf9cad7233b07fa",j.callServer,void 0,j.findSourceMapURL,"setMetricsKey");function m({id:a,projectRef:f,alias:j,hasKey:k,open:n,onOpenChange:o,trigger:p}){let[q,r]=(0,d.useState)(!1),s=n??q,[t,u]=(0,d.useState)(""),[v,w]=(0,d.useState)(),[x,y]=(0,d.useTransition)();function z(a){x||(u(""),w(void 0),void 0===n&&r(a),o?.(a))}return(0,h.useHoldRefresh)(s),(0,b.jsxs)(i.N,{open:s,onOpenChange:z,children:[p&&(0,b.jsx)(i.a,{render:p}),(0,b.jsxs)(i.d,{className:"gap-0 p-0 sm:max-w-[560px]",showCloseButton:!1,children:[(0,b.jsxs)("div",{className:"flex items-start gap-3 px-[18px] pb-2 pt-4",children:[(0,b.jsx)("span",{className:"grid size-9 shrink-0 place-items-center rounded-lg bg-sunken text-ink-soft",children:(0,b.jsx)(c.f,{size:19})}),(0,b.jsxs)("div",{children:[(0,b.jsxs)(i.F,{className:"text-base",children:[k?"Replace":"Add"," metrics key for ",j]}),(0,b.jsx)(i.C,{className:"mt-0.5 text-[13px] text-ink-soft",children:"CPU, RAM, disk and connections come from Supabase's Metrics API (beta), which needs a Secret API key of this project."})]})]}),(0,b.jsxs)("form",{onSubmit:b=>{b.preventDefault(),y(async()=>{try{let b=await l(a,f,t);if(!b.ok){w(b.fieldErrors?.key??b.error),e.c.error(b.error);return}let c=b.message?.includes("test call failed");e.c.success(`Metrics key saved for ${j}`,{description:c?"The test call failed; the Compute panel shows why.":"CPU shows after the next scrape, in about 5 minutes."}),u(""),z(!1)}catch{e.c.error("Watchbell didn't answer. Check that it's still running, then try again.")}})},children:[(0,b.jsxs)("div",{className:"px-[18px] pt-2 text-[13px] text-ink-soft",children:[(0,b.jsxs)("ol",{className:"mb-3 list-decimal space-y-1 pl-5",children:[(0,b.jsxs)("li",{children:["In Supabase, open ",(0,b.jsx)("b",{className:"font-medium text-ink",children:"Project Settings → API Keys"})," for this project and create a new Secret API key named ",(0,b.jsx)("span",{className:"font-mono text-ink",children:"watchbell-metrics"}),"."]}),(0,b.jsx)("li",{children:"Paste it below. A secret key has full database power, so the console stores it encrypted, never shows it again and only sends it to this project's metrics endpoint."}),(0,b.jsx)("li",{children:"You can revoke it in Supabase at any time; the panel then shows the error and you can add a new one."})]}),(0,b.jsx)(g.O,{id:`mk-${a}`,label:"Secret API key",error:v,help:"Starts with sb_secret_. Saving makes one test call to the metrics endpoint.",children:(0,b.jsx)("input",{id:`mk-${a}`,type:"password",className:`${g.S} font-mono`,autoComplete:"off",spellCheck:!1,placeholder:"sb_secret_…",value:t,onChange:a=>{u(a.target.value),w(void 0)}})})]}),(0,b.jsxs)("div",{className:"flex justify-end gap-2 border-t border-line px-[18px] py-3",children:[(0,b.jsx)(g.K,{type:"button",onClick:()=>z(!1),disabled:x,children:"Cancel"}),(0,b.jsx)(g.K,{type:"submit",variant:"primary",disabled:x||!t.trim(),children:x?"Testing…":k?"Replace key":"Save key"})]})]})]})]})}a.s(["MetricsKeyButtons",0,function({id:a,projectRef:c,alias:d,hasKey:e}){return(0,b.jsxs)("span",{className:"inline-flex gap-1.5",children:[(0,b.jsx)(m,{id:a,projectRef:c,alias:d,hasKey:e,trigger:(0,b.jsx)(g.K,{size:"sm",children:e?"Replace key":"Add metrics key"})}),e&&(0,b.jsx)(f.f,{trigger:(0,b.jsx)(g.K,{size:"sm",variant:"ghost",children:"Remove"}),danger:!0,title:`Remove the metrics key of ${d}?`,cta:"Remove key",body:"The console deletes the stored key and this project's compute history. Revoke the key in Supabase (Project Settings → API Keys) too.",onConfirm:async()=>{let b=await k(a);return b.ok?{ok:!0,message:`Metrics key removed for ${d}.`}:{ok:!1,message:b.error}}})]})},"MetricsKeyDialog",0,m],28358)},103113,a=>{var b=a.i(187924),c=a.i(908161),d=a.i(572131),e=a.i(823292),f=a.i(771378),g=a.i(611619),h=a.i(619089),i=a.i(507504),j=a.i(54901),k=a.i(188406),l=a.i(814574),m=a.i(405050);let n=(0,m.createServerReference)("60e720b75d66defd3a08b803242dba7571f7b88e88",m.callServer,void 0,m.findSourceMapURL,"checkServicesAction"),o=(0,m.createServerReference)("60c1c1b895d6e10e5f490136e6eb73d14d03ceb609",m.callServer,void 0,m.findSourceMapURL,"pauseAction"),p=(0,m.createServerReference)("60219d84741eb3cd2f55b09aa712979e77d25768e7",m.callServer,void 0,m.findSourceMapURL,"restoreAction"),q=(0,m.createServerReference)("603eb3f27494f712f1bff001cf0cfbb02add147eca",m.callServer,void 0,m.findSourceMapURL,"setAutoRestore"),r=(0,m.createServerReference)("600650c70421c607b22cd865cbdfd825b37bea6017",m.callServer,void 0,m.findSourceMapURL,"setKeepActive");var s=a.i(28358);function t({alias:a,account:g,choices:j}){let[k,m]=(0,d.useState)(!1),[n,p]=(0,d.useState)(j.at(-1)?.id??""),[q,r]=(0,d.useTransition)(),s=(0,f.useMask)();(0,i.useHoldRefresh)(k);let u=j.find(a=>a.id===n);return(0,b.jsxs)(l.N,{open:k,onOpenChange:a=>{!q&&(m(a),a&&p(j.at(-1)?.id??""))},children:[(0,b.jsx)(l.a,{render:(0,b.jsx)(h.K,{size:"sm",children:"Restore"})}),(0,b.jsxs)(l.d,{className:"gap-0 p-0 sm:max-w-[560px]",showCloseButton:!1,children:[(0,b.jsxs)("div",{className:"flex items-start gap-3 px-[18px] pb-2 pt-4",children:[(0,b.jsx)("span",{className:"grid size-9 shrink-0 place-items-center rounded-lg bg-sunken text-ink-soft",children:(0,b.jsx)(c.f,{size:19})}),(0,b.jsxs)("div",{children:[(0,b.jsxs)(l.F,{className:"text-base",children:["Restore ",a,"?"]}),(0,b.jsxs)(l.C,{className:"mt-0.5 text-[13px] text-ink-soft",children:["Account ",(0,b.jsx)(f.Masked,{kind:"account",real:g})," already uses both free slots. Pick a project to pause first."]})]})]}),(0,b.jsxs)("div",{className:"px-[18px] pb-2",children:[j.length?(0,b.jsx)("div",{className:"max-h-[260px] overflow-y-auto",children:j.map(a=>(0,b.jsxs)("label",{className:"flex cursor-pointer items-center gap-3 border-b border-line px-1 py-[9px] last:border-b-0 hover:bg-hover",children:[(0,b.jsx)("input",{type:"radio",name:"pause-first",className:"size-4 accent-brand",checked:n===a.id,onChange:()=>p(a.id)}),(0,b.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,b.jsxs)("span",{className:"block truncate",children:["Pause ",a.alias]}),(0,b.jsxs)("span",{className:"block truncate text-[12px] text-ink-faint",children:["Last API traffic ",a.traffic,a.usedBy.length?` \xb7 used by ${a.usedBy.map(a=>s("app",a)).join(", ")}`:""]})]})]},a.id))}):(0,b.jsx)("p",{className:"my-2 text-[13px] text-ink-soft",children:"The console doesn't watch this account's active projects, so pause one in Supabase first."}),(0,b.jsxs)("p",{className:"mb-2 mt-3 text-[13px] text-ink-soft",children:["Apps that use the paused project get errors until you restore it. You can also move ",a," to another account with a free slot instead."]}),(0,b.jsx)("p",{className:"mb-3 text-[13px] text-ink-soft",children:"Restore stays blocked until the project you pause shows Paused (about 2 minutes). Then press Restore again."})]}),(0,b.jsxs)("div",{className:"flex justify-end gap-2 border-t border-line px-[18px] py-3",children:[(0,b.jsx)(h.K,{onClick:()=>m(!1),disabled:q,children:"Cancel"}),(0,b.jsx)(h.K,{variant:"danger",disabled:q||!u,onClick:function(){u&&r(async()=>{try{let b=await o(u.id,u.ref);if(!b.ok)return void e.c.error(b.error);e.c.success("Pause started",{description:`Pausing ${u.alias}. Restore ${a} once ${u.alias} shows Paused, about 2 minutes.`}),m(!1)}catch{e.c.error("Watchbell didn't answer. Check that it's still running, then try again.")}})},children:q?"Working…":"Pause selected"})]})]})]})}let u={keep:(a,b)=>b?`${a}: warning from day 5 without API traffic, and one keep-alive query a day.`:`${a} may pause after 7 idle days.`,autoRestore:(a,b)=>b?`${a} is restored automatically when its account has a free slot.`:`${a} is no longer restored automatically.`};a.s(["ActiveRowMenu",0,function({id:a,projectRef:c,alias:f,label:g,metrics:h,dashboard:i=!0}){let{open:l,dialog:m}=(0,j.W)(),[p,q]=(0,d.useState)(!1);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(k.RowMenu,{label:g,items:[...i?[{label:"Open in Supabase",href:`https://supabase.com/dashboard/project/${encodeURIComponent(c)}`}]:[],{label:"Check services",onSelect:()=>{let b;return b=e.c.loading(`Checking ${f}'s services…`),void n(a,c).then(a=>a.ok?e.c.success(`${f}: services healthy`,{id:b,description:a.message}):e.c.error(`${f}: services`,{id:b,description:a.error})).catch(()=>e.c.error("Watchbell didn't answer. Check that it's still running, then try again.",{id:b}))}},...h?[{label:h.hasKey?"Replace metrics key":"Add metrics key",onSelect:()=>q(!0)}]:[],"---",{label:"Pause project",danger:!0,onSelect:()=>l({title:`Pause ${f}?`,body:"Supabase stops the project in about 2 minutes. Apps that use this database get errors until it's restored (possible for 1 year). Pausing frees one of this account's 2 free slots. Nothing is deleted.",cta:"Pause project",danger:!0,run:async()=>{let b;return(b=`Pausing ${f}. It takes about 2 minutes.`,a=>a.ok?{ok:!0,message:b}:a)(await o(a,c))}})}]}),m,h&&(0,b.jsx)(s.MetricsKeyDialog,{id:a,projectRef:c,alias:f,hasKey:h.hasKey,open:p,onOpenChange:q})]})},"KeepActiveBoxes",0,function({id:a,alias:c,keep:f,autoRestore:g,owner:h,sent:i}){let[j,k]=(0,d.useState)({keep:f,autoRestore:g}),[l,m]=(0,d.useTransition)(),n=(d,f)=>(0,b.jsxs)("label",{className:"flex items-center gap-1.5 text-[13px]",title:h?void 0:"Owner only",children:[(0,b.jsx)("input",{type:"checkbox",className:"size-4 accent-brand",checked:j[d],disabled:!h||l,onChange:b=>{var f;return f=b.target.checked,void(k({...j,[d]:f}),m(async()=>{try{let b=await ("keep"===d?r:q)(a,f);if(!b.ok){k(j),e.c.error(b.error);return}e.c.success("Keep active saved",{description:u[d](c,f)})}catch{k(j),e.c.error("Watchbell didn't answer. Check that it's still running, then try again.")}}))}}),f]});return(0,b.jsxs)("div",{children:[(0,b.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[n("keep","Keep active"),n("autoRestore","Auto-restore")]}),i&&(0,b.jsxs)("div",{className:"text-[12px] text-ink-faint",children:["Keep-alive sent ",i]})]})},"RestoreButton",0,function({id:a,projectRef:c,alias:d,account:e,slotsLeft:f,choices:i}){return f>0?(0,b.jsx)(g.f,{trigger:(0,b.jsx)(h.K,{size:"sm",children:"Restore"}),title:`Restore ${d}?`,body:"Supabase brings the project back in about 2 minutes. Apps that use it start working again after that.",cta:"Restore",onConfirm:async()=>{let b=await p(a,c);return b.ok?{ok:!0,message:`Restoring ${d}. It takes about 2 minutes.`}:{ok:!1,message:b.error}}}):(0,b.jsx)(t,{alias:d,account:e,choices:i})}],103113)}]})();
|
|
1
|
+
(()=>{"use strict";module.exports=[28358,a=>{var b=a.i(187924),c=a.i(196790),d=a.i(572131),e=a.i(823292),f=a.i(611619),g=a.i(619089),h=a.i(507504),i=a.i(814574),j=a.i(405050);let k=(0,j.createServerReference)("406daad3c75f79c7638176ade10447bf75144727de",j.callServer,void 0,j.findSourceMapURL,"deleteMetricsKey"),l=(0,j.createServerReference)("70bac5908960ef0fa3efaded29c7d4d69d291aa93d",j.callServer,void 0,j.findSourceMapURL,"setMetricsKey");function m({id:a,projectRef:f,alias:j,hasKey:k,open:n,onOpenChange:o,trigger:p}){let[q,r]=(0,d.useState)(!1),s=n??q,[t,u]=(0,d.useState)(""),[v,w]=(0,d.useState)(),[x,y]=(0,d.useTransition)();function z(a){x||(u(""),w(void 0),void 0===n&&r(a),o?.(a))}return(0,h.useHoldRefresh)(s),(0,b.jsxs)(i.N,{open:s,onOpenChange:z,children:[p&&(0,b.jsx)(i.a,{render:p}),(0,b.jsxs)(i.d,{className:"gap-0 p-0 sm:max-w-[560px]",showCloseButton:!1,children:[(0,b.jsxs)("div",{className:"flex items-start gap-3 px-[18px] pb-2 pt-4",children:[(0,b.jsx)("span",{className:"grid size-9 shrink-0 place-items-center rounded-lg bg-sunken text-ink-soft",children:(0,b.jsx)(c.f,{size:19})}),(0,b.jsxs)("div",{children:[(0,b.jsxs)(i.F,{className:"text-base",children:[k?"Replace":"Add"," metrics key for ",j]}),(0,b.jsx)(i.C,{className:"mt-0.5 text-[13px] text-ink-soft",children:"CPU, RAM, disk and connections come from Supabase's Metrics API (beta), which needs a Secret API key of this project."})]})]}),(0,b.jsxs)("form",{onSubmit:b=>{b.preventDefault(),y(async()=>{try{let b=await l(a,f,t);if(!b.ok){w(b.fieldErrors?.key??b.error),e.c.error(b.error);return}let c=b.message?.includes("test call failed");e.c.success(`Metrics key saved for ${j}`,{description:c?"The test call failed; the Compute panel shows why.":"CPU shows after the next scrape, in about 5 minutes."}),u(""),z(!1)}catch{e.c.error("Watchbell didn't answer. Check that it's still running, then try again.")}})},children:[(0,b.jsxs)("div",{className:"px-[18px] pt-2 text-[13px] text-ink-soft",children:[(0,b.jsxs)("ol",{className:"mb-3 list-decimal space-y-1 pl-5",children:[(0,b.jsxs)("li",{children:["In Supabase, open ",(0,b.jsx)("b",{className:"font-medium text-ink",children:"Project Settings → API Keys"})," for this project and create a new Secret API key named ",(0,b.jsx)("span",{className:"font-mono text-ink",children:"watchbell-metrics"}),"."]}),(0,b.jsx)("li",{children:"Paste it below. A secret key has full database power, so the console stores it encrypted, never shows it again and only sends it to this project's metrics endpoint."}),(0,b.jsx)("li",{children:"You can revoke it in Supabase at any time; the panel then shows the error and you can add a new one."})]}),(0,b.jsx)(g.O,{id:`mk-${a}`,label:"Secret API key",error:v,help:"Starts with sb_secret_. Saving makes one test call to the metrics endpoint.",children:(0,b.jsx)("input",{id:`mk-${a}`,type:"password",className:`${g.S} font-mono`,autoComplete:"off",spellCheck:!1,placeholder:"sb_secret_…",value:t,onChange:a=>{u(a.target.value),w(void 0)}})})]}),(0,b.jsxs)("div",{className:"flex justify-end gap-2 border-t border-line px-[18px] py-3",children:[(0,b.jsx)(g.K,{type:"button",onClick:()=>z(!1),disabled:x,children:"Cancel"}),(0,b.jsx)(g.K,{type:"submit",variant:"primary",disabled:x||!t.trim(),children:x?"Testing…":k?"Replace key":"Save key"})]})]})]})]})}a.s(["MetricsKeyButtons",0,function({id:a,projectRef:c,alias:d,hasKey:e}){return(0,b.jsxs)("span",{className:"inline-flex gap-1.5",children:[(0,b.jsx)(m,{id:a,projectRef:c,alias:d,hasKey:e,trigger:(0,b.jsx)(g.K,{size:"sm",children:e?"Replace key":"Add metrics key"})}),e&&(0,b.jsx)(f.f,{trigger:(0,b.jsx)(g.K,{size:"sm",variant:"ghost",children:"Remove"}),danger:!0,title:`Remove the metrics key of ${d}?`,cta:"Remove key",body:"The console deletes the stored key and this project's compute history. Revoke the key in Supabase (Project Settings → API Keys) too.",onConfirm:async()=>{let b=await k(a);return b.ok?{ok:!0,message:`Metrics key removed for ${d}.`}:{ok:!1,message:b.error}}})]})},"MetricsKeyDialog",0,m],28358)},103113,a=>{var b=a.i(187924),c=a.i(908161),d=a.i(572131),e=a.i(823292),f=a.i(771378),g=a.i(611619),h=a.i(619089),i=a.i(507504),j=a.i(54901),k=a.i(188406),l=a.i(814574),m=a.i(405050);let n=(0,m.createServerReference)("60f2edb4fa00826373c811f0ef6738d1fd917ed29e",m.callServer,void 0,m.findSourceMapURL,"checkServicesAction"),o=(0,m.createServerReference)("60a16ab7a4061fa55736080b407b8b257739008134",m.callServer,void 0,m.findSourceMapURL,"pauseAction"),p=(0,m.createServerReference)("601f1e4774d4c75c8810522c5877d5aad527a67ce5",m.callServer,void 0,m.findSourceMapURL,"restoreAction"),q=(0,m.createServerReference)("60f2882ae55f5e49fca9104eb7eec3624d1986dc13",m.callServer,void 0,m.findSourceMapURL,"setAutoRestore"),r=(0,m.createServerReference)("60926f0b655f14f93c3acc4d6b43009065272830ee",m.callServer,void 0,m.findSourceMapURL,"setKeepActive");var s=a.i(28358);function t({alias:a,account:g,choices:j}){let[k,m]=(0,d.useState)(!1),[n,p]=(0,d.useState)(j.at(-1)?.id??""),[q,r]=(0,d.useTransition)(),s=(0,f.useMask)();(0,i.useHoldRefresh)(k);let u=j.find(a=>a.id===n);return(0,b.jsxs)(l.N,{open:k,onOpenChange:a=>{!q&&(m(a),a&&p(j.at(-1)?.id??""))},children:[(0,b.jsx)(l.a,{render:(0,b.jsx)(h.K,{size:"sm",children:"Restore"})}),(0,b.jsxs)(l.d,{className:"gap-0 p-0 sm:max-w-[560px]",showCloseButton:!1,children:[(0,b.jsxs)("div",{className:"flex items-start gap-3 px-[18px] pb-2 pt-4",children:[(0,b.jsx)("span",{className:"grid size-9 shrink-0 place-items-center rounded-lg bg-sunken text-ink-soft",children:(0,b.jsx)(c.f,{size:19})}),(0,b.jsxs)("div",{children:[(0,b.jsxs)(l.F,{className:"text-base",children:["Restore ",a,"?"]}),(0,b.jsxs)(l.C,{className:"mt-0.5 text-[13px] text-ink-soft",children:["Account ",(0,b.jsx)(f.Masked,{kind:"account",real:g})," already uses both free slots. Pick a project to pause first."]})]})]}),(0,b.jsxs)("div",{className:"px-[18px] pb-2",children:[j.length?(0,b.jsx)("div",{className:"max-h-[260px] overflow-y-auto",children:j.map(a=>(0,b.jsxs)("label",{className:"flex cursor-pointer items-center gap-3 border-b border-line px-1 py-[9px] last:border-b-0 hover:bg-hover",children:[(0,b.jsx)("input",{type:"radio",name:"pause-first",className:"size-4 accent-brand",checked:n===a.id,onChange:()=>p(a.id)}),(0,b.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,b.jsxs)("span",{className:"block truncate",children:["Pause ",a.alias]}),(0,b.jsxs)("span",{className:"block truncate text-[12px] text-ink-faint",children:["Last API traffic ",a.traffic,a.usedBy.length?` \xb7 used by ${a.usedBy.map(a=>s("app",a)).join(", ")}`:""]})]})]},a.id))}):(0,b.jsx)("p",{className:"my-2 text-[13px] text-ink-soft",children:"The console doesn't watch this account's active projects, so pause one in Supabase first."}),(0,b.jsxs)("p",{className:"mb-2 mt-3 text-[13px] text-ink-soft",children:["Apps that use the paused project get errors until you restore it. You can also move ",a," to another account with a free slot instead."]}),(0,b.jsx)("p",{className:"mb-3 text-[13px] text-ink-soft",children:"Restore stays blocked until the project you pause shows Paused (about 2 minutes). Then press Restore again."})]}),(0,b.jsxs)("div",{className:"flex justify-end gap-2 border-t border-line px-[18px] py-3",children:[(0,b.jsx)(h.K,{onClick:()=>m(!1),disabled:q,children:"Cancel"}),(0,b.jsx)(h.K,{variant:"danger",disabled:q||!u,onClick:function(){u&&r(async()=>{try{let b=await o(u.id,u.ref);if(!b.ok)return void e.c.error(b.error);e.c.success("Pause started",{description:`Pausing ${u.alias}. Restore ${a} once ${u.alias} shows Paused, about 2 minutes.`}),m(!1)}catch{e.c.error("Watchbell didn't answer. Check that it's still running, then try again.")}})},children:q?"Working…":"Pause selected"})]})]})]})}let u={keep:(a,b)=>b?`${a}: warning from day 5 without API traffic, and one keep-alive query a day.`:`${a} may pause after 7 idle days.`,autoRestore:(a,b)=>b?`${a} is restored automatically when its account has a free slot.`:`${a} is no longer restored automatically.`};a.s(["ActiveRowMenu",0,function({id:a,projectRef:c,alias:f,label:g,metrics:h,dashboard:i=!0}){let{open:l,dialog:m}=(0,j.W)(),[p,q]=(0,d.useState)(!1);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(k.RowMenu,{label:g,items:[...i?[{label:"Open in Supabase",href:`https://supabase.com/dashboard/project/${encodeURIComponent(c)}`}]:[],{label:"Check services",onSelect:()=>{let b;return b=e.c.loading(`Checking ${f}'s services…`),void n(a,c).then(a=>a.ok?e.c.success(`${f}: services healthy`,{id:b,description:a.message}):e.c.error(`${f}: services`,{id:b,description:a.error})).catch(()=>e.c.error("Watchbell didn't answer. Check that it's still running, then try again.",{id:b}))}},...h?[{label:h.hasKey?"Replace metrics key":"Add metrics key",onSelect:()=>q(!0)}]:[],"---",{label:"Pause project",danger:!0,onSelect:()=>l({title:`Pause ${f}?`,body:"Supabase stops the project in about 2 minutes. Apps that use this database get errors until it's restored (possible for 1 year). Pausing frees one of this account's 2 free slots. Nothing is deleted.",cta:"Pause project",danger:!0,run:async()=>{let b;return(b=`Pausing ${f}. It takes about 2 minutes.`,a=>a.ok?{ok:!0,message:b}:a)(await o(a,c))}})}]}),m,h&&(0,b.jsx)(s.MetricsKeyDialog,{id:a,projectRef:c,alias:f,hasKey:h.hasKey,open:p,onOpenChange:q})]})},"KeepActiveBoxes",0,function({id:a,alias:c,keep:f,autoRestore:g,owner:h,sent:i}){let[j,k]=(0,d.useState)({keep:f,autoRestore:g}),[l,m]=(0,d.useTransition)(),n=(d,f)=>(0,b.jsxs)("label",{className:"flex items-center gap-1.5 text-[13px]",title:h?void 0:"Owner only",children:[(0,b.jsx)("input",{type:"checkbox",className:"size-4 accent-brand",checked:j[d],disabled:!h||l,onChange:b=>{var f;return f=b.target.checked,void(k({...j,[d]:f}),m(async()=>{try{let b=await ("keep"===d?r:q)(a,f);if(!b.ok){k(j),e.c.error(b.error);return}e.c.success("Keep active saved",{description:u[d](c,f)})}catch{k(j),e.c.error("Watchbell didn't answer. Check that it's still running, then try again.")}}))}}),f]});return(0,b.jsxs)("div",{children:[(0,b.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[n("keep","Keep active"),n("autoRestore","Auto-restore")]}),i&&(0,b.jsxs)("div",{className:"text-[12px] text-ink-faint",children:["Keep-alive sent ",i]})]})},"RestoreButton",0,function({id:a,projectRef:c,alias:d,account:e,slotsLeft:f,choices:i}){return f>0?(0,b.jsx)(g.f,{trigger:(0,b.jsx)(h.K,{size:"sm",children:"Restore"}),title:`Restore ${d}?`,body:"Supabase brings the project back in about 2 minutes. Apps that use it start working again after that.",cta:"Restore",onConfirm:async()=>{let b=await p(a,c);return b.ok?{ok:!0,message:`Restoring ${d}. It takes about 2 minutes.`}:{ok:!1,message:b.error}}}):(0,b.jsx)(t,{alias:d,account:e,choices:i})}],103113)}]})();
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=src_app_%28console%29_supabase_0ib3m2ch9gu-4._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[[758173,a=>{var b=a.i(211857);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call MetricsKeyButtons() from the server but MetricsKeyButtons is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/app/(console)/supabase/metrics-key-dialog.tsx","MetricsKeyButtons");(0,b.registerClientReference)(function(){throw Error("Attempted to call MetricsKeyDialog() from the server but MetricsKeyDialog is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/app/(console)/supabase/metrics-key-dialog.tsx","MetricsKeyDialog"),a.s(["MetricsKeyButtons",0,c])},140698,a=>{var b=a.i(758173);a.n(b)},491641,a=>{var b=a.i(907997),c=a.i(175038),d=a.i(395936),e=a.i(701702),f=a.i(803681),g=a.i(959581),h=a.i(685865),i=a.i(154756),j=a.i(954296),k=a.i(686251),l=a.i(791444),m=a.i(109307),n=a.i(532620),o=a.i(560954),p=a.i(612990),q=a.i(863858),r=a.i(371289),s=a.i(658932),t=a.i(367623),u=a.i(367247),v=a.i(245710),w=a.i(139138),x=a.i(887923),y=a.i(715208),z=a.i(556987),A=a.i(505237),B=a.i(179806),C=a.i(252302),D=a.i(293167),E=a.i(140698);let F="text-[12px] text-ink-faint";function G({blocks:a,owner:c}){return a.length?(0,b.jsxs)(f.N,{title:"Compute",meta:(0,b.jsx)(j.Src,{kind:"api",children:"Metrics API · each collector run"}),children:[(0,b.jsx)("p",{className:"mb-3 text-[12.5px] text-ink-soft",children:"From Supabase's Metrics API (beta) with a per-project Secret API key the owner adds. Bars are now; lines and stacks are hourly averages over 24 h. Egress and monthly active users aren't readable per project through the Management API: see Usage in the Supabase dashboard."}),(0,b.jsx)("div",{className:"flex flex-col divide-y divide-line",children:a.map(a=>(0,b.jsx)(H,{b:a,owner:c},a.id))})]}):null}function H({b:a,owner:c}){let d=a.panel,e="none"!==d.kind;return(0,b.jsxs)("div",{className:"py-3 first:pt-0 last:pb-0",children:[(0,b.jsxs)("div",{className:"mb-2 flex flex-wrap items-center gap-x-3 gap-y-1",children:[(0,b.jsx)(i.F,{kind:"db",name:a.name,dbId:a.id}),"ok"===d.kind&&(0,b.jsxs)("span",{className:(0,w.f)(F,d.stale&&"text-warn"),children:["as of ",d.asOf,d.stale?" · not updating":""]}),c&&(0,b.jsx)("span",{className:"ml-auto",children:(0,b.jsx)(E.MetricsKeyButtons,{id:a.id,projectRef:a.ref,alias:a.alias,hasKey:e})})]}),"none"===d.kind&&(0,b.jsxs)("p",{className:"text-[13px] text-ink-soft",children:[a.paused?"Paused: no compute to read. ":"","No metrics key yet",c?". Add one to see CPU, RAM, disk and connections.":". An owner can add one."]}),"waiting"===d.kind&&(0,b.jsx)("p",{className:"text-[13px] text-ink-soft",children:d.note}),"ok"===d.kind&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"grid grid-cols-2 gap-x-6 gap-y-3 min-[1001px]:grid-cols-4",children:d.gauges.map(a=>(0,b.jsxs)("div",{className:"min-w-0",children:[(0,b.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,b.jsx)("span",{className:"text-[12.5px] text-ink-soft",children:a.label}),(0,b.jsx)("span",{className:"ml-auto font-mono text-[15px] font-semibold",children:a.value})]}),(0,b.jsx)(f.e,{pct:a.pct??0,tone:a.tone}),(0,b.jsx)("div",{className:"mt-1.5",children:(0,b.jsx)(C.t,{values:a.series,width:160,height:28,fluid:!0,label:`${a.label}, hourly average over the last 24 hours`})}),(0,b.jsx)("div",{className:F,children:a.peak??"24 h"})]},a.label))}),(d.memory||d.commit)&&(0,b.jsxs)("div",{className:"mt-4 grid grid-cols-1 gap-x-6 gap-y-4 min-[1001px]:grid-cols-[minmax(0,2fr)_minmax(0,1fr)]",children:[d.memory&&(0,b.jsxs)("div",{className:"min-w-0",children:[(0,b.jsxs)("div",{className:"mb-1.5 flex flex-wrap items-baseline gap-x-3 gap-y-0.5",children:[(0,b.jsx)("span",{className:"text-[12.5px] text-ink-soft",children:"Memory"}),(0,b.jsxs)("span",{className:"ml-auto font-mono text-[12.5px]",children:[d.memory.now.used," used · ",d.memory.now.cache," cache + buffers",d.memory.now.swap?` \xb7 ${d.memory.now.swap} swap`:""," · of ",d.memory.now.total]})]}),(0,b.jsx)(C.T,{bars:d.memory.bars,parts:d.memory.parts,height:56,max:d.memory.max,label:`Memory, hourly average over the last 24 hours, of ${d.memory.now.total} RAM`})]}),d.commit&&(0,b.jsxs)("div",{className:"min-w-0",children:[(0,b.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,b.jsx)("span",{className:"text-[12.5px] text-ink-soft",children:"Memory commitment"}),d.commit.tone&&(0,b.jsx)(D.e,{severity:"err"===d.commit.tone?"critical":"warning"}),(0,b.jsx)("span",{className:"ml-auto font-mono text-[13px] font-semibold",children:d.commit.value})]}),(0,b.jsx)(f.e,{pct:Math.min(100,d.commit.pct),tone:d.commit.tone}),(0,b.jsx)("div",{className:"mt-1.5",children:(0,b.jsx)(C.t,{values:d.commit.series,width:160,height:28,fluid:!0,label:"Memory commitment, hourly average over the last 24 hours"})}),(0,b.jsxs)("div",{className:F,children:[d.commit.peak??"24 h"," · memory promised to processes, of the limit before the kernel refuses more"]})]})]}),d.error&&(0,b.jsxs)("p",{className:"mt-2 text-[12.5px] text-warn",children:["Last scrape failed: ",d.error]})]})]})}var I=a.i(228796),J=a.i(722061),K=a.i(221802);let L="text-[12px] text-ink-faint";async function M({searchParams:a}){let C=await (0,m.I)(),{create:D}=await a,E=new Date,F=(0,A.z)(C.role),[H,N,O]=await Promise.all([(0,n.R)("supabase_project"),(0,n.V)(),(0,n.e)()]),P=(0,y.Y)(H,E,O),Q=(0,y.d)(N),R=(0,y.i)(P),S="owner"===C.role,[T,U,V,W]=await Promise.all([(0,o.A)(P.map(a=>a.id)),(0,u.d)(P.map(a=>a.id),E),S?(0,t.Q)(P.map(a=>a.id)):new Set,(0,r.r)()?(0,p.H)():Promise.resolve(null)]),X=P.filter(a=>S||U.has(a.id)).map(a=>({id:a.id,name:a.name,alias:a.alias,ref:a.ref,paused:a.paused,panel:(0,B.j)(U.get(a.id),E)}));return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(h.AutoRefresh,{at:E.getTime()}),(0,b.jsx)(f.L,{crumbs:[{label:"Database"},{label:"Supabase"}],title:"Supabase",sub:"Read from Supabase's Management API, so watching never wakes your databases.",more:"Database size is read once a day, and only while a project is already active. Keep active (owners, per project) warns from day 5 without API traffic and sends one keep-alive query a day. Auto-restore brings a paused project back only when its account has a free slot.",actions:"owner"===C.role?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(d.default,{href:"/connections",className:(0,f.R)(),children:"Manage accounts"}),(0,b.jsx)(I.CreateButton,{type:"supabase_project",target:"",targetName:"Supabase",label:"New project"})]}):void 0}),(0,b.jsx)(J.f,{member:C,types:["supabase_project"],focus:D??null}),Q.length>0&&(0,b.jsxs)("div",{className:"grid grid-cols-1 gap-4 min-[1001px]:grid-cols-3",children:[Q.map(a=>(0,b.jsxs)(f.N,{title:(0,b.jsxs)(b.Fragment,{children:["Account ",(0,b.jsx)(e.Masked,{kind:"account",real:a.account})]}),children:[(0,b.jsxs)("span",{className:"text-[26px] font-semibold tracking-tight",children:[a.used,(0,b.jsxs)("small",{className:"ml-1 text-[13px] font-normal text-ink-soft",children:["of ",a.total," free slots"]})]}),(0,b.jsx)(f.e,{pct:Math.min(a.used,a.total)/a.total*100,tone:0===a.left?"warn":void 0}),(0,b.jsxs)("p",{className:"mt-2 text-[12.5px] text-ink-soft",children:["Paused projects don't use a slot. Counted from the projects this token can see",a.planUnknown?"; plan unknown, counted as free":"","."]})]},a.account)),W&&(0,b.jsx)(s.f,{pool:W,owner:S}),(0,b.jsxs)(f.N,{title:"Storage",children:[(0,b.jsxs)("span",{className:"text-[26px] font-semibold tracking-tight",children:[R.text,(0,b.jsxs)("small",{className:"ml-1 text-[13px] font-normal text-ink-soft",children:["across ",R.count," project",1===R.count?"":"s"]})]}),(0,b.jsx)("p",{className:"mt-2 text-[12.5px] text-ink-soft",children:"Free limit is 500 MB per project."})]})]}),(0,b.jsx)(f.N,{flush:!0,children:0===P.length?(0,b.jsx)(f.k,{icon:c.f,title:"No Supabase projects watched yet",action:"owner"===C.role?(0,b.jsx)(d.default,{href:"/connections",className:(0,f.R)({size:"sm"}),children:"Open connections"}):void 0,children:"owner"===C.role?"Connect a Supabase account, then press Sync and tick the projects to watch.":"An owner picks the projects to watch in Connections."}):(0,b.jsx)(g.ListFilter,{placeholder:"Filter by name",states:[["ok","Active"],["paused","Paused"]],groups:[...new Set(P.map(a=>a.account))].sort(),head:["Project","Account",(0,b.jsxs)("span",{children:["Status",(0,b.jsx)(j.Src,{kind:"api"})]},"s"),(0,b.jsxs)("span",{children:["Database size",(0,b.jsx)(j.Src,{kind:"api",children:"API · daily"})]},"z"),(0,b.jsxs)("span",{children:["Last API traffic",(0,b.jsx)(j.Src,{kind:"api"})]},"t"),(0,b.jsxs)("span",{children:["Auto-pause risk",(0,b.jsx)(j.Src,{kind:"calc"})]},"r"),"Used by",(0,b.jsxs)("span",{children:["Keep active",(0,b.jsx)(j.Src,{kind:"calc",children:"Owner"})]},"k"),""],rows:P.map(a=>{var c,d;let e,g,h;return{key:a.id,state:a.status.state,group:a.account,text:(0,z.h)([a.alias,(0,z.G)(a.account),a.status.label,a.risk.text,...a.usedBy.map(a=>a.name)],[a.name,a.account]),row:(0,b.jsxs)("tr",{className:(0,w.f)(l.C,a.stale&&"opacity-60"),children:[(0,b.jsxs)("td",{className:l.z,children:[(0,b.jsx)(i.F,{kind:"db",name:a.name,dbId:a.id}),(0,b.jsx)("div",{className:L,children:a.sub})]}),(0,b.jsx)("td",{className:l.z,children:(0,b.jsx)(i.c,{name:a.account})}),(0,b.jsxs)("td",{className:l.z,children:[(0,b.jsx)(k.F,{state:a.status.state,children:a.status.label}),a.since&&(0,b.jsxs)("div",{className:L,children:["since ",a.since]})]}),(0,b.jsx)("td",{className:l.z,children:a.size?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("span",{className:"font-mono",children:a.size.text})," ",(0,b.jsx)("span",{className:"text-ink-faint",children:"/ 500 MB"}),(0,b.jsx)(f.e,{pct:a.size.pct,tone:a.size.pct>=80?"warn":void 0}),(0,b.jsxs)("div",{className:L,children:["as of ",a.size.asOf]})]}):(0,b.jsx)("span",{className:(0,w.f)(L,"whitespace-normal"),children:a.sizeNote})}),(0,b.jsx)("td",{className:(0,w.f)(l.z,"text-ink-soft"),title:a.trafficNote??void 0,children:a.traffic}),(0,b.jsxs)("td",{className:(0,w.f)(l.z,l.M),children:[(0,b.jsx)(k.F,{state:a.risk.state,children:a.risk.text}),a.risk.note&&(0,b.jsx)("div",{className:L,children:a.risk.note})]}),(0,b.jsx)("td",{className:l.z,children:a.usedBy.length?a.usedBy.map(a=>(0,b.jsx)("div",{children:(0,b.jsx)(i.F,{kind:"app",name:a.name,href:`/apps/${a.id}`})},a.id)):(0,b.jsx)("span",{className:"text-ink-faint",children:"Not linked"})}),(0,b.jsx)("td",{className:(0,w.f)(l.z,l.M),children:(0,b.jsx)(K.KeepActiveBoxes,{id:a.id,alias:a.alias,owner:S,...(c=a.id,e=T.get(c),{keep:e?.keep??!1,autoRestore:e?.autoRestore??!1,sent:e?.keep&&e.lastKeepAliveAt?(0,v.$)(e.lastKeepAliveAt,E):null})})}),(0,b.jsxs)("td",{className:l.z,children:[S&&!a.paused&&(0,b.jsx)("div",{className:"mb-1",children:(0,b.jsx)(x.SqlAccessButtons,{id:a.id,alias:a.alias,provider:"supabase",connected:V.has(a.id)})}),F&&(a.paused?(0,b.jsx)(K.RestoreButton,{id:a.id,projectRef:a.ref,alias:a.alias,account:a.account,slotsLeft:(g=a.account,Q.find(a=>a.account===g)?.left??1),choices:(d=a.account,h=new Set(Q.find(a=>a.account===d)?.activeIds??[]),P.filter(a=>h.has(a.id)&&!a.paused).map(a=>({id:a.id,ref:a.ref,alias:a.alias,traffic:a.traffic,usedBy:a.usedBy.map(a=>a.name)})))}):(0,b.jsx)(K.ActiveRowMenu,{id:a.id,projectRef:a.ref,alias:a.alias,label:(0,A.J)(a.alias),metrics:S?{hasKey:U.has(a.id)}:void 0,dashboard:(0,q.f)()}))]})]})}})})}),(0,b.jsx)(G,{blocks:X,owner:S})]})}a.s(["default",0,M,"maxDuration",0,60],491641)},841701,a=>{var b=a.i(211857);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call ActiveRowMenu() from the server but ActiveRowMenu is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/app/(console)/supabase/row-actions.tsx","ActiveRowMenu"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call KeepActiveBoxes() from the server but KeepActiveBoxes is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/app/(console)/supabase/row-actions.tsx","KeepActiveBoxes"),e=(0,b.registerClientReference)(function(){throw Error("Attempted to call RestoreButton() from the server but RestoreButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/app/(console)/supabase/row-actions.tsx","RestoreButton");a.s(["ActiveRowMenu",0,c,"KeepActiveBoxes",0,d,"RestoreButton",0,e])},221802,a=>{var b=a.i(841701);a.n(b)}],587058,function(a){a.n(a.i(491641))}];
|
|
1
|
+
module.exports=[[758173,a=>{var b=a.i(211857);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call MetricsKeyButtons() from the server but MetricsKeyButtons is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/app/(console)/supabase/metrics-key-dialog.tsx","MetricsKeyButtons");(0,b.registerClientReference)(function(){throw Error("Attempted to call MetricsKeyDialog() from the server but MetricsKeyDialog is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/app/(console)/supabase/metrics-key-dialog.tsx","MetricsKeyDialog"),a.s(["MetricsKeyButtons",0,c])},140698,a=>{var b=a.i(758173);a.n(b)},491641,a=>{var b=a.i(907997),c=a.i(175038),d=a.i(395936),e=a.i(701702),f=a.i(803681),g=a.i(959581),h=a.i(685865),i=a.i(154756),j=a.i(954296),k=a.i(686251),l=a.i(791444),m=a.i(109307),n=a.i(532620),o=a.i(560954),p=a.i(612990),q=a.i(863858),r=a.i(371289),s=a.i(658932),t=a.i(367623),u=a.i(367247),v=a.i(245710),w=a.i(139138),x=a.i(887923),y=a.i(715208),z=a.i(556987),A=a.i(505237),B=a.i(179806),C=a.i(252302),D=a.i(293167),E=a.i(140698);let F="text-[12px] text-ink-faint";function G({blocks:a,owner:c}){return a.length?(0,b.jsxs)(f.N,{title:"Compute",meta:(0,b.jsx)(j.Src,{kind:"api",children:"Metrics API · each collector run"}),children:[(0,b.jsx)("p",{className:"mb-3 text-[12.5px] text-ink-soft",children:"From Supabase's Metrics API (beta) with a per-project Secret API key the owner adds. Bars are now; lines and stacks are hourly averages over 24 h. Egress and monthly active users aren't readable per project through the Management API: see Usage in the Supabase dashboard."}),(0,b.jsx)("div",{className:"flex flex-col divide-y divide-line",children:a.map(a=>(0,b.jsx)(H,{b:a,owner:c},a.id))})]}):null}function H({b:a,owner:c}){let d=a.panel,e="none"!==d.kind;return(0,b.jsxs)("div",{className:"py-3 first:pt-0 last:pb-0",children:[(0,b.jsxs)("div",{className:"mb-2 flex flex-wrap items-center gap-x-3 gap-y-1",children:[(0,b.jsx)(i.F,{kind:"db",name:a.name,dbId:a.id}),"ok"===d.kind&&(0,b.jsxs)("span",{className:(0,w.f)(F,d.stale&&"text-warn"),children:["as of ",d.asOf,d.stale?" · not updating":""]}),c&&(0,b.jsx)("span",{className:"ml-auto",children:(0,b.jsx)(E.MetricsKeyButtons,{id:a.id,projectRef:a.ref,alias:a.alias,hasKey:e})})]}),"none"===d.kind&&(0,b.jsxs)("p",{className:"text-[13px] text-ink-soft",children:[a.paused?"Paused: no compute to read. ":"","No metrics key yet",c?". Add one to see CPU, RAM, disk and connections.":". An owner can add one."]}),"waiting"===d.kind&&(0,b.jsx)("p",{className:"text-[13px] text-ink-soft",children:d.note}),"ok"===d.kind&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"grid grid-cols-2 gap-x-6 gap-y-3 min-[1001px]:grid-cols-4",children:d.gauges.map(a=>(0,b.jsxs)("div",{className:"min-w-0",children:[(0,b.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,b.jsx)("span",{className:"text-[12.5px] text-ink-soft",children:a.label}),(0,b.jsx)("span",{className:"ml-auto font-mono text-[15px] font-semibold",children:a.value})]}),(0,b.jsx)(f.e,{pct:a.pct??0,tone:a.tone}),(0,b.jsx)("div",{className:"mt-1.5",children:(0,b.jsx)(C.t,{values:a.series,width:160,height:28,fluid:!0,label:`${a.label}, hourly average over the last 24 hours`})}),(0,b.jsx)("div",{className:F,children:a.peak??"24 h"})]},a.label))}),(d.memory||d.commit)&&(0,b.jsxs)("div",{className:"mt-4 grid grid-cols-1 gap-x-6 gap-y-4 min-[1001px]:grid-cols-[minmax(0,2fr)_minmax(0,1fr)]",children:[d.memory&&(0,b.jsxs)("div",{className:"min-w-0",children:[(0,b.jsxs)("div",{className:"mb-1.5 flex flex-wrap items-baseline gap-x-3 gap-y-0.5",children:[(0,b.jsx)("span",{className:"text-[12.5px] text-ink-soft",children:"Memory"}),(0,b.jsxs)("span",{className:"ml-auto font-mono text-[12.5px]",children:[d.memory.now.used," used · ",d.memory.now.cache," cache + buffers",d.memory.now.swap?` \xb7 ${d.memory.now.swap} swap`:""," · of ",d.memory.now.total]})]}),(0,b.jsx)(C.T,{bars:d.memory.bars,parts:d.memory.parts,height:56,max:d.memory.max,label:`Memory, hourly average over the last 24 hours, of ${d.memory.now.total} RAM`})]}),d.commit&&(0,b.jsxs)("div",{className:"min-w-0",children:[(0,b.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,b.jsx)("span",{className:"text-[12.5px] text-ink-soft",children:"Memory commitment"}),d.commit.tone&&(0,b.jsx)(D.e,{severity:"err"===d.commit.tone?"critical":"warning"}),(0,b.jsx)("span",{className:"ml-auto font-mono text-[13px] font-semibold",children:d.commit.value})]}),(0,b.jsx)(f.e,{pct:Math.min(100,d.commit.pct),tone:d.commit.tone}),(0,b.jsx)("div",{className:"mt-1.5",children:(0,b.jsx)(C.t,{values:d.commit.series,width:160,height:28,fluid:!0,label:"Memory commitment, hourly average over the last 24 hours"})}),(0,b.jsxs)("div",{className:F,children:[d.commit.peak??"24 h"," · memory promised to processes, of the limit before the kernel refuses more"]}),d.commit.note&&(0,b.jsx)("p",{className:(0,w.f)("mt-1 text-[12.5px]","err"===d.commit.tone?"text-err":"text-ink-soft"),children:d.commit.note})]})]}),d.error&&(0,b.jsxs)("p",{className:"mt-2 text-[12.5px] text-warn",children:["Last scrape failed: ",d.error]})]})]})}var I=a.i(228796),J=a.i(722061),K=a.i(221802);let L="text-[12px] text-ink-faint";async function M({searchParams:a}){let C=await (0,m.I)(),{create:D}=await a,E=new Date,F=(0,A.z)(C.role),[H,N,O]=await Promise.all([(0,n.R)("supabase_project"),(0,n.V)(),(0,n.e)()]),P=(0,y.Y)(H,E,O),Q=(0,y.d)(N),R=(0,y.i)(P),S="owner"===C.role,[T,U,V,W]=await Promise.all([(0,o.A)(P.map(a=>a.id)),(0,u.d)(P.map(a=>a.id),E),S?(0,t.Q)(P.map(a=>a.id)):new Set,(0,r.r)()?(0,p.H)():Promise.resolve(null)]),X=P.filter(a=>S||U.has(a.id)).map(a=>({id:a.id,name:a.name,alias:a.alias,ref:a.ref,paused:a.paused,panel:(0,B.j)(U.get(a.id),E)}));return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(h.AutoRefresh,{at:E.getTime()}),(0,b.jsx)(f.L,{crumbs:[{label:"Database"},{label:"Supabase"}],title:"Supabase",sub:"Read from Supabase's Management API, so watching never wakes your databases.",more:"Database size is read once a day, and only while a project is already active. Keep active (owners, per project) warns from day 5 without API traffic and sends one keep-alive query a day. Auto-restore brings a paused project back only when its account has a free slot.",actions:"owner"===C.role?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(d.default,{href:"/connections",className:(0,f.R)(),children:"Manage accounts"}),(0,b.jsx)(I.CreateButton,{type:"supabase_project",target:"",targetName:"Supabase",label:"New project"})]}):void 0}),(0,b.jsx)(J.f,{member:C,types:["supabase_project"],focus:D??null}),Q.length>0&&(0,b.jsxs)("div",{className:"grid grid-cols-1 gap-4 min-[1001px]:grid-cols-3",children:[Q.map(a=>(0,b.jsxs)(f.N,{title:(0,b.jsxs)(b.Fragment,{children:["Account ",(0,b.jsx)(e.Masked,{kind:"account",real:a.account})]}),children:[(0,b.jsxs)("span",{className:"text-[26px] font-semibold tracking-tight",children:[a.used,(0,b.jsxs)("small",{className:"ml-1 text-[13px] font-normal text-ink-soft",children:["of ",a.total," free slots"]})]}),(0,b.jsx)(f.e,{pct:Math.min(a.used,a.total)/a.total*100,tone:0===a.left?"warn":void 0}),(0,b.jsxs)("p",{className:"mt-2 text-[12.5px] text-ink-soft",children:["Paused projects don't use a slot. Counted from the projects this token can see",a.planUnknown?"; plan unknown, counted as free":"","."]})]},a.account)),W&&(0,b.jsx)(s.f,{pool:W,owner:S}),(0,b.jsxs)(f.N,{title:"Storage",children:[(0,b.jsxs)("span",{className:"text-[26px] font-semibold tracking-tight",children:[R.text,(0,b.jsxs)("small",{className:"ml-1 text-[13px] font-normal text-ink-soft",children:["across ",R.count," project",1===R.count?"":"s"]})]}),(0,b.jsx)("p",{className:"mt-2 text-[12.5px] text-ink-soft",children:"Free limit is 500 MB per project."})]})]}),(0,b.jsx)(f.N,{flush:!0,children:0===P.length?(0,b.jsx)(f.k,{icon:c.f,title:"No Supabase projects watched yet",action:"owner"===C.role?(0,b.jsx)(d.default,{href:"/connections",className:(0,f.R)({size:"sm"}),children:"Open connections"}):void 0,children:"owner"===C.role?"Connect a Supabase account, then press Sync and tick the projects to watch.":"An owner picks the projects to watch in Connections."}):(0,b.jsx)(g.ListFilter,{placeholder:"Filter by name",states:[["ok","Active"],["paused","Paused"]],groups:[...new Set(P.map(a=>a.account))].sort(),head:["Project","Account",(0,b.jsxs)("span",{children:["Status",(0,b.jsx)(j.Src,{kind:"api"})]},"s"),(0,b.jsxs)("span",{children:["Database size",(0,b.jsx)(j.Src,{kind:"api",children:"API · daily"})]},"z"),(0,b.jsxs)("span",{children:["Last API traffic",(0,b.jsx)(j.Src,{kind:"api"})]},"t"),(0,b.jsxs)("span",{children:["Auto-pause risk",(0,b.jsx)(j.Src,{kind:"calc"})]},"r"),"Used by",(0,b.jsxs)("span",{children:["Keep active",(0,b.jsx)(j.Src,{kind:"calc",children:"Owner"})]},"k"),""],rows:P.map(a=>{var c,d;let e,g,h;return{key:a.id,state:a.status.state,group:a.account,text:(0,z.h)([a.alias,(0,z.G)(a.account),a.status.label,a.risk.text,...a.usedBy.map(a=>a.name)],[a.name,a.account]),row:(0,b.jsxs)("tr",{className:(0,w.f)(l.C,a.stale&&"opacity-60"),children:[(0,b.jsxs)("td",{className:l.z,children:[(0,b.jsx)(i.F,{kind:"db",name:a.name,dbId:a.id}),(0,b.jsx)("div",{className:L,children:a.sub})]}),(0,b.jsx)("td",{className:l.z,children:(0,b.jsx)(i.c,{name:a.account})}),(0,b.jsxs)("td",{className:l.z,children:[(0,b.jsx)(k.F,{state:a.status.state,children:a.status.label}),a.since&&(0,b.jsxs)("div",{className:L,children:["since ",a.since]})]}),(0,b.jsx)("td",{className:l.z,children:a.size?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("span",{className:"font-mono",children:a.size.text})," ",(0,b.jsx)("span",{className:"text-ink-faint",children:"/ 500 MB"}),(0,b.jsx)(f.e,{pct:a.size.pct,tone:a.size.pct>=80?"warn":void 0}),(0,b.jsxs)("div",{className:L,children:["as of ",a.size.asOf]})]}):(0,b.jsx)("span",{className:(0,w.f)(L,"whitespace-normal"),children:a.sizeNote})}),(0,b.jsx)("td",{className:(0,w.f)(l.z,"text-ink-soft"),title:a.trafficNote??void 0,children:a.traffic}),(0,b.jsxs)("td",{className:(0,w.f)(l.z,l.M),children:[(0,b.jsx)(k.F,{state:a.risk.state,children:a.risk.text}),a.risk.note&&(0,b.jsx)("div",{className:L,children:a.risk.note})]}),(0,b.jsx)("td",{className:l.z,children:a.usedBy.length?a.usedBy.map(a=>(0,b.jsx)("div",{children:(0,b.jsx)(i.F,{kind:"app",name:a.name,href:`/apps/${a.id}`})},a.id)):(0,b.jsx)("span",{className:"text-ink-faint",children:"Not linked"})}),(0,b.jsx)("td",{className:(0,w.f)(l.z,l.M),children:(0,b.jsx)(K.KeepActiveBoxes,{id:a.id,alias:a.alias,owner:S,...(c=a.id,e=T.get(c),{keep:e?.keep??!1,autoRestore:e?.autoRestore??!1,sent:e?.keep&&e.lastKeepAliveAt?(0,v.$)(e.lastKeepAliveAt,E):null})})}),(0,b.jsxs)("td",{className:l.z,children:[S&&!a.paused&&(0,b.jsx)("div",{className:"mb-1",children:(0,b.jsx)(x.SqlAccessButtons,{id:a.id,alias:a.alias,provider:"supabase",connected:V.has(a.id)})}),F&&(a.paused?(0,b.jsx)(K.RestoreButton,{id:a.id,projectRef:a.ref,alias:a.alias,account:a.account,slotsLeft:(g=a.account,Q.find(a=>a.account===g)?.left??1),choices:(d=a.account,h=new Set(Q.find(a=>a.account===d)?.activeIds??[]),P.filter(a=>h.has(a.id)&&!a.paused).map(a=>({id:a.id,ref:a.ref,alias:a.alias,traffic:a.traffic,usedBy:a.usedBy.map(a=>a.name)})))}):(0,b.jsx)(K.ActiveRowMenu,{id:a.id,projectRef:a.ref,alias:a.alias,label:(0,A.J)(a.alias),metrics:S?{hasKey:U.has(a.id)}:void 0,dashboard:(0,q.f)()}))]})]})}})})}),(0,b.jsx)(G,{blocks:X,owner:S})]})}a.s(["default",0,M,"maxDuration",0,60],491641)},841701,a=>{var b=a.i(211857);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call ActiveRowMenu() from the server but ActiveRowMenu is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/app/(console)/supabase/row-actions.tsx","ActiveRowMenu"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call KeepActiveBoxes() from the server but KeepActiveBoxes is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/app/(console)/supabase/row-actions.tsx","KeepActiveBoxes"),e=(0,b.registerClientReference)(function(){throw Error("Attempted to call RestoreButton() from the server but RestoreButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/app/(console)/supabase/row-actions.tsx","RestoreButton");a.s(["ActiveRowMenu",0,c,"KeepActiveBoxes",0,d,"RestoreButton",0,e])},221802,a=>{var b=a.i(841701);a.n(b)}],587058,function(a){a.n(a.i(491641))}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=src_app_%28console%29_supabase_1ofufib3-zzt-._.js.map
|
package/server/.next/server/chunks/ssr/src_app_(console)_supabase_pool-actions_ts_0nzd4vwy_9zzx._.js
CHANGED
|
@@ -5,6 +5,6 @@ module.exports=[953685,612990,a=>{"use strict";var b=a.i(137936),c=a.i(118558),d
|
|
|
5
5
|
select state, extract(epoch from now() - state_change)::int as idle_s, extract(epoch from now() - backend_start)::int as age_s,
|
|
6
6
|
left(query, 400) as query
|
|
7
7
|
from pg_stat_activity where usename = current_user and pid <> pg_backend_pid()
|
|
8
|
-
order by state_change asc limit 20`),b=(0,i.f)(a).map(a=>({busy:"idle"!==a.state,idleS:Number(a.idle_s),table:l(a.query),ageS:Number(a.age_s)}));return{used:b.length+1,active:b.filter(a=>a.busy).length+1,conns:b}}catch{return null}}a.s(["Y",0,10,"X",0,15,"R",0,k,"H",0,m,"g",0,a=>({pct:Math.min(100,Math.round(a.used/15*100)),warn:a.used>=10})],612990);var n=a.i(371289),o=a.i(312573),p=a.i(323878),q=a.i(713095);let r={requireActionMember:e.g};async function s(){return(0,d.F)("owner",async a=>{if(!(0,n.r)())return{ok:!1,error:"Not available in this mode."};let b=await (0,p.C)(o.t.monitorWrite,a.id);if(!b.allowed)return{ok:!1,error:`Too many changes. Try again in ${(0,o.H)(b.retryAfter)}.`};let d=await k(1,5);return await (0,f.f)({kind:"ok",message:`Closed ${d.trimmed} idle database connection${1===d.trimmed?"":"s"} (pool ${d.total}/15)`,resourceId:null,actorUserId:a.userId}).catch(()=>console.warn("audit event failed")),(0,c.refresh)(),{ok:!0,message:`Closed ${d.trimmed} idle connection${1===d.trimmed?"":"s"}.`}},r)}async function t(){await s()}(0,q.ensureServerEntryExports)([s,t]),(0,b.registerServerReference)(s,"
|
|
8
|
+
order by state_change asc limit 20`),b=(0,i.f)(a).map(a=>({busy:"idle"!==a.state,idleS:Number(a.idle_s),table:l(a.query),ageS:Number(a.age_s)}));return{used:b.length+1,active:b.filter(a=>a.busy).length+1,conns:b}}catch{return null}}a.s(["Y",0,10,"X",0,15,"R",0,k,"H",0,m,"g",0,a=>({pct:Math.min(100,Math.round(a.used/15*100)),warn:a.used>=10})],612990);var n=a.i(371289),o=a.i(312573),p=a.i(323878),q=a.i(713095);let r={requireActionMember:e.g};async function s(){return(0,d.F)("owner",async a=>{if(!(0,n.r)())return{ok:!1,error:"Not available in this mode."};let b=await (0,p.C)(o.t.monitorWrite,a.id);if(!b.allowed)return{ok:!1,error:`Too many changes. Try again in ${(0,o.H)(b.retryAfter)}.`};let d=await k(1,5);return await (0,f.f)({kind:"ok",message:`Closed ${d.trimmed} idle database connection${1===d.trimmed?"":"s"} (pool ${d.total}/15)`,resourceId:null,actorUserId:a.userId}).catch(()=>console.warn("audit event failed")),(0,c.refresh)(),{ok:!0,message:`Closed ${d.trimmed} idle connection${1===d.trimmed?"":"s"}.`}},r)}async function t(){await s()}(0,q.ensureServerEntryExports)([s,t]),(0,b.registerServerReference)(s,"00aeee1707fe6c4a2d6c55539f29814730751257a2",null),(0,b.registerServerReference)(t,"00c43ae1f509ea8d3c006cd4813b019a54d2d75d85",null),a.s(["w",0,s,"n",0,t],953685)}];
|
|
9
9
|
|
|
10
10
|
//# sourceMappingURL=src_app_%28console%29_supabase_pool-actions_ts_0nzd4vwy_9zzx._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
(()=>{"use strict";module.exports=[320518,a=>{var b=a.i(187924),c=a.i(249490),d=a.i(572131),e=a.i(823292),f=a.i(619089),g=a.i(507504),h=a.i(814574),i=a.i(941881),j=a.i(147474);let k=[30,60,90,180,360];function l(a){return"all"===a.scope?"all":"app"===a.scope?`app:${a.appId}`:`monitor:${a.monitorId}`}var m=a.i(405050);let n=(0,m.createServerReference)("40d2fe77bffafc290224ab85280eee18170cc16d9b",m.callServer,void 0,m.findSourceMapURL,"addWindow"),o=(0,m.createServerReference)("603eb5a87e1a20ef3abcad4342470a6992781fc38b",m.callServer,void 0,m.findSourceMapURL,"editWindow");function p(a){if("edit"===a.mode){let b=a.win;return{target:l(b),weekly:b.weekly,start:(0,j.S)(b.startsAt),durationMin:String(b.durationMin),note:b.note??""}}return{target:"all",weekly:!1,start:(0,j.S)(new Date(36e5*Math.ceil(Date.now()/36e5))),durationMin:"90",note:""}}a.s(["MaintenanceDialog",0,function(a){let[m,q]=(0,d.useState)(!1),r="edit"===a.mode?a.open:m,[s,t]=(0,d.useState)(()=>p(a)),[u,v]=(0,d.useState)({}),[w,x]=(0,d.useTransition)();function y(b){b&&(t(p(a)),v({})),"edit"===a.mode?a.onOpenChange(b):q(b)}(0,g.useHoldRefresh)(r);let{apps:z,monitors:A}=a.options,B="edit"===a.mode?l(a.win):null,C="all"===B||z.some(a=>`app:${a.id}`===B)||A.some(a=>`monitor:${a.id}`===B),D=u.scope??u.targetId;return(0,b.jsxs)(h.N,{open:r,onOpenChange:a=>{w||y(a)},children:["add"===a.mode&&(0,b.jsx)(h.a,{render:(0,b.jsx)(f.K,{children:"Add maintenance window"})}),(0,b.jsxs)(h.d,{className:"gap-0 p-0 sm:max-w-[560px]",showCloseButton:!1,children:[(0,b.jsxs)("div",{className:"flex items-start gap-3 px-[18px] pb-2 pt-4",children:[(0,b.jsx)("span",{className:"grid size-9 shrink-0 place-items-center rounded-lg bg-sunken text-ink-soft",children:(0,b.jsx)(c.f,{size:19})}),(0,b.jsxs)("div",{children:[(0,b.jsx)(h.F,{className:"text-base",children:"add"===a.mode?"Add maintenance window":"Edit maintenance window"}),(0,b.jsxs)(h.C,{className:"mt-0.5 text-[13px] text-ink-soft",children:["Checks keep running, but they are left out of uptime % and open no alerts. ",(0,j.n)()]})]})]}),(0,b.jsxs)("form",{onSubmit:b=>{b.preventDefault(),function(){var b,c;let d={...function(a){if("all"===a)return{scope:"all",targetId:""};let b=/^(app|monitor):(.+)$/.exec(a);return b?{scope:b[1],targetId:b[2]}:{scope:"",targetId:""}}(s.target),start:s.start,durationMin:s.durationMin,weekly:s.weekly,note:s.note},f=function(a){let b={},c="all"===a.scope||"app"===a.scope||"monitor"===a.scope?a.scope:null;c||(b.scope="Pick what it applies to.");let d="string"==typeof a.start?a.start:"",e=(0,j.a)(d);e||(b.start="Pick a start time.");let f=Number(a.durationMin);k.includes(f)||(b.durationMin="Pick how long it lasts.");let g="string"==typeof a.targetId?a.targetId:"";if(c&&"all"!==c&&!(0,i.f)(g)&&(b.targetId="app"===c?"Pick an application.":"Pick a monitor."),Object.keys(b).length||!c||!e)return{ok:!1,fieldErrors:b};let h=("string"==typeof a.note?a.note:"").trim().slice(0,120)||null;return{ok:!0,value:{scope:c,appId:"app"===c?g:null,monitorId:"monitor"===c?g:null,startsAt:e,durationMin:f,weekly:!0===a.weekly,note:h}}}(d);if(!f.ok)return v(f.fieldErrors);(b=f.value,c=new Date,!b.weekly&&b.startsAt.getTime()+6e4*b.durationMin<=c.getTime())?v({start:"That window has already ended."}):(v({}),x(async()=>{let b="add"===a.mode?await n(d):await o(a.win.id,d);if(!b.ok){v(b.fieldErrors??{}),e.c.error(b.error);return}e.c.success("Window saved",{description:b.message}),y(!1)}))}()},children:[(0,b.jsxs)("div",{className:"px-[18px] pt-2",children:[(0,b.jsx)(f.O,{id:"mw-scope",label:"Applies to",error:D,children:(0,b.jsxs)("select",{id:"mw-scope",className:f.S,value:s.target,onChange:a=>t({...s,target:a.target.value}),children:[(0,b.jsx)("option",{value:"all",children:"All monitors"}),"edit"===a.mode&&!C&&B&&(0,b.jsx)("option",{value:B,children:a.win.target}),z.length>0&&(0,b.jsx)("optgroup",{label:"Application",children:z.map(a=>(0,b.jsx)("option",{value:`app:${a.id}`,children:a.name},a.id))}),A.length>0&&(0,b.jsx)("optgroup",{label:"One monitor",children:A.map(a=>(0,b.jsx)("option",{value:`monitor:${a.id}`,children:a.label},a.id))})]})}),(0,b.jsxs)("fieldset",{className:"mb-3.5 flex flex-col gap-[5px]",children:[(0,b.jsx)("legend",{className:"mb-[5px] text-[13px] font-medium",children:"Repeat"}),(0,b.jsx)("div",{className:"flex flex-wrap gap-x-4 gap-y-1.5",children:[[!1,"Once"],[!0,"Every week"]].map(([a,c])=>(0,b.jsxs)("label",{className:"flex items-center gap-1.5 text-[13px]",children:[(0,b.jsx)("input",{type:"radio",name:"mw-rep",className:"size-4 accent-brand",checked:s.weekly===a,onChange:()=>t({...s,weekly:a})}),c]},c))})]}),(0,b.jsxs)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[(0,b.jsx)(f.O,{id:"mw-start",label:"Starts",error:u.start,children:(0,b.jsx)("input",{id:"mw-start",type:"datetime-local",className:f.S,value:s.start,onChange:a=>t({...s,start:a.target.value})})}),(0,b.jsx)(f.O,{id:"mw-len",label:"Lasts",error:u.durationMin,children:(0,b.jsx)("select",{id:"mw-len",className:f.S,value:s.durationMin,onChange:a=>t({...s,durationMin:a.target.value}),children:k.map(a=>{let c,d;return(0,b.jsx)("option",{value:String(a),children:[(c=Math.floor(a/60))?`${c} h`:"",(d=a%60)?`${d} min`:""].filter(Boolean).join(" ")},a)})})})]}),(0,b.jsx)(f.O,{id:"mw-note",label:"Note (optional)",help:"Shown on the public status page if a monitor there is affected.",children:(0,b.jsx)("input",{id:"mw-note",className:f.S,value:s.note,maxLength:120,placeholder:"Moving DNS to Cloudflare",autoComplete:"off",onChange:a=>t({...s,note:a.target.value})})})]}),(0,b.jsxs)("div",{className:"flex flex-wrap items-center justify-end gap-2 border-t border-line px-[18px] py-3",children:[(0,b.jsx)(f.K,{onClick:()=>y(!1),disabled:w,children:"Cancel"}),(0,b.jsx)(f.K,{type:"submit",variant:"primary",disabled:w,children:w?"Saving…":"add"===a.mode?"Add window":"Save"})]})]})]})]})}],320518)},723355,a=>{var b=a.i(187924),c=a.i(572131),d=a.i(611619),e=a.i(188406),f=a.i(742680),g=a.i(405050);let h=(0,g.createServerReference)("40125b849b419ffdc41971aae56dec1e41fb94b896",g.callServer,void 0,g.findSourceMapURL,"removeWindow");var i=a.i(320518);a.s(["MaintenanceMenu",0,function({win:a,options:g}){let[j,k]=(0,c.useState)(!1),[l,m]=(0,c.useState)(!1);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(e.RowMenu,{label:(0,f.J)(a.target,"window"),items:[{label:"Edit window",onSelect:()=>k(!0)},"---",{label:"Delete",danger:!0,onSelect:()=>m(!0)}]}),j&&(0,b.jsx)(i.MaintenanceDialog,{mode:"edit",win:a,options:g,open:!0,onOpenChange:k}),(0,b.jsx)(d.f,{open:l,onOpenChange:m,title:"Delete this maintenance window?",body:"Checks count toward uptime % and open alerts again outside any other window.",cta:"Delete",danger:!0,onConfirm:async()=>{let b=await h(a.id);return{ok:b.ok,message:(b.ok?b.message:b.error)??""}}})]})}],723355)},642823,855771,a=>{var b=a.i(187924),c=a.i(614548),d=a.i(572131),e=a.i(823292),f=a.i(619089),g=a.i(507504),h=a.i(814574),i=a.i(880305),j=a.i(310412),k=a.i(405050);let l=(0,k.createServerReference)("60189c84d4b272b4dd9644a63fc47b6edb3919f9b5",k.callServer,void 0,k.findSourceMapURL,"addHeartbeat"),m=(0,k.createServerReference)("600ef5a170e41848ac11c0112d7f5c0f032859a641",k.callServer,void 0,k.findSourceMapURL,"addMonitor"),n=(0,k.createServerReference)("602eb595a61683220c689aa664d55cc826b40e1da9",k.callServer,void 0,k.findSourceMapURL,"editHeartbeat"),o=(0,k.createServerReference)("606d8d80afa74fa6b414e98729168622e9b6b2abfa",k.callServer,void 0,k.findSourceMapURL,"editMonitor");var p=a.i(771378);function q(a){return null===a?{ok:!1,text:"Couldn't reach the console"}:a>=200&&a<300?{ok:!0,text:`OK \xb7 ${a}`}:404===a?{ok:!1,text:"Not found · 404"}:429===a?{ok:!1,text:"Too many pings · 429"}:{ok:!1,text:`Failed \xb7 ${a}`}}function r({name:a,url:i,onClose:j}){let k=null!==i,[l,m]=(0,d.useState)(!1),[n,o]=(0,d.useState)(null);async function s(){if(i)try{await navigator.clipboard.writeText(i),e.c.success("Copied.")}catch{e.c.error("Couldn't copy. Select the URL and copy it yourself.")}}async function t(a){let b,c=i?(b=/\/api\/ping\/(hb_[0-9a-f]{32})\/?$/.exec(i))?`/api/ping/${b[1]}${"fail"===a?"/fail":""}`:null:null;if(c&&!l){m(!0),o(null);try{let a=await fetch(c,{method:"GET",cache:"no-store"});o(q(a.status))}catch{o(q(null))}finally{m(!1)}}}function u(){o(null),j()}return(0,g.useHoldRefresh)(k),(0,b.jsx)(h.N,{open:k,onOpenChange:a=>{a||u()},children:(0,b.jsxs)(h.d,{className:"gap-0 p-0 sm:max-w-[640px]",showCloseButton:!1,children:[(0,b.jsxs)("div",{className:"flex items-start gap-3 px-[18px] pb-2 pt-4",children:[(0,b.jsx)("span",{className:"grid size-9 shrink-0 place-items-center rounded-lg bg-sunken text-ink-soft",children:(0,b.jsx)(c.f,{size:19})}),(0,b.jsxs)("div",{className:"min-w-0",children:[(0,b.jsxs)(h.F,{className:"text-base",children:["Ping URL for ",(0,b.jsx)(p.Masked,{kind:"text",real:a})]}),(0,b.jsx)(h.C,{className:"mt-0.5 text-[13px] text-ink-soft",children:"Copy it now. It is shown once; the console keeps only a hash. Lost it? Make a new one from the monitor's menu."})]})]}),(0,b.jsxs)("div",{className:"px-[18px] pt-2",children:[(0,b.jsxs)("div",{className:"mb-3 flex items-center gap-1.5",children:[(0,b.jsx)("code",{className:"min-w-0 flex-1 overflow-x-auto whitespace-nowrap rounded-md border border-line bg-sunken px-2 py-1.5 font-mono text-[12.5px]",children:i&&(0,b.jsx)(p.Masked,{kind:"text",real:i,masked:i.replace(/(\/api\/ping\/).*/,"$1••••••")})}),(0,b.jsx)(f.K,{size:"sm",onClick:s,children:"Copy"})]}),(0,b.jsxs)("div",{className:"mb-3.5 flex flex-wrap items-center gap-2",children:[(0,b.jsx)(f.K,{size:"sm",disabled:l,onClick:()=>t("ok"),children:"Send test ping"}),(0,b.jsx)(f.K,{size:"sm",disabled:l,onClick:()=>t("fail"),children:"Test fail"}),(0,b.jsx)("span",{role:"status","aria-live":"polite",className:`text-[13px] ${n?n.ok?"text-ok":"text-err":"text-ink-soft"}`,children:l?"Sending…":n?.text??""})]}),(0,b.jsxs)("div",{className:"mb-3.5 rounded-lg border border-line bg-surface-2 px-3 py-2.5 text-[13px]",children:[(0,b.jsx)("b",{className:"font-medium",children:"From your job"}),(0,b.jsxs)("ul",{className:"mt-1 list-disc pl-[18px] text-ink-soft",children:[(0,b.jsxs)("li",{children:["When it succeeds: ",(0,b.jsx)("span",{className:"font-mono",children:"curl -fsS -m 10 <url>"})]}),(0,b.jsxs)("li",{children:["When it fails: add ",(0,b.jsx)("span",{className:"font-mono",children:"/fail"})," to the URL"]}),(0,b.jsxs)("li",{children:["When it starts (optional): add ",(0,b.jsx)("span",{className:"font-mono",children:"/start"})]})]})]})]}),(0,b.jsx)("div",{className:"flex justify-end gap-2 border-t border-line px-[18px] py-3",children:(0,b.jsx)(f.K,{variant:"primary",onClick:u,children:"Done"})})]})})}a.s(["f",0,r],855771);let s={name:"",periodS:"86400",graceS:"3600"},t=[["http","HTTP check","The collector opens a URL every minute"],["heartbeat","Heartbeat","Your cron job or backup script pings a secret URL when it runs"]];function u(a){if("edit"===a.mode){let b=a.monitor;return{appId:"",kind:b.kind,url:"http"===b.kind?b.url:"",expectedStatus:String(b.expectedStatus),timeoutS:String(Math.round(b.timeoutMs/1e3)),bodyContains:b.bodyContains??"",jsonPath:b.jsonPath??"",jsonEquals:b.jsonEquals??"",name:b.name??"",periodS:String(b.periodS??s.periodS),graceS:String(b.graceS??s.graceS)}}let b=a.apps[0];return{appId:b?.id??"",kind:"http",url:b?`https://${b.domain}/api/health`:"",expectedStatus:"200",timeoutS:"5",bodyContains:"",jsonPath:"",jsonEquals:"",...s}}a.s(["MonitorDialog",0,function(a){let[k,p]=(0,d.useState)(!1),q="edit"===a.mode?a.open:k,[s,v]=(0,d.useState)(()=>u(a)),[w,x]=(0,d.useState)({}),[y,z]=(0,d.useTransition)(),[A,B]=(0,d.useState)(null);function C(b){b&&(v(u(a)),x({})),"edit"===a.mode?a.onOpenChange(b):p(b)}(0,g.useHoldRefresh)(q);let D="add"===a.mode?a.apps:[],E="add"===a.mode&&0===D.length,F="heartbeat"===s.kind,G="add"===a.mode?"HTTP checks run every minute from the collector. Heartbeats wait for your job to ping the console.":F?"Your job pings the console; nothing is fetched.":"Checked every minute from the collector.";return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(h.N,{open:q,onOpenChange:a=>{y||C(a)},children:["add"===a.mode&&(E?(0,b.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,b.jsx)(f.K,{variant:"primary",disabled:!0,children:"Add monitor"}),(0,b.jsx)("span",{className:"text-[12.5px] text-ink-faint",children:"Watch an app first: Connections, then Sync."})]}):(0,b.jsx)(h.a,{render:(0,b.jsx)(f.K,{variant:"primary",children:"Add monitor"})})),(0,b.jsxs)(h.d,{className:"gap-0 p-0 sm:max-w-[640px]",showCloseButton:!1,children:[(0,b.jsxs)("div",{className:"flex items-start gap-3 px-[18px] pb-2 pt-4",children:[(0,b.jsx)("span",{className:"grid size-9 shrink-0 place-items-center rounded-lg bg-sunken text-ink-soft",children:(0,b.jsx)(c.f,{size:19})}),(0,b.jsxs)("div",{children:[(0,b.jsx)(h.F,{className:"text-base",children:"add"===a.mode?"Add monitor":"Edit monitor"}),(0,b.jsx)(h.C,{className:"mt-0.5 text-[13px] text-ink-soft",children:G})]})]}),(0,b.jsxs)("form",{onSubmit:b=>{let c,d;b.preventDefault(),(d=(c="heartbeat"===s.kind)?(0,j.a)(s):(0,j.X)(s)).ok?(x({}),z(async()=>{let b=c?"add"===a.mode?await l(s.appId,s):await n(a.monitor.id,s):"add"===a.mode?await m(s.appId,s):await o(a.monitor.id,s);if(!b.ok){x(b.fieldErrors??{}),e.c.error(b.error);return}e.c.success("add"===a.mode?"Monitor added":"Monitor saved",{description:b.message}),C(!1);let d=b.data&&"pingUrl"in b.data?b.data.pingUrl:null;d&&B({name:s.name.trim(),url:d})})):x(d.fieldErrors)},children:[(0,b.jsxs)("div",{className:"px-[18px] pt-2",children:["add"===a.mode&&(0,b.jsxs)("fieldset",{className:"mb-3.5",children:[(0,b.jsx)("legend",{className:"mb-[5px] text-[13px] font-medium",children:"Type"}),(0,b.jsx)("div",{className:"overflow-hidden rounded-lg border border-line",children:t.map(([a,c,d])=>(0,b.jsxs)("label",{className:"flex cursor-pointer items-start gap-2.5 border-t border-line px-3 py-[9px] first:border-t-0 hover:bg-hover",children:[(0,b.jsx)("input",{type:"radio",name:"mon-kind",value:a,checked:s.kind===a,className:"mt-[3px] accent-brand",onChange:()=>{v({...s,kind:a}),x({})}}),(0,b.jsxs)("span",{children:[c,(0,b.jsx)("small",{className:"block text-xs text-ink-faint",children:d})]})]},a))})]}),(0,b.jsx)(f.O,{id:"mon-app",label:"Application",children:"add"===a.mode?(0,b.jsx)("select",{id:"mon-app",className:f.S,value:s.appId,onChange:a=>{let b=D.find(b=>b.id===a.target.value);v({...s,appId:a.target.value,url:b?`https://${b.domain}/`:s.url})},children:D.map(a=>(0,b.jsx)("option",{value:a.id,children:a.name},a.id))}):(0,b.jsx)("input",{id:"mon-app",className:f.S,value:a.monitor.appName,disabled:!0})}),F?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(f.O,{id:"hb-name",label:"Name",error:w.name,children:(0,b.jsx)("input",{id:"hb-name",className:f.S,value:s.name,placeholder:"backup job",maxLength:80,autoComplete:"off",onChange:a=>v({...s,name:a.target.value})})}),(0,b.jsxs)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[(0,b.jsx)(f.O,{id:"hb-every",label:"Expected every",error:w.periodS,children:(0,b.jsx)("select",{id:"hb-every",className:f.S,value:s.periodS,onChange:a=>v({...s,periodS:a.target.value}),children:i.Q.map(a=>(0,b.jsx)("option",{value:String(a),children:(0,i.v)(a)},a))})}),(0,b.jsx)(f.O,{id:"hb-grace",label:"Grace time",error:w.graceS,children:(0,b.jsx)("select",{id:"hb-grace",className:f.S,value:s.graceS,onChange:a=>v({...s,graceS:a.target.value}),children:i.q.map(a=>(0,b.jsx)("option",{value:String(a),children:(0,i.v)(a)},a))})})]}),(0,b.jsxs)("p",{className:"mb-3 text-[13px] text-ink-soft",children:["Late once the period passes, down after the grace time too.","add"===a.mode?" The ping URL is shown once after you add it.":""]})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(f.O,{id:"mon-url",label:"URL",help:"Must start with https://. A health route that touches nothing heavy works best.",error:w.url,children:(0,b.jsx)("input",{id:"mon-url",className:f.S,value:s.url,autoComplete:"off",spellCheck:!1,onChange:a=>v({...s,url:a.target.value})})}),(0,b.jsxs)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[(0,b.jsx)(f.O,{id:"mon-code",label:"Expected status",error:w.expectedStatus,children:(0,b.jsx)("input",{id:"mon-code",className:f.S,inputMode:"numeric",value:s.expectedStatus,onChange:a=>v({...s,expectedStatus:a.target.value})})}),(0,b.jsx)(f.O,{id:"mon-timeout",label:"Timeout",error:w.timeoutS,children:(0,b.jsx)("select",{id:"mon-timeout",className:f.S,value:s.timeoutS,onChange:a=>v({...s,timeoutS:a.target.value}),children:j.L.map(a=>(0,b.jsxs)("option",{value:String(a),children:[a," s"]},a))})})]}),(0,b.jsx)(f.O,{id:"mon-match",label:"Response must contain (optional)",help:"Plain text, case-sensitive. The first 256 KB of the response is searched and never stored.",error:w.bodyContains,children:(0,b.jsx)("input",{id:"mon-match",className:f.S,value:s.bodyContains??"",placeholder:'e.g. "status":"ok"',autoComplete:"off",spellCheck:!1,onChange:a=>v({...s,bodyContains:a.target.value})})}),(0,b.jsxs)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[(0,b.jsx)(f.O,{id:"mon-jpath",label:"Or JSON field (optional)",error:w.jsonPath,children:(0,b.jsx)("input",{id:"mon-jpath",className:`${f.S} font-mono`,value:s.jsonPath??"",placeholder:"status or checks.db",autoComplete:"off",spellCheck:!1,onChange:a=>v({...s,jsonPath:a.target.value})})}),(0,b.jsx)(f.O,{id:"mon-jeq",label:"Equals",error:w.jsonEquals,children:(0,b.jsx)("input",{id:"mon-jeq",className:`${f.S} font-mono`,value:s.jsonEquals??"",placeholder:"ok",autoComplete:"off",spellCheck:!1,onChange:a=>v({...s,jsonEquals:a.target.value})})})]}),(0,b.jsx)("p",{className:"mb-3 text-[13px] text-ink-soft",children:"Marked down after 3 failed checks in a row. A missing keyword counts as a failed check."})]})]}),(0,b.jsxs)("div",{className:"flex flex-wrap items-center justify-end gap-2 border-t border-line px-[18px] py-3",children:[(0,b.jsx)(f.K,{onClick:()=>C(!1),disabled:y,children:"Cancel"}),(0,b.jsx)(f.K,{type:"submit",variant:"primary",disabled:y,children:y?"Saving…":"add"===a.mode?"Add monitor":"Save"})]})]})]})]}),(0,b.jsx)(r,{name:A?.name??"",url:A?.url??null,onClose:()=>B(null)})]})}],642823)},788831,a=>{var b=a.i(187924),c=a.i(572131),d=a.i(823292),e=a.i(611619),f=a.i(188406),g=a.i(742680),h=a.i(405050);let i=(0,h.createServerReference)("40bdd41fce85dce472e32367f2d409f315937a843d",h.callServer,void 0,h.findSourceMapURL,"checkNow"),j=(0,h.createServerReference)("4095dad3dd3c55ade3cdfdaf3eb86797df6667ad79",h.callServer,void 0,h.findSourceMapURL,"newPingUrl"),k=(0,h.createServerReference)("60b47e03f4cb52e439708ea31ac94249d500ae3056",h.callServer,void 0,h.findSourceMapURL,"pauseMonitor"),l=(0,h.createServerReference)("607974134e5bb197ba0af9063d285b04a33a630a24",h.callServer,void 0,h.findSourceMapURL,"recordTestPingAction"),m=(0,h.createServerReference)("409b6668a310d58a3f7d82b875d708316e0f57cfbe",h.callServer,void 0,h.findSourceMapURL,"removeMonitor");var n=a.i(642823),o=a.i(855771);a.s(["MonitorMenu",0,function({monitor:a}){let[h,p]=(0,c.useState)(!1),[q,r]=(0,c.useState)(!1),[s,t]=(0,c.useState)(!1),[u,v]=(0,c.useState)(null),[,w]=(0,c.useTransition)(),x=(0,c.useRef)(!1),y="heartbeat"===a.kind,z=y?`${a.appName} \xb7 ${a.path}`:`${a.appName}${a.path}`,A=(a,b)=>{if(x.current)return;x.current=!0;let c=b?d.c.loading(b):void 0;w(async()=>{try{let b=await a();b.ok?b.data?.passed===!1?d.c.warning(b.message??"",{id:c}):d.c.success(b.message??"",{id:c}):d.c.error(b.error,{id:c})}catch{d.c.error("Watchbell didn't answer. Check that it's still running, then try again.",{id:c})}finally{x.current=!1}})},B={label:a.ownerPaused?"Resume":"Pause",onSelect:()=>A(()=>k(a.id,!a.ownerPaused))},C=y?{label:"Show ping URL",onSelect:()=>t(!0)}:{label:"Check now",onSelect:()=>A(()=>i(a.id),`Checking ${z}…`)};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(f.RowMenu,{label:(0,g.J)(a.appName,a.path),items:[C,...y?[{label:"Record a test ping: OK",onSelect:()=>A(()=>l(a.id,"ok"))},{label:"Record a test ping: Fail",onSelect:()=>A(()=>l(a.id,"fail"))}]:[],{label:"Edit monitor",onSelect:()=>p(!0)},B,"---",{label:"Delete",danger:!0,onSelect:()=>r(!0)}]}),h&&(0,b.jsx)(n.MonitorDialog,{mode:"edit",monitor:a,open:!0,onOpenChange:p}),(0,b.jsx)(e.f,{open:q,onOpenChange:r,title:`Delete ${z}?`,body:y?"Its ping URL stops working. This can't be undone.":"This can't be undone.",cta:"Delete",danger:!0,onConfirm:async()=>{let b=await m(a.id);return{ok:b.ok,message:(b.ok?b.message:b.error)??""}}}),y&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(e.f,{open:s,onOpenChange:t,title:`New ping URL for ${a.path}?`,body:"Make a new ping URL? The old one stops working, so update your job.",cta:"Make a new URL",onConfirm:async()=>{let b=await j(a.id);return b.ok&&b.data?.pingUrl&&v(b.data.pingUrl),{ok:b.ok,message:(b.ok?b.message:b.error)??""}}}),(0,b.jsx)(o.f,{name:a.path,url:u,onClose:()=>v(null)})]})]})}],788831)}]})();
|
|
1
|
+
(()=>{"use strict";module.exports=[320518,a=>{var b=a.i(187924),c=a.i(249490),d=a.i(572131),e=a.i(823292),f=a.i(619089),g=a.i(507504),h=a.i(814574),i=a.i(941881),j=a.i(147474);let k=[30,60,90,180,360];function l(a){return"all"===a.scope?"all":"app"===a.scope?`app:${a.appId}`:`monitor:${a.monitorId}`}var m=a.i(405050);let n=(0,m.createServerReference)("4006353b5a25ae81ddf142d53f34077db5980f4ab2",m.callServer,void 0,m.findSourceMapURL,"addWindow"),o=(0,m.createServerReference)("60ca1586ad59aeb3422e208e9f2b012f298569870a",m.callServer,void 0,m.findSourceMapURL,"editWindow");function p(a){if("edit"===a.mode){let b=a.win;return{target:l(b),weekly:b.weekly,start:(0,j.S)(b.startsAt),durationMin:String(b.durationMin),note:b.note??""}}return{target:"all",weekly:!1,start:(0,j.S)(new Date(36e5*Math.ceil(Date.now()/36e5))),durationMin:"90",note:""}}a.s(["MaintenanceDialog",0,function(a){let[m,q]=(0,d.useState)(!1),r="edit"===a.mode?a.open:m,[s,t]=(0,d.useState)(()=>p(a)),[u,v]=(0,d.useState)({}),[w,x]=(0,d.useTransition)();function y(b){b&&(t(p(a)),v({})),"edit"===a.mode?a.onOpenChange(b):q(b)}(0,g.useHoldRefresh)(r);let{apps:z,monitors:A}=a.options,B="edit"===a.mode?l(a.win):null,C="all"===B||z.some(a=>`app:${a.id}`===B)||A.some(a=>`monitor:${a.id}`===B),D=u.scope??u.targetId;return(0,b.jsxs)(h.N,{open:r,onOpenChange:a=>{w||y(a)},children:["add"===a.mode&&(0,b.jsx)(h.a,{render:(0,b.jsx)(f.K,{children:"Add maintenance window"})}),(0,b.jsxs)(h.d,{className:"gap-0 p-0 sm:max-w-[560px]",showCloseButton:!1,children:[(0,b.jsxs)("div",{className:"flex items-start gap-3 px-[18px] pb-2 pt-4",children:[(0,b.jsx)("span",{className:"grid size-9 shrink-0 place-items-center rounded-lg bg-sunken text-ink-soft",children:(0,b.jsx)(c.f,{size:19})}),(0,b.jsxs)("div",{children:[(0,b.jsx)(h.F,{className:"text-base",children:"add"===a.mode?"Add maintenance window":"Edit maintenance window"}),(0,b.jsxs)(h.C,{className:"mt-0.5 text-[13px] text-ink-soft",children:["Checks keep running, but they are left out of uptime % and open no alerts. ",(0,j.n)()]})]})]}),(0,b.jsxs)("form",{onSubmit:b=>{b.preventDefault(),function(){var b,c;let d={...function(a){if("all"===a)return{scope:"all",targetId:""};let b=/^(app|monitor):(.+)$/.exec(a);return b?{scope:b[1],targetId:b[2]}:{scope:"",targetId:""}}(s.target),start:s.start,durationMin:s.durationMin,weekly:s.weekly,note:s.note},f=function(a){let b={},c="all"===a.scope||"app"===a.scope||"monitor"===a.scope?a.scope:null;c||(b.scope="Pick what it applies to.");let d="string"==typeof a.start?a.start:"",e=(0,j.a)(d);e||(b.start="Pick a start time.");let f=Number(a.durationMin);k.includes(f)||(b.durationMin="Pick how long it lasts.");let g="string"==typeof a.targetId?a.targetId:"";if(c&&"all"!==c&&!(0,i.f)(g)&&(b.targetId="app"===c?"Pick an application.":"Pick a monitor."),Object.keys(b).length||!c||!e)return{ok:!1,fieldErrors:b};let h=("string"==typeof a.note?a.note:"").trim().slice(0,120)||null;return{ok:!0,value:{scope:c,appId:"app"===c?g:null,monitorId:"monitor"===c?g:null,startsAt:e,durationMin:f,weekly:!0===a.weekly,note:h}}}(d);if(!f.ok)return v(f.fieldErrors);(b=f.value,c=new Date,!b.weekly&&b.startsAt.getTime()+6e4*b.durationMin<=c.getTime())?v({start:"That window has already ended."}):(v({}),x(async()=>{let b="add"===a.mode?await n(d):await o(a.win.id,d);if(!b.ok){v(b.fieldErrors??{}),e.c.error(b.error);return}e.c.success("Window saved",{description:b.message}),y(!1)}))}()},children:[(0,b.jsxs)("div",{className:"px-[18px] pt-2",children:[(0,b.jsx)(f.O,{id:"mw-scope",label:"Applies to",error:D,children:(0,b.jsxs)("select",{id:"mw-scope",className:f.S,value:s.target,onChange:a=>t({...s,target:a.target.value}),children:[(0,b.jsx)("option",{value:"all",children:"All monitors"}),"edit"===a.mode&&!C&&B&&(0,b.jsx)("option",{value:B,children:a.win.target}),z.length>0&&(0,b.jsx)("optgroup",{label:"Application",children:z.map(a=>(0,b.jsx)("option",{value:`app:${a.id}`,children:a.name},a.id))}),A.length>0&&(0,b.jsx)("optgroup",{label:"One monitor",children:A.map(a=>(0,b.jsx)("option",{value:`monitor:${a.id}`,children:a.label},a.id))})]})}),(0,b.jsxs)("fieldset",{className:"mb-3.5 flex flex-col gap-[5px]",children:[(0,b.jsx)("legend",{className:"mb-[5px] text-[13px] font-medium",children:"Repeat"}),(0,b.jsx)("div",{className:"flex flex-wrap gap-x-4 gap-y-1.5",children:[[!1,"Once"],[!0,"Every week"]].map(([a,c])=>(0,b.jsxs)("label",{className:"flex items-center gap-1.5 text-[13px]",children:[(0,b.jsx)("input",{type:"radio",name:"mw-rep",className:"size-4 accent-brand",checked:s.weekly===a,onChange:()=>t({...s,weekly:a})}),c]},c))})]}),(0,b.jsxs)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[(0,b.jsx)(f.O,{id:"mw-start",label:"Starts",error:u.start,children:(0,b.jsx)("input",{id:"mw-start",type:"datetime-local",className:f.S,value:s.start,onChange:a=>t({...s,start:a.target.value})})}),(0,b.jsx)(f.O,{id:"mw-len",label:"Lasts",error:u.durationMin,children:(0,b.jsx)("select",{id:"mw-len",className:f.S,value:s.durationMin,onChange:a=>t({...s,durationMin:a.target.value}),children:k.map(a=>{let c,d;return(0,b.jsx)("option",{value:String(a),children:[(c=Math.floor(a/60))?`${c} h`:"",(d=a%60)?`${d} min`:""].filter(Boolean).join(" ")},a)})})})]}),(0,b.jsx)(f.O,{id:"mw-note",label:"Note (optional)",help:"Shown on the public status page if a monitor there is affected.",children:(0,b.jsx)("input",{id:"mw-note",className:f.S,value:s.note,maxLength:120,placeholder:"Moving DNS to Cloudflare",autoComplete:"off",onChange:a=>t({...s,note:a.target.value})})})]}),(0,b.jsxs)("div",{className:"flex flex-wrap items-center justify-end gap-2 border-t border-line px-[18px] py-3",children:[(0,b.jsx)(f.K,{onClick:()=>y(!1),disabled:w,children:"Cancel"}),(0,b.jsx)(f.K,{type:"submit",variant:"primary",disabled:w,children:w?"Saving…":"add"===a.mode?"Add window":"Save"})]})]})]})]})}],320518)},723355,a=>{var b=a.i(187924),c=a.i(572131),d=a.i(611619),e=a.i(188406),f=a.i(742680),g=a.i(405050);let h=(0,g.createServerReference)("404af73ab290f798edefc20f877f63b8f738a26d95",g.callServer,void 0,g.findSourceMapURL,"removeWindow");var i=a.i(320518);a.s(["MaintenanceMenu",0,function({win:a,options:g}){let[j,k]=(0,c.useState)(!1),[l,m]=(0,c.useState)(!1);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(e.RowMenu,{label:(0,f.J)(a.target,"window"),items:[{label:"Edit window",onSelect:()=>k(!0)},"---",{label:"Delete",danger:!0,onSelect:()=>m(!0)}]}),j&&(0,b.jsx)(i.MaintenanceDialog,{mode:"edit",win:a,options:g,open:!0,onOpenChange:k}),(0,b.jsx)(d.f,{open:l,onOpenChange:m,title:"Delete this maintenance window?",body:"Checks count toward uptime % and open alerts again outside any other window.",cta:"Delete",danger:!0,onConfirm:async()=>{let b=await h(a.id);return{ok:b.ok,message:(b.ok?b.message:b.error)??""}}})]})}],723355)},642823,855771,a=>{var b=a.i(187924),c=a.i(614548),d=a.i(572131),e=a.i(823292),f=a.i(619089),g=a.i(507504),h=a.i(814574),i=a.i(880305),j=a.i(310412),k=a.i(405050);let l=(0,k.createServerReference)("60bf121a26d569bbe2e8bd8c0a1022566522f8641a",k.callServer,void 0,k.findSourceMapURL,"addHeartbeat"),m=(0,k.createServerReference)("60d9f3c78334f59bc69f9fd0cfe922a0b12a4daf5a",k.callServer,void 0,k.findSourceMapURL,"addMonitor"),n=(0,k.createServerReference)("60ad11dda692f123b835534df8db2c1ec2724f1374",k.callServer,void 0,k.findSourceMapURL,"editHeartbeat"),o=(0,k.createServerReference)("60160b67357930aa00a977c5c11af1c0983605cc36",k.callServer,void 0,k.findSourceMapURL,"editMonitor");var p=a.i(771378);function q(a){return null===a?{ok:!1,text:"Couldn't reach the console"}:a>=200&&a<300?{ok:!0,text:`OK \xb7 ${a}`}:404===a?{ok:!1,text:"Not found · 404"}:429===a?{ok:!1,text:"Too many pings · 429"}:{ok:!1,text:`Failed \xb7 ${a}`}}function r({name:a,url:i,onClose:j}){let k=null!==i,[l,m]=(0,d.useState)(!1),[n,o]=(0,d.useState)(null);async function s(){if(i)try{await navigator.clipboard.writeText(i),e.c.success("Copied.")}catch{e.c.error("Couldn't copy. Select the URL and copy it yourself.")}}async function t(a){let b,c=i?(b=/\/api\/ping\/(hb_[0-9a-f]{32})\/?$/.exec(i))?`/api/ping/${b[1]}${"fail"===a?"/fail":""}`:null:null;if(c&&!l){m(!0),o(null);try{let a=await fetch(c,{method:"GET",cache:"no-store"});o(q(a.status))}catch{o(q(null))}finally{m(!1)}}}function u(){o(null),j()}return(0,g.useHoldRefresh)(k),(0,b.jsx)(h.N,{open:k,onOpenChange:a=>{a||u()},children:(0,b.jsxs)(h.d,{className:"gap-0 p-0 sm:max-w-[640px]",showCloseButton:!1,children:[(0,b.jsxs)("div",{className:"flex items-start gap-3 px-[18px] pb-2 pt-4",children:[(0,b.jsx)("span",{className:"grid size-9 shrink-0 place-items-center rounded-lg bg-sunken text-ink-soft",children:(0,b.jsx)(c.f,{size:19})}),(0,b.jsxs)("div",{className:"min-w-0",children:[(0,b.jsxs)(h.F,{className:"text-base",children:["Ping URL for ",(0,b.jsx)(p.Masked,{kind:"text",real:a})]}),(0,b.jsx)(h.C,{className:"mt-0.5 text-[13px] text-ink-soft",children:"Copy it now. It is shown once; the console keeps only a hash. Lost it? Make a new one from the monitor's menu."})]})]}),(0,b.jsxs)("div",{className:"px-[18px] pt-2",children:[(0,b.jsxs)("div",{className:"mb-3 flex items-center gap-1.5",children:[(0,b.jsx)("code",{className:"min-w-0 flex-1 overflow-x-auto whitespace-nowrap rounded-md border border-line bg-sunken px-2 py-1.5 font-mono text-[12.5px]",children:i&&(0,b.jsx)(p.Masked,{kind:"text",real:i,masked:i.replace(/(\/api\/ping\/).*/,"$1••••••")})}),(0,b.jsx)(f.K,{size:"sm",onClick:s,children:"Copy"})]}),(0,b.jsxs)("div",{className:"mb-3.5 flex flex-wrap items-center gap-2",children:[(0,b.jsx)(f.K,{size:"sm",disabled:l,onClick:()=>t("ok"),children:"Send test ping"}),(0,b.jsx)(f.K,{size:"sm",disabled:l,onClick:()=>t("fail"),children:"Test fail"}),(0,b.jsx)("span",{role:"status","aria-live":"polite",className:`text-[13px] ${n?n.ok?"text-ok":"text-err":"text-ink-soft"}`,children:l?"Sending…":n?.text??""})]}),(0,b.jsxs)("div",{className:"mb-3.5 rounded-lg border border-line bg-surface-2 px-3 py-2.5 text-[13px]",children:[(0,b.jsx)("b",{className:"font-medium",children:"From your job"}),(0,b.jsxs)("ul",{className:"mt-1 list-disc pl-[18px] text-ink-soft",children:[(0,b.jsxs)("li",{children:["When it succeeds: ",(0,b.jsx)("span",{className:"font-mono",children:"curl -fsS -m 10 <url>"})]}),(0,b.jsxs)("li",{children:["When it fails: add ",(0,b.jsx)("span",{className:"font-mono",children:"/fail"})," to the URL"]}),(0,b.jsxs)("li",{children:["When it starts (optional): add ",(0,b.jsx)("span",{className:"font-mono",children:"/start"})]})]})]})]}),(0,b.jsx)("div",{className:"flex justify-end gap-2 border-t border-line px-[18px] py-3",children:(0,b.jsx)(f.K,{variant:"primary",onClick:u,children:"Done"})})]})})}a.s(["f",0,r],855771);let s={name:"",periodS:"86400",graceS:"3600"},t=[["http","HTTP check","The collector opens a URL every minute"],["heartbeat","Heartbeat","Your cron job or backup script pings a secret URL when it runs"]];function u(a){if("edit"===a.mode){let b=a.monitor;return{appId:"",kind:b.kind,url:"http"===b.kind?b.url:"",expectedStatus:String(b.expectedStatus),timeoutS:String(Math.round(b.timeoutMs/1e3)),bodyContains:b.bodyContains??"",jsonPath:b.jsonPath??"",jsonEquals:b.jsonEquals??"",name:b.name??"",periodS:String(b.periodS??s.periodS),graceS:String(b.graceS??s.graceS)}}let b=a.apps[0];return{appId:b?.id??"",kind:"http",url:b?`https://${b.domain}/api/health`:"",expectedStatus:"200",timeoutS:"5",bodyContains:"",jsonPath:"",jsonEquals:"",...s}}a.s(["MonitorDialog",0,function(a){let[k,p]=(0,d.useState)(!1),q="edit"===a.mode?a.open:k,[s,v]=(0,d.useState)(()=>u(a)),[w,x]=(0,d.useState)({}),[y,z]=(0,d.useTransition)(),[A,B]=(0,d.useState)(null);function C(b){b&&(v(u(a)),x({})),"edit"===a.mode?a.onOpenChange(b):p(b)}(0,g.useHoldRefresh)(q);let D="add"===a.mode?a.apps:[],E="add"===a.mode&&0===D.length,F="heartbeat"===s.kind,G="add"===a.mode?"HTTP checks run every minute from the collector. Heartbeats wait for your job to ping the console.":F?"Your job pings the console; nothing is fetched.":"Checked every minute from the collector.";return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(h.N,{open:q,onOpenChange:a=>{y||C(a)},children:["add"===a.mode&&(E?(0,b.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,b.jsx)(f.K,{variant:"primary",disabled:!0,children:"Add monitor"}),(0,b.jsx)("span",{className:"text-[12.5px] text-ink-faint",children:"Watch an app first: Connections, then Sync."})]}):(0,b.jsx)(h.a,{render:(0,b.jsx)(f.K,{variant:"primary",children:"Add monitor"})})),(0,b.jsxs)(h.d,{className:"gap-0 p-0 sm:max-w-[640px]",showCloseButton:!1,children:[(0,b.jsxs)("div",{className:"flex items-start gap-3 px-[18px] pb-2 pt-4",children:[(0,b.jsx)("span",{className:"grid size-9 shrink-0 place-items-center rounded-lg bg-sunken text-ink-soft",children:(0,b.jsx)(c.f,{size:19})}),(0,b.jsxs)("div",{children:[(0,b.jsx)(h.F,{className:"text-base",children:"add"===a.mode?"Add monitor":"Edit monitor"}),(0,b.jsx)(h.C,{className:"mt-0.5 text-[13px] text-ink-soft",children:G})]})]}),(0,b.jsxs)("form",{onSubmit:b=>{let c,d;b.preventDefault(),(d=(c="heartbeat"===s.kind)?(0,j.a)(s):(0,j.X)(s)).ok?(x({}),z(async()=>{let b=c?"add"===a.mode?await l(s.appId,s):await n(a.monitor.id,s):"add"===a.mode?await m(s.appId,s):await o(a.monitor.id,s);if(!b.ok){x(b.fieldErrors??{}),e.c.error(b.error);return}e.c.success("add"===a.mode?"Monitor added":"Monitor saved",{description:b.message}),C(!1);let d=b.data&&"pingUrl"in b.data?b.data.pingUrl:null;d&&B({name:s.name.trim(),url:d})})):x(d.fieldErrors)},children:[(0,b.jsxs)("div",{className:"px-[18px] pt-2",children:["add"===a.mode&&(0,b.jsxs)("fieldset",{className:"mb-3.5",children:[(0,b.jsx)("legend",{className:"mb-[5px] text-[13px] font-medium",children:"Type"}),(0,b.jsx)("div",{className:"overflow-hidden rounded-lg border border-line",children:t.map(([a,c,d])=>(0,b.jsxs)("label",{className:"flex cursor-pointer items-start gap-2.5 border-t border-line px-3 py-[9px] first:border-t-0 hover:bg-hover",children:[(0,b.jsx)("input",{type:"radio",name:"mon-kind",value:a,checked:s.kind===a,className:"mt-[3px] accent-brand",onChange:()=>{v({...s,kind:a}),x({})}}),(0,b.jsxs)("span",{children:[c,(0,b.jsx)("small",{className:"block text-xs text-ink-faint",children:d})]})]},a))})]}),(0,b.jsx)(f.O,{id:"mon-app",label:"Application",children:"add"===a.mode?(0,b.jsx)("select",{id:"mon-app",className:f.S,value:s.appId,onChange:a=>{let b=D.find(b=>b.id===a.target.value);v({...s,appId:a.target.value,url:b?`https://${b.domain}/`:s.url})},children:D.map(a=>(0,b.jsx)("option",{value:a.id,children:a.name},a.id))}):(0,b.jsx)("input",{id:"mon-app",className:f.S,value:a.monitor.appName,disabled:!0})}),F?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(f.O,{id:"hb-name",label:"Name",error:w.name,children:(0,b.jsx)("input",{id:"hb-name",className:f.S,value:s.name,placeholder:"backup job",maxLength:80,autoComplete:"off",onChange:a=>v({...s,name:a.target.value})})}),(0,b.jsxs)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[(0,b.jsx)(f.O,{id:"hb-every",label:"Expected every",error:w.periodS,children:(0,b.jsx)("select",{id:"hb-every",className:f.S,value:s.periodS,onChange:a=>v({...s,periodS:a.target.value}),children:i.Q.map(a=>(0,b.jsx)("option",{value:String(a),children:(0,i.v)(a)},a))})}),(0,b.jsx)(f.O,{id:"hb-grace",label:"Grace time",error:w.graceS,children:(0,b.jsx)("select",{id:"hb-grace",className:f.S,value:s.graceS,onChange:a=>v({...s,graceS:a.target.value}),children:i.q.map(a=>(0,b.jsx)("option",{value:String(a),children:(0,i.v)(a)},a))})})]}),(0,b.jsxs)("p",{className:"mb-3 text-[13px] text-ink-soft",children:["Late once the period passes, down after the grace time too.","add"===a.mode?" The ping URL is shown once after you add it.":""]})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(f.O,{id:"mon-url",label:"URL",help:"Must start with https://. A health route that touches nothing heavy works best.",error:w.url,children:(0,b.jsx)("input",{id:"mon-url",className:f.S,value:s.url,autoComplete:"off",spellCheck:!1,onChange:a=>v({...s,url:a.target.value})})}),(0,b.jsxs)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[(0,b.jsx)(f.O,{id:"mon-code",label:"Expected status",error:w.expectedStatus,children:(0,b.jsx)("input",{id:"mon-code",className:f.S,inputMode:"numeric",value:s.expectedStatus,onChange:a=>v({...s,expectedStatus:a.target.value})})}),(0,b.jsx)(f.O,{id:"mon-timeout",label:"Timeout",error:w.timeoutS,children:(0,b.jsx)("select",{id:"mon-timeout",className:f.S,value:s.timeoutS,onChange:a=>v({...s,timeoutS:a.target.value}),children:j.L.map(a=>(0,b.jsxs)("option",{value:String(a),children:[a," s"]},a))})})]}),(0,b.jsx)(f.O,{id:"mon-match",label:"Response must contain (optional)",help:"Plain text, case-sensitive. The first 256 KB of the response is searched and never stored.",error:w.bodyContains,children:(0,b.jsx)("input",{id:"mon-match",className:f.S,value:s.bodyContains??"",placeholder:'e.g. "status":"ok"',autoComplete:"off",spellCheck:!1,onChange:a=>v({...s,bodyContains:a.target.value})})}),(0,b.jsxs)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[(0,b.jsx)(f.O,{id:"mon-jpath",label:"Or JSON field (optional)",error:w.jsonPath,children:(0,b.jsx)("input",{id:"mon-jpath",className:`${f.S} font-mono`,value:s.jsonPath??"",placeholder:"status or checks.db",autoComplete:"off",spellCheck:!1,onChange:a=>v({...s,jsonPath:a.target.value})})}),(0,b.jsx)(f.O,{id:"mon-jeq",label:"Equals",error:w.jsonEquals,children:(0,b.jsx)("input",{id:"mon-jeq",className:`${f.S} font-mono`,value:s.jsonEquals??"",placeholder:"ok",autoComplete:"off",spellCheck:!1,onChange:a=>v({...s,jsonEquals:a.target.value})})})]}),(0,b.jsx)("p",{className:"mb-3 text-[13px] text-ink-soft",children:"Marked down after 3 failed checks in a row. A missing keyword counts as a failed check."})]})]}),(0,b.jsxs)("div",{className:"flex flex-wrap items-center justify-end gap-2 border-t border-line px-[18px] py-3",children:[(0,b.jsx)(f.K,{onClick:()=>C(!1),disabled:y,children:"Cancel"}),(0,b.jsx)(f.K,{type:"submit",variant:"primary",disabled:y,children:y?"Saving…":"add"===a.mode?"Add monitor":"Save"})]})]})]})]}),(0,b.jsx)(r,{name:A?.name??"",url:A?.url??null,onClose:()=>B(null)})]})}],642823)},788831,a=>{var b=a.i(187924),c=a.i(572131),d=a.i(823292),e=a.i(611619),f=a.i(188406),g=a.i(742680),h=a.i(405050);let i=(0,h.createServerReference)("40b57c7be3e291d58c566adf99df759363358c5825",h.callServer,void 0,h.findSourceMapURL,"checkNow"),j=(0,h.createServerReference)("402ab308838bdbf3468a6df679451504c3ad9345f1",h.callServer,void 0,h.findSourceMapURL,"newPingUrl"),k=(0,h.createServerReference)("603c1f54b4feff574043c7551655872f0bd3fe8bdb",h.callServer,void 0,h.findSourceMapURL,"pauseMonitor"),l=(0,h.createServerReference)("60dc160baad381bd86307d8cb312759f891dd94ff2",h.callServer,void 0,h.findSourceMapURL,"recordTestPingAction"),m=(0,h.createServerReference)("4092d056d912232747fae88e73761456c83ffa0030",h.callServer,void 0,h.findSourceMapURL,"removeMonitor");var n=a.i(642823),o=a.i(855771);a.s(["MonitorMenu",0,function({monitor:a}){let[h,p]=(0,c.useState)(!1),[q,r]=(0,c.useState)(!1),[s,t]=(0,c.useState)(!1),[u,v]=(0,c.useState)(null),[,w]=(0,c.useTransition)(),x=(0,c.useRef)(!1),y="heartbeat"===a.kind,z=y?`${a.appName} \xb7 ${a.path}`:`${a.appName}${a.path}`,A=(a,b)=>{if(x.current)return;x.current=!0;let c=b?d.c.loading(b):void 0;w(async()=>{try{let b=await a();b.ok?b.data?.passed===!1?d.c.warning(b.message??"",{id:c}):d.c.success(b.message??"",{id:c}):d.c.error(b.error,{id:c})}catch{d.c.error("Watchbell didn't answer. Check that it's still running, then try again.",{id:c})}finally{x.current=!1}})},B={label:a.ownerPaused?"Resume":"Pause",onSelect:()=>A(()=>k(a.id,!a.ownerPaused))},C=y?{label:"Show ping URL",onSelect:()=>t(!0)}:{label:"Check now",onSelect:()=>A(()=>i(a.id),`Checking ${z}…`)};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(f.RowMenu,{label:(0,g.J)(a.appName,a.path),items:[C,...y?[{label:"Record a test ping: OK",onSelect:()=>A(()=>l(a.id,"ok"))},{label:"Record a test ping: Fail",onSelect:()=>A(()=>l(a.id,"fail"))}]:[],{label:"Edit monitor",onSelect:()=>p(!0)},B,"---",{label:"Delete",danger:!0,onSelect:()=>r(!0)}]}),h&&(0,b.jsx)(n.MonitorDialog,{mode:"edit",monitor:a,open:!0,onOpenChange:p}),(0,b.jsx)(e.f,{open:q,onOpenChange:r,title:`Delete ${z}?`,body:y?"Its ping URL stops working. This can't be undone.":"This can't be undone.",cta:"Delete",danger:!0,onConfirm:async()=>{let b=await m(a.id);return{ok:b.ok,message:(b.ok?b.message:b.error)??""}}}),y&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(e.f,{open:s,onOpenChange:t,title:`New ping URL for ${a.path}?`,body:"Make a new ping URL? The old one stops working, so update your job.",cta:"Make a new URL",onConfirm:async()=>{let b=await j(a.id);return b.ok&&b.data?.pingUrl&&v(b.data.pingUrl),{ok:b.ok,message:(b.ok?b.message:b.error)??""}}}),(0,b.jsx)(o.f,{name:a.path,url:u,onClose:()=>v(null)})]})]})}],788831)}]})();
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=src_app_%28console%29_uptime_1mnnkfi-2zv-k._.js.map
|
package/server/.next/server/chunks/ssr/src_app_(console)_vercel-actions_ts_0wpk1yo9v632d._.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[429852,a=>{"use strict";var b=a.i(137936),c=a.i(600079),d=a.i(109307),e=a.i(858806),f=a.i(322145),g=a.i(93321),h=a.i(530385),i=a.i(548734),j=a.i(837137),k=a.i(930270),l=a.i(589856);let m={async deployment(a,b){let[c]=await (0,i.f)().select({commitSha:j.deployments.commitSha,createdAt:j.deployments.createdAtProvider}).from(j.deployments).where((0,g.b)((0,g.u)(j.deployments.resourceId,a),(0,g.u)(j.deployments.externalId,b),(0,g.u)(j.deployments.target,"production"))).limit(1);return c??null},async previous(a,b){let[c]=await (0,i.f)().select({commitSha:j.deployments.commitSha}).from(j.deployments).where((0,g.b)((0,g.u)(j.deployments.resourceId,a),(0,g.u)(j.deployments.target,"production"),(0,g.u)(j.deployments.state,"ready"),(0,g.E)(j.deployments.commitSha),(0,g.S)(j.deployments.createdAtProvider,b))).orderBy((0,h.A)(j.deployments.createdAtProvider)).limit(1);return c?.commitSha?{commitSha:c.commitSha}:null},async repo(a){let[b]=await (0,i.f)().select({fullName:j.githubRepos.fullName}).from(j.appRepos).innerJoin(j.githubRepos,(0,g.u)(j.githubRepos.id,j.appRepos.repoId)).where((0,g.u)(j.appRepos.appId,a)).limit(1);return b??null},async githubToken(){let a=await (0,k.M)();return"token"in a?a.token:null},compare:(a,b,c,d)=>(0,l.e)(a,b,c,d)},n=(a,b,c)=>({from:a,to:b,commits:[],total:0,cut:!1,note:c});async function o(a,b,c=m){let d=await c.deployment(a,b);if(!d)return{ok:!1,error:"That deployment isn't a production deployment of this app."};if(!d.commitSha)return{ok:!0,data:n(null,"","This deployment wasn't built from a Git commit.")};let e=await c.previous(a,d.createdAt);if(!e)return{ok:!0,data:n(null,d.commitSha,"This is the first production deployment the console has seen.")};if(e.commitSha===d.commitSha)return{ok:!0,data:n(e.commitSha,d.commitSha,"Same commit as the previous production deployment (a redeploy).")};let f=await c.repo(a);if(!f)return{ok:!1,error:"Link a repository to see what changed."};let g=await c.githubToken();if(!g)return{ok:!1,error:"GitHub isn't connected, or its token can't be read."};let h=await c.compare(g,f.fullName,e.commitSha,d.commitSha);return h.ok?{ok:!0,data:{from:e.commitSha,to:d.commitSha,commits:h.data.commits.slice(0,50),total:h.data.total,cut:h.data.total>50||h.data.commits.length>50,note:null}}:{ok:!1,error:"missing"===h.kind?"GitHub can't compare these commits (the history may have been rewritten).":`Couldn't read the commits: ${h.error}`}}var p=a.i(915598),q=a.i(534908),r=a.i(683439),s=a.i(75105),t=a.i(572134),u=a.i(288666);let v={truncated:!1,lines:[{at:null,kind:"delimiter",text:"Running build in Washington, D.C., USA (East) – iad1"},{at:null,kind:"stdout",text:"Cloning github.com/example/shop (Branch: main, Commit: 4f2a9c1)"},{at:null,kind:"command",text:"npm install"},{at:null,kind:"stdout",text:"added 412 packages in 18s"},{at:null,kind:"command",text:"npm run build"},{at:null,kind:"stdout",text:"> next build"},{at:null,kind:"stdout",text:" ▲ Next.js 16.4.1"},{at:null,kind:"stdout",text:" Creating an optimized production build ..."},{at:null,kind:"stderr",text:"Failed to compile."},{at:null,kind:"stderr",text:"./app/checkout/page.tsx:12:7"},{at:null,kind:"stderr",text:"Type error: Property 'total' does not exist on type 'Cart'."},{at:null,kind:"stderr",text:'Error: Command "npm run build" exited with 1'}]},w={text:"The checkout page reads cart.total, but the Cart type has no total field.\nFix: add total to Cart in types/cart.ts, or compute it from the items where the page needs it.\nFile: app/checkout/page.tsx, line 12.",model:"demo"},x=["stdout","stderr","command","delimiter"],y=/\u001b\[[0-9;?]*[A-Za-z]/g,z=a=>a&&"object"==typeof a&&!Array.isArray(a)?a:null;async function A(a,b,c,d={}){let e=new URLSearchParams({teamId:b,builds:"1",direction:"backward",limit:String(2e3)}),f=await (0,u.R)("Vercel",`https://api.vercel.com/v3/deployments/${encodeURIComponent(c)}/events?${e}`,{token:a},{timeoutMs:1e4,...d});if(!f.ok)return f;let g=function(a){if(!Array.isArray(a))return null;let b=[];for(let c of a){let a=z(c);if(!a||!x.includes(a.type))continue;let d=z(a.payload),e="string"==typeof d?.text?d.text:"string"==typeof a.text?a.text:null;if(null===e)continue;let f="number"==typeof a.created?a.created:"number"==typeof d?.date?d.date:null,g=e.replace(y,"").replace(/\r/g,"").split("\n");for(let c of(g.length>1&&""===g.at(-1)&&g.pop(),g))b.push({at:f,kind:a.type,text:c})}return b}(f.data);if(!g||!Array.isArray(f.data))return(0,u.t)("Vercel","the build log");let h=function(a,b=2e3){return a.length>b?{lines:a.slice(a.length-b),truncated:!0}:{lines:a,truncated:!1}}(g.every(a=>null!==a.at)?g.map((a,b)=>({l:a,i:b})).sort((a,b)=>a.l.at-b.l.at||a.i-b.i).map(a=>a.l):[...g].reverse());return{ok:!0,data:{lines:h.lines,truncated:h.truncated||f.data.length>=2e3}}}var B=a.i(657582),C=a.i(86539),D=a.i(713095);let E={requireActionMember:d.g};async function F(a,b){return(0,c.F)("operator",async c=>(0,r.f)(a)&&"string"==typeof b&&p.T.test(b)?(0,p.B)(c,a,b):{ok:!1,error:s.w},E)}async function G(a){return(0,c.F)("operator",async b=>{if(!(0,r.f)(a))return{ok:!1,error:s.w};let c=await (0,e.R)(a);return c?(0,p.B)(b,a,c):{ok:!1,error:"No current production deployment"}},E)}async function H(a,b){return(0,c.F)("operator",async()=>{if(!(0,r.f)(a)||"string"!=typeof b||!p.T.test(b)||!await (0,e.C)(a,b))return{ok:!1,error:s.w};let c=await (0,f.p)(a,"app"),d=c?.resource.meta.teamId;if(!c||"string"!=typeof d||!d)return{ok:!1,error:p.u};let g=await A(c.token,d,b);return g.ok?{ok:!0,data:g.data}:{ok:!1,error:`Couldn't read the build log: ${g.error}`}},E,async()=>({ok:!0,data:v}))}let I=new Set;async function J(a,b){return(0,c.F)("owner",async c=>{if(!(0,r.f)(a)||"string"!=typeof b||!p.T.test(b))return{ok:!1,error:s.w};let d=q.extensions.explainBuild;if(!d)return{ok:!1,error:"Explain with AI needs the AI gateway."};let g=await (0,e.p)(a,b);if(!g)return{ok:!1,error:s.w};if("error"!==g)return{ok:!1,error:"Only a failed build can be explained."};let h=await (0,f.p)(a,"app"),i=h?.resource.meta.teamId;if(!h||"string"!=typeof i||!i)return{ok:!1,error:p.u};let j=await A(h.token,i,b);if(!j.ok)return{ok:!1,error:`Couldn't read the build log: ${j.error}`};let k=`${c.id}:${b}`;if(I.has(k))return{ok:!1,error:"That build is already being explained. Try again in a moment."};I.add(k);try{let a=await d({app:h.resource.name,lines:j.data.lines,memberId:c.id});return a.ok?{ok:!0,data:{text:a.text,model:a.model}}:{ok:!1,error:a.error}}finally{I.delete(k)}},E,async()=>({ok:!0,data:w}))}async function K(a,b){return(0,c.F)("operator",async()=>{if(!(0,r.f)(a)||"string"!=typeof b||!p.T.test(b))return{ok:!1,error:s.w};let c=await o(a,b);return c.ok?{ok:!0,data:c.data}:{ok:!1,error:c.error}},E,async()=>({ok:!0,data:C.T}))}async function L(a,b){return(0,c.F)("operator",async c=>(0,r.f)(a)&&"string"==typeof b&&p.T.test(b)?(0,p.U)(c,a,b):{ok:!1,error:s.w},E)}async function M(a,b){return(0,c.F)("operator",async c=>{if(!(0,r.f)(a)||"string"!=typeof b||!p.T.test(b))return{ok:!1,error:s.w};let d=await (0,p.p)(c,"promote",a);if("string"==typeof d)return(0,f.W)((0,p.O)(d),c,"");let e=await (0,p.X)(d);if(!e.ok)return(0,f.W)((0,p.O)(e.error),c,d.t.account.id);if(e.data.currentId===b)return(0,f.W)((0,p.O)(p.f),c,d.t.account.id);let g=e.data.production.find(a=>a.id===b);if(!g||"staged"!==(0,B.U)(g,e.data.currentId,e.data.production))return(0,f.W)((0,p.O)(p.v),c,d.t.account.id);let h=(0,p.C)(g,b),i=await (0,t.u)(d.t.token,d.teamId,d.projectId,b);return(0,p.J)(d,i,{message:`Promoted ${h}. New pushes to ${d.app} go live again.`,audit:`Promoted \xb7 ${d.app} → ${h}`},`Promote failed \xb7 ${d.app} → ${h}`)},E)}async function N(a,b){return(0,c.F)("operator",async c=>{if(!(0,r.f)(a)||"string"!=typeof b||!p.T.test(b))return{ok:!1,error:s.w};let d=await (0,p.p)(c,"cancel",a);if("string"==typeof d)return(0,f.W)((0,p.O)(d),c,"");let e=await (0,t.S)(d.t.token,{id:d.teamId,slug:d.teamSlug,name:d.teamSlug},b);if(!e.ok)return(0,f.W)((0,p.O)(404===e.status?"Vercel can't find that build any more.":e.error),c,d.t.account.id);if(e.data.projectId!==d.projectId)return(0,f.W)((0,p.O)(s.w),c,d.t.account.id);if(!p.o.has(e.data.rawState))return(0,f.W)((0,p.O)("This build already finished."),c,d.t.account.id);let g=(0,p.C)(e.data,b),h=await (0,t.T)(d.t.token,d.teamId,b);return(0,p.J)(d,h,{message:"Build canceled. The current production deployment stays live.",audit:`Build canceled \xb7 ${d.app} \xb7 ${g}`},`Cancel failed \xb7 ${d.app} \xb7 ${g}`)},E)}async function O(a,b){return(0,c.F)("operator",async c=>{if(!(0,r.f)(a)||"string"!=typeof b||!p.T.test(b))return{ok:!1,error:s.w};let d=await (0,p.p)(c,"promote-preview",a);if("string"==typeof d)return(0,f.W)((0,p.O)(d),c,"");let e=await (0,t.S)(d.t.token,{id:d.teamId,slug:d.teamSlug,name:d.teamSlug},b);if(!e.ok)return(0,f.W)((0,p.O)(404===e.status?p.G:e.error),c,d.t.account.id);if(e.data.projectId!==d.projectId)return(0,f.W)((0,p.O)(s.w),c,d.t.account.id);if("preview"!==e.data.target||"READY"!==e.data.rawState)return(0,f.W)((0,p.O)(p.l),c,d.t.account.id);let g=await (0,p.X)(d);if(!g.ok)return(0,f.W)((0,p.O)(g.error),c,d.t.account.id);if(g.data.production.some(a=>"staged"===(0,B.U)(a,g.data.currentId,g.data.production)))return(0,f.W)((0,p.O)(p.S),c,d.t.account.id);let h=await (0,t.N)(d.t.token,d.teamId,d.projectId);if(!h.ok)return(0,f.W)((0,p.O)(h.error),c,d.t.account.id);if(h.data)return(0,f.W)((0,p.O)(`A production build of ${d.app} is already running.`),c,d.t.account.id);let i=(0,p.C)(e.data,b),j=await (0,t.l)(d.t.token,d.teamId,{projectId:d.projectId,name:g.data.name,deploymentId:b});return(0,p.J)(d,j,{message:`Promoting ${i} to production. Vercel is building ${d.app} with the production environment variables; it goes live when the build is ready.`,audit:`Preview promoted \xb7 ${d.app} \xb7 ${i}`},`Preview promote failed \xb7 ${d.app} \xb7 ${i}`)},E)}(0,D.ensureServerEntryExports)([F,G,H,J,K,L,M,N,O]),(0,b.registerServerReference)(F,"6039ee8f5be515b1c179704a7502bc1eb8427232e9",null),(0,b.registerServerReference)(G,"401a9f285e7423917501868650bd5dc963179d6e28",null),(0,b.registerServerReference)(H,"601b652c632727432a23d7d87b2fad44676f76119c",null),(0,b.registerServerReference)(J,"603a39ca361b891f07890fcc44aed4302cb46e488a",null),(0,b.registerServerReference)(K,"60ae0e10257929cf5ba61cb815591eee6059b20faf",null),(0,b.registerServerReference)(L,"604e9312735cbb643509f24bc94e1740bb2d2ae7ee",null),(0,b.registerServerReference)(M,"60ff9b1575f1296edb05f83e2766844a12005e4f6f",null),(0,b.registerServerReference)(N,"60eb82fd1c21cc597a6f8d0eec97005a558265f158",null),(0,b.registerServerReference)(O,"60086dc2c60f0d91334393d80f73b796ae9e95aeae",null),a.s(["m",0,H,"x",0,N,"y",0,J,"j",0,M,"Y",0,O,"t",0,F,"n",0,G,"r",0,K,"d",0,L],429852)}];
|
|
1
|
+
module.exports=[429852,a=>{"use strict";var b=a.i(137936),c=a.i(600079),d=a.i(109307),e=a.i(858806),f=a.i(322145),g=a.i(93321),h=a.i(530385),i=a.i(548734),j=a.i(837137),k=a.i(930270),l=a.i(589856);let m={async deployment(a,b){let[c]=await (0,i.f)().select({commitSha:j.deployments.commitSha,createdAt:j.deployments.createdAtProvider}).from(j.deployments).where((0,g.b)((0,g.u)(j.deployments.resourceId,a),(0,g.u)(j.deployments.externalId,b),(0,g.u)(j.deployments.target,"production"))).limit(1);return c??null},async previous(a,b){let[c]=await (0,i.f)().select({commitSha:j.deployments.commitSha}).from(j.deployments).where((0,g.b)((0,g.u)(j.deployments.resourceId,a),(0,g.u)(j.deployments.target,"production"),(0,g.u)(j.deployments.state,"ready"),(0,g.E)(j.deployments.commitSha),(0,g.S)(j.deployments.createdAtProvider,b))).orderBy((0,h.A)(j.deployments.createdAtProvider)).limit(1);return c?.commitSha?{commitSha:c.commitSha}:null},async repo(a){let[b]=await (0,i.f)().select({fullName:j.githubRepos.fullName}).from(j.appRepos).innerJoin(j.githubRepos,(0,g.u)(j.githubRepos.id,j.appRepos.repoId)).where((0,g.u)(j.appRepos.appId,a)).limit(1);return b??null},async githubToken(){let a=await (0,k.M)();return"token"in a?a.token:null},compare:(a,b,c,d)=>(0,l.e)(a,b,c,d)},n=(a,b,c)=>({from:a,to:b,commits:[],total:0,cut:!1,note:c});async function o(a,b,c=m){let d=await c.deployment(a,b);if(!d)return{ok:!1,error:"That deployment isn't a production deployment of this app."};if(!d.commitSha)return{ok:!0,data:n(null,"","This deployment wasn't built from a Git commit.")};let e=await c.previous(a,d.createdAt);if(!e)return{ok:!0,data:n(null,d.commitSha,"This is the first production deployment the console has seen.")};if(e.commitSha===d.commitSha)return{ok:!0,data:n(e.commitSha,d.commitSha,"Same commit as the previous production deployment (a redeploy).")};let f=await c.repo(a);if(!f)return{ok:!1,error:"Link a repository to see what changed."};let g=await c.githubToken();if(!g)return{ok:!1,error:"GitHub isn't connected, or its token can't be read."};let h=await c.compare(g,f.fullName,e.commitSha,d.commitSha);return h.ok?{ok:!0,data:{from:e.commitSha,to:d.commitSha,commits:h.data.commits.slice(0,50),total:h.data.total,cut:h.data.total>50||h.data.commits.length>50,note:null}}:{ok:!1,error:"missing"===h.kind?"GitHub can't compare these commits (the history may have been rewritten).":`Couldn't read the commits: ${h.error}`}}var p=a.i(915598),q=a.i(534908),r=a.i(683439),s=a.i(75105),t=a.i(572134),u=a.i(288666);let v={truncated:!1,lines:[{at:null,kind:"delimiter",text:"Running build in Washington, D.C., USA (East) – iad1"},{at:null,kind:"stdout",text:"Cloning github.com/example/shop (Branch: main, Commit: 4f2a9c1)"},{at:null,kind:"command",text:"npm install"},{at:null,kind:"stdout",text:"added 412 packages in 18s"},{at:null,kind:"command",text:"npm run build"},{at:null,kind:"stdout",text:"> next build"},{at:null,kind:"stdout",text:" ▲ Next.js 16.4.1"},{at:null,kind:"stdout",text:" Creating an optimized production build ..."},{at:null,kind:"stderr",text:"Failed to compile."},{at:null,kind:"stderr",text:"./app/checkout/page.tsx:12:7"},{at:null,kind:"stderr",text:"Type error: Property 'total' does not exist on type 'Cart'."},{at:null,kind:"stderr",text:'Error: Command "npm run build" exited with 1'}]},w={text:"The checkout page reads cart.total, but the Cart type has no total field.\nFix: add total to Cart in types/cart.ts, or compute it from the items where the page needs it.\nFile: app/checkout/page.tsx, line 12.",model:"demo"},x=["stdout","stderr","command","delimiter"],y=/\u001b\[[0-9;?]*[A-Za-z]/g,z=a=>a&&"object"==typeof a&&!Array.isArray(a)?a:null;async function A(a,b,c,d={}){let e=new URLSearchParams({teamId:b,builds:"1",direction:"backward",limit:String(2e3)}),f=await (0,u.R)("Vercel",`https://api.vercel.com/v3/deployments/${encodeURIComponent(c)}/events?${e}`,{token:a},{timeoutMs:1e4,...d});if(!f.ok)return f;let g=function(a){if(!Array.isArray(a))return null;let b=[];for(let c of a){let a=z(c);if(!a||!x.includes(a.type))continue;let d=z(a.payload),e="string"==typeof d?.text?d.text:"string"==typeof a.text?a.text:null;if(null===e)continue;let f="number"==typeof a.created?a.created:"number"==typeof d?.date?d.date:null,g=e.replace(y,"").replace(/\r/g,"").split("\n");for(let c of(g.length>1&&""===g.at(-1)&&g.pop(),g))b.push({at:f,kind:a.type,text:c})}return b}(f.data);if(!g||!Array.isArray(f.data))return(0,u.t)("Vercel","the build log");let h=function(a,b=2e3){return a.length>b?{lines:a.slice(a.length-b),truncated:!0}:{lines:a,truncated:!1}}(g.every(a=>null!==a.at)?g.map((a,b)=>({l:a,i:b})).sort((a,b)=>a.l.at-b.l.at||a.i-b.i).map(a=>a.l):[...g].reverse());return{ok:!0,data:{lines:h.lines,truncated:h.truncated||f.data.length>=2e3}}}var B=a.i(657582),C=a.i(86539),D=a.i(713095);let E={requireActionMember:d.g};async function F(a,b){return(0,c.F)("operator",async c=>(0,r.f)(a)&&"string"==typeof b&&p.T.test(b)?(0,p.B)(c,a,b):{ok:!1,error:s.w},E)}async function G(a){return(0,c.F)("operator",async b=>{if(!(0,r.f)(a))return{ok:!1,error:s.w};let c=await (0,e.R)(a);return c?(0,p.B)(b,a,c):{ok:!1,error:"No current production deployment"}},E)}async function H(a,b){return(0,c.F)("operator",async()=>{if(!(0,r.f)(a)||"string"!=typeof b||!p.T.test(b)||!await (0,e.C)(a,b))return{ok:!1,error:s.w};let c=await (0,f.p)(a,"app"),d=c?.resource.meta.teamId;if(!c||"string"!=typeof d||!d)return{ok:!1,error:p.u};let g=await A(c.token,d,b);return g.ok?{ok:!0,data:g.data}:{ok:!1,error:`Couldn't read the build log: ${g.error}`}},E,async()=>({ok:!0,data:v}))}let I=new Set;async function J(a,b){return(0,c.F)("owner",async c=>{if(!(0,r.f)(a)||"string"!=typeof b||!p.T.test(b))return{ok:!1,error:s.w};let d=q.extensions.explainBuild;if(!d)return{ok:!1,error:"Explain with AI needs the AI gateway."};let g=await (0,e.p)(a,b);if(!g)return{ok:!1,error:s.w};if("error"!==g)return{ok:!1,error:"Only a failed build can be explained."};let h=await (0,f.p)(a,"app"),i=h?.resource.meta.teamId;if(!h||"string"!=typeof i||!i)return{ok:!1,error:p.u};let j=await A(h.token,i,b);if(!j.ok)return{ok:!1,error:`Couldn't read the build log: ${j.error}`};let k=`${c.id}:${b}`;if(I.has(k))return{ok:!1,error:"That build is already being explained. Try again in a moment."};I.add(k);try{let a=await d({app:h.resource.name,lines:j.data.lines,memberId:c.id});return a.ok?{ok:!0,data:{text:a.text,model:a.model}}:{ok:!1,error:a.error}}finally{I.delete(k)}},E,async()=>({ok:!0,data:w}))}async function K(a,b){return(0,c.F)("operator",async()=>{if(!(0,r.f)(a)||"string"!=typeof b||!p.T.test(b))return{ok:!1,error:s.w};let c=await o(a,b);return c.ok?{ok:!0,data:c.data}:{ok:!1,error:c.error}},E,async()=>({ok:!0,data:C.T}))}async function L(a,b){return(0,c.F)("operator",async c=>(0,r.f)(a)&&"string"==typeof b&&p.T.test(b)?(0,p.U)(c,a,b):{ok:!1,error:s.w},E)}async function M(a,b){return(0,c.F)("operator",async c=>{if(!(0,r.f)(a)||"string"!=typeof b||!p.T.test(b))return{ok:!1,error:s.w};let d=await (0,p.p)(c,"promote",a);if("string"==typeof d)return(0,f.W)((0,p.O)(d),c,"");let e=await (0,p.X)(d);if(!e.ok)return(0,f.W)((0,p.O)(e.error),c,d.t.account.id);if(e.data.currentId===b)return(0,f.W)((0,p.O)(p.f),c,d.t.account.id);let g=e.data.production.find(a=>a.id===b);if(!g||"staged"!==(0,B.U)(g,e.data.currentId,e.data.production))return(0,f.W)((0,p.O)(p.v),c,d.t.account.id);let h=(0,p.C)(g,b),i=await (0,t.u)(d.t.token,d.teamId,d.projectId,b);return(0,p.J)(d,i,{message:`Promoted ${h}. New pushes to ${d.app} go live again.`,audit:`Promoted \xb7 ${d.app} → ${h}`},`Promote failed \xb7 ${d.app} → ${h}`)},E)}async function N(a,b){return(0,c.F)("operator",async c=>{if(!(0,r.f)(a)||"string"!=typeof b||!p.T.test(b))return{ok:!1,error:s.w};let d=await (0,p.p)(c,"cancel",a);if("string"==typeof d)return(0,f.W)((0,p.O)(d),c,"");let e=await (0,t.S)(d.t.token,{id:d.teamId,slug:d.teamSlug,name:d.teamSlug},b);if(!e.ok)return(0,f.W)((0,p.O)(404===e.status?"Vercel can't find that build any more.":e.error),c,d.t.account.id);if(e.data.projectId!==d.projectId)return(0,f.W)((0,p.O)(s.w),c,d.t.account.id);if(!p.o.has(e.data.rawState))return(0,f.W)((0,p.O)("This build already finished."),c,d.t.account.id);let g=(0,p.C)(e.data,b),h=await (0,t.T)(d.t.token,d.teamId,b);return(0,p.J)(d,h,{message:"Build canceled. The current production deployment stays live.",audit:`Build canceled \xb7 ${d.app} \xb7 ${g}`},`Cancel failed \xb7 ${d.app} \xb7 ${g}`)},E)}async function O(a,b){return(0,c.F)("operator",async c=>{if(!(0,r.f)(a)||"string"!=typeof b||!p.T.test(b))return{ok:!1,error:s.w};let d=await (0,p.p)(c,"promote-preview",a);if("string"==typeof d)return(0,f.W)((0,p.O)(d),c,"");let e=await (0,t.S)(d.t.token,{id:d.teamId,slug:d.teamSlug,name:d.teamSlug},b);if(!e.ok)return(0,f.W)((0,p.O)(404===e.status?p.G:e.error),c,d.t.account.id);if(e.data.projectId!==d.projectId)return(0,f.W)((0,p.O)(s.w),c,d.t.account.id);if("preview"!==e.data.target||"READY"!==e.data.rawState)return(0,f.W)((0,p.O)(p.l),c,d.t.account.id);let g=await (0,p.X)(d);if(!g.ok)return(0,f.W)((0,p.O)(g.error),c,d.t.account.id);if(g.data.production.some(a=>"staged"===(0,B.U)(a,g.data.currentId,g.data.production)))return(0,f.W)((0,p.O)(p.S),c,d.t.account.id);let h=await (0,t.N)(d.t.token,d.teamId,d.projectId);if(!h.ok)return(0,f.W)((0,p.O)(h.error),c,d.t.account.id);if(h.data)return(0,f.W)((0,p.O)(`A production build of ${d.app} is already running.`),c,d.t.account.id);let i=(0,p.C)(e.data,b),j=await (0,t.l)(d.t.token,d.teamId,{projectId:d.projectId,name:g.data.name,deploymentId:b});return(0,p.J)(d,j,{message:`Promoting ${i} to production. Vercel is building ${d.app} with the production environment variables; it goes live when the build is ready.`,audit:`Preview promoted \xb7 ${d.app} \xb7 ${i}`},`Preview promote failed \xb7 ${d.app} \xb7 ${i}`)},E)}(0,D.ensureServerEntryExports)([F,G,H,J,K,L,M,N,O]),(0,b.registerServerReference)(F,"60d8252c7bc357fcb0d1cbea8fa8d285598fc34526",null),(0,b.registerServerReference)(G,"409dcef34d5f79d8171a4562a23470396612f2e851",null),(0,b.registerServerReference)(H,"608b66f45a41c041c04a0fb84a8df27b24fa929b85",null),(0,b.registerServerReference)(J,"60ae39a73d91a8e143b6b8879748d95a20f2d82379",null),(0,b.registerServerReference)(K,"60eaea44582a1ddb6f88268d47f83052573c156b4e",null),(0,b.registerServerReference)(L,"60ba1d94aa50f84773a95238d64f62aca68f152f2a",null),(0,b.registerServerReference)(M,"60a58057b2a42eefc03e1c0603094c1306e022a436",null),(0,b.registerServerReference)(N,"6051a6f8308ddb6a5d3bf227d295e318dc5b51fd87",null),(0,b.registerServerReference)(O,"60009a2992545d28afbeaaff5212bb5a77843a9a5d",null),a.s(["m",0,H,"x",0,N,"y",0,J,"j",0,M,"Y",0,O,"t",0,F,"n",0,G,"r",0,K,"d",0,L],429852)}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=src_app_%28console%29_vercel-actions_ts_0wpk1yo9v632d._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[829254,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(619089),e=a.i(405050);let f=(0,e.createServerReference)("
|
|
1
|
+
module.exports=[829254,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(619089),e=a.i(405050);let f=(0,e.createServerReference)("60038e27282aaa8b119e696b319ca086b07d5e2fc9",e.callServer,void 0,e.findSourceMapURL,"confirmMfaEnrollment"),g=(0,e.createServerReference)("000dec3fe00b070ab7cff831ee07b86f667971def9",e.callServer,void 0,e.findSourceMapURL,"startMfaEnrollment");var h=a.i(756540);a.s(["SetupFlow",0,function(){let[a,e]=(0,c.useState)(null),[i,j]=(0,c.useTransition)(),[k,l,m]=(0,c.useActionState)(f,{status:"idle"});(0,h.f)(k);let n="done"===k.status;return a&&a.ok?(0,b.jsxs)("form",{action:l,children:[(0,b.jsxs)("ol",{className:"mb-3 list-decimal pl-5 text-[13px] text-ink-soft",children:[(0,b.jsx)("li",{children:"Scan this QR code with your authenticator app."}),(0,b.jsx)("li",{children:"Type the 6-digit code it shows."})]}),(0,b.jsx)("img",{src:a.qr,alt:"QR code for your authenticator app",className:"mx-auto mb-3 size-44 rounded-lg bg-white p-2"}),(0,b.jsxs)("p",{className:"mb-3 text-center text-[12.5px] text-ink-soft",children:["Can't scan? Enter this key: ",(0,b.jsx)("code",{className:"font-mono break-all text-ink",children:a.secret})]}),(0,b.jsx)("input",{type:"hidden",name:"factorId",value:a.factorId}),(0,b.jsx)(d.O,{id:"code",label:"Code",error:"error"===k.status?k.message:void 0,children:(0,b.jsx)("input",{id:"code",name:"code",inputMode:"numeric",autoComplete:"one-time-code",pattern:"[0-9 ]{6,7}",maxLength:7,required:!0,className:`${d.S} font-mono tracking-widest`,placeholder:"123456"})}),(0,b.jsx)(d.K,{type:"submit",variant:"primary",className:"w-full justify-center",disabled:m||n,children:n?"Opening the console…":m?"Checking…":"Turn on"})]}):(0,b.jsxs)(b.Fragment,{children:[a&&!a.ok&&(0,b.jsx)("div",{className:"mb-3",children:(0,b.jsx)(d.M,{tone:"danger",title:a.error})}),(0,b.jsx)(d.K,{variant:"primary",className:"w-full justify-center",disabled:i,onClick:()=>j(async()=>e(await g())),children:i?"Preparing…":"Set up authenticator"})]})}],829254)}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=src_app_mfa_setup_setup-flow_tsx_1fpwygr2vdgnh._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[779798,a=>{"use strict";var b=a.i(907997),c=a.i(592708),d=a.i(617084),e=a.i(196081);a.i(570396);var f=a.i(673727),g=a.i(800717),h=a.i(252302),i=a.i(686251),j=a.i(149396),k=a.i(470253),l=a.i(245710);async function m(){return[]}let n=(0,g.cache)(async a=>{let b=(0,k.P)(a);return b?(0,j.t)(b,new Date):null});async function o({params:a}){let b=await n((await a).slug);return{title:b?b.title:"No status page here",robots:{index:!1,follow:!1}}}function p({state:a,title:c,children:d}){return(0,b.jsxs)("div",{className:"flex items-start gap-2.5 rounded-lg border border-brand/25 bg-brand-soft px-3.5 py-2.5",role:"status",children:[(0,b.jsx)("span",{className:"mt-px",children:(0,b.jsx)(i.Z,{state:a,size:18})}),(0,b.jsxs)("div",{children:[(0,b.jsx)("b",{className:"block font-medium",children:c}),d&&(0,b.jsx)("p",{className:"mt-0.5 text-[13px] text-ink-soft",children:d})]})]})}async function q({params:a}){let{slug:g}=await a,[j,m]=await Promise.all([n(g),(0,e.X)().catch(()=>d.l)]);j||(0,f.notFound)();let o=(0,k.W)(j.monitors);return(0,b.jsxs)("main",{className:"mx-auto flex max-w-[760px] flex-col gap-4 px-4 pb-12 pt-8",children:[(0,b.jsxs)("header",{className:"flex items-center gap-3",children:[(0,b.jsx)(c.f,{name:(0,d.X)(m),hasLogo:m.hasLogo}),(0,b.jsxs)("div",{className:"min-w-0",children:[m.name&&(0,b.jsx)("p",{className:"m-0 text-[12.5px] font-medium text-ink-soft",children:m.name}),(0,b.jsx)("h1",{className:"text-[20px]",children:j.title}),(0,b.jsxs)("p",{className:"mt-0.5 text-ink-soft",children:["Updated every minute · times in ",(0,l.D)()]})]})]}),o&&(0,b.jsxs)("p",{className:"m-0 flex items-center gap-2 text-[17px] font-medium",role:"status",children:[(0,b.jsx)(i.Z,{state:o.state,size:20}),o.text]}),j.announcement&&(0,b.jsx)(p,{state:"info",title:j.announcement}),j.maintenance.map((a,c)=>(0,b.jsxs)(p,{state:"maint",title:a.active?"Maintenance now":"Scheduled maintenance",children:[`${a.from}–${a.to} ${(0,l.D)()}.`,a.note&&` ${a.note}`]},c)),(0,b.jsxs)("section",{className:"min-w-0 rounded-lg border border-line bg-surface",children:[0===j.monitors.length&&(0,b.jsx)("p",{className:"px-[18px] py-4 text-ink-soft",children:"No services on this page yet."}),j.monitors.map(a=>(0,b.jsxs)("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] items-center gap-x-3 gap-y-1.5 border-t border-line px-[18px] py-3 first:border-t-0",children:[(0,b.jsx)("b",{className:"min-w-0 truncate font-medium",children:a.name}),(0,b.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,b.jsx)(i.F,{state:a.state,children:a.label}),(0,b.jsx)("span",{className:"font-mono text-[12.5px] text-ink-faint",children:a.uptime})]}),(0,b.jsx)("div",{className:"col-span-full min-w-0 overflow-x-auto",children:(0,b.jsx)(h.n,{bars:a.bars.map((a,b)=>({day:String(b),tone:a.tone,title:a.title}))})})]},a.badge))]}),(0,b.jsx)("p",{className:"m-0 text-[12.5px] text-ink-faint",children:"Last 90 days. Grey means no data, blue means maintenance (not counted)."}),m.name&&m.poweredBy&&(0,b.jsx)("p",{className:"m-0 text-[11.5px] text-ink-faint",children:"Powered by Watchbell"})]})}a.s(["default",0,q,"dynamicParams",0,!0,"generateMetadata",0,o,"generateStaticParams",0,m,"revalidate",0,60])},475787,function(a){a.n(a.i(779798))}];
|
|
1
|
+
module.exports=[779798,a=>{"use strict";var b=a.i(907997),c=a.i(592708),d=a.i(617084),e=a.i(196081);a.i(570396);var f=a.i(673727),g=a.i(800717),h=a.i(252302),i=a.i(686251),j=a.i(149396),k=a.i(470253),l=a.i(245710);async function m(){return[]}let n=(0,g.cache)(async a=>{let b=(0,k.P)(a);return b?(0,j.t)(b,new Date):null});async function o({params:a}){let b=await n((await a).slug);return{title:b?b.title:"No status page here",robots:{index:!1,follow:!1}}}function p({state:a,title:c,children:d}){return(0,b.jsxs)("div",{className:"flex items-start gap-2.5 rounded-lg border border-brand/25 bg-brand-soft px-3.5 py-2.5",role:"status",children:[(0,b.jsx)("span",{className:"mt-px",children:(0,b.jsx)(i.Z,{state:a,size:18})}),(0,b.jsxs)("div",{children:[(0,b.jsx)("b",{className:"block font-medium",children:c}),d&&(0,b.jsx)("p",{className:"mt-0.5 text-[13px] text-ink-soft",children:d})]})]})}async function q({params:a}){let{slug:g}=await a,[j,m]=await Promise.all([n(g),(0,e.X)().catch(()=>d.l)]);j||(0,f.notFound)();let o=(0,k.W)(j.monitors);return(0,b.jsxs)("main",{className:"mx-auto flex max-w-[760px] flex-col gap-4 px-4 pb-12 pt-8",children:[(0,b.jsxs)("header",{className:"flex items-center gap-3",children:[(0,b.jsx)(c.f,{name:(0,d.X)(m),hasLogo:m.hasLogo,logoVersion:m.logoVersion}),(0,b.jsxs)("div",{className:"min-w-0",children:[m.name&&(0,b.jsx)("p",{className:"m-0 text-[12.5px] font-medium text-ink-soft",children:m.name}),(0,b.jsx)("h1",{className:"text-[20px]",children:j.title}),(0,b.jsxs)("p",{className:"mt-0.5 text-ink-soft",children:["Updated every minute · times in ",(0,l.D)()]})]})]}),o&&(0,b.jsxs)("p",{className:"m-0 flex items-center gap-2 text-[17px] font-medium",role:"status",children:[(0,b.jsx)(i.Z,{state:o.state,size:20}),o.text]}),j.announcement&&(0,b.jsx)(p,{state:"info",title:j.announcement}),j.maintenance.map((a,c)=>(0,b.jsxs)(p,{state:"maint",title:a.active?"Maintenance now":"Scheduled maintenance",children:[`${a.from}–${a.to} ${(0,l.D)()}.`,a.note&&` ${a.note}`]},c)),(0,b.jsxs)("section",{className:"min-w-0 rounded-lg border border-line bg-surface",children:[0===j.monitors.length&&(0,b.jsx)("p",{className:"px-[18px] py-4 text-ink-soft",children:"No services on this page yet."}),j.monitors.map(a=>(0,b.jsxs)("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] items-center gap-x-3 gap-y-1.5 border-t border-line px-[18px] py-3 first:border-t-0",children:[(0,b.jsx)("b",{className:"min-w-0 truncate font-medium",children:a.name}),(0,b.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,b.jsx)(i.F,{state:a.state,children:a.label}),(0,b.jsx)("span",{className:"font-mono text-[12.5px] text-ink-faint",children:a.uptime})]}),(0,b.jsx)("div",{className:"col-span-full min-w-0 overflow-x-auto",children:(0,b.jsx)(h.n,{bars:a.bars.map((a,b)=>({day:String(b),tone:a.tone,title:a.title}))})})]},a.badge))]}),(0,b.jsx)("p",{className:"m-0 text-[12.5px] text-ink-faint",children:"Last 90 days. Grey means no data, blue means maintenance (not counted)."}),m.name&&m.poweredBy&&(0,b.jsx)("p",{className:"m-0 text-[11.5px] text-ink-faint",children:"Powered by Watchbell"})]})}a.s(["default",0,q,"dynamicParams",0,!0,"generateMetadata",0,o,"generateStaticParams",0,m,"revalidate",0,60])},475787,function(a){a.n(a.i(779798))}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=src_app_s_%5Bslug%5D_page_tsx_0jjqe6py82mpb._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[505281,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(619089),e=a.i(405050);let f=(0,e.createServerReference)("
|
|
1
|
+
module.exports=[505281,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(619089),e=a.i(405050);let f=(0,e.createServerReference)("60e7b63921c65598825139a16903a834332e022242",e.callServer,void 0,e.findSourceMapURL,"submitSetup");a.s(["SetupForm",0,function(){let[a,e,g]=(0,c.useActionState)(f,{status:"idle"}),h=b=>"error"===a.status&&a.field===b?a.message:void 0,i="error"===a.status?a:{code:"",email:""},j="error"!==a.status||a.field?void 0:a.message;return(0,b.jsxs)("form",{action:e,children:[(0,b.jsx)(d.O,{id:"code",label:"Setup code",error:h("code"),children:(0,b.jsx)("input",{id:"code",name:"code",autoComplete:"off",spellCheck:!1,defaultValue:i.code,placeholder:"XXXXX-XXXXX",maxLength:20,required:!0,className:`${d.S} font-mono uppercase tracking-widest`})}),(0,b.jsx)(d.O,{id:"email",label:"Email",error:h("email"),children:(0,b.jsx)("input",{id:"email",name:"email",type:"email",defaultValue:i.email,autoComplete:"email",placeholder:"name@example.com",required:!0,className:d.S})}),(0,b.jsx)(d.O,{id:"password",label:"Password",help:"At least 12 characters.",error:h("password"),children:(0,b.jsx)("input",{id:"password",name:"password",type:"password",autoComplete:"new-password",minLength:12,maxLength:200,required:!0,className:d.S})}),(0,b.jsx)(d.O,{id:"confirm",label:"Confirm password",error:h("confirm"),children:(0,b.jsx)("input",{id:"confirm",name:"confirm",type:"password",autoComplete:"new-password",minLength:12,maxLength:200,required:!0,className:d.S})}),j&&(0,b.jsx)("p",{className:"mb-3.5 text-[12.5px] text-err",role:"alert",children:j}),(0,b.jsx)(d.K,{type:"submit",variant:"primary",className:"w-full justify-center",disabled:g,children:g?"Creating…":"Create owner account"}),(0,b.jsx)("p",{className:"mt-4 text-[12.5px] text-ink-faint",children:"Next you'll add an authenticator app. Owners always sign in with a code."})]},"error"===a.status?`${a.message}:${i.code}:${i.email}`:"idle")}],505281)}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=src_app_setup_setup-form_tsx_0izoagdur96e1._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[[9805,a=>{let b=(0,a.i(211857).registerClientReference)(function(){throw Error("Attempted to call DemoSignInForm() from the server but DemoSignInForm is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/app/signin/demo-form.tsx","DemoSignInForm");a.s(["DemoSignInForm",0,b])},300527,a=>{var b=a.i(9805);a.n(b)},244925,a=>{var b=a.i(907997),c=a.i(592708),d=a.i(617084),e=a.i(196081),f=a.i(803681),g=a.i(492665),h=a.i(371289),i=a.i(300527),j=a.i(542730),k=a.i(961603);let l={link:"That link is invalid or has expired. Send a new one.","not-member":"That email isn't on this console. Ask an owner to invite you.","session-ended":"Your session ended. Sign in again."},m={...l,"not-member":"That account isn't on this console. Ask an owner to add you."};async function n({searchParams:a}){let{error:o,next:p}=await a,q=(0,h.F)(),r=q?m:l,s="string"==typeof p?p:void 0,t=await (0,e.X)().catch(()=>d.l),u=(0,d.u)(t);return(0,b.jsx)("main",{className:"grid min-h-screen place-items-center px-4 py-6",children:(0,b.jsxs)("div",{className:"w-[400px] max-w-full rounded-xl border border-line bg-surface p-7",children:[u&&(0,b.jsx)("style",{children:u}),(0,b.jsx)(c.f,{name:(0,d.X)(t),hasLogo:t.hasLogo,className:"mb-[18px]"}),o&&r[o]&&(0,b.jsx)("div",{className:"mb-4",children:(0,b.jsx)(f.M,{tone:"warning",title:r[o]})}),(0,h.W)()?(0,b.jsx)(i.DemoSignInForm,{next:s}):q?(0,b.jsx)(j.PasswordSignInForm,{next:s,appName:(0,d.X)(t)}):(0,b.jsx)(k.SignInForm,{siteKey:(0,g.f)().NEXT_PUBLIC_TURNSTILE_SITE_KEY,appName:(0,d.X)(t)}),t.name&&t.poweredBy&&(0,b.jsx)("p",{className:"mt-5 mb-0 text-center text-[11.5px] text-ink-faint",children:"Powered by Watchbell"})]})})}a.s(["default",0,n])},998981,a=>{let b=(0,a.i(211857).registerClientReference)(function(){throw Error("Attempted to call PasswordSignInForm() from the server but PasswordSignInForm is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/app/signin/password-form.tsx","PasswordSignInForm");a.s(["PasswordSignInForm",0,b])},542730,a=>{var b=a.i(998981);a.n(b)},465274,a=>{let b=(0,a.i(211857).registerClientReference)(function(){throw Error("Attempted to call SignInForm() from the server but SignInForm is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/app/signin/signin-form.tsx","SignInForm");a.s(["SignInForm",0,b])},961603,a=>{var b=a.i(465274);a.n(b)}],101289,function(a){a.n(a.i(244925))}];
|
|
1
|
+
module.exports=[[9805,a=>{let b=(0,a.i(211857).registerClientReference)(function(){throw Error("Attempted to call DemoSignInForm() from the server but DemoSignInForm is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/app/signin/demo-form.tsx","DemoSignInForm");a.s(["DemoSignInForm",0,b])},300527,a=>{var b=a.i(9805);a.n(b)},244925,a=>{var b=a.i(907997),c=a.i(592708),d=a.i(617084),e=a.i(196081),f=a.i(803681),g=a.i(492665),h=a.i(371289),i=a.i(300527),j=a.i(542730),k=a.i(961603);let l={link:"That link is invalid or has expired. Send a new one.","not-member":"That email isn't on this console. Ask an owner to invite you.","session-ended":"Your session ended. Sign in again."},m={...l,"not-member":"That account isn't on this console. Ask an owner to add you."};async function n({searchParams:a}){let{error:o,next:p}=await a,q=(0,h.F)(),r=q?m:l,s="string"==typeof p?p:void 0,t=await (0,e.X)().catch(()=>d.l),u=(0,d.u)(t);return(0,b.jsx)("main",{className:"grid min-h-screen place-items-center px-4 py-6",children:(0,b.jsxs)("div",{className:"w-[400px] max-w-full rounded-xl border border-line bg-surface p-7",children:[u&&(0,b.jsx)("style",{children:u}),(0,b.jsx)(c.f,{name:(0,d.X)(t),hasLogo:t.hasLogo,logoVersion:t.logoVersion,className:"mb-[18px]"}),o&&r[o]&&(0,b.jsx)("div",{className:"mb-4",children:(0,b.jsx)(f.M,{tone:"warning",title:r[o]})}),(0,h.W)()?(0,b.jsx)(i.DemoSignInForm,{next:s}):q?(0,b.jsx)(j.PasswordSignInForm,{next:s,appName:(0,d.X)(t)}):(0,b.jsx)(k.SignInForm,{siteKey:(0,g.f)().NEXT_PUBLIC_TURNSTILE_SITE_KEY,appName:(0,d.X)(t)}),t.name&&t.poweredBy&&(0,b.jsx)("p",{className:"mt-5 mb-0 text-center text-[11.5px] text-ink-faint",children:"Powered by Watchbell"})]})})}a.s(["default",0,n])},998981,a=>{let b=(0,a.i(211857).registerClientReference)(function(){throw Error("Attempted to call PasswordSignInForm() from the server but PasswordSignInForm is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/app/signin/password-form.tsx","PasswordSignInForm");a.s(["PasswordSignInForm",0,b])},542730,a=>{var b=a.i(998981);a.n(b)},465274,a=>{let b=(0,a.i(211857).registerClientReference)(function(){throw Error("Attempted to call SignInForm() from the server but SignInForm is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/app/signin/signin-form.tsx","SignInForm");a.s(["SignInForm",0,b])},961603,a=>{var b=a.i(465274);a.n(b)}],101289,function(a){a.n(a.i(244925))}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=src_app_signin_1_sp0qx8_z7c9._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
(()=>{"use strict";module.exports=[
|
|
1
|
+
(()=>{"use strict";module.exports=[933473,a=>{var b=a.i(405050);let c=(0,b.createServerReference)("603b2e64fde6ef399a8b12d4b078ed8cc4bb2f368f",b.callServer,void 0,b.findSourceMapURL,"signInWithPassword");a.s(["f",0,c])},625104,a=>{var b=a.i(187924),c=a.i(572131),d=a.i(619089);let e="demo@watchbell.west-solutions.web.id",f="watchbell-demo";var g=a.i(933473);a.s(["DemoSignInForm",0,function({next:a}){let[h,i,j]=(0,c.useActionState)(g.f,{status:"idle"}),k=(0,c.useRef)(null),l=(0,c.useRef)(null);return(0,b.jsxs)("form",{action:i,children:[(0,b.jsx)("h1",{className:"mb-1 text-xl",children:"Try the Watchbell demo"}),(0,b.jsx)("p",{className:"mb-[18px] text-ink-soft",children:"Sign in with the demo account to look around a console full of made-up data of your own."}),(0,b.jsxs)("div",{className:"mb-[18px] rounded-lg border border-line bg-sunken px-3.5 py-3",children:[(0,b.jsxs)("dl",{className:"mb-2.5 grid grid-cols-[auto_1fr] gap-x-3 gap-y-1 text-[13px]",children:[(0,b.jsx)("dt",{className:"text-ink-soft",children:"Email"}),(0,b.jsx)("dd",{className:"break-all font-mono",children:e}),(0,b.jsx)("dt",{className:"text-ink-soft",children:"Password"}),(0,b.jsx)("dd",{className:"font-mono",children:f})]}),(0,b.jsx)(d.K,{size:"sm",onClick:()=>{k.current&&(k.current.value=e),l.current&&(l.current.value=f),l.current?.focus()},children:"Use demo account"})]}),a&&(0,b.jsx)("input",{type:"hidden",name:"next",value:a}),(0,b.jsx)(d.O,{id:"email",label:"Email",error:"error"===h.status&&"email"===h.field?h.message:void 0,children:(0,b.jsx)("input",{ref:k,id:"email",name:"email",type:"email",autoComplete:"username",placeholder:"name@example.com",required:!0,maxLength:254,defaultValue:"error"===h.status?h.email:void 0,className:d.S})}),(0,b.jsx)(d.O,{id:"password",label:"Password",error:"error"===h.status&&"email"!==h.field?h.message:void 0,children:(0,b.jsx)("input",{ref:l,id:"password",name:"password",type:"password",autoComplete:"current-password",required:!0,maxLength:200,className:d.S})}),(0,b.jsx)(d.K,{type:"submit",variant:"primary",className:"w-full justify-center",disabled:j,children:j?"Signing in…":"Sign in"}),(0,b.jsx)("p",{className:"mt-4 text-[12.5px] text-ink-faint",children:"Or use any email and password. Every sign-in, the demo account too, gets its own made-up data."})]})}],625104)},318465,a=>{var b=a.i(187924),c=a.i(572131),d=a.i(619089),e=a.i(933473);a.s(["PasswordSignInForm",0,function({next:a,appName:f="Watchbell"}){let[g,h,i]=(0,c.useActionState)(e.f,{status:"idle"});return(0,b.jsxs)("form",{action:h,children:[(0,b.jsxs)("h1",{className:"mb-1 text-xl",children:["Sign in to ",f]}),(0,b.jsx)("p",{className:"mb-[18px] text-ink-soft",children:"Use the email and password an owner set up for you."}),a&&(0,b.jsx)("input",{type:"hidden",name:"next",value:a}),(0,b.jsx)(d.O,{id:"email",label:"Email",children:(0,b.jsx)("input",{id:"email",name:"email",type:"email",autoComplete:"username",placeholder:"name@example.com",required:!0,defaultValue:"error"===g.status?g.email:void 0,className:d.S})}),(0,b.jsx)(d.O,{id:"password",label:"Password",error:"error"===g.status?g.message:void 0,children:(0,b.jsx)("input",{id:"password",name:"password",type:"password",autoComplete:"current-password",required:!0,maxLength:1024,className:d.S})}),(0,b.jsx)(d.K,{type:"submit",variant:"primary",className:"w-full justify-center",disabled:i,children:i?"Signing in…":"Sign in"}),(0,b.jsxs)("p",{className:"mt-4 text-[12.5px] text-ink-faint",children:["Forgot your password? Ask an owner to reset it. If you are the owner, stop Watchbell and run"," ",(0,b.jsx)("code",{className:"font-mono text-ink-soft",children:"watchbell reset-login you@example.com"})," on the machine it runs on (from an installer: ",(0,b.jsx)("code",{className:"font-mono text-ink-soft",children:"npm run reset-login -- you@example.com"})," in its app folder)."]})]})}])},59558,a=>{var b=a.i(187924),c=a.i(572131),d=a.i(619089);let e="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit";function f({siteKey:a}){let d=(0,c.useRef)(null),[g,h]=(0,c.useState)(!1);return((0,c.useEffect)(()=>{let b,c=!1;return(window.turnstile?Promise.resolve(window.turnstile):new Promise((a,b)=>{let c=document.querySelector(`script[src="${e}"]`);c||((c=document.createElement("script")).src=e,c.async=!0,document.head.appendChild(c));let d=c;d.addEventListener("load",()=>window.turnstile?a(window.turnstile):b(Error("turnstile"))),d.addEventListener("error",()=>{d.remove(),b(Error("turnstile"))})})).then(e=>{!c&&d.current&&(b=e.render(d.current,{sitekey:a,action:"signin",theme:"auto"}))}).catch(()=>{console.warn("bot check failed to load"),c||h(!0)}),()=>{c=!0,b&&window.turnstile&&window.turnstile.remove(b)}},[a]),g)?(0,b.jsx)("p",{role:"alert",className:"mb-3.5 text-[13px] text-err",children:"The bot check couldn't load. Check your connection and reload the page."}):(0,b.jsx)("div",{ref:d,className:"mb-3.5 min-h-[65px]"})}var g=a.i(405050);let h=(0,g.createServerReference)("609714f86b7475b09b620d43573a5159f7ac5cae05",g.callServer,void 0,g.findSourceMapURL,"sendSignInLink");a.s(["SignInForm",0,function({siteKey:a,appName:e="Watchbell"}){let[g,i,j]=(0,c.useActionState)(h,{status:"idle"}),[k,l]=(0,c.useState)(!1),[m,n]=(0,c.useState)(0);return"sent"!==g.status||k?(0,b.jsxs)("form",{action:a=>{l(!1),n(a=>a+1),i(a)},children:[(0,b.jsxs)("h1",{className:"mb-1 text-xl",children:["Sign in to ",e]}),(0,b.jsx)("p",{className:"mb-[18px] text-ink-soft",children:"We'll email you a sign-in link. Only invited people can get in."}),(0,b.jsx)(d.O,{id:"email",label:"Email",error:"error"===g.status?g.message:void 0,children:(0,b.jsx)("input",{id:"email",name:"email",type:"email",autoComplete:"email",placeholder:"name@example.com",required:!0,className:d.S})}),(0,b.jsx)(f,{siteKey:a},m),(0,b.jsx)(d.K,{type:"submit",variant:"primary",className:"w-full justify-center",disabled:j,children:j?"Sending…":"Send sign-in link"}),(0,b.jsx)("p",{className:"mt-4 text-[12.5px] text-ink-faint",children:"Can't get in? Ask an owner to invite you."})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("h1",{className:"mb-1 text-xl",children:"Check your email"}),(0,b.jsxs)("p",{className:"mb-[18px] text-ink-soft",children:["If ",g.email," is invited, a sign-in link is on its way. It works for 1 hour."]}),(0,b.jsx)(d.K,{className:"w-full justify-center",onClick:()=>l(!0),children:"Use a different email"})]})}],59558)}]})();
|
|
2
2
|
|
|
3
|
-
//# sourceMappingURL=
|
|
3
|
+
//# sourceMappingURL=src_app_signin_1qq0_77_vdutm._.js.map
|