@aeolus-fleet/console 0.31.0 → 0.32.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/standalone/packages/console/.next/BUILD_ID +1 -1
- package/.next/standalone/packages/console/.next/app-path-routes-manifest.json +1 -0
- package/.next/standalone/packages/console/.next/build-manifest.json +3 -3
- package/.next/standalone/packages/console/.next/prerender-manifest.json +3 -3
- package/.next/standalone/packages/console/.next/routes-manifest.json +6 -0
- package/.next/standalone/packages/console/.next/server/app/(console)/fleet-health/[cause]/page/server-reference-manifest.json +25 -14
- package/.next/standalone/packages/console/.next/server/app/(console)/fleet-health/[cause]/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/fleet-health/[cause]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/fleet-health/page/server-reference-manifest.json +25 -14
- package/.next/standalone/packages/console/.next/server/app/(console)/fleet-health/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/fleet-health/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/inbox/page/server-reference-manifest.json +25 -14
- package/.next/standalone/packages/console/.next/server/app/(console)/inbox/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/inbox/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/labels/page/server-reference-manifest.json +25 -14
- package/.next/standalone/packages/console/.next/server/app/(console)/labels/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/labels/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/needs-attention/page/server-reference-manifest.json +25 -14
- package/.next/standalone/packages/console/.next/server/app/(console)/needs-attention/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/needs-attention/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/needs-crew/page/server-reference-manifest.json +25 -14
- package/.next/standalone/packages/console/.next/server/app/(console)/needs-crew/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/needs-crew/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/network/page/server-reference-manifest.json +25 -14
- package/.next/standalone/packages/console/.next/server/app/(console)/network/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/network/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/page/react-loadable-manifest.json +2 -2
- package/.next/standalone/packages/console/.next/server/app/(console)/page/server-reference-manifest.json +25 -14
- package/.next/standalone/packages/console/.next/server/app/(console)/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/scopes/page/app-paths-manifest.json +3 -0
- package/.next/standalone/packages/console/.next/server/app/(console)/scopes/page/build-manifest.json +20 -0
- package/.next/standalone/packages/console/.next/server/app/(console)/scopes/page/next-font-manifest.json +11 -0
- package/.next/standalone/packages/console/.next/server/app/(console)/scopes/page/react-loadable-manifest.json +1 -0
- package/.next/standalone/packages/console/.next/server/app/(console)/scopes/page/server-reference-manifest.json +170 -0
- package/.next/standalone/packages/console/.next/server/app/(console)/scopes/page.js +20 -0
- package/.next/standalone/packages/console/.next/server/app/(console)/scopes/page.js.nft.json +1 -0
- package/.next/standalone/packages/console/.next/server/app/(console)/scopes/page_client-reference-manifest.js +3 -0
- package/.next/standalone/packages/console/.next/server/app/(console)/settings/page/server-reference-manifest.json +25 -14
- package/.next/standalone/packages/console/.next/server/app/(console)/settings/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/settings/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/ships/[shipId]/page/react-loadable-manifest.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/ships/[shipId]/page/server-reference-manifest.json +25 -14
- package/.next/standalone/packages/console/.next/server/app/(console)/ships/[shipId]/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/ships/[shipId]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/[squadronId]/page/server-reference-manifest.json +25 -14
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/[squadronId]/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/[squadronId]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/blueprints/[name]/page/react-loadable-manifest.json +2 -2
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/blueprints/[name]/page/server-reference-manifest.json +25 -14
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/blueprints/[name]/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/blueprints/[name]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/page/react-loadable-manifest.json +2 -2
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/page/server-reference-manifest.json +25 -14
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/templates/[name]/page/server-reference-manifest.json +25 -14
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/templates/[name]/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/templates/[name]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/[shipId]/page/server-reference-manifest.json +25 -14
- package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/[shipId]/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/[shipId]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/page/server-reference-manifest.json +25 -14
- package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/_global-error.html +1 -1
- package/.next/standalone/packages/console/.next/server/app/_global-error.rsc +1 -1
- package/.next/standalone/packages/console/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/packages/console/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/standalone/packages/console/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/packages/console/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/api/reads/[read]/route.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/sign-in/argo/confirm/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/sign-in/argo/confirm/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/sign-in/argo/out/route.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/sign-in/argo/refused/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/sign-in/argo/refused/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/sign-in/argo/route.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/sign-in/failed/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/sign-in/failed/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/sign-in/no-rights/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/sign-in/no-rights/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/sign-in/nothing-to-manage/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/sign-in/nothing-to-manage/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/sign-in/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/sign-in/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/sign-in/unreachable/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/sign-in/unreachable/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/version/route.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app-paths-manifest.json +1 -0
- package/.next/standalone/packages/console/.next/server/chunks/[root-of-the-server]__0-b_d8j._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/[root-of-the-server]__0w4s32w._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/[root-of-the-server]__1c0qgbj._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/_1uqphll._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_features_squadrons_organisms_form-squadron-dialog_tsx_1y1h3bn._.js → 0ysl_console_features_squadrons_ui_organisms_form-squadron-dialog_tsx_00objgi._.js} +2 -2
- package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console_features_squadrons_ui_organisms_form-squadron-dialog_tsx_1kqsdlm._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/[root-of-the-server]__04pqzqs._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/[root-of-the-server]__0up8t8p._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_023dmpu._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_02sf-6u._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_030hi2b._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_1vleg6y._.js → _03st5qx._.js} +2 -2
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_04q8k0c._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_1mhs3wd._.js → _06lx89w._.js} +2 -2
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_06ly0m8._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_18fu3-5._.js → _06u691o._.js} +2 -2
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_07hq8gy._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0bm0gyi._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0c2cfln._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0chpnwx._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_0is0iyt._.js → _0dp0lyt._.js} +2 -2
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0ictsnq._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_05eg_8f._.js → _0j2nlg2._.js} +2 -2
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0lx73da._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0mjq1cb._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0mr12__._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_0nmqout._.js → _0n0ns5e._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_1l1eyqx._.js → _0o53uwe._.js} +2 -2
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0oe2gqy._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0q-f4li._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0qe8f-w._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0sugvmr._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0sxygqz._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_1d2-pry._.js → _0vlg8_g._.js} +2 -2
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_165mz4l._.js → _0wc8h9a._.js} +2 -2
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_0303p7e._.js → _0whv6j-._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_15whprd._.js → _0wrm2to._.js} +2 -2
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0xfzttf._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1-4ded7._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_1yarwg1._.js → _1-kwmma._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_0c6zkeh._.js → _1-l1b5d._.js} +2 -2
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1-ujs2g._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_11g5bnb._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_11ljfgy._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_20xkukj._.js → _12565yp._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_1yz7z57._.js → _12ucb96._.js} +2 -2
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_13zwdui._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_1o4qsts._.js → _183-gaz._.js} +2 -2
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_185zd68._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1bc8get._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1c8_t28._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_07_cqry._.js → _1eruh8n._.js} +2 -2
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1g327a5._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1j285b1._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1kf28sa._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1n8dahj._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_1qde2ge._.js → _1o61l_8._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_0wevgo7._.js → _1o_tct4._.js} +2 -2
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1prq2d6._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1r8_v_g._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1su9voz._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_0nbjb5h._.js → _1tbw5cc._.js} +2 -2
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1u0h4gj._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1y1x0jn._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1ymusis._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_0s-n56c._.js → _1zd-rey._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{node_modules_1tm6j2u._.js → node_modules_1--oery._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/node_modules_zod_v4_classic_external_15fmmz3.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_03-f8b4._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_10js6wa._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_common_dist_schemas_account-token_1wsycr8.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_common_dist_schemas_fleet_1a-bnwh.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_00qg_s6._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_02v53na._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_02wkudy._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_04rox65._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_05zitd2._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_065nea1._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_16ys_pd._.js → packages_console_0cvfxoz._.js} +2 -2
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_0h_376h._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_0hs6kp-._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_0ko_ogs._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_11f_j7c._.js → packages_console_0ptz2kl._.js} +2 -2
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_0sr2-oa._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_0ysbad7._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_0z2cttl._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_108sez2._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_11eh-8v._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_1jwqfju._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_1jy5-0g._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_1n8w8x0._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_1oz8iu7._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_1rdu3gt._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_0d8_fed._.js → packages_console_1vyd50h._.js} +2 -2
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_1yfimad._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_app_(console)_fleet-health_page_tsx_0vcosw1._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_app_(console)_network_network-page_tsx_0qc3h-9._.js +2 -2
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_app_(console)_overview-page_tsx_15siba6._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_app_(console)_settings_page_tsx_1p8ay87._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_app_(console)_ships_[shipId]_ship-page_tsx_0oahz0r._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_app_(console)_signed-in-layout_tsx_13vv8fo._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_app_(console)_squadrons_[squadronId]_page_tsx_0f8nmsh._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_app_(console)_squadrons_page_tsx_1xpvx8n._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_components_11gbpyo._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_components_1eyc9r5._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_components_organisms_crew-line-dialog_tsx_1n3v4kg._.js → packages_console_components_1mu-90h._.js} +2 -2
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_components_organisms_crew-line-dialog_tsx_1l818ht._.js → packages_console_components_organisms_crew-line-dialog_tsx_0a4g801._.js} +2 -2
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_features_ship_ui_organisms_message-sheet_tsx_08bg9ly._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_features_squadrons_organisms_add-member-dialog_tsx_1qunr7p._.js → packages_console_features_squadrons_ui_organisms_add-member-dialog_tsx_153e4y2._.js} +2 -2
- package/.next/standalone/packages/console/.next/server/middleware-build-manifest.js +3 -3
- package/.next/standalone/packages/console/.next/server/next-font-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/next-font-manifest.json +4 -0
- package/.next/standalone/packages/console/.next/server/pages/500.html +1 -1
- package/.next/standalone/packages/console/.next/server/server-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/server-reference-manifest.json +176 -15
- package/.next/standalone/packages/console/.next/static/chunks/0-yrn88mejsr-.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/02udxgdv5tuim.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/06mq07jbul8uh.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/0dbl_305i9z05.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/0i0-pz23n01tq.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{01ddtfi6ns7ih.js → 0sxq4cfwpdd6i.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/0wlqvdnkbefpg.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/0y6tgk4e2qln_.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{1z9u9wh2b5l6y.js → 0zfls_ee80s6y.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/119gnlkv5o5qi.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/11e-iym4h5t19.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{3wn51b0ga8x5c.js → 14rt-9-qmmsd6.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/153epobb5qlio.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/1alqr4fmqmu1o.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{15esws160fsle.js → 1an189wd_o795.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/1fve7-1xawl_f.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{3a0odbvtvug2f.js → 1jjwuh7isdk3m.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{24yl55yxkaeaf.js → 1k-ba5pqi2r-w.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/1p9gwv5c8kw8w.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{10tnt0_230wbm.js → 1qweu8d2g8ip6.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/1rsblbw_p_xiq.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{2trb7ad4f0p1k.js → 1t4hkt4i-g6cx.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{3e1q680dju0rq.js → 1tlvti3bwzfeq.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{2h98d1zd2s_t5.js → 1vyt2hnz2hej1.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/21_wx8xffofh0.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{098rv-6zs8gzx.js → 257aniba461fq.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/27yg8ex72-9wa.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{1z1jqbwrruy4-.js → 2cv5dpjoblo-6.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/2e2rgjb800j69.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/2ena4r9l20ldm.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{3rm6d-05q8id3.js → 2gcef1g7rprfw.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/2ikzq12uoatg5.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{3l08evl5-acl_.js → 2kwli36lpyk6h.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{2dkqrqvxmerj9.css → 2l4c43lqjex_d.css} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/2njyd_fhl_fmf.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/2qhl2i_a7qzyk.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/2rkqd-n295a3_.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{22kprc_dbsgjz.js → 2tl4z611_8awi.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/2wdgva0npwf-f.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/30uk516nxj7-y.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/33pld-8scs565.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/3416tqe_hi9gt.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/37z1m78w3m30v.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/39e1d90jlbiw-.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{0kcev3l5eyvux.js → 39v7yufdqy1ko.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/3api14s-8v5qv.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{3v5kypqchkulb.js → 3bwv42p8mj_u3.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{3ydi8zqssypls.js → 3cqksbz6hiiot.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{2qicmwwvgn33n.js → 3cum2ng-ccy2k.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/3d08vpjjajs5u.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/3gg4swg14czsn.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{19h1iu002omr_.js → 3hjoi2bzqj60i.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/3ikr_bgx42nz8.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/3jqy92yv_bbl5.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/3lnk6ti3s1s4i.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/3nxxqirmjei_n.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/3ozw534sw8er_.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/3p9n2jbwcevpb.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/3qit4ovphls7e.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/3vp8zttvdsc56.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/3w-b8b8a-w8xa.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/3yv3f9n4ksdv1.js +1 -0
- package/.next/standalone/packages/console/package.json +3 -3
- package/package.json +3 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0-pqdi3._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_022r12n._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0428c0y._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_05noh6w._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_07hh279._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0_ro-a_._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0bdsmu0._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0j-afyt._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0mzsxcj._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0qux6-9._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0sravq5._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0vdc793._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_147ti3f._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_14ww2ld._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_18s-bns._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1bmxy9n._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1e2tdd6._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1fthxzz._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1gfvjcx._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1hsu1v2._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1k19-fy._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1qzlycs._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_20j7vun._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_components_0wbp67g._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_components_14_6o0z._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_features_squadrons_organisms_form-squadron-dialog_tsx_06m8azk._.js +0 -3
- package/.next/standalone/packages/console/.next/static/chunks/0-t17q21_7x3q.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/01rgiz0wfbntn.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/0_3x64wrf-bcc.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/16f3x-u_wdfad.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/18g_vf4h4p4_4.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/1b36z114mad41.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/1h5fh20hceb_i.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/1nh5vpmasmibg.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/1odi-st5n0w9h.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/1sm_yeexx288v.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/1tjv8rgwrbbg_.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/1tp-fe6jeewef.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/1u5mjrw1qk334.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/21xp9ny7yw3ug.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/2_qyhoh1hlhcy.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/2bid6ecbjoe6s.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/2bs3zz5ow0i08.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/2c9lelkw922nc.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/2c9t_g489tnn5.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/2cfixbtwii9hq.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/2ckbufd6psg70.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/2ggf3qa9xixed.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/2l01iyjlu686-.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/2nprd8lmiucz8.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/2t2yy5clzhxdl.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/2tl2a2wz8thbf.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/2xwbclmo1ptlk.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/3-5a_-zajpox2.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/31zson-gkby6x.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/3do-zyuiyy-p5.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/3du6_2nhp24z0.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/3ivriv3lk7ps3.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/3olz31yg-hfjz.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/3q-rob7jfhbps.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/3zotgpae5tgmf.js +0 -1
- /package/.next/standalone/packages/console/.next/static/{M3UCCsD3-uSl8HVucbFrh → twzbuC-Aavq-gnA6UysmF}/_buildManifest.js +0 -0
- /package/.next/standalone/packages/console/.next/static/{M3UCCsD3-uSl8HVucbFrh → twzbuC-Aavq-gnA6UysmF}/_clientMiddlewareManifest.js +0 -0
- /package/.next/standalone/packages/console/.next/static/{M3UCCsD3-uSl8HVucbFrh → twzbuC-Aavq-gnA6UysmF}/_ssgManifest.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,569644,269846,e=>{"use strict";var t=e.i(456420);let s={name:"folder-open",size:24,node:[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]};s.node;let a=(0,t.default)(s);e.s(["FolderOpen",0,a],569644);let n={name:"git-branch",size:24,node:[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]};n.node;let i=(0,t.default)(n);e.s(["GitBranch",0,i],269846)},911147,e=>{"use strict";var t=e.i(456420);let s={name:"octagon-pause",size:24,node:[["path",{d:"M10 15V9",key:"1lckn7"}],["path",{d:"M14 15V9",key:"1muqhk"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}]],aliases:["pause-octagon"]};s.node;let a=(0,t.default)(s);e.s(["OctagonPause",0,a],911147)},846980,e=>{"use strict";var t=e.i(843476),s=e.i(509892),a=e.i(190437),n=e.i(442111),i=e.i(296676),r=e.i(849635),l=e.i(714695),o=e.i(500265),d=e.i(586448),c=e.i(427702),u=e.i(516634),m=e.i(965324),h=e.i(219321),x=e.i(817981),p=e.i(867927),g=e.i(522016),f=e.i(766390),j=e.i(574296),b=e.i(298421),v=e.i(78865),w=e.i(38614);function N({place:e}){return"ship"===e.kind?(0,t.jsx)("span",{className:"font-medium text-foreground",children:e.ship.name}):(0,t.jsx)(f.Badge,{variant:"type",children:e.type})}function y({total:e,read:s,notes:a,now:n}){let{cause:i,count:r}=e;return(0,t.jsxs)("section",{"aria-label":(0,v.statusLabel)(i),"data-testid":"health-cause","data-cause":i,className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4 shadow-sm max-sm:rounded-xl",children:[(0,t.jsxs)("header",{className:"flex items-start justify-between gap-3",children:[(0,t.jsxs)(g.default,{href:(0,u.causePathOf)(i),className:"group inline-flex items-center gap-1.5 rounded-md","data-testid":"health-cause-open",children:[(0,t.jsx)(v.StatusBadge,{status:i}),(0,t.jsx)(p.ChevronRight,{"aria-hidden":!0,className:"size-(--size-icon-sm) text-muted-foreground group-hover:text-foreground"}),(0,t.jsxs)("span",{className:"sr-only",children:["Open the deliveries ",(0,v.statusLabel)(i).toLowerCase()]})]}),(0,t.jsx)("span",{className:"text-metric font-semibold tabular-nums text-foreground max-sm:text-title-touch",children:r})]}),(0,t.jsx)("p",{className:"text-body text-muted-foreground max-sm:text-body-touch",children:u.CAUSE_SENTENCES[i]}),s.isFailed?(0,t.jsx)(x.InlineError,{title:"Couldn’t load where they wait",description:"Nothing changed in the fleet. The page tries again by itself.",onRetry:s.onRetry}):void 0===s.places?(0,t.jsxs)("div",{role:"status","data-testid":"health-places-loading",children:[(0,t.jsx)("span",{className:"sr-only",children:"Loading where they wait"}),(0,t.jsx)(h.Skeleton,{className:"h-16 w-full rounded-lg"})]}):(0,t.jsx)(k,{places:s.places,notes:a,now:n}),void 0!==s.places&&s.hasMore&&(0,t.jsx)(b.LoadMore,{what:"more places",isLoading:s.isLoadingMore,isFailed:s.isLoadMoreFailed,onLoad:s.onLoadMore,area:"health-places"})]})}function k({places:e,notes:s,now:a}){return(0,t.jsxs)("div",{className:"grid grid-cols-[minmax(0,1fr)_minmax(0,1.2fr)_auto] gap-x-4 max-sm:grid-cols-1",children:[(0,t.jsxs)("div",{className:"col-span-3 grid grid-cols-subgrid items-center text-caption font-medium text-muted-foreground max-sm:col-span-1",children:[(0,t.jsx)("span",{className:"max-sm:hidden",children:"Where, how long"}),(0,t.jsx)(w.WaitAxis,{}),(0,t.jsx)("span",{className:"text-right max-sm:hidden",children:"Next step"})]}),(0,t.jsx)("ul",{className:"col-span-3 grid grid-cols-subgrid divide-y divide-border max-sm:col-span-1",children:e.map(e=>{let n=(0,u.nextStepOf)(e),i=s.get(e),l=(0,r.duration)(new Date(e.oldestSince),a);return(0,t.jsxs)("li",{"data-testid":"health-place",className:"col-span-3 grid grid-cols-subgrid items-center gap-y-2 py-3 last:pb-0 max-sm:col-span-1",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-0.5",children:[(0,t.jsx)(N,{place:e.place}),(0,t.jsxs)("span",{className:"text-meta tabular-nums text-muted-foreground",children:[e.count," · oldest ",l]})]}),(0,t.jsx)(w.WaitStrip,{waits:e.deliveries.map(e=>(0,u.waitMinutes)(e.since,a)),label:`${String(e.count)} waiting, the oldest ${l}`}),(0,t.jsx)(j.Button,{variant:"secondary",size:"sm",nativeButton:!1,render:(0,t.jsx)(g.default,{href:n.href}),className:"max-sm:h-(--size-control-touch) max-sm:w-full max-sm:text-body-touch","data-testid":"health-next-step",children:n.label}),void 0!==i&&(0,t.jsx)("p",{className:"col-span-3 text-meta text-muted-foreground max-sm:col-span-1",children:i})]},`${e.cause}-${"ship"===e.place.kind?e.place.ship.id:e.place.type}`)})})]})}function S({perHour:e}){let s=Math.max(1,...e.map(e=>e.count));return(0,t.jsx)("div",{role:"img","aria-label":`Acknowledged per hour over the last 24 hours, at most ${Math.max(0,...e.map(e=>e.count))} in an hour`,"data-testid":"health-acknowledged-bars",className:"flex h-8 w-full items-end gap-0.5 sm:w-48",children:e.map(e=>(0,t.jsx)("span",{className:"min-h-0.5 flex-1 rounded-xs bg-tone-ok-fg opacity-75",style:{height:`${e.count/s*100}%`}},e.at))})}function T({acknowledged:e}){return(0,t.jsxs)("section",{"aria-label":"Delivering","data-testid":"health-delivering",className:"flex items-center gap-4 rounded-lg border border-border bg-card p-4 shadow-sm max-sm:flex-col max-sm:items-start max-sm:gap-3 max-sm:rounded-xl",children:[(0,t.jsx)(v.StatusBadge,{status:"delivering"}),(0,t.jsx)("p",{className:"flex-1 text-body text-foreground max-sm:text-body-touch",children:null===e.medianMs?"Nothing acknowledged in the last 24 h.":(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"font-semibold tabular-nums",children:e.count})," acknowledged in the last 24 h, median"," ",(0,t.jsx)("span",{className:"font-semibold tabular-nums",children:(0,u.medianText)(e.medianMs,r.duration)})," from send to acknowledgement."]})}),(0,t.jsx)(S,{perHour:e.perHour})]})}function C({perHour:e,marks:s}){let a=Math.max(5,5*Math.ceil(Math.max(0,...e.map(e=>e.count))/5)),n=Math.max(e.length-1,1),i=e=>100-e/a*100,[l]=e,o=e.slice(1).map((e,t)=>`H${(t+1)/n*1e3} V${i(e.count)}`),d=[`M0 ${i(l?.count??0)}`,...o].join(" "),c=`${d} H1000 V100 H0 Z`,u=e.at(-1)?.count??0,m=e.flatMap((e,t)=>t%24==12?[{index:t,label:(0,r.dayMonth)(new Date(e.at))}]:[]);return(0,t.jsxs)("figure",{"data-testid":"health-trend",className:"flex min-w-0 flex-col gap-2",children:[(0,t.jsx)("figcaption",{className:"text-meta font-medium text-foreground",children:"Stuck deliveries, last 7 days, per hour"}),(0,t.jsxs)("div",{className:"grid grid-cols-[auto_1fr] gap-x-2",children:[(0,t.jsx)("div",{"aria-hidden":!0,className:"relative h-36 w-5 text-caption tabular-nums text-muted-foreground",children:[a,a/2,0].map(e=>(0,t.jsx)("span",{className:"absolute right-0 -translate-y-1/2",style:{top:`${100-e/a*100}%`},children:e},e))}),(0,t.jsxs)("div",{className:"relative h-36",children:[(0,t.jsxs)("svg",{role:"img","aria-label":`Stuck deliveries per hour over the last 7 days: ${u} now, at most ${Math.max(0,...e.map(e=>e.count))}`,viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:"size-full overflow-visible",children:[[0,a/2,a].map(e=>(0,t.jsx)("line",{x1:0,x2:1e3,y1:i(e),y2:i(e),className:"stroke-border",vectorEffect:"non-scaling-stroke"},e)),(0,t.jsx)("path",{d:c,className:"fill-tone-waiting-bg"}),(0,t.jsx)("path",{d:d,className:"fill-none stroke-tone-waiting-fg",strokeWidth:2,strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})]}),s.map(s=>(0,t.jsx)("span",{"aria-hidden":!0,"data-testid":"health-trend-mark",className:"absolute flex size-4 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full border-2 border-foreground bg-card text-micro font-semibold text-foreground max-sm:hidden",style:{left:`${s.hour/n*100}%`,top:`${i(e[s.hour]?.count??0)/100*100}%`},children:s.number},s.number)),(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute size-2 -translate-1/2 rounded-full bg-tone-waiting-fg",style:{left:"100%",top:`${i(u)/100*100}%`}})]}),(0,t.jsx)("div",{"aria-hidden":!0,className:"relative col-start-2 h-4 text-caption text-muted-foreground",children:m.map(e=>(0,t.jsx)("span",{className:"absolute -translate-x-1/2 whitespace-nowrap max-sm:[&:nth-child(even)]:hidden",style:{left:`${e.index/n*100}%`},children:e.label},e.index))})]}),s.length>0&&(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:s.map((e,s)=>(0,t.jsxs)("span",{children:[s>0&&" · ",(0,t.jsx)("span",{className:"font-semibold text-foreground",children:e.number})," ",e.label]},e.number))})]})}function $({summary:e,stuckPerHour:s,places:a}){let n=(0,u.verdictOf)({summary:e,stuckPerHour:s});return(0,t.jsxs)("section",{"aria-label":"Verdict","data-testid":"health-verdict","data-verdict":n.kind,className:"grid gap-6 rounded-lg border border-border bg-card p-4 shadow-sm lg:grid-cols-[minmax(0,2fr)_minmax(0,3fr)] max-sm:gap-4 max-sm:rounded-xl",children:[(0,t.jsxs)("div",{className:"flex flex-col items-start gap-3",children:[(0,t.jsx)(v.StatusBadge,{status:n.kind}),"stuck"===n.kind?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{className:"text-section font-semibold text-foreground",children:[(0,t.jsx)("span",{className:"text-metric tabular-nums max-sm:text-title-touch","data-testid":"health-stuck-count",children:n.count})," ",1===n.count?"delivery":"deliveries"," stuck in ",n.places," ",1===n.places?"place":"places"]}),(0,t.jsxs)("p",{className:"text-body text-muted-foreground max-sm:text-body-touch",children:["Stuck since ",(0,r.shortDateTime)(new Date(n.since)),". ",(0,u.trendSentence)(n)]}),(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:"Nothing is lost: each one is stored and moves on as soon as its cause is gone."})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-section font-semibold text-foreground",children:"Delivering. Nothing is stuck."}),(0,t.jsx)("p",{className:"text-body text-muted-foreground max-sm:text-body-touch",children:"Every delivery waits only on its ship to take it."})]})]}),(0,t.jsx)(C,{perHour:s,marks:(0,u.marksOf)({places:a,stuckPerHour:s})})]})}var M=e.i(841220),O=e.i(721039);function A({machines:e,stuckByMachine:s,renderLiveness:a}){return(0,t.jsxs)("section",{"aria-labelledby":"health-machines","data-testid":"health-machines",className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4 shadow-sm max-sm:rounded-xl",children:[(0,t.jsxs)("header",{className:"flex flex-wrap items-baseline justify-between gap-2",children:[(0,t.jsx)("h2",{id:"health-machines",className:"text-section font-semibold text-foreground",children:"Machines"}),(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:"Each machine runs a trierarch that crews ships."})]}),(0,t.jsx)("ul",{className:"flex flex-col divide-y divide-border",children:e.map(e=>{let n=s.get(e.id)??0;return(0,t.jsxs)("li",{"data-testid":"health-machine",className:"flex flex-wrap items-center gap-x-4 gap-y-2 py-3 first:pt-0 last:pb-0 max-sm:gap-x-2",children:[(0,t.jsxs)("span",{className:"inline-flex min-w-40 items-center gap-2 font-medium text-foreground",children:[(0,t.jsx)(M.Server,{"aria-hidden":!0,className:"size-(--size-icon) text-muted-foreground"}),e.name]}),(0,t.jsx)("span",{className:"min-w-0 flex-1",children:a(e)}),(0,t.jsxs)("span",{className:"text-meta text-muted-foreground",children:[e.ships," ",1===e.ships?"ship":"ships",n>0&&(0,t.jsxs)(t.Fragment,{children:[" · ",(0,t.jsxs)("span",{className:"font-semibold text-foreground",children:[n," ",1===n?"delivery":"deliveries"," stuck on its ships"]})]})]}),n>0&&(0,t.jsx)(j.Button,{variant:"secondary",size:"sm",nativeButton:!1,render:(0,t.jsx)(g.default,{href:`/trierarchs/${e.id}`}),className:"max-sm:h-(--size-control-touch) max-sm:w-full",children:"Open machine"}),e.notOffered?.map(({harness:e,reason:s})=>(0,t.jsx)("div",{className:"basis-full",children:(0,t.jsx)(O.NotOfferedLine,{harness:e,reason:s})},e))]},e.id)})})]})}function L({label:e,className:s}){return(0,t.jsxs)("div",{role:"status","data-testid":"health-part-loading",children:[(0,t.jsx)("span",{className:"sr-only",children:e}),(0,t.jsx)(h.Skeleton,{className:(0,m.classNames)("w-full rounded-lg",s)})]})}function R({summary:e,places:s,stuckPerHour:a,acknowledged:n,notes:i,machines:r,renderLiveness:l,children:o,now:d}){let c=void 0===e.data?void 0:(0,u.causeTotalsOf)(e.data),m=Object.values(s).flatMap(e=>e.places??[]);return(0,t.jsxs)("div",{"data-testid":"health-board",className:"flex flex-col gap-5 max-sm:gap-3.5",children:[e.isError||a.isError?(0,t.jsx)(x.InlineError,{title:"Couldn’t load where deliveries are stuck",description:"Nothing changed in the fleet. The page tries again by itself.",onRetry:()=>{for(let t of[e,a])t.isError&&t.onRetry()}}):void 0===e.data||void 0===a.data?(0,t.jsx)(L,{label:"Loading the verdict",className:"h-44"}):(0,t.jsx)($,{summary:e.data,stuckPerHour:a.data,places:m}),n.isError?(0,t.jsx)(x.InlineError,{title:"Couldn’t load the deliveries acknowledged",description:"Nothing changed in the fleet. The page tries again by itself.",onRetry:n.onRetry}):void 0===n.data?(0,t.jsx)(L,{label:"Loading the deliveries acknowledged",className:"h-16"}):(0,t.jsx)(T,{acknowledged:n.data}),void 0===c?e.isError?null:(0,t.jsx)(L,{label:"Loading where deliveries are stuck",className:"h-40"}):c.length>0&&(0,t.jsx)("div",{className:"grid gap-5 lg:grid-cols-2 max-sm:gap-3.5",children:c.map(e=>(0,t.jsx)(y,{total:e,read:s[e.cause],notes:i,now:d},e.cause))}),void 0!==e.data&&void 0!==r&&r.length>0&&(0,t.jsx)(A,{machines:r,stuckByMachine:(0,u.stuckByMachine)(e.data),renderLiveness:l}),o]})}function D({renderLiveness:e,children:s}){var m;let h,x,p,g=(0,i.useNow)(),f=(0,a.useStuckSummary)(),j=e=>f.data?.byCause.some(t=>t.cause===e)??!1,b={noShipCanTake:I((0,a.useStuckPlaces)("noShipCanTake",j("noShipCanTake"))),waitingForCrew:I((0,a.useStuckPlaces)("waitingForCrew",j("waitingForCrew"))),stalledInFlight:I((0,a.useStuckPlaces)("stalledInFlight",j("stalledInFlight"))),undeliverable:I((0,a.useStuckPlaces)("undeliverable",j("undeliverable")))},v=(0,a.useStuckHistory)(),w=(0,a.useAcknowledged)(),N=(0,o.useMachines)(),y=Object.values(b).flatMap(e=>e.places??[]),k=(0,n.useListedShips)(y.flatMap(({place:e})=>"ship"===e.kind?[e.ship.id]:[])),S=(m=(N.data??[]).map(e=>e.shipId),h=(0,c.useTRPC)(),x=(0,d.useQueries)({queries:m.map(e=>h.fleet.shipCounts.queryOptions({filter:{assignedTo:[e]}}))}),p=new Map,m.forEach((e,t)=>{let s=x[t]?.data;void 0!==s&&p.set(e,s.reduce((e,t)=>e+t.active,0))}),p),T=new Map;for(let e of y){let t="ship"===e.place.kind?k?.get(e.place.ship.id):void 0,s=(0,u.placeNote)(e,{facts:t&&{lastSeenAt:t.lastSeenAt},since:e=>(0,r.relativeTime)(e,g)});null!==s&&T.set(e,s)}let C=new Map((N.data??[]).map(e=>[e.shipId,e])),$=(0,l.notOfferedOf)(N.data??[]),M=N.data?.map(e=>({id:e.shipId,name:e.name,ships:S.get(e.shipId)??0,notOffered:$.filter(t=>t.machineId===e.shipId)}));return(0,t.jsx)(R,{summary:E(f),places:b,stuckPerHour:E(v),acknowledged:E(w),notes:T,machines:M,renderLiveness:t=>{let s=C.get(t.id);return void 0===s?null:e(s)},now:g,children:s})}function E(e){return{data:e.data,isError:e.isError,onRetry:()=>{e.refetch()}}}function I(e){return{places:e.items,isFailed:e.isFailed,onRetry:e.retry,hasMore:e.hasMore,isLoadingMore:e.isLoadingMore,isLoadMoreFailed:e.isLoadMoreFailed,onLoadMore:e.loadMore}}var P=e.i(784294),F=e.i(219249),_=e.i(781830),z=e.i(1935);function B({members:e,ships:s,now:a,renderAction:n}){return(0,t.jsx)("ul",{"data-testid":"silent-members",className:"divide-y divide-border overflow-hidden rounded-lg border border-border",children:e.map(({squadronId:e,member:i})=>{let{lastSeenAt:l}=i.crew;return(0,t.jsxs)("li",{"data-testid":"silent-member",className:"flex flex-wrap items-center gap-x-4 gap-y-1.5 px-3 py-2.5",children:[(0,t.jsxs)("span",{className:"flex min-w-0 flex-col gap-1",children:[(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)(F.HealthIndicator,{health:"silent"}),(0,t.jsx)("span",{className:"font-medium",children:i.name})]}),(0,t.jsx)(z.SquadronTag,{squadronId:e,role:i.role,size:"sm"})]}),(0,t.jsxs)("span",{className:"flex flex-col text-meta",children:[(0,t.jsx)("span",{children:null===l?"never seen":`not seen for ${(0,r.duration)(new Date(l),a)}`}),(0,t.jsxs)("span",{className:"text-muted-foreground",children:["checks in ",(0,P.checkInText)(i.checkInMinutes)]})]}),(0,t.jsx)("span",{className:"grow",children:(0,t.jsx)(_.ReportLine,{report:s.get(i.shipId)?.report??null,now:a,variant:"row",testId:"silent-member-report"})}),n?.({squadronId:e,member:i}),(0,t.jsxs)(g.default,{href:`/squadrons/${e}`,className:"inline-flex items-center gap-1 text-meta font-medium hover:underline",children:["Open",(0,t.jsx)(p.ChevronRight,{"aria-hidden":!0,className:"size-(--size-icon-sm)"})]})]},i.shipId)})})}var H=e.i(215327),W=e.i(36556),q=e.i(490262),U=e.i(787964),V=e.i(718423),G=e.i(678485),Q=e.i(853573),J=e.i(448695);e.s(["default",0,function(){let e=(0,i.useNow)(),r=(0,U.useConsoleFrame)(),l=(0,V.useLiveFleet)(),o=(0,a.useStuckSummary)(),d=(0,q.useAccess)(),c=(0,J.useSquadrons)(),u=(0,P.silentMembers)(c.data??[]),m=(0,Q.useShips)(u.map(({member:e})=>e.shipId)),h=(0,n.useListedShips)(u.map(({member:e})=>e.shipId))??new Map;return(0,G.useSignInWhenSessionEnds)([o.error,l.error]),(0,t.jsx)(s.ListPage,{...r,title:"Health",description:"Where deliveries wait, since when, and what lets them move.",live:l.live,children:(0,t.jsx)(D,{renderLiveness:s=>(0,t.jsx)(W.MachineLiveness,{machine:s,now:e}),children:u.length>0?(0,t.jsxs)("section",{"aria-labelledby":"health-silent",className:"flex flex-col gap-2",children:[(0,t.jsxs)("h2",{id:"health-silent",className:"text-section font-semibold text-foreground",children:["Silent members (",u.length,")"]}),(0,t.jsx)(B,{members:u,ships:h,now:e,renderAction:d.canManage?({squadronId:e,member:s})=>(0,t.jsx)(H.GetNewCrewLine,{squadronId:e,member:s,ship:m.get(s.shipId),isPrimary:!0,testId:"silent-member-new-crew-line"}):void 0}),(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:"A member is silent after 3 missed check-ins; only you can start its new session. Late members and blocked reports stay on their squadron page."})]}):null})})}],846980)},424010,e=>{"use strict";var t=e.i(843476);e.s([],558762),e.i(558762);var s=e.i(366250),a=e.i(402820),n=e.i(156736),i=e.i(209793),r=e.i(784324),l=e.i(264951),o=e.i(77173);let d=e.i(313488).DialogTrigger;var c=e.i(974217),u=e.i(325326);class m extends u.DialogHandle{}e.s(["Backdrop",()=>a.DialogBackdrop,"Close",()=>n.DialogClose,"Description",()=>i.DialogDescription,"Handle",0,m,"Popup",()=>r.DialogPopup,"Portal",()=>l.DialogPortal,"Root",0,function(e){return(0,s.useRenderDialogRoot)("alert-dialog",e)},"Title",()=>o.DialogTitle,"Trigger",0,d,"Viewport",()=>c.DialogViewport,"createHandle",0,function(){return new m}],734604);var h=e.i(734604),h=h,x=e.i(965324),p=e.i(746675);e.s(["AlertDialog",0,function(e){return(0,t.jsx)(h.Root,{"data-slot":"alert-dialog",...e})},"AlertDialogClose",0,function(e){return(0,t.jsx)(h.Close,{"data-slot":"alert-dialog-close",...e})},"AlertDialogContent",0,function({className:e,size:s,children:a,...n}){return(0,t.jsxs)(h.Portal,{children:[(0,t.jsx)(h.Backdrop,{"data-slot":"alert-dialog-overlay",className:p.dialogSurface.overlay}),(0,t.jsx)(h.Popup,{"data-slot":"alert-dialog-content",className:(0,x.classNames)(p.dialogSurface.popup({size:s}),e),...n,children:a})]})},"AlertDialogDescription",0,function({className:e,...s}){return(0,t.jsx)(h.Description,{"data-slot":"alert-dialog-description",className:(0,x.classNames)(p.dialogSurface.description,e),...s})},"AlertDialogFooter",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,x.classNames)(p.dialogSurface.footer,e),...s})},"AlertDialogHeader",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,x.classNames)(p.dialogSurface.header,e),...s})},"AlertDialogTitle",0,function({className:e,...s}){return(0,t.jsx)(h.Title,{"data-slot":"alert-dialog-title",className:(0,x.classNames)(p.dialogSurface.title,e),...s})}],424010)},219249,e=>{"use strict";var t=e.i(843476),s=e.i(965324);let a={"on-time":{label:"On time",dot:"bg-tone-ok-fg",text:"text-tone-ok-fg"},late:{label:"Late",dot:"bg-tone-waiting-fg",text:"text-tone-waiting-fg"},silent:{label:"Silent",dot:"bg-tone-attention-fg",text:"text-tone-attention-fg"},"standing-down":{label:"Standing down",dot:"bg-tone-active-fg",text:"text-tone-active-fg"},"not-on-station":{label:"Not on station",dot:"border border-dashed border-muted-foreground",text:"text-foreground"}};function n({health:e}){return(0,t.jsx)("span",{"aria-hidden":!0,className:(0,s.classNames)("size-2 shrink-0 rounded-full",a[e].dot)})}e.s(["HealthIndicator",0,function({health:e,detail:i,className:r}){return(0,t.jsxs)("span",{"data-slot":"health-indicator","data-health":e,className:(0,s.classNames)("inline-flex items-center gap-1.5 text-meta",r),children:[(0,t.jsx)(n,{health:e}),(0,t.jsx)("span",{className:(0,s.classNames)("font-medium",a[e].text),children:a[e].label}),void 0!==i&&(0,t.jsx)("span",{className:"text-muted-foreground",children:i})]})},"HealthSummary",0,function({counts:e,className:i}){return(0,t.jsx)("span",{"data-slot":"health-summary",className:(0,s.classNames)("inline-flex flex-wrap items-center gap-x-3 gap-y-1 text-meta",i),children:e.map(({health:e,count:s})=>(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,t.jsx)(n,{health:e}),(0,t.jsxs)("span",{children:[s," ",a[e].label.toLowerCase()]})]},e))})}])},298421,e=>{"use strict";var t=e.i(843476),s=e.i(456420);let a={name:"chevrons-down",size:24,node:[["path",{d:"m7 6 5 5 5-5",key:"1lc07p"}],["path",{d:"m7 13 5 5 5-5",key:"1d48rs"}]]};a.node;let n=(0,s.default)(a);var i=e.i(574296),r=e.i(817981);e.s(["LoadMore",0,function({what:e,isLoading:s,isFailed:a,onLoad:l,area:o}){return a?(0,t.jsx)(r.InlineError,{title:`Couldn’t load ${e}`,description:"What is shown stays as it is. Try again in a moment.",onRetry:l,className:"m-3"}):(0,t.jsx)("div",{className:"flex justify-center border-t border-border px-3.5 py-2.5",children:(0,t.jsx)(i.Button,{size:"sm",variant:"ghost",icon:(0,t.jsx)(n,{"aria-hidden":!0}),isLoading:s,onClick:l,"data-testid":`${o}-load-more`,children:s?`Loading ${e}...`:`Load ${e}`})})}],298421)},721039,e=>{"use strict";var t=e.i(843476),s=e.i(466787),a=e.i(866616),n=e.i(714695);e.s(["NotOfferedLine",0,function({harness:e,reason:i}){return(0,t.jsxs)("p",{"data-testid":"not-offered",className:"flex flex-wrap items-baseline gap-x-2 gap-y-0.5 text-meta text-tone-attention-fg [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0 [&_svg]:self-center",children:[(0,t.jsx)(s.TriangleAlert,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"font-medium",children:[(0,a.harnessWord)(e)," not offered"]}),(0,t.jsxs)("span",{children:[i,"."]}),(0,t.jsx)("span",{className:"text-muted-foreground",children:n.NOT_OFFERED_CLEARS})]})}])},781830,e=>{"use strict";var t=e.i(843476),s=e.i(779432),a=e.i(119002),n=e.i(911147),i=e.i(965324),r=e.i(849635),l=e.i(793361);let o={working:s.Activity,blocked:n.OctagonPause,idle:a.CirclePause},d={active:"text-tone-active-fg",waiting:"text-tone-waiting-fg",ended:"text-tone-ended-fg"};e.s(["ReportLine",0,function({report:e,now:s,variant:a,isTimeInTitle:n=!1,testId:c}){let u="full"===a,m=(0,i.classNames)("flex min-w-0 items-center gap-1.5",u?"text-body":"text-meta");if(null===e)return(0,t.jsx)("span",{"data-testid":c,"data-state":"none",className:(0,i.classNames)(m,"text-muted-foreground"),children:"No report yet"});let h=o[e.state],x=d[l.REPORT_TONES[e.state]],p=new Date(e.reportedAt);return(0,t.jsxs)("span",{"data-testid":c,"data-state":e.state,title:n?`${(0,l.reportText)(e)} \xb7 ${(0,l.reportedWhen)(p,s)}`:(0,l.reportText)(e),className:m,children:[(0,t.jsx)(h,{"aria-hidden":!0,className:(0,i.classNames)("size-(--size-icon-sm) shrink-0",x)}),(0,t.jsx)("span",{className:(0,i.classNames)("shrink-0 font-medium",x),children:l.REPORT_STATE_WORDS[e.state]}),null===e.note?null:(0,t.jsx)("span",{className:"min-w-0 truncate text-foreground",children:e.note}),n?null:(0,t.jsx)("time",{dateTime:e.reportedAt,title:(0,r.fullDateTime)(p),className:"shrink-0 text-muted-foreground tabular-nums",children:u?`\xb7 ${(0,l.reportedWhen)(p,s)}`:(0,l.reportAge)(p,s)})]})}])},1935,e=>{"use strict";var t=e.i(843476),s=e.i(660011),a=e.i(522016),n=e.i(965324);e.s(["SquadronTag",0,function({squadronId:e,role:i,size:r="md",className:l}){return(0,t.jsxs)(a.default,{href:`/squadrons/${e}`,"data-slot":"squadron-tag",className:(0,n.classNames)("inline-flex max-w-full items-center gap-1 rounded-sm bg-secondary px-1.5 text-secondary-foreground hover:underline [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0","sm"===r?"h-5.5 text-meta":"h-6 text-body",l),children:[(0,t.jsx)(s.Shapes,{"aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate font-medium",children:e}),void 0!==i&&(0,t.jsxs)("span",{className:"shrink-0 text-muted-foreground",children:["· ",i]})]})}])},509892,e=>{"use strict";var t=e.i(843476),s=e.i(819759),a=e.i(574296),n=e.i(577880),i=e.i(485538);e.s(["ListPage",0,function({title:e,description:r,titleMeta:l,primaryAction:o,toolbar:d,live:c,onCompose:u,onSearch:m,switcher:h,account:x,banner:p,phoneTopBar:g,children:f}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.Header,{breadcrumb:e,live:c,switcher:h,account:x,onCompose:u,onSearch:m}),p,g??(0,t.jsx)(i.TopBar,{title:e,live:c,switcher:h,account:x,onSearch:m,actions:u?(0,t.jsx)(a.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Compose","data-testid":"top-bar-compose",onClick:u,children:(0,t.jsx)(s.SquarePen,{"aria-hidden":!0})}):void 0}),(0,t.jsxs)("main",{className:"flex grow flex-col gap-5 px-8 py-6 max-sm:gap-3.5 max-sm:px-4 max-sm:pt-3.5 max-sm:pb-[calc(var(--size-tabbar)+var(--spacing)*4)]",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4 max-sm:gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-1",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1",children:[(0,t.jsx)("h1",{className:"text-title font-semibold tracking-tight text-foreground max-sm:text-title-touch",children:e}),l]}),r?(0,t.jsx)("p",{className:"text-meta text-muted-foreground max-sm:text-body-touch",children:r}):null]}),o?(0,t.jsx)("div",{className:"shrink-0 max-sm:w-full max-sm:[&>*]:w-full",children:o}):null]}),d,f]})]})}])},516634,38614,e=>{"use strict";let t=["noShipCanTake","waitingForCrew","stalledInFlight","undeliverable"];function s(e){return`/fleet-health/${e}`}function a(e){return"ship"===e.kind?e.ship.name:e.type}let n={noShipCanTake:"no ship can take",waitingForCrew:"waiting for crew",stalledInFlight:"stalled in flight",undeliverable:"undeliverable"},i=[{minutes:1,label:"1 min"},{minutes:10,label:"10 min"},{minutes:60,label:"1 h"},{minutes:1440,label:"1 d"},{minutes:10080,label:"7 d"}],r=Math.log(1),l=Math.log(10080);function o(e){return Math.min(Math.max((Math.log(Math.max(e,1))-r)/(l-r),0),1)}let d={pending:"pending",received:"received",handed:"handed (pulled)",undeliverable:"undeliverable"};e.s(["CAUSE_SENTENCES",0,{noShipCanTake:"Sent to a type with no active ship. Waits until you commission one.",waitingForCrew:"Sent to a ship no session crews. Waits until it is crewed.",stalledInFlight:"Taken by a session that went quiet. Waits until it acknowledges or the ship is released.",undeliverable:"Taken five times, never acknowledged. Waits for you to resend or dismiss."},"WAIT_TICKS",0,i,"causePathOf",0,s,"causeTotalsOf",0,function(e){return t.flatMap(t=>e.byCause.filter(e=>e.cause===t))},"marksOf",0,function(e){let[t]=e.stuckPerHour;return void 0===t?[]:e.places.filter(e=>e.oldestSince>t.at).toSorted((e,t)=>e.oldestSince.localeCompare(t.oldestSince)).map((t,s)=>({number:s+1,hour:e.stuckPerHour.findIndex(e=>e.at>=t.oldestSince),label:`${a(t.place)}: ${n[t.cause]}`}))},"medianText",0,function(e,t){let s=Math.round(e/1e3);return s<60?`${String(s)} s`:t(new Date(0),new Date(e))},"messagePathOn",0,function(e,t){return`/ships/${e}?tab=messages&message=${t}`},"nextStepOf",0,function(e){let t=e.place;switch(e.cause){case"noShipCanTake":return{label:`Commission a ${a(t)}`,href:"/?commission=new"};case"waitingForCrew":return"ship"===t.kind?{label:"Get starting prompt",href:`/ships/${t.ship.id}`}:{label:"Open ships of type",href:`/?type=${encodeURIComponent(t.type)}`};case"stalledInFlight":if("ship"===t.kind&&null!==t.machine)return{label:"Open machine",href:`/trierarchs/${t.machine.id}`};return"ship"===t.kind?{label:"Open ship",href:`/ships/${t.ship.id}`}:{label:"Open ships of type",href:`/?type=${encodeURIComponent(t.type)}`};case"undeliverable":return{label:"Resend or dismiss",href:s("undeliverable")}}},"placeName",0,a,"placeNote",0,function(e,t){let s=e.place;if("stalledInFlight"!==e.cause||"ship"!==s.kind)return null;let a=[...new Set(e.deliveries.map(e=>d[e.state]))].join(", ");if(null!==s.machine){let e=null===s.machine.lastSeenAt?"never seen":`last seen ${t.since(new Date(s.machine.lastSeenAt))}`;return`${a}, machine ${s.machine.name} ${e}`}let n=t.facts?.lastSeenAt??null;return null===n?a:`${a}, session last seen ${t.since(new Date(n))}`},"previewOf",0,function(e){return e.split("\n",1)[0]?.trim()??""},"stuckByMachine",0,function(e){return new Map(e.byMachine.map(({machine:e,count:t})=>[e.id,t]))},"trendSentence",0,function(e){return e.count>e.dayAgo?`Up from ${String(e.dayAgo)} a day ago.`:e.count<e.dayAgo?`Down from ${String(e.dayAgo)} a day ago.`:"As many as a day ago."},"verdictOf",0,function(e){let{count:t,places:s,oldestSince:a}=e.summary;return null===a?{kind:"delivering"}:{kind:"stuck",count:t,places:s,since:a,dayAgo:e.stuckPerHour.at(-25)?.count??0}},"waitMinutes",0,function(e,t){return Math.max(0,(t.getTime()-Date.parse(e))/6e4)},"waitPosition",0,o],516634);var c=e.i(843476),u=e.i(965324);function m(e){return`${100*o(e)}%`}e.s(["WaitAxis",0,function({className:e}){return(0,c.jsx)("div",{"aria-hidden":!0,className:(0,u.classNames)("relative h-4 w-full text-micro text-muted-foreground",e),children:i.map((e,t)=>(0,c.jsx)("span",{className:(0,u.classNames)("absolute whitespace-nowrap",0===t?"":t===i.length-1?"-translate-x-full":"-translate-x-1/2"),style:{left:m(e.minutes)},children:e.label},e.minutes))})},"WaitStrip",0,function({waits:e,label:t,className:s}){let a=Math.max(0,...e);return(0,c.jsxs)("div",{role:"img","aria-label":t,"data-testid":"health-wait-strip",className:(0,u.classNames)("relative h-4 w-full",s),children:[(0,c.jsx)("span",{"aria-hidden":!0,className:"absolute inset-y-0 rounded-xs bg-muted",style:{left:m(10),right:`calc(100% - ${m(60)})`}}),(0,c.jsx)("span",{"aria-hidden":!0,className:"absolute inset-x-0 top-1/2 h-px bg-border"}),i.map(e=>(0,c.jsx)("span",{"aria-hidden":!0,className:"absolute top-1/4 h-1/2 w-px bg-border",style:{left:m(e.minutes)}},e.minutes)),(0,c.jsx)("span",{"aria-hidden":!0,className:"absolute top-1/2 h-0.5 -translate-y-1/2 rounded-full bg-foreground opacity-35",style:{left:0,width:m(a)}}),e.map((e,t)=>(0,c.jsx)("span",{"aria-hidden":!0,className:"absolute top-1/2 size-2.5 -translate-1/2 rounded-full border-2 border-card bg-foreground",style:{left:m(e)}},`${e}-${String(t)}`))]})}],38614)},215327,e=>{"use strict";var t=e.i(843476),s=e.i(271645),a=e.i(917540),n=e.i(826808),i=e.i(448695),r=e.i(574296),l=e.i(424010),o=e.i(746675);function d({memberName:e,replacedText:s,isOpen:a,onOpenChange:n,onConfirm:i}){return(0,t.jsx)(l.AlertDialog,{open:a,onOpenChange:n,children:(0,t.jsxs)(l.AlertDialogContent,{"data-testid":"new-crew-line-confirm",className:o.dialogSurface.phoneSheet,children:[(0,t.jsxs)(l.AlertDialogHeader,{children:[(0,t.jsxs)(l.AlertDialogTitle,{children:["Get a new crew line for ",e,"?"]}),(0,t.jsx)(l.AlertDialogDescription,{children:s??"Its new secret is shown once, with its launch note."})]}),(0,t.jsxs)(l.AlertDialogFooter,{children:[(0,t.jsx)(l.AlertDialogClose,{render:(0,t.jsx)(r.Button,{}),children:"Cancel"}),(0,t.jsx)(r.Button,{variant:"primary","data-testid":"new-crew-line-confirm-submit",onClick:i,children:"Get new crew line"})]})]})})}let c=(0,a.lazyDialog)(()=>e.A(733971).then(e=>e.CrewLineDialog),e=>e.isOpen);function u(e){let a=(0,i.useNewCrewLine)(),[r,l]=(0,s.useState)(!1),[o,u]=(0,s.useState)(!1),[m,h]=(0,s.useState)(void 0),x=()=>{e&&a.mutate({squadronId:e.squadronId,shipId:e.member.shipId})},p=a.data?"shown":a.isError?"error":"issuing";return{isReady:e?.ship!==void 0,start:()=>{e?.ship&&(a.reset(),h((0,n.newCrewLineReplaced)(e.ship)),u(!0))},dialog:e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d,{memberName:e.member.name,replacedText:m,isOpen:o,onOpenChange:u,onConfirm:()=>{u(!1),l(!0),x()}}),(0,t.jsx)(c,{memberName:e.member.name,state:p,template:e.template,launchNote:a.data?.launchNote,model:a.data?.model,crewLines:a.data?.crewLines,error:a.error?.message,isOpen:r,onOpenChange:e=>{l(e),e||a.reset()},onConfirm:x})]}):null}}e.s(["GetNewCrewLine",0,function({isPrimary:e=!1,testId:s,...a}){let n=u(a);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Button,{size:"xs",variant:e?"primary":"secondary",disabled:!n.isReady,"data-testid":s,onClick:n.start,children:"Get new crew line"}),n.dialog]})},"NewCrewLineFlow",0,function({of:e,children:t}){return t(u(e))},"useNewCrewLineFlow",0,u],215327)},615385,e=>{"use strict";var t=e.i(843476),s=e.i(965324),a=e.i(714695);let n={running:"bg-tone-ok-fg",crewing:"bg-tone-active-fg",releasing:"bg-tone-active-fg",restarting:"bg-tone-waiting-fg",crashed:"bg-tone-attention-fg"};e.s(["CapacityBar",0,function({spots:e,caps:i,unknownText:r="Unknown",testId:l}){let o=(0,a.capacityLine)(e,i);if(void 0===i||void 0===o)return(0,t.jsx)("span",{"data-testid":l,className:"text-meta text-muted-foreground",children:r});let d=Math.max(0,i.ships-e.length);return(0,t.jsxs)("span",{role:"img","aria-label":o,"data-testid":l,className:"inline-flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1",children:[(0,t.jsxs)("span",{"aria-hidden":!0,className:"inline-flex shrink-0 gap-0.5",children:[e.map((e,a)=>(0,t.jsx)("span",{title:`Spot ${String(a+1)}: ${e.name}, ${e.status}`,className:(0,s.classNames)("h-2 w-3 rounded-xs",n[e.status])},e.shipId)),Array.from({length:d},(s,a)=>(0,t.jsx)("span",{title:`Spot ${String(e.length+a+1)}: vacant`,className:"h-2 w-3 rounded-xs border border-input"},`free-${String(a)}`))]}),(0,t.jsx)("span",{className:"text-meta tabular-nums",children:o})]})}])},36556,e=>{"use strict";var t=e.i(843476),s=e.i(271567),a=e.i(152886),n=e.i(569644),i=e.i(269846),r=e.i(586875),l=e.i(466787),o=e.i(522016),d=e.i(866616),c=e.i(714695),u=e.i(849635),m=e.i(766390),h=e.i(615385),x=e.i(721039),p=e.i(763481);let g={alive:"border-tone-ok-border bg-tone-ok-bg text-tone-ok-fg",silent:"border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg","not-started":"border-tone-waiting-border bg-tone-waiting-bg text-tone-waiting-fg"},f={alive:"Alive",silent:"Not answering","not-started":"Not started"};function j({machine:e,now:s}){let n=(0,c.machineLiveness)(e),i=null===e.lastSeenAt?null:new Date(e.lastSeenAt);return(0,t.jsxs)("span",{className:"inline-flex flex-wrap items-center gap-x-2 gap-y-1 text-meta","data-testid":"machine-liveness","data-liveness":n,children:[(0,t.jsxs)(m.Badge,{variant:"outline",className:g[n],children:["alive"===n?(0,t.jsx)(r.ShipWheel,{"aria-hidden":!0}):(0,t.jsx)(a.CircleDashed,{"aria-hidden":!0}),f[n]]}),null===i?(0,t.jsx)("span",{className:"text-muted-foreground",children:"· run its setup line on the machine"}):(0,t.jsxs)("time",{dateTime:e.lastSeenAt??void 0,title:(0,u.fullDateTime)(i),className:"text-muted-foreground tabular-nums",children:["· ","silent"===n?`since ${(0,u.clockTime)(i)}`:(0,u.lastSeen)(i,s).replace("Last seen","seen")]})]})}function b(e,t){let s=(0,u.relativeTime)(e,t);return"Just now"===s?"just now":s}function v({title:e,children:s,className:a}){return(0,t.jsxs)("div",{className:`flex min-w-0 flex-col gap-2 px-4.5 py-4 ${a??""}`,children:[(0,t.jsx)("span",{className:"text-caption font-medium text-muted-foreground",children:e}),s]})}function w({harness:e,now:a}){let n=(0,d.harnessDetection)(e,a);return(0,t.jsxs)("div",{className:"flex flex-col gap-1.5 border-t border-border py-2.5 first-of-type:border-t-0 first-of-type:pt-0",children:[(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-body font-medium [&_svg]:size-(--size-icon-sm) [&_svg]:text-muted-foreground",children:[(0,t.jsx)(s.Bot,{"aria-hidden":!0}),(0,d.harnessWord)(e.harness),void 0===n?null:(0,t.jsx)("span",{className:"font-normal text-meta text-muted-foreground",children:n})]}),(0,c.harnessOptions)(e.options).map(e=>(0,t.jsxs)("span",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1 text-meta",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:e.name}),e.values.map(s=>(0,t.jsxs)("span",{className:"font-mono text-id whitespace-nowrap",children:[s,s===e.defaultValue?(0,t.jsx)("span",{className:"font-sans text-muted-foreground",children:" (default)"}):null]},s))]},e.name)),0===e.flags.length?null:(0,t.jsx)("span",{className:"flex flex-wrap items-center gap-1.5",children:e.flags.map(s=>e.riskyFlags?.includes(s)===!0?(0,t.jsxs)("code",{"data-testid":"machine-risky-flag",title:"Risky: every launch runs without its harness's safeguards",className:"inline-flex items-center gap-1 rounded-sm border border-tone-waiting-border bg-tone-waiting-bg px-1.5 font-mono text-id text-tone-waiting-fg [&_svg]:size-(--size-icon-sm)",children:[(0,t.jsx)(l.TriangleAlert,{"aria-hidden":!0}),s,(0,t.jsx)("span",{className:"sr-only",children:" (risky)"})]},s):(0,t.jsx)("code",{className:"rounded-sm bg-muted px-1.5 font-mono text-id",children:s},s))})]})}function N({title:e,icon:s,names:a}){return(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("span",{className:"text-caption text-muted-foreground",children:e}),0===a.length?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"None"}):a.map(e=>(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-meta [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0 [&_svg]:text-muted-foreground",children:[s,e]},e))]})}function y({workspaces:e}){return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(N,{title:"Repositories · a new worktree per ship",icon:(0,t.jsx)(i.GitBranch,{"aria-hidden":!0}),names:e.repositories}),(0,t.jsx)(N,{title:"Folders · used as they are",icon:(0,t.jsx)(n.FolderOpen,{"aria-hidden":!0}),names:e.folders})]})}e.s(["HarnessOffer",0,w,"MachineCard",0,function({machine:e,spots:s,location:a,now:n}){let{details:i,report:l}=e,d=null===l?null:new Date(l.reportedAt);return(0,t.jsxs)("section",{"aria-label":e.name,"data-testid":"machine-card",className:"grid grid-cols-[minmax(0,18.75rem)_minmax(0,1.25fr)_minmax(0,1fr)] divide-x divide-border rounded-lg border border-border bg-card shadow-sm max-lg:grid-cols-1 max-lg:divide-x-0 max-lg:divide-y",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-2.5 px-4.5 py-4",children:[(0,t.jsxs)(o.default,{href:`/trierarchs/${e.shipId}`,"data-testid":"machine-card-name",className:"inline-flex items-center gap-2 text-section font-semibold hover:underline [&_svg]:size-(--size-icon) [&_svg]:text-muted-foreground",children:[(0,t.jsx)(r.ShipWheel,{"aria-hidden":!0}),e.name]}),(0,t.jsx)(j,{machine:e,now:n}),(0,t.jsxs)("span",{className:"flex flex-wrap items-center gap-1.5 text-meta text-muted-foreground",children:[(0,t.jsx)(p.LocationTag,{kind:a?.kind??null,description:a?.description}),null===i?null:(0,t.jsxs)("span",{className:"font-mono text-id",children:["· trierarch ",i.version]})]}),(0,t.jsx)("div",{role:"separator",className:"h-px bg-border"}),(0,t.jsx)("span",{className:"text-caption font-medium text-muted-foreground",children:"Capacity"}),(0,t.jsx)(h.CapacityBar,{spots:s,caps:i?.caps,testId:"machine-card-capacity",unknownText:null===d?"Unknown until it answers":`Unknown since ${(0,u.clockTime)(d)}`}),null===d?null:(0,t.jsxs)("time",{dateTime:l?.reportedAt,title:(0,u.fullDateTime)(d),className:"text-meta text-muted-foreground",children:["Last answer ",b(d,n)]})]}),(0,t.jsxs)(v,{title:"Harnesses, options and flags",children:[i?.notOffered?.map(({harness:e,reason:s})=>(0,t.jsx)(x.NotOfferedLine,{harness:e,reason:s},e)),null===i?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"Unknown until it answers"}):i.harnesses.map(e=>(0,t.jsx)(w,{harness:e,now:n},e.harness))]}),(0,t.jsx)(v,{title:"Workspaces",children:null===i?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"Unknown until it answers"}):(0,t.jsx)(y,{workspaces:i.workspaces})})]})},"MachineLiveness",0,j,"WorkspaceOffer",0,y,"lastAnswer",0,b])},793361,e=>{"use strict";var t=e.i(849635);let s={working:"Working",blocked:"Blocked",idle:"Idle"};e.s(["REPORT_STATE_WORDS",0,s,"REPORT_TONES",0,{working:"active",blocked:"waiting",idle:"ended"},"reportAge",0,function(e,s){let a=Math.max(0,s.getTime()-e.getTime());return a<6e4?`${String(Math.floor(a/1e3))} s`:a<36e5?`${String(Math.floor(a/6e4))} min`:a<864e5?`${String(Math.floor(a/36e5))} h`:(0,t.relativeTime)(e,s)},"reportDetailsJson",0,function(e){return JSON.stringify(e,null,2)},"reportDetailsLabel",0,function(e){return`JSON \xb7 ${String(e)} bytes`},"reportText",0,function(e){let t=s[e.state];return null===e.note?t:`${t}: ${e.note}`},"reportedWhen",0,function(e,s){let a=(0,t.relativeTime)(e,s);return`reported ${"Just now"===a?"just now":a}`}])},890135,e=>{"use strict";e.s(["OPERATOR_NAME",0,"argo","capitalised",0,function(e){return e.charAt(0).toUpperCase()+e.slice(1)},"counted",0,function(e,t){return`${String(e)} ${1===e?t.one:t.many}`},"ship",0,function(e){return{kind:"ship",party:e}},"text",0,function(e){return{kind:"text",text:e}}])},826808,e=>{"use strict";var t=e.i(890135);let s={one:"delivery",many:"deliveries"};function a(e){if(0===e)return"Nothing is in flight, so no delivery moves.";let s=1===e?"returns":"return";return`${(0,t.counted)(e,{one:"in-flight delivery",many:"in-flight deliveries"})} ${s} to pending. Nothing is lost.`}e.s(["abandonedLine",0,function(e){return`${(0,t.counted)(e,s)} will be abandoned`},"inFlightLine",0,a,"isTypedMatch",0,function(e,t){return t===e},"newCrewLineReplaced",0,function(e){if("crewed"===e.status){let t=null===e.location?"the session crewing it":`the session on ${e.location.description??e.location.kind.toLowerCase()}`;return`This ends ${t}. ${a(e.inFlightDeliveries)}`}if(null!==e.startingPrompt&&!e.startingPrompt.isClaimed)return"The crew line issued earlier, not claimed yet, stops working."},"retireButtonLabel",0,function(e){return 0===e?"Retire ship":`Retire and abandon ${(0,t.counted)(e,s)}`}])},853573,e=>{"use strict";var t=e.i(970597),s=e.i(619273),a=e.i(621482),n=e.i(586448),i=e.i(266027),r=e.i(905387),l=e.i(731877),o=e.i(427702);e.s(["useMessage",0,function(e){let t=(0,o.useTRPC)();return(0,i.useQuery)(t.fleet.message.queryOptions(void 0===e?s.skipToken:{messageId:e}))},"useShip",0,function(e){let a=(0,o.useTRPC)();return(0,i.useQuery)(a.fleet.ship.queryOptions(void 0===e?s.skipToken:{shipId:e},{refetchInterval:r.LAST_SEEN_REFRESH_MS,select:e=>(0,t.isInReadReach)(e)?e:null}))},"useShipMessages",0,function(e){let t=(0,o.useTRPC)();return(0,l.pagedListOf)((0,a.useInfiniteQuery)(t.fleet.shipMessages.infiniteQueryOptions({shipId:e,limit:l.CONSOLE_PAGE_SIZE},{getNextPageParam:l.nextCursorOf})))},"useShipTimeline",0,function(e){let t=(0,o.useTRPC)();return(0,l.pagedListOf)((0,a.useInfiniteQuery)(t.fleet.shipTimeline.infiniteQueryOptions({shipId:e,limit:l.CONSOLE_PAGE_SIZE},{getNextPageParam:l.nextCursorOf})))},"useShipWay",0,function(e){let t=(0,o.useTRPC)();return(0,i.useQuery)(t.fleet.shipWay.queryOptions({shipId:e},{refetchInterval:r.LAST_SEEN_REFRESH_MS}))},"useShips",0,function(e){let s=(0,o.useTRPC)(),a=(0,n.useQueries)({queries:e.map(e=>s.fleet.ship.queryOptions({shipId:e},{refetchInterval:r.LAST_SEEN_REFRESH_MS}))}),i=new Map;for(let e of a)e.data&&(0,t.isInReadReach)(e.data)&&i.set(e.data.id,e.data);return i}])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,419413,e=>{"use strict";e.s(["PAGE_SIZE_MAX",0,500])},887851,e=>{"use strict";var t=e.i(843476),i=e.i(792150),n=e.i(24071),a=e.i(867927),r=e.i(566595),s=e.i(749287),l=e.i(586875),o=e.i(271645),d=e.i(965324),c=e.i(937338),u=e.i(212470);let m=[{value:"*",testId:"label-picker-any"},{value:"#",testId:"label-picker-same"}],h={"trierarch-plugin":l.ShipWheel,squadrons:i.Boxes,ship:s.Ship};function p(e,t){return`${String(e)} ${1===e?t:`${t}s`}`}e.s(["LabelPicker",0,function({groups:e,pickedValueIds:i,onPick:s,size:l="sm",pickedWord:z="Picked",countWord:b="ship",terms:g}){let[f,v]=(0,o.useState)(""),[y,j]=(0,o.useState)(void 0),k="touch"===l,S=(0,d.classNames)("flex w-full items-center gap-2 rounded-sm px-2 text-left hover:bg-accent focus-visible:outline-2 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50",k?"min-h-(--size-control-touch) text-body-touch":"h-(--size-control-sm) text-body");if(void 0!==y)return(0,t.jsxs)("div",{className:"flex flex-col gap-1","data-testid":"label-picker-values",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2 px-1 pb-1",children:[(0,t.jsxs)("button",{type:"button",className:"inline-flex items-center gap-1 rounded-sm px-1 font-mono text-body hover:bg-accent focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon-sm)",onClick:()=>{j(void 0)},"aria-label":`Back to the keys, from ${y.key}`,children:[(0,t.jsx)(n.ChevronLeft,{"aria-hidden":!0}),y.key,"="]}),(0,t.jsxs)("span",{className:"text-meta text-muted-foreground",children:["ship"===b?"Ships":"Machines"," with each"]})]}),(0,t.jsxs)("ul",{className:"flex flex-col",children:[void 0===g?null:m.map(({value:e,testId:i})=>{let n=g.picked.some(t=>t.labelId===y.labelId&&t.value===e);return(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",className:S,disabled:n,"data-testid":i,onClick:()=>{g.onPick({labelId:y.labelId,value:e}),j(void 0),v("")},children:[(0,t.jsx)("span",{className:"w-3 shrink-0 font-mono",children:e}),(0,t.jsx)("span",{className:"min-w-0 grow truncate",children:c.TERM_MEANINGS[e]}),n?(0,t.jsx)("span",{className:"shrink-0 text-meta text-muted-foreground",children:z}):null]})},e)}),y.values.map(e=>{let n=i.includes(e.valueId);return(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",className:S,disabled:n,"data-testid":"label-picker-value",onClick:()=>{s(e.valueId),j(void 0),v("")},children:[(0,t.jsx)("span",{className:"min-w-0 grow truncate font-mono",children:e.value}),(0,t.jsx)("span",{className:"shrink-0 text-meta text-muted-foreground tabular-nums",children:n?z:p(e.shipCount,b)})]})},e.valueId)})]})]});let x=f.trim().toLowerCase(),w=e.map(e=>({...e,keys:e.keys.filter(e=>""===x||e.key.includes(x))})).filter(e=>e.keys.length>0);return(0,t.jsxs)("div",{className:"flex flex-col gap-2","data-testid":"label-picker",children:[(0,t.jsx)(u.Input,{type:"search","aria-label":"Find a key",placeholder:"Find a key",size:k?"touch":"md",leadingIcon:(0,t.jsx)(r.Search,{}),value:f,onChange:e=>{v(e.target.value)}}),0===w.length?(0,t.jsx)("p",{className:"px-2 py-3 text-meta text-muted-foreground",children:0===e.length?"The fleet has no labels yet.":`No key matches “${f.trim()}”.`}):w.map(e=>(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("span",{className:"px-2 pt-1 pb-0.5 text-caption text-muted-foreground",children:e.title}),(0,t.jsx)("ul",{className:"flex flex-col",children:e.keys.map(e=>{let i="none"===e.mark?null:h[e.mark];return(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",className:(0,d.classNames)(S,"[&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0 [&_svg]:text-muted-foreground"),"data-testid":"label-picker-key",onClick:()=>{j(e)},children:[null===i?null:(0,t.jsx)(i,{"aria-hidden":!0}),(0,t.jsx)("span",{className:"font-mono",children:e.key}),(0,t.jsx)("span",{className:"min-w-0 grow truncate text-meta text-muted-foreground",children:p(e.values.length,"value")}),(0,t.jsx)(a.ChevronRight,{"aria-hidden":!0})]})},e.labelId)})})]},e.title))]})}])},259068,function(e){e.n(e.i(887851))},937338,711514,e=>{"use strict";var t,i=e.i(681307),n=e.i(383615);let a=i.z.enum(["messages:send","messages:receive","messages:force","messages:resend","fleet:read","fleet:commission","fleet:manage","crew:assign","crew:run","labels:define","labels:assign","fleet:network","fleet:on-behalf","fleet:person","fleet:owner","fleet:explain","fleet:connect","labels:any","fleet:verify","scopes:declare","scopes:grant","meetings:open"]),r=["messages","fleet","crew","labels","scopes","meetings"],s="[a-z][a-z0-9-]{0,31}";RegExp(`^${s}$`);let l=RegExp(`^${s}:${s}$`),o=i.z.string().regex(l,"A scope is <namespace>:<action>").refine(e=>{var t;return t=e.slice(0,e.indexOf(":")),!r.some(e=>e===t)||a.safeParse(e).success},"No such core scope");i.z.enum(["messages:resend","fleet:read","fleet:commission","fleet:manage","crew:assign","crew:run","labels:define","labels:assign","fleet:network","fleet:on-behalf","fleet:person","fleet:owner","fleet:explain","fleet:connect","labels:any","fleet:verify","meetings:open"]);let d=i.z.enum(["operator","agent","viewer","person","app","plugin"]);i.z.enum(["agent","person","app","plugin"]),i.z.enum(["DEVICE","CLOUD","SERVER","OTHER"]);let c=i.z.enum(["awaitingCrew","crewed","retired"]);i.z.enum(["ship","type","meeting"]),i.z.enum(["pending","received","handed","acknowledged","handled","notHandled","undeliverable","dismissed","abandoned"]),i.z.enum(["FleetInitialised","ShipCommissioned","OwnerSet","OwnerChanged","ShipClaimed","LeaseRevoked","CredentialRevoked","StartingPromptIssued","OperatorPasswordReset","OperatorLoginSet","MessageAccepted","LeasePushed","DeliveryReceived","DeliveryHanded","DeliveryAcknowledged","DeliveryHandled","DeliveryNotHandled","DeliveryOverdue","DeliveryUndeliverable","DeliveryReturned","ShipRetired","DeliveryAbandoned","DeliveryDismissed","ShipRenamed","ShipReported","StatementSet","TurnReported","SignInTicketIssued","FleetLimitsChanged","ViewerSessionStarted","CrewRequested","CrewRequestRemoved","CrewAssigned","CrewStatusChanged","CrewRequestExplained","CrewRequestGivenBack","LabelDefined","LabelValuesChanged","LabelRetired","LabelAssigned","LabelUnassigned","LabelDeleted","WorktreeClearRequested","WorktreeCleared","WorktreeClearRemoved","NetworkRulesSet","NetworkRulesDeclared","NetworkRulesDraftSaved","NetworkRulesDraftDiscarded","NetworkPluginRegistered","NetworkPluginUnregistered","BuiltInRuleChanged","ScopesDeclared","ScopesChanged","PluginConnected","PluginDisconnected","VerifiedFactsSet","VerifiedFactsRemoved","MeetingOpened","ParticipantAdded","MicRequested","MicRequestWithdrawn","MicGiven","MicReleased","MicTaken","MicPatternSet","ParticipantLeft","ParticipantRejoined","ParticipantRevoked","OwnershipTransferred","ModeratorNamed","MeetingEnded"]);let u=i.z.string().min(1).max(128).brand();i.z.object({iss:i.z.string(),aud:(0,n.idSchema)("fleet"),sub:u,org:i.z.string().min(1),scope:i.z.string(),group:i.z.array(i.z.string()),person_ship:(0,n.idSchema)("ship").optional(),argo:i.z.boolean().optional(),iat:i.z.number(),exp:i.z.number()}).transform((e,t)=>{let n=e.scope.split(" ").filter(e=>""!==e),a=i.z.array(o).safeParse(n);return a.success?{issuer:e.iss,fleetId:e.aud,accountId:e.sub,organisationId:e.org,scopes:a.data,groupValues:e.group,personShipId:e.person_ship??null,isArgoAllowed:e.argo??!1,issuedAt:new Date(1e3*e.iat),endsAt:new Date(1e3*e.exp)}:(t.addIssue({code:"custom",message:"scope holds a malformed or unknown scope",path:["scope"]}),i.z.NEVER)}),new TextEncoder;let m=i.z.record(i.z.string(),i.z.json()),h=["crewing","running","restarting","crashed","releasing"],p=i.z.enum(h),z=["none","needsCrew","crewedByHand",...h],b=i.z.enum(z),g=`A reason is one line of at most ${String(200)} characters`;i.z.object({shipId:(0,n.idSchema)("ship"),settings:m}),i.z.object({settingsVersion:i.z.int().min(1)}),i.z.object({shipId:(0,n.idSchema)("ship")}),i.z.strictObject({}),i.z.object({settingsVersion:i.z.int().min(1),requestedAt:i.z.iso.datetime(),assignedTo:i.z.object({id:(0,n.idSchema)("ship"),name:i.z.string()}).nullable(),status:p.nullable(),reason:i.z.string().nullable(),crewedBy:i.z.object({id:(0,n.idSchema)("ship"),name:i.z.string()}).nullable(),attempt:i.z.int().min(0),startedAt:i.z.iso.datetime().nullable(),givenBack:i.z.array(i.z.object({trierarch:i.z.object({id:(0,n.idSchema)("ship"),name:i.z.string()}),settingsVersion:i.z.int().min(1),reason:i.z.string(),givenBackAt:i.z.iso.datetime()}))}).extend({settings:m}),i.z.object({shipId:(0,n.idSchema)("ship"),trierarchShipId:(0,n.idSchema)("ship")}),i.z.strictObject({}),i.z.object({shipId:(0,n.idSchema)("ship"),status:p,attempt:i.z.int().min(0).optional(),startedAt:i.z.iso.datetime().nullable().optional()}),i.z.strictObject({}),i.z.object({shipId:(0,n.idSchema)("ship")}),i.z.strictObject({}),i.z.array(i.z.object({shipId:(0,n.idSchema)("ship"),settings:m,settingsVersion:i.z.int().min(1),requestedAt:i.z.iso.datetime(),status:p.nullable(),isFinal:i.z.boolean(),ownerShipId:(0,n.idSchema)("ship").nullable(),ownerName:i.z.string().nullable()})),i.z.object({shipId:(0,n.idSchema)("ship"),reason:i.z.string().trim().max(200,g).refine(e=>!/[\r\n]/.test(e),g).nullable()}),i.z.strictObject({}),i.z.object({shipId:(0,n.idSchema)("ship"),settingsVersion:i.z.int().min(1),reason:i.z.string().trim().min(1,g).max(200,g).refine(e=>!/[\r\n]/.test(e),g)}),i.z.strictObject({});var f=e.i(419413);function v(e){return i.z.object({cursor:e.optional(),limit:i.z.int().min(1).max(f.PAGE_SIZE_MAX).optional()})}let y=i.z.string(),j=i.z.object({id:(0,n.idSchema)("labelValue"),value:i.z.string()}),k=i.z.object({labelId:(0,n.idSchema)("label"),key:i.z.string(),valueId:(0,n.idSchema)("labelValue"),value:i.z.string()}),S=i.z.enum(["console","claudeCode","codex","trierarch","plugin","other"]),x=i.z.object({query:i.z.string().optional(),name:i.z.string().optional(),status:i.z.array(c).optional(),type:i.z.array(i.z.string()).optional(),shipKind:i.z.array(d).optional(),crewRequest:i.z.array(b).optional(),assignedTo:i.z.array((0,n.idSchema)("ship")).optional(),needsCrew:i.z.enum(["withTrierarchs","withoutTrierarchs"]).optional(),valueIds:i.z.array((0,n.idSchema)("labelValue")).optional(),shipIds:i.z.array((0,n.idSchema)("ship")).optional(),kind:i.z.array(S).optional(),pluginShipIds:i.z.array((0,n.idSchema)("ship")).optional()});i.z.object({filter:x.optional()}).optional(),i.z.object({status:i.z.array(c).optional()}).optional(),i.z.array(i.z.string());let w=i.z.object({column:i.z.enum(["ship","status","report","runsOn","seen","requested"]),direction:i.z.enum(["ascending","descending"])}),I=i.z.object({isEmpty:i.z.boolean(),value:i.z.string(),name:i.z.string(),id:(0,n.idSchema)("ship")});v(i.z.string().max(4096).transform(function(e){try{let t=atob(e.replaceAll("-","+").replaceAll("_","/"));return JSON.parse(new TextDecoder().decode(Uint8Array.from(t,e=>e.charCodeAt(0))))}catch{return}}).pipe(I)).extend({...x.shape,sort:w.optional()}).optional(),i.z.object({key:y,values:i.z.array(y)}),i.z.object({labelId:(0,n.idSchema)("label"),values:i.z.array(j)}),i.z.object({labelId:(0,n.idSchema)("label"),values:i.z.array(y)}),i.z.object({values:i.z.array(j)}),i.z.object({labelId:(0,n.idSchema)("label")}),i.z.object({key:y,value:y}),i.z.object({labelId:(0,n.idSchema)("label"),valueId:(0,n.idSchema)("labelValue")}),i.z.object({shipId:(0,n.idSchema)("ship"),valueId:(0,n.idSchema)("labelValue")}),i.z.object({});let R=i.z.discriminatedUnion("kind",[i.z.object({kind:i.z.literal("ship"),id:(0,n.idSchema)("ship"),name:i.z.string()}),i.z.object({kind:i.z.literal("installation")})]),N=i.z.object({id:(0,n.idSchema)("label"),key:i.z.string(),values:i.z.array(j),owner:R});i.z.array(N.extend({shipCount:i.z.int().min(0),values:i.z.array(j.extend({shipCount:i.z.int().min(0)}))}));let C=i.z.union([(0,n.idSchema)("labelValue"),i.z.object({labelId:(0,n.idSchema)("label"),value:i.z.enum(["*","#"])}),i.z.object({owner:i.z.union([(0,n.idSchema)("ship"),i.z.enum(["*","#"])])})]);function A(e){return"string"!=typeof e&&"owner"in e}let O=i.z.array(C),E=["send","read","manage"],V=i.z.object({verb:i.z.enum(E),from:O,to:O}),D=i.z.array(V).nullable();i.z.object({rules:D}),i.z.object({savedAgainstVersion:i.z.int().min(0)}),i.z.object({version:i.z.int().min(0)}),i.z.object({applied:i.z.object({rules:D,version:i.z.int().min(0)}),draft:i.z.object({rules:D,savedAt:i.z.iso.datetime(),savedAgainstVersion:i.z.int().min(0)}).nullable()}),i.z.object({});let M=["argo","owner","answer","pluginRead","meeting","viewerRead","installation","open"];i.z.object({rule:i.z.enum(M),isOn:i.z.boolean()});let T=i.z.object({rule:i.z.enum(M),isOn:i.z.boolean()});i.z.array(T),i.z.object({version:i.z.int().min(0)}),i.z.object({rules:i.z.array(V)}),i.z.object({rules:i.z.int().min(0)});let P=i.z.discriminatedUnion("kind",[i.z.object({kind:i.z.literal("ship"),shipId:(0,n.idSchema)("ship")}),i.z.object({kind:i.z.literal("installation")})]);i.z.array(i.z.object({declarer:P,rules:i.z.array(V)}));let L=i.z.object({id:(0,n.idSchema)("ship"),name:i.z.string(),labels:i.z.array(k),owner:i.z.object({id:(0,n.idSchema)("ship"),name:i.z.string()}).nullable()}),_=i.z.discriminatedUnion("kind",[L.extend({kind:i.z.literal("ship")}),i.z.object({kind:i.z.literal("account"),accountId:u,labels:i.z.array(k),personShip:i.z.object({id:(0,n.idSchema)("ship"),name:i.z.string()}).nullable()}),i.z.object({kind:i.z.literal("installation")})]),$=i.z.object({id:(0,n.idSchema)("reachRefusal"),at:i.z.iso.datetime(),sender:_,askedBy:L.nullable(),recipient:i.z.discriminatedUnion("kind",[i.z.object({kind:i.z.literal("ship"),ship:L}),i.z.object({kind:i.z.literal("type"),type:i.z.string(),ships:i.z.array(L)})]),verb:i.z.enum(E),settingsVersion:i.z.int().min(1)});v((0,n.idSchema)("reachRefusal")),t=(0,n.idSchema)("reachRefusal"),i.z.object({items:i.z.array($),nextCursor:t.nullable()}),i.z.object({fromShipId:(0,n.idSchema)("ship"),toShipId:(0,n.idSchema)("ship").optional(),against:i.z.enum(["applied","draft"]).optional()});let B=i.z.union([i.z.object({builtIn:i.z.enum(M)}),i.z.object({rule:i.z.int().min(0)}),i.z.object({declared:P,index:i.z.int().min(0)})]),q=i.z.array(i.z.object({shipId:(0,n.idSchema)("ship"),rule:B}));i.z.object({send:q,read:q,manage:q});let U=i.z.array(i.z.object({fromShipId:(0,n.idSchema)("ship"),toShipId:(0,n.idSchema)("ship"),rule:B}));i.z.object({send:i.z.object({gained:U,lost:U}),read:i.z.object({gained:U,lost:U}),manage:i.z.object({gained:U,lost:U})}),e.s(["ANY_LABEL_VALUE",0,"*","NETWORK_VERBS",0,E,"SAME_LABEL_VALUE",0,"#","isOwnerTerm",0,A],711514);var W=e.i(280581);function F(e){return"all-to-all"===e.kind?null:e.rules.map(e=>({verb:e.verb,from:[...e.from],to:[...e.to]}))}function G(e,t){return"all-to-all"===e.kind?e:{kind:"rules",rules:e.rules.map(e=>e.key===t.key?t.change(e):e)}}function H(e,t){return K(e)===K(t)}function K(e){return"string"==typeof e?e:A(e)?`owner=${e.owner}`:`${e.labelId}=${e.value}`}function J(e,t){let i=e["from"===t?"to":"from"];return e[t].filter(e=>"string"!=typeof e&&!A(e)&&"#"===e.value&&!i.some(t=>H(t,e)))}function X(e,t){let i=e=>e.some(e=>A(e)&&"#"===e.owner);return i(e[t])&&!i(e["from"===t?"to":"from"])}e.s(["OWNER_TERM_MEANINGS",0,{"*":"Any owner","#":"The same owner as the other side"},"TERM_MEANINGS",0,{"*":"Any value","#":"The same value as the other side"},"VERB_WORDS",0,{send:"May send to",read:"May read",manage:"May manage"},"addRule",0,function(e,t){return"all-to-all"===e.kind||e.rules.length>=t.limits.rulesMax?e:{kind:"rules",rules:[...e.rules,{key:t.newKey(),verb:"send",from:[],to:[]}]}},"addTerm",0,function(e,t){return G(e,{key:t.rule,change:e=>{let i=e[t.side];return i.some(e=>H(e,t.term))||i.length>=t.limits.selectorMax?e:{...e,[t.side]:[...i,t.term]}}})},"draftOf",0,function(e,t){return null===e?{kind:"all-to-all"}:{kind:"rules",rules:e.map(e=>({key:t(),verb:e.verb,from:[...e.from],to:[...e.to]}))}},"hasSameValueOnOneSide",0,function(e){return"rules"===e.kind&&e.rules.some(e=>J(e,"from").length+J(e,"to").length>0||X(e,"from")||X(e,"to"))},"isChanged",0,function(e,t){return JSON.stringify(F(e))!==JSON.stringify(t)},"ownerChoicesOf",0,function(e){return e.ships.filter(e=>("operator"===e.kind||"person"===e.kind)&&"retired"!==e.status).map(e=>({shipId:e.id,name:e.name}))},"removeRule",0,function(e,t){return"all-to-all"===e.kind?e:{kind:"rules",rules:e.rules.filter(e=>e.key!==t)}},"removeTerm",0,function(e,t){return G(e,{key:t.rule,change:e=>({...e,[t.side]:e[t.side].filter(e=>!H(e,t.term))})})},"rulesOf",0,F,"sameValueProblemOf",0,function(e,t){let[i]=J(e,t.side);if(void 0===i)return X(e,t.side)?"owner=# needs owner=# on the other side: # matches the same owner there.":void 0;let n=t.context.labels.find(e=>e.id===i.labelId)?.key??i.labelId;return`${n}=# needs ${n}=# on the other side: # matches the same value there.`},"selectorOf",0,function(e,t){let i=[],n=[],a=[];for(let r of e){if(A(r)){let e=function(e,t){if("*"===e.owner||"#"===e.owner)return{term:e,text:`owner=${e.owner}`};let i=t.ships.find(t=>t.id===e.owner);return void 0===i?void 0:{term:e,text:`owner=${i.name}`}}(r,t);void 0===e?a.push(r):n.push(e);continue}let e=function(e,t){if("string"==typeof e){let[i]=(0,W.pickedChips)([e],t);return void 0===i?void 0:{labelId:i.labelId,key:i.key,value:i.value,mark:i.mark,ownerName:i.ownerName,term:e}}let i=t.labels.find(t=>t.id===e.labelId);if(void 0===i)return;let n=t.ownerOf.get(i.id);return{labelId:i.id,key:i.key,value:e.value,mark:n?.mark??"ship",ownerName:n?.name??(0,W.labelOwnerName)(i.owner),term:e}}(r,t);void 0===e?a.push(r):i.push(e)}return{chips:i,owners:n,unknown:a}},"setRulesOn",0,function(e,t){return t?"rules"===e.kind?e:{kind:"rules",rules:[]}:{kind:"all-to-all"}},"setVerb",0,function(e,t){return G(e,{key:t.rule,change:e=>({...e,verb:t.verb})})},"termKeyOf",0,K],937338)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,395530,e=>{"use strict";var t=e.i(271645),a=e.i(828918),s=e.i(838452),i=e.i(673553);e.s(["useCompositeItem",0,function(e={}){let{highlightItemOnHover:n,highlightedIndex:r,onHighlightedIndexChange:l}=(0,s.useCompositeRootContext)(),{ref:d,index:o}=(0,i.useCompositeListItem)(e),c=r===o,u=t.useRef(null),h=(0,a.useMergedRefs)(d,u);return{compositeProps:{tabIndex:c?0:-1,onFocus(){l(o)},onMouseMove(){let e=u.current;if(!n||!e)return;let t=e.hasAttribute("disabled")||"true"===e.ariaDisabled;c||t||e.focus()}},compositeRef:h,index:o}}])},749655,987255,450092,536604,e=>{"use strict";var t=e.i(456420);let a={name:"alarm-clock",size:24,node:[["circle",{cx:"12",cy:"13",r:"8",key:"3y4lt7"}],["path",{d:"M12 9v4l2 2",key:"1c63tq"}],["path",{d:"M5 3 2 6",key:"18tl5t"}],["path",{d:"m22 6-3-3",key:"1opdir"}],["path",{d:"M6.38 18.7 4 21",key:"17xu3x"}],["path",{d:"M17.64 18.67 20 21",key:"kv2oe2"}]]};a.node;let s=(0,t.default)(a);e.s(["AlarmClock",0,s],749655);let i={name:"anchor",size:24,node:[["path",{d:"M12 6v16",key:"nqf5sj"}],["path",{d:"m19 13 2-1a9 9 0 0 1-18 0l2 1",key:"y7qv08"}],["path",{d:"M9 11h6",key:"1fldmi"}],["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}]]};i.node;let n=(0,t.default)(i);e.s(["Anchor",0,n],987255);let r={name:"circle-arrow-right",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m12 16 4-4-4-4",key:"1i9zcv"}],["path",{d:"M8 12h8",key:"1wcyev"}]],aliases:["arrow-right-circle"]};r.node;let l=(0,t.default)(r);e.s(["CircleArrowRight",0,l],450092);let d={name:"circle-check-big",size:24,node:[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],aliases:["check-circle"]};d.node;let o=(0,t.default)(d);e.s(["CircleCheckBig",0,o],536604)},876561,e=>{"use strict";var t=e.i(456420);let a={name:"archive",size:24,node:[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]};a.node;let s=(0,t.default)(a);e.s(["Archive",0,s],876561)},847211,e=>{"use strict";var t=e.i(456420);let a={name:"ban",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]]};a.node;let s=(0,t.default)(a);e.s(["Ban",0,s],847211)},24071,e=>{"use strict";var t=e.i(456420);let a={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};a.node;let s=(0,t.default)(a);e.s(["ChevronLeft",0,s],24071)},867927,e=>{"use strict";var t=e.i(456420);let a={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};a.node;let s=(0,t.default)(a);e.s(["ChevronRight",0,s],867927)},152886,e=>{"use strict";var t=e.i(456420);let a={name:"circle-dashed",size:24,node:[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]};a.node;let s=(0,t.default)(a);e.s(["CircleDashed",0,s],152886)},119002,e=>{"use strict";var t=e.i(456420);let a={name:"circle-pause",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]],aliases:["pause-circle"]};a.node;let s=(0,t.default)(a);e.s(["CirclePause",0,s],119002)},832297,426391,519647,710001,25799,e=>{"use strict";var t=e.i(456420);let a={name:"circle-play",size:24,node:[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],aliases:["play-circle"]};a.node;let s=(0,t.default)(a);e.s(["CirclePlay",0,s],832297);let i={name:"circle-dot-dashed",size:24,node:[["path",{d:"M10.1 2.18a9.93 9.93 0 0 1 3.8 0",key:"1qdqn0"}],["path",{d:"M17.6 3.71a9.95 9.95 0 0 1 2.69 2.7",key:"1bq7p6"}],["path",{d:"M21.82 10.1a9.93 9.93 0 0 1 0 3.8",key:"1rlaqf"}],["path",{d:"M20.29 17.6a9.95 9.95 0 0 1-2.7 2.69",key:"1xk03u"}],["path",{d:"M13.9 21.82a9.94 9.94 0 0 1-3.8 0",key:"l7re25"}],["path",{d:"M6.4 20.29a9.95 9.95 0 0 1-2.69-2.7",key:"1v18p6"}],["path",{d:"M2.18 13.9a9.93 9.93 0 0 1 0-3.8",key:"xdo6bj"}],["path",{d:"M3.71 6.4a9.95 9.95 0 0 1 2.7-2.69",key:"1jjmaz"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]};i.node;let n=(0,t.default)(i);e.s(["CircleDotDashed",0,n],426391);let r={name:"circle-minus",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]],aliases:["minus-circle"]};r.node;let l=(0,t.default)(r);e.s(["CircleMinus",0,l],519647);let d={name:"flag-off",size:24,node:[["path",{d:"M16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1q158e"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M4 22V4",key:"1plyxx"}],["path",{d:"M7.656 2H8c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10.347",key:"xj1b71"}]]};d.node;let o=(0,t.default)(d);e.s(["FlagOff",0,o],710001);let c={name:"mail-check",size:24,node:[["path",{d:"M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8",key:"12jkf8"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"m16 19 2 2 4-4",key:"1b14m6"}]]};c.node;let u=(0,t.default)(c);e.s(["MailCheck",0,u],25799)},275043,446513,e=>{"use strict";var t=e.i(456420);let a={name:"circle-question-mark",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["help-circle","circle-help"]};a.node;let s=(0,t.default)(a);e.s(["default",0,s],275043);let i={name:"monitor",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]};i.node;let n=(0,t.default)(i);e.s(["Monitor",0,n],446513)},821048,e=>{"use strict";var t=e.i(456420);let a={name:"circle-slash",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]]};a.node;let s=(0,t.default)(a);e.s(["CircleSlash",0,s],821048)},316984,e=>{"use strict";var t=e.i(456420);let a={name:"circle-x",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-circle"]};a.node;let s=(0,t.default)(a);e.s(["CircleX",0,s],316984)},474544,e=>{"use strict";var t=e.i(456420);let a={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};a.node;let s=(0,t.default)(a);e.s(["Clock",0,s],474544)},671028,e=>{"use strict";var t=e.i(456420);let a={name:"gauge",size:24,node:[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]};a.node;let s=(0,t.default)(a);e.s(["Gauge",0,s],671028)},981658,e=>{"use strict";var t=e.i(456420);let a={name:"hourglass",size:24,node:[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]]};a.node;let s=(0,t.default)(a);e.s(["Hourglass",0,s],981658)},985512,e=>{"use strict";var t=e.i(456420);let a={name:"octagon-alert",size:24,node:[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]],aliases:["alert-octagon"]};a.node;let s=(0,t.default)(a);e.s(["OctagonAlert",0,s],985512)},457665,e=>{"use strict";var t=e.i(456420);let a={name:"power",size:24,node:[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]};a.node;let s=(0,t.default)(a);e.s(["Power",0,s],457665)},395925,485627,e=>{"use strict";var t=e.i(456420);let a={name:"rotate-ccw",size:24,node:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]};a.node;let s=(0,t.default)(a);e.s(["RotateCcw",0,s],395925);let i={name:"sailboat",size:24,node:[["path",{d:"M10 2v15",key:"1qf71f"}],["path",{d:"M7 22a4 4 0 0 1-4-4 1 1 0 0 1 1-1h16a1 1 0 0 1 1 1 4 4 0 0 1-4 4z",key:"1pxcvx"}],["path",{d:"M9.159 2.46a1 1 0 0 1 1.521-.193l9.977 8.98A1 1 0 0 1 20 13H4a1 1 0 0 1-.824-1.567z",key:"5oog16"}]]};i.node;let n=(0,t.default)(i);e.s(["Sailboat",0,n],485627)},566595,e=>{"use strict";var t=e.i(456420);let a={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};a.node;let s=(0,t.default)(a);e.s(["Search",0,s],566595)},819759,e=>{"use strict";var t=e.i(456420);let a={name:"square-pen",size:24,node:[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],aliases:["pen-box","edit","pen-square"]};a.node;let s=(0,t.default)(a);e.s(["SquarePen",0,s],819759)},466787,e=>{"use strict";var t=e.i(456420);let a={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};a.node;let s=(0,t.default)(a);e.s(["TriangleAlert",0,s],466787)},594831,e=>{"use strict";var t=e.i(456420);let a={name:"unplug",size:24,node:[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]]};a.node;let s=(0,t.default)(a);e.s(["Unplug",0,s],594831)},892870,e=>{"use strict";var t=e.i(456420);let a={name:"user-check",size:24,node:[["path",{d:"m16 11 2 2 4-4",key:"9rsbq5"}],["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]};a.node;let s=(0,t.default)(a);e.s(["UserCheck",0,s],892870)},298260,e=>{"use strict";var t=e.i(843476),a=e.i(965324);e.s(["Kbd",0,function({className:e,...s}){return(0,t.jsx)("kbd",{"data-slot":"kbd",className:(0,a.classNames)("inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-xs border border-border bg-muted px-1.25 font-sans text-micro font-medium text-muted-foreground max-sm:hidden",e),...s})}])},638919,e=>{"use strict";var t=e.i(843476),a=e.i(353753),s=e.i(225913),i=e.i(560964),n=e.i(965324),r=e.i(574296);let l=(0,s.cva)("fixed z-50 flex flex-col bg-popover text-body text-popover-foreground shadow-lg outline-none duration-(--duration-slow) ease-(--ease-standard) data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",{variants:{side:{right:"inset-y-0 right-0 h-full w-full border-l border-border sm:max-w-(--size-sheet) motion-safe:data-open:slide-in-from-right motion-safe:data-closed:slide-out-to-right",bottom:"inset-x-0 bottom-0 max-h-[90dvh] rounded-t-2xl border-t border-border px-4 pt-2 pb-[max(calc(var(--spacing)*4),env(safe-area-inset-bottom))] motion-safe:data-open:slide-in-from-bottom motion-safe:data-closed:slide-out-to-bottom"}},defaultVariants:{side:"right"}});e.s(["Sheet",0,function(e){return(0,t.jsx)(a.Dialog.Root,{"data-slot":"sheet",...e})},"SheetBody",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"sheet-body",className:(0,n.classNames)("min-h-0 flex-1 overflow-y-auto in-data-[side=right]:p-6",e),...a})},"SheetClose",0,function(e){return(0,t.jsx)(a.Dialog.Close,{"data-slot":"sheet-close",...e})},"SheetContent",0,function({className:e,children:s,side:d="right",...o}){return(0,t.jsxs)(a.Dialog.Portal,{children:[(0,t.jsx)(a.Dialog.Backdrop,{"data-slot":"sheet-overlay",className:"fixed inset-0 z-50 bg-overlay duration-(--duration-slow) data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0"}),(0,t.jsxs)(a.Dialog.Popup,{"data-slot":"sheet-content","data-side":d,className:(0,n.classNames)(l({side:d}),e),...o,children:["bottom"===d?(0,t.jsx)("div",{"aria-hidden":!0,className:"mx-auto mb-3 h-1 w-9 shrink-0 rounded-full bg-border"}):(0,t.jsx)(a.Dialog.Close,{"data-slot":"sheet-close",render:(0,t.jsx)(r.Button,{variant:"ghost",size:"sm",isIconOnly:!0,className:"absolute top-4 right-4","aria-label":"Close"}),children:(0,t.jsx)(i.XIcon,{})}),s]})]})},"SheetDescription",0,function({className:e,...s}){return(0,t.jsx)(a.Dialog.Description,{"data-slot":"sheet-description",className:(0,n.classNames)("text-meta text-muted-foreground",e),...s})},"SheetFooter",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"sheet-footer",className:(0,n.classNames)("flex flex-col-reverse gap-2 pt-3 in-data-[side=right]:flex-row in-data-[side=right]:justify-end in-data-[side=right]:border-t in-data-[side=right]:px-6 in-data-[side=right]:py-4",e),...a})},"SheetHeader",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"sheet-header",className:(0,n.classNames)("flex flex-col gap-0.5 in-data-[side=right]:border-b in-data-[side=right]:px-6 in-data-[side=right]:py-5 in-data-[side=right]:pr-14",e),...a})},"SheetTitle",0,function({className:e,...s}){return(0,t.jsx)(a.Dialog.Title,{"data-slot":"sheet-title",className:(0,n.classNames)("text-heading font-semibold text-foreground in-data-[side=bottom]:py-2 in-data-[side=bottom]:text-section",e),...s})},"SheetTrigger",0,function(e){return(0,t.jsx)(a.Dialog.Trigger,{"data-slot":"sheet-trigger",...e})}])},219321,e=>{"use strict";var t=e.i(843476),a=e.i(965324);e.s(["Skeleton",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"skeleton","aria-hidden":!0,className:(0,a.classNames)("animate-pulse rounded-sm bg-secondary [animation-duration:var(--duration-pulse)] motion-reduce:animate-none",e),...s})}])},67874,e=>{"use strict";var t=e.i(843476),a=e.i(965324);e.s(["EmptyState",0,function({title:e,description:s,icon:i,action:n,variant:r="page",className:l}){return"section"===r?(0,t.jsxs)("p",{"data-slot":"empty-state","data-variant":r,className:(0,a.classNames)("rounded-lg border border-border px-4 py-3 text-center text-meta text-muted-foreground",l),children:[e,s?(0,t.jsxs)(t.Fragment,{children:[" ",s]}):null]}):"no-results"===r?(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":r,className:(0,a.classNames)("flex flex-col items-center gap-2.5 rounded-lg border border-border bg-card px-4 py-6 text-center",l),children:[(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:e}),n]}):(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":r,className:(0,a.classNames)("flex flex-col items-center gap-3 rounded-lg border border-dashed border-border bg-card px-6 py-10 text-center",l),children:[i?(0,t.jsx)("span",{"aria-hidden":!0,className:"flex size-10 items-center justify-center rounded-lg border border-border bg-muted text-muted-foreground [&_svg]:size-(--size-icon-xl)",children:i}):null,(0,t.jsx)("h2",{className:"text-heading font-semibold text-foreground max-sm:text-heading-touch",children:e}),s?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:s}):null,n?(0,t.jsx)("div",{className:"mt-1 max-sm:w-full max-sm:[&>*]:w-full",children:n}):null]})}])},188393,e=>{"use strict";var t=e.i(843476),a=e.i(965324),s=e.i(219321);function i(e){return Array.from({length:e},(e,t)=>`row-${String(t)}`)}e.s(["LoadingSkeleton",0,function({variant:e,rows:n=4,label:r="Loading",className:l}){return(0,t.jsxs)("div",{role:"status","data-slot":"loading-skeleton","data-variant":e,className:(0,a.classNames)("w-full",l),children:[(0,t.jsx)("span",{className:"sr-only",children:r}),"table"===e?(0,t.jsxs)("div",{className:"overflow-hidden rounded-lg border border-border bg-card shadow-sm",children:[(0,t.jsx)("div",{className:"h-(--size-row-header) border-b border-border bg-muted"}),i(n).map(e=>(0,t.jsxs)("div",{className:"flex h-(--size-row) items-center gap-8 border-b border-border px-4 last:border-0",children:[(0,t.jsx)(s.Skeleton,{className:"h-2.5 w-24"}),(0,t.jsx)(s.Skeleton,{className:"h-5 w-16"}),(0,t.jsx)(s.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(s.Skeleton,{className:"h-2.5 w-28"})]},e))]}):null,"cards"===e?(0,t.jsx)("div",{className:"grid grid-cols-2 gap-3 lg:grid-cols-4",children:i(4).map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsx)(s.Skeleton,{className:"h-2.5 w-20"}),(0,t.jsx)(s.Skeleton,{className:"h-6 w-10"}),(0,t.jsx)(s.Skeleton,{className:"h-2.5 w-28"})]},e))}):null,"detail"===e?(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(s.Skeleton,{className:"h-7 w-48"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(s.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(s.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(s.Skeleton,{className:"h-16 w-full rounded-lg"})]}):null,"list"===e?(0,t.jsx)("div",{className:"overflow-hidden rounded-lg border border-border bg-card",children:i(n).map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-2.5 border-b border-border px-3.5 py-3 last:border-0",children:[(0,t.jsxs)("div",{className:"flex justify-between",children:[(0,t.jsx)(s.Skeleton,{className:"h-3 w-28"}),(0,t.jsx)(s.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(s.Skeleton,{className:"h-2.5 w-44"})]},e))}):null]})}])},78865,e=>{"use strict";var t=e.i(843476),a=e.i(749655),s=e.i(987255),i=e.i(876561),n=e.i(847211),r=e.i(422768),l=e.i(450092),d=e.i(536604),o=e.i(119002),c=e.i(832297),u=e.i(821048),h=e.i(474544),m=e.i(285595),p=e.i(152886),y=e.i(426391),g=e.i(519647),f=e.i(316984),x=e.i(710001),b=e.i(671028),k=e.i(981658),v=e.i(444594),w=e.i(611568),j=e.i(25799),N=e.i(985512),C=e.i(457665),S=e.i(395925),M=e.i(485627),z=e.i(466787),I=e.i(892870),R=e.i(456420);let q={name:"user-round-search",size:24,node:[["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M2 21a8 8 0 0 1 10.434-7.62",key:"1yezr2"}],["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["path",{d:"m22 22-1.9-1.9",key:"1e5ubv"}]]};q.node;let A=(0,R.default)(q);var D=e.i(965324),K=e.i(766390);let L={waiting:"border-tone-waiting-border bg-tone-waiting-bg text-tone-waiting-fg",active:"border-tone-active-border bg-tone-active-bg text-tone-active-fg",ok:"border-tone-ok-border bg-tone-ok-bg text-tone-ok-fg",attention:"border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg",ended:"border-tone-ended-border bg-tone-ended-bg text-tone-ended-fg"},P={awaitingCrew:{tone:"waiting",Icon:p.CircleDashed,label:"Awaiting crew"},crewed:{tone:"ok",Icon:I.UserCheck,label:"Crewed"},retired:{tone:"ended",Icon:i.Archive,label:"Retired"},pending:{tone:"waiting",Icon:k.Hourglass,label:"Pending"},received:{tone:"active",Icon:v.Inbox,label:"Received"},handed:{tone:"active",Icon:l.CircleArrowRight,label:"Handed (pulled)"},handedPushed:{tone:"active",Icon:l.CircleArrowRight,label:"Handed"},overdue:{tone:"attention",Icon:a.AlarmClock,label:"Overdue"},acknowledged:{tone:"ok",Icon:m.CircleCheck,label:"Acknowledged"},handled:{tone:"ok",Icon:d.CircleCheckBig,label:"Handled"},notHandled:{tone:"attention",Icon:r.CircleAlert,label:"Not handled"},undeliverable:{tone:"attention",Icon:f.CircleX,label:"Undeliverable"},dismissed:{tone:"ended",Icon:g.CircleMinus,label:"Dismissed"},abandoned:{tone:"ended",Icon:n.Ban,label:"Abandoned"},forming:{tone:"waiting",Icon:y.CircleDotDashed,label:"Forming"},sailing:{tone:"ok",Icon:M.Sailboat,label:"Sailing"},"standing-down":{tone:"active",Icon:s.Anchor,label:"Standing down"},disbanded:{tone:"ended",Icon:x.FlagOff,label:"Disbanded"},"at-limit":{tone:"waiting",Icon:b.Gauge,label:"At limit"},"over-limit":{tone:"attention",Icon:z.TriangleAlert,label:"Over limit"},needsCrew:{tone:"waiting",Icon:h.Clock,label:"Needs crew"},crewedByHand:{tone:"ok",Icon:I.UserCheck,label:"Crewed by hand"},crewing:{tone:"active",Icon:w.LoaderCircle,label:"Crewing"},running:{tone:"ok",Icon:c.CirclePlay,label:"Running"},restarting:{tone:"waiting",Icon:S.RotateCcw,label:"Restarting"},crashed:{tone:"attention",Icon:f.CircleX,label:"Crashed"},releasing:{tone:"active",Icon:C.Power,label:"Releasing"},stuck:{tone:"attention",Icon:N.OctagonAlert,label:"Stuck"},delivering:{tone:"ok",Icon:j.MailCheck,label:"Delivering"},noShipCanTake:{tone:"attention",Icon:u.CircleSlash,label:"No ship can take"},waitingForCrew:{tone:"waiting",Icon:A,label:"Waiting for crew"},stalledInFlight:{tone:"waiting",Icon:o.CirclePause,label:"Stalled in flight"}};e.s(["StatusBadge",0,function({status:e,className:a}){let{tone:s,Icon:i,label:n}=P[e];return(0,t.jsxs)(K.Badge,{variant:"outline","data-slot":"status-badge","data-status":e,className:(0,D.classNames)(L[s],"abandoned"===e?"border-dashed":void 0,a),children:[(0,t.jsx)(i,{"aria-hidden":!0}),n]})},"statusLabel",0,function(e){return P[e].label}],78865)},577880,485538,e=>{"use strict";var t=e.i(843476),a=e.i(566595),s=e.i(374368),i=e.i(574296),n=e.i(298260),r=e.i(704974),l=e.i(965324);function d({switcher:e,account:o,onSearch:c,searchLabel:u="Search or jump to",children:h,actions:m,className:p}){return(0,t.jsxs)("header",{"data-slot":"app-header",className:(0,l.classNames)("sticky top-0 z-30 flex h-(--size-header) shrink-0 items-center justify-between gap-4 border-b border-border bg-background px-6",p),children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[void 0===e?(0,t.jsx)("span",{"data-testid":"app-switcher-loading","aria-hidden":!0,className:"h-4 w-36 shrink-0 animate-pulse rounded bg-muted motion-reduce:animate-none"}):(0,t.jsx)(s.AppSwitcher,{switcher:e,layout:"full",className:"shrink-0"}),h]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-3",children:[m,c?(0,t.jsxs)(i.Button,{size:"sm",icon:(0,t.jsx)(a.Search,{"aria-hidden":!0}),"data-testid":"header-search",className:"w-60 justify-start font-normal text-muted-foreground max-lg:w-auto",onClick:c,children:[(0,t.jsx)("span",{className:"grow text-left max-lg:sr-only",children:u}),(0,t.jsx)(n.Kbd,{children:"⌘K"})]}):null,(0,t.jsx)(r.AvatarMenu,{...o})]})]})}var o=e.i(867927),c=e.i(819759),u=e.i(522016);let h={live:{label:"Live",dot:"bg-tone-ok-fg"},reconnecting:{label:"Reconnecting",dot:"bg-tone-waiting-fg"},offline:{label:"Offline",dot:"bg-tone-attention-fg"}};function m({state:e,className:a}){let{label:s,dot:i}=h[e];return(0,t.jsxs)("span",{"data-slot":"live-status","data-state":e,"aria-live":"polite",className:(0,l.classNames)("inline-flex items-center gap-1.5 text-meta text-muted-foreground",a),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:(0,l.classNames)("size-2 shrink-0 rounded-full",i)}),s]})}e.s(["Header",0,function({breadcrumb:e,parents:a=[],live:s,switcher:n,account:r,onCompose:l,onSearch:h}){return(0,t.jsxs)(d,{switcher:n,account:r,onSearch:h,searchLabel:"Search ships or jump to",className:"hidden sm:flex",actions:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m,{state:s}),l?(0,t.jsx)(i.Button,{size:"sm",icon:(0,t.jsx)(c.SquarePen,{"aria-hidden":!0}),"data-testid":"header-compose",onClick:l,children:"Compose"}):null]}),children:[(0,t.jsx)(o.ChevronRight,{"aria-hidden":!0,className:"size-3.5 shrink-0 text-muted-foreground"}),(0,t.jsx)("nav",{"aria-label":"Breadcrumb","data-testid":"header-breadcrumb",className:"min-w-0 text-body",children:(0,t.jsxs)("ol",{className:"flex min-w-0 items-center gap-1.5",children:[a.map(e=>(0,t.jsxs)("li",{className:"flex shrink-0 items-center gap-1.5",children:[(0,t.jsx)(u.default,{href:e.href,className:"text-muted-foreground hover:text-foreground hover:underline",children:e.label}),(0,t.jsx)(o.ChevronRight,{"aria-hidden":!0,className:"size-3.5 text-muted-foreground"})]},e.href)),(0,t.jsx)("li",{"aria-current":"page",className:"truncate font-medium text-foreground",children:e})]})})]})}],577880);var p=e.i(24071);e.s(["TopBar",0,function({title:e,live:n,actions:l,back:d,switcher:o,account:c,onSearch:h}){let y=h&&!d?h:void 0;return(0,t.jsxs)("header",{"data-slot":"top-bar","data-mode":d?"detail":"root",className:"sticky top-0 z-30 flex h-(--size-header) items-center gap-2.5 border-b border-border bg-background px-4 sm:hidden",children:[d?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(u.default,{href:d.href,className:"-ml-1.5 inline-flex h-(--size-control-touch) shrink-0 items-center gap-0.5 rounded-md pr-2 text-body-touch text-foreground focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon)",children:[(0,t.jsx)(p.ChevronLeft,{"aria-hidden":!0}),d.label]}),(0,t.jsx)("p",{className:"min-w-0 flex-1 truncate text-center text-body-touch font-semibold text-foreground",children:e})]}):o?(0,t.jsx)(s.AppSwitcher,{switcher:o,layout:"compact",className:"min-w-0"}):(0,t.jsx)("p",{className:"truncate px-1.5 text-title-touch font-semibold text-foreground",children:"Console"}),(0,t.jsx)(m,{state:n}),l||y||c&&!d?(0,t.jsxs)("div",{className:"ml-auto flex items-center gap-1",children:[y?(0,t.jsx)(i.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Search ships or jump to","data-testid":"top-bar-search",onClick:y,children:(0,t.jsx)(a.Search,{"aria-hidden":!0})}):null,l,c&&!d?(0,t.jsx)(r.AvatarMenuSheet,{...c}):null]}):null]})}],485538)},718423,e=>{"use strict";var t=e.i(912598),a=e.i(905861),s=e.i(271645),i=e.i(586413),n=e.i(123938),r=e.i(427702);let l=new Set(["FleetInitialised","ShipCommissioned","ShipClaimed","LeaseRevoked","CredentialRevoked","StartingPromptIssued","ShipRetired","DeliveryAcknowledged","DeliveryUndeliverable","ShipReported","CrewRequested","CrewRequestRemoved","CrewAssigned","CrewStatusChanged","CrewRequestExplained","CrewRequestGivenBack","LabelAssigned","LabelUnassigned","LabelRetired"]);function d(e,t){return e.pages.some(e=>e.items.some(e=>e.id===t))}let o=new Set(["LabelDefined","LabelValuesChanged","LabelRetired","LabelAssigned","LabelUnassigned","LabelDeleted"]),c=new Set(["DeliveryUndeliverable","DeliveryNotHandled","DeliveryDismissed"]),u=new Set(["NetworkRulesSet","NetworkRulesDraftSaved","NetworkRulesDraftDiscarded","NetworkRulesDeclared","BuiltInRuleChanged"]);e.s(["useLiveFleet",0,function(){let e=(0,r.useTRPC)(),h=(0,t.useQueryClient)(),[m,p]=(0,s.useState)(new Set),y=(0,n.useIsReopening)(),[g]=(0,s.useState)(()=>{let t,a,s,n;return function(e){var t;let a,s,n,{trpc:r,queryClient:h,reload:m}=e,p=[...r.fleet.list.infiniteQueryKey()],y=()=>h.getQueriesData({queryKey:p}).flatMap(([,e])=>void 0===e?[]:[e]),g=(t={readRow:e=>h.query({...r.fleet.listedShip.queryOptions({shipId:e}),staleTime:0}),writeRow:t=>{let a=y().some(e=>!d(e,t.id));h.setQueriesData({queryKey:p},e=>e&&function(e,t){if(d(e,t.id))return{...e,pages:e.pages.map(e=>{var a;return{...e,items:(a=e.items,a.map(e=>e.id===t.id?t:e))}})};let[a,...s]=e.pages;return void 0===a?e:{...e,pages:[{...a,items:[t,...a.items]},...s]}}(e,t)),a&&e.onPlacedFirst(t.id)}},a=new Set,s=new Set,n=async e=>{a.add(e);try{do s.delete(e),t.writeRow(await t.readRow(e));while(s.has(e))}catch{}finally{a.delete(e),s.delete(e)}},e=>{a.has(e)?s.add(e):n(e)}),f=()=>{m(r.fleet.stuckCount.queryKey()),m(r.fleet.stuckSummary.queryKey()),m(r.fleet.stuck.pathKey())};return e=>{var t,a,s,n,d;if("resync"===e.kind){m(r.fleet.pathKey()),m(i.INBOX_KEY);return}let{event:h}=e;for(let e of new Set([h.shipId,h.actorShipId]))null!==e&&(m(r.fleet.ship.queryKey({shipId:e})),m(r.fleet.shipTimeline.infiniteQueryKey({shipId:e})),m(r.fleet.shipWay.queryKey({shipId:e})));if(null!==h.messageId&&(m(r.fleet.shipMessages.pathKey()),m(r.fleet.shipWay.pathKey()),m(r.fleet.message.queryKey({messageId:h.messageId})),m(r.fleet.inbox.pathKey()),m(r.fleet.inboxCount.queryKey()),m(i.INBOX_KEY),f()),"DeliveryAcknowledged"===h.type&&m(r.fleet.acknowledged.queryKey()),t=h.type,c.has(t)&&m(r.fleet.needsAttention.pathKey()),a=h.type,o.has(a)&&m(r.fleet.labels.queryKey()),"NetworkRulesDeclared"===h.type&&m(r.fleet.declaredNetworkRules.queryKey()),("BuiltInRuleChanged"===(s=h.type)||"NetworkRulesSet"===s)&&m(r.fleet.builtInRules.queryKey()),n=h.type,u.has(n)&&(m(r.fleet.networkRules.queryKey()),m(r.fleet.networkRulesDraftChanges.queryKey()),m(r.fleet.explainReach.pathKey())),d=h.type,l.has(d)){if(y().length>0)for(let e of new Set([h.shipId,h.actorShipId]))null!==e&&g(e);m(r.fleet.shipCounts.pathKey()),f()}}}({trpc:e,queryClient:h,reload:(t=new Set,a=new Set,s=e=>h.invalidateQueries({queryKey:e,exact:!0},{cancelRefetch:!1}),n=async e=>{t.add(e.queryHash);let i=e.isBehind;try{for(await s(e.queryKey);i||a.delete(e.queryHash);)i=!1,await s(e.queryKey)}finally{t.delete(e.queryHash)}},e=>{for(let s of h.getQueryCache().findAll({queryKey:e}))t.has(s.queryHash)?a.add(s.queryHash):n({queryHash:s.queryHash,queryKey:s.queryKey,isBehind:"fetching"===s.state.fetchStatus})}),onPlacedFirst:e=>{p(t=>new Set([...t,e]))}})}),f=(0,a.useSubscription)(e.fleet.events.subscriptionOptions({lastEventId:null},{onData:({data:e})=>{g(e)}}));return{live:"connecting"===f.status&&y?"live":function(e){switch(e){case"pending":return"live";case"connecting":return"reconnecting";case"idle":case"error":return"offline"}}(f.status),placedFirstShipIds:m,error:f.error}}])},928459,415168,e=>{"use strict";var t=e.i(621482),a=e.i(954616),s=e.i(912598),i=e.i(731877),n=e.i(427702);function r(e){switch(e.kind){case"type":return`any ship of type ${e.type}`;case"meeting":return`every other participant of meeting ${e.meetingId}`}}function l(e){let t=String(e.attempts-1);return e.isPushed?`Handed ${t} times, never confirmed; fifth refused: undeliverable.`:`Handed (pulled) ${t} times, never acknowledged; fifth receive refused: undeliverable.`}e.s(["recipientGroupWords",0,r],415168);let d="Acknowledged, then its turn died; handed once more, and that turn died too: not handled.";function o(){let e=(0,n.useTRPC)(),t=(0,s.useQueryClient)();return()=>t.invalidateQueries({queryKey:e.fleet.pathKey()})}e.s(["DISMISSED_TOAST",0,{title:"Delivery dismissed",description:"It stays in the timelines as dismissed."},"attentionReason",0,function(e){switch(e.state){case"undeliverable":return l(e);case"notHandled":return null===e.reason?d:`${d} Its crew said: ${e.reason}.`}},"canResend",0,function(e){return!e.message.isPing},"deliveryWithId",0,function(e,t){return e?.find(e=>e.deliveryId===t)},"resentToast",0,function(e){return{title:"Message resent",description:`A new message went to ${function(e){let{recipient:t}=e.message;return"ship"===t.kind?t.ship.name:r(t)}(e)}. The original is dismissed.`}},"undeliverableReason",0,l,"useDismissDelivery",0,function(){let e=(0,n.useTRPC)(),t=o();return(0,a.useMutation)(e.fleet.dismiss.mutationOptions({onSuccess:t}))},"useNeedsAttention",0,function(e={}){let a=(0,n.useTRPC)();return(0,i.pagedListOf)((0,t.useInfiniteQuery)(a.fleet.needsAttention.infiniteQueryOptions({...e,limit:i.CONSOLE_PAGE_SIZE},{getNextPageParam:i.nextCursorOf})))},"useResendDelivery",0,function(){let e=(0,n.useTRPC)(),t=o();return(0,a.useMutation)(e.fleet.resend.mutationOptions({onSuccess:t}))}],928459)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,395530,e=>{"use strict";var t=e.i(271645),a=e.i(828918),s=e.i(838452),r=e.i(673553);e.s(["useCompositeItem",0,function(e={}){let{highlightItemOnHover:i,highlightedIndex:n,onHighlightedIndexChange:l}=(0,s.useCompositeRootContext)(),{ref:o,index:d}=(0,r.useCompositeListItem)(e),u=n===d,c=t.useRef(null),m=(0,a.useMergedRefs)(o,c);return{compositeProps:{tabIndex:u?0:-1,onFocus(){l(d)},onMouseMove(){let e=c.current;if(!i||!e)return;let t=e.hasAttribute("disabled")||"true"===e.ariaDisabled;u||t||e.focus()}},compositeRef:m,index:d}}])},31421,e=>{"use strict";var t=e.i(271645),a=e.i(146376),s=e.i(788015);e.s(["useAriaLabelledBy",0,function(e,r,i,n=!0,l){let[o,d]=t.useState(),u=(0,s.useBaseUiId)(l?`${l}-label`:void 0),c=e??r??o;return(0,a.useIsoLayoutEffect)(()=>{let t=e||r||!n?void 0:function(e,t){let a=function(e){if(!e)return;let t=e.parentElement;if(t&&"LABEL"===t.tagName)return t;let a=e.id;if(a){let t=e.nextElementSibling;if(t&&t.htmlFor===a)return t}let s=e.labels;return s&&s[0]}(e);if(a)return!a.id&&t&&(a.id=t),a.id||void 0}(i.current,u);o!==t&&d(t)}),c}])},24071,e=>{"use strict";var t=e.i(456420);let a={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};a.node;let s=(0,t.default)(a);e.s(["ChevronLeft",0,s],24071)},867927,e=>{"use strict";var t=e.i(456420);let a={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};a.node;let s=(0,t.default)(a);e.s(["ChevronRight",0,s],867927)},152886,e=>{"use strict";var t=e.i(456420);let a={name:"circle-dashed",size:24,node:[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]};a.node;let s=(0,t.default)(a);e.s(["CircleDashed",0,s],152886)},275043,446513,e=>{"use strict";var t=e.i(456420);let a={name:"circle-question-mark",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["help-circle","circle-help"]};a.node;let s=(0,t.default)(a);e.s(["default",0,s],275043);let r={name:"monitor",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]};r.node;let i=(0,t.default)(r);e.s(["Monitor",0,i],446513)},821048,e=>{"use strict";var t=e.i(456420);let a={name:"circle-slash",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]]};a.node;let s=(0,t.default)(a);e.s(["CircleSlash",0,s],821048)},508734,e=>{"use strict";var t=e.i(456420);let a={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};a.node;let s=(0,t.default)(a);e.s(["Copy",0,s],508734)},386247,e=>{"use strict";var t=e.i(456420);let a={name:"ellipsis",size:24,node:[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],aliases:["more-horizontal"]};a.node;let s=(0,t.default)(a);e.s(["Ellipsis",0,s],386247)},515281,e=>{"use strict";var t=e.i(456420);let a={name:"pencil",size:24,node:[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]};a.node;let s=(0,t.default)(a);e.s(["Pencil",0,s],515281)},566595,e=>{"use strict";var t=e.i(456420);let a={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};a.node;let s=(0,t.default)(a);e.s(["Search",0,s],566595)},730274,e=>{"use strict";var t=e.i(456420);let a={name:"send",size:24,node:[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]};a.node;let s=(0,t.default)(a);e.s(["Send",0,s],730274)},841220,e=>{"use strict";var t=e.i(456420);let a={name:"server",size:24,node:[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]};a.node;let s=(0,t.default)(a);e.s(["Server",0,s],841220)},819759,e=>{"use strict";var t=e.i(456420);let a={name:"square-pen",size:24,node:[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],aliases:["pen-box","edit","pen-square"]};a.node;let s=(0,t.default)(a);e.s(["SquarePen",0,s],819759)},298260,e=>{"use strict";var t=e.i(843476),a=e.i(965324);e.s(["Kbd",0,function({className:e,...s}){return(0,t.jsx)("kbd",{"data-slot":"kbd",className:(0,a.classNames)("inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-xs border border-border bg-muted px-1.25 font-sans text-micro font-medium text-muted-foreground max-sm:hidden",e),...s})}])},638919,e=>{"use strict";var t=e.i(843476),a=e.i(353753),s=e.i(225913),r=e.i(560964),i=e.i(965324),n=e.i(574296);let l=(0,s.cva)("fixed z-50 flex flex-col bg-popover text-body text-popover-foreground shadow-lg outline-none duration-(--duration-slow) ease-(--ease-standard) data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",{variants:{side:{right:"inset-y-0 right-0 h-full w-full border-l border-border sm:max-w-(--size-sheet) motion-safe:data-open:slide-in-from-right motion-safe:data-closed:slide-out-to-right",bottom:"inset-x-0 bottom-0 max-h-[90dvh] rounded-t-2xl border-t border-border px-4 pt-2 pb-[max(calc(var(--spacing)*4),env(safe-area-inset-bottom))] motion-safe:data-open:slide-in-from-bottom motion-safe:data-closed:slide-out-to-bottom"}},defaultVariants:{side:"right"}});e.s(["Sheet",0,function(e){return(0,t.jsx)(a.Dialog.Root,{"data-slot":"sheet",...e})},"SheetBody",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"sheet-body",className:(0,i.classNames)("min-h-0 flex-1 overflow-y-auto in-data-[side=right]:p-6",e),...a})},"SheetClose",0,function(e){return(0,t.jsx)(a.Dialog.Close,{"data-slot":"sheet-close",...e})},"SheetContent",0,function({className:e,children:s,side:o="right",...d}){return(0,t.jsxs)(a.Dialog.Portal,{children:[(0,t.jsx)(a.Dialog.Backdrop,{"data-slot":"sheet-overlay",className:"fixed inset-0 z-50 bg-overlay duration-(--duration-slow) data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0"}),(0,t.jsxs)(a.Dialog.Popup,{"data-slot":"sheet-content","data-side":o,className:(0,i.classNames)(l({side:o}),e),...d,children:["bottom"===o?(0,t.jsx)("div",{"aria-hidden":!0,className:"mx-auto mb-3 h-1 w-9 shrink-0 rounded-full bg-border"}):(0,t.jsx)(a.Dialog.Close,{"data-slot":"sheet-close",render:(0,t.jsx)(n.Button,{variant:"ghost",size:"sm",isIconOnly:!0,className:"absolute top-4 right-4","aria-label":"Close"}),children:(0,t.jsx)(r.XIcon,{})}),s]})]})},"SheetDescription",0,function({className:e,...s}){return(0,t.jsx)(a.Dialog.Description,{"data-slot":"sheet-description",className:(0,i.classNames)("text-meta text-muted-foreground",e),...s})},"SheetFooter",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"sheet-footer",className:(0,i.classNames)("flex flex-col-reverse gap-2 pt-3 in-data-[side=right]:flex-row in-data-[side=right]:justify-end in-data-[side=right]:border-t in-data-[side=right]:px-6 in-data-[side=right]:py-4",e),...a})},"SheetHeader",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"sheet-header",className:(0,i.classNames)("flex flex-col gap-0.5 in-data-[side=right]:border-b in-data-[side=right]:px-6 in-data-[side=right]:py-5 in-data-[side=right]:pr-14",e),...a})},"SheetTitle",0,function({className:e,...s}){return(0,t.jsx)(a.Dialog.Title,{"data-slot":"sheet-title",className:(0,i.classNames)("text-heading font-semibold text-foreground in-data-[side=bottom]:py-2 in-data-[side=bottom]:text-section",e),...s})},"SheetTrigger",0,function(e){return(0,t.jsx)(a.Dialog.Trigger,{"data-slot":"sheet-trigger",...e})}])},791727,e=>{"use strict";var t=e.i(843476),a=e.i(965324);e.s(["Label",0,function({className:e,htmlFor:s,...r}){return(0,t.jsx)("label",{"data-slot":"label",htmlFor:s,className:(0,a.classNames)("text-body font-medium text-foreground select-none",e),...r})}])},152678,e=>{"use strict";var t=e.i(843476);e.s([],506329),e.i(506329);var a=e.i(271645),s=e.i(828918),r=e.i(146376),i=e.i(502077),n=e.i(956789),l=e.i(675606),o=e.i(56434),d=e.i(474354),u=e.i(875812);let c={checked:e=>e?{"data-checked":""}:{"data-unchecked":""},...d.transitionStatusMapping,...u.fieldValidityMapping};var m=e.i(64350),h=e.i(788015),f=e.i(552245),x=e.i(540886),p=e.i(370359),g=e.i(348990),y=e.i(469690),b=e.i(157153),v=e.i(247778),j=e.i(31421),k=e.i(538489);let N=a.createContext(void 0);var w=e.i(186698),S=e.i(733332);let C=a.createContext(void 0),R=a.forwardRef(function(e,d){let{render:u,className:S,disabled:R=!1,readOnly:z=!1,required:I=!1,"aria-labelledby":q,value:K,inputRef:M,nativeButton:D=!1,id:E,style:L,...P}=e,A=a.useContext(N),{disabled:B,readOnly:T,required:O,form:F,checkedValue:H,touched:V=!1,validation:U,name:_,setCheckedValue:$=n.NOOP,setTouched:Q=n.NOOP,registerInputRef:W=n.NOOP}=A??{},{setTouched:G,setFilled:Y,state:X,disabled:J}=(0,y.useFieldRootContext)(),Z=(0,b.useFieldItemContext)(),{labelId:ee,getDescriptionProps:et}=(0,v.useLabelableContext)(),ea=J||Z.disabled||B||R,es=T||z,er=O||I,ei=A?H===K:""===K,en=a.useRef(null),el=a.useRef(null),eo=U?.registerInput,ed=a.useCallback(e=>eo?.(e,{controlRef:en,value:void 0}),[eo]),eu=(0,s.useMergedRefs)(M,el,W,ed);(0,r.useIsoLayoutEffect)(()=>{el.current?.checked&&Y(!0)},[Y]),(0,r.useIsoLayoutEffect)(()=>{if(el.current){if(ea&&ei)return void W(null);W(el.current)}},[ei,ea,W]);let ec=(0,h.useBaseUiId)(),em=(0,k.useLabelableId)({id:E}),eh=D?void 0:em,ef={role:"radio","aria-checked":ei,"aria-labelledby":(0,j.useAriaLabelledBy)(q,ee,el,!D,eh),[p.ACTIVE_COMPOSITE_ITEM]:ei?"":void 0,id:D?em:ec,onKeyDown(e){"Enter"===e.key&&e.preventDefault()},onClick(e){if(e.defaultPrevented||ea||es)return;e.preventDefault();let t=el.current;t&&(0,m.dispatchClickWithModifiers)(t,e)},onFocus(e){e.defaultPrevented||ea||es||!V||(el.current?.click(),Q(!1))}},{getButtonProps:ex,buttonRef:ep}=(0,x.useButton)({disabled:ea,native:D,composite:!1}),eg={type:"radio",ref:eu,form:F,id:eh,name:_,tabIndex:-1,style:_?i.visuallyHiddenInput:i.visuallyHidden,"aria-hidden":!0,...void 0!==K?{value:(0,w.serializeValue)(K)}:n.EMPTY_OBJECT,disabled:ea,checked:ei,required:er,readOnly:es,onChange(e){if(e.nativeEvent.defaultPrevented||ea||es||void 0===K)return;let t=(0,l.createChangeEventDetails)(o.REASONS.none,e.nativeEvent);$(K,t),t.isCanceled||G(!0)},onClick(e){e.stopPropagation()},onFocus(){en.current?.focus()}},ey=a.useMemo(()=>({...X,required:er,disabled:ea,readOnly:es,checked:ei}),[X,ea,es,ei,er]),eb=void 0!==A,ev=[d,en,ep],ej=[ef,P,ex,et,U?e=>U.getValidationProps(ea,e):n.EMPTY_OBJECT],ek=(0,f.useRenderElement)("span",e,{enabled:!eb,state:ey,ref:ev,props:ej,stateAttributesMapping:c});return(0,t.jsxs)(C.Provider,{value:ey,children:[eb?(0,t.jsx)(g.CompositeItem,{tag:"span",render:u,className:S,style:L,state:ey,refs:ev,props:ej,stateAttributesMapping:c}):ek,(0,t.jsx)("input",{...eg,suppressHydrationWarning:!0})]})});var z=e.i(137584),I=e.i(223910);let q=a.forwardRef(function(e,t){let{render:s,className:r,style:i,keepMounted:n=!1,...l}=e,o=function(){let e=a.useContext(C);if(void 0===e)throw Error((0,S.default)(52));return e}(),d=o.checked,{mounted:u,transitionStatus:m,setMounted:h}=(0,I.useTransitionStatus)(d),x={...o,transitionStatus:m},p=a.useRef(null),g=(0,f.useRenderElement)("span",e,{ref:[t,p],state:x,props:l,stateAttributesMapping:c});return((0,z.useOpenChangeComplete)({batch:!0,enabled:!d,open:d,ref:p,onComplete(){d||h(!1)}}),n||u)?g:null});e.s(["Indicator",0,q,"Root",0,R],66747);var K=e.i(66747),K=K,M=e.i(951437),D=e.i(667865),E=e.i(584446),L=e.i(673327),P=e.i(405934),A=e.i(381104),B=e.i(155627),T=e.i(387068),O=e.i(884708),F=e.i(606039);let H=[L.SHIFT],V=a.forwardRef(function(e,s){let{render:r,className:i,disabled:n,readOnly:l,required:o,onValueChange:d,value:c,defaultValue:m,form:f,name:x,inputRef:p,id:g,style:b,...j}=e,{setTouched:k,setFocused:w,validationMode:S,name:C,disabled:R,state:z,validation:I,setDirty:q,setFilled:K,validityData:L}=(0,y.useFieldRootContext)(),{labelId:V}=(0,v.useLabelableContext)(),{clearErrors:U,elementRef:_}=(0,O.useFormContext)(),$=(0,T.useFieldsetRootContext)(!0),Q=R||n,W=C??x,G=(0,h.useBaseUiId)(g),[Y,X]=(0,M.useControlled)({controlled:c,default:m,name:"RadioGroup",state:"value"}),[J,Z]=a.useState(!1),ee=(0,D.useStableCallback)((e,t)=>{d?.(e,t),t.isCanceled||X(e)}),et=I.getInputControl,ea=a.useMemo(()=>({get current(){return et()}}),[et]),es=a.useRef(null),er=a.useRef(null);function ei(e){let t;return p&&("function"==typeof p?t=p(e):p.current=e),es.current=e,t}let en=(0,D.useStableCallback)(e=>{if(!e||e.disabled)return;er.current||(er.current=e);let t=es.current,a=e.checked||null==t||t.disabled?ei(e):void 0;return()=>{er.current===e&&(er.current=null),es.current===e?a?(a(),es.current=null):ei(null):a?.()}}),el=(0,D.useStableCallback)(()=>{let e=_.current;if(!e)return Y??null;for(let t of I.registeredInputs.keys())if(t.checked&&(0,B.isEligibleInput)(t,e))return Y??null;return null});(0,A.useRegisterFieldControl)(ea,G,Y??null,el,!Q,x),(0,F.useValueChanged)(Y,()=>{U(W),q(Y!==L.initialValue),K(null!=Y),I.change(Y);let e=er.current;null==Y&&e&&!e.disabled&&ei(e)});let eo=V??$?.legendId,ed={...z,disabled:Q??!1,required:o??!1,readOnly:l??!1},eu=a.useMemo(()=>({checkedValue:Y,disabled:Q,form:f,validation:I,name:W,readOnly:l,registerInputRef:en,required:o,setCheckedValue:ee,setTouched:Z,touched:J}),[Y,Q,f,I,W,l,en,o,ee,Z,J]);return(0,t.jsx)(N.Provider,{value:eu,children:(0,t.jsx)(P.CompositeRoot,{render:r,className:i,style:b,state:ed,props:[{id:g,role:"radiogroup","aria-required":o||void 0,"aria-disabled":Q||void 0,"aria-readonly":l||void 0,"aria-labelledby":eo,onFocus(){w(!0)},onBlur(e){(0,E.contains)(e.currentTarget,e.relatedTarget)||(k(!0),w(!1),"onBlur"===S&&I.commit(Y))},onKeyDownCapture(e){e.key.startsWith("Arrow")&&(Z(!0),w(!0))}},j,e=>I.getValidationProps(Q??!1,e)],refs:[s],stateAttributesMapping:u.fieldValidityMapping,enableHomeAndEndKeys:!1,modifierKeys:H})})});var U=e.i(965324);e.s(["RadioGroup",0,function({className:e,...a}){return(0,t.jsx)(V,{"data-slot":"radio-group",className:(0,U.classNames)("flex flex-col gap-2",e),...a})},"RadioGroupItem",0,function({className:e,...a}){return(0,t.jsx)(K.Root,{"data-slot":"radio-group-item",className:(0,U.classNames)("inline-flex size-4 shrink-0 items-center justify-center rounded-full border border-input bg-background transition-colors duration-(--duration-fast) outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring data-checked:border-primary data-disabled:opacity-45",e),...a,children:(0,t.jsx)(K.Indicator,{"data-slot":"radio-group-indicator",className:"size-2 rounded-full bg-primary"})})}],152678)},219321,e=>{"use strict";var t=e.i(843476),a=e.i(965324);e.s(["Skeleton",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"skeleton","aria-hidden":!0,className:(0,a.classNames)("animate-pulse rounded-sm bg-secondary [animation-duration:var(--duration-pulse)] motion-reduce:animate-none",e),...s})}])},67874,e=>{"use strict";var t=e.i(843476),a=e.i(965324);e.s(["EmptyState",0,function({title:e,description:s,icon:r,action:i,variant:n="page",className:l}){return"section"===n?(0,t.jsxs)("p",{"data-slot":"empty-state","data-variant":n,className:(0,a.classNames)("rounded-lg border border-border px-4 py-3 text-center text-meta text-muted-foreground",l),children:[e,s?(0,t.jsxs)(t.Fragment,{children:[" ",s]}):null]}):"no-results"===n?(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":n,className:(0,a.classNames)("flex flex-col items-center gap-2.5 rounded-lg border border-border bg-card px-4 py-6 text-center",l),children:[(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:e}),i]}):(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":n,className:(0,a.classNames)("flex flex-col items-center gap-3 rounded-lg border border-dashed border-border bg-card px-6 py-10 text-center",l),children:[r?(0,t.jsx)("span",{"aria-hidden":!0,className:"flex size-10 items-center justify-center rounded-lg border border-border bg-muted text-muted-foreground [&_svg]:size-(--size-icon-xl)",children:r}):null,(0,t.jsx)("h2",{className:"text-heading font-semibold text-foreground max-sm:text-heading-touch",children:e}),s?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:s}):null,i?(0,t.jsx)("div",{className:"mt-1 max-sm:w-full max-sm:[&>*]:w-full",children:i}):null]})}])},298421,e=>{"use strict";var t=e.i(843476),a=e.i(456420);let s={name:"chevrons-down",size:24,node:[["path",{d:"m7 6 5 5 5-5",key:"1lc07p"}],["path",{d:"m7 13 5 5 5-5",key:"1d48rs"}]]};s.node;let r=(0,a.default)(s);var i=e.i(574296),n=e.i(817981);e.s(["LoadMore",0,function({what:e,isLoading:a,isFailed:s,onLoad:l,area:o}){return s?(0,t.jsx)(n.InlineError,{title:`Couldn’t load ${e}`,description:"What is shown stays as it is. Try again in a moment.",onRetry:l,className:"m-3"}):(0,t.jsx)("div",{className:"flex justify-center border-t border-border px-3.5 py-2.5",children:(0,t.jsx)(i.Button,{size:"sm",variant:"ghost",icon:(0,t.jsx)(r,{"aria-hidden":!0}),isLoading:a,onClick:l,"data-testid":`${o}-load-more`,children:a?`Loading ${e}...`:`Load ${e}`})})}],298421)},188393,e=>{"use strict";var t=e.i(843476),a=e.i(965324),s=e.i(219321);function r(e){return Array.from({length:e},(e,t)=>`row-${String(t)}`)}e.s(["LoadingSkeleton",0,function({variant:e,rows:i=4,label:n="Loading",className:l}){return(0,t.jsxs)("div",{role:"status","data-slot":"loading-skeleton","data-variant":e,className:(0,a.classNames)("w-full",l),children:[(0,t.jsx)("span",{className:"sr-only",children:n}),"table"===e?(0,t.jsxs)("div",{className:"overflow-hidden rounded-lg border border-border bg-card shadow-sm",children:[(0,t.jsx)("div",{className:"h-(--size-row-header) border-b border-border bg-muted"}),r(i).map(e=>(0,t.jsxs)("div",{className:"flex h-(--size-row) items-center gap-8 border-b border-border px-4 last:border-0",children:[(0,t.jsx)(s.Skeleton,{className:"h-2.5 w-24"}),(0,t.jsx)(s.Skeleton,{className:"h-5 w-16"}),(0,t.jsx)(s.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(s.Skeleton,{className:"h-2.5 w-28"})]},e))]}):null,"cards"===e?(0,t.jsx)("div",{className:"grid grid-cols-2 gap-3 lg:grid-cols-4",children:r(4).map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsx)(s.Skeleton,{className:"h-2.5 w-20"}),(0,t.jsx)(s.Skeleton,{className:"h-6 w-10"}),(0,t.jsx)(s.Skeleton,{className:"h-2.5 w-28"})]},e))}):null,"detail"===e?(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(s.Skeleton,{className:"h-7 w-48"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(s.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(s.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(s.Skeleton,{className:"h-16 w-full rounded-lg"})]}):null,"list"===e?(0,t.jsx)("div",{className:"overflow-hidden rounded-lg border border-border bg-card",children:r(i).map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-2.5 border-b border-border px-3.5 py-3 last:border-0",children:[(0,t.jsxs)("div",{className:"flex justify-between",children:[(0,t.jsx)(s.Skeleton,{className:"h-3 w-28"}),(0,t.jsx)(s.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(s.Skeleton,{className:"h-2.5 w-44"})]},e))}):null]})}])},539448,e=>{"use strict";var t=e.i(843476),a=e.i(225913),s=e.i(522016),r=e.i(965324);let i=(0,a.cva)("min-w-0 truncate font-sans font-medium",{variants:{size:{body:"text-body text-foreground",meta:"text-meta text-muted-foreground",title:"text-title font-semibold tracking-tight text-foreground max-sm:text-title-touch"}},defaultVariants:{size:"body"}});e.s(["ShipName",0,function({name:e,shipId:a,size:n,isSuffixShown:l=!1,isOperator:o=!1,href:d,className:u}){let c=d?(0,t.jsx)(s.default,{href:d,className:(0,r.classNames)(i({size:n}),"rounded-xs underline-offset-3 hover:underline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring"),title:e,children:e}):(0,t.jsx)("span",{className:i({size:n}),title:e,children:e});return(0,t.jsxs)("span",{"data-slot":"ship-name",className:(0,r.classNames)("inline-flex min-w-0 items-baseline gap-1.5",u),children:[c,o?(0,t.jsx)("span",{className:"shrink-0 font-normal text-muted-foreground",children:"(you)"}):null,l&&!o?(0,t.jsxs)("span",{className:"shrink-0 font-mono text-id text-muted-foreground uppercase",children:[(0,t.jsx)("span",{"aria-hidden":!0,children:"· "}),a.slice(-4)]}):null]})}])},577880,485538,e=>{"use strict";var t=e.i(843476),a=e.i(566595),s=e.i(374368),r=e.i(574296),i=e.i(298260),n=e.i(704974),l=e.i(965324);function o({switcher:e,account:d,onSearch:u,searchLabel:c="Search or jump to",children:m,actions:h,className:f}){return(0,t.jsxs)("header",{"data-slot":"app-header",className:(0,l.classNames)("sticky top-0 z-30 flex h-(--size-header) shrink-0 items-center justify-between gap-4 border-b border-border bg-background px-6",f),children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[void 0===e?(0,t.jsx)("span",{"data-testid":"app-switcher-loading","aria-hidden":!0,className:"h-4 w-36 shrink-0 animate-pulse rounded bg-muted motion-reduce:animate-none"}):(0,t.jsx)(s.AppSwitcher,{switcher:e,layout:"full",className:"shrink-0"}),m]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-3",children:[h,u?(0,t.jsxs)(r.Button,{size:"sm",icon:(0,t.jsx)(a.Search,{"aria-hidden":!0}),"data-testid":"header-search",className:"w-60 justify-start font-normal text-muted-foreground max-lg:w-auto",onClick:u,children:[(0,t.jsx)("span",{className:"grow text-left max-lg:sr-only",children:c}),(0,t.jsx)(i.Kbd,{children:"⌘K"})]}):null,(0,t.jsx)(n.AvatarMenu,{...d})]})]})}var d=e.i(867927),u=e.i(819759),c=e.i(522016);let m={live:{label:"Live",dot:"bg-tone-ok-fg"},reconnecting:{label:"Reconnecting",dot:"bg-tone-waiting-fg"},offline:{label:"Offline",dot:"bg-tone-attention-fg"}};function h({state:e,className:a}){let{label:s,dot:r}=m[e];return(0,t.jsxs)("span",{"data-slot":"live-status","data-state":e,"aria-live":"polite",className:(0,l.classNames)("inline-flex items-center gap-1.5 text-meta text-muted-foreground",a),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:(0,l.classNames)("size-2 shrink-0 rounded-full",r)}),s]})}e.s(["Header",0,function({breadcrumb:e,parents:a=[],live:s,switcher:i,account:n,onCompose:l,onSearch:m}){return(0,t.jsxs)(o,{switcher:i,account:n,onSearch:m,searchLabel:"Search ships or jump to",className:"hidden sm:flex",actions:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h,{state:s}),l?(0,t.jsx)(r.Button,{size:"sm",icon:(0,t.jsx)(u.SquarePen,{"aria-hidden":!0}),"data-testid":"header-compose",onClick:l,children:"Compose"}):null]}),children:[(0,t.jsx)(d.ChevronRight,{"aria-hidden":!0,className:"size-3.5 shrink-0 text-muted-foreground"}),(0,t.jsx)("nav",{"aria-label":"Breadcrumb","data-testid":"header-breadcrumb",className:"min-w-0 text-body",children:(0,t.jsxs)("ol",{className:"flex min-w-0 items-center gap-1.5",children:[a.map(e=>(0,t.jsxs)("li",{className:"flex shrink-0 items-center gap-1.5",children:[(0,t.jsx)(c.default,{href:e.href,className:"text-muted-foreground hover:text-foreground hover:underline",children:e.label}),(0,t.jsx)(d.ChevronRight,{"aria-hidden":!0,className:"size-3.5 text-muted-foreground"})]},e.href)),(0,t.jsx)("li",{"aria-current":"page",className:"truncate font-medium text-foreground",children:e})]})})]})}],577880);var f=e.i(24071);e.s(["TopBar",0,function({title:e,live:i,actions:l,back:o,switcher:d,account:u,onSearch:m}){let x=m&&!o?m:void 0;return(0,t.jsxs)("header",{"data-slot":"top-bar","data-mode":o?"detail":"root",className:"sticky top-0 z-30 flex h-(--size-header) items-center gap-2.5 border-b border-border bg-background px-4 sm:hidden",children:[o?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(c.default,{href:o.href,className:"-ml-1.5 inline-flex h-(--size-control-touch) shrink-0 items-center gap-0.5 rounded-md pr-2 text-body-touch text-foreground focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon)",children:[(0,t.jsx)(f.ChevronLeft,{"aria-hidden":!0}),o.label]}),(0,t.jsx)("p",{className:"min-w-0 flex-1 truncate text-center text-body-touch font-semibold text-foreground",children:e})]}):d?(0,t.jsx)(s.AppSwitcher,{switcher:d,layout:"compact",className:"min-w-0"}):(0,t.jsx)("p",{className:"truncate px-1.5 text-title-touch font-semibold text-foreground",children:"Console"}),(0,t.jsx)(h,{state:i}),l||x||u&&!o?(0,t.jsxs)("div",{className:"ml-auto flex items-center gap-1",children:[x?(0,t.jsx)(r.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Search ships or jump to","data-testid":"top-bar-search",onClick:x,children:(0,t.jsx)(a.Search,{"aria-hidden":!0})}):null,l,u&&!o?(0,t.jsx)(n.AvatarMenuSheet,{...u}):null]}):null]})}],485538)},509892,e=>{"use strict";var t=e.i(843476),a=e.i(819759),s=e.i(574296),r=e.i(577880),i=e.i(485538);e.s(["ListPage",0,function({title:e,description:n,titleMeta:l,primaryAction:o,toolbar:d,live:u,onCompose:c,onSearch:m,switcher:h,account:f,banner:x,phoneTopBar:p,children:g}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Header,{breadcrumb:e,live:u,switcher:h,account:f,onCompose:c,onSearch:m}),x,p??(0,t.jsx)(i.TopBar,{title:e,live:u,switcher:h,account:f,onSearch:m,actions:c?(0,t.jsx)(s.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Compose","data-testid":"top-bar-compose",onClick:c,children:(0,t.jsx)(a.SquarePen,{"aria-hidden":!0})}):void 0}),(0,t.jsxs)("main",{className:"flex grow flex-col gap-5 px-8 py-6 max-sm:gap-3.5 max-sm:px-4 max-sm:pt-3.5 max-sm:pb-[calc(var(--size-tabbar)+var(--spacing)*4)]",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4 max-sm:gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-1",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1",children:[(0,t.jsx)("h1",{className:"text-title font-semibold tracking-tight text-foreground max-sm:text-title-touch",children:e}),l]}),n?(0,t.jsx)("p",{className:"text-meta text-muted-foreground max-sm:text-body-touch",children:n}):null]}),o?(0,t.jsx)("div",{className:"shrink-0 max-sm:w-full max-sm:[&>*]:w-full",children:o}):null]}),d,g]})]})}])},718423,e=>{"use strict";var t=e.i(912598),a=e.i(905861),s=e.i(271645),r=e.i(586413),i=e.i(123938),n=e.i(427702);let l=new Set(["FleetInitialised","ShipCommissioned","ShipClaimed","LeaseRevoked","CredentialRevoked","StartingPromptIssued","ShipRetired","DeliveryAcknowledged","DeliveryUndeliverable","ShipReported","CrewRequested","CrewRequestRemoved","CrewAssigned","CrewStatusChanged","CrewRequestExplained","CrewRequestGivenBack","LabelAssigned","LabelUnassigned","LabelRetired"]);function o(e,t){return e.pages.some(e=>e.items.some(e=>e.id===t))}let d=new Set(["LabelDefined","LabelValuesChanged","LabelRetired","LabelAssigned","LabelUnassigned","LabelDeleted"]),u=new Set(["DeliveryUndeliverable","DeliveryNotHandled","DeliveryDismissed"]),c=new Set(["NetworkRulesSet","NetworkRulesDraftSaved","NetworkRulesDraftDiscarded","NetworkRulesDeclared","BuiltInRuleChanged"]);e.s(["useLiveFleet",0,function(){let e=(0,n.useTRPC)(),m=(0,t.useQueryClient)(),[h,f]=(0,s.useState)(new Set),x=(0,i.useIsReopening)(),[p]=(0,s.useState)(()=>{let t,a,s,i;return function(e){var t;let a,s,i,{trpc:n,queryClient:m,reload:h}=e,f=[...n.fleet.list.infiniteQueryKey()],x=()=>m.getQueriesData({queryKey:f}).flatMap(([,e])=>void 0===e?[]:[e]),p=(t={readRow:e=>m.query({...n.fleet.listedShip.queryOptions({shipId:e}),staleTime:0}),writeRow:t=>{let a=x().some(e=>!o(e,t.id));m.setQueriesData({queryKey:f},e=>e&&function(e,t){if(o(e,t.id))return{...e,pages:e.pages.map(e=>{var a;return{...e,items:(a=e.items,a.map(e=>e.id===t.id?t:e))}})};let[a,...s]=e.pages;return void 0===a?e:{...e,pages:[{...a,items:[t,...a.items]},...s]}}(e,t)),a&&e.onPlacedFirst(t.id)}},a=new Set,s=new Set,i=async e=>{a.add(e);try{do s.delete(e),t.writeRow(await t.readRow(e));while(s.has(e))}catch{}finally{a.delete(e),s.delete(e)}},e=>{a.has(e)?s.add(e):i(e)}),g=()=>{h(n.fleet.stuckCount.queryKey()),h(n.fleet.stuckSummary.queryKey()),h(n.fleet.stuck.pathKey())};return e=>{var t,a,s,i,o;if("resync"===e.kind){h(n.fleet.pathKey()),h(r.INBOX_KEY);return}let{event:m}=e;for(let e of new Set([m.shipId,m.actorShipId]))null!==e&&(h(n.fleet.ship.queryKey({shipId:e})),h(n.fleet.shipTimeline.infiniteQueryKey({shipId:e})),h(n.fleet.shipWay.queryKey({shipId:e})));if(null!==m.messageId&&(h(n.fleet.shipMessages.pathKey()),h(n.fleet.shipWay.pathKey()),h(n.fleet.message.queryKey({messageId:m.messageId})),h(n.fleet.inbox.pathKey()),h(n.fleet.inboxCount.queryKey()),h(r.INBOX_KEY),g()),"DeliveryAcknowledged"===m.type&&h(n.fleet.acknowledged.queryKey()),t=m.type,u.has(t)&&h(n.fleet.needsAttention.pathKey()),a=m.type,d.has(a)&&h(n.fleet.labels.queryKey()),"NetworkRulesDeclared"===m.type&&h(n.fleet.declaredNetworkRules.queryKey()),("BuiltInRuleChanged"===(s=m.type)||"NetworkRulesSet"===s)&&h(n.fleet.builtInRules.queryKey()),i=m.type,c.has(i)&&(h(n.fleet.networkRules.queryKey()),h(n.fleet.networkRulesDraftChanges.queryKey()),h(n.fleet.explainReach.pathKey())),o=m.type,l.has(o)){if(x().length>0)for(let e of new Set([m.shipId,m.actorShipId]))null!==e&&p(e);h(n.fleet.shipCounts.pathKey()),g()}}}({trpc:e,queryClient:m,reload:(t=new Set,a=new Set,s=e=>m.invalidateQueries({queryKey:e,exact:!0},{cancelRefetch:!1}),i=async e=>{t.add(e.queryHash);let r=e.isBehind;try{for(await s(e.queryKey);r||a.delete(e.queryHash);)r=!1,await s(e.queryKey)}finally{t.delete(e.queryHash)}},e=>{for(let s of m.getQueryCache().findAll({queryKey:e}))t.has(s.queryHash)?a.add(s.queryHash):i({queryHash:s.queryHash,queryKey:s.queryKey,isBehind:"fetching"===s.state.fetchStatus})}),onPlacedFirst:e=>{f(t=>new Set([...t,e]))}})}),g=(0,a.useSubscription)(e.fleet.events.subscriptionOptions({lastEventId:null},{onData:({data:e})=>{p(e)}}));return{live:"connecting"===g.status&&x?"live":function(e){switch(e){case"pending":return"live";case"connecting":return"reconnecting";case"idle":case"error":return"offline"}}(g.status),placedFirstShipIds:h,error:g.error}}])},974470,631071,e=>{"use strict";var t=e.i(271645);let a=/Mac|iPhone|iPad|iPod/;function s(e){return"mac"===e?"⌘↵":"Ctrl ↵"}function r(e){return"Enter"===e.key&&(e.metaKey||e.ctrlKey)&&!e.isComposing}function i(){return()=>void 0}function n(){var e;return e=navigator.userAgent,a.test(e)?"mac":"other"}function l(){return null}e.s(["isSendShortcut",0,r,"sendShortcutAria",0,function(e){return"mac"===e?"Meta+Enter":"Control+Enter"},"sendShortcutKeys",0,s,"submitOnSendShortcut",0,function(e){let{key:t,metaKey:a,ctrlKey:s}=e;r({key:t,metaKey:a,ctrlKey:s,isComposing:e.nativeEvent.isComposing})&&(e.preventDefault(),e.currentTarget.form?.requestSubmit())},"useShortcutPlatform",0,function(){return(0,t.useSyncExternalStore)(i,n,l)}],974470);var o=e.i(843476),d=e.i(298260);e.s(["SendShortcutHint",0,function({platform:e}){return(0,o.jsx)(d.Kbd,{"aria-hidden":!0,"data-testid":"send-shortcut-hint",className:"border-primary-foreground/25 bg-primary-foreground/10 text-primary-foreground",children:s(e)})}],631071)},890135,e=>{"use strict";e.s(["OPERATOR_NAME",0,"argo","capitalised",0,function(e){return e.charAt(0).toUpperCase()+e.slice(1)},"counted",0,function(e,t){return`${String(e)} ${1===e?t.one:t.many}`},"ship",0,function(e){return{kind:"ship",party:e}},"text",0,function(e){return{kind:"text",text:e}}])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,749655,987255,450092,536604,e=>{"use strict";var t=e.i(456420);let a={name:"alarm-clock",size:24,node:[["circle",{cx:"12",cy:"13",r:"8",key:"3y4lt7"}],["path",{d:"M12 9v4l2 2",key:"1c63tq"}],["path",{d:"M5 3 2 6",key:"18tl5t"}],["path",{d:"m22 6-3-3",key:"1opdir"}],["path",{d:"M6.38 18.7 4 21",key:"17xu3x"}],["path",{d:"M17.64 18.67 20 21",key:"kv2oe2"}]]};a.node;let i=(0,t.default)(a);e.s(["AlarmClock",0,i],749655);let n={name:"anchor",size:24,node:[["path",{d:"M12 6v16",key:"nqf5sj"}],["path",{d:"m19 13 2-1a9 9 0 0 1-18 0l2 1",key:"y7qv08"}],["path",{d:"M9 11h6",key:"1fldmi"}],["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}]]};n.node;let l=(0,t.default)(n);e.s(["Anchor",0,l],987255);let r={name:"circle-arrow-right",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m12 16 4-4-4-4",key:"1i9zcv"}],["path",{d:"M8 12h8",key:"1wcyev"}]],aliases:["arrow-right-circle"]};r.node;let s=(0,t.default)(r);e.s(["CircleArrowRight",0,s],450092);let o={name:"circle-check-big",size:24,node:[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],aliases:["check-circle"]};o.node;let d=(0,t.default)(o);e.s(["CircleCheckBig",0,d],536604)},437750,e=>{"use strict";var t=e.i(456420);let a={name:"app-window",size:24,node:[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]]};a.node;let i=(0,t.default)(a);e.s(["AppWindow",0,i],437750)},876561,e=>{"use strict";var t=e.i(456420);let a={name:"archive",size:24,node:[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]};a.node;let i=(0,t.default)(a);e.s(["Archive",0,i],876561)},847211,e=>{"use strict";var t=e.i(456420);let a={name:"ban",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]]};a.node;let i=(0,t.default)(a);e.s(["Ban",0,i],847211)},271567,e=>{"use strict";var t=e.i(456420);let a={name:"bot",size:24,node:[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]};a.node;let i=(0,t.default)(a);e.s(["Bot",0,i],271567)},152886,e=>{"use strict";var t=e.i(456420);let a={name:"circle-dashed",size:24,node:[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]};a.node;let i=(0,t.default)(a);e.s(["CircleDashed",0,i],152886)},119002,e=>{"use strict";var t=e.i(456420);let a={name:"circle-pause",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]],aliases:["pause-circle"]};a.node;let i=(0,t.default)(a);e.s(["CirclePause",0,i],119002)},832297,426391,519647,710001,25799,e=>{"use strict";var t=e.i(456420);let a={name:"circle-play",size:24,node:[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],aliases:["play-circle"]};a.node;let i=(0,t.default)(a);e.s(["CirclePlay",0,i],832297);let n={name:"circle-dot-dashed",size:24,node:[["path",{d:"M10.1 2.18a9.93 9.93 0 0 1 3.8 0",key:"1qdqn0"}],["path",{d:"M17.6 3.71a9.95 9.95 0 0 1 2.69 2.7",key:"1bq7p6"}],["path",{d:"M21.82 10.1a9.93 9.93 0 0 1 0 3.8",key:"1rlaqf"}],["path",{d:"M20.29 17.6a9.95 9.95 0 0 1-2.7 2.69",key:"1xk03u"}],["path",{d:"M13.9 21.82a9.94 9.94 0 0 1-3.8 0",key:"l7re25"}],["path",{d:"M6.4 20.29a9.95 9.95 0 0 1-2.69-2.7",key:"1v18p6"}],["path",{d:"M2.18 13.9a9.93 9.93 0 0 1 0-3.8",key:"xdo6bj"}],["path",{d:"M3.71 6.4a9.95 9.95 0 0 1 2.7-2.69",key:"1jjmaz"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]};n.node;let l=(0,t.default)(n);e.s(["CircleDotDashed",0,l],426391);let r={name:"circle-minus",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]],aliases:["minus-circle"]};r.node;let s=(0,t.default)(r);e.s(["CircleMinus",0,s],519647);let o={name:"flag-off",size:24,node:[["path",{d:"M16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1q158e"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M4 22V4",key:"1plyxx"}],["path",{d:"M7.656 2H8c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10.347",key:"xj1b71"}]]};o.node;let d=(0,t.default)(o);e.s(["FlagOff",0,d],710001);let c={name:"mail-check",size:24,node:[["path",{d:"M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8",key:"12jkf8"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"m16 19 2 2 4-4",key:"1b14m6"}]]};c.node;let u=(0,t.default)(c);e.s(["MailCheck",0,u],25799)},821048,e=>{"use strict";var t=e.i(456420);let a={name:"circle-slash",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]]};a.node;let i=(0,t.default)(a);e.s(["CircleSlash",0,i],821048)},316984,e=>{"use strict";var t=e.i(456420);let a={name:"circle-x",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-circle"]};a.node;let i=(0,t.default)(a);e.s(["CircleX",0,i],316984)},474544,e=>{"use strict";var t=e.i(456420);let a={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};a.node;let i=(0,t.default)(a);e.s(["Clock",0,i],474544)},386247,e=>{"use strict";var t=e.i(456420);let a={name:"ellipsis",size:24,node:[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],aliases:["more-horizontal"]};a.node;let i=(0,t.default)(a);e.s(["Ellipsis",0,i],386247)},831458,e=>{"use strict";var t=e.i(456420);let a={name:"flag",size:24,node:[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]]};a.node;let i=(0,t.default)(a);e.s(["Flag",0,i],831458)},671028,e=>{"use strict";var t=e.i(456420);let a={name:"gauge",size:24,node:[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]};a.node;let i=(0,t.default)(a);e.s(["Gauge",0,i],671028)},981658,e=>{"use strict";var t=e.i(456420);let a={name:"hourglass",size:24,node:[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]]};a.node;let i=(0,t.default)(a);e.s(["Hourglass",0,i],981658)},985512,e=>{"use strict";var t=e.i(456420);let a={name:"octagon-alert",size:24,node:[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]],aliases:["alert-octagon"]};a.node;let i=(0,t.default)(a);e.s(["OctagonAlert",0,i],985512)},911147,e=>{"use strict";var t=e.i(456420);let a={name:"octagon-pause",size:24,node:[["path",{d:"M10 15V9",key:"1lckn7"}],["path",{d:"M14 15V9",key:"1muqhk"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}]],aliases:["pause-octagon"]};a.node;let i=(0,t.default)(a);e.s(["OctagonPause",0,i],911147)},457665,e=>{"use strict";var t=e.i(456420);let a={name:"power",size:24,node:[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]};a.node;let i=(0,t.default)(a);e.s(["Power",0,i],457665)},395925,485627,e=>{"use strict";var t=e.i(456420);let a={name:"rotate-ccw",size:24,node:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]};a.node;let i=(0,t.default)(a);e.s(["RotateCcw",0,i],395925);let n={name:"sailboat",size:24,node:[["path",{d:"M10 2v15",key:"1qf71f"}],["path",{d:"M7 22a4 4 0 0 1-4-4 1 1 0 0 1 1-1h16a1 1 0 0 1 1 1 4 4 0 0 1-4 4z",key:"1pxcvx"}],["path",{d:"M9.159 2.46a1 1 0 0 1 1.521-.193l9.977 8.98A1 1 0 0 1 20 13H4a1 1 0 0 1-.824-1.567z",key:"5oog16"}]]};n.node;let l=(0,t.default)(n);e.s(["Sailboat",0,l],485627)},841220,e=>{"use strict";var t=e.i(456420);let a={name:"server",size:24,node:[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]};a.node;let i=(0,t.default)(a);e.s(["Server",0,i],841220)},383035,e=>{"use strict";var t=e.i(456420);let a={name:"square-terminal",size:24,node:[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],aliases:["terminal-square"]};a.node;let i=(0,t.default)(a);e.s(["SquareTerminal",0,i],383035)},466787,e=>{"use strict";var t=e.i(456420);let a={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};a.node;let i=(0,t.default)(a);e.s(["TriangleAlert",0,i],466787)},594831,e=>{"use strict";var t=e.i(456420);let a={name:"unplug",size:24,node:[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]]};a.node;let i=(0,t.default)(a);e.s(["Unplug",0,i],594831)},892870,e=>{"use strict";var t=e.i(456420);let a={name:"user-check",size:24,node:[["path",{d:"m16 11 2 2 4-4",key:"9rsbq5"}],["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]};a.node;let i=(0,t.default)(a);e.s(["UserCheck",0,i],892870)},149319,e=>{"use strict";var t=e.i(456420);let a={name:"user-minus",size:24,node:[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]};a.node;let i=(0,t.default)(a);e.s(["UserMinus",0,i],149319)},357443,e=>{"use strict";var t=e.i(456420);let a={name:"user-plus",size:24,node:[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]};a.node;let i=(0,t.default)(a);e.s(["UserPlus",0,i],357443)},424010,e=>{"use strict";var t=e.i(843476);e.s([],558762),e.i(558762);var a=e.i(366250),i=e.i(402820),n=e.i(156736),l=e.i(209793),r=e.i(784324),s=e.i(264951),o=e.i(77173);let d=e.i(313488).DialogTrigger;var c=e.i(974217),u=e.i(325326);class h extends u.DialogHandle{}e.s(["Backdrop",()=>i.DialogBackdrop,"Close",()=>n.DialogClose,"Description",()=>l.DialogDescription,"Handle",0,h,"Popup",()=>r.DialogPopup,"Portal",()=>s.DialogPortal,"Root",0,function(e){return(0,a.useRenderDialogRoot)("alert-dialog",e)},"Title",()=>o.DialogTitle,"Trigger",0,d,"Viewport",()=>c.DialogViewport,"createHandle",0,function(){return new h}],734604);var p=e.i(734604),p=p,g=e.i(965324),y=e.i(746675);e.s(["AlertDialog",0,function(e){return(0,t.jsx)(p.Root,{"data-slot":"alert-dialog",...e})},"AlertDialogClose",0,function(e){return(0,t.jsx)(p.Close,{"data-slot":"alert-dialog-close",...e})},"AlertDialogContent",0,function({className:e,size:a,children:i,...n}){return(0,t.jsxs)(p.Portal,{children:[(0,t.jsx)(p.Backdrop,{"data-slot":"alert-dialog-overlay",className:y.dialogSurface.overlay}),(0,t.jsx)(p.Popup,{"data-slot":"alert-dialog-content",className:(0,g.classNames)(y.dialogSurface.popup({size:a}),e),...n,children:i})]})},"AlertDialogDescription",0,function({className:e,...a}){return(0,t.jsx)(p.Description,{"data-slot":"alert-dialog-description",className:(0,g.classNames)(y.dialogSurface.description,e),...a})},"AlertDialogFooter",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,g.classNames)(y.dialogSurface.footer,e),...a})},"AlertDialogHeader",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,g.classNames)(y.dialogSurface.header,e),...a})},"AlertDialogTitle",0,function({className:e,...a}){return(0,t.jsx)(p.Title,{"data-slot":"alert-dialog-title",className:(0,g.classNames)(y.dialogSurface.title,e),...a})}],424010)},763481,e=>{"use strict";var t=e.i(843476),a=e.i(437750),i=e.i(271567),n=e.i(456420);let l={name:"cloud",size:24,node:[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]};l.node;let r=(0,n.default)(l),s={name:"laptop",size:24,node:[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]]};s.node;let o=(0,n.default)(s),d={name:"map-pin",size:24,node:[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]};d.node;let c=(0,n.default)(d),u={name:"message-circle",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"}]]};u.node;let h=(0,n.default)(u);var p=e.i(841220),g=e.i(383035),y=e.i(594831),m=e.i(965324),k=e.i(866616),f=e.i(127361);let x={DEVICE:o,CLOUD:r,SERVER:p.Server,OTHER:c},v={coding:g.SquareTerminal,chat:h,bot:i.Bot,console:a.AppWindow},w={md:"text-body",sm:"text-meta"};e.s(["LocationTag",0,function({kind:e,description:a=null,harness:i=null,isCompact:n=!1,size:l="md",className:r}){let s=(0,m.classNames)("inline-flex min-w-0 items-center gap-1.5 text-muted-foreground [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",w[l],r);if(null===e)return(0,t.jsxs)("span",{"data-slot":"location-tag",className:s,children:[(0,t.jsx)(y.Unplug,{"aria-hidden":!0}),"No session"]});let o=x[e],d=(0,f.locationKindWord)(e),c=null===a?d:`${d} \xb7 ${a}`;if(null!==i){let e=(0,k.harnessKind)(i),n=void 0===e?void 0:v[e],l=(0,k.harnessWord)(i);return(0,t.jsxs)("span",{"data-slot":"location-tag",className:s,title:null===a?`${l} \xb7 ${d}`:`${l} \xb7 ${d}: ${a}`,children:[void 0===n?null:(0,t.jsx)(n,{"aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate text-foreground",children:l}),(0,t.jsx)("span",{"aria-hidden":!0,children:"·"}),(0,t.jsx)(o,{"aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate",children:d}),null===a?null:(0,t.jsxs)("span",{className:"sr-only",children:[": ",a]})]})}return n?(0,t.jsxs)("span",{"data-slot":"location-tag",className:s,title:c,children:[(0,t.jsx)(o,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"sr-only",children:[d,": "]}),(0,t.jsx)("span",{className:"truncate text-foreground",children:a??d})]}):(0,t.jsxs)("span",{"data-slot":"location-tag",className:s,children:[(0,t.jsx)(o,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"truncate",children:[d,null===a?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{"aria-hidden":!0,children:" · "}),(0,t.jsx)("span",{className:"sr-only",children:", "}),(0,t.jsx)("span",{className:"text-foreground",children:a})]})]})]})}],763481)},781830,e=>{"use strict";var t=e.i(843476),a=e.i(779432),i=e.i(119002),n=e.i(911147),l=e.i(965324),r=e.i(849635),s=e.i(793361);let o={working:a.Activity,blocked:n.OctagonPause,idle:i.CirclePause},d={active:"text-tone-active-fg",waiting:"text-tone-waiting-fg",ended:"text-tone-ended-fg"};e.s(["ReportLine",0,function({report:e,now:a,variant:i,isTimeInTitle:n=!1,testId:c}){let u="full"===i,h=(0,l.classNames)("flex min-w-0 items-center gap-1.5",u?"text-body":"text-meta");if(null===e)return(0,t.jsx)("span",{"data-testid":c,"data-state":"none",className:(0,l.classNames)(h,"text-muted-foreground"),children:"No report yet"});let p=o[e.state],g=d[s.REPORT_TONES[e.state]],y=new Date(e.reportedAt);return(0,t.jsxs)("span",{"data-testid":c,"data-state":e.state,title:n?`${(0,s.reportText)(e)} \xb7 ${(0,s.reportedWhen)(y,a)}`:(0,s.reportText)(e),className:h,children:[(0,t.jsx)(p,{"aria-hidden":!0,className:(0,l.classNames)("size-(--size-icon-sm) shrink-0",g)}),(0,t.jsx)("span",{className:(0,l.classNames)("shrink-0 font-medium",g),children:s.REPORT_STATE_WORDS[e.state]}),null===e.note?null:(0,t.jsx)("span",{className:"min-w-0 truncate text-foreground",children:e.note}),n?null:(0,t.jsx)("time",{dateTime:e.reportedAt,title:(0,r.fullDateTime)(y),className:"shrink-0 text-muted-foreground tabular-nums",children:u?`\xb7 ${(0,s.reportedWhen)(y,a)}`:(0,s.reportAge)(y,a)})]})}])},78865,e=>{"use strict";var t=e.i(843476),a=e.i(749655),i=e.i(987255),n=e.i(876561),l=e.i(847211),r=e.i(422768),s=e.i(450092),o=e.i(536604),d=e.i(119002),c=e.i(832297),u=e.i(821048),h=e.i(474544),p=e.i(285595),g=e.i(152886),y=e.i(426391),m=e.i(519647),k=e.i(316984),f=e.i(710001),x=e.i(671028),v=e.i(981658),w=e.i(444594),b=e.i(611568),C=e.i(25799),M=e.i(985512),A=e.i(457665),j=e.i(395925),z=e.i(485627),N=e.i(466787),S=e.i(892870),T=e.i(456420);let R={name:"user-round-search",size:24,node:[["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M2 21a8 8 0 0 1 10.434-7.62",key:"1yezr2"}],["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["path",{d:"m22 22-1.9-1.9",key:"1e5ubv"}]]};R.node;let D=(0,T.default)(R);var I=e.i(965324),O=e.i(766390);let E={waiting:"border-tone-waiting-border bg-tone-waiting-bg text-tone-waiting-fg",active:"border-tone-active-border bg-tone-active-bg text-tone-active-fg",ok:"border-tone-ok-border bg-tone-ok-bg text-tone-ok-fg",attention:"border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg",ended:"border-tone-ended-border bg-tone-ended-bg text-tone-ended-fg"},P={awaitingCrew:{tone:"waiting",Icon:g.CircleDashed,label:"Awaiting crew"},crewed:{tone:"ok",Icon:S.UserCheck,label:"Crewed"},retired:{tone:"ended",Icon:n.Archive,label:"Retired"},pending:{tone:"waiting",Icon:v.Hourglass,label:"Pending"},received:{tone:"active",Icon:w.Inbox,label:"Received"},handed:{tone:"active",Icon:s.CircleArrowRight,label:"Handed (pulled)"},handedPushed:{tone:"active",Icon:s.CircleArrowRight,label:"Handed"},overdue:{tone:"attention",Icon:a.AlarmClock,label:"Overdue"},acknowledged:{tone:"ok",Icon:p.CircleCheck,label:"Acknowledged"},handled:{tone:"ok",Icon:o.CircleCheckBig,label:"Handled"},notHandled:{tone:"attention",Icon:r.CircleAlert,label:"Not handled"},undeliverable:{tone:"attention",Icon:k.CircleX,label:"Undeliverable"},dismissed:{tone:"ended",Icon:m.CircleMinus,label:"Dismissed"},abandoned:{tone:"ended",Icon:l.Ban,label:"Abandoned"},forming:{tone:"waiting",Icon:y.CircleDotDashed,label:"Forming"},sailing:{tone:"ok",Icon:z.Sailboat,label:"Sailing"},"standing-down":{tone:"active",Icon:i.Anchor,label:"Standing down"},disbanded:{tone:"ended",Icon:f.FlagOff,label:"Disbanded"},"at-limit":{tone:"waiting",Icon:x.Gauge,label:"At limit"},"over-limit":{tone:"attention",Icon:N.TriangleAlert,label:"Over limit"},needsCrew:{tone:"waiting",Icon:h.Clock,label:"Needs crew"},crewedByHand:{tone:"ok",Icon:S.UserCheck,label:"Crewed by hand"},crewing:{tone:"active",Icon:b.LoaderCircle,label:"Crewing"},running:{tone:"ok",Icon:c.CirclePlay,label:"Running"},restarting:{tone:"waiting",Icon:j.RotateCcw,label:"Restarting"},crashed:{tone:"attention",Icon:k.CircleX,label:"Crashed"},releasing:{tone:"active",Icon:A.Power,label:"Releasing"},stuck:{tone:"attention",Icon:M.OctagonAlert,label:"Stuck"},delivering:{tone:"ok",Icon:C.MailCheck,label:"Delivering"},noShipCanTake:{tone:"attention",Icon:u.CircleSlash,label:"No ship can take"},waitingForCrew:{tone:"waiting",Icon:D,label:"Waiting for crew"},stalledInFlight:{tone:"waiting",Icon:d.CirclePause,label:"Stalled in flight"}};e.s(["StatusBadge",0,function({status:e,className:a}){let{tone:i,Icon:n,label:l}=P[e];return(0,t.jsxs)(O.Badge,{variant:"outline","data-slot":"status-badge","data-status":e,className:(0,I.classNames)(E[i],"abandoned"===e?"border-dashed":void 0,a),children:[(0,t.jsx)(n,{"aria-hidden":!0}),l]})},"statusLabel",0,function(e){return P[e].label}],78865)},215327,e=>{"use strict";var t=e.i(843476),a=e.i(271645),i=e.i(917540),n=e.i(826808),l=e.i(448695),r=e.i(574296),s=e.i(424010),o=e.i(746675);function d({memberName:e,replacedText:a,isOpen:i,onOpenChange:n,onConfirm:l}){return(0,t.jsx)(s.AlertDialog,{open:i,onOpenChange:n,children:(0,t.jsxs)(s.AlertDialogContent,{"data-testid":"new-crew-line-confirm",className:o.dialogSurface.phoneSheet,children:[(0,t.jsxs)(s.AlertDialogHeader,{children:[(0,t.jsxs)(s.AlertDialogTitle,{children:["Get a new crew line for ",e,"?"]}),(0,t.jsx)(s.AlertDialogDescription,{children:a??"Its new secret is shown once, with its launch note."})]}),(0,t.jsxs)(s.AlertDialogFooter,{children:[(0,t.jsx)(s.AlertDialogClose,{render:(0,t.jsx)(r.Button,{}),children:"Cancel"}),(0,t.jsx)(r.Button,{variant:"primary","data-testid":"new-crew-line-confirm-submit",onClick:l,children:"Get new crew line"})]})]})})}let c=(0,i.lazyDialog)(()=>e.A(733971).then(e=>e.CrewLineDialog),e=>e.isOpen);function u(e){let i=(0,l.useNewCrewLine)(),[r,s]=(0,a.useState)(!1),[o,u]=(0,a.useState)(!1),[h,p]=(0,a.useState)(void 0),g=()=>{e&&i.mutate({squadronId:e.squadronId,shipId:e.member.shipId})},y=i.data?"shown":i.isError?"error":"issuing";return{isReady:e?.ship!==void 0,start:()=>{e?.ship&&(i.reset(),p((0,n.newCrewLineReplaced)(e.ship)),u(!0))},dialog:e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d,{memberName:e.member.name,replacedText:h,isOpen:o,onOpenChange:u,onConfirm:()=>{u(!1),s(!0),g()}}),(0,t.jsx)(c,{memberName:e.member.name,state:y,template:e.template,launchNote:i.data?.launchNote,model:i.data?.model,crewLines:i.data?.crewLines,error:i.error?.message,isOpen:r,onOpenChange:e=>{s(e),e||i.reset()},onConfirm:g})]}):null}}e.s(["GetNewCrewLine",0,function({isPrimary:e=!1,testId:a,...i}){let n=u(i);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Button,{size:"xs",variant:e?"primary":"secondary",disabled:!n.isReady,"data-testid":a,onClick:n.start,children:"Get new crew line"}),n.dialog]})},"NewCrewLineFlow",0,function({of:e,children:t}){return t(u(e))},"useNewCrewLineFlow",0,u],215327)},866616,e=>{"use strict";var t=e.i(849635);let a={"claude-code":{word:"Claude Code",kind:"coding"},codex:{word:"Codex",kind:"coding"},"claude-chat":{word:"Claude chat",kind:"chat"},chatgpt:{word:"ChatGPT",kind:"chat"},grok:{word:"Grok",kind:"chat"},grokbot:{word:"Grokbot",kind:"bot"},console:{word:"Console",kind:"console"}};function i(e){return a[e]?.word??e}e.s(["crewLineHarnessWord",0,function(e){return"chat"===e?"Chat":i(e)},"harnessDetection",0,function(e,a){if(void 0===e.version)return;if(void 0===e.modelsConfirmedAt||null===e.modelsConfirmedAt)return`${e.version} \xb7 no model confirmed`;let i=(0,t.relativeTime)(new Date(e.modelsConfirmedAt),a);return`${e.version} \xb7 models confirmed ${"Just now"===i?"just now":i}`},"harnessKind",0,function(e){return a[e]?.kind},"harnessWord",0,i])},127361,e=>{"use strict";let t={DEVICE:"Device",CLOUD:"Cloud",SERVER:"Server",OTHER:"Other"};e.s(["locationKindWord",0,function(e){return t[e]}])},793361,e=>{"use strict";var t=e.i(849635);let a={working:"Working",blocked:"Blocked",idle:"Idle"};e.s(["REPORT_STATE_WORDS",0,a,"REPORT_TONES",0,{working:"active",blocked:"waiting",idle:"ended"},"reportAge",0,function(e,a){let i=Math.max(0,a.getTime()-e.getTime());return i<6e4?`${String(Math.floor(i/1e3))} s`:i<36e5?`${String(Math.floor(i/6e4))} min`:i<864e5?`${String(Math.floor(i/36e5))} h`:(0,t.relativeTime)(e,a)},"reportDetailsJson",0,function(e){return JSON.stringify(e,null,2)},"reportDetailsLabel",0,function(e){return`JSON \xb7 ${String(e)} bytes`},"reportText",0,function(e){let t=a[e.state];return null===e.note?t:`${t}: ${e.note}`},"reportedWhen",0,function(e,a){let i=(0,t.relativeTime)(e,a);return`reported ${"Just now"===i?"just now":i}`}])},890135,e=>{"use strict";e.s(["OPERATOR_NAME",0,"argo","capitalised",0,function(e){return e.charAt(0).toUpperCase()+e.slice(1)},"counted",0,function(e,t){return`${String(e)} ${1===e?t.one:t.many}`},"ship",0,function(e){return{kind:"ship",party:e}},"text",0,function(e){return{kind:"text",text:e}}])},826808,e=>{"use strict";var t=e.i(890135);let a={one:"delivery",many:"deliveries"};function i(e){if(0===e)return"Nothing is in flight, so no delivery moves.";let a=1===e?"returns":"return";return`${(0,t.counted)(e,{one:"in-flight delivery",many:"in-flight deliveries"})} ${a} to pending. Nothing is lost.`}e.s(["abandonedLine",0,function(e){return`${(0,t.counted)(e,a)} will be abandoned`},"inFlightLine",0,i,"isTypedMatch",0,function(e,t){return t===e},"newCrewLineReplaced",0,function(e){if("crewed"===e.status){let t=null===e.location?"the session crewing it":`the session on ${e.location.description??e.location.kind.toLowerCase()}`;return`This ends ${t}. ${i(e.inFlightDeliveries)}`}if(null!==e.startingPrompt&&!e.startingPrompt.isClaimed)return"The crew line issued earlier, not claimed yet, stops working."},"retireButtonLabel",0,function(e){return 0===e?"Retire ship":`Retire and abandon ${(0,t.counted)(e,a)}`}])},853573,e=>{"use strict";var t=e.i(970597),a=e.i(619273),i=e.i(621482),n=e.i(586448),l=e.i(266027),r=e.i(905387),s=e.i(731877),o=e.i(427702);e.s(["useMessage",0,function(e){let t=(0,o.useTRPC)();return(0,l.useQuery)(t.fleet.message.queryOptions(void 0===e?a.skipToken:{messageId:e}))},"useShip",0,function(e){let i=(0,o.useTRPC)();return(0,l.useQuery)(i.fleet.ship.queryOptions(void 0===e?a.skipToken:{shipId:e},{refetchInterval:r.LAST_SEEN_REFRESH_MS,select:e=>(0,t.isInReadReach)(e)?e:null}))},"useShipMessages",0,function(e){let t=(0,o.useTRPC)();return(0,s.pagedListOf)((0,i.useInfiniteQuery)(t.fleet.shipMessages.infiniteQueryOptions({shipId:e,limit:s.CONSOLE_PAGE_SIZE},{getNextPageParam:s.nextCursorOf})))},"useShipTimeline",0,function(e){let t=(0,o.useTRPC)();return(0,s.pagedListOf)((0,i.useInfiniteQuery)(t.fleet.shipTimeline.infiniteQueryOptions({shipId:e,limit:s.CONSOLE_PAGE_SIZE},{getNextPageParam:s.nextCursorOf})))},"useShipWay",0,function(e){let t=(0,o.useTRPC)();return(0,l.useQuery)(t.fleet.shipWay.queryOptions({shipId:e},{refetchInterval:r.LAST_SEEN_REFRESH_MS}))},"useShips",0,function(e){let a=(0,o.useTRPC)(),i=(0,n.useQueries)({queries:e.map(e=>a.fleet.ship.queryOptions({shipId:e},{refetchInterval:r.LAST_SEEN_REFRESH_MS}))}),l=new Map;for(let e of i)e.data&&(0,t.isInReadReach)(e.data)&&l.set(e.data.id,e.data);return l}])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,172410,e=>{"use strict";e.i(247167);var t=e.i(271645);let i=t.createContext(void 0),s={disableStyleElements:!1};e.s(["useCSPContext",0,function(){return t.useContext(i)??s}])},590803,e=>{"use strict";e.s(["isElementDisabled",0,function(e){return null==e||e.hasAttribute("disabled")||"true"===e.getAttribute("aria-disabled")}])},386247,e=>{"use strict";var t=e.i(456420);let i={name:"ellipsis",size:24,node:[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],aliases:["more-horizontal"]};i.node;let s=(0,t.default)(i);e.s(["Ellipsis",0,s],386247)},772382,e=>{"use strict";var t=e.i(456420);let i={name:"eye",size:24,node:[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]};i.node;let s=(0,t.default)(i);e.s(["Eye",0,s],772382)},831458,e=>{"use strict";var t=e.i(456420);let i={name:"flag",size:24,node:[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]]};i.node;let s=(0,t.default)(i);e.s(["Flag",0,s],831458)},668997,73330,e=>{"use strict";var t=e.i(456420);let i={name:"pen",size:24,node:[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],aliases:["edit-2"]};i.node;let s=(0,t.default)(i);e.s(["Pen",0,s],668997);var n=e.i(849635);e.s(["canPing",0,function(e){return("agent"===e.kind||"plugin"===e.kind)&&"crewed"===e.status},"pingLine",0,function(e,t){let i=new Date(e.sentAt);switch(e.state){case"waiting":{let e=(0,n.relativeTime)(i,t);return`Pinged ${"Just now"===e?"just now":e}, no answer yet`}case"answered":var s;let a;return null===e.answeredAt?"Answered ping":`Answered ping in ${(a=Math.max(0,(s=new Date(e.answeredAt)).getTime()-i.getTime()))<6e4?`${String(Math.round(a/1e3))} s`:(0,n.duration)(i,s)}`;case"acknowledged":return"Received, not answered with pong";case"undeliverable":return"Ping not answered: undeliverable"}}],73330)},869309,e=>{"use strict";var t=e.i(456420);let i={name:"plug",size:24,node:[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]]};i.node;let s=(0,t.default)(i);e.s(["Plug",0,s],869309)},77071,e=>{"use strict";var t=e.i(456420);let i={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};i.node;let s=(0,t.default)(i);e.s(["Plus",0,s],77071)},615331,e=>{"use strict";var t=e.i(456420);let i={name:"radio",size:24,node:[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]};i.node;let s=(0,t.default)(i);e.s(["Radio",0,s],615331)},149319,e=>{"use strict";var t=e.i(456420);let i={name:"user-minus",size:24,node:[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]};i.node;let s=(0,t.default)(i);e.s(["UserMinus",0,s],149319)},357443,e=>{"use strict";var t=e.i(456420);let i={name:"user-plus",size:24,node:[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]};i.node;let s=(0,t.default)(i);e.s(["UserPlus",0,s],357443)},771139,e=>{"use strict";var t=e.i(456420);let i={name:"user-x",size:24,node:[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"17",x2:"22",y1:"8",y2:"13",key:"3nzzx3"}],["line",{x1:"22",x2:"17",y1:"8",y2:"13",key:"1swrse"}]]};i.node;let s=(0,t.default)(i);e.s(["UserX",0,s],771139)},367795,e=>{"use strict";let t=/^[a-z0-9:-]+$/;String(48),e.s(["SHIP_HANDLE_MAX_LENGTH",0,48,"isShipHandle",0,function(e){return e.length<=48&&t.test(e)}])},424010,e=>{"use strict";var t=e.i(843476);e.s([],558762),e.i(558762);var i=e.i(366250),s=e.i(402820),n=e.i(156736),a=e.i(209793),r=e.i(784324),o=e.i(264951),l=e.i(77173);let d=e.i(313488).DialogTrigger;var u=e.i(974217),c=e.i(325326);class p extends c.DialogHandle{}e.s(["Backdrop",()=>s.DialogBackdrop,"Close",()=>n.DialogClose,"Description",()=>a.DialogDescription,"Handle",0,p,"Popup",()=>r.DialogPopup,"Portal",()=>o.DialogPortal,"Root",0,function(e){return(0,i.useRenderDialogRoot)("alert-dialog",e)},"Title",()=>l.DialogTitle,"Trigger",0,d,"Viewport",()=>u.DialogViewport,"createHandle",0,function(){return new p}],734604);var h=e.i(734604),h=h,m=e.i(965324),f=e.i(746675);e.s(["AlertDialog",0,function(e){return(0,t.jsx)(h.Root,{"data-slot":"alert-dialog",...e})},"AlertDialogClose",0,function(e){return(0,t.jsx)(h.Close,{"data-slot":"alert-dialog-close",...e})},"AlertDialogContent",0,function({className:e,size:i,children:s,...n}){return(0,t.jsxs)(h.Portal,{children:[(0,t.jsx)(h.Backdrop,{"data-slot":"alert-dialog-overlay",className:f.dialogSurface.overlay}),(0,t.jsx)(h.Popup,{"data-slot":"alert-dialog-content",className:(0,m.classNames)(f.dialogSurface.popup({size:i}),e),...n,children:s})]})},"AlertDialogDescription",0,function({className:e,...i}){return(0,t.jsx)(h.Description,{"data-slot":"alert-dialog-description",className:(0,m.classNames)(f.dialogSurface.description,e),...i})},"AlertDialogFooter",0,function({className:e,...i}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,m.classNames)(f.dialogSurface.footer,e),...i})},"AlertDialogHeader",0,function({className:e,...i}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,m.classNames)(f.dialogSurface.header,e),...i})},"AlertDialogTitle",0,function({className:e,...i}){return(0,t.jsx)(h.Title,{"data-slot":"alert-dialog-title",className:(0,m.classNames)(f.dialogSurface.title,e),...i})}],424010)},414732,e=>{"use strict";var t=e.i(843476),i=e.i(456420);let s={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]};s.node;let n=(0,i.default)(s),a={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};a.node;let r=(0,i.default)(a),o={name:"chevrons-up-down",size:24,node:[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]};o.node;let l=(0,i.default)(o);var d=e.i(965324);function u({className:e,...i}){return(0,t.jsx)("th",{"data-slot":"table-head",className:(0,d.classNames)("px-4 text-left align-middle text-caption font-medium whitespace-nowrap text-muted-foreground",e),...i})}e.s(["Table",0,function({className:e,...i}){return(0,t.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto rounded-lg border border-border bg-card shadow-sm",children:(0,t.jsx)("table",{"data-slot":"table",className:(0,d.classNames)("w-full caption-bottom text-body",e),...i})})},"TableBody",0,function({className:e,...i}){return(0,t.jsx)("tbody",{"data-slot":"table-body",className:(0,d.classNames)("[&_tr:last-child]:border-0",e),...i})},"TableCell",0,function({className:e,...i}){return(0,t.jsx)("td",{"data-slot":"table-cell",className:(0,d.classNames)("px-4 align-middle",e),...i})},"TableHead",0,u,"TableHeader",0,function({className:e,...i}){return(0,t.jsx)("thead",{"data-slot":"table-header",className:(0,d.classNames)("bg-muted [&_tr]:border-b",e),...i})},"TableRow",0,function({className:e,...i}){return(0,t.jsx)("tr",{"data-slot":"table-row",className:(0,d.classNames)("h-(--size-row) border-b border-border transition-colors duration-(--duration-fast) hover:bg-muted has-focus-visible:outline-2 has-focus-visible:-outline-offset-2 has-focus-visible:outline-ring data-new:animate-highlight [thead_&]:h-(--size-row-header) [thead_&]:hover:bg-transparent",e),...i})},"TableSortHead",0,function({direction:e,onSort:i,children:s,className:a,...o}){return(0,t.jsx)(u,{"aria-sort":e??"none",className:(0,d.classNames)("px-2",a),...o,children:(0,t.jsxs)("button",{type:"button",onClick:i,className:"inline-flex h-7 items-center gap-1 rounded-sm px-2 font-medium hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring data-sorted:text-foreground","data-sorted":null===e?void 0:"",children:[s,(0,t.jsx)("ascending"===e?r:"descending"===e?n:l,{"aria-hidden":!0,className:(0,d.classNames)("size-3.5 shrink-0",null===e?"opacity-50":void 0)})]})})}],414732)},298421,e=>{"use strict";var t=e.i(843476),i=e.i(456420);let s={name:"chevrons-down",size:24,node:[["path",{d:"m7 6 5 5 5-5",key:"1lc07p"}],["path",{d:"m7 13 5 5 5-5",key:"1d48rs"}]]};s.node;let n=(0,i.default)(s);var a=e.i(574296),r=e.i(817981);e.s(["LoadMore",0,function({what:e,isLoading:i,isFailed:s,onLoad:o,area:l}){return s?(0,t.jsx)(r.InlineError,{title:`Couldn’t load ${e}`,description:"What is shown stays as it is. Try again in a moment.",onRetry:o,className:"m-3"}):(0,t.jsx)("div",{className:"flex justify-center border-t border-border px-3.5 py-2.5",children:(0,t.jsx)(a.Button,{size:"sm",variant:"ghost",icon:(0,t.jsx)(n,{"aria-hidden":!0}),isLoading:i,onClick:o,"data-testid":`${l}-load-more`,children:i?`Loading ${e}...`:`Load ${e}`})})}],298421)},539448,e=>{"use strict";var t=e.i(843476),i=e.i(225913),s=e.i(522016),n=e.i(965324);let a=(0,i.cva)("min-w-0 truncate font-sans font-medium",{variants:{size:{body:"text-body text-foreground",meta:"text-meta text-muted-foreground",title:"text-title font-semibold tracking-tight text-foreground max-sm:text-title-touch"}},defaultVariants:{size:"body"}});e.s(["ShipName",0,function({name:e,shipId:i,size:r,isSuffixShown:o=!1,isOperator:l=!1,href:d,className:u}){let c=d?(0,t.jsx)(s.default,{href:d,className:(0,n.classNames)(a({size:r}),"rounded-xs underline-offset-3 hover:underline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring"),title:e,children:e}):(0,t.jsx)("span",{className:a({size:r}),title:e,children:e});return(0,t.jsxs)("span",{"data-slot":"ship-name",className:(0,n.classNames)("inline-flex min-w-0 items-baseline gap-1.5",u),children:[c,l?(0,t.jsx)("span",{className:"shrink-0 font-normal text-muted-foreground",children:"(you)"}):null,o&&!l?(0,t.jsxs)("span",{className:"shrink-0 font-mono text-id text-muted-foreground uppercase",children:[(0,t.jsx)("span",{"aria-hidden":!0,children:"· "}),i.slice(-4)]}):null]})}])},221959,e=>{"use strict";var t=e.i(843476),i=e.i(876561),s=e.i(508734),n=e.i(386247),a=e.i(444594),r=e.i(758925),o=e.i(668997),l=e.i(615331),d=e.i(660011),u=e.i(819759),c=e.i(149319),p=e.i(357443),h=e.i(771139),m=e.i(522016),f=e.i(271645),g=e.i(905387),y=e.i(917540),v=e.i(490262),x=e.i(280581),b=e.i(440407),w=e.i(73330),k=e.i(853573),S=e.i(686165),j=e.i(448695),C=e.i(784294),N=e.i(684156),O=e.i(574296),P=e.i(407242),D=e.i(638919),I=e.i(341880);let L=(0,y.lazyDialog)(()=>e.A(726403).then(e=>e.ReleaseDialog),e=>e.isOpen),M=(0,y.lazyDialog)(()=>e.A(88138).then(e=>e.RemoveMemberDialog),e=>e.isOpen),R=(0,y.lazyDialog)(()=>e.A(157993).then(e=>e.RenameDialog),e=>e.isOpen),T=(0,y.lazyDialog)(()=>e.A(741585).then(e=>e.RetireDialog),e=>e.isOpen),A=(0,y.lazyDialog)(()=>e.A(495953).then(e=>e.StartingPromptDialog),e=>e.isOpen);function z({ship:e,layout:n,compose:m,squadron:y,member:S,isMembershipPending:O,crewLine:P}){var D,q;let E=(0,v.useAccess)(),[F,_]=(0,f.useState)(),[H,B]=(0,f.useState)(!1),[G,U]=(0,f.useState)(void 0),V=(0,g.useGetStartingPrompt)(),Q=(0,g.useReleaseShip)(),W=(0,g.useRetireShip)(),K=(0,g.useRecrewShip)(),X=(0,g.useRenameShip)(),J=(0,g.usePingShip)(),[Z,Y]=(0,f.useState)(""),ee=(0,b.useIsShipNameTaken)("rename"===F?Z:""),et=(0,g.useFleetLabels)(),ei=(0,k.useShip)("release"===F||"recrew"===F||"retire"===F||"remove"===F?e.id:void 0),es=(0,j.useRemoveMember)(),en=()=>{_(void 0)},ea=V.data??K.data,er=ea?"shown":V.isError?"error":"issuing",eo=e=>()=>{Q.reset(),W.reset(),K.reset(),X.reset(),es.reset(),_(e)},el=async()=>{try{await navigator.clipboard.writeText(e.id),(0,I.showToast)({title:"Ship id copied",description:e.id,tone:"success"})}catch{(0,I.showToast)({title:"Couldn’t copy the ship id",description:e.id,tone:"error"})}},ed=y?.flagship.shipId===e.id,eu={key:"message",label:"Message",menuLabel:"Message this ship…",icon:u.SquarePen,testId:"fleet-ship-message",onSelect:()=>{B(!0)},isMenuOnly:!0,needs:"canSend"},ec={key:"copy",label:"Copy ship id",menuLabel:"Copy ship id",icon:s.Copy,testId:"fleet-ship-copy-id",onSelect:()=>{el()},isMenuOnly:!0},ep=(0,w.canPing)(e)?[{key:"ping",label:"Ping",menuLabel:"Ping",icon:l.Radio,testId:"fleet-ship-ping",onSelect:()=>{J.mutate({shipId:e.id},{onSuccess:({isNew:t})=>{(0,I.showToast)(t?{title:`Pinged ${e.name}`,description:"Its session answers with pong on its next turn.",tone:"success"}:{title:`A ping already waits for ${e.name}`,description:"Pings never stack: this is the one shown.",tone:"info"})},onError:t=>{(0,I.showToast)({title:`Couldn’t ping ${e.name}`,description:t.message,tone:"error"})}})},isLoading:J.isPending,needs:"canManage"}]:[],eh=[];return"operator"===e.kind?eh.push({key:"inbox",label:"Open inbox",menuLabel:"Open inbox",icon:a.Inbox,testId:"fleet-ship-open-inbox",href:"/inbox",isMenuOnly:!0},ec):"retired"===e.status||"viewer"===e.kind?eh.push(ec):ed?eh.push({key:"squadron",label:"Open squadron",menuLabel:"Open squadron",icon:d.Shapes,testId:"fleet-ship-open-squadron",href:`/squadrons/${y.id}`}):O?eh.push(eu,ec,...ep):S&&y?(eh.push(eu,ec,...ep,{key:"crew-line",label:"Get new crew line",menuLabel:"Get new crew line…",icon:r.KeyRound,testId:"fleet-ship-new-crew-line",onSelect:P.start,needs:"canManage",isDisabled:!P.isReady,isPrimary:"silent"===S.health}),"crewed"===e.status&&eh.push({key:"release",label:"Release",menuLabel:"Release ship…",icon:h.UserX,testId:"fleet-ship-release",onSelect:eo("release"),needs:"canManage"}),("sailing"===y.state||"standing-down"===y.state)&&eh.push({key:"remove",label:"Remove from squadron",menuLabel:"Remove from squadron…",icon:c.UserMinus,testId:"fleet-ship-remove",onSelect:eo("remove"),isDestructive:!0,needs:"canManage"})):(eh.push(eu,ec),"awaitingCrew"===e.status?eh.push({key:"prompt",label:"Get starting prompt",menuLabel:"Get starting prompt…",icon:r.KeyRound,testId:"fleet-ship-prompt",onSelect:()=>{V.reset(),K.reset(),U((0,N.isUnclaimedPromptOut)(e)&&e.startingPrompt?{issuedAt:e.startingPrompt.issuedAt}:void 0),_("prompt"),V.mutate({shipId:e.id})},needs:"canManage"}):eh.push(...ep,{key:"recrew",label:"Re-crew",menuLabel:"Re-crew…",icon:p.UserPlus,testId:"fleet-ship-recrew",onSelect:eo("recrew"),needs:"canManage"},{key:"release",label:"Release",menuLabel:"Release ship…",icon:h.UserX,testId:"fleet-ship-release",onSelect:eo("release"),needs:"canManage"}),eh.push({key:"rename",label:"Rename",menuLabel:"Rename…",icon:o.Pen,testId:"fleet-ship-rename",onSelect:eo("rename"),needs:"canManage"},{key:"retire",label:"Retire",menuLabel:"Retire ship…",icon:i.Archive,testId:"fleet-ship-retire",onSelect:eo("retire"),isDestructive:!0,needs:"canManage"})),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)($,{layout:n,ship:e,actions:(D=eh,q=E,D.filter(e=>void 0===e.needs||q[e.needs]))}),(0,t.jsx)(L,{shipName:e.name,sessionLocation:null===e.location?null:e.location.description??e.location.kind.toLowerCase(),inFlightCount:ei.data?.inFlightDeliveries??0,mode:"recrew"===F?"recrew":"release",isOpen:("release"===F||"recrew"===F)&&void 0!==ei.data,onOpenChange:e=>{e||en()},isPending:Q.isPending||K.isPending,error:("recrew"===F?K.error:Q.error)?.message,onConfirm:()=>{"recrew"===F?K.mutate({shipId:e.id},{onSuccess:()=>{U(void 0),_("prompt")}}):Q.mutate({shipId:e.id},{onSuccess:en})}}),(0,t.jsx)(T,{shipName:e.name,openDeliveries:ei.data?.openDeliveries??0,isCrewed:"crewed"===e.status,isOpen:"retire"===F&&void 0!==ei.data,onOpenChange:e=>{e||en()},isPending:W.isPending,error:W.error?.message,onConfirm:()=>{W.mutate({shipId:e.id},{onSuccess:en})},labelLines:void 0===et.data?void 0:(0,x.retireLabelLines)((0,x.retiredLabelsOf)(e,{labels:et.data}))}),y&&S&&(0,t.jsx)(M,{squadronId:y.id,member:S,othersOfRole:(0,C.otherMembersOfRole)(y,S.shipId),openDeliveries:ei.data?.openDeliveries??0,inFlightDeliveries:ei.data?.inFlightDeliveries??0,isOpen:"remove"===F&&void 0!==ei.data,onOpenChange:e=>{e||en()},isPending:es.isPending,error:es.error?.message,onConfirm:()=>{es.mutate({squadronId:y.id,shipId:S.shipId},{onSuccess:en})}}),(0,t.jsx)(R,{shipName:e.name,takenNames:!0===ee?[Z]:[],onNameChange:Y,isOpen:"rename"===F,onOpenChange:e=>{e||en()},isPending:X.isPending,error:X.error?.message,onSubmit:t=>{X.mutate({shipId:e.id,name:t},{onSuccess:en})}}),(0,t.jsx)(A,{shipName:e.name,state:er,prompt:ea?.prompt,crewLines:ea?.crewLines,replacesUnclaimed:G,error:V.error?.message,isOpen:"prompt"===F,onOpenChange:e=>{e||(V.reset(),K.reset(),en())},onConfirm:()=>{K.reset(),V.mutate({shipId:e.id})}}),P.dialog,H&&(0,t.jsx)(m,{isOpen:!0,onOpenChange:B,toShipId:e.id})]})}function q({action:e,className:i}){let s=e.isPrimary?"primary":e.isDestructive||"rename"===e.key?"ghost":"secondary";return void 0!==e.href?(0,t.jsx)(O.Button,{size:"xs",variant:s,nativeButton:!1,"data-testid":e.testId,className:i,render:(0,t.jsx)(m.default,{href:e.href}),children:e.label}):(0,t.jsx)(O.Button,{size:"xs",variant:s,"data-testid":e.testId,disabled:e.isDisabled,isLoading:e.isLoading,className:i,onClick:e.onSelect,children:e.label})}function E(e,t){let i=e[t-1],s=e[t];return void 0!==i&&void 0!==s&&(!0===i.isMenuOnly&&!0!==s.isMenuOnly||!0===s.isDestructive&&!0!==i.isDestructive)}function $({layout:e,ship:i,actions:s}){if("next"===e){let e=s.find(e=>"prompt"===e.key||"crew-line"===e.key&&!0===e.isPrimary);return e?(0,t.jsx)(q,{action:{...e,isPrimary:!1},className:"max-sm:h-(--size-control-touch) max-sm:w-full max-sm:text-body-touch"}):null}if("buttons"===e){let e=s.filter(e=>!0!==e.isMenuOnly);return 0===e.length?null:(0,t.jsx)("div",{className:"flex flex-wrap items-center justify-end gap-2 max-sm:justify-start",children:e.map(e=>(0,t.jsx)(q,{action:e},e.key))})}let a=(0,t.jsx)(O.Button,{size:"sheet"===e?"touch":"xs",variant:"ghost",isIconOnly:!0,"aria-label":`Actions for ${i.name}`,icon:(0,t.jsx)(n.Ellipsis,{}),"data-testid":"fleet-actions"});return"sheet"===e?(0,t.jsxs)(D.Sheet,{children:[(0,t.jsx)(D.SheetTrigger,{render:a}),(0,t.jsxs)(D.SheetContent,{side:"bottom","data-testid":"fleet-row-sheet",children:[(0,t.jsx)(D.SheetHeader,{children:(0,t.jsx)(D.SheetTitle,{children:i.name})}),(0,t.jsx)("ul",{className:"flex flex-col pb-2",children:s.map((e,i)=>(0,t.jsx)("li",{className:E(s,i)?"mt-1 border-t border-border pt-1":void 0,children:(0,t.jsxs)(D.SheetClose,{render:void 0===e.href?(0,t.jsx)("button",{type:"button",disabled:e.isDisabled,onClick:e.onSelect}):(0,t.jsx)(m.default,{href:e.href}),"data-testid":e.testId,className:`flex h-(--size-control-touch) w-full items-center gap-3 px-4 text-left text-body-touch disabled:opacity-45 [&_svg]:size-(--size-icon) [&_svg]:shrink-0 ${e.isDestructive?"text-destructive-text":"text-foreground"}`,children:[(0,t.jsx)(e.icon,{"aria-hidden":!0}),e.menuLabel.replace(/…$/,"")]})},e.key))}),(0,t.jsx)("div",{className:"px-4 pb-4",children:(0,t.jsx)(D.SheetClose,{render:(0,t.jsx)(O.Button,{size:"touch",className:"w-full"}),children:"Cancel"})})]})]}):(0,t.jsxs)(P.DropdownMenu,{children:[(0,t.jsx)(P.DropdownMenuTrigger,{render:a}),(0,t.jsx)(P.DropdownMenuContent,{children:s.map((e,i)=>(0,t.jsxs)(f.Fragment,{children:[E(s,i)?(0,t.jsx)(P.DropdownMenuSeparator,{}):null,void 0===e.href?(0,t.jsxs)(P.DropdownMenuItem,{"data-testid":e.testId,disabled:e.isDisabled,variant:e.isDestructive?"destructive":"default",onClick:e.onSelect,children:[(0,t.jsx)(e.icon,{"aria-hidden":!0}),e.menuLabel]}):(0,t.jsxs)(P.DropdownMenuItem,{"data-testid":e.testId,render:(0,t.jsx)(m.default,{href:e.href}),children:[(0,t.jsx)(e.icon,{"aria-hidden":!0}),e.menuLabel]})]},e.key))})]})}e.s(["ShipActions",0,function({ship:e,layout:i="buttons",compose:s,crewLineFlow:n}){let a=(0,S.useSquadronsConnection)(),r=(0,j.useSquadrons)(),o=r.data?.find(t=>"disbanded"!==t.state&&(t.flagship.shipId===e.id||t.members.some(t=>t.shipId===e.id))),l=void 0!==o&&o.flagship.shipId!==e.id,d=(0,k.useShip)(l&&"retired"!==e.status?e.id:void 0),u=o?.members.find(t=>t.shipId===e.id),c="unknown"===a||"connected"===a&&!r.isFetched;return(0,t.jsx)(n,{of:o&&u?{squadronId:o.id,member:u,ship:d.data??void 0}:void 0,children:n=>(0,t.jsx)(z,{ship:e,layout:i,compose:s,squadron:o,member:u,isMembershipPending:c,crewLine:n})})}])},215327,e=>{"use strict";var t=e.i(843476),i=e.i(271645),s=e.i(917540),n=e.i(826808),a=e.i(448695),r=e.i(574296),o=e.i(424010),l=e.i(746675);function d({memberName:e,replacedText:i,isOpen:s,onOpenChange:n,onConfirm:a}){return(0,t.jsx)(o.AlertDialog,{open:s,onOpenChange:n,children:(0,t.jsxs)(o.AlertDialogContent,{"data-testid":"new-crew-line-confirm",className:l.dialogSurface.phoneSheet,children:[(0,t.jsxs)(o.AlertDialogHeader,{children:[(0,t.jsxs)(o.AlertDialogTitle,{children:["Get a new crew line for ",e,"?"]}),(0,t.jsx)(o.AlertDialogDescription,{children:i??"Its new secret is shown once, with its launch note."})]}),(0,t.jsxs)(o.AlertDialogFooter,{children:[(0,t.jsx)(o.AlertDialogClose,{render:(0,t.jsx)(r.Button,{}),children:"Cancel"}),(0,t.jsx)(r.Button,{variant:"primary","data-testid":"new-crew-line-confirm-submit",onClick:a,children:"Get new crew line"})]})]})})}let u=(0,s.lazyDialog)(()=>e.A(733971).then(e=>e.CrewLineDialog),e=>e.isOpen);function c(e){let s=(0,a.useNewCrewLine)(),[r,o]=(0,i.useState)(!1),[l,c]=(0,i.useState)(!1),[p,h]=(0,i.useState)(void 0),m=()=>{e&&s.mutate({squadronId:e.squadronId,shipId:e.member.shipId})},f=s.data?"shown":s.isError?"error":"issuing";return{isReady:e?.ship!==void 0,start:()=>{e?.ship&&(s.reset(),h((0,n.newCrewLineReplaced)(e.ship)),c(!0))},dialog:e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d,{memberName:e.member.name,replacedText:p,isOpen:l,onOpenChange:c,onConfirm:()=>{c(!1),o(!0),m()}}),(0,t.jsx)(u,{memberName:e.member.name,state:f,template:e.template,launchNote:s.data?.launchNote,model:s.data?.model,crewLines:s.data?.crewLines,error:s.error?.message,isOpen:r,onOpenChange:e=>{o(e),e||s.reset()},onConfirm:m})]}):null}}e.s(["GetNewCrewLine",0,function({isPrimary:e=!1,testId:i,...s}){let n=c(s);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Button,{size:"xs",variant:e?"primary":"secondary",disabled:!n.isReady,"data-testid":i,onClick:n.start,children:"Get new crew line"}),n.dialog]})},"NewCrewLineFlow",0,function({of:e,children:t}){return t(c(e))},"useNewCrewLineFlow",0,c],215327)},808041,e=>{"use strict";var t=e.i(714695);function i(e,t){for(let i of t)e.includes(i)||e.push(i)}function s(e){return Object.fromEntries((e?.options??[]).flatMap(e=>{let t=e.defaultValue??e.values[0];return void 0===t?[]:[[e.name,t]]}))}function n(e){let[t]=e?.repositories??[];if(void 0!==t)return{kind:"worktree",repository:t};let[i]=e?.folders??[];return void 0===i?void 0:{kind:"folder",name:i}}function a(e){let[t]=e;return{harness:t?.harness??"",workspace:n(t),options:s(t),firstPrompt:"",squadron:"",machineLabels:[]}}let r=new TextEncoder;function o(e){return r.encode(e).byteLength}function l(e){return e<1024?`${String(e)} B`:`${(e/1024).toFixed(1).replace(/\.0$/,"")} KB`}e.s(["byteSize",0,l,"defaultValues",0,a,"offersOf",0,function(e){let s=[];for(let n of e)if(!n.isSilent&&null!==n.details)for(let e of n.details.harnesses){let a=s.find(t=>t.harness===e.harness);for(let r of(void 0===a&&(a={harness:e.harness,repositories:[],folders:[],options:[]},s.push(a)),i(a.repositories,n.details.workspaces.repositories),i(a.folders,n.details.workspaces.folders),(0,t.harnessOptions)(e.options))){let e=a.options.find(e=>e.name===r.name);void 0===e?a.options.push({...r,values:[...r.values]}):(i(e.values,r.values),e.defaultValue??=r.defaultValue)}}return s},"promptBytes",0,o,"settingsOf",0,function(e){if(""!==e.harness&&void 0!==e.workspace)return{harness:e.harness,workspace:e.workspace,options:e.options,...""===e.firstPrompt?{}:{firstPrompt:e.firstPrompt},...""===e.squadron?{}:{squadron:e.squadron},...0===e.machineLabels.length?{}:{machineLabels:e.machineLabels}}},"settingsRows",0,function(e){if(null==e)return;let{harness:t,workspace:i,options:s,firstPrompt:n,squadron:a}=e;return[{label:"Harness",value:t??"Trierarch default"},"worktree"===i.kind?{label:"Workspace",value:i.repository,meta:"New worktree"}:{label:"Workspace",value:i.name,meta:"Folder, as it is"},...Object.entries(s).map(([e,t])=>({label:e,value:"string"==typeof t?t:JSON.stringify(t),isMono:!0})),{label:"First prompt",value:void 0===n?null:l(o(n))},{label:"Squadron",value:a??null,isMono:!0}]},"valuesOf",0,function(e,t){if(null==e)return a(t);let{harness:i,workspace:s,options:n,firstPrompt:r,squadron:o,machineLabels:l}=e;return{harness:i??a(t).harness,workspace:"worktree"===s.kind?{kind:"worktree",repository:s.repository}:{kind:"folder",name:s.name},options:Object.fromEntries(Object.entries(n).flatMap(([e,t])=>"string"==typeof t?[[e,t]]:[])),firstPrompt:r??"",squadron:o??"",machineLabels:[...l??[]]}},"withHarness",0,function(e,t){let{harness:i,offers:a}=t,r=a.find(e=>e.harness===i),o=e.workspace,l=void 0!==o&&("worktree"===o.kind?r?.repositories.includes(o.repository)??!1:r?.folders.includes(o.name)??!1);return{...e,harness:i,workspace:l?o:n(r),options:s(r)}}])},878608,e=>{"use strict";var t=e.i(280581);function i(e,t){return e.ships.find(e=>e.id===t.shipId)?.labels.map(e=>e.valueId)??[]}e.s(["machineLabelIdsOf",0,function(e){return[...e?.machineLabels??[]]},"machineLabelsInputOf",0,function(e,s){let{machines:n,shipLabelsMax:a}=s;return{groups:function(e,t){let s=t.map(t=>i(e,t)),n=[],a=[];for(let t of e.labels){let i=t.values.map(e=>({valueId:e.id,value:e.value,shipCount:s.filter(t=>t.includes(e.id)).length})),r={labelId:t.id,key:t.key,mark:e.ownerOf.get(t.id)?.mark??"ship",values:i};(i.some(e=>e.shipCount>0)?n:a).push(r)}let r=(e,t)=>e.key.localeCompare(t.key);return[{title:"On machines",keys:n.toSorted(r)},{title:"On no machine yet",keys:a.toSorted(r)}].filter(e=>e.keys.length>0)}(e,n),max:a,chipsOf:i=>(0,t.pickedChips)(i,e),matchOf:t=>{var s;return{matching:(s={machines:n,valueIds:t}).machines.filter(t=>{let n=i(e,t);return s.valueIds.every(e=>n.includes(e))}).map(e=>e.name),total:s.machines.length}}}},"machineLabelsText",0,function(e){let t=e.map(e=>`${e.key}=${e.value}`);return t.length<=2?t.join(" and "):`${t.slice(0,-1).join(", ")} and ${t.at(-1)??""}`},"noMatchWords",0,function(e){return 1===e?{these:"this label",carries:"carries it"}:2===e?{these:"both",carries:"carries both"}:{these:"these labels",carries:"carries them all"}}])},609176,e=>{"use strict";var t=e.i(750980),i=e.i(686165),s=e.i(500265);e.s(["usePluginShipIds",0,function(){let e=(0,i.useSquadronsSettings)(),n=(0,s.useTrierarchPluginSettings)(),a=(0,t.useGatewaySettings)();return new Set([e.data,n.data,a.data].flatMap(e=>{if(void 0===e||"none"===e.state)return[];let t=e.ship?.shipId??e.lastShipId;return null===t?[]:[t]}))}])},890135,e=>{"use strict";e.s(["OPERATOR_NAME",0,"argo","capitalised",0,function(e){return e.charAt(0).toUpperCase()+e.slice(1)},"counted",0,function(e,t){return`${String(e)} ${1===e?t.one:t.many}`},"ship",0,function(e){return{kind:"ship",party:e}},"text",0,function(e){return{kind:"text",text:e}}])},826808,e=>{"use strict";var t=e.i(890135);let i={one:"delivery",many:"deliveries"};function s(e){if(0===e)return"Nothing is in flight, so no delivery moves.";let i=1===e?"returns":"return";return`${(0,t.counted)(e,{one:"in-flight delivery",many:"in-flight deliveries"})} ${i} to pending. Nothing is lost.`}e.s(["abandonedLine",0,function(e){return`${(0,t.counted)(e,i)} will be abandoned`},"inFlightLine",0,s,"isTypedMatch",0,function(e,t){return t===e},"newCrewLineReplaced",0,function(e){if("crewed"===e.status){let t=null===e.location?"the session crewing it":`the session on ${e.location.description??e.location.kind.toLowerCase()}`;return`This ends ${t}. ${s(e.inFlightDeliveries)}`}if(null!==e.startingPrompt&&!e.startingPrompt.isClaimed)return"The crew line issued earlier, not claimed yet, stops working."},"retireButtonLabel",0,function(e){return 0===e?"Retire ship":`Retire and abandon ${(0,t.counted)(e,i)}`}])},440407,e=>{"use strict";var t=e.i(367795),i=e.i(266027),s=e.i(427702);e.s(["useIsShipNameTaken",0,function(e){let n=(0,s.useTRPC)(),a=(0,t.isShipHandle)(e),r=(0,i.useQuery)(n.fleet.list.queryOptions({name:e,limit:1},{enabled:a}));if(a&&void 0!==r.data)return r.data.items.length>0}])},853573,e=>{"use strict";var t=e.i(970597),i=e.i(619273),s=e.i(621482),n=e.i(586448),a=e.i(266027),r=e.i(905387),o=e.i(731877),l=e.i(427702);e.s(["useMessage",0,function(e){let t=(0,l.useTRPC)();return(0,a.useQuery)(t.fleet.message.queryOptions(void 0===e?i.skipToken:{messageId:e}))},"useShip",0,function(e){let s=(0,l.useTRPC)();return(0,a.useQuery)(s.fleet.ship.queryOptions(void 0===e?i.skipToken:{shipId:e},{refetchInterval:r.LAST_SEEN_REFRESH_MS,select:e=>(0,t.isInReadReach)(e)?e:null}))},"useShipMessages",0,function(e){let t=(0,l.useTRPC)();return(0,o.pagedListOf)((0,s.useInfiniteQuery)(t.fleet.shipMessages.infiniteQueryOptions({shipId:e,limit:o.CONSOLE_PAGE_SIZE},{getNextPageParam:o.nextCursorOf})))},"useShipTimeline",0,function(e){let t=(0,l.useTRPC)();return(0,o.pagedListOf)((0,s.useInfiniteQuery)(t.fleet.shipTimeline.infiniteQueryOptions({shipId:e,limit:o.CONSOLE_PAGE_SIZE},{getNextPageParam:o.nextCursorOf})))},"useShipWay",0,function(e){let t=(0,l.useTRPC)();return(0,a.useQuery)(t.fleet.shipWay.queryOptions({shipId:e},{refetchInterval:r.LAST_SEEN_REFRESH_MS}))},"useShips",0,function(e){let i=(0,l.useTRPC)(),s=(0,n.useQueries)({queries:e.map(e=>i.fleet.ship.queryOptions({shipId:e},{refetchInterval:r.LAST_SEEN_REFRESH_MS}))}),a=new Map;for(let e of s)e.data&&(0,t.isInReadReach)(e.data)&&a.set(e.data.id,e.data);return a}])},684156,e=>{"use strict";e.s(["isUnclaimedPromptOut",0,function(e){return null!==e.startingPrompt&&!e.startingPrompt.isClaimed}])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,833474,e=>{"use strict";var t=e.i(843476),s=e.i(456420);let a={name:"corner-down-right",size:24,node:[["path",{d:"m15 10 5 5-5 5",key:"qqa56n"}],["path",{d:"M4 4v7a4 4 0 0 0 4 4h12",key:"z08zvw"}]]};a.node;let n=(0,s.default)(a),r={name:"mail-question-mark",size:24,node:[["path",{d:"M22 10.5V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h12.5",key:"e61zoh"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"M18 15.28c.2-.4.5-.8.9-1a2.1 2.1 0 0 1 2.6.4c.3.4.5.8.5 1.3 0 1.3-2 2-2 2",key:"7z9rxb"}],["path",{d:"M20 22v.01",key:"12bgn6"}]],aliases:["mail-question"]};r.node;let i=(0,s.default)(r),l={name:"reply",size:24,node:[["path",{d:"M20 18v-2a4 4 0 0 0-4-4H4",key:"5vmcpk"}],["path",{d:"m9 17-5-5 5-5",key:"nvlc11"}]]};l.node;let d=(0,s.default)(l);var o=e.i(369693),c=e.i(849635),u=e.i(890135),x=e.i(591703),h=e.i(574296),m=e.i(638919),p=e.i(861966),f=e.i(219321),g=e.i(60592),y=e.i(67874),b=e.i(639124),j=e.i(539448),v=e.i(78865),N=e.i(379369),w=e.i(446157),k=e.i(127361),T=e.i(928459),D=e.i(415168);function S(e){return null!==e.handOverNumber||e.isOnceMore}function A(e){switch(e.type){case"MessageAccepted":case"DeliveryReturned":return"pending";case"DeliveryReceived":return"received";case"DeliveryHanded":return S(e)?"handedPushed":"handed";case"DeliveryAcknowledged":return"acknowledged";case"DeliveryHandled":return"handled";case"DeliveryNotHandled":return"notHandled";case"DeliveryOverdue":return"overdue";case"DeliveryUndeliverable":return"undeliverable";case"DeliveryAbandoned":return"abandoned";case"DeliveryDismissed":return"dismissed"}}function R(e){return e.ship?[(0,u.ship)(e.ship)]:[(0,u.text)("a ship")]}function O(e){return e.by?[(0,u.text)(` by ${function(e){switch(e.kind){case"trierarch":return`the trierarch on ${e.trierarch.name}`;case"pluginWatcher":return"the plugin watcher";case"personApp":return"the person's app";case"gateway":return"the gateway";case"adapter":return"the adapter"}}(e.by)}`)]:[]}var M=e.i(766390);function C({entries:e,recipient:s}){let a=e.at(-1),n=a?new Date(a.occurredAt):void 0;return(0,t.jsx)("ol",{"data-testid":"delivery-history","aria-label":"Delivery history",className:"flex flex-col",children:e.map((a,r)=>{let i,l=new Date(a.occurredAt);return(0,t.jsxs)("li",{"data-testid":"delivery-history-entry","data-type":a.type,className:"relative flex gap-3 pb-4 last:pb-0",children:[(0,t.jsxs)("span",{"aria-hidden":!0,className:"relative flex w-3 shrink-0 justify-center",children:[(0,t.jsx)("span",{className:"mt-1.5 size-2.5 rounded-full border-2 border-muted-foreground bg-card"}),r<e.length-1?(0,t.jsx)("span",{className:"absolute top-5 bottom-[-0.25rem] w-px bg-border"}):null]}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-1",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)(v.StatusBadge,{status:A(a)}),(0,t.jsx)("time",{dateTime:a.occurredAt,title:(0,c.fullDateTime)(l),className:"font-mono text-id text-muted-foreground tabular-nums",children:(0,c.secondsTime)(l)}),n&&r<e.length-1?(0,t.jsx)("span",{"data-testid":"delivery-history-offset",className:"font-mono text-id text-muted-foreground tabular-nums",children:(i=Math.max(0,l.getTime()-n.getTime()))<6e4?`+${String(Math.floor(i/1e3))} s`:`+${(0,c.duration)(n,l)}`}):null,0===r?(0,t.jsx)(M.Badge,{variant:"outline",children:"Current"}):null]}),(0,t.jsx)(b.Sentence,{parts:function(e,t){let{recipient:s,older:a}=t;switch(e.type){case"MessageAccepted":return"ship"===s.kind?[(0,u.text)("Stored in the inbox of "),(0,u.ship)(s.ship),(0,u.text)(".")]:[(0,u.text)(`Queued for ${(0,D.recipientGroupWords)(s)}.`)];case"DeliveryReceived":return[(0,u.text)(e.isAgain?"Received again":"Received"),...O(e),(0,u.text)(" for "),...R(e),(0,u.text)(".")];case"DeliveryHanded":if(!S(e)){let t=null!==e.attempts&&e.attempts>1?`Attempt ${String(e.attempts)}: handed (pulled)`:"Handed (pulled)";return[(0,u.text)(`${t} to `),...R(e),...function(e){if(null===e)return[];let t=null!==e.description&&""!==e.description?e.description:(0,k.locationKindWord)(e.kind);return[(0,u.text)(`, session on ${t}`)]}(e.location),(0,u.text)(".")]}let n=null===e.handOverNumber?"":` (no. ${String(e.handOverNumber)})`;return e.isOnceMore?[(0,u.text)("Handed once more to "),...R(e),(0,u.text)(`${n}: its turn died.`)]:[(0,u.text)("Handed to "),...R(e),(0,u.text)(n),...O(e),...null===e.channel?[]:[(0,u.text)(` via ${e.channel}`)],(0,u.text)(".")];case"DeliveryReturned":var r=s,i=a;let l="ship"===r.kind?"Back in the inbox: ":"Returned to the queue: ";if(null===e.leaseEnd)return[(0,u.text)(l),(0,u.text)("the session of "),...R(e),(0,u.text)(" ended before acknowledging it.")];let d=i?` (was ${(0,v.statusLabel)(A(i)).toLowerCase()})`:"";return[(0,u.text)(l),...function(e,t){switch(e){case"released":return[...R(t),(0,u.text)(" was released")];case"retired":return[...R(t),(0,u.text)(" was retired")];case"deregistered":return[(0,u.text)("the session of "),...R(t),(0,u.text)(" deregistered")];case"takenOver":return[(0,u.text)("a new console session took over")];case"signedOut":return[(0,u.text)("the operator signed out")];case"passwordReset":return[(0,u.text)("the operator password was reset")];case"accountCutOff":return[(0,u.text)("the account signed in as argo was cut off")]}}(e.leaseEnd,e),(0,u.text)(`${d}.`)];case"DeliveryAcknowledged":return[(0,u.text)("Acknowledged by "),...R(e),(0,u.text)(".")];case"DeliveryHandled":return[(0,u.text)("Handled by "),...R(e),(0,u.text)(": its turn ended.")];case"DeliveryNotHandled":return[(0,u.text)("Not handled: the turn of "),...R(e),(0,u.text)(" died twice.")];case"DeliveryOverdue":return[(0,u.text)(e.overdue?`argo told: ${function(e){let t=`${String(e.minutes)} min`;switch(e.clock){case"notConfirmed":return`handed ${t}, not confirmed`;case"idle":return`waiting ${t}, session idle`;case"busy":return`waiting ${t}, session busy`}}(e.overdue)}.`:"argo told: overdue.")];case"DeliveryUndeliverable":return[(0,u.text)(null===e.attempts?"Never acknowledged: no ship takes it automatically any more.":(0,T.undeliverableReason)({attempts:e.attempts,isPushed:null!==e.handOverNumber}))];case"DeliveryAbandoned":return[(0,u.text)("Abandoned: "),...R(e),(0,u.text)(" was retired before taking it.")];case"DeliveryDismissed":return[(0,u.text)("Dismissed by the operator: no ship takes it any more.")]}}(a,{recipient:s,older:e[r+1]}),className:"text-meta text-muted-foreground max-sm:text-body-touch"})]})]},a.seq)})})}let $="text-section font-semibold text-foreground";function E({label:e,children:s}){return(0,t.jsxs)("div",{className:"flex items-center gap-3 border-b border-border px-3 py-2 last:border-b-0",children:[(0,t.jsx)("dt",{className:"w-24 shrink-0 text-meta text-muted-foreground",children:e}),(0,t.jsx)("dd",{className:"flex min-w-0 items-center gap-1.5 text-body text-foreground",children:s})]})}function H({message:e}){let s=e.recipient;return(0,t.jsxs)("dl",{"aria-label":"Envelope",className:"overflow-hidden rounded-lg border border-border bg-card",children:[(0,t.jsxs)(E,{label:"Message id",children:[(0,t.jsx)("span",{className:"truncate font-mono text-id",children:e.id}),(0,t.jsx)(p.CopyButton,{value:e.id,label:"Copy message id"})]}),(0,t.jsx)(E,{label:"From",children:(0,t.jsx)(j.ShipName,{name:e.sender.name,shipId:e.sender.id,isSuffixShown:e.sender.name!==u.OPERATOR_NAME})}),(0,t.jsx)(E,{label:"To",children:"ship"===s.kind?(0,t.jsx)(j.ShipName,{name:s.ship.name,shipId:s.ship.id,isSuffixShown:s.ship.name!==u.OPERATOR_NAME}):"type"===s.kind?(0,t.jsxs)("span",{children:["Any ship of type ",(0,t.jsx)("span",{className:"font-mono text-id",children:s.type})]}):(0,t.jsxs)("span",{children:["Every other participant of meeting ",(0,t.jsx)("span",{className:"font-mono text-id",children:s.meetingId})]})}),(0,t.jsx)(E,{label:"Sent",children:(0,t.jsx)("time",{dateTime:e.sentAt,className:"tabular-nums",children:(0,c.fullDateTime)(new Date(e.sentAt))})}),null===e.model?null:(0,t.jsx)(E,{label:"Model",children:(0,t.jsx)("span",{className:"truncate font-mono text-id","data-testid":"message-model",children:e.model})}),e.inReplyTo?(0,t.jsx)(E,{label:"In reply to",children:(0,t.jsx)("span",{className:"truncate font-mono text-id",children:e.inReplyTo})}):null]})}function P({message:e}){let s=(0,o.payloadLabel)(e.payload,e.contentType),a=(0,o.formattedPayload)(e.payload,e.contentType),n=(0,t.jsx)(x.CodeBlock,{label:s,code:e.payload,isWrapped:!0,copyLabel:"Copy payload",codeTestId:"message-payload"});return void 0===a?(0,t.jsxs)("section",{"aria-label":"Payload",className:"flex flex-col gap-2",children:[(0,t.jsx)("h3",{className:$,children:"Payload"}),n]}):(0,t.jsx)("section",{"aria-label":"Payload",className:"flex flex-col gap-2",children:(0,t.jsxs)(g.Tabs,{defaultValue:"formatted",className:"gap-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)("h3",{className:$,children:"Payload"}),(0,t.jsxs)(g.TabsList,{className:"max-sm:w-auto",children:[(0,t.jsx)(g.TabsTrigger,{value:"formatted",children:"Formatted"}),(0,t.jsx)(g.TabsTrigger,{value:"raw",children:"Raw"})]})]}),(0,t.jsx)(g.TabsContent,{value:"formatted",children:(0,t.jsx)(x.CodeBlock,{label:s,code:a,copyValue:e.payload,copyLabel:"Copy payload",codeTestId:"message-payload"})}),(0,t.jsx)(g.TabsContent,{value:"raw",children:n})]})})}function z({message:e,now:s,onOpenMessage:a}){return 0===e.replies.length?null:(0,t.jsx)("ul",{"aria-label":"Replies","data-testid":"message-replies",className:"flex flex-col gap-1 border-t border-border pt-3",children:e.replies.map(e=>(0,t.jsxs)("li",{className:"flex min-w-0 items-center gap-1.5 text-meta text-muted-foreground max-sm:text-body-touch",children:[(0,t.jsx)(n,{"aria-hidden":!0,className:"size-3.5 shrink-0"}),(0,t.jsx)("span",{children:"Reply from"}),(0,t.jsx)(j.ShipName,{name:e.sender.name,shipId:e.sender.id,isSuffixShown:e.sender.name!==u.OPERATOR_NAME}),(0,t.jsx)("time",{dateTime:e.sentAt,title:(0,c.fullDateTime)(new Date(e.sentAt)),children:(0,c.relativeTime)(new Date(e.sentAt),s)}),a?(0,t.jsx)(h.Button,{size:"xs",variant:"ghost","data-testid":"message-reply-open",onClick:()=>{a(e.id)},children:"Open"}):null]},e.id))})}function B({message:e,now:s,machines:a,onOpenMessage:n}){let r=(0,N.messageWay)(e,{now:s,machines:a});return(0,t.jsxs)("section",{"aria-label":"Delivery",className:"flex flex-col gap-2 max-sm:order-first",children:[(0,t.jsx)("h3",{className:$,children:"Delivery"}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-3",children:[(0,t.jsx)(w.WayLines,{status:r.status,lines:r.lines}),(0,t.jsx)("div",{className:"border-t border-border pt-3",children:(0,t.jsx)(C,{entries:e.delivery.history,recipient:e.recipient})}),(0,t.jsx)(z,{message:e,now:s,...n?{onOpenMessage:n}:{}})]})]})}function L(){return(0,t.jsxs)("div",{"aria-busy":!0,className:"flex flex-col gap-4",children:[(0,t.jsx)("span",{className:"sr-only",children:"Loading the message"}),(0,t.jsx)(f.Skeleton,{className:"h-32 w-full rounded-lg"}),(0,t.jsx)(f.Skeleton,{className:"h-28 w-full rounded-lg"}),(0,t.jsx)(f.Skeleton,{className:"h-40 w-full rounded-lg"})]})}e.s(["MessageSheet",0,function({message:e,messageId:s,state:a,isOpen:n,onOpenChange:r,onReply:l,onOpenMessage:o,now:c,machines:x=[]}){let p="ready"===a&&void 0!==e;return(0,t.jsx)(m.Sheet,{open:n,onOpenChange:r,children:(0,t.jsxs)(m.SheetContent,{side:"right","data-testid":"message-sheet",children:[(0,t.jsx)(m.SheetHeader,{children:p?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(m.SheetTitle,{className:"flex min-w-0 items-baseline gap-1.5",children:[(0,t.jsx)("span",{children:"Message from"}),(0,t.jsx)(j.ShipName,{name:e.sender.name,shipId:e.sender.id,isSuffixShown:e.sender.name!==u.OPERATOR_NAME,className:"text-heading"})]}),(0,t.jsxs)(m.SheetDescription,{children:[(0,t.jsx)(b.Sentence,{parts:"ship"===e.recipient.kind?[(0,u.text)("To "),(0,u.ship)(e.recipient.ship)]:[(0,u.text)(`To ${(0,D.recipientGroupWords)(e.recipient)}`)]}),". ",(0,v.statusLabel)((0,N.messageWay)(e,{now:c,machines:x}).status),"."]}),l&&e.sender.name!==u.OPERATOR_NAME?(0,t.jsx)("div",{children:(0,t.jsxs)(h.Button,{size:"xs",icon:(0,t.jsx)(d,{}),"data-testid":"message-reply",onClick:()=>{l(e)},children:["Reply to ",e.sender.name]})}):null]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.SheetTitle,{children:"Message"}),(0,t.jsx)(m.SheetDescription,{children:"not-found"===a?"Couldn’t open this message":"Loading"})]})}),(0,t.jsxs)(m.SheetBody,{className:"flex flex-col gap-5",children:["loading"===a?(0,t.jsx)(L,{}):null,"not-found"===a?(0,t.jsx)(y.EmptyState,{variant:"section",icon:(0,t.jsx)(i,{}),title:"Message not found",description:(0,t.jsxs)(t.Fragment,{children:["No message with this id exists in this fleet, or the link is incomplete.",s?(0,t.jsx)("span",{className:"mt-2 block font-mono text-id",children:s}):null]})}):null,p?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(H,{message:e}),(0,t.jsx)(P,{message:e}),(0,t.jsx)(B,{message:e,now:c,machines:x,...o?{onOpenMessage:o}:{}})]}):null]})]})})}],833474)}]);
|