@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
package/.next/standalone/packages/console/.next/static/chunks/{1m-y884h34ihx.js → 0jvnv44qtww0y.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,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)},36518,e=>{"use strict";var t=e.i(56420);let s={name:"cloud-off",size:24,node:[["path",{d:"M10.94 5.274A7 7 0 0 1 15.71 10h1.79a4.5 4.5 0 0 1 4.222 6.057",key:"1uxyv8"}],["path",{d:"M18.796 18.81A4.5 4.5 0 0 1 17.5 19H9A7 7 0 0 1 5.79 5.78",key:"99tcn7"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]};s.node;let a=(0,t.default)(s);e.s(["CloudOff",0,a],36518)},58925,e=>{"use strict";var t=e.i(56420);let s={name:"key-round",size:24,node:[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]};s.node;let a=(0,t.default)(s);e.s(["KeyRound",0,a],58925)},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)},25398,e=>{"use strict";var t=e.i(56420);let s={name:"rotate-cw",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]};s.node;let a=(0,t.default)(s);e.s(["RotateCw",0,a],25398)},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)},89275,e=>{"use strict";var t=e.i(43476),s=e.i(56420);let a={name:"link-2",size:24,node:[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]};a.node;let r=(0,s.default)(a);var n=e.i(7921),i=e.i(22016),o=e.i(15905),l=e.i(17981),d=e.i(88393);function c({settings:e,loadError:s,onRetry:a,isConnecting:m,connectError:u,onConnect:h}){return void 0!==s?(0,t.jsx)(l.InlineError,{title:"Couldn’t read the networking plugin",description:s,onRetry:a}):void 0===e?(0,t.jsx)(d.LoadingSkeleton,{variant:"detail",rows:2,label:"Loading the networking plugin"}):"none"===e.state?null:(0,t.jsxs)("section",{"aria-labelledby":"settings-network","data-testid":"settings-network",className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsxs)("h2",{id:"settings-network",className:"flex items-center gap-2 text-body font-semibold [&_svg]:size-(--size-icon) [&_svg]:text-muted-foreground",children:[(0,t.jsx)(n.Network,{"aria-hidden":!0}),"Network"]}),"connected"===e.state?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{className:"text-body","data-testid":"settings-network-state",children:["Connected as ",(0,t.jsx)("span",{className:"font-mono",children:e.ship?.name})," ",(0,t.jsxs)("span",{className:"font-mono text-muted-foreground",children:["(",e.ship?.shipId,")"]}),". It supplies the rules you set on Network to the fleet."]}),(0,t.jsx)("div",{children:(0,t.jsx)(o.Button,{size:"sm",nativeButton:!1,render:(0,t.jsx)(i.default,{href:"/network"}),"data-testid":"settings-network-open",children:"Open Network"})})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-body","data-testid":"settings-network-state",children:"Not connected. Connecting commissions the ship networking-plugin, which reads the fleet and alone sets who may message whom, or gives it a new starting prompt, and hands its secret to the networking plugin. No one sees the secret. Until you set rules, every ship may message every ship."}),(0,t.jsx)("div",{children:(0,t.jsx)(o.Button,{variant:"primary",icon:(0,t.jsx)(r,{"aria-hidden":!0}),isLoading:m,onClick:h,"data-testid":"settings-network-connect",children:"Connect networking plugin"})}),void 0!==u&&(0,t.jsx)(l.InlineError,{variant:"field",title:"Couldn’t connect the networking plugin",description:u})]})]})}function m({settings:e,loadError:s,onRetry:a,isConnecting:n,connectError:i,onConnect:c}){return void 0!==s?(0,t.jsx)(l.InlineError,{title:"Couldn’t read squadrons",description:s,onRetry:a}):void 0===e?(0,t.jsx)(d.LoadingSkeleton,{variant:"detail",rows:2,label:"Loading squadrons"}):"none"===e.state?null:(0,t.jsxs)("section",{"aria-labelledby":"settings-squadrons","data-testid":"settings-squadrons",className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsx)("h2",{id:"settings-squadrons",className:"text-body font-semibold",children:"Squadrons"}),"connected"===e.state?(0,t.jsxs)("p",{className:"text-body","data-testid":"settings-squadrons-state",children:["Connected as ",(0,t.jsx)("span",{className:"font-mono",children:e.ship?.name})," ",(0,t.jsxs)("span",{className:"font-mono text-muted-foreground",children:["(",e.ship?.shipId,")"]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-body","data-testid":"settings-squadrons-state",children:"Not connected. Connecting commissions the ship squadrons, with fleet read and manage, or gives it a new starting prompt, and hands its secret to squadrons. No one sees the secret."}),(0,t.jsx)("div",{children:(0,t.jsx)(o.Button,{variant:"primary",icon:(0,t.jsx)(r,{"aria-hidden":!0}),isLoading:n,onClick:c,"data-testid":"settings-squadrons-connect",children:"Connect squadrons"})}),void 0!==i&&(0,t.jsx)(l.InlineError,{variant:"field",title:"Couldn’t connect squadrons",description:i})]})]})}var u=e.i(22768),h=e.i(58925),x=e.i(77071),g=e.i(25398),p=e.i(66787),f=e.i(71645),j=e.i(49635),b=e.i(18310),v=e.i(24010),N=e.i(94945),y=e.i(12470),w=e.i(91727),k=e.i(67874),C=e.i(51588);let S=".aeolus/squadrons";function z({isAdding:e,addError:s,onAdd:a}){let r=(0,f.useId)(),n=(0,f.useId)(),i=(0,f.useId)(),[d,c]=(0,f.useState)(""),[m,u]=(0,f.useState)(""),[h,g]=(0,f.useState)("");return(0,t.jsxs)("form",{noValidate:!0,"data-testid":"repositories-add",className:"flex flex-col gap-3 rounded-md border border-border p-3",onSubmit:e=>{e.preventDefault();let t=m.trim(),s=h.trim();a({url:d.trim(),...""===t?{}:{path:t},...""===s?{}:{token:s}},()=>{c(""),u(""),g("")})},children:[(0,t.jsxs)("div",{className:"grid gap-3 sm:grid-cols-[minmax(0,2fr)_minmax(0,1fr)]",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)(w.Label,{htmlFor:r,children:"Repository URL"}),(0,t.jsx)(y.Input,{id:r,isMono:!0,autoComplete:"off",spellCheck:!1,placeholder:"https://github.com/acme/squadron-templates.git","data-testid":"repositories-url",value:d,onChange:e=>{c(e.target.value)}})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)(w.Label,{htmlFor:n,children:"Path (optional)"}),(0,t.jsx)(y.Input,{id:n,isMono:!0,autoComplete:"off",spellCheck:!1,placeholder:S,"data-testid":"repositories-path",value:m,onChange:e=>{u(e.target.value)}})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)(w.Label,{htmlFor:i,children:"Read token (optional, for a private repository)"}),(0,t.jsx)(y.Input,{id:i,type:"password",autoComplete:"new-password","data-testid":"repositories-token",value:h,onChange:e=>{g(e.target.value)}}),(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:"Entered once and never shown again. To change it, remove the repository and add it again."})]}),void 0===s?null:(0,t.jsx)(l.InlineError,{title:"Couldn’t add the repository",description:`${s} The list shows what squadrons holds.`}),(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)(o.Button,{type:"submit",variant:"primary",icon:(0,t.jsx)(x.Plus,{"aria-hidden":!0}),isLoading:e,disabled:""===d.trim(),"data-testid":"repositories-add-submit",children:e?"Adding":"Add repository"})})]})}function R(e,t){return e.map(({name:e,versions:s})=>"template"===t?`${e}@${s.join(", ")}`:`${e} v${s.join(", v")}`).join(" · ")}function q({contents:e,path:s}){let{templates:a,blueprints:r,leftOut:n}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("dl",{"data-testid":"repositories-found",className:"grid grid-cols-[auto_minmax(0,1fr)] gap-x-3 gap-y-0.5 text-meta",children:0===a.length&&0===r.length?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("dt",{className:"text-muted-foreground",children:"Found"}),(0,t.jsxs)("dd",{children:["No templates or blueprints under ",s]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("dt",{className:"text-muted-foreground",children:"Templates"}),(0,t.jsx)("dd",{className:"font-mono",children:0===a.length?"None":R(a,"template")}),(0,t.jsx)("dt",{className:"text-muted-foreground",children:"Blueprints"}),(0,t.jsx)("dd",{className:"font-mono",children:0===r.length?"None":R(r,"blueprint")})]})}),0===n.length?null:(0,t.jsxs)("div",{"data-testid":"repositories-left-out",className:"flex flex-col gap-1.5 rounded-md border border-tone-attention-border bg-tone-attention-bg p-2.5 text-tone-attention-fg",children:[(0,t.jsxs)("p",{className:"flex items-center gap-1.5 text-meta font-medium",children:[(0,t.jsx)(p.TriangleAlert,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0"}),"Left out: ",n.length,". Fix ",1===n.length?"it":"them"," in git, tag again, then refresh."]}),(0,t.jsx)("ul",{className:"flex flex-col gap-1",children:n.map(e=>(0,t.jsxs)("li",{"data-testid":"repositories-left-out-item",className:"text-meta text-foreground",children:[(0,t.jsx)("span",{className:"font-mono",children:(0,b.leftOutLabel)(e)}),": ",e.message]},`${e.kind} ${e.name}@${String(e.version)}`))})]})]})}function A({repository:e,contents:s,now:a,onRemove:r}){let{lastFetch:n}=e;return(0,t.jsxs)("li",{"data-testid":"repositories-row",className:"flex flex-col gap-1.5 px-3 py-2.5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(C.RepositoryName,{name:e.name}),e.path===S?null:(0,t.jsx)("span",{className:"font-mono text-meta text-muted-foreground",children:e.path}),e.hasToken?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 text-meta text-muted-foreground",children:[(0,t.jsx)(h.KeyRound,{"aria-hidden":!0,className:"size-(--size-icon-sm)"}),"Token"]}):null,(0,t.jsx)("span",{className:"ml-auto text-meta text-muted-foreground","data-testid":"repositories-fetched",children:null===n?"Not fetched yet":`Fetched ${(0,j.relativeTime)(new Date(n.at),a)}`}),(0,t.jsx)(o.Button,{size:"xs",variant:"ghost","data-testid":"repositories-remove",onClick:r,children:"Remove"})]}),n?.error?(0,t.jsxs)("p",{"data-testid":"repositories-error",className:"flex items-start gap-1.5 text-meta text-destructive-text",children:[(0,t.jsx)(u.CircleAlert,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon-sm) shrink-0"}),(0,t.jsxs)("span",{children:["The last fetch failed: ",(0,t.jsx)("span",{className:"font-mono",children:n.error})]})]}):null,void 0===s||null===n||null!==n.error&&s.templates.length+s.blueprints.length+s.leftOut.length===0?null:(0,t.jsx)(q,{contents:s,path:e.path})]})}function L(e){let{repositories:s,catalogue:a,state:r,error:n,onRetry:i,isRemoving:c,removeError:m,onRemove:u,onRemoveClosed:h,isRefreshing:x,refreshError:p,onRefresh:j,now:y}=e,[w,C]=(0,f.useState)(void 0);return(0,t.jsxs)("section",{"aria-labelledby":"settings-repositories","data-testid":"settings-repositories",className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsx)("h2",{id:"settings-repositories",className:"text-body font-semibold",children:"Repositories"}),(0,t.jsx)(o.Button,{size:"xs",icon:(0,t.jsx)(g.RotateCw,{"aria-hidden":!0}),isLoading:x,disabled:0===s.length,onClick:j,"data-testid":"repositories-refresh",children:"Refresh"})]}),(0,t.jsxs)("p",{className:"text-meta text-muted-foreground",children:["squadrons reads templates and blueprints from these repositories, under ",S," unless a repository sets its own path. It fetches one when you add it, when you refresh, and once each time squadrons connects or starts."]}),void 0===p?null:(0,t.jsx)(l.InlineError,{variant:"section",title:"Couldn’t refresh",description:p}),"loading"===r?(0,t.jsx)(d.LoadingSkeleton,{variant:"list",rows:2,label:"Loading the repositories"}):"error"===r?(0,t.jsx)(l.InlineError,{title:"Couldn’t read the repositories",description:n,onRetry:i}):0===s.length?(0,t.jsx)(k.EmptyState,{variant:"section",title:"No repositories yet",description:"Add one to read its templates and blueprints."}):(0,t.jsx)("ul",{className:"divide-y divide-border overflow-hidden rounded-md border border-border",children:s.map(e=>(0,t.jsx)(A,{repository:e,...void 0===a?{}:{contents:(0,b.repositoryContents)(a,e.name)},now:y,onRemove:()=>{C(e.name)}},e.name))}),(0,t.jsx)(z,{isAdding:e.isAdding,addError:e.addError,onAdd:e.onAdd}),(0,t.jsx)(v.AlertDialog,{open:void 0!==w,onOpenChange:e=>{e||c||(C(void 0),h())},children:(0,t.jsxs)(v.AlertDialogContent,{"data-testid":"repositories-remove-dialog",className:N.dialogSurface.phoneSheet,children:[(0,t.jsxs)(v.AlertDialogHeader,{children:[(0,t.jsxs)(v.AlertDialogTitle,{children:["Remove ",w,"?"]}),(0,t.jsx)(v.AlertDialogDescription,{children:"Its templates and blueprints leave the catalogue at once. Squadrons formed from them keep the versions they formed from."})]}),void 0===m?null:(0,t.jsx)(l.InlineError,{title:"Couldn’t remove the repository",description:`${m} The list shows what squadrons holds.`}),(0,t.jsxs)(v.AlertDialogFooter,{children:[(0,t.jsx)(v.AlertDialogClose,{render:(0,t.jsx)(o.Button,{disabled:c}),children:"Cancel"}),(0,t.jsx)(o.Button,{variant:"destructive",isLoading:c,"data-testid":"repositories-remove-confirm",onClick:()=>{void 0!==w&&u(w,()=>{C(void 0),h()})},children:"Remove repository"})]})]})})]})}var D=e.i(86875);function I({settings:e,loadError:s,onRetry:a,isConnecting:n,connectError:c,onConnect:m}){return void 0!==s?(0,t.jsx)(l.InlineError,{title:"Couldn’t read the trierarch plugin",description:s,onRetry:a}):void 0===e?(0,t.jsx)(d.LoadingSkeleton,{variant:"detail",rows:2,label:"Loading the trierarch plugin"}):(0,t.jsxs)("section",{"aria-labelledby":"settings-trierarchs","data-testid":"settings-trierarchs",className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsxs)("h2",{id:"settings-trierarchs",className:"flex items-center gap-2 text-body font-semibold [&_svg]:size-(--size-icon) [&_svg]:text-muted-foreground",children:[(0,t.jsx)(D.ShipWheel,{"aria-hidden":!0}),"Trierarchs"]}),"none"===e.state?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{className:"text-body","data-testid":"settings-trierarchs-state",children:["Not set up. ","Starts, restarts and stops sessions for crew requests on your machines. Without it, crew requests wait on Needs crew for you to crew by hand."]}),(0,t.jsx)("div",{children:(0,t.jsx)(o.Button,{size:"sm",nativeButton:!1,render:(0,t.jsx)(i.default,{href:"/trierarchs"}),"data-testid":"settings-trierarchs-how",children:"How to set it up"})})]}):"connected"===e.state?(0,t.jsxs)("p",{className:"text-body","data-testid":"settings-trierarchs-state",children:["Connected as ",(0,t.jsx)("span",{className:"font-mono",children:e.ship?.name})," ",(0,t.jsxs)("span",{className:"font-mono text-muted-foreground",children:["(",e.ship?.shipId,")"]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-body","data-testid":"settings-trierarchs-state",children:"Not connected. Connecting commissions the ship trierarch-plugin, which reads and manages the fleet and assigns crew requests, or gives it a new starting prompt, and hands its secret to the trierarch plugin. No one sees the secret."}),(0,t.jsx)("div",{children:(0,t.jsx)(o.Button,{variant:"primary",icon:(0,t.jsx)(r,{"aria-hidden":!0}),isLoading:n,onClick:m,"data-testid":"settings-trierarchs-connect",children:"Connect trierarch plugin"})}),void 0!==c&&(0,t.jsx)(l.InlineError,{variant:"field",title:"Couldn’t connect the trierarch plugin",description:c})]})]})}var E=e.i(77821),T=e.i(87964),B=e.i(28459),P=e.i(96676),F=e.i(78485),$=e.i(18423),M=e.i(86165),K=e.i(48695),H=e.i(46806),O=e.i(3979),_=e.i(265);e.s(["default",0,function(){let e=(0,P.useNow)(),s=(0,T.useConsoleFrame)(),a=(0,M.useHasSquadrons)(),r=(0,B.useNeedsAttention)(),n=(0,M.useSquadronsSettings)(),i=(0,M.useConnectSquadrons)(),o=(0,_.useTrierarchPluginSettings)(),l=(0,_.useConnectTrierarchPlugin)(),d=(0,H.useNetworkingPluginSettings)(),u=(0,H.useConnectNetworkingPlugin)(),h=(0,$.useLiveFleet)(),x=(0,M.useSquadronsConnection)(),g=(0,K.useRepositories)(),p=(0,K.useCatalogue)(),f=(0,K.useAddRepository)(),j=(0,K.useRemoveRepository)(),b=(0,K.useRefreshCatalogue)(),v=(0,O.usePluginNav)();return(0,F.useSignInWhenSessionEnds)([r.error,h.error]),(0,t.jsxs)(E.ListPage,{...s,title:"Settings",description:"How this installation runs. Only argo, the operator, sees this page.",live:h.live,children:[a&&(0,t.jsx)(m,{settings:n.data,loadError:n.isError?n.error.message:void 0,onRetry:()=>{n.refetch()},isConnecting:i.isPending,connectError:i.isError?i.error.message:void 0,onConnect:()=>{i.mutate()}}),v.hasSettings&&(0,t.jsx)(I,{settings:o.data,loadError:o.isError?o.error.message:void 0,onRetry:()=>{o.refetch()},isConnecting:l.isPending,connectError:l.isError?l.error.message:void 0,onConnect:()=>{l.mutate()}}),v.hasSettings&&(0,t.jsx)(c,{settings:d.data,loadError:d.isError?d.error.message:void 0,onRetry:()=>{d.refetch()},isConnecting:u.isPending,connectError:u.isError?u.error.message:void 0,onConnect:()=>{u.mutate()}}),"connected"===x&&(0,t.jsx)(L,{repositories:g.data??[],...void 0===p.data?{}:{catalogue:p.data},state:g.isError?"error":g.data?"ready":"loading",error:g.error?.message,onRetry:()=>{g.refetch()},isAdding:f.isPending,addError:f.error?.message,onAdd:(e,t)=>{f.mutate(e,{onSuccess:t})},isRemoving:j.isPending,removeError:j.error?.message,onRemove:(e,t)=>{j.mutate(e,{onSuccess:t})},onRemoveClosed:()=>{j.reset()},isRefreshing:b.isPending,refreshError:b.error?.message,onRefresh:()=>{b.mutate()},now:e})]})}],89275)},24010,e=>{"use strict";var t=e.i(43476);e.s([],58762),e.i(58762);var s=e.i(66250),a=e.i(2820),r=e.i(56736),n=e.i(9793),i=e.i(84324),o=e.i(64951),l=e.i(77173);let d=e.i(13488).DialogTrigger;var c=e.i(74217),m=e.i(25326);class u extends m.DialogHandle{}e.s(["Backdrop",()=>a.DialogBackdrop,"Close",()=>r.DialogClose,"Description",()=>n.DialogDescription,"Handle",0,u,"Popup",()=>i.DialogPopup,"Portal",()=>o.DialogPortal,"Root",0,function(e){return(0,s.useRenderDialogRoot)("alert-dialog",e)},"Title",()=>l.DialogTitle,"Trigger",0,d,"Viewport",()=>c.DialogViewport,"createHandle",0,function(){return new u}],34604);var h=e.i(34604),h=h,x=e.i(90063),g=e.i(94945);e.s(["AlertDialog",0,function(e){return(0,t.jsx)(h.Root,{"data-slot":"alert-dialog",...e})},"AlertDialogClose",0,function(e){return(0,t.jsx)(h.Close,{"data-slot":"alert-dialog-close",...e})},"AlertDialogContent",0,function({className:e,size:s,children:a,...r}){return(0,t.jsxs)(h.Portal,{children:[(0,t.jsx)(h.Backdrop,{"data-slot":"alert-dialog-overlay",className:g.dialogSurface.overlay}),(0,t.jsx)(h.Popup,{"data-slot":"alert-dialog-content",className:(0,x.classNames)(g.dialogSurface.popup({size:s}),e),...r,children:a})]})},"AlertDialogDescription",0,function({className:e,...s}){return(0,t.jsx)(h.Description,{"data-slot":"alert-dialog-description",className:(0,x.classNames)(g.dialogSurface.description,e),...s})},"AlertDialogFooter",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,x.classNames)(g.dialogSurface.footer,e),...s})},"AlertDialogHeader",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,x.classNames)(g.dialogSurface.header,e),...s})},"AlertDialogTitle",0,function({className:e,...s}){return(0,t.jsx)(h.Title,{"data-slot":"alert-dialog-title",className:(0,x.classNames)(g.dialogSurface.title,e),...s})}],24010)},94945,e=>{"use strict";let t={overlay:"fixed inset-0 isolate z-50 bg-overlay duration-(--duration-base) data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",popup:(0,e.i(25913).cva)("fixed top-1/2 left-1/2 z-50 grid max-h-[calc(100dvh-var(--spacing)*8)] w-full max-w-[calc(100%-var(--spacing)*8)] -translate-x-1/2 -translate-y-1/2 gap-4 overflow-y-auto rounded-xl border border-border bg-popover p-6 text-body text-popover-foreground shadow-lg duration-(--duration-base) outline-none data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 motion-reduce:data-open:zoom-in-100 motion-reduce:data-closed:zoom-out-100",{variants:{size:{sm:"sm:max-w-(--size-dialog-sm)",md:"sm:max-w-(--size-dialog-md)"}},defaultVariants:{size:"sm"}}),header:"flex flex-col gap-2",footer:"flex flex-col-reverse gap-2 pt-1 sm:flex-row sm:justify-end",title:"text-heading font-semibold text-foreground",description:"text-body text-muted-foreground",phoneSheet:"max-sm:top-auto max-sm:bottom-0 max-sm:left-0 max-sm:max-w-full max-sm:translate-x-0 max-sm:translate-y-0 max-sm:rounded-none max-sm:rounded-t-2xl max-sm:border-x-0 max-sm:border-b-0 max-sm:px-4 max-sm:pb-[max(calc(var(--spacing)*4),env(safe-area-inset-bottom))] max-sm:[&_[data-slot=button]]:h-(--size-control-touch) max-sm:[&_[data-slot=button]]:w-full",phoneFullScreen:"max-sm:top-0 max-sm:left-0 max-sm:h-dvh max-sm:max-w-full max-sm:translate-x-0 max-sm:translate-y-0 max-sm:content-start max-sm:overflow-y-auto max-sm:rounded-none max-sm:border-0"};e.s(["dialogSurface",0,t])},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})}])},91727,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["Label",0,function({className:e,htmlFor:a,...r}){return(0,t.jsx)("label",{"data-slot":"label",htmlFor:a,className:(0,s.classNames)("text-body font-medium text-foreground select-none",e),...r})}])},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:r,action:n,variant:i="page",className:o}){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",o),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",o),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,s.classNames)("flex flex-col items-center gap-3 rounded-lg border border-dashed border-border bg-card px-6 py-10 text-center",o),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}),a?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:a}):null,n?(0,t.jsx)("div",{className:"mt-1 max-sm:w-full max-sm:[&>*]:w-full",children:n}):null]})}])},17981,e=>{"use strict";var t=e.i(43476),s=e.i(22768),a=e.i(36518),r=e.i(25398),n=e.i(90063),i=e.i(15905);e.s(["InlineError",0,function({title:e,description:o,detail:l,onRetry:d,retryNote:c,variant:m="section",id:u,className:h}){return"field"===m?(0,t.jsxs)("p",{id:u,"data-slot":"inline-error","data-variant":m,className:(0,n.classNames)("flex items-center gap-1.5 text-meta text-destructive-text [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",h),children:[(0,t.jsx)(s.CircleAlert,{"aria-hidden":!0}),e]}):"section"===m?(0,t.jsxs)("div",{role:"alert","data-slot":"inline-error","data-variant":m,className:(0,n.classNames)("flex gap-2 rounded-lg border border-tone-attention-border bg-tone-attention-bg p-3 text-tone-attention-fg",h),children:[(0,t.jsx)(s.CircleAlert,{"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}),o?(0,t.jsx)("p",{className:"text-meta text-foreground",children:o}):null,d?(0,t.jsx)(i.Button,{size:"xs",icon:(0,t.jsx)(r.RotateCw,{"aria-hidden":!0}),onClick:d,className:"self-start",children:"Try again"}):null]})]}):(0,t.jsxs)("div",{role:"alert","data-slot":"inline-error","data-variant":m,className:(0,n.classNames)("flex flex-col items-center gap-3 rounded-lg border border-border bg-card px-6 py-10 text-center",h),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"flex size-10 items-center justify-center rounded-lg border border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg [&_svg]:size-(--size-icon-xl)",children:(0,t.jsx)(a.CloudOff,{})}),(0,t.jsx)("h2",{className:"text-heading font-semibold text-foreground max-sm:text-heading-touch",children:e}),o?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:o}):null,l?(0,t.jsx)("code",{className:"rounded-sm border border-border bg-muted px-2 py-0.5 font-mono text-id text-muted-foreground",children:l}):null,d?(0,t.jsxs)("div",{className:"flex items-center gap-2 max-sm:w-full max-sm:flex-col",children:[(0,t.jsx)(i.Button,{size:"sm",icon:(0,t.jsx)(r.RotateCw,{"aria-hidden":!0}),onClick:d,className:"max-sm:w-full",children:"Try again"}),c?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:c}):null]}):null]})}])},88393,e=>{"use strict";var t=e.i(43476),s=e.i(90063),a=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:o}){return(0,t.jsxs)("div",{role:"status","data-slot":"loading-skeleton","data-variant":e,className:(0,s.classNames)("w-full",o),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)(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: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)(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: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)(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]})}])},77880,85538,e=>{"use strict";var t=e.i(43476),s=e.i(67927),a=e.i(66595),r=e.i(19759),n=e.i(22016),i=e.i(15905),o=e.i(36651),l=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:r}=d[e];return(0,t.jsxs)("span",{"data-slot":"live-status","data-state":e,"aria-live":"polite",className:(0,l.classNames)("inline-flex items-center gap-1.5 text-meta text-muted-foreground",s),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:(0,l.classNames)("size-2 shrink-0 rounded-full",r)}),a]})}e.s(["Header",0,function({breadcrumb:e,parents:l=[],live:d,onCompose:m,onSearch:u}){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:[l.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)(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}),u?(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:u,children:[(0,t.jsx)("span",{className:"grow text-left",children:"Search ships or jump to"}),(0,t.jsx)(o.Kbd,{children:"⌘K"})]}):null,m?(0,t.jsx)(i.Button,{size:"sm",icon:(0,t.jsx)(r.SquarePen,{"aria-hidden":!0}),"data-testid":"header-compose",onClick:m,children:"Compose"}):null]})]})}],77880);var m=e.i(24071),u=e.i(57957);e.s(["TopBar",0,function({title:e,live:s,actions:r,back:o,account:l,onSearch:d}){let h=d&&!o?d:void 0;return(0,t.jsxs)("header",{"data-slot":"top-bar","data-mode":o?"detail":"root",className:"sticky top-0 z-30 flex h-(--size-header) items-center gap-2.5 border-b border-border bg-background px-4 sm:hidden",children:[o?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(n.default,{href:o.href,className:"-ml-1.5 inline-flex h-(--size-control-touch) shrink-0 items-center gap-0.5 rounded-md pr-2 text-body-touch text-foreground focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon)",children:[(0,t.jsx)(m.ChevronLeft,{"aria-hidden":!0}),o.label]}),(0,t.jsx)("p",{className:"min-w-0 flex-1 truncate text-center text-body-touch font-semibold text-foreground",children:e})]}):(0,t.jsx)("h1",{className:"truncate text-title-touch font-semibold tracking-tight text-foreground",children:e}),(0,t.jsx)(c,{state:s}),r||h||l&&!o?(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)(a.Search,{"aria-hidden":!0})}):null,r,l&&!o?(0,t.jsx)(u.AccountMenuSheet,{...l}):null]}):null]})}],85538)},77821,e=>{"use strict";var t=e.i(43476),s=e.i(19759),a=e.i(15905),r=e.i(77880),n=e.i(85538);e.s(["ListPage",0,function({title:e,description:i,titleMeta:o,primaryAction:l,toolbar:d,live:c,onCompose:m,onSearch:u,account:h,banner:x,children:g}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Header,{breadcrumb:e,live:c,onCompose:m,onSearch:u}),x,(0,t.jsx)(n.TopBar,{title:e,live:c,account:h,onSearch:u,actions:m?(0,t.jsx)(a.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Compose","data-testid":"top-bar-compose",onClick:m,children:(0,t.jsx)(s.SquarePen,{"aria-hidden":!0})}):void 0}),(0,t.jsxs)("main",{className:"flex grow flex-col gap-5 px-8 py-6 max-sm:gap-3.5 max-sm:px-4 max-sm:pt-3.5 max-sm:pb-[calc(var(--size-tabbar)+var(--spacing)*4)]",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4 max-sm:gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-1",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1",children:[(0,t.jsx)("h1",{className:"text-title font-semibold tracking-tight text-foreground max-sm:hidden",children:e}),o]}),i?(0,t.jsx)("p",{className:"text-meta text-muted-foreground max-sm:text-body-touch",children:i}):null]}),l?(0,t.jsx)("div",{className:"shrink-0 max-sm:w-full max-sm:[&>*]:w-full",children:l}):null]}),d,g]})]})}])},18423,e=>{"use strict";var t=e.i(12598),s=e.i(5861),a=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 o(e,t){await e.cancelQueries({queryKey:t,predicate:e=>void 0===e.state.data&&"fetching"===e.state.fetchStatus}),await e.invalidateQueries({queryKey:t})}let l=new Set(["LabelDefined","LabelValuesChanged","LabelRetired","LabelAssigned","LabelUnassigned","LabelDeleted"]),d=new Set(["DeliveryUndeliverable","DeliveryDismissed"]);e.s(["useLiveFleet",0,function(){let e=(0,n.useTRPC)(),c=(0,t.useQueryClient)(),[m,u]=(0,a.useState)(new Set),h=e=>{o(c,e)},x=(0,s.useSubscription)(e.fleet.events.subscriptionOptions({lastEventId:null},{onData:({data:t})=>{var s,a,n;if("resync"===t.kind)return void h(e.fleet.pathKey());let{event:o}=t;for(let t of new Set([o.shipId,o.actorShipId]))null!==t&&(h(e.fleet.ship.queryKey({shipId:t})),h(e.fleet.shipTimeline.queryKey({shipId:t})));if(null!==o.messageId&&(h(e.fleet.shipMessages.pathKey()),h(e.fleet.message.queryKey({messageId:o.messageId})),h(e.fleet.inbox.pathKey()),h(r.QUESTIONS_KEY)),s=o.type,d.has(s)&&h(e.fleet.needsAttention.queryKey()),a=o.type,l.has(a)&&h(e.fleet.labels.queryKey()),"NetworkRulesDeclared"===o.type&&h(e.fleet.declaredNetworkRules.queryKey()),n=o.type,!i.has(n))return;h(e.fleet.list.queryKey());let{shipId:c}=o;"ShipCommissioned"===o.type&&null!==c&&u(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"}}(x.status),newShipIds:m,error:x.error}}])},18310,51588,e=>{"use strict";function t(e){let t=/^github\.com\/([^/]+\/[^/]+)$/.exec(e);return t?.[1]===void 0?{label:e,isGitHub:!1}:{label:t[1],isGitHub:!0}}function s(e,t){let s=new Map;for(let{name:a,version:r}of e.filter(e=>e.repository===t))s.set(a,[...s.get(a)??[],r]);return[...s].map(([e,t])=>({name:e,versions:t.toSorted((e,t)=>e-t)})).toSorted((e,t)=>e.name.localeCompare(t.name))}e.s(["leftOutLabel",0,function(e){let{kind:t,name:s,version:a}=e;return"blueprint"===t?`blueprint ${s} v${String(a)}`:`${t} ${s}@${String(a)}`},"repositoryContents",0,function(e,t){return{templates:s(e.templates,t),blueprints:s(e.blueprints,t),leftOut:e.problems.filter(e=>e.repository===t)}},"repositoryLabel",0,t,"versionFileUrl",0,function(e){let{label:s,isGitHub:a}=t(e.repository);return a?`https://github.com/${s}/blob/${e.commit}/${encodeURI(e.file)}`:void 0}],18310);var a=e.i(43476),r=e.i(56420);let n={name:"folder-git-2",size:24,node:[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]]};n.node;let i=(0,r.default)(n);function o(){return(0,a.jsx)("svg",{"aria-hidden":!0,viewBox:"0 0 16 16",fill:"currentColor",className:"size-(--size-icon-sm) shrink-0",children:(0,a.jsx)("path",{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"})})}e.s(["RepositoryName",0,function({name:e,href:s}){let{label:r,isGitHub:n}=t(e),l=(0,a.jsxs)(a.Fragment,{children:[n?(0,a.jsx)(o,{}):(0,a.jsx)(i,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0 text-muted-foreground"}),(0,a.jsx)("span",{className:"truncate",children:r})]}),d="inline-flex min-w-0 items-center gap-1.5 font-medium";return void 0===s?(0,a.jsx)("span",{title:e,className:d,children:l}):(0,a.jsx)("a",{href:s,target:"_blank",rel:"noreferrer",title:e,className:`${d} hover:underline`,children:l})}],51588)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,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)},36518,e=>{"use strict";var t=e.i(56420);let s={name:"cloud-off",size:24,node:[["path",{d:"M10.94 5.274A7 7 0 0 1 15.71 10h1.79a4.5 4.5 0 0 1 4.222 6.057",key:"1uxyv8"}],["path",{d:"M18.796 18.81A4.5 4.5 0 0 1 17.5 19H9A7 7 0 0 1 5.79 5.78",key:"99tcn7"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]};s.node;let a=(0,t.default)(s);e.s(["CloudOff",0,a],36518)},58925,e=>{"use strict";var t=e.i(56420);let s={name:"key-round",size:24,node:[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]};s.node;let a=(0,t.default)(s);e.s(["KeyRound",0,a],58925)},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)},25398,e=>{"use strict";var t=e.i(56420);let s={name:"rotate-cw",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]};s.node;let a=(0,t.default)(s);e.s(["RotateCw",0,a],25398)},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)},89275,e=>{"use strict";var t=e.i(43476),s=e.i(56420);let a={name:"link-2",size:24,node:[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]};a.node;let r=(0,s.default)(a);var n=e.i(7921),i=e.i(22016),o=e.i(15905),l=e.i(17981),d=e.i(88393);function c({settings:e,loadError:s,onRetry:a,isConnecting:m,connectError:u,onConnect:h}){return void 0!==s?(0,t.jsx)(l.InlineError,{title:"Couldn’t read the networking plugin",description:s,onRetry:a}):void 0===e?(0,t.jsx)(d.LoadingSkeleton,{variant:"detail",rows:2,label:"Loading the networking plugin"}):"none"===e.state?null:(0,t.jsxs)("section",{"aria-labelledby":"settings-network","data-testid":"settings-network",className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsxs)("h2",{id:"settings-network",className:"flex items-center gap-2 text-body font-semibold [&_svg]:size-(--size-icon) [&_svg]:text-muted-foreground",children:[(0,t.jsx)(n.Network,{"aria-hidden":!0}),"Network"]}),"connected"===e.state?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{className:"text-body","data-testid":"settings-network-state",children:["Connected as ",(0,t.jsx)("span",{className:"font-mono",children:e.ship?.name})," ",(0,t.jsxs)("span",{className:"font-mono text-muted-foreground",children:["(",e.ship?.shipId,")"]}),". It supplies the rules you set on Network to the fleet."]}),(0,t.jsx)("div",{children:(0,t.jsx)(o.Button,{size:"sm",nativeButton:!1,render:(0,t.jsx)(i.default,{href:"/network"}),"data-testid":"settings-network-open",children:"Open Network"})})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-body","data-testid":"settings-network-state",children:"Not connected. Connecting commissions the ship networking-plugin, which reads the fleet and alone sets who may message whom, or gives it a new starting prompt, and hands its secret to the networking plugin. No one sees the secret. Until you set rules, every ship may message every ship."}),(0,t.jsx)("div",{children:(0,t.jsx)(o.Button,{variant:"primary",icon:(0,t.jsx)(r,{"aria-hidden":!0}),isLoading:m,onClick:h,"data-testid":"settings-network-connect",children:"Connect networking plugin"})}),void 0!==u&&(0,t.jsx)(l.InlineError,{variant:"field",title:"Couldn’t connect the networking plugin",description:u})]})]})}function m({settings:e,loadError:s,onRetry:a,isConnecting:n,connectError:i,onConnect:c}){return void 0!==s?(0,t.jsx)(l.InlineError,{title:"Couldn’t read squadrons",description:s,onRetry:a}):void 0===e?(0,t.jsx)(d.LoadingSkeleton,{variant:"detail",rows:2,label:"Loading squadrons"}):"none"===e.state?null:(0,t.jsxs)("section",{"aria-labelledby":"settings-squadrons","data-testid":"settings-squadrons",className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsx)("h2",{id:"settings-squadrons",className:"text-body font-semibold",children:"Squadrons"}),"connected"===e.state?(0,t.jsxs)("p",{className:"text-body","data-testid":"settings-squadrons-state",children:["Connected as ",(0,t.jsx)("span",{className:"font-mono",children:e.ship?.name})," ",(0,t.jsxs)("span",{className:"font-mono text-muted-foreground",children:["(",e.ship?.shipId,")"]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-body","data-testid":"settings-squadrons-state",children:"Not connected. Connecting commissions the ship squadrons, with fleet read and manage, or gives it a new starting prompt, and hands its secret to squadrons. No one sees the secret."}),(0,t.jsx)("div",{children:(0,t.jsx)(o.Button,{variant:"primary",icon:(0,t.jsx)(r,{"aria-hidden":!0}),isLoading:n,onClick:c,"data-testid":"settings-squadrons-connect",children:"Connect squadrons"})}),void 0!==i&&(0,t.jsx)(l.InlineError,{variant:"field",title:"Couldn’t connect squadrons",description:i})]})]})}var u=e.i(22768),h=e.i(58925),x=e.i(77071),g=e.i(25398),p=e.i(66787),f=e.i(71645),j=e.i(49635),b=e.i(18310),v=e.i(24010),y=e.i(94945),N=e.i(12470),w=e.i(91727),k=e.i(67874),C=e.i(51588);let S=".aeolus/squadrons";function z({isAdding:e,addError:s,onAdd:a}){let r=(0,f.useId)(),n=(0,f.useId)(),i=(0,f.useId)(),[d,c]=(0,f.useState)(""),[m,u]=(0,f.useState)(""),[h,g]=(0,f.useState)("");return(0,t.jsxs)("form",{noValidate:!0,"data-testid":"repositories-add",className:"flex flex-col gap-3 rounded-md border border-border p-3",onSubmit:e=>{e.preventDefault();let t=m.trim(),s=h.trim();a({url:d.trim(),...""===t?{}:{path:t},...""===s?{}:{token:s}},()=>{c(""),u(""),g("")})},children:[(0,t.jsxs)("div",{className:"grid gap-3 sm:grid-cols-[minmax(0,2fr)_minmax(0,1fr)]",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)(w.Label,{htmlFor:r,children:"Repository URL"}),(0,t.jsx)(N.Input,{id:r,isMono:!0,autoComplete:"off",spellCheck:!1,placeholder:"https://github.com/acme/squadron-templates.git","data-testid":"repositories-url",value:d,onChange:e=>{c(e.target.value)}})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)(w.Label,{htmlFor:n,children:"Path (optional)"}),(0,t.jsx)(N.Input,{id:n,isMono:!0,autoComplete:"off",spellCheck:!1,placeholder:S,"data-testid":"repositories-path",value:m,onChange:e=>{u(e.target.value)}})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)(w.Label,{htmlFor:i,children:"Read token (optional, for a private repository)"}),(0,t.jsx)(N.Input,{id:i,type:"password",autoComplete:"new-password","data-testid":"repositories-token",value:h,onChange:e=>{g(e.target.value)}}),(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:"Entered once and never shown again. To change it, remove the repository and add it again."})]}),void 0===s?null:(0,t.jsx)(l.InlineError,{title:"Couldn’t add the repository",description:`${s} The list shows what squadrons holds.`}),(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)(o.Button,{type:"submit",variant:"primary",icon:(0,t.jsx)(x.Plus,{"aria-hidden":!0}),isLoading:e,disabled:""===d.trim(),"data-testid":"repositories-add-submit",children:e?"Adding":"Add repository"})})]})}function R(e,t){return e.map(({name:e,versions:s})=>"template"===t?`${e}@${s.join(", ")}`:`${e} v${s.join(", v")}`).join(" · ")}function q({contents:e,path:s}){let{templates:a,blueprints:r,leftOut:n}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("dl",{"data-testid":"repositories-found",className:"grid grid-cols-[auto_minmax(0,1fr)] gap-x-3 gap-y-0.5 text-meta",children:0===a.length&&0===r.length?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("dt",{className:"text-muted-foreground",children:"Found"}),(0,t.jsxs)("dd",{children:["No templates or blueprints under ",s]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("dt",{className:"text-muted-foreground",children:"Templates"}),(0,t.jsx)("dd",{className:"font-mono",children:0===a.length?"None":R(a,"template")}),(0,t.jsx)("dt",{className:"text-muted-foreground",children:"Blueprints"}),(0,t.jsx)("dd",{className:"font-mono",children:0===r.length?"None":R(r,"blueprint")})]})}),0===n.length?null:(0,t.jsxs)("div",{"data-testid":"repositories-left-out",className:"flex flex-col gap-1.5 rounded-md border border-tone-attention-border bg-tone-attention-bg p-2.5 text-tone-attention-fg",children:[(0,t.jsxs)("p",{className:"flex items-center gap-1.5 text-meta font-medium",children:[(0,t.jsx)(p.TriangleAlert,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0"}),"Left out: ",n.length,". Fix ",1===n.length?"it":"them"," in git, tag again, then refresh."]}),(0,t.jsx)("ul",{className:"flex flex-col gap-1",children:n.map(e=>(0,t.jsxs)("li",{"data-testid":"repositories-left-out-item",className:"text-meta text-foreground",children:[(0,t.jsx)("span",{className:"font-mono",children:(0,b.leftOutLabel)(e)}),": ",e.message]},`${e.kind} ${e.name}@${String(e.version)}`))})]})]})}function A({repository:e,contents:s,now:a,onRemove:r}){let{lastFetch:n}=e;return(0,t.jsxs)("li",{"data-testid":"repositories-row",className:"flex flex-col gap-1.5 px-3 py-2.5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(C.RepositoryName,{name:e.name}),e.path===S?null:(0,t.jsx)("span",{className:"font-mono text-meta text-muted-foreground",children:e.path}),e.hasToken?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 text-meta text-muted-foreground",children:[(0,t.jsx)(h.KeyRound,{"aria-hidden":!0,className:"size-(--size-icon-sm)"}),"Token"]}):null,(0,t.jsx)("span",{className:"ml-auto text-meta text-muted-foreground","data-testid":"repositories-fetched",children:null===n?"Not fetched yet":`Fetched ${(0,j.relativeTime)(new Date(n.at),a)}`}),(0,t.jsx)(o.Button,{size:"xs",variant:"ghost","data-testid":"repositories-remove",onClick:r,children:"Remove"})]}),n?.error?(0,t.jsxs)("p",{"data-testid":"repositories-error",className:"flex items-start gap-1.5 text-meta text-destructive-text",children:[(0,t.jsx)(u.CircleAlert,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon-sm) shrink-0"}),(0,t.jsxs)("span",{children:["The last fetch failed: ",(0,t.jsx)("span",{className:"font-mono",children:n.error})]})]}):null,void 0===s||null===n||null!==n.error&&s.templates.length+s.blueprints.length+s.leftOut.length===0?null:(0,t.jsx)(q,{contents:s,path:e.path})]})}function L(e){let{repositories:s,catalogue:a,state:r,error:n,onRetry:i,isRemoving:c,removeError:m,onRemove:u,onRemoveClosed:h,isRefreshing:x,refreshError:p,onRefresh:j,now:N}=e,[w,C]=(0,f.useState)(void 0);return(0,t.jsxs)("section",{"aria-labelledby":"settings-repositories","data-testid":"settings-repositories",className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsx)("h2",{id:"settings-repositories",className:"text-body font-semibold",children:"Repositories"}),(0,t.jsx)(o.Button,{size:"xs",icon:(0,t.jsx)(g.RotateCw,{"aria-hidden":!0}),isLoading:x,disabled:0===s.length,onClick:j,"data-testid":"repositories-refresh",children:"Refresh"})]}),(0,t.jsxs)("p",{className:"text-meta text-muted-foreground",children:["squadrons reads templates and blueprints from these repositories, under ",S," unless a repository sets its own path. It fetches one when you add it, when you refresh, and once each time squadrons connects or starts."]}),void 0===p?null:(0,t.jsx)(l.InlineError,{variant:"section",title:"Couldn’t refresh",description:p}),"loading"===r?(0,t.jsx)(d.LoadingSkeleton,{variant:"list",rows:2,label:"Loading the repositories"}):"error"===r?(0,t.jsx)(l.InlineError,{title:"Couldn’t read the repositories",description:n,onRetry:i}):0===s.length?(0,t.jsx)(k.EmptyState,{variant:"section",title:"No repositories yet",description:"Add one to read its templates and blueprints."}):(0,t.jsx)("ul",{className:"divide-y divide-border overflow-hidden rounded-md border border-border",children:s.map(e=>(0,t.jsx)(A,{repository:e,...void 0===a?{}:{contents:(0,b.repositoryContents)(a,e.name)},now:N,onRemove:()=>{C(e.name)}},e.name))}),(0,t.jsx)(z,{isAdding:e.isAdding,addError:e.addError,onAdd:e.onAdd}),(0,t.jsx)(v.AlertDialog,{open:void 0!==w,onOpenChange:e=>{e||c||(C(void 0),h())},children:(0,t.jsxs)(v.AlertDialogContent,{"data-testid":"repositories-remove-dialog",className:y.dialogSurface.phoneSheet,children:[(0,t.jsxs)(v.AlertDialogHeader,{children:[(0,t.jsxs)(v.AlertDialogTitle,{children:["Remove ",w,"?"]}),(0,t.jsx)(v.AlertDialogDescription,{children:"Its templates and blueprints leave the catalogue at once. Squadrons formed from them keep the versions they formed from."})]}),void 0===m?null:(0,t.jsx)(l.InlineError,{title:"Couldn’t remove the repository",description:`${m} The list shows what squadrons holds.`}),(0,t.jsxs)(v.AlertDialogFooter,{children:[(0,t.jsx)(v.AlertDialogClose,{render:(0,t.jsx)(o.Button,{disabled:c}),children:"Cancel"}),(0,t.jsx)(o.Button,{variant:"destructive",isLoading:c,"data-testid":"repositories-remove-confirm",onClick:()=>{void 0!==w&&u(w,()=>{C(void 0),h()})},children:"Remove repository"})]})]})})]})}var D=e.i(86875);function I({settings:e,loadError:s,onRetry:a,isConnecting:n,connectError:c,onConnect:m}){return void 0!==s?(0,t.jsx)(l.InlineError,{title:"Couldn’t read the trierarch plugin",description:s,onRetry:a}):void 0===e?(0,t.jsx)(d.LoadingSkeleton,{variant:"detail",rows:2,label:"Loading the trierarch plugin"}):(0,t.jsxs)("section",{"aria-labelledby":"settings-trierarchs","data-testid":"settings-trierarchs",className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsxs)("h2",{id:"settings-trierarchs",className:"flex items-center gap-2 text-body font-semibold [&_svg]:size-(--size-icon) [&_svg]:text-muted-foreground",children:[(0,t.jsx)(D.ShipWheel,{"aria-hidden":!0}),"Trierarchs"]}),"none"===e.state?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{className:"text-body","data-testid":"settings-trierarchs-state",children:["Not set up. ","Starts, restarts and stops sessions for crew requests on your machines. Without it, crew requests wait on Needs crew for you to crew by hand."]}),(0,t.jsx)("div",{children:(0,t.jsx)(o.Button,{size:"sm",nativeButton:!1,render:(0,t.jsx)(i.default,{href:"/trierarchs"}),"data-testid":"settings-trierarchs-how",children:"How to set it up"})})]}):"connected"===e.state?(0,t.jsxs)("p",{className:"text-body","data-testid":"settings-trierarchs-state",children:["Connected as ",(0,t.jsx)("span",{className:"font-mono",children:e.ship?.name})," ",(0,t.jsxs)("span",{className:"font-mono text-muted-foreground",children:["(",e.ship?.shipId,")"]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-body","data-testid":"settings-trierarchs-state",children:"Not connected. Connecting commissions the ship trierarch-plugin, which reads and manages the fleet and assigns crew requests, or gives it a new starting prompt, and hands its secret to the trierarch plugin. No one sees the secret."}),(0,t.jsx)("div",{children:(0,t.jsx)(o.Button,{variant:"primary",icon:(0,t.jsx)(r,{"aria-hidden":!0}),isLoading:n,onClick:m,"data-testid":"settings-trierarchs-connect",children:"Connect trierarch plugin"})}),void 0!==c&&(0,t.jsx)(l.InlineError,{variant:"field",title:"Couldn’t connect the trierarch plugin",description:c})]})]})}var E=e.i(77821),T=e.i(87964),B=e.i(28459),P=e.i(96676),F=e.i(78485),K=e.i(18423),$=e.i(86165),M=e.i(48695),H=e.i(46806),O=e.i(3979),_=e.i(265);e.s(["default",0,function(){let e=(0,P.useNow)(),s=(0,T.useConsoleFrame)(),a=(0,$.useHasSquadrons)(),r=(0,B.useNeedsAttention)(),n=(0,$.useSquadronsSettings)(),i=(0,$.useConnectSquadrons)(),o=(0,_.useTrierarchPluginSettings)(),l=(0,_.useConnectTrierarchPlugin)(),d=(0,H.useNetworkingPluginSettings)(),u=(0,H.useConnectNetworkingPlugin)(),h=(0,K.useLiveFleet)(),x=(0,$.useSquadronsConnection)(),g=(0,M.useRepositories)(),p=(0,M.useCatalogue)(),f=(0,M.useAddRepository)(),j=(0,M.useRemoveRepository)(),b=(0,M.useRefreshCatalogue)(),v=(0,O.usePluginNav)();return(0,F.useSignInWhenSessionEnds)([r.error,h.error]),(0,t.jsxs)(E.ListPage,{...s,title:"Settings",description:"How this installation runs. Only argo, the operator, sees this page.",live:h.live,children:[a&&(0,t.jsx)(m,{settings:n.data,loadError:n.isError?n.error.message:void 0,onRetry:()=>{n.refetch()},isConnecting:i.isPending,connectError:i.isError?i.error.message:void 0,onConnect:()=>{i.mutate()}}),v.hasSettings&&(0,t.jsx)(I,{settings:o.data,loadError:o.isError?o.error.message:void 0,onRetry:()=>{o.refetch()},isConnecting:l.isPending,connectError:l.isError?l.error.message:void 0,onConnect:()=>{l.mutate()}}),v.hasSettings&&(0,t.jsx)(c,{settings:d.data,loadError:d.isError?d.error.message:void 0,onRetry:()=>{d.refetch()},isConnecting:u.isPending,connectError:u.isError?u.error.message:void 0,onConnect:()=>{u.mutate()}}),"connected"===x&&(0,t.jsx)(L,{repositories:g.data??[],...void 0===p.data?{}:{catalogue:p.data},state:g.isError?"error":g.data?"ready":"loading",error:g.error?.message,onRetry:()=>{g.refetch()},isAdding:f.isPending,addError:f.error?.message,onAdd:(e,t)=>{f.mutate(e,{onSuccess:t})},isRemoving:j.isPending,removeError:j.error?.message,onRemove:(e,t)=>{j.mutate(e,{onSuccess:t})},onRemoveClosed:()=>{j.reset()},isRefreshing:b.isPending,refreshError:b.error?.message,onRefresh:()=>{b.mutate()},now:e})]})}],89275)},24010,e=>{"use strict";var t=e.i(43476);e.s([],58762),e.i(58762);var s=e.i(66250),a=e.i(2820),r=e.i(56736),n=e.i(9793),i=e.i(84324),o=e.i(64951),l=e.i(77173);let d=e.i(13488).DialogTrigger;var c=e.i(74217),m=e.i(25326);class u extends m.DialogHandle{}e.s(["Backdrop",()=>a.DialogBackdrop,"Close",()=>r.DialogClose,"Description",()=>n.DialogDescription,"Handle",0,u,"Popup",()=>i.DialogPopup,"Portal",()=>o.DialogPortal,"Root",0,function(e){return(0,s.useRenderDialogRoot)("alert-dialog",e)},"Title",()=>l.DialogTitle,"Trigger",0,d,"Viewport",()=>c.DialogViewport,"createHandle",0,function(){return new u}],34604);var h=e.i(34604),h=h,x=e.i(90063),g=e.i(94945);e.s(["AlertDialog",0,function(e){return(0,t.jsx)(h.Root,{"data-slot":"alert-dialog",...e})},"AlertDialogClose",0,function(e){return(0,t.jsx)(h.Close,{"data-slot":"alert-dialog-close",...e})},"AlertDialogContent",0,function({className:e,size:s,children:a,...r}){return(0,t.jsxs)(h.Portal,{children:[(0,t.jsx)(h.Backdrop,{"data-slot":"alert-dialog-overlay",className:g.dialogSurface.overlay}),(0,t.jsx)(h.Popup,{"data-slot":"alert-dialog-content",className:(0,x.classNames)(g.dialogSurface.popup({size:s}),e),...r,children:a})]})},"AlertDialogDescription",0,function({className:e,...s}){return(0,t.jsx)(h.Description,{"data-slot":"alert-dialog-description",className:(0,x.classNames)(g.dialogSurface.description,e),...s})},"AlertDialogFooter",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,x.classNames)(g.dialogSurface.footer,e),...s})},"AlertDialogHeader",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,x.classNames)(g.dialogSurface.header,e),...s})},"AlertDialogTitle",0,function({className:e,...s}){return(0,t.jsx)(h.Title,{"data-slot":"alert-dialog-title",className:(0,x.classNames)(g.dialogSurface.title,e),...s})}],24010)},94945,e=>{"use strict";let t={overlay:"fixed inset-0 isolate z-50 bg-overlay duration-(--duration-base) data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",popup:(0,e.i(25913).cva)("fixed top-1/2 left-1/2 z-50 grid max-h-[calc(100dvh-var(--spacing)*8)] w-full max-w-[calc(100%-var(--spacing)*8)] -translate-x-1/2 -translate-y-1/2 gap-4 overflow-y-auto rounded-xl border border-border bg-popover p-6 text-body text-popover-foreground shadow-lg duration-(--duration-base) outline-none data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 motion-reduce:data-open:zoom-in-100 motion-reduce:data-closed:zoom-out-100",{variants:{size:{sm:"sm:max-w-(--size-dialog-sm)",md:"sm:max-w-(--size-dialog-md)"}},defaultVariants:{size:"sm"}}),header:"flex flex-col gap-2",footer:"flex flex-col-reverse gap-2 pt-1 sm:flex-row sm:justify-end",title:"text-heading font-semibold text-foreground",description:"text-body text-muted-foreground",phoneSheet:"max-sm:top-auto max-sm:bottom-0 max-sm:left-0 max-sm:max-w-full max-sm:translate-x-0 max-sm:translate-y-0 max-sm:rounded-none max-sm:rounded-t-2xl max-sm:border-x-0 max-sm:border-b-0 max-sm:px-4 max-sm:pb-[max(calc(var(--spacing)*4),env(safe-area-inset-bottom))] max-sm:[&_[data-slot=button]]:h-(--size-control-touch) max-sm:[&_[data-slot=button]]:w-full",phoneFullScreen:"max-sm:top-0 max-sm:left-0 max-sm:h-dvh max-sm:max-w-full max-sm:translate-x-0 max-sm:translate-y-0 max-sm:content-start max-sm:overflow-y-auto max-sm:rounded-none max-sm:border-0"};e.s(["dialogSurface",0,t])},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})}])},91727,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["Label",0,function({className:e,htmlFor:a,...r}){return(0,t.jsx)("label",{"data-slot":"label",htmlFor:a,className:(0,s.classNames)("text-body font-medium text-foreground select-none",e),...r})}])},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:r,action:n,variant:i="page",className:o}){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",o),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",o),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,s.classNames)("flex flex-col items-center gap-3 rounded-lg border border-dashed border-border bg-card px-6 py-10 text-center",o),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}),a?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:a}):null,n?(0,t.jsx)("div",{className:"mt-1 max-sm:w-full max-sm:[&>*]:w-full",children:n}):null]})}])},17981,e=>{"use strict";var t=e.i(43476),s=e.i(22768),a=e.i(36518),r=e.i(25398),n=e.i(90063),i=e.i(15905);e.s(["InlineError",0,function({title:e,description:o,detail:l,onRetry:d,retryNote:c,variant:m="section",id:u,className:h}){return"field"===m?(0,t.jsxs)("p",{id:u,"data-slot":"inline-error","data-variant":m,className:(0,n.classNames)("flex items-center gap-1.5 text-meta text-destructive-text [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",h),children:[(0,t.jsx)(s.CircleAlert,{"aria-hidden":!0}),e]}):"section"===m?(0,t.jsxs)("div",{role:"alert","data-slot":"inline-error","data-variant":m,className:(0,n.classNames)("flex gap-2 rounded-lg border border-tone-attention-border bg-tone-attention-bg p-3 text-tone-attention-fg",h),children:[(0,t.jsx)(s.CircleAlert,{"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}),o?(0,t.jsx)("p",{className:"text-meta text-foreground",children:o}):null,d?(0,t.jsx)(i.Button,{size:"xs",icon:(0,t.jsx)(r.RotateCw,{"aria-hidden":!0}),onClick:d,className:"self-start",children:"Try again"}):null]})]}):(0,t.jsxs)("div",{role:"alert","data-slot":"inline-error","data-variant":m,className:(0,n.classNames)("flex flex-col items-center gap-3 rounded-lg border border-border bg-card px-6 py-10 text-center",h),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"flex size-10 items-center justify-center rounded-lg border border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg [&_svg]:size-(--size-icon-xl)",children:(0,t.jsx)(a.CloudOff,{})}),(0,t.jsx)("h2",{className:"text-heading font-semibold text-foreground max-sm:text-heading-touch",children:e}),o?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:o}):null,l?(0,t.jsx)("code",{className:"rounded-sm border border-border bg-muted px-2 py-0.5 font-mono text-id text-muted-foreground",children:l}):null,d?(0,t.jsxs)("div",{className:"flex items-center gap-2 max-sm:w-full max-sm:flex-col",children:[(0,t.jsx)(i.Button,{size:"sm",icon:(0,t.jsx)(r.RotateCw,{"aria-hidden":!0}),onClick:d,className:"max-sm:w-full",children:"Try again"}),c?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:c}):null]}):null]})}])},88393,e=>{"use strict";var t=e.i(43476),s=e.i(90063),a=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:o}){return(0,t.jsxs)("div",{role:"status","data-slot":"loading-skeleton","data-variant":e,className:(0,s.classNames)("w-full",o),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)(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: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)(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: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)(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]})}])},77880,85538,e=>{"use strict";var t=e.i(43476),s=e.i(67927),a=e.i(66595),r=e.i(19759),n=e.i(22016),i=e.i(15905),o=e.i(36651),l=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:r}=d[e];return(0,t.jsxs)("span",{"data-slot":"live-status","data-state":e,"aria-live":"polite",className:(0,l.classNames)("inline-flex items-center gap-1.5 text-meta text-muted-foreground",s),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:(0,l.classNames)("size-2 shrink-0 rounded-full",r)}),a]})}e.s(["Header",0,function({breadcrumb:e,parents:l=[],live:d,onCompose:m,onSearch:u}){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:[l.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)(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}),u?(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:u,children:[(0,t.jsx)("span",{className:"grow text-left",children:"Search ships or jump to"}),(0,t.jsx)(o.Kbd,{children:"⌘K"})]}):null,m?(0,t.jsx)(i.Button,{size:"sm",icon:(0,t.jsx)(r.SquarePen,{"aria-hidden":!0}),"data-testid":"header-compose",onClick:m,children:"Compose"}):null]})]})}],77880);var m=e.i(24071),u=e.i(57957);e.s(["TopBar",0,function({title:e,live:s,actions:r,back:o,account:l,onSearch:d}){let h=d&&!o?d:void 0;return(0,t.jsxs)("header",{"data-slot":"top-bar","data-mode":o?"detail":"root",className:"sticky top-0 z-30 flex h-(--size-header) items-center gap-2.5 border-b border-border bg-background px-4 sm:hidden",children:[o?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(n.default,{href:o.href,className:"-ml-1.5 inline-flex h-(--size-control-touch) shrink-0 items-center gap-0.5 rounded-md pr-2 text-body-touch text-foreground focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon)",children:[(0,t.jsx)(m.ChevronLeft,{"aria-hidden":!0}),o.label]}),(0,t.jsx)("p",{className:"min-w-0 flex-1 truncate text-center text-body-touch font-semibold text-foreground",children:e})]}):(0,t.jsx)("h1",{className:"truncate text-title-touch font-semibold tracking-tight text-foreground",children:e}),(0,t.jsx)(c,{state:s}),r||h||l&&!o?(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)(a.Search,{"aria-hidden":!0})}):null,r,l&&!o?(0,t.jsx)(u.AccountMenuSheet,{...l}):null]}):null]})}],85538)},77821,e=>{"use strict";var t=e.i(43476),s=e.i(19759),a=e.i(15905),r=e.i(77880),n=e.i(85538);e.s(["ListPage",0,function({title:e,description:i,titleMeta:o,primaryAction:l,toolbar:d,live:c,onCompose:m,onSearch:u,account:h,banner:x,children:g}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Header,{breadcrumb:e,live:c,onCompose:m,onSearch:u}),x,(0,t.jsx)(n.TopBar,{title:e,live:c,account:h,onSearch:u,actions:m?(0,t.jsx)(a.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Compose","data-testid":"top-bar-compose",onClick:m,children:(0,t.jsx)(s.SquarePen,{"aria-hidden":!0})}):void 0}),(0,t.jsxs)("main",{className:"flex grow flex-col gap-5 px-8 py-6 max-sm:gap-3.5 max-sm:px-4 max-sm:pt-3.5 max-sm:pb-[calc(var(--size-tabbar)+var(--spacing)*4)]",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4 max-sm:gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-1",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1",children:[(0,t.jsx)("h1",{className:"text-title font-semibold tracking-tight text-foreground max-sm:hidden",children:e}),o]}),i?(0,t.jsx)("p",{className:"text-meta text-muted-foreground max-sm:text-body-touch",children:i}):null]}),l?(0,t.jsx)("div",{className:"shrink-0 max-sm:w-full max-sm:[&>*]:w-full",children:l}):null]}),d,g]})]})}])},18423,e=>{"use strict";var t=e.i(12598),s=e.i(5861),a=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 o(e,t){await e.cancelQueries({queryKey:t,predicate:e=>void 0===e.state.data&&"fetching"===e.state.fetchStatus}),await e.invalidateQueries({queryKey:t})}let l=new Set(["LabelDefined","LabelValuesChanged","LabelRetired","LabelAssigned","LabelUnassigned","LabelDeleted"]),d=new Set(["DeliveryUndeliverable","DeliveryDismissed"]);e.s(["useLiveFleet",0,function(){let e=(0,n.useTRPC)(),c=(0,t.useQueryClient)(),[m,u]=(0,a.useState)(new Set),h=e=>{o(c,e)},x=(0,s.useSubscription)(e.fleet.events.subscriptionOptions({lastEventId:null},{onData:({data:t})=>{var s,a,n;if("resync"===t.kind)return void h(e.fleet.pathKey());let{event:o}=t;for(let t of new Set([o.shipId,o.actorShipId]))null!==t&&(h(e.fleet.ship.queryKey({shipId:t})),h(e.fleet.shipTimeline.queryKey({shipId:t})),h(e.fleet.shipWay.queryKey({shipId:t})));if(null!==o.messageId&&(h(e.fleet.shipMessages.pathKey()),h(e.fleet.shipWay.pathKey()),h(e.fleet.overdue.queryKey()),h(e.fleet.message.queryKey({messageId:o.messageId})),h(e.fleet.inbox.pathKey()),h(r.QUESTIONS_KEY),h(e.fleet.noShipCanTake.queryKey())),s=o.type,d.has(s)&&h(e.fleet.needsAttention.queryKey()),a=o.type,l.has(a)&&h(e.fleet.labels.queryKey()),"NetworkRulesDeclared"===o.type&&h(e.fleet.declaredNetworkRules.queryKey()),n=o.type,!i.has(n))return;h(e.fleet.list.queryKey()),h(e.fleet.noShipCanTake.queryKey());let{shipId:c}=o;"ShipCommissioned"===o.type&&null!==c&&u(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"}}(x.status),newShipIds:m,error:x.error}}])},18310,51588,e=>{"use strict";function t(e){let t=/^github\.com\/([^/]+\/[^/]+)$/.exec(e);return t?.[1]===void 0?{label:e,isGitHub:!1}:{label:t[1],isGitHub:!0}}function s(e,t){let s=new Map;for(let{name:a,version:r}of e.filter(e=>e.repository===t))s.set(a,[...s.get(a)??[],r]);return[...s].map(([e,t])=>({name:e,versions:t.toSorted((e,t)=>e-t)})).toSorted((e,t)=>e.name.localeCompare(t.name))}e.s(["leftOutLabel",0,function(e){let{kind:t,name:s,version:a}=e;return"blueprint"===t?`blueprint ${s} v${String(a)}`:`${t} ${s}@${String(a)}`},"repositoryContents",0,function(e,t){return{templates:s(e.templates,t),blueprints:s(e.blueprints,t),leftOut:e.problems.filter(e=>e.repository===t)}},"repositoryLabel",0,t,"versionFileUrl",0,function(e){let{label:s,isGitHub:a}=t(e.repository);return a?`https://github.com/${s}/blob/${e.commit}/${encodeURI(e.file)}`:void 0}],18310);var a=e.i(43476),r=e.i(56420);let n={name:"folder-git-2",size:24,node:[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]]};n.node;let i=(0,r.default)(n);function o(){return(0,a.jsx)("svg",{"aria-hidden":!0,viewBox:"0 0 16 16",fill:"currentColor",className:"size-(--size-icon-sm) shrink-0",children:(0,a.jsx)("path",{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"})})}e.s(["RepositoryName",0,function({name:e,href:s}){let{label:r,isGitHub:n}=t(e),l=(0,a.jsxs)(a.Fragment,{children:[n?(0,a.jsx)(o,{}):(0,a.jsx)(i,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0 text-muted-foreground"}),(0,a.jsx)("span",{className:"truncate",children:r})]}),d="inline-flex min-w-0 items-center gap-1.5 font-medium";return void 0===s?(0,a.jsx)("span",{title:e,className:d,children:l}):(0,a.jsx)("a",{href:s,target:"_blank",rel:"noreferrer",title:e,className:`${d} hover:underline`,children:l})}],51588)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,13082,e=>{"use strict";var t=e.i(71645),n=e.i(74735),o=e.i(28744),r=e.i(65420),i=e.i(8868),s=e.i(39957),a=e.i(29315),u=e.i(51321),l=e.i(84446),d=e.i(96296),c=e.i(75606),p=e.i(56434);let f=o.platform.os.mac&&o.platform.engine.webkit;e.s(["useFocus",0,function(e,o={}){let{enabled:g=!0,delay:m}=o,v="rootStore"in e?e.rootStore:e,{events:h,dataRef:x}=v.context,b=t.useRef(!1),y=t.useRef(null),S=t.useRef(!0),R=(0,s.useTimeout)();t.useEffect(()=>{let e=v.select("domReferenceElement");if(!g)return;let t=(0,a.getWindow)(e);return(0,r.mergeCleanups)((0,n.addEventListener)(t,"blur",function(){let e=v.select("domReferenceElement");!v.select("open")&&(0,a.isHTMLElement)(e)&&e===(0,l.activeElement)((0,i.ownerDocument)(e))&&(b.current=!0,y.current=e)}),f&&(0,n.addEventListener)(t,"keydown",function(){S.current=!0},!0),f&&(0,n.addEventListener)(t,"pointerdown",function(){S.current=!1},!0))},[v,g]),t.useEffect(()=>{if(g)return h.on("openchange",e),()=>{h.off("openchange",e)};function e(e){if(e.reason===p.REASONS.triggerPress||e.reason===p.REASONS.escapeKey){let e=v.select("domReferenceElement");(0,a.isElement)(e)&&(y.current=e,b.current=!0)}}},[h,g,v]);let E=t.useMemo(()=>{function e(){b.current=!1,y.current=null}return{onMouseLeave(){e()},onFocus(t){let n=t.currentTarget;if(b.current){if(y.current===n)return;e()}let o=(0,l.getTarget)(t.nativeEvent);if((0,a.isElement)(o)){if(f&&!t.relatedTarget){if(!S.current&&!(0,d.isTypeableElement)(o))return}else if(!(0,d.matchesFocusVisible)(o))return}let r=(0,d.isTargetInsideEnabledTrigger)(t.relatedTarget,v.context.triggerElements),{nativeEvent:i,currentTarget:s}=t,u="function"==typeof m?m():m;v.select("open")&&r||0===u||void 0===u?v.setOpen(!0,(0,c.createChangeEventDetails)(p.REASONS.triggerFocus,i,s)):R.start(u,()=>{b.current||v.setOpen(!0,(0,c.createChangeEventDetails)(p.REASONS.triggerFocus,i,s))})},onBlur(t){e();let n=t.relatedTarget,o=t.nativeEvent,r=(0,a.isElement)(n)&&n.hasAttribute((0,u.createAttribute)("focus-guard"))&&"outside"===n.getAttribute("data-type");R.start(0,()=>{let e=v.select("domReferenceElement"),t=(0,l.activeElement)((0,i.ownerDocument)(e));if(!n&&t===e||(0,l.contains)(x.current.floatingContext?.refs.floating.current,t)||(0,l.contains)(e,t)||r)return;let s=n??t;(0,d.isTargetInsideEnabledTrigger)(s,v.context.triggerElements)||v.setOpen(!1,(0,c.createChangeEventDetails)(p.REASONS.triggerFocus,o))})}}},[x,m,v,R]);return t.useMemo(()=>g?{reference:E,trigger:E}:{},[g,E])}])},61027,3414,78921,82370,89554,66506,85996,71714,81194,1545,91384,58307,64270,19712,82264,62050,82593,5953,7447,36481,74671,63947,77450,e=>{"use strict";e.s([],61027);var t=e.i(71645),n=e.i(33332);let o=t.createContext(void 0);function r(e){let r=t.useContext(o);if(void 0===r&&!e)throw Error((0,n.default)(33));return r}e.s(["MenuPositionerContext",0,o,"useMenuPositionerContext",0,r],3414);let i=t.createContext(void 0);function s(e){let o=t.useContext(i);if(void 0===o&&!e)throw Error((0,n.default)(36));return o}e.s(["MenuRootContext",0,i,"useMenuRootContext",0,s],78921);var a=e.i(52245),u=e.i(79938);let l=t.forwardRef(function(e,t){let{render:n,className:o,style:i,...l}=e,{store:d}=s(),{arrowRef:c,side:p,align:f,arrowUncentered:g,arrowStyles:m}=r(),v=d.useState("open");return(0,a.useRenderElement)("div",e,{ref:[c,t],stateAttributesMapping:u.popupStateMapping,state:{open:v,side:p,align:f,uncentered:g},props:{style:m,"aria-hidden":!0,...l}})});e.s(["MenuArrow",0,l],82370);let d=t.createContext(void 0);function c(e=!0){let o=t.useContext(d);if(void 0===o&&!e)throw Error((0,n.default)(25));return o}var p=e.i(56434);let f=t.forwardRef(function(e,t){let{render:n,className:o,style:r,...i}=e,{store:l}=s(),d=l.useState("open"),f=l.useState("mounted"),g=l.useState("transitionStatus"),m=l.useState("lastOpenChangeReason"),v=c();return(0,a.useRenderElement)("div",e,{ref:v?.backdropRef?[t,v.backdropRef]:t,state:{open:d,transitionStatus:g},stateAttributesMapping:u.popupTransitionStateMapping,props:[{role:"presentation",hidden:!f,style:{pointerEvents:m===p.REASONS.triggerHover?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},i]})});e.s(["MenuBackdrop",0,f],89554);var g=e.i(51437),m=e.i(56789);let v=t.createContext(void 0);var h=e.i(28918),x=e.i(40886),b=e.i(76782),y=e.i(28744),S=e.i(64350);function R(e){let{closeOnClick:n,highlighted:o,id:r,nodeId:i,store:s,typingRef:a,itemRef:u,itemMetadata:l}=e,{events:d}=s.useState("floatingTreeRoot"),f=s.useState("open"),g=c(!0),m=void 0!==g;return t.useMemo(()=>({id:r,role:"menuitem",tabIndex:f&&o?0:-1,onKeyDown(e){" "===e.key&&a?.current&&e.preventDefault()},onMouseMove(e){i&&d.emit("itemhover",{nodeId:i,target:e.currentTarget})},onClick(e){n&&d.emit("close",{domEvent:e,reason:p.REASONS.itemPress})},onMouseUp(e){if(g){let t=g.initialCursorPointRef.current;if(g.initialCursorPointRef.current=null,m&&t&&1>=Math.abs(e.clientX-t.x)&&1>=Math.abs(e.clientY-t.y)||m&&!y.platform.os.mac&&2===e.button)return}u.current&&s.context.allowMouseUpTriggerRef.current&&(!m||2===e.button)&&"regular-item"===l.type&&(0,S.dispatchClickWithModifiers)(u.current,e,{detail:1})}}),[n,o,r,d,i,f,s,a,u,g,m,l])}let E={type:"regular-item"};function M(e){let{closeOnClick:n,disabled:o,highlighted:r,id:i,store:s,typingRef:a=s.context.typingRef,nativeButton:u,itemMetadata:l,nodeId:d}=e,c=t.useRef(null),{getButtonProps:p,buttonRef:f}=(0,x.useButton)({disabled:o,focusableWhenDisabled:!0,native:u,composite:!0}),g=R({closeOnClick:n,highlighted:r,id:i,nodeId:d,store:s,typingRef:a,itemRef:c,itemMetadata:l}),m=t.useCallback(e=>(0,b.mergeProps)(g,{onMouseEnter(){"submenu-trigger"===l.type&&l.setActive()}},e,p),[g,p,l]),v=(0,h.useMergedRefs)(c,f);return t.useMemo(()=>({getItemProps:m,itemRef:v}),[m,v])}e.s(["REGULAR_ITEM",0,E,"useMenuItem",0,M],66506);var C=e.i(73553),w=e.i(88015);let I={checked:e=>e?{"data-checked":""}:{"data-unchecked":""},...e.i(74354).transitionStatusMapping};var k=e.i(75606),T=e.i(43476);let O=t.forwardRef(function(e,n){let{render:o,className:i,id:u,label:l,nativeButton:d=!1,disabled:c=!1,closeOnClick:f=!1,checked:h,defaultChecked:x,onCheckedChange:b,style:y,...S}=e,R=(0,C.useCompositeListItem)({guess:!0,label:l}),O=r(!0),P=(0,w.useBaseUiId)(u),{store:N}=s(),j=N.useState("disabled"),A=c||j,D=N.useState("isActive",R.index),L=N.useState("itemProps"),[z,F]=(0,g.useControlled)({controlled:h,default:x??!1,name:"MenuCheckboxItem",state:"checked"}),{getItemProps:_,itemRef:H}=M({closeOnClick:f,disabled:A,highlighted:D,id:P,store:N,nativeButton:d,nodeId:O?.context.nodeId,itemMetadata:E}),U=t.useMemo(()=>({disabled:A,highlighted:D,checked:z}),[A,D,z]),B=(0,a.useRenderElement)("div",e,{state:U,stateAttributesMapping:I,props:[L,{role:"menuitemcheckbox","aria-checked":z,onClick:function(e){let t=(0,k.createChangeEventDetails)(p.REASONS.itemPress,e.nativeEvent,void 0,{preventUnmountOnClose:m.NOOP});b?.(!z,t),t.isCanceled||F(e=>!e)}},S,_],ref:[H,n,R.ref]});return(0,T.jsx)(v.Provider,{value:U,children:B})});e.s(["MenuCheckboxItem",0,O],85996);var P=e.i(23910),N=e.i(37584);let j=t.forwardRef(function(e,o){let{render:r,className:i,style:s,keepMounted:u=!1,...l}=e,d=function(){let e=t.useContext(v);if(void 0===e)throw Error((0,n.default)(30));return e}(),c=t.useRef(null),{transitionStatus:p,mounted:f,setMounted:g}=(0,P.useTransitionStatus)(d.checked);(0,N.useOpenChangeComplete)({batch:!0,enabled:!d.checked,open:d.checked,ref:c,onComplete(){d.checked||g(!1)}});let m={checked:d.checked,disabled:d.disabled,highlighted:d.highlighted,transitionStatus:p};return(0,a.useRenderElement)("span",e,{state:m,ref:[o,c],stateAttributesMapping:I,props:{"aria-hidden":!0,...l},enabled:u||f})});e.s(["MenuCheckboxItemIndicator",0,j],71714);let A=t.createContext(void 0),D=t.forwardRef(function(e,n){let{render:o,className:r,style:i,...s}=e,[u,l]=t.useState(void 0),d=(0,a.useRenderElement)("div",e,{ref:n,props:{role:"group","aria-labelledby":u,...s}});return(0,T.jsx)(A.Provider,{value:l,children:d})});e.s(["MenuGroup",0,D],81194);var L=e.i(46376);let z=t.forwardRef(function(e,o){let{render:r,className:i,style:s,id:u,...l}=e,d=(0,w.useBaseUiId)(u),c=function(){let e=t.useContext(A);if(void 0===e)throw Error((0,n.default)(31));return e}();return(0,L.useIsoLayoutEffect)(()=>(c(d),()=>{c(e=>e===d?void 0:e)}),[c,d]),(0,a.useRenderElement)("div",e,{ref:o,props:{id:d,"aria-hidden":!0,...l}})});e.s(["MenuGroupLabel",0,z],1545);let F=t.forwardRef(function(e,t){let{render:n,className:o,id:i,label:u,nativeButton:l=!1,disabled:d=!1,closeOnClick:c=!0,style:p,...f}=e,g=(0,C.useCompositeListItem)({guess:!0,label:u}),m=r(!0),v=(0,w.useBaseUiId)(i),{store:h}=s(),x=h.useState("disabled"),b=d||x,y=h.useState("isActive",g.index),S=h.useState("itemProps"),{getItemProps:R,itemRef:I}=M({closeOnClick:c,disabled:b,highlighted:y,id:v,store:h,nativeButton:l,nodeId:m?.context.nodeId,itemMetadata:E});return(0,a.useRenderElement)("div",e,{state:{disabled:b,highlighted:y},props:[S,f,R],ref:[I,t,g.ref]})});e.s(["MenuItem",0,F],91384);let _=t.forwardRef(function(e,n){let{render:o,className:i,id:u,label:l,closeOnClick:d=!1,style:c,...p}=e,f=t.useRef(null),g=(0,C.useCompositeListItem)({guess:!0,label:l}),m=r(!0),v=m?.context.nodeId,h=(0,w.useBaseUiId)(u),{store:y}=s(),S=y.useState("isActive",g.index),M=y.useState("itemProps"),I=y.context.typingRef,{getButtonProps:k,buttonRef:T}=(0,x.useButton)({native:!1,composite:!0}),O=R({closeOnClick:d,highlighted:S,id:h,nodeId:v,store:y,typingRef:I,itemRef:f,itemMetadata:E});return(0,a.useRenderElement)("a",e,{state:{highlighted:S},props:[M,p,function(e){return(0,b.mergeProps)(O,e,k)}],ref:[f,T,n,g.ref]})});e.s(["MenuLinkItem",0,_],58307);var H=e.i(61487),U=e.i(31157),B=e.i(96533),G=e.i(73327),q=e.i(53984);let K=t.forwardRef(function(e,n){let{render:o,className:i,style:l,finalFocus:d,...c}=e,{store:f}=s(),{side:g,align:m}=r(),v=null!=(0,B.useToolbarRootContext)(!0),h=f.useState("open"),x=f.useState("transitionStatus"),b=f.useState("popupProps"),y=f.useState("mounted"),S=f.useState("instantType"),R=f.useState("activeTriggerElement"),E=f.useState("parent"),M=f.useState("lastOpenChangeReason"),C=f.useState("rootId"),w=f.useState("floatingRootContext"),I=f.useState("floatingTreeRoot"),O=f.useState("closeDelay"),P=f.useState("hoverEnabled"),j=f.useState("disabled"),A=f.useState("openMethod"),D="context-menu"===E.type;(0,N.useOpenChangeComplete)({open:h,ref:f.context.popupRef,onComplete(){h&&f.context.onOpenChangeComplete?.(!0)}}),t.useEffect(()=>{function e(e){f.setOpen(!1,(0,k.createChangeEventDetails)(e.reason,e.domEvent))}return I.events.on("close",e),()=>{I.events.off("close",e)}},[I.events,f]),(0,U.useHoverFloatingInteraction)(w,{enabled:P&&!j&&!D&&"menubar"!==E.type,closeDelay:O});let L=f.useStateSetter("popupElement"),z={transitionStatus:x,side:g,align:m,open:h,nested:"menu"===E.type,instant:S},F=(0,a.useRenderElement)("div",e,{state:z,ref:[n,f.context.popupRef,L],stateAttributesMapping:u.popupTransitionStateMapping,props:[b,{onKeyDown(e){v&&G.COMPOSITE_KEYS.has(e.key)&&e.stopPropagation()}},(0,q.getDisabledMountTransitionStyles)(x),c,{"data-rootownerid":C}]}),_=void 0===E.type||D;return(R||"menubar"===E.type&&M!==p.REASONS.outsidePress)&&(_=!0),(0,T.jsx)(H.FloatingFocusManager,{context:w,openInteractionType:A,modal:D,disabled:!y,returnFocus:void 0===d?_:d,initialFocus:"menu"!==E.type,restoreFocus:!0,externalTree:"menubar"!==E.type?I:void 0,previousFocusableElement:R,nextFocusableElement:void 0===E.type?f.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:void 0===E.type?f.context.beforeContentFocusGuardRef:void 0,children:F})});e.s(["MenuPopup",0,K],64270);var Y=e.i(26674);let V=t.createContext(void 0),$=t.forwardRef(function(e,t){let{keepMounted:n=!1,...o}=e,{store:r,parent:i}=s();if(!(r.useState("mounted")||n))return null;let a="menu"===i.type||"menubar"===i.type?"group":void 0;return(0,T.jsx)(V.Provider,{value:n,children:(0,T.jsx)(Y.FloatingPortal,{ref:t,...o,portalOwnerRole:a})})});e.s(["MenuPortal",0,$],19712);var Q=e.i(44394),W=e.i(39957),J=e.i(46420),X=e.i(23706),Z=e.i(53687),ee=e.i(426),et=e.i(38396),en=e.i(22640),eo=e.i(89579),er=e.i(33383);let ei=t.forwardRef(function(e,r){let{anchor:i,positionMethod:a="absolute",className:u,render:l,side:d,align:f,sideOffset:g=0,alignOffset:m=0,collisionBoundary:v="clipping-ancestors",collisionPadding:h=5,arrowPadding:x=5,sticky:b=!1,disableAnchorTracking:y=!1,collisionAvoidance:S=et.DROPDOWN_COLLISION_AVOIDANCE,style:R,...E}=e,{store:M}=s(),C=function(){let e=t.useContext(V);if(void 0===e)throw Error((0,n.default)(32));return e}(),w=c(!0),I=M.useState("parent"),O=M.useState("floatingRootContext"),P=M.useState("floatingTreeRoot"),N=M.useState("mounted"),j=M.useState("open"),A=M.useState("modal"),D=M.useState("openMethod"),z=M.useState("activeTriggerElement"),F=M.useState("transitionStatus"),_=M.useState("positionerElement"),H=M.useState("instantType"),U=M.useState("adaptiveOrigin"),B=M.useState("lastOpenChangeReason"),G=M.useState("floatingNodeId"),q=M.useState("floatingParentNodeId"),K=O.useState("domReferenceElement"),Y=t.useRef(null),$=(0,en.useAnimationsFinished)(_),ei=i,es=g,ea=m,eu=f,el=S;"context-menu"===I.type&&(ei=i??I.context?.anchor,eu=eu??"start",d||"center"===eu||(ea=e.alignOffset??2,es=e.sideOffset??-5));let ed=d,ec=eu;"menu"===I.type?(ed=ed??"inline-end",ec=ec??"start",el=e.collisionAvoidance??et.POPUP_COLLISION_AVOIDANCE):"menubar"===I.type&&(ed=ed??("vertical"===I.context.orientation?"inline-end":"bottom"),ec=ec??"start");let ep="context-menu"===I.type,ef=(0,X.useAnchorPositioning)({anchor:ei,floatingRootContext:O,positionMethod:w?"fixed":a,mounted:N,side:ed,sideOffset:es,align:ec,alignOffset:ea,arrowPadding:ep?0:x,collisionBoundary:v,collisionPadding:h,sticky:b,nodeId:G,keepMounted:C,disableAnchorTracking:y,collisionAvoidance:el,shift:ep?{crossAxis:!("side"in el&&"flip"===el.side),rootBoundary:"layoutViewport"}:void 0,externalTree:P,adaptiveOrigin:U});t.useEffect(()=>{function e(e){e.open&&(e.parentNodeId===G&&M.set("hoverEnabled",!1),e.nodeId!==G&&e.parentNodeId===M.select("floatingParentNodeId")&&M.setOpen(!1,(0,k.createChangeEventDetails)(p.REASONS.siblingOpen)))}return P.events.on("menuopenchange",e),()=>{P.events.off("menuopenchange",e)}},[M,P.events,G]),t.useEffect(()=>{if(null!=M.select("floatingParentNodeId"))return P.events.on("menuopenchange",e),()=>{P.events.off("menuopenchange",e)};function e(e){if(e.open||e.nodeId!==M.select("floatingParentNodeId"))return;let t=e.reason??p.REASONS.siblingOpen;M.setOpen(!1,(0,k.createChangeEventDetails)(t))}},[P.events,M]);let eg=(0,W.useTimeout)();t.useEffect(()=>{j||eg.clear()},[j,eg]),t.useEffect(()=>{function e(e){if(j&&e.nodeId===M.select("floatingParentNodeId"))if(e.target&&z&&z!==e.target){let e=M.select("closeDelay");e>0?eg.isStarted()||eg.start(e,()=>{M.setOpen(!1,(0,k.createChangeEventDetails)(p.REASONS.siblingOpen))}):M.setOpen(!1,(0,k.createChangeEventDetails)(p.REASONS.siblingOpen))}else eg.clear()}return P.events.on("itemhover",e),()=>{P.events.off("itemhover",e)}},[P.events,j,z,M,eg]),t.useEffect(()=>{let e={open:j,nodeId:G,parentNodeId:q,reason:M.select("lastOpenChangeReason")};P.events.emit("menuopenchange",e)},[P.events,j,M,G,q]),(0,L.useIsoLayoutEffect)(()=>{let e=Y.current;if(K&&(Y.current=K),e&&K&&K!==e){M.set("instantType",void 0);let e=new AbortController;return $(()=>{M.set("instantType","trigger-change")},e.signal),()=>{e.abort()}}},[K,$,M]);let em={open:j,side:ef.side,align:ef.align,anchorHidden:ef.anchorHidden,nested:"menu"===I.type,instant:H},ev="menubar"===I.type&&I.context.modal,eh=A&&B!==p.REASONS.triggerHover;(0,er.useAnchoredPopupScrollLock)(j&&(ev||eh),"touch"===D,_,z);let ex=(0,eo.usePositioner)(e,em,{styles:ef.positionerStyles,transitionStatus:F,props:E,refs:[r,M.useStateSetter("positionerElement")],hidden:!N,inert:!j}),eb=N&&"menu"!==I.type&&("menubar"!==I.type&&A&&B!==p.REASONS.triggerHover||"menubar"===I.type&&I.context.modal),ey=null;return"menubar"===I.type?ey=I.context.contentElement:void 0===I.type&&(ey=z),(0,T.jsxs)(o.Provider,{value:ef,children:[eb&&(0,T.jsx)(ee.InternalBackdrop,{ref:"context-menu"===I.type||"nested-context-menu"===I.type?I.context.internalBackdropRef:null,inert:(0,Q.inertValue)(!j),cutout:ey}),(0,T.jsx)(J.FloatingNode,{id:G,children:(0,T.jsx)(Z.CompositeList,{elementsRef:M.context.itemDomElements,labelsRef:M.context.itemLabels,children:ex})})]})});e.s(["MenuPositioner",0,ei],82264);var es=e.i(67865);let ea=t.createContext(void 0),eu=t.memo(t.forwardRef(function(e,n){let{render:o,className:r,value:i,defaultValue:s,onValueChange:u,disabled:l=!1,style:d,"aria-labelledby":c,...p}=e,[f,m]=t.useState(void 0),[v,h]=(0,g.useControlled)({controlled:i,default:s,name:"MenuRadioGroup"}),x=(0,es.useStableCallback)((e,t)=>{u?.(e,t),t.isCanceled||h(e)}),b=(0,a.useRenderElement)("div",e,{state:{disabled:l},ref:n,props:{role:"group","aria-labelledby":c??f,"aria-disabled":l||void 0,...p}}),y=t.useMemo(()=>({value:v,setValue:x,disabled:l}),[v,x,l]);return(0,T.jsx)(A.Provider,{value:m,children:(0,T.jsx)(ea.Provider,{value:y,children:b})})}));e.s(["MenuRadioGroup",0,eu],62050);let el=t.createContext(void 0),ed=t.forwardRef(function(e,o){let{render:i,className:u,id:l,label:d,nativeButton:c=!1,disabled:f=!1,closeOnClick:g=!1,value:v,style:h,...x}=e,b=(0,C.useCompositeListItem)({guess:!0,label:d}),y=r(!0),S=(0,w.useBaseUiId)(l),{store:R}=s(),O=R.useState("isActive",b.index),P=R.useState("itemProps"),{value:N,setValue:j,disabled:A}=function(){let e=t.useContext(ea);if(void 0===e)throw Error((0,n.default)(34));return e}(),D=R.useState("disabled"),L=f||A||D,z=N===v,{getItemProps:F,itemRef:_}=M({closeOnClick:g,disabled:L,highlighted:O,id:S,store:R,nativeButton:c,nodeId:y?.context.nodeId,itemMetadata:E}),H=t.useMemo(()=>({disabled:L,highlighted:O,checked:z}),[L,O,z]),U=(0,a.useRenderElement)("div",e,{state:H,stateAttributesMapping:I,props:[P,{role:"menuitemradio","aria-checked":z,onClick:function(e){j(v,(0,k.createChangeEventDetails)(p.REASONS.itemPress,e.nativeEvent,void 0,{preventUnmountOnClose:m.NOOP}))}},x,F],ref:[_,o,b.ref]});return(0,T.jsx)(el.Provider,{value:H,children:U})});e.s(["MenuRadioItem",0,ed],82593);let ec=t.forwardRef(function(e,o){let{render:r,className:i,style:s,keepMounted:u=!1,...l}=e,d=function(){let e=t.useContext(el);if(void 0===e)throw Error((0,n.default)(35));return e}(),c=t.useRef(null),{transitionStatus:p,mounted:f,setMounted:g}=(0,P.useTransitionStatus)(d.checked);(0,N.useOpenChangeComplete)({batch:!0,enabled:!d.checked,open:d.checked,ref:c,onComplete(){d.checked||g(!1)}});let m={checked:d.checked,disabled:d.disabled,highlighted:d.highlighted,transitionStatus:p};return(0,a.useRenderElement)("span",e,{state:m,stateAttributesMapping:I,ref:[o,c],props:{"aria-hidden":!0,...l},enabled:u||f})});e.s(["MenuRadioItemIndicator",0,ec],5953);var ep=e.i(83977),ef=e.i(88940),eg=e.i(96499),em=e.i(17989),ev=e.i(60891),eh=e.i(5049),ex=e.i(50527);let eb=t.createContext(null);function ey(e){let o=t.useContext(eb);if(null===o&&!e)throw Error((0,n.default)(5));return o}e.s(["useMenubarContext",0,ey],7447);var eS=e.i(72855),eR=e.i(32199),eE=e.i(26352),eM=e.i(79248),eC=e.i(18478),ew=e.i(16786),eI=e.i(90627);let ek={...ew.popupStoreSelectors,disabled:e=>"menubar"===e.parent.type&&e.parent.context.disabled||e.disabled,modal:e=>(void 0===e.parent.type||"context-menu"===e.parent.type)&&(e.modal??!0),openMethod:e=>e.openMethod,allowMouseEnter:e=>e.allowMouseEnter,highlightItemOnHover:e=>e.highlightItemOnHover,parent:e=>e.parent,rootId:e=>"menu"===e.parent.type?e.parent.store.select("rootId"):void 0!==e.parent.type?e.parent.context.rootId:e.rootId,activeIndex:e=>e.activeIndex,isActive:(e,t)=>e.activeIndex===t,hoverEnabled:e=>e.hoverEnabled,instantType:e=>e.instantType,lastOpenChangeReason:e=>e.openChangeReason,floatingTreeRoot:e=>"menu"===e.parent.type?e.parent.store.select("floatingTreeRoot"):e.floatingTreeRoot,floatingNodeId:e=>e.floatingNodeId,floatingParentNodeId:e=>e.floatingParentNodeId,itemProps:e=>e.itemProps,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin,keyboardEventRelay:e=>e.keyboardEventRelay?e.keyboardEventRelay:"menu"===e.parent.type?e.parent.store.select("keyboardEventRelay"):void 0};class eT extends eE.ReactStore{constructor(e,t,n=!1){const o=new eI.PopupTriggerMap;super(eP(o,t,n,e),eO(o),ek),this.unsubscribeParentListener=this.observe("parent",e=>{if(this.unsubscribeParentListener?.(),"menu"===e.type){let t=e.store.select("rootId"),n=e.store.select("floatingTreeRoot"),o=e.store.select("keyboardEventRelay");this.unsubscribeParentListener=e.store.subscribe(()=>{let r=e.store.select("rootId"),i=e.store.select("floatingTreeRoot"),s=e.store.select("keyboardEventRelay");(t!==r||n!==i||o!==s)&&(t=r,n=i,o=s,this.notifyAll())}),this.context.allowMouseUpTriggerRef=e.store.context.allowMouseUpTriggerRef;return}void 0!==e.type&&(this.context.allowMouseUpTriggerRef=e.context.allowMouseUpTriggerRef),this.unsubscribeParentListener=null})}setOpen(e,t){this.state.floatingRootContext.context.events.emit("setOpen",{open:e,eventDetails:t})}unsubscribeParentListener=null}function eO(e){return{positionerRef:t.createRef(),popupRef:t.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},allowMouseUpTriggerRef:{current:!1},triggerFocusTargetRef:t.createRef(),beforeContentFocusGuardRef:t.createRef(),onOpenChangeComplete:void 0,triggerElements:e}}function eP(e,t,n=!1,o){return{...(0,ew.createInitialPopupStoreState)(e,t,n),disabled:!1,modal:!0,openMethod:null,allowMouseEnter:!1,highlightItemOnHover:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new eM.FloatingTreeStore,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:m.EMPTY_OBJECT,keyboardEventRelay:void 0,closeDelay:0,adaptiveOrigin:void 0,...o}}e.s(["MenuStore",0,eT,"createNullMenuStore",0,function(){let e=new eI.PopupTriggerMap;return Object.assign(new eC.NullStore(Object.freeze(eP(e)),Object.freeze(eO(e)),ek),{setOpen:m.NOOP})}],36481);var eN=e.i(64111);let ej=t.createContext(void 0);function eA(){return t.useContext(ej)}e.s(["MenuSubmenuRootContext",0,ej,"useMenuSubmenuRootContext",0,eA],74671);let eD=(0,eg.fastComponent)(function(e){var n,o,r;let a,{children:u,open:l,onOpenChange:d,onOpenChangeComplete:f,defaultOpen:g=!1,disabled:v=!1,modal:h,loopFocus:x=!0,orientation:y="vertical",actionsRef:S,closeParentOnEsc:R=!1,handle:E,triggerId:M,defaultTriggerId:C=null,highlightItemOnHover:w=!0}=e,I=c(!0),O=s(!0),P=ey(!0),N=eA(),j=t.useMemo(()=>N&&O?{type:"menu",store:O.store}:P?{type:"menubar",context:P}:I&&!O?{type:"context-menu",context:I}:{type:void 0},[I,O,P,N]),A=(0,ep.useId)(),D=(0,ep.useId)(),z=(0,J.useFloatingParentNodeId)(),F="menu"===j.type?j.store:void 0,_=(l??g)&&F?.state.transitionStatus==="starting",H=(0,ef.useRefWithInit)(()=>_?F?.state.instantType:void 0).current,U=(n={open:g,openProp:l,activeTriggerId:C,triggerIdProp:M,parent:j,disabled:v,highlightItemOnHover:w,modal:void 0===j.type?h:void 0,rootId:A,instantType:H},o=D,r=null!=z,(0,ef.useRefWithInit)(()=>new eT(n,o,r)).current);U.useControlledProp("openProp",l),U.useControlledProp("triggerIdProp",M),U.useContextCallback("onOpenChangeComplete",f);let B=U.useState("floatingTreeRoot"),G=(0,J.useFloatingNodeId)(B),q=U.useState("open"),K=U.useState("activeTriggerElement"),Y=U.useState("positionerElement"),V=U.useState("hoverEnabled"),$=U.useState("disabled"),Q=U.useState("lastOpenChangeReason"),X=U.useState("parent"),Z=U.useState("activeIndex"),ee=U.useState("payload"),eo=U.useState("floatingParentNodeId"),er=t.useRef(null),ei=t.useRef("context-menu"!==X.type),ea=(0,W.useTimeout)(),eu=t.useRef(!0),el=(0,W.useTimeout)(),ed=null!=eo,{openMethod:ec,triggerProps:eg}=(0,eR.useOpenInteractionType)(q);U.useSyncedValues({disabled:v,highlightItemOnHover:w,modal:void 0===X.type?h:void 0,openMethod:ec,rootId:A}),(0,eN.useImplicitActiveTrigger)(U);let{forceUnmount:eb,transitionStatus:eE}=(0,eN.useOpenStateTransitions)(q,U,()=>{U.set("allowMouseEnter",!1)},_),eM=(0,en.useAnimationsFinished)(U.context.popupRef);t.useEffect(()=>{if(void 0===H)return;let e=()=>{U.state.instantType===H&&U.set("instantType",void 0)};if(!q)return void e();if(void 0!==eE)return;if(null==U.context.popupRef.current)return void e();let t=new AbortController;return eM(e,t.signal),()=>{t.abort()}},[H,q,eE,eM,U]),(0,L.useIsoLayoutEffect)(()=>{I&&!O?U.update({parent:{type:"context-menu",context:I},floatingNodeId:G,floatingParentNodeId:z}):O&&U.update({floatingNodeId:G,floatingParentNodeId:z})},[I,O,G,z,U]),t.useEffect(()=>{if(q||(er.current=null),"context-menu"===X.type){if(!q){ea.clear(),ei.current=!1;return}ea.start(500,()=>{ei.current=!0})}},[ea,q,X.type]),(0,L.useIsoLayoutEffect)(()=>{q||V||U.set("hoverEnabled",!0)},[q,V,U]);let eC=(0,es.useStableCallback)((e,t)=>{let n=t.reason;if(!e&&!U.select("open")||q===e&&t.trigger===K&&Q===n)return;let o=(0,eN.attachPreventUnmountOnClose)(t);if(e||null!=t.trigger||(t.trigger=K??void 0),d?.(e,t),t.isCanceled)return;U.state.floatingRootContext.dispatchOpenChange(e,t);let r=t.event;if(!1===e&&r?.type==="click"&&"touch"===r.pointerType&&!eu.current)return;e&&n===p.REASONS.triggerFocus?(eu.current=!1,el.start(300,()=>{eu.current=!0})):(eu.current=!0,el.clear());let i=(n===p.REASONS.triggerPress||n===p.REASONS.itemPress)&&0===r.detail,s=!e&&(n===p.REASONS.escapeKey||null==n);er.current=t.event;let a=(0,eN.createPopupOpenState)(U.state,e,t.trigger,o());a.openChangeReason=n,"menubar"===X.type&&(n===p.REASONS.triggerFocus||n===p.REASONS.focusOut||n===p.REASONS.triggerHover||n===p.REASONS.listNavigation||n===p.REASONS.siblingOpen)?a.instantType="group":i||s?a.instantType=i?"click":"dismiss":a.instantType=void 0,U.update(a)}),ew=(0,ex.useSyncedFloatingRootContext)({popupStore:U,floatingRootContext:U.state.floatingRootContext,floatingId:D,nested:null!=z,onOpenChange:eC}),eI=ew.context.events;(0,L.useIsoLayoutEffect)(()=>{let e=({open:e,eventDetails:t})=>eC(e,t);return eI.on("setOpen",e),()=>{eI?.off("setOpen",e)}},[eI,eC]);let ek=t.useCallback(()=>{U.setOpen(!1,(0,k.createChangeEventDetails)(p.REASONS.imperativeAction))},[U]);t.useImperativeHandle(S,()=>({unmount:eb,close:ek}),[eb,ek]),"context-menu"===X.type&&(a=X.context),t.useImperativeHandle(a?.positionerRef,()=>Y,[Y]),t.useImperativeHandle(a?.actionsRef,()=>({setOpen:eC}),[eC]);let eO=(0,em.useDismiss)(ew,{enabled:!$,bubbles:{escapeKey:R&&"menu"===X.type},outsidePress:()=>"context-menu"!==X.type||er.current?.type==="contextmenu"||ei.current,externalTree:ed?B:void 0}),eP=(0,eS.useDirection)(),ej=t.useCallback(e=>{U.select("activeIndex")!==e&&U.set("activeIndex",e)},[U]),eD=(0,ev.useListNavigation)(ew,{enabled:!$,listRef:U.context.itemDomElements,activeIndex:Z,nested:void 0!==X.type,loopFocus:x,orientation:y,parentOrientation:"menubar"===X.type?X.context.orientation:void 0,rtl:"rtl"===eP,disabledIndices:m.EMPTY_ARRAY,onNavigate:ej,openOnArrowKeyDown:"context-menu"!==X.type,externalTree:ed?B:void 0,focusItemOnHover:w}),eL=t.useCallback(e=>{U.context.typingRef.current=e},[U]),ez=(0,eh.useTypeahead)(ew,{enabled:!$,listRef:U.context.itemLabels,elementsRef:U.context.itemDomElements,activeIndex:Z,resetMs:et.TYPEAHEAD_RESET_MS,onMatch:e=>{q&&e!==Z&&U.set("activeIndex",e)},onTyping:eL}),eF=t.useMemo(()=>{let e=(0,b.mergeProps)(ez.reference,eD.reference,eO.reference,{onMouseMove(){U.set("allowMouseEnter",!0)}},eg);return e["aria-haspopup"]="menu",e["aria-expanded"]=q,e},[U,ez.reference,eD.reference,eO.reference,eg,q]),e_=t.useMemo(()=>{let e=(0,b.mergeProps)(eD.trigger,eO.trigger,eg);return e["aria-haspopup"]="menu",e["aria-expanded"]=!1,e},[eD.trigger,eO.trigger,eg]);(0,ef.useRefWithInit)(()=>(U.update({inactiveTriggerProps:e_}),null));let eH=t.useMemo(()=>(0,b.mergeProps)(eN.FOCUSABLE_POPUP_PROPS,{id:D,role:"menu","aria-orientation":"horizontal"===y?"horizontal":void 0,"aria-labelledby":K?.id,onMouseMove(){U.set("allowMouseEnter",!0),"menu"===X.type&&U.set("hoverEnabled",!1)},onClick(){U.select("hoverEnabled")&&U.set("hoverEnabled",!1)},onKeyDown(e){let t=U.select("keyboardEventRelay");t&&!e.isPropagationStopped()&&t(e)}},ez.floating,eD.floating,eO.floating),[K,D,y,X.type,U,ez.floating,eD.floating,eO.floating]),eU=eD.item??m.EMPTY_OBJECT;(0,eN.usePopupInteractionProps)(U,{floatingRootContext:ew,activeTriggerProps:eF,inactiveTriggerProps:e_,popupProps:eH,itemProps:eU});let eB=t.useMemo(()=>({store:U,parent:j}),[U,j]),eG=(0,T.jsxs)(i.Provider,{value:eB,children:[E&&(0,T.jsx)(eN.PopupHandleAttachment,{handle:E,store:U}),"function"==typeof u?u({payload:ee}):u]});return void 0===X.type||"context-menu"===X.type?(0,T.jsx)(J.FloatingTree,{externalTree:B,children:eG}):eG});e.s(["MenuRoot",0,eD],63947),e.s(["MenuSubmenuRoot",0,function(e){let n=s().store,o=t.useMemo(()=>({parentMenu:n}),[n]);return(0,T.jsx)(ej.Provider,{value:o,children:(0,T.jsx)(eD,{...e})})}],77450)},8619,e=>{"use strict";var t=e.i(56420);let n={name:"circle-user-round",size:24,node:[["path",{d:"M17.925 20.056a6 6 0 0 0-11.851.001",key:"z69sun"}],["circle",{cx:"12",cy:"11",r:"4",key:"1gt34v"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],aliases:["user-circle-2"]};n.node;let o=(0,t.default)(n);e.s(["CircleUserRound",0,o],8619)},83140,e=>{"use strict";var t=e.i(56420);let n={name:"code-xml",size:24,node:[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],aliases:["code-2"]};n.node;let o=(0,t.default)(n);e.s(["CodeXml",0,o],83140)},28276,91772,e=>{"use strict";var t=e.i(56420);let n={name:"compass",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}]]};n.node;let o=(0,t.default)(n);e.s(["Compass",0,o],28276);let r={name:"laptop-minimal",size:24,node:[["rect",{width:"18",height:"12",x:"3",y:"4",rx:"2",ry:"2",key:"1qhy41"}],["line",{x1:"2",x2:"22",y1:"20",y2:"20",key:"ni3hll"}]],aliases:["laptop-2"]};r.node;let i=(0,t.default)(r);e.s(["LaptopMinimal",0,i],91772)},67784,e=>{"use strict";var t=e.i(56420);let n={name:"log-out",size:24,node:[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]};n.node;let o=(0,t.default)(n);e.s(["LogOut",0,o],67784)},96699,e=>{"use strict";var t=e.i(56420);let n={name:"moon",size:24,node:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]};n.node;let o=(0,t.default)(n);e.s(["Moon",0,o],96699)},7921,e=>{"use strict";var t=e.i(56420);let n={name:"network",size:24,node:[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]};n.node;let o=(0,t.default)(n);e.s(["Network",0,o],7921)},66794,e=>{"use strict";var t=e.i(56420);let n={name:"settings",size:24,node:[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]};n.node;let o=(0,t.default)(n);e.s(["Settings",0,o],66794)},35965,95014,e=>{"use strict";var t=e.i(56420);let n={name:"sun",size:24,node:[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]};n.node;let o=(0,t.default)(n);e.s(["Sun",0,o],35965);var r=e.i(49635);e.s(["THEME_LABELS",0,{light:"Light",dark:"Dark",system:"System"},"applyTheme",0,function(e){let t=document.documentElement;t.dataset.theme=e;let n="dark"===e||"system"===e&&window.matchMedia("(prefers-color-scheme: dark)").matches;t.classList.toggle("dark",n)},"sessionSince",0,function(e,t){let n=new Date(e.since),o=n.toDateString()===t.toDateString()?(0,r.clockTime)(n):(0,r.shortDateTime)(n);return`Device \xb7 ${e.device}, since ${o}`}],95014)},57334,48990,e=>{"use strict";var t=e.i(43476);e.i(61027);var n=e.i(82370),o=e.i(89554),r=e.i(85996),i=e.i(71714),s=e.i(81194),a=e.i(1545),u=e.i(91384),l=e.i(58307),d=e.i(64270),c=e.i(19712),p=e.i(82264),f=e.i(62050),g=e.i(82593),m=e.i(5953),v=e.i(63947),h=e.i(77450),x=e.i(33332),b=e.i(71645),y=e.i(39957),S=e.i(8868),R=e.i(96499),E=e.i(67865),M=e.i(46376),C=e.i(56789),w=e.i(50316),I=e.i(85689),k=e.i(46420),T=e.i(13082),O=e.i(72135),P=e.i(79248),N=e.i(84446),j=e.i(78921),A=e.i(79938),D=e.i(52245),L=e.i(40886),z=e.i(64042),F=e.i(95530);function _(e){let{render:t,className:n,style:o,state:r=C.EMPTY_OBJECT,props:i=C.EMPTY_ARRAY,refs:s=C.EMPTY_ARRAY,metadata:a,stateAttributesMapping:u,tag:l="div",...d}=e,{compositeProps:c,compositeRef:p}=(0,F.useCompositeItem)({metadata:a});return(0,D.useRenderElement)(l,e,{state:r,ref:[p,...s],props:[c,...i,d],stateAttributesMapping:u})}e.s(["CompositeItem",0,_],48990);var H=e.i(38452),U=e.i(29315),B=e.i(59636),G=e.i(64111),q=e.i(46570),K=e.i(88015),Y=e.i(56434),V=e.i(7447),$=e.i(38396),Q=e.i(52535),W=e.i(76782);let J=(0,R.fastComponentRef)(function(e,n){let o,{render:r,className:i,style:s,disabled:a=!1,nativeButton:u=!0,id:l,openOnHover:d,delay:c=100,closeDelay:p=0,handle:f,payload:g,...m}=e,v=(0,j.useMenuRootContext)(!0),h=(0,B.usePopupHandleStore)(f)??v?.store;if(!h)throw Error((0,x.default)(85));let R=(0,K.useBaseUiId)(l),F=h.useState("isTriggerActive",R),J=h.useState("floatingRootContext"),X=h.useState("isOpenedByTrigger",R),Z=h.useState("triggerPopupId",R),ee=b.useRef(null),et=(o=(0,V.useMenubarContext)(!0),b.useMemo(()=>o?{type:"menubar",context:o}:{type:void 0},[o])),en=(0,H.useCompositeRootContext)(!0),eo=(0,k.useFloatingTree)(),er=b.useMemo(()=>eo??new P.FloatingTreeStore,[eo]),ei=(0,k.useFloatingNodeId)(er),es=(0,k.useFloatingParentNodeId)(),{registerTrigger:ea,isMountedByThisTrigger:eu}=(0,G.useTriggerDataForwarding)(R,ee,h,{payload:g,closeDelay:p,parent:et,floatingTreeRoot:er,floatingNodeId:ei,floatingParentNodeId:es,keyboardEventRelay:en?.relayKeyboardEvent}),el="menubar"===et.type,ed=h.useState("disabled"),ec=a||ed||el&&et.context.disabled,{getButtonProps:ep,buttonRef:ef}=(0,L.useButton)({disabled:ec,native:u});b.useEffect(()=>{X||void 0!==et.type||(h.context.allowMouseUpTriggerRef.current=!1)},[h,X,et.type]);let eg=b.useRef(null),em=(0,y.useTimeout)(),ev=(0,E.useStableCallback)(e=>{if(!eg.current)return;em.clear(),h.context.allowMouseUpTriggerRef.current=!1;let t=e.target;(0,N.contains)(eg.current,t)||(0,N.contains)(h.select("positionerElement"),t)||t===eg.current||null!=t&&function e(t){return(0,U.isHTMLElement)(t)&&t.hasAttribute("data-rootownerid")?t.getAttribute("data-rootownerid"):(0,U.isLastTraversableNode)(t)?void 0:e((0,U.getParentNode)(t))}(t)===h.select("rootId")||(0,z.isMouseWithinBounds)(e,eg.current)||er.events.emit("close",{domEvent:e,reason:Y.REASONS.cancelOpen})});b.useEffect(()=>{X&&h.select("lastOpenChangeReason")===Y.REASONS.triggerHover&&(0,S.ownerDocument)(eg.current).addEventListener("mouseup",ev,{once:!0})},[X,ev,h]);let eh=el&&et.context.hasSubmenuOpen,ex=d??eh,eb=(0,O.useHoverReferenceInteraction)(J,{enabled:ex&&!ec&&(!el||eh&&!eu),handleClose:(0,w.safePolygon)({blockPointerEvents:!el}),mouseOnly:!0,move:!1,restMs:void 0===et.type?c:void 0,delay:{close:p},triggerElementRef:ee,externalTree:er,isActiveTrigger:F,isClosing:()=>"ending"===h.select("transitionStatus")}),ey=function(e,t){let n=(0,y.useTimeout)(),[o,r]=b.useState(!1);return(0,M.useIsoLayoutEffect)(()=>{e&&t===Y.REASONS.triggerHover?(r(!0),n.start($.PATIENT_CLICK_THRESHOLD,()=>{r(!1)})):e||(n.clear(),r(!1))},[e,t,n]),o}(X,h.select("lastOpenChangeReason")),eS=(0,I.useClick)(J,{enabled:!ec,event:X&&el?"click":"mousedown",toggle:!0,ignoreMouse:!1,stickIfOpen:void 0===et.type&&ey}),eR=(0,T.useFocus)(J,{enabled:!ec&&eh}),eE=function(e){let{enabled:t=!0,mouseDownAction:n,open:o}=e,r=b.useRef(!1);return b.useMemo(()=>t?{onMouseDown:e=>{("open"===n&&!o||"close"===n&&o)&&(r.current=!0,(0,S.ownerDocument)(e.currentTarget).addEventListener("click",()=>{r.current=!1},{once:!0}))},onClick:e=>{r.current&&(r.current=!1,e.preventBaseUIHandler())}}:C.EMPTY_OBJECT,[t,n,o])}({open:X,enabled:el,mouseDownAction:"open"}),eM=b.useMemo(()=>(0,W.mergeProps)(eR.reference,eS.reference),[eR.reference,eS.reference]),eC=h.useState("triggerProps",eu),{preFocusGuardRef:ew,handlePreFocusGuardFocus:eI,handleFocusTargetFocus:ek}=(0,q.useTriggerFocusGuards)(h,ee),eT={disabled:ec,open:X},eO=[eg,n,ef,ea,ee],eP=[eM,eb??C.EMPTY_OBJECT,eC,{"aria-haspopup":"menu","aria-controls":Z,id:R,onMouseDown:e=>{h.select("open")||(em.start(200,()=>{h.context.allowMouseUpTriggerRef.current=!0}),(0,S.ownerDocument)(e.currentTarget).addEventListener("mouseup",ev,{once:!0}))}},el?{role:"menuitem"}:{},eE,m,ep],eN=(0,D.useRenderElement)("button",e,{enabled:!el,stateAttributesMapping:A.pressableTriggerOpenStateMapping,state:eT,ref:eO,props:eP});return el?(0,t.jsx)(_,{tag:"button",render:r,className:i,style:s,state:eT,refs:eO,props:eP,stateAttributesMapping:A.pressableTriggerOpenStateMapping}):X?(0,t.jsxs)(b.Fragment,{children:[(0,t.jsx)(Q.FocusGuard,{ref:ew,onFocus:eI},`${R}-pre-focus-guard`),(0,t.jsx)(b.Fragment,{children:eN},R),(0,t.jsx)(Q.FocusGuard,{ref:h.context.triggerFocusTargetRef,onFocus:ek},`${R}-post-focus-guard`)]}):(0,t.jsx)(b.Fragment,{children:eN},R)});var X=e.i(3414),Z=e.i(18390);let ee=b.forwardRef(function(e,t){let{render:n,className:o,style:r,children:i,...s}=e,{store:a}=(0,j.useMenuRootContext)(),{side:u}=(0,X.useMenuPositionerContext)(),l=a.useState("instantType"),{children:d,state:c}=(0,Z.usePopupViewport)({store:a,side:u,children:i}),p={activationDirection:c.activationDirection,transitioning:c.transitioning,instant:l};return(0,D.useRenderElement)("div",e,{state:p,ref:t,props:[s,{children:d}],stateAttributesMapping:Z.popupViewportStateMapping})}),et=b.forwardRef(function(e,t){let{className:n,render:o,orientation:r="horizontal",style:i,...s}=e;return(0,D.useRenderElement)("div",e,{state:{orientation:r},ref:t,props:[{role:"separator","aria-orientation":r},s]})});var en=e.i(28744),eo=e.i(73553),er=e.i(66506),ei=e.i(74671);let es={"aria-expanded":void 0},ea=b.forwardRef(function(e,t){let{render:n,className:o,style:r,label:i,id:s,nativeButton:a=!1,openOnHover:u=!0,delay:l=100,closeDelay:d=0,disabled:c=!1,...p}=e,f=(0,ei.useMenuSubmenuRootContext)();if(!f?.parentMenu)throw Error((0,x.default)(37));let g=(0,eo.useCompositeListItem)({guess:!0,label:i}),m=(0,X.useMenuPositionerContext)(),{store:v}=(0,j.useMenuRootContext)(),h=(0,K.useBaseUiId)(s),y=v.useState("open"),S=v.useState("floatingRootContext"),R=v.useState("floatingTreeRoot"),k=v.useState("triggerPopupId",h),T=(0,G.useTriggerRegistration)(h,v),P=(0,E.useStableCallback)(e=>{T(e),null!==e&&v.select("open")&&null==v.select("activeTriggerId")&&v.update({activeTriggerId:h??null,activeTriggerElement:e,closeDelay:d})}),N=b.useRef(null),L=b.useCallback(e=>{N.current=e,v.set("activeTriggerElement",e)},[v]);(0,M.useIsoLayoutEffect)(()=>(P(N.current),()=>P(null)),[P,h,v]),v.useSyncedValue("closeDelay",d);let z=f.parentMenu,F=v.useState("disabled"),_=z.useState("disabled"),H=c||F||_,U=z.useState("itemProps"),B=z.useState("isActive",g.index),q=b.useMemo(()=>({type:"submenu-trigger",setActive(){z.select("highlightItemOnHover")&&z.set("activeIndex",g.index)}}),[z,g.index]),{getItemProps:V,itemRef:$}=(0,er.useMenuItem)({closeOnClick:!1,disabled:H,highlighted:B,id:h,store:v,typingRef:z.context.typingRef,nativeButton:a,itemMetadata:q,nodeId:m?.context.nodeId}),Q=v.useState("hoverEnabled"),W=(0,O.useHoverReferenceInteraction)(S,{enabled:Q&&u&&!H,handleClose:(0,w.safePolygon)({blockPointerEvents:!0}),mouseOnly:!0,move:!0,restMs:l,delay:{open:l,close:d},shouldOpen:l>0?()=>z.select("allowMouseEnter"):void 0,triggerElementRef:N,externalTree:R,isClosing:()=>"ending"===v.select("transitionStatus"),guardStaleOpen:!0}),J=(0,I.useClick)(S,{enabled:!H,event:"mousedown",toggle:!u,ignoreMouse:u,stickIfOpen:!1}).reference??C.EMPTY_OBJECT,Z=v.useState("triggerProps",!0);delete Z.id;let ee=v.useState("openMethod"),et=v.useState("lastOpenChangeReason")===Y.REASONS.listNavigation||"keyboard"===ee,ea=y&&et&&en.platform.screenReader.voiceOver;return(0,D.useRenderElement)("div",e,{state:{disabled:H,highlighted:B,open:y},stateAttributesMapping:A.triggerOpenStateMapping,props:[J,W,Z,U,ea?es:void 0,{"aria-controls":k,tabIndex:y||B?0:-1,onBlur(){B&&z.set("activeIndex",null)}},p,V],ref:[t,g.ref,$,P,L]})});var eu=e.i(36481),el=e.i(64170);class ed extends el.BasePopupHandle{constructor(){super((0,eu.createNullMenuStore)(),"Menu")}open(e){this.openByTrigger(e)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}}e.s(["Arrow",()=>n.MenuArrow,"Backdrop",()=>o.MenuBackdrop,"CheckboxItem",()=>r.MenuCheckboxItem,"CheckboxItemIndicator",()=>i.MenuCheckboxItemIndicator,"Group",()=>s.MenuGroup,"GroupLabel",()=>a.MenuGroupLabel,"Handle",0,ed,"Item",()=>u.MenuItem,"LinkItem",()=>l.MenuLinkItem,"Popup",()=>d.MenuPopup,"Portal",()=>c.MenuPortal,"Positioner",()=>p.MenuPositioner,"RadioGroup",()=>f.MenuRadioGroup,"RadioItem",()=>g.MenuRadioItem,"RadioItemIndicator",()=>m.MenuRadioItemIndicator,"Root",()=>v.MenuRoot,"Separator",0,et,"SubmenuRoot",()=>h.MenuSubmenuRoot,"SubmenuTrigger",0,ea,"Trigger",0,J,"Viewport",0,ee,"createHandle",0,function(){return new ed}],60948);var ec=e.i(60948),ec=ec,ep=e.i(89664),ef=e.i(90063);e.s(["DropdownMenu",0,function(e){return(0,t.jsx)(ec.Root,{"data-slot":"dropdown-menu",...e})},"DropdownMenuContent",0,function({align:e="end",side:n="bottom",sideOffset:o=4,className:r,...i}){return(0,t.jsx)(ec.Portal,{children:(0,t.jsx)(ec.Positioner,{className:"isolate z-50 outline-none",align:e,side:n,sideOffset:o,children:(0,t.jsx)(ec.Popup,{"data-slot":"dropdown-menu-content",className:(0,ef.classNames)("max-h-(--available-height) min-w-48 origin-(--transform-origin) overflow-y-auto rounded-xl border border-border bg-popover p-1 text-popover-foreground shadow-lg duration-(--duration-fast) outline-none data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",r),...i})})})},"DropdownMenuGroup",0,function(e){return(0,t.jsx)(ec.Group,{"data-slot":"dropdown-menu-group",...e})},"DropdownMenuItem",0,function({className:e,variant:n="default",...o}){return(0,t.jsx)(ec.Item,{"data-slot":"dropdown-menu-item","data-variant":n,className:(0,ef.classNames)("relative flex h-8.5 items-center gap-2.5 rounded-sm px-2.5 text-body text-foreground outline-none select-none data-highlighted:bg-accent focus-visible:outline-2 focus-visible:outline-ring data-disabled:pointer-events-none data-disabled:opacity-45 data-[variant=destructive]:text-destructive-text [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-(--size-icon) [&_svg]:text-muted-foreground data-[variant=destructive]:[&_svg]:text-destructive-text",e),...o})},"DropdownMenuLabel",0,function({className:e,...n}){return(0,t.jsx)(ec.GroupLabel,{"data-slot":"dropdown-menu-label",className:(0,ef.classNames)("px-2.5 pt-1.5 pb-1 text-caption text-muted-foreground",e),...n})},"DropdownMenuRadioGroup",0,function(e){return(0,t.jsx)(ec.RadioGroup,{"data-slot":"dropdown-menu-radio-group",...e})},"DropdownMenuRadioItem",0,function({className:e,children:n,...o}){return(0,t.jsxs)(ec.RadioItem,{"data-slot":"dropdown-menu-radio-item",className:(0,ef.classNames)("relative flex h-8.5 items-center gap-2.5 rounded-sm px-2.5 text-body text-foreground outline-none select-none data-highlighted:bg-accent focus-visible:outline-2 focus-visible:outline-ring data-disabled:pointer-events-none data-disabled:opacity-45 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-(--size-icon) [&_svg]:text-muted-foreground",e),...o,children:[n,(0,t.jsx)(ec.RadioItemIndicator,{className:"ml-auto flex",children:(0,t.jsx)(ep.Check,{"aria-hidden":!0,className:"text-foreground"})})]})},"DropdownMenuSeparator",0,function({className:e,...n}){return(0,t.jsx)(ec.Separator,{"data-slot":"dropdown-menu-separator",className:(0,ef.classNames)("-mx-1 my-1 h-px bg-border",e),...n})},"DropdownMenuTrigger",0,function(e){return(0,t.jsx)(ec.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}],57334)},57957,87964,42454,e=>{"use strict";var t=e.i(43476),n=e.i(63707),o=e.i(8619),r=e.i(83140),i=e.i(28276),s=e.i(91772),a=e.i(11568),u=e.i(67784),l=e.i(46513),d=e.i(96699),c=e.i(7921),p=e.i(66794),f=e.i(35965),g=e.i(22016),m=e.i(71645),v=e.i(90063),h=e.i(31513),x=e.i(95014),b=e.i(94859),y=e.i(15905),S=e.i(57334),R=e.i(75305),E=e.i(60592);let M="Your account",C="Take the tour",w={light:f.Sun,dark:d.Moon,system:l.Monitor};function I(e){return e?.kind==="viewer"?{name:"viewer",detail:"Read-only"}:{name:"Operator",detail:e?.email??" "}}function k(e){return e?.kind!=="viewer"}function T(e,t){return t.find(t=>t===e)}function O({account:e,now:n}){let{name:o,detail:r}=I(e);return(0,t.jsxs)("div",{className:"flex flex-col gap-2 px-2.5 pt-2 pb-2.5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)(b.Avatar,{kind:"account",size:28,name:o}),(0,t.jsxs)("span",{className:"flex min-w-0 flex-col",children:[(0,t.jsx)("span",{className:"truncate text-body font-medium text-foreground",children:o}),(0,t.jsx)("span",{"data-testid":"account-detail",className:"truncate text-caption text-muted-foreground",children:e?.kind==="viewer"?"Sees the whole fleet, changes nothing":r})]})]}),(0,t.jsxs)("p",{"data-testid":"account-session",className:"flex items-start gap-1.5 text-caption text-muted-foreground",children:[(0,t.jsx)(s.LaptopMinimal,{"aria-hidden":!0,className:"mt-px size-(--size-icon-sm) shrink-0"}),e?(0,t.jsxs)("span",{children:["This session: ",(0,t.jsx)("span",{className:"font-medium text-foreground",children:(0,x.sessionSince)(e.session,n)})]}):(0,t.jsx)("span",{children:"This session"})]})]})}function P({isSigningOut:e}){return e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.LoaderCircle,{"aria-hidden":!0,className:"animate-spin motion-reduce:animate-none"}),"Signing out"]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.LogOut,{"aria-hidden":!0}),"Sign out"]})}e.s(["AccountMenu",0,function({account:e,themes:r,onThemeChange:s,onSignOut:a,isSigningOut:u,now:l,accountUrl:d,onTakeTour:c}){let{name:p,detail:f}=I(e),g=e?.kind==="operator"?e.theme:void 0;return(0,t.jsxs)(S.DropdownMenu,{children:[(0,t.jsxs)(S.DropdownMenuTrigger,{"data-testid":"account-menu","aria-label":`Account menu, ${p}${e?`, ${f}`:""}`,className:"flex w-full items-center gap-2.5 rounded-md p-1.5 text-left transition-colors duration-(--duration-fast) outline-none hover:bg-accent focus-visible:outline-2 focus-visible:outline-ring aria-expanded:bg-accent max-lg:justify-center",children:[(0,t.jsx)(b.Avatar,{kind:"account",size:28,name:p}),(0,t.jsxs)("span",{className:"flex min-w-0 grow flex-col max-lg:sr-only",children:[(0,t.jsx)("span",{className:"truncate text-body font-medium text-foreground",children:p}),(0,t.jsx)("span",{className:"truncate text-caption text-muted-foreground",children:f})]}),(0,t.jsx)(n.ChevronsUpDown,{"aria-hidden":!0,className:"size-(--size-icon) shrink-0 text-muted-foreground max-lg:hidden"})]}),(0,t.jsxs)(S.DropdownMenuContent,{side:"top",align:"start",className:"w-64",children:[(0,t.jsx)(O,{account:e,now:l}),void 0===d||e?.kind==="viewer"?null:(0,t.jsxs)(S.DropdownMenuItem,{"data-testid":"account-hosted",render:e=>(0,t.jsx)("a",{...e,href:d,children:e.children}),children:[(0,t.jsx)(o.CircleUserRound,{"aria-hidden":!0}),M]}),void 0===c?null:(0,t.jsxs)(S.DropdownMenuItem,{"data-testid":"account-take-tour",onClick:c,children:[(0,t.jsx)(i.Compass,{"aria-hidden":!0}),C]}),k(e)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(S.DropdownMenuSeparator,{}),(0,t.jsxs)(S.DropdownMenuGroup,{children:[(0,t.jsx)(S.DropdownMenuLabel,{children:"Theme"}),(0,t.jsx)(S.DropdownMenuRadioGroup,{value:g??null,onValueChange:e=>{let t=T(e,r);void 0!==t&&s(t)},children:r.map(n=>{let o=w[n];return(0,t.jsxs)(S.DropdownMenuRadioItem,{value:n,disabled:void 0===e,closeOnClick:!1,"data-testid":`account-theme-${n}`,children:[(0,t.jsx)(o,{"aria-hidden":!0}),x.THEME_LABELS[n]]},n)})})]})]}),(0,t.jsx)(S.DropdownMenuSeparator,{}),(0,t.jsx)(S.DropdownMenuItem,{"data-testid":"account-sign-out",disabled:u,closeOnClick:!1,onClick:a,children:(0,t.jsx)(P,{isSigningOut:u})})]})]})},"AccountMenuSheet",0,function({account:e,themes:n,onThemeChange:s,onSignOut:a,isSigningOut:u,now:l,accountUrl:d,onTakeTour:f,settingsHref:S,networkHref:N}){let[j,A]=(0,m.useState)(!1),{name:D,detail:L}=I(e),z=e?.kind==="operator"?e.theme:void 0;return(0,t.jsxs)(R.Sheet,{open:j,onOpenChange:A,children:[(0,t.jsx)(R.SheetTrigger,{"data-testid":"account-menu","aria-label":`Account menu, ${D}${e?`, ${L}`:""}`,className:"inline-flex size-(--size-control-touch) shrink-0 items-center justify-center rounded-full outline-none focus-visible:outline-2 focus-visible:outline-ring",children:(0,t.jsx)(b.Avatar,{kind:"account",size:28,name:D})}),(0,t.jsxs)(R.SheetContent,{side:"bottom","data-testid":"account-sheet",className:"gap-3",children:[(0,t.jsx)(R.SheetTitle,{className:"sr-only",children:"Account"}),(0,t.jsx)(O,{account:e,now:l}),void 0===d||e?.kind==="viewer"?null:(0,t.jsxs)("a",{href:d,"data-testid":"account-hosted",className:"flex h-(--size-control-touch) items-center gap-2.5 border-t border-border pt-3 text-body-touch text-foreground outline-none focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon) [&_svg]:text-muted-foreground",children:[(0,t.jsx)(o.CircleUserRound,{"aria-hidden":!0}),M]}),void 0===f?null:(0,t.jsxs)("button",{type:"button","data-testid":"account-take-tour",onClick:()=>{A(!1),f()},className:"flex h-(--size-control-touch) items-center gap-2.5 border-t border-border pt-3 text-body-touch text-foreground outline-none focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon) [&_svg]:text-muted-foreground",children:[(0,t.jsx)(i.Compass,{"aria-hidden":!0}),C]}),void 0===N?null:(0,t.jsxs)(g.default,{href:N,"data-testid":"account-network",onClick:()=>{A(!1)},className:"flex h-(--size-control-touch) items-center gap-2.5 border-t border-border pt-3 text-body-touch text-foreground outline-none focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon) [&_svg]:text-muted-foreground",children:[(0,t.jsx)(c.Network,{"aria-hidden":!0}),"Network"]}),void 0===S?null:(0,t.jsxs)(g.default,{href:S,"data-testid":"account-settings",onClick:()=>{A(!1)},className:"flex h-(--size-control-touch) items-center gap-2.5 border-t border-border pt-3 text-body-touch text-foreground outline-none focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon) [&_svg]:text-muted-foreground",children:[(0,t.jsx)(p.Settings,{"aria-hidden":!0}),"Settings"]}),k(e)&&(0,t.jsxs)("div",{className:"flex flex-col gap-1.5 border-t border-border pt-3",children:[(0,t.jsx)("p",{className:"text-caption text-muted-foreground",children:"Theme"}),(0,t.jsx)(E.Tabs,{value:z??null,onValueChange:e=>{let t=T(e,n);void 0!==t&&s(t)},children:(0,t.jsx)(E.TabsList,{"aria-label":"Theme",className:"w-full",children:n.map(n=>{let o=w[n];return(0,t.jsxs)(E.TabsTrigger,{value:n,disabled:void 0===e,"data-testid":`account-theme-${n}`,className:"grow",children:[(0,t.jsx)(o,{"aria-hidden":!0}),x.THEME_LABELS[n]]},n)})})})]}),(0,t.jsxs)("a",{href:h.SOURCE_URL,target:"_blank",rel:"noreferrer","data-testid":"account-source",className:"flex h-(--size-control-touch) items-center gap-2.5 border-t border-border pt-3 text-body-touch text-foreground outline-none focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon) [&_svg]:text-muted-foreground",children:[(0,t.jsx)(r.CodeXml,{"aria-hidden":!0}),"Source on GitHub",(0,t.jsx)("span",{className:"sr-only",children:" (opens in a new tab)"})]}),(0,t.jsx)("button",{type:"button","data-testid":"account-sign-out",disabled:u,onClick:a,className:(0,v.classNames)("flex h-(--size-control-touch) items-center gap-2.5 border-t border-border pt-3 text-body-touch text-foreground outline-none focus-visible:outline-2 focus-visible:outline-ring disabled:opacity-60 [&_svg]:size-(--size-icon) [&_svg]:text-muted-foreground"),children:(0,t.jsx)(P,{isSigningOut:u})}),(0,t.jsx)(R.SheetClose,{render:(0,t.jsx)(y.Button,{size:"touch",className:"w-full"}),children:"Cancel"})]})]})}],57957);let N=(0,m.createContext)(void 0);e.s(["ConsoleFrameContext",0,N,"destinationOf",0,function(e){let[,t=""]=e.split("/");switch(t){case"needs-crew":case"squadrons":case"trierarchs":case"questions":case"inbox":case"network":case"settings":return t;case"needs-attention":return"attention";default:return"overview"}},"useConsoleFrame",0,function(){let e=(0,m.useContext)(N);if(void 0===e)throw Error("useConsoleFrame runs inside the signed-in route layout, which provides it");return e}],87964);var j=e.i(54616),A=e.i(12598),D=e.i(76580),L=e.i(94070),z=e.i(2660),F=e.i(95187);let _=(0,F.createServerReference)("401c83c0f37790740d87f4de782abfb8b3e5218c3b",F.callServer,void 0,F.findSourceMapURL,"answerQuestion");var H=e.i(27702);let U=["questions"];function B(e,t){switch(t){case"open":return e.filter(e=>null===e.question.answer&&null===e.stale);case"answered":return e.filter(e=>null!==e.question.answer);case"stale":return e.filter(e=>null!==e.stale);case"all":return[...e]}}function G(){return(0,D.useConsoleRead)({queryKey:U,queryFn:()=>(0,L.fetchConsoleRead)({read:"questions"})})}function q(e){return new Set(e.flatMap(({deliveryId:e,stale:t})=>t?.kind==="withdrawn"?[e,t.deliveryId]:[e]))}e.s(["QUESTIONS_KEY",0,U,"questionDeliveryIdsOf",0,q,"questionFilterCounts",0,function(e){return{open:B(e,"open").length,answered:B(e,"answered").length,stale:B(e,"stale").length,all:e.length}},"questionsFor",0,B,"questionsPathOf",0,function(e){let t=new URLSearchParams;"open"!==e.filter&&t.set("filter",e.filter),void 0!==e.deliveryId&&t.set("question",e.deliveryId);let n=t.toString();return""===n?"/questions":`/questions?${n}`},"readQuestionFilter",0,function(e){return"answered"===e||"stale"===e||"all"===e?e:"open"},"useAnswer",0,function(){let e=(0,H.useTRPC)(),t=(0,A.useQueryClient)();return(0,j.useMutation)({mutationFn:async e=>(0,z.dataOf)(await _(e)),onSuccess:async()=>{await Promise.all([t.invalidateQueries({queryKey:U}),t.invalidateQueries({queryKey:e.fleet.pathKey()})])}})},"useOpenQuestionCount",0,function(){let e=G().data;return void 0===e?void 0:B(e,"open").length},"useQuestionDeliveryIds",0,function(){let e=G().data;return void 0===e?void 0:q(e)},"useQuestions",0,G],42454)}]);
|
package/.next/standalone/packages/console/.next/static/chunks/{272z35i6ulqd6.js → 0rr9rjc_bc3gf.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,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)},36518,e=>{"use strict";var t=e.i(56420);let s={name:"cloud-off",size:24,node:[["path",{d:"M10.94 5.274A7 7 0 0 1 15.71 10h1.79a4.5 4.5 0 0 1 4.222 6.057",key:"1uxyv8"}],["path",{d:"M18.796 18.81A4.5 4.5 0 0 1 17.5 19H9A7 7 0 0 1 5.79 5.78",key:"99tcn7"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]};s.node;let a=(0,t.default)(s);e.s(["CloudOff",0,a],36518)},25398,e=>{"use strict";var t=e.i(56420);let s={name:"rotate-cw",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]};s.node;let a=(0,t.default)(s);e.s(["RotateCw",0,a],25398)},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)},30274,e=>{"use strict";var t=e.i(56420);let s={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"}]]};s.node;let a=(0,t.default)(s);e.s(["Send",0,a],30274)},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)},46964,e=>{"use strict";var t=e.i(43476),s=e.i(18566),a=e.i(71645),r=e.i(41880),n=e.i(89664),i=e.i(24071),l=e.i(85595),o=e.i(44594),d=e.i(30274),c=e.i(90063),m=e.i(69693),u=e.i(49635),x=e.i(74470),h=e.i(15905),f=e.i(91727),g=e.i(60592),b=e.i(43988),p=e.i(67874),v=e.i(17981),j=e.i(88393),y=e.i(31071),N=e.i(39448);let w=[{value:"open",label:"Open"},{value:"done",label:"Done"},{value:"all",label:"All"}];function k(e){return"acknowledged"===e.state}function S({filter:e,onFilterChange:s,counts:a}){return(0,t.jsx)(g.Tabs,{value:e,onValueChange:e=>{let t=w.find(t=>t.value===e);t&&s(t.value)},children:(0,t.jsx)(g.TabsList,{"aria-label":"Show",className:"max-sm:w-full",children:w.map(({value:e,label:s})=>(0,t.jsxs)(g.TabsTrigger,{value:e,"data-testid":`inbox-filter-${e}`,className:"max-sm:grow",children:[s,void 0===a[e]?null:(0,t.jsx)(g.TabsCount,{children:a[e]})]},e))})})}function C({message:e}){let{payload:s,contentType:a}=e.message;return(0,t.jsx)("span",{className:(0,c.classNames)("block min-w-0 truncate text-muted-foreground",(0,m.isJson)(a)?"font-mono text-id":"text-meta max-sm:text-body"),children:s.split("\n")[0]})}function z({messages:e,selectedId:s,onSelect:a,now:r}){return(0,t.jsx)("ul",{"aria-label":"Messages to argo",className:"flex flex-col max-sm:gap-2",children:e.map(e=>{let n=new Date(e.message.sentAt),i=null===e.readAt&&!k(e),o=e.deliveryId===s;return(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button","data-testid":"inbox-row","data-delivery-id":e.deliveryId,"aria-current":o?"true":void 0,onClick:()=>{a(e.deliveryId)},className:"relative flex w-full min-w-0 flex-col gap-1 border-b border-border py-2.5 pr-3 pl-5 text-left transition-colors duration-(--duration-fast) outline-none hover:bg-accent focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-ring aria-[current=true]:bg-accent max-sm:rounded-lg max-sm:border max-sm:bg-card max-sm:py-3",children:[i?(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute top-4 left-2 size-1.5 rounded-full bg-primary max-sm:top-4.5"}):null,(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:[k(e)?(0,t.jsx)(l.CircleCheck,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0 text-muted-foreground"}):null,(0,t.jsx)(N.ShipName,{name:e.message.sender.name,shipId:e.message.sender.id,isSuffixShown:!0,className:(0,c.classNames)("min-w-0",i?"font-semibold":void 0,k(e)?"text-muted-foreground":void 0)}),(0,t.jsx)("time",{dateTime:e.message.sentAt,title:(0,u.fullDateTime)(n),className:"ml-auto shrink-0 text-meta text-muted-foreground tabular-nums",children:r.getTime()-n.getTime()<864e5?(0,u.clockTime)(n):(0,u.shortDateTime)(n)})]}),(0,t.jsx)(C,{message:e}),i?(0,t.jsx)("span",{className:"sr-only",children:"Unread"}):null]})},e.deliveryId)})})}function I({message:e}){if(null===e.doneAt)return null;let s=new Date(e.doneAt);return(0,t.jsxs)("p",{"data-testid":"inbox-done-notice",className:"flex items-center gap-2 rounded-md border border-tone-ok-border bg-tone-ok-bg px-3 py-2 text-meta text-tone-ok-fg [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",children:[(0,t.jsx)(l.CircleCheck,{"aria-hidden":!0}),"Done. Acknowledged at"," ",(0,t.jsx)("time",{dateTime:e.doneAt,title:(0,u.fullDateTime)(s),children:(0,u.clockTime)(s)}),null===e.repliedWith?".":", when you replied."]})}function R({message:e}){let{payload:s,contentType:a}=e.message,r=(0,m.formattedPayload)(s,a);return(0,t.jsx)("pre",{className:(0,c.classNames)("max-h-96 overflow-auto rounded-md border border-border bg-card px-3.5 py-3 whitespace-pre-wrap text-foreground [overflow-wrap:anywhere]",(0,m.isJson)(a)?"font-mono text-code":"font-sans text-body max-sm:text-body-touch"),children:r??s})}function T({message:e,onReply:s,isPending:r,isPhone:n}){let i=(0,a.useId)(),l=(0,a.useId)(),[o,c]=(0,a.useState)(""),m=(0,x.useShortcutPlatform)(),u=e.message.sender.name;return(0,t.jsxs)("form",{className:"flex flex-col gap-1.5 border-t border-border pt-3",onSubmit:t=>{t.preventDefault(),""===o.trim()||r||s({deliveryId:e.deliveryId,payload:o})},children:[(0,t.jsxs)(f.Label,{htmlFor:i,children:["Reply to ",u]}),(0,t.jsx)(b.Textarea,{id:i,rows:3,size:n?"touch":"md",placeholder:"Write a reply",value:o,onChange:e=>{c(e.target.value)},onKeyDown:x.submitOnSendShortcut,"aria-describedby":l,"data-testid":"inbox-reply"}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsx)("p",{id:l,className:"text-meta text-muted-foreground",children:k(e)?"Sent as a new message.":"Sending also marks this one done."}),(0,t.jsxs)(h.Button,{type:"submit",variant:"primary",size:n?"touch":"sm",icon:(0,t.jsx)(d.Send,{"aria-hidden":!0}),isLoading:r,disabled:""===o.trim()&&!r,"aria-keyshortcuts":null===m?void 0:(0,x.sendShortcutAria)(m),"data-testid":"inbox-reply-send",children:["Send reply",null===m?null:(0,t.jsx)(y.SendShortcutHint,{platform:m})]})]})]})}function A({message:e,onMarkDone:s,onMarkUnread:a,onReply:r,pendingIds:i,isPhone:l,isReadOnly:o=!1}){let d=i.has(e.deliveryId),m=new Date(e.message.sentAt),x=e.message.sender;return(0,t.jsxs)("article",{"aria-label":`Message from ${x.name}`,"data-testid":"inbox-message",className:(0,c.classNames)("flex min-h-0 flex-col gap-3",l?"grow":"h-full"),children:[(0,t.jsxs)("header",{className:"flex flex-wrap items-start justify-between gap-2",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-0.5",children:[(0,t.jsx)("h2",{className:"min-w-0 text-heading font-semibold",children:(0,t.jsx)(N.ShipName,{name:x.name,shipId:x.id,isSuffixShown:!0})}),(0,t.jsxs)("p",{className:"text-meta text-muted-foreground",children:["To argo ·"," ",(0,t.jsx)("time",{dateTime:e.message.sentAt,title:(0,u.fullDateTime)(m),children:(0,u.shortDateTime)(m)})]})]}),k(e)||o?null:(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(h.Button,{size:l?"touch":"sm",icon:(0,t.jsx)(n.Check,{"aria-hidden":!0}),isLoading:d,"data-testid":"inbox-mark-done",onClick:()=>{s(e.deliveryId)},children:"Mark done"}),(0,t.jsx)(h.Button,{variant:"ghost",size:l?"touch":"sm",disabled:d,"data-testid":"inbox-mark-unread",onClick:()=>{a(e.deliveryId)},children:"Mark as unread"})]})]}),(0,t.jsx)(I,{message:e}),(0,t.jsx)("div",{className:"min-h-0 grow overflow-y-auto",children:(0,t.jsx)(R,{message:e})}),o?(0,t.jsx)("p",{"data-testid":"inbox-read-only",className:"border-t border-border pt-3 text-meta text-muted-foreground",children:"Read-only: you see argo’s inbox, and can’t reply or mark messages done."}):(0,t.jsx)("div",{className:l?"sticky bottom-0 bg-background pb-[env(safe-area-inset-bottom)]":void 0,children:(0,t.jsx)(T,{message:e,onReply:r,isPending:d,isPhone:l},`${e.deliveryId}-${e.state}`)})]})}function L({messages:e,filter:s,onFilterChange:a,counts:r,selectedId:n,onSelect:l,state:d,onRetry:c,now:m,...u}){if("loading"===d)return(0,t.jsxs)("div",{"data-slot":"operator-inbox","data-state":"loading",className:"grid gap-4 sm:grid-cols-[minmax(0,2fr)_minmax(0,3fr)]",children:[(0,t.jsx)(j.LoadingSkeleton,{variant:"list",rows:5,label:"Loading your inbox"}),(0,t.jsx)(j.LoadingSkeleton,{variant:"detail",label:"Loading the message",className:"max-sm:hidden"})]});if("error"===d)return(0,t.jsx)("div",{"data-slot":"operator-inbox","data-state":"error","data-testid":"inbox-error",children:(0,t.jsx)(v.InlineError,{variant:"page",title:"Couldn’t load your inbox",description:"This page couldn’t reach the fleet server. Messages to argo are stored on the server, so nothing is lost.",onRetry:c})});let x=e.find(e=>e.deliveryId===n),f=(0,t.jsx)(S,{filter:s,onFilterChange:a,counts:r}),g=(0,t.jsx)("div",{"data-testid":"inbox-empty",children:(0,t.jsx)(p.EmptyState,{icon:(0,t.jsx)(o.Inbox,{}),title:"done"===s?"Nothing done yet":"No messages for you",description:"done"===s?"Messages you mark done or reply to show up here.":"When a ship sends a message to argo, it shows up here. You can reply from the message."})});return(0,t.jsxs)("div",{"data-slot":"operator-inbox","data-state":"ready",children:[(0,t.jsxs)("div",{className:"grid min-h-128 grid-cols-[minmax(0,2fr)_minmax(0,3fr)] overflow-hidden rounded-lg border border-border bg-card max-sm:hidden",children:[(0,t.jsxs)("div",{className:"flex min-h-0 flex-col border-r border-border",children:[(0,t.jsx)("div",{className:"border-b border-border p-2.5",children:f}),0===e.length?(0,t.jsx)("div",{className:"p-4",children:g}):(0,t.jsx)(z,{messages:e,selectedId:n,onSelect:l,now:m})]}),(0,t.jsx)("div",{className:"flex min-h-0 flex-col bg-background p-5",children:x?(0,t.jsx)(A,{message:x,isPhone:!1,...u}):(0,t.jsx)("p",{className:"m-auto text-meta text-muted-foreground",children:0===e.length?null:!0===u.isReadOnly?"Choose a message to read it.":"Choose a message to read it and reply."})})]}),(0,t.jsx)("div",{className:"flex flex-col gap-3 sm:hidden",children:x?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h.Button,{variant:"ghost",size:"touch",icon:(0,t.jsx)(i.ChevronLeft,{"aria-hidden":!0}),className:"-ml-2 self-start","data-testid":"inbox-back",onClick:()=>{l(void 0)},children:"Inbox"}),(0,t.jsx)(A,{message:x,isPhone:!0,...u})]}):(0,t.jsxs)(t.Fragment,{children:[f,0===e.length?g:(0,t.jsx)(z,{messages:e,selectedId:n,onSelect:l,now:m})]})})]})}var M=e.i(77821),D=e.i(87964),O=e.i(86413),P=e.i(90262),K=e.i(42454),q=e.i(18423),E=e.i(96676),B=e.i(78485);e.s(["InboxPageFor",0,function({filterParameter:e,selectedId:n}){let i=(0,s.useRouter)(),l=(0,E.useNow)(),o=(0,O.readInboxFilter)(e),d=(0,O.useInbox)(),c=(0,O.useMarkRead)(),m=(0,O.useMarkDone)(),u=(0,O.useReply)(),x=(0,q.useLiveFleet)(),h=(0,D.useConsoleFrame)();(0,B.useSignInWhenSessionEnds)([d.error,x.error]);let f=(0,P.useAccess)(),[g,b]=(0,a.useState)(new Set),p=(0,K.useQuestions)(),v=(0,K.questionDeliveryIdsOf)(p.data??[]),j=void 0!==p.data||p.isError,y=(0,O.plainMessagesOf)(d.data??[],v),N=e=>{i.replace((0,O.inboxPathOf)(e),{scroll:!1})},w=({deliveryId:e,run:t,failure:s})=>{b(t=>new Set([...t,e])),t().catch(e=>{(0,r.showToast)({title:s,description:e instanceof Error?e.message:"Try again in a moment.",tone:"error"})}).finally(()=>{b(t=>new Set([...t].filter(t=>t!==e)))})};return(0,t.jsx)(M.ListPage,{...h,title:"Operator inbox",description:"Messages ships sent to argo. Opening one marks it read; Mark done or Reply acknowledges it.",live:x.live,children:(0,t.jsx)(L,{isReadOnly:!f.canReceive,messages:(0,O.messagesFor)(y,o),filter:o,onFilterChange:e=>{N({filter:e})},counts:d.data&&j?(0,O.filterCounts)(y):{},selectedId:n,onSelect:e=>{N({filter:o,deliveryId:e});let t=y.find(t=>t.deliveryId===e);void 0!==e&&t?.readAt===null&&f.canReceive&&c.mutate({deliveryId:e,isRead:!0})},state:d.isError?"error":d.data&&j?"ready":"loading",onRetry:()=>{d.refetch()},onMarkDone:e=>{w({deliveryId:e,run:()=>m.mutateAsync({deliveryId:e}),failure:"Couldn’t mark the message done"})},onMarkUnread:e=>{w({deliveryId:e,run:()=>c.mutateAsync({deliveryId:e,isRead:!1}),failure:"Couldn’t mark the message unread"}),N({filter:o})},onReply:({deliveryId:e,payload:t})=>{w({deliveryId:e,run:()=>u.mutateAsync({deliveryId:e,payload:t,idempotencyKey:`reply-${e}-${crypto.randomUUID()}`}),failure:"Couldn’t send the reply"})},pendingIds:g,now:l})})}],46964)},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})}])},91727,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["Label",0,function({className:e,htmlFor:a,...r}){return(0,t.jsx)("label",{"data-slot":"label",htmlFor:a,className:(0,s.classNames)("text-body font-medium text-foreground select-none",e),...r})}])},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})}])},43988,e=>{"use strict";var t=e.i(43476),s=e.i(25913),a=e.i(90063);let r=(0,s.cva)("w-full min-w-0 resize-none rounded-md border border-input bg-card px-3 py-2 text-foreground shadow-sm transition-[border-color,box-shadow] duration-(--duration-fast) outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/22 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/16 disabled:cursor-not-allowed disabled:bg-muted disabled:opacity-50 disabled:shadow-none",{variants:{size:{md:"text-body",touch:"rounded-lg text-input-touch"},isMono:{true:"font-mono",false:""}},compoundVariants:[{size:"md",isMono:!0,className:"text-code"}],defaultVariants:{size:"md",isMono:!1}});e.s(["Textarea",0,function({className:e,size:s,isMono:n,rows:i=4,...l}){return(0,t.jsx)("textarea",{"data-slot":"textarea",rows:i,className:(0,a.classNames)(r({size:s,isMono:n}),e),...l})}])},67874,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["EmptyState",0,function({title:e,description:a,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,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}),n]}):(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:[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}),a?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:a}):null,n?(0,t.jsx)("div",{className:"mt-1 max-sm:w-full max-sm:[&>*]:w-full",children:n}):null]})}])},17981,e=>{"use strict";var t=e.i(43476),s=e.i(22768),a=e.i(36518),r=e.i(25398),n=e.i(90063),i=e.i(15905);e.s(["InlineError",0,function({title:e,description:l,detail:o,onRetry:d,retryNote:c,variant:m="section",id:u,className:x}){return"field"===m?(0,t.jsxs)("p",{id:u,"data-slot":"inline-error","data-variant":m,className:(0,n.classNames)("flex items-center gap-1.5 text-meta text-destructive-text [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",x),children:[(0,t.jsx)(s.CircleAlert,{"aria-hidden":!0}),e]}):"section"===m?(0,t.jsxs)("div",{role:"alert","data-slot":"inline-error","data-variant":m,className:(0,n.classNames)("flex gap-2 rounded-lg border border-tone-attention-border bg-tone-attention-bg p-3 text-tone-attention-fg",x),children:[(0,t.jsx)(s.CircleAlert,{"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}),l?(0,t.jsx)("p",{className:"text-meta text-foreground",children:l}):null,d?(0,t.jsx)(i.Button,{size:"xs",icon:(0,t.jsx)(r.RotateCw,{"aria-hidden":!0}),onClick:d,className:"self-start",children:"Try again"}):null]})]}):(0,t.jsxs)("div",{role:"alert","data-slot":"inline-error","data-variant":m,className:(0,n.classNames)("flex flex-col items-center gap-3 rounded-lg border border-border bg-card px-6 py-10 text-center",x),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"flex size-10 items-center justify-center rounded-lg border border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg [&_svg]:size-(--size-icon-xl)",children:(0,t.jsx)(a.CloudOff,{})}),(0,t.jsx)("h2",{className:"text-heading font-semibold text-foreground max-sm:text-heading-touch",children:e}),l?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:l}):null,o?(0,t.jsx)("code",{className:"rounded-sm border border-border bg-muted px-2 py-0.5 font-mono text-id text-muted-foreground",children:o}):null,d?(0,t.jsxs)("div",{className:"flex items-center gap-2 max-sm:w-full max-sm:flex-col",children:[(0,t.jsx)(i.Button,{size:"sm",icon:(0,t.jsx)(r.RotateCw,{"aria-hidden":!0}),onClick:d,className:"max-sm:w-full",children:"Try again"}),c?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:c}):null]}):null]})}])},88393,e=>{"use strict";var t=e.i(43476),s=e.i(90063),a=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,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"}),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)(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: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)(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: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)(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]})}])},39448,e=>{"use strict";var t=e.i(43476),s=e.i(25913),a=e.i(22016),r=e.i(90063);let n=(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 m=d?(0,t.jsx)(a.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",c),children:[m,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]})}])},77880,85538,e=>{"use strict";var t=e.i(43476),s=e.i(67927),a=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 c({state:e,className:s}){let{label:a,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",s),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:(0,o.classNames)("size-2 shrink-0 rounded-full",r)}),a]})}e.s(["Header",0,function({breadcrumb:e,parents:o=[],live:d,onCompose:m,onSearch:u}){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)(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}),u?(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:u,children:[(0,t.jsx)("span",{className:"grow text-left",children:"Search ships or jump to"}),(0,t.jsx)(l.Kbd,{children:"⌘K"})]}):null,m?(0,t.jsx)(i.Button,{size:"sm",icon:(0,t.jsx)(r.SquarePen,{"aria-hidden":!0}),"data-testid":"header-compose",onClick:m,children:"Compose"}):null]})]})}],77880);var m=e.i(24071),u=e.i(57957);e.s(["TopBar",0,function({title:e,live:s,actions:r,back:l,account:o,onSearch:d}){let x=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)(m.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}),r||x||o&&!l?(0,t.jsxs)("div",{className:"ml-auto flex items-center gap-1",children:[x?(0,t.jsx)(i.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Search ships or jump to","data-testid":"top-bar-search",onClick:x,children:(0,t.jsx)(a.Search,{"aria-hidden":!0})}):null,r,o&&!l?(0,t.jsx)(u.AccountMenuSheet,{...o}):null]}):null]})}],85538)},77821,e=>{"use strict";var t=e.i(43476),s=e.i(19759),a=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:c,onCompose:m,onSearch:u,account:x,banner:h,children:f}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Header,{breadcrumb:e,live:c,onCompose:m,onSearch:u}),h,(0,t.jsx)(n.TopBar,{title:e,live:c,account:x,onSearch:u,actions:m?(0,t.jsx)(a.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Compose","data-testid":"top-bar-compose",onClick:m,children:(0,t.jsx)(s.SquarePen,{"aria-hidden":!0})}):void 0}),(0,t.jsxs)("main",{className:"flex grow flex-col gap-5 px-8 py-6 max-sm:gap-3.5 max-sm:px-4 max-sm:pt-3.5 max-sm:pb-[calc(var(--size-tabbar)+var(--spacing)*4)]",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4 max-sm:gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-1",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1",children:[(0,t.jsx)("h1",{className:"text-title font-semibold tracking-tight text-foreground max-sm: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,f]})]})}])},18423,e=>{"use strict";var t=e.i(12598),s=e.i(5861),a=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)(),c=(0,t.useQueryClient)(),[m,u]=(0,a.useState)(new Set),x=e=>{l(c,e)},h=(0,s.useSubscription)(e.fleet.events.subscriptionOptions({lastEventId:null},{onData:({data:t})=>{var s,a,n;if("resync"===t.kind)return void x(e.fleet.pathKey());let{event:l}=t;for(let t of new Set([l.shipId,l.actorShipId]))null!==t&&(x(e.fleet.ship.queryKey({shipId:t})),x(e.fleet.shipTimeline.queryKey({shipId:t})));if(null!==l.messageId&&(x(e.fleet.shipMessages.pathKey()),x(e.fleet.message.queryKey({messageId:l.messageId})),x(e.fleet.inbox.pathKey()),x(r.QUESTIONS_KEY)),s=l.type,d.has(s)&&x(e.fleet.needsAttention.queryKey()),a=l.type,o.has(a)&&x(e.fleet.labels.queryKey()),"NetworkRulesDeclared"===l.type&&x(e.fleet.declaredNetworkRules.queryKey()),n=l.type,!i.has(n))return;x(e.fleet.list.queryKey());let{shipId:c}=l;"ShipCommissioned"===l.type&&null!==c&&u(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"}}(h.status),newShipIds:m,error:h.error}}])},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 r=s(a)?"JSON":a.split(";")[0]?.trim()??a,n=new TextEncoder().encode(e).byteLength;return`${r} \xb7 ${(0,t.counted)(n,{one:"byte",many:"bytes"})}`}])},74470,31071,e=>{"use strict";var t=e.i(71645);let s=/Mac|iPhone|iPad|iPod/;function a(e){return"mac"===e?"⌘↵":"Ctrl ↵"}function r(){return()=>void 0}function n(){var e;return e=navigator.userAgent,s.test(e)?"mac":"other"}function i(){return null}e.s(["sendShortcutAria",0,function(e){return"mac"===e?"Meta+Enter":"Control+Enter"},"sendShortcutKeys",0,a,"submitOnSendShortcut",0,function(e){var t;let{key:s,metaKey:a,ctrlKey:r}=e;"Enter"===(t={key:s,metaKey:a,ctrlKey:r,isComposing:e.nativeEvent.isComposing}).key&&(t.metaKey||t.ctrlKey)&&!t.isComposing&&(e.preventDefault(),e.currentTarget.form?.requestSubmit())},"useShortcutPlatform",0,function(){return(0,t.useSyncExternalStore)(r,n,i)}],74470);var l=e.i(43476),o=e.i(36651);e.s(["SendShortcutHint",0,function({platform:e}){return(0,l.jsx)(o.Kbd,{"aria-hidden":!0,"data-testid":"send-shortcut-hint",className:"border-primary-foreground/25 bg-primary-foreground/10 text-primary-foreground",children:a(e)})}],31071)},46150,e=>{"use strict";e.s(["OPERATOR_NAME",0,"argo","capitalised",0,function(e){return e.charAt(0).toUpperCase()+e.slice(1)},"counted",0,function(e,t){return`${String(e)} ${1===e?t.one:t.many}`},"ship",0,function(e){return{kind:"ship",party:e}},"text",0,function(e){return{kind:"text",text:e}}])}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,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)},36518,e=>{"use strict";var t=e.i(56420);let s={name:"cloud-off",size:24,node:[["path",{d:"M10.94 5.274A7 7 0 0 1 15.71 10h1.79a4.5 4.5 0 0 1 4.222 6.057",key:"1uxyv8"}],["path",{d:"M18.796 18.81A4.5 4.5 0 0 1 17.5 19H9A7 7 0 0 1 5.79 5.78",key:"99tcn7"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]};s.node;let a=(0,t.default)(s);e.s(["CloudOff",0,a],36518)},25398,e=>{"use strict";var t=e.i(56420);let s={name:"rotate-cw",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]};s.node;let a=(0,t.default)(s);e.s(["RotateCw",0,a],25398)},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)},30274,e=>{"use strict";var t=e.i(56420);let s={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"}]]};s.node;let a=(0,t.default)(s);e.s(["Send",0,a],30274)},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)},46964,e=>{"use strict";var t=e.i(43476),s=e.i(18566),a=e.i(71645),r=e.i(41880),n=e.i(89664),i=e.i(24071),l=e.i(85595),o=e.i(44594),d=e.i(30274),c=e.i(90063),m=e.i(69693),u=e.i(49635),x=e.i(74470),h=e.i(15905),f=e.i(91727),g=e.i(60592),p=e.i(43988),b=e.i(67874),v=e.i(17981),j=e.i(88393),y=e.i(31071),N=e.i(39448);let w=[{value:"open",label:"Open"},{value:"done",label:"Done"},{value:"all",label:"All"}];function k(e){return"acknowledged"===e.state}function S({filter:e,onFilterChange:s,counts:a}){return(0,t.jsx)(g.Tabs,{value:e,onValueChange:e=>{let t=w.find(t=>t.value===e);t&&s(t.value)},children:(0,t.jsx)(g.TabsList,{"aria-label":"Show",className:"max-sm:w-full",children:w.map(({value:e,label:s})=>(0,t.jsxs)(g.TabsTrigger,{value:e,"data-testid":`inbox-filter-${e}`,className:"max-sm:grow",children:[s,void 0===a[e]?null:(0,t.jsx)(g.TabsCount,{children:a[e]})]},e))})})}function C({message:e}){let{payload:s,contentType:a}=e.message;return(0,t.jsx)("span",{className:(0,c.classNames)("block min-w-0 truncate text-muted-foreground",(0,m.isJson)(a)?"font-mono text-id":"text-meta max-sm:text-body"),children:s.split("\n")[0]})}function z({messages:e,selectedId:s,onSelect:a,now:r}){return(0,t.jsx)("ul",{"aria-label":"Messages to argo",className:"flex flex-col max-sm:gap-2",children:e.map(e=>{let n=new Date(e.message.sentAt),i=null===e.readAt&&!k(e),o=e.deliveryId===s;return(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button","data-testid":"inbox-row","data-delivery-id":e.deliveryId,"aria-current":o?"true":void 0,onClick:()=>{a(e.deliveryId)},className:"relative flex w-full min-w-0 flex-col gap-1 border-b border-border py-2.5 pr-3 pl-5 text-left transition-colors duration-(--duration-fast) outline-none hover:bg-accent focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-ring aria-[current=true]:bg-accent max-sm:rounded-lg max-sm:border max-sm:bg-card max-sm:py-3",children:[i?(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute top-4 left-2 size-1.5 rounded-full bg-primary max-sm:top-4.5"}):null,(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:[k(e)?(0,t.jsx)(l.CircleCheck,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0 text-muted-foreground"}):null,(0,t.jsx)(N.ShipName,{name:e.message.sender.name,shipId:e.message.sender.id,isSuffixShown:!0,className:(0,c.classNames)("min-w-0",i?"font-semibold":void 0,k(e)?"text-muted-foreground":void 0)}),(0,t.jsx)("time",{dateTime:e.message.sentAt,title:(0,u.fullDateTime)(n),className:"ml-auto shrink-0 text-meta text-muted-foreground tabular-nums",children:r.getTime()-n.getTime()<864e5?(0,u.clockTime)(n):(0,u.shortDateTime)(n)})]}),(0,t.jsx)(C,{message:e}),i?(0,t.jsx)("span",{className:"sr-only",children:"Unread"}):null]})},e.deliveryId)})})}function I({message:e}){if(null===e.doneAt)return null;let s=new Date(e.doneAt);return(0,t.jsxs)("p",{"data-testid":"inbox-done-notice",className:"flex items-center gap-2 rounded-md border border-tone-ok-border bg-tone-ok-bg px-3 py-2 text-meta text-tone-ok-fg [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",children:[(0,t.jsx)(l.CircleCheck,{"aria-hidden":!0}),"Done. Acknowledged at"," ",(0,t.jsx)("time",{dateTime:e.doneAt,title:(0,u.fullDateTime)(s),children:(0,u.clockTime)(s)}),null===e.repliedWith?".":", when you replied."]})}function R({message:e}){let{payload:s,contentType:a}=e.message,r=(0,m.formattedPayload)(s,a);return(0,t.jsx)("pre",{className:(0,c.classNames)("max-h-96 overflow-auto rounded-md border border-border bg-card px-3.5 py-3 whitespace-pre-wrap text-foreground [overflow-wrap:anywhere]",(0,m.isJson)(a)?"font-mono text-code":"font-sans text-body max-sm:text-body-touch"),children:r??s})}function T({message:e,onReply:s,isPending:r,isPhone:n}){let i=(0,a.useId)(),l=(0,a.useId)(),[o,c]=(0,a.useState)(""),m=(0,x.useShortcutPlatform)(),u=e.message.sender.name;return(0,t.jsxs)("form",{className:"flex flex-col gap-1.5 border-t border-border pt-3",onSubmit:t=>{t.preventDefault(),""===o.trim()||r||s({deliveryId:e.deliveryId,payload:o})},children:[(0,t.jsxs)(f.Label,{htmlFor:i,children:["Reply to ",u]}),(0,t.jsx)(p.Textarea,{id:i,rows:3,size:n?"touch":"md",placeholder:"Write a reply",value:o,onChange:e=>{c(e.target.value)},onKeyDown:x.submitOnSendShortcut,"aria-describedby":l,"data-testid":"inbox-reply"}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsx)("p",{id:l,className:"text-meta text-muted-foreground",children:k(e)?"Sent as a new message.":"Sending also marks this one done."}),(0,t.jsxs)(h.Button,{type:"submit",variant:"primary",size:n?"touch":"sm",icon:(0,t.jsx)(d.Send,{"aria-hidden":!0}),isLoading:r,disabled:""===o.trim()&&!r,"aria-keyshortcuts":null===m?void 0:(0,x.sendShortcutAria)(m),"data-testid":"inbox-reply-send",children:["Send reply",null===m?null:(0,t.jsx)(y.SendShortcutHint,{platform:m})]})]})]})}function A({message:e,onMarkDone:s,onMarkUnread:a,onReply:r,pendingIds:i,isPhone:l,isReadOnly:o=!1}){let d=i.has(e.deliveryId),m=new Date(e.message.sentAt),x=e.message.sender;return(0,t.jsxs)("article",{"aria-label":`Message from ${x.name}`,"data-testid":"inbox-message",className:(0,c.classNames)("flex min-h-0 flex-col gap-3",l?"grow":"h-full"),children:[(0,t.jsxs)("header",{className:"flex flex-wrap items-start justify-between gap-2",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-0.5",children:[(0,t.jsx)("h2",{className:"min-w-0 text-heading font-semibold",children:(0,t.jsx)(N.ShipName,{name:x.name,shipId:x.id,isSuffixShown:!0})}),(0,t.jsxs)("p",{className:"text-meta text-muted-foreground",children:["To argo ·"," ",(0,t.jsx)("time",{dateTime:e.message.sentAt,title:(0,u.fullDateTime)(m),children:(0,u.shortDateTime)(m)})]})]}),k(e)||o?null:(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(h.Button,{size:l?"touch":"sm",icon:(0,t.jsx)(n.Check,{"aria-hidden":!0}),isLoading:d,"data-testid":"inbox-mark-done",onClick:()=>{s(e.deliveryId)},children:"Mark done"}),(0,t.jsx)(h.Button,{variant:"ghost",size:l?"touch":"sm",disabled:d,"data-testid":"inbox-mark-unread",onClick:()=>{a(e.deliveryId)},children:"Mark as unread"})]})]}),(0,t.jsx)(I,{message:e}),(0,t.jsx)("div",{className:"min-h-0 grow overflow-y-auto",children:(0,t.jsx)(R,{message:e})}),o?(0,t.jsx)("p",{"data-testid":"inbox-read-only",className:"border-t border-border pt-3 text-meta text-muted-foreground",children:"Read-only: you see argo’s inbox, and can’t reply or mark messages done."}):(0,t.jsx)("div",{className:l?"sticky bottom-0 bg-background pb-[env(safe-area-inset-bottom)]":void 0,children:(0,t.jsx)(T,{message:e,onReply:r,isPending:d,isPhone:l},`${e.deliveryId}-${e.state}`)})]})}function L({messages:e,filter:s,onFilterChange:a,counts:r,selectedId:n,onSelect:l,state:d,onRetry:c,now:m,...u}){if("loading"===d)return(0,t.jsxs)("div",{"data-slot":"operator-inbox","data-state":"loading",className:"grid gap-4 sm:grid-cols-[minmax(0,2fr)_minmax(0,3fr)]",children:[(0,t.jsx)(j.LoadingSkeleton,{variant:"list",rows:5,label:"Loading your inbox"}),(0,t.jsx)(j.LoadingSkeleton,{variant:"detail",label:"Loading the message",className:"max-sm:hidden"})]});if("error"===d)return(0,t.jsx)("div",{"data-slot":"operator-inbox","data-state":"error","data-testid":"inbox-error",children:(0,t.jsx)(v.InlineError,{variant:"page",title:"Couldn’t load your inbox",description:"This page couldn’t reach the fleet server. Messages to argo are stored on the server, so nothing is lost.",onRetry:c})});let x=e.find(e=>e.deliveryId===n),f=(0,t.jsx)(S,{filter:s,onFilterChange:a,counts:r}),g=(0,t.jsx)("div",{"data-testid":"inbox-empty",children:(0,t.jsx)(b.EmptyState,{icon:(0,t.jsx)(o.Inbox,{}),title:"done"===s?"Nothing done yet":"No messages for you",description:"done"===s?"Messages you mark done or reply to show up here.":"When a ship sends a message to argo, it shows up here. You can reply from the message."})});return(0,t.jsxs)("div",{"data-slot":"operator-inbox","data-state":"ready",children:[(0,t.jsxs)("div",{className:"grid min-h-128 grid-cols-[minmax(0,2fr)_minmax(0,3fr)] overflow-hidden rounded-lg border border-border bg-card max-sm:hidden",children:[(0,t.jsxs)("div",{className:"flex min-h-0 flex-col border-r border-border",children:[(0,t.jsx)("div",{className:"border-b border-border p-2.5",children:f}),0===e.length?(0,t.jsx)("div",{className:"p-4",children:g}):(0,t.jsx)(z,{messages:e,selectedId:n,onSelect:l,now:m})]}),(0,t.jsx)("div",{className:"flex min-h-0 flex-col bg-background p-5",children:x?(0,t.jsx)(A,{message:x,isPhone:!1,...u}):(0,t.jsx)("p",{className:"m-auto text-meta text-muted-foreground",children:0===e.length?null:!0===u.isReadOnly?"Choose a message to read it.":"Choose a message to read it and reply."})})]}),(0,t.jsx)("div",{className:"flex flex-col gap-3 sm:hidden",children:x?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h.Button,{variant:"ghost",size:"touch",icon:(0,t.jsx)(i.ChevronLeft,{"aria-hidden":!0}),className:"-ml-2 self-start","data-testid":"inbox-back",onClick:()=>{l(void 0)},children:"Inbox"}),(0,t.jsx)(A,{message:x,isPhone:!0,...u})]}):(0,t.jsxs)(t.Fragment,{children:[f,0===e.length?g:(0,t.jsx)(z,{messages:e,selectedId:n,onSelect:l,now:m})]})})]})}var M=e.i(77821),K=e.i(87964),D=e.i(86413),q=e.i(90262),O=e.i(42454),P=e.i(18423),E=e.i(96676),B=e.i(78485);e.s(["InboxPageFor",0,function({filterParameter:e,selectedId:n}){let i=(0,s.useRouter)(),l=(0,E.useNow)(),o=(0,D.readInboxFilter)(e),d=(0,D.useInbox)(),c=(0,D.useMarkRead)(),m=(0,D.useMarkDone)(),u=(0,D.useReply)(),x=(0,P.useLiveFleet)(),h=(0,K.useConsoleFrame)();(0,B.useSignInWhenSessionEnds)([d.error,x.error]);let f=(0,q.useAccess)(),[g,p]=(0,a.useState)(new Set),b=(0,O.useQuestions)(),v=(0,O.questionDeliveryIdsOf)(b.data??[]),j=void 0!==b.data||b.isError,y=(0,D.plainMessagesOf)(d.data??[],v),N=e=>{i.replace((0,D.inboxPathOf)(e),{scroll:!1})},w=({deliveryId:e,run:t,failure:s})=>{p(t=>new Set([...t,e])),t().catch(e=>{(0,r.showToast)({title:s,description:e instanceof Error?e.message:"Try again in a moment.",tone:"error"})}).finally(()=>{p(t=>new Set([...t].filter(t=>t!==e)))})};return(0,t.jsx)(M.ListPage,{...h,title:"Operator inbox",description:"Messages ships sent to argo. Opening one marks it read; Mark done or Reply acknowledges it.",live:x.live,children:(0,t.jsx)(L,{isReadOnly:!f.canReceive,messages:(0,D.messagesFor)(y,o),filter:o,onFilterChange:e=>{N({filter:e})},counts:d.data&&j?(0,D.filterCounts)(y):{},selectedId:n,onSelect:e=>{N({filter:o,deliveryId:e});let t=y.find(t=>t.deliveryId===e);void 0!==e&&t?.readAt===null&&f.canReceive&&c.mutate({deliveryId:e,isRead:!0})},state:d.isError?"error":d.data&&j?"ready":"loading",onRetry:()=>{d.refetch()},onMarkDone:e=>{w({deliveryId:e,run:()=>m.mutateAsync({deliveryId:e}),failure:"Couldn’t mark the message done"})},onMarkUnread:e=>{w({deliveryId:e,run:()=>c.mutateAsync({deliveryId:e,isRead:!1}),failure:"Couldn’t mark the message unread"}),N({filter:o})},onReply:({deliveryId:e,payload:t})=>{w({deliveryId:e,run:()=>u.mutateAsync({deliveryId:e,payload:t,idempotencyKey:`reply-${e}-${crypto.randomUUID()}`}),failure:"Couldn’t send the reply"})},pendingIds:g,now:l})})}],46964)},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})}])},91727,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["Label",0,function({className:e,htmlFor:a,...r}){return(0,t.jsx)("label",{"data-slot":"label",htmlFor:a,className:(0,s.classNames)("text-body font-medium text-foreground select-none",e),...r})}])},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})}])},43988,e=>{"use strict";var t=e.i(43476),s=e.i(25913),a=e.i(90063);let r=(0,s.cva)("w-full min-w-0 resize-none rounded-md border border-input bg-card px-3 py-2 text-foreground shadow-sm transition-[border-color,box-shadow] duration-(--duration-fast) outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/22 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/16 disabled:cursor-not-allowed disabled:bg-muted disabled:opacity-50 disabled:shadow-none",{variants:{size:{md:"text-body",touch:"rounded-lg text-input-touch"},isMono:{true:"font-mono",false:""}},compoundVariants:[{size:"md",isMono:!0,className:"text-code"}],defaultVariants:{size:"md",isMono:!1}});e.s(["Textarea",0,function({className:e,size:s,isMono:n,rows:i=4,...l}){return(0,t.jsx)("textarea",{"data-slot":"textarea",rows:i,className:(0,a.classNames)(r({size:s,isMono:n}),e),...l})}])},67874,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["EmptyState",0,function({title:e,description:a,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,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}),n]}):(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:[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}),a?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:a}):null,n?(0,t.jsx)("div",{className:"mt-1 max-sm:w-full max-sm:[&>*]:w-full",children:n}):null]})}])},17981,e=>{"use strict";var t=e.i(43476),s=e.i(22768),a=e.i(36518),r=e.i(25398),n=e.i(90063),i=e.i(15905);e.s(["InlineError",0,function({title:e,description:l,detail:o,onRetry:d,retryNote:c,variant:m="section",id:u,className:x}){return"field"===m?(0,t.jsxs)("p",{id:u,"data-slot":"inline-error","data-variant":m,className:(0,n.classNames)("flex items-center gap-1.5 text-meta text-destructive-text [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",x),children:[(0,t.jsx)(s.CircleAlert,{"aria-hidden":!0}),e]}):"section"===m?(0,t.jsxs)("div",{role:"alert","data-slot":"inline-error","data-variant":m,className:(0,n.classNames)("flex gap-2 rounded-lg border border-tone-attention-border bg-tone-attention-bg p-3 text-tone-attention-fg",x),children:[(0,t.jsx)(s.CircleAlert,{"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}),l?(0,t.jsx)("p",{className:"text-meta text-foreground",children:l}):null,d?(0,t.jsx)(i.Button,{size:"xs",icon:(0,t.jsx)(r.RotateCw,{"aria-hidden":!0}),onClick:d,className:"self-start",children:"Try again"}):null]})]}):(0,t.jsxs)("div",{role:"alert","data-slot":"inline-error","data-variant":m,className:(0,n.classNames)("flex flex-col items-center gap-3 rounded-lg border border-border bg-card px-6 py-10 text-center",x),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"flex size-10 items-center justify-center rounded-lg border border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg [&_svg]:size-(--size-icon-xl)",children:(0,t.jsx)(a.CloudOff,{})}),(0,t.jsx)("h2",{className:"text-heading font-semibold text-foreground max-sm:text-heading-touch",children:e}),l?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:l}):null,o?(0,t.jsx)("code",{className:"rounded-sm border border-border bg-muted px-2 py-0.5 font-mono text-id text-muted-foreground",children:o}):null,d?(0,t.jsxs)("div",{className:"flex items-center gap-2 max-sm:w-full max-sm:flex-col",children:[(0,t.jsx)(i.Button,{size:"sm",icon:(0,t.jsx)(r.RotateCw,{"aria-hidden":!0}),onClick:d,className:"max-sm:w-full",children:"Try again"}),c?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:c}):null]}):null]})}])},88393,e=>{"use strict";var t=e.i(43476),s=e.i(90063),a=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,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"}),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)(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: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)(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: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)(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]})}])},39448,e=>{"use strict";var t=e.i(43476),s=e.i(25913),a=e.i(22016),r=e.i(90063);let n=(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 m=d?(0,t.jsx)(a.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",c),children:[m,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]})}])},77880,85538,e=>{"use strict";var t=e.i(43476),s=e.i(67927),a=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 c({state:e,className:s}){let{label:a,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",s),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:(0,o.classNames)("size-2 shrink-0 rounded-full",r)}),a]})}e.s(["Header",0,function({breadcrumb:e,parents:o=[],live:d,onCompose:m,onSearch:u}){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)(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}),u?(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:u,children:[(0,t.jsx)("span",{className:"grow text-left",children:"Search ships or jump to"}),(0,t.jsx)(l.Kbd,{children:"⌘K"})]}):null,m?(0,t.jsx)(i.Button,{size:"sm",icon:(0,t.jsx)(r.SquarePen,{"aria-hidden":!0}),"data-testid":"header-compose",onClick:m,children:"Compose"}):null]})]})}],77880);var m=e.i(24071),u=e.i(57957);e.s(["TopBar",0,function({title:e,live:s,actions:r,back:l,account:o,onSearch:d}){let x=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)(m.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}),r||x||o&&!l?(0,t.jsxs)("div",{className:"ml-auto flex items-center gap-1",children:[x?(0,t.jsx)(i.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Search ships or jump to","data-testid":"top-bar-search",onClick:x,children:(0,t.jsx)(a.Search,{"aria-hidden":!0})}):null,r,o&&!l?(0,t.jsx)(u.AccountMenuSheet,{...o}):null]}):null]})}],85538)},77821,e=>{"use strict";var t=e.i(43476),s=e.i(19759),a=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:c,onCompose:m,onSearch:u,account:x,banner:h,children:f}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Header,{breadcrumb:e,live:c,onCompose:m,onSearch:u}),h,(0,t.jsx)(n.TopBar,{title:e,live:c,account:x,onSearch:u,actions:m?(0,t.jsx)(a.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Compose","data-testid":"top-bar-compose",onClick:m,children:(0,t.jsx)(s.SquarePen,{"aria-hidden":!0})}):void 0}),(0,t.jsxs)("main",{className:"flex grow flex-col gap-5 px-8 py-6 max-sm:gap-3.5 max-sm:px-4 max-sm:pt-3.5 max-sm:pb-[calc(var(--size-tabbar)+var(--spacing)*4)]",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4 max-sm:gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-1",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1",children:[(0,t.jsx)("h1",{className:"text-title font-semibold tracking-tight text-foreground max-sm: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,f]})]})}])},18423,e=>{"use strict";var t=e.i(12598),s=e.i(5861),a=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)(),c=(0,t.useQueryClient)(),[m,u]=(0,a.useState)(new Set),x=e=>{l(c,e)},h=(0,s.useSubscription)(e.fleet.events.subscriptionOptions({lastEventId:null},{onData:({data:t})=>{var s,a,n;if("resync"===t.kind)return void x(e.fleet.pathKey());let{event:l}=t;for(let t of new Set([l.shipId,l.actorShipId]))null!==t&&(x(e.fleet.ship.queryKey({shipId:t})),x(e.fleet.shipTimeline.queryKey({shipId:t})),x(e.fleet.shipWay.queryKey({shipId:t})));if(null!==l.messageId&&(x(e.fleet.shipMessages.pathKey()),x(e.fleet.shipWay.pathKey()),x(e.fleet.overdue.queryKey()),x(e.fleet.message.queryKey({messageId:l.messageId})),x(e.fleet.inbox.pathKey()),x(r.QUESTIONS_KEY),x(e.fleet.noShipCanTake.queryKey())),s=l.type,d.has(s)&&x(e.fleet.needsAttention.queryKey()),a=l.type,o.has(a)&&x(e.fleet.labels.queryKey()),"NetworkRulesDeclared"===l.type&&x(e.fleet.declaredNetworkRules.queryKey()),n=l.type,!i.has(n))return;x(e.fleet.list.queryKey()),x(e.fleet.noShipCanTake.queryKey());let{shipId:c}=l;"ShipCommissioned"===l.type&&null!==c&&u(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"}}(h.status),newShipIds:m,error:h.error}}])},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 r=s(a)?"JSON":a.split(";")[0]?.trim()??a,n=new TextEncoder().encode(e).byteLength;return`${r} \xb7 ${(0,t.counted)(n,{one:"byte",many:"bytes"})}`}])},74470,31071,e=>{"use strict";var t=e.i(71645);let s=/Mac|iPhone|iPad|iPod/;function a(e){return"mac"===e?"⌘↵":"Ctrl ↵"}function r(){return()=>void 0}function n(){var e;return e=navigator.userAgent,s.test(e)?"mac":"other"}function i(){return null}e.s(["sendShortcutAria",0,function(e){return"mac"===e?"Meta+Enter":"Control+Enter"},"sendShortcutKeys",0,a,"submitOnSendShortcut",0,function(e){var t;let{key:s,metaKey:a,ctrlKey:r}=e;"Enter"===(t={key:s,metaKey:a,ctrlKey:r,isComposing:e.nativeEvent.isComposing}).key&&(t.metaKey||t.ctrlKey)&&!t.isComposing&&(e.preventDefault(),e.currentTarget.form?.requestSubmit())},"useShortcutPlatform",0,function(){return(0,t.useSyncExternalStore)(r,n,i)}],74470);var l=e.i(43476),o=e.i(36651);e.s(["SendShortcutHint",0,function({platform:e}){return(0,l.jsx)(o.Kbd,{"aria-hidden":!0,"data-testid":"send-shortcut-hint",className:"border-primary-foreground/25 bg-primary-foreground/10 text-primary-foreground",children:a(e)})}],31071)},46150,e=>{"use strict";e.s(["OPERATOR_NAME",0,"argo","capitalised",0,function(e){return e.charAt(0).toUpperCase()+e.slice(1)},"counted",0,function(e,t){return`${String(e)} ${1===e?t.one:t.many}`},"ship",0,function(e){return{kind:"ship",party:e}},"text",0,function(e){return{kind:"text",text:e}}])}]);
|
package/.next/standalone/packages/console/.next/static/chunks/{2ys91r118pnlx.js → 0t6-mtlfuonvu.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,67858,s=>{s.v(t=>Promise.all(["static/chunks/0v7urhig04x47.js"].map(t=>s.l(t))).then(()=>t(59068)))},
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,67858,s=>{s.v(t=>Promise.all(["static/chunks/0v7urhig04x47.js"].map(t=>s.l(t))).then(()=>t(59068)))},88207,s=>{s.v(t=>Promise.all(["static/chunks/2jf-hefdqyy1k.js"].map(t=>s.l(t))).then(()=>t(42211)))},88138,s=>{s.v(t=>Promise.all(["static/chunks/3yue418t7-gne.js"].map(t=>s.l(t))).then(()=>t(48287)))},95953,s=>{s.v(t=>Promise.all(["static/chunks/0yi6kd19bc8bq.js"].map(t=>s.l(t))).then(()=>t(82532)))},27830,s=>{s.v(t=>Promise.all(["static/chunks/028qro7ew5biu.js","static/chunks/3gw93hpgh57gl.js"].map(t=>s.l(t))).then(()=>t(897)))},26403,s=>{s.v(t=>Promise.all(["static/chunks/3ratrwsbommzd.js"].map(t=>s.l(t))).then(()=>t(54988)))},57993,s=>{s.v(t=>Promise.all(["static/chunks/1t5lh13vevgx4.js"].map(t=>s.l(t))).then(()=>t(75027)))},41585,s=>{s.v(t=>Promise.all(["static/chunks/25lpj_dr-j9wk.js"].map(t=>s.l(t))).then(()=>t(11896)))}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,91703,e=>{"use strict";var t=e.i(43476),s=e.i(83035),i=e.i(90063),a=e.i(61966);e.s(["CodeBlock",0,function({label:e,code:o,isWrapped:r=!1,copyValue:n,copyLabel:l=`Copy ${e.toLowerCase()}`,onCopied:d,onCopyFailed:c,codeTestId:p,copyTestId:u}){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)(a.CopyButton,{value:n??o,label:l,isLabeled:!0,onCopied:d,onCopyFailed:c,"data-testid":u})]}),(0,t.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:o})]})}])},61966,e=>{"use strict";var t=e.i(43476),s=e.i(89664),i=e.i(8734),a=e.i(71645),o=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,h]=(0,a.useState)(!1);async function m(){try{await navigator.clipboard.writeText(e)}catch{c?.();return}h(!0),d?.(),setTimeout(()=>{h(!1)},1500)}return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.Button,{variant:"ghost",size:n,isIconOnly:!l,"aria-label":r,title:l?void 0:r,icon:g?(0,t.jsx)(s.Check,{"aria-hidden":!0}):(0,t.jsx)(i.Copy,{"aria-hidden":!0}),className:p,"data-testid":u,onClick:()=>{m()},children:l?g?"Copied":"Copy":null}),(0,t.jsx)("span",{role:"status",className:"sr-only",children:g?"Copied.":""})]})}])},22212,e=>{"use strict";var t=e.i(43476),s=e.i(53753),i=e.i(90063),a=e.i(94945);e.s(["Dialog",0,function(e){return(0,t.jsx)(s.Dialog.Root,{"data-slot":"dialog",...e})},"DialogClose",0,function(e){return(0,t.jsx)(s.Dialog.Close,{"data-slot":"dialog-close",...e})},"DialogContent",0,function({className:e,size:o,children:r,...n}){return(0,t.jsxs)(s.Dialog.Portal,{children:[(0,t.jsx)(s.Dialog.Backdrop,{"data-slot":"dialog-overlay",className:a.dialogSurface.overlay}),(0,t.jsx)(s.Dialog.Popup,{"data-slot":"dialog-content",className:(0,i.classNames)(a.dialogSurface.popup({size:o}),e),...n,children:r})]})},"DialogDescription",0,function({className:e,...o}){return(0,t.jsx)(s.Dialog.Description,{"data-slot":"dialog-description",className:(0,i.classNames)(a.dialogSurface.description,e),...o})},"DialogFooter",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"dialog-footer",className:(0,i.classNames)(a.dialogSurface.footer,e),...s})},"DialogHeader",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"dialog-header",className:(0,i.classNames)(a.dialogSurface.header,e),...s})},"DialogTitle",0,function({className:e,...o}){return(0,t.jsx)(s.Dialog.Title,{"data-slot":"dialog-title",className:(0,i.classNames)(a.dialogSurface.title,e),...o})}])},56478,e=>{"use strict";var t=e.i(43476),s=e.i(66616),i=e.i(91703);e.s(["CrewLines",0,function({crewLines:e,subject:a,testIdPrefix:o,onCopied:r,onCopyFailed:n}){return e.map(({harness:e,line:l})=>(0,t.jsx)(i.CodeBlock,{label:`Crew line, ${(0,s.harnessWord)(e)} with the aeolus plugin`,code:l,isWrapped:!0,copyLabel:`Copy the ${(0,s.harnessWord)(e)} crew line for ${a}`,codeTestId:`${o}-${e}`,copyTestId:`${o}-${e}-copy`,onCopied:r,onCopyFailed:n},e))}])},82532,e=>{"use strict";var t=e.i(43476),s=e.i(22768),i=e.i(10818),a=e.i(25398),o=e.i(71645),r=e.i(49635),n=e.i(31513),l=e.i(15905),d=e.i(91703),c=e.i(22212),p=e.i(94945),u=e.i(19321),g=e.i(56478),h=e.i(17981);let m=`${n.SOURCE_URL}/blob/main/docs/guides/chatgpt.md`;function x({shipName:e,prompt:a,crewLines:r}){let[n,l]=(0,o.useState)(!1),c=()=>{l(!1)},p=()=>{l(!0)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{className:"flex gap-2 rounded-lg border border-border bg-muted px-3 py-2 text-meta text-foreground",children:[(0,t.jsx)(i.Info,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon-sm) shrink-0 text-muted-foreground"}),(0,t.jsxs)("span",{children:[(0,t.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,t.jsx)(d.CodeBlock,{label:`Crew instructions for a chat, for ${e}`,code:a,isWrapped:!0,copyLabel:`Copy the crew instructions for a chat, for ${e}`,codeTestId:"starting-prompt-text",copyTestId:"starting-prompt-copy",onCopied:c,onCopyFailed:p}),(0,t.jsx)(g.CrewLines,{crewLines:r,subject:e,testIdPrefix:"starting-prompt-crew-line",onCopied:c,onCopyFailed:p}),(0,t.jsx)("p",{role:"status",className:"flex items-center gap-1.5 text-meta text-destructive-text empty:hidden",children:n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.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:s,state:i,prompt:o,crewLines:n,replacesUnclaimed:d,error:g,isOpen:j,onOpenChange:f,onConfirm:C}=e,w="issuing"===i;return(0,t.jsx)(c.Dialog,{open:j,onOpenChange:e=>{w||f(e)},children:(0,t.jsxs)(c.DialogContent,{size:"md","data-testid":"starting-prompt-dialog",className:p.dialogSurface.phoneFullScreen,children:[(0,t.jsxs)(c.DialogHeader,{children:[(0,t.jsxs)(c.DialogTitle,{children:["Starting prompt for ",s]}),(0,t.jsxs)(c.DialogDescription,{children:["Paste the crew instructions into a chat (ChatGPT, Claude chat), or a crew line into Claude Code or Codex with the aeolus plugin. Any earlier prompt for ",s," stops working now."," ",(0,t.jsx)("a",{href:m,target:"_blank",rel:"noreferrer","data-testid":"starting-prompt-chatgpt-guide",className:"underline underline-offset-2",children:"Connect a ChatGPT chat"}),"."]})]}),"error"!==i&&d?(0,t.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,t.jsx)("time",{dateTime:d.issuedAt,children:(0,r.shortDateTime)(new Date(d.issuedAt))})," ","working."]}):null,w?(0,t.jsxs)("div",{"aria-busy":!0,className:"flex flex-col gap-3",children:[(0,t.jsx)("span",{className:"sr-only",children:"Issuing a starting prompt..."}),(0,t.jsx)(u.Skeleton,{className:"h-10 w-full rounded-lg"}),(0,t.jsx)(u.Skeleton,{className:"h-40 w-full rounded-lg"})]}):null,"shown"===i&&void 0!==o&&void 0!==n?(0,t.jsx)(x,{shipName:s,prompt:o,crewLines:n}):null,"error"===i?(0,t.jsx)(h.InlineError,{title:"Couldn’t issue a starting prompt",description:`${g??"The server did not answer."} No new secret was created; any earlier prompt still works.`}):null,(0,t.jsxs)(c.DialogFooter,{children:["issuing"===i||"shown"===i?(0,t.jsx)(c.DialogClose,{render:(0,t.jsx)(l.Button,{variant:"primary",disabled:w}),children:"Done"}):null,"error"===i?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.DialogClose,{render:(0,t.jsx)(l.Button,{}),children:"Close"}),(0,t.jsx)(l.Button,{variant:"primary",icon:(0,t.jsx)(a.RotateCw,{}),onClick:C,children:"Try again"})]}):null]})]})})}])}]);
|