@aeolus-fleet/gateway 0.38.2 → 0.38.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/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 +10 -0
- package/dist/adapters/prisma/generated/client.d.ts +10 -0
- package/dist/adapters/prisma/generated/internal/class.d.ts +22 -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 +172 -1
- package/dist/adapters/prisma/generated/internal/prismaNamespace.js +19 -0
- package/dist/adapters/prisma/generated/internal/prismaNamespace.js.map +1 -1
- package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.d.ts +21 -0
- package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.js +19 -0
- package/dist/adapters/prisma/generated/internal/prismaNamespaceBrowser.js.map +1 -1
- package/dist/adapters/prisma/generated/models/QuietHours.d.ts +1102 -0
- package/dist/adapters/prisma/generated/models/QuietHours.js +2 -0
- package/dist/adapters/prisma/generated/models/QuietHours.js.map +1 -0
- package/dist/adapters/prisma/generated/models/QuietShip.d.ts +1031 -0
- package/dist/adapters/prisma/generated/models/QuietShip.js +2 -0
- package/dist/adapters/prisma/generated/models/QuietShip.js.map +1 -0
- package/dist/adapters/prisma/generated/models.d.ts +2 -0
- package/dist/adapters/prisma/quiet-preferences.d.ts +12 -0
- package/dist/adapters/prisma/quiet-preferences.js +49 -0
- package/dist/adapters/prisma/quiet-preferences.js.map +1 -0
- package/dist/adapters/trpc/router.d.ts +76 -0
- package/dist/adapters/trpc/router.js +35 -0
- package/dist/adapters/trpc/router.js.map +1 -1
- package/dist/app.js +15 -2
- package/dist/app.js.map +1 -1
- package/dist/core/argo-inbox/wake-for-argo.d.ts +3 -1
- package/dist/core/argo-inbox/wake-for-argo.js +10 -2
- package/dist/core/argo-inbox/wake-for-argo.js.map +1 -1
- package/dist/core/people/inbox-entry.d.ts +3 -1
- package/dist/core/people/inbox-entry.js +2 -2
- package/dist/core/people/inbox-entry.js.map +1 -1
- package/dist/core/people/person-wakes.d.ts +9 -2
- package/dist/core/people/person-wakes.js +10 -2
- package/dist/core/people/person-wakes.js.map +1 -1
- package/dist/core/people/quiet-hours.d.ts +40 -0
- package/dist/core/people/quiet-hours.js +65 -0
- package/dist/core/people/quiet-hours.js.map +1 -0
- package/dist/core/people/quiet-ships.d.ts +40 -0
- package/dist/core/people/quiet-ships.js +24 -0
- package/dist/core/people/quiet-ships.js.map +1 -0
- package/dist/core/people/read-quiet-among.d.ts +15 -0
- package/dist/core/people/read-quiet-among.js +15 -0
- package/dist/core/people/read-quiet-among.js.map +1 -0
- package/dist/core/people/read-quiet-hours.d.ts +30 -0
- package/dist/core/people/read-quiet-hours.js +35 -0
- package/dist/core/people/read-quiet-hours.js.map +1 -0
- package/dist/core/people/read-quiet-ships.d.ts +26 -0
- package/dist/core/people/read-quiet-ships.js +19 -0
- package/dist/core/people/read-quiet-ships.js.map +1 -0
- package/dist/core/people/set-quiet-hours.d.ts +21 -0
- package/dist/core/people/set-quiet-hours.js +24 -0
- package/dist/core/people/set-quiet-hours.js.map +1 -0
- package/dist/core/people/turn-ship-quiet.d.ts +24 -0
- package/dist/core/people/turn-ship-quiet.js +25 -0
- package/dist/core/people/turn-ship-quiet.js.map +1 -0
- package/dist/core/people/wake-person.d.ts +10 -1
- package/dist/core/people/wake-person.js +18 -2
- package/dist/core/people/wake-person.js.map +1 -1
- package/dist/core/shared/errors.d.ts +1 -1
- package/dist/core/shared/errors.js.map +1 -1
- package/package.json +1 -1
- package/src/adapters/prisma/migrations/20261111090000_quiet_preferences/migration.sql +27 -0
- package/src/adapters/prisma/schema.prisma +28 -0
- package/web/.next/BUILD_ID +1 -1
- package/web/.next/build-manifest.json +3 -3
- package/web/.next/diagnostics/route-bundle-stats.json +65 -65
- 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.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 +4 -4
- 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 +3 -3
- 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/messages/page/server-reference-manifest.json +11 -11
- package/web/.next/server/app/(bridge)/bridge/messages/page.js.nft.json +1 -1
- package/web/.next/server/app/(bridge)/bridge/messages/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(bridge)/bridge/page/server-reference-manifest.json +10 -10
- 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 +3 -3
- 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 +4 -4
- 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 +7 -7
- 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 +10 -10
- 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/(bridge)/outside-parties/[name]/change/page/server-reference-manifest.json +20 -20
- package/web/.next/server/app/(bridge)/outside-parties/[name]/change/page.js.nft.json +1 -1
- package/web/.next/server/app/(bridge)/outside-parties/[name]/change/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(bridge)/outside-parties/[name]/page/server-reference-manifest.json +10 -10
- package/web/.next/server/app/(bridge)/outside-parties/[name]/page.js.nft.json +1 -1
- package/web/.next/server/app/(bridge)/outside-parties/[name]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(bridge)/outside-parties/[name]/retire/page/server-reference-manifest.json +20 -20
- package/web/.next/server/app/(bridge)/outside-parties/[name]/retire/page.js.nft.json +1 -1
- package/web/.next/server/app/(bridge)/outside-parties/[name]/retire/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(bridge)/outside-parties/add/page/server-reference-manifest.json +12 -12
- package/web/.next/server/app/(bridge)/outside-parties/add/page.js.nft.json +1 -1
- package/web/.next/server/app/(bridge)/outside-parties/add/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(bridge)/outside-parties/add-a2a-agent/page/server-reference-manifest.json +4 -4
- package/web/.next/server/app/(bridge)/outside-parties/add-a2a-agent/page.js.nft.json +1 -1
- package/web/.next/server/app/(bridge)/outside-parties/add-a2a-agent/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(bridge)/outside-parties/add-a2a-client/page/server-reference-manifest.json +4 -4
- package/web/.next/server/app/(bridge)/outside-parties/add-a2a-client/page.js.nft.json +1 -1
- package/web/.next/server/app/(bridge)/outside-parties/add-a2a-client/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(bridge)/outside-parties/page/server-reference-manifest.json +4 -4
- package/web/.next/server/app/(bridge)/outside-parties/page.js.nft.json +1 -1
- package/web/.next/server/app/(bridge)/outside-parties/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.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.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)/parties/page/server-reference-manifest.json +8 -8
- 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.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 +9 -9
- 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 +9 -9
- 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 +9 -9
- 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 +9 -9
- 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.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.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.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.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_messages_page_actions_1tg2-lw0i6g9l.js +1 -1
- package/web/.next/server/chunks/ssr/0b9d__next-internal_server_app_(bridge)_bridge_messages_page_actions_1tg2-lw0i6g9l.js.map +1 -1
- package/web/.next/server/chunks/ssr/0b9d__next-internal_server_app_(bridge)_bridge_settings_page_actions_0_te6h-2xxp7l.js +1 -1
- package/web/.next/server/chunks/ssr/0b9d__next-internal_server_app_(bridge)_bridge_settings_page_actions_0_te6h-2xxp7l.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_(bridge)_outside-parties_[name]_change_page_actions_1is-kjq5bubl4.js +1 -1
- package/web/.next/server/chunks/ssr/0vkm_server_app_(bridge)_outside-parties_[name]_change_page_actions_1is-kjq5bubl4.js.map +1 -1
- package/web/.next/server/chunks/ssr/0vkm_server_app_(bridge)_outside-parties_[name]_page_actions_1mctxtlzsa7xi.js +1 -1
- package/web/.next/server/chunks/ssr/0vkm_server_app_(bridge)_outside-parties_[name]_page_actions_1mctxtlzsa7xi.js.map +1 -1
- package/web/.next/server/chunks/ssr/0vkm_server_app_(bridge)_outside-parties_[name]_retire_page_actions_0xh6ok1un7s9k.js +1 -1
- package/web/.next/server/chunks/ssr/0vkm_server_app_(bridge)_outside-parties_[name]_retire_page_actions_0xh6ok1un7s9k.js.map +1 -1
- package/web/.next/server/chunks/ssr/0vkm_server_app_(bridge)_outside-parties_add-a2a-agent_page_actions_1w1q5eavo_loo.js +1 -1
- package/web/.next/server/chunks/ssr/0vkm_server_app_(bridge)_outside-parties_add-a2a-agent_page_actions_1w1q5eavo_loo.js.map +1 -1
- package/web/.next/server/chunks/ssr/0vkm_server_app_(bridge)_outside-parties_add_page_actions_0urcbg_r0lo7j.js +1 -1
- package/web/.next/server/chunks/ssr/0vkm_server_app_(bridge)_outside-parties_add_page_actions_0urcbg_r0lo7j.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__04g-10_lwy-l2._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__0ovcg5tg3nh49._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__0ovcg5tg3nh49._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__0ro-majrw7piv._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__0ro-majrw7piv._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__0zz6fx0keti4r._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__0zz6fx0keti4r._.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]__19p4g16n2nh0b._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__19p4g16n2nh0b._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__1ncn4wx-1i09m._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__1ncn4wx-1i09m._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__1vrtfw4dxnfxt._.js +1 -1
- 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/_0_nfv33ug5g31._.js +1 -1
- package/web/.next/server/chunks/ssr/_0_nfv33ug5g31._.js.map +1 -1
- 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/{_0-785idcov4j4._.js → _0nz6sbd5qnb97._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_17pnprd-0lxai._.js.map → _0nz6sbd5qnb97._.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/{_17pnprd-0lxai._.js → _0tvjhfjjhmllr._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_0-785idcov4j4._.js.map → _0tvjhfjjhmllr._.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/{_0nh9w3mh82f53._.js → _13b33o-hvhs42._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_1q5o7l5d6r_f5._.js.map → _13b33o-hvhs42._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_1cs_0d0h7mhw0._.js +1 -1
- package/web/.next/server/chunks/ssr/_1cs_0d0h7mhw0._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_1q5o7l5d6r_f5._.js → _1j8eks4eyxdp2._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_0nh9w3mh82f53._.js.map → _1j8eks4eyxdp2._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_1l2qxsuvs6qro._.js +3 -0
- package/web/.next/server/chunks/ssr/{_1cxulh-x54r6v._.js.map → _1l2qxsuvs6qro._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_1pd7s9yymb567._.js +57 -0
- package/web/.next/server/chunks/ssr/_1pd7s9yymb567._.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/_1preuo1e_lntw._.js +3 -0
- package/web/.next/server/chunks/ssr/{_1j80let80btdj._.js.map → _1preuo1e_lntw._.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/_20soyq-dwc131._.js +57 -0
- package/web/.next/server/chunks/ssr/_20soyq-dwc131._.js.map +1 -0
- package/web/.next/server/chunks/ssr/web_0a9n7acgjrk5c._.js +1 -1
- package/web/.next/server/chunks/ssr/web_0a9n7acgjrk5c._.js.map +1 -1
- package/web/.next/server/chunks/ssr/web_1vvrekkq5mirt._.js +1 -1
- package/web/.next/server/chunks/ssr/web_1vvrekkq5mirt._.js.map +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_fleet_page_actions_19wmo6phgvqfk.js +1 -1
- package/web/.next/server/chunks/ssr/web__next-internal_server_app_(bridge)_bridge_fleet_page_actions_19wmo6phgvqfk.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_features_1kv2-nwrqcvkb._.js → web_features_0r6fdx9tk4lfm._.js} +2 -2
- package/web/.next/server/chunks/ssr/{web_features_1kv2-nwrqcvkb._.js.map → web_features_0r6fdx9tk4lfm._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/{web_features_1ldqjm-0yawn-._.js → web_features_115v4ed7e_b-8._.js} +2 -2
- package/web/.next/server/chunks/ssr/{web_features_1ldqjm-0yawn-._.js.map → web_features_115v4ed7e_b-8._.js.map} +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_bridge_1kjza9vdof095._.js → web_features_bridge_0cugt1x2wt4m0._.js} +2 -2
- package/web/.next/server/chunks/ssr/{web_features_bridge_1kjza9vdof095._.js.map → web_features_bridge_0cugt1x2wt4m0._.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_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_message-rows_tsx_1ky4-xa4az_yu._.js +1 -1
- package/web/.next/server/chunks/ssr/web_features_bridge_state_message-rows_tsx_1ky4-xa4az_yu._.js.map +1 -1
- package/web/.next/server/chunks/ssr/web_features_bridge_state_messages-panel_tsx_1yvr_ww639d25._.js +1 -1
- package/web/.next/server/chunks/ssr/web_features_bridge_state_messages-panel_tsx_1yvr_ww639d25._.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_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 +50 -50
- package/web/.next/static/chunks/{1-fz8siz2ll12.js → 0-r1bwsrnja6x.js} +1 -1
- package/web/.next/static/chunks/{2h_eln166j2qm.js → 0fm-6zl5hm5-9.js} +1 -1
- package/web/.next/static/chunks/{0u8l5qlnqqouz.js → 0iu2ts1oy1nzi.js} +1 -1
- package/web/.next/static/chunks/{0mgpgj4c1qyd-.js → 0yx6w-_36c76d.js} +1 -1
- package/web/.next/static/chunks/{0r0gremjx2f00.js → 1mke3ztpr-wmu.js} +1 -1
- package/web/.next/static/chunks/{0d9nwi_5jtx1s.js → 1nicl2mkstipv.js} +1 -1
- package/web/.next/static/chunks/{2xewn4wc6-r89.js → 1t0fq-vepg52w.js} +1 -1
- package/web/.next/static/chunks/{2zy50m3u0ncal.js → 1xzhbir4zphli.js} +1 -1
- package/web/.next/static/chunks/{2uyfitze_si6t.js → 1zy3y1lvr38g4.js} +1 -1
- package/web/.next/static/chunks/{1qk1rg1nlwibf.js → 2-wl7cajj-ynx.js} +4 -4
- package/web/.next/static/chunks/{1gws30z-w_b5u.js → 2a8ce88qvmtth.js} +1 -1
- package/web/.next/static/chunks/{3qx9pxz84tr19.js → 2o5u1c-wzvbgm.js} +1 -1
- package/web/.next/static/chunks/{1l7xdbkkzyg84.js → 2rtc0exjb6w5l.js} +1 -1
- package/web/.next/static/chunks/{3vslm1-mw-xs2.js → 2s1d7_ca-qsif.js} +1 -1
- package/web/.next/static/chunks/{363hplgln_a8l.js → 39m3_x0v7i-za.js} +1 -1
- package/web/.next/static/chunks/{2bwa_vmicucp7.js → 3_jnl679rr4gb.js} +1 -1
- package/web/.next/static/chunks/{3jmofkmbej71o.js → 3ool2gtdd_dtc.js} +1 -1
- package/web/.next/static/chunks/{3_pcw5v326or4.js → 3z9siyl43u-rb.js} +1 -1
- package/web/.next/static/chunks/{1y0i5sfbser7m.js → 3zqj28w22cklq.js} +1 -1
- package/web/.next/trace +1 -1
- package/web/.next/trace-build +1 -1
- package/web/.next/server/chunks/ssr/_1cxulh-x54r6v._.js +0 -3
- package/web/.next/server/chunks/ssr/_1j80let80btdj._.js +0 -3
- package/web/.next/server/chunks/ssr/_1unzgziqo0j03._.js +0 -57
- package/web/.next/server/chunks/ssr/_1unzgziqo0j03._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_1yy6lx5ur8mbz._.js +0 -57
- package/web/.next/server/chunks/ssr/_1yy6lx5ur8mbz._.js.map +0 -1
- /package/web/.next/static/{EmsE5wPdK7fJYQ7DzIz5z → vYCXAc7TLc4U7-Vynu6VC}/_buildManifest.js +0 -0
- /package/web/.next/static/{EmsE5wPdK7fJYQ7DzIz5z → vYCXAc7TLc4U7-Vynu6VC}/_clientMiddlewareManifest.js +0 -0
- /package/web/.next/static/{EmsE5wPdK7fJYQ7DzIz5z → vYCXAc7TLc4U7-Vynu6VC}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[70812,71136,96315,28623,e=>{var t=e.i(56420);let a={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"}]]};a.node;let n=(0,t.f)(a);e.s(["f",0,n],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 r=(0,t.f)(i);e.s(["f",0,r],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 d={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"]};d.node;let l=(0,t.f)(d);e.s(["f",0,l],28623)},51481,59381,e=>{var t=e.i(75043);e.s(["f",()=>t.f],51481);var a=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,a.f)(n);e.s(["f",0,i],59381)},66595,e=>{var t=e.i(56420);let a={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};a.node;let n=(0,t.f)(a);e.s(["f",0,n],66595)},95187,(e,t,a)=>{Object.defineProperty(a,"__esModule",{value:!0});var n={callServer:function(){return r.callServer},createServerReference:function(){return o.createServerReference},findSourceMapURL:function(){return s.findSourceMapURL}};for(var i in n)Object.defineProperty(a,i,{enumerable:!0,get:n[i]});let r=e.r(32120),s=e.r(92245),o=e.r(35326)},28201,31714,e=>{var t=e.i(95187);let a=(0,t.createServerReference)("409c34adc4d955891186c0c193daea56c87d4a4f70",t.callServer,void 0,t.findSourceMapURL,"turnRoute");e.s(["f",0,a],28201);var n=e.i(70812),i=e.i(51481),r=e.i(59381),s=e.i(71136),o=e.i(96315),d=e.i(56420);let l={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"]};l.node;let c=(0,d.f)(l);var u=e.i(49287),m=e.i(28623);let h={decide:{Icon:i.f,tone:"text-tone-active-fg"},do:{Icon:r.f,tone:"text-tone-waiting-fg"},"stay-aware":{Icon:n.f,tone:"text-muted-foreground"},"everything-else":{Icon:c,tone:"text-muted-foreground"}},f=u.f,p={slack:s.f,chat:m.f,"web-push":n.f,email:o.f};e.s(["x",0,f,"c",0,h,"U",0,p],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"}},a={slack:"Slack",chat:"A chat","web-push":"Web push",email:"Email"},n=["decide","do"],i="Bridge keeps every item.",r={label:"Not offered",isOk:!1},s={label:"Off",isOk:!1},o="Says only that something waits, with a link here.",d=`${o} 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,a,"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:o,action:"turnOff"}:{state:s,description:d,action:"turnOn"}:{state:r,description:"This gateway sends no email.",action:"none"}},"T",0,function(e,t){return e.jobs.filter(({job:e,places:a})=>a.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])],a=t.at(-1),n=1===t.length?"Bridge":`${t.slice(0,-1).join(", ")} and ${String(a)}`;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:a}=e;return null===a?{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 @${a.slackName} in ${t}. A button press or a thread reply there is yours.`,action:"unlink"}},"b",0,function(e){let{job:n,place:r,isOn:s,waiting:o,isChatOn:d}=e,{name:l,item:c,items:u}=t[n],m=`${a[r]} is ${s?"on":"off"} for ${l}`;return s?"chat"===r?{title:m,detail:`A chat lists every ${c} not done when you ask it.`}:{title:m,detail:`${a[r]} shows ${u} that arrive from now on.${void 0===o||0===o?"":` The ${String(o)} already waiting ${1===o?"stays":"stay"} ${d?"in Bridge and in a chat":"in Bridge"}.`}`}:{title:m,detail:"everything-else"===n&&"slack"===r?`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:r,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:a})=>t===e.ownEndpoint&&!a);return void 0===t?{state:s,description:d,action:"turnOn"}:{state:{label:"This browser",isOk:!0},description:`${t.browser}. ${o}`,action:"remove"}}])},41398,e=>{var t=e.i(43476),a=e.i(71645),n=e.i(28201),i=e.i(95187);let r=(0,i.createServerReference)("4024e6fc27987364a89dc128b78cfa40461e40eb7c",i.callServer,void 0,i.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"]],d=(e,t)=>t.find(([t])=>t.test(e))?.[1],l=(0,i.createServerReference)("6052be75df2875e64a4cc10e0e01706af01bc04763",i.callServer,void 0,i.findSourceMapURL,"turnOffWebPush"),c=(0,i.createServerReference)("606b205d3e5fb403566f3ec1a2b42a44c783115c34",i.callServer,void 0,i.findSourceMapURL,"turnOnWebPush"),u="/wake-worker.js";async function m(){let e=await navigator.serviceWorker.getRegistration(u);return await e?.pushManager.getSubscription()??null}async function h(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 a=await navigator.serviceWorker.register(u);return await navigator.serviceWorker.ready,{isOk:!0,value:await a.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:(t=atob(e.replaceAll("-","+").replaceAll("_","/")),Uint8Array.from(t,e=>e.charCodeAt(0)))})}}var f=e.i(31785),p=e.i(55070),g=e.i(63132),b=e.i(85595),x=e.i(19002);function v({place:e,name:a,Icon:n,card:i,children:r}){let s=i.state.isOk?b.f:x.f;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)(n,{"aria-hidden":!0,className:"size-4 shrink-0"}),a,(0,t.jsxs)("span",{"data-testid":`bridge-place-${e}-state`,className:`ml-auto inline-flex items-center gap-1 text-caption font-medium ${i.state.isOk?"text-tone-ok-fg":"text-muted-foreground"}`,children:[(0,t.jsx)(s,{"aria-hidden":!0,className:"size-3.5"}),i.state.label]})]}),(0,t.jsx)("span",{className:"text-caption text-muted-foreground",children:i.description}),void 0===r?null:(0,t.jsx)("span",{className:"mt-auto flex flex-col items-start gap-1.5",children:r})]})}var k=e.i(31714);function y({fleetId:e,slackLink:n}){let[i,s]=(0,a.useTransition)(),[o,d]=(0,a.useState)(),l=(0,f.H)(n);return(0,t.jsxs)(v,{place:"slack",name:f.k.slack,Icon:k.U.slack,card:l,children:["link"===l.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"===l.action?(0,t.jsx)(p.i,{size:"xs","data-testid":"bridge-slack-unlink",isPending:i,pendingLabel:"Unlinking...",onClick:()=>{d(void 0),s(async()=>{let t=await r(e);t.isOk||d(t.message)})},children:"Unlink"}):null,void 0===o?null:(0,t.jsx)(g.f,{message:o,isFailure:!0})]})}function w({fleetId:e,webPush:n}){let i=n?.browsers??[],{isTaken:r,ownEndpoint:u,working:b,failure:x,turnOn:y,remove:j}=function({fleetId:e,webPushKey:t}){let[n,i]=(0,a.useState)(!0),[r,u]=(0,a.useState)(),[f,p]=(0,a.useState)(),[g,b]=(0,a.useState)(),[,x]=(0,a.useTransition)();return(0,a.useEffect)(()=>{"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window?m().then(e=>{u(e?.endpoint)}):i(!1)},[]),{isTaken:n,ownEndpoint:r,working:f,failure:g,turnOn:()=>{null!==t&&(p("on"),b(void 0),x(async()=>{try{var a;let n,i,r=await h(t);if(!r.isOk)return void b(r.message);let l=function(e,t){let{endpoint:a,keys:n}=e,i=n?.p256dh,r=n?.auth;return void 0===a||void 0===i||void 0===r?void 0:{endpoint:a,keys:{p256dh:i,auth:r},browser:t}}(r.value.toJSON(),(a=navigator.userAgent,n=d(a,s),i=d(a,o),void 0===n?"A browser":void 0===i?n:`${n} on ${i}`));if(void 0===l)return void b("Your browser gave no push subscription: try again");let m=await c(e,l);m.isOk?u(l.endpoint):b(m.message)}catch{b("Your browser could not turn web push on: try again")}finally{p(void 0)}}))},remove:t=>{p(t),b(void 0),x(async()=>{t===r&&(await (await m())?.unsubscribe(),u(void 0));let a=await l(e,t);p(void 0),a.isOk||b(a.message)})}}}({fleetId:e,webPushKey:n?.publicKey??null}),S=(0,f.B)({isOffered:void 0!==n&&null!==n.publicKey,isTaken:r,ownEndpoint:u,browsers:i}),O=i.filter(({endpoint:e})=>"remove"!==S.action||e!==u);return(0,t.jsxs)(v,{place:"web-push",name:f.k["web-push"],Icon:k.U["web-push"],card:S,children:["remove"===S.action&&void 0!==u?(0,t.jsx)(p.i,{size:"xs","data-testid":"bridge-web-push-remove",isPending:b===u,pendingLabel:"Removing...",disabled:void 0!==b,onClick:()=>{j(u)},children:"Remove"}):null,"turnOn"===S.action?(0,t.jsx)(p.i,{size:"xs","data-testid":"bridge-web-push-on",isPending:"on"===b,pendingLabel:"Turning on...",disabled:void 0!==b,onClick:y,children:"Turn on"}):null,O.map(({endpoint:e,browser:a,isGone:n})=>(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:n?`${a}: no longer takes wakes`:`Also on in ${a}`}),(0,t.jsx)("button",{type:"button","data-testid":"bridge-web-push-remove-other",disabled:void 0!==b,onClick:()=>{j(e)},className:"underline hover:text-foreground disabled:opacity-50",children:b===e?"Removing...":"Remove"})]},e)),void 0===x?null:(0,t.jsx)(g.f,{message:x,isFailure:!0})]})}function j({fleetId:e,routing:i}){let[r,s]=(0,a.useTransition)(),[o,d]=(0,a.useState)(),l=(0,f.t)({isOffered:i.offered.email,isOnForAnyJob:i.jobs.some(({places:e})=>e.email)});return(0,t.jsxs)(v,{place:"email",name:f.k.email,Icon:k.U.email,card:l,children:["turnOn"===l.action||"turnOff"===l.action?(0,t.jsx)(p.i,{size:"xs","data-testid":"bridge-email-turn",isPending:r,pendingLabel:"turnOn"===l.action?"Turning on...":"Turning off...",onClick:()=>{var t;t="turnOn"===l.action,d(void 0),s(async()=>{for(let a of(0,f.T)(i,t)){let t=await (0,n.f)({fleet:e,...a});if(!t.isOk)return void d(t.message)}})},children:"turnOn"===l.action?"Turn on":"Turn off"}):null,void 0===o?null:(0,t.jsx)(g.f,{message:o,isFailure:!0})]})}e.s(["PlacesPanel",0,function({fleetId:e,routing:a,slackLink:n,chats:i,webPush:r}){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)(y,{fleetId:e,slackLink:n}),(0,t.jsx)(v,{place:"chat",name:f.k.chat,Icon:k.U.chat,card:(0,f.g)(i)}),(0,t.jsx)(w,{fleetId:e,webPush:r}),(0,t.jsx)(j,{fleetId:e,routing:a})]})}],41398)},85678,e=>{var t=e.i(43476),a=e.i(85595),n=e.i(71645),i=e.i(28201),r=e.i(31785),s=e.i(63132),o=e.i(31714);function d({isOn:e,label:a,isDisabled:n,isBusy:i=!1,aside:r,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":a,"aria-busy":i,disabled:n,"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===r?null:(0,t.jsx)("span",{className:"text-caption text-muted-foreground",children:r})]})}let l="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)(a.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:a}){return(0,t.jsxs)("span",{className:"flex items-center justify-between sm:block",children:[(0,t.jsx)("span",{className:"sm:hidden",children:e}),a]})}e.s(["RoutingPanel",0,function({fleetId:e,routing:a,isSlackLinked:m,waitingByJob:h}){let[f,p]=(0,n.useTransition)(),[g,b]=(0,n.useState)(),[x,v]=(0,n.useState)(),[k,y]=(0,n.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 ${l}`,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"]}),r.N.map(e=>{let a=o.U[e];return(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,t.jsx)(a,{className:"size-3.5"}),r.k[e]]},e)})]}),a.jobs.map(({job:n,places:s})=>{let{Icon:c,tone:x}=o.c[n];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 ${l}`,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 ${x}`}),r.I[n].name]}),(0,t.jsx)("span",{className:"text-caption text-muted-foreground max-sm:hidden",children:r.I[n].holds})]}),(0,t.jsx)(u,{name:"Bridge",children:(0,t.jsx)(d,{isOn:!0,label:`Bridge for ${r.I[n].name}`,isDisabled:!0,aside:"Always",testId:`bridge-routing-${n}-bridge`})}),r.N.map(o=>{let l=s[o],c=`${n}-${o}`;return(0,t.jsx)(u,{name:r.k[o],children:(0,t.jsx)(d,{isOn:l,label:`${r.k[o]} for ${r.I[n].name}`,isDisabled:f||!l&&(!a.offered[o]||"slack"===o&&!m),isBusy:f&&g===c,..."everything-else"===n&&"slack"===o&&!l?{aside:"Bots only"}:{},testId:`bridge-routing-${c}`,onTurn:()=>{var t;t={job:n,place:o,isOn:!l,isChatOn:s.chat},v(void 0),y(void 0),b(`${t.job}-${t.place}`),p(async()=>{let{isChatOn:a,...n}=t,s=await (0,i.f)({fleet:e,...n});s.isOk?v((0,r.b)({...n,waiting:h[n.job],isChatOn:a})):y(s.message)})}})},o)})]},n)})]}),void 0===x?null:(0,t.jsx)(c,{toast:x}),void 0===k?null:(0,t.jsx)(s.f,{message:k,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 a={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"},n={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:r="secondary",size:s="regular",children:o,className:d="",disabled:l,...c}){return(0,t.jsx)("button",{...c,disabled:!0===l||e,"aria-busy":e,className:`inline-flex items-center rounded-md disabled:cursor-not-allowed disabled:opacity-70 ${n[s]} ${a[r]} ${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]}):o})},"o",0,n])},63132,e=>{var t=e.i(43476);e.s(["f",0,function({message:e,isFailure:a}){return a?(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})}])},30402,e=>{let t="inline-flex h-9 items-center justify-center gap-2 rounded-md px-4 font-medium disabled:opacity-60",a={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,a,"r",0,"rounded-lg border border-border bg-card p-6 text-card-foreground shadow-sm","E",0,"rounded-lg border border-border bg-card p-3 text-card-foreground","w",0,"h-9 w-full rounded-md border border-input bg-background px-3 font-mono text-code","z",0,"grid gap-1","D",0,"h-9 w-full appearance-none rounded-md border border-input bg-background pr-8 pl-3"])},67914,e=>{var t=e.i(43476),a=e.i(71645),n=e.i(95187);let i=(0,n.createServerReference)("406e70c54d0df55ecef3263e68bd02259fd622902e",n.callServer,void 0,n.findSourceMapURL,"setTheme"),r=["light","dark","system"];e.s(["f",0,function({email:e,accountUrl:n,theme:s,entries:o=[]}){let[d,l]=(0,a.useState)(s),[c,u]=(0,a.useState)(!1),m=(0,a.useRef)(null);return{account:{name:e,signedInAs:"account",accountUrl:n,theme:d,themes:r,hasTheme:!0,onThemeChange:e=>{let t;l(e),document.documentElement.dataset.theme=e,t="dark"===e||"system"===e&&window.matchMedia("(prefers-color-scheme: dark)").matches,document.documentElement.classList.toggle("dark",t),i(e)},shortcuts:[],helpUrl:"https://github.com/ThomasHendrickx/aeolus-fleet",onSignOut:()=>{u(!0),m.current?.requestSubmit()},isSigningOut:c,entries:o},signOutForm:(0,t.jsx)("form",{ref:m,method:"post",action:"/sign-in/end",hidden:!0})}}],67914)},65894,e=>{let t="fleet";e.s(["n",0,t,"i",0,function(e,a){let[n="",i=""]=e.split("?"),r=new URLSearchParams(i);return r.set(t,a),`${n}?${r.toString()}`}])}],18566,(e,t,a)=>{t.exports=e.r(76562)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[70812,71136,96315,28623,e=>{var t=e.i(56420);let a={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"}]]};a.node;let n=(0,t.f)(a);e.s(["f",0,n],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 r=(0,t.f)(i);e.s(["f",0,r],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 d={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"]};d.node;let l=(0,t.f)(d);e.s(["f",0,l],28623)},51481,59381,e=>{var t=e.i(75043);e.s(["f",()=>t.f],51481);var a=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,a.f)(n);e.s(["f",0,i],59381)},66595,e=>{var t=e.i(56420);let a={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};a.node;let n=(0,t.f)(a);e.s(["f",0,n],66595)},95187,(e,t,a)=>{Object.defineProperty(a,"__esModule",{value:!0});var n={callServer:function(){return r.callServer},createServerReference:function(){return o.createServerReference},findSourceMapURL:function(){return s.findSourceMapURL}};for(var i in n)Object.defineProperty(a,i,{enumerable:!0,get:n[i]});let r=e.r(32120),s=e.r(92245),o=e.r(35326)},10382,31714,e=>{var t=e.i(95187);let a=(0,t.createServerReference)("40851474546bb6050b9c1673574763c9015cb573b0",t.callServer,void 0,t.findSourceMapURL,"turnRoute");e.s(["f",0,a],10382);var n=e.i(70812),i=e.i(51481),r=e.i(59381),s=e.i(71136),o=e.i(96315),d=e.i(56420);let l={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"]};l.node;let c=(0,d.f)(l);var u=e.i(49287),m=e.i(28623);let h={decide:{Icon:i.f,tone:"text-tone-active-fg"},do:{Icon:r.f,tone:"text-tone-waiting-fg"},"stay-aware":{Icon:n.f,tone:"text-muted-foreground"},"everything-else":{Icon:c,tone:"text-muted-foreground"}},f=u.f,p={slack:s.f,chat:m.f,"web-push":n.f,email:o.f};e.s(["x",0,f,"c",0,h,"U",0,p],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"}},a={slack:"Slack",chat:"A chat","web-push":"Web push",email:"Email"},n=["decide","do"],i="Bridge keeps every item.",r={label:"Not offered",isOk:!1},s={label:"Off",isOk:!1},o="Says only that something waits, with a link here.",d=`${o} 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,a,"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:o,action:"turnOff"}:{state:s,description:d,action:"turnOn"}:{state:r,description:"This gateway sends no email.",action:"none"}},"T",0,function(e,t){return e.jobs.filter(({job:e,places:a})=>a.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])],a=t.at(-1),n=1===t.length?"Bridge":`${t.slice(0,-1).join(", ")} and ${String(a)}`;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:a}=e;return null===a?{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 @${a.slackName} in ${t}. A button press or a thread reply there is yours.`,action:"unlink"}},"b",0,function(e){let{job:n,place:r,isOn:s,waiting:o,isChatOn:d}=e,{name:l,item:c,items:u}=t[n],m=`${a[r]} is ${s?"on":"off"} for ${l}`;return s?"chat"===r?{title:m,detail:`A chat lists every ${c} not done when you ask it.`}:{title:m,detail:`${a[r]} shows ${u} that arrive from now on.${void 0===o||0===o?"":` The ${String(o)} already waiting ${1===o?"stays":"stay"} ${d?"in Bridge and in a chat":"in Bridge"}.`}`}:{title:m,detail:"everything-else"===n&&"slack"===r?`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:r,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:a})=>t===e.ownEndpoint&&!a);return void 0===t?{state:s,description:d,action:"turnOn"}:{state:{label:"This browser",isOk:!0},description:`${t.browser}. ${o}`,action:"remove"}}])},41398,e=>{var t=e.i(43476),a=e.i(71645),n=e.i(10382),i=e.i(95187);let r=(0,i.createServerReference)("408e6f24db5065efd928f81f25d62b9719287485a7",i.callServer,void 0,i.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"]],d=(e,t)=>t.find(([t])=>t.test(e))?.[1],l=(0,i.createServerReference)("602fa58c255cd72f58db026a762283664a7e5646e7",i.callServer,void 0,i.findSourceMapURL,"turnOffWebPush"),c=(0,i.createServerReference)("60300138ce447048538ba96f3c08fe75eeadc5b326",i.callServer,void 0,i.findSourceMapURL,"turnOnWebPush"),u="/wake-worker.js";async function m(){let e=await navigator.serviceWorker.getRegistration(u);return await e?.pushManager.getSubscription()??null}async function h(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 a=await navigator.serviceWorker.register(u);return await navigator.serviceWorker.ready,{isOk:!0,value:await a.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:(t=atob(e.replaceAll("-","+").replaceAll("_","/")),Uint8Array.from(t,e=>e.charCodeAt(0)))})}}var f=e.i(31785),p=e.i(55070),g=e.i(63132),b=e.i(85595),x=e.i(19002);function v({place:e,name:a,Icon:n,card:i,children:r}){let s=i.state.isOk?b.f:x.f;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)(n,{"aria-hidden":!0,className:"size-4 shrink-0"}),a,(0,t.jsxs)("span",{"data-testid":`bridge-place-${e}-state`,className:`ml-auto inline-flex items-center gap-1 text-caption font-medium ${i.state.isOk?"text-tone-ok-fg":"text-muted-foreground"}`,children:[(0,t.jsx)(s,{"aria-hidden":!0,className:"size-3.5"}),i.state.label]})]}),(0,t.jsx)("span",{className:"text-caption text-muted-foreground",children:i.description}),void 0===r?null:(0,t.jsx)("span",{className:"mt-auto flex flex-col items-start gap-1.5",children:r})]})}var k=e.i(31714);function y({fleetId:e,slackLink:n}){let[i,s]=(0,a.useTransition)(),[o,d]=(0,a.useState)(),l=(0,f.H)(n);return(0,t.jsxs)(v,{place:"slack",name:f.k.slack,Icon:k.U.slack,card:l,children:["link"===l.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"===l.action?(0,t.jsx)(p.i,{size:"xs","data-testid":"bridge-slack-unlink",isPending:i,pendingLabel:"Unlinking...",onClick:()=>{d(void 0),s(async()=>{let t=await r(e);t.isOk||d(t.message)})},children:"Unlink"}):null,void 0===o?null:(0,t.jsx)(g.f,{message:o,isFailure:!0})]})}function w({fleetId:e,webPush:n}){let i=n?.browsers??[],{isTaken:r,ownEndpoint:u,working:b,failure:x,turnOn:y,remove:j}=function({fleetId:e,webPushKey:t}){let[n,i]=(0,a.useState)(!0),[r,u]=(0,a.useState)(),[f,p]=(0,a.useState)(),[g,b]=(0,a.useState)(),[,x]=(0,a.useTransition)();return(0,a.useEffect)(()=>{"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window?m().then(e=>{u(e?.endpoint)}):i(!1)},[]),{isTaken:n,ownEndpoint:r,working:f,failure:g,turnOn:()=>{null!==t&&(p("on"),b(void 0),x(async()=>{try{var a;let n,i,r=await h(t);if(!r.isOk)return void b(r.message);let l=function(e,t){let{endpoint:a,keys:n}=e,i=n?.p256dh,r=n?.auth;return void 0===a||void 0===i||void 0===r?void 0:{endpoint:a,keys:{p256dh:i,auth:r},browser:t}}(r.value.toJSON(),(a=navigator.userAgent,n=d(a,s),i=d(a,o),void 0===n?"A browser":void 0===i?n:`${n} on ${i}`));if(void 0===l)return void b("Your browser gave no push subscription: try again");let m=await c(e,l);m.isOk?u(l.endpoint):b(m.message)}catch{b("Your browser could not turn web push on: try again")}finally{p(void 0)}}))},remove:t=>{p(t),b(void 0),x(async()=>{t===r&&(await (await m())?.unsubscribe(),u(void 0));let a=await l(e,t);p(void 0),a.isOk||b(a.message)})}}}({fleetId:e,webPushKey:n?.publicKey??null}),S=(0,f.B)({isOffered:void 0!==n&&null!==n.publicKey,isTaken:r,ownEndpoint:u,browsers:i}),O=i.filter(({endpoint:e})=>"remove"!==S.action||e!==u);return(0,t.jsxs)(v,{place:"web-push",name:f.k["web-push"],Icon:k.U["web-push"],card:S,children:["remove"===S.action&&void 0!==u?(0,t.jsx)(p.i,{size:"xs","data-testid":"bridge-web-push-remove",isPending:b===u,pendingLabel:"Removing...",disabled:void 0!==b,onClick:()=>{j(u)},children:"Remove"}):null,"turnOn"===S.action?(0,t.jsx)(p.i,{size:"xs","data-testid":"bridge-web-push-on",isPending:"on"===b,pendingLabel:"Turning on...",disabled:void 0!==b,onClick:y,children:"Turn on"}):null,O.map(({endpoint:e,browser:a,isGone:n})=>(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:n?`${a}: no longer takes wakes`:`Also on in ${a}`}),(0,t.jsx)("button",{type:"button","data-testid":"bridge-web-push-remove-other",disabled:void 0!==b,onClick:()=>{j(e)},className:"underline hover:text-foreground disabled:opacity-50",children:b===e?"Removing...":"Remove"})]},e)),void 0===x?null:(0,t.jsx)(g.f,{message:x,isFailure:!0})]})}function j({fleetId:e,routing:i}){let[r,s]=(0,a.useTransition)(),[o,d]=(0,a.useState)(),l=(0,f.t)({isOffered:i.offered.email,isOnForAnyJob:i.jobs.some(({places:e})=>e.email)});return(0,t.jsxs)(v,{place:"email",name:f.k.email,Icon:k.U.email,card:l,children:["turnOn"===l.action||"turnOff"===l.action?(0,t.jsx)(p.i,{size:"xs","data-testid":"bridge-email-turn",isPending:r,pendingLabel:"turnOn"===l.action?"Turning on...":"Turning off...",onClick:()=>{var t;t="turnOn"===l.action,d(void 0),s(async()=>{for(let a of(0,f.T)(i,t)){let t=await (0,n.f)({fleet:e,...a});if(!t.isOk)return void d(t.message)}})},children:"turnOn"===l.action?"Turn on":"Turn off"}):null,void 0===o?null:(0,t.jsx)(g.f,{message:o,isFailure:!0})]})}e.s(["PlacesPanel",0,function({fleetId:e,routing:a,slackLink:n,chats:i,webPush:r}){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)(y,{fleetId:e,slackLink:n}),(0,t.jsx)(v,{place:"chat",name:f.k.chat,Icon:k.U.chat,card:(0,f.g)(i)}),(0,t.jsx)(w,{fleetId:e,webPush:r}),(0,t.jsx)(j,{fleetId:e,routing:a})]})}],41398)},85678,e=>{var t=e.i(43476),a=e.i(85595),n=e.i(71645),i=e.i(10382),r=e.i(31785),s=e.i(63132),o=e.i(31714);function d({isOn:e,label:a,isDisabled:n,isBusy:i=!1,aside:r,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":a,"aria-busy":i,disabled:n,"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===r?null:(0,t.jsx)("span",{className:"text-caption text-muted-foreground",children:r})]})}let l="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)(a.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:a}){return(0,t.jsxs)("span",{className:"flex items-center justify-between sm:block",children:[(0,t.jsx)("span",{className:"sm:hidden",children:e}),a]})}e.s(["RoutingPanel",0,function({fleetId:e,routing:a,isSlackLinked:m,waitingByJob:h}){let[f,p]=(0,n.useTransition)(),[g,b]=(0,n.useState)(),[x,v]=(0,n.useState)(),[k,y]=(0,n.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 ${l}`,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"]}),r.N.map(e=>{let a=o.U[e];return(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,t.jsx)(a,{className:"size-3.5"}),r.k[e]]},e)})]}),a.jobs.map(({job:n,places:s})=>{let{Icon:c,tone:x}=o.c[n];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 ${l}`,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 ${x}`}),r.I[n].name]}),(0,t.jsx)("span",{className:"text-caption text-muted-foreground max-sm:hidden",children:r.I[n].holds})]}),(0,t.jsx)(u,{name:"Bridge",children:(0,t.jsx)(d,{isOn:!0,label:`Bridge for ${r.I[n].name}`,isDisabled:!0,aside:"Always",testId:`bridge-routing-${n}-bridge`})}),r.N.map(o=>{let l=s[o],c=`${n}-${o}`;return(0,t.jsx)(u,{name:r.k[o],children:(0,t.jsx)(d,{isOn:l,label:`${r.k[o]} for ${r.I[n].name}`,isDisabled:f||!l&&(!a.offered[o]||"slack"===o&&!m),isBusy:f&&g===c,..."everything-else"===n&&"slack"===o&&!l?{aside:"Bots only"}:{},testId:`bridge-routing-${c}`,onTurn:()=>{var t;t={job:n,place:o,isOn:!l,isChatOn:s.chat},v(void 0),y(void 0),b(`${t.job}-${t.place}`),p(async()=>{let{isChatOn:a,...n}=t,s=await (0,i.f)({fleet:e,...n});s.isOk?v((0,r.b)({...n,waiting:h[n.job],isChatOn:a})):y(s.message)})}})},o)})]},n)})]}),void 0===x?null:(0,t.jsx)(c,{toast:x}),void 0===k?null:(0,t.jsx)(s.f,{message:k,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 a={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"},n={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:r="secondary",size:s="regular",children:o,className:d="",disabled:l,...c}){return(0,t.jsx)("button",{...c,disabled:!0===l||e,"aria-busy":e,className:`inline-flex items-center rounded-md disabled:cursor-not-allowed disabled:opacity-70 ${n[s]} ${a[r]} ${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]}):o})},"o",0,n])},63132,e=>{var t=e.i(43476);e.s(["f",0,function({message:e,isFailure:a}){return a?(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})}])},30402,e=>{let t="inline-flex h-9 items-center justify-center gap-2 rounded-md px-4 font-medium disabled:opacity-60",a={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,a,"r",0,"rounded-lg border border-border bg-card p-6 text-card-foreground shadow-sm","E",0,"rounded-lg border border-border bg-card p-3 text-card-foreground","w",0,"h-9 w-full rounded-md border border-input bg-background px-3 font-mono text-code","z",0,"grid gap-1","D",0,"h-9 w-full appearance-none rounded-md border border-input bg-background pr-8 pl-3"])},67914,e=>{var t=e.i(43476),a=e.i(71645),n=e.i(95187);let i=(0,n.createServerReference)("40e3c0037600697dd7e0800105f1231c3f942d5113",n.callServer,void 0,n.findSourceMapURL,"setTheme"),r=["light","dark","system"];e.s(["f",0,function({email:e,accountUrl:n,theme:s,entries:o=[]}){let[d,l]=(0,a.useState)(s),[c,u]=(0,a.useState)(!1),m=(0,a.useRef)(null);return{account:{name:e,signedInAs:"account",accountUrl:n,theme:d,themes:r,hasTheme:!0,onThemeChange:e=>{let t;l(e),document.documentElement.dataset.theme=e,t="dark"===e||"system"===e&&window.matchMedia("(prefers-color-scheme: dark)").matches,document.documentElement.classList.toggle("dark",t),i(e)},shortcuts:[],helpUrl:"https://github.com/ThomasHendrickx/aeolus-fleet",onSignOut:()=>{u(!0),m.current?.requestSubmit()},isSigningOut:c,entries:o},signOutForm:(0,t.jsx)("form",{ref:m,method:"post",action:"/sign-in/end",hidden:!0})}}],67914)},65894,e=>{let t="fleet";e.s(["n",0,t,"i",0,function(e,a){let[n="",i=""]=e.split("?"),r=new URLSearchParams(i);return r.set(t,a),`${n}?${r.toString()}`}])}],18566,(e,t,a)=>{t.exports=e.r(76562)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[66595,e=>{var r=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 s=(0,r.f)(n);e.s(["f",0,s],66595)},95187,(e,r,n)=>{Object.defineProperty(n,"__esModule",{value:!0});var s={callServer:function(){return t.callServer},createServerReference:function(){return d.createServerReference},findSourceMapURL:function(){return i.findSourceMapURL}};for(var a in s)Object.defineProperty(n,a,{enumerable:!0,get:s[a]});let t=e.r(32120),i=e.r(92245),d=e.r(35326)},95893,e=>{var r=e.i(43476),n=e.i(18566),s=e.i(71645),a=e.i(95187);let t=(0,a.createServerReference)("
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[66595,e=>{var r=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 s=(0,r.f)(n);e.s(["f",0,s],66595)},95187,(e,r,n)=>{Object.defineProperty(n,"__esModule",{value:!0});var s={callServer:function(){return t.callServer},createServerReference:function(){return d.createServerReference},findSourceMapURL:function(){return i.findSourceMapURL}};for(var a in s)Object.defineProperty(n,a,{enumerable:!0,get:s[a]});let t=e.r(32120),i=e.r(92245),d=e.r(35326)},95893,e=>{var r=e.i(43476),n=e.i(18566),s=e.i(71645),a=e.i(95187);let t=(0,a.createServerReference)("40073d5c99ca0d43f6f1f55ec8ddf8f87b480aaa8e",a.callServer,void 0,a.findSourceMapURL,"decideRequest");var i=e.i(57228),d=e.i(88374),l=e.i(65818);let c=["messages:send","messages:receive"],o={"messages:send":"Send","messages:receive":"Receive","fleet:read":"Read the fleet"};var u=e.i(55070),p=e.i(63132);let m="rounded-md border border-input bg-background px-2 py-1.5";function g({scope:e,isLocked:n}){return(0,r.jsxs)("label",{className:"flex items-center gap-2",children:[n?(0,r.jsx)("input",{type:"checkbox",checked:!0,disabled:!0,"aria-label":o[e]??e}):(0,r.jsx)("input",{type:"checkbox",name:"scope",value:e,"aria-label":o[e]??e}),(0,r.jsx)("span",{children:o[e]??e}),(0,r.jsx)("span",{className:"font-mono text-caption text-muted-foreground",children:e}),n?(0,r.jsx)("span",{className:"text-caption text-muted-foreground",children:"(always)"}):null]})}function h(e,r){let n=e.get(r);return"string"==typeof n?n:""}function b({request:e,heldScopes:n,owners:a,working:t,failure:i,onDecide:o}){let[x,f]=(0,s.useState)("bearer"),j=function(e){switch(e.subject.kind){case"client":return e.subject.clientName;case"server":return URL.canParse(e.subject.url)?new URL(e.subject.url).host:e.subject.url}}(e),v="server"===e.subject.kind;return(0,r.jsxs)("section",{className:"grid gap-3 rounded-lg border border-border bg-card p-6 text-card-foreground shadow-sm",children:[(0,r.jsxs)("h2",{className:"text-heading font-semibold",children:["Approve ",j]}),(0,r.jsxs)("form",{onSubmit:e=>{e.preventDefault();let r=new FormData(e.currentTarget),n=r.getAll("scope").filter(e=>"string"==typeof e);o({kind:"approve",name:h(r,"name"),ownerShipId:h(r,"ownerShipId"),scopes:n,server:v?{credentialKind:(0,d.C)(h(r,"credentialKind")),token:h(r,"token"),clientId:h(r,"clientId"),clientSecret:h(r,"clientSecret"),issuer:h(r,"issuer"),scope:h(r,"scope-requested"),concurrencyLimit:Number(h(r,"concurrencyLimit"))}:void 0})},className:"grid gap-3",children:[(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Proxy ship's name"}),(0,r.jsx)("input",{name:"name",defaultValue:j.toLowerCase().replaceAll(/[^a-z0-9]+/g,"-").replaceAll(/^-+|-+$/g,""),required:!0,className:m})]}),(0,r.jsx)(l.f,{choices:a.isOk?a.value:[],current:null,help:"A person ship or argo. It answers for this party.",refusal:a.isOk?void 0:a.refusal}),(0,r.jsxs)("fieldset",{className:"grid gap-1",children:[(0,r.jsx)("legend",{children:"Scopes"}),c.map(e=>(0,r.jsx)(g,{scope:e,isLocked:!0},e)),n.filter(e=>!c.includes(e)).map(e=>(0,r.jsx)(g,{scope:e,isLocked:!1},e))]}),v?(0,r.jsxs)("fieldset",{className:"grid gap-2",children:[(0,r.jsx)("legend",{children:"The server's credential"}),(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Credential"}),(0,r.jsx)("select",{name:"credentialKind",value:x,onChange:e=>{f((0,d.C)(e.target.value))},className:m,children:d.x.map(({kind:e,label:n})=>(0,r.jsx)("option",{value:e,children:n},e))})]}),"none"===x?null:"bearer"===x?(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Bearer token"}),(0,r.jsx)("input",{type:"password",name:"token",className:m})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Client id"}),(0,r.jsx)("input",{name:"clientId",className:m})]}),(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Client secret"}),(0,r.jsx)("input",{type:"password",name:"clientSecret",className:m})]}),(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Issuer"}),(0,r.jsx)("input",{type:"url",name:"issuer",className:m})]}),(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Scope"}),(0,r.jsx)("input",{name:"scope-requested",className:m})]})]}),(0,r.jsxs)("label",{className:"grid gap-1",children:[(0,r.jsx)("span",{children:"Calls at once"}),(0,r.jsx)("input",{type:"number",name:"concurrencyLimit",min:1,max:10,defaultValue:4,className:m})]})]}):null,void 0===i?null:(0,r.jsx)(p.f,{message:i,isFailure:!0}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(u.i,{type:"submit",variant:"primary","data-testid":"bridge-approve",isPending:"approve"===t,pendingLabel:"Approving...",disabled:void 0!==t,children:"Approve"}),(0,r.jsx)(u.i,{type:"button","data-testid":"bridge-deny",isPending:"deny"===t,pendingLabel:"Denying...",disabled:void 0!==t,onClick:()=>{o({kind:"deny"})},children:"Deny"})]})]})]})}e.s(["DecisionPanel",0,function({fleetId:e,request:a,heldScopes:d,owners:l}){let c=(0,n.useRouter)(),[o,u]=(0,s.useState)(),[p,m]=(0,s.useState)(),[,g]=(0,s.useTransition)();return(0,r.jsx)(b,{request:a,heldScopes:d,owners:l,working:o,failure:p,onDecide:r=>{u(r.kind),m(void 0),g(async()=>{let n=await t({fleet:e,requestId:a.requestId,input:r});n.isOk?c.push(`${i.T}?${new URLSearchParams({fleet:e,decided:r.kind}).toString()}`):(u(void 0),m(n.message))})}})}],95893)},55070,e=>{var r=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"},s={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:a,variant:t="secondary",size:i="regular",children:d,className:l="",disabled:c,...o}){return(0,r.jsx)("button",{...o,disabled:!0===c||e,"aria-busy":e,className:`inline-flex items-center rounded-md disabled:cursor-not-allowed disabled:opacity-70 ${s[i]} ${n[t]} ${l}`,children:e?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{"aria-hidden":"true",className:"size-3.5 animate-spin rounded-full border-2 border-current border-t-transparent"}),a]}):d})},"o",0,s])},63132,e=>{var r=e.i(43476);e.s(["f",0,function({message:e,isFailure:n}){return n?(0,r.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,r.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})}])},88374,e=>{let r=[{kind:"none",label:"No credential"},{kind:"bearer",label:"Bearer token"},{kind:"clientCredentials",label:"OAuth client credentials"}],n={kind:"personSignIn",label:"Each person signs in"},s=[...r,n];e.s(["a",0,s,"x",0,r,"m",0,n,"G",0,function(e){return s.find(({kind:r})=>r===e)?.kind??"bearer"},"C",0,function(e){return r.find(({kind:r})=>r===e)?.kind??"bearer"}])},30402,e=>{let r="inline-flex h-9 items-center justify-center gap-2 rounded-md px-4 font-medium disabled:opacity-60",n={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,n,"r",0,"rounded-lg border border-border bg-card p-6 text-card-foreground shadow-sm","E",0,"rounded-lg border border-border bg-card p-3 text-card-foreground","w",0,"h-9 w-full rounded-md border border-input bg-background px-3 font-mono text-code","z",0,"grid gap-1","D",0,"h-9 w-full appearance-none rounded-md border border-input bg-background pr-8 pl-3"])},65818,e=>{var r=e.i(43476),n=e.i(30402);e.s(["f",0,function({choices:e,current:s,help:a,refusal:t}){let i=null===s||e.some(e=>e.shipId===s.shipId)?e:[s,...e];return(0,r.jsxs)("label",{className:n.z,children:[(0,r.jsx)("span",{children:"Owner"}),(0,r.jsxs)("select",{className:n.w,name:"ownerShipId",defaultValue:s?.shipId??"",required:!0,"data-testid":"owner-field",children:[null===s?(0,r.jsx)("option",{value:"",disabled:!0,children:"Pick its owner"}):null,i.map(e=>(0,r.jsx)("option",{value:e.shipId,children:e.name},e.shipId))]}),(0,r.jsx)("span",{className:"text-muted-foreground",children:t??a})]})}])},67914,e=>{var r=e.i(43476),n=e.i(71645),s=e.i(95187);let a=(0,s.createServerReference)("40e3c0037600697dd7e0800105f1231c3f942d5113",s.callServer,void 0,s.findSourceMapURL,"setTheme"),t=["light","dark","system"];e.s(["f",0,function({email:e,accountUrl:s,theme:i,entries:d=[]}){let[l,c]=(0,n.useState)(i),[o,u]=(0,n.useState)(!1),p=(0,n.useRef)(null);return{account:{name:e,signedInAs:"account",accountUrl:s,theme:l,themes:t,hasTheme:!0,onThemeChange:e=>{let r;c(e),document.documentElement.dataset.theme=e,r="dark"===e||"system"===e&&window.matchMedia("(prefers-color-scheme: dark)").matches,document.documentElement.classList.toggle("dark",r),a(e)},shortcuts:[],helpUrl:"https://github.com/ThomasHendrickx/aeolus-fleet",onSignOut:()=>{u(!0),p.current?.requestSubmit()},isSigningOut:o,entries:d},signOutForm:(0,r.jsx)("form",{ref:p,method:"post",action:"/sign-in/end",hidden:!0})}}],67914)},65894,e=>{let r="fleet";e.s(["n",0,r,"i",0,function(e,n){let[s="",a=""]=e.split("?"),t=new URLSearchParams(a);return t.set(r,n),`${s}?${t.toString()}`}])}],18566,(e,r,n)=>{r.exports=e.r(76562)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[66595,e=>{var r=e.i(56420);let t={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};t.node;let n=(0,r.f)(t);e.s(["f",0,n],66595)},95187,(e,r,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n={callServer:function(){return a.callServer},createServerReference:function(){return i.createServerReference},findSourceMapURL:function(){return s.findSourceMapURL}};for(var d in n)Object.defineProperty(t,d,{enumerable:!0,get:n[d]});let a=e.r(32120),s=e.r(92245),i=e.r(35326)},21611,e=>{var r=e.i(43476),t=e.i(71645),n=e.i(65894),d=e.i(28008),a=e.i(30402),s=e.i(94984),i=e.i(65818),o=e.i(58107),c=e.i(31831),l=e.i(90526),u=e.i(95187);let m=(0,u.createServerReference)("
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[66595,e=>{var r=e.i(56420);let t={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};t.node;let n=(0,r.f)(t);e.s(["f",0,n],66595)},95187,(e,r,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n={callServer:function(){return a.callServer},createServerReference:function(){return i.createServerReference},findSourceMapURL:function(){return s.findSourceMapURL}};for(var d in n)Object.defineProperty(t,d,{enumerable:!0,get:n[d]});let a=e.r(32120),s=e.r(92245),i=e.r(35326)},21611,e=>{var r=e.i(43476),t=e.i(71645),n=e.i(65894),d=e.i(28008),a=e.i(30402),s=e.i(94984),i=e.i(65818),o=e.i(58107),c=e.i(31831),l=e.i(90526),u=e.i(95187);let m=(0,u.createServerReference)("60a38e061a2289f40f1d6b65c107022b352a73ede0",u.callServer,void 0,u.findSourceMapURL,"addA2aClient"),p={kind:"idle"};function h({name:e,bearer:t,fleetId:d}){return(0,r.jsxs)("section",{className:`${a.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:t}),(0,r.jsx)("p",{children:(0,r.jsx)("a",{href:(0,n.i)((0,c.N)(e),d),className:"text-primary hover:underline",children:"Its card addresses"})})]})}e.s(["A2aClientForm",0,function({fleetId:e,requestId:n,owners:c,scopes:u}){let[f,b]=(0,t.useActionState)(m,p);return"added"===f.kind?(0,r.jsx)(h,{name:f.name,bearer:f.bearer,fleetId:e}):(0,r.jsxs)("form",{action:b,className:`${a.r} grid max-w-160 gap-3`,"data-testid":"add-a2a-client-form",children:[(0,r.jsx)("input",{type:"hidden",name:d.H,value:e}),(0,r.jsx)("input",{type:"hidden",name:"requestId",value:n}),(0,r.jsx)("h1",{className:"text-heading-touch font-semibold max-sm:sr-only",children:"Add an A2A client"}),(0,r.jsxs)("label",{className:a.z,children:[(0,r.jsx)("span",{children:"Name, the proxy ship's"}),(0,r.jsx)("input",{className:a.w,name:"name",required:!0})]}),(0,r.jsx)(i.f,{choices:c.isOk?c.value:[],current:null,help:"A person ship or argo. It answers for this client.",refusal:c.isOk?void 0:c.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:`${l.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)(s.f,{state:"refused"===f.kind?f:{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",t={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,t,"r",0,"rounded-lg border border-border bg-card p-6 text-card-foreground shadow-sm","E",0,"rounded-lg border border-border bg-card p-3 text-card-foreground","w",0,"h-9 w-full rounded-md border border-input bg-background px-3 font-mono text-code","z",0,"grid gap-1","D",0,"h-9 w-full appearance-none rounded-md border border-input bg-background pr-8 pl-3"])},94984,e=>{var r=e.i(43476);e.s(["f",0,function({state:e,testId:t}){switch(e.kind){case"idle":return null;case"done":return(0,r.jsx)("p",{role:"status","data-testid":t,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":t,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),t=e.i(30402);e.s(["f",0,function({choices:e,current:n,help:d,refusal:a}){let s=null===n||e.some(e=>e.shipId===n.shipId)?e:[n,...e];return(0,r.jsxs)("label",{className:t.z,children:[(0,r.jsx)("span",{children:"Owner"}),(0,r.jsxs)("select",{className:t.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,s.map(e=>(0,r.jsx)("option",{value:e.shipId,children:e.name},e.shipId))]}),(0,r.jsx)("span",{className:"text-muted-foreground",children:a??d})]})}])},58107,e=>{var r=e.i(43476),t=e.i(74080),n=e.i(30402);e.s(["f",0,function({children:e,pending:d,kind:a="primary",testId:s}){let i=(0,t.useFormStatus)();return(0,r.jsx)("button",{type:"submit",className:n.x[a],disabled:i.pending,"aria-busy":i.pending,"data-testid":s,children:i.pending?d:e})}])},67914,e=>{var r=e.i(43476),t=e.i(71645),n=e.i(95187);let d=(0,n.createServerReference)("40e3c0037600697dd7e0800105f1231c3f942d5113",n.callServer,void 0,n.findSourceMapURL,"setTheme"),a=["light","dark","system"];e.s(["f",0,function({email:e,accountUrl:n,theme:s,entries:i=[]}){let[o,c]=(0,t.useState)(s),[l,u]=(0,t.useState)(!1),m=(0,t.useRef)(null);return{account:{name:e,signedInAs:"account",accountUrl:n,theme:o,themes:a,hasTheme:!0,onThemeChange:e=>{let r;c(e),document.documentElement.dataset.theme=e,r="dark"===e||"system"===e&&window.matchMedia("(prefers-color-scheme: dark)").matches,document.documentElement.classList.toggle("dark",r),d(e)},shortcuts:[],helpUrl:"https://github.com/ThomasHendrickx/aeolus-fleet",onSignOut:()=>{u(!0),m.current?.requestSubmit()},isSigningOut:l,entries:i},signOutForm:(0,r.jsx)("form",{ref:m,method:"post",action:"/sign-in/end",hidden:!0})}}],67914)},90526,e=>{e.s(["f",0,"scope:"])},65894,e=>{let r="fleet";e.s(["n",0,r,"i",0,function(e,t){let[n="",d=""]=e.split("?"),a=new URLSearchParams(d);return a.set(r,t),`${n}?${a.toString()}`}])}],18566,(e,r,t)=>{r.exports=e.r(76562)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[69288,73459,15338,86844,12210,67410,46208,e=>{e.s(["f",0,function(e,t){e.replaceState(null,"",t)}],69288),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 i=(0,t.createServerReference)("40db7d83ab9618e36e567bcf66243a9a52614c933c",t.callServer,void 0,t.findSourceMapURL,"answerDelivery");e.s(["f",0,i],15338);let n=(0,t.createServerReference)("40d1b5efb67059d5ee812d8865798359fb723fb4e4",t.callServer,void 0,t.findSourceMapURL,"doneDelivery");e.s(["f",0,n],86844);let r=(0,t.createServerReference)("602390e5d7f0d17092beab792cafdd485bfb28d868",t.callServer,void 0,t.findSourceMapURL,"openDelivery");e.s(["f",0,r],12210);let a=(0,t.createServerReference)("405f92098d95e14188d3c2e2058e1b73d6468d725b",t.callServer,void 0,t.findSourceMapURL,"putInBasket");e.s(["f",0,a],67410);let s=(0,t.createServerReference)("40d6d035364bed586c26cd7d80196b6f40cc3ed5af",t.callServer,void 0,t.findSourceMapURL,"putPickInBasket");e.s(["f",0,s],46208)},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 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 d=(0,t.f)(s);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)},51481,59381,e=>{var t=e.i(75043);e.s(["f",()=>t.f],51481);var i=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,i.f)(n);e.s(["f",0,r],59381)},66595,e=>{var t=e.i(56420);let i={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};i.node;let n=(0,t.f)(i);e.s(["f",0,n],66595)},95187,(e,t,i)=>{Object.defineProperty(i,"__esModule",{value:!0});var n={callServer:function(){return a.callServer},createServerReference:function(){return d.createServerReference},findSourceMapURL:function(){return s.findSourceMapURL}};for(var r in n)Object.defineProperty(i,r,{enumerable:!0,get:n[r]});let a=e.r(32120),s=e.r(92245),d=e.r(35326)},42648,e=>{var t=e.i(95187);let i=(0,t.createServerReference)("60805144861012c3c1c5af3c3730c5ad189ec00cb2",t.callServer,void 0,t.findSourceMapURL,"removeFromBasket");e.s(["f",0,i])},28287,e=>{var t=e.i(18566),i=e.i(71645);let n={standing:new Set,staleSince:new Map};e.s(["f",0,function(e){let r=(0,t.useRouter)(),[a,s]=(0,i.useState)(n),[d,o]=(0,i.useState)(()=>Date.now()),l=e.map(({deliveryId:e,isStale:t})=>`${e}${t?"!":""}`).join(" ");return(0,i.useEffect)(()=>{let e=Date.now();s(t=>(function(e,t){let{items:i,atMs:n}=t,r=new Set(e.standing),a=new Map(e.staleSince);for(let{deliveryId:e,isStale:t}of i)t?r.has(e)&&!a.has(e)&&a.set(e,n):r.add(e);return{standing:r,staleSince:a}})(t,{items:""===l?[]:l.split(" ").map(e=>({deliveryId:e.replace("!",""),isStale:e.endsWith("!")})),atMs:e})),o(e)},[l]),(0,i.useEffect)(()=>{let e,t=0===(e=[...a.staleSince.values()].flatMap(e=>[e+5e3-300,e+5e3]).filter(e=>e>d)).length?void 0:Math.min(...e);if(void 0===t)return;let i=setTimeout(()=>{o(Date.now()),[...a.staleSince.values()].some(e=>e+5e3===t)&&r.refresh()},t-Date.now());return()=>{clearTimeout(i)}},[a,d,r]),e=>(function(e,t){let{item:i,atMs:n}=t;if(!i.isStale)return"shown";let r=e.staleSince.get(i.deliveryId);if(void 0===r)return e.standing.has(i.deliveryId)?"shown":"gone";let a=n-r;return a>=5e3?"gone":a>=4700?"leaving":"shown"})(a,{item:e,atMs:d})}],28287)},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"],r="Bridge keeps every item.",a={label:"Not offered",isOk:!1},s={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:s,description:o,action:"turnOn"}:{state:a,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:a,isOn:s,waiting:d,isChatOn:o}=e,{name:l,item:c,items:u}=t[n],m=`${i[a]} is ${s?"on":"off"} for ${l}`;return s?"chat"===a?{title:m,detail:`A chat lists every ${c} not done when you ask it.`}:{title:m,detail:`${i[a]} shows ${u} 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"===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:i})=>t===e.ownEndpoint&&!i);return void 0===t?{state:s,description:o,action:"turnOn"}:{state:{label:"This browser",isOk:!0},description:`${t.browser}. ${d}`,action:"remove"}}])},35159,e=>{e.s(["b",0,function(e){let t="report-unchanged"===e.signal?`The alert clears when ${e.ship.name} reports again`:"The alert clears by itself once what it tells of moves";return`Aeolus only tells you. ${t}; nothing is sent on clear, so this stays here as it was.`},"c",0,function({consoleUrl:e,shipId:t}){return`${e.replace(/\/$/,"")}/ships/${t}`},"E",0,function(e){return`${String(e)} unseen`}])},85989,e=>{var t=e.i(43476),i=e.i(70812),n=e.i(56420);let r={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};r.node;let a=(0,n.f)(r);var s=e.i(68590),d=e.i(47130),o=e.i(28287),l=e.i(65894),c=e.i(57228),u=e.i(29247),m=e.i(12497),f=e.i(17904),g=e.i(99200),h=e.i(55070),p=e.i(19015),v=e.i(82022);function b({href:e,isOutside:i,children:n,...r}){return(0,t.jsxs)("a",{...r,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 ${h.o.row}`,children:[(0,t.jsx)(v.f,{"aria-hidden":"true",className:"size-3.5"}),n]})}var x=e.i(3523),y=e.i(48680),w=e.i(29039);function j(e){let{stale:t,inBasket:i}=e;return null===t&&null!==i?null===i.option?"In the basket: the note alone":`In the basket: option ${String(i.option)}`:null===t?"seen"===e.state?(0,m.M)(e.seenIn):void 0:(0,u.f)(t,{from:e.from})}function k({item:e,opening:i}){let n=e.stale?.replacementId??null;return null===n?null:(0,t.jsx)(h.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 S({item:e,opening:i}){return(0,t.jsx)(h.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 I({item:e,opening:i}){let n=e.actInPlace;return n?.kind==="ownStep"?(0,t.jsx)(b,{"data-testid":"bridge-own-step",href:n.href,isOutside:!1,children:n.label}):(0,t.jsxs)(t.Fragment,{children:[n?.kind==="putPick"?(0,t.jsxs)(h.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,n.option)},children:[(0,t.jsx)(d.f,{"aria-hidden":"true",className:"size-3.5"}),"Put option ",n.option," in the basket"]}):null,n?.kind==="openLink"?(0,t.jsxs)(b,{"data-testid":"bridge-step-link",href:n.href,isOutside:!0,children:["Open ",n.host]}):null,(0,t.jsx)(k,{item:e,opening:i}),(0,t.jsx)(S,{item:e,opening:i})]})}function N(e,t){return void 0===t.openingId?()=>{t.open(e)}:void 0}function $({items:e,readAt:i,opening:n,leaving:r}){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)(p.V,{item:e,now:i,isNew:"new"===e.state,isOpen:n.opened?.deliveryId===e.deliveryId,staleKind:e.stale?.kind,isLeaving:r.has(e.deliveryId),outcome:j(e),failure:n.failure?.deliveryId===e.deliveryId?n.failure.message:void 0,onOpen:N(e,n),actions:a?void 0:(0,t.jsx)(I,{item:e,opening:n})},e.deliveryId))})}function O({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)(p.V,{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:N(e,n)},e.deliveryId))})}function R({home:e,readAt:i,opening:n,leaving:r}){let{waiting:a,stayAware:s}=e;return"stay-aware"===n.opened.job?(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:[s.filter(({state:e})=>"new"===e).length," unseen"]})]}),(0,t.jsx)(O,{items:s,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:a.count})]}),(0,t.jsx)($,{items:a.items,readAt:i,opening:n,leaving:r})]})}function M({fleetId:e,home:n,now:r,opening:d,argo:o,leaving:u=new Set}){let{waiting:m,stayAware:f,messages:h}=n,p=new Date(r),{opened:v}=d;if(void 0!==v)return(0,t.jsx)(R,{home:n,readAt:p,opening:{...d,opened:v},leaving:u});let b=h.filter(({state:e})=>"new"===e).length;return(0,t.jsxs)("div",{className:"grid gap-8",children:[(0,t.jsx)("section",{className:"grid gap-3","aria-labelledby":"bridge-waiting-heading",children:0===m.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)($,{items:m.items,readAt:p,opening:d,leaving:u})}),0===h.length?null:(0,t.jsxs)("section",{className:"grid gap-3","aria-labelledby":"bridge-messages-heading",children:[(0,t.jsxs)("div",{className:"flex items-baseline justify-between gap-3",children:[(0,t.jsxs)("h2",{id:"bridge-messages-heading",className:"inline-flex items-center gap-2 text-section font-semibold",children:[(0,t.jsx)(s.f,{"aria-hidden":"true",className:"size-4 shrink-0"}),"Messages"]}),(0,t.jsx)("span",{className:"text-caption text-muted-foreground",children:(0,g.v)(b)})]}),(0,t.jsx)(y.f,{fleetId:e,messages:h.slice(0,g.d),readAt:p,opening:d,isOpenedOnPage:!0}),h.length>g.d?(0,t.jsxs)("a",{"data-testid":"bridge-all-messages",href:(0,l.i)(c.i,e),className:"flex h-9 items-center justify-center gap-1.5 rounded-lg border border-border bg-card font-medium text-primary hover:bg-accent",children:[(0,g.w)(h.length),(0,t.jsx)(a,{"aria-hidden":"true",className:"size-4"})]}):null]}),o,(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.jsxs)("h2",{id:"bridge-stay-aware-heading",className:"inline-flex items-center gap-2 text-section font-semibold",children:[(0,t.jsx)(i.f,{"aria-hidden":"true",className:"size-4 shrink-0"}),"Stay aware"]}),(0,t.jsxs)("span",{className:"text-caption text-muted-foreground",children:[f.filter(({state:e})=>"new"===e).length," unseen, outside the count"]})]}),0===f.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)(O,{items:f,readAt:p,opening:d})]})]})}function z({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)(p.V,{item:e,now:n,isNew:"new"===e.state,isOpen:!1,staleKind:e.stale?.kind,outcome:j(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,f.C)(i)}.`})]})}function A({deliveryId:e,stale:t}){return{deliveryId:e,isStale:null!==t}}e.s(["HomePanel",0,function({fleetId:e,home:i,now:n,decidePlaces:r,argo:a}){let s=(0,w.useLastReadAt)(),d=(0,o.f)(i.waiting.items.map(A));if(void 0!==s)return(0,t.jsx)(z,{items:i.waiting.items,lastReadAt:s});let l=i.waiting.items.filter(e=>"gone"!==d(A(e))),c=new Set(l.filter(e=>"leaving"===d(A(e))).map(({deliveryId:e})=>e)),u={...i,waiting:{...i.waiting,items:l}};return(0,t.jsx)(x.f,{fleetId:e,decidePlaces:r,known:[...l,...i.stayAware],children:i=>(0,t.jsx)(M,{fleetId:e,home:u,now:n,opening:i,argo:a,leaving:c})})},"StayAwareRows",0,O],85989)},3523,e=>{var t=e.i(43476),i=e.i(58487),n=e.i(5654),r=e.i(71645),a=e.i(69288),s=e.i(73459),d=e.i(65894),o=e.i(15338),l=e.i(86844),c=e.i(12210),u=e.i(67410),m=e.i(46208),f=e.i(42648),g=e.i(57228),h=e.i(29247),p=e.i(20347),v=e.i(34244),b=e.i(43328),x=e.i(27538),y=e.i(77826),w=e.i(80734),j=e.i(60296),k=e.i(66734),S=e.i(47130);function I(){let{toasts:e}=n.f.useToastManager();return(0,t.jsx)(b.f.Portal,{children:(0,t.jsx)(x.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)(y.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)(S.f,{"aria-hidden":!0,className:"mt-0.5 size-4 shrink-0"}),(0,t.jsxs)(w.f.Content,{className:"grid flex-1 gap-1",children:[(0,t.jsx)(j.f.Title,{className:"font-medium"}),(0,t.jsx)(k.f.Description,{className:"text-caption text-muted-foreground"})]})]},e.id))})})}var N=e.i(54235),$=e.i(62579),O=e.i(63132),R=e.i(75103),M=e.i(52021);function z({fleetId:e,decidePlaces:i,consoleUrl:b,known:x,children:y}){let w=n.f.useToastManager(),j=(0,R.P)(),[k,S]=(0,r.useState)(),[I,A]=(0,r.useState)(""),[L,T]=(0,r.useState)(),[P,D]=(0,r.useState)(),[U,B]=(0,r.useState)(),[C,q]=(0,r.useState)(),[E,F]=(0,r.useState)(),[V,_]=(0,r.useState)(),[,H]=(0,r.useTransition)(),[W,Y]=(0,r.useState)(0);(0,M.R)(void 0===k?void 0:(0,v.u)(k.opened.job),()=>{S(void 0)});let K=t=>{T(t.deliveryId),q(void 0),_(void 0),H(async()=>{let i=await (0,c.f)(e,t.deliveryId);if(T(void 0),i.isOk){let e=t.inBasket??null;S({delivery:i.value,opened:{job:t.job,isAlert:t.isAlert??!1,wasNew:"seen"!==t.state},inBasket:e,finished:null}),A(e?.note??""),F(void 0)}else q({deliveryId:t.deliveryId,message:i.message})})},Q=(0,r.useRef)(!1);(0,r.useEffect)(()=>{if(Q.current)return;Q.current=!0;let e=(0,p.L)(window.location.href,x);"open"===e.kind?K(e.item):"gone"===e.kind&&((0,a.f)(window.history,(0,p.v)(window.location.href,void 0)),_("That item is no longer in your inbox."))});let G=k?.delivery.deliveryId,J=x.find(({deliveryId:e})=>e===G)?.stale??null;(0,r.useEffect)(()=>{null!==J&&void 0!==G&&S(e=>void 0===e?e:{...e,delivery:(0,h.B)(e.delivery,[{deliveryId:G,stale:J}])})},[J,G]);let X=(0,r.useRef)(!1);(0,r.useEffect)(()=>{if(!X.current){X.current=!0;return}(0,a.f)(window.history,(0,p.v)(window.location.href,G))},[G]);let Z=({control:e,action:t,onSettled:i})=>{B(e),F(void 0),H(async()=>{let e=await t();B(void 0),e.isOk?i(e.value):F(e.message)})},ee=e=>()=>{S(void 0),_(e)},et=void 0===k?void 0:{deliveryId:k.delivery.deliveryId,job:k.opened.job};return(0,t.jsx)($.f,{list:(0,t.jsxs)("div",{className:"grid gap-4",children:[void 0===V?null:(0,t.jsx)(O.f,{message:V,isFailure:!1}),y({open:K,openingId:L,putPick:(t,i)=>{D(t.deliveryId),q(void 0),_(void 0),H(async()=>{let n=await (0,m.f)({fleet:e,deliveryId:t.deliveryId,option:i});D(void 0),n.isOk?(_(`Option ${String(i)} is in the basket, not sent: ${t.from} receives it when you send the basket.`),Y(e=>e+1)):q({deliveryId:t.deliveryId,message:n.message})})},puttingId:P,failure:C,opened:et})]},W),item:void 0===k?void 0:(({delivery:n,inBasket:r,opened:a,finished:c})=>{let m=n.question?.id;return(0,t.jsx)(N.u,{delivery:n,opened:a,meetingHref:void 0===n.meetingId?void 0:(0,s.f)({fleetId:e,meetingId:n.meetingId}),consoleUrl:b,basketHref:(0,d.i)(g.H,e),inBasket:r,finished:c,places:i,note:I,working:U,failure:E,onNoteChange:A,onAnswer:t=>{Z({control:void 0===t?{kind:"note"}:{kind:"option",option:t},action:()=>(0,o.f)({fleet:e,deliveryId:n.deliveryId,input:{questionId:n.question?.id,option:t,note:I}}),onSettled:ee(`Your answer went to ${n.from}.`)})},onPut:t=>{Z({control:null===t?{kind:"note"}:{kind:"option",option:t},action:()=>(0,u.f)({fleet:e,deliveryId:n.deliveryId,option:t,optionLabel:n.question?.options.find(({key:e})=>e===t)?.label??null,note:I}),onSettled:e=>{var t;S({delivery:n,opened:a,finished:c,inBasket:e}),w.add({title:null===(t=e.option)?"Your note alone in the basket":`Option ${String(t)} in the basket`,description:"Not sent. Still waiting on you until you send it."})}})},onSend:t=>{Z({control:{kind:"send"},action:()=>(0,o.f)({fleet:e,deliveryId:n.deliveryId,input:{questionId:m,option:t??void 0,note:I}}),onSettled:ee(`Your answer went to ${n.from}.`)})},onRemove:()=>{void 0!==m&&Z({control:{kind:"remove"},action:()=>(0,f.f)(e,m),onSettled:ee(`Your answer to “${n.title}” is out of the basket; the question still waits on you.`)})},onDone:()=>{Z({control:{kind:"done"},action:()=>(0,l.f)({fleet:e,deliveryId:n.deliveryId}),onSettled:ee(`Done with “${n.title}”.`)})},onFinishStep:t=>{Z({control:{kind:t},action:()=>(0,l.f)({fleet:e,deliveryId:n.deliveryId,step:{outcome:t,note:I}}),onSettled:()=>{S({delivery:n,inBasket:r,opened:a,finished:{outcome:t,note:I.trim(),at:new Date().toISOString()}})}})},onOpen:e=>{K({deliveryId:e,job:a.job})},onSendMessage:void 0===n.alertShip||void 0===j?void 0:e=>{j({alertShip:e})},onBack:()=>{S(void 0)}},n.deliveryId)})(k)})}e.s(["f",0,function({fleetId:e,decidePlaces:n,consoleUrl:r,known:a,children:s}){return(0,t.jsxs)(i.f.Provider,{children:[(0,t.jsx)(z,{fleetId:e,decidePlaces:n,consoleUrl:r,known:a,children:s}),(0,t.jsx)(I,{})]})}],3523)},48680,e=>{var t=e.i(43476),i=e.i(18566),n=e.i(71645),r=e.i(95187);let a=(0,r.createServerReference)("40ad18ec34752337ffe6053724250396ebd972f1f0",r.callServer,void 0,r.findSourceMapURL,"doneMessage");var s=e.i(99200),d=e.i(89664),o=e.i(22768),l=e.i(12497),c=e.i(55070),u=e.i(19015);function m({message:e,now:i,isOpen:n,isMarkingDone:r,isOpening:a,isBusy:f,failure:g,onDone:h,onOpen:p}){let v=void 0===h,b=v?"":(0,s.R)(e.excerpt);return(0,t.jsx)(u.V,{item:{...e,title:(0,s.R)(e.title)},now:i,isNew:"new"===e.state,isOpen:n,outcome:function({message:e,isOpen:t}){return t?"Seen":"seen"===e.state?(0,l.M)(e.seenIn):void 0}({message:e,isOpen:n}),failure:void 0,onOpen:f?void 0:p,detail:""===b?void 0:(0,t.jsx)("p",{className:"line-clamp-2 max-w-[560px] break-words text-meta text-muted-foreground",children:b}),actions:v?void 0:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(c.i,{"data-testid":"bridge-message-done",size:"row",isPending:r,pendingLabel:"Marking done...",disabled:f,onClick:h,children:[(0,t.jsx)(d.f,{"aria-hidden":"true",className:"size-3.5"}),"Done"]}),(0,t.jsx)(c.i,{"data-testid":"bridge-message-open",size:"row",isPending:a,pendingLabel:"Opening...",disabled:f,onClick:p,children:"Open"}),void 0===g?null:(0,t.jsxs)("p",{role:"alert","data-testid":"bridge-message-failure",className:"flex basis-full items-center gap-1.5 text-meta text-destructive-text",children:[(0,t.jsx)(o.f,{"aria-hidden":"true",className:"size-3.5 shrink-0"}),g]})]})})}e.s(["f",0,function({fleetId:e,messages:r,readAt:d,opening:o,isOpenedOnPage:l=!1}){let c=(0,i.useRouter)(),[u,f]=(0,n.useState)(),[g,h]=(0,n.useState)(),[p,v]=(0,n.useState)(new Set),[b,x]=(0,n.useState)(),[,y]=(0,n.useTransition)(),w=void 0!==o.opened,j=g??o.openingId,k=void 0!==u||void 0!==j;return(0,t.jsx)("ul",{className:w?"border-t border-border":"overflow-hidden rounded-lg border border-border bg-card",children:r.filter(({deliveryId:e})=>!p.has(e)).map(i=>{var n;return(0,t.jsx)(m,{message:i,now:d,isOpen:o.opened?.deliveryId===i.deliveryId,isMarkingDone:u===i.deliveryId,isOpening:j===i.deliveryId,isBusy:k,failure:(n=i.deliveryId,b?.deliveryId===n?b.message:o.failure?.deliveryId===n?o.failure.message:void 0),onDone:w?void 0:()=>{f(i.deliveryId),x(void 0),y(async()=>{let t=await a({fleet:e,deliveryId:i.deliveryId,isNew:"new"===i.state});f(void 0),t.isOk?v(e=>new Set([...e,i.deliveryId])):x({deliveryId:i.deliveryId,message:(0,s.z)(void 0===t.code?void 0:t.message)})})},onOpen:()=>{l?(h(i.deliveryId),y(()=>{c.push((0,s.C)({fleetId:e,deliveryId:i.deliveryId}))})):o.open(i)}},i.deliveryId)})})}],48680)},55070,e=>{var t=e.i(43476);let i={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"},n={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:d,className:o="",disabled:l,...c}){return(0,t.jsx)("button",{...c,disabled:!0===l||e,"aria-busy":e,className:`inline-flex items-center rounded-md disabled:cursor-not-allowed disabled:opacity-70 ${n[s]} ${i[a]} ${o}`,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]}):d})},"o",0,n])},19015,e=>{var t=e.i(43476),i=e.i(70812),n=e.i(71136),r=e.i(96315),a=e.i(49287),s=e.i(28623),d=e.i(12497),o=e.i(91604),l=e.i(63132),c=e.i(779);let u={bridge:{icon:a.f,name:"Bridge"},slack:{icon:n.f,name:"Slack"},chat:{icon:s.f,name:"a chat"},"web-push":{icon:i.f,name:"web push"},email:{icon:r.f,name:"email"}};function m(){return(0,t.jsx)("span",{"aria-hidden":"true",className:"text-border",children:"·"})}function f({places:e}){var i;let n,r=["bridge",...e].map(e=>u[e]);return(0,t.jsx)("span",{role:"img","aria-label":`Shows in ${(n=(i=r.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:r.map(({icon:e,name:i})=>(0,t.jsx)(e,{"aria-hidden":"true",className:"size-3"},i))})}let g="overflow-hidden motion-safe:animate-row-leave";e.s(["V",0,function({item:e,now:i,isNew:n,isOpen:r=!1,staleKind:a,isLeaving:s=!1,outcome:u,failure:h,onOpen:p,time:v,detail:b,actions:x}){var y;let w=e.isAlert??!1,j=(0,o.P)({job:e.job,isAlert:w}),k=j.icon,S="min-w-0 break-words text-left text-body-touch font-medium sm:truncate sm:text-body",I=void 0===a?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!==a,"data-leaving":s||void 0,"aria-current":!!r||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:r,isStale:void 0!==a})} ${s?g:""}`,children:[(0,t.jsx)(k,{"aria-hidden":"true",className:`mt-0.5 size-4 ${j.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===p?(0,t.jsx)("span",{"data-testid":"bridge-item-title",className:S,children:I}):(0,t.jsx)("button",{type:"button","data-testid":"bridge-item-title",onClick:p,className:`${S} hover:underline`,children:I})]}),(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 ${j.tone}`,children:(0,d.z)({job:e.job,isAlert:w})}),(0,t.jsx)(m,{}),(0,t.jsx)("span",{children:e.from}),void 0===u?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===a?null:(0,t.jsx)(c.f,{kind:a}),u]})]}),void 0===e.places?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m,{}),(0,t.jsx)(f,{places:e.places})]})]})]}),(0,t.jsx)("time",{dateTime:v?.at??e.sentAt,title:(y=v?.at??e.sentAt,`${new Date(y).toISOString().slice(0,16).replace("T"," ")} UTC`),className:"whitespace-nowrap text-right text-caption text-muted-foreground",children:v?.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})})]})},"U",0,g])},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})}])},30402,e=>{let t="inline-flex h-9 items-center justify-center gap-2 rounded-md px-4 font-medium disabled:opacity-60",i={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,i,"r",0,"rounded-lg border border-border bg-card p-6 text-card-foreground shadow-sm","E",0,"rounded-lg border border-border bg-card p-3 text-card-foreground","w",0,"h-9 w-full rounded-md border border-input bg-background px-3 font-mono text-code","z",0,"grid gap-1","D",0,"h-9 w-full appearance-none rounded-md border border-input bg-background pr-8 pl-3"])},67914,e=>{var t=e.i(43476),i=e.i(71645),n=e.i(95187);let r=(0,n.createServerReference)("406e70c54d0df55ecef3263e68bd02259fd622902e",n.callServer,void 0,n.findSourceMapURL,"setTheme"),a=["light","dark","system"];e.s(["f",0,function({email:e,accountUrl:n,theme:s,entries:d=[]}){let[o,l]=(0,i.useState)(s),[c,u]=(0,i.useState)(!1),m=(0,i.useRef)(null);return{account:{name:e,signedInAs:"account",accountUrl:n,theme:o,themes:a,hasTheme:!0,onThemeChange:e=>{let t;l(e),document.documentElement.dataset.theme=e,t="dark"===e||"system"===e&&window.matchMedia("(prefers-color-scheme: dark)").matches,document.documentElement.classList.toggle("dark",t),r(e)},shortcuts:[],helpUrl:"https://github.com/ThomasHendrickx/aeolus-fleet",onSignOut:()=>{u(!0),m.current?.requestSubmit()},isSigningOut:c,entries:d},signOutForm:(0,t.jsx)("form",{ref:m,method:"post",action:"/sign-in/end",hidden:!0})}}],67914)},65894,e=>{let t="fleet";e.s(["n",0,t,"i",0,function(e,i){let[n="",r=""]=e.split("?"),a=new URLSearchParams(r);return a.set(t,i),`${n}?${a.toString()}`}])}],18566,(e,t,i)=>{t.exports=e.r(76562)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[69288,73459,76276,53573,80931,68593,28076,e=>{e.s(["f",0,function(e,t){e.replaceState(null,"",t)}],69288),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 i=(0,t.createServerReference)("4054d191d4c0822a6727911b08928dc6494186955b",t.callServer,void 0,t.findSourceMapURL,"answerDelivery");e.s(["f",0,i],76276);let n=(0,t.createServerReference)("40a5971b7a259df5c98b9acd5bd0213b54095a30b7",t.callServer,void 0,t.findSourceMapURL,"doneDelivery");e.s(["f",0,n],53573);let r=(0,t.createServerReference)("60d1ce52418803fae754641fd9944af8933e13544c",t.callServer,void 0,t.findSourceMapURL,"openDelivery");e.s(["f",0,r],80931);let a=(0,t.createServerReference)("40a416602ce92909584c7caf32af8815181d8eeccf",t.callServer,void 0,t.findSourceMapURL,"putInBasket");e.s(["f",0,a],68593);let s=(0,t.createServerReference)("40464b8eb9ff617e937479d4e0fdbeef3b7d5de09c",t.callServer,void 0,t.findSourceMapURL,"putPickInBasket");e.s(["f",0,s],28076)},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 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 d=(0,t.f)(s);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)},51481,59381,e=>{var t=e.i(75043);e.s(["f",()=>t.f],51481);var i=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,i.f)(n);e.s(["f",0,r],59381)},66595,e=>{var t=e.i(56420);let i={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};i.node;let n=(0,t.f)(i);e.s(["f",0,n],66595)},95187,(e,t,i)=>{Object.defineProperty(i,"__esModule",{value:!0});var n={callServer:function(){return a.callServer},createServerReference:function(){return d.createServerReference},findSourceMapURL:function(){return s.findSourceMapURL}};for(var r in n)Object.defineProperty(i,r,{enumerable:!0,get:n[r]});let a=e.r(32120),s=e.r(92245),d=e.r(35326)},35216,e=>{var t=e.i(95187);let i=(0,t.createServerReference)("60215dabf97f542d3a0b1e7da6f87578e26fedce72",t.callServer,void 0,t.findSourceMapURL,"removeFromBasket");e.s(["f",0,i])},28287,e=>{var t=e.i(18566),i=e.i(71645);let n={standing:new Set,staleSince:new Map};e.s(["f",0,function(e){let r=(0,t.useRouter)(),[a,s]=(0,i.useState)(n),[d,o]=(0,i.useState)(()=>Date.now()),l=e.map(({deliveryId:e,isStale:t})=>`${e}${t?"!":""}`).join(" ");return(0,i.useEffect)(()=>{let e=Date.now();s(t=>(function(e,t){let{items:i,atMs:n}=t,r=new Set(e.standing),a=new Map(e.staleSince);for(let{deliveryId:e,isStale:t}of i)t?r.has(e)&&!a.has(e)&&a.set(e,n):r.add(e);return{standing:r,staleSince:a}})(t,{items:""===l?[]:l.split(" ").map(e=>({deliveryId:e.replace("!",""),isStale:e.endsWith("!")})),atMs:e})),o(e)},[l]),(0,i.useEffect)(()=>{let e,t=0===(e=[...a.staleSince.values()].flatMap(e=>[e+5e3-300,e+5e3]).filter(e=>e>d)).length?void 0:Math.min(...e);if(void 0===t)return;let i=setTimeout(()=>{o(Date.now()),[...a.staleSince.values()].some(e=>e+5e3===t)&&r.refresh()},t-Date.now());return()=>{clearTimeout(i)}},[a,d,r]),e=>(function(e,t){let{item:i,atMs:n}=t;if(!i.isStale)return"shown";let r=e.staleSince.get(i.deliveryId);if(void 0===r)return e.standing.has(i.deliveryId)?"shown":"gone";let a=n-r;return a>=5e3?"gone":a>=4700?"leaving":"shown"})(a,{item:e,atMs:d})}],28287)},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"],r="Bridge keeps every item.",a={label:"Not offered",isOk:!1},s={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:s,description:o,action:"turnOn"}:{state:a,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:a,isOn:s,waiting:d,isChatOn:o}=e,{name:l,item:c,items:u}=t[n],m=`${i[a]} is ${s?"on":"off"} for ${l}`;return s?"chat"===a?{title:m,detail:`A chat lists every ${c} not done when you ask it.`}:{title:m,detail:`${i[a]} shows ${u} 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"===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:i})=>t===e.ownEndpoint&&!i);return void 0===t?{state:s,description:o,action:"turnOn"}:{state:{label:"This browser",isOk:!0},description:`${t.browser}. ${d}`,action:"remove"}}])},35159,e=>{e.s(["b",0,function(e){let t="report-unchanged"===e.signal?`The alert clears when ${e.ship.name} reports again`:"The alert clears by itself once what it tells of moves";return`Aeolus only tells you. ${t}; nothing is sent on clear, so this stays here as it was.`},"c",0,function({consoleUrl:e,shipId:t}){return`${e.replace(/\/$/,"")}/ships/${t}`},"E",0,function(e){return`${String(e)} unseen`}])},85989,e=>{var t=e.i(43476),i=e.i(70812),n=e.i(56420);let r={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};r.node;let a=(0,n.f)(r);var s=e.i(68590),d=e.i(47130),o=e.i(28287),l=e.i(65894),c=e.i(57228),u=e.i(29247),m=e.i(12497),f=e.i(17904),g=e.i(99200),h=e.i(55070),p=e.i(19015),v=e.i(82022);function b({href:e,isOutside:i,children:n,...r}){return(0,t.jsxs)("a",{...r,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 ${h.o.row}`,children:[(0,t.jsx)(v.f,{"aria-hidden":"true",className:"size-3.5"}),n]})}var x=e.i(3523),y=e.i(48680),w=e.i(29039);function j(e){let{stale:t,inBasket:i}=e;return null===t&&null!==i?null===i.option?"In the basket: the note alone":`In the basket: option ${String(i.option)}`:null===t?"seen"===e.state?(0,m.M)(e.seenIn):void 0:(0,u.f)(t,{from:e.from})}function k({item:e,opening:i}){let n=e.stale?.replacementId??null;return null===n?null:(0,t.jsx)(h.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 S({item:e,opening:i}){return(0,t.jsx)(h.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 I({item:e,opening:i}){let n=e.actInPlace;return n?.kind==="ownStep"?(0,t.jsx)(b,{"data-testid":"bridge-own-step",href:n.href,isOutside:!1,children:n.label}):(0,t.jsxs)(t.Fragment,{children:[n?.kind==="putPick"?(0,t.jsxs)(h.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,n.option)},children:[(0,t.jsx)(d.f,{"aria-hidden":"true",className:"size-3.5"}),"Put option ",n.option," in the basket"]}):null,n?.kind==="openLink"?(0,t.jsxs)(b,{"data-testid":"bridge-step-link",href:n.href,isOutside:!0,children:["Open ",n.host]}):null,(0,t.jsx)(k,{item:e,opening:i}),(0,t.jsx)(S,{item:e,opening:i})]})}function N(e,t){return void 0===t.openingId?()=>{t.open(e)}:void 0}function $({items:e,readAt:i,opening:n,leaving:r}){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)(p.V,{item:e,now:i,isNew:"new"===e.state,isOpen:n.opened?.deliveryId===e.deliveryId,staleKind:e.stale?.kind,isLeaving:r.has(e.deliveryId),outcome:j(e),failure:n.failure?.deliveryId===e.deliveryId?n.failure.message:void 0,onOpen:N(e,n),actions:a?void 0:(0,t.jsx)(I,{item:e,opening:n})},e.deliveryId))})}function O({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)(p.V,{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:N(e,n)},e.deliveryId))})}function R({home:e,readAt:i,opening:n,leaving:r}){let{waiting:a,stayAware:s}=e;return"stay-aware"===n.opened.job?(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:[s.filter(({state:e})=>"new"===e).length," unseen"]})]}),(0,t.jsx)(O,{items:s,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:a.count})]}),(0,t.jsx)($,{items:a.items,readAt:i,opening:n,leaving:r})]})}function M({fleetId:e,home:n,now:r,opening:d,argo:o,leaving:u=new Set}){let{waiting:m,stayAware:f,messages:h}=n,p=new Date(r),{opened:v}=d;if(void 0!==v)return(0,t.jsx)(R,{home:n,readAt:p,opening:{...d,opened:v},leaving:u});let b=h.filter(({state:e})=>"new"===e).length;return(0,t.jsxs)("div",{className:"grid gap-8",children:[(0,t.jsx)("section",{className:"grid gap-3","aria-labelledby":"bridge-waiting-heading",children:0===m.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)($,{items:m.items,readAt:p,opening:d,leaving:u})}),0===h.length?null:(0,t.jsxs)("section",{className:"grid gap-3","aria-labelledby":"bridge-messages-heading",children:[(0,t.jsxs)("div",{className:"flex items-baseline justify-between gap-3",children:[(0,t.jsxs)("h2",{id:"bridge-messages-heading",className:"inline-flex items-center gap-2 text-section font-semibold",children:[(0,t.jsx)(s.f,{"aria-hidden":"true",className:"size-4 shrink-0"}),"Messages"]}),(0,t.jsx)("span",{className:"text-caption text-muted-foreground",children:(0,g.v)(b)})]}),(0,t.jsx)(y.f,{fleetId:e,messages:h.slice(0,g.d),readAt:p,opening:d,isOpenedOnPage:!0}),h.length>g.d?(0,t.jsxs)("a",{"data-testid":"bridge-all-messages",href:(0,l.i)(c.i,e),className:"flex h-9 items-center justify-center gap-1.5 rounded-lg border border-border bg-card font-medium text-primary hover:bg-accent",children:[(0,g.w)(h.length),(0,t.jsx)(a,{"aria-hidden":"true",className:"size-4"})]}):null]}),o,(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.jsxs)("h2",{id:"bridge-stay-aware-heading",className:"inline-flex items-center gap-2 text-section font-semibold",children:[(0,t.jsx)(i.f,{"aria-hidden":"true",className:"size-4 shrink-0"}),"Stay aware"]}),(0,t.jsxs)("span",{className:"text-caption text-muted-foreground",children:[f.filter(({state:e})=>"new"===e).length," unseen, outside the count"]})]}),0===f.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)(O,{items:f,readAt:p,opening:d})]})]})}function z({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)(p.V,{item:e,now:n,isNew:"new"===e.state,isOpen:!1,staleKind:e.stale?.kind,outcome:j(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,f.C)(i)}.`})]})}function A({deliveryId:e,stale:t}){return{deliveryId:e,isStale:null!==t}}e.s(["HomePanel",0,function({fleetId:e,home:i,now:n,decidePlaces:r,argo:a}){let s=(0,w.useLastReadAt)(),d=(0,o.f)(i.waiting.items.map(A));if(void 0!==s)return(0,t.jsx)(z,{items:i.waiting.items,lastReadAt:s});let l=i.waiting.items.filter(e=>"gone"!==d(A(e))),c=new Set(l.filter(e=>"leaving"===d(A(e))).map(({deliveryId:e})=>e)),u={...i,waiting:{...i.waiting,items:l}};return(0,t.jsx)(x.f,{fleetId:e,decidePlaces:r,known:[...l,...i.stayAware],children:i=>(0,t.jsx)(M,{fleetId:e,home:u,now:n,opening:i,argo:a,leaving:c})})},"StayAwareRows",0,O],85989)},3523,e=>{var t=e.i(43476),i=e.i(58487),n=e.i(5654),r=e.i(71645),a=e.i(69288),s=e.i(73459),d=e.i(65894),o=e.i(76276),l=e.i(53573),c=e.i(80931),u=e.i(68593),m=e.i(28076),f=e.i(35216),g=e.i(57228),h=e.i(29247),p=e.i(20347),v=e.i(34244),b=e.i(43328),x=e.i(27538),y=e.i(77826),w=e.i(80734),j=e.i(60296),k=e.i(66734),S=e.i(47130);function I(){let{toasts:e}=n.f.useToastManager();return(0,t.jsx)(b.f.Portal,{children:(0,t.jsx)(x.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)(y.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)(S.f,{"aria-hidden":!0,className:"mt-0.5 size-4 shrink-0"}),(0,t.jsxs)(w.f.Content,{className:"grid flex-1 gap-1",children:[(0,t.jsx)(j.f.Title,{className:"font-medium"}),(0,t.jsx)(k.f.Description,{className:"text-caption text-muted-foreground"})]})]},e.id))})})}var N=e.i(54235),$=e.i(62579),O=e.i(63132),R=e.i(75103),M=e.i(52021);function z({fleetId:e,decidePlaces:i,consoleUrl:b,known:x,children:y}){let w=n.f.useToastManager(),j=(0,R.P)(),[k,S]=(0,r.useState)(),[I,A]=(0,r.useState)(""),[L,T]=(0,r.useState)(),[P,D]=(0,r.useState)(),[U,B]=(0,r.useState)(),[C,q]=(0,r.useState)(),[E,F]=(0,r.useState)(),[V,_]=(0,r.useState)(),[,H]=(0,r.useTransition)(),[W,Y]=(0,r.useState)(0);(0,M.R)(void 0===k?void 0:(0,v.u)(k.opened.job),()=>{S(void 0)});let K=t=>{T(t.deliveryId),q(void 0),_(void 0),H(async()=>{let i=await (0,c.f)(e,t.deliveryId);if(T(void 0),i.isOk){let e=t.inBasket??null;S({delivery:i.value,opened:{job:t.job,isAlert:t.isAlert??!1,wasNew:"seen"!==t.state},inBasket:e,finished:null}),A(e?.note??""),F(void 0)}else q({deliveryId:t.deliveryId,message:i.message})})},Q=(0,r.useRef)(!1);(0,r.useEffect)(()=>{if(Q.current)return;Q.current=!0;let e=(0,p.L)(window.location.href,x);"open"===e.kind?K(e.item):"gone"===e.kind&&((0,a.f)(window.history,(0,p.v)(window.location.href,void 0)),_("That item is no longer in your inbox."))});let G=k?.delivery.deliveryId,J=x.find(({deliveryId:e})=>e===G)?.stale??null;(0,r.useEffect)(()=>{null!==J&&void 0!==G&&S(e=>void 0===e?e:{...e,delivery:(0,h.B)(e.delivery,[{deliveryId:G,stale:J}])})},[J,G]);let X=(0,r.useRef)(!1);(0,r.useEffect)(()=>{if(!X.current){X.current=!0;return}(0,a.f)(window.history,(0,p.v)(window.location.href,G))},[G]);let Z=({control:e,action:t,onSettled:i})=>{B(e),F(void 0),H(async()=>{let e=await t();B(void 0),e.isOk?i(e.value):F(e.message)})},ee=e=>()=>{S(void 0),_(e)},et=void 0===k?void 0:{deliveryId:k.delivery.deliveryId,job:k.opened.job};return(0,t.jsx)($.f,{list:(0,t.jsxs)("div",{className:"grid gap-4",children:[void 0===V?null:(0,t.jsx)(O.f,{message:V,isFailure:!1}),y({open:K,openingId:L,putPick:(t,i)=>{D(t.deliveryId),q(void 0),_(void 0),H(async()=>{let n=await (0,m.f)({fleet:e,deliveryId:t.deliveryId,option:i});D(void 0),n.isOk?(_(`Option ${String(i)} is in the basket, not sent: ${t.from} receives it when you send the basket.`),Y(e=>e+1)):q({deliveryId:t.deliveryId,message:n.message})})},puttingId:P,failure:C,opened:et})]},W),item:void 0===k?void 0:(({delivery:n,inBasket:r,opened:a,finished:c})=>{let m=n.question?.id;return(0,t.jsx)(N.u,{delivery:n,opened:a,meetingHref:void 0===n.meetingId?void 0:(0,s.f)({fleetId:e,meetingId:n.meetingId}),consoleUrl:b,basketHref:(0,d.i)(g.H,e),inBasket:r,finished:c,places:i,note:I,working:U,failure:E,onNoteChange:A,onAnswer:t=>{Z({control:void 0===t?{kind:"note"}:{kind:"option",option:t},action:()=>(0,o.f)({fleet:e,deliveryId:n.deliveryId,input:{questionId:n.question?.id,option:t,note:I}}),onSettled:ee(`Your answer went to ${n.from}.`)})},onPut:t=>{Z({control:null===t?{kind:"note"}:{kind:"option",option:t},action:()=>(0,u.f)({fleet:e,deliveryId:n.deliveryId,option:t,optionLabel:n.question?.options.find(({key:e})=>e===t)?.label??null,note:I}),onSettled:e=>{var t;S({delivery:n,opened:a,finished:c,inBasket:e}),w.add({title:null===(t=e.option)?"Your note alone in the basket":`Option ${String(t)} in the basket`,description:"Not sent. Still waiting on you until you send it."})}})},onSend:t=>{Z({control:{kind:"send"},action:()=>(0,o.f)({fleet:e,deliveryId:n.deliveryId,input:{questionId:m,option:t??void 0,note:I}}),onSettled:ee(`Your answer went to ${n.from}.`)})},onRemove:()=>{void 0!==m&&Z({control:{kind:"remove"},action:()=>(0,f.f)(e,m),onSettled:ee(`Your answer to “${n.title}” is out of the basket; the question still waits on you.`)})},onDone:()=>{Z({control:{kind:"done"},action:()=>(0,l.f)({fleet:e,deliveryId:n.deliveryId}),onSettled:ee(`Done with “${n.title}”.`)})},onFinishStep:t=>{Z({control:{kind:t},action:()=>(0,l.f)({fleet:e,deliveryId:n.deliveryId,step:{outcome:t,note:I}}),onSettled:()=>{S({delivery:n,inBasket:r,opened:a,finished:{outcome:t,note:I.trim(),at:new Date().toISOString()}})}})},onOpen:e=>{K({deliveryId:e,job:a.job})},onSendMessage:void 0===n.alertShip||void 0===j?void 0:e=>{j({alertShip:e})},onBack:()=>{S(void 0)}},n.deliveryId)})(k)})}e.s(["f",0,function({fleetId:e,decidePlaces:n,consoleUrl:r,known:a,children:s}){return(0,t.jsxs)(i.f.Provider,{children:[(0,t.jsx)(z,{fleetId:e,decidePlaces:n,consoleUrl:r,known:a,children:s}),(0,t.jsx)(I,{})]})}],3523)},48680,e=>{var t=e.i(43476),i=e.i(18566),n=e.i(71645),r=e.i(95187);let a=(0,r.createServerReference)("406aa5503bbc995f26b11414f90dd6c73d874c5213",r.callServer,void 0,r.findSourceMapURL,"doneMessage");var s=e.i(99200),d=e.i(89664),o=e.i(22768),l=e.i(12497),c=e.i(55070),u=e.i(19015);function m({message:e,now:i,isOpen:n,isMarkingDone:r,isOpening:a,isBusy:f,failure:g,onDone:h,onOpen:p}){let v=void 0===h,b=v?"":(0,s.R)(e.excerpt);return(0,t.jsx)(u.V,{item:{...e,title:(0,s.R)(e.title)},now:i,isNew:"new"===e.state,isOpen:n,outcome:function({message:e,isOpen:t}){return t?"Seen":"seen"===e.state?(0,l.M)(e.seenIn):void 0}({message:e,isOpen:n}),failure:void 0,onOpen:f?void 0:p,detail:""===b?void 0:(0,t.jsx)("p",{className:"line-clamp-2 max-w-[560px] break-words text-meta text-muted-foreground",children:b}),actions:v?void 0:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(c.i,{"data-testid":"bridge-message-done",size:"row",isPending:r,pendingLabel:"Marking done...",disabled:f,onClick:h,children:[(0,t.jsx)(d.f,{"aria-hidden":"true",className:"size-3.5"}),"Done"]}),(0,t.jsx)(c.i,{"data-testid":"bridge-message-open",size:"row",isPending:a,pendingLabel:"Opening...",disabled:f,onClick:p,children:"Open"}),void 0===g?null:(0,t.jsxs)("p",{role:"alert","data-testid":"bridge-message-failure",className:"flex basis-full items-center gap-1.5 text-meta text-destructive-text",children:[(0,t.jsx)(o.f,{"aria-hidden":"true",className:"size-3.5 shrink-0"}),g]})]})})}e.s(["f",0,function({fleetId:e,messages:r,readAt:d,opening:o,isOpenedOnPage:l=!1}){let c=(0,i.useRouter)(),[u,f]=(0,n.useState)(),[g,h]=(0,n.useState)(),[p,v]=(0,n.useState)(new Set),[b,x]=(0,n.useState)(),[,y]=(0,n.useTransition)(),w=void 0!==o.opened,j=g??o.openingId,k=void 0!==u||void 0!==j;return(0,t.jsx)("ul",{className:w?"border-t border-border":"overflow-hidden rounded-lg border border-border bg-card",children:r.filter(({deliveryId:e})=>!p.has(e)).map(i=>{var n;return(0,t.jsx)(m,{message:i,now:d,isOpen:o.opened?.deliveryId===i.deliveryId,isMarkingDone:u===i.deliveryId,isOpening:j===i.deliveryId,isBusy:k,failure:(n=i.deliveryId,b?.deliveryId===n?b.message:o.failure?.deliveryId===n?o.failure.message:void 0),onDone:w?void 0:()=>{f(i.deliveryId),x(void 0),y(async()=>{let t=await a({fleet:e,deliveryId:i.deliveryId,isNew:"new"===i.state});f(void 0),t.isOk?v(e=>new Set([...e,i.deliveryId])):x({deliveryId:i.deliveryId,message:(0,s.z)(void 0===t.code?void 0:t.message)})})},onOpen:()=>{l?(h(i.deliveryId),y(()=>{c.push((0,s.C)({fleetId:e,deliveryId:i.deliveryId}))})):o.open(i)}},i.deliveryId)})})}],48680)},55070,e=>{var t=e.i(43476);let i={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"},n={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:d,className:o="",disabled:l,...c}){return(0,t.jsx)("button",{...c,disabled:!0===l||e,"aria-busy":e,className:`inline-flex items-center rounded-md disabled:cursor-not-allowed disabled:opacity-70 ${n[s]} ${i[a]} ${o}`,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]}):d})},"o",0,n])},19015,e=>{var t=e.i(43476),i=e.i(70812),n=e.i(71136),r=e.i(96315),a=e.i(49287),s=e.i(28623),d=e.i(12497),o=e.i(91604),l=e.i(63132),c=e.i(779);let u={bridge:{icon:a.f,name:"Bridge"},slack:{icon:n.f,name:"Slack"},chat:{icon:s.f,name:"a chat"},"web-push":{icon:i.f,name:"web push"},email:{icon:r.f,name:"email"}};function m(){return(0,t.jsx)("span",{"aria-hidden":"true",className:"text-border",children:"·"})}function f({places:e}){var i;let n,r=["bridge",...e].map(e=>u[e]);return(0,t.jsx)("span",{role:"img","aria-label":`Shows in ${(n=(i=r.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:r.map(({icon:e,name:i})=>(0,t.jsx)(e,{"aria-hidden":"true",className:"size-3"},i))})}let g="overflow-hidden motion-safe:animate-row-leave";e.s(["V",0,function({item:e,now:i,isNew:n,isOpen:r=!1,staleKind:a,isLeaving:s=!1,outcome:u,failure:h,onOpen:p,time:v,detail:b,actions:x}){var y;let w=e.isAlert??!1,j=(0,o.P)({job:e.job,isAlert:w}),k=j.icon,S="min-w-0 break-words text-left text-body-touch font-medium sm:truncate sm:text-body",I=void 0===a?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!==a,"data-leaving":s||void 0,"aria-current":!!r||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:r,isStale:void 0!==a})} ${s?g:""}`,children:[(0,t.jsx)(k,{"aria-hidden":"true",className:`mt-0.5 size-4 ${j.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===p?(0,t.jsx)("span",{"data-testid":"bridge-item-title",className:S,children:I}):(0,t.jsx)("button",{type:"button","data-testid":"bridge-item-title",onClick:p,className:`${S} hover:underline`,children:I})]}),(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 ${j.tone}`,children:(0,d.z)({job:e.job,isAlert:w})}),(0,t.jsx)(m,{}),(0,t.jsx)("span",{children:e.from}),void 0===u?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===a?null:(0,t.jsx)(c.f,{kind:a}),u]})]}),void 0===e.places?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m,{}),(0,t.jsx)(f,{places:e.places})]})]})]}),(0,t.jsx)("time",{dateTime:v?.at??e.sentAt,title:(y=v?.at??e.sentAt,`${new Date(y).toISOString().slice(0,16).replace("T"," ")} UTC`),className:"whitespace-nowrap text-right text-caption text-muted-foreground",children:v?.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})})]})},"U",0,g])},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})}])},30402,e=>{let t="inline-flex h-9 items-center justify-center gap-2 rounded-md px-4 font-medium disabled:opacity-60",i={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,i,"r",0,"rounded-lg border border-border bg-card p-6 text-card-foreground shadow-sm","E",0,"rounded-lg border border-border bg-card p-3 text-card-foreground","w",0,"h-9 w-full rounded-md border border-input bg-background px-3 font-mono text-code","z",0,"grid gap-1","D",0,"h-9 w-full appearance-none rounded-md border border-input bg-background pr-8 pl-3"])},67914,e=>{var t=e.i(43476),i=e.i(71645),n=e.i(95187);let r=(0,n.createServerReference)("40e3c0037600697dd7e0800105f1231c3f942d5113",n.callServer,void 0,n.findSourceMapURL,"setTheme"),a=["light","dark","system"];e.s(["f",0,function({email:e,accountUrl:n,theme:s,entries:d=[]}){let[o,l]=(0,i.useState)(s),[c,u]=(0,i.useState)(!1),m=(0,i.useRef)(null);return{account:{name:e,signedInAs:"account",accountUrl:n,theme:o,themes:a,hasTheme:!0,onThemeChange:e=>{let t;l(e),document.documentElement.dataset.theme=e,t="dark"===e||"system"===e&&window.matchMedia("(prefers-color-scheme: dark)").matches,document.documentElement.classList.toggle("dark",t),r(e)},shortcuts:[],helpUrl:"https://github.com/ThomasHendrickx/aeolus-fleet",onSignOut:()=>{u(!0),m.current?.requestSubmit()},isSigningOut:c,entries:d},signOutForm:(0,t.jsx)("form",{ref:m,method:"post",action:"/sign-in/end",hidden:!0})}}],67914)},65894,e=>{let t="fleet";e.s(["n",0,t,"i",0,function(e,i){let[n="",r=""]=e.split("?"),a=new URLSearchParams(r);return a.set(t,i),`${n}?${a.toString()}`}])}],18566,(e,t,i)=>{t.exports=e.r(76562)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[69288,73459,15338,86844,12210,67410,46208,e=>{e.s(["f",0,function(e,t){e.replaceState(null,"",t)}],69288),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 i=(0,t.createServerReference)("40db7d83ab9618e36e567bcf66243a9a52614c933c",t.callServer,void 0,t.findSourceMapURL,"answerDelivery");e.s(["f",0,i],15338);let n=(0,t.createServerReference)("40d1b5efb67059d5ee812d8865798359fb723fb4e4",t.callServer,void 0,t.findSourceMapURL,"doneDelivery");e.s(["f",0,n],86844);let r=(0,t.createServerReference)("602390e5d7f0d17092beab792cafdd485bfb28d868",t.callServer,void 0,t.findSourceMapURL,"openDelivery");e.s(["f",0,r],12210);let a=(0,t.createServerReference)("405f92098d95e14188d3c2e2058e1b73d6468d725b",t.callServer,void 0,t.findSourceMapURL,"putInBasket");e.s(["f",0,a],67410);let s=(0,t.createServerReference)("40d6d035364bed586c26cd7d80196b6f40cc3ed5af",t.callServer,void 0,t.findSourceMapURL,"putPickInBasket");e.s(["f",0,s],46208)},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 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 d=(0,t.f)(s);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)},51481,59381,e=>{var t=e.i(75043);e.s(["f",()=>t.f],51481);var i=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,i.f)(n);e.s(["f",0,r],59381)},66595,e=>{var t=e.i(56420);let i={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};i.node;let n=(0,t.f)(i);e.s(["f",0,n],66595)},95187,(e,t,i)=>{Object.defineProperty(i,"__esModule",{value:!0});var n={callServer:function(){return a.callServer},createServerReference:function(){return d.createServerReference},findSourceMapURL:function(){return s.findSourceMapURL}};for(var r in n)Object.defineProperty(i,r,{enumerable:!0,get:n[r]});let a=e.r(32120),s=e.r(92245),d=e.r(35326)},42648,e=>{var t=e.i(95187);let i=(0,t.createServerReference)("60805144861012c3c1c5af3c3730c5ad189ec00cb2",t.callServer,void 0,t.findSourceMapURL,"removeFromBasket");e.s(["f",0,i])},28287,e=>{var t=e.i(18566),i=e.i(71645);let n={standing:new Set,staleSince:new Map};e.s(["f",0,function(e){let r=(0,t.useRouter)(),[a,s]=(0,i.useState)(n),[d,o]=(0,i.useState)(()=>Date.now()),l=e.map(({deliveryId:e,isStale:t})=>`${e}${t?"!":""}`).join(" ");return(0,i.useEffect)(()=>{let e=Date.now();s(t=>(function(e,t){let{items:i,atMs:n}=t,r=new Set(e.standing),a=new Map(e.staleSince);for(let{deliveryId:e,isStale:t}of i)t?r.has(e)&&!a.has(e)&&a.set(e,n):r.add(e);return{standing:r,staleSince:a}})(t,{items:""===l?[]:l.split(" ").map(e=>({deliveryId:e.replace("!",""),isStale:e.endsWith("!")})),atMs:e})),o(e)},[l]),(0,i.useEffect)(()=>{let e,t=0===(e=[...a.staleSince.values()].flatMap(e=>[e+5e3-300,e+5e3]).filter(e=>e>d)).length?void 0:Math.min(...e);if(void 0===t)return;let i=setTimeout(()=>{o(Date.now()),[...a.staleSince.values()].some(e=>e+5e3===t)&&r.refresh()},t-Date.now());return()=>{clearTimeout(i)}},[a,d,r]),e=>(function(e,t){let{item:i,atMs:n}=t;if(!i.isStale)return"shown";let r=e.staleSince.get(i.deliveryId);if(void 0===r)return e.standing.has(i.deliveryId)?"shown":"gone";let a=n-r;return a>=5e3?"gone":a>=4700?"leaving":"shown"})(a,{item:e,atMs:d})}],28287)},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"],r="Bridge keeps every item.",a={label:"Not offered",isOk:!1},s={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:s,description:o,action:"turnOn"}:{state:a,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:a,isOn:s,waiting:d,isChatOn:o}=e,{name:l,item:c,items:u}=t[n],m=`${i[a]} is ${s?"on":"off"} for ${l}`;return s?"chat"===a?{title:m,detail:`A chat lists every ${c} not done when you ask it.`}:{title:m,detail:`${i[a]} shows ${u} 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"===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:i})=>t===e.ownEndpoint&&!i);return void 0===t?{state:s,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(70812),n=e.i(56420);let r={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};r.node;let a=(0,n.f)(r);var s=e.i(68590),d=e.i(47130),o=e.i(28287),l=e.i(65894),c=e.i(57228),u=e.i(29247),m=e.i(12497),f=e.i(17904),g=e.i(99200),p=e.i(55070),h=e.i(19015),v=e.i(82022);function b({href:e,isOutside:i,children:n,...r}){return(0,t.jsxs)("a",{...r,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 ${p.o.row}`,children:[(0,t.jsx)(v.f,{"aria-hidden":"true",className:"size-3.5"}),n]})}var x=e.i(3523),y=e.i(48680),w=e.i(29039);function j(e){let{stale:t,inBasket:i}=e;return null===t&&null!==i?null===i.option?"In the basket: the note alone":`In the basket: option ${String(i.option)}`:null===t?"seen"===e.state?(0,m.M)(e.seenIn):void 0:(0,u.f)(t,{from:e.from})}function k({item:e,opening:i}){let n=e.stale?.replacementId??null;return null===n?null:(0,t.jsx)(p.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 S({item:e,opening:i}){return(0,t.jsx)(p.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 I({item:e,opening:i}){let n=e.actInPlace;return n?.kind==="ownStep"?(0,t.jsx)(b,{"data-testid":"bridge-own-step",href:n.href,isOutside:!1,children:n.label}):(0,t.jsxs)(t.Fragment,{children:[n?.kind==="putPick"?(0,t.jsxs)(p.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,n.option)},children:[(0,t.jsx)(d.f,{"aria-hidden":"true",className:"size-3.5"}),"Put option ",n.option," in the basket"]}):null,n?.kind==="openLink"?(0,t.jsxs)(b,{"data-testid":"bridge-step-link",href:n.href,isOutside:!0,children:["Open ",n.host]}):null,(0,t.jsx)(k,{item:e,opening:i}),(0,t.jsx)(S,{item:e,opening:i})]})}function N(e,t){return void 0===t.openingId?()=>{t.open(e)}:void 0}function O({items:e,readAt:i,opening:n,leaving:r}){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)(h.V,{item:e,now:i,isNew:"new"===e.state,isOpen:n.opened?.deliveryId===e.deliveryId,staleKind:e.stale?.kind,isLeaving:r.has(e.deliveryId),outcome:j(e),failure:n.failure?.deliveryId===e.deliveryId?n.failure.message:void 0,onOpen:N(e,n),actions:a?void 0:(0,t.jsx)(I,{item:e,opening:n})},e.deliveryId))})}function $({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)(h.V,{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:N(e,n)},e.deliveryId))})}function R({home:e,readAt:i,opening:n,leaving:r}){let{waiting:a,stayAware:s}=e;return"stay-aware"===n.opened.job?(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:[s.filter(({state:e})=>"new"===e).length," unseen"]})]}),(0,t.jsx)($,{items:s,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:a.count})]}),(0,t.jsx)(O,{items:a.items,readAt:i,opening:n,leaving:r})]})}function M({fleetId:e,home:n,now:r,opening:d,argo:o,leaving:u=new Set}){let{waiting:m,stayAware:f,messages:p}=n,h=new Date(r),{opened:v}=d;if(void 0!==v)return(0,t.jsx)(R,{home:n,readAt:h,opening:{...d,opened:v},leaving:u});let b=p.filter(({state:e})=>"new"===e).length;return(0,t.jsxs)("div",{className:"grid gap-8",children:[(0,t.jsx)("section",{className:"grid gap-3","aria-labelledby":"bridge-waiting-heading",children:0===m.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)(O,{items:m.items,readAt:h,opening:d,leaving:u})}),0===p.length?null:(0,t.jsxs)("section",{className:"grid gap-3","aria-labelledby":"bridge-messages-heading",children:[(0,t.jsxs)("div",{className:"flex items-baseline justify-between gap-3",children:[(0,t.jsxs)("h2",{id:"bridge-messages-heading",className:"inline-flex items-center gap-2 text-section font-semibold",children:[(0,t.jsx)(s.f,{"aria-hidden":"true",className:"size-4 shrink-0"}),"Messages"]}),(0,t.jsx)("span",{className:"text-caption text-muted-foreground",children:(0,g.v)(b)})]}),(0,t.jsx)(y.f,{fleetId:e,messages:p.slice(0,g.d),readAt:h,opening:d,isOpenedOnPage:!0}),p.length>g.d?(0,t.jsxs)("a",{"data-testid":"bridge-all-messages",href:(0,l.i)(c.i,e),className:"flex h-9 items-center justify-center gap-1.5 rounded-lg border border-border bg-card font-medium text-primary hover:bg-accent",children:[(0,g.w)(p.length),(0,t.jsx)(a,{"aria-hidden":"true",className:"size-4"})]}):null]}),o,(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.jsxs)("h2",{id:"bridge-stay-aware-heading",className:"inline-flex items-center gap-2 text-section font-semibold",children:[(0,t.jsx)(i.f,{"aria-hidden":"true",className:"size-4 shrink-0"}),"Stay aware"]}),(0,t.jsxs)("span",{className:"text-caption text-muted-foreground",children:[f.filter(({state:e})=>"new"===e).length," unseen, outside the count"]})]}),0===f.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)($,{items:f,readAt:h,opening:d})]})]})}function z({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)(h.V,{item:e,now:n,isNew:"new"===e.state,isOpen:!1,staleKind:e.stale?.kind,outcome:j(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,f.C)(i)}.`})]})}function L({deliveryId:e,stale:t}){return{deliveryId:e,isStale:null!==t}}e.s(["HomePanel",0,function({fleetId:e,home:i,now:n,decidePlaces:r,argo:a}){let s=(0,w.useLastReadAt)(),d=(0,o.f)(i.waiting.items.map(L));if(void 0!==s)return(0,t.jsx)(z,{items:i.waiting.items,lastReadAt:s});let l=i.waiting.items.filter(e=>"gone"!==d(L(e))),c=new Set(l.filter(e=>"leaving"===d(L(e))).map(({deliveryId:e})=>e)),u={...i,waiting:{...i.waiting,items:l}};return(0,t.jsx)(x.f,{fleetId:e,decidePlaces:r,known:[...l,...i.stayAware],children:i=>(0,t.jsx)(M,{fleetId:e,home:u,now:n,opening:i,argo:a,leaving:c})})},"StayAwareRows",0,$],85989)},3523,e=>{var t=e.i(43476),i=e.i(58487),n=e.i(5654),r=e.i(71645),a=e.i(69288),s=e.i(73459),d=e.i(65894),o=e.i(15338),l=e.i(86844),c=e.i(12210),u=e.i(67410),m=e.i(46208),f=e.i(42648),g=e.i(57228),p=e.i(29247),h=e.i(20347),v=e.i(34244),b=e.i(43328),x=e.i(27538),y=e.i(77826),w=e.i(80734),j=e.i(60296),k=e.i(66734),S=e.i(47130);function I(){let{toasts:e}=n.f.useToastManager();return(0,t.jsx)(b.f.Portal,{children:(0,t.jsx)(x.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)(y.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)(S.f,{"aria-hidden":!0,className:"mt-0.5 size-4 shrink-0"}),(0,t.jsxs)(w.f.Content,{className:"grid flex-1 gap-1",children:[(0,t.jsx)(j.f.Title,{className:"font-medium"}),(0,t.jsx)(k.f.Description,{className:"text-caption text-muted-foreground"})]})]},e.id))})})}var N=e.i(54235),O=e.i(62579),$=e.i(63132),R=e.i(75103),M=e.i(52021);function z({fleetId:e,decidePlaces:i,consoleUrl:b,known:x,children:y}){let w=n.f.useToastManager(),j=(0,R.P)(),[k,S]=(0,r.useState)(),[I,L]=(0,r.useState)(""),[A,P]=(0,r.useState)(),[T,D]=(0,r.useState)(),[U,B]=(0,r.useState)(),[C,q]=(0,r.useState)(),[E,F]=(0,r.useState)(),[V,_]=(0,r.useState)(),[,H]=(0,r.useTransition)(),[W,Y]=(0,r.useState)(0);(0,M.R)(void 0===k?void 0:(0,v.u)(k.opened.job),()=>{S(void 0)});let K=t=>{P(t.deliveryId),q(void 0),_(void 0),H(async()=>{let i=await (0,c.f)(e,t.deliveryId);if(P(void 0),i.isOk){let e=t.inBasket??null;S({delivery:i.value,opened:{job:t.job,isAlert:t.isAlert??!1,wasNew:"seen"!==t.state},inBasket:e,finished:null}),L(e?.note??""),F(void 0)}else q({deliveryId:t.deliveryId,message:i.message})})},Q=(0,r.useRef)(!1);(0,r.useEffect)(()=>{if(Q.current)return;Q.current=!0;let e=(0,h.L)(window.location.href,x);"open"===e.kind?K(e.item):"gone"===e.kind&&((0,a.f)(window.history,(0,h.v)(window.location.href,void 0)),_("That item is no longer in your inbox."))});let G=k?.delivery.deliveryId,J=x.find(({deliveryId:e})=>e===G)?.stale??null;(0,r.useEffect)(()=>{null!==J&&void 0!==G&&S(e=>void 0===e?e:{...e,delivery:(0,p.B)(e.delivery,[{deliveryId:G,stale:J}])})},[J,G]);let X=(0,r.useRef)(!1);(0,r.useEffect)(()=>{if(!X.current){X.current=!0;return}(0,a.f)(window.history,(0,h.v)(window.location.href,G))},[G]);let Z=({control:e,action:t,onSettled:i})=>{B(e),F(void 0),H(async()=>{let e=await t();B(void 0),e.isOk?i(e.value):F(e.message)})},ee=e=>()=>{S(void 0),_(e)},et=void 0===k?void 0:{deliveryId:k.delivery.deliveryId,job:k.opened.job};return(0,t.jsx)(O.f,{list:(0,t.jsxs)("div",{className:"grid gap-4",children:[void 0===V?null:(0,t.jsx)($.f,{message:V,isFailure:!1}),y({open:K,openingId:A,putPick:(t,i)=>{D(t.deliveryId),q(void 0),_(void 0),H(async()=>{let n=await (0,m.f)({fleet:e,deliveryId:t.deliveryId,option:i});D(void 0),n.isOk?(_(`Option ${String(i)} is in the basket, not sent: ${t.from} receives it when you send the basket.`),Y(e=>e+1)):q({deliveryId:t.deliveryId,message:n.message})})},puttingId:T,failure:C,opened:et})]},W),item:void 0===k?void 0:(({delivery:n,inBasket:r,opened:a,finished:c})=>{let m=n.question?.id;return(0,t.jsx)(N.u,{delivery:n,opened:a,meetingHref:void 0===n.meetingId?void 0:(0,s.f)({fleetId:e,meetingId:n.meetingId}),consoleUrl:b,basketHref:(0,d.i)(g.H,e),inBasket:r,finished:c,places:i,note:I,working:U,failure:E,onNoteChange:L,onAnswer:t=>{Z({control:void 0===t?{kind:"note"}:{kind:"option",option:t},action:()=>(0,o.f)({fleet:e,deliveryId:n.deliveryId,input:{questionId:n.question?.id,option:t,note:I}}),onSettled:ee(`Your answer went to ${n.from}.`)})},onPut:t=>{Z({control:null===t?{kind:"note"}:{kind:"option",option:t},action:()=>(0,u.f)({fleet:e,deliveryId:n.deliveryId,option:t,optionLabel:n.question?.options.find(({key:e})=>e===t)?.label??null,note:I}),onSettled:e=>{var t;S({delivery:n,opened:a,finished:c,inBasket:e}),w.add({title:null===(t=e.option)?"Your note alone in the basket":`Option ${String(t)} in the basket`,description:"Not sent. Still waiting on you until you send it."})}})},onSend:t=>{Z({control:{kind:"send"},action:()=>(0,o.f)({fleet:e,deliveryId:n.deliveryId,input:{questionId:m,option:t??void 0,note:I}}),onSettled:ee(`Your answer went to ${n.from}.`)})},onRemove:()=>{void 0!==m&&Z({control:{kind:"remove"},action:()=>(0,f.f)(e,m),onSettled:ee(`Your answer to “${n.title}” is out of the basket; the question still waits on you.`)})},onDone:()=>{Z({control:{kind:"done"},action:()=>(0,l.f)({fleet:e,deliveryId:n.deliveryId}),onSettled:ee(`Done with “${n.title}”.`)})},onFinishStep:t=>{Z({control:{kind:t},action:()=>(0,l.f)({fleet:e,deliveryId:n.deliveryId,step:{outcome:t,note:I}}),onSettled:()=>{S({delivery:n,inBasket:r,opened:a,finished:{outcome:t,note:I.trim(),at:new Date().toISOString()}})}})},onOpen:e=>{K({deliveryId:e,job:a.job})},onSendMessage:void 0===n.alertShip||void 0===j?void 0:e=>{j({alertShip:e})},onBack:()=>{S(void 0)}},n.deliveryId)})(k)})}e.s(["f",0,function({fleetId:e,decidePlaces:n,consoleUrl:r,known:a,children:s}){return(0,t.jsxs)(i.f.Provider,{children:[(0,t.jsx)(z,{fleetId:e,decidePlaces:n,consoleUrl:r,known:a,children:s}),(0,t.jsx)(I,{})]})}],3523)},48680,e=>{var t=e.i(43476),i=e.i(18566),n=e.i(71645),r=e.i(95187);let a=(0,r.createServerReference)("40ad18ec34752337ffe6053724250396ebd972f1f0",r.callServer,void 0,r.findSourceMapURL,"doneMessage");var s=e.i(99200),d=e.i(89664),o=e.i(22768),l=e.i(12497),c=e.i(55070),u=e.i(19015);function m({message:e,now:i,isOpen:n,isMarkingDone:r,isOpening:a,isBusy:f,failure:g,onDone:p,onOpen:h}){let v=void 0===p,b=v?"":(0,s.R)(e.excerpt);return(0,t.jsx)(u.V,{item:{...e,title:(0,s.R)(e.title)},now:i,isNew:"new"===e.state,isOpen:n,outcome:function({message:e,isOpen:t}){return t?"Seen":"seen"===e.state?(0,l.M)(e.seenIn):void 0}({message:e,isOpen:n}),failure:void 0,onOpen:f?void 0:h,detail:""===b?void 0:(0,t.jsx)("p",{className:"line-clamp-2 max-w-[560px] break-words text-meta text-muted-foreground",children:b}),actions:v?void 0:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(c.i,{"data-testid":"bridge-message-done",size:"row",isPending:r,pendingLabel:"Marking done...",disabled:f,onClick:p,children:[(0,t.jsx)(d.f,{"aria-hidden":"true",className:"size-3.5"}),"Done"]}),(0,t.jsx)(c.i,{"data-testid":"bridge-message-open",size:"row",isPending:a,pendingLabel:"Opening...",disabled:f,onClick:h,children:"Open"}),void 0===g?null:(0,t.jsxs)("p",{role:"alert","data-testid":"bridge-message-failure",className:"flex basis-full items-center gap-1.5 text-meta text-destructive-text",children:[(0,t.jsx)(o.f,{"aria-hidden":"true",className:"size-3.5 shrink-0"}),g]})]})})}e.s(["f",0,function({fleetId:e,messages:r,readAt:d,opening:o,isOpenedOnPage:l=!1}){let c=(0,i.useRouter)(),[u,f]=(0,n.useState)(),[g,p]=(0,n.useState)(),[h,v]=(0,n.useState)(new Set),[b,x]=(0,n.useState)(),[,y]=(0,n.useTransition)(),w=void 0!==o.opened,j=g??o.openingId,k=void 0!==u||void 0!==j;return(0,t.jsx)("ul",{className:w?"border-t border-border":"overflow-hidden rounded-lg border border-border bg-card",children:r.filter(({deliveryId:e})=>!h.has(e)).map(i=>{var n;return(0,t.jsx)(m,{message:i,now:d,isOpen:o.opened?.deliveryId===i.deliveryId,isMarkingDone:u===i.deliveryId,isOpening:j===i.deliveryId,isBusy:k,failure:(n=i.deliveryId,b?.deliveryId===n?b.message:o.failure?.deliveryId===n?o.failure.message:void 0),onDone:w?void 0:()=>{f(i.deliveryId),x(void 0),y(async()=>{let t=await a({fleet:e,deliveryId:i.deliveryId,isNew:"new"===i.state});f(void 0),t.isOk?v(e=>new Set([...e,i.deliveryId])):x({deliveryId:i.deliveryId,message:(0,s.z)(void 0===t.code?void 0:t.message)})})},onOpen:()=>{l?(p(i.deliveryId),y(()=>{c.push((0,s.C)({fleetId:e,deliveryId:i.deliveryId}))})):o.open(i)}},i.deliveryId)})})}],48680)},55070,e=>{var t=e.i(43476);let i={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"},n={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:d,className:o="",disabled:l,...c}){return(0,t.jsx)("button",{...c,disabled:!0===l||e,"aria-busy":e,className:`inline-flex items-center rounded-md disabled:cursor-not-allowed disabled:opacity-70 ${n[s]} ${i[a]} ${o}`,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]}):d})},"o",0,n])},19015,e=>{var t=e.i(43476),i=e.i(70812),n=e.i(71136),r=e.i(96315),a=e.i(49287),s=e.i(28623),d=e.i(12497),o=e.i(91604),l=e.i(63132),c=e.i(779);let u={bridge:{icon:a.f,name:"Bridge"},slack:{icon:n.f,name:"Slack"},chat:{icon:s.f,name:"a chat"},"web-push":{icon:i.f,name:"web push"},email:{icon:r.f,name:"email"}};function m(){return(0,t.jsx)("span",{"aria-hidden":"true",className:"text-border",children:"·"})}function f({places:e}){var i;let n,r=["bridge",...e].map(e=>u[e]);return(0,t.jsx)("span",{role:"img","aria-label":`Shows in ${(n=(i=r.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:r.map(({icon:e,name:i})=>(0,t.jsx)(e,{"aria-hidden":"true",className:"size-3"},i))})}let g="overflow-hidden motion-safe:animate-row-leave";e.s(["V",0,function({item:e,now:i,isNew:n,isOpen:r=!1,staleKind:a,isLeaving:s=!1,outcome:u,failure:p,onOpen:h,time:v,detail:b,actions:x}){var y;let w=e.isAlert??!1,j=(0,o.P)({job:e.job,isAlert:w}),k=j.icon,S="min-w-0 break-words text-left text-body-touch font-medium sm:truncate sm:text-body",I=void 0===a?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!==a,"data-leaving":s||void 0,"aria-current":!!r||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:r,isStale:void 0!==a})} ${s?g:""}`,children:[(0,t.jsx)(k,{"aria-hidden":"true",className:`mt-0.5 size-4 ${j.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===h?(0,t.jsx)("span",{"data-testid":"bridge-item-title",className:S,children:I}):(0,t.jsx)("button",{type:"button","data-testid":"bridge-item-title",onClick:h,className:`${S} hover:underline`,children:I})]}),(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 ${j.tone}`,children:(0,d.z)({job:e.job,isAlert:w})}),(0,t.jsx)(m,{}),(0,t.jsx)("span",{children:e.from}),void 0===u?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===a?null:(0,t.jsx)(c.f,{kind:a}),u]})]}),void 0===e.places?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m,{}),(0,t.jsx)(f,{places:e.places})]})]})]}),(0,t.jsx)("time",{dateTime:v?.at??e.sentAt,title:(y=v?.at??e.sentAt,`${new Date(y).toISOString().slice(0,16).replace("T"," ")} UTC`),className:"whitespace-nowrap text-right text-caption text-muted-foreground",children:v?.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===p?null:(0,t.jsx)("div",{className:"col-span-2 col-start-2",children:(0,t.jsx)(l.f,{message:p,isFailure:!0})})]})},"U",0,g])},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})}])},30402,e=>{let t="inline-flex h-9 items-center justify-center gap-2 rounded-md px-4 font-medium disabled:opacity-60",i={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,i,"r",0,"rounded-lg border border-border bg-card p-6 text-card-foreground shadow-sm","E",0,"rounded-lg border border-border bg-card p-3 text-card-foreground","w",0,"h-9 w-full rounded-md border border-input bg-background px-3 font-mono text-code","z",0,"grid gap-1","D",0,"h-9 w-full appearance-none rounded-md border border-input bg-background pr-8 pl-3"])},67914,e=>{var t=e.i(43476),i=e.i(71645),n=e.i(95187);let r=(0,n.createServerReference)("406e70c54d0df55ecef3263e68bd02259fd622902e",n.callServer,void 0,n.findSourceMapURL,"setTheme"),a=["light","dark","system"];e.s(["f",0,function({email:e,accountUrl:n,theme:s,entries:d=[]}){let[o,l]=(0,i.useState)(s),[c,u]=(0,i.useState)(!1),m=(0,i.useRef)(null);return{account:{name:e,signedInAs:"account",accountUrl:n,theme:o,themes:a,hasTheme:!0,onThemeChange:e=>{let t;l(e),document.documentElement.dataset.theme=e,t="dark"===e||"system"===e&&window.matchMedia("(prefers-color-scheme: dark)").matches,document.documentElement.classList.toggle("dark",t),r(e)},shortcuts:[],helpUrl:"https://github.com/ThomasHendrickx/aeolus-fleet",onSignOut:()=>{u(!0),m.current?.requestSubmit()},isSigningOut:c,entries:d},signOutForm:(0,t.jsx)("form",{ref:m,method:"post",action:"/sign-in/end",hidden:!0})}}],67914)},65894,e=>{let t="fleet";e.s(["n",0,t,"i",0,function(e,i){let[n="",r=""]=e.split("?"),a=new URLSearchParams(r);return a.set(t,i),`${n}?${a.toString()}`}])}],18566,(e,t,i)=>{t.exports=e.r(76562)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[69288,73459,76276,53573,80931,68593,28076,e=>{e.s(["f",0,function(e,t){e.replaceState(null,"",t)}],69288),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 i=(0,t.createServerReference)("4054d191d4c0822a6727911b08928dc6494186955b",t.callServer,void 0,t.findSourceMapURL,"answerDelivery");e.s(["f",0,i],76276);let n=(0,t.createServerReference)("40a5971b7a259df5c98b9acd5bd0213b54095a30b7",t.callServer,void 0,t.findSourceMapURL,"doneDelivery");e.s(["f",0,n],53573);let r=(0,t.createServerReference)("60d1ce52418803fae754641fd9944af8933e13544c",t.callServer,void 0,t.findSourceMapURL,"openDelivery");e.s(["f",0,r],80931);let a=(0,t.createServerReference)("40a416602ce92909584c7caf32af8815181d8eeccf",t.callServer,void 0,t.findSourceMapURL,"putInBasket");e.s(["f",0,a],68593);let s=(0,t.createServerReference)("40464b8eb9ff617e937479d4e0fdbeef3b7d5de09c",t.callServer,void 0,t.findSourceMapURL,"putPickInBasket");e.s(["f",0,s],28076)},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 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 d=(0,t.f)(s);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)},51481,59381,e=>{var t=e.i(75043);e.s(["f",()=>t.f],51481);var i=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,i.f)(n);e.s(["f",0,r],59381)},66595,e=>{var t=e.i(56420);let i={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};i.node;let n=(0,t.f)(i);e.s(["f",0,n],66595)},95187,(e,t,i)=>{Object.defineProperty(i,"__esModule",{value:!0});var n={callServer:function(){return a.callServer},createServerReference:function(){return d.createServerReference},findSourceMapURL:function(){return s.findSourceMapURL}};for(var r in n)Object.defineProperty(i,r,{enumerable:!0,get:n[r]});let a=e.r(32120),s=e.r(92245),d=e.r(35326)},35216,e=>{var t=e.i(95187);let i=(0,t.createServerReference)("60215dabf97f542d3a0b1e7da6f87578e26fedce72",t.callServer,void 0,t.findSourceMapURL,"removeFromBasket");e.s(["f",0,i])},28287,e=>{var t=e.i(18566),i=e.i(71645);let n={standing:new Set,staleSince:new Map};e.s(["f",0,function(e){let r=(0,t.useRouter)(),[a,s]=(0,i.useState)(n),[d,o]=(0,i.useState)(()=>Date.now()),l=e.map(({deliveryId:e,isStale:t})=>`${e}${t?"!":""}`).join(" ");return(0,i.useEffect)(()=>{let e=Date.now();s(t=>(function(e,t){let{items:i,atMs:n}=t,r=new Set(e.standing),a=new Map(e.staleSince);for(let{deliveryId:e,isStale:t}of i)t?r.has(e)&&!a.has(e)&&a.set(e,n):r.add(e);return{standing:r,staleSince:a}})(t,{items:""===l?[]:l.split(" ").map(e=>({deliveryId:e.replace("!",""),isStale:e.endsWith("!")})),atMs:e})),o(e)},[l]),(0,i.useEffect)(()=>{let e,t=0===(e=[...a.staleSince.values()].flatMap(e=>[e+5e3-300,e+5e3]).filter(e=>e>d)).length?void 0:Math.min(...e);if(void 0===t)return;let i=setTimeout(()=>{o(Date.now()),[...a.staleSince.values()].some(e=>e+5e3===t)&&r.refresh()},t-Date.now());return()=>{clearTimeout(i)}},[a,d,r]),e=>(function(e,t){let{item:i,atMs:n}=t;if(!i.isStale)return"shown";let r=e.staleSince.get(i.deliveryId);if(void 0===r)return e.standing.has(i.deliveryId)?"shown":"gone";let a=n-r;return a>=5e3?"gone":a>=4700?"leaving":"shown"})(a,{item:e,atMs:d})}],28287)},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"],r="Bridge keeps every item.",a={label:"Not offered",isOk:!1},s={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:s,description:o,action:"turnOn"}:{state:a,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:a,isOn:s,waiting:d,isChatOn:o}=e,{name:l,item:c,items:u}=t[n],m=`${i[a]} is ${s?"on":"off"} for ${l}`;return s?"chat"===a?{title:m,detail:`A chat lists every ${c} not done when you ask it.`}:{title:m,detail:`${i[a]} shows ${u} 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"===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:i})=>t===e.ownEndpoint&&!i);return void 0===t?{state:s,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(70812),n=e.i(56420);let r={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};r.node;let a=(0,n.f)(r);var s=e.i(68590),d=e.i(47130),o=e.i(28287),l=e.i(65894),c=e.i(57228),u=e.i(29247),m=e.i(12497),f=e.i(17904),g=e.i(99200),p=e.i(55070),h=e.i(19015),v=e.i(82022);function b({href:e,isOutside:i,children:n,...r}){return(0,t.jsxs)("a",{...r,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 ${p.o.row}`,children:[(0,t.jsx)(v.f,{"aria-hidden":"true",className:"size-3.5"}),n]})}var x=e.i(3523),y=e.i(48680),w=e.i(29039);function j(e){let{stale:t,inBasket:i}=e;return null===t&&null!==i?null===i.option?"In the basket: the note alone":`In the basket: option ${String(i.option)}`:null===t?"seen"===e.state?(0,m.M)(e.seenIn):void 0:(0,u.f)(t,{from:e.from})}function k({item:e,opening:i}){let n=e.stale?.replacementId??null;return null===n?null:(0,t.jsx)(p.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 S({item:e,opening:i}){return(0,t.jsx)(p.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 I({item:e,opening:i}){let n=e.actInPlace;return n?.kind==="ownStep"?(0,t.jsx)(b,{"data-testid":"bridge-own-step",href:n.href,isOutside:!1,children:n.label}):(0,t.jsxs)(t.Fragment,{children:[n?.kind==="putPick"?(0,t.jsxs)(p.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,n.option)},children:[(0,t.jsx)(d.f,{"aria-hidden":"true",className:"size-3.5"}),"Put option ",n.option," in the basket"]}):null,n?.kind==="openLink"?(0,t.jsxs)(b,{"data-testid":"bridge-step-link",href:n.href,isOutside:!0,children:["Open ",n.host]}):null,(0,t.jsx)(k,{item:e,opening:i}),(0,t.jsx)(S,{item:e,opening:i})]})}function N(e,t){return void 0===t.openingId?()=>{t.open(e)}:void 0}function O({items:e,readAt:i,opening:n,leaving:r}){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)(h.V,{item:e,now:i,isNew:"new"===e.state,isOpen:n.opened?.deliveryId===e.deliveryId,staleKind:e.stale?.kind,isLeaving:r.has(e.deliveryId),outcome:j(e),failure:n.failure?.deliveryId===e.deliveryId?n.failure.message:void 0,onOpen:N(e,n),actions:a?void 0:(0,t.jsx)(I,{item:e,opening:n})},e.deliveryId))})}function $({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)(h.V,{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:N(e,n)},e.deliveryId))})}function R({home:e,readAt:i,opening:n,leaving:r}){let{waiting:a,stayAware:s}=e;return"stay-aware"===n.opened.job?(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:[s.filter(({state:e})=>"new"===e).length," unseen"]})]}),(0,t.jsx)($,{items:s,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:a.count})]}),(0,t.jsx)(O,{items:a.items,readAt:i,opening:n,leaving:r})]})}function M({fleetId:e,home:n,now:r,opening:d,argo:o,leaving:u=new Set}){let{waiting:m,stayAware:f,messages:p}=n,h=new Date(r),{opened:v}=d;if(void 0!==v)return(0,t.jsx)(R,{home:n,readAt:h,opening:{...d,opened:v},leaving:u});let b=p.filter(({state:e})=>"new"===e).length;return(0,t.jsxs)("div",{className:"grid gap-8",children:[(0,t.jsx)("section",{className:"grid gap-3","aria-labelledby":"bridge-waiting-heading",children:0===m.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)(O,{items:m.items,readAt:h,opening:d,leaving:u})}),0===p.length?null:(0,t.jsxs)("section",{className:"grid gap-3","aria-labelledby":"bridge-messages-heading",children:[(0,t.jsxs)("div",{className:"flex items-baseline justify-between gap-3",children:[(0,t.jsxs)("h2",{id:"bridge-messages-heading",className:"inline-flex items-center gap-2 text-section font-semibold",children:[(0,t.jsx)(s.f,{"aria-hidden":"true",className:"size-4 shrink-0"}),"Messages"]}),(0,t.jsx)("span",{className:"text-caption text-muted-foreground",children:(0,g.v)(b)})]}),(0,t.jsx)(y.f,{fleetId:e,messages:p.slice(0,g.d),readAt:h,opening:d,isOpenedOnPage:!0}),p.length>g.d?(0,t.jsxs)("a",{"data-testid":"bridge-all-messages",href:(0,l.i)(c.i,e),className:"flex h-9 items-center justify-center gap-1.5 rounded-lg border border-border bg-card font-medium text-primary hover:bg-accent",children:[(0,g.w)(p.length),(0,t.jsx)(a,{"aria-hidden":"true",className:"size-4"})]}):null]}),o,(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.jsxs)("h2",{id:"bridge-stay-aware-heading",className:"inline-flex items-center gap-2 text-section font-semibold",children:[(0,t.jsx)(i.f,{"aria-hidden":"true",className:"size-4 shrink-0"}),"Stay aware"]}),(0,t.jsxs)("span",{className:"text-caption text-muted-foreground",children:[f.filter(({state:e})=>"new"===e).length," unseen, outside the count"]})]}),0===f.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)($,{items:f,readAt:h,opening:d})]})]})}function z({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)(h.V,{item:e,now:n,isNew:"new"===e.state,isOpen:!1,staleKind:e.stale?.kind,outcome:j(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,f.C)(i)}.`})]})}function L({deliveryId:e,stale:t}){return{deliveryId:e,isStale:null!==t}}e.s(["HomePanel",0,function({fleetId:e,home:i,now:n,decidePlaces:r,argo:a}){let s=(0,w.useLastReadAt)(),d=(0,o.f)(i.waiting.items.map(L));if(void 0!==s)return(0,t.jsx)(z,{items:i.waiting.items,lastReadAt:s});let l=i.waiting.items.filter(e=>"gone"!==d(L(e))),c=new Set(l.filter(e=>"leaving"===d(L(e))).map(({deliveryId:e})=>e)),u={...i,waiting:{...i.waiting,items:l}};return(0,t.jsx)(x.f,{fleetId:e,decidePlaces:r,known:[...l,...i.stayAware],children:i=>(0,t.jsx)(M,{fleetId:e,home:u,now:n,opening:i,argo:a,leaving:c})})},"StayAwareRows",0,$],85989)},3523,e=>{var t=e.i(43476),i=e.i(58487),n=e.i(5654),r=e.i(71645),a=e.i(69288),s=e.i(73459),d=e.i(65894),o=e.i(76276),l=e.i(53573),c=e.i(80931),u=e.i(68593),m=e.i(28076),f=e.i(35216),g=e.i(57228),p=e.i(29247),h=e.i(20347),v=e.i(34244),b=e.i(43328),x=e.i(27538),y=e.i(77826),w=e.i(80734),j=e.i(60296),k=e.i(66734),S=e.i(47130);function I(){let{toasts:e}=n.f.useToastManager();return(0,t.jsx)(b.f.Portal,{children:(0,t.jsx)(x.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)(y.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)(S.f,{"aria-hidden":!0,className:"mt-0.5 size-4 shrink-0"}),(0,t.jsxs)(w.f.Content,{className:"grid flex-1 gap-1",children:[(0,t.jsx)(j.f.Title,{className:"font-medium"}),(0,t.jsx)(k.f.Description,{className:"text-caption text-muted-foreground"})]})]},e.id))})})}var N=e.i(54235),O=e.i(62579),$=e.i(63132),R=e.i(75103),M=e.i(52021);function z({fleetId:e,decidePlaces:i,consoleUrl:b,known:x,children:y}){let w=n.f.useToastManager(),j=(0,R.P)(),[k,S]=(0,r.useState)(),[I,L]=(0,r.useState)(""),[A,P]=(0,r.useState)(),[T,D]=(0,r.useState)(),[U,B]=(0,r.useState)(),[C,q]=(0,r.useState)(),[E,F]=(0,r.useState)(),[V,_]=(0,r.useState)(),[,H]=(0,r.useTransition)(),[W,Y]=(0,r.useState)(0);(0,M.R)(void 0===k?void 0:(0,v.u)(k.opened.job),()=>{S(void 0)});let K=t=>{P(t.deliveryId),q(void 0),_(void 0),H(async()=>{let i=await (0,c.f)(e,t.deliveryId);if(P(void 0),i.isOk){let e=t.inBasket??null;S({delivery:i.value,opened:{job:t.job,isAlert:t.isAlert??!1,wasNew:"seen"!==t.state},inBasket:e,finished:null}),L(e?.note??""),F(void 0)}else q({deliveryId:t.deliveryId,message:i.message})})},Q=(0,r.useRef)(!1);(0,r.useEffect)(()=>{if(Q.current)return;Q.current=!0;let e=(0,h.L)(window.location.href,x);"open"===e.kind?K(e.item):"gone"===e.kind&&((0,a.f)(window.history,(0,h.v)(window.location.href,void 0)),_("That item is no longer in your inbox."))});let G=k?.delivery.deliveryId,J=x.find(({deliveryId:e})=>e===G)?.stale??null;(0,r.useEffect)(()=>{null!==J&&void 0!==G&&S(e=>void 0===e?e:{...e,delivery:(0,p.B)(e.delivery,[{deliveryId:G,stale:J}])})},[J,G]);let X=(0,r.useRef)(!1);(0,r.useEffect)(()=>{if(!X.current){X.current=!0;return}(0,a.f)(window.history,(0,h.v)(window.location.href,G))},[G]);let Z=({control:e,action:t,onSettled:i})=>{B(e),F(void 0),H(async()=>{let e=await t();B(void 0),e.isOk?i(e.value):F(e.message)})},ee=e=>()=>{S(void 0),_(e)},et=void 0===k?void 0:{deliveryId:k.delivery.deliveryId,job:k.opened.job};return(0,t.jsx)(O.f,{list:(0,t.jsxs)("div",{className:"grid gap-4",children:[void 0===V?null:(0,t.jsx)($.f,{message:V,isFailure:!1}),y({open:K,openingId:A,putPick:(t,i)=>{D(t.deliveryId),q(void 0),_(void 0),H(async()=>{let n=await (0,m.f)({fleet:e,deliveryId:t.deliveryId,option:i});D(void 0),n.isOk?(_(`Option ${String(i)} is in the basket, not sent: ${t.from} receives it when you send the basket.`),Y(e=>e+1)):q({deliveryId:t.deliveryId,message:n.message})})},puttingId:T,failure:C,opened:et})]},W),item:void 0===k?void 0:(({delivery:n,inBasket:r,opened:a,finished:c})=>{let m=n.question?.id;return(0,t.jsx)(N.u,{delivery:n,opened:a,meetingHref:void 0===n.meetingId?void 0:(0,s.f)({fleetId:e,meetingId:n.meetingId}),consoleUrl:b,basketHref:(0,d.i)(g.H,e),inBasket:r,finished:c,places:i,note:I,working:U,failure:E,onNoteChange:L,onAnswer:t=>{Z({control:void 0===t?{kind:"note"}:{kind:"option",option:t},action:()=>(0,o.f)({fleet:e,deliveryId:n.deliveryId,input:{questionId:n.question?.id,option:t,note:I}}),onSettled:ee(`Your answer went to ${n.from}.`)})},onPut:t=>{Z({control:null===t?{kind:"note"}:{kind:"option",option:t},action:()=>(0,u.f)({fleet:e,deliveryId:n.deliveryId,option:t,optionLabel:n.question?.options.find(({key:e})=>e===t)?.label??null,note:I}),onSettled:e=>{var t;S({delivery:n,opened:a,finished:c,inBasket:e}),w.add({title:null===(t=e.option)?"Your note alone in the basket":`Option ${String(t)} in the basket`,description:"Not sent. Still waiting on you until you send it."})}})},onSend:t=>{Z({control:{kind:"send"},action:()=>(0,o.f)({fleet:e,deliveryId:n.deliveryId,input:{questionId:m,option:t??void 0,note:I}}),onSettled:ee(`Your answer went to ${n.from}.`)})},onRemove:()=>{void 0!==m&&Z({control:{kind:"remove"},action:()=>(0,f.f)(e,m),onSettled:ee(`Your answer to “${n.title}” is out of the basket; the question still waits on you.`)})},onDone:()=>{Z({control:{kind:"done"},action:()=>(0,l.f)({fleet:e,deliveryId:n.deliveryId}),onSettled:ee(`Done with “${n.title}”.`)})},onFinishStep:t=>{Z({control:{kind:t},action:()=>(0,l.f)({fleet:e,deliveryId:n.deliveryId,step:{outcome:t,note:I}}),onSettled:()=>{S({delivery:n,inBasket:r,opened:a,finished:{outcome:t,note:I.trim(),at:new Date().toISOString()}})}})},onOpen:e=>{K({deliveryId:e,job:a.job})},onSendMessage:void 0===n.alertShip||void 0===j?void 0:e=>{j({alertShip:e})},onBack:()=>{S(void 0)}},n.deliveryId)})(k)})}e.s(["f",0,function({fleetId:e,decidePlaces:n,consoleUrl:r,known:a,children:s}){return(0,t.jsxs)(i.f.Provider,{children:[(0,t.jsx)(z,{fleetId:e,decidePlaces:n,consoleUrl:r,known:a,children:s}),(0,t.jsx)(I,{})]})}],3523)},48680,e=>{var t=e.i(43476),i=e.i(18566),n=e.i(71645),r=e.i(95187);let a=(0,r.createServerReference)("406aa5503bbc995f26b11414f90dd6c73d874c5213",r.callServer,void 0,r.findSourceMapURL,"doneMessage");var s=e.i(99200),d=e.i(89664),o=e.i(22768),l=e.i(12497),c=e.i(55070),u=e.i(19015);function m({message:e,now:i,isOpen:n,isMarkingDone:r,isOpening:a,isBusy:f,failure:g,onDone:p,onOpen:h}){let v=void 0===p,b=v?"":(0,s.R)(e.excerpt);return(0,t.jsx)(u.V,{item:{...e,title:(0,s.R)(e.title)},now:i,isNew:"new"===e.state,isOpen:n,outcome:function({message:e,isOpen:t}){return t?"Seen":"seen"===e.state?(0,l.M)(e.seenIn):void 0}({message:e,isOpen:n}),failure:void 0,onOpen:f?void 0:h,detail:""===b?void 0:(0,t.jsx)("p",{className:"line-clamp-2 max-w-[560px] break-words text-meta text-muted-foreground",children:b}),actions:v?void 0:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(c.i,{"data-testid":"bridge-message-done",size:"row",isPending:r,pendingLabel:"Marking done...",disabled:f,onClick:p,children:[(0,t.jsx)(d.f,{"aria-hidden":"true",className:"size-3.5"}),"Done"]}),(0,t.jsx)(c.i,{"data-testid":"bridge-message-open",size:"row",isPending:a,pendingLabel:"Opening...",disabled:f,onClick:h,children:"Open"}),void 0===g?null:(0,t.jsxs)("p",{role:"alert","data-testid":"bridge-message-failure",className:"flex basis-full items-center gap-1.5 text-meta text-destructive-text",children:[(0,t.jsx)(o.f,{"aria-hidden":"true",className:"size-3.5 shrink-0"}),g]})]})})}e.s(["f",0,function({fleetId:e,messages:r,readAt:d,opening:o,isOpenedOnPage:l=!1}){let c=(0,i.useRouter)(),[u,f]=(0,n.useState)(),[g,p]=(0,n.useState)(),[h,v]=(0,n.useState)(new Set),[b,x]=(0,n.useState)(),[,y]=(0,n.useTransition)(),w=void 0!==o.opened,j=g??o.openingId,k=void 0!==u||void 0!==j;return(0,t.jsx)("ul",{className:w?"border-t border-border":"overflow-hidden rounded-lg border border-border bg-card",children:r.filter(({deliveryId:e})=>!h.has(e)).map(i=>{var n;return(0,t.jsx)(m,{message:i,now:d,isOpen:o.opened?.deliveryId===i.deliveryId,isMarkingDone:u===i.deliveryId,isOpening:j===i.deliveryId,isBusy:k,failure:(n=i.deliveryId,b?.deliveryId===n?b.message:o.failure?.deliveryId===n?o.failure.message:void 0),onDone:w?void 0:()=>{f(i.deliveryId),x(void 0),y(async()=>{let t=await a({fleet:e,deliveryId:i.deliveryId,isNew:"new"===i.state});f(void 0),t.isOk?v(e=>new Set([...e,i.deliveryId])):x({deliveryId:i.deliveryId,message:(0,s.z)(void 0===t.code?void 0:t.message)})})},onOpen:()=>{l?(p(i.deliveryId),y(()=>{c.push((0,s.C)({fleetId:e,deliveryId:i.deliveryId}))})):o.open(i)}},i.deliveryId)})})}],48680)},55070,e=>{var t=e.i(43476);let i={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"},n={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:d,className:o="",disabled:l,...c}){return(0,t.jsx)("button",{...c,disabled:!0===l||e,"aria-busy":e,className:`inline-flex items-center rounded-md disabled:cursor-not-allowed disabled:opacity-70 ${n[s]} ${i[a]} ${o}`,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]}):d})},"o",0,n])},19015,e=>{var t=e.i(43476),i=e.i(70812),n=e.i(71136),r=e.i(96315),a=e.i(49287),s=e.i(28623),d=e.i(12497),o=e.i(91604),l=e.i(63132),c=e.i(779);let u={bridge:{icon:a.f,name:"Bridge"},slack:{icon:n.f,name:"Slack"},chat:{icon:s.f,name:"a chat"},"web-push":{icon:i.f,name:"web push"},email:{icon:r.f,name:"email"}};function m(){return(0,t.jsx)("span",{"aria-hidden":"true",className:"text-border",children:"·"})}function f({places:e}){var i;let n,r=["bridge",...e].map(e=>u[e]);return(0,t.jsx)("span",{role:"img","aria-label":`Shows in ${(n=(i=r.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:r.map(({icon:e,name:i})=>(0,t.jsx)(e,{"aria-hidden":"true",className:"size-3"},i))})}let g="overflow-hidden motion-safe:animate-row-leave";e.s(["V",0,function({item:e,now:i,isNew:n,isOpen:r=!1,staleKind:a,isLeaving:s=!1,outcome:u,failure:p,onOpen:h,time:v,detail:b,actions:x}){var y;let w=e.isAlert??!1,j=(0,o.P)({job:e.job,isAlert:w}),k=j.icon,S="min-w-0 break-words text-left text-body-touch font-medium sm:truncate sm:text-body",I=void 0===a?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!==a,"data-leaving":s||void 0,"aria-current":!!r||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:r,isStale:void 0!==a})} ${s?g:""}`,children:[(0,t.jsx)(k,{"aria-hidden":"true",className:`mt-0.5 size-4 ${j.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===h?(0,t.jsx)("span",{"data-testid":"bridge-item-title",className:S,children:I}):(0,t.jsx)("button",{type:"button","data-testid":"bridge-item-title",onClick:h,className:`${S} hover:underline`,children:I})]}),(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 ${j.tone}`,children:(0,d.z)({job:e.job,isAlert:w})}),(0,t.jsx)(m,{}),(0,t.jsx)("span",{children:e.from}),void 0===u?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===a?null:(0,t.jsx)(c.f,{kind:a}),u]})]}),void 0===e.places?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m,{}),(0,t.jsx)(f,{places:e.places})]})]})]}),(0,t.jsx)("time",{dateTime:v?.at??e.sentAt,title:(y=v?.at??e.sentAt,`${new Date(y).toISOString().slice(0,16).replace("T"," ")} UTC`),className:"whitespace-nowrap text-right text-caption text-muted-foreground",children:v?.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===p?null:(0,t.jsx)("div",{className:"col-span-2 col-start-2",children:(0,t.jsx)(l.f,{message:p,isFailure:!0})})]})},"U",0,g])},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})}])},30402,e=>{let t="inline-flex h-9 items-center justify-center gap-2 rounded-md px-4 font-medium disabled:opacity-60",i={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,i,"r",0,"rounded-lg border border-border bg-card p-6 text-card-foreground shadow-sm","E",0,"rounded-lg border border-border bg-card p-3 text-card-foreground","w",0,"h-9 w-full rounded-md border border-input bg-background px-3 font-mono text-code","z",0,"grid gap-1","D",0,"h-9 w-full appearance-none rounded-md border border-input bg-background pr-8 pl-3"])},67914,e=>{var t=e.i(43476),i=e.i(71645),n=e.i(95187);let r=(0,n.createServerReference)("40e3c0037600697dd7e0800105f1231c3f942d5113",n.callServer,void 0,n.findSourceMapURL,"setTheme"),a=["light","dark","system"];e.s(["f",0,function({email:e,accountUrl:n,theme:s,entries:d=[]}){let[o,l]=(0,i.useState)(s),[c,u]=(0,i.useState)(!1),m=(0,i.useRef)(null);return{account:{name:e,signedInAs:"account",accountUrl:n,theme:o,themes:a,hasTheme:!0,onThemeChange:e=>{let t;l(e),document.documentElement.dataset.theme=e,t="dark"===e||"system"===e&&window.matchMedia("(prefers-color-scheme: dark)").matches,document.documentElement.classList.toggle("dark",t),r(e)},shortcuts:[],helpUrl:"https://github.com/ThomasHendrickx/aeolus-fleet",onSignOut:()=>{u(!0),m.current?.requestSubmit()},isSigningOut:c,entries:d},signOutForm:(0,t.jsx)("form",{ref:m,method:"post",action:"/sign-in/end",hidden:!0})}}],67914)},65894,e=>{let t="fleet";e.s(["n",0,t,"i",0,function(e,i){let[n="",r=""]=e.split("?"),a=new URLSearchParams(r);return a.set(t,i),`${n}?${a.toString()}`}])}],18566,(e,t,i)=>{t.exports=e.r(76562)}]);
|