@aeolus-fleet/console 0.24.0 → 0.25.0
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/build-manifest.json +3 -3
- package/.next/standalone/packages/console/.next/prerender-manifest.json +3 -3
- package/.next/standalone/packages/console/.next/server/app/(console)/inbox/page/server-reference-manifest.json +16 -16
- 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 +16 -16
- 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 +16 -16
- 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 +16 -16
- 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 +16 -16
- 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/server-reference-manifest.json +16 -16
- 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)/questions/page/server-reference-manifest.json +16 -16
- package/.next/standalone/packages/console/.next/server/app/(console)/questions/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/questions/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/settings/page/server-reference-manifest.json +16 -16
- 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/server-reference-manifest.json +16 -16
- 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 +16 -16
- 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/server-reference-manifest.json +16 -16
- 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/server-reference-manifest.json +16 -16
- 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 +16 -16
- 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 +16 -16
- 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 +16 -16
- 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/page.js.nft.json +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/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/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/version/route.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/[root-of-the-server]__06f_104._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/[root-of-the-server]__14r_nz7._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/[root-of-the-server]__1cfwaji._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/_1uqphll._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/0mxb_server_app_(console)_squadrons_blueprints_[name]_page_actions_170owr_.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/0mxb_server_app_(console)_squadrons_templates_[name]_page_actions_09abrr0.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_needs-crew_page_actions_08gu8-f.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_network_page_actions_1muuv-j.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_questions_page_actions_12d6yd2.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_settings_page_actions_0b6qztr.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_ships_[shipId]_page_actions_0g2nd1p.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_squadrons_page_actions_1x3afts.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_trierarchs_page_actions_1ow37mz.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/1eui__next-internal_server_app_(console)_needs-attention_page_actions_1jfgclw.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/1eui__next-internal_server_app_(console)_squadrons_[squadronId]_page_actions_1lzqlye.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/1eui__next-internal_server_app_(console)_trierarchs_[shipId]_page_actions_0l7bxva.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{[root-of-the-server]__0-cdyrs._.js → [root-of-the-server]__0_jpfes._.js} +2 -2
- package/.next/standalone/packages/console/.next/server/chunks/ssr/[root-of-the-server]__197gd9r._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0-xdh8c._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_00in26l._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_01eyvjo._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0584-vx._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_09_ui2l._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0cak8i7._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0i1lwyh._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0ie3s47._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_0j64h07._.js → _0jmht-i._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0ll55v1._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0nelrz_._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0or-_73._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_0covjby._.js → _0punyro._.js} +2 -2
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0q2azsd._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0qrugya._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0r-y7ty._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0tree1w._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0vw1jgi._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0wxg7hg._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0wy-ep_._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_11s1izd._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_127j_99._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_130xl-e._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_13q51ov._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_15_xzod._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1615ei-._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_18ym0gp._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_195z53h._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1adtjss._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1buuyye._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1cgq4el._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1geqwzr._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1hs5dvz._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1lbotqi._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1lr2spu._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1mk5_2i._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1or2awi._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1qdwv0j._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1r9nd0e._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1u0h4gj._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1vwkopd._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1wmq3ah._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_094j312._.js → _20i0fo8._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/node_modules_next_dist_1v8aef8._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_common_dist_1_gq_cl._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_1d_-h2q._.js → packages_console_01vespm._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_1wz4x-4._.js → packages_console_02tq-5j._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_0n040z7._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console__next-internal_server_app_(console)_inbox_page_actions_0q9_xye.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console__next-internal_server_app_(console)_labels_page_actions_0tk7mqs.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console__next-internal_server_app_(console)_page_actions_1ftjjyq.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_app_(console)_needs-attention_page_tsx_03s6y-o._.js +1 -1
- 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)_ships_[shipId]_ship-page_tsx_0oahz0r._.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_1_88pm4._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_components_1cwibut._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_components_1s1xs87._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_features_09sf9lq._.js → packages_console_features_1_fszuc._.js} +2 -2
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_features_ship_1ndu25i._.js +60 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_features_ship_organisms_message-sheet_tsx_0quy9k0._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_features_squadrons_organisms_form-squadron-dialog_tsx_1dtyrny._.js → packages_console_features_squadrons_organisms_form-squadron-dialog_tsx_143srw6._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_features_trierarchs_organisms_clear-worktree-dialog_tsx_0tjq_85._.js → packages_console_features_trierarchs_organisms_clear-worktree-dialog_tsx_0mlws3e._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_lib_11xnux-._.js +1 -1
- package/.next/standalone/packages/console/.next/server/functions-config-manifest.json +2 -2
- package/.next/standalone/packages/console/.next/server/middleware-build-manifest.js +3 -3
- 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 +17 -17
- package/.next/standalone/packages/console/.next/static/JdC0gQewmBAtNW6TcHLnI/_clientMiddlewareManifest.js +6 -0
- package/.next/standalone/packages/console/.next/static/chunks/024gtos6941vd.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/0bb19hfyc42kn.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{2livhrlemepl2.js → 0hdn93y7e5xwj.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{05bfzj94tyl8h.js → 0jla970vmpygy.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{1m-y884h34ihx.js → 0jvnv44qtww0y.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/0r2pzmadty78a.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{272z35i6ulqd6.js → 0rr9rjc_bc3gf.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{2ys91r118pnlx.js → 0t6-mtlfuonvu.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/0yi6kd19bc8bq.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{1gzb5gjzdx1fj.js → 13adqemu7o09r.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/14gq9h4bre4zl.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/1bh-eec4wo6y4.css +3 -0
- package/.next/standalone/packages/console/.next/static/chunks/1cg31hv7ug_rw.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/1d60j998mgxed.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{22vsj-fp7lwfm.js → 1ek70m0owmcgq.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{0pxkg9fqe7c2a.js → 1kzen4nzgfhzx.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/1p87dal8vyega.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/1s_391feiypzt.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/1z5kuqw6npyei.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/26b3un_8lel5h.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/28eaginqf0r6l.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{2olrngonwovg1.js → 2euphq2qdtm42.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/2ghnwtwxugay1.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/2iwxdddbd25in.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/2jf-hefdqyy1k.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/2kx4hg-vr3v9r.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{2y1ychuj013ho.js → 2mlx4u2m3gj4n.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{440cmkngdnwjl.js → 2otflfbehbza4.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/2umcallzycy-l.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/2vjnc-m734xfm.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{3xerv7zkfjj5f.js → 2vnmap15_4ik5.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/2w9atwkwe6d4r.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/3-d52kayngqrj.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/31e5y4a7udpwd.js +58 -0
- package/.next/standalone/packages/console/.next/static/chunks/38apellmoht8h.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/3cajv70h_jwc3.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/3dmesrmg4eee9.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/3dok--efprx9e.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/3fz2o2p_07f9u.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/3nkqw06zkp9-v.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/3sgvr4qucbnoq.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/3xpa57z5k1j9u.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/41sjts3oeho4o.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/4415nlj5ho-d-.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/_02c2pnv._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_03-jvct._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_035_swl._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_05dxqcz._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_07efnzg._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_07l5_l3._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0_ygpqq._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0c_dtjp._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0gfonj-._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0mjh8m_._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0vz062m._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0wv-tvp._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0xokkhj._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0z4io62._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_109o83b._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_10j98zy._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_152z7nf._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_17tqcfc._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_18-oreb._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1ufgm_3._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1yexojo._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_03so5ip._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_17uhaar._.js +0 -3
- package/.next/standalone/packages/console/.next/static/chunks/0_r81qz0t6xsb.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/0l3upkkc_8emb.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/0n7_dj8kftk93.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/0nxdhjyy-zyni.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/0pzres1skm0vd.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/0y-anncq_7ras.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/1-im18syfc51b.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/11eajkv31amlr.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/1232gyv4_vuub.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/1awzsmwjij89c.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/1cq5tafbz355h.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/1f240mm0pzkqj.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/1m0eh_ikmo5ic.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/1mafl-ltllhnb.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/1oyal008jxtu5.css +0 -3
- package/.next/standalone/packages/console/.next/static/chunks/1x6i4cu_ma77o.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/23yi1fmk4otyc.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/2c9rf46r9v6zt.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/2l7o37ff43udf.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/2ncq4nhbwsdgs.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/2ng2rk4mda8q7.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/2xfw5mgj7ik9t.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/2zx0k65lh804w.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/339os1nkzjvc6.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/39rzz1f2t8dal.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/3b6yqiji78oyk.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/3ee04cqroz80b.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/3ltpx0tfiz0nk.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/3n_6jrpcjyg8-.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/3vuchf-sh4562.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/43-fwug3m1u53.js +0 -1
- package/.next/standalone/packages/console/.next/static/iw5z49XK6S1K0nY0iLzCo/_clientMiddlewareManifest.js +0 -6
- /package/.next/standalone/packages/console/.next/static/{iw5z49XK6S1K0nY0iLzCo → JdC0gQewmBAtNW6TcHLnI}/_buildManifest.js +0 -0
- /package/.next/standalone/packages/console/.next/static/{iw5z49XK6S1K0nY0iLzCo → JdC0gQewmBAtNW6TcHLnI}/_ssgManifest.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,31421,e=>{"use strict";var t=e.i(71645),a=e.i(46376),s=e.i(88015);e.s(["useAriaLabelledBy",0,function(e,r,n,i=!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||!i?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}(n.current,u);o!==t&&d(t)}),c}])},86698,e=>{"use strict";e.s(["serializeValue",0,function(e){if(null==e)return"";if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}])},13203,65858,84325,42191,50001,18438,e=>{"use strict";var t=e.i(71645);e.s(["useOnFirstRender",0,function(e){let a=t.useRef(!0);a.current&&(a.current=!1,e())}],13203);var a=e.i(29315),s=e.i(83977),r=e.i(46376),n=e.i(88940),i=e.i(90627),l=e.i(46420),o=e.i(56341);e.s(["useFloatingRootContext",0,function(e){let{open:t=!1,onOpenChange:d,elements:u={}}=e,c=(0,s.useId)(),m=null!=(0,l.useFloatingParentNodeId)(),h=(0,n.useRefWithInit)(()=>new o.FloatingRootStore({open:t,transitionStatus:void 0,onOpenChange:d,referenceElement:u.reference??null,floatingElement:u.floating??null,triggerElements:new i.PopupTriggerMap,floatingId:c,syncOnly:!1,nested:m})).current;return(0,r.useIsoLayoutEffect)(()=>{let e={open:t,floatingId:c};void 0!==u.reference&&(e.referenceElement=u.reference,e.domReferenceElement=(0,a.isElement)(u.reference)?u.reference:null),void 0!==u.floating&&(e.floatingElement=u.floating),h.update(e)},[t,c,u.reference,u.floating,h]),h.context.onOpenChange=d,h.context.nested=m,h}],65858);let d=(e,t)=>Object.is(e,t);function u(e,t,a){return null==e||null==t?Object.is(e,t):a(e,t)}function c(e,t,a){return!!e&&e.some(e=>void 0!==e&&u(t,e,a))}function m(e,t,a){return e?e.findIndex(e=>void 0!==e&&u(e,t,a)):-1}function h(e,t,a,s){let r=s&&Array.isArray(t)?e.findIndex(function(e,t){if(t!==d)return a=>c(e,a,t);let a=new Set(e);return a.delete(void 0),t=>a.has(t)&&(0!==t||e.some(e=>Object.is(t,e)))}(t,a)):m(e,t,a);return -1===r?null:r}e.s(["compareItemEquality",0,u,"defaultItemEquality",0,d,"findItemIndex",0,m,"findSelectionIndex",0,h,"isSelectedValueDirty",0,function(e,t,a){return Array.isArray(e)&&Array.isArray(t)?!function(e,t,a=Object.is){let{length:s}=e;if(s!==t.length)return!1;for(let r=0;r<s;r+=1)if(!a(e[r],t[r]))return!1;return!0}(e,t,(e,t)=>u(e,t,a)):e!==t},"removeItem",0,function(e,t,a){return e.filter(e=>!u(t,e,a))},"resolveSelectedIndex",0,function(e,t,a,s,r,n){return c(s,t,r)?null!=n&&e>n&&c(s,a[n],r)?n:e:e===n?h(a,s,r,!0):n},"selectedValueIncludes",0,c],84325);var f=e.i(86698),p=e.i(43476);function x(e){var t;return"object"==typeof(t=e?.[0])&&null!=t&&Array.isArray(t.items)}function g(e){return x(e)?e.flatMap(e=>e.items):e}function b(e,t){if(t&&null!=e)return t(e)??"";if(e&&"object"==typeof e){if("label"in e&&null!=e.label)return String(e.label);if("value"in e)return String(e.value)}return(0,f.serializeValue)(e)}function v(e,t,a){if(a&&null!=e)return a(e);if(e&&"object"==typeof e&&"label"in e&&null!=e.label)return e.label;if(t&&!Array.isArray(t))return(Object.hasOwn(t,e)?t[e]:void 0)??b(e,a);if(Array.isArray(t)){let s=g(t);if(null==e||"object"!=typeof e){let t=s.find(t=>t.value===e);return t&&null!=t.label?t.label:b(e,a)}if("value"in e){let t=s.find(t=>t&&t.value===e.value);if(t&&null!=t.label)return t.label}}return b(e,a)}e.s(["flattenLeafItems",0,g,"hasNullItemLabel",0,function(e){if(!Array.isArray(e))return null!=e&&"null"in e;if(x(e)){for(let t of e)for(let e of t.items)if(e&&null==e.value&&null!=e.label)return!0;return!1}for(let t of e)if(t&&null==t.value&&null!=t.label)return!0;return!1},"isGroupedItems",0,x,"resolveMultipleLabels",0,function(e,a,s){return e.reduce((e,r,n)=>(n>0&&e.push(", "),e.push((0,p.jsx)(t.Fragment,{children:v(r,a,s)},n)),e),[])},"resolveSelectedLabel",0,v,"stringifyAsLabel",0,b,"stringifyAsValue",0,function(e,t){return t&&null!=e?t(e)??"":e&&"object"==typeof e&&"value"in e&&"label"in e?(0,f.serializeValue)(e.value):(0,f.serializeValue)(e)}],42191),e.s(["getDefaultLabelId",0,function(e){return null==e?void 0:`${e}-label`},"resolveAriaLabelledBy",0,function(e,t){return e??t}],50001);var y=e.i(52245);let k=t.forwardRef(function(e,t){let{className:a,render:s,orientation:r="horizontal",style:n,...i}=e;return(0,y.useRenderElement)("div",e,{state:{orientation:r},ref:t,props:[{role:"presentation"},i]})});e.s(["ListboxSeparator",0,k],18438)},79432,19002,11147,e=>{"use strict";var t=e.i(56420);let a={name:"activity",size:24,node:[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]};a.node;let s=(0,t.default)(a);e.s(["Activity",0,s],79432);let r={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"]};r.node;let n=(0,t.default)(r);e.s(["CirclePause",0,n],19002);let i={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"]};i.node;let l=(0,t.default)(i);e.s(["OctagonPause",0,l],11147)},37750,e=>{"use strict";var t=e.i(56420);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 s=(0,t.default)(a);e.s(["AppWindow",0,s],37750)},71567,e=>{"use strict";var t=e.i(56420);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 s=(0,t.default)(a);e.s(["Bot",0,s],71567)},92150,e=>{"use strict";var t=e.i(56420);let a={name:"boxes",size:24,node:[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]};a.node;let s=(0,t.default)(a);e.s(["Boxes",0,s],92150)},16327,e=>{"use strict";var t=e.i(56420);let a={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};a.node;let s=(0,t.default)(a);e.s(["ChevronDown",0,s],16327)},24071,e=>{"use strict";var t=e.i(56420);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)},67927,e=>{"use strict";var t=e.i(56420);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],67927)},8734,e=>{"use strict";var t=e.i(56420);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],8734)},31458,e=>{"use strict";var t=e.i(56420);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 s=(0,t.default)(a);e.s(["Flag",0,s],31458)},69309,e=>{"use strict";var t=e.i(56420);let a={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"}]]};a.node;let s=(0,t.default)(a);e.s(["Plug",0,s],69309)},77071,e=>{"use strict";var t=e.i(56420);let a={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};a.node;let s=(0,t.default)(a);e.s(["Plus",0,s],77071)},66595,e=>{"use strict";var t=e.i(56420);let a={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};a.node;let s=(0,t.default)(a);e.s(["Search",0,s],66595)},30274,e=>{"use strict";var t=e.i(56420);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],30274)},19759,e=>{"use strict";var t=e.i(56420);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],19759)},83035,e=>{"use strict";var t=e.i(56420);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 s=(0,t.default)(a);e.s(["SquareTerminal",0,s],83035)},80799,e=>{"use strict";var t=e.i(56420);let a={name:"tag",size:24,node:[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]};a.node;let s=(0,t.default)(a);e.s(["Tag",0,s],80799)},68401,e=>{"use strict";var t=e.i(56420);let a={name:"tags",size:24,node:[["path",{d:"M13.172 2a2 2 0 0 1 1.414.586l6.71 6.71a2.4 2.4 0 0 1 0 3.408l-4.592 4.592a2.4 2.4 0 0 1-3.408 0l-6.71-6.71A2 2 0 0 1 6 9.172V3a1 1 0 0 1 1-1z",key:"16rjxf"}],["path",{d:"M2 7v6.172a2 2 0 0 0 .586 1.414l6.71 6.71a2.4 2.4 0 0 0 3.191.193",key:"178nd4"}],["circle",{cx:"10.5",cy:"6.5",r:".5",fill:"currentColor",key:"12ikhr"}]]};a.node;let s=(0,t.default)(a);e.s(["Tags",0,s],68401)},94831,e=>{"use strict";var t=e.i(56420);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],94831)},36651,e=>{"use strict";var t=e.i(43476),a=e.i(90063);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})}])},91727,e=>{"use strict";var t=e.i(43476),a=e.i(90063);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})}])},19321,e=>{"use strict";var t=e.i(43476),a=e.i(90063);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})}])},75867,e=>{"use strict";var t=e.i(43476);e.s([],24305),e.i(24305);var a=e.i(71645),s=e.i(51437),r=e.i(28918),n=e.i(46376),i=e.i(2077),l=e.i(56789),o=e.i(52245),d=e.i(88015),u=e.i(40886),c=e.i(33332);let m=a.createContext(void 0),h={...e.i(75812).fieldValidityMapping,checked:e=>e?{"data-checked":""}:{"data-unchecked":""}};var f=e.i(64350),p=e.i(69690),x=e.i(81104),g=e.i(84708),b=e.i(47778),v=e.i(31421),y=e.i(38489),k=e.i(75606),j=e.i(56434),w=e.i(6039);let N=a.forwardRef(function(e,c){let{checked:N,className:S,defaultChecked:z,"aria-labelledby":C,form:M,id:R,inputRef:A,name:L,nativeButton:T=!1,onCheckedChange:O,readOnly:E=!1,required:I=!1,disabled:q=!1,render:V,uncheckedValue:$,value:P,style:B,...D}=e,{clearErrors:F}=(0,g.useFormContext)(),{state:H,setTouched:K,setDirty:_,validityData:W,setFilled:U,setFocused:J,validationMode:G,disabled:Z,name:Q,validation:Y}=(0,p.useFieldRootContext)(),{labelId:X}=(0,b.useLabelableContext)(),ee=Z||q,et=Q??L,ea=a.useRef(null),es=(0,r.useMergedRefs)(ea,A,Y.inputRef),er=a.useRef(null),en=(0,d.useBaseUiId)(),ei=(0,y.useLabelableId)({id:R}),el=T?void 0:ei,[eo,ed]=(0,s.useControlled)({controlled:N,default:!!z,name:"Switch",state:"checked"});(0,x.useRegisterFieldControl)(er,en,eo,void 0,!ee,L),(0,n.useIsoLayoutEffect)(()=>{U(eo)},[eo,U]),(0,w.useValueChanged)(eo,()=>{F(et),_(eo!==W.initialValue),Y.change(eo)});let{getButtonProps:eu,buttonRef:ec}=(0,u.useButton)({disabled:ee,native:T}),em=(0,v.useAriaLabelledBy)(C,X,ea,!T,el),eh={...Y.getValidationProps(ee),checked:eo,disabled:ee,form:M,id:el,name:et,required:I,style:et?i.visuallyHiddenInput:i.visuallyHidden,tabIndex:-1,type:"checkbox","aria-hidden":!0,ref:es,onChange(e){if(e.nativeEvent.defaultPrevented)return;if(E)return void e.preventDefault();let t=e.currentTarget.checked,a=(0,k.createChangeEventDetails)(j.REASONS.none,e.nativeEvent);O?.(t,a),a.isCanceled||ed(t)},onClick(e){e.stopPropagation()},onFocus(){er.current?.focus()},...void 0!==P?{value:P}:l.EMPTY_OBJECT},ef=a.useMemo(()=>({...H,checked:eo,disabled:ee,readOnly:E,required:I}),[H,eo,ee,E,I]),ep=(0,o.useRenderElement)("span",e,{state:ef,ref:[c,er,ec],props:[{id:T?ei:en,role:"switch","aria-checked":eo,"aria-readonly":E||void 0,"aria-required":I||void 0,"aria-labelledby":em,onFocus(){ee||J(!0)},onBlur(){let e=ea.current;e&&!ee&&(K(!0),J(!1),"onBlur"===G&&Y.commit(e.checked))},onClick(e){if(E||ee)return;e.preventDefault();let t=ea.current;t&&(0,f.dispatchClickWithModifiers)(t,e)}},D,eu,e=>Y.getValidationProps(ee,e)],stateAttributesMapping:h});return(0,t.jsxs)(m.Provider,{value:ef,children:[ep,!eo&&et&&void 0!==$&&(0,t.jsx)("input",{type:"hidden",form:M,name:et,value:$,disabled:ee}),(0,t.jsx)("input",{...eh,suppressHydrationWarning:!0})]})}),S=a.forwardRef(function(e,t){let{render:s,className:r,style:n,...i}=e,l=function(){let e=a.useContext(m);if(void 0===e)throw Error((0,c.default)(63));return e}();return(0,o.useRenderElement)("span",e,{state:l,ref:t,stateAttributesMapping:h,props:i})});e.s(["Root",0,N,"Thumb",0,S],50994);var z=e.i(50994),z=z,C=e.i(90063);e.s(["Switch",0,function({className:e,...a}){return(0,t.jsx)(z.Root,{"data-slot":"switch",className:(0,C.classNames)("peer inline-flex h-5 w-8.5 shrink-0 items-center rounded-full border border-transparent bg-input p-0.5 transition-colors duration-(--duration-fast) outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring data-checked:bg-primary data-disabled:opacity-45",e),...a,children:(0,t.jsx)(z.Thumb,{"data-slot":"switch-thumb",className:"pointer-events-none block size-4 rounded-full bg-card shadow-sm transition-transform duration-(--duration-fast) data-checked:translate-x-3.5"})})}],75867)},14732,e=>{"use strict";var t=e.i(43476),a=e.i(90063);e.s(["Table",0,function({className:e,...s}){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,a.classNames)("w-full caption-bottom text-body",e),...s})})},"TableBody",0,function({className:e,...s}){return(0,t.jsx)("tbody",{"data-slot":"table-body",className:(0,a.classNames)("[&_tr:last-child]:border-0",e),...s})},"TableCell",0,function({className:e,...s}){return(0,t.jsx)("td",{"data-slot":"table-cell",className:(0,a.classNames)("px-4 align-middle",e),...s})},"TableHead",0,function({className:e,...s}){return(0,t.jsx)("th",{"data-slot":"table-head",className:(0,a.classNames)("px-4 text-left align-middle text-caption font-medium whitespace-nowrap text-muted-foreground",e),...s})},"TableHeader",0,function({className:e,...s}){return(0,t.jsx)("thead",{"data-slot":"table-header",className:(0,a.classNames)("bg-muted [&_tr]:border-b",e),...s})},"TableRow",0,function({className:e,...s}){return(0,t.jsx)("tr",{"data-slot":"table-row",className:(0,a.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),...s})}])},67874,e=>{"use strict";var t=e.i(43476),a=e.i(90063);e.s(["EmptyState",0,function({title:e,description:s,icon:r,action:n,variant:i="page",className:l}){return"section"===i?(0,t.jsxs)("p",{"data-slot":"empty-state","data-variant":i,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"===i?(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":i,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":i,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,n?(0,t.jsx)("div",{className:"mt-1 max-sm:w-full max-sm:[&>*]:w-full",children:n}):null]})}])},62687,e=>{"use strict";var t=e.i(43476),a=e.i(22016),s=e.i(90063);e.s(["FleetSegments",0,function({active:e,needsCrewCount:r}){let n=e=>(0,s.classNames)("flex h-(--size-control-touch) grow items-center justify-center gap-1.5 rounded-md text-body-touch font-medium",e?"bg-card text-foreground shadow-sm":"text-muted-foreground");return(0,t.jsxs)("nav",{"aria-label":"Fleet views",className:"flex gap-0.5 rounded-lg border border-border bg-muted p-0.5 sm:hidden","data-testid":"fleet-segments",children:[(0,t.jsx)(a.default,{href:"/","aria-current":"ships"===e?"page":void 0,className:n("ships"===e),"data-testid":"fleet-segment-ships",children:"Ships"}),(0,t.jsxs)(a.default,{href:"/needs-crew","aria-current":"needs-crew"===e?"page":void 0,className:n("needs-crew"===e),"data-testid":"fleet-segment-needs-crew",children:["Needs crew",void 0===r||0===r?null:(0,t.jsx)("span",{className:"text-micro tabular-nums",children:r})]})]})}])},95960,e=>{"use strict";var t=e.i(43476),a=e.i(92150),s=e.i(49287),r=e.i(86875),n=e.i(56420);let i={name:"tag-x",size:24,node:[["path",{d:"m16.5 6.5-3.914-3.914A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.43 2.43 0 0 0 3.42 0l1.79-1.79",key:"hu94c9"}],["path",{d:"m16.5 10.5 5 5",key:"1jo8bf"}],["path",{d:"m21.5 10.5-5 5",key:"jzei60"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]};i.node;let l=(0,n.default)(i);var o=e.i(63676),d=e.i(90063),u=e.i(80581);let c={"trierarch-plugin":r.ShipWheel,squadrons:a.Boxes,ship:s.Ship,gone:l};e.s(["LabelChip",0,function({chip:e,onRemove:a,testId:s,className:r,trailing:n,meaning:i}){let l="none"===e.mark?null:c[e.mark],m=`${e.key}=${e.value}`,h=void 0===i?(0,u.chipTitleOf)(e):`${(0,u.chipTitleOf)(e)}. ${i}`;return(0,t.jsxs)("span",{role:"group","aria-label":h,"data-slot":"label-chip","data-testid":s,title:h,className:(0,d.classNames)("inline-flex h-5.5 max-w-full min-w-0 shrink-0 items-center gap-1 rounded-sm border border-border bg-secondary px-1.5 font-mono text-id whitespace-nowrap text-foreground [&_svg]:size-3 [&_svg]:shrink-0 [&_svg]:text-muted-foreground","gone"===e.mark?"border-dashed":null,r),children:[null===l?null:(0,t.jsx)(l,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"truncate",children:[(0,t.jsxs)("span",{className:"text-muted-foreground",children:[e.key,"="]}),(0,t.jsx)("span",{className:"font-medium",children:e.value})]}),n,void 0===a?null:(0,t.jsx)("button",{type:"button","aria-label":`Remove ${m}`,onClick:a,className:"-mr-1 ml-0.5 inline-flex size-4 items-center justify-center rounded-xs text-muted-foreground hover:bg-accent hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring",children:(0,t.jsx)(o.X,{"aria-hidden":!0})})]})}],95960)},77435,e=>{"use strict";var t=e.i(43476),a=e.i(71028);e.s(["LimitNotice",0,function({title:e,description:s,accountUrl:r,testId:n}){return(0,t.jsxs)("div",{role:"status","data-testid":n,className:"flex gap-2 rounded-lg border border-tone-attention-border bg-tone-attention-bg p-3 text-tone-attention-fg",children:[(0,t.jsx)(a.Gauge,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon) shrink-0"}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("p",{className:"text-body font-medium",children:e}),(0,t.jsx)("p",{className:"text-meta text-foreground",children:s}),void 0===r?null:(0,t.jsx)("a",{href:r,className:"self-start text-meta font-medium text-tone-attention-fg underline underline-offset-2","data-testid":void 0===n?void 0:`${n}-view`,children:"View limits"})]})]})}])},88393,e=>{"use strict";var t=e.i(43476),a=e.i(90063),s=e.i(19321);function r(e){return Array.from({length:e},(e,t)=>`row-${String(t)}`)}e.s(["LoadingSkeleton",0,function({variant:e,rows:n=4,label:i="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:i}),"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(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: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(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]})}])},63481,e=>{"use strict";var t=e.i(43476),a=e.i(37750),s=e.i(71567),r=e.i(56420);let n={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"}]]};n.node;let i=(0,r.default)(n),l={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"}]]};l.node;let o=(0,r.default)(l),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 u=(0,r.default)(d),c={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"}]]};c.node;let m=(0,r.default)(c),h={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"}]]};h.node;let f=(0,r.default)(h);var p=e.i(83035),x=e.i(94831),g=e.i(90063),b=e.i(66616),v=e.i(40798);let y={DEVICE:o,CLOUD:i,SERVER:f,OTHER:u},k={coding:p.SquareTerminal,chat:m,bot:s.Bot,console:a.AppWindow},j={md:"text-body",sm:"text-meta"};e.s(["LocationTag",0,function({kind:e,description:a=null,harness:s=null,isCompact:r=!1,size:n="md",className:i}){let l=(0,g.classNames)("inline-flex min-w-0 items-center gap-1.5 text-muted-foreground [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",j[n],i);if(null===e)return(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,children:[(0,t.jsx)(x.Unplug,{"aria-hidden":!0}),"No session"]});let o=y[e],d=(0,v.locationKindWord)(e),u=null===a?d:`${d} \xb7 ${a}`;if(null!==s){let e=(0,b.harnessKind)(s),r=void 0===e?void 0:k[e],n=(0,b.harnessWord)(s);return(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,title:null===a?`${n} \xb7 ${d}`:`${n} \xb7 ${d}: ${a}`,children:[void 0===r?null:(0,t.jsx)(r,{"aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate text-foreground",children:n}),(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 r?(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,title:u,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:l,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})]})]})]})}],63481)},81830,e=>{"use strict";var t=e.i(43476),a=e.i(79432),s=e.i(19002),r=e.i(11147),n=e.i(90063),i=e.i(49635),l=e.i(93361);let o={working:a.Activity,blocked:r.OctagonPause,idle:s.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:s,isTimeInTitle:r=!1,testId:u}){let c="full"===s,m=(0,n.classNames)("flex min-w-0 items-center gap-1.5",c?"text-body":"text-meta");if(null===e)return(0,t.jsx)("span",{"data-testid":u,"data-state":"none",className:(0,n.classNames)(m,"text-muted-foreground"),children:"No report yet"});let h=o[e.state],f=d[l.REPORT_TONES[e.state]],p=new Date(e.reportedAt);return(0,t.jsxs)("span",{"data-testid":u,"data-state":e.state,title:r?`${(0,l.reportText)(e)} \xb7 ${(0,l.reportedWhen)(p,a)}`:(0,l.reportText)(e),className:m,children:[(0,t.jsx)(h,{"aria-hidden":!0,className:(0,n.classNames)("size-(--size-icon-sm) shrink-0",f)}),(0,t.jsx)("span",{className:(0,n.classNames)("shrink-0 font-medium",f),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}),r?null:(0,t.jsx)("time",{dateTime:e.reportedAt,title:(0,i.fullDateTime)(p),className:"shrink-0 text-muted-foreground tabular-nums",children:c?`\xb7 ${(0,l.reportedWhen)(p,a)}`:(0,l.reportAge)(p,a)})]})}])},39448,e=>{"use strict";var t=e.i(43476),a=e.i(25913),s=e.i(22016),r=e.i(90063);let n=(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:i,isSuffixShown:l=!1,isOperator:o=!1,href:d,className:u}){let c=d?(0,t.jsx)(s.default,{href:d,className:(0,r.classNames)(n({size:i}),"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:n({size:i}),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]})}])},1935,e=>{"use strict";var t=e.i(43476),a=e.i(60011),s=e.i(22016),r=e.i(90063);e.s(["SquadronTag",0,function({squadronId:e,role:n,size:i="md",className:l}){return(0,t.jsxs)(s.default,{href:`/squadrons/${e}`,"data-slot":"squadron-tag",className:(0,r.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"===i?"h-5.5 text-meta":"h-6 text-body",l),children:[(0,t.jsx)(a.Shapes,{"aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate font-medium",children:e}),void 0!==n&&(0,t.jsxs)("span",{className:"shrink-0 text-muted-foreground",children:["· ",n]})]})}])},77880,85538,e=>{"use strict";var t=e.i(43476),a=e.i(67927),s=e.i(66595),r=e.i(19759),n=e.i(22016),i=e.i(15905),l=e.i(36651),o=e.i(90063);let d={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 u({state:e,className:a}){let{label:s,dot:r}=d[e];return(0,t.jsxs)("span",{"data-slot":"live-status","data-state":e,"aria-live":"polite",className:(0,o.classNames)("inline-flex items-center gap-1.5 text-meta text-muted-foreground",a),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:(0,o.classNames)("size-2 shrink-0 rounded-full",r)}),s]})}e.s(["Header",0,function({breadcrumb:e,parents:o=[],live:d,onCompose:c,onSearch:m}){return(0,t.jsxs)("header",{"data-slot":"header",className:"sticky top-0 z-30 hidden h-(--size-header) shrink-0 items-center justify-between gap-4 border-b border-border bg-background px-6 sm:flex",children:[(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:[o.map(e=>(0,t.jsxs)("li",{className:"flex shrink-0 items-center gap-1.5",children:[(0,t.jsx)(n.default,{href:e.href,className:"text-muted-foreground hover:text-foreground hover:underline",children:e.label}),(0,t.jsx)(a.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})]})}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(u,{state:d}),m?(0,t.jsxs)(i.Button,{size:"sm",icon:(0,t.jsx)(s.Search,{"aria-hidden":!0}),"data-testid":"header-search",className:"w-60 justify-start font-normal text-muted-foreground",onClick:m,children:[(0,t.jsx)("span",{className:"grow text-left",children:"Search ships or jump to"}),(0,t.jsx)(l.Kbd,{children:"⌘K"})]}):null,c?(0,t.jsx)(i.Button,{size:"sm",icon:(0,t.jsx)(r.SquarePen,{"aria-hidden":!0}),"data-testid":"header-compose",onClick:c,children:"Compose"}):null]})]})}],77880);var c=e.i(24071),m=e.i(57957);e.s(["TopBar",0,function({title:e,live:a,actions:r,back:l,account:o,onSearch:d}){let h=d&&!l?d:void 0;return(0,t.jsxs)("header",{"data-slot":"top-bar","data-mode":l?"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:[l?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(n.default,{href:l.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)(c.ChevronLeft,{"aria-hidden":!0}),l.label]}),(0,t.jsx)("p",{className:"min-w-0 flex-1 truncate text-center text-body-touch font-semibold text-foreground",children:e})]}):(0,t.jsx)("h1",{className:"truncate text-title-touch font-semibold tracking-tight text-foreground",children:e}),(0,t.jsx)(u,{state:a}),r||h||o&&!l?(0,t.jsxs)("div",{className:"ml-auto flex items-center gap-1",children:[h?(0,t.jsx)(i.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Search ships or jump to","data-testid":"top-bar-search",onClick:h,children:(0,t.jsx)(s.Search,{"aria-hidden":!0})}):null,r,o&&!l?(0,t.jsx)(m.AccountMenuSheet,{...o}):null]}):null]})}],85538)},77821,e=>{"use strict";var t=e.i(43476),a=e.i(19759),s=e.i(15905),r=e.i(77880),n=e.i(85538);e.s(["ListPage",0,function({title:e,description:i,titleMeta:l,primaryAction:o,toolbar:d,live:u,onCompose:c,onSearch:m,account:h,banner:f,children:p}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Header,{breadcrumb:e,live:u,onCompose:c,onSearch:m}),f,(0,t.jsx)(n.TopBar,{title:e,live:u,account:h,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:hidden",children:e}),l]}),i?(0,t.jsx)("p",{className:"text-meta text-muted-foreground max-sm:text-body-touch",children:i}):null]}),o?(0,t.jsx)("div",{className:"shrink-0 max-sm:w-full max-sm:[&>*]:w-full",children:o}):null]}),d,p]})]})}])},8041,e=>{"use strict";var t=e.i(14695);function a(e,t){for(let a of t)e.includes(a)||e.push(a)}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 r(e){let[t]=e?.repositories??[];if(void 0!==t)return{kind:"worktree",repository:t};let[a]=e?.folders??[];return void 0===a?void 0:{kind:"folder",name:a}}function n(e){let[t]=e;return{harness:t?.harness??"",workspace:r(t),options:s(t),firstPrompt:"",squadron:"",machineLabels:[]}}let i=new TextEncoder;function l(e){return i.encode(e).byteLength}function o(e){return e<1024?`${String(e)} B`:`${(e/1024).toFixed(1).replace(/\.0$/,"")} KB`}e.s(["byteSize",0,o,"defaultValues",0,n,"offersOf",0,function(e){let s=[];for(let r of e)if(!r.isSilent&&null!==r.details)for(let e of r.details.harnesses){let n=s.find(t=>t.harness===e.harness);for(let i of(void 0===n&&(n={harness:e.harness,repositories:[],folders:[],options:[]},s.push(n)),a(n.repositories,r.details.workspaces.repositories),a(n.folders,r.details.workspaces.folders),(0,t.harnessOptions)(e.options))){let e=n.options.find(e=>e.name===i.name);void 0===e?n.options.push({...i,values:[...i.values]}):(a(e.values,i.values),e.defaultValue??=i.defaultValue)}}return s},"promptBytes",0,l,"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:a,options:s,firstPrompt:r,squadron:n}=e;return[{label:"Harness",value:t??"Trierarch default"},"worktree"===a.kind?{label:"Workspace",value:a.repository,meta:"New worktree"}:{label:"Workspace",value:a.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===r?null:o(l(r))},{label:"Squadron",value:n??null,isMono:!0}]},"valuesOf",0,function(e,t){if(null==e)return n(t);let{harness:a,workspace:s,options:r,firstPrompt:i,squadron:l,machineLabels:o}=e;return{harness:a??n(t).harness,workspace:"worktree"===s.kind?{kind:"worktree",repository:s.repository}:{kind:"folder",name:s.name},options:Object.fromEntries(Object.entries(r).flatMap(([e,t])=>"string"==typeof t?[[e,t]]:[])),firstPrompt:i??"",squadron:l??"",machineLabels:[...o??[]]}},"withHarness",0,function(e,t){let{harness:a,offers:n}=t,i=n.find(e=>e.harness===a),l=e.workspace,o=void 0!==l&&("worktree"===l.kind?i?.repositories.includes(l.repository)??!1:i?.folders.includes(l.name)??!1);return{...e,harness:a,workspace:o?l:r(i),options:s(i)}}])},66616,e=>{"use strict";var t=e.i(49635);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 s(e){return a[e]?.word??e}e.s(["crewLineHarnessWord",0,function(e){return"chat"===e?"Chat":s(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 s=(0,t.relativeTime)(new Date(e.modelsConfirmedAt),a);return`${e.version} \xb7 models confirmed ${"Just now"===s?"just now":s}`},"harnessKind",0,function(e){return a[e]?.kind},"harnessWord",0,s])},18423,e=>{"use strict";var t=e.i(12598),a=e.i(5861),s=e.i(71645),r=e.i(42454),n=e.i(27702);let i=new Set(["FleetInitialised","ShipCommissioned","ShipClaimed","LeaseRevoked","CredentialRevoked","StartingPromptIssued","ShipRetired","DeliveryAcknowledged","DeliveryUndeliverable","ShipReported","CrewRequested","CrewRequestRemoved","CrewAssigned","CrewStatusChanged","CrewRequestExplained","CrewRequestGivenBack","LabelAssigned","LabelUnassigned","LabelRetired"]);async function l(e,t){await e.cancelQueries({queryKey:t,predicate:e=>void 0===e.state.data&&"fetching"===e.state.fetchStatus}),await e.invalidateQueries({queryKey:t})}let o=new Set(["LabelDefined","LabelValuesChanged","LabelRetired","LabelAssigned","LabelUnassigned","LabelDeleted"]),d=new Set(["DeliveryUndeliverable","DeliveryDismissed"]);e.s(["useLiveFleet",0,function(){let e=(0,n.useTRPC)(),u=(0,t.useQueryClient)(),[c,m]=(0,s.useState)(new Set),h=e=>{l(u,e)},f=(0,a.useSubscription)(e.fleet.events.subscriptionOptions({lastEventId:null},{onData:({data:t})=>{var a,s,n;if("resync"===t.kind)return void h(e.fleet.pathKey());let{event:l}=t;for(let t of new Set([l.shipId,l.actorShipId]))null!==t&&(h(e.fleet.ship.queryKey({shipId:t})),h(e.fleet.shipTimeline.queryKey({shipId:t})));if(null!==l.messageId&&(h(e.fleet.shipMessages.pathKey()),h(e.fleet.message.queryKey({messageId:l.messageId})),h(e.fleet.inbox.pathKey()),h(r.QUESTIONS_KEY)),a=l.type,d.has(a)&&h(e.fleet.needsAttention.queryKey()),s=l.type,o.has(s)&&h(e.fleet.labels.queryKey()),"NetworkRulesDeclared"===l.type&&h(e.fleet.declaredNetworkRules.queryKey()),n=l.type,!i.has(n))return;h(e.fleet.list.queryKey());let{shipId:u}=l;"ShipCommissioned"===l.type&&null!==u&&m(e=>new Set([...e,u]))}}));return{live:function(e){switch(e){case"pending":return"live";case"connecting":return"reconnecting";case"idle":case"error":return"offline"}}(f.status),newShipIds:c,error:f.error}}])},40798,e=>{"use strict";let t={DEVICE:"Device",CLOUD:"Cloud",SERVER:"Server",OTHER:"Other"};e.s(["locationKindWord",0,function(e){return t[e]}])},78608,e=>{"use strict";var t=e.i(80581);function a(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:r,shipLabelsMax:n}=s;return{groups:function(e,t){let s=t.map(t=>a(e,t)),r=[],n=[];for(let t of e.labels){let a=t.values.map(e=>({valueId:e.id,value:e.value,shipCount:s.filter(t=>t.includes(e.id)).length})),i={labelId:t.id,key:t.key,mark:e.ownerOf.get(t.id)?.mark??"ship",values:a};(a.some(e=>e.shipCount>0)?r:n).push(i)}let i=(e,t)=>e.key.localeCompare(t.key);return[{title:"On machines",keys:r.toSorted(i)},{title:"On no machine yet",keys:n.toSorted(i)}].filter(e=>e.keys.length>0)}(e,r),max:n,chipsOf:a=>(0,t.pickedChips)(a,e),matchOf:t=>{var s;return{matching:(s={machines:r,valueIds:t}).machines.filter(t=>{let r=a(e,t);return s.valueIds.every(e=>r.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"}}])},9176,e=>{"use strict";var t=e.i(46806),a=e.i(86165),s=e.i(265);e.s(["usePluginShipIds",0,function(){let e=(0,a.useSquadronsSettings)(),r=(0,s.useTrierarchPluginSettings)(),n=(0,t.useNetworkingPluginSettings)();return new Set([e.data,r.data,n.data].flatMap(e=>{if(void 0===e||"none"===e.state)return[];let t=e.ship?.shipId??e.lastShipId;return null===t?[]:[t]}))}])},93361,e=>{"use strict";var t=e.i(49635);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 s=Math.max(0,a.getTime()-e.getTime());return s<6e4?`${String(Math.floor(s/1e3))} s`:s<36e5?`${String(Math.floor(s/6e4))} min`:s<864e5?`${String(Math.floor(s/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 s=(0,t.relativeTime)(e,a);return`reported ${"Just now"===s?"just now":s}`}])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,91703,e=>{"use strict";var s=e.i(43476),t=e.i(83035),i=e.i(90063),o=e.i(61966);e.s(["CodeBlock",0,function({label:e,code:a,isWrapped:r=!1,copyValue:n,copyLabel:l=`Copy ${e.toLowerCase()}`,onCopied:d,onCopyFailed:c,codeTestId:p,copyTestId:u}){return(0,s.jsxs)("div",{"data-slot":"code-block",className:"overflow-hidden rounded-lg border border-border bg-muted",children:[(0,s.jsxs)("div",{className:"flex h-9 items-center justify-between gap-2 border-b border-border pr-1.5 pl-3",children:[(0,s.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5 text-caption text-muted-foreground",children:[(0,s.jsx)(t.SquareTerminal,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0"}),(0,s.jsx)("span",{className:"truncate",children:e})]}),(0,s.jsx)(o.CopyButton,{value:n??a,label:l,isLabeled:!0,onCopied:d,onCopyFailed:c,"data-testid":u})]}),(0,s.jsx)("pre",{"data-testid":p,className:(0,i.classNames)("overflow-x-auto px-3 py-3 font-mono text-code text-foreground",r?"break-all whitespace-pre-wrap":"whitespace-pre"),children:a})]})}])},61966,e=>{"use strict";var s=e.i(43476),t=e.i(89664),i=e.i(8734),o=e.i(71645),a=e.i(15905);e.s(["CopyButton",0,function({value:e,label:r,size:n="xs",isLabeled:l=!1,onCopied:d,onCopyFailed:c,className:p,"data-testid":u}){let[g,x]=(0,o.useState)(!1);async function h(){try{await navigator.clipboard.writeText(e)}catch{c?.();return}x(!0),d?.(),setTimeout(()=>{x(!1)},1500)}return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.Button,{variant:"ghost",size:n,isIconOnly:!l,"aria-label":r,title:l?void 0:r,icon:g?(0,s.jsx)(t.Check,{"aria-hidden":!0}):(0,s.jsx)(i.Copy,{"aria-hidden":!0}),className:p,"data-testid":u,onClick:()=>{h()},children:l?g?"Copied":"Copy":null}),(0,s.jsx)("span",{role:"status",className:"sr-only",children:g?"Copied.":""})]})}])},22212,e=>{"use strict";var s=e.i(43476),t=e.i(53753),i=e.i(90063),o=e.i(94945);e.s(["Dialog",0,function(e){return(0,s.jsx)(t.Dialog.Root,{"data-slot":"dialog",...e})},"DialogClose",0,function(e){return(0,s.jsx)(t.Dialog.Close,{"data-slot":"dialog-close",...e})},"DialogContent",0,function({className:e,size:a,children:r,...n}){return(0,s.jsxs)(t.Dialog.Portal,{children:[(0,s.jsx)(t.Dialog.Backdrop,{"data-slot":"dialog-overlay",className:o.dialogSurface.overlay}),(0,s.jsx)(t.Dialog.Popup,{"data-slot":"dialog-content",className:(0,i.classNames)(o.dialogSurface.popup({size:a}),e),...n,children:r})]})},"DialogDescription",0,function({className:e,...a}){return(0,s.jsx)(t.Dialog.Description,{"data-slot":"dialog-description",className:(0,i.classNames)(o.dialogSurface.description,e),...a})},"DialogFooter",0,function({className:e,...t}){return(0,s.jsx)("div",{"data-slot":"dialog-footer",className:(0,i.classNames)(o.dialogSurface.footer,e),...t})},"DialogHeader",0,function({className:e,...t}){return(0,s.jsx)("div",{"data-slot":"dialog-header",className:(0,i.classNames)(o.dialogSurface.header,e),...t})},"DialogTitle",0,function({className:e,...a}){return(0,s.jsx)(t.Dialog.Title,{"data-slot":"dialog-title",className:(0,i.classNames)(o.dialogSurface.title,e),...a})}])},56478,e=>{"use strict";var s=e.i(43476),t=e.i(66616),i=e.i(91703);e.s(["CrewLines",0,function({crewLines:e,subject:o,testIdPrefix:a,onCopied:r,onCopyFailed:n}){return e.map(({harness:e,line:l})=>(0,s.jsx)(i.CodeBlock,{label:`Crew line, ${(0,t.harnessWord)(e)} with the aeolus plugin`,code:l,isWrapped:!0,copyLabel:`Copy the ${(0,t.harnessWord)(e)} crew line for ${o}`,codeTestId:`${a}-${e}`,copyTestId:`${a}-${e}-copy`,onCopied:r,onCopyFailed:n},e))}])},82532,e=>{"use strict";var s=e.i(43476),t=e.i(22768),i=e.i(10818),o=e.i(25398),a=e.i(71645),r=e.i(49635),n=e.i(15905),l=e.i(91703),d=e.i(22212),c=e.i(94945),p=e.i(19321),u=e.i(56478),g=e.i(17981);function x({shipName:e,prompt:o,crewLines:r}){let[n,d]=(0,a.useState)(!1),c=()=>{d(!1)},p=()=>{d(!0)};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("p",{className:"flex gap-2 rounded-lg border border-border bg-muted px-3 py-2 text-meta text-foreground",children:[(0,s.jsx)(i.Info,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon-sm) shrink-0 text-muted-foreground"}),(0,s.jsxs)("span",{children:[(0,s.jsx)("span",{className:"font-medium",children:"Shown once. Copy it now."})," If you lose it, get a new one; this one then stops working."]})]}),(0,s.jsx)(l.CodeBlock,{label:`Starting prompt for ${e}`,code:o,isWrapped:!0,copyLabel:`Copy the starting prompt for ${e}`,codeTestId:"starting-prompt-text",copyTestId:"starting-prompt-copy",onCopied:c,onCopyFailed:p}),(0,s.jsx)(u.CrewLines,{crewLines:r,subject:e,testIdPrefix:"starting-prompt-crew-line",onCopied:c,onCopyFailed:p}),(0,s.jsx)("p",{role:"status",className:"flex items-center gap-1.5 text-meta text-destructive-text empty:hidden",children:n?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.CircleAlert,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0"}),"Could not copy: select the text and copy it by hand."]}):null})]})}e.s(["StartingPromptDialog",0,function(e){let{shipName:t,state:i,prompt:a,crewLines:l,replacesUnclaimed:u,error:h,isOpen:m,onOpenChange:j,onConfirm:f}=e,C="issuing"===i;return(0,s.jsx)(d.Dialog,{open:m,onOpenChange:e=>{C||j(e)},children:(0,s.jsxs)(d.DialogContent,{size:"md","data-testid":"starting-prompt-dialog",className:c.dialogSurface.phoneFullScreen,children:[(0,s.jsxs)(d.DialogHeader,{children:[(0,s.jsxs)(d.DialogTitle,{children:["Starting prompt for ",t]}),(0,s.jsxs)(d.DialogDescription,{children:["Paste it into the agent session that should crew this ship, or a crew line into Claude Code or Codex with the aeolus plugin. Any earlier prompt for ",t," stops working now."]})]}),"error"!==i&&u?(0,s.jsxs)("p",{className:"rounded-lg border border-tone-waiting-border bg-tone-waiting-bg px-3 py-2 text-meta text-tone-waiting-fg",children:["This prompt stops the one issued"," ",(0,s.jsx)("time",{dateTime:u.issuedAt,children:(0,r.shortDateTime)(new Date(u.issuedAt))})," ","working."]}):null,C?(0,s.jsxs)("div",{"aria-busy":!0,className:"flex flex-col gap-3",children:[(0,s.jsx)("span",{className:"sr-only",children:"Issuing a starting prompt..."}),(0,s.jsx)(p.Skeleton,{className:"h-10 w-full rounded-lg"}),(0,s.jsx)(p.Skeleton,{className:"h-40 w-full rounded-lg"})]}):null,"shown"===i&&void 0!==a&&void 0!==l?(0,s.jsx)(x,{shipName:t,prompt:a,crewLines:l}):null,"error"===i?(0,s.jsx)(g.InlineError,{title:"Couldn’t issue a starting prompt",description:`${h??"The server did not answer."} No new secret was created; any earlier prompt still works.`}):null,(0,s.jsxs)(d.DialogFooter,{children:["issuing"===i||"shown"===i?(0,s.jsx)(d.DialogClose,{render:(0,s.jsx)(n.Button,{variant:"primary",disabled:C}),children:"Done"}):null,"error"===i?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.DialogClose,{render:(0,s.jsx)(n.Button,{}),children:"Close"}),(0,s.jsx)(n.Button,{variant:"primary",icon:(0,s.jsx)(o.RotateCw,{}),onClick:f,children:"Try again"})]}):null]})]})})}])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,15860,e=>{"use strict";var t=e.i(43476),s=e.i(18566),n=e.i(71645),a=e.i(60592),i=e.i(65041),r=e.i(56420);let d={name:"arrow-down-left",size:24,node:[["path",{d:"M17 7 7 17",key:"15tmo1"}],["path",{d:"M17 17H7V7",key:"1org7z"}]]};d.node;let o=(0,r.default)(d),l={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};l.node;let c=(0,r.default)(l),u={name:"mail",size:24,node:[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]};u.node;let h=(0,r.default)(u);var m=e.i(25398),p=e.i(90063),x=e.i(69693);function g(e,t){return RegExp(`"${t}"\\s*:\\s*"((?:[^"\\\\]|\\\\.)*)"`).exec(e)?.[1]}let f={"application/vnd.aeolus.squadron.check-in+json":()=>"Checked in at its flagship","application/vnd.aeolus.squadron.role+json":e=>{let t=g(e,"role");return void 0===t?"Given its role":`Given the role: ${t}`},"application/vnd.aeolus.squadron.on-station+json":e=>{let t=g(e,"role");return void 0===t?"Took up its role":`Took up the role: ${t}`},"application/vnd.aeolus.squadron.stand-down+json":()=>"Asked to stand down","application/vnd.aeolus.squadron.stood-down+json":()=>"Stood down"};var b=e.i(49635),v=e.i(46150);function w(e,t){return e.sentAt.localeCompare(t.sentAt)||e.id.localeCompare(t.id)}var j=e.i(15905),y=e.i(67874),k=e.i(17981),N=e.i(88393),C=e.i(45132),S=e.i(78865);function q({message:e,shipId:s,now:n,onOpenMessage:a}){var i,r,d;let l,u,h=e.sender.id===s,m=new Date(e.sentAt),g=void 0!==(u=f[r=(i=e).contentType,r.split(";")[0]?.trim().toLowerCase()??""])?{text:u(i.preview),isCode:!1}:(0,x.isJson)(i.contentType)?{text:0===(l=function(e){let t,s=[],n=0,a=0;for(;a<e.length;){let i=e[a]??"";if('"'===i){let{value:i,end:r}=function(e,t){let s=t+1;for(;s<e.length&&'"'!==e[s];)s+="\\"===e[s]?2:1;return{value:e.slice(t+1,s),end:s+1}}(e,a);1===n&&void 0===t&&e.slice(r).trimStart().startsWith(":")?t=i:1===n&&void 0!==t&&r<=e.length&&'"'===e[r-1]&&(s.push([t,i]),t=void 0),a=r;continue}if("{"===i||"["===i)1===n&&void 0!==t&&(s.push([t,"…"]),t=void 0),n+=1;else if("}"===i||"]"===i)n-=1;else if(1===n&&void 0!==t&&/[-\dtfn]/.test(i)){let n=/^(-?\d[\d.eE+-]*|true|false|null)/.exec(e.slice(a))?.[1];if(void 0!==n){s.push([t,n]),t=void 0,a+=n.length;continue}}a+=1}return s}(d=i.preview)).length?d:l.map(([e,t])=>`${e} ${t}`).join(" · "),isCode:!0}:{text:i.preview,isCode:!1};return(0,t.jsx)("li",{className:"border-b border-border last:border-b-0",children:(0,t.jsxs)("button",{type:"button","data-testid":"message-row","data-message-id":e.id,"aria-label":`${h?"Sent":"Received"} message: ${g.text}`,className:"flex w-full items-start gap-3 px-3.5 py-3 text-left transition-colors duration-(--duration-fast) hover:bg-accent",onClick:()=>{a(e.id)},children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-md border border-tone-ended-border bg-tone-ended-bg text-tone-ended-fg [&_svg]:size-(--size-icon-sm)",children:(0,t.jsx)(h?c:o,{})}),(0,t.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,t.jsxs)("span",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,t.jsx)(C.Sentence,{parts:h?"ship"===e.recipient.kind?[(0,v.text)("To "),(0,v.ship)(e.recipient.ship)]:[(0,v.text)(`To any ship of type ${e.recipient.type}`)]:[(0,v.text)("From "),(0,v.ship)(e.sender)],className:"text-body text-foreground max-sm:text-body-touch"}),(0,t.jsx)(S.StatusBadge,{status:e.delivery.state})]}),(0,t.jsx)("span",{"data-testid":"message-line",className:(0,p.classNames)("truncate text-muted-foreground",g.isCode?"font-mono text-id":"text-meta"),children:g.text}),(0,t.jsx)("time",{dateTime:e.sentAt,title:(0,b.fullDateTime)(m),className:"text-meta text-muted-foreground tabular-nums",children:(0,b.relativeTime)(m,n)})]})]})})}function R({shipId:e,messages:s,state:n,onRetry:a,now:i,onOpenMessage:r}){return"loading"===n?(0,t.jsx)(N.LoadingSkeleton,{variant:"list",rows:3,label:"Loading the messages"}):"error"===n?(0,t.jsxs)("div",{className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-3",children:[(0,t.jsx)(k.InlineError,{title:"Couldn’t load the messages",description:"The rest of the page is current. Try again in a moment."}),a?(0,t.jsx)(j.Button,{size:"sm",icon:(0,t.jsx)(m.RotateCw,{"aria-hidden":!0}),onClick:a,className:"self-start",children:"Try again"}):null]}):0===s.length?(0,t.jsx)(y.EmptyState,{variant:"section",icon:(0,t.jsx)(h,{}),title:"No messages yet",description:"Messages this ship sends or receives appear here as they happen."}):(0,t.jsx)("div",{className:"flex flex-col gap-3",children:(function(e){let t=new Map(e.map(e=>[e.id,e])),s=new Map;for(let n of e){let e=function(e,t){let s=new Set([e.id]),n=e,a=null===n.inReplyTo?void 0:t.get(n.inReplyTo);for(;a&&!s.has(a.id);)s.add(a.id),a=null===(n=a).inReplyTo?void 0:t.get(n.inReplyTo);return n}(n,t);s.set(e.id,[...s.get(e.id)??[],n])}return[...s.entries()].map(([e,t])=>{let s=t.toSorted(w);return{id:e,messages:s,lastSentAt:s.at(-1)?.sentAt??""}}).toSorted((e,t)=>t.lastSentAt.localeCompare(e.lastSentAt)||t.id.localeCompare(e.id))})(s).map(s=>(0,t.jsx)("section",{"data-testid":"message-thread","aria-label":`Thread of ${String(s.messages.length)} ${1===s.messages.length?"message":"messages"}`,className:"overflow-hidden rounded-lg border border-border bg-card",children:(0,t.jsx)("ol",{children:s.messages.map(s=>(0,t.jsx)(q,{message:s,shipId:e,now:i,onOpenMessage:r},s.id))})},s.id))})}var T=e.i(17540),I=e.i(90262),$=e.i(54492),A=e.i(8041),L=e.i(5387),z=e.i(80581),O=e.i(10921),D=e.i(78608),P=e.i(84156),M=e.i(265),B=e.i(41880),E=e.i(16984),F=e.i(74544),_=e.i(58925),U=e.i(18964),V=e.i(11568),H=e.i(68997),W=e.i(57665),G=e.i(95925),K=e.i(86875),Y=e.i(22016),J=e.i(25242),X=e.i(66616),Q=e.i(95960);let Z={request:"Couldn’t request crew",remove:"Couldn’t remove the request",restart:"Couldn’t restart the crew"};function ee({at:e,now:s,children:n}){return(0,t.jsx)("time",{dateTime:e,title:(0,b.fullDateTime)(new Date(e)),className:"tabular-nums",children:n??(0,b.sinceTime)(new Date(e),s)})}function et({trierarch:e,hasTrierarchs:s}){return(0,t.jsxs)(Y.default,{href:s?`/trierarchs/${e.id}`:`/ships/${e.id}`,"data-testid":"crew-request-trierarch",className:"inline-flex min-w-0 items-center gap-1.5 font-medium text-foreground underline decoration-input underline-offset-3 [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0 [&_svg]:text-muted-foreground",children:[(0,t.jsx)(K.ShipWheel,{"aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate",children:e.name})]})}function es({requestedBy:e,requestedAt:s,now:n}){let a=null===e?null:e.name===v.OPERATOR_NAME?"you":e.name;return(0,t.jsxs)("span",{"data-testid":"crew-request-requested-by",children:[null===a?"Requested ":`Requested by ${a} `,(0,t.jsx)(ee,{at:s,now:n,children:(0,b.relativeTime)(new Date(s),n)}),"."]})}let en={note:"border-border bg-muted text-muted-foreground",waiting:"border-tone-waiting-border bg-tone-waiting-bg text-tone-waiting-fg",attention:"border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg"};function ea({tone:e,icon:s,children:n}){return(0,t.jsxs)("div",{role:"attention"===e?"alert":"waiting"===e?"status":"note","data-testid":"crew-request-note",className:`flex items-start gap-2 rounded-lg border px-3 py-2.5 text-meta [&_svg]:mt-0.5 [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0 ${en[e]}`,children:[s,(0,t.jsx)("span",{children:n})]})}function ei({stage:e,now:s}){let n="running"===e.status?e.startedAt:null,a=(0,$.restartWords)(e);return null===n&&void 0===a?null:(0,t.jsxs)("span",{className:"text-meta text-muted-foreground","data-testid":"crew-request-session",children:[null===n?null:(0,t.jsxs)(t.Fragment,{children:["since ",(0,t.jsx)(ee,{at:n,now:s})]}),null!==n&&void 0!==a?" · ":null,a]})}function er({rows:e,machineLabels:s=[]}){return(0,t.jsxs)("dl",{"data-testid":"crew-request-settings",className:"grid grid-cols-[repeat(auto-fill,minmax(8.5rem,1fr))] gap-x-5 gap-y-3 border-t border-border pt-3",children:[e.map(e=>(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-0.5",children:[(0,t.jsx)("dt",{className:"text-caption font-medium text-muted-foreground",children:e.label}),(0,t.jsxs)("dd",{className:"flex min-w-0 flex-wrap items-baseline gap-x-1.5 text-body font-medium",children:[null===e.value?(0,t.jsx)("span",{className:"font-normal text-muted-foreground",children:"None"}):(0,t.jsx)("span",{className:e.isMono?"truncate font-mono text-id":"truncate",children:"Harness"===e.label?(0,X.harnessWord)(e.value):e.value}),void 0===e.meta?null:(0,t.jsx)("span",{className:"text-meta font-normal text-muted-foreground",children:e.meta})]})]},e.label)),0===s.length?null:(0,t.jsxs)("div",{className:"col-span-full flex min-w-0 flex-col gap-0.5","data-testid":"crew-request-machine-labels",children:[(0,t.jsx)("dt",{className:"text-caption font-medium text-muted-foreground",children:"Machine labels"}),(0,t.jsx)("dd",{className:"flex min-w-0 flex-wrap items-center gap-1.5",children:s.map((e,s)=>(0,t.jsxs)(n.Fragment,{children:[0===s?null:(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"and"}),(0,t.jsx)(Q.LabelChip,{chip:e})]},e.valueId))})]})]})}function ed(){return(0,t.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,t.jsx)(U.ListChecks,{"aria-hidden":!0,className:"size-(--size-icon) text-muted-foreground"}),(0,t.jsx)("h2",{className:"text-section font-semibold",children:"Crew request"})]})}function eo(e){let{noMachineMatchesReason:s}=(0,J.useConsoleConstants)(),{stage:n,requestedBy:a,now:i,canManage:r,isAwaitingCrew:d,busy:o,error:l}=e,c=void 0===l?null:(0,t.jsx)(k.InlineError,{title:Z[l.action],description:`${l.message} Nothing changed.`});if("none"===n.kind)return(0,t.jsxs)("section",{"aria-label":"Crew request","data-testid":"crew-request",className:"flex flex-col gap-2.5 rounded-lg border border-border bg-card px-4 py-3.5 shadow-sm",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-3.5",children:[(0,t.jsx)(ed,{}),(0,t.jsx)("p",{className:"min-w-0 flex-1 text-meta text-muted-foreground",children:e.hasTrierarchs?"No crew request. A crew request keeps this ship crewed: a trierarch starts a session for it and restarts it when it stops.":"No crew request. A crew request puts this ship on your Needs crew list until you crew it by hand."}),r?(0,t.jsx)(j.Button,{size:"sm",icon:(0,t.jsx)(U.ListChecks,{}),isLoading:"request"===o,onClick:e.onRequest,"data-testid":"crew-request-request",children:"Request crew"}):null]}),c]});let u=(0,$.crewRequestAction)(n),h=void 0!==o;return(0,t.jsxs)("section",{"aria-label":"Crew request","data-testid":"crew-request",className:"flex flex-col gap-2.5 rounded-lg border border-border bg-card px-4 py-3.5 shadow-sm",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,t.jsx)(ed,{}),(0,t.jsxs)("span",{className:"inline-flex min-w-0 items-center gap-2","data-testid":"crew-request-state",children:["assigned"===n.kind?(0,t.jsx)(S.StatusBadge,{status:n.status}):(0,t.jsx)(S.StatusBadge,{status:n.kind}),"needsCrew"===n.kind?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:e.hasTrierarchs?"not assigned yet":n.reason??(0,t.jsxs)(t.Fragment,{children:["since ",(0,t.jsx)(ee,{at:n.requestedAt,now:i})]})}):null,"crewedByHand"===n.kind&&null!==n.since?(0,t.jsxs)("span",{className:"text-meta text-muted-foreground",children:["since ",(0,t.jsx)(ee,{at:n.since,now:i})]}):null,"assigned"===n.kind?(0,t.jsx)(ei,{stage:n,now:i}):null,"assigned"===n.kind&&"releasing"===n.status&&void 0!==e.statusChangedAt?(0,t.jsxs)("span",{className:"text-meta text-muted-foreground",children:["asked ",(0,t.jsx)(ee,{at:e.statusChangedAt,now:i})]}):null]}),"assigned"===n.kind?(0,t.jsxs)("span",{className:"inline-flex min-w-0 items-center gap-1 text-meta",children:["on ",(0,t.jsx)(et,{trierarch:n.trierarch,hasTrierarchs:e.hasTrierarchs??!1})]}):null,(0,t.jsx)("span",{className:"flex-1"}),"assigned"===n.kind&&"releasing"===n.status?(0,t.jsxs)("span",{className:"text-meta text-muted-foreground",children:["Waiting for ",n.trierarch.name]}):null,r?(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:["remove"===u?(0,t.jsx)(j.Button,{size:"sm",variant:"ghost",isLoading:"remove"===o,disabled:h,onClick:e.onRemove,"data-testid":"crew-request-remove",children:"Remove request"}):null,(0,$.isRestartable)(n)?(0,t.jsx)(j.Button,{size:"sm",icon:(0,t.jsx)(G.RotateCcw,{}),isLoading:"restart"===o,disabled:h,onClick:e.onRestart,"data-testid":"crew-request-restart",children:"Restart"}):null,void 0!==e.onEdit&&void 0!==u?(0,t.jsx)(j.Button,{size:"sm",icon:(0,t.jsx)(H.Pen,{}),disabled:h,onClick:e.onEdit,"data-testid":"crew-request-edit",children:"Edit…"}):null,"release"===u?(0,t.jsx)(j.Button,{size:"sm",icon:(0,t.jsx)(W.Power,{}),disabled:h,onClick:e.onRelease,"data-testid":"crew-request-release",children:"Release…"}):null,"needsCrew"===n.kind&&d&&!e.hasTrierarchs?(0,t.jsx)(j.Button,{size:"sm",variant:"primary",icon:(0,t.jsx)(_.KeyRound,{}),disabled:h,onClick:e.onGetStartingPrompt,"data-testid":"crew-request-prompt",children:"Get starting prompt"}):null]}):null]}),"assigned"===n.kind?function(e,s){let{trierarch:n}=e,a=void 0===s.statusChangedAt?null:(0,t.jsx)(ee,{at:s.statusChangedAt,now:s.now});switch(e.status){case"crewing":return(0,t.jsxs)(ea,{tone:"note",icon:(0,t.jsx)(V.LoaderCircle,{"aria-hidden":!0}),children:[n.name," is starting the session."]});case"running":return null;case"restarting":return(0,t.jsxs)(ea,{tone:"waiting",icon:(0,t.jsx)(G.RotateCcw,{"aria-hidden":!0}),children:[(0,t.jsx)("strong",{className:"font-medium",children:null===a?"The session stopped.":(0,t.jsxs)(t.Fragment,{children:["The session stopped at ",a,"."]})})," ",n.name," is starting it again. Once its restarts are used up it stops trying and the request shows Crashed."]});case"crashed":return(0,t.jsxs)(ea,{tone:"attention",icon:(0,t.jsx)(E.CircleX,{"aria-hidden":!0}),children:[(0,t.jsx)("strong",{className:"font-medium",children:null===a?"Crashed.":(0,t.jsxs)(t.Fragment,{children:["Crashed at ",a,"."]})})," The session kept stopping and ",n.name," ","stopped trying. The lease still holds, so new deliveries wait in the inbox. Restart crews it again with the same settings."]});case"releasing":return(0,t.jsxs)(ea,{tone:"note",icon:(0,t.jsx)(W.Power,{"aria-hidden":!0}),children:["Releasing: ",n.name," is stopping the session and cleaning up. The request goes away once it confirms."]})}}(n,{statusChangedAt:e.statusChangedAt,now:i}):null,"needsCrew"===n.kind&&e.hasTrierarchs?null===n.reason?(0,t.jsx)(ea,{tone:"note",icon:(0,t.jsx)(V.LoaderCircle,{"aria-hidden":!0}),children:"Waiting for the trierarch plugin to assign a trierarch."}):n.reason===s&&void 0!==e.machineLabels&&e.machineLabels.length>0?(0,t.jsxs)(ea,{tone:"waiting",icon:(0,t.jsx)(F.Clock,{"aria-hidden":!0}),children:[(0,t.jsx)("strong",{className:"font-medium",children:"No machine matches these labels."})," The plugin places this ship only on a machine with ",(0,D.machineLabelsText)(e.machineLabels),", and none"," ",(0,D.noMatchWords)(e.machineLabels.length).carries,". It assigns a trierarch as soon as one does; until then this ship is on Needs crew."]}):(0,t.jsxs)(ea,{tone:"waiting",icon:(0,t.jsx)(F.Clock,{"aria-hidden":!0}),children:[(0,t.jsxs)("strong",{className:"font-medium",children:[(0,v.capitalised)(n.reason),"."]})," The plugin assigns a trierarch as soon as one fits. Until then this ship is on Needs crew."]}):null,c,void 0===e.settingsRows?null:(0,t.jsx)(er,{rows:e.settingsRows,machineLabels:e.machineLabels}),(0,t.jsxs)("p",{className:"text-meta text-muted-foreground",children:["needsCrew"!==n.kind||e.hasTrierarchs?null:"On your Needs crew list. Crew it by hand: get a starting prompt and start a session with it. Crewing it fulfils the request; the request stays until you remove it. ","crewedByHand"===n.kind?`${n.crewedBy.name===v.OPERATOR_NAME?"You":n.crewedBy.name} crewed it by hand. The request stands: if the lease ends, the ship is back on Needs crew until you crew it again or release it. `:null,(0,t.jsx)(es,{requestedBy:a,requestedAt:n.requestedAt,now:i}),"assigned"===n.kind&&"releasing"!==n.status?" The trierarch keeps it crewed until you release it.":null]})]})}var el=e.i(86165),ec=e.i(48695);let eu=(0,T.lazyDialog)(()=>e.A(59051).then(e=>e.RequestCrewDialog),e=>e.isOpen),eh=(0,T.lazyDialog)(()=>e.A(5419).then(e=>e.CrewReleaseDialog),e=>e.isOpen),em=(0,T.lazyDialog)(()=>e.A(95953).then(e=>e.StartingPromptDialog),e=>e.isOpen);function ep({ship:e,timeline:s,now:a}){let i=(0,I.useAccess)(),r=(0,M.useHasTrierarchPlugin)(),d=(0,L.useRequestCrew)(),o=(0,L.useLabelContext)(),l=(0,L.useRemoveCrewRequest)(),c=(0,L.useReleaseShip)(),u=(0,L.useGetStartingPrompt)(),[h,m]=(0,n.useState)(),[p,x]=(0,n.useState)(),[g,f]=(0,n.useState)(!1),[b,v]=(0,n.useState)(),[w,j]=(0,n.useState)(!1),[y,k]=(0,n.useState)(),[N]=(0,O.useCrewSettings)(null===e.crewRequest?[]:[e.crewRequest.settings])??[],C=function(e){let s=(0,M.useMachines)(),a=(0,el.useSquadronsConnection)(),i=(0,ec.useSquadrons)(),r=(0,L.useRequestCrew)(),d=(0,L.useLabelContext)(),[o,l]=(0,n.useState)(),[c,u]=(0,n.useState)(null),[h,m]=(0,n.useState)(),p=(0,A.offersOf)(s.data??[]),{shipLabelsMax:x}=(0,J.useConsoleConstants)(),g=void 0===d||void 0===s.data?void 0:(0,D.machineLabelsInputOf)(d,{machines:s.data,shipLabelsMax:x}),f=(0,O.useCrewSettings)(e?.heldSettings===void 0?[]:[e.heldSettings]),b=f?.[0]??null,v=(0,A.settingsOf)("edit"===o?(0,A.valuesOf)(b,p):(0,A.defaultValues)(p)),w=void 0!==o&&void 0!==e&&("edit"!==o||void 0!==f),j=(0,M.useCrewSettingsCheck)(w&&void 0!==s.data?null===c?v:c:void 0),y=async t=>{if(void 0!==e&&void 0!==o){r.reset();try{let e=await j.checkNow();if("refused"===e.kind)return void m(new Date)}catch{}r.mutate({shipId:e.shipId,settings:t},{onSuccess:()=>{l(void 0),(0,B.showToast)("edit"===o?{title:`Settings saved for ${e.shipName}`,description:"Its trierarch restarts the session with them.",tone:"success"}:{title:`Crew requested for ${e.shipName}`,description:"The trierarch plugin assigns a trierarch that fits.",tone:"success"})}})}};return{open:e=>{r.reset(),u(null),m(void 0),l(e)},dialog:void 0===e?null:(0,t.jsx)(eu,{shipName:e.shipName,mode:o??"request",state:s.isError?"unreachable":void 0===s.data?"loading":"ready",offers:p,heldSettings:b,squadrons:"connected"===a?(i.data??[]).filter(e=>"disbanded"!==e.state).map(e=>e.id):void 0,...void 0===g?{}:{machineLabels:g},check:j.data,refusedAt:h,error:r.error?.message,isPending:r.isPending,isOpen:w,onOpenChange:e=>{e||l(void 0)},onSettingsChange:e=>{u(e),m(void 0)},onSubmit:e=>void y(e),onRetry:()=>{s.refetch()}})}}("agent"===e.kind&&"retired"!==e.status?{shipId:e.id,shipName:e.name,heldSettings:e.crewRequest?.settings}:void 0);if("agent"!==e.kind||"retired"===e.status)return null;let S=(0,$.crewRequestStage)(e),q=e.crewRequest,R=async(e,t)=>{m(e),x(void 0);try{return await t(),!0}catch(t){return x({action:e,message:t instanceof Error?t.message:String(t)}),!1}finally{m(void 0)}},T=()=>{u.reset(),k((0,P.isUnclaimedPromptOut)(e)&&e.startingPrompt?{issuedAt:e.startingPrompt.issuedAt}:void 0),j(!0),u.mutate({shipId:e.id})},E=async()=>{await R("request",()=>d.mutateAsync({shipId:e.id,settings:{}}))&&(0,B.showToast)({title:`${e.name} needs crew`,description:"It is on your Needs crew list until you crew it.",tone:"success",..."awaitingCrew"===e.status&&i.canManage?{action:{label:"Get starting prompt",onClick:T}}:{}})},F=async()=>{null===q||"assigned"!==S.kind||await R("restart",()=>d.mutateAsync({shipId:e.id,settings:q.settings}))&&(0,B.showToast)({title:`Restarting ${e.name}`,description:`${S.trierarch.name} starts its session again with the same settings.`,tone:"success"})},_=async t=>{v(void 0);let s=(0,$.releaseSteps)(t),n=0;try{for(let t of s)await ("removeCrewRequest"===t?l.mutateAsync({shipId:e.id}):c.mutateAsync({shipId:e.id})),n+=1;f(!1)}catch(t){let e=t instanceof Error?t.message:String(t);v(0===n?`${e} Nothing changed.`:`${e} Its crew request is removed; the session still holds the ship. Try again to end its lease.`)}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eo,{stage:S,requestedBy:(0,$.requestedBy)(s),statusChangedAt:(0,$.statusChangedAt)(s),now:a,canManage:i.canManage,isAwaitingCrew:"awaitingCrew"===e.status,hasTrierarchs:r,busy:h,error:p,settingsRows:null===q?void 0:(0,A.settingsRows)(N),...null===q||void 0===o?{}:{machineLabels:(0,z.pickedChips)((0,D.machineLabelIdsOf)(N),o)},onRequest:()=>{r?C.open("request"):E()},...r?{onEdit:()=>{C.open("edit")}}:{},onRemove:()=>void R("remove",()=>l.mutateAsync({shipId:e.id})),onRelease:()=>{v(void 0),f(!0)},onRestart:()=>void F(),onGetStartingPrompt:T}),C.dialog,"crewedByHand"===S.kind||"assigned"===S.kind?(0,t.jsx)(eh,{shipName:e.name,stage:S,sessionLocation:null===e.location?null:e.location.description??e.location.kind.toLowerCase(),inFlightCount:e.inFlightDeliveries,isOpen:g,onOpenChange:f,isPending:l.isPending||c.isPending,error:b,onConfirm:()=>void _(S)}):null,(0,t.jsx)(em,{shipName:e.name,state:u.data?"shown":u.isError?"error":"issuing",prompt:u.data?.prompt,crewLines:u.data?.crewLines,replacesUnclaimed:y,error:u.error?.message,isOpen:w,onOpenChange:e=>{e||(u.reset(),j(!1))},onConfirm:()=>{u.mutate({shipId:e.id})}})]})}var ex=e.i(84294),eg=e.i(19249);function ef({label:e,children:s}){return(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-1 bg-card px-3.5 py-3",children:[(0,t.jsx)("dt",{className:"text-meta text-muted-foreground",children:e}),(0,t.jsx)("dd",{className:"flex min-w-0 flex-wrap items-center gap-1.5 text-body text-foreground",children:s})]})}function eb({shipId:e,now:s}){let n=(0,ec.useSquadrons)(),a=(0,ec.useCatalogue)(),i=n.data?.find(t=>t.flagship.shipId===e||t.members.some(t=>t.shipId===e));if(!i)return null;let r=(0,t.jsx)(Y.default,{href:`/squadrons/${i.id}`,className:"font-mono hover:underline","data-testid":"ship-squadron-link",children:i.id});if(i.flagship.shipId===e)return(0,t.jsxs)("div",{role:"note","data-testid":"ship-flagship-note",className:"flex flex-wrap items-center gap-3 rounded-lg border border-border bg-muted px-3.5 py-3 text-meta text-foreground",children:[(0,t.jsxs)("span",{className:"grow",children:["Flagship of squadron ",r,": the address for work sent to the team. The squadron manager crews it, so it can’t be released, renamed or retired; it retires when the squadron disbands."]}),(0,t.jsx)(j.Button,{size:"xs",nativeButton:!1,render:(0,t.jsx)(Y.default,{href:`/squadrons/${i.id}`}),"data-testid":"ship-open-squadron",children:"Open squadron"})]});let d=i.members.find(t=>t.shipId===e);if(!d)return null;let o=a.data?.blueprints.find(e=>e.repository===i.blueprint.repository&&e.name===i.blueprint.name&&e.version===i.blueprint.version),l=o?.roles.find(e=>e.name===d.role)?.template,c=null===d.crew.lastSeenAt?void 0:(0,b.duration)(new Date(d.crew.lastSeenAt),s);return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:["silent"===d.health&&"disbanded"!==i.state&&(0,t.jsxs)("div",{role:"alert","data-testid":"ship-silent-alert",className:"rounded-lg border border-tone-attention-border bg-tone-attention-bg px-3.5 py-3 text-meta text-foreground",children:[(0,t.jsx)("strong",{className:"font-semibold text-tone-attention-fg",children:void 0===c?"Silent.":`Silent: not seen for ${c}.`})," It checks in"," ",(0,ex.checkInText)(d.checkInMinutes),", so its session has probably stopped. Get a new crew line and start a new session; the old crew line then stops working."]}),(0,t.jsxs)("dl",{"data-testid":"ship-squadron-facts",className:"grid grid-cols-4 gap-px overflow-hidden rounded-lg border border-border bg-border max-sm:grid-cols-2",children:[(0,t.jsxs)(ef,{label:"Squadron",children:[r,(0,t.jsx)(S.StatusBadge,{status:i.state})]}),(0,t.jsxs)(ef,{label:"Role and template",children:[(0,t.jsx)("span",{className:"rounded-sm bg-secondary px-1.5 font-mono text-id",children:d.role}),l&&(0,t.jsxs)(Y.default,{href:(0,ex.templatePath)(l),className:"font-mono text-meta hover:underline",children:[l.name,"@",l.version]})]}),(0,t.jsx)(ef,{label:"Health",children:(0,t.jsx)(eg.HealthIndicator,{health:d.health,detail:"silent"===d.health||"late"===d.health?c:void 0})}),(0,t.jsx)(ef,{label:"Hand-offs",children:o?(0,t.jsx)("span",{className:"text-meta",children:(0,ex.handoffsText)((0,ex.handoffsOf)(o,d.role))}):(0,t.jsx)(Y.default,{href:(0,ex.blueprintPath)(i.blueprint),className:"text-meta text-muted-foreground hover:underline",children:"See its blueprint"})})]})]})}var ev=e.i(21959),ew=e.i(15327),ej=e.i(76561),ey=e.i(22768),ek=e.i(10818),eN=e.i(69309),eC=e.i(26478),eS=e.i(66390),eq=e.i(61966),eR=e.i(19321),eT=e.i(63481);function eI({harness:e,model:s,testId:n}){return null===e&&null===s?null:(0,t.jsxs)("span",{"data-testid":n,className:"flex min-w-0 flex-wrap items-center gap-x-1 text-meta text-muted-foreground",children:[null===e?null:(0,t.jsx)("span",{children:(0,X.harnessWord)(e)}),null!==e&&null!==s?(0,t.jsx)("span",{"aria-hidden":!0,children:"·"}):null,null===s?null:(0,t.jsx)("span",{className:"truncate font-mono text-id",children:s})]})}var e$=e.i(73330);function eA({ping:e,now:s,testId:n}){return null===e?null:(0,t.jsx)("span",{title:`Pinged ${(0,b.fullDateTime)(new Date(e.sentAt))}`,"data-testid":n,"data-state":e.state,className:"text-meta text-muted-foreground tabular-nums",children:(0,e$.pingLine)(e,s)})}var eL=e.i(67927),ez=e.i(93361),eO=e.i(91703);function eD({details:e,bytes:s,version:n,testId:a}){return(0,t.jsxs)("details",{"data-testid":a,className:"group rounded-lg border border-border bg-card",children:[(0,t.jsxs)("summary",{className:"flex cursor-pointer list-none items-center gap-1.5 px-3.5 py-2.5 text-meta text-muted-foreground [&::-webkit-details-marker]:hidden",children:[(0,t.jsx)(eL.ChevronRight,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0 transition-transform group-open:rotate-90"}),(0,t.jsx)("span",{className:"font-medium text-foreground",children:"Report details"}),(0,t.jsxs)("span",{className:"tabular-nums",children:["· version ",n]})]}),(0,t.jsx)("div",{className:"px-3.5 pb-3.5",children:(0,t.jsx)(eO.CodeBlock,{label:(0,ez.reportDetailsLabel)(s),code:(0,ez.reportDetailsJson)(e),copyLabel:"Copy report details",codeTestId:`${a}-code`})})]})}var eP=e.i(81830),eM=e.i(39448);function eB({label:e,children:s}){return(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-1 bg-card px-3.5 py-3",children:[(0,t.jsx)("dt",{className:"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 eE({ship:e,now:s,labels:n}){let a,i="operator"===e.kind,r=null===e.crewedSince?null:new Date(e.crewedSince),d=new Date(e.commissionedAt);return(0,t.jsxs)("dl",{className:"grid grid-cols-4 gap-px overflow-hidden rounded-lg border border-border bg-border max-sm:grid-cols-2",children:[(0,t.jsx)(eB,{label:"Location",children:(0,t.jsxs)("span",{className:"inline-flex min-w-0 flex-col gap-0.5",children:[(0,t.jsx)(eT.LocationTag,{kind:e.location?.kind??null,description:e.location?.description,size:"md"}),(0,t.jsx)(eI,{harness:e.harness,model:e.model?.id??null,testId:"ship-model"}),null===e.lastSeenAt?null:(0,t.jsx)("time",{dateTime:e.lastSeenAt,title:(0,b.fullDateTime)(new Date(e.lastSeenAt)),"data-testid":"ship-last-seen",className:"text-meta text-muted-foreground tabular-nums",children:(0,b.lastSeen)(new Date(e.lastSeenAt),s)}),(0,t.jsx)(eA,{ping:e.ping,now:s,testId:"ship-ping-status"}),"agent"!==e.kind?null:(0,t.jsx)(eP.ReportLine,{report:e.report,now:s,variant:"full",testId:"ship-report"})]})}),(0,t.jsx)(eB,{label:"Crewed since",children:r?(0,t.jsx)("time",{dateTime:e.crewedSince??void 0,title:(0,b.fullDateTime)(r),className:"tabular-nums",children:(a=s.getTime()-r.getTime()<864e5?(0,b.clockTime)(r):(0,b.shortDateTime)(r),`${a} \xb7 ${(0,b.duration)(r,s)}`)}):(0,t.jsx)("span",{className:"text-muted-foreground",children:"Not crewed"})}),(0,t.jsx)(eB,{label:"Commissioned",children:(0,t.jsx)("time",{dateTime:e.commissionedAt,title:(0,b.fullDateTime)(d),children:i?`Fleet created ${(0,b.dayDate)(d)}`:(0,b.dayDate)(d)})}),(0,t.jsxs)(eB,{label:"Ship id",children:[(0,t.jsx)("span",{className:"truncate font-mono text-id",children:e.id}),(0,t.jsx)(eq.CopyButton,{value:e.id,label:"Copy ship id"})]}),void 0===n?null:(0,t.jsxs)("div",{className:"col-span-4 flex min-w-0 items-center gap-4 bg-card px-3.5 py-2.5 max-sm:col-span-2 max-sm:flex-col max-sm:items-start max-sm:gap-1.5","data-testid":"ship-labels",children:[(0,t.jsx)("dt",{className:"shrink-0 text-meta text-muted-foreground",children:"Labels"}),(0,t.jsx)("dd",{className:"min-w-0 flex-1",children:n})]})]})}function eF({icon:e,children:s}){return(0,t.jsxs)("p",{className:"flex items-center gap-2 rounded-lg border border-border bg-muted px-3.5 py-2.5 text-meta text-muted-foreground [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",children:[e,(0,t.jsx)("span",{children:s})]})}function e_({ship:e,shipId:s,state:n,actions:a,crewRequest:i,now:r,backHref:d="/",labels:o,isPluginShip:l=!1}){let{fleetScopes:c}=(0,J.useConsoleConstants)();if("loading"===n||"ready"===n&&void 0===e)return(0,t.jsxs)("div",{"aria-busy":!0,"data-testid":"ship-header",className:"flex flex-col gap-4",children:[(0,t.jsx)("span",{className:"sr-only",children:"Loading the ship"}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(eR.Skeleton,{className:"h-8 w-40"}),(0,t.jsx)(eR.Skeleton,{className:"h-6 w-20"}),(0,t.jsx)(eR.Skeleton,{className:"h-6 w-16"})]}),(0,t.jsx)(eR.Skeleton,{className:"h-16 w-full rounded-lg"})]});if("not-found"===n||void 0===e)return(0,t.jsx)("div",{"data-testid":"ship-header",children:(0,t.jsx)(y.EmptyState,{variant:"section",icon:(0,t.jsx)(ey.CircleAlert,{}),title:"Ship not found",description:(0,t.jsxs)(t.Fragment,{children:["No ship with the id ",s?(0,t.jsx)("span",{className:"font-mono text-id",children:s}):"given"," exists in this fleet. The link may be incomplete. Retired ships keep their page."]}),action:(0,t.jsx)(j.Button,{size:"sm",nativeButton:!1,render:({children:e,...s})=>(0,t.jsx)(Y.default,{href:d,...s,children:e}),children:"Back to fleet overview"})})});let u="operator"===e.kind,h="retired"===e.status;return(0,t.jsxs)("div",{"data-testid":"ship-header",className:"flex flex-col gap-4 max-sm:gap-3",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-2.5 max-sm:flex-col max-sm:items-start max-sm:gap-1.5",children:[(0,t.jsx)("h1",{className:"min-w-0",children:(0,t.jsx)(eM.ShipName,{name:e.name,shipId:e.id,size:"title",isSuffixShown:h})}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)(S.StatusBadge,{status:e.status}),u?(0,t.jsxs)(eS.Badge,{variant:"kind",children:[(0,t.jsx)(eC.UserRound,{"aria-hidden":!0}),"operator"]}):(0,t.jsxs)(t.Fragment,{children:[l?(0,t.jsxs)(eS.Badge,{variant:"kind","data-testid":"ship-plugin",children:[(0,t.jsx)(eN.Plug,{"aria-hidden":!0}),"plugin"]}):null,(0,t.jsx)(eS.Badge,{variant:"type",children:e.type}),e.scopes.filter(e=>c.some(t=>t===e)).map(e=>(0,t.jsx)(eS.Badge,{variant:"kind","data-testid":"ship-fleet-scope",children:e},e))]}),"awaitingCrew"===e.status&&null===e.startingPrompt?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-meta text-muted-foreground [&_svg]:size-(--size-icon-sm)",children:[(0,t.jsx)(_.KeyRound,{"aria-hidden":!0}),"No starting prompt issued"]}):null]})]}),a&&!h?(0,t.jsx)("div",{className:(0,p.classNames)("flex flex-wrap items-center gap-2","max-sm:w-full max-sm:[&>*]:flex-1"),children:a}):null]}),u?(0,t.jsx)(eF,{icon:(0,t.jsx)(ek.Info,{"aria-hidden":!0}),children:"argo is your ship. This console session crews it. It can’t be released, renamed or retired."}):null,h&&null!==e.retiredAt?(0,t.jsxs)(eF,{icon:(0,t.jsx)(ej.Archive,{"aria-hidden":!0}),children:["Retired on ",(0,b.fullDateTime)(new Date(e.retiredAt)),". Read-only."]}):null,i,(0,t.jsx)(eE,{ship:e,now:r,labels:o}),"agent"===e.kind&&e.report?.details&&null!==e.report.detailsBytes?(0,t.jsx)(eD,{details:e.report.details,bytes:e.report.detailsBytes,version:e.report.detailsVersion,testId:"ship-report-details"}):null]})}var eU=e.i(99261),eV=e.i(89664),eH=e.i(16327),eW=e.i(56539),eG=e.i(77071),eK=e.i(63676),eY=e.i(70703),eJ=e.i(6734);let eX=(0,eY.default)(()=>e.A(67858).then(e=>e.LabelPicker),{loadableGenerated:{modules:[59068]},ssr:!1});function eQ({chip:e,labelKey:s,isBusy:a,onUnassign:i,onChange:r}){let[d,o]=(0,n.useState)(!1);return(0,t.jsxs)(eJ.Popover,{open:d,onOpenChange:o,children:[(0,t.jsx)(eJ.PopoverTrigger,{render:(0,t.jsx)("button",{type:"button","aria-label":`Change or remove ${e.key}=${e.value}`,"data-testid":"ship-label-yours",disabled:a,className:"inline-flex items-center rounded-sm focus-visible:outline-2 focus-visible:outline-ring disabled:opacity-60"}),children:(0,t.jsx)(Q.LabelChip,{chip:e,trailing:(0,t.jsx)(eH.ChevronDown,{"aria-hidden":!0}),className:"hover:bg-accent"})}),(0,t.jsxs)(eJ.PopoverContent,{align:"start",sideOffset:6,className:"w-72 p-1.5","data-testid":"ship-label-menu",children:[(0,t.jsxs)("span",{className:"flex items-center justify-between px-2 pt-1 pb-1.5 text-meta",children:[(0,t.jsxs)("span",{className:"font-mono",children:[e.key,"=",(0,t.jsx)("span",{className:"text-muted-foreground",children:e.value})]}),(0,t.jsx)("span",{className:"text-muted-foreground",children:"Change the value"})]}),(0,t.jsx)("ul",{className:"flex flex-col",children:(s?.values??[]).map(n=>{let a=n.valueId===e.valueId,i=s?.carriedValueIds.includes(n.valueId)??!1;return(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",disabled:i,"data-testid":"ship-label-value",className:"flex h-(--size-control-sm) w-full items-center gap-2 rounded-sm px-2 text-left text-body hover:bg-accent focus-visible:outline-2 focus-visible:outline-ring disabled:pointer-events-none [&_svg]:size-(--size-icon-sm)",onClick:()=>{o(!1),r({from:e.valueId,to:n.valueId})},children:[(0,t.jsx)("span",{className:"w-4",children:i?(0,t.jsx)(eV.Check,{"aria-hidden":!0}):null}),(0,t.jsx)("span",{className:(0,p.classNames)("min-w-0 grow truncate font-mono",i&&!a?"text-muted-foreground":void 0),children:n.value}),(0,t.jsx)("span",{className:"text-meta text-muted-foreground tabular-nums",children:i&&!a?"Carried":`${String(n.shipCount)} ${1===n.shipCount?"ship":"ships"}`})]})},n.valueId)})}),(0,t.jsx)("div",{className:"mt-1 border-t border-border pt-1",children:(0,t.jsxs)("button",{type:"button","data-testid":"ship-label-remove",className:"flex h-(--size-control-sm) w-full items-center gap-2 rounded-sm px-2 text-body text-destructive-text hover:bg-accent focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon-sm)",onClick:()=>{o(!1),i(e.valueId)},children:[(0,t.jsx)(eK.X,{"aria-hidden":!0}),"Remove label"]})})]})]})}function eZ({keys:e,isBusy:s,onAssign:a}){let[i,r]=(0,n.useState)(!1);return(0,t.jsxs)(eJ.Popover,{open:i,onOpenChange:r,children:[(0,t.jsx)(eJ.PopoverTrigger,{render:(0,t.jsx)(j.Button,{variant:"ghost",size:"xs",icon:(0,t.jsx)(eG.Plus,{}),disabled:s,"data-testid":"ship-labels-add"}),children:"Add label"}),(0,t.jsxs)(eJ.PopoverContent,{align:"start",sideOffset:6,className:"w-80 p-2","data-testid":"ship-labels-add-popover",children:[(0,t.jsxs)("span",{className:"flex items-center justify-between px-2 pt-1 pb-2 text-body font-medium",children:["Add a label",(0,t.jsx)("span",{className:"text-meta font-normal text-muted-foreground",children:"Yours"})]}),0===e.length?(0,t.jsx)("p",{className:"px-2 py-2 text-meta text-muted-foreground",children:"You have no labels yet. Define one on the Labels page, then put it on ships here."}):(0,t.jsx)(eX,{groups:[{title:"Yours",keys:[...e]}],pickedValueIds:e.flatMap(e=>e.carriedValueIds),pickedWord:"Carried",onPick:e=>{r(!1),a(e)}}),(0,t.jsx)("p",{className:"mt-2 flex items-center justify-between border-t border-border px-2 pt-2 text-meta",children:(0,t.jsx)(Y.default,{href:"/labels",className:"font-medium hover:underline",children:0===e.length?"Define a label":"Manage labels"})})]})]})}function e0({chips:e,keys:s,limit:a,isBusy:i,error:r,onAssign:d,onUnassign:o,onChange:l}){let[c,u]=(0,n.useState)(!1),h=!c&&e.length>3,m=h?e.slice(0,2):e,p=[...new Set(m.filter(e=>"none"!==e.mark).map(e=>e.ownerName))];return(0,t.jsxs)("span",{className:"flex min-w-0 flex-col gap-2","data-testid":"ship-labels-edit",children:[(0,t.jsxs)("span",{className:"flex min-w-0 flex-wrap items-center gap-1.5",children:[0===e.length?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"No labels"}):null,m.filter(e=>"none"===e.mark).map(e=>(0,t.jsx)(eQ,{chip:e,labelKey:s.find(t=>t.labelId===e.labelId),isBusy:i,onUnassign:o,onChange:l},e.valueId)),h?(0,t.jsxs)("button",{type:"button","aria-label":`Show all ${String(e.length)} labels`,"data-testid":"ship-labels-more",className:"inline-flex h-5.5 items-center rounded-sm bg-secondary px-1.5 text-caption font-medium tabular-nums hover:bg-accent focus-visible:outline-2 focus-visible:outline-ring",onClick:()=>{u(!0)},children:["+",e.length-2]}):null,a.isAtLimit?null:(0,t.jsx)(eZ,{keys:s,isBusy:i,onAssign:d}),p.map(e=>(0,t.jsxs)("span",{className:"inline-flex flex-wrap items-center gap-1.5",children:[(0,t.jsxs)("span",{className:"text-meta text-muted-foreground",children:["by ",e]}),m.filter(t=>"none"!==t.mark&&t.ownerName===e).map(e=>(0,t.jsx)(Q.LabelChip,{chip:e,testId:"ship-label"},e.valueId))]},e)),c&&e.length>3?(0,t.jsxs)("button",{type:"button",className:"inline-flex items-center gap-1 rounded-sm px-1 text-meta hover:bg-accent focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon-sm)",onClick:()=>{u(!1)},children:[(0,t.jsx)(eW.ChevronUp,{"aria-hidden":!0}),"Show fewer"]}):null,a.isAtLimit?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"At the limit: a ship carries at most 20 labels (decision 0031)."}):null,void 0===a.count?null:(0,t.jsx)("span",{className:"ml-auto text-meta text-muted-foreground tabular-nums","data-testid":"ship-labels-count",children:a.count})]}),void 0===r?null:(0,t.jsx)(k.InlineError,{title:r.title,description:`Refused: ${r.message}. Nothing changed.`})]})}function e1(e,t){for(let s of e){let e=s.values.find(e=>e.valueId===t);if(void 0!==e)return`${s.key}=${e.value}`}return"the label"}function e2({ship:e}){let{shipLabelsMax:s}=(0,J.useConsoleConstants)(),a=(0,L.useLabelContext)(),i=(0,I.useAccess)(),r=(0,L.useAssignLabel)(),d=(0,L.useUnassignLabel)(),[o,l]=(0,n.useState)(void 0);if(void 0===a)return(0,t.jsx)(eR.Skeleton,{className:"h-5.5 w-40"});let c=(0,z.chipsOf)(e,a);if(!(0,z.canAssignLabelsTo)(e,i))return(0,t.jsx)(eU.ShipLabels,{chips:c});let u=(0,z.assignKeysOf)(e,a),h=e=>t=>{l({title:e,message:t.message})};return(0,t.jsx)(e0,{chips:c,keys:u,limit:(0,z.labelLimitOf)(e,s),isBusy:r.isPending||d.isPending,error:o,onAssign:t=>{l(void 0),r.mutate({shipId:e.id,valueId:t},{onError:h(`Couldn’t add ${e1(u,t)}`)})},onUnassign:t=>{l(void 0),d.mutate({shipId:e.id,valueId:t},{onError:h(`Couldn’t remove ${e1(u,t)}`)})},onChange:({from:t,to:s})=>{l(void 0),d.mutate({shipId:e.id,valueId:t},{onSuccess:()=>{r.mutate({shipId:e.id,valueId:s},{onError:n=>{r.mutate({shipId:e.id,valueId:t}),h(`Couldn’t change ${e1(u,t)} to ${e1(u,s)}`)(n)}})},onError:h(`Couldn’t change ${e1(u,t)}`)})}})}var e5=e.i(87255),e7=e.i(31458);let e3={name:"lock-keyhole",size:24,node:[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]]};e3.node;let e6=(0,r.default)(e3),e4={name:"log-in",size:24,node:[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]]};e4.node;let e8=(0,r.default)(e4);var e9=e.i(67784);let te={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"}]]};te.node;let tt=(0,r.default)(te),ts={name:"mail-minus",size:24,node:[["path",{d:"M22 15V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8",key:"fuxbkv"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"M16 19h6",key:"xwg31i"}]]};ts.node;let tn=(0,r.default)(ts),ta={name:"mail-x",size:24,node:[["path",{d:"M22 12.532V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8.792",key:"8lpqwp"}],["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["path",{d:"m16.5 16.5 5 5",key:"zc9lw7"}],["path",{d:"m21.5 16.5-5 5",key:"1empo3"}]]};ta.node;let ti=(0,r.default)(ta),tr={name:"message-square-text",size:24,node:[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M7 11h10",key:"1twpyw"}],["path",{d:"M7 15h6",key:"d9of3u"}],["path",{d:"M7 7h8",key:"af5zfr"}]]};tr.node;let td=(0,r.default)(tr),to={name:"package-x",size:24,node:[["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m16.5 14.5 5 5",key:"ozpm51"}],["path",{d:"m16.5 19.5 5-5",key:"syf6b9"}],["path",{d:"M21 10.5V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.729l7 4a2 2 0 0 0 2 .001l.13-.074",key:"isw6gs"}],["path",{d:"M3.29 7 12 12l8.71-5",key:"19ckod"}],["path",{d:"m7.5 4.27 8.997 5.148",key:"9yrvtv"}]]};to.node;let tl=(0,r.default)(to),tc={name:"pen-line",size:24,node:[["path",{d:"M13 21h8",key:"1jsn5i"}],["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-3"]};tc.node;let tu=(0,r.default)(tc),th={name:"shield-alert",size:24,node:[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]};th.node;let tm=(0,r.default)(th);var tp=e.i(37817),tx=e.i(40798);function tg(e,t){let s=e.details[t];return"string"==typeof s?s:void 0}function tf(e){return tg(e,"key")??""}function tb(e){return(tg(e,"values")??"").split(",").join(", ")}function tv(e){return e?[(0,v.text)(" by "),(0,v.ship)(e)]:[]}let tw={deregistered:"Its session deregistered.",takenOver:"Taken over by a new console session.",signedOut:"The operator signed out.",passwordReset:"Its session ended with the operator password reset.",retired:"Its session ended: the ship was retired."};function tj(e){return e.message?.isPing===!0}function ty(e){return e.message?[(0,v.text)(tj(e)?"a ping from ":"a message from "),(0,v.ship)(e.message.sender)]:[(0,v.text)("a message")]}function tk(e){let[t,...s]=ty(e);return t?.kind==="text"?[(0,v.text)((0,v.capitalised)(t.text)),...s]:ty(e)}function tN(e,t){let{shipId:s,verb:n}=t,a=e.actor;return[...null===a||a.id===s?[(0,v.text)((0,v.capitalised)(n))]:[(0,v.ship)(a),(0,v.text)(` ${n}`)],(0,v.text)(" "),...ty(e)]}let tC={received:o,sent:c,claimed:e8,released:e9.LogOut,prompt:_.KeyRound,commissioned:e7.Flag,acknowledged:tt,returned:tp.Undo2,undeliverable:ti,secret:e6,fleet:e5.Anchor,password:tm,retired:ej.Archive,abandoned:tl,dismissed:tn,renamed:tu,reported:td},tS={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"},tq="flex w-full gap-3 px-3.5 py-3 text-left";function tR({entry:e,shipId:s,now:n,onOpenMessage:a}){let{parts:i,tone:r,icon:d}=function(e,t){switch(e.type){case"FleetInitialised":return{parts:[(0,v.text)("Fleet initialised")],tone:"ended",icon:"fleet"};case"ShipCommissioned":{let t=tg(e,"type");return{parts:[(0,v.text)("Commissioned"),...tv(e.actor),...void 0===t?[]:[(0,v.text)(` as ${t}`)]],tone:"ended",icon:"commissioned"}}case"StartingPromptIssued":return{parts:[(0,v.text)("Starting prompt issued")],tone:"ended",icon:"prompt"};case"ShipClaimed":return{parts:[(0,v.text)(`Claimed by a session on ${function(e){let t=tg(e,"locationDescription");if(void 0!==t&&""!==t)return t;let s=tg(e,"location");return"DEVICE"===s||"CLOUD"===s||"SERVER"===s||"OTHER"===s?(0,tx.locationKindWord)(s):"an unknown location"}(e)}`)],tone:"ok",icon:"claimed"};case"LeaseRevoked":let s,n;return{parts:[..."released"===(s=tg(e,"reason")??"")?[(0,v.text)("Released"),...tv(e.actor),(0,v.text)(".")]:[(0,v.text)(tw[s]??"Its session ended.")],..."number"==typeof(n=e.details.returnedDeliveries)&&n>0?[(0,v.text)(` ${(0,v.counted)(n,{one:"in-flight delivery",many:"in-flight deliveries"})} went back to pending.`)]:[]],tone:"waiting",icon:"released"};case"CredentialRevoked":return{parts:[(0,v.text)("Secret invalidated")],tone:"ended",icon:"secret"};case"OperatorPasswordReset":return{parts:[(0,v.text)("Operator password reset")],tone:"waiting",icon:"password"};case"FleetLimitsChanged":return{parts:[(0,v.text)("Fleet limits changed")],tone:"ended",icon:"fleet"};case"SignInTicketIssued":return{parts:[(0,v.text)("Sign-in ticket issued")],tone:"ended",icon:"password"};case"ViewerSessionStarted":return{parts:[(0,v.text)("Someone started viewing the fleet")],tone:"ended",icon:"password"};case"CrewRequested":return{parts:[(0,v.text)("Crew requested"),...tv(e.actor)],tone:"waiting",icon:"claimed"};case"CrewRequestRemoved":return{parts:[(0,v.text)("Crew request removed"),...tv(e.actor)],tone:"ended",icon:"released"};case"CrewRequestExplained":{let t=tg(e,"reason");return{parts:[(0,v.text)(void 0===t?"Crew request can not be placed yet":`Crew request can not be placed: ${t}`),...tv(e.actor)],tone:"waiting",icon:"reported"}}case"CrewRequestGivenBack":{let t=tg(e,"reason");return{parts:[(0,v.text)(void 0===t?"Crew request given back":`Crew request given back: ${t}`),...tv(e.actor)],tone:"waiting",icon:"released"}}case"WorktreeClearRequested":return{parts:[(0,v.text)(`Clearing of the kept ${tg(e,"repository")??""} worktree requested`),...tv(e.actor)],tone:"waiting",icon:"reported"};case"WorktreeCleared":return{parts:[(0,v.text)("not-kept"===tg(e,"outcome")?`Kept ${tg(e,"repository")??""} worktree cleared (none was kept)`:`Kept ${tg(e,"repository")??""} worktree cleared`),...tv(e.actor)],tone:"ended",icon:"retired"};case"WorktreeClearRemoved":return{parts:[(0,v.text)(`Clearing of the kept ${tg(e,"repository")??""} worktree dropped`),...tv(e.actor)],tone:"ended",icon:"released"};case"CrewAssigned":return{parts:[(0,v.text)("Crew request assigned"),...tv(e.actor)],tone:"waiting",icon:"claimed"};case"CrewStatusChanged":{let t=tg(e,"status");return{parts:[(0,v.text)(void 0===t?"Crew status changed":`Crew ${t}`),...tv(e.actor)],tone:"crashed"===t?"attention":"active",icon:"reported"}}case"LabelDefined":return{parts:[(0,v.text)(`Label ${tf(e)} defined: ${tb(e)}`)],tone:"ended",icon:"reported"};case"LabelValuesChanged":return{parts:[(0,v.text)(`Label ${tf(e)} values changed: ${tb(e)}`)],tone:"ended",icon:"reported"};case"LabelRetired":return{parts:[(0,v.text)(`Label ${tf(e)} retired`)],tone:"ended",icon:"retired"};case"NetworkRulesSet":{let t=e.details.rules,s=String(e.details.version??""),n="number"==typeof t?`Network rules set: ${String(t)} rules`:"Network rules cleared: every ship reaches every ship";return{parts:[(0,v.text)(`${n}, version ${s}`),...tv(e.actor)],tone:"ended",icon:"fleet"}}case"NetworkRulesDeclared":{let t=e.details.rules,s="number"==typeof t&&t>0?`Network rules declared: ${String(t)} rules`:"Declared network rules withdrawn";return{parts:[(0,v.text)(s),...tv(e.actor)],tone:"ended",icon:"fleet"}}case"NetworkPluginRegistered":return{parts:[(0,v.text)(`Networking plugin registered: while unavailable ${tg(e,"whileUnavailable")??""}, version ${String(e.details.version??"")}`),...tv(e.actor)],tone:"ended",icon:"fleet"};case"NetworkPluginUnregistered":return{parts:[(0,v.text)(`Networking plugin unregistered: every ship reaches every ship, version ${String(e.details.version??"")}`),...tv(e.actor)],tone:"ended",icon:"fleet"};case"LabelDeleted":return{parts:[(0,v.text)(`Label ${tf(e)} deleted`)],tone:"ended",icon:"retired"};case"LabelAssigned":return{parts:[(0,v.text)(`Labelled ${tf(e)}=${tg(e,"value")??""}`),...tv(e.actor)],tone:"ended",icon:"reported"};case"LabelUnassigned":return{parts:[(0,v.text)(`Label ${tf(e)}=${tg(e,"value")??""} removed`),...tv(e.actor)],tone:"ended",icon:"reported"};case"MessageAccepted":let a;return{parts:(a=e.message)?tj(e)&&"ship"===a.recipient.kind?a.sender.id===t?[(0,v.text)("Pinged "),(0,v.ship)(a.recipient.ship)]:[(0,v.text)("Pinged by "),(0,v.ship)(a.sender)]:a.sender.id===t?"ship"===a.recipient.kind?[(0,v.text)("Sent a message to "),(0,v.ship)(a.recipient.ship)]:[(0,v.text)(`Sent a message to any ship of type ${a.recipient.type}`)]:[(0,v.text)("Received a message from "),(0,v.ship)(a.sender)]:[(0,v.text)("A message was sent")],tone:"ended",icon:e.message?.sender.id===t?"sent":"received"};case"DeliveryClaimed":return{parts:tN(e,{shipId:t,verb:"took"}),tone:"active",icon:"received"};case"DeliveryAcknowledged":return{parts:"pong"===tg(e,"answer")?[...tN(e,{shipId:t,verb:"answered"}),(0,v.text)(" with pong")]:tN(e,{shipId:t,verb:"acknowledged"}),tone:"ok",icon:"acknowledged"};case"DeliveryReturned":return{parts:[...tk(e),(0,v.text)(" went back to pending")],tone:"waiting",icon:"returned"};case"DeliveryUndeliverable":return{parts:[...tk(e),(0,v.text)(" became undeliverable")],tone:"attention",icon:"undeliverable"};case"ShipRetired":{let t=e.details.abandonedDeliveries;return{parts:[(0,v.text)("Retired"),...tv(e.actor),(0,v.text)("."),..."number"==typeof t&&t>0?[(0,v.text)(` ${(0,v.counted)(t,{one:"delivery",many:"deliveries"})} abandoned.`)]:[]],tone:"ended",icon:"retired"}}case"DeliveryAbandoned":return{parts:[...tk(e),(0,v.text)(" was abandoned")],tone:"ended",icon:"abandoned"};case"ShipReported":{let t=tg(e,"state")??"in",s=tg(e,"note");return{parts:[(0,v.text)(void 0===s?`Reported ${t}`:`Reported ${t}: ${s}`)],tone:Object.hasOwn(ez.REPORT_TONES,t)?ez.REPORT_TONES[t]:"ended",icon:"reported"}}case"ShipRenamed":{let t=tg(e,"from"),s=tg(e,"to");return{parts:[(0,v.text)(void 0===t||void 0===s?"Renamed":`Renamed from ${t} to ${s}`),...tv(e.actor)],tone:"ended",icon:"renamed"}}case"DeliveryDismissed":return{parts:[...tk(e),(0,v.text)(" was dismissed"),...tv(e.actor)],tone:"ended",icon:"dismissed"}}}(e,s),o=tC[d],l=new Date(e.occurredAt),c=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{"aria-hidden":!0,className:(0,p.classNames)("flex size-7 shrink-0 items-center justify-center rounded-md border [&_svg]:size-(--size-icon-sm)",tS[r]),children:(0,t.jsx)(o,{})}),(0,t.jsxs)("span",{className:"flex min-w-0 flex-col gap-1",children:[(0,t.jsx)(C.Sentence,{parts:i,className:"text-body text-foreground max-sm:text-body-touch"}),(0,t.jsx)("time",{dateTime:e.occurredAt,title:(0,b.fullDateTime)(l),className:"text-meta text-muted-foreground tabular-nums",children:(0,b.relativeTime)(l,n)})]})]}),{message:u}=e;return(0,t.jsx)("li",{"data-testid":"ship-timeline-entry","data-type":e.type,className:"border-b border-border last:border-b-0",children:u?(0,t.jsx)("button",{type:"button",className:(0,p.classNames)(tq,"transition-colors duration-(--duration-fast) hover:bg-accent"),onClick:()=>{a(u.id)},children:c}):(0,t.jsx)("div",{className:tq,children:c})})}function tT({shipId:e,entries:s,state:n,onRetry:a,now:i,onOpenMessage:r}){return"loading"===n?(0,t.jsx)(N.LoadingSkeleton,{variant:"list",rows:4,label:"Loading the timeline"}):"error"===n?(0,t.jsxs)("div",{"data-testid":"ship-timeline",className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-3",children:[(0,t.jsx)(k.InlineError,{title:"Couldn’t load the timeline",description:"The rest of the page is current. Try again in a moment."}),a?(0,t.jsx)(j.Button,{size:"sm",icon:(0,t.jsx)(m.RotateCw,{"aria-hidden":!0}),onClick:a,className:"self-start",children:"Try again"}):null]}):(0,t.jsxs)("div",{"data-testid":"ship-timeline",className:"overflow-hidden rounded-lg border border-border bg-card",children:[(0,t.jsx)("ol",{"aria-label":"Timeline",children:s.map(s=>(0,t.jsx)(tR,{entry:s,shipId:e,now:i,onOpenMessage:r},s.id))}),s.length<=1?(0,t.jsx)("p",{className:"border-t border-border px-3.5 py-3 text-center text-meta text-muted-foreground first:border-t-0",children:"Nothing else yet. Claims, releases and messages appear here as they happen."}):null]})}var tI=e.i(37631),t$=e.i(87964),tA=e.i(46929),tL=e.i(18423),tz=e.i(96676),tO=e.i(9176),tD=e.i(78485),tP=e.i(53573);let tM="timeline",tB="messages",tE=(0,T.lazyDialog)(()=>e.A(4787).then(e=>e.MessageSheet),e=>e.isOpen);e.s(["ShipPageFor",0,function({shipId:e,tab:r,messageId:d}){let o=(0,s.useRouter)(),l=(0,tz.useNow)(),c=(0,tO.usePluginShipIds)(),u=(0,tP.useShip)(e),h=(0,tP.useShipTimeline)(e),m=(0,tP.useShipMessages)(e),p=(0,tP.useMessage)(d),x=(0,tL.useLiveFleet)(),g=(0,t$.useConsoleFrame)(),f=(0,ec.useSquadrons)(),b=(0,I.useAccess)(),[v,w]=(0,n.useState)();(0,tD.useSignInWhenSessionEnds)([u.error,h.error,m.error,p.error,x.error]);let j=t=>{let s,n;o.replace((s=new URLSearchParams,t.tab!==tM&&s.set("tab",t.tab),void 0!==t.messageId&&s.set("message",t.messageId),""===(n=s.toString())?`/ships/${e}`:`/ships/${e}?${n}`),{scroll:!1})},y=e=>{j({tab:r,messageId:e})},k="NOT_FOUND"===(0,tA.trpcErrorCode)(u.error),N=(0,ex.shipsInSquadrons)(f.data??[]).get(e);return(0,t.jsx)(tI.DetailPage,{onCompose:g.onCompose,onSearch:g.onSearch,banner:g.banner,title:u.data?.name??"Ship",parents:N?[{href:"/squadrons",label:"Squadrons"},{href:`/squadrons/${N.squadronId}`,label:N.squadronId}]:[{href:"/",label:"Fleet overview"}],live:x.live,header:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(e_,{ship:u.data,shipId:e,state:k?"not-found":u.data?"ready":"loading",now:l,actions:u.data?(0,t.jsx)(ev.ShipActions,{ship:u.data,compose:i.ComposeMessage,crewLineFlow:ew.NewCrewLineFlow}):void 0,crewRequest:u.data?(0,t.jsx)(ep,{ship:u.data,timeline:h.data??[],now:l}):void 0,labels:u.data?(0,t.jsx)(e2,{ship:u.data}):void 0,isPluginShip:c.has(e)}),k?null:(0,t.jsx)(eb,{shipId:e,now:l})]}),sheet:(0,t.jsx)(tE,{message:p.data,messageId:d,state:"NOT_FOUND"===(0,tA.trpcErrorCode)(p.error)?"not-found":p.data?"ready":"loading",isOpen:void 0!==d,onOpenChange:e=>{e||j({tab:r})},onReply:b.canSend?e=>{w({messageId:e.id,sender:e.sender})}:void 0}),children:(0,t.jsxs)(t.Fragment,{children:[k?null:(0,t.jsxs)(a.Tabs,{value:r,onValueChange:e=>{j({tab:e===tB?tB:tM,messageId:d})},children:[(0,t.jsxs)(a.TabsList,{variant:"line","aria-label":`${u.data?.name??"Ship"} history`,children:[(0,t.jsx)(a.TabsTrigger,{variant:"line",value:tM,children:"Timeline"}),(0,t.jsx)(a.TabsTrigger,{variant:"line",value:tB,children:"Messages"})]}),(0,t.jsx)(a.TabsContent,{value:tM,className:"pt-4",children:(0,t.jsx)(tT,{shipId:e,entries:h.data??[],state:h.isError?"error":h.data?"ready":"loading",onRetry:()=>{h.refetch()},now:l,onOpenMessage:y})}),(0,t.jsx)(a.TabsContent,{value:tB,className:"pt-4",children:(0,t.jsx)(R,{shipId:e,messages:m.data??[],state:m.isError?"error":m.data?"ready":"loading",onRetry:()=>{m.refetch()},now:l,onOpenMessage:y})})]}),(0,t.jsx)(i.ComposeMessage,{isOpen:void 0!==v,onOpenChange:e=>{e||w(void 0)},replyTo:v})]})})}],15860)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,79432,19002,11147,e=>{"use strict";var t=e.i(56420);let s={name:"activity",size:24,node:[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]};s.node;let a=(0,t.default)(s);e.s(["Activity",0,a],79432);let n={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"]};n.node;let r=(0,t.default)(n);e.s(["CirclePause",0,r],19002);let i={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"]};i.node;let l=(0,t.default)(i);e.s(["OctagonPause",0,l],11147)},37750,e=>{"use strict";var t=e.i(56420);let s={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"}]]};s.node;let a=(0,t.default)(s);e.s(["AppWindow",0,a],37750)},71567,e=>{"use strict";var t=e.i(56420);let s={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"}]]};s.node;let a=(0,t.default)(s);e.s(["Bot",0,a],71567)},92150,e=>{"use strict";var t=e.i(56420);let s={name:"boxes",size:24,node:[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]};s.node;let a=(0,t.default)(s);e.s(["Boxes",0,a],92150)},16327,e=>{"use strict";var t=e.i(56420);let s={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};s.node;let a=(0,t.default)(s);e.s(["ChevronDown",0,a],16327)},24071,e=>{"use strict";var t=e.i(56420);let s={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};s.node;let a=(0,t.default)(s);e.s(["ChevronLeft",0,a],24071)},67927,e=>{"use strict";var t=e.i(56420);let s={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};s.node;let a=(0,t.default)(s);e.s(["ChevronRight",0,a],67927)},8734,e=>{"use strict";var t=e.i(56420);let s={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"}]]};s.node;let a=(0,t.default)(s);e.s(["Copy",0,a],8734)},31458,e=>{"use strict";var t=e.i(56420);let s={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"}]]};s.node;let a=(0,t.default)(s);e.s(["Flag",0,a],31458)},69309,e=>{"use strict";var t=e.i(56420);let s={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"}]]};s.node;let a=(0,t.default)(s);e.s(["Plug",0,a],69309)},77071,e=>{"use strict";var t=e.i(56420);let s={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};s.node;let a=(0,t.default)(s);e.s(["Plus",0,a],77071)},66595,e=>{"use strict";var t=e.i(56420);let s={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};s.node;let a=(0,t.default)(s);e.s(["Search",0,a],66595)},19759,e=>{"use strict";var t=e.i(56420);let s={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"]};s.node;let a=(0,t.default)(s);e.s(["SquarePen",0,a],19759)},83035,e=>{"use strict";var t=e.i(56420);let s={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"]};s.node;let a=(0,t.default)(s);e.s(["SquareTerminal",0,a],83035)},37817,e=>{"use strict";var t=e.i(56420);let s={name:"undo-2",size:24,node:[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]};s.node;let a=(0,t.default)(s);e.s(["Undo2",0,a],37817)},94831,e=>{"use strict";var t=e.i(56420);let s={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"}]]};s.node;let a=(0,t.default)(s);e.s(["Unplug",0,a],94831)},91703,e=>{"use strict";var t=e.i(43476),s=e.i(83035),a=e.i(90063),n=e.i(61966);e.s(["CodeBlock",0,function({label:e,code:r,isWrapped:i=!1,copyValue:l,copyLabel:o=`Copy ${e.toLowerCase()}`,onCopied:d,onCopyFailed:c,codeTestId:u,copyTestId:h}){return(0,t.jsxs)("div",{"data-slot":"code-block",className:"overflow-hidden rounded-lg border border-border bg-muted",children:[(0,t.jsxs)("div",{className:"flex h-9 items-center justify-between gap-2 border-b border-border pr-1.5 pl-3",children:[(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5 text-caption text-muted-foreground",children:[(0,t.jsx)(s.SquareTerminal,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:e})]}),(0,t.jsx)(n.CopyButton,{value:l??r,label:o,isLabeled:!0,onCopied:d,onCopyFailed:c,"data-testid":h})]}),(0,t.jsx)("pre",{"data-testid":u,className:(0,a.classNames)("overflow-x-auto px-3 py-3 font-mono text-code text-foreground",i?"break-all whitespace-pre-wrap":"whitespace-pre"),children:r})]})}])},61966,e=>{"use strict";var t=e.i(43476),s=e.i(89664),a=e.i(8734),n=e.i(71645),r=e.i(15905);e.s(["CopyButton",0,function({value:e,label:i,size:l="xs",isLabeled:o=!1,onCopied:d,onCopyFailed:c,className:u,"data-testid":h}){let[m,p]=(0,n.useState)(!1);async function x(){try{await navigator.clipboard.writeText(e)}catch{c?.();return}p(!0),d?.(),setTimeout(()=>{p(!1)},1500)}return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Button,{variant:"ghost",size:l,isIconOnly:!o,"aria-label":i,title:o?void 0:i,icon:m?(0,t.jsx)(s.Check,{"aria-hidden":!0}):(0,t.jsx)(a.Copy,{"aria-hidden":!0}),className:u,"data-testid":h,onClick:()=>{x()},children:o?m?"Copied":"Copy":null}),(0,t.jsx)("span",{role:"status",className:"sr-only",children:m?"Copied.":""})]})}])},36651,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["Kbd",0,function({className:e,...a}){return(0,t.jsx)("kbd",{"data-slot":"kbd",className:(0,s.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),...a})}])},19321,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["Skeleton",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"skeleton","aria-hidden":!0,className:(0,s.classNames)("animate-pulse rounded-sm bg-secondary [animation-duration:var(--duration-pulse)] motion-reduce:animate-none",e),...a})}])},67874,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["EmptyState",0,function({title:e,description:a,icon:n,action:r,variant:i="page",className:l}){return"section"===i?(0,t.jsxs)("p",{"data-slot":"empty-state","data-variant":i,className:(0,s.classNames)("rounded-lg border border-border px-4 py-3 text-center text-meta text-muted-foreground",l),children:[e,a?(0,t.jsxs)(t.Fragment,{children:[" ",a]}):null]}):"no-results"===i?(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":i,className:(0,s.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}),r]}):(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":i,className:(0,s.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:[n?(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:n}):null,(0,t.jsx)("h2",{className:"text-heading font-semibold text-foreground max-sm:text-heading-touch",children:e}),a?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:a}):null,r?(0,t.jsx)("div",{className:"mt-1 max-sm:w-full max-sm:[&>*]:w-full",children:r}):null]})}])},19249,e=>{"use strict";var t=e.i(43476),s=e.i(90063);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:r,className:i}){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",i),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!==r&&(0,t.jsx)("span",{className:"text-muted-foreground",children:r})]})},"HealthSummary",0,function({counts:e,className:r}){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",r),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))})}])},95960,e=>{"use strict";var t=e.i(43476),s=e.i(92150),a=e.i(49287),n=e.i(86875),r=e.i(56420);let i={name:"tag-x",size:24,node:[["path",{d:"m16.5 6.5-3.914-3.914A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.43 2.43 0 0 0 3.42 0l1.79-1.79",key:"hu94c9"}],["path",{d:"m16.5 10.5 5 5",key:"1jo8bf"}],["path",{d:"m21.5 10.5-5 5",key:"jzei60"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]};i.node;let l=(0,r.default)(i);var o=e.i(63676),d=e.i(90063),c=e.i(80581);let u={"trierarch-plugin":n.ShipWheel,squadrons:s.Boxes,ship:a.Ship,gone:l};e.s(["LabelChip",0,function({chip:e,onRemove:s,testId:a,className:n,trailing:r,meaning:i}){let l="none"===e.mark?null:u[e.mark],h=`${e.key}=${e.value}`,m=void 0===i?(0,c.chipTitleOf)(e):`${(0,c.chipTitleOf)(e)}. ${i}`;return(0,t.jsxs)("span",{role:"group","aria-label":m,"data-slot":"label-chip","data-testid":a,title:m,className:(0,d.classNames)("inline-flex h-5.5 max-w-full min-w-0 shrink-0 items-center gap-1 rounded-sm border border-border bg-secondary px-1.5 font-mono text-id whitespace-nowrap text-foreground [&_svg]:size-3 [&_svg]:shrink-0 [&_svg]:text-muted-foreground","gone"===e.mark?"border-dashed":null,n),children:[null===l?null:(0,t.jsx)(l,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"truncate",children:[(0,t.jsxs)("span",{className:"text-muted-foreground",children:[e.key,"="]}),(0,t.jsx)("span",{className:"font-medium",children:e.value})]}),r,void 0===s?null:(0,t.jsx)("button",{type:"button","aria-label":`Remove ${h}`,onClick:s,className:"-mr-1 ml-0.5 inline-flex size-4 items-center justify-center rounded-xs text-muted-foreground hover:bg-accent hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring",children:(0,t.jsx)(o.X,{"aria-hidden":!0})})]})}],95960)},88393,e=>{"use strict";var t=e.i(43476),s=e.i(90063),a=e.i(19321);function n(e){return Array.from({length:e},(e,t)=>`row-${String(t)}`)}e.s(["LoadingSkeleton",0,function({variant:e,rows:r=4,label:i="Loading",className:l}){return(0,t.jsxs)("div",{role:"status","data-slot":"loading-skeleton","data-variant":e,className:(0,s.classNames)("w-full",l),children:[(0,t.jsx)("span",{className:"sr-only",children:i}),"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"}),n(r).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)(a.Skeleton,{className:"h-2.5 w-24"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-16"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(a.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:n(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)(a.Skeleton,{className:"h-2.5 w-20"}),(0,t.jsx)(a.Skeleton,{className:"h-6 w-10"}),(0,t.jsx)(a.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)(a.Skeleton,{className:"h-7 w-48"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(a.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(a.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:n(r).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)(a.Skeleton,{className:"h-3 w-28"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-44"})]},e))}):null]})}])},63481,e=>{"use strict";var t=e.i(43476),s=e.i(37750),a=e.i(71567),n=e.i(56420);let r={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"}]]};r.node;let i=(0,n.default)(r),l={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"}]]};l.node;let o=(0,n.default)(l),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),m={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"}]]};m.node;let p=(0,n.default)(m);var x=e.i(83035),f=e.i(94831),g=e.i(90063),b=e.i(66616),v=e.i(40798);let y={DEVICE:o,CLOUD:i,SERVER:p,OTHER:c},k={coding:x.SquareTerminal,chat:h,bot:a.Bot,console:s.AppWindow},j={md:"text-body",sm:"text-meta"};e.s(["LocationTag",0,function({kind:e,description:s=null,harness:a=null,isCompact:n=!1,size:r="md",className:i}){let l=(0,g.classNames)("inline-flex min-w-0 items-center gap-1.5 text-muted-foreground [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",j[r],i);if(null===e)return(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,children:[(0,t.jsx)(f.Unplug,{"aria-hidden":!0}),"No session"]});let o=y[e],d=(0,v.locationKindWord)(e),c=null===s?d:`${d} \xb7 ${s}`;if(null!==a){let e=(0,b.harnessKind)(a),n=void 0===e?void 0:k[e],r=(0,b.harnessWord)(a);return(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,title:null===s?`${r} \xb7 ${d}`:`${r} \xb7 ${d}: ${s}`,children:[void 0===n?null:(0,t.jsx)(n,{"aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate text-foreground",children:r}),(0,t.jsx)("span",{"aria-hidden":!0,children:"·"}),(0,t.jsx)(o,{"aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate",children:d}),null===s?null:(0,t.jsxs)("span",{className:"sr-only",children:[": ",s]})]})}return n?(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,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:s??d})]}):(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,children:[(0,t.jsx)(o,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"truncate",children:[d,null===s?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:s})]})]})]})}],63481)},81830,e=>{"use strict";var t=e.i(43476),s=e.i(79432),a=e.i(19002),n=e.i(11147),r=e.i(90063),i=e.i(49635),l=e.i(93361);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,h=(0,r.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,r.classNames)(h,"text-muted-foreground"),children:"No report yet"});let m=o[e.state],p=d[l.REPORT_TONES[e.state]],x=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)(x,s)}`:(0,l.reportText)(e),className:h,children:[(0,t.jsx)(m,{"aria-hidden":!0,className:(0,r.classNames)("size-(--size-icon-sm) shrink-0",p)}),(0,t.jsx)("span",{className:(0,r.classNames)("shrink-0 font-medium",p),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,i.fullDateTime)(x),className:"shrink-0 text-muted-foreground tabular-nums",children:u?`\xb7 ${(0,l.reportedWhen)(x,s)}`:(0,l.reportAge)(x,s)})]})}])},99261,56539,e=>{"use strict";var t=e.i(43476),s=e.i(56420);let a={name:"chevron-up",size:24,node:[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]};a.node;let n=(0,s.default)(a);e.s(["ChevronUp",0,n],56539);var r=e.i(71645),i=e.i(95960);e.s(["ShipLabels",0,function({chips:e}){let[s,a]=(0,r.useState)(!1);return 0===e.length?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"No labels"}):!s&&e.length>2?(0,t.jsxs)("span",{className:"flex min-w-0 flex-wrap items-center gap-1.5",children:[e.slice(0,2).map(e=>(0,t.jsx)(i.LabelChip,{chip:e,testId:"ship-label"},e.valueId)),(0,t.jsxs)("button",{type:"button","aria-label":`Show all ${String(e.length)} labels`,"data-testid":"ship-labels-more",className:"inline-flex h-5.5 items-center rounded-sm bg-secondary px-1.5 text-caption font-medium tabular-nums hover:bg-accent focus-visible:outline-2 focus-visible:outline-ring",onClick:()=>{a(!0)},children:["+",e.length-2]})]}):(0,t.jsxs)("span",{className:"flex min-w-0 flex-wrap items-center gap-1.5",children:[(function(e){let t=[];for(let s of e){let e="none"===s.mark?null:s.ownerName,a=t.find(t=>t.owner===e);void 0===a?t.push({owner:e,chips:[s]}):a.chips.push(s)}return t})(e).map(e=>(0,t.jsxs)("span",{className:"inline-flex flex-wrap items-center gap-1.5",children:[null===e.owner?null:(0,t.jsxs)("span",{className:"text-meta text-muted-foreground",children:["by ",e.owner]}),e.chips.map(e=>(0,t.jsx)(i.LabelChip,{chip:e,testId:"ship-label"},e.valueId))]},e.owner??"")),e.length>2?(0,t.jsxs)("button",{type:"button",className:"inline-flex items-center gap-1 rounded-sm px-1 text-meta hover:bg-accent focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon-sm)",onClick:()=>{a(!1)},children:[(0,t.jsx)(n,{"aria-hidden":!0}),"Show fewer"]}):null]})}],99261)},39448,e=>{"use strict";var t=e.i(43476),s=e.i(25913),a=e.i(22016),n=e.i(90063);let r=(0,s.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:s,size:i,isSuffixShown:l=!1,isOperator:o=!1,href:d,className:c}){let u=d?(0,t.jsx)(a.default,{href:d,className:(0,n.classNames)(r({size:i}),"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:r({size:i}),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",c),children:[u,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:"· "}),s.slice(-4)]}):null]})}])},37631,e=>{"use strict";var t=e.i(43476),s=e.i(77880),a=e.i(85538);e.s(["DetailPage",0,function({title:e,parents:n,header:r,children:i,sheet:l,live:o,onCompose:d,onSearch:c,banner:u}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.Header,{breadcrumb:e,parents:n,live:o,onCompose:d,onSearch:c}),u,(0,t.jsx)(a.TopBar,{title:e,live:o,back:n[n.length-1]??n[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:[r,i]}),l]})}])},77880,85538,e=>{"use strict";var t=e.i(43476),s=e.i(67927),a=e.i(66595),n=e.i(19759),r=e.i(22016),i=e.i(15905),l=e.i(36651),o=e.i(90063);let d={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 c({state:e,className:s}){let{label:a,dot:n}=d[e];return(0,t.jsxs)("span",{"data-slot":"live-status","data-state":e,"aria-live":"polite",className:(0,o.classNames)("inline-flex items-center gap-1.5 text-meta text-muted-foreground",s),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:(0,o.classNames)("size-2 shrink-0 rounded-full",n)}),a]})}e.s(["Header",0,function({breadcrumb:e,parents:o=[],live:d,onCompose:u,onSearch:h}){return(0,t.jsxs)("header",{"data-slot":"header",className:"sticky top-0 z-30 hidden h-(--size-header) shrink-0 items-center justify-between gap-4 border-b border-border bg-background px-6 sm:flex",children:[(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:[o.map(e=>(0,t.jsxs)("li",{className:"flex shrink-0 items-center gap-1.5",children:[(0,t.jsx)(r.default,{href:e.href,className:"text-muted-foreground hover:text-foreground hover:underline",children:e.label}),(0,t.jsx)(s.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})]})}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(c,{state:d}),h?(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",onClick:h,children:[(0,t.jsx)("span",{className:"grow text-left",children:"Search ships or jump to"}),(0,t.jsx)(l.Kbd,{children:"⌘K"})]}):null,u?(0,t.jsx)(i.Button,{size:"sm",icon:(0,t.jsx)(n.SquarePen,{"aria-hidden":!0}),"data-testid":"header-compose",onClick:u,children:"Compose"}):null]})]})}],77880);var u=e.i(24071),h=e.i(57957);e.s(["TopBar",0,function({title:e,live:s,actions:n,back:l,account:o,onSearch:d}){let m=d&&!l?d:void 0;return(0,t.jsxs)("header",{"data-slot":"top-bar","data-mode":l?"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:[l?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(r.default,{href:l.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)(u.ChevronLeft,{"aria-hidden":!0}),l.label]}),(0,t.jsx)("p",{className:"min-w-0 flex-1 truncate text-center text-body-touch font-semibold text-foreground",children:e})]}):(0,t.jsx)("h1",{className:"truncate text-title-touch font-semibold tracking-tight text-foreground",children:e}),(0,t.jsx)(c,{state:s}),n||m||o&&!l?(0,t.jsxs)("div",{className:"ml-auto flex items-center gap-1",children:[m?(0,t.jsx)(i.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Search ships or jump to","data-testid":"top-bar-search",onClick:m,children:(0,t.jsx)(a.Search,{"aria-hidden":!0})}):null,n,o&&!l?(0,t.jsx)(h.AccountMenuSheet,{...o}):null]}):null]})}],85538)},45132,e=>{"use strict";var t=e.i(43476),s=e.i(46150),a=e.i(39448);e.s(["Sentence",0,function({parts:e,className:n}){let r;return(0,t.jsx)("span",{className:n,children:(r=new Map,e.map(e=>{let t="text"===e.kind?`text:${e.text}`:`ship:${e.party.id}`,s=r.get(t)??0;return r.set(t,s+1),{key:`${t}#${String(s)}`,part:e}})).map(({key:e,part:n})=>"text"===n.kind?(0,t.jsx)("span",{children:n.text},e):(0,t.jsx)(a.ShipName,{name:n.party.name,shipId:n.party.id,isSuffixShown:n.party.name!==s.OPERATOR_NAME,className:"align-baseline"},e))})}])},8041,e=>{"use strict";var t=e.i(14695);function s(e,t){for(let s of t)e.includes(s)||e.push(s)}function a(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[s]=e?.folders??[];return void 0===s?void 0:{kind:"folder",name:s}}function r(e){let[t]=e;return{harness:t?.harness??"",workspace:n(t),options:a(t),firstPrompt:"",squadron:"",machineLabels:[]}}let i=new TextEncoder;function l(e){return i.encode(e).byteLength}function o(e){return e<1024?`${String(e)} B`:`${(e/1024).toFixed(1).replace(/\.0$/,"")} KB`}e.s(["byteSize",0,o,"defaultValues",0,r,"offersOf",0,function(e){let a=[];for(let n of e)if(!n.isSilent&&null!==n.details)for(let e of n.details.harnesses){let r=a.find(t=>t.harness===e.harness);for(let i of(void 0===r&&(r={harness:e.harness,repositories:[],folders:[],options:[]},a.push(r)),s(r.repositories,n.details.workspaces.repositories),s(r.folders,n.details.workspaces.folders),(0,t.harnessOptions)(e.options))){let e=r.options.find(e=>e.name===i.name);void 0===e?r.options.push({...i,values:[...i.values]}):(s(e.values,i.values),e.defaultValue??=i.defaultValue)}}return a},"promptBytes",0,l,"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:s,options:a,firstPrompt:n,squadron:r}=e;return[{label:"Harness",value:t??"Trierarch default"},"worktree"===s.kind?{label:"Workspace",value:s.repository,meta:"New worktree"}:{label:"Workspace",value:s.name,meta:"Folder, as it is"},...Object.entries(a).map(([e,t])=>({label:e,value:"string"==typeof t?t:JSON.stringify(t),isMono:!0})),{label:"First prompt",value:void 0===n?null:o(l(n))},{label:"Squadron",value:r??null,isMono:!0}]},"valuesOf",0,function(e,t){if(null==e)return r(t);let{harness:s,workspace:a,options:n,firstPrompt:i,squadron:l,machineLabels:o}=e;return{harness:s??r(t).harness,workspace:"worktree"===a.kind?{kind:"worktree",repository:a.repository}:{kind:"folder",name:a.name},options:Object.fromEntries(Object.entries(n).flatMap(([e,t])=>"string"==typeof t?[[e,t]]:[])),firstPrompt:i??"",squadron:l??"",machineLabels:[...o??[]]}},"withHarness",0,function(e,t){let{harness:s,offers:r}=t,i=r.find(e=>e.harness===s),l=e.workspace,o=void 0!==l&&("worktree"===l.kind?i?.repositories.includes(l.repository)??!1:i?.folders.includes(l.name)??!1);return{...e,harness:s,workspace:o?l:n(i),options:a(i)}}])},10921,e=>{"use strict";var t=e.i(76580),s=e.i(94070);e.s(["useCrewSettings",0,function(e){let a=(0,t.useConsoleRead)({queryKey:["crew-settings",JSON.stringify(e)],queryFn:()=>(0,s.fetchConsoleRead)({read:"crew-settings",input:{settings:[...e]}}),enabled:e.length>0,staleTime:1/0});return 0===e.length?[]:a.data}])},66616,e=>{"use strict";var t=e.i(49635);let s={"claude-code":{word:"Claude Code",kind:"coding"},codex:{word:"Codex",kind:"coding"},"claude-chat":{word:"Claude chat",kind:"chat"},chatgpt:{word:"ChatGPT",kind:"chat"},grok:{word:"Grok",kind:"chat"},grokbot:{word:"Grokbot",kind:"bot"},console:{word:"Console",kind:"console"}};function a(e){return s[e]?.word??e}e.s(["crewLineHarnessWord",0,function(e){return"chat"===e?"Chat":a(e)},"harnessDetection",0,function(e,s){if(void 0===e.version)return;if(void 0===e.modelsConfirmedAt||null===e.modelsConfirmedAt)return`${e.version} \xb7 no model confirmed`;let a=(0,t.relativeTime)(new Date(e.modelsConfirmedAt),s);return`${e.version} \xb7 models confirmed ${"Just now"===a?"just now":a}`},"harnessKind",0,function(e){return s[e]?.kind},"harnessWord",0,a])},18423,e=>{"use strict";var t=e.i(12598),s=e.i(5861),a=e.i(71645),n=e.i(42454),r=e.i(27702);let i=new Set(["FleetInitialised","ShipCommissioned","ShipClaimed","LeaseRevoked","CredentialRevoked","StartingPromptIssued","ShipRetired","DeliveryAcknowledged","DeliveryUndeliverable","ShipReported","CrewRequested","CrewRequestRemoved","CrewAssigned","CrewStatusChanged","CrewRequestExplained","CrewRequestGivenBack","LabelAssigned","LabelUnassigned","LabelRetired"]);async function l(e,t){await e.cancelQueries({queryKey:t,predicate:e=>void 0===e.state.data&&"fetching"===e.state.fetchStatus}),await e.invalidateQueries({queryKey:t})}let o=new Set(["LabelDefined","LabelValuesChanged","LabelRetired","LabelAssigned","LabelUnassigned","LabelDeleted"]),d=new Set(["DeliveryUndeliverable","DeliveryDismissed"]);e.s(["useLiveFleet",0,function(){let e=(0,r.useTRPC)(),c=(0,t.useQueryClient)(),[u,h]=(0,a.useState)(new Set),m=e=>{l(c,e)},p=(0,s.useSubscription)(e.fleet.events.subscriptionOptions({lastEventId:null},{onData:({data:t})=>{var s,a,r;if("resync"===t.kind)return void m(e.fleet.pathKey());let{event:l}=t;for(let t of new Set([l.shipId,l.actorShipId]))null!==t&&(m(e.fleet.ship.queryKey({shipId:t})),m(e.fleet.shipTimeline.queryKey({shipId:t})));if(null!==l.messageId&&(m(e.fleet.shipMessages.pathKey()),m(e.fleet.message.queryKey({messageId:l.messageId})),m(e.fleet.inbox.pathKey()),m(n.QUESTIONS_KEY)),s=l.type,d.has(s)&&m(e.fleet.needsAttention.queryKey()),a=l.type,o.has(a)&&m(e.fleet.labels.queryKey()),"NetworkRulesDeclared"===l.type&&m(e.fleet.declaredNetworkRules.queryKey()),r=l.type,!i.has(r))return;m(e.fleet.list.queryKey());let{shipId:c}=l;"ShipCommissioned"===l.type&&null!==c&&h(e=>new Set([...e,c]))}}));return{live:function(e){switch(e){case"pending":return"live";case"connecting":return"reconnecting";case"idle":case"error":return"offline"}}(p.status),newShipIds:u,error:p.error}}])},40798,e=>{"use strict";let t={DEVICE:"Device",CLOUD:"Cloud",SERVER:"Server",OTHER:"Other"};e.s(["locationKindWord",0,function(e){return t[e]}])},78608,e=>{"use strict";var t=e.i(80581);function s(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,a){let{machines:n,shipLabelsMax:r}=a;return{groups:function(e,t){let a=t.map(t=>s(e,t)),n=[],r=[];for(let t of e.labels){let s=t.values.map(e=>({valueId:e.id,value:e.value,shipCount:a.filter(t=>t.includes(e.id)).length})),i={labelId:t.id,key:t.key,mark:e.ownerOf.get(t.id)?.mark??"ship",values:s};(s.some(e=>e.shipCount>0)?n:r).push(i)}let i=(e,t)=>e.key.localeCompare(t.key);return[{title:"On machines",keys:n.toSorted(i)},{title:"On no machine yet",keys:r.toSorted(i)}].filter(e=>e.keys.length>0)}(e,n),max:r,chipsOf:s=>(0,t.pickedChips)(s,e),matchOf:t=>{var a;return{matching:(a={machines:n,valueIds:t}).machines.filter(t=>{let n=s(e,t);return a.valueIds.every(e=>n.includes(e))}).map(e=>e.name),total:a.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"}}])},69693,e=>{"use strict";var t=e.i(46150);function s(e){let t=e.split(";")[0]?.trim().toLowerCase()??"";return"application/json"===t||t.endsWith("+json")}e.s(["formattedPayload",0,function(e,t){if(s(t))try{return JSON.stringify(JSON.parse(e),null,2)}catch{return}},"isJson",0,s,"payloadLabel",0,function(e,a){let n=s(a)?"JSON":a.split(";")[0]?.trim()??a,r=new TextEncoder().encode(e).byteLength;return`${n} \xb7 ${(0,t.counted)(r,{one:"byte",many:"bytes"})}`}])},9176,e=>{"use strict";var t=e.i(46806),s=e.i(86165),a=e.i(265);e.s(["usePluginShipIds",0,function(){let e=(0,s.useSquadronsSettings)(),n=(0,a.useTrierarchPluginSettings)(),r=(0,t.useNetworkingPluginSettings)();return new Set([e.data,n.data,r.data].flatMap(e=>{if(void 0===e||"none"===e.state)return[];let t=e.ship?.shipId??e.lastShipId;return null===t?[]:[t]}))}])},93361,e=>{"use strict";var t=e.i(49635);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}`}])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,42047,e=>{"use strict";var t=e.i(43476),s=e.i(80799),n=e.i(22016),a=e.i(18566),i=e.i(71645),r=e.i(15905),l=e.i(65041),o=e.i(52886),d=e.i(66787),c=e.i(92870),u=e.i(90063);let p={ok:"border-tone-ok-border bg-tone-ok-bg text-tone-ok-fg",waiting:"border-tone-waiting-border bg-tone-waiting-bg text-tone-waiting-fg",attention:"border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg"};function h({label:e,shortLabel:s,value:a,detail:i,href:r,icon:l,tone:o,testId:d}){return(0,t.jsxs)(n.default,{href:r,"data-testid":d,className:"flex min-w-0 flex-col gap-2 rounded-lg border border-border bg-card px-4.5 py-4 shadow-sm transition-colors duration-(--duration-fast) hover:bg-accent max-sm:gap-1.5 max-sm:rounded-xl max-sm:px-3.5 max-sm:py-3",children:[(0,t.jsxs)("span",{className:"flex items-center justify-between gap-2 text-meta font-medium text-muted-foreground",children:[(0,t.jsx)("span",{className:"max-sm:hidden",children:e}),(0,t.jsx)("span",{className:"sm:hidden",children:s??e}),(0,t.jsx)("span",{className:(0,u.classNames)("flex size-6.5 shrink-0 items-center justify-center rounded-md border max-sm:size-5.5",p[o]),children:(0,t.jsx)(l,{"aria-hidden":!0,className:"size-3.5"})})]}),(0,t.jsx)("span",{className:"text-[28px] leading-none font-semibold tracking-tight tabular-nums text-foreground max-sm:text-2xl",children:a}),(0,t.jsx)("span",{className:"truncate text-meta text-muted-foreground",children:i})]})}var m=e.i(5387),f=e.i(28459),x=e.i(96676),g=e.i(49635);function v(e){return e.filter(e=>"agent"===e.kind&&"retired"!==e.status)}function j(){var e;let s,n,a,i,r=(0,m.useFleetSnapshot)(),l=(0,f.useNeedsAttention)(),u=(0,f.useAttentionCount)(),p=(0,x.useNow)();if(!r.data)return null;let j=(a=(n=(s=v((e={ships:r.data,undeliverable:l.data??[],now:p}).ships)).filter(e=>"awaitingCrew"===e.status)).flatMap(e=>null===e.awaitingCrewSince?[]:[{name:e.name,since:new Date(e.awaitingCrewSince)}]).sort((e,t)=>e.since.getTime()-t.since.getTime())[0],i=e.undeliverable.map(e=>new Date(e.since)).sort((e,t)=>e.getTime()-t.getTime())[0],{activeCount:s.length,crewedCount:s.filter(e=>"crewed"===e.status).length,awaitingCount:n.length,longestWait:a&&{name:a.name,wait:(0,g.duration)(a.since,e.now)},oldestUndeliverable:i&&(0,g.duration)(i,e.now)});return 0===j.activeCount?null:(0,t.jsxs)("div",{className:"grid grid-cols-3 gap-4 max-sm:grid-cols-2 max-sm:gap-2.5","data-testid":"overview-metrics",children:[(0,t.jsx)(h,{label:"Ships crewed",shortLabel:"Crewed",value:j.crewedCount,detail:`of ${String(j.activeCount)} active ships`,href:"/?status=crewed",icon:c.UserCheck,tone:"ok",testId:"overview-crewed"}),(0,t.jsx)(h,{label:"Awaiting crew",value:j.awaitingCount,detail:j.longestWait?`Longest wait: ${j.longestWait.name}, ${j.longestWait.wait}`:"Every active ship is crewed",href:"/?status=awaitingCrew",icon:o.CircleDashed,tone:"waiting",testId:"overview-awaiting"}),(0,t.jsx)(h,{label:"Needs attention",value:u??0,detail:j.oldestUndeliverable?`Undeliverable deliveries, oldest ${j.oldestUndeliverable}`:"Nothing needs you",href:"/needs-attention",icon:d.TriangleAlert,tone:"attention",testId:"overview-attention"})]})}var w=e.i(77071),b=e.i(17540),y=e.i(25242),S=e.i(8041),C=e.i(78608),N=e.i(41880),k=e.i(49092),R=e.i(87600),P=e.i(16752),T=e.i(86165),O=e.i(48695),I=e.i(265);let q=(0,b.lazyDialog)(()=>e.A(27830).then(e=>e.CommissionDialog),e=>e.isOpen),A=(0,b.lazyDialog)(()=>e.A(95953).then(e=>e.StartingPromptDialog),e=>e.isOpen);function E({isOpen:e,onOpenChange:s}){let n=(0,m.useFleetSnapshot)(),a=(0,k.useFleetLimits)(),l=(0,R.useHostedAccountUrl)(),o=(0,m.useCommissionShip)(),d=(0,m.useRequestCrew)(),c="connected"===(0,I.useTrierarchPluginConnection)(),u=(0,I.useMachines)(),p=(0,T.useSquadronsConnection)(),h=(0,O.useSquadrons)(),[f,x]=(0,i.useState)(!1),[g,v]=(0,i.useState)(null),j=(0,S.offersOf)(u.data??[]),b=(0,m.useLabelContext)(),{shipLabelsMax:M}=(0,y.useConsoleConstants)(),z=void 0===b||void 0===u.data?void 0:(0,C.machineLabelsInputOf)(b,{machines:u.data,shipLabelsMax:M}),L=(0,I.useCrewSettingsCheck)(e&&c?null===g?(0,S.settingsOf)((0,S.defaultValues)(j)):g:void 0),V=(n.data??[]).filter(e=>"retired"!==e.status),D=(e,t)=>{o.mutate(e,{onSuccess:({shipId:n})=>{s(!1);let a=c&&void 0!==t;a||x(!0),void 0!==t&&d.mutate({shipId:n,settings:t.settings},{onSuccess:()=>{a&&(0,N.showToast)({title:`${e.name} commissioned, crew requested`,description:"The trierarch plugin assigns a trierarch that fits.",tone:"success"})},onError:t=>{(0,N.showToast)({title:`Couldn’t request a crew for ${e.name}`,description:`${t.message} The ship is commissioned; request a crew on its page.`,tone:"error"})}})}})};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Button,{variant:"primary",icon:(0,t.jsx)(w.Plus,{}),"data-testid":"fleet-commission",onClick:()=>{o.reset(),v(null),s(!0)},children:"Commission ship"}),(0,t.jsx)(q,{activeShips:V,isOpen:e,onOpenChange:s,isPending:o.isPending,error:o.error?.message,shipLimit:(0,P.shipLimitReached)(a.data),accountUrl:l,...c?{crewRequest:{offers:j,squadrons:"connected"===p?(h.data??[]).filter(e=>"disbanded"!==e.state).map(e=>e.id):void 0,...void 0===z?{}:{machineLabels:z},check:L.data,onSettingsChange:v}}:{},onSubmit:(e,t)=>{let s={...e,idempotencyKey:crypto.randomUUID()};c&&void 0!==t?L.checkNow().catch(()=>void 0).then(e=>{e?.kind!=="refused"&&D(s,t)}).catch(()=>void 0):D(s,t)}}),(0,t.jsx)(A,{shipName:o.variables?.name??"",state:"shown",prompt:o.data?.prompt??void 0,crewLines:o.data?.crewLines??void 0,isOpen:f&&void 0!==o.data,onOpenChange:e=>{e||(x(!1),o.reset())},onConfirm:()=>void 0})]})}var M=e.i(56420);let z={name:"infinity",size:24,node:[["path",{d:"M6 16c5 0 7-8 12-8a4 4 0 0 1 0 8c-5 0-7-8-12-8a4 4 0 1 0 0 8",key:"18ogeb"}]]};z.node;let L=(0,M.default)(z);var V=e.i(30274),D=e.i(49287),$=e.i(78865);let H={ships:{label:"Ships",unit:"ships",Icon:D.Ship},messages:{label:"Messages today",unit:"messages",Icon:V.Send}},B={below:"bg-primary",at:"bg-tone-waiting-fg",over:"bg-tone-attention-fg"},F={at:"at-limit",over:"over-limit"};function U({kind:e,count:s,limit:n,resetsAt:a}){let{label:i,unit:r,Icon:l}=H[e],o=(0,P.meterState)({count:s,limit:n}),d=F[o],c=(0,P.meterCaption)({count:s,limit:n}),p=null===n?0:0===n?1:Math.min(s/n,1);return(0,t.jsxs)("div",{"data-testid":`limit-meter-${e}`,"data-state":o,className:"flex flex-col gap-2 rounded-lg border border-border bg-card p-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-meta font-medium text-muted-foreground",children:[(0,t.jsx)(l,{"aria-hidden":!0,className:"size-(--size-icon-sm)"}),i]}),void 0===d?null:(0,t.jsx)($.StatusBadge,{status:d})]}),(0,t.jsxs)("p",{className:"flex items-baseline gap-1.5",children:[(0,t.jsx)("span",{className:"text-metric font-semibold tabular-nums",children:(0,P.meterCount)(s)}),(0,t.jsx)("span",{className:"text-body text-muted-foreground",children:null===n?r:`of ${(0,P.meterCount)(n)} ${r}`})]}),null===n?(0,t.jsxs)("p",{className:"inline-flex items-center gap-1.5 text-meta text-muted-foreground",children:[(0,t.jsx)(L,{"aria-hidden":!0,className:"size-(--size-icon-sm)"}),"No limit"]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{role:"meter","aria-label":`${i}: ${String(s)} of ${String(n)}`,"aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":n,className:"block h-1.5 overflow-hidden rounded-full bg-secondary",children:(0,t.jsx)("span",{className:(0,u.classNames)("block h-full rounded-full","none"===o?void 0:B[o]),style:{width:`${String(100*p)}%`}})}),(0,t.jsxs)("p",{"data-testid":`limit-meter-${e}-caption`,className:"text-caption text-muted-foreground",children:[c,void 0===a?null:` \xb7 resets at ${(0,P.resetTime)(a)}`]})]})]})}function _(){let e=(0,k.useFleetLimits)().data,s=(0,R.useHostedAccountUrl)();return(0,P.hasLimits)(e)?(0,t.jsxs)("section",{"aria-labelledby":"overview-limits-title","data-testid":"overview-limits",className:"flex flex-col gap-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsx)("h2",{id:"overview-limits-title",className:"text-body font-semibold",children:"Limits"}),void 0===s?null:(0,t.jsx)("a",{href:s,"data-testid":"overview-limits-view",className:"text-meta font-medium text-primary underline underline-offset-2",children:"View limits"})]}),(0,t.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,t.jsx)(U,{kind:"ships",count:e.ships.count,limit:e.ships.limit}),(0,t.jsx)(U,{kind:"messages",count:e.dailyMessages.count,limit:e.dailyMessages.limit,resetsAt:e.dailyMessages.resetsAt})]})]}):null}var K=e.i(9176),W=e.i(84294);let G={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"}]]};G.node;let X=(0,M.default)(G);var Y=e.i(31458),J=e.i(58925),Q=e.i(69309),Z=e.i(66595);let ee={name:"sliders-horizontal",size:24,node:[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]]};ee.node;let et=(0,M.default)(ee);var es=e.i(26478),en=e.i(54492),ea=e.i(80581),ei=e.i(49841);let er={query:"",filters:{status:"all",crewRequest:"all",type:"all",squadron:"all",isRetiredShown:!1,labelValueIds:[]}};function el(e,t){return[...new Set(e.filter(e=>t||"retired"!==e.status).map(e=>e.type))].toSorted((e,t)=>e.localeCompare(t))}function eo(e){return e.filter(e=>"retired"===e.status).length}function ed(e){return[...new Set([...e.values()].map(e=>e.squadronId))].toSorted((e,t)=>e.localeCompare(t))}let ec={crewed:"Crewed",awaitingCrew:"Awaiting crew"};function eu(e){return ep(e).length+e.labelValueIds.length}function ep(e){return["all"===e.status?void 0:`Status: ${ec[e.status]}`,"all"===e.crewRequest?void 0:`Crew request: ${(0,ei.crewRequestKeyWord)(e.crewRequest)}`,"all"===e.type?void 0:`Type: ${e.type}`,"all"===e.squadron?void 0:`Squadron: ${e.squadron}`,e.isRetiredShown?"Retired shown":void 0].filter(e=>void 0!==e)}var eh=e.i(66390),em=e.i(12470),ef=e.i(91727),ex=e.i(46033),eg=e.i(75305),ev=e.i(75867),ej=e.i(14732),ew=e.i(67874),eb=e.i(17981),ey=e.i(95960);function eS({chips:e,width:s,testId:n}){if(0===e.length)return null;let{shown:a,folded:i}=(0,ea.rowChips)(e,s);return(0,t.jsxs)("span",{"data-testid":n,className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[a.map((e,s)=>(0,t.jsx)(ey.LabelChip,{chip:e,className:0===s?"min-w-0 shrink":void 0},e.valueId)),0===i.length?null:(0,t.jsxs)("span",{title:i.map(e=>`${e.key}=${e.value}`).join(", "),className:"inline-flex h-5.5 shrink-0 items-center rounded-sm bg-secondary px-1.5 text-caption font-medium text-foreground tabular-nums",children:["+",i.length,(0,t.jsx)("span",{className:"sr-only",children:" more labels"})]})]})}var eC=e.i(88393);let eN={name:"signal",size:24,node:[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M17 20V8",key:"1tkaf5"}],["path",{d:"M22 4v16",key:"sih9yq"}]]};eN.node;let ek=(0,M.default)(eN),eR={name:"signal-low",size:24,node:[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}]]};eR.node;let eP=(0,M.default)(eR),eT={name:"signal-medium",size:24,node:[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}]]};eT.node;let eO=(0,M.default)(eT);e.s([],51047),e.i(51047);var eI=e.i(96499),eq=e.i(56789),eA=e.i(46376),eE=e.i(33332);let eM=i.createContext(void 0);function ez(e){let t=i.useContext(eM);if(void 0===t&&!e)throw Error((0,eE.default)(72));return t}var eL=e.i(74735),eV=e.i(67865),eD=e.i(29315),e$=e.i(84446),eH=e.i(57940);function eB(e){return null!=e&&null!=e.clientX}var eF=e.i(17989),eU=e.i(75606),e_=e.i(64111),eK=e.i(76782),eW=e.i(26352),eG=e.i(56434),eX=e.i(18478),eY=e.i(16786),eJ=e.i(90627);let eQ={...eY.popupStoreSelectors,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin};class eZ extends eW.ReactStore{constructor(e,t,s){const n=new eJ.PopupTriggerMap;super(e0(e,n,t,s),e1(n),eQ)}setOpen=(e,t)=>{(0,e_.applyPopupOpenChange)(this,e,t,{extraState:{openChangeReason:t.reason}})};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,(0,eU.createChangeEventDetails)(eG.REASONS.triggerPress,e))}}function e0(e,t,s,n=!1){return{...(0,eY.createInitialPopupStoreState)(t,s,n),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e}}function e1(e){return{popupRef:i.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}let e2=(0,eI.fastComponent)(function(e){let{disabled:s=!1,defaultOpen:n=!1,open:a,disableHoverablePopup:r=!1,trackCursorAxis:l="none",actionsRef:o,onOpenChange:d,onOpenChangeComplete:c,handle:u,triggerId:p,defaultTriggerId:h=null,children:m}=e,f=(0,e_.usePopupRootStore)((e,t)=>new eZ({open:n,openProp:a,activeTriggerId:h,triggerIdProp:p},e,t));f.useControlledProp("openProp",a),f.useControlledProp("triggerIdProp",p),f.useContextCallback("onOpenChange",d),f.useContextCallback("onOpenChangeComplete",c);let x=f.useState("open"),g=!s&&x,v=f.useState("activeTriggerId"),j=f.useState("mounted"),w=f.useState("payload");f.useSyncedValues({trackCursorAxis:l,disableHoverablePopup:r,disabled:s}),(0,e_.useImplicitActiveTrigger)(f,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:b,transitionStatus:y}=(0,e_.useOpenStateTransitions)(g,f),S=f.useState("isInstantPhase"),C=f.useState("instantType"),N=f.useState("lastOpenChangeReason"),k=i.useRef(null);(0,eA.useIsoLayoutEffect)(()=>{x&&s&&f.setOpen(!1,(0,eU.createChangeEventDetails)(eG.REASONS.disabled))},[x,s,f]),(0,eA.useIsoLayoutEffect)(()=>{"ending"===y&&N===eG.REASONS.none||"ending"!==y&&S?("delay"!==C&&(k.current=C),f.set("instantType","delay")):null!==k.current&&(f.set("instantType",k.current),k.current=null)},[y,S,N,C,f]),(0,eA.useIsoLayoutEffect)(()=>{g&&null==v&&f.set("payload",void 0)},[f,v,g]),i.useImperativeHandle(o,()=>({unmount:b,close:()=>f.setOpen(!1,(0,eU.createChangeEventDetails)(eG.REASONS.imperativeAction))}),[b,f]);let R=g||j||!s&&"none"!==l;return(0,t.jsxs)(eM.Provider,{value:f,children:[u&&(0,t.jsx)(e_.PopupHandleAttachment,{handle:u,store:f}),R&&(0,t.jsx)(e5,{store:f,disabled:s,trackCursorAxis:l}),"function"==typeof m?m({payload:w}):m]})});function e5({store:e,disabled:t,trackCursorAxis:s}){let n=e.useState("floatingRootContext"),a=(0,eF.useDismiss)(n,{enabled:!t,referencePress:()=>e.select("closeOnClick")}),r=function(e,t={}){let{enabled:s=!0,axis:n="both"}=t,a="rootStore"in e?e.rootStore:e,r=a.useState("open"),l=a.useState("floatingElement"),o=a.useState("domReferenceElement"),d=a.context.dataRef,c=i.useRef(!1),u=i.useRef(null),[p,h]=i.useState(),[m,f]=i.useState([]),x=(0,eV.useStableCallback)(e=>{a.set("positionReference",e)}),g=(0,eV.useStableCallback)((e,t,s)=>{if(!c.current&&(!d.current.openEvent||eB(d.current.openEvent))){var i,r;let l,c,u;a.set("positionReference",(i=s??o,r={x:e,y:t,axis:n,dataRef:d,pointerType:p},l=null,c=null,u=!1,{contextElement:i||void 0,getBoundingClientRect(){let e=i?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},t="x"===r.axis||"both"===r.axis,s="y"===r.axis||"both"===r.axis,n=["mouseenter","mousemove"].includes(r.dataRef.current.openEvent?.type||"")&&"touch"!==r.pointerType,a=e.width,o=e.height,d=e.x,p=e.y;return null==l&&r.x&&t&&(l=e.x-r.x),null==c&&r.y&&s&&(c=e.y-r.y),d-=l||0,p-=c||0,a=0,o=0,!u||n?(a="y"===r.axis?e.width:0,o="x"===r.axis?e.height:0,d=t&&null!=r.x?r.x:d,p=s&&null!=r.y?r.y:p):u&&!n&&(o="x"===r.axis?e.height:o,a="y"===r.axis?e.width:a),u=!0,{width:a,height:o,x:d,y:p,top:p,right:d+a,bottom:p+o,left:d}}}))}}),v=(0,eV.useStableCallback)(e=>{r?u.current||(g(e.clientX,e.clientY,e.currentTarget),f([])):g(e.clientX,e.clientY,e.currentTarget)}),j=(0,eH.isMouseLikePointerType)(p)?l:r;i.useEffect(()=>{if(!s)return void x(o);if(!j)return;function e(){u.current?.(),u.current=null}let t=(0,eD.getWindow)(l);return!d.current.openEvent||eB(d.current.openEvent)?u.current=(0,eL.addEventListener)(t,"mousemove",function(t){let s=(0,e$.getTarget)(t);(0,e$.contains)(l,s)?e():g(t.clientX,t.clientY)}):x(o),e},[j,s,l,d,o,a,g,x,m]),i.useEffect(()=>()=>{a.set("positionReference",null)},[a]),i.useEffect(()=>{s&&!l&&(c.current=!1)},[s,l]),i.useEffect(()=>{!s&&r&&(c.current=!0)},[s,r]);let w=i.useMemo(()=>{function e(e){h(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:v,onMouseEnter:v}},[v]);return i.useMemo(()=>s?{reference:w,trigger:w}:{},[s,w])}(n,{enabled:!t&&"none"!==s,axis:"none"===s?void 0:s}),l=i.useMemo(()=>(0,eK.mergeProps)(r.reference,a.reference),[r.reference,a.reference]);return(0,e_.usePopupInteractionProps)(e,{activeTriggerProps:l,inactiveTriggerProps:l,popupProps:a.floating??eq.EMPTY_OBJECT}),null}var e4=e.i(39957),e6=e.i(46265),e7=e.i(79938),e8=e.i(52245),e9=e.i(59636),e3=e.i(88015);let te=i.createContext(void 0);var tt=e.i(50316),ts=e.i(44681);let tn=i.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new e4.Timeout,currentIdRef:{current:null},currentContextRef:{current:null}});function ta(e){let{children:s,delay:n,timeoutMs:a=0}=e,r=i.useRef(n),l=i.useRef(n),o=i.useRef(null),d=i.useRef(null),c=(0,e4.useTimeout)();return(0,eA.useIsoLayoutEffect)(()=>{if(l.current=n,!o.current){r.current=n;return}r.current={open:(0,ts.getDelay)(r.current,"open"),close:(0,ts.getDelay)(n,"close")}},[n,o,r,l]),(0,t.jsx)(tn.Provider,{value:i.useMemo(()=>({hasProvider:!0,delayRef:r,initialDelayRef:l,currentIdRef:o,timeoutMs:a,currentContextRef:d,timeout:c}),[a,c]),children:s})}var ti=e.i(13082),tr=e.i(72135),tl=e.i(73752),to=e.i(22846);let td="data-base-ui-tooltip-trigger";function tc(e){if("composedPath"in e){let t=e.composedPath();for(let e=0;e<t.length;e+=1){let s=t[e];if((0,eD.isElement)(s))return s}}let t=e.target;return(0,eD.isElement)(t)?t:null}let tu=(0,eI.fastComponentRef)(function(e,t){let{render:s,className:n,style:a,handle:r,payload:l,disabled:o,delay:d,closeOnClick:c=!0,closeDelay:u,id:p,...h}=e,m=ez(!0),f=(0,e9.usePopupHandleStore)(r)??m;if(!f)throw Error((0,eE.default)(82));let x=(0,e3.useBaseUiId)(p),g=f.useState("isTriggerActive",x),v=f.useState("isOpenedByTrigger",x),j=f.useState("floatingRootContext"),w=i.useRef(null),b=u??0,{registerTrigger:y,isMountedByThisTrigger:S}=(0,e_.useTriggerDataForwarding)(x,w,f,{payload:l,closeOnClick:c,closeDelay:b}),C=i.useContext(te),{activeIdRef:N,delayRef:k,isInstantPhase:R,hasProvider:P}=function(e,t={open:!1}){let{open:s}=t,n="rootStore"in e?e.rootStore:e,a=n.useState("floatingId"),{currentIdRef:r,delayRef:l,timeoutMs:o,initialDelayRef:d,currentContextRef:c,hasProvider:u,timeout:p}=i.useContext(tn),[h,m]=i.useState(!1),f=i.useRef(s);return(0,eA.useIsoLayoutEffect)(()=>{f.current=s},[s]),(0,eA.useIsoLayoutEffect)(()=>{function e(){c.current?.setIsInstantPhase(!1),r.current=null,c.current=null,l.current=d.current,p.clear()}if(r.current&&!s&&r.current===a){if(m(!1),o)return p.start(o,()=>{n.select("open")||r.current&&r.current!==a||e()}),()=>{(f.current||r.current!==a)&&p.clear()};e()}},[s,a,r,l,o,d,c,p,n]),(0,eA.useIsoLayoutEffect)(()=>{if(!s)return;let e=c.current,t=r.current;p.clear(),c.current={onOpenChange:n.setOpen,setIsInstantPhase:m},r.current=a,l.current={open:0,close:(0,ts.getDelay)(d.current,"close")},null!==t&&t!==a?(m(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,(0,eU.createChangeEventDetails)(eG.REASONS.none))):(m(!1),e?.setIsInstantPhase(!1))},[s,a,n,r,l,d,c,p]),(0,eA.useIsoLayoutEffect)(()=>()=>{r.current===a&&(c.current=null,f.current)&&(r.current=null,l.current=d.current,p.clear())},[c,r,l,a,d,p]),i.useMemo(()=>({activeIdRef:r,hasProvider:u,delayRef:l,isInstantPhase:h}),[r,u,l,h])}(j,{open:v}),T=(0,tl.useHoverInteractionSharedState)(j);f.useSyncedValue("isInstantPhase",R);let O=f.useState("disabled"),I=o??O,q=(0,e6.useValueAsRef)(I),A=f.useState("trackCursorAxis"),E=f.useState("disableHoverablePopup"),M=i.useRef(!1),z=(0,e4.useTimeout)(),L=i.useRef(void 0);function V(){return P&&null!=N.current?0:d??C??600}function D(e){let t=w.current;if(!t||!e)return!1;let s=function(e){let t=e;for(;t;){let e=t.closest(`[${td}]`);if(e)return e;let s=t.getRootNode();t="host"in s&&(0,eD.isElement)(s.host)?s.host:null}return null}(e);return null!==s&&s!==t&&(0,e$.contains)(t,s)}let $=(0,tr.useHoverReferenceInteraction)(j,{enabled:!I,mouseOnly:!0,move:!1,handleClose:E||"both"===A?null:(0,tt.safePolygon)(),restMs:V,delay:()=>null==u&&P?{close:(0,ts.getDelay)(k.current,"close")}:{close:b},triggerElementRef:w,isActiveTrigger:g,isClosing:()=>"ending"===f.select("transitionStatus"),shouldOpen:()=>!M.current}),H=(0,ti.useFocus)(j,{enabled:!I}).reference,B=f.useState("triggerProps",S),F=S||"none"!==A;return(0,e8.useRenderElement)("button",e,{state:{open:v},ref:[t,y,w],props:[$,H,F?B:void 0,{onMouseOver(e){(e=>{let t,s=M.current,n=tc(e),a=(M.current=t=D(n),t&&(T.openChangeTimeout.clear(),T.restTimeout.clear(),T.restTimeoutPending=!1,z.clear()),t),i=w.current,r=i&&n&&(0,e$.contains)(i,n);if(a&&f.select("open")&&f.select("lastOpenChangeReason")===eG.REASONS.triggerHover)return f.setOpen(!1,(0,eU.createChangeEventDetails)(eG.REASONS.triggerHover,e));if(s&&!a&&r&&!q.current&&!f.select("open")&&i&&(0,eH.isMouseLikePointerType)(L.current)){let t=()=>{M.current||q.current||f.select("open")||f.setOpen(!0,(0,eU.createChangeEventDetails)(eG.REASONS.triggerHover,e,i))},s=V();0===s?(z.clear(),t()):z.start(s,t)}})(e.nativeEvent)},onFocus(e){D(tc(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){M.current=!1,z.clear(),L.current=void 0},onPointerEnter(e){L.current=e.pointerType},onPointerDown(e){L.current=e.pointerType,f.set("closeOnClick",c),c&&!f.select("open")&&f.cancelPendingOpen(e.nativeEvent)},onClick(e){c&&!f.select("open")&&f.cancelPendingOpen(e.nativeEvent)},id:x,[to.triggerDisabled]:I?"":void 0,[td]:I?void 0:""},h],stateAttributesMapping:e7.triggerOpenStateMapping})}),tp=i.createContext(void 0);var th=e.i(74080),tm=e.i(26674);let tf=i.forwardRef(function(e,s){let{children:n,container:a,className:r,render:l,style:o,...d}=e,{node:c,subtree:u}=(0,tm.useFloatingPortalNode)({container:a,ref:s,componentProps:e,elementProps:d});return u||c?(0,t.jsxs)(i.Fragment,{children:[u,c&&th.createPortal(n,c)]}):null}),tx=i.forwardRef(function(e,s){let{keepMounted:n=!1,...a}=e;return ez().useState("mounted")||n?(0,t.jsx)(tp.Provider,{value:n,children:(0,t.jsx)(tf,{ref:s,...a})}):null}),tg=i.createContext(void 0);function tv(){let e=i.useContext(tg);if(void 0===e)throw Error((0,eE.default)(71));return e}var tj=e.i(23706),tw=e.i(38396),tb=e.i(89579);let ty=i.forwardRef(function(e,s){let{render:n,className:a,anchor:r,positionMethod:l="absolute",side:o="top",align:d="center",sideOffset:c=0,alignOffset:u=0,collisionBoundary:p="clipping-ancestors",collisionPadding:h=5,arrowPadding:m=5,sticky:f=!1,disableAnchorTracking:x=!1,collisionAvoidance:g=tw.POPUP_COLLISION_AVOIDANCE,style:v,...j}=e,w=ez(),b=function(){let e=i.useContext(tp);if(void 0===e)throw Error((0,eE.default)(70));return e}(),y=w.useState("open"),S=w.useState("mounted"),C=w.useState("trackCursorAxis"),N=w.useState("disableHoverablePopup"),k=w.useState("floatingRootContext"),R=w.useState("instantType"),P=w.useState("transitionStatus"),T=w.useState("adaptiveOrigin"),O=(0,tj.useAnchorPositioning)({anchor:r,positionMethod:l,floatingRootContext:k,mounted:S,side:o,sideOffset:c,align:d,alignOffset:u,collisionBoundary:p,collisionPadding:h,sticky:f,arrowPadding:m,disableAnchorTracking:x,keepMounted:b,collisionAvoidance:g,adaptiveOrigin:T}),I=i.useMemo(()=>({open:y,side:O.side,align:O.align,anchorHidden:O.anchorHidden,instant:"none"!==C?"tracking-cursor":R}),[y,O.side,O.align,O.anchorHidden,C,R]),q=(0,tb.usePositioner)(e,I,{styles:O.positionerStyles,transitionStatus:P,props:j,refs:[s,w.useStateSetter("positionerElement")],hidden:!S,inert:!y||"both"===C||N});return(0,t.jsx)(tg.Provider,{value:O,children:q})});var tS=e.i(37584),tC=e.i(53984),tN=e.i(31157);let tk=i.forwardRef(function(e,t){let{render:s,className:n,style:a,...i}=e,r=ez(),{side:l,align:o}=tv(),d=r.useState("open"),c=r.useState("instantType"),u=r.useState("transitionStatus"),p=r.useState("popupProps"),h=r.useState("floatingRootContext"),m=r.useState("disabled"),f=r.useState("closeDelay");(0,tS.useOpenChangeComplete)({open:d,ref:r.context.popupRef,onComplete(){d&&r.context.onOpenChangeComplete?.(!0)}}),(0,tN.useHoverFloatingInteraction)(h,{enabled:!m,closeDelay:f});let x=r.useStateSetter("popupElement");return(0,e8.useRenderElement)("div",e,{state:{open:d,side:l,align:o,instant:c,transitionStatus:u},ref:[t,r.context.popupRef,x],props:[e_.FOCUSABLE_POPUP_PROPS,p,(0,tC.getDisabledMountTransitionStyles)(u),i],stateAttributesMapping:e7.popupTransitionStateMapping})}),tR=i.forwardRef(function(e,t){let{render:s,className:n,style:a,...i}=e,r=ez(),{arrowRef:l,side:o,align:d,arrowUncentered:c,arrowStyles:u}=tv(),p=r.useState("open"),h=r.useState("instantType");return(0,e8.useRenderElement)("div",e,{state:{open:p,side:o,align:d,uncentered:c,instant:h},ref:[t,l],props:[{style:u,"aria-hidden":!0},i],stateAttributesMapping:e7.popupStateMapping})});var tP=e.i(18390);let tT=i.forwardRef(function(e,t){let{render:s,className:n,style:a,children:i,...r}=e,l=ez(),o=tv(),d=l.useState("instantType"),{children:c,state:u}=(0,tP.usePopupViewport)({store:l,side:o.side,children:i}),p={activationDirection:u.activationDirection,transitioning:u.transitioning,instant:d};return(0,e8.useRenderElement)("div",e,{state:p,ref:t,props:[r,{children:c}],stateAttributesMapping:tP.popupViewportStateMapping})});var tO=e.i(64170);class tI extends tO.BasePopupHandle{constructor(){super(function(){let e=new eJ.PopupTriggerMap;return Object.assign(new eX.NullStore(Object.freeze(e0(void 0,e)),Object.freeze(e1(e)),eQ),{setOpen:eq.NOOP,cancelPendingOpen:eq.NOOP})}(),"Tooltip")}open(e){this.openByTrigger(e)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}}e.s(["Arrow",0,tR,"Handle",0,tI,"Popup",0,tk,"Portal",0,tx,"Positioner",0,ty,"Provider",0,function(e){let{delay:s,closeDelay:n,timeout:a=400}=e,r=i.useMemo(()=>({open:s,close:n}),[s,n]);return(0,t.jsx)(te.Provider,{value:s,children:(0,t.jsx)(ta,{delay:r,timeoutMs:a,children:e.children})})},"Root",0,e2,"Trigger",0,tu,"Viewport",0,tT,"createHandle",0,function(){return new tI}],99643);var tq=e.i(99643),tq=tq;function tA(e){return(0,t.jsx)(tq.Root,{"data-slot":"tooltip",...e})}function tE(e){return(0,t.jsx)(tq.Trigger,{"data-slot":"tooltip-trigger",...e})}function tM({className:e,side:s="top",sideOffset:n=6,align:a="center",...i}){return(0,t.jsx)(tq.Portal,{children:(0,t.jsx)(tq.Positioner,{align:a,side:s,sideOffset:n,className:"isolate z-50 max-sm:hidden",children:(0,t.jsx)(tq.Popup,{"data-slot":"tooltip-content",className:(0,u.classNames)("w-fit max-w-xs origin-(--transform-origin) rounded-sm bg-foreground px-2 py-1 text-caption font-medium text-background shadow-md duration-(--duration-fast) data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...i})})})}let tz={fresh:{Icon:ek,tone:"text-tone-ok-fg"},while:{Icon:eO,tone:"text-muted-foreground"},long:{Icon:eP,tone:"text-tone-waiting-fg"}};function tL({seenAt:e,now:s,testId:n}){let a;if(null===e)return null;let i=new Date(e),r=(a=s.getTime()-i.getTime())<6e4?"fresh":a<=9e5?"while":"long",{Icon:l,tone:o}=tz[r],d=(0,g.lastSeen)(i,s);return(0,t.jsxs)(tA,{children:[(0,t.jsx)(tE,{render:(0,t.jsx)("span",{role:"img","aria-label":d,"data-testid":n,"data-signal":r,className:(0,u.classNames)("inline-flex [&_svg]:size-(--size-icon) max-sm:[&_svg]:size-4",o)}),children:(0,t.jsx)(l,{"aria-hidden":!0})}),(0,t.jsx)(tM,{children:d})]})}var tV=e.i(63481);let tD={name:"package",size:24,node:[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]};tD.node;let t$=(0,M.default)(tD),tH={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};tH.node;let tB=(0,M.default)(tH);function tF(e){return e.startsWith("@")||/@\d+\.\d+\.\d+$/.test(e)}function tU({model:e,isCrewed:s,now:n,testId:a}){if(!s)return null;if(null===e)return(0,t.jsx)("span",{"data-testid":a,className:"text-meta text-muted-foreground",children:"Not stated yet"});let i=tF(e.id),r=function(e,t){let s=new Date(e.statedAt),n=Math.max(0,t.getTime()-s.getTime()),a=tF(e.id)?"Software":"Model";if(n<6e4)return`${a}, stated ${String(Math.floor(n/1e3))} s ago`;let i=(0,g.relativeTime)(s,t);return`${a}, stated ${i.charAt(0).toLowerCase()}${i.slice(1)}`}(e,n);return(0,t.jsxs)(tA,{children:[(0,t.jsxs)(tE,{render:(0,t.jsx)("span",{"data-testid":a,"data-slot":"model-tag","data-software":i?"":void 0,className:(0,u.classNames)("inline-flex max-w-44 min-w-0 items-center gap-1 rounded-sm px-1.5 py-0.5 font-mono text-id [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",i?"border border-dashed border-border text-muted-foreground":"bg-secondary text-secondary-foreground")}),children:[(0,t.jsx)(i?t$:tB,{"aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate",children:e.id}),(0,t.jsxs)("span",{className:"sr-only",children:[", ",r]})]}),(0,t.jsx)(tM,{children:(0,t.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"font-mono",children:e.id}),(0,t.jsx)("span",{className:"opacity-75",children:r})]})})]})}let t_={waiting:"bg-tone-waiting-fg",active:"bg-tone-active-fg",ok:"bg-tone-ok-fg",attention:"bg-tone-attention-fg"};function tK({cell:e,testId:s}){return void 0===e?(0,t.jsxs)("span",{className:"text-meta text-muted-foreground","data-testid":s,children:[(0,t.jsx)("span",{"aria-hidden":!0,children:"–"}),(0,t.jsx)("span",{className:"sr-only",children:"No crew request"})]}):(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-meta whitespace-nowrap","data-testid":s,children:[(0,t.jsx)("span",{"aria-hidden":!0,className:(0,u.classNames)("size-1.5 shrink-0 rounded-full",t_[e.tone])}),e.word]})}var tW=e.i(81830),tG=e.i(1935),tX=e.i(39448),tY=e.i(16327),tJ=e.i(68401),tQ=e.i(70703),tZ=e.i(6734);let t0=(0,tQ.default)(()=>e.A(67858).then(e=>e.LabelPicker),{loadableGenerated:{modules:[59068]},ssr:!1});function t1({groups:e,picked:s,onPick:a,trigger:r}){let[l,o]=(0,i.useState)(!1);return(0,t.jsxs)(tZ.Popover,{open:l,onOpenChange:o,children:[(0,t.jsx)(tZ.PopoverTrigger,{render:r}),(0,t.jsxs)(tZ.PopoverContent,{align:"start",sideOffset:6,className:"w-80 p-2","data-testid":"label-filter-popover",children:[(0,t.jsx)("span",{className:"block px-2 pt-1 pb-2 text-body font-medium",children:"Filter by label"}),(0,t.jsx)(t0,{groups:e,pickedValueIds:s.map(e=>e.valueId),onPick:e=>{a(e),o(!1)}}),(0,t.jsxs)("p",{className:"mt-2 flex items-center justify-between gap-2 border-t border-border px-2 pt-2 text-meta text-muted-foreground",children:["Exact matches, all must hold.",(0,t.jsx)(n.default,{href:"/labels",className:"font-medium text-foreground hover:underline","data-testid":"label-filter-manage",children:"Manage labels"})]})]})]})}function t2({groups:e,picked:n,onPick:a}){return(0,t.jsx)(t1,{groups:e,picked:n,onPick:a,trigger:(0,t.jsxs)(r.Button,{variant:"secondary",size:"sm",icon:(0,t.jsx)(s.Tag,{}),"data-testid":"fleet-filter-labels",children:["Labels",0===n.length?null:(0,t.jsxs)("span",{className:"inline-flex size-5 items-center justify-center rounded-full bg-primary text-caption font-semibold text-primary-foreground tabular-nums",children:[n.length,(0,t.jsx)("span",{className:"sr-only",children:" picked"})]}),(0,t.jsx)(tY.ChevronDown,{"aria-hidden":!0,className:"text-muted-foreground"})]})})}function t5({groups:e,picked:s,onPick:n,onRemove:a,onClear:i}){return 0===s.length?null:(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1.5 text-meta max-sm:hidden","data-testid":"fleet-picked-labels",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:"Ships with"}),s.map((e,s)=>(0,t.jsxs)("span",{className:"inline-flex items-center gap-2",children:[0===s?null:(0,t.jsx)("span",{className:"text-muted-foreground",children:"and"}),(0,t.jsx)(ey.LabelChip,{chip:e,testId:"fleet-picked-label",onRemove:()=>{a(e.valueId)}})]},e.valueId)),(0,t.jsx)(t1,{groups:e,picked:s,onPick:n,trigger:(0,t.jsx)(r.Button,{variant:"ghost",size:"xs",icon:(0,t.jsx)(w.Plus,{}),children:"Add"})}),(0,t.jsx)("span",{"aria-hidden":!0,className:"h-4 w-px bg-border"}),(0,t.jsx)(r.Button,{variant:"ghost",size:"xs",onClick:i,"data-testid":"fleet-labels-clear",children:"Clear labels"})]})}function t4({groups:e,picked:s,onPick:a,onRemove:l}){let[o,d]=(0,i.useState)(!1);return(0,t.jsxs)("div",{className:"flex flex-col gap-2","data-testid":"fleet-filter-labels-touch",children:[(0,t.jsxs)("span",{className:"flex items-center gap-2 text-meta font-medium text-muted-foreground",children:["Labels ",(0,t.jsx)("span",{className:"font-normal",children:"all must hold"})]}),0===s.length?null:(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-2 text-meta",children:s.map((e,s)=>(0,t.jsxs)("span",{className:"inline-flex items-center gap-2",children:[0===s?null:(0,t.jsx)("span",{className:"text-muted-foreground",children:"and"}),(0,t.jsx)(ey.LabelChip,{chip:e,onRemove:()=>{l(e.valueId)}})]},e.valueId))}),o?(0,t.jsx)("div",{className:"rounded-lg border border-border p-2",children:(0,t.jsx)(t0,{groups:e,pickedValueIds:s.map(e=>e.valueId),size:"touch",onPick:e=>{a(e),d(!1)}})}):(0,t.jsx)(r.Button,{variant:"secondary",size:"touch",icon:(0,t.jsx)(w.Plus,{}),className:"self-start",onClick:()=>{d(!0)},children:"Add label"}),(0,t.jsxs)(n.default,{href:"/labels",className:"inline-flex items-center gap-1.5 self-start text-meta text-muted-foreground hover:underline [&_svg]:size-(--size-icon-sm)",children:[(0,t.jsx)(tJ.Tags,{"aria-hidden":!0}),"All labels and their owners"]})]})}function t6(e,t){return{...e,filters:{...e.filters,labelValueIds:t}}}let t7={all:"All",crewed:"Crewed",awaitingCrew:"Awaiting crew"};function t8(e){return Object.hasOwn(t7,e)}function t9(e){return{all:"All",...Object.fromEntries((0,ei.crewRequestKeysOf)(e).map(e=>[e,(0,ei.crewRequestKeyWord)(e)]))}}function t3(e,t){return Object.hasOwn(t,e)}function se({ship:e,squadron:s,isPluginShip:n}){return"operator"===e.kind?(0,t.jsxs)(eh.Badge,{variant:"kind",children:[(0,t.jsx)(es.UserRound,{"aria-hidden":!0}),"operator"]}):"viewer"===e.kind?(0,t.jsxs)(eh.Badge,{variant:"kind","data-testid":"fleet-viewer",children:[(0,t.jsx)(X,{"aria-hidden":!0}),"viewer"]}):n?(0,t.jsxs)(eh.Badge,{variant:"kind","data-testid":"fleet-plugin",children:[(0,t.jsx)(Q.Plug,{"aria-hidden":!0}),"plugin"]}):s?.role===null?(0,t.jsxs)(eh.Badge,{variant:"kind","data-testid":"fleet-flagship",children:[(0,t.jsx)(Y.Flag,{"aria-hidden":!0}),"flagship"]}):s?(0,t.jsx)(tG.SquadronTag,{squadronId:s.squadronId,role:s.role,size:"sm"}):null}function st({ship:e,now:s}){let n=e.startingPrompt,a="inline-flex min-w-0 items-center gap-1.5 text-meta text-muted-foreground [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0";if(null===n)return(0,t.jsxs)("span",{className:a,children:[(0,t.jsx)(J.KeyRound,{"aria-hidden":!0}),"No starting prompt issued"]});let i=new Date(n.issuedAt);return(0,t.jsxs)("span",{className:a,children:[(0,t.jsx)(J.KeyRound,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"truncate",children:["Prompt issued"," ",(0,t.jsx)("time",{dateTime:n.issuedAt,title:(0,g.fullDateTime)(i),children:(0,g.relativeTime)(i,s)}),n.isClaimed?", claimed":", not claimed yet"]})]})}function ss({ship:e,now:s}){return"retired"===e.status?null===e.retiredAt?null:(0,t.jsxs)("span",{className:"truncate text-meta text-muted-foreground","data-testid":"fleet-retired-on",title:(0,g.fullDateTime)(new Date(e.retiredAt)),children:["Retired ",(0,g.dayMonth)(new Date(e.retiredAt))]}):"viewer"===e.kind?null:"awaitingCrew"===e.status?(0,t.jsx)(st,{ship:e,now:s}):(0,t.jsx)(tV.LocationTag,{kind:"operator"===e.kind&&null!==e.location?"DEVICE":e.location?.kind??null,description:e.location?.description,harness:"operator"===e.kind?"console":e.harness,size:"sm"})}function sn({ship:e,now:s,next:n}){let a="agent"===e.kind&&"crewed"===e.status;return(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-2 max-sm:flex-col max-sm:items-stretch",children:[a?(0,t.jsx)(tW.ReportLine,{report:e.report,now:s,variant:"row",isTimeInTitle:!0,testId:"fleet-report"}):null,n]})}function sa({ships:e,view:s,onViewChange:n,size:a,squadronsOf:i,labels:l}){let o=t9((0,y.useConsoleConstants)().crewStatuses),{filters:d}=s,c={all:"All",...Object.fromEntries(el(e,d.isRetiredShown).map(e=>[e,e]))},p=eo(e),h="sm"===a?"fleet-show-retired":"fleet-show-retired-touch",m=e=>{n({...s,filters:{...d,...e}})},f="touch"===a;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(ex.Select,{items:t7,value:d.status,onValueChange:e=>{null!==e&&t8(e)&&m({status:e})},children:[(0,t.jsx)(ex.SelectTrigger,{size:a,"aria-label":"Status","data-testid":f?void 0:"fleet-filter-status",children:(0,t.jsxs)("span",{className:"flex gap-1.5",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:"Status"}),(0,t.jsx)(ex.SelectValue,{className:"font-medium"})]})}),(0,t.jsx)(ex.SelectContent,{children:Object.entries(t7).map(([e,s])=>(0,t.jsx)(ex.SelectItem,{value:e,children:s},e))})]}),(0,t.jsxs)(ex.Select,{items:o,value:d.crewRequest,onValueChange:e=>{null!==e&&t3(e,o)&&m({crewRequest:e})},children:[(0,t.jsx)(ex.SelectTrigger,{size:a,"aria-label":"Crew request","data-testid":f?void 0:"fleet-filter-crew-request",children:(0,t.jsxs)("span",{className:"flex gap-1.5",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:"Crew request"}),(0,t.jsx)(ex.SelectValue,{className:"font-medium"})]})}),(0,t.jsx)(ex.SelectContent,{children:Object.entries(o).map(([e,s])=>(0,t.jsx)(ex.SelectItem,{value:e,children:s},e))})]}),(0,t.jsxs)(ex.Select,{items:c,value:d.type,onValueChange:e=>{null!==e&&m({type:e})},children:[(0,t.jsx)(ex.SelectTrigger,{size:a,"aria-label":"Type","data-testid":f?void 0:"fleet-filter-type",children:(0,t.jsxs)("span",{className:"flex gap-1.5",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:"Type"}),(0,t.jsx)(ex.SelectValue,{className:"font-medium"})]})}),(0,t.jsx)(ex.SelectContent,{children:Object.entries(c).map(([e,s])=>(0,t.jsx)(ex.SelectItem,{value:e,className:"all"===e?void 0:"font-mono",children:s},e))})]}),i&&(0,t.jsxs)(ex.Select,{items:{all:"All",...Object.fromEntries(ed(i).map(e=>[e,e]))},value:d.squadron,onValueChange:e=>{null!==e&&m({squadron:e})},children:[(0,t.jsx)(ex.SelectTrigger,{size:a,"aria-label":"Squadron","data-testid":f?void 0:"fleet-filter-squadron",children:(0,t.jsxs)("span",{className:"flex gap-1.5",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:"Squadron"}),(0,t.jsx)(ex.SelectValue,{className:"font-medium"})]})}),(0,t.jsxs)(ex.SelectContent,{children:[(0,t.jsx)(ex.SelectItem,{value:"all",children:"All"}),ed(i).map(e=>(0,t.jsx)(ex.SelectItem,{value:e,children:e},e))]})]}),void 0===l||f?null:(0,t.jsx)(t2,{groups:(0,ea.filterGroupsOf)(l),picked:(0,ea.pickedChips)(d.labelValueIds,l),onPick:e=>{n(t6(s,[...d.labelValueIds,e]))}}),ep(d).length>0&&!f?(0,t.jsx)(r.Button,{variant:"ghost",size:"xs","data-testid":"fleet-filters-clear",onClick:()=>{n({...s,filters:er.filters})},children:"Clear filters"}):null,(0,t.jsxs)("div",{className:(0,u.classNames)("inline-flex items-center gap-2",f?"py-2":"sm:ml-auto"),children:[(0,t.jsx)(ev.Switch,{id:h,"data-testid":f?void 0:"fleet-show-retired",checked:d.isRetiredShown,onCheckedChange:e=>{m({isRetiredShown:e})}}),(0,t.jsxs)(ef.Label,{htmlFor:h,className:(0,u.classNames)("font-normal text-muted-foreground",f?"text-body-touch":"text-meta"),children:["Show retired (",p,")"]})]})]})}function si({label:e,isOn:s,kind:n,onPick:a}){return(0,t.jsx)(r.Button,{variant:s?"primary":"secondary",size:"touch",role:"radio"===n?"radio":void 0,"aria-checked":"radio"===n?s:void 0,"aria-pressed":"toggle"===n?s:void 0,onClick:a,children:e})}function sr({ships:e,view:s,onViewChange:n,shownCount:a,squadronsOf:i,labels:l}){let o=t9((0,y.useConsoleConstants)().crewStatuses),{filters:d}=s,c=e=>{n({...s,filters:{...d,...e}})},u=eu(d),p=eo(e);return(0,t.jsxs)(eg.Sheet,{children:[(0,t.jsx)(eg.SheetTrigger,{render:(0,t.jsx)(r.Button,{size:"touch",isIconOnly:!0,"aria-label":u>0?`Filter ships, ${String(u)} active`:"Filter ships","data-testid":"fleet-filters-open",icon:(0,t.jsx)(et,{}),className:"relative sm:hidden",children:u>0?(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute top-1.5 right-1.5 size-2 rounded-full bg-primary"}):null})}),(0,t.jsxs)(eg.SheetContent,{side:"bottom",children:[(0,t.jsxs)(eg.SheetHeader,{className:"flex-row items-center justify-between",children:[(0,t.jsx)(eg.SheetTitle,{children:"Filter ships"}),(0,t.jsx)(r.Button,{variant:"ghost",size:"touch","data-testid":"fleet-filters-reset",onClick:()=>{n({...s,filters:er.filters})},children:"Reset"})]}),(0,t.jsxs)(eg.SheetBody,{className:"flex flex-col gap-4 pb-4",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("span",{id:"fleet-filter-status-label",className:"text-meta font-medium text-muted-foreground",children:"Status"}),(0,t.jsx)("div",{role:"radiogroup","aria-labelledby":"fleet-filter-status-label",className:"flex gap-1.5 [&>*]:flex-1",children:Object.entries(t7).map(([e,s])=>(0,t.jsx)(si,{label:s,kind:"radio",isOn:d.status===e,onPick:()=>{t8(e)&&c({status:e})}},e))})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("span",{id:"fleet-filter-crew-request-label",className:"text-meta font-medium text-muted-foreground",children:"Crew request"}),(0,t.jsx)("div",{role:"radiogroup","aria-labelledby":"fleet-filter-crew-request-label",className:"flex flex-wrap gap-1.5",children:Object.entries(o).map(([e,s])=>(0,t.jsx)(si,{label:s,kind:"radio",isOn:d.crewRequest===e,onPick:()=>{t3(e,o)&&c({crewRequest:e})}},e))})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("span",{className:"text-meta font-medium text-muted-foreground",children:"Type"}),(0,t.jsx)("div",{role:"group","aria-label":"Type",className:"flex flex-wrap gap-1.5",children:["all",...el(e,d.isRetiredShown)].map(e=>(0,t.jsx)(si,{label:"all"===e?"All types":e,kind:"toggle",isOn:d.type===e,onPick:()=>{c({type:e})}},e))})]}),i&&(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("span",{id:"fleet-filter-squadron-label",className:"text-meta font-medium text-muted-foreground",children:"Squadron"}),(0,t.jsx)("div",{role:"radiogroup","aria-labelledby":"fleet-filter-squadron-label",className:"flex flex-wrap gap-1.5",children:["all",...ed(i)].map(e=>(0,t.jsx)(si,{label:"all"===e?"All":e,kind:"radio",isOn:d.squadron===e,onPick:()=>{c({squadron:e})}},e))})]}),void 0===l?null:(0,t.jsx)(t4,{groups:(0,ea.filterGroupsOf)(l),picked:(0,ea.pickedChips)(d.labelValueIds,l),onPick:e=>{n(t6(s,[...d.labelValueIds,e]))},onRemove:e=>{n(t6(s,d.labelValueIds.filter(t=>t!==e)))}}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2 py-1",children:[(0,t.jsxs)(ef.Label,{htmlFor:"fleet-show-retired-touch",className:"text-body-touch font-normal",children:["Show retired ships ",(0,t.jsxs)("span",{className:"text-muted-foreground",children:["(",p,")"]})]}),(0,t.jsx)(ev.Switch,{id:"fleet-show-retired-touch",checked:d.isRetiredShown,onCheckedChange:e=>{c({isRetiredShown:e})}})]}),(0,t.jsx)(eg.SheetClose,{render:(0,t.jsx)(r.Button,{size:"touch","data-testid":"fleet-filters-apply"}),children:1===a?"Show 1 ship":`Show ${String(a)} ships`})]})]})]})}function sl({view:e,onViewChange:s,labels:n}){let a=ep(e.filters),i=void 0===n?[]:(0,ea.pickedChips)(e.filters.labelValueIds,n);return 0===a.length&&0===i.length?null:(0,t.jsxs)("div",{className:"flex w-full flex-wrap items-center gap-1.5 sm:hidden","data-testid":"fleet-filter-chips",children:[a.map(e=>(0,t.jsx)(eh.Badge,{variant:"outline",className:"max-w-full truncate",children:e},e)),i.map(n=>(0,t.jsx)(ey.LabelChip,{chip:n,onRemove:()=>{s(t6(e,e.filters.labelValueIds.filter(e=>e!==n.valueId)))}},n.valueId)),(0,t.jsx)(r.Button,{variant:"ghost",size:"touch",onClick:()=>{s({...e,filters:er.filters})},children:"Clear filters"})]})}function so({ships:e,view:s,onViewChange:n,shownCount:a,squadronsOf:i,labels:r}){return(0,t.jsxs)("div",{"data-slot":"fleet-toolbar",className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)("div",{className:"w-60 max-sm:min-w-0 max-sm:flex-1",children:(0,t.jsx)(em.Input,{type:"search","aria-label":"Search ships by name or type",placeholder:"Search ships by name","data-testid":"fleet-search",value:s.query,onChange:e=>{n({...s,query:e.target.value})},leadingIcon:(0,t.jsx)(Z.Search,{}),className:"h-(--size-control-sm) text-meta max-sm:h-(--size-control-touch) max-sm:text-input-touch"})}),(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-2 max-sm:hidden sm:flex-1",children:(0,t.jsx)(sa,{ships:e,view:s,onViewChange:n,squadronsOf:i,labels:r,size:"sm"})}),(0,t.jsx)(sr,{ships:e,view:s,onViewChange:n,shownCount:a,squadronsOf:i,labels:r}),(0,t.jsx)(sl,{view:s,onViewChange:n,labels:r}),(0,t.jsxs)("p",{"aria-live":"polite",className:"text-meta text-muted-foreground tabular-nums max-sm:w-full",children:[a," of ",e.length," ships"]})]})}function sd({ship:e}){return(0,t.jsx)(tX.ShipName,{name:e.name,shipId:e.id,isSuffixShown:"retired"===e.status,href:`/ships/${e.id}`})}function sc({ships:e,highlightedShipIds:s,now:n,renderRowActions:a,squadronsOf:i,labels:r,pluginShipIds:l}){return(0,t.jsx)("div",{className:"max-sm:hidden",children:(0,t.jsxs)(ej.Table,{"aria-label":"Ships",children:[(0,t.jsx)(ej.TableHeader,{children:(0,t.jsxs)(ej.TableRow,{children:[(0,t.jsx)(ej.TableHead,{children:void 0===r||0===r.labels.length?"Name":"Name and labels"}),(0,t.jsx)(ej.TableHead,{children:"Status"}),(0,t.jsx)(ej.TableHead,{children:"Crew request"}),(0,t.jsx)(ej.TableHead,{children:"Report"}),(0,t.jsx)(ej.TableHead,{children:"Runs on"}),(0,t.jsx)(ej.TableHead,{children:"Model"}),(0,t.jsx)(ej.TableHead,{children:"Seen"}),(0,t.jsx)(ej.TableHead,{children:(0,t.jsx)("span",{className:"sr-only",children:"Actions"})})]})}),(0,t.jsx)(ej.TableBody,{children:e.map(e=>(0,t.jsxs)(ej.TableRow,{"data-testid":`fleet-row-${e.name}`,"data-new":s?.has(e.id)?"":void 0,className:"h-12",children:[(0,t.jsx)(ej.TableCell,{className:"max-w-64",children:(0,t.jsxs)("span",{className:"flex min-w-0 flex-col gap-1",children:[(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:[(0,t.jsx)(sd,{ship:e}),(0,t.jsx)(se,{ship:e,squadron:i?.get(e.id),isPluginShip:l?.has(e.id)??!1})]}),void 0===r?null:(0,t.jsx)(eS,{chips:(0,ea.chipsOf)(e,r),width:22,testId:"fleet-labels"})]})}),(0,t.jsx)(ej.TableCell,{children:(0,t.jsx)($.StatusBadge,{status:e.status})}),(0,t.jsx)(ej.TableCell,{children:(0,t.jsx)(tK,{cell:(0,ei.crewRequestCell)((0,en.crewRequestStage)(e)),testId:"fleet-crew-request"})}),(0,t.jsx)(ej.TableCell,{className:"max-w-72",children:(0,t.jsx)(sn,{ship:e,now:n,next:a?.(e,"next")})}),(0,t.jsx)(ej.TableCell,{className:"max-w-56",children:(0,t.jsx)(ss,{ship:e,now:n})}),(0,t.jsx)(ej.TableCell,{children:"agent"!==e.kind?null:(0,t.jsx)(tU,{model:e.model,isCrewed:"crewed"===e.status,now:n,testId:"fleet-model"})}),(0,t.jsx)(ej.TableCell,{children:(0,t.jsx)(tL,{seenAt:e.lastSeenAt,now:n,testId:"fleet-last-seen"})}),(0,t.jsx)(ej.TableCell,{className:"w-10 text-right",children:a?.(e,"table")})]},e.id))})]})})}function su({ships:e,highlightedShipIds:s,now:n,renderRowActions:a,squadronsOf:i,pluginShipIds:r}){return(0,t.jsx)("ul",{"aria-label":"Ships",className:"overflow-hidden rounded-lg border border-border bg-card sm:hidden",children:e.map(e=>(0,t.jsxs)("li",{"data-testid":`fleet-card-${e.name}`,"data-new":s?.has(e.id)?"":void 0,className:"flex items-start gap-2 border-b border-border px-3.5 py-3 last:border-0 data-new:animate-highlight",children:[(0,t.jsxs)("div",{className:"flex min-w-0 grow flex-col gap-1.5",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3 text-body-touch",children:[(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:[(0,t.jsx)(sd,{ship:e}),(0,t.jsx)(se,{ship:e,squadron:i?.get(e.id),isPluginShip:r?.has(e.id)??!1})]}),(0,t.jsx)($.StatusBadge,{status:e.status})]}),null===e.crewRequest?null:(0,t.jsx)(tK,{cell:(0,ei.crewRequestCell)((0,en.crewRequestStage)(e))}),(0,t.jsx)(sn,{ship:e,now:n,next:a?.(e,"next")}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-x-3 gap-y-1",children:[(0,t.jsx)(ss,{ship:e,now:n}),"agent"!==e.kind?null:(0,t.jsx)(tU,{model:e.model,isCrewed:"crewed"===e.status,now:n}),(0,t.jsx)(tL,{seenAt:e.lastSeenAt,now:n})]})]}),a?.(e,"phone")]},e.id))})}function sp({ships:e,view:s,onViewChange:n,state:a,error:i,highlightedShipIds:l,now:o,renderRowActions:d,emptyAction:c,squadronsOf:u,labels:p,pluginShipIds:h}){var m;let f;if("loading"===a)return(0,t.jsxs)("div",{"data-slot":"fleet-table","data-state":"loading",className:"flex flex-col gap-3",children:[(0,t.jsx)(eC.LoadingSkeleton,{variant:"table",rows:6,label:"Loading the fleet",className:"max-sm:hidden"}),(0,t.jsx)(eC.LoadingSkeleton,{variant:"list",rows:5,label:"Loading the fleet",className:"sm:hidden"})]});if("error"===a)return(0,t.jsx)(eb.InlineError,{variant:"page",title:"Couldn’t load the fleet",description:"This page couldn’t reach the fleet server. Check that the server is running and reachable from this browser, then try again.",detail:i?.detail,retryNote:i?.retryNote,onRetry:i?.onRetry});let x={highlightedShipIds:l,now:o,renderRowActions:d,squadronsOf:u,pluginShipIds:h};if(e.every(e=>"operator"===e.kind||"retired"===e.status)){let s=e.filter(e=>"operator"===e.kind);return(0,t.jsxs)("div",{"data-slot":"fleet-table","data-state":"empty",className:"flex flex-col gap-3",children:[(0,t.jsx)(sc,{ships:s,labels:p,...x}),(0,t.jsx)(su,{ships:s,...x}),(0,t.jsx)(ew.EmptyState,{icon:(0,t.jsx)(D.Ship,{}),title:"No ships besides argo yet",description:"argo is your own ship: messages to the operator land in its inbox. Commission a ship to add an agent to the fleet.",action:c})]})}let g=(m={...s,squadronsOf:u},e.filter(e=>{let t;return(""===(t=m.query.trim().toLowerCase())||e.name.toLowerCase().includes(t)||e.type.toLowerCase().includes(t))&&function(e,t){let{filters:s,squadronsOf:n}=t;return("retired"!==e.status||!!s.isRetiredShown)&&("all"===s.squadron||n?.get(e.id)?.squadronId===s.squadron)&&("all"===s.status||e.status===s.status)&&("all"===s.crewRequest||(0,ei.crewRequestKey)((0,en.crewRequestStage)(e))===s.crewRequest)&&!!(0,ea.carriesEvery)(e,s.labelValueIds)&&("all"===s.type||e.type===s.type)}(e,m)}).toSorted((e,t)=>e.kind!==t.kind?"operator"===e.kind?-1:1:e.name.localeCompare(t.name)||e.id.localeCompare(t.id))),v=s.query.trim();return(0,t.jsxs)("div",{"data-slot":"fleet-table","data-state":"ready",className:"flex flex-col gap-3",children:[(0,t.jsx)(so,{ships:e,view:s,onViewChange:n,shownCount:g.length,squadronsOf:u,labels:p}),void 0===p?null:(0,t.jsx)(t5,{groups:(0,ea.filterGroupsOf)(p),picked:(0,ea.pickedChips)(s.filters.labelValueIds,p),onPick:e=>{n(t6(s,[...s.filters.labelValueIds,e]))},onRemove:e=>{n(t6(s,s.filters.labelValueIds.filter(t=>t!==e)))},onClear:()=>{n(t6(s,[]))}}),0===g.length?(0,t.jsx)(ew.EmptyState,{variant:"no-results",title:""===v?"No ships match these filters.":`No ships match “${v}”.`,action:(0,t.jsx)(r.Button,{size:"xs","data-testid":"fleet-clear-filters",onClick:()=>{n(er)},children:(f=eu(s.filters)>0,""===v?"Clear filters":f?"Clear search and filters":"Clear search")})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(sc,{ships:g,labels:p,...x}),(0,t.jsx)(su,{ships:g,...x})]})]})}function sh({view:e,onViewChange:s,newShipIds:n,renderRowActions:a}){let i=(0,m.useFleetSnapshot)(),r=(0,x.useNow)(),l=(0,O.useSquadrons)(),o=(0,m.useLabelContext)(),d=(0,K.usePluginShipIds)();return(0,t.jsx)("section",{"aria-label":"Fleet",className:"flex flex-col gap-3",children:(0,t.jsx)(sp,{ships:i.data??[],view:e,onViewChange:s,state:i.isPending?"loading":i.isError?"error":"ready",error:{detail:i.error?.message,onRetry:()=>{i.refetch()}},highlightedShipIds:n,now:r,renderRowActions:a,squadronsOf:l.data?(0,W.shipsInSquadrons)(l.data):void 0,labels:o,pluginShipIds:d})})}var sm=e.i(21959),sf=e.i(15327),sx=e.i(77435),sg=e.i(77821),sv=e.i(87964),sj=e.i(62687),sw=e.i(90262),sb=e.i(18423),sy=e.i(78485),sS=e.i(3979);e.s(["OverviewPage",0,function({view:e,isCommissionAsked:o}){let d=(0,a.useRouter)(),c=(0,m.useFleetSnapshot)(),u=(0,sb.useLiveFleet)(),p=(0,sv.useConsoleFrame)(),h=(0,P.messageLimitReached)((0,k.useFleetLimits)().data),f=(0,R.useHostedAccountUrl)(),x=(0,sw.useAccess)(),g=(0,sS.usePluginNav)(),[w,b]=(0,i.useState)(!1);(0,sy.useSignInWhenSessionEnds)([c.error,u.error]);let y=e=>{let t=(function(e){let t=new URLSearchParams;for(let s of(""!==e.query&&t.set("q",e.query),"all"!==e.filters.status&&t.set("status",e.filters.status),"all"!==e.filters.crewRequest&&t.set("crew",e.filters.crewRequest),"all"!==e.filters.type&&t.set("type",e.filters.type),"all"!==e.filters.squadron&&t.set("squadron",e.filters.squadron),e.filters.isRetiredShown&&t.set("retired","1"),e.filters.labelValueIds))t.append("label",s);return t})(e).toString();d.replace(""===t?"/":`/?${t}`,{scroll:!1})};return(0,t.jsxs)(sg.ListPage,{...p,title:"Fleet overview",description:c.data?function(e){let t=v(e.ships).length,s=e.ships.filter(e=>"agent"===e.kind&&"retired"===e.status).length;if(0===t&&0===s)return e.canCommission?"Only argo so far. Ships you commission appear here.":"Only argo so far.";let n=0===s?"":`, ${String(s)} retired`;return`${1===t?"1 active ship":`${String(t)} active ships`} and argo${n}. Changes appear as they happen.`}({ships:c.data,canCommission:x.canManage}):"Loading your fleet",primaryAction:(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2 max-sm:flex-col max-sm:items-stretch",children:[(0,t.jsx)(r.Button,{render:(0,t.jsx)(n.default,{href:"/labels"}),nativeButton:!1,icon:(0,t.jsx)(s.Tag,{}),"data-testid":"overview-labels",children:x.canDefineLabels?"Manage labels":"View labels"}),x.canManage?(0,t.jsx)(E,{isOpen:w||o,onOpenChange:t=>{b(t),!t&&o&&y(e)}}):null]}),live:u.live,children:[(0,t.jsx)(sj.FleetSegments,{active:"ships",needsCrewCount:g.needsCrewCount}),void 0===h?null:(0,t.jsx)(sx.LimitNotice,{...(0,P.messageLimitNotice)(h),accountUrl:f,testId:"overview-message-limit"}),(0,t.jsx)(_,{}),(0,t.jsx)(j,{}),(0,t.jsx)(sh,{view:e,onViewChange:y,newShipIds:u.newShipIds,renderRowActions:(e,s)=>(0,t.jsx)(sm.ShipActions,{ship:e,layout:"table"===s?"menu":"phone"===s?"sheet":"next",compose:l.ComposeMessage,crewLineFlow:sf.NewCrewLineFlow})})]})}],42047)}]);
|