@aeolus-fleet/console 0.31.0 → 0.32.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (334) hide show
  1. package/.next/standalone/packages/console/.next/BUILD_ID +1 -1
  2. package/.next/standalone/packages/console/.next/app-path-routes-manifest.json +1 -0
  3. package/.next/standalone/packages/console/.next/build-manifest.json +3 -3
  4. package/.next/standalone/packages/console/.next/prerender-manifest.json +3 -3
  5. package/.next/standalone/packages/console/.next/routes-manifest.json +6 -0
  6. package/.next/standalone/packages/console/.next/server/app/(console)/fleet-health/[cause]/page/server-reference-manifest.json +25 -14
  7. package/.next/standalone/packages/console/.next/server/app/(console)/fleet-health/[cause]/page.js.nft.json +1 -1
  8. package/.next/standalone/packages/console/.next/server/app/(console)/fleet-health/[cause]/page_client-reference-manifest.js +1 -1
  9. package/.next/standalone/packages/console/.next/server/app/(console)/fleet-health/page/server-reference-manifest.json +25 -14
  10. package/.next/standalone/packages/console/.next/server/app/(console)/fleet-health/page.js.nft.json +1 -1
  11. package/.next/standalone/packages/console/.next/server/app/(console)/fleet-health/page_client-reference-manifest.js +1 -1
  12. package/.next/standalone/packages/console/.next/server/app/(console)/inbox/page/server-reference-manifest.json +25 -14
  13. package/.next/standalone/packages/console/.next/server/app/(console)/inbox/page.js.nft.json +1 -1
  14. package/.next/standalone/packages/console/.next/server/app/(console)/inbox/page_client-reference-manifest.js +1 -1
  15. package/.next/standalone/packages/console/.next/server/app/(console)/labels/page/server-reference-manifest.json +25 -14
  16. package/.next/standalone/packages/console/.next/server/app/(console)/labels/page.js.nft.json +1 -1
  17. package/.next/standalone/packages/console/.next/server/app/(console)/labels/page_client-reference-manifest.js +1 -1
  18. package/.next/standalone/packages/console/.next/server/app/(console)/needs-attention/page/server-reference-manifest.json +25 -14
  19. package/.next/standalone/packages/console/.next/server/app/(console)/needs-attention/page.js.nft.json +1 -1
  20. package/.next/standalone/packages/console/.next/server/app/(console)/needs-attention/page_client-reference-manifest.js +1 -1
  21. package/.next/standalone/packages/console/.next/server/app/(console)/needs-crew/page/server-reference-manifest.json +25 -14
  22. package/.next/standalone/packages/console/.next/server/app/(console)/needs-crew/page.js.nft.json +1 -1
  23. package/.next/standalone/packages/console/.next/server/app/(console)/needs-crew/page_client-reference-manifest.js +1 -1
  24. package/.next/standalone/packages/console/.next/server/app/(console)/network/page/server-reference-manifest.json +25 -14
  25. package/.next/standalone/packages/console/.next/server/app/(console)/network/page.js.nft.json +1 -1
  26. package/.next/standalone/packages/console/.next/server/app/(console)/network/page_client-reference-manifest.js +1 -1
  27. package/.next/standalone/packages/console/.next/server/app/(console)/page/react-loadable-manifest.json +2 -2
  28. package/.next/standalone/packages/console/.next/server/app/(console)/page/server-reference-manifest.json +25 -14
  29. package/.next/standalone/packages/console/.next/server/app/(console)/page.js.nft.json +1 -1
  30. package/.next/standalone/packages/console/.next/server/app/(console)/page_client-reference-manifest.js +1 -1
  31. package/.next/standalone/packages/console/.next/server/app/(console)/scopes/page/app-paths-manifest.json +3 -0
  32. package/.next/standalone/packages/console/.next/server/app/(console)/scopes/page/build-manifest.json +20 -0
  33. package/.next/standalone/packages/console/.next/server/app/(console)/scopes/page/next-font-manifest.json +11 -0
  34. package/.next/standalone/packages/console/.next/server/app/(console)/scopes/page/react-loadable-manifest.json +1 -0
  35. package/.next/standalone/packages/console/.next/server/app/(console)/scopes/page/server-reference-manifest.json +170 -0
  36. package/.next/standalone/packages/console/.next/server/app/(console)/scopes/page.js +20 -0
  37. package/.next/standalone/packages/console/.next/server/app/(console)/scopes/page.js.nft.json +1 -0
  38. package/.next/standalone/packages/console/.next/server/app/(console)/scopes/page_client-reference-manifest.js +3 -0
  39. package/.next/standalone/packages/console/.next/server/app/(console)/settings/page/server-reference-manifest.json +25 -14
  40. package/.next/standalone/packages/console/.next/server/app/(console)/settings/page.js.nft.json +1 -1
  41. package/.next/standalone/packages/console/.next/server/app/(console)/settings/page_client-reference-manifest.js +1 -1
  42. package/.next/standalone/packages/console/.next/server/app/(console)/ships/[shipId]/page/react-loadable-manifest.json +1 -1
  43. package/.next/standalone/packages/console/.next/server/app/(console)/ships/[shipId]/page/server-reference-manifest.json +25 -14
  44. package/.next/standalone/packages/console/.next/server/app/(console)/ships/[shipId]/page.js.nft.json +1 -1
  45. package/.next/standalone/packages/console/.next/server/app/(console)/ships/[shipId]/page_client-reference-manifest.js +1 -1
  46. package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/[squadronId]/page/server-reference-manifest.json +25 -14
  47. package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/[squadronId]/page.js.nft.json +1 -1
  48. package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/[squadronId]/page_client-reference-manifest.js +1 -1
  49. package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/blueprints/[name]/page/react-loadable-manifest.json +2 -2
  50. package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/blueprints/[name]/page/server-reference-manifest.json +25 -14
  51. package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/blueprints/[name]/page.js.nft.json +1 -1
  52. package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/blueprints/[name]/page_client-reference-manifest.js +1 -1
  53. package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/page/react-loadable-manifest.json +2 -2
  54. package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/page/server-reference-manifest.json +25 -14
  55. package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/page.js.nft.json +1 -1
  56. package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/page_client-reference-manifest.js +1 -1
  57. package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/templates/[name]/page/server-reference-manifest.json +25 -14
  58. package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/templates/[name]/page.js.nft.json +1 -1
  59. package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/templates/[name]/page_client-reference-manifest.js +1 -1
  60. package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/[shipId]/page/server-reference-manifest.json +25 -14
  61. package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/[shipId]/page.js.nft.json +1 -1
  62. package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/[shipId]/page_client-reference-manifest.js +1 -1
  63. package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/page/server-reference-manifest.json +25 -14
  64. package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/page.js.nft.json +1 -1
  65. package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/page_client-reference-manifest.js +1 -1
  66. package/.next/standalone/packages/console/.next/server/app/_global-error.html +1 -1
  67. package/.next/standalone/packages/console/.next/server/app/_global-error.rsc +1 -1
  68. package/.next/standalone/packages/console/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  69. package/.next/standalone/packages/console/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  70. package/.next/standalone/packages/console/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  71. package/.next/standalone/packages/console/.next/server/app/_not-found/page.js.nft.json +1 -1
  72. package/.next/standalone/packages/console/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  73. package/.next/standalone/packages/console/.next/server/app/api/reads/[read]/route.js.nft.json +1 -1
  74. package/.next/standalone/packages/console/.next/server/app/sign-in/argo/confirm/page.js.nft.json +1 -1
  75. package/.next/standalone/packages/console/.next/server/app/sign-in/argo/confirm/page_client-reference-manifest.js +1 -1
  76. package/.next/standalone/packages/console/.next/server/app/sign-in/argo/out/route.js.nft.json +1 -1
  77. package/.next/standalone/packages/console/.next/server/app/sign-in/argo/refused/page.js.nft.json +1 -1
  78. package/.next/standalone/packages/console/.next/server/app/sign-in/argo/refused/page_client-reference-manifest.js +1 -1
  79. package/.next/standalone/packages/console/.next/server/app/sign-in/argo/route.js.nft.json +1 -1
  80. package/.next/standalone/packages/console/.next/server/app/sign-in/failed/page.js.nft.json +1 -1
  81. package/.next/standalone/packages/console/.next/server/app/sign-in/failed/page_client-reference-manifest.js +1 -1
  82. package/.next/standalone/packages/console/.next/server/app/sign-in/no-rights/page.js.nft.json +1 -1
  83. package/.next/standalone/packages/console/.next/server/app/sign-in/no-rights/page_client-reference-manifest.js +1 -1
  84. package/.next/standalone/packages/console/.next/server/app/sign-in/nothing-to-manage/page.js.nft.json +1 -1
  85. package/.next/standalone/packages/console/.next/server/app/sign-in/nothing-to-manage/page_client-reference-manifest.js +1 -1
  86. package/.next/standalone/packages/console/.next/server/app/sign-in/page.js.nft.json +1 -1
  87. package/.next/standalone/packages/console/.next/server/app/sign-in/page_client-reference-manifest.js +1 -1
  88. package/.next/standalone/packages/console/.next/server/app/sign-in/unreachable/page.js.nft.json +1 -1
  89. package/.next/standalone/packages/console/.next/server/app/sign-in/unreachable/page_client-reference-manifest.js +1 -1
  90. package/.next/standalone/packages/console/.next/server/app/version/route.js.nft.json +1 -1
  91. package/.next/standalone/packages/console/.next/server/app-paths-manifest.json +1 -0
  92. package/.next/standalone/packages/console/.next/server/chunks/[root-of-the-server]__0-b_d8j._.js +1 -1
  93. package/.next/standalone/packages/console/.next/server/chunks/[root-of-the-server]__0w4s32w._.js +1 -1
  94. package/.next/standalone/packages/console/.next/server/chunks/[root-of-the-server]__1c0qgbj._.js +1 -1
  95. package/.next/standalone/packages/console/.next/server/chunks/_1uqphll._.js +1 -1
  96. package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_features_squadrons_organisms_form-squadron-dialog_tsx_1y1h3bn._.js → 0ysl_console_features_squadrons_ui_organisms_form-squadron-dialog_tsx_00objgi._.js} +2 -2
  97. package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console_features_squadrons_ui_organisms_form-squadron-dialog_tsx_1kqsdlm._.js +3 -0
  98. package/.next/standalone/packages/console/.next/server/chunks/ssr/[root-of-the-server]__04pqzqs._.js +3 -0
  99. package/.next/standalone/packages/console/.next/server/chunks/ssr/[root-of-the-server]__0up8t8p._.js +1 -1
  100. package/.next/standalone/packages/console/.next/server/chunks/ssr/_023dmpu._.js +3 -0
  101. package/.next/standalone/packages/console/.next/server/chunks/ssr/_02sf-6u._.js +1 -1
  102. package/.next/standalone/packages/console/.next/server/chunks/ssr/_030hi2b._.js +3 -0
  103. package/.next/standalone/packages/console/.next/server/chunks/ssr/{_1vleg6y._.js → _03st5qx._.js} +2 -2
  104. package/.next/standalone/packages/console/.next/server/chunks/ssr/_04q8k0c._.js +1 -1
  105. package/.next/standalone/packages/console/.next/server/chunks/ssr/{_1mhs3wd._.js → _06lx89w._.js} +2 -2
  106. package/.next/standalone/packages/console/.next/server/chunks/ssr/_06ly0m8._.js +3 -0
  107. package/.next/standalone/packages/console/.next/server/chunks/ssr/{_18fu3-5._.js → _06u691o._.js} +2 -2
  108. package/.next/standalone/packages/console/.next/server/chunks/ssr/_07hq8gy._.js +3 -0
  109. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0bm0gyi._.js +3 -0
  110. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0c2cfln._.js +1 -1
  111. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0chpnwx._.js +3 -0
  112. package/.next/standalone/packages/console/.next/server/chunks/ssr/{_0is0iyt._.js → _0dp0lyt._.js} +2 -2
  113. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0ictsnq._.js +1 -1
  114. package/.next/standalone/packages/console/.next/server/chunks/ssr/{_05eg_8f._.js → _0j2nlg2._.js} +2 -2
  115. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0lx73da._.js +3 -0
  116. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0mjq1cb._.js +1 -1
  117. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0mr12__._.js +3 -0
  118. package/.next/standalone/packages/console/.next/server/chunks/ssr/{_0nmqout._.js → _0n0ns5e._.js} +1 -1
  119. package/.next/standalone/packages/console/.next/server/chunks/ssr/{_1l1eyqx._.js → _0o53uwe._.js} +2 -2
  120. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0oe2gqy._.js +3 -0
  121. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0q-f4li._.js +3 -0
  122. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0qe8f-w._.js +3 -0
  123. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0sugvmr._.js +3 -0
  124. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0sxygqz._.js +3 -0
  125. package/.next/standalone/packages/console/.next/server/chunks/ssr/{_1d2-pry._.js → _0vlg8_g._.js} +2 -2
  126. package/.next/standalone/packages/console/.next/server/chunks/ssr/{_165mz4l._.js → _0wc8h9a._.js} +2 -2
  127. package/.next/standalone/packages/console/.next/server/chunks/ssr/{_0303p7e._.js → _0whv6j-._.js} +1 -1
  128. package/.next/standalone/packages/console/.next/server/chunks/ssr/{_15whprd._.js → _0wrm2to._.js} +2 -2
  129. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0xfzttf._.js +3 -0
  130. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1-4ded7._.js +3 -0
  131. package/.next/standalone/packages/console/.next/server/chunks/ssr/{_1yarwg1._.js → _1-kwmma._.js} +1 -1
  132. package/.next/standalone/packages/console/.next/server/chunks/ssr/{_0c6zkeh._.js → _1-l1b5d._.js} +2 -2
  133. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1-ujs2g._.js +3 -0
  134. package/.next/standalone/packages/console/.next/server/chunks/ssr/_11g5bnb._.js +1 -1
  135. package/.next/standalone/packages/console/.next/server/chunks/ssr/_11ljfgy._.js +3 -0
  136. package/.next/standalone/packages/console/.next/server/chunks/ssr/{_20xkukj._.js → _12565yp._.js} +1 -1
  137. package/.next/standalone/packages/console/.next/server/chunks/ssr/{_1yz7z57._.js → _12ucb96._.js} +2 -2
  138. package/.next/standalone/packages/console/.next/server/chunks/ssr/_13zwdui._.js +3 -0
  139. package/.next/standalone/packages/console/.next/server/chunks/ssr/{_1o4qsts._.js → _183-gaz._.js} +2 -2
  140. package/.next/standalone/packages/console/.next/server/chunks/ssr/_185zd68._.js +3 -0
  141. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1bc8get._.js +1 -1
  142. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1c8_t28._.js +3 -0
  143. package/.next/standalone/packages/console/.next/server/chunks/ssr/{_07_cqry._.js → _1eruh8n._.js} +2 -2
  144. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1g327a5._.js +3 -0
  145. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1j285b1._.js +3 -0
  146. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1kf28sa._.js +1 -1
  147. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1n8dahj._.js +1 -1
  148. package/.next/standalone/packages/console/.next/server/chunks/ssr/{_1qde2ge._.js → _1o61l_8._.js} +1 -1
  149. package/.next/standalone/packages/console/.next/server/chunks/ssr/{_0wevgo7._.js → _1o_tct4._.js} +2 -2
  150. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1prq2d6._.js +3 -0
  151. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1r8_v_g._.js +1 -1
  152. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1su9voz._.js +3 -0
  153. package/.next/standalone/packages/console/.next/server/chunks/ssr/{_0nbjb5h._.js → _1tbw5cc._.js} +2 -2
  154. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1u0h4gj._.js +1 -1
  155. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1y1x0jn._.js +3 -0
  156. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1ymusis._.js +1 -1
  157. package/.next/standalone/packages/console/.next/server/chunks/ssr/{_0s-n56c._.js → _1zd-rey._.js} +1 -1
  158. package/.next/standalone/packages/console/.next/server/chunks/ssr/{node_modules_1tm6j2u._.js → node_modules_1--oery._.js} +1 -1
  159. package/.next/standalone/packages/console/.next/server/chunks/ssr/node_modules_zod_v4_classic_external_15fmmz3.js +1 -1
  160. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_03-f8b4._.js +1 -1
  161. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_10js6wa._.js +1 -1
  162. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_common_dist_schemas_account-token_1wsycr8.js +3 -0
  163. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_common_dist_schemas_fleet_1a-bnwh.js +1 -1
  164. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_00qg_s6._.js +1 -1
  165. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_02v53na._.js +1 -1
  166. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_02wkudy._.js +1 -1
  167. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_04rox65._.js +1 -1
  168. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_05zitd2._.js +1 -1
  169. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_065nea1._.js +1 -1
  170. package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_16ys_pd._.js → packages_console_0cvfxoz._.js} +2 -2
  171. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_0h_376h._.js +1 -1
  172. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_0hs6kp-._.js +3 -0
  173. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_0ko_ogs._.js +1 -1
  174. package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_11f_j7c._.js → packages_console_0ptz2kl._.js} +2 -2
  175. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_0sr2-oa._.js +1 -1
  176. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_0ysbad7._.js +1 -1
  177. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_0z2cttl._.js +3 -0
  178. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_108sez2._.js +1 -1
  179. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_11eh-8v._.js +1 -1
  180. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_1jwqfju._.js +3 -0
  181. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_1jy5-0g._.js +1 -1
  182. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_1n8w8x0._.js +1 -1
  183. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_1oz8iu7._.js +1 -1
  184. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_1rdu3gt._.js +1 -1
  185. package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_0d8_fed._.js → packages_console_1vyd50h._.js} +2 -2
  186. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_1yfimad._.js +1 -1
  187. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_app_(console)_fleet-health_page_tsx_0vcosw1._.js +1 -1
  188. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_app_(console)_network_network-page_tsx_0qc3h-9._.js +2 -2
  189. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_app_(console)_overview-page_tsx_15siba6._.js +1 -1
  190. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_app_(console)_settings_page_tsx_1p8ay87._.js +1 -1
  191. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_app_(console)_ships_[shipId]_ship-page_tsx_0oahz0r._.js +1 -1
  192. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_app_(console)_signed-in-layout_tsx_13vv8fo._.js +1 -1
  193. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_app_(console)_squadrons_[squadronId]_page_tsx_0f8nmsh._.js +1 -1
  194. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_app_(console)_squadrons_page_tsx_1xpvx8n._.js +1 -1
  195. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_components_11gbpyo._.js +3 -0
  196. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_components_1eyc9r5._.js +3 -0
  197. package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_components_organisms_crew-line-dialog_tsx_1n3v4kg._.js → packages_console_components_1mu-90h._.js} +2 -2
  198. package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_components_organisms_crew-line-dialog_tsx_1l818ht._.js → packages_console_components_organisms_crew-line-dialog_tsx_0a4g801._.js} +2 -2
  199. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_features_ship_ui_organisms_message-sheet_tsx_08bg9ly._.js +1 -1
  200. package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_features_squadrons_organisms_add-member-dialog_tsx_1qunr7p._.js → packages_console_features_squadrons_ui_organisms_add-member-dialog_tsx_153e4y2._.js} +2 -2
  201. package/.next/standalone/packages/console/.next/server/middleware-build-manifest.js +3 -3
  202. package/.next/standalone/packages/console/.next/server/next-font-manifest.js +1 -1
  203. package/.next/standalone/packages/console/.next/server/next-font-manifest.json +4 -0
  204. package/.next/standalone/packages/console/.next/server/pages/500.html +1 -1
  205. package/.next/standalone/packages/console/.next/server/server-reference-manifest.js +1 -1
  206. package/.next/standalone/packages/console/.next/server/server-reference-manifest.json +176 -15
  207. package/.next/standalone/packages/console/.next/static/chunks/0-yrn88mejsr-.js +1 -0
  208. package/.next/standalone/packages/console/.next/static/chunks/02udxgdv5tuim.js +1 -0
  209. package/.next/standalone/packages/console/.next/static/chunks/06mq07jbul8uh.js +1 -0
  210. package/.next/standalone/packages/console/.next/static/chunks/0dbl_305i9z05.js +1 -0
  211. package/.next/standalone/packages/console/.next/static/chunks/0i0-pz23n01tq.js +1 -0
  212. package/.next/standalone/packages/console/.next/static/chunks/{01ddtfi6ns7ih.js → 0sxq4cfwpdd6i.js} +1 -1
  213. package/.next/standalone/packages/console/.next/static/chunks/0wlqvdnkbefpg.js +1 -0
  214. package/.next/standalone/packages/console/.next/static/chunks/0y6tgk4e2qln_.js +1 -0
  215. package/.next/standalone/packages/console/.next/static/chunks/{1z9u9wh2b5l6y.js → 0zfls_ee80s6y.js} +1 -1
  216. package/.next/standalone/packages/console/.next/static/chunks/119gnlkv5o5qi.js +1 -0
  217. package/.next/standalone/packages/console/.next/static/chunks/11e-iym4h5t19.js +1 -0
  218. package/.next/standalone/packages/console/.next/static/chunks/{3wn51b0ga8x5c.js → 14rt-9-qmmsd6.js} +1 -1
  219. package/.next/standalone/packages/console/.next/static/chunks/153epobb5qlio.js +1 -0
  220. package/.next/standalone/packages/console/.next/static/chunks/1alqr4fmqmu1o.js +1 -0
  221. package/.next/standalone/packages/console/.next/static/chunks/{15esws160fsle.js → 1an189wd_o795.js} +1 -1
  222. package/.next/standalone/packages/console/.next/static/chunks/1fve7-1xawl_f.js +1 -0
  223. package/.next/standalone/packages/console/.next/static/chunks/{3a0odbvtvug2f.js → 1jjwuh7isdk3m.js} +1 -1
  224. package/.next/standalone/packages/console/.next/static/chunks/{24yl55yxkaeaf.js → 1k-ba5pqi2r-w.js} +1 -1
  225. package/.next/standalone/packages/console/.next/static/chunks/1p9gwv5c8kw8w.js +1 -0
  226. package/.next/standalone/packages/console/.next/static/chunks/{10tnt0_230wbm.js → 1qweu8d2g8ip6.js} +1 -1
  227. package/.next/standalone/packages/console/.next/static/chunks/1rsblbw_p_xiq.js +1 -0
  228. package/.next/standalone/packages/console/.next/static/chunks/{2trb7ad4f0p1k.js → 1t4hkt4i-g6cx.js} +1 -1
  229. package/.next/standalone/packages/console/.next/static/chunks/{3e1q680dju0rq.js → 1tlvti3bwzfeq.js} +1 -1
  230. package/.next/standalone/packages/console/.next/static/chunks/{2h98d1zd2s_t5.js → 1vyt2hnz2hej1.js} +1 -1
  231. package/.next/standalone/packages/console/.next/static/chunks/21_wx8xffofh0.js +1 -0
  232. package/.next/standalone/packages/console/.next/static/chunks/{098rv-6zs8gzx.js → 257aniba461fq.js} +1 -1
  233. package/.next/standalone/packages/console/.next/static/chunks/27yg8ex72-9wa.js +1 -0
  234. package/.next/standalone/packages/console/.next/static/chunks/{1z1jqbwrruy4-.js → 2cv5dpjoblo-6.js} +1 -1
  235. package/.next/standalone/packages/console/.next/static/chunks/2e2rgjb800j69.js +1 -0
  236. package/.next/standalone/packages/console/.next/static/chunks/2ena4r9l20ldm.js +1 -0
  237. package/.next/standalone/packages/console/.next/static/chunks/{3rm6d-05q8id3.js → 2gcef1g7rprfw.js} +1 -1
  238. package/.next/standalone/packages/console/.next/static/chunks/2ikzq12uoatg5.js +1 -0
  239. package/.next/standalone/packages/console/.next/static/chunks/{3l08evl5-acl_.js → 2kwli36lpyk6h.js} +1 -1
  240. package/.next/standalone/packages/console/.next/static/chunks/{2dkqrqvxmerj9.css → 2l4c43lqjex_d.css} +1 -1
  241. package/.next/standalone/packages/console/.next/static/chunks/2njyd_fhl_fmf.js +1 -0
  242. package/.next/standalone/packages/console/.next/static/chunks/2qhl2i_a7qzyk.js +1 -0
  243. package/.next/standalone/packages/console/.next/static/chunks/2rkqd-n295a3_.js +1 -0
  244. package/.next/standalone/packages/console/.next/static/chunks/{22kprc_dbsgjz.js → 2tl4z611_8awi.js} +1 -1
  245. package/.next/standalone/packages/console/.next/static/chunks/2wdgva0npwf-f.js +1 -0
  246. package/.next/standalone/packages/console/.next/static/chunks/30uk516nxj7-y.js +1 -0
  247. package/.next/standalone/packages/console/.next/static/chunks/33pld-8scs565.js +1 -0
  248. package/.next/standalone/packages/console/.next/static/chunks/3416tqe_hi9gt.js +1 -0
  249. package/.next/standalone/packages/console/.next/static/chunks/37z1m78w3m30v.js +1 -0
  250. package/.next/standalone/packages/console/.next/static/chunks/39e1d90jlbiw-.js +1 -0
  251. package/.next/standalone/packages/console/.next/static/chunks/{0kcev3l5eyvux.js → 39v7yufdqy1ko.js} +1 -1
  252. package/.next/standalone/packages/console/.next/static/chunks/3api14s-8v5qv.js +1 -0
  253. package/.next/standalone/packages/console/.next/static/chunks/{3v5kypqchkulb.js → 3bwv42p8mj_u3.js} +1 -1
  254. package/.next/standalone/packages/console/.next/static/chunks/{3ydi8zqssypls.js → 3cqksbz6hiiot.js} +1 -1
  255. package/.next/standalone/packages/console/.next/static/chunks/{2qicmwwvgn33n.js → 3cum2ng-ccy2k.js} +1 -1
  256. package/.next/standalone/packages/console/.next/static/chunks/3d08vpjjajs5u.js +1 -0
  257. package/.next/standalone/packages/console/.next/static/chunks/3gg4swg14czsn.js +1 -0
  258. package/.next/standalone/packages/console/.next/static/chunks/{19h1iu002omr_.js → 3hjoi2bzqj60i.js} +1 -1
  259. package/.next/standalone/packages/console/.next/static/chunks/3ikr_bgx42nz8.js +1 -0
  260. package/.next/standalone/packages/console/.next/static/chunks/3jqy92yv_bbl5.js +1 -0
  261. package/.next/standalone/packages/console/.next/static/chunks/3lnk6ti3s1s4i.js +1 -0
  262. package/.next/standalone/packages/console/.next/static/chunks/3nxxqirmjei_n.js +1 -0
  263. package/.next/standalone/packages/console/.next/static/chunks/3ozw534sw8er_.js +1 -0
  264. package/.next/standalone/packages/console/.next/static/chunks/3p9n2jbwcevpb.js +1 -0
  265. package/.next/standalone/packages/console/.next/static/chunks/3qit4ovphls7e.js +1 -0
  266. package/.next/standalone/packages/console/.next/static/chunks/3vp8zttvdsc56.js +1 -0
  267. package/.next/standalone/packages/console/.next/static/chunks/3w-b8b8a-w8xa.js +1 -0
  268. package/.next/standalone/packages/console/.next/static/chunks/3yv3f9n4ksdv1.js +1 -0
  269. package/.next/standalone/packages/console/package.json +3 -3
  270. package/package.json +3 -3
  271. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0-pqdi3._.js +0 -3
  272. package/.next/standalone/packages/console/.next/server/chunks/ssr/_022r12n._.js +0 -3
  273. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0428c0y._.js +0 -3
  274. package/.next/standalone/packages/console/.next/server/chunks/ssr/_05noh6w._.js +0 -3
  275. package/.next/standalone/packages/console/.next/server/chunks/ssr/_07hh279._.js +0 -3
  276. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0_ro-a_._.js +0 -3
  277. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0bdsmu0._.js +0 -3
  278. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0j-afyt._.js +0 -3
  279. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0mzsxcj._.js +0 -3
  280. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0qux6-9._.js +0 -3
  281. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0sravq5._.js +0 -3
  282. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0vdc793._.js +0 -3
  283. package/.next/standalone/packages/console/.next/server/chunks/ssr/_147ti3f._.js +0 -3
  284. package/.next/standalone/packages/console/.next/server/chunks/ssr/_14ww2ld._.js +0 -3
  285. package/.next/standalone/packages/console/.next/server/chunks/ssr/_18s-bns._.js +0 -3
  286. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1bmxy9n._.js +0 -3
  287. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1e2tdd6._.js +0 -3
  288. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1fthxzz._.js +0 -3
  289. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1gfvjcx._.js +0 -3
  290. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1hsu1v2._.js +0 -3
  291. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1k19-fy._.js +0 -3
  292. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1qzlycs._.js +0 -3
  293. package/.next/standalone/packages/console/.next/server/chunks/ssr/_20j7vun._.js +0 -3
  294. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_components_0wbp67g._.js +0 -3
  295. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_components_14_6o0z._.js +0 -3
  296. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_features_squadrons_organisms_form-squadron-dialog_tsx_06m8azk._.js +0 -3
  297. package/.next/standalone/packages/console/.next/static/chunks/0-t17q21_7x3q.js +0 -1
  298. package/.next/standalone/packages/console/.next/static/chunks/01rgiz0wfbntn.js +0 -1
  299. package/.next/standalone/packages/console/.next/static/chunks/0_3x64wrf-bcc.js +0 -1
  300. package/.next/standalone/packages/console/.next/static/chunks/16f3x-u_wdfad.js +0 -1
  301. package/.next/standalone/packages/console/.next/static/chunks/18g_vf4h4p4_4.js +0 -1
  302. package/.next/standalone/packages/console/.next/static/chunks/1b36z114mad41.js +0 -1
  303. package/.next/standalone/packages/console/.next/static/chunks/1h5fh20hceb_i.js +0 -1
  304. package/.next/standalone/packages/console/.next/static/chunks/1nh5vpmasmibg.js +0 -1
  305. package/.next/standalone/packages/console/.next/static/chunks/1odi-st5n0w9h.js +0 -1
  306. package/.next/standalone/packages/console/.next/static/chunks/1sm_yeexx288v.js +0 -1
  307. package/.next/standalone/packages/console/.next/static/chunks/1tjv8rgwrbbg_.js +0 -1
  308. package/.next/standalone/packages/console/.next/static/chunks/1tp-fe6jeewef.js +0 -1
  309. package/.next/standalone/packages/console/.next/static/chunks/1u5mjrw1qk334.js +0 -1
  310. package/.next/standalone/packages/console/.next/static/chunks/21xp9ny7yw3ug.js +0 -1
  311. package/.next/standalone/packages/console/.next/static/chunks/2_qyhoh1hlhcy.js +0 -1
  312. package/.next/standalone/packages/console/.next/static/chunks/2bid6ecbjoe6s.js +0 -1
  313. package/.next/standalone/packages/console/.next/static/chunks/2bs3zz5ow0i08.js +0 -1
  314. package/.next/standalone/packages/console/.next/static/chunks/2c9lelkw922nc.js +0 -1
  315. package/.next/standalone/packages/console/.next/static/chunks/2c9t_g489tnn5.js +0 -1
  316. package/.next/standalone/packages/console/.next/static/chunks/2cfixbtwii9hq.js +0 -1
  317. package/.next/standalone/packages/console/.next/static/chunks/2ckbufd6psg70.js +0 -1
  318. package/.next/standalone/packages/console/.next/static/chunks/2ggf3qa9xixed.js +0 -1
  319. package/.next/standalone/packages/console/.next/static/chunks/2l01iyjlu686-.js +0 -1
  320. package/.next/standalone/packages/console/.next/static/chunks/2nprd8lmiucz8.js +0 -1
  321. package/.next/standalone/packages/console/.next/static/chunks/2t2yy5clzhxdl.js +0 -1
  322. package/.next/standalone/packages/console/.next/static/chunks/2tl2a2wz8thbf.js +0 -1
  323. package/.next/standalone/packages/console/.next/static/chunks/2xwbclmo1ptlk.js +0 -1
  324. package/.next/standalone/packages/console/.next/static/chunks/3-5a_-zajpox2.js +0 -1
  325. package/.next/standalone/packages/console/.next/static/chunks/31zson-gkby6x.js +0 -1
  326. package/.next/standalone/packages/console/.next/static/chunks/3do-zyuiyy-p5.js +0 -1
  327. package/.next/standalone/packages/console/.next/static/chunks/3du6_2nhp24z0.js +0 -1
  328. package/.next/standalone/packages/console/.next/static/chunks/3ivriv3lk7ps3.js +0 -1
  329. package/.next/standalone/packages/console/.next/static/chunks/3olz31yg-hfjz.js +0 -1
  330. package/.next/standalone/packages/console/.next/static/chunks/3q-rob7jfhbps.js +0 -1
  331. package/.next/standalone/packages/console/.next/static/chunks/3zotgpae5tgmf.js +0 -1
  332. /package/.next/standalone/packages/console/.next/static/{M3UCCsD3-uSl8HVucbFrh → twzbuC-Aavq-gnA6UysmF}/_buildManifest.js +0 -0
  333. /package/.next/standalone/packages/console/.next/static/{M3UCCsD3-uSl8HVucbFrh → twzbuC-Aavq-gnA6UysmF}/_clientMiddlewareManifest.js +0 -0
  334. /package/.next/standalone/packages/console/.next/static/{M3UCCsD3-uSl8HVucbFrh → twzbuC-Aavq-gnA6UysmF}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,508734,e=>{"use strict";var s=e.i(456420);let t={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};t.node;let i=(0,s.default)(t);e.s(["Copy",0,i],508734)},386247,e=>{"use strict";var s=e.i(456420);let t={name:"ellipsis",size:24,node:[["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"}]],aliases:["more-horizontal"]};t.node;let i=(0,s.default)(t);e.s(["Ellipsis",0,i],386247)},668997,73330,e=>{"use strict";var s=e.i(456420);let t={name:"pen",size:24,node:[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],aliases:["edit-2"]};t.node;let i=(0,s.default)(t);e.s(["Pen",0,i],668997);var n=e.i(849635);e.s(["canPing",0,function(e){return("agent"===e.kind||"plugin"===e.kind)&&"crewed"===e.status},"pingLine",0,function(e,s){let t=new Date(e.sentAt);switch(e.state){case"waiting":{let e=(0,n.relativeTime)(t,s);return`Pinged ${"Just now"===e?"just now":e}, no answer yet`}case"answered":var i;let r;return null===e.answeredAt?"Answered ping":`Answered ping in ${(r=Math.max(0,(i=new Date(e.answeredAt)).getTime()-t.getTime()))<6e4?`${String(Math.round(r/1e3))} s`:(0,n.duration)(t,i)}`;case"acknowledged":return"Received, not answered with pong";case"undeliverable":return"Ping not answered: undeliverable"}}],73330)},615331,e=>{"use strict";var s=e.i(456420);let t={name:"radio",size:24,node:[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]};t.node;let i=(0,s.default)(t);e.s(["Radio",0,i],615331)},149319,e=>{"use strict";var s=e.i(456420);let t={name:"user-minus",size:24,node:[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]};t.node;let i=(0,s.default)(t);e.s(["UserMinus",0,i],149319)},357443,e=>{"use strict";var s=e.i(456420);let t={name:"user-plus",size:24,node:[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]};t.node;let i=(0,s.default)(t);e.s(["UserPlus",0,i],357443)},771139,e=>{"use strict";var s=e.i(456420);let t={name:"user-x",size:24,node:[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"17",x2:"22",y1:"8",y2:"13",key:"3nzzx3"}],["line",{x1:"22",x2:"17",y1:"8",y2:"13",key:"1swrse"}]]};t.node;let i=(0,s.default)(t);e.s(["UserX",0,i],771139)},367795,e=>{"use strict";let s=/^[a-z0-9:-]+$/,t=`Use 1 to ${String(48)} lowercase letters, digits, hyphens or colons`;e.s(["SHIP_HANDLE_MAX_LENGTH",0,48,"SHIP_HANDLE_MESSAGE",0,t,"SHIP_HANDLE_PATTERN",0,s,"isShipHandle",0,function(e){return e.length<=48&&s.test(e)}])},839334,e=>{"use strict";var s=e.i(843476),t=e.i(762687),i=e.i(748955),n=e.i(621482),r=e.i(905387),a=e.i(731877),o=e.i(42756),l=e.i(427702),d=e.i(457665),c=e.i(271645),u=e.i(917540),h=e.i(490262),p=e.i(54492),m=e.i(853573),g=e.i(574296);let f=(0,u.lazyDialog)(()=>e.A(705419).then(e=>e.CrewReleaseDialog),e=>e.isOpen);function x({ship:e}){let t=(0,h.useAccess)(),i=(0,r.useRemoveCrewRequest)(),[n,a]=(0,c.useState)(!1),o=(0,m.useShip)(n?e.id:void 0),l=(0,p.crewRequestStage)(e);return t.canManage&&"assigned"===l.kind&&"crashed"===l.status?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(g.Button,{size:"xs",icon:(0,s.jsx)(d.Power,{}),"data-testid":"needs-crew-release",onClick:()=>{i.reset(),a(!0)},children:"Release…"}),(0,s.jsx)(f,{shipName:e.name,stage:l,inFlightCount:o.data?.inFlightDeliveries??0,isOpen:n&&void 0!==o.data,onOpenChange:a,isPending:i.isPending,error:null===i.error?void 0:`${i.error.message} Nothing changed.`,onConfirm:()=>{i.mutate({shipId:e.id},{onSuccess:()=>{a(!1)}})}})]}):null}var w=e.i(221959),y=e.i(566297),v=e.i(218964),j=e.i(586875),S=e.i(522016),b=e.i(349841),C=e.i(849635),N=e.i(766390),k=e.i(67874),R=e.i(817981),L=e.i(298421),I=e.i(188393),P=e.i(78865);function D({at:e,now:t}){let i=new Date(e);return(0,s.jsx)("time",{dateTime:e,title:(0,C.fullDateTime)(i),className:"tabular-nums",children:t.getTime()-i.getTime()<864e5?`Today, ${(0,C.clockTime)(i)}`:(0,C.shortDateTime)(i)})}function T({ship:e,now:t}){let i=(0,b.handCrewOf)(e);switch(i.kind){case"no-prompt":return(0,s.jsx)("span",{className:"text-muted-foreground",children:"No starting prompt issued"});case"prompt-unclaimed":return(0,s.jsxs)("span",{className:"flex flex-col",children:[(0,s.jsxs)("span",{children:["Prompt issued ",(0,s.jsx)(D,{at:i.issuedAt,now:t})]}),(0,s.jsx)("span",{className:"text-muted-foreground",children:"No session has taken it yet"})]});case"crew-ended":return(0,s.jsxs)("span",{className:"flex flex-col",children:[(0,s.jsx)("span",{children:"Was crewed by hand"}),null===i.endedAt?null:(0,s.jsxs)("span",{className:"text-muted-foreground",children:["Lease ended ",(0,s.jsx)(D,{at:i.endedAt,now:t})]})]})}}function A({ship:e}){let t=(0,p.crewRequestStage)(e);return"assigned"===t.kind?(0,s.jsxs)("span",{className:"flex flex-wrap items-center gap-x-2 gap-y-1",children:[(0,s.jsx)(P.StatusBadge,{status:t.status}),(0,s.jsxs)("span",{className:"inline-flex items-center gap-1",children:["on",(0,s.jsxs)(S.default,{href:`/trierarchs/${t.trierarch.id}`,className:"inline-flex items-center gap-1 font-medium underline decoration-input underline-offset-3 [&_svg]:size-(--size-icon-sm) [&_svg]:text-muted-foreground",children:[(0,s.jsx)(j.ShipWheel,{"aria-hidden":!0}),t.trierarch.name]})]})]}):(0,s.jsxs)("span",{className:"flex flex-wrap items-center gap-x-2 gap-y-1",children:[(0,s.jsx)(P.StatusBadge,{status:"needsCrew"}),(0,s.jsx)("span",{className:"text-muted-foreground",children:"needsCrew"===t.kind&&null!==t.reason?t.reason:"Not assigned yet"})]})}let O="grid items-center gap-x-4 gap-y-1.5 px-4 py-3 max-sm:grid-cols-1 max-sm:px-3.5 sm:grid-cols-[minmax(0,1fr)_minmax(0,1.6fr)_minmax(0,1fr)_minmax(0,11rem)]";function q({ships:e,more:t,hasTrierarchs:i,error:n,onRetry:r,actionOf:a,now:o}){return void 0!==n?(0,s.jsx)(R.InlineError,{variant:"page",title:"Couldn’t read the fleet",description:"Nothing changed.",detail:n,onRetry:r}):void 0===e?(0,s.jsx)(I.LoadingSkeleton,{variant:"table",rows:3,label:"Loading Needs crew"}):0===e.length?(0,s.jsx)(k.EmptyState,{icon:(0,s.jsx)(v.ListChecks,{"aria-hidden":!0}),title:"Nothing needs crew",description:i?"Every crew request is running. A request shows here while it waits for a trierarch, is crewing, restarting or crashed.":"No ship with a crew request awaits crew. Request a crew on a ship’s page to put it here."}):(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsxs)("div",{className:"overflow-hidden rounded-lg border border-border bg-card","data-testid":"needs-crew-list",children:[(0,s.jsxs)("div",{className:`${O} border-b border-border bg-muted py-2.5 text-caption font-medium text-muted-foreground max-sm:hidden`,"aria-hidden":!0,children:[(0,s.jsx)("span",{children:"Ship"}),(0,s.jsx)("span",{children:i?"Status":"Crew"}),(0,s.jsx)("span",{children:"Requested"}),(0,s.jsx)("span",{className:"sr-only",children:"Next step"})]}),(0,s.jsx)("ul",{className:"divide-y divide-border",children:e.map(e=>(0,s.jsxs)("li",{className:`${O} text-body`,"data-testid":"needs-crew-row",children:[(0,s.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:[(0,s.jsx)(S.default,{href:`/ships/${e.id}`,className:"truncate font-medium hover:underline","data-testid":"needs-crew-ship",children:e.name}),(0,s.jsx)(N.Badge,{variant:"type",children:e.type})]}),(0,s.jsx)("span",{className:"min-w-0 text-meta",children:i?(0,s.jsx)(A,{ship:e}):(0,s.jsx)(T,{ship:e,now:o})}),(0,s.jsx)("span",{className:"flex flex-col text-meta",children:null===e.crewRequest?null:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(D,{at:e.crewRequest.requestedAt,now:o}),o.getTime()-new Date(e.crewRequest.requestedAt).getTime()<864e5?(0,s.jsx)("span",{className:"text-muted-foreground",children:(0,C.relativeTime)(new Date(e.crewRequest.requestedAt),o)}):null]})}),(0,s.jsx)("span",{className:"flex justify-end max-sm:justify-start",children:a?.(e)})]},e.id))}),t?.hasMore===!0?(0,s.jsx)(L.LoadMore,{what:"more ships",isLoading:t.isLoading,isFailed:t.isFailed,onLoad:t.onLoad,area:"needs-crew"}):null]}),(0,s.jsx)("p",{className:"text-meta text-muted-foreground",children:i?"Running requests are not listed here; the fleet overview shows them. A request stays until you release the ship.":"A request stays until you remove it or release the ship. With the trierarch plugin, trierarchs crew these for you."})]})}var M=e.i(509892),E=e.i(787964),z=e.i(718423),F=e.i(928459),_=e.i(296676),B=e.i(303979),$=e.i(678485);e.s(["default",0,function(){var e;let d,c,u,h=(0,_.useNow)(),p=(0,E.useConsoleFrame)(),m=(0,F.useNeedsAttention)(),g=(0,z.useLiveFleet)(),f=(0,B.usePluginNav)(),{hasTrierarchs:v}=f,j=(e={hasTrierarchs:v},d=(0,l.useTRPC)(),c={needsCrew:e.hasTrierarchs?"withTrierarchs":"withoutTrierarchs"},{...u=(0,a.pagedListOf)((0,n.useInfiniteQuery)(d.fleet.list.infiniteQueryOptions({...c,sort:{column:"requested",direction:"ascending"},limit:a.CONSOLE_PAGE_SIZE},{getNextPageParam:a.nextCursorOf,refetchInterval:r.LAST_SEEN_REFRESH_MS}))),items:u.items&&(0,o.shipRowsOf)(u.items,c)});return(0,$.useSignInWhenSessionEnds)([m.error,g.error,j.error]),(0,s.jsx)(M.ListPage,{...p,title:"Needs crew",description:v?"Ships with a crew request that are not running. Trierarchs crew them; you step in when one crashes or waits for room.":"Ships you asked to keep crewed that have no crew. Crew each one by hand; crewing it fulfils the request.",live:g.live,toolbar:(0,s.jsx)(t.FleetSegments,{active:"needs-crew",needsCrewCount:f.needsCrewCount}),children:(0,s.jsx)(q,{ships:j.items,more:{hasMore:j.hasMore,isLoading:j.isLoadingMore,isFailed:j.isLoadMoreFailed,onLoad:j.loadMore},hasTrierarchs:v,error:j.isFailed?j.error instanceof Error?j.error.message:String(j.error):void 0,onRetry:j.retry,actionOf:e=>v?(0,s.jsx)(x,{ship:e}):(0,s.jsx)(w.ShipActions,{ship:e,layout:"next",compose:i.ComposeMessage,crewLineFlow:y.NewCrewLineFlow}),now:h})})}],839334)},424010,e=>{"use strict";var s=e.i(843476);e.s([],558762),e.i(558762);var t=e.i(366250),i=e.i(402820),n=e.i(156736),r=e.i(209793),a=e.i(784324),o=e.i(264951),l=e.i(77173);let d=e.i(313488).DialogTrigger;var c=e.i(974217),u=e.i(325326);class h extends u.DialogHandle{}e.s(["Backdrop",()=>i.DialogBackdrop,"Close",()=>n.DialogClose,"Description",()=>r.DialogDescription,"Handle",0,h,"Popup",()=>a.DialogPopup,"Portal",()=>o.DialogPortal,"Root",0,function(e){return(0,t.useRenderDialogRoot)("alert-dialog",e)},"Title",()=>l.DialogTitle,"Trigger",0,d,"Viewport",()=>c.DialogViewport,"createHandle",0,function(){return new h}],734604);var p=e.i(734604),p=p,m=e.i(965324),g=e.i(746675);e.s(["AlertDialog",0,function(e){return(0,s.jsx)(p.Root,{"data-slot":"alert-dialog",...e})},"AlertDialogClose",0,function(e){return(0,s.jsx)(p.Close,{"data-slot":"alert-dialog-close",...e})},"AlertDialogContent",0,function({className:e,size:t,children:i,...n}){return(0,s.jsxs)(p.Portal,{children:[(0,s.jsx)(p.Backdrop,{"data-slot":"alert-dialog-overlay",className:g.dialogSurface.overlay}),(0,s.jsx)(p.Popup,{"data-slot":"alert-dialog-content",className:(0,m.classNames)(g.dialogSurface.popup({size:t}),e),...n,children:i})]})},"AlertDialogDescription",0,function({className:e,...t}){return(0,s.jsx)(p.Description,{"data-slot":"alert-dialog-description",className:(0,m.classNames)(g.dialogSurface.description,e),...t})},"AlertDialogFooter",0,function({className:e,...t}){return(0,s.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,m.classNames)(g.dialogSurface.footer,e),...t})},"AlertDialogHeader",0,function({className:e,...t}){return(0,s.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,m.classNames)(g.dialogSurface.header,e),...t})},"AlertDialogTitle",0,function({className:e,...t}){return(0,s.jsx)(p.Title,{"data-slot":"alert-dialog-title",className:(0,m.classNames)(g.dialogSurface.title,e),...t})}],424010)},762687,e=>{"use strict";var s=e.i(843476),t=e.i(522016),i=e.i(965324);e.s(["FleetSegments",0,function({active:e,needsCrewCount:n}){let r=e=>(0,i.classNames)("flex h-(--size-control-touch) grow items-center justify-center gap-1.5 rounded-md text-body-touch font-medium",e?"bg-card text-foreground shadow-sm":"text-muted-foreground");return(0,s.jsxs)("nav",{"aria-label":"Fleet views",className:"flex gap-0.5 rounded-lg border border-border bg-muted p-0.5 sm:hidden","data-testid":"fleet-segments",children:[(0,s.jsx)(t.default,{href:"/","aria-current":"ships"===e?"page":void 0,className:r("ships"===e),"data-testid":"fleet-segment-ships",children:"Ships"}),(0,s.jsxs)(t.default,{href:"/needs-crew","aria-current":"needs-crew"===e?"page":void 0,className:r("needs-crew"===e),"data-testid":"fleet-segment-needs-crew",children:["Needs crew",void 0===n||0===n?null:(0,s.jsx)("span",{className:"text-micro tabular-nums",children:n})]})]})}])},298421,e=>{"use strict";var s=e.i(843476),t=e.i(456420);let i={name:"chevrons-down",size:24,node:[["path",{d:"m7 6 5 5 5-5",key:"1lc07p"}],["path",{d:"m7 13 5 5 5-5",key:"1d48rs"}]]};i.node;let n=(0,t.default)(i);var r=e.i(574296),a=e.i(817981);e.s(["LoadMore",0,function({what:e,isLoading:t,isFailed:i,onLoad:o,area:l}){return i?(0,s.jsx)(a.InlineError,{title:`Couldn’t load ${e}`,description:"What is shown stays as it is. Try again in a moment.",onRetry:o,className:"m-3"}):(0,s.jsx)("div",{className:"flex justify-center border-t border-border px-3.5 py-2.5",children:(0,s.jsx)(r.Button,{size:"sm",variant:"ghost",icon:(0,s.jsx)(n,{"aria-hidden":!0}),isLoading:t,onClick:o,"data-testid":`${l}-load-more`,children:t?`Loading ${e}...`:`Load ${e}`})})}],298421)},509892,e=>{"use strict";var s=e.i(843476),t=e.i(819759),i=e.i(574296),n=e.i(577880),r=e.i(485538);e.s(["ListPage",0,function({title:e,description:a,titleMeta:o,primaryAction:l,toolbar:d,live:c,onCompose:u,onSearch:h,switcher:p,account:m,banner:g,phoneTopBar:f,children:x}){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.Header,{breadcrumb:e,live:c,switcher:p,account:m,onCompose:u,onSearch:h}),g,f??(0,s.jsx)(r.TopBar,{title:e,live:c,switcher:p,account:m,onSearch:h,actions:u?(0,s.jsx)(i.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Compose","data-testid":"top-bar-compose",onClick:u,children:(0,s.jsx)(t.SquarePen,{"aria-hidden":!0})}):void 0}),(0,s.jsxs)("main",{className:"flex grow flex-col gap-5 px-8 py-6 max-sm:gap-3.5 max-sm:px-4 max-sm:pt-3.5 max-sm:pb-[calc(var(--size-tabbar)+var(--spacing)*4)]",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4 max-sm:gap-3",children:[(0,s.jsxs)("div",{className:"flex min-w-0 flex-col gap-1",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1",children:[(0,s.jsx)("h1",{className:"text-title font-semibold tracking-tight text-foreground max-sm:text-title-touch",children:e}),o]}),a?(0,s.jsx)("p",{className:"text-meta text-muted-foreground max-sm:text-body-touch",children:a}):null]}),l?(0,s.jsx)("div",{className:"shrink-0 max-sm:w-full max-sm:[&>*]:w-full",children:l}):null]}),d,x]})]})}])},221959,e=>{"use strict";var s=e.i(843476),t=e.i(876561),i=e.i(508734),n=e.i(386247),r=e.i(444594),a=e.i(758925),o=e.i(668997),l=e.i(615331),d=e.i(660011),c=e.i(819759),u=e.i(149319),h=e.i(357443),p=e.i(771139),m=e.i(522016),g=e.i(271645),f=e.i(905387),x=e.i(917540),w=e.i(490262),y=e.i(280581),v=e.i(440407),j=e.i(73330),S=e.i(853573),b=e.i(686165),C=e.i(448695),N=e.i(784294),k=e.i(684156),R=e.i(574296),L=e.i(407242),I=e.i(638919),P=e.i(341880);let D=(0,x.lazyDialog)(()=>e.A(726403).then(e=>e.ReleaseDialog),e=>e.isOpen),T=(0,x.lazyDialog)(()=>e.A(88138).then(e=>e.RemoveMemberDialog),e=>e.isOpen),A=(0,x.lazyDialog)(()=>e.A(157993).then(e=>e.RenameDialog),e=>e.isOpen),O=(0,x.lazyDialog)(()=>e.A(741585).then(e=>e.RetireDialog),e=>e.isOpen),q=(0,x.lazyDialog)(()=>e.A(495953).then(e=>e.StartingPromptDialog),e=>e.isOpen);function M({ship:e,layout:n,compose:m,squadron:x,member:b,isMembershipPending:R,crewLine:L}){var I,E;let z=(0,w.useAccess)(),[_,B]=(0,g.useState)(),[$,H]=(0,g.useState)(!1),[G,U]=(0,g.useState)(void 0),Q=(0,f.useGetStartingPrompt)(),W=(0,f.useReleaseShip)(),K=(0,f.useRetireShip)(),X=(0,f.useRecrewShip)(),Z=(0,f.useRenameShip)(),V=(0,f.usePingShip)(),[J,Y]=(0,g.useState)(""),ee=(0,v.useIsShipNameTaken)("rename"===_?J:""),es=(0,f.useFleetLabels)(),et=(0,S.useShip)("release"===_||"recrew"===_||"retire"===_||"remove"===_?e.id:void 0),ei=(0,C.useRemoveMember)(),en=()=>{B(void 0)},er=Q.data??X.data,ea=er?"shown":Q.isError?"error":"issuing",eo=e=>()=>{W.reset(),K.reset(),X.reset(),Z.reset(),ei.reset(),B(e)},el=async()=>{try{await navigator.clipboard.writeText(e.id),(0,P.showToast)({title:"Ship id copied",description:e.id,tone:"success"})}catch{(0,P.showToast)({title:"Couldn’t copy the ship id",description:e.id,tone:"error"})}},ed=x?.flagship.shipId===e.id,ec={key:"message",label:"Message",menuLabel:"Message this ship…",icon:c.SquarePen,testId:"fleet-ship-message",onSelect:()=>{H(!0)},isMenuOnly:!0,needs:"canSend"},eu={key:"copy",label:"Copy ship id",menuLabel:"Copy ship id",icon:i.Copy,testId:"fleet-ship-copy-id",onSelect:()=>{el()},isMenuOnly:!0},eh=(0,j.canPing)(e)?[{key:"ping",label:"Ping",menuLabel:"Ping",icon:l.Radio,testId:"fleet-ship-ping",onSelect:()=>{V.mutate({shipId:e.id},{onSuccess:({isNew:s})=>{(0,P.showToast)(s?{title:`Pinged ${e.name}`,description:"Its session answers with pong on its next turn.",tone:"success"}:{title:`A ping already waits for ${e.name}`,description:"Pings never stack: this is the one shown.",tone:"info"})},onError:s=>{(0,P.showToast)({title:`Couldn’t ping ${e.name}`,description:s.message,tone:"error"})}})},isLoading:V.isPending,needs:"canManage"}]:[],ep=[];return"operator"===e.kind?ep.push({key:"inbox",label:"Open inbox",menuLabel:"Open inbox",icon:r.Inbox,testId:"fleet-ship-open-inbox",href:"/inbox",isMenuOnly:!0},eu):"retired"===e.status||"viewer"===e.kind?ep.push(eu):ed?ep.push({key:"squadron",label:"Open squadron",menuLabel:"Open squadron",icon:d.Shapes,testId:"fleet-ship-open-squadron",href:`/squadrons/${x.id}`}):R?ep.push(ec,eu,...eh):b&&x?(ep.push(ec,eu,...eh,{key:"crew-line",label:"Get new crew line",menuLabel:"Get new crew line…",icon:a.KeyRound,testId:"fleet-ship-new-crew-line",onSelect:L.start,needs:"canManage",isDisabled:!L.isReady,isPrimary:"silent"===b.health}),"crewed"===e.status&&ep.push({key:"release",label:"Release",menuLabel:"Release ship…",icon:p.UserX,testId:"fleet-ship-release",onSelect:eo("release"),needs:"canManage"}),("sailing"===x.state||"standing-down"===x.state)&&ep.push({key:"remove",label:"Remove from squadron",menuLabel:"Remove from squadron…",icon:u.UserMinus,testId:"fleet-ship-remove",onSelect:eo("remove"),isDestructive:!0,needs:"canManage"})):(ep.push(ec,eu),"awaitingCrew"===e.status?ep.push({key:"prompt",label:"Get starting prompt",menuLabel:"Get starting prompt…",icon:a.KeyRound,testId:"fleet-ship-prompt",onSelect:()=>{Q.reset(),X.reset(),U((0,k.isUnclaimedPromptOut)(e)&&e.startingPrompt?{issuedAt:e.startingPrompt.issuedAt}:void 0),B("prompt"),Q.mutate({shipId:e.id})},needs:"canManage"}):ep.push(...eh,{key:"recrew",label:"Re-crew",menuLabel:"Re-crew…",icon:h.UserPlus,testId:"fleet-ship-recrew",onSelect:eo("recrew"),needs:"canManage"},{key:"release",label:"Release",menuLabel:"Release ship…",icon:p.UserX,testId:"fleet-ship-release",onSelect:eo("release"),needs:"canManage"}),ep.push({key:"rename",label:"Rename",menuLabel:"Rename…",icon:o.Pen,testId:"fleet-ship-rename",onSelect:eo("rename"),needs:"canManage"},{key:"retire",label:"Retire",menuLabel:"Retire ship…",icon:t.Archive,testId:"fleet-ship-retire",onSelect:eo("retire"),isDestructive:!0,needs:"canManage"})),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(F,{layout:n,ship:e,actions:(I=ep,E=z,I.filter(e=>void 0===e.needs||E[e.needs]))}),(0,s.jsx)(D,{shipName:e.name,sessionLocation:null===e.location?null:e.location.description??e.location.kind.toLowerCase(),inFlightCount:et.data?.inFlightDeliveries??0,mode:"recrew"===_?"recrew":"release",isOpen:("release"===_||"recrew"===_)&&void 0!==et.data,onOpenChange:e=>{e||en()},isPending:W.isPending||X.isPending,error:("recrew"===_?X.error:W.error)?.message,onConfirm:()=>{"recrew"===_?X.mutate({shipId:e.id},{onSuccess:()=>{U(void 0),B("prompt")}}):W.mutate({shipId:e.id},{onSuccess:en})}}),(0,s.jsx)(O,{shipName:e.name,openDeliveries:et.data?.openDeliveries??0,isCrewed:"crewed"===e.status,isOpen:"retire"===_&&void 0!==et.data,onOpenChange:e=>{e||en()},isPending:K.isPending,error:K.error?.message,onConfirm:()=>{K.mutate({shipId:e.id},{onSuccess:en})},labelLines:void 0===es.data?void 0:(0,y.retireLabelLines)((0,y.retiredLabelsOf)(e,{labels:es.data}))}),x&&b&&(0,s.jsx)(T,{squadronId:x.id,member:b,othersOfRole:(0,N.otherMembersOfRole)(x,b.shipId),openDeliveries:et.data?.openDeliveries??0,inFlightDeliveries:et.data?.inFlightDeliveries??0,isOpen:"remove"===_&&void 0!==et.data,onOpenChange:e=>{e||en()},isPending:ei.isPending,error:ei.error?.message,onConfirm:()=>{ei.mutate({squadronId:x.id,shipId:b.shipId},{onSuccess:en})}}),(0,s.jsx)(A,{shipName:e.name,takenNames:!0===ee?[J]:[],onNameChange:Y,isOpen:"rename"===_,onOpenChange:e=>{e||en()},isPending:Z.isPending,error:Z.error?.message,onSubmit:s=>{Z.mutate({shipId:e.id,name:s},{onSuccess:en})}}),(0,s.jsx)(q,{shipName:e.name,state:ea,prompt:er?.prompt,crewLines:er?.crewLines,replacesUnclaimed:G,error:Q.error?.message,isOpen:"prompt"===_,onOpenChange:e=>{e||(Q.reset(),X.reset(),en())},onConfirm:()=>{X.reset(),Q.mutate({shipId:e.id})}}),L.dialog,$&&(0,s.jsx)(m,{isOpen:!0,onOpenChange:H,toShipId:e.id})]})}function E({action:e,className:t}){let i=e.isPrimary?"primary":e.isDestructive||"rename"===e.key?"ghost":"secondary";return void 0!==e.href?(0,s.jsx)(R.Button,{size:"xs",variant:i,nativeButton:!1,"data-testid":e.testId,className:t,render:(0,s.jsx)(m.default,{href:e.href}),children:e.label}):(0,s.jsx)(R.Button,{size:"xs",variant:i,"data-testid":e.testId,disabled:e.isDisabled,isLoading:e.isLoading,className:t,onClick:e.onSelect,children:e.label})}function z(e,s){let t=e[s-1],i=e[s];return void 0!==t&&void 0!==i&&(!0===t.isMenuOnly&&!0!==i.isMenuOnly||!0===i.isDestructive&&!0!==t.isDestructive)}function F({layout:e,ship:t,actions:i}){if("next"===e){let e=i.find(e=>"prompt"===e.key||"crew-line"===e.key&&!0===e.isPrimary);return e?(0,s.jsx)(E,{action:{...e,isPrimary:!1},className:"max-sm:h-(--size-control-touch) max-sm:w-full max-sm:text-body-touch"}):null}if("buttons"===e){let e=i.filter(e=>!0!==e.isMenuOnly);return 0===e.length?null:(0,s.jsx)("div",{className:"flex flex-wrap items-center justify-end gap-2 max-sm:justify-start",children:e.map(e=>(0,s.jsx)(E,{action:e},e.key))})}let r=(0,s.jsx)(R.Button,{size:"sheet"===e?"touch":"xs",variant:"ghost",isIconOnly:!0,"aria-label":`Actions for ${t.name}`,icon:(0,s.jsx)(n.Ellipsis,{}),"data-testid":"fleet-actions"});return"sheet"===e?(0,s.jsxs)(I.Sheet,{children:[(0,s.jsx)(I.SheetTrigger,{render:r}),(0,s.jsxs)(I.SheetContent,{side:"bottom","data-testid":"fleet-row-sheet",children:[(0,s.jsx)(I.SheetHeader,{children:(0,s.jsx)(I.SheetTitle,{children:t.name})}),(0,s.jsx)("ul",{className:"flex flex-col pb-2",children:i.map((e,t)=>(0,s.jsx)("li",{className:z(i,t)?"mt-1 border-t border-border pt-1":void 0,children:(0,s.jsxs)(I.SheetClose,{render:void 0===e.href?(0,s.jsx)("button",{type:"button",disabled:e.isDisabled,onClick:e.onSelect}):(0,s.jsx)(m.default,{href:e.href}),"data-testid":e.testId,className:`flex h-(--size-control-touch) w-full items-center gap-3 px-4 text-left text-body-touch disabled:opacity-45 [&_svg]:size-(--size-icon) [&_svg]:shrink-0 ${e.isDestructive?"text-destructive-text":"text-foreground"}`,children:[(0,s.jsx)(e.icon,{"aria-hidden":!0}),e.menuLabel.replace(/…$/,"")]})},e.key))}),(0,s.jsx)("div",{className:"px-4 pb-4",children:(0,s.jsx)(I.SheetClose,{render:(0,s.jsx)(R.Button,{size:"touch",className:"w-full"}),children:"Cancel"})})]})]}):(0,s.jsxs)(L.DropdownMenu,{children:[(0,s.jsx)(L.DropdownMenuTrigger,{render:r}),(0,s.jsx)(L.DropdownMenuContent,{children:i.map((e,t)=>(0,s.jsxs)(g.Fragment,{children:[z(i,t)?(0,s.jsx)(L.DropdownMenuSeparator,{}):null,void 0===e.href?(0,s.jsxs)(L.DropdownMenuItem,{"data-testid":e.testId,disabled:e.isDisabled,variant:e.isDestructive?"destructive":"default",onClick:e.onSelect,children:[(0,s.jsx)(e.icon,{"aria-hidden":!0}),e.menuLabel]}):(0,s.jsxs)(L.DropdownMenuItem,{"data-testid":e.testId,render:(0,s.jsx)(m.default,{href:e.href}),children:[(0,s.jsx)(e.icon,{"aria-hidden":!0}),e.menuLabel]})]},e.key))})]})}e.s(["ShipActions",0,function({ship:e,layout:t="buttons",compose:i,crewLineFlow:n}){let r=(0,b.useSquadronsConnection)(),a=(0,C.useSquadrons)(),o=a.data?.find(s=>"disbanded"!==s.state&&(s.flagship.shipId===e.id||s.members.some(s=>s.shipId===e.id))),l=void 0!==o&&o.flagship.shipId!==e.id,d=(0,S.useShip)(l&&"retired"!==e.status?e.id:void 0),c=o?.members.find(s=>s.shipId===e.id),u="unknown"===r||"connected"===r&&!a.isFetched;return(0,s.jsx)(n,{of:o&&c?{squadronId:o.id,member:c,ship:d.data??void 0}:void 0,children:n=>(0,s.jsx)(M,{ship:e,layout:t,compose:i,squadron:o,member:c,isMembershipPending:u,crewLine:n})})}])},566297,e=>{"use strict";var s=e.i(843476),t=e.i(271645),i=e.i(917540),n=e.i(826808),r=e.i(448695),a=e.i(574296),o=e.i(424010),l=e.i(746675);function d({memberName:e,replacedText:t,isOpen:i,onOpenChange:n,onConfirm:r}){return(0,s.jsx)(o.AlertDialog,{open:i,onOpenChange:n,children:(0,s.jsxs)(o.AlertDialogContent,{"data-testid":"new-crew-line-confirm",className:l.dialogSurface.phoneSheet,children:[(0,s.jsxs)(o.AlertDialogHeader,{children:[(0,s.jsxs)(o.AlertDialogTitle,{children:["Get a new crew line for ",e,"?"]}),(0,s.jsx)(o.AlertDialogDescription,{children:t??"Its new secret is shown once, with its launch note."})]}),(0,s.jsxs)(o.AlertDialogFooter,{children:[(0,s.jsx)(o.AlertDialogClose,{render:(0,s.jsx)(a.Button,{}),children:"Cancel"}),(0,s.jsx)(a.Button,{variant:"primary","data-testid":"new-crew-line-confirm-submit",onClick:r,children:"Get new crew line"})]})]})})}let c=(0,i.lazyDialog)(()=>e.A(733971).then(e=>e.CrewLineDialog),e=>e.isOpen);function u(e){let i=(0,r.useNewCrewLine)(),[a,o]=(0,t.useState)(!1),[l,u]=(0,t.useState)(!1),[h,p]=(0,t.useState)(void 0),m=()=>{e&&i.mutate({squadronId:e.squadronId,shipId:e.member.shipId})},g=i.data?"shown":i.isError?"error":"issuing";return{isReady:e?.ship!==void 0,start:()=>{e?.ship&&(i.reset(),p((0,n.newCrewLineReplaced)(e.ship)),u(!0))},dialog:e?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d,{memberName:e.member.name,replacedText:h,isOpen:l,onOpenChange:u,onConfirm:()=>{u(!1),o(!0),m()}}),(0,s.jsx)(c,{memberName:e.member.name,state:g,template:e.template,launchNote:i.data?.launchNote,model:i.data?.model,crewLines:i.data?.crewLines,error:i.error?.message,isOpen:a,onOpenChange:e=>{o(e),e||i.reset()},onConfirm:m})]}):null}}e.s(["GetNewCrewLine",0,function({isPrimary:e=!1,testId:t,...i}){let n=u(i);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.Button,{size:"xs",variant:e?"primary":"secondary",disabled:!n.isReady,"data-testid":t,onClick:n.start,children:"Get new crew line"}),n.dialog]})},"NewCrewLineFlow",0,function({of:e,children:s}){return s(u(e))},"useNewCrewLineFlow",0,u],566297)},54492,e=>{"use strict";e.s(["crewRequestAction",0,function(e){switch(e.kind){case"none":return;case"needsCrew":return"remove";case"crewedByHand":return"release";case"assigned":return"releasing"===e.status?void 0:"release"}},"crewRequestStage",0,function(e){let s=e.crewRequest;return null===s?{kind:"none"}:null!==s.assignedTo?{kind:"assigned",requestedAt:s.requestedAt,trierarch:s.assignedTo,status:s.status??"crewing",attempt:s.attempt,startedAt:s.startedAt}:null!==s.crewedBy?{kind:"crewedByHand",requestedAt:s.requestedAt,crewedBy:s.crewedBy,since:e.crewedSince??null}:{kind:"needsCrew",requestedAt:s.requestedAt,reason:s.reason}},"isRestartable",0,function(e){return"assigned"===e.kind&&"crashed"===e.status},"releaseSteps",0,function(e){return"crewedByHand"===e.kind?["removeCrewRequest","release"]:["removeCrewRequest"]},"requestedBy",0,function(e){return e.find(e=>"CrewRequested"===e.type)?.actor??null},"restartWords",0,function({status:e,attempt:s}){let t=`${String(s)} ${1===s?"restart":"restarts"}`;switch(e){case"restarting":return`attempt ${String(s)}`;case"crashed":return t;case"running":return 0===s?void 0:t;case"crewing":case"releasing":return}},"statusChangedAt",0,function(e){return e.find(e=>"CrewStatusChanged"===e.type)?.occurredAt}])},890135,e=>{"use strict";e.s(["OPERATOR_NAME",0,"argo","capitalised",0,function(e){return e.charAt(0).toUpperCase()+e.slice(1)},"counted",0,function(e,s){return`${String(e)} ${1===e?s.one:s.many}`},"ship",0,function(e){return{kind:"ship",party:e}},"text",0,function(e){return{kind:"text",text:e}}])},826808,e=>{"use strict";var s=e.i(890135);let t={one:"delivery",many:"deliveries"};function i(e){if(0===e)return"Nothing is in flight, so no delivery moves.";let t=1===e?"returns":"return";return`${(0,s.counted)(e,{one:"in-flight delivery",many:"in-flight deliveries"})} ${t} to pending. Nothing is lost.`}e.s(["abandonedLine",0,function(e){return`${(0,s.counted)(e,t)} will be abandoned`},"inFlightLine",0,i,"isTypedMatch",0,function(e,s){return s===e},"newCrewLineReplaced",0,function(e){if("crewed"===e.status){let s=null===e.location?"the session crewing it":`the session on ${e.location.description??e.location.kind.toLowerCase()}`;return`This ends ${s}. ${i(e.inFlightDeliveries)}`}if(null!==e.startingPrompt&&!e.startingPrompt.isClaimed)return"The crew line issued earlier, not claimed yet, stops working."},"retireButtonLabel",0,function(e){return 0===e?"Retire ship":`Retire and abandon ${(0,s.counted)(e,t)}`}])},440407,e=>{"use strict";var s=e.i(367795),t=e.i(266027),i=e.i(427702);e.s(["useIsShipNameTaken",0,function(e){let n=(0,i.useTRPC)(),r=(0,s.isShipHandle)(e),a=(0,t.useQuery)(n.fleet.list.queryOptions({name:e,limit:1},{enabled:r}));if(r&&void 0!==a.data)return a.data.items.length>0}])},42756,349841,e=>{"use strict";var s=e.i(970597);let t=["awaitingCrew","crewed"],i={"claude-code":"claudeCode",codex:"codex"};function n(e,s){return void 0===e||0===e.length||e.includes(s)}var r=e.i(731877);function a(e){return"string"==typeof e&&e.startsWith("shp_")}function o(e){return"string"==typeof e&&e.startsWith("lbv_")}e.s(["shipRowsOf",0,function(e,l){var d,c;let u={...d=l,status:void 0===(c=d.status)||0===c.length?t:c,valueIds:d.valueIds?.filter(o),assignedTo:d.assignedTo?.filter(a),shipIds:d.shipIds?.filter(a),pluginShipIds:d.pluginShipIds?.filter(a)};return(0,r.uniqueById)(e).filter(s.isInReadReach).filter(e=>(function(e,{filter:s,isInReach:t}){var r,a,o,l;let d,c=s.query?.trim().toLowerCase()??"",u=void 0!==s.needsCrew||[s.crewRequest,s.assignedTo,s.kind,s.valueIds].some(e=>void 0!==e&&e.length>0);return(t||!u)&&(""===c||e.name.toLowerCase().includes(c)||e.type.toLowerCase().includes(c))&&(void 0===s.name||e.name===s.name)&&n(s.status,e.status)&&n(s.type,e.type)&&n(s.shipKind,e.kind)&&n(s.crewRequest,null===(r=e.crewRequest)?"none":null!==r.assignedTo?r.status??"crewing":null===r.crewedBy?"needsCrew":"crewedByHand")&&(o=s.assignedTo,l=e.crewRequest,d=l?.assignedTo?.id,void 0===o||0===o.length||void 0!==d&&o.includes(d))&&(void 0===s.needsCrew||function(e,s){let t=e.crewRequest;if("retired"===e.status||null===t)return!1;let i=null===t.assignedTo&&null===t.crewedBy;if(!s.hasTrierarchs)return i&&"awaitingCrew"===e.status;let n=null!==t.assignedTo&&"running"!==t.status&&"releasing"!==t.status;return i||n}(e,{hasTrierarchs:"withTrierarchs"===s.needsCrew}))&&(a=e.labels,(s.valueIds??[]).every(e=>a.some(s=>s.valueId===e)))&&n(s.shipIds,e.id)&&n(s.kind,function(e,s=[]){return"operator"===e.kind||"viewer"===e.kind?"console":s.includes(e.id)?"plugin":"trierarch"===e.type?"trierarch":(null===e.harness?void 0:i[e.harness])??"other"}(e,s.pluginShipIds))})(e,{filter:u,isInReach:!0}))}],42756);let l={crewing:{tone:"active",word:"Crewing"},running:{tone:"ok",word:"Running"},restarting:{tone:"waiting",word:"Restarting"},crashed:{tone:"attention",word:"Crashed"},releasing:{tone:"active",word:"Releasing"}};e.s(["crewRequestKeyWord",0,function(e){return"none"===e?"No request":"needsCrew"===e?"Needs crew":"crewedByHand"===e?"Crewed by hand":l[e].word},"crewRequestKeysOf",0,function(e){return["none","needsCrew","crewedByHand",...e]},"handCrewOf",0,function(e){return null===e.startingPrompt?{kind:"no-prompt"}:e.startingPrompt.isClaimed?{kind:"crew-ended",endedAt:e.awaitingCrewSince}:{kind:"prompt-unclaimed",issuedAt:e.startingPrompt.issuedAt}}],349841)},853573,e=>{"use strict";var s=e.i(970597),t=e.i(619273),i=e.i(621482),n=e.i(586448),r=e.i(266027),a=e.i(905387),o=e.i(731877),l=e.i(427702);e.s(["useMessage",0,function(e){let s=(0,l.useTRPC)();return(0,r.useQuery)(s.fleet.message.queryOptions(void 0===e?t.skipToken:{messageId:e}))},"useMessageDeliveries",0,function(e){let s=(0,l.useTRPC)();return(0,o.pagedListOf)((0,i.useInfiniteQuery)(s.fleet.messageDeliveries.infiniteQueryOptions(void 0===e?t.skipToken:{messageId:e,limit:o.CONSOLE_PAGE_SIZE},{getNextPageParam:o.nextCursorOf})))},"useShip",0,function(e){let i=(0,l.useTRPC)();return(0,r.useQuery)(i.fleet.ship.queryOptions(void 0===e?t.skipToken:{shipId:e},{refetchInterval:a.LAST_SEEN_REFRESH_MS,select:e=>(0,s.isInReadReach)(e)?e:null}))},"useShipMessages",0,function(e){let s=(0,l.useTRPC)();return(0,o.pagedListOf)((0,i.useInfiniteQuery)(s.fleet.shipMessages.infiniteQueryOptions({shipId:e,limit:o.CONSOLE_PAGE_SIZE},{getNextPageParam:o.nextCursorOf})))},"useShipTimeline",0,function(e){let s=(0,l.useTRPC)();return(0,o.pagedListOf)((0,i.useInfiniteQuery)(s.fleet.shipTimeline.infiniteQueryOptions({shipId:e,limit:o.CONSOLE_PAGE_SIZE},{getNextPageParam:o.nextCursorOf})))},"useShipWay",0,function(e){let s=(0,l.useTRPC)();return(0,r.useQuery)(s.fleet.shipWay.queryOptions({shipId:e},{refetchInterval:a.LAST_SEEN_REFRESH_MS}))},"useShips",0,function(e){let t=(0,l.useTRPC)(),i=(0,n.useQueries)({queries:e.map(e=>t.fleet.ship.queryOptions({shipId:e},{refetchInterval:a.LAST_SEEN_REFRESH_MS}))}),r=new Map;for(let e of i)e.data&&(0,s.isInReadReach)(e.data)&&r.set(e.data.id,e.data);return r}])},684156,e=>{"use strict";e.s(["isUnclaimedPromptOut",0,function(e){return null!==e.startingPrompt&&!e.startingPrompt.isClaimed}])}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,395530,e=>{"use strict";var t=e.i(271645),a=e.i(828918),s=e.i(838452),r=e.i(673553);e.s(["useCompositeItem",0,function(e={}){let{highlightItemOnHover:i,highlightedIndex:n,onHighlightedIndexChange:l}=(0,s.useCompositeRootContext)(),{ref:o,index:d}=(0,r.useCompositeListItem)(e),u=n===d,c=t.useRef(null),m=(0,a.useMergedRefs)(o,c);return{compositeProps:{tabIndex:u?0:-1,onFocus(){l(d)},onMouseMove(){let e=c.current;if(!i||!e)return;let t=e.hasAttribute("disabled")||"true"===e.ariaDisabled;u||t||e.focus()}},compositeRef:m,index:d}}])},31421,e=>{"use strict";var t=e.i(271645),a=e.i(146376),s=e.i(788015);e.s(["useAriaLabelledBy",0,function(e,r,i,n=!0,l){let[o,d]=t.useState(),u=(0,s.useBaseUiId)(l?`${l}-label`:void 0),c=e??r??o;return(0,a.useIsoLayoutEffect)(()=>{let t=e||r||!n?void 0:function(e,t){let a=function(e){if(!e)return;let t=e.parentElement;if(t&&"LABEL"===t.tagName)return t;let a=e.id;if(a){let t=e.nextElementSibling;if(t&&t.htmlFor===a)return t}let s=e.labels;return s&&s[0]}(e);if(a)return!a.id&&t&&(a.id=t),a.id||void 0}(i.current,u);o!==t&&d(t)}),c}])},24071,e=>{"use strict";var t=e.i(456420);let a={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};a.node;let s=(0,t.default)(a);e.s(["ChevronLeft",0,s],24071)},867927,e=>{"use strict";var t=e.i(456420);let a={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};a.node;let s=(0,t.default)(a);e.s(["ChevronRight",0,s],867927)},152886,e=>{"use strict";var t=e.i(456420);let a={name:"circle-dashed",size:24,node:[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]};a.node;let s=(0,t.default)(a);e.s(["CircleDashed",0,s],152886)},275043,446513,e=>{"use strict";var t=e.i(456420);let a={name:"circle-question-mark",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["help-circle","circle-help"]};a.node;let s=(0,t.default)(a);e.s(["default",0,s],275043);let r={name:"monitor",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]};r.node;let i=(0,t.default)(r);e.s(["Monitor",0,i],446513)},821048,e=>{"use strict";var t=e.i(456420);let a={name:"circle-slash",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]]};a.node;let s=(0,t.default)(a);e.s(["CircleSlash",0,s],821048)},508734,e=>{"use strict";var t=e.i(456420);let a={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};a.node;let s=(0,t.default)(a);e.s(["Copy",0,s],508734)},386247,e=>{"use strict";var t=e.i(456420);let a={name:"ellipsis",size:24,node:[["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"}]],aliases:["more-horizontal"]};a.node;let s=(0,t.default)(a);e.s(["Ellipsis",0,s],386247)},515281,e=>{"use strict";var t=e.i(456420);let a={name:"pencil",size:24,node:[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]};a.node;let s=(0,t.default)(a);e.s(["Pencil",0,s],515281)},566595,e=>{"use strict";var t=e.i(456420);let a={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};a.node;let s=(0,t.default)(a);e.s(["Search",0,s],566595)},730274,e=>{"use strict";var t=e.i(456420);let a={name:"send",size:24,node:[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]};a.node;let s=(0,t.default)(a);e.s(["Send",0,s],730274)},841220,e=>{"use strict";var t=e.i(456420);let a={name:"server",size:24,node:[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]};a.node;let s=(0,t.default)(a);e.s(["Server",0,s],841220)},819759,e=>{"use strict";var t=e.i(456420);let a={name:"square-pen",size:24,node:[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],aliases:["pen-box","edit","pen-square"]};a.node;let s=(0,t.default)(a);e.s(["SquarePen",0,s],819759)},298260,e=>{"use strict";var t=e.i(843476),a=e.i(965324);e.s(["Kbd",0,function({className:e,...s}){return(0,t.jsx)("kbd",{"data-slot":"kbd",className:(0,a.classNames)("inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-xs border border-border bg-muted px-1.25 font-sans text-micro font-medium text-muted-foreground max-sm:hidden",e),...s})}])},638919,e=>{"use strict";var t=e.i(843476),a=e.i(353753),s=e.i(225913),r=e.i(560964),i=e.i(965324),n=e.i(574296);let l=(0,s.cva)("fixed z-50 flex flex-col bg-popover text-body text-popover-foreground shadow-lg outline-none duration-(--duration-slow) ease-(--ease-standard) data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",{variants:{side:{right:"inset-y-0 right-0 h-full w-full border-l border-border sm:max-w-(--size-sheet) motion-safe:data-open:slide-in-from-right motion-safe:data-closed:slide-out-to-right",bottom:"inset-x-0 bottom-0 max-h-[90dvh] rounded-t-2xl border-t border-border px-4 pt-2 pb-[max(calc(var(--spacing)*4),env(safe-area-inset-bottom))] motion-safe:data-open:slide-in-from-bottom motion-safe:data-closed:slide-out-to-bottom"}},defaultVariants:{side:"right"}});e.s(["Sheet",0,function(e){return(0,t.jsx)(a.Dialog.Root,{"data-slot":"sheet",...e})},"SheetBody",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"sheet-body",className:(0,i.classNames)("min-h-0 flex-1 overflow-y-auto in-data-[side=right]:p-6",e),...a})},"SheetClose",0,function(e){return(0,t.jsx)(a.Dialog.Close,{"data-slot":"sheet-close",...e})},"SheetContent",0,function({className:e,children:s,side:o="right",...d}){return(0,t.jsxs)(a.Dialog.Portal,{children:[(0,t.jsx)(a.Dialog.Backdrop,{"data-slot":"sheet-overlay",className:"fixed inset-0 z-50 bg-overlay duration-(--duration-slow) data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0"}),(0,t.jsxs)(a.Dialog.Popup,{"data-slot":"sheet-content","data-side":o,className:(0,i.classNames)(l({side:o}),e),...d,children:["bottom"===o?(0,t.jsx)("div",{"aria-hidden":!0,className:"mx-auto mb-3 h-1 w-9 shrink-0 rounded-full bg-border"}):(0,t.jsx)(a.Dialog.Close,{"data-slot":"sheet-close",render:(0,t.jsx)(n.Button,{variant:"ghost",size:"sm",isIconOnly:!0,className:"absolute top-4 right-4","aria-label":"Close"}),children:(0,t.jsx)(r.XIcon,{})}),s]})]})},"SheetDescription",0,function({className:e,...s}){return(0,t.jsx)(a.Dialog.Description,{"data-slot":"sheet-description",className:(0,i.classNames)("text-meta text-muted-foreground",e),...s})},"SheetFooter",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"sheet-footer",className:(0,i.classNames)("flex flex-col-reverse gap-2 pt-3 in-data-[side=right]:flex-row in-data-[side=right]:justify-end in-data-[side=right]:border-t in-data-[side=right]:px-6 in-data-[side=right]:py-4",e),...a})},"SheetHeader",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"sheet-header",className:(0,i.classNames)("flex flex-col gap-0.5 in-data-[side=right]:border-b in-data-[side=right]:px-6 in-data-[side=right]:py-5 in-data-[side=right]:pr-14",e),...a})},"SheetTitle",0,function({className:e,...s}){return(0,t.jsx)(a.Dialog.Title,{"data-slot":"sheet-title",className:(0,i.classNames)("text-heading font-semibold text-foreground in-data-[side=bottom]:py-2 in-data-[side=bottom]:text-section",e),...s})},"SheetTrigger",0,function(e){return(0,t.jsx)(a.Dialog.Trigger,{"data-slot":"sheet-trigger",...e})}])},152678,e=>{"use strict";var t=e.i(843476);e.s([],506329),e.i(506329);var a=e.i(271645),s=e.i(828918),r=e.i(146376),i=e.i(502077),n=e.i(956789),l=e.i(675606),o=e.i(56434),d=e.i(474354),u=e.i(875812);let c={checked:e=>e?{"data-checked":""}:{"data-unchecked":""},...d.transitionStatusMapping,...u.fieldValidityMapping};var m=e.i(64350),h=e.i(788015),f=e.i(552245),x=e.i(540886),p=e.i(370359),g=e.i(348990),y=e.i(469690),b=e.i(157153),v=e.i(247778),j=e.i(31421),k=e.i(538489);let w=a.createContext(void 0);var N=e.i(186698),S=e.i(733332);let C=a.createContext(void 0),R=a.forwardRef(function(e,d){let{render:u,className:S,disabled:R=!1,readOnly:z=!1,required:I=!1,"aria-labelledby":q,value:K,inputRef:M,nativeButton:D=!1,id:E,style:L,...P}=e,B=a.useContext(w),{disabled:A,readOnly:T,required:O,form:F,checkedValue:H,touched:V=!1,validation:U,name:Q,setCheckedValue:_=n.NOOP,setTouched:W=n.NOOP,registerInputRef:$=n.NOOP}=B??{},{setTouched:G,setFilled:Y,state:X,disabled:J}=(0,y.useFieldRootContext)(),Z=(0,b.useFieldItemContext)(),{labelId:ee,getDescriptionProps:et}=(0,v.useLabelableContext)(),ea=J||Z.disabled||A||R,es=T||z,er=O||I,ei=B?H===K:""===K,en=a.useRef(null),el=a.useRef(null),eo=U?.registerInput,ed=a.useCallback(e=>eo?.(e,{controlRef:en,value:void 0}),[eo]),eu=(0,s.useMergedRefs)(M,el,$,ed);(0,r.useIsoLayoutEffect)(()=>{el.current?.checked&&Y(!0)},[Y]),(0,r.useIsoLayoutEffect)(()=>{if(el.current){if(ea&&ei)return void $(null);$(el.current)}},[ei,ea,$]);let ec=(0,h.useBaseUiId)(),em=(0,k.useLabelableId)({id:E}),eh=D?void 0:em,ef={role:"radio","aria-checked":ei,"aria-labelledby":(0,j.useAriaLabelledBy)(q,ee,el,!D,eh),[p.ACTIVE_COMPOSITE_ITEM]:ei?"":void 0,id:D?em:ec,onKeyDown(e){"Enter"===e.key&&e.preventDefault()},onClick(e){if(e.defaultPrevented||ea||es)return;e.preventDefault();let t=el.current;t&&(0,m.dispatchClickWithModifiers)(t,e)},onFocus(e){e.defaultPrevented||ea||es||!V||(el.current?.click(),W(!1))}},{getButtonProps:ex,buttonRef:ep}=(0,x.useButton)({disabled:ea,native:D,composite:!1}),eg={type:"radio",ref:eu,form:F,id:eh,name:Q,tabIndex:-1,style:Q?i.visuallyHiddenInput:i.visuallyHidden,"aria-hidden":!0,...void 0!==K?{value:(0,N.serializeValue)(K)}:n.EMPTY_OBJECT,disabled:ea,checked:ei,required:er,readOnly:es,onChange(e){if(e.nativeEvent.defaultPrevented||ea||es||void 0===K)return;let t=(0,l.createChangeEventDetails)(o.REASONS.none,e.nativeEvent);_(K,t),t.isCanceled||G(!0)},onClick(e){e.stopPropagation()},onFocus(){en.current?.focus()}},ey=a.useMemo(()=>({...X,required:er,disabled:ea,readOnly:es,checked:ei}),[X,ea,es,ei,er]),eb=void 0!==B,ev=[d,en,ep],ej=[ef,P,ex,et,U?e=>U.getValidationProps(ea,e):n.EMPTY_OBJECT],ek=(0,f.useRenderElement)("span",e,{enabled:!eb,state:ey,ref:ev,props:ej,stateAttributesMapping:c});return(0,t.jsxs)(C.Provider,{value:ey,children:[eb?(0,t.jsx)(g.CompositeItem,{tag:"span",render:u,className:S,style:L,state:ey,refs:ev,props:ej,stateAttributesMapping:c}):ek,(0,t.jsx)("input",{...eg,suppressHydrationWarning:!0})]})});var z=e.i(137584),I=e.i(223910);let q=a.forwardRef(function(e,t){let{render:s,className:r,style:i,keepMounted:n=!1,...l}=e,o=function(){let e=a.useContext(C);if(void 0===e)throw Error((0,S.default)(52));return e}(),d=o.checked,{mounted:u,transitionStatus:m,setMounted:h}=(0,I.useTransitionStatus)(d),x={...o,transitionStatus:m},p=a.useRef(null),g=(0,f.useRenderElement)("span",e,{ref:[t,p],state:x,props:l,stateAttributesMapping:c});return((0,z.useOpenChangeComplete)({batch:!0,enabled:!d,open:d,ref:p,onComplete(){d||h(!1)}}),n||u)?g:null});e.s(["Indicator",0,q,"Root",0,R],66747);var K=e.i(66747),K=K,M=e.i(951437),D=e.i(667865),E=e.i(584446),L=e.i(673327),P=e.i(405934),B=e.i(381104),A=e.i(155627),T=e.i(387068),O=e.i(884708),F=e.i(606039);let H=[L.SHIFT],V=a.forwardRef(function(e,s){let{render:r,className:i,disabled:n,readOnly:l,required:o,onValueChange:d,value:c,defaultValue:m,form:f,name:x,inputRef:p,id:g,style:b,...j}=e,{setTouched:k,setFocused:N,validationMode:S,name:C,disabled:R,state:z,validation:I,setDirty:q,setFilled:K,validityData:L}=(0,y.useFieldRootContext)(),{labelId:V}=(0,v.useLabelableContext)(),{clearErrors:U,elementRef:Q}=(0,O.useFormContext)(),_=(0,T.useFieldsetRootContext)(!0),W=R||n,$=C??x,G=(0,h.useBaseUiId)(g),[Y,X]=(0,M.useControlled)({controlled:c,default:m,name:"RadioGroup",state:"value"}),[J,Z]=a.useState(!1),ee=(0,D.useStableCallback)((e,t)=>{d?.(e,t),t.isCanceled||X(e)}),et=I.getInputControl,ea=a.useMemo(()=>({get current(){return et()}}),[et]),es=a.useRef(null),er=a.useRef(null);function ei(e){let t;return p&&("function"==typeof p?t=p(e):p.current=e),es.current=e,t}let en=(0,D.useStableCallback)(e=>{if(!e||e.disabled)return;er.current||(er.current=e);let t=es.current,a=e.checked||null==t||t.disabled?ei(e):void 0;return()=>{er.current===e&&(er.current=null),es.current===e?a?(a(),es.current=null):ei(null):a?.()}}),el=(0,D.useStableCallback)(()=>{let e=Q.current;if(!e)return Y??null;for(let t of I.registeredInputs.keys())if(t.checked&&(0,A.isEligibleInput)(t,e))return Y??null;return null});(0,B.useRegisterFieldControl)(ea,G,Y??null,el,!W,x),(0,F.useValueChanged)(Y,()=>{U($),q(Y!==L.initialValue),K(null!=Y),I.change(Y);let e=er.current;null==Y&&e&&!e.disabled&&ei(e)});let eo=V??_?.legendId,ed={...z,disabled:W??!1,required:o??!1,readOnly:l??!1},eu=a.useMemo(()=>({checkedValue:Y,disabled:W,form:f,validation:I,name:$,readOnly:l,registerInputRef:en,required:o,setCheckedValue:ee,setTouched:Z,touched:J}),[Y,W,f,I,$,l,en,o,ee,Z,J]);return(0,t.jsx)(w.Provider,{value:eu,children:(0,t.jsx)(P.CompositeRoot,{render:r,className:i,style:b,state:ed,props:[{id:g,role:"radiogroup","aria-required":o||void 0,"aria-disabled":W||void 0,"aria-readonly":l||void 0,"aria-labelledby":eo,onFocus(){N(!0)},onBlur(e){(0,E.contains)(e.currentTarget,e.relatedTarget)||(k(!0),N(!1),"onBlur"===S&&I.commit(Y))},onKeyDownCapture(e){e.key.startsWith("Arrow")&&(Z(!0),N(!0))}},j,e=>I.getValidationProps(W??!1,e)],refs:[s],stateAttributesMapping:u.fieldValidityMapping,enableHomeAndEndKeys:!1,modifierKeys:H})})});var U=e.i(965324);e.s(["RadioGroup",0,function({className:e,...a}){return(0,t.jsx)(V,{"data-slot":"radio-group",className:(0,U.classNames)("flex flex-col gap-2",e),...a})},"RadioGroupItem",0,function({className:e,...a}){return(0,t.jsx)(K.Root,{"data-slot":"radio-group-item",className:(0,U.classNames)("inline-flex size-4 shrink-0 items-center justify-center rounded-full border border-input bg-background transition-colors duration-(--duration-fast) outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring data-checked:border-primary data-disabled:opacity-45",e),...a,children:(0,t.jsx)(K.Indicator,{"data-slot":"radio-group-indicator",className:"size-2 rounded-full bg-primary"})})}],152678)},219321,e=>{"use strict";var t=e.i(843476),a=e.i(965324);e.s(["Skeleton",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"skeleton","aria-hidden":!0,className:(0,a.classNames)("animate-pulse rounded-sm bg-secondary [animation-duration:var(--duration-pulse)] motion-reduce:animate-none",e),...s})}])},67874,e=>{"use strict";var t=e.i(843476),a=e.i(965324);e.s(["EmptyState",0,function({title:e,description:s,icon:r,action:i,variant:n="page",className:l}){return"section"===n?(0,t.jsxs)("p",{"data-slot":"empty-state","data-variant":n,className:(0,a.classNames)("rounded-lg border border-border px-4 py-3 text-center text-meta text-muted-foreground",l),children:[e,s?(0,t.jsxs)(t.Fragment,{children:[" ",s]}):null]}):"no-results"===n?(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":n,className:(0,a.classNames)("flex flex-col items-center gap-2.5 rounded-lg border border-border bg-card px-4 py-6 text-center",l),children:[(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:e}),i]}):(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":n,className:(0,a.classNames)("flex flex-col items-center gap-3 rounded-lg border border-dashed border-border bg-card px-6 py-10 text-center",l),children:[r?(0,t.jsx)("span",{"aria-hidden":!0,className:"flex size-10 items-center justify-center rounded-lg border border-border bg-muted text-muted-foreground [&_svg]:size-(--size-icon-xl)",children:r}):null,(0,t.jsx)("h2",{className:"text-heading font-semibold text-foreground max-sm:text-heading-touch",children:e}),s?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:s}):null,i?(0,t.jsx)("div",{className:"mt-1 max-sm:w-full max-sm:[&>*]:w-full",children:i}):null]})}])},298421,e=>{"use strict";var t=e.i(843476),a=e.i(456420);let s={name:"chevrons-down",size:24,node:[["path",{d:"m7 6 5 5 5-5",key:"1lc07p"}],["path",{d:"m7 13 5 5 5-5",key:"1d48rs"}]]};s.node;let r=(0,a.default)(s);var i=e.i(574296),n=e.i(817981);e.s(["LoadMore",0,function({what:e,isLoading:a,isFailed:s,onLoad:l,area:o}){return s?(0,t.jsx)(n.InlineError,{title:`Couldn’t load ${e}`,description:"What is shown stays as it is. Try again in a moment.",onRetry:l,className:"m-3"}):(0,t.jsx)("div",{className:"flex justify-center border-t border-border px-3.5 py-2.5",children:(0,t.jsx)(i.Button,{size:"sm",variant:"ghost",icon:(0,t.jsx)(r,{"aria-hidden":!0}),isLoading:a,onClick:l,"data-testid":`${o}-load-more`,children:a?`Loading ${e}...`:`Load ${e}`})})}],298421)},188393,e=>{"use strict";var t=e.i(843476),a=e.i(965324),s=e.i(219321);function r(e){return Array.from({length:e},(e,t)=>`row-${String(t)}`)}e.s(["LoadingSkeleton",0,function({variant:e,rows:i=4,label:n="Loading",className:l}){return(0,t.jsxs)("div",{role:"status","data-slot":"loading-skeleton","data-variant":e,className:(0,a.classNames)("w-full",l),children:[(0,t.jsx)("span",{className:"sr-only",children:n}),"table"===e?(0,t.jsxs)("div",{className:"overflow-hidden rounded-lg border border-border bg-card shadow-sm",children:[(0,t.jsx)("div",{className:"h-(--size-row-header) border-b border-border bg-muted"}),r(i).map(e=>(0,t.jsxs)("div",{className:"flex h-(--size-row) items-center gap-8 border-b border-border px-4 last:border-0",children:[(0,t.jsx)(s.Skeleton,{className:"h-2.5 w-24"}),(0,t.jsx)(s.Skeleton,{className:"h-5 w-16"}),(0,t.jsx)(s.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(s.Skeleton,{className:"h-2.5 w-28"})]},e))]}):null,"cards"===e?(0,t.jsx)("div",{className:"grid grid-cols-2 gap-3 lg:grid-cols-4",children:r(4).map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsx)(s.Skeleton,{className:"h-2.5 w-20"}),(0,t.jsx)(s.Skeleton,{className:"h-6 w-10"}),(0,t.jsx)(s.Skeleton,{className:"h-2.5 w-28"})]},e))}):null,"detail"===e?(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(s.Skeleton,{className:"h-7 w-48"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(s.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(s.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(s.Skeleton,{className:"h-16 w-full rounded-lg"})]}):null,"list"===e?(0,t.jsx)("div",{className:"overflow-hidden rounded-lg border border-border bg-card",children:r(i).map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-2.5 border-b border-border px-3.5 py-3 last:border-0",children:[(0,t.jsxs)("div",{className:"flex justify-between",children:[(0,t.jsx)(s.Skeleton,{className:"h-3 w-28"}),(0,t.jsx)(s.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(s.Skeleton,{className:"h-2.5 w-44"})]},e))}):null]})}])},539448,e=>{"use strict";var t=e.i(843476),a=e.i(225913),s=e.i(522016),r=e.i(965324);let i=(0,a.cva)("min-w-0 truncate font-sans font-medium",{variants:{size:{body:"text-body text-foreground",meta:"text-meta text-muted-foreground",title:"text-title font-semibold tracking-tight text-foreground max-sm:text-title-touch"}},defaultVariants:{size:"body"}});e.s(["ShipName",0,function({name:e,shipId:a,size:n,isSuffixShown:l=!1,isOperator:o=!1,href:d,className:u}){let c=d?(0,t.jsx)(s.default,{href:d,className:(0,r.classNames)(i({size:n}),"rounded-xs underline-offset-3 hover:underline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring"),title:e,children:e}):(0,t.jsx)("span",{className:i({size:n}),title:e,children:e});return(0,t.jsxs)("span",{"data-slot":"ship-name",className:(0,r.classNames)("inline-flex min-w-0 items-baseline gap-1.5",u),children:[c,o?(0,t.jsx)("span",{className:"shrink-0 font-normal text-muted-foreground",children:"(you)"}):null,l&&!o?(0,t.jsxs)("span",{className:"shrink-0 font-mono text-id text-muted-foreground uppercase",children:[(0,t.jsx)("span",{"aria-hidden":!0,children:"· "}),a.slice(-4)]}):null]})}])},577880,485538,e=>{"use strict";var t=e.i(843476),a=e.i(566595),s=e.i(374368),r=e.i(574296),i=e.i(298260),n=e.i(704974),l=e.i(965324);function o({switcher:e,account:d,onSearch:u,searchLabel:c="Search or jump to",children:m,actions:h,className:f}){return(0,t.jsxs)("header",{"data-slot":"app-header",className:(0,l.classNames)("sticky top-0 z-30 flex h-(--size-header) shrink-0 items-center justify-between gap-4 border-b border-border bg-background px-6",f),children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[void 0===e?(0,t.jsx)("span",{"data-testid":"app-switcher-loading","aria-hidden":!0,className:"h-4 w-36 shrink-0 animate-pulse rounded bg-muted motion-reduce:animate-none"}):(0,t.jsx)(s.AppSwitcher,{switcher:e,layout:"full",className:"shrink-0"}),m]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-3",children:[h,u?(0,t.jsxs)(r.Button,{size:"sm",icon:(0,t.jsx)(a.Search,{"aria-hidden":!0}),"data-testid":"header-search",className:"w-60 justify-start font-normal text-muted-foreground max-lg:w-auto",onClick:u,children:[(0,t.jsx)("span",{className:"grow text-left max-lg:sr-only",children:c}),(0,t.jsx)(i.Kbd,{children:"⌘K"})]}):null,(0,t.jsx)(n.AvatarMenu,{...d})]})]})}var d=e.i(867927),u=e.i(819759),c=e.i(522016);let m={live:{label:"Live",dot:"bg-tone-ok-fg"},reconnecting:{label:"Reconnecting",dot:"bg-tone-waiting-fg"},offline:{label:"Offline",dot:"bg-tone-attention-fg"}};function h({state:e,className:a}){let{label:s,dot:r}=m[e];return(0,t.jsxs)("span",{"data-slot":"live-status","data-state":e,"aria-live":"polite",className:(0,l.classNames)("inline-flex items-center gap-1.5 text-meta text-muted-foreground",a),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:(0,l.classNames)("size-2 shrink-0 rounded-full",r)}),s]})}e.s(["Header",0,function({breadcrumb:e,parents:a=[],live:s,switcher:i,account:n,onCompose:l,onSearch:m}){return(0,t.jsxs)(o,{switcher:i,account:n,onSearch:m,searchLabel:"Search ships or jump to",className:"hidden sm:flex",actions:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h,{state:s}),l?(0,t.jsx)(r.Button,{size:"sm",icon:(0,t.jsx)(u.SquarePen,{"aria-hidden":!0}),"data-testid":"header-compose",onClick:l,children:"Compose"}):null]}),children:[(0,t.jsx)(d.ChevronRight,{"aria-hidden":!0,className:"size-3.5 shrink-0 text-muted-foreground"}),(0,t.jsx)("nav",{"aria-label":"Breadcrumb","data-testid":"header-breadcrumb",className:"min-w-0 text-body",children:(0,t.jsxs)("ol",{className:"flex min-w-0 items-center gap-1.5",children:[a.map(e=>(0,t.jsxs)("li",{className:"flex shrink-0 items-center gap-1.5",children:[(0,t.jsx)(c.default,{href:e.href,className:"text-muted-foreground hover:text-foreground hover:underline",children:e.label}),(0,t.jsx)(d.ChevronRight,{"aria-hidden":!0,className:"size-3.5 text-muted-foreground"})]},e.href)),(0,t.jsx)("li",{"aria-current":"page",className:"truncate font-medium text-foreground",children:e})]})})]})}],577880);var f=e.i(24071);e.s(["TopBar",0,function({title:e,live:i,actions:l,back:o,switcher:d,account:u,onSearch:m}){let x=m&&!o?m:void 0;return(0,t.jsxs)("header",{"data-slot":"top-bar","data-mode":o?"detail":"root",className:"sticky top-0 z-30 flex h-(--size-header) items-center gap-2.5 border-b border-border bg-background px-4 sm:hidden",children:[o?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(c.default,{href:o.href,className:"-ml-1.5 inline-flex h-(--size-control-touch) shrink-0 items-center gap-0.5 rounded-md pr-2 text-body-touch text-foreground focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon)",children:[(0,t.jsx)(f.ChevronLeft,{"aria-hidden":!0}),o.label]}),(0,t.jsx)("p",{className:"min-w-0 flex-1 truncate text-center text-body-touch font-semibold text-foreground",children:e})]}):d?(0,t.jsx)(s.AppSwitcher,{switcher:d,layout:"compact",className:"min-w-0"}):(0,t.jsx)("p",{className:"truncate px-1.5 text-title-touch font-semibold text-foreground",children:"Console"}),(0,t.jsx)(h,{state:i}),l||x||u&&!o?(0,t.jsxs)("div",{className:"ml-auto flex items-center gap-1",children:[x?(0,t.jsx)(r.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Search ships or jump to","data-testid":"top-bar-search",onClick:x,children:(0,t.jsx)(a.Search,{"aria-hidden":!0})}):null,l,u&&!o?(0,t.jsx)(n.AvatarMenuSheet,{...u}):null]}):null]})}],485538)},509892,e=>{"use strict";var t=e.i(843476),a=e.i(819759),s=e.i(574296),r=e.i(577880),i=e.i(485538);e.s(["ListPage",0,function({title:e,description:n,titleMeta:l,primaryAction:o,toolbar:d,live:u,onCompose:c,onSearch:m,switcher:h,account:f,banner:x,phoneTopBar:p,children:g}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Header,{breadcrumb:e,live:u,switcher:h,account:f,onCompose:c,onSearch:m}),x,p??(0,t.jsx)(i.TopBar,{title:e,live:u,switcher:h,account:f,onSearch:m,actions:c?(0,t.jsx)(s.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Compose","data-testid":"top-bar-compose",onClick:c,children:(0,t.jsx)(a.SquarePen,{"aria-hidden":!0})}):void 0}),(0,t.jsxs)("main",{className:"flex grow flex-col gap-5 px-8 py-6 max-sm:gap-3.5 max-sm:px-4 max-sm:pt-3.5 max-sm:pb-[calc(var(--size-tabbar)+var(--spacing)*4)]",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4 max-sm:gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-1",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1",children:[(0,t.jsx)("h1",{className:"text-title font-semibold tracking-tight text-foreground max-sm:text-title-touch",children:e}),l]}),n?(0,t.jsx)("p",{className:"text-meta text-muted-foreground max-sm:text-body-touch",children:n}):null]}),o?(0,t.jsx)("div",{className:"shrink-0 max-sm:w-full max-sm:[&>*]:w-full",children:o}):null]}),d,g]})]})}])},718423,e=>{"use strict";var t=e.i(912598),a=e.i(905861),s=e.i(271645),r=e.i(586413),i=e.i(123938),n=e.i(427702);let l=new Set(["FleetInitialised","ShipCommissioned","ShipClaimed","LeaseRevoked","CredentialRevoked","StartingPromptIssued","ShipRetired","DeliveryAcknowledged","DeliveryUndeliverable","ShipReported","CrewRequested","CrewRequestRemoved","CrewAssigned","CrewStatusChanged","CrewRequestExplained","CrewRequestGivenBack","LabelAssigned","LabelUnassigned","LabelRetired"]);function o(e,t){return e.pages.some(e=>e.items.some(e=>e.id===t))}let d=new Set(["LabelDefined","LabelValuesChanged","LabelRetired","LabelAssigned","LabelUnassigned","LabelDeleted"]),u=new Set(["DeliveryUndeliverable","DeliveryNotHandled","DeliveryDismissed"]),c=new Set(["NetworkRulesSet","NetworkRulesDraftSaved","NetworkRulesDraftDiscarded","NetworkRulesDeclared","BuiltInRuleChanged"]);e.s(["useLiveFleet",0,function(){let e=(0,n.useTRPC)(),m=(0,t.useQueryClient)(),[h,f]=(0,s.useState)(new Set),x=(0,i.useIsReopening)(),[p]=(0,s.useState)(()=>{let t,a,s,i;return function(e){var t;let a,s,i,{trpc:n,queryClient:m,reload:h}=e,f=[...n.fleet.list.infiniteQueryKey()],x=()=>m.getQueriesData({queryKey:f}).flatMap(([,e])=>void 0===e?[]:[e]),p=(t={readRow:e=>m.query({...n.fleet.listedShip.queryOptions({shipId:e}),staleTime:0}),writeRow:t=>{let a=x().some(e=>!o(e,t.id));m.setQueriesData({queryKey:f},e=>e&&function(e,t){if(o(e,t.id))return{...e,pages:e.pages.map(e=>{var a;return{...e,items:(a=e.items,a.map(e=>e.id===t.id?t:e))}})};let[a,...s]=e.pages;return void 0===a?e:{...e,pages:[{...a,items:[t,...a.items]},...s]}}(e,t)),a&&e.onPlacedFirst(t.id)}},a=new Set,s=new Set,i=async e=>{a.add(e);try{do s.delete(e),t.writeRow(await t.readRow(e));while(s.has(e))}catch{}finally{a.delete(e),s.delete(e)}},e=>{a.has(e)?s.add(e):i(e)}),g=()=>{h(n.fleet.stuckCount.queryKey()),h(n.fleet.stuckSummary.queryKey()),h(n.fleet.stuck.pathKey())};return e=>{var t,a,s,i,o;if("resync"===e.kind){h(n.fleet.pathKey()),h(r.INBOX_KEY);return}let{event:m}=e;for(let e of new Set([m.shipId,m.actorShipId]))null!==e&&(h(n.fleet.ship.queryKey({shipId:e})),h(n.fleet.shipTimeline.infiniteQueryKey({shipId:e})),h(n.fleet.shipWay.queryKey({shipId:e})));if(null!==m.messageId&&(h(n.fleet.shipMessages.pathKey()),h(n.fleet.shipWay.pathKey()),h(n.fleet.message.queryKey({messageId:m.messageId})),h(n.fleet.messageDeliveries.infiniteQueryKey({messageId:m.messageId})),h(n.fleet.inbox.pathKey()),h(n.fleet.inboxCount.queryKey()),h(r.INBOX_KEY),g()),"DeliveryAcknowledged"===m.type&&h(n.fleet.acknowledged.queryKey()),t=m.type,u.has(t)&&h(n.fleet.needsAttention.pathKey()),a=m.type,d.has(a)&&h(n.fleet.labels.queryKey()),"NetworkRulesDeclared"===m.type&&h(n.fleet.declaredNetworkRules.queryKey()),("BuiltInRuleChanged"===(s=m.type)||"NetworkRulesSet"===s)&&h(n.fleet.builtInRules.queryKey()),i=m.type,c.has(i)&&(h(n.fleet.networkRules.queryKey()),h(n.fleet.networkRulesDraftChanges.queryKey()),h(n.fleet.explainReach.pathKey())),o=m.type,l.has(o)){if(x().length>0)for(let e of new Set([m.shipId,m.actorShipId]))null!==e&&p(e);h(n.fleet.shipCounts.pathKey()),g()}}}({trpc:e,queryClient:m,reload:(t=new Set,a=new Set,s=e=>m.invalidateQueries({queryKey:e,exact:!0},{cancelRefetch:!1}),i=async e=>{t.add(e.queryHash);let r=e.isBehind;try{for(await s(e.queryKey);r||a.delete(e.queryHash);)r=!1,await s(e.queryKey)}finally{t.delete(e.queryHash)}},e=>{for(let s of m.getQueryCache().findAll({queryKey:e}))t.has(s.queryHash)?a.add(s.queryHash):i({queryHash:s.queryHash,queryKey:s.queryKey,isBehind:"fetching"===s.state.fetchStatus})}),onPlacedFirst:e=>{f(t=>new Set([...t,e]))}})}),g=(0,a.useSubscription)(e.fleet.events.subscriptionOptions({lastEventId:null},{onData:({data:e})=>{p(e)}}));return{live:"connecting"===g.status&&x?"live":function(e){switch(e){case"pending":return"live";case"connecting":return"reconnecting";case"idle":case"error":return"offline"}}(g.status),placedFirstShipIds:h,error:g.error}}])},974470,631071,e=>{"use strict";var t=e.i(271645);let a=/Mac|iPhone|iPad|iPod/;function s(e){return"mac"===e?"⌘↵":"Ctrl ↵"}function r(e){return"Enter"===e.key&&(e.metaKey||e.ctrlKey)&&!e.isComposing}function i(){return()=>void 0}function n(){var e;return e=navigator.userAgent,a.test(e)?"mac":"other"}function l(){return null}e.s(["isSendShortcut",0,r,"sendShortcutAria",0,function(e){return"mac"===e?"Meta+Enter":"Control+Enter"},"sendShortcutKeys",0,s,"submitOnSendShortcut",0,function(e){let{key:t,metaKey:a,ctrlKey:s}=e;r({key:t,metaKey:a,ctrlKey:s,isComposing:e.nativeEvent.isComposing})&&(e.preventDefault(),e.currentTarget.form?.requestSubmit())},"useShortcutPlatform",0,function(){return(0,t.useSyncExternalStore)(i,n,l)}],974470);var o=e.i(843476),d=e.i(298260);e.s(["SendShortcutHint",0,function({platform:e}){return(0,o.jsx)(d.Kbd,{"aria-hidden":!0,"data-testid":"send-shortcut-hint",className:"border-primary-foreground/25 bg-primary-foreground/10 text-primary-foreground",children:s(e)})}],631071)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,242047,e=>{"use strict";var t=e.i(843476),s=e.i(758925),i=e.i(980799),a=e.i(522016),n=e.i(618566),l=e.i(271645),r=e.i(574296),o=e.i(748955),d=e.i(152886),c=e.i(985512),u=e.i(892870),h=e.i(965324),m=e.i(219321);let p={ok:"border-tone-ok-border bg-tone-ok-bg text-tone-ok-fg",waiting:"border-tone-waiting-border bg-tone-waiting-bg text-tone-waiting-fg",attention:"border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg"};function x({label:e,shortLabel:s,value:i,detail:n,href:l,icon:r,tone:o,testId:d}){return(0,t.jsxs)(a.default,{href:l,"data-testid":d,className:"flex min-w-0 flex-col gap-2 rounded-lg border border-border bg-card px-4.5 py-4 shadow-sm transition-colors duration-(--duration-fast) hover:bg-accent max-sm:gap-1.5 max-sm:rounded-xl max-sm:px-3.5 max-sm:py-3",children:[(0,t.jsxs)("span",{className:"flex items-center justify-between gap-2 text-meta font-medium text-muted-foreground",children:[(0,t.jsx)("span",{className:"max-sm:hidden",children:e}),(0,t.jsx)("span",{className:"sm:hidden",children:s??e}),(0,t.jsx)("span",{className:(0,h.classNames)("flex size-6.5 shrink-0 items-center justify-center rounded-md border max-sm:size-5.5",p[o]),children:(0,t.jsx)(r,{"aria-hidden":!0,className:"size-3.5"})})]}),void 0===i?(0,t.jsx)(m.Skeleton,{className:"h-7 w-10 max-sm:h-6"}):(0,t.jsx)("span",{className:"text-[28px] leading-none font-semibold tracking-tight tabular-nums text-foreground max-sm:text-2xl",children:i}),void 0===n?(0,t.jsx)(m.Skeleton,{className:"h-4 w-32"}):(0,t.jsx)("span",{className:"truncate text-meta text-muted-foreground",children:n})]})}var f=e.i(190437),g=e.i(296676),j=e.i(849635),v=e.i(463529);function w(e){return e.find(e=>"agent"===e.kind)}function b(){var e;let s,i,a=(0,v.useShipCounts)(),n=(0,f.useStuckCount)().data,l=(0,g.useNow)(),r=a.data&&(s=w((e={counts:a.data,now:l}).counts),i=s?.longestWait??null,{activeCount:s?.active??0,crewedCount:s?.crewed??0,awaitingCount:s?.awaitingCrew??0,longestWait:null===i?void 0:{name:i.name,wait:(0,j.duration)(new Date(i.awaitingCrewSince),e.now)}});return r?.activeCount===0?null:(0,t.jsxs)("div",{className:"grid grid-cols-3 gap-4 max-sm:grid-cols-2 max-sm:gap-2.5","data-testid":"overview-metrics",children:[(0,t.jsx)(x,{label:"Ships crewed",shortLabel:"Crewed",value:r?.crewedCount,detail:r&&`of ${String(r.activeCount)} active ships`,href:"/?status=crewed",icon:u.UserCheck,tone:"ok",testId:"overview-crewed"}),(0,t.jsx)(x,{label:"Awaiting crew",value:r?.awaitingCount,detail:r&&(r.longestWait?`Longest wait: ${r.longestWait.name}, ${r.longestWait.wait}`:"Every active ship is crewed"),href:"/?status=awaitingCrew",icon:d.CircleDashed,tone:"waiting",testId:"overview-awaiting"}),(0,t.jsx)(x,{label:"Stuck",value:n?.count,detail:n&&(null===n.oldestSince?"Delivering":`Deliveries stuck, oldest ${(0,j.duration)(new Date(n.oldestSince),l)}`),href:"/fleet-health",icon:c.OctagonAlert,tone:"attention",testId:"overview-stuck"})]})}var y=e.i(77071),k=e.i(917540),C=e.i(34512),N=e.i(808041),S=e.i(905387),q=e.i(878608),I=e.i(440407),T=e.i(341880),L=e.i(749092),O=e.i(87600),R=e.i(516752),z=e.i(686165),M=e.i(448695),P=e.i(500265),A=e.i(153040);let $=(0,k.lazyDialog)(()=>e.A(438801).then(e=>e.CommissionDialog),e=>e.isOpen),V=(0,k.lazyDialog)(()=>e.A(495953).then(e=>e.StartingPromptDialog),e=>e.isOpen);function F({isOpen:e,onOpenChange:s}){var i;let a,n,o=(0,L.useFleetLimits)(),d=(0,O.useHostedAccountUrl)(),c=(0,S.useCommissionShip)(),u=(0,S.useRequestCrew)(),h="connected"===(0,P.useTrierarchPluginConnection)(),m=(0,P.useMachines)(),p=(0,P.useEnabledModels)(),x=(0,z.useSquadronsConnection)(),f=(0,M.useSquadrons)(),[g,j]=(0,l.useState)(!1),[v,w]=(0,l.useState)(null),b=(0,N.offersOf)(m.data??[],p.data??[]),k=(0,S.useLabelContext)(m.data?.map(e=>e.shipId)),{shipLabelsMax:B,fleetScopes:E}=(0,C.useConsoleConstants)(),D=(0,S.useFleetScopes)(),H=void 0===k||void 0===m.data?void 0:(0,q.machineLabelsInputOf)(k,{machines:m.data,shipLabelsMax:B}),U=(0,P.useCrewSettingsCheck)(e&&h?null===v?(0,N.settingsOf)((0,N.defaultValues)(b)):v:void 0),_=(0,A.useShipTypes)(!1),[K,W]=(0,l.useState)({name:"",type:""}),G=(0,I.useIsShipNameTaken)(K.name),Q=(0,A.useTypeShipCount)(K.type),Z=(e,t)=>{c.mutate(e,{onSuccess:({shipId:i})=>{s(!1);let a=h&&void 0!==t;a||j(!0),void 0!==t&&u.mutate({shipId:i,settings:t.settings},{onSuccess:()=>{a&&(0,T.showToast)({title:`${e.name} commissioned, crew requested`,description:"The trierarch plugin assigns a trierarch that fits.",tone:"success"})},onError:t=>{(0,T.showToast)({title:`Couldn’t request a crew for ${e.name}`,description:`${t.message} The ship is commissioned; request a crew on its page.`,tone:"error"})}})}})};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Button,{variant:"primary",icon:(0,t.jsx)(y.Plus,{}),"data-testid":"fleet-commission",onClick:()=>{c.reset(),w(null),s(!0)},children:"Commission ship"}),(0,t.jsx)($,{types:_??[],taken:{names:!0===G?[K.name]:[],typeShipCounts:new Map(void 0===Q?[]:[[K.type,Q]])},onTypedChange:W,isOpen:e,onOpenChange:s,isPending:c.isPending,error:c.error?.message,shipLimit:(0,R.shipLimitReached)(o.data),accountUrl:d,scopeGroups:void 0===D.data?void 0:(i=D.data,a=new Map(i.filter(({kind:e})=>"core"===e).flatMap(({scopes:e})=>e.map(({scope:e,description:t})=>[e,t]))),n=E.flatMap(e=>{let t=a.get(e);return void 0===t?[]:[{scope:e,description:t}]}),[{title:"Fleet access",namespace:null,scopes:n},...i.flatMap(({namespace:e,kind:t,declaredBy:s,scopes:i})=>"plugin"!==t||null===s||0===i.length?[]:[{title:s.name,namespace:e,scopes:i.map(({scope:e,description:t})=>({scope:e,description:t}))}]),...i.flatMap(({namespace:e,kind:t,scopes:s})=>"fleet"!==t?[]:[{title:"The fleet's own",namespace:e,scopes:s.map(({scope:e,description:t})=>({scope:e,description:t}))}])]),...h?{crewRequest:{offers:b,squadrons:"connected"===x?(f.data??[]).filter(e=>"disbanded"!==e.state).map(e=>e.id):void 0,...void 0===H?{}:{machineLabels:H},check:U.data,onSettingsChange:w}}:{},onSubmit:(e,t)=>{let s={...e,idempotencyKey:crypto.randomUUID()};h&&void 0!==t?U.checkNow().catch(()=>void 0).then(e=>{e?.kind!=="refused"&&Z(s,t)}).catch(()=>void 0):Z(s,t)}}),(0,t.jsx)(V,{shipName:c.variables?.name??"",state:"shown",prompt:c.data?.prompt??void 0,crewLines:c.data?.crewLines??void 0,isOpen:g&&void 0!==c.data,onOpenChange:e=>{e||(j(!1),c.reset())},onConfirm:()=>void 0})]})}var B=e.i(456420);let E={name:"infinity",size:24,node:[["path",{d:"M6 16c5 0 7-8 12-8a4 4 0 0 1 0 8c-5 0-7-8-12-8a4 4 0 1 0 0 8",key:"18ogeb"}]]};E.node;let D=(0,B.default)(E);var H=e.i(730274),U=e.i(749287),_=e.i(78865);let K={ships:{label:"Ships",unit:"ships",Icon:U.Ship},messages:{label:"Messages today",unit:"messages",Icon:H.Send}},W={below:"bg-primary",at:"bg-tone-waiting-fg",over:"bg-tone-attention-fg"},G={at:"at-limit",over:"over-limit"};function Q({kind:e,count:s,limit:i,resetsAt:a}){let{label:n,unit:l,Icon:r}=K[e],o=(0,R.meterState)({count:s,limit:i}),d=G[o],c=(0,R.meterCaption)({count:s,limit:i}),u=null===i?0:0===i?1:Math.min(s/i,1);return(0,t.jsxs)("div",{"data-testid":`limit-meter-${e}`,"data-state":o,className:"flex flex-col gap-2 rounded-lg border border-border bg-card p-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-meta font-medium text-muted-foreground",children:[(0,t.jsx)(r,{"aria-hidden":!0,className:"size-(--size-icon-sm)"}),n]}),void 0===d?null:(0,t.jsx)(_.StatusBadge,{status:d})]}),(0,t.jsxs)("p",{className:"flex items-baseline gap-1.5",children:[(0,t.jsx)("span",{className:"text-metric font-semibold tabular-nums",children:(0,R.meterCount)(s)}),(0,t.jsx)("span",{className:"text-body text-muted-foreground",children:null===i?l:`of ${(0,R.meterCount)(i)} ${l}`})]}),null===i?(0,t.jsxs)("p",{className:"inline-flex items-center gap-1.5 text-meta text-muted-foreground",children:[(0,t.jsx)(D,{"aria-hidden":!0,className:"size-(--size-icon-sm)"}),"No limit"]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{role:"meter","aria-label":`${n}: ${String(s)} of ${String(i)}`,"aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":i,className:"block h-1.5 overflow-hidden rounded-full bg-secondary",children:(0,t.jsx)("span",{className:(0,h.classNames)("block h-full rounded-full","none"===o?void 0:W[o]),style:{width:`${String(100*u)}%`}})}),(0,t.jsxs)("p",{"data-testid":`limit-meter-${e}-caption`,className:"text-caption text-muted-foreground",children:[c,void 0===a?null:` \xb7 resets at ${(0,R.resetTime)(a)}`]})]})]})}function Z(){let e=(0,L.useFleetLimits)().data,s=(0,O.useHostedAccountUrl)();return(0,R.hasLimits)(e)?(0,t.jsxs)("section",{"aria-labelledby":"overview-limits-title","data-testid":"overview-limits",className:"flex flex-col gap-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsx)("h2",{id:"overview-limits-title",className:"text-body font-semibold",children:"Limits"}),void 0===s?null:(0,t.jsx)("a",{href:s,"data-testid":"overview-limits-view",className:"text-meta font-medium text-primary underline underline-offset-2",children:"View limits"})]}),(0,t.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,t.jsx)(Q,{kind:"ships",count:e.ships.count,limit:e.ships.limit}),(0,t.jsx)(Q,{kind:"messages",count:e.dailyMessages.count,limit:e.dailyMessages.limit,resetsAt:e.dailyMessages.resetsAt})]}),(0,t.jsx)("p",{"data-testid":"overview-limits-retention",className:"text-meta text-muted-foreground",children:(0,R.retentionLine)(e.retention)})]}):null}var J=e.i(609176),X=e.i(784294),Y=e.i(619273),ee=e.i(621482),et=e.i(266027),es=e.i(731877),ei=e.i(42756),ea=e.i(427702);function en(e,t){return e.reduce((e,s)=>e+t(s),0)}function el(e,t){let s=t.status?.includes("retired")??!1;return{shown:en(e.view,e=>e.active+(s?e.retired:0)),total:en(e.fleet,e=>e.active+e.retired),retired:en(e.fleet,e=>e.retired)}}var er=e.i(772382),eo=e.i(831458),ed=e.i(869309),ec=e.i(566595);let eu={name:"sliders-horizontal",size:24,node:[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]]};eu.node;let eh=(0,B.default)(eu);var em=e.i(765649),ep=e.i(638919);let ex=["console","claudeCode","codex","trierarch","plugin","other"],ef={console:"Console",claudeCode:"Claude Code",codex:"Codex",trierarch:"Trierarch",plugin:"Plugin",other:"Other"};function eg(e){return ex.some(t=>t===e)}var ej=e.i(349841);let ev={query:"",filters:{status:[],crewRequest:[],kind:[],type:[],squadron:[],isRetiredShown:!1,labelValueIds:[]},sort:null};function ew(e){return[...new Set([...e.values()].map(e=>e.squadronId))].toSorted((e,t)=>e.localeCompare(t))}let eb={crewed:"Crewed",awaitingCrew:"Awaiting crew"};function ey(e){return eC(e).length+e.labelValueIds.length}function ek(e,t){return 0===t.length?void 0:`${e}: ${t.join(", ")}`}function eC(e){return[ek("Status",e.status.map(e=>eb[e])),ek("Crew request",e.crewRequest.map(ej.crewRequestKeyWord)),ek("Kind",e.kind.map(e=>ef[e])),ek("Type",e.type),ek("Squadron",e.squadron),e.isRetiredShown?"Retired shown":void 0].filter(e=>void 0!==e)}var eN=e.i(280581),eS=e.i(766390),eq=e.i(212470),eI=e.i(791727),eT=e.i(975867),eL=e.i(414732),eO=e.i(67874),eR=e.i(817981),ez=e.i(298421),eM=e.i(695960);function eP({chips:e,width:s,testId:i,href:n}){if(0===e.length)return null;let{shown:l,folded:r}=0===s?{shown:[],folded:e}:(0,eN.rowChips)(e,s);return(0,t.jsxs)("span",{"data-testid":i,className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[l.map((e,s)=>(0,t.jsx)(eM.LabelChip,{chip:e,className:0===s?"min-w-0 shrink":void 0},e.valueId)),0===r.length?null:void 0===n?(0,t.jsxs)("span",{title:r.map(eN.chipTitleOf).join("; "),className:"inline-flex h-5.5 shrink-0 items-center rounded-sm bg-secondary px-1.5 text-caption font-medium text-foreground tabular-nums",children:["+",r.length,(0,t.jsx)("span",{className:"sr-only",children:" more labels"})]}):(0,t.jsxs)(a.default,{href:n,title:r.map(eN.chipTitleOf).join("; "),"aria-label":`View ${r.length} more labels`,className:"inline-flex h-5.5 shrink-0 items-center rounded-sm bg-secondary px-1.5 text-caption font-medium text-foreground tabular-nums hover:underline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring",children:["+",r.length]})]})}var eA=e.i(188393);let e$={name:"signal",size:24,node:[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M17 20V8",key:"1tkaf5"}],["path",{d:"M22 4v16",key:"sih9yq"}]]};e$.node;let eV=(0,B.default)(e$),eF={name:"signal-low",size:24,node:[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}]]};eF.node;let eB=(0,B.default)(eF),eE={name:"signal-medium",size:24,node:[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}]]};eE.node;let eD=(0,B.default)(eE);var eH=e.i(663240);let eU={fresh:{Icon:eV,tone:"text-tone-ok-fg"},while:{Icon:eD,tone:"text-muted-foreground"},long:{Icon:eB,tone:"text-tone-waiting-fg"}};function e_({seenAt:e,now:s,testId:i}){let a;if(null===e)return null;let n=new Date(e),l=(a=s.getTime()-n.getTime())<6e4?"fresh":a<=9e5?"while":"long",{Icon:r,tone:o}=eU[l],d=(0,j.lastSeen)(n,s);return(0,t.jsxs)(eH.Tooltip,{children:[(0,t.jsx)(eH.TooltipTrigger,{render:(0,t.jsx)("span",{role:"img","aria-label":d,"data-testid":i,"data-signal":l,className:(0,h.classNames)("inline-flex [&_svg]:size-(--size-icon) max-sm:[&_svg]:size-4",o)}),children:(0,t.jsx)(r,{"aria-hidden":!0})}),(0,t.jsx)(eH.TooltipContent,{children:d})]})}var eK=e.i(763481),eW=e.i(2093);function eG({model:e,now:s}){let i=(0,eW.modelStatedWords)(e,s);return(0,t.jsxs)(eH.Tooltip,{children:[(0,t.jsxs)(eH.TooltipTrigger,{render:(0,t.jsx)("span",{"data-testid":"fleet-model-hint",className:"min-w-0 truncate font-mono text-id text-muted-foreground"}),children:[e.id,(0,t.jsxs)("span",{className:"sr-only",children:[", ",i]})]}),(0,t.jsx)(eH.TooltipContent,{children:(0,t.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"font-mono",children:e.id}),(0,t.jsx)("span",{children:i})]})})]})}var eQ=e.i(781830),eZ=e.i(1935),eJ=e.i(539448),eX=e.i(946033);function eY({label:e,items:s,picked:i,onPickedChange:a,size:n="sm",valueClassName:l,testId:r}){let o=function(e,t){let[s]=e;return void 0===s?{kind:"all"}:1===e.length?{kind:"one",word:t[s]??s}:{kind:"several",count:e.length}}(i,s);return(0,t.jsxs)(eX.Select,{multiple:!0,value:0===i.length?["all"]:[...i],onValueChange:e=>{a(i.length>0&&e.includes("all")?[]:e.filter(e=>"all"!==e))},children:[(0,t.jsx)(eX.SelectTrigger,{size:n,"aria-label":e,"data-testid":r,children:(0,t.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:e}),"several"===o.kind?(0,t.jsxs)("span",{className:"inline-flex size-5 items-center justify-center rounded-full bg-primary text-caption font-semibold text-primary-foreground tabular-nums",children:[o.count,(0,t.jsx)("span",{className:"sr-only",children:" picked"})]}):(0,t.jsx)("span",{className:(0,h.classNames)("font-medium","one"===o.kind?l:void 0),children:"one"===o.kind?o.word:"All"})]})}),(0,t.jsxs)(eX.SelectContent,{children:[(0,t.jsx)(eX.SelectItem,{value:"all",children:"All"}),Object.entries(s).map(([e,s])=>(0,t.jsx)(eX.SelectItem,{value:e,className:l,children:s},e))]})]})}function e0({label:e,allLabel:s="All",items:i,picked:a,onPickedChange:n,layout:l="chips",testId:o}){return(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"text-meta font-medium text-muted-foreground",children:e}),(0,t.jsxs)("div",{role:"group","aria-label":e,"data-testid":o,className:"segments"===l?"flex gap-1.5 [&>*]:flex-1":"flex flex-wrap gap-1.5",children:[(0,t.jsx)(r.Button,{variant:0===a.length?"primary":"secondary",size:"touch","aria-pressed":0===a.length,onClick:()=>{n([])},children:s}),Object.entries(i).map(([e,s])=>{let i=a.includes(e);return(0,t.jsx)(r.Button,{variant:i?"primary":"secondary",size:"touch","aria-pressed":i,onClick:()=>{n(i?a.filter(t=>t!==e):[...a,e])},children:s},e)})]})]})}var e2=e.i(716327),e1=e.i(868401),e4=e.i(770703),e5=e.i(406734);let e7=(0,e4.default)(()=>e.A(867858).then(e=>e.LabelPicker),{loadableGenerated:{modules:[259068]},ssr:!1});function e8({groups:e,picked:s,onPick:i,trigger:n}){let[r,o]=(0,l.useState)(!1);return(0,t.jsxs)(e5.Popover,{open:r,onOpenChange:o,children:[(0,t.jsx)(e5.PopoverTrigger,{render:n}),(0,t.jsxs)(e5.PopoverContent,{align:"start",sideOffset:6,className:"w-80 p-2","data-testid":"label-filter-popover",children:[(0,t.jsx)("span",{className:"block px-2 pt-1 pb-2 text-body font-medium",children:"Filter by label"}),(0,t.jsx)(e7,{groups:e,pickedValueIds:s.map(e=>e.valueId),onPick:e=>{i(e),o(!1)}}),(0,t.jsxs)("p",{className:"mt-2 flex items-center justify-between gap-2 border-t border-border px-2 pt-2 text-meta text-muted-foreground",children:["Exact matches, all must hold.",(0,t.jsx)(a.default,{href:"/labels",className:"font-medium text-foreground hover:underline","data-testid":"label-filter-manage",children:"Manage labels"})]})]})]})}function e6({groups:e,picked:s,onPick:a}){return(0,t.jsx)(e8,{groups:e,picked:s,onPick:a,trigger:(0,t.jsxs)(r.Button,{variant:"secondary",size:"sm",icon:(0,t.jsx)(i.Tag,{}),"data-testid":"fleet-filter-labels",children:["Labels",0===s.length?null:(0,t.jsxs)("span",{className:"inline-flex size-5 items-center justify-center rounded-full bg-primary text-caption font-semibold text-primary-foreground tabular-nums",children:[s.length,(0,t.jsx)("span",{className:"sr-only",children:" picked"})]}),(0,t.jsx)(e2.ChevronDown,{"aria-hidden":!0,className:"text-muted-foreground"})]})})}function e9({groups:e,picked:s,onPick:i,onRemove:a,onClear:n}){return 0===s.length?null:(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1.5 text-meta max-sm:hidden","data-testid":"fleet-picked-labels",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:"Ships with"}),s.map((e,s)=>(0,t.jsxs)("span",{className:"inline-flex items-center gap-2",children:[0===s?null:(0,t.jsx)("span",{className:"text-muted-foreground",children:"and"}),(0,t.jsx)(eM.LabelChip,{chip:e,testId:"fleet-picked-label",onRemove:()=>{a(e.valueId)}})]},e.valueId)),(0,t.jsx)(e8,{groups:e,picked:s,onPick:i,trigger:(0,t.jsx)(r.Button,{variant:"ghost",size:"xs",icon:(0,t.jsx)(y.Plus,{}),children:"Add"})}),(0,t.jsx)("span",{"aria-hidden":!0,className:"h-4 w-px bg-border"}),(0,t.jsx)(r.Button,{variant:"ghost",size:"xs",onClick:n,"data-testid":"fleet-labels-clear",children:"Clear labels"})]})}function e3({groups:e,picked:s,onPick:i,onRemove:n}){let[o,d]=(0,l.useState)(!1);return(0,t.jsxs)("div",{className:"flex flex-col gap-2","data-testid":"fleet-filter-labels-touch",children:[(0,t.jsxs)("span",{className:"flex items-center gap-2 text-meta font-medium text-muted-foreground",children:["Labels ",(0,t.jsx)("span",{className:"font-normal",children:"all must hold"})]}),0===s.length?null:(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-2 text-meta",children:s.map((e,s)=>(0,t.jsxs)("span",{className:"inline-flex items-center gap-2",children:[0===s?null:(0,t.jsx)("span",{className:"text-muted-foreground",children:"and"}),(0,t.jsx)(eM.LabelChip,{chip:e,onRemove:()=>{n(e.valueId)}})]},e.valueId))}),o?(0,t.jsx)("div",{className:"rounded-lg border border-border p-2",children:(0,t.jsx)(e7,{groups:e,pickedValueIds:s.map(e=>e.valueId),size:"touch",onPick:e=>{i(e),d(!1)}})}):(0,t.jsx)(r.Button,{variant:"secondary",size:"touch",icon:(0,t.jsx)(y.Plus,{}),className:"self-start",onClick:()=>{d(!0)},children:"Add label"}),(0,t.jsxs)(a.default,{href:"/labels",className:"inline-flex items-center gap-1.5 self-start text-meta text-muted-foreground hover:underline [&_svg]:size-(--size-icon-sm)",children:[(0,t.jsx)(e1.Tags,{"aria-hidden":!0}),"All labels and their owners"]})]})}function te(e,t){return{...e,filters:{...e.filters,labelValueIds:t}}}function tt(e){return Object.hasOwn(eb,e)}function ts(e){return Object.fromEntries((0,ej.crewRequestKeysOf)(e).map(e=>[e,(0,ej.crewRequestKeyWord)(e)]))}function ti(e,t){return Object.hasOwn(t,e)}function ta(e){return Object.fromEntries(e.map(e=>[e,e]))}function tn({ship:e,squadron:s,isPluginShip:i}){return"operator"===e.kind?(0,t.jsxs)(eS.Badge,{variant:"kind",children:[(0,t.jsx)(em.UserRound,{"aria-hidden":!0}),"operator"]}):"viewer"===e.kind?(0,t.jsxs)(eS.Badge,{variant:"kind","data-testid":"fleet-viewer",children:[(0,t.jsx)(er.Eye,{"aria-hidden":!0}),"viewer"]}):i?(0,t.jsxs)(eS.Badge,{variant:"kind","data-testid":"fleet-plugin",children:[(0,t.jsx)(ed.Plug,{"aria-hidden":!0}),"plugin"]}):s?.role===null?(0,t.jsxs)(eS.Badge,{variant:"kind","data-testid":"fleet-flagship",children:[(0,t.jsx)(eo.Flag,{"aria-hidden":!0}),"flagship"]}):null}function tl({ship:e,now:s}){return"crewed"!==e.status||"viewer"===e.kind?null:(0,t.jsxs)("span",{"data-testid":"fleet-runs-on",className:"flex min-w-0 items-center gap-3 max-sm:flex-wrap max-sm:gap-y-1",children:[(0,t.jsx)(eK.LocationTag,{kind:"operator"===e.kind&&null!==e.location?"DEVICE":e.location?.kind??null,description:e.location?.description,harness:"operator"===e.kind?"console":e.harness,size:"sm",className:"shrink-0"}),"agent"===e.kind&&null!==e.model?(0,t.jsx)(eG,{model:e.model,now:s}):null]})}function tr({ship:e,squadron:s,labels:i}){let a=s?.role===null?void 0:s,n=void 0===i?[]:(0,eN.chipsOf)(e,i).filter(e=>void 0===a||("squadron"!==e.key||e.value!==a.squadronId)&&("squadron-role"!==e.key||e.value!==a.role));return void 0===a&&0===n.length?null:(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-2 overflow-hidden",children:[void 0===a?null:(0,t.jsx)("span",{className:"min-w-0 shrink",title:null===a.role?a.squadronId:`${a.squadronId} \xb7 ${a.role}`,children:(0,t.jsx)(eZ.SquadronTag,{squadronId:a.squadronId,size:"sm"})}),(0,t.jsx)(eP,{chips:n,width:22*(void 0===a),testId:"fleet-labels",href:`/ships/${e.id}`})]})}function to({ship:e,now:s,next:i}){let a=("agent"===e.kind||"plugin"===e.kind)&&"crewed"===e.status;return(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-2 max-sm:flex-col max-sm:items-stretch [&:has(button)>[data-testid=fleet-report]]:hidden",children:[a?(0,t.jsx)(eQ.ReportLine,{report:e.report,now:s,variant:"row",isTimeInTitle:!0,testId:"fleet-report"}):null,i]})}function td({types:e,view:s,onViewChange:i,size:a,squadronsOf:n,labels:l}){let o=ts((0,C.useConsoleConstants)().crewStatuses),{filters:d}=s,c=e=>{i({...s,filters:{...d,...e}})},u="touch"===a;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eY,{label:"Status",items:eb,picked:d.status,onPickedChange:e=>{c({status:e.filter(tt)})},size:a,testId:u?void 0:"fleet-filter-status"}),(0,t.jsx)(eY,{label:"Crew request",items:o,picked:d.crewRequest,onPickedChange:e=>{c({crewRequest:e.filter(e=>ti(e,o))})},size:a,testId:u?void 0:"fleet-filter-crew-request"}),(0,t.jsx)(eY,{label:"Kind",items:ef,picked:d.kind,onPickedChange:e=>{c({kind:e.filter(eg)})},size:a,testId:u?void 0:"fleet-filter-kind"}),(0,t.jsx)(eY,{label:"Type",items:ta(e),picked:d.type,onPickedChange:e=>{c({type:e})},size:a,valueClassName:"font-mono",testId:u?void 0:"fleet-filter-type"}),n&&(0,t.jsx)(eY,{label:"Squadron",items:ta(ew(n)),picked:d.squadron,onPickedChange:e=>{c({squadron:e})},size:a,testId:u?void 0:"fleet-filter-squadron"}),void 0===l||u?null:(0,t.jsx)(e6,{groups:(0,eN.filterGroupsOf)(l),picked:(0,eN.pickedChips)(d.labelValueIds,l),onPick:e=>{i(te(s,[...d.labelValueIds,e]))}}),eC(d).length>0&&!u?(0,t.jsx)(r.Button,{variant:"ghost",size:"xs","data-testid":"fleet-filters-clear",onClick:()=>{i({...s,filters:ev.filters})},children:"Clear filters"}):null]})}function tc(e){return void 0===e?"":` (${String(e.retired)})`}function tu({counts:e,view:s,onViewChange:i}){let a="fleet-show-retired";return(0,t.jsxs)("div",{className:"inline-flex items-center gap-2",children:[(0,t.jsx)(eT.Switch,{id:a,"data-testid":"fleet-show-retired",checked:s.filters.isRetiredShown,onCheckedChange:e=>{i({...s,filters:{...s.filters,isRetiredShown:e}})}}),(0,t.jsxs)(eI.Label,{htmlFor:a,className:"text-meta font-normal text-muted-foreground",children:["Show retired",tc(e)]})]})}function th({types:e,counts:s,view:i,onViewChange:a,squadronsOf:n,labels:l}){let o=ts((0,C.useConsoleConstants)().crewStatuses),{filters:d}=i,c=e=>{a({...i,filters:{...d,...e}})},u=ey(d);return(0,t.jsxs)(ep.Sheet,{children:[(0,t.jsx)(ep.SheetTrigger,{render:(0,t.jsx)(r.Button,{size:"touch",isIconOnly:!0,"aria-label":u>0?`Filter ships, ${String(u)} active`:"Filter ships","data-testid":"fleet-filters-open",icon:(0,t.jsx)(eh,{}),className:"relative sm:hidden",children:u>0?(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute top-1.5 right-1.5 size-2 rounded-full bg-primary"}):null})}),(0,t.jsxs)(ep.SheetContent,{side:"bottom",children:[(0,t.jsxs)(ep.SheetHeader,{className:"flex-row items-center justify-between",children:[(0,t.jsx)(ep.SheetTitle,{children:"Filter ships"}),(0,t.jsx)(r.Button,{variant:"ghost",size:"touch","data-testid":"fleet-filters-reset",onClick:()=>{a({...i,filters:ev.filters})},children:"Reset"})]}),(0,t.jsxs)(ep.SheetBody,{className:"flex flex-col gap-4 pb-4",children:[(0,t.jsx)(e0,{label:"Status",layout:"segments",items:eb,picked:d.status,onPickedChange:e=>{c({status:e.filter(tt)})}}),(0,t.jsx)(e0,{label:"Crew request",items:o,picked:d.crewRequest,onPickedChange:e=>{c({crewRequest:e.filter(e=>ti(e,o))})}}),(0,t.jsx)(e0,{label:"Kind",items:ef,picked:d.kind,onPickedChange:e=>{c({kind:e.filter(eg)})},testId:"fleet-filter-kind-touch"}),(0,t.jsx)(e0,{label:"Type",allLabel:"All types",items:ta(e),picked:d.type,onPickedChange:e=>{c({type:e})}}),n&&(0,t.jsx)(e0,{label:"Squadron",items:ta(ew(n)),picked:d.squadron,onPickedChange:e=>{c({squadron:e})}}),void 0===l?null:(0,t.jsx)(e3,{groups:(0,eN.filterGroupsOf)(l),picked:(0,eN.pickedChips)(d.labelValueIds,l),onPick:e=>{a(te(i,[...d.labelValueIds,e]))},onRemove:e=>{a(te(i,d.labelValueIds.filter(t=>t!==e)))}}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2 py-1",children:[(0,t.jsxs)(eI.Label,{htmlFor:"fleet-show-retired-touch",className:"text-body-touch font-normal",children:["Show retired ships ",(0,t.jsx)("span",{className:"text-muted-foreground",children:tc(s)})]}),(0,t.jsx)(eT.Switch,{id:"fleet-show-retired-touch",checked:d.isRetiredShown,onCheckedChange:e=>{c({isRetiredShown:e})}})]}),(0,t.jsx)(ep.SheetClose,{render:(0,t.jsx)(r.Button,{size:"touch","data-testid":"fleet-filters-apply"}),children:void 0===s?"Show ships":1===s.shown?"Show 1 ship":`Show ${String(s.shown)} ships`})]})]})]})}function tm({view:e,onViewChange:s,labels:i}){let a=eC(e.filters),n=void 0===i?[]:(0,eN.pickedChips)(e.filters.labelValueIds,i);return 0===a.length&&0===n.length?null:(0,t.jsxs)("div",{className:"flex w-full flex-wrap items-center gap-1.5 sm:hidden","data-testid":"fleet-filter-chips",children:[a.map(e=>(0,t.jsx)(eS.Badge,{variant:"outline",className:"max-w-full truncate",children:e},e)),n.map(i=>(0,t.jsx)(eM.LabelChip,{chip:i,onRemove:()=>{s(te(e,e.filters.labelValueIds.filter(e=>e!==i.valueId)))}},i.valueId)),(0,t.jsx)(r.Button,{variant:"ghost",size:"touch",onClick:()=>{s({...e,filters:ev.filters})},children:"Clear filters"})]})}function tp({types:e,counts:s,view:i,onViewChange:a,squadronsOf:n,labels:l}){return(0,t.jsxs)("div",{"data-slot":"fleet-toolbar",className:"flex flex-wrap items-center gap-2 sm:flex-nowrap sm:items-start",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-2",children:[(0,t.jsx)("div",{className:"w-60 max-sm:min-w-0 max-sm:flex-1",children:(0,t.jsx)(eq.Input,{type:"search","aria-label":"Search ships by name or type",placeholder:"Search ships by name","data-testid":"fleet-search",value:i.query,onChange:e=>{a({...i,query:e.target.value})},leadingIcon:(0,t.jsx)(ec.Search,{}),className:"h-(--size-control-sm) text-meta max-sm:h-(--size-control-touch) max-sm:text-input-touch"})}),(0,t.jsx)("div",{className:"max-sm:hidden sm:contents",children:(0,t.jsx)(td,{types:e,view:i,onViewChange:a,squadronsOf:n,labels:l,size:"sm"})}),(0,t.jsx)(th,{types:e,counts:s,view:i,onViewChange:a,squadronsOf:n,labels:l})]}),(0,t.jsx)(tm,{view:i,onViewChange:a,labels:l}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-2 max-sm:w-full sm:h-(--size-control-sm)",children:[(0,t.jsx)("div",{className:"max-sm:hidden",children:(0,t.jsx)(tu,{counts:s,view:i,onViewChange:a})}),void 0===s?null:(0,t.jsxs)("p",{"aria-live":"polite",className:"text-meta text-muted-foreground tabular-nums","data-testid":"fleet-count",children:[s.shown," of ",s.total," ships"]})]})]})}function tx({ship:e}){return(0,t.jsx)(eJ.ShipName,{name:e.name,shipId:e.id,isSuffixShown:"retired"===e.status,href:"operator"===e.kind?"/inbox":`/ships/${e.id}`,className:"[&_a]:max-sm:whitespace-normal [&_a]:max-sm:break-all [&_a]:max-sm:text-body-touch"})}let tf=[{key:"ship",column:"ship",head:"Ship"},{key:"status",column:"status",head:"Status"},{key:"report",column:"report",head:"Report"},{key:"squadronAndLabels",head:"Squadron and labels"},{key:"runsOn",column:"runsOn",head:"Runs on"},{key:"seen",column:"seen",head:"Seen"}];function tg({ships:e,highlightedShipIds:s,now:i,renderRowActions:a,squadronsOf:n,labels:l,pluginShipIds:r,sort:o,onSort:d}){return(0,t.jsx)("div",{className:"max-sm:hidden",children:(0,t.jsxs)(eL.Table,{"aria-label":"Ships",className:"min-w-320 table-fixed",children:[(0,t.jsxs)("colgroup",{children:[(0,t.jsx)("col",{className:"w-56"}),(0,t.jsx)("col",{className:"w-40"}),(0,t.jsx)("col",{className:"w-64"}),(0,t.jsx)("col",{className:"w-56"}),(0,t.jsx)("col",{className:"w-80"}),(0,t.jsx)("col",{className:"w-12"}),(0,t.jsx)("col",{className:"w-12"})]}),(0,t.jsx)(eL.TableHeader,{children:(0,t.jsxs)(eL.TableRow,{children:[tf.map(({key:e,column:s,head:i})=>void 0===d||void 0===s?(0,t.jsx)(eL.TableHead,{children:i},e):(0,t.jsx)(eL.TableSortHead,{"data-testid":`fleet-sort-${s}`,direction:o?.column===s?o.direction:null,onSort:()=>{d(s)},children:i},e)),(0,t.jsx)(eL.TableHead,{children:(0,t.jsx)("span",{className:"sr-only",children:"Actions"})})]})}),(0,t.jsx)(eL.TableBody,{children:e.map(e=>(0,t.jsxs)(eL.TableRow,{"data-testid":`fleet-row-${e.name}`,"data-new":s?.has(e.id)?"":void 0,className:"h-12",children:[(0,t.jsx)(eL.TableCell,{children:(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-2 whitespace-nowrap",children:[(0,t.jsx)(tx,{ship:e}),(0,t.jsx)(tn,{ship:e,squadron:n?.get(e.id),isPluginShip:r?.has(e.id)??!1})]})}),(0,t.jsx)(eL.TableCell,{children:(0,t.jsx)(_.StatusBadge,{status:e.status})}),(0,t.jsx)(eL.TableCell,{children:(0,t.jsx)(to,{ship:e,now:i,next:a?.(e,"next")})}),(0,t.jsx)(eL.TableCell,{children:(0,t.jsx)(tr,{ship:e,squadron:n?.get(e.id),labels:l})}),(0,t.jsx)(eL.TableCell,{children:(0,t.jsx)(tl,{ship:e,now:i})}),(0,t.jsx)(eL.TableCell,{children:(0,t.jsx)(e_,{seenAt:e.lastSeenAt,now:i,testId:"fleet-last-seen"})}),(0,t.jsx)(eL.TableCell,{className:"w-10 text-right",children:a?.(e,"table")})]},e.id))})]})})}function tj({ships:e,highlightedShipIds:s,now:i,renderRowActions:a,squadronsOf:n,pluginShipIds:l}){return(0,t.jsx)("ul",{"aria-label":"Ships",className:"overflow-hidden rounded-lg border border-border bg-card sm:hidden",children:e.map(e=>(0,t.jsxs)("li",{"data-testid":`fleet-card-${e.name}`,"data-new":s?.has(e.id)?"":void 0,className:"flex items-start gap-2 border-b border-border px-3.5 py-3 last:border-0 data-new:animate-highlight",children:[(0,t.jsxs)("div",{className:"flex min-w-0 grow flex-col gap-1.5",children:[(0,t.jsx)("div",{className:"text-body-touch",children:(0,t.jsx)(tx,{ship:e})}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)(_.StatusBadge,{status:e.status}),(0,t.jsx)(tn,{ship:e,squadron:n?.get(e.id),isPluginShip:l?.has(e.id)??!1})]}),(0,t.jsx)(tr,{ship:e,squadron:n?.get(e.id)}),(0,t.jsx)(to,{ship:e,now:i,next:a?.(e,"next")}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-x-3 gap-y-1",children:[(0,t.jsx)(tl,{ship:e,now:i}),(0,t.jsx)(e_,{seenAt:e.lastSeenAt,now:i})]})]}),a?.(e,"phone")]},e.id))})}function tv({ships:e,counts:s,isOnlyArgo:i,types:a,more:n,view:l,onViewChange:o,state:d,error:c,highlightedShipIds:u,now:h,renderRowActions:m,emptyAction:p,squadronsOf:x,labels:f,pluginShipIds:g}){let j;if("loading"===d)return(0,t.jsxs)("div",{"data-slot":"fleet-table","data-state":"loading",className:"flex flex-col gap-3",children:[(0,t.jsx)(eA.LoadingSkeleton,{variant:"table",rows:6,label:"Loading the fleet",className:"max-sm:hidden"}),(0,t.jsx)(eA.LoadingSkeleton,{variant:"list",rows:5,label:"Loading the fleet",className:"sm:hidden"})]});if("error"===d)return(0,t.jsx)(eR.InlineError,{variant:"page",title:"Couldn’t load the fleet",description:"This page couldn’t reach the fleet server. Check that the server is running and reachable from this browser, then try again.",detail:c?.detail,onRetry:c?.onRetry});let v={highlightedShipIds:u,now:h,renderRowActions:m,squadronsOf:x,pluginShipIds:g};if(i){let s=e.filter(e=>"operator"===e.kind);return(0,t.jsxs)("div",{"data-slot":"fleet-table","data-state":"empty",className:"flex flex-col gap-3",children:[(0,t.jsx)(tg,{ships:s,labels:f,...v}),(0,t.jsx)(tj,{ships:s,...v}),(0,t.jsx)(eO.EmptyState,{icon:(0,t.jsx)(U.Ship,{}),title:"No ships besides argo yet",description:"argo is your own ship: messages to the operator land in its inbox. Commission a ship to add an agent to the fleet.",action:p})]})}let w=l.query.trim();return(0,t.jsxs)("div",{"data-slot":"fleet-table","data-state":"ready",className:"flex flex-col gap-3",children:[(0,t.jsx)(tp,{types:a,counts:s,view:l,onViewChange:o,squadronsOf:x,labels:f}),void 0===f?null:(0,t.jsx)(e9,{groups:(0,eN.filterGroupsOf)(f),picked:(0,eN.pickedChips)(l.filters.labelValueIds,f),onPick:e=>{o(te(l,[...l.filters.labelValueIds,e]))},onRemove:e=>{o(te(l,l.filters.labelValueIds.filter(t=>t!==e)))},onClear:()=>{o(te(l,[]))}}),0===e.length?(0,t.jsx)(eO.EmptyState,{variant:"no-results",title:""===w?"No ships match these filters.":`No ships match “${w}”.`,action:(0,t.jsx)(r.Button,{size:"xs","data-testid":"fleet-clear-filters",onClick:()=>{o({...ev,sort:l.sort})},children:(j=ey(l.filters)>0,""===w?"Clear filters":j?"Clear search and filters":"Clear search")})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(tg,{ships:e,labels:f,sort:l.sort,onSort:e=>{var t;o({...l,sort:(t=l.sort,t?.column!==e?{column:e,direction:"ascending"}:"ascending"===t.direction?{column:e,direction:"descending"}:null)})},...v}),(0,t.jsx)(tj,{ships:e,...v}),n?.hasMore===!0?(0,t.jsx)(ez.LoadMore,{what:"more ships",isLoading:n.isLoading,isFailed:n.isFailed,onLoad:n.onLoad,area:"fleet"}):null]})]})}function tw({view:e,onViewChange:s,placedFirstShipIds:i,renderRowActions:a}){var n,l;let r,o,d=(0,g.useNow)(),c=(0,M.useSquadrons)(),u=(0,S.useLabelContext)(),h=(0,J.usePluginShipIds)(),m=c.data?(0,X.shipsInSquadrons)(c.data):void 0,p=function({query:e,filters:t},s){var i;let a=0===t.squadron.length?[]:(i=t.squadron,[...s.squadronsOf??new Map].filter(([,e])=>i.includes(e.squadronId)).map(([e])=>e));if(t.squadron.length>0&&0===a.length)return null;let n=e.trim(),l=t.status.length>0?[...t.status]:t.isRetiredShown?["awaitingCrew","crewed","retired"]:[];return{...""===n?{}:{query:n},...0===l.length?{}:{status:[...l]},...0===t.type.length?{}:{type:[...t.type]},...0===t.crewRequest.length?{}:{crewRequest:[...t.crewRequest]},...0===t.labelValueIds.length?{}:{valueIds:[...t.labelValueIds]},...0===a.length?{}:{shipIds:a},...0===t.kind.length?{}:{kind:[...t.kind],pluginShipIds:[...s.pluginShipIds]}}}(e,{squadronsOf:m,pluginShipIds:h}),x=(l=null===(n=e.sort)?void 0:{column:n.column,direction:n.direction},r=(0,ea.useTRPC)(),o=(0,es.pagedListOf)((0,ee.useInfiniteQuery)(r.fleet.list.infiniteQueryOptions({...p,sort:l,limit:es.CONSOLE_PAGE_SIZE},{enabled:null!==p,getNextPageParam:es.nextCursorOf,placeholderData:Y.keepPreviousData,refetchInterval:S.LAST_SEEN_REFRESH_MS}))),null===p?{...o,items:[],hasMore:!1}:{...o,items:o.items&&(0,ei.shipRowsOf)(o.items,p)}),{counts:f,isOnlyArgo:j}=function(e){let t=(0,ea.useTRPC)(),s=(0,et.useQuery)(t.fleet.shipCounts.queryOptions({filter:e??{}},{enabled:null!==e,placeholderData:Y.keepPreviousData})),i=(0,et.useQuery)(t.fleet.shipCounts.queryOptions());if(void 0===i.data)return{counts:void 0,isOnlyArgo:!1};let a=0===en(i.data,e=>"operator"===e.kind?0:e.active);return null===e?{counts:el({view:[],fleet:i.data},{}),isOnlyArgo:a}:{counts:void 0===s.data?void 0:el({view:s.data,fleet:i.data},e),isOnlyArgo:a}}(p),v=(0,A.useShipTypes)(e.filters.isRetiredShown);return(0,t.jsx)("section",{"aria-label":"Fleet",className:"flex flex-col gap-3",children:(0,t.jsx)(tv,{ships:x.items??[],counts:f,isOnlyArgo:j,types:[...new Set([...v??[],...e.filters.type])].toSorted((e,t)=>e.localeCompare(t)),more:{hasMore:x.hasMore,isLoading:x.isLoadingMore,isFailed:x.isLoadMoreFailed,onLoad:x.loadMore},view:e,onViewChange:s,state:x.isFailed?"error":void 0===x.items?"loading":"ready",error:{detail:x.error instanceof Error?x.error.message:void 0,onRetry:x.retry},highlightedShipIds:i,now:d,renderRowActions:a,squadronsOf:m,labels:u,pluginShipIds:h})})}var tb=e.i(221959),ty=e.i(566297),tk=e.i(577435),tC=e.i(509892),tN=e.i(787964),tS=e.i(762687),tq=e.i(490262),tI=e.i(718423),tT=e.i(678485),tL=e.i(303979);e.s(["OverviewPage",0,function({view:e,isCommissionAsked:d}){let c=(0,n.useRouter)(),u=(0,v.useShipCounts)(),h=(0,tI.useLiveFleet)(),m=(0,tN.useConsoleFrame)(),p=(0,R.messageLimitReached)((0,L.useFleetLimits)().data),x=(0,O.useHostedAccountUrl)(),f=(0,tq.useAccess)(),g=(0,tL.usePluginNav)(),[j,y]=(0,l.useState)(!1),[k,C]=(0,l.useOptimistic)(e);(0,tT.useSignInWhenSessionEnds)([u.error,h.error]);let N=e=>{let t=(function(e){let t=new URLSearchParams;for(let[s,i]of(""!==e.query&&t.set("q",e.query),[["status",e.filters.status],["crew",e.filters.crewRequest],["kind",e.filters.kind],["type",e.filters.type],["squadron",e.filters.squadron]]))for(let e of i)t.append(s,e);for(let s of(e.filters.isRetiredShown&&t.set("retired","1"),e.filters.labelValueIds))t.append("label",s);return null!==e.sort&&(t.set("sort",e.sort.column),"descending"===e.sort.direction&&t.set("order","desc")),t})(e).toString();(0,l.startTransition)(()=>{C(e),c.replace(""===t?"/":`/?${t}`,{scroll:!1})})};return(0,t.jsxs)(tC.ListPage,{...m,title:"Fleet overview",description:u.data?function(e){let t=w(e.counts),s=t?.active??0,i=t?.retired??0;if(0===s&&0===i)return e.canCommission?"Only argo so far. Ships you commission appear here.":"Only argo so far.";let a=0===i?"":`, ${String(i)} retired`;return`${1===s?"1 active ship":`${String(s)} active ships`} and argo${a}. Changes appear as they happen.`}({counts:u.data,canCommission:f.canManage}):"Loading your fleet",primaryAction:(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2 max-sm:flex-col max-sm:items-stretch",children:[(0,t.jsx)(r.Button,{render:(0,t.jsx)(a.default,{href:"/labels"}),nativeButton:!1,icon:(0,t.jsx)(i.Tag,{}),"data-testid":"overview-labels",children:f.canDefineLabels?"Manage labels":"View labels"}),(0,t.jsx)(r.Button,{render:(0,t.jsx)(a.default,{href:"/scopes"}),nativeButton:!1,icon:(0,t.jsx)(s.KeyRound,{}),"data-testid":"overview-scopes",children:f.canDefineScopes?"Manage scopes":"View scopes"}),f.canManage?(0,t.jsx)(F,{isOpen:j||d,onOpenChange:t=>{y(t),!t&&d&&N(e)}}):null]}),live:h.live,children:[(0,t.jsx)(tS.FleetSegments,{active:"ships",needsCrewCount:g.needsCrewCount}),void 0===p?null:(0,t.jsx)(tk.LimitNotice,{...(0,R.messageLimitNotice)(p),accountUrl:x,testId:"overview-message-limit"}),(0,t.jsx)(Z,{}),(0,t.jsx)(b,{}),(0,t.jsx)(tw,{view:k,onViewChange:N,placedFirstShipIds:h.placedFirstShipIds,renderRowActions:(e,s)=>(0,t.jsx)(tb.ShipActions,{ship:e,layout:"table"===s?"menu":"phone"===s?"sheet":"next",compose:o.ComposeMessage,crewLineFlow:ty.NewCrewLineFlow})})]})}],242047)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,733971,s=>{s.v(t=>Promise.all(["static/chunks/3vp8zttvdsc56.js"].map(t=>s.l(t))).then(()=>t(642211)))},88138,s=>{s.v(t=>Promise.all(["static/chunks/2cpndz4m8u86c.js","static/chunks/3p53ceu66mlll.js"].map(t=>s.l(t))).then(()=>t(648287)))},901890,s=>{s.v(t=>Promise.all(["static/chunks/257aniba461fq.js"].map(t=>s.l(t))).then(()=>t(438529)))},785575,s=>{s.v(t=>Promise.all(["static/chunks/1an189wd_o795.js","static/chunks/3p53ceu66mlll.js"].map(t=>s.l(t))).then(()=>t(804382)))}]);
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,792150,e=>{"use strict";var t=e.i(456420);let s={name:"boxes",size:24,node:[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]};s.node;let a=(0,t.default)(s);e.s(["Boxes",0,a],792150)},443988,e=>{"use strict";var t=e.i(843476),s=e.i(225913),a=e.i(965324);let n=(0,s.cva)("w-full min-w-0 resize-none rounded-md border border-input bg-card px-3 py-2 text-foreground shadow-sm transition-[border-color,box-shadow] duration-(--duration-fast) outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/22 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/16 disabled:cursor-not-allowed disabled:bg-muted disabled:opacity-50 disabled:shadow-none",{variants:{size:{md:"text-body",touch:"rounded-lg text-input-touch"},isMono:{true:"font-mono",false:""}},compoundVariants:[{size:"md",isMono:!0,className:"text-code"}],defaultVariants:{size:"md",isMono:!1}});e.s(["Textarea",0,function({className:e,size:s,isMono:r,rows:i=4,...o}){return(0,t.jsx)("textarea",{"data-slot":"textarea",rows:i,className:(0,a.classNames)(n({size:s,isMono:r}),e),...o})}])},695960,e=>{"use strict";var t=e.i(843476),s=e.i(792150),a=e.i(749287),n=e.i(586875),r=e.i(456420);let i={name:"tag-x",size:24,node:[["path",{d:"m16.5 6.5-3.914-3.914A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.43 2.43 0 0 0 3.42 0l1.79-1.79",key:"hu94c9"}],["path",{d:"m16.5 10.5 5 5",key:"1jo8bf"}],["path",{d:"m21.5 10.5-5 5",key:"jzei60"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]};i.node;let o=(0,r.default)(i);var l=e.i(263676),d=e.i(965324),c=e.i(280581);let m={"trierarch-plugin":n.ShipWheel,squadrons:s.Boxes,ship:a.Ship,gone:o};e.s(["LabelChip",0,function({chip:e,onRemove:s,testId:a,className:n,trailing:r,meaning:i}){let o="none"===e.mark?null:m[e.mark],h=`${e.key}=${e.value}`,u=void 0===i?(0,c.chipTitleOf)(e):`${(0,c.chipTitleOf)(e)}. ${i}`;return(0,t.jsxs)("span",{role:"group","aria-label":u,"data-slot":"label-chip","data-testid":a,title:u,className:(0,d.classNames)("inline-flex h-5.5 max-w-full min-w-0 shrink-0 items-center gap-1 rounded-sm border border-border bg-secondary px-1.5 font-mono text-id whitespace-nowrap text-foreground [&_svg]:size-3 [&_svg]:shrink-0 [&_svg]:text-muted-foreground","gone"===e.mark?"border-dashed":null,n),children:[null===o?null:(0,t.jsx)(o,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"truncate",children:[(0,t.jsxs)("span",{className:"text-muted-foreground",children:[e.key,"="]}),(0,t.jsx)("span",{className:"font-medium",children:e.value})]}),r,void 0===s?null:(0,t.jsx)("button",{type:"button","aria-label":`Remove ${h}`,onClick:s,className:"-mr-1 ml-0.5 inline-flex size-4 items-center justify-center rounded-xs text-muted-foreground hover:bg-accent hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring",children:(0,t.jsx)(l.X,{"aria-hidden":!0})})]})}],695960)},867858,e=>{e.v(t=>Promise.all(["static/chunks/2_qyhoh1hlhcy.js","static/chunks/24yl55yxkaeaf.js"].map(t=>e.l(t))).then(()=>t(259068)))},404032,e=>{"use strict";var t=e.i(843476),s=e.i(422768),a=e.i(474544),n=e.i(77071),r=e.i(263676),i=e.i(522016),o=e.i(271645),l=e.i(770703),d=e.i(878608),c=e.i(574296),m=e.i(406734),h=e.i(695960);let u=(0,l.default)(()=>e.A(867858).then(e=>e.LabelPicker),{loadableGenerated:{modules:[259068]},ssr:!1});function x({groups:e,picked:s,isDisabled:a,onAdd:r}){let[l,d]=(0,o.useState)(!1);return(0,t.jsxs)(m.Popover,{open:l,onOpenChange:d,children:[(0,t.jsx)(m.PopoverTrigger,{render:(0,t.jsx)(c.Button,{type:"button",variant:"ghost",size:"xs",icon:(0,t.jsx)(n.Plus,{}),disabled:a,"data-testid":"machine-labels-add"}),children:"Add label"}),(0,t.jsxs)(m.PopoverContent,{align:"start",sideOffset:6,className:"w-80 p-2","data-testid":"machine-labels-popover",children:[(0,t.jsx)("span",{className:"block px-2 pt-1 pb-2 text-body font-medium",children:"Machine label"}),(0,t.jsx)(u,{groups:e,pickedValueIds:s.map(e=>e.valueId),countWord:"machine",onPick:e=>{d(!1),r(e)}}),(0,t.jsxs)("p",{className:"mt-2 flex items-center justify-between gap-2 border-t border-border px-2 pt-2 text-meta text-muted-foreground",children:["Exact matches, all must hold.",(0,t.jsx)(i.default,{href:"/labels",className:"font-medium text-foreground hover:underline",children:"Manage labels"})]})]})]})}e.s(["MachineLabelsField",0,function({shipName:e,picked:n,groups:i,match:l,max:c,isDisabled:m,onAdd:u,onRemove:p,unknown:f=[],onRemoveUnknown:b}){let g=(0,d.noMatchWords)(n.length);return(0,t.jsxs)("div",{className:"flex flex-col gap-1.5","data-testid":"machine-labels",children:[(0,t.jsxs)("span",{className:"text-body font-medium",children:["Machine labels",(0,t.jsx)("span",{className:"font-normal text-muted-foreground",children:" optional"})]}),(0,t.jsxs)("div",{className:"flex min-h-(--size-control-sm) flex-wrap items-center gap-1.5",children:[0===n.length?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"Any machine"}):null,n.map((e,s)=>(0,t.jsxs)(o.Fragment,{children:[0===s?null:(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"and"}),(0,t.jsx)(h.LabelChip,{chip:e,testId:"machine-label",...m?{}:{onRemove:()=>{p(e.valueId)}}})]},e.valueId)),f.map(e=>(0,t.jsxs)("span",{"data-testid":"machine-label-unknown",title:`${e}: not in this fleet`,className:"inline-flex h-5.5 items-center gap-1 rounded-sm border border-tone-attention-border bg-tone-attention-bg px-1.5 font-mono text-id text-tone-attention-fg [&_svg]:size-3",children:[(0,t.jsx)(s.CircleAlert,{"aria-hidden":!0}),e,void 0===b||m?null:(0,t.jsx)("button",{type:"button","aria-label":`Remove ${e}`,onClick:()=>{b(e)},className:"-mr-1 ml-0.5 inline-flex size-4 items-center justify-center rounded-xs hover:bg-accent focus-visible:outline-2 focus-visible:outline-ring",children:(0,t.jsx)(r.X,{"aria-hidden":!0})})]},e)),n.length+f.length>=c?null:(0,t.jsx)(x,{groups:i,picked:n,isDisabled:m,onAdd:u})]}),0===f.length?null:(0,t.jsxs)("p",{role:"alert","data-testid":"machine-labels-unknown-note",className:"text-meta text-tone-attention-fg",children:["Not in this fleet: ",f.join(", "),". Forming refuses ",1===f.length?"it":"them",": define ",1===f.length?"it":"them"," on the Labels page, or remove ",1===f.length?"it":"them"," here."]}),0===n.length?null:0===l.matching.length?(0,t.jsxs)("p",{role:"status","data-testid":"machine-labels-match",className:"flex items-start gap-2 rounded-lg border border-tone-waiting-border bg-tone-waiting-bg px-3 py-2 text-meta text-tone-waiting-fg [&_svg]:mt-0.5 [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",children:[(0,t.jsx)(a.Clock,{"aria-hidden":!0}),(0,t.jsxs)("span",{children:["No machine matches ",g.these,". You can still request: it waits on Needs crew until a machine ",g.carries,"."]})]}):(0,t.jsxs)("p",{className:"text-meta","data-testid":"machine-labels-match",children:["Matches ",l.matching.length," of ",l.total," ",1===l.total?"machine":"machines",": ",l.matching.join(", "),"."]}),(0,t.jsxs)("p",{className:"text-meta text-muted-foreground",children:["The plugin places ",e," only on a machine that carries every label here. Leave it empty for any machine."]})]})}])},792963,e=>{"use strict";var t=e.i(843476),s=e.i(810818),a=e.i(825398),n=e.i(271645),r=e.i(696994),i=e.i(784294),o=e.i(574296),l=e.i(330475),d=e.i(746675),c=e.i(791727),m=e.i(946033),h=e.i(414732),u=e.i(817981),x=e.i(716327),p=e.i(867927),f=e.i(285595),b=e.i(152886),g=e.i(965324),j=e.i(866616),v=e.i(212470),k=e.i(443988),y=e.i(404032);function w({id:e,label:s,isRequired:a,hint:n,children:r}){return(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsxs)(c.Label,{htmlFor:e,children:[s,(0,t.jsx)("span",{className:"font-normal text-muted-foreground",children:a?" required":" optional"})]}),r,void 0===n?null:(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:n})]})}function N({id:e,items:s,value:a,onPick:n,isDisabled:r,testId:i}){return(0,t.jsxs)(m.Select,{items:s,value:a,disabled:r,onValueChange:e=>{n("string"==typeof e?e:"")},children:[(0,t.jsx)(m.SelectTrigger,{id:e,"data-testid":i,children:(0,t.jsx)(m.SelectValue,{})}),(0,t.jsx)(m.SelectContent,{children:Object.entries(s).map(([e,s])=>(0,t.jsx)(m.SelectItem,{value:e,children:s},e))})]})}function C(e){return"string"==typeof e?e:JSON.stringify(e)}function S({member:e,offers:s,workspaces:a,machineLabels:i,isOpen:o,onOpenChange:l,isDisabled:d,error:c,onChange:m}){let h={workspace:(0,n.useId)(),harness:(0,n.useId)(),options:(0,n.useId)(),firstPrompt:(0,n.useId)(),parameters:(0,n.useId)()},T=(0,r.missingOf)(e),q=s.find(t=>t.harness===e.harness),F={"":"The trierarch’s default",...Object.fromEntries(s.map(e=>[e.harness,(0,j.harnessWord)(e.harness)])),...""===e.harness||q?{}:{[e.harness]:(0,j.harnessWord)(e.harness)}},D=new Set((q?.options??[]).map(e=>e.name)),I=Object.entries(e.options).filter(([e])=>!D.has(e)),O=o?x.ChevronDown:p.ChevronRight;return(0,t.jsxs)("section",{"aria-label":e.slot,"data-testid":"member-crew-section",className:(0,g.classNames)("flex flex-col rounded-lg border bg-card",void 0===c?"border-border":"border-tone-attention-border"),children:[(0,t.jsxs)("button",{type:"button","aria-expanded":o,"data-testid":"member-crew-toggle",className:"flex min-h-11 items-center gap-2.5 px-3.5 py-2 text-left focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",onClick:()=>{l(!o)},children:[(0,t.jsx)(O,{"aria-hidden":!0,className:"text-muted-foreground"}),(0,t.jsx)("span",{className:"font-mono text-body font-medium",children:e.slot}),(0,t.jsx)("span",{className:"font-mono text-meta text-muted-foreground",children:e.template}),(0,t.jsx)("span",{className:"flex-1"}),0===T.length?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 text-meta text-tone-ok-fg","data-testid":"member-crew-ready",children:[(0,t.jsx)(f.CircleCheck,{"aria-hidden":!0}),"Ready"]}):(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 text-meta text-tone-waiting-fg","data-testid":"member-crew-missing",children:[(0,t.jsx)(b.CircleDashed,{"aria-hidden":!0}),"Needs ",T.join(", ")]})]}),void 0===c?null:(0,t.jsx)("div",{className:"px-3.5 pb-3",children:(0,t.jsx)(u.InlineError,{variant:"field",title:c})}),o?(0,t.jsxs)("div",{className:"flex flex-col gap-4 border-t border-border px-3.5 py-3.5",children:[(0,t.jsx)(w,{id:h.workspace,label:"Workspace",isRequired:!0,hint:"A repository gets a new git worktree for this ship; a folder is used as it is.",children:(0,t.jsx)(N,{id:h.workspace,items:a,value:void 0===e.workspace?"":(0,r.workspaceItemOf)(e.workspace),isDisabled:d,testId:"member-crew-workspace",onPick:t=>{m({...e,workspace:(0,r.workspaceFromItem)(t)})}})}),(0,t.jsx)(w,{id:h.harness,label:"Harness",children:(0,t.jsx)(N,{id:h.harness,items:F,value:e.harness,isDisabled:d,testId:"member-crew-harness",onPick:t=>{m({...e,harness:t})}})}),(q?.options??[]).map((s,a)=>(0,t.jsx)(w,{id:`${h.options}-${String(a)}`,label:s.name,children:(0,t.jsx)(N,{id:`${h.options}-${String(a)}`,items:{"":"The trierarch’s default",...Object.fromEntries(s.values.map(e=>[e,e===s.defaultValue?`${e} (default)`:e])),..."string"==typeof e.options[s.name]&&!s.values.includes(C(e.options[s.name]))?{[C(e.options[s.name])]:C(e.options[s.name])}:{}},value:void 0===e.options[s.name]?"":C(e.options[s.name]),isDisabled:d,testId:"member-crew-option",onPick:t=>{let a=Object.fromEntries(Object.entries(e.options).filter(([e])=>e!==s.name));m({...e,options:""===t?a:{...a,[s.name]:t}})}})},s.name)),0===I.length?null:(0,t.jsxs)("div",{className:"flex flex-col gap-1","data-testid":"member-crew-file-options",children:[(0,t.jsx)("span",{className:"text-body font-medium",children:"From its files"}),(0,t.jsx)("ul",{className:"flex flex-wrap gap-1.5",children:I.map(([e,s])=>(0,t.jsxs)("li",{className:"rounded-sm bg-secondary px-1.5 py-0.5 font-mono text-id",children:[e,"=",C(s)]},e))})]}),void 0===i?null:(0,t.jsx)(y.MachineLabelsField,{shipName:e.slot,picked:i.chipsOf(e.machineLabels),groups:i.groups,match:i.matchOf(e.machineLabels),max:i.max,isDisabled:d,unknown:e.unknownLabels,onAdd:t=>{m({...e,machineLabels:[...e.machineLabels,t]})},onRemove:t=>{m({...e,machineLabels:e.machineLabels.filter(e=>e!==t)})},onRemoveUnknown:t=>{m({...e,unknownLabels:e.unknownLabels.filter(e=>e!==t)})}}),(0,t.jsx)(w,{id:h.firstPrompt,label:"First prompt",hint:"The session starts with it, on its first start only.",children:(0,t.jsx)(k.Textarea,{id:h.firstPrompt,value:e.firstPrompt,disabled:d,"data-testid":"member-crew-first-prompt",rows:2,onChange:t=>{m({...e,firstPrompt:t.target.value})}})}),e.parameters.map((s,a)=>(0,t.jsx)(w,{id:`${h.parameters}-${String(a)}`,label:s.name,isRequired:!0,hint:s.description,children:(0,t.jsx)(v.Input,{id:`${h.parameters}-${String(a)}`,value:s.value,disabled:d,"aria-invalid":""===s.value.trim()||void 0,"data-testid":"member-crew-parameter",onChange:t=>{m({...e,parameters:e.parameters.map(e=>e.name===s.name?{...e,value:t.target.value}:e)})}})},s.name))]}):null]})}function T({drafts:e,crew:s,isPending:a,error:i,onBack:d,onSubmit:h}){let x=(0,n.useId)(),[p,f]=(0,n.useState)(()=>(0,r.membersOf)(e,s.context)),[b,g]=(0,n.useState)(()=>new Set((0,r.membersOf)(e,s.context).filter(e=>(0,r.missingOf)(e).length>0).map(e=>e.slot))),j=(0,r.workspaceItemsOf)(s.offers,p),{ready:v,total:k}=(0,r.readyCount)(p),y=v===k,w=void 0===i?void 0:(0,r.labelErrorSlot)(i,{members:p,context:s.context}),N=p.some(e=>void 0===e.workspace);return(0,t.jsxs)(t.Fragment,{children:[0===s.offers.length?(0,t.jsx)("p",{role:"status",className:"rounded-md border border-tone-waiting-border bg-tone-waiting-bg px-3 py-2 text-meta text-tone-waiting-fg",children:"No machine answers with what it offers yet, so there is no workspace to pick. Join a machine under Trierarchs, or wait for its trierarch to report."}):null,N&&Object.keys(j).length>0?(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)(c.Label,{htmlFor:x,children:"Workspace for every member without one"}),(0,t.jsxs)(m.Select,{items:{"":"Pick a workspace",...j},value:"",disabled:a,onValueChange:e=>{let t="string"==typeof e?(0,r.workspaceFromItem)(e):void 0;void 0!==t&&f(e=>(0,r.withWorkspaceForAll)(e,t))},children:[(0,t.jsx)(m.SelectTrigger,{id:x,"data-testid":"form-squadron-workspace-all",children:(0,t.jsx)(m.SelectValue,{})}),(0,t.jsx)(m.SelectContent,{children:Object.entries(j).map(([e,s])=>(0,t.jsx)(m.SelectItem,{value:e,children:s},e))})]})]}):null,(0,t.jsx)("div",{className:"-mx-1 flex max-h-[55vh] flex-col gap-2 overflow-y-auto px-1 max-sm:max-h-none max-sm:flex-1","data-testid":"form-squadron-members",children:p.map(e=>(0,t.jsx)(S,{member:e,offers:s.offers,workspaces:j,...void 0===s.machineLabels?{}:{machineLabels:s.machineLabels},isOpen:b.has(e.slot)||w===e.slot,onOpenChange:t=>{g(s=>{let a=new Set(s);return t?a.add(e.slot):a.delete(e.slot),a})},isDisabled:a,...w===e.slot&&void 0!==i?{error:i}:{},onChange:e=>{f(t=>t.map(t=>t.slot===e.slot?e:t))}},e.slot))}),void 0!==i&&void 0===w?(0,t.jsx)(u.InlineError,{variant:"field",title:"Couldn’t form the squadron",description:i}):null,(0,t.jsxs)(l.DialogFooter,{className:"items-center border-t border-border pt-3",children:[(0,t.jsxs)("span",{className:"mr-auto text-meta tabular-nums","data-testid":"form-squadron-ready","aria-live":"polite",children:[v," of ",k," ",1===k?"member":"members"," ready"]}),(0,t.jsx)(o.Button,{type:"button",disabled:a,onClick:d,children:"Back"}),(0,t.jsx)(o.Button,{variant:"primary",isLoading:a,disabled:!y,"data-testid":"form-squadron-submit",onClick:()=>{h(p)},children:a?"Forming":"Form squadron"})]})]})}function q({blueprints:e,templates:r,isPending:d,error:x,onSubmit:p,initial:f,crew:b,onPicked:g}){let[j,v]=(0,n.useState)(1),[k,y]=(0,n.useState)(f?.key??e[0]?.key),w=e.find(e=>e.key===k)??e[0],[N,C]=(0,n.useState)(f?.version??w?.versions[0]?.version),S=w?.versions.find(e=>e.version===N)??w?.versions[0];if(!w||!S)return null;if(1===j){let s=Object.fromEntries(w.versions.map((e,t)=>[String(e.version),`v${String(e.version)}${0===t?" (latest)":""}`]));return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(l.DialogHeader,{children:[(0,t.jsx)(l.DialogTitle,{children:"Form a squadron"}),(0,t.jsx)(l.DialogDescription,{children:"Step 1 of 2. Pick a blueprint and the version to form it from."})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("span",{className:"text-meta font-medium",children:"Blueprint"}),(0,t.jsx)("div",{role:"radiogroup","aria-label":"Blueprint",className:"flex flex-col gap-2",children:e.map(e=>{let s=e.versions[0],a=e.key===w.key;return(0,t.jsxs)("button",{type:"button",role:"radio","aria-checked":a,"data-testid":"form-squadron-blueprint",onClick:()=>{y(e.key),C(e.versions[0]?.version)},className:"flex flex-col items-start gap-0.5 rounded-md border border-border px-3 py-2 text-left aria-checked:border-primary aria-checked:ring-1 aria-checked:ring-primary",children:[(0,t.jsxs)("span",{className:"text-body font-medium",children:[e.name," ",(0,t.jsxs)("span",{className:"font-mono text-meta text-muted-foreground",children:["v",s?.version,", latest"]})]}),(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:s?.description})]},e.key)})})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)(c.Label,{htmlFor:"form-squadron-version",children:"Version"}),(0,t.jsxs)(m.Select,{items:s,value:String(S.version),onValueChange:e=>{C(Number(e))},children:[(0,t.jsx)(m.SelectTrigger,{id:"form-squadron-version","aria-label":"Version",children:(0,t.jsx)(m.SelectValue,{})}),(0,t.jsx)(m.SelectContent,{children:Object.entries(s).map(([e,s])=>(0,t.jsx)(m.SelectItem,{value:e,children:s},e))})]}),(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:"Older versions stay available. Squadrons keep the version they were formed with."})]}),(0,t.jsxs)(l.DialogFooter,{children:[(0,t.jsx)(l.DialogClose,{render:(0,t.jsx)(o.Button,{type:"button"}),children:"Cancel"}),(0,t.jsx)(o.Button,{variant:"primary","data-testid":"form-squadron-preview",onClick:()=>{g?.({repository:S.repository,name:S.name,version:S.version}),v(2)},children:void 0===b?"Preview roles":"Next: the members"})]})]})}let F={repository:S.repository,name:S.name,version:S.version};if(void 0!==b)return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(l.DialogHeader,{children:[(0,t.jsxs)(l.DialogTitle,{children:["Form a squadron from ",S.name," v",S.version]}),(0,t.jsxs)(l.DialogDescription,{children:["Step 2 of 2. Each member, prefilled from its template and the blueprint. A workspace and every parameter are needed; the rest is optional. Forming commissions ",(0,i.memberCount)(S)," member ships and a flagship, and requests a crew for each member."]})]}),"ready"===b.state?(0,t.jsx)(T,{drafts:b.members,crew:b,isPending:d,...void 0===x?{}:{error:x},onBack:()=>{v(1)},onSubmit:e=>{p(F,e)}}):(0,t.jsxs)(t.Fragment,{children:["loading"===b.state?(0,t.jsx)("p",{className:"text-meta text-muted-foreground","data-testid":"form-squadron-members-loading",children:"Reading each member’s crew settings from its files."}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.InlineError,{variant:"field",title:"Couldn’t read the members’ crew settings",description:b.error??"Try again in a moment."}),(0,t.jsx)("div",{children:(0,t.jsx)(o.Button,{size:"sm",icon:(0,t.jsx)(a.RotateCw,{}),onClick:b.onRetry,children:"Try again"})})]}),(0,t.jsxs)(l.DialogFooter,{children:[(0,t.jsx)(o.Button,{type:"button",onClick:()=>{v(1)},children:"Back"}),(0,t.jsx)(o.Button,{variant:"primary",disabled:!0,"data-testid":"form-squadron-submit",children:"Form squadron"})]})]})]});let D=(0,i.rolePreviews)(S,r);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(l.DialogHeader,{children:[(0,t.jsxs)(l.DialogTitle,{children:["Form a squadron from ",S.name," v",S.version]}),(0,t.jsxs)(l.DialogDescription,{children:["Step 2 of 2. ",(0,i.memberCount)(S)," member ships and a flagship are commissioned when you confirm."]})]}),(0,t.jsxs)(h.Table,{children:[(0,t.jsx)(h.TableHeader,{children:(0,t.jsxs)(h.TableRow,{children:[(0,t.jsx)(h.TableHead,{children:"Role"}),(0,t.jsx)(h.TableHead,{children:"Template"}),(0,t.jsx)(h.TableHead,{children:"Members"}),(0,t.jsx)(h.TableHead,{children:"Check-in"})]})}),(0,t.jsx)(h.TableBody,{children:D.map(e=>(0,t.jsxs)(h.TableRow,{children:[(0,t.jsx)(h.TableCell,{className:"font-mono",children:e.role}),(0,t.jsx)(h.TableCell,{className:"font-mono",children:e.template}),(0,t.jsx)(h.TableCell,{children:e.count}),(0,t.jsx)(h.TableCell,{children:void 0===e.checkInMinutes?"unknown":(0,i.checkInText)(e.checkInMinutes)})]},e.role))})]}),(0,t.jsxs)("p",{className:"flex items-start gap-2 rounded-md bg-muted px-3 py-2 text-meta text-muted-foreground",children:[(0,t.jsx)(s.Info,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon-sm) shrink-0"}),(0,t.jsxs)("span",{children:["The flagship is named as the squadron, ",(0,t.jsxs)("span",{className:"font-mono",children:[S.name,"-"]})," plus six random characters: the squadron's address. Members are named by role."]})]}),(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:"Next you get crew lines and a launch note per member. You start each session by hand; the squadron sails once every member is on station."}),void 0!==x&&(0,t.jsx)(u.InlineError,{variant:"field",title:"Couldn’t form the squadron",description:x}),(0,t.jsxs)(l.DialogFooter,{children:[(0,t.jsx)(o.Button,{type:"button",disabled:d,onClick:()=>{v(1)},children:"Back"}),(0,t.jsx)(o.Button,{variant:"primary",isLoading:d,"data-testid":"form-squadron-submit",onClick:()=>{p(F)},children:d?"Forming":"Form squadron"})]})]})}e.s(["FormSquadronDialog",0,function(e){let{isOpen:s,onOpenChange:a,isPending:n}=e;return(0,t.jsx)(l.Dialog,{open:s,onOpenChange:e=>{n||a(e)},children:(0,t.jsx)(l.DialogContent,{size:"md","data-testid":"form-squadron-dialog",className:d.dialogSurface.phoneFullScreen,children:(0,t.jsx)(q,{...e})})})}],792963)},866616,e=>{"use strict";var t=e.i(849635);let s={"claude-code":{word:"Claude Code",kind:"coding"},codex:{word:"Codex",kind:"coding"},"claude-chat":{word:"Claude chat",kind:"chat"},chatgpt:{word:"ChatGPT",kind:"chat"},grok:{word:"Grok",kind:"chat"},grokbot:{word:"Grokbot",kind:"bot"},console:{word:"Console",kind:"console"}};function a(e){return s[e]?.word??e}e.s(["crewLineHarnessWord",0,function(e){return"chat"===e?"Chat":a(e)},"harnessDetection",0,function(e,s){if(void 0===e.version)return;if(void 0===e.modelsConfirmedAt||null===e.modelsConfirmedAt)return`${e.version} \xb7 no model confirmed`;let a=(0,t.relativeTime)(new Date(e.modelsConfirmedAt),s);return`${e.version} \xb7 models confirmed ${"Just now"===a?"just now":a}`},"harnessKind",0,function(e){return s[e]?.kind},"harnessWord",0,a])}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,792150,e=>{"use strict";var t=e.i(456420);let s={name:"boxes",size:24,node:[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]};s.node;let a=(0,t.default)(s);e.s(["Boxes",0,a],792150)},443988,e=>{"use strict";var t=e.i(843476),s=e.i(225913),a=e.i(965324);let n=(0,s.cva)("w-full min-w-0 resize-none rounded-md border border-input bg-card px-3 py-2 text-foreground shadow-sm transition-[border-color,box-shadow] duration-(--duration-fast) outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/22 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/16 disabled:cursor-not-allowed disabled:bg-muted disabled:opacity-50 disabled:shadow-none",{variants:{size:{md:"text-body",touch:"rounded-lg text-input-touch"},isMono:{true:"font-mono",false:""}},compoundVariants:[{size:"md",isMono:!0,className:"text-code"}],defaultVariants:{size:"md",isMono:!1}});e.s(["Textarea",0,function({className:e,size:s,isMono:r,rows:i=4,...o}){return(0,t.jsx)("textarea",{"data-slot":"textarea",rows:i,className:(0,a.classNames)(n({size:s,isMono:r}),e),...o})}])},695960,e=>{"use strict";var t=e.i(843476),s=e.i(792150),a=e.i(749287),n=e.i(586875),r=e.i(456420);let i={name:"tag-x",size:24,node:[["path",{d:"m16.5 6.5-3.914-3.914A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.43 2.43 0 0 0 3.42 0l1.79-1.79",key:"hu94c9"}],["path",{d:"m16.5 10.5 5 5",key:"1jo8bf"}],["path",{d:"m21.5 10.5-5 5",key:"jzei60"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]};i.node;let o=(0,r.default)(i);var l=e.i(263676),d=e.i(965324),c=e.i(280581);let m={"trierarch-plugin":n.ShipWheel,squadrons:s.Boxes,ship:a.Ship,gone:o};e.s(["LabelChip",0,function({chip:e,onRemove:s,testId:a,className:n,trailing:r,meaning:i}){let o="none"===e.mark?null:m[e.mark],h=`${e.key}=${e.value}`,u=void 0===i?(0,c.chipTitleOf)(e):`${(0,c.chipTitleOf)(e)}. ${i}`;return(0,t.jsxs)("span",{role:"group","aria-label":u,"data-slot":"label-chip","data-testid":a,title:u,className:(0,d.classNames)("inline-flex h-5.5 max-w-full min-w-0 shrink-0 items-center gap-1 rounded-sm border border-border bg-secondary px-1.5 font-mono text-id whitespace-nowrap text-foreground [&_svg]:size-3 [&_svg]:shrink-0 [&_svg]:text-muted-foreground","gone"===e.mark?"border-dashed":null,n),children:[null===o?null:(0,t.jsx)(o,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"truncate",children:[(0,t.jsxs)("span",{className:"text-muted-foreground",children:[e.key,"="]}),(0,t.jsx)("span",{className:"font-medium",children:e.value})]}),r,void 0===s?null:(0,t.jsx)("button",{type:"button","aria-label":`Remove ${h}`,onClick:s,className:"-mr-1 ml-0.5 inline-flex size-4 items-center justify-center rounded-xs text-muted-foreground hover:bg-accent hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring",children:(0,t.jsx)(l.X,{"aria-hidden":!0})})]})}],695960)},867858,e=>{e.v(t=>Promise.all(["static/chunks/3gg4swg14czsn.js","static/chunks/1k-ba5pqi2r-w.js"].map(t=>e.l(t))).then(()=>t(259068)))},404032,e=>{"use strict";var t=e.i(843476),s=e.i(422768),a=e.i(474544),n=e.i(77071),r=e.i(263676),i=e.i(522016),o=e.i(271645),l=e.i(770703),d=e.i(878608),c=e.i(574296),m=e.i(406734),h=e.i(695960);let u=(0,l.default)(()=>e.A(867858).then(e=>e.LabelPicker),{loadableGenerated:{modules:[259068]},ssr:!1});function x({groups:e,picked:s,isDisabled:a,onAdd:r}){let[l,d]=(0,o.useState)(!1);return(0,t.jsxs)(m.Popover,{open:l,onOpenChange:d,children:[(0,t.jsx)(m.PopoverTrigger,{render:(0,t.jsx)(c.Button,{type:"button",variant:"ghost",size:"xs",icon:(0,t.jsx)(n.Plus,{}),disabled:a,"data-testid":"machine-labels-add"}),children:"Add label"}),(0,t.jsxs)(m.PopoverContent,{align:"start",sideOffset:6,className:"w-80 p-2","data-testid":"machine-labels-popover",children:[(0,t.jsx)("span",{className:"block px-2 pt-1 pb-2 text-body font-medium",children:"Machine label"}),(0,t.jsx)(u,{groups:e,pickedValueIds:s.map(e=>e.valueId),countWord:"machine",onPick:e=>{d(!1),r(e)}}),(0,t.jsxs)("p",{className:"mt-2 flex items-center justify-between gap-2 border-t border-border px-2 pt-2 text-meta text-muted-foreground",children:["Exact matches, all must hold.",(0,t.jsx)(i.default,{href:"/labels",className:"font-medium text-foreground hover:underline",children:"Manage labels"})]})]})]})}e.s(["MachineLabelsField",0,function({shipName:e,picked:n,groups:i,match:l,max:c,isDisabled:m,onAdd:u,onRemove:p,unknown:f=[],onRemoveUnknown:b}){let g=(0,d.noMatchWords)(n.length);return(0,t.jsxs)("div",{className:"flex flex-col gap-1.5","data-testid":"machine-labels",children:[(0,t.jsxs)("span",{className:"text-body font-medium",children:["Machine labels",(0,t.jsx)("span",{className:"font-normal text-muted-foreground",children:" optional"})]}),(0,t.jsxs)("div",{className:"flex min-h-(--size-control-sm) flex-wrap items-center gap-1.5",children:[0===n.length?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"Any machine"}):null,n.map((e,s)=>(0,t.jsxs)(o.Fragment,{children:[0===s?null:(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"and"}),(0,t.jsx)(h.LabelChip,{chip:e,testId:"machine-label",...m?{}:{onRemove:()=>{p(e.valueId)}}})]},e.valueId)),f.map(e=>(0,t.jsxs)("span",{"data-testid":"machine-label-unknown",title:`${e}: not in this fleet`,className:"inline-flex h-5.5 items-center gap-1 rounded-sm border border-tone-attention-border bg-tone-attention-bg px-1.5 font-mono text-id text-tone-attention-fg [&_svg]:size-3",children:[(0,t.jsx)(s.CircleAlert,{"aria-hidden":!0}),e,void 0===b||m?null:(0,t.jsx)("button",{type:"button","aria-label":`Remove ${e}`,onClick:()=>{b(e)},className:"-mr-1 ml-0.5 inline-flex size-4 items-center justify-center rounded-xs hover:bg-accent focus-visible:outline-2 focus-visible:outline-ring",children:(0,t.jsx)(r.X,{"aria-hidden":!0})})]},e)),n.length+f.length>=c?null:(0,t.jsx)(x,{groups:i,picked:n,isDisabled:m,onAdd:u})]}),0===f.length?null:(0,t.jsxs)("p",{role:"alert","data-testid":"machine-labels-unknown-note",className:"text-meta text-tone-attention-fg",children:["Not in this fleet: ",f.join(", "),". Forming refuses ",1===f.length?"it":"them",": define ",1===f.length?"it":"them"," on the Labels page, or remove ",1===f.length?"it":"them"," here."]}),0===n.length?null:0===l.matching.length?(0,t.jsxs)("p",{role:"status","data-testid":"machine-labels-match",className:"flex items-start gap-2 rounded-lg border border-tone-waiting-border bg-tone-waiting-bg px-3 py-2 text-meta text-tone-waiting-fg [&_svg]:mt-0.5 [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",children:[(0,t.jsx)(a.Clock,{"aria-hidden":!0}),(0,t.jsxs)("span",{children:["No machine matches ",g.these,". You can still request: it waits on Needs crew until a machine ",g.carries,"."]})]}):(0,t.jsxs)("p",{className:"text-meta","data-testid":"machine-labels-match",children:["Matches ",l.matching.length," of ",l.total," ",1===l.total?"machine":"machines",": ",l.matching.join(", "),"."]}),(0,t.jsxs)("p",{className:"text-meta text-muted-foreground",children:["The plugin places ",e," only on a machine that carries every label here. Leave it empty for any machine."]})]})}])},628136,e=>{"use strict";var t=e.i(843476),s=e.i(810818),a=e.i(825398),n=e.i(271645),r=e.i(696994),i=e.i(784294),o=e.i(574296),l=e.i(330475),d=e.i(746675),c=e.i(791727),m=e.i(946033),h=e.i(414732),u=e.i(817981),x=e.i(716327),p=e.i(867927),f=e.i(285595),b=e.i(152886),g=e.i(965324),j=e.i(866616),v=e.i(212470),k=e.i(443988),w=e.i(404032);function y({id:e,label:s,isRequired:a,hint:n,children:r}){return(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsxs)(c.Label,{htmlFor:e,children:[s,(0,t.jsx)("span",{className:"font-normal text-muted-foreground",children:a?" required":" optional"})]}),r,void 0===n?null:(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:n})]})}function N({id:e,items:s,value:a,onPick:n,isDisabled:r,testId:i}){return(0,t.jsxs)(m.Select,{items:s,value:a,disabled:r,onValueChange:e=>{n("string"==typeof e?e:"")},children:[(0,t.jsx)(m.SelectTrigger,{id:e,"data-testid":i,children:(0,t.jsx)(m.SelectValue,{})}),(0,t.jsx)(m.SelectContent,{children:Object.entries(s).map(([e,s])=>(0,t.jsx)(m.SelectItem,{value:e,children:s},e))})]})}function C(e){return"string"==typeof e?e:JSON.stringify(e)}function S({member:e,offers:s,workspaces:a,machineLabels:i,isOpen:o,onOpenChange:l,isDisabled:d,error:c,onChange:m}){let h={workspace:(0,n.useId)(),harness:(0,n.useId)(),options:(0,n.useId)(),firstPrompt:(0,n.useId)(),parameters:(0,n.useId)()},T=(0,r.missingOf)(e),q=s.find(t=>t.harness===e.harness),F={"":"The trierarch’s default",...Object.fromEntries(s.map(e=>[e.harness,(0,j.harnessWord)(e.harness)])),...""===e.harness||q?{}:{[e.harness]:(0,j.harnessWord)(e.harness)}},D=new Set((q?.options??[]).map(e=>e.name)),I=Object.entries(e.options).filter(([e])=>!D.has(e)),O=o?x.ChevronDown:p.ChevronRight;return(0,t.jsxs)("section",{"aria-label":e.slot,"data-testid":"member-crew-section",className:(0,g.classNames)("flex flex-col rounded-lg border bg-card",void 0===c?"border-border":"border-tone-attention-border"),children:[(0,t.jsxs)("button",{type:"button","aria-expanded":o,"data-testid":"member-crew-toggle",className:"flex min-h-11 items-center gap-2.5 px-3.5 py-2 text-left focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",onClick:()=>{l(!o)},children:[(0,t.jsx)(O,{"aria-hidden":!0,className:"text-muted-foreground"}),(0,t.jsx)("span",{className:"font-mono text-body font-medium",children:e.slot}),(0,t.jsx)("span",{className:"font-mono text-meta text-muted-foreground",children:e.template}),(0,t.jsx)("span",{className:"flex-1"}),0===T.length?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 text-meta text-tone-ok-fg","data-testid":"member-crew-ready",children:[(0,t.jsx)(f.CircleCheck,{"aria-hidden":!0}),"Ready"]}):(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 text-meta text-tone-waiting-fg","data-testid":"member-crew-missing",children:[(0,t.jsx)(b.CircleDashed,{"aria-hidden":!0}),"Needs ",T.join(", ")]})]}),void 0===c?null:(0,t.jsx)("div",{className:"px-3.5 pb-3",children:(0,t.jsx)(u.InlineError,{variant:"field",title:c})}),o?(0,t.jsxs)("div",{className:"flex flex-col gap-4 border-t border-border px-3.5 py-3.5",children:[(0,t.jsx)(y,{id:h.workspace,label:"Workspace",isRequired:!0,hint:"A repository gets a new git worktree for this ship; a folder is used as it is.",children:(0,t.jsx)(N,{id:h.workspace,items:a,value:void 0===e.workspace?"":(0,r.workspaceItemOf)(e.workspace),isDisabled:d,testId:"member-crew-workspace",onPick:t=>{m({...e,workspace:(0,r.workspaceFromItem)(t)})}})}),(0,t.jsx)(y,{id:h.harness,label:"Harness",children:(0,t.jsx)(N,{id:h.harness,items:F,value:e.harness,isDisabled:d,testId:"member-crew-harness",onPick:t=>{m({...e,harness:t})}})}),(q?.options??[]).map((s,a)=>(0,t.jsx)(y,{id:`${h.options}-${String(a)}`,label:s.name,children:(0,t.jsx)(N,{id:`${h.options}-${String(a)}`,items:{"":"The trierarch’s default",...Object.fromEntries(s.values.map(e=>[e,e===s.defaultValue?`${e} (default)`:e])),..."string"==typeof e.options[s.name]&&!s.values.includes(C(e.options[s.name]))?{[C(e.options[s.name])]:C(e.options[s.name])}:{}},value:void 0===e.options[s.name]?"":C(e.options[s.name]),isDisabled:d,testId:"member-crew-option",onPick:t=>{let a=Object.fromEntries(Object.entries(e.options).filter(([e])=>e!==s.name));m({...e,options:""===t?a:{...a,[s.name]:t}})}})},s.name)),0===I.length?null:(0,t.jsxs)("div",{className:"flex flex-col gap-1","data-testid":"member-crew-file-options",children:[(0,t.jsx)("span",{className:"text-body font-medium",children:"From its files"}),(0,t.jsx)("ul",{className:"flex flex-wrap gap-1.5",children:I.map(([e,s])=>(0,t.jsxs)("li",{className:"rounded-sm bg-secondary px-1.5 py-0.5 font-mono text-id",children:[e,"=",C(s)]},e))})]}),void 0===i?null:(0,t.jsx)(w.MachineLabelsField,{shipName:e.slot,picked:i.chipsOf(e.machineLabels),groups:i.groups,match:i.matchOf(e.machineLabels),max:i.max,isDisabled:d,unknown:e.unknownLabels,onAdd:t=>{m({...e,machineLabels:[...e.machineLabels,t]})},onRemove:t=>{m({...e,machineLabels:e.machineLabels.filter(e=>e!==t)})},onRemoveUnknown:t=>{m({...e,unknownLabels:e.unknownLabels.filter(e=>e!==t)})}}),(0,t.jsx)(y,{id:h.firstPrompt,label:"First prompt",hint:"The session starts with it, on its first start only.",children:(0,t.jsx)(k.Textarea,{id:h.firstPrompt,value:e.firstPrompt,disabled:d,"data-testid":"member-crew-first-prompt",rows:2,onChange:t=>{m({...e,firstPrompt:t.target.value})}})}),e.parameters.map((s,a)=>(0,t.jsx)(y,{id:`${h.parameters}-${String(a)}`,label:s.name,isRequired:!0,hint:s.description,children:(0,t.jsx)(v.Input,{id:`${h.parameters}-${String(a)}`,value:s.value,disabled:d,"aria-invalid":""===s.value.trim()||void 0,"data-testid":"member-crew-parameter",onChange:t=>{m({...e,parameters:e.parameters.map(e=>e.name===s.name?{...e,value:t.target.value}:e)})}})},s.name))]}):null]})}function T({drafts:e,crew:s,isPending:a,error:i,onBack:d,onSubmit:h}){let x=(0,n.useId)(),[p,f]=(0,n.useState)(()=>(0,r.membersOf)(e,s.context)),[b,g]=(0,n.useState)(()=>new Set((0,r.membersOf)(e,s.context).filter(e=>(0,r.missingOf)(e).length>0).map(e=>e.slot))),j=(0,r.workspaceItemsOf)(s.offers,p),{ready:v,total:k}=(0,r.readyCount)(p),w=v===k,y=void 0===i?void 0:(0,r.labelErrorSlot)(i,{members:p,context:s.context}),N=p.some(e=>void 0===e.workspace);return(0,t.jsxs)(t.Fragment,{children:[0===s.offers.length?(0,t.jsx)("p",{role:"status",className:"rounded-md border border-tone-waiting-border bg-tone-waiting-bg px-3 py-2 text-meta text-tone-waiting-fg",children:"No machine answers with what it offers yet, so there is no workspace to pick. Join a machine under Trierarchs, or wait for its trierarch to report."}):null,N&&Object.keys(j).length>0?(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)(c.Label,{htmlFor:x,children:"Workspace for every member without one"}),(0,t.jsxs)(m.Select,{items:{"":"Pick a workspace",...j},value:"",disabled:a,onValueChange:e=>{let t="string"==typeof e?(0,r.workspaceFromItem)(e):void 0;void 0!==t&&f(e=>(0,r.withWorkspaceForAll)(e,t))},children:[(0,t.jsx)(m.SelectTrigger,{id:x,"data-testid":"form-squadron-workspace-all",children:(0,t.jsx)(m.SelectValue,{})}),(0,t.jsx)(m.SelectContent,{children:Object.entries(j).map(([e,s])=>(0,t.jsx)(m.SelectItem,{value:e,children:s},e))})]})]}):null,(0,t.jsx)("div",{className:"-mx-1 flex max-h-[55vh] flex-col gap-2 overflow-y-auto px-1 max-sm:max-h-none max-sm:flex-1","data-testid":"form-squadron-members",children:p.map(e=>(0,t.jsx)(S,{member:e,offers:s.offers,workspaces:j,...void 0===s.machineLabels?{}:{machineLabels:s.machineLabels},isOpen:b.has(e.slot)||y===e.slot,onOpenChange:t=>{g(s=>{let a=new Set(s);return t?a.add(e.slot):a.delete(e.slot),a})},isDisabled:a,...y===e.slot&&void 0!==i?{error:i}:{},onChange:e=>{f(t=>t.map(t=>t.slot===e.slot?e:t))}},e.slot))}),void 0!==i&&void 0===y?(0,t.jsx)(u.InlineError,{variant:"field",title:"Couldn’t form the squadron",description:i}):null,(0,t.jsxs)(l.DialogFooter,{className:"items-center border-t border-border pt-3",children:[(0,t.jsxs)("span",{className:"mr-auto text-meta tabular-nums","data-testid":"form-squadron-ready","aria-live":"polite",children:[v," of ",k," ",1===k?"member":"members"," ready"]}),(0,t.jsx)(o.Button,{type:"button",disabled:a,onClick:d,children:"Back"}),(0,t.jsx)(o.Button,{variant:"primary",isLoading:a,disabled:!w,"data-testid":"form-squadron-submit",onClick:()=>{h(p)},children:a?"Forming":"Form squadron"})]})]})}function q({blueprints:e,templates:r,isPending:d,error:x,onSubmit:p,initial:f,crew:b,onPicked:g}){let[j,v]=(0,n.useState)(1),[k,w]=(0,n.useState)(f?.key??e[0]?.key),y=e.find(e=>e.key===k)??e[0],[N,C]=(0,n.useState)(f?.version??y?.versions[0]?.version),S=y?.versions.find(e=>e.version===N)??y?.versions[0];if(!y||!S)return null;if(1===j){let s=Object.fromEntries(y.versions.map((e,t)=>[String(e.version),`v${String(e.version)}${0===t?" (latest)":""}`]));return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(l.DialogHeader,{children:[(0,t.jsx)(l.DialogTitle,{children:"Form a squadron"}),(0,t.jsx)(l.DialogDescription,{children:"Step 1 of 2. Pick a blueprint and the version to form it from."})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("span",{className:"text-meta font-medium",children:"Blueprint"}),(0,t.jsx)("div",{role:"radiogroup","aria-label":"Blueprint",className:"flex flex-col gap-2",children:e.map(e=>{let s=e.versions[0],a=e.key===y.key;return(0,t.jsxs)("button",{type:"button",role:"radio","aria-checked":a,"data-testid":"form-squadron-blueprint",onClick:()=>{w(e.key),C(e.versions[0]?.version)},className:"flex flex-col items-start gap-0.5 rounded-md border border-border px-3 py-2 text-left aria-checked:border-primary aria-checked:ring-1 aria-checked:ring-primary",children:[(0,t.jsxs)("span",{className:"text-body font-medium",children:[e.name," ",(0,t.jsxs)("span",{className:"font-mono text-meta text-muted-foreground",children:["v",s?.version,", latest"]})]}),(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:s?.description})]},e.key)})})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)(c.Label,{htmlFor:"form-squadron-version",children:"Version"}),(0,t.jsxs)(m.Select,{items:s,value:String(S.version),onValueChange:e=>{C(Number(e))},children:[(0,t.jsx)(m.SelectTrigger,{id:"form-squadron-version","aria-label":"Version",children:(0,t.jsx)(m.SelectValue,{})}),(0,t.jsx)(m.SelectContent,{children:Object.entries(s).map(([e,s])=>(0,t.jsx)(m.SelectItem,{value:e,children:s},e))})]}),(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:"Older versions stay available. Squadrons keep the version they were formed with."})]}),(0,t.jsxs)(l.DialogFooter,{children:[(0,t.jsx)(l.DialogClose,{render:(0,t.jsx)(o.Button,{type:"button"}),children:"Cancel"}),(0,t.jsx)(o.Button,{variant:"primary","data-testid":"form-squadron-preview",onClick:()=>{g?.({repository:S.repository,name:S.name,version:S.version}),v(2)},children:void 0===b?"Preview roles":"Next: the members"})]})]})}let F={repository:S.repository,name:S.name,version:S.version};if(void 0!==b)return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(l.DialogHeader,{children:[(0,t.jsxs)(l.DialogTitle,{children:["Form a squadron from ",S.name," v",S.version]}),(0,t.jsxs)(l.DialogDescription,{children:["Step 2 of 2. Each member, prefilled from its template and the blueprint. A workspace and every parameter are needed; the rest is optional. Forming commissions ",(0,i.memberCount)(S)," member ships and a flagship, and requests a crew for each member."]})]}),"ready"===b.state?(0,t.jsx)(T,{drafts:b.members,crew:b,isPending:d,...void 0===x?{}:{error:x},onBack:()=>{v(1)},onSubmit:e=>{p(F,e)}}):(0,t.jsxs)(t.Fragment,{children:["loading"===b.state?(0,t.jsx)("p",{className:"text-meta text-muted-foreground","data-testid":"form-squadron-members-loading",children:"Reading each member’s crew settings from its files."}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.InlineError,{variant:"field",title:"Couldn’t read the members’ crew settings",description:b.error??"Try again in a moment."}),(0,t.jsx)("div",{children:(0,t.jsx)(o.Button,{size:"sm",icon:(0,t.jsx)(a.RotateCw,{}),onClick:b.onRetry,children:"Try again"})})]}),(0,t.jsxs)(l.DialogFooter,{children:[(0,t.jsx)(o.Button,{type:"button",onClick:()=>{v(1)},children:"Back"}),(0,t.jsx)(o.Button,{variant:"primary",disabled:!0,"data-testid":"form-squadron-submit",children:"Form squadron"})]})]})]});let D=(0,i.rolePreviews)(S,r);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(l.DialogHeader,{children:[(0,t.jsxs)(l.DialogTitle,{children:["Form a squadron from ",S.name," v",S.version]}),(0,t.jsxs)(l.DialogDescription,{children:["Step 2 of 2. ",(0,i.memberCount)(S)," member ships and a flagship are commissioned when you confirm."]})]}),(0,t.jsxs)(h.Table,{children:[(0,t.jsx)(h.TableHeader,{children:(0,t.jsxs)(h.TableRow,{children:[(0,t.jsx)(h.TableHead,{children:"Role"}),(0,t.jsx)(h.TableHead,{children:"Template"}),(0,t.jsx)(h.TableHead,{children:"Members"}),(0,t.jsx)(h.TableHead,{children:"Check-in"})]})}),(0,t.jsx)(h.TableBody,{children:D.map(e=>(0,t.jsxs)(h.TableRow,{children:[(0,t.jsx)(h.TableCell,{className:"font-mono",children:e.role}),(0,t.jsx)(h.TableCell,{className:"font-mono",children:e.template}),(0,t.jsx)(h.TableCell,{children:e.count}),(0,t.jsx)(h.TableCell,{children:void 0===e.checkInMinutes?"unknown":(0,i.checkInText)(e.checkInMinutes)})]},e.role))})]}),(0,t.jsxs)("p",{className:"flex items-start gap-2 rounded-md bg-muted px-3 py-2 text-meta text-muted-foreground",children:[(0,t.jsx)(s.Info,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon-sm) shrink-0"}),(0,t.jsxs)("span",{children:["The flagship is named as the squadron, ",(0,t.jsxs)("span",{className:"font-mono",children:[S.name,"-"]})," plus six random characters: the squadron's address. Members are named by role."]})]}),(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:"Next you get crew lines and a launch note per member. You start each session by hand; the squadron sails once every member is on station."}),void 0!==x&&(0,t.jsx)(u.InlineError,{variant:"field",title:"Couldn’t form the squadron",description:x}),(0,t.jsxs)(l.DialogFooter,{children:[(0,t.jsx)(o.Button,{type:"button",disabled:d,onClick:()=>{v(1)},children:"Back"}),(0,t.jsx)(o.Button,{variant:"primary",isLoading:d,"data-testid":"form-squadron-submit",onClick:()=>{p(F)},children:d?"Forming":"Form squadron"})]})]})}e.s(["FormSquadronDialog",0,function(e){let{isOpen:s,onOpenChange:a,isPending:n}=e;return(0,t.jsx)(l.Dialog,{open:s,onOpenChange:e=>{n||a(e)},children:(0,t.jsx)(l.DialogContent,{size:"md","data-testid":"form-squadron-dialog",className:d.dialogSurface.phoneFullScreen,children:(0,t.jsx)(q,{...e})})})}],628136)},866616,e=>{"use strict";var t=e.i(849635);let s={"claude-code":{word:"Claude Code",kind:"coding"},codex:{word:"Codex",kind:"coding"},"claude-chat":{word:"Claude chat",kind:"chat"},chatgpt:{word:"ChatGPT",kind:"chat"},grok:{word:"Grok",kind:"chat"},grokbot:{word:"Grokbot",kind:"bot"},console:{word:"Console",kind:"console"}};function a(e){return s[e]?.word??e}e.s(["crewLineHarnessWord",0,function(e){return"chat"===e?"Chat":a(e)},"harnessDetection",0,function(e,s){if(void 0===e.version)return;if(void 0===e.modelsConfirmedAt||null===e.modelsConfirmedAt)return`${e.version} \xb7 no model confirmed`;let a=(0,t.relativeTime)(new Date(e.modelsConfirmedAt),s);return`${e.version} \xb7 models confirmed ${"Just now"===a?"just now":a}`},"harnessKind",0,function(e){return s[e]?.kind},"harnessWord",0,a])}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,591703,e=>{"use strict";var t=e.i(843476),s=e.i(383035),i=e.i(965324),r=e.i(861966);e.s(["CodeBlock",0,function({label:e,code:n,isWrapped:o=!1,copyValue:a,copyLabel:l=`Copy ${e.toLowerCase()}`,onCopied:d,onCopyFailed:c,codeTestId:p,copyTestId:u}){return(0,t.jsxs)("div",{"data-slot":"code-block",className:"overflow-hidden rounded-lg border border-border bg-muted",children:[(0,t.jsxs)("div",{className:"flex h-9 items-center justify-between gap-2 border-b border-border pr-1.5 pl-3",children:[(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5 text-caption text-muted-foreground",children:[(0,t.jsx)(s.SquareTerminal,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:e})]}),(0,t.jsx)(r.CopyButton,{value:a??n,label:l,isLabeled:!0,onCopied:d,onCopyFailed:c,"data-testid":u})]}),(0,t.jsx)("pre",{"data-testid":p,className:(0,i.classNames)("overflow-x-auto px-3 py-3 font-mono text-code text-foreground",o?"break-all whitespace-pre-wrap":"whitespace-pre"),children:n})]})}])},861966,e=>{"use strict";var t=e.i(843476),s=e.i(689664),i=e.i(508734),r=e.i(271645),n=e.i(574296);e.s(["CopyButton",0,function({value:e,label:o,size:a="xs",isLabeled:l=!1,onCopied:d,onCopyFailed:c,className:p,"data-testid":u}){let[h,x]=(0,r.useState)(!1);async function m(){try{await navigator.clipboard.writeText(e)}catch{c?.();return}x(!0),d?.(),setTimeout(()=>{x(!1)},1500)}return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.Button,{variant:"ghost",size:a,isIconOnly:!l,"aria-label":o,title:l?void 0:o,icon:h?(0,t.jsx)(s.Check,{"aria-hidden":!0}):(0,t.jsx)(i.Copy,{"aria-hidden":!0}),className:p,"data-testid":u,onClick:()=>{m()},children:l?h?"Copied":"Copy":null}),(0,t.jsx)("span",{role:"status",className:"sr-only",children:h?"Copied.":""})]})}])},756478,e=>{"use strict";var t=e.i(843476),s=e.i(866616),i=e.i(591703);e.s(["CrewLines",0,function({crewLines:e,subject:r,testIdPrefix:n,onCopied:o,onCopyFailed:a}){return e.map(({harness:e,line:l})=>(0,t.jsx)(i.CodeBlock,{label:`Crew line, ${(0,s.harnessWord)(e)} with the Aeolus Fleet plugin`,code:l,isWrapped:!0,copyLabel:`Copy the ${(0,s.harnessWord)(e)} crew line for ${r}`,codeTestId:`${n}-${e}`,copyTestId:`${n}-${e}-copy`,onCopied:o,onCopyFailed:a},e))}])},378214,e=>{"use strict";var t=e.i(843476),s=e.i(331513);let i={claudeCode:`${s.SOURCE_URL}/blob/main/docs/guides/claude-code.md#1-install-the-plugin-once-per-machine`,codex:"https://github.com/ThomasHendrickx/aeolus-fleet-trierarch/blob/main/plugins/aeolus-fleet/README.md#install-for-codex-desktop-or-cli"},r="underline underline-offset-2";e.s(["PluginInstallLinks",0,function(){return(0,t.jsxs)("p",{className:"text-meta text-muted-foreground",children:["A crew line needs the Aeolus Fleet plugin, installed once per computer:"," ",(0,t.jsx)("a",{href:i.claudeCode,target:"_blank",rel:"noreferrer","data-testid":"plugin-install-claude-code",className:r,children:"install it in Claude Code"})," ","or"," ",(0,t.jsx)("a",{href:i.codex,target:"_blank",rel:"noreferrer","data-testid":"plugin-install-codex",className:r,children:"in Codex"}),"."]})}])},482532,e=>{"use strict";var t=e.i(843476),s=e.i(422768),i=e.i(810818),r=e.i(825398),n=e.i(271645),o=e.i(849635),a=e.i(331513),l=e.i(574296),d=e.i(330475),c=e.i(746675),p=e.i(591703),u=e.i(219321),h=e.i(756478),x=e.i(817981),m=e.i(378214);let g=`${a.SOURCE_URL}/blob/main/docs/guides/chatgpt.md`;function C({shipName:e,prompt:r,crewLines:o}){let[a,l]=(0,n.useState)(!1),d=()=>{l(!1)},c=()=>{l(!0)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{className:"flex gap-2 rounded-lg border border-border bg-muted px-3 py-2 text-meta text-foreground",children:[(0,t.jsx)(i.Info,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon-sm) shrink-0 text-muted-foreground"}),(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{className:"font-medium",children:"Shown once. Copy it now."})," If you lose it, get a new one; this one then stops working."]})]}),(0,t.jsx)(p.CodeBlock,{label:`Crew instructions for a chat, for ${e}`,code:r,isWrapped:!0,copyLabel:`Copy the crew instructions for a chat, for ${e}`,codeTestId:"starting-prompt-text",copyTestId:"starting-prompt-copy",onCopied:d,onCopyFailed:c}),(0,t.jsx)(h.CrewLines,{crewLines:o,subject:e,testIdPrefix:"starting-prompt-crew-line",onCopied:d,onCopyFailed:c}),(0,t.jsx)(m.PluginInstallLinks,{}),(0,t.jsx)("p",{role:"status",className:"flex items-center gap-1.5 text-meta text-destructive-text empty:hidden",children:a?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.CircleAlert,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0"}),"Could not copy: select the text and copy it by hand."]}):null})]})}e.s(["StartingPromptDialog",0,function(e){let{shipName:s,state:i,prompt:n,crewLines:a,replacesUnclaimed:p,error:h,isOpen:m,onOpenChange:j,onConfirm:f}=e,b="issuing"===i;return(0,t.jsx)(d.Dialog,{open:m,onOpenChange:e=>{b||j(e)},children:(0,t.jsxs)(d.DialogContent,{size:"md","data-testid":"starting-prompt-dialog",className:c.dialogSurface.phoneFullScreen,children:[(0,t.jsxs)(d.DialogHeader,{children:[(0,t.jsxs)(d.DialogTitle,{children:["Starting prompt for ",s]}),(0,t.jsxs)(d.DialogDescription,{children:["Paste the crew instructions into a chat (ChatGPT, Claude chat), or a crew line into Claude Code or Codex with the Aeolus Fleet plugin. Any earlier prompt for ",s," stops working now."," ",(0,t.jsx)("a",{href:g,target:"_blank",rel:"noreferrer","data-testid":"starting-prompt-chatgpt-guide",className:"underline underline-offset-2",children:"Connect a ChatGPT chat"}),"."]})]}),"error"!==i&&p?(0,t.jsxs)("p",{className:"rounded-lg border border-tone-waiting-border bg-tone-waiting-bg px-3 py-2 text-meta text-tone-waiting-fg",children:["This prompt stops the one issued"," ",(0,t.jsx)("time",{dateTime:p.issuedAt,children:(0,o.shortDateTime)(new Date(p.issuedAt))})," ","working."]}):null,b?(0,t.jsxs)("div",{"aria-busy":!0,className:"flex flex-col gap-3",children:[(0,t.jsx)("span",{className:"sr-only",children:"Issuing a starting prompt..."}),(0,t.jsx)(u.Skeleton,{className:"h-10 w-full rounded-lg"}),(0,t.jsx)(u.Skeleton,{className:"h-40 w-full rounded-lg"})]}):null,"shown"===i&&void 0!==n&&void 0!==a?(0,t.jsx)(C,{shipName:s,prompt:n,crewLines:a}):null,"error"===i?(0,t.jsx)(x.InlineError,{title:"Couldn’t issue a starting prompt",description:`${h??"The server did not answer."} No new secret was created; any earlier prompt still works.`}):null,(0,t.jsxs)(d.DialogFooter,{children:["issuing"===i||"shown"===i?(0,t.jsx)(d.DialogClose,{render:(0,t.jsx)(l.Button,{variant:"primary",disabled:b}),children:"Done"}):null,"error"===i?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.DialogClose,{render:(0,t.jsx)(l.Button,{}),children:"Close"}),(0,t.jsx)(l.Button,{variant:"primary",icon:(0,t.jsx)(r.RotateCw,{}),onClick:f,children:"Try again"})]}):null]})]})})}])}]);