@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.
- package/README.md +4 -0
- package/dist/adapters/fleet/actor-door.d.ts +8 -1
- package/dist/adapters/fleet/actor-door.js +12 -5
- package/dist/adapters/fleet/actor-door.js.map +1 -1
- package/dist/adapters/fleet/argo-inbox-door.d.ts +4 -0
- package/dist/adapters/fleet/argo-inbox-door.js +81 -0
- package/dist/adapters/fleet/argo-inbox-door.js.map +1 -0
- package/dist/adapters/fleet/rest-fleet-door.d.ts +14 -0
- package/dist/adapters/fleet/rest-fleet-door.js +11 -1
- package/dist/adapters/fleet/rest-fleet-door.js.map +1 -1
- package/dist/adapters/http/front-door.js +3 -1
- package/dist/adapters/http/front-door.js.map +1 -1
- package/dist/adapters/http/live.d.ts +10 -1
- package/dist/adapters/http/live.js +10 -1
- package/dist/adapters/http/live.js.map +1 -1
- package/dist/adapters/pagasae/email-channel.js +5 -3
- package/dist/adapters/pagasae/email-channel.js.map +1 -1
- package/dist/adapters/pagasae/pagasae-client.js +1 -0
- package/dist/adapters/pagasae/pagasae-client.js.map +1 -1
- package/dist/adapters/pagasae/shared-sign-in.js +2 -2
- package/dist/adapters/pagasae/shared-sign-in.js.map +1 -1
- package/dist/adapters/prisma/argo-accounts.d.ts +4 -0
- package/dist/adapters/prisma/argo-accounts.js +17 -0
- package/dist/adapters/prisma/argo-accounts.js.map +1 -0
- package/dist/adapters/prisma/argo-slack-posts.d.ts +4 -0
- package/dist/adapters/prisma/argo-slack-posts.js +30 -0
- package/dist/adapters/prisma/argo-slack-posts.js.map +1 -0
- package/dist/adapters/prisma/argo-wakes.d.ts +4 -0
- package/dist/adapters/prisma/argo-wakes.js +54 -0
- package/dist/adapters/prisma/argo-wakes.js.map +1 -0
- package/dist/adapters/prisma/fleet-forgetter.d.ts +1 -1
- package/dist/adapters/prisma/fleet-forgetter.js +2 -2
- package/dist/adapters/prisma/fleet-forgetter.js.map +1 -1
- package/dist/adapters/prisma/generated/browser.d.ts +20 -0
- package/dist/adapters/prisma/generated/client.d.ts +20 -0
- package/dist/adapters/prisma/generated/internal/class.d.ts +44 -0
- package/dist/adapters/prisma/generated/internal/class.js +4 -4
- package/dist/adapters/prisma/generated/internal/class.js.map +1 -1
- package/dist/adapters/prisma/generated/internal/prismaNamespace.d.ts +334 -1
- package/dist/adapters/prisma/generated/internal/prismaNamespace.js +30 -1
- package/dist/adapters/prisma/generated/internal/prismaNamespace.js.map +1 -1
- package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.d.ts +33 -0
- package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.js +30 -1
- package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.js.map +1 -1
- package/dist/adapters/prisma/generated/models/ArgoAccount.d.ts +946 -0
- package/dist/adapters/prisma/generated/models/ArgoAccount.js +2 -0
- package/dist/adapters/prisma/generated/models/ArgoAccount.js.map +1 -0
- package/dist/adapters/prisma/generated/models/ArgoMessageCovered.d.ts +947 -0
- package/dist/adapters/prisma/generated/models/ArgoMessageCovered.js +2 -0
- package/dist/adapters/prisma/generated/models/ArgoMessageCovered.js.map +1 -0
- package/dist/adapters/prisma/generated/models/ArgoSlackPost.d.ts +1065 -0
- package/dist/adapters/prisma/generated/models/ArgoSlackPost.js +2 -0
- package/dist/adapters/prisma/generated/models/ArgoSlackPost.js.map +1 -0
- package/dist/adapters/prisma/generated/models/ArgoWakeSent.d.ts +975 -0
- package/dist/adapters/prisma/generated/models/ArgoWakeSent.js +2 -0
- package/dist/adapters/prisma/generated/models/ArgoWakeSent.js.map +1 -0
- package/dist/adapters/prisma/generated/models.d.ts +4 -0
- package/dist/adapters/slack/slack-messages.js +5 -4
- package/dist/adapters/slack/slack-messages.js.map +1 -1
- package/dist/adapters/trpc/router.d.ts +24 -0
- package/dist/adapters/trpc/router.js +11 -0
- package/dist/adapters/trpc/router.js.map +1 -1
- package/dist/adapters/web-push/web-push.js +1 -1
- package/dist/adapters/web-push/web-push.js.map +1 -1
- package/dist/app.js +89 -2
- package/dist/app.js.map +1 -1
- package/dist/core/account-sign-in/account-of-sign-in.d.ts +7 -2
- package/dist/core/account-sign-in/account-of-sign-in.js +9 -3
- package/dist/core/account-sign-in/account-of-sign-in.js.map +1 -1
- package/dist/core/account-sign-in/ports.d.ts +2 -0
- package/dist/core/argo-inbox/argo-inbox.d.ts +31 -0
- package/dist/core/argo-inbox/argo-inbox.js +23 -0
- package/dist/core/argo-inbox/argo-inbox.js.map +1 -0
- package/dist/core/argo-inbox/argo-slack-message.d.ts +17 -0
- package/dist/core/argo-inbox/argo-slack-message.js +40 -0
- package/dist/core/argo-inbox/argo-slack-message.js.map +1 -0
- package/dist/core/argo-inbox/argo-slack-post.d.ts +21 -0
- package/dist/core/argo-inbox/argo-slack-post.js +2 -0
- package/dist/core/argo-inbox/argo-slack-post.js.map +1 -0
- package/dist/core/argo-inbox/follow-argo-inbox.d.ts +33 -0
- package/dist/core/argo-inbox/follow-argo-inbox.js +133 -0
- package/dist/core/argo-inbox/follow-argo-inbox.js.map +1 -0
- package/dist/core/argo-inbox/note-argo-account.d.ts +19 -0
- package/dist/core/argo-inbox/note-argo-account.js +18 -0
- package/dist/core/argo-inbox/note-argo-account.js.map +1 -0
- package/dist/core/argo-inbox/ports.d.ts +123 -0
- package/dist/core/argo-inbox/ports.js +2 -0
- package/dist/core/argo-inbox/ports.js.map +1 -0
- package/dist/core/argo-inbox/read-argo-inbox-notice.d.ts +34 -0
- package/dist/core/argo-inbox/read-argo-inbox-notice.js +20 -0
- package/dist/core/argo-inbox/read-argo-inbox-notice.js.map +1 -0
- package/dist/core/argo-inbox/read-argo-section.d.ts +54 -0
- package/dist/core/argo-inbox/read-argo-section.js +67 -0
- package/dist/core/argo-inbox/read-argo-section.js.map +1 -0
- package/dist/core/argo-inbox/show-argo-inbox-in-slack.d.ts +36 -0
- package/dist/core/argo-inbox/show-argo-inbox-in-slack.js +125 -0
- package/dist/core/argo-inbox/show-argo-inbox-in-slack.js.map +1 -0
- package/dist/core/argo-inbox/wake-for-argo.d.ts +37 -0
- package/dist/core/argo-inbox/wake-for-argo.js +139 -0
- package/dist/core/argo-inbox/wake-for-argo.js.map +1 -0
- package/dist/core/oauth/exchange-id-jag.d.ts +4 -1
- package/dist/core/oauth/exchange-id-jag.js +5 -2
- package/dist/core/oauth/exchange-id-jag.js.map +1 -1
- package/dist/core/people/person-wakes.d.ts +49 -0
- package/dist/core/people/person-wakes.js +27 -0
- package/dist/core/people/person-wakes.js.map +1 -0
- package/dist/core/people/ports.d.ts +6 -2
- package/dist/core/people/wake-person.js +1 -1
- package/dist/core/people/wake-person.js.map +1 -1
- package/dist/core/people/web-push-channel.js +2 -2
- package/dist/core/people/web-push-channel.js.map +1 -1
- package/dist/core/sign-in/account-token.d.ts +5 -1
- package/dist/core/sign-in/account-token.js +8 -2
- package/dist/core/sign-in/account-token.js.map +1 -1
- package/dist/core/sign-in/complete-sign-in.d.ts +4 -1
- package/dist/core/sign-in/complete-sign-in.js +5 -2
- package/dist/core/sign-in/complete-sign-in.js.map +1 -1
- package/dist/core/sign-in/ports.d.ts +2 -0
- package/dist/core/slack/edited-post-of.d.ts +2 -0
- package/dist/core/slack/edited-post-of.js +1 -1
- package/dist/core/slack/edited-post-of.js.map +1 -1
- package/dist/core/slack/ports.d.ts +6 -4
- package/package.json +3 -2
- package/src/adapters/prisma/migrations/20261109090000_argo_accounts/migration.sql +8 -0
- package/src/adapters/prisma/migrations/20261110090000_argo_slack_posts/migration.sql +12 -0
- package/src/adapters/prisma/migrations/20261110100000_argo_wakes/migration.sql +18 -0
- package/src/adapters/prisma/schema.prisma +47 -0
- package/web/.next/BUILD_ID +1 -1
- package/web/.next/build-manifest.json +3 -3
- package/web/.next/diagnostics/route-bundle-stats.json +130 -128
- package/web/.next/fallback-build-manifest.json +3 -3
- package/web/.next/prerender-manifest.json +3 -3
- package/web/.next/server/app/(bridge)/bridge/basket/page/server-reference-manifest.json +10 -10
- package/web/.next/server/app/(bridge)/bridge/basket/page.js +6 -6
- package/web/.next/server/app/(bridge)/bridge/basket/page.js.nft.json +1 -1
- package/web/.next/server/app/(bridge)/bridge/basket/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(bridge)/bridge/done/page/server-reference-manifest.json +2 -2
- package/web/.next/server/app/(bridge)/bridge/done/page.js +6 -6
- package/web/.next/server/app/(bridge)/bridge/done/page.js.nft.json +1 -1
- package/web/.next/server/app/(bridge)/bridge/done/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(bridge)/bridge/fleet/page/server-reference-manifest.json +1 -1
- package/web/.next/server/app/(bridge)/bridge/fleet/page.js +6 -6
- package/web/.next/server/app/(bridge)/bridge/fleet/page.js.nft.json +1 -1
- package/web/.next/server/app/(bridge)/bridge/fleet/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(bridge)/bridge/page/server-reference-manifest.json +9 -9
- package/web/.next/server/app/(bridge)/bridge/page.js +6 -6
- package/web/.next/server/app/(bridge)/bridge/page.js.nft.json +1 -1
- package/web/.next/server/app/(bridge)/bridge/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(bridge)/bridge/settings/page/server-reference-manifest.json +1 -1
- package/web/.next/server/app/(bridge)/bridge/settings/page.js +7 -7
- package/web/.next/server/app/(bridge)/bridge/settings/page.js.nft.json +1 -1
- package/web/.next/server/app/(bridge)/bridge/settings/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(bridge)/bridge/settings/requests/[requestId]/page/server-reference-manifest.json +2 -2
- package/web/.next/server/app/(bridge)/bridge/settings/requests/[requestId]/page.js +6 -6
- package/web/.next/server/app/(bridge)/bridge/settings/requests/[requestId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(bridge)/bridge/settings/requests/[requestId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(bridge)/bridge/settings/routing/page/server-reference-manifest.json +5 -5
- package/web/.next/server/app/(bridge)/bridge/settings/routing/page.js +4 -4
- package/web/.next/server/app/(bridge)/bridge/settings/routing/page.js.nft.json +1 -1
- package/web/.next/server/app/(bridge)/bridge/settings/routing/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(bridge)/bridge/stay-aware/page/server-reference-manifest.json +9 -9
- package/web/.next/server/app/(bridge)/bridge/stay-aware/page.js +5 -5
- package/web/.next/server/app/(bridge)/bridge/stay-aware/page.js.nft.json +1 -1
- package/web/.next/server/app/(bridge)/bridge/stay-aware/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(console)/gateway-off/page/server-reference-manifest.json +1 -1
- package/web/.next/server/app/(console)/gateway-off/page.js +2 -2
- package/web/.next/server/app/(console)/gateway-off/page.js.nft.json +1 -1
- package/web/.next/server/app/(console)/gateway-off/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(console)/meetings/[meetingId]/page/server-reference-manifest.json +3 -3
- package/web/.next/server/app/(console)/meetings/[meetingId]/page.js +2 -2
- package/web/.next/server/app/(console)/meetings/[meetingId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(console)/meetings/[meetingId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(console)/outside-parties/[name]/change/page/server-reference-manifest.json +15 -15
- package/web/.next/server/app/(console)/outside-parties/[name]/change/page.js +2 -2
- package/web/.next/server/app/(console)/outside-parties/[name]/change/page.js.nft.json +1 -1
- package/web/.next/server/app/(console)/outside-parties/[name]/change/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(console)/outside-parties/[name]/page/server-reference-manifest.json +8 -8
- package/web/.next/server/app/(console)/outside-parties/[name]/page.js +2 -2
- package/web/.next/server/app/(console)/outside-parties/[name]/page.js.nft.json +1 -1
- package/web/.next/server/app/(console)/outside-parties/[name]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(console)/outside-parties/[name]/retire/page/server-reference-manifest.json +15 -15
- package/web/.next/server/app/(console)/outside-parties/[name]/retire/page.js +2 -2
- package/web/.next/server/app/(console)/outside-parties/[name]/retire/page.js.nft.json +1 -1
- package/web/.next/server/app/(console)/outside-parties/[name]/retire/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(console)/outside-parties/add/page/server-reference-manifest.json +10 -10
- package/web/.next/server/app/(console)/outside-parties/add/page.js +2 -2
- package/web/.next/server/app/(console)/outside-parties/add/page.js.nft.json +1 -1
- package/web/.next/server/app/(console)/outside-parties/add/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(console)/outside-parties/add-a2a-agent/page/server-reference-manifest.json +2 -2
- package/web/.next/server/app/(console)/outside-parties/add-a2a-agent/page.js +2 -2
- package/web/.next/server/app/(console)/outside-parties/add-a2a-agent/page.js.nft.json +1 -1
- package/web/.next/server/app/(console)/outside-parties/add-a2a-agent/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(console)/outside-parties/add-a2a-client/page/server-reference-manifest.json +2 -2
- package/web/.next/server/app/(console)/outside-parties/add-a2a-client/page.js +2 -2
- package/web/.next/server/app/(console)/outside-parties/add-a2a-client/page.js.nft.json +1 -1
- package/web/.next/server/app/(console)/outside-parties/add-a2a-client/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(console)/outside-parties/page/server-reference-manifest.json +2 -2
- package/web/.next/server/app/(console)/outside-parties/page.js +2 -2
- package/web/.next/server/app/(console)/outside-parties/page.js.nft.json +1 -1
- package/web/.next/server/app/(console)/outside-parties/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(console)/parties/page/server-reference-manifest.json +7 -7
- package/web/.next/server/app/(console)/parties/page.js +2 -2
- package/web/.next/server/app/(console)/parties/page.js.nft.json +1 -1
- package/web/.next/server/app/(console)/parties/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(console)/sign-in/failed/page/server-reference-manifest.json +1 -1
- package/web/.next/server/app/(console)/sign-in/failed/page.js +2 -2
- package/web/.next/server/app/(console)/sign-in/failed/page.js.nft.json +1 -1
- package/web/.next/server/app/(console)/sign-in/failed/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(console)/slack/disconnect/page/server-reference-manifest.json +11 -11
- package/web/.next/server/app/(console)/slack/disconnect/page.js +2 -2
- package/web/.next/server/app/(console)/slack/disconnect/page.js.nft.json +1 -1
- package/web/.next/server/app/(console)/slack/disconnect/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(console)/slack/expose/page/server-reference-manifest.json +11 -11
- package/web/.next/server/app/(console)/slack/expose/page.js +2 -2
- package/web/.next/server/app/(console)/slack/expose/page.js.nft.json +1 -1
- package/web/.next/server/app/(console)/slack/expose/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(console)/slack/page/server-reference-manifest.json +11 -11
- package/web/.next/server/app/(console)/slack/page.js +2 -2
- package/web/.next/server/app/(console)/slack/page.js.nft.json +1 -1
- package/web/.next/server/app/(console)/slack/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(console)/slack/remove/page/server-reference-manifest.json +11 -11
- package/web/.next/server/app/(console)/slack/remove/page.js +2 -2
- package/web/.next/server/app/(console)/slack/remove/page.js.nft.json +1 -1
- package/web/.next/server/app/(console)/slack/remove/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/_global-error.html +1 -1
- package/web/.next/server/app/_global-error.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/web/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
- package/web/.next/server/app/_not-found/page.js +2 -2
- package/web/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/authorize/failed/page/server-reference-manifest.json +1 -1
- package/web/.next/server/app/authorize/failed/page.js +3 -4
- package/web/.next/server/app/authorize/failed/page.js.nft.json +1 -1
- package/web/.next/server/app/authorize/failed/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/authorize/pick/page/server-reference-manifest.json +1 -1
- package/web/.next/server/app/authorize/pick/page.js +3 -4
- package/web/.next/server/app/authorize/pick/page.js.nft.json +1 -1
- package/web/.next/server/app/authorize/pick/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/authorize/waiting/approval/page/server-reference-manifest.json +1 -1
- package/web/.next/server/app/authorize/waiting/approval/page.js +3 -4
- package/web/.next/server/app/authorize/waiting/approval/page.js.nft.json +1 -1
- package/web/.next/server/app/authorize/waiting/approval/page_client-reference-manifest.js +1 -1
- package/web/.next/server/chunks/ssr/01fr_app_(bridge)_bridge_settings_requests_[requestId]_page_actions_0o8g7_xshtmem.js +1 -1
- package/web/.next/server/chunks/ssr/01fr_app_(bridge)_bridge_settings_requests_[requestId]_page_actions_0o8g7_xshtmem.js.map +1 -1
- package/web/.next/server/chunks/ssr/0b9d__next-internal_server_app_(bridge)_bridge_stay-aware_page_actions_1u0xo0v3y9c34.js +1 -1
- package/web/.next/server/chunks/ssr/0b9d__next-internal_server_app_(bridge)_bridge_stay-aware_page_actions_1u0xo0v3y9c34.js.map +1 -1
- package/web/.next/server/chunks/ssr/0vkm_server_app_(bridge)_bridge_settings_routing_page_actions_06_j7s24dy5ee.js +1 -1
- package/web/.next/server/chunks/ssr/0vkm_server_app_(bridge)_bridge_settings_routing_page_actions_06_j7s24dy5ee.js.map +1 -1
- package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_outside-parties_[name]_change_page_actions_04td11fxohsfm.js +1 -1
- package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_outside-parties_[name]_change_page_actions_04td11fxohsfm.js.map +1 -1
- package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_outside-parties_[name]_page_actions_0u-45itza1ls7.js +1 -1
- package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_outside-parties_[name]_page_actions_0u-45itza1ls7.js.map +1 -1
- package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_outside-parties_[name]_retire_page_actions_0s7ps6i0ts7v5.js +1 -1
- package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_outside-parties_[name]_retire_page_actions_0s7ps6i0ts7v5.js.map +1 -1
- package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_outside-parties_add-a2a-client_page_actions_0d_wgiu94c32e.js +1 -1
- package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_outside-parties_add-a2a-client_page_actions_0d_wgiu94c32e.js.map +1 -1
- package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_outside-parties_add_page_actions_0yfz_dfn-8uo7.js +1 -1
- package/web/.next/server/chunks/ssr/0vkm_server_app_(console)_outside-parties_add_page_actions_0yfz_dfn-8uo7.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__001xx3sm5ur-e._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__001xx3sm5ur-e._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__0a6a1yc_ac-qt._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__0a8db18tyk__5._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__0a8db18tyk__5._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__0e4l5gt01o04p._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__0fz0817_b9ljl._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__0gptrhg3mj4hs._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__0k3g0p3t9t0c-._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__0k3g0p3t9t0c-._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__0kjcooo3pi4_k._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__0rmg7huc074bf._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__10s9e8g5x-ws8._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__10s9e8g5x-ws8._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__13v3maun347sn._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__13yoncr_nx3jc._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__13yoncr_nx3jc._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__18-8taiduk1jn._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__18-8taiduk1jn._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__1qtzvez4cn5be._.js → [root-of-the-server]__1ektgsnjg4btl._.js} +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__1hgu6f5hpnykv._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__1j6n8jj7-5t6v._.js → [root-of-the-server]__1nfpyr3ynmwks._.js} +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__1qpow96uit9t8._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__1qpow96uit9t8._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__1ul9rrs2g66lm._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__20gvfqy33wcds._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_00fvst5icgei4._.js +3 -0
- package/web/.next/server/chunks/ssr/_00fvst5icgei4._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_00hfzlqn1og18._.js +1 -1
- package/web/.next/server/chunks/ssr/_00hfzlqn1og18._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_02mwdj1oj1zgm._.js +3 -0
- package/web/.next/server/chunks/ssr/_02mwdj1oj1zgm._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_0fqd23gyia_8g._.js +3 -0
- package/web/.next/server/chunks/ssr/_0fqd23gyia_8g._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_0ka_9elusb800._.js +1 -1
- package/web/.next/server/chunks/ssr/_0ka_9elusb800._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_0pyd1_y7w8ngp._.js +1 -1
- package/web/.next/server/chunks/ssr/_0pyd1_y7w8ngp._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_0u0u0owpxx_37._.js +3 -0
- package/web/.next/server/chunks/ssr/_0u0u0owpxx_37._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_0v_x6k3ztfvx0._.js +1 -1
- package/web/.next/server/chunks/ssr/_0v_x6k3ztfvx0._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_0x5-_917zcaj9._.js +3 -0
- package/web/.next/server/chunks/ssr/_0x5-_917zcaj9._.js.map +1 -0
- package/web/.next/server/chunks/ssr/{_0cnpz5jm2_9xf._.js → _0xajzaside0sw._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_0cnpz5jm2_9xf._.js.map → _0xajzaside0sw._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_0xickgbbju_9-._.js +1 -1
- package/web/.next/server/chunks/ssr/_0xickgbbju_9-._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_0yhvyj-yts7qi._.js +3 -0
- package/web/.next/server/chunks/ssr/_0yhvyj-yts7qi._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_104ilzyn58zw_._.js +3 -0
- package/web/.next/server/chunks/ssr/_104ilzyn58zw_._.js.map +1 -0
- package/web/.next/server/chunks/ssr/{_1a9wrl8uw7x-y._.js → _13_ady-a4058y._.js} +1 -1
- package/web/.next/server/chunks/ssr/_14k1oldo5chf8._.js +1 -1
- package/web/.next/server/chunks/ssr/_14k1oldo5chf8._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_1_wav28san6dm._.js +1 -1
- package/web/.next/server/chunks/ssr/{_1iorutn_o9hja._.js → _1cc4ie_s4tycq._.js} +1 -1
- package/web/.next/server/chunks/ssr/_1e2o809f0ekry._.js +1 -1
- package/web/.next/server/chunks/ssr/_1gbkqq8ra1nei._.js +1 -1
- package/web/.next/server/chunks/ssr/_1gbkqq8ra1nei._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_1kdx8a0j5cxyl._.js → _1gnk2vqna6c6u._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_1kdx8a0j5cxyl._.js.map → _1gnk2vqna6c6u._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_1k2b80m058vgx._.js +3 -0
- package/web/.next/server/chunks/ssr/_1k2b80m058vgx._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_1pjtire7rqla0._.js +1 -1
- package/web/.next/server/chunks/ssr/_1pjtire7rqla0._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_1qbsmlji34yph._.js +1 -1
- package/web/.next/server/chunks/ssr/_1qbsmlji34yph._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_1t74yvog5g6g2._.js +1 -1
- package/web/.next/server/chunks/ssr/_1t74yvog5g6g2._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_1i5zdy3tp2ykh._.js → _1xgivp19ts9hn._.js} +1 -1
- package/web/.next/server/chunks/ssr/_1zmd3armaxhyu._.js +1 -1
- package/web/.next/server/chunks/ssr/_1zmd3armaxhyu._.js.map +1 -1
- package/web/.next/server/chunks/ssr/node_modules_05ni_zu0e0w44._.js +3 -0
- package/web/.next/server/chunks/ssr/node_modules_05ni_zu0e0w44._.js.map +1 -0
- package/web/.next/server/chunks/ssr/node_modules_07vtvfyfo0a6i._.js +3 -0
- package/web/.next/server/chunks/ssr/node_modules_07vtvfyfo0a6i._.js.map +1 -0
- package/web/.next/server/chunks/ssr/node_modules_0ettht2so2tkh._.js +1 -1
- package/web/.next/server/chunks/ssr/node_modules_0keape0zsobyj._.js +1 -1
- package/web/.next/server/chunks/ssr/node_modules_12euo0ncdx1pn._.js +3 -0
- package/web/.next/server/chunks/ssr/node_modules_12euo0ncdx1pn._.js.map +1 -0
- package/web/.next/server/chunks/ssr/node_modules_1722-epjft-rn._.js +3 -0
- package/web/.next/server/chunks/ssr/node_modules_1722-epjft-rn._.js.map +1 -0
- 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
- package/web/.next/server/chunks/ssr/node_modules_@aeolus-fleet_ui_dist_11tn8gozt2_c3._.js.map +1 -0
- package/web/.next/server/chunks/ssr/node_modules_@aeolus-fleet_ui_dist_16j49enf275ln._.js +3 -0
- package/web/.next/server/chunks/ssr/node_modules_@aeolus-fleet_ui_dist_16j49enf275ln._.js.map +1 -0
- package/web/.next/server/chunks/ssr/node_modules_@base-ui_0jlwmxa9rk8p_._.js +1 -1
- package/web/.next/server/chunks/ssr/node_modules_@base-ui_19e_nxxf4a88q._.js +1 -1
- package/web/.next/server/chunks/ssr/web_0_peudz6-o69m._.js +1 -1
- package/web/.next/server/chunks/ssr/web_0_peudz6-o69m._.js.map +1 -1
- package/web/.next/server/chunks/ssr/web_0cxcy088wnfmw._.js +1 -1
- package/web/.next/server/chunks/ssr/web_0oz8bypfxh82g._.js +1 -1
- package/web/.next/server/chunks/ssr/web_0oz8bypfxh82g._.js.map +1 -1
- package/web/.next/server/chunks/ssr/web_0qgev3ti257yj._.js +1 -1
- package/web/.next/server/chunks/ssr/web_0wys4l6za8umr._.js +1 -1
- package/web/.next/server/chunks/ssr/web_0wys4l6za8umr._.js.map +1 -1
- package/web/.next/server/chunks/ssr/web_1fi1x3y7rg7mf._.js +1 -1
- package/web/.next/server/chunks/ssr/web_1ga4pbv72m0ad._.js +1 -1
- package/web/.next/server/chunks/ssr/web_1irsulms62lzf._.js +1 -1
- package/web/.next/server/chunks/ssr/web_1k2rrq-kr6f9k._.js +1 -1
- package/web/.next/server/chunks/ssr/web_1k2rrq-kr6f9k._.js.map +1 -1
- package/web/.next/server/chunks/ssr/web_1qvxzqmq4aw94._.js +1 -1
- package/web/.next/server/chunks/ssr/web__next-internal_server_app_(bridge)_bridge_basket_page_actions_0g7q_rc5nma1e.js +1 -1
- package/web/.next/server/chunks/ssr/web__next-internal_server_app_(bridge)_bridge_basket_page_actions_0g7q_rc5nma1e.js.map +1 -1
- package/web/.next/server/chunks/ssr/web__next-internal_server_app_(bridge)_bridge_done_page_actions_0kjm34arntdzv.js +1 -1
- package/web/.next/server/chunks/ssr/web__next-internal_server_app_(bridge)_bridge_done_page_actions_0kjm34arntdzv.js.map +1 -1
- package/web/.next/server/chunks/ssr/web__next-internal_server_app_(bridge)_bridge_page_actions_1ok64rg3edm_u.js +1 -1
- package/web/.next/server/chunks/ssr/web__next-internal_server_app_(bridge)_bridge_page_actions_1ok64rg3edm_u.js.map +1 -1
- package/web/.next/server/chunks/ssr/web_app_(bridge)_bridge_fleet_page_tsx_0uvtx8hiy8g0n._.js +1 -1
- package/web/.next/server/chunks/ssr/web_app_(bridge)_bridge_settings_page_tsx_1z5yr8ss25q7n._.js +1 -1
- package/web/.next/server/chunks/ssr/web_app_(console)_parties_page_tsx_0pp63ghly3eyp._.js +1 -1
- package/web/.next/server/chunks/ssr/web_app_authorize_layout_tsx_0gs61_7wzx68y._.js +1 -1
- package/web/.next/server/chunks/ssr/web_app_authorize_layout_tsx_0gs61_7wzx68y._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{web_features_0bwqcs9wjf4y8._.js → web_features_06f9kfi0c4nf8._.js} +2 -2
- package/web/.next/server/chunks/ssr/{web_features_05aos-xwnl3m_._.js.map → web_features_06f9kfi0c4nf8._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/web_features_0rd6357w-eo50._.js +1 -1
- package/web/.next/server/chunks/ssr/{web_features_05aos-xwnl3m_._.js → web_features_12b-75qfhurxi._.js} +2 -2
- package/web/.next/server/chunks/ssr/{web_features_0bwqcs9wjf4y8._.js.map → web_features_12b-75qfhurxi._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/web_features_19r68thirqv1n._.js +1 -1
- package/web/.next/server/chunks/ssr/web_features_1m5g9a6mwrsd-._.js +1 -1
- package/web/.next/server/chunks/ssr/web_features_add-a2a-agent_ui_a2a-agent-form_tsx_0z8t1aalwzyl7._.js +1 -1
- package/web/.next/server/chunks/ssr/web_features_add-a2a-agent_ui_a2a-agent-form_tsx_0z8t1aalwzyl7._.js.map +1 -1
- package/web/.next/server/chunks/ssr/web_features_add-a2a-client_ui_a2a-client-form_tsx_1anv88g385nwe._.js +1 -1
- package/web/.next/server/chunks/ssr/web_features_add-a2a-client_ui_a2a-client-form_tsx_1anv88g385nwe._.js.map +1 -1
- package/web/.next/server/chunks/ssr/web_features_add-server_ui_add-server_tsx_1jnmar5xju49k._.js +1 -1
- package/web/.next/server/chunks/ssr/web_features_add-server_ui_add-server_tsx_1jnmar5xju49k._.js.map +1 -1
- package/web/.next/server/chunks/ssr/web_features_authorize_137wk0n1nu3cn._.js +1 -1
- package/web/.next/server/chunks/ssr/web_features_authorize_137wk0n1nu3cn._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{web_features_bridge_0w95y19yk5w14._.js → web_features_bridge_0msm42qwm0-jq._.js} +2 -2
- package/web/.next/server/chunks/ssr/{web_features_bridge_0w95y19yk5w14._.js.map → web_features_bridge_0msm42qwm0-jq._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/web_features_bridge_fleet_ui_fleet-numbers_tsx_0_afv4j248_w-._.js +1 -1
- package/web/.next/server/chunks/ssr/web_features_bridge_fleet_ui_fleet-numbers_tsx_0_afv4j248_w-._.js.map +1 -1
- package/web/.next/server/chunks/ssr/web_features_bridge_hooks_bridge-actions_ts_0h-_xm2rcb-ij._.js +1 -1
- package/web/.next/server/chunks/ssr/web_features_bridge_hooks_bridge-actions_ts_0h-_xm2rcb-ij._.js.map +1 -1
- package/web/.next/server/chunks/ssr/web_features_bridge_state_basket-panel_tsx_1qi_kzld0rfgs._.js +1 -1
- package/web/.next/server/chunks/ssr/web_features_bridge_state_basket-panel_tsx_1qi_kzld0rfgs._.js.map +1 -1
- package/web/.next/server/chunks/ssr/web_features_bridge_state_decision-panel_tsx_1mzsixgc8zuxc._.js +1 -1
- package/web/.next/server/chunks/ssr/web_features_bridge_state_decision-panel_tsx_1mzsixgc8zuxc._.js.map +1 -1
- package/web/.next/server/chunks/ssr/web_features_bridge_state_done-panel_tsx_1m844-qb1z9p_._.js +1 -1
- package/web/.next/server/chunks/ssr/web_features_bridge_state_done-panel_tsx_1m844-qb1z9p_._.js.map +1 -1
- package/web/.next/server/chunks/ssr/web_features_bridge_state_home-panel_tsx_1cc5zdhxogl_2._.js +1 -1
- package/web/.next/server/chunks/ssr/web_features_bridge_state_home-panel_tsx_1cc5zdhxogl_2._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{web_features_025l9l6m2zkya._.js → web_features_forms_1u0akr22eh_x_._.js} +2 -2
- package/web/.next/server/chunks/ssr/web_features_forms_1u0akr22eh_x_._.js.map +1 -0
- package/web/.next/server/chunks/ssr/web_features_frame_01uyck6q56an2._.js +3 -0
- package/web/.next/server/chunks/ssr/web_features_frame_01uyck6q56an2._.js.map +1 -0
- package/web/.next/server/chunks/ssr/web_features_frame_ui_gateway-header_tsx_0e9tekx4jf7ng._.js +1 -1
- package/web/.next/server/chunks/ssr/web_features_frame_ui_gateway-header_tsx_0e9tekx4jf7ng._.js.map +1 -1
- package/web/.next/server/chunks/ssr/web_features_meeting_state_meeting-controls_tsx_12g4kzk2mbvvz._.js +1 -1
- package/web/.next/server/chunks/ssr/web_features_meeting_state_meeting-controls_tsx_12g4kzk2mbvvz._.js.map +1 -1
- package/web/.next/server/chunks/ssr/web_features_outside-parties_ui_switch-card_tsx_1_xnu9bm4tc-_._.js +1 -1
- package/web/.next/server/chunks/ssr/web_features_outside-parties_ui_switch-card_tsx_1_xnu9bm4tc-_._.js.map +1 -1
- package/web/.next/server/chunks/ssr/web_features_outside-party_1-lre9nfakki7._.js +1 -1
- package/web/.next/server/chunks/ssr/web_features_outside-party_actions_ts_102ar5pdowf8s._.js +1 -1
- package/web/.next/server/chunks/ssr/web_features_parties_actions_ts_0r-tbfsig2ty-._.js +1 -1
- package/web/.next/server/chunks/ssr/web_features_slack_actions_ts_1l3yg9vl20_vu._.js +1 -1
- package/web/.next/server/middleware-build-manifest.js +3 -3
- package/web/.next/server/pages/500.html +1 -1
- package/web/.next/server/preview-props.json +3 -3
- package/web/.next/server/server-reference-manifest.js +1 -1
- package/web/.next/server/server-reference-manifest.json +49 -49
- package/web/.next/static/chunks/030kay14jcn_y.js +1 -0
- package/web/.next/static/chunks/0ben53l12lrh1.js +1 -0
- package/web/.next/static/chunks/0d1u4n5okodee.css +3 -0
- package/web/.next/static/chunks/0dg4cy4rae-3o.js +1 -0
- package/web/.next/static/chunks/0jwils_670syn.js +1 -0
- package/web/.next/static/chunks/0lnew3mjkd54b.js +1 -0
- package/web/.next/static/chunks/0m95j-t2qmnd_.js +1 -0
- package/web/.next/static/chunks/0r5ujkp-5utsu.js +1 -0
- package/web/.next/static/chunks/{23vvtbj-zoa_f.js → 1jyiwl5szsvgn.js} +1 -1
- package/web/.next/static/chunks/{0k33n07zesv12.js → 1lkcm-iwggfae.js} +1 -1
- package/web/.next/static/chunks/1ml6wx1ya9wwo.js +1 -0
- package/web/.next/static/chunks/22wtc73dzqm8f.js +1 -0
- package/web/.next/static/chunks/2drwxc7-hry0u.js +1 -0
- package/web/.next/static/chunks/{07j7jnfe13wx6.js → 2ich96rzec753.js} +1 -1
- package/web/.next/static/chunks/{3d5z1i-6yksxd.js → 2khjzepn4_2a-.js} +1 -1
- package/web/.next/static/chunks/{1uhmdmkn5gsk2.js → 2ui6n5-n032a3.js} +1 -1
- package/web/.next/static/chunks/2wvdu6-tx1h0l.js +1 -0
- package/web/.next/static/chunks/33qpc2y76i927.js +1 -0
- package/web/.next/static/chunks/3h8spyc73a438.js +1 -0
- package/web/.next/static/chunks/{2dgbb29jkr_tu.js → 3v8s571padqcz.js} +1 -1
- package/web/.next/static/chunks/3wg9zn3lyhf-b.js +1 -0
- package/web/.next/trace +1 -1
- package/web/.next/trace-build +1 -1
- package/web/public/argo-wake-icon.svg +1 -0
- package/web/public/wake-worker.js +8 -2
- package/web/public/wake-worker.test.ts +52 -0
- package/web/.next/server/chunks/ssr/_0oekmfmigr0qv._.js +0 -3
- package/web/.next/server/chunks/ssr/_0oekmfmigr0qv._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_0vid8-myyy-_4._.js +0 -3
- package/web/.next/server/chunks/ssr/_0y5eahpucp8g_._.js +0 -3
- package/web/.next/server/chunks/ssr/_0y5eahpucp8g_._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_13fbnlwrl24s3._.js +0 -3
- package/web/.next/server/chunks/ssr/_13fbnlwrl24s3._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_1airu8wwf7z1b._.js +0 -3
- package/web/.next/server/chunks/ssr/_1airu8wwf7z1b._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_1i5zdy3tp2ykh._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_1pp0z5srqqqyl._.js +0 -3
- package/web/.next/server/chunks/ssr/_1pp0z5srqqqyl._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_1xuikhitica6p._.js +0 -3
- package/web/.next/server/chunks/ssr/_1xuikhitica6p._.js.map +0 -1
- package/web/.next/server/chunks/ssr/node_modules_0gpbs01t1c_a4._.js +0 -3
- package/web/.next/server/chunks/ssr/node_modules_0gpbs01t1c_a4._.js.map +0 -1
- package/web/.next/server/chunks/ssr/node_modules_0zgrzr0ui3gi8._.js +0 -3
- package/web/.next/server/chunks/ssr/node_modules_0zgrzr0ui3gi8._.js.map +0 -1
- package/web/.next/server/chunks/ssr/node_modules_174jf4d4t_bo_._.js +0 -3
- package/web/.next/server/chunks/ssr/node_modules_174jf4d4t_bo_._.js.map +0 -1
- package/web/.next/server/chunks/ssr/node_modules_1qxtjrbc2-6xd._.js +0 -3
- package/web/.next/server/chunks/ssr/node_modules_1qxtjrbc2-6xd._.js.map +0 -1
- package/web/.next/server/chunks/ssr/node_modules_@aeolus-fleet_common_dist_header_0t_cmi-llaq7g._.js +0 -3
- package/web/.next/server/chunks/ssr/node_modules_@aeolus-fleet_common_dist_header_0t_cmi-llaq7g._.js.map +0 -1
- package/web/.next/server/chunks/ssr/node_modules_@aeolus-fleet_common_dist_header_1x3s5abk_uj9j._.js.map +0 -1
- package/web/.next/server/chunks/ssr/node_modules_@aeolus-fleet_common_dist_header_app-switcher_08qq5-uxv7jii.js +0 -3
- package/web/.next/server/chunks/ssr/node_modules_@aeolus-fleet_common_dist_header_app-switcher_08qq5-uxv7jii.js.map +0 -1
- package/web/.next/server/chunks/ssr/node_modules_@aeolus-fleet_common_dist_header_class-names_1h5pbm2ucssiq.js +0 -3
- package/web/.next/server/chunks/ssr/node_modules_@aeolus-fleet_common_dist_header_class-names_1h5pbm2ucssiq.js.map +0 -1
- package/web/.next/server/chunks/ssr/web_features_025l9l6m2zkya._.js.map +0 -1
- package/web/.next/server/chunks/ssr/web_features_frame_0pe8cwpxe1egb._.js +0 -3
- package/web/.next/server/chunks/ssr/web_features_frame_0pe8cwpxe1egb._.js.map +0 -1
- package/web/.next/server/chunks/ssr/web_features_outside-parties_paths_ts_0vbj9elyqekpp._.js +0 -3
- package/web/.next/server/chunks/ssr/web_features_outside-parties_paths_ts_0vbj9elyqekpp._.js.map +0 -1
- package/web/.next/static/chunks/0ozz8jadgfdrx.js +0 -1
- package/web/.next/static/chunks/1v36iovy1f5cj.js +0 -1
- package/web/.next/static/chunks/1vhvy8bx4fxur.js +0 -1
- package/web/.next/static/chunks/1vhx_nu9nxo1v.js +0 -1
- package/web/.next/static/chunks/24vn5i6ojvl8l.js +0 -1
- package/web/.next/static/chunks/2l6hafvocw-rd.js +0 -1
- package/web/.next/static/chunks/2ld8_nap7g_uy.js +0 -1
- package/web/.next/static/chunks/2pvcbql986wln.js +0 -1
- package/web/.next/static/chunks/2s1efgj6gxjgl.js +0 -1
- package/web/.next/static/chunks/2zlx-c_0x38uo.css +0 -3
- package/web/.next/static/chunks/34u_331hqync_.js +0 -1
- package/web/.next/static/chunks/3_bb0g4jkqn8q.js +0 -1
- package/web/.next/static/chunks/3jq9vu8tr29j2.js +0 -1
- /package/web/.next/server/chunks/ssr/{[root-of-the-server]__1qtzvez4cn5be._.js.map → [root-of-the-server]__1ektgsnjg4btl._.js.map} +0 -0
- /package/web/.next/server/chunks/ssr/{[root-of-the-server]__1j6n8jj7-5t6v._.js.map → [root-of-the-server]__1nfpyr3ynmwks._.js.map} +0 -0
- /package/web/.next/server/chunks/ssr/{_1a9wrl8uw7x-y._.js.map → _13_ady-a4058y._.js.map} +0 -0
- /package/web/.next/server/chunks/ssr/{_1iorutn_o9hja._.js.map → _1cc4ie_s4tycq._.js.map} +0 -0
- /package/web/.next/server/chunks/ssr/{_0vid8-myyy-_4._.js.map → _1xgivp19ts9hn._.js.map} +0 -0
- /package/web/.next/static/{2O8_FQX7YN47L5_OxojXH → 79SqN0pBIJ0D-DK1jZmK6}/_buildManifest.js +0 -0
- /package/web/.next/static/{2O8_FQX7YN47L5_OxojXH → 79SqN0pBIJ0D-DK1jZmK6}/_clientMiddlewareManifest.js +0 -0
- /package/web/.next/static/{2O8_FQX7YN47L5_OxojXH → 79SqN0pBIJ0D-DK1jZmK6}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[26323,8821,56736,25834,35890,64938,80829,6640,10199,64951,66250,77173,13488,28376,9977,41708,93480,e=>{var t=e.i(71645),n=e.i(33332);let r=t.createContext(void 0);function i(e){let i=t.useContext(r);if(!e&&void 0===i)throw Error((0,n.f)(27));return i}e.s(["R",0,r,"x",0,i],8821);var s=e.i(52245),o=e.i(79938);let a=t.forwardRef(function(e,t){let{render:n,className:r,style:a,forceRender:d=!1,...l}=e,u=i(),c=u.useState("open"),p=u.useState("nested"),f=u.useState("mounted"),g=u.useState("transitionStatus");return(0,s.a)("div",e,{state:{open:c,transitionStatus:g},ref:[u.context.backdropRef,t],stateAttributesMapping:o.M,props:[{role:"presentation",hidden:!f,style:{userSelect:"none",WebkitUserSelect:"none"}},l],enabled:d||!p})});var d=e.i(40886),l=e.i(75606),u=e.i(57749);let c=t.forwardRef(function(e,t){let{render:n,className:r,style:o,disabled:a=!1,nativeButton:c=!0,...p}=e,f=i(),g=f.useState("open"),{getButtonProps:m,buttonRef:v}=(0,d.f)({disabled:a,native:c});return(0,s.a)("button",e,{state:{disabled:a},ref:[t,v],props:[{onClick:function(e){g&&f.setOpen(!1,(0,l.j)(u.f.closePress,e.nativeEvent))}},p,m]})});e.s(["f",0,c],56736);var p=e.i(88015);let f=t.forwardRef(function(e,t){let{render:n,className:r,style:o,id:a,...d}=e,l=i(),u=(0,p.f)(a);return l.useSyncedValueWithCleanup("descriptionElementId",u),(0,s.a)("p",e,{ref:t,props:[{id:u},d]})});var g=e.i(61487);let m=t.createContext(void 0);function v(){let e=t.useContext(m);if(void 0===e)throw Error((0,n.f)(26));return e}e.s(["_",0,m,"Z",0,v],25834);var h=e.i(37584),x=e.i(73327),b=e.i(64111),S=e.i(74354),y=e.i(38380);e.s(["f",0,y],35890);var y=y,j=y;e.s(["f",0,j],64938);var j=y,w=y;e.s(["f",0,w],80829);var w=y,k=y;e.s(["f",0,k],6640);var k=y;y.open,j.closed,w.startingStyle,k.endingStyle;let C={...o.E,...S.f,nestedDialogOpen:e=>e?{"data-nested-dialog-open":""}:null};e.s(["f",0,C],10199);var N=e.i(43476);let R=t.forwardRef(function(e,t){let{render:n,className:r,style:o,finalFocus:a,initialFocus:d,...l}=e,u=i(),c=u.useState("descriptionElementId"),p=u.useState("disablePointerDismissal"),f=u.useState("floatingRootContext"),m=u.useState("popupProps"),S=u.useState("modal"),y=u.useState("mounted"),j=u.useState("nested"),w=u.useState("nestedOpenDialogCount"),k=u.useState("open"),R=u.useState("openMethod"),I=u.useState("titleElementId"),P=u.useState("transitionStatus"),O=u.useState("role"),T=f.useState("floatingId");v(),(0,h.f)({open:k,ref:u.context.popupRef,onComplete(){k&&u.context.onOpenChangeComplete?.(!0)}});let E=void 0===d?(0,b.H)(u.context.popupRef):d,D=u.useStateSetter("popupElement"),M=(0,s.a)("div",e,{state:{open:k,nested:j,transitionStatus:P,nestedDialogOpen:w>0},props:[m,{id:T,"aria-labelledby":I,"aria-describedby":c,role:O,...b.X,hidden:!y,onKeyDown(e){x.f.has(e.key)&&e.stopPropagation()},style:{"--nested-dialogs":w}},l],ref:[t,u.context.popupRef,D],stateAttributesMapping:C});return(0,N.jsx)(g.f,{context:f,openInteractionType:R,disabled:!y,closeOnFocusOut:!p,initialFocus:E,returnFocus:a,modal:!1!==S,restoreFocus:"popup",children:M})});var I=e.i(44394),P=e.i(26674),O=e.i(426);let T=t.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,s=i(),o=s.useState("mounted"),a=s.useState("modal"),d=s.useState("open");return o||n?(0,N.jsx)(m.Provider,{value:n,children:(0,N.jsxs)(P.r,{ref:t,...r,children:[o&&!0===a&&(0,N.jsx)(O.f,{ref:s.context.internalBackdropRef,inert:(0,I.f)(!d)}),e.children]})}):null});e.s(["f",0,T],64951);var E=e.i(96499),D=e.i(46376),M=e.i(45484),z=e.i(17989),A=e.i(84446);function U({store:e,parentContext:n,isDrawer:r}){let i=e.useState("open"),s=e.useState("mounted"),o=e.useState("disablePointerDismissal"),a=e.useState("modal"),d=e.useState("popupElement"),l=e.useState("floatingRootContext"),[u,c]=t.useState(0),[p,f]=t.useState(0),g=0===u,m=(0,z.f)(l,{outsidePressEvent:()=>e.context.internalBackdropRef.current||e.context.backdropRef.current?"intentional":{mouse:"trap-focus"===a?"sloppy":"intentional",touch:"sloppy"},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||"button"in t&&0!==t.button)return!1;if("touches"in t){if("touchend"===t.type){if(1!==t.changedTouches.length||0!==t.touches.length)return!1}else if(1!==t.touches.length)return!1}let n=(0,A.Z)(t);if(g&&!o){if(a){let t=e.context.internalBackdropRef.current,r=e.context.backdropRef.current;return!t&&!r||t===n||r===n||(0,A.I)(n,d)&&!n?.hasAttribute("data-base-ui-portal")}return!0}return!1},escapeKey:g});return(0,M.f)(i&&!0===a,d),e.useContextCallback("onNestedDialogOpen",(t,n)=>{(e.select("open")||e.select("mounted"))&&(c(t),f(n))}),(0,D.f)(()=>{i||s||(c(0),f(0))},[i,s]),(0,D.f)(()=>(n?.onNestedDialogOpen&&i&&n.onNestedDialogOpen(u+1,p+ +!!r),()=>{n?.onNestedDialogOpen&&i&&n.onNestedDialogOpen(0,0)}),[r,i,u,p,n]),(0,b.y)(e,{activeTriggerProps:m.reference,inactiveTriggerProps:m.trigger,popupProps:m.floating,nestedOpenDialogCount:u,nestedOpenDrawerCount:p}),null}var $=e.i(1252),B=e.i(16786),F=e.i(90627);let L={...B.j,modal:e=>e.modal,nested:e=>e.nested,nestedOpenDialogCount:e=>e.nestedOpenDialogCount,nestedOpenDrawerCount:e=>e.nestedOpenDrawerCount,disablePointerDismissal:e=>e.disablePointerDismissal,openMethod:e=>e.openMethod,descriptionElementId:e=>e.descriptionElementId,titleElementId:e=>e.titleElementId,viewportElement:e=>e.viewportElement,role:e=>e.role};class W extends $.f{constructor(e,n,r){var i;let s=new F.f;super(function(e,t,n,r=!1){return{...(0,B.i)(t,n,r),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...e}}(e,s,n,r),(i=s,{popupRef:t.createRef(),backdropRef:t.createRef(),internalBackdropRef:t.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:i,onOpenChange:void 0,onOpenChangeComplete:void 0}),L)}setOpen=(e,t)=>{t.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},e||null!=t.trigger||null==this.state.activeTriggerId||(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled||(this.state.floatingRootContext.dispatchOpenChange(e,t),this.update((0,b.z)(this.state,e,t.trigger)))}}var q=e.i(68765);function V(e,n){let{children:s,open:o,defaultOpen:a=!1,onOpenChange:d,onOpenChangeComplete:u,disablePointerDismissal:c=!1,modal:p=!0,actionsRef:f,handle:g,triggerId:m,defaultTriggerId:v=null}=n,h="alert-dialog"===e,x=i(!0),S={modal:!!h||p,disablePointerDismissal:h||c,nested:null!=x,role:h?"alertdialog":"dialog"},y=(0,b.$)((e,t)=>new W({open:a,openProp:o,activeTriggerId:v,triggerIdProp:m,...S},e,t),!0);y.useControlledProp("openProp",o),y.useControlledProp("triggerIdProp",m),y.useSyncedValues(S),y.useContextCallback("onOpenChange",d),y.useContextCallback("onOpenChangeComplete",u);let j=y.useState("open"),w=y.useState("mounted"),k=y.useState("payload");(0,b.e)(y,j),(0,b._)(y);let{forceUnmount:C}=(0,b.L)(j,y);t.useImperativeHandle(f,()=>({unmount:C,close:()=>y.setOpen(!1,(0,l.j)(q.f.imperativeAction))}),[C,y]);let R=j||w||null!=g;return(0,N.jsxs)(r.Provider,{value:y,children:[g&&(0,N.jsx)(b.d,{handle:g,store:y}),R&&(0,N.jsx)(U,{store:y,parentContext:x?.context,isDrawer:"drawer"===e}),"function"==typeof s?s({payload:k}):s]})}e.s(["f",0,V],66250);let H=(0,E.U)(function(e){return V("dialog",e)}),K=t.forwardRef(function(e,t){let{render:n,className:r,style:o,id:a,...d}=e,l=i(),u=(0,p.f)(a);return l.useSyncedValueWithCleanup("titleElementId",u),(0,s.a)("h2",e,{ref:t,props:[{id:u},d]})});e.s(["f",0,K],77173);var X=e.i(38396),Y=e.i(59636),_=e.i(85689),Z=e.i(32199);let J=(0,E.u)(function(e,r){let{render:a,className:l,style:u,disabled:c=!1,nativeButton:f=!0,id:g,payload:m,handle:v,...h}=e,x=i(!0),S=(0,Y.f)(v)??x;if(!S)throw Error((0,n.f)(79));let y=(0,p.f)(g),j=S.useState("floatingRootContext"),w=S.useState("isOpenedByTrigger",y),k=S.useState("triggerPopupId",y),C=t.useRef(null),{registerTrigger:N,isMountedByThisTrigger:R}=(0,b.F)(y,C,S,{payload:m}),{getButtonProps:I,buttonRef:P}=(0,d.f)({disabled:c,native:f}),O=(0,_.f)(j),T=(0,Z.p)(()=>S.select("open"),e=>{S.set("openMethod",e)}),E=S.useState("triggerProps",R);return(0,s.a)("button",e,{state:{disabled:c,open:w},ref:[P,r,N,C],props:[O.reference,E,T,{[X.j]:"",id:y,"aria-haspopup":"dialog","aria-expanded":w,"aria-controls":k},h,I],stateAttributesMapping:o.J})});e.s(["f",0,J],13488),e.s(["Backdrop",0,a,"Close",0,c,"Description",0,f,"Popup",0,R,"Portal",0,T,"Root",0,H,"Title",0,K,"Trigger",0,J],28376);var Q=e.i(28376);e.s(["f",0,Q],26323),e.s(["f",0,Q],9977),e.s(["f",0,Q],41708),e.s(["f",0,Q],93480)},9169,52744,e=>{var t=e.i(28376);e.s(["f",0,t],9169),e.s(["f",0,t],52744)},73327,e=>{let t=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End"]);e.s(["f",0,t])},78680,e=>{e.i(47167);var t=e.i(71645),n=e.i(74080),r=e.i(26674),i=e.i(43476);let s=t.forwardRef(function(e,s){let{children:o,container:a,className:d,render:l,style:u,...c}=e,{node:p,subtree:f}=(0,r.o)({container:a,ref:s,componentProps:e,elementProps:c});return f||p?(0,i.jsxs)(t.Fragment,{children:[f,p&&n.createPortal(o,p)]}):null});e.s(["f",0,s])},16786,59636,e=>{var t=e.i(56789),n=e.i(56341);let r=e=>e.triggerIdProp??e.activeTriggerId,i=e=>e.openProp??e.open,s=e=>(e.popupElement?.id??e.floatingId)||void 0;function o(e,t){return void 0!==t&&i(e)&&r(e)===t}e.s(["i",0,function(e,r,i=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new n.f({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:r,syncOnly:!0,nested:i,onOpenChange:void 0}),floatingId:r,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,openedWithoutTrigger:!1,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:t.w,inactiveTriggerProps:t.w,popupProps:t.w}},"j",0,{open:i,mounted:e=>e.mounted,transitionStatus:e=>i(e)&&!e.mounted?"starting":e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:r,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:s,isTriggerActive:(e,t)=>void 0!==t&&r(e)===t,isOpenedByTrigger:(e,t)=>o(e,t),isMountedByTrigger:(e,t)=>void 0!==t&&r(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>o(e,t)||void 0!==t&&i(e)&&null==r(e)&&!e.openedWithoutTrigger&&1===e.triggerCount?s(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement}],16786);var a=e.i(71645),d=e.i(2239);e.s(["f",0,function(e){let n=a.useCallback(n=>void 0===e?t.x:e.subscribeStore(n),[e]),r=a.useCallback(()=>void 0===e?void 0:e.store,[e]);return(0,d.useSyncExternalStore)(n,r,()=>e?.serverStore)}],59636)},66595,e=>{var t=e.i(56420);let n={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};n.node;let r=(0,t.f)(n);e.s(["f",0,r],66595)},63676,e=>{var t=e.i(14387);e.s(["X",()=>t.f])},95187,(e,t,n)=>{Object.defineProperty(n,"__esModule",{value:!0});var r={callServer:function(){return s.callServer},createServerReference:function(){return a.createServerReference},findSourceMapURL:function(){return o.findSourceMapURL}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let s=e.r(32120),o=e.r(92245),a=e.r(35326)},51764,e=>{var t=e.i(95187);let n=(0,t.createServerReference)("600027e660d1eb6aa8b21edba45ec532d962d5bb53",t.callServer,void 0,t.findSourceMapURL,"removeFromBasket");e.s(["f",0,n])},3523,75103,e=>{var t=e.i(43476),n=e.i(58487),r=e.i(5654),i=e.i(71645),s=e.i(73459),o=e.i(65894),a=e.i(92786),d=e.i(86334),l=e.i(9744),u=e.i(18050),c=e.i(81872),p=e.i(51764),f=e.i(57228),g=e.i(34244),m=e.i(98409),v=e.i(54235),h=e.i(62579),x=e.i(63132),b=e.i(26323),S=e.i(9977),y=e.i(41708),j=e.i(93480),w=e.i(29081),k=e.i(16732),C=e.i(57546),N=e.i(93976),R=e.i(62050),I=e.i(58998),P=e.i(94313),O=e.i(53535),T=e.i(22768),E=e.i(10818),D=e.i(11568),M=e.i(25398),z=e.i(66595),A=e.i(30274),U=e.i(49287),$=e.i(63676),B=e.i(30402);let F={alert:"Alert",waiting:"Waiting",working:"Working",idle:"Idle"},L={alert:"bg-tone-attention-bg text-tone-attention-fg",waiting:"bg-tone-waiting-bg text-tone-waiting-fg",working:"bg-tone-ok-bg text-tone-ok-fg",idle:"bg-tone-ended-bg text-tone-ended-fg"},W="flex min-h-9 w-full items-center gap-2 rounded-md border border-input bg-background px-2";function q({to:e,isLocked:n,onClear:r,isRefused:i}){return(0,t.jsxs)("div",{"data-testid":"bridge-send-to",className:`${W} justify-between py-1 ${n?"bg-muted":""} ${i?"border-destructive ring-2 ring-tone-attention-border":""}`,children:[(0,t.jsxs)("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",children:[(0,t.jsx)(U.f,{"aria-hidden":"true",className:"size-3.5 text-muted-foreground"}),e]}),(0,t.jsx)("button",{type:"button","aria-label":`Clear ${e}`,onClick:r,className:"inline-flex size-7 items-center justify-center rounded-md hover:bg-accent disabled:opacity-60",children:(0,t.jsx)($.X,{"aria-hidden":"true",className:"size-4"})})]})}function V({sendTo:e,onPick:n}){let[r,s]=(0,i.useState)(""),[o,a]=(0,i.useState)(!1),d="read"===e.kind?e.value.ships:[];return(0,t.jsxs)(N.f.Root,{inline:!0,open:o,onOpenChange:a,items:d,filteredItems:(0,C.t)(d,r),inputValue:r,onInputValueChange:e=>{s(e),a(!0)},itemToStringLabel:e=>e.name,value:null,onValueChange:e=>{null!==e&&n(e.name)},autoHighlight:!0,children:[(0,t.jsxs)("div",{className:`${W} focus-within:border-ring focus-within:ring-2 focus-within:ring-ring/30`,children:[(0,t.jsx)(z.f,{"aria-hidden":"true",className:"size-4 text-muted-foreground"}),(0,t.jsx)(R.f.Input,{id:"bridge-send-to","data-testid":"bridge-send-to-search",placeholder:"Search your fleet's ships",onFocus:()=>{a(!0)},className:"h-9 w-full bg-transparent outline-none"})]}),o?(0,t.jsxs)("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",children:[(0,t.jsx)("div",{className:"px-2 py-1 text-caption text-muted-foreground",children:"Ships you can send to"}),(0,t.jsx)(I.f.Empty,{className:"px-2 py-1 text-muted-foreground",children:"reading"===e.kind?"Reading the ships you can send to...":"unreadable"===e.kind?e.message:"No ship you can send to matches."}),(0,t.jsx)(P.f.List,{children:e=>(0,t.jsxs)(O.f.Item,{value:e,className:"flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 data-highlighted:bg-accent",children:[(0,t.jsx)(U.f,{"aria-hidden":"true",className:"size-4 text-muted-foreground"}),(0,t.jsx)("span",{className:"flex-1",children:e.name}),null===e.state?null:(0,t.jsx)("span",{className:`rounded-sm px-1 text-caption ${L[e.state]}`,children:F[e.state]})]},e.name)})]}):null]})}function H({phase:e}){switch(e.kind){case"writing":return null;case"sending":return(0,t.jsxs)("p",{role:"status","data-testid":"bridge-send-sending",className:"flex items-center gap-2",children:[(0,t.jsx)(D.f,{"aria-hidden":"true",className:"size-4 animate-spin text-tone-waiting-fg"}),"Sending. Bridge waits until the fleet has stored it."]});case"failed":return(0,t.jsxs)("p",{role:"alert","data-testid":"bridge-send-failure",className:"flex items-start gap-2 text-destructive-text",children:[(0,t.jsx)(T.f,{"aria-hidden":"true",className:"mt-0.5 size-4 shrink-0"}),"noAnswer"===e.failure.kind?"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."]})}}function K({sendTo:e,to:n,isFromAlert:r,message:i,phase:s,onPick:o,onWrite:a,onSend:d,onClose:l}){let u="sending"===s.kind,c="failed"===s.kind?s.failure:void 0,p=c?.kind==="noAnswer",f="read"===e.kind?e.value.sentAs:void 0,g=u?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(D.f,{"aria-hidden":"true",className:"size-4 animate-spin"}),"Sending..."]}):p?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(M.f,{"aria-hidden":"true",className:"size-4"}),"Send again"]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(A.f,{"aria-hidden":"true",className:"size-4"}),"Send"]}),m=u||!(0,C.f)({to:n,message:i})||c?.kind==="refused";return(0,t.jsxs)("form",{"data-testid":"bridge-send-form",className:"flex h-full flex-col",onSubmit:e=>{e.preventDefault(),m||d()},children:[(0,t.jsxs)("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",children:[(0,t.jsx)("button",{type:"button","aria-label":"Close",onClick:l,className:"inline-flex size-8 items-center justify-center rounded-md hover:bg-accent disabled:opacity-60 sm:order-last sm:ml-auto",children:(0,t.jsx)($.X,{"aria-hidden":"true",className:"size-5"})}),(0,t.jsx)("h2",{className:"text-heading font-semibold",children:"Send a ship a message"})]}),(0,t.jsxs)("div",{className:"grid flex-1 content-start gap-4 overflow-auto px-4 py-4 sm:px-5",children:[(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsx)("label",{htmlFor:"bridge-send-to",className:"font-semibold",children:"To"}),null===n?(0,t.jsx)(V,{sendTo:e,onPick:o}):(0,t.jsx)(q,{to:n,isLocked:u,isRefused:c?.kind==="refused",onClear:()=>{o(null)}}),c?.kind==="refused"?(0,t.jsx)("span",{"data-testid":"bridge-send-refusal",className:"text-destructive-text",children:c.reason}):r&&null!==n&&"writing"===s.kind?(0,t.jsx)("span",{className:"text-caption text-muted-foreground",children:"Filled in from the alert; change it if you like."}):null]}),(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsx)("label",{htmlFor:"bridge-send-message",className:"font-semibold",children:"Message"}),(0,t.jsx)("textarea",{id:"bridge-send-message","data-testid":"bridge-send-message",disabled:u,rows:5,value:i,placeholder:"Write what the ship should know or do.",onChange:e=>{a(e.target.value)},className:"min-h-32 rounded-md border border-input bg-background px-3 py-2 disabled:bg-muted disabled:text-muted-foreground"}),(0,t.jsx)("span",{className:"text-caption text-muted-foreground",children:"Text or Markdown, up to 256 KB."})]}),(0,t.jsx)(H,{phase:s})]}),(0,t.jsxs)("div",{className:"grid gap-3 border-t border-border px-4 py-3 sm:flex sm:items-center sm:justify-between sm:px-5",children:[(0,t.jsxs)("span",{className:"flex items-center gap-2 text-caption text-muted-foreground",children:[(0,t.jsx)(E.f,{"aria-hidden":"true",className:"size-4"}),void 0===f?"Sent as your person ship.":`Sent as ${f}, your person ship.`]}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)("button",{type:"button",disabled:u,onClick:l,className:"hidden h-9 items-center rounded-md px-4 font-medium hover:bg-accent disabled:opacity-60 sm:inline-flex",children:"Cancel"}),(0,t.jsx)("button",{type:"submit","data-testid":"bridge-send",disabled:m,"aria-busy":u,className:`${B.x.primary} h-11 w-full sm:h-9 sm:w-auto`,children:g})]})]})]})}var X=e.i(43328),Y=e.i(27538),_=e.i(77826),Z=e.i(80734),J=e.i(60296),Q=e.i(66734),G=e.i(88941),ee=e.i(85595);function et(){let{toasts:e}=r.f.useToastManager();return(0,t.jsx)(X.f.Portal,{children:(0,t.jsx)(Y.f.Viewport,{className:"fixed right-4 bottom-4 z-50 grid w-[min(24rem,calc(100vw-2rem))] gap-2",children:e.map(e=>(0,t.jsx)(_.f.Root,{toast:e,"data-testid":"bridge-send-toast",className:"rounded-lg border border-border bg-popover px-4 py-3 text-popover-foreground shadow-lg",children:(0,t.jsxs)(Z.f.Content,{className:"flex items-start gap-3",children:[(0,t.jsx)(ee.f,{"aria-hidden":"true",className:"mt-0.5 size-4 shrink-0 text-tone-ok-fg"}),(0,t.jsxs)("div",{className:"grid flex-1 gap-1",children:[(0,t.jsx)(J.f.Title,{className:"font-semibold"}),(0,t.jsx)(Q.f.Description,{className:"text-muted-foreground"})]}),(0,t.jsx)(G.f.Close,{"aria-label":"Close",className:"inline-flex size-7 items-center justify-center rounded-md hover:bg-accent",children:(0,t.jsx)($.X,{"aria-hidden":"true",className:"size-4"})})]})},e.id))})})}let en=(0,i.createContext)(void 0);function er(){return(0,i.useContext)(en)}function ei({fleetId:e,children:n}){let[s,o]=(0,i.useState)(),[a,d]=(0,i.useState)({kind:"reading"}),l=(0,i.useRef)(null),u=(0,i.useRef)(0),[,c]=(0,i.useTransition)(),p=r.f.useToastManager(),f=()=>{o(void 0)};return(0,t.jsxs)(en,{value:t=>{u.current+=1,l.current=null,o({to:t?.alertShip??null,isFromAlert:void 0!==t,message:"",phase:{kind:"writing"}}),d({kind:"reading"}),c(async()=>{let t=await (0,w.f)(e);d(t.isOk?{kind:"read",value:t.value}:{kind:"unreadable",message:t.message})})},children:[n,(0,t.jsx)(b.f.Root,{open:void 0!==s,onOpenChange:e=>{e||f()},children:(0,t.jsxs)(S.f.Portal,{children:[(0,t.jsx)(y.f.Backdrop,{className:"fixed inset-0 z-40 bg-(--overlay)"}),(0,t.jsx)(j.f.Popup,{"data-testid":"bridge-send-dialog","aria-label":"Send a ship a message",initialFocus:()=>document.getElementById(s?.to===null?"bridge-send-to":"bridge-send-message"),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",children:void 0===s?null:(0,t.jsx)(K,{sendTo:a,to:s.to,isFromAlert:s.isFromAlert,message:s.message,phase:s.phase,onPick:e=>{o({...s,to:e,isFromAlert:!1,phase:{kind:"writing"}})},onWrite:e=>{o({...s,message:e,phase:"failed"===s.phase.kind&&"refused"===s.phase.failure.kind?s.phase:{kind:"writing"}})},onSend:()=>{var t;let n,r;null!==s.to&&(t={...s,to:s.to},n=(0,C.g)({last:l.current,to:t.to,message:t.message,newKey:crypto.randomUUID()}),l.current={key:n,to:t.to,message:t.message},o({...t,phase:{kind:"sending"}}),r=u.current,c(async()=>{let i=await (0,k.f)({fleet:e,to:t.to,payload:t.message,idempotencyKey:n}),s=u.current!==r;if(i.isOk){s||o(void 0);let e="read"===a.kind?a.value.sentAs:"your person ship";p.add({...(0,C.q)({to:t.to,sentAs:e,storedAt:i.value.storedAt}),timeout:0})}else s||o({...t,phase:{kind:"failed",failure:(0,C.S)(i)}})}))},onClose:f})})]})}),(0,t.jsx)(et,{})]})}function es({fleetId:e,children:r}){return(0,t.jsx)(n.f.Provider,{children:(0,t.jsx)(ei,{fleetId:e,children:r})})}e.s(["T",0,es,"P",0,er],75103);var eo=e.i(52021);function ea({fleetId:e,decidePlaces:n,consoleUrl:b,children:S}){let y=r.f.useToastManager(),j=er(),[w,k]=(0,i.useState)(),[C,N]=(0,i.useState)(""),[R,I]=(0,i.useState)(),[P,O]=(0,i.useState)(),[T,E]=(0,i.useState)(),[D,M]=(0,i.useState)(),[z,A]=(0,i.useState)(),[U,$]=(0,i.useState)(),[,B]=(0,i.useTransition)(),[F,L]=(0,i.useState)(0);(0,eo.R)(void 0===w?void 0:(0,g.u)(w.opened.job),()=>{k(void 0)});let W=t=>{I(t.deliveryId),M(void 0),$(void 0),B(async()=>{let n=await (0,l.f)(e,t.deliveryId);if(I(void 0),n.isOk){let e=t.inBasket??null;k({delivery:n.value,opened:{job:t.job,isAlert:t.isAlert??!1,wasNew:"seen"!==t.state},inBasket:e,finished:null}),N(e?.note??""),A(void 0)}else M({deliveryId:t.deliveryId,message:n.message})})},q=({control:e,action:t,onSettled:n})=>{E(e),A(void 0),B(async()=>{let e=await t();E(void 0),e.isOk?n(e.value):A(e.message)})},V=e=>()=>{k(void 0),$(e)},H=void 0===w?void 0:{deliveryId:w.delivery.deliveryId,job:w.opened.job};return(0,t.jsx)(h.f,{list:(0,t.jsxs)("div",{className:"grid gap-4",children:[void 0===U?null:(0,t.jsx)(x.f,{message:U,isFailure:!1}),S({open:W,openingId:R,putPick:(t,n)=>{O(t.deliveryId),M(void 0),$(void 0),B(async()=>{let r=await (0,c.f)({fleet:e,deliveryId:t.deliveryId,option:n});O(void 0),r.isOk?($(`Option ${String(n)} is in the basket, not sent: ${t.from} receives it when you send the basket.`),L(e=>e+1)):M({deliveryId:t.deliveryId,message:r.message})})},puttingId:P,failure:D,opened:H})]},F),item:void 0===w?void 0:(({delivery:r,inBasket:i,opened:l,finished:c})=>{let g=r.question?.id;return(0,t.jsx)(v.u,{delivery:r,opened:l,meetingHref:void 0===r.meetingId?void 0:(0,s.f)({fleetId:e,meetingId:r.meetingId}),consoleUrl:b,basketHref:(0,o.f)(f.H,e),inBasket:i,finished:c,places:n,note:C,working:T,failure:z,onNoteChange:N,onAnswer:t=>{q({control:void 0===t?{kind:"note"}:{kind:"option",option:t},action:()=>(0,a.f)({fleet:e,deliveryId:r.deliveryId,input:{questionId:r.question?.id,option:t,note:C}}),onSettled:V(`Your answer went to ${r.from}.`)})},onPut:t=>{q({control:null===t?{kind:"note"}:{kind:"option",option:t},action:()=>(0,u.f)({fleet:e,deliveryId:r.deliveryId,option:t,optionLabel:r.question?.options.find(({key:e})=>e===t)?.label??null,note:C}),onSettled:e=>{k({delivery:r,opened:l,finished:c,inBasket:e}),y.add((0,m.f)(e.option))}})},onRemove:()=>{void 0!==g&&q({control:{kind:"remove"},action:()=>(0,p.f)(e,g),onSettled:V(`Your answer to “${r.title}” is out of the basket; the question still waits on you.`)})},onDone:()=>{q({control:{kind:"done"},action:()=>(0,d.f)({fleet:e,deliveryId:r.deliveryId}),onSettled:V(`Done with “${r.title}”.`)})},onFinishStep:t=>{q({control:{kind:t},action:()=>(0,d.f)({fleet:e,deliveryId:r.deliveryId,step:{outcome:t,note:C}}),onSettled:()=>{k({delivery:r,inBasket:i,opened:l,finished:{outcome:t,note:C.trim(),at:new Date().toISOString()}})}})},onOpen:e=>{W({deliveryId:e,job:l.job})},onSendMessage:void 0===r.alertShip||void 0===j?void 0:e=>{j({alertShip:e})},onBack:()=>{k(void 0)}},r.deliveryId)})(w)})}e.s(["f",0,function({fleetId:e,decidePlaces:r,consoleUrl:i,children:s}){return(0,t.jsx)(es,{fleetId:e,children:(0,t.jsxs)(n.f.Provider,{children:[(0,t.jsx)(ea,{fleetId:e,decidePlaces:r,consoleUrl:i,children:s}),(0,t.jsx)(m.o,{})]})})}],3523)},55070,e=>{var t=e.i(43476);let n={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"},r={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"};e.s(["i",0,function({isPending:e,pendingLabel:i,variant:s="secondary",size:o="regular",children:a,className:d="",disabled:l,...u}){return(0,t.jsx)("button",{...u,disabled:!0===l||e,"aria-busy":e,className:`inline-flex items-center rounded-md disabled:cursor-not-allowed disabled:opacity-70 ${r[o]} ${n[s]} ${d}`,children:e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"size-3.5 animate-spin rounded-full border-2 border-current border-t-transparent"}),i]}):a})},"o",0,r])},98409,66734,29081,16732,57546,25398,e=>{var t=e.i(43476),n=e.i(5654),r=e.i(43328),i=e.i(27538),s=e.i(77826),o=e.i(80734),a=e.i(60296),d=e.i(2860);e.s(["f",0,d],66734);var d=d,l=e.i(47130);e.s(["o",0,function(){let{toasts:e}=n.f.useToastManager();return(0,t.jsx)(r.f.Portal,{children:(0,t.jsx)(i.f.Viewport,{className:"fixed bottom-4 left-4 z-50 hidden w-[min(24rem,calc(100vw-2rem))] gap-2 sm:grid",children:e.map(e=>(0,t.jsxs)(s.f.Root,{toast:e,"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",children:[(0,t.jsx)(l.f,{"aria-hidden":!0,className:"mt-0.5 size-4 shrink-0"}),(0,t.jsxs)(o.f.Content,{className:"grid flex-1 gap-1",children:[(0,t.jsx)(a.f.Title,{className:"font-medium"}),(0,t.jsx)(d.Description,{className:"text-caption text-muted-foreground"})]})]},e.id))})})},"f",0,function(e){return{title:null===e?"Your note alone in the basket":`Option ${String(e)} in the basket`,description:"Not sent. Still waiting on you until you send it."}}],98409);var u=e.i(95187);let c=(0,u.createServerReference)("400284782d121950f35e1ce856d3d8f0158fbb10f4",u.callServer,void 0,u.findSourceMapURL,"readSendTo");e.s(["f",0,c],29081);let p=(0,u.createServerReference)("4000cf62bc21b02b0dec545692328f576b09e289a7",u.callServer,void 0,u.findSourceMapURL,"sendShipMessage");e.s(["f",0,p],16732);var f=e.i(11382),g=e.i(54105);let m=new Set(["BAD_REQUEST","FORBIDDEN"]);f.z.object({ship:f.z.object({name:g.z.string().min(1)})}),e.s(["f",0,function({to:e,message:t}){return null!==e&&""!==t.trim()},"g",0,function({last:e,to:t,message:n,newKey:r}){return null!==e&&e.to===t&&e.message===n?e.key:r},"S",0,function({code:e,message:t}){return void 0!==e&&m.has(e)?{kind:"refused",reason:t}:{kind:"noAnswer"}},"q",0,function({to:e,sentAs:t,storedAt:n}){return{title:`Sent to ${e}`,description:`Stored by the fleet at ${new Date(n).toISOString().slice(11,16)} UTC, sent as ${t}. ${e} receives it when it next looks.`}},"t",0,function(e,t){let n=t.trim().toLowerCase();return""===n?e:e.filter(({name:e})=>e.toLowerCase().includes(n))}],57546);var v=e.i(56420);let h={name:"rotate-cw",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]};h.node;let x=(0,v.f)(h);e.s(["f",0,x],25398)},30402,e=>{let t="inline-flex h-9 items-center justify-center gap-2 rounded-md px-4 font-medium disabled:opacity-60",n={primary:`${t} bg-primary text-primary-foreground hover:bg-primary-hover`,secondary:`${t} border border-border bg-card hover:bg-accent`,destructive:`${t} bg-destructive text-destructive-foreground`};e.s(["x",0,n,"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"])},73459,92786,86334,9744,18050,81872,e=>{e.s(["f",0,function(e){let t=new URLSearchParams({fleet:e.fleetId,...void 0===e.cursor?{}:{cursor:e.cursor}});return`/meetings/${encodeURIComponent(e.meetingId)}?${t.toString()}`}],73459);var t=e.i(95187);let n=(0,t.createServerReference)("4001ea780db1ead1cb2c7ef9e012482be9e1166c90",t.callServer,void 0,t.findSourceMapURL,"answerDelivery");e.s(["f",0,n],92786);let r=(0,t.createServerReference)("406cdc77dbf870c019aab6c37c746129540f7344b4",t.callServer,void 0,t.findSourceMapURL,"doneDelivery");e.s(["f",0,r],86334);let i=(0,t.createServerReference)("60a206312560da7e8d3118b69c571db7006f3401ec",t.callServer,void 0,t.findSourceMapURL,"openDelivery");e.s(["f",0,i],9744);let s=(0,t.createServerReference)("409fc33bee7fa9990c372a16941b80a35aef4a2974",t.callServer,void 0,t.findSourceMapURL,"putInBasket");e.s(["f",0,s],18050);let o=(0,t.createServerReference)("40c4bdf099ebf75c7f472730d1a2313320401d4ebd",t.callServer,void 0,t.findSourceMapURL,"putPickInBasket");e.s(["f",0,o],81872)}],18566,(e,t,n)=>{t.exports=e.r(76562)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,21611,e=>{var r=e.i(43476),d=e.i(71645),n=e.i(65894),s=e.i(28008),t=e.i(30402),a=e.i(94984),i=e.i(65818),o=e.i(58107),l=e.i(31831),c=e.i(90526),u=e.i(95187);let p=(0,u.createServerReference)("603e49aa2b827e62ce392ff8c2f7f124fee9c13d5b",u.callServer,void 0,u.findSourceMapURL,"addA2aClient"),m={kind:"idle"};function h({name:e,bearer:d,fleetId:s}){return(0,r.jsxs)("section",{className:`${t.r} grid gap-3`,"data-testid":"add-a2a-client-added",children:[(0,r.jsxs)("h2",{className:"text-section font-semibold",children:[e," is added"]}),(0,r.jsx)("p",{children:"Hand its client this bearer now. It is shown only once: the gateway keeps no copy it can show again."}),(0,r.jsx)("code",{className:"break-all rounded-md border border-border bg-background px-3 py-2 font-mono text-code","data-testid":"add-a2a-client-bearer",children:d}),(0,r.jsx)("p",{children:(0,r.jsx)("a",{href:(0,n.f)((0,l.N)(e),s),className:"text-primary hover:underline",children:"Its card addresses"})})]})}e.s(["A2aClientForm",0,function({fleetId:e,requestId:n,owners:l,scopes:u}){let[x,b]=(0,d.useActionState)(p,m);return"added"===x.kind?(0,r.jsx)(h,{name:x.name,bearer:x.bearer,fleetId:e}):(0,r.jsxs)("form",{action:b,className:`${t.r} grid gap-3`,"data-testid":"add-a2a-client-form",children:[(0,r.jsx)("input",{type:"hidden",name:s.H,value:e}),(0,r.jsx)("input",{type:"hidden",name:"requestId",value:n}),(0,r.jsx)("h1",{className:"text-title font-semibold",children:"Add an A2A client"}),(0,r.jsxs)("label",{className:t.z,children:[(0,r.jsx)("span",{children:"Name, the proxy ship's"}),(0,r.jsx)("input",{className:t.w,name:"name",required:!0})]}),(0,r.jsx)(i.f,{choices:l.isOk?l.value:[],current:null,help:"A person ship or argo. It answers for this client.",refusal:l.isOk?void 0:l.refusal}),0===u.length?null:(0,r.jsxs)("fieldset",{className:"grid gap-2",children:[(0,r.jsx)("legend",{className:"font-medium",children:"Scopes, beside sending and receiving"}),u.map(e=>(0,r.jsxs)("label",{className:"flex items-center gap-2",children:[(0,r.jsx)("input",{type:"checkbox",name:`${c.f}${e}`}),(0,r.jsx)("span",{className:"font-mono text-code",children:e})]},e))]}),(0,r.jsx)("div",{children:(0,r.jsx)(o.f,{pending:"Adding…",children:"Add"})}),(0,r.jsx)(a.f,{state:"refused"===x.kind?x:{kind:"idle"}})]})}],21611)},28008,e=>{e.s(["H",0,"fleet","Q",0,{kind:"idle"}])},30402,e=>{let r="inline-flex h-9 items-center justify-center gap-2 rounded-md px-4 font-medium disabled:opacity-60",d={primary:`${r} bg-primary text-primary-foreground hover:bg-primary-hover`,secondary:`${r} border border-border bg-card hover:bg-accent`,destructive:`${r} bg-destructive text-destructive-foreground`};e.s(["x",0,d,"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"])},94984,e=>{var r=e.i(43476);e.s(["f",0,function({state:e,testId:d}){switch(e.kind){case"idle":return null;case"done":return(0,r.jsx)("p",{role:"status","data-testid":d,className:"rounded-md border border-tone-ok-border bg-tone-ok-bg px-3 py-2 text-tone-ok-fg",children:e.message});case"refused":case"openNetwork":return(0,r.jsx)("p",{role:"alert","data-testid":d,className:"rounded-md border border-tone-attention-border bg-tone-attention-bg px-3 py-2 text-tone-attention-fg",children:e.message})}}])},65818,e=>{var r=e.i(43476),d=e.i(30402);e.s(["f",0,function({choices:e,current:n,help:s,refusal:t}){let a=null===n||e.some(e=>e.shipId===n.shipId)?e:[n,...e];return(0,r.jsxs)("label",{className:d.z,children:[(0,r.jsx)("span",{children:"Owner"}),(0,r.jsxs)("select",{className:d.w,name:"ownerShipId",defaultValue:n?.shipId??"",required:!0,"data-testid":"owner-field",children:[null===n?(0,r.jsx)("option",{value:"",disabled:!0,children:"Pick its owner"}):null,a.map(e=>(0,r.jsx)("option",{value:e.shipId,children:e.name},e.shipId))]}),(0,r.jsx)("span",{className:"text-muted-foreground",children:t??s})]})}])},58107,e=>{var r=e.i(43476),d=e.i(74080),n=e.i(30402);e.s(["f",0,function({children:e,pending:s,kind:t="primary",testId:a}){let i=(0,d.useFormStatus)();return(0,r.jsx)("button",{type:"submit",className:n.x[t],disabled:i.pending,"aria-busy":i.pending,"data-testid":a,children:i.pending?s:e})}])},31831,e=>{let r="/outside-parties";e.s(["$",0,r,"N",0,function(e,d){return`${r}/${encodeURIComponent(e)}${void 0===d?"":`/${d}`}`}])},90526,e=>{e.s(["f",0,"scope:"])}])})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70812,71136,96315,28623,e=>{var t=e.i(56420);let i={name:"bell",size:24,node:[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]};i.node;let n=(0,t.f)(i);e.s(["f",0,n],70812);let a={name:"hash",size:24,node:[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]};a.node;let s=(0,t.f)(a);e.s(["f",0,s],71136);let r={name:"mail",size:24,node:[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]};r.node;let d=(0,t.f)(r);e.s(["f",0,d],96315);let o={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};o.node;let l=(0,t.f)(o);e.s(["f",0,l],28623)},85595,e=>{var t=e.i(56420);let i={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};i.node;let n=(0,t.f)(i);e.s(["f",0,n],85595)},51481,e=>{var t=e.i(75043);e.s(["f",()=>t.f])},59381,e=>{var t=e.i(56420);let i={name:"hand",size:24,node:[["path",{d:"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2",key:"1fvzgz"}],["path",{d:"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2",key:"1kc0my"}],["path",{d:"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8",key:"10h0bg"}],["path",{d:"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",key:"1s1gnw"}]]};i.node;let n=(0,t.f)(i);e.s(["f",0,n],59381)},31785,e=>{let t={decide:{name:"Decide",holds:"Questions from your ships",item:"question",items:"questions"},do:{name:"Do what only you can",holds:"Steps: sign in, create, approve",item:"step",items:"steps"},"stay-aware":{name:"Stay aware",holds:"Alerts and notices",item:"alert or notice",items:"alerts and notices"},"everything-else":{name:"Everything else",holds:"Replies and other messages",item:"message",items:"messages"}},i={slack:"Slack",chat:"A chat","web-push":"Web push",email:"Email"},n=["decide","do"],a="Bridge keeps every item.",s={label:"Not offered",isOk:!1},r={label:"Off",isOk:!1},d="Says only that something waits, with a link here.",o=`${d} Nothing is on until you turn it on.`,l="through the gateway. Lists what waits when you ask it.",c={slack:"Slack",chat:"a chat","web-push":"web push",email:"email"};e.s(["I",0,t,"k",0,i,"N",0,["slack","chat","web-push","email"],"g",0,function(e){return 0===e.length?{state:{label:"Not connected",isOk:!1},description:`claude.ai or another MCP client, ${l}`,action:"none"}:{state:{label:"Connected",isOk:!0},description:`${new Intl.ListFormat("en",{type:"conjunction"}).format(e)}, ${l}`,action:"none"}},"t",0,function({isOffered:e,isOnForAnyJob:t}){return e?t?{state:{label:"On",isOk:!0},description:d,action:"turnOff"}:{state:r,description:o,action:"turnOn"}:{state:s,description:"This gateway sends no email.",action:"none"}},"T",0,function(e,t){return e.jobs.filter(({job:e,places:i})=>i.email!==t&&(!t||n.includes(e))).map(({job:e})=>({job:e,place:"email",isOn:t}))},"r",0,function(e){let t=["Bridge",...e.map(e=>c[e])],i=t.at(-1),n=1===t.length?"Bridge":`${t.slice(0,-1).join(", ")} and ${String(i)}`;return`Shows in ${n}, as Where things show sets for Decide. One answer, wherever you give it.`},"H",0,function(e){if(null===e)return{state:{label:"Not connected",isOk:!1},description:"This fleet has no Slack workspace.",action:"none"};let{workspaceName:t,link:i}=e;return null===i?{state:{label:"Not linked",isOk:!1},description:`Link your Slack account in ${t} to see items there and answer them.`,action:"link"}:{state:{label:"Linked",isOk:!0},description:`As @${i.slackName} in ${t}. A button press or a thread reply there is yours.`,action:"unlink"}},"b",0,function(e){let{job:n,place:s,isOn:r,waiting:d,isChatOn:o}=e,{name:l,item:c,items:h}=t[n],m=`${i[s]} is ${r?"on":"off"} for ${l}`;return r?"chat"===s?{title:m,detail:`A chat lists every ${c} not done when you ask it.`}:{title:m,detail:`${i[s]} shows ${h} that arrive from now on.${void 0===d||0===d?"":` The ${String(d)} already waiting ${1===d?"stays":"stay"} ${o?"in Bridge and in a chat":"in Bridge"}.`}`}:{title:m,detail:"everything-else"===n&&"slack"===s?`Bots only: a bot ship's messages and replies to Slack still show there. ${a}`:a}},"B",0,function(e){if(!e.isOffered)return{state:s,description:"This gateway sends no web push.",action:"none"};if(!e.isTaken)return{state:r,description:"This browser takes no web push.",action:"none"};let t=e.browsers.find(({endpoint:t,isGone:i})=>t===e.ownEndpoint&&!i);return void 0===t?{state:r,description:o,action:"turnOn"}:{state:{label:"This browser",isOk:!0},description:`${t.browser}. ${d}`,action:"remove"}}])},94528,e=>{var t=e.i(43476),i=e.i(17904),n=e.i(29039);e.s(["FadedAsLastRead",0,function({children:e}){let a=(0,n.useLastReadAt)();return void 0===a?e:(0,t.jsxs)("div",{className:"grid gap-3",children:[(0,t.jsx)("div",{inert:!0,className:"opacity-60 [&_button:not([data-testid=bridge-item-title])]:hidden",children:e}),(0,t.jsx)("p",{className:"text-caption text-muted-foreground",children:`Shown as last read, at ${(0,i.C)(a)}.`})]})}])},85989,e=>{var t=e.i(43476),i=e.i(30274),n=e.i(47130),a=e.i(29247),s=e.i(12497),r=e.i(17904),d=e.i(55070),o=e.i(19015),l=e.i(82022);function c({href:e,isOutside:i,children:n,...a}){return(0,t.jsxs)("a",{...a,href:e,...i?{target:"_blank",rel:"noopener noreferrer"}:{},className:`inline-flex items-center rounded-md border border-border bg-card text-card-foreground hover:bg-accent ${d.o.row}`,children:[(0,t.jsx)(l.f,{"aria-hidden":"true",className:"size-3.5"}),n]})}var h=e.i(3523),m=e.i(29039),u=e.i(75103);function g(e){let{stale:t,inBasket:i}=e;if(null===t&&null!==i)return null===i.option?"In the basket: the note alone":`In the basket: option ${String(i.option)}`;if(null===t)return"seen"===e.state?(0,s.M)(e.seenIn):void 0;let n=(0,a.f)(t,{from:e.from});return"withdrawn"===t.kind?`${n}: open it to clear it`:n}function p({item:e,opening:i}){let n=e.stale?.replacementId??null;return null===n?null:(0,t.jsx)(d.i,{"data-testid":"bridge-replacement",size:"row",isPending:i.openingId===n,pendingLabel:"Opening...",disabled:void 0!==i.openingId,onClick:()=>{i.open({deliveryId:n,job:e.job})},children:"do"===e.job?"Open the new step":"Open the new question"})}function b({item:e,opening:i}){return(0,t.jsx)(d.i,{"data-testid":"bridge-open",size:"row",isPending:i.openingId===e.deliveryId,pendingLabel:"Opening...",disabled:void 0!==i.openingId,onClick:()=>{i.open(e)},children:"Open"})}function x(){let e=(0,u.P)();return void 0===e?null:(0,t.jsxs)("button",{type:"button","data-testid":"bridge-send-message","aria-label":"Send a ship a message",onClick:()=>{e()},className:"inline-flex size-9 shrink-0 items-center justify-center gap-2 rounded-md border border-border bg-card font-semibold hover:bg-accent sm:w-auto sm:px-4",children:[(0,t.jsx)(i.f,{"aria-hidden":"true",className:"size-4"}),(0,t.jsx)("span",{className:"hidden sm:inline",children:"Send a ship a message"})]})}function f({item:e,opening:i}){let a=e.actInPlace;return a?.kind==="ownStep"?(0,t.jsx)(c,{"data-testid":"bridge-own-step",href:a.href,isOutside:!1,children:a.label}):(0,t.jsxs)(t.Fragment,{children:[a?.kind==="putPick"?(0,t.jsxs)(d.i,{"data-testid":"bridge-put-pick",variant:"primary",size:"row",isPending:i.puttingId===e.deliveryId,pendingLabel:"Putting...",disabled:void 0!==i.openingId||void 0!==i.puttingId,onClick:()=>{i.putPick(e,a.option)},children:[(0,t.jsx)(n.f,{"aria-hidden":"true",className:"size-3.5"}),"Put option ",a.option," in the basket"]}):null,a?.kind==="openLink"?(0,t.jsxs)(c,{"data-testid":"bridge-step-link",href:a.href,isOutside:!0,children:["Open ",a.host]}):null,(0,t.jsx)(p,{item:e,opening:i}),(0,t.jsx)(b,{item:e,opening:i})]})}function y(e,t){return void 0===t.openingId?()=>{t.open(e)}:void 0}function w({items:e,readAt:i,opening:n}){let a=void 0!==n.opened;return(0,t.jsx)("ul",{className:a?"border-t border-border":"overflow-hidden rounded-lg border border-border bg-card",children:e.map(e=>(0,t.jsx)(o.f,{item:e,now:i,isNew:"new"===e.state,isOpen:n.opened?.deliveryId===e.deliveryId,staleKind:e.stale?.kind,outcome:g(e),failure:n.failure?.deliveryId===e.deliveryId?n.failure.message:void 0,onOpen:y(e,n),actions:a?void 0:(0,t.jsx)(f,{item:e,opening:n})},e.deliveryId))})}function j({items:e,readAt:i,opening:n}){return(0,t.jsx)("ul",{className:void 0===n.opened?"overflow-hidden rounded-lg border border-border bg-card":"border-t border-border",children:e.map(e=>(0,t.jsx)(o.f,{item:e,now:i,isNew:"new"===e.state,isOpen:n.opened?.deliveryId===e.deliveryId,outcome:void 0,failure:n.failure?.deliveryId===e.deliveryId?n.failure.message:void 0,onOpen:y(e,n)},e.deliveryId))})}function v({home:e,readAt:i,opening:n,isStayAware:a}){let{waiting:s,stayAware:r}=e;return a?(0,t.jsxs)("section",{"aria-labelledby":"bridge-stay-aware-heading",children:[(0,t.jsxs)("div",{className:"flex items-baseline justify-between gap-3 px-3 py-2.5",children:[(0,t.jsx)("h2",{id:"bridge-stay-aware-heading",className:"font-semibold",children:"Stay aware"}),(0,t.jsxs)("span",{className:"text-caption text-muted-foreground",children:[r.filter(({state:e})=>"new"===e).length," unseen"]})]}),(0,t.jsx)(j,{items:r,readAt:i,opening:n})]}):(0,t.jsxs)("section",{"aria-labelledby":"bridge-waiting-heading",children:[(0,t.jsxs)("h1",{id:"bridge-waiting-heading",className:"px-3 py-2.5 font-semibold",children:["Waiting on you ",(0,t.jsx)("span",{"data-testid":"bridge-count",className:"text-tone-waiting-fg",children:s.count})]}),(0,t.jsx)(w,{items:s.items,readAt:i,opening:n})]})}function k({home:e,now:i,opening:n,argo:a}){let s,r,d,{waiting:o,stayAware:l}=e,c=new Date(i);return void 0!==n.opened?(0,t.jsx)(v,{home:e,readAt:c,opening:n,isStayAware:"stay-aware"===n.opened.job}):(0,t.jsxs)("div",{className:"grid gap-8",children:[(0,t.jsxs)("section",{className:"grid gap-3","aria-labelledby":"bridge-waiting-heading",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("h1",{id:"bridge-waiting-heading",className:"text-heading font-semibold",children:["Waiting on you ",(0,t.jsx)("span",{"data-testid":"bridge-count",className:"text-tone-waiting-fg",children:o.count})]}),(0,t.jsx)("p",{className:"text-muted-foreground",children:0===o.count?"Nothing waits on you.":(r=(s=o.items.filter(({stale:e})=>null===e)).filter(({job:e})=>"decide"===e).length,d=s.filter(({job:e})=>"do"===e).length,`${String(r)} to decide, ${String(d)} to do. Newest on top; nothing else is in this count.`)})]}),(0,t.jsx)(x,{})]}),0===o.items.length?(0,t.jsxs)("div",{"data-testid":"bridge-nothing-waits",className:"grid justify-items-center gap-1 rounded-lg border border-border bg-card p-6 text-center",children:[(0,t.jsx)("span",{className:"font-semibold",children:"Nothing waits on you"}),(0,t.jsx)("span",{className:"text-muted-foreground",children:"Your ships have what they need from you. A question or a step shows here the moment one arrives."})]}):(0,t.jsx)(w,{items:o.items,readAt:c,opening:n})]}),a,(0,t.jsxs)("section",{className:"grid gap-3","aria-labelledby":"bridge-stay-aware-heading",children:[(0,t.jsxs)("div",{className:"flex items-baseline justify-between gap-3",children:[(0,t.jsx)("h2",{id:"bridge-stay-aware-heading",className:"text-section font-semibold",children:"Stay aware"}),(0,t.jsxs)("span",{className:"text-caption text-muted-foreground",children:[l.filter(({state:e})=>"new"===e).length," unseen, outside the count"]})]}),0===l.length?(0,t.jsx)("p",{"data-testid":"bridge-nothing-new",className:"rounded-md border border-border bg-card p-3 text-muted-foreground",children:"Nothing new. What you saw is in Done."}):(0,t.jsx)(j,{items:l,readAt:c,opening:n})]})]})}function N({items:e,lastReadAt:i}){let n=new Date(i);return(0,t.jsxs)("section",{className:"grid gap-3","aria-label":"Waiting on you, as last read",children:[0===e.length?null:(0,t.jsx)("ul",{inert:!0,className:"overflow-hidden rounded-lg border border-border bg-card opacity-60",children:e.map(e=>(0,t.jsx)(o.f,{item:e,now:n,isNew:"new"===e.state,isOpen:!1,staleKind:e.stale?.kind,outcome:g(e),failure:void 0,onOpen:void 0},e.deliveryId))}),(0,t.jsx)("p",{className:"text-caption text-muted-foreground",children:`Shown as last read, at ${(0,r.C)(i)}.`})]})}e.s(["HomePanel",0,function({fleetId:e,home:i,now:n,decidePlaces:a,argo:s}){let r=(0,m.useLastReadAt)();return void 0!==r?(0,t.jsx)(N,{items:i.waiting.items,lastReadAt:r}):(0,t.jsx)(h.f,{fleetId:e,decidePlaces:a,children:e=>(0,t.jsx)(k,{home:i,now:n,opening:e,argo:s})})},"StayAwareRows",0,j],85989)},92587,e=>{var t=e.i(43476),i=e.i(35159),n=e.i(85989),a=e.i(3523);e.s(["StayAwarePanel",0,function({fleetId:e,consoleUrl:s,stayAware:r,now:d}){return(0,t.jsx)(a.f,{fleetId:e,consoleUrl:s,children:e=>(0,t.jsxs)("section",{className:"grid gap-3","aria-labelledby":"bridge-stay-aware-heading",children:[(0,t.jsxs)("div",{className:`flex items-baseline justify-between gap-3 max-sm:sr-only ${void 0===e.opened?"":"px-3 pt-2.5"}`,children:[(0,t.jsx)("h1",{id:"bridge-stay-aware-heading",className:void 0===e.opened?"text-heading font-semibold":"font-semibold",children:"Stay aware"}),(0,t.jsx)("span",{"data-testid":"bridge-stay-aware-count",className:"text-caption text-muted-foreground",children:(0,i.E)(r.filter(({state:e})=>"new"===e).length)})]}),(0,t.jsx)("p",{className:"text-caption text-muted-foreground sm:hidden",children:"Not in the count. Seeing one is all it asks."}),0===r.length?(0,t.jsx)("p",{"data-testid":"bridge-nothing-new",className:"rounded-md border border-border bg-card p-3 text-muted-foreground",children:"Nothing new. What you saw is in Done."}):(0,t.jsx)(n.StayAwareRows,{items:r,readAt:new Date(d),opening:e})]})})}])},19015,e=>{var t=e.i(43476),i=e.i(70812),n=e.i(71136),a=e.i(96315),s=e.i(49287),r=e.i(28623),d=e.i(12497),o=e.i(91604),l=e.i(63132),c=e.i(779);let h={bridge:{icon:s.f,name:"Bridge"},slack:{icon:n.f,name:"Slack"},chat:{icon:r.f,name:"a chat"},"web-push":{icon:i.f,name:"web push"},email:{icon:a.f,name:"email"}};function m(){return(0,t.jsx)("span",{"aria-hidden":"true",className:"text-border",children:"·"})}function u({places:e}){var i;let n,a=["bridge",...e].map(e=>h[e]);return(0,t.jsx)("span",{role:"img","aria-label":`Shows in ${(n=(i=a.map(({name:e})=>e)).at(-1)??"",i.length<2?n:`${i.slice(0,-1).join(", ")} and ${n}`)}`,className:"inline-flex items-center gap-0.5",children:a.map(({icon:e,name:i})=>(0,t.jsx)(e,{"aria-hidden":"true",className:"size-3"},i))})}e.s(["f",0,function({item:e,now:i,isNew:n,isOpen:a=!1,staleKind:s,outcome:r,failure:h,onOpen:g,time:p,detail:b,actions:x}){var f;let y=e.isAlert??!1,w=(0,o.f)({job:e.job,isAlert:y}),j=w.icon,v="min-w-0 break-words text-left text-body-touch font-medium sm:truncate sm:text-body",k=void 0===s?e.title:(0,t.jsx)("s",{className:"decoration-muted-foreground",children:e.title});return(0,t.jsxs)("li",{"data-testid":"bridge-item","data-stale":void 0!==s,"aria-current":!!a||void 0,className:`grid min-w-0 grid-cols-[1rem_minmax(0,1fr)_auto] items-start gap-x-2.5 gap-y-1.5 border-t border-border px-3 py-2.5 first:border-t-0 ${function({isOpen:e,isStale:t}){return e?"bg-highlight shadow-[inset_2px_0_0_var(--primary)]":t?"bg-muted":""}({isOpen:a,isStale:void 0!==s})}`,children:[(0,t.jsx)(j,{"aria-hidden":"true",className:`mt-0.5 size-4 ${w.tone}`}),(0,t.jsxs)("span",{className:"flex min-w-0 flex-col gap-0.5",children:[(0,t.jsxs)("span",{className:"flex min-w-0 items-baseline sm:items-center",children:[n?(0,t.jsx)("span",{"aria-label":"New",className:"mr-1.5 size-[7px] shrink-0 -translate-y-px rounded-full bg-primary"}):null,void 0===g?(0,t.jsx)("span",{"data-testid":"bridge-item-title",className:v,children:k}):(0,t.jsx)("button",{type:"button","data-testid":"bridge-item-title",onClick:g,className:`${v} hover:underline`,children:k})]}),(0,t.jsxs)("span",{className:"flex flex-wrap items-center gap-1.5 text-caption text-muted-foreground",children:[(0,t.jsx)("span",{className:`font-medium ${w.tone}`,children:(0,d.z)({job:e.job,isAlert:y})}),(0,t.jsx)(m,{}),(0,t.jsx)("span",{children:e.from}),void 0===r?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m,{}),(0,t.jsxs)("span",{"data-testid":"bridge-outcome",className:"inline-flex items-center gap-1.5",children:[void 0===s?null:(0,t.jsx)(c.f,{kind:s}),r]})]}),void 0===e.places?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m,{}),(0,t.jsx)(u,{places:e.places})]})]})]}),(0,t.jsx)("time",{dateTime:p?.at??e.sentAt,title:(f=p?.at??e.sentAt,`${new Date(f).toISOString().slice(0,16).replace("T"," ")} UTC`),className:"whitespace-nowrap text-right text-caption text-muted-foreground",children:p?.said??(0,d.V)(e.sentAt,i)}),void 0===b?null:(0,t.jsx)("div",{className:"col-span-2 col-start-2",children:b}),null==x?null:(0,t.jsx)("div",{className:"col-span-2 col-start-2 flex flex-wrap items-center gap-1.5",children:x}),void 0===h?null:(0,t.jsx)("div",{className:"col-span-2 col-start-2",children:(0,t.jsx)(l.f,{message:h,isFailure:!0})})]})}])},63132,e=>{var t=e.i(43476);e.s(["f",0,function({message:e,isFailure:i}){return i?(0,t.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:e}):(0,t.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:e})}])}])})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[26323,8821,56736,25834,35890,64938,80829,6640,10199,64951,66250,77173,13488,28376,9977,41708,93480,e=>{var t=e.i(71645),n=e.i(33332);let r=t.createContext(void 0);function o(e){let o=t.useContext(r);if(!e&&void 0===o)throw Error((0,n.f)(27));return o}e.s(["R",0,r,"x",0,o],8821);var i=e.i(52245),a=e.i(79938);let s=t.forwardRef(function(e,t){let{render:n,className:r,style:s,forceRender:l=!1,...d}=e,u=o(),p=u.useState("open"),c=u.useState("nested"),f=u.useState("mounted"),g=u.useState("transitionStatus");return(0,i.a)("div",e,{state:{open:p,transitionStatus:g},ref:[u.context.backdropRef,t],stateAttributesMapping:a.M,props:[{role:"presentation",hidden:!f,style:{userSelect:"none",WebkitUserSelect:"none"}},d],enabled:l||!c})});var l=e.i(40886),d=e.i(75606),u=e.i(57749);let p=t.forwardRef(function(e,t){let{render:n,className:r,style:a,disabled:s=!1,nativeButton:p=!0,...c}=e,f=o(),g=f.useState("open"),{getButtonProps:m,buttonRef:h}=(0,l.f)({disabled:s,native:p});return(0,i.a)("button",e,{state:{disabled:s},ref:[t,h],props:[{onClick:function(e){g&&f.setOpen(!1,(0,d.j)(u.f.closePress,e.nativeEvent))}},c,m]})});e.s(["f",0,p],56736);var c=e.i(88015);let f=t.forwardRef(function(e,t){let{render:n,className:r,style:a,id:s,...l}=e,d=o(),u=(0,c.f)(s);return d.useSyncedValueWithCleanup("descriptionElementId",u),(0,i.a)("p",e,{ref:t,props:[{id:u},l]})});var g=e.i(61487);let m=t.createContext(void 0);function h(){let e=t.useContext(m);if(void 0===e)throw Error((0,n.f)(26));return e}e.s(["_",0,m,"Z",0,h],25834);var v=e.i(37584),x=e.i(73327),S=e.i(64111),b=e.i(74354),C=e.i(38380);e.s(["f",0,C],35890);var C=C,w=C;e.s(["f",0,w],64938);var w=C,y=C;e.s(["f",0,y],80829);var y=C,P=C;e.s(["f",0,P],6640);var P=C;C.open,w.closed,y.startingStyle,P.endingStyle;let O={...a.E,...b.f,nestedDialogOpen:e=>e?{"data-nested-dialog-open":""}:null};e.s(["f",0,O],10199);var R=e.i(43476);let j=t.forwardRef(function(e,t){let{render:n,className:r,style:a,finalFocus:s,initialFocus:l,...d}=e,u=o(),p=u.useState("descriptionElementId"),c=u.useState("disablePointerDismissal"),f=u.useState("floatingRootContext"),m=u.useState("popupProps"),b=u.useState("modal"),C=u.useState("mounted"),w=u.useState("nested"),y=u.useState("nestedOpenDialogCount"),P=u.useState("open"),j=u.useState("openMethod"),k=u.useState("titleElementId"),E=u.useState("transitionStatus"),T=u.useState("role"),I=f.useState("floatingId");h(),(0,v.f)({open:P,ref:u.context.popupRef,onComplete(){P&&u.context.onOpenChangeComplete?.(!0)}});let D=void 0===l?(0,S.H)(u.context.popupRef):l,N=u.useStateSetter("popupElement"),A=(0,i.a)("div",e,{state:{open:P,nested:w,transitionStatus:E,nestedDialogOpen:y>0},props:[m,{id:I,"aria-labelledby":k,"aria-describedby":p,role:T,...S.X,hidden:!C,onKeyDown(e){x.f.has(e.key)&&e.stopPropagation()},style:{"--nested-dialogs":y}},d],ref:[t,u.context.popupRef,N],stateAttributesMapping:O});return(0,R.jsx)(g.f,{context:f,openInteractionType:j,disabled:!C,closeOnFocusOut:!c,initialFocus:D,returnFocus:s,modal:!1!==b,restoreFocus:"popup",children:A})});var k=e.i(44394),E=e.i(26674),T=e.i(426);let I=t.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,i=o(),a=i.useState("mounted"),s=i.useState("modal"),l=i.useState("open");return a||n?(0,R.jsx)(m.Provider,{value:n,children:(0,R.jsxs)(E.r,{ref:t,...r,children:[a&&!0===s&&(0,R.jsx)(T.f,{ref:i.context.internalBackdropRef,inert:(0,k.f)(!l)}),e.children]})}):null});e.s(["f",0,I],64951);var D=e.i(96499),N=e.i(46376),A=e.i(45484),M=e.i(17989),U=e.i(84446);function B({store:e,parentContext:n,isDrawer:r}){let o=e.useState("open"),i=e.useState("mounted"),a=e.useState("disablePointerDismissal"),s=e.useState("modal"),l=e.useState("popupElement"),d=e.useState("floatingRootContext"),[u,p]=t.useState(0),[c,f]=t.useState(0),g=0===u,m=(0,M.f)(d,{outsidePressEvent:()=>e.context.internalBackdropRef.current||e.context.backdropRef.current?"intentional":{mouse:"trap-focus"===s?"sloppy":"intentional",touch:"sloppy"},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||"button"in t&&0!==t.button)return!1;if("touches"in t){if("touchend"===t.type){if(1!==t.changedTouches.length||0!==t.touches.length)return!1}else if(1!==t.touches.length)return!1}let n=(0,U.Z)(t);if(g&&!a){if(s){let t=e.context.internalBackdropRef.current,r=e.context.backdropRef.current;return!t&&!r||t===n||r===n||(0,U.I)(n,l)&&!n?.hasAttribute("data-base-ui-portal")}return!0}return!1},escapeKey:g});return(0,A.f)(o&&!0===s,l),e.useContextCallback("onNestedDialogOpen",(t,n)=>{(e.select("open")||e.select("mounted"))&&(p(t),f(n))}),(0,N.f)(()=>{o||i||(p(0),f(0))},[o,i]),(0,N.f)(()=>(n?.onNestedDialogOpen&&o&&n.onNestedDialogOpen(u+1,c+ +!!r),()=>{n?.onNestedDialogOpen&&o&&n.onNestedDialogOpen(0,0)}),[r,o,u,c,n]),(0,S.y)(e,{activeTriggerProps:m.reference,inactiveTriggerProps:m.trigger,popupProps:m.floating,nestedOpenDialogCount:u,nestedOpenDrawerCount:c}),null}var F=e.i(1252),L=e.i(16786),z=e.i(90627);let W={...L.j,modal:e=>e.modal,nested:e=>e.nested,nestedOpenDialogCount:e=>e.nestedOpenDialogCount,nestedOpenDrawerCount:e=>e.nestedOpenDrawerCount,disablePointerDismissal:e=>e.disablePointerDismissal,openMethod:e=>e.openMethod,descriptionElementId:e=>e.descriptionElementId,titleElementId:e=>e.titleElementId,viewportElement:e=>e.viewportElement,role:e=>e.role};class $ extends F.f{constructor(e,n,r){var o;let i=new z.f;super(function(e,t,n,r=!1){return{...(0,L.i)(t,n,r),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...e}}(e,i,n,r),(o=i,{popupRef:t.createRef(),backdropRef:t.createRef(),internalBackdropRef:t.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:o,onOpenChange:void 0,onOpenChangeComplete:void 0}),W)}setOpen=(e,t)=>{t.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},e||null!=t.trigger||null==this.state.activeTriggerId||(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled||(this.state.floatingRootContext.dispatchOpenChange(e,t),this.update((0,S.z)(this.state,e,t.trigger)))}}var H=e.i(68765);function K(e,n){let{children:i,open:a,defaultOpen:s=!1,onOpenChange:l,onOpenChangeComplete:u,disablePointerDismissal:p=!1,modal:c=!0,actionsRef:f,handle:g,triggerId:m,defaultTriggerId:h=null}=n,v="alert-dialog"===e,x=o(!0),b={modal:!!v||c,disablePointerDismissal:v||p,nested:null!=x,role:v?"alertdialog":"dialog"},C=(0,S.$)((e,t)=>new $({open:s,openProp:a,activeTriggerId:h,triggerIdProp:m,...b},e,t),!0);C.useControlledProp("openProp",a),C.useControlledProp("triggerIdProp",m),C.useSyncedValues(b),C.useContextCallback("onOpenChange",l),C.useContextCallback("onOpenChangeComplete",u);let w=C.useState("open"),y=C.useState("mounted"),P=C.useState("payload");(0,S.e)(C,w),(0,S._)(C);let{forceUnmount:O}=(0,S.L)(w,C);t.useImperativeHandle(f,()=>({unmount:O,close:()=>C.setOpen(!1,(0,d.j)(H.f.imperativeAction))}),[O,C]);let j=w||y||null!=g;return(0,R.jsxs)(r.Provider,{value:C,children:[g&&(0,R.jsx)(S.d,{handle:g,store:C}),j&&(0,R.jsx)(B,{store:C,parentContext:x?.context,isDrawer:"drawer"===e}),"function"==typeof i?i({payload:P}):i]})}e.s(["f",0,K],66250);let _=(0,D.U)(function(e){return K("dialog",e)}),V=t.forwardRef(function(e,t){let{render:n,className:r,style:a,id:s,...l}=e,d=o(),u=(0,c.f)(s);return d.useSyncedValueWithCleanup("titleElementId",u),(0,i.a)("h2",e,{ref:t,props:[{id:u},l]})});e.s(["f",0,V],77173);var G=e.i(38396),Z=e.i(59636),q=e.i(85689),J=e.i(32199);let X=(0,D.u)(function(e,r){let{render:s,className:d,style:u,disabled:p=!1,nativeButton:f=!0,id:g,payload:m,handle:h,...v}=e,x=o(!0),b=(0,Z.f)(h)??x;if(!b)throw Error((0,n.f)(79));let C=(0,c.f)(g),w=b.useState("floatingRootContext"),y=b.useState("isOpenedByTrigger",C),P=b.useState("triggerPopupId",C),O=t.useRef(null),{registerTrigger:R,isMountedByThisTrigger:j}=(0,S.F)(C,O,b,{payload:m}),{getButtonProps:k,buttonRef:E}=(0,l.f)({disabled:p,native:f}),T=(0,q.f)(w),I=(0,J.p)(()=>b.select("open"),e=>{b.set("openMethod",e)}),D=b.useState("triggerProps",j);return(0,i.a)("button",e,{state:{disabled:p,open:y},ref:[E,r,R,O],props:[T.reference,D,I,{[G.j]:"",id:C,"aria-haspopup":"dialog","aria-expanded":y,"aria-controls":P},v,k],stateAttributesMapping:a.J})});e.s(["f",0,X],13488),e.s(["Backdrop",0,s,"Close",0,p,"Description",0,f,"Popup",0,j,"Portal",0,I,"Root",0,_,"Title",0,V,"Trigger",0,X],28376);var Q=e.i(28376);e.s(["f",0,Q],26323),e.s(["f",0,Q],9977),e.s(["f",0,Q],41708),e.s(["f",0,Q],93480)},9169,52744,e=>{var t=e.i(28376);e.s(["f",0,t],9169),e.s(["f",0,t],52744)},73327,e=>{let t=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End"]);e.s(["f",0,t])},16786,59636,e=>{var t=e.i(56789),n=e.i(56341);let r=e=>e.triggerIdProp??e.activeTriggerId,o=e=>e.openProp??e.open,i=e=>(e.popupElement?.id??e.floatingId)||void 0;function a(e,t){return void 0!==t&&o(e)&&r(e)===t}e.s(["i",0,function(e,r,o=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new n.f({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:r,syncOnly:!0,nested:o,onOpenChange:void 0}),floatingId:r,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,openedWithoutTrigger:!1,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:t.w,inactiveTriggerProps:t.w,popupProps:t.w}},"j",0,{open:o,mounted:e=>e.mounted,transitionStatus:e=>o(e)&&!e.mounted?"starting":e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:r,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:i,isTriggerActive:(e,t)=>void 0!==t&&r(e)===t,isOpenedByTrigger:(e,t)=>a(e,t),isMountedByTrigger:(e,t)=>void 0!==t&&r(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>a(e,t)||void 0!==t&&o(e)&&null==r(e)&&!e.openedWithoutTrigger&&1===e.triggerCount?i(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement}],16786);var s=e.i(71645),l=e.i(2239);e.s(["f",0,function(e){let n=s.useCallback(n=>void 0===e?t.x:e.subscribeStore(n),[e]),r=s.useCallback(()=>void 0===e?void 0:e.store,[e]);return(0,l.useSyncExternalStore)(n,r,()=>e?.serverStore)}],59636)},66595,e=>{var t=e.i(56420);let n={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};n.node;let r=(0,t.f)(n);e.s(["f",0,r],66595)},95187,(e,t,n)=>{Object.defineProperty(n,"__esModule",{value:!0});var r={callServer:function(){return i.callServer},createServerReference:function(){return s.createServerReference},findSourceMapURL:function(){return a.findSourceMapURL}};for(var o in r)Object.defineProperty(n,o,{enumerable:!0,get:r[o]});let i=e.r(32120),a=e.r(92245),s=e.r(35326)},67914,e=>{var t=e.i(43476),n=e.i(71645),r=e.i(95187);let o=(0,r.createServerReference)("40ca8029b8207bd47293950b98bdbd89c6c994c5fa",r.callServer,void 0,r.findSourceMapURL,"setTheme"),i=["light","dark","system"];e.s(["f",0,function({email:e,accountUrl:r,theme:a,entries:s=[]}){let[l,d]=(0,n.useState)(a),[u,p]=(0,n.useState)(!1),c=(0,n.useRef)(null);return{account:{name:e,signedInAs:"account",accountUrl:r,theme:l,themes:i,hasTheme:!0,onThemeChange:e=>{let t;d(e),document.documentElement.dataset.theme=e,t="dark"===e||"system"===e&&window.matchMedia("(prefers-color-scheme: dark)").matches,document.documentElement.classList.toggle("dark",t),o(e)},shortcuts:[],helpUrl:"https://github.com/ThomasHendrickx/aeolus-fleet",onSignOut:()=>{p(!0),c.current?.requestSubmit()},isSigningOut:u,entries:s},signOutForm:(0,t.jsx)("form",{ref:c,method:"post",action:"/sign-in/end",hidden:!0})}}],67914)},84821,e=>{var t=e.i(43476),n=e.i(66595),r=e.i(68221),o=e.i(67393),i=e.i(55939),a=e.i(12911),s=e.i(11271);function l({switcher:e,account:d,onSearch:u,searchLabel:p="Search or jump to",children:c,actions:f,className:g}){return(0,t.jsxs)("header",{"data-slot":"app-header",className:(0,s.f)("sticky top-0 z-30 flex h-(--size-header) shrink-0 items-center justify-between gap-4 border-b border-border bg-background px-6",g),children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[void 0===e?(0,t.jsx)("span",{"data-testid":"app-switcher-loading","aria-hidden":!0,className:"h-4 w-36 shrink-0 animate-pulse rounded bg-muted motion-reduce:animate-none"}):(0,t.jsx)(r.AppSwitcher,{switcher:e,layout:"full",className:"shrink-0"}),c]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-3",children:[f,u?(0,t.jsxs)(o.f,{size:"sm",icon:(0,t.jsx)(n.f,{"aria-hidden":!0}),"data-testid":"header-search",className:"w-60 justify-start font-normal text-muted-foreground max-lg:w-auto",onClick:u,children:[(0,t.jsx)("span",{className:"grow text-left max-lg:sr-only",children:p}),(0,t.jsx)(i.f,{children:"⌘K"})]}):null,(0,t.jsx)(a.AvatarMenu,{...d})]})]})}var d=e.i(18566),u=e.i(67914),p=e.i(65894);let c=[{key:"bridge",label:"Bridge",path:"/bridge"},{key:"outside-parties",label:"Outside parties",path:"/outside-parties"},{key:"parties",label:"Parties",path:"/parties"},{key:"slack",label:"Slack",path:"/slack"}];function f({fleetId:e}){let n=(0,d.usePathname)();return(0,t.jsx)("nav",{"aria-label":"Gateway",className:"flex min-w-0 items-center gap-1 overflow-x-auto",children:c.map(({key:r,label:o,path:i})=>{let a=n===i||n.startsWith(`${i}/`);return(0,t.jsx)("a",{href:(0,p.f)(i,e),"data-testid":`frame-tab-${r}`,"aria-current":a?"page":void 0,className:`whitespace-nowrap rounded-md px-2 py-1 text-sm ${a?"bg-accent font-semibold":"text-muted-foreground hover:bg-accent"}`,children:o},r)})})}e.s(["GatewayHeader",0,function({switchers:e,email:n,accountUrl:o,theme:i}){let s=(0,d.useSearchParams)().get("fleet"),p=e.find(({fleet:e})=>e.id===s)??e[0],{account:c,signOutForm:g}=(0,u.f)({email:n,accountUrl:o,theme:i});return(0,t.jsxs)(t.Fragment,{children:[g,(0,t.jsx)(l,{switcher:p,account:c,className:"max-sm:hidden",children:void 0===p?null:(0,t.jsx)(f,{fleetId:p.fleet.id})}),(0,t.jsxs)("header",{className:"sticky top-0 z-30 flex h-14 shrink-0 items-center gap-3 border-b border-border bg-background px-4 sm:hidden",children:[void 0===p?null:(0,t.jsx)(r.AppSwitcher,{switcher:p,layout:"compact",className:"min-w-0"}),void 0===p?null:(0,t.jsx)(f,{fleetId:p.fleet.id}),(0,t.jsx)("span",{className:"grow"}),(0,t.jsx)(a.AvatarMenuSheet,{...c})]})]})}],84821)},65894,e=>{e.s(["f",0,function(e,t){let[n="",r=""]=e.split("?"),o=new URLSearchParams(r);return o.set("fleet",t),`${n}?${o.toString()}`}])}],18566,(e,t,n)=>{t.exports=e.r(76562)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[26323,8821,56736,25834,35890,64938,80829,6640,10199,64951,66250,77173,13488,28376,9977,41708,93480,e=>{var t=e.i(71645),n=e.i(33332);let r=t.createContext(void 0);function i(e){let i=t.useContext(r);if(!e&&void 0===i)throw Error((0,n.f)(27));return i}e.s(["R",0,r,"x",0,i],8821);var o=e.i(52245),a=e.i(79938);let s=t.forwardRef(function(e,t){let{render:n,className:r,style:s,forceRender:l=!1,...d}=e,u=i(),c=u.useState("open"),p=u.useState("nested"),f=u.useState("mounted"),g=u.useState("transitionStatus");return(0,o.a)("div",e,{state:{open:c,transitionStatus:g},ref:[u.context.backdropRef,t],stateAttributesMapping:a.M,props:[{role:"presentation",hidden:!f,style:{userSelect:"none",WebkitUserSelect:"none"}},d],enabled:l||!p})});var l=e.i(40886),d=e.i(75606),u=e.i(57749);let c=t.forwardRef(function(e,t){let{render:n,className:r,style:a,disabled:s=!1,nativeButton:c=!0,...p}=e,f=i(),g=f.useState("open"),{getButtonProps:m,buttonRef:h}=(0,l.f)({disabled:s,native:c});return(0,o.a)("button",e,{state:{disabled:s},ref:[t,h],props:[{onClick:function(e){g&&f.setOpen(!1,(0,d.j)(u.f.closePress,e.nativeEvent))}},p,m]})});e.s(["f",0,c],56736);var p=e.i(88015);let f=t.forwardRef(function(e,t){let{render:n,className:r,style:a,id:s,...l}=e,d=i(),u=(0,p.f)(s);return d.useSyncedValueWithCleanup("descriptionElementId",u),(0,o.a)("p",e,{ref:t,props:[{id:u},l]})});var g=e.i(61487);let m=t.createContext(void 0);function h(){let e=t.useContext(m);if(void 0===e)throw Error((0,n.f)(26));return e}e.s(["_",0,m,"Z",0,h],25834);var v=e.i(37584),x=e.i(73327),b=e.i(64111),y=e.i(74354),w=e.i(38380);e.s(["f",0,w],35890);var w=w,k=w;e.s(["f",0,k],64938);var k=w,S=w;e.s(["f",0,S],80829);var S=w,C=w;e.s(["f",0,C],6640);var C=w;w.open,k.closed,S.startingStyle,C.endingStyle;let j={...a.E,...y.f,nestedDialogOpen:e=>e?{"data-nested-dialog-open":""}:null};e.s(["f",0,j],10199);var O=e.i(43476);let P=t.forwardRef(function(e,t){let{render:n,className:r,style:a,finalFocus:s,initialFocus:l,...d}=e,u=i(),c=u.useState("descriptionElementId"),p=u.useState("disablePointerDismissal"),f=u.useState("floatingRootContext"),m=u.useState("popupProps"),y=u.useState("modal"),w=u.useState("mounted"),k=u.useState("nested"),S=u.useState("nestedOpenDialogCount"),C=u.useState("open"),P=u.useState("openMethod"),R=u.useState("titleElementId"),E=u.useState("transitionStatus"),T=u.useState("role"),N=f.useState("floatingId");h(),(0,v.f)({open:C,ref:u.context.popupRef,onComplete(){C&&u.context.onOpenChangeComplete?.(!0)}});let $=void 0===l?(0,b.H)(u.context.popupRef):l,D=u.useStateSetter("popupElement"),I=(0,o.a)("div",e,{state:{open:C,nested:k,transitionStatus:E,nestedDialogOpen:S>0},props:[m,{id:N,"aria-labelledby":R,"aria-describedby":c,role:T,...b.X,hidden:!w,onKeyDown(e){x.f.has(e.key)&&e.stopPropagation()},style:{"--nested-dialogs":S}},d],ref:[t,u.context.popupRef,D],stateAttributesMapping:j});return(0,O.jsx)(g.f,{context:f,openInteractionType:P,disabled:!w,closeOnFocusOut:!p,initialFocus:$,returnFocus:s,modal:!1!==y,restoreFocus:"popup",children:I})});var R=e.i(44394),E=e.i(26674),T=e.i(426);let N=t.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,o=i(),a=o.useState("mounted"),s=o.useState("modal"),l=o.useState("open");return a||n?(0,O.jsx)(m.Provider,{value:n,children:(0,O.jsxs)(E.r,{ref:t,...r,children:[a&&!0===s&&(0,O.jsx)(T.f,{ref:o.context.internalBackdropRef,inert:(0,R.f)(!l)}),e.children]})}):null});e.s(["f",0,N],64951);var $=e.i(96499),D=e.i(46376),I=e.i(45484),A=e.i(17989),M=e.i(84446);function B({store:e,parentContext:n,isDrawer:r}){let i=e.useState("open"),o=e.useState("mounted"),a=e.useState("disablePointerDismissal"),s=e.useState("modal"),l=e.useState("popupElement"),d=e.useState("floatingRootContext"),[u,c]=t.useState(0),[p,f]=t.useState(0),g=0===u,m=(0,A.f)(d,{outsidePressEvent:()=>e.context.internalBackdropRef.current||e.context.backdropRef.current?"intentional":{mouse:"trap-focus"===s?"sloppy":"intentional",touch:"sloppy"},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||"button"in t&&0!==t.button)return!1;if("touches"in t){if("touchend"===t.type){if(1!==t.changedTouches.length||0!==t.touches.length)return!1}else if(1!==t.touches.length)return!1}let n=(0,M.Z)(t);if(g&&!a){if(s){let t=e.context.internalBackdropRef.current,r=e.context.backdropRef.current;return!t&&!r||t===n||r===n||(0,M.I)(n,l)&&!n?.hasAttribute("data-base-ui-portal")}return!0}return!1},escapeKey:g});return(0,I.f)(i&&!0===s,l),e.useContextCallback("onNestedDialogOpen",(t,n)=>{(e.select("open")||e.select("mounted"))&&(c(t),f(n))}),(0,D.f)(()=>{i||o||(c(0),f(0))},[i,o]),(0,D.f)(()=>(n?.onNestedDialogOpen&&i&&n.onNestedDialogOpen(u+1,p+ +!!r),()=>{n?.onNestedDialogOpen&&i&&n.onNestedDialogOpen(0,0)}),[r,i,u,p,n]),(0,b.y)(e,{activeTriggerProps:m.reference,inactiveTriggerProps:m.trigger,popupProps:m.floating,nestedOpenDialogCount:u,nestedOpenDrawerCount:p}),null}var z=e.i(1252),U=e.i(16786),F=e.i(90627);let L={...U.j,modal:e=>e.modal,nested:e=>e.nested,nestedOpenDialogCount:e=>e.nestedOpenDialogCount,nestedOpenDrawerCount:e=>e.nestedOpenDrawerCount,disablePointerDismissal:e=>e.disablePointerDismissal,openMethod:e=>e.openMethod,descriptionElementId:e=>e.descriptionElementId,titleElementId:e=>e.titleElementId,viewportElement:e=>e.viewportElement,role:e=>e.role};class _ extends z.f{constructor(e,n,r){var i;let o=new F.f;super(function(e,t,n,r=!1){return{...(0,U.i)(t,n,r),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...e}}(e,o,n,r),(i=o,{popupRef:t.createRef(),backdropRef:t.createRef(),internalBackdropRef:t.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:i,onOpenChange:void 0,onOpenChangeComplete:void 0}),L)}setOpen=(e,t)=>{t.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},e||null!=t.trigger||null==this.state.activeTriggerId||(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled||(this.state.floatingRootContext.dispatchOpenChange(e,t),this.update((0,b.z)(this.state,e,t.trigger)))}}var V=e.i(68765);function W(e,n){let{children:o,open:a,defaultOpen:s=!1,onOpenChange:l,onOpenChangeComplete:u,disablePointerDismissal:c=!1,modal:p=!0,actionsRef:f,handle:g,triggerId:m,defaultTriggerId:h=null}=n,v="alert-dialog"===e,x=i(!0),y={modal:!!v||p,disablePointerDismissal:v||c,nested:null!=x,role:v?"alertdialog":"dialog"},w=(0,b.$)((e,t)=>new _({open:s,openProp:a,activeTriggerId:h,triggerIdProp:m,...y},e,t),!0);w.useControlledProp("openProp",a),w.useControlledProp("triggerIdProp",m),w.useSyncedValues(y),w.useContextCallback("onOpenChange",l),w.useContextCallback("onOpenChangeComplete",u);let k=w.useState("open"),S=w.useState("mounted"),C=w.useState("payload");(0,b.e)(w,k),(0,b._)(w);let{forceUnmount:j}=(0,b.L)(k,w);t.useImperativeHandle(f,()=>({unmount:j,close:()=>w.setOpen(!1,(0,d.j)(V.f.imperativeAction))}),[j,w]);let P=k||S||null!=g;return(0,O.jsxs)(r.Provider,{value:w,children:[g&&(0,O.jsx)(b.d,{handle:g,store:w}),P&&(0,O.jsx)(B,{store:w,parentContext:x?.context,isDrawer:"drawer"===e}),"function"==typeof o?o({payload:C}):o]})}e.s(["f",0,W],66250);let q=(0,$.U)(function(e){return W("dialog",e)}),H=t.forwardRef(function(e,t){let{render:n,className:r,style:a,id:s,...l}=e,d=i(),u=(0,p.f)(s);return d.useSyncedValueWithCleanup("titleElementId",u),(0,o.a)("h2",e,{ref:t,props:[{id:u},l]})});e.s(["f",0,H],77173);var K=e.i(38396),Z=e.i(59636),J=e.i(85689),Q=e.i(32199);let X=(0,$.u)(function(e,r){let{render:s,className:d,style:u,disabled:c=!1,nativeButton:f=!0,id:g,payload:m,handle:h,...v}=e,x=i(!0),y=(0,Z.f)(h)??x;if(!y)throw Error((0,n.f)(79));let w=(0,p.f)(g),k=y.useState("floatingRootContext"),S=y.useState("isOpenedByTrigger",w),C=y.useState("triggerPopupId",w),j=t.useRef(null),{registerTrigger:O,isMountedByThisTrigger:P}=(0,b.F)(w,j,y,{payload:m}),{getButtonProps:R,buttonRef:E}=(0,l.f)({disabled:c,native:f}),T=(0,J.f)(k),N=(0,Q.p)(()=>y.select("open"),e=>{y.set("openMethod",e)}),$=y.useState("triggerProps",P);return(0,o.a)("button",e,{state:{disabled:c,open:S},ref:[E,r,O,j],props:[T.reference,$,N,{[K.j]:"",id:w,"aria-haspopup":"dialog","aria-expanded":S,"aria-controls":C},v,R],stateAttributesMapping:a.J})});e.s(["f",0,X],13488),e.s(["Backdrop",0,s,"Close",0,c,"Description",0,f,"Popup",0,P,"Portal",0,N,"Root",0,q,"Title",0,H,"Trigger",0,X],28376);var G=e.i(28376);e.s(["f",0,G],26323),e.s(["f",0,G],9977),e.s(["f",0,G],41708),e.s(["f",0,G],93480)},9169,52744,e=>{var t=e.i(28376);e.s(["f",0,t],9169),e.s(["f",0,t],52744)},73327,e=>{let t=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End"]);e.s(["f",0,t])},78680,e=>{e.i(47167);var t=e.i(71645),n=e.i(74080),r=e.i(26674),i=e.i(43476);let o=t.forwardRef(function(e,o){let{children:a,container:s,className:l,render:d,style:u,...c}=e,{node:p,subtree:f}=(0,r.o)({container:s,ref:o,componentProps:e,elementProps:c});return f||p?(0,i.jsxs)(t.Fragment,{children:[f,p&&n.createPortal(a,p)]}):null});e.s(["f",0,o])},16786,59636,e=>{var t=e.i(56789),n=e.i(56341);let r=e=>e.triggerIdProp??e.activeTriggerId,i=e=>e.openProp??e.open,o=e=>(e.popupElement?.id??e.floatingId)||void 0;function a(e,t){return void 0!==t&&i(e)&&r(e)===t}e.s(["i",0,function(e,r,i=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new n.f({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:r,syncOnly:!0,nested:i,onOpenChange:void 0}),floatingId:r,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,openedWithoutTrigger:!1,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:t.w,inactiveTriggerProps:t.w,popupProps:t.w}},"j",0,{open:i,mounted:e=>e.mounted,transitionStatus:e=>i(e)&&!e.mounted?"starting":e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:r,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:o,isTriggerActive:(e,t)=>void 0!==t&&r(e)===t,isOpenedByTrigger:(e,t)=>a(e,t),isMountedByTrigger:(e,t)=>void 0!==t&&r(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>a(e,t)||void 0!==t&&i(e)&&null==r(e)&&!e.openedWithoutTrigger&&1===e.triggerCount?o(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement}],16786);var s=e.i(71645),l=e.i(2239);e.s(["f",0,function(e){let n=s.useCallback(n=>void 0===e?t.x:e.subscribeStore(n),[e]),r=s.useCallback(()=>void 0===e?void 0:e.store,[e]);return(0,l.useSyncExternalStore)(n,r,()=>e?.serverStore)}],59636)},70812,71136,96315,28623,e=>{var t=e.i(56420);let n={name:"bell",size:24,node:[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]};n.node;let r=(0,t.f)(n);e.s(["f",0,r],70812);let i={name:"hash",size:24,node:[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]};i.node;let o=(0,t.f)(i);e.s(["f",0,o],71136);let a={name:"mail",size:24,node:[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]};a.node;let s=(0,t.f)(a);e.s(["f",0,s],96315);let l={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};l.node;let d=(0,t.f)(l);e.s(["f",0,d],28623)},85595,e=>{var t=e.i(56420);let n={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};n.node;let r=(0,t.f)(n);e.s(["f",0,r],85595)},51481,e=>{var t=e.i(75043);e.s(["f",()=>t.f])},59381,e=>{var t=e.i(56420);let n={name:"hand",size:24,node:[["path",{d:"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2",key:"1fvzgz"}],["path",{d:"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2",key:"1kc0my"}],["path",{d:"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8",key:"10h0bg"}],["path",{d:"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",key:"1s1gnw"}]]};n.node;let r=(0,t.f)(n);e.s(["f",0,r],59381)},95187,(e,t,n)=>{Object.defineProperty(n,"__esModule",{value:!0});var r={callServer:function(){return o.callServer},createServerReference:function(){return s.createServerReference},findSourceMapURL:function(){return a.findSourceMapURL}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let o=e.r(32120),a=e.r(92245),s=e.r(35326)},31785,e=>{let t={decide:{name:"Decide",holds:"Questions from your ships",item:"question",items:"questions"},do:{name:"Do what only you can",holds:"Steps: sign in, create, approve",item:"step",items:"steps"},"stay-aware":{name:"Stay aware",holds:"Alerts and notices",item:"alert or notice",items:"alerts and notices"},"everything-else":{name:"Everything else",holds:"Replies and other messages",item:"message",items:"messages"}},n={slack:"Slack",chat:"A chat","web-push":"Web push",email:"Email"},r=["decide","do"],i="Bridge keeps every item.",o={label:"Not offered",isOk:!1},a={label:"Off",isOk:!1},s="Says only that something waits, with a link here.",l=`${s} Nothing is on until you turn it on.`,d="through the gateway. Lists what waits when you ask it.",u={slack:"Slack",chat:"a chat","web-push":"web push",email:"email"};e.s(["I",0,t,"k",0,n,"N",0,["slack","chat","web-push","email"],"g",0,function(e){return 0===e.length?{state:{label:"Not connected",isOk:!1},description:`claude.ai or another MCP client, ${d}`,action:"none"}:{state:{label:"Connected",isOk:!0},description:`${new Intl.ListFormat("en",{type:"conjunction"}).format(e)}, ${d}`,action:"none"}},"t",0,function({isOffered:e,isOnForAnyJob:t}){return e?t?{state:{label:"On",isOk:!0},description:s,action:"turnOff"}:{state:a,description:l,action:"turnOn"}:{state:o,description:"This gateway sends no email.",action:"none"}},"T",0,function(e,t){return e.jobs.filter(({job:e,places:n})=>n.email!==t&&(!t||r.includes(e))).map(({job:e})=>({job:e,place:"email",isOn:t}))},"r",0,function(e){let t=["Bridge",...e.map(e=>u[e])],n=t.at(-1),r=1===t.length?"Bridge":`${t.slice(0,-1).join(", ")} and ${String(n)}`;return`Shows in ${r}, as Where things show sets for Decide. One answer, wherever you give it.`},"H",0,function(e){if(null===e)return{state:{label:"Not connected",isOk:!1},description:"This fleet has no Slack workspace.",action:"none"};let{workspaceName:t,link:n}=e;return null===n?{state:{label:"Not linked",isOk:!1},description:`Link your Slack account in ${t} to see items there and answer them.`,action:"link"}:{state:{label:"Linked",isOk:!0},description:`As @${n.slackName} in ${t}. A button press or a thread reply there is yours.`,action:"unlink"}},"b",0,function(e){let{job:r,place:o,isOn:a,waiting:s,isChatOn:l}=e,{name:d,item:u,items:c}=t[r],p=`${n[o]} is ${a?"on":"off"} for ${d}`;return a?"chat"===o?{title:p,detail:`A chat lists every ${u} not done when you ask it.`}:{title:p,detail:`${n[o]} shows ${c} that arrive from now on.${void 0===s||0===s?"":` The ${String(s)} already waiting ${1===s?"stays":"stay"} ${l?"in Bridge and in a chat":"in Bridge"}.`}`}:{title:p,detail:"everything-else"===r&&"slack"===o?`Bots only: a bot ship's messages and replies to Slack still show there. ${i}`:i}},"B",0,function(e){if(!e.isOffered)return{state:o,description:"This gateway sends no web push.",action:"none"};if(!e.isTaken)return{state:a,description:"This browser takes no web push.",action:"none"};let t=e.browsers.find(({endpoint:t,isGone:n})=>t===e.ownEndpoint&&!n);return void 0===t?{state:a,description:l,action:"turnOn"}:{state:{label:"This browser",isOk:!0},description:`${t.browser}. ${s}`,action:"remove"}}])},55070,e=>{var t=e.i(43476);let n={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"},r={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"};e.s(["i",0,function({isPending:e,pendingLabel:i,variant:o="secondary",size:a="regular",children:s,className:l="",disabled:d,...u}){return(0,t.jsx)("button",{...u,disabled:!0===d||e,"aria-busy":e,className:`inline-flex items-center rounded-md disabled:cursor-not-allowed disabled:opacity-70 ${r[a]} ${n[o]} ${l}`,children:e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"size-3.5 animate-spin rounded-full border-2 border-current border-t-transparent"}),i]}):s})},"o",0,r])},19015,e=>{var t=e.i(43476),n=e.i(70812),r=e.i(71136),i=e.i(96315),o=e.i(49287),a=e.i(28623),s=e.i(12497),l=e.i(91604),d=e.i(63132),u=e.i(779);let c={bridge:{icon:o.f,name:"Bridge"},slack:{icon:r.f,name:"Slack"},chat:{icon:a.f,name:"a chat"},"web-push":{icon:n.f,name:"web push"},email:{icon:i.f,name:"email"}};function p(){return(0,t.jsx)("span",{"aria-hidden":"true",className:"text-border",children:"·"})}function f({places:e}){var n;let r,i=["bridge",...e].map(e=>c[e]);return(0,t.jsx)("span",{role:"img","aria-label":`Shows in ${(r=(n=i.map(({name:e})=>e)).at(-1)??"",n.length<2?r:`${n.slice(0,-1).join(", ")} and ${r}`)}`,className:"inline-flex items-center gap-0.5",children:i.map(({icon:e,name:n})=>(0,t.jsx)(e,{"aria-hidden":"true",className:"size-3"},n))})}e.s(["f",0,function({item:e,now:n,isNew:r,isOpen:i=!1,staleKind:o,outcome:a,failure:c,onOpen:g,time:m,detail:h,actions:v}){var x;let b=e.isAlert??!1,y=(0,l.f)({job:e.job,isAlert:b}),w=y.icon,k="min-w-0 break-words text-left text-body-touch font-medium sm:truncate sm:text-body",S=void 0===o?e.title:(0,t.jsx)("s",{className:"decoration-muted-foreground",children:e.title});return(0,t.jsxs)("li",{"data-testid":"bridge-item","data-stale":void 0!==o,"aria-current":!!i||void 0,className:`grid min-w-0 grid-cols-[1rem_minmax(0,1fr)_auto] items-start gap-x-2.5 gap-y-1.5 border-t border-border px-3 py-2.5 first:border-t-0 ${function({isOpen:e,isStale:t}){return e?"bg-highlight shadow-[inset_2px_0_0_var(--primary)]":t?"bg-muted":""}({isOpen:i,isStale:void 0!==o})}`,children:[(0,t.jsx)(w,{"aria-hidden":"true",className:`mt-0.5 size-4 ${y.tone}`}),(0,t.jsxs)("span",{className:"flex min-w-0 flex-col gap-0.5",children:[(0,t.jsxs)("span",{className:"flex min-w-0 items-baseline sm:items-center",children:[r?(0,t.jsx)("span",{"aria-label":"New",className:"mr-1.5 size-[7px] shrink-0 -translate-y-px rounded-full bg-primary"}):null,void 0===g?(0,t.jsx)("span",{"data-testid":"bridge-item-title",className:k,children:S}):(0,t.jsx)("button",{type:"button","data-testid":"bridge-item-title",onClick:g,className:`${k} hover:underline`,children:S})]}),(0,t.jsxs)("span",{className:"flex flex-wrap items-center gap-1.5 text-caption text-muted-foreground",children:[(0,t.jsx)("span",{className:`font-medium ${y.tone}`,children:(0,s.z)({job:e.job,isAlert:b})}),(0,t.jsx)(p,{}),(0,t.jsx)("span",{children:e.from}),void 0===a?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(p,{}),(0,t.jsxs)("span",{"data-testid":"bridge-outcome",className:"inline-flex items-center gap-1.5",children:[void 0===o?null:(0,t.jsx)(u.f,{kind:o}),a]})]}),void 0===e.places?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(p,{}),(0,t.jsx)(f,{places:e.places})]})]})]}),(0,t.jsx)("time",{dateTime:m?.at??e.sentAt,title:(x=m?.at??e.sentAt,`${new Date(x).toISOString().slice(0,16).replace("T"," ")} UTC`),className:"whitespace-nowrap text-right text-caption text-muted-foreground",children:m?.said??(0,s.V)(e.sentAt,n)}),void 0===h?null:(0,t.jsx)("div",{className:"col-span-2 col-start-2",children:h}),null==v?null:(0,t.jsx)("div",{className:"col-span-2 col-start-2 flex flex-wrap items-center gap-1.5",children:v}),void 0===c?null:(0,t.jsx)("div",{className:"col-span-2 col-start-2",children:(0,t.jsx)(d.f,{message:c,isFailure:!0})})]})}])},63132,e=>{var t=e.i(43476);e.s(["f",0,function({message:e,isFailure:n}){return n?(0,t.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:e}):(0,t.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:e})}])}],18566,(e,t,n)=>{t.exports=e.r(76562)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,87722,e=>{var s=e.i(43476),n=e.i(71645),a=e.i(28008),r=e.i(62052),t=e.i(30402),d=e.i(94984),i=e.i(65818),l=e.i(58107),c=e.i(90526),o=e.i(95187);let u=(0,o.createServerReference)("
|
|
1
|
+
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,87722,e=>{var s=e.i(43476),n=e.i(71645),a=e.i(28008),r=e.i(62052),t=e.i(30402),d=e.i(94984),i=e.i(65818),l=e.i(58107),c=e.i(90526),o=e.i(95187);let u=(0,o.createServerReference)("6022f798e63fd7b86a6fbaff1a9c2aa94ca3c34592",o.callServer,void 0,o.findSourceMapURL,"addA2aAgent"),m={kind:"idle"};e.s(["A2aAgentForm",0,function({fleetId:e,requestId:o,owners:p,scopes:h}){let[x,f]=(0,n.useActionState)(u,m),g="refused"===x.kind?x.fields:{};return(0,s.jsxs)("form",{action:f,className:`${t.r} grid gap-3`,"data-testid":"add-a2a-agent-form",children:[(0,s.jsx)("input",{type:"hidden",name:a.H,value:e}),(0,s.jsx)("input",{type:"hidden",name:"requestId",value:o}),(0,s.jsx)("h1",{className:"text-title font-semibold",children:"Add an A2A agent"}),(0,s.jsx)(d.f,{state:"refused"===x.kind?x:{kind:"idle"}}),(0,s.jsxs)("label",{className:t.z,children:[(0,s.jsx)("span",{children:"Name, the proxy ship's"}),(0,s.jsx)("input",{className:t.w,name:"name",defaultValue:g.name??"",required:!0})]}),(0,s.jsxs)("label",{className:t.z,children:[(0,s.jsx)("span",{children:"Card address"}),(0,s.jsx)("input",{className:t.w,type:"url",name:"cardUrl",defaultValue:g.cardUrl??"",placeholder:"https://agent.example.com/.well-known/agent-card.json",required:!0}),(0,s.jsx)("span",{className:"text-caption text-muted-foreground",children:"The gateway reads the card first: an agent whose card it cannot state is not added."})]}),(0,s.jsx)(r.f,{legend:"The agent's credential",fields:g,noneHelp:"The gateway sends no credential: for an agent that asks for none."}),(0,s.jsxs)("label",{className:t.z,children:[(0,s.jsx)("span",{children:"Messages in flight at once"}),(0,s.jsx)("input",{className:t.w,type:"number",name:"concurrencyLimit",min:1,max:10,defaultValue:g.concurrencyLimit??"4"})]}),(0,s.jsx)(i.f,{choices:p.isOk?p.value:[],current:null,help:"A person ship or argo. It answers for this agent.",refusal:p.isOk?void 0:p.refusal}),0===h.length?null:(0,s.jsxs)("fieldset",{className:"grid gap-2",children:[(0,s.jsx)("legend",{className:"font-medium",children:"Scopes, beside sending and receiving"}),h.map(e=>(0,s.jsxs)("label",{className:"flex items-center gap-2",children:[(0,s.jsx)("input",{type:"checkbox",name:`${c.f}${e}`,defaultChecked:void 0!==g[`${c.f}${e}`]}),(0,s.jsx)("span",{className:"font-mono text-code",children:e})]},e))]}),(0,s.jsx)("div",{children:(0,s.jsx)(l.f,{pending:"Reading the card…",children:"Add"})})]})}],87722)},28008,e=>{e.s(["H",0,"fleet","Q",0,{kind:"idle"}])},88374,e=>{let s=[{kind:"none",label:"No credential"},{kind:"bearer",label:"Bearer token"},{kind:"clientCredentials",label:"OAuth client credentials"}],n={kind:"personSignIn",label:"Each person signs in"},a=[...s,n];e.s(["a",0,a,"x",0,s,"m",0,n,"G",0,function(e){return a.find(({kind:s})=>s===e)?.kind??"bearer"},"C",0,function(e){return s.find(({kind:s})=>s===e)?.kind??"bearer"}])},62052,e=>{var s=e.i(43476),n=e.i(71645),a=e.i(88374),r=e.i(30402);e.s(["f",0,function({legend:e,fields:t,noneHelp:d,canEachPersonSignIn:i=!1,onKindChange:l}){let c=i?a.G:a.C,[o,u]=(0,n.useState)(c(t.credentialKind??""));return(0,s.jsxs)("fieldset",{className:"grid gap-3",children:[(0,s.jsx)("legend",{className:"font-medium",children:e}),(0,s.jsxs)("label",{className:r.z,children:[(0,s.jsx)("span",{children:"Credential"}),(0,s.jsx)("select",{className:r.w,name:"credentialKind",value:o,onChange:e=>{let s=c(e.target.value);u(s),l?.(s)},children:(i?a.a:a.x).map(({kind:e,label:n})=>(0,s.jsx)("option",{value:e,children:n},e))})]}),"clientCredentials"===o?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("label",{className:r.z,children:[(0,s.jsx)("span",{children:"Client id"}),(0,s.jsx)("input",{className:r.w,type:"text",name:"clientId",defaultValue:t.clientId??""})]}),(0,s.jsxs)("label",{className:r.z,children:[(0,s.jsx)("span",{children:"Client secret"}),(0,s.jsx)("input",{className:r.w,type:"password",name:"clientSecret"})]}),(0,s.jsxs)("label",{className:r.z,children:[(0,s.jsx)("span",{children:"Issuer"}),(0,s.jsx)("input",{className:r.w,type:"url",name:"issuer",defaultValue:t.issuer??""})]}),(0,s.jsxs)("label",{className:r.z,children:[(0,s.jsx)("span",{children:"Scope"}),(0,s.jsx)("input",{className:r.w,type:"text",name:"scope",defaultValue:t.scope??""})]})]}):"bearer"===o?(0,s.jsxs)("label",{className:r.z,children:[(0,s.jsx)("span",{children:"Bearer token"}),(0,s.jsx)("input",{className:r.w,type:"password",name:"token"})]}):o===a.m.kind?(0,s.jsx)("p",{className:"text-muted-foreground",children:"Each person signs in for themselves. A ship calls under its owner's sign-in."}):(0,s.jsx)("p",{className:"text-muted-foreground",children:d})]})}])},30402,e=>{let s="inline-flex h-9 items-center justify-center gap-2 rounded-md px-4 font-medium disabled:opacity-60",n={primary:`${s} bg-primary text-primary-foreground hover:bg-primary-hover`,secondary:`${s} border border-border bg-card hover:bg-accent`,destructive:`${s} bg-destructive text-destructive-foreground`};e.s(["x",0,n,"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"])},94984,e=>{var s=e.i(43476);e.s(["f",0,function({state:e,testId:n}){switch(e.kind){case"idle":return null;case"done":return(0,s.jsx)("p",{role:"status","data-testid":n,className:"rounded-md border border-tone-ok-border bg-tone-ok-bg px-3 py-2 text-tone-ok-fg",children:e.message});case"refused":case"openNetwork":return(0,s.jsx)("p",{role:"alert","data-testid":n,className:"rounded-md border border-tone-attention-border bg-tone-attention-bg px-3 py-2 text-tone-attention-fg",children:e.message})}}])},65818,e=>{var s=e.i(43476),n=e.i(30402);e.s(["f",0,function({choices:e,current:a,help:r,refusal:t}){let d=null===a||e.some(e=>e.shipId===a.shipId)?e:[a,...e];return(0,s.jsxs)("label",{className:n.z,children:[(0,s.jsx)("span",{children:"Owner"}),(0,s.jsxs)("select",{className:n.w,name:"ownerShipId",defaultValue:a?.shipId??"",required:!0,"data-testid":"owner-field",children:[null===a?(0,s.jsx)("option",{value:"",disabled:!0,children:"Pick its owner"}):null,d.map(e=>(0,s.jsx)("option",{value:e.shipId,children:e.name},e.shipId))]}),(0,s.jsx)("span",{className:"text-muted-foreground",children:t??r})]})}])},58107,e=>{var s=e.i(43476),n=e.i(74080),a=e.i(30402);e.s(["f",0,function({children:e,pending:r,kind:t="primary",testId:d}){let i=(0,n.useFormStatus)();return(0,s.jsx)("button",{type:"submit",className:a.x[t],disabled:i.pending,"aria-busy":i.pending,"data-testid":d,children:i.pending?r:e})}])},90526,e=>{e.s(["f",0,"scope:"])}])})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,28008,e=>{e.s(["H",0,"fleet","Q",0,{kind:"idle"}])},30402,e=>{let t="inline-flex h-9 items-center justify-center gap-2 rounded-md px-4 font-medium disabled:opacity-60",n={primary:`${t} bg-primary text-primary-foreground hover:bg-primary-hover`,secondary:`${t} border border-border bg-card hover:bg-accent`,destructive:`${t} bg-destructive text-destructive-foreground`};e.s(["x",0,n,"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"])},94984,e=>{var t=e.i(43476);e.s(["f",0,function({state:e,testId:n}){switch(e.kind){case"idle":return null;case"done":return(0,t.jsx)("p",{role:"status","data-testid":n,className:"rounded-md border border-tone-ok-border bg-tone-ok-bg px-3 py-2 text-tone-ok-fg",children:e.message});case"refused":case"openNetwork":return(0,t.jsx)("p",{role:"alert","data-testid":n,className:"rounded-md border border-tone-attention-border bg-tone-attention-bg px-3 py-2 text-tone-attention-fg",children:e.message})}}])},58107,e=>{var t=e.i(43476),n=e.i(74080),r=e.i(30402);e.s(["f",0,function({children:e,pending:o,kind:d="primary",testId:i}){let s=(0,n.useFormStatus)();return(0,t.jsx)("button",{type:"submit",className:r.x[d],disabled:s.pending,"aria-busy":s.pending,"data-testid":i,children:s.pending?o:e})}])},97e3,e=>{var t=e.i(43476);let n={waiting:"border-tone-waiting-border bg-tone-waiting-bg text-tone-waiting-fg",active:"border-tone-active-border bg-tone-active-bg text-tone-active-fg",ok:"border-tone-ok-border bg-tone-ok-bg text-tone-ok-fg",attention:"border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg",ended:"border-tone-ended-border bg-tone-ended-bg text-tone-ended-fg"};e.s(["T",0,function({tone:e,label:r}){return(0,t.jsx)("span",{className:`inline-flex items-center rounded-full border px-2 text-caption ${n[e]}`,children:r})},"E",0,function({children:e,isMono:n=!1}){return(0,t.jsx)("span",{className:`inline-flex items-center rounded-md border border-border px-2 text-caption ${n?"font-mono":""}`,children:e})}])},17018,e=>{var t=e.i(43476),n=e.i(71645),r=e.i(28008),o=e.i(30402),d=e.i(94984),i=e.i(58107),s=e.i(95187);let a=(0,s.createServerReference)("
|
|
1
|
+
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,28008,e=>{e.s(["H",0,"fleet","Q",0,{kind:"idle"}])},30402,e=>{let t="inline-flex h-9 items-center justify-center gap-2 rounded-md px-4 font-medium disabled:opacity-60",n={primary:`${t} bg-primary text-primary-foreground hover:bg-primary-hover`,secondary:`${t} border border-border bg-card hover:bg-accent`,destructive:`${t} bg-destructive text-destructive-foreground`};e.s(["x",0,n,"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"])},94984,e=>{var t=e.i(43476);e.s(["f",0,function({state:e,testId:n}){switch(e.kind){case"idle":return null;case"done":return(0,t.jsx)("p",{role:"status","data-testid":n,className:"rounded-md border border-tone-ok-border bg-tone-ok-bg px-3 py-2 text-tone-ok-fg",children:e.message});case"refused":case"openNetwork":return(0,t.jsx)("p",{role:"alert","data-testid":n,className:"rounded-md border border-tone-attention-border bg-tone-attention-bg px-3 py-2 text-tone-attention-fg",children:e.message})}}])},58107,e=>{var t=e.i(43476),n=e.i(74080),r=e.i(30402);e.s(["f",0,function({children:e,pending:o,kind:d="primary",testId:i}){let s=(0,n.useFormStatus)();return(0,t.jsx)("button",{type:"submit",className:r.x[d],disabled:s.pending,"aria-busy":s.pending,"data-testid":i,children:s.pending?o:e})}])},97e3,e=>{var t=e.i(43476);let n={waiting:"border-tone-waiting-border bg-tone-waiting-bg text-tone-waiting-fg",active:"border-tone-active-border bg-tone-active-bg text-tone-active-fg",ok:"border-tone-ok-border bg-tone-ok-bg text-tone-ok-fg",attention:"border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg",ended:"border-tone-ended-border bg-tone-ended-bg text-tone-ended-fg"};e.s(["T",0,function({tone:e,label:r}){return(0,t.jsx)("span",{className:`inline-flex items-center rounded-full border px-2 text-caption ${n[e]}`,children:r})},"E",0,function({children:e,isMono:n=!1}){return(0,t.jsx)("span",{className:`inline-flex items-center rounded-md border border-border px-2 text-caption ${n?"font-mono":""}`,children:e})}])},17018,e=>{var t=e.i(43476),n=e.i(71645),r=e.i(28008),o=e.i(30402),d=e.i(94984),i=e.i(58107),s=e.i(95187);let a=(0,s.createServerReference)("60e8b657acd791f5c73f2f07d080770d28b4689ebc",s.callServer,void 0,s.findSourceMapURL,"switchOutsideParties");var c=e.i(97e3);e.s(["SwitchCard",0,function({isOn:e,canSwitch:s,fleetId:l}){let[u,b]=(0,n.useActionState)(a,r.Q);return(0,t.jsxs)("section",{className:`${o.r} grid gap-3`,"data-testid":"outside-parties-switch",children:[(0,t.jsxs)("h2",{className:"flex items-center gap-2 text-section font-semibold",children:["Outside parties are ",e?"on":"off"," ",e?(0,t.jsx)(c.T,{tone:"ok",label:"On"}):(0,t.jsx)(c.T,{tone:"ended",label:"Off"})]}),(0,t.jsx)("p",{className:"text-muted-foreground",children:e?"Approved outside MCP servers and clients reach the fleet, as its network rules allow.":"No outside MCP server or client reaches the fleet, and no request for one can be approved."}),"openNetwork"===u.kind?(0,t.jsxs)("form",{action:b,role:"alert",className:"grid gap-3 rounded-md border border-tone-attention-border bg-tone-attention-bg p-4 text-tone-attention-fg",children:[(0,t.jsx)("h3",{className:"font-semibold",children:"Open network"}),(0,t.jsx)("p",{children:u.message}),(0,t.jsx)("input",{type:"hidden",name:r.H,value:l}),(0,t.jsx)("input",{type:"hidden",name:"isOn",value:"true"}),(0,t.jsx)("input",{type:"hidden",name:"isOpenNetworkConfirmed",value:"true"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(i.f,{kind:"destructive",pending:"Turning on…",testId:"outside-parties-turn-on-anyway",children:"Turn on anyway"}),(0,t.jsx)("a",{className:o.x.secondary,href:"",children:"Keep off"})]})]}):s?(0,t.jsxs)("form",{action:b,children:[(0,t.jsx)("input",{type:"hidden",name:r.H,value:l}),(0,t.jsx)("input",{type:"hidden",name:"isOn",value:String(!e)}),(0,t.jsx)(i.f,{kind:e?"secondary":"primary",pending:e?"Turning off…":"Turning on…",testId:"outside-parties-turn",children:e?"Turn off":"Turn on"})]}):(0,t.jsxs)("p",{className:"text-muted-foreground",children:["Turning them on or off needs ","fleet:network","."]}),"openNetwork"===u.kind?null:(0,t.jsx)(d.f,{state:u})]})}],17018)}])})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70812,71136,96315,28623,e=>{var t=e.i(56420);let i={name:"bell",size:24,node:[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]};i.node;let n=(0,t.f)(i);e.s(["f",0,n],70812);let a={name:"hash",size:24,node:[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]};a.node;let s=(0,t.f)(a);e.s(["f",0,s],71136);let r={name:"mail",size:24,node:[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]};r.node;let d=(0,t.f)(r);e.s(["f",0,d],96315);let o={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};o.node;let l=(0,t.f)(o);e.s(["f",0,l],28623)},85595,e=>{var t=e.i(56420);let i={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};i.node;let n=(0,t.f)(i);e.s(["f",0,n],85595)},51481,e=>{var t=e.i(75043);e.s(["f",()=>t.f])},59381,e=>{var t=e.i(56420);let i={name:"hand",size:24,node:[["path",{d:"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2",key:"1fvzgz"}],["path",{d:"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2",key:"1kc0my"}],["path",{d:"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8",key:"10h0bg"}],["path",{d:"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",key:"1s1gnw"}]]};i.node;let n=(0,t.f)(i);e.s(["f",0,n],59381)},31785,e=>{let t={decide:{name:"Decide",holds:"Questions from your ships",item:"question",items:"questions"},do:{name:"Do what only you can",holds:"Steps: sign in, create, approve",item:"step",items:"steps"},"stay-aware":{name:"Stay aware",holds:"Alerts and notices",item:"alert or notice",items:"alerts and notices"},"everything-else":{name:"Everything else",holds:"Replies and other messages",item:"message",items:"messages"}},i={slack:"Slack",chat:"A chat","web-push":"Web push",email:"Email"},n=["decide","do"],a="Bridge keeps every item.",s={label:"Not offered",isOk:!1},r={label:"Off",isOk:!1},d="Says only that something waits, with a link here.",o=`${d} Nothing is on until you turn it on.`,l="through the gateway. Lists what waits when you ask it.",c={slack:"Slack",chat:"a chat","web-push":"web push",email:"email"};e.s(["I",0,t,"k",0,i,"N",0,["slack","chat","web-push","email"],"g",0,function(e){return 0===e.length?{state:{label:"Not connected",isOk:!1},description:`claude.ai or another MCP client, ${l}`,action:"none"}:{state:{label:"Connected",isOk:!0},description:`${new Intl.ListFormat("en",{type:"conjunction"}).format(e)}, ${l}`,action:"none"}},"t",0,function({isOffered:e,isOnForAnyJob:t}){return e?t?{state:{label:"On",isOk:!0},description:d,action:"turnOff"}:{state:r,description:o,action:"turnOn"}:{state:s,description:"This gateway sends no email.",action:"none"}},"T",0,function(e,t){return e.jobs.filter(({job:e,places:i})=>i.email!==t&&(!t||n.includes(e))).map(({job:e})=>({job:e,place:"email",isOn:t}))},"r",0,function(e){let t=["Bridge",...e.map(e=>c[e])],i=t.at(-1),n=1===t.length?"Bridge":`${t.slice(0,-1).join(", ")} and ${String(i)}`;return`Shows in ${n}, as Where things show sets for Decide. One answer, wherever you give it.`},"H",0,function(e){if(null===e)return{state:{label:"Not connected",isOk:!1},description:"This fleet has no Slack workspace.",action:"none"};let{workspaceName:t,link:i}=e;return null===i?{state:{label:"Not linked",isOk:!1},description:`Link your Slack account in ${t} to see items there and answer them.`,action:"link"}:{state:{label:"Linked",isOk:!0},description:`As @${i.slackName} in ${t}. A button press or a thread reply there is yours.`,action:"unlink"}},"b",0,function(e){let{job:n,place:s,isOn:r,waiting:d,isChatOn:o}=e,{name:l,item:c,items:h}=t[n],u=`${i[s]} is ${r?"on":"off"} for ${l}`;return r?"chat"===s?{title:u,detail:`A chat lists every ${c} not done when you ask it.`}:{title:u,detail:`${i[s]} shows ${h} that arrive from now on.${void 0===d||0===d?"":` The ${String(d)} already waiting ${1===d?"stays":"stay"} ${o?"in Bridge and in a chat":"in Bridge"}.`}`}:{title:u,detail:"everything-else"===n&&"slack"===s?`Bots only: a bot ship's messages and replies to Slack still show there. ${a}`:a}},"B",0,function(e){if(!e.isOffered)return{state:s,description:"This gateway sends no web push.",action:"none"};if(!e.isTaken)return{state:r,description:"This browser takes no web push.",action:"none"};let t=e.browsers.find(({endpoint:t,isGone:i})=>t===e.ownEndpoint&&!i);return void 0===t?{state:r,description:o,action:"turnOn"}:{state:{label:"This browser",isOk:!0},description:`${t.browser}. ${d}`,action:"remove"}}])},85989,e=>{var t=e.i(43476),i=e.i(30274),n=e.i(47130),a=e.i(29247),s=e.i(12497),r=e.i(17904),d=e.i(55070),o=e.i(19015),l=e.i(82022);function c({href:e,isOutside:i,children:n,...a}){return(0,t.jsxs)("a",{...a,href:e,...i?{target:"_blank",rel:"noopener noreferrer"}:{},className:`inline-flex items-center rounded-md border border-border bg-card text-card-foreground hover:bg-accent ${d.o.row}`,children:[(0,t.jsx)(l.f,{"aria-hidden":"true",className:"size-3.5"}),n]})}var h=e.i(3523),u=e.i(29039),m=e.i(75103);function g(e){let{stale:t,inBasket:i}=e;if(null===t&&null!==i)return null===i.option?"In the basket: the note alone":`In the basket: option ${String(i.option)}`;if(null===t)return"seen"===e.state?(0,s.M)(e.seenIn):void 0;let n=(0,a.f)(t,{from:e.from});return"withdrawn"===t.kind?`${n}: open it to clear it`:n}function p({item:e,opening:i}){let n=e.stale?.replacementId??null;return null===n?null:(0,t.jsx)(d.i,{"data-testid":"bridge-replacement",size:"row",isPending:i.openingId===n,pendingLabel:"Opening...",disabled:void 0!==i.openingId,onClick:()=>{i.open({deliveryId:n,job:e.job})},children:"do"===e.job?"Open the new step":"Open the new question"})}function b({item:e,opening:i}){return(0,t.jsx)(d.i,{"data-testid":"bridge-open",size:"row",isPending:i.openingId===e.deliveryId,pendingLabel:"Opening...",disabled:void 0!==i.openingId,onClick:()=>{i.open(e)},children:"Open"})}function f(){let e=(0,m.P)();return void 0===e?null:(0,t.jsxs)("button",{type:"button","data-testid":"bridge-send-message","aria-label":"Send a ship a message",onClick:()=>{e()},className:"inline-flex size-9 shrink-0 items-center justify-center gap-2 rounded-md border border-border bg-card font-semibold hover:bg-accent sm:w-auto sm:px-4",children:[(0,t.jsx)(i.f,{"aria-hidden":"true",className:"size-4"}),(0,t.jsx)("span",{className:"hidden sm:inline",children:"Send a ship a message"})]})}function x({item:e,opening:i}){let a=e.actInPlace;return a?.kind==="ownStep"?(0,t.jsx)(c,{"data-testid":"bridge-own-step",href:a.href,isOutside:!1,children:a.label}):(0,t.jsxs)(t.Fragment,{children:[a?.kind==="putPick"?(0,t.jsxs)(d.i,{"data-testid":"bridge-put-pick",variant:"primary",size:"row",isPending:i.puttingId===e.deliveryId,pendingLabel:"Putting...",disabled:void 0!==i.openingId||void 0!==i.puttingId,onClick:()=>{i.putPick(e,a.option)},children:[(0,t.jsx)(n.f,{"aria-hidden":"true",className:"size-3.5"}),"Put option ",a.option," in the basket"]}):null,a?.kind==="openLink"?(0,t.jsxs)(c,{"data-testid":"bridge-step-link",href:a.href,isOutside:!0,children:["Open ",a.host]}):null,(0,t.jsx)(p,{item:e,opening:i}),(0,t.jsx)(b,{item:e,opening:i})]})}function y(e,t){return void 0===t.openingId?()=>{t.open(e)}:void 0}function w({items:e,readAt:i,opening:n}){let a=void 0!==n.opened;return(0,t.jsx)("ul",{className:a?"border-t border-border":"overflow-hidden rounded-lg border border-border bg-card",children:e.map(e=>(0,t.jsx)(o.f,{item:e,now:i,isNew:"new"===e.state,isOpen:n.opened?.deliveryId===e.deliveryId,staleKind:e.stale?.kind,outcome:g(e),failure:n.failure?.deliveryId===e.deliveryId?n.failure.message:void 0,onOpen:y(e,n),actions:a?void 0:(0,t.jsx)(x,{item:e,opening:n})},e.deliveryId))})}function j({items:e,readAt:i,opening:n}){return(0,t.jsx)("ul",{className:void 0===n.opened?"overflow-hidden rounded-lg border border-border bg-card":"border-t border-border",children:e.map(e=>(0,t.jsx)(o.f,{item:e,now:i,isNew:"new"===e.state,isOpen:n.opened?.deliveryId===e.deliveryId,outcome:void 0,failure:n.failure?.deliveryId===e.deliveryId?n.failure.message:void 0,onOpen:y(e,n)},e.deliveryId))})}function v({home:e,readAt:i,opening:n,isStayAware:a}){let{waiting:s,stayAware:r}=e;return a?(0,t.jsxs)("section",{"aria-labelledby":"bridge-stay-aware-heading",children:[(0,t.jsxs)("div",{className:"flex items-baseline justify-between gap-3 px-3 py-2.5",children:[(0,t.jsx)("h2",{id:"bridge-stay-aware-heading",className:"font-semibold",children:"Stay aware"}),(0,t.jsxs)("span",{className:"text-caption text-muted-foreground",children:[r.filter(({state:e})=>"new"===e).length," unseen"]})]}),(0,t.jsx)(j,{items:r,readAt:i,opening:n})]}):(0,t.jsxs)("section",{"aria-labelledby":"bridge-waiting-heading",children:[(0,t.jsxs)("h1",{id:"bridge-waiting-heading",className:"px-3 py-2.5 font-semibold",children:["Waiting on you ",(0,t.jsx)("span",{"data-testid":"bridge-count",className:"text-tone-waiting-fg",children:s.count})]}),(0,t.jsx)(w,{items:s.items,readAt:i,opening:n})]})}function k({home:e,now:i,opening:n,argo:a}){let s,r,d,{waiting:o,stayAware:l}=e,c=new Date(i);return void 0!==n.opened?(0,t.jsx)(v,{home:e,readAt:c,opening:n,isStayAware:"stay-aware"===n.opened.job}):(0,t.jsxs)("div",{className:"grid gap-8",children:[(0,t.jsxs)("section",{className:"grid gap-3","aria-labelledby":"bridge-waiting-heading",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("h1",{id:"bridge-waiting-heading",className:"text-heading font-semibold",children:["Waiting on you ",(0,t.jsx)("span",{"data-testid":"bridge-count",className:"text-tone-waiting-fg",children:o.count})]}),(0,t.jsx)("p",{className:"text-muted-foreground",children:0===o.count?"Nothing waits on you.":(r=(s=o.items.filter(({stale:e})=>null===e)).filter(({job:e})=>"decide"===e).length,d=s.filter(({job:e})=>"do"===e).length,`${String(r)} to decide, ${String(d)} to do. Newest on top; nothing else is in this count.`)})]}),(0,t.jsx)(f,{})]}),0===o.items.length?(0,t.jsxs)("div",{"data-testid":"bridge-nothing-waits",className:"grid justify-items-center gap-1 rounded-lg border border-border bg-card p-6 text-center",children:[(0,t.jsx)("span",{className:"font-semibold",children:"Nothing waits on you"}),(0,t.jsx)("span",{className:"text-muted-foreground",children:"Your ships have what they need from you. A question or a step shows here the moment one arrives."})]}):(0,t.jsx)(w,{items:o.items,readAt:c,opening:n})]}),a,(0,t.jsxs)("section",{className:"grid gap-3","aria-labelledby":"bridge-stay-aware-heading",children:[(0,t.jsxs)("div",{className:"flex items-baseline justify-between gap-3",children:[(0,t.jsx)("h2",{id:"bridge-stay-aware-heading",className:"text-section font-semibold",children:"Stay aware"}),(0,t.jsxs)("span",{className:"text-caption text-muted-foreground",children:[l.filter(({state:e})=>"new"===e).length," unseen, outside the count"]})]}),0===l.length?(0,t.jsx)("p",{"data-testid":"bridge-nothing-new",className:"rounded-md border border-border bg-card p-3 text-muted-foreground",children:"Nothing new. What you saw is in Done."}):(0,t.jsx)(j,{items:l,readAt:c,opening:n})]})]})}function N({items:e,lastReadAt:i}){let n=new Date(i);return(0,t.jsxs)("section",{className:"grid gap-3","aria-label":"Waiting on you, as last read",children:[0===e.length?null:(0,t.jsx)("ul",{inert:!0,className:"overflow-hidden rounded-lg border border-border bg-card opacity-60",children:e.map(e=>(0,t.jsx)(o.f,{item:e,now:n,isNew:"new"===e.state,isOpen:!1,staleKind:e.stale?.kind,outcome:g(e),failure:void 0,onOpen:void 0},e.deliveryId))}),(0,t.jsx)("p",{className:"text-caption text-muted-foreground",children:`Shown as last read, at ${(0,r.C)(i)}.`})]})}e.s(["HomePanel",0,function({fleetId:e,home:i,now:n,decidePlaces:a,argo:s}){let r=(0,u.useLastReadAt)();return void 0!==r?(0,t.jsx)(N,{items:i.waiting.items,lastReadAt:r}):(0,t.jsx)(h.f,{fleetId:e,decidePlaces:a,children:e=>(0,t.jsx)(k,{home:i,now:n,opening:e,argo:s})})},"StayAwareRows",0,j],85989)},63666,e=>{var t=e.i(43476),i=e.i(17904),n=e.i(29039);e.s(["LastReadHeading",0,function(){let e=(0,n.useLastReadAt)();return void 0===e?null:(0,t.jsxs)("div",{className:"max-sm:hidden",children:[(0,t.jsx)("h1",{id:"bridge-waiting-heading",className:"text-heading font-semibold",children:"Waiting on you"}),(0,t.jsx)("p",{className:"text-muted-foreground","data-testid":"bridge-last-read",children:`Last read ${(0,i.C)(e)}`})]})}])},19015,e=>{var t=e.i(43476),i=e.i(70812),n=e.i(71136),a=e.i(96315),s=e.i(49287),r=e.i(28623),d=e.i(12497),o=e.i(91604),l=e.i(63132),c=e.i(779);let h={bridge:{icon:s.f,name:"Bridge"},slack:{icon:n.f,name:"Slack"},chat:{icon:r.f,name:"a chat"},"web-push":{icon:i.f,name:"web push"},email:{icon:a.f,name:"email"}};function u(){return(0,t.jsx)("span",{"aria-hidden":"true",className:"text-border",children:"·"})}function m({places:e}){var i;let n,a=["bridge",...e].map(e=>h[e]);return(0,t.jsx)("span",{role:"img","aria-label":`Shows in ${(n=(i=a.map(({name:e})=>e)).at(-1)??"",i.length<2?n:`${i.slice(0,-1).join(", ")} and ${n}`)}`,className:"inline-flex items-center gap-0.5",children:a.map(({icon:e,name:i})=>(0,t.jsx)(e,{"aria-hidden":"true",className:"size-3"},i))})}e.s(["f",0,function({item:e,now:i,isNew:n,isOpen:a=!1,staleKind:s,outcome:r,failure:h,onOpen:g,time:p,detail:b,actions:f}){var x;let y=e.isAlert??!1,w=(0,o.f)({job:e.job,isAlert:y}),j=w.icon,v="min-w-0 break-words text-left text-body-touch font-medium sm:truncate sm:text-body",k=void 0===s?e.title:(0,t.jsx)("s",{className:"decoration-muted-foreground",children:e.title});return(0,t.jsxs)("li",{"data-testid":"bridge-item","data-stale":void 0!==s,"aria-current":!!a||void 0,className:`grid min-w-0 grid-cols-[1rem_minmax(0,1fr)_auto] items-start gap-x-2.5 gap-y-1.5 border-t border-border px-3 py-2.5 first:border-t-0 ${function({isOpen:e,isStale:t}){return e?"bg-highlight shadow-[inset_2px_0_0_var(--primary)]":t?"bg-muted":""}({isOpen:a,isStale:void 0!==s})}`,children:[(0,t.jsx)(j,{"aria-hidden":"true",className:`mt-0.5 size-4 ${w.tone}`}),(0,t.jsxs)("span",{className:"flex min-w-0 flex-col gap-0.5",children:[(0,t.jsxs)("span",{className:"flex min-w-0 items-baseline sm:items-center",children:[n?(0,t.jsx)("span",{"aria-label":"New",className:"mr-1.5 size-[7px] shrink-0 -translate-y-px rounded-full bg-primary"}):null,void 0===g?(0,t.jsx)("span",{"data-testid":"bridge-item-title",className:v,children:k}):(0,t.jsx)("button",{type:"button","data-testid":"bridge-item-title",onClick:g,className:`${v} hover:underline`,children:k})]}),(0,t.jsxs)("span",{className:"flex flex-wrap items-center gap-1.5 text-caption text-muted-foreground",children:[(0,t.jsx)("span",{className:`font-medium ${w.tone}`,children:(0,d.z)({job:e.job,isAlert:y})}),(0,t.jsx)(u,{}),(0,t.jsx)("span",{children:e.from}),void 0===r?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u,{}),(0,t.jsxs)("span",{"data-testid":"bridge-outcome",className:"inline-flex items-center gap-1.5",children:[void 0===s?null:(0,t.jsx)(c.f,{kind:s}),r]})]}),void 0===e.places?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u,{}),(0,t.jsx)(m,{places:e.places})]})]})]}),(0,t.jsx)("time",{dateTime:p?.at??e.sentAt,title:(x=p?.at??e.sentAt,`${new Date(x).toISOString().slice(0,16).replace("T"," ")} UTC`),className:"whitespace-nowrap text-right text-caption text-muted-foreground",children:p?.said??(0,d.V)(e.sentAt,i)}),void 0===b?null:(0,t.jsx)("div",{className:"col-span-2 col-start-2",children:b}),null==f?null:(0,t.jsx)("div",{className:"col-span-2 col-start-2 flex flex-wrap items-center gap-1.5",children:f}),void 0===h?null:(0,t.jsx)("div",{className:"col-span-2 col-start-2",children:(0,t.jsx)(l.f,{message:h,isFailure:!0})})]})}])},63132,e=>{var t=e.i(43476);e.s(["f",0,function({message:e,isFailure:i}){return i?(0,t.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:e}):(0,t.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:e})}])}])})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,15685,e=>{var t=e.i(43476),i=e.i(85595),d=e.i(16984),s=e.i(71645),r=e.i(95187);let a=(0,r.createServerReference)("609a5ac69aa505e32ba8526374707f2533926942f8",r.callServer,void 0,r.findSourceMapURL,"readMoreRecord");var n=e.i(12497),o=e.i(55070),l=e.i(29247),c=e.i(54235),m=e.i(92407);function u({question:e,answered:i}){return(0,t.jsx)("ul",{className:"grid gap-2","aria-label":"Options",children:e.options.map(d=>{let s=d.key===i;return(0,t.jsxs)("li",{"data-answered":s,className:`flex items-start gap-3 rounded-md border p-3 ${s?"border-ring ring-1 ring-ring":"border-border text-muted-foreground"}`,children:[(0,t.jsx)("span",{"data-testid":"bridge-done-radio","data-filled":s,"aria-hidden":"true",className:`mt-1 grid size-4 shrink-0 place-items-center rounded-full border ${s?"border-primary":"border-border"}`,children:s?(0,t.jsx)("span",{className:"size-2 rounded-full bg-primary"}):null}),(0,t.jsxs)("span",{className:"grid flex-1 gap-0.5",children:[(0,t.jsxs)("span",{className:"font-medium",children:[d.key,". ",d.label]}),""===d.detail?null:(0,t.jsx)("span",{className:"text-caption text-muted-foreground max-md:hidden",children:d.detail})]}),d.key===e.pick.option?(0,t.jsx)("span",{className:"rounded-sm border border-border px-1.5 text-caption",children:"Their pick"}):null]},d.key)})})}function x({ended:e}){let s=e.isOk?i.f:d.f;return(0,t.jsxs)("div",{"data-testid":"bridge-done-ended",role:"status",className:`flex items-start gap-3 rounded-md border p-3 ${e.isOk?"border-tone-ok-border bg-tone-ok-bg":"border-tone-ended-border bg-tone-ended-bg"}`,children:[(0,t.jsx)(s,{"aria-hidden":!0,className:`mt-0.5 size-4 shrink-0 ${e.isOk?"text-tone-ok-fg":"text-tone-ended-fg"}`}),(0,t.jsxs)("span",{className:"grid gap-0.5",children:[(0,t.jsx)("span",{className:"font-medium",children:e.text}),void 0===e.sent?null:(0,t.jsx)("span",{className:"text-caption text-muted-foreground",children:e.sent})]})]})}function g({item:e,timeZone:i}){return(0,t.jsx)("ol",{"data-testid":"bridge-done-history",className:"grid gap-1.5 text-caption max-md:hidden",children:(0,n.L)(e,i).map(e=>(0,t.jsxs)("li",{className:"grid grid-cols-[3rem_0.5rem_minmax(0,1fr)] items-center gap-2",children:[(0,t.jsx)("span",{className:"text-muted-foreground tabular-nums",children:e.at}),(0,t.jsx)("i",{"aria-hidden":"true",className:`size-1.5 rounded-full ${e.isEnd?"bg-tone-ok-fg":"bg-border"}`}),(0,t.jsxs)("span",{children:[e.text,void 0===e.detail?null:(0,t.jsxs)("span",{className:"text-muted-foreground",children:[" · ",e.detail]})]})]},`${e.at} ${e.text}`))})}function p({item:e,timeZone:i,bridgeHost:d,onBack:s}){let r=(0,l.N)(e),a=(0,l.R)(e,d),o=(0,n.d)(e,i),h={job:e.job,isAlert:e.isAlert,wasNew:!1};return(0,t.jsxs)("section",{"data-testid":"bridge-done-item",className:"grid min-w-0 content-start gap-3 text-card-foreground md:p-5",children:[(0,t.jsx)(c.g,{opened:h,title:(0,n.c)(e),isWorking:!1,onBack:s}),(0,t.jsx)(c.$,{delivery:e,opened:h,timeZone:i}),(0,t.jsx)("h2",{className:"text-heading font-semibold",children:r?.title??e.title}),void 0!==a?(0,t.jsx)(c.l,{step:a,isStale:!1,isFinished:!0}):void 0===r?(0,t.jsx)(m.f,{text:(0,l.Y)(e)}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:c.R,children:(0,t.jsx)(m.f,{text:r.context})}),(0,t.jsx)(u,{question:r,answered:e.outcome?.option??null})]}),void 0===o?null:(0,t.jsx)(x,{ended:o}),(0,t.jsx)(g,{item:e,timeZone:i})]})}var h=e.i(19015),f=e.i(62579),b=e.i(63132);function j(){return()=>void 0}function v(e){return e.outcome?.at??e.sentAt}function N({item:e}){let s=(0,n.o)(e),r=s.isOk?i.f:d.f;return(0,t.jsxs)("span",{"data-testid":"bridge-done-outcome",className:"flex items-start gap-1.5 text-caption",children:[(0,t.jsx)(r,{"aria-hidden":"true",className:`mt-0.5 size-3.5 shrink-0 ${s.isOk?"text-tone-ok-fg":"text-muted-foreground"}`}),s.text]})}e.s(["DonePanel",0,function({fleetId:e,first:i,now:d}){let r=new Date(d),l=(0,s.useSyncExternalStore)(j,()=>Intl.DateTimeFormat().resolvedOptions().timeZone,()=>"UTC"),[c,m]=(0,s.useState)(i.items),[u,x]=(0,s.useState)(i.nextCursor),[g,k]=(0,s.useState)(),[y,w]=(0,s.useState)(),[O,S]=(0,s.useTransition)(),$=c.find(({deliveryId:e})=>e===y);return(0,t.jsx)(f.f,{list:(0,t.jsxs)("section",{className:"grid gap-3","aria-labelledby":"bridge-done-heading",children:[(0,t.jsxs)("div",{className:void 0===$?"":"md:px-3 md:pt-3",children:[(0,t.jsx)("h1",{id:"bridge-done-heading",className:"text-heading font-semibold",children:"Done"}),(0,t.jsx)("p",{className:"text-muted-foreground",children:"Everything that reached you, with what came of it and where. Opening one reads it back whole."})]}),0===c.length?(0,t.jsx)("p",{"data-testid":"bridge-record-empty",className:"rounded-md border border-border bg-card p-3 text-muted-foreground",children:"Nothing is done yet."}):(function(e,t){let i=[];for(let d of e){let e=(0,n.Y)(v(d),t),s=i.at(-1);s?.day===e?s.items.push(d):i.push({day:e,items:[d]})}return i})(c,{now:r,timeZone:l}).map(({day:e,items:i})=>(0,t.jsxs)("div",{className:"grid gap-1.5",children:[(0,t.jsx)("h2",{className:`text-caption text-muted-foreground ${void 0===$?"":"md:px-3"}`,children:e}),(0,t.jsx)("ul",{className:"overflow-hidden rounded-lg border border-border bg-card",children:i.map(e=>(0,t.jsx)(h.f,{item:e,now:r,isNew:!1,isOpen:e.deliveryId===y,outcome:void 0,failure:void 0,time:{at:v(e),said:(0,n.Z)(v(e),l)},detail:(0,t.jsx)(N,{item:e}),onOpen:()=>{w(e.deliveryId)}},e.deliveryId))})]},e)),void 0===g?null:(0,t.jsx)(b.f,{message:g,isFailure:!0}),null===u?null:(0,t.jsx)(o.i,{"data-testid":"bridge-more",className:"justify-self-start",isPending:O,pendingLabel:"Reading...",onClick:()=>{k(void 0),S(async()=>{let t=await a(e,u);t.isOk?(m(e=>[...e,...t.value.items]),x(t.value.nextCursor)):k(t.message)})},children:"Show older"})]}),item:void 0===$?void 0:(0,t.jsx)(p,{item:$,timeZone:l,bridgeHost:window.location.host,onBack:()=>{w(void 0)}})})}],15685)},94528,e=>{var t=e.i(43476),i=e.i(17904),d=e.i(29039);e.s(["FadedAsLastRead",0,function({children:e}){let s=(0,d.useLastReadAt)();return void 0===s?e:(0,t.jsxs)("div",{className:"grid gap-3",children:[(0,t.jsx)("div",{inert:!0,className:"opacity-60 [&_button:not([data-testid=bridge-item-title])]:hidden",children:e}),(0,t.jsx)("p",{className:"text-caption text-muted-foreground",children:`Shown as last read, at ${(0,i.C)(s)}.`})]})}])}])})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[26323,8821,56736,25834,35890,64938,80829,6640,10199,64951,66250,77173,13488,28376,9977,41708,93480,e=>{var t=e.i(71645),n=e.i(33332);let i=t.createContext(void 0);function r(e){let r=t.useContext(i);if(!e&&void 0===r)throw Error((0,n.f)(27));return r}e.s(["R",0,i,"x",0,r],8821);var a=e.i(52245),s=e.i(79938);let o=t.forwardRef(function(e,t){let{render:n,className:i,style:o,forceRender:l=!1,...d}=e,c=r(),u=c.useState("open"),p=c.useState("nested"),f=c.useState("mounted"),g=c.useState("transitionStatus");return(0,a.a)("div",e,{state:{open:u,transitionStatus:g},ref:[c.context.backdropRef,t],stateAttributesMapping:s.M,props:[{role:"presentation",hidden:!f,style:{userSelect:"none",WebkitUserSelect:"none"}},d],enabled:l||!p})});var l=e.i(40886),d=e.i(75606),c=e.i(57749);let u=t.forwardRef(function(e,t){let{render:n,className:i,style:s,disabled:o=!1,nativeButton:u=!0,...p}=e,f=r(),g=f.useState("open"),{getButtonProps:m,buttonRef:h}=(0,l.f)({disabled:o,native:u});return(0,a.a)("button",e,{state:{disabled:o},ref:[t,h],props:[{onClick:function(e){g&&f.setOpen(!1,(0,d.j)(c.f.closePress,e.nativeEvent))}},p,m]})});e.s(["f",0,u],56736);var p=e.i(88015);let f=t.forwardRef(function(e,t){let{render:n,className:i,style:s,id:o,...l}=e,d=r(),c=(0,p.f)(o);return d.useSyncedValueWithCleanup("descriptionElementId",c),(0,a.a)("p",e,{ref:t,props:[{id:c},l]})});var g=e.i(61487);let m=t.createContext(void 0);function h(){let e=t.useContext(m);if(void 0===e)throw Error((0,n.f)(26));return e}e.s(["_",0,m,"Z",0,h],25834);var b=e.i(37584),v=e.i(73327),x=e.i(64111),y=e.i(74354),k=e.i(38380);e.s(["f",0,k],35890);var k=k,w=k;e.s(["f",0,w],64938);var w=k,S=k;e.s(["f",0,S],80829);var S=k,j=k;e.s(["f",0,j],6640);var j=k;k.open,w.closed,S.startingStyle,j.endingStyle;let O={...s.E,...y.f,nestedDialogOpen:e=>e?{"data-nested-dialog-open":""}:null};e.s(["f",0,O],10199);var C=e.i(43476);let P=t.forwardRef(function(e,t){let{render:n,className:i,style:s,finalFocus:o,initialFocus:l,...d}=e,c=r(),u=c.useState("descriptionElementId"),p=c.useState("disablePointerDismissal"),f=c.useState("floatingRootContext"),m=c.useState("popupProps"),y=c.useState("modal"),k=c.useState("mounted"),w=c.useState("nested"),S=c.useState("nestedOpenDialogCount"),j=c.useState("open"),P=c.useState("openMethod"),R=c.useState("titleElementId"),N=c.useState("transitionStatus"),T=c.useState("role"),I=f.useState("floatingId");h(),(0,b.f)({open:j,ref:c.context.popupRef,onComplete(){j&&c.context.onOpenChangeComplete?.(!0)}});let $=void 0===l?(0,x.H)(c.context.popupRef):l,E=c.useStateSetter("popupElement"),M=(0,a.a)("div",e,{state:{open:j,nested:w,transitionStatus:N,nestedDialogOpen:S>0},props:[m,{id:I,"aria-labelledby":R,"aria-describedby":u,role:T,...x.X,hidden:!k,onKeyDown(e){v.f.has(e.key)&&e.stopPropagation()},style:{"--nested-dialogs":S}},d],ref:[t,c.context.popupRef,E],stateAttributesMapping:O});return(0,C.jsx)(g.f,{context:f,openInteractionType:P,disabled:!k,closeOnFocusOut:!p,initialFocus:$,returnFocus:o,modal:!1!==y,restoreFocus:"popup",children:M})});var R=e.i(44394),N=e.i(26674),T=e.i(426);let I=t.forwardRef(function(e,t){let{keepMounted:n=!1,...i}=e,a=r(),s=a.useState("mounted"),o=a.useState("modal"),l=a.useState("open");return s||n?(0,C.jsx)(m.Provider,{value:n,children:(0,C.jsxs)(N.r,{ref:t,...i,children:[s&&!0===o&&(0,C.jsx)(T.f,{ref:a.context.internalBackdropRef,inert:(0,R.f)(!l)}),e.children]})}):null});e.s(["f",0,I],64951);var $=e.i(96499),E=e.i(46376),M=e.i(45484),D=e.i(17989),A=e.i(84446);function U({store:e,parentContext:n,isDrawer:i}){let r=e.useState("open"),a=e.useState("mounted"),s=e.useState("disablePointerDismissal"),o=e.useState("modal"),l=e.useState("popupElement"),d=e.useState("floatingRootContext"),[c,u]=t.useState(0),[p,f]=t.useState(0),g=0===c,m=(0,D.f)(d,{outsidePressEvent:()=>e.context.internalBackdropRef.current||e.context.backdropRef.current?"intentional":{mouse:"trap-focus"===o?"sloppy":"intentional",touch:"sloppy"},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||"button"in t&&0!==t.button)return!1;if("touches"in t){if("touchend"===t.type){if(1!==t.changedTouches.length||0!==t.touches.length)return!1}else if(1!==t.touches.length)return!1}let n=(0,A.Z)(t);if(g&&!s){if(o){let t=e.context.internalBackdropRef.current,i=e.context.backdropRef.current;return!t&&!i||t===n||i===n||(0,A.I)(n,l)&&!n?.hasAttribute("data-base-ui-portal")}return!0}return!1},escapeKey:g});return(0,M.f)(r&&!0===o,l),e.useContextCallback("onNestedDialogOpen",(t,n)=>{(e.select("open")||e.select("mounted"))&&(u(t),f(n))}),(0,E.f)(()=>{r||a||(u(0),f(0))},[r,a]),(0,E.f)(()=>(n?.onNestedDialogOpen&&r&&n.onNestedDialogOpen(c+1,p+ +!!i),()=>{n?.onNestedDialogOpen&&r&&n.onNestedDialogOpen(0,0)}),[i,r,c,p,n]),(0,x.y)(e,{activeTriggerProps:m.reference,inactiveTriggerProps:m.trigger,popupProps:m.floating,nestedOpenDialogCount:c,nestedOpenDrawerCount:p}),null}var z=e.i(1252),B=e.i(16786),L=e.i(90627);let W={...B.j,modal:e=>e.modal,nested:e=>e.nested,nestedOpenDialogCount:e=>e.nestedOpenDialogCount,nestedOpenDrawerCount:e=>e.nestedOpenDrawerCount,disablePointerDismissal:e=>e.disablePointerDismissal,openMethod:e=>e.openMethod,descriptionElementId:e=>e.descriptionElementId,titleElementId:e=>e.titleElementId,viewportElement:e=>e.viewportElement,role:e=>e.role};class F extends z.f{constructor(e,n,i){var r;let a=new L.f;super(function(e,t,n,i=!1){return{...(0,B.i)(t,n,i),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...e}}(e,a,n,i),(r=a,{popupRef:t.createRef(),backdropRef:t.createRef(),internalBackdropRef:t.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:r,onOpenChange:void 0,onOpenChangeComplete:void 0}),W)}setOpen=(e,t)=>{t.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},e||null!=t.trigger||null==this.state.activeTriggerId||(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled||(this.state.floatingRootContext.dispatchOpenChange(e,t),this.update((0,x.z)(this.state,e,t.trigger)))}}var q=e.i(68765);function K(e,n){let{children:a,open:s,defaultOpen:o=!1,onOpenChange:l,onOpenChangeComplete:c,disablePointerDismissal:u=!1,modal:p=!0,actionsRef:f,handle:g,triggerId:m,defaultTriggerId:h=null}=n,b="alert-dialog"===e,v=r(!0),y={modal:!!b||p,disablePointerDismissal:b||u,nested:null!=v,role:b?"alertdialog":"dialog"},k=(0,x.$)((e,t)=>new F({open:o,openProp:s,activeTriggerId:h,triggerIdProp:m,...y},e,t),!0);k.useControlledProp("openProp",s),k.useControlledProp("triggerIdProp",m),k.useSyncedValues(y),k.useContextCallback("onOpenChange",l),k.useContextCallback("onOpenChangeComplete",c);let w=k.useState("open"),S=k.useState("mounted"),j=k.useState("payload");(0,x.e)(k,w),(0,x._)(k);let{forceUnmount:O}=(0,x.L)(w,k);t.useImperativeHandle(f,()=>({unmount:O,close:()=>k.setOpen(!1,(0,d.j)(q.f.imperativeAction))}),[O,k]);let P=w||S||null!=g;return(0,C.jsxs)(i.Provider,{value:k,children:[g&&(0,C.jsx)(x.d,{handle:g,store:k}),P&&(0,C.jsx)(U,{store:k,parentContext:v?.context,isDrawer:"drawer"===e}),"function"==typeof a?a({payload:j}):a]})}e.s(["f",0,K],66250);let V=(0,$.U)(function(e){return K("dialog",e)}),_=t.forwardRef(function(e,t){let{render:n,className:i,style:s,id:o,...l}=e,d=r(),c=(0,p.f)(o);return d.useSyncedValueWithCleanup("titleElementId",c),(0,a.a)("h2",e,{ref:t,props:[{id:c},l]})});e.s(["f",0,_],77173);var H=e.i(38396),J=e.i(59636),Y=e.i(85689),X=e.i(32199);let Z=(0,$.u)(function(e,i){let{render:o,className:d,style:c,disabled:u=!1,nativeButton:f=!0,id:g,payload:m,handle:h,...b}=e,v=r(!0),y=(0,J.f)(h)??v;if(!y)throw Error((0,n.f)(79));let k=(0,p.f)(g),w=y.useState("floatingRootContext"),S=y.useState("isOpenedByTrigger",k),j=y.useState("triggerPopupId",k),O=t.useRef(null),{registerTrigger:C,isMountedByThisTrigger:P}=(0,x.F)(k,O,y,{payload:m}),{getButtonProps:R,buttonRef:N}=(0,l.f)({disabled:u,native:f}),T=(0,Y.f)(w),I=(0,X.p)(()=>y.select("open"),e=>{y.set("openMethod",e)}),$=y.useState("triggerProps",P);return(0,a.a)("button",e,{state:{disabled:u,open:S},ref:[N,i,C,O],props:[T.reference,$,I,{[H.j]:"",id:k,"aria-haspopup":"dialog","aria-expanded":S,"aria-controls":j},b,R],stateAttributesMapping:s.J})});e.s(["f",0,Z],13488),e.s(["Backdrop",0,o,"Close",0,u,"Description",0,f,"Popup",0,P,"Portal",0,I,"Root",0,V,"Title",0,_,"Trigger",0,Z],28376);var Q=e.i(28376);e.s(["f",0,Q],26323),e.s(["f",0,Q],9977),e.s(["f",0,Q],41708),e.s(["f",0,Q],93480)},9169,52744,e=>{var t=e.i(28376);e.s(["f",0,t],9169),e.s(["f",0,t],52744)},73327,e=>{let t=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End"]);e.s(["f",0,t])},78680,e=>{e.i(47167);var t=e.i(71645),n=e.i(74080),i=e.i(26674),r=e.i(43476);let a=t.forwardRef(function(e,a){let{children:s,container:o,className:l,render:d,style:c,...u}=e,{node:p,subtree:f}=(0,i.o)({container:o,ref:a,componentProps:e,elementProps:u});return f||p?(0,r.jsxs)(t.Fragment,{children:[f,p&&n.createPortal(s,p)]}):null});e.s(["f",0,a])},16786,59636,e=>{var t=e.i(56789),n=e.i(56341);let i=e=>e.triggerIdProp??e.activeTriggerId,r=e=>e.openProp??e.open,a=e=>(e.popupElement?.id??e.floatingId)||void 0;function s(e,t){return void 0!==t&&r(e)&&i(e)===t}e.s(["i",0,function(e,i,r=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new n.f({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:i,syncOnly:!0,nested:r,onOpenChange:void 0}),floatingId:i,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,openedWithoutTrigger:!1,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:t.w,inactiveTriggerProps:t.w,popupProps:t.w}},"j",0,{open:r,mounted:e=>e.mounted,transitionStatus:e=>r(e)&&!e.mounted?"starting":e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:i,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:a,isTriggerActive:(e,t)=>void 0!==t&&i(e)===t,isOpenedByTrigger:(e,t)=>s(e,t),isMountedByTrigger:(e,t)=>void 0!==t&&i(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>s(e,t)||void 0!==t&&r(e)&&null==i(e)&&!e.openedWithoutTrigger&&1===e.triggerCount?a(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement}],16786);var o=e.i(71645),l=e.i(2239);e.s(["f",0,function(e){let n=o.useCallback(n=>void 0===e?t.x:e.subscribeStore(n),[e]),i=o.useCallback(()=>void 0===e?void 0:e.store,[e]);return(0,l.useSyncExternalStore)(n,i,()=>e?.serverStore)}],59636)},70812,71136,96315,28623,e=>{var t=e.i(56420);let n={name:"bell",size:24,node:[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]};n.node;let i=(0,t.f)(n);e.s(["f",0,i],70812);let r={name:"hash",size:24,node:[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]};r.node;let a=(0,t.f)(r);e.s(["f",0,a],71136);let s={name:"mail",size:24,node:[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]};s.node;let o=(0,t.f)(s);e.s(["f",0,o],96315);let l={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};l.node;let d=(0,t.f)(l);e.s(["f",0,d],28623)},85595,e=>{var t=e.i(56420);let n={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};n.node;let i=(0,t.f)(n);e.s(["f",0,i],85595)},51481,e=>{var t=e.i(75043);e.s(["f",()=>t.f])},59381,e=>{var t=e.i(56420);let n={name:"hand",size:24,node:[["path",{d:"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2",key:"1fvzgz"}],["path",{d:"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2",key:"1kc0my"}],["path",{d:"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8",key:"10h0bg"}],["path",{d:"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",key:"1s1gnw"}]]};n.node;let i=(0,t.f)(n);e.s(["f",0,i],59381)},95187,(e,t,n)=>{Object.defineProperty(n,"__esModule",{value:!0});var i={callServer:function(){return a.callServer},createServerReference:function(){return o.createServerReference},findSourceMapURL:function(){return s.findSourceMapURL}};for(var r in i)Object.defineProperty(n,r,{enumerable:!0,get:i[r]});let a=e.r(32120),s=e.r(92245),o=e.r(35326)},55177,31714,e=>{var t=e.i(95187);let n=(0,t.createServerReference)("40539b9dd02cbeb747d537f17ad3afbeb5fa086c7e",t.callServer,void 0,t.findSourceMapURL,"turnRoute");e.s(["f",0,n],55177);var i=e.i(70812),r=e.i(51481),a=e.i(59381),s=e.i(71136),o=e.i(96315),l=e.i(56420);let d={name:"message-circle-question-mark",size:24,node:[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["message-circle-question"]};d.node;let c=(0,l.f)(d);var u=e.i(49287),p=e.i(28623);let f={decide:{Icon:r.f,tone:"text-tone-active-fg"},do:{Icon:a.f,tone:"text-tone-waiting-fg"},"stay-aware":{Icon:i.f,tone:"text-muted-foreground"},"everything-else":{Icon:c,tone:"text-muted-foreground"}},g=u.f,m={slack:s.f,chat:p.f,"web-push":i.f,email:o.f};e.s(["x",0,g,"c",0,f,"U",0,m],31714)},31785,e=>{let t={decide:{name:"Decide",holds:"Questions from your ships",item:"question",items:"questions"},do:{name:"Do what only you can",holds:"Steps: sign in, create, approve",item:"step",items:"steps"},"stay-aware":{name:"Stay aware",holds:"Alerts and notices",item:"alert or notice",items:"alerts and notices"},"everything-else":{name:"Everything else",holds:"Replies and other messages",item:"message",items:"messages"}},n={slack:"Slack",chat:"A chat","web-push":"Web push",email:"Email"},i=["decide","do"],r="Bridge keeps every item.",a={label:"Not offered",isOk:!1},s={label:"Off",isOk:!1},o="Says only that something waits, with a link here.",l=`${o} Nothing is on until you turn it on.`,d="through the gateway. Lists what waits when you ask it.",c={slack:"Slack",chat:"a chat","web-push":"web push",email:"email"};e.s(["I",0,t,"k",0,n,"N",0,["slack","chat","web-push","email"],"g",0,function(e){return 0===e.length?{state:{label:"Not connected",isOk:!1},description:`claude.ai or another MCP client, ${d}`,action:"none"}:{state:{label:"Connected",isOk:!0},description:`${new Intl.ListFormat("en",{type:"conjunction"}).format(e)}, ${d}`,action:"none"}},"t",0,function({isOffered:e,isOnForAnyJob:t}){return e?t?{state:{label:"On",isOk:!0},description:o,action:"turnOff"}:{state:s,description:l,action:"turnOn"}:{state:a,description:"This gateway sends no email.",action:"none"}},"T",0,function(e,t){return e.jobs.filter(({job:e,places:n})=>n.email!==t&&(!t||i.includes(e))).map(({job:e})=>({job:e,place:"email",isOn:t}))},"r",0,function(e){let t=["Bridge",...e.map(e=>c[e])],n=t.at(-1),i=1===t.length?"Bridge":`${t.slice(0,-1).join(", ")} and ${String(n)}`;return`Shows in ${i}, as Where things show sets for Decide. One answer, wherever you give it.`},"H",0,function(e){if(null===e)return{state:{label:"Not connected",isOk:!1},description:"This fleet has no Slack workspace.",action:"none"};let{workspaceName:t,link:n}=e;return null===n?{state:{label:"Not linked",isOk:!1},description:`Link your Slack account in ${t} to see items there and answer them.`,action:"link"}:{state:{label:"Linked",isOk:!0},description:`As @${n.slackName} in ${t}. A button press or a thread reply there is yours.`,action:"unlink"}},"b",0,function(e){let{job:i,place:a,isOn:s,waiting:o,isChatOn:l}=e,{name:d,item:c,items:u}=t[i],p=`${n[a]} is ${s?"on":"off"} for ${d}`;return s?"chat"===a?{title:p,detail:`A chat lists every ${c} not done when you ask it.`}:{title:p,detail:`${n[a]} shows ${u} that arrive from now on.${void 0===o||0===o?"":` The ${String(o)} already waiting ${1===o?"stays":"stay"} ${l?"in Bridge and in a chat":"in Bridge"}.`}`}:{title:p,detail:"everything-else"===i&&"slack"===a?`Bots only: a bot ship's messages and replies to Slack still show there. ${r}`:r}},"B",0,function(e){if(!e.isOffered)return{state:a,description:"This gateway sends no web push.",action:"none"};if(!e.isTaken)return{state:s,description:"This browser takes no web push.",action:"none"};let t=e.browsers.find(({endpoint:t,isGone:n})=>t===e.ownEndpoint&&!n);return void 0===t?{state:s,description:l,action:"turnOn"}:{state:{label:"This browser",isOk:!0},description:`${t.browser}. ${o}`,action:"remove"}}])},41398,e=>{var t=e.i(43476),n=e.i(71645),i=e.i(55177),r=e.i(95187);let a=(0,r.createServerReference)("40289328a2de0ea128b784901853f4de7221583bc7",r.callServer,void 0,r.findSourceMapURL,"unlinkSlack"),s=[[/Edg\//,"Edge"],[/Firefox\//,"Firefox"],[/Chrome\//,"Chrome"],[/Safari\//,"Safari"]],o=[[/iPhone|iPad/,"iOS"],[/Android/,"Android"],[/Mac OS X/,"macOS"],[/Windows/,"Windows"],[/Linux/,"Linux"]],l=(e,t)=>t.find(([t])=>t.test(e))?.[1],d=(0,r.createServerReference)("6028739f485a26b4fc9b642cdfc74a0a41dad8d9e2",r.callServer,void 0,r.findSourceMapURL,"turnOffWebPush"),c=(0,r.createServerReference)("6069429f9cb1a1d9efa5d9f753e10f1b9cef5dd9ce",r.callServer,void 0,r.findSourceMapURL,"turnOnWebPush"),u="/wake-worker.js";async function p(){let e=await navigator.serviceWorker.getRegistration(u);return await e?.pushManager.getSubscription()??null}async function f(e){let t;if(await Notification.requestPermission()!=="granted")return{isOk:!1,message:"Your browser did not allow notifications from this site: allow them, then turn web push on again"};let n=await navigator.serviceWorker.register(u);return await navigator.serviceWorker.ready,{isOk:!0,value:await n.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:(t=atob(e.replaceAll("-","+").replaceAll("_","/")),Uint8Array.from(t,e=>e.charCodeAt(0)))})}}var g=e.i(31785),m=e.i(55070),h=e.i(63132),b=e.i(85595),v=e.i(56420);let x={name:"circle-pause",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]],aliases:["pause-circle"]};x.node;let y=(0,v.f)(x);function k({place:e,name:n,Icon:i,card:r,children:a}){let s=r.state.isOk?b.f:y;return(0,t.jsxs)("div",{"data-testid":`bridge-place-${e}`,className:"flex flex-col gap-1.5 rounded-lg border border-border bg-card px-3 py-2.5",children:[(0,t.jsxs)("span",{className:"flex items-center gap-2 font-medium",children:[(0,t.jsx)(i,{"aria-hidden":!0,className:"size-4 shrink-0"}),n,(0,t.jsxs)("span",{"data-testid":`bridge-place-${e}-state`,className:`ml-auto inline-flex items-center gap-1 text-caption font-medium ${r.state.isOk?"text-tone-ok-fg":"text-muted-foreground"}`,children:[(0,t.jsx)(s,{"aria-hidden":!0,className:"size-3.5"}),r.state.label]})]}),(0,t.jsx)("span",{className:"text-caption text-muted-foreground",children:r.description}),void 0===a?null:(0,t.jsx)("span",{className:"mt-auto flex flex-col items-start gap-1.5",children:a})]})}var w=e.i(31714);function S({fleetId:e,slackLink:i}){let[r,s]=(0,n.useTransition)(),[o,l]=(0,n.useState)(),d=(0,g.H)(i);return(0,t.jsxs)(k,{place:"slack",name:g.k.slack,Icon:w.U.slack,card:d,children:["link"===d.action?(0,t.jsx)("a",{href:`/slack/link?${new URLSearchParams({fleet:e}).toString()}`,"data-testid":"bridge-slack-link",className:"inline-flex h-7 items-center rounded-md bg-primary px-2.5 text-caption font-medium text-primary-foreground hover:bg-primary-hover",children:"Link Slack"}):null,"unlink"===d.action?(0,t.jsx)(m.i,{size:"xs","data-testid":"bridge-slack-unlink",isPending:r,pendingLabel:"Unlinking...",onClick:()=>{l(void 0),s(async()=>{let t=await a(e);t.isOk||l(t.message)})},children:"Unlink"}):null,void 0===o?null:(0,t.jsx)(h.f,{message:o,isFailure:!0})]})}function j({fleetId:e,webPush:i}){let r=i?.browsers??[],{isTaken:a,ownEndpoint:u,working:b,failure:v,turnOn:x,remove:y}=function({fleetId:e,webPushKey:t}){let[i,r]=(0,n.useState)(!0),[a,u]=(0,n.useState)(),[g,m]=(0,n.useState)(),[h,b]=(0,n.useState)(),[,v]=(0,n.useTransition)();return(0,n.useEffect)(()=>{"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window?p().then(e=>{u(e?.endpoint)}):r(!1)},[]),{isTaken:i,ownEndpoint:a,working:g,failure:h,turnOn:()=>{null!==t&&(m("on"),b(void 0),v(async()=>{try{var n;let i,r,a=await f(t);if(!a.isOk)return void b(a.message);let d=function(e,t){let{endpoint:n,keys:i}=e,r=i?.p256dh,a=i?.auth;return void 0===n||void 0===r||void 0===a?void 0:{endpoint:n,keys:{p256dh:r,auth:a},browser:t}}(a.value.toJSON(),(n=navigator.userAgent,i=l(n,s),r=l(n,o),void 0===i?"A browser":void 0===r?i:`${i} on ${r}`));if(void 0===d)return void b("Your browser gave no push subscription: try again");let p=await c(e,d);p.isOk?u(d.endpoint):b(p.message)}catch{b("Your browser could not turn web push on: try again")}finally{m(void 0)}}))},remove:t=>{m(t),b(void 0),v(async()=>{t===a&&(await (await p())?.unsubscribe(),u(void 0));let n=await d(e,t);m(void 0),n.isOk||b(n.message)})}}}({fleetId:e,webPushKey:i?.publicKey??null}),S=(0,g.B)({isOffered:void 0!==i&&null!==i.publicKey,isTaken:a,ownEndpoint:u,browsers:r}),O=r.filter(({endpoint:e})=>"remove"!==S.action||e!==u);return(0,t.jsxs)(k,{place:"web-push",name:g.k["web-push"],Icon:w.U["web-push"],card:S,children:["remove"===S.action&&void 0!==u?(0,t.jsx)(m.i,{size:"xs","data-testid":"bridge-web-push-remove",isPending:b===u,pendingLabel:"Removing...",disabled:void 0!==b,onClick:()=>{y(u)},children:"Remove"}):null,"turnOn"===S.action?(0,t.jsx)(m.i,{size:"xs","data-testid":"bridge-web-push-on",isPending:"on"===b,pendingLabel:"Turning on...",disabled:void 0!==b,onClick:x,children:"Turn on"}):null,O.map(({endpoint:e,browser:n,isGone:i})=>(0,t.jsxs)("span",{"data-testid":"bridge-web-push-browser",className:"flex w-full items-center gap-2 text-caption text-muted-foreground",children:[(0,t.jsx)("span",{className:"min-w-0 flex-1",children:i?`${n}: no longer takes wakes`:`Also on in ${n}`}),(0,t.jsx)("button",{type:"button","data-testid":"bridge-web-push-remove-other",disabled:void 0!==b,onClick:()=>{y(e)},className:"underline hover:text-foreground disabled:opacity-50",children:b===e?"Removing...":"Remove"})]},e)),void 0===v?null:(0,t.jsx)(h.f,{message:v,isFailure:!0})]})}function O({fleetId:e,routing:r}){let[a,s]=(0,n.useTransition)(),[o,l]=(0,n.useState)(),d=(0,g.t)({isOffered:r.offered.email,isOnForAnyJob:r.jobs.some(({places:e})=>e.email)});return(0,t.jsxs)(k,{place:"email",name:g.k.email,Icon:w.U.email,card:d,children:["turnOn"===d.action||"turnOff"===d.action?(0,t.jsx)(m.i,{size:"xs","data-testid":"bridge-email-turn",isPending:a,pendingLabel:"turnOn"===d.action?"Turning on...":"Turning off...",onClick:()=>{var t;t="turnOn"===d.action,l(void 0),s(async()=>{for(let n of(0,g.T)(r,t)){let t=await (0,i.f)({fleet:e,...n});if(!t.isOk)return void l(t.message)}})},children:"turnOn"===d.action?"Turn on":"Turn off"}):null,void 0===o?null:(0,t.jsx)(h.f,{message:o,isFailure:!0})]})}e.s(["PlacesPanel",0,function({fleetId:e,routing:n,slackLink:i,chats:r,webPush:a}){return(0,t.jsxs)("section",{"aria-label":"The places",className:"grid gap-2.5 sm:grid-cols-2 lg:grid-cols-4",children:[(0,t.jsx)(S,{fleetId:e,slackLink:i}),(0,t.jsx)(k,{place:"chat",name:g.k.chat,Icon:w.U.chat,card:(0,g.g)(r)}),(0,t.jsx)(j,{fleetId:e,webPush:a}),(0,t.jsx)(O,{fleetId:e,routing:n})]})}],41398)},85678,e=>{var t=e.i(43476),n=e.i(85595),i=e.i(71645),r=e.i(55177),a=e.i(31785),s=e.i(63132),o=e.i(31714);function l({isOn:e,label:n,isDisabled:i,isBusy:r=!1,aside:a,testId:s,onTurn:o}){return(0,t.jsxs)("span",{className:"inline-flex items-center gap-2.5",children:[(0,t.jsx)("button",{type:"button",role:"switch","aria-checked":e,"aria-label":n,"aria-busy":r,disabled:i,"data-testid":s,onClick:o,className:"group inline-flex h-4 w-7 shrink-0 items-center rounded-full bg-input p-0.5 aria-checked:bg-primary disabled:cursor-not-allowed disabled:opacity-50",children:(0,t.jsx)("span",{"aria-hidden":!0,className:"size-3 rounded-full bg-card shadow-sm transition-transform group-aria-checked:translate-x-3"})}),void 0===a?null:(0,t.jsx)("span",{className:"text-caption text-muted-foreground",children:a})]})}let d="sm:grid sm:grid-cols-[1.6fr_repeat(5,1fr)] sm:items-center sm:gap-3";function c({toast:e}){return(0,t.jsxs)("div",{role:"status","data-testid":"bridge-routing-toast",className:"flex max-w-[720px] gap-3 rounded-lg border border-border bg-popover py-3.5 pr-3.5 pl-4 text-popover-foreground shadow-lg",children:[(0,t.jsx)(n.f,{"aria-hidden":!0,className:"mt-0.5 size-4 shrink-0 text-tone-ok-fg"}),(0,t.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,t.jsx)("span",{className:"font-medium",children:e.title}),(0,t.jsx)("span",{className:"text-caption text-muted-foreground",children:e.detail})]})]})}function u({name:e,children:n}){return(0,t.jsxs)("span",{className:"flex items-center justify-between sm:block",children:[(0,t.jsx)("span",{className:"sm:hidden",children:e}),n]})}e.s(["RoutingPanel",0,function({fleetId:e,routing:n,isSlackLinked:p,waitingByJob:f}){let[g,m]=(0,i.useTransition)(),[h,b]=(0,i.useState)(),[v,x]=(0,i.useState)(),[y,k]=(0,i.useState)();return(0,t.jsxs)("section",{className:"grid gap-3","aria-label":"Per job",children:[(0,t.jsxs)("div",{className:"grid gap-3 sm:gap-0 sm:overflow-hidden sm:rounded-lg sm:border sm:border-border sm:bg-card",children:[(0,t.jsxs)("div",{"aria-hidden":!0,className:`hidden min-h-8 bg-muted px-4 text-caption font-medium text-muted-foreground ${d}`,children:[(0,t.jsx)("span",{children:"Job"}),(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,t.jsx)(o.x,{className:"size-3.5"}),"Bridge"]}),a.N.map(e=>{let n=o.U[e];return(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,t.jsx)(n,{className:"size-3.5"}),a.k[e]]},e)})]}),n.jobs.map(({job:i,places:s})=>{let{Icon:c,tone:v}=o.c[i];return(0,t.jsxs)("div",{"data-testid":"bridge-routing-job",className:`flex flex-col gap-2 rounded-lg border border-border bg-card p-3 sm:min-h-[52px] sm:rounded-none sm:border-0 sm:border-t sm:px-4 sm:py-1.5 ${d}`,children:[(0,t.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 font-semibold sm:font-medium",children:[(0,t.jsx)(c,{"aria-hidden":!0,className:`size-4 shrink-0 ${v}`}),a.I[i].name]}),(0,t.jsx)("span",{className:"text-caption text-muted-foreground max-sm:hidden",children:a.I[i].holds})]}),(0,t.jsx)(u,{name:"Bridge",children:(0,t.jsx)(l,{isOn:!0,label:`Bridge for ${a.I[i].name}`,isDisabled:!0,aside:"Always",testId:`bridge-routing-${i}-bridge`})}),a.N.map(o=>{let d=s[o],c=`${i}-${o}`;return(0,t.jsx)(u,{name:a.k[o],children:(0,t.jsx)(l,{isOn:d,label:`${a.k[o]} for ${a.I[i].name}`,isDisabled:g||!d&&(!n.offered[o]||"slack"===o&&!p),isBusy:g&&h===c,..."everything-else"===i&&"slack"===o&&!d?{aside:"Bots only"}:{},testId:`bridge-routing-${c}`,onTurn:()=>{var t;t={job:i,place:o,isOn:!d,isChatOn:s.chat},x(void 0),k(void 0),b(`${t.job}-${t.place}`),m(async()=>{let{isChatOn:n,...i}=t,s=await (0,r.f)({fleet:e,...i});s.isOk?x((0,a.b)({...i,waiting:f[i.job],isChatOn:n})):k(s.message)})}})},o)})]},i)})]}),void 0===v?null:(0,t.jsx)(c,{toast:v}),void 0===y?null:(0,t.jsx)(s.f,{message:y,isFailure:!0}),(0,t.jsx)("p",{className:"text-caption text-muted-foreground max-sm:hidden",children:"While a Bridge page is open in focus, web push and email do not wake you. Slack still posts: you turned it on, and the views stay in step."})]})}],85678)},55070,e=>{var t=e.i(43476);let n={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"},i={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"};e.s(["i",0,function({isPending:e,pendingLabel:r,variant:a="secondary",size:s="regular",children:o,className:l="",disabled:d,...c}){return(0,t.jsx)("button",{...c,disabled:!0===d||e,"aria-busy":e,className:`inline-flex items-center rounded-md disabled:cursor-not-allowed disabled:opacity-70 ${i[s]} ${n[a]} ${l}`,children:e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"size-3.5 animate-spin rounded-full border-2 border-current border-t-transparent"}),r]}):o})},"o",0,i])},63132,e=>{var t=e.i(43476);e.s(["f",0,function({message:e,isFailure:n}){return n?(0,t.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:e}):(0,t.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:e})}])}],18566,(e,t,n)=>{t.exports=e.r(76562)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,10835,e=>{let t="holder",a="/authorize/sign-in";e.s(["r",0,t,"u",0,a,"e",0,"/authorize/waiting","a",0,function(e,i){return`${a}?${new URLSearchParams([...e,[t,i]]).toString()}`},"U",0,function(e,t){let a=Math.max(0,Math.floor((e.getTime()-t.getTime())/36e5));return`${String(Math.floor(a/24))} d ${String(a%24)} h`}])},33721,e=>{var t=e.i(43476),a=e.i(
|
|
1
|
+
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,10835,e=>{let t="holder",a="/authorize/sign-in";e.s(["r",0,t,"u",0,a,"e",0,"/authorize/waiting","a",0,function(e,i){return`${a}?${new URLSearchParams([...e,[t,i]]).toString()}`},"U",0,function(e,t){let a=Math.max(0,Math.floor((e.getTime()-t.getTime())/36e5));return`${String(Math.floor(a/24))} d ${String(a%24)} h`}])},33721,e=>{var t=e.i(43476),a=e.i(67393),i=e.i(56420);let n={name:"hourglass",size:24,node:[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]]};n.node;let r=(0,i.f)(n),o={name:"log-in",size:24,node:[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]]};o.node;let s=(0,i.f)(o);var d=e.i(71645),l=e.i(10835);let c=[{holder:"account",label:"Sign in as yourself",detail:"The client acts as you.",icon:(0,t.jsx)(s,{"aria-hidden":!0})},{holder:"party",label:"Ask for access for this client",detail:"An approver of your fleet decides; the client then acts as its own party.",icon:(0,t.jsx)(r,{"aria-hidden":!0})}];e.s(["PickHolder",0,function({fields:e}){let[i,n]=(0,d.useState)(void 0);return(0,t.jsxs)("form",{method:"get",action:l.u,onSubmit:t=>{t.preventDefault();let a=t.nativeEvent.submitter?.getAttribute("value");void 0===i&&("account"===a||"party"===a)&&(n(a),window.location.assign((0,l.a)(e,a)))},className:"grid gap-3 min-[481px]:grid-cols-2",children:[e.map(([e,a])=>(0,t.jsx)("input",{type:"hidden",name:e,value:a},e)),c.map(({holder:e,label:n,detail:r,icon:o})=>(0,t.jsxs)(a.f,{type:"submit",name:l.r,value:e,icon:o,isLoading:i===e,disabled:void 0!==i&&i!==e,className:"grid h-auto min-h-28 content-center justify-items-center gap-1 rounded-lg p-4 text-center whitespace-normal hover:border-primary hover:bg-card [&_svg:not([class*=size-])]:size-5","data-testid":`authorize-pick-${e}`,children:[(0,t.jsx)("strong",{children:n}),(0,t.jsx)("span",{className:"font-normal text-muted-foreground",children:r})]},e))]})}],33721)}])})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,37134,45017,47125,10030,e=>{var n=e.i(24189);e.s(["f",0,n],37134),e.s(["f",0,n],45017),e.s(["f",0,n],47125),e.s(["f",0,n],10030)},78680,e=>{e.i(47167);var n=e.i(71645),s=e.i(74080),t=e.i(26674),r=e.i(43476);let a=n.forwardRef(function(e,a){let{children:d,container:i,className:l,render:o,style:c,...u}=e,{node:m,subtree:p}=(0,t.o)({container:i,ref:a,componentProps:e,elementProps:u});return p||m?(0,r.jsxs)(n.Fragment,{children:[p,m&&s.createPortal(d,m)]}):null});e.s(["f",0,a])},27921,e=>{var n=e.i(43476),s=e.i(71645),t=e.i(95187);let r=(0,t.createServerReference)("602f7232a780b82485e56bc404e0b0fb114de00421",t.callServer,void 0,t.findSourceMapURL,"approveServer"),a=(0,t.createServerReference)("600a240e08171e6a68dc94a1876e23000be89b5be6",t.callServer,void 0,t.findSourceMapURL,"checkServer");var d=e.i(28008),i=e.i(88374),l=e.i(62052),o=e.i(30402),c=e.i(58107);let u=["Address","Check","Owner"],m=["Address","Owner","Sign in"];var p=e.i(94984);function x({refusal:e}){return void 0===e?null:(0,n.jsx)(p.f,{state:{kind:"refused",message:e}})}function h({names:e,at:s}){return(0,n.jsx)("ol",{className:"flex gap-4",children:e.map((e,t)=>(0,n.jsxs)("li",{"aria-current":t===s?"step":void 0,className:t<=s?"font-medium":"text-muted-foreground",children:[t+1," ",e]},e))})}function f({state:e,action:t,fleetId:r}){let[a,p]=(0,s.useState)((0,i.G)(e.fields.credentialKind??"")),g=a===i.m.kind;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(h,{names:a===i.m.kind?m:u,at:0}),(0,n.jsxs)("form",{action:t,className:`${o.r} grid gap-3`,"data-testid":"add-server-address",children:[(0,n.jsx)("input",{type:"hidden",name:d.H,value:r}),(0,n.jsx)(x,{refusal:e.refusal}),(0,n.jsxs)("label",{className:o.z,children:[(0,n.jsx)("span",{children:"Streamable HTTP address"}),(0,n.jsx)("input",{className:o.w,type:"url",name:"url",defaultValue:e.fields.url??"",placeholder:"https://mcp.example.com/mcp",required:!0})]}),(0,n.jsx)(l.f,{legend:"The server's credential",fields:e.fields,noneHelp:"The gateway sends no credential: for a server reached only on a private network.",canEachPersonSignIn:!0,onKindChange:p}),(0,n.jsx)("div",{children:(0,n.jsx)(c.f,{pending:g?"Next…":"Checking the server…",testId:"add-server-check",children:g?"Next":"Check the server"})})]})]})}var g=e.i(65818),b=e.i(25621),j=e.i(97e3);function v({tool:e,control:s,testId:t}){let{name:r,description:a,isReadOnly:d,isNew:i=!1}=e,l=void 0===a?"":a.split("\n").map(e=>e.trim()).find(e=>""!==e)??"",o=void 0!==a&&a.trim()!==l;return(0,n.jsxs)("li",{className:"grid gap-1 border-b border-border py-2 last:border-b-0","data-testid":t,children:[(0,n.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[s,(0,n.jsx)("span",{className:"font-mono",children:r}),d?(0,n.jsx)(j.E,{children:"reads only"}):null,i?(0,n.jsx)(j.T,{tone:"attention",label:"New"}):null]}),""===l?null:o?(0,n.jsxs)("details",{className:"text-muted-foreground",children:[(0,n.jsx)("summary",{className:"cursor-pointer",children:l}),(0,n.jsx)("p",{className:"mt-1 whitespace-pre-line",children:a})]}):(0,n.jsx)("p",{className:"text-muted-foreground",children:l})]})}function N({tools:e,canSwitch:t}){let[r,a]=(0,s.useState)(new Set),d=e.length-r.size;return(0,n.jsxs)("section",{className:"grid gap-2","data-testid":"add-server-tools",children:[(0,n.jsxs)("h2",{className:"flex flex-wrap justify-between gap-2 text-section font-semibold",children:[(0,n.jsxs)("span",{children:["The server answers: ",e.length," ",1===e.length?"tool":"tools"]}),t?(0,n.jsxs)("span",{role:"status",className:"font-normal text-muted-foreground","data-testid":"add-server-tools-on",children:[d," of ",e.length," on"]}):null]}),(0,n.jsx)("p",{className:"text-muted-foreground",children:t?"The fleet may call only the tools switched on. A tool the server adds later starts off.":"Switching tools needs gateway:approve: every tool starts on, and an approver switches them on its page."}),(0,n.jsx)("ul",{className:"grid",children:e.map(e=>{let s=!r.has(e.name);return(0,n.jsx)(v,{tool:e,testId:"add-server-tool",control:t?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("input",{type:"hidden",name:"toolShown",value:e.name}),s?(0,n.jsx)("input",{type:"hidden",name:"toolOn",value:e.name}):null,(0,n.jsx)(b.f,{isOn:s,label:e.name,onClick:()=>{var n;n=e.name,a(e=>{let s=new Set(e);return s.delete(n)||s.add(n),s})}})]}):null},e.name)})})]})}let w=["url","credentialKind","token","clientId","clientSecret","issuer","scope"];function y({state:e,refused:t,action:r,onBack:a,fleetId:i,canSwitchTools:l}){let p,f="refused"===t.kind&&t.requestId===e.requestId,b=f?t.fields:e.fields,j=b.url??"",[v,k]=(0,s.useState)(b.name??function(e){if(!URL.canParse(e))return"";let{hostname:n}=new URL(e);return/^\d+(\.\d+){3}$/.test(n)||n.startsWith("[")?"":(n.split(".").filter(e=>"mcp"!==e&&"www"!==e)[0]??"").toLowerCase().replaceAll(/[^a-z0-9]+/g,"-").replaceAll(/^-+|-+$/g,"")}(j)),S=e.tools;return(0,n.jsxs)(n.Fragment,{children:[null===S?(0,n.jsx)(h,{names:m,at:1}):(0,n.jsx)(h,{names:u,at:2}),(0,n.jsxs)("form",{action:r,className:`${o.r} grid gap-3`,"data-testid":"add-server-owner",children:[null===S?null:(0,n.jsx)(N,{tools:S,canSwitch:l}),(0,n.jsx)("h2",{className:"text-section font-semibold",children:"Its owner"}),(0,n.jsx)(x,{refusal:f?t.message:void 0}),(0,n.jsx)("input",{type:"hidden",name:d.H,value:i}),(0,n.jsx)("input",{type:"hidden",name:"requestId",value:e.requestId}),w.map(e=>(0,n.jsx)("input",{type:"hidden",name:e,value:b[e]??""},e)),(0,n.jsx)("p",{className:"font-mono text-muted-foreground",children:j}),(0,n.jsxs)("label",{className:o.z,children:[(0,n.jsx)("span",{children:"Proxy ship's name"}),(0,n.jsx)("input",{className:o.w,type:"text",name:"name",value:v,onChange:e=>{k(e.target.value)},required:!0})]}),(0,n.jsx)(g.f,{choices:e.owners,current:e.owners.find(e=>e.shipId===b.ownerShipId)??null,help:"A person ship or argo. It answers for this server."}),(0,n.jsxs)("label",{className:o.z,children:[(0,n.jsx)("span",{children:"Calls at once"}),(0,n.jsx)("input",{className:o.w,type:"number",name:"concurrencyLimit",min:1,max:10,defaultValue:b.concurrencyLimit??"4"})]}),null===S?(0,n.jsx)("p",{className:"text-muted-foreground",children:"Its tools show once someone signs in."}):null,(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(c.f,{pending:null===S?"Checking the sign-in…":"Adding…",testId:"add-server-approve",children:""===(p=v.trim())?"Add as outside party":p.length>20?`Add ${p.slice(0,20)}…`:`Add ${p}`}),(0,n.jsx)("button",{type:"button",className:o.x.secondary,onClick:a,children:"Back to the address"})]})]})]})}var k=e.i(65894),S=e.i(31831),I=e.i(39368);function C({fleetId:e,name:t}){let[r,a]=(0,s.useActionState)(I.f,d.Q);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(h,{names:m,at:2}),(0,n.jsxs)("form",{action:a,className:`${o.r} grid gap-3`,"data-testid":"add-server-sign-in",children:[(0,n.jsx)(p.f,{state:{kind:"done",message:`${t} is added.`}}),(0,n.jsx)(p.f,{state:r}),(0,n.jsx)("input",{type:"hidden",name:d.H,value:e}),(0,n.jsx)("input",{type:"hidden",name:"name",value:t}),(0,n.jsxs)("p",{children:["Sign in to ",t," for yourself. Its tools show after the first sign-in."]}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsxs)(c.f,{pending:`Opening ${t}…`,testId:"add-server-sign-in-start",children:["Sign in to ",t]}),(0,n.jsx)("a",{href:(0,k.f)((0,S.N)(t),e),className:o.x.secondary,children:"Later"})]})]})]})}e.s(["AddServer",0,function({fleetId:e,canSwitchTools:t}){let[d,i]=(0,s.useActionState)(a,{step:"address",fields:{}}),[l,o]=(0,s.useActionState)(r,{kind:"idle"}),[c,u]=(0,s.useState)(void 0),m="owner"===d.step&&c!==d.requestId?d:void 0;return(0,n.jsxs)("div",{className:"grid gap-4",children:[(0,n.jsx)("h1",{className:"text-title font-semibold",children:"Add MCP server"}),"added"===l.kind?(0,n.jsx)(C,{fleetId:e,name:l.name}):void 0===m?(0,n.jsx)(f,{state:d,action:i,fleetId:e}):(0,n.jsx)(y,{state:m,refused:l,action:o,onBack:()=>{u(m.requestId)},fleetId:e,canSwitchTools:t})]})}],27921)},55070,e=>{var n=e.i(43476);let s={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"},t={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"};e.s(["i",0,function({isPending:e,pendingLabel:r,variant:a="secondary",size:d="regular",children:i,className:l="",disabled:o,...c}){return(0,n.jsx)("button",{...c,disabled:!0===o||e,"aria-busy":e,className:`inline-flex items-center rounded-md disabled:cursor-not-allowed disabled:opacity-70 ${t[d]} ${s[a]} ${l}`,children:e?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{"aria-hidden":"true",className:"size-3.5 animate-spin rounded-full border-2 border-current border-t-transparent"}),r]}):i})},"o",0,t])},28008,e=>{e.s(["H",0,"fleet","Q",0,{kind:"idle"}])},88374,e=>{let n=[{kind:"none",label:"No credential"},{kind:"bearer",label:"Bearer token"},{kind:"clientCredentials",label:"OAuth client credentials"}],s={kind:"personSignIn",label:"Each person signs in"},t=[...n,s];e.s(["a",0,t,"x",0,n,"m",0,s,"G",0,function(e){return t.find(({kind:n})=>n===e)?.kind??"bearer"},"C",0,function(e){return n.find(({kind:n})=>n===e)?.kind??"bearer"}])},62052,e=>{var n=e.i(43476),s=e.i(71645),t=e.i(88374),r=e.i(30402);e.s(["f",0,function({legend:e,fields:a,noneHelp:d,canEachPersonSignIn:i=!1,onKindChange:l}){let o=i?t.G:t.C,[c,u]=(0,s.useState)(o(a.credentialKind??""));return(0,n.jsxs)("fieldset",{className:"grid gap-3",children:[(0,n.jsx)("legend",{className:"font-medium",children:e}),(0,n.jsxs)("label",{className:r.z,children:[(0,n.jsx)("span",{children:"Credential"}),(0,n.jsx)("select",{className:r.w,name:"credentialKind",value:c,onChange:e=>{let n=o(e.target.value);u(n),l?.(n)},children:(i?t.a:t.x).map(({kind:e,label:s})=>(0,n.jsx)("option",{value:e,children:s},e))})]}),"clientCredentials"===c?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("label",{className:r.z,children:[(0,n.jsx)("span",{children:"Client id"}),(0,n.jsx)("input",{className:r.w,type:"text",name:"clientId",defaultValue:a.clientId??""})]}),(0,n.jsxs)("label",{className:r.z,children:[(0,n.jsx)("span",{children:"Client secret"}),(0,n.jsx)("input",{className:r.w,type:"password",name:"clientSecret"})]}),(0,n.jsxs)("label",{className:r.z,children:[(0,n.jsx)("span",{children:"Issuer"}),(0,n.jsx)("input",{className:r.w,type:"url",name:"issuer",defaultValue:a.issuer??""})]}),(0,n.jsxs)("label",{className:r.z,children:[(0,n.jsx)("span",{children:"Scope"}),(0,n.jsx)("input",{className:r.w,type:"text",name:"scope",defaultValue:a.scope??""})]})]}):"bearer"===c?(0,n.jsxs)("label",{className:r.z,children:[(0,n.jsx)("span",{children:"Bearer token"}),(0,n.jsx)("input",{className:r.w,type:"password",name:"token"})]}):c===t.m.kind?(0,n.jsx)("p",{className:"text-muted-foreground",children:"Each person signs in for themselves. A ship calls under its owner's sign-in."}):(0,n.jsx)("p",{className:"text-muted-foreground",children:d})]})}])},30402,e=>{let n="inline-flex h-9 items-center justify-center gap-2 rounded-md px-4 font-medium disabled:opacity-60",s={primary:`${n} bg-primary text-primary-foreground hover:bg-primary-hover`,secondary:`${n} border border-border bg-card hover:bg-accent`,destructive:`${n} bg-destructive text-destructive-foreground`};e.s(["x",0,s,"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"])},94984,e=>{var n=e.i(43476);e.s(["f",0,function({state:e,testId:s}){switch(e.kind){case"idle":return null;case"done":return(0,n.jsx)("p",{role:"status","data-testid":s,className:"rounded-md border border-tone-ok-border bg-tone-ok-bg px-3 py-2 text-tone-ok-fg",children:e.message});case"refused":case"openNetwork":return(0,n.jsx)("p",{role:"alert","data-testid":s,className:"rounded-md border border-tone-attention-border bg-tone-attention-bg px-3 py-2 text-tone-attention-fg",children:e.message})}}])},65818,e=>{var n=e.i(43476),s=e.i(30402);e.s(["f",0,function({choices:e,current:t,help:r,refusal:a}){let d=null===t||e.some(e=>e.shipId===t.shipId)?e:[t,...e];return(0,n.jsxs)("label",{className:s.z,children:[(0,n.jsx)("span",{children:"Owner"}),(0,n.jsxs)("select",{className:s.w,name:"ownerShipId",defaultValue:t?.shipId??"",required:!0,"data-testid":"owner-field",children:[null===t?(0,n.jsx)("option",{value:"",disabled:!0,children:"Pick its owner"}):null,d.map(e=>(0,n.jsx)("option",{value:e.shipId,children:e.name},e.shipId))]}),(0,n.jsx)("span",{className:"text-muted-foreground",children:a??r})]})}])},58107,e=>{var n=e.i(43476),s=e.i(74080),t=e.i(30402);e.s(["f",0,function({children:e,pending:r,kind:a="primary",testId:d}){let i=(0,s.useFormStatus)();return(0,n.jsx)("button",{type:"submit",className:t.x[a],disabled:i.pending,"aria-busy":i.pending,"data-testid":d,children:i.pending?r:e})}])},31831,e=>{let n="/outside-parties";e.s(["$",0,n,"N",0,function(e,s){return`${n}/${encodeURIComponent(e)}${void 0===s?"":`/${s}`}`}])},97e3,e=>{var n=e.i(43476);let s={waiting:"border-tone-waiting-border bg-tone-waiting-bg text-tone-waiting-fg",active:"border-tone-active-border bg-tone-active-bg text-tone-active-fg",ok:"border-tone-ok-border bg-tone-ok-bg text-tone-ok-fg",attention:"border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg",ended:"border-tone-ended-border bg-tone-ended-bg text-tone-ended-fg"};e.s(["T",0,function({tone:e,label:t}){return(0,n.jsx)("span",{className:`inline-flex items-center rounded-full border px-2 text-caption ${s[e]}`,children:t})},"E",0,function({children:e,isMono:s=!1}){return(0,n.jsx)("span",{className:`inline-flex items-center rounded-md border border-border px-2 text-caption ${s?"font-mono":""}`,children:e})}])}])})();
|
|
1
|
+
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,37134,45017,47125,10030,e=>{var n=e.i(24189);e.s(["f",0,n],37134),e.s(["f",0,n],45017),e.s(["f",0,n],47125),e.s(["f",0,n],10030)},78680,e=>{e.i(47167);var n=e.i(71645),s=e.i(74080),t=e.i(26674),r=e.i(43476);let a=n.forwardRef(function(e,a){let{children:d,container:i,className:l,render:o,style:c,...u}=e,{node:m,subtree:p}=(0,t.o)({container:i,ref:a,componentProps:e,elementProps:u});return p||m?(0,r.jsxs)(n.Fragment,{children:[p,m&&s.createPortal(d,m)]}):null});e.s(["f",0,a])},27921,e=>{var n=e.i(43476),s=e.i(71645),t=e.i(95187);let r=(0,t.createServerReference)("6067580bb75cc65e0399b9cae2b13f08b2231f177e",t.callServer,void 0,t.findSourceMapURL,"approveServer"),a=(0,t.createServerReference)("602756facb8155e550cfc8ccdf17b1adf429b5fb03",t.callServer,void 0,t.findSourceMapURL,"checkServer");var d=e.i(28008),i=e.i(88374),l=e.i(62052),o=e.i(30402),c=e.i(58107);let u=["Address","Check","Owner"],m=["Address","Owner","Sign in"];var p=e.i(94984);function x({refusal:e}){return void 0===e?null:(0,n.jsx)(p.f,{state:{kind:"refused",message:e}})}function h({names:e,at:s}){return(0,n.jsx)("ol",{className:"flex gap-4",children:e.map((e,t)=>(0,n.jsxs)("li",{"aria-current":t===s?"step":void 0,className:t<=s?"font-medium":"text-muted-foreground",children:[t+1," ",e]},e))})}function f({state:e,action:t,fleetId:r}){let[a,p]=(0,s.useState)((0,i.G)(e.fields.credentialKind??"")),g=a===i.m.kind;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(h,{names:a===i.m.kind?m:u,at:0}),(0,n.jsxs)("form",{action:t,className:`${o.r} grid gap-3`,"data-testid":"add-server-address",children:[(0,n.jsx)("input",{type:"hidden",name:d.H,value:r}),(0,n.jsx)(x,{refusal:e.refusal}),(0,n.jsxs)("label",{className:o.z,children:[(0,n.jsx)("span",{children:"Streamable HTTP address"}),(0,n.jsx)("input",{className:o.w,type:"url",name:"url",defaultValue:e.fields.url??"",placeholder:"https://mcp.example.com/mcp",required:!0})]}),(0,n.jsx)(l.f,{legend:"The server's credential",fields:e.fields,noneHelp:"The gateway sends no credential: for a server reached only on a private network.",canEachPersonSignIn:!0,onKindChange:p}),(0,n.jsx)("div",{children:(0,n.jsx)(c.f,{pending:g?"Next…":"Checking the server…",testId:"add-server-check",children:g?"Next":"Check the server"})})]})]})}var g=e.i(65818),b=e.i(25621),j=e.i(97e3);function v({tool:e,control:s,testId:t}){let{name:r,description:a,isReadOnly:d,isNew:i=!1}=e,l=void 0===a?"":a.split("\n").map(e=>e.trim()).find(e=>""!==e)??"",o=void 0!==a&&a.trim()!==l;return(0,n.jsxs)("li",{className:"grid gap-1 border-b border-border py-2 last:border-b-0","data-testid":t,children:[(0,n.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[s,(0,n.jsx)("span",{className:"font-mono",children:r}),d?(0,n.jsx)(j.E,{children:"reads only"}):null,i?(0,n.jsx)(j.T,{tone:"attention",label:"New"}):null]}),""===l?null:o?(0,n.jsxs)("details",{className:"text-muted-foreground",children:[(0,n.jsx)("summary",{className:"cursor-pointer",children:l}),(0,n.jsx)("p",{className:"mt-1 whitespace-pre-line",children:a})]}):(0,n.jsx)("p",{className:"text-muted-foreground",children:l})]})}function N({tools:e,canSwitch:t}){let[r,a]=(0,s.useState)(new Set),d=e.length-r.size;return(0,n.jsxs)("section",{className:"grid gap-2","data-testid":"add-server-tools",children:[(0,n.jsxs)("h2",{className:"flex flex-wrap justify-between gap-2 text-section font-semibold",children:[(0,n.jsxs)("span",{children:["The server answers: ",e.length," ",1===e.length?"tool":"tools"]}),t?(0,n.jsxs)("span",{role:"status",className:"font-normal text-muted-foreground","data-testid":"add-server-tools-on",children:[d," of ",e.length," on"]}):null]}),(0,n.jsx)("p",{className:"text-muted-foreground",children:t?"The fleet may call only the tools switched on. A tool the server adds later starts off.":"Switching tools needs gateway:approve: every tool starts on, and an approver switches them on its page."}),(0,n.jsx)("ul",{className:"grid",children:e.map(e=>{let s=!r.has(e.name);return(0,n.jsx)(v,{tool:e,testId:"add-server-tool",control:t?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("input",{type:"hidden",name:"toolShown",value:e.name}),s?(0,n.jsx)("input",{type:"hidden",name:"toolOn",value:e.name}):null,(0,n.jsx)(b.f,{isOn:s,label:e.name,onClick:()=>{var n;n=e.name,a(e=>{let s=new Set(e);return s.delete(n)||s.add(n),s})}})]}):null},e.name)})})]})}let w=["url","credentialKind","token","clientId","clientSecret","issuer","scope"];function y({state:e,refused:t,action:r,onBack:a,fleetId:i,canSwitchTools:l}){let p,f="refused"===t.kind&&t.requestId===e.requestId,b=f?t.fields:e.fields,j=b.url??"",[v,k]=(0,s.useState)(b.name??function(e){if(!URL.canParse(e))return"";let{hostname:n}=new URL(e);return/^\d+(\.\d+){3}$/.test(n)||n.startsWith("[")?"":(n.split(".").filter(e=>"mcp"!==e&&"www"!==e)[0]??"").toLowerCase().replaceAll(/[^a-z0-9]+/g,"-").replaceAll(/^-+|-+$/g,"")}(j)),S=e.tools;return(0,n.jsxs)(n.Fragment,{children:[null===S?(0,n.jsx)(h,{names:m,at:1}):(0,n.jsx)(h,{names:u,at:2}),(0,n.jsxs)("form",{action:r,className:`${o.r} grid gap-3`,"data-testid":"add-server-owner",children:[null===S?null:(0,n.jsx)(N,{tools:S,canSwitch:l}),(0,n.jsx)("h2",{className:"text-section font-semibold",children:"Its owner"}),(0,n.jsx)(x,{refusal:f?t.message:void 0}),(0,n.jsx)("input",{type:"hidden",name:d.H,value:i}),(0,n.jsx)("input",{type:"hidden",name:"requestId",value:e.requestId}),w.map(e=>(0,n.jsx)("input",{type:"hidden",name:e,value:b[e]??""},e)),(0,n.jsx)("p",{className:"font-mono text-muted-foreground",children:j}),(0,n.jsxs)("label",{className:o.z,children:[(0,n.jsx)("span",{children:"Proxy ship's name"}),(0,n.jsx)("input",{className:o.w,type:"text",name:"name",value:v,onChange:e=>{k(e.target.value)},required:!0})]}),(0,n.jsx)(g.f,{choices:e.owners,current:e.owners.find(e=>e.shipId===b.ownerShipId)??null,help:"A person ship or argo. It answers for this server."}),(0,n.jsxs)("label",{className:o.z,children:[(0,n.jsx)("span",{children:"Calls at once"}),(0,n.jsx)("input",{className:o.w,type:"number",name:"concurrencyLimit",min:1,max:10,defaultValue:b.concurrencyLimit??"4"})]}),null===S?(0,n.jsx)("p",{className:"text-muted-foreground",children:"Its tools show once someone signs in."}):null,(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(c.f,{pending:null===S?"Checking the sign-in…":"Adding…",testId:"add-server-approve",children:""===(p=v.trim())?"Add as outside party":p.length>20?`Add ${p.slice(0,20)}…`:`Add ${p}`}),(0,n.jsx)("button",{type:"button",className:o.x.secondary,onClick:a,children:"Back to the address"})]})]})]})}var k=e.i(65894),S=e.i(31831),I=e.i(39279);function C({fleetId:e,name:t}){let[r,a]=(0,s.useActionState)(I.f,d.Q);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(h,{names:m,at:2}),(0,n.jsxs)("form",{action:a,className:`${o.r} grid gap-3`,"data-testid":"add-server-sign-in",children:[(0,n.jsx)(p.f,{state:{kind:"done",message:`${t} is added.`}}),(0,n.jsx)(p.f,{state:r}),(0,n.jsx)("input",{type:"hidden",name:d.H,value:e}),(0,n.jsx)("input",{type:"hidden",name:"name",value:t}),(0,n.jsxs)("p",{children:["Sign in to ",t," for yourself. Its tools show after the first sign-in."]}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsxs)(c.f,{pending:`Opening ${t}…`,testId:"add-server-sign-in-start",children:["Sign in to ",t]}),(0,n.jsx)("a",{href:(0,k.f)((0,S.N)(t),e),className:o.x.secondary,children:"Later"})]})]})]})}e.s(["AddServer",0,function({fleetId:e,canSwitchTools:t}){let[d,i]=(0,s.useActionState)(a,{step:"address",fields:{}}),[l,o]=(0,s.useActionState)(r,{kind:"idle"}),[c,u]=(0,s.useState)(void 0),m="owner"===d.step&&c!==d.requestId?d:void 0;return(0,n.jsxs)("div",{className:"grid gap-4",children:[(0,n.jsx)("h1",{className:"text-title font-semibold",children:"Add MCP server"}),"added"===l.kind?(0,n.jsx)(C,{fleetId:e,name:l.name}):void 0===m?(0,n.jsx)(f,{state:d,action:i,fleetId:e}):(0,n.jsx)(y,{state:m,refused:l,action:o,onBack:()=>{u(m.requestId)},fleetId:e,canSwitchTools:t})]})}],27921)},55070,e=>{var n=e.i(43476);let s={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"},t={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"};e.s(["i",0,function({isPending:e,pendingLabel:r,variant:a="secondary",size:d="regular",children:i,className:l="",disabled:o,...c}){return(0,n.jsx)("button",{...c,disabled:!0===o||e,"aria-busy":e,className:`inline-flex items-center rounded-md disabled:cursor-not-allowed disabled:opacity-70 ${t[d]} ${s[a]} ${l}`,children:e?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{"aria-hidden":"true",className:"size-3.5 animate-spin rounded-full border-2 border-current border-t-transparent"}),r]}):i})},"o",0,t])},28008,e=>{e.s(["H",0,"fleet","Q",0,{kind:"idle"}])},88374,e=>{let n=[{kind:"none",label:"No credential"},{kind:"bearer",label:"Bearer token"},{kind:"clientCredentials",label:"OAuth client credentials"}],s={kind:"personSignIn",label:"Each person signs in"},t=[...n,s];e.s(["a",0,t,"x",0,n,"m",0,s,"G",0,function(e){return t.find(({kind:n})=>n===e)?.kind??"bearer"},"C",0,function(e){return n.find(({kind:n})=>n===e)?.kind??"bearer"}])},62052,e=>{var n=e.i(43476),s=e.i(71645),t=e.i(88374),r=e.i(30402);e.s(["f",0,function({legend:e,fields:a,noneHelp:d,canEachPersonSignIn:i=!1,onKindChange:l}){let o=i?t.G:t.C,[c,u]=(0,s.useState)(o(a.credentialKind??""));return(0,n.jsxs)("fieldset",{className:"grid gap-3",children:[(0,n.jsx)("legend",{className:"font-medium",children:e}),(0,n.jsxs)("label",{className:r.z,children:[(0,n.jsx)("span",{children:"Credential"}),(0,n.jsx)("select",{className:r.w,name:"credentialKind",value:c,onChange:e=>{let n=o(e.target.value);u(n),l?.(n)},children:(i?t.a:t.x).map(({kind:e,label:s})=>(0,n.jsx)("option",{value:e,children:s},e))})]}),"clientCredentials"===c?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("label",{className:r.z,children:[(0,n.jsx)("span",{children:"Client id"}),(0,n.jsx)("input",{className:r.w,type:"text",name:"clientId",defaultValue:a.clientId??""})]}),(0,n.jsxs)("label",{className:r.z,children:[(0,n.jsx)("span",{children:"Client secret"}),(0,n.jsx)("input",{className:r.w,type:"password",name:"clientSecret"})]}),(0,n.jsxs)("label",{className:r.z,children:[(0,n.jsx)("span",{children:"Issuer"}),(0,n.jsx)("input",{className:r.w,type:"url",name:"issuer",defaultValue:a.issuer??""})]}),(0,n.jsxs)("label",{className:r.z,children:[(0,n.jsx)("span",{children:"Scope"}),(0,n.jsx)("input",{className:r.w,type:"text",name:"scope",defaultValue:a.scope??""})]})]}):"bearer"===c?(0,n.jsxs)("label",{className:r.z,children:[(0,n.jsx)("span",{children:"Bearer token"}),(0,n.jsx)("input",{className:r.w,type:"password",name:"token"})]}):c===t.m.kind?(0,n.jsx)("p",{className:"text-muted-foreground",children:"Each person signs in for themselves. A ship calls under its owner's sign-in."}):(0,n.jsx)("p",{className:"text-muted-foreground",children:d})]})}])},30402,e=>{let n="inline-flex h-9 items-center justify-center gap-2 rounded-md px-4 font-medium disabled:opacity-60",s={primary:`${n} bg-primary text-primary-foreground hover:bg-primary-hover`,secondary:`${n} border border-border bg-card hover:bg-accent`,destructive:`${n} bg-destructive text-destructive-foreground`};e.s(["x",0,s,"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"])},94984,e=>{var n=e.i(43476);e.s(["f",0,function({state:e,testId:s}){switch(e.kind){case"idle":return null;case"done":return(0,n.jsx)("p",{role:"status","data-testid":s,className:"rounded-md border border-tone-ok-border bg-tone-ok-bg px-3 py-2 text-tone-ok-fg",children:e.message});case"refused":case"openNetwork":return(0,n.jsx)("p",{role:"alert","data-testid":s,className:"rounded-md border border-tone-attention-border bg-tone-attention-bg px-3 py-2 text-tone-attention-fg",children:e.message})}}])},65818,e=>{var n=e.i(43476),s=e.i(30402);e.s(["f",0,function({choices:e,current:t,help:r,refusal:a}){let d=null===t||e.some(e=>e.shipId===t.shipId)?e:[t,...e];return(0,n.jsxs)("label",{className:s.z,children:[(0,n.jsx)("span",{children:"Owner"}),(0,n.jsxs)("select",{className:s.w,name:"ownerShipId",defaultValue:t?.shipId??"",required:!0,"data-testid":"owner-field",children:[null===t?(0,n.jsx)("option",{value:"",disabled:!0,children:"Pick its owner"}):null,d.map(e=>(0,n.jsx)("option",{value:e.shipId,children:e.name},e.shipId))]}),(0,n.jsx)("span",{className:"text-muted-foreground",children:a??r})]})}])},58107,e=>{var n=e.i(43476),s=e.i(74080),t=e.i(30402);e.s(["f",0,function({children:e,pending:r,kind:a="primary",testId:d}){let i=(0,s.useFormStatus)();return(0,n.jsx)("button",{type:"submit",className:t.x[a],disabled:i.pending,"aria-busy":i.pending,"data-testid":d,children:i.pending?r:e})}])},31831,e=>{let n="/outside-parties";e.s(["$",0,n,"N",0,function(e,s){return`${n}/${encodeURIComponent(e)}${void 0===s?"":`/${s}`}`}])},97e3,e=>{var n=e.i(43476);let s={waiting:"border-tone-waiting-border bg-tone-waiting-bg text-tone-waiting-fg",active:"border-tone-active-border bg-tone-active-bg text-tone-active-fg",ok:"border-tone-ok-border bg-tone-ok-bg text-tone-ok-fg",attention:"border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg",ended:"border-tone-ended-border bg-tone-ended-bg text-tone-ended-fg"};e.s(["T",0,function({tone:e,label:t}){return(0,n.jsx)("span",{className:`inline-flex items-center rounded-full border px-2 text-caption ${s[e]}`,children:t})},"E",0,function({children:e,isMono:s=!1}){return(0,n.jsx)("span",{className:`inline-flex items-center rounded-md border border-border px-2 text-caption ${s?"font-mono":""}`,children:e})}])}])})();
|