@ai-development-environment/server 0.0.56 → 0.0.57

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 (240) hide show
  1. package/package.json +1 -1
  2. package/standalone/.next/BUILD_ID +1 -1
  3. package/standalone/.next/app-path-routes-manifest.json +2 -0
  4. package/standalone/.next/build-manifest.json +3 -3
  5. package/standalone/.next/prerender-manifest.json +3 -3
  6. package/standalone/.next/routes-manifest.json +18 -0
  7. package/standalone/.next/server/app/[locale]/actions/page.js.nft.json +1 -1
  8. package/standalone/.next/server/app/[locale]/actions/page_client-reference-manifest.js +1 -1
  9. package/standalone/.next/server/app/[locale]/actions-cache/page.js.nft.json +1 -1
  10. package/standalone/.next/server/app/[locale]/actions-cache/page_client-reference-manifest.js +1 -1
  11. package/standalone/.next/server/app/[locale]/agents/[id]/page.js.nft.json +1 -1
  12. package/standalone/.next/server/app/[locale]/agents/[id]/page_client-reference-manifest.js +1 -1
  13. package/standalone/.next/server/app/[locale]/agents/page.js.nft.json +1 -1
  14. package/standalone/.next/server/app/[locale]/agents/page_client-reference-manifest.js +1 -1
  15. package/standalone/.next/server/app/[locale]/analytics-events/page.js.nft.json +1 -1
  16. package/standalone/.next/server/app/[locale]/analytics-events/page_client-reference-manifest.js +1 -1
  17. package/standalone/.next/server/app/[locale]/build-data/page.js.nft.json +1 -1
  18. package/standalone/.next/server/app/[locale]/build-data/page_client-reference-manifest.js +1 -1
  19. package/standalone/.next/server/app/[locale]/builds/[buildId]/coverage/page.js.nft.json +1 -1
  20. package/standalone/.next/server/app/[locale]/builds/[buildId]/coverage/page_client-reference-manifest.js +1 -1
  21. package/standalone/.next/server/app/[locale]/builds/[buildId]/output/route/app-paths-manifest.json +3 -0
  22. package/standalone/.next/server/app/[locale]/builds/[buildId]/output/route/build-manifest.json +9 -0
  23. package/standalone/.next/server/app/[locale]/builds/[buildId]/output/route/server-reference-manifest.json +4 -0
  24. package/standalone/.next/server/app/[locale]/builds/[buildId]/output/route.js +12 -0
  25. package/standalone/.next/server/app/[locale]/builds/[buildId]/output/route.js.map +5 -0
  26. package/standalone/.next/server/app/[locale]/builds/[buildId]/output/route.js.nft.json +1 -0
  27. package/standalone/.next/server/app/[locale]/builds/[buildId]/output/route_client-reference-manifest.js +3 -0
  28. package/standalone/.next/server/app/[locale]/builds/[buildId]/page.js.nft.json +1 -1
  29. package/standalone/.next/server/app/[locale]/builds/[buildId]/page_client-reference-manifest.js +1 -1
  30. package/standalone/.next/server/app/[locale]/builds/page.js.nft.json +1 -1
  31. package/standalone/.next/server/app/[locale]/builds/page_client-reference-manifest.js +1 -1
  32. package/standalone/.next/server/app/[locale]/codebases/[codebaseId]/page.js.nft.json +1 -1
  33. package/standalone/.next/server/app/[locale]/codebases/[codebaseId]/page_client-reference-manifest.js +1 -1
  34. package/standalone/.next/server/app/[locale]/codebases/page.js.nft.json +1 -1
  35. package/standalone/.next/server/app/[locale]/codebases/page_client-reference-manifest.js +1 -1
  36. package/standalone/.next/server/app/[locale]/codebases/repositories/[repositoryId]/page.js.nft.json +1 -1
  37. package/standalone/.next/server/app/[locale]/codebases/repositories/[repositoryId]/page_client-reference-manifest.js +1 -1
  38. package/standalone/.next/server/app/[locale]/commands/[commandId]/edit/page.js.nft.json +1 -1
  39. package/standalone/.next/server/app/[locale]/commands/[commandId]/edit/page_client-reference-manifest.js +1 -1
  40. package/standalone/.next/server/app/[locale]/commands/new/page.js.nft.json +1 -1
  41. package/standalone/.next/server/app/[locale]/commands/new/page_client-reference-manifest.js +1 -1
  42. package/standalone/.next/server/app/[locale]/commands/page.js.nft.json +1 -1
  43. package/standalone/.next/server/app/[locale]/commands/page_client-reference-manifest.js +1 -1
  44. package/standalone/.next/server/app/[locale]/commands/runs/[runId]/output/route/app-paths-manifest.json +3 -0
  45. package/standalone/.next/server/app/[locale]/commands/runs/[runId]/output/route/build-manifest.json +9 -0
  46. package/standalone/.next/server/app/[locale]/commands/runs/[runId]/output/route/server-reference-manifest.json +4 -0
  47. package/standalone/.next/server/app/[locale]/commands/runs/[runId]/output/route.js +12 -0
  48. package/standalone/.next/server/app/[locale]/commands/runs/[runId]/output/route.js.map +5 -0
  49. package/standalone/.next/server/app/[locale]/commands/runs/[runId]/output/route.js.nft.json +1 -0
  50. package/standalone/.next/server/app/[locale]/commands/runs/[runId]/output/route_client-reference-manifest.js +3 -0
  51. package/standalone/.next/server/app/[locale]/commands/runs/[runId]/page.js.nft.json +1 -1
  52. package/standalone/.next/server/app/[locale]/commands/runs/[runId]/page_client-reference-manifest.js +1 -1
  53. package/standalone/.next/server/app/[locale]/comments/page.js.nft.json +1 -1
  54. package/standalone/.next/server/app/[locale]/comments/page_client-reference-manifest.js +1 -1
  55. package/standalone/.next/server/app/[locale]/console-logs/page.js.nft.json +1 -1
  56. package/standalone/.next/server/app/[locale]/console-logs/page_client-reference-manifest.js +1 -1
  57. package/standalone/.next/server/app/[locale]/costs/page.js.nft.json +1 -1
  58. package/standalone/.next/server/app/[locale]/costs/page_client-reference-manifest.js +1 -1
  59. package/standalone/.next/server/app/[locale]/credentials/page.js.nft.json +1 -1
  60. package/standalone/.next/server/app/[locale]/credentials/page_client-reference-manifest.js +1 -1
  61. package/standalone/.next/server/app/[locale]/devices/[id]/page.js.nft.json +1 -1
  62. package/standalone/.next/server/app/[locale]/devices/[id]/page_client-reference-manifest.js +1 -1
  63. package/standalone/.next/server/app/[locale]/devices/enroll/page.js.nft.json +1 -1
  64. package/standalone/.next/server/app/[locale]/devices/enroll/page_client-reference-manifest.js +1 -1
  65. package/standalone/.next/server/app/[locale]/devices/page.js.nft.json +1 -1
  66. package/standalone/.next/server/app/[locale]/devices/page_client-reference-manifest.js +1 -1
  67. package/standalone/.next/server/app/[locale]/drafts/page.js.nft.json +1 -1
  68. package/standalone/.next/server/app/[locale]/drafts/page_client-reference-manifest.js +1 -1
  69. package/standalone/.next/server/app/[locale]/jira/cache/page.js.nft.json +1 -1
  70. package/standalone/.next/server/app/[locale]/jira/cache/page_client-reference-manifest.js +1 -1
  71. package/standalone/.next/server/app/[locale]/jira/cache/tickets/[issueKey]/page.js.nft.json +1 -1
  72. package/standalone/.next/server/app/[locale]/jira/cache/tickets/[issueKey]/page_client-reference-manifest.js +1 -1
  73. package/standalone/.next/server/app/[locale]/jira/tickets/[issueKey]/page.js.nft.json +1 -1
  74. package/standalone/.next/server/app/[locale]/jira/tickets/[issueKey]/page_client-reference-manifest.js +1 -1
  75. package/standalone/.next/server/app/[locale]/jira/tickets/page.js.nft.json +1 -1
  76. package/standalone/.next/server/app/[locale]/jira/tickets/page_client-reference-manifest.js +1 -1
  77. package/standalone/.next/server/app/[locale]/jobs/[jobId]/page.js.nft.json +1 -1
  78. package/standalone/.next/server/app/[locale]/jobs/[jobId]/page_client-reference-manifest.js +1 -1
  79. package/standalone/.next/server/app/[locale]/notifications/page.js.nft.json +1 -1
  80. package/standalone/.next/server/app/[locale]/notifications/page_client-reference-manifest.js +1 -1
  81. package/standalone/.next/server/app/[locale]/page.js.nft.json +1 -1
  82. package/standalone/.next/server/app/[locale]/page_client-reference-manifest.js +1 -1
  83. package/standalone/.next/server/app/[locale]/plans/[runId]/page.js.nft.json +1 -1
  84. package/standalone/.next/server/app/[locale]/plans/[runId]/page_client-reference-manifest.js +1 -1
  85. package/standalone/.next/server/app/[locale]/plans/page.js.nft.json +1 -1
  86. package/standalone/.next/server/app/[locale]/plans/page_client-reference-manifest.js +1 -1
  87. package/standalone/.next/server/app/[locale]/polling/page.js.nft.json +1 -1
  88. package/standalone/.next/server/app/[locale]/polling/page_client-reference-manifest.js +1 -1
  89. package/standalone/.next/server/app/[locale]/provisioning-profiles/[profileId]/page.js.nft.json +1 -1
  90. package/standalone/.next/server/app/[locale]/provisioning-profiles/[profileId]/page_client-reference-manifest.js +1 -1
  91. package/standalone/.next/server/app/[locale]/provisioning-profiles/page.js.nft.json +1 -1
  92. package/standalone/.next/server/app/[locale]/provisioning-profiles/page_client-reference-manifest.js +1 -1
  93. package/standalone/.next/server/app/[locale]/pull-requests/[owner]/[repository]/[number]/page.js.nft.json +1 -1
  94. package/standalone/.next/server/app/[locale]/pull-requests/[owner]/[repository]/[number]/page_client-reference-manifest.js +1 -1
  95. package/standalone/.next/server/app/[locale]/pull-requests/page.js.nft.json +1 -1
  96. package/standalone/.next/server/app/[locale]/pull-requests/page_client-reference-manifest.js +1 -1
  97. package/standalone/.next/server/app/[locale]/push-notifications/page.js.nft.json +1 -1
  98. package/standalone/.next/server/app/[locale]/push-notifications/page_client-reference-manifest.js +1 -1
  99. package/standalone/.next/server/app/[locale]/runs/new/page.js.nft.json +1 -1
  100. package/standalone/.next/server/app/[locale]/runs/new/page_client-reference-manifest.js +1 -1
  101. package/standalone/.next/server/app/[locale]/sessions/[runId]/page.js.nft.json +1 -1
  102. package/standalone/.next/server/app/[locale]/sessions/[runId]/page_client-reference-manifest.js +1 -1
  103. package/standalone/.next/server/app/[locale]/sessions/page.js.nft.json +1 -1
  104. package/standalone/.next/server/app/[locale]/sessions/page_client-reference-manifest.js +1 -1
  105. package/standalone/.next/server/app/[locale]/settings/page.js.nft.json +1 -1
  106. package/standalone/.next/server/app/[locale]/settings/page_client-reference-manifest.js +1 -1
  107. package/standalone/.next/server/app/[locale]/skills/[skillId]/page.js.nft.json +1 -1
  108. package/standalone/.next/server/app/[locale]/skills/[skillId]/page_client-reference-manifest.js +1 -1
  109. package/standalone/.next/server/app/[locale]/skills/groups/[groupId]/page.js.nft.json +1 -1
  110. package/standalone/.next/server/app/[locale]/skills/groups/[groupId]/page_client-reference-manifest.js +1 -1
  111. package/standalone/.next/server/app/[locale]/skills/groups/page.js.nft.json +1 -1
  112. package/standalone/.next/server/app/[locale]/skills/groups/page_client-reference-manifest.js +1 -1
  113. package/standalone/.next/server/app/[locale]/skills/page.js.nft.json +1 -1
  114. package/standalone/.next/server/app/[locale]/skills/page_client-reference-manifest.js +1 -1
  115. package/standalone/.next/server/app/[locale]/skills/sync/[runId]/page.js.nft.json +1 -1
  116. package/standalone/.next/server/app/[locale]/skills/sync/[runId]/page_client-reference-manifest.js +1 -1
  117. package/standalone/.next/server/app/[locale]/tools/page.js.nft.json +1 -1
  118. package/standalone/.next/server/app/[locale]/tools/page_client-reference-manifest.js +1 -1
  119. package/standalone/.next/server/app/[locale]/unified-events/page.js.nft.json +1 -1
  120. package/standalone/.next/server/app/[locale]/unified-events/page_client-reference-manifest.js +1 -1
  121. package/standalone/.next/server/app/[locale]/usage/page.js.nft.json +1 -1
  122. package/standalone/.next/server/app/[locale]/usage/page_client-reference-manifest.js +1 -1
  123. package/standalone/.next/server/app/[locale]/workflows/[workflowId]/edit/page.js.nft.json +1 -1
  124. package/standalone/.next/server/app/[locale]/workflows/[workflowId]/edit/page_client-reference-manifest.js +1 -1
  125. package/standalone/.next/server/app/[locale]/workflows/[workflowId]/page.js.nft.json +1 -1
  126. package/standalone/.next/server/app/[locale]/workflows/[workflowId]/page_client-reference-manifest.js +1 -1
  127. package/standalone/.next/server/app/[locale]/workflows/new/page.js.nft.json +1 -1
  128. package/standalone/.next/server/app/[locale]/workflows/new/page_client-reference-manifest.js +1 -1
  129. package/standalone/.next/server/app/[locale]/workflows/page.js.nft.json +1 -1
  130. package/standalone/.next/server/app/[locale]/workflows/page_client-reference-manifest.js +1 -1
  131. package/standalone/.next/server/app/[locale]/workflows/runs/[runId]/page.js.nft.json +1 -1
  132. package/standalone/.next/server/app/[locale]/workflows/runs/[runId]/page_client-reference-manifest.js +1 -1
  133. package/standalone/.next/server/app/[locale]/worktrees/[worktreeId]/page.js.nft.json +1 -1
  134. package/standalone/.next/server/app/[locale]/worktrees/[worktreeId]/page_client-reference-manifest.js +1 -1
  135. package/standalone/.next/server/app/[locale]/worktrees/page.js.nft.json +1 -1
  136. package/standalone/.next/server/app/[locale]/worktrees/page_client-reference-manifest.js +1 -1
  137. package/standalone/.next/server/app/_global-error.html +1 -1
  138. package/standalone/.next/server/app/_global-error.rsc +1 -1
  139. package/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  140. package/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  141. package/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  142. package/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  143. package/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  144. package/standalone/.next/server/app/_not-found.html +1 -1
  145. package/standalone/.next/server/app/_not-found.rsc +1 -1
  146. package/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  147. package/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  148. package/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  149. package/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  150. package/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  151. package/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  152. package/standalone/.next/server/app-paths-manifest.json +2 -0
  153. package/standalone/.next/server/chunks/1oeh_server_app_[locale]_commands_runs_[runId]_output_route_actions_1cukkg_.js +3 -0
  154. package/standalone/.next/server/chunks/[root-of-the-server]__0690e_i._.js +3 -0
  155. package/standalone/.next/server/chunks/[root-of-the-server]__0g-b1k_._.js +3 -0
  156. package/standalone/.next/server/chunks/[root-of-the-server]__0jwejc1._.js +3 -0
  157. package/standalone/.next/server/chunks/[root-of-the-server]__19aveol._.js +3 -0
  158. package/standalone/.next/server/chunks/[root-of-the-server]__1d8yo1w._.js +3 -0
  159. package/standalone/.next/server/chunks/[root-of-the-server]__1gjcicg._.js +3 -0
  160. package/standalone/.next/server/chunks/[root-of-the-server]__1kb6o8v._.js +3 -0
  161. package/standalone/.next/server/chunks/[root-of-the-server]__1m-eb8h._.js +3 -0
  162. package/standalone/.next/server/chunks/[root-of-the-server]__1tl064i._.js +3 -0
  163. package/standalone/.next/server/chunks/[root-of-the-server]__1y28_j-._.js +3 -0
  164. package/standalone/.next/server/chunks/_04easfx._.js +1 -1
  165. package/standalone/.next/server/chunks/_060s_2_._.js +1 -1
  166. package/standalone/.next/server/chunks/_0mno1rd._.js +1 -1
  167. package/standalone/.next/server/chunks/_17vom8o._.js +1 -1
  168. package/standalone/.next/server/chunks/_1_97_xc._.js +1 -1
  169. package/standalone/.next/server/chunks/_1hmzed-._.js +1 -1
  170. package/standalone/.next/server/chunks/_1ua7367._.js +1 -1
  171. package/standalone/.next/server/chunks/_next-internal_server_app_[locale]_builds_[buildId]_output_route_actions_1taut05.js +3 -0
  172. package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__12ujp5k._.js → [root-of-the-server]__0lmk9bz._.js} +2 -2
  173. package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__163pha9._.js → [root-of-the-server]__1102h2k._.js} +10 -2
  174. package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__04vu2d2._.js → [root-of-the-server]__1246vo_._.js} +2 -2
  175. package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__1zdw3xq._.js → [root-of-the-server]__13y5te1._.js} +2 -2
  176. package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__14x7em1._.js → [root-of-the-server]__15g2tdw._.js} +2 -2
  177. package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__1urzzjr._.js → [root-of-the-server]__1c5ldng._.js} +2 -2
  178. package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0szkx1z._.js → [root-of-the-server]__1etlhw0._.js} +2 -2
  179. package/standalone/.next/server/chunks/ssr/_02c2d4f._.js +24 -0
  180. package/standalone/.next/server/chunks/ssr/{_0mpp4zy._.js → _046yruk._.js} +3 -3
  181. package/standalone/.next/server/chunks/ssr/{_17qauas._.js → _04o65jz._.js} +2 -2
  182. package/standalone/.next/server/chunks/ssr/{_1i8x-4q._.js → _0bobqfl._.js} +3 -3
  183. package/standalone/.next/server/chunks/ssr/{_0u5fbj1._.js → _0lkknxk._.js} +2 -2
  184. package/standalone/.next/server/chunks/ssr/_0ywojby._.js +24 -0
  185. package/standalone/.next/server/chunks/ssr/{_0ts0l7b._.js → _0zjisu4._.js} +2 -2
  186. package/standalone/.next/server/chunks/ssr/{_182yko5._.js → _18cp9pu._.js} +2 -2
  187. package/standalone/.next/server/chunks/ssr/_1eryu4w._.js +19 -0
  188. package/standalone/.next/server/chunks/ssr/{_0cc1vi6._.js → _1l052-e._.js} +2 -2
  189. package/standalone/.next/server/chunks/ssr/_1lic210._.js +3 -0
  190. package/standalone/.next/server/chunks/ssr/_1zgu74l._.js +10 -10
  191. package/standalone/.next/server/chunks/ssr/messages_de_json_[json]_cjs_1uig1ud._.js +1 -1
  192. package/standalone/.next/server/chunks/ssr/messages_en_json_[json]_cjs_206072-._.js +1 -1
  193. package/standalone/.next/server/chunks/ssr/messages_es_json_[json]_cjs_082yukd._.js +1 -1
  194. package/standalone/.next/server/chunks/ssr/messages_fr_json_[json]_cjs_0j6-w0i._.js +1 -1
  195. package/standalone/.next/server/chunks/ssr/node_modules_0k28hjd._.js +3 -0
  196. package/standalone/.next/server/chunks/ssr/src_components_builds_build-detail-page_tsx_0q1lvps._.js +5 -5
  197. package/standalone/.next/server/functions-config-manifest.json +2 -0
  198. package/standalone/.next/server/middleware-build-manifest.js +3 -3
  199. package/standalone/.next/server/pages/404.html +1 -1
  200. package/standalone/.next/server/pages/500.html +1 -1
  201. package/standalone/.next/server/server-reference-manifest.js +1 -1
  202. package/standalone/.next/server/server-reference-manifest.json +1 -1
  203. package/standalone/.next/static/chunks/{0n2u5wjjmaseb.js → 04zmk6cyju031.js} +1 -1
  204. package/standalone/.next/static/chunks/{09q-nz-e_tbiy.js → 0f6x_7136ws5e.js} +1 -1
  205. package/standalone/.next/static/chunks/{3tfj2uhflnkvu.js → 0fm8vlctux_d4.js} +7 -7
  206. package/standalone/.next/static/chunks/{27a270srtknzi.js → 0k-tj18pj2jw3.js} +3 -3
  207. package/standalone/.next/static/chunks/{3r2wqa5gcorck.js → 0ntu55tvqo74a.js} +7 -7
  208. package/standalone/.next/static/chunks/0qo8_-dnk-8es.js +22 -0
  209. package/standalone/.next/static/chunks/{1kwddx0lygohb.js → 12pz55savz83-.js} +1 -1
  210. package/standalone/.next/static/chunks/18-qgh9p9g9gn.js +17 -0
  211. package/standalone/.next/static/chunks/{0tm88xq1je0ik.js → 1ehd9ff-t9y4q.js} +1 -1
  212. package/standalone/.next/static/chunks/{3ege33ljteolq.js → 1gsma655t74si.js} +1 -1
  213. package/standalone/.next/static/chunks/{1mmo8lspdk0y2.js → 1kas2cg1m9t70.js} +8 -8
  214. package/standalone/.next/static/chunks/{446mel_yhca9u.js → 2a7-21p5ltjf0.js} +2 -2
  215. package/standalone/.next/static/chunks/{3_tux_4hkdpja.js → 2buxoh6cj1vav.js} +1 -1
  216. package/standalone/.next/static/chunks/{1-v397t7o9cqz.js → 2grj-b5r57kpq.js} +2 -2
  217. package/standalone/.next/static/chunks/2kc9nohdlg9t0.js +1 -0
  218. package/standalone/.next/static/chunks/{3o8__1my6dk1_.js → 2yqx6j1xnzns8.js} +1 -1
  219. package/standalone/.next/static/chunks/{2ne14u5xzix6t.js → 3atzn4uq1z4g-.js} +1 -1
  220. package/standalone/.next/static/chunks/3cuivj8-h9d2a.js +1 -0
  221. package/standalone/.next/static/chunks/{1y-end2fvx0wt.js → 3kz00cbmpyo2-.js} +1 -1
  222. package/standalone/.next/static/chunks/{26dvl4pn5yw16.js → 3nxz8k1j8fgad.js} +7 -7
  223. package/standalone/.next/static/chunks/3sr3c0rfmkyg2.js +23 -0
  224. package/standalone/.next/static/chunks/3xx3qtf7ebz58.css +1 -0
  225. package/standalone/.next/server/chunks/ssr/_03tz2ed._.js +0 -3
  226. package/standalone/.next/server/chunks/ssr/_0_7xzsn._.js +0 -19
  227. package/standalone/.next/server/chunks/ssr/_0brpuee._.js +0 -24
  228. package/standalone/.next/server/chunks/ssr/_0jklnn-._.js +0 -11
  229. package/standalone/.next/server/chunks/ssr/_0qppm0k._.js +0 -24
  230. package/standalone/.next/server/chunks/ssr/node_modules_@radix-ui_react-menu_dist_index_mjs_0r8d9ly._.js +0 -3
  231. package/standalone/.next/server/chunks/ssr/src_096v3r6._.js +0 -3
  232. package/standalone/.next/static/chunks/0oyi9lj201nul.css +0 -1
  233. package/standalone/.next/static/chunks/168hnxx43r6g0.js +0 -27
  234. package/standalone/.next/static/chunks/193zouh7q03-q.js +0 -22
  235. package/standalone/.next/static/chunks/19fy68juspikd.js +0 -23
  236. package/standalone/.next/static/chunks/1c42xu-oct3-l.js +0 -1
  237. package/standalone/.next/static/chunks/33u7b61cg10r7.js +0 -17
  238. /package/standalone/.next/static/{PEh7pBYRizgKlQhA6uiAl → pMygSj2GOth47wwuxgqsB}/_buildManifest.js +0 -0
  239. /package/standalone/.next/static/{PEh7pBYRizgKlQhA6uiAl → pMygSj2GOth47wwuxgqsB}/_clientMiddlewareManifest.js +0 -0
  240. /package/standalone/.next/static/{PEh7pBYRizgKlQhA6uiAl → pMygSj2GOth47wwuxgqsB}/_ssgManifest.js +0 -0
@@ -1,4 +1,4 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,340953,e=>{"use strict";var t=e.i(843476),a=e.i(271645),s=e.i(30030),r=e.i(820783),i=e.i(326999),n=e.i(981140),l=Object.defineProperty,o=(e,t)=>l(e,"name",{value:t,configurable:!0}),[d,c]=(0,s.createContextScope)("AlertDialog",[i.createDialogScope]),u=(0,i.createDialogScope)(),x=o(e=>{let{__scopeAlertDialog:a,...s}=e,r=u(a);return(0,t.jsx)(i.Root,{...r,...s,modal:!0})},"AlertDialog"),p=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:s,...r}=e,n=u(s);return(0,t.jsx)(i.Trigger,{...n,...r,ref:a})},"AlertDialogTrigger")),m=o(e=>{let{__scopeAlertDialog:a,...s}=e,r=u(a);return(0,t.jsx)(i.Portal,{...r,...s})},"AlertDialogPortal"),g=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:s,...r}=e,n=u(s);return(0,t.jsx)(i.Overlay,{...n,...r,ref:a})},"AlertDialogOverlay")),[f,h]=d("AlertDialogContent"),j=a.forwardRef(o(function(e,s){let{__scopeAlertDialog:l,children:o,...d}=e,c=u(l),x=a.useRef(null),p=(0,r.useComposedRefs)(s,x),m=a.useRef(null);return(0,t.jsx)(f,{scope:l,cancelRef:m,children:(0,t.jsx)(i.Content,{role:"alertdialog",...c,...d,ref:p,onOpenAutoFocus:(0,n.composeEventHandlers)(d.onOpenAutoFocus,e=>{e.preventDefault(),m.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:o})})},"AlertDialogContent")),v=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:s,...r}=e,n=u(s);return(0,t.jsx)(i.Title,{...n,...r,ref:a})},"AlertDialogTitle")),b=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:s,...r}=e,n=u(s);return(0,t.jsx)(i.Description,{...n,...r,ref:a})},"AlertDialogDescription")),D=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:s,...r}=e,n=u(s);return(0,t.jsx)(i.Close,{...n,...r,ref:a})},"AlertDialogAction")),y=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:s,...n}=e,{cancelRef:l}=h("AlertDialogCancel",s),o=u(s),d=(0,r.useComposedRefs)(a,l);return(0,t.jsx)(i.Close,{...o,...n,ref:d})},"AlertDialogCancel"));e.s(["Action",0,D,"AlertDialog",0,x,"AlertDialogAction",0,D,"AlertDialogCancel",0,y,"AlertDialogContent",0,j,"AlertDialogDescription",0,b,"AlertDialogOverlay",0,g,"AlertDialogPortal",0,m,"AlertDialogTitle",0,v,"AlertDialogTrigger",0,p,"Cancel",0,y,"Content",0,j,"Description",0,b,"Overlay",0,g,"Portal",0,m,"Root",0,x,"Title",0,v,"Trigger",0,p,"createAlertDialogScope",0,c],691162);var T=e.i(691162),T=T,C=e.i(975157),S=e.i(519455);function N({...e}){return(0,t.jsx)(T.Root,{"data-slot":"alert-dialog",...e})}function w({...e}){return(0,t.jsx)(T.Trigger,{"data-slot":"alert-dialog-trigger",...e})}function A({...e}){return(0,t.jsx)(T.Portal,{"data-slot":"alert-dialog-portal",...e})}function E({className:e,...a}){return(0,t.jsx)(T.Overlay,{"data-slot":"alert-dialog-overlay",className:(0,C.cn)("fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...a})}function I({className:e,size:a="default",...s}){return(0,t.jsxs)(A,{children:[(0,t.jsx)(E,{}),(0,t.jsx)(T.Content,{"data-slot":"alert-dialog-content","data-size":a,className:(0,C.cn)("group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...s})]})}function R({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,C.cn)("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",e),...a})}function k({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,C.cn)("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",e),...a})}function z({className:e,...a}){return(0,t.jsx)(T.Title,{"data-slot":"alert-dialog-title",className:(0,C.cn)("font-heading text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",e),...a})}function _({className:e,...a}){return(0,t.jsx)(T.Description,{"data-slot":"alert-dialog-description",className:(0,C.cn)("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...a})}function H({className:e,variant:a="default",size:s="default",...r}){return(0,t.jsx)(S.Button,{variant:a,size:s,asChild:!0,children:(0,t.jsx)(T.Action,{"data-slot":"alert-dialog-action",className:(0,C.cn)(e),...r})})}function O({className:e,variant:a="outline",size:s="default",...r}){return(0,t.jsx)(S.Button,{variant:a,size:s,asChild:!0,children:(0,t.jsx)(T.Cancel,{"data-slot":"alert-dialog-cancel",className:(0,C.cn)(e),...r})})}e.s(["ConfirmationDialog",0,function({actionLabel:e,cancelLabel:a,description:s,onConfirm:r,onOpenChange:i,open:n,title:l,trigger:o}){return(0,t.jsxs)(N,{onOpenChange:i,open:n,children:[o&&(0,t.jsx)(w,{asChild:!0,children:o}),(0,t.jsxs)(I,{children:[(0,t.jsxs)(R,{children:[(0,t.jsx)(z,{children:l}),(0,t.jsx)(_,{children:s})]}),(0,t.jsxs)(k,{children:[(0,t.jsx)(O,{children:a}),(0,t.jsx)(H,{onClick:()=>void r(),variant:"destructive",children:e})]})]})]})}],340953)},77071,e=>{"use strict";let t=(0,e.i(456420).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["Plus",0,t],77071)},776639,e=>{"use strict";var t=e.i(843476),a=e.i(560964),s=e.i(964053),r=e.i(519455),i=e.i(975157);function n({...e}){return(0,t.jsx)(s.Dialog.Portal,{"data-slot":"dialog-portal",...e})}function l({className:e,...a}){return(0,t.jsx)(s.Dialog.Overlay,{className:(0,i.cn)("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),"data-slot":"dialog-overlay",...a})}e.s(["Dialog",0,function({...e}){return(0,t.jsx)(s.Dialog.Root,{"data-slot":"dialog",...e})},"DialogContent",0,function({className:e,children:o,showCloseButton:d=!0,...c}){return(0,t.jsxs)(n,{children:[(0,t.jsx)(l,{}),(0,t.jsxs)(s.Dialog.Content,{className:(0,i.cn)("fixed top-1/2 left-1/2 z-50 grid max-h-[85dvh] w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 overflow-y-auto rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),"data-slot":"dialog-content",...c,children:[o,d&&(0,t.jsx)(s.Dialog.Close,{asChild:!0,"data-slot":"dialog-close",children:(0,t.jsxs)(r.Button,{className:"absolute top-2 right-2",size:"icon-sm",variant:"ghost",children:[(0,t.jsx)(a.XIcon,{}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})})]})]})},"DialogDescription",0,function({className:e,...a}){return(0,t.jsx)(s.Dialog.Description,{className:(0,i.cn)("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),"data-slot":"dialog-description",...a})},"DialogFooter",0,function({className:e,showCloseButton:a=!1,children:n,...l}){return(0,t.jsxs)("div",{className:(0,i.cn)("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",e),"data-slot":"dialog-footer",...l,children:[n,a&&(0,t.jsx)(s.Dialog.Close,{asChild:!0,children:(0,t.jsx)(r.Button,{variant:"outline",children:"Close"})})]})},"DialogHeader",0,function({className:e,...a}){return(0,t.jsx)("div",{className:(0,i.cn)("flex flex-col gap-2",e),"data-slot":"dialog-header",...a})},"DialogTitle",0,function({className:e,...a}){return(0,t.jsx)(s.Dialog.Title,{className:(0,i.cn)("font-heading text-base leading-none font-medium",e),"data-slot":"dialog-title",...a})},"DialogTrigger",0,function({...e}){return(0,t.jsx)(s.Dialog.Trigger,{"data-slot":"dialog-trigger",...e})}])},929592,e=>{"use strict";var t=e.i(843476),a=e.i(225913),s=e.i(975157);let r=(0,a.cva)("group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"}},defaultVariants:{variant:"default"}});e.s(["Alert",0,function({className:e,variant:a,...i}){return(0,t.jsx)("div",{"data-slot":"alert",role:"alert",className:(0,s.cn)(r({variant:a}),e),...i})},"AlertDescription",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-description",className:(0,s.cn)("text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4",e),...a})},"AlertTitle",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-title",className:(0,s.cn)("font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground",e),...a})}])},515288,e=>{"use strict";var t=e.i(843476),a=e.i(975157);e.s(["Card",0,function({className:e,size:s="default",...r}){return(0,t.jsx)("div",{"data-slot":"card","data-size":s,className:(0,a.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>[data-slot=card-header]]:pt-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...r})},"CardAction",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"card-action",className:(0,a.cn)("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...s})},"CardContent",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,a.cn)("px-(--card-spacing)",e),...s})},"CardDescription",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,a.cn)("text-sm text-muted-foreground",e),...s})},"CardFooter",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"card-footer",className:(0,a.cn)("flex items-center rounded-b-xl border-t bg-muted/50 p-(--card-spacing)",e),...s})},"CardHeader",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,a.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl bg-muted/40 px-(--card-spacing) py-(--card-spacing) not-last:border-b has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]",e),...s})},"CardTitle",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,a.cn)("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e),...s})}])},784774,e=>{"use strict";var t=e.i(843476),a=e.i(975157);e.s(["Table",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,t.jsx)("table",{"data-slot":"table",className:(0,a.cn)("w-full caption-bottom text-sm",e),...s})})},"TableBody",0,function({className:e,...s}){return(0,t.jsx)("tbody",{"data-slot":"table-body",className:(0,a.cn)("[&_tr:last-child]:border-0",e),...s})},"TableCell",0,function({className:e,...s}){return(0,t.jsx)("td",{"data-slot":"table-cell",className:(0,a.cn)("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",e),...s})},"TableFooter",0,function({className:e,...s}){return(0,t.jsx)("tfoot",{"data-slot":"table-footer",className:(0,a.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...s})},"TableHead",0,function({className:e,...s}){return(0,t.jsx)("th",{"data-slot":"table-head",className:(0,a.cn)("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",e),...s})},"TableHeader",0,function({className:e,...s}){return(0,t.jsx)("thead",{"data-slot":"table-header",className:(0,a.cn)("[&_tr]:border-b",e),...s})},"TableRow",0,function({className:e,...s}){return(0,t.jsx)("tr",{"data-slot":"table-row",className:(0,a.cn)("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",e),...s})}])},755838,(e,t,a)=>{"use strict";var s=e.r(271645),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=s.useState,n=s.useEffect,l=s.useLayoutEffect,o=s.useDebugValue;function d(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!r(e,a)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var a=t(),s=i({inst:{value:a,getSnapshot:t}}),r=s[0].inst,c=s[1];return l(function(){r.value=a,r.getSnapshot=t,d(r)&&c({inst:r})},[e,a,t]),n(function(){return d(r)&&c({inst:r}),e(function(){d(r)&&c({inst:r})})},[e]),o(a),a};a.useSyncExternalStore=void 0!==s.useSyncExternalStore?s.useSyncExternalStore:c},802239,(e,t,a)=>{"use strict";t.exports=e.r(755838)},82612,e=>{"use strict";var t=e.i(843476),a=e.i(225913),s=e.i(975157);let r=(0,a.cva)("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4"}},defaultVariants:{variant:"default"}});e.s(["Empty",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"empty",className:(0,s.cn)("flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border-dashed p-6 text-center text-balance",e),...a})},"EmptyDescription",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"empty-description",className:(0,s.cn)("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...a})},"EmptyHeader",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"empty-header",className:(0,s.cn)("flex max-w-sm flex-col items-center gap-2",e),...a})},"EmptyMedia",0,function({className:e,variant:a="default",...i}){return(0,t.jsx)("div",{"data-slot":"empty-icon","data-variant":a,className:(0,s.cn)(r({variant:a,className:e})),...i})},"EmptyTitle",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"empty-title",className:(0,s.cn)("font-heading text-sm font-medium tracking-tight",e),...a})}])},508734,e=>{"use strict";let t=(0,e.i(456420).default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);e.s(["Copy",0,t],508734)},560972,e=>{"use strict";let t=(0,e.i(456420).default)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);e.s(["default",0,t])},648119,e=>{"use strict";var t=e.i(560972);e.s(["MoreHorizontal",()=>t.default])},762368,e=>{"use strict";let t=(0,e.i(456420).default)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);e.s(["Download",0,t],762368)},275043,e=>{"use strict";let t=(0,e.i(456420).default)("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["default",0,t])},938882,e=>{"use strict";let t=`
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,340953,e=>{"use strict";var t=e.i(843476),a=e.i(271645),s=e.i(30030),r=e.i(820783),i=e.i(326999),n=e.i(981140),l=Object.defineProperty,o=(e,t)=>l(e,"name",{value:t,configurable:!0}),[d,c]=(0,s.createContextScope)("AlertDialog",[i.createDialogScope]),u=(0,i.createDialogScope)(),x=o(e=>{let{__scopeAlertDialog:a,...s}=e,r=u(a);return(0,t.jsx)(i.Root,{...r,...s,modal:!0})},"AlertDialog"),p=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:s,...r}=e,n=u(s);return(0,t.jsx)(i.Trigger,{...n,...r,ref:a})},"AlertDialogTrigger")),m=o(e=>{let{__scopeAlertDialog:a,...s}=e,r=u(a);return(0,t.jsx)(i.Portal,{...r,...s})},"AlertDialogPortal"),g=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:s,...r}=e,n=u(s);return(0,t.jsx)(i.Overlay,{...n,...r,ref:a})},"AlertDialogOverlay")),[f,h]=d("AlertDialogContent"),j=a.forwardRef(o(function(e,s){let{__scopeAlertDialog:l,children:o,...d}=e,c=u(l),x=a.useRef(null),p=(0,r.useComposedRefs)(s,x),m=a.useRef(null);return(0,t.jsx)(f,{scope:l,cancelRef:m,children:(0,t.jsx)(i.Content,{role:"alertdialog",...c,...d,ref:p,onOpenAutoFocus:(0,n.composeEventHandlers)(d.onOpenAutoFocus,e=>{e.preventDefault(),m.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:o})})},"AlertDialogContent")),v=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:s,...r}=e,n=u(s);return(0,t.jsx)(i.Title,{...n,...r,ref:a})},"AlertDialogTitle")),b=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:s,...r}=e,n=u(s);return(0,t.jsx)(i.Description,{...n,...r,ref:a})},"AlertDialogDescription")),D=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:s,...r}=e,n=u(s);return(0,t.jsx)(i.Close,{...n,...r,ref:a})},"AlertDialogAction")),T=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:s,...n}=e,{cancelRef:l}=h("AlertDialogCancel",s),o=u(s),d=(0,r.useComposedRefs)(a,l);return(0,t.jsx)(i.Close,{...o,...n,ref:d})},"AlertDialogCancel"));e.s(["Action",0,D,"AlertDialog",0,x,"AlertDialogAction",0,D,"AlertDialogCancel",0,T,"AlertDialogContent",0,j,"AlertDialogDescription",0,b,"AlertDialogOverlay",0,g,"AlertDialogPortal",0,m,"AlertDialogTitle",0,v,"AlertDialogTrigger",0,p,"Cancel",0,T,"Content",0,j,"Description",0,b,"Overlay",0,g,"Portal",0,m,"Root",0,x,"Title",0,v,"Trigger",0,p,"createAlertDialogScope",0,c],691162);var y=e.i(691162),y=y,C=e.i(975157),S=e.i(519455);function N({...e}){return(0,t.jsx)(y.Root,{"data-slot":"alert-dialog",...e})}function w({...e}){return(0,t.jsx)(y.Trigger,{"data-slot":"alert-dialog-trigger",...e})}function A({...e}){return(0,t.jsx)(y.Portal,{"data-slot":"alert-dialog-portal",...e})}function E({className:e,...a}){return(0,t.jsx)(y.Overlay,{"data-slot":"alert-dialog-overlay",className:(0,C.cn)("fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...a})}function I({className:e,size:a="default",...s}){return(0,t.jsxs)(A,{children:[(0,t.jsx)(E,{}),(0,t.jsx)(y.Content,{"data-slot":"alert-dialog-content","data-size":a,className:(0,C.cn)("group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...s})]})}function R({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,C.cn)("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",e),...a})}function k({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,C.cn)("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",e),...a})}function _({className:e,...a}){return(0,t.jsx)(y.Title,{"data-slot":"alert-dialog-title",className:(0,C.cn)("font-heading text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",e),...a})}function z({className:e,...a}){return(0,t.jsx)(y.Description,{"data-slot":"alert-dialog-description",className:(0,C.cn)("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...a})}function H({className:e,variant:a="default",size:s="default",...r}){return(0,t.jsx)(S.Button,{variant:a,size:s,asChild:!0,children:(0,t.jsx)(y.Action,{"data-slot":"alert-dialog-action",className:(0,C.cn)(e),...r})})}function O({className:e,variant:a="outline",size:s="default",...r}){return(0,t.jsx)(S.Button,{variant:a,size:s,asChild:!0,children:(0,t.jsx)(y.Cancel,{"data-slot":"alert-dialog-cancel",className:(0,C.cn)(e),...r})})}e.s(["ConfirmationDialog",0,function({actionLabel:e,cancelLabel:a,description:s,onConfirm:r,onOpenChange:i,open:n,title:l,trigger:o}){return(0,t.jsxs)(N,{onOpenChange:i,open:n,children:[o&&(0,t.jsx)(w,{asChild:!0,children:o}),(0,t.jsxs)(I,{children:[(0,t.jsxs)(R,{children:[(0,t.jsx)(_,{children:l}),(0,t.jsx)(z,{children:s})]}),(0,t.jsxs)(k,{children:[(0,t.jsx)(O,{children:a}),(0,t.jsx)(H,{onClick:()=>void r(),variant:"destructive",children:e})]})]})]})}],340953)},77071,e=>{"use strict";let t=(0,e.i(456420).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["Plus",0,t],77071)},82612,e=>{"use strict";var t=e.i(843476),a=e.i(225913),s=e.i(975157);let r=(0,a.cva)("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4"}},defaultVariants:{variant:"default"}});e.s(["Empty",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"empty",className:(0,s.cn)("flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border-dashed p-6 text-center text-balance",e),...a})},"EmptyDescription",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"empty-description",className:(0,s.cn)("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...a})},"EmptyHeader",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"empty-header",className:(0,s.cn)("flex max-w-sm flex-col items-center gap-2",e),...a})},"EmptyMedia",0,function({className:e,variant:a="default",...i}){return(0,t.jsx)("div",{"data-slot":"empty-icon","data-variant":a,className:(0,s.cn)(r({variant:a,className:e})),...i})},"EmptyTitle",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"empty-title",className:(0,s.cn)("font-heading text-sm font-medium tracking-tight",e),...a})}])},508734,e=>{"use strict";let t=(0,e.i(456420).default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);e.s(["Copy",0,t],508734)},776639,e=>{"use strict";var t=e.i(843476),a=e.i(560964),s=e.i(964053),r=e.i(519455),i=e.i(975157);function n({...e}){return(0,t.jsx)(s.Dialog.Portal,{"data-slot":"dialog-portal",...e})}function l({className:e,...a}){return(0,t.jsx)(s.Dialog.Overlay,{className:(0,i.cn)("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),"data-slot":"dialog-overlay",...a})}e.s(["Dialog",0,function({...e}){return(0,t.jsx)(s.Dialog.Root,{"data-slot":"dialog",...e})},"DialogContent",0,function({className:e,children:o,showCloseButton:d=!0,...c}){return(0,t.jsxs)(n,{children:[(0,t.jsx)(l,{}),(0,t.jsxs)(s.Dialog.Content,{className:(0,i.cn)("fixed top-1/2 left-1/2 z-50 grid max-h-[85dvh] w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 overflow-y-auto rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),"data-slot":"dialog-content",...c,children:[o,d&&(0,t.jsx)(s.Dialog.Close,{asChild:!0,"data-slot":"dialog-close",children:(0,t.jsxs)(r.Button,{className:"absolute top-2 right-2",size:"icon-sm",variant:"ghost",children:[(0,t.jsx)(a.XIcon,{}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})})]})]})},"DialogDescription",0,function({className:e,...a}){return(0,t.jsx)(s.Dialog.Description,{className:(0,i.cn)("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),"data-slot":"dialog-description",...a})},"DialogFooter",0,function({className:e,showCloseButton:a=!1,children:n,...l}){return(0,t.jsxs)("div",{className:(0,i.cn)("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",e),"data-slot":"dialog-footer",...l,children:[n,a&&(0,t.jsx)(s.Dialog.Close,{asChild:!0,children:(0,t.jsx)(r.Button,{variant:"outline",children:"Close"})})]})},"DialogHeader",0,function({className:e,...a}){return(0,t.jsx)("div",{className:(0,i.cn)("flex flex-col gap-2",e),"data-slot":"dialog-header",...a})},"DialogTitle",0,function({className:e,...a}){return(0,t.jsx)(s.Dialog.Title,{className:(0,i.cn)("font-heading text-base leading-none font-medium",e),"data-slot":"dialog-title",...a})},"DialogTrigger",0,function({...e}){return(0,t.jsx)(s.Dialog.Trigger,{"data-slot":"dialog-trigger",...e})}])},929592,e=>{"use strict";var t=e.i(843476),a=e.i(225913),s=e.i(975157);let r=(0,a.cva)("group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"}},defaultVariants:{variant:"default"}});e.s(["Alert",0,function({className:e,variant:a,...i}){return(0,t.jsx)("div",{"data-slot":"alert",role:"alert",className:(0,s.cn)(r({variant:a}),e),...i})},"AlertDescription",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-description",className:(0,s.cn)("text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4",e),...a})},"AlertTitle",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-title",className:(0,s.cn)("font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground",e),...a})}])},515288,e=>{"use strict";var t=e.i(843476),a=e.i(975157);e.s(["Card",0,function({className:e,size:s="default",...r}){return(0,t.jsx)("div",{"data-slot":"card","data-size":s,className:(0,a.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>[data-slot=card-header]]:pt-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...r})},"CardAction",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"card-action",className:(0,a.cn)("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...s})},"CardContent",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,a.cn)("px-(--card-spacing)",e),...s})},"CardDescription",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,a.cn)("text-sm text-muted-foreground",e),...s})},"CardFooter",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"card-footer",className:(0,a.cn)("flex items-center rounded-b-xl border-t bg-muted/50 p-(--card-spacing)",e),...s})},"CardHeader",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,a.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl bg-muted/40 px-(--card-spacing) py-(--card-spacing) not-last:border-b has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]",e),...s})},"CardTitle",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,a.cn)("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e),...s})}])},784774,e=>{"use strict";var t=e.i(843476),a=e.i(975157);e.s(["Table",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,t.jsx)("table",{"data-slot":"table",className:(0,a.cn)("w-full caption-bottom text-sm",e),...s})})},"TableBody",0,function({className:e,...s}){return(0,t.jsx)("tbody",{"data-slot":"table-body",className:(0,a.cn)("[&_tr:last-child]:border-0",e),...s})},"TableCell",0,function({className:e,...s}){return(0,t.jsx)("td",{"data-slot":"table-cell",className:(0,a.cn)("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",e),...s})},"TableFooter",0,function({className:e,...s}){return(0,t.jsx)("tfoot",{"data-slot":"table-footer",className:(0,a.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...s})},"TableHead",0,function({className:e,...s}){return(0,t.jsx)("th",{"data-slot":"table-head",className:(0,a.cn)("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",e),...s})},"TableHeader",0,function({className:e,...s}){return(0,t.jsx)("thead",{"data-slot":"table-header",className:(0,a.cn)("[&_tr]:border-b",e),...s})},"TableRow",0,function({className:e,...s}){return(0,t.jsx)("tr",{"data-slot":"table-row",className:(0,a.cn)("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",e),...s})}])},755838,(e,t,a)=>{"use strict";var s=e.r(271645),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=s.useState,n=s.useEffect,l=s.useLayoutEffect,o=s.useDebugValue;function d(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!r(e,a)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var a=t(),s=i({inst:{value:a,getSnapshot:t}}),r=s[0].inst,c=s[1];return l(function(){r.value=a,r.getSnapshot=t,d(r)&&c({inst:r})},[e,a,t]),n(function(){return d(r)&&c({inst:r}),e(function(){d(r)&&c({inst:r})})},[e]),o(a),a};a.useSyncExternalStore=void 0!==s.useSyncExternalStore?s.useSyncExternalStore:c},802239,(e,t,a)=>{"use strict";t.exports=e.r(755838)},762368,e=>{"use strict";let t=(0,e.i(456420).default)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);e.s(["Download",0,t],762368)},648119,e=>{"use strict";var t=e.i(560972);e.s(["MoreHorizontal",()=>t.default])},275043,e=>{"use strict";let t=(0,e.i(456420).default)("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["default",0,t])},938882,e=>{"use strict";let t=`
2
2
  id maskedUdid displayName product osVersion platform status appleStatus
3
3
  registeredAt lastSeenAt lastIpAddress createdAt updatedAt
4
4
  `,a=`
@@ -19,23 +19,23 @@
19
19
  appStoreConnectPrivateKeyConfigured appStoreConnectPrivateKeyFingerprint
20
20
  appStoreConnectVerifiedAt appStoreConnectLastTestedAt
21
21
  appStoreConnectVerificationError updatedAt
22
- `;e.s(["IOS_DEVICE_FIELDS",0,a,"IOS_DEVICE_FIRMWARE_FIELDS",0,s,"IOS_DEVICE_LIST_FIELDS",0,t,"IOS_DEVICE_SETTINGS_FIELDS",0,r])},265373,e=>{"use strict";var t=e.i(843476),a=e.i(487486);e.s(["IosDeviceStatusBadge",0,function({label:e,status:s}){return(0,t.jsx)(a.Badge,{className:{PENDING:"border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300",REGISTERING:"border-blue-500/30 bg-blue-500/10 text-blue-700 dark:text-blue-300",REGISTERED:"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300",REGISTRATION_FAILED:"border-destructive/30 bg-destructive/10 text-destructive",REJECTED:"border-muted-foreground/30 bg-muted text-muted-foreground"}[s],children:e})}])},373811,e=>{"use strict";var t=e.i(843476),a=e.i(762368),s=e.i(77071),r=e.i(986206),i=e.i(861745),n=e.i(948148),l=e.i(271645),o=e.i(929592),d=e.i(519455),c=e.i(515288),u=e.i(816484),x=e.i(82612),p=e.i(967489),m=e.i(987968),g=e.i(784774),f=e.i(520133),h=e.i(637611),j=e.i(265373),v=e.i(938882),b=e.i(689664),D=e.i(508734),y=e.i(275043),y=y,T=e.i(648119),C=e.i(573474),S=e.i(340953),N=e.i(487486),w=e.i(776639),A=e.i(755146),E=e.i(793479),I=e.i(110204),R=e.i(677572);let k=`
22
+ `;e.s(["IOS_DEVICE_FIELDS",0,a,"IOS_DEVICE_FIRMWARE_FIELDS",0,s,"IOS_DEVICE_LIST_FIELDS",0,t,"IOS_DEVICE_SETTINGS_FIELDS",0,r])},265373,e=>{"use strict";var t=e.i(843476),a=e.i(487486);e.s(["IosDeviceStatusBadge",0,function({label:e,status:s}){return(0,t.jsx)(a.Badge,{className:{PENDING:"border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300",REGISTERING:"border-blue-500/30 bg-blue-500/10 text-blue-700 dark:text-blue-300",REGISTERED:"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300",REGISTRATION_FAILED:"border-destructive/30 bg-destructive/10 text-destructive",REJECTED:"border-muted-foreground/30 bg-muted text-muted-foreground"}[s],children:e})}])},373811,e=>{"use strict";var t=e.i(843476),a=e.i(762368),s=e.i(77071),r=e.i(986206),i=e.i(861745),n=e.i(948148),l=e.i(271645),o=e.i(929592),d=e.i(519455),c=e.i(515288),u=e.i(816484),x=e.i(82612),p=e.i(967489),m=e.i(987968),g=e.i(784774),f=e.i(520133),h=e.i(637611),j=e.i(265373),v=e.i(938882),b=e.i(689664),D=e.i(508734),T=e.i(275043),T=T,y=e.i(648119),C=e.i(573474),S=e.i(340953),N=e.i(487486),w=e.i(776639),A=e.i(755146),E=e.i(793479),I=e.i(110204),R=e.i(677572);let k=`
23
23
  id clientRegistrationId tokenMasked topic environment supportedPushTypes
24
24
  displayName deviceModel osVersion appVersion appBuild locale pushMagicConfigured
25
25
  status lastFailureReason lastRegisteredAt lastSentAt
26
- `;function z({registrations:e,onChanged:a}={}){let s=(0,n.useTranslations)("apnsDevices"),r=(0,n.useTranslations)("common"),[i,o]=(0,l.useState)([]),[x,p]=(0,l.useState)(!0),[f,j]=(0,l.useState)(!1),[v,b]=(0,l.useState)(null),[D,y]=(0,l.useState)(""),[R,_]=(0,l.useState)(null),O=(0,l.useCallback)(async()=>{try{let e=await (0,h.controlPlaneRequest)(`query ApnsDevices { apnsRegistrations { ${k} } }`);o(e.apnsRegistrations),_(null)}catch(e){_(e instanceof Error?e.message:String(e))}finally{p(!1)}},[]);(0,l.useEffect)(()=>{if(void 0!==e)return(0,h.controlPlaneSubscriptions)().subscribe({query:"subscription { pushNotificationsChanged }"},{next:()=>void a?.(),error:()=>void 0,complete:()=>void 0});let t=window.setTimeout(()=>void O(),0),s=(0,h.controlPlaneSubscriptions)().subscribe({query:"subscription { pushNotificationsChanged }"},{next:()=>void O(),error:()=>void 0,complete:()=>void 0});return()=>{window.clearTimeout(t),s()}},[e,O,a]);let B=async(e,t)=>{j(!0);try{await (0,h.controlPlaneRequest)(e,t),a?await a():await O()}catch(e){_(e instanceof Error?e.message:String(e))}finally{j(!1)}},L=e??i,P=void 0===e&&x;return(0,t.jsxs)(c.Card,{className:"gap-0 py-0",children:[(0,t.jsxs)(c.CardHeader,{className:"max-sm:has-data-[slot=card-action]:grid-cols-1",children:[(0,t.jsx)(c.CardTitle,{children:s("title")}),(0,t.jsx)(c.CardDescription,{children:s("description")}),(0,t.jsx)(c.CardAction,{className:"max-sm:col-start-1 max-sm:row-start-3 max-sm:row-span-1 max-sm:mt-3 max-sm:justify-self-stretch",children:(0,t.jsx)(H,{})})]}),R&&(0,t.jsx)("p",{className:"border-b p-4 text-sm text-destructive",children:R}),P?(0,t.jsxs)("p",{className:"flex items-center gap-2 p-6 text-sm text-muted-foreground",children:[(0,t.jsx)(m.Spinner,{})," ",s("loading")]}):0===L.length?(0,t.jsx)("p",{className:"p-8 text-center text-sm text-muted-foreground",children:s("empty")}):(0,t.jsxs)(g.Table,{children:[(0,t.jsx)(g.TableHeader,{children:(0,t.jsxs)(g.TableRow,{children:[(0,t.jsx)(g.TableHead,{children:s("device")}),(0,t.jsx)(g.TableHead,{children:s("topic")}),(0,t.jsx)(g.TableHead,{children:s("environment")}),(0,t.jsx)(g.TableHead,{children:s("pushTypes")}),(0,t.jsx)(g.TableHead,{children:s("token")}),(0,t.jsx)(g.TableHead,{children:s("status")}),(0,t.jsx)(g.TableHead,{children:s("lastRegistration")}),(0,t.jsx)(g.TableHead,{children:s("lastSend")}),(0,t.jsx)(g.TableHead,{})]})}),(0,t.jsx)(g.TableBody,{children:L.map(e=>(0,t.jsxs)(g.TableRow,{children:[(0,t.jsxs)(g.TableCell,{children:[(0,t.jsx)("p",{className:"font-medium",children:e.displayName}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:[e.deviceModel,e.osVersion&&`iOS ${e.osVersion}`,e.appVersion&&`${e.appVersion} (${e.appBuild??"—"})`].filter(Boolean).join(" · ")}),(0,t.jsx)("p",{className:"font-mono text-xs text-muted-foreground",children:e.clientRegistrationId})]}),(0,t.jsx)(g.TableCell,{className:"font-mono text-xs",children:e.topic}),(0,t.jsx)(g.TableCell,{children:(0,t.jsx)(N.Badge,{variant:"outline",children:e.environment})}),(0,t.jsx)(g.TableCell,{children:(0,t.jsx)("div",{className:"flex max-w-72 flex-wrap gap-1",children:e.supportedPushTypes.map(e=>(0,t.jsx)(N.Badge,{variant:"secondary",children:e},e))})}),(0,t.jsx)(g.TableCell,{className:"font-mono text-xs",children:e.tokenMasked}),(0,t.jsxs)(g.TableCell,{children:[(0,t.jsx)(N.Badge,{variant:"ACTIVE"===e.status?"default":"destructive",children:e.status}),e.lastFailureReason&&(0,t.jsx)("p",{className:"mt-1 text-xs text-destructive",children:e.lastFailureReason})]}),(0,t.jsx)(g.TableCell,{children:(0,t.jsx)(u.DateTime,{value:e.lastRegisteredAt})}),(0,t.jsx)(g.TableCell,{children:(0,t.jsx)(u.DateTime,{value:e.lastSentAt})}),(0,t.jsx)(g.TableCell,{children:(0,t.jsxs)(A.DropdownMenu,{children:[(0,t.jsx)(A.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsx)(d.Button,{disabled:f,size:"icon-sm",variant:"ghost",children:(0,t.jsx)(T.MoreHorizontal,{})})}),(0,t.jsxs)(A.DropdownMenuContent,{align:"end",children:[(0,t.jsx)(A.DropdownMenuItem,{onSelect:()=>{b(e),y(e.displayName)},children:s("rename")}),(0,t.jsx)(A.DropdownMenuItem,{onSelect:()=>void B("mutation Active($id: ID!, $active: Boolean!) { setApnsRegistrationActive(id: $id, active: $active) { id } }",{id:e.id,active:"ACTIVE"!==e.status}),children:"ACTIVE"===e.status?s("deactivate"):s("activate")}),(0,t.jsx)(A.DropdownMenuItem,{variant:"destructive",onSelect:e=>e.preventDefault(),children:(0,t.jsx)(S.ConfirmationDialog,{actionLabel:s("delete"),cancelLabel:r("cancel"),description:s("deleteDescription"),onConfirm:()=>B("mutation Delete($id: ID!) { deleteApnsRegistration(id: $id) }",{id:e.id}),title:s("deleteTitle"),trigger:(0,t.jsxs)("span",{className:"flex w-full items-center gap-2",children:[(0,t.jsx)(C.Trash2,{})," ",s("delete")]})})})]})]})})]},e.id))})]}),(0,t.jsx)(w.Dialog,{onOpenChange:e=>!e&&b(null),open:!!v,children:(0,t.jsxs)(w.DialogContent,{children:[(0,t.jsxs)(w.DialogHeader,{children:[(0,t.jsx)(w.DialogTitle,{children:s("rename")}),(0,t.jsx)(w.DialogDescription,{children:s("renameDescription")})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(I.Label,{htmlFor:"apns-rename",children:s("displayName")}),(0,t.jsx)(E.Input,{id:"apns-rename",onChange:e=>y(e.target.value),value:D})]}),(0,t.jsxs)(w.DialogFooter,{children:[(0,t.jsx)(d.Button,{onClick:()=>b(null),variant:"outline",children:r("cancel")}),(0,t.jsx)(d.Button,{disabled:f||!D.trim(),onClick:()=>{v&&B("mutation Rename($id: ID!, $name: String!) { renameApnsRegistration(id: $id, displayName: $name) { id } }",{id:v.id,name:D}).then(()=>b(null))},children:s("save")})]})]})})]})}let _={clientRegistrationId:"install-2FC735A5-734D-4A41-A1DD-BC8444796894",token:"0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",tokenEncoding:"HEX",topic:"com.example.MyApp",environment:"SANDBOX",supportedPushTypes:["alert","background"],displayName:"Chandler’s iPhone",deviceModel:"iPhone18,1",osVersion:"26.0",appVersion:"4.2",appBuild:"310",locale:"en_US"};function H(){let e=(0,n.useTranslations)("apnsDevices"),[a,s]=(0,l.useState)(null),r=`POST /api/ios/apns-devices
26
+ `;function _({registrations:e,onChanged:a}={}){let s=(0,n.useTranslations)("apnsDevices"),r=(0,n.useTranslations)("common"),[i,o]=(0,l.useState)([]),[x,p]=(0,l.useState)(!0),[f,j]=(0,l.useState)(!1),[v,b]=(0,l.useState)(null),[D,T]=(0,l.useState)(""),[R,z]=(0,l.useState)(null),O=(0,l.useCallback)(async()=>{try{let e=await (0,h.controlPlaneRequest)(`query ApnsDevices { apnsRegistrations { ${k} } }`);o(e.apnsRegistrations),z(null)}catch(e){z(e instanceof Error?e.message:String(e))}finally{p(!1)}},[]);(0,l.useEffect)(()=>{if(void 0!==e)return(0,h.controlPlaneSubscriptions)().subscribe({query:"subscription { pushNotificationsChanged }"},{next:()=>void a?.(),error:()=>void 0,complete:()=>void 0});let t=window.setTimeout(()=>void O(),0),s=(0,h.controlPlaneSubscriptions)().subscribe({query:"subscription { pushNotificationsChanged }"},{next:()=>void O(),error:()=>void 0,complete:()=>void 0});return()=>{window.clearTimeout(t),s()}},[e,O,a]);let B=async(e,t)=>{j(!0);try{await (0,h.controlPlaneRequest)(e,t),a?await a():await O()}catch(e){z(e instanceof Error?e.message:String(e))}finally{j(!1)}},L=e??i,P=void 0===e&&x;return(0,t.jsxs)(c.Card,{className:"gap-0 py-0",children:[(0,t.jsxs)(c.CardHeader,{className:"max-sm:has-data-[slot=card-action]:grid-cols-1",children:[(0,t.jsx)(c.CardTitle,{children:s("title")}),(0,t.jsx)(c.CardDescription,{children:s("description")}),(0,t.jsx)(c.CardAction,{className:"max-sm:col-start-1 max-sm:row-start-3 max-sm:row-span-1 max-sm:mt-3 max-sm:justify-self-stretch",children:(0,t.jsx)(H,{})})]}),R&&(0,t.jsx)("p",{className:"border-b p-4 text-sm text-destructive",children:R}),P?(0,t.jsxs)("p",{className:"flex items-center gap-2 p-6 text-sm text-muted-foreground",children:[(0,t.jsx)(m.Spinner,{})," ",s("loading")]}):0===L.length?(0,t.jsx)("p",{className:"p-8 text-center text-sm text-muted-foreground",children:s("empty")}):(0,t.jsxs)(g.Table,{children:[(0,t.jsx)(g.TableHeader,{children:(0,t.jsxs)(g.TableRow,{children:[(0,t.jsx)(g.TableHead,{children:s("device")}),(0,t.jsx)(g.TableHead,{children:s("topic")}),(0,t.jsx)(g.TableHead,{children:s("environment")}),(0,t.jsx)(g.TableHead,{children:s("pushTypes")}),(0,t.jsx)(g.TableHead,{children:s("token")}),(0,t.jsx)(g.TableHead,{children:s("status")}),(0,t.jsx)(g.TableHead,{children:s("lastRegistration")}),(0,t.jsx)(g.TableHead,{children:s("lastSend")}),(0,t.jsx)(g.TableHead,{})]})}),(0,t.jsx)(g.TableBody,{children:L.map(e=>(0,t.jsxs)(g.TableRow,{children:[(0,t.jsxs)(g.TableCell,{children:[(0,t.jsx)("p",{className:"font-medium",children:e.displayName}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:[e.deviceModel,e.osVersion&&`iOS ${e.osVersion}`,e.appVersion&&`${e.appVersion} (${e.appBuild??"—"})`].filter(Boolean).join(" · ")}),(0,t.jsx)("p",{className:"font-mono text-xs text-muted-foreground",children:e.clientRegistrationId})]}),(0,t.jsx)(g.TableCell,{className:"font-mono text-xs",children:e.topic}),(0,t.jsx)(g.TableCell,{children:(0,t.jsx)(N.Badge,{variant:"outline",children:e.environment})}),(0,t.jsx)(g.TableCell,{children:(0,t.jsx)("div",{className:"flex max-w-72 flex-wrap gap-1",children:e.supportedPushTypes.map(e=>(0,t.jsx)(N.Badge,{variant:"secondary",children:e},e))})}),(0,t.jsx)(g.TableCell,{className:"font-mono text-xs",children:e.tokenMasked}),(0,t.jsxs)(g.TableCell,{children:[(0,t.jsx)(N.Badge,{variant:"ACTIVE"===e.status?"default":"destructive",children:e.status}),e.lastFailureReason&&(0,t.jsx)("p",{className:"mt-1 text-xs text-destructive",children:e.lastFailureReason})]}),(0,t.jsx)(g.TableCell,{children:(0,t.jsx)(u.DateTime,{value:e.lastRegisteredAt})}),(0,t.jsx)(g.TableCell,{children:(0,t.jsx)(u.DateTime,{value:e.lastSentAt})}),(0,t.jsx)(g.TableCell,{children:(0,t.jsxs)(A.DropdownMenu,{children:[(0,t.jsx)(A.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsx)(d.Button,{disabled:f,size:"icon-sm",variant:"ghost",children:(0,t.jsx)(y.MoreHorizontal,{})})}),(0,t.jsxs)(A.DropdownMenuContent,{align:"end",children:[(0,t.jsx)(A.DropdownMenuItem,{onSelect:()=>{b(e),T(e.displayName)},children:s("rename")}),(0,t.jsx)(A.DropdownMenuItem,{onSelect:()=>void B("mutation Active($id: ID!, $active: Boolean!) { setApnsRegistrationActive(id: $id, active: $active) { id } }",{id:e.id,active:"ACTIVE"!==e.status}),children:"ACTIVE"===e.status?s("deactivate"):s("activate")}),(0,t.jsx)(A.DropdownMenuItem,{variant:"destructive",onSelect:e=>e.preventDefault(),children:(0,t.jsx)(S.ConfirmationDialog,{actionLabel:s("delete"),cancelLabel:r("cancel"),description:s("deleteDescription"),onConfirm:()=>B("mutation Delete($id: ID!) { deleteApnsRegistration(id: $id) }",{id:e.id}),title:s("deleteTitle"),trigger:(0,t.jsxs)("span",{className:"flex w-full items-center gap-2",children:[(0,t.jsx)(C.Trash2,{})," ",s("delete")]})})})]})]})})]},e.id))})]}),(0,t.jsx)(w.Dialog,{onOpenChange:e=>!e&&b(null),open:!!v,children:(0,t.jsxs)(w.DialogContent,{children:[(0,t.jsxs)(w.DialogHeader,{children:[(0,t.jsx)(w.DialogTitle,{children:s("rename")}),(0,t.jsx)(w.DialogDescription,{children:s("renameDescription")})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(I.Label,{htmlFor:"apns-rename",children:s("displayName")}),(0,t.jsx)(E.Input,{id:"apns-rename",onChange:e=>T(e.target.value),value:D})]}),(0,t.jsxs)(w.DialogFooter,{children:[(0,t.jsx)(d.Button,{onClick:()=>b(null),variant:"outline",children:r("cancel")}),(0,t.jsx)(d.Button,{disabled:f||!D.trim(),onClick:()=>{v&&B("mutation Rename($id: ID!, $name: String!) { renameApnsRegistration(id: $id, displayName: $name) { id } }",{id:v.id,name:D}).then(()=>b(null))},children:s("save")})]})]})})]})}let z={clientRegistrationId:"install-2FC735A5-734D-4A41-A1DD-BC8444796894",token:"0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",tokenEncoding:"HEX",topic:"com.example.MyApp",environment:"SANDBOX",supportedPushTypes:["alert","background"],displayName:"Chandler’s iPhone",deviceModel:"iPhone18,1",osVersion:"26.0",appVersion:"4.2",appBuild:"310",locale:"en_US"};function H(){let e=(0,n.useTranslations)("apnsDevices"),[a,s]=(0,l.useState)(null),r=`POST /api/ios/apns-devices
27
27
  Content-Type: application/json
28
28
 
29
29
  \`\`\`json
30
- ${JSON.stringify(_,null,2)}
30
+ ${JSON.stringify(z,null,2)}
31
31
  \`\`\``,i=`curl -X POST "$BASE_URL/api/ios/apns-devices" \\
32
32
  + -H 'Content-Type: application/json' \\
33
- + --data '${JSON.stringify(_)}'`,o=`let body: [String: Any] = ${JSON.stringify(_,null,2)}
33
+ + --data '${JSON.stringify(z)}'`,o=`let body: [String: Any] = ${JSON.stringify(z,null,2)}
34
34
  var request = URLRequest(url: baseURL.appending(path: "/api/ios/apns-devices"))
35
35
  request.httpMethod = "POST"
36
36
  request.setValue("application/json", forHTTPHeaderField: "Content-Type")
37
37
  request.httpBody = try JSONSerialization.data(withJSONObject: body)
38
- let (_, response) = try await URLSession.shared.data(for: request)`,c=async(e,t)=>{await navigator.clipboard.writeText(t),s(e),window.setTimeout(()=>s(null),1500)};return(0,t.jsxs)(w.Dialog,{children:[(0,t.jsx)(w.DialogTrigger,{asChild:!0,children:(0,t.jsxs)(d.Button,{size:"sm",variant:"outline",children:[(0,t.jsx)(y.default,{})," ",e("apiHelp")]})}),(0,t.jsxs)(w.DialogContent,{className:"sm:max-w-3xl",children:[(0,t.jsxs)(w.DialogHeader,{children:[(0,t.jsx)(w.DialogTitle,{children:e("apiHelpTitle")}),(0,t.jsx)(w.DialogDescription,{children:e("apiHelpDescription")})]}),(0,t.jsxs)(R.Tabs,{defaultValue:"markdown",children:[(0,t.jsxs)(R.TabsList,{children:[(0,t.jsx)(R.TabsTrigger,{value:"markdown",children:"Markdown"}),(0,t.jsx)(R.TabsTrigger,{value:"curl",children:"cURL"}),(0,t.jsx)(R.TabsTrigger,{value:"swift",children:"Swift"})]}),[["markdown",r],["curl",i],["swift",o]].map(([e,s])=>(0,t.jsx)(R.TabsContent,{value:e,children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("pre",{className:"max-h-[55vh] overflow-auto rounded-xl bg-muted p-4 text-xs whitespace-pre-wrap",children:s}),(0,t.jsx)(d.Button,{className:"absolute right-2 top-2",onClick:()=>void c(e,s),size:"icon-sm",variant:"secondary",children:a===e?(0,t.jsx)(b.Check,{}):(0,t.jsx)(D.Copy,{})})]})},e))]})]})]})}let O=["ALL","PENDING","REGISTERING","REGISTERED","REGISTRATION_FAILED","REJECTED"],B=["NEWEST","NAME","LAST_SEEN"];e.s(["DevicesPage",0,function(){let e=(0,n.useTranslations)("devices"),b=(0,i.useLocale)(),D=(0,f.useRouter)(),[y,T]=(0,l.useState)([]),[C,S]=(0,l.useState)([]),[N,w]=(0,l.useState)("ALL"),[A,E]=(0,l.useState)("NEWEST"),[I,R]=(0,l.useState)(!0),[_,H]=(0,l.useState)(null),L=(0,l.useRef)(0),P=(0,l.useCallback)(async()=>{let e=++L.current;R(!0);try{let t=await (0,h.controlPlaneRequest)(`query IosDevices($status: IosDeviceStatus) {
38
+ let (_, response) = try await URLSession.shared.data(for: request)`,c=async(e,t)=>{await navigator.clipboard.writeText(t),s(e),window.setTimeout(()=>s(null),1500)};return(0,t.jsxs)(w.Dialog,{children:[(0,t.jsx)(w.DialogTrigger,{asChild:!0,children:(0,t.jsxs)(d.Button,{size:"sm",variant:"outline",children:[(0,t.jsx)(T.default,{})," ",e("apiHelp")]})}),(0,t.jsxs)(w.DialogContent,{className:"sm:max-w-3xl",children:[(0,t.jsxs)(w.DialogHeader,{children:[(0,t.jsx)(w.DialogTitle,{children:e("apiHelpTitle")}),(0,t.jsx)(w.DialogDescription,{children:e("apiHelpDescription")})]}),(0,t.jsxs)(R.Tabs,{defaultValue:"markdown",children:[(0,t.jsxs)(R.TabsList,{children:[(0,t.jsx)(R.TabsTrigger,{value:"markdown",children:"Markdown"}),(0,t.jsx)(R.TabsTrigger,{value:"curl",children:"cURL"}),(0,t.jsx)(R.TabsTrigger,{value:"swift",children:"Swift"})]}),[["markdown",r],["curl",i],["swift",o]].map(([e,s])=>(0,t.jsx)(R.TabsContent,{value:e,children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("pre",{className:"max-h-[55vh] overflow-auto rounded-xl bg-muted p-4 text-xs whitespace-pre-wrap",children:s}),(0,t.jsx)(d.Button,{className:"absolute right-2 top-2",onClick:()=>void c(e,s),size:"icon-sm",variant:"secondary",children:a===e?(0,t.jsx)(b.Check,{}):(0,t.jsx)(D.Copy,{})})]})},e))]})]})]})}let O=["ALL","PENDING","REGISTERING","REGISTERED","REGISTRATION_FAILED","REJECTED"],B=["NEWEST","NAME","LAST_SEEN"];e.s(["DevicesPage",0,function(){let e=(0,n.useTranslations)("devices"),b=(0,i.useLocale)(),D=(0,f.useRouter)(),[T,y]=(0,l.useState)([]),[C,S]=(0,l.useState)([]),[N,w]=(0,l.useState)("ALL"),[A,E]=(0,l.useState)("NEWEST"),[I,R]=(0,l.useState)(!0),[z,H]=(0,l.useState)(null),L=(0,l.useRef)(0),P=(0,l.useCallback)(async()=>{let e=++L.current;R(!0);try{let t=await (0,h.controlPlaneRequest)(`query IosDevices($status: IosDeviceStatus) {
39
39
  iosDevices(status: $status) { ${v.IOS_DEVICE_LIST_FIELDS} }
40
40
  apnsRegistrations { ${k} }
41
- }`,{status:"ALL"===N?null:N});e===L.current&&(T(t.iosDevices),S(t.apnsRegistrations??[]),H(null))}catch(t){e===L.current&&H(t instanceof Error?t.message:String(t))}finally{e===L.current&&R(!1)}},[N]);(0,l.useEffect)(()=>{let e=window.setTimeout(()=>void P(),0);return()=>{window.clearTimeout(e),L.current+=1}},[P]),(0,l.useEffect)(()=>(0,h.controlPlaneSubscriptions)().subscribe({query:"subscription IosDevicesChanged { iosDevicesChanged { id } }"},{next:()=>void P(),error:()=>void 0,complete:()=>void 0}),[P]);let V=(0,l.useMemo)(()=>[...y].sort((e,t)=>"NAME"===A?e.displayName.localeCompare(t.displayName,b):"LAST_SEEN"===A?Date.parse(t.lastSeenAt??"1970-01-01")-Date.parse(e.lastSeenAt??"1970-01-01"):Date.parse(t.createdAt)-Date.parse(e.createdAt)),[y,b,A]);return(0,t.jsxs)("section",{className:"mx-auto flex w-full max-w-[1500px] flex-col gap-6",children:[(0,t.jsxs)("div",{className:"flex flex-col justify-between gap-4 sm:flex-row sm:items-start",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",children:e("title")}),(0,t.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:e("description")})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)(d.Button,{asChild:!0,variant:"outline",children:(0,t.jsxs)("a",{href:"/api/ios/devices/export.tsv",children:[(0,t.jsx)(a.Download,{})," ",e("export")]})}),(0,t.jsx)(d.Button,{asChild:!0,children:(0,t.jsxs)(f.Link,{href:"/devices/enroll",children:[(0,t.jsx)(s.Plus,{})," ",e("addDevice")]})})]})]}),_&&(0,t.jsx)(o.Alert,{variant:"destructive",children:(0,t.jsx)(o.AlertDescription,{children:_})}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-3",children:[(0,t.jsxs)(p.Select,{onValueChange:e=>w(e),value:N,children:[(0,t.jsx)(p.SelectTrigger,{"aria-label":e("filterStatus"),className:"w-52",children:(0,t.jsx)(p.SelectValue,{})}),(0,t.jsx)(p.SelectContent,{children:O.map(a=>(0,t.jsx)(p.SelectItem,{value:a,children:"ALL"===a?e("allStatuses"):e(`status.${a}`)},a))})]}),(0,t.jsxs)(p.Select,{onValueChange:e=>E(e),value:A,children:[(0,t.jsx)(p.SelectTrigger,{"aria-label":e("sort"),className:"w-52",children:(0,t.jsx)(p.SelectValue,{})}),(0,t.jsx)(p.SelectContent,{children:B.map(a=>(0,t.jsx)(p.SelectItem,{value:a,children:e(`sortOption.${a}`)},a))})]})]}),I?(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(m.Spinner,{})," ",e("loading")]}):0===V.length?(0,t.jsx)(x.Empty,{className:"border",children:(0,t.jsxs)(x.EmptyHeader,{children:[(0,t.jsx)(x.EmptyMedia,{variant:"icon",children:(0,t.jsx)(r.Smartphone,{})}),(0,t.jsx)(x.EmptyTitle,{children:e("emptyTitle")}),(0,t.jsx)(x.EmptyDescription,{children:e("emptyDescription")})]})}):(0,t.jsx)(c.Card,{className:"gap-0 py-0",children:(0,t.jsxs)(g.Table,{children:[(0,t.jsx)(g.TableHeader,{children:(0,t.jsxs)(g.TableRow,{className:"hover:bg-transparent",children:[(0,t.jsx)(g.TableHead,{children:e("device")}),(0,t.jsx)(g.TableHead,{children:e("statusLabel")}),(0,t.jsx)(g.TableHead,{children:e("hardware")}),(0,t.jsx)(g.TableHead,{children:e("lastIp")}),(0,t.jsx)(g.TableHead,{children:e("enrolled")}),(0,t.jsx)(g.TableHead,{children:e("registered")}),(0,t.jsx)(g.TableHead,{children:e("lastSeen")})]})}),(0,t.jsx)(g.TableBody,{children:V.map(a=>(0,t.jsxs)(g.TableRow,{"aria-label":e("viewDevice",{name:a.displayName}),className:"cursor-pointer focus-visible:bg-muted/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset",onClick:()=>D.push(`/devices/${a.id}`),onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),D.push(`/devices/${a.id}`))},role:"link",tabIndex:0,children:[(0,t.jsxs)(g.TableCell,{className:"min-w-52 whitespace-normal",children:[(0,t.jsx)(f.Link,{className:"font-medium hover:underline",href:`/devices/${a.id}`,onClick:e=>e.stopPropagation(),children:a.displayName}),(0,t.jsx)("div",{className:"font-mono text-xs text-muted-foreground",children:a.maskedUdid})]}),(0,t.jsx)(g.TableCell,{children:(0,t.jsx)(j.IosDeviceStatusBadge,{label:e(`status.${a.status}`),status:a.status})}),(0,t.jsxs)(g.TableCell,{children:[(0,t.jsx)("div",{children:a.product??e("unavailable")}),(0,t.jsx)("div",{className:"text-xs text-muted-foreground",children:a.osVersion?`iOS ${a.osVersion}`:e("unavailable")})]}),(0,t.jsx)(g.TableCell,{className:"font-mono text-xs",children:a.lastIpAddress??e("unavailable")}),(0,t.jsx)(g.TableCell,{className:"text-muted-foreground",children:(0,t.jsx)(u.DateTime,{value:a.createdAt})}),(0,t.jsx)(g.TableCell,{className:"text-muted-foreground",children:(0,t.jsx)(u.DateTime,{value:a.registeredAt})}),(0,t.jsx)(g.TableCell,{className:"text-muted-foreground",children:(0,t.jsx)(u.DateTime,{value:a.lastSeenAt})})]},a.id))})]})}),(0,t.jsx)(z,{registrations:C,onChanged:P})]})}],373811)}]);
41
+ }`,{status:"ALL"===N?null:N});e===L.current&&(y(t.iosDevices),S(t.apnsRegistrations??[]),H(null))}catch(t){e===L.current&&H(t instanceof Error?t.message:String(t))}finally{e===L.current&&R(!1)}},[N]);(0,l.useEffect)(()=>{let e=window.setTimeout(()=>void P(),0);return()=>{window.clearTimeout(e),L.current+=1}},[P]),(0,l.useEffect)(()=>(0,h.controlPlaneSubscriptions)().subscribe({query:"subscription IosDevicesChanged { iosDevicesChanged { id } }"},{next:()=>void P(),error:()=>void 0,complete:()=>void 0}),[P]);let V=(0,l.useMemo)(()=>[...T].sort((e,t)=>"NAME"===A?e.displayName.localeCompare(t.displayName,b):"LAST_SEEN"===A?Date.parse(t.lastSeenAt??"1970-01-01")-Date.parse(e.lastSeenAt??"1970-01-01"):Date.parse(t.createdAt)-Date.parse(e.createdAt)),[T,b,A]);return(0,t.jsxs)("section",{className:"mx-auto flex w-full max-w-[1500px] flex-col gap-6",children:[(0,t.jsxs)("div",{className:"flex flex-col justify-between gap-4 sm:flex-row sm:items-start",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",children:e("title")}),(0,t.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:e("description")})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)(d.Button,{asChild:!0,variant:"outline",children:(0,t.jsxs)("a",{href:"/api/ios/devices/export.tsv",children:[(0,t.jsx)(a.Download,{})," ",e("export")]})}),(0,t.jsx)(d.Button,{asChild:!0,children:(0,t.jsxs)(f.Link,{href:"/devices/enroll",children:[(0,t.jsx)(s.Plus,{})," ",e("addDevice")]})})]})]}),z&&(0,t.jsx)(o.Alert,{variant:"destructive",children:(0,t.jsx)(o.AlertDescription,{children:z})}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-3",children:[(0,t.jsxs)(p.Select,{onValueChange:e=>w(e),value:N,children:[(0,t.jsx)(p.SelectTrigger,{"aria-label":e("filterStatus"),className:"w-52",children:(0,t.jsx)(p.SelectValue,{})}),(0,t.jsx)(p.SelectContent,{children:O.map(a=>(0,t.jsx)(p.SelectItem,{value:a,children:"ALL"===a?e("allStatuses"):e(`status.${a}`)},a))})]}),(0,t.jsxs)(p.Select,{onValueChange:e=>E(e),value:A,children:[(0,t.jsx)(p.SelectTrigger,{"aria-label":e("sort"),className:"w-52",children:(0,t.jsx)(p.SelectValue,{})}),(0,t.jsx)(p.SelectContent,{children:B.map(a=>(0,t.jsx)(p.SelectItem,{value:a,children:e(`sortOption.${a}`)},a))})]})]}),I?(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(m.Spinner,{})," ",e("loading")]}):0===V.length?(0,t.jsx)(x.Empty,{className:"border",children:(0,t.jsxs)(x.EmptyHeader,{children:[(0,t.jsx)(x.EmptyMedia,{variant:"icon",children:(0,t.jsx)(r.Smartphone,{})}),(0,t.jsx)(x.EmptyTitle,{children:e("emptyTitle")}),(0,t.jsx)(x.EmptyDescription,{children:e("emptyDescription")})]})}):(0,t.jsx)(c.Card,{className:"gap-0 py-0",children:(0,t.jsxs)(g.Table,{children:[(0,t.jsx)(g.TableHeader,{children:(0,t.jsxs)(g.TableRow,{className:"hover:bg-transparent",children:[(0,t.jsx)(g.TableHead,{children:e("device")}),(0,t.jsx)(g.TableHead,{children:e("statusLabel")}),(0,t.jsx)(g.TableHead,{children:e("hardware")}),(0,t.jsx)(g.TableHead,{children:e("lastIp")}),(0,t.jsx)(g.TableHead,{children:e("enrolled")}),(0,t.jsx)(g.TableHead,{children:e("registered")}),(0,t.jsx)(g.TableHead,{children:e("lastSeen")})]})}),(0,t.jsx)(g.TableBody,{children:V.map(a=>(0,t.jsxs)(g.TableRow,{"aria-label":e("viewDevice",{name:a.displayName}),className:"cursor-pointer focus-visible:bg-muted/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset",onClick:()=>D.push(`/devices/${a.id}`),onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),D.push(`/devices/${a.id}`))},role:"link",tabIndex:0,children:[(0,t.jsxs)(g.TableCell,{className:"min-w-52 whitespace-normal",children:[(0,t.jsx)(f.Link,{className:"font-medium hover:underline",href:`/devices/${a.id}`,onClick:e=>e.stopPropagation(),children:a.displayName}),(0,t.jsx)("div",{className:"font-mono text-xs text-muted-foreground",children:a.maskedUdid})]}),(0,t.jsx)(g.TableCell,{children:(0,t.jsx)(j.IosDeviceStatusBadge,{label:e(`status.${a.status}`),status:a.status})}),(0,t.jsxs)(g.TableCell,{children:[(0,t.jsx)("div",{children:a.product??e("unavailable")}),(0,t.jsx)("div",{className:"text-xs text-muted-foreground",children:a.osVersion?`iOS ${a.osVersion}`:e("unavailable")})]}),(0,t.jsx)(g.TableCell,{className:"font-mono text-xs",children:a.lastIpAddress??e("unavailable")}),(0,t.jsx)(g.TableCell,{className:"text-muted-foreground",children:(0,t.jsx)(u.DateTime,{value:a.createdAt})}),(0,t.jsx)(g.TableCell,{className:"text-muted-foreground",children:(0,t.jsx)(u.DateTime,{value:a.registeredAt})}),(0,t.jsx)(g.TableCell,{className:"text-muted-foreground",children:(0,t.jsx)(u.DateTime,{value:a.lastSeenAt})})]},a.id))})]})}),(0,t.jsx)(_,{registrations:C,onChanged:P})]})}],373811)}]);
@@ -0,0 +1,23 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,175696,e=>{"use strict";var s=e.i(861745),i=e.i(843476);e.s(["default",0,function({locale:e,...t}){if(!e)throw Error(void 0);return(0,i.jsx)(s.IntlProvider,{locale:e,...t})}])},763141,e=>{"use strict";var s=e.i(843476),i=e.i(271645),t=e.i(42693),a=e.i(97194),n=e.i(456420);let r=(0,n.default)("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]),l=(0,n.default)("chart-no-axes-combined",[["path",{d:"M12 16v5",key:"zza2cw"}],["path",{d:"M16 14.639V21",key:"1s85h0"}],["path",{d:"M20 10.656V21",key:"q45596"}],["path",{d:"m22 3-8.646 8.646a.5.5 0 0 1-.708 0L9.354 8.354a.5.5 0 0 0-.707 0L2 15",key:"1fw8x9"}],["path",{d:"M4 18.463V21",key:"1otddq"}],["path",{d:"M8 14.656V21",key:"1t2idw"}]]),o=(0,n.default)("combine",[["path",{d:"M14 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"1l7d7l"}],["path",{d:"M19 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"9955pe"}],["path",{d:"m7 15 3 3",key:"4hkfgk"}],["path",{d:"m7 21 3-3H5a2 2 0 0 1-2-2v-2",key:"1xljwe"}],["rect",{x:"14",y:"14",width:"7",height:"7",rx:"1",key:"1cdgtw"}],["rect",{x:"3",y:"3",width:"7",height:"7",rx:"1",key:"zi3rio"}]]);var d=e.i(55677);let c=(0,n.default)("circle-dollar-sign",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]]);var h=e.i(397142),u=e.i(809584),x=e.i(567745),m=e.i(634398),f=e.i(269846),p=e.i(150285),j=e.i(93384),b=e.i(835079),g=e.i(259911),v=e.i(902434),v=v,w=e.i(758925),k=e.i(927735);let y=(0,n.default)("messages-square",[["path",{d:"M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z",key:"1n2ejm"}],["path",{d:"M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1",key:"1qfcsi"}]]);var C=e.i(549676);let N=(0,n.default)("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]),S=(0,n.default)("panel-right",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);var L=e.i(966473),A=e.i(166794),T=e.i(986206),D=e.i(584026),M=e.i(328623),E=e.i(443537),$=e.i(604139);let R=(0,n.default)("timer-reset",[["path",{d:"M10 2h4",key:"n1abiw"}],["path",{d:"M12 14v-4",key:"1evpnu"}],["path",{d:"M4 13a8 8 0 0 1 8-7 8 8 0 1 1-5.3 14L4 17.6",key:"1ts96g"}],["path",{d:"M9 17H4v5",key:"8t5av"}]]);var I=e.i(932333),P=e.i(747925),z=e.i(263676),W=e.i(948148),q=e.i(519455),B=e.i(586011),_=e.i(975157),H=e.i(746336),V=e.i(560972),V=V;function O({className:e,...i}){return(0,s.jsx)("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",className:(0,_.cn)(e),...i})}function U({className:e,...i}){return(0,s.jsx)("ol",{"data-slot":"breadcrumb-list",className:(0,_.cn)("flex flex-wrap items-center gap-1.5 text-sm wrap-break-word text-muted-foreground",e),...i})}function F({className:e,...i}){return(0,s.jsx)("li",{"data-slot":"breadcrumb-item",className:(0,_.cn)("inline-flex items-center gap-1",e),...i})}function K({asChild:e,className:i,...t}){let a=e?B.Slot.Root:"a";return(0,s.jsx)(a,{"data-slot":"breadcrumb-link",className:(0,_.cn)("transition-colors hover:text-foreground",i),...t})}function G({className:e,...i}){return(0,s.jsx)("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:(0,_.cn)("font-normal text-foreground",e),...i})}function X({children:e,className:i,...t}){return(0,s.jsx)("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:(0,_.cn)("[&>svg]:size-3.5",i),...t,children:e??(0,s.jsx)(H.ChevronRightIcon,{})})}function Q({className:e,...i}){return(0,s.jsxs)("span",{"data-slot":"breadcrumb-ellipsis",role:"presentation","aria-hidden":"true",className:(0,_.cn)("flex size-5 items-center justify-center [&>svg]:size-4",e),...i,children:[(0,s.jsx)(V.default,{}),(0,s.jsx)("span",{className:"sr-only",children:"More"})]})}let Z=(0,n.default)("list-x",[["path",{d:"M16 5H3",key:"m91uny"}],["path",{d:"M11 12H3",key:"51ecnj"}],["path",{d:"M16 19H3",key:"zzsher"}],["path",{d:"m15.5 9.5 5 5",key:"ytk86i"}],["path",{d:"m20.5 9.5-5 5",key:"17o44f"}]]),J=(0,n.default)("volume-2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]),Y=(0,n.default)("volume-x",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]]);var ee=e.i(755146),es=e.i(225913);let ei="(max-width: 767px)";function et(e){let s=window.matchMedia(ei);return s.addEventListener("change",e),()=>s.removeEventListener("change",e)}function ea(){return window.matchMedia(ei).matches}function en(){return!1}e.i(793479),e.i(772436);var er=e.i(980376);e.i(302747);var el=e.i(746798);let eo=i.createContext(null);function ed(){let e=i.useContext(eo);if(!e)throw Error("useSidebar must be used within a SidebarProvider.");return e}function ec({defaultOpen:e=!0,open:t,onOpenChange:a,cookieName:n="sidebar_state",keyboardShortcut:r="b",className:l,style:o,children:d,...c}){let h=i.useSyncExternalStore(et,ea,en),[u,x]=i.useState(!1),[m,f]=i.useState(e),p=t??m,j=i.useCallback(e=>{let s="function"==typeof e?e(p):e;a?a(s):f(s),document.cookie=`${n}=${s}; path=/; max-age=604800`},[n,a,p]),b=i.useCallback(()=>h?x(e=>!e):j(e=>!e),[h,j,x]);i.useEffect(()=>{if(null===r)return;let e=e=>{e.key.toLowerCase()===r.toLowerCase()&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),b())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[r,b]);let g=p?"expanded":"collapsed",v=i.useMemo(()=>({state:g,open:p,setOpen:j,isMobile:h,openMobile:u,setOpenMobile:x,toggleSidebar:b}),[g,p,j,h,u,x,b]);return(0,s.jsx)(eo.Provider,{value:v,children:(0,s.jsx)("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":"16rem","--sidebar-width-icon":"3rem",...o},className:(0,_.cn)("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",l),...c,children:d})})}function eh({side:e="left",variant:i="sidebar",collapsible:t="offcanvas",mobileTitle:a="Sidebar",mobileDescription:n="Displays the mobile sidebar.",className:r,children:l,dir:o,...d}){let{isMobile:c,state:h,openMobile:u,setOpenMobile:x}=ed();return"none"===t?(0,s.jsx)("div",{"data-slot":"sidebar",className:(0,_.cn)("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",r),...d,children:l}):c?(0,s.jsx)(er.Sheet,{open:u,onOpenChange:x,...d,children:(0,s.jsxs)(er.SheetContent,{dir:o,"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":"18rem"},side:e,children:[(0,s.jsxs)(er.SheetHeader,{className:"sr-only",children:[(0,s.jsx)(er.SheetTitle,{children:a}),(0,s.jsx)(er.SheetDescription,{children:n})]}),(0,s.jsx)("div",{className:"flex h-full w-full flex-col",children:l})]})}):(0,s.jsxs)("div",{className:"group peer hidden text-sidebar-foreground md:block","data-state":h,"data-collapsible":"collapsed"===h?t:"","data-variant":i,"data-side":e,"data-slot":"sidebar",children:[(0,s.jsx)("div",{"data-slot":"sidebar-gap",className:(0,_.cn)("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180","floating"===i||"inset"===i?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),(0,s.jsx)("div",{"data-slot":"sidebar-container","data-side":e,className:(0,_.cn)("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex","floating"===i||"inset"===i?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...d,children:(0,s.jsx)("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border",children:l})})]})}function eu({className:e,...i}){return(0,s.jsx)("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:(0,_.cn)("flex flex-col gap-2 p-2",e),...i})}function ex({className:e,...i}){return(0,s.jsx)("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:(0,_.cn)("flex flex-col gap-2 p-2",e),...i})}function em({className:e,...i}){return(0,s.jsx)("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:(0,_.cn)("no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...i})}function ef({className:e,...i}){return(0,s.jsx)("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:(0,_.cn)("relative flex w-full min-w-0 flex-col p-2",e),...i})}function ep({className:e,asChild:i=!1,...t}){let a=i?B.Slot.Root:"div";return(0,s.jsx)(a,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:(0,_.cn)("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",e),...t})}function ej({className:e,...i}){return(0,s.jsx)("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:(0,_.cn)("w-full text-sm",e),...i})}function eb({className:e,...i}){return(0,s.jsx)("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:(0,_.cn)("flex w-full min-w-0 flex-col gap-0",e),...i})}function eg({className:e,...i}){return(0,s.jsx)("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:(0,_.cn)("group/menu-item relative",e),...i})}let ev=(0,es.cva)("peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function ew({asChild:e=!1,isActive:i=!1,variant:t="default",size:a="default",tooltip:n,className:r,...l}){let o=e?B.Slot.Root:"button",{isMobile:d,state:c}=ed(),h=(0,s.jsx)(o,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":a,"data-active":i,className:(0,_.cn)(ev({variant:t,size:a}),r),...l});return n?("string"==typeof n&&(n={children:n}),(0,s.jsxs)(el.Tooltip,{children:[(0,s.jsx)(el.TooltipTrigger,{asChild:!0,children:h}),(0,s.jsx)(el.TooltipContent,{side:"right",align:"center",hidden:"collapsed"!==c||d,...n})]})):h}var ek=e.i(520133),ey=e.i(637611),eC=e.i(689664),eN=e.i(482022),eS=e.i(573474),eL=e.i(861745),eA=e.i(940276),eT=e.i(487812),eD=e.i(816484),eM=e.i(360583),eE=e.i(171502);function e$({notification:e,arriving:t=!1,onDelete:a,onDismiss:n}){let r=(0,W.useTranslations)("notifications"),l=(0,eL.useLocale)(),o=e.highlightColor,[d,c]=(0,i.useState)(!1),h=(0,i.useRef)(null),u=(0,eM.formatDateValue)(e.createdAt,"long",{locale:l});return(0,i.useEffect)(()=>()=>{h.current&&window.clearTimeout(h.current)},[]),(0,s.jsxs)(eT.ContextMenu,{onOpenChange:e=>{e||c(!1)},children:[(0,s.jsx)(eT.ContextMenuTrigger,{asChild:!0,children:(0,s.jsxs)("article",{className:(0,_.cn)("group relative w-full overflow-hidden rounded-none border border-x-0 border-t-0 border-l-4 bg-sidebar-accent/30 transition-all duration-[1400ms] hover:bg-sidebar-accent/60",o&&eE.worktreeHighlightBackgroundClasses[o],o&&eE.worktreeHighlightAccentClasses[o],t&&"motion-safe:animate-in motion-safe:slide-in-from-top-2 bg-primary/20 ring-1 ring-primary/30",t&&o&&eE.worktreeHighlightArrivalClasses[o]),children:[(0,s.jsxs)(ek.Link,{className:"block min-w-0 px-3 py-2.5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset",href:e.href,children:[(0,s.jsx)("p",{className:"truncate pr-8 text-sm font-medium",children:e.title}),(0,s.jsx)("p",{className:"mt-0.5 line-clamp-2 text-xs text-muted-foreground",children:e.body}),(0,s.jsx)(eD.DateTime,{className:"mt-1.5 block text-[11px] text-muted-foreground",hover:!1,kind:"relative",value:e.createdAt})]}),n&&(0,s.jsx)(q.Button,{"aria-label":r("dismissOne",{title:e.title}),className:"absolute top-1 right-1.5 size-7 opacity-100 transition-opacity md:opacity-0 md:group-hover:opacity-100 md:group-focus-within:opacity-100",onClick:()=>n(e.id),size:"icon-sm",title:r("dismiss"),type:"button",variant:"ghost",children:(0,s.jsx)(z.X,{className:"size-3.5"})})]})}),(0,s.jsxs)(eT.ContextMenuContent,{className:"w-64",children:[(0,s.jsx)(eT.ContextMenuLabel,{className:"font-normal whitespace-normal",children:u}),(0,s.jsx)(eT.ContextMenuSeparator,{}),"BUILD"===e.resourceKind&&(0,s.jsx)(eT.ContextMenuItem,{asChild:!0,children:(0,s.jsxs)(ek.Link,{href:e.href,children:[(0,s.jsx)(eN.ExternalLink,{})," ",r("openBuild")]})}),e.worktreeId&&(0,s.jsx)(eT.ContextMenuItem,{asChild:!0,children:(0,s.jsxs)(ek.Link,{href:(0,eA.worktreeDetailHref)(e.worktreeId),children:[(0,s.jsx)(f.GitBranch,{})," ",r("openWorktree")]})}),(0,s.jsx)(eT.ContextMenuSeparator,{}),(0,s.jsxs)(eT.ContextMenuItem,{disabled:!n,onSelect:()=>n?.(e.id),children:[(0,s.jsx)(z.X,{})," ",r("dismiss")]}),(0,s.jsxs)(eT.ContextMenuItem,{disabled:!a,onSelect:s=>{if(!d){s.preventDefault(),c(!0),h.current&&window.clearTimeout(h.current),h.current=window.setTimeout(()=>{h.current=null,c(!1)},5e3);return}h.current&&window.clearTimeout(h.current),h.current=null,c(!1),a?.(e.id)},variant:d?"destructive":"default",children:[d?(0,s.jsx)(eC.Check,{}):(0,s.jsx)(eS.Trash2,{}),r(d?"confirmDelete":"delete")]})]})]})}var eR=e.i(302493);let eI="notification-sound-enabled";function eP(){try{let e=window.AudioContext??window.webkitAudioContext;if(!e)return;let s=new e,i=s.createGain(),t=s.createOscillator();t.type="sine",t.frequency.setValueAtTime(660,s.currentTime),t.frequency.exponentialRampToValueAtTime(880,s.currentTime+.12),i.gain.setValueAtTime(1e-4,s.currentTime),i.gain.exponentialRampToValueAtTime(.12,s.currentTime+.015),i.gain.exponentialRampToValueAtTime(1e-4,s.currentTime+.24),t.connect(i),i.connect(s.destination),t.start(),t.stop(s.currentTime+.25),t.addEventListener("ended",()=>void s.close())}catch{}}function ez(){let{setOpenMobile:e}=ed(),i=(0,W.useTranslations)("shell");return(0,s.jsx)(q.Button,{"aria-label":i("closeNotifications"),className:"size-9 touch-manipulation md:hidden",onClick:()=>e(!1),size:"icon",type:"button",variant:"ghost",children:(0,s.jsx)(z.X,{})})}function eW(){let e=(0,W.useTranslations)("notifications"),t=(0,W.useTranslations)("shell"),[a,n]=(0,i.useState)([]),[r,l]=(0,i.useState)(new Set),[o,d]=(0,i.useState)(!1),[c,h]=(0,i.useState)(!1),u=(0,i.useRef)(!1),x=(0,i.useRef)(new Map),m=(0,i.useCallback)(async()=>{try{let e=await (0,ey.controlPlaneRequest)(`query SidebarNotifications {
2
+ sidebarNotifications(limit: 50) { ${eR.APP_NOTIFICATION_FIELDS} }
3
+ }`);n(e.sidebarNotifications)}catch{}finally{h(!0)}},[]);(0,i.useEffect)(()=>{let e=x.current,s=window.setTimeout(()=>{let e="true"===window.localStorage.getItem(eI);d(e),u.current=e},0),i=window.setTimeout(()=>void m(),0),t=(0,ey.controlPlaneSubscriptions)().subscribe({query:`subscription NotificationsSidebarChanged {
4
+ notificationsChanged {
5
+ kind notificationId
6
+ notification { ${eR.APP_NOTIFICATION_FIELDS} }
7
+ }
8
+ }`},{next:e=>{let s=e.data?.notificationsChanged;if(!s)return;let i=s.notification;if("CREATED"===s.kind&&i){if(i.browserRequested&&function(e){if("Notification"in window&&"granted"===window.Notification.permission)try{let s=new window.Notification(e.title,{body:e.body,icon:"/icon-192.png",tag:`browser:${e.id}`});s.onclick=()=>{window.focus(),window.location.assign(e.href),s.close()}}catch{}}(i),i.sidebarRequested){n(e=>[i,...e.filter(e=>e.id!==i.id)].slice(0,50)),l(e=>new Set(e).add(i.id));let e=window.setTimeout(()=>{x.current.delete(i.id),l(e=>{let s=new Set(e);return s.delete(i.id),s})},1400);x.current.set(i.id,e),u.current&&eP()}return}m()},error:()=>void 0,complete:()=>void 0});return()=>{window.clearTimeout(i),window.clearTimeout(s),t(),e.forEach(e=>window.clearTimeout(e)),e.clear()}},[m]);let f=async e=>{n(s=>s.filter(s=>s.id!==e));try{await (0,ey.controlPlaneRequest)("mutation DismissNotification($id: ID!) { dismissNotification(id: $id) }",{id:e})}catch{await m()}},p=async e=>{n(s=>s.filter(s=>s.id!==e));try{await (0,ey.controlPlaneRequest)(`mutation DeleteSidebarNotification($selection: NotificationSelectionInput!) {
9
+ deleteNotifications(selection: $selection)
10
+ }`,{selection:{ids:[e]}})}catch{await m()}},j=async()=>{try{await (0,ey.controlPlaneRequest)(`mutation DismissAllSidebarNotifications {
11
+ dismissAllSidebarNotifications
12
+ }`),n([])}catch{await m()}};return(0,s.jsxs)(eh,{collapsible:"offcanvas",mobileDescription:t("notificationsDescription"),mobileTitle:t("notifications"),side:"right",children:[(0,s.jsx)(eu,{className:"border-b border-sidebar-border pt-[max(0.5rem,env(safe-area-inset-top))] md:pt-2",children:(0,s.jsxs)("div",{className:"flex min-h-10 items-center gap-1 px-2",children:[(0,s.jsx)(ek.Link,{className:"mr-auto text-sm font-semibold hover:underline",href:"/notifications",children:t("notifications")}),(0,s.jsx)(q.Button,{"aria-label":e(o?"mute":"unmute"),onClick:()=>{let e=!o;d(e),u.current=e,window.localStorage.setItem(eI,String(e)),e&&eP()},size:"icon-sm",title:e(o?"mute":"unmute"),type:"button",variant:"ghost",children:o?(0,s.jsx)(J,{}):(0,s.jsx)(Y,{})}),(0,s.jsxs)(ee.DropdownMenu,{children:[(0,s.jsx)(ee.DropdownMenuTrigger,{asChild:!0,children:(0,s.jsx)(q.Button,{"aria-label":e("clearAll"),disabled:!a.length,size:"icon-sm",title:e("clearAll"),type:"button",variant:"ghost",children:(0,s.jsx)(Z,{})})}),(0,s.jsxs)(ee.DropdownMenuContent,{align:"end",className:"w-64",children:[(0,s.jsx)(ee.DropdownMenuLabel,{className:"font-normal whitespace-normal leading-snug",children:e("clearSidebarDescription")}),(0,s.jsx)(ee.DropdownMenuSeparator,{}),(0,s.jsxs)(ee.DropdownMenuItem,{onSelect:()=>void j(),variant:"destructive",children:[(0,s.jsx)(Z,{})," ",e("clearSidebar")]})]})]}),(0,s.jsx)(ez,{})]})}),(0,s.jsx)(em,{className:"p-0",children:(0,s.jsxs)("div",{className:"flex flex-col gap-0","aria-live":"polite",children:[a.map(e=>(0,s.jsx)(e$,{arriving:r.has(e.id),notification:e,onDelete:e=>void p(e),onDismiss:e=>void f(e)},e.id)),c&&0===a.length&&(0,s.jsx)("p",{className:"px-3 py-8 text-center text-sm text-muted-foreground",children:e("sidebarEmpty")})]})})]})}var eq=e.i(487486),eB=e.i(337822),e_=e.i(987968),eH=e.i(539494),eV=e.i(261751);let eO={CRITICAL:8,ERROR:7,DELETING:6,CLEANUP_REQUIRED:5,PRESSURE:4,STALE:3,DISABLED:2,IDLE:1},eU="border-amber-500/30 bg-amber-500/10 text-amber-700 hover:bg-amber-500/20 hover:text-amber-700 dark:border-amber-500/30 dark:bg-amber-500/10 dark:text-amber-300 dark:hover:bg-amber-500/20 dark:hover:text-amber-300";function eF(){let e=(0,W.useTranslations)("diskSpace"),t=(0,W.useTranslations)("shell"),a=(0,eL.useLocale)(),[n,r]=(0,i.useState)(null),[l,o]=(0,i.useState)([]),[h,u]=(0,i.useState)(null),x=(0,i.useCallback)(async()=>{try{let e=await (0,ey.controlPlaneRequest)(`query SidebarStatus {
13
+ sidebarStatus {
14
+ usageToday { totalCost collectedAt }
15
+ activity { plans sessions builds workflows }
16
+ diskSpace { ${eH.DISK_SPACE_FIELDS} }
17
+ }
18
+ derivedDataDeletionHistory(first: 5) {
19
+ items { id agentName folderName source deletedAt }
20
+ }
21
+ }`);r(e.sidebarStatus),o(e.derivedDataDeletionHistory.items)}catch{}},[]);(0,i.useEffect)(()=>{let e=window.setTimeout(()=>void x(),0),s=(0,ey.controlPlaneSubscriptions)().subscribe({query:"subscription SidebarStatusChanged { sidebarStatusChanged }"},{next:()=>void x(),error:()=>void 0,complete:()=>void 0}),i=window.setInterval(()=>void x(),6e4);return()=>{window.clearTimeout(e),s(),window.clearInterval(i)}},[x]);let m=(0,i.useMemo)(()=>n?.diskSpace.agents.filter(e=>e.enabled)??[],[n]),f=(0,i.useMemo)(()=>[...n?.diskSpace.agents??[]].sort((e,s)=>eO[s.status]-eO[e.status])[0]?.status??"STALE",[n]),p=async(e,s)=>{u(e);try{await (0,ey.controlPlaneRequest)(`mutation SidebarPressureMode($agentId: ID!, $enabled: Boolean!) {
22
+ setAgentDiskSpacePressureMode(agentId: $agentId, enabled: $enabled) { manualPressureMode }
23
+ }`,{agentId:e,enabled:s}),await x()}finally{u(null)}},b=[{key:"plans",href:"/plans",icon:d.ClipboardList},{key:"sessions",href:"/sessions",icon:y},{key:"builds",href:"/builds",icon:j.Hammer},{key:"workflows",href:"/workflows",icon:I.Waypoints}];return(0,s.jsxs)("div",{className:"space-y-2 border-t border-sidebar-border p-2",children:[(0,s.jsxs)(ek.Link,{className:"flex items-center justify-between rounded-md px-2 py-1.5 text-xs hover:bg-sidebar-accent",href:"/usage",children:[(0,s.jsxs)("span",{className:"flex items-center gap-2",children:[(0,s.jsx)(c,{className:"size-3.5"}),e("usageToday")]}),(0,s.jsx)("span",{className:"font-medium tabular-nums",children:n?.usageToday.totalCost==null?"—":new Intl.NumberFormat(a,{style:"currency",currency:"USD"}).format(n.usageToday.totalCost)})]}),(0,s.jsx)("div",{className:"grid grid-cols-2 gap-1",children:b.map(({key:e,href:i,icon:a})=>(0,s.jsxs)(ek.Link,{className:"flex items-center justify-between rounded-md px-2 py-1 text-xs hover:bg-sidebar-accent",href:i,children:[(0,s.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,s.jsx)(a,{className:"size-3.5"}),t(e)]}),(0,s.jsx)("span",{className:"tabular-nums",children:n?.activity[e]??0})]},e))}),(0,s.jsxs)(eB.Popover,{children:[(0,s.jsx)(eB.PopoverTrigger,{asChild:!0,children:(0,s.jsx)(q.Button,{className:"h-auto w-full justify-start px-2 py-2",variant:"ghost",children:(0,s.jsxs)("div",{className:"min-w-0 flex-1 text-left",children:[(0,s.jsx)("p",{className:"text-xs font-medium",children:e("freeDiskSpace")}),1===m.length&&(0,eH.monitoredVolume)(m[0])?(0,s.jsx)("div",{className:"mt-1",children:(0,s.jsx)(eV.VolumeBar,{compact:!0,hideLabel:!0,volume:(0,eH.monitoredVolume)(m[0])})}):m.length>1?(0,s.jsx)("div",{className:"mt-1 flex flex-wrap gap-1.5",children:m.map(i=>{var t;let n=(0,eH.monitoredVolume)(i);if(!n)return null;let r=100-(n.totalBytes>0?Math.max(0,Math.min(100,(n.totalBytes-n.freeBytes)/n.totalBytes*100)):0);return(0,s.jsx)("span",{"aria-label":`${i.agent.name} \xb7 ${e("role.DERIVED_DATA")}: ${(0,eV.formatDiskBytes)(n.freeBytes,a)} ${e("free")}`,className:"grid size-5 place-items-center rounded-full",style:{background:`conic-gradient(var(--muted) 0% ${r}%, ${"CRITICAL"===(t=i.status)||"ERROR"===t?"var(--destructive)":["DELETING","CLEANUP_REQUIRED","PRESSURE"].includes(t)?"#f59e0b":"STALE"===t||"DISABLED"===t?"var(--muted-foreground)":"#10b981"} ${r}% 100%)`},title:`${i.agent.name} \xb7 ${e("role.DERIVED_DATA")}`,children:(0,s.jsx)("span",{className:"size-3 rounded-full bg-sidebar"})},i.agent.id)})}):(0,s.jsx)("p",{className:"text-[11px] text-muted-foreground",children:e("noEnabledAgents")})]})})}),(0,s.jsxs)(eB.PopoverContent,{align:"start",className:"max-h-[min(70vh,42rem)] w-[min(26rem,calc(100vw-1rem))] overflow-y-auto",side:"top",children:[(0,s.jsxs)(eB.PopoverHeader,{children:[(0,s.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,s.jsx)(eB.PopoverTitle,{children:(0,s.jsx)(ek.Link,{className:"hover:underline",href:"/build-data",children:e("freeDiskSpace")})}),(0,s.jsx)(eq.Badge,{className:"PRESSURE"===f?eU:(0,eV.diskStatusColor)(f),variant:"PRESSURE"===f?"outline":"secondary",children:e(`status.${f}`)})]}),n&&(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:e("thresholdSummary",{normal:n.diskSpace.settings.normalThresholdGiB,pressure:n.diskSpace.settings.pressureThresholdGiB})})]}),n?n.diskSpace.agents.map(i=>(0,s.jsxs)("div",{className:"space-y-2 rounded-md border p-2.5",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,s.jsx)(ek.Link,{className:"font-medium hover:underline",href:`/agents/${i.agent.id}`,children:i.agent.name}),(0,s.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,s.jsxs)(q.Button,{"aria-pressed":i.manualPressureMode,className:i.manualPressureMode?eU:void 0,disabled:!i.enabled||null!==h,onClick:()=>void p(i.agent.id,!i.manualPressureMode),size:"xs",type:"button",variant:"outline",children:[e("pressureModeControl"),h===i.agent.id&&(0,s.jsx)(e_.Spinner,{})]}),(0,s.jsx)(eq.Badge,{className:"PRESSURE"===i.status?eU:void 0,variant:"outline",children:e(`status.${i.status}`)})]})]}),i.volumes.map(e=>(0,s.jsx)(eV.VolumeBar,{compact:!0,volume:e},e.id)),(i.lastError||i.warnings.length>0)&&(0,s.jsx)("p",{className:"text-xs text-destructive",children:[i.lastError,...i.warnings].filter(Boolean).join(" · ")})]},i.agent.id)):(0,s.jsx)(e_.Spinner,{}),(0,s.jsxs)("div",{className:"space-y-1.5",children:[(0,s.jsx)("p",{className:"text-xs font-medium",children:e("recentDeletions")}),0===l.length?(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:e("noRecentDeletions")}):l.map(e=>(0,s.jsxs)("div",{className:"grid grid-cols-[1fr_auto] gap-2 text-xs",children:[(0,s.jsxs)("span",{className:"min-w-0 truncate",children:[e.folderName," · ",e.agentName]}),(0,s.jsx)("span",{className:"text-muted-foreground",children:new Date(e.deletedAt).toLocaleDateString(a)})]},e.id))]})]})]})]})}let eK={actions:"actions","actions-cache":"actionsCache",agents:"agents","analytics-events":"analyticsEvents","build-data":"buildData",builds:"builds",cache:"cache",codebases:"codebases",comments:"comments",commands:"commands","console-logs":"consoleLogs",costs:"costs",coverage:"coverage",credentials:"credentials",devices:"devices",drafts:"drafts",edit:"edit",enroll:"enroll",groups:"groups",jira:"jira",new:"new",notifications:"notifications",plans:"plans",polling:"polling","provisioning-profiles":"provisioningProfiles","pull-requests":"pullRequests","push-notifications":"pushNotifications",repositories:"repositories",runs:"runs",sessions:"sessions",settings:"settings",skills:"skills",sync:"sync",tickets:"tickets",tools:"tools","unified-events":"unifiedEvents",usage:"usage",workflows:"workflows",worktrees:"worktrees"},eG={jobs:{href:"/agents",labelKey:"agents"},runs:{href:"/drafts",labelKey:"drafts"}},eX=new Set(["/codebases/repositories","/commands/new","/commands/runs","/devices/enroll","/jira/cache","/jira/cache/tickets","/jira/tickets","/runs/new","/skills/groups","/skills/sync","/workflows/new","/workflows/runs"]),eQ=[/^\/builds\/[^/]+\/coverage$/,/^\/commands\/(?!new(?:\/|$)|runs(?:\/|$))[^/]+\/edit$/,/^\/workflows\/(?!new(?:\/|$)|runs(?:\/|$))[^/]+\/edit$/],eZ=new Set(["/actions","/actions-cache","/agents","/analytics-events","/build-data","/builds","/codebases","/commands","/commands/new","/comments","/console-logs","/costs","/credentials","/devices","/devices/enroll","/drafts","/jira/cache","/jira/tickets","/notifications","/plans","/polling","/provisioning-profiles","/pull-requests","/push-notifications","/sessions","/settings","/skills","/skills/groups","/tools","/unified-events","/usage","/workflows","/workflows/new","/worktrees"]),eJ=[/^\/agents\/[^/]+$/,/^\/builds\/[^/]+$/,/^\/codebases\/(?!repositories(?:\/|$))[^/]+$/,/^\/devices\/(?!enroll$)[^/]+$/,/^\/jira\/cache\/tickets\/[^/]+$/,/^\/jira\/tickets\/[^/]+$/,/^\/plans\/[^/]+$/,/^\/provisioning-profiles\/[^/]+$/,/^\/sessions\/[^/]+$/,/^\/skills\/(?!groups(?:\/|$)|sync(?:\/|$))[^/]+$/,/^\/skills\/groups\/[^/]+$/,/^\/workflows\/(?!new$|runs(?:\/|$))[^/]+$/,/^\/worktrees\/[^/]+$/];function eY({children:e,rightDefaultOpen:i}){let t=ed();return(0,s.jsx)(ec,{cookieName:"ade_sidebar_right",defaultOpen:i,keyboardShortcut:null,className:"h-full min-h-0 min-w-0 flex-1 overflow-hidden",children:(0,s.jsx)(e0,{leftSidebar:t,children:e})})}function e0({children:e,leftSidebar:i}){let t=ed();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"relative flex h-full min-h-0 min-w-0 w-full flex-1 flex-col bg-background","data-slot":"sidebar-inset",children:[(0,s.jsx)(e1,{leftSidebar:i,rightSidebar:t}),(0,s.jsx)("main",{className:"min-h-0 w-full flex-1 overflow-y-auto overscroll-contain [-webkit-overflow-scrolling:touch]",children:(0,s.jsx)("div",{className:"w-full p-4 pb-[calc(1rem+env(safe-area-inset-bottom))] sm:p-6 sm:pb-[calc(1.5rem+env(safe-area-inset-bottom))] [&>*]:!mx-0 [&>*]:!w-full [&>*]:!max-w-none","data-slot":"page-content",children:e})})]}),(0,s.jsx)(eW,{})]})}function e1({leftSidebar:e,rightSidebar:i}){let t=(0,W.useTranslations)("shell"),a=e.isMobile?e.openMobile:e.open,n=i.isMobile?i.openMobile:i.open;return(0,s.jsxs)("header",{className:"sticky top-0 z-30 shrink-0 border-b bg-background/90 backdrop-blur-xl backdrop-saturate-150 supports-backdrop-filter:bg-background/70",children:[(0,s.jsx)("div",{"aria-hidden":"true",className:"h-[env(safe-area-inset-top)]"}),(0,s.jsxs)("div",{className:"flex h-14 items-center gap-2 pr-[max(0.75rem,env(safe-area-inset-right))] pl-[max(0.75rem,env(safe-area-inset-left))] sm:pr-[max(1rem,env(safe-area-inset-right))] sm:pl-[max(1rem,env(safe-area-inset-left))]",children:[(0,s.jsx)(e5,{expanded:a,hideLabel:t("hideNavigation"),onClick:e.toggleSidebar,showLabel:t("showNavigation"),side:"left"}),(0,s.jsx)(e4,{}),(0,s.jsx)(e5,{expanded:n,hideLabel:t("hideNotifications"),onClick:i.toggleSidebar,showLabel:t("showNotifications"),side:"right"})]})]})}function e2({breadcrumb:e,className:i}){let t=e.isCurrent?"block min-w-0 truncate":"block max-w-48 truncate lg:max-w-64";return(0,s.jsx)(F,{className:`min-w-0 ${i??""}`,children:e.isCurrent?(0,s.jsx)(G,{className:t,children:e.label}):e.href?(0,s.jsx)(K,{asChild:!0,className:t,children:(0,s.jsx)(ek.Link,{href:e.href,children:e.label})}):(0,s.jsx)("span",{className:`${t} text-muted-foreground`,children:e.label})})}function e4(){var e;let t,a=(0,ek.usePathname)(),n=(0,W.useTranslations)("shell"),r=(e=e=>n(e),0===(t=(a.split(/[?#]/,1)[0]||"/").split("/").filter(Boolean)).length?[{isCurrent:!0,label:e("welcome")}]:t.map((s,i)=>{let a=i===t.length-1,n=0===i?eG[s]:void 0,r=`/${t.slice(0,i+1).join("/")}`,l=n?.labelKey??function(e,s,i){let t=eK[e];if(t)return 0===s||eX.has(i)||eQ.some(e=>e.test(i))?t:void 0}(s,i,r);return{href:a?void 0:n?.href??(eZ.has(r)||eJ.some(e=>e.test(r))?r:void 0),isCurrent:a,label:l?e(l):function(e){try{return decodeURIComponent(e)}catch{return e}}(s)}})),l=r.length-1;return(0,s.jsx)(O,{"aria-label":n("breadcrumbLabel"),className:"min-w-0 flex-1 overflow-hidden pl-1",children:(0,s.jsx)(U,{className:"flex-nowrap overflow-hidden",children:r.length<=2?r.map((e,t)=>(0,s.jsxs)(i.Fragment,{children:[t>0&&(0,s.jsx)(X,{}),(0,s.jsx)(e2,{breadcrumb:e,className:t===l?"flex-1":"shrink-0"})]},`${e.label}:${t}`)):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(e2,{breadcrumb:r[0],className:"shrink-0"}),(0,s.jsx)(X,{className:"sm:hidden"}),(0,s.jsx)(F,{className:"sm:hidden",children:(0,s.jsx)(Q,{})}),(0,s.jsx)(X,{className:"sm:hidden"}),r.slice(1,l).map((e,t)=>(0,s.jsxs)(i.Fragment,{children:[(0,s.jsx)(X,{className:"hidden sm:inline-flex"}),(0,s.jsx)(e2,{breadcrumb:e,className:"hidden shrink-0 sm:inline-flex"})]},`${e.label}:${t+1}`)),(0,s.jsx)(X,{className:"hidden sm:inline-flex"}),(0,s.jsx)(e2,{breadcrumb:r[l],className:"flex-1"})]})})})}function e5({expanded:e,hideLabel:i,onClick:t,showLabel:a,side:n}){let r=e?i:a;return(0,s.jsx)(q.Button,{"aria-expanded":e,"aria-label":r,className:"size-10 touch-manipulation",onClick:t,size:"icon-lg",title:r,type:"button",variant:"ghost",children:(0,s.jsx)("left"===n?N:S,{})})}function e6({label:e}){let{setOpenMobile:i}=ed();return(0,s.jsx)(q.Button,{"aria-label":e,className:"ml-auto size-10 touch-manipulation md:hidden",onClick:()=>i(!1),size:"icon-lg",title:e,type:"button",variant:"ghost",children:(0,s.jsx)(z.X,{})})}function e3(){let e=(0,W.useTranslations)("shell"),{isMobile:n,setOpenMobile:N}=ed(),S=(0,ek.usePathname)(),[z,q]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{let e=!1;return(0,ey.controlPlaneRequest)("query CacheServerConfigured { cacheServerSettings { configured } }").then(s=>{e||q(s.cacheServerSettings.configured)}).catch(()=>{e||q(!1)}),()=>{e=!0}},[S]),(0,s.jsxs)(eh,{collapsible:"offcanvas",mobileDescription:e("navigationDescription"),mobileTitle:e("navigation"),side:"left",children:[(0,s.jsx)(eu,{className:"border-b border-sidebar-border pt-[max(0.5rem,env(safe-area-inset-top))] md:pt-2",children:(0,s.jsxs)("div",{className:"flex min-h-10 items-center gap-2 px-2",children:[(0,s.jsx)("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-sidebar-primary text-sidebar-primary-foreground",children:(0,s.jsx)(t.Blocks,{className:"size-4"})}),(0,s.jsx)("span",{className:"text-sm leading-tight font-semibold",children:e("productName")}),(0,s.jsx)(e6,{label:e("closeNavigation")})]})}),(0,s.jsxs)(em,{children:[(0,s.jsxs)(ef,{children:[(0,s.jsx)(ep,{children:e("dashboard")}),(0,s.jsx)(ej,{children:(0,s.jsxs)(eb,{children:[(0,s.jsx)(eg,{children:(0,s.jsx)(ew,{asChild:!0,isActive:"/"===S,children:(0,s.jsxs)(ek.Link,{href:"/",onClick:()=>{n&&N(!1)},children:[(0,s.jsx)(v.default,{}),(0,s.jsx)("span",{children:e("welcome")})]})})}),(0,s.jsx)(eg,{children:(0,s.jsx)(ew,{asChild:!0,isActive:S.startsWith("/notifications"),children:(0,s.jsxs)(ek.Link,{href:"/notifications",onClick:()=>{n&&N(!1)},children:[(0,s.jsx)(r,{}),(0,s.jsx)("span",{children:e("notifications")})]})})}),(0,s.jsx)(eg,{children:(0,s.jsx)(ew,{asChild:!0,isActive:S.startsWith("/agents")||S.startsWith("/jobs"),children:(0,s.jsxs)(ek.Link,{href:"/agents",onClick:()=>{n&&N(!1)},children:[(0,s.jsx)(h.Cpu,{}),(0,s.jsx)("span",{children:e("agents")})]})})}),(0,s.jsx)(eg,{children:(0,s.jsx)(ew,{asChild:!0,isActive:S.startsWith("/workflows"),children:(0,s.jsxs)(ek.Link,{href:"/workflows",onClick:()=>{n&&N(!1)},children:[(0,s.jsx)(I.Waypoints,{}),(0,s.jsx)("span",{children:e("workflows")})]})})}),(0,s.jsx)(eg,{children:(0,s.jsx)(ew,{asChild:!0,isActive:S.startsWith("/commands"),children:(0,s.jsxs)(ek.Link,{href:"/commands",onClick:()=>{n&&N(!1)},children:[(0,s.jsx)($.Terminal,{}),(0,s.jsx)("span",{children:e("commands")})]})})}),(0,s.jsx)(eg,{children:(0,s.jsx)(ew,{asChild:!0,isActive:S.startsWith("/codebases"),children:(0,s.jsxs)(ek.Link,{href:"/codebases",onClick:()=>{n&&N(!1)},children:[(0,s.jsx)(b.FolderGit2,{}),(0,s.jsx)("span",{children:e("codebases")})]})})}),(0,s.jsx)(eg,{children:(0,s.jsx)(ew,{asChild:!0,isActive:S.startsWith("/worktrees"),children:(0,s.jsxs)(ek.Link,{href:"/worktrees",onClick:()=>{n&&N(!1)},children:[(0,s.jsx)(f.GitBranch,{}),(0,s.jsx)("span",{children:e("worktrees")})]})})}),(0,s.jsx)(eg,{children:(0,s.jsx)(ew,{asChild:!0,isActive:S.startsWith("/builds"),children:(0,s.jsxs)(ek.Link,{href:"/builds",onClick:()=>{n&&N(!1)},children:[(0,s.jsx)(j.Hammer,{}),(0,s.jsx)("span",{children:e("builds")})]})})})]})})]}),(0,s.jsxs)(ef,{children:[(0,s.jsx)(ep,{children:e("ai")}),(0,s.jsx)(ej,{children:(0,s.jsxs)(eb,{children:[(0,s.jsx)(eg,{children:(0,s.jsx)(ew,{asChild:!0,isActive:S.startsWith("/plans"),children:(0,s.jsxs)(ek.Link,{href:"/plans",onClick:()=>{n&&N(!1)},children:[(0,s.jsx)(d.ClipboardList,{}),(0,s.jsx)("span",{children:e("plans")})]})})}),(0,s.jsx)(eg,{children:(0,s.jsx)(ew,{asChild:!0,isActive:S.startsWith("/sessions"),children:(0,s.jsxs)(ek.Link,{href:"/sessions",onClick:()=>{n&&N(!1)},children:[(0,s.jsx)(y,{}),(0,s.jsx)("span",{children:e("sessions")})]})})}),(0,s.jsx)(eg,{children:(0,s.jsx)(ew,{asChild:!0,isActive:S.startsWith("/drafts")||S.startsWith("/runs/new"),children:(0,s.jsxs)(ek.Link,{href:"/drafts",onClick:()=>{n&&N(!1)},children:[(0,s.jsx)(g.FilePenLine,{}),(0,s.jsx)("span",{children:e("drafts")})]})})}),(0,s.jsx)(eg,{children:(0,s.jsx)(ew,{asChild:!0,isActive:S.startsWith("/usage"),children:(0,s.jsxs)(ek.Link,{href:"/usage",onClick:()=>{n&&N(!1)},children:[(0,s.jsx)(l,{}),(0,s.jsx)("span",{children:e("usage")})]})})}),(0,s.jsx)(eg,{children:(0,s.jsx)(ew,{asChild:!0,isActive:S.startsWith("/costs"),children:(0,s.jsxs)(ek.Link,{href:"/costs",onClick:()=>{n&&N(!1)},children:[(0,s.jsx)(c,{}),(0,s.jsx)("span",{children:e("costs")})]})})}),(0,s.jsx)(eg,{children:(0,s.jsx)(ew,{asChild:!0,isActive:S.startsWith("/skills"),children:(0,s.jsxs)(ek.Link,{href:"/skills",onClick:()=>{n&&N(!1)},children:[(0,s.jsx)(M.Sparkles,{}),(0,s.jsx)("span",{children:e("skills")})]})})})]})})]}),(0,s.jsxs)(ef,{children:[(0,s.jsx)(ep,{children:e("debugging")}),(0,s.jsx)(ej,{children:(0,s.jsxs)(eb,{children:[(0,s.jsx)(eg,{children:(0,s.jsx)(ew,{asChild:!0,isActive:S.startsWith("/push-notifications"),children:(0,s.jsxs)(ek.Link,{href:"/push-notifications",onClick:()=>{n&&N(!1)},children:[(0,s.jsx)(a.BellRing,{}),(0,s.jsx)("span",{children:e("pushNotifications")})]})})}),(0,s.jsx)(eg,{children:(0,s.jsx)(ew,{asChild:!0,isActive:S.startsWith("/console-logs"),children:(0,s.jsxs)(ek.Link,{href:"/console-logs",onClick:()=>{n&&N(!1)},children:[(0,s.jsx)($.Terminal,{}),(0,s.jsx)("span",{children:e("consoleLogs")})]})})}),(0,s.jsx)(eg,{children:(0,s.jsx)(ew,{asChild:!0,isActive:S.startsWith("/analytics-events"),children:(0,s.jsxs)(ek.Link,{href:"/analytics-events",onClick:()=>{n&&N(!1)},children:[(0,s.jsx)(C.MousePointerClick,{}),(0,s.jsx)("span",{children:e("analyticsEvents")})]})})}),(0,s.jsx)(eg,{children:(0,s.jsx)(ew,{asChild:!0,isActive:S.startsWith("/unified-events"),children:(0,s.jsxs)(ek.Link,{href:"/unified-events",onClick:()=>{n&&N(!1)},children:[(0,s.jsx)(o,{}),(0,s.jsx)("span",{children:e("unifiedEvents")})]})})})]})})]}),(0,s.jsxs)(ef,{children:[(0,s.jsx)(ep,{children:e("github")}),(0,s.jsx)(ej,{children:(0,s.jsxs)(eb,{children:[(0,s.jsx)(eg,{children:(0,s.jsx)(ew,{asChild:!0,isActive:S.startsWith("/pull-requests"),children:(0,s.jsxs)(ek.Link,{href:"/pull-requests",onClick:()=>{n&&N(!1)},children:[(0,s.jsx)(m.GitPullRequest,{}),(0,s.jsx)("span",{children:e("pullRequests")})]})})}),(0,s.jsx)(eg,{children:(0,s.jsx)(ew,{asChild:!0,isActive:"/actions"===S||S.startsWith("/actions/"),children:(0,s.jsxs)(ek.Link,{href:"/actions",onClick:()=>{n&&N(!1)},children:[(0,s.jsx)(L.PlayCircle,{}),(0,s.jsx)("span",{children:e("actions")})]})})}),(0,s.jsx)(eg,{children:(0,s.jsx)(ew,{asChild:!0,isActive:S.startsWith("/comments"),children:(0,s.jsxs)(ek.Link,{href:"/comments",onClick:()=>{n&&N(!1)},children:[(0,s.jsx)(k.MessageSquareText,{}),(0,s.jsx)("span",{children:e("comments")})]})})}),z&&(0,s.jsx)(eg,{children:(0,s.jsx)(ew,{asChild:!0,isActive:S.startsWith("/actions-cache"),children:(0,s.jsxs)(ek.Link,{href:"/actions-cache",onClick:()=>{n&&N(!1)},children:[(0,s.jsx)(x.DatabaseZap,{}),(0,s.jsx)("span",{children:e("actionsCache")})]})})})]})})]}),(0,s.jsxs)(ef,{children:[(0,s.jsx)(ep,{children:e("jira")}),(0,s.jsx)(ej,{children:(0,s.jsxs)(eb,{children:[(0,s.jsx)(eg,{children:(0,s.jsx)(ew,{asChild:!0,isActive:S.startsWith("/jira/tickets"),children:(0,s.jsxs)(ek.Link,{href:"/jira/tickets",onClick:()=>{n&&N(!1)},children:[(0,s.jsx)(E.TicketCheck,{}),(0,s.jsx)("span",{children:e("tickets")})]})})}),(0,s.jsx)(eg,{children:(0,s.jsx)(ew,{asChild:!0,isActive:S.startsWith("/jira/cache"),children:(0,s.jsxs)(ek.Link,{href:"/jira/cache",onClick:()=>{n&&N(!1)},children:[(0,s.jsx)(u.Database,{}),(0,s.jsx)("span",{children:e("cache")})]})})})]})})]}),(0,s.jsxs)(ef,{children:[(0,s.jsx)(ep,{children:e("system")}),(0,s.jsx)(ej,{children:(0,s.jsxs)(eb,{children:[(0,s.jsx)(eg,{children:(0,s.jsx)(ew,{asChild:!0,isActive:S.startsWith("/polling"),children:(0,s.jsxs)(ek.Link,{href:"/polling",onClick:()=>{n&&N(!1)},children:[(0,s.jsx)(R,{}),(0,s.jsx)("span",{children:e("polling")})]})})}),(0,s.jsx)(eg,{children:(0,s.jsx)(ew,{asChild:!0,isActive:S.startsWith("/build-data"),children:(0,s.jsxs)(ek.Link,{href:"/build-data",onClick:()=>{n&&N(!1)},children:[(0,s.jsx)(p.HardDrive,{}),(0,s.jsx)("span",{children:e("buildData")})]})})}),(0,s.jsx)(eg,{children:(0,s.jsx)(ew,{asChild:!0,isActive:S.startsWith("/provisioning-profiles"),children:(0,s.jsxs)(ek.Link,{href:"/provisioning-profiles",onClick:()=>{n&&N(!1)},children:[(0,s.jsx)(D.ShieldCheck,{}),(0,s.jsx)("span",{children:e("provisioningProfiles")})]})})}),(0,s.jsx)(eg,{children:(0,s.jsx)(ew,{asChild:!0,isActive:S.startsWith("/devices"),children:(0,s.jsxs)(ek.Link,{href:"/devices",onClick:()=>{n&&N(!1)},children:[(0,s.jsx)(T.Smartphone,{}),(0,s.jsx)("span",{children:e("devices")})]})})}),(0,s.jsx)(eg,{children:(0,s.jsx)(ew,{asChild:!0,isActive:S.startsWith("/tools"),children:(0,s.jsxs)(ek.Link,{href:"/tools",onClick:()=>{n&&N(!1)},children:[(0,s.jsx)(P.Wrench,{}),(0,s.jsx)("span",{children:e("tools")})]})})}),(0,s.jsx)(eg,{children:(0,s.jsx)(ew,{asChild:!0,isActive:S.startsWith("/credentials"),children:(0,s.jsxs)(ek.Link,{href:"/credentials",onClick:()=>{n&&N(!1)},children:[(0,s.jsx)(w.KeyRound,{}),(0,s.jsx)("span",{children:e("credentials")})]})})}),(0,s.jsx)(eg,{children:(0,s.jsx)(ew,{asChild:!0,isActive:S.startsWith("/settings"),children:(0,s.jsxs)(ek.Link,{href:"/settings",onClick:()=>{n&&N(!1)},children:[(0,s.jsx)(A.Settings,{}),(0,s.jsx)("span",{children:e("settings")})]})})})]})})]})]}),(0,s.jsx)(ex,{className:"p-0",children:(0,s.jsx)(eF,{})})]})}e.s(["AppShell",0,function({children:e,leftDefaultOpen:i,rightDefaultOpen:t}){return(0,s.jsxs)(ec,{cookieName:"ade_sidebar_left",defaultOpen:i,className:"h-dvh min-h-0 overflow-hidden",children:[(0,s.jsx)(e3,{}),(0,s.jsx)(eY,{rightDefaultOpen:t,children:e})]})}],763141)}]);