@aeolus-fleet/gateway 0.36.2 → 0.36.3

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 (504) hide show
  1. package/README.md +4 -0
  2. package/dist/adapters/fleet/actor-door.d.ts +8 -1
  3. package/dist/adapters/fleet/actor-door.js +12 -5
  4. package/dist/adapters/fleet/actor-door.js.map +1 -1
  5. package/dist/adapters/fleet/argo-inbox-door.d.ts +4 -0
  6. package/dist/adapters/fleet/argo-inbox-door.js +81 -0
  7. package/dist/adapters/fleet/argo-inbox-door.js.map +1 -0
  8. package/dist/adapters/fleet/rest-fleet-door.d.ts +14 -0
  9. package/dist/adapters/fleet/rest-fleet-door.js +11 -1
  10. package/dist/adapters/fleet/rest-fleet-door.js.map +1 -1
  11. package/dist/adapters/http/front-door.js +3 -1
  12. package/dist/adapters/http/front-door.js.map +1 -1
  13. package/dist/adapters/http/live.d.ts +10 -1
  14. package/dist/adapters/http/live.js +10 -1
  15. package/dist/adapters/http/live.js.map +1 -1
  16. package/dist/adapters/pagasae/email-channel.js +5 -3
  17. package/dist/adapters/pagasae/email-channel.js.map +1 -1
  18. package/dist/adapters/pagasae/pagasae-client.js +1 -0
  19. package/dist/adapters/pagasae/pagasae-client.js.map +1 -1
  20. package/dist/adapters/pagasae/shared-sign-in.js +2 -2
  21. package/dist/adapters/pagasae/shared-sign-in.js.map +1 -1
  22. package/dist/adapters/prisma/argo-accounts.d.ts +4 -0
  23. package/dist/adapters/prisma/argo-accounts.js +17 -0
  24. package/dist/adapters/prisma/argo-accounts.js.map +1 -0
  25. package/dist/adapters/prisma/argo-slack-posts.d.ts +4 -0
  26. package/dist/adapters/prisma/argo-slack-posts.js +30 -0
  27. package/dist/adapters/prisma/argo-slack-posts.js.map +1 -0
  28. package/dist/adapters/prisma/argo-wakes.d.ts +4 -0
  29. package/dist/adapters/prisma/argo-wakes.js +54 -0
  30. package/dist/adapters/prisma/argo-wakes.js.map +1 -0
  31. package/dist/adapters/prisma/fleet-forgetter.d.ts +1 -1
  32. package/dist/adapters/prisma/fleet-forgetter.js +2 -2
  33. package/dist/adapters/prisma/fleet-forgetter.js.map +1 -1
  34. package/dist/adapters/prisma/generated/browser.d.ts +20 -0
  35. package/dist/adapters/prisma/generated/client.d.ts +20 -0
  36. package/dist/adapters/prisma/generated/internal/class.d.ts +44 -0
  37. package/dist/adapters/prisma/generated/internal/class.js +4 -4
  38. package/dist/adapters/prisma/generated/internal/class.js.map +1 -1
  39. package/dist/adapters/prisma/generated/internal/prismaNamespace.d.ts +334 -1
  40. package/dist/adapters/prisma/generated/internal/prismaNamespace.js +30 -1
  41. package/dist/adapters/prisma/generated/internal/prismaNamespace.js.map +1 -1
  42. package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.d.ts +33 -0
  43. package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.js +30 -1
  44. package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.js.map +1 -1
  45. package/dist/adapters/prisma/generated/models/ArgoAccount.d.ts +946 -0
  46. package/dist/adapters/prisma/generated/models/ArgoAccount.js +2 -0
  47. package/dist/adapters/prisma/generated/models/ArgoAccount.js.map +1 -0
  48. package/dist/adapters/prisma/generated/models/ArgoMessageCovered.d.ts +947 -0
  49. package/dist/adapters/prisma/generated/models/ArgoMessageCovered.js +2 -0
  50. package/dist/adapters/prisma/generated/models/ArgoMessageCovered.js.map +1 -0
  51. package/dist/adapters/prisma/generated/models/ArgoSlackPost.d.ts +1065 -0
  52. package/dist/adapters/prisma/generated/models/ArgoSlackPost.js +2 -0
  53. package/dist/adapters/prisma/generated/models/ArgoSlackPost.js.map +1 -0
  54. package/dist/adapters/prisma/generated/models/ArgoWakeSent.d.ts +975 -0
  55. package/dist/adapters/prisma/generated/models/ArgoWakeSent.js +2 -0
  56. package/dist/adapters/prisma/generated/models/ArgoWakeSent.js.map +1 -0
  57. package/dist/adapters/prisma/generated/models.d.ts +4 -0
  58. package/dist/adapters/slack/slack-messages.js +5 -4
  59. package/dist/adapters/slack/slack-messages.js.map +1 -1
  60. package/dist/adapters/trpc/router.d.ts +24 -0
  61. package/dist/adapters/trpc/router.js +11 -0
  62. package/dist/adapters/trpc/router.js.map +1 -1
  63. package/dist/adapters/web-push/web-push.js +1 -1
  64. package/dist/adapters/web-push/web-push.js.map +1 -1
  65. package/dist/app.js +89 -2
  66. package/dist/app.js.map +1 -1
  67. package/dist/core/account-sign-in/account-of-sign-in.d.ts +7 -2
  68. package/dist/core/account-sign-in/account-of-sign-in.js +9 -3
  69. package/dist/core/account-sign-in/account-of-sign-in.js.map +1 -1
  70. package/dist/core/account-sign-in/ports.d.ts +2 -0
  71. package/dist/core/argo-inbox/argo-inbox.d.ts +31 -0
  72. package/dist/core/argo-inbox/argo-inbox.js +23 -0
  73. package/dist/core/argo-inbox/argo-inbox.js.map +1 -0
  74. package/dist/core/argo-inbox/argo-slack-message.d.ts +17 -0
  75. package/dist/core/argo-inbox/argo-slack-message.js +40 -0
  76. package/dist/core/argo-inbox/argo-slack-message.js.map +1 -0
  77. package/dist/core/argo-inbox/argo-slack-post.d.ts +21 -0
  78. package/dist/core/argo-inbox/argo-slack-post.js +2 -0
  79. package/dist/core/argo-inbox/argo-slack-post.js.map +1 -0
  80. package/dist/core/argo-inbox/follow-argo-inbox.d.ts +33 -0
  81. package/dist/core/argo-inbox/follow-argo-inbox.js +133 -0
  82. package/dist/core/argo-inbox/follow-argo-inbox.js.map +1 -0
  83. package/dist/core/argo-inbox/note-argo-account.d.ts +19 -0
  84. package/dist/core/argo-inbox/note-argo-account.js +18 -0
  85. package/dist/core/argo-inbox/note-argo-account.js.map +1 -0
  86. package/dist/core/argo-inbox/ports.d.ts +123 -0
  87. package/dist/core/argo-inbox/ports.js +2 -0
  88. package/dist/core/argo-inbox/ports.js.map +1 -0
  89. package/dist/core/argo-inbox/read-argo-inbox-notice.d.ts +34 -0
  90. package/dist/core/argo-inbox/read-argo-inbox-notice.js +20 -0
  91. package/dist/core/argo-inbox/read-argo-inbox-notice.js.map +1 -0
  92. package/dist/core/argo-inbox/read-argo-section.d.ts +54 -0
  93. package/dist/core/argo-inbox/read-argo-section.js +67 -0
  94. package/dist/core/argo-inbox/read-argo-section.js.map +1 -0
  95. package/dist/core/argo-inbox/show-argo-inbox-in-slack.d.ts +36 -0
  96. package/dist/core/argo-inbox/show-argo-inbox-in-slack.js +125 -0
  97. package/dist/core/argo-inbox/show-argo-inbox-in-slack.js.map +1 -0
  98. package/dist/core/argo-inbox/wake-for-argo.d.ts +37 -0
  99. package/dist/core/argo-inbox/wake-for-argo.js +139 -0
  100. package/dist/core/argo-inbox/wake-for-argo.js.map +1 -0
  101. package/dist/core/oauth/exchange-id-jag.d.ts +4 -1
  102. package/dist/core/oauth/exchange-id-jag.js +5 -2
  103. package/dist/core/oauth/exchange-id-jag.js.map +1 -1
  104. package/dist/core/people/person-wakes.d.ts +49 -0
  105. package/dist/core/people/person-wakes.js +27 -0
  106. package/dist/core/people/person-wakes.js.map +1 -0
  107. package/dist/core/people/ports.d.ts +6 -2
  108. package/dist/core/people/wake-person.js +1 -1
  109. package/dist/core/people/wake-person.js.map +1 -1
  110. package/dist/core/people/web-push-channel.js +2 -2
  111. package/dist/core/people/web-push-channel.js.map +1 -1
  112. package/dist/core/sign-in/account-token.d.ts +5 -1
  113. package/dist/core/sign-in/account-token.js +8 -2
  114. package/dist/core/sign-in/account-token.js.map +1 -1
  115. package/dist/core/sign-in/complete-sign-in.d.ts +4 -1
  116. package/dist/core/sign-in/complete-sign-in.js +5 -2
  117. package/dist/core/sign-in/complete-sign-in.js.map +1 -1
  118. package/dist/core/sign-in/ports.d.ts +2 -0
  119. package/dist/core/slack/edited-post-of.d.ts +2 -0
  120. package/dist/core/slack/edited-post-of.js +1 -1
  121. package/dist/core/slack/edited-post-of.js.map +1 -1
  122. package/dist/core/slack/ports.d.ts +6 -4
  123. package/package.json +3 -2
  124. package/src/adapters/prisma/migrations/20261109090000_argo_accounts/migration.sql +8 -0
  125. package/src/adapters/prisma/migrations/20261110090000_argo_slack_posts/migration.sql +12 -0
  126. package/src/adapters/prisma/migrations/20261110100000_argo_wakes/migration.sql +18 -0
  127. package/src/adapters/prisma/schema.prisma +47 -0
  128. package/web/.next/BUILD_ID +1 -1
  129. package/web/.next/build-manifest.json +3 -3
  130. package/web/.next/diagnostics/route-bundle-stats.json +130 -128
  131. package/web/.next/fallback-build-manifest.json +3 -3
  132. package/web/.next/prerender-manifest.json +3 -3
  133. package/web/.next/server/app/(bridge)/bridge/basket/page/server-reference-manifest.json +10 -10
  134. package/web/.next/server/app/(bridge)/bridge/basket/page.js +6 -6
  135. package/web/.next/server/app/(bridge)/bridge/basket/page.js.nft.json +1 -1
  136. package/web/.next/server/app/(bridge)/bridge/basket/page_client-reference-manifest.js +1 -1
  137. package/web/.next/server/app/(bridge)/bridge/done/page/server-reference-manifest.json +2 -2
  138. package/web/.next/server/app/(bridge)/bridge/done/page.js +6 -6
  139. package/web/.next/server/app/(bridge)/bridge/done/page.js.nft.json +1 -1
  140. package/web/.next/server/app/(bridge)/bridge/done/page_client-reference-manifest.js +1 -1
  141. package/web/.next/server/app/(bridge)/bridge/fleet/page/server-reference-manifest.json +1 -1
  142. package/web/.next/server/app/(bridge)/bridge/fleet/page.js +6 -6
  143. package/web/.next/server/app/(bridge)/bridge/fleet/page.js.nft.json +1 -1
  144. package/web/.next/server/app/(bridge)/bridge/fleet/page_client-reference-manifest.js +1 -1
  145. package/web/.next/server/app/(bridge)/bridge/page/server-reference-manifest.json +9 -9
  146. package/web/.next/server/app/(bridge)/bridge/page.js +6 -6
  147. package/web/.next/server/app/(bridge)/bridge/page.js.nft.json +1 -1
  148. package/web/.next/server/app/(bridge)/bridge/page_client-reference-manifest.js +1 -1
  149. package/web/.next/server/app/(bridge)/bridge/settings/page/server-reference-manifest.json +1 -1
  150. package/web/.next/server/app/(bridge)/bridge/settings/page.js +7 -7
  151. package/web/.next/server/app/(bridge)/bridge/settings/page.js.nft.json +1 -1
  152. package/web/.next/server/app/(bridge)/bridge/settings/page_client-reference-manifest.js +1 -1
  153. package/web/.next/server/app/(bridge)/bridge/settings/requests/[requestId]/page/server-reference-manifest.json +2 -2
  154. package/web/.next/server/app/(bridge)/bridge/settings/requests/[requestId]/page.js +6 -6
  155. package/web/.next/server/app/(bridge)/bridge/settings/requests/[requestId]/page.js.nft.json +1 -1
  156. package/web/.next/server/app/(bridge)/bridge/settings/requests/[requestId]/page_client-reference-manifest.js +1 -1
  157. package/web/.next/server/app/(bridge)/bridge/settings/routing/page/server-reference-manifest.json +5 -5
  158. package/web/.next/server/app/(bridge)/bridge/settings/routing/page.js +4 -4
  159. package/web/.next/server/app/(bridge)/bridge/settings/routing/page.js.nft.json +1 -1
  160. package/web/.next/server/app/(bridge)/bridge/settings/routing/page_client-reference-manifest.js +1 -1
  161. package/web/.next/server/app/(bridge)/bridge/stay-aware/page/server-reference-manifest.json +9 -9
  162. package/web/.next/server/app/(bridge)/bridge/stay-aware/page.js +5 -5
  163. package/web/.next/server/app/(bridge)/bridge/stay-aware/page.js.nft.json +1 -1
  164. package/web/.next/server/app/(bridge)/bridge/stay-aware/page_client-reference-manifest.js +1 -1
  165. package/web/.next/server/app/(console)/gateway-off/page/server-reference-manifest.json +1 -1
  166. package/web/.next/server/app/(console)/gateway-off/page.js +2 -2
  167. package/web/.next/server/app/(console)/gateway-off/page.js.nft.json +1 -1
  168. package/web/.next/server/app/(console)/gateway-off/page_client-reference-manifest.js +1 -1
  169. package/web/.next/server/app/(console)/meetings/[meetingId]/page/server-reference-manifest.json +3 -3
  170. package/web/.next/server/app/(console)/meetings/[meetingId]/page.js +2 -2
  171. package/web/.next/server/app/(console)/meetings/[meetingId]/page.js.nft.json +1 -1
  172. package/web/.next/server/app/(console)/meetings/[meetingId]/page_client-reference-manifest.js +1 -1
  173. package/web/.next/server/app/(console)/outside-parties/[name]/change/page/server-reference-manifest.json +15 -15
  174. package/web/.next/server/app/(console)/outside-parties/[name]/change/page.js +2 -2
  175. package/web/.next/server/app/(console)/outside-parties/[name]/change/page.js.nft.json +1 -1
  176. package/web/.next/server/app/(console)/outside-parties/[name]/change/page_client-reference-manifest.js +1 -1
  177. package/web/.next/server/app/(console)/outside-parties/[name]/page/server-reference-manifest.json +8 -8
  178. package/web/.next/server/app/(console)/outside-parties/[name]/page.js +2 -2
  179. package/web/.next/server/app/(console)/outside-parties/[name]/page.js.nft.json +1 -1
  180. package/web/.next/server/app/(console)/outside-parties/[name]/page_client-reference-manifest.js +1 -1
  181. package/web/.next/server/app/(console)/outside-parties/[name]/retire/page/server-reference-manifest.json +15 -15
  182. package/web/.next/server/app/(console)/outside-parties/[name]/retire/page.js +2 -2
  183. package/web/.next/server/app/(console)/outside-parties/[name]/retire/page.js.nft.json +1 -1
  184. package/web/.next/server/app/(console)/outside-parties/[name]/retire/page_client-reference-manifest.js +1 -1
  185. package/web/.next/server/app/(console)/outside-parties/add/page/server-reference-manifest.json +10 -10
  186. package/web/.next/server/app/(console)/outside-parties/add/page.js +2 -2
  187. package/web/.next/server/app/(console)/outside-parties/add/page.js.nft.json +1 -1
  188. package/web/.next/server/app/(console)/outside-parties/add/page_client-reference-manifest.js +1 -1
  189. package/web/.next/server/app/(console)/outside-parties/add-a2a-agent/page/server-reference-manifest.json +2 -2
  190. package/web/.next/server/app/(console)/outside-parties/add-a2a-agent/page.js +2 -2
  191. package/web/.next/server/app/(console)/outside-parties/add-a2a-agent/page.js.nft.json +1 -1
  192. package/web/.next/server/app/(console)/outside-parties/add-a2a-agent/page_client-reference-manifest.js +1 -1
  193. package/web/.next/server/app/(console)/outside-parties/add-a2a-client/page/server-reference-manifest.json +2 -2
  194. package/web/.next/server/app/(console)/outside-parties/add-a2a-client/page.js +2 -2
  195. package/web/.next/server/app/(console)/outside-parties/add-a2a-client/page.js.nft.json +1 -1
  196. package/web/.next/server/app/(console)/outside-parties/add-a2a-client/page_client-reference-manifest.js +1 -1
  197. package/web/.next/server/app/(console)/outside-parties/page/server-reference-manifest.json +2 -2
  198. package/web/.next/server/app/(console)/outside-parties/page.js +2 -2
  199. package/web/.next/server/app/(console)/outside-parties/page.js.nft.json +1 -1
  200. package/web/.next/server/app/(console)/outside-parties/page_client-reference-manifest.js +1 -1
  201. package/web/.next/server/app/(console)/parties/page/server-reference-manifest.json +7 -7
  202. package/web/.next/server/app/(console)/parties/page.js +2 -2
  203. package/web/.next/server/app/(console)/parties/page.js.nft.json +1 -1
  204. package/web/.next/server/app/(console)/parties/page_client-reference-manifest.js +1 -1
  205. package/web/.next/server/app/(console)/sign-in/failed/page/server-reference-manifest.json +1 -1
  206. package/web/.next/server/app/(console)/sign-in/failed/page.js +2 -2
  207. package/web/.next/server/app/(console)/sign-in/failed/page.js.nft.json +1 -1
  208. package/web/.next/server/app/(console)/sign-in/failed/page_client-reference-manifest.js +1 -1
  209. package/web/.next/server/app/(console)/slack/disconnect/page/server-reference-manifest.json +11 -11
  210. package/web/.next/server/app/(console)/slack/disconnect/page.js +2 -2
  211. package/web/.next/server/app/(console)/slack/disconnect/page.js.nft.json +1 -1
  212. package/web/.next/server/app/(console)/slack/disconnect/page_client-reference-manifest.js +1 -1
  213. package/web/.next/server/app/(console)/slack/expose/page/server-reference-manifest.json +11 -11
  214. package/web/.next/server/app/(console)/slack/expose/page.js +2 -2
  215. package/web/.next/server/app/(console)/slack/expose/page.js.nft.json +1 -1
  216. package/web/.next/server/app/(console)/slack/expose/page_client-reference-manifest.js +1 -1
  217. package/web/.next/server/app/(console)/slack/page/server-reference-manifest.json +11 -11
  218. package/web/.next/server/app/(console)/slack/page.js +2 -2
  219. package/web/.next/server/app/(console)/slack/page.js.nft.json +1 -1
  220. package/web/.next/server/app/(console)/slack/page_client-reference-manifest.js +1 -1
  221. package/web/.next/server/app/(console)/slack/remove/page/server-reference-manifest.json +11 -11
  222. package/web/.next/server/app/(console)/slack/remove/page.js +2 -2
  223. package/web/.next/server/app/(console)/slack/remove/page.js.nft.json +1 -1
  224. package/web/.next/server/app/(console)/slack/remove/page_client-reference-manifest.js +1 -1
  225. package/web/.next/server/app/_global-error.html +1 -1
  226. package/web/.next/server/app/_global-error.rsc +1 -1
  227. package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  228. package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  229. package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  230. package/web/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
  231. package/web/.next/server/app/_not-found/page.js +2 -2
  232. package/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  233. package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  234. package/web/.next/server/app/authorize/failed/page/server-reference-manifest.json +1 -1
  235. package/web/.next/server/app/authorize/failed/page.js +3 -4
  236. package/web/.next/server/app/authorize/failed/page.js.nft.json +1 -1
  237. package/web/.next/server/app/authorize/failed/page_client-reference-manifest.js +1 -1
  238. package/web/.next/server/app/authorize/pick/page/server-reference-manifest.json +1 -1
  239. package/web/.next/server/app/authorize/pick/page.js +3 -4
  240. package/web/.next/server/app/authorize/pick/page.js.nft.json +1 -1
  241. package/web/.next/server/app/authorize/pick/page_client-reference-manifest.js +1 -1
  242. package/web/.next/server/app/authorize/waiting/approval/page/server-reference-manifest.json +1 -1
  243. package/web/.next/server/app/authorize/waiting/approval/page.js +3 -4
  244. package/web/.next/server/app/authorize/waiting/approval/page.js.nft.json +1 -1
  245. package/web/.next/server/app/authorize/waiting/approval/page_client-reference-manifest.js +1 -1
  246. package/web/.next/server/chunks/ssr/01fr_app_(bridge)_bridge_settings_requests_[requestId]_page_actions_0o8g7_xshtmem.js +1 -1
  247. package/web/.next/server/chunks/ssr/01fr_app_(bridge)_bridge_settings_requests_[requestId]_page_actions_0o8g7_xshtmem.js.map +1 -1
  248. package/web/.next/server/chunks/ssr/0b9d__next-internal_server_app_(bridge)_bridge_stay-aware_page_actions_1u0xo0v3y9c34.js +1 -1
  249. package/web/.next/server/chunks/ssr/0b9d__next-internal_server_app_(bridge)_bridge_stay-aware_page_actions_1u0xo0v3y9c34.js.map +1 -1
  250. package/web/.next/server/chunks/ssr/0vkm_server_app_(bridge)_bridge_settings_routing_page_actions_06_j7s24dy5ee.js +1 -1
  251. package/web/.next/server/chunks/ssr/0vkm_server_app_(bridge)_bridge_settings_routing_page_actions_06_j7s24dy5ee.js.map +1 -1
  252. package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_outside-parties_[name]_change_page_actions_04td11fxohsfm.js +1 -1
  253. package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_outside-parties_[name]_change_page_actions_04td11fxohsfm.js.map +1 -1
  254. package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_outside-parties_[name]_page_actions_0u-45itza1ls7.js +1 -1
  255. package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_outside-parties_[name]_page_actions_0u-45itza1ls7.js.map +1 -1
  256. package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_outside-parties_[name]_retire_page_actions_0s7ps6i0ts7v5.js +1 -1
  257. package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_outside-parties_[name]_retire_page_actions_0s7ps6i0ts7v5.js.map +1 -1
  258. package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_outside-parties_add-a2a-client_page_actions_0d_wgiu94c32e.js +1 -1
  259. package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_outside-parties_add-a2a-client_page_actions_0d_wgiu94c32e.js.map +1 -1
  260. package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_outside-parties_add_page_actions_0yfz_dfn-8uo7.js +1 -1
  261. package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_outside-parties_add_page_actions_0yfz_dfn-8uo7.js.map +1 -1
  262. package/web/.next/server/chunks/ssr/[root-of-the-server]__001xx3sm5ur-e._.js +1 -1
  263. package/web/.next/server/chunks/ssr/[root-of-the-server]__001xx3sm5ur-e._.js.map +1 -1
  264. package/web/.next/server/chunks/ssr/[root-of-the-server]__0a6a1yc_ac-qt._.js +1 -1
  265. package/web/.next/server/chunks/ssr/[root-of-the-server]__0a8db18tyk__5._.js +1 -1
  266. package/web/.next/server/chunks/ssr/[root-of-the-server]__0a8db18tyk__5._.js.map +1 -1
  267. package/web/.next/server/chunks/ssr/[root-of-the-server]__0e4l5gt01o04p._.js +1 -1
  268. package/web/.next/server/chunks/ssr/[root-of-the-server]__0fz0817_b9ljl._.js +1 -1
  269. package/web/.next/server/chunks/ssr/[root-of-the-server]__0gptrhg3mj4hs._.js.map +1 -1
  270. package/web/.next/server/chunks/ssr/[root-of-the-server]__0k3g0p3t9t0c-._.js +1 -1
  271. package/web/.next/server/chunks/ssr/[root-of-the-server]__0k3g0p3t9t0c-._.js.map +1 -1
  272. package/web/.next/server/chunks/ssr/[root-of-the-server]__0kjcooo3pi4_k._.js.map +1 -1
  273. package/web/.next/server/chunks/ssr/[root-of-the-server]__0rmg7huc074bf._.js +1 -1
  274. package/web/.next/server/chunks/ssr/[root-of-the-server]__10s9e8g5x-ws8._.js +1 -1
  275. package/web/.next/server/chunks/ssr/[root-of-the-server]__10s9e8g5x-ws8._.js.map +1 -1
  276. package/web/.next/server/chunks/ssr/[root-of-the-server]__13v3maun347sn._.js +1 -1
  277. package/web/.next/server/chunks/ssr/[root-of-the-server]__13yoncr_nx3jc._.js +1 -1
  278. package/web/.next/server/chunks/ssr/[root-of-the-server]__13yoncr_nx3jc._.js.map +1 -1
  279. package/web/.next/server/chunks/ssr/[root-of-the-server]__18-8taiduk1jn._.js +1 -1
  280. package/web/.next/server/chunks/ssr/[root-of-the-server]__18-8taiduk1jn._.js.map +1 -1
  281. package/web/.next/server/chunks/ssr/{[root-of-the-server]__1qtzvez4cn5be._.js → [root-of-the-server]__1ektgsnjg4btl._.js} +2 -2
  282. package/web/.next/server/chunks/ssr/[root-of-the-server]__1hgu6f5hpnykv._.js.map +1 -1
  283. package/web/.next/server/chunks/ssr/{[root-of-the-server]__1j6n8jj7-5t6v._.js → [root-of-the-server]__1nfpyr3ynmwks._.js} +1 -1
  284. package/web/.next/server/chunks/ssr/[root-of-the-server]__1qpow96uit9t8._.js +1 -1
  285. package/web/.next/server/chunks/ssr/[root-of-the-server]__1qpow96uit9t8._.js.map +1 -1
  286. package/web/.next/server/chunks/ssr/[root-of-the-server]__1ul9rrs2g66lm._.js +1 -1
  287. package/web/.next/server/chunks/ssr/[root-of-the-server]__20gvfqy33wcds._.js.map +1 -1
  288. package/web/.next/server/chunks/ssr/_00fvst5icgei4._.js +3 -0
  289. package/web/.next/server/chunks/ssr/_00fvst5icgei4._.js.map +1 -0
  290. package/web/.next/server/chunks/ssr/_00hfzlqn1og18._.js +1 -1
  291. package/web/.next/server/chunks/ssr/_00hfzlqn1og18._.js.map +1 -1
  292. package/web/.next/server/chunks/ssr/_02mwdj1oj1zgm._.js +3 -0
  293. package/web/.next/server/chunks/ssr/_02mwdj1oj1zgm._.js.map +1 -0
  294. package/web/.next/server/chunks/ssr/_0fqd23gyia_8g._.js +3 -0
  295. package/web/.next/server/chunks/ssr/_0fqd23gyia_8g._.js.map +1 -0
  296. package/web/.next/server/chunks/ssr/_0ka_9elusb800._.js +1 -1
  297. package/web/.next/server/chunks/ssr/_0ka_9elusb800._.js.map +1 -1
  298. package/web/.next/server/chunks/ssr/_0pyd1_y7w8ngp._.js +1 -1
  299. package/web/.next/server/chunks/ssr/_0pyd1_y7w8ngp._.js.map +1 -1
  300. package/web/.next/server/chunks/ssr/_0u0u0owpxx_37._.js +3 -0
  301. package/web/.next/server/chunks/ssr/_0u0u0owpxx_37._.js.map +1 -0
  302. package/web/.next/server/chunks/ssr/_0v_x6k3ztfvx0._.js +1 -1
  303. package/web/.next/server/chunks/ssr/_0v_x6k3ztfvx0._.js.map +1 -1
  304. package/web/.next/server/chunks/ssr/_0x5-_917zcaj9._.js +3 -0
  305. package/web/.next/server/chunks/ssr/_0x5-_917zcaj9._.js.map +1 -0
  306. package/web/.next/server/chunks/ssr/{_0cnpz5jm2_9xf._.js → _0xajzaside0sw._.js} +2 -2
  307. package/web/.next/server/chunks/ssr/{_0cnpz5jm2_9xf._.js.map → _0xajzaside0sw._.js.map} +1 -1
  308. package/web/.next/server/chunks/ssr/_0xickgbbju_9-._.js +1 -1
  309. package/web/.next/server/chunks/ssr/_0xickgbbju_9-._.js.map +1 -1
  310. package/web/.next/server/chunks/ssr/_0yhvyj-yts7qi._.js +3 -0
  311. package/web/.next/server/chunks/ssr/_0yhvyj-yts7qi._.js.map +1 -0
  312. package/web/.next/server/chunks/ssr/_104ilzyn58zw_._.js +3 -0
  313. package/web/.next/server/chunks/ssr/_104ilzyn58zw_._.js.map +1 -0
  314. package/web/.next/server/chunks/ssr/{_1a9wrl8uw7x-y._.js → _13_ady-a4058y._.js} +1 -1
  315. package/web/.next/server/chunks/ssr/_14k1oldo5chf8._.js +1 -1
  316. package/web/.next/server/chunks/ssr/_14k1oldo5chf8._.js.map +1 -1
  317. package/web/.next/server/chunks/ssr/_1_wav28san6dm._.js +1 -1
  318. package/web/.next/server/chunks/ssr/{_1iorutn_o9hja._.js → _1cc4ie_s4tycq._.js} +1 -1
  319. package/web/.next/server/chunks/ssr/_1e2o809f0ekry._.js +1 -1
  320. package/web/.next/server/chunks/ssr/_1gbkqq8ra1nei._.js +1 -1
  321. package/web/.next/server/chunks/ssr/_1gbkqq8ra1nei._.js.map +1 -1
  322. package/web/.next/server/chunks/ssr/{_1kdx8a0j5cxyl._.js → _1gnk2vqna6c6u._.js} +2 -2
  323. package/web/.next/server/chunks/ssr/{_1kdx8a0j5cxyl._.js.map → _1gnk2vqna6c6u._.js.map} +1 -1
  324. package/web/.next/server/chunks/ssr/_1k2b80m058vgx._.js +3 -0
  325. package/web/.next/server/chunks/ssr/_1k2b80m058vgx._.js.map +1 -0
  326. package/web/.next/server/chunks/ssr/_1pjtire7rqla0._.js +1 -1
  327. package/web/.next/server/chunks/ssr/_1pjtire7rqla0._.js.map +1 -1
  328. package/web/.next/server/chunks/ssr/_1qbsmlji34yph._.js +1 -1
  329. package/web/.next/server/chunks/ssr/_1qbsmlji34yph._.js.map +1 -1
  330. package/web/.next/server/chunks/ssr/_1t74yvog5g6g2._.js +1 -1
  331. package/web/.next/server/chunks/ssr/_1t74yvog5g6g2._.js.map +1 -1
  332. package/web/.next/server/chunks/ssr/{_1i5zdy3tp2ykh._.js → _1xgivp19ts9hn._.js} +1 -1
  333. package/web/.next/server/chunks/ssr/_1zmd3armaxhyu._.js +1 -1
  334. package/web/.next/server/chunks/ssr/_1zmd3armaxhyu._.js.map +1 -1
  335. package/web/.next/server/chunks/ssr/node_modules_05ni_zu0e0w44._.js +3 -0
  336. package/web/.next/server/chunks/ssr/node_modules_05ni_zu0e0w44._.js.map +1 -0
  337. package/web/.next/server/chunks/ssr/node_modules_07vtvfyfo0a6i._.js +3 -0
  338. package/web/.next/server/chunks/ssr/node_modules_07vtvfyfo0a6i._.js.map +1 -0
  339. package/web/.next/server/chunks/ssr/node_modules_0ettht2so2tkh._.js +1 -1
  340. package/web/.next/server/chunks/ssr/node_modules_0keape0zsobyj._.js +1 -1
  341. package/web/.next/server/chunks/ssr/node_modules_12euo0ncdx1pn._.js +3 -0
  342. package/web/.next/server/chunks/ssr/node_modules_12euo0ncdx1pn._.js.map +1 -0
  343. package/web/.next/server/chunks/ssr/node_modules_1722-epjft-rn._.js +3 -0
  344. package/web/.next/server/chunks/ssr/node_modules_1722-epjft-rn._.js.map +1 -0
  345. package/web/.next/server/chunks/ssr/{node_modules_@aeolus-fleet_common_dist_header_1x3s5abk_uj9j._.js → node_modules_@aeolus-fleet_ui_dist_11tn8gozt2_c3._.js} +2 -2
  346. package/web/.next/server/chunks/ssr/node_modules_@aeolus-fleet_ui_dist_11tn8gozt2_c3._.js.map +1 -0
  347. package/web/.next/server/chunks/ssr/node_modules_@aeolus-fleet_ui_dist_16j49enf275ln._.js +3 -0
  348. package/web/.next/server/chunks/ssr/node_modules_@aeolus-fleet_ui_dist_16j49enf275ln._.js.map +1 -0
  349. package/web/.next/server/chunks/ssr/node_modules_@base-ui_0jlwmxa9rk8p_._.js +1 -1
  350. package/web/.next/server/chunks/ssr/node_modules_@base-ui_19e_nxxf4a88q._.js +1 -1
  351. package/web/.next/server/chunks/ssr/web_0_peudz6-o69m._.js +1 -1
  352. package/web/.next/server/chunks/ssr/web_0_peudz6-o69m._.js.map +1 -1
  353. package/web/.next/server/chunks/ssr/web_0cxcy088wnfmw._.js +1 -1
  354. package/web/.next/server/chunks/ssr/web_0oz8bypfxh82g._.js +1 -1
  355. package/web/.next/server/chunks/ssr/web_0oz8bypfxh82g._.js.map +1 -1
  356. package/web/.next/server/chunks/ssr/web_0qgev3ti257yj._.js +1 -1
  357. package/web/.next/server/chunks/ssr/web_0wys4l6za8umr._.js +1 -1
  358. package/web/.next/server/chunks/ssr/web_0wys4l6za8umr._.js.map +1 -1
  359. package/web/.next/server/chunks/ssr/web_1fi1x3y7rg7mf._.js +1 -1
  360. package/web/.next/server/chunks/ssr/web_1ga4pbv72m0ad._.js +1 -1
  361. package/web/.next/server/chunks/ssr/web_1irsulms62lzf._.js +1 -1
  362. package/web/.next/server/chunks/ssr/web_1k2rrq-kr6f9k._.js +1 -1
  363. package/web/.next/server/chunks/ssr/web_1k2rrq-kr6f9k._.js.map +1 -1
  364. package/web/.next/server/chunks/ssr/web_1qvxzqmq4aw94._.js +1 -1
  365. package/web/.next/server/chunks/ssr/web__next-internal_server_app_(bridge)_bridge_basket_page_actions_0g7q_rc5nma1e.js +1 -1
  366. package/web/.next/server/chunks/ssr/web__next-internal_server_app_(bridge)_bridge_basket_page_actions_0g7q_rc5nma1e.js.map +1 -1
  367. package/web/.next/server/chunks/ssr/web__next-internal_server_app_(bridge)_bridge_done_page_actions_0kjm34arntdzv.js +1 -1
  368. package/web/.next/server/chunks/ssr/web__next-internal_server_app_(bridge)_bridge_done_page_actions_0kjm34arntdzv.js.map +1 -1
  369. package/web/.next/server/chunks/ssr/web__next-internal_server_app_(bridge)_bridge_page_actions_1ok64rg3edm_u.js +1 -1
  370. package/web/.next/server/chunks/ssr/web__next-internal_server_app_(bridge)_bridge_page_actions_1ok64rg3edm_u.js.map +1 -1
  371. package/web/.next/server/chunks/ssr/web_app_(bridge)_bridge_fleet_page_tsx_0uvtx8hiy8g0n._.js +1 -1
  372. package/web/.next/server/chunks/ssr/web_app_(bridge)_bridge_settings_page_tsx_1z5yr8ss25q7n._.js +1 -1
  373. package/web/.next/server/chunks/ssr/web_app_(console)_parties_page_tsx_0pp63ghly3eyp._.js +1 -1
  374. package/web/.next/server/chunks/ssr/web_app_authorize_layout_tsx_0gs61_7wzx68y._.js +1 -1
  375. package/web/.next/server/chunks/ssr/web_app_authorize_layout_tsx_0gs61_7wzx68y._.js.map +1 -1
  376. package/web/.next/server/chunks/ssr/{web_features_0bwqcs9wjf4y8._.js → web_features_06f9kfi0c4nf8._.js} +2 -2
  377. package/web/.next/server/chunks/ssr/{web_features_05aos-xwnl3m_._.js.map → web_features_06f9kfi0c4nf8._.js.map} +1 -1
  378. package/web/.next/server/chunks/ssr/web_features_0rd6357w-eo50._.js +1 -1
  379. package/web/.next/server/chunks/ssr/{web_features_05aos-xwnl3m_._.js → web_features_12b-75qfhurxi._.js} +2 -2
  380. package/web/.next/server/chunks/ssr/{web_features_0bwqcs9wjf4y8._.js.map → web_features_12b-75qfhurxi._.js.map} +1 -1
  381. package/web/.next/server/chunks/ssr/web_features_19r68thirqv1n._.js +1 -1
  382. package/web/.next/server/chunks/ssr/web_features_1m5g9a6mwrsd-._.js +1 -1
  383. package/web/.next/server/chunks/ssr/web_features_add-a2a-agent_ui_a2a-agent-form_tsx_0z8t1aalwzyl7._.js +1 -1
  384. package/web/.next/server/chunks/ssr/web_features_add-a2a-agent_ui_a2a-agent-form_tsx_0z8t1aalwzyl7._.js.map +1 -1
  385. package/web/.next/server/chunks/ssr/web_features_add-a2a-client_ui_a2a-client-form_tsx_1anv88g385nwe._.js +1 -1
  386. package/web/.next/server/chunks/ssr/web_features_add-a2a-client_ui_a2a-client-form_tsx_1anv88g385nwe._.js.map +1 -1
  387. package/web/.next/server/chunks/ssr/web_features_add-server_ui_add-server_tsx_1jnmar5xju49k._.js +1 -1
  388. package/web/.next/server/chunks/ssr/web_features_add-server_ui_add-server_tsx_1jnmar5xju49k._.js.map +1 -1
  389. package/web/.next/server/chunks/ssr/web_features_authorize_137wk0n1nu3cn._.js +1 -1
  390. package/web/.next/server/chunks/ssr/web_features_authorize_137wk0n1nu3cn._.js.map +1 -1
  391. package/web/.next/server/chunks/ssr/{web_features_bridge_0w95y19yk5w14._.js → web_features_bridge_0msm42qwm0-jq._.js} +2 -2
  392. package/web/.next/server/chunks/ssr/{web_features_bridge_0w95y19yk5w14._.js.map → web_features_bridge_0msm42qwm0-jq._.js.map} +1 -1
  393. package/web/.next/server/chunks/ssr/web_features_bridge_fleet_ui_fleet-numbers_tsx_0_afv4j248_w-._.js +1 -1
  394. package/web/.next/server/chunks/ssr/web_features_bridge_fleet_ui_fleet-numbers_tsx_0_afv4j248_w-._.js.map +1 -1
  395. package/web/.next/server/chunks/ssr/web_features_bridge_hooks_bridge-actions_ts_0h-_xm2rcb-ij._.js +1 -1
  396. package/web/.next/server/chunks/ssr/web_features_bridge_hooks_bridge-actions_ts_0h-_xm2rcb-ij._.js.map +1 -1
  397. package/web/.next/server/chunks/ssr/web_features_bridge_state_basket-panel_tsx_1qi_kzld0rfgs._.js +1 -1
  398. package/web/.next/server/chunks/ssr/web_features_bridge_state_basket-panel_tsx_1qi_kzld0rfgs._.js.map +1 -1
  399. package/web/.next/server/chunks/ssr/web_features_bridge_state_decision-panel_tsx_1mzsixgc8zuxc._.js +1 -1
  400. package/web/.next/server/chunks/ssr/web_features_bridge_state_decision-panel_tsx_1mzsixgc8zuxc._.js.map +1 -1
  401. package/web/.next/server/chunks/ssr/web_features_bridge_state_done-panel_tsx_1m844-qb1z9p_._.js +1 -1
  402. package/web/.next/server/chunks/ssr/web_features_bridge_state_done-panel_tsx_1m844-qb1z9p_._.js.map +1 -1
  403. package/web/.next/server/chunks/ssr/web_features_bridge_state_home-panel_tsx_1cc5zdhxogl_2._.js +1 -1
  404. package/web/.next/server/chunks/ssr/web_features_bridge_state_home-panel_tsx_1cc5zdhxogl_2._.js.map +1 -1
  405. package/web/.next/server/chunks/ssr/{web_features_025l9l6m2zkya._.js → web_features_forms_1u0akr22eh_x_._.js} +2 -2
  406. package/web/.next/server/chunks/ssr/web_features_forms_1u0akr22eh_x_._.js.map +1 -0
  407. package/web/.next/server/chunks/ssr/web_features_frame_01uyck6q56an2._.js +3 -0
  408. package/web/.next/server/chunks/ssr/web_features_frame_01uyck6q56an2._.js.map +1 -0
  409. package/web/.next/server/chunks/ssr/web_features_frame_ui_gateway-header_tsx_0e9tekx4jf7ng._.js +1 -1
  410. package/web/.next/server/chunks/ssr/web_features_frame_ui_gateway-header_tsx_0e9tekx4jf7ng._.js.map +1 -1
  411. package/web/.next/server/chunks/ssr/web_features_meeting_state_meeting-controls_tsx_12g4kzk2mbvvz._.js +1 -1
  412. package/web/.next/server/chunks/ssr/web_features_meeting_state_meeting-controls_tsx_12g4kzk2mbvvz._.js.map +1 -1
  413. package/web/.next/server/chunks/ssr/web_features_outside-parties_ui_switch-card_tsx_1_xnu9bm4tc-_._.js +1 -1
  414. package/web/.next/server/chunks/ssr/web_features_outside-parties_ui_switch-card_tsx_1_xnu9bm4tc-_._.js.map +1 -1
  415. package/web/.next/server/chunks/ssr/web_features_outside-party_1-lre9nfakki7._.js +1 -1
  416. package/web/.next/server/chunks/ssr/web_features_outside-party_actions_ts_102ar5pdowf8s._.js +1 -1
  417. package/web/.next/server/chunks/ssr/web_features_parties_actions_ts_0r-tbfsig2ty-._.js +1 -1
  418. package/web/.next/server/chunks/ssr/web_features_slack_actions_ts_1l3yg9vl20_vu._.js +1 -1
  419. package/web/.next/server/middleware-build-manifest.js +3 -3
  420. package/web/.next/server/pages/500.html +1 -1
  421. package/web/.next/server/preview-props.json +3 -3
  422. package/web/.next/server/server-reference-manifest.js +1 -1
  423. package/web/.next/server/server-reference-manifest.json +49 -49
  424. package/web/.next/static/chunks/030kay14jcn_y.js +1 -0
  425. package/web/.next/static/chunks/0ben53l12lrh1.js +1 -0
  426. package/web/.next/static/chunks/0d1u4n5okodee.css +3 -0
  427. package/web/.next/static/chunks/0dg4cy4rae-3o.js +1 -0
  428. package/web/.next/static/chunks/0jwils_670syn.js +1 -0
  429. package/web/.next/static/chunks/0lnew3mjkd54b.js +1 -0
  430. package/web/.next/static/chunks/0m95j-t2qmnd_.js +1 -0
  431. package/web/.next/static/chunks/0r5ujkp-5utsu.js +1 -0
  432. package/web/.next/static/chunks/{23vvtbj-zoa_f.js → 1jyiwl5szsvgn.js} +1 -1
  433. package/web/.next/static/chunks/{0k33n07zesv12.js → 1lkcm-iwggfae.js} +1 -1
  434. package/web/.next/static/chunks/1ml6wx1ya9wwo.js +1 -0
  435. package/web/.next/static/chunks/22wtc73dzqm8f.js +1 -0
  436. package/web/.next/static/chunks/2drwxc7-hry0u.js +1 -0
  437. package/web/.next/static/chunks/{07j7jnfe13wx6.js → 2ich96rzec753.js} +1 -1
  438. package/web/.next/static/chunks/{3d5z1i-6yksxd.js → 2khjzepn4_2a-.js} +1 -1
  439. package/web/.next/static/chunks/{1uhmdmkn5gsk2.js → 2ui6n5-n032a3.js} +1 -1
  440. package/web/.next/static/chunks/2wvdu6-tx1h0l.js +1 -0
  441. package/web/.next/static/chunks/33qpc2y76i927.js +1 -0
  442. package/web/.next/static/chunks/3h8spyc73a438.js +1 -0
  443. package/web/.next/static/chunks/{2dgbb29jkr_tu.js → 3v8s571padqcz.js} +1 -1
  444. package/web/.next/static/chunks/3wg9zn3lyhf-b.js +1 -0
  445. package/web/.next/trace +1 -1
  446. package/web/.next/trace-build +1 -1
  447. package/web/public/argo-wake-icon.svg +1 -0
  448. package/web/public/wake-worker.js +8 -2
  449. package/web/public/wake-worker.test.ts +52 -0
  450. package/web/.next/server/chunks/ssr/_0oekmfmigr0qv._.js +0 -3
  451. package/web/.next/server/chunks/ssr/_0oekmfmigr0qv._.js.map +0 -1
  452. package/web/.next/server/chunks/ssr/_0vid8-myyy-_4._.js +0 -3
  453. package/web/.next/server/chunks/ssr/_0y5eahpucp8g_._.js +0 -3
  454. package/web/.next/server/chunks/ssr/_0y5eahpucp8g_._.js.map +0 -1
  455. package/web/.next/server/chunks/ssr/_13fbnlwrl24s3._.js +0 -3
  456. package/web/.next/server/chunks/ssr/_13fbnlwrl24s3._.js.map +0 -1
  457. package/web/.next/server/chunks/ssr/_1airu8wwf7z1b._.js +0 -3
  458. package/web/.next/server/chunks/ssr/_1airu8wwf7z1b._.js.map +0 -1
  459. package/web/.next/server/chunks/ssr/_1i5zdy3tp2ykh._.js.map +0 -1
  460. package/web/.next/server/chunks/ssr/_1pp0z5srqqqyl._.js +0 -3
  461. package/web/.next/server/chunks/ssr/_1pp0z5srqqqyl._.js.map +0 -1
  462. package/web/.next/server/chunks/ssr/_1xuikhitica6p._.js +0 -3
  463. package/web/.next/server/chunks/ssr/_1xuikhitica6p._.js.map +0 -1
  464. package/web/.next/server/chunks/ssr/node_modules_0gpbs01t1c_a4._.js +0 -3
  465. package/web/.next/server/chunks/ssr/node_modules_0gpbs01t1c_a4._.js.map +0 -1
  466. package/web/.next/server/chunks/ssr/node_modules_0zgrzr0ui3gi8._.js +0 -3
  467. package/web/.next/server/chunks/ssr/node_modules_0zgrzr0ui3gi8._.js.map +0 -1
  468. package/web/.next/server/chunks/ssr/node_modules_174jf4d4t_bo_._.js +0 -3
  469. package/web/.next/server/chunks/ssr/node_modules_174jf4d4t_bo_._.js.map +0 -1
  470. package/web/.next/server/chunks/ssr/node_modules_1qxtjrbc2-6xd._.js +0 -3
  471. package/web/.next/server/chunks/ssr/node_modules_1qxtjrbc2-6xd._.js.map +0 -1
  472. package/web/.next/server/chunks/ssr/node_modules_@aeolus-fleet_common_dist_header_0t_cmi-llaq7g._.js +0 -3
  473. package/web/.next/server/chunks/ssr/node_modules_@aeolus-fleet_common_dist_header_0t_cmi-llaq7g._.js.map +0 -1
  474. package/web/.next/server/chunks/ssr/node_modules_@aeolus-fleet_common_dist_header_1x3s5abk_uj9j._.js.map +0 -1
  475. package/web/.next/server/chunks/ssr/node_modules_@aeolus-fleet_common_dist_header_app-switcher_08qq5-uxv7jii.js +0 -3
  476. package/web/.next/server/chunks/ssr/node_modules_@aeolus-fleet_common_dist_header_app-switcher_08qq5-uxv7jii.js.map +0 -1
  477. package/web/.next/server/chunks/ssr/node_modules_@aeolus-fleet_common_dist_header_class-names_1h5pbm2ucssiq.js +0 -3
  478. package/web/.next/server/chunks/ssr/node_modules_@aeolus-fleet_common_dist_header_class-names_1h5pbm2ucssiq.js.map +0 -1
  479. package/web/.next/server/chunks/ssr/web_features_025l9l6m2zkya._.js.map +0 -1
  480. package/web/.next/server/chunks/ssr/web_features_frame_0pe8cwpxe1egb._.js +0 -3
  481. package/web/.next/server/chunks/ssr/web_features_frame_0pe8cwpxe1egb._.js.map +0 -1
  482. package/web/.next/server/chunks/ssr/web_features_outside-parties_paths_ts_0vbj9elyqekpp._.js +0 -3
  483. package/web/.next/server/chunks/ssr/web_features_outside-parties_paths_ts_0vbj9elyqekpp._.js.map +0 -1
  484. package/web/.next/static/chunks/0ozz8jadgfdrx.js +0 -1
  485. package/web/.next/static/chunks/1v36iovy1f5cj.js +0 -1
  486. package/web/.next/static/chunks/1vhvy8bx4fxur.js +0 -1
  487. package/web/.next/static/chunks/1vhx_nu9nxo1v.js +0 -1
  488. package/web/.next/static/chunks/24vn5i6ojvl8l.js +0 -1
  489. package/web/.next/static/chunks/2l6hafvocw-rd.js +0 -1
  490. package/web/.next/static/chunks/2ld8_nap7g_uy.js +0 -1
  491. package/web/.next/static/chunks/2pvcbql986wln.js +0 -1
  492. package/web/.next/static/chunks/2s1efgj6gxjgl.js +0 -1
  493. package/web/.next/static/chunks/2zlx-c_0x38uo.css +0 -3
  494. package/web/.next/static/chunks/34u_331hqync_.js +0 -1
  495. package/web/.next/static/chunks/3_bb0g4jkqn8q.js +0 -1
  496. package/web/.next/static/chunks/3jq9vu8tr29j2.js +0 -1
  497. /package/web/.next/server/chunks/ssr/{[root-of-the-server]__1qtzvez4cn5be._.js.map → [root-of-the-server]__1ektgsnjg4btl._.js.map} +0 -0
  498. /package/web/.next/server/chunks/ssr/{[root-of-the-server]__1j6n8jj7-5t6v._.js.map → [root-of-the-server]__1nfpyr3ynmwks._.js.map} +0 -0
  499. /package/web/.next/server/chunks/ssr/{_1a9wrl8uw7x-y._.js.map → _13_ady-a4058y._.js.map} +0 -0
  500. /package/web/.next/server/chunks/ssr/{_1iorutn_o9hja._.js.map → _1cc4ie_s4tycq._.js.map} +0 -0
  501. /package/web/.next/server/chunks/ssr/{_0vid8-myyy-_4._.js.map → _1xgivp19ts9hn._.js.map} +0 -0
  502. /package/web/.next/static/{2O8_FQX7YN47L5_OxojXH → 79SqN0pBIJ0D-DK1jZmK6}/_buildManifest.js +0 -0
  503. /package/web/.next/static/{2O8_FQX7YN47L5_OxojXH → 79SqN0pBIJ0D-DK1jZmK6}/_clientMiddlewareManifest.js +0 -0
  504. /package/web/.next/static/{2O8_FQX7YN47L5_OxojXH → 79SqN0pBIJ0D-DK1jZmK6}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../web/features/bridge/hooks/data%3Aec69f1%20%3Ctext/javascript%3E","../../../../../web/features/bridge/state/item-focus.tsx","../../../../../web/features/bridge/state/send-message.tsx","../../../../../web/features/bridge/ui/send-message-form.tsx","../../../../../web/features/bridge/fleet/services/your-fleet.ts","../../../../../web/features/bridge/ui/sent-toasts.tsx","../../../../../web/features/bridge/ui/basket-toast.tsx","../../../../../web/features/bridge/hooks/data%3A166cc1%20%3Ctext/javascript%3E","../../../../../web/features/bridge/hooks/data%3Ac46319%20%3Ctext/javascript%3E","../../../../../web/features/bridge/services/send-message.ts","../../../../../node_modules/lucide-react/src/icons/rotate-cw.ts","../../../../../web/features/meeting/paths.ts","../../../../../web/features/bridge/hooks/data%3Ac799cc%20%3Ctext/javascript%3E","../../../../../web/features/bridge/hooks/data%3A4804cc%20%3Ctext/javascript%3E","../../../../../web/features/bridge/hooks/data%3Afcc169%20%3Ctext/javascript%3E","../../../../../web/features/bridge/hooks/data%3Ab1e0af%20%3Ctext/javascript%3E","../../../../../web/features/bridge/hooks/data%3Ae00c67%20%3Ctext/javascript%3E"],"sourcesContent":["/* __next_internal_action_entry_do_not_use__ [{\"6050935e24e32a35e279e7c292c8a9aa38508db651\":{\"name\":\"removeFromBasket\"}},\"web/features/bridge/hooks/bridge-actions.ts\",\"\"] */\"use turbopack: no side effects\";import{createServerReference,callServer,findSourceMapURL}from\"private-next-rsc-action-client-wrapper\";const $$RSC_SERVER_ACTION_5=/*#__PURE__*/createServerReference(\"6050935e24e32a35e279e7c292c8a9aa38508db651\",callServer,void 0,findSourceMapURL,\"removeFromBasket\");export{$$RSC_SERVER_ACTION_5 as removeFromBasket};","'use client';\n\nimport { Toast } from '@base-ui/react/toast';\nimport { useState, useTransition, type ReactNode } from 'react';\n\nimport { meetingPathOf } from '../../meeting/paths';\nimport { inFleet } from '../../../lib/gateway-api/page-account';\nimport { answerDelivery, doneDelivery, openDelivery, putInBasket, putPickInBasket, removeFromBasket, type ActionOutcome } from '../hooks/bridge-actions';\nimport { BRIDGE_BASKET_PATH } from '../paths';\nimport type { FocusedDelivery } from '../services/deliveries';\nimport { openedScreenOf } from '../services/shell';\nimport type { HomeItem } from '../services/items';\nimport type { RoutedPlace } from '../services/routing';\nimport { BasketToasts, putToastOf } from '../ui/basket-toast';\nimport { DeliveryCard, type DeliveryControl, type InBasket, type Opened, type StepFinished } from '../ui/delivery-card';\nimport { ItemSplit } from '../ui/item-split';\nimport { Notice } from '../ui/notice';\nimport { SendMessageProvider, useSendMessage } from './send-message';\nimport { useOpenedItem } from './opened-item';\n\n/** An item to open: by its delivery, with its job, whether an alert, whether it was new, and the answer to it in the basket, if any. A replacement opened from its stale item is new. */\nexport interface ToOpen {\n readonly deliveryId: string;\n readonly job: HomeItem['job'];\n readonly isAlert?: boolean;\n readonly state?: HomeItem['state'];\n readonly inBasket?: InBasket | null;\n}\n\n/** A question to put its asker's pick in the basket from its row: by its delivery, from its asker. */\nexport interface ToPut {\n readonly deliveryId: string;\n readonly from: string;\n}\n\n/** What a list of items gets to open one or put a pick in the basket from its row: the presses, the one opening or putting, and why one could not be. */\nexport interface ItemOpening {\n readonly open: (item: ToOpen) => void;\n readonly openingId: string | undefined;\n readonly putPick: (item: ToPut, option: number) => void;\n readonly puttingId: string | undefined;\n readonly failure: { deliveryId: string; message: string } | undefined;\n /** The item open beside the list, by its delivery and job; none while the list is shown alone. */\n readonly opened: { readonly deliveryId: string; readonly job: HomeItem['job'] } | undefined;\n}\n\n/**\n * A list of Bridge's items with one in focus at a time. Opening is the\n * person's own act, so it is a press, never a link: the gateway acknowledges\n * the item for them, and it is shown whole. An alert or a notice seen is\n * done at once (CC16), so it shows with no answer to give, as does a\n * question its asker withdrew or replaced; a replaced one opens its\n * replacement. A step ends done or cannot with the note, sent at once,\n * never through the basket (CC23), and stays open showing its outcome. A question's answer goes in the basket (CC24): the\n * question stays open saying so, with a toast (basket.html), and comes out\n * of it there; from its row, a new question's pick goes in it at once, opened by the same press. Answering or being done says so in place, and the page reads\n * itself again. A question names where it shows when the page read its places.\n * An opened alert offers to send its ship a message, as home offers to send\n * any ship one (aeolus-fleet #1547). The open item shows beside its list on\n * a desktop, and on its own screen on a phone (aeolus-fleet#1538).\n */\nexport function ItemFocus({ fleetId, decidePlaces, consoleUrl, children }: { fleetId: string; decidePlaces?: readonly RoutedPlace[]; /** The fleet's console, where an opened alert's ship shows its Health. */ consoleUrl?: string; children: (opening: ItemOpening) => ReactNode }) {\n return (\n <SendMessageProvider fleetId={fleetId}>\n <Toast.Provider>\n <FocusedItems fleetId={fleetId} decidePlaces={decidePlaces} consoleUrl={consoleUrl}>{children}</FocusedItems>\n <BasketToasts />\n </Toast.Provider>\n </SendMessageProvider>\n );\n}\n\nfunction FocusedItems({ fleetId, decidePlaces, consoleUrl, children }: { fleetId: string; decidePlaces?: readonly RoutedPlace[]; consoleUrl?: string; children: (opening: ItemOpening) => ReactNode }) {\n const toasts = Toast.useToastManager();\n const sendMessage = useSendMessage();\n const [focus, setFocus] = useState<{ delivery: FocusedDelivery; opened: Opened; inBasket: InBasket | null; finished: StepFinished | null } | undefined>();\n const [note, setNote] = useState('');\n const [openingId, setOpeningId] = useState<string | undefined>();\n const [puttingId, setPuttingId] = useState<string | undefined>();\n const [working, setWorking] = useState<DeliveryControl | undefined>();\n const [openFailure, setOpenFailure] = useState<{ deliveryId: string; message: string } | undefined>();\n const [failure, setFailure] = useState<string | undefined>();\n const [done, setDone] = useState<string | undefined>();\n const [, startTransition] = useTransition();\n // Each pick put from a row shows the list anew, as it is after a card: it reads the page as the action left it.\n const [shownTimes, setShownTimes] = useState(0);\n useOpenedItem(focus === undefined ? undefined : openedScreenOf(focus.opened.job), () => {\n setFocus(undefined);\n });\n\n const open = (item: ToOpen) => {\n setOpeningId(item.deliveryId);\n setOpenFailure(undefined);\n setDone(undefined);\n startTransition(async () => {\n const outcome = await openDelivery(fleetId, item.deliveryId);\n setOpeningId(undefined);\n if (outcome.isOk) {\n const inBasket = item.inBasket ?? null;\n setFocus({ delivery: outcome.value, opened: { job: item.job, isAlert: item.isAlert ?? false, wasNew: item.state !== 'seen' }, inBasket, finished: null });\n setNote(inBasket?.note ?? '');\n setFailure(undefined);\n } else {\n setOpenFailure({ deliveryId: item.deliveryId, message: outcome.message });\n }\n });\n };\n\n /** Opens a question and puts its asker's pick in the basket, with no note, from its row: nothing is sent (CC24). */\n const putPick = (item: ToPut, option: number) => {\n setPuttingId(item.deliveryId);\n setOpenFailure(undefined);\n setDone(undefined);\n startTransition(async () => {\n const outcome = await putPickInBasket({ fleet: fleetId, deliveryId: item.deliveryId, option });\n setPuttingId(undefined);\n if (outcome.isOk) {\n setDone(`Option ${String(option)} is in the basket, not sent: ${item.from} receives it when you send the basket.`);\n setShownTimes((times) => times + 1);\n } else {\n setOpenFailure({ deliveryId: item.deliveryId, message: outcome.message });\n }\n });\n };\n\n const settle = <T,>({ control, action, onSettled }: { control: DeliveryControl; action: () => Promise<ActionOutcome<T>>; onSettled: (value: T) => void }) => {\n setWorking(control);\n setFailure(undefined);\n startTransition(async () => {\n const outcome = await action();\n setWorking(undefined);\n if (outcome.isOk) {\n onSettled(outcome.value);\n } else {\n setFailure(outcome.message);\n }\n });\n };\n\n /** Back to the list, saying what was done. */\n const leave = (said: string) => () => {\n setFocus(undefined);\n setDone(said);\n };\n\n const cardOf = ({ delivery, inBasket, opened, finished }: NonNullable<typeof focus>) => {\n const questionId = delivery.question?.id;\n return (\n <DeliveryCard\n key={delivery.deliveryId}\n delivery={delivery}\n opened={opened}\n meetingHref={delivery.meetingId === undefined ? undefined : meetingPathOf({ fleetId, meetingId: delivery.meetingId })}\n consoleUrl={consoleUrl}\n basketHref={inFleet(BRIDGE_BASKET_PATH, fleetId)}\n inBasket={inBasket}\n finished={finished}\n places={decidePlaces}\n note={note}\n working={working}\n failure={failure}\n onNoteChange={setNote}\n onAnswer={(option) => { settle({ control: option === undefined ? { kind: 'note' } : { kind: 'option', option }, action: () => answerDelivery({ fleet: fleetId, deliveryId: delivery.deliveryId, input: { questionId: delivery.question?.id, option, note } }), onSettled: leave(`Your answer went to ${delivery.from}.`) }); }\n }\n onPut={(option) => { settle({ control: option === null ? { kind: 'note' } : { kind: 'option', option }, action: () => putInBasket({ fleet: fleetId, deliveryId: delivery.deliveryId, option, optionLabel: delivery.question?.options.find(({ key }) => key === option)?.label ?? null, note }), onSettled: (put) => {\n setFocus({ delivery, opened, finished, inBasket: put });\n toasts.add(putToastOf(put.option));\n } }); }}\n onRemove={() => {\n if (questionId !== undefined) {\n settle({ control: { kind: 'remove' }, action: () => removeFromBasket(fleetId, questionId), onSettled: leave(`Your answer to “${delivery.title}” is out of the basket; the question still waits on you.`) });\n }\n }}\n onDone={() => { settle({ control: { kind: 'done' }, action: () => doneDelivery({ fleet: fleetId, deliveryId: delivery.deliveryId }), onSettled: leave(`Done with “${delivery.title}”.`) }); }}\n onFinishStep={(outcome) => {\n settle({\n control: { kind: outcome },\n action: () => doneDelivery({ fleet: fleetId, deliveryId: delivery.deliveryId, step: { outcome, note } }),\n onSettled: () => { setFocus({ delivery, inBasket, opened, finished: { outcome, note: note.trim(), at: new Date().toISOString() } }); },\n });\n }}\n onOpen={(deliveryId) => { open({ deliveryId, job: opened.job }); }}\n onSendMessage={delivery.alertShip === undefined || sendMessage === undefined ? undefined : (alertShip) => { sendMessage({ alertShip }); }}\n onBack={() => { setFocus(undefined); }}\n />\n );\n };\n\n const opened = focus === undefined ? undefined : { deliveryId: focus.delivery.deliveryId, job: focus.opened.job };\n return (\n <ItemSplit\n list={\n <div key={shownTimes} className=\"grid gap-4\">\n {done === undefined ? null : <Notice message={done} isFailure={false} />}\n {children({ open, openingId, putPick, puttingId, failure: openFailure, opened })}\n </div>\n }\n item={focus === undefined ? undefined : cardOf(focus)}\n />\n );\n}\n","'use client';\n\nimport { Dialog } from '@base-ui/react/dialog';\nimport { Toast } from '@base-ui/react/toast';\nimport { createContext, useContext, useRef, useState, useTransition, type ReactNode } from 'react';\n\nimport { readSendTo, sendShipMessage } from '../hooks/bridge-actions';\nimport { keyToSend, sendFailureOf, sentNoticeOf, type LastSend } from '../services/send-message';\nimport { SendMessageForm, type SendPhase, type SendToRead } from '../ui/send-message-form';\nimport { SentToasts } from '../ui/sent-toasts';\n\n/** Opens the form to send a ship a message, with the ship filled in when it opens from an alert. */\ntype OpenSendMessage = (from?: { alertShip: string }) => void;\n\nconst SendMessageContext = createContext<OpenSendMessage | undefined>(undefined);\n\n/** The opener of the form to send a ship a message, where a page offers it. */\nexport function useSendMessage(): OpenSendMessage | undefined {\n return useContext(SendMessageContext);\n}\n\n/** The form as it stands while open. */\ninterface Draft {\n readonly to: string | null;\n readonly isFromAlert: boolean;\n readonly message: string;\n readonly phase: SendPhase;\n}\n\n/**\n * Bridge's form to send a ship a message (aeolus-fleet #1547,\n * send-message.html), for the pages under it to open: from home, or from an\n * opened alert with its ship filled in. Opening reads who the person can\n * send to; Send goes as the person ship and waits until the fleet stored\n * it, then closes with a toast. It opens on what the person fills in first:\n * the ship from home, the message from an alert. A message is not an answer, so it never\n * goes through the basket. Cancel or close keeps nothing. Closed while it\n * sends, the send goes on: stored, the toast says so; failed, the form\n * opens again with the message kept, unless the person opened it anew. A send sent again\n * with the same ship and message carries the same key, so it arrives once.\n */\nfunction SendMessageDialog({ fleetId, children }: { fleetId: string; children: ReactNode }) {\n const [draft, setDraft] = useState<Draft | undefined>();\n const [sendTo, setSendTo] = useState<SendToRead>({ kind: 'reading' });\n const lastSend = useRef<LastSend | null>(null);\n /** How many times the form opened: a send answered after the person opened it anew leaves the new form alone. */\n const openings = useRef(0);\n const [, startTransition] = useTransition();\n const toasts = Toast.useToastManager();\n\n const open: OpenSendMessage = (from) => {\n openings.current += 1;\n lastSend.current = null;\n setDraft({ to: from?.alertShip ?? null, isFromAlert: from !== undefined, message: '', phase: { kind: 'writing' } });\n setSendTo({ kind: 'reading' });\n startTransition(async () => {\n const read = await readSendTo(fleetId);\n setSendTo(read.isOk ? { kind: 'read', value: read.value } : { kind: 'unreadable', message: read.message });\n });\n };\n\n const close = () => {\n setDraft(undefined);\n };\n\n const send = (sending: Draft & { to: string }) => {\n const key = keyToSend({ last: lastSend.current, to: sending.to, message: sending.message, newKey: crypto.randomUUID() });\n lastSend.current = { key, to: sending.to, message: sending.message };\n setDraft({ ...sending, phase: { kind: 'sending' } });\n const opening = openings.current;\n startTransition(async () => {\n const sent = await sendShipMessage({ fleet: fleetId, to: sending.to, payload: sending.message, idempotencyKey: key });\n const isOpenedAnew = openings.current !== opening;\n if (sent.isOk) {\n if (!isOpenedAnew) {\n setDraft(undefined);\n }\n const sentAs = sendTo.kind === 'read' ? sendTo.value.sentAs : 'your person ship';\n toasts.add({ ...sentNoticeOf({ to: sending.to, sentAs, storedAt: sent.value.storedAt }), timeout: 0 });\n } else if (!isOpenedAnew) {\n setDraft({ ...sending, phase: { kind: 'failed', failure: sendFailureOf(sent) } });\n }\n });\n };\n\n return (\n <SendMessageContext value={open}>\n {children}\n <Dialog.Root\n open={draft !== undefined}\n onOpenChange={(isOpen) => {\n if (!isOpen) {\n close();\n }\n }}\n >\n <Dialog.Portal>\n <Dialog.Backdrop className=\"fixed inset-0 z-40 bg-(--overlay)\" />\n <Dialog.Popup\n data-testid=\"bridge-send-dialog\"\n aria-label=\"Send a ship a message\"\n initialFocus={() => document.getElementById(draft?.to === null ? 'bridge-send-to' : 'bridge-send-message')}\n className=\"fixed inset-0 z-50 bg-popover text-popover-foreground sm:inset-auto sm:top-[10vh] sm:left-1/2 sm:max-h-[80vh] sm:w-[min(34rem,calc(100vw-2rem))] sm:-translate-x-1/2 sm:overflow-auto sm:rounded-lg sm:border sm:border-border sm:shadow-lg\"\n >\n {draft === undefined ? null : (\n <SendMessageForm\n sendTo={sendTo}\n to={draft.to}\n isFromAlert={draft.isFromAlert}\n message={draft.message}\n phase={draft.phase}\n onPick={(to) => { setDraft({ ...draft, to, isFromAlert: false, phase: { kind: 'writing' } }); }}\n onWrite={(message) => { setDraft({ ...draft, message, phase: draft.phase.kind === 'failed' && draft.phase.failure.kind === 'refused' ? draft.phase : { kind: 'writing' } }); }}\n onSend={() => {\n if (draft.to !== null) {\n send({ ...draft, to: draft.to });\n }\n }}\n onClose={close}\n />\n )}\n </Dialog.Popup>\n </Dialog.Portal>\n </Dialog.Root>\n <SentToasts />\n </SendMessageContext>\n );\n}\n\n/** Offers the pages under it the form to send a ship a message, and the toasts it raises once a message is stored. */\nexport function SendMessageProvider({ fleetId, children }: { fleetId: string; children: ReactNode }) {\n return (\n <Toast.Provider>\n <SendMessageDialog fleetId={fleetId}>{children}</SendMessageDialog>\n </Toast.Provider>\n );\n}\n","'use client';\n\nimport { Combobox } from '@base-ui/react/combobox';\nimport { CircleAlert, Info, LoaderCircle, RotateCw, Search, Send, Ship, X } from 'lucide-react';\nimport { useState } from 'react';\n\nimport { BUTTONS } from '../../forms/ui/look';\nimport { STATE_LABELS, type ShipState } from '../fleet/services/your-fleet';\nimport { isSendable, shipsMatching, type SendableShip, type SendFailure } from '../services/send-message';\n\n/** Where the form stands: written in, on its way to the fleet, or failed, kept for the person. */\nexport type SendPhase = { readonly kind: 'writing' } | { readonly kind: 'sending' } | { readonly kind: 'failed'; readonly failure: SendFailure };\n\n/** Who the person can send to, as the form read it on opening: reading, read, or why it could not be read. */\nexport type SendToRead =\n | { readonly kind: 'reading' }\n | { readonly kind: 'read'; readonly value: { readonly sentAs: string; readonly ships: readonly SendableShip[] } }\n | { readonly kind: 'unreadable'; readonly message: string };\n\n/** Each state's tone, as Your fleet colours its word. */\nconst STATE_TONES: Record<ShipState, string> = {\n alert: 'bg-tone-attention-bg text-tone-attention-fg',\n waiting: 'bg-tone-waiting-bg text-tone-waiting-fg',\n working: 'bg-tone-ok-bg text-tone-ok-fg',\n idle: 'bg-tone-ended-bg text-tone-ended-fg',\n};\n\nconst FIELD = 'flex min-h-9 w-full items-center gap-2 rounded-md border border-input bg-background px-2';\n\n/** The ship picked, as a chip with its ship mark, and the button that clears it, on even while the form sends, as drawn. */\nfunction PickedShip({ to, isLocked, onClear, isRefused }: { to: string; isLocked: boolean; onClear: () => void; isRefused: boolean }) {\n return (\n <div data-testid=\"bridge-send-to\" className={`${FIELD} justify-between py-1 ${isLocked ? 'bg-muted' : ''} ${isRefused ? 'border-destructive ring-2 ring-tone-attention-border' : ''}`}>\n <span className=\"inline-flex items-center gap-1.5 rounded-sm border border-border bg-secondary px-1.5 py-0.5 font-mono text-code\">\n <Ship aria-hidden=\"true\" className=\"size-3.5 text-muted-foreground\" />\n {to}\n </span>\n <button type=\"button\" aria-label={`Clear ${to}`} onClick={onClear} className=\"inline-flex size-7 items-center justify-center rounded-md hover:bg-accent disabled:opacity-60\">\n <X aria-hidden=\"true\" className=\"size-4\" />\n </button>\n </div>\n );\n}\n\n/**\n * Picks the ship to send to, filtered as the person types: the ships their\n * person ship may send to. The list opens in the form, under To and at its\n * full width, pushing Message down, as drawn.\n */\nfunction ShipSearch({ sendTo, onPick }: { sendTo: SendToRead; onPick: (to: string) => void }) {\n const [typed, setTyped] = useState('');\n const [isListOpen, setIsListOpen] = useState(false);\n const ships = sendTo.kind === 'read' ? sendTo.value.ships : [];\n return (\n <Combobox.Root\n inline\n open={isListOpen}\n onOpenChange={setIsListOpen}\n items={ships}\n filteredItems={shipsMatching(ships, typed)}\n inputValue={typed}\n onInputValueChange={(value: string) => {\n setTyped(value);\n setIsListOpen(true);\n }}\n itemToStringLabel={(ship: SendableShip) => ship.name}\n value={null}\n onValueChange={(picked: SendableShip | null) => {\n if (picked !== null) {\n onPick(picked.name);\n }\n }}\n autoHighlight\n >\n <div className={`${FIELD} focus-within:border-ring focus-within:ring-2 focus-within:ring-ring/30`}>\n <Search aria-hidden=\"true\" className=\"size-4 text-muted-foreground\" />\n <Combobox.Input id=\"bridge-send-to\" data-testid=\"bridge-send-to-search\" placeholder=\"Search your fleet's ships\" onFocus={() => { setIsListOpen(true); }} className=\"h-9 w-full bg-transparent outline-none\" />\n </div>\n {isListOpen ? (\n <div data-testid=\"bridge-send-ships\" className=\"max-h-72 overflow-auto rounded-md border border-border bg-popover p-1 text-popover-foreground shadow-md\">\n <div className=\"px-2 py-1 text-caption text-muted-foreground\">Ships you can send to</div>\n <Combobox.Empty className=\"px-2 py-1 text-muted-foreground\">\n {sendTo.kind === 'reading' ? 'Reading the ships you can send to...' : sendTo.kind === 'unreadable' ? sendTo.message : 'No ship you can send to matches.'}\n </Combobox.Empty>\n <Combobox.List>\n {(ship: SendableShip) => (\n <Combobox.Item key={ship.name} value={ship} className=\"flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 data-highlighted:bg-accent\">\n <Ship aria-hidden=\"true\" className=\"size-4 text-muted-foreground\" />\n <span className=\"flex-1\">{ship.name}</span>\n {ship.state === null ? null : <span className={`rounded-sm px-1 text-caption ${STATE_TONES[ship.state]}`}>{STATE_LABELS[ship.state]}</span>}\n </Combobox.Item>\n )}\n </Combobox.List>\n </div>\n ) : null}\n </Combobox.Root>\n );\n}\n\n/** What the form says under the message: sending, or why the last send failed and what the person can do. */\nfunction PhaseLine({ phase }: { phase: SendPhase }) {\n switch (phase.kind) {\n case 'writing':\n return null;\n case 'sending':\n return (\n <p role=\"status\" data-testid=\"bridge-send-sending\" className=\"flex items-center gap-2\">\n <LoaderCircle aria-hidden=\"true\" className=\"size-4 animate-spin text-tone-waiting-fg\" />\n Sending. Bridge waits until the fleet has stored it.\n </p>\n );\n case 'failed':\n return (\n <p role=\"alert\" data-testid=\"bridge-send-failure\" className=\"flex items-start gap-2 text-destructive-text\">\n <CircleAlert aria-hidden=\"true\" className=\"mt-0.5 size-4 shrink-0\" />\n {phase.failure.kind === 'noAnswer' ? 'The fleet did not answer, so it may not be stored. Your message is kept here. Send again: it carries the same key, so it arrives once.' : 'Not sent. Your message is kept here: pick another ship, or cancel.'}\n </p>\n );\n }\n}\n\n/**\n * The form to send a ship a message (send-message.html), inside its dialog:\n * To, the ship picked or searched among those the person ship may send to;\n * the message; and Send, off until both are there. While it sends the form\n * locks. Failed, the message stays: no answer offers Send again, under the\n * same key; a refusal says the fleet's reason under To, for another ship\n * to be picked. Sending locks the message, Cancel and Send only; Close and\n * the clear of the ship stay on, as drawn. The line saying the ship came\n * from the alert goes once a send was tried. On the phone it fills the\n * screen, Send full width.\n */\nexport function SendMessageForm({\n sendTo,\n to,\n isFromAlert,\n message,\n phase,\n onPick,\n onWrite,\n onSend,\n onClose,\n}: {\n sendTo: SendToRead;\n to: string | null;\n /** Whether To was filled in from an opened alert and not changed since. */\n isFromAlert: boolean;\n message: string;\n phase: SendPhase;\n onPick: (to: string | null) => void;\n onWrite: (message: string) => void;\n onSend: () => void;\n onClose: () => void;\n}) {\n const isSending = phase.kind === 'sending';\n const failure = phase.kind === 'failed' ? phase.failure : undefined;\n const isNoAnswer = failure?.kind === 'noAnswer';\n const sentAs = sendTo.kind === 'read' ? sendTo.value.sentAs : undefined;\n const sendLabel = isSending ? (\n <>\n <LoaderCircle aria-hidden=\"true\" className=\"size-4 animate-spin\" />\n Sending...\n </>\n ) : isNoAnswer ? (\n <>\n <RotateCw aria-hidden=\"true\" className=\"size-4\" />\n Send again\n </>\n ) : (\n <>\n <Send aria-hidden=\"true\" className=\"size-4\" />\n Send\n </>\n );\n const isSendOff = isSending || !isSendable({ to, message }) || failure?.kind === 'refused';\n return (\n <form\n data-testid=\"bridge-send-form\"\n className=\"flex h-full flex-col\"\n onSubmit={(event) => {\n event.preventDefault();\n if (!isSendOff) {\n onSend();\n }\n }}\n >\n <div className=\"flex items-center gap-3 border-b border-border px-4 py-3 sm:border-0 sm:px-5 sm:pt-5 sm:pb-0\">\n <button type=\"button\" aria-label=\"Close\" onClick={onClose} className=\"inline-flex size-8 items-center justify-center rounded-md hover:bg-accent disabled:opacity-60 sm:order-last sm:ml-auto\">\n <X aria-hidden=\"true\" className=\"size-5\" />\n </button>\n <h2 className=\"text-heading font-semibold\">Send a ship a message</h2>\n </div>\n <div className=\"grid flex-1 content-start gap-4 overflow-auto px-4 py-4 sm:px-5\">\n <div className=\"grid gap-1.5\">\n <label htmlFor=\"bridge-send-to\" className=\"font-semibold\">\n To\n </label>\n {to === null ? (\n <ShipSearch sendTo={sendTo} onPick={onPick} />\n ) : (\n <PickedShip to={to} isLocked={isSending} isRefused={failure?.kind === 'refused'} onClear={() => { onPick(null); }} />\n )}\n {failure?.kind === 'refused' ? (\n <span data-testid=\"bridge-send-refusal\" className=\"text-destructive-text\">\n {failure.reason}\n </span>\n ) : isFromAlert && to !== null && phase.kind === 'writing' ? (\n <span className=\"text-caption text-muted-foreground\">Filled in from the alert; change it if you like.</span>\n ) : null}\n </div>\n <div className=\"grid gap-1.5\">\n <label htmlFor=\"bridge-send-message\" className=\"font-semibold\">\n Message\n </label>\n <textarea\n id=\"bridge-send-message\"\n data-testid=\"bridge-send-message\"\n disabled={isSending}\n rows={5}\n value={message}\n placeholder=\"Write what the ship should know or do.\"\n onChange={(event) => { onWrite(event.target.value); }}\n className=\"min-h-32 rounded-md border border-input bg-background px-3 py-2 disabled:bg-muted disabled:text-muted-foreground\"\n />\n <span className=\"text-caption text-muted-foreground\">Text or Markdown, up to 256 KB.</span>\n </div>\n <PhaseLine phase={phase} />\n </div>\n <div className=\"grid gap-3 border-t border-border px-4 py-3 sm:flex sm:items-center sm:justify-between sm:px-5\">\n <span className=\"flex items-center gap-2 text-caption text-muted-foreground\">\n <Info aria-hidden=\"true\" className=\"size-4\" />\n {sentAs === undefined ? 'Sent as your person ship.' : `Sent as ${sentAs}, your person ship.`}\n </span>\n <div className=\"flex gap-2\">\n <button type=\"button\" disabled={isSending} onClick={onClose} className=\"hidden h-9 items-center rounded-md px-4 font-medium hover:bg-accent disabled:opacity-60 sm:inline-flex\">\n Cancel\n </button>\n <button type=\"submit\" data-testid=\"bridge-send\" disabled={isSendOff} aria-busy={isSending} className={`${BUTTONS.primary} h-11 w-full sm:h-9 sm:w-auto`}>\n {sendLabel}\n </button>\n </div>\n </div>\n </form>\n );\n}\n","/**\n * Your fleet as Bridge shows it (Bridge home, as Harbour draws it,\n * docs/design/fleet-overview): each state's word and tone, each group's\n * name, and Harbour's lead line. Pure view logic, no React and no API client.\n */\nimport type { inferRouterOutputs } from '@trpc/server';\n\nimport type { GatewayRouter } from '../../../../../src/adapters/trpc/router.js';\n\n/** Your fleet as the API answers it: the ship count, how many are in each state, and the tiles by group. */\nexport type YourFleet = inferRouterOutputs<GatewayRouter>['people']['yourFleet'];\n\nexport type FleetGroup = YourFleet['groups'][number]['group'];\n\nexport type ShipState = keyof YourFleet['counts'];\n\nexport type FleetTile = YourFleet['groups'][number]['tiles'][number];\n\n/** The states in the order the numbers show them. */\nexport const SHIP_STATES: readonly ShipState[] = ['alert', 'waiting', 'working', 'idle'];\n\nexport const STATE_LABELS: Record<ShipState, string> = { alert: 'Alert', waiting: 'Waiting', working: 'Working', idle: 'Idle' };\n\nexport const GROUP_LABELS: Record<FleetGroup, string> = { people: 'People', agents: 'Agents', plugins: 'Plugins', throughTheGateway: 'Through the gateway' };\n\n/** Harbour's lead line words each state so; working and idle first, as most ships are. */\nconst SUMMARY_PARTS: readonly { state: ShipState; words: string }[] = [\n { state: 'working', words: 'working' },\n { state: 'idle', words: 'idle' },\n { state: 'waiting', words: 'waiting' },\n { state: 'alert', words: 'with an alert' },\n];\n\n/** How many ships, in words: \"1 ship\", \"15 ships\". */\nexport function shipsOf(count: number): string {\n return `${String(count)} ${count === 1 ? 'ship' : 'ships'}`;\n}\n\n/** Harbour's lead line: the ships, then how many are in each state any ship is in. */\nexport function summaryOf(fleet: YourFleet): string {\n if (fleet.shipCount === 0) {\n return 'No ships';\n }\n const parts = SUMMARY_PARTS.filter(({ state }) => fleet.counts[state] > 0).map(({ state, words }) => `${String(fleet.counts[state])} ${words}`);\n return `${shipsOf(fleet.shipCount)}: ${parts.join(', ')}`;\n}\n","'use client';\n\nimport { Toast } from '@base-ui/react/toast';\nimport { CircleCheck, X } from 'lucide-react';\n\n/** The toasts the form raised, each saying a message was sent and stored. */\nexport function SentToasts() {\n const { toasts } = Toast.useToastManager();\n return (\n <Toast.Portal>\n <Toast.Viewport className=\"fixed right-4 bottom-4 z-50 grid w-[min(24rem,calc(100vw-2rem))] gap-2\">\n {toasts.map((toast) => (\n <Toast.Root key={toast.id} toast={toast} data-testid=\"bridge-send-toast\" className=\"rounded-lg border border-border bg-popover px-4 py-3 text-popover-foreground shadow-lg\">\n <Toast.Content className=\"flex items-start gap-3\">\n <CircleCheck aria-hidden=\"true\" className=\"mt-0.5 size-4 shrink-0 text-tone-ok-fg\" />\n <div className=\"grid flex-1 gap-1\">\n <Toast.Title className=\"font-semibold\" />\n <Toast.Description className=\"text-muted-foreground\" />\n </div>\n <Toast.Close aria-label=\"Close\" className=\"inline-flex size-7 items-center justify-center rounded-md hover:bg-accent\">\n <X aria-hidden=\"true\" className=\"size-4\" />\n </Toast.Close>\n </Toast.Content>\n </Toast.Root>\n ))}\n </Toast.Viewport>\n </Toast.Portal>\n );\n}\n","'use client';\n\nimport { Toast } from '@base-ui/react/toast';\nimport { ShoppingBasket } from 'lucide-react';\n\n/** What a toast says: what happened, then what it means. */\nexport interface ToastWords {\n readonly title: string;\n readonly description: string;\n}\n\n/** What the toast says once an answer is in the basket (basket.html): what went in, not sent, still waiting. */\nexport function putToastOf(option: number | null): ToastWords {\n return { title: option === null ? 'Your note alone in the basket' : `Option ${String(option)} in the basket`, description: 'Not sent. Still waiting on you until you send it.' };\n}\n\n/** The toasts Bridge raised for the basket, each behind the basket icon, on the popover, gone by themselves: at the left on a desktop and none on a phone, as basket.html draws them. */\nexport function BasketToasts() {\n const { toasts } = Toast.useToastManager();\n return (\n <Toast.Portal>\n <Toast.Viewport className=\"fixed bottom-4 left-4 z-50 hidden w-[min(24rem,calc(100vw-2rem))] gap-2 sm:grid\">\n {toasts.map((toast) => (\n <Toast.Root key={toast.id} toast={toast} data-testid=\"bridge-basket-toast\" className=\"flex items-start gap-3 rounded-lg border border-border bg-popover p-4 text-popover-foreground shadow-lg\">\n <ShoppingBasket aria-hidden className=\"mt-0.5 size-4 shrink-0\" />\n <Toast.Content className=\"grid flex-1 gap-1\">\n <Toast.Title className=\"font-medium\" />\n <Toast.Description className=\"text-caption text-muted-foreground\" />\n </Toast.Content>\n </Toast.Root>\n ))}\n </Toast.Viewport>\n </Toast.Portal>\n );\n}\n","/* __next_internal_action_entry_do_not_use__ [{\"4053d936439268d18b4bb24ccb80741d4998f4a69e\":{\"name\":\"readSendTo\"}},\"web/features/bridge/hooks/bridge-actions.ts\",\"\"] */\"use turbopack: no side effects\";import{createServerReference,callServer,findSourceMapURL}from\"private-next-rsc-action-client-wrapper\";const $$RSC_SERVER_ACTION_8=/*#__PURE__*/createServerReference(\"4053d936439268d18b4bb24ccb80741d4998f4a69e\",callServer,void 0,findSourceMapURL,\"readSendTo\");export{$$RSC_SERVER_ACTION_8 as readSendTo};","/* __next_internal_action_entry_do_not_use__ [{\"4085d7bd3cb14a5b63344a43b7dfdb8f4079e95e2a\":{\"name\":\"sendShipMessage\"}},\"web/features/bridge/hooks/bridge-actions.ts\",\"\"] */\"use turbopack: no side effects\";import{createServerReference,callServer,findSourceMapURL}from\"private-next-rsc-action-client-wrapper\";const $$RSC_SERVER_ACTION_9=/*#__PURE__*/createServerReference(\"4085d7bd3cb14a5b63344a43b7dfdb8f4079e95e2a\",callServer,void 0,findSourceMapURL,\"sendShipMessage\");export{$$RSC_SERVER_ACTION_9 as sendShipMessage};","/**\n * Bridge's form to send a ship a message (aeolus-fleet #1547,\n * send-message.html): which ships it offers, when Send is on, the key a\n * send carries, why one failed, what the toast says once the fleet stored\n * it, and the ship an opened alert is about. Pure view logic, no React and\n * no API client.\n */\nimport { ALERT_CONTENT_TYPE } from '@aeolus-fleet/common';\nimport type { inferRouterOutputs } from '@trpc/server';\nimport { z } from 'zod';\n\nimport type { GatewayRouter } from '../../../../src/adapters/trpc/router.js';\nimport { SHIP_STATES, type ShipState, type YourFleet } from '../fleet/services/your-fleet';\n\n/** Who the person can send a message to, as the API answers it: the ships their person ship may send to now, and the name it sends as. */\nexport type SendTo = inferRouterOutputs<GatewayRouter>['people']['sendTo'];\n\n/** A ship the form offers: by name, with its state as Your fleet shows it, none where Your fleet does not show the ship. */\nexport interface SendableShip {\n readonly name: string;\n readonly state: ShipState | null;\n}\n\n/**\n * The ships the person ship may send to, each in its state as Your fleet\n * shows it, in Your fleet's order: alerts first, then waiting, working and\n * idle, ties by name; a ship Your fleet does not show, or every ship when it\n * could not be read, comes after, with no state.\n */\nexport function sendableShipsOf(ships: readonly string[], fleet: YourFleet | undefined): readonly SendableShip[] {\n const states = new Map((fleet?.groups ?? []).flatMap(({ tiles }) => tiles.map(({ name, state }) => [name, state] as const)));\n const rank = (state: ShipState | null) => (state === null ? SHIP_STATES.length : SHIP_STATES.indexOf(state));\n return ships\n .map((name) => ({ name, state: states.get(name) ?? null }))\n .toSorted((one, other) => rank(one.state) - rank(other.state) || one.name.localeCompare(other.name));\n}\n\n/** The ships whose name holds what the person typed, whatever its case; every ship while nothing is typed. */\nexport function shipsMatching(ships: readonly SendableShip[], typed: string): readonly SendableShip[] {\n const sought = typed.trim().toLowerCase();\n return sought === '' ? ships : ships.filter(({ name }) => name.toLowerCase().includes(sought));\n}\n\n/** Send is on once a ship is picked and something is written. */\nexport function isSendable({ to, message }: { to: string | null; message: string }): boolean {\n return to !== null && message.trim() !== '';\n}\n\n/** A send the form made: its key, and the ship and message it carried. */\nexport interface LastSend {\n readonly key: string;\n readonly to: string;\n readonly message: string;\n}\n\n/**\n * The key a send carries: the last send's again while the ship and the\n * message are the same, so a message sent again arrives once; a new one\n * otherwise, as a changed message is a new message.\n */\nexport function keyToSend({ last, to, message, newKey }: { last: LastSend | null; to: string; message: string; newKey: string }): string {\n return last !== null && last.to === to && last.message === message ? last.key : newKey;\n}\n\n/** Why a send failed: the fleet refused it, in its own words, or no answer came, so it may be stored. */\nexport type SendFailure = { readonly kind: 'refused'; readonly reason: string } | { readonly kind: 'noAnswer' };\n\n/** The API's codes for a send the fleet refused: its reason is the person's to read. */\nconst REFUSED_CODES = new Set(['BAD_REQUEST', 'FORBIDDEN']);\n\n/** A refusal when the fleet refused the send; no answer for anything else, as the message may be stored. */\nexport function sendFailureOf({ code, message }: { code?: string | undefined; message: string }): SendFailure {\n return code !== undefined && REFUSED_CODES.has(code) ? { kind: 'refused', reason: message } : { kind: 'noAnswer' };\n}\n\n/** Where a time shows to the minute in an ISO 8601 time: hours and minutes, in UTC. */\nconst MINUTE = { start: 11, end: 16 } as const;\n\n/** What the toast says once the fleet stored the message: to whom, when in UTC as every Bridge time, and as which person ship. */\nexport function sentNoticeOf({ to, sentAs, storedAt }: { to: string; sentAs: string; storedAt: string }): { title: string; description: string } {\n return {\n title: `Sent to ${to}`,\n description: `Stored by the fleet at ${new Date(storedAt).toISOString().slice(MINUTE.start, MINUTE.end)} UTC, sent as ${sentAs}. ${to} receives it when it next looks.`,\n };\n}\n\n/** What Bridge reads of an alert to send its ship a message: the ship, by name. */\nconst alertShipSchema = z.object({ ship: z.object({ name: z.string().min(1) }) });\n\n/** The ship an alert is about, by name; none for any other message, or an alert whose payload does not read. */\nexport function alertShipOf(opened: { contentType: string; payload: string }): string | undefined {\n const [essence = ''] = opened.contentType.split(';');\n if (essence.trim().toLowerCase() !== ALERT_CONTENT_TYPE) {\n return undefined;\n }\n try {\n return alertShipSchema.safeParse(JSON.parse(opened.payload)).data?.ship.name;\n } catch {\n return undefined;\n }\n}\n","import createLucideIcon from '../createLucideIcon';\nimport type { LucideIconNode, LucideIconData } from '../types';\n\nexport const __iconData: LucideIconData = {\n name: 'rotate-cw',\n size: 24,\n node: [\n ['path', { d: 'M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8', key: '1p45f6' }],\n ['path', { d: 'M21 3v5h-5', key: '1q7to0' }],\n ],\n};\n\n/**\n * @deprecated Access `__iconData` instead.\n */\nexport const __iconNode: LucideIconNode[] = __iconData.node;\n\n/**\n * @component @name RotateCw\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMjEgMTJhOSA5IDAgMSAxLTktOWMyLjUyIDAgNC45MyAxIDYuNzQgMi43NEwyMSA4IiAvPgogIDxwYXRoIGQ9Ik0yMSAzdjVoLTUiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/rotate-cw\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst RotateCw = createLucideIcon(__iconData);\n\nexport default RotateCw;\n","/** Where a meeting's page is, for server and client code alike. */\n\n/** The meeting page's address, before the meeting's id. */\nexport const MEETINGS_PATH = '/meetings';\n\n/** The address of a meeting's page in a fleet, at the page of contributions after the cursor, if one is given. */\nexport function meetingPathOf(meeting: { fleetId: string; meetingId: string; cursor?: string }): string {\n const query = new URLSearchParams({ fleet: meeting.fleetId, ...(meeting.cursor === undefined ? {} : { cursor: meeting.cursor }) });\n return `${MEETINGS_PATH}/${encodeURIComponent(meeting.meetingId)}?${query.toString()}`;\n}\n","/* __next_internal_action_entry_do_not_use__ [{\"40fb3c9b60f409e9d7f4301b0cd5dbbb0079b0b5ea\":{\"name\":\"answerDelivery\"}},\"web/features/bridge/hooks/bridge-actions.ts\",\"\"] */\"use turbopack: no side effects\";import{createServerReference,callServer,findSourceMapURL}from\"private-next-rsc-action-client-wrapper\";const $$RSC_SERVER_ACTION_2=/*#__PURE__*/createServerReference(\"40fb3c9b60f409e9d7f4301b0cd5dbbb0079b0b5ea\",callServer,void 0,findSourceMapURL,\"answerDelivery\");export{$$RSC_SERVER_ACTION_2 as answerDelivery};","/* __next_internal_action_entry_do_not_use__ [{\"4012c933c13b7b99c26d61a5bed3d60ed41fd5e253\":{\"name\":\"doneDelivery\"}},\"web/features/bridge/hooks/bridge-actions.ts\",\"\"] */\"use turbopack: no side effects\";import{createServerReference,callServer,findSourceMapURL}from\"private-next-rsc-action-client-wrapper\";const $$RSC_SERVER_ACTION_7=/*#__PURE__*/createServerReference(\"4012c933c13b7b99c26d61a5bed3d60ed41fd5e253\",callServer,void 0,findSourceMapURL,\"doneDelivery\");export{$$RSC_SERVER_ACTION_7 as doneDelivery};","/* __next_internal_action_entry_do_not_use__ [{\"609a2b2041824dadd08bf54ae421b7d5f7088bab02\":{\"name\":\"openDelivery\"}},\"web/features/bridge/hooks/bridge-actions.ts\",\"\"] */\"use turbopack: no side effects\";import{createServerReference,callServer,findSourceMapURL}from\"private-next-rsc-action-client-wrapper\";const $$RSC_SERVER_ACTION_1=/*#__PURE__*/createServerReference(\"609a2b2041824dadd08bf54ae421b7d5f7088bab02\",callServer,void 0,findSourceMapURL,\"openDelivery\");export{$$RSC_SERVER_ACTION_1 as openDelivery};","/* __next_internal_action_entry_do_not_use__ [{\"407a6fe3f2e6041fa40819ae482a35a393193dd1b9\":{\"name\":\"putInBasket\"}},\"web/features/bridge/hooks/bridge-actions.ts\",\"\"] */\"use turbopack: no side effects\";import{createServerReference,callServer,findSourceMapURL}from\"private-next-rsc-action-client-wrapper\";const $$RSC_SERVER_ACTION_3=/*#__PURE__*/createServerReference(\"407a6fe3f2e6041fa40819ae482a35a393193dd1b9\",callServer,void 0,findSourceMapURL,\"putInBasket\");export{$$RSC_SERVER_ACTION_3 as putInBasket};","/* __next_internal_action_entry_do_not_use__ [{\"40b3a7c25633f32ede1058cdd28484f56b049150d9\":{\"name\":\"putPickInBasket\"}},\"web/features/bridge/hooks/bridge-actions.ts\",\"\"] */\"use turbopack: no side effects\";import{createServerReference,callServer,findSourceMapURL}from\"private-next-rsc-action-client-wrapper\";const $$RSC_SERVER_ACTION_4=/*#__PURE__*/createServerReference(\"40b3a7c25633f32ede1058cdd28484f56b049150d9\",callServer,void 0,findSourceMapURL,\"putPickInBasket\");export{$$RSC_SERVER_ACTION_4 as putPickInBasket};"],"names":["$$RSC_SERVER_ACTION_5","SHIP_STATES","STATE_LABELS","alert","waiting","working","idle","GROUP_LABELS","people","agents","plugins","throughTheGateway","SUMMARY_PARTS","state","words","shipsOf","count","String","summaryOf","fleet","shipCount","parts","filter","counts","map","join","MEETINGS_PATH","meetingPathOf","meeting","query","URLSearchParams","fleetId","cursor","undefined","encodeURIComponent","meetingId","toString"],"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,EAAA,UAAU,CAAC,KAAK,EAAE,EAAA,gBAAgB,CAAC,uCCAjJ,IAAM,EAAmC,CAAA,EAAA,EAAA,iBAAb,IAAa,AAAqB,EAAC,KAAxB,wCAAqE,EAAA,UAAU,CAAC,KAAK,EAAE,EAAA,gBAAgBL,CAAC,qCCA/I,IAAM,EAAmC,CAAA,EAAA,EAAA,iBAAb,IAAa,AAAqB,EAAC,KAAxB,wCAAqE,EAAA,UAAU,CAAC,KAAK,EAAE,EAAA,gBAAgBA,CAAC,qCCAhJJ,IAAM,EAAmC,CAAA,EAAA,EAAA,iBAAb,IAAkC,AAArB,EAAsB,KAAxB,wCAAqE,EAAA,UAAU,CAAC,KAAK,EAAE,EAAA,gBAAgB,CAACI,oCCA3I,IAAM,EAAmC,CAAA,EAAA,EAAA,iBAAb,IAAa,AAAqB,EAAC,KAAxB,wCAAqE,EAAA,UAAU,CAAC,KAAKZ,EAAE,EAAA,gBAAgB,CAAC","ignoreList":[10]}
1
+ {"version":3,"sources":["../../../../../web/features/bridge/hooks/data%3A33c25a%20%3Ctext/javascript%3E","../../../../../web/features/bridge/state/item-focus.tsx","../../../../../web/features/bridge/state/send-message.tsx","../../../../../web/features/bridge/ui/send-message-form.tsx","../../../../../web/features/bridge/fleet/services/your-fleet.ts","../../../../../web/features/bridge/ui/sent-toasts.tsx","../../../../../web/features/bridge/ui/basket-toast.tsx","../../../../../web/features/bridge/hooks/data%3A7c59e8%20%3Ctext/javascript%3E","../../../../../web/features/bridge/hooks/data%3A2ab6e6%20%3Ctext/javascript%3E","../../../../../web/features/bridge/services/send-message.ts","../../../../../node_modules/lucide-react/src/icons/rotate-cw.ts","../../../../../web/features/meeting/paths.ts","../../../../../web/features/bridge/hooks/data%3Acedf13%20%3Ctext/javascript%3E","../../../../../web/features/bridge/hooks/data%3Ac22581%20%3Ctext/javascript%3E","../../../../../web/features/bridge/hooks/data%3A7b9f0c%20%3Ctext/javascript%3E","../../../../../web/features/bridge/hooks/data%3A174fe4%20%3Ctext/javascript%3E","../../../../../web/features/bridge/hooks/data%3A8743ae%20%3Ctext/javascript%3E"],"sourcesContent":["/* __next_internal_action_entry_do_not_use__ [{\"600027e660d1eb6aa8b21edba45ec532d962d5bb53\":{\"name\":\"removeFromBasket\"}},\"web/features/bridge/hooks/bridge-actions.ts\",\"\"] */\"use turbopack: no side effects\";import{createServerReference,callServer,findSourceMapURL}from\"private-next-rsc-action-client-wrapper\";const $$RSC_SERVER_ACTION_5=/*#__PURE__*/createServerReference(\"600027e660d1eb6aa8b21edba45ec532d962d5bb53\",callServer,void 0,findSourceMapURL,\"removeFromBasket\");export{$$RSC_SERVER_ACTION_5 as removeFromBasket};","'use client';\n\nimport { Toast } from '@base-ui/react/toast';\nimport { useState, useTransition, type ReactNode } from 'react';\n\nimport { meetingPathOf } from '../../meeting/paths';\nimport { inFleet } from '../../../lib/gateway-api/page-account';\nimport { answerDelivery, doneDelivery, openDelivery, putInBasket, putPickInBasket, removeFromBasket, type ActionOutcome } from '../hooks/bridge-actions';\nimport { BRIDGE_BASKET_PATH } from '../paths';\nimport type { FocusedDelivery } from '../services/deliveries';\nimport { openedScreenOf } from '../services/shell';\nimport type { HomeItem } from '../services/items';\nimport type { RoutedPlace } from '../services/routing';\nimport { BasketToasts, putToastOf } from '../ui/basket-toast';\nimport { DeliveryCard, type DeliveryControl, type InBasket, type Opened, type StepFinished } from '../ui/delivery-card';\nimport { ItemSplit } from '../ui/item-split';\nimport { Notice } from '../ui/notice';\nimport { SendMessageProvider, useSendMessage } from './send-message';\nimport { useOpenedItem } from './opened-item';\n\n/** An item to open: by its delivery, with its job, whether an alert, whether it was new, and the answer to it in the basket, if any. A replacement opened from its stale item is new. */\nexport interface ToOpen {\n readonly deliveryId: string;\n readonly job: HomeItem['job'];\n readonly isAlert?: boolean;\n readonly state?: HomeItem['state'];\n readonly inBasket?: InBasket | null;\n}\n\n/** A question to put its asker's pick in the basket from its row: by its delivery, from its asker. */\nexport interface ToPut {\n readonly deliveryId: string;\n readonly from: string;\n}\n\n/** What a list of items gets to open one or put a pick in the basket from its row: the presses, the one opening or putting, and why one could not be. */\nexport interface ItemOpening {\n readonly open: (item: ToOpen) => void;\n readonly openingId: string | undefined;\n readonly putPick: (item: ToPut, option: number) => void;\n readonly puttingId: string | undefined;\n readonly failure: { deliveryId: string; message: string } | undefined;\n /** The item open beside the list, by its delivery and job; none while the list is shown alone. */\n readonly opened: { readonly deliveryId: string; readonly job: HomeItem['job'] } | undefined;\n}\n\n/**\n * A list of Bridge's items with one in focus at a time. Opening is the\n * person's own act, so it is a press, never a link: the gateway acknowledges\n * the item for them, and it is shown whole. An alert or a notice seen is\n * done at once (CC16), so it shows with no answer to give, as does a\n * question its asker withdrew or replaced; a replaced one opens its\n * replacement. A step ends done or cannot with the note, sent at once,\n * never through the basket (CC23), and stays open showing its outcome. A question's answer goes in the basket (CC24): the\n * question stays open saying so, with a toast (basket.html), and comes out\n * of it there; from its row, a new question's pick goes in it at once, opened by the same press. Answering or being done says so in place, and the page reads\n * itself again. A question names where it shows when the page read its places.\n * An opened alert offers to send its ship a message, as home offers to send\n * any ship one (aeolus-fleet #1547). The open item shows beside its list on\n * a desktop, and on its own screen on a phone (aeolus-fleet#1538).\n */\nexport function ItemFocus({ fleetId, decidePlaces, consoleUrl, children }: { fleetId: string; decidePlaces?: readonly RoutedPlace[]; /** The fleet's console, where an opened alert's ship shows its Health. */ consoleUrl?: string; children: (opening: ItemOpening) => ReactNode }) {\n return (\n <SendMessageProvider fleetId={fleetId}>\n <Toast.Provider>\n <FocusedItems fleetId={fleetId} decidePlaces={decidePlaces} consoleUrl={consoleUrl}>{children}</FocusedItems>\n <BasketToasts />\n </Toast.Provider>\n </SendMessageProvider>\n );\n}\n\nfunction FocusedItems({ fleetId, decidePlaces, consoleUrl, children }: { fleetId: string; decidePlaces?: readonly RoutedPlace[]; consoleUrl?: string; children: (opening: ItemOpening) => ReactNode }) {\n const toasts = Toast.useToastManager();\n const sendMessage = useSendMessage();\n const [focus, setFocus] = useState<{ delivery: FocusedDelivery; opened: Opened; inBasket: InBasket | null; finished: StepFinished | null } | undefined>();\n const [note, setNote] = useState('');\n const [openingId, setOpeningId] = useState<string | undefined>();\n const [puttingId, setPuttingId] = useState<string | undefined>();\n const [working, setWorking] = useState<DeliveryControl | undefined>();\n const [openFailure, setOpenFailure] = useState<{ deliveryId: string; message: string } | undefined>();\n const [failure, setFailure] = useState<string | undefined>();\n const [done, setDone] = useState<string | undefined>();\n const [, startTransition] = useTransition();\n // Each pick put from a row shows the list anew, as it is after a card: it reads the page as the action left it.\n const [shownTimes, setShownTimes] = useState(0);\n useOpenedItem(focus === undefined ? undefined : openedScreenOf(focus.opened.job), () => {\n setFocus(undefined);\n });\n\n const open = (item: ToOpen) => {\n setOpeningId(item.deliveryId);\n setOpenFailure(undefined);\n setDone(undefined);\n startTransition(async () => {\n const outcome = await openDelivery(fleetId, item.deliveryId);\n setOpeningId(undefined);\n if (outcome.isOk) {\n const inBasket = item.inBasket ?? null;\n setFocus({ delivery: outcome.value, opened: { job: item.job, isAlert: item.isAlert ?? false, wasNew: item.state !== 'seen' }, inBasket, finished: null });\n setNote(inBasket?.note ?? '');\n setFailure(undefined);\n } else {\n setOpenFailure({ deliveryId: item.deliveryId, message: outcome.message });\n }\n });\n };\n\n /** Opens a question and puts its asker's pick in the basket, with no note, from its row: nothing is sent (CC24). */\n const putPick = (item: ToPut, option: number) => {\n setPuttingId(item.deliveryId);\n setOpenFailure(undefined);\n setDone(undefined);\n startTransition(async () => {\n const outcome = await putPickInBasket({ fleet: fleetId, deliveryId: item.deliveryId, option });\n setPuttingId(undefined);\n if (outcome.isOk) {\n setDone(`Option ${String(option)} is in the basket, not sent: ${item.from} receives it when you send the basket.`);\n setShownTimes((times) => times + 1);\n } else {\n setOpenFailure({ deliveryId: item.deliveryId, message: outcome.message });\n }\n });\n };\n\n const settle = <T,>({ control, action, onSettled }: { control: DeliveryControl; action: () => Promise<ActionOutcome<T>>; onSettled: (value: T) => void }) => {\n setWorking(control);\n setFailure(undefined);\n startTransition(async () => {\n const outcome = await action();\n setWorking(undefined);\n if (outcome.isOk) {\n onSettled(outcome.value);\n } else {\n setFailure(outcome.message);\n }\n });\n };\n\n /** Back to the list, saying what was done. */\n const leave = (said: string) => () => {\n setFocus(undefined);\n setDone(said);\n };\n\n const cardOf = ({ delivery, inBasket, opened, finished }: NonNullable<typeof focus>) => {\n const questionId = delivery.question?.id;\n return (\n <DeliveryCard\n key={delivery.deliveryId}\n delivery={delivery}\n opened={opened}\n meetingHref={delivery.meetingId === undefined ? undefined : meetingPathOf({ fleetId, meetingId: delivery.meetingId })}\n consoleUrl={consoleUrl}\n basketHref={inFleet(BRIDGE_BASKET_PATH, fleetId)}\n inBasket={inBasket}\n finished={finished}\n places={decidePlaces}\n note={note}\n working={working}\n failure={failure}\n onNoteChange={setNote}\n onAnswer={(option) => { settle({ control: option === undefined ? { kind: 'note' } : { kind: 'option', option }, action: () => answerDelivery({ fleet: fleetId, deliveryId: delivery.deliveryId, input: { questionId: delivery.question?.id, option, note } }), onSettled: leave(`Your answer went to ${delivery.from}.`) }); }\n }\n onPut={(option) => { settle({ control: option === null ? { kind: 'note' } : { kind: 'option', option }, action: () => putInBasket({ fleet: fleetId, deliveryId: delivery.deliveryId, option, optionLabel: delivery.question?.options.find(({ key }) => key === option)?.label ?? null, note }), onSettled: (put) => {\n setFocus({ delivery, opened, finished, inBasket: put });\n toasts.add(putToastOf(put.option));\n } }); }}\n onRemove={() => {\n if (questionId !== undefined) {\n settle({ control: { kind: 'remove' }, action: () => removeFromBasket(fleetId, questionId), onSettled: leave(`Your answer to “${delivery.title}” is out of the basket; the question still waits on you.`) });\n }\n }}\n onDone={() => { settle({ control: { kind: 'done' }, action: () => doneDelivery({ fleet: fleetId, deliveryId: delivery.deliveryId }), onSettled: leave(`Done with “${delivery.title}”.`) }); }}\n onFinishStep={(outcome) => {\n settle({\n control: { kind: outcome },\n action: () => doneDelivery({ fleet: fleetId, deliveryId: delivery.deliveryId, step: { outcome, note } }),\n onSettled: () => { setFocus({ delivery, inBasket, opened, finished: { outcome, note: note.trim(), at: new Date().toISOString() } }); },\n });\n }}\n onOpen={(deliveryId) => { open({ deliveryId, job: opened.job }); }}\n onSendMessage={delivery.alertShip === undefined || sendMessage === undefined ? undefined : (alertShip) => { sendMessage({ alertShip }); }}\n onBack={() => { setFocus(undefined); }}\n />\n );\n };\n\n const opened = focus === undefined ? undefined : { deliveryId: focus.delivery.deliveryId, job: focus.opened.job };\n return (\n <ItemSplit\n list={\n <div key={shownTimes} className=\"grid gap-4\">\n {done === undefined ? null : <Notice message={done} isFailure={false} />}\n {children({ open, openingId, putPick, puttingId, failure: openFailure, opened })}\n </div>\n }\n item={focus === undefined ? undefined : cardOf(focus)}\n />\n );\n}\n","'use client';\n\nimport { Dialog } from '@base-ui/react/dialog';\nimport { Toast } from '@base-ui/react/toast';\nimport { createContext, useContext, useRef, useState, useTransition, type ReactNode } from 'react';\n\nimport { readSendTo, sendShipMessage } from '../hooks/bridge-actions';\nimport { keyToSend, sendFailureOf, sentNoticeOf, type LastSend } from '../services/send-message';\nimport { SendMessageForm, type SendPhase, type SendToRead } from '../ui/send-message-form';\nimport { SentToasts } from '../ui/sent-toasts';\n\n/** Opens the form to send a ship a message, with the ship filled in when it opens from an alert. */\ntype OpenSendMessage = (from?: { alertShip: string }) => void;\n\nconst SendMessageContext = createContext<OpenSendMessage | undefined>(undefined);\n\n/** The opener of the form to send a ship a message, where a page offers it. */\nexport function useSendMessage(): OpenSendMessage | undefined {\n return useContext(SendMessageContext);\n}\n\n/** The form as it stands while open. */\ninterface Draft {\n readonly to: string | null;\n readonly isFromAlert: boolean;\n readonly message: string;\n readonly phase: SendPhase;\n}\n\n/**\n * Bridge's form to send a ship a message (aeolus-fleet #1547,\n * send-message.html), for the pages under it to open: from home, or from an\n * opened alert with its ship filled in. Opening reads who the person can\n * send to; Send goes as the person ship and waits until the fleet stored\n * it, then closes with a toast. It opens on what the person fills in first:\n * the ship from home, the message from an alert. A message is not an answer, so it never\n * goes through the basket. Cancel or close keeps nothing. Closed while it\n * sends, the send goes on: stored, the toast says so; failed, the form\n * opens again with the message kept, unless the person opened it anew. A send sent again\n * with the same ship and message carries the same key, so it arrives once.\n */\nfunction SendMessageDialog({ fleetId, children }: { fleetId: string; children: ReactNode }) {\n const [draft, setDraft] = useState<Draft | undefined>();\n const [sendTo, setSendTo] = useState<SendToRead>({ kind: 'reading' });\n const lastSend = useRef<LastSend | null>(null);\n /** How many times the form opened: a send answered after the person opened it anew leaves the new form alone. */\n const openings = useRef(0);\n const [, startTransition] = useTransition();\n const toasts = Toast.useToastManager();\n\n const open: OpenSendMessage = (from) => {\n openings.current += 1;\n lastSend.current = null;\n setDraft({ to: from?.alertShip ?? null, isFromAlert: from !== undefined, message: '', phase: { kind: 'writing' } });\n setSendTo({ kind: 'reading' });\n startTransition(async () => {\n const read = await readSendTo(fleetId);\n setSendTo(read.isOk ? { kind: 'read', value: read.value } : { kind: 'unreadable', message: read.message });\n });\n };\n\n const close = () => {\n setDraft(undefined);\n };\n\n const send = (sending: Draft & { to: string }) => {\n const key = keyToSend({ last: lastSend.current, to: sending.to, message: sending.message, newKey: crypto.randomUUID() });\n lastSend.current = { key, to: sending.to, message: sending.message };\n setDraft({ ...sending, phase: { kind: 'sending' } });\n const opening = openings.current;\n startTransition(async () => {\n const sent = await sendShipMessage({ fleet: fleetId, to: sending.to, payload: sending.message, idempotencyKey: key });\n const isOpenedAnew = openings.current !== opening;\n if (sent.isOk) {\n if (!isOpenedAnew) {\n setDraft(undefined);\n }\n const sentAs = sendTo.kind === 'read' ? sendTo.value.sentAs : 'your person ship';\n toasts.add({ ...sentNoticeOf({ to: sending.to, sentAs, storedAt: sent.value.storedAt }), timeout: 0 });\n } else if (!isOpenedAnew) {\n setDraft({ ...sending, phase: { kind: 'failed', failure: sendFailureOf(sent) } });\n }\n });\n };\n\n return (\n <SendMessageContext value={open}>\n {children}\n <Dialog.Root\n open={draft !== undefined}\n onOpenChange={(isOpen) => {\n if (!isOpen) {\n close();\n }\n }}\n >\n <Dialog.Portal>\n <Dialog.Backdrop className=\"fixed inset-0 z-40 bg-(--overlay)\" />\n <Dialog.Popup\n data-testid=\"bridge-send-dialog\"\n aria-label=\"Send a ship a message\"\n initialFocus={() => document.getElementById(draft?.to === null ? 'bridge-send-to' : 'bridge-send-message')}\n className=\"fixed inset-0 z-50 bg-popover text-popover-foreground sm:inset-auto sm:top-[10vh] sm:left-1/2 sm:max-h-[80vh] sm:w-[min(34rem,calc(100vw-2rem))] sm:-translate-x-1/2 sm:overflow-auto sm:rounded-lg sm:border sm:border-border sm:shadow-lg\"\n >\n {draft === undefined ? null : (\n <SendMessageForm\n sendTo={sendTo}\n to={draft.to}\n isFromAlert={draft.isFromAlert}\n message={draft.message}\n phase={draft.phase}\n onPick={(to) => { setDraft({ ...draft, to, isFromAlert: false, phase: { kind: 'writing' } }); }}\n onWrite={(message) => { setDraft({ ...draft, message, phase: draft.phase.kind === 'failed' && draft.phase.failure.kind === 'refused' ? draft.phase : { kind: 'writing' } }); }}\n onSend={() => {\n if (draft.to !== null) {\n send({ ...draft, to: draft.to });\n }\n }}\n onClose={close}\n />\n )}\n </Dialog.Popup>\n </Dialog.Portal>\n </Dialog.Root>\n <SentToasts />\n </SendMessageContext>\n );\n}\n\n/** Offers the pages under it the form to send a ship a message, and the toasts it raises once a message is stored. */\nexport function SendMessageProvider({ fleetId, children }: { fleetId: string; children: ReactNode }) {\n return (\n <Toast.Provider>\n <SendMessageDialog fleetId={fleetId}>{children}</SendMessageDialog>\n </Toast.Provider>\n );\n}\n","'use client';\n\nimport { Combobox } from '@base-ui/react/combobox';\nimport { CircleAlert, Info, LoaderCircle, RotateCw, Search, Send, Ship, X } from 'lucide-react';\nimport { useState } from 'react';\n\nimport { BUTTONS } from '../../forms/ui/look';\nimport { STATE_LABELS, type ShipState } from '../fleet/services/your-fleet';\nimport { isSendable, shipsMatching, type SendableShip, type SendFailure } from '../services/send-message';\n\n/** Where the form stands: written in, on its way to the fleet, or failed, kept for the person. */\nexport type SendPhase = { readonly kind: 'writing' } | { readonly kind: 'sending' } | { readonly kind: 'failed'; readonly failure: SendFailure };\n\n/** Who the person can send to, as the form read it on opening: reading, read, or why it could not be read. */\nexport type SendToRead =\n | { readonly kind: 'reading' }\n | { readonly kind: 'read'; readonly value: { readonly sentAs: string; readonly ships: readonly SendableShip[] } }\n | { readonly kind: 'unreadable'; readonly message: string };\n\n/** Each state's tone, as Your fleet colours its word. */\nconst STATE_TONES: Record<ShipState, string> = {\n alert: 'bg-tone-attention-bg text-tone-attention-fg',\n waiting: 'bg-tone-waiting-bg text-tone-waiting-fg',\n working: 'bg-tone-ok-bg text-tone-ok-fg',\n idle: 'bg-tone-ended-bg text-tone-ended-fg',\n};\n\nconst FIELD = 'flex min-h-9 w-full items-center gap-2 rounded-md border border-input bg-background px-2';\n\n/** The ship picked, as a chip with its ship mark, and the button that clears it, on even while the form sends, as drawn. */\nfunction PickedShip({ to, isLocked, onClear, isRefused }: { to: string; isLocked: boolean; onClear: () => void; isRefused: boolean }) {\n return (\n <div data-testid=\"bridge-send-to\" className={`${FIELD} justify-between py-1 ${isLocked ? 'bg-muted' : ''} ${isRefused ? 'border-destructive ring-2 ring-tone-attention-border' : ''}`}>\n <span className=\"inline-flex items-center gap-1.5 rounded-sm border border-border bg-secondary px-1.5 py-0.5 font-mono text-code\">\n <Ship aria-hidden=\"true\" className=\"size-3.5 text-muted-foreground\" />\n {to}\n </span>\n <button type=\"button\" aria-label={`Clear ${to}`} onClick={onClear} className=\"inline-flex size-7 items-center justify-center rounded-md hover:bg-accent disabled:opacity-60\">\n <X aria-hidden=\"true\" className=\"size-4\" />\n </button>\n </div>\n );\n}\n\n/**\n * Picks the ship to send to, filtered as the person types: the ships their\n * person ship may send to. The list opens in the form, under To and at its\n * full width, pushing Message down, as drawn.\n */\nfunction ShipSearch({ sendTo, onPick }: { sendTo: SendToRead; onPick: (to: string) => void }) {\n const [typed, setTyped] = useState('');\n const [isListOpen, setIsListOpen] = useState(false);\n const ships = sendTo.kind === 'read' ? sendTo.value.ships : [];\n return (\n <Combobox.Root\n inline\n open={isListOpen}\n onOpenChange={setIsListOpen}\n items={ships}\n filteredItems={shipsMatching(ships, typed)}\n inputValue={typed}\n onInputValueChange={(value: string) => {\n setTyped(value);\n setIsListOpen(true);\n }}\n itemToStringLabel={(ship: SendableShip) => ship.name}\n value={null}\n onValueChange={(picked: SendableShip | null) => {\n if (picked !== null) {\n onPick(picked.name);\n }\n }}\n autoHighlight\n >\n <div className={`${FIELD} focus-within:border-ring focus-within:ring-2 focus-within:ring-ring/30`}>\n <Search aria-hidden=\"true\" className=\"size-4 text-muted-foreground\" />\n <Combobox.Input id=\"bridge-send-to\" data-testid=\"bridge-send-to-search\" placeholder=\"Search your fleet's ships\" onFocus={() => { setIsListOpen(true); }} className=\"h-9 w-full bg-transparent outline-none\" />\n </div>\n {isListOpen ? (\n <div data-testid=\"bridge-send-ships\" className=\"max-h-72 overflow-auto rounded-md border border-border bg-popover p-1 text-popover-foreground shadow-md\">\n <div className=\"px-2 py-1 text-caption text-muted-foreground\">Ships you can send to</div>\n <Combobox.Empty className=\"px-2 py-1 text-muted-foreground\">\n {sendTo.kind === 'reading' ? 'Reading the ships you can send to...' : sendTo.kind === 'unreadable' ? sendTo.message : 'No ship you can send to matches.'}\n </Combobox.Empty>\n <Combobox.List>\n {(ship: SendableShip) => (\n <Combobox.Item key={ship.name} value={ship} className=\"flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 data-highlighted:bg-accent\">\n <Ship aria-hidden=\"true\" className=\"size-4 text-muted-foreground\" />\n <span className=\"flex-1\">{ship.name}</span>\n {ship.state === null ? null : <span className={`rounded-sm px-1 text-caption ${STATE_TONES[ship.state]}`}>{STATE_LABELS[ship.state]}</span>}\n </Combobox.Item>\n )}\n </Combobox.List>\n </div>\n ) : null}\n </Combobox.Root>\n );\n}\n\n/** What the form says under the message: sending, or why the last send failed and what the person can do. */\nfunction PhaseLine({ phase }: { phase: SendPhase }) {\n switch (phase.kind) {\n case 'writing':\n return null;\n case 'sending':\n return (\n <p role=\"status\" data-testid=\"bridge-send-sending\" className=\"flex items-center gap-2\">\n <LoaderCircle aria-hidden=\"true\" className=\"size-4 animate-spin text-tone-waiting-fg\" />\n Sending. Bridge waits until the fleet has stored it.\n </p>\n );\n case 'failed':\n return (\n <p role=\"alert\" data-testid=\"bridge-send-failure\" className=\"flex items-start gap-2 text-destructive-text\">\n <CircleAlert aria-hidden=\"true\" className=\"mt-0.5 size-4 shrink-0\" />\n {phase.failure.kind === 'noAnswer' ? 'The fleet did not answer, so it may not be stored. Your message is kept here. Send again: it carries the same key, so it arrives once.' : 'Not sent. Your message is kept here: pick another ship, or cancel.'}\n </p>\n );\n }\n}\n\n/**\n * The form to send a ship a message (send-message.html), inside its dialog:\n * To, the ship picked or searched among those the person ship may send to;\n * the message; and Send, off until both are there. While it sends the form\n * locks. Failed, the message stays: no answer offers Send again, under the\n * same key; a refusal says the fleet's reason under To, for another ship\n * to be picked. Sending locks the message, Cancel and Send only; Close and\n * the clear of the ship stay on, as drawn. The line saying the ship came\n * from the alert goes once a send was tried. On the phone it fills the\n * screen, Send full width.\n */\nexport function SendMessageForm({\n sendTo,\n to,\n isFromAlert,\n message,\n phase,\n onPick,\n onWrite,\n onSend,\n onClose,\n}: {\n sendTo: SendToRead;\n to: string | null;\n /** Whether To was filled in from an opened alert and not changed since. */\n isFromAlert: boolean;\n message: string;\n phase: SendPhase;\n onPick: (to: string | null) => void;\n onWrite: (message: string) => void;\n onSend: () => void;\n onClose: () => void;\n}) {\n const isSending = phase.kind === 'sending';\n const failure = phase.kind === 'failed' ? phase.failure : undefined;\n const isNoAnswer = failure?.kind === 'noAnswer';\n const sentAs = sendTo.kind === 'read' ? sendTo.value.sentAs : undefined;\n const sendLabel = isSending ? (\n <>\n <LoaderCircle aria-hidden=\"true\" className=\"size-4 animate-spin\" />\n Sending...\n </>\n ) : isNoAnswer ? (\n <>\n <RotateCw aria-hidden=\"true\" className=\"size-4\" />\n Send again\n </>\n ) : (\n <>\n <Send aria-hidden=\"true\" className=\"size-4\" />\n Send\n </>\n );\n const isSendOff = isSending || !isSendable({ to, message }) || failure?.kind === 'refused';\n return (\n <form\n data-testid=\"bridge-send-form\"\n className=\"flex h-full flex-col\"\n onSubmit={(event) => {\n event.preventDefault();\n if (!isSendOff) {\n onSend();\n }\n }}\n >\n <div className=\"flex items-center gap-3 border-b border-border px-4 py-3 sm:border-0 sm:px-5 sm:pt-5 sm:pb-0\">\n <button type=\"button\" aria-label=\"Close\" onClick={onClose} className=\"inline-flex size-8 items-center justify-center rounded-md hover:bg-accent disabled:opacity-60 sm:order-last sm:ml-auto\">\n <X aria-hidden=\"true\" className=\"size-5\" />\n </button>\n <h2 className=\"text-heading font-semibold\">Send a ship a message</h2>\n </div>\n <div className=\"grid flex-1 content-start gap-4 overflow-auto px-4 py-4 sm:px-5\">\n <div className=\"grid gap-1.5\">\n <label htmlFor=\"bridge-send-to\" className=\"font-semibold\">\n To\n </label>\n {to === null ? (\n <ShipSearch sendTo={sendTo} onPick={onPick} />\n ) : (\n <PickedShip to={to} isLocked={isSending} isRefused={failure?.kind === 'refused'} onClear={() => { onPick(null); }} />\n )}\n {failure?.kind === 'refused' ? (\n <span data-testid=\"bridge-send-refusal\" className=\"text-destructive-text\">\n {failure.reason}\n </span>\n ) : isFromAlert && to !== null && phase.kind === 'writing' ? (\n <span className=\"text-caption text-muted-foreground\">Filled in from the alert; change it if you like.</span>\n ) : null}\n </div>\n <div className=\"grid gap-1.5\">\n <label htmlFor=\"bridge-send-message\" className=\"font-semibold\">\n Message\n </label>\n <textarea\n id=\"bridge-send-message\"\n data-testid=\"bridge-send-message\"\n disabled={isSending}\n rows={5}\n value={message}\n placeholder=\"Write what the ship should know or do.\"\n onChange={(event) => { onWrite(event.target.value); }}\n className=\"min-h-32 rounded-md border border-input bg-background px-3 py-2 disabled:bg-muted disabled:text-muted-foreground\"\n />\n <span className=\"text-caption text-muted-foreground\">Text or Markdown, up to 256 KB.</span>\n </div>\n <PhaseLine phase={phase} />\n </div>\n <div className=\"grid gap-3 border-t border-border px-4 py-3 sm:flex sm:items-center sm:justify-between sm:px-5\">\n <span className=\"flex items-center gap-2 text-caption text-muted-foreground\">\n <Info aria-hidden=\"true\" className=\"size-4\" />\n {sentAs === undefined ? 'Sent as your person ship.' : `Sent as ${sentAs}, your person ship.`}\n </span>\n <div className=\"flex gap-2\">\n <button type=\"button\" disabled={isSending} onClick={onClose} className=\"hidden h-9 items-center rounded-md px-4 font-medium hover:bg-accent disabled:opacity-60 sm:inline-flex\">\n Cancel\n </button>\n <button type=\"submit\" data-testid=\"bridge-send\" disabled={isSendOff} aria-busy={isSending} className={`${BUTTONS.primary} h-11 w-full sm:h-9 sm:w-auto`}>\n {sendLabel}\n </button>\n </div>\n </div>\n </form>\n );\n}\n","/**\n * Your fleet as Bridge shows it (Bridge home, as Harbour draws it,\n * docs/design/fleet-overview): each state's word and tone, each group's\n * name, and Harbour's lead line. Pure view logic, no React and no API client.\n */\nimport type { inferRouterOutputs } from '@trpc/server';\n\nimport type { GatewayRouter } from '../../../../../src/adapters/trpc/router.js';\n\n/** Your fleet as the API answers it: the ship count, how many are in each state, and the tiles by group. */\nexport type YourFleet = inferRouterOutputs<GatewayRouter>['people']['yourFleet'];\n\nexport type FleetGroup = YourFleet['groups'][number]['group'];\n\nexport type ShipState = keyof YourFleet['counts'];\n\nexport type FleetTile = YourFleet['groups'][number]['tiles'][number];\n\n/** The states in the order the numbers show them. */\nexport const SHIP_STATES: readonly ShipState[] = ['alert', 'waiting', 'working', 'idle'];\n\nexport const STATE_LABELS: Record<ShipState, string> = { alert: 'Alert', waiting: 'Waiting', working: 'Working', idle: 'Idle' };\n\nexport const GROUP_LABELS: Record<FleetGroup, string> = { people: 'People', agents: 'Agents', plugins: 'Plugins', throughTheGateway: 'Through the gateway' };\n\n/** Harbour's lead line words each state so; working and idle first, as most ships are. */\nconst SUMMARY_PARTS: readonly { state: ShipState; words: string }[] = [\n { state: 'working', words: 'working' },\n { state: 'idle', words: 'idle' },\n { state: 'waiting', words: 'waiting' },\n { state: 'alert', words: 'with an alert' },\n];\n\n/** How many ships, in words: \"1 ship\", \"15 ships\". */\nexport function shipsOf(count: number): string {\n return `${String(count)} ${count === 1 ? 'ship' : 'ships'}`;\n}\n\n/** Harbour's lead line: the ships, then how many are in each state any ship is in. */\nexport function summaryOf(fleet: YourFleet): string {\n if (fleet.shipCount === 0) {\n return 'No ships';\n }\n const parts = SUMMARY_PARTS.filter(({ state }) => fleet.counts[state] > 0).map(({ state, words }) => `${String(fleet.counts[state])} ${words}`);\n return `${shipsOf(fleet.shipCount)}: ${parts.join(', ')}`;\n}\n","'use client';\n\nimport { Toast } from '@base-ui/react/toast';\nimport { CircleCheck, X } from 'lucide-react';\n\n/** The toasts the form raised, each saying a message was sent and stored. */\nexport function SentToasts() {\n const { toasts } = Toast.useToastManager();\n return (\n <Toast.Portal>\n <Toast.Viewport className=\"fixed right-4 bottom-4 z-50 grid w-[min(24rem,calc(100vw-2rem))] gap-2\">\n {toasts.map((toast) => (\n <Toast.Root key={toast.id} toast={toast} data-testid=\"bridge-send-toast\" className=\"rounded-lg border border-border bg-popover px-4 py-3 text-popover-foreground shadow-lg\">\n <Toast.Content className=\"flex items-start gap-3\">\n <CircleCheck aria-hidden=\"true\" className=\"mt-0.5 size-4 shrink-0 text-tone-ok-fg\" />\n <div className=\"grid flex-1 gap-1\">\n <Toast.Title className=\"font-semibold\" />\n <Toast.Description className=\"text-muted-foreground\" />\n </div>\n <Toast.Close aria-label=\"Close\" className=\"inline-flex size-7 items-center justify-center rounded-md hover:bg-accent\">\n <X aria-hidden=\"true\" className=\"size-4\" />\n </Toast.Close>\n </Toast.Content>\n </Toast.Root>\n ))}\n </Toast.Viewport>\n </Toast.Portal>\n );\n}\n","'use client';\n\nimport { Toast } from '@base-ui/react/toast';\nimport { ShoppingBasket } from 'lucide-react';\n\n/** What a toast says: what happened, then what it means. */\nexport interface ToastWords {\n readonly title: string;\n readonly description: string;\n}\n\n/** What the toast says once an answer is in the basket (basket.html): what went in, not sent, still waiting. */\nexport function putToastOf(option: number | null): ToastWords {\n return { title: option === null ? 'Your note alone in the basket' : `Option ${String(option)} in the basket`, description: 'Not sent. Still waiting on you until you send it.' };\n}\n\n/** The toasts Bridge raised for the basket, each behind the basket icon, on the popover, gone by themselves: at the left on a desktop and none on a phone, as basket.html draws them. */\nexport function BasketToasts() {\n const { toasts } = Toast.useToastManager();\n return (\n <Toast.Portal>\n <Toast.Viewport className=\"fixed bottom-4 left-4 z-50 hidden w-[min(24rem,calc(100vw-2rem))] gap-2 sm:grid\">\n {toasts.map((toast) => (\n <Toast.Root key={toast.id} toast={toast} data-testid=\"bridge-basket-toast\" className=\"flex items-start gap-3 rounded-lg border border-border bg-popover p-4 text-popover-foreground shadow-lg\">\n <ShoppingBasket aria-hidden className=\"mt-0.5 size-4 shrink-0\" />\n <Toast.Content className=\"grid flex-1 gap-1\">\n <Toast.Title className=\"font-medium\" />\n <Toast.Description className=\"text-caption text-muted-foreground\" />\n </Toast.Content>\n </Toast.Root>\n ))}\n </Toast.Viewport>\n </Toast.Portal>\n );\n}\n","/* __next_internal_action_entry_do_not_use__ [{\"400284782d121950f35e1ce856d3d8f0158fbb10f4\":{\"name\":\"readSendTo\"}},\"web/features/bridge/hooks/bridge-actions.ts\",\"\"] */\"use turbopack: no side effects\";import{createServerReference,callServer,findSourceMapURL}from\"private-next-rsc-action-client-wrapper\";const $$RSC_SERVER_ACTION_8=/*#__PURE__*/createServerReference(\"400284782d121950f35e1ce856d3d8f0158fbb10f4\",callServer,void 0,findSourceMapURL,\"readSendTo\");export{$$RSC_SERVER_ACTION_8 as readSendTo};","/* __next_internal_action_entry_do_not_use__ [{\"4000cf62bc21b02b0dec545692328f576b09e289a7\":{\"name\":\"sendShipMessage\"}},\"web/features/bridge/hooks/bridge-actions.ts\",\"\"] */\"use turbopack: no side effects\";import{createServerReference,callServer,findSourceMapURL}from\"private-next-rsc-action-client-wrapper\";const $$RSC_SERVER_ACTION_9=/*#__PURE__*/createServerReference(\"4000cf62bc21b02b0dec545692328f576b09e289a7\",callServer,void 0,findSourceMapURL,\"sendShipMessage\");export{$$RSC_SERVER_ACTION_9 as sendShipMessage};","/**\n * Bridge's form to send a ship a message (aeolus-fleet #1547,\n * send-message.html): which ships it offers, when Send is on, the key a\n * send carries, why one failed, what the toast says once the fleet stored\n * it, and the ship an opened alert is about. Pure view logic, no React and\n * no API client.\n */\nimport { ALERT_CONTENT_TYPE } from '@aeolus-fleet/common';\nimport type { inferRouterOutputs } from '@trpc/server';\nimport { z } from 'zod';\n\nimport type { GatewayRouter } from '../../../../src/adapters/trpc/router.js';\nimport { SHIP_STATES, type ShipState, type YourFleet } from '../fleet/services/your-fleet';\n\n/** Who the person can send a message to, as the API answers it: the ships their person ship may send to now, and the name it sends as. */\nexport type SendTo = inferRouterOutputs<GatewayRouter>['people']['sendTo'];\n\n/** A ship the form offers: by name, with its state as Your fleet shows it, none where Your fleet does not show the ship. */\nexport interface SendableShip {\n readonly name: string;\n readonly state: ShipState | null;\n}\n\n/**\n * The ships the person ship may send to, each in its state as Your fleet\n * shows it, in Your fleet's order: alerts first, then waiting, working and\n * idle, ties by name; a ship Your fleet does not show, or every ship when it\n * could not be read, comes after, with no state.\n */\nexport function sendableShipsOf(ships: readonly string[], fleet: YourFleet | undefined): readonly SendableShip[] {\n const states = new Map((fleet?.groups ?? []).flatMap(({ tiles }) => tiles.map(({ name, state }) => [name, state] as const)));\n const rank = (state: ShipState | null) => (state === null ? SHIP_STATES.length : SHIP_STATES.indexOf(state));\n return ships\n .map((name) => ({ name, state: states.get(name) ?? null }))\n .toSorted((one, other) => rank(one.state) - rank(other.state) || one.name.localeCompare(other.name));\n}\n\n/** The ships whose name holds what the person typed, whatever its case; every ship while nothing is typed. */\nexport function shipsMatching(ships: readonly SendableShip[], typed: string): readonly SendableShip[] {\n const sought = typed.trim().toLowerCase();\n return sought === '' ? ships : ships.filter(({ name }) => name.toLowerCase().includes(sought));\n}\n\n/** Send is on once a ship is picked and something is written. */\nexport function isSendable({ to, message }: { to: string | null; message: string }): boolean {\n return to !== null && message.trim() !== '';\n}\n\n/** A send the form made: its key, and the ship and message it carried. */\nexport interface LastSend {\n readonly key: string;\n readonly to: string;\n readonly message: string;\n}\n\n/**\n * The key a send carries: the last send's again while the ship and the\n * message are the same, so a message sent again arrives once; a new one\n * otherwise, as a changed message is a new message.\n */\nexport function keyToSend({ last, to, message, newKey }: { last: LastSend | null; to: string; message: string; newKey: string }): string {\n return last !== null && last.to === to && last.message === message ? last.key : newKey;\n}\n\n/** Why a send failed: the fleet refused it, in its own words, or no answer came, so it may be stored. */\nexport type SendFailure = { readonly kind: 'refused'; readonly reason: string } | { readonly kind: 'noAnswer' };\n\n/** The API's codes for a send the fleet refused: its reason is the person's to read. */\nconst REFUSED_CODES = new Set(['BAD_REQUEST', 'FORBIDDEN']);\n\n/** A refusal when the fleet refused the send; no answer for anything else, as the message may be stored. */\nexport function sendFailureOf({ code, message }: { code?: string | undefined; message: string }): SendFailure {\n return code !== undefined && REFUSED_CODES.has(code) ? { kind: 'refused', reason: message } : { kind: 'noAnswer' };\n}\n\n/** Where a time shows to the minute in an ISO 8601 time: hours and minutes, in UTC. */\nconst MINUTE = { start: 11, end: 16 } as const;\n\n/** What the toast says once the fleet stored the message: to whom, when in UTC as every Bridge time, and as which person ship. */\nexport function sentNoticeOf({ to, sentAs, storedAt }: { to: string; sentAs: string; storedAt: string }): { title: string; description: string } {\n return {\n title: `Sent to ${to}`,\n description: `Stored by the fleet at ${new Date(storedAt).toISOString().slice(MINUTE.start, MINUTE.end)} UTC, sent as ${sentAs}. ${to} receives it when it next looks.`,\n };\n}\n\n/** What Bridge reads of an alert to send its ship a message: the ship, by name. */\nconst alertShipSchema = z.object({ ship: z.object({ name: z.string().min(1) }) });\n\n/** The ship an alert is about, by name; none for any other message, or an alert whose payload does not read. */\nexport function alertShipOf(opened: { contentType: string; payload: string }): string | undefined {\n const [essence = ''] = opened.contentType.split(';');\n if (essence.trim().toLowerCase() !== ALERT_CONTENT_TYPE) {\n return undefined;\n }\n try {\n return alertShipSchema.safeParse(JSON.parse(opened.payload)).data?.ship.name;\n } catch {\n return undefined;\n }\n}\n","import createLucideIcon from '../createLucideIcon';\nimport type { LucideIconNode, LucideIconData } from '../types';\n\nexport const __iconData: LucideIconData = {\n name: 'rotate-cw',\n size: 24,\n node: [\n ['path', { d: 'M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8', key: '1p45f6' }],\n ['path', { d: 'M21 3v5h-5', key: '1q7to0' }],\n ],\n};\n\n/**\n * @deprecated Access `__iconData` instead.\n */\nexport const __iconNode: LucideIconNode[] = __iconData.node;\n\n/**\n * @component @name RotateCw\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMjEgMTJhOSA5IDAgMSAxLTktOWMyLjUyIDAgNC45MyAxIDYuNzQgMi43NEwyMSA4IiAvPgogIDxwYXRoIGQ9Ik0yMSAzdjVoLTUiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/rotate-cw\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst RotateCw = createLucideIcon(__iconData);\n\nexport default RotateCw;\n","/** Where a meeting's page is, for server and client code alike. */\n\n/** The meeting page's address, before the meeting's id. */\nexport const MEETINGS_PATH = '/meetings';\n\n/** The address of a meeting's page in a fleet, at the page of contributions after the cursor, if one is given. */\nexport function meetingPathOf(meeting: { fleetId: string; meetingId: string; cursor?: string }): string {\n const query = new URLSearchParams({ fleet: meeting.fleetId, ...(meeting.cursor === undefined ? {} : { cursor: meeting.cursor }) });\n return `${MEETINGS_PATH}/${encodeURIComponent(meeting.meetingId)}?${query.toString()}`;\n}\n","/* __next_internal_action_entry_do_not_use__ [{\"4001ea780db1ead1cb2c7ef9e012482be9e1166c90\":{\"name\":\"answerDelivery\"}},\"web/features/bridge/hooks/bridge-actions.ts\",\"\"] */\"use turbopack: no side effects\";import{createServerReference,callServer,findSourceMapURL}from\"private-next-rsc-action-client-wrapper\";const $$RSC_SERVER_ACTION_2=/*#__PURE__*/createServerReference(\"4001ea780db1ead1cb2c7ef9e012482be9e1166c90\",callServer,void 0,findSourceMapURL,\"answerDelivery\");export{$$RSC_SERVER_ACTION_2 as answerDelivery};","/* __next_internal_action_entry_do_not_use__ [{\"406cdc77dbf870c019aab6c37c746129540f7344b4\":{\"name\":\"doneDelivery\"}},\"web/features/bridge/hooks/bridge-actions.ts\",\"\"] */\"use turbopack: no side effects\";import{createServerReference,callServer,findSourceMapURL}from\"private-next-rsc-action-client-wrapper\";const $$RSC_SERVER_ACTION_7=/*#__PURE__*/createServerReference(\"406cdc77dbf870c019aab6c37c746129540f7344b4\",callServer,void 0,findSourceMapURL,\"doneDelivery\");export{$$RSC_SERVER_ACTION_7 as doneDelivery};","/* __next_internal_action_entry_do_not_use__ [{\"60a206312560da7e8d3118b69c571db7006f3401ec\":{\"name\":\"openDelivery\"}},\"web/features/bridge/hooks/bridge-actions.ts\",\"\"] */\"use turbopack: no side effects\";import{createServerReference,callServer,findSourceMapURL}from\"private-next-rsc-action-client-wrapper\";const $$RSC_SERVER_ACTION_1=/*#__PURE__*/createServerReference(\"60a206312560da7e8d3118b69c571db7006f3401ec\",callServer,void 0,findSourceMapURL,\"openDelivery\");export{$$RSC_SERVER_ACTION_1 as openDelivery};","/* __next_internal_action_entry_do_not_use__ [{\"409fc33bee7fa9990c372a16941b80a35aef4a2974\":{\"name\":\"putInBasket\"}},\"web/features/bridge/hooks/bridge-actions.ts\",\"\"] */\"use turbopack: no side effects\";import{createServerReference,callServer,findSourceMapURL}from\"private-next-rsc-action-client-wrapper\";const $$RSC_SERVER_ACTION_3=/*#__PURE__*/createServerReference(\"409fc33bee7fa9990c372a16941b80a35aef4a2974\",callServer,void 0,findSourceMapURL,\"putInBasket\");export{$$RSC_SERVER_ACTION_3 as putInBasket};","/* __next_internal_action_entry_do_not_use__ [{\"40c4bdf099ebf75c7f472730d1a2313320401d4ebd\":{\"name\":\"putPickInBasket\"}},\"web/features/bridge/hooks/bridge-actions.ts\",\"\"] */\"use turbopack: no side effects\";import{createServerReference,callServer,findSourceMapURL}from\"private-next-rsc-action-client-wrapper\";const $$RSC_SERVER_ACTION_4=/*#__PURE__*/createServerReference(\"40c4bdf099ebf75c7f472730d1a2313320401d4ebd\",callServer,void 0,findSourceMapURL,\"putPickInBasket\");export{$$RSC_SERVER_ACTION_4 as putPickInBasket};"],"names":["$$RSC_SERVER_ACTION_5","SHIP_STATES","STATE_LABELS","alert","waiting","working","idle","GROUP_LABELS","people","agents","plugins","throughTheGateway","SUMMARY_PARTS","state","words","shipsOf","count","String","summaryOf","fleet","shipCount","parts","filter","counts","map","join","MEETINGS_PATH","meetingPathOf","meeting","query","URLSearchParams","fleetId","cursor","undefined","encodeURIComponent","meetingId","toString"],"mappings":"4FAA8M,IAAA,EAAA,EAAA,CAAA,CAAA,MAAsG,IAAMA,EAAmC,CAAA,EAAA,EAAA,iBAAb,IAAa,AAAqB,EAAC,KAAxB,wCAAqE,EAAA,UAAU,CAAC,KAAK,EAAE,EAAA,gBAAgB,CAAC,qECEn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AAC,qCCA/I,IAAM,EAAmC,CAAA,EAAA,EAAA,iBAAb,IAAa,AAAqB,EAAC,KAAxB,wCAAqE,EAAA,UAAU,CAAC,KAAK,EAAE,EAAA,gBAAgBA,CAAC,qCCAhJJ,IAAM,EAAmC,CAAA,EAAA,EAAA,iBAAb,IAAkC,AAArB,EAAsB,KAAxB,wCAAqE,EAAA,UAAU,CAAC,KAAK,EAAE,EAAA,gBAAgB,CAACI,oCCA3I,IAAM,EAAmC,CAAA,EAAA,EAAA,iBAAb,IAAa,AAAqB,EAAC,KAAxB,wCAAqE,EAAA,UAAU,CAAC,KAAKZ,EAAE,EAAA,gBAAgB,CAAC","ignoreList":[10]}
@@ -1,4 +1,4 @@
1
1
  (()=>{"use strict";module.exports=[13095,(a,b,c)=>{function d(a){for(let b=0;b<a.length;b++){let c=a[b];if("function"!=typeof c)throw Error(`A "use server" file can only export async functions, found ${typeof c}.
2
- Read more: https://nextjs.org/docs/messages/invalid-use-server-value`)}}Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"ensureServerEntryExports",{enumerable:!0,get:function(){return d}})},37936,(a,b,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"registerServerReference",{enumerable:!0,get:function(){return d.registerServerReference}});let d=a.r(11857)},82110,a=>{var b=a.i(70043);a.S([b,"403ec53693609bd0af152d60542fb78701d7dcbb23,f"],82110)},70043,a=>{var b=a.i(37936),c=a.i(5246),d=a.i(67591);async function e(a){(0,d.x)(a)&&(await (0,c.cookies)()).set(d.g,a,{path:"/",sameSite:"lax",maxAge:31536e3})}(0,a.i(13095).ensureServerEntryExports)([e]),(0,b.registerServerReference)(e,"403ec53693609bd0af152d60542fb78701d7dcbb23",null),a.s(["f",0,e])}]})();
2
+ Read more: https://nextjs.org/docs/messages/invalid-use-server-value`)}}Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"ensureServerEntryExports",{enumerable:!0,get:function(){return d}})},37936,(a,b,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"registerServerReference",{enumerable:!0,get:function(){return d.registerServerReference}});let d=a.r(11857)},82110,a=>{var b=a.i(70043);a.S([b,"40ca8029b8207bd47293950b98bdbd89c6c994c5fa,f"],82110)},70043,a=>{var b=a.i(37936),c=a.i(5246),d=a.i(67591);async function e(a){(0,d.x)(a)&&(await (0,c.cookies)()).set(d.g,a,{path:"/",sameSite:"lax",maxAge:31536e3})}(0,a.i(13095).ensureServerEntryExports)([e]),(0,b.registerServerReference)(e,"40ca8029b8207bd47293950b98bdbd89c6c994c5fa",null),a.s(["f",0,e])}]})();
3
3
 
4
4
  //# sourceMappingURL=_0xickgbbju_9-._.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../node_modules/next/src/build/webpack/loaders/next-flight-loader/action-validate.ts","../../../../../node_modules/next/src/build/webpack/loaders/next-flight-loader/server-reference.ts","../../../../../web/.next-internal/server/app/authorize/waiting/approval/page/actions.js%20%28server%20actions%20loader%29","../../../../../web/features/frame/actions.ts"],"sourcesContent":["// This function ensures that all the exported values are valid server actions,\n// during the runtime. By definition all actions are required to be async\n// functions, but here we can only check that they are functions.\nexport function ensureServerEntryExports(actions: any[]) {\n for (let i = 0; i < actions.length; i++) {\n const action = actions[i]\n if (typeof action !== 'function') {\n throw new Error(\n `A \"use server\" file can only export async functions, found ${typeof action}.\\nRead more: https://nextjs.org/docs/messages/invalid-use-server-value`\n )\n }\n }\n}\n","/* eslint-disable import/no-extraneous-dependencies */\nexport { registerServerReference } from 'react-server-dom-webpack/server'\n","export {setTheme as '403ec53693609bd0af152d60542fb78701d7dcbb23'} from 'ACTIONS_MODULE0'\n","'use server';\n\n/** The header's theme choice, kept for this browser for a year. */\nimport { cookies } from 'next/headers';\n\nimport { isTheme, THEME_COOKIE } from './theme';\n\nconst YEAR_SECONDS = 365 * 24 * 60 * 60;\n\nexport async function setTheme(theme: unknown): Promise<void> {\n if (!isTheme(theme)) {\n return;\n }\n (await cookies()).set(THEME_COOKIE, theme, { path: '/', sameSite: 'lax', maxAge: YEAR_SECONDS });\n}\n"],"names":["ensureServerEntryExports","actions","i","length","action","Error","registerServerReference","YEAR_SECONDS","setTheme","theme","set","path","sameSite","maxAge"],"mappings":"mDAGO,SAASA,EAAyBC,CAAc,EACrD,IAAK,IAAIC,EAAI,EAAGA,EAAID,EAAQE,MAAM,CAAED,IAAK,CACvC,IAAME,EAASH,CAAO,CAACC,EAAE,CACzB,GAAsB,YAAlB,AAA8B,OAAvBE,EACT,MAAUC,AAAJ,MACJ,CAAC,2DAA2D,EAAE,OAAOD,EAAO;AAAA,oEAAuE,CAAC,CAG1J,CACF,0EATgBJ,2BAAAA,qCAAAA,sBCHoC,OAAA,cAAA,CAAA,EAAA,aAAA,oCAC3CM,0BAAAA,qCAAAA,EAAAA,uBAAuB,YAAQ,CAAA,CAAA,IAAA,cCDxC,IAAA,EAAA,EAAA,CAAA,CAAA,iGCGA,EAAA,EAAA,CAAA,CAAA,MAEA,EAAA,EAAA,CAAA,CAAA,OAIO,eAAeE,EAASC,CAAc,EACtC,CAAA,EAAA,EAAA,CAAA,AAAO,EAACA,IAGb,CAAC,GAHoB,GAGd,CAAA,EAAA,EAAA,OAAA,AAAO,GAAA,CAAE,CAAEC,GAAG,CAAC,EAAA,CAAY,CAAED,EAAO,CAAEE,KAAM,IAAKC,SAAU,MAAOC,OANtD,CAM8DN,KANxD,CAMqE,EAChG,EAPgC,KAAK,mCAEfC,IAAAA,CAAAA,EAAAA,EAAAA,uBAAAA,EAAAA,EAAAA,6CAAAA","ignoreList":[0,1]}
1
+ {"version":3,"sources":["../../../../../node_modules/next/src/build/webpack/loaders/next-flight-loader/action-validate.ts","../../../../../node_modules/next/src/build/webpack/loaders/next-flight-loader/server-reference.ts","../../../../../web/.next-internal/server/app/authorize/waiting/approval/page/actions.js%20%28server%20actions%20loader%29","../../../../../web/features/frame/actions.ts"],"sourcesContent":["// This function ensures that all the exported values are valid server actions,\n// during the runtime. By definition all actions are required to be async\n// functions, but here we can only check that they are functions.\nexport function ensureServerEntryExports(actions: any[]) {\n for (let i = 0; i < actions.length; i++) {\n const action = actions[i]\n if (typeof action !== 'function') {\n throw new Error(\n `A \"use server\" file can only export async functions, found ${typeof action}.\\nRead more: https://nextjs.org/docs/messages/invalid-use-server-value`\n )\n }\n }\n}\n","/* eslint-disable import/no-extraneous-dependencies */\nexport { registerServerReference } from 'react-server-dom-webpack/server'\n","export {setTheme as '40ca8029b8207bd47293950b98bdbd89c6c994c5fa'} from 'ACTIONS_MODULE0'\n","'use server';\n\n/** The header's theme choice, kept for this browser for a year. */\nimport { cookies } from 'next/headers';\n\nimport { isTheme, THEME_COOKIE } from './theme';\n\nconst YEAR_SECONDS = 365 * 24 * 60 * 60;\n\nexport async function setTheme(theme: unknown): Promise<void> {\n if (!isTheme(theme)) {\n return;\n }\n (await cookies()).set(THEME_COOKIE, theme, { path: '/', sameSite: 'lax', maxAge: YEAR_SECONDS });\n}\n"],"names":["ensureServerEntryExports","actions","i","length","action","Error","registerServerReference","YEAR_SECONDS","setTheme","theme","set","path","sameSite","maxAge"],"mappings":"mDAGO,SAASA,EAAyBC,CAAc,EACrD,IAAK,IAAIC,EAAI,EAAGA,EAAID,EAAQE,MAAM,CAAED,IAAK,CACvC,IAAME,EAASH,CAAO,CAACC,EAAE,CACzB,GAAsB,YAAlB,AAA8B,OAAvBE,EACT,MAAUC,AAAJ,MACJ,CAAC,2DAA2D,EAAE,OAAOD,EAAO;AAAA,oEAAuE,CAAC,CAG1J,CACF,0EATgBJ,2BAAAA,qCAAAA,sBCHoC,OAAA,cAAA,CAAA,EAAA,aAAA,oCAC3CM,0BAAAA,qCAAAA,EAAAA,uBAAuB,YAAQ,CAAA,CAAA,IAAA,cCDxC,IAAA,EAAA,EAAA,CAAA,CAAA,iGCGA,EAAA,EAAA,CAAA,CAAA,MAEA,EAAA,EAAA,CAAA,CAAA,OAIO,eAAeE,EAASC,CAAc,EACtC,CAAA,EAAA,EAAA,CAAA,AAAO,EAACA,IAGb,CAAC,GAHoB,GAGd,CAAA,EAAA,EAAA,OAAA,AAAO,GAAA,CAAE,CAAEC,GAAG,CAAC,EAAA,CAAY,CAAED,EAAO,CAAEE,KAAM,IAAKC,SAAU,MAAOC,OANtD,CAM8DN,KANxD,CAMqE,EAChG,EAPgC,KAAK,mCAEfC,IAAAA,CAAAA,EAAAA,EAAAA,uBAAAA,EAAAA,EAAAA,6CAAAA","ignoreList":[0,1]}
@@ -0,0 +1,3 @@
1
+ (()=>{"use strict";module.exports=[53116,a=>{var b=a.i(72131),c=a.i(35112),d=a.i(54098),e=a.i(87924);let f=b.forwardRef(function(a,f){let{children:g,container:h,className:i,render:j,style:k,...l}=a,{node:m,subtree:n}=(0,d.o)({container:h,ref:f,componentProps:a,elementProps:l});return n||m?(0,e.jsxs)(b.Fragment,{children:[n,m&&c.createPortal(g,m)]}):null});a.s(["f",0,f])},69789,(a,b,c)=>{Object.defineProperty(c,"__esModule",{value:!0});var d={actionAsyncStorage:function(){return f.actionAsyncStorage},workAsyncStorage:function(){return g.workAsyncStorage},workUnitAsyncStorage:function(){return h.workUnitAsyncStorage}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(20635),g=a.r(56704),h=a.r(32319);("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)},919,a=>{var b=a.i(87924),c=a.i(72131),d=a.i(5050);let e=(0,d.createServerReference)("40ca8029b8207bd47293950b98bdbd89c6c994c5fa",d.callServer,void 0,d.findSourceMapURL,"setTheme"),f=["light","dark","system"];a.s(["f",0,function({email:a,accountUrl:d,theme:g,entries:h=[]}){let[i,j]=(0,c.useState)(g),[k,l]=(0,c.useState)(!1),m=(0,c.useRef)(null);return{account:{name:a,signedInAs:"account",accountUrl:d,theme:i,themes:f,hasTheme:!0,onThemeChange:a=>{let b;j(a),document.documentElement.dataset.theme=a,b="dark"===a||"system"===a&&window.matchMedia("(prefers-color-scheme: dark)").matches,document.documentElement.classList.toggle("dark",b),e(a)},shortcuts:[],helpUrl:"https://github.com/ThomasHendrickx/aeolus-fleet",onSignOut:()=>{l(!0),m.current?.requestSubmit()},isSigningOut:k,entries:h},signOutForm:(0,b.jsx)("form",{ref:m,method:"post",action:"/sign-in/end",hidden:!0})}}],919)},48242,a=>{let b="/outside-parties";a.s(["$",0,b,"N",0,function(a,c){return`${b}/${encodeURIComponent(a)}${void 0===c?"":`/${c}`}`}])},25959,a=>{a.s(["f",0,function(a,b){let[c="",d=""]=a.split("?"),e=new URLSearchParams(d);return e.set("fleet",b),`${c}?${e.toString()}`}])}]})();
2
+
3
+ //# sourceMappingURL=_0yhvyj-yts7qi._.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../node_modules/%40base-ui/react/utils/FloatingPortalLite.mjs","../../../../../node_modules/next/src/client/components/server-async-storage.ts","../../../../../web/features/frame/hooks/use-account-menu.tsx","../../../../../web/features/frame/data%3A5ef672%20%3Ctext/javascript%3E","../../../../../web/features/frame/theme.ts","../../../../../web/features/outside-parties/paths.ts","../../../../../web/lib/gateway-api/page-account.ts"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport { useFloatingPortalNode } from \"../floating-ui-react/components/FloatingPortal.mjs\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\n/**\n * `FloatingPortal` includes tabbable logic handling for focus management.\n * For components that don't need tabbable logic, use `FloatingPortalLite`.\n * @internal\n */\nexport const FloatingPortalLite = /*#__PURE__*/React.forwardRef(function FloatingPortalLite(componentProps, forwardedRef) {\n const {\n children,\n container,\n className,\n render,\n style,\n ...elementProps\n } = componentProps;\n const {\n node: portalNode,\n subtree: portalSubtree\n } = useFloatingPortalNode({\n container,\n ref: forwardedRef,\n componentProps,\n elementProps\n });\n if (!portalSubtree && !portalNode) {\n return null;\n }\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [portalSubtree, portalNode && /*#__PURE__*/ReactDOM.createPortal(children, portalNode)]\n });\n});\nif (process.env.NODE_ENV !== \"production\") FloatingPortalLite.displayName = \"FloatingPortalLite\";","// Client-safe access to the server-only async-storage singletons. On the\n// server these re-export the real storages; in the browser bundle this module\n// is aliased to `./server-async-storage.browser` (see\n// scripts/generate-browser-variant-aliases.mjs), which exports `undefined`\n// stubs so the AsyncLocalStorage modules are never bundled into the client.\n// Consumers must guard usage so the stubs are not dereferenced in the browser.\nexport { actionAsyncStorage } from '../../server/app-render/action-async-storage.external'\nexport { workAsyncStorage } from '../../server/app-render/work-async-storage.external'\nexport { workUnitAsyncStorage } from '../../server/app-render/work-unit-async-storage.external'\n","'use client';\n\nimport type { Theme } from '@aeolus-fleet/common';\nimport type { AvatarMenuEntry, AvatarMenuProps } from '@aeolus-fleet/ui';\nimport { useRef, useState, type ReactNode } from 'react';\n\nimport { setTheme } from '../actions';\nimport { THEMES } from '../theme';\n\n/** Where the avatar menu's Help leads, as in the console. */\nconst HELP_URL = 'https://github.com/ThomasHendrickx/aeolus-fleet';\n\n/** The gateway's server ends the shared sign-in here, in every app at once, for a form sent from its own pages. */\nconst SIGN_OUT_PATH = '/sign-in/end';\n\n/** Applies a theme at once, as the root layout's script does on the next load. */\nfunction applyTheme(theme: Theme): void {\n document.documentElement.dataset.theme = theme;\n const isDark = theme === 'dark' || (theme === 'system' && window.matchMedia('(prefers-color-scheme: dark)').matches);\n document.documentElement.classList.toggle('dark', isDark);\n}\n\nexport interface AccountMenuOf {\n readonly email: string;\n /** Account's address, for the avatar menu's Your account, Your rights and Email updates. */\n readonly accountUrl: string | undefined;\n readonly theme: Theme;\n /** The page's own entries, such as the phone's for what its tab bar lacks. */\n readonly entries?: readonly AvatarMenuEntry[];\n}\n\n/**\n * The avatar menu of the account signed in (header design H8): its theme,\n * applied at once and kept, and sign out, which ends the shared sign-in in\n * every app and says \"Signing out\" until the page leaves. The form that\n * signs out goes on the page beside the menu.\n */\nexport function useAccountMenu({ email, accountUrl, theme, entries = [] }: AccountMenuOf): { account: AvatarMenuProps; signOutForm: ReactNode } {\n const [shownTheme, setShownTheme] = useState(theme);\n const [isSigningOut, setIsSigningOut] = useState(false);\n const form = useRef<HTMLFormElement>(null);\n const account: AvatarMenuProps = {\n name: email,\n signedInAs: 'account',\n accountUrl,\n theme: shownTheme,\n themes: THEMES,\n hasTheme: true,\n onThemeChange: (next) => {\n setShownTheme(next);\n applyTheme(next);\n void setTheme(next);\n },\n shortcuts: [],\n helpUrl: HELP_URL,\n onSignOut: () => {\n setIsSigningOut(true);\n form.current?.requestSubmit();\n },\n isSigningOut,\n entries,\n };\n return { account, signOutForm: <form ref={form} method=\"post\" action={SIGN_OUT_PATH} hidden /> };\n}\n","/* __next_internal_action_entry_do_not_use__ [{\"40ca8029b8207bd47293950b98bdbd89c6c994c5fa\":{\"name\":\"setTheme\"}},\"web/features/frame/actions.ts\",\"\"] */\"use turbopack: no side effects\";import{createServerReference,callServer,findSourceMapURL}from\"private-next-rsc-action-client-wrapper\";const $$RSC_SERVER_ACTION_0=/*#__PURE__*/createServerReference(\"40ca8029b8207bd47293950b98bdbd89c6c994c5fa\",callServer,void 0,findSourceMapURL,\"setTheme\");export{$$RSC_SERVER_ACTION_0 as setTheme};","/**\n * The theme this browser chose for the gateway's pages (header design H13:\n * each app keeps its own), System until chosen.\n */\nimport type { Theme } from '@aeolus-fleet/common';\n\n/** The themes, as common names them: written here so the header's browser code loads no schema (decision 0033). */\nexport const THEMES: readonly Theme[] = ['light', 'dark', 'system'];\n\n/** The cookie that keeps it. */\nexport const THEME_COOKIE = 'aeolus_gateway_theme';\n\nexport function isTheme(value: unknown): value is Theme {\n return THEMES.some((theme) => theme === value);\n}\n\n/** The theme a cookie names, or System. */\nexport function themeFrom(value: string | undefined): Theme {\n return isTheme(value) ? value : 'system';\n}\n","/** The outside parties' pages. */\nexport const OUTSIDE_PARTIES_PATH = '/outside-parties';\n\nexport const ADD_SERVER_PATH = `${OUTSIDE_PARTIES_PATH}/add`;\n\nexport const ADD_A2A_CLIENT_PATH = `${OUTSIDE_PARTIES_PATH}/add-a2a-client`;\n\nexport const ADD_A2A_AGENT_PATH = `${OUTSIDE_PARTIES_PATH}/add-a2a-agent`;\n\n/** One outside party's page, or one of its own: changing it, retiring it. */\nexport function partyPath(name: string, action?: 'change' | 'retire'): string {\n return `${OUTSIDE_PARTIES_PATH}/${encodeURIComponent(name)}${action === undefined ? '' : `/${action}`}`;\n}\n","/**\n * What a page of the web app does with the API's account.inView (header\n * design H5, H9): show its fleet as the account signed in, or send the\n * browser where it may go: the same page in the fleet the account may open,\n * the app it may open there, or sign-in and back to the page. Where the\n * gateway is off for the account's fleet, the page says so instead.\n */\n\n/** The API's answer to account.inView. */\nexport type InView =\n | { kind: 'signedIn'; fleetId: string; accountId: string; scopes: string[] }\n | { kind: 'goTo'; fleetId: string }\n | { kind: 'off'; fleetName: string; accountUrl: string }\n | { kind: 'elsewhere'; url: string };\n\n/** The API's refusals of account.inView a page answers: signed in to no account, and no shared sign-in at this gateway. */\nexport type InViewRefusal = 'UNAUTHORIZED' | 'NOT_FOUND';\n\nexport type PageAccount =\n | { kind: 'signedIn'; fleetId: string; scopes: readonly string[] }\n | { kind: 'goTo'; location: string }\n | { kind: 'off'; fleetName: string; accountUrl: string }\n | { kind: 'noSignIn' };\n\nconst SIGN_IN_START = '/sign-in/start';\n\n/** The parameter a page names its fleet by. */\nexport const FLEET_PARAMETER = 'fleet';\n\n/** A page of the web app in a fleet: every link keeps the fleet in its address. */\nexport function inFleet(page: string, fleetId: string): string {\n const [path = '', query = ''] = page.split('?');\n const parameters = new URLSearchParams(query);\n parameters.set(FLEET_PARAMETER, fleetId);\n return `${path}?${parameters.toString()}`;\n}\n\n/** Reads the answer for the page asked for, its path and query as the browser sent them. */\nexport function pageAccountOf(read: { inView: InView } | { refusal: InViewRefusal }, page: string): PageAccount {\n if ('refusal' in read) {\n return read.refusal === 'UNAUTHORIZED' ? { kind: 'goTo', location: `${SIGN_IN_START}?${new URLSearchParams({ return_to: page }).toString()}` } : { kind: 'noSignIn' };\n }\n const { inView } = read;\n switch (inView.kind) {\n case 'signedIn':\n return { kind: 'signedIn', fleetId: inView.fleetId, scopes: inView.scopes };\n case 'goTo':\n return { kind: 'goTo', location: inFleet(page, inView.fleetId) };\n case 'off':\n return inView;\n case 'elsewhere':\n return { kind: 'goTo', location: inView.url };\n }\n}\n"],"names":["FloatingPortalLite","componentProps","forwardedRef","children","container","className","render","style","elementProps","node","portalNode","subtree","portalSubtree","ref","actionAsyncStorage","workAsyncStorage","workUnitAsyncStorage","$$RSC_SERVER_ACTION_0","OUTSIDE_PARTIES_PATH","ADD_SERVER_PATH","ADD_A2A_CLIENT_PATH","ADD_A2A_AGENT_PATH","partyPath","name","action","encodeURIComponent","undefined","SIGN_IN_START","FLEET_PARAMETER","inFleet","page","fleetId","path","query","split","parameters","URLSearchParams","set","toString","pageAccountOf","read","refusal","kind","location","return_to","inView","scopes","url"],"mappings":"6CAEA,IAAA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OAMO,IAAMA,EAAkC,EAAA,UAAgB,CAAC,MAA9B,GAAuCA,AAAmBC,CAAc,CAAEC,CAAY,EACtH,GAAM,AADqC,UAEzCC,CAAQ,WACRC,CAAS,WACTC,CAAS,QACTC,CAAM,OACNC,CAAK,CACL,GAAGC,EACJ,CAAGP,EACE,CACJQ,KAAMC,CAAU,CAChBC,QAASC,CAAa,CACvB,CAAG,CAAA,EAAA,EAAA,CAAA,AAAqB,EAAC,WACxBR,EACAS,IAAKX,iBACLD,eACAO,CACF,UACA,AAAI,AAACI,GAAkBF,EAGH,CAAA,EAAA,EAAA,IAAK,AAAL,CAHe,CAGT,CAHJ,CAGI,QAAc,CAAE,CACxCP,SAAU,CAACS,EAAeF,GAA2B,EAAA,SAAb,GA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A,GAAA,EAAC,OAAA,CAAK,IAAK,EAAM,OAAO,OAAO,OAjD1C,CAiDkD,cAAe,MAAM,CAAA,CAAA,GAAI,CACjG,mBG9DO,IAAMC,EAAuB,sCAS7B,SAASI,AAAUC,CAAY,CAAEC,CAA4B,EAClE,MAAO,CAAA,EAAGN,EAAqB,CAAC,EAAEO,mBAAmBF,GAAAA,OAAmBG,IAAXF,EAAuB,GAAK,CAAC,CAAC,EAAEA,EAAAA,CAAQ,CAAA,CAAE,AACzG,0BCkBO,SAASK,AAAQC,CAAY,CAAEC,CAAe,EACnD,GAAM,CAACC,EAAO,EAAE,CAAEC,EAAQ,EAAE,CAAC,CAAGH,EAAKI,KAAK,CAAC,KACrCC,EAAa,IAAIC,gBAAgBH,GAEvC,OADAE,EAAWE,GAAG,CANe,AAMdT,QAAiBG,GACzB,CAAA,EAAGC,EAAK,CAAC,EAAEG,EAAWG,QAAQ,GAAA,CAAI,AAC3C","ignoreList":[0,1]}
@@ -0,0 +1,3 @@
1
+ (()=>{"use strict";module.exports=[53116,a=>{var b=a.i(72131),c=a.i(35112),d=a.i(54098),e=a.i(87924);let f=b.forwardRef(function(a,f){let{children:g,container:h,className:i,render:j,style:k,...l}=a,{node:m,subtree:n}=(0,d.o)({container:h,ref:f,componentProps:a,elementProps:l});return n||m?(0,e.jsxs)(b.Fragment,{children:[n,m&&c.createPortal(g,m)]}):null});a.s(["f",0,f])},69789,(a,b,c)=>{Object.defineProperty(c,"__esModule",{value:!0});var d={actionAsyncStorage:function(){return f.actionAsyncStorage},workAsyncStorage:function(){return g.workAsyncStorage},workUnitAsyncStorage:function(){return h.workUnitAsyncStorage}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(20635),g=a.r(56704),h=a.r(32319);("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)},32043,a=>{var b=a.i(87924);let c={primary:"bg-primary text-primary-foreground hover:bg-primary-hover",secondary:"border border-border bg-card text-card-foreground hover:bg-accent",ghost:"text-foreground hover:bg-accent"},d={regular:"h-9 gap-2 px-4",row:"h-9 gap-2 px-4 text-body sm:h-6 sm:gap-1.5 sm:px-2.5 sm:text-meta",small:"h-8 gap-2 px-3 text-meta",xs:"h-7 gap-1.5 px-2.5 text-caption font-medium"};a.s(["i",0,function({isPending:a,pendingLabel:e,variant:f="secondary",size:g="regular",children:h,className:i="",disabled:j,...k}){return(0,b.jsx)("button",{...k,disabled:!0===j||a,"aria-busy":a,className:`inline-flex items-center rounded-md disabled:cursor-not-allowed disabled:opacity-70 ${d[g]} ${c[f]} ${i}`,children:a?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("span",{"aria-hidden":"true",className:"size-3.5 animate-spin rounded-full border-2 border-current border-t-transparent"}),e]}):h})},"o",0,d])},10039,a=>{var b=a.i(87924);a.s(["f",0,function({message:a,isFailure:c}){return c?(0,b.jsx)("p",{role:"alert","data-testid":"bridge-failure",className:"rounded-md border border-tone-attention-border bg-tone-attention-bg px-3 py-2 text-tone-attention-fg",children:a}):(0,b.jsx)("p",{role:"status","data-testid":"bridge-success",className:"rounded-md border border-tone-ok-border bg-tone-ok-bg px-3 py-2 text-tone-ok-fg",children:a})}])},919,a=>{var b=a.i(87924),c=a.i(72131),d=a.i(5050);let e=(0,d.createServerReference)("40ca8029b8207bd47293950b98bdbd89c6c994c5fa",d.callServer,void 0,d.findSourceMapURL,"setTheme"),f=["light","dark","system"];a.s(["f",0,function({email:a,accountUrl:d,theme:g,entries:h=[]}){let[i,j]=(0,c.useState)(g),[k,l]=(0,c.useState)(!1),m=(0,c.useRef)(null);return{account:{name:a,signedInAs:"account",accountUrl:d,theme:i,themes:f,hasTheme:!0,onThemeChange:a=>{let b;j(a),document.documentElement.dataset.theme=a,b="dark"===a||"system"===a&&window.matchMedia("(prefers-color-scheme: dark)").matches,document.documentElement.classList.toggle("dark",b),e(a)},shortcuts:[],helpUrl:"https://github.com/ThomasHendrickx/aeolus-fleet",onSignOut:()=>{l(!0),m.current?.requestSubmit()},isSigningOut:k,entries:h},signOutForm:(0,b.jsx)("form",{ref:m,method:"post",action:"/sign-in/end",hidden:!0})}}],919)},48242,a=>{let b="/outside-parties";a.s(["$",0,b,"N",0,function(a,c){return`${b}/${encodeURIComponent(a)}${void 0===c?"":`/${c}`}`}])},25959,a=>{a.s(["f",0,function(a,b){let[c="",d=""]=a.split("?"),e=new URLSearchParams(d);return e.set("fleet",b),`${c}?${e.toString()}`}])}]})();
2
+
3
+ //# sourceMappingURL=_104ilzyn58zw_._.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../node_modules/%40base-ui/react/utils/FloatingPortalLite.mjs","../../../../../node_modules/next/src/client/components/server-async-storage.ts","../../../../../web/features/bridge/ui/action-button.tsx","../../../../../web/features/bridge/ui/notice.tsx","../../../../../web/features/frame/hooks/use-account-menu.tsx","../../../../../web/features/frame/data%3A5ef672%20%3Ctext/javascript%3E","../../../../../web/features/frame/theme.ts","../../../../../web/features/outside-parties/paths.ts","../../../../../web/lib/gateway-api/page-account.ts"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport { useFloatingPortalNode } from \"../floating-ui-react/components/FloatingPortal.mjs\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\n/**\n * `FloatingPortal` includes tabbable logic handling for focus management.\n * For components that don't need tabbable logic, use `FloatingPortalLite`.\n * @internal\n */\nexport const FloatingPortalLite = /*#__PURE__*/React.forwardRef(function FloatingPortalLite(componentProps, forwardedRef) {\n const {\n children,\n container,\n className,\n render,\n style,\n ...elementProps\n } = componentProps;\n const {\n node: portalNode,\n subtree: portalSubtree\n } = useFloatingPortalNode({\n container,\n ref: forwardedRef,\n componentProps,\n elementProps\n });\n if (!portalSubtree && !portalNode) {\n return null;\n }\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [portalSubtree, portalNode && /*#__PURE__*/ReactDOM.createPortal(children, portalNode)]\n });\n});\nif (process.env.NODE_ENV !== \"production\") FloatingPortalLite.displayName = \"FloatingPortalLite\";","// Client-safe access to the server-only async-storage singletons. On the\n// server these re-export the real storages; in the browser bundle this module\n// is aliased to `./server-async-storage.browser` (see\n// scripts/generate-browser-variant-aliases.mjs), which exports `undefined`\n// stubs so the AsyncLocalStorage modules are never bundled into the client.\n// Consumers must guard usage so the stubs are not dereferenced in the browser.\nexport { actionAsyncStorage } from '../../server/app-render/action-async-storage.external'\nexport { workAsyncStorage } from '../../server/app-render/work-async-storage.external'\nexport { workUnitAsyncStorage } from '../../server/app-render/work-unit-async-storage.external'\n","import type { ButtonHTMLAttributes, ReactNode } from 'react';\n\nconst VARIANTS = {\n primary: 'bg-primary text-primary-foreground hover:bg-primary-hover',\n secondary: 'border border-border bg-card text-card-foreground hover:bg-accent',\n ghost: 'text-foreground hover:bg-accent',\n} as const;\n\n/** A row's buttons are small on a desktop, and a thumb's size on a phone (Bridge mockups, home). */\nexport const SIZES = {\n regular: 'h-9 gap-2 px-4',\n row: 'h-9 gap-2 px-4 text-body sm:h-6 sm:gap-1.5 sm:px-2.5 sm:text-meta',\n /** A basket entry's buttons (basket.html). */\n small: 'h-8 gap-2 px-3 text-meta',\n /** A place card's one action (routing.html). */\n xs: 'h-7 gap-1.5 px-2.5 text-caption font-medium',\n} as const;\n\n/**\n * A button for an action: the moment it is pressed and until the answer\n * comes, it shows a spinner and its working label, and cannot run twice.\n */\nexport function ActionButton({\n isPending,\n pendingLabel,\n variant = 'secondary',\n size = 'regular',\n children,\n className = '',\n disabled,\n ...button\n}: ButtonHTMLAttributes<HTMLButtonElement> & { isPending: boolean; pendingLabel: string; variant?: keyof typeof VARIANTS; size?: keyof typeof SIZES; children: ReactNode }) {\n return (\n <button\n {...button}\n disabled={disabled === true || isPending}\n aria-busy={isPending}\n className={`inline-flex items-center rounded-md disabled:cursor-not-allowed disabled:opacity-70 ${SIZES[size]} ${VARIANTS[variant]} ${className}`}\n >\n {isPending ? (\n <>\n <span aria-hidden=\"true\" className=\"size-3.5 animate-spin rounded-full border-2 border-current border-t-transparent\" />\n {pendingLabel}\n </>\n ) : (\n children\n )}\n </button>\n );\n}\n","/** What an action came to, said in place: a success as a status, a failure as an alert by the control. */\nexport function Notice({ message, isFailure }: { message: string; isFailure: boolean }) {\n return isFailure ? (\n <p role=\"alert\" data-testid=\"bridge-failure\" className=\"rounded-md border border-tone-attention-border bg-tone-attention-bg px-3 py-2 text-tone-attention-fg\">\n {message}\n </p>\n ) : (\n <p role=\"status\" data-testid=\"bridge-success\" className=\"rounded-md border border-tone-ok-border bg-tone-ok-bg px-3 py-2 text-tone-ok-fg\">\n {message}\n </p>\n );\n}\n","'use client';\n\nimport type { Theme } from '@aeolus-fleet/common';\nimport type { AvatarMenuEntry, AvatarMenuProps } from '@aeolus-fleet/ui';\nimport { useRef, useState, type ReactNode } from 'react';\n\nimport { setTheme } from '../actions';\nimport { THEMES } from '../theme';\n\n/** Where the avatar menu's Help leads, as in the console. */\nconst HELP_URL = 'https://github.com/ThomasHendrickx/aeolus-fleet';\n\n/** The gateway's server ends the shared sign-in here, in every app at once, for a form sent from its own pages. */\nconst SIGN_OUT_PATH = '/sign-in/end';\n\n/** Applies a theme at once, as the root layout's script does on the next load. */\nfunction applyTheme(theme: Theme): void {\n document.documentElement.dataset.theme = theme;\n const isDark = theme === 'dark' || (theme === 'system' && window.matchMedia('(prefers-color-scheme: dark)').matches);\n document.documentElement.classList.toggle('dark', isDark);\n}\n\nexport interface AccountMenuOf {\n readonly email: string;\n /** Account's address, for the avatar menu's Your account, Your rights and Email updates. */\n readonly accountUrl: string | undefined;\n readonly theme: Theme;\n /** The page's own entries, such as the phone's for what its tab bar lacks. */\n readonly entries?: readonly AvatarMenuEntry[];\n}\n\n/**\n * The avatar menu of the account signed in (header design H8): its theme,\n * applied at once and kept, and sign out, which ends the shared sign-in in\n * every app and says \"Signing out\" until the page leaves. The form that\n * signs out goes on the page beside the menu.\n */\nexport function useAccountMenu({ email, accountUrl, theme, entries = [] }: AccountMenuOf): { account: AvatarMenuProps; signOutForm: ReactNode } {\n const [shownTheme, setShownTheme] = useState(theme);\n const [isSigningOut, setIsSigningOut] = useState(false);\n const form = useRef<HTMLFormElement>(null);\n const account: AvatarMenuProps = {\n name: email,\n signedInAs: 'account',\n accountUrl,\n theme: shownTheme,\n themes: THEMES,\n hasTheme: true,\n onThemeChange: (next) => {\n setShownTheme(next);\n applyTheme(next);\n void setTheme(next);\n },\n shortcuts: [],\n helpUrl: HELP_URL,\n onSignOut: () => {\n setIsSigningOut(true);\n form.current?.requestSubmit();\n },\n isSigningOut,\n entries,\n };\n return { account, signOutForm: <form ref={form} method=\"post\" action={SIGN_OUT_PATH} hidden /> };\n}\n","/* __next_internal_action_entry_do_not_use__ [{\"40ca8029b8207bd47293950b98bdbd89c6c994c5fa\":{\"name\":\"setTheme\"}},\"web/features/frame/actions.ts\",\"\"] */\"use turbopack: no side effects\";import{createServerReference,callServer,findSourceMapURL}from\"private-next-rsc-action-client-wrapper\";const $$RSC_SERVER_ACTION_0=/*#__PURE__*/createServerReference(\"40ca8029b8207bd47293950b98bdbd89c6c994c5fa\",callServer,void 0,findSourceMapURL,\"setTheme\");export{$$RSC_SERVER_ACTION_0 as setTheme};","/**\n * The theme this browser chose for the gateway's pages (header design H13:\n * each app keeps its own), System until chosen.\n */\nimport type { Theme } from '@aeolus-fleet/common';\n\n/** The themes, as common names them: written here so the header's browser code loads no schema (decision 0033). */\nexport const THEMES: readonly Theme[] = ['light', 'dark', 'system'];\n\n/** The cookie that keeps it. */\nexport const THEME_COOKIE = 'aeolus_gateway_theme';\n\nexport function isTheme(value: unknown): value is Theme {\n return THEMES.some((theme) => theme === value);\n}\n\n/** The theme a cookie names, or System. */\nexport function themeFrom(value: string | undefined): Theme {\n return isTheme(value) ? value : 'system';\n}\n","/** The outside parties' pages. */\nexport const OUTSIDE_PARTIES_PATH = '/outside-parties';\n\nexport const ADD_SERVER_PATH = `${OUTSIDE_PARTIES_PATH}/add`;\n\nexport const ADD_A2A_CLIENT_PATH = `${OUTSIDE_PARTIES_PATH}/add-a2a-client`;\n\nexport const ADD_A2A_AGENT_PATH = `${OUTSIDE_PARTIES_PATH}/add-a2a-agent`;\n\n/** One outside party's page, or one of its own: changing it, retiring it. */\nexport function partyPath(name: string, action?: 'change' | 'retire'): string {\n return `${OUTSIDE_PARTIES_PATH}/${encodeURIComponent(name)}${action === undefined ? '' : `/${action}`}`;\n}\n","/**\n * What a page of the web app does with the API's account.inView (header\n * design H5, H9): show its fleet as the account signed in, or send the\n * browser where it may go: the same page in the fleet the account may open,\n * the app it may open there, or sign-in and back to the page. Where the\n * gateway is off for the account's fleet, the page says so instead.\n */\n\n/** The API's answer to account.inView. */\nexport type InView =\n | { kind: 'signedIn'; fleetId: string; accountId: string; scopes: string[] }\n | { kind: 'goTo'; fleetId: string }\n | { kind: 'off'; fleetName: string; accountUrl: string }\n | { kind: 'elsewhere'; url: string };\n\n/** The API's refusals of account.inView a page answers: signed in to no account, and no shared sign-in at this gateway. */\nexport type InViewRefusal = 'UNAUTHORIZED' | 'NOT_FOUND';\n\nexport type PageAccount =\n | { kind: 'signedIn'; fleetId: string; scopes: readonly string[] }\n | { kind: 'goTo'; location: string }\n | { kind: 'off'; fleetName: string; accountUrl: string }\n | { kind: 'noSignIn' };\n\nconst SIGN_IN_START = '/sign-in/start';\n\n/** The parameter a page names its fleet by. */\nexport const FLEET_PARAMETER = 'fleet';\n\n/** A page of the web app in a fleet: every link keeps the fleet in its address. */\nexport function inFleet(page: string, fleetId: string): string {\n const [path = '', query = ''] = page.split('?');\n const parameters = new URLSearchParams(query);\n parameters.set(FLEET_PARAMETER, fleetId);\n return `${path}?${parameters.toString()}`;\n}\n\n/** Reads the answer for the page asked for, its path and query as the browser sent them. */\nexport function pageAccountOf(read: { inView: InView } | { refusal: InViewRefusal }, page: string): PageAccount {\n if ('refusal' in read) {\n return read.refusal === 'UNAUTHORIZED' ? { kind: 'goTo', location: `${SIGN_IN_START}?${new URLSearchParams({ return_to: page }).toString()}` } : { kind: 'noSignIn' };\n }\n const { inView } = read;\n switch (inView.kind) {\n case 'signedIn':\n return { kind: 'signedIn', fleetId: inView.fleetId, scopes: inView.scopes };\n case 'goTo':\n return { kind: 'goTo', location: inFleet(page, inView.fleetId) };\n case 'off':\n return inView;\n case 'elsewhere':\n return { kind: 'goTo', location: inView.url };\n }\n}\n"],"names":["FloatingPortalLite","componentProps","forwardedRef","children","container","className","render","style","elementProps","node","portalNode","subtree","portalSubtree","ref","actionAsyncStorage","workAsyncStorage","workUnitAsyncStorage","VARIANTS","primary","secondary","ghost","SIZES","regular","row","small","xs","ActionButton","isPending","pendingLabel","variant","size","disabled","button","Notice","message","isFailure","role","$$RSC_SERVER_ACTION_0","OUTSIDE_PARTIES_PATH","ADD_SERVER_PATH","ADD_A2A_CLIENT_PATH","ADD_A2A_AGENT_PATH","partyPath","name","action","encodeURIComponent","undefined","SIGN_IN_START","FLEET_PARAMETER","inFleet","page","fleetId","path","query","split","parameters","URLSearchParams","set","toString","pageAccountOf","read","refusal","kind","location","return_to","inView","scopes","url"],"mappings":"6CAEA,IAAA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OAMO,IAAMA,EAAkC,EAAA,UAAgB,CAAC,MAA9B,GAAuCA,AAAmBC,CAAc,CAAEC,CAAY,EACtH,GAAM,AADqC,UAEzCC,CAAQ,WACRC,CAAS,WACTC,CAAS,QACTC,CAAM,OACNC,CAAK,CACL,GAAGC,EACJ,CAAGP,EACE,CACJQ,KAAMC,CAAU,CAChBC,QAASC,CAAa,CACvB,CAAG,CAAA,EAAA,EAAA,CAAA,AAAqB,EAAC,CACxBR,YACAS,IAAKX,iBACLD,eACAO,CACF,UACA,AAAKI,AAAD,GAAmBF,EAGH,CAAA,EAAA,EAAA,I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,CAAEC,CAA4B,EAClE,MAAO,CAAA,EAAGN,EAAqB,CAAC,EAAEO,mBAAmBF,GAAAA,OAAmBG,IAAXF,EAAuB,GAAK,CAAC,CAAC,EAAEA,EAAAA,CAAQ,CAAA,CAAE,AACzG,0BCkBO,SAASK,AAAQC,CAAY,CAAEC,CAAe,EACnD,GAAM,CAACC,EAAO,EAAE,CAAEC,EAAQ,EAAE,CAAC,CAAGH,EAAKI,KAAK,CAAC,KACrCC,EAAa,IAAIC,gBAAgBH,GAEvC,OADAE,EAAWE,GAAG,CANe,AAMdT,QAAiBG,GACzB,CAAA,EAAGC,EAAK,CAAC,EAAEG,EAAWG,QAAQ,GAAA,CAAI,AAC3C","ignoreList":[0,1]}
@@ -1,3 +1,3 @@
1
1
  (()=>{"use strict";module.exports=[53116,a=>{var b=a.i(72131),c=a.i(35112),d=a.i(54098),e=a.i(87924);let f=b.forwardRef(function(a,f){let{children:g,container:h,className:i,render:j,style:k,...l}=a,{node:m,subtree:n}=(0,d.o)({container:h,ref:f,componentProps:a,elementProps:l});return n||m?(0,e.jsxs)(b.Fragment,{children:[n,m&&c.createPortal(g,m)]}):null});a.s(["f",0,f])},69789,(a,b,c)=>{Object.defineProperty(c,"__esModule",{value:!0});var d={actionAsyncStorage:function(){return f.actionAsyncStorage},workAsyncStorage:function(){return g.workAsyncStorage},workUnitAsyncStorage:function(){return h.workUnitAsyncStorage}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(20635),g=a.r(56704),h=a.r(32319);("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)},32043,a=>{var b=a.i(87924);let c={primary:"bg-primary text-primary-foreground hover:bg-primary-hover",secondary:"border border-border bg-card text-card-foreground hover:bg-accent",ghost:"text-foreground hover:bg-accent"},d={regular:"h-9 gap-2 px-4",row:"h-9 gap-2 px-4 text-body sm:h-6 sm:gap-1.5 sm:px-2.5 sm:text-meta",small:"h-8 gap-2 px-3 text-meta",xs:"h-7 gap-1.5 px-2.5 text-caption font-medium"};a.s(["i",0,function({isPending:a,pendingLabel:e,variant:f="secondary",size:g="regular",children:h,className:i="",disabled:j,...k}){return(0,b.jsx)("button",{...k,disabled:!0===j||a,"aria-busy":a,className:`inline-flex items-center rounded-md disabled:cursor-not-allowed disabled:opacity-70 ${d[g]} ${c[f]} ${i}`,children:a?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("span",{"aria-hidden":"true",className:"size-3.5 animate-spin rounded-full border-2 border-current border-t-transparent"}),e]}):h})},"o",0,d])},88412,a=>{let b="inline-flex h-9 items-center justify-center gap-2 rounded-md px-4 font-medium disabled:opacity-60",c={primary:`${b} bg-primary text-primary-foreground hover:bg-primary-hover`,secondary:`${b} border border-border bg-card hover:bg-accent`,destructive:`${b} bg-destructive text-destructive-foreground`};a.s(["x",0,c,"r",0,"rounded-lg border border-border bg-card p-6 text-card-foreground shadow-sm","w",0,"h-9 w-full rounded-md border border-input bg-background px-3 font-mono text-code","z",0,"grid gap-1"])}]})();
2
2
 
3
- //# sourceMappingURL=_1a9wrl8uw7x-y._.js.map
3
+ //# sourceMappingURL=_13_ady-a4058y._.js.map
@@ -1,3 +1,3 @@
1
- (()=>{"use strict";module.exports=[7963,a=>{var b=a.i(64831);let c={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};c.node;let d=(0,b.f)(c);a.s(["f",0,d],7963)},16550,a=>{a.s(["H",0,"/bridge/basket","P",0,"/bridge","i",0,"/bridge/settings/routing","T",0,"/bridge/settings"])},17758,18145,a=>{let b={home:{name:"Bridge",hasBack:!1,tab:"waiting"},basket:{name:"Basket",hasBack:!0,tab:"waiting"},"stay-aware":{name:"Stay aware",hasBack:!1,tab:"aware"},done:{name:"Done",hasBack:!1,tab:"done"},fleet:{name:"Your fleet",hasBack:!1,tab:"fleet"},routing:{name:"Where things show",hasBack:!0,tab:null},settings:{name:"Settings",hasBack:!0,tab:null}},c={decide:"Question",do:"Step","stay-aware":"Stay aware","everything-else":"Message"};a.s(["u",0,function(a){return c[a]},"f",0,function(a){return b[a]}],17758);var d=a.i(87924),e=a.i(72131);let f=(0,e.createContext)(void 0);a.s(["D",0,function({children:a}){let[b,c]=(0,e.useState)();return(0,d.jsx)(f,{value:{opened:b,setOpened:c},children:a(b)})},"R",0,function(a,b){let c=(0,e.useContext)(f)?.setOpened,d=(0,e.useRef)(b);(0,e.useEffect)(()=>{d.current=b}),(0,e.useEffect)(()=>{if(void 0!==c)return c(void 0===a?void 0:{title:a,onBack:()=>{d.current()}}),()=>{c(void 0)}},[c,a])}],18145)},5759,56672,a=>{var b=a.i(87924),c=a.i(72131);function d(a,b){return void 0!==b.readAt?{kept:{readAt:b.readAt,part:b.part},shown:{part:b.part,lastReadAt:void 0}}:void 0===a?{kept:a,shown:{part:b.part,lastReadAt:void 0}}:{kept:a,shown:{part:a.part,lastReadAt:a.readAt}}}a.s(["C",0,function(a){return`${new Date(a).toISOString().slice(11,16)} UTC`},"R",0,d],56672);let e=(0,c.createContext)(void 0);function f({at:a,children:c}){return(0,b.jsx)(e,{value:a,children:c})}a.s(["KeptRead",0,function({readAt:a,children:e}){let[g,h]=(0,c.useState)(),i=d(g,{readAt:a,part:e});return i.kept?.readAt!==g?.readAt&&h(i.kept),(0,b.jsx)(f,{at:i.shown.lastReadAt,children:i.shown.part})},"useLastReadAt",0,function(){return(0,c.useContext)(e)}],5759)},44337,a=>{var b=a.i(87924),c=a.i(6158),d=a.i(64831);let e={name:"globe",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]};e.node;let f=(0,d.f)(e),g={name:"route",size:24,node:[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]]};g.node;let h=(0,d.f)(g),i={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"}]]};i.node;let j=(0,d.f)(i);var k=a.i(25959),l=a.i(919),m=a.i(48242),n=a.i(72131),o=a.i(50944),p=a.i(16550),q=a.i(7963),r=a.i(17758);let s="inline-flex size-8 shrink-0 items-center justify-center rounded-md hover:bg-accent sm:hidden";function t({fleetId:a,hasBack:c,opened:d}){return void 0!==d?(0,b.jsx)("button",{type:"button","data-testid":"bridge-back","aria-label":"Back",onClick:d.onBack,className:s,children:(0,b.jsx)(q.f,{"aria-hidden":!0,className:"size-5"})}):c?(0,b.jsx)("a",{"data-testid":"bridge-back","aria-label":"Back to Bridge",href:(0,k.f)(p.P,a),className:s,children:(0,b.jsx)(q.f,{"aria-hidden":!0,className:"size-5"})}):null}function u({fleetId:a,fleetName:c,screen:d,isLive:e,opened:f,avatar:g}){let{name:h,hasBack:i}=(0,r.f)(d),j=void 0!==f&&"home"===d?"Waiting on you":h;return(0,b.jsxs)("header",{className:"sticky top-0 z-30 flex h-14 shrink-0 items-center gap-2 border-b border-border bg-background pr-3 pl-4",children:[(0,b.jsx)(t,{fleetId:a,hasBack:i,opened:f}),(0,b.jsxs)("span",{"data-testid":"bridge-crumb",className:"text-muted-foreground max-sm:hidden",children:[void 0===c?null:`${c} / `,(0,b.jsx)("b",{className:"font-semibold text-foreground",children:j})]}),(0,b.jsx)("span",{"data-testid":"bridge-title",className:`min-w-0 flex-1 truncate font-semibold tracking-tight sm:hidden ${i||void 0!==f?"text-lg":"text-title-touch"}`,children:f?.title??h}),e?(0,b.jsxs)("span",{"data-testid":"bridge-live",className:"inline-flex items-center gap-1.5 text-meta text-muted-foreground",children:[(0,b.jsx)("i",{"aria-hidden":!0,className:"inline-block size-2 rounded-full bg-tone-ok-fg"}),"Live"]}):null,(0,b.jsx)("span",{className:"sm:hidden",children:g})]})}var v=a.i(18145);function w({fleetId:a,account:{email:d,accountUrl:e,theme:g}}){let{account:i,signOutForm:n}=(0,l.f)({email:d,accountUrl:e,theme:g,entries:[{key:"routing",label:"Where things show",icon:(0,b.jsx)(h,{"aria-hidden":!0}),href:(0,k.f)(p.i,a),isPhoneOnly:!0},{key:"outside-parties",label:"Outside parties",icon:(0,b.jsx)(f,{"aria-hidden":!0}),href:(0,k.f)(m.$,a),isPhoneOnly:!0},...void 0===e?[]:[{key:"fleets-and-account",label:"Fleets and account",icon:(0,b.jsx)(j,{"aria-hidden":!0}),href:e,isPhoneOnly:!0}]]});return(0,b.jsxs)(b.Fragment,{children:[n,(0,b.jsx)(c.AvatarMenuSheet,{...i})]})}a.s(["ShellFrame",0,function({fleetId:a,fleetName:c,screen:d,account:e,children:f}){let g=function(a){let b=(0,o.useRouter)(),[c,d]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let c=new EventSource(`/bridge/changes?fleet=${encodeURIComponent(a)}`);return c.onopen=()=>{d(!0)},c.onerror=()=>{d(!1)},c.onmessage=()=>{b.refresh()},()=>{c.close()}},[a,b]),c}(a);return(0,n.useEffect)(()=>{let b,c=()=>{let c="visible"===document.visibilityState&&document.hasFocus();c&&void 0===b?b=new EventSource(`/bridge/focus?fleet=${encodeURIComponent(a)}`):c||void 0===b||(b.close(),b=void 0)};return c(),window.addEventListener("focus",c),window.addEventListener("blur",c),document.addEventListener("visibilitychange",c),()=>{window.removeEventListener("focus",c),window.removeEventListener("blur",c),document.removeEventListener("visibilitychange",c),b?.close()}},[a]),(0,b.jsx)(v.D,{children:h=>(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(u,{fleetId:a,fleetName:c,screen:d,isLive:g,opened:h,avatar:void 0===e?null:(0,b.jsx)(w,{fleetId:a,account:e})}),(0,b.jsx)("main",{className:"w-full max-w-5xl flex-1 px-4 py-5 sm:px-6",children:f})]})})},"SidebarPerson",0,function({account:{email:a,accountUrl:d,theme:e},fleetName:f}){let{account:g,signOutForm:h}=(0,l.f)({email:a,accountUrl:d,theme:e});return(0,b.jsxs)(b.Fragment,{children:[h,(0,b.jsx)(c.AvatarMenu,{...g}),(0,b.jsxs)("span",{className:"flex min-w-0 flex-col leading-4",children:[(0,b.jsx)("span",{"data-testid":"bridge-person",className:"truncate font-medium",children:a}),(0,b.jsx)("span",{className:"truncate text-caption text-muted-foreground",children:f})]})]})}],44337)}]})();
1
+ (()=>{"use strict";module.exports=[7963,a=>{var b=a.i(64831);let c={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};c.node;let d=(0,b.f)(c);a.s(["f",0,d],7963)},16550,a=>{a.s(["H",0,"/bridge/basket","P",0,"/bridge","i",0,"/bridge/settings/routing","T",0,"/bridge/settings"])},17758,18145,a=>{let b={home:{name:"Bridge",hasBack:!1,tab:"waiting"},basket:{name:"Basket",hasBack:!0,tab:"waiting"},"stay-aware":{name:"Stay aware",hasBack:!1,tab:"aware"},done:{name:"Done",hasBack:!1,tab:"done"},fleet:{name:"Your fleet",hasBack:!1,tab:"fleet"},routing:{name:"Where things show",hasBack:!0,tab:null},settings:{name:"Settings",hasBack:!0,tab:null}},c={decide:"Question",do:"Step","stay-aware":"Stay aware","everything-else":"Message"};a.s(["u",0,function(a){return c[a]},"f",0,function(a){return b[a]}],17758);var d=a.i(87924),e=a.i(72131);let f=(0,e.createContext)(void 0);a.s(["D",0,function({children:a}){let[b,c]=(0,e.useState)();return(0,d.jsx)(f,{value:{opened:b,setOpened:c},children:a(b)})},"R",0,function(a,b){let c=(0,e.useContext)(f)?.setOpened,d=(0,e.useRef)(b);(0,e.useEffect)(()=>{d.current=b}),(0,e.useEffect)(()=>{if(void 0!==c)return c(void 0===a?void 0:{title:a,onBack:()=>{d.current()}}),()=>{c(void 0)}},[c,a])}],18145)},5759,56672,a=>{var b=a.i(87924),c=a.i(72131);function d(a,b){return void 0!==b.readAt?{kept:{readAt:b.readAt,part:b.part},shown:{part:b.part,lastReadAt:void 0}}:void 0===a?{kept:a,shown:{part:b.part,lastReadAt:void 0}}:{kept:a,shown:{part:a.part,lastReadAt:a.readAt}}}a.s(["C",0,function(a){return`${new Date(a).toISOString().slice(11,16)} UTC`},"R",0,d],56672);let e=(0,c.createContext)(void 0);function f({at:a,children:c}){return(0,b.jsx)(e,{value:a,children:c})}a.s(["KeptRead",0,function({readAt:a,children:e}){let[g,h]=(0,c.useState)(),i=d(g,{readAt:a,part:e});return i.kept?.readAt!==g?.readAt&&h(i.kept),(0,b.jsx)(f,{at:i.shown.lastReadAt,children:i.shown.part})},"useLastReadAt",0,function(){return(0,c.useContext)(e)}],5759)},44337,a=>{var b=a.i(87924),c=a.i(83230),d=a.i(64831);let e={name:"globe",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]};e.node;let f=(0,d.f)(e),g={name:"route",size:24,node:[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]]};g.node;let h=(0,d.f)(g),i={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"}]]};i.node;let j=(0,d.f)(i);var k=a.i(25959),l=a.i(919),m=a.i(48242),n=a.i(72131),o=a.i(50944),p=a.i(16550);let q={name:"app-window",size:24,node:[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]]};q.node;let r=(0,d.f)(q);var s=a.i(52562),t=a.i(7963),u=a.i(17758);let v="inline-flex size-8 shrink-0 items-center justify-center rounded-md hover:bg-accent sm:hidden";function w({fleetId:a,hasBack:c,opened:d}){return void 0!==d?(0,b.jsx)("button",{type:"button","data-testid":"bridge-back","aria-label":"Back",onClick:d.onBack,className:v,children:(0,b.jsx)(t.f,{"aria-hidden":!0,className:"size-5"})}):c?(0,b.jsx)("a",{"data-testid":"bridge-back","aria-label":"Back to Bridge",href:(0,k.f)(p.P,a),className:v,children:(0,b.jsx)(t.f,{"aria-hidden":!0,className:"size-5"})}):null}function x({fleetId:a,fleetName:c,screen:d,isLive:e,opened:f,avatar:g}){let{name:h,hasBack:i}=(0,u.f)(d),j=void 0!==f&&"home"===d?"Waiting on you":h;return(0,b.jsxs)("header",{className:"sticky top-0 z-30 flex h-14 shrink-0 items-center gap-2 border-b border-border bg-background pr-3 pl-4",children:[(0,b.jsx)(w,{fleetId:a,hasBack:i,opened:f}),(0,b.jsxs)("span",{"data-testid":"bridge-crumb",className:"text-muted-foreground max-sm:hidden",children:[void 0===c?null:`${c} / `,(0,b.jsx)("b",{className:"font-semibold text-foreground",children:j})]}),(0,b.jsx)("span",{"data-testid":"bridge-title",className:`min-w-0 flex-1 truncate font-semibold tracking-tight sm:hidden ${i||void 0!==f?"text-lg":"text-title-touch"}`,children:f?.title??h}),e?(0,b.jsxs)("span",{"data-testid":"bridge-live",className:"inline-flex items-center gap-1.5 text-meta text-muted-foreground",children:[(0,b.jsx)("i",{"aria-hidden":!0,className:"inline-block size-2 rounded-full bg-tone-ok-fg"}),"Live"]}):null,(0,b.jsx)("span",{className:"sm:hidden",children:g})]})}var y=a.i(18145);function z({fleetId:a,switcher:d,account:{email:e,accountUrl:g,theme:i}}){let{account:n,signOutForm:o}=(0,l.f)({email:e,accountUrl:g,theme:i,entries:[...d?.apps.map(({app:a,label:c,url:d,isCurrent:e})=>({key:`app-${a}`,label:c,href:d,icon:e?(0,b.jsx)(s.f,{"aria-hidden":!0}):(0,b.jsx)(r,{"aria-hidden":!0}),isPhoneOnly:!0}))??[],{key:"routing",label:"Where things show",icon:(0,b.jsx)(h,{"aria-hidden":!0}),href:(0,k.f)(p.i,a),isPhoneOnly:!0},{key:"outside-parties",label:"Outside parties",icon:(0,b.jsx)(f,{"aria-hidden":!0}),href:(0,k.f)(m.$,a),isPhoneOnly:!0},...void 0===g?[]:[{key:"fleets-and-account",label:"Fleets and account",icon:(0,b.jsx)(j,{"aria-hidden":!0}),href:g,isPhoneOnly:!0}]]});return(0,b.jsxs)(b.Fragment,{children:[o,(0,b.jsx)(c.AvatarMenuSheet,{...n})]})}a.s(["ShellFrame",0,function({fleetId:a,fleetName:c,screen:d,account:e,switcher:f,children:g}){let h=function(a){let b=(0,o.useRouter)(),[c,d]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let c=new EventSource(`/bridge/changes?fleet=${encodeURIComponent(a)}`);return c.onopen=()=>{d(!0)},c.onerror=()=>{d(!1)},c.onmessage=()=>{b.refresh()},()=>{c.close()}},[a,b]),c}(a);return(0,n.useEffect)(()=>{let b,c=()=>{let c="visible"===document.visibilityState&&document.hasFocus();c&&void 0===b?b=new EventSource(`/bridge/focus?fleet=${encodeURIComponent(a)}`):c||void 0===b||(b.close(),b=void 0)};return c(),window.addEventListener("focus",c),window.addEventListener("blur",c),document.addEventListener("visibilitychange",c),()=>{window.removeEventListener("focus",c),window.removeEventListener("blur",c),document.removeEventListener("visibilitychange",c),b?.close()}},[a]),(0,b.jsx)(y.D,{children:i=>(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(x,{fleetId:a,fleetName:c,screen:d,isLive:h,opened:i,avatar:void 0===e?null:(0,b.jsx)(z,{fleetId:a,switcher:f,account:e})}),(0,b.jsx)("main",{className:"w-full max-w-5xl flex-1 px-4 py-5 sm:px-6",children:g})]})})},"SidebarPerson",0,function({account:{email:a,accountUrl:d,theme:e},fleetName:f,isAllowedAsArgo:g=!1}){let{account:h,signOutForm:i}=(0,l.f)({email:a,accountUrl:d,theme:e});return(0,b.jsxs)(b.Fragment,{children:[i,(0,b.jsx)(c.AvatarMenu,{...h}),(0,b.jsxs)("span",{className:"flex min-w-0 flex-col leading-4",children:[(0,b.jsx)("span",{"data-testid":"bridge-person",className:"truncate font-medium",children:a}),(0,b.jsx)("span",{className:"truncate text-caption text-muted-foreground",children:g?`${f??""} \xb7 allowed as argo`:f})]})]})}],44337)}]})();
2
2
 
3
3
  //# sourceMappingURL=_14k1oldo5chf8._.js.map