@aeolus-fleet/console 0.26.0 → 0.27.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)/fleet-health/[cause]/page/server-reference-manifest.json +16 -16
- package/.next/standalone/packages/console/.next/server/app/(console)/fleet-health/[cause]/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/fleet-health/[cause]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/fleet-health/page/server-reference-manifest.json +16 -16
- package/.next/standalone/packages/console/.next/server/app/(console)/fleet-health/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/fleet-health/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/inbox/page/server-reference-manifest.json +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/react-loadable-manifest.json +2 -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)/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/react-loadable-manifest.json +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/react-loadable-manifest.json +2 -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/react-loadable-manifest.json +2 -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.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]__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)_fleet-health_page_actions_1gb6-fk.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)_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)_fleet-health_[cause]_page_actions_1kltvcl.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/_0-lk0hi._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_0lx73da._.js → _04q8k0c._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_0cgv2dc._.js → _050ulkd._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_06472wf._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_065633k._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0bx9rsi._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0dq16_0._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0eeox-9._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0ibcqy0._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_13zwdui._.js → _0ictsnq._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0q3cblh._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0qft7s4._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0qo94ne._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0tgr0il._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0txw0_-._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0vwj8z1._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_15d37tz._.js → _0wmw6gw._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0z9_vmu._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1150wmd._.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/_15inzfl._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_1m4ivsp._.js → _167gn91._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1_9jlty._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_0_2b2as._.js → _1bvkf-u._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1cak3vp._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1gfvjcx._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1hb5q4e._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_09im7u5._.js → _1j1ejbw._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1khnccn._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_0um_0ko._.js → _1m738ix._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1q4-osx._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1svohzj._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1t4d5qx._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1tmr0q5._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1u0h4gj._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_02-lhd9._.js → _1vc4auf._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1yjxbcr._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_0nwj88l._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_common_dist_schemas_ping_043mvb2.js → node_modules_zod_v4_classic_external_15fmmz3.js} +3 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_1t6joug._.js +3 -0
- 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_16s142_._.js → packages_console_0969g9_._.js} +2 -2
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_0-cynql._.js → packages_console_11eh-8v._.js} +2 -2
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_19onaki._.js → packages_console_18f93ie._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_1bm_b0f._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_1fjvhg3._.js → packages_console_1clix79._.js} +2 -2
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_1h3kqc2._.js → packages_console_2004f3v._.js} +1 -1
- 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)_inbox_inbox-page_tsx_1lm_c0k._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_app_(console)_network_network-page_tsx_0qc3h-9._.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_components_organisms_crew-line-dialog_tsx_16f00i2._.js → packages_console_components_organisms_crew-line-dialog_tsx_1qorkk0._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_features_ship_ui_organisms_message-sheet_tsx_08bg9ly._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_features_squadrons_organisms_form-squadron-dialog_tsx_1em2a6u._.js → packages_console_features_squadrons_organisms_form-squadron-dialog_tsx_0ditu5u._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_features_squadrons_organisms_form-squadron-dialog_tsx_14dtsf9._.js → packages_console_features_squadrons_organisms_form-squadron-dialog_tsx_13oketj._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_features_trierarchs_organisms_clear-worktree-dialog_tsx_182t_8a._.js → packages_console_features_trierarchs_organisms_clear-worktree-dialog_tsx_1vigea_._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_lib_1b-azvo._.js +1 -1
- 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/chunks/061rac_vo9o5d.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/09d3pvbsjtshj.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/0c7bjft6zc04t.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{40z-3somzsrdu.js → 0fa8e9n5fw6ti.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{2r6qbt-3eyyx0.js → 0fj5fpwgxkqx6.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{0dym46wdgyr8s.js → 0ht5wi5oe5_za.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{3b-s07jfktn4h.js → 0k-zw0ldc55vf.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/0o8q0d16-yt3a.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/0of7ho03vihb8.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/0sagpcmh6omoj.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{3tgyz9diu6s8b.js → 101ihp2v2np_3.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{13dlsye_vo200.js → 126uqxulir3hs.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/14e-f0w_cfqhg.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{27w_ak-u49z7c.js → 169-oge56q06i.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{3xpa57z5k1j9u.js → 18rsibme2venq.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{3l9d_pyzbdymw.js → 1a9zf8kv0co9n.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/1bra8hyy6r84a.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{3ndsjj121oi4m.css → 1qpq5_mt8o9ya.css} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{1l8zdqmp_9rf5.js → 1rnej87ue7-0n.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{0f4gp6zc0v7ff.js → 1splzlg79ytml.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{1da369dzazef6.js → 1wfdv058l23gm.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/20l4-ecv_oo2h.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/24bvw3_s7h3f3.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/25l_2rj6pvegd.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/2600yzum9pa4e.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/28pbrg59hx8sb.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/2fkwzi80oyuv-.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/2k8crfymkve8d.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/2n_dccp7oi2ad.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{3elbv63h5fe5x.js → 2qc_m8dbgxc8w.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/308ap36uxw87y.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{1rdp_b6odjqw0.js → 323r-smxvi-fc.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{03ktpgapfr1fd.js → 32f8-4_7znbir.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{29n1zw9z_9voe.js → 38klmgk3bgj3s.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{17odvid17s2tw.js → 3cae8s07yzv_o.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/3jszhx5rvbjvw.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{2l8wcne7b1_zj.js → 3k61es128845f.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/3kvklsjp8y-7e.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{3qr3u05dpx3ge.js → 3vr80dn3nyqqi.js} +2 -2
- package/.next/standalone/packages/console/.next/static/chunks/{2t433o8fl-ml0.js → 3wqzb_30qmu4l.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/3yjner-hzsvhr.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{1o0gz-w01gi32.js → 40js517zsadm9.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{44uzs2qr-cee1.js → 40kwaybl7nu8j.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{1hl55s9nte__6.js → 41ur4zm093e1l.js} +1 -1
- package/.next/standalone/packages/console/package.json +3 -3
- package/package.json +3 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_007hyay._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_008jzxs._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0v442oo._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_10t_dof._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1zryz52._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_17dse8h._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_features_ship_organisms_message-sheet_tsx_0quy9k0._.js +0 -3
- package/.next/standalone/packages/console/.next/static/chunks/0774ajv3n2sec.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/0c17wq4vgezhs.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/0dv6nkmic67qu.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/0v7urhig04x47.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/0vf_ufda6f5_a.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/1_6o6fps43670.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/1_esosi4nz45e.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/1imn88cebly66.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/2a-1xtmi1hx3h.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/2egdjg_8otxoe.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/2ihkzqv4yg9le.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/2wmpsx0-ppato.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/2xz2tmogwsyzo.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/2ybp2gr6g0hjh.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/3fl8vffzef7ta.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/3flwn71cq8_6u.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/3j7eutn3cr96e.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/3v_rd25hyqdcr.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/425ol2sav0q-i.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/43wzzfkiwha23.js +0 -1
- /package/.next/standalone/packages/console/.next/static/{6wBvYoE9cCp5ppuzev1KN → ZV7FLBaZ7IVExYMj-OJbA}/_buildManifest.js +0 -0
- /package/.next/standalone/packages/console/.next/static/{6wBvYoE9cCp5ppuzev1KN → ZV7FLBaZ7IVExYMj-OJbA}/_clientMiddlewareManifest.js +0 -0
- /package/.next/standalone/packages/console/.next/static/{6wBvYoE9cCp5ppuzev1KN → ZV7FLBaZ7IVExYMj-OJbA}/_ssgManifest.js +0 -0
package/.next/standalone/packages/console/.next/static/chunks/{17odvid17s2tw.js → 3cae8s07yzv_o.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,86698,e=>{"use strict";e.s(["serializeValue",0,function(e){if(null==e)return"";if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}])},13203,65858,84325,42191,50001,18438,e=>{"use strict";var t=e.i(71645);e.s(["useOnFirstRender",0,function(e){let a=t.useRef(!0);a.current&&(a.current=!1,e())}],13203);var a=e.i(29315),n=e.i(83977),r=e.i(46376),i=e.i(88940),l=e.i(90627),s=e.i(46420),o=e.i(56341);e.s(["useFloatingRootContext",0,function(e){let{open:t=!1,onOpenChange:d,elements:c={}}=e,u=(0,n.useId)(),h=null!=(0,s.useFloatingParentNodeId)(),m=(0,i.useRefWithInit)(()=>new o.FloatingRootStore({open:t,transitionStatus:void 0,onOpenChange:d,referenceElement:c.reference??null,floatingElement:c.floating??null,triggerElements:new l.PopupTriggerMap,floatingId:u,syncOnly:!1,nested:h})).current;return(0,r.useIsoLayoutEffect)(()=>{let e={open:t,floatingId:u};void 0!==c.reference&&(e.referenceElement=c.reference,e.domReferenceElement=(0,a.isElement)(c.reference)?c.reference:null),void 0!==c.floating&&(e.floatingElement=c.floating),m.update(e)},[t,u,c.reference,c.floating,m]),m.context.onOpenChange=d,m.context.nested=h,m}],65858);let d=(e,t)=>Object.is(e,t);function c(e,t,a){return null==e||null==t?Object.is(e,t):a(e,t)}function u(e,t,a){return!!e&&e.some(e=>void 0!==e&&c(t,e,a))}function h(e,t,a){return e?e.findIndex(e=>void 0!==e&&c(e,t,a)):-1}function m(e,t,a,n){let r=n&&Array.isArray(t)?e.findIndex(function(e,t){if(t!==d)return a=>u(e,a,t);let a=new Set(e);return a.delete(void 0),t=>a.has(t)&&(0!==t||e.some(e=>Object.is(t,e)))}(t,a)):h(e,t,a);return -1===r?null:r}e.s(["compareItemEquality",0,c,"defaultItemEquality",0,d,"findItemIndex",0,h,"findSelectionIndex",0,m,"isSelectedValueDirty",0,function(e,t,a){return Array.isArray(e)&&Array.isArray(t)?!function(e,t,a=Object.is){let{length:n}=e;if(n!==t.length)return!1;for(let r=0;r<n;r+=1)if(!a(e[r],t[r]))return!1;return!0}(e,t,(e,t)=>c(e,t,a)):e!==t},"removeItem",0,function(e,t,a){return e.filter(e=>!c(t,e,a))},"resolveSelectedIndex",0,function(e,t,a,n,r,i){return u(n,t,r)?null!=i&&e>i&&u(n,a[i],r)?i:e:e===i?m(a,n,r,!0):i},"selectedValueIncludes",0,u],84325);var f=e.i(86698),p=e.i(43476);function b(e){var t;return"object"==typeof(t=e?.[0])&&null!=t&&Array.isArray(t.items)}function y(e){return b(e)?e.flatMap(e=>e.items):e}function g(e,t){if(t&&null!=e)return t(e)??"";if(e&&"object"==typeof e){if("label"in e&&null!=e.label)return String(e.label);if("value"in e)return String(e.value)}return(0,f.serializeValue)(e)}function v(e,t,a){if(a&&null!=e)return a(e);if(e&&"object"==typeof e&&"label"in e&&null!=e.label)return e.label;if(t&&!Array.isArray(t))return(Object.hasOwn(t,e)?t[e]:void 0)??g(e,a);if(Array.isArray(t)){let n=y(t);if(null==e||"object"!=typeof e){let t=n.find(t=>t.value===e);return t&&null!=t.label?t.label:g(e,a)}if("value"in e){let t=n.find(t=>t&&t.value===e.value);if(t&&null!=t.label)return t.label}}return g(e,a)}e.s(["flattenLeafItems",0,y,"hasNullItemLabel",0,function(e){if(!Array.isArray(e))return null!=e&&"null"in e;if(b(e)){for(let t of e)for(let e of t.items)if(e&&null==e.value&&null!=e.label)return!0;return!1}for(let t of e)if(t&&null==t.value&&null!=t.label)return!0;return!1},"isGroupedItems",0,b,"resolveMultipleLabels",0,function(e,a,n){return e.reduce((e,r,i)=>(i>0&&e.push(", "),e.push((0,p.jsx)(t.Fragment,{children:v(r,a,n)},i)),e),[])},"resolveSelectedLabel",0,v,"stringifyAsLabel",0,g,"stringifyAsValue",0,function(e,t){return t&&null!=e?t(e)??"":e&&"object"==typeof e&&"value"in e&&"label"in e?(0,f.serializeValue)(e.value):(0,f.serializeValue)(e)}],42191),e.s(["getDefaultLabelId",0,function(e){return null==e?void 0:`${e}-label`},"resolveAriaLabelledBy",0,function(e,t){return e??t}],50001);var k=e.i(52245);let x=t.forwardRef(function(e,t){let{className:a,render:n,orientation:r="horizontal",style:i,...l}=e;return(0,k.useRenderElement)("div",e,{state:{orientation:r},ref:t,props:[{role:"presentation"},l]})});e.s(["ListboxSeparator",0,x],18438)},49655,87255,50092,36604,e=>{"use strict";var t=e.i(56420);let a={name:"alarm-clock",size:24,node:[["circle",{cx:"12",cy:"13",r:"8",key:"3y4lt7"}],["path",{d:"M12 9v4l2 2",key:"1c63tq"}],["path",{d:"M5 3 2 6",key:"18tl5t"}],["path",{d:"m22 6-3-3",key:"1opdir"}],["path",{d:"M6.38 18.7 4 21",key:"17xu3x"}],["path",{d:"M17.64 18.67 20 21",key:"kv2oe2"}]]};a.node;let n=(0,t.default)(a);e.s(["AlarmClock",0,n],49655);let r={name:"anchor",size:24,node:[["path",{d:"M12 6v16",key:"nqf5sj"}],["path",{d:"m19 13 2-1a9 9 0 0 1-18 0l2 1",key:"y7qv08"}],["path",{d:"M9 11h6",key:"1fldmi"}],["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}]]};r.node;let i=(0,t.default)(r);e.s(["Anchor",0,i],87255);let l={name:"circle-arrow-right",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m12 16 4-4-4-4",key:"1i9zcv"}],["path",{d:"M8 12h8",key:"1wcyev"}]],aliases:["arrow-right-circle"]};l.node;let s=(0,t.default)(l);e.s(["CircleArrowRight",0,s],50092);let o={name:"circle-check-big",size:24,node:[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],aliases:["check-circle"]};o.node;let d=(0,t.default)(o);e.s(["CircleCheckBig",0,d],36604)},76561,e=>{"use strict";var t=e.i(56420);let a={name:"archive",size:24,node:[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]};a.node;let n=(0,t.default)(a);e.s(["Archive",0,n],76561)},47211,e=>{"use strict";var t=e.i(56420);let a={name:"ban",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]]};a.node;let n=(0,t.default)(a);e.s(["Ban",0,n],47211)},16327,e=>{"use strict";var t=e.i(56420);let a={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};a.node;let n=(0,t.default)(a);e.s(["ChevronDown",0,n],16327)},24071,e=>{"use strict";var t=e.i(56420);let a={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};a.node;let n=(0,t.default)(a);e.s(["ChevronLeft",0,n],24071)},67927,e=>{"use strict";var t=e.i(56420);let a={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};a.node;let n=(0,t.default)(a);e.s(["ChevronRight",0,n],67927)},52886,e=>{"use strict";var t=e.i(56420);let a={name:"circle-dashed",size:24,node:[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]};a.node;let n=(0,t.default)(a);e.s(["CircleDashed",0,n],52886)},19002,e=>{"use strict";var t=e.i(56420);let a={name:"circle-pause",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]],aliases:["pause-circle"]};a.node;let n=(0,t.default)(a);e.s(["CirclePause",0,n],19002)},32297,26391,19647,10001,25799,e=>{"use strict";var t=e.i(56420);let a={name:"circle-play",size:24,node:[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],aliases:["play-circle"]};a.node;let n=(0,t.default)(a);e.s(["CirclePlay",0,n],32297);let r={name:"circle-dot-dashed",size:24,node:[["path",{d:"M10.1 2.18a9.93 9.93 0 0 1 3.8 0",key:"1qdqn0"}],["path",{d:"M17.6 3.71a9.95 9.95 0 0 1 2.69 2.7",key:"1bq7p6"}],["path",{d:"M21.82 10.1a9.93 9.93 0 0 1 0 3.8",key:"1rlaqf"}],["path",{d:"M20.29 17.6a9.95 9.95 0 0 1-2.7 2.69",key:"1xk03u"}],["path",{d:"M13.9 21.82a9.94 9.94 0 0 1-3.8 0",key:"l7re25"}],["path",{d:"M6.4 20.29a9.95 9.95 0 0 1-2.69-2.7",key:"1v18p6"}],["path",{d:"M2.18 13.9a9.93 9.93 0 0 1 0-3.8",key:"xdo6bj"}],["path",{d:"M3.71 6.4a9.95 9.95 0 0 1 2.7-2.69",key:"1jjmaz"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]};r.node;let i=(0,t.default)(r);e.s(["CircleDotDashed",0,i],26391);let l={name:"circle-minus",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]],aliases:["minus-circle"]};l.node;let s=(0,t.default)(l);e.s(["CircleMinus",0,s],19647);let o={name:"flag-off",size:24,node:[["path",{d:"M16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1q158e"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M4 22V4",key:"1plyxx"}],["path",{d:"M7.656 2H8c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10.347",key:"xj1b71"}]]};o.node;let d=(0,t.default)(o);e.s(["FlagOff",0,d],10001);let c={name:"mail-check",size:24,node:[["path",{d:"M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8",key:"12jkf8"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"m16 19 2 2 4-4",key:"1b14m6"}]]};c.node;let u=(0,t.default)(c);e.s(["MailCheck",0,u],25799)},21048,e=>{"use strict";var t=e.i(56420);let a={name:"circle-slash",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]]};a.node;let n=(0,t.default)(a);e.s(["CircleSlash",0,n],21048)},16984,e=>{"use strict";var t=e.i(56420);let a={name:"circle-x",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-circle"]};a.node;let n=(0,t.default)(a);e.s(["CircleX",0,n],16984)},74544,e=>{"use strict";var t=e.i(56420);let a={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};a.node;let n=(0,t.default)(a);e.s(["Clock",0,n],74544)},71028,e=>{"use strict";var t=e.i(56420);let a={name:"gauge",size:24,node:[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]};a.node;let n=(0,t.default)(a);e.s(["Gauge",0,n],71028)},81658,e=>{"use strict";var t=e.i(56420);let a={name:"hourglass",size:24,node:[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]]};a.node;let n=(0,t.default)(a);e.s(["Hourglass",0,n],81658)},85512,e=>{"use strict";var t=e.i(56420);let a={name:"octagon-alert",size:24,node:[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]],aliases:["alert-octagon"]};a.node;let n=(0,t.default)(a);e.s(["OctagonAlert",0,n],85512)},77071,e=>{"use strict";var t=e.i(56420);let a={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};a.node;let n=(0,t.default)(a);e.s(["Plus",0,n],77071)},57665,e=>{"use strict";var t=e.i(56420);let a={name:"power",size:24,node:[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]};a.node;let n=(0,t.default)(a);e.s(["Power",0,n],57665)},95925,85627,e=>{"use strict";var t=e.i(56420);let a={name:"rotate-ccw",size:24,node:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]};a.node;let n=(0,t.default)(a);e.s(["RotateCcw",0,n],95925);let r={name:"sailboat",size:24,node:[["path",{d:"M10 2v15",key:"1qf71f"}],["path",{d:"M7 22a4 4 0 0 1-4-4 1 1 0 0 1 1-1h16a1 1 0 0 1 1 1 4 4 0 0 1-4 4z",key:"1pxcvx"}],["path",{d:"M9.159 2.46a1 1 0 0 1 1.521-.193l9.977 8.98A1 1 0 0 1 20 13H4a1 1 0 0 1-.824-1.567z",key:"5oog16"}]]};r.node;let i=(0,t.default)(r);e.s(["Sailboat",0,i],85627)},66595,e=>{"use strict";var t=e.i(56420);let a={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};a.node;let n=(0,t.default)(a);e.s(["Search",0,n],66595)},19759,e=>{"use strict";var t=e.i(56420);let a={name:"square-pen",size:24,node:[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],aliases:["pen-box","edit","pen-square"]};a.node;let n=(0,t.default)(a);e.s(["SquarePen",0,n],19759)},66787,e=>{"use strict";var t=e.i(56420);let a={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};a.node;let n=(0,t.default)(a);e.s(["TriangleAlert",0,n],66787)},94831,e=>{"use strict";var t=e.i(56420);let a={name:"unplug",size:24,node:[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]]};a.node;let n=(0,t.default)(a);e.s(["Unplug",0,n],94831)},92870,e=>{"use strict";var t=e.i(56420);let a={name:"user-check",size:24,node:[["path",{d:"m16 11 2 2 4-4",key:"9rsbq5"}],["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]};a.node;let n=(0,t.default)(a);e.s(["UserCheck",0,n],92870)},36651,e=>{"use strict";var t=e.i(43476),a=e.i(90063);e.s(["Kbd",0,function({className:e,...n}){return(0,t.jsx)("kbd",{"data-slot":"kbd",className:(0,a.classNames)("inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-xs border border-border bg-muted px-1.25 font-sans text-micro font-medium text-muted-foreground max-sm:hidden",e),...n})}])},19321,e=>{"use strict";var t=e.i(43476),a=e.i(90063);e.s(["Skeleton",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"skeleton","aria-hidden":!0,className:(0,a.classNames)("animate-pulse rounded-sm bg-secondary [animation-duration:var(--duration-pulse)] motion-reduce:animate-none",e),...n})}])},14732,e=>{"use strict";var t=e.i(43476),a=e.i(56420);let n={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]};n.node;let r=(0,a.default)(n),i={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};i.node;let l=(0,a.default)(i);var s=e.i(63707),o=e.i(90063);function d({className:e,...a}){return(0,t.jsx)("th",{"data-slot":"table-head",className:(0,o.classNames)("px-4 text-left align-middle text-caption font-medium whitespace-nowrap text-muted-foreground",e),...a})}e.s(["Table",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto rounded-lg border border-border bg-card shadow-sm",children:(0,t.jsx)("table",{"data-slot":"table",className:(0,o.classNames)("w-full caption-bottom text-body",e),...a})})},"TableBody",0,function({className:e,...a}){return(0,t.jsx)("tbody",{"data-slot":"table-body",className:(0,o.classNames)("[&_tr:last-child]:border-0",e),...a})},"TableCell",0,function({className:e,...a}){return(0,t.jsx)("td",{"data-slot":"table-cell",className:(0,o.classNames)("px-4 align-middle",e),...a})},"TableHead",0,d,"TableHeader",0,function({className:e,...a}){return(0,t.jsx)("thead",{"data-slot":"table-header",className:(0,o.classNames)("bg-muted [&_tr]:border-b",e),...a})},"TableRow",0,function({className:e,...a}){return(0,t.jsx)("tr",{"data-slot":"table-row",className:(0,o.classNames)("h-(--size-row) border-b border-border transition-colors duration-(--duration-fast) hover:bg-muted has-focus-visible:outline-2 has-focus-visible:-outline-offset-2 has-focus-visible:outline-ring data-new:animate-highlight [thead_&]:h-(--size-row-header) [thead_&]:hover:bg-transparent",e),...a})},"TableSortHead",0,function({direction:e,onSort:a,children:n,className:i,...c}){let u="ascending"===e?l:"descending"===e?r:s.ChevronsUpDown;return(0,t.jsx)(d,{"aria-sort":e??"none",className:(0,o.classNames)("px-2",i),...c,children:(0,t.jsxs)("button",{type:"button",onClick:a,className:"inline-flex h-7 items-center gap-1 rounded-sm px-2 font-medium hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring data-sorted:text-foreground","data-sorted":null===e?void 0:"",children:[n,(0,t.jsx)(u,{"aria-hidden":!0,className:(0,o.classNames)("size-3.5 shrink-0",null===e?"opacity-50":void 0)})]})})}],14732)},67874,e=>{"use strict";var t=e.i(43476),a=e.i(90063);e.s(["EmptyState",0,function({title:e,description:n,icon:r,action:i,variant:l="page",className:s}){return"section"===l?(0,t.jsxs)("p",{"data-slot":"empty-state","data-variant":l,className:(0,a.classNames)("rounded-lg border border-border px-4 py-3 text-center text-meta text-muted-foreground",s),children:[e,n?(0,t.jsxs)(t.Fragment,{children:[" ",n]}):null]}):"no-results"===l?(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":l,className:(0,a.classNames)("flex flex-col items-center gap-2.5 rounded-lg border border-border bg-card px-4 py-6 text-center",s),children:[(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:e}),i]}):(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":l,className:(0,a.classNames)("flex flex-col items-center gap-3 rounded-lg border border-dashed border-border bg-card px-6 py-10 text-center",s),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}),n?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:n}):null,i?(0,t.jsx)("div",{className:"mt-1 max-sm:w-full max-sm:[&>*]:w-full",children:i}):null]})}])},88393,e=>{"use strict";var t=e.i(43476),a=e.i(90063),n=e.i(19321);function r(e){return Array.from({length:e},(e,t)=>`row-${String(t)}`)}e.s(["LoadingSkeleton",0,function({variant:e,rows:i=4,label:l="Loading",className:s}){return(0,t.jsxs)("div",{role:"status","data-slot":"loading-skeleton","data-variant":e,className:(0,a.classNames)("w-full",s),children:[(0,t.jsx)("span",{className:"sr-only",children:l}),"table"===e?(0,t.jsxs)("div",{className:"overflow-hidden rounded-lg border border-border bg-card shadow-sm",children:[(0,t.jsx)("div",{className:"h-(--size-row-header) border-b border-border bg-muted"}),r(i).map(e=>(0,t.jsxs)("div",{className:"flex h-(--size-row) items-center gap-8 border-b border-border px-4 last:border-0",children:[(0,t.jsx)(n.Skeleton,{className:"h-2.5 w-24"}),(0,t.jsx)(n.Skeleton,{className:"h-5 w-16"}),(0,t.jsx)(n.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(n.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)(n.Skeleton,{className:"h-2.5 w-20"}),(0,t.jsx)(n.Skeleton,{className:"h-6 w-10"}),(0,t.jsx)(n.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)(n.Skeleton,{className:"h-7 w-48"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(n.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(n.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(n.Skeleton,{className:"h-16 w-full rounded-lg"})]}):null,"list"===e?(0,t.jsx)("div",{className:"overflow-hidden rounded-lg border border-border bg-card",children:r(i).map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-2.5 border-b border-border px-3.5 py-3 last:border-0",children:[(0,t.jsxs)("div",{className:"flex justify-between",children:[(0,t.jsx)(n.Skeleton,{className:"h-3 w-28"}),(0,t.jsx)(n.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(n.Skeleton,{className:"h-2.5 w-44"})]},e))}):null]})}])},78865,e=>{"use strict";var t=e.i(43476),a=e.i(49655),n=e.i(87255),r=e.i(76561),i=e.i(47211),l=e.i(22768),s=e.i(50092),o=e.i(36604),d=e.i(19002),c=e.i(32297),u=e.i(21048),h=e.i(74544),m=e.i(85595),f=e.i(52886),p=e.i(26391),b=e.i(19647),y=e.i(16984),g=e.i(10001),v=e.i(71028),k=e.i(81658),x=e.i(44594),w=e.i(11568),j=e.i(25799),N=e.i(85512),C=e.i(57665),S=e.i(95925),M=e.i(85627),I=e.i(66787),z=e.i(92870),A=e.i(56420);let q={name:"user-round-search",size:24,node:[["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M2 21a8 8 0 0 1 10.434-7.62",key:"1yezr2"}],["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["path",{d:"m22 22-1.9-1.9",key:"1e5ubv"}]]};q.node;let R=(0,A.default)(q);var O=e.i(90063),L=e.i(66390);let P={waiting:"border-tone-waiting-border bg-tone-waiting-bg text-tone-waiting-fg",active:"border-tone-active-border bg-tone-active-bg text-tone-active-fg",ok:"border-tone-ok-border bg-tone-ok-bg text-tone-ok-fg",attention:"border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg",ended:"border-tone-ended-border bg-tone-ended-bg text-tone-ended-fg"},D={awaitingCrew:{tone:"waiting",Icon:f.CircleDashed,label:"Awaiting crew"},crewed:{tone:"ok",Icon:z.UserCheck,label:"Crewed"},retired:{tone:"ended",Icon:r.Archive,label:"Retired"},pending:{tone:"waiting",Icon:k.Hourglass,label:"Pending"},received:{tone:"active",Icon:x.Inbox,label:"Received"},handed:{tone:"active",Icon:s.CircleArrowRight,label:"Handed (pulled)"},handedPushed:{tone:"active",Icon:s.CircleArrowRight,label:"Handed"},overdue:{tone:"attention",Icon:a.AlarmClock,label:"Overdue"},acknowledged:{tone:"ok",Icon:m.CircleCheck,label:"Acknowledged"},handled:{tone:"ok",Icon:o.CircleCheckBig,label:"Handled"},notHandled:{tone:"attention",Icon:l.CircleAlert,label:"Not handled"},undeliverable:{tone:"attention",Icon:y.CircleX,label:"Undeliverable"},dismissed:{tone:"ended",Icon:b.CircleMinus,label:"Dismissed"},abandoned:{tone:"ended",Icon:i.Ban,label:"Abandoned"},forming:{tone:"waiting",Icon:p.CircleDotDashed,label:"Forming"},sailing:{tone:"ok",Icon:M.Sailboat,label:"Sailing"},"standing-down":{tone:"active",Icon:n.Anchor,label:"Standing down"},disbanded:{tone:"ended",Icon:g.FlagOff,label:"Disbanded"},"at-limit":{tone:"waiting",Icon:v.Gauge,label:"At limit"},"over-limit":{tone:"attention",Icon:I.TriangleAlert,label:"Over limit"},needsCrew:{tone:"waiting",Icon:h.Clock,label:"Needs crew"},crewedByHand:{tone:"ok",Icon:z.UserCheck,label:"Crewed by hand"},crewing:{tone:"active",Icon:w.LoaderCircle,label:"Crewing"},running:{tone:"ok",Icon:c.CirclePlay,label:"Running"},restarting:{tone:"waiting",Icon:S.RotateCcw,label:"Restarting"},crashed:{tone:"attention",Icon:y.CircleX,label:"Crashed"},releasing:{tone:"active",Icon:C.Power,label:"Releasing"},stuck:{tone:"attention",Icon:N.OctagonAlert,label:"Stuck"},delivering:{tone:"ok",Icon:j.MailCheck,label:"Delivering"},noShipCanTake:{tone:"attention",Icon:u.CircleSlash,label:"No ship can take"},waitingForCrew:{tone:"waiting",Icon:R,label:"Waiting for crew"},stalledInFlight:{tone:"waiting",Icon:d.CirclePause,label:"Stalled in flight"}};e.s(["StatusBadge",0,function({status:e,className:a}){let{tone:n,Icon:r,label:i}=D[e];return(0,t.jsxs)(L.Badge,{variant:"outline","data-slot":"status-badge","data-status":e,className:(0,O.classNames)(P[n],"abandoned"===e?"border-dashed":void 0,a),children:[(0,t.jsx)(r,{"aria-hidden":!0}),i]})},"statusLabel",0,function(e){return D[e].label}],78865)},77880,85538,e=>{"use strict";var t=e.i(43476),a=e.i(67927),n=e.i(66595),r=e.i(19759),i=e.i(22016),l=e.i(15905),s=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:a}){let{label:n,dot:r}=d[e];return(0,t.jsxs)("span",{"data-slot":"live-status","data-state":e,"aria-live":"polite",className:(0,o.classNames)("inline-flex items-center gap-1.5 text-meta text-muted-foreground",a),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:(0,o.classNames)("size-2 shrink-0 rounded-full",r)}),n]})}e.s(["Header",0,function({breadcrumb:e,parents:o=[],live:d,onCompose:u,onSearch:h}){return(0,t.jsxs)("header",{"data-slot":"header",className:"sticky top-0 z-30 hidden h-(--size-header) shrink-0 items-center justify-between gap-4 border-b border-border bg-background px-6 sm:flex",children:[(0,t.jsx)("nav",{"aria-label":"Breadcrumb","data-testid":"header-breadcrumb",className:"min-w-0 text-body",children:(0,t.jsxs)("ol",{className:"flex min-w-0 items-center gap-1.5",children:[o.map(e=>(0,t.jsxs)("li",{className:"flex shrink-0 items-center gap-1.5",children:[(0,t.jsx)(i.default,{href:e.href,className:"text-muted-foreground hover:text-foreground hover:underline",children:e.label}),(0,t.jsx)(a.ChevronRight,{"aria-hidden":!0,className:"size-3.5 text-muted-foreground"})]},e.href)),(0,t.jsx)("li",{"aria-current":"page",className:"truncate font-medium text-foreground",children:e})]})}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(c,{state:d}),h?(0,t.jsxs)(l.Button,{size:"sm",icon:(0,t.jsx)(n.Search,{"aria-hidden":!0}),"data-testid":"header-search",className:"w-60 justify-start font-normal text-muted-foreground",onClick:h,children:[(0,t.jsx)("span",{className:"grow text-left",children:"Search ships or jump to"}),(0,t.jsx)(s.Kbd,{children:"⌘K"})]}):null,u?(0,t.jsx)(l.Button,{size:"sm",icon:(0,t.jsx)(r.SquarePen,{"aria-hidden":!0}),"data-testid":"header-compose",onClick:u,children:"Compose"}):null]})]})}],77880);var u=e.i(24071),h=e.i(57957);e.s(["TopBar",0,function({title:e,live:a,actions:r,back:s,account:o,onSearch:d}){let m=d&&!s?d:void 0;return(0,t.jsxs)("header",{"data-slot":"top-bar","data-mode":s?"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:[s?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(i.default,{href:s.href,className:"-ml-1.5 inline-flex h-(--size-control-touch) shrink-0 items-center gap-0.5 rounded-md pr-2 text-body-touch text-foreground focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon)",children:[(0,t.jsx)(u.ChevronLeft,{"aria-hidden":!0}),s.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:a}),r||m||o&&!s?(0,t.jsxs)("div",{className:"ml-auto flex items-center gap-1",children:[m?(0,t.jsx)(l.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Search ships or jump to","data-testid":"top-bar-search",onClick:m,children:(0,t.jsx)(n.Search,{"aria-hidden":!0})}):null,r,o&&!s?(0,t.jsx)(h.AccountMenuSheet,{...o}):null]}):null]})}],85538)},19846,e=>{"use strict";var t=e.i(43476),a=e.i(94831),n=e.i(22016),r=e.i(15905),i=e.i(67874);e.s(["SquadronsNotConnected",0,function(){return(0,t.jsx)(i.EmptyState,{icon:(0,t.jsx)(a.Unplug,{"aria-hidden":!0}),title:"Squadrons is not connected",description:"Connect it in Settings; squadrons, blueprints and templates show up here then.",action:(0,t.jsx)(r.Button,{nativeButton:!1,render:(0,t.jsx)(n.default,{href:"/settings"}),"data-testid":"squadrons-open-settings",children:"Open Settings"})})}])},51442,e=>{"use strict";var t=e.i(43476),a=e.i(71645),n=e.i(17540),r=e.i(25242),i=e.i(8041),l=e.i(5387),s=e.i(96994),o=e.i(78608),d=e.i(48695),c=e.i(265);let u=(0,n.lazyDialog)(()=>e.A(67928).then(e=>e.FormSquadronDialog),e=>e.isOpen);e.s(["FormSquadron",0,function({blueprints:e,templates:n,isOpen:h,onOpenChange:m,initial:f,onFormed:p}){let b=(0,c.useHasTrierarchPlugin)(),y=(0,d.useFormSquadron)(),[g,v]=(0,a.useState)(),k=(0,d.useBlueprintCrew)(b?g:void 0),x=(0,c.useMachines)(),w=(0,l.useLabelContext)(),{shipLabelsMax:j}=(0,r.useConsoleConstants)(),N=void 0===w||void 0===x.data?void 0:(0,o.machineLabelsInputOf)(w,{machines:x.data,shipLabelsMax:j});return(0,t.jsx)(u,{blueprints:e,templates:n,...void 0===f?{}:{initial:f},isOpen:h,onOpenChange:m,isPending:y.isPending,...null===y.error?{}:{error:y.error.message},onPicked:e=>{y.reset(),v(e)},...b?{crew:{state:k.isError||x.isError?"error":void 0===k.data||void 0===x.data?"loading":"ready",members:k.data??[],offers:(0,i.offersOf)(x.data??[]),...void 0===w?{}:{context:w},...void 0===N?{}:{machineLabels:N},...null===k.error?null===x.error?{}:{error:x.error.message}:{error:k.error.message},onRetry:()=>{k.refetch(),x.refetch()}}}:{},onSubmit:(e,t)=>{y.mutate({blueprint:e,...void 0===t?{}:{members:(0,s.formMembersOf)(t,w)}},{onSuccess:e=>{p(e.squadronId)}})}})}])},96994,e=>{"use strict";var t=e.i(80581);function a(e,t){return t?.labels.find(t=>t.key===e.key)?.values.find(t=>t.value===e.value)?.id}function n(e){return[...void 0===e.workspace?["workspace"]:[],...e.parameters.filter(e=>""===e.value.trim()).map(e=>e.name)]}function r(e,a){return[...void 0===a?[]:(0,t.pickedChips)(e.machineLabels,a).map(e=>({key:e.key,value:e.value})),...e.unknownLabels.map(e=>{let[t="",a=""]=e.split("=");return{key:t,value:a}})]}function i(e){return"worktree"===e.kind?`worktree:${e.repository}`:`folder:${e.name}`}e.s(["formMembersOf",0,function(e,t){return Object.fromEntries(e.map(e=>[e.slot,{crew:{...""===e.harness?{}:{harness:e.harness},...void 0===e.workspace?{}:{workspace:e.workspace},...""===e.firstPrompt.trim()?{}:{firstPrompt:e.firstPrompt},options:e.options,machineLabels:r(e,t)},parameters:Object.fromEntries(e.parameters.map(e=>[e.name,e.value]))}]))},"labelErrorSlot",0,function(e,t){let{members:a,context:n}=t,[,i]=/machine label (\S+?),/.exec(e)??[];if(void 0!==i)return a.find(e=>r(e,n).some(e=>`${e.key}=${e.value}`===i))?.slot},"membersOf",0,function(e,t){return e.map(e=>{let n=e.crew.machineLabels??[];return{slot:e.slot,role:e.role,template:`${e.template.name}@${String(e.template.version)}`,harness:e.crew.harness??"",workspace:function(e){if(void 0!==e)return"worktree"===e.kind?{kind:"worktree",repository:e.repository}:{kind:"folder",name:e.name}}(e.crew.workspace),firstPrompt:e.crew.firstPrompt??"",options:{...e.crew.options},machineLabels:n.flatMap(e=>a(e,t)??[]),unknownLabels:n.filter(e=>void 0===a(e,t)).map(e=>`${e.key}=${e.value}`),parameters:e.parameters.map(e=>({name:e.name,description:e.description,value:e.value??""}))}})},"missingOf",0,n,"readyCount",0,function(e){return{ready:e.filter(e=>0===n(e).length).length,total:e.length}},"withWorkspaceForAll",0,function(e,t){return e.map(e=>void 0===e.workspace?{...e,workspace:t}:e)},"workspaceFromItem",0,function(e){let[t,...a]=e.split(":"),n=a.join(":");return"worktree"===t?{kind:"worktree",repository:n}:"folder"===t?{kind:"folder",name:n}:void 0},"workspaceItemOf",0,i,"workspaceItemsOf",0,function(e,t){let a=new Map;for(let t of e){for(let e of t.repositories)a.set(i({kind:"worktree",repository:e}),`${e} \xb7 new worktree`);for(let e of t.folders)a.set(i({kind:"folder",name:e}),`${e} \xb7 folder, as it is`)}for(let{workspace:e}of t)void 0===e||a.has(i(e))||a.set(i(e),"worktree"===e.kind?`${e.repository} \xb7 new worktree, no machine offers it yet`:`${e.name} \xb7 folder, no machine offers it yet`);return Object.fromEntries(a)}])},18423,e=>{"use strict";var t=e.i(12598),a=e.i(5861),n=e.i(71645),r=e.i(86413),i=e.i(27702);let l=new Set(["FleetInitialised","ShipCommissioned","ShipClaimed","LeaseRevoked","CredentialRevoked","StartingPromptIssued","ShipRetired","DeliveryAcknowledged","DeliveryUndeliverable","ShipReported","CrewRequested","CrewRequestRemoved","CrewAssigned","CrewStatusChanged","CrewRequestExplained","CrewRequestGivenBack","LabelAssigned","LabelUnassigned","LabelRetired"]);async function s(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","DeliveryNotHandled","DeliveryDismissed"]);e.s(["useLiveFleet",0,function(){let e=(0,i.useTRPC)(),c=(0,t.useQueryClient)(),[u,h]=(0,n.useState)(new Set),m=e=>{s(c,e)},f=(0,a.useSubscription)(e.fleet.events.subscriptionOptions({lastEventId:null},{onData:({data:t})=>{var a,n,i;if("resync"===t.kind){m(e.fleet.pathKey()),m(r.INBOX_KEY);return}let{event:s}=t;for(let t of new Set([s.shipId,s.actorShipId]))null!==t&&(m(e.fleet.ship.queryKey({shipId:t})),m(e.fleet.shipTimeline.queryKey({shipId:t})),m(e.fleet.shipWay.queryKey({shipId:t})));if(null!==s.messageId&&(m(e.fleet.shipMessages.pathKey()),m(e.fleet.shipWay.pathKey()),m(e.fleet.overdue.queryKey()),m(e.fleet.message.queryKey({messageId:s.messageId})),m(e.fleet.inbox.pathKey()),m(r.INBOX_KEY),m(e.fleet.noShipCanTake.queryKey()),m(e.fleet.health.queryKey())),a=s.type,d.has(a)&&m(e.fleet.needsAttention.queryKey()),n=s.type,o.has(n)&&m(e.fleet.labels.queryKey()),"NetworkRulesDeclared"===s.type&&m(e.fleet.declaredNetworkRules.queryKey()),i=s.type,!l.has(i))return;m(e.fleet.list.queryKey()),m(e.fleet.noShipCanTake.queryKey()),m(e.fleet.health.queryKey());let{shipId:c}=s;"ShipCommissioned"===s.type&&null!==c&&h(e=>new Set([...e,c]))}}));return{live:function(e){switch(e){case"pending":return"live";case"connecting":return"reconnecting";case"idle":case"error":return"offline"}}(f.status),newShipIds:u,error:f.error}}])},28459,e=>{"use strict";var t=e.i(54616),a=e.i(66027),n=e.i(12598),r=e.i(27702);function i(e){let t=String(e.attempts-1);return e.isPushed?`Handed ${t} times, never confirmed; fifth refused: undeliverable.`:`Handed (pulled) ${t} times, never acknowledged; fifth receive refused: undeliverable.`}let l="Acknowledged, then its turn died; handed once more, and that turn died too: not handled.";function s(){let e=(0,r.useTRPC)(),t=(0,n.useQueryClient)();return()=>t.invalidateQueries({queryKey:e.fleet.pathKey()})}e.s(["DISMISSED_TOAST",0,{title:"Delivery dismissed",description:"It stays in the timelines as dismissed."},"attentionReason",0,function(e){switch(e.state){case"undeliverable":return i(e);case"notHandled":return null===e.reason?l:`${l} Its crew said: ${e.reason}.`}},"canResend",0,function(e){return!e.message.isPing},"deliveryWithId",0,function(e,t){return e?.find(e=>e.deliveryId===t)},"resentToast",0,function(e){return{title:"Message resent",description:`A new message went to ${function(e){let{recipient:t}=e.message;return"ship"===t.kind?t.ship.name:`any ship of type ${t.type}`}(e)}. The original is dismissed.`}},"undeliverableReason",0,i,"useDismissDelivery",0,function(){let e=(0,r.useTRPC)(),a=s();return(0,t.useMutation)(e.fleet.dismiss.mutationOptions({onSuccess:a}))},"useNeedsAttention",0,function(){let e=(0,r.useTRPC)();return(0,a.useQuery)(e.fleet.needsAttention.queryOptions())},"useResendDelivery",0,function(){let e=(0,r.useTRPC)(),a=s();return(0,t.useMutation)(e.fleet.resend.mutationOptions({onSuccess:a}))}])}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,86698,e=>{"use strict";e.s(["serializeValue",0,function(e){if(null==e)return"";if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}])},13203,65858,84325,42191,50001,18438,e=>{"use strict";var t=e.i(71645);e.s(["useOnFirstRender",0,function(e){let a=t.useRef(!0);a.current&&(a.current=!1,e())}],13203);var a=e.i(29315),n=e.i(83977),r=e.i(46376),i=e.i(88940),l=e.i(90627),s=e.i(46420),o=e.i(56341);e.s(["useFloatingRootContext",0,function(e){let{open:t=!1,onOpenChange:d,elements:c={}}=e,u=(0,n.useId)(),h=null!=(0,s.useFloatingParentNodeId)(),m=(0,i.useRefWithInit)(()=>new o.FloatingRootStore({open:t,transitionStatus:void 0,onOpenChange:d,referenceElement:c.reference??null,floatingElement:c.floating??null,triggerElements:new l.PopupTriggerMap,floatingId:u,syncOnly:!1,nested:h})).current;return(0,r.useIsoLayoutEffect)(()=>{let e={open:t,floatingId:u};void 0!==c.reference&&(e.referenceElement=c.reference,e.domReferenceElement=(0,a.isElement)(c.reference)?c.reference:null),void 0!==c.floating&&(e.floatingElement=c.floating),m.update(e)},[t,u,c.reference,c.floating,m]),m.context.onOpenChange=d,m.context.nested=h,m}],65858);let d=(e,t)=>Object.is(e,t);function c(e,t,a){return null==e||null==t?Object.is(e,t):a(e,t)}function u(e,t,a){return!!e&&e.some(e=>void 0!==e&&c(t,e,a))}function h(e,t,a){return e?e.findIndex(e=>void 0!==e&&c(e,t,a)):-1}function m(e,t,a,n){let r=n&&Array.isArray(t)?e.findIndex(function(e,t){if(t!==d)return a=>u(e,a,t);let a=new Set(e);return a.delete(void 0),t=>a.has(t)&&(0!==t||e.some(e=>Object.is(t,e)))}(t,a)):h(e,t,a);return -1===r?null:r}e.s(["compareItemEquality",0,c,"defaultItemEquality",0,d,"findItemIndex",0,h,"findSelectionIndex",0,m,"isSelectedValueDirty",0,function(e,t,a){return Array.isArray(e)&&Array.isArray(t)?!function(e,t,a=Object.is){let{length:n}=e;if(n!==t.length)return!1;for(let r=0;r<n;r+=1)if(!a(e[r],t[r]))return!1;return!0}(e,t,(e,t)=>c(e,t,a)):e!==t},"removeItem",0,function(e,t,a){return e.filter(e=>!c(t,e,a))},"resolveSelectedIndex",0,function(e,t,a,n,r,i){return u(n,t,r)?null!=i&&e>i&&u(n,a[i],r)?i:e:e===i?m(a,n,r,!0):i},"selectedValueIncludes",0,u],84325);var f=e.i(86698),p=e.i(43476);function b(e){var t;return"object"==typeof(t=e?.[0])&&null!=t&&Array.isArray(t.items)}function y(e){return b(e)?e.flatMap(e=>e.items):e}function g(e,t){if(t&&null!=e)return t(e)??"";if(e&&"object"==typeof e){if("label"in e&&null!=e.label)return String(e.label);if("value"in e)return String(e.value)}return(0,f.serializeValue)(e)}function v(e,t,a){if(a&&null!=e)return a(e);if(e&&"object"==typeof e&&"label"in e&&null!=e.label)return e.label;if(t&&!Array.isArray(t))return(Object.hasOwn(t,e)?t[e]:void 0)??g(e,a);if(Array.isArray(t)){let n=y(t);if(null==e||"object"!=typeof e){let t=n.find(t=>t.value===e);return t&&null!=t.label?t.label:g(e,a)}if("value"in e){let t=n.find(t=>t&&t.value===e.value);if(t&&null!=t.label)return t.label}}return g(e,a)}e.s(["flattenLeafItems",0,y,"hasNullItemLabel",0,function(e){if(!Array.isArray(e))return null!=e&&"null"in e;if(b(e)){for(let t of e)for(let e of t.items)if(e&&null==e.value&&null!=e.label)return!0;return!1}for(let t of e)if(t&&null==t.value&&null!=t.label)return!0;return!1},"isGroupedItems",0,b,"resolveMultipleLabels",0,function(e,a,n){return e.reduce((e,r,i)=>(i>0&&e.push(", "),e.push((0,p.jsx)(t.Fragment,{children:v(r,a,n)},i)),e),[])},"resolveSelectedLabel",0,v,"stringifyAsLabel",0,g,"stringifyAsValue",0,function(e,t){return t&&null!=e?t(e)??"":e&&"object"==typeof e&&"value"in e&&"label"in e?(0,f.serializeValue)(e.value):(0,f.serializeValue)(e)}],42191),e.s(["getDefaultLabelId",0,function(e){return null==e?void 0:`${e}-label`},"resolveAriaLabelledBy",0,function(e,t){return e??t}],50001);var k=e.i(52245);let x=t.forwardRef(function(e,t){let{className:a,render:n,orientation:r="horizontal",style:i,...l}=e;return(0,k.useRenderElement)("div",e,{state:{orientation:r},ref:t,props:[{role:"presentation"},l]})});e.s(["ListboxSeparator",0,x],18438)},49655,87255,50092,36604,e=>{"use strict";var t=e.i(56420);let a={name:"alarm-clock",size:24,node:[["circle",{cx:"12",cy:"13",r:"8",key:"3y4lt7"}],["path",{d:"M12 9v4l2 2",key:"1c63tq"}],["path",{d:"M5 3 2 6",key:"18tl5t"}],["path",{d:"m22 6-3-3",key:"1opdir"}],["path",{d:"M6.38 18.7 4 21",key:"17xu3x"}],["path",{d:"M17.64 18.67 20 21",key:"kv2oe2"}]]};a.node;let n=(0,t.default)(a);e.s(["AlarmClock",0,n],49655);let r={name:"anchor",size:24,node:[["path",{d:"M12 6v16",key:"nqf5sj"}],["path",{d:"m19 13 2-1a9 9 0 0 1-18 0l2 1",key:"y7qv08"}],["path",{d:"M9 11h6",key:"1fldmi"}],["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}]]};r.node;let i=(0,t.default)(r);e.s(["Anchor",0,i],87255);let l={name:"circle-arrow-right",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m12 16 4-4-4-4",key:"1i9zcv"}],["path",{d:"M8 12h8",key:"1wcyev"}]],aliases:["arrow-right-circle"]};l.node;let s=(0,t.default)(l);e.s(["CircleArrowRight",0,s],50092);let o={name:"circle-check-big",size:24,node:[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],aliases:["check-circle"]};o.node;let d=(0,t.default)(o);e.s(["CircleCheckBig",0,d],36604)},76561,e=>{"use strict";var t=e.i(56420);let a={name:"archive",size:24,node:[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]};a.node;let n=(0,t.default)(a);e.s(["Archive",0,n],76561)},47211,e=>{"use strict";var t=e.i(56420);let a={name:"ban",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]]};a.node;let n=(0,t.default)(a);e.s(["Ban",0,n],47211)},16327,e=>{"use strict";var t=e.i(56420);let a={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};a.node;let n=(0,t.default)(a);e.s(["ChevronDown",0,n],16327)},24071,e=>{"use strict";var t=e.i(56420);let a={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};a.node;let n=(0,t.default)(a);e.s(["ChevronLeft",0,n],24071)},67927,e=>{"use strict";var t=e.i(56420);let a={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};a.node;let n=(0,t.default)(a);e.s(["ChevronRight",0,n],67927)},52886,e=>{"use strict";var t=e.i(56420);let a={name:"circle-dashed",size:24,node:[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]};a.node;let n=(0,t.default)(a);e.s(["CircleDashed",0,n],52886)},19002,e=>{"use strict";var t=e.i(56420);let a={name:"circle-pause",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]],aliases:["pause-circle"]};a.node;let n=(0,t.default)(a);e.s(["CirclePause",0,n],19002)},32297,26391,19647,10001,25799,e=>{"use strict";var t=e.i(56420);let a={name:"circle-play",size:24,node:[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],aliases:["play-circle"]};a.node;let n=(0,t.default)(a);e.s(["CirclePlay",0,n],32297);let r={name:"circle-dot-dashed",size:24,node:[["path",{d:"M10.1 2.18a9.93 9.93 0 0 1 3.8 0",key:"1qdqn0"}],["path",{d:"M17.6 3.71a9.95 9.95 0 0 1 2.69 2.7",key:"1bq7p6"}],["path",{d:"M21.82 10.1a9.93 9.93 0 0 1 0 3.8",key:"1rlaqf"}],["path",{d:"M20.29 17.6a9.95 9.95 0 0 1-2.7 2.69",key:"1xk03u"}],["path",{d:"M13.9 21.82a9.94 9.94 0 0 1-3.8 0",key:"l7re25"}],["path",{d:"M6.4 20.29a9.95 9.95 0 0 1-2.69-2.7",key:"1v18p6"}],["path",{d:"M2.18 13.9a9.93 9.93 0 0 1 0-3.8",key:"xdo6bj"}],["path",{d:"M3.71 6.4a9.95 9.95 0 0 1 2.7-2.69",key:"1jjmaz"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]};r.node;let i=(0,t.default)(r);e.s(["CircleDotDashed",0,i],26391);let l={name:"circle-minus",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]],aliases:["minus-circle"]};l.node;let s=(0,t.default)(l);e.s(["CircleMinus",0,s],19647);let o={name:"flag-off",size:24,node:[["path",{d:"M16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1q158e"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M4 22V4",key:"1plyxx"}],["path",{d:"M7.656 2H8c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10.347",key:"xj1b71"}]]};o.node;let d=(0,t.default)(o);e.s(["FlagOff",0,d],10001);let c={name:"mail-check",size:24,node:[["path",{d:"M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8",key:"12jkf8"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"m16 19 2 2 4-4",key:"1b14m6"}]]};c.node;let u=(0,t.default)(c);e.s(["MailCheck",0,u],25799)},21048,e=>{"use strict";var t=e.i(56420);let a={name:"circle-slash",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]]};a.node;let n=(0,t.default)(a);e.s(["CircleSlash",0,n],21048)},16984,e=>{"use strict";var t=e.i(56420);let a={name:"circle-x",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-circle"]};a.node;let n=(0,t.default)(a);e.s(["CircleX",0,n],16984)},74544,e=>{"use strict";var t=e.i(56420);let a={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};a.node;let n=(0,t.default)(a);e.s(["Clock",0,n],74544)},71028,e=>{"use strict";var t=e.i(56420);let a={name:"gauge",size:24,node:[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]};a.node;let n=(0,t.default)(a);e.s(["Gauge",0,n],71028)},81658,e=>{"use strict";var t=e.i(56420);let a={name:"hourglass",size:24,node:[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]]};a.node;let n=(0,t.default)(a);e.s(["Hourglass",0,n],81658)},85512,e=>{"use strict";var t=e.i(56420);let a={name:"octagon-alert",size:24,node:[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]],aliases:["alert-octagon"]};a.node;let n=(0,t.default)(a);e.s(["OctagonAlert",0,n],85512)},77071,e=>{"use strict";var t=e.i(56420);let a={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};a.node;let n=(0,t.default)(a);e.s(["Plus",0,n],77071)},57665,e=>{"use strict";var t=e.i(56420);let a={name:"power",size:24,node:[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]};a.node;let n=(0,t.default)(a);e.s(["Power",0,n],57665)},95925,85627,e=>{"use strict";var t=e.i(56420);let a={name:"rotate-ccw",size:24,node:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]};a.node;let n=(0,t.default)(a);e.s(["RotateCcw",0,n],95925);let r={name:"sailboat",size:24,node:[["path",{d:"M10 2v15",key:"1qf71f"}],["path",{d:"M7 22a4 4 0 0 1-4-4 1 1 0 0 1 1-1h16a1 1 0 0 1 1 1 4 4 0 0 1-4 4z",key:"1pxcvx"}],["path",{d:"M9.159 2.46a1 1 0 0 1 1.521-.193l9.977 8.98A1 1 0 0 1 20 13H4a1 1 0 0 1-.824-1.567z",key:"5oog16"}]]};r.node;let i=(0,t.default)(r);e.s(["Sailboat",0,i],85627)},66595,e=>{"use strict";var t=e.i(56420);let a={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};a.node;let n=(0,t.default)(a);e.s(["Search",0,n],66595)},19759,e=>{"use strict";var t=e.i(56420);let a={name:"square-pen",size:24,node:[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],aliases:["pen-box","edit","pen-square"]};a.node;let n=(0,t.default)(a);e.s(["SquarePen",0,n],19759)},66787,e=>{"use strict";var t=e.i(56420);let a={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};a.node;let n=(0,t.default)(a);e.s(["TriangleAlert",0,n],66787)},94831,e=>{"use strict";var t=e.i(56420);let a={name:"unplug",size:24,node:[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]]};a.node;let n=(0,t.default)(a);e.s(["Unplug",0,n],94831)},92870,e=>{"use strict";var t=e.i(56420);let a={name:"user-check",size:24,node:[["path",{d:"m16 11 2 2 4-4",key:"9rsbq5"}],["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]};a.node;let n=(0,t.default)(a);e.s(["UserCheck",0,n],92870)},36651,e=>{"use strict";var t=e.i(43476),a=e.i(90063);e.s(["Kbd",0,function({className:e,...n}){return(0,t.jsx)("kbd",{"data-slot":"kbd",className:(0,a.classNames)("inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-xs border border-border bg-muted px-1.25 font-sans text-micro font-medium text-muted-foreground max-sm:hidden",e),...n})}])},19321,e=>{"use strict";var t=e.i(43476),a=e.i(90063);e.s(["Skeleton",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"skeleton","aria-hidden":!0,className:(0,a.classNames)("animate-pulse rounded-sm bg-secondary [animation-duration:var(--duration-pulse)] motion-reduce:animate-none",e),...n})}])},14732,e=>{"use strict";var t=e.i(43476),a=e.i(56420);let n={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]};n.node;let r=(0,a.default)(n),i={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};i.node;let l=(0,a.default)(i);var s=e.i(63707),o=e.i(90063);function d({className:e,...a}){return(0,t.jsx)("th",{"data-slot":"table-head",className:(0,o.classNames)("px-4 text-left align-middle text-caption font-medium whitespace-nowrap text-muted-foreground",e),...a})}e.s(["Table",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto rounded-lg border border-border bg-card shadow-sm",children:(0,t.jsx)("table",{"data-slot":"table",className:(0,o.classNames)("w-full caption-bottom text-body",e),...a})})},"TableBody",0,function({className:e,...a}){return(0,t.jsx)("tbody",{"data-slot":"table-body",className:(0,o.classNames)("[&_tr:last-child]:border-0",e),...a})},"TableCell",0,function({className:e,...a}){return(0,t.jsx)("td",{"data-slot":"table-cell",className:(0,o.classNames)("px-4 align-middle",e),...a})},"TableHead",0,d,"TableHeader",0,function({className:e,...a}){return(0,t.jsx)("thead",{"data-slot":"table-header",className:(0,o.classNames)("bg-muted [&_tr]:border-b",e),...a})},"TableRow",0,function({className:e,...a}){return(0,t.jsx)("tr",{"data-slot":"table-row",className:(0,o.classNames)("h-(--size-row) border-b border-border transition-colors duration-(--duration-fast) hover:bg-muted has-focus-visible:outline-2 has-focus-visible:-outline-offset-2 has-focus-visible:outline-ring data-new:animate-highlight [thead_&]:h-(--size-row-header) [thead_&]:hover:bg-transparent",e),...a})},"TableSortHead",0,function({direction:e,onSort:a,children:n,className:i,...c}){let u="ascending"===e?l:"descending"===e?r:s.ChevronsUpDown;return(0,t.jsx)(d,{"aria-sort":e??"none",className:(0,o.classNames)("px-2",i),...c,children:(0,t.jsxs)("button",{type:"button",onClick:a,className:"inline-flex h-7 items-center gap-1 rounded-sm px-2 font-medium hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring data-sorted:text-foreground","data-sorted":null===e?void 0:"",children:[n,(0,t.jsx)(u,{"aria-hidden":!0,className:(0,o.classNames)("size-3.5 shrink-0",null===e?"opacity-50":void 0)})]})})}],14732)},67874,e=>{"use strict";var t=e.i(43476),a=e.i(90063);e.s(["EmptyState",0,function({title:e,description:n,icon:r,action:i,variant:l="page",className:s}){return"section"===l?(0,t.jsxs)("p",{"data-slot":"empty-state","data-variant":l,className:(0,a.classNames)("rounded-lg border border-border px-4 py-3 text-center text-meta text-muted-foreground",s),children:[e,n?(0,t.jsxs)(t.Fragment,{children:[" ",n]}):null]}):"no-results"===l?(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":l,className:(0,a.classNames)("flex flex-col items-center gap-2.5 rounded-lg border border-border bg-card px-4 py-6 text-center",s),children:[(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:e}),i]}):(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":l,className:(0,a.classNames)("flex flex-col items-center gap-3 rounded-lg border border-dashed border-border bg-card px-6 py-10 text-center",s),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}),n?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:n}):null,i?(0,t.jsx)("div",{className:"mt-1 max-sm:w-full max-sm:[&>*]:w-full",children:i}):null]})}])},88393,e=>{"use strict";var t=e.i(43476),a=e.i(90063),n=e.i(19321);function r(e){return Array.from({length:e},(e,t)=>`row-${String(t)}`)}e.s(["LoadingSkeleton",0,function({variant:e,rows:i=4,label:l="Loading",className:s}){return(0,t.jsxs)("div",{role:"status","data-slot":"loading-skeleton","data-variant":e,className:(0,a.classNames)("w-full",s),children:[(0,t.jsx)("span",{className:"sr-only",children:l}),"table"===e?(0,t.jsxs)("div",{className:"overflow-hidden rounded-lg border border-border bg-card shadow-sm",children:[(0,t.jsx)("div",{className:"h-(--size-row-header) border-b border-border bg-muted"}),r(i).map(e=>(0,t.jsxs)("div",{className:"flex h-(--size-row) items-center gap-8 border-b border-border px-4 last:border-0",children:[(0,t.jsx)(n.Skeleton,{className:"h-2.5 w-24"}),(0,t.jsx)(n.Skeleton,{className:"h-5 w-16"}),(0,t.jsx)(n.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(n.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)(n.Skeleton,{className:"h-2.5 w-20"}),(0,t.jsx)(n.Skeleton,{className:"h-6 w-10"}),(0,t.jsx)(n.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)(n.Skeleton,{className:"h-7 w-48"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(n.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(n.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(n.Skeleton,{className:"h-16 w-full rounded-lg"})]}):null,"list"===e?(0,t.jsx)("div",{className:"overflow-hidden rounded-lg border border-border bg-card",children:r(i).map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-2.5 border-b border-border px-3.5 py-3 last:border-0",children:[(0,t.jsxs)("div",{className:"flex justify-between",children:[(0,t.jsx)(n.Skeleton,{className:"h-3 w-28"}),(0,t.jsx)(n.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(n.Skeleton,{className:"h-2.5 w-44"})]},e))}):null]})}])},78865,e=>{"use strict";var t=e.i(43476),a=e.i(49655),n=e.i(87255),r=e.i(76561),i=e.i(47211),l=e.i(22768),s=e.i(50092),o=e.i(36604),d=e.i(19002),c=e.i(32297),u=e.i(21048),h=e.i(74544),m=e.i(85595),f=e.i(52886),p=e.i(26391),b=e.i(19647),y=e.i(16984),g=e.i(10001),v=e.i(71028),k=e.i(81658),x=e.i(44594),w=e.i(11568),j=e.i(25799),N=e.i(85512),C=e.i(57665),S=e.i(95925),M=e.i(85627),I=e.i(66787),z=e.i(92870),A=e.i(56420);let q={name:"user-round-search",size:24,node:[["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M2 21a8 8 0 0 1 10.434-7.62",key:"1yezr2"}],["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["path",{d:"m22 22-1.9-1.9",key:"1e5ubv"}]]};q.node;let R=(0,A.default)(q);var O=e.i(90063),L=e.i(66390);let P={waiting:"border-tone-waiting-border bg-tone-waiting-bg text-tone-waiting-fg",active:"border-tone-active-border bg-tone-active-bg text-tone-active-fg",ok:"border-tone-ok-border bg-tone-ok-bg text-tone-ok-fg",attention:"border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg",ended:"border-tone-ended-border bg-tone-ended-bg text-tone-ended-fg"},D={awaitingCrew:{tone:"waiting",Icon:f.CircleDashed,label:"Awaiting crew"},crewed:{tone:"ok",Icon:z.UserCheck,label:"Crewed"},retired:{tone:"ended",Icon:r.Archive,label:"Retired"},pending:{tone:"waiting",Icon:k.Hourglass,label:"Pending"},received:{tone:"active",Icon:x.Inbox,label:"Received"},handed:{tone:"active",Icon:s.CircleArrowRight,label:"Handed (pulled)"},handedPushed:{tone:"active",Icon:s.CircleArrowRight,label:"Handed"},overdue:{tone:"attention",Icon:a.AlarmClock,label:"Overdue"},acknowledged:{tone:"ok",Icon:m.CircleCheck,label:"Acknowledged"},handled:{tone:"ok",Icon:o.CircleCheckBig,label:"Handled"},notHandled:{tone:"attention",Icon:l.CircleAlert,label:"Not handled"},undeliverable:{tone:"attention",Icon:y.CircleX,label:"Undeliverable"},dismissed:{tone:"ended",Icon:b.CircleMinus,label:"Dismissed"},abandoned:{tone:"ended",Icon:i.Ban,label:"Abandoned"},forming:{tone:"waiting",Icon:p.CircleDotDashed,label:"Forming"},sailing:{tone:"ok",Icon:M.Sailboat,label:"Sailing"},"standing-down":{tone:"active",Icon:n.Anchor,label:"Standing down"},disbanded:{tone:"ended",Icon:g.FlagOff,label:"Disbanded"},"at-limit":{tone:"waiting",Icon:v.Gauge,label:"At limit"},"over-limit":{tone:"attention",Icon:I.TriangleAlert,label:"Over limit"},needsCrew:{tone:"waiting",Icon:h.Clock,label:"Needs crew"},crewedByHand:{tone:"ok",Icon:z.UserCheck,label:"Crewed by hand"},crewing:{tone:"active",Icon:w.LoaderCircle,label:"Crewing"},running:{tone:"ok",Icon:c.CirclePlay,label:"Running"},restarting:{tone:"waiting",Icon:S.RotateCcw,label:"Restarting"},crashed:{tone:"attention",Icon:y.CircleX,label:"Crashed"},releasing:{tone:"active",Icon:C.Power,label:"Releasing"},stuck:{tone:"attention",Icon:N.OctagonAlert,label:"Stuck"},delivering:{tone:"ok",Icon:j.MailCheck,label:"Delivering"},noShipCanTake:{tone:"attention",Icon:u.CircleSlash,label:"No ship can take"},waitingForCrew:{tone:"waiting",Icon:R,label:"Waiting for crew"},stalledInFlight:{tone:"waiting",Icon:d.CirclePause,label:"Stalled in flight"}};e.s(["StatusBadge",0,function({status:e,className:a}){let{tone:n,Icon:r,label:i}=D[e];return(0,t.jsxs)(L.Badge,{variant:"outline","data-slot":"status-badge","data-status":e,className:(0,O.classNames)(P[n],"abandoned"===e?"border-dashed":void 0,a),children:[(0,t.jsx)(r,{"aria-hidden":!0}),i]})},"statusLabel",0,function(e){return D[e].label}],78865)},77880,85538,e=>{"use strict";var t=e.i(43476),a=e.i(67927),n=e.i(66595),r=e.i(19759),i=e.i(22016),l=e.i(15905),s=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:a}){let{label:n,dot:r}=d[e];return(0,t.jsxs)("span",{"data-slot":"live-status","data-state":e,"aria-live":"polite",className:(0,o.classNames)("inline-flex items-center gap-1.5 text-meta text-muted-foreground",a),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:(0,o.classNames)("size-2 shrink-0 rounded-full",r)}),n]})}e.s(["Header",0,function({breadcrumb:e,parents:o=[],live:d,onCompose:u,onSearch:h}){return(0,t.jsxs)("header",{"data-slot":"header",className:"sticky top-0 z-30 hidden h-(--size-header) shrink-0 items-center justify-between gap-4 border-b border-border bg-background px-6 sm:flex",children:[(0,t.jsx)("nav",{"aria-label":"Breadcrumb","data-testid":"header-breadcrumb",className:"min-w-0 text-body",children:(0,t.jsxs)("ol",{className:"flex min-w-0 items-center gap-1.5",children:[o.map(e=>(0,t.jsxs)("li",{className:"flex shrink-0 items-center gap-1.5",children:[(0,t.jsx)(i.default,{href:e.href,className:"text-muted-foreground hover:text-foreground hover:underline",children:e.label}),(0,t.jsx)(a.ChevronRight,{"aria-hidden":!0,className:"size-3.5 text-muted-foreground"})]},e.href)),(0,t.jsx)("li",{"aria-current":"page",className:"truncate font-medium text-foreground",children:e})]})}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(c,{state:d}),h?(0,t.jsxs)(l.Button,{size:"sm",icon:(0,t.jsx)(n.Search,{"aria-hidden":!0}),"data-testid":"header-search",className:"w-60 justify-start font-normal text-muted-foreground",onClick:h,children:[(0,t.jsx)("span",{className:"grow text-left",children:"Search ships or jump to"}),(0,t.jsx)(s.Kbd,{children:"⌘K"})]}):null,u?(0,t.jsx)(l.Button,{size:"sm",icon:(0,t.jsx)(r.SquarePen,{"aria-hidden":!0}),"data-testid":"header-compose",onClick:u,children:"Compose"}):null]})]})}],77880);var u=e.i(24071),h=e.i(57957);e.s(["TopBar",0,function({title:e,live:a,actions:r,back:s,account:o,onSearch:d}){let m=d&&!s?d:void 0;return(0,t.jsxs)("header",{"data-slot":"top-bar","data-mode":s?"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:[s?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(i.default,{href:s.href,className:"-ml-1.5 inline-flex h-(--size-control-touch) shrink-0 items-center gap-0.5 rounded-md pr-2 text-body-touch text-foreground focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon)",children:[(0,t.jsx)(u.ChevronLeft,{"aria-hidden":!0}),s.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:a}),r||m||o&&!s?(0,t.jsxs)("div",{className:"ml-auto flex items-center gap-1",children:[m?(0,t.jsx)(l.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Search ships or jump to","data-testid":"top-bar-search",onClick:m,children:(0,t.jsx)(n.Search,{"aria-hidden":!0})}):null,r,o&&!s?(0,t.jsx)(h.AccountMenuSheet,{...o}):null]}):null]})}],85538)},19846,e=>{"use strict";var t=e.i(43476),a=e.i(94831),n=e.i(22016),r=e.i(15905),i=e.i(67874);e.s(["SquadronsNotConnected",0,function(){return(0,t.jsx)(i.EmptyState,{icon:(0,t.jsx)(a.Unplug,{"aria-hidden":!0}),title:"Squadrons is not connected",description:"Connect it in Settings; squadrons, blueprints and templates show up here then.",action:(0,t.jsx)(r.Button,{nativeButton:!1,render:(0,t.jsx)(n.default,{href:"/settings"}),"data-testid":"squadrons-open-settings",children:"Open Settings"})})}])},51442,e=>{"use strict";var t=e.i(43476),a=e.i(71645),n=e.i(17540),r=e.i(25242),i=e.i(8041),l=e.i(5387),s=e.i(96994),o=e.i(78608),d=e.i(48695),c=e.i(265);let u=(0,n.lazyDialog)(()=>e.A(67928).then(e=>e.FormSquadronDialog),e=>e.isOpen);e.s(["FormSquadron",0,function({blueprints:e,templates:n,isOpen:h,onOpenChange:m,initial:f,onFormed:p}){let b=(0,c.useHasTrierarchPlugin)(),y=(0,d.useFormSquadron)(),[g,v]=(0,a.useState)(),k=(0,d.useBlueprintCrew)(b?g:void 0),x=(0,c.useMachines)(),w=(0,l.useLabelContext)(),{shipLabelsMax:j}=(0,r.useConsoleConstants)(),N=void 0===w||void 0===x.data?void 0:(0,o.machineLabelsInputOf)(w,{machines:x.data,shipLabelsMax:j});return(0,t.jsx)(u,{blueprints:e,templates:n,...void 0===f?{}:{initial:f},isOpen:h,onOpenChange:m,isPending:y.isPending,...null===y.error?{}:{error:y.error.message},onPicked:e=>{y.reset(),v(e)},...b?{crew:{state:k.isError||x.isError?"error":void 0===k.data||void 0===x.data?"loading":"ready",members:k.data??[],offers:(0,i.offersOf)(x.data??[]),...void 0===w?{}:{context:w},...void 0===N?{}:{machineLabels:N},...null===k.error?null===x.error?{}:{error:x.error.message}:{error:k.error.message},onRetry:()=>{k.refetch(),x.refetch()}}}:{},onSubmit:(e,t)=>{y.mutate({blueprint:e,...void 0===t?{}:{members:(0,s.formMembersOf)(t,w)}},{onSuccess:e=>{p(e.squadronId)}})}})}])},96994,e=>{"use strict";var t=e.i(80581);function a(e,t){return t?.labels.find(t=>t.key===e.key)?.values.find(t=>t.value===e.value)?.id}function n(e){return[...void 0===e.workspace?["workspace"]:[],...e.parameters.filter(e=>""===e.value.trim()).map(e=>e.name)]}function r(e,a){return[...void 0===a?[]:(0,t.pickedChips)(e.machineLabels,a).map(e=>({key:e.key,value:e.value})),...e.unknownLabels.map(e=>{let[t="",a=""]=e.split("=");return{key:t,value:a}})]}function i(e){return"worktree"===e.kind?`worktree:${e.repository}`:`folder:${e.name}`}e.s(["formMembersOf",0,function(e,t){return Object.fromEntries(e.map(e=>[e.slot,{crew:{...""===e.harness?{}:{harness:e.harness},...void 0===e.workspace?{}:{workspace:e.workspace},...""===e.firstPrompt.trim()?{}:{firstPrompt:e.firstPrompt},options:e.options,machineLabels:r(e,t)},parameters:Object.fromEntries(e.parameters.map(e=>[e.name,e.value]))}]))},"labelErrorSlot",0,function(e,t){let{members:a,context:n}=t,[,i]=/machine label (\S+?),/.exec(e)??[];if(void 0!==i)return a.find(e=>r(e,n).some(e=>`${e.key}=${e.value}`===i))?.slot},"membersOf",0,function(e,t){return e.map(e=>{let n=e.crew.machineLabels??[];return{slot:e.slot,role:e.role,template:`${e.template.name}@${String(e.template.version)}`,harness:e.crew.harness??"",workspace:function(e){if(void 0!==e)return"worktree"===e.kind?{kind:"worktree",repository:e.repository}:{kind:"folder",name:e.name}}(e.crew.workspace),firstPrompt:e.crew.firstPrompt??"",options:{...e.crew.options},machineLabels:n.flatMap(e=>a(e,t)??[]),unknownLabels:n.filter(e=>void 0===a(e,t)).map(e=>`${e.key}=${e.value}`),parameters:e.parameters.map(e=>({name:e.name,description:e.description,value:e.value??""}))}})},"missingOf",0,n,"readyCount",0,function(e){return{ready:e.filter(e=>0===n(e).length).length,total:e.length}},"withWorkspaceForAll",0,function(e,t){return e.map(e=>void 0===e.workspace?{...e,workspace:t}:e)},"workspaceFromItem",0,function(e){let[t,...a]=e.split(":"),n=a.join(":");return"worktree"===t?{kind:"worktree",repository:n}:"folder"===t?{kind:"folder",name:n}:void 0},"workspaceItemOf",0,i,"workspaceItemsOf",0,function(e,t){let a=new Map;for(let t of e){for(let e of t.repositories)a.set(i({kind:"worktree",repository:e}),`${e} \xb7 new worktree`);for(let e of t.folders)a.set(i({kind:"folder",name:e}),`${e} \xb7 folder, as it is`)}for(let{workspace:e}of t)void 0===e||a.has(i(e))||a.set(i(e),"worktree"===e.kind?`${e.repository} \xb7 new worktree, no machine offers it yet`:`${e.name} \xb7 folder, no machine offers it yet`);return Object.fromEntries(a)}])},18423,e=>{"use strict";var t=e.i(12598),a=e.i(5861),n=e.i(71645),r=e.i(86413),i=e.i(27702);let l=new Set(["FleetInitialised","ShipCommissioned","ShipClaimed","LeaseRevoked","CredentialRevoked","StartingPromptIssued","ShipRetired","DeliveryAcknowledged","DeliveryUndeliverable","ShipReported","CrewRequested","CrewRequestRemoved","CrewAssigned","CrewStatusChanged","CrewRequestExplained","CrewRequestGivenBack","LabelAssigned","LabelUnassigned","LabelRetired"]);async function s(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","DeliveryNotHandled","DeliveryDismissed"]);e.s(["useLiveFleet",0,function(){let e=(0,i.useTRPC)(),c=(0,t.useQueryClient)(),[u,h]=(0,n.useState)(new Set),m=e=>{s(c,e)},f=(0,a.useSubscription)(e.fleet.events.subscriptionOptions({lastEventId:null},{onData:({data:t})=>{var a,n,i,s;if("resync"===t.kind){m(e.fleet.pathKey()),m(r.INBOX_KEY);return}let{event:c}=t;for(let t of new Set([c.shipId,c.actorShipId]))null!==t&&(m(e.fleet.ship.queryKey({shipId:t})),m(e.fleet.shipTimeline.queryKey({shipId:t})),m(e.fleet.shipWay.queryKey({shipId:t})));if(null!==c.messageId&&(m(e.fleet.shipMessages.pathKey()),m(e.fleet.shipWay.pathKey()),m(e.fleet.message.queryKey({messageId:c.messageId})),m(e.fleet.inbox.pathKey()),m(r.INBOX_KEY),m(e.fleet.health.queryKey())),a=c.type,d.has(a)&&m(e.fleet.needsAttention.queryKey()),n=c.type,o.has(n)&&m(e.fleet.labels.queryKey()),"NetworkRulesDeclared"===c.type&&m(e.fleet.declaredNetworkRules.queryKey()),("BuiltInRuleChanged"===(i=c.type)||"NetworkPluginUnregistered"===i)&&m(e.fleet.builtInRules.queryKey()),s=c.type,!l.has(s))return;m(e.fleet.list.queryKey()),m(e.fleet.health.queryKey());let{shipId:u}=c;"ShipCommissioned"===c.type&&null!==u&&h(e=>new Set([...e,u]))}}));return{live:function(e){switch(e){case"pending":return"live";case"connecting":return"reconnecting";case"idle":case"error":return"offline"}}(f.status),newShipIds:u,error:f.error}}])},28459,e=>{"use strict";var t=e.i(54616),a=e.i(66027),n=e.i(12598),r=e.i(27702);function i(e){let t=String(e.attempts-1);return e.isPushed?`Handed ${t} times, never confirmed; fifth refused: undeliverable.`:`Handed (pulled) ${t} times, never acknowledged; fifth receive refused: undeliverable.`}let l="Acknowledged, then its turn died; handed once more, and that turn died too: not handled.";function s(){let e=(0,r.useTRPC)(),t=(0,n.useQueryClient)();return()=>t.invalidateQueries({queryKey:e.fleet.pathKey()})}e.s(["DISMISSED_TOAST",0,{title:"Delivery dismissed",description:"It stays in the timelines as dismissed."},"attentionReason",0,function(e){switch(e.state){case"undeliverable":return i(e);case"notHandled":return null===e.reason?l:`${l} Its crew said: ${e.reason}.`}},"canResend",0,function(e){return!e.message.isPing},"deliveryWithId",0,function(e,t){return e?.find(e=>e.deliveryId===t)},"resentToast",0,function(e){return{title:"Message resent",description:`A new message went to ${function(e){let{recipient:t}=e.message;return"ship"===t.kind?t.ship.name:`any ship of type ${t.type}`}(e)}. The original is dismissed.`}},"undeliverableReason",0,i,"useDismissDelivery",0,function(){let e=(0,r.useTRPC)(),a=s();return(0,t.useMutation)(e.fleet.dismiss.mutationOptions({onSuccess:a}))},"useNeedsAttention",0,function(){let e=(0,r.useTRPC)();return(0,a.useQuery)(e.fleet.needsAttention.queryOptions())},"useResendDelivery",0,function(){let e=(0,r.useTRPC)(),a=s();return(0,t.useMutation)(e.fleet.resend.mutationOptions({onSuccess:a}))}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,53341,e=>{"use strict";var t=e.i(81307),s=e.i(83615);t.z.object({shipId:(0,s.idSchema)("ship")}),t.z.object({messageId:(0,s.idSchema)("message"),sentAt:t.z.iso.datetime(),isNew:t.z.boolean()}),t.z.object({deliveryId:(0,s.idSchema)("delivery")}),t.z.strictObject({}),e.s(["isPingContentType",0,function(e){let[t=""]=e.split(";");return"application/vnd.aeolus.ping"===t.trim().toLowerCase()}])},93508,e=>{"use strict";var t=e.i(43476),s=e.i(37631),a=e.i(78865),i=e.i(71645),n=e.i(41880),l=e.i(90262),r=e.i(5387),d=e.i(90437),o=e.i(28459),c=e.i(96676),u=e.i(53341),h=e.i(86448),m=e.i(27702),p=e.i(16634),g=e.i(56420);let f={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};f.node;let x=(0,g.default)(f);var v=e.i(22016),w=e.i(66390),b=e.i(15905),y=e.i(67874),S=e.i(17981),j=e.i(88393),N=e.i(49635),k=e.i(38614);let T={pending:"pending",received:"received",handed:"handed",undeliverable:"undeliverable"};function C({place:e,ship:s,now:i}){let n=e.place,l="undeliverable"===e.cause?null:(0,p.nextStepOf)(e);return(0,t.jsxs)("header",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-2",children:[(0,t.jsxs)("h2",{className:"flex flex-wrap items-center gap-2 text-section font-semibold text-foreground",children:["ship"===n.kind?n.ship.name:(0,t.jsx)(w.Badge,{variant:"type",children:n.type}),void 0!==s&&(0,t.jsx)(a.StatusBadge,{status:s.status}),void 0!==s&&(0,t.jsx)(w.Badge,{variant:"type",children:s.type})]}),(0,t.jsxs)("dl",{className:"flex flex-wrap gap-x-6 gap-y-1 text-meta",children:["ship"===n.kind&&s?.lastSeenAt!=null&&(0,t.jsxs)("div",{children:[(0,t.jsx)("dt",{className:"text-muted-foreground",children:"Session last seen"}),(0,t.jsx)("dd",{className:"text-foreground",title:(0,N.shortDateTime)(new Date(s.lastSeenAt)),children:(0,N.relativeTime)(new Date(s.lastSeenAt),i)})]}),"ship"===n.kind&&null!==n.machine&&(0,t.jsxs)("div",{children:[(0,t.jsx)("dt",{className:"text-muted-foreground",children:"Machine"}),(0,t.jsxs)("dd",{className:"text-foreground",children:[n.machine.name,null!==n.machine.lastSeenAt&&` \xb7 last seen ${(0,N.relativeTime)(new Date(n.machine.lastSeenAt),i)}`]})]}),"type"===n.kind&&(0,t.jsxs)("div",{children:[(0,t.jsx)("dt",{className:"text-muted-foreground",children:"Sent to"}),(0,t.jsxs)("dd",{className:"text-foreground",children:["Any ship of type ",n.type]})]})]})]}),null!==l&&(0,t.jsx)(b.Button,{variant:"secondary",size:"sm",nativeButton:!1,render:(0,t.jsx)(v.default,{href:l.href}),className:"max-sm:h-(--size-control-touch) max-sm:w-full","data-testid":"drilldown-next-step",children:l.label})]})}function A({cause:e,state:s,places:i,ships:n,messages:l,onRetry:r,onResend:d,onDismiss:o,pendingIds:c,now:u}){return"error"===s?(0,t.jsx)(S.InlineError,{variant:"page",title:"Couldn’t load the stuck deliveries",description:"Nothing changed in the fleet. The page tries again by itself.",onRetry:r}):"loading"===s?(0,t.jsx)(j.LoadingSkeleton,{variant:"cards",rows:2,label:"Loading the stuck deliveries"}):0===i.length?(0,t.jsx)(y.EmptyState,{title:`Nothing ${(0,a.statusLabel)(e).toLowerCase()}`,description:"No delivery is stuck for this cause now.",action:(0,t.jsxs)(b.Button,{variant:"secondary",nativeButton:!1,render:(0,t.jsx)(v.default,{href:"/fleet-health"}),children:[(0,t.jsx)(x,{"aria-hidden":!0}),"Back to Health"]})}):(0,t.jsxs)("div",{"data-testid":"drilldown",className:"flex flex-col gap-5 max-sm:gap-3.5",children:[(0,t.jsx)("p",{className:"text-body text-muted-foreground max-sm:text-body-touch",children:p.CAUSE_SENTENCES[e]}),i.map(e=>{let s="ship"===e.place.kind?n.get(e.place.ship.id):void 0;return(0,t.jsxs)("section",{"aria-label":(0,p.placeName)(e.place),"data-testid":"drilldown-place",className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4 shadow-sm max-sm:rounded-xl",children:[(0,t.jsx)(C,{place:e,ship:s,now:u}),(0,t.jsxs)("div",{className:"grid grid-cols-[minmax(0,2fr)_minmax(0,1fr)_auto_auto] gap-x-4 max-sm:grid-cols-1",children:[(0,t.jsxs)("div",{className:"col-span-4 grid grid-cols-subgrid border-b border-border pb-2 text-caption font-medium text-muted-foreground max-sm:hidden",children:[(0,t.jsx)("span",{children:"Message"}),(0,t.jsx)("span",{children:"How long (1 min to 7 d)"}),(0,t.jsx)("span",{children:"Since"}),(0,t.jsx)("span",{children:"State"})]}),(0,t.jsx)("ul",{className:"col-span-4 grid grid-cols-subgrid divide-y divide-border max-sm:col-span-1",children:e.deliveries.map(s=>{let i=l.get(s.messageId),n="ship"===e.place.kind?e.place.ship.id:i?.sender.id,r=c.has(s.deliveryId);return(0,t.jsxs)("li",{"data-testid":"drilldown-row","data-delivery-id":s.deliveryId,className:"col-span-4 grid grid-cols-subgrid items-center gap-y-2 py-3 max-sm:col-span-1",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-0.5",children:[void 0===n?(0,t.jsx)("span",{className:"truncate text-body text-foreground",children:i?.preview??"…"}):(0,t.jsx)(v.default,{href:(0,p.messagePathOn)(n,s.messageId),className:"truncate text-body text-foreground hover:underline","data-testid":"drilldown-open",children:void 0===i?"Open the message":i.preview}),void 0!==i&&(0,t.jsxs)("span",{className:"text-meta text-muted-foreground",children:["from ",i.sender.name]})]}),(0,t.jsx)(k.WaitStrip,{waits:[(0,p.waitMinutes)(s.since,u)],label:`Waiting ${(0,N.duration)(new Date(s.since),u)}`}),(0,t.jsxs)("span",{className:"text-meta tabular-nums text-muted-foreground",title:(0,N.shortDateTime)(new Date(s.since)),children:[(0,N.shortDateTime)(new Date(s.since))," · ",(0,N.duration)(new Date(s.since),u)]}),(0,t.jsxs)("span",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)(a.StatusBadge,{status:T[s.state]}),"undeliverable"===s.state&&void 0!==d&&void 0!==i&&!i.isPing&&(0,t.jsx)(b.Button,{variant:"secondary",size:"xs",disabled:r,onClick:()=>{d(s.deliveryId)},"data-testid":"drilldown-resend",className:"max-sm:h-(--size-control-touch)",children:"Resend"}),"undeliverable"===s.state&&void 0!==o&&(0,t.jsx)(b.Button,{variant:"ghost",size:"xs",disabled:r,onClick:()=>{o(s.deliveryId)},"data-testid":"drilldown-dismiss",className:"max-sm:h-(--size-control-touch)",children:"Dismiss"})]})]},s.deliveryId)})})]})]},"ship"===e.place.kind?e.place.ship.id:e.place.type)})]})}function $({cause:e}){let s=(0,c.useNow)(),a=(0,d.useFleetHealth)(),g=(0,r.useFleetSnapshot)(),f=(0,l.useAccess)(),x=(0,o.useResendDelivery)(),v=(0,o.useDismissDelivery)(),[w,b]=(0,i.useState)(new Set),y=(0,p.causeGroupsOf)(a.data??{stuck:[]}).find(t=>t.cause===e)?.places??[],{messages:S}=function(e){let t=(0,m.useTRPC)(),s=(0,h.useQueries)({queries:e.map(e=>t.fleet.message.queryOptions({messageId:e}))}),a=new Map;for(let e of s)e.data&&a.set(e.data.id,{preview:(0,p.previewOf)(e.data.payload),sender:e.data.sender,isPing:(0,u.isPingContentType)(e.data.contentType)});return{messages:a,isLoading:s.some(e=>e.isPending)}}(y.flatMap(e=>e.deliveries.map(e=>e.messageId))),j=new Map((g.data??[]).map(e=>[e.id,{status:e.status,type:e.type,lastSeenAt:e.lastSeenAt}])),N=(e,t)=>{b(t=>new Set([...t,e])),t().finally(()=>{b(t=>new Set([...t].filter(t=>t!==e)))})};return(0,t.jsx)(A,{cause:e,state:a.isError?"error":a.data?"ready":"loading",places:y,ships:j,messages:S,onRetry:()=>{a.refetch()},onResend:f.canManage?e=>{let t=y.find(t=>t.deliveries.some(t=>t.deliveryId===e));N(e,async()=>{try{await x.mutateAsync({deliveryId:e}),(0,n.showToast)({title:"Message resent",description:void 0===t?"The original is dismissed.":`A new message went to ${(0,p.placeName)(t.place)}. The original is dismissed.`,tone:"success"})}catch(e){(0,n.showToast)({title:"Couldn’t resend the message",description:I(e),tone:"error"})}})}:void 0,onDismiss:f.canManage?e=>{N(e,async()=>{try{await v.mutateAsync({deliveryId:e}),(0,n.showToast)({...o.DISMISSED_TOAST,tone:"success"})}catch(e){(0,n.showToast)({title:"Couldn’t dismiss the delivery",description:I(e),tone:"error"})}})}:void 0,pendingIds:w,now:s})}function I(e){return e instanceof Error?e.message:"Try again in a moment."}var D=e.i(87964),M=e.i(18423),O=e.i(78485);e.s(["CausePage",0,function({cause:e}){let i=(0,D.useConsoleFrame)(),n=(0,M.useLiveFleet)(),l=(0,d.useFleetHealth)();(0,O.useSignInWhenSessionEnds)([l.error,n.error]);let r=l.data?.stuck.filter(t=>t.cause===e).reduce((e,t)=>e+t.count,0);return(0,t.jsx)(s.DetailPage,{onCompose:i.onCompose,onSearch:i.onSearch,banner:i.banner,title:(0,a.statusLabel)(e),parents:[{href:"/fleet-health",label:"Health"}],live:n.live,header:(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-3","data-testid":"drilldown-header",children:[(0,t.jsx)(a.StatusBadge,{status:e}),void 0===r?null:(0,t.jsxs)("p",{className:"text-section font-semibold text-foreground",children:[r," ",1===r?"delivery":"deliveries"," stuck"]})]}),children:(0,t.jsx)($,{cause:e})})}],93508)},16634,38614,e=>{"use strict";let t=["noShipCanTake","waitingForCrew","stalledInFlight","undeliverable"];function s(e){return`/fleet-health/${e}`}function a(e){return"ship"===e.kind?e.ship.name:e.type}let i={noShipCanTake:"no ship can take",waitingForCrew:"waiting for crew",stalledInFlight:"stalled in flight",undeliverable:"undeliverable"},n=[{minutes:1,label:"1 min"},{minutes:10,label:"10 min"},{minutes:60,label:"1 h"},{minutes:1440,label:"1 d"},{minutes:10080,label:"7 d"}],l=Math.log(1),r=Math.log(10080);function d(e){return Math.min(Math.max((Math.log(Math.max(e,1))-l)/(r-l),0),1)}let o={pending:"pending",received:"received",handed:"handed (pulled)",undeliverable:"undeliverable"};e.s(["CAUSE_SENTENCES",0,{noShipCanTake:"Sent to a type with no active ship. Waits until you commission one.",waitingForCrew:"Sent to a ship no session crews. Waits until it is crewed.",stalledInFlight:"Taken by a session that went quiet. Waits until it acknowledges or the ship is released.",undeliverable:"Taken five times, never acknowledged. Waits for you to resend or dismiss."},"WAIT_TICKS",0,n,"causeGroupsOf",0,function(e){return t.flatMap(t=>{let s=e.stuck.filter(e=>e.cause===t).toSorted((e,t)=>e.oldestSince.localeCompare(t.oldestSince));return 0===s.length?[]:[{cause:t,count:s.reduce((e,t)=>e+t.count,0),places:s}]})},"causePathOf",0,s,"marksOf",0,function(e){let[t]=e.stuckPerHour;return void 0===t?[]:e.stuck.filter(e=>e.oldestSince>t.at).toSorted((e,t)=>e.oldestSince.localeCompare(t.oldestSince)).map((t,s)=>({number:s+1,hour:e.stuckPerHour.findIndex(e=>e.at>=t.oldestSince),label:`${a(t.place)}: ${i[t.cause]}`}))},"medianText",0,function(e,t){let s=Math.round(e/1e3);return s<60?`${String(s)} s`:t(new Date(0),new Date(e))},"messagePathOn",0,function(e,t){return`/ships/${e}?tab=messages&message=${t}`},"nextStepOf",0,function(e){let t=e.place;switch(e.cause){case"noShipCanTake":return{label:`Commission a ${a(t)}`,href:"/?commission=new"};case"waitingForCrew":return"ship"===t.kind?{label:"Get starting prompt",href:`/ships/${t.ship.id}`}:{label:"Open ships of type",href:`/?type=${encodeURIComponent(t.type)}`};case"stalledInFlight":if("ship"===t.kind&&null!==t.machine)return{label:"Open machine",href:`/trierarchs/${t.machine.id}`};return"ship"===t.kind?{label:"Open ship",href:`/ships/${t.ship.id}`}:{label:"Open ships of type",href:`/?type=${encodeURIComponent(t.type)}`};case"undeliverable":return{label:"Resend or dismiss",href:s("undeliverable")}}},"placeName",0,a,"placeNote",0,function(e,t){let s=e.place;if("stalledInFlight"!==e.cause||"ship"!==s.kind)return null;let a=[...new Set(e.deliveries.map(e=>o[e.state]))].join(", ");if(null!==s.machine){let e=null===s.machine.lastSeenAt?"never seen":`last seen ${t.since(new Date(s.machine.lastSeenAt))}`;return`${a}, machine ${s.machine.name} ${e}`}let i=t.facts?.lastSeenAt??null;return null===i?a:`${a}, session last seen ${t.since(new Date(i))}`},"previewOf",0,function(e){return e.split("\n",1)[0]?.trim()??""},"stuckByMachine",0,function(e){let t=new Map;for(let s of e.stuck)"ship"===s.place.kind&&null!==s.place.machine&&t.set(s.place.machine.id,(t.get(s.place.machine.id)??0)+s.count);return t},"trendSentence",0,function(e){return e.count>e.dayAgo?`Up from ${String(e.dayAgo)} a day ago.`:e.count<e.dayAgo?`Down from ${String(e.dayAgo)} a day ago.`:"As many as a day ago."},"verdictOf",0,function(e){let[t]=e.stuck.map(e=>e.oldestSince).toSorted();if(void 0===t)return{kind:"delivering"};let s=e.stuckPerHour.at(-25)?.count??0;return{kind:"stuck",count:e.stuck.reduce((e,t)=>e+t.count,0),places:e.stuck.length,since:t,dayAgo:s}},"waitMinutes",0,function(e,t){return Math.max(0,(t.getTime()-Date.parse(e))/6e4)},"waitPosition",0,d],16634);var c=e.i(43476),u=e.i(90063);function h(e){return`${100*d(e)}%`}e.s(["WaitAxis",0,function({className:e}){return(0,c.jsx)("div",{"aria-hidden":!0,className:(0,u.classNames)("relative h-4 w-full text-micro text-muted-foreground",e),children:n.map((e,t)=>(0,c.jsx)("span",{className:(0,u.classNames)("absolute whitespace-nowrap",0===t?"":t===n.length-1?"-translate-x-full":"-translate-x-1/2"),style:{left:h(e.minutes)},children:e.label},e.minutes))})},"WaitStrip",0,function({waits:e,label:t,className:s}){let a=Math.max(0,...e);return(0,c.jsxs)("div",{role:"img","aria-label":t,"data-testid":"health-wait-strip",className:(0,u.classNames)("relative h-4 w-full",s),children:[(0,c.jsx)("span",{"aria-hidden":!0,className:"absolute inset-y-0 rounded-xs bg-muted",style:{left:h(10),right:`calc(100% - ${h(60)})`}}),(0,c.jsx)("span",{"aria-hidden":!0,className:"absolute inset-x-0 top-1/2 h-px bg-border"}),n.map(e=>(0,c.jsx)("span",{"aria-hidden":!0,className:"absolute top-1/4 h-1/2 w-px bg-border",style:{left:h(e.minutes)}},e.minutes)),(0,c.jsx)("span",{"aria-hidden":!0,className:"absolute top-1/2 h-0.5 -translate-y-1/2 rounded-full bg-foreground opacity-35",style:{left:0,width:h(a)}}),e.map((e,t)=>(0,c.jsx)("span",{"aria-hidden":!0,className:"absolute top-1/2 size-2.5 -translate-1/2 rounded-full border-2 border-card bg-foreground",style:{left:h(e)}},`${e}-${String(t)}`))]})}],38614)}]);
|
package/.next/standalone/packages/console/.next/static/chunks/{2l8wcne7b1_zj.js → 3k61es128845f.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,86448,e=>{"use strict";var t=e.i(12598),a=e.i(81384),i=e.i(73664),s=e.i(27001),n=e.i(54440),r=e.i(71645),l=e.i(19273),o=e.i(15823),d=e.i(40143),c=e.i(69230);function h(e,t){let a=new Set(t);return e.filter(e=>!a.has(e))}var u=class extends o.Subscribable{#e;#t;#a;#i;#s;#n;#r;#l;#o;#d=[];constructor(e,t,a){super(),this.#e=e,this.#i=a,this.#a=[],this.#s=[],this.#t=[],this.setQueries(t)}onSubscribe(){1===this.listeners.size&&this.#s.forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#s.forEach(e=>{e.destroy()})}setQueries(e,t){this.#a=e,this.#i=t,d.notifyManager.batch(()=>{let e=this.#s,t=this.#h(this.#a);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let a=t.map(e=>e.observer),i=a.map(e=>e.getCurrentResult()),s=e.length!==a.length,n=a.some((t,a)=>t!==e[a]),r=s||n,o=!!r||i.some((e,t)=>{let a=this.#t[t];return!a||!(0,l.shallowEqualObjects)(e,a)});(r||o)&&(r&&(this.#d=t,this.#s=a),this.#t=i,this.hasListeners()&&(r&&(h(e,a).forEach(e=>{e.destroy()}),h(a,e).forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})),this.#u()))})}getCurrentResult(){return this.#t}getQueries(){return this.#s.map(e=>e.getCurrentQuery())}getObservers(){return this.#s}getOptimisticResult(e,t){let a=this.#h(e),i=a.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),s=a.map(e=>e.defaultedQueryOptions.queryHash);return[i,e=>this.#y(e??i,t,s),()=>this.#p(i,a)]}#p(e,t){let a=new Set;return t.map((i,s)=>{let n=e[s];return i.defaultedQueryOptions.notifyOnChangeProps?n:i.observer.trackResult(n,e=>{a.has(e)||(a.add(e),t.forEach(t=>{t.observer.trackProp(e)}))})})}#y(e,t,a){if(t){let i=this.#o,s=void 0!==a&&void 0!==i&&(i.length!==a.length||a.some((e,t)=>e!==i[t]));return(this.#t!==this.#l||s||t!==this.#r)&&(this.#r=t,this.#l=this.#t,void 0!==a&&(this.#o=a),this.#n=(0,l.replaceEqualDeep)(this.#n,t(e))),this.#n}return e}#k(){return!this.#i?.combine||this.#s.some((e,t)=>e.options.suspense&&this.#t[t]?.data===void 0)}#h(e){let t=new Map;this.#s.forEach(e=>{let a=e.options.queryHash;if(!a)return;let i=t.get(a);i?i.push(e):t.set(a,[e])});let a=[];return e.forEach(e=>{let i=this.#e.defaultQueryOptions(e),s=t.get(i.queryHash)?.shift()??new c.QueryObserver(this.#e,i);a.push({defaultedQueryOptions:i,observer:s})}),a}#c(e,t){let a=this.#s.indexOf(e);-1!==a&&(this.#t=this.#t.slice(),this.#t[a]=t,this.#u())}#u(){if(this.hasListeners()){let e=this.#k(),t=this.#n,a=e?t:this.#y(this.#p(this.#t,this.#d),this.#i?.combine);(e||t!==a)&&d.notifyManager.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}};e.s(["useQueries",0,function({queries:e,...o},h){let y=(0,t.useQueryClient)(h),p=(0,a.useIsRestoring)(),k=(0,i.useQueryErrorResetBoundary)(),m=!1!==o.subscribed,g=r.useMemo(()=>e.map(e=>{let t=y.defaultQueryOptions(e);return t._optimisticResults=p?"isRestoring":m?"optimistic":void 0,t}),[e,y,p,m]);g.forEach(e=>{(0,n.ensureSuspenseTimers)(e);let t=y.getQueryCache().get(e.queryHash);(0,s.ensurePreventErrorBoundaryRetry)(e,k,t)}),(0,s.useClearResetErrorBoundary)(k);let[b]=r.useState(()=>new u(y,g,o)),[f,v,x]=b.getOptimisticResult(g,o.combine),M=!p&&m;r.useSyncExternalStore(r.useCallback(e=>M?b.subscribe(d.notifyManager.batchCalls(e)):l.noop,[b,M]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),r.useEffect(()=>{b.setQueries(g,o)},[g,o,b]);let w=f.some((e,t)=>(0,n.shouldSuspend)(g[t],e))?f.flatMap((e,t)=>{let a=g[t];if(a&&(0,n.shouldSuspend)(a,e)){let e=new c.QueryObserver(y,a);return(0,n.fetchOptimistic)(a,e,k)}return[]}):[];if(w.length>0)throw Promise.all(w);let C=f.find((e,t)=>{let a=g[t];return a&&(0,s.getHasError)({result:e,errorResetBoundary:k,throwOnError:a.throwOnError,query:y.getQueryCache().get(a.queryHash),suspense:a.suspense})});if(C)throw C.error;return v(x())}],86448)},49655,87255,50092,36604,e=>{"use strict";var t=e.i(56420);let a={name:"alarm-clock",size:24,node:[["circle",{cx:"12",cy:"13",r:"8",key:"3y4lt7"}],["path",{d:"M12 9v4l2 2",key:"1c63tq"}],["path",{d:"M5 3 2 6",key:"18tl5t"}],["path",{d:"m22 6-3-3",key:"1opdir"}],["path",{d:"M6.38 18.7 4 21",key:"17xu3x"}],["path",{d:"M17.64 18.67 20 21",key:"kv2oe2"}]]};a.node;let i=(0,t.default)(a);e.s(["AlarmClock",0,i],49655);let s={name:"anchor",size:24,node:[["path",{d:"M12 6v16",key:"nqf5sj"}],["path",{d:"m19 13 2-1a9 9 0 0 1-18 0l2 1",key:"y7qv08"}],["path",{d:"M9 11h6",key:"1fldmi"}],["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}]]};s.node;let n=(0,t.default)(s);e.s(["Anchor",0,n],87255);let r={name:"circle-arrow-right",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m12 16 4-4-4-4",key:"1i9zcv"}],["path",{d:"M8 12h8",key:"1wcyev"}]],aliases:["arrow-right-circle"]};r.node;let l=(0,t.default)(r);e.s(["CircleArrowRight",0,l],50092);let o={name:"circle-check-big",size:24,node:[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],aliases:["check-circle"]};o.node;let d=(0,t.default)(o);e.s(["CircleCheckBig",0,d],36604)},76561,e=>{"use strict";var t=e.i(56420);let a={name:"archive",size:24,node:[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]};a.node;let i=(0,t.default)(a);e.s(["Archive",0,i],76561)},47211,e=>{"use strict";var t=e.i(56420);let a={name:"ban",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]]};a.node;let i=(0,t.default)(a);e.s(["Ban",0,i],47211)},71567,e=>{"use strict";var t=e.i(56420);let a={name:"bot",size:24,node:[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]};a.node;let i=(0,t.default)(a);e.s(["Bot",0,i],71567)},52886,e=>{"use strict";var t=e.i(56420);let a={name:"circle-dashed",size:24,node:[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]};a.node;let i=(0,t.default)(a);e.s(["CircleDashed",0,i],52886)},19002,e=>{"use strict";var t=e.i(56420);let a={name:"circle-pause",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]],aliases:["pause-circle"]};a.node;let i=(0,t.default)(a);e.s(["CirclePause",0,i],19002)},32297,26391,19647,10001,25799,e=>{"use strict";var t=e.i(56420);let a={name:"circle-play",size:24,node:[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],aliases:["play-circle"]};a.node;let i=(0,t.default)(a);e.s(["CirclePlay",0,i],32297);let s={name:"circle-dot-dashed",size:24,node:[["path",{d:"M10.1 2.18a9.93 9.93 0 0 1 3.8 0",key:"1qdqn0"}],["path",{d:"M17.6 3.71a9.95 9.95 0 0 1 2.69 2.7",key:"1bq7p6"}],["path",{d:"M21.82 10.1a9.93 9.93 0 0 1 0 3.8",key:"1rlaqf"}],["path",{d:"M20.29 17.6a9.95 9.95 0 0 1-2.7 2.69",key:"1xk03u"}],["path",{d:"M13.9 21.82a9.94 9.94 0 0 1-3.8 0",key:"l7re25"}],["path",{d:"M6.4 20.29a9.95 9.95 0 0 1-2.69-2.7",key:"1v18p6"}],["path",{d:"M2.18 13.9a9.93 9.93 0 0 1 0-3.8",key:"xdo6bj"}],["path",{d:"M3.71 6.4a9.95 9.95 0 0 1 2.7-2.69",key:"1jjmaz"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]};s.node;let n=(0,t.default)(s);e.s(["CircleDotDashed",0,n],26391);let r={name:"circle-minus",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]],aliases:["minus-circle"]};r.node;let l=(0,t.default)(r);e.s(["CircleMinus",0,l],19647);let o={name:"flag-off",size:24,node:[["path",{d:"M16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1q158e"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M4 22V4",key:"1plyxx"}],["path",{d:"M7.656 2H8c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10.347",key:"xj1b71"}]]};o.node;let d=(0,t.default)(o);e.s(["FlagOff",0,d],10001);let c={name:"mail-check",size:24,node:[["path",{d:"M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8",key:"12jkf8"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"m16 19 2 2 4-4",key:"1b14m6"}]]};c.node;let h=(0,t.default)(c);e.s(["MailCheck",0,h],25799)},21048,e=>{"use strict";var t=e.i(56420);let a={name:"circle-slash",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]]};a.node;let i=(0,t.default)(a);e.s(["CircleSlash",0,i],21048)},16984,e=>{"use strict";var t=e.i(56420);let a={name:"circle-x",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-circle"]};a.node;let i=(0,t.default)(a);e.s(["CircleX",0,i],16984)},74544,e=>{"use strict";var t=e.i(56420);let a={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};a.node;let i=(0,t.default)(a);e.s(["Clock",0,i],74544)},71028,e=>{"use strict";var t=e.i(56420);let a={name:"gauge",size:24,node:[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]};a.node;let i=(0,t.default)(a);e.s(["Gauge",0,i],71028)},81658,e=>{"use strict";var t=e.i(56420);let a={name:"hourglass",size:24,node:[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]]};a.node;let i=(0,t.default)(a);e.s(["Hourglass",0,i],81658)},85512,e=>{"use strict";var t=e.i(56420);let a={name:"octagon-alert",size:24,node:[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]],aliases:["alert-octagon"]};a.node;let i=(0,t.default)(a);e.s(["OctagonAlert",0,i],85512)},57665,e=>{"use strict";var t=e.i(56420);let a={name:"power",size:24,node:[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]};a.node;let i=(0,t.default)(a);e.s(["Power",0,i],57665)},95925,85627,e=>{"use strict";var t=e.i(56420);let a={name:"rotate-ccw",size:24,node:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]};a.node;let i=(0,t.default)(a);e.s(["RotateCcw",0,i],95925);let s={name:"sailboat",size:24,node:[["path",{d:"M10 2v15",key:"1qf71f"}],["path",{d:"M7 22a4 4 0 0 1-4-4 1 1 0 0 1 1-1h16a1 1 0 0 1 1 1 4 4 0 0 1-4 4z",key:"1pxcvx"}],["path",{d:"M9.159 2.46a1 1 0 0 1 1.521-.193l9.977 8.98A1 1 0 0 1 20 13H4a1 1 0 0 1-.824-1.567z",key:"5oog16"}]]};s.node;let n=(0,t.default)(s);e.s(["Sailboat",0,n],85627)},41220,e=>{"use strict";var t=e.i(56420);let a={name:"server",size:24,node:[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]};a.node;let i=(0,t.default)(a);e.s(["Server",0,i],41220)},83035,e=>{"use strict";var t=e.i(56420);let a={name:"square-terminal",size:24,node:[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],aliases:["terminal-square"]};a.node;let i=(0,t.default)(a);e.s(["SquareTerminal",0,i],83035)},66787,e=>{"use strict";var t=e.i(56420);let a={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};a.node;let i=(0,t.default)(a);e.s(["TriangleAlert",0,i],66787)},94831,e=>{"use strict";var t=e.i(56420);let a={name:"unplug",size:24,node:[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]]};a.node;let i=(0,t.default)(a);e.s(["Unplug",0,i],94831)},92870,e=>{"use strict";var t=e.i(56420);let a={name:"user-check",size:24,node:[["path",{d:"m16 11 2 2 4-4",key:"9rsbq5"}],["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]};a.node;let i=(0,t.default)(a);e.s(["UserCheck",0,i],92870)},63481,e=>{"use strict";var t=e.i(43476),a=e.i(56420);let i={name:"app-window",size:24,node:[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]]};i.node;let s=(0,a.default)(i);var n=e.i(71567);let r={name:"cloud",size:24,node:[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]};r.node;let l=(0,a.default)(r),o={name:"laptop",size:24,node:[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]]};o.node;let d=(0,a.default)(o),c={name:"map-pin",size:24,node:[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]};c.node;let h=(0,a.default)(c),u={name:"message-circle",size:24,node:[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]]};u.node;let y=(0,a.default)(u);var p=e.i(41220),k=e.i(83035),m=e.i(94831),g=e.i(90063),b=e.i(66616),f=e.i(40798);let v={DEVICE:d,CLOUD:l,SERVER:p.Server,OTHER:h},x={coding:k.SquareTerminal,chat:y,bot:n.Bot,console:s},M={md:"text-body",sm:"text-meta"};e.s(["LocationTag",0,function({kind:e,description:a=null,harness:i=null,isCompact:s=!1,size:n="md",className:r}){let l=(0,g.classNames)("inline-flex min-w-0 items-center gap-1.5 text-muted-foreground [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",M[n],r);if(null===e)return(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,children:[(0,t.jsx)(m.Unplug,{"aria-hidden":!0}),"No session"]});let o=v[e],d=(0,f.locationKindWord)(e),c=null===a?d:`${d} \xb7 ${a}`;if(null!==i){let e=(0,b.harnessKind)(i),s=void 0===e?void 0:x[e],n=(0,b.harnessWord)(i);return(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,title:null===a?`${n} \xb7 ${d}`:`${n} \xb7 ${d}: ${a}`,children:[void 0===s?null:(0,t.jsx)(s,{"aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate text-foreground",children:n}),(0,t.jsx)("span",{"aria-hidden":!0,children:"·"}),(0,t.jsx)(o,{"aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate",children:d}),null===a?null:(0,t.jsxs)("span",{className:"sr-only",children:[": ",a]})]})}return s?(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,title:c,children:[(0,t.jsx)(o,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"sr-only",children:[d,": "]}),(0,t.jsx)("span",{className:"truncate text-foreground",children:a??d})]}):(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,children:[(0,t.jsx)(o,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"truncate",children:[d,null===a?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{"aria-hidden":!0,children:" · "}),(0,t.jsx)("span",{className:"sr-only",children:", "}),(0,t.jsx)("span",{className:"text-foreground",children:a})]})]})]})}],63481)},78865,e=>{"use strict";var t=e.i(43476),a=e.i(49655),i=e.i(87255),s=e.i(76561),n=e.i(47211),r=e.i(22768),l=e.i(50092),o=e.i(36604),d=e.i(19002),c=e.i(32297),h=e.i(21048),u=e.i(74544),y=e.i(85595),p=e.i(52886),k=e.i(26391),m=e.i(19647),g=e.i(16984),b=e.i(10001),f=e.i(71028),v=e.i(81658),x=e.i(44594),M=e.i(11568),w=e.i(25799),C=e.i(85512),z=e.i(57665),R=e.i(95925),S=e.i(85627),q=e.i(66787),E=e.i(92870),O=e.i(56420);let I={name:"user-round-search",size:24,node:[["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M2 21a8 8 0 0 1 10.434-7.62",key:"1yezr2"}],["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["path",{d:"m22 22-1.9-1.9",key:"1e5ubv"}]]};I.node;let j=(0,O.default)(I);var A=e.i(90063),H=e.i(66390);let Q={waiting:"border-tone-waiting-border bg-tone-waiting-bg text-tone-waiting-fg",active:"border-tone-active-border bg-tone-active-bg text-tone-active-fg",ok:"border-tone-ok-border bg-tone-ok-bg text-tone-ok-fg",attention:"border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg",ended:"border-tone-ended-border bg-tone-ended-bg text-tone-ended-fg"},T={awaitingCrew:{tone:"waiting",Icon:p.CircleDashed,label:"Awaiting crew"},crewed:{tone:"ok",Icon:E.UserCheck,label:"Crewed"},retired:{tone:"ended",Icon:s.Archive,label:"Retired"},pending:{tone:"waiting",Icon:v.Hourglass,label:"Pending"},received:{tone:"active",Icon:x.Inbox,label:"Received"},handed:{tone:"active",Icon:l.CircleArrowRight,label:"Handed (pulled)"},handedPushed:{tone:"active",Icon:l.CircleArrowRight,label:"Handed"},overdue:{tone:"attention",Icon:a.AlarmClock,label:"Overdue"},acknowledged:{tone:"ok",Icon:y.CircleCheck,label:"Acknowledged"},handled:{tone:"ok",Icon:o.CircleCheckBig,label:"Handled"},notHandled:{tone:"attention",Icon:r.CircleAlert,label:"Not handled"},undeliverable:{tone:"attention",Icon:g.CircleX,label:"Undeliverable"},dismissed:{tone:"ended",Icon:m.CircleMinus,label:"Dismissed"},abandoned:{tone:"ended",Icon:n.Ban,label:"Abandoned"},forming:{tone:"waiting",Icon:k.CircleDotDashed,label:"Forming"},sailing:{tone:"ok",Icon:S.Sailboat,label:"Sailing"},"standing-down":{tone:"active",Icon:i.Anchor,label:"Standing down"},disbanded:{tone:"ended",Icon:b.FlagOff,label:"Disbanded"},"at-limit":{tone:"waiting",Icon:f.Gauge,label:"At limit"},"over-limit":{tone:"attention",Icon:q.TriangleAlert,label:"Over limit"},needsCrew:{tone:"waiting",Icon:u.Clock,label:"Needs crew"},crewedByHand:{tone:"ok",Icon:E.UserCheck,label:"Crewed by hand"},crewing:{tone:"active",Icon:M.LoaderCircle,label:"Crewing"},running:{tone:"ok",Icon:c.CirclePlay,label:"Running"},restarting:{tone:"waiting",Icon:R.RotateCcw,label:"Restarting"},crashed:{tone:"attention",Icon:g.CircleX,label:"Crashed"},releasing:{tone:"active",Icon:z.Power,label:"Releasing"},stuck:{tone:"attention",Icon:C.OctagonAlert,label:"Stuck"},delivering:{tone:"ok",Icon:w.MailCheck,label:"Delivering"},noShipCanTake:{tone:"attention",Icon:h.CircleSlash,label:"No ship can take"},waitingForCrew:{tone:"waiting",Icon:j,label:"Waiting for crew"},stalledInFlight:{tone:"waiting",Icon:d.CirclePause,label:"Stalled in flight"}};e.s(["StatusBadge",0,function({status:e,className:a}){let{tone:i,Icon:s,label:n}=T[e];return(0,t.jsxs)(H.Badge,{variant:"outline","data-slot":"status-badge","data-status":e,className:(0,A.classNames)(Q[i],"abandoned"===e?"border-dashed":void 0,a),children:[(0,t.jsx)(s,{"aria-hidden":!0}),n]})},"statusLabel",0,function(e){return T[e].label}],78865)},66616,e=>{"use strict";var t=e.i(49635);let a={"claude-code":{word:"Claude Code",kind:"coding"},codex:{word:"Codex",kind:"coding"},"claude-chat":{word:"Claude chat",kind:"chat"},chatgpt:{word:"ChatGPT",kind:"chat"},grok:{word:"Grok",kind:"chat"},grokbot:{word:"Grokbot",kind:"bot"},console:{word:"Console",kind:"console"}};function i(e){return a[e]?.word??e}e.s(["crewLineHarnessWord",0,function(e){return"chat"===e?"Chat":i(e)},"harnessDetection",0,function(e,a){if(void 0===e.version)return;if(void 0===e.modelsConfirmedAt||null===e.modelsConfirmedAt)return`${e.version} \xb7 no model confirmed`;let i=(0,t.relativeTime)(new Date(e.modelsConfirmedAt),a);return`${e.version} \xb7 models confirmed ${"Just now"===i?"just now":i}`},"harnessKind",0,function(e){return a[e]?.kind},"harnessWord",0,i])},40798,e=>{"use strict";let t={DEVICE:"Device",CLOUD:"Cloud",SERVER:"Server",OTHER:"Other"};e.s(["locationKindWord",0,function(e){return t[e]}])},53573,e=>{"use strict";var t=e.i(19273),a=e.i(86448),i=e.i(66027),s=e.i(5387),n=e.i(27702);e.s(["useMessage",0,function(e){let a=(0,n.useTRPC)();return(0,i.useQuery)(a.fleet.message.queryOptions(void 0===e?t.skipToken:{messageId:e}))},"useShip",0,function(e){let a=(0,n.useTRPC)();return(0,i.useQuery)(a.fleet.ship.queryOptions(void 0===e?t.skipToken:{shipId:e},{refetchInterval:s.LAST_SEEN_REFRESH_MS}))},"useShipMessages",0,function(e){let t=(0,n.useTRPC)();return(0,i.useQuery)(t.fleet.shipMessages.queryOptions({shipId:e}))},"useShipTimeline",0,function(e){let t=(0,n.useTRPC)();return(0,i.useQuery)(t.fleet.shipTimeline.queryOptions({shipId:e}))},"useShipWay",0,function(e){let t=(0,n.useTRPC)();return(0,i.useQuery)(t.fleet.shipWay.queryOptions({shipId:e},{refetchInterval:s.LAST_SEEN_REFRESH_MS}))},"useShips",0,function(e){let t=(0,n.useTRPC)(),i=(0,a.useQueries)({queries:e.map(e=>t.fleet.ship.queryOptions({shipId:e},{refetchInterval:s.LAST_SEEN_REFRESH_MS}))}),r=new Map;for(let e of i)e.data&&r.set(e.data.id,e.data);return r}])}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,86448,e=>{"use strict";var t=e.i(12598),a=e.i(81384),i=e.i(73664),s=e.i(27001),n=e.i(54440),r=e.i(71645),l=e.i(19273),o=e.i(15823),d=e.i(40143),c=e.i(69230);function h(e,t){let a=new Set(t);return e.filter(e=>!a.has(e))}var u=class extends o.Subscribable{#e;#t;#a;#i;#s;#n;#r;#l;#o;#d=[];constructor(e,t,a){super(),this.#e=e,this.#i=a,this.#a=[],this.#s=[],this.#t=[],this.setQueries(t)}onSubscribe(){1===this.listeners.size&&this.#s.forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#s.forEach(e=>{e.destroy()})}setQueries(e,t){this.#a=e,this.#i=t,d.notifyManager.batch(()=>{let e=this.#s,t=this.#h(this.#a);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let a=t.map(e=>e.observer),i=a.map(e=>e.getCurrentResult()),s=e.length!==a.length,n=a.some((t,a)=>t!==e[a]),r=s||n,o=!!r||i.some((e,t)=>{let a=this.#t[t];return!a||!(0,l.shallowEqualObjects)(e,a)});(r||o)&&(r&&(this.#d=t,this.#s=a),this.#t=i,this.hasListeners()&&(r&&(h(e,a).forEach(e=>{e.destroy()}),h(a,e).forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})),this.#u()))})}getCurrentResult(){return this.#t}getQueries(){return this.#s.map(e=>e.getCurrentQuery())}getObservers(){return this.#s}getOptimisticResult(e,t){let a=this.#h(e),i=a.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),s=a.map(e=>e.defaultedQueryOptions.queryHash);return[i,e=>this.#y(e??i,t,s),()=>this.#p(i,a)]}#p(e,t){let a=new Set;return t.map((i,s)=>{let n=e[s];return i.defaultedQueryOptions.notifyOnChangeProps?n:i.observer.trackResult(n,e=>{a.has(e)||(a.add(e),t.forEach(t=>{t.observer.trackProp(e)}))})})}#y(e,t,a){if(t){let i=this.#o,s=void 0!==a&&void 0!==i&&(i.length!==a.length||a.some((e,t)=>e!==i[t]));return(this.#t!==this.#l||s||t!==this.#r)&&(this.#r=t,this.#l=this.#t,void 0!==a&&(this.#o=a),this.#n=(0,l.replaceEqualDeep)(this.#n,t(e))),this.#n}return e}#k(){return!this.#i?.combine||this.#s.some((e,t)=>e.options.suspense&&this.#t[t]?.data===void 0)}#h(e){let t=new Map;this.#s.forEach(e=>{let a=e.options.queryHash;if(!a)return;let i=t.get(a);i?i.push(e):t.set(a,[e])});let a=[];return e.forEach(e=>{let i=this.#e.defaultQueryOptions(e),s=t.get(i.queryHash)?.shift()??new c.QueryObserver(this.#e,i);a.push({defaultedQueryOptions:i,observer:s})}),a}#c(e,t){let a=this.#s.indexOf(e);-1!==a&&(this.#t=this.#t.slice(),this.#t[a]=t,this.#u())}#u(){if(this.hasListeners()){let e=this.#k(),t=this.#n,a=e?t:this.#y(this.#p(this.#t,this.#d),this.#i?.combine);(e||t!==a)&&d.notifyManager.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}};e.s(["useQueries",0,function({queries:e,...o},h){let y=(0,t.useQueryClient)(h),p=(0,a.useIsRestoring)(),k=(0,i.useQueryErrorResetBoundary)(),m=!1!==o.subscribed,g=r.useMemo(()=>e.map(e=>{let t=y.defaultQueryOptions(e);return t._optimisticResults=p?"isRestoring":m?"optimistic":void 0,t}),[e,y,p,m]);g.forEach(e=>{(0,n.ensureSuspenseTimers)(e);let t=y.getQueryCache().get(e.queryHash);(0,s.ensurePreventErrorBoundaryRetry)(e,k,t)}),(0,s.useClearResetErrorBoundary)(k);let[b]=r.useState(()=>new u(y,g,o)),[f,v,x]=b.getOptimisticResult(g,o.combine),M=!p&&m;r.useSyncExternalStore(r.useCallback(e=>M?b.subscribe(d.notifyManager.batchCalls(e)):l.noop,[b,M]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),r.useEffect(()=>{b.setQueries(g,o)},[g,o,b]);let w=f.some((e,t)=>(0,n.shouldSuspend)(g[t],e))?f.flatMap((e,t)=>{let a=g[t];if(a&&(0,n.shouldSuspend)(a,e)){let e=new c.QueryObserver(y,a);return(0,n.fetchOptimistic)(a,e,k)}return[]}):[];if(w.length>0)throw Promise.all(w);let C=f.find((e,t)=>{let a=g[t];return a&&(0,s.getHasError)({result:e,errorResetBoundary:k,throwOnError:a.throwOnError,query:y.getQueryCache().get(a.queryHash),suspense:a.suspense})});if(C)throw C.error;return v(x())}],86448)},49655,87255,50092,36604,e=>{"use strict";var t=e.i(56420);let a={name:"alarm-clock",size:24,node:[["circle",{cx:"12",cy:"13",r:"8",key:"3y4lt7"}],["path",{d:"M12 9v4l2 2",key:"1c63tq"}],["path",{d:"M5 3 2 6",key:"18tl5t"}],["path",{d:"m22 6-3-3",key:"1opdir"}],["path",{d:"M6.38 18.7 4 21",key:"17xu3x"}],["path",{d:"M17.64 18.67 20 21",key:"kv2oe2"}]]};a.node;let i=(0,t.default)(a);e.s(["AlarmClock",0,i],49655);let s={name:"anchor",size:24,node:[["path",{d:"M12 6v16",key:"nqf5sj"}],["path",{d:"m19 13 2-1a9 9 0 0 1-18 0l2 1",key:"y7qv08"}],["path",{d:"M9 11h6",key:"1fldmi"}],["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}]]};s.node;let n=(0,t.default)(s);e.s(["Anchor",0,n],87255);let r={name:"circle-arrow-right",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m12 16 4-4-4-4",key:"1i9zcv"}],["path",{d:"M8 12h8",key:"1wcyev"}]],aliases:["arrow-right-circle"]};r.node;let l=(0,t.default)(r);e.s(["CircleArrowRight",0,l],50092);let o={name:"circle-check-big",size:24,node:[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],aliases:["check-circle"]};o.node;let d=(0,t.default)(o);e.s(["CircleCheckBig",0,d],36604)},76561,e=>{"use strict";var t=e.i(56420);let a={name:"archive",size:24,node:[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]};a.node;let i=(0,t.default)(a);e.s(["Archive",0,i],76561)},47211,e=>{"use strict";var t=e.i(56420);let a={name:"ban",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]]};a.node;let i=(0,t.default)(a);e.s(["Ban",0,i],47211)},71567,e=>{"use strict";var t=e.i(56420);let a={name:"bot",size:24,node:[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]};a.node;let i=(0,t.default)(a);e.s(["Bot",0,i],71567)},52886,e=>{"use strict";var t=e.i(56420);let a={name:"circle-dashed",size:24,node:[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]};a.node;let i=(0,t.default)(a);e.s(["CircleDashed",0,i],52886)},19002,e=>{"use strict";var t=e.i(56420);let a={name:"circle-pause",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]],aliases:["pause-circle"]};a.node;let i=(0,t.default)(a);e.s(["CirclePause",0,i],19002)},32297,26391,19647,10001,25799,e=>{"use strict";var t=e.i(56420);let a={name:"circle-play",size:24,node:[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],aliases:["play-circle"]};a.node;let i=(0,t.default)(a);e.s(["CirclePlay",0,i],32297);let s={name:"circle-dot-dashed",size:24,node:[["path",{d:"M10.1 2.18a9.93 9.93 0 0 1 3.8 0",key:"1qdqn0"}],["path",{d:"M17.6 3.71a9.95 9.95 0 0 1 2.69 2.7",key:"1bq7p6"}],["path",{d:"M21.82 10.1a9.93 9.93 0 0 1 0 3.8",key:"1rlaqf"}],["path",{d:"M20.29 17.6a9.95 9.95 0 0 1-2.7 2.69",key:"1xk03u"}],["path",{d:"M13.9 21.82a9.94 9.94 0 0 1-3.8 0",key:"l7re25"}],["path",{d:"M6.4 20.29a9.95 9.95 0 0 1-2.69-2.7",key:"1v18p6"}],["path",{d:"M2.18 13.9a9.93 9.93 0 0 1 0-3.8",key:"xdo6bj"}],["path",{d:"M3.71 6.4a9.95 9.95 0 0 1 2.7-2.69",key:"1jjmaz"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]};s.node;let n=(0,t.default)(s);e.s(["CircleDotDashed",0,n],26391);let r={name:"circle-minus",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]],aliases:["minus-circle"]};r.node;let l=(0,t.default)(r);e.s(["CircleMinus",0,l],19647);let o={name:"flag-off",size:24,node:[["path",{d:"M16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1q158e"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M4 22V4",key:"1plyxx"}],["path",{d:"M7.656 2H8c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10.347",key:"xj1b71"}]]};o.node;let d=(0,t.default)(o);e.s(["FlagOff",0,d],10001);let c={name:"mail-check",size:24,node:[["path",{d:"M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8",key:"12jkf8"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"m16 19 2 2 4-4",key:"1b14m6"}]]};c.node;let h=(0,t.default)(c);e.s(["MailCheck",0,h],25799)},21048,e=>{"use strict";var t=e.i(56420);let a={name:"circle-slash",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]]};a.node;let i=(0,t.default)(a);e.s(["CircleSlash",0,i],21048)},16984,e=>{"use strict";var t=e.i(56420);let a={name:"circle-x",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-circle"]};a.node;let i=(0,t.default)(a);e.s(["CircleX",0,i],16984)},74544,e=>{"use strict";var t=e.i(56420);let a={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};a.node;let i=(0,t.default)(a);e.s(["Clock",0,i],74544)},71028,e=>{"use strict";var t=e.i(56420);let a={name:"gauge",size:24,node:[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]};a.node;let i=(0,t.default)(a);e.s(["Gauge",0,i],71028)},81658,e=>{"use strict";var t=e.i(56420);let a={name:"hourglass",size:24,node:[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]]};a.node;let i=(0,t.default)(a);e.s(["Hourglass",0,i],81658)},85512,e=>{"use strict";var t=e.i(56420);let a={name:"octagon-alert",size:24,node:[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]],aliases:["alert-octagon"]};a.node;let i=(0,t.default)(a);e.s(["OctagonAlert",0,i],85512)},57665,e=>{"use strict";var t=e.i(56420);let a={name:"power",size:24,node:[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]};a.node;let i=(0,t.default)(a);e.s(["Power",0,i],57665)},95925,85627,e=>{"use strict";var t=e.i(56420);let a={name:"rotate-ccw",size:24,node:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]};a.node;let i=(0,t.default)(a);e.s(["RotateCcw",0,i],95925);let s={name:"sailboat",size:24,node:[["path",{d:"M10 2v15",key:"1qf71f"}],["path",{d:"M7 22a4 4 0 0 1-4-4 1 1 0 0 1 1-1h16a1 1 0 0 1 1 1 4 4 0 0 1-4 4z",key:"1pxcvx"}],["path",{d:"M9.159 2.46a1 1 0 0 1 1.521-.193l9.977 8.98A1 1 0 0 1 20 13H4a1 1 0 0 1-.824-1.567z",key:"5oog16"}]]};s.node;let n=(0,t.default)(s);e.s(["Sailboat",0,n],85627)},41220,e=>{"use strict";var t=e.i(56420);let a={name:"server",size:24,node:[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]};a.node;let i=(0,t.default)(a);e.s(["Server",0,i],41220)},83035,e=>{"use strict";var t=e.i(56420);let a={name:"square-terminal",size:24,node:[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],aliases:["terminal-square"]};a.node;let i=(0,t.default)(a);e.s(["SquareTerminal",0,i],83035)},66787,e=>{"use strict";var t=e.i(56420);let a={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};a.node;let i=(0,t.default)(a);e.s(["TriangleAlert",0,i],66787)},94831,e=>{"use strict";var t=e.i(56420);let a={name:"unplug",size:24,node:[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]]};a.node;let i=(0,t.default)(a);e.s(["Unplug",0,i],94831)},92870,e=>{"use strict";var t=e.i(56420);let a={name:"user-check",size:24,node:[["path",{d:"m16 11 2 2 4-4",key:"9rsbq5"}],["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]};a.node;let i=(0,t.default)(a);e.s(["UserCheck",0,i],92870)},63481,e=>{"use strict";var t=e.i(43476),a=e.i(56420);let i={name:"app-window",size:24,node:[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]]};i.node;let s=(0,a.default)(i);var n=e.i(71567);let r={name:"cloud",size:24,node:[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]};r.node;let l=(0,a.default)(r),o={name:"laptop",size:24,node:[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]]};o.node;let d=(0,a.default)(o),c={name:"map-pin",size:24,node:[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]};c.node;let h=(0,a.default)(c),u={name:"message-circle",size:24,node:[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]]};u.node;let y=(0,a.default)(u);var p=e.i(41220),k=e.i(83035),m=e.i(94831),g=e.i(90063),b=e.i(66616),f=e.i(40798);let v={DEVICE:d,CLOUD:l,SERVER:p.Server,OTHER:h},x={coding:k.SquareTerminal,chat:y,bot:n.Bot,console:s},M={md:"text-body",sm:"text-meta"};e.s(["LocationTag",0,function({kind:e,description:a=null,harness:i=null,isCompact:s=!1,size:n="md",className:r}){let l=(0,g.classNames)("inline-flex min-w-0 items-center gap-1.5 text-muted-foreground [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",M[n],r);if(null===e)return(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,children:[(0,t.jsx)(m.Unplug,{"aria-hidden":!0}),"No session"]});let o=v[e],d=(0,f.locationKindWord)(e),c=null===a?d:`${d} \xb7 ${a}`;if(null!==i){let e=(0,b.harnessKind)(i),s=void 0===e?void 0:x[e],n=(0,b.harnessWord)(i);return(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,title:null===a?`${n} \xb7 ${d}`:`${n} \xb7 ${d}: ${a}`,children:[void 0===s?null:(0,t.jsx)(s,{"aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate text-foreground",children:n}),(0,t.jsx)("span",{"aria-hidden":!0,children:"·"}),(0,t.jsx)(o,{"aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate",children:d}),null===a?null:(0,t.jsxs)("span",{className:"sr-only",children:[": ",a]})]})}return s?(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,title:c,children:[(0,t.jsx)(o,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"sr-only",children:[d,": "]}),(0,t.jsx)("span",{className:"truncate text-foreground",children:a??d})]}):(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,children:[(0,t.jsx)(o,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"truncate",children:[d,null===a?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{"aria-hidden":!0,children:" · "}),(0,t.jsx)("span",{className:"sr-only",children:", "}),(0,t.jsx)("span",{className:"text-foreground",children:a})]})]})]})}],63481)},78865,e=>{"use strict";var t=e.i(43476),a=e.i(49655),i=e.i(87255),s=e.i(76561),n=e.i(47211),r=e.i(22768),l=e.i(50092),o=e.i(36604),d=e.i(19002),c=e.i(32297),h=e.i(21048),u=e.i(74544),y=e.i(85595),p=e.i(52886),k=e.i(26391),m=e.i(19647),g=e.i(16984),b=e.i(10001),f=e.i(71028),v=e.i(81658),x=e.i(44594),M=e.i(11568),w=e.i(25799),C=e.i(85512),R=e.i(57665),z=e.i(95925),S=e.i(85627),q=e.i(66787),E=e.i(92870),I=e.i(56420);let O={name:"user-round-search",size:24,node:[["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M2 21a8 8 0 0 1 10.434-7.62",key:"1yezr2"}],["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["path",{d:"m22 22-1.9-1.9",key:"1e5ubv"}]]};O.node;let j=(0,I.default)(O);var A=e.i(90063),H=e.i(66390);let Q={waiting:"border-tone-waiting-border bg-tone-waiting-bg text-tone-waiting-fg",active:"border-tone-active-border bg-tone-active-bg text-tone-active-fg",ok:"border-tone-ok-border bg-tone-ok-bg text-tone-ok-fg",attention:"border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg",ended:"border-tone-ended-border bg-tone-ended-bg text-tone-ended-fg"},T={awaitingCrew:{tone:"waiting",Icon:p.CircleDashed,label:"Awaiting crew"},crewed:{tone:"ok",Icon:E.UserCheck,label:"Crewed"},retired:{tone:"ended",Icon:s.Archive,label:"Retired"},pending:{tone:"waiting",Icon:v.Hourglass,label:"Pending"},received:{tone:"active",Icon:x.Inbox,label:"Received"},handed:{tone:"active",Icon:l.CircleArrowRight,label:"Handed (pulled)"},handedPushed:{tone:"active",Icon:l.CircleArrowRight,label:"Handed"},overdue:{tone:"attention",Icon:a.AlarmClock,label:"Overdue"},acknowledged:{tone:"ok",Icon:y.CircleCheck,label:"Acknowledged"},handled:{tone:"ok",Icon:o.CircleCheckBig,label:"Handled"},notHandled:{tone:"attention",Icon:r.CircleAlert,label:"Not handled"},undeliverable:{tone:"attention",Icon:g.CircleX,label:"Undeliverable"},dismissed:{tone:"ended",Icon:m.CircleMinus,label:"Dismissed"},abandoned:{tone:"ended",Icon:n.Ban,label:"Abandoned"},forming:{tone:"waiting",Icon:k.CircleDotDashed,label:"Forming"},sailing:{tone:"ok",Icon:S.Sailboat,label:"Sailing"},"standing-down":{tone:"active",Icon:i.Anchor,label:"Standing down"},disbanded:{tone:"ended",Icon:b.FlagOff,label:"Disbanded"},"at-limit":{tone:"waiting",Icon:f.Gauge,label:"At limit"},"over-limit":{tone:"attention",Icon:q.TriangleAlert,label:"Over limit"},needsCrew:{tone:"waiting",Icon:u.Clock,label:"Needs crew"},crewedByHand:{tone:"ok",Icon:E.UserCheck,label:"Crewed by hand"},crewing:{tone:"active",Icon:M.LoaderCircle,label:"Crewing"},running:{tone:"ok",Icon:c.CirclePlay,label:"Running"},restarting:{tone:"waiting",Icon:z.RotateCcw,label:"Restarting"},crashed:{tone:"attention",Icon:g.CircleX,label:"Crashed"},releasing:{tone:"active",Icon:R.Power,label:"Releasing"},stuck:{tone:"attention",Icon:C.OctagonAlert,label:"Stuck"},delivering:{tone:"ok",Icon:w.MailCheck,label:"Delivering"},noShipCanTake:{tone:"attention",Icon:h.CircleSlash,label:"No ship can take"},waitingForCrew:{tone:"waiting",Icon:j,label:"Waiting for crew"},stalledInFlight:{tone:"waiting",Icon:d.CirclePause,label:"Stalled in flight"}};e.s(["StatusBadge",0,function({status:e,className:a}){let{tone:i,Icon:s,label:n}=T[e];return(0,t.jsxs)(H.Badge,{variant:"outline","data-slot":"status-badge","data-status":e,className:(0,A.classNames)(Q[i],"abandoned"===e?"border-dashed":void 0,a),children:[(0,t.jsx)(s,{"aria-hidden":!0}),n]})},"statusLabel",0,function(e){return T[e].label}],78865)},66616,e=>{"use strict";var t=e.i(49635);let a={"claude-code":{word:"Claude Code",kind:"coding"},codex:{word:"Codex",kind:"coding"},"claude-chat":{word:"Claude chat",kind:"chat"},chatgpt:{word:"ChatGPT",kind:"chat"},grok:{word:"Grok",kind:"chat"},grokbot:{word:"Grokbot",kind:"bot"},console:{word:"Console",kind:"console"}};function i(e){return a[e]?.word??e}e.s(["crewLineHarnessWord",0,function(e){return"chat"===e?"Chat":i(e)},"harnessDetection",0,function(e,a){if(void 0===e.version)return;if(void 0===e.modelsConfirmedAt||null===e.modelsConfirmedAt)return`${e.version} \xb7 no model confirmed`;let i=(0,t.relativeTime)(new Date(e.modelsConfirmedAt),a);return`${e.version} \xb7 models confirmed ${"Just now"===i?"just now":i}`},"harnessKind",0,function(e){return a[e]?.kind},"harnessWord",0,i])},40798,e=>{"use strict";let t={DEVICE:"Device",CLOUD:"Cloud",SERVER:"Server",OTHER:"Other"};e.s(["locationKindWord",0,function(e){return t[e]}])},53573,e=>{"use strict";var t=e.i(70597),a=e.i(19273),i=e.i(86448),s=e.i(66027),n=e.i(5387),r=e.i(27702);e.s(["useMessage",0,function(e){let t=(0,r.useTRPC)();return(0,s.useQuery)(t.fleet.message.queryOptions(void 0===e?a.skipToken:{messageId:e}))},"useShip",0,function(e){let i=(0,r.useTRPC)();return(0,s.useQuery)(i.fleet.ship.queryOptions(void 0===e?a.skipToken:{shipId:e},{refetchInterval:n.LAST_SEEN_REFRESH_MS,select:e=>(0,t.isInReadReach)(e)?e:null}))},"useShipMessages",0,function(e){let t=(0,r.useTRPC)();return(0,s.useQuery)(t.fleet.shipMessages.queryOptions({shipId:e}))},"useShipTimeline",0,function(e){let t=(0,r.useTRPC)();return(0,s.useQuery)(t.fleet.shipTimeline.queryOptions({shipId:e}))},"useShipWay",0,function(e){let t=(0,r.useTRPC)();return(0,s.useQuery)(t.fleet.shipWay.queryOptions({shipId:e},{refetchInterval:n.LAST_SEEN_REFRESH_MS}))},"useShips",0,function(e){let a=(0,r.useTRPC)(),s=(0,i.useQueries)({queries:e.map(e=>a.fleet.ship.queryOptions({shipId:e},{refetchInterval:n.LAST_SEEN_REFRESH_MS}))}),l=new Map;for(let e of s)e.data&&(0,t.isInReadReach)(e.data)&&l.set(e.data.id,e.data);return l}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,92150,e=>{"use strict";var t=e.i(56420);let s={name:"boxes",size:24,node:[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]};s.node;let a=(0,t.default)(s);e.s(["Boxes",0,a],92150)},22212,e=>{"use strict";var t=e.i(43476),s=e.i(53753),a=e.i(90063),i=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:n,children:r,...o}){return(0,t.jsxs)(s.Dialog.Portal,{children:[(0,t.jsx)(s.Dialog.Backdrop,{"data-slot":"dialog-overlay",className:i.dialogSurface.overlay}),(0,t.jsx)(s.Dialog.Popup,{"data-slot":"dialog-content",className:(0,a.classNames)(i.dialogSurface.popup({size:n}),e),...o,children:r})]})},"DialogDescription",0,function({className:e,...n}){return(0,t.jsx)(s.Dialog.Description,{"data-slot":"dialog-description",className:(0,a.classNames)(i.dialogSurface.description,e),...n})},"DialogFooter",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"dialog-footer",className:(0,a.classNames)(i.dialogSurface.footer,e),...s})},"DialogHeader",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"dialog-header",className:(0,a.classNames)(i.dialogSurface.header,e),...s})},"DialogTitle",0,function({className:e,...n}){return(0,t.jsx)(s.Dialog.Title,{"data-slot":"dialog-title",className:(0,a.classNames)(i.dialogSurface.title,e),...n})}])},43988,e=>{"use strict";var t=e.i(43476),s=e.i(25913),a=e.i(90063);let i=(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:r=4,...o}){return(0,t.jsx)("textarea",{"data-slot":"textarea",rows:r,className:(0,a.classNames)(i({size:s,isMono:n}),e),...o})}])},95960,e=>{"use strict";var t=e.i(43476),s=e.i(92150),a=e.i(49287),i=e.i(86875),n=e.i(56420);let r={name:"tag-x",size:24,node:[["path",{d:"m16.5 6.5-3.914-3.914A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.43 2.43 0 0 0 3.42 0l1.79-1.79",key:"hu94c9"}],["path",{d:"m16.5 10.5 5 5",key:"1jo8bf"}],["path",{d:"m21.5 10.5-5 5",key:"jzei60"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]};r.node;let o=(0,n.default)(r);var l=e.i(63676),d=e.i(90063),c=e.i(80581);let m={"trierarch-plugin":i.ShipWheel,squadrons:s.Boxes,ship:a.Ship,gone:o};e.s(["LabelChip",0,function({chip:e,onRemove:s,testId:a,className:i,trailing:n,meaning:r}){let o="none"===e.mark?null:m[e.mark],h=`${e.key}=${e.value}`,u=void 0===r?(0,c.chipTitleOf)(e):`${(0,c.chipTitleOf)(e)}. ${r}`;return(0,t.jsxs)("span",{role:"group","aria-label":u,"data-slot":"label-chip","data-testid":a,title:u,className:(0,d.classNames)("inline-flex h-5.5 max-w-full min-w-0 shrink-0 items-center gap-1 rounded-sm border border-border bg-secondary px-1.5 font-mono text-id whitespace-nowrap text-foreground [&_svg]:size-3 [&_svg]:shrink-0 [&_svg]:text-muted-foreground","gone"===e.mark?"border-dashed":null,i),children:[null===o?null:(0,t.jsx)(o,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"truncate",children:[(0,t.jsxs)("span",{className:"text-muted-foreground",children:[e.key,"="]}),(0,t.jsx)("span",{className:"font-medium",children:e.value})]}),n,void 0===s?null:(0,t.jsx)("button",{type:"button","aria-label":`Remove ${h}`,onClick:s,className:"-mr-1 ml-0.5 inline-flex size-4 items-center justify-center rounded-xs text-muted-foreground hover:bg-accent hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring",children:(0,t.jsx)(l.X,{"aria-hidden":!0})})]})}],95960)},67858,e=>{e.v(t=>Promise.all(["static/chunks/20l4-ecv_oo2h.js","static/chunks/3vr80dn3nyqqi.js"].map(t=>e.l(t))).then(()=>t(59068)))},4032,e=>{"use strict";var t=e.i(43476),s=e.i(22768),a=e.i(74544),i=e.i(77071),n=e.i(63676),r=e.i(22016),o=e.i(71645),l=e.i(70703),d=e.i(78608),c=e.i(15905),m=e.i(6734),h=e.i(95960);let u=(0,l.default)(()=>e.A(67858).then(e=>e.LabelPicker),{loadableGenerated:{modules:[59068]},ssr:!1});function x({groups:e,picked:s,isDisabled:a,onAdd:n}){let[l,d]=(0,o.useState)(!1);return(0,t.jsxs)(m.Popover,{open:l,onOpenChange:d,children:[(0,t.jsx)(m.PopoverTrigger,{render:(0,t.jsx)(c.Button,{type:"button",variant:"ghost",size:"xs",icon:(0,t.jsx)(i.Plus,{}),disabled:a,"data-testid":"machine-labels-add"}),children:"Add label"}),(0,t.jsxs)(m.PopoverContent,{align:"start",sideOffset:6,className:"w-80 p-2","data-testid":"machine-labels-popover",children:[(0,t.jsx)("span",{className:"block px-2 pt-1 pb-2 text-body font-medium",children:"Machine label"}),(0,t.jsx)(u,{groups:e,pickedValueIds:s.map(e=>e.valueId),countWord:"machine",onPick:e=>{d(!1),n(e)}}),(0,t.jsxs)("p",{className:"mt-2 flex items-center justify-between gap-2 border-t border-border px-2 pt-2 text-meta text-muted-foreground",children:["Exact matches, all must hold.",(0,t.jsx)(r.default,{href:"/labels",className:"font-medium text-foreground hover:underline",children:"Manage labels"})]})]})]})}e.s(["MachineLabelsField",0,function({shipName:e,picked:i,groups:r,match:l,max:c,isDisabled:m,onAdd:u,onRemove:p,unknown:f=[],onRemoveUnknown:g}){let b=(0,d.noMatchWords)(i.length);return(0,t.jsxs)("div",{className:"flex flex-col gap-1.5","data-testid":"machine-labels",children:[(0,t.jsxs)("span",{className:"text-body font-medium",children:["Machine labels",(0,t.jsx)("span",{className:"font-normal text-muted-foreground",children:" optional"})]}),(0,t.jsxs)("div",{className:"flex min-h-(--size-control-sm) flex-wrap items-center gap-1.5",children:[0===i.length?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"Any machine"}):null,i.map((e,s)=>(0,t.jsxs)(o.Fragment,{children:[0===s?null:(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"and"}),(0,t.jsx)(h.LabelChip,{chip:e,testId:"machine-label",...m?{}:{onRemove:()=>{p(e.valueId)}}})]},e.valueId)),f.map(e=>(0,t.jsxs)("span",{"data-testid":"machine-label-unknown",title:`${e}: not in this fleet`,className:"inline-flex h-5.5 items-center gap-1 rounded-sm border border-tone-attention-border bg-tone-attention-bg px-1.5 font-mono text-id text-tone-attention-fg [&_svg]:size-3",children:[(0,t.jsx)(s.CircleAlert,{"aria-hidden":!0}),e,void 0===g||m?null:(0,t.jsx)("button",{type:"button","aria-label":`Remove ${e}`,onClick:()=>{g(e)},className:"-mr-1 ml-0.5 inline-flex size-4 items-center justify-center rounded-xs hover:bg-accent focus-visible:outline-2 focus-visible:outline-ring",children:(0,t.jsx)(n.X,{"aria-hidden":!0})})]},e)),i.length+f.length>=c?null:(0,t.jsx)(x,{groups:r,picked:i,isDisabled:m,onAdd:u})]}),0===f.length?null:(0,t.jsxs)("p",{role:"alert","data-testid":"machine-labels-unknown-note",className:"text-meta text-tone-attention-fg",children:["Not in this fleet: ",f.join(", "),". Forming refuses ",1===f.length?"it":"them",": define ",1===f.length?"it":"them"," on the Labels page, or remove ",1===f.length?"it":"them"," here."]}),0===i.length?null:0===l.matching.length?(0,t.jsxs)("p",{role:"status","data-testid":"machine-labels-match",className:"flex items-start gap-2 rounded-lg border border-tone-waiting-border bg-tone-waiting-bg px-3 py-2 text-meta text-tone-waiting-fg [&_svg]:mt-0.5 [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",children:[(0,t.jsx)(a.Clock,{"aria-hidden":!0}),(0,t.jsxs)("span",{children:["No machine matches ",b.these,". You can still request: it waits on Needs crew until a machine ",b.carries,"."]})]}):(0,t.jsxs)("p",{className:"text-meta","data-testid":"machine-labels-match",children:["Matches ",l.matching.length," of ",l.total," ",1===l.total?"machine":"machines",": ",l.matching.join(", "),"."]}),(0,t.jsxs)("p",{className:"text-meta text-muted-foreground",children:["The plugin places ",e," only on a machine that carries every label here. Leave it empty for any machine."]})]})}])},92963,e=>{"use strict";var t=e.i(43476),s=e.i(10818),a=e.i(25398),i=e.i(71645),n=e.i(96994),r=e.i(84294),o=e.i(15905),l=e.i(22212),d=e.i(94945),c=e.i(91727),m=e.i(46033),h=e.i(14732),u=e.i(17981),x=e.i(16327),p=e.i(67927),f=e.i(85595),g=e.i(52886),b=e.i(90063),j=e.i(66616),v=e.i(12470),k=e.i(43988),y=e.i(4032);function w({id:e,label:s,isRequired:a,hint:i,children:n}){return(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsxs)(c.Label,{htmlFor:e,children:[s,(0,t.jsx)("span",{className:"font-normal text-muted-foreground",children:a?" required":" optional"})]}),n,void 0===i?null:(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:i})]})}function N({id:e,items:s,value:a,onPick:i,isDisabled:n,testId:r}){return(0,t.jsxs)(m.Select,{items:s,value:a,disabled:n,onValueChange:e=>{i("string"==typeof e?e:"")},children:[(0,t.jsx)(m.SelectTrigger,{id:e,"data-testid":r,children:(0,t.jsx)(m.SelectValue,{})}),(0,t.jsx)(m.SelectContent,{children:Object.entries(s).map(([e,s])=>(0,t.jsx)(m.SelectItem,{value:e,children:s},e))})]})}function C(e){return"string"==typeof e?e:JSON.stringify(e)}function S({member:e,offers:s,workspaces:a,machineLabels:r,isOpen:o,onOpenChange:l,isDisabled:d,error:c,onChange:m}){let h={workspace:(0,i.useId)(),harness:(0,i.useId)(),options:(0,i.useId)(),firstPrompt:(0,i.useId)(),parameters:(0,i.useId)()},D=(0,n.missingOf)(e),T=s.find(t=>t.harness===e.harness),q={"":"The trierarch’s default",...Object.fromEntries(s.map(e=>[e.harness,(0,j.harnessWord)(e.harness)])),...""===e.harness||T?{}:{[e.harness]:(0,j.harnessWord)(e.harness)}},F=new Set((T?.options??[]).map(e=>e.name)),I=Object.entries(e.options).filter(([e])=>!F.has(e)),O=o?x.ChevronDown:p.ChevronRight;return(0,t.jsxs)("section",{"aria-label":e.slot,"data-testid":"member-crew-section",className:(0,b.classNames)("flex flex-col rounded-lg border bg-card",void 0===c?"border-border":"border-tone-attention-border"),children:[(0,t.jsxs)("button",{type:"button","aria-expanded":o,"data-testid":"member-crew-toggle",className:"flex min-h-11 items-center gap-2.5 px-3.5 py-2 text-left focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",onClick:()=>{l(!o)},children:[(0,t.jsx)(O,{"aria-hidden":!0,className:"text-muted-foreground"}),(0,t.jsx)("span",{className:"font-mono text-body font-medium",children:e.slot}),(0,t.jsx)("span",{className:"font-mono text-meta text-muted-foreground",children:e.template}),(0,t.jsx)("span",{className:"flex-1"}),0===D.length?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 text-meta text-tone-ok-fg","data-testid":"member-crew-ready",children:[(0,t.jsx)(f.CircleCheck,{"aria-hidden":!0}),"Ready"]}):(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 text-meta text-tone-waiting-fg","data-testid":"member-crew-missing",children:[(0,t.jsx)(g.CircleDashed,{"aria-hidden":!0}),"Needs ",D.join(", ")]})]}),void 0===c?null:(0,t.jsx)("div",{className:"px-3.5 pb-3",children:(0,t.jsx)(u.InlineError,{variant:"field",title:c})}),o?(0,t.jsxs)("div",{className:"flex flex-col gap-4 border-t border-border px-3.5 py-3.5",children:[(0,t.jsx)(w,{id:h.workspace,label:"Workspace",isRequired:!0,hint:"A repository gets a new git worktree for this ship; a folder is used as it is.",children:(0,t.jsx)(N,{id:h.workspace,items:a,value:void 0===e.workspace?"":(0,n.workspaceItemOf)(e.workspace),isDisabled:d,testId:"member-crew-workspace",onPick:t=>{m({...e,workspace:(0,n.workspaceFromItem)(t)})}})}),(0,t.jsx)(w,{id:h.harness,label:"Harness",children:(0,t.jsx)(N,{id:h.harness,items:q,value:e.harness,isDisabled:d,testId:"member-crew-harness",onPick:t=>{m({...e,harness:t})}})}),(T?.options??[]).map((s,a)=>(0,t.jsx)(w,{id:`${h.options}-${String(a)}`,label:s.name,children:(0,t.jsx)(N,{id:`${h.options}-${String(a)}`,items:{"":"The trierarch’s default",...Object.fromEntries(s.values.map(e=>[e,e===s.defaultValue?`${e} (default)`:e])),..."string"==typeof e.options[s.name]&&!s.values.includes(C(e.options[s.name]))?{[C(e.options[s.name])]:C(e.options[s.name])}:{}},value:void 0===e.options[s.name]?"":C(e.options[s.name]),isDisabled:d,testId:"member-crew-option",onPick:t=>{let a=Object.fromEntries(Object.entries(e.options).filter(([e])=>e!==s.name));m({...e,options:""===t?a:{...a,[s.name]:t}})}})},s.name)),0===I.length?null:(0,t.jsxs)("div",{className:"flex flex-col gap-1","data-testid":"member-crew-file-options",children:[(0,t.jsx)("span",{className:"text-body font-medium",children:"From its files"}),(0,t.jsx)("ul",{className:"flex flex-wrap gap-1.5",children:I.map(([e,s])=>(0,t.jsxs)("li",{className:"rounded-sm bg-secondary px-1.5 py-0.5 font-mono text-id",children:[e,"=",C(s)]},e))})]}),void 0===r?null:(0,t.jsx)(y.MachineLabelsField,{shipName:e.slot,picked:r.chipsOf(e.machineLabels),groups:r.groups,match:r.matchOf(e.machineLabels),max:r.max,isDisabled:d,unknown:e.unknownLabels,onAdd:t=>{m({...e,machineLabels:[...e.machineLabels,t]})},onRemove:t=>{m({...e,machineLabels:e.machineLabels.filter(e=>e!==t)})},onRemoveUnknown:t=>{m({...e,unknownLabels:e.unknownLabels.filter(e=>e!==t)})}}),(0,t.jsx)(w,{id:h.firstPrompt,label:"First prompt",hint:"The session starts with it, on its first start only.",children:(0,t.jsx)(k.Textarea,{id:h.firstPrompt,value:e.firstPrompt,disabled:d,"data-testid":"member-crew-first-prompt",rows:2,onChange:t=>{m({...e,firstPrompt:t.target.value})}})}),e.parameters.map((s,a)=>(0,t.jsx)(w,{id:`${h.parameters}-${String(a)}`,label:s.name,isRequired:!0,hint:s.description,children:(0,t.jsx)(v.Input,{id:`${h.parameters}-${String(a)}`,value:s.value,disabled:d,"aria-invalid":""===s.value.trim()||void 0,"data-testid":"member-crew-parameter",onChange:t=>{m({...e,parameters:e.parameters.map(e=>e.name===s.name?{...e,value:t.target.value}:e)})}})},s.name))]}):null]})}function D({drafts:e,crew:s,isPending:a,error:r,onBack:d,onSubmit:h}){let x=(0,i.useId)(),[p,f]=(0,i.useState)(()=>(0,n.membersOf)(e,s.context)),[g,b]=(0,i.useState)(()=>new Set((0,n.membersOf)(e,s.context).filter(e=>(0,n.missingOf)(e).length>0).map(e=>e.slot))),j=(0,n.workspaceItemsOf)(s.offers,p),{ready:v,total:k}=(0,n.readyCount)(p),y=v===k,w=void 0===r?void 0:(0,n.labelErrorSlot)(r,{members:p,context:s.context}),N=p.some(e=>void 0===e.workspace);return(0,t.jsxs)(t.Fragment,{children:[0===s.offers.length?(0,t.jsx)("p",{role:"status",className:"rounded-md border border-tone-waiting-border bg-tone-waiting-bg px-3 py-2 text-meta text-tone-waiting-fg",children:"No machine answers with what it offers yet, so there is no workspace to pick. Join a machine under Trierarchs, or wait for its trierarch to report."}):null,N&&Object.keys(j).length>0?(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)(c.Label,{htmlFor:x,children:"Workspace for every member without one"}),(0,t.jsxs)(m.Select,{items:{"":"Pick a workspace",...j},value:"",disabled:a,onValueChange:e=>{let t="string"==typeof e?(0,n.workspaceFromItem)(e):void 0;void 0!==t&&f(e=>(0,n.withWorkspaceForAll)(e,t))},children:[(0,t.jsx)(m.SelectTrigger,{id:x,"data-testid":"form-squadron-workspace-all",children:(0,t.jsx)(m.SelectValue,{})}),(0,t.jsx)(m.SelectContent,{children:Object.entries(j).map(([e,s])=>(0,t.jsx)(m.SelectItem,{value:e,children:s},e))})]})]}):null,(0,t.jsx)("div",{className:"-mx-1 flex max-h-[55vh] flex-col gap-2 overflow-y-auto px-1 max-sm:max-h-none max-sm:flex-1","data-testid":"form-squadron-members",children:p.map(e=>(0,t.jsx)(S,{member:e,offers:s.offers,workspaces:j,...void 0===s.machineLabels?{}:{machineLabels:s.machineLabels},isOpen:g.has(e.slot)||w===e.slot,onOpenChange:t=>{b(s=>{let a=new Set(s);return t?a.add(e.slot):a.delete(e.slot),a})},isDisabled:a,...w===e.slot&&void 0!==r?{error:r}:{},onChange:e=>{f(t=>t.map(t=>t.slot===e.slot?e:t))}},e.slot))}),void 0!==r&&void 0===w?(0,t.jsx)(u.InlineError,{variant:"field",title:"Couldn’t form the squadron",description:r}):null,(0,t.jsxs)(l.DialogFooter,{className:"items-center border-t border-border pt-3",children:[(0,t.jsxs)("span",{className:"mr-auto text-meta tabular-nums","data-testid":"form-squadron-ready","aria-live":"polite",children:[v," of ",k," ",1===k?"member":"members"," ready"]}),(0,t.jsx)(o.Button,{type:"button",disabled:a,onClick:d,children:"Back"}),(0,t.jsx)(o.Button,{variant:"primary",isLoading:a,disabled:!y,"data-testid":"form-squadron-submit",onClick:()=>{h(p)},children:a?"Forming":"Form squadron"})]})]})}function T({blueprints:e,templates:n,isPending:d,error:x,onSubmit:p,initial:f,crew:g,onPicked:b}){let[j,v]=(0,i.useState)(1),[k,y]=(0,i.useState)(f?.key??e[0]?.key),w=e.find(e=>e.key===k)??e[0],[N,C]=(0,i.useState)(f?.version??w?.versions[0]?.version),S=w?.versions.find(e=>e.version===N)??w?.versions[0];if(!w||!S)return null;if(1===j){let s=Object.fromEntries(w.versions.map((e,t)=>[String(e.version),`v${String(e.version)}${0===t?" (latest)":""}`]));return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(l.DialogHeader,{children:[(0,t.jsx)(l.DialogTitle,{children:"Form a squadron"}),(0,t.jsx)(l.DialogDescription,{children:"Step 1 of 2. Pick a blueprint and the version to form it from."})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("span",{className:"text-meta font-medium",children:"Blueprint"}),(0,t.jsx)("div",{role:"radiogroup","aria-label":"Blueprint",className:"flex flex-col gap-2",children:e.map(e=>{let s=e.versions[0],a=e.key===w.key;return(0,t.jsxs)("button",{type:"button",role:"radio","aria-checked":a,"data-testid":"form-squadron-blueprint",onClick:()=>{y(e.key),C(e.versions[0]?.version)},className:"flex flex-col items-start gap-0.5 rounded-md border border-border px-3 py-2 text-left aria-checked:border-primary aria-checked:ring-1 aria-checked:ring-primary",children:[(0,t.jsxs)("span",{className:"text-body font-medium",children:[e.name," ",(0,t.jsxs)("span",{className:"font-mono text-meta text-muted-foreground",children:["v",s?.version,", latest"]})]}),(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:s?.description})]},e.key)})})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)(c.Label,{htmlFor:"form-squadron-version",children:"Version"}),(0,t.jsxs)(m.Select,{items:s,value:String(S.version),onValueChange:e=>{C(Number(e))},children:[(0,t.jsx)(m.SelectTrigger,{id:"form-squadron-version","aria-label":"Version",children:(0,t.jsx)(m.SelectValue,{})}),(0,t.jsx)(m.SelectContent,{children:Object.entries(s).map(([e,s])=>(0,t.jsx)(m.SelectItem,{value:e,children:s},e))})]}),(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:"Older versions stay available. Squadrons keep the version they were formed with."})]}),(0,t.jsxs)(l.DialogFooter,{children:[(0,t.jsx)(l.DialogClose,{render:(0,t.jsx)(o.Button,{type:"button"}),children:"Cancel"}),(0,t.jsx)(o.Button,{variant:"primary","data-testid":"form-squadron-preview",onClick:()=>{b?.({repository:S.repository,name:S.name,version:S.version}),v(2)},children:void 0===g?"Preview roles":"Next: the members"})]})]})}let q={repository:S.repository,name:S.name,version:S.version};if(void 0!==g)return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(l.DialogHeader,{children:[(0,t.jsxs)(l.DialogTitle,{children:["Form a squadron from ",S.name," v",S.version]}),(0,t.jsxs)(l.DialogDescription,{children:["Step 2 of 2. Each member, prefilled from its template and the blueprint. A workspace and every parameter are needed; the rest is optional. Forming commissions ",(0,r.memberCount)(S)," member ships and a flagship, and requests a crew for each member."]})]}),"ready"===g.state?(0,t.jsx)(D,{drafts:g.members,crew:g,isPending:d,...void 0===x?{}:{error:x},onBack:()=>{v(1)},onSubmit:e=>{p(q,e)}}):(0,t.jsxs)(t.Fragment,{children:["loading"===g.state?(0,t.jsx)("p",{className:"text-meta text-muted-foreground","data-testid":"form-squadron-members-loading",children:"Reading each member’s crew settings from its files."}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.InlineError,{variant:"field",title:"Couldn’t read the members’ crew settings",description:g.error??"Try again in a moment."}),(0,t.jsx)("div",{children:(0,t.jsx)(o.Button,{size:"sm",icon:(0,t.jsx)(a.RotateCw,{}),onClick:g.onRetry,children:"Try again"})})]}),(0,t.jsxs)(l.DialogFooter,{children:[(0,t.jsx)(o.Button,{type:"button",onClick:()=>{v(1)},children:"Back"}),(0,t.jsx)(o.Button,{variant:"primary",disabled:!0,"data-testid":"form-squadron-submit",children:"Form squadron"})]})]})]});let F=(0,r.rolePreviews)(S,n);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(l.DialogHeader,{children:[(0,t.jsxs)(l.DialogTitle,{children:["Form a squadron from ",S.name," v",S.version]}),(0,t.jsxs)(l.DialogDescription,{children:["Step 2 of 2. ",(0,r.memberCount)(S)," member ships and a flagship are commissioned when you confirm."]})]}),(0,t.jsxs)(h.Table,{children:[(0,t.jsx)(h.TableHeader,{children:(0,t.jsxs)(h.TableRow,{children:[(0,t.jsx)(h.TableHead,{children:"Role"}),(0,t.jsx)(h.TableHead,{children:"Template"}),(0,t.jsx)(h.TableHead,{children:"Members"}),(0,t.jsx)(h.TableHead,{children:"Check-in"})]})}),(0,t.jsx)(h.TableBody,{children:F.map(e=>(0,t.jsxs)(h.TableRow,{children:[(0,t.jsx)(h.TableCell,{className:"font-mono",children:e.role}),(0,t.jsx)(h.TableCell,{className:"font-mono",children:e.template}),(0,t.jsx)(h.TableCell,{children:e.count}),(0,t.jsx)(h.TableCell,{children:void 0===e.checkInMinutes?"unknown":(0,r.checkInText)(e.checkInMinutes)})]},e.role))})]}),(0,t.jsxs)("p",{className:"flex items-start gap-2 rounded-md bg-muted px-3 py-2 text-meta text-muted-foreground",children:[(0,t.jsx)(s.Info,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon-sm) shrink-0"}),(0,t.jsxs)("span",{children:["The flagship is named as the squadron, ",(0,t.jsxs)("span",{className:"font-mono",children:[S.name,"-"]})," plus six random characters: the squadron's address. Members are named by role."]})]}),(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:"Next you get crew lines and a launch note per member. You start each session by hand; the squadron sails once every member is on station."}),void 0!==x&&(0,t.jsx)(u.InlineError,{variant:"field",title:"Couldn’t form the squadron",description:x}),(0,t.jsxs)(l.DialogFooter,{children:[(0,t.jsx)(o.Button,{type:"button",disabled:d,onClick:()=>{v(1)},children:"Back"}),(0,t.jsx)(o.Button,{variant:"primary",isLoading:d,"data-testid":"form-squadron-submit",onClick:()=>{p(q)},children:d?"Forming":"Form squadron"})]})]})}e.s(["FormSquadronDialog",0,function(e){let{isOpen:s,onOpenChange:a,isPending:i}=e;return(0,t.jsx)(l.Dialog,{open:s,onOpenChange:e=>{i||a(e)},children:(0,t.jsx)(l.DialogContent,{size:"md","data-testid":"form-squadron-dialog",className:d.dialogSurface.phoneFullScreen,children:(0,t.jsx)(T,{...e})})})}],92963)},66616,e=>{"use strict";var t=e.i(49635);let s={"claude-code":{word:"Claude Code",kind:"coding"},codex:{word:"Codex",kind:"coding"},"claude-chat":{word:"Claude chat",kind:"chat"},chatgpt:{word:"ChatGPT",kind:"chat"},grok:{word:"Grok",kind:"chat"},grokbot:{word:"Grokbot",kind:"bot"},console:{word:"Console",kind:"console"}};function a(e){return s[e]?.word??e}e.s(["crewLineHarnessWord",0,function(e){return"chat"===e?"Chat":a(e)},"harnessDetection",0,function(e,s){if(void 0===e.version)return;if(void 0===e.modelsConfirmedAt||null===e.modelsConfirmedAt)return`${e.version} \xb7 no model confirmed`;let a=(0,t.relativeTime)(new Date(e.modelsConfirmedAt),s);return`${e.version} \xb7 models confirmed ${"Just now"===a?"just now":a}`},"harnessKind",0,function(e){return s[e]?.kind},"harnessWord",0,a])}]);
|