@ai-development-environment/server 0.0.28 → 0.0.29

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 (243) hide show
  1. package/package.json +1 -1
  2. package/prisma-runtime/prisma/migrations/20260718220000_add_build_freshness/migration.sql +1 -0
  3. package/prisma-runtime/prisma/schema.prisma +1 -0
  4. package/standalone/.next/BUILD_ID +1 -1
  5. package/standalone/.next/build-manifest.json +3 -3
  6. package/standalone/.next/prerender-manifest.json +3 -3
  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]/agents/[id]/page.js.nft.json +1 -1
  10. package/standalone/.next/server/app/[locale]/agents/[id]/page_client-reference-manifest.js +1 -1
  11. package/standalone/.next/server/app/[locale]/agents/page.js.nft.json +1 -1
  12. package/standalone/.next/server/app/[locale]/agents/page_client-reference-manifest.js +1 -1
  13. package/standalone/.next/server/app/[locale]/build-data/page.js.nft.json +1 -1
  14. package/standalone/.next/server/app/[locale]/build-data/page_client-reference-manifest.js +1 -1
  15. package/standalone/.next/server/app/[locale]/builds/[buildId]/page.js.nft.json +1 -1
  16. package/standalone/.next/server/app/[locale]/builds/[buildId]/page_client-reference-manifest.js +1 -1
  17. package/standalone/.next/server/app/[locale]/builds/page.js.nft.json +1 -1
  18. package/standalone/.next/server/app/[locale]/builds/page_client-reference-manifest.js +1 -1
  19. package/standalone/.next/server/app/[locale]/codebases/[codebaseId]/page.js.nft.json +1 -1
  20. package/standalone/.next/server/app/[locale]/codebases/[codebaseId]/page_client-reference-manifest.js +1 -1
  21. package/standalone/.next/server/app/[locale]/codebases/page.js.nft.json +1 -1
  22. package/standalone/.next/server/app/[locale]/codebases/page_client-reference-manifest.js +1 -1
  23. package/standalone/.next/server/app/[locale]/codebases/repositories/[repositoryId]/page_client-reference-manifest.js +1 -1
  24. package/standalone/.next/server/app/[locale]/comments/page.js.nft.json +1 -1
  25. package/standalone/.next/server/app/[locale]/comments/page_client-reference-manifest.js +1 -1
  26. package/standalone/.next/server/app/[locale]/jira/cache/page_client-reference-manifest.js +1 -1
  27. package/standalone/.next/server/app/[locale]/jira/cache/tickets/[issueKey]/page_client-reference-manifest.js +1 -1
  28. package/standalone/.next/server/app/[locale]/jira/tickets/[issueKey]/page.js.nft.json +1 -1
  29. package/standalone/.next/server/app/[locale]/jira/tickets/[issueKey]/page_client-reference-manifest.js +1 -1
  30. package/standalone/.next/server/app/[locale]/jira/tickets/page.js.nft.json +1 -1
  31. package/standalone/.next/server/app/[locale]/jira/tickets/page_client-reference-manifest.js +1 -1
  32. package/standalone/.next/server/app/[locale]/jobs/[jobId]/page_client-reference-manifest.js +1 -1
  33. package/standalone/.next/server/app/[locale]/page_client-reference-manifest.js +1 -1
  34. package/standalone/.next/server/app/[locale]/pull-requests/[owner]/[repository]/[number]/page.js.nft.json +1 -1
  35. package/standalone/.next/server/app/[locale]/pull-requests/[owner]/[repository]/[number]/page_client-reference-manifest.js +1 -1
  36. package/standalone/.next/server/app/[locale]/pull-requests/page.js.nft.json +1 -1
  37. package/standalone/.next/server/app/[locale]/pull-requests/page_client-reference-manifest.js +1 -1
  38. package/standalone/.next/server/app/[locale]/settings/page_client-reference-manifest.js +1 -1
  39. package/standalone/.next/server/app/[locale]/skills/[skillId]/page_client-reference-manifest.js +1 -1
  40. package/standalone/.next/server/app/[locale]/skills/groups/[groupId]/page_client-reference-manifest.js +1 -1
  41. package/standalone/.next/server/app/[locale]/skills/groups/page_client-reference-manifest.js +1 -1
  42. package/standalone/.next/server/app/[locale]/skills/page_client-reference-manifest.js +1 -1
  43. package/standalone/.next/server/app/[locale]/skills/sync/[runId]/page_client-reference-manifest.js +1 -1
  44. package/standalone/.next/server/app/[locale]/tools/page_client-reference-manifest.js +1 -1
  45. package/standalone/.next/server/app/[locale]/usage/page.js.nft.json +1 -1
  46. package/standalone/.next/server/app/[locale]/usage/page_client-reference-manifest.js +1 -1
  47. package/standalone/.next/server/app/[locale]/worktrees/[worktreeId]/page.js.nft.json +1 -1
  48. package/standalone/.next/server/app/[locale]/worktrees/[worktreeId]/page_client-reference-manifest.js +1 -1
  49. package/standalone/.next/server/app/[locale]/worktrees/page.js.nft.json +1 -1
  50. package/standalone/.next/server/app/[locale]/worktrees/page_client-reference-manifest.js +1 -1
  51. package/standalone/.next/server/app/_global-error.html +1 -1
  52. package/standalone/.next/server/app/_global-error.rsc +1 -1
  53. package/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  54. package/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  55. package/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  56. package/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  57. package/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  58. package/standalone/.next/server/app/_not-found.html +1 -1
  59. package/standalone/.next/server/app/_not-found.rsc +1 -1
  60. package/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  61. package/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  62. package/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  63. package/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  64. package/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  65. package/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  66. package/standalone/.next/server/app/api/build-artifact-uploads/[uploadId]/route.js +2 -2
  67. package/standalone/.next/server/app/api/build-artifact-uploads/[uploadId]/route.js.nft.json +1 -1
  68. package/standalone/.next/server/app/api/builds/[buildId]/artifacts/[artifactId]/route.js +2 -2
  69. package/standalone/.next/server/app/api/builds/[buildId]/artifacts/[artifactId]/route.js.nft.json +1 -1
  70. package/standalone/.next/server/app/api/codebases/by-path/route.js +2 -2
  71. package/standalone/.next/server/app/api/codebases/by-path/route.js.nft.json +1 -1
  72. package/standalone/.next/server/app/api/codebases/route.js +2 -2
  73. package/standalone/.next/server/app/api/codebases/route.js.nft.json +1 -1
  74. package/standalone/.next/server/app/api/graphql/route.js +2 -2
  75. package/standalone/.next/server/app/api/graphql/route.js.nft.json +1 -1
  76. package/standalone/.next/server/app/api/mcp/route.js +2 -2
  77. package/standalone/.next/server/app/api/mcp/route.js.nft.json +1 -1
  78. package/standalone/.next/server/app/api/tools/call/route.js +2 -2
  79. package/standalone/.next/server/app/api/tools/call/route.js.nft.json +1 -1
  80. package/standalone/.next/server/app/api/tools/catalog/route.js +2 -2
  81. package/standalone/.next/server/app/api/tools/catalog/route.js.nft.json +1 -1
  82. package/standalone/.next/server/chunks/{[root-of-the-server]__1iv83x0._.js → [root-of-the-server]__0-ypkf7._.js} +1 -1
  83. package/standalone/.next/server/chunks/{[root-of-the-server]__08w_8a-._.js → [root-of-the-server]__00ku6-v._.js} +1 -1
  84. package/standalone/.next/server/chunks/{[root-of-the-server]__0yfvw4a._.js → [root-of-the-server]__0138gz-._.js} +1 -1
  85. package/standalone/.next/server/chunks/{[root-of-the-server]__0r5s0h6._.js → [root-of-the-server]__02vqwey._.js} +2 -2
  86. package/standalone/.next/server/chunks/{[root-of-the-server]__098f8w4._.js → [root-of-the-server]__056cnsc._.js} +1 -1
  87. package/standalone/.next/server/chunks/{[root-of-the-server]__1l6ed2g._.js → [root-of-the-server]__08mfybr._.js} +2 -2
  88. package/standalone/.next/server/chunks/{[root-of-the-server]__0cs2bfc._.js → [root-of-the-server]__08u874i._.js} +1 -1
  89. package/standalone/.next/server/chunks/{[root-of-the-server]__01h2pl1._.js → [root-of-the-server]__09skp6r._.js} +1 -1
  90. package/standalone/.next/server/chunks/{[root-of-the-server]__14-aq4c._.js → [root-of-the-server]__0cyubup._.js} +1 -1
  91. package/standalone/.next/server/chunks/{[root-of-the-server]__0_l5rqe._.js → [root-of-the-server]__0da1wsf._.js} +1 -1
  92. package/standalone/.next/server/chunks/{[root-of-the-server]__1mgcft0._.js → [root-of-the-server]__0e1fqyr._.js} +1 -1
  93. package/standalone/.next/server/chunks/{[root-of-the-server]__1frrx8s._.js → [root-of-the-server]__0f3ptor._.js} +2 -2
  94. package/standalone/.next/server/chunks/{[root-of-the-server]__0k01mi-._.js → [root-of-the-server]__0fih0li._.js} +1 -1
  95. package/standalone/.next/server/chunks/{[root-of-the-server]__02qjyhj._.js → [root-of-the-server]__0g0tnct._.js} +1 -1
  96. package/standalone/.next/server/chunks/{[root-of-the-server]__1ehdq4c._.js → [root-of-the-server]__0gbor-2._.js} +1 -1
  97. package/standalone/.next/server/chunks/{[root-of-the-server]__09lyzw2._.js → [root-of-the-server]__0mj6qcr._.js} +2 -2
  98. package/standalone/.next/server/chunks/{[root-of-the-server]__14uwobw._.js → [root-of-the-server]__0p_h088._.js} +1 -1
  99. package/standalone/.next/server/chunks/{[root-of-the-server]__0i4bd9d._.js → [root-of-the-server]__0vvjqp5._.js} +1 -1
  100. package/standalone/.next/server/chunks/{[root-of-the-server]__04rx7b9._.js → [root-of-the-server]__0w20bq-._.js} +2 -2
  101. package/standalone/.next/server/chunks/{[root-of-the-server]__0hmrx3m._.js → [root-of-the-server]__0wf0pka._.js} +1 -1
  102. package/standalone/.next/server/chunks/{[root-of-the-server]__0nxj1ky._.js → [root-of-the-server]__0wg2umj._.js} +1 -1
  103. package/standalone/.next/server/chunks/{[root-of-the-server]__17bgip6._.js → [root-of-the-server]__0xa_els._.js} +1 -1
  104. package/standalone/.next/server/chunks/{[root-of-the-server]__0wx4-1l._.js → [root-of-the-server]__0xukz2x._.js} +2 -2
  105. package/standalone/.next/server/chunks/[root-of-the-server]__1-z6lg_._.js +3 -0
  106. package/standalone/.next/server/chunks/{[root-of-the-server]__020ggc3._.js → [root-of-the-server]__15aat79._.js} +1 -1
  107. package/standalone/.next/server/chunks/{[root-of-the-server]__00_-x1w._.js → [root-of-the-server]__15bbm2q._.js} +2 -2
  108. package/standalone/.next/server/chunks/{[root-of-the-server]__09c7zmy._.js → [root-of-the-server]__16l4wed._.js} +1 -1
  109. package/standalone/.next/server/chunks/{[root-of-the-server]__04hrhu3._.js → [root-of-the-server]__19zwwdv._.js} +1 -1
  110. package/standalone/.next/server/chunks/{[root-of-the-server]__0d4_f1e._.js → [root-of-the-server]__1a5_am-._.js} +1 -1
  111. package/standalone/.next/server/chunks/{[root-of-the-server]__0kxltc8._.js → [root-of-the-server]__1ajaiy1._.js} +1 -1
  112. package/standalone/.next/server/chunks/[root-of-the-server]__1dtlzq1._.js +3 -0
  113. package/standalone/.next/server/chunks/[root-of-the-server]__1kpqohm._.js +3 -0
  114. package/standalone/.next/server/chunks/[root-of-the-server]__1l7234r._.js +3 -0
  115. package/standalone/.next/server/chunks/{[root-of-the-server]__0qjhcow._.js → [root-of-the-server]__1oahp4o._.js} +2 -2
  116. package/standalone/.next/server/chunks/[root-of-the-server]__1vip3sa._.js +3 -0
  117. package/standalone/.next/server/chunks/{[root-of-the-server]__0cryh-d._.js → [root-of-the-server]__1wtng3p._.js} +1 -1
  118. package/standalone/.next/server/chunks/[root-of-the-server]__1wu654b._.js +3 -0
  119. package/standalone/.next/server/chunks/[root-of-the-server]__1x2nph5._.js +3 -0
  120. package/standalone/.next/server/chunks/[root-of-the-server]__1xk-0be._.js +3 -0
  121. package/standalone/.next/server/chunks/{[root-of-the-server]__0h0mvv8._.js → [root-of-the-server]__210dhdj._.js} +1 -1
  122. package/standalone/.next/server/chunks/_0exkna-._.js +29 -8
  123. package/standalone/.next/server/chunks/{_0bru086._.js → _0jurkow._.js} +26 -26
  124. package/standalone/.next/server/chunks/{_00mzn-u._.js → _0rx5rfm._.js} +27 -27
  125. package/standalone/.next/server/chunks/_0tufgj0._.js +68 -47
  126. package/standalone/.next/server/chunks/_0w2eghf._.js +29 -8
  127. package/standalone/.next/server/chunks/_152rnkf._.js +3 -3
  128. package/standalone/.next/server/chunks/{_1_g2i-t._.js → _16x77b_._.js} +27 -27
  129. package/standalone/.next/server/chunks/_1dbqy8c._.js +3 -3
  130. package/standalone/.next/server/chunks/_1vrixpc._.js +3 -3
  131. package/standalone/.next/server/chunks/_1yfz-9u._.js +3 -3
  132. package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__1osx7qy._.js → [root-of-the-server]__0361lgt._.js} +8 -2
  133. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ay4_3d._.js +37 -0
  134. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0dm8osz._.js +3 -0
  135. package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0oj1os4._.js → [root-of-the-server]__1xv798-._.js} +2 -2
  136. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1z955gh._.js +3 -0
  137. package/standalone/.next/server/chunks/ssr/_00ye62k._.js +35 -0
  138. package/standalone/.next/server/chunks/ssr/_07tglcd._.js +35 -0
  139. package/standalone/.next/server/chunks/ssr/_0bvpmhm._.js +29 -25
  140. package/standalone/.next/server/chunks/ssr/{_0hoc_fd._.js → _0ddgabq._.js} +2 -2
  141. package/standalone/.next/server/chunks/ssr/{_1x13g5y._.js → _0eb36qa._.js} +2 -2
  142. package/standalone/.next/server/chunks/ssr/{_1dnm1d4._.js → _0mr9u9p._.js} +2 -2
  143. package/standalone/.next/server/chunks/ssr/_0nm6upn._.js +3 -0
  144. package/standalone/.next/server/chunks/ssr/_0quhjav._.js +3 -0
  145. package/standalone/.next/server/chunks/ssr/_0w05v7m._.js +3 -0
  146. package/standalone/.next/server/chunks/ssr/_0xozjkz._.js +3 -0
  147. package/standalone/.next/server/chunks/ssr/_0xrpdyy._.js +3 -0
  148. package/standalone/.next/server/chunks/ssr/_1-2qcpf._.js +3 -0
  149. package/standalone/.next/server/chunks/ssr/{_1vhf014._.js → _1-grolz._.js} +2 -2
  150. package/standalone/.next/server/chunks/ssr/_12ws_f2._.js +11 -0
  151. package/standalone/.next/server/chunks/ssr/_17p59oz._.js +3 -0
  152. package/standalone/.next/server/chunks/ssr/_19fwji0._.js +11 -0
  153. package/standalone/.next/server/chunks/ssr/_1_1j9nd._.js +13 -0
  154. package/standalone/.next/server/chunks/ssr/_1g3i459._.js +15 -0
  155. package/standalone/.next/server/chunks/ssr/{_1oh35yj._.js → _1g_aflc._.js} +2 -2
  156. package/standalone/.next/server/chunks/ssr/{_1dsdn7w._.js → _1lcwubl._.js} +2 -2
  157. package/standalone/.next/server/chunks/ssr/{_0sp1ojg._.js → _1r2rmfp._.js} +8 -2
  158. package/standalone/.next/server/chunks/ssr/_1za3z6k._.js +28 -24
  159. package/standalone/.next/server/chunks/ssr/{_13jl9nw._.js → _1zyjq9y._.js} +2 -2
  160. package/standalone/.next/server/chunks/ssr/_20ufqtr._.js +3 -0
  161. package/standalone/.next/server/chunks/ssr/messages_de_json_[json]_cjs_1uig1ud._.js +1 -1
  162. package/standalone/.next/server/chunks/ssr/messages_en_json_[json]_cjs_206072-._.js +1 -1
  163. package/standalone/.next/server/chunks/ssr/messages_es_json_[json]_cjs_082yukd._.js +1 -1
  164. package/standalone/.next/server/chunks/ssr/messages_fr_json_[json]_cjs_0j6-w0i._.js +1 -1
  165. package/standalone/.next/server/chunks/ssr/src_components_agents_agent-detail_tsx_0lfa4ui._.js +2 -2
  166. package/standalone/.next/server/chunks/ssr/src_components_builds_build-detail-page_tsx_0q1lvps._.js +9 -13
  167. package/standalone/.next/server/chunks/ssr/src_components_builds_builds-page_tsx_17qzmsl._.js +8 -12
  168. package/standalone/.next/server/chunks/ssr/src_components_github_actions-page_tsx_18434xt._.js +5 -5
  169. package/standalone/.next/server/chunks/ssr/src_components_github_pull-requests-page_tsx_1il3ga-._.js +12 -12
  170. package/standalone/.next/server/chunks/ssr/src_components_tools_tools-page_tsx_0k1jqcz._.js +2 -2
  171. package/standalone/.next/server/chunks/ssr/src_components_worktrees_worktree-detail-page_tsx_1oexgu_._.js +13 -4
  172. package/standalone/.next/server/middleware-build-manifest.js +3 -3
  173. package/standalone/.next/server/pages/404.html +1 -1
  174. package/standalone/.next/server/pages/500.html +1 -1
  175. package/standalone/.next/server/server-reference-manifest.js +1 -1
  176. package/standalone/.next/server/server-reference-manifest.json +1 -1
  177. package/standalone/.next/static/chunks/{0sp_r-c6262te.js → 0newuocvg03xy.js} +1 -1
  178. package/standalone/.next/static/chunks/{3oyhf7rk2xr_g.js → 0rlomhlt6030e.js} +1 -1
  179. package/standalone/.next/static/chunks/16tfdsma_h0r5.js +33 -0
  180. package/standalone/.next/static/chunks/{1xjd6ye7mxyf5.js → 1802j8gq2g47d.js} +2 -2
  181. package/standalone/.next/static/chunks/1_tnhhn4f122y.js +9 -0
  182. package/standalone/.next/static/chunks/1eny65xy2ho48.js +1 -0
  183. package/standalone/.next/static/chunks/1l4bkigul15i3.js +25 -0
  184. package/standalone/.next/static/chunks/{3td_-1s61zkpa.js → 1nnp0crt0mi_-.js} +1 -1
  185. package/standalone/.next/static/chunks/1qd6cse_d9ae1.js +99 -0
  186. package/standalone/.next/static/chunks/{2dwchs_6y_o5f.js → 2-mxmazwsh-wz.js} +1 -1
  187. package/standalone/.next/static/chunks/2fzwgr2iq_783.css +1 -0
  188. package/standalone/.next/static/chunks/{278dxvyf095b_.js → 2jbygfc0lzu0t.js} +7 -7
  189. package/standalone/.next/static/chunks/2n7u72nxziv_5.js +7 -0
  190. package/standalone/.next/static/chunks/{1rivge68m21sm.js → 2rjf8o4g23no8.js} +10 -10
  191. package/standalone/.next/static/chunks/{42flok13o-l0b.js → 2x8qovg070057.js} +1 -1
  192. package/standalone/.next/static/chunks/{091l-ij_cv0b6.js → 3-u7pvogc5_bx.js} +12 -12
  193. package/standalone/.next/static/chunks/3-zh9b0tcttiw.js +33 -0
  194. package/standalone/.next/static/chunks/31wyih3wwkeid.js +1 -0
  195. package/standalone/.next/static/chunks/{1nqkxeuycfmrt.js → 36_1bjzx79v18.js} +5 -5
  196. package/standalone/.next/static/chunks/3ajj69p_sj615.js +1 -0
  197. package/standalone/.next/static/chunks/3jd8_7lna-j_x.js +40 -0
  198. package/standalone/.next/static/chunks/3jv2gnnn4vx-j.js +43 -0
  199. package/standalone/.next/static/chunks/3k0oakdayt9yt.js +40 -0
  200. package/standalone/.next/static/chunks/3pgngh8lg3be3.js +99 -0
  201. package/standalone/.next/static/chunks/{0w8rd_g6hnvmz.js → 4013cp3x6bvuw.js} +1 -1
  202. package/standalone/src/services/builds/build-freshness.test.ts +107 -0
  203. package/standalone/src/services/builds/build-freshness.ts +73 -0
  204. package/standalone/src/services/builds/builds.service.test.ts +167 -8
  205. package/standalone/src/services/builds/builds.service.ts +115 -3
  206. package/standalone/.next/server/chunks/[root-of-the-server]__1878s0b._.js +0 -3
  207. package/standalone/.next/server/chunks/[root-of-the-server]__18zrtty._.js +0 -3
  208. package/standalone/.next/server/chunks/[root-of-the-server]__1_xz_m2._.js +0 -3
  209. package/standalone/.next/server/chunks/[root-of-the-server]__1mx1hqe._.js +0 -3
  210. package/standalone/.next/server/chunks/[root-of-the-server]__1sjjkyp._.js +0 -3
  211. package/standalone/.next/server/chunks/[root-of-the-server]__1vk9266._.js +0 -3
  212. package/standalone/.next/server/chunks/[root-of-the-server]__1yn6pds._.js +0 -3
  213. package/standalone/.next/server/chunks/[root-of-the-server]__1zwpjfo._.js +0 -3
  214. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__03m5q8h._.js +0 -27
  215. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__06bk7ik._.js +0 -3
  216. package/standalone/.next/server/chunks/ssr/_09l5w5d._.js +0 -3
  217. package/standalone/.next/server/chunks/ssr/_0_726fj._.js +0 -3
  218. package/standalone/.next/server/chunks/ssr/_0a1zku5._.js +0 -3
  219. package/standalone/.next/server/chunks/ssr/_0pu14lm._.js +0 -3
  220. package/standalone/.next/server/chunks/ssr/_1eol9we._.js +0 -3
  221. package/standalone/.next/server/chunks/ssr/_1h3t5g1._.js +0 -3
  222. package/standalone/.next/server/chunks/ssr/_1kemhyd._.js +0 -39
  223. package/standalone/.next/server/chunks/ssr/_1kmkrz5._.js +0 -3
  224. package/standalone/.next/server/chunks/ssr/_1r9ohdr._.js +0 -3
  225. package/standalone/.next/server/chunks/ssr/_1yzb5-u._.js +0 -11
  226. package/standalone/.next/server/chunks/ssr/src_components_0wvh73y._.js +0 -11
  227. package/standalone/.next/server/chunks/ssr/src_components_github_167_ydi._.js +0 -35
  228. package/standalone/.next/static/chunks/00dx8gu-2oyqe.js +0 -45
  229. package/standalone/.next/static/chunks/0j5n6p9i-vyzo.js +0 -9
  230. package/standalone/.next/static/chunks/0weklluydd2mf.js +0 -23
  231. package/standalone/.next/static/chunks/1eehbcjby4go8.js +0 -95
  232. package/standalone/.next/static/chunks/23_75iur2dq8p.js +0 -1
  233. package/standalone/.next/static/chunks/2lgsgstcvc7uk.css +0 -1
  234. package/standalone/.next/static/chunks/32agjzrkphjrl.js +0 -9
  235. package/standalone/.next/static/chunks/399uxexoo8x7f.js +0 -33
  236. package/standalone/.next/static/chunks/39ecics7n8z5m.js +0 -1
  237. package/standalone/.next/static/chunks/3_kaby2qep1pd.js +0 -34
  238. package/standalone/.next/static/chunks/3q7vh58-5dkv2.js +0 -25
  239. package/standalone/.next/static/chunks/3xkoiasuwi3ms.js +0 -95
  240. package/standalone/.next/static/chunks/41s57pssydrel.js +0 -43
  241. /package/standalone/.next/static/{_pMjurqsAcC478HIzIe-d → 8uBWJ8MOV-OEPe88M3PhU}/_buildManifest.js +0 -0
  242. /package/standalone/.next/static/{_pMjurqsAcC478HIzIe-d → 8uBWJ8MOV-OEPe88M3PhU}/_clientMiddlewareManifest.js +0 -0
  243. /package/standalone/.next/static/{_pMjurqsAcC478HIzIe-d → 8uBWJ8MOV-OEPe88M3PhU}/_ssgManifest.js +0 -0
@@ -1,23 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,573474,e=>{"use strict";let t=(0,e.i(456420).default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);e.s(["Trash2",0,t],573474)},340953,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(30030);function a(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function i(...e){return r.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=a(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():a(e[t],null)}}}}(...e),e)}var s=e.i(326999);"u">typeof window&&window.document&&window.document.createElement;var l="AlertDialog",[o,d]=(0,n.createContextScope)(l,[s.createDialogScope]),c=(0,s.createDialogScope)(),u=e=>{let{__scopeAlertDialog:r,...n}=e,a=c(r);return(0,t.jsx)(s.Root,{...a,...n,modal:!0})};u.displayName=l;var f=r.forwardRef((e,r)=>{let{__scopeAlertDialog:n,...a}=e,i=c(n);return(0,t.jsx)(s.Trigger,{...i,...a,ref:r})});f.displayName="AlertDialogTrigger";var p=e=>{let{__scopeAlertDialog:r,...n}=e,a=c(r);return(0,t.jsx)(s.Portal,{...a,...n})};p.displayName="AlertDialogPortal";var m=r.forwardRef((e,r)=>{let{__scopeAlertDialog:n,...a}=e,i=c(n);return(0,t.jsx)(s.Overlay,{...i,...a,ref:r})});m.displayName="AlertDialogOverlay";var x="AlertDialogContent",[h,g]=o(x),v=r.forwardRef((e,n)=>{let{__scopeAlertDialog:a,children:l,...o}=e,d=c(a),u=i(n,r.useRef(null)),f=r.useRef(null);return(0,t.jsx)(h,{scope:a,cancelRef:f,children:(0,t.jsx)(s.Content,{role:"alertdialog",...d,...o,ref:u,onOpenAutoFocus:function(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n||!n.defaultPrevented)return t?.(n)}}(o.onOpenAutoFocus,e=>{e.preventDefault(),f.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:l})})});v.displayName=x;var j=r.forwardRef((e,r)=>{let{__scopeAlertDialog:n,...a}=e,i=c(n);return(0,t.jsx)(s.Title,{...i,...a,ref:r})});j.displayName="AlertDialogTitle";var y=r.forwardRef((e,r)=>{let{__scopeAlertDialog:n,...a}=e,i=c(n);return(0,t.jsx)(s.Description,{...i,...a,ref:r})});y.displayName="AlertDialogDescription";var b=r.forwardRef((e,r)=>{let{__scopeAlertDialog:n,...a}=e,i=c(n);return(0,t.jsx)(s.Close,{...i,...a,ref:r})});b.displayName="AlertDialogAction";var w="AlertDialogCancel",C=r.forwardRef((e,r)=>{let{__scopeAlertDialog:n,...a}=e,{cancelRef:l}=g(w,n),o=c(n),d=i(r,l);return(0,t.jsx)(s.Close,{...o,...a,ref:d})});C.displayName=w,e.s(["Action",0,b,"AlertDialog",0,u,"AlertDialogAction",0,b,"AlertDialogCancel",0,C,"AlertDialogContent",0,v,"AlertDialogDescription",0,y,"AlertDialogOverlay",0,m,"AlertDialogPortal",0,p,"AlertDialogTitle",0,j,"AlertDialogTrigger",0,f,"Cancel",0,C,"Content",0,v,"Description",0,y,"Overlay",0,m,"Portal",0,p,"Root",0,u,"Title",0,j,"Trigger",0,f,"createAlertDialogScope",0,d],691162);var D=e.i(691162),D=D,A=e.i(975157),S=e.i(519455);function E({...e}){return(0,t.jsx)(D.Root,{"data-slot":"alert-dialog",...e})}function N({...e}){return(0,t.jsx)(D.Trigger,{"data-slot":"alert-dialog-trigger",...e})}function I({...e}){return(0,t.jsx)(D.Portal,{"data-slot":"alert-dialog-portal",...e})}function R({className:e,...r}){return(0,t.jsx)(D.Overlay,{"data-slot":"alert-dialog-overlay",className:(0,A.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),...r})}function T({className:e,size:r="default",...n}){return(0,t.jsxs)(I,{children:[(0,t.jsx)(R,{}),(0,t.jsx)(D.Content,{"data-slot":"alert-dialog-content","data-size":r,className:(0,A.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),...n})]})}function k({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,A.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),...r})}function B({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,A.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),...r})}function P({className:e,...r}){return(0,t.jsx)(D.Title,{"data-slot":"alert-dialog-title",className:(0,A.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),...r})}function $({className:e,...r}){return(0,t.jsx)(D.Description,{"data-slot":"alert-dialog-description",className:(0,A.cn)("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...r})}function U({className:e,variant:r="default",size:n="default",...a}){return(0,t.jsx)(S.Button,{variant:r,size:n,asChild:!0,children:(0,t.jsx)(D.Action,{"data-slot":"alert-dialog-action",className:(0,A.cn)(e),...a})})}function L({className:e,variant:r="outline",size:n="default",...a}){return(0,t.jsx)(S.Button,{variant:r,size:n,asChild:!0,children:(0,t.jsx)(D.Cancel,{"data-slot":"alert-dialog-cancel",className:(0,A.cn)(e),...a})})}e.s(["ConfirmationDialog",0,function({actionLabel:e,cancelLabel:r,description:n,onConfirm:a,onOpenChange:i,open:s,title:l,trigger:o}){return(0,t.jsxs)(E,{onOpenChange:i,open:s,children:[o&&(0,t.jsx)(N,{asChild:!0,children:o}),(0,t.jsxs)(T,{children:[(0,t.jsxs)(k,{children:[(0,t.jsx)(P,{children:l}),(0,t.jsx)($,{children:n})]}),(0,t.jsxs)(B,{children:[(0,t.jsx)(L,{children:r}),(0,t.jsx)(U,{onClick:()=>void a(),variant:"destructive",children:e})]})]})]})}],340953)},711241,e=>{"use strict";let t=(0,e.i(456420).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",0,t],711241)},716327,e=>{"use strict";var t=e.i(26495);e.s(["ChevronDown",()=>t.default])},82612,e=>{"use strict";var t=e.i(843476),r=e.i(225913),n=e.i(975157);let a=(0,r.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,...r}){return(0,t.jsx)("div",{"data-slot":"empty",className:(0,n.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),...r})},"EmptyDescription",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty-description",className:(0,n.cn)("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...r})},"EmptyHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty-header",className:(0,n.cn)("flex max-w-sm flex-col items-center gap-2",e),...r})},"EmptyMedia",0,function({className:e,variant:r="default",...i}){return(0,t.jsx)("div",{"data-slot":"empty-icon","data-variant":r,className:(0,n.cn)(a({variant:r,className:e})),...i})},"EmptyTitle",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty-title",className:(0,n.cn)("font-heading text-sm font-medium tracking-tight",e),...r})}])},462777,e=>{"use strict";async function t(e){if(navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(e);return}catch{}let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.append(t),t.select();let r=document.execCommand("copy");if(t.remove(),!r)throw Error("Copy is not supported by this browser")}e.s(["copyText",0,t,"createClientId",0,function(){try{if(globalThis.crypto?.randomUUID)return globalThis.crypto.randomUUID()}catch{}if(globalThis.crypto?.getRandomValues)try{let e=globalThis.crypto.getRandomValues(new Uint8Array(16));return Array.from(e,e=>e.toString(16).padStart(2,"0")).join("")}catch{}return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}])},986253,e=>{"use strict";let t=(0,e.i(456420).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["default",0,t])},842727,e=>{"use strict";var t=e.i(271645);function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r||!r.defaultPrevented)return t?.(r)}}"u">typeof window&&window.document&&window.document.createElement;var n=e.i(75830);function a(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function i(...e){return t.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=a(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():a(e[t],null)}}}}(...e),e)}var s=e.i(30030),l=e.i(610772);e.i(174080);var o=Symbol.for("radix.slottable"),d=Symbol.for("react.lazy");function c(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===d&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var u=t[" use ".trim().toString()],f=e.i(843476),p=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{var n;let a,s=(n=`Primitive.${r}`,(a=t.forwardRef((e,r)=>{var a;let s,l,{children:d,...f}=e,p=null,m=!1,x=[];c(d)&&"function"==typeof u&&(d=u(d._payload)),t.Children.forEach(d,e=>{var r;if(r=e,t.isValidElement(r)&&"function"==typeof r.type&&"__radixId"in r.type&&r.type.__radixId===o){m=!0;let r="child"in e.props?e.props.child:e.props.children;c(r)&&"function"==typeof u&&(r=u(r._payload)),p=((e,r)=>{if("child"in e.props){let r=e.props.child;return t.isValidElement(r)?t.cloneElement(r,void 0,e.props.children(r.props.children)):null}return t.isValidElement(r)?r:null})(e,r),x.push(p?.props?.children)}else x.push(e)}),p?p=t.cloneElement(p,void 0,x):!m&&1===t.Children.count(d)&&t.isValidElement(d)&&(p=d);let h=p?(a=p,(l=(s=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in s&&s.isReactWarning)?a.ref:(l=(s=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in s&&s.isReactWarning)?a.props.ref:a.props.ref||a.ref):void 0,g=i(r,h);if(!p){if(d||0===d){let e,t;throw Error(m?(e=n,`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`):(t=n,`${t} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`))}return d}let v=function(e,t){let r={...t};for(let n in t){let a=e[n],i=t[n];/^on[A-Z]/.test(n)?a&&i?r[n]=(...e)=>{let t=i(...e);return a(...e),t}:a&&(r[n]=a):"style"===n?r[n]={...a,...i}:"className"===n&&(r[n]=[a,i].filter(Boolean).join(" "))}return{...e,...r}}(f,p.props??{});return p.type!==t.Fragment&&(v.ref=r?g:h),t.cloneElement(p,v)})).displayName=`${n}.Slot`,a),l=t.forwardRef((e,t)=>{let{asChild:n,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,f.jsx)(n?s:r,{...a,ref:t})});return l.displayName=`Primitive.${r}`,{...e,[r]:l}},{}),m=e.i(30207),x=globalThis?.document?t.useLayoutEffect:()=>{};t[" useEffectEvent ".trim().toString()],t[" useInsertionEffect ".trim().toString()];var h=t[" useInsertionEffect ".trim().toString()]||x;Symbol("RADIX:SYNC_STATE");var g=e.i(586318),v=!1,j=t[" useSyncExternalStore ".trim().toString()];function y(){return()=>{}}var b="function"==typeof j?function(){return j(y,()=>!0,()=>!1)}:function(){let[e,r]=t.useState(v);return t.useEffect(()=>{v||(v=!0,r(!0))},[]),e},w="rovingFocusGroup.onEntryFocus",C={bubbles:!1,cancelable:!0},D="RovingFocusGroup",[A,S,E]=(0,n.createCollection)(D),[N,I]=(0,s.createContextScope)(D,[E]),[R,T]=N(D),k=t.forwardRef((e,t)=>(0,f.jsx)(A.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(A.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(B,{...e,ref:t})})}));k.displayName=D;var B=t.forwardRef((e,n)=>{let{__scopeRovingFocusGroup:a,orientation:s,loop:l=!1,dir:o,currentTabStopId:d,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:u,onEntryFocus:x,preventScrollOnEntryFocus:v=!1,...j}=e,y=t.useRef(null),b=i(n,y),A=(0,g.useDirection)(o),[E,N]=function({prop:e,defaultProp:r,onChange:n=()=>{},caller:a}){let[i,s,l]=function({defaultProp:e,onChange:r}){let[n,a]=t.useState(e),i=t.useRef(n),s=t.useRef(r);return h(()=>{s.current=r},[r]),t.useEffect(()=>{i.current!==n&&(s.current?.(n),i.current=n)},[n,i]),[n,a,s]}({defaultProp:r,onChange:n}),o=void 0!==e,d=o?e:i;{let r=t.useRef(void 0!==e);t.useEffect(()=>{let e=r.current;if(e!==o){let t=o?"controlled":"uncontrolled";console.warn(`${a} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}r.current=o},[o,a])}return[d,t.useCallback(t=>{if(o){let r="function"==typeof t?t(e):t;r!==e&&l.current?.(r)}else s(t)},[o,e,s,l])]}({prop:d,defaultProp:c??null,onChange:u,caller:D}),[I,T]=t.useState(!1),k=(0,m.useCallbackRef)(x),B=S(a),P=t.useRef(!1),[$,U]=t.useState(0);return t.useEffect(()=>{let e=y.current;if(e)return e.addEventListener(w,k),()=>e.removeEventListener(w,k)},[k]),(0,f.jsx)(R,{scope:a,orientation:s,dir:A,loop:l,currentTabStopId:E,onItemFocus:t.useCallback(e=>N(e),[N]),onItemShiftTab:t.useCallback(()=>T(!0),[]),onFocusableItemAdd:t.useCallback(()=>U(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>U(e=>e-1),[]),children:(0,f.jsx)(p.div,{tabIndex:I||0===$?-1:0,"data-orientation":s,...j,ref:b,style:{outline:"none",...e.style},onMouseDown:r(e.onMouseDown,()=>{P.current=!0}),onFocus:r(e.onFocus,e=>{let t=!P.current;if(e.target===e.currentTarget&&t&&!I){let t=new CustomEvent(w,C);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=B().filter(e=>e.focusable);L([e.find(e=>e.active),e.find(e=>e.id===E),...e].filter(Boolean).map(e=>e.ref.current),v)}}P.current=!1}),onBlur:r(e.onBlur,()=>T(!1))})})}),P="RovingFocusGroupItem",$=t.forwardRef((e,n)=>{let{__scopeRovingFocusGroup:a,focusable:i=!0,active:s=!1,tabStopId:o,children:d,...c}=e,u=(0,l.useId)(),m=o||u,h=T(P,a),g=h.currentTabStopId===m,v=S(a),{onFocusableItemAdd:j,onFocusableItemRemove:y,currentTabStopId:w}=h,C=b();return x(()=>{if(C&&i)return j(),()=>y()},[C,i,j,y]),t.useEffect(()=>{if(!C&&i)return j(),()=>y()},[C,i,j,y]),(0,f.jsx)(A.ItemSlot,{scope:a,id:m,focusable:i,active:s,children:(0,f.jsx)(p.span,{tabIndex:g?0:-1,"data-orientation":h.orientation,...c,ref:n,onMouseDown:r(e.onMouseDown,e=>{i?h.onItemFocus(m):e.preventDefault()}),onFocus:r(e.onFocus,()=>h.onItemFocus(m)),onKeyDown:r(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void h.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let a=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(a))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(a)))return U[a]}(e,h.orientation,h.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let a=v().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)a.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&a.reverse();let i=a.indexOf(e.currentTarget);a=h.loop?(r=a,n=i+1,r.map((e,t)=>r[(n+t)%r.length])):a.slice(i+1)}setTimeout(()=>L(a))}}),children:"function"==typeof d?d({isCurrentTabStop:g,hasTabStop:null!=w}):d})})});$.displayName=P;var U={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function L(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}e.s(["Item",0,$,"Root",0,k,"createRovingFocusGroupScope",0,I],842727)},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)},21357,e=>{"use strict";let t=(0,e.i(456420).default)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);e.s(["Play",0,t],21357)},876561,e=>{"use strict";let t=(0,e.i(456420).default)("archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);e.s(["Archive",0,t],876561)},929272,e=>{"use strict";let t=(0,e.i(456420).default)("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);e.s(["Square",0,t],929272)},885325,e=>{"use strict";var t=e.i(843476),r=e.i(876561),n=e.i(711241),a=e.i(716327),i=e.i(762368),s=e.i(21357),l=e.i(929272),o=e.i(573474),d=e.i(861745),c=e.i(948148),u=e.i(271645),f=e.i(340953),p=e.i(929592),m=e.i(487486),x=e.i(519455),h=e.i(515288),g=e.i(776639),v=e.i(755146),j=e.i(82612),y=e.i(793479),b=e.i(110204),w=e.i(967489),C=e.i(987968),D=e.i(520133),A=e.i(462777),S=e.i(637611);let E=`
2
- id requestId jobId status action destinationType destination snapshot commandSummary artifactDirectory errorCode error
3
- createdAt startedAt finishedAt durationMs updatedAt
4
- configuration {
5
- id name iconKey scheme buildConfiguration defaultAction advancedSettings createdAt updatedAt
6
- source { id kind relativePath }
7
- }
8
- artifacts { id kind relativePath sizeBytes checksum metadata createdAt }
9
- scriptExecutions { id phase position nameSnapshot status exitCode durationMs causedBuildFailure outputRelativePath error }
10
- deployments { id batchId destination status commandSummary outputRelativePath error createdAt startedAt finishedAt }
11
- exports { id status settings commandSummary outputRelativePath error createdAt startedAt finishedAt }
12
- `,N="id scope scopeId sequence phase level stream message createdAt";function I({label:e,value:r,mono:n=!1}){return(0,t.jsxs)("div",{children:[(0,t.jsx)("dt",{className:"text-xs text-muted-foreground",children:e}),(0,t.jsx)("dd",{className:n?"mt-0.5 break-all font-mono text-xs":"mt-0.5",children:r})]})}function R({buildId:e,open:r,onOpenChange:n,onSaved:a}){let i=(0,c.useTranslations)("builds"),[s,l]=(0,u.useState)("DEBUGGING"),[o,d]=(0,u.useState)("AUTOMATIC"),[f,m]=(0,u.useState)(""),[h,v]=(0,u.useState)(!1),[j,D]=(0,u.useState)(null),E=async()=>{v(!0);try{await (0,S.controlPlaneRequest)(`mutation ExportArchive($input: ExportBuildArchiveInput!) {
13
- exportBuildArchive(input: $input) { id status }
14
- }`,{input:{buildId:e,requestId:(0,A.createClientId)(),settings:{method:s,signingStyle:o,teamId:f||null,signingCertificate:null,provisioningProfiles:{},uploadSymbols:!0,manageAppVersionAndBuildNumber:!0,testFlightInternalTestingOnly:!1}}}),await a(),n(!1)}catch(e){D(e instanceof Error?e.message:String(e))}finally{v(!1)}};return(0,t.jsx)(g.Dialog,{onOpenChange:n,open:r,children:(0,t.jsxs)(g.DialogContent,{children:[(0,t.jsxs)(g.DialogHeader,{children:[(0,t.jsx)(g.DialogTitle,{children:i("exportArchive")}),(0,t.jsx)(g.DialogDescription,{children:i("exportArchiveDescription")})]}),j&&(0,t.jsx)(p.Alert,{variant:"destructive",children:(0,t.jsx)(p.AlertDescription,{children:j})}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(b.Label,{children:i("distributionMethod")}),(0,t.jsxs)(w.Select,{onValueChange:l,value:s,children:[(0,t.jsx)(w.SelectTrigger,{children:(0,t.jsx)(w.SelectValue,{})}),(0,t.jsx)(w.SelectContent,{children:["DEBUGGING","RELEASE_TESTING","ENTERPRISE","APP_STORE_CONNECT"].map(e=>(0,t.jsx)(w.SelectItem,{value:e,children:e},e))})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(b.Label,{children:i("signingStyle")}),(0,t.jsxs)(w.Select,{onValueChange:d,value:o,children:[(0,t.jsx)(w.SelectTrigger,{children:(0,t.jsx)(w.SelectValue,{})}),(0,t.jsxs)(w.SelectContent,{children:[(0,t.jsx)(w.SelectItem,{value:"AUTOMATIC",children:i("automatic")}),(0,t.jsx)(w.SelectItem,{value:"MANUAL",children:i("manual")})]})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(b.Label,{htmlFor:"export-team-id",children:i("developmentTeam")}),(0,t.jsx)(y.Input,{id:"export-team-id",onChange:e=>m(e.target.value),value:f})]})]}),(0,t.jsxs)(g.DialogFooter,{children:[(0,t.jsx)(x.Button,{onClick:()=>n(!1),variant:"outline",children:i("cancel")}),(0,t.jsxs)(x.Button,{disabled:h,onClick:()=>void E(),children:[h&&(0,t.jsx)(C.Spinner,{})," ",i("exportArchive")]})]})]})})}e.s(["BuildDetailPage",0,function({buildId:e}){let g=(0,c.useTranslations)("builds"),y=(0,d.useLocale)(),b=(0,D.useRouter)(),[w,T]=(0,u.useState)(null),[k,B]=(0,u.useState)([]),[P,$]=(0,u.useState)(!0),[U,L]=(0,u.useState)(null),[F,M]=(0,u.useState)(!1),[z,O]=(0,u.useState)([]),[_,q]=(0,u.useState)(new Set),[G,V]=(0,u.useState)(!1),[H,K]=(0,u.useState)(!1),[Q,W]=(0,u.useState)(!1),X=(0,u.useRef)(null),Y=(0,u.useCallback)(async()=>{try{let t=await (0,S.controlPlaneRequest)(`query BuildDetail($id: ID!) {
15
- build(id: $id) { ${E} }
16
- buildLogs(buildId: $id, first: 5000) { ${N} }
17
- }`,{id:e});T(t.build),B(t.buildLogs),L(null)}catch(e){L(e instanceof Error?e.message:String(e))}finally{$(!1)}},[e]);(0,u.useEffect)(()=>{let e=window.setTimeout(()=>void Y(),0);return()=>window.clearTimeout(e)},[Y]),(0,u.useEffect)(()=>{let t=(0,S.controlPlaneSubscriptions)().subscribe({query:"subscription BuildChanged($id: ID!) { buildChanged(id: $id) { id } }",variables:{id:e}},{next:()=>void Y(),error:()=>void 0,complete:()=>void 0}),r=(0,S.controlPlaneSubscriptions)().subscribe({query:`subscription BuildLogAdded($buildId: ID!) {
18
- buildLogAdded(buildId: $buildId) { ${N} }
19
- }`,variables:{buildId:e}},{next:e=>{let t=e.data?.buildLogAdded;t&&B(e=>e.some(e=>e.id===t.id)?e:[...e,t])},error:()=>void 0,complete:()=>void 0});return()=>{t(),r()}},[e,Y]);let Z=null!==w&&(["QUEUED","PREPARING","RUNNING"].includes(w.status)||w.deployments.some(e=>["QUEUED","RUNNING"].includes(e.status))||w.exports.some(e=>["QUEUED","RUNNING"].includes(e.status)));(0,u.useEffect)(()=>{if(!Z)return;let e=window.setInterval(()=>void Y(),2e3);return()=>window.clearInterval(e)},[Z,Y]),(0,u.useEffect)(()=>{Z&&X.current&&(X.current.scrollTop=X.current.scrollHeight)},[Z,k]);let J=async()=>{M(!0);try{await (0,S.controlPlaneRequest)("mutation CancelBuild($id: ID!) { cancelBuild(id: $id) { id status } }",{id:e}),await Y()}catch(e){L(e instanceof Error?e.message:String(e))}finally{M(!1)}},ee=async()=>{M(!0),L(null);try{await (0,S.controlPlaneRequest)("mutation DeleteBuild($ids: [ID!]!) { deleteBuilds(ids: $ids) }",{ids:[e]}),b.replace("/builds")}catch(e){L(e instanceof Error?e.message:String(e)),W(!1)}finally{M(!1)}},et=async()=>{if(w){V(!0),L(null);try{let e=(await (0,S.controlPlaneRequest)(`mutation BuildRunDestinations($buildId: ID!, $requestId: ID!) {
20
- inspectBuildRunDestinations(buildId: $buildId, requestId: $requestId)
21
- }`,{buildId:w.id,requestId:(0,A.createClientId)()})).inspectBuildRunDestinations.filter(e=>e.type===w.destinationType&&!e.generic);O(e),q(new Set)}catch(e){L(e instanceof Error?e.message:String(e))}finally{V(!1)}}},er=async()=>{if(w){M(!0),L(null);try{await (0,S.controlPlaneRequest)(`mutation RunCompletedBuild($input: RunBuildInput!) {
22
- runBuild(input: $input) { id status }
23
- }`,{input:{buildId:w.id,destinations:z.filter(e=>_.has(e.id)),requestId:(0,A.createClientId)()}}),q(new Set),await Y()}catch(e){L(e instanceof Error?e.message:String(e))}finally{M(!1)}}},en=w?.artifacts.some(e=>"RUNNABLE_APP"===e.kind),ea=w?.artifacts.some(e=>"ARCHIVE"===e.kind),ei=w?.snapshot??{},es=ei.repository,el=ei.worktree,eo=ei.configuration,ed=(0,u.useMemo)(()=>z.filter(e=>_.has(e.id)).map(e=>e.name),[z,_]),ec=e=>e?new Date(e).toLocaleString(y):"—";return P?(0,t.jsxs)("p",{className:"mx-auto flex max-w-6xl items-center gap-2 text-muted-foreground",children:[(0,t.jsx)(C.Spinner,{})," ",g("loading")]}):w?(0,t.jsxs)("section",{className:"mx-auto flex w-full max-w-6xl flex-col gap-5",children:[(0,t.jsx)("div",{children:(0,t.jsx)(x.Button,{asChild:!0,className:"-ml-2",size:"sm",variant:"ghost",children:(0,t.jsxs)(D.Link,{href:"/builds",children:[(0,t.jsx)(n.ArrowLeft,{})," ",g("backToBuilds")]})})}),U&&(0,t.jsx)(p.Alert,{variant:"destructive",children:(0,t.jsx)(p.AlertDescription,{children:U})}),w.error&&(0,t.jsx)(p.Alert,{variant:"destructive",children:(0,t.jsxs)(p.AlertDescription,{children:[w.errorCode?`${w.errorCode}: `:"",w.error]})}),(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:es?.name??"—"}),(0,t.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-2",children:[(0,t.jsx)("h1",{className:"text-2xl font-semibold",children:eo?.name??w.id}),(0,t.jsx)(m.Badge,{variant:"FAILED"===w.status?"destructive":"SUCCEEDED"===w.status?"default":"secondary",children:g(`statuses.${w.status}`)}),(0,t.jsx)(m.Badge,{variant:"outline",children:g(`actions.${w.action}`)})]}),(0,t.jsxs)("p",{className:"mt-1 font-mono text-xs text-muted-foreground",children:[el?.branch??el?.folder??"—"," ·"," ",w.destination.name]}),(0,t.jsxs)("p",{className:"mt-1 font-mono text-xs text-muted-foreground",children:[g("buildId"),": ",w.id]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[["QUEUED","PREPARING","RUNNING"].includes(w.status)&&(0,t.jsxs)(x.Button,{disabled:F,onClick:()=>void J(),variant:"destructive",children:[F?(0,t.jsx)(C.Spinner,{}):(0,t.jsx)(l.Square,{})," ",g("cancelBuild")]}),"SUCCEEDED"===w.status&&en&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(v.DropdownMenu,{onOpenChange:e=>{e&&!z.length&&et()},children:[(0,t.jsx)(v.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsxs)(x.Button,{disabled:G,variant:"outline",children:[G?(0,t.jsx)(C.Spinner,{}):(0,t.jsx)(s.Play,{}),ed.length?g("selectedDevices",{count:ed.length}):g("selectRunDevices"),(0,t.jsx)(a.ChevronDown,{})]})}),(0,t.jsxs)(v.DropdownMenuContent,{align:"end",className:"w-72",children:[z.map(e=>(0,t.jsxs)(v.DropdownMenuCheckboxItem,{checked:_.has(e.id),onCheckedChange:t=>q(r=>{let n=new Set(r);return t?n.add(e.id):n.delete(e.id),n}),children:[e.name,e.osVersion?` \xb7 ${e.osVersion}`:""]},e.id)),!z.length&&(0,t.jsx)("p",{className:"p-2 text-xs text-muted-foreground",children:g("noCompatibleDevices")})]})]}),(0,t.jsxs)(x.Button,{disabled:F||0===_.size,onClick:()=>void er(),children:[F?(0,t.jsx)(C.Spinner,{}):(0,t.jsx)(s.Play,{})," ",g("run")]})]}),"SUCCEEDED"===w.status&&ea&&(0,t.jsxs)(x.Button,{onClick:()=>K(!0),variant:"outline",children:[(0,t.jsx)(r.Archive,{})," ",g("exportArchive")]}),(0,t.jsxs)(x.Button,{disabled:F||["QUEUED","PREPARING","RUNNING"].includes(w.status),onClick:()=>W(!0),variant:"destructive",children:[(0,t.jsx)(o.Trash2,{})," ",g("deleteBuild")]})]})]}),(0,t.jsxs)("div",{className:"grid gap-5 lg:grid-cols-[minmax(0,2fr)_minmax(18rem,1fr)]",children:[(0,t.jsxs)("div",{className:"space-y-5",children:[(0,t.jsxs)(h.Card,{children:[(0,t.jsx)(h.CardHeader,{children:(0,t.jsx)(h.CardTitle,{children:g("logs")})}),(0,t.jsx)(h.CardContent,{children:(0,t.jsx)("pre",{className:"max-h-[36rem] overflow-auto rounded-lg bg-neutral-950 p-3 text-xs whitespace-pre-wrap text-neutral-100",ref:X,children:k.length?k.map(e=>`[${e.phase}] ${e.message}`).join("\n"):g("noLogs")})})]}),(0,t.jsxs)(h.Card,{children:[(0,t.jsx)(h.CardHeader,{children:(0,t.jsx)(h.CardTitle,{children:g("commandSummary")})}),(0,t.jsx)(h.CardContent,{children:(0,t.jsx)("pre",{className:"overflow-x-auto rounded-lg bg-muted p-3 text-xs whitespace-pre-wrap",children:w.commandSummary})})]}),(0,t.jsxs)(h.Card,{children:[(0,t.jsx)(h.CardHeader,{children:(0,t.jsx)(h.CardTitle,{children:g("scripts")})}),(0,t.jsx)(h.CardContent,{className:"space-y-2",children:w.scriptExecutions.length?w.scriptExecutions.map(e=>(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2 rounded-lg border p-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("p",{className:"text-sm font-medium",children:[e.nameSnapshot," · ",e.phase]}),e.error&&(0,t.jsx)("p",{className:"text-xs text-destructive",children:e.error})]}),(0,t.jsx)(m.Badge,{variant:"FAILED"===e.status?"destructive":"outline",children:e.status})]},e.id)):(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:g("noScriptExecutions")})})]})]}),(0,t.jsxs)("div",{className:"space-y-5",children:[(0,t.jsxs)(h.Card,{children:[(0,t.jsx)(h.CardHeader,{children:(0,t.jsx)(h.CardTitle,{children:g("overview")})}),(0,t.jsx)(h.CardContent,{children:(0,t.jsxs)("dl",{className:"space-y-3 text-sm",children:[(0,t.jsx)(I,{label:g("buildId"),value:w.id,mono:!0}),(0,t.jsx)(I,{label:g("scheme"),value:eo?.scheme??"—",mono:!0}),(0,t.jsx)(I,{label:g("configuration"),value:eo?.buildConfiguration??"—",mono:!0}),(0,t.jsx)(I,{label:g("head"),value:el?.headSha??"—",mono:!0}),(0,t.jsx)(I,{label:g("startedAt"),value:ec(w.startedAt)}),(0,t.jsx)(I,{label:g("finishedAt"),value:ec(w.finishedAt)}),(0,t.jsx)(I,{label:g("artifactDirectory"),value:w.artifactDirectory,mono:!0})]})})]}),(0,t.jsxs)(h.Card,{children:[(0,t.jsx)(h.CardHeader,{children:(0,t.jsx)(h.CardTitle,{children:g("artifacts")})}),(0,t.jsx)(h.CardContent,{className:"space-y-2",children:w.artifacts.length?w.artifacts.map(e=>(0,t.jsxs)("div",{className:"rounded-lg border p-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)(m.Badge,{variant:"outline",children:e.kind}),(0,t.jsx)(x.Button,{asChild:!0,size:"sm",variant:"outline",children:(0,t.jsxs)("a",{download:!0,href:`/api/builds/${encodeURIComponent(w.id)}/artifacts/${encodeURIComponent(e.id)}`,children:[(0,t.jsx)(i.Download,{})," ",g("downloadArtifact")]})})]}),(0,t.jsx)("p",{className:"mt-1 break-all font-mono text-xs text-muted-foreground",children:e.relativePath})]},e.id)):(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:g("noArtifacts")})})]}),(0,t.jsxs)(h.Card,{children:[(0,t.jsx)(h.CardHeader,{children:(0,t.jsx)(h.CardTitle,{children:g("runsAndExports")})}),(0,t.jsxs)(h.CardContent,{className:"space-y-2",children:[w.deployments.map(e=>(0,t.jsxs)("div",{className:"rounded-lg border p-2",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e.destination.name}),(0,t.jsx)(m.Badge,{variant:"FAILED"===e.status?"destructive":"outline",children:e.status}),e.error&&(0,t.jsx)("p",{className:"mt-1 text-xs text-destructive",children:e.error})]},e.id)),w.exports.map(e=>(0,t.jsxs)("div",{className:"rounded-lg border p-2",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:g("archiveExport")}),(0,t.jsx)(m.Badge,{variant:"FAILED"===e.status?"destructive":"outline",children:e.status}),e.outputRelativePath&&(0,t.jsx)("p",{className:"mt-1 font-mono text-xs",children:e.outputRelativePath}),e.error&&(0,t.jsx)("p",{className:"mt-1 text-xs text-destructive",children:e.error})]},e.id)),!w.deployments.length&&!w.exports.length&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:g("noRunsOrExports")})]})]})]})]}),H&&(0,t.jsx)(R,{buildId:w.id,onOpenChange:K,onSaved:Y,open:H}),(0,t.jsx)(f.ConfirmationDialog,{actionLabel:g("deleteBuild"),cancelLabel:g("cancel"),description:g("deleteBuildDescription"),onConfirm:ee,onOpenChange:W,open:Q,title:g("deleteBuildTitle")})]}):(0,t.jsxs)(j.Empty,{className:"mx-auto max-w-6xl border py-12",children:[(0,t.jsxs)(j.EmptyHeader,{children:[(0,t.jsx)(j.EmptyTitle,{children:g("buildNotFound")}),(0,t.jsx)(j.EmptyDescription,{children:g("buildNotFoundDescription")})]}),(0,t.jsx)(x.Button,{asChild:!0,variant:"outline",children:(0,t.jsxs)(D.Link,{href:"/builds",children:[(0,t.jsx)(n.ArrowLeft,{})," ",g("backToBuilds")]})})]})}])}]);
@@ -1,95 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,635416,96892,939050,506184,868401,448295,e=>{"use strict";var t=e.i(456420);let a=(0,t.default)("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);e.s(["ArrowDown",0,a],635416);let r=(0,t.default)("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);e.s(["ArrowUp",0,r],96892);let s=(0,t.default)("move-right",[["path",{d:"M18 8L22 12L18 16",key:"1r0oui"}],["path",{d:"M2 12H22",key:"1m8cig"}]]);e.s(["MoveRight",0,s],939050);let n=(0,t.default)("paintbrush",[["path",{d:"m14.622 17.897-10.68-2.913",key:"vj2p1u"}],["path",{d:"M18.376 2.622a1 1 0 1 1 3.002 3.002L17.36 9.643a.5.5 0 0 0 0 .707l.944.944a2.41 2.41 0 0 1 0 3.408l-.944.944a.5.5 0 0 1-.707 0L8.354 7.348a.5.5 0 0 1 0-.707l.944-.944a2.41 2.41 0 0 1 3.408 0l.944.944a.5.5 0 0 0 .707 0z",key:"18tc5c"}],["path",{d:"M9 8c-1.804 2.71-3.97 3.46-6.583 3.948a.507.507 0 0 0-.302.819l7.32 8.883a1 1 0 0 0 1.185.204C12.735 20.405 16 16.792 16 15",key:"ytzfxy"}]]);e.s(["Paintbrush",0,n],506184);let i=(0,t.default)("tags",[["path",{d:"M13.172 2a2 2 0 0 1 1.414.586l6.71 6.71a2.4 2.4 0 0 1 0 3.408l-4.592 4.592a2.4 2.4 0 0 1-3.408 0l-6.71-6.71A2 2 0 0 1 6 9.172V3a1 1 0 0 1 1-1z",key:"16rjxf"}],["path",{d:"M2 7v6.172a2 2 0 0 0 .586 1.414l6.71 6.71a2.4 2.4 0 0 0 3.191.193",key:"178nd4"}],["circle",{cx:"10.5",cy:"6.5",r:".5",fill:"currentColor",key:"12ikhr"}]]);e.s(["Tags",0,i],868401);var l=e.i(843476),o=e.i(93384),d=e.i(741120),c=e.i(948148),u=e.i(271645),h=e.i(929592),g=e.i(487486),p=e.i(519455),m=e.i(515288),x=e.i(59497),b=e.i(776639),j=e.i(793479),v=e.i(110204),f=e.i(967489),w=e.i(987968),k=e.i(624687),y=e.i(520133),S=e.i(462777),C=e.i(637611),I=e.i(920950);let T=`
2
- id type
3
- configurations {
4
- id name iconKey scheme buildConfiguration defaultAction advancedSettings createdAt updatedAt
5
- source { id kind relativePath }
6
- observation { id scopeKey status schemes configurations testPlans error stale headSha xcodeVersion lastParseAttemptAt lastParsedAt }
7
- }
8
- allowedScripts {
9
- position
10
- script { id name preBuildScript postBuildScript enabledByDefault timeoutSeconds failureBehavior }
11
- }
12
- `,N=`
13
- id scopeKey status schemes configurations testPlans error stale headSha xcodeVersion lastParseAttemptAt lastParsedAt
14
- `,A=["BUILD","TEST","ANALYZE","ARCHIVE","BUILD_FOR_TESTING","TEST_WITHOUT_BUILDING"];function D({codebaseId:e,worktreeId:t,open:a,onOpenChange:r,onStarted:s}){let n=(0,c.useTranslations)("builds"),[i,o]=(0,u.useState)(null),[y,E]=(0,u.useState)([]),[B,R]=(0,u.useState)(""),[W,L]=(0,u.useState)("BUILD"),[P,_]=(0,u.useState)({}),[$,O]=(0,u.useState)([]),[M,U]=(0,u.useState)("SIMULATOR"),[q,F]=(0,u.useState)(""),[H,V]=(0,u.useState)(new Set),[G,K]=(0,u.useState)({}),[z,J]=(0,u.useState)("{}"),[Y,Q]=(0,u.useState)(!0),[X,Z]=(0,u.useState)(!1),[ee,et]=(0,u.useState)(!1),[ea,er]=(0,u.useState)(null),es=i?.configurations.find(e=>e.id===B),en=es?P[es.id]??es.observation:null;(0,u.useEffect)(()=>{let a=!1;return(0,C.controlPlaneRequest)(`query StartBuildProject($codebaseId: ID!, $worktreeId: ID!) {
15
- iosAppProject(codebaseId: $codebaseId) { ${T} }
16
- builds(first: 50, status: SUCCEEDED, worktreeId: $worktreeId) {
17
- items { id action destinationType snapshot createdAt }
18
- }
19
- }`,{codebaseId:e,worktreeId:t}).then(e=>{if(a)return;o(e.iosAppProject),E(e.builds.items);let t=e.iosAppProject?.configurations[0];t&&(R(t.id),L(t.defaultAction),K(t.advancedSettings??{}),V(new Set(e.iosAppProject.allowedScripts.filter(e=>e.script.enabledByDefault).map(e=>e.script.id))))}).catch(e=>er(e instanceof Error?e.message:String(e))).finally(()=>{a||Q(!1)}),()=>{a=!0}},[e,t]);let ei=(0,u.useMemo)(()=>y.filter(e=>{if("BUILD_FOR_TESTING"!==e.action||e.destinationType!==M)return!1;let t=e.snapshot.configuration,a="string"==typeof G.testPlan?G.testPlan:null,r=t?.advancedSettings?.testPlan;return t?.id===B&&(!a||!r||a===r)}),[G.testPlan,B,M,y]),el=ei.find(e=>e.id===G.priorBuildForTestingId)?.id??ei[0]?.id??null,eo=async(e,a)=>{Z(!0),er(null),O([]),F("");try{let r=await (0,C.controlPlaneRequest)(`mutation InspectStartBuildDestinations($input: InspectBuildDestinationsInput!) {
20
- inspectBuildDestinations(input: $input)
21
- }`,{input:{worktreeId:t,configurationId:e.id,action:a,requestId:(0,S.createClientId)()}});O(r.inspectBuildDestinations);let s="ARCHIVE"===a?"PHYSICAL_DEVICE":r.inspectBuildDestinations.some(e=>"SIMULATOR"===e.type)?"SIMULATOR":"PHYSICAL_DEVICE";U(s),F(r.inspectBuildDestinations.find(e=>e.type===s)?.id??"")}catch(e){er(e instanceof Error?e.message:String(e))}finally{Z(!1)}},ed=async e=>{Z(!0),er(null);try{let a=(await (0,C.controlPlaneRequest)(`mutation ReparseStartBuild($configurationId: ID!, $worktreeId: ID!, $requestId: ID!) {
22
- reparseBuildConfiguration(configurationId: $configurationId, worktreeId: $worktreeId, requestId: $requestId) {
23
- ${N}
24
- }
25
- }`,{configurationId:e.id,worktreeId:t,requestId:(0,S.createClientId)()})).reparseBuildConfiguration;if(_(t=>({...t,[e.id]:a})),"VALID"!==a.status)throw Error(a.error||n("configurationInvalid"));await eo(e,W)}catch(e){er(e instanceof Error?e.message:String(e))}finally{Z(!1)}};(0,u.useEffect)(()=>{if(!es||Y)return;let e=window.setTimeout(()=>void eo(es,W),0);return()=>window.clearTimeout(e)},[B,W,Y]);let ec=(0,u.useMemo)(()=>$.filter(e=>e.type===M),[$,M]),eu=$.find(e=>e.id===q),eh=es?`xcrun xcodebuild ${"PROJECT"===es.source.kind?`-project ${es.source.relativePath}`:"WORKSPACE"===es.source.kind?`-workspace ${es.source.relativePath}`:""} -scheme ${JSON.stringify(es.scheme)} -configuration ${JSON.stringify(es.buildConfiguration)} -destination ${JSON.stringify(eu?.name??"<destination>")} -hideShellScriptEnvironment ${W.toLowerCase().replaceAll("_","-")}${"TEST_WITHOUT_BUILDING"===W&&el?` \xb7 ${n("priorBuildSummary",{id:el})}`:""}`:"",eg=async()=>{if(es&&eu){et(!0),er(null);try{let e={};try{let t=JSON.parse(z);if(!t||"object"!=typeof t||Array.isArray(t))throw Error();e=t}catch{throw Error(n("overridesInvalid"))}let a=await (0,C.controlPlaneRequest)(`mutation StartIosBuild($input: StartBuildInput!) {
26
- startBuild(input: $input) { id }
27
- }`,{input:{worktreeId:t,configurationId:es.id,destination:eu,scriptIds:[...H],action:W,advancedSettings:{...G,buildSettingOverrides:e,..."TEST_WITHOUT_BUILDING"===W?{priorBuildForTestingId:el,priorTestProductsPath:null,priorXctestrunPath:null}:{}},requestId:(0,S.createClientId)()}});r(!1),s(a.startBuild.id)}catch(e){er(e instanceof Error?e.message:String(e))}finally{et(!1)}}};return(0,l.jsx)(b.Dialog,{onOpenChange:r,open:a,children:(0,l.jsxs)(b.DialogContent,{className:"sm:max-w-3xl",children:[(0,l.jsxs)(b.DialogHeader,{children:[(0,l.jsx)(b.DialogTitle,{children:n("startBuild")}),(0,l.jsx)(b.DialogDescription,{children:n("startBuildDescription")})]}),ea&&(0,l.jsx)(h.Alert,{variant:"destructive",children:(0,l.jsx)(h.AlertDescription,{children:ea})}),Y?(0,l.jsxs)("p",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,l.jsx)(w.Spinner,{})," ",n("loading")]}):i?.configurations.length?(0,l.jsxs)("div",{className:"space-y-5",children:[(0,l.jsxs)("section",{className:"space-y-2",children:[(0,l.jsx)(v.Label,{children:n("configuration")}),(0,l.jsx)("div",{className:"grid gap-2 sm:grid-cols-2",children:i.configurations.map(e=>(0,l.jsxs)("button",{className:`rounded-xl border p-3 text-left transition-colors ${e.id===B?"border-primary bg-primary/5":"hover:bg-muted/50"}`,onClick:()=>{R(e.id),L(e.defaultAction),K(e.advancedSettings??{})},type:"button",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,l.jsxs)("span",{className:"flex items-center gap-2 font-medium",children:[(0,l.jsx)(I.ConfigurationIcon,{iconKey:e.iconKey}),e.name]}),(0,l.jsx)(g.Badge,{variant:"outline",children:(P[e.id]??e.observation)?.status??"UNPARSED"})]}),(0,l.jsxs)("p",{className:"mt-1 text-xs text-muted-foreground",children:[e.scheme," · ",e.buildConfiguration]})]},e.id))})]}),es&&(0,l.jsx)(m.Card,{children:(0,l.jsxs)(m.CardContent,{className:"space-y-2 text-sm",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"font-mono text-xs",children:es.source.relativePath}),(0,l.jsxs)("p",{className:"text-xs text-muted-foreground",children:[es.scheme," ·"," ",es.buildConfiguration]})]}),(0,l.jsxs)(p.Button,{disabled:X,onClick:()=>void ed(es),size:"sm",type:"button",variant:"outline",children:[X?(0,l.jsx)(w.Spinner,{}):(0,l.jsx)(d.RefreshCw,{})," ",n("reparse")]})]}),en?.error&&(0,l.jsx)("p",{className:"text-xs text-destructive",children:en.error})]})}),(0,l.jsxs)("div",{className:"grid gap-4 sm:grid-cols-3",children:[(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)(v.Label,{children:n("action")}),(0,l.jsxs)(f.Select,{onValueChange:e=>L(e),value:W,children:[(0,l.jsx)(f.SelectTrigger,{children:(0,l.jsx)(f.SelectValue,{})}),(0,l.jsx)(f.SelectContent,{children:A.map(e=>(0,l.jsx)(f.SelectItem,{value:e,children:n(`actions.${e}`)},e))})]})]}),(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)(v.Label,{children:n("destinationType")}),(0,l.jsxs)(f.Select,{disabled:"ARCHIVE"===W,onValueChange:e=>{U(e),F($.find(t=>t.type===e)?.id??"")},value:M,children:[(0,l.jsx)(f.SelectTrigger,{children:(0,l.jsx)(f.SelectValue,{})}),(0,l.jsxs)(f.SelectContent,{children:[(0,l.jsx)(f.SelectItem,{value:"SIMULATOR",children:n("simulator")}),(0,l.jsx)(f.SelectItem,{value:"PHYSICAL_DEVICE",children:n("physicalDevice")})]})]})]}),(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)(v.Label,{children:n("device")}),(0,l.jsxs)(f.Select,{disabled:X||!ec.length,onValueChange:F,value:q,children:[(0,l.jsx)(f.SelectTrigger,{children:(0,l.jsx)(f.SelectValue,{placeholder:n("selectDevice")})}),(0,l.jsx)(f.SelectContent,{children:ec.map(e=>(0,l.jsxs)(f.SelectItem,{value:e.id,children:[e.generic?"SIMULATOR"===e.type?n("anySimulator"):n("anyPhysicalDevice"):e.name,e.osVersion?` \xb7 ${e.osVersion}`:""]},e.id))})]})]})]}),"TEST_WITHOUT_BUILDING"===W&&(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)(v.Label,{children:n("priorBuildForTesting")}),(0,l.jsxs)(f.Select,{disabled:!ei.length,onValueChange:e=>K(t=>({...t,priorBuildForTestingId:e,priorTestProductsPath:null,priorXctestrunPath:null})),value:el??"",children:[(0,l.jsx)(f.SelectTrigger,{children:(0,l.jsx)(f.SelectValue,{placeholder:n("selectPriorBuildForTesting")})}),(0,l.jsx)(f.SelectContent,{children:ei.map(e=>(0,l.jsxs)(f.SelectItem,{value:e.id,children:[new Date(e.createdAt).toLocaleString()," ·"," ",e.id]},e.id))})]}),!ei.length&&(0,l.jsx)("p",{className:"text-xs text-destructive",children:n("noPriorBuildForTesting")})]}),["TEST","BUILD_FOR_TESTING","TEST_WITHOUT_BUILDING"].includes(W)&&(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)(v.Label,{children:n("testPlan")}),(0,l.jsxs)(f.Select,{onValueChange:e=>K(t=>({...t,testPlan:"__SCHEME_DEFAULT__"===e?null:e})),value:String(G.testPlan??"__SCHEME_DEFAULT__"),children:[(0,l.jsx)(f.SelectTrigger,{children:(0,l.jsx)(f.SelectValue,{})}),(0,l.jsxs)(f.SelectContent,{children:[(0,l.jsx)(f.SelectItem,{value:"__SCHEME_DEFAULT__",children:n("schemeDefaultTestPlan")}),"string"==typeof G.testPlan&&G.testPlan&&!en?.testPlans.includes(G.testPlan)&&(0,l.jsxs)(f.SelectItem,{value:G.testPlan,children:[G.testPlan," · ",n("savedValueUnavailable")]}),en?.testPlans.map(e=>(0,l.jsx)(f.SelectItem,{value:e,children:e},e))]})]})]}),i.allowedScripts.length>0&&(0,l.jsxs)("section",{className:"space-y-2",children:[(0,l.jsx)(v.Label,{children:n("scripts")}),(0,l.jsx)("div",{className:"grid gap-2 sm:grid-cols-2",children:i.allowedScripts.map(({script:e})=>(0,l.jsxs)("label",{className:"flex items-start gap-2 rounded-lg border p-2",children:[(0,l.jsx)(x.Checkbox,{checked:H.has(e.id),onCheckedChange:t=>{V(a=>{let r=new Set(a);return t?r.add(e.id):r.delete(e.id),r})}}),(0,l.jsxs)("span",{children:[(0,l.jsx)("span",{className:"block text-sm font-medium",children:e.name}),(0,l.jsxs)("span",{className:"text-xs text-muted-foreground",children:[e.preBuildScript?n("preBuild"):"",e.preBuildScript&&e.postBuildScript?" · ":"",e.postBuildScript?n("postBuild"):""]})]})]},e.id))})]}),(0,l.jsxs)("details",{className:"rounded-xl border p-3",children:[(0,l.jsx)("summary",{className:"cursor-pointer font-medium",children:n("advancedSettings")}),(0,l.jsxs)("div",{className:"mt-4 grid gap-4 sm:grid-cols-2",children:[(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)(v.Label,{htmlFor:"development-team",children:n("developmentTeam")}),(0,l.jsx)(j.Input,{id:"development-team",onChange:e=>K(t=>({...t,developmentTeam:e.target.value||null})),value:String(G.developmentTeam??"")})]}),(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)(v.Label,{children:n("packageResolution")}),(0,l.jsxs)(f.Select,{onValueChange:e=>K(t=>({...t,packageResolution:e})),value:String(G.packageResolution??"DEFAULT"),children:[(0,l.jsx)(f.SelectTrigger,{children:(0,l.jsx)(f.SelectValue,{})}),(0,l.jsx)(f.SelectContent,{children:["DEFAULT","RESOLVED_ONLY","SKIP_UPDATES","DISABLE_AUTOMATIC"].map(e=>(0,l.jsx)(f.SelectItem,{value:e,children:e},e))})]})]}),(0,l.jsxs)("label",{className:"flex items-center gap-2",children:[(0,l.jsx)(x.Checkbox,{checked:!!G.codeCoverage,onCheckedChange:e=>K(t=>({...t,codeCoverage:!!e}))}),n("codeCoverage")]}),(0,l.jsxs)("label",{className:"flex items-center gap-2",children:[(0,l.jsx)(x.Checkbox,{checked:!!G.allowProvisioningUpdates,onCheckedChange:e=>K(t=>({...t,allowProvisioningUpdates:!!e}))}),n("allowProvisioningUpdates")]}),(0,l.jsxs)("div",{className:"space-y-2 sm:col-span-2",children:[(0,l.jsx)(v.Label,{htmlFor:"build-setting-overrides",children:n("buildSettingOverrides")}),(0,l.jsx)(k.Textarea,{className:"font-mono text-xs",id:"build-setting-overrides",onChange:e=>J(e.target.value),rows:4,value:z})]})]})]}),(0,l.jsxs)("section",{className:"space-y-2",children:[(0,l.jsx)(v.Label,{children:n("commandPreview")}),(0,l.jsx)("pre",{className:"overflow-x-auto rounded-lg bg-muted p-3 text-xs whitespace-pre-wrap",children:eh})]})]}):(0,l.jsx)(h.Alert,{children:(0,l.jsx)(h.AlertDescription,{children:n("noConfigurations")})}),(0,l.jsxs)(b.DialogFooter,{children:[(0,l.jsx)(p.Button,{onClick:()=>r(!1),type:"button",variant:"outline",children:n("cancel")}),(0,l.jsxs)(p.Button,{disabled:Y||X||ee||!es||!eu||"TEST_WITHOUT_BUILDING"===W&&!el,onClick:()=>void eg(),type:"button",children:[ee&&(0,l.jsx)(w.Spinner,{})," ",n("startBuild")]})]})]})})}e.s(["StartBuildButton",0,function({codebaseId:e,worktreeId:t,disabled:a,disabledReason:r,size:s="sm"}){let n=(0,c.useTranslations)("builds"),i=(0,y.useRouter)(),[d,h]=(0,u.useState)(!1);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(p.Button,{disabled:a,onClick:()=>h(!0),size:s,title:r??void 0,type:"button",children:[(0,l.jsx)(o.Hammer,{})," ",n("build")]}),d&&(0,l.jsx)(D,{codebaseId:e,onOpenChange:h,onStarted:e=>i.push(`/builds/${e}`),open:d,worktreeId:t})]})}],448295)},942230,455329,756283,e=>{"use strict";var t=e.i(843476),a=e.i(861745),r=e.i(948148),s=e.i(487486),n=e.i(784774),i=e.i(975157);function l({label:e,additions:a,deletions:r}){return(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 whitespace-nowrap text-muted-foreground",children:[(0,t.jsx)("span",{children:e}),(0,t.jsx)(o,{additions:a,deletions:r})]})}function o({additions:e,deletions:a}){return null===e&&null===a?(0,t.jsx)("span",{className:"text-muted-foreground",children:"—"}):(0,t.jsxs)("span",{className:"inline-flex gap-1 tabular-nums",children:[(0,t.jsxs)("span",{className:"text-emerald-700 dark:text-emerald-400",children:["+",e??0]}),(0,t.jsxs)("span",{className:"text-red-700 dark:text-red-400",children:["−",a??0]})]})}e.s(["WorktreeDetailPanel",0,function({detail:e,inline:d=!1}){let c=(0,r.useTranslations)("worktrees"),u=(0,a.useLocale)();return(0,t.jsxs)("div",{className:(0,i.cn)("w-full space-y-4",d&&"border-t pt-4"),"data-testid":"worktree-detail","data-worktree-navigation-ignore":d?"true":void 0,children:[(0,t.jsxs)("section",{className:"w-full",children:[(0,t.jsx)("h2",{className:"mb-2 font-medium",children:c("changes",{count:e.changes.length})}),(0,t.jsx)("div",{className:(0,i.cn)("overflow-auto rounded-md border",d&&"max-h-80"),children:e.changes.length?(0,t.jsx)(n.Table,{"aria-label":c("changes",{count:e.changes.length}),className:"min-w-[36rem] table-fixed text-xs",children:(0,t.jsx)(n.TableBody,{children:e.changes.map(e=>(0,t.jsxs)(n.TableRow,{children:[(0,t.jsx)(n.TableCell,{className:"max-w-0 px-2 py-1.5 font-mono",children:(0,t.jsx)("span",{className:"block truncate",title:e.path,children:e.path})}),(0,t.jsx)(n.TableCell,{className:"w-px px-2 py-1.5",children:(0,t.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[e.conflicted&&(0,t.jsx)(s.Badge,{className:"px-1.5",variant:"destructive",children:c("conflicted")}),e.staged&&(0,t.jsx)(l,{additions:e.stagedAdditions,deletions:e.stagedDeletions,label:c("staged")}),e.unstaged&&(0,t.jsx)(l,{additions:e.unstagedAdditions,deletions:e.unstagedDeletions,label:c("unstaged")}),e.untracked&&(0,t.jsx)(l,{additions:e.unstagedAdditions,deletions:e.unstagedDeletions,label:c("untracked")})]})})]},e.path))})}):(0,t.jsx)("p",{className:"p-3 text-sm text-muted-foreground",children:c("noChanges")})})]}),(0,t.jsxs)("section",{className:"w-full",children:[(0,t.jsx)("h2",{className:"mb-2 font-medium",children:c("commits",{count:e.commits.length})}),(0,t.jsx)("div",{className:(0,i.cn)("overflow-auto rounded-md border",d&&"max-h-80"),children:e.commits.length?(0,t.jsx)(n.Table,{"aria-label":c("commits",{count:e.commits.length}),className:"min-w-[36rem] table-fixed text-xs",children:(0,t.jsx)(n.TableBody,{children:e.commits.map(e=>(0,t.jsxs)(n.TableRow,{children:[(0,t.jsx)(n.TableCell,{className:"w-24 px-2 py-1.5 font-mono text-muted-foreground",children:e.sha.slice(0,8)}),(0,t.jsx)(n.TableCell,{className:"max-w-0 px-2 py-1.5",children:(0,t.jsxs)("div",{className:"flex min-w-0 items-baseline gap-2",children:[(0,t.jsx)("span",{className:"truncate font-medium",children:e.subject}),(0,t.jsxs)("span",{className:"shrink-0 text-muted-foreground",children:[e.authorName," ·"," ",new Date(e.authoredAt).toLocaleString(u)]})]})}),(0,t.jsx)(n.TableCell,{className:"w-24 px-2 py-1.5 text-right",children:(0,t.jsx)(o,{additions:e.additions,deletions:e.deletions})})]},e.sha))})}):(0,t.jsx)("p",{className:"p-3 text-sm text-muted-foreground",children:c("noCommits")})})]}),(e.commitsTruncated||e.changesTruncated)&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:c("truncated")})]})}],942230);let d=`
28
- id codebaseId gitDirectory folder relativePath primary branch headSha upstream ahead behind syncState
29
- baseBranch baseBranchOverride baseAhead baseBehind hasStagedChanges hasUnstagedChanges highlightColor availability statusError
30
- pushStatus
31
- ticketKey ticketTitle ticketStatus lastCheckedAt missingAt createdAt updatedAt
32
- tags { id name color createdAt updatedAt }
33
- activeJob { id agentId kind payload status idempotencyKey result error timeoutSeconds createdAt startedAt finishedAt updatedAt }
34
- pullRequest { id number title url repositoryGithubId repositoryNameWithOwner repositoryUrl labels jiraKey pipelineStatus pipelines { id name status url checkSuiteId canRetry retryUnavailableReason jobs { id name status url canRetry retryUnavailableReason steps { number name status } } } reviewDecision unresolvedReviewThreadCount createdAt }
35
- `,c=`
36
- id folder observedOrigin branch headSha upstream ahead behind syncState availability statusError
37
- defaultBranch localBranches remoteBranches lastCheckedAt lastFetchedAt lastFetchAttemptAt lastFetchError createdAt updatedAt
38
- `,u=`mutation InspectWorktree($id: ID!, $requestId: ID!) {
39
- inspectWorktree(id: $id, requestId: $requestId) {
40
- commits { sha subject authorName authoredAt additions deletions }
41
- changes { path staged unstaged untracked conflicted stagedAdditions stagedDeletions unstagedAdditions unstagedDeletions }
42
- commitsTruncated changesTruncated
43
- }
44
- }`;e.s(["CODEBASE_FIELDS",0,c,"INSPECT_WORKTREE_MUTATION",0,u,"WORKTREE_FIELDS",0,d],455329);var h=e.i(271645),g=e.i(462777),p=e.i(637611);async function m(e){return(await (0,p.controlPlaneRequest)(u,{id:e,requestId:(0,g.createClientId)()})).inspectWorktree}e.s(["inspectWorktree",0,m,"useLiveWorktree",0,function(e){let[t,a]=(0,h.useState)(null),r=(0,h.useCallback)(t=>{a(a=>({sourceUpdatedAt:e.updatedAt,value:a?.sourceUpdatedAt===e.updatedAt?{...a.value,...t}:t}))},[e.updatedAt]),s=(0,h.useCallback)(e=>{let t={};null!==e.hasStagedChanges&&(t.hasStagedChanges=e.hasStagedChanges),null!==e.hasUnstagedChanges&&(t.hasUnstagedChanges=e.hasUnstagedChanges),null!==e.pushStatus&&(t.pushStatus=e.pushStatus),"string"==typeof e.headSha&&Object.assign(t,{branch:e.branch,headSha:e.headSha,upstream:e.upstream,ahead:e.ahead,behind:e.behind,syncState:e.syncState??"UNKNOWN",baseAhead:e.baseAhead,baseBehind:e.baseBehind}),Object.keys(t).length&&r(t)},[r]);return{worktree:t?.sourceUpdatedAt===e.updatedAt?{...e,...t.value}:e,applyActivity:s,setUnstagedChanges:(0,h.useCallback)(e=>r({hasUnstagedChanges:e}),[r])}},"useQueuedWorktreeInspection",0,function(e){let t=(0,h.useRef)(!1),a=(0,h.useRef)(!1);return(0,h.useCallback)(async()=>{if(t.current){a.current=!0;return}t.current=!0;try{do a.current=!1,await e();while(a.current)}finally{t.current=!1}},[e])},"useWorktreeActivitySubscription",0,function(e,t,a){let r=(0,h.useRef)(a);(0,h.useEffect)(()=>{r.current=a},[a]),(0,h.useEffect)(()=>{if(!t)return;let a=!1,s=0,n=null,i=()=>void 0,l=e=>{a||e!==s||null!==n||(n=window.setTimeout(()=>{n=null,o()},1e3))},o=()=>{let t=++s;i=(0,p.controlPlaneSubscriptions)().subscribe({query:`subscription WorktreeInspectionChanged($worktreeId: ID!) {
45
- worktreeInspectionChanged(worktreeId: $worktreeId) {
46
- worktreeId branch headSha upstream ahead behind syncState baseAhead baseBehind
47
- hasStagedChanges hasUnstagedChanges pushStatus observedAt
48
- }
49
- }`,variables:{worktreeId:e}},{next:e=>{let t=e.data?.worktreeInspectionChanged;t&&r.current(t)},error:()=>l(t),complete:()=>l(t)})};return o(),()=>{a=!0,s+=1,null!==n&&window.clearTimeout(n),i()}},[t,e])}],756283)},267572,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(876561),s=e.i(635416),n=e.i(768877),i=e.i(96892),l=e.i(689664),o=e.i(716327),d=e.i(867927),c=e.i(452330),u=e.i(482022),h=e.i(269846),g=e.i(634398),p=e.i(851817),m=e.i(882505),x=e.i(648119),b=e.i(939050),j=e.i(506184),v=e.i(515281),f=e.i(77071),w=e.i(741120),k=e.i(395925),y=e.i(856522),S=e.i(566595),C=e.i(868401),I=e.i(573474),T=e.i(725981),N=e.i(861745),A=e.i(948148),D=e.i(778434),E=e.i(448295),B=e.i(346194),R=e.i(647776),W=e.i(948812),L=e.i(356505),P=e.i(929592),_=e.i(487486),$=e.i(519455),O=e.i(515288),M=e.i(59497),U=e.i(776639),q=e.i(755146),F=e.i(82612),H=e.i(793479),V=e.i(906197),G=e.i(110204),K=e.i(337822),z=e.i(337355),J=e.i(987968),Y=e.i(967489),Q=e.i(784774),X=e.i(808562),Z=e.i(462777),ee=e.i(637611),et=e.i(975157),ea=e.i(520133),er=e.i(284494),es=e.i(942230),en=e.i(455329),ei=e.i(756283),el=e.i(440289),eo=e.i(940276);let ed=["gray","stone","red","rose","orange","amber","yellow","lime","green","emerald","teal","cyan","sky","blue","indigo","violet","purple","fuchsia","pink"],ec="worktrees-layout",eu="__all__";function eh(e,t){return e.some(e=>("string"==typeof e||"number"==typeof e)&&String(e).toLocaleLowerCase().includes(t))}function eg(e,t){let a=t.query.trim().toLocaleLowerCase();return a||t.agentId||t.repositoryId?e.flatMap(e=>{if(t.agentId&&e.agent.id!==t.agentId)return[];let r=a.length>0&&eh([e.agent.id,e.agent.name,e.agent.hostname],a),s=e.codebases.flatMap(e=>{if(t.repositoryId&&e.repository.id!==t.repositoryId)return[];let s=a.length>0&&eh([e.repository.id,e.repository.name,e.repository.description,e.repository.canonicalOrigin,e.repository.displayOrigin,e.codebase.id,e.codebase.folder,e.codebase.observedOrigin,e.codebase.branch,e.codebase.defaultBranch],a),n=!a||r||s?e.worktrees:e.worktrees.filter(e=>eh([e.id,e.branch,e.folder,e.relativePath,e.ticketKey,e.ticketTitle,e.ticketStatus,e.pullRequest?.number,e.pullRequest?.title,e.pullRequest?.repositoryNameWithOwner,e.pullRequest?.jiraKey,...e.tags.map(e=>e.name)],a));return n.length?[{...e,worktrees:n}]:[]});return s.length?[{...e,codebases:s}]:[]}):e}function ep(e,t){if(!t)return e;let a=/^[A-Za-z]:[\\/]/.test(t)||t.startsWith("\\\\"),r=a?"\\":"/",s=e=>a?e.replaceAll("/","\\"):e,n=e=>(a?/^[A-Za-z]:\\$/.test(e):"/"===e)?e:e.replace(/[\\/]+$/,""),i=n(s(t)),l=n(s(e)),o=a?i.toLocaleLowerCase():i,d=a?l.toLocaleLowerCase():l;if(d===o)return".";let c=i.endsWith(r)?i:`${i}${r}`,u=a?c.toLocaleLowerCase():c;return d.startsWith(u)?l.slice(c.length):e}function em(e){return{hasChanges:e.hasStagedChanges||e.hasUnstagedChanges,stageOperation:e.hasStagedChanges&&!e.hasUnstagedChanges?"UNSTAGE_ALL":"STAGE_ALL"}}let ex={gray:"border-slate-500/30 bg-slate-500/10 hover:border-slate-500/50 hover:bg-slate-500/20",stone:"border-stone-500/30 bg-stone-500/10 hover:border-stone-500/50 hover:bg-stone-500/20",red:"border-red-500/30 bg-red-500/10 hover:border-red-500/50 hover:bg-red-500/20",rose:"border-rose-500/30 bg-rose-500/10 hover:border-rose-500/50 hover:bg-rose-500/20",orange:"border-orange-500/30 bg-orange-500/10 hover:border-orange-500/50 hover:bg-orange-500/20",amber:"border-amber-500/30 bg-amber-500/10 hover:border-amber-500/50 hover:bg-amber-500/20",yellow:"border-yellow-500/30 bg-yellow-500/10 hover:border-yellow-500/50 hover:bg-yellow-500/20",lime:"border-lime-500/30 bg-lime-500/10 hover:border-lime-500/50 hover:bg-lime-500/20",green:"border-green-500/30 bg-green-500/10 hover:border-green-500/50 hover:bg-green-500/20",emerald:"border-emerald-500/30 bg-emerald-500/10 hover:border-emerald-500/50 hover:bg-emerald-500/20",teal:"border-teal-500/30 bg-teal-500/10 hover:border-teal-500/50 hover:bg-teal-500/20",cyan:"border-cyan-500/30 bg-cyan-500/10 hover:border-cyan-500/50 hover:bg-cyan-500/20",sky:"border-sky-500/30 bg-sky-500/10 hover:border-sky-500/50 hover:bg-sky-500/20",blue:"border-blue-500/30 bg-blue-500/10 hover:border-blue-500/50 hover:bg-blue-500/20",indigo:"border-indigo-500/30 bg-indigo-500/10 hover:border-indigo-500/50 hover:bg-indigo-500/20",violet:"border-violet-500/30 bg-violet-500/10 hover:border-violet-500/50 hover:bg-violet-500/20",purple:"border-purple-500/30 bg-purple-500/10 hover:border-purple-500/50 hover:bg-purple-500/20",fuchsia:"border-fuchsia-500/30 bg-fuchsia-500/10 hover:border-fuchsia-500/50 hover:bg-fuchsia-500/20",pink:"border-pink-500/30 bg-pink-500/10 hover:border-pink-500/50 hover:bg-pink-500/20"},eb={gray:"border-slate-500/40 bg-slate-500/15 text-slate-700 dark:text-slate-300",stone:"border-stone-500/40 bg-stone-500/15 text-stone-700 dark:text-stone-300",red:"border-red-500/40 bg-red-500/15 text-red-700 dark:text-red-300",rose:"border-rose-500/40 bg-rose-500/15 text-rose-700 dark:text-rose-300",orange:"border-orange-500/40 bg-orange-500/15 text-orange-700 dark:text-orange-300",amber:"border-amber-500/40 bg-amber-500/15 text-amber-800 dark:text-amber-300",yellow:"border-yellow-500/40 bg-yellow-500/15 text-yellow-800 dark:text-yellow-300",lime:"border-lime-500/40 bg-lime-500/15 text-lime-800 dark:text-lime-300",green:"border-green-500/40 bg-green-500/15 text-green-700 dark:text-green-300",emerald:"border-emerald-500/40 bg-emerald-500/15 text-emerald-700 dark:text-emerald-300",teal:"border-teal-500/40 bg-teal-500/15 text-teal-700 dark:text-teal-300",cyan:"border-cyan-500/40 bg-cyan-500/15 text-cyan-700 dark:text-cyan-300",sky:"border-sky-500/40 bg-sky-500/15 text-sky-700 dark:text-sky-300",blue:"border-blue-500/40 bg-blue-500/15 text-blue-700 dark:text-blue-300",indigo:"border-indigo-500/40 bg-indigo-500/15 text-indigo-700 dark:text-indigo-300",violet:"border-violet-500/40 bg-violet-500/15 text-violet-700 dark:text-violet-300",purple:"border-purple-500/40 bg-purple-500/15 text-purple-700 dark:text-purple-300",fuchsia:"border-fuchsia-500/40 bg-fuchsia-500/15 text-fuchsia-700 dark:text-fuchsia-300",pink:"border-pink-500/40 bg-pink-500/15 text-pink-700 dark:text-pink-300"},ej={gray:"border-slate-600 bg-slate-500",stone:"border-stone-600 bg-stone-500",red:"border-red-600 bg-red-500",rose:"border-rose-600 bg-rose-500",orange:"border-orange-600 bg-orange-500",amber:"border-amber-600 bg-amber-500",yellow:"border-yellow-600 bg-yellow-500",lime:"border-lime-600 bg-lime-500",green:"border-green-600 bg-green-500",emerald:"border-emerald-600 bg-emerald-500",teal:"border-teal-600 bg-teal-500",cyan:"border-cyan-600 bg-cyan-500",sky:"border-sky-600 bg-sky-500",blue:"border-blue-600 bg-blue-500",indigo:"border-indigo-600 bg-indigo-500",violet:"border-violet-600 bg-violet-500",purple:"border-purple-600 bg-purple-500",fuchsia:"border-fuchsia-600 bg-fuchsia-500",pink:"border-pink-600 bg-pink-500"};function ev({moves:e,onReload:r,onError:s,onNotice:n}){let i=(0,A.useTranslations)("worktrees"),[l,o]=(0,a.useState)(null),d=async e=>{o(e.id);try{await (0,ee.controlPlaneRequest)(`mutation RetryWorktreeMove($id: ID!) {
50
- retryWorktreeMoveWithStash(id: $id) { id status }
51
- }`,{id:e.id});let t=await (0,el.waitForWorktreeMove)(e.id);if("FAILED"===t.status)throw Error(t.error||i("moveFailed"));n("SUCCEEDED_WITH_WARNING"===t.status?t.warning||i("moveCompletedWithWarning"):i("moveCompleted")),s(null),await r()}catch(e){s(e instanceof Error?e.message:String(e))}finally{o(null)}},c=async e=>{o(e.id);try{await (0,ee.controlPlaneRequest)(`mutation CancelWorktreeMove($id: ID!) {
52
- cancelWorktreeMove(id: $id) { id status }
53
- }`,{id:e.id}),n(i("moveCancelled")),s(null),await r()}catch(e){s(e instanceof Error?e.message:String(e))}finally{o(null)}};return(0,t.jsx)("div",{className:"space-y-2",children:e.map(e=>(0,t.jsx)(P.Alert,{children:(0,t.jsxs)(P.AlertDescription,{className:"flex flex-wrap items-center justify-between gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-medium",children:i("moveProgress",{branch:e.branch})}),(0,t.jsx)("p",{className:"text-muted-foreground",children:"AWAITING_STASH"===e.status?e.error||i("moveNeedsStash"):i(`moveStatus.${e.status}`)})]}),"AWAITING_STASH"===e.status?(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)($.Button,{disabled:l===e.id,onClick:()=>void c(e),size:"sm",variant:"outline",children:i("cancelMove")}),(0,t.jsxs)($.Button,{disabled:l===e.id,onClick:()=>void d(e),size:"sm",children:[l===e.id&&(0,t.jsx)(J.Spinner,{}),i("stashAndContinue")]})]}):(0,t.jsx)(J.Spinner,{})]})},e.id))})}function ef(e,t){return{codebaseId:e.codebase.id,...t?{worktreeId:t.id}:{},defaultBranch:e.codebase.defaultBranch,currentBranch:t?.branch,currentBaseBranch:t?.baseBranch,localBranches:e.codebase.localBranches,remoteBranches:e.codebase.remoteBranches,unavailableBranches:e.worktrees.flatMap(e=>e.branch&&e.id!==t?.id?[e.branch]:[])}}function ew({overview:e,onCreated:r}){let s=(0,A.useTranslations)("worktrees"),n=e.agents.flatMap(e=>e.codebases.flatMap(t=>"ONLINE"===e.agent.connectionStatus&&e.agent.capabilities.includes("worktree.branch")&&"AVAILABLE"===t.codebase.availability&&!t.worktrees.some(e=>e.activeJob)?[{agentGroup:e,group:t}]:[])),[i,l]=(0,a.useState)(1===n.length?n[0].group.codebase.id:""),[o,d]=(0,a.useState)(!1),c=n.some(e=>e.group.codebase.id===i)?i:1===n.length?n[0].group.codebase.id:"",u=n.find(e=>e.group.codebase.id===c),h=n.map(({agentGroup:e,group:t})=>({value:t.codebase.id,label:`${t.repository.name} \xb7 ${e.agent.name}`,description:t.codebase.folder,keywords:`${t.repository.displayOrigin} ${e.agent.hostname}`})),g=async e=>{if(!u)throw Error(s("selectCodebase"));d(!0);try{let t=await (0,ee.controlPlaneRequest)(`mutation CreateWorktree($input: CreateWorktreeInput!) {
54
- createWorktree(input: $input) { id }
55
- }`,{input:{codebaseId:u.group.codebase.id,selection:e,requestId:(0,Z.createClientId)()}});await (0,el.waitForWorktreeJob)(t.createWorktree.id),await r()}finally{d(!1)}};return(0,t.jsxs)(O.Card,{children:[(0,t.jsx)(O.CardHeader,{className:"border-b",children:(0,t.jsxs)(O.CardTitle,{className:"flex items-center gap-2",children:[(0,t.jsx)(f.Plus,{})," ",s("createWorktree")]})}),(0,t.jsxs)(O.CardContent,{className:"space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(G.Label,{className:"mb-1.5 block",children:s("repositoryCheckout")}),(0,t.jsx)(z.SearchableSelect,{ariaLabel:s("repositoryCheckout"),disabled:o||0===h.length,emptyMessage:s("noEligibleCodebases"),onValueChange:l,options:h,placeholder:s("selectCodebase"),searchPlaceholder:s("searchCodebases"),value:c})]}),u?(0,t.jsx)(er.WorktreeBranchForm,{busy:o,onSubmit:g,submitLabel:s("createWorktree"),target:ef(u.group)},u.group.codebase.id):(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:h.length?s("selectCodebaseHelp"):s("noEligibleCodebases")})]})]})}function ek({agentGroup:e,layout:a,allTags:r,editorVariant:s,inspectionRefreshToken:n,onReload:i,onUpdate:l,onError:o,onManageTags:d,onOpenTicket:c,overview:u}){let h=(0,A.useTranslations)("worktrees"),g="ONLINE"===e.agent.connectionStatus&&e.agent.capabilities.includes("worktree.watch"),p="ONLINE"===e.agent.connectionStatus&&e.agent.capabilities.includes("worktree.branch");return(0,t.jsxs)("section",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 border-b pb-2",children:[(0,t.jsx)("h2",{className:"text-lg font-semibold",children:e.agent.name}),(0,t.jsx)(_.Badge,{children:h("ONLINE"===e.agent.connectionStatus?"online":"offline")}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:e.agent.hostname})]}),e.codebases.map(h=>(0,t.jsxs)("section",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"font-medium",children:h.repository.name}),(0,t.jsx)("p",{className:"font-mono text-xs text-muted-foreground",children:h.repository.displayOrigin})]}),(0,t.jsx)(ey,{codebase:h.codebase})]}),"cards"===a?(0,t.jsx)("div",{className:"space-y-3",children:h.worktrees.map(a=>(0,t.jsx)(eS,{allTags:r,baseRepoDirectory:e.agent.baseRepoDirectory,branchManagementEnabled:p,editorVariant:s,group:h,inspectionRefreshToken:n,liveUpdatesEnabled:g,onError:o,onManageTags:d,onOpenTicket:c,onReload:i,onUpdate:l,overview:u,worktree:a},a.id))}):(0,t.jsx)(eU,{allTags:r,baseRepoDirectory:e.agent.baseRepoDirectory,branchManagementEnabled:p,editorVariant:s,group:h,inspectionRefreshToken:n,liveUpdatesEnabled:g,onError:o,onManageTags:d,onOpenTicket:c,onReload:i,onUpdate:l,overview:u})]},h.codebase.id))]})}function ey({codebase:e}){let r=(0,A.useTranslations)("worktrees"),s=(0,N.useLocale)(),[n,i]=(0,a.useState)(null);(0,a.useEffect)(()=>{let e=()=>i(new Date().getTime()),t=window.setTimeout(e,0),a=window.setInterval(e,1e3);return()=>{window.clearTimeout(t),window.clearInterval(a)}},[]);let l=e.lastFetchedAt&&null!==n?Math.max(0,n-new Date(e.lastFetchedAt).getTime()):null,o=null===l?r("neverFetched"):l<6e4?r("secondsAgo",{count:Math.floor(l/1e3)}):new Intl.RelativeTimeFormat(s,{numeric:"auto"}).format(-Math.floor(l/6e4),"minute");return(0,t.jsx)("span",{className:(0,et.cn)("text-xs text-muted-foreground",e.lastFetchError&&"text-destructive"),title:e.lastFetchError??void 0,children:r("lastFetched",{value:o})})}function eS(e){let{inspectionRefreshToken:r,onError:s}=e,{worktree:n,applyActivity:i,setUnstagedChanges:l}=(0,ei.useLiveWorktree)(e.worktree),c={...e,worktree:n},[u,h]=(0,a.useState)(!1),[g,p]=(0,a.useState)(null),[m,x]=(0,a.useState)(!1),b=(0,a.useRef)(0),j=(0,a.useRef)(r),v=(0,A.useTranslations)("worktrees"),f=(0,ea.useRouter)(),w=(0,a.useCallback)(async()=>{let e=++b.current;x(!0);try{let t=await (0,ei.inspectWorktree)(n.id);if(e!==b.current)return;p(t),l(t.changes.some(e=>e.unstaged||e.untracked||e.conflicted)),s(null)}catch(t){e===b.current&&s(t instanceof Error?t.message:String(t))}finally{e===b.current&&x(!1)}},[s,l,n.id]),k=(0,ei.useQueuedWorktreeInspection)(w),y=(0,a.useCallback)(e=>{i(e),u&&k()},[i,u,k]);(0,ei.useWorktreeActivitySubscription)(n.id,e.liveUpdatesEnabled&&"AVAILABLE"===n.availability,y),(0,a.useEffect)(()=>{if(j.current===r||(j.current=r,!u))return;let e=window.setTimeout(()=>void k(),0);return()=>window.clearTimeout(e)},[u,r,k]);let S=()=>{let e=!u;h(e),e&&!g&&k()};return(0,t.jsxs)(O.Card,{className:(0,et.cn)("cursor-pointer transition-colors hover:bg-muted/30",n.highlightColor&&ex[n.highlightColor]),onClick:e=>{(0,eo.shouldNavigateWorktreeSurface)(e)&&f.push((0,eo.worktreeDetailHref)(n.id))},children:[(0,t.jsxs)(O.CardHeader,{className:"grid-cols-1! border-b @md/card-header:grid-cols-[minmax(0,1fr)_auto]!",children:[(0,t.jsxs)(O.CardTitle,{className:"min-w-0",children:[(0,t.jsxs)($.Button,{"aria-expanded":u,className:"h-auto w-full max-w-full justify-start gap-1 p-1 text-left",onClick:()=>void S(),variant:"ghost",children:[u?(0,t.jsx)(o.ChevronDown,{}):(0,t.jsx)(d.ChevronRight,{}),(0,t.jsx)("span",{className:"truncate font-mono",children:n.branch??n.headSha?.slice(0,10)??v("detached")})]}),(n.ticketKey||n.ticketTitle)&&(0,t.jsx)(eI,{...c})]}),(0,t.jsxs)(O.CardAction,{className:"col-start-1 row-span-1 row-start-auto flex max-w-full flex-wrap items-center justify-start gap-1 justify-self-start @md/card-header:col-start-2 @md/card-header:row-span-2 @md/card-header:row-start-1 @md/card-header:justify-end @md/card-header:justify-self-end",children:[(0,t.jsx)(eR,{worktree:n}),n.hasUnstagedChanges&&(0,t.jsx)(_.Badge,{variant:"destructive",children:v("dirty")}),(0,t.jsx)(eC,{worktree:n}),(0,t.jsx)(eP,{...c})]})]}),(0,t.jsxs)(O.CardContent,{className:"space-y-4",children:[(0,t.jsx)(eT,{...c,detailsExpanded:u,onToggleDetails:S}),m&&(0,t.jsxs)("p",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(J.Spinner,{})," ",v("loadingDetails")]}),u&&g&&(0,t.jsx)(es.WorktreeDetailPanel,{detail:g,inline:!0})]}),(0,t.jsx)(O.CardFooter,{className:"flex-wrap gap-2","data-worktree-navigation-ignore":!0,children:(0,t.jsx)(eO,{...c,onCompleted:async()=>{await e.onReload(),u&&await k()}})})]})}function eC({worktree:e}){let a=(0,A.useTranslations)("worktrees"),r=e.branch??e.headSha?.slice(0,10)??a("detached"),s=a("openWorktreeDetails",{branch:r});return(0,t.jsx)($.Button,{asChild:!0,size:"icon-sm",variant:"ghost",children:(0,t.jsx)(ea.Link,{"aria-label":s,href:(0,eo.worktreeDetailHref)(e.id),title:s,children:(0,t.jsx)(n.ArrowRight,{})})})}function eI({worktree:e,onOpenTicket:a,compact:r=!1}){let s=`${e.ticketKey??""}${e.ticketTitle?`${e.ticketKey?" — ":""}${e.ticketTitle}`:""}`;return(0,t.jsxs)("div",{className:(0,et.cn)("flex max-w-full flex-wrap items-center gap-1.5 font-normal",r?"mt-0.5 text-xs":"mt-1 text-sm"),children:[e.ticketKey?(0,t.jsx)($.Button,{className:"h-auto min-w-0 justify-start truncate p-0 text-left font-normal",onClick:()=>a(e.ticketKey),title:s,type:"button",variant:"link",children:s}):(0,t.jsx)("p",{className:"min-w-0 truncate text-muted-foreground",title:s,children:s}),e.ticketStatus&&(e.ticketKey?(0,t.jsx)(_.Badge,{asChild:!0,variant:"secondary",children:(0,t.jsx)("button",{onClick:()=>a(e.ticketKey),type:"button",children:e.ticketStatus})}):(0,t.jsx)(_.Badge,{variant:"secondary",children:e.ticketStatus}))]})}function eT(e){let{worktree:a,group:r,baseRepoDirectory:s,detailsExpanded:n,onToggleDetails:i}=e,l=(0,A.useTranslations)("worktrees");return(0,t.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,t.jsxs)("div",{className:"grid gap-3 md:grid-cols-2",children:[(0,t.jsx)(eH,{label:l("path"),mono:!0,value:ep(a.folder,s)}),(0,t.jsx)(eW,{...e})]}),(0,t.jsx)(eN,{label:l("upToDate"),children:(0,t.jsx)(eD,{worktree:a})}),(0,t.jsx)(eA,{...e}),(0,t.jsx)(eN,{label:l("pullRequest"),children:(0,t.jsx)(eE,{detailsExpanded:n,onToggleDetails:i,worktree:a})}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[a.statusError&&(0,t.jsx)("span",{className:"text-xs text-destructive",children:a.statusError}),!r.codebase.defaultBranch&&!a.baseBranchOverride&&(0,t.jsx)("span",{className:"text-xs text-destructive",children:l("baseUnavailable")})]})]})}function eN({label:e,children:a}){return(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)("p",{className:"w-24 shrink-0 text-xs text-muted-foreground",children:e}),(0,t.jsx)("div",{className:"flex min-w-0 flex-wrap items-center gap-1.5",children:a})]})}function eA({compact:e=!1,...a}){let{worktree:r}=a,s=(0,A.useTranslations)("worktrees");return(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[!e&&(0,t.jsx)("span",{className:"w-24 shrink-0 text-xs text-muted-foreground",children:s("tags")}),(0,t.jsx)(eP,{...a,contentAlign:e?"end":"start",contentAlignOffset:e?0:-100,trigger:(0,t.jsx)($.Button,{"aria-label":`${s("tags")}: ${r.branch??s("detached")}`,className:(0,et.cn)("h-auto min-h-7 max-w-full justify-start px-1 py-1 text-left font-normal",!e&&"-mx-1"),type:"button",variant:"ghost",children:(0,t.jsxs)("span",{className:"flex min-w-0 flex-wrap items-center gap-1.5",children:[r.tags.map(e=>(0,t.jsx)(eF,{tag:e},e.id)),!r.tags.length&&(0,t.jsx)("span",{className:"text-muted-foreground",children:"—"})]})})})]})}function eD({worktree:e}){let a=(0,A.useTranslations)("worktrees"),r=0===e.baseBehind;return(0,t.jsx)(_.Badge,{className:r?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":null===e.baseBehind?void 0:"border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300",variant:"outline",children:null===e.baseBehind?a("unknown"):r?a("yes"):a("notUpToDate",{count:e.baseBehind})})}function eE({worktree:e,detailsExpanded:a,onToggleDetails:r}){var s;let n=(0,A.useTranslations)("worktrees");return(0,t.jsxs)(t.Fragment,{children:[e.pullRequest?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eB,{pullRequest:e.pullRequest}),(0,t.jsx)(R.PipelineMenu,{pipelineStatus:e.pullRequest.pipelineStatus,pipelines:e.pullRequest.pipelines,repositoryId:e.pullRequest.repositoryGithubId}),(0,t.jsx)(_.Badge,{className:"APPROVED"===(s=e.pullRequest.reviewDecision)?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"CHANGES_REQUESTED"===s?"border-red-500/30 bg-red-500/10 text-red-700 dark:text-red-300":"border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300",children:n(`review.${e.pullRequest.reviewDecision}`)}),(0,t.jsx)(_.Badge,{asChild:!0,className:0===e.pullRequest.unresolvedReviewThreadCount?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300",children:(0,t.jsx)(ea.Link,{href:(0,W.pullRequestCommentsHref)(e.pullRequest),children:n("comments",{count:e.pullRequest.unresolvedReviewThreadCount})})})]}):(0,t.jsx)("span",{className:"text-muted-foreground",children:"—"}),r?(0,t.jsx)(_.Badge,{asChild:!0,variant:"secondary",children:(0,t.jsx)("button",{"aria-expanded":a,onClick:r,type:"button",children:n("branchCommits",{count:e.baseAhead??0})})}):(0,t.jsx)(_.Badge,{variant:"secondary",children:n("branchCommits",{count:e.baseAhead??0})})]})}function eB({pullRequest:e}){let a=(0,A.useTranslations)("worktrees");return(0,t.jsxs)(q.DropdownMenu,{children:[(0,t.jsx)(q.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsx)(_.Badge,{asChild:!0,children:(0,t.jsxs)("button",{type:"button",children:["PR #",e.number]})})}),(0,t.jsxs)(q.DropdownMenuContent,{align:"start",className:"w-44",children:[(0,t.jsx)(q.DropdownMenuItem,{asChild:!0,children:(0,t.jsxs)("a",{href:e.url,rel:"noreferrer",target:"_blank",children:[(0,t.jsx)(u.ExternalLink,{}),a("openInGitHub")]})}),(0,t.jsx)(q.DropdownMenuItem,{asChild:!0,children:(0,t.jsxs)(ea.Link,{href:(0,W.pullRequestDetailHref)(e),children:[(0,t.jsx)(g.GitPullRequest,{}),a("openDetails")]})})]})]})}function eR({worktree:e}){var a,r;let n=(0,A.useTranslations)("worktrees");return"IN_SYNC"===e.syncState||0===e.ahead&&0===e.behind?(0,t.jsx)(_.Badge,{className:"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300",variant:"outline",children:n("inSync")}):null!==e.ahead||null!==e.behind?(0,t.jsxs)(t.Fragment,{children:[null!==e.ahead&&(0,t.jsxs)(_.Badge,{className:"border-blue-500/30 bg-blue-500/10 text-blue-700 dark:text-blue-300",variant:"outline",children:[(0,t.jsx)(i.ArrowUp,{"data-icon":"inline-start"}),n("ahead",{count:e.ahead})]}),null!==e.behind&&(0,t.jsxs)(_.Badge,{className:"border-blue-500/30 bg-blue-500/10 text-blue-700 dark:text-blue-300",variant:"outline",children:[(0,t.jsx)(s.ArrowDown,{"data-icon":"inline-start"}),n("behind",{count:e.behind})]})]}):(0,t.jsx)(_.Badge,{variant:"outline",children:(a=e,r=n,"AHEAD"===a.syncState?r("ahead",{count:a.ahead??0}):"BEHIND"===a.syncState?r("behind",{count:a.behind??0}):r("DIVERGED"===a.syncState?"diverged":"IN_SYNC"===a.syncState?"upToDate":"NO_UPSTREAM"===a.syncState?"unpublished":"DETACHED"===a.syncState?"detached":"unknown"))})}function eW(e){let{worktree:r,group:s,onUpdate:n,onError:i,compact:l=!1}=e,o=(0,A.useTranslations)("worktrees"),[d,c]=(0,a.useState)(!1),[u,h]=(0,a.useState)(!1),g="__inherit_remote_default__",p=Array.from(new Set([r.baseBranchOverride,s.codebase.defaultBranch,...s.codebase.remoteBranches].filter(e=>!!e))),m=async e=>{h(!0);try{let t=await (0,ee.controlPlaneRequest)(`mutation UpdateWorktreeBase($id: ID!, $baseBranch: String) {
56
- updateWorktreeBaseBranch(id: $id, baseBranch: $baseBranch) { ${en.WORKTREE_FIELDS} }
57
- }`,{id:r.id,baseBranch:e||null});n(t.updateWorktreeBaseBranch),i(null),c(!1)}catch(e){i(e instanceof Error?e.message:String(e))}finally{h(!1)}};return(0,t.jsxs)("div",{className:"min-w-0",children:[!l&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:o("baseBranch")}),(0,t.jsx)("div",{className:(0,et.cn)("flex min-h-6 min-w-0 items-center gap-1",!l&&"mt-0.5"),children:d?(0,t.jsxs)(Y.Select,{disabled:u,onOpenChange:c,onValueChange:e=>void m(e===g?"":e),open:d,value:r.baseBranchOverride??(s.codebase.defaultBranch?g:void 0),children:[(0,t.jsx)(Y.SelectTrigger,{"aria-label":o("baseBranch"),className:"h-7 min-w-40 max-w-full font-mono text-xs",size:"sm",children:(0,t.jsx)(Y.SelectValue,{placeholder:o("baseUnavailable")})}),(0,t.jsxs)(Y.SelectContent,{align:"start",children:[s.codebase.defaultBranch&&(0,t.jsxs)(Y.SelectItem,{value:g,children:[s.codebase.defaultBranch," · ",o("inheritBase")]}),p.map(e=>(0,t.jsx)(Y.SelectItem,{value:e,children:e},e))]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"truncate font-mono text-xs",title:r.baseBranch??void 0,children:r.baseBranch??"—"}),(0,t.jsx)($.Button,{"aria-label":o("editBase"),onClick:()=>c(!0),size:"icon-xs",variant:"ghost",children:(0,t.jsx)(v.Pencil,{})})]})})]})}function eL(e,t){let a=t.activeMoves.some(t=>t.sourceCodebaseId===e.group.codebase.id||t.targetCodebaseId===e.group.codebase.id);return"ONLINE"===e.agentGroup.agent.connectionStatus&&e.agentGroup.agent.capabilities.includes("worktree.move.checkout")&&"AVAILABLE"===e.group.codebase.availability&&!e.group.worktrees.some(e=>e.activeJob)&&!a}function eP(e){let r,s,{worktree:n,allTags:i,onUpdate:l,onError:o,onManageTags:d,contentAlign:c="end",contentAlignOffset:u=0,trigger:g}=e,p=(0,A.useTranslations)("worktrees"),[m,v]=(0,a.useState)(!1),[w,k]=(0,a.useState)(!1),[y,S]=(0,a.useState)(!1),[T,N]=(0,a.useState)(!1),[D,E]=(0,a.useState)(null),[B,R]=(0,a.useState)(null),W=(0,a.useRef)(!1),L=(r=e.overview.agents.find(t=>t.codebases.some(t=>t.codebase.id===e.group.codebase.id)))?e.overview.agents.flatMap(t=>t.agent.id===r.agent.id?[]:t.codebases.flatMap(a=>a.repository.id===e.group.repository.id?[{agentGroup:t,group:a}]:[])):[],_=(s=e.overview.agents.find(t=>t.codebases.some(t=>t.codebase.id===e.group.codebase.id)))&&"ONLINE"===s.agent.connectionStatus&&s.agent.capabilities.includes("worktree.move.push")?"AVAILABLE"!==e.worktree.availability||e.worktree.activeJob||e.overview.activeMoves.some(t=>t.sourceCodebaseId===e.group.codebase.id||t.targetCodebaseId===e.group.codebase.id)?p("moveBlocked.busy"):e.worktree.branch&&e.worktree.headSha?e.worktree.hasStagedChanges||e.worktree.hasUnstagedChanges||"DIRTY"===e.worktree.pushStatus?p("moveBlocked.dirty"):"BEHIND"===e.worktree.pushStatus?p("moveBlocked.behind"):"DIVERGED"===e.worktree.pushStatus?p("moveBlocked.diverged"):"READY"!==e.worktree.pushStatus?p("moveBlocked.unknown"):L.some(t=>eL(t,e.overview))?null:p("moveBlocked.destination"):p("moveBlocked.detached"):p("moveBlocked.agent"),O=e.overview.agents.find(t=>t.codebases.some(t=>t.codebase.id===e.group.codebase.id)),M=!O||"ONLINE"!==O.agent.connectionStatus||!O.agent.capabilities.includes("worktree.delete")||"AVAILABLE"!==n.availability||!!n.activeJob||e.overview.activeMoves.some(t=>t.sourceCodebaseId===e.group.codebase.id||t.targetCodebaseId===e.group.codebase.id),U=new Set(n.tags.map(e=>e.id)),F=async(e,t)=>{let a=t?[...U,e]:[...U].filter(t=>t!==e);try{let e=await (0,ee.controlPlaneRequest)(`mutation SetWorktreeTags($id: ID!, $tagIds: [ID!]!) { setWorktreeTags(id: $id, tagIds: $tagIds) { ${en.WORKTREE_FIELDS} } }`,{id:n.id,tagIds:a});l(e.setWorktreeTags),o(null)}catch(e){o(e instanceof Error?e.message:String(e))}},H=async e=>{try{let t=await (0,ee.controlPlaneRequest)(`mutation HighlightWorktree($id: ID!, $color: String) { updateWorktreeHighlight(id: $id, color: $color) { ${en.WORKTREE_FIELDS} } }`,{id:n.id,color:e});l(t.updateWorktreeHighlight),o(null)}catch(e){o(e instanceof Error?e.message:String(e))}},V=async(t,a=!1)=>{N(!0);try{let r=await (0,ee.controlPlaneRequest)(`mutation ChangeWorktreeBranch($input: ChangeWorktreeBranchInput!) {
58
- changeWorktreeBranch(input: $input) { id }
59
- }`,{input:{worktreeId:n.id,selection:t,requestId:(0,Z.createClientId)(),stashOnFailure:a}});await (0,el.waitForWorktreeJob)(r.changeWorktreeBranch.id),await e.onReload(),E(null),R(null),v(!1),o(null)}finally{N(!1)}},G=async()=>{if(D)try{R(null),await V(D,!0)}catch(e){R(e instanceof Error?e.message:String(e))}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(K.Popover,{onOpenChange:e=>{v(e),e||(E(null),R(null))},open:m,children:[(0,t.jsxs)(q.DropdownMenu,{children:[(0,t.jsx)(q.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsx)(K.PopoverAnchor,{asChild:!0,children:g??(0,t.jsx)($.Button,{"aria-label":p("customize"),size:"icon-sm",variant:"ghost",children:(0,t.jsx)(x.MoreHorizontal,{})})})}),(0,t.jsxs)(q.DropdownMenuContent,{align:c,alignOffset:u,className:"w-72",onCloseAutoFocus:e=>{W.current&&(W.current=!1,e.preventDefault(),v(!0))},children:[L.length>0&&(0,t.jsxs)(q.DropdownMenuItem,{disabled:!!_,onSelect:()=>k(!0),title:_??void 0,children:[(0,t.jsx)(b.MoveRight,{})," ",p("moveToAgent")]}),(0,t.jsxs)(q.DropdownMenuItem,{disabled:!e.branchManagementEnabled||"AVAILABLE"!==n.availability||!!n.activeJob,onSelect:()=>{W.current=!0},children:[(0,t.jsx)(h.GitBranch,{})," ",p("changeBranch")]}),(0,t.jsx)(q.DropdownMenuSeparator,{}),(0,t.jsxs)(q.DropdownMenuLabel,{className:"flex items-center gap-1.5 leading-none",children:[(0,t.jsx)(C.Tags,{className:"size-3"}),(0,t.jsx)("span",{children:p("tags")})]}),i.map(e=>(0,t.jsxs)(q.DropdownMenuCheckboxItem,{checked:U.has(e.id),onCheckedChange:t=>void F(e.id,!!t),children:[(0,t.jsx)("span",{className:(0,et.cn)("size-3 rounded-full border",ej[e.color])})," ",e.name]},e.id)),(0,t.jsxs)(q.DropdownMenuItem,{onSelect:d,children:[(0,t.jsx)(f.Plus,{})," ",p("manageTags")]}),(0,t.jsx)(q.DropdownMenuSeparator,{}),(0,t.jsxs)(q.DropdownMenuLabel,{className:"flex items-center gap-1.5 leading-none",children:[(0,t.jsx)(j.Paintbrush,{className:"size-3"}),(0,t.jsx)("span",{children:p("highlight")})]}),(0,t.jsxs)(X.ToggleGroup,{"aria-label":p("highlight"),className:"grid grid-cols-7 gap-1 p-2",onClick:e=>e.stopPropagation(),onValueChange:e=>{e&&H("__none__"===e?null:e)},size:"sm",spacing:1,type:"single",value:n.highlightColor??"__none__",variant:"outline",children:[(0,t.jsx)(X.ToggleGroupItem,{"aria-label":p("clearHighlight"),className:"size-7 min-w-0 p-0",value:"__none__",children:(0,t.jsx)(I.Trash2,{className:"size-3"})}),ed.map(e=>(0,t.jsx)(X.ToggleGroupItem,{"aria-label":e,className:(0,et.cn)("size-7 min-w-0 p-0",ej[e],"data-[state=on]:ring-2 data-[state=on]:ring-foreground"),value:e},e))]}),!n.primary&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(q.DropdownMenuSeparator,{}),(0,t.jsxs)(q.DropdownMenuItem,{disabled:M,onSelect:()=>S(!0),variant:"destructive",children:[(0,t.jsx)(I.Trash2,{})," ",p("deleteWorktree")]})]})]})]}),(0,t.jsxs)(K.PopoverContent,{align:c,className:"z-60 w-[min(28rem,calc(100vw-2rem))]",children:[(0,t.jsxs)("div",{className:"mb-4",children:[(0,t.jsx)("h3",{className:"font-semibold",children:p("changeBranch")}),(0,t.jsx)("p",{className:"mt-1 truncate font-mono text-xs text-muted-foreground",children:ep(n.folder,e.baseRepoDirectory)})]}),(0,t.jsx)(er.WorktreeBranchForm,{busy:T,onSubmit:e=>V(e),onSubmitError:e=>{E(n.hasStagedChanges||n.hasUnstagedChanges?e:null)},recovery:D?(0,t.jsx)(P.Alert,{children:(0,t.jsxs)(P.AlertDescription,{className:"space-y-2",children:[(0,t.jsx)("p",{children:p("stashRetryHelp")}),B&&(0,t.jsx)("p",{className:"text-destructive",children:B}),(0,t.jsxs)($.Button,{disabled:T,onClick:()=>void G(),size:"sm",type:"button",variant:"outline",children:[T&&(0,t.jsx)(J.Spinner,{}),p("stashAndRetry")]})]})}):null,submitLabel:p("changeBranch"),target:ef(e.group,n)})]})]}),w&&(0,t.jsx)(e_,{onOpenChange:k,open:w,props:e,targets:L.filter(t=>eL(t,e.overview))}),!n.primary&&y&&(0,t.jsx)(e$,{onOpenChange:S,open:y,props:e})]})}function e_({props:e,targets:r,open:s,onOpenChange:n}){let i=(0,A.useTranslations)("worktrees"),l=1===r.length?r[0].group.codebase.id:"",[o,d]=(0,a.useState)(l),[c,u]=(0,a.useState)("__new__"),[h,g]=(0,a.useState)(!1),[p,m]=(0,a.useState)(!1),[x,b]=(0,a.useState)(null),[j,v]=(0,a.useState)(null),f=r.some(e=>e.group.codebase.id===o)?o:1===r.length?r[0].group.codebase.id:"",w=r.find(e=>e.group.codebase.id===f),k=r.map(e=>({value:e.group.codebase.id,label:`${e.agentGroup.agent.name} \xb7 ${e.group.repository.name}`,description:e.group.codebase.folder,keywords:`${e.agentGroup.agent.hostname} ${e.group.repository.displayOrigin}`})),y=w?.group.worktrees.find(e=>e.id===c),S=w?.group.worktrees.find(t=>t.branch===e.worktree.branch),C=!e.worktree.primary&&e.overview.agents.some(t=>t.codebases.some(t=>t.codebase.id===e.group.codebase.id)&&t.agent.capabilities.includes("worktree.delete")),I=async t=>{if("AWAITING_STASH"===t.status){v(t),await e.onReload();return}if("FAILED"===t.status)throw Error(t.error||i("moveFailed"));if("CANCELLED"===t.status)throw Error(i("moveCancelled"));e.onError("SUCCEEDED_WITH_WARNING"===t.status?t.warning:null),await e.onReload(),e.onMoved?.(t),n(!1)},T=async()=>{if(w){m(!0),b(null);try{let t=await (0,ee.controlPlaneRequest)(`mutation MoveWorktree($input: MoveWorktreeInput!) {
60
- moveWorktree(input: $input) {
61
- id sourceWorktreeId sourceCodebaseId targetCodebaseId targetWorktreeId destinationMode
62
- branch headSha deleteSource status sourceJobId targetJobId cleanupJobId error warning
63
- createdAt updatedAt finishedAt
64
- }
65
- }`,{input:{sourceWorktreeId:e.worktree.id,targetCodebaseId:w.group.codebase.id,targetWorktreeId:"__new__"===c?null:c,deleteSource:h,requestId:(0,Z.createClientId)()}});await I(await (0,el.waitForWorktreeMove)(t.moveWorktree.id))}catch(e){b(e instanceof Error?e.message:String(e))}finally{m(!1)}}},N=async()=>{if(j){m(!0),b(null);try{await (0,ee.controlPlaneRequest)(`mutation RetryMove($id: ID!) {
66
- retryWorktreeMoveWithStash(id: $id) { id status }
67
- }`,{id:j.id}),await I(await (0,el.waitForWorktreeMove)(j.id))}catch(e){b(e instanceof Error?e.message:String(e))}finally{m(!1)}}},D=async()=>{if(j){m(!0);try{await (0,ee.controlPlaneRequest)(`mutation CancelMove($id: ID!) {
68
- cancelWorktreeMove(id: $id) { id status }
69
- }`,{id:j.id}),await e.onReload(),n(!1)}catch(e){b(e instanceof Error?e.message:String(e))}finally{m(!1)}}};return(0,t.jsx)(U.Dialog,{onOpenChange:e=>!p&&n(e),open:s,children:(0,t.jsxs)(U.DialogContent,{className:"sm:max-w-xl",children:[(0,t.jsxs)(U.DialogHeader,{children:[(0,t.jsx)(U.DialogTitle,{children:i("moveToAgent")}),(0,t.jsx)(U.DialogDescription,{children:i("moveDescription",{branch:e.worktree.branch??""})})]}),j?(0,t.jsx)(P.Alert,{children:(0,t.jsxs)(P.AlertDescription,{className:"space-y-3",children:[(0,t.jsx)("p",{children:j.error||i("moveNeedsStash")}),(0,t.jsx)("p",{className:"text-muted-foreground",children:i("moveStashHelp")})]})}):(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(G.Label,{className:"mb-1.5 block",children:i("destinationAgent")}),(0,t.jsx)(z.SearchableSelect,{ariaLabel:i("destinationAgent"),disabled:p,emptyMessage:i("noMoveDestinations"),onValueChange:e=>{d(e),u("__new__")},options:k,placeholder:i("selectDestinationAgent"),searchPlaceholder:i("searchDestinationAgents"),value:f})]}),w&&(0,t.jsxs)("div",{children:[(0,t.jsx)(G.Label,{className:"mb-1.5 block",children:i("destinationWorktree")}),(0,t.jsxs)(Y.Select,{disabled:p,onValueChange:u,value:c,children:[(0,t.jsx)(Y.SelectTrigger,{"aria-label":i("destinationWorktree"),children:(0,t.jsx)(Y.SelectValue,{})}),(0,t.jsxs)(Y.SelectContent,{children:[(0,t.jsx)(Y.SelectItem,{disabled:!!S,value:"__new__",children:i("createDestinationWorktree")}),w.group.worktrees.filter(e=>"AVAILABLE"===e.availability).map(e=>(0,t.jsxs)(Y.SelectItem,{disabled:!!S&&S.id!==e.id,value:e.id,children:[e.branch??i("detached")," ·"," ",e.relativePath]},e.id))]})]})]}),y&&(y.hasStagedChanges||y.hasUnstagedChanges)&&(0,t.jsx)(P.Alert,{children:(0,t.jsx)(P.AlertDescription,{children:i("dirtyDestinationWarning")})}),(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)(M.Checkbox,{checked:h,disabled:!C||p,id:`delete-source-${e.worktree.id}`,onCheckedChange:e=>g(!!e)}),(0,t.jsxs)("div",{children:[(0,t.jsx)(G.Label,{htmlFor:`delete-source-${e.worktree.id}`,children:i("deleteOldWorktree")}),!C&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:i("deleteOldWorktreeDisabled")})]})]})]}),x&&(0,t.jsx)(P.Alert,{variant:"destructive",children:(0,t.jsx)(P.AlertDescription,{children:x})}),(0,t.jsxs)(U.DialogFooter,{children:[(0,t.jsx)($.Button,{disabled:p,onClick:()=>j?void D():n(!1),variant:"outline",children:j?i("cancelMove"):i("cancel")}),(0,t.jsxs)($.Button,{disabled:p||!j&&!w,onClick:()=>j?void N():void T(),children:[p&&(0,t.jsx)(J.Spinner,{}),j?i("stashAndContinue"):i("moveWorktree")]})]})]})})}function e$({props:e,open:r,onOpenChange:s}){let n=(0,A.useTranslations)("worktrees"),[i,l]=(0,a.useState)(!1),[o,d]=(0,a.useState)(!1),[c,u]=(0,a.useState)(null),h=!!(e.worktree.branch&&(e.group.codebase.remoteBranches.includes(e.worktree.branch)||e.worktree.upstream===`origin/${e.worktree.branch}`)),g=e.worktree.branch===e.group.codebase.defaultBranch,p=async()=>{d(!0),u(null);try{let t=await (0,ee.controlPlaneRequest)(`mutation DeleteWorktree($input: DeleteWorktreeInput!) {
70
- deleteWorktree(input: $input) { id }
71
- }`,{input:{worktreeId:e.worktree.id,deleteRemoteBranch:i,requestId:(0,Z.createClientId)()}});await (0,el.waitForWorktreeJob)(t.deleteWorktree.id),await e.onReload(),e.onError(null),e.onDeleted?.(),s(!1)}catch(e){u(e instanceof Error?e.message:String(e))}finally{d(!1)}};return(0,t.jsx)(U.Dialog,{onOpenChange:e=>!o&&s(e),open:r,children:(0,t.jsxs)(U.DialogContent,{children:[(0,t.jsxs)(U.DialogHeader,{children:[(0,t.jsx)(U.DialogTitle,{children:n("deleteWorktree")}),(0,t.jsx)(U.DialogDescription,{children:n("deleteWorktreeDescription",{path:ep(e.worktree.folder,e.baseRepoDirectory)})})]}),(0,t.jsx)(P.Alert,{variant:"destructive",children:(0,t.jsx)(P.AlertDescription,{children:n("deleteWorktreeWarning")})}),h&&(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)(M.Checkbox,{checked:i,disabled:o||g,id:`delete-remote-${e.worktree.id}`,onCheckedChange:e=>l(!!e)}),(0,t.jsxs)("div",{children:[(0,t.jsx)(G.Label,{htmlFor:`delete-remote-${e.worktree.id}`,children:n("deleteRemoteBranch",{branch:e.worktree.branch??""})}),g&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:n("defaultRemoteProtected")})]})]}),c&&(0,t.jsx)(P.Alert,{variant:"destructive",children:(0,t.jsx)(P.AlertDescription,{children:c})}),(0,t.jsxs)(U.DialogFooter,{children:[(0,t.jsx)($.Button,{disabled:o,onClick:()=>s(!1),variant:"outline",children:n("cancel")}),(0,t.jsxs)($.Button,{disabled:o,onClick:()=>void p(),variant:"destructive",children:[o&&(0,t.jsx)(J.Spinner,{}),n("deleteWorktree")]})]})]})})}function eO(e){let{worktree:a,editorVariant:s}=e,n=(0,A.useTranslations)("worktrees"),i="AVAILABLE"!==a.availability||!!a.activeJob,o=em(a),d=e.overview.agents.find(t=>t.codebases.some(t=>t.codebase.id===e.group.codebase.id))?.agent,u="AVAILABLE"!==a.availability||!d||"ONLINE"!==d.connectionStatus||!d.capabilities.includes("ios.build.run")||!1===e.group.iosBuildConfigured;return(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)(E.StartBuildButton,{codebaseId:e.group.codebase.id,disabled:u,disabledReason:d&&"ONLINE"===d.connectionStatus?d.capabilities.includes("ios.build.run")?!1===e.group.iosBuildConfigured?n("iosBuildNotConfigured"):"AVAILABLE"!==a.availability?n("worktreeUnavailable"):null:n("agentUnsupported"):n("agentOffline"),worktreeId:a.id}),a.pullRequest&&(0,t.jsx)(B.MergePullRequestButton,{onMerged:e.onCompleted,pullRequest:a.pullRequest}),"NONE"!==s&&(0,t.jsx)(eM,{icon:(0,t.jsx)(c.Code2,{}),label:n("CODE_INSIDERS"===s?"openInsiders":"openCode"),operation:"OPEN_EDITOR",props:e}),(0,t.jsx)(eM,{confirm:!0,icon:(0,t.jsx)(T.Upload,{}),label:n("forcePush"),operation:"FORCE_PUSH",props:e,disabled:i||!a.upstream}),(0,t.jsx)(eM,{confirm:!0,icon:(0,t.jsx)(w.RefreshCw,{}),label:n("sync"),operation:"SYNC",props:e,disabled:i||!a.upstream||!a.baseBranch||0===a.baseBehind}),(0,t.jsx)(eM,{icon:(0,t.jsx)(T.Upload,{}),label:n(a.upstream?"push":"publish"),operation:"PUSH",props:e,disabled:i||!a.branch}),(0,t.jsx)(eM,{confirm:!0,icon:(0,t.jsx)(k.RotateCcw,{}),label:n("reset"),operation:"RESET",props:e,disabled:i||!a.upstream}),(0,t.jsx)(eM,{icon:(0,t.jsx)(r.Archive,{}),label:n("stashAll"),operation:"STASH_ALL",props:e,disabled:i||!o.hasChanges}),(0,t.jsx)(eM,{icon:(0,t.jsx)(l.Check,{}),label:n("UNSTAGE_ALL"===o.stageOperation?"unstageAll":"stageAll"),operation:o.stageOperation,props:e,disabled:i||!o.hasChanges}),a.activeJob&&(0,t.jsxs)("span",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,t.jsx)(J.Spinner,{})," ",n("operationRunning")]})]})}function eM({props:e,operation:r,label:s,icon:n,confirm:i=!1,disabled:o=!1}){let d=(0,A.useTranslations)("worktrees"),[c,u]=(0,a.useState)(!1),[h,g]=(0,a.useState)(!1),p=(0,a.useRef)(null);(0,a.useEffect)(()=>()=>{p.current&&window.clearTimeout(p.current)},[]);let m=async()=>{if(i&&!c){u(!0),p.current=window.setTimeout(()=>u(!1),5e3);return}g(!0),u(!1);try{let t=await (0,ee.controlPlaneRequest)("mutation RunWorktreeOperation($input: RunWorktreeOperationInput!) { runWorktreeOperation(input: $input) { id } }",{input:{worktreeId:e.worktree.id,operation:r,requestId:(0,Z.createClientId)()}});e.onError(null),await e.onCompleted(),await (0,el.waitForWorktreeJob)(t.runWorktreeOperation.id),await e.onCompleted()}catch(t){e.onError(t instanceof Error?t.message:String(t))}finally{g(!1)}};return(0,t.jsxs)($.Button,{disabled:o||h,onClick:()=>void m(),size:"sm",variant:c?"destructive":"outline",children:[h?(0,t.jsx)(J.Spinner,{}):c?(0,t.jsx)(l.Check,{}):n," ",c?d("confirmAction"):s]})}function eU(e){let r=(0,A.useTranslations)("worktrees");return(0,t.jsx)("div",{className:"rounded-xl border",children:(0,t.jsxs)(Q.Table,{children:[(0,t.jsx)(Q.TableHeader,{children:(0,t.jsxs)(Q.TableRow,{children:[(0,t.jsx)(Q.TableHead,{children:r("branch")}),(0,t.jsx)(Q.TableHead,{children:r("path")}),(0,t.jsx)(Q.TableHead,{children:r("baseBranch")}),(0,t.jsx)(Q.TableHead,{children:r("upToDate")}),(0,t.jsx)(Q.TableHead,{children:r("tags")}),(0,t.jsx)(Q.TableHead,{children:r("pullRequest")}),(0,t.jsx)(Q.TableHead,{children:r("origin")}),(0,t.jsx)(Q.TableHead,{})]})}),(0,t.jsx)(Q.TableBody,{children:e.group.worktrees.map(t=>(0,a.createElement)(eq,{...e,key:t.id,worktree:t}))})]})})}function eq(e){let{baseRepoDirectory:r,inspectionRefreshToken:s,onError:n}=e,{worktree:i,applyActivity:l,setUnstagedChanges:c}=(0,ei.useLiveWorktree)(e.worktree),u={...e,worktree:i},h=(0,A.useTranslations)("worktrees"),g=(0,ea.useRouter)(),[p,m]=(0,a.useState)(!1),[x,b]=(0,a.useState)(null),[j,v]=(0,a.useState)(!1),f=(0,a.useRef)(0),w=(0,a.useRef)(s),k=(0,a.useCallback)(async()=>{let e=++f.current;v(!0);try{let t=await (0,ei.inspectWorktree)(i.id);if(e!==f.current)return;b(t),c(t.changes.some(e=>e.unstaged||e.untracked||e.conflicted)),n(null)}catch(t){e===f.current&&n(t instanceof Error?t.message:String(t))}finally{e===f.current&&v(!1)}},[n,c,i.id]),y=(0,ei.useQueuedWorktreeInspection)(k),S=(0,a.useCallback)(e=>{l(e),p&&y()},[l,p,y]);(0,ei.useWorktreeActivitySubscription)(i.id,e.liveUpdatesEnabled&&"AVAILABLE"===i.availability,S),(0,a.useEffect)(()=>{if(w.current===s||(w.current=s,!p))return;let e=window.setTimeout(()=>void y(),0);return()=>window.clearTimeout(e)},[p,s,y]);let C=()=>{let e=!p;m(e),e&&!x&&y()},I=i.highlightColor&&ex[i.highlightColor];return(0,t.jsxs)(a.Fragment,{children:[(0,t.jsxs)(Q.TableRow,{className:(0,et.cn)("cursor-pointer transition-colors hover:bg-muted/50",I),onClick:e=>{(0,eo.shouldNavigateWorktreeSurface)(e)&&g.push((0,eo.worktreeDetailHref)(i.id))},children:[(0,t.jsxs)(Q.TableCell,{children:[(0,t.jsxs)($.Button,{"aria-expanded":p,className:"max-w-full px-0 font-mono",onClick:()=>void C(),variant:"ghost",children:[p?(0,t.jsx)(o.ChevronDown,{}):(0,t.jsx)(d.ChevronRight,{}),(0,t.jsx)("span",{className:"truncate",children:i.branch??h("detached")})]}),(i.ticketKey||i.ticketTitle)&&(0,t.jsx)(eI,{...u,compact:!0})]}),(0,t.jsx)(Q.TableCell,{className:"font-mono text-xs",children:ep(i.folder,r)}),(0,t.jsx)(Q.TableCell,{children:(0,t.jsx)(eW,{...u,compact:!0})}),(0,t.jsx)(Q.TableCell,{children:(0,t.jsx)(eD,{worktree:i})}),(0,t.jsx)(Q.TableCell,{children:(0,t.jsx)(eA,{...u,compact:!0})}),(0,t.jsx)(Q.TableCell,{children:(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-1.5",children:(0,t.jsx)(eE,{detailsExpanded:p,onToggleDetails:C,worktree:i})})}),(0,t.jsx)(Q.TableCell,{children:(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-1",children:[(0,t.jsx)(eR,{worktree:i}),i.hasUnstagedChanges&&(0,t.jsx)(_.Badge,{variant:"destructive",children:h("dirty")})]})}),(0,t.jsx)(Q.TableCell,{children:(0,t.jsxs)("div",{className:"flex items-center justify-end gap-1",children:[(0,t.jsx)(eC,{worktree:i}),(0,t.jsx)(eP,{...u})]})})]}),(0,t.jsx)(Q.TableRow,{className:(0,et.cn)(I),children:(0,t.jsx)(Q.TableCell,{colSpan:8,children:(0,t.jsx)(eO,{...u,onCompleted:async()=>{await e.onReload(),p&&await y()}})})}),p&&(0,t.jsx)(Q.TableRow,{className:(0,et.cn)(I),children:(0,t.jsx)(Q.TableCell,{colSpan:8,children:j&&!x?(0,t.jsx)(J.Spinner,{}):x?(0,t.jsx)(es.WorktreeDetailPanel,{detail:x,inline:!0}):null})})]})}function eF({tag:e}){return(0,t.jsx)(_.Badge,{className:eb[e.color],children:e.name})}function eH({label:e,value:a,mono:r=!1}){return(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e}),(0,t.jsx)("p",{className:(0,et.cn)("flex min-h-6 items-center truncate",r&&"font-mono text-xs"),title:a,children:a})]})}function eV({open:e,onOpenChange:r,tags:s,onChanged:n}){let i=(0,A.useTranslations)("worktrees"),[l,o]=(0,a.useState)(null),[d,c]=(0,a.useState)(""),[u,h]=(0,a.useState)("blue"),[g,p]=(0,a.useState)(null),m=async e=>{e.preventDefault();try{await (0,ee.controlPlaneRequest)("mutation SaveTag($input: SaveWorktreeTagInput!) { saveWorktreeTag(input: $input) { id } }",{input:{id:l?.id??null,name:d,color:u}}),o(null),c(""),h("blue"),p(null),await n()}catch(e){p(e instanceof Error?e.message:String(e))}},x=async e=>{try{await (0,ee.controlPlaneRequest)("mutation DeleteTag($id: ID!) { deleteWorktreeTag(id: $id) }",{id:e}),await n()}catch(e){p(e instanceof Error?e.message:String(e))}};return(0,t.jsx)(U.Dialog,{onOpenChange:r,open:e,children:(0,t.jsxs)(U.DialogContent,{children:[(0,t.jsxs)(U.DialogHeader,{children:[(0,t.jsx)(U.DialogTitle,{children:i("manageTags")}),(0,t.jsx)(U.DialogDescription,{children:i("manageTagsDescription")})]}),g&&(0,t.jsx)(P.Alert,{variant:"destructive",children:(0,t.jsx)(P.AlertDescription,{children:g})}),(0,t.jsx)(V.ItemGroup,{className:"gap-2",children:s.map(e=>(0,t.jsxs)(V.Item,{size:"sm",variant:"outline",children:[(0,t.jsx)(V.ItemContent,{children:(0,t.jsx)(V.ItemTitle,{children:(0,t.jsx)(eF,{tag:e})})}),(0,t.jsxs)(V.ItemActions,{children:[(0,t.jsx)($.Button,{onClick:()=>{o(e),c(e.name),h(e.color)},size:"sm",variant:"outline",children:i("edit")}),(0,t.jsx)($.Button,{onClick:()=>void x(e.id),size:"icon-sm",variant:"destructive",children:(0,t.jsx)(I.Trash2,{})})]})]},e.id))}),(0,t.jsxs)("form",{className:"space-y-3 border-t pt-3",onSubmit:m,children:[(0,t.jsx)(G.Label,{htmlFor:"tag-name",children:l?i("editTag"):i("createTag")}),(0,t.jsx)(H.Input,{id:"tag-name",maxLength:40,onChange:e=>c(e.target.value),required:!0,value:d}),(0,t.jsx)(X.ToggleGroup,{"aria-label":i("highlight"),className:"grid grid-cols-12 gap-1",onValueChange:e=>{e&&h(e)},size:"sm",spacing:1,type:"single",value:u,variant:"outline",children:ed.map(e=>(0,t.jsx)(X.ToggleGroupItem,{"aria-label":e,className:(0,et.cn)("size-7 min-w-0 p-0",ej[e],"data-[state=on]:ring-2 data-[state=on]:ring-foreground"),value:e},e))}),(0,t.jsx)(U.DialogFooter,{children:(0,t.jsxs)($.Button,{type:"submit",children:[(0,t.jsx)(y.Save,{})," ",i("saveTag")]})})]})]})})}function eG({open:e,onOpenChange:s,onChanged:n}){let i=(0,A.useTranslations)("worktrees"),[l,o]=(0,a.useState)([]),[d,c]=(0,a.useState)(null),u=(0,a.useCallback)(async()=>{try{let e=await (0,ee.controlPlaneRequest)(`query HiddenWorktrees { hiddenWorktrees { ${en.WORKTREE_FIELDS} } }`);o(e.hiddenWorktrees),c(null)}catch(e){c(e instanceof Error?e.message:String(e))}},[]);(0,a.useEffect)(()=>{if(!e)return;let t=window.setTimeout(()=>void u(),0);return()=>window.clearTimeout(t)},[e,u]);let g=async e=>{try{await (0,ee.controlPlaneRequest)(e?"mutation PurgeHidden($id: ID!) { purgeHiddenWorktree(id: $id) }":"mutation PurgeAllHidden { purgeAllHiddenWorktrees }",e?{id:e}:void 0),await u(),await n()}catch(e){c(e instanceof Error?e.message:String(e))}};return(0,t.jsx)(U.Dialog,{onOpenChange:s,open:e,children:(0,t.jsxs)(U.DialogContent,{className:"sm:max-w-3xl",children:[(0,t.jsxs)(U.DialogHeader,{children:[(0,t.jsx)(U.DialogTitle,{children:i("hiddenTitle")}),(0,t.jsx)(U.DialogDescription,{children:i("hiddenDescription")})]}),d&&(0,t.jsx)(P.Alert,{variant:"destructive",children:(0,t.jsx)(P.AlertDescription,{children:d})}),(0,t.jsx)("div",{className:"max-h-96 overflow-y-auto",children:l.length?(0,t.jsx)(V.ItemGroup,{className:"gap-2",children:l.map(e=>(0,t.jsxs)(V.Item,{variant:"outline",children:[(0,t.jsx)(V.ItemMedia,{variant:"icon",children:(0,t.jsx)(h.GitBranch,{})}),(0,t.jsxs)(V.ItemContent,{className:"min-w-0",children:[(0,t.jsx)(V.ItemTitle,{className:"font-mono",children:e.branch??i("detached")}),(0,t.jsx)(V.ItemDescription,{className:"truncate",title:e.folder,children:e.folder})]}),(0,t.jsx)(V.ItemActions,{children:(0,t.jsxs)($.Button,{onClick:()=>void g(e.id),size:"sm",variant:"destructive",children:[(0,t.jsx)(I.Trash2,{})," ",i("purge")]})})]},e.id))}):(0,t.jsx)(F.Empty,{className:"border-0 py-8",children:(0,t.jsxs)(F.EmptyHeader,{children:[(0,t.jsx)(F.EmptyMedia,{variant:"icon",children:(0,t.jsx)(r.Archive,{})}),(0,t.jsx)(F.EmptyTitle,{children:i("noHidden")})]})})}),(0,t.jsx)(U.DialogFooter,{children:l.length>0&&(0,t.jsxs)($.Button,{onClick:()=>void g(),variant:"destructive",children:[(0,t.jsx)(I.Trash2,{})," ",i("purgeAll")]})})]})})}e.s(["ActionRow",0,eO,"BaseBranchControl",0,eW,"BaseFreshnessBadge",0,eD,"OriginStatusBadges",0,eR,"PullRequestBadges",0,eE,"TagManagerDialog",0,eV,"WorktreeMenus",0,eP,"WorktreeMetadata",0,eT,"WorktreeTagsMenu",0,eA,"WorktreeTicketLink",0,eI,"WorktreesPage",0,function(){let e=(0,A.useTranslations)("worktrees"),[s,n]=(0,a.useState)(()=>new URLSearchParams(window.location.search).get("issue")),[i,l]=(0,a.useState)(null),[o,d]=(0,a.useState)(()=>"table"===window.localStorage.getItem(ec)?"table":"cards"),[c,u]=(0,a.useState)(!0),[g,x]=(0,a.useState)(!1),[b,j]=(0,a.useState)(null),[v,f]=(0,a.useState)(null),[k,y]=(0,a.useState)(0),[C,I]=(0,a.useState)(!1),[N,E]=(0,a.useState)(!1),[B,R]=(0,a.useState)(""),[W,_]=(0,a.useState)(eu),[O,M]=(0,a.useState)(eu),U=(0,a.useRef)(0),q=(0,a.useCallback)(async()=>{let e=++U.current;try{let t=await (0,ee.controlPlaneRequest)(`query WorktreeOverview {
72
- worktreeOverview {
73
- hiddenCount
74
- settings { editorVariant updatedAt }
75
- tags { id name color createdAt updatedAt }
76
- activeMoves {
77
- id sourceWorktreeId sourceCodebaseId targetCodebaseId targetWorktreeId destinationMode
78
- branch headSha deleteSource status sourceJobId targetJobId cleanupJobId error warning
79
- createdAt updatedAt finishedAt
80
- }
81
- agents {
82
- agent { ${D.AGENT_FIELDS} }
83
- codebases {
84
- iosBuildConfigured
85
- repository { id canonicalOrigin displayOrigin name description jiraBranchRegex keepBaseBranchUpToDate createdAt updatedAt }
86
- codebase { ${en.CODEBASE_FIELDS} }
87
- worktrees { ${en.WORKTREE_FIELDS} }
88
- }
89
- }
90
- }
91
- }`);if(e!==U.current)return;l(t.worktreeOverview),j(null)}catch(t){e===U.current&&j(t instanceof Error?t.message:String(t))}finally{e===U.current&&u(!1)}},[]);(0,a.useEffect)(()=>{let e=window.setTimeout(()=>void q(),0),t=window.setInterval(()=>void q(),3e4),a=(0,ee.controlPlaneSubscriptions)().subscribe({query:"subscription WorktreesChanged { worktreeOverviewChanged { worktreeId codebaseId } }"},{next:()=>void q(),error:()=>void 0,complete:()=>void 0});return()=>{window.clearTimeout(e),window.clearInterval(t),U.current+=1,a()}},[q]),(0,a.useEffect)(()=>{let e=()=>n(new URLSearchParams(window.location.search).get("issue"));return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[]);let V=e=>{let t,a;t=new URLSearchParams(window.location.search),e?t.set("issue",e):t.delete("issue"),a=t.toString(),window.history.pushState(null,"",`${window.location.pathname}${a?`?${a}`:""}`),n(e)},G=async()=>{u(!0),x(!0);try{await (0,ee.controlPlaneRequest)(`mutation RefreshWorktrees {
92
- refreshWorktrees
93
- }`),await q(),y(e=>e+1),j(null)}catch(e){j(e instanceof Error?e.message:String(e))}finally{x(!1),u(!1)}},K=async()=>{let t=i?.agents.flatMap(e=>e.codebases.map(e=>e.codebase.id))??[];if(t.length){x(!0);try{await (0,ee.controlPlaneRequest)(`mutation FetchWorktreeCodebases($input: RunCodebaseOperationInput!) {
94
- fetchCodebases(input: $input) { jobs { id } skipped { codebaseId reason } }
95
- }`,{input:{codebaseIds:t,requestId:(0,Z.createClientId)()}}),f(e("fetchStarted")),j(null),await q()}catch(e){j(e instanceof Error?e.message:String(e)),f(null)}finally{x(!1)}}},z=e=>{l(t=>t?{...t,agents:t.agents.map(t=>({...t,codebases:t.codebases.map(t=>({...t,worktrees:t.worktrees.map(t=>t.id===e.id?{...t,...e,ticketKey:e.ticketKey??t.ticketKey,ticketTitle:e.ticketTitle??t.ticketTitle,ticketStatus:e.ticketStatus??t.ticketStatus,pullRequest:e.pullRequest??t.pullRequest}:t)}))}))}:t)},Q=(0,a.useMemo)(()=>{let e=new Map;return i?.agents.forEach(t=>t.codebases.forEach(t=>e.set(t.repository.id,{id:t.repository.id,name:t.repository.name}))),[...e.values()].sort((e,t)=>e.name.localeCompare(t.name))},[i]),et=(0,a.useMemo)(()=>eg(i?.agents??[],{query:B,agentId:W===eu?null:W,repositoryId:O===eu?null:O}),[W,i,B,O]),ea=!!B.trim()||W!==eu||O!==eu;return(0,t.jsxs)("section",{className:"flex w-full flex-col gap-6",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4",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.jsxs)($.Button,{disabled:g,onClick:()=>void G(),variant:"outline",children:[(0,t.jsx)(w.RefreshCw,{className:c?"animate-spin":void 0})," ",e("refresh")]}),(0,t.jsxs)($.Button,{disabled:g||!i?.agents.length,onClick:()=>void K(),variant:"outline",children:[(0,t.jsx)(T.Upload,{})," ",e("fetchNow")]}),(0,t.jsxs)($.Button,{onClick:()=>E(!0),variant:"outline",children:[(0,t.jsx)(r.Archive,{})," ",e("hidden",{count:i?.hiddenCount??0})]}),(0,t.jsxs)(X.ToggleGroup,{"aria-label":`${e("cards")} / ${e("table")}`,onValueChange:e=>{("cards"===e||"table"===e)&&(d(e),window.localStorage.setItem(ec,e))},size:"sm",spacing:0,type:"single",value:o,variant:"outline",children:[(0,t.jsx)(X.ToggleGroupItem,{"aria-label":e("cards"),className:"px-2",value:"cards",children:(0,t.jsx)(p.Grid2X2,{})}),(0,t.jsx)(X.ToggleGroupItem,{"aria-label":e("table"),className:"px-2",value:"table",children:(0,t.jsx)(m.List,{})})]})]})]}),b&&(0,t.jsx)(P.Alert,{variant:"destructive",children:(0,t.jsx)(P.AlertDescription,{children:b})}),v&&(0,t.jsx)(P.Alert,{children:(0,t.jsx)(P.AlertDescription,{children:v})}),i&&i.agents.length>0&&(0,t.jsxs)("div",{"aria-label":e("filters"),className:"flex flex-wrap gap-2",role:"search",children:[(0,t.jsxs)("div",{className:"relative min-w-0 flex-[2_1_18rem]",children:[(0,t.jsx)(S.Search,{className:"pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground"}),(0,t.jsx)(H.Input,{"aria-label":e("searchWorktrees"),className:"pl-9",onChange:e=>R(e.target.value),placeholder:e("searchWorktreesPlaceholder"),type:"search",value:B})]}),(0,t.jsx)("div",{className:"min-w-0 flex-[1_1_12rem]",children:(0,t.jsxs)(Y.Select,{onValueChange:_,value:W,children:[(0,t.jsx)(Y.SelectTrigger,{"aria-label":e("filterByAgent"),className:"w-full",children:(0,t.jsx)(Y.SelectValue,{})}),(0,t.jsxs)(Y.SelectContent,{children:[(0,t.jsx)(Y.SelectItem,{value:eu,children:e("allAgents")}),i.agents.map(e=>(0,t.jsx)(Y.SelectItem,{value:e.agent.id,children:e.agent.name},e.agent.id))]})]})}),(0,t.jsx)("div",{className:"min-w-0 flex-[1_1_12rem]",children:(0,t.jsxs)(Y.Select,{onValueChange:M,value:O,children:[(0,t.jsx)(Y.SelectTrigger,{"aria-label":e("filterByRepository"),className:"w-full",children:(0,t.jsx)(Y.SelectValue,{})}),(0,t.jsxs)(Y.SelectContent,{children:[(0,t.jsx)(Y.SelectItem,{value:eu,children:e("allRepositories")}),Q.map(e=>(0,t.jsx)(Y.SelectItem,{value:e.id,children:e.name},e.id))]})]})})]}),i&&i.activeMoves.length>0&&(0,t.jsx)(ev,{moves:i.activeMoves,onError:j,onNotice:f,onReload:q}),i&&(0,t.jsx)(ew,{onCreated:async()=>{await q(),f(e("worktreeCreated"))},overview:i}),c&&!i?(0,t.jsxs)("p",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(J.Spinner,{})," ",e("loading")]}):i?.agents.length?ea&&0===et.length?(0,t.jsx)(F.Empty,{className:"border py-12",children:(0,t.jsxs)(F.EmptyHeader,{children:[(0,t.jsx)(F.EmptyMedia,{variant:"icon",children:(0,t.jsx)(S.Search,{})}),(0,t.jsx)(F.EmptyTitle,{children:e("noMatchingWorktrees")}),(0,t.jsx)(F.EmptyDescription,{children:e("noMatchingWorktreesDescription")})]})}):et.map(e=>(0,t.jsx)(ek,{agentGroup:e,allTags:i.tags,editorVariant:i.settings.editorVariant,inspectionRefreshToken:k,layout:o,onError:j,onManageTags:()=>I(!0),onOpenTicket:e=>V(e),onReload:q,onUpdate:z,overview:i},e.agent.id)):(0,t.jsx)(F.Empty,{className:"border py-12",children:(0,t.jsxs)(F.EmptyHeader,{children:[(0,t.jsx)(F.EmptyMedia,{variant:"icon",children:(0,t.jsx)(h.GitBranch,{})}),(0,t.jsx)(F.EmptyTitle,{children:e("emptyTitle")}),(0,t.jsx)(F.EmptyDescription,{children:e("emptyDescription")})]})}),(0,t.jsx)(eV,{onChanged:q,onOpenChange:I,open:C,tags:i?.tags??[]}),(0,t.jsx)(eG,{onChanged:q,onOpenChange:E,open:N}),(0,t.jsx)(L.JiraTicketDrawer,{issueKey:s,onClose:()=>V(null)})]})},"displayedWorktreePath",0,ep,"filterWorktreeAgentGroups",0,eg,"worktreeChangeActionState",0,em])}]);
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,784774,e=>{"use strict";var t=e.i(843476),r=e.i(975157);e.s(["Table",0,function({className:e,containerClassName:n,...o}){return(0,t.jsx)("div",{className:(0,r.cn)("w-full overflow-x-auto",n),children:(0,t.jsx)("table",{className:(0,r.cn)("w-full caption-bottom text-sm",e),...o})})},"TableBody",0,function({className:e,...n}){return(0,t.jsx)("tbody",{className:(0,r.cn)("divide-y",e),...n})},"TableCell",0,function({className:e,...n}){return(0,t.jsx)("td",{className:(0,r.cn)("whitespace-nowrap px-3 py-3 align-middle",e),...n})},"TableFooter",0,function({className:e,...n}){return(0,t.jsx)("tfoot",{className:(0,r.cn)("border-t bg-muted/50 font-medium",e),...n})},"TableHead",0,function({className:e,...n}){return(0,t.jsx)("th",{className:(0,r.cn)("h-10 whitespace-nowrap px-3 text-left align-middle text-xs font-medium text-muted-foreground",e),...n})},"TableHeader",0,function({className:e,...n}){return(0,t.jsx)("thead",{className:(0,r.cn)("border-b",e),...n})},"TableRow",0,function({className:e,...n}){return(0,t.jsx)("tr",{className:(0,r.cn)("transition-colors hover:bg-muted/40",e),...n})}])},689664,e=>{"use strict";var t=e.i(643957);e.s(["Check",()=>t.default])},929592,e=>{"use strict";var t=e.i(843476),r=e.i(225913),n=e.i(975157);let o=(0,r.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:r,...i}){return(0,t.jsx)("div",{"data-slot":"alert",role:"alert",className:(0,n.cn)(o({variant:r}),e),...i})},"AlertDescription",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-description",className:(0,n.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),...r})}])},515288,e=>{"use strict";var t=e.i(843476),r=e.i(975157);e.s(["Card",0,function({className:e,size:n="default",...o}){return(0,t.jsx)("div",{"data-slot":"card","data-size":n,className:(0,r.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-[>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),...o})},"CardAction",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-action",className:(0,r.cn)("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...n})},"CardContent",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,r.cn)("px-(--card-spacing)",e),...n})},"CardDescription",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,r.cn)("text-sm text-muted-foreground",e),...n})},"CardFooter",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-footer",className:(0,r.cn)("flex items-center rounded-b-xl border-t bg-muted/50 p-(--card-spacing)",e),...n})},"CardHeader",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,r.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)",e),...n})},"CardTitle",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,r.cn)("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e),...n})}])},758379,e=>{"use strict";let t=(0,e.i(456420).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["default",0,t])},987968,e=>{"use strict";var t=e.i(843476),r=e.i(975157),n=e.i(758379),n=n;e.s(["Spinner",0,function({className:e,...o}){return(0,t.jsx)(n.default,{"data-slot":"spinner",role:"status","aria-label":"Loading",className:(0,r.cn)("size-4 animate-spin",e),...o})}],987968)},637611,e=>{"use strict";var t,r,n=e.i(247167);function o(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function i(e){return"object"===o(e)}function a(e,t){return e.length<124?e:t}var s=((t=s||{})[t.InternalServerError=4500]="InternalServerError",t[t.InternalClientError=4005]="InternalClientError",t[t.BadRequest=4400]="BadRequest",t[t.BadResponse=4004]="BadResponse",t[t.Unauthorized=4401]="Unauthorized",t[t.Forbidden=4403]="Forbidden",t[t.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",t[t.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",t[t.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",t[t.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",t[t.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests",t),l=((r=l||{}).ConnectionInit="connection_init",r.ConnectionAck="connection_ack",r.Ping="ping",r.Pong="pong",r.Subscribe="subscribe",r.Next="next",r.Error="error",r.Complete="complete",r);function c(e){if(!i(e))throw Error(`Message is expected to be an object, but got ${o(e)}`);if(!e.type)throw Error("Message is missing the 'type' property");if("string"!=typeof e.type)throw Error(`Message is expects the 'type' property to be a string, but got ${o(e.type)}`);switch(e.type){case"connection_init":case"connection_ack":case"ping":case"pong":if(null!=e.payload&&!i(e.payload))throw Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break;case"subscribe":if("string"!=typeof e.id)throw Error(`"${e.type}" message expects the 'id' property to be a string, but got ${o(e.id)}`);if(!e.id)throw Error(`"${e.type}" message requires a non-empty 'id' property`);if(!i(e.payload))throw Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${o(e.payload)}`);if("string"!=typeof e.payload.query)throw Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${o(e.payload.query)}`);if(null!=e.payload.variables&&!i(e.payload.variables))throw Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${o(e.payload.variables)}`);if(null!=e.payload.operationName&&"string"!==o(e.payload.operationName))throw Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${o(e.payload.operationName)}`);if(null!=e.payload.extensions&&!i(e.payload.extensions))throw Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${o(e.payload.extensions)}`);break;case"next":if("string"!=typeof e.id)throw Error(`"${e.type}" message expects the 'id' property to be a string, but got ${o(e.id)}`);if(!e.id)throw Error(`"${e.type}" message requires a non-empty 'id' property`);if(!i(e.payload))throw Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${o(e.payload)}`);break;case"error":var t;if("string"!=typeof e.id)throw Error(`"${e.type}" message expects the 'id' property to be a string, but got ${o(e.id)}`);if(!e.id)throw Error(`"${e.type}" message requires a non-empty 'id' property`);if(!(Array.isArray(t=e.payload)&&t.length>0&&t.every(e=>"message"in e)))throw Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break;case"complete":if("string"!=typeof e.id)throw Error(`"${e.type}" message expects the 'id' property to be a string, but got ${o(e.id)}`);if(!e.id)throw Error(`"${e.type}" message requires a non-empty 'id' property`);break;default:throw Error(`Invalid message 'type' property "${e.type}"`)}return e}function u(e,t){return c(e),JSON.stringify(e,t)}class d extends Error{name="TerminatedCloseEvent";message="4499: Terminated";code=4499;reason="Terminated";wasClean=!1}function p(e){return i(e)&&"code"in e&&"reason"in e}async function f(e,t){let r=await fetch("/api/graphql",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({query:e,variables:t})}),n=await r.json();if(!r.ok||n.errors?.length||!n.data)throw Error(n.errors?.map(e=>e.message).join("; ")||`HTTP ${r.status}`);return n.data}let y=null;function h(){let e=n.default.env.NEXT_PUBLIC_AGENT_WS_URL;return e||("https:"===window.location.protocol?`wss://${window.location.host}/graphql`:`ws://${window.location.hostname}:3091/graphql`)}e.s(["controlPlaneRequest",0,f,"controlPlaneSubscriptions",0,function(){return y??=function(t){let r,n,o,i,{url:f,connectionParams:y,lazy:h=!0,onNonLazyError:m=console.error,lazyCloseTimeout:g=0,keepAlive:v=0,disablePong:x,connectionAckWaitTimeout:b=0,retryAttempts:w=5,retryWait:E=async function(e){let t=Math.pow(2,e);await new Promise(e=>setTimeout(e,1e3*t+Math.floor(2700*Math.random()+300)))},shouldRetry:S=p,on:k,webSocketImpl:C,generateID:R=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},jsonMessageReplacer:j,jsonMessageReviver:N}=t;if(C){var T;if(!("function"==typeof(T=C)&&"constructor"in T&&"CLOSED"in T&&"CLOSING"in T&&"CONNECTING"in T&&"OPEN"in T))throw Error("Invalid WebSocket implementation provided");r=C}else r="u">typeof WebSocket?WebSocket:e.g.WebSocket||e.g.MozWebSocket;if(!r)throw Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");let A=r,$=(n={},o={on:(e,t)=>(n[e]=t,()=>{delete n[e]}),emit(e){"id"in e&&n[e.id]?.(e)}},i={connecting:k?.connecting?[k.connecting]:[],opened:k?.opened?[k.opened]:[],connected:k?.connected?[k.connected]:[],ping:k?.ping?[k.ping]:[],pong:k?.pong?[k.pong]:[],message:k?.message?[o.emit,k.message]:[o.emit],closed:k?.closed?[k.closed]:[],error:k?.error?[k.error]:[]},{onMessage:o.on,on(e,t){let r=i[e];return r.push(t),()=>{r.splice(r.indexOf(t),1)}},emit(e,...t){for(let r of[...i[e]])r(...t)}});function I(e){let t=[$.on("error",r=>{t.forEach(e=>e()),e(r)}),$.on("closed",r=>{t.forEach(e=>e()),e(r)})]}let O,_=0,M,P=!1,z=0,F=!1;async function D(){clearTimeout(M);let[e,t]=await (O??(O=new Promise((e,t)=>(async()=>{let r,n;if(P){if(await E(z),!_)return O=void 0,t({code:1e3,reason:"All Subscriptions Gone"});z++}$.emit("connecting",P);let o=new A("function"==typeof f?await f():f,"graphql-transport-ws");function i(){isFinite(v)&&v>0&&(clearTimeout(n),n=setTimeout(()=>{o.readyState===A.OPEN&&(o.send(u({type:l.Ping})),$.emit("ping",!1,void 0))},v))}I(e=>{O=void 0,clearTimeout(r),clearTimeout(n),t(e),e instanceof d&&(o.close(4499,"Terminated"),o.onerror=null,o.onclose=null)}),o.onerror=e=>$.emit("error",e),o.onclose=e=>$.emit("closed",e),o.onopen=async()=>{try{$.emit("opened",o);let e="function"==typeof y?await y():y;if(o.readyState!==A.OPEN)return;o.send(u(e?{type:l.ConnectionInit,payload:e}:{type:l.ConnectionInit},j)),isFinite(b)&&b>0&&(r=setTimeout(()=>{o.close(s.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},b)),i()}catch(e){$.emit("error",e),o.close(s.InternalClientError,a(e instanceof Error?e.message:String(e),"Internal client error"))}};let p=!1;o.onmessage=({data:t})=>{try{let n=c("string"==typeof t?JSON.parse(t,N):t);if($.emit("message",n),"ping"===n.type||"pong"===n.type){$.emit(n.type,!0,n.payload),"pong"===n.type?i():x||(o.send(u(n.payload?{type:l.Pong,payload:n.payload}:{type:l.Pong})),$.emit("pong",!1,n.payload));return}if(p)return;if(n.type!==l.ConnectionAck)throw Error(`First message cannot be of type ${n.type}`);clearTimeout(r),p=!0,$.emit("connected",o,n.payload,P),P=!1,z=0,e([o,new Promise((e,t)=>I(t))])}catch(e){o.onmessage=null,$.emit("error",e),o.close(s.BadResponse,a(e instanceof Error?e.message:String(e),"Bad response"))}}})())));e.readyState===A.CLOSING&&await t;let r=()=>{},n=new Promise(e=>r=e);return[e,r,Promise.race([n.then(()=>{_||(isFinite(g)&&g>0?M=setTimeout(()=>{e.readyState===A.OPEN&&e.close(1e3,"Normal Closure")},g):e.close(1e3,"Normal Closure"))}),t])]}function q(e){var t;if(p(e)&&(![1e3,1001,1006,1005,1012,1013,1014].includes(t=e.code)&&t>=1e3&&t<=1999||[s.InternalServerError,s.InternalClientError,s.BadRequest,s.BadResponse,s.Unauthorized,s.SubprotocolNotAcceptable,s.SubscriberAlreadyExists,s.TooManyInitialisationRequests].includes(e.code)))throw e;if(F)return!1;if(p(e)&&1e3===e.code)return _>0;if(!w||z>=w||!S(e))throw e;return P=!0}function B(e,t){let r=R(e),n=!1,o=!1,i=()=>{_--,n=!0};return(async()=>{for(_++;;)try{let[a,s,c]=await D();if(n)return s();let d=$.onMessage(r,e=>{switch(e.type){case l.Next:return void t.next(e.payload);case l.Error:o=!0,n=!0,t.error(e.payload),i();return;case l.Complete:n=!0,i();return}});a.send(u({id:r,type:l.Subscribe,payload:e},j)),i=()=>{n||a.readyState!==A.OPEN||a.send(u({id:r,type:l.Complete},j)),_--,n=!0,s()},await c.finally(d);return}catch(e){if(!q(e))return}})().then(()=>{o||t.complete()}).catch(e=>{t.error(e)}),()=>{n||i()}}return h||(async()=>{for(_++;;)try{let[,,e]=await D();await e}catch(e){try{if(!q(e))return}catch(e){return m?.(e)}}})(),{on:$.on,subscribe:B,iterate(e){let t=[],r={done:!1,error:null,resolve:()=>{}},n=B(e,{next(e){t.push(e),r.resolve()},error(e){r.done=!0,r.error=e,r.resolve()},complete(){r.done=!0,r.resolve()}}),o=async function*(){for(;;){for(t.length||await new Promise(e=>r.resolve=e);t.length;)yield t.shift();if(r.error)throw r.error;if(r.done)return}}();return o.throw=async e=>(r.done||(r.done=!0,r.error=e,r.resolve()),{done:!0,value:void 0}),o.return=async()=>(n(),{done:!0,value:void 0}),o},async dispose(){if(F=!0,O){let[e]=await O;e.close(1e3,"Normal Closure")}},terminate(){O&&$.emit("closed",new d)}}}({url:h,lazy:!0,retryAttempts:1/0,shouldRetry:()=>!0})}],637611)},487486,e=>{"use strict";var t=e.i(843476),r=e.i(225913),n=e.i(709840),o=e.i(975157);let i=(0,r.cva)("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});e.s(["Badge",0,function({className:e,variant:r="default",asChild:a=!1,...s}){let l=a?n.Slot.Root:"span";return(0,t.jsx)(l,{className:(0,o.cn)(i({variant:r}),e),"data-slot":"badge","data-variant":r,...s})}])},643957,e=>{"use strict";let t=(0,e.i(456420).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["default",0,t])},999682,e=>{"use strict";var t=e.i(271645);e.s(["usePrevious",0,function(e){let r=t.useRef({value:e,previous:e});return t.useMemo(()=>(r.current.value!==e&&(r.current.previous=r.current.value,r.current.value=e),r.current.previous),[e])}])},593698,e=>{"use strict";var t=e.i(643957);e.s(["CheckIcon",()=>t.default])},75830,586318,e=>{"use strict";var t=e.i(271645),r=e.i(30030);function n(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function o(...e){return t.useCallback(function(...e){return t=>{let r=!1,o=e.map(e=>{let o=n(e,t);return r||"function"!=typeof o||(r=!0),o});if(r)return()=>{for(let t=0;t<o.length;t++){let r=o[t];"function"==typeof r?r():n(e[t],null)}}}}(...e),e)}function i(e){let r=t.forwardRef((r,n)=>{var i;let l,f,{children:y,...h}=r,m=null,g=!1,v=[];c(y)&&"function"==typeof p&&(y=p(y._payload)),t.Children.forEach(y,e=>{var r;if(r=e,t.isValidElement(r)&&"function"==typeof r.type&&"__radixId"in r.type&&r.type.__radixId===a){g=!0;let t="child"in e.props?e.props.child:e.props.children;c(t)&&"function"==typeof p&&(t=p(t._payload)),m=s(e,t),v.push(m?.props?.children)}else v.push(e)}),m?m=t.cloneElement(m,void 0,v):!g&&1===t.Children.count(y)&&t.isValidElement(y)&&(m=y);let x=m?(i=m,(f=(l=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in l&&l.isReactWarning)?i.ref:(f=(l=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in l&&l.isReactWarning)?i.props.ref:i.props.ref||i.ref):void 0,b=o(n,x);if(!m){if(y||0===y)throw Error(g?d(e):u(e));return y}let w=function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(h,m.props??{});return m.type!==t.Fragment&&(w.ref=n?b:x),t.cloneElement(m,w)});return r.displayName=`${e}.Slot`,r}var a=Symbol.for("radix.slottable"),s=(e,r)=>{if("child"in e.props){let r=e.props.child;return t.isValidElement(r)?t.cloneElement(r,void 0,e.props.children(r.props.children)):null}return t.isValidElement(r)?r:null},l=Symbol.for("react.lazy");function c(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===l&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var u=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,d=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,p=t[" use ".trim().toString()],f=e.i(843476),y=new WeakMap;function h(e,t){var r,n;let o,i,a;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let s=(r=e,n=t,o=r.length,(a=(i=m(n))>=0?i:o+i)<0||a>=o?-1:a);return -1===s?void 0:e[s]}function m(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],y.set(this,!0)}set(e,t){return y.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let n,o=this.has(t),i=this.#e.length,a=m(e),s=a>=0?a:i+a,l=s<0||s>=i?-1:s;if(l===this.size||o&&l===this.size-1||-1===l)return this.set(t,r),this;let c=this.size+ +!o;a<0&&s++;let u=[...this.#e],d=!1;for(let e=s;e<c;e++)if(s===e){let i=u[e];u[e]===t&&(i=u[e+1]),o&&this.delete(t),n=this.get(i),this.set(t,r)}else{d||u[e-1]!==t||(d=!0);let r=u[d?e:e-1],o=n;n=this.get(r),this.delete(r),this.set(r,o)}return this}with(t,r,n){let o=new e(this);return o.insert(t,r,n),o}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=h(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=h(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return h(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],o=0;for(let e of this)Reflect.apply(t,r,[e,o,this])&&n.push(e),o++;return new e(n)}map(t,r){let n=[],o=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,o,this])]),o++;return new e(n)}reduce(...e){let[t,r]=e,n=0,o=r??this.at(0);for(let r of this)o=0===n&&1===e.length?r:Reflect.apply(t,this,[o,r,n,this]),n++;return o}reduceRight(...e){let[t,r]=e,n=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let o=this.at(r);n=r===this.size-1&&1===e.length?o:Reflect.apply(t,this,[n,o,r,this])}return n}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let n=new e,o=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(o=r-1);for(let e=t;e<=o;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}}),e.s(["createCollection",0,function(e){let n=e+"CollectionProvider",[a,s]=(0,r.createContextScope)(n),[l,c]=a(n,{collectionRef:{current:null},itemMap:new Map}),u=e=>{let{scope:r,children:n}=e,o=t.useRef(null),i=t.useRef(new Map).current;return(0,f.jsx)(l,{scope:r,itemMap:i,collectionRef:o,children:n})};u.displayName=n;let d=e+"CollectionSlot",p=i(d),y=t.forwardRef((e,t)=>{let{scope:r,children:n}=e,i=o(t,c(d,r).collectionRef);return(0,f.jsx)(p,{ref:i,children:n})});y.displayName=d;let h=e+"CollectionItemSlot",m="data-radix-collection-item",g=i(h),v=t.forwardRef((e,r)=>{let{scope:n,children:i,...a}=e,s=t.useRef(null),l=o(r,s),u=c(h,n);return t.useEffect(()=>(u.itemMap.set(s,{ref:s,...a}),()=>void u.itemMap.delete(s))),(0,f.jsx)(g,{...{[m]:""},ref:l,children:i})});return v.displayName=h,[{Provider:u,Slot:y,ItemSlot:v},function(r){let n=c(e+"CollectionConsumer",r);return t.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${m}]`));return Array.from(n.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[n.collectionRef,n.itemMap])},s]}],75830);var g=t.createContext(void 0);e.s(["useDirection",0,function(e){let r=t.useContext(g);return e||r||"ltr"}],586318)},986253,e=>{"use strict";let t=(0,e.i(456420).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["default",0,t])},741120,e=>{"use strict";let t=(0,e.i(456420).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",0,t],741120)},82612,e=>{"use strict";var t=e.i(843476),r=e.i(225913),n=e.i(975157);let o=(0,r.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,...r}){return(0,t.jsx)("div",{"data-slot":"empty",className:(0,n.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),...r})},"EmptyDescription",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty-description",className:(0,n.cn)("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...r})},"EmptyHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty-header",className:(0,n.cn)("flex max-w-sm flex-col items-center gap-2",e),...r})},"EmptyMedia",0,function({className:e,variant:r="default",...i}){return(0,t.jsx)("div",{"data-slot":"empty-icon","data-variant":r,className:(0,n.cn)(o({variant:r,className:e})),...i})},"EmptyTitle",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty-title",className:(0,n.cn)("font-heading text-sm font-medium tracking-tight",e),...r})}])},462777,e=>{"use strict";async function t(e){if(navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(e);return}catch{}let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.append(t),t.select();let r=document.execCommand("copy");if(t.remove(),!r)throw Error("Copy is not supported by this browser")}e.s(["copyText",0,t,"createClientId",0,function(){try{if(globalThis.crypto?.randomUUID)return globalThis.crypto.randomUUID()}catch{}if(globalThis.crypto?.getRandomValues)try{let e=globalThis.crypto.getRandomValues(new Uint8Array(16));return Array.from(e,e=>e.toString(16).padStart(2,"0")).join("")}catch{}return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}])},842727,e=>{"use strict";var t=e.i(271645);function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r||!r.defaultPrevented)return t?.(r)}}"u">typeof window&&window.document&&window.document.createElement;var n=e.i(75830);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function i(...e){return t.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=o(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():o(e[t],null)}}}}(...e),e)}var a=e.i(30030),s=e.i(610772);e.i(174080);var l=Symbol.for("radix.slottable"),c=Symbol.for("react.lazy");function u(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===c&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var d=t[" use ".trim().toString()],p=e.i(843476),f=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{var n;let o,a=(n=`Primitive.${r}`,(o=t.forwardRef((e,r)=>{var o;let a,s,{children:c,...p}=e,f=null,y=!1,h=[];u(c)&&"function"==typeof d&&(c=d(c._payload)),t.Children.forEach(c,e=>{var r;if(r=e,t.isValidElement(r)&&"function"==typeof r.type&&"__radixId"in r.type&&r.type.__radixId===l){y=!0;let r="child"in e.props?e.props.child:e.props.children;u(r)&&"function"==typeof d&&(r=d(r._payload)),f=((e,r)=>{if("child"in e.props){let r=e.props.child;return t.isValidElement(r)?t.cloneElement(r,void 0,e.props.children(r.props.children)):null}return t.isValidElement(r)?r:null})(e,r),h.push(f?.props?.children)}else h.push(e)}),f?f=t.cloneElement(f,void 0,h):!y&&1===t.Children.count(c)&&t.isValidElement(c)&&(f=c);let m=f?(o=f,(s=(a=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?o.ref:(s=(a=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?o.props.ref:o.props.ref||o.ref):void 0,g=i(r,m);if(!f){if(c||0===c){let e,t;throw Error(y?(e=n,`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`):(t=n,`${t} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`))}return c}let v=function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(p,f.props??{});return f.type!==t.Fragment&&(v.ref=r?g:m),t.cloneElement(f,v)})).displayName=`${n}.Slot`,o),s=t.forwardRef((e,t)=>{let{asChild:n,...o}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,p.jsx)(n?a:r,{...o,ref:t})});return s.displayName=`Primitive.${r}`,{...e,[r]:s}},{}),y=e.i(30207),h=globalThis?.document?t.useLayoutEffect:()=>{};t[" useEffectEvent ".trim().toString()],t[" useInsertionEffect ".trim().toString()];var m=t[" useInsertionEffect ".trim().toString()]||h;Symbol("RADIX:SYNC_STATE");var g=e.i(586318),v=!1,x=t[" useSyncExternalStore ".trim().toString()];function b(){return()=>{}}var w="function"==typeof x?function(){return x(b,()=>!0,()=>!1)}:function(){let[e,r]=t.useState(v);return t.useEffect(()=>{v||(v=!0,r(!0))},[]),e},E="rovingFocusGroup.onEntryFocus",S={bubbles:!1,cancelable:!0},k="RovingFocusGroup",[C,R,j]=(0,n.createCollection)(k),[N,T]=(0,a.createContextScope)(k,[j]),[A,$]=N(k),I=t.forwardRef((e,t)=>(0,p.jsx)(C.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(C.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(O,{...e,ref:t})})}));I.displayName=k;var O=t.forwardRef((e,n)=>{let{__scopeRovingFocusGroup:o,orientation:a,loop:s=!1,dir:l,currentTabStopId:c,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:d,onEntryFocus:h,preventScrollOnEntryFocus:v=!1,...x}=e,b=t.useRef(null),w=i(n,b),C=(0,g.useDirection)(l),[j,N]=function({prop:e,defaultProp:r,onChange:n=()=>{},caller:o}){let[i,a,s]=function({defaultProp:e,onChange:r}){let[n,o]=t.useState(e),i=t.useRef(n),a=t.useRef(r);return m(()=>{a.current=r},[r]),t.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,o,a]}({defaultProp:r,onChange:n}),l=void 0!==e,c=l?e:i;{let r=t.useRef(void 0!==e);t.useEffect(()=>{let e=r.current;if(e!==l){let t=l?"controlled":"uncontrolled";console.warn(`${o} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}r.current=l},[l,o])}return[c,t.useCallback(t=>{if(l){let r="function"==typeof t?t(e):t;r!==e&&s.current?.(r)}else a(t)},[l,e,a,s])]}({prop:c,defaultProp:u??null,onChange:d,caller:k}),[T,$]=t.useState(!1),I=(0,y.useCallbackRef)(h),O=R(o),_=t.useRef(!1),[M,P]=t.useState(0);return t.useEffect(()=>{let e=b.current;if(e)return e.addEventListener(E,I),()=>e.removeEventListener(E,I)},[I]),(0,p.jsx)(A,{scope:o,orientation:a,dir:C,loop:s,currentTabStopId:j,onItemFocus:t.useCallback(e=>N(e),[N]),onItemShiftTab:t.useCallback(()=>$(!0),[]),onFocusableItemAdd:t.useCallback(()=>P(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>P(e=>e-1),[]),children:(0,p.jsx)(f.div,{tabIndex:T||0===M?-1:0,"data-orientation":a,...x,ref:w,style:{outline:"none",...e.style},onMouseDown:r(e.onMouseDown,()=>{_.current=!0}),onFocus:r(e.onFocus,e=>{let t=!_.current;if(e.target===e.currentTarget&&t&&!T){let t=new CustomEvent(E,S);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=O().filter(e=>e.focusable);z([e.find(e=>e.active),e.find(e=>e.id===j),...e].filter(Boolean).map(e=>e.ref.current),v)}}_.current=!1}),onBlur:r(e.onBlur,()=>$(!1))})})}),_="RovingFocusGroupItem",M=t.forwardRef((e,n)=>{let{__scopeRovingFocusGroup:o,focusable:i=!0,active:a=!1,tabStopId:l,children:c,...u}=e,d=(0,s.useId)(),y=l||d,m=$(_,o),g=m.currentTabStopId===y,v=R(o),{onFocusableItemAdd:x,onFocusableItemRemove:b,currentTabStopId:E}=m,S=w();return h(()=>{if(S&&i)return x(),()=>b()},[S,i,x,b]),t.useEffect(()=>{if(!S&&i)return x(),()=>b()},[S,i,x,b]),(0,p.jsx)(C.ItemSlot,{scope:o,id:y,focusable:i,active:a,children:(0,p.jsx)(f.span,{tabIndex:g?0:-1,"data-orientation":m.orientation,...u,ref:n,onMouseDown:r(e.onMouseDown,e=>{i?m.onItemFocus(y):e.preventDefault()}),onFocus:r(e.onFocus,()=>m.onItemFocus(y)),onKeyDown:r(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void m.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let o=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return P[o]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=v().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&o.reverse();let i=o.indexOf(e.currentTarget);o=m.loop?(r=o,n=i+1,r.map((e,t)=>r[(n+t)%r.length])):o.slice(i+1)}setTimeout(()=>z(o))}}),children:"function"==typeof c?c({isCurrentTabStop:g,hasTabStop:null!=E}):c})})});M.displayName=_;var P={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function z(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}e.s(["Item",0,M,"Root",0,I,"createRovingFocusGroupScope",0,T],842727)},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])}]);