watchbell 1.2.4 → 1.2.6

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.
Files changed (678) hide show
  1. package/package.json +1 -1
  2. package/server/.next/BUILD_ID +1 -1
  3. package/server/.next/build-manifest.json +3 -3
  4. package/server/.next/prerender-manifest.json +3 -3
  5. package/server/.next/required-server-files.json +1 -1
  6. package/server/.next/server/app/(console)/(private)/ai/agents/page/server-reference-manifest.json +22 -12
  7. package/server/.next/server/app/(console)/(private)/ai/agents/page.js +60 -60
  8. package/server/.next/server/app/(console)/(private)/ai/agents/page.js.nft.json +1 -1
  9. package/server/.next/server/app/(console)/(private)/ai/agents/page_client-reference-manifest.js +1 -1
  10. package/server/.next/server/app/(console)/(private)/ai/ask/page/server-reference-manifest.json +21 -11
  11. package/server/.next/server/app/(console)/(private)/ai/ask/page.js +60 -60
  12. package/server/.next/server/app/(console)/(private)/ai/ask/page.js.nft.json +1 -1
  13. package/server/.next/server/app/(console)/(private)/ai/ask/page_client-reference-manifest.js +1 -1
  14. package/server/.next/server/app/(console)/(private)/ai/connect/page/server-reference-manifest.json +20 -10
  15. package/server/.next/server/app/(console)/(private)/ai/connect/page.js +60 -60
  16. package/server/.next/server/app/(console)/(private)/ai/connect/page.js.nft.json +1 -1
  17. package/server/.next/server/app/(console)/(private)/ai/connect/page_client-reference-manifest.js +1 -1
  18. package/server/.next/server/app/(console)/(private)/ai/keys/page/server-reference-manifest.json +23 -13
  19. package/server/.next/server/app/(console)/(private)/ai/keys/page.js +60 -60
  20. package/server/.next/server/app/(console)/(private)/ai/keys/page.js.nft.json +1 -1
  21. package/server/.next/server/app/(console)/(private)/ai/keys/page_client-reference-manifest.js +1 -1
  22. package/server/.next/server/app/(console)/(private)/ai/logs/page/server-reference-manifest.json +21 -11
  23. package/server/.next/server/app/(console)/(private)/ai/logs/page.js +60 -60
  24. package/server/.next/server/app/(console)/(private)/ai/logs/page.js.nft.json +1 -1
  25. package/server/.next/server/app/(console)/(private)/ai/logs/page_client-reference-manifest.js +1 -1
  26. package/server/.next/server/app/(console)/(private)/ai/models/page/server-reference-manifest.json +30 -20
  27. package/server/.next/server/app/(console)/(private)/ai/models/page.js +60 -60
  28. package/server/.next/server/app/(console)/(private)/ai/models/page.js.nft.json +1 -1
  29. package/server/.next/server/app/(console)/(private)/ai/models/page_client-reference-manifest.js +1 -1
  30. package/server/.next/server/app/(console)/(private)/ai/page/server-reference-manifest.json +20 -10
  31. package/server/.next/server/app/(console)/(private)/ai/page.js +60 -60
  32. package/server/.next/server/app/(console)/(private)/ai/page.js.nft.json +1 -1
  33. package/server/.next/server/app/(console)/(private)/ai/page_client-reference-manifest.js +1 -1
  34. package/server/.next/server/app/(console)/(private)/ai/playground/page/server-reference-manifest.json +23 -13
  35. package/server/.next/server/app/(console)/(private)/ai/playground/page.js +60 -60
  36. package/server/.next/server/app/(console)/(private)/ai/playground/page.js.nft.json +1 -1
  37. package/server/.next/server/app/(console)/(private)/ai/playground/page_client-reference-manifest.js +1 -1
  38. package/server/.next/server/app/(console)/(private)/ai/providers/page/server-reference-manifest.json +26 -16
  39. package/server/.next/server/app/(console)/(private)/ai/providers/page.js +60 -60
  40. package/server/.next/server/app/(console)/(private)/ai/providers/page.js.nft.json +1 -1
  41. package/server/.next/server/app/(console)/(private)/ai/providers/page_client-reference-manifest.js +1 -1
  42. package/server/.next/server/app/(console)/(private)/ai/quota/page/server-reference-manifest.json +21 -11
  43. package/server/.next/server/app/(console)/(private)/ai/quota/page.js +60 -60
  44. package/server/.next/server/app/(console)/(private)/ai/quota/page.js.nft.json +1 -1
  45. package/server/.next/server/app/(console)/(private)/ai/quota/page_client-reference-manifest.js +1 -1
  46. package/server/.next/server/app/(console)/(private)/ai/usage/page/server-reference-manifest.json +21 -11
  47. package/server/.next/server/app/(console)/(private)/ai/usage/page.js +60 -60
  48. package/server/.next/server/app/(console)/(private)/ai/usage/page.js.nft.json +1 -1
  49. package/server/.next/server/app/(console)/(private)/ai/usage/page_client-reference-manifest.js +1 -1
  50. package/server/.next/server/app/(console)/(private)/api-docs/[[...op]]/page/server-reference-manifest.json +20 -10
  51. package/server/.next/server/app/(console)/(private)/api-docs/[[...op]]/page.js +60 -60
  52. package/server/.next/server/app/(console)/(private)/api-docs/[[...op]]/page.js.nft.json +1 -1
  53. package/server/.next/server/app/(console)/(private)/api-docs/[[...op]]/page_client-reference-manifest.js +1 -1
  54. package/server/.next/server/app/(console)/(private)/auto-actions/page/server-reference-manifest.json +21 -11
  55. package/server/.next/server/app/(console)/(private)/auto-actions/page.js +60 -60
  56. package/server/.next/server/app/(console)/(private)/auto-actions/page.js.nft.json +1 -1
  57. package/server/.next/server/app/(console)/(private)/auto-actions/page_client-reference-manifest.js +1 -1
  58. package/server/.next/server/app/(console)/alerts/page/server-reference-manifest.json +36 -26
  59. package/server/.next/server/app/(console)/alerts/page.js +60 -60
  60. package/server/.next/server/app/(console)/alerts/page.js.nft.json +1 -1
  61. package/server/.next/server/app/(console)/alerts/page_client-reference-manifest.js +1 -1
  62. package/server/.next/server/app/(console)/apps/[id]/page/server-reference-manifest.json +37 -27
  63. package/server/.next/server/app/(console)/apps/[id]/page.js +60 -60
  64. package/server/.next/server/app/(console)/apps/[id]/page.js.nft.json +1 -1
  65. package/server/.next/server/app/(console)/apps/[id]/page_client-reference-manifest.js +1 -1
  66. package/server/.next/server/app/(console)/apps/page/server-reference-manifest.json +23 -13
  67. package/server/.next/server/app/(console)/apps/page.js +60 -60
  68. package/server/.next/server/app/(console)/apps/page.js.nft.json +1 -1
  69. package/server/.next/server/app/(console)/apps/page_client-reference-manifest.js +1 -1
  70. package/server/.next/server/app/(console)/backups/page/server-reference-manifest.json +23 -13
  71. package/server/.next/server/app/(console)/backups/page.js +60 -60
  72. package/server/.next/server/app/(console)/backups/page.js.nft.json +1 -1
  73. package/server/.next/server/app/(console)/backups/page_client-reference-manifest.js +1 -1
  74. package/server/.next/server/app/(console)/catalog/page/server-reference-manifest.json +20 -10
  75. package/server/.next/server/app/(console)/catalog/page.js +60 -60
  76. package/server/.next/server/app/(console)/catalog/page.js.nft.json +1 -1
  77. package/server/.next/server/app/(console)/catalog/page_client-reference-manifest.js +1 -1
  78. package/server/.next/server/app/(console)/connections/page/server-reference-manifest.json +31 -21
  79. package/server/.next/server/app/(console)/connections/page.js +60 -60
  80. package/server/.next/server/app/(console)/connections/page.js.nft.json +1 -1
  81. package/server/.next/server/app/(console)/connections/page_client-reference-manifest.js +1 -1
  82. package/server/.next/server/app/(console)/d1/page/server-reference-manifest.json +20 -10
  83. package/server/.next/server/app/(console)/d1/page.js +60 -60
  84. package/server/.next/server/app/(console)/d1/page.js.nft.json +1 -1
  85. package/server/.next/server/app/(console)/d1/page_client-reference-manifest.js +1 -1
  86. package/server/.next/server/app/(console)/deployments/page/server-reference-manifest.json +26 -16
  87. package/server/.next/server/app/(console)/deployments/page.js +60 -60
  88. package/server/.next/server/app/(console)/deployments/page.js.nft.json +1 -1
  89. package/server/.next/server/app/(console)/deployments/page_client-reference-manifest.js +1 -1
  90. package/server/.next/server/app/(console)/dns/page/server-reference-manifest.json +27 -17
  91. package/server/.next/server/app/(console)/dns/page.js +60 -60
  92. package/server/.next/server/app/(console)/dns/page.js.nft.json +1 -1
  93. package/server/.next/server/app/(console)/dns/page_client-reference-manifest.js +1 -1
  94. package/server/.next/server/app/(console)/domains/page/server-reference-manifest.json +22 -12
  95. package/server/.next/server/app/(console)/domains/page.js +60 -60
  96. package/server/.next/server/app/(console)/domains/page.js.nft.json +1 -1
  97. package/server/.next/server/app/(console)/domains/page_client-reference-manifest.js +1 -1
  98. package/server/.next/server/app/(console)/events/page/server-reference-manifest.json +20 -10
  99. package/server/.next/server/app/(console)/events/page.js +60 -60
  100. package/server/.next/server/app/(console)/events/page.js.nft.json +1 -1
  101. package/server/.next/server/app/(console)/events/page_client-reference-manifest.js +1 -1
  102. package/server/.next/server/app/(console)/firebase/page/server-reference-manifest.json +27 -17
  103. package/server/.next/server/app/(console)/firebase/page.js +60 -60
  104. package/server/.next/server/app/(console)/firebase/page.js.nft.json +1 -1
  105. package/server/.next/server/app/(console)/firebase/page_client-reference-manifest.js +1 -1
  106. package/server/.next/server/app/(console)/logs/page/server-reference-manifest.json +21 -11
  107. package/server/.next/server/app/(console)/logs/page.js +60 -60
  108. package/server/.next/server/app/(console)/logs/page.js.nft.json +1 -1
  109. package/server/.next/server/app/(console)/logs/page_client-reference-manifest.js +1 -1
  110. package/server/.next/server/app/(console)/manage/sections/page/server-reference-manifest.json +21 -11
  111. package/server/.next/server/app/(console)/manage/sections/page.js +60 -60
  112. package/server/.next/server/app/(console)/manage/sections/page.js.nft.json +1 -1
  113. package/server/.next/server/app/(console)/manage/sections/page_client-reference-manifest.js +1 -1
  114. package/server/.next/server/app/(console)/neon/page/server-reference-manifest.json +31 -21
  115. package/server/.next/server/app/(console)/neon/page.js +60 -60
  116. package/server/.next/server/app/(console)/neon/page.js.nft.json +1 -1
  117. package/server/.next/server/app/(console)/neon/page_client-reference-manifest.js +1 -1
  118. package/server/.next/server/app/(console)/overview/page/server-reference-manifest.json +30 -20
  119. package/server/.next/server/app/(console)/overview/page.js +60 -60
  120. package/server/.next/server/app/(console)/overview/page.js.nft.json +1 -1
  121. package/server/.next/server/app/(console)/overview/page_client-reference-manifest.js +1 -1
  122. package/server/.next/server/app/(console)/repos/[id]/page/server-reference-manifest.json +21 -11
  123. package/server/.next/server/app/(console)/repos/[id]/page.js +60 -60
  124. package/server/.next/server/app/(console)/repos/[id]/page.js.nft.json +1 -1
  125. package/server/.next/server/app/(console)/repos/[id]/page_client-reference-manifest.js +1 -1
  126. package/server/.next/server/app/(console)/repos/page/server-reference-manifest.json +20 -10
  127. package/server/.next/server/app/(console)/repos/page.js +60 -60
  128. package/server/.next/server/app/(console)/repos/page.js.nft.json +1 -1
  129. package/server/.next/server/app/(console)/repos/page_client-reference-manifest.js +1 -1
  130. package/server/.next/server/app/(console)/settings/page/server-reference-manifest.json +30 -20
  131. package/server/.next/server/app/(console)/settings/page.js +60 -60
  132. package/server/.next/server/app/(console)/settings/page.js.nft.json +1 -1
  133. package/server/.next/server/app/(console)/settings/page_client-reference-manifest.js +1 -1
  134. package/server/.next/server/app/(console)/sql/page/server-reference-manifest.json +27 -17
  135. package/server/.next/server/app/(console)/sql/page.js +60 -60
  136. package/server/.next/server/app/(console)/sql/page.js.nft.json +1 -1
  137. package/server/.next/server/app/(console)/sql/page_client-reference-manifest.js +1 -1
  138. package/server/.next/server/app/(console)/status/page/server-reference-manifest.json +20 -10
  139. package/server/.next/server/app/(console)/status/page.js +60 -60
  140. package/server/.next/server/app/(console)/status/page.js.nft.json +1 -1
  141. package/server/.next/server/app/(console)/status/page_client-reference-manifest.js +1 -1
  142. package/server/.next/server/app/(console)/supabase/page/server-reference-manifest.json +41 -31
  143. package/server/.next/server/app/(console)/supabase/page.js +60 -60
  144. package/server/.next/server/app/(console)/supabase/page.js.nft.json +1 -1
  145. package/server/.next/server/app/(console)/supabase/page_client-reference-manifest.js +1 -1
  146. package/server/.next/server/app/(console)/topology/page/server-reference-manifest.json +20 -10
  147. package/server/.next/server/app/(console)/topology/page.js +60 -60
  148. package/server/.next/server/app/(console)/topology/page.js.nft.json +1 -1
  149. package/server/.next/server/app/(console)/topology/page_client-reference-manifest.js +1 -1
  150. package/server/.next/server/app/(console)/turso/page/server-reference-manifest.json +20 -10
  151. package/server/.next/server/app/(console)/turso/page.js +60 -60
  152. package/server/.next/server/app/(console)/turso/page.js.nft.json +1 -1
  153. package/server/.next/server/app/(console)/turso/page_client-reference-manifest.js +1 -1
  154. package/server/.next/server/app/(console)/upstash/page/server-reference-manifest.json +20 -10
  155. package/server/.next/server/app/(console)/upstash/page.js +60 -60
  156. package/server/.next/server/app/(console)/upstash/page.js.nft.json +1 -1
  157. package/server/.next/server/app/(console)/upstash/page_client-reference-manifest.js +1 -1
  158. package/server/.next/server/app/(console)/uptime/page/server-reference-manifest.json +34 -24
  159. package/server/.next/server/app/(console)/uptime/page.js +60 -60
  160. package/server/.next/server/app/(console)/uptime/page.js.nft.json +1 -1
  161. package/server/.next/server/app/(console)/uptime/page_client-reference-manifest.js +1 -1
  162. package/server/.next/server/app/(console)/welcome/page/server-reference-manifest.json +25 -15
  163. package/server/.next/server/app/(console)/welcome/page.js +60 -60
  164. package/server/.next/server/app/(console)/welcome/page.js.nft.json +1 -1
  165. package/server/.next/server/app/(console)/welcome/page_client-reference-manifest.js +1 -1
  166. package/server/.next/server/app/_global-error/page/server-reference-manifest.json +1 -1
  167. package/server/.next/server/app/_global-error/page.js.nft.json +1 -1
  168. package/server/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  169. package/server/.next/server/app/_global-error.html +1 -1
  170. package/server/.next/server/app/_global-error.rsc +2 -2
  171. package/server/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +2 -2
  172. package/server/.next/server/app/_global-error.segments/_full.segment.rsc +2 -2
  173. package/server/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  174. package/server/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
  175. package/server/.next/server/app/_not-found/page.js.nft.json +1 -1
  176. package/server/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  177. package/server/.next/server/app/_not-found.html +1 -1
  178. package/server/.next/server/app/_not-found.rsc +3 -3
  179. package/server/.next/server/app/_not-found.segments/_full.segment.rsc +3 -3
  180. package/server/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  181. package/server/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  182. package/server/.next/server/app/account/password/page/server-reference-manifest.json +2 -2
  183. package/server/.next/server/app/account/password/page.js.nft.json +1 -1
  184. package/server/.next/server/app/account/password/page_client-reference-manifest.js +1 -1
  185. package/server/.next/server/app/api/collect/route/server-reference-manifest.json +17 -7
  186. package/server/.next/server/app/api/collect/route.js +63 -63
  187. package/server/.next/server/app/api/collect/route.js.nft.json +1 -1
  188. package/server/.next/server/app/api/daily/route/server-reference-manifest.json +17 -7
  189. package/server/.next/server/app/api/daily/route.js +45 -45
  190. package/server/.next/server/app/api/daily/route.js.nft.json +1 -1
  191. package/server/.next/server/app/api/health/route.js.nft.json +1 -1
  192. package/server/.next/server/app/api/ping/[...parts]/route.js.nft.json +1 -1
  193. package/server/.next/server/app/api/status/route.js +2 -2
  194. package/server/.next/server/app/api/status/route.js.nft.json +1 -1
  195. package/server/.next/server/app/api/telegram/webhook/route/server-reference-manifest.json +17 -7
  196. package/server/.next/server/app/api/telegram/webhook/route.js +42 -42
  197. package/server/.next/server/app/api/telegram/webhook/route.js.nft.json +1 -1
  198. package/server/.next/server/app/api/v1/[[...rest]]/route.js.nft.json +1 -1
  199. package/server/.next/server/app/api/v1/advice/route.js +4 -3
  200. package/server/.next/server/app/api/v1/advice/route.js.nft.json +1 -1
  201. package/server/.next/server/app/api/v1/ai/chat/completions/route.js.nft.json +1 -1
  202. package/server/.next/server/app/api/v1/ai/models/route.js.nft.json +1 -1
  203. package/server/.next/server/app/api/v1/ai/questions/[id]/route.js.nft.json +1 -1
  204. package/server/.next/server/app/api/v1/ai/questions/route.js +2 -2
  205. package/server/.next/server/app/api/v1/ai/questions/route.js.nft.json +1 -1
  206. package/server/.next/server/app/api/v1/mcp/route.js +1 -1
  207. package/server/.next/server/app/api/v1/mcp/route.js.nft.json +1 -1
  208. package/server/.next/server/app/api/v1/me/route.js.nft.json +1 -1
  209. package/server/.next/server/app/api/v1/openapi.json/route.js.nft.json +1 -1
  210. package/server/.next/server/app/api/v1/status/apps/[app]/route.js +4 -3
  211. package/server/.next/server/app/api/v1/status/apps/[app]/route.js.nft.json +1 -1
  212. package/server/.next/server/app/api/v1/status/route.js +4 -3
  213. package/server/.next/server/app/api/v1/status/route.js.nft.json +1 -1
  214. package/server/.next/server/app/api/watchdog/route.js +15 -15
  215. package/server/.next/server/app/api/watchdog/route.js.nft.json +1 -1
  216. package/server/.next/server/app/auth/confirm/route.js.nft.json +1 -1
  217. package/server/.next/server/app/auth/google/callback/route.js.nft.json +1 -1
  218. package/server/.next/server/app/auth/google/create/callback/route.js.nft.json +1 -1
  219. package/server/.next/server/app/auth/not-member/route.js.nft.json +1 -1
  220. package/server/.next/server/app/auth/session-ended/route.js.nft.json +1 -1
  221. package/server/.next/server/app/icon.svg/route.js.nft.json +1 -1
  222. package/server/.next/server/app/invite/page/server-reference-manifest.json +2 -2
  223. package/server/.next/server/app/invite/page.js.nft.json +1 -1
  224. package/server/.next/server/app/invite/page_client-reference-manifest.js +1 -1
  225. package/server/.next/server/app/mfa/page/server-reference-manifest.json +2 -2
  226. package/server/.next/server/app/mfa/page.js +14 -14
  227. package/server/.next/server/app/mfa/page.js.nft.json +1 -1
  228. package/server/.next/server/app/mfa/page_client-reference-manifest.js +1 -1
  229. package/server/.next/server/app/mfa/setup/page/server-reference-manifest.json +3 -3
  230. package/server/.next/server/app/mfa/setup/page.js +14 -14
  231. package/server/.next/server/app/mfa/setup/page.js.nft.json +1 -1
  232. package/server/.next/server/app/mfa/setup/page_client-reference-manifest.js +1 -1
  233. package/server/.next/server/app/page/server-reference-manifest.json +1 -1
  234. package/server/.next/server/app/page.js.nft.json +1 -1
  235. package/server/.next/server/app/page_client-reference-manifest.js +1 -1
  236. package/server/.next/server/app/s/[slug]/badge/[file]/route.js.nft.json +1 -1
  237. package/server/.next/server/app/s/[slug]/page/server-reference-manifest.json +1 -1
  238. package/server/.next/server/app/s/[slug]/page.js.nft.json +1 -1
  239. package/server/.next/server/app/s/[slug]/page_client-reference-manifest.js +1 -1
  240. package/server/.next/server/app/setup/page/server-reference-manifest.json +2 -2
  241. package/server/.next/server/app/setup/page.js.nft.json +1 -1
  242. package/server/.next/server/app/setup/page_client-reference-manifest.js +1 -1
  243. package/server/.next/server/app/signin/page/server-reference-manifest.json +3 -3
  244. package/server/.next/server/app/signin/page.js +23 -23
  245. package/server/.next/server/app/signin/page.js.nft.json +1 -1
  246. package/server/.next/server/app/signin/page_client-reference-manifest.js +1 -1
  247. package/server/.next/server/chunks/{[externals]__0ia-wyj5qrosx._.js → [externals]__1-y7b_mfadqi-._.js} +1 -1
  248. package/server/.next/server/chunks/{[externals]__0igl_rsv6z3fr._.js → [externals]__1b3dgyi9diwhy._.js} +1 -1
  249. package/server/.next/server/chunks/{[externals]__0mh8e6gkgfswq._.js → [externals]__1dd9hhrnxhegy._.js} +1 -1
  250. package/server/.next/server/chunks/{[root-of-the-server]__0_e2eoq7w3ff_._.js → [root-of-the-server]__0-zrmrb4499ay._.js} +2 -2
  251. package/server/.next/server/chunks/[root-of-the-server]__01dj-ln12bcmb._.js +1 -1
  252. package/server/.next/server/chunks/{[root-of-the-server]__0ezd1s2862iob._.js → [root-of-the-server]__02h-ec_gusm_2._.js} +2 -2
  253. package/server/.next/server/chunks/[root-of-the-server]__02v25dn1cwxz6._.js +1 -1
  254. package/server/.next/server/chunks/[root-of-the-server]__03276vwi4jgvk._.js +1 -1
  255. package/server/.next/server/chunks/{[root-of-the-server]__0exicuoq6gmph._.js → [root-of-the-server]__038br8sr9eepd._.js} +2 -2
  256. package/server/.next/server/chunks/{[root-of-the-server]__20ng0hgzxagf_._.js → [root-of-the-server]__040a3il587nja._.js} +2 -2
  257. package/server/.next/server/chunks/[root-of-the-server]__04htuwoulmp21._.js +3 -0
  258. package/server/.next/server/chunks/{[root-of-the-server]__0cc32xnniktg9._.js → [root-of-the-server]__04iumkvxok49x._.js} +2 -2
  259. package/server/.next/server/chunks/[root-of-the-server]__05qcc-0e8z1u8._.js +1 -1
  260. package/server/.next/server/chunks/{[root-of-the-server]__01vos42kjq9nn._.js → [root-of-the-server]__0655w3_d4ejfb._.js} +1 -1
  261. package/server/.next/server/chunks/[root-of-the-server]__07eo--c90cju2._.js +1 -1
  262. package/server/.next/server/chunks/{[root-of-the-server]__05zj7uswzr0f9._.js → [root-of-the-server]__08i6b8tzxads4._.js} +2 -2
  263. package/server/.next/server/chunks/{[root-of-the-server]__0-ftc1hhcjcl2._.js → [root-of-the-server]__09dk9k-9q4d16._.js} +2 -2
  264. package/server/.next/server/chunks/[root-of-the-server]__0a5op--7u5_xh._.js +3 -0
  265. package/server/.next/server/chunks/{[root-of-the-server]__040ix5fqb_zb-._.js → [root-of-the-server]__0a5t6bkr3-uqw._.js} +2 -2
  266. package/server/.next/server/chunks/{[root-of-the-server]__1gt_-h9n48pwi._.js → [root-of-the-server]__0c0pkv3an1lg-._.js} +2 -2
  267. package/server/.next/server/chunks/{[root-of-the-server]__0185dne3slx7e._.js → [root-of-the-server]__0cmp5mwchd8sn._.js} +2 -2
  268. package/server/.next/server/chunks/{[root-of-the-server]__0oqltt9cni6m0._.js → [root-of-the-server]__0ct18spdi1leu._.js} +2 -2
  269. package/server/.next/server/chunks/{[root-of-the-server]__0r88w3qhrtzz_._.js → [root-of-the-server]__0db2p-om-b_4s._.js} +1 -1
  270. package/server/.next/server/chunks/[root-of-the-server]__0dfx2psnngcys._.js +3 -0
  271. package/server/.next/server/chunks/[root-of-the-server]__0fc4c9-xzmkol._.js +3 -0
  272. package/server/.next/server/chunks/[root-of-the-server]__0gb4uz-gv3va0._.js +1 -1
  273. package/server/.next/server/chunks/[root-of-the-server]__0gqye-fi-f3zk._.js +1 -1
  274. package/server/.next/server/chunks/{[root-of-the-server]__0rb1-3538-pq9._.js → [root-of-the-server]__0jswmvddgl3sb._.js} +1 -1
  275. package/server/.next/server/chunks/[root-of-the-server]__0kk-m8_ul4f4k._.js +1 -1
  276. package/server/.next/server/chunks/{[root-of-the-server]__0ms1uw85c5wg2._.js → [root-of-the-server]__0lco43i5w25zg._.js} +2 -2
  277. package/server/.next/server/chunks/[root-of-the-server]__0lht1cr4aiudu._.js +3 -0
  278. package/server/.next/server/chunks/{[root-of-the-server]__0ikiyg3u02ofv._.js → [root-of-the-server]__0m_nqt44ioex_._.js} +1 -1
  279. package/server/.next/server/chunks/[root-of-the-server]__0mrbo2p5fy4ji._.js +3 -0
  280. package/server/.next/server/chunks/[root-of-the-server]__0o6q27cnw6-77._.js +1 -1
  281. package/server/.next/server/chunks/{[root-of-the-server]__0w_og0zl6hqzj._.js → [root-of-the-server]__0qme276hvajvy._.js} +1 -1
  282. package/server/.next/server/chunks/[root-of-the-server]__0r3cq1lecww4e._.js +3 -0
  283. package/server/.next/server/chunks/{[root-of-the-server]__0070gc9ml0mf7._.js → [root-of-the-server]__0r_6xpjwcdrda._.js} +1 -1
  284. package/server/.next/server/chunks/[root-of-the-server]__0rctmpp7p7cp9._.js +3 -0
  285. package/server/.next/server/chunks/{[root-of-the-server]__0x47i6wm-cd1z._.js → [root-of-the-server]__0ruici82tzf0w._.js} +2 -2
  286. package/server/.next/server/chunks/{[root-of-the-server]__0e2utnqdim70d._.js → [root-of-the-server]__0s8wo4espz6eu._.js} +2 -2
  287. package/server/.next/server/chunks/[root-of-the-server]__0sp5xoed3-994._.js +3 -0
  288. package/server/.next/server/chunks/{[root-of-the-server]__0twr9duara46x._.js → [root-of-the-server]__0sq7jwlhv9n79._.js} +2 -2
  289. package/server/.next/server/chunks/{[root-of-the-server]__0sabwm3w1rm0q._.js → [root-of-the-server]__0ubalx5w0ds9m._.js} +1 -1
  290. package/server/.next/server/chunks/[root-of-the-server]__0ux1hi2fgqxu7._.js +3 -0
  291. package/server/.next/server/chunks/[root-of-the-server]__0vp-x4ifpr3p9._.js +1 -1
  292. package/server/.next/server/chunks/[root-of-the-server]__0vv63vp8y0fs-._.js +3 -0
  293. package/server/.next/server/chunks/{[root-of-the-server]__0-st5xltl53h9._.js → [root-of-the-server]__0w07p3ypro834._.js} +2 -2
  294. package/server/.next/server/chunks/{[root-of-the-server]__0x6qqr79pq_j9._.js → [root-of-the-server]__0whk62ebfu1u0._.js} +1 -1
  295. package/server/.next/server/chunks/{[root-of-the-server]__1vqs8o9bv1wbk._.js → [root-of-the-server]__0x4_tt5v17fx3._.js} +2 -2
  296. package/server/.next/server/chunks/{[root-of-the-server]__05jzua9637vlo._.js → [root-of-the-server]__0x929r1phz1oi._.js} +2 -2
  297. package/server/.next/server/chunks/{[root-of-the-server]__01yzy5zxsekxi._.js → [root-of-the-server]__0ycpg444s91lb._.js} +1 -1
  298. package/server/.next/server/chunks/[root-of-the-server]__0z3hf530bwcq_._.js +3 -0
  299. package/server/.next/server/chunks/[root-of-the-server]__0zkeao78mms1_._.js +3 -0
  300. package/server/.next/server/chunks/{[root-of-the-server]__0kt0hjvyklnk8._.js → [root-of-the-server]__0zu1odpvrptrt._.js} +2 -2
  301. package/server/.next/server/chunks/[root-of-the-server]__0zwr7fll4dm9q._.js +3 -0
  302. package/server/.next/server/chunks/{[root-of-the-server]__0cz3da2wx3_wd._.js → [root-of-the-server]__1-2ckgdamg0-j._.js} +2 -2
  303. package/server/.next/server/chunks/[root-of-the-server]__1-ne3clcouvm2._.js +3 -0
  304. package/server/.next/server/chunks/[root-of-the-server]__1-xgpr5q148ze._.js +3 -0
  305. package/server/.next/server/chunks/[root-of-the-server]__10negjjz5k5bz._.js +3 -0
  306. package/server/.next/server/chunks/{[root-of-the-server]__1bce11artflky._.js → [root-of-the-server]__12lrpnd-dhawi._.js} +2 -2
  307. package/server/.next/server/chunks/[root-of-the-server]__14-pt1-s1o5ex._.js +3 -0
  308. package/server/.next/server/chunks/[root-of-the-server]__14jw0y_hj7jmw._.js +3 -0
  309. package/server/.next/server/chunks/{[root-of-the-server]__0znmcklxfccvk._.js → [root-of-the-server]__15vqo7amys573._.js} +2 -2
  310. package/server/.next/server/chunks/[root-of-the-server]__16jyhasrd2ojp._.js +3 -0
  311. package/server/.next/server/chunks/{[root-of-the-server]__0kzpzdkpz_nt0._.js → [root-of-the-server]__177l2p7kcj-16._.js} +2 -2
  312. package/server/.next/server/chunks/{[root-of-the-server]__186-sa38csgot._.js → [root-of-the-server]__17dr2z1o1hsvk._.js} +1 -1
  313. package/server/.next/server/chunks/{[root-of-the-server]__08-puk3_gawjd._.js → [root-of-the-server]__17jngidngj3rb._.js} +2 -2
  314. package/server/.next/server/chunks/[root-of-the-server]__19k0l-ubyp1j_._.js +3 -0
  315. package/server/.next/server/chunks/[root-of-the-server]__1_zr2xlmtkn4l._.js +3 -0
  316. package/server/.next/server/chunks/[root-of-the-server]__1aagly59gw-xf._.js +3 -0
  317. package/server/.next/server/chunks/[root-of-the-server]__1bg8grh9kfims._.js +3 -0
  318. package/server/.next/server/chunks/{[root-of-the-server]__0tykhzqhwdx_k._.js → [root-of-the-server]__1bjvjngj7lvqi._.js} +2 -2
  319. package/server/.next/server/chunks/[root-of-the-server]__1c0cb3ur16yhh._.js +3 -0
  320. package/server/.next/server/chunks/[root-of-the-server]__1c1nhm-kj5kqu._.js +3 -0
  321. package/server/.next/server/chunks/[root-of-the-server]__1c78cu7kb9vkl._.js +1 -1
  322. package/server/.next/server/chunks/{[root-of-the-server]__1g4iy2tasmn0f._.js → [root-of-the-server]__1d1u-wejsfl84._.js} +1 -1
  323. package/server/.next/server/chunks/[root-of-the-server]__1d4wmw2wohveb._.js +3 -0
  324. package/server/.next/server/chunks/{[root-of-the-server]__1spds17tpnsgr._.js → [root-of-the-server]__1etg41llk7f09._.js} +2 -2
  325. package/server/.next/server/chunks/[root-of-the-server]__1g6xpr_typmce._.js +3 -0
  326. package/server/.next/server/chunks/[root-of-the-server]__1io5zo7iam532._.js +1 -1
  327. package/server/.next/server/chunks/{[root-of-the-server]__1a7_3nq1jjab-._.js → [root-of-the-server]__1jjusd74y8gd5._.js} +2 -2
  328. package/server/.next/server/chunks/[root-of-the-server]__1jvy8r4n-62x7._.js +3 -0
  329. package/server/.next/server/chunks/[root-of-the-server]__1kr6f03r82mk6._.js +3 -0
  330. package/server/.next/server/chunks/[root-of-the-server]__1kwldcrcmwc0x._.js +3 -0
  331. package/server/.next/server/chunks/[root-of-the-server]__1lq25064c4ny_._.js +3 -0
  332. package/server/.next/server/chunks/[root-of-the-server]__1m8gyvj7rkapj._.js +1 -1
  333. package/server/.next/server/chunks/{[root-of-the-server]__1_zjje9edw0bz._.js → [root-of-the-server]__1nm0sjvuf9jrb._.js} +2 -2
  334. package/server/.next/server/chunks/[root-of-the-server]__1ozfk4_3lx1o7._.js +1 -1
  335. package/server/.next/server/chunks/{[root-of-the-server]__0i75m0es1m3hf._.js → [root-of-the-server]__1p3fqi03x5du8._.js} +1 -1
  336. package/server/.next/server/chunks/[root-of-the-server]__1pa_syiho939h._.js +3 -0
  337. package/server/.next/server/chunks/[root-of-the-server]__1qmdi981syrsn._.js +3 -0
  338. package/server/.next/server/chunks/[root-of-the-server]__1r24segt1slar._.js +3 -0
  339. package/server/.next/server/chunks/[root-of-the-server]__1r9v6qgjwlv32._.js +3 -0
  340. package/server/.next/server/chunks/[root-of-the-server]__1sm4p209f_yie._.js +3 -0
  341. package/server/.next/server/chunks/{[root-of-the-server]__0xqgsjnebebv8._.js → [root-of-the-server]__1smidspfoqz48._.js} +2 -2
  342. package/server/.next/server/chunks/{[root-of-the-server]__20r_62r36t28o._.js → [root-of-the-server]__1t87mhqedigsz._.js} +2 -2
  343. package/server/.next/server/chunks/[root-of-the-server]__1u5my3-gpw499._.js +3 -0
  344. package/server/.next/server/chunks/[root-of-the-server]__20dehd8e5-v9y._.js +1 -1
  345. package/server/.next/server/chunks/{[root-of-the-server]__1ny8nr52qvr4i._.js → [root-of-the-server]__20sp5m_w5iklm._.js} +2 -2
  346. package/server/.next/server/chunks/{_1_9n8x5ncta29._.js → _0-jfehdfklu-i._.js} +2 -2
  347. package/server/.next/server/chunks/{_1n-fm2bdo9t2m._.js → _0-ub844lc_z_a._.js} +3 -3
  348. package/server/.next/server/chunks/_05hhw0eql5-dv._.js +10 -0
  349. package/server/.next/server/chunks/{_0zj10_al6r59j._.js → _08fv52mqg619m._.js} +2 -2
  350. package/server/.next/server/chunks/{_1cq1vvbp6pglr._.js → _08z7lmk32r__5._.js} +3 -3
  351. package/server/.next/server/chunks/_0b7rdk-4lrvfy._.js +10 -0
  352. package/server/.next/server/chunks/_0n-wbmmvp4omq._.js +1 -1
  353. package/server/.next/server/chunks/{_1myv9csc_in08._.js → _1-pv4d4qhe7to._.js} +3 -3
  354. package/server/.next/server/chunks/_12g2m3a5e94_5._.js +3 -0
  355. package/server/.next/server/chunks/{_1e_rbkrukj0x9._.js → _13dlt388gceez._.js} +2 -2
  356. package/server/.next/server/chunks/_19wqm5leaaesp._.js +1 -1
  357. package/server/.next/server/chunks/{_0ls7sornjrg95._.js → _1b1t9p1xljuql._.js} +1 -1
  358. package/server/.next/server/chunks/_1d_77nvqcnkcg._.js +3 -0
  359. package/server/.next/server/chunks/_1e_6lrlg9ml3-._.js +1 -1
  360. package/server/.next/server/chunks/_1l-68brbq289m._.js +10 -0
  361. package/server/.next/server/chunks/src_0--qn984h6czu._.js +1 -1
  362. package/server/.next/server/chunks/{src_0_l3dzp06o4x5._.js → src_01fd1ve-xj9xo._.js} +2 -2
  363. package/server/.next/server/chunks/{src_0m6xxpw2u-xv_._.js → src_049aazgsmienv._.js} +2 -2
  364. package/server/.next/server/chunks/src_05vq-abuilwk4._.js +3 -0
  365. package/server/.next/server/chunks/src_063xvouojxyoa._.js +1 -1
  366. package/server/.next/server/chunks/src_06lwphwuzgl6e._.js +3 -0
  367. package/server/.next/server/chunks/src_0_9n02bmhtk4z._.js +3 -0
  368. package/server/.next/server/chunks/src_0tw-h0otr2tgt._.js +1 -1
  369. package/server/.next/server/chunks/src_1a5yibsjcy1ga._.js +1 -1
  370. package/server/.next/server/chunks/src_1u-olt84z63rx._.js +1 -1
  371. package/server/.next/server/chunks/{src_15fupbs9-n8q9._.js → src_20sym_ohuqw76._.js} +2 -2
  372. package/server/.next/server/chunks/src_2108_me3q06ih._.js +3 -0
  373. package/server/.next/server/chunks/src_lib_0eqv8l-v8d5ze._.js +1 -1
  374. package/server/.next/server/chunks/src_lib_0glcfed-uogyd._.js +1 -1
  375. package/server/.next/server/chunks/src_lib_0pyyxm3m1rttg._.js +9 -0
  376. package/server/.next/server/chunks/src_lib_13irheo9qqhgx._.js +9 -0
  377. package/server/.next/server/chunks/src_lib_collector_runners_ts_12z4gtgikss74._.js +5 -5
  378. package/server/.next/server/chunks/src_lib_demo_pool_ts_0fpn8acsdk64i._.js +15 -15
  379. package/server/.next/server/chunks/src_lib_demo_pool_ts_14rjvkgozh1d4._.js +13 -13
  380. package/server/.next/server/chunks/src_lib_demo_pool_ts_17xz9bk-d5uic._.js +13 -13
  381. package/server/.next/server/chunks/src_lib_demo_pool_ts_210g_on8zx_-n._.js +13 -13
  382. package/server/.next/server/chunks/src_lib_view_labels_ts_1uxs84z7vclz5._.js +1 -1
  383. package/server/.next/server/chunks/src_private_1_nggk_wre7qf._.js +2 -2
  384. package/server/.next/server/chunks/src_private_notes_notes-actions_ts_1g63g8u965fhc._.js +1 -1
  385. package/server/.next/server/chunks/ssr/1oeh_server_app_(console)_(private)_ai_agents_page_actions_21atz5tidps07.js +1 -1
  386. package/server/.next/server/chunks/ssr/1oeh_server_app_(console)_(private)_ai_models_page_actions_0rvlzfa8rjyz_.js +1 -1
  387. package/server/.next/server/chunks/ssr/1oeh_server_app_(console)_(private)_ai_playground_page_actions_01ejc1xilpuh4.js +1 -1
  388. package/server/.next/server/chunks/ssr/1oeh_server_app_(console)_(private)_ai_quota_page_actions_0iki29gyi8cwa.js +1 -1
  389. package/server/.next/server/chunks/ssr/1oeh_server_app_(console)_(private)_ai_usage_page_actions_1c99h-kwdnep7.js +1 -1
  390. package/server/.next/server/chunks/ssr/1oeh_server_app_(console)_(private)_auto-actions_page_actions_1kw4ce6-efkr1.js +1 -1
  391. package/server/.next/server/chunks/ssr/{[externals]__0vlxry7jq5j1j._.js → [externals]__0d7rvi3tmo9zf._.js} +1 -1
  392. package/server/.next/server/chunks/ssr/{[externals]__1mol6ksxmtkv6._.js → [externals]__1rj83sktdlxvt._.js} +1 -1
  393. package/server/.next/server/chunks/ssr/{[externals]__0yyslm1ka5px3._.js → [externals]__1s7xw086rvse0._.js} +1 -1
  394. package/server/.next/server/chunks/ssr/{[externals]__0irbihjwcc9is._.js → [externals]__20leqouf6m6f3._.js} +1 -1
  395. package/server/.next/server/chunks/ssr/{[root-of-the-server]__193nmh09rrpbx._.js → [root-of-the-server]__0-zqh1gf4dsj3._.js} +1 -1
  396. package/server/.next/server/chunks/ssr/[root-of-the-server]__001mglelq4wpc._.js +1 -1
  397. package/server/.next/server/chunks/ssr/{[root-of-the-server]__1ctkj-25wt37o._.js → [root-of-the-server]__05gue5stvejba._.js} +3 -3
  398. package/server/.next/server/chunks/ssr/[root-of-the-server]__077-acap7g4ck._.js +3 -0
  399. package/server/.next/server/chunks/ssr/{[root-of-the-server]__0wi2grctadbk8._.js → [root-of-the-server]__080do5vfu69n5._.js} +1 -1
  400. package/server/.next/server/chunks/ssr/{[root-of-the-server]__0xjg51t1__v-s._.js → [root-of-the-server]__08u1c2f2i7ru4._.js} +1 -1
  401. package/server/.next/server/chunks/ssr/[root-of-the-server]__09blzlbsxqvy9._.js +1 -1
  402. package/server/.next/server/chunks/ssr/[root-of-the-server]__0amfa4t2-in-x._.js +3 -0
  403. package/server/.next/server/chunks/ssr/{[root-of-the-server]__0sj92w6mg92ds._.js → [root-of-the-server]__0b3g72j9cu141._.js} +2 -2
  404. package/server/.next/server/chunks/ssr/[root-of-the-server]__0ed6qo3lg9_f9._.js +3 -0
  405. package/server/.next/server/chunks/ssr/{[root-of-the-server]__0z_1k5876-_wx._.js → [root-of-the-server]__0ee5ew5q3jh8i._.js} +2 -2
  406. package/server/.next/server/chunks/ssr/{[root-of-the-server]__110158s15r7mi._.js → [root-of-the-server]__0fd39clnjw9fb._.js} +2 -2
  407. package/server/.next/server/chunks/ssr/[root-of-the-server]__0h9rpg5-lhp5q._.js +3 -0
  408. package/server/.next/server/chunks/ssr/[root-of-the-server]__0jgapr1cnvhi6._.js +1 -1
  409. package/server/.next/server/chunks/ssr/[root-of-the-server]__0keo0-hwsnkw9._.js +1 -1
  410. package/server/.next/server/chunks/ssr/[root-of-the-server]__0l50vsk8enxzj._.js +1 -1
  411. package/server/.next/server/chunks/ssr/{[root-of-the-server]__1a0b_dbx4uans._.js → [root-of-the-server]__0p86d9imejczs._.js} +2 -2
  412. package/server/.next/server/chunks/ssr/{[root-of-the-server]__133_j0bmsjnzt._.js → [root-of-the-server]__0q7rssq_3unbc._.js} +2 -2
  413. package/server/.next/server/chunks/ssr/[root-of-the-server]__0rdf04ziqasfz._.js +1 -1
  414. package/server/.next/server/chunks/ssr/[root-of-the-server]__0rrdzb9wowemv._.js +1 -1
  415. package/server/.next/server/chunks/ssr/{[root-of-the-server]__1_h_ya1h8efdj._.js → [root-of-the-server]__0tqqte5jb6jz7._.js} +2 -2
  416. package/server/.next/server/chunks/ssr/{[root-of-the-server]__1ijizmc3ga_6o._.js → [root-of-the-server]__0xscr-8y9a4cj._.js} +2 -2
  417. package/server/.next/server/chunks/ssr/{[root-of-the-server]__1ogwz1buruc_x._.js → [root-of-the-server]__11paa809_igt_._.js} +2 -2
  418. package/server/.next/server/chunks/ssr/[root-of-the-server]__18gcvkhrt73zc._.js +3 -0
  419. package/server/.next/server/chunks/ssr/[root-of-the-server]__1_f7nip9age3d._.js +1 -1
  420. package/server/.next/server/chunks/ssr/{[root-of-the-server]__1tj-iwvrxfd1a._.js → [root-of-the-server]__1o6cysvbfkltz._.js} +1 -1
  421. package/server/.next/server/chunks/ssr/{[root-of-the-server]__0hzlz_t5eect2._.js → [root-of-the-server]__1qrk2rfmx21b_._.js} +2 -2
  422. package/server/.next/server/chunks/ssr/[root-of-the-server]__1sw2q1p1t59y8._.js +1 -1
  423. package/server/.next/server/chunks/ssr/{[root-of-the-server]__1kfivch_kfesn._.js → [root-of-the-server]__1tgcpistmcbrd._.js} +3 -3
  424. package/server/.next/server/chunks/ssr/[root-of-the-server]__1u_13nhw3kuz3._.js +1 -1
  425. package/server/.next/server/chunks/ssr/{[root-of-the-server]__1-d88ogkwql_b._.js → [root-of-the-server]__1uzqsxyxwffdo._.js} +2 -2
  426. package/server/.next/server/chunks/ssr/{[root-of-the-server]__0n-sc7pzu7fpz._.js → [root-of-the-server]__1y7nfsglxx7cn._.js} +1 -1
  427. package/server/.next/server/chunks/ssr/[root-of-the-server]__1zmuaump_n9c1._.js +3 -0
  428. package/server/.next/server/chunks/ssr/_0-wc6f6p0c8lv._.js +1 -1
  429. package/server/.next/server/chunks/ssr/_02eudwc8ieb2r._.js +2 -2
  430. package/server/.next/server/chunks/ssr/{_0e4xfzm8oecc-._.js → _07-dfx0qix52k._.js} +2 -2
  431. package/server/.next/server/chunks/ssr/{_1jclq5d7tposb._.js → _07f-svx_l12lw._.js} +2 -2
  432. package/server/.next/server/chunks/ssr/_08xqk3eibu5aw._.js +1 -1
  433. package/server/.next/server/chunks/ssr/_09s2unlb4r6yf._.js +3 -0
  434. package/server/.next/server/chunks/ssr/_0_oc9q0vqkynd._.js +1 -1
  435. package/server/.next/server/chunks/ssr/_0a22b7zsckifp._.js +1 -1
  436. package/server/.next/server/chunks/ssr/_0azq3ml4gbn1d._.js +1 -1
  437. package/server/.next/server/chunks/ssr/_0bd4cxnpnnq2u._.js +1 -1
  438. package/server/.next/server/chunks/ssr/_0c7stbntpuyt_._.js +1 -1
  439. package/server/.next/server/chunks/ssr/_0c8kew3jsb-yb._.js +3 -0
  440. package/server/.next/server/chunks/ssr/_0cbbks0ms7i_u._.js +2 -2
  441. package/server/.next/server/chunks/ssr/_0cw4kz3d6kmb1._.js +1 -1
  442. package/server/.next/server/chunks/ssr/_0d2d527wcx-lf._.js +2 -2
  443. package/server/.next/server/chunks/ssr/_0d702k82llasi._.js +1 -1
  444. package/server/.next/server/chunks/ssr/_0gl-ewvbhb677._.js +2 -2
  445. package/server/.next/server/chunks/ssr/_0i04zoixa2iup._.js +2 -2
  446. package/server/.next/server/chunks/ssr/_0idbg-ok0so2h._.js +2 -2
  447. package/server/.next/server/chunks/ssr/{_1e5kqt081d8yt._.js → _0jqrjb30bblvy._.js} +2 -2
  448. package/server/.next/server/chunks/ssr/_0kdn56_ow-x_s._.js +1 -1
  449. package/server/.next/server/chunks/ssr/_0oovfx_t_-u0k._.js +1 -1
  450. package/server/.next/server/chunks/ssr/_0oub-njkja8gu._.js +2 -2
  451. package/server/.next/server/chunks/ssr/_0pqkexxo7rts_._.js +2 -2
  452. package/server/.next/server/chunks/ssr/_0qhvl_fw4qetx._.js +1 -1
  453. package/server/.next/server/chunks/ssr/_0rsh9v4b3yj0b._.js +3 -0
  454. package/server/.next/server/chunks/ssr/_0tnd528j0i1i4._.js +2 -2
  455. package/server/.next/server/chunks/ssr/_0uwkwcgucqgcf._.js +2 -2
  456. package/server/.next/server/chunks/ssr/_0v6v5w16qxwke._.js +1 -1
  457. package/server/.next/server/chunks/ssr/_0wo-lpqf7hr1y._.js +2 -2
  458. package/server/.next/server/chunks/ssr/_0zixhhc1lheoi._.js +2 -2
  459. package/server/.next/server/chunks/ssr/_1-6d1tm3r_qwg._.js +1 -1
  460. package/server/.next/server/chunks/ssr/_10bven6gb1vj0._.js +1 -1
  461. package/server/.next/server/chunks/ssr/_118h21qua_4o3._.js +1 -1
  462. package/server/.next/server/chunks/ssr/_12makqwatfke-._.js +2 -2
  463. package/server/.next/server/chunks/ssr/_19-3vzkc6rk97._.js +1 -1
  464. package/server/.next/server/chunks/ssr/_1_-o2s48aj4i7._.js +1 -1
  465. package/server/.next/server/chunks/ssr/{_1rinsar6bp6ul._.js → _1bc69myq83woe._.js} +2 -2
  466. package/server/.next/server/chunks/ssr/_1c7jkkvkvzj_u._.js +2 -2
  467. package/server/.next/server/chunks/ssr/_1cl55h_h3q-b_._.js +1 -1
  468. package/server/.next/server/chunks/ssr/_1dlo17ba9g-f9._.js +2 -2
  469. package/server/.next/server/chunks/ssr/_1fc8k_0p8l00c._.js +2 -2
  470. package/server/.next/server/chunks/ssr/_1fuywfexex2s8._.js +2 -2
  471. package/server/.next/server/chunks/ssr/_1g2zbl_-4z_hg._.js +1 -1
  472. package/server/.next/server/chunks/ssr/_1he21-bt45k8z._.js +2 -2
  473. package/server/.next/server/chunks/ssr/{_08d4hz_ddxc02._.js → _1j61tfpfj2t9d._.js} +2 -2
  474. package/server/.next/server/chunks/ssr/_1j9cka-44jd65._.js +1 -1
  475. package/server/.next/server/chunks/ssr/_1jh_o2i8hj2g5._.js +1 -1
  476. package/server/.next/server/chunks/ssr/_1ln6o3a9quwxo._.js +2 -2
  477. package/server/.next/server/chunks/ssr/_1m4km_w39x5e9._.js +1 -1
  478. package/server/.next/server/chunks/ssr/_1pp1o361lgpwu._.js +2 -2
  479. package/server/.next/server/chunks/ssr/_1r7o1vx4875hu._.js +1 -1
  480. package/server/.next/server/chunks/ssr/_1yh3k88t_kh4h._.js +2 -2
  481. package/server/.next/server/chunks/ssr/_1z6dy1k48mskn._.js +1 -1
  482. package/server/.next/server/chunks/ssr/_218164gkxgum_._.js +1 -1
  483. package/server/.next/server/chunks/ssr/_next-internal_server_app_(console)_(private)_ai_keys_page_actions_181-3r4e_0yb5.js +1 -1
  484. package/server/.next/server/chunks/ssr/_next-internal_server_app_(console)_(private)_ai_logs_page_actions_1ryb93n6khky3.js +1 -1
  485. package/server/.next/server/chunks/ssr/_next-internal_server_app_(console)_alerts_page_actions_06_3gmyq3jtvi.js +1 -1
  486. package/server/.next/server/chunks/ssr/_next-internal_server_app_(console)_apps_[id]_page_actions_0y5m8cul6d7kk.js +1 -1
  487. package/server/.next/server/chunks/ssr/_next-internal_server_app_(console)_apps_page_actions_0ksau5eicvycc.js +1 -1
  488. package/server/.next/server/chunks/ssr/_next-internal_server_app_(console)_connections_page_actions_1fgolmmpxrouc.js +1 -1
  489. package/server/.next/server/chunks/ssr/_next-internal_server_app_(console)_dns_page_actions_17d_lvhl-u_4w.js +1 -1
  490. package/server/.next/server/chunks/ssr/_next-internal_server_app_(console)_domains_page_actions_1yv3fj_fh-n-5.js +1 -1
  491. package/server/.next/server/chunks/ssr/_next-internal_server_app_(console)_firebase_page_actions_00wuues_v_j3r.js +1 -1
  492. package/server/.next/server/chunks/ssr/_next-internal_server_app_(console)_logs_page_actions_0oqh51t2rx6q0.js +1 -1
  493. package/server/.next/server/chunks/ssr/_next-internal_server_app_(console)_manage_sections_page_actions_1sb2ldu57uj32.js +1 -1
  494. package/server/.next/server/chunks/ssr/_next-internal_server_app_(console)_settings_page_actions_12wgjpd0lbh12.js +1 -1
  495. package/server/.next/server/chunks/ssr/_next-internal_server_app_(console)_supabase_page_actions_1f3a_tpkwjo8z.js +1 -1
  496. package/server/.next/server/chunks/ssr/_next-internal_server_app_(console)_uptime_page_actions_1ylbdz0-ykfh6.js +1 -1
  497. package/server/.next/server/chunks/ssr/_next-internal_server_app_account_password_page_actions_1v4e71_oifbx9.js +1 -1
  498. package/server/.next/server/chunks/ssr/_next-internal_server_app_signin_page_actions_11wzk446p6_zi.js +1 -1
  499. package/server/.next/server/chunks/ssr/src_0330uf9pdfco9._.js +1 -1
  500. package/server/.next/server/chunks/ssr/src_06tjy8wljego8._.js +1 -1
  501. package/server/.next/server/chunks/ssr/src_084tdkx3c_yqi._.js +1 -1
  502. package/server/.next/server/chunks/ssr/src_0abts6wp5ucc0._.js +1 -1
  503. package/server/.next/server/chunks/ssr/src_0dceh6hsdybq8._.js +3 -0
  504. package/server/.next/server/chunks/ssr/src_0etvjdinp5urq._.js +1 -1
  505. package/server/.next/server/chunks/ssr/src_0ph020gy78gi9._.js +1 -1
  506. package/server/.next/server/chunks/ssr/src_0uitfl3c1mdqb._.js +1 -1
  507. package/server/.next/server/chunks/ssr/src_10zavgy86u3us._.js +1 -1
  508. package/server/.next/server/chunks/ssr/{src_186l56gdeizg8._.js → src_14ulgwoxoyfkq._.js} +2 -2
  509. package/server/.next/server/chunks/ssr/src_1bg_io_v7gt71._.js +3 -0
  510. package/server/.next/server/chunks/ssr/src_1q-jgpnd3lbcu._.js +1 -1
  511. package/server/.next/server/chunks/ssr/src_app_(console)_(private)_ai_agents_1fyhh1ldgm23z._.js +1 -1
  512. package/server/.next/server/chunks/ssr/src_app_(console)_(private)_ai_ask_ask-form_tsx_18ttm9nna_9y6._.js +1 -1
  513. package/server/.next/server/chunks/ssr/src_app_(console)_(private)_ai_logs_export-button_tsx_1k-crb88n1za_._.js +1 -1
  514. package/server/.next/server/chunks/ssr/src_app_(console)_(private)_ai_models_0ayzqn062pnv5._.js +1 -1
  515. package/server/.next/server/chunks/ssr/src_app_(console)_(private)_ai_playground_playground-view_tsx_18ua5zn_a0mar._.js +1 -1
  516. package/server/.next/server/chunks/ssr/src_app_(console)_(private)_ai_providers_1ru-30x6-uwu4._.js +1 -1
  517. package/server/.next/server/chunks/ssr/src_app_(console)_(private)_ai_quota_limits-form_tsx_1vouaaf560z_x._.js +1 -1
  518. package/server/.next/server/chunks/ssr/src_app_(console)_(private)_ai_usage_limits-form_tsx_0sfk3ver58rqw._.js +1 -1
  519. package/server/.next/server/chunks/ssr/{src_app_(console)_1co5pna1vfflj._.js → src_app_(console)_0e832kna-734m._.js} +2 -2
  520. package/server/.next/server/chunks/ssr/src_app_(console)_0kwns5iudhgwj._.js +3 -0
  521. package/server/.next/server/chunks/ssr/src_app_(console)_alerts_0j5xlt68kwg8x._.js +2 -2
  522. package/server/.next/server/chunks/ssr/src_app_(console)_apps_[id]_1sfvku9ui1le-._.js +1 -1
  523. package/server/.next/server/chunks/ssr/src_app_(console)_backups_actions_ts_1vpytsdh0wc1f._.js +1 -1
  524. package/server/.next/server/chunks/ssr/src_app_(console)_backups_drive-buttons_tsx_00cku5r_z3jkg._.js +1 -1
  525. package/server/.next/server/chunks/ssr/src_app_(console)_connections_1fahc65-97qla._.js +1 -1
  526. package/server/.next/server/chunks/ssr/src_app_(console)_connections_1fmp_anbkapur._.js +1 -1
  527. package/server/.next/server/chunks/ssr/src_app_(console)_connections_actions_ts_103blv4gzq76z._.js +1 -1
  528. package/server/.next/server/chunks/ssr/src_app_(console)_create_actions_ts_05-86qr6kfjey._.js +1 -1
  529. package/server/.next/server/chunks/ssr/src_app_(console)_dns_actions_ts_1jzn58xzwbukz._.js +1 -1
  530. package/server/.next/server/chunks/ssr/src_app_(console)_dns_record-actions_tsx_0cqmz51zcuebv._.js +1 -1
  531. package/server/.next/server/chunks/ssr/src_app_(console)_firebase_row-menu_tsx_0hssoq3pqjl-n._.js +1 -1
  532. package/server/.next/server/chunks/ssr/src_app_(console)_logs_log-viewer_tsx_0v3e4cflfk14w._.js +1 -1
  533. package/server/.next/server/chunks/ssr/src_app_(console)_manage_sections_section-switch_tsx_1mfs-o_357i22._.js +1 -1
  534. package/server/.next/server/chunks/ssr/src_app_(console)_monitor-actions_ts_10w3h7myk2ppi._.js +1 -1
  535. package/server/.next/server/chunks/ssr/src_app_(console)_overview_page_tsx_0se3f3ln9q-42._.js +1 -1
  536. package/server/.next/server/chunks/ssr/src_app_(console)_palette-action_ts_0zyw9a9imev6p._.js +1 -1
  537. package/server/.next/server/chunks/ssr/src_app_(console)_sql_1icfsti04djqe._.js +2 -2
  538. package/server/.next/server/chunks/ssr/src_app_(console)_sql_actions_ts_1oqco02hw-3vp._.js +1 -1
  539. package/server/.next/server/chunks/ssr/src_app_(console)_supabase_0ib3m2ch9gu-4._.js +1 -1
  540. package/server/.next/server/chunks/ssr/src_app_(console)_supabase_pool-actions_ts_0nzd4vwy_9zzx._.js +1 -1
  541. package/server/.next/server/chunks/ssr/src_app_(console)_uptime_1mnnkfi-2zv-k._.js +1 -1
  542. package/server/.next/server/chunks/ssr/src_app_(console)_vercel-actions_ts_0wpk1yo9v632d._.js +1 -1
  543. package/server/.next/server/chunks/ssr/src_app_mfa_setup_setup-flow_tsx_1fpwygr2vdgnh._.js +1 -1
  544. package/server/.next/server/chunks/ssr/src_app_setup_setup-form_tsx_0izoagdur96e1._.js +1 -1
  545. package/server/.next/server/chunks/ssr/src_app_signin_1fj68y-bbe-xr._.js +3 -0
  546. package/server/.next/server/chunks/ssr/src_components_08d78uqnnmrrh._.js +1 -1
  547. package/server/.next/server/chunks/ssr/src_components_create_create-dialog_tsx_1s_9clly_m1ru._.js +1 -1
  548. package/server/.next/server/chunks/ssr/src_lib_0eqv8l-v8d5ze._.js +1 -1
  549. package/server/.next/server/chunks/ssr/src_lib_1eioo4oodq-8h._.js +1 -1
  550. package/server/.next/server/chunks/ssr/src_lib_1gauld53vvpev._.js +3 -0
  551. package/server/.next/server/chunks/ssr/src_lib_collector_run_ts_0-q8is8s0y9cq._.js +3 -3
  552. package/server/.next/server/chunks/ssr/{src_lib_demo_0ftmf3wmtezvl._.js → src_lib_demo_09ht4doed9eqi._.js} +2 -2
  553. package/server/.next/server/chunks/ssr/src_lib_demo_1b1yd_ne2dpeh._.js +1 -1
  554. package/server/.next/server/chunks/ssr/src_lib_demo_pool_ts_0fpn8acsdk64i._.js +14 -14
  555. package/server/.next/server/chunks/ssr/src_lib_view_labels_ts_1uxs84z7vclz5._.js +1 -1
  556. package/server/.next/server/chunks/ssr/src_private_04omlb_sgy-_r._.js +2 -2
  557. package/server/.next/server/chunks/ssr/src_private_0iy_wyg2p1jkn._.js +1 -1
  558. package/server/.next/server/chunks/ssr/src_private_1yzfhupl3rlpx._.js +6 -0
  559. package/server/.next/server/chunks/ssr/src_private_actions_decide-form_tsx_1hngtxpyle3v8._.js +1 -1
  560. package/server/.next/server/chunks/ssr/src_private_ai_providers_actions_ts_0wxa36ai6s5nn._.js +1 -1
  561. package/server/.next/server/chunks/ssr/src_private_notes_notes-actions_ts_1g63g8u965fhc._.js +1 -1
  562. package/server/.next/server/middleware-build-manifest.js +3 -3
  563. package/server/.next/server/pages/404.html +1 -1
  564. package/server/.next/server/pages/500.html +1 -1
  565. package/server/.next/server/preview-props.json +3 -3
  566. package/server/.next/server/server-reference-manifest.js +1 -1
  567. package/server/.next/server/server-reference-manifest.json +321 -143
  568. package/server/.next/static/chunks/{1ukyjy13dwy_z.js → 0-ett1b-o34r0.js} +1 -1
  569. package/server/.next/static/chunks/{3f1td0b-oy-sr.js → 0-fov5gyz32mj.js} +1 -1
  570. package/server/.next/static/chunks/{38g-5wiggu6__.js → 041ko45qawas9.js} +1 -1
  571. package/server/.next/static/chunks/{33ddsp07_9o1d.js → 0ia5361d7hoce.js} +2 -2
  572. package/server/.next/static/chunks/{2xio-kspedw69.js → 0m40tf7-fh2ht.js} +1 -1
  573. package/server/.next/static/chunks/{1y_6crandf_3f.js → 0o6_y6xu__s6q.js} +1 -1
  574. package/server/.next/static/chunks/{2s-_9p0-395sm.js → 0x1xj431cbkfa.js} +1 -1
  575. package/server/.next/static/chunks/{1xm6ay06cjchs.js → 0x6eipkda93fh.js} +1 -1
  576. package/server/.next/static/chunks/{2-m982u6v7z8m.js → 0zj507c7ui4jt.js} +1 -1
  577. package/server/.next/static/chunks/{40n6mtthd3_sh.js → 11_iva96ceble.js} +1 -1
  578. package/server/.next/static/chunks/{3letbzhf_1srv.js → 15_3o9t6d7ujo.js} +1 -1
  579. package/server/.next/static/chunks/{340qccog2_uge.js → 1e0iyxugtm7b0.js} +2 -2
  580. package/server/.next/static/chunks/{0md0jy9rztofl.js → 1eeqy_pc_llv4.js} +1 -1
  581. package/server/.next/static/chunks/{0-6om8-d7itz8.js → 1g3u_ngexgvss.js} +1 -1
  582. package/server/.next/static/chunks/{2z6gojfx3lqvt.js → 1ghfc_9g9io17.js} +1 -1
  583. package/server/.next/static/chunks/{0v_-lu_cx7f91.js → 1gw40u38oaj6z.js} +1 -1
  584. package/server/.next/static/chunks/{1rkrtrvwbbnjf.js → 1jc9qa7xb63lp.js} +1 -1
  585. package/server/.next/static/chunks/{01u9q07wu6-x1.js → 1muk1ubaswhlj.js} +1 -1
  586. package/server/.next/static/chunks/{31v3igne_z-0k.js → 1qug5gmo2rbaf.js} +1 -1
  587. package/server/.next/static/chunks/{16yvy9zkjac5c.js → 1vyf467_8v-cw.js} +1 -1
  588. package/server/.next/static/chunks/{2a3tky__z9q4j.js → 1z8byc-won_tq.js} +1 -1
  589. package/server/.next/static/chunks/{0181phyuecg9b.js → 1zhnm25vt6hu8.js} +1 -1
  590. package/server/.next/static/chunks/{1gt3cagsbgx4w.js → 243ijh4fs2zsq.js} +1 -1
  591. package/server/.next/static/chunks/{2cipdjdkoq312.js → 299jy1-g0cm8n.js} +1 -1
  592. package/server/.next/static/chunks/{2ue_c6tww95_c.js → 2hscqr4n7hu7n.js} +1 -1
  593. package/server/.next/static/chunks/{18johpgap0xmw.js → 2j4kmkog1zkpo.js} +1 -1
  594. package/server/.next/static/chunks/{18mkhwl0zlvnp.js → 2j9fpx77gfesr.js} +1 -1
  595. package/server/.next/static/chunks/{0hj1-5zruyih6.js → 2jdlcu25qy00d.js} +1 -1
  596. package/server/.next/static/chunks/{3imk3dh9_4wd5.js → 2kurh5s5u8_4-.js} +1 -1
  597. package/server/.next/static/chunks/{1_8g4usrgjnnu.js → 2seth6dz7lydu.js} +1 -1
  598. package/server/.next/static/chunks/{0xcpi35p5fa83.js → 2t30gqjhercob.js} +1 -1
  599. package/server/.next/static/chunks/{1q-m7qgrvvzwb.js → 2y05vm9r_wxds.js} +1 -1
  600. package/server/.next/static/chunks/{0z0may9twpt-j.js → 2ziborutqth-2.js} +1 -1
  601. package/server/.next/static/chunks/{0_5_9w6m-xwd0.js → 3-xb6vd_khwfo.js} +1 -1
  602. package/server/.next/static/chunks/{1sc1vz_ygak9u.js → 36e9fpbpqndu5.js} +1 -1
  603. package/server/.next/static/chunks/{0t66sf4vvalei.js → 3cjokqd7600_0.js} +1 -1
  604. package/server/.next/static/chunks/{3qedt96akbcad.js → 3hpyrqm98toxv.js} +1 -1
  605. package/server/.next/static/chunks/{1ys80h6x541kn.js → 3kqiccrh_bnpl.js} +2 -2
  606. package/server/.next/static/chunks/{3wi930ujb_5_z.js → 3r3-9oir5c1ul.js} +1 -1
  607. package/server/.next/static/chunks/{0krhehmzgigx5.js → 3wl06e5yyzlwh.js} +1 -1
  608. package/server/.next/static/chunks/{3jhh47vezwohc.js → 3xbsyym_tfj0u.js} +1 -1
  609. package/server/.next/static/chunks/{3a5a2iizetq9b.js → 3ymogjp57edbj.js} +1 -1
  610. package/server/.next/static/chunks/{00oeu_tbjky7m.js → 422gxqrwveuyc.js} +1 -1
  611. package/server/.next/static/chunks/{2ect0ww0gtoad.js → 442t8i7d46g9y.js} +2 -2
  612. package/server/.next/static/chunks/{0mp6prf1hx5mx.js → 4545xu4sehvxc.js} +1 -1
  613. package/server/server.js +1 -1
  614. package/server/.next/server/chunks/[root-of-the-server]__0-u9oeob2sa7f._.js +0 -3
  615. package/server/.next/server/chunks/[root-of-the-server]__028cxv1v6v0yb._.js +0 -3
  616. package/server/.next/server/chunks/[root-of-the-server]__04oipax0jupxr._.js +0 -3
  617. package/server/.next/server/chunks/[root-of-the-server]__07byme21uj5ln._.js +0 -3
  618. package/server/.next/server/chunks/[root-of-the-server]__07g16s_wi2sai._.js +0 -3
  619. package/server/.next/server/chunks/[root-of-the-server]__0ab040lxtt8_d._.js +0 -3
  620. package/server/.next/server/chunks/[root-of-the-server]__0dvuy3ibsyiik._.js +0 -3
  621. package/server/.next/server/chunks/[root-of-the-server]__0gmn5s40au84-._.js +0 -3
  622. package/server/.next/server/chunks/[root-of-the-server]__0k7o0hgdraix2._.js +0 -3
  623. package/server/.next/server/chunks/[root-of-the-server]__0o0z59_jylzvy._.js +0 -3
  624. package/server/.next/server/chunks/[root-of-the-server]__0quiawzx_nww0._.js +0 -3
  625. package/server/.next/server/chunks/[root-of-the-server]__0v1t0gkrsn99q._.js +0 -3
  626. package/server/.next/server/chunks/[root-of-the-server]__0wdxw44t9l9o_._.js +0 -3
  627. package/server/.next/server/chunks/[root-of-the-server]__0y99cuuxm0xs3._.js +0 -3
  628. package/server/.next/server/chunks/[root-of-the-server]__0zflnh-2nol66._.js +0 -3
  629. package/server/.next/server/chunks/[root-of-the-server]__10cqzo_4dhr4m._.js +0 -3
  630. package/server/.next/server/chunks/[root-of-the-server]__10dp33pb5e0ml._.js +0 -3
  631. package/server/.next/server/chunks/[root-of-the-server]__12xl6ax-q8s93._.js +0 -3
  632. package/server/.next/server/chunks/[root-of-the-server]__14sac3h4sfhh7._.js +0 -3
  633. package/server/.next/server/chunks/[root-of-the-server]__16md_196q9s8a._.js +0 -3
  634. package/server/.next/server/chunks/[root-of-the-server]__17xbg7cngebwp._.js +0 -3
  635. package/server/.next/server/chunks/[root-of-the-server]__18lfi0w0e_h0k._.js +0 -3
  636. package/server/.next/server/chunks/[root-of-the-server]__1c1wqmzm65xo8._.js +0 -3
  637. package/server/.next/server/chunks/[root-of-the-server]__1gry2nrq5xhxl._.js +0 -3
  638. package/server/.next/server/chunks/[root-of-the-server]__1hl9k6e1o7xh2._.js +0 -3
  639. package/server/.next/server/chunks/[root-of-the-server]__1kk_s-q90445m._.js +0 -3
  640. package/server/.next/server/chunks/[root-of-the-server]__1kqq90-sj8-op._.js +0 -3
  641. package/server/.next/server/chunks/[root-of-the-server]__1lam0c5a3f224._.js +0 -3
  642. package/server/.next/server/chunks/[root-of-the-server]__1lfsf7un8kdbr._.js +0 -3
  643. package/server/.next/server/chunks/[root-of-the-server]__1nusfevn1z4nm._.js +0 -3
  644. package/server/.next/server/chunks/[root-of-the-server]__1o9v_499yd5k8._.js +0 -3
  645. package/server/.next/server/chunks/[root-of-the-server]__1oc55uo0ax787._.js +0 -3
  646. package/server/.next/server/chunks/[root-of-the-server]__1onjxlntn-u8g._.js +0 -3
  647. package/server/.next/server/chunks/[root-of-the-server]__1pscg7y0et34j._.js +0 -3
  648. package/server/.next/server/chunks/[root-of-the-server]__1qdbn4gdg7ndr._.js +0 -3
  649. package/server/.next/server/chunks/[root-of-the-server]__1uqxnb7qfqcms._.js +0 -3
  650. package/server/.next/server/chunks/[root-of-the-server]__1vxtt1favjdfr._.js +0 -3
  651. package/server/.next/server/chunks/[root-of-the-server]__1xwgj26z5f7ih._.js +0 -3
  652. package/server/.next/server/chunks/[root-of-the-server]__20sv90-2ei08l._.js +0 -3
  653. package/server/.next/server/chunks/_0pf2g5n_ko5dq._.js +0 -3
  654. package/server/.next/server/chunks/_0qmi54vmnlwdv._.js +0 -10
  655. package/server/.next/server/chunks/_15g-opioju_ju._.js +0 -3
  656. package/server/.next/server/chunks/_1daeuesc2d2tg._.js +0 -3
  657. package/server/.next/server/chunks/_1g_prqb_u33e3._.js +0 -10
  658. package/server/.next/server/chunks/src_12wdz9bdn7a-7._.js +0 -3
  659. package/server/.next/server/chunks/src_lib_103kimc1xvc_0._.js +0 -9
  660. package/server/.next/server/chunks/src_lib_1sdusf16f07x-._.js +0 -9
  661. package/server/.next/server/chunks/ssr/[root-of-the-server]__056nm27ib-x1m._.js +0 -3
  662. package/server/.next/server/chunks/ssr/[root-of-the-server]__0eaqsql69fhf8._.js +0 -3
  663. package/server/.next/server/chunks/ssr/[root-of-the-server]__0l_cl2qk_xmmr._.js +0 -3
  664. package/server/.next/server/chunks/ssr/[root-of-the-server]__0nxyo70ahj7tk._.js +0 -3
  665. package/server/.next/server/chunks/ssr/[root-of-the-server]__1wr4__6rvsb3b._.js +0 -3
  666. package/server/.next/server/chunks/ssr/_0uvkx5n0kf7r2._.js +0 -3
  667. package/server/.next/server/chunks/ssr/_0zkmkbrbc96-h._.js +0 -3
  668. package/server/.next/server/chunks/ssr/_1o94cw0ml7xu7._.js +0 -3
  669. package/server/.next/server/chunks/ssr/src_0jxjbvkvg0bjg._.js +0 -3
  670. package/server/.next/server/chunks/ssr/src_0txyv7r1zns16._.js +0 -3
  671. package/server/.next/server/chunks/ssr/src_1xoua7wkmyfkn._.js +0 -3
  672. package/server/.next/server/chunks/ssr/src_1y827m5-ojdib._.js +0 -6
  673. package/server/.next/server/chunks/ssr/src_app_(console)_1shtcv6hidi4-._.js +0 -3
  674. package/server/.next/server/chunks/ssr/src_app_signin_0ko968fxahf6u._.js +0 -3
  675. package/server/.next/server/chunks/ssr/src_lib_04orn7u7ufxp1._.js +0 -3
  676. /package/server/.next/static/{2_t4xVgbum1rtVSQxAYYV → u0RcJ9L5FEEUdENisty65}/_buildManifest.js +0 -0
  677. /package/server/.next/static/{2_t4xVgbum1rtVSQxAYYV → u0RcJ9L5FEEUdENisty65}/_clientMiddlewareManifest.js +0 -0
  678. /package/server/.next/static/{2_t4xVgbum1rtVSQxAYYV → u0RcJ9L5FEEUdENisty65}/_ssgManifest.js +0 -0
@@ -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)("4071be8f0bf534c68e1a16de52690a81a745e0708c",j.callServer,void 0,j.findSourceMapURL,"deleteMetricsKey"),l=(0,j.createServerReference)("70ddb0e8e036827e3bf83738286b116a0cda196f27",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)("60ccb08e2d2bee97aef5c49a40826a9fe3c34ee8f7",m.callServer,void 0,m.findSourceMapURL,"checkServicesAction"),o=(0,m.createServerReference)("6045b81a50723902cc9420a754199db5f0b2b7601f",m.callServer,void 0,m.findSourceMapURL,"pauseAction"),p=(0,m.createServerReference)("60eb166f2e30a62c0278c7962c860a6e35ada978d4",m.callServer,void 0,m.findSourceMapURL,"restoreAction"),q=(0,m.createServerReference)("60336223ffd40f1f2138a49236243ffed5aa843839",m.callServer,void 0,m.findSourceMapURL,"setAutoRestore"),r=(0,m.createServerReference)("6049d901862c6dcd6e86369d5310d7ee53c50b1909",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)("404a1d709d8ea29260a393e75285bd7ceaaf3337c6",j.callServer,void 0,j.findSourceMapURL,"deleteMetricsKey"),l=(0,j.createServerReference)("70398420121533b8718b56dc2006dabec0bf8cb6d7",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)("603413cecb09c8616075fbcb8968d2feaf25542bb6",m.callServer,void 0,m.findSourceMapURL,"checkServicesAction"),o=(0,m.createServerReference)("60a0d506d6bd7ba2a96cf811a7b308f7225e11f3c4",m.callServer,void 0,m.findSourceMapURL,"pauseAction"),p=(0,m.createServerReference)("604b33022d9ff58808bffe6b9a870e6a8963c802a3",m.callServer,void 0,m.findSourceMapURL,"restoreAction"),q=(0,m.createServerReference)("60169536f2d20dcf374d720f23c23c5473e25cb7cd",m.callServer,void 0,m.findSourceMapURL,"setAutoRestore"),r=(0,m.createServerReference)("6032a481ce25e06e6eca0bbb28709dc44dae050a99",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
@@ -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,"003da185ea3b422df1ad0ae417ff4b2423cc61dd52",null),(0,b.registerServerReference)(t,"00a579920bcbfd392494f865c666835131e83a31d5",null),a.s(["w",0,s,"n",0,t],953685)}];
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,"00f8fe10b577469c83e7a0bade3af57f6755f05dbc",null),(0,b.registerServerReference)(t,"00a29692da228778564cc2cc752559bc07419564a3",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)("4081b212bdda45b1b91a2000896b2c5dc894e59606",m.callServer,void 0,m.findSourceMapURL,"addWindow"),o=(0,m.createServerReference)("60691b9ef90a0c556dc1c9aea866362097606dbc70",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)("40961be139fc165f7e728bfcc2ca3b9d1aa90ef9ab",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)("60d75af1ca860735ac3533a0f1cf9cd0ee2a5ff3b8",k.callServer,void 0,k.findSourceMapURL,"addHeartbeat"),m=(0,k.createServerReference)("600b440cee17caf8dc105fc3d5cc6aa8313c1a3c17",k.callServer,void 0,k.findSourceMapURL,"addMonitor"),n=(0,k.createServerReference)("6005db2d75e2dcd51b5d582113b2e4616179c9e40e",k.callServer,void 0,k.findSourceMapURL,"editHeartbeat"),o=(0,k.createServerReference)("608e936178a196974e226b3b147c1ca19f5a6a7277",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)("402f8260943029fd392aea231592c83cd03a2b7966",h.callServer,void 0,h.findSourceMapURL,"checkNow"),j=(0,h.createServerReference)("40dd398c83d0c66b0b278ee01d9be06ec6d82a6a27",h.callServer,void 0,h.findSourceMapURL,"newPingUrl"),k=(0,h.createServerReference)("601050607230ed79df2832f6059ff86f40e004901e",h.callServer,void 0,h.findSourceMapURL,"pauseMonitor"),l=(0,h.createServerReference)("606aec66ae2918a7a25fd693b353d53936b480d6cc",h.callServer,void 0,h.findSourceMapURL,"recordTestPingAction"),m=(0,h.createServerReference)("40a18666d3dd9a61d3cebafe139b4d2fee9789adb2",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)("40f8fa24d41bfa4b4abe343f19794bcb2f4e3ed45f",m.callServer,void 0,m.findSourceMapURL,"addWindow"),o=(0,m.createServerReference)("6016edcc939a2dc682e8bf5c6822371e53cf36b70c",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)("40b747ba81b54f61610f840aa3aaa3a48d7636775b",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)("606608f1aaad295a654bce96033d08b694943bcf5f",k.callServer,void 0,k.findSourceMapURL,"addHeartbeat"),m=(0,k.createServerReference)("607e6ccad3576a41fb06b663738c76fb9e83b3e403",k.callServer,void 0,k.findSourceMapURL,"addMonitor"),n=(0,k.createServerReference)("60afdf2ea325985114553855550eab469057608eb2",k.callServer,void 0,k.findSourceMapURL,"editHeartbeat"),o=(0,k.createServerReference)("60f539f9516ec6234a00b565d6a91a7397291c7b50",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)("40b5236d91a1a2404af2a4d7b1a043ae54b573572d",h.callServer,void 0,h.findSourceMapURL,"checkNow"),j=(0,h.createServerReference)("40d83105cb60fe3d8815c8b57112567a8ae3d0d141",h.callServer,void 0,h.findSourceMapURL,"newPingUrl"),k=(0,h.createServerReference)("603508b8d4a231243ef80d80e0be03aff7417516f0",h.callServer,void 0,h.findSourceMapURL,"pauseMonitor"),l=(0,h.createServerReference)("601a75e7ca1863b0f22f4e8789f5e8402a6bc1da14",h.callServer,void 0,h.findSourceMapURL,"recordTestPingAction"),m=(0,h.createServerReference)("405724da6049a46346b20faca24b25c0f1136073f7",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
@@ -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(915598),h=a.i(683439),i=a.i(75105),j=a.i(572134),k=a.i(288666);let l={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'}]},m=["stdout","stderr","command","delimiter"],n=/\u001b\[[0-9;?]*[A-Za-z]/g,o=a=>a&&"object"==typeof a&&!Array.isArray(a)?a:null;async function p(a,b,c,d={}){let e=new URLSearchParams({teamId:b,builds:"1",direction:"backward",limit:String(2e3)}),f=await (0,k.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=o(c);if(!a||!m.includes(a.type))continue;let d=o(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(n,"").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,k.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 q=a.i(657582),r=a.i(713095);let s={requireActionMember:d.g};async function t(a,b){return(0,c.F)("operator",async c=>(0,h.f)(a)&&"string"==typeof b&&g.T.test(b)?(0,g.B)(c,a,b):{ok:!1,error:i.w},s)}async function u(a){return(0,c.F)("operator",async b=>{if(!(0,h.f)(a))return{ok:!1,error:i.w};let c=await (0,e.R)(a);return c?(0,g.B)(b,a,c):{ok:!1,error:"No current production deployment"}},s)}async function v(a,b){return(0,c.F)("operator",async()=>{if(!(0,h.f)(a)||"string"!=typeof b||!g.T.test(b)||!await (0,e.C)(a,b))return{ok:!1,error:i.w};let c=await (0,f.p)(a,"app"),d=c?.resource.meta.teamId;if(!c||"string"!=typeof d||!d)return{ok:!1,error:g.u};let j=await p(c.token,d,b);return j.ok?{ok:!0,data:j.data}:{ok:!1,error:`Couldn't read the build log: ${j.error}`}},s,async()=>({ok:!0,data:l}))}async function w(a,b){return(0,c.F)("operator",async c=>(0,h.f)(a)&&"string"==typeof b&&g.T.test(b)?(0,g.U)(c,a,b):{ok:!1,error:i.w},s)}async function x(a,b){return(0,c.F)("operator",async c=>{if(!(0,h.f)(a)||"string"!=typeof b||!g.T.test(b))return{ok:!1,error:i.w};let d=await (0,g.p)(c,"promote",a);if("string"==typeof d)return(0,f.W)((0,g.O)(d),c,"");let e=await (0,g.X)(d);if(!e.ok)return(0,f.W)((0,g.O)(e.error),c,d.t.account.id);if(e.data.currentId===b)return(0,f.W)((0,g.O)(g.f),c,d.t.account.id);let k=e.data.production.find(a=>a.id===b);if(!k||"staged"!==(0,q.U)(k,e.data.currentId,e.data.production))return(0,f.W)((0,g.O)(g.v),c,d.t.account.id);let l=(0,g.C)(k,b),m=await (0,j.u)(d.t.token,d.teamId,d.projectId,b);return(0,g.J)(d,m,{message:`Promoted ${l}. New pushes to ${d.app} go live again.`,audit:`Promoted \xb7 ${d.app} → ${l}`},`Promote failed \xb7 ${d.app} → ${l}`)},s)}async function y(a,b){return(0,c.F)("operator",async c=>{if(!(0,h.f)(a)||"string"!=typeof b||!g.T.test(b))return{ok:!1,error:i.w};let d=await (0,g.p)(c,"cancel",a);if("string"==typeof d)return(0,f.W)((0,g.O)(d),c,"");let e=await (0,j.S)(d.t.token,{id:d.teamId,slug:d.teamSlug,name:d.teamSlug},b);if(!e.ok)return(0,f.W)((0,g.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,g.O)(i.w),c,d.t.account.id);if(!g.o.has(e.data.rawState))return(0,f.W)((0,g.O)("This build already finished."),c,d.t.account.id);let k=(0,g.C)(e.data,b),l=await (0,j.T)(d.t.token,d.teamId,b);return(0,g.J)(d,l,{message:"Build canceled. The current production deployment stays live.",audit:`Build canceled \xb7 ${d.app} \xb7 ${k}`},`Cancel failed \xb7 ${d.app} \xb7 ${k}`)},s)}async function z(a,b){return(0,c.F)("operator",async c=>{if(!(0,h.f)(a)||"string"!=typeof b||!g.T.test(b))return{ok:!1,error:i.w};let d=await (0,g.p)(c,"promote-preview",a);if("string"==typeof d)return(0,f.W)((0,g.O)(d),c,"");let e=await (0,j.S)(d.t.token,{id:d.teamId,slug:d.teamSlug,name:d.teamSlug},b);if(!e.ok)return(0,f.W)((0,g.O)(404===e.status?g.G:e.error),c,d.t.account.id);if(e.data.projectId!==d.projectId)return(0,f.W)((0,g.O)(i.w),c,d.t.account.id);if("preview"!==e.data.target||"READY"!==e.data.rawState)return(0,f.W)((0,g.O)(g.l),c,d.t.account.id);let k=await (0,g.X)(d);if(!k.ok)return(0,f.W)((0,g.O)(k.error),c,d.t.account.id);if(k.data.production.some(a=>"staged"===(0,q.U)(a,k.data.currentId,k.data.production)))return(0,f.W)((0,g.O)(g.S),c,d.t.account.id);let l=await (0,j.N)(d.t.token,d.teamId,d.projectId);if(!l.ok)return(0,f.W)((0,g.O)(l.error),c,d.t.account.id);if(l.data)return(0,f.W)((0,g.O)(`A production build of ${d.app} is already running.`),c,d.t.account.id);let m=(0,g.C)(e.data,b),n=await (0,j.l)(d.t.token,d.teamId,{projectId:d.projectId,name:k.data.name,deploymentId:b});return(0,g.J)(d,n,{message:`Promoting ${m} 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 ${m}`},`Preview promote failed \xb7 ${d.app} \xb7 ${m}`)},s)}(0,r.ensureServerEntryExports)([t,u,v,w,x,y,z]),(0,b.registerServerReference)(t,"60ab715dc0f3c913901ded5f4768e71fb65bc62160",null),(0,b.registerServerReference)(u,"40b909d61c1da65c4de755397527e4c4b345b25bd5",null),(0,b.registerServerReference)(v,"60d1dea235418057e78d12d4440f69ad26fe4e4606",null),(0,b.registerServerReference)(w,"60f1287cc1e64ea53dc4b944374d18210f5210ddff",null),(0,b.registerServerReference)(x,"603f5b5ca7ddb2043a88cd86b7453de96a4aed3a66",null),(0,b.registerServerReference)(y,"60a6d927970f8843148f3c9f05e7de2353d2ff83d2",null),(0,b.registerServerReference)(z,"602819a58d8471551daa878f5f94f831116e341596",null),a.s(["m",0,v,"x",0,y,"j",0,x,"Y",0,z,"t",0,t,"n",0,u,"d",0,w],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(915598),h=a.i(683439),i=a.i(75105),j=a.i(572134),k=a.i(288666);let l={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'}]},m=["stdout","stderr","command","delimiter"],n=/\u001b\[[0-9;?]*[A-Za-z]/g,o=a=>a&&"object"==typeof a&&!Array.isArray(a)?a:null;async function p(a,b,c,d={}){let e=new URLSearchParams({teamId:b,builds:"1",direction:"backward",limit:String(2e3)}),f=await (0,k.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=o(c);if(!a||!m.includes(a.type))continue;let d=o(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(n,"").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,k.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 q=a.i(657582),r=a.i(713095);let s={requireActionMember:d.g};async function t(a,b){return(0,c.F)("operator",async c=>(0,h.f)(a)&&"string"==typeof b&&g.T.test(b)?(0,g.B)(c,a,b):{ok:!1,error:i.w},s)}async function u(a){return(0,c.F)("operator",async b=>{if(!(0,h.f)(a))return{ok:!1,error:i.w};let c=await (0,e.R)(a);return c?(0,g.B)(b,a,c):{ok:!1,error:"No current production deployment"}},s)}async function v(a,b){return(0,c.F)("operator",async()=>{if(!(0,h.f)(a)||"string"!=typeof b||!g.T.test(b)||!await (0,e.C)(a,b))return{ok:!1,error:i.w};let c=await (0,f.p)(a,"app"),d=c?.resource.meta.teamId;if(!c||"string"!=typeof d||!d)return{ok:!1,error:g.u};let j=await p(c.token,d,b);return j.ok?{ok:!0,data:j.data}:{ok:!1,error:`Couldn't read the build log: ${j.error}`}},s,async()=>({ok:!0,data:l}))}async function w(a,b){return(0,c.F)("operator",async c=>(0,h.f)(a)&&"string"==typeof b&&g.T.test(b)?(0,g.U)(c,a,b):{ok:!1,error:i.w},s)}async function x(a,b){return(0,c.F)("operator",async c=>{if(!(0,h.f)(a)||"string"!=typeof b||!g.T.test(b))return{ok:!1,error:i.w};let d=await (0,g.p)(c,"promote",a);if("string"==typeof d)return(0,f.W)((0,g.O)(d),c,"");let e=await (0,g.X)(d);if(!e.ok)return(0,f.W)((0,g.O)(e.error),c,d.t.account.id);if(e.data.currentId===b)return(0,f.W)((0,g.O)(g.f),c,d.t.account.id);let k=e.data.production.find(a=>a.id===b);if(!k||"staged"!==(0,q.U)(k,e.data.currentId,e.data.production))return(0,f.W)((0,g.O)(g.v),c,d.t.account.id);let l=(0,g.C)(k,b),m=await (0,j.u)(d.t.token,d.teamId,d.projectId,b);return(0,g.J)(d,m,{message:`Promoted ${l}. New pushes to ${d.app} go live again.`,audit:`Promoted \xb7 ${d.app} → ${l}`},`Promote failed \xb7 ${d.app} → ${l}`)},s)}async function y(a,b){return(0,c.F)("operator",async c=>{if(!(0,h.f)(a)||"string"!=typeof b||!g.T.test(b))return{ok:!1,error:i.w};let d=await (0,g.p)(c,"cancel",a);if("string"==typeof d)return(0,f.W)((0,g.O)(d),c,"");let e=await (0,j.S)(d.t.token,{id:d.teamId,slug:d.teamSlug,name:d.teamSlug},b);if(!e.ok)return(0,f.W)((0,g.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,g.O)(i.w),c,d.t.account.id);if(!g.o.has(e.data.rawState))return(0,f.W)((0,g.O)("This build already finished."),c,d.t.account.id);let k=(0,g.C)(e.data,b),l=await (0,j.T)(d.t.token,d.teamId,b);return(0,g.J)(d,l,{message:"Build canceled. The current production deployment stays live.",audit:`Build canceled \xb7 ${d.app} \xb7 ${k}`},`Cancel failed \xb7 ${d.app} \xb7 ${k}`)},s)}async function z(a,b){return(0,c.F)("operator",async c=>{if(!(0,h.f)(a)||"string"!=typeof b||!g.T.test(b))return{ok:!1,error:i.w};let d=await (0,g.p)(c,"promote-preview",a);if("string"==typeof d)return(0,f.W)((0,g.O)(d),c,"");let e=await (0,j.S)(d.t.token,{id:d.teamId,slug:d.teamSlug,name:d.teamSlug},b);if(!e.ok)return(0,f.W)((0,g.O)(404===e.status?g.G:e.error),c,d.t.account.id);if(e.data.projectId!==d.projectId)return(0,f.W)((0,g.O)(i.w),c,d.t.account.id);if("preview"!==e.data.target||"READY"!==e.data.rawState)return(0,f.W)((0,g.O)(g.l),c,d.t.account.id);let k=await (0,g.X)(d);if(!k.ok)return(0,f.W)((0,g.O)(k.error),c,d.t.account.id);if(k.data.production.some(a=>"staged"===(0,q.U)(a,k.data.currentId,k.data.production)))return(0,f.W)((0,g.O)(g.S),c,d.t.account.id);let l=await (0,j.N)(d.t.token,d.teamId,d.projectId);if(!l.ok)return(0,f.W)((0,g.O)(l.error),c,d.t.account.id);if(l.data)return(0,f.W)((0,g.O)(`A production build of ${d.app} is already running.`),c,d.t.account.id);let m=(0,g.C)(e.data,b),n=await (0,j.l)(d.t.token,d.teamId,{projectId:d.projectId,name:k.data.name,deploymentId:b});return(0,g.J)(d,n,{message:`Promoting ${m} 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 ${m}`},`Preview promote failed \xb7 ${d.app} \xb7 ${m}`)},s)}(0,r.ensureServerEntryExports)([t,u,v,w,x,y,z]),(0,b.registerServerReference)(t,"6041a8078651633dfe1c48782277520e5a38c49d23",null),(0,b.registerServerReference)(u,"409e2a24234ae02840f20c327ad5f5d7f515652a43",null),(0,b.registerServerReference)(v,"60ce66327cd33d5774f652d9f4e84ab89305d44b3d",null),(0,b.registerServerReference)(w,"602a6482a35cef410c7fae37b6e1957b7704f01fc1",null),(0,b.registerServerReference)(x,"608fd3226d92ebd148e568795bc072d2f7fa38bcbe",null),(0,b.registerServerReference)(y,"60b8c0a36189ebb7a67a81d5f511990136046372dc",null),(0,b.registerServerReference)(z,"60e21467c9e8979c0d02b704ce917237fec113fa2f",null),a.s(["m",0,v,"x",0,y,"j",0,x,"Y",0,z,"t",0,t,"n",0,u,"d",0,w],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)("6002cd2b71cb2ad10e2746f9eff56d0e7d49b81470",e.callServer,void 0,e.findSourceMapURL,"confirmMfaEnrollment"),g=(0,e.createServerReference)("00e51e84d94664bbfd5298edba7ace599013bf4cdc",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)}];
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)("60ea35e9ba30f4e63b7ccabb3dcddbc497632af88b",e.callServer,void 0,e.findSourceMapURL,"confirmMfaEnrollment"),g=(0,e.createServerReference)("008fb7876b2121117eadfd3a8be1fea8df03c5c5c3",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=[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)("6042a008298d6ba7c77f2c7a7c4426585170f163e7",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)}];
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)("6097b283e870fadc525c8a337abfcb9b105b01a0e6",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
@@ -0,0 +1,3 @@
1
+ (()=>{"use strict";module.exports=[93088,a=>{var b=a.i(405050);let c=(0,b.createServerReference)("605ed07a4fd8782dd1fac869114338d4291bfd7f2d",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(93088);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(93088);a.s(["PasswordSignInForm",0,function({next:a}){let[f,g,h]=(0,c.useActionState)(e.f,{status:"idle"});return(0,b.jsxs)("form",{action:g,children:[(0,b.jsx)("h1",{className:"mb-1 text-xl",children:"Sign in to Watchbell"}),(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"===f.status?f.email:void 0,className:d.S})}),(0,b.jsx)(d.O,{id:"password",label:"Password",error:"error"===f.status?f.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:h,children:h?"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)("6029a8fba237fff18bf2be456a3151734ec80d21db",g.callServer,void 0,g.findSourceMapURL,"sendSignInLink");a.s(["SignInForm",0,function({siteKey:a}){let[e,g,i]=(0,c.useActionState)(h,{status:"idle"}),[j,k]=(0,c.useState)(!1),[l,m]=(0,c.useState)(0);return"sent"!==e.status||j?(0,b.jsxs)("form",{action:a=>{k(!1),m(a=>a+1),g(a)},children:[(0,b.jsx)("h1",{className:"mb-1 text-xl",children:"Sign in to Watchbell"}),(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"===e.status?e.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},l),(0,b.jsx)(d.K,{type:"submit",variant:"primary",className:"w-full justify-center",disabled:i,children:i?"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 ",e.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:()=>k(!0),children:"Use a different email"})]})}],59558)}]})();
2
+
3
+ //# sourceMappingURL=src_app_signin_1fj68y-bbe-xr._.js.map
@@ -1,3 +1,3 @@
1
- (()=>{"use strict";module.exports=[964887,a=>{var b=a.i(187924),c=a.i(572131),d=a.i(823292),e=a.i(405050);let f=(0,e.createServerReference)("40cce297cbddd2ea50489ed74b280daad691a1743c",e.callServer,void 0,e.findSourceMapURL,"dismissRecommendation");var g=a.i(619089);a.s(["DismissButton",0,function({recKey:a}){let[e,h]=(0,c.useTransition)();return(0,b.jsx)(g.K,{size:"sm",disabled:e,onClick:()=>h(async()=>{try{let b=await f(a);b.ok?d.c.success(b.message??"Dismissed."):d.c.error(b.error)}catch{d.c.error("Watchbell didn't answer. Check that it's still running, then try again.")}}),children:e?"Dismissing…":"Dismiss"})}],964887)},585709,a=>{var b=a.i(187924),c=a.i(572131),d=a.i(486747),e=a.i(462007),f=a.i(427110);a.s(["PlainTable",0,function({head:a,rows:g}){let[h,i]=(0,c.useState)(1),j=(0,f.$)(g,h);return j.page!==h&&i(j.page),(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"overflow-x-auto",children:(0,b.jsxs)("table",{className:e.o,children:[(0,b.jsx)(e.U,{head:a}),(0,b.jsx)("tbody",{children:j.rows.map(a=>(0,b.jsx)(c.Fragment,{children:a.row},a.key))})]})}),(0,b.jsx)(d.f,{page:j.page,pages:j.pages,text:(0,f.z)(j),onPage:i})]})}])},54901,45830,a=>{var b=a.i(187924),c=a.i(572131),d=a.i(771378),e=a.i(611619),f=a.i(619089);function g(a,b=a=>a){return a.ok?{ok:!0,message:b(a.message??"Done.")}:{ok:!1,message:b(a.error)}}function h(){let a=(0,d.useMask)();return b=>g(b,b=>a("text",b))}a.s(["f",0,g],45830),a.s(["p",0,function({label:a,title:c,body:d,cta:g,danger:i=!1,run:j}){let k=h();return(0,b.jsx)(e.f,{trigger:(0,b.jsx)(f.K,{variant:i?"danger":"secondary",children:a}),title:c,body:d,cta:g,danger:i,onConfirm:async()=>k(await j())})},"W",0,function(){let[a,d]=(0,c.useState)(null),f=h(),g=a?(0,b.jsx)(e.f,{open:!0,onOpenChange:a=>{a||d(null)},title:a.title,body:a.body,cta:a.cta,danger:a.danger,onConfirm:async()=>f(await a.run())}):null;return{open:d,dialog:g}}],54901)}]})();
1
+ (()=>{"use strict";module.exports=[964887,a=>{var b=a.i(187924),c=a.i(572131),d=a.i(823292),e=a.i(405050);let f=(0,e.createServerReference)("4010a922d5dc47056e2302199e78f22dd52c7f70af",e.callServer,void 0,e.findSourceMapURL,"dismissRecommendation");var g=a.i(619089);a.s(["DismissButton",0,function({recKey:a}){let[e,h]=(0,c.useTransition)();return(0,b.jsx)(g.K,{size:"sm",disabled:e,onClick:()=>h(async()=>{try{let b=await f(a);b.ok?d.c.success(b.message??"Dismissed."):d.c.error(b.error)}catch{d.c.error("Watchbell didn't answer. Check that it's still running, then try again.")}}),children:e?"Dismissing…":"Dismiss"})}],964887)},585709,a=>{var b=a.i(187924),c=a.i(572131),d=a.i(486747),e=a.i(462007),f=a.i(427110);a.s(["PlainTable",0,function({head:a,rows:g}){let[h,i]=(0,c.useState)(1),j=(0,f.$)(g,h);return j.page!==h&&i(j.page),(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"overflow-x-auto",children:(0,b.jsxs)("table",{className:e.o,children:[(0,b.jsx)(e.U,{head:a}),(0,b.jsx)("tbody",{children:j.rows.map(a=>(0,b.jsx)(c.Fragment,{children:a.row},a.key))})]})}),(0,b.jsx)(d.f,{page:j.page,pages:j.pages,text:(0,f.z)(j),onPage:i})]})}])},54901,45830,a=>{var b=a.i(187924),c=a.i(572131),d=a.i(771378),e=a.i(611619),f=a.i(619089);function g(a,b=a=>a){return a.ok?{ok:!0,message:b(a.message??"Done.")}:{ok:!1,message:b(a.error)}}function h(){let a=(0,d.useMask)();return b=>g(b,b=>a("text",b))}a.s(["f",0,g],45830),a.s(["p",0,function({label:a,title:c,body:d,cta:g,danger:i=!1,run:j}){let k=h();return(0,b.jsx)(e.f,{trigger:(0,b.jsx)(f.K,{variant:i?"danger":"secondary",children:a}),title:c,body:d,cta:g,danger:i,onConfirm:async()=>k(await j())})},"W",0,function(){let[a,d]=(0,c.useState)(null),f=h(),g=a?(0,b.jsx)(e.f,{open:!0,onOpenChange:a=>{a||d(null)},title:a.title,body:a.body,cta:a.cta,danger:a.danger,onConfirm:async()=>f(await a.run())}):null;return{open:d,dialog:g}}],54901)}]})();
2
2
 
3
3
  //# sourceMappingURL=src_components_08d78uqnnmrrh._.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[929994,a=>{"use strict";var b=a.i(187924),c=a.i(817748),d=a.i(901615),e=a.i(572131),f=a.i(823292),g=a.i(405050);let h=(0,g.createServerReference)("60a99acee563dae6858c3d105470c114da7edfbb38",g.callServer,void 0,g.findSourceMapURL,"createOptionsAction"),i=(0,g.createServerReference)("006de3bf8f32e81d0fd4bf6aa3a0fa124dcb22d0d8",g.callServer,void 0,g.findSourceMapURL,"disconnectGoogleCreate"),j=(0,g.createServerReference)("7088ae97dbe713832c3ed7d21bfbaeeba0ee55f892",g.callServer,void 0,g.findSourceMapURL,"requestCreateAction"),k=(0,g.createServerReference)("000fa03d6d8500a2fa2ad64a9c4af3762a11f2215d",g.callServer,void 0,g.findSourceMapURL,"startGoogleCreateConnect");var l=a.i(771378),m=a.i(611619),n=a.i(619089),o=a.i(507504),p=a.i(814574);let q=["This asks Google for the cloud-platform permission: it is broad (it can manage every Google Cloud project you own), so the console uses it only to create a project and add Firebase to it after your approval, and never to change or delete anything.","Google shows an \"unverified app\" warning because Watchbell's OAuth client isn't verified for this scope. It is your own client for your own use: choose Advanced → Go to Watchbell.","While the OAuth consent screen is in Testing mode, Google ends this grant after 7 days; connect again when a create says so. Remove it any time in your Google Account → Security → Third-party access."];d.n.notSet("GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET",!0);var r=a.i(486583),s=a.i(620214);let t=(a,b=300)=>"string"==typeof a&&a.length<=b?a:"",u=(a,b)=>({ok:!1,field:a,error:b}),v=/^(?:\*|[a-z0-9_](?:[a-z0-9_-]{0,61}[a-z0-9_])?)$/,w=/^[a-z0-9][a-z0-9-]{0,62}$/,x=/^br-[a-z0-9-]{3,60}$/,y=[["ap-southeast-1","Southeast Asia (Singapore)"],["ap-northeast-1","Northeast Asia (Tokyo)"],["ap-northeast-2","Northeast Asia (Seoul)"],["ap-southeast-2","Oceania (Sydney)"],["ap-south-1","South Asia (Mumbai)"],["ap-east-1","East Asia (Hong Kong)"],["us-east-1","East US (North Virginia)"],["us-east-2","East US (Ohio)"],["us-west-1","West US (North California)"],["us-west-2","West US (Oregon)"],["ca-central-1","Canada (Central)"],["sa-east-1","South America (São Paulo)"],["eu-west-1","West EU (Ireland)"],["eu-west-2","West EU (London)"],["eu-west-3","West EU (Paris)"],["eu-north-1","North EU (Stockholm)"],["eu-central-1","Central EU (Frankfurt)"],["eu-central-2","Central EU (Zurich)"]],z=y.map(([a])=>a),A=/^[A-Za-z0-9][A-Za-z0-9 ._-]{0,62}$/,B=/^[\w-]{1,64}$/,C=/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/,D=/^[A-Za-z0-9 '"!-]{4,30}$/;var E=a.i(762802);let F={dns_record:"The name must be new in this zone. Proxied is off unless you turn it on.",neon_branch:"The branch is created without a compute, so it uses no CU-hours until you wake it. Waking it later uses CU-hours (100 a month per project on the free plan).",supabase_project:"Only an organization on the free plan is allowed. The database password is generated when the Owner approves and shown once.",firebase_project:"A Google Cloud project without a billing account (the free Spark plan), then Firebase is added to it."};function G({type:a,target:c,targetName:d,onDone:g}){let i=(0,l.useMask)(),[k,m]=(0,e.useState)(null),[o,q]=(0,e.useState)(null),[y,E]=(0,e.useState)(c),[K,L]=(0,e.useState)({type:"CNAME",ttl:s.k,proxied:!1,region:"ap-southeast-1"}),[M,N]=(0,e.useState)(null),[O,P]=(0,e.useTransition)(),Q=(a,b)=>L(c=>({...c,[a]:b}));(0,e.useEffect)(()=>{let b=!0;return h(a,y).then(a=>{if(b)if(a.ok&&a.data){if(m(a.data),"neon_branch"===a.data.type){let b=(a.data.branches.find(a=>a.isDefault)??a.data.branches[0])?.id??"";L(a=>({...a,parentId:a.parentId??b}))}if("supabase_project"===a.data.type){a.data.accountId&&a.data.accountId!==y&&E(a.data.accountId);let b=a.data.orgs.find(a=>a.allowed);b&&L(a=>({...a,orgSlug:b.slug}))}}else q(a.ok?"Something went wrong.":a.error)}).catch(()=>b&&q("Couldn't load the choices. Try again.")),()=>{b=!1}},[a,y]);let R=a=>M?.field===a?M.text:void 0,S=k?.type==="firebase_project"&&(!k.envReady||!k.connected);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"px-[18px] pb-2 pt-4",children:[(0,b.jsx)(p.F,{className:"text-base",children:i("text",`New ${r.S[a]}${"dns_record"===a||"neon_branch"===a?` in ${d}`:""}`)}),(0,b.jsxs)(p.C,{className:"mt-0.5 text-[13px] text-ink-soft",children:[F[a]," This only asks: the Owner approves it with the authenticator code, then the console checks the free tier again and makes one create call at ",r.E[a],"."]})]}),(0,b.jsxs)("div",{className:"px-[18px] pt-1.5",children:[o&&(0,b.jsx)("div",{className:"mb-3",children:(0,b.jsx)(n.M,{tone:"danger",title:"Couldn't read the live choices",children:o})}),!k&&!o&&(0,b.jsx)("p",{className:"mb-3 text-[13px] text-ink-soft",children:"Reading the live choices…"}),"dns_record"===a&&(0,b.jsx)(H,{v:K,set:Q,fe:R,zone:d}),"neon_branch"===a&&k?.type==="neon_branch"&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("p",{className:"mb-3 text-[13px] text-ink-soft",children:[k.branches.length," of ",k.limit," branches used in this project."]}),(0,b.jsx)(n.O,{id:"cr-parent",label:"Copy from branch",error:R("parentId"),children:(0,b.jsx)("select",{id:"cr-parent",className:n.S,value:String(K.parentId??""),onChange:a=>Q("parentId",a.target.value),children:k.branches.map(a=>(0,b.jsxs)("option",{value:a.id,children:[i("text",a.name),a.isDefault?" (default)":""]},a.id))})}),(0,b.jsx)(n.O,{id:"cr-name",label:"New branch name",error:R("name"),help:"Lower-case letters, digits and hyphens, like preview-42.",children:(0,b.jsx)("input",{id:"cr-name",className:n.S,value:String(K.name??""),maxLength:63,spellCheck:!1,autoComplete:"off",onChange:a=>Q("name",a.target.value)})})]}),"supabase_project"===a&&k?.type==="supabase_project"&&(0,b.jsx)(I,{opts:k,v:K,set:Q,fe:R,account:y,setAccount:E}),"firebase_project"===a&&k?.type==="firebase_project"&&(0,b.jsx)(J,{opts:k,v:K,set:Q,fe:R}),M?.field==="form"&&(0,b.jsx)("p",{className:"mb-3 text-[12.5px] text-err",role:"alert",children:M.text})]}),(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)(n.K,{onClick:g,disabled:O,children:"Cancel"}),(0,b.jsx)(n.K,{variant:"primary",onClick:function(){let b;(b="dns_record"===a?function(a,b){let c=a??{},d=t(c.type,10);if(!s.j.includes(d))return u("type","Only A, AAAA, CNAME and TXT records can be added here.");let e=function(a,b){let c=b.trim().toLowerCase().replace(/\.$/,""),d=a.trim().toLowerCase().replace(/\.$/,"");if(!d||!c||("@"===d?d=c:d===c||d.endsWith(`.${c}`)||(d=`${d}.${c}`),d.length>253))return null;let e=d===c?"":d.slice(0,-(c.length+1));return e&&!e.split(".").every((a,b)=>v.test(a)&&("*"!==a||0===b))?null:d}(t(c.name,260),b);if(!e)return u("name",`The name must be a host in ${b}, like shop or shop.${b}.`);let f="number"==typeof c.ttl?c.ttl:s.k,g=(0,s.V)({type:d,name:e},{content:t(c.content,4096),ttl:f,proxied:!0===c.proxied});return g.ok?{ok:!0,inputs:{zoneName:b.toLowerCase(),type:d,name:e,content:g.values.content,ttl:g.values.ttl,proxied:g.values.proxied}}:u(g.field,g.error)}(K,d):"neon_branch"===a?function(a,b){let c=a??{},d=t(c.name,80).trim();if(!w.test(d))return u("name","Use 1 to 63 lower-case letters, digits and hyphens, starting with a letter or digit.");let e=t(c.parentId,80);return x.test(e)?{ok:!0,inputs:{projectName:b,parentId:e,name:d}}:u("parentId","Pick the branch to copy from.")}(K,d):"supabase_project"===a?function(a){let b=a??{},c=t(b.orgSlug,80);if(!B.test(c))return u("orgSlug","Pick an organization.");let d=t(b.name,80).trim();if(!A.test(d))return u("name","Use 1 to 63 letters, digits, spaces, dots, hyphens or underscores.");let e=t(b.region,30);return z.includes(e)?{ok:!0,inputs:{orgSlug:c,name:d,region:e}}:u("region","Pick a region from the list.")}(K):function(a){let b=a??{},c=t(b.projectId,40).trim();if(!C.test(c)||/google|ssl|undefined|null/.test(c))return u("projectId",'6 to 30 lower-case letters, digits and hyphens, starting with a letter (Google refuses ids with "google").');let d=t(b.displayName,40).trim()||c.slice(0,30);return D.test(d)?{ok:!0,inputs:{projectId:c,displayName:d}}:u("displayName","4 to 30 letters, digits, spaces, hyphens, quotes or exclamation marks.")}(K)).ok?N(null):N({field:b.field,text:b.error}),b.ok&&P(async()=>{try{let b=await j(a,"supabase_project"===a?y:c,K);if(b.ok)f.c.success(i("text",b.message??"Asked.")),g();else{let a=b.fieldErrors?Object.keys(b.fieldErrors)[0]:"form";N({field:a,text:i("text",b.error)})}}catch{N({field:"form",text:"Watchbell didn't answer. Check that it's still running, then try again."})}})},disabled:O||!k||S,children:O?"Checking…":"Check and ask for approval"})]})]})}function H({v:a,set:c,fe:d,zone:e}){let f="TXT"!==a.type;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"grid grid-cols-[120px_minmax(0,1fr)] gap-3 max-[560px]:grid-cols-1",children:[(0,b.jsx)(n.O,{id:"cr-type",label:"Type",error:d("type"),children:(0,b.jsx)("select",{id:"cr-type",className:n.S,value:String(a.type),onChange:a=>c("type",a.target.value),children:["A","AAAA","CNAME","TXT"].map(a=>(0,b.jsx)("option",{children:a},a))})}),(0,b.jsx)(n.O,{id:"cr-name",label:"Name",error:d("name"),help:`A host in ${e}: shop becomes shop.${e}.`,children:(0,b.jsx)("input",{id:"cr-name",className:n.S,value:String(a.name??""),maxLength:253,spellCheck:!1,autoComplete:"off",onChange:a=>c("name",a.target.value)})})]}),(0,b.jsx)(n.O,{id:"cr-content",label:"Content",error:d("content"),help:"CNAME"===a.type?"For Vercel, copy the value shown on the project's Domains page.":void 0,children:(0,b.jsx)("input",{id:"cr-content",className:n.S,value:String(a.content??""),maxLength:2048,spellCheck:!1,autoComplete:"off",onChange:a=>c("content",a.target.value)})}),(0,b.jsx)(n.O,{id:"cr-ttl",label:"TTL",error:d("ttl"),children:(0,b.jsx)("select",{id:"cr-ttl",className:n.S,value:a.proxied?s.k:Number(a.ttl),disabled:!0===a.proxied,onChange:a=>c("ttl",Number(a.target.value)),children:s.i.map(a=>(0,b.jsx)("option",{value:a,children:(0,E.f)(a)},a))})}),f&&(0,b.jsxs)("label",{className:"mb-3.5 flex items-center gap-2 text-[13px]",children:[(0,b.jsx)("input",{type:"checkbox",className:"accent-brand",checked:!0===a.proxied,onChange:a=>c("proxied",a.target.checked)}),"Proxied through Cloudflare (off by default; Vercel recommends DNS only)"]})]})}function I({opts:a,v:c,set:d,fe:e,account:f,setAccount:g}){let h=(0,l.useMask)(),i=a.active>=a.limit;return(0,b.jsxs)(b.Fragment,{children:[a.accounts.length>1&&(0,b.jsx)(n.O,{id:"cr-acc",label:"Supabase account",children:(0,b.jsx)("select",{id:"cr-acc",className:n.S,value:f,onChange:a=>g(a.target.value),children:a.accounts.map(a=>(0,b.jsx)("option",{value:a.id,children:h("account",a.label)},a.id))})}),0===a.accounts.length&&(0,b.jsx)("div",{className:"mb-3",children:(0,b.jsx)(n.M,{tone:"info",title:"No Supabase account connected",children:"Connect one in Connections first."})}),a.error&&(0,b.jsx)("div",{className:"mb-3",children:(0,b.jsx)(n.M,{tone:"danger",title:"Can't create with this token",children:a.error})}),(0,b.jsxs)("p",{className:"mb-3 text-[13px] text-ink-soft",children:[a.active," of ",a.limit," active free projects in use.",i?" Pause one first; paused projects don't count.":""]}),(0,b.jsx)(n.O,{id:"cr-org",label:"Organization",error:e("orgSlug"),help:"Paid or unknown plans are refused: a project there is billed from the first hour.",children:(0,b.jsx)("select",{id:"cr-org",className:n.S,value:String(c.orgSlug??""),onChange:a=>d("orgSlug",a.target.value),children:a.orgs.map(a=>(0,b.jsxs)("option",{value:a.slug,disabled:!a.allowed,children:[h("text",a.name)," · ",a.plan??"plan unknown",a.allowed?"":" (not allowed)"]},a.slug))})}),(0,b.jsx)(n.O,{id:"cr-name",label:"Project name",error:e("name"),children:(0,b.jsx)("input",{id:"cr-name",className:n.S,value:String(c.name??""),maxLength:63,autoComplete:"off",onChange:a=>d("name",a.target.value)})}),(0,b.jsx)(n.O,{id:"cr-region",label:"Region",error:e("region"),children:(0,b.jsx)("select",{id:"cr-region",className:n.S,value:String(c.region),onChange:a=>d("region",a.target.value),children:y.map(([a,c])=>(0,b.jsxs)("option",{value:a,children:[c," · ",a]},a))})}),(0,b.jsx)("p",{className:"mb-3 text-[12.5px] text-ink-soft",children:a.scopeNote})]})}function J({opts:a,v:c,set:e,fe:f}){return a.envReady?a.connected?(0,b.jsxs)(b.Fragment,{children:[a.error&&(0,b.jsx)("div",{className:"mb-3",children:(0,b.jsx)(n.M,{tone:"danger",title:"Google",children:a.error})}),null!==a.projects&&(0,b.jsxs)("p",{className:"mb-3 text-[13px] text-ink-soft",children:[a.projects," active Google Cloud project",1===a.projects?"":"s",". Google's project quota without a billing account is about ",a.quotaHint," and isn't readable by API; deleted projects count for 30 days."]}),(0,b.jsx)(n.O,{id:"cr-pid",label:"Project id",error:f("projectId"),help:"6 to 30 lower-case letters, digits and hyphens. Permanent and global: pick one nobody has.",children:(0,b.jsx)("input",{id:"cr-pid",className:n.S,value:String(c.projectId??""),maxLength:30,spellCheck:!1,autoComplete:"off",onChange:a=>e("projectId",a.target.value)})}),(0,b.jsx)(n.O,{id:"cr-pname",label:"Display name",error:f("displayName"),children:(0,b.jsx)("input",{id:"cr-pname",className:n.S,value:String(c.displayName??""),maxLength:30,autoComplete:"off",onChange:a=>e("displayName",a.target.value)})})]}):(0,b.jsxs)("div",{className:"mb-3 flex flex-col gap-2",children:[(0,b.jsx)(n.M,{tone:"info",title:"Connect Google (create projects) first",children:"The Firebase service accounts are viewer-only, so creating needs your own Google grant."}),(0,b.jsx)(K,{})]}):(0,b.jsx)("div",{className:"mb-3",children:(0,b.jsx)(n.M,{tone:"info",title:"Google OAuth isn't set up",children:d.n.notSet("GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET",!0)})})}function K({reconnect:a=!1}){return(0,b.jsx)(m.f,{trigger:(0,b.jsx)(n.K,{size:"sm",variant:"primary",children:a?"Reconnect Google (create projects)":"Connect Google (create projects)"}),title:"Connect Google (create projects)",body:(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("p",{className:"mb-2",children:"Google will ask you to approve one permission, separate from the Drive backup one:"}),(0,b.jsx)("p",{className:"mb-2 rounded-md border border-line bg-sunken px-3 py-2 text-ink-soft",children:"See, edit, configure, and delete your Google Cloud data (cloud-platform)."}),(0,b.jsx)("ul",{className:"list-disc space-y-1 pl-5 text-ink-soft",children:q.map(a=>(0,b.jsx)("li",{children:a},a))}),(0,b.jsxs)("p",{className:"mt-2 text-ink-soft",children:["Before the first connect, add this redirect URI to the OAuth client in the Google Cloud console: ",(0,b.jsx)("span",{className:"font-mono text-[12px]",children:"/auth/google/create/callback"})," on this site."]})]}),cta:"Continue to Google",onConfirm:async()=>{let a=await k();return a.ok&&a.data?(window.location.assign(a.data.url),{ok:!0,message:"Opening Google…"}):{ok:!1,message:a.ok?"Watchbell didn't answer. Check that it's still running, then try again.":a.error}}})}a.s(["CreateButton",0,function({type:a,target:d,targetName:f,label:g}){let[h,i]=(0,e.useState)(!1);return(0,o.useHoldRefresh)(h),(0,b.jsxs)(p.N,{open:h,onOpenChange:i,children:[(0,b.jsxs)(p.a,{render:(0,b.jsx)(n.K,{size:"sm"}),children:[(0,b.jsx)(c.f,{size:15,"aria-hidden":!0,className:"-ml-0.5 mr-1 inline"}),g]}),(0,b.jsx)(p.d,{className:"gap-0 p-0 sm:max-w-[560px]",showCloseButton:!1,children:h&&(0,b.jsx)(G,{type:a,target:d,targetName:f,onDone:()=>i(!1)})})]})},"DisconnectGoogleCreateButton",0,function(){return(0,b.jsx)(m.f,{trigger:(0,b.jsx)(n.K,{children:"Disconnect Google (create)"}),title:"Disconnect Google (create projects)?",body:"The console forgets the grant. Remove Watchbell's access in your Google Account → Security → Third-party access as well. Projects already created stay.",cta:"Disconnect",onConfirm:async()=>{let a=await i();return a.ok?{ok:!0,message:a.message??"Disconnected."}:{ok:!1,message:a.error}}})}],929994)}];
1
+ module.exports=[929994,a=>{"use strict";var b=a.i(187924),c=a.i(817748),d=a.i(901615),e=a.i(572131),f=a.i(823292),g=a.i(405050);let h=(0,g.createServerReference)("60a1541f8a46089c254c08d32883d14dc57d6da3dc",g.callServer,void 0,g.findSourceMapURL,"createOptionsAction"),i=(0,g.createServerReference)("008eaf2d7edce4ecebe17eca886783cf2cce12b3e1",g.callServer,void 0,g.findSourceMapURL,"disconnectGoogleCreate"),j=(0,g.createServerReference)("70fbd6edbde31eeeaac7798ef060ae321be7ee89ae",g.callServer,void 0,g.findSourceMapURL,"requestCreateAction"),k=(0,g.createServerReference)("00e14c071684abfe236a0b7091e2e09f954533cbda",g.callServer,void 0,g.findSourceMapURL,"startGoogleCreateConnect");var l=a.i(771378),m=a.i(611619),n=a.i(619089),o=a.i(507504),p=a.i(814574);let q=["This asks Google for the cloud-platform permission: it is broad (it can manage every Google Cloud project you own), so the console uses it only to create a project and add Firebase to it after your approval, and never to change or delete anything.","Google shows an \"unverified app\" warning because Watchbell's OAuth client isn't verified for this scope. It is your own client for your own use: choose Advanced → Go to Watchbell.","While the OAuth consent screen is in Testing mode, Google ends this grant after 7 days; connect again when a create says so. Remove it any time in your Google Account → Security → Third-party access."];d.n.notSet("GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET",!0);var r=a.i(486583),s=a.i(620214);let t=(a,b=300)=>"string"==typeof a&&a.length<=b?a:"",u=(a,b)=>({ok:!1,field:a,error:b}),v=/^(?:\*|[a-z0-9_](?:[a-z0-9_-]{0,61}[a-z0-9_])?)$/,w=/^[a-z0-9][a-z0-9-]{0,62}$/,x=/^br-[a-z0-9-]{3,60}$/,y=[["ap-southeast-1","Southeast Asia (Singapore)"],["ap-northeast-1","Northeast Asia (Tokyo)"],["ap-northeast-2","Northeast Asia (Seoul)"],["ap-southeast-2","Oceania (Sydney)"],["ap-south-1","South Asia (Mumbai)"],["ap-east-1","East Asia (Hong Kong)"],["us-east-1","East US (North Virginia)"],["us-east-2","East US (Ohio)"],["us-west-1","West US (North California)"],["us-west-2","West US (Oregon)"],["ca-central-1","Canada (Central)"],["sa-east-1","South America (São Paulo)"],["eu-west-1","West EU (Ireland)"],["eu-west-2","West EU (London)"],["eu-west-3","West EU (Paris)"],["eu-north-1","North EU (Stockholm)"],["eu-central-1","Central EU (Frankfurt)"],["eu-central-2","Central EU (Zurich)"]],z=y.map(([a])=>a),A=/^[A-Za-z0-9][A-Za-z0-9 ._-]{0,62}$/,B=/^[\w-]{1,64}$/,C=/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/,D=/^[A-Za-z0-9 '"!-]{4,30}$/;var E=a.i(762802);let F={dns_record:"The name must be new in this zone. Proxied is off unless you turn it on.",neon_branch:"The branch is created without a compute, so it uses no CU-hours until you wake it. Waking it later uses CU-hours (100 a month per project on the free plan).",supabase_project:"Only an organization on the free plan is allowed. The database password is generated when the Owner approves and shown once.",firebase_project:"A Google Cloud project without a billing account (the free Spark plan), then Firebase is added to it."};function G({type:a,target:c,targetName:d,onDone:g}){let i=(0,l.useMask)(),[k,m]=(0,e.useState)(null),[o,q]=(0,e.useState)(null),[y,E]=(0,e.useState)(c),[K,L]=(0,e.useState)({type:"CNAME",ttl:s.k,proxied:!1,region:"ap-southeast-1"}),[M,N]=(0,e.useState)(null),[O,P]=(0,e.useTransition)(),Q=(a,b)=>L(c=>({...c,[a]:b}));(0,e.useEffect)(()=>{let b=!0;return h(a,y).then(a=>{if(b)if(a.ok&&a.data){if(m(a.data),"neon_branch"===a.data.type){let b=(a.data.branches.find(a=>a.isDefault)??a.data.branches[0])?.id??"";L(a=>({...a,parentId:a.parentId??b}))}if("supabase_project"===a.data.type){a.data.accountId&&a.data.accountId!==y&&E(a.data.accountId);let b=a.data.orgs.find(a=>a.allowed);b&&L(a=>({...a,orgSlug:b.slug}))}}else q(a.ok?"Something went wrong.":a.error)}).catch(()=>b&&q("Couldn't load the choices. Try again.")),()=>{b=!1}},[a,y]);let R=a=>M?.field===a?M.text:void 0,S=k?.type==="firebase_project"&&(!k.envReady||!k.connected);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"px-[18px] pb-2 pt-4",children:[(0,b.jsx)(p.F,{className:"text-base",children:i("text",`New ${r.S[a]}${"dns_record"===a||"neon_branch"===a?` in ${d}`:""}`)}),(0,b.jsxs)(p.C,{className:"mt-0.5 text-[13px] text-ink-soft",children:[F[a]," This only asks: the Owner approves it with the authenticator code, then the console checks the free tier again and makes one create call at ",r.E[a],"."]})]}),(0,b.jsxs)("div",{className:"px-[18px] pt-1.5",children:[o&&(0,b.jsx)("div",{className:"mb-3",children:(0,b.jsx)(n.M,{tone:"danger",title:"Couldn't read the live choices",children:o})}),!k&&!o&&(0,b.jsx)("p",{className:"mb-3 text-[13px] text-ink-soft",children:"Reading the live choices…"}),"dns_record"===a&&(0,b.jsx)(H,{v:K,set:Q,fe:R,zone:d}),"neon_branch"===a&&k?.type==="neon_branch"&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("p",{className:"mb-3 text-[13px] text-ink-soft",children:[k.branches.length," of ",k.limit," branches used in this project."]}),(0,b.jsx)(n.O,{id:"cr-parent",label:"Copy from branch",error:R("parentId"),children:(0,b.jsx)("select",{id:"cr-parent",className:n.S,value:String(K.parentId??""),onChange:a=>Q("parentId",a.target.value),children:k.branches.map(a=>(0,b.jsxs)("option",{value:a.id,children:[i("text",a.name),a.isDefault?" (default)":""]},a.id))})}),(0,b.jsx)(n.O,{id:"cr-name",label:"New branch name",error:R("name"),help:"Lower-case letters, digits and hyphens, like preview-42.",children:(0,b.jsx)("input",{id:"cr-name",className:n.S,value:String(K.name??""),maxLength:63,spellCheck:!1,autoComplete:"off",onChange:a=>Q("name",a.target.value)})})]}),"supabase_project"===a&&k?.type==="supabase_project"&&(0,b.jsx)(I,{opts:k,v:K,set:Q,fe:R,account:y,setAccount:E}),"firebase_project"===a&&k?.type==="firebase_project"&&(0,b.jsx)(J,{opts:k,v:K,set:Q,fe:R}),M?.field==="form"&&(0,b.jsx)("p",{className:"mb-3 text-[12.5px] text-err",role:"alert",children:M.text})]}),(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)(n.K,{onClick:g,disabled:O,children:"Cancel"}),(0,b.jsx)(n.K,{variant:"primary",onClick:function(){let b;(b="dns_record"===a?function(a,b){let c=a??{},d=t(c.type,10);if(!s.j.includes(d))return u("type","Only A, AAAA, CNAME and TXT records can be added here.");let e=function(a,b){let c=b.trim().toLowerCase().replace(/\.$/,""),d=a.trim().toLowerCase().replace(/\.$/,"");if(!d||!c||("@"===d?d=c:d===c||d.endsWith(`.${c}`)||(d=`${d}.${c}`),d.length>253))return null;let e=d===c?"":d.slice(0,-(c.length+1));return e&&!e.split(".").every((a,b)=>v.test(a)&&("*"!==a||0===b))?null:d}(t(c.name,260),b);if(!e)return u("name",`The name must be a host in ${b}, like shop or shop.${b}.`);let f="number"==typeof c.ttl?c.ttl:s.k,g=(0,s.V)({type:d,name:e},{content:t(c.content,4096),ttl:f,proxied:!0===c.proxied});return g.ok?{ok:!0,inputs:{zoneName:b.toLowerCase(),type:d,name:e,content:g.values.content,ttl:g.values.ttl,proxied:g.values.proxied}}:u(g.field,g.error)}(K,d):"neon_branch"===a?function(a,b){let c=a??{},d=t(c.name,80).trim();if(!w.test(d))return u("name","Use 1 to 63 lower-case letters, digits and hyphens, starting with a letter or digit.");let e=t(c.parentId,80);return x.test(e)?{ok:!0,inputs:{projectName:b,parentId:e,name:d}}:u("parentId","Pick the branch to copy from.")}(K,d):"supabase_project"===a?function(a){let b=a??{},c=t(b.orgSlug,80);if(!B.test(c))return u("orgSlug","Pick an organization.");let d=t(b.name,80).trim();if(!A.test(d))return u("name","Use 1 to 63 letters, digits, spaces, dots, hyphens or underscores.");let e=t(b.region,30);return z.includes(e)?{ok:!0,inputs:{orgSlug:c,name:d,region:e}}:u("region","Pick a region from the list.")}(K):function(a){let b=a??{},c=t(b.projectId,40).trim();if(!C.test(c)||/google|ssl|undefined|null/.test(c))return u("projectId",'6 to 30 lower-case letters, digits and hyphens, starting with a letter (Google refuses ids with "google").');let d=t(b.displayName,40).trim()||c.slice(0,30);return D.test(d)?{ok:!0,inputs:{projectId:c,displayName:d}}:u("displayName","4 to 30 letters, digits, spaces, hyphens, quotes or exclamation marks.")}(K)).ok?N(null):N({field:b.field,text:b.error}),b.ok&&P(async()=>{try{let b=await j(a,"supabase_project"===a?y:c,K);if(b.ok)f.c.success(i("text",b.message??"Asked.")),g();else{let a=b.fieldErrors?Object.keys(b.fieldErrors)[0]:"form";N({field:a,text:i("text",b.error)})}}catch{N({field:"form",text:"Watchbell didn't answer. Check that it's still running, then try again."})}})},disabled:O||!k||S,children:O?"Checking…":"Check and ask for approval"})]})]})}function H({v:a,set:c,fe:d,zone:e}){let f="TXT"!==a.type;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"grid grid-cols-[120px_minmax(0,1fr)] gap-3 max-[560px]:grid-cols-1",children:[(0,b.jsx)(n.O,{id:"cr-type",label:"Type",error:d("type"),children:(0,b.jsx)("select",{id:"cr-type",className:n.S,value:String(a.type),onChange:a=>c("type",a.target.value),children:["A","AAAA","CNAME","TXT"].map(a=>(0,b.jsx)("option",{children:a},a))})}),(0,b.jsx)(n.O,{id:"cr-name",label:"Name",error:d("name"),help:`A host in ${e}: shop becomes shop.${e}.`,children:(0,b.jsx)("input",{id:"cr-name",className:n.S,value:String(a.name??""),maxLength:253,spellCheck:!1,autoComplete:"off",onChange:a=>c("name",a.target.value)})})]}),(0,b.jsx)(n.O,{id:"cr-content",label:"Content",error:d("content"),help:"CNAME"===a.type?"For Vercel, copy the value shown on the project's Domains page.":void 0,children:(0,b.jsx)("input",{id:"cr-content",className:n.S,value:String(a.content??""),maxLength:2048,spellCheck:!1,autoComplete:"off",onChange:a=>c("content",a.target.value)})}),(0,b.jsx)(n.O,{id:"cr-ttl",label:"TTL",error:d("ttl"),children:(0,b.jsx)("select",{id:"cr-ttl",className:n.S,value:a.proxied?s.k:Number(a.ttl),disabled:!0===a.proxied,onChange:a=>c("ttl",Number(a.target.value)),children:s.i.map(a=>(0,b.jsx)("option",{value:a,children:(0,E.f)(a)},a))})}),f&&(0,b.jsxs)("label",{className:"mb-3.5 flex items-center gap-2 text-[13px]",children:[(0,b.jsx)("input",{type:"checkbox",className:"accent-brand",checked:!0===a.proxied,onChange:a=>c("proxied",a.target.checked)}),"Proxied through Cloudflare (off by default; Vercel recommends DNS only)"]})]})}function I({opts:a,v:c,set:d,fe:e,account:f,setAccount:g}){let h=(0,l.useMask)(),i=a.active>=a.limit;return(0,b.jsxs)(b.Fragment,{children:[a.accounts.length>1&&(0,b.jsx)(n.O,{id:"cr-acc",label:"Supabase account",children:(0,b.jsx)("select",{id:"cr-acc",className:n.S,value:f,onChange:a=>g(a.target.value),children:a.accounts.map(a=>(0,b.jsx)("option",{value:a.id,children:h("account",a.label)},a.id))})}),0===a.accounts.length&&(0,b.jsx)("div",{className:"mb-3",children:(0,b.jsx)(n.M,{tone:"info",title:"No Supabase account connected",children:"Connect one in Connections first."})}),a.error&&(0,b.jsx)("div",{className:"mb-3",children:(0,b.jsx)(n.M,{tone:"danger",title:"Can't create with this token",children:a.error})}),(0,b.jsxs)("p",{className:"mb-3 text-[13px] text-ink-soft",children:[a.active," of ",a.limit," active free projects in use.",i?" Pause one first; paused projects don't count.":""]}),(0,b.jsx)(n.O,{id:"cr-org",label:"Organization",error:e("orgSlug"),help:"Paid or unknown plans are refused: a project there is billed from the first hour.",children:(0,b.jsx)("select",{id:"cr-org",className:n.S,value:String(c.orgSlug??""),onChange:a=>d("orgSlug",a.target.value),children:a.orgs.map(a=>(0,b.jsxs)("option",{value:a.slug,disabled:!a.allowed,children:[h("text",a.name)," · ",a.plan??"plan unknown",a.allowed?"":" (not allowed)"]},a.slug))})}),(0,b.jsx)(n.O,{id:"cr-name",label:"Project name",error:e("name"),children:(0,b.jsx)("input",{id:"cr-name",className:n.S,value:String(c.name??""),maxLength:63,autoComplete:"off",onChange:a=>d("name",a.target.value)})}),(0,b.jsx)(n.O,{id:"cr-region",label:"Region",error:e("region"),children:(0,b.jsx)("select",{id:"cr-region",className:n.S,value:String(c.region),onChange:a=>d("region",a.target.value),children:y.map(([a,c])=>(0,b.jsxs)("option",{value:a,children:[c," · ",a]},a))})}),(0,b.jsx)("p",{className:"mb-3 text-[12.5px] text-ink-soft",children:a.scopeNote})]})}function J({opts:a,v:c,set:e,fe:f}){return a.envReady?a.connected?(0,b.jsxs)(b.Fragment,{children:[a.error&&(0,b.jsx)("div",{className:"mb-3",children:(0,b.jsx)(n.M,{tone:"danger",title:"Google",children:a.error})}),null!==a.projects&&(0,b.jsxs)("p",{className:"mb-3 text-[13px] text-ink-soft",children:[a.projects," active Google Cloud project",1===a.projects?"":"s",". Google's project quota without a billing account is about ",a.quotaHint," and isn't readable by API; deleted projects count for 30 days."]}),(0,b.jsx)(n.O,{id:"cr-pid",label:"Project id",error:f("projectId"),help:"6 to 30 lower-case letters, digits and hyphens. Permanent and global: pick one nobody has.",children:(0,b.jsx)("input",{id:"cr-pid",className:n.S,value:String(c.projectId??""),maxLength:30,spellCheck:!1,autoComplete:"off",onChange:a=>e("projectId",a.target.value)})}),(0,b.jsx)(n.O,{id:"cr-pname",label:"Display name",error:f("displayName"),children:(0,b.jsx)("input",{id:"cr-pname",className:n.S,value:String(c.displayName??""),maxLength:30,autoComplete:"off",onChange:a=>e("displayName",a.target.value)})})]}):(0,b.jsxs)("div",{className:"mb-3 flex flex-col gap-2",children:[(0,b.jsx)(n.M,{tone:"info",title:"Connect Google (create projects) first",children:"The Firebase service accounts are viewer-only, so creating needs your own Google grant."}),(0,b.jsx)(K,{})]}):(0,b.jsx)("div",{className:"mb-3",children:(0,b.jsx)(n.M,{tone:"info",title:"Google OAuth isn't set up",children:d.n.notSet("GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET",!0)})})}function K({reconnect:a=!1}){return(0,b.jsx)(m.f,{trigger:(0,b.jsx)(n.K,{size:"sm",variant:"primary",children:a?"Reconnect Google (create projects)":"Connect Google (create projects)"}),title:"Connect Google (create projects)",body:(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("p",{className:"mb-2",children:"Google will ask you to approve one permission, separate from the Drive backup one:"}),(0,b.jsx)("p",{className:"mb-2 rounded-md border border-line bg-sunken px-3 py-2 text-ink-soft",children:"See, edit, configure, and delete your Google Cloud data (cloud-platform)."}),(0,b.jsx)("ul",{className:"list-disc space-y-1 pl-5 text-ink-soft",children:q.map(a=>(0,b.jsx)("li",{children:a},a))}),(0,b.jsxs)("p",{className:"mt-2 text-ink-soft",children:["Before the first connect, add this redirect URI to the OAuth client in the Google Cloud console: ",(0,b.jsx)("span",{className:"font-mono text-[12px]",children:"/auth/google/create/callback"})," on this site."]})]}),cta:"Continue to Google",onConfirm:async()=>{let a=await k();return a.ok&&a.data?(window.location.assign(a.data.url),{ok:!0,message:"Opening Google…"}):{ok:!1,message:a.ok?"Watchbell didn't answer. Check that it's still running, then try again.":a.error}}})}a.s(["CreateButton",0,function({type:a,target:d,targetName:f,label:g}){let[h,i]=(0,e.useState)(!1);return(0,o.useHoldRefresh)(h),(0,b.jsxs)(p.N,{open:h,onOpenChange:i,children:[(0,b.jsxs)(p.a,{render:(0,b.jsx)(n.K,{size:"sm"}),children:[(0,b.jsx)(c.f,{size:15,"aria-hidden":!0,className:"-ml-0.5 mr-1 inline"}),g]}),(0,b.jsx)(p.d,{className:"gap-0 p-0 sm:max-w-[560px]",showCloseButton:!1,children:h&&(0,b.jsx)(G,{type:a,target:d,targetName:f,onDone:()=>i(!1)})})]})},"DisconnectGoogleCreateButton",0,function(){return(0,b.jsx)(m.f,{trigger:(0,b.jsx)(n.K,{children:"Disconnect Google (create)"}),title:"Disconnect Google (create projects)?",body:"The console forgets the grant. Remove Watchbell's access in your Google Account → Security → Third-party access as well. Projects already created stay.",cta:"Disconnect",onConfirm:async()=>{let a=await i();return a.ok?{ok:!0,message:a.message??"Disconnected."}:{ok:!1,message:a.error}}})}],929994)}];
2
2
 
3
3
  //# sourceMappingURL=src_components_create_create-dialog_tsx_1s_9clly_m1ru._.js.map