@aeolus-fleet/console 0.28.1 → 0.28.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.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 +14 -14
- package/.next/standalone/packages/console/.next/server/app/(console)/fleet-health/[cause]/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/fleet-health/[cause]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/fleet-health/page/server-reference-manifest.json +14 -14
- package/.next/standalone/packages/console/.next/server/app/(console)/fleet-health/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/fleet-health/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/inbox/page/server-reference-manifest.json +14 -14
- package/.next/standalone/packages/console/.next/server/app/(console)/inbox/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/inbox/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/labels/page/server-reference-manifest.json +14 -14
- package/.next/standalone/packages/console/.next/server/app/(console)/labels/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/labels/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/needs-attention/page/server-reference-manifest.json +14 -14
- package/.next/standalone/packages/console/.next/server/app/(console)/needs-attention/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/needs-attention/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/needs-crew/page/server-reference-manifest.json +14 -14
- package/.next/standalone/packages/console/.next/server/app/(console)/needs-crew/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/needs-crew/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/network/page/server-reference-manifest.json +14 -14
- package/.next/standalone/packages/console/.next/server/app/(console)/network/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/network/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/page/server-reference-manifest.json +14 -14
- package/.next/standalone/packages/console/.next/server/app/(console)/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/settings/page/server-reference-manifest.json +14 -14
- package/.next/standalone/packages/console/.next/server/app/(console)/settings/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/settings/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/ships/[shipId]/page/server-reference-manifest.json +14 -14
- package/.next/standalone/packages/console/.next/server/app/(console)/ships/[shipId]/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/ships/[shipId]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/[squadronId]/page/server-reference-manifest.json +14 -14
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/[squadronId]/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/[squadronId]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/blueprints/[name]/page/server-reference-manifest.json +14 -14
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/blueprints/[name]/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/blueprints/[name]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/page/server-reference-manifest.json +14 -14
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/templates/[name]/page/server-reference-manifest.json +14 -14
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/templates/[name]/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/templates/[name]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/[shipId]/page/server-reference-manifest.json +14 -14
- package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/[shipId]/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/[shipId]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/page/server-reference-manifest.json +14 -14
- package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/_global-error.html +1 -1
- package/.next/standalone/packages/console/.next/server/app/_global-error.rsc +1 -1
- package/.next/standalone/packages/console/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/packages/console/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/standalone/packages/console/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/packages/console/.next/server/app/api/reads/[read]/route.js.nft.json +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/ssr/0mxb_server_app_(console)_squadrons_blueprints_[name]_page_actions_1ccrd2_.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/0mxb_server_app_(console)_squadrons_templates_[name]_page_actions_0qzhozy.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_fleet-health_page_actions_0dxyn06.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_needs-crew_page_actions_0rhp085.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_network_page_actions_1qbofc5.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_settings_page_actions_07zyuya.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_ships_[shipId]_page_actions_09ros_6.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_squadrons_page_actions_04wqu1c.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_trierarchs_page_actions_13sd72a.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{0ysl_console_features_trierarchs_ui_organisms_clear-worktree-dialog_tsx_1317p-q._.js → 0ysl_console_features_trierarchs_ui_organisms_clear-worktree-dialog_tsx_0xsufp6._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/1eui__next-internal_server_app_(console)_fleet-health_[cause]_page_actions_196vwwc.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/1eui__next-internal_server_app_(console)_needs-attention_page_actions_17c4s8j.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/1eui__next-internal_server_app_(console)_squadrons_[squadronId]_page_actions_0183_z3.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/1eui__next-internal_server_app_(console)_trierarchs_[shipId]_page_actions_1yx88bk.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/{_07gombw._.js → _0gaycoj._.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/_0ulogg0._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0z9_vmu._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_0rxmuqz._.js → _13glq4v._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_11kd6ba._.js → _18wvycx._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1dwmj6t._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_1a8rkag._.js → _1goyv2m._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1svohzj._.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/_1yr1u1_._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_121u9ci._.js → packages_console_0tb6slk._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_0fashga._.js → packages_console_10p4oa0._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_0mw328z._.js → packages_console_1e5xv3c._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console__next-internal_server_app_(console)_inbox_page_actions_1g5uv6y.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console__next-internal_server_app_(console)_labels_page_actions_14z7vqr.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console__next-internal_server_app_(console)_page_actions_05lw-oq.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_components_organisms_crew-line-dialog_tsx_1hro237._.js → packages_console_components_organisms_crew-line-dialog_tsx_10ic0jx._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_features_1w4_d-7._.js → packages_console_features_10l91-9._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_features_squadrons_organisms_form-squadron-dialog_tsx_0iy9qp1._.js → packages_console_features_squadrons_organisms_form-squadron-dialog_tsx_18a-ikh._.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 +15 -15
- package/.next/standalone/packages/console/.next/static/chunks/{0k37l03brt1lx.js → 07fu9dcwa8gxg.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{1619u51m6z_zy.js → 0kuif7aw271c8.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{0-fzym4ddbgfl.js → 0wfjsy5tg3f5e.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{2lposccpgczy6.js → 1f9n-u_wk0h0z.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{2luplqg0e_2uu.js → 1g0s6oau289ch.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{12bv9goo6bo3g.js → 1lb3vicavory4.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{2cgenpdif8p18.js → 1rncy8otm-mdl.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{22sev5tbikm_p.js → 1y84-8pn5z-yf.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{0qpp7ptesfktl.js → 2ffgwmm-2s67e.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{1e5jqgsx_ixev.js → 2n5j8o83jx0pa.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{0q7s6fjx5zvzy.js → 2rnnem2_dp22_.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{02_0efuv8zr04.js → 2ut57cu4zz5tr.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{14e-f0w_cfqhg.js → 2vrrs04ad7ixx.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{2e383naxva7i6.js → 3698wv8cb8cwt.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{3ew37_k6shef6.js → 3cmed7o3h-y6p.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{0u8cdjuofezss.js → 3e0k_3qlcm9yl.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{41t0n1c_xovg1.js → 3e3zqxdrtx589.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/3pji8axxz6oas.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/3xvonltm45tuc.js +1 -0
- package/.next/standalone/packages/console/package.json +3 -3
- package/package.json +3 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0h21fie._.js +0 -3
- package/.next/standalone/packages/console/.next/static/chunks/16uyfps7c1xj6.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/1od7uozkhtt39.js +0 -1
- /package/.next/standalone/packages/console/.next/static/{a78dlby20rZF8ZnmPRYuF → mdxdjzB3-wk2MuucguEaJ}/_buildManifest.js +0 -0
- /package/.next/standalone/packages/console/.next/static/{a78dlby20rZF8ZnmPRYuF → mdxdjzB3-wk2MuucguEaJ}/_clientMiddlewareManifest.js +0 -0
- /package/.next/standalone/packages/console/.next/static/{a78dlby20rZF8ZnmPRYuF → mdxdjzB3-wk2MuucguEaJ}/_ssgManifest.js +0 -0
package/.next/standalone/packages/console/.next/static/chunks/{1e5jqgsx_ixev.js → 2n5j8o83jx0pa.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,24071,e=>{"use strict";var t=e.i(56420);let s={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};s.node;let a=(0,t.default)(s);e.s(["ChevronLeft",0,a],24071)},67927,e=>{"use strict";var t=e.i(56420);let s={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};s.node;let a=(0,t.default)(s);e.s(["ChevronRight",0,a],67927)},36518,e=>{"use strict";var t=e.i(56420);let s={name:"cloud-off",size:24,node:[["path",{d:"M10.94 5.274A7 7 0 0 1 15.71 10h1.79a4.5 4.5 0 0 1 4.222 6.057",key:"1uxyv8"}],["path",{d:"M18.796 18.81A4.5 4.5 0 0 1 17.5 19H9A7 7 0 0 1 5.79 5.78",key:"99tcn7"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]};s.node;let a=(0,t.default)(s);e.s(["CloudOff",0,a],36518)},58925,e=>{"use strict";var t=e.i(56420);let s={name:"key-round",size:24,node:[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]};s.node;let a=(0,t.default)(s);e.s(["KeyRound",0,a],58925)},77071,e=>{"use strict";var t=e.i(56420);let s={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};s.node;let a=(0,t.default)(s);e.s(["Plus",0,a],77071)},25398,e=>{"use strict";var t=e.i(56420);let s={name:"rotate-cw",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]};s.node;let a=(0,t.default)(s);e.s(["RotateCw",0,a],25398)},66595,e=>{"use strict";var t=e.i(56420);let s={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};s.node;let a=(0,t.default)(s);e.s(["Search",0,a],66595)},19759,e=>{"use strict";var t=e.i(56420);let s={name:"square-pen",size:24,node:[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],aliases:["pen-box","edit","pen-square"]};s.node;let a=(0,t.default)(s);e.s(["SquarePen",0,a],19759)},66787,e=>{"use strict";var t=e.i(56420);let s={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"]};s.node;let a=(0,t.default)(s);e.s(["TriangleAlert",0,a],66787)},89275,e=>{"use strict";var t=e.i(43476),s=e.i(56420);let a={name:"globe",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]};a.node;let r=(0,s.default)(a),n={name:"link-2",size:24,node:[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]};n.node;let i=(0,s.default)(n);var o=e.i(15905),l=e.i(17981),d=e.i(88393);function c({settings:e,loadError:s,onRetry:a,isConnecting:n,connectError:u,onConnect:m}){return void 0!==s?(0,t.jsx)(l.InlineError,{title:"Couldn’t read the gateway",description:s,onRetry:a}):void 0===e?(0,t.jsx)(d.LoadingSkeleton,{variant:"detail",rows:2,label:"Loading the gateway"}):"none"===e.state?null:(0,t.jsxs)("section",{"aria-labelledby":"settings-gateway","data-testid":"settings-gateway",className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsxs)("h2",{id:"settings-gateway",className:"flex items-center gap-2 text-body font-semibold [&_svg]:size-(--size-icon) [&_svg]:text-muted-foreground",children:[(0,t.jsx)(r,{"aria-hidden":!0}),"Gateway"]}),"connected"===e.state?(0,t.jsxs)("p",{className:"text-body","data-testid":"settings-gateway-state",children:["Connected as ",(0,t.jsx)("span",{className:"font-mono",children:e.ship?.name})," ",(0,t.jsxs)("span",{className:"font-mono text-muted-foreground",children:["(",e.ship?.shipId,")"]}),". It commissions an app ship for each outside party you approve."]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-body","data-testid":"settings-gateway-state",children:"Not connected. Connecting commissions the ship gateway, which reads the fleet and commissions an app ship for each outside party you approve, or gives it a new starting prompt, and hands its secret to the gateway. No one sees the secret."}),(0,t.jsx)("div",{children:(0,t.jsx)(o.Button,{variant:"primary",icon:(0,t.jsx)(i,{"aria-hidden":!0}),isLoading:n,onClick:m,"data-testid":"settings-gateway-connect",children:"Connect gateway"})}),void 0!==u&&(0,t.jsx)(l.InlineError,{variant:"field",title:"Couldn’t connect the gateway",description:u})]})]})}function u({settings:e,loadError:s,onRetry:a,isConnecting:r,connectError:n,onConnect:c}){return void 0!==s?(0,t.jsx)(l.InlineError,{title:"Couldn’t read squadrons",description:s,onRetry:a}):void 0===e?(0,t.jsx)(d.LoadingSkeleton,{variant:"detail",rows:2,label:"Loading squadrons"}):"none"===e.state?null:(0,t.jsxs)("section",{"aria-labelledby":"settings-squadrons","data-testid":"settings-squadrons",className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsx)("h2",{id:"settings-squadrons",className:"text-body font-semibold",children:"Squadrons"}),"connected"===e.state?(0,t.jsxs)("p",{className:"text-body","data-testid":"settings-squadrons-state",children:["Connected as ",(0,t.jsx)("span",{className:"font-mono",children:e.ship?.name})," ",(0,t.jsxs)("span",{className:"font-mono text-muted-foreground",children:["(",e.ship?.shipId,")"]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-body","data-testid":"settings-squadrons-state",children:"Not connected. Connecting commissions the ship squadrons, with fleet read and manage, or gives it a new starting prompt, and hands its secret to squadrons. No one sees the secret."}),(0,t.jsx)("div",{children:(0,t.jsx)(o.Button,{variant:"primary",icon:(0,t.jsx)(i,{"aria-hidden":!0}),isLoading:r,onClick:c,"data-testid":"settings-squadrons-connect",children:"Connect squadrons"})}),void 0!==n&&(0,t.jsx)(l.InlineError,{variant:"field",title:"Couldn’t connect squadrons",description:n})]})]})}var m=e.i(22768),h=e.i(58925),x=e.i(77071),p=e.i(25398),g=e.i(66787),f=e.i(71645),v=e.i(49635),b=e.i(18310),j=e.i(24010),y=e.i(94945),N=e.i(12470),w=e.i(91727),k=e.i(67874),C=e.i(51588);let S=".aeolus/squadrons";function R({isAdding:e,addError:s,onAdd:a}){let r=(0,f.useId)(),n=(0,f.useId)(),i=(0,f.useId)(),[d,c]=(0,f.useState)(""),[u,m]=(0,f.useState)(""),[h,p]=(0,f.useState)("");return(0,t.jsxs)("form",{noValidate:!0,"data-testid":"repositories-add",className:"flex flex-col gap-3 rounded-md border border-border p-3",onSubmit:e=>{e.preventDefault();let t=u.trim(),s=h.trim();a({url:d.trim(),...""===t?{}:{path:t},...""===s?{}:{token:s}},()=>{c(""),m(""),p("")})},children:[(0,t.jsxs)("div",{className:"grid gap-3 sm:grid-cols-[minmax(0,2fr)_minmax(0,1fr)]",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)(w.Label,{htmlFor:r,children:"Repository URL"}),(0,t.jsx)(N.Input,{id:r,isMono:!0,autoComplete:"off",spellCheck:!1,placeholder:"https://github.com/acme/squadron-templates.git","data-testid":"repositories-url",value:d,onChange:e=>{c(e.target.value)}})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)(w.Label,{htmlFor:n,children:"Path (optional)"}),(0,t.jsx)(N.Input,{id:n,isMono:!0,autoComplete:"off",spellCheck:!1,placeholder:S,"data-testid":"repositories-path",value:u,onChange:e=>{m(e.target.value)}})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)(w.Label,{htmlFor:i,children:"Read token (optional, for a private repository)"}),(0,t.jsx)(N.Input,{id:i,type:"password",autoComplete:"new-password","data-testid":"repositories-token",value:h,onChange:e=>{p(e.target.value)}}),(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:"Entered once and never shown again. To change it, remove the repository and add it again."})]}),void 0===s?null:(0,t.jsx)(l.InlineError,{title:"Couldn’t add the repository",description:`${s} The list shows what squadrons holds.`}),(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)(o.Button,{type:"submit",variant:"primary",icon:(0,t.jsx)(x.Plus,{"aria-hidden":!0}),isLoading:e,disabled:""===d.trim(),"data-testid":"repositories-add-submit",children:e?"Adding":"Add repository"})})]})}function z(e,t){return e.map(({name:e,versions:s})=>"template"===t?`${e}@${s.join(", ")}`:`${e} v${s.join(", v")}`).join(" · ")}function q({contents:e,path:s}){let{templates:a,blueprints:r,leftOut:n}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("dl",{"data-testid":"repositories-found",className:"grid grid-cols-[auto_minmax(0,1fr)] gap-x-3 gap-y-0.5 text-meta",children:0===a.length&&0===r.length?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("dt",{className:"text-muted-foreground",children:"Found"}),(0,t.jsxs)("dd",{children:["No templates or blueprints under ",s]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("dt",{className:"text-muted-foreground",children:"Templates"}),(0,t.jsx)("dd",{className:"font-mono",children:0===a.length?"None":z(a,"template")}),(0,t.jsx)("dt",{className:"text-muted-foreground",children:"Blueprints"}),(0,t.jsx)("dd",{className:"font-mono",children:0===r.length?"None":z(r,"blueprint")})]})}),0===n.length?null:(0,t.jsxs)("div",{"data-testid":"repositories-left-out",className:"flex flex-col gap-1.5 rounded-md border border-tone-attention-border bg-tone-attention-bg p-2.5 text-tone-attention-fg",children:[(0,t.jsxs)("p",{className:"flex items-center gap-1.5 text-meta font-medium",children:[(0,t.jsx)(g.TriangleAlert,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0"}),"Left out: ",n.length,". Fix ",1===n.length?"it":"them"," in git, tag again, then refresh."]}),(0,t.jsx)("ul",{className:"flex flex-col gap-1",children:n.map(e=>(0,t.jsxs)("li",{"data-testid":"repositories-left-out-item",className:"text-meta text-foreground",children:[(0,t.jsx)("span",{className:"font-mono",children:(0,b.leftOutLabel)(e)}),": ",e.message]},`${e.kind} ${e.name}@${String(e.version)}`))})]})]})}function D({repository:e,contents:s,now:a,onRemove:r}){let{lastFetch:n}=e;return(0,t.jsxs)("li",{"data-testid":"repositories-row",className:"flex flex-col gap-1.5 px-3 py-2.5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(C.RepositoryName,{name:e.name}),e.path===S?null:(0,t.jsx)("span",{className:"font-mono text-meta text-muted-foreground",children:e.path}),e.hasToken?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 text-meta text-muted-foreground",children:[(0,t.jsx)(h.KeyRound,{"aria-hidden":!0,className:"size-(--size-icon-sm)"}),"Token"]}):null,(0,t.jsx)("span",{className:"ml-auto text-meta text-muted-foreground","data-testid":"repositories-fetched",children:null===n?"Not fetched yet":`Fetched ${(0,v.relativeTime)(new Date(n.at),a)}`}),(0,t.jsx)(o.Button,{size:"xs",variant:"ghost","data-testid":"repositories-remove",onClick:r,children:"Remove"})]}),n?.error?(0,t.jsxs)("p",{"data-testid":"repositories-error",className:"flex items-start gap-1.5 text-meta text-destructive-text",children:[(0,t.jsx)(m.CircleAlert,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon-sm) shrink-0"}),(0,t.jsxs)("span",{children:["The last fetch failed: ",(0,t.jsx)("span",{className:"font-mono",children:n.error})]})]}):null,void 0===s||null===n||null!==n.error&&s.templates.length+s.blueprints.length+s.leftOut.length===0?null:(0,t.jsx)(q,{contents:s,path:e.path})]})}function A(e){let{repositories:s,catalogue:a,state:r,error:n,onRetry:i,isRemoving:c,removeError:u,onRemove:m,onRemoveClosed:h,isRefreshing:x,refreshError:g,onRefresh:v,now:N}=e,[w,C]=(0,f.useState)(void 0);return(0,t.jsxs)("section",{"aria-labelledby":"settings-repositories","data-testid":"settings-repositories",className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsx)("h2",{id:"settings-repositories",className:"text-body font-semibold",children:"Repositories"}),(0,t.jsx)(o.Button,{size:"xs",icon:(0,t.jsx)(p.RotateCw,{"aria-hidden":!0}),isLoading:x,disabled:0===s.length,onClick:v,"data-testid":"repositories-refresh",children:"Refresh"})]}),(0,t.jsxs)("p",{className:"text-meta text-muted-foreground",children:["squadrons reads templates and blueprints from these repositories, under ",S," unless a repository sets its own path. It fetches one when you add it, when you refresh, and once each time squadrons connects or starts."]}),void 0===g?null:(0,t.jsx)(l.InlineError,{variant:"section",title:"Couldn’t refresh",description:g}),"loading"===r?(0,t.jsx)(d.LoadingSkeleton,{variant:"list",rows:2,label:"Loading the repositories"}):"error"===r?(0,t.jsx)(l.InlineError,{title:"Couldn’t read the repositories",description:n,onRetry:i}):0===s.length?(0,t.jsx)(k.EmptyState,{variant:"section",title:"No repositories yet",description:"Add one to read its templates and blueprints."}):(0,t.jsx)("ul",{className:"divide-y divide-border overflow-hidden rounded-md border border-border",children:s.map(e=>(0,t.jsx)(D,{repository:e,...void 0===a?{}:{contents:(0,b.repositoryContents)(a,e.name)},now:N,onRemove:()=>{C(e.name)}},e.name))}),(0,t.jsx)(R,{isAdding:e.isAdding,addError:e.addError,onAdd:e.onAdd}),(0,t.jsx)(j.AlertDialog,{open:void 0!==w,onOpenChange:e=>{e||c||(C(void 0),h())},children:(0,t.jsxs)(j.AlertDialogContent,{"data-testid":"repositories-remove-dialog",className:y.dialogSurface.phoneSheet,children:[(0,t.jsxs)(j.AlertDialogHeader,{children:[(0,t.jsxs)(j.AlertDialogTitle,{children:["Remove ",w,"?"]}),(0,t.jsx)(j.AlertDialogDescription,{children:"Its templates and blueprints leave the catalogue at once. Squadrons formed from them keep the versions they formed from."})]}),void 0===u?null:(0,t.jsx)(l.InlineError,{title:"Couldn’t remove the repository",description:`${u} The list shows what squadrons holds.`}),(0,t.jsxs)(j.AlertDialogFooter,{children:[(0,t.jsx)(j.AlertDialogClose,{render:(0,t.jsx)(o.Button,{disabled:c}),children:"Cancel"}),(0,t.jsx)(o.Button,{variant:"destructive",isLoading:c,"data-testid":"repositories-remove-confirm",onClick:()=>{void 0!==w&&m(w,()=>{C(void 0),h()})},children:"Remove repository"})]})]})})]})}var I=e.i(86875),L=e.i(22016);function E({settings:e,loadError:s,onRetry:a,isConnecting:r,connectError:n,onConnect:c}){return void 0!==s?(0,t.jsx)(l.InlineError,{title:"Couldn’t read the trierarch plugin",description:s,onRetry:a}):void 0===e?(0,t.jsx)(d.LoadingSkeleton,{variant:"detail",rows:2,label:"Loading the trierarch plugin"}):(0,t.jsxs)("section",{"aria-labelledby":"settings-trierarchs","data-testid":"settings-trierarchs",className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsxs)("h2",{id:"settings-trierarchs",className:"flex items-center gap-2 text-body font-semibold [&_svg]:size-(--size-icon) [&_svg]:text-muted-foreground",children:[(0,t.jsx)(I.ShipWheel,{"aria-hidden":!0}),"Trierarchs"]}),"none"===e.state?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{className:"text-body","data-testid":"settings-trierarchs-state",children:["Not set up. ","Starts, restarts and stops sessions for crew requests on your machines. Without it, crew requests wait on Needs crew for you to crew by hand."]}),(0,t.jsx)("div",{children:(0,t.jsx)(o.Button,{size:"sm",nativeButton:!1,render:(0,t.jsx)(L.default,{href:"/trierarchs"}),"data-testid":"settings-trierarchs-how",children:"How to set it up"})})]}):"connected"===e.state?(0,t.jsxs)("p",{className:"text-body","data-testid":"settings-trierarchs-state",children:["Connected as ",(0,t.jsx)("span",{className:"font-mono",children:e.ship?.name})," ",(0,t.jsxs)("span",{className:"font-mono text-muted-foreground",children:["(",e.ship?.shipId,")"]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-body","data-testid":"settings-trierarchs-state",children:"Not connected. Connecting commissions the ship trierarch-plugin, which reads and manages the fleet and assigns crew requests, or gives it a new starting prompt, and hands its secret to the trierarch plugin. No one sees the secret."}),(0,t.jsx)("div",{children:(0,t.jsx)(o.Button,{variant:"primary",icon:(0,t.jsx)(i,{"aria-hidden":!0}),isLoading:r,onClick:c,"data-testid":"settings-trierarchs-connect",children:"Connect trierarch plugin"})}),void 0!==n&&(0,t.jsx)(l.InlineError,{variant:"field",title:"Couldn’t connect the trierarch plugin",description:n})]})]})}var T=e.i(77821),P=e.i(87964),B=e.i(50980),K=e.i(28459),M=e.i(96676),$=e.i(78485),F=e.i(18423),H=e.i(86165),O=e.i(48695),_=e.i(3979),U=e.i(265);e.s(["default",0,function(){let e=(0,M.useNow)(),s=(0,P.useConsoleFrame)(),a=(0,H.useHasSquadrons)(),r=(0,K.useNeedsAttention)(),n=(0,H.useSquadronsSettings)(),i=(0,H.useConnectSquadrons)(),o=(0,U.useTrierarchPluginSettings)(),l=(0,U.useConnectTrierarchPlugin)(),d=(0,B.useGatewaySettings)(),m=(0,B.useConnectGateway)(),h=(0,F.useLiveFleet)(),x=(0,H.useSquadronsConnection)(),p=(0,O.useRepositories)(),g=(0,O.useCatalogue)(),f=(0,O.useAddRepository)(),v=(0,O.useRemoveRepository)(),b=(0,O.useRefreshCatalogue)(),j=(0,_.usePluginNav)();return(0,$.useSignInWhenSessionEnds)([r.error,h.error]),(0,t.jsxs)(T.ListPage,{...s,title:"Settings",description:"How this installation runs. Only argo, the operator, sees this page.",live:h.live,children:[a&&(0,t.jsx)(u,{settings:n.data,loadError:n.isError?n.error.message:void 0,onRetry:()=>{n.refetch()},isConnecting:i.isPending,connectError:i.isError?i.error.message:void 0,onConnect:()=>{i.mutate()}}),j.hasSettings&&(0,t.jsx)(E,{settings:o.data,loadError:o.isError?o.error.message:void 0,onRetry:()=>{o.refetch()},isConnecting:l.isPending,connectError:l.isError?l.error.message:void 0,onConnect:()=>{l.mutate()}}),j.hasSettings&&(0,t.jsx)(c,{settings:d.data,loadError:d.isError?d.error.message:void 0,onRetry:()=>{d.refetch()},isConnecting:m.isPending,connectError:m.isError?m.error.message:void 0,onConnect:()=>{m.mutate()}}),"connected"===x&&(0,t.jsx)(A,{repositories:p.data??[],...void 0===g.data?{}:{catalogue:g.data},state:p.isError?"error":p.data?"ready":"loading",error:p.error?.message,onRetry:()=>{p.refetch()},isAdding:f.isPending,addError:f.error?.message,onAdd:(e,t)=>{f.mutate(e,{onSuccess:t})},isRemoving:v.isPending,removeError:v.error?.message,onRemove:(e,t)=>{v.mutate(e,{onSuccess:t})},onRemoveClosed:()=>{v.reset()},isRefreshing:b.isPending,refreshError:b.error?.message,onRefresh:()=>{b.mutate()},now:e})]})}],89275)},24010,e=>{"use strict";var t=e.i(43476);e.s([],58762),e.i(58762);var s=e.i(66250),a=e.i(2820),r=e.i(56736),n=e.i(9793),i=e.i(84324),o=e.i(64951),l=e.i(77173);let d=e.i(13488).DialogTrigger;var c=e.i(74217),u=e.i(25326);class m extends u.DialogHandle{}e.s(["Backdrop",()=>a.DialogBackdrop,"Close",()=>r.DialogClose,"Description",()=>n.DialogDescription,"Handle",0,m,"Popup",()=>i.DialogPopup,"Portal",()=>o.DialogPortal,"Root",0,function(e){return(0,s.useRenderDialogRoot)("alert-dialog",e)},"Title",()=>l.DialogTitle,"Trigger",0,d,"Viewport",()=>c.DialogViewport,"createHandle",0,function(){return new m}],34604);var h=e.i(34604),h=h,x=e.i(90063),p=e.i(94945);e.s(["AlertDialog",0,function(e){return(0,t.jsx)(h.Root,{"data-slot":"alert-dialog",...e})},"AlertDialogClose",0,function(e){return(0,t.jsx)(h.Close,{"data-slot":"alert-dialog-close",...e})},"AlertDialogContent",0,function({className:e,size:s,children:a,...r}){return(0,t.jsxs)(h.Portal,{children:[(0,t.jsx)(h.Backdrop,{"data-slot":"alert-dialog-overlay",className:p.dialogSurface.overlay}),(0,t.jsx)(h.Popup,{"data-slot":"alert-dialog-content",className:(0,x.classNames)(p.dialogSurface.popup({size:s}),e),...r,children:a})]})},"AlertDialogDescription",0,function({className:e,...s}){return(0,t.jsx)(h.Description,{"data-slot":"alert-dialog-description",className:(0,x.classNames)(p.dialogSurface.description,e),...s})},"AlertDialogFooter",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,x.classNames)(p.dialogSurface.footer,e),...s})},"AlertDialogHeader",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,x.classNames)(p.dialogSurface.header,e),...s})},"AlertDialogTitle",0,function({className:e,...s}){return(0,t.jsx)(h.Title,{"data-slot":"alert-dialog-title",className:(0,x.classNames)(p.dialogSurface.title,e),...s})}],24010)},94945,e=>{"use strict";let t={overlay:"fixed inset-0 isolate z-50 bg-overlay duration-(--duration-base) data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",popup:(0,e.i(25913).cva)("fixed top-1/2 left-1/2 z-50 grid max-h-[calc(100dvh-var(--spacing)*8)] w-full max-w-[calc(100%-var(--spacing)*8)] -translate-x-1/2 -translate-y-1/2 gap-4 overflow-y-auto rounded-xl border border-border bg-popover p-6 text-body text-popover-foreground shadow-lg duration-(--duration-base) outline-none data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 motion-reduce:data-open:zoom-in-100 motion-reduce:data-closed:zoom-out-100",{variants:{size:{sm:"sm:max-w-(--size-dialog-sm)",md:"sm:max-w-(--size-dialog-md)"}},defaultVariants:{size:"sm"}}),header:"flex flex-col gap-2",footer:"flex flex-col-reverse gap-2 pt-1 sm:flex-row sm:justify-end",title:"text-heading font-semibold text-foreground",description:"text-body text-muted-foreground",phoneSheet:"max-sm:top-auto max-sm:bottom-0 max-sm:left-0 max-sm:max-w-full max-sm:translate-x-0 max-sm:translate-y-0 max-sm:rounded-none max-sm:rounded-t-2xl max-sm:border-x-0 max-sm:border-b-0 max-sm:px-4 max-sm:pb-[max(calc(var(--spacing)*4),env(safe-area-inset-bottom))] max-sm:[&_[data-slot=button]]:h-(--size-control-touch) max-sm:[&_[data-slot=button]]:w-full",phoneFullScreen:"max-sm:top-0 max-sm:left-0 max-sm:h-dvh max-sm:max-w-full max-sm:translate-x-0 max-sm:translate-y-0 max-sm:content-start max-sm:overflow-y-auto max-sm:rounded-none max-sm:border-0"};e.s(["dialogSurface",0,t])},36651,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["Kbd",0,function({className:e,...a}){return(0,t.jsx)("kbd",{"data-slot":"kbd",className:(0,s.classNames)("inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-xs border border-border bg-muted px-1.25 font-sans text-micro font-medium text-muted-foreground max-sm:hidden",e),...a})}])},91727,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["Label",0,function({className:e,htmlFor:a,...r}){return(0,t.jsx)("label",{"data-slot":"label",htmlFor:a,className:(0,s.classNames)("text-body font-medium text-foreground select-none",e),...r})}])},19321,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["Skeleton",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"skeleton","aria-hidden":!0,className:(0,s.classNames)("animate-pulse rounded-sm bg-secondary [animation-duration:var(--duration-pulse)] motion-reduce:animate-none",e),...a})}])},67874,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["EmptyState",0,function({title:e,description:a,icon:r,action:n,variant:i="page",className:o}){return"section"===i?(0,t.jsxs)("p",{"data-slot":"empty-state","data-variant":i,className:(0,s.classNames)("rounded-lg border border-border px-4 py-3 text-center text-meta text-muted-foreground",o),children:[e,a?(0,t.jsxs)(t.Fragment,{children:[" ",a]}):null]}):"no-results"===i?(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":i,className:(0,s.classNames)("flex flex-col items-center gap-2.5 rounded-lg border border-border bg-card px-4 py-6 text-center",o),children:[(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:e}),n]}):(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":i,className:(0,s.classNames)("flex flex-col items-center gap-3 rounded-lg border border-dashed border-border bg-card px-6 py-10 text-center",o),children:[r?(0,t.jsx)("span",{"aria-hidden":!0,className:"flex size-10 items-center justify-center rounded-lg border border-border bg-muted text-muted-foreground [&_svg]:size-(--size-icon-xl)",children:r}):null,(0,t.jsx)("h2",{className:"text-heading font-semibold text-foreground max-sm:text-heading-touch",children:e}),a?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:a}):null,n?(0,t.jsx)("div",{className:"mt-1 max-sm:w-full max-sm:[&>*]:w-full",children:n}):null]})}])},17981,e=>{"use strict";var t=e.i(43476),s=e.i(22768),a=e.i(36518),r=e.i(25398),n=e.i(90063),i=e.i(15905);e.s(["InlineError",0,function({title:e,description:o,detail:l,onRetry:d,variant:c="section",id:u,className:m}){return"field"===c?(0,t.jsxs)("p",{id:u,"data-slot":"inline-error","data-variant":c,className:(0,n.classNames)("flex items-center gap-1.5 text-meta text-destructive-text [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",m),children:[(0,t.jsx)(s.CircleAlert,{"aria-hidden":!0}),e]}):"section"===c?(0,t.jsxs)("div",{role:"alert","data-slot":"inline-error","data-variant":c,className:(0,n.classNames)("flex gap-2 rounded-lg border border-tone-attention-border bg-tone-attention-bg p-3 text-tone-attention-fg",m),children:[(0,t.jsx)(s.CircleAlert,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon) shrink-0"}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("p",{className:"text-body font-medium",children:e}),o?(0,t.jsx)("p",{className:"text-meta text-foreground",children:o}):null,d?(0,t.jsx)(i.Button,{size:"xs",icon:(0,t.jsx)(r.RotateCw,{"aria-hidden":!0}),onClick:d,className:"self-start",children:"Try again"}):null]})]}):(0,t.jsxs)("div",{role:"alert","data-slot":"inline-error","data-variant":c,className:(0,n.classNames)("flex flex-col items-center gap-3 rounded-lg border border-border bg-card px-6 py-10 text-center",m),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"flex size-10 items-center justify-center rounded-lg border border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg [&_svg]:size-(--size-icon-xl)",children:(0,t.jsx)(a.CloudOff,{})}),(0,t.jsx)("h2",{className:"text-heading font-semibold text-foreground max-sm:text-heading-touch",children:e}),o?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:o}):null,l?(0,t.jsx)("code",{className:"rounded-sm border border-border bg-muted px-2 py-0.5 font-mono text-id text-muted-foreground",children:l}):null,d?(0,t.jsx)("div",{className:"flex items-center gap-2 max-sm:w-full max-sm:flex-col",children:(0,t.jsx)(i.Button,{size:"sm",icon:(0,t.jsx)(r.RotateCw,{"aria-hidden":!0}),onClick:d,className:"max-sm:w-full",children:"Try again"})}):null]})}])},88393,e=>{"use strict";var t=e.i(43476),s=e.i(90063),a=e.i(19321);function r(e){return Array.from({length:e},(e,t)=>`row-${String(t)}`)}e.s(["LoadingSkeleton",0,function({variant:e,rows:n=4,label:i="Loading",className:o}){return(0,t.jsxs)("div",{role:"status","data-slot":"loading-skeleton","data-variant":e,className:(0,s.classNames)("w-full",o),children:[(0,t.jsx)("span",{className:"sr-only",children:i}),"table"===e?(0,t.jsxs)("div",{className:"overflow-hidden rounded-lg border border-border bg-card shadow-sm",children:[(0,t.jsx)("div",{className:"h-(--size-row-header) border-b border-border bg-muted"}),r(n).map(e=>(0,t.jsxs)("div",{className:"flex h-(--size-row) items-center gap-8 border-b border-border px-4 last:border-0",children:[(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-24"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-16"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-28"})]},e))]}):null,"cards"===e?(0,t.jsx)("div",{className:"grid grid-cols-2 gap-3 lg:grid-cols-4",children:r(4).map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-20"}),(0,t.jsx)(a.Skeleton,{className:"h-6 w-10"}),(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-28"})]},e))}):null,"detail"===e?(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(a.Skeleton,{className:"h-7 w-48"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(a.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(a.Skeleton,{className:"h-16 w-full rounded-lg"})]}):null,"list"===e?(0,t.jsx)("div",{className:"overflow-hidden rounded-lg border border-border bg-card",children:r(n).map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-2.5 border-b border-border px-3.5 py-3 last:border-0",children:[(0,t.jsxs)("div",{className:"flex justify-between",children:[(0,t.jsx)(a.Skeleton,{className:"h-3 w-28"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-44"})]},e))}):null]})}])},77880,85538,e=>{"use strict";var t=e.i(43476),s=e.i(67927),a=e.i(66595),r=e.i(19759),n=e.i(22016),i=e.i(15905),o=e.i(36651),l=e.i(90063);let d={live:{label:"Live",dot:"bg-tone-ok-fg"},reconnecting:{label:"Reconnecting",dot:"bg-tone-waiting-fg"},offline:{label:"Offline",dot:"bg-tone-attention-fg"}};function c({state:e,className:s}){let{label:a,dot:r}=d[e];return(0,t.jsxs)("span",{"data-slot":"live-status","data-state":e,"aria-live":"polite",className:(0,l.classNames)("inline-flex items-center gap-1.5 text-meta text-muted-foreground",s),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:(0,l.classNames)("size-2 shrink-0 rounded-full",r)}),a]})}e.s(["Header",0,function({breadcrumb:e,parents:l=[],live:d,onCompose:u,onSearch:m}){return(0,t.jsxs)("header",{"data-slot":"header",className:"sticky top-0 z-30 hidden h-(--size-header) shrink-0 items-center justify-between gap-4 border-b border-border bg-background px-6 sm:flex",children:[(0,t.jsx)("nav",{"aria-label":"Breadcrumb","data-testid":"header-breadcrumb",className:"min-w-0 text-body",children:(0,t.jsxs)("ol",{className:"flex min-w-0 items-center gap-1.5",children:[l.map(e=>(0,t.jsxs)("li",{className:"flex shrink-0 items-center gap-1.5",children:[(0,t.jsx)(n.default,{href:e.href,className:"text-muted-foreground hover:text-foreground hover:underline",children:e.label}),(0,t.jsx)(s.ChevronRight,{"aria-hidden":!0,className:"size-3.5 text-muted-foreground"})]},e.href)),(0,t.jsx)("li",{"aria-current":"page",className:"truncate font-medium text-foreground",children:e})]})}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(c,{state:d}),m?(0,t.jsxs)(i.Button,{size:"sm",icon:(0,t.jsx)(a.Search,{"aria-hidden":!0}),"data-testid":"header-search",className:"w-60 justify-start font-normal text-muted-foreground",onClick:m,children:[(0,t.jsx)("span",{className:"grow text-left",children:"Search ships or jump to"}),(0,t.jsx)(o.Kbd,{children:"⌘K"})]}):null,u?(0,t.jsx)(i.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),m=e.i(57957);e.s(["TopBar",0,function({title:e,live:s,actions:r,back:o,account:l,onSearch:d}){let h=d&&!o?d:void 0;return(0,t.jsxs)("header",{"data-slot":"top-bar","data-mode":o?"detail":"root",className:"sticky top-0 z-30 flex h-(--size-header) items-center gap-2.5 border-b border-border bg-background px-4 sm:hidden",children:[o?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(n.default,{href:o.href,className:"-ml-1.5 inline-flex h-(--size-control-touch) shrink-0 items-center gap-0.5 rounded-md pr-2 text-body-touch text-foreground focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon)",children:[(0,t.jsx)(u.ChevronLeft,{"aria-hidden":!0}),o.label]}),(0,t.jsx)("p",{className:"min-w-0 flex-1 truncate text-center text-body-touch font-semibold text-foreground",children:e})]}):(0,t.jsx)("h1",{className:"truncate text-title-touch font-semibold tracking-tight text-foreground",children:e}),(0,t.jsx)(c,{state:s}),r||h||l&&!o?(0,t.jsxs)("div",{className:"ml-auto flex items-center gap-1",children:[h?(0,t.jsx)(i.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Search ships or jump to","data-testid":"top-bar-search",onClick:h,children:(0,t.jsx)(a.Search,{"aria-hidden":!0})}):null,r,l&&!o?(0,t.jsx)(m.AccountMenuSheet,{...l}):null]}):null]})}],85538)},77821,e=>{"use strict";var t=e.i(43476),s=e.i(19759),a=e.i(15905),r=e.i(77880),n=e.i(85538);e.s(["ListPage",0,function({title:e,description:i,titleMeta:o,primaryAction:l,toolbar:d,live:c,onCompose:u,onSearch:m,account:h,banner:x,phoneTopBar:p,children:g}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Header,{breadcrumb:e,live:c,onCompose:u,onSearch:m}),x,p??(0,t.jsx)(n.TopBar,{title:e,live:c,account:h,onSearch:m,actions:u?(0,t.jsx)(a.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Compose","data-testid":"top-bar-compose",onClick:u,children:(0,t.jsx)(s.SquarePen,{"aria-hidden":!0})}):void 0}),(0,t.jsxs)("main",{className:"flex grow flex-col gap-5 px-8 py-6 max-sm:gap-3.5 max-sm:px-4 max-sm:pt-3.5 max-sm:pb-[calc(var(--size-tabbar)+var(--spacing)*4)]",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4 max-sm:gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-1",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1",children:[(0,t.jsx)("h1",{className:"text-title font-semibold tracking-tight text-foreground max-sm:hidden",children:e}),o]}),i?(0,t.jsx)("p",{className:"text-meta text-muted-foreground max-sm:text-body-touch",children:i}):null]}),l?(0,t.jsx)("div",{className:"shrink-0 max-sm:w-full max-sm:[&>*]:w-full",children:l}):null]}),d,g]})]})}])},18423,e=>{"use strict";var t=e.i(12598),s=e.i(5861),a=e.i(71645),r=e.i(86413),n=e.i(27702);let i=new Set(["FleetInitialised","ShipCommissioned","ShipClaimed","LeaseRevoked","CredentialRevoked","StartingPromptIssued","ShipRetired","DeliveryAcknowledged","DeliveryUndeliverable","ShipReported","CrewRequested","CrewRequestRemoved","CrewAssigned","CrewStatusChanged","CrewRequestExplained","CrewRequestGivenBack","LabelAssigned","LabelUnassigned","LabelRetired"]);async function o(e,t){await e.cancelQueries({queryKey:t,predicate:e=>void 0===e.state.data&&"fetching"===e.state.fetchStatus}),await e.invalidateQueries({queryKey:t})}let l=new Set(["LabelDefined","LabelValuesChanged","LabelRetired","LabelAssigned","LabelUnassigned","LabelDeleted"]),d=new Set(["DeliveryUndeliverable","DeliveryNotHandled","DeliveryDismissed"]),c=new Set(["NetworkRulesSet","NetworkRulesDraftSaved","NetworkRulesDraftDiscarded","NetworkRulesDeclared","BuiltInRuleChanged"]);e.s(["useLiveFleet",0,function(){let e=(0,n.useTRPC)(),u=(0,t.useQueryClient)(),[m,h]=(0,a.useState)(new Set),x=e=>{o(u,e)},p=(0,s.useSubscription)(e.fleet.events.subscriptionOptions({lastEventId:null},{onData:({data:t})=>{var s,a,n,o,u;if("resync"===t.kind){x(e.fleet.pathKey()),x(r.INBOX_KEY);return}let{event:m}=t;for(let t of new Set([m.shipId,m.actorShipId]))null!==t&&(x(e.fleet.ship.queryKey({shipId:t})),x(e.fleet.shipTimeline.queryKey({shipId:t})),x(e.fleet.shipWay.queryKey({shipId:t})));if(null!==m.messageId&&(x(e.fleet.shipMessages.pathKey()),x(e.fleet.shipWay.pathKey()),x(e.fleet.message.queryKey({messageId:m.messageId})),x(e.fleet.inbox.pathKey()),x(r.INBOX_KEY),x(e.fleet.health.queryKey())),s=m.type,d.has(s)&&x(e.fleet.needsAttention.queryKey()),a=m.type,l.has(a)&&x(e.fleet.labels.queryKey()),"NetworkRulesDeclared"===m.type&&x(e.fleet.declaredNetworkRules.queryKey()),("BuiltInRuleChanged"===(n=m.type)||"NetworkRulesSet"===n)&&x(e.fleet.builtInRules.queryKey()),o=m.type,c.has(o)&&(x(e.fleet.networkRules.queryKey()),x(e.fleet.networkRulesDraftChanges.queryKey()),x(e.fleet.explainReach.pathKey())),u=m.type,!i.has(u))return;x(e.fleet.list.queryKey()),x(e.fleet.health.queryKey());let{shipId:p}=m;"ShipCommissioned"===m.type&&null!==p&&h(e=>new Set([...e,p]))}}));return{live:function(e){switch(e){case"pending":return"live";case"connecting":return"reconnecting";case"idle":case"error":return"offline"}}(p.status),newShipIds:m,error:p.error}}])},28459,e=>{"use strict";var t=e.i(54616),s=e.i(66027),a=e.i(12598),r=e.i(27702);function n(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 i="Acknowledged, then its turn died; handed once more, and that turn died too: not handled.";function o(){let e=(0,r.useTRPC)(),t=(0,a.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 n(e);case"notHandled":return null===e.reason?i:`${i} 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,n,"useDismissDelivery",0,function(){let e=(0,r.useTRPC)(),s=o();return(0,t.useMutation)(e.fleet.dismiss.mutationOptions({onSuccess:s}))},"useNeedsAttention",0,function(){let e=(0,r.useTRPC)();return(0,s.useQuery)(e.fleet.needsAttention.queryOptions())},"useResendDelivery",0,function(){let e=(0,r.useTRPC)(),s=o();return(0,t.useMutation)(e.fleet.resend.mutationOptions({onSuccess:s}))}])},18310,51588,e=>{"use strict";function t(e){let t=/^github\.com\/([^/]+\/[^/]+)$/.exec(e);return t?.[1]===void 0?{label:e,isGitHub:!1}:{label:t[1],isGitHub:!0}}function s(e,t){let s=new Map;for(let{name:a,version:r}of e.filter(e=>e.repository===t))s.set(a,[...s.get(a)??[],r]);return[...s].map(([e,t])=>({name:e,versions:t.toSorted((e,t)=>e-t)})).toSorted((e,t)=>e.name.localeCompare(t.name))}e.s(["leftOutLabel",0,function(e){let{kind:t,name:s,version:a}=e;return"blueprint"===t?`blueprint ${s} v${String(a)}`:`${t} ${s}@${String(a)}`},"repositoryContents",0,function(e,t){return{templates:s(e.templates,t),blueprints:s(e.blueprints,t),leftOut:e.problems.filter(e=>e.repository===t)}},"repositoryLabel",0,t,"versionFileUrl",0,function(e){let{label:s,isGitHub:a}=t(e.repository);return a?`https://github.com/${s}/blob/${e.commit}/${encodeURI(e.file)}`:void 0}],18310);var a=e.i(43476),r=e.i(56420);let n={name:"folder-git-2",size:24,node:[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]]};n.node;let i=(0,r.default)(n);function o(){return(0,a.jsx)("svg",{"aria-hidden":!0,viewBox:"0 0 16 16",fill:"currentColor",className:"size-(--size-icon-sm) shrink-0",children:(0,a.jsx)("path",{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"})})}e.s(["RepositoryName",0,function({name:e,href:s}){let{label:r,isGitHub:n}=t(e),l=(0,a.jsxs)(a.Fragment,{children:[n?(0,a.jsx)(o,{}):(0,a.jsx)(i,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0 text-muted-foreground"}),(0,a.jsx)("span",{className:"truncate",children:r})]}),d="inline-flex min-w-0 items-center gap-1.5 font-medium";return void 0===s?(0,a.jsx)("span",{title:e,className:d,children:l}):(0,a.jsx)("a",{href:s,target:"_blank",rel:"noreferrer",title:e,className:`${d} hover:underline`,children:l})}],51588)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,24071,e=>{"use strict";var t=e.i(56420);let s={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};s.node;let a=(0,t.default)(s);e.s(["ChevronLeft",0,a],24071)},67927,e=>{"use strict";var t=e.i(56420);let s={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};s.node;let a=(0,t.default)(s);e.s(["ChevronRight",0,a],67927)},36518,e=>{"use strict";var t=e.i(56420);let s={name:"cloud-off",size:24,node:[["path",{d:"M10.94 5.274A7 7 0 0 1 15.71 10h1.79a4.5 4.5 0 0 1 4.222 6.057",key:"1uxyv8"}],["path",{d:"M18.796 18.81A4.5 4.5 0 0 1 17.5 19H9A7 7 0 0 1 5.79 5.78",key:"99tcn7"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]};s.node;let a=(0,t.default)(s);e.s(["CloudOff",0,a],36518)},58925,e=>{"use strict";var t=e.i(56420);let s={name:"key-round",size:24,node:[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]};s.node;let a=(0,t.default)(s);e.s(["KeyRound",0,a],58925)},77071,e=>{"use strict";var t=e.i(56420);let s={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};s.node;let a=(0,t.default)(s);e.s(["Plus",0,a],77071)},25398,e=>{"use strict";var t=e.i(56420);let s={name:"rotate-cw",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]};s.node;let a=(0,t.default)(s);e.s(["RotateCw",0,a],25398)},66595,e=>{"use strict";var t=e.i(56420);let s={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};s.node;let a=(0,t.default)(s);e.s(["Search",0,a],66595)},19759,e=>{"use strict";var t=e.i(56420);let s={name:"square-pen",size:24,node:[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],aliases:["pen-box","edit","pen-square"]};s.node;let a=(0,t.default)(s);e.s(["SquarePen",0,a],19759)},66787,e=>{"use strict";var t=e.i(56420);let s={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"]};s.node;let a=(0,t.default)(s);e.s(["TriangleAlert",0,a],66787)},89275,e=>{"use strict";var t=e.i(43476),s=e.i(56420);let a={name:"globe",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]};a.node;let r=(0,s.default)(a),n={name:"link-2",size:24,node:[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]};n.node;let i=(0,s.default)(n);var o=e.i(15905),l=e.i(17981),d=e.i(88393);function c({settings:e,loadError:s,onRetry:a,isConnecting:n,connectError:u,onConnect:m}){return void 0!==s?(0,t.jsx)(l.InlineError,{title:"Couldn’t read the gateway",description:s,onRetry:a}):void 0===e?(0,t.jsx)(d.LoadingSkeleton,{variant:"detail",rows:2,label:"Loading the gateway"}):"none"===e.state?null:(0,t.jsxs)("section",{"aria-labelledby":"settings-gateway","data-testid":"settings-gateway",className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsxs)("h2",{id:"settings-gateway",className:"flex items-center gap-2 text-body font-semibold [&_svg]:size-(--size-icon) [&_svg]:text-muted-foreground",children:[(0,t.jsx)(r,{"aria-hidden":!0}),"Gateway"]}),"connected"===e.state?(0,t.jsxs)("p",{className:"text-body","data-testid":"settings-gateway-state",children:["Connected as ",(0,t.jsx)("span",{className:"font-mono",children:e.ship?.name})," ",(0,t.jsxs)("span",{className:"font-mono text-muted-foreground",children:["(",e.ship?.shipId,")"]}),". It commissions an app ship for each outside party you approve."]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-body","data-testid":"settings-gateway-state",children:"Not connected. Connecting commissions the ship gateway, which reads the fleet and commissions an app ship for each outside party you approve, or gives it a new starting prompt, and hands its secret to the gateway. No one sees the secret."}),(0,t.jsx)("div",{children:(0,t.jsx)(o.Button,{variant:"primary",icon:(0,t.jsx)(i,{"aria-hidden":!0}),isLoading:n,onClick:m,"data-testid":"settings-gateway-connect",children:"Connect gateway"})}),void 0!==u&&(0,t.jsx)(l.InlineError,{variant:"field",title:"Couldn’t connect the gateway",description:u})]})]})}function u({settings:e,loadError:s,onRetry:a,isConnecting:r,connectError:n,onConnect:c}){return void 0!==s?(0,t.jsx)(l.InlineError,{title:"Couldn’t read squadrons",description:s,onRetry:a}):void 0===e?(0,t.jsx)(d.LoadingSkeleton,{variant:"detail",rows:2,label:"Loading squadrons"}):"none"===e.state?null:(0,t.jsxs)("section",{"aria-labelledby":"settings-squadrons","data-testid":"settings-squadrons",className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsx)("h2",{id:"settings-squadrons",className:"text-body font-semibold",children:"Squadrons"}),"connected"===e.state?(0,t.jsxs)("p",{className:"text-body","data-testid":"settings-squadrons-state",children:["Connected as ",(0,t.jsx)("span",{className:"font-mono",children:e.ship?.name})," ",(0,t.jsxs)("span",{className:"font-mono text-muted-foreground",children:["(",e.ship?.shipId,")"]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-body","data-testid":"settings-squadrons-state",children:"Not connected. Connecting commissions the ship squadrons, with fleet read and manage, or gives it a new starting prompt, and hands its secret to squadrons. No one sees the secret."}),(0,t.jsx)("div",{children:(0,t.jsx)(o.Button,{variant:"primary",icon:(0,t.jsx)(i,{"aria-hidden":!0}),isLoading:r,onClick:c,"data-testid":"settings-squadrons-connect",children:"Connect squadrons"})}),void 0!==n&&(0,t.jsx)(l.InlineError,{variant:"field",title:"Couldn’t connect squadrons",description:n})]})]})}var m=e.i(22768),h=e.i(58925),x=e.i(77071),g=e.i(25398),p=e.i(66787),f=e.i(71645),v=e.i(49635),b=e.i(18310),j=e.i(24010),y=e.i(94945),N=e.i(12470),w=e.i(91727),k=e.i(67874),C=e.i(51588);let S=".aeolus/squadrons";function R({isAdding:e,addError:s,onAdd:a}){let r=(0,f.useId)(),n=(0,f.useId)(),i=(0,f.useId)(),[d,c]=(0,f.useState)(""),[u,m]=(0,f.useState)(""),[h,g]=(0,f.useState)("");return(0,t.jsxs)("form",{noValidate:!0,"data-testid":"repositories-add",className:"flex flex-col gap-3 rounded-md border border-border p-3",onSubmit:e=>{e.preventDefault();let t=u.trim(),s=h.trim();a({url:d.trim(),...""===t?{}:{path:t},...""===s?{}:{token:s}},()=>{c(""),m(""),g("")})},children:[(0,t.jsxs)("div",{className:"grid gap-3 sm:grid-cols-[minmax(0,2fr)_minmax(0,1fr)]",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)(w.Label,{htmlFor:r,children:"Repository URL"}),(0,t.jsx)(N.Input,{id:r,isMono:!0,autoComplete:"off",spellCheck:!1,placeholder:"https://github.com/acme/squadron-templates.git","data-testid":"repositories-url",value:d,onChange:e=>{c(e.target.value)}})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)(w.Label,{htmlFor:n,children:"Path (optional)"}),(0,t.jsx)(N.Input,{id:n,isMono:!0,autoComplete:"off",spellCheck:!1,placeholder:S,"data-testid":"repositories-path",value:u,onChange:e=>{m(e.target.value)}})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)(w.Label,{htmlFor:i,children:"Read token (optional, for a private repository)"}),(0,t.jsx)(N.Input,{id:i,type:"password",autoComplete:"new-password","data-testid":"repositories-token",value:h,onChange:e=>{g(e.target.value)}}),(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:"Entered once and never shown again. To change it, remove the repository and add it again."})]}),void 0===s?null:(0,t.jsx)(l.InlineError,{title:"Couldn’t add the repository",description:`${s} The list shows what squadrons holds.`}),(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)(o.Button,{type:"submit",variant:"primary",icon:(0,t.jsx)(x.Plus,{"aria-hidden":!0}),isLoading:e,disabled:""===d.trim(),"data-testid":"repositories-add-submit",children:e?"Adding":"Add repository"})})]})}function z(e,t){return e.map(({name:e,versions:s})=>"template"===t?`${e}@${s.join(", ")}`:`${e} v${s.join(", v")}`).join(" · ")}function q({contents:e,path:s}){let{templates:a,blueprints:r,leftOut:n}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("dl",{"data-testid":"repositories-found",className:"grid grid-cols-[auto_minmax(0,1fr)] gap-x-3 gap-y-0.5 text-meta",children:0===a.length&&0===r.length?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("dt",{className:"text-muted-foreground",children:"Found"}),(0,t.jsxs)("dd",{children:["No templates or blueprints under ",s]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("dt",{className:"text-muted-foreground",children:"Templates"}),(0,t.jsx)("dd",{className:"font-mono",children:0===a.length?"None":z(a,"template")}),(0,t.jsx)("dt",{className:"text-muted-foreground",children:"Blueprints"}),(0,t.jsx)("dd",{className:"font-mono",children:0===r.length?"None":z(r,"blueprint")})]})}),0===n.length?null:(0,t.jsxs)("div",{"data-testid":"repositories-left-out",className:"flex flex-col gap-1.5 rounded-md border border-tone-attention-border bg-tone-attention-bg p-2.5 text-tone-attention-fg",children:[(0,t.jsxs)("p",{className:"flex items-center gap-1.5 text-meta font-medium",children:[(0,t.jsx)(p.TriangleAlert,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0"}),"Left out: ",n.length,". Fix ",1===n.length?"it":"them"," in git, tag again, then refresh."]}),(0,t.jsx)("ul",{className:"flex flex-col gap-1",children:n.map(e=>(0,t.jsxs)("li",{"data-testid":"repositories-left-out-item",className:"text-meta text-foreground",children:[(0,t.jsx)("span",{className:"font-mono",children:(0,b.leftOutLabel)(e)}),": ",e.message]},`${e.kind} ${e.name}@${String(e.version)}`))})]})]})}function A({repository:e,contents:s,now:a,onRemove:r}){let{lastFetch:n}=e;return(0,t.jsxs)("li",{"data-testid":"repositories-row",className:"flex flex-col gap-1.5 px-3 py-2.5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(C.RepositoryName,{name:e.name}),e.path===S?null:(0,t.jsx)("span",{className:"font-mono text-meta text-muted-foreground",children:e.path}),e.hasToken?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 text-meta text-muted-foreground",children:[(0,t.jsx)(h.KeyRound,{"aria-hidden":!0,className:"size-(--size-icon-sm)"}),"Token"]}):null,(0,t.jsx)("span",{className:"ml-auto text-meta text-muted-foreground","data-testid":"repositories-fetched",children:null===n?"Not fetched yet":`Fetched ${(0,v.relativeTime)(new Date(n.at),a)}`}),(0,t.jsx)(o.Button,{size:"xs",variant:"ghost","data-testid":"repositories-remove",onClick:r,children:"Remove"})]}),n?.error?(0,t.jsxs)("p",{"data-testid":"repositories-error",className:"flex items-start gap-1.5 text-meta text-destructive-text",children:[(0,t.jsx)(m.CircleAlert,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon-sm) shrink-0"}),(0,t.jsxs)("span",{children:["The last fetch failed: ",(0,t.jsx)("span",{className:"font-mono",children:n.error})]})]}):null,void 0===s||null===n||null!==n.error&&s.templates.length+s.blueprints.length+s.leftOut.length===0?null:(0,t.jsx)(q,{contents:s,path:e.path})]})}function D(e){let{repositories:s,catalogue:a,state:r,error:n,onRetry:i,isRemoving:c,removeError:u,onRemove:m,onRemoveClosed:h,isRefreshing:x,refreshError:p,onRefresh:v,now:N}=e,[w,C]=(0,f.useState)(void 0);return(0,t.jsxs)("section",{"aria-labelledby":"settings-repositories","data-testid":"settings-repositories",className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsx)("h2",{id:"settings-repositories",className:"text-body font-semibold",children:"Repositories"}),(0,t.jsx)(o.Button,{size:"xs",icon:(0,t.jsx)(g.RotateCw,{"aria-hidden":!0}),isLoading:x,disabled:0===s.length,onClick:v,"data-testid":"repositories-refresh",children:"Refresh"})]}),(0,t.jsxs)("p",{className:"text-meta text-muted-foreground",children:["squadrons reads templates and blueprints from these repositories, under ",S," unless a repository sets its own path. It fetches one when you add it, when you refresh, and once each time squadrons connects or starts."]}),void 0===p?null:(0,t.jsx)(l.InlineError,{variant:"section",title:"Couldn’t refresh",description:p}),"loading"===r?(0,t.jsx)(d.LoadingSkeleton,{variant:"list",rows:2,label:"Loading the repositories"}):"error"===r?(0,t.jsx)(l.InlineError,{title:"Couldn’t read the repositories",description:n,onRetry:i}):0===s.length?(0,t.jsx)(k.EmptyState,{variant:"section",title:"No repositories yet",description:"Add one to read its templates and blueprints."}):(0,t.jsx)("ul",{className:"divide-y divide-border overflow-hidden rounded-md border border-border",children:s.map(e=>(0,t.jsx)(A,{repository:e,...void 0===a?{}:{contents:(0,b.repositoryContents)(a,e.name)},now:N,onRemove:()=>{C(e.name)}},e.name))}),(0,t.jsx)(R,{isAdding:e.isAdding,addError:e.addError,onAdd:e.onAdd}),(0,t.jsx)(j.AlertDialog,{open:void 0!==w,onOpenChange:e=>{e||c||(C(void 0),h())},children:(0,t.jsxs)(j.AlertDialogContent,{"data-testid":"repositories-remove-dialog",className:y.dialogSurface.phoneSheet,children:[(0,t.jsxs)(j.AlertDialogHeader,{children:[(0,t.jsxs)(j.AlertDialogTitle,{children:["Remove ",w,"?"]}),(0,t.jsx)(j.AlertDialogDescription,{children:"Its templates and blueprints leave the catalogue at once. Squadrons formed from them keep the versions they formed from."})]}),void 0===u?null:(0,t.jsx)(l.InlineError,{title:"Couldn’t remove the repository",description:`${u} The list shows what squadrons holds.`}),(0,t.jsxs)(j.AlertDialogFooter,{children:[(0,t.jsx)(j.AlertDialogClose,{render:(0,t.jsx)(o.Button,{disabled:c}),children:"Cancel"}),(0,t.jsx)(o.Button,{variant:"destructive",isLoading:c,"data-testid":"repositories-remove-confirm",onClick:()=>{void 0!==w&&m(w,()=>{C(void 0),h()})},children:"Remove repository"})]})]})})]})}var I=e.i(86875),L=e.i(22016);function E({settings:e,loadError:s,onRetry:a,isConnecting:r,connectError:n,onConnect:c}){return void 0!==s?(0,t.jsx)(l.InlineError,{title:"Couldn’t read the trierarch plugin",description:s,onRetry:a}):void 0===e?(0,t.jsx)(d.LoadingSkeleton,{variant:"detail",rows:2,label:"Loading the trierarch plugin"}):(0,t.jsxs)("section",{"aria-labelledby":"settings-trierarchs","data-testid":"settings-trierarchs",className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsxs)("h2",{id:"settings-trierarchs",className:"flex items-center gap-2 text-body font-semibold [&_svg]:size-(--size-icon) [&_svg]:text-muted-foreground",children:[(0,t.jsx)(I.ShipWheel,{"aria-hidden":!0}),"Trierarchs"]}),"none"===e.state?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{className:"text-body","data-testid":"settings-trierarchs-state",children:["Not set up. ","Starts, restarts and stops sessions for crew requests on your machines. Without it, crew requests wait on Needs crew for you to crew by hand."]}),(0,t.jsx)("div",{children:(0,t.jsx)(o.Button,{size:"sm",nativeButton:!1,render:(0,t.jsx)(L.default,{href:"/trierarchs"}),"data-testid":"settings-trierarchs-how",children:"How to set it up"})})]}):"connected"===e.state?(0,t.jsxs)("p",{className:"text-body","data-testid":"settings-trierarchs-state",children:["Connected as ",(0,t.jsx)("span",{className:"font-mono",children:e.ship?.name})," ",(0,t.jsxs)("span",{className:"font-mono text-muted-foreground",children:["(",e.ship?.shipId,")"]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-body","data-testid":"settings-trierarchs-state",children:"Not connected. Connecting commissions the ship trierarch-plugin, which reads and manages the fleet and assigns crew requests, or gives it a new starting prompt, and hands its secret to the trierarch plugin. No one sees the secret."}),(0,t.jsx)("div",{children:(0,t.jsx)(o.Button,{variant:"primary",icon:(0,t.jsx)(i,{"aria-hidden":!0}),isLoading:r,onClick:c,"data-testid":"settings-trierarchs-connect",children:"Connect trierarch plugin"})}),void 0!==n&&(0,t.jsx)(l.InlineError,{variant:"field",title:"Couldn’t connect the trierarch plugin",description:n})]})]})}var T=e.i(77821),B=e.i(87964),K=e.i(50980),P=e.i(28459),H=e.i(96676),M=e.i(78485),$=e.i(18423),F=e.i(86165),O=e.i(48695),_=e.i(3979),U=e.i(265);e.s(["default",0,function(){let e=(0,H.useNow)(),s=(0,B.useConsoleFrame)(),a=(0,F.useHasSquadrons)(),r=(0,P.useNeedsAttention)(),n=(0,F.useSquadronsSettings)(),i=(0,F.useConnectSquadrons)(),o=(0,U.useTrierarchPluginSettings)(),l=(0,U.useConnectTrierarchPlugin)(),d=(0,K.useGatewaySettings)(),m=(0,K.useConnectGateway)(),h=(0,$.useLiveFleet)(),x=(0,F.useSquadronsConnection)(),g=(0,O.useRepositories)(),p=(0,O.useCatalogue)(),f=(0,O.useAddRepository)(),v=(0,O.useRemoveRepository)(),b=(0,O.useRefreshCatalogue)(),j=(0,_.usePluginNav)();return(0,M.useSignInWhenSessionEnds)([r.error,h.error]),(0,t.jsxs)(T.ListPage,{...s,title:"Settings",description:"How this installation runs. Only argo, the operator, sees this page.",live:h.live,children:[a&&(0,t.jsx)(u,{settings:n.data,loadError:n.isError?n.error.message:void 0,onRetry:()=>{n.refetch()},isConnecting:i.isPending,connectError:i.isError?i.error.message:void 0,onConnect:()=>{i.mutate()}}),j.hasSettings&&(0,t.jsx)(E,{settings:o.data,loadError:o.isError?o.error.message:void 0,onRetry:()=>{o.refetch()},isConnecting:l.isPending,connectError:l.isError?l.error.message:void 0,onConnect:()=>{l.mutate()}}),j.hasSettings&&(0,t.jsx)(c,{settings:d.data,loadError:d.isError?d.error.message:void 0,onRetry:()=>{d.refetch()},isConnecting:m.isPending,connectError:m.isError?m.error.message:void 0,onConnect:()=>{m.mutate()}}),"connected"===x&&(0,t.jsx)(D,{repositories:g.data??[],...void 0===p.data?{}:{catalogue:p.data},state:g.isError?"error":g.data?"ready":"loading",error:g.error?.message,onRetry:()=>{g.refetch()},isAdding:f.isPending,addError:f.error?.message,onAdd:(e,t)=>{f.mutate(e,{onSuccess:t})},isRemoving:v.isPending,removeError:v.error?.message,onRemove:(e,t)=>{v.mutate(e,{onSuccess:t})},onRemoveClosed:()=>{v.reset()},isRefreshing:b.isPending,refreshError:b.error?.message,onRefresh:()=>{b.mutate()},now:e})]})}],89275)},24010,e=>{"use strict";var t=e.i(43476);e.s([],58762),e.i(58762);var s=e.i(66250),a=e.i(2820),r=e.i(56736),n=e.i(9793),i=e.i(84324),o=e.i(64951),l=e.i(77173);let d=e.i(13488).DialogTrigger;var c=e.i(74217),u=e.i(25326);class m extends u.DialogHandle{}e.s(["Backdrop",()=>a.DialogBackdrop,"Close",()=>r.DialogClose,"Description",()=>n.DialogDescription,"Handle",0,m,"Popup",()=>i.DialogPopup,"Portal",()=>o.DialogPortal,"Root",0,function(e){return(0,s.useRenderDialogRoot)("alert-dialog",e)},"Title",()=>l.DialogTitle,"Trigger",0,d,"Viewport",()=>c.DialogViewport,"createHandle",0,function(){return new m}],34604);var h=e.i(34604),h=h,x=e.i(90063),g=e.i(94945);e.s(["AlertDialog",0,function(e){return(0,t.jsx)(h.Root,{"data-slot":"alert-dialog",...e})},"AlertDialogClose",0,function(e){return(0,t.jsx)(h.Close,{"data-slot":"alert-dialog-close",...e})},"AlertDialogContent",0,function({className:e,size:s,children:a,...r}){return(0,t.jsxs)(h.Portal,{children:[(0,t.jsx)(h.Backdrop,{"data-slot":"alert-dialog-overlay",className:g.dialogSurface.overlay}),(0,t.jsx)(h.Popup,{"data-slot":"alert-dialog-content",className:(0,x.classNames)(g.dialogSurface.popup({size:s}),e),...r,children:a})]})},"AlertDialogDescription",0,function({className:e,...s}){return(0,t.jsx)(h.Description,{"data-slot":"alert-dialog-description",className:(0,x.classNames)(g.dialogSurface.description,e),...s})},"AlertDialogFooter",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,x.classNames)(g.dialogSurface.footer,e),...s})},"AlertDialogHeader",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,x.classNames)(g.dialogSurface.header,e),...s})},"AlertDialogTitle",0,function({className:e,...s}){return(0,t.jsx)(h.Title,{"data-slot":"alert-dialog-title",className:(0,x.classNames)(g.dialogSurface.title,e),...s})}],24010)},94945,e=>{"use strict";let t={overlay:"fixed inset-0 isolate z-50 bg-overlay duration-(--duration-base) data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",popup:(0,e.i(25913).cva)("fixed top-1/2 left-1/2 z-50 grid max-h-[calc(100dvh-var(--spacing)*8)] w-full max-w-[calc(100%-var(--spacing)*8)] -translate-x-1/2 -translate-y-1/2 gap-4 overflow-y-auto rounded-xl border border-border bg-popover p-6 text-body text-popover-foreground shadow-lg duration-(--duration-base) outline-none data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 motion-reduce:data-open:zoom-in-100 motion-reduce:data-closed:zoom-out-100",{variants:{size:{sm:"sm:max-w-(--size-dialog-sm)",md:"sm:max-w-(--size-dialog-md)"}},defaultVariants:{size:"sm"}}),header:"flex flex-col gap-2",footer:"flex flex-col-reverse gap-2 pt-1 sm:flex-row sm:justify-end",title:"text-heading font-semibold text-foreground",description:"text-body text-muted-foreground",phoneSheet:"max-sm:top-auto max-sm:bottom-0 max-sm:left-0 max-sm:max-w-full max-sm:translate-x-0 max-sm:translate-y-0 max-sm:rounded-none max-sm:rounded-t-2xl max-sm:border-x-0 max-sm:border-b-0 max-sm:px-4 max-sm:pb-[max(calc(var(--spacing)*4),env(safe-area-inset-bottom))] max-sm:[&_[data-slot=button]]:h-(--size-control-touch) max-sm:[&_[data-slot=button]]:w-full",phoneFullScreen:"max-sm:top-0 max-sm:left-0 max-sm:h-dvh max-sm:max-w-full max-sm:translate-x-0 max-sm:translate-y-0 max-sm:content-start max-sm:overflow-y-auto max-sm:rounded-none max-sm:border-0"};e.s(["dialogSurface",0,t])},36651,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["Kbd",0,function({className:e,...a}){return(0,t.jsx)("kbd",{"data-slot":"kbd",className:(0,s.classNames)("inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-xs border border-border bg-muted px-1.25 font-sans text-micro font-medium text-muted-foreground max-sm:hidden",e),...a})}])},91727,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["Label",0,function({className:e,htmlFor:a,...r}){return(0,t.jsx)("label",{"data-slot":"label",htmlFor:a,className:(0,s.classNames)("text-body font-medium text-foreground select-none",e),...r})}])},19321,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["Skeleton",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"skeleton","aria-hidden":!0,className:(0,s.classNames)("animate-pulse rounded-sm bg-secondary [animation-duration:var(--duration-pulse)] motion-reduce:animate-none",e),...a})}])},67874,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["EmptyState",0,function({title:e,description:a,icon:r,action:n,variant:i="page",className:o}){return"section"===i?(0,t.jsxs)("p",{"data-slot":"empty-state","data-variant":i,className:(0,s.classNames)("rounded-lg border border-border px-4 py-3 text-center text-meta text-muted-foreground",o),children:[e,a?(0,t.jsxs)(t.Fragment,{children:[" ",a]}):null]}):"no-results"===i?(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":i,className:(0,s.classNames)("flex flex-col items-center gap-2.5 rounded-lg border border-border bg-card px-4 py-6 text-center",o),children:[(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:e}),n]}):(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":i,className:(0,s.classNames)("flex flex-col items-center gap-3 rounded-lg border border-dashed border-border bg-card px-6 py-10 text-center",o),children:[r?(0,t.jsx)("span",{"aria-hidden":!0,className:"flex size-10 items-center justify-center rounded-lg border border-border bg-muted text-muted-foreground [&_svg]:size-(--size-icon-xl)",children:r}):null,(0,t.jsx)("h2",{className:"text-heading font-semibold text-foreground max-sm:text-heading-touch",children:e}),a?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:a}):null,n?(0,t.jsx)("div",{className:"mt-1 max-sm:w-full max-sm:[&>*]:w-full",children:n}):null]})}])},17981,e=>{"use strict";var t=e.i(43476),s=e.i(22768),a=e.i(36518),r=e.i(25398),n=e.i(90063),i=e.i(15905);e.s(["InlineError",0,function({title:e,description:o,detail:l,onRetry:d,variant:c="section",id:u,className:m}){return"field"===c?(0,t.jsxs)("p",{id:u,"data-slot":"inline-error","data-variant":c,className:(0,n.classNames)("flex items-center gap-1.5 text-meta text-destructive-text [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",m),children:[(0,t.jsx)(s.CircleAlert,{"aria-hidden":!0}),e]}):"section"===c?(0,t.jsxs)("div",{role:"alert","data-slot":"inline-error","data-variant":c,className:(0,n.classNames)("flex gap-2 rounded-lg border border-tone-attention-border bg-tone-attention-bg p-3 text-tone-attention-fg",m),children:[(0,t.jsx)(s.CircleAlert,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon) shrink-0"}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("p",{className:"text-body font-medium",children:e}),o?(0,t.jsx)("p",{className:"text-meta text-foreground",children:o}):null,d?(0,t.jsx)(i.Button,{size:"xs",icon:(0,t.jsx)(r.RotateCw,{"aria-hidden":!0}),onClick:d,className:"self-start",children:"Try again"}):null]})]}):(0,t.jsxs)("div",{role:"alert","data-slot":"inline-error","data-variant":c,className:(0,n.classNames)("flex flex-col items-center gap-3 rounded-lg border border-border bg-card px-6 py-10 text-center",m),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"flex size-10 items-center justify-center rounded-lg border border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg [&_svg]:size-(--size-icon-xl)",children:(0,t.jsx)(a.CloudOff,{})}),(0,t.jsx)("h2",{className:"text-heading font-semibold text-foreground max-sm:text-heading-touch",children:e}),o?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:o}):null,l?(0,t.jsx)("code",{className:"rounded-sm border border-border bg-muted px-2 py-0.5 font-mono text-id text-muted-foreground",children:l}):null,d?(0,t.jsx)("div",{className:"flex items-center gap-2 max-sm:w-full max-sm:flex-col",children:(0,t.jsx)(i.Button,{size:"sm",icon:(0,t.jsx)(r.RotateCw,{"aria-hidden":!0}),onClick:d,className:"max-sm:w-full",children:"Try again"})}):null]})}])},88393,e=>{"use strict";var t=e.i(43476),s=e.i(90063),a=e.i(19321);function r(e){return Array.from({length:e},(e,t)=>`row-${String(t)}`)}e.s(["LoadingSkeleton",0,function({variant:e,rows:n=4,label:i="Loading",className:o}){return(0,t.jsxs)("div",{role:"status","data-slot":"loading-skeleton","data-variant":e,className:(0,s.classNames)("w-full",o),children:[(0,t.jsx)("span",{className:"sr-only",children:i}),"table"===e?(0,t.jsxs)("div",{className:"overflow-hidden rounded-lg border border-border bg-card shadow-sm",children:[(0,t.jsx)("div",{className:"h-(--size-row-header) border-b border-border bg-muted"}),r(n).map(e=>(0,t.jsxs)("div",{className:"flex h-(--size-row) items-center gap-8 border-b border-border px-4 last:border-0",children:[(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-24"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-16"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-28"})]},e))]}):null,"cards"===e?(0,t.jsx)("div",{className:"grid grid-cols-2 gap-3 lg:grid-cols-4",children:r(4).map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-20"}),(0,t.jsx)(a.Skeleton,{className:"h-6 w-10"}),(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-28"})]},e))}):null,"detail"===e?(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(a.Skeleton,{className:"h-7 w-48"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(a.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(a.Skeleton,{className:"h-16 w-full rounded-lg"})]}):null,"list"===e?(0,t.jsx)("div",{className:"overflow-hidden rounded-lg border border-border bg-card",children:r(n).map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-2.5 border-b border-border px-3.5 py-3 last:border-0",children:[(0,t.jsxs)("div",{className:"flex justify-between",children:[(0,t.jsx)(a.Skeleton,{className:"h-3 w-28"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-44"})]},e))}):null]})}])},77880,85538,e=>{"use strict";var t=e.i(43476),s=e.i(67927),a=e.i(66595),r=e.i(19759),n=e.i(22016),i=e.i(15905),o=e.i(36651),l=e.i(90063);let d={live:{label:"Live",dot:"bg-tone-ok-fg"},reconnecting:{label:"Reconnecting",dot:"bg-tone-waiting-fg"},offline:{label:"Offline",dot:"bg-tone-attention-fg"}};function c({state:e,className:s}){let{label:a,dot:r}=d[e];return(0,t.jsxs)("span",{"data-slot":"live-status","data-state":e,"aria-live":"polite",className:(0,l.classNames)("inline-flex items-center gap-1.5 text-meta text-muted-foreground",s),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:(0,l.classNames)("size-2 shrink-0 rounded-full",r)}),a]})}e.s(["Header",0,function({breadcrumb:e,parents:l=[],live:d,onCompose:u,onSearch:m}){return(0,t.jsxs)("header",{"data-slot":"header",className:"sticky top-0 z-30 hidden h-(--size-header) shrink-0 items-center justify-between gap-4 border-b border-border bg-background px-6 sm:flex",children:[(0,t.jsx)("nav",{"aria-label":"Breadcrumb","data-testid":"header-breadcrumb",className:"min-w-0 text-body",children:(0,t.jsxs)("ol",{className:"flex min-w-0 items-center gap-1.5",children:[l.map(e=>(0,t.jsxs)("li",{className:"flex shrink-0 items-center gap-1.5",children:[(0,t.jsx)(n.default,{href:e.href,className:"text-muted-foreground hover:text-foreground hover:underline",children:e.label}),(0,t.jsx)(s.ChevronRight,{"aria-hidden":!0,className:"size-3.5 text-muted-foreground"})]},e.href)),(0,t.jsx)("li",{"aria-current":"page",className:"truncate font-medium text-foreground",children:e})]})}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(c,{state:d}),m?(0,t.jsxs)(i.Button,{size:"sm",icon:(0,t.jsx)(a.Search,{"aria-hidden":!0}),"data-testid":"header-search",className:"w-60 justify-start font-normal text-muted-foreground",onClick:m,children:[(0,t.jsx)("span",{className:"grow text-left",children:"Search ships or jump to"}),(0,t.jsx)(o.Kbd,{children:"⌘K"})]}):null,u?(0,t.jsx)(i.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),m=e.i(57957);e.s(["TopBar",0,function({title:e,live:s,actions:r,back:o,account:l,onSearch:d}){let h=d&&!o?d:void 0;return(0,t.jsxs)("header",{"data-slot":"top-bar","data-mode":o?"detail":"root",className:"sticky top-0 z-30 flex h-(--size-header) items-center gap-2.5 border-b border-border bg-background px-4 sm:hidden",children:[o?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(n.default,{href:o.href,className:"-ml-1.5 inline-flex h-(--size-control-touch) shrink-0 items-center gap-0.5 rounded-md pr-2 text-body-touch text-foreground focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon)",children:[(0,t.jsx)(u.ChevronLeft,{"aria-hidden":!0}),o.label]}),(0,t.jsx)("p",{className:"min-w-0 flex-1 truncate text-center text-body-touch font-semibold text-foreground",children:e})]}):(0,t.jsx)("h1",{className:"truncate text-title-touch font-semibold tracking-tight text-foreground",children:e}),(0,t.jsx)(c,{state:s}),r||h||l&&!o?(0,t.jsxs)("div",{className:"ml-auto flex items-center gap-1",children:[h?(0,t.jsx)(i.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Search ships or jump to","data-testid":"top-bar-search",onClick:h,children:(0,t.jsx)(a.Search,{"aria-hidden":!0})}):null,r,l&&!o?(0,t.jsx)(m.AccountMenuSheet,{...l}):null]}):null]})}],85538)},77821,e=>{"use strict";var t=e.i(43476),s=e.i(19759),a=e.i(15905),r=e.i(77880),n=e.i(85538);e.s(["ListPage",0,function({title:e,description:i,titleMeta:o,primaryAction:l,toolbar:d,live:c,onCompose:u,onSearch:m,account:h,banner:x,phoneTopBar:g,children:p}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Header,{breadcrumb:e,live:c,onCompose:u,onSearch:m}),x,g??(0,t.jsx)(n.TopBar,{title:e,live:c,account:h,onSearch:m,actions:u?(0,t.jsx)(a.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Compose","data-testid":"top-bar-compose",onClick:u,children:(0,t.jsx)(s.SquarePen,{"aria-hidden":!0})}):void 0}),(0,t.jsxs)("main",{className:"flex grow flex-col gap-5 px-8 py-6 max-sm:gap-3.5 max-sm:px-4 max-sm:pt-3.5 max-sm:pb-[calc(var(--size-tabbar)+var(--spacing)*4)]",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4 max-sm:gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-1",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1",children:[(0,t.jsx)("h1",{className:"text-title font-semibold tracking-tight text-foreground max-sm:hidden",children:e}),o]}),i?(0,t.jsx)("p",{className:"text-meta text-muted-foreground max-sm:text-body-touch",children:i}):null]}),l?(0,t.jsx)("div",{className:"shrink-0 max-sm:w-full max-sm:[&>*]:w-full",children:l}):null]}),d,p]})]})}])},18423,e=>{"use strict";var t=e.i(12598),s=e.i(5861),a=e.i(71645),r=e.i(86413),n=e.i(27702);let i=new Set(["FleetInitialised","ShipCommissioned","ShipClaimed","LeaseRevoked","CredentialRevoked","StartingPromptIssued","ShipRetired","DeliveryAcknowledged","DeliveryUndeliverable","ShipReported","CrewRequested","CrewRequestRemoved","CrewAssigned","CrewStatusChanged","CrewRequestExplained","CrewRequestGivenBack","LabelAssigned","LabelUnassigned","LabelRetired"]),o=new Set(["LabelDefined","LabelValuesChanged","LabelRetired","LabelAssigned","LabelUnassigned","LabelDeleted"]),l=new Set(["DeliveryUndeliverable","DeliveryNotHandled","DeliveryDismissed"]),d=new Set(["NetworkRulesSet","NetworkRulesDraftSaved","NetworkRulesDraftDiscarded","NetworkRulesDeclared","BuiltInRuleChanged"]);e.s(["useLiveFleet",0,function(){let e=(0,n.useTRPC)(),c=(0,t.useQueryClient)(),[u,m]=(0,a.useState)(new Set),[h]=(0,a.useState)(()=>{let e,t,s,a;return e=new Set,t=new Set,s=e=>c.invalidateQueries({queryKey:e,exact:!0},{cancelRefetch:!1}),a=async a=>{e.add(a.queryHash);let r=a.isBehind;try{for(await s(a.queryKey);r||t.delete(a.queryHash);)r=!1,await s(a.queryKey)}finally{e.delete(a.queryHash)}},s=>{for(let r of c.getQueryCache().findAll({queryKey:s}))e.has(r.queryHash)?t.add(r.queryHash):a({queryHash:r.queryHash,queryKey:r.queryKey,isBehind:"fetching"===r.state.fetchStatus})}}),x=(0,s.useSubscription)(e.fleet.events.subscriptionOptions({lastEventId:null},{onData:({data:t})=>{var s,a,n,c,u;if("resync"===t.kind){h(e.fleet.pathKey()),h(r.INBOX_KEY);return}let{event:x}=t;for(let t of new Set([x.shipId,x.actorShipId]))null!==t&&(h(e.fleet.ship.queryKey({shipId:t})),h(e.fleet.shipTimeline.queryKey({shipId:t})),h(e.fleet.shipWay.queryKey({shipId:t})));if(null!==x.messageId&&(h(e.fleet.shipMessages.pathKey()),h(e.fleet.shipWay.pathKey()),h(e.fleet.message.queryKey({messageId:x.messageId})),h(e.fleet.inbox.pathKey()),h(r.INBOX_KEY),h(e.fleet.health.queryKey())),s=x.type,l.has(s)&&h(e.fleet.needsAttention.queryKey()),a=x.type,o.has(a)&&h(e.fleet.labels.queryKey()),"NetworkRulesDeclared"===x.type&&h(e.fleet.declaredNetworkRules.queryKey()),("BuiltInRuleChanged"===(n=x.type)||"NetworkRulesSet"===n)&&h(e.fleet.builtInRules.queryKey()),c=x.type,d.has(c)&&(h(e.fleet.networkRules.queryKey()),h(e.fleet.networkRulesDraftChanges.queryKey()),h(e.fleet.explainReach.pathKey())),u=x.type,!i.has(u))return;h(e.fleet.list.queryKey()),h(e.fleet.health.queryKey());let{shipId:g}=x;"ShipCommissioned"===x.type&&null!==g&&m(e=>new Set([...e,g]))}}));return{live:function(e){switch(e){case"pending":return"live";case"connecting":return"reconnecting";case"idle":case"error":return"offline"}}(x.status),newShipIds:u,error:x.error}}])},28459,e=>{"use strict";var t=e.i(54616),s=e.i(66027),a=e.i(12598),r=e.i(27702);function n(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 i="Acknowledged, then its turn died; handed once more, and that turn died too: not handled.";function o(){let e=(0,r.useTRPC)(),t=(0,a.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 n(e);case"notHandled":return null===e.reason?i:`${i} 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,n,"useDismissDelivery",0,function(){let e=(0,r.useTRPC)(),s=o();return(0,t.useMutation)(e.fleet.dismiss.mutationOptions({onSuccess:s}))},"useNeedsAttention",0,function(){let e=(0,r.useTRPC)();return(0,s.useQuery)(e.fleet.needsAttention.queryOptions())},"useResendDelivery",0,function(){let e=(0,r.useTRPC)(),s=o();return(0,t.useMutation)(e.fleet.resend.mutationOptions({onSuccess:s}))}])},18310,51588,e=>{"use strict";function t(e){let t=/^github\.com\/([^/]+\/[^/]+)$/.exec(e);return t?.[1]===void 0?{label:e,isGitHub:!1}:{label:t[1],isGitHub:!0}}function s(e,t){let s=new Map;for(let{name:a,version:r}of e.filter(e=>e.repository===t))s.set(a,[...s.get(a)??[],r]);return[...s].map(([e,t])=>({name:e,versions:t.toSorted((e,t)=>e-t)})).toSorted((e,t)=>e.name.localeCompare(t.name))}e.s(["leftOutLabel",0,function(e){let{kind:t,name:s,version:a}=e;return"blueprint"===t?`blueprint ${s} v${String(a)}`:`${t} ${s}@${String(a)}`},"repositoryContents",0,function(e,t){return{templates:s(e.templates,t),blueprints:s(e.blueprints,t),leftOut:e.problems.filter(e=>e.repository===t)}},"repositoryLabel",0,t,"versionFileUrl",0,function(e){let{label:s,isGitHub:a}=t(e.repository);return a?`https://github.com/${s}/blob/${e.commit}/${encodeURI(e.file)}`:void 0}],18310);var a=e.i(43476),r=e.i(56420);let n={name:"folder-git-2",size:24,node:[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]]};n.node;let i=(0,r.default)(n);function o(){return(0,a.jsx)("svg",{"aria-hidden":!0,viewBox:"0 0 16 16",fill:"currentColor",className:"size-(--size-icon-sm) shrink-0",children:(0,a.jsx)("path",{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"})})}e.s(["RepositoryName",0,function({name:e,href:s}){let{label:r,isGitHub:n}=t(e),l=(0,a.jsxs)(a.Fragment,{children:[n?(0,a.jsx)(o,{}):(0,a.jsx)(i,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0 text-muted-foreground"}),(0,a.jsx)("span",{className:"truncate",children:r})]}),d="inline-flex min-w-0 items-center gap-1.5 font-medium";return void 0===s?(0,a.jsx)("span",{title:e,className:d,children:l}):(0,a.jsx)("a",{href:s,target:"_blank",rel:"noreferrer",title:e,className:`${d} hover:underline`,children:l})}],51588)}]);
|
package/.next/standalone/packages/console/.next/static/chunks/{0q7s6fjx5zvzy.js → 2rnnem2_dp22_.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),s=e.i(81384),a=e.i(73664),r=e.i(27001),i=e.i(54440),n=e.i(71645),l=e.i(19273),d=e.i(15823),o=e.i(40143),c=e.i(69230);function u(e,t){let s=new Set(t);return e.filter(e=>!s.has(e))}var h=class extends d.Subscribable{#e;#t;#s;#a;#r;#i;#n;#l;#d;#o=[];constructor(e,t,s){super(),this.#e=e,this.#a=s,this.#s=[],this.#r=[],this.#t=[],this.setQueries(t)}onSubscribe(){1===this.listeners.size&&this.#r.forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#r.forEach(e=>{e.destroy()})}setQueries(e,t){this.#s=e,this.#a=t,o.notifyManager.batch(()=>{let e=this.#r,t=this.#u(this.#s);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let s=t.map(e=>e.observer),a=s.map(e=>e.getCurrentResult()),r=e.length!==s.length,i=s.some((t,s)=>t!==e[s]),n=r||i,d=!!n||a.some((e,t)=>{let s=this.#t[t];return!s||!(0,l.shallowEqualObjects)(e,s)});(n||d)&&(n&&(this.#o=t,this.#r=s),this.#t=a,this.hasListeners()&&(n&&(u(e,s).forEach(e=>{e.destroy()}),u(s,e).forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})),this.#h()))})}getCurrentResult(){return this.#t}getQueries(){return this.#r.map(e=>e.getCurrentQuery())}getObservers(){return this.#r}getOptimisticResult(e,t){let s=this.#u(e),a=s.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),r=s.map(e=>e.defaultedQueryOptions.queryHash);return[a,e=>this.#m(e??a,t,r),()=>this.#p(a,s)]}#p(e,t){let s=new Set;return t.map((a,r)=>{let i=e[r];return a.defaultedQueryOptions.notifyOnChangeProps?i:a.observer.trackResult(i,e=>{s.has(e)||(s.add(e),t.forEach(t=>{t.observer.trackProp(e)}))})})}#m(e,t,s){if(t){let a=this.#d,r=void 0!==s&&void 0!==a&&(a.length!==s.length||s.some((e,t)=>e!==a[t]));return(this.#t!==this.#l||r||t!==this.#n)&&(this.#n=t,this.#l=this.#t,void 0!==s&&(this.#d=s),this.#i=(0,l.replaceEqualDeep)(this.#i,t(e))),this.#i}return e}#b(){return!this.#a?.combine||this.#r.some((e,t)=>e.options.suspense&&this.#t[t]?.data===void 0)}#u(e){let t=new Map;this.#r.forEach(e=>{let s=e.options.queryHash;if(!s)return;let a=t.get(s);a?a.push(e):t.set(s,[e])});let s=[];return e.forEach(e=>{let a=this.#e.defaultQueryOptions(e),r=t.get(a.queryHash)?.shift()??new c.QueryObserver(this.#e,a);s.push({defaultedQueryOptions:a,observer:r})}),s}#c(e,t){let s=this.#r.indexOf(e);-1!==s&&(this.#t=this.#t.slice(),this.#t[s]=t,this.#h())}#h(){if(this.hasListeners()){let e=this.#b(),t=this.#i,s=e?t:this.#m(this.#p(this.#t,this.#o),this.#a?.combine);(e||t!==s)&&o.notifyManager.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}};e.s(["useQueries",0,function({queries:e,...d},u){let m=(0,t.useQueryClient)(u),p=(0,s.useIsRestoring)(),b=(0,a.useQueryErrorResetBoundary)(),f=!1!==d.subscribed,g=n.useMemo(()=>e.map(e=>{let t=m.defaultQueryOptions(e);return t._optimisticResults=p?"isRestoring":f?"optimistic":void 0,t}),[e,m,p,f]);g.forEach(e=>{(0,i.ensureSuspenseTimers)(e);let t=m.getQueryCache().get(e.queryHash);(0,r.ensurePreventErrorBoundaryRetry)(e,b,t)}),(0,r.useClearResetErrorBoundary)(b);let[y]=n.useState(()=>new h(m,g,d)),[x,v,k]=y.getOptimisticResult(g,d.combine),w=!p&&f;n.useSyncExternalStore(n.useCallback(e=>w?y.subscribe(o.notifyManager.batchCalls(e)):l.noop,[y,w]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),n.useEffect(()=>{y.setQueries(g,d)},[g,d,y]);let j=x.some((e,t)=>(0,i.shouldSuspend)(g[t],e))?x.flatMap((e,t)=>{let s=g[t];if(s&&(0,i.shouldSuspend)(s,e)){let e=new c.QueryObserver(m,s);return(0,i.fetchOptimistic)(s,e,b)}return[]}):[];if(j.length>0)throw Promise.all(j);let C=x.find((e,t)=>{let s=g[t];return s&&(0,r.getHasError)({result:e,errorResetBoundary:b,throwOnError:s.throwOnError,query:m.getQueryCache().get(s.queryHash),suspense:s.suspense})});if(C)throw C.error;return v(k())}],86448)},49655,87255,50092,36604,e=>{"use strict";var t=e.i(56420);let s={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"}]]};s.node;let a=(0,t.default)(s);e.s(["AlarmClock",0,a],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 n={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"]};n.node;let l=(0,t.default)(n);e.s(["CircleArrowRight",0,l],50092);let d={name:"circle-check-big",size:24,node:[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],aliases:["check-circle"]};d.node;let o=(0,t.default)(d);e.s(["CircleCheckBig",0,o],36604)},76561,e=>{"use strict";var t=e.i(56420);let s={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"}]]};s.node;let a=(0,t.default)(s);e.s(["Archive",0,a],76561)},47211,e=>{"use strict";var t=e.i(56420);let s={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"}]]};s.node;let a=(0,t.default)(s);e.s(["Ban",0,a],47211)},24071,e=>{"use strict";var t=e.i(56420);let s={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};s.node;let a=(0,t.default)(s);e.s(["ChevronLeft",0,a],24071)},67927,e=>{"use strict";var t=e.i(56420);let s={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};s.node;let a=(0,t.default)(s);e.s(["ChevronRight",0,a],67927)},52886,e=>{"use strict";var t=e.i(56420);let s={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"}]]};s.node;let a=(0,t.default)(s);e.s(["CircleDashed",0,a],52886)},19002,e=>{"use strict";var t=e.i(56420);let s={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"]};s.node;let a=(0,t.default)(s);e.s(["CirclePause",0,a],19002)},32297,26391,19647,10001,25799,e=>{"use strict";var t=e.i(56420);let s={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"]};s.node;let a=(0,t.default)(s);e.s(["CirclePlay",0,a],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 n={name:"circle-minus",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]],aliases:["minus-circle"]};n.node;let l=(0,t.default)(n);e.s(["CircleMinus",0,l],19647);let d={name:"flag-off",size:24,node:[["path",{d:"M16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1q158e"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M4 22V4",key:"1plyxx"}],["path",{d:"M7.656 2H8c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10.347",key:"xj1b71"}]]};d.node;let o=(0,t.default)(d);e.s(["FlagOff",0,o],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 s={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"}]]};s.node;let a=(0,t.default)(s);e.s(["CircleSlash",0,a],21048)},16984,e=>{"use strict";var t=e.i(56420);let s={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"]};s.node;let a=(0,t.default)(s);e.s(["CircleX",0,a],16984)},74544,e=>{"use strict";var t=e.i(56420);let s={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};s.node;let a=(0,t.default)(s);e.s(["Clock",0,a],74544)},36518,e=>{"use strict";var t=e.i(56420);let s={name:"cloud-off",size:24,node:[["path",{d:"M10.94 5.274A7 7 0 0 1 15.71 10h1.79a4.5 4.5 0 0 1 4.222 6.057",key:"1uxyv8"}],["path",{d:"M18.796 18.81A4.5 4.5 0 0 1 17.5 19H9A7 7 0 0 1 5.79 5.78",key:"99tcn7"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]};s.node;let a=(0,t.default)(s);e.s(["CloudOff",0,a],36518)},71028,e=>{"use strict";var t=e.i(56420);let s={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"}]]};s.node;let a=(0,t.default)(s);e.s(["Gauge",0,a],71028)},81658,e=>{"use strict";var t=e.i(56420);let s={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"}]]};s.node;let a=(0,t.default)(s);e.s(["Hourglass",0,a],81658)},85512,e=>{"use strict";var t=e.i(56420);let s={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"]};s.node;let a=(0,t.default)(s);e.s(["OctagonAlert",0,a],85512)},57665,e=>{"use strict";var t=e.i(56420);let s={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"}]]};s.node;let a=(0,t.default)(s);e.s(["Power",0,a],57665)},95925,85627,e=>{"use strict";var t=e.i(56420);let s={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"}]]};s.node;let a=(0,t.default)(s);e.s(["RotateCcw",0,a],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)},25398,e=>{"use strict";var t=e.i(56420);let s={name:"rotate-cw",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]};s.node;let a=(0,t.default)(s);e.s(["RotateCw",0,a],25398)},66595,e=>{"use strict";var t=e.i(56420);let s={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};s.node;let a=(0,t.default)(s);e.s(["Search",0,a],66595)},19759,e=>{"use strict";var t=e.i(56420);let s={name:"square-pen",size:24,node:[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],aliases:["pen-box","edit","pen-square"]};s.node;let a=(0,t.default)(s);e.s(["SquarePen",0,a],19759)},66787,e=>{"use strict";var t=e.i(56420);let s={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"]};s.node;let a=(0,t.default)(s);e.s(["TriangleAlert",0,a],66787)},92870,e=>{"use strict";var t=e.i(56420);let s={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"}]]};s.node;let a=(0,t.default)(s);e.s(["UserCheck",0,a],92870)},36651,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["Kbd",0,function({className:e,...a}){return(0,t.jsx)("kbd",{"data-slot":"kbd",className:(0,s.classNames)("inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-xs border border-border bg-muted px-1.25 font-sans text-micro font-medium text-muted-foreground max-sm:hidden",e),...a})}])},19321,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["Skeleton",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"skeleton","aria-hidden":!0,className:(0,s.classNames)("animate-pulse rounded-sm bg-secondary [animation-duration:var(--duration-pulse)] motion-reduce:animate-none",e),...a})}])},67874,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["EmptyState",0,function({title:e,description:a,icon:r,action:i,variant:n="page",className:l}){return"section"===n?(0,t.jsxs)("p",{"data-slot":"empty-state","data-variant":n,className:(0,s.classNames)("rounded-lg border border-border px-4 py-3 text-center text-meta text-muted-foreground",l),children:[e,a?(0,t.jsxs)(t.Fragment,{children:[" ",a]}):null]}):"no-results"===n?(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":n,className:(0,s.classNames)("flex flex-col items-center gap-2.5 rounded-lg border border-border bg-card px-4 py-6 text-center",l),children:[(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:e}),i]}):(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":n,className:(0,s.classNames)("flex flex-col items-center gap-3 rounded-lg border border-dashed border-border bg-card px-6 py-10 text-center",l),children:[r?(0,t.jsx)("span",{"aria-hidden":!0,className:"flex size-10 items-center justify-center rounded-lg border border-border bg-muted text-muted-foreground [&_svg]:size-(--size-icon-xl)",children:r}):null,(0,t.jsx)("h2",{className:"text-heading font-semibold text-foreground max-sm:text-heading-touch",children:e}),a?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:a}):null,i?(0,t.jsx)("div",{className:"mt-1 max-sm:w-full max-sm:[&>*]:w-full",children:i}):null]})}])},17981,e=>{"use strict";var t=e.i(43476),s=e.i(22768),a=e.i(36518),r=e.i(25398),i=e.i(90063),n=e.i(15905);e.s(["InlineError",0,function({title:e,description:l,detail:d,onRetry:o,variant:c="section",id:u,className:h}){return"field"===c?(0,t.jsxs)("p",{id:u,"data-slot":"inline-error","data-variant":c,className:(0,i.classNames)("flex items-center gap-1.5 text-meta text-destructive-text [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",h),children:[(0,t.jsx)(s.CircleAlert,{"aria-hidden":!0}),e]}):"section"===c?(0,t.jsxs)("div",{role:"alert","data-slot":"inline-error","data-variant":c,className:(0,i.classNames)("flex gap-2 rounded-lg border border-tone-attention-border bg-tone-attention-bg p-3 text-tone-attention-fg",h),children:[(0,t.jsx)(s.CircleAlert,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon) shrink-0"}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("p",{className:"text-body font-medium",children:e}),l?(0,t.jsx)("p",{className:"text-meta text-foreground",children:l}):null,o?(0,t.jsx)(n.Button,{size:"xs",icon:(0,t.jsx)(r.RotateCw,{"aria-hidden":!0}),onClick:o,className:"self-start",children:"Try again"}):null]})]}):(0,t.jsxs)("div",{role:"alert","data-slot":"inline-error","data-variant":c,className:(0,i.classNames)("flex flex-col items-center gap-3 rounded-lg border border-border bg-card px-6 py-10 text-center",h),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"flex size-10 items-center justify-center rounded-lg border border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg [&_svg]:size-(--size-icon-xl)",children:(0,t.jsx)(a.CloudOff,{})}),(0,t.jsx)("h2",{className:"text-heading font-semibold text-foreground max-sm:text-heading-touch",children:e}),l?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:l}):null,d?(0,t.jsx)("code",{className:"rounded-sm border border-border bg-muted px-2 py-0.5 font-mono text-id text-muted-foreground",children:d}):null,o?(0,t.jsx)("div",{className:"flex items-center gap-2 max-sm:w-full max-sm:flex-col",children:(0,t.jsx)(n.Button,{size:"sm",icon:(0,t.jsx)(r.RotateCw,{"aria-hidden":!0}),onClick:o,className:"max-sm:w-full",children:"Try again"})}):null]})}])},88393,e=>{"use strict";var t=e.i(43476),s=e.i(90063),a=e.i(19321);function r(e){return Array.from({length:e},(e,t)=>`row-${String(t)}`)}e.s(["LoadingSkeleton",0,function({variant:e,rows:i=4,label:n="Loading",className:l}){return(0,t.jsxs)("div",{role:"status","data-slot":"loading-skeleton","data-variant":e,className:(0,s.classNames)("w-full",l),children:[(0,t.jsx)("span",{className:"sr-only",children:n}),"table"===e?(0,t.jsxs)("div",{className:"overflow-hidden rounded-lg border border-border bg-card shadow-sm",children:[(0,t.jsx)("div",{className:"h-(--size-row-header) border-b border-border bg-muted"}),r(i).map(e=>(0,t.jsxs)("div",{className:"flex h-(--size-row) items-center gap-8 border-b border-border px-4 last:border-0",children:[(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-24"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-16"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-28"})]},e))]}):null,"cards"===e?(0,t.jsx)("div",{className:"grid grid-cols-2 gap-3 lg:grid-cols-4",children:r(4).map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-20"}),(0,t.jsx)(a.Skeleton,{className:"h-6 w-10"}),(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-28"})]},e))}):null,"detail"===e?(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(a.Skeleton,{className:"h-7 w-48"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(a.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(a.Skeleton,{className:"h-16 w-full rounded-lg"})]}):null,"list"===e?(0,t.jsx)("div",{className:"overflow-hidden rounded-lg border border-border bg-card",children:r(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)(a.Skeleton,{className:"h-3 w-28"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-44"})]},e))}):null]})}])},78865,e=>{"use strict";var t=e.i(43476),s=e.i(49655),a=e.i(87255),r=e.i(76561),i=e.i(47211),n=e.i(22768),l=e.i(50092),d=e.i(36604),o=e.i(19002),c=e.i(32297),u=e.i(21048),h=e.i(74544),m=e.i(85595),p=e.i(52886),b=e.i(26391),f=e.i(19647),g=e.i(16984),y=e.i(10001),x=e.i(71028),v=e.i(81658),k=e.i(44594),w=e.i(11568),j=e.i(25799),C=e.i(85512),N=e.i(57665),M=e.i(95925),R=e.i(85627),S=e.i(66787),z=e.i(92870),I=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 A=(0,I.default)(q);var O=e.i(90063),D=e.i(66390);let H={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"},Q={awaitingCrew:{tone:"waiting",Icon:p.CircleDashed,label:"Awaiting crew"},crewed:{tone:"ok",Icon:z.UserCheck,label:"Crewed"},retired:{tone:"ended",Icon:r.Archive,label:"Retired"},pending:{tone:"waiting",Icon:v.Hourglass,label:"Pending"},received:{tone:"active",Icon:k.Inbox,label:"Received"},handed:{tone:"active",Icon:l.CircleArrowRight,label:"Handed (pulled)"},handedPushed:{tone:"active",Icon:l.CircleArrowRight,label:"Handed"},overdue:{tone:"attention",Icon:s.AlarmClock,label:"Overdue"},acknowledged:{tone:"ok",Icon:m.CircleCheck,label:"Acknowledged"},handled:{tone:"ok",Icon:d.CircleCheckBig,label:"Handled"},notHandled:{tone:"attention",Icon:n.CircleAlert,label:"Not handled"},undeliverable:{tone:"attention",Icon:g.CircleX,label:"Undeliverable"},dismissed:{tone:"ended",Icon:f.CircleMinus,label:"Dismissed"},abandoned:{tone:"ended",Icon:i.Ban,label:"Abandoned"},forming:{tone:"waiting",Icon:b.CircleDotDashed,label:"Forming"},sailing:{tone:"ok",Icon:R.Sailboat,label:"Sailing"},"standing-down":{tone:"active",Icon:a.Anchor,label:"Standing down"},disbanded:{tone:"ended",Icon:y.FlagOff,label:"Disbanded"},"at-limit":{tone:"waiting",Icon:x.Gauge,label:"At limit"},"over-limit":{tone:"attention",Icon:S.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:M.RotateCcw,label:"Restarting"},crashed:{tone:"attention",Icon:g.CircleX,label:"Crashed"},releasing:{tone:"active",Icon:N.Power,label:"Releasing"},stuck:{tone:"attention",Icon:C.OctagonAlert,label:"Stuck"},delivering:{tone:"ok",Icon:j.MailCheck,label:"Delivering"},noShipCanTake:{tone:"attention",Icon:u.CircleSlash,label:"No ship can take"},waitingForCrew:{tone:"waiting",Icon:A,label:"Waiting for crew"},stalledInFlight:{tone:"waiting",Icon:o.CirclePause,label:"Stalled in flight"}};e.s(["StatusBadge",0,function({status:e,className:s}){let{tone:a,Icon:r,label:i}=Q[e];return(0,t.jsxs)(D.Badge,{variant:"outline","data-slot":"status-badge","data-status":e,className:(0,O.classNames)(H[a],"abandoned"===e?"border-dashed":void 0,s),children:[(0,t.jsx)(r,{"aria-hidden":!0}),i]})},"statusLabel",0,function(e){return Q[e].label}],78865)},37631,e=>{"use strict";var t=e.i(43476),s=e.i(77880),a=e.i(85538);e.s(["DetailPage",0,function({title:e,parents:r,header:i,children:n,sheet:l,live:d,onCompose:o,onSearch:c,banner:u}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.Header,{breadcrumb:e,parents:r,live:d,onCompose:o,onSearch:c}),u,(0,t.jsx)(a.TopBar,{title:e,live:d,back:r[r.length-1]??r[0]}),(0,t.jsxs)("main",{className:"flex grow flex-col gap-5 px-8 py-6 max-sm:gap-3.5 max-sm:px-4 max-sm:pt-3.5 max-sm:pb-[calc(var(--size-tabbar)+var(--spacing)*4)]",children:[i,n]}),l]})}])},77880,85538,e=>{"use strict";var t=e.i(43476),s=e.i(67927),a=e.i(66595),r=e.i(19759),i=e.i(22016),n=e.i(15905),l=e.i(36651),d=e.i(90063);let o={live:{label:"Live",dot:"bg-tone-ok-fg"},reconnecting:{label:"Reconnecting",dot:"bg-tone-waiting-fg"},offline:{label:"Offline",dot:"bg-tone-attention-fg"}};function c({state:e,className:s}){let{label:a,dot:r}=o[e];return(0,t.jsxs)("span",{"data-slot":"live-status","data-state":e,"aria-live":"polite",className:(0,d.classNames)("inline-flex items-center gap-1.5 text-meta text-muted-foreground",s),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:(0,d.classNames)("size-2 shrink-0 rounded-full",r)}),a]})}e.s(["Header",0,function({breadcrumb:e,parents:d=[],live:o,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:[d.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)(s.ChevronRight,{"aria-hidden":!0,className:"size-3.5 text-muted-foreground"})]},e.href)),(0,t.jsx)("li",{"aria-current":"page",className:"truncate font-medium text-foreground",children:e})]})}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(c,{state:o}),h?(0,t.jsxs)(n.Button,{size:"sm",icon:(0,t.jsx)(a.Search,{"aria-hidden":!0}),"data-testid":"header-search",className:"w-60 justify-start font-normal text-muted-foreground",onClick:h,children:[(0,t.jsx)("span",{className:"grow text-left",children:"Search ships or jump to"}),(0,t.jsx)(l.Kbd,{children:"⌘K"})]}):null,u?(0,t.jsx)(n.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:s,actions:r,back:l,account:d,onSearch:o}){let m=o&&!l?o:void 0;return(0,t.jsxs)("header",{"data-slot":"top-bar","data-mode":l?"detail":"root",className:"sticky top-0 z-30 flex h-(--size-header) items-center gap-2.5 border-b border-border bg-background px-4 sm:hidden",children:[l?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(i.default,{href:l.href,className:"-ml-1.5 inline-flex h-(--size-control-touch) shrink-0 items-center gap-0.5 rounded-md pr-2 text-body-touch text-foreground focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon)",children:[(0,t.jsx)(u.ChevronLeft,{"aria-hidden":!0}),l.label]}),(0,t.jsx)("p",{className:"min-w-0 flex-1 truncate text-center text-body-touch font-semibold text-foreground",children:e})]}):(0,t.jsx)("h1",{className:"truncate text-title-touch font-semibold tracking-tight text-foreground",children:e}),(0,t.jsx)(c,{state:s}),r||m||d&&!l?(0,t.jsxs)("div",{className:"ml-auto flex items-center gap-1",children:[m?(0,t.jsx)(n.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Search ships or jump to","data-testid":"top-bar-search",onClick:m,children:(0,t.jsx)(a.Search,{"aria-hidden":!0})}):null,r,d&&!l?(0,t.jsx)(h.AccountMenuSheet,{...d}):null]}):null]})}],85538)},18423,e=>{"use strict";var t=e.i(12598),s=e.i(5861),a=e.i(71645),r=e.i(86413),i=e.i(27702);let n=new Set(["FleetInitialised","ShipCommissioned","ShipClaimed","LeaseRevoked","CredentialRevoked","StartingPromptIssued","ShipRetired","DeliveryAcknowledged","DeliveryUndeliverable","ShipReported","CrewRequested","CrewRequestRemoved","CrewAssigned","CrewStatusChanged","CrewRequestExplained","CrewRequestGivenBack","LabelAssigned","LabelUnassigned","LabelRetired"]);async function l(e,t){await e.cancelQueries({queryKey:t,predicate:e=>void 0===e.state.data&&"fetching"===e.state.fetchStatus}),await e.invalidateQueries({queryKey:t})}let d=new Set(["LabelDefined","LabelValuesChanged","LabelRetired","LabelAssigned","LabelUnassigned","LabelDeleted"]),o=new Set(["DeliveryUndeliverable","DeliveryNotHandled","DeliveryDismissed"]),c=new Set(["NetworkRulesSet","NetworkRulesDraftSaved","NetworkRulesDraftDiscarded","NetworkRulesDeclared","BuiltInRuleChanged"]);e.s(["useLiveFleet",0,function(){let e=(0,i.useTRPC)(),u=(0,t.useQueryClient)(),[h,m]=(0,a.useState)(new Set),p=e=>{l(u,e)},b=(0,s.useSubscription)(e.fleet.events.subscriptionOptions({lastEventId:null},{onData:({data:t})=>{var s,a,i,l,u;if("resync"===t.kind){p(e.fleet.pathKey()),p(r.INBOX_KEY);return}let{event:h}=t;for(let t of new Set([h.shipId,h.actorShipId]))null!==t&&(p(e.fleet.ship.queryKey({shipId:t})),p(e.fleet.shipTimeline.queryKey({shipId:t})),p(e.fleet.shipWay.queryKey({shipId:t})));if(null!==h.messageId&&(p(e.fleet.shipMessages.pathKey()),p(e.fleet.shipWay.pathKey()),p(e.fleet.message.queryKey({messageId:h.messageId})),p(e.fleet.inbox.pathKey()),p(r.INBOX_KEY),p(e.fleet.health.queryKey())),s=h.type,o.has(s)&&p(e.fleet.needsAttention.queryKey()),a=h.type,d.has(a)&&p(e.fleet.labels.queryKey()),"NetworkRulesDeclared"===h.type&&p(e.fleet.declaredNetworkRules.queryKey()),("BuiltInRuleChanged"===(i=h.type)||"NetworkRulesSet"===i)&&p(e.fleet.builtInRules.queryKey()),l=h.type,c.has(l)&&(p(e.fleet.networkRules.queryKey()),p(e.fleet.networkRulesDraftChanges.queryKey()),p(e.fleet.explainReach.pathKey())),u=h.type,!n.has(u))return;p(e.fleet.list.queryKey()),p(e.fleet.health.queryKey());let{shipId:b}=h;"ShipCommissioned"===h.type&&null!==b&&m(e=>new Set([...e,b]))}}));return{live:function(e){switch(e){case"pending":return"live";case"connecting":return"reconnecting";case"idle":case"error":return"offline"}}(b.status),newShipIds:h,error:b.error}}])},28459,e=>{"use strict";var t=e.i(54616),s=e.i(66027),a=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 n="Acknowledged, then its turn died; handed once more, and that turn died too: not handled.";function l(){let e=(0,r.useTRPC)(),t=(0,a.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?n:`${n} 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)(),s=l();return(0,t.useMutation)(e.fleet.dismiss.mutationOptions({onSuccess:s}))},"useNeedsAttention",0,function(){let e=(0,r.useTRPC)();return(0,s.useQuery)(e.fleet.needsAttention.queryOptions())},"useResendDelivery",0,function(){let e=(0,r.useTRPC)(),s=l();return(0,t.useMutation)(e.fleet.resend.mutationOptions({onSuccess:s}))}])}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,86448,e=>{"use strict";var t=e.i(12598),s=e.i(81384),a=e.i(73664),r=e.i(27001),i=e.i(54440),n=e.i(71645),l=e.i(19273),d=e.i(15823),o=e.i(40143),c=e.i(69230);function u(e,t){let s=new Set(t);return e.filter(e=>!s.has(e))}var h=class extends d.Subscribable{#e;#t;#s;#a;#r;#i;#n;#l;#d;#o=[];constructor(e,t,s){super(),this.#e=e,this.#a=s,this.#s=[],this.#r=[],this.#t=[],this.setQueries(t)}onSubscribe(){1===this.listeners.size&&this.#r.forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#r.forEach(e=>{e.destroy()})}setQueries(e,t){this.#s=e,this.#a=t,o.notifyManager.batch(()=>{let e=this.#r,t=this.#u(this.#s);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let s=t.map(e=>e.observer),a=s.map(e=>e.getCurrentResult()),r=e.length!==s.length,i=s.some((t,s)=>t!==e[s]),n=r||i,d=!!n||a.some((e,t)=>{let s=this.#t[t];return!s||!(0,l.shallowEqualObjects)(e,s)});(n||d)&&(n&&(this.#o=t,this.#r=s),this.#t=a,this.hasListeners()&&(n&&(u(e,s).forEach(e=>{e.destroy()}),u(s,e).forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})),this.#h()))})}getCurrentResult(){return this.#t}getQueries(){return this.#r.map(e=>e.getCurrentQuery())}getObservers(){return this.#r}getOptimisticResult(e,t){let s=this.#u(e),a=s.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),r=s.map(e=>e.defaultedQueryOptions.queryHash);return[a,e=>this.#m(e??a,t,r),()=>this.#y(a,s)]}#y(e,t){let s=new Set;return t.map((a,r)=>{let i=e[r];return a.defaultedQueryOptions.notifyOnChangeProps?i:a.observer.trackResult(i,e=>{s.has(e)||(s.add(e),t.forEach(t=>{t.observer.trackProp(e)}))})})}#m(e,t,s){if(t){let a=this.#d,r=void 0!==s&&void 0!==a&&(a.length!==s.length||s.some((e,t)=>e!==a[t]));return(this.#t!==this.#l||r||t!==this.#n)&&(this.#n=t,this.#l=this.#t,void 0!==s&&(this.#d=s),this.#i=(0,l.replaceEqualDeep)(this.#i,t(e))),this.#i}return e}#f(){return!this.#a?.combine||this.#r.some((e,t)=>e.options.suspense&&this.#t[t]?.data===void 0)}#u(e){let t=new Map;this.#r.forEach(e=>{let s=e.options.queryHash;if(!s)return;let a=t.get(s);a?a.push(e):t.set(s,[e])});let s=[];return e.forEach(e=>{let a=this.#e.defaultQueryOptions(e),r=t.get(a.queryHash)?.shift()??new c.QueryObserver(this.#e,a);s.push({defaultedQueryOptions:a,observer:r})}),s}#c(e,t){let s=this.#r.indexOf(e);-1!==s&&(this.#t=this.#t.slice(),this.#t[s]=t,this.#h())}#h(){if(this.hasListeners()){let e=this.#f(),t=this.#i,s=e?t:this.#m(this.#y(this.#t,this.#o),this.#a?.combine);(e||t!==s)&&o.notifyManager.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}};e.s(["useQueries",0,function({queries:e,...d},u){let m=(0,t.useQueryClient)(u),y=(0,s.useIsRestoring)(),f=(0,a.useQueryErrorResetBoundary)(),p=!1!==d.subscribed,b=n.useMemo(()=>e.map(e=>{let t=m.defaultQueryOptions(e);return t._optimisticResults=y?"isRestoring":p?"optimistic":void 0,t}),[e,m,y,p]);b.forEach(e=>{(0,i.ensureSuspenseTimers)(e);let t=m.getQueryCache().get(e.queryHash);(0,r.ensurePreventErrorBoundaryRetry)(e,f,t)}),(0,r.useClearResetErrorBoundary)(f);let[g]=n.useState(()=>new h(m,b,d)),[x,v,k]=g.getOptimisticResult(b,d.combine),w=!y&&p;n.useSyncExternalStore(n.useCallback(e=>w?g.subscribe(o.notifyManager.batchCalls(e)):l.noop,[g,w]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),n.useEffect(()=>{g.setQueries(b,d)},[b,d,g]);let j=x.some((e,t)=>(0,i.shouldSuspend)(b[t],e))?x.flatMap((e,t)=>{let s=b[t];if(s&&(0,i.shouldSuspend)(s,e)){let e=new c.QueryObserver(m,s);return(0,i.fetchOptimistic)(s,e,f)}return[]}):[];if(j.length>0)throw Promise.all(j);let C=x.find((e,t)=>{let s=b[t];return s&&(0,r.getHasError)({result:e,errorResetBoundary:f,throwOnError:s.throwOnError,query:m.getQueryCache().get(s.queryHash),suspense:s.suspense})});if(C)throw C.error;return v(k())}],86448)},49655,87255,50092,36604,e=>{"use strict";var t=e.i(56420);let s={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"}]]};s.node;let a=(0,t.default)(s);e.s(["AlarmClock",0,a],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 n={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"]};n.node;let l=(0,t.default)(n);e.s(["CircleArrowRight",0,l],50092);let d={name:"circle-check-big",size:24,node:[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],aliases:["check-circle"]};d.node;let o=(0,t.default)(d);e.s(["CircleCheckBig",0,o],36604)},76561,e=>{"use strict";var t=e.i(56420);let s={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"}]]};s.node;let a=(0,t.default)(s);e.s(["Archive",0,a],76561)},47211,e=>{"use strict";var t=e.i(56420);let s={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"}]]};s.node;let a=(0,t.default)(s);e.s(["Ban",0,a],47211)},24071,e=>{"use strict";var t=e.i(56420);let s={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};s.node;let a=(0,t.default)(s);e.s(["ChevronLeft",0,a],24071)},67927,e=>{"use strict";var t=e.i(56420);let s={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};s.node;let a=(0,t.default)(s);e.s(["ChevronRight",0,a],67927)},52886,e=>{"use strict";var t=e.i(56420);let s={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"}]]};s.node;let a=(0,t.default)(s);e.s(["CircleDashed",0,a],52886)},19002,e=>{"use strict";var t=e.i(56420);let s={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"]};s.node;let a=(0,t.default)(s);e.s(["CirclePause",0,a],19002)},32297,26391,19647,10001,25799,e=>{"use strict";var t=e.i(56420);let s={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"]};s.node;let a=(0,t.default)(s);e.s(["CirclePlay",0,a],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 n={name:"circle-minus",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]],aliases:["minus-circle"]};n.node;let l=(0,t.default)(n);e.s(["CircleMinus",0,l],19647);let d={name:"flag-off",size:24,node:[["path",{d:"M16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1q158e"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M4 22V4",key:"1plyxx"}],["path",{d:"M7.656 2H8c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10.347",key:"xj1b71"}]]};d.node;let o=(0,t.default)(d);e.s(["FlagOff",0,o],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 s={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"}]]};s.node;let a=(0,t.default)(s);e.s(["CircleSlash",0,a],21048)},16984,e=>{"use strict";var t=e.i(56420);let s={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"]};s.node;let a=(0,t.default)(s);e.s(["CircleX",0,a],16984)},74544,e=>{"use strict";var t=e.i(56420);let s={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};s.node;let a=(0,t.default)(s);e.s(["Clock",0,a],74544)},36518,e=>{"use strict";var t=e.i(56420);let s={name:"cloud-off",size:24,node:[["path",{d:"M10.94 5.274A7 7 0 0 1 15.71 10h1.79a4.5 4.5 0 0 1 4.222 6.057",key:"1uxyv8"}],["path",{d:"M18.796 18.81A4.5 4.5 0 0 1 17.5 19H9A7 7 0 0 1 5.79 5.78",key:"99tcn7"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]};s.node;let a=(0,t.default)(s);e.s(["CloudOff",0,a],36518)},71028,e=>{"use strict";var t=e.i(56420);let s={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"}]]};s.node;let a=(0,t.default)(s);e.s(["Gauge",0,a],71028)},81658,e=>{"use strict";var t=e.i(56420);let s={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"}]]};s.node;let a=(0,t.default)(s);e.s(["Hourglass",0,a],81658)},85512,e=>{"use strict";var t=e.i(56420);let s={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"]};s.node;let a=(0,t.default)(s);e.s(["OctagonAlert",0,a],85512)},57665,e=>{"use strict";var t=e.i(56420);let s={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"}]]};s.node;let a=(0,t.default)(s);e.s(["Power",0,a],57665)},95925,85627,e=>{"use strict";var t=e.i(56420);let s={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"}]]};s.node;let a=(0,t.default)(s);e.s(["RotateCcw",0,a],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)},25398,e=>{"use strict";var t=e.i(56420);let s={name:"rotate-cw",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]};s.node;let a=(0,t.default)(s);e.s(["RotateCw",0,a],25398)},66595,e=>{"use strict";var t=e.i(56420);let s={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};s.node;let a=(0,t.default)(s);e.s(["Search",0,a],66595)},19759,e=>{"use strict";var t=e.i(56420);let s={name:"square-pen",size:24,node:[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],aliases:["pen-box","edit","pen-square"]};s.node;let a=(0,t.default)(s);e.s(["SquarePen",0,a],19759)},66787,e=>{"use strict";var t=e.i(56420);let s={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"]};s.node;let a=(0,t.default)(s);e.s(["TriangleAlert",0,a],66787)},92870,e=>{"use strict";var t=e.i(56420);let s={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"}]]};s.node;let a=(0,t.default)(s);e.s(["UserCheck",0,a],92870)},36651,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["Kbd",0,function({className:e,...a}){return(0,t.jsx)("kbd",{"data-slot":"kbd",className:(0,s.classNames)("inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-xs border border-border bg-muted px-1.25 font-sans text-micro font-medium text-muted-foreground max-sm:hidden",e),...a})}])},19321,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["Skeleton",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"skeleton","aria-hidden":!0,className:(0,s.classNames)("animate-pulse rounded-sm bg-secondary [animation-duration:var(--duration-pulse)] motion-reduce:animate-none",e),...a})}])},67874,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["EmptyState",0,function({title:e,description:a,icon:r,action:i,variant:n="page",className:l}){return"section"===n?(0,t.jsxs)("p",{"data-slot":"empty-state","data-variant":n,className:(0,s.classNames)("rounded-lg border border-border px-4 py-3 text-center text-meta text-muted-foreground",l),children:[e,a?(0,t.jsxs)(t.Fragment,{children:[" ",a]}):null]}):"no-results"===n?(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":n,className:(0,s.classNames)("flex flex-col items-center gap-2.5 rounded-lg border border-border bg-card px-4 py-6 text-center",l),children:[(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:e}),i]}):(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":n,className:(0,s.classNames)("flex flex-col items-center gap-3 rounded-lg border border-dashed border-border bg-card px-6 py-10 text-center",l),children:[r?(0,t.jsx)("span",{"aria-hidden":!0,className:"flex size-10 items-center justify-center rounded-lg border border-border bg-muted text-muted-foreground [&_svg]:size-(--size-icon-xl)",children:r}):null,(0,t.jsx)("h2",{className:"text-heading font-semibold text-foreground max-sm:text-heading-touch",children:e}),a?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:a}):null,i?(0,t.jsx)("div",{className:"mt-1 max-sm:w-full max-sm:[&>*]:w-full",children:i}):null]})}])},17981,e=>{"use strict";var t=e.i(43476),s=e.i(22768),a=e.i(36518),r=e.i(25398),i=e.i(90063),n=e.i(15905);e.s(["InlineError",0,function({title:e,description:l,detail:d,onRetry:o,variant:c="section",id:u,className:h}){return"field"===c?(0,t.jsxs)("p",{id:u,"data-slot":"inline-error","data-variant":c,className:(0,i.classNames)("flex items-center gap-1.5 text-meta text-destructive-text [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",h),children:[(0,t.jsx)(s.CircleAlert,{"aria-hidden":!0}),e]}):"section"===c?(0,t.jsxs)("div",{role:"alert","data-slot":"inline-error","data-variant":c,className:(0,i.classNames)("flex gap-2 rounded-lg border border-tone-attention-border bg-tone-attention-bg p-3 text-tone-attention-fg",h),children:[(0,t.jsx)(s.CircleAlert,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon) shrink-0"}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("p",{className:"text-body font-medium",children:e}),l?(0,t.jsx)("p",{className:"text-meta text-foreground",children:l}):null,o?(0,t.jsx)(n.Button,{size:"xs",icon:(0,t.jsx)(r.RotateCw,{"aria-hidden":!0}),onClick:o,className:"self-start",children:"Try again"}):null]})]}):(0,t.jsxs)("div",{role:"alert","data-slot":"inline-error","data-variant":c,className:(0,i.classNames)("flex flex-col items-center gap-3 rounded-lg border border-border bg-card px-6 py-10 text-center",h),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"flex size-10 items-center justify-center rounded-lg border border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg [&_svg]:size-(--size-icon-xl)",children:(0,t.jsx)(a.CloudOff,{})}),(0,t.jsx)("h2",{className:"text-heading font-semibold text-foreground max-sm:text-heading-touch",children:e}),l?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:l}):null,d?(0,t.jsx)("code",{className:"rounded-sm border border-border bg-muted px-2 py-0.5 font-mono text-id text-muted-foreground",children:d}):null,o?(0,t.jsx)("div",{className:"flex items-center gap-2 max-sm:w-full max-sm:flex-col",children:(0,t.jsx)(n.Button,{size:"sm",icon:(0,t.jsx)(r.RotateCw,{"aria-hidden":!0}),onClick:o,className:"max-sm:w-full",children:"Try again"})}):null]})}])},88393,e=>{"use strict";var t=e.i(43476),s=e.i(90063),a=e.i(19321);function r(e){return Array.from({length:e},(e,t)=>`row-${String(t)}`)}e.s(["LoadingSkeleton",0,function({variant:e,rows:i=4,label:n="Loading",className:l}){return(0,t.jsxs)("div",{role:"status","data-slot":"loading-skeleton","data-variant":e,className:(0,s.classNames)("w-full",l),children:[(0,t.jsx)("span",{className:"sr-only",children:n}),"table"===e?(0,t.jsxs)("div",{className:"overflow-hidden rounded-lg border border-border bg-card shadow-sm",children:[(0,t.jsx)("div",{className:"h-(--size-row-header) border-b border-border bg-muted"}),r(i).map(e=>(0,t.jsxs)("div",{className:"flex h-(--size-row) items-center gap-8 border-b border-border px-4 last:border-0",children:[(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-24"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-16"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-28"})]},e))]}):null,"cards"===e?(0,t.jsx)("div",{className:"grid grid-cols-2 gap-3 lg:grid-cols-4",children:r(4).map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-20"}),(0,t.jsx)(a.Skeleton,{className:"h-6 w-10"}),(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-28"})]},e))}):null,"detail"===e?(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(a.Skeleton,{className:"h-7 w-48"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(a.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(a.Skeleton,{className:"h-16 w-full rounded-lg"})]}):null,"list"===e?(0,t.jsx)("div",{className:"overflow-hidden rounded-lg border border-border bg-card",children:r(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)(a.Skeleton,{className:"h-3 w-28"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-44"})]},e))}):null]})}])},78865,e=>{"use strict";var t=e.i(43476),s=e.i(49655),a=e.i(87255),r=e.i(76561),i=e.i(47211),n=e.i(22768),l=e.i(50092),d=e.i(36604),o=e.i(19002),c=e.i(32297),u=e.i(21048),h=e.i(74544),m=e.i(85595),y=e.i(52886),f=e.i(26391),p=e.i(19647),b=e.i(16984),g=e.i(10001),x=e.i(71028),v=e.i(81658),k=e.i(44594),w=e.i(11568),j=e.i(25799),C=e.i(85512),N=e.i(57665),S=e.i(95925),M=e.i(85627),R=e.i(66787),z=e.i(92870),q=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 A=(0,q.default)(I);var O=e.i(90063),H=e.i(66390);let D={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"},K={awaitingCrew:{tone:"waiting",Icon:y.CircleDashed,label:"Awaiting crew"},crewed:{tone:"ok",Icon:z.UserCheck,label:"Crewed"},retired:{tone:"ended",Icon:r.Archive,label:"Retired"},pending:{tone:"waiting",Icon:v.Hourglass,label:"Pending"},received:{tone:"active",Icon:k.Inbox,label:"Received"},handed:{tone:"active",Icon:l.CircleArrowRight,label:"Handed (pulled)"},handedPushed:{tone:"active",Icon:l.CircleArrowRight,label:"Handed"},overdue:{tone:"attention",Icon:s.AlarmClock,label:"Overdue"},acknowledged:{tone:"ok",Icon:m.CircleCheck,label:"Acknowledged"},handled:{tone:"ok",Icon:d.CircleCheckBig,label:"Handled"},notHandled:{tone:"attention",Icon:n.CircleAlert,label:"Not handled"},undeliverable:{tone:"attention",Icon:b.CircleX,label:"Undeliverable"},dismissed:{tone:"ended",Icon:p.CircleMinus,label:"Dismissed"},abandoned:{tone:"ended",Icon:i.Ban,label:"Abandoned"},forming:{tone:"waiting",Icon:f.CircleDotDashed,label:"Forming"},sailing:{tone:"ok",Icon:M.Sailboat,label:"Sailing"},"standing-down":{tone:"active",Icon:a.Anchor,label:"Standing down"},disbanded:{tone:"ended",Icon:g.FlagOff,label:"Disbanded"},"at-limit":{tone:"waiting",Icon:x.Gauge,label:"At limit"},"over-limit":{tone:"attention",Icon:R.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:b.CircleX,label:"Crashed"},releasing:{tone:"active",Icon:N.Power,label:"Releasing"},stuck:{tone:"attention",Icon:C.OctagonAlert,label:"Stuck"},delivering:{tone:"ok",Icon:j.MailCheck,label:"Delivering"},noShipCanTake:{tone:"attention",Icon:u.CircleSlash,label:"No ship can take"},waitingForCrew:{tone:"waiting",Icon:A,label:"Waiting for crew"},stalledInFlight:{tone:"waiting",Icon:o.CirclePause,label:"Stalled in flight"}};e.s(["StatusBadge",0,function({status:e,className:s}){let{tone:a,Icon:r,label:i}=K[e];return(0,t.jsxs)(H.Badge,{variant:"outline","data-slot":"status-badge","data-status":e,className:(0,O.classNames)(D[a],"abandoned"===e?"border-dashed":void 0,s),children:[(0,t.jsx)(r,{"aria-hidden":!0}),i]})},"statusLabel",0,function(e){return K[e].label}],78865)},37631,e=>{"use strict";var t=e.i(43476),s=e.i(77880),a=e.i(85538);e.s(["DetailPage",0,function({title:e,parents:r,header:i,children:n,sheet:l,live:d,onCompose:o,onSearch:c,banner:u}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.Header,{breadcrumb:e,parents:r,live:d,onCompose:o,onSearch:c}),u,(0,t.jsx)(a.TopBar,{title:e,live:d,back:r[r.length-1]??r[0]}),(0,t.jsxs)("main",{className:"flex grow flex-col gap-5 px-8 py-6 max-sm:gap-3.5 max-sm:px-4 max-sm:pt-3.5 max-sm:pb-[calc(var(--size-tabbar)+var(--spacing)*4)]",children:[i,n]}),l]})}])},77880,85538,e=>{"use strict";var t=e.i(43476),s=e.i(67927),a=e.i(66595),r=e.i(19759),i=e.i(22016),n=e.i(15905),l=e.i(36651),d=e.i(90063);let o={live:{label:"Live",dot:"bg-tone-ok-fg"},reconnecting:{label:"Reconnecting",dot:"bg-tone-waiting-fg"},offline:{label:"Offline",dot:"bg-tone-attention-fg"}};function c({state:e,className:s}){let{label:a,dot:r}=o[e];return(0,t.jsxs)("span",{"data-slot":"live-status","data-state":e,"aria-live":"polite",className:(0,d.classNames)("inline-flex items-center gap-1.5 text-meta text-muted-foreground",s),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:(0,d.classNames)("size-2 shrink-0 rounded-full",r)}),a]})}e.s(["Header",0,function({breadcrumb:e,parents:d=[],live:o,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:[d.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)(s.ChevronRight,{"aria-hidden":!0,className:"size-3.5 text-muted-foreground"})]},e.href)),(0,t.jsx)("li",{"aria-current":"page",className:"truncate font-medium text-foreground",children:e})]})}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(c,{state:o}),h?(0,t.jsxs)(n.Button,{size:"sm",icon:(0,t.jsx)(a.Search,{"aria-hidden":!0}),"data-testid":"header-search",className:"w-60 justify-start font-normal text-muted-foreground",onClick:h,children:[(0,t.jsx)("span",{className:"grow text-left",children:"Search ships or jump to"}),(0,t.jsx)(l.Kbd,{children:"⌘K"})]}):null,u?(0,t.jsx)(n.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:s,actions:r,back:l,account:d,onSearch:o}){let m=o&&!l?o:void 0;return(0,t.jsxs)("header",{"data-slot":"top-bar","data-mode":l?"detail":"root",className:"sticky top-0 z-30 flex h-(--size-header) items-center gap-2.5 border-b border-border bg-background px-4 sm:hidden",children:[l?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(i.default,{href:l.href,className:"-ml-1.5 inline-flex h-(--size-control-touch) shrink-0 items-center gap-0.5 rounded-md pr-2 text-body-touch text-foreground focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon)",children:[(0,t.jsx)(u.ChevronLeft,{"aria-hidden":!0}),l.label]}),(0,t.jsx)("p",{className:"min-w-0 flex-1 truncate text-center text-body-touch font-semibold text-foreground",children:e})]}):(0,t.jsx)("h1",{className:"truncate text-title-touch font-semibold tracking-tight text-foreground",children:e}),(0,t.jsx)(c,{state:s}),r||m||d&&!l?(0,t.jsxs)("div",{className:"ml-auto flex items-center gap-1",children:[m?(0,t.jsx)(n.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Search ships or jump to","data-testid":"top-bar-search",onClick:m,children:(0,t.jsx)(a.Search,{"aria-hidden":!0})}):null,r,d&&!l?(0,t.jsx)(h.AccountMenuSheet,{...d}):null]}):null]})}],85538)},18423,e=>{"use strict";var t=e.i(12598),s=e.i(5861),a=e.i(71645),r=e.i(86413),i=e.i(27702);let n=new Set(["FleetInitialised","ShipCommissioned","ShipClaimed","LeaseRevoked","CredentialRevoked","StartingPromptIssued","ShipRetired","DeliveryAcknowledged","DeliveryUndeliverable","ShipReported","CrewRequested","CrewRequestRemoved","CrewAssigned","CrewStatusChanged","CrewRequestExplained","CrewRequestGivenBack","LabelAssigned","LabelUnassigned","LabelRetired"]),l=new Set(["LabelDefined","LabelValuesChanged","LabelRetired","LabelAssigned","LabelUnassigned","LabelDeleted"]),d=new Set(["DeliveryUndeliverable","DeliveryNotHandled","DeliveryDismissed"]),o=new Set(["NetworkRulesSet","NetworkRulesDraftSaved","NetworkRulesDraftDiscarded","NetworkRulesDeclared","BuiltInRuleChanged"]);e.s(["useLiveFleet",0,function(){let e=(0,i.useTRPC)(),c=(0,t.useQueryClient)(),[u,h]=(0,a.useState)(new Set),[m]=(0,a.useState)(()=>{let e,t,s,a;return e=new Set,t=new Set,s=e=>c.invalidateQueries({queryKey:e,exact:!0},{cancelRefetch:!1}),a=async a=>{e.add(a.queryHash);let r=a.isBehind;try{for(await s(a.queryKey);r||t.delete(a.queryHash);)r=!1,await s(a.queryKey)}finally{e.delete(a.queryHash)}},s=>{for(let r of c.getQueryCache().findAll({queryKey:s}))e.has(r.queryHash)?t.add(r.queryHash):a({queryHash:r.queryHash,queryKey:r.queryKey,isBehind:"fetching"===r.state.fetchStatus})}}),y=(0,s.useSubscription)(e.fleet.events.subscriptionOptions({lastEventId:null},{onData:({data:t})=>{var s,a,i,c,u;if("resync"===t.kind){m(e.fleet.pathKey()),m(r.INBOX_KEY);return}let{event:y}=t;for(let t of new Set([y.shipId,y.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!==y.messageId&&(m(e.fleet.shipMessages.pathKey()),m(e.fleet.shipWay.pathKey()),m(e.fleet.message.queryKey({messageId:y.messageId})),m(e.fleet.inbox.pathKey()),m(r.INBOX_KEY),m(e.fleet.health.queryKey())),s=y.type,d.has(s)&&m(e.fleet.needsAttention.queryKey()),a=y.type,l.has(a)&&m(e.fleet.labels.queryKey()),"NetworkRulesDeclared"===y.type&&m(e.fleet.declaredNetworkRules.queryKey()),("BuiltInRuleChanged"===(i=y.type)||"NetworkRulesSet"===i)&&m(e.fleet.builtInRules.queryKey()),c=y.type,o.has(c)&&(m(e.fleet.networkRules.queryKey()),m(e.fleet.networkRulesDraftChanges.queryKey()),m(e.fleet.explainReach.pathKey())),u=y.type,!n.has(u))return;m(e.fleet.list.queryKey()),m(e.fleet.health.queryKey());let{shipId:f}=y;"ShipCommissioned"===y.type&&null!==f&&h(e=>new Set([...e,f]))}}));return{live:function(e){switch(e){case"pending":return"live";case"connecting":return"reconnecting";case"idle":case"error":return"offline"}}(y.status),newShipIds:u,error:y.error}}])},28459,e=>{"use strict";var t=e.i(54616),s=e.i(66027),a=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 n="Acknowledged, then its turn died; handed once more, and that turn died too: not handled.";function l(){let e=(0,r.useTRPC)(),t=(0,a.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?n:`${n} 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)(),s=l();return(0,t.useMutation)(e.fleet.dismiss.mutationOptions({onSuccess:s}))},"useNeedsAttention",0,function(){let e=(0,r.useTRPC)();return(0,s.useQuery)(e.fleet.needsAttention.queryOptions())},"useResendDelivery",0,function(){let e=(0,r.useTRPC)(),s=l();return(0,t.useMutation)(e.fleet.resend.mutationOptions({onSuccess:s}))}])}]);
|