@aeolus-fleet/console 0.32.2 → 0.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/standalone/packages/console/.next/BUILD_ID +1 -1
- package/.next/standalone/packages/console/.next/build-manifest.json +3 -3
- package/.next/standalone/packages/console/.next/prerender-manifest.json +3 -3
- package/.next/standalone/packages/console/.next/server/app/(console)/fleet-health/[cause]/page/server-reference-manifest.json +26 -15
- 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 +26 -15
- 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 +26 -15
- 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 +26 -15
- 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 +26 -15
- 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 +26 -15
- 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 +26 -15
- 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 +26 -15
- package/.next/standalone/packages/console/.next/server/app/(console)/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/scopes/page/server-reference-manifest.json +26 -15
- package/.next/standalone/packages/console/.next/server/app/(console)/scopes/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/scopes/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/settings/page/server-reference-manifest.json +26 -15
- 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 +26 -15
- 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 +26 -15
- 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 +26 -15
- 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 +26 -15
- 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 +26 -15
- 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 +26 -15
- 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 +26 -15
- 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/analytics/route.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/api/reads/[read]/route.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/sign-in/argo/confirm/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/sign-in/argo/out/route.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/sign-in/argo/route.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/sign-in/done/route.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/sign-in/enter/route.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/sign-in/failed/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/sign-in/out/route.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/sign-in/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/sign-in/renew/route.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/sign-in/start/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]__0-b_d8j._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/[root-of-the-server]__05uof7g._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/[root-of-the-server]__0w4s32w._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/_02-7tdl._.js +5 -5
- package/.next/standalone/packages/console/.next/server/chunks/_0l8ph40._.js +5 -5
- package/.next/standalone/packages/console/.next/server/chunks/_16i3nlz._.js +5 -5
- package/.next/standalone/packages/console/.next/server/chunks/_1uqphll._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{0ysl_console_features_squadrons_ui_organisms_form-squadron-dialog_tsx_0ncsfsk._.js → 0ysl_console_features_squadrons_ui_organisms_form-squadron-dialog_tsx_1th4quy._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/[root-of-the-server]__0w3uw0-._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_0mmuu2g._.js → _055rsih._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_01434zt._.js → _05in8ls._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_1diq6u_._.js → _0607-_6._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_06y4qg4._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_1lt6p4q._.js → _0cd_chc._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0chpnwx._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_0lx73da._.js → _0eh_-17._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_12ly8ev._.js → _0mq-55x._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_1zjutoo._.js → _0nn5y-v._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_0qf98-v._.js → _0w5l_7h._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0wrm2to._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0xfzttf._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_0v94igp._.js → _0ydu2av._.js} +2 -2
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_11jx7z9._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_1j285b1._.js → _13zizty._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_1ymusis._.js → _1b_x7o3._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1c8_t28._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1k9mt5a._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1m5wn-m._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1su9voz._.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/_1y1x0jn._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_20u8c82._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_00qg_s6._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_02v53na._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_02wkudy._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_04rox65._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_05zitd2._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_065nea1._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_0gm82wd._.js → packages_console_06tqha0._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_0h6bco-._.js → packages_console_0_9qnut._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_0h_376h._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_0hs6kp-._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_0ko_ogs._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_0l5mn5a._.js +3 -0
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_1ieaeeg._.js → packages_console_0qf-zqf._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_0sr2-oa._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_0ysbad7._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_108sez2._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_1jy5-0g._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_1n8w8x0._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_1oz8iu7._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_1rdu3gt._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_1smyb9n._.js → packages_console_1rhomt6._.js} +2 -2
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_1yfimad._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_app_(console)_overview-page_tsx_15siba6._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_components_organisms_crew-line-dialog_tsx_1dgcjr7._.js → packages_console_components_organisms_crew-line-dialog_tsx_1h-qcrg._.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 +107 -16
- package/.next/standalone/packages/console/.next/static/chunks/{2bqxl5_u1hjjb.js → 0c88w1-7epscc.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{3d08vpjjajs5u.js → 0dtiejrfyjxji.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/0hhsy6ra8bzk3.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/0ij3s_9_0m8zf.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/0k72ei_zsyabn.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{1nbn9dy2six48.js → 17mtrygfuyta6.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{3p9n2jbwcevpb.js → 1k3vukm179xyz.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{3zkgskkbdbakw.js → 2twpd7o-xmyvk.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/359n0u5b59fd1.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/39gqt0zkw70vv.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/3_uxo69_fvryi.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{1o2-2crsgpgaf.js → 3gp-2eifnshyl.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/43fc04wo9rnfn.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/44z7dfqca15nv.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/_00ictfq._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0vlg8_g._.js +0 -3
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1-ujs2g._.js +0 -3
- package/.next/standalone/packages/console/.next/static/chunks/0wlqvdnkbefpg.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/1vyt2hnz2hej1.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/37z1m78w3m30v.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/3h239jvs_g-0p.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/3jqy92yv_bbl5.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/3nxxqirmjei_n.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/3yv3f9n4ksdv1.js +0 -1
- /package/.next/standalone/packages/console/.next/static/{pXMesRC-29PIE5Qj_Loeq → bALUvjOMkmhxleGSGcze5}/_buildManifest.js +0 -0
- /package/.next/standalone/packages/console/.next/static/{pXMesRC-29PIE5Qj_Loeq → bALUvjOMkmhxleGSGcze5}/_clientMiddlewareManifest.js +0 -0
- /package/.next/standalone/packages/console/.next/static/{pXMesRC-29PIE5Qj_Loeq → bALUvjOMkmhxleGSGcze5}/_ssgManifest.js +0 -0
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[375898,a=>{"use strict";var b=a.i(572131);let c=b.createContext(void 0),d={disableStyleElements:!1};a.s(["useCSPContext",0,function(){return b.useContext(c)??d}])},252466,a=>{"use strict";a.s(["isElementDisabled",0,function(a){return null==a||a.hasAttribute("disabled")||"true"===a.getAttribute("aria-disabled")}])},818783,a=>{"use strict";var b=a.i(164831);let c={name:"arrow-right",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]};c.node;let d=(0,b.default)(c);a.s(["ArrowRight",0,d],818783)},585650,a=>{"use strict";var b=a.i(164831);let c={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};c.node;let d=(0,b.default)(c);a.s(["Copy",0,d],585650)},483138,a=>{"use strict";var b=a.i(164831);let c={name:"file-text",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]};c.node;let d=(0,b.default)(c);a.s(["FileText",0,d],483138)},846916,a=>{"use strict";var b=a.i(164831);let c={name:"waves-horizontal",size:24,node:[["path",{d:"M2 12q2.5 2 5 0t5 0 5 0 5 0",key:"8ddzzs"}],["path",{d:"M2 19q2.5 2 5 0t5 0 5 0 5 0",key:"1wj4st"}],["path",{d:"M2 5q2.5 2 5 0t5 0 5 0 5 0",key:"69x50u"}]],aliases:["waves"]};c.node;let d=(0,b.default)(c);a.s(["Waves",0,d],846916)},582314,a=>{"use strict";var b=a.i(187924),c=a.i(752562),d=a.i(585650),e=a.i(572131),f=a.i(831856);a.s(["CopyButton",0,function({value:a,label:g,size:h="xs",isLabeled:i=!1,onCopied:j,onCopyFailed:k,className:l,"data-testid":m}){let[n,o]=(0,e.useState)(!1);async function p(){try{await navigator.clipboard.writeText(a)}catch{k?.();return}o(!0),j?.(),setTimeout(()=>{o(!1)},1500)}return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(f.Button,{variant:"ghost",size:h,isIconOnly:!i,"aria-label":g,title:i?void 0:g,icon:n?(0,b.jsx)(c.Check,{"aria-hidden":!0}):(0,b.jsx)(d.Copy,{"aria-hidden":!0}),className:l,"data-testid":m,onClick:()=>{p()},children:i?n?"Copied":"Copy":null}),(0,b.jsx)("span",{role:"status",className:"sr-only",children:n?"Copied.":""})]})}])},258491,203842,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(506885),e=a.i(582314),f=a.i(994777);a.s(["CompactCrewLine",0,function({crewLines:a,subject:g,testIdPrefix:h,onCopied:i,onCopyFailed:j}){let[k,l]=(0,c.useState)(a[0]?.harness),m=a.find(a=>a.harness===k)??a[0];if(!m)return null;let n=(0,d.crewLineHarnessWord)(m.harness);return(0,b.jsxs)("div",{className:"flex min-w-0 items-center gap-2 max-sm:flex-col max-sm:items-stretch",children:[(0,b.jsx)(f.Tabs,{value:m.harness,onValueChange:b=>{let c=a.find(a=>a.harness===b);c&&l(c.harness)},children:(0,b.jsx)(f.TabsList,{"aria-label":`Crew ${g} from`,children:a.map(a=>(0,b.jsx)(f.TabsTrigger,{value:a.harness,"data-testid":`${h}-${a.harness}-tab`,children:(0,d.crewLineHarnessWord)(a.harness)},a.harness))})}),(0,b.jsx)("code",{"data-testid":`${h}-${m.harness}`,title:m.line,className:"min-w-0 grow truncate rounded-md bg-muted px-2 py-1 font-mono text-code text-foreground",children:m.line}),(0,b.jsx)(e.CopyButton,{value:m.line,label:`Copy the ${n} crew line for ${g}`,isLabeled:!0,onCopied:i,onCopyFailed:j,"data-testid":`${h}-${m.harness}-copy`})]})}],258491);var g=a.i(483138);a.s(["LaunchNote",0,function({note:a,model:c,template:d,testId:e}){return null===a&&null===c?null:(0,b.jsxs)("div",{className:"flex items-start gap-2 rounded-md bg-muted px-3 py-2 text-meta",children:[(0,b.jsx)(g.FileText,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon-sm) shrink-0 text-muted-foreground"}),(0,b.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,b.jsxs)("span",{className:"text-muted-foreground",children:["Launch note",void 0===d?"":` \xb7 ${d}`]}),null!==a&&(0,b.jsx)("span",{"data-testid":e,children:a}),null!==c&&(0,b.jsxs)("span",{children:["Runs ",(0,b.jsx)("span",{className:"font-mono",children:c})]})]})]})}],203842)},375971,a=>{"use strict";var b=a.i(187924),c=a.i(483556);let d={"on-time":{label:"On time",dot:"bg-tone-ok-fg",text:"text-tone-ok-fg"},late:{label:"Late",dot:"bg-tone-waiting-fg",text:"text-tone-waiting-fg"},silent:{label:"Silent",dot:"bg-tone-attention-fg",text:"text-tone-attention-fg"},"standing-down":{label:"Standing down",dot:"bg-tone-active-fg",text:"text-tone-active-fg"},"not-on-station":{label:"Not on station",dot:"border border-dashed border-muted-foreground",text:"text-foreground"}};function e({health:a}){return(0,b.jsx)("span",{"aria-hidden":!0,className:(0,c.classNames)("size-2 shrink-0 rounded-full",d[a].dot)})}a.s(["HealthIndicator",0,function({health:a,detail:f,className:g}){return(0,b.jsxs)("span",{"data-slot":"health-indicator","data-health":a,className:(0,c.classNames)("inline-flex items-center gap-1.5 text-meta",g),children:[(0,b.jsx)(e,{health:a}),(0,b.jsx)("span",{className:(0,c.classNames)("font-medium",d[a].text),children:d[a].label}),void 0!==f&&(0,b.jsx)("span",{className:"text-muted-foreground",children:f})]})},"HealthSummary",0,function({counts:a,className:f}){return(0,b.jsx)("span",{"data-slot":"health-summary",className:(0,c.classNames)("inline-flex flex-wrap items-center gap-x-3 gap-y-1 text-meta",f),children:a.map(({health:a,count:c})=>(0,b.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,b.jsx)(e,{health:a}),(0,b.jsxs)("span",{children:[c," ",d[a].label.toLowerCase()]})]},a))})}])},243020,a=>{a.v(b=>Promise.all(["server/chunks/ssr/packages_console_components_1mu-90h._.js"].map(b=>a.l(b))).then(()=>b(352702)))},735559,a=>{"use strict";var b=a.i(187924),c=a.i(782247),d=a.i(363089);a.s(["DetailPage",0,function({title:a,parents:e,header:f,children:g,sheet:h,live:i,switcher:j,account:k,onCompose:l,onSearch:m,banner:n}){return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(c.Header,{breadcrumb:a,parents:e,live:i,switcher:j,account:k,onCompose:l,onSearch:m}),n,(0,b.jsx)(d.TopBar,{title:a,live:i,back:e[e.length-1]??e[0]}),(0,b.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:[f,g]}),h]})}])},453831,a=>{a.v(b=>Promise.all(["server/chunks/ssr/_1o61l_8._.js","server/chunks/ssr/packages_console_components_atoms_input_tsx_0ux0uln._.js"].map(b=>a.l(b))).then(()=>b(280459)))},802297,a=>{"use strict";var b=a.i(187924),c=a.i(525212),d=a.i(238246),e=a.i(831856),f=a.i(24173);a.s(["SquadronsNotConnected",0,function(){return(0,b.jsx)(f.EmptyState,{icon:(0,b.jsx)(c.Unplug,{"aria-hidden":!0}),title:"Squadrons is not connected",description:"Connect it in Settings; squadrons, blueprints and templates show up here then.",action:(0,b.jsx)(e.Button,{nativeButton:!1,render:(0,b.jsx)(d.default,{href:"/settings"}),"data-testid":"squadrons-open-settings",children:"Open Settings"})})}])},275776,a=>{a.v(b=>Promise.all(["server/chunks/ssr/packages_console_features_squadrons_ui_organisms_add-member-dialog_tsx_153e4y2._.js"].map(b=>a.l(b))).then(()=>b(573671)))},824101,a=>{"use strict";var b=a.i(187924),c=a.i(818783),d=a.i(925039),e=a.i(572131),f=a.i(483556),g=a.i(176166);function h({name:a,count:c,onHover:e}){let f={onPointerEnter:()=>{e(a)},onPointerLeave:()=>{e(void 0)}};return"flagship"===a?(0,b.jsxs)(g.Badge,{variant:"kind",...f,children:[(0,b.jsx)(d.Flag,{"aria-hidden":!0}),"flagship"]}):(0,b.jsxs)(g.Badge,{variant:"type",...f,children:[a,void 0!==c&&c>1&&(0,b.jsxs)("span",{className:"text-muted-foreground",children:["×",c]})]})}a.s(["HandoffWiring",0,function({blueprint:a}){let[d,g]=(0,e.useState)(void 0),i=new Map(a.roles.map(a=>[a.name,a.count]));return(0,b.jsxs)("section",{"aria-labelledby":"handoff-wiring","data-testid":"handoff-wiring",className:"flex flex-col gap-2 rounded-lg border border-border p-3",children:[(0,b.jsxs)("div",{className:"flex items-baseline justify-between gap-2",children:[(0,b.jsx)("h2",{id:"handoff-wiring",className:"text-body font-semibold",children:"Hand-offs"}),(0,b.jsxs)("span",{className:"text-meta text-muted-foreground",children:["from blueprint ",a.name," v",a.version]})]}),0===a.handoffs.length?(0,b.jsx)("p",{className:"text-meta text-muted-foreground",children:"No hand-offs. Members only hear from the flagship and from each other by name."}):(0,b.jsx)("ul",{className:"grid grid-cols-[auto_auto_1fr] items-center gap-x-4 text-meta",children:a.handoffs.map(a=>(0,b.jsxs)("li",{"data-testid":"handoff-row",className:(0,f.classNames)("col-span-3 grid grid-cols-subgrid items-center rounded-md px-1.5 py-1",void 0!==d&&(a.role===d||a.to===d)?"bg-muted":void 0),children:[(0,b.jsx)("span",{children:(0,b.jsx)(h,{name:a.role,count:i.get(a.role),onHover:g})}),(0,b.jsxs)("span",{className:"flex items-center gap-1 font-mono text-muted-foreground",children:[a.handoff,(0,b.jsx)(c.ArrowRight,{"aria-label":"goes to",className:"size-(--size-icon-sm)"})]}),(0,b.jsx)("span",{children:(0,b.jsx)(h,{name:a.to,count:i.get(a.to),onHover:g})})]},`${a.role}.${a.handoff}`))})]})}])},513699,a=>{a.v(b=>Promise.all(["server/chunks/ssr/_12ucb96._.js","server/chunks/ssr/packages_console_components_atoms_input_tsx_0ux0uln._.js"].map(b=>a.l(b))).then(()=>b(963149)))},210023,778812,a=>{"use strict";var b=a.i(726112),c=a.i(370025),d=a.i(937927),e=a.i(328422),f=a.i(514499);function g(a){return a.map(({valueId:a,key:b,value:c})=>null===b||null===c?a:`${b}=${c}`).join(" and ")}function h(a){switch(a.kind){case"type":return`any ship of type ${a.type}`;case"meeting":return`every other participant of meeting ${a.meetingId}`;case"label":return`every ship carrying ${g(a.values)}`}}function i(a){let b=String(a.attempts-1);return a.isPushed?`Handed ${b} times, never confirmed; fifth refused: undeliverable.`:`Handed (pulled) ${b} times, never acknowledged; fifth receive refused: undeliverable.`}a.s(["labelSelectionWords",0,g,"recipientGroupWords",0,h],778812);let j="Acknowledged, then its turn died; handed once more, and that turn died too: not handled.";function k(){let a=(0,f.useTRPC)(),b=(0,d.useQueryClient)();return()=>b.invalidateQueries({queryKey:a.fleet.pathKey()})}a.s(["DISMISSED_TOAST",0,{title:"Delivery dismissed",description:"It stays in the timelines as dismissed."},"attentionReason",0,function(a){switch(a.state){case"undeliverable":return i(a);case"notHandled":return null===a.reason?j:`${j} Its crew said: ${a.reason}.`}},"canResend",0,function(a){return!a.message.isPing},"deliveryWithId",0,function(a,b){return a?.find(a=>a.deliveryId===b)},"resentToast",0,function(a){return{title:"Message resent",description:`A new message went to ${function(a){let{recipient:b}=a.message;return"ship"===b.kind?b.ship.name:h(b)}(a)}. The original is dismissed.`}},"undeliverableReason",0,i,"useDismissDelivery",0,function(){let a=(0,f.useTRPC)(),b=k();return(0,c.useMutation)(a.fleet.dismiss.mutationOptions({onSuccess:b}))},"useNeedsAttention",0,function(a={}){let c=(0,f.useTRPC)();return(0,e.pagedListOf)((0,b.useInfiniteQuery)(c.fleet.needsAttention.infiniteQueryOptions({...a,limit:e.CONSOLE_PAGE_SIZE},{getNextPageParam:e.nextCursorOf})))},"useResendDelivery",0,function(){let a=(0,f.useTRPC)(),b=k();return(0,c.useMutation)(a.fleet.resend.mutationOptions({onSuccess:b}))}],210023)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=_00ictfq._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[263359,a=>{"use strict";var b=a.i(164831);let c={name:"app-window",size:24,node:[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]]};c.node;let d=(0,b.default)(c);a.s(["AppWindow",0,d],263359)},582260,a=>{"use strict";var b=a.i(164831);let c={name:"bot",size:24,node:[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]};c.node;let d=(0,b.default)(c);a.s(["Bot",0,d],582260)},442955,a=>{"use strict";var b=a.i(164831);let c={name:"ellipsis",size:24,node:[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],aliases:["more-horizontal"]};c.node;let d=(0,b.default)(c);a.s(["Ellipsis",0,d],442955)},925039,a=>{"use strict";var b=a.i(164831);let c={name:"flag",size:24,node:[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]]};c.node;let d=(0,b.default)(c);a.s(["Flag",0,d],925039)},292175,a=>{"use strict";var b=a.i(164831);let c={name:"octagon-pause",size:24,node:[["path",{d:"M10 15V9",key:"1lckn7"}],["path",{d:"M14 15V9",key:"1muqhk"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}]],aliases:["pause-octagon"]};c.node;let d=(0,b.default)(c);a.s(["OctagonPause",0,d],292175)},134532,a=>{"use strict";var b=a.i(164831);let c={name:"server",size:24,node:[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]};c.node;let d=(0,b.default)(c);a.s(["Server",0,d],134532)},853783,a=>{"use strict";var b=a.i(164831);let c={name:"square-terminal",size:24,node:[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],aliases:["terminal-square"]};c.node;let d=(0,b.default)(c);a.s(["SquareTerminal",0,d],853783)},525212,a=>{"use strict";var b=a.i(164831);let c={name:"unplug",size:24,node:[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]]};c.node;let d=(0,b.default)(c);a.s(["Unplug",0,d],525212)},528339,a=>{"use strict";var b=a.i(164831);let c={name:"user-minus",size:24,node:[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]};c.node;let d=(0,b.default)(c);a.s(["UserMinus",0,d],528339)},373594,a=>{"use strict";var b=a.i(164831);let c={name:"user-plus",size:24,node:[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]};c.node;let d=(0,b.default)(c);a.s(["UserPlus",0,d],373594)},659613,a=>{"use strict";var b=a.i(187924);a.s([],723639),a.i(723639);var c=a.i(436361),d=a.i(712765),e=a.i(29302),f=a.i(283603),g=a.i(749670),h=a.i(791034),i=a.i(973343);let j=a.i(483224).DialogTrigger;var k=a.i(520594),l=a.i(353980);class m extends l.DialogHandle{}a.s(["Backdrop",()=>d.DialogBackdrop,"Close",()=>e.DialogClose,"Description",()=>f.DialogDescription,"Handle",0,m,"Popup",()=>g.DialogPopup,"Portal",()=>h.DialogPortal,"Root",0,function(a){return(0,c.useRenderDialogRoot)("alert-dialog",a)},"Title",()=>i.DialogTitle,"Trigger",0,j,"Viewport",()=>k.DialogViewport,"createHandle",0,function(){return new m}],251529);var n=a.i(251529),n=n,o=a.i(483556),p=a.i(771736);a.s(["AlertDialog",0,function(a){return(0,b.jsx)(n.Root,{"data-slot":"alert-dialog",...a})},"AlertDialogClose",0,function(a){return(0,b.jsx)(n.Close,{"data-slot":"alert-dialog-close",...a})},"AlertDialogContent",0,function({className:a,size:c,children:d,...e}){return(0,b.jsxs)(n.Portal,{children:[(0,b.jsx)(n.Backdrop,{"data-slot":"alert-dialog-overlay",className:p.dialogSurface.overlay}),(0,b.jsx)(n.Popup,{"data-slot":"alert-dialog-content",className:(0,o.classNames)(p.dialogSurface.popup({size:c}),a),...e,children:d})]})},"AlertDialogDescription",0,function({className:a,...c}){return(0,b.jsx)(n.Description,{"data-slot":"alert-dialog-description",className:(0,o.classNames)(p.dialogSurface.description,a),...c})},"AlertDialogFooter",0,function({className:a,...c}){return(0,b.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,o.classNames)(p.dialogSurface.footer,a),...c})},"AlertDialogHeader",0,function({className:a,...c}){return(0,b.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,o.classNames)(p.dialogSurface.header,a),...c})},"AlertDialogTitle",0,function({className:a,...c}){return(0,b.jsx)(n.Title,{"data-slot":"alert-dialog-title",className:(0,o.classNames)(p.dialogSurface.title,a),...c})}],659613)},240108,a=>{"use strict";var b=a.i(187924),c=a.i(263359),d=a.i(582260),e=a.i(164831);let f={name:"cloud",size:24,node:[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]};f.node;let g=(0,e.default)(f),h={name:"laptop",size:24,node:[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]]};h.node;let i=(0,e.default)(h),j={name:"map-pin",size:24,node:[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]};j.node;let k=(0,e.default)(j),l={name:"message-circle",size:24,node:[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]]};l.node;let m=(0,e.default)(l);var n=a.i(134532),o=a.i(853783),p=a.i(525212),q=a.i(483556),r=a.i(506885),s=a.i(629703);let t={DEVICE:i,CLOUD:g,SERVER:n.Server,OTHER:k},u={coding:o.SquareTerminal,chat:m,bot:d.Bot,console:c.AppWindow},v={md:"text-body",sm:"text-meta"};a.s(["LocationTag",0,function({kind:a,description:c=null,harness:d=null,isCompact:e=!1,size:f="md",className:g}){let h=(0,q.classNames)("inline-flex min-w-0 items-center gap-1.5 text-muted-foreground [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",v[f],g);if(null===a)return(0,b.jsxs)("span",{"data-slot":"location-tag",className:h,children:[(0,b.jsx)(p.Unplug,{"aria-hidden":!0}),"No session"]});let i=t[a],j=(0,s.locationKindWord)(a),k=null===c?j:`${j} \xb7 ${c}`;if(null!==d){let a=(0,r.harnessKind)(d),e=void 0===a?void 0:u[a],f=(0,r.harnessWord)(d);return(0,b.jsxs)("span",{"data-slot":"location-tag",className:h,title:null===c?`${f} \xb7 ${j}`:`${f} \xb7 ${j}: ${c}`,children:[void 0===e?null:(0,b.jsx)(e,{"aria-hidden":!0}),(0,b.jsx)("span",{className:"truncate text-foreground",children:f}),(0,b.jsx)("span",{"aria-hidden":!0,children:"·"}),(0,b.jsx)(i,{"aria-hidden":!0}),(0,b.jsx)("span",{className:"truncate",children:j}),null===c?null:(0,b.jsxs)("span",{className:"sr-only",children:[": ",c]})]})}return e?(0,b.jsxs)("span",{"data-slot":"location-tag",className:h,title:k,children:[(0,b.jsx)(i,{"aria-hidden":!0}),(0,b.jsxs)("span",{className:"sr-only",children:[j,": "]}),(0,b.jsx)("span",{className:"truncate text-foreground",children:c??j})]}):(0,b.jsxs)("span",{"data-slot":"location-tag",className:h,children:[(0,b.jsx)(i,{"aria-hidden":!0}),(0,b.jsxs)("span",{className:"truncate",children:[j,null===c?null:(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("span",{"aria-hidden":!0,children:" · "}),(0,b.jsx)("span",{className:"sr-only",children:", "}),(0,b.jsx)("span",{className:"text-foreground",children:c})]})]})]})}],240108)},892717,a=>{"use strict";var b=a.i(187924),c=a.i(438688),d=a.i(167594),e=a.i(292175),f=a.i(483556),g=a.i(872872),h=a.i(845185);let i={working:c.Activity,blocked:e.OctagonPause,idle:d.CirclePause},j={active:"text-tone-active-fg",waiting:"text-tone-waiting-fg",ended:"text-tone-ended-fg"};a.s(["ReportLine",0,function({report:a,now:c,variant:d,isTimeInTitle:e=!1,testId:k}){let l="full"===d,m=(0,f.classNames)("flex min-w-0 items-center gap-1.5",l?"text-body":"text-meta");if(null===a)return(0,b.jsx)("span",{"data-testid":k,"data-state":"none",className:(0,f.classNames)(m,"text-muted-foreground"),children:"No report yet"});let n=i[a.state],o=j[h.REPORT_TONES[a.state]],p=new Date(a.reportedAt);return(0,b.jsxs)("span",{"data-testid":k,"data-state":a.state,title:e?`${(0,h.reportText)(a)} \xb7 ${(0,h.reportedWhen)(p,c)}`:(0,h.reportText)(a),className:m,children:[(0,b.jsx)(n,{"aria-hidden":!0,className:(0,f.classNames)("size-(--size-icon-sm) shrink-0",o)}),(0,b.jsx)("span",{className:(0,f.classNames)("shrink-0 font-medium",o),children:h.REPORT_STATE_WORDS[a.state]}),null===a.note?null:(0,b.jsx)("span",{className:"min-w-0 truncate text-foreground",children:a.note}),e?null:(0,b.jsx)("time",{dateTime:a.reportedAt,title:(0,g.fullDateTime)(p),className:"shrink-0 text-muted-foreground tabular-nums",children:l?`\xb7 ${(0,h.reportedWhen)(p,c)}`:(0,h.reportAge)(p,c)})]})}])},347434,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(934301),e=a.i(946444),f=a.i(912540),g=a.i(831856),h=a.i(659613),i=a.i(771736);function j({memberName:a,replacedText:c,isOpen:d,onOpenChange:e,onConfirm:f}){return(0,b.jsx)(h.AlertDialog,{open:d,onOpenChange:e,children:(0,b.jsxs)(h.AlertDialogContent,{"data-testid":"new-crew-line-confirm",className:i.dialogSurface.phoneSheet,children:[(0,b.jsxs)(h.AlertDialogHeader,{children:[(0,b.jsxs)(h.AlertDialogTitle,{children:["Get a new crew line for ",a,"?"]}),(0,b.jsx)(h.AlertDialogDescription,{children:c??"Its new secret is shown once, with its launch note."})]}),(0,b.jsxs)(h.AlertDialogFooter,{children:[(0,b.jsx)(h.AlertDialogClose,{render:(0,b.jsx)(g.Button,{}),children:"Cancel"}),(0,b.jsx)(g.Button,{variant:"primary","data-testid":"new-crew-line-confirm-submit",onClick:f,children:"Get new crew line"})]})]})})}let k=(0,d.lazyDialog)(()=>a.A(243020).then(a=>a.CrewLineDialog),a=>a.isOpen);function l(a){let d=(0,f.useNewCrewLine)(),[g,h]=(0,c.useState)(!1),[i,l]=(0,c.useState)(!1),[m,n]=(0,c.useState)(void 0),o=()=>{a&&d.mutate({squadronId:a.squadronId,shipId:a.member.shipId})},p=d.data?"shown":d.isError?"error":"issuing";return{isReady:a?.ship!==void 0,start:()=>{a?.ship&&(d.reset(),n((0,e.newCrewLineReplaced)(a.ship)),l(!0))},dialog:a?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(j,{memberName:a.member.name,replacedText:m,isOpen:i,onOpenChange:l,onConfirm:()=>{l(!1),h(!0),o()}}),(0,b.jsx)(k,{memberName:a.member.name,state:p,template:a.template,launchNote:d.data?.launchNote,model:d.data?.model,crewLines:d.data?.crewLines,error:d.error?.message,isOpen:g,onOpenChange:a=>{h(a),a||d.reset()},onConfirm:o})]}):null}}a.s(["GetNewCrewLine",0,function({isPrimary:a=!1,testId:c,...d}){let e=l(d);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(g.Button,{size:"xs",variant:a?"primary":"secondary",disabled:!e.isReady,"data-testid":c,onClick:e.start,children:"Get new crew line"}),e.dialog]})},"NewCrewLineFlow",0,function({of:a,children:b}){return b(l(a))},"useNewCrewLineFlow",0,l],347434)},506885,a=>{"use strict";var b=a.i(872872);let c={"claude-code":{word:"Claude Code",kind:"coding"},codex:{word:"Codex",kind:"coding"},"claude-chat":{word:"Claude chat",kind:"chat"},chatgpt:{word:"ChatGPT",kind:"chat"},grok:{word:"Grok",kind:"chat"},grokbot:{word:"Grokbot",kind:"bot"},console:{word:"Console",kind:"console"}};function d(a){return c[a]?.word??a}a.s(["crewLineHarnessWord",0,function(a){return"chat"===a?"Chat":d(a)},"harnessDetection",0,function(a,c){if(void 0===a.version)return;if(void 0===a.modelsConfirmedAt||null===a.modelsConfirmedAt)return`${a.version} \xb7 no model confirmed`;let d=(0,b.relativeTime)(new Date(a.modelsConfirmedAt),c);return`${a.version} \xb7 models confirmed ${"Just now"===d?"just now":d}`},"harnessKind",0,function(a){return c[a]?.kind},"harnessWord",0,d])},629703,a=>{"use strict";let b={DEVICE:"Device",CLOUD:"Cloud",SERVER:"Server",OTHER:"Other"};a.s(["locationKindWord",0,function(a){return b[a]}])},845185,a=>{"use strict";var b=a.i(872872);let c={working:"Working",blocked:"Blocked",idle:"Idle"};a.s(["REPORT_STATE_WORDS",0,c,"REPORT_TONES",0,{working:"active",blocked:"waiting",idle:"ended"},"reportAge",0,function(a,c){let d=Math.max(0,c.getTime()-a.getTime());return d<6e4?`${String(Math.floor(d/1e3))} s`:d<36e5?`${String(Math.floor(d/6e4))} min`:d<864e5?`${String(Math.floor(d/36e5))} h`:(0,b.relativeTime)(a,c)},"reportDetailsJson",0,function(a){return JSON.stringify(a,null,2)},"reportDetailsLabel",0,function(a){return`JSON \xb7 ${String(a)} bytes`},"reportText",0,function(a){let b=c[a.state];return null===a.note?b:`${b}: ${a.note}`},"reportedWhen",0,function(a,c){let d=(0,b.relativeTime)(a,c);return`reported ${"Just now"===d?"just now":d}`}])},531429,a=>{"use strict";a.s(["OPERATOR_NAME",0,"argo","capitalised",0,function(a){return a.charAt(0).toUpperCase()+a.slice(1)},"counted",0,function(a,b){return`${String(a)} ${1===a?b.one:b.many}`},"ship",0,function(a){return{kind:"ship",party:a}},"text",0,function(a){return{kind:"text",text:a}}])},946444,a=>{"use strict";var b=a.i(531429);let c={one:"delivery",many:"deliveries"};function d(a){if(0===a)return"Nothing is in flight, so no delivery moves.";let c=1===a?"returns":"return";return`${(0,b.counted)(a,{one:"in-flight delivery",many:"in-flight deliveries"})} ${c} to pending. Nothing is lost.`}a.s(["abandonedLine",0,function(a){return`${(0,b.counted)(a,c)} will be abandoned`},"inFlightLine",0,d,"isTypedMatch",0,function(a,b){return b===a},"newCrewLineReplaced",0,function(a){if("crewed"===a.status){let b=null===a.location?"the session crewing it":`the session on ${a.location.description??a.location.kind.toLowerCase()}`;return`This ends ${b}. ${d(a.inFlightDeliveries)}`}if(null!==a.startingPrompt&&!a.startingPrompt.isClaimed)return"The crew line issued earlier, not claimed yet, stops working."},"retireButtonLabel",0,function(a){return 0===a?"Retire ship":`Retire and abandon ${(0,b.counted)(a,c)}`}])},499929,a=>{"use strict";var b=a.i(447582),c=a.i(442871),d=a.i(726112),e=a.i(749651),f=a.i(433217),g=a.i(190146),h=a.i(328422),i=a.i(514499);a.s(["useMessage",0,function(a){let b=(0,i.useTRPC)();return(0,f.useQuery)(b.fleet.message.queryOptions(void 0===a?c.skipToken:{messageId:a}))},"useMessageDeliveries",0,function(a){let b=(0,i.useTRPC)();return(0,h.pagedListOf)((0,d.useInfiniteQuery)(b.fleet.messageDeliveries.infiniteQueryOptions(void 0===a?c.skipToken:{messageId:a,limit:h.CONSOLE_PAGE_SIZE},{getNextPageParam:h.nextCursorOf})))},"useShip",0,function(a){let d=(0,i.useTRPC)();return(0,f.useQuery)(d.fleet.ship.queryOptions(void 0===a?c.skipToken:{shipId:a},{refetchInterval:g.LAST_SEEN_REFRESH_MS,select:a=>(0,b.isInReadReach)(a)?a:null}))},"useShipMessages",0,function(a){let b=(0,i.useTRPC)();return(0,h.pagedListOf)((0,d.useInfiniteQuery)(b.fleet.shipMessages.infiniteQueryOptions({shipId:a,limit:h.CONSOLE_PAGE_SIZE},{getNextPageParam:h.nextCursorOf})))},"useShipTimeline",0,function(a){let b=(0,i.useTRPC)();return(0,h.pagedListOf)((0,d.useInfiniteQuery)(b.fleet.shipTimeline.infiniteQueryOptions({shipId:a,limit:h.CONSOLE_PAGE_SIZE},{getNextPageParam:h.nextCursorOf})))},"useShipWay",0,function(a){let b=(0,i.useTRPC)();return(0,f.useQuery)(b.fleet.shipWay.queryOptions({shipId:a},{refetchInterval:g.LAST_SEEN_REFRESH_MS}))},"useShips",0,function(a){let c=(0,i.useTRPC)(),d=(0,e.useQueries)({queries:a.map(a=>c.fleet.ship.queryOptions({shipId:a},{refetchInterval:g.LAST_SEEN_REFRESH_MS}))}),f=new Map;for(let a of d)a.data&&(0,b.isInReadReach)(a.data)&&f.set(a.data.id,a.data);return f}])}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=_0vlg8_g._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[289481,a=>{"use strict";var b=a.i(426476),c=a.i(187828),d=a.i(854401),e=a.i(30116),f=a.i(357738),g=a.i(300557),h=a.i(77260);a.s(["useLabel",0,function(a={}){let i,{id:j,fallbackControlId:k,native:l=!1,setLabelId:m,focusControl:n}=a,{controlId:o,setLabelId:p}=(0,h.useLabelableContext)(),q=(0,d.useStableCallback)(a=>{p(a),m?.(a)}),r=(i=(0,g.useBaseUiId)(j),(0,f.useIsoLayoutEffect)(()=>(q(i),()=>{q(a=>a===i?void 0:a)}),[i,q]),i),s=o??k;function t(a){let d=(0,e.getTarget)(a.nativeEvent);d?.closest("button,input,select,textarea")||(!a.defaultPrevented&&a.detail>1&&a.preventDefault(),l||function(a){if(n)return n(a,s);if(!s)return;let d=(0,c.ownerDocument)(a.currentTarget).getElementById(s);(0,b.isHTMLElement)(d)&&d.focus({focusVisible:!0})}(a))}return l?{id:r,htmlFor:s,onMouseDown:t}:{id:r,onClick:t,onPointerDown(a){a.preventDefault()}}}],289481)},373370,a=>{"use strict";var b=a.i(164831);let c={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"]};c.node;let d=(0,b.default)(c);a.s(["CircleX",0,d],373370)},585650,a=>{"use strict";var b=a.i(164831);let c={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};c.node;let d=(0,b.default)(c);a.s(["Copy",0,d],585650)},584980,a=>{"use strict";var b=a.i(187924),c=a.i(853783),d=a.i(483556),e=a.i(582314);a.s(["CodeBlock",0,function({label:a,code:f,isWrapped:g=!1,copyValue:h,copyLabel:i=`Copy ${a.toLowerCase()}`,onCopied:j,onCopyFailed:k,codeTestId:l,copyTestId:m}){return(0,b.jsxs)("div",{"data-slot":"code-block",className:"overflow-hidden rounded-lg border border-border bg-muted",children:[(0,b.jsxs)("div",{className:"flex h-9 items-center justify-between gap-2 border-b border-border pr-1.5 pl-3",children:[(0,b.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5 text-caption text-muted-foreground",children:[(0,b.jsx)(c.SquareTerminal,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0"}),(0,b.jsx)("span",{className:"truncate",children:a})]}),(0,b.jsx)(e.CopyButton,{value:h??f,label:i,isLabeled:!0,onCopied:j,onCopyFailed:k,"data-testid":m})]}),(0,b.jsx)("pre",{"data-testid":l,className:(0,d.classNames)("overflow-x-auto px-3 py-3 font-mono text-code text-foreground",g?"break-all whitespace-pre-wrap":"whitespace-pre"),children:f})]})}])},582314,a=>{"use strict";var b=a.i(187924),c=a.i(752562),d=a.i(585650),e=a.i(572131),f=a.i(831856);a.s(["CopyButton",0,function({value:a,label:g,size:h="xs",isLabeled:i=!1,onCopied:j,onCopyFailed:k,className:l,"data-testid":m}){let[n,o]=(0,e.useState)(!1);async function p(){try{await navigator.clipboard.writeText(a)}catch{k?.();return}o(!0),j?.(),setTimeout(()=>{o(!1)},1500)}return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(f.Button,{variant:"ghost",size:h,isIconOnly:!i,"aria-label":g,title:i?void 0:g,icon:n?(0,b.jsx)(c.Check,{"aria-hidden":!0}):(0,b.jsx)(d.Copy,{"aria-hidden":!0}),className:l,"data-testid":m,onClick:()=>{p()},children:i?n?"Copied":"Copy":null}),(0,b.jsx)("span",{role:"status",className:"sr-only",children:n?"Copied.":""})]})}])},145098,a=>{"use strict";var b=a.i(187924),c=a.i(483556);a.s(["Label",0,function({className:a,htmlFor:d,...e}){return(0,b.jsx)("label",{"data-slot":"label",htmlFor:d,className:(0,c.classNames)("text-body font-medium text-foreground select-none",a),...e})}])},488647,a=>{"use strict";var b=a.i(187924),c=a.i(506885),d=a.i(584980);a.s(["CrewLines",0,function({crewLines:a,subject:e,testIdPrefix:f,onCopied:g,onCopyFailed:h}){return a.map(({harness:a,line:i})=>(0,b.jsx)(d.CodeBlock,{label:`Crew line, ${(0,c.harnessWord)(a)} with the Aeolus Fleet plugin`,code:i,isWrapped:!0,copyLabel:`Copy the ${(0,c.harnessWord)(a)} crew line for ${e}`,codeTestId:`${f}-${a}`,copyTestId:`${f}-${a}-copy`,onCopied:g,onCopyFailed:h},a))}])},468527,a=>{"use strict";var b=a.i(187924),c=a.i(793817),d=a.i(597024),e=a.i(373370),f=a.i(752357),g=a.i(572131),h=a.i(301851),i=a.i(831856),j=a.i(483556),k=a.i(132865),l=a.i(771736),m=a.i(918691),n=a.i(584980),o=a.i(675297),p=a.i(145098),q=a.i(488647),r=a.i(240392);function s({takenNames:a,onNameChange:c,isPending:f,error:l,onSubmit:n}){let{shipHandleMaxLength:q}=(0,h.useConsoleConstants)(),t=(0,g.useId)(),u=(0,g.useId)(),[v,w]=(0,g.useState)(""),x=(0,m.checkShipName)(v,{activeNames:a}),y="invalid"===x.kind||"reserved"===x.kind||"taken"===x.kind,z="available"===x.kind;return(0,b.jsxs)("form",{noValidate:!0,className:"contents",onSubmit:a=>{a.preventDefault(),z&&n(v)},children:[(0,b.jsxs)(k.DialogHeader,{children:[(0,b.jsx)(k.DialogTitle,{children:"Join a machine"}),(0,b.jsx)(k.DialogDescription,{children:"The trierarch plugin commissions a trierarch ship of this name. You then run its setup line on the machine, and the trierarch there starts sessions for the crew requests it is given."})]}),(0,b.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,b.jsxs)("div",{className:"flex items-baseline justify-between",children:[(0,b.jsx)(p.Label,{htmlFor:t,children:"Name"}),(0,b.jsxs)("span",{className:"text-caption text-muted-foreground tabular-nums",children:[v.length," / ",q]})]}),(0,b.jsxs)("div",{className:"relative",children:[(0,b.jsx)(o.Input,{id:t,isMono:!0,autoComplete:"off",autoCapitalize:"off",spellCheck:!1,placeholder:"trierarch-mac","data-testid":"join-machine-name","aria-invalid":!!y||void 0,"aria-describedby":u,className:"pr-9 max-sm:h-(--size-control-touch) max-sm:text-input-touch",value:v,onChange:a=>{w((0,m.asHandle)(a.target.value)),c?.((0,m.asHandle)(a.target.value))}}),"available"===x.kind?(0,b.jsx)(d.CircleCheck,{"aria-hidden":!0,className:"absolute top-1/2 right-3 size-(--size-icon) -translate-y-1/2 text-tone-ok-fg"}):y?(0,b.jsx)(e.CircleX,{"aria-hidden":!0,className:"absolute top-1/2 right-3 size-(--size-icon) -translate-y-1/2 text-destructive-text"}):null]}),(0,b.jsx)("p",{id:u,"aria-live":"polite",className:(0,j.classNames)("text-meta",y?"text-destructive-text":"text-muted-foreground"),children:x.message})]}),void 0===l?null:(0,b.jsx)(r.InlineError,{title:"Couldn’t join the machine",description:`${l} Nothing changed.`}),(0,b.jsxs)(k.DialogFooter,{children:[(0,b.jsx)(k.DialogClose,{render:(0,b.jsx)(i.Button,{type:"button",disabled:f}),children:"Cancel"}),(0,b.jsx)(i.Button,{type:"submit",variant:"primary",isLoading:f,disabled:!z,"data-testid":"join-machine-submit",children:f?"Joining":"Join machine"})]})]})}function t({joined:a}){let[d,e]=(0,g.useState)(!1),h=()=>{e(!1)},j=()=>{e(!0)};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(k.DialogHeader,{children:[(0,b.jsxs)(k.DialogTitle,{children:[a.name," joined"]}),(0,b.jsxs)(k.DialogDescription,{children:["Run the setup line on the machine. It installs the trierarch, which then crews ",a.name," and reports what the machine offers."]})]}),(0,b.jsxs)("p",{className:"flex gap-2 rounded-lg border border-border bg-muted px-3 py-2 text-meta text-foreground",children:[(0,b.jsx)(f.Info,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon-sm) shrink-0 text-muted-foreground"}),(0,b.jsxs)("span",{children:[(0,b.jsx)("span",{className:"font-medium",children:"Shown once. Copy it now."})," It carries the ship’s secret. If you lose it, get a new starting prompt on ",a.name,"’s ship page."]})]}),(0,b.jsx)(n.CodeBlock,{label:"Setup line",code:a.setupLine,isWrapped:!0,copyLabel:`Copy the setup line for ${a.name}`,codeTestId:"join-machine-setup-line",copyTestId:"join-machine-setup-line-copy",onCopied:h,onCopyFailed:j}),(0,b.jsx)(n.CodeBlock,{label:`Starting prompt for ${a.name}`,code:a.prompt,isWrapped:!0,copyLabel:`Copy the starting prompt for ${a.name}`,codeTestId:"join-machine-prompt",onCopied:h,onCopyFailed:j}),(0,b.jsx)(q.CrewLines,{crewLines:a.crewLines,subject:a.name,testIdPrefix:"join-machine-crew-line",onCopied:h,onCopyFailed:j}),(0,b.jsx)("p",{role:"status",className:"flex items-center gap-1.5 text-meta text-destructive-text empty:hidden",children:d?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(c.CircleAlert,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0"}),"Could not copy: select the text and copy it by hand."]}):null}),(0,b.jsx)(k.DialogFooter,{children:(0,b.jsx)(k.DialogClose,{render:(0,b.jsx)(i.Button,{variant:"primary"}),children:"Done"})})]})}a.s(["JoinMachineDialog",0,function(a){let{isOpen:c,onOpenChange:d,isPending:e,joined:f}=a;return(0,b.jsx)(k.Dialog,{open:c,onOpenChange:a=>{e||d(a)},children:(0,b.jsx)(k.DialogContent,{size:"md","data-testid":"join-machine-dialog",className:l.dialogSurface.phoneFullScreen,children:void 0===f?(0,b.jsx)(s,{...a}):(0,b.jsx)(t,{joined:f})})})}])},531429,a=>{"use strict";a.s(["OPERATOR_NAME",0,"argo","capitalised",0,function(a){return a.charAt(0).toUpperCase()+a.slice(1)},"counted",0,function(a,b){return`${String(a)} ${1===a?b.one:b.many}`},"ship",0,function(a){return{kind:"ship",party:a}},"text",0,function(a){return{kind:"text",text:a}}])},918691,a=>{"use strict";var b=a.i(686257),c=a.i(531429);let d=`Lowercase letters, digits, hyphens and colons, up to ${String(b.SHIP_HANDLE_MAX_LENGTH)} characters, unique among active ships.`;a.s(["asHandle",0,function(a){return a.toLowerCase()},"checkShipName",0,function(a,e){return""===a?{kind:"empty",message:d}:(0,b.isShipHandle)(a)?a===c.OPERATOR_NAME?{kind:"reserved",message:`${c.OPERATOR_NAME} is reserved for the operator ship.`}:a===e.current?{kind:"unchanged",message:"That is its name now."}:e.activeNames.includes(a)?{kind:"taken",message:`${a} is already used by an active ship.`}:{kind:"available",message:`${a} is available.`}:{kind:"invalid",message:`Use 1 to ${String(b.SHIP_HANDLE_MAX_LENGTH)} lowercase letters, digits, hyphens or colons.`}},"typeHint",0,function(a,b){let c=a.trim();return""===c||void 0===b?"Free text. Pick a type in use or write a new one.":0===b?`No ship uses this type yet. ${c} becomes a new type.`:1===b?"1 ship uses this type.":`${String(b)} ships use this type.`}])}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=_1-ujs2g._.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,395530,e=>{"use strict";var t=e.i(271645),a=e.i(828918),n=e.i(838452),s=e.i(673553);e.s(["useCompositeItem",0,function(e={}){let{highlightItemOnHover:i,highlightedIndex:r,onHighlightedIndexChange:l}=(0,n.useCompositeRootContext)(),{ref:d,index:o}=(0,s.useCompositeListItem)(e),c=r===o,u=t.useRef(null),h=(0,a.useMergedRefs)(d,u);return{compositeProps:{tabIndex:c?0:-1,onFocus(){l(o)},onMouseMove(){let e=u.current;if(!i||!e)return;let t=e.hasAttribute("disabled")||"true"===e.ariaDisabled;c||t||e.focus()}},compositeRef:h,index:o}}])},749655,987255,975153,106501,365668,450092,536604,e=>{"use strict";var t=e.i(456420);let a={name:"alarm-clock",size:24,node:[["circle",{cx:"12",cy:"13",r:"8",key:"3y4lt7"}],["path",{d:"M12 9v4l2 2",key:"1c63tq"}],["path",{d:"M5 3 2 6",key:"18tl5t"}],["path",{d:"m22 6-3-3",key:"1opdir"}],["path",{d:"M6.38 18.7 4 21",key:"17xu3x"}],["path",{d:"M17.64 18.67 20 21",key:"kv2oe2"}]]};a.node;let n=(0,t.default)(a);e.s(["AlarmClock",0,n],749655);let s={name:"anchor",size:24,node:[["path",{d:"M12 6v16",key:"nqf5sj"}],["path",{d:"m19 13 2-1a9 9 0 0 1-18 0l2 1",key:"y7qv08"}],["path",{d:"M9 11h6",key:"1fldmi"}],["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}]]};s.node;let i=(0,t.default)(s);e.s(["Anchor",0,i],987255);let r={name:"calendar-check",size:24,node:[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]]};r.node;let l=(0,t.default)(r);e.s(["CalendarCheck",0,l],975153);let d={name:"calendar-clock",size:24,node:[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v3",key:"otl347"}],["path",{d:"M21 7.338V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h2.338",key:"7hb8p4"}],["path",{d:"M3 9h5.859",key:"numkqi"}],["path",{d:"M8 2v3",key:"1ioesn"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]]};d.node;let o=(0,t.default)(d);e.s(["CalendarClock",0,o],106501);let c={name:"calendar-x",size:24,node:[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"m14 13-4 4",key:"1gib57"}],["path",{d:"m10 13 4 4",key:"153uiq"}]]};c.node;let u=(0,t.default)(c);e.s(["CalendarX",0,u],365668);let h={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"]};h.node;let m=(0,t.default)(h);e.s(["CircleArrowRight",0,m],450092);let p={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"]};p.node;let g=(0,t.default)(p);e.s(["CircleCheckBig",0,g],536604)},437750,e=>{"use strict";var t=e.i(456420);let a={name:"app-window",size:24,node:[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]]};a.node;let n=(0,t.default)(a);e.s(["AppWindow",0,n],437750)},876561,e=>{"use strict";var t=e.i(456420);let a={name:"archive",size:24,node:[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]};a.node;let n=(0,t.default)(a);e.s(["Archive",0,n],876561)},847211,e=>{"use strict";var t=e.i(456420);let a={name:"ban",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]]};a.node;let n=(0,t.default)(a);e.s(["Ban",0,n],847211)},271567,e=>{"use strict";var t=e.i(456420);let a={name:"bot",size:24,node:[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]};a.node;let n=(0,t.default)(a);e.s(["Bot",0,n],271567)},792150,e=>{"use strict";var t=e.i(456420);let a={name:"boxes",size:24,node:[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]};a.node;let n=(0,t.default)(a);e.s(["Boxes",0,n],792150)},24071,e=>{"use strict";var t=e.i(456420);let a={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};a.node;let n=(0,t.default)(a);e.s(["ChevronLeft",0,n],24071)},867927,e=>{"use strict";var t=e.i(456420);let a={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};a.node;let n=(0,t.default)(a);e.s(["ChevronRight",0,n],867927)},152886,e=>{"use strict";var t=e.i(456420);let a={name:"circle-dashed",size:24,node:[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]};a.node;let n=(0,t.default)(a);e.s(["CircleDashed",0,n],152886)},119002,e=>{"use strict";var t=e.i(456420);let a={name:"circle-pause",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]],aliases:["pause-circle"]};a.node;let n=(0,t.default)(a);e.s(["CirclePause",0,n],119002)},832297,426391,519647,710001,25799,e=>{"use strict";var t=e.i(456420);let a={name:"circle-play",size:24,node:[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],aliases:["play-circle"]};a.node;let n=(0,t.default)(a);e.s(["CirclePlay",0,n],832297);let s={name:"circle-dot-dashed",size:24,node:[["path",{d:"M10.1 2.18a9.93 9.93 0 0 1 3.8 0",key:"1qdqn0"}],["path",{d:"M17.6 3.71a9.95 9.95 0 0 1 2.69 2.7",key:"1bq7p6"}],["path",{d:"M21.82 10.1a9.93 9.93 0 0 1 0 3.8",key:"1rlaqf"}],["path",{d:"M20.29 17.6a9.95 9.95 0 0 1-2.7 2.69",key:"1xk03u"}],["path",{d:"M13.9 21.82a9.94 9.94 0 0 1-3.8 0",key:"l7re25"}],["path",{d:"M6.4 20.29a9.95 9.95 0 0 1-2.69-2.7",key:"1v18p6"}],["path",{d:"M2.18 13.9a9.93 9.93 0 0 1 0-3.8",key:"xdo6bj"}],["path",{d:"M3.71 6.4a9.95 9.95 0 0 1 2.7-2.69",key:"1jjmaz"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]};s.node;let i=(0,t.default)(s);e.s(["CircleDotDashed",0,i],426391);let r={name:"circle-minus",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]],aliases:["minus-circle"]};r.node;let l=(0,t.default)(r);e.s(["CircleMinus",0,l],519647);let d={name:"flag-off",size:24,node:[["path",{d:"M16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1q158e"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M4 22V4",key:"1plyxx"}],["path",{d:"M7.656 2H8c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10.347",key:"xj1b71"}]]};d.node;let o=(0,t.default)(d);e.s(["FlagOff",0,o],710001);let c={name:"mail-check",size:24,node:[["path",{d:"M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8",key:"12jkf8"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"m16 19 2 2 4-4",key:"1b14m6"}]]};c.node;let u=(0,t.default)(c);e.s(["MailCheck",0,u],25799)},275043,446513,e=>{"use strict";var t=e.i(456420);let a={name:"circle-question-mark",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["help-circle","circle-help"]};a.node;let n=(0,t.default)(a);e.s(["default",0,n],275043);let s={name:"monitor",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]};s.node;let i=(0,t.default)(s);e.s(["Monitor",0,i],446513)},821048,e=>{"use strict";var t=e.i(456420);let a={name:"circle-slash",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]]};a.node;let n=(0,t.default)(a);e.s(["CircleSlash",0,n],821048)},316984,e=>{"use strict";var t=e.i(456420);let a={name:"circle-x",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-circle"]};a.node;let n=(0,t.default)(a);e.s(["CircleX",0,n],316984)},474544,e=>{"use strict";var t=e.i(456420);let a={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};a.node;let n=(0,t.default)(a);e.s(["Clock",0,n],474544)},671028,e=>{"use strict";var t=e.i(456420);let a={name:"gauge",size:24,node:[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]};a.node;let n=(0,t.default)(a);e.s(["Gauge",0,n],671028)},981658,e=>{"use strict";var t=e.i(456420);let a={name:"hourglass",size:24,node:[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]]};a.node;let n=(0,t.default)(a);e.s(["Hourglass",0,n],981658)},985512,e=>{"use strict";var t=e.i(456420);let a={name:"octagon-alert",size:24,node:[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]],aliases:["alert-octagon"]};a.node;let n=(0,t.default)(a);e.s(["OctagonAlert",0,n],985512)},911147,e=>{"use strict";var t=e.i(456420);let a={name:"octagon-pause",size:24,node:[["path",{d:"M10 15V9",key:"1lckn7"}],["path",{d:"M14 15V9",key:"1muqhk"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}]],aliases:["pause-octagon"]};a.node;let n=(0,t.default)(a);e.s(["OctagonPause",0,n],911147)},457665,e=>{"use strict";var t=e.i(456420);let a={name:"power",size:24,node:[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]};a.node;let n=(0,t.default)(a);e.s(["Power",0,n],457665)},395925,485627,e=>{"use strict";var t=e.i(456420);let a={name:"rotate-ccw",size:24,node:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]};a.node;let n=(0,t.default)(a);e.s(["RotateCcw",0,n],395925);let s={name:"sailboat",size:24,node:[["path",{d:"M10 2v15",key:"1qf71f"}],["path",{d:"M7 22a4 4 0 0 1-4-4 1 1 0 0 1 1-1h16a1 1 0 0 1 1 1 4 4 0 0 1-4 4z",key:"1pxcvx"}],["path",{d:"M9.159 2.46a1 1 0 0 1 1.521-.193l9.977 8.98A1 1 0 0 1 20 13H4a1 1 0 0 1-.824-1.567z",key:"5oog16"}]]};s.node;let i=(0,t.default)(s);e.s(["Sailboat",0,i],485627)},566595,e=>{"use strict";var t=e.i(456420);let a={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};a.node;let n=(0,t.default)(a);e.s(["Search",0,n],566595)},841220,e=>{"use strict";var t=e.i(456420);let a={name:"server",size:24,node:[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]};a.node;let n=(0,t.default)(a);e.s(["Server",0,n],841220)},819759,e=>{"use strict";var t=e.i(456420);let a={name:"square-pen",size:24,node:[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],aliases:["pen-box","edit","pen-square"]};a.node;let n=(0,t.default)(a);e.s(["SquarePen",0,n],819759)},383035,e=>{"use strict";var t=e.i(456420);let a={name:"square-terminal",size:24,node:[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],aliases:["terminal-square"]};a.node;let n=(0,t.default)(a);e.s(["SquareTerminal",0,n],383035)},466787,e=>{"use strict";var t=e.i(456420);let a={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};a.node;let n=(0,t.default)(a);e.s(["TriangleAlert",0,n],466787)},837817,e=>{"use strict";var t=e.i(456420);let a={name:"undo-2",size:24,node:[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]};a.node;let n=(0,t.default)(a);e.s(["Undo2",0,n],837817)},594831,e=>{"use strict";var t=e.i(456420);let a={name:"unplug",size:24,node:[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]]};a.node;let n=(0,t.default)(a);e.s(["Unplug",0,n],594831)},892870,e=>{"use strict";var t=e.i(456420);let a={name:"user-check",size:24,node:[["path",{d:"m16 11 2 2 4-4",key:"9rsbq5"}],["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]};a.node;let n=(0,t.default)(a);e.s(["UserCheck",0,n],892870)},298260,e=>{"use strict";var t=e.i(843476),a=e.i(965324);e.s(["Kbd",0,function({className:e,...n}){return(0,t.jsx)("kbd",{"data-slot":"kbd",className:(0,a.classNames)("inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-xs border border-border bg-muted px-1.25 font-sans text-micro font-medium text-muted-foreground max-sm:hidden",e),...n})}])},638919,e=>{"use strict";var t=e.i(843476),a=e.i(353753),n=e.i(225913),s=e.i(560964),i=e.i(965324),r=e.i(574296);let l=(0,n.cva)("fixed z-50 flex flex-col bg-popover text-body text-popover-foreground shadow-lg outline-none duration-(--duration-slow) ease-(--ease-standard) data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",{variants:{side:{right:"inset-y-0 right-0 h-full w-full border-l border-border sm:max-w-(--size-sheet) motion-safe:data-open:slide-in-from-right motion-safe:data-closed:slide-out-to-right",bottom:"inset-x-0 bottom-0 max-h-[90dvh] rounded-t-2xl border-t border-border px-4 pt-2 pb-[max(calc(var(--spacing)*4),env(safe-area-inset-bottom))] motion-safe:data-open:slide-in-from-bottom motion-safe:data-closed:slide-out-to-bottom"}},defaultVariants:{side:"right"}});e.s(["Sheet",0,function(e){return(0,t.jsx)(a.Dialog.Root,{"data-slot":"sheet",...e})},"SheetBody",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"sheet-body",className:(0,i.classNames)("min-h-0 flex-1 overflow-y-auto in-data-[side=right]:p-6",e),...a})},"SheetClose",0,function(e){return(0,t.jsx)(a.Dialog.Close,{"data-slot":"sheet-close",...e})},"SheetContent",0,function({className:e,children:n,side:d="right",...o}){return(0,t.jsxs)(a.Dialog.Portal,{children:[(0,t.jsx)(a.Dialog.Backdrop,{"data-slot":"sheet-overlay",className:"fixed inset-0 z-50 bg-overlay duration-(--duration-slow) data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0"}),(0,t.jsxs)(a.Dialog.Popup,{"data-slot":"sheet-content","data-side":d,className:(0,i.classNames)(l({side:d}),e),...o,children:["bottom"===d?(0,t.jsx)("div",{"aria-hidden":!0,className:"mx-auto mb-3 h-1 w-9 shrink-0 rounded-full bg-border"}):(0,t.jsx)(a.Dialog.Close,{"data-slot":"sheet-close",render:(0,t.jsx)(r.Button,{variant:"ghost",size:"sm",isIconOnly:!0,className:"absolute top-4 right-4","aria-label":"Close"}),children:(0,t.jsx)(s.XIcon,{})}),n]})]})},"SheetDescription",0,function({className:e,...n}){return(0,t.jsx)(a.Dialog.Description,{"data-slot":"sheet-description",className:(0,i.classNames)("text-meta text-muted-foreground",e),...n})},"SheetFooter",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"sheet-footer",className:(0,i.classNames)("flex flex-col-reverse gap-2 pt-3 in-data-[side=right]:flex-row in-data-[side=right]:justify-end in-data-[side=right]:border-t in-data-[side=right]:px-6 in-data-[side=right]:py-4",e),...a})},"SheetHeader",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"sheet-header",className:(0,i.classNames)("flex flex-col gap-0.5 in-data-[side=right]:border-b in-data-[side=right]:px-6 in-data-[side=right]:py-5 in-data-[side=right]:pr-14",e),...a})},"SheetTitle",0,function({className:e,...n}){return(0,t.jsx)(a.Dialog.Title,{"data-slot":"sheet-title",className:(0,i.classNames)("text-heading font-semibold text-foreground in-data-[side=bottom]:py-2 in-data-[side=bottom]:text-section",e),...n})},"SheetTrigger",0,function(e){return(0,t.jsx)(a.Dialog.Trigger,{"data-slot":"sheet-trigger",...e})}])},419413,e=>{"use strict";e.s(["PAGE_SIZE_MAX",0,500])},500901,e=>{"use strict";let t=new TextEncoder;e.s(["PAYLOAD_MAX_BYTES",0,65536,"payloadBytes",0,function(e){return t.encode(e).byteLength}])},347664,173332,985939,606811,998648,e=>{"use strict";var t=e.i(681307);let a=t.z.enum(["messages:send","messages:receive","messages:force","messages:resend","fleet:read","fleet:commission","fleet:manage","crew:assign","crew:run","labels:define","labels:assign","fleet:network","fleet:on-behalf","fleet:person","fleet:owner","fleet:explain","fleet:connect","labels:any","fleet:verify","scopes:declare","scopes:grant","scopes:define","meetings:open"]),n=["messages","fleet","crew","labels","scopes","meetings"],s="[a-z][a-z0-9-]{0,31}";RegExp(`^${s}$`);let i=RegExp(`^${s}:${s}$`),r=t.z.string().regex(i,"A scope is <namespace>:<action>").refine(e=>{var t;return t=e.slice(0,e.indexOf(":")),!n.some(e=>e===t)||a.safeParse(e).success},"No such core scope");t.z.enum(["messages:resend","fleet:read","fleet:commission","fleet:manage","crew:assign","crew:run","labels:define","labels:assign","fleet:network","fleet:on-behalf","fleet:person","fleet:owner","fleet:explain","fleet:connect","labels:any","fleet:verify","meetings:open"]);let l=t.z.enum(["operator","agent","viewer","person","app","plugin"]),d=t.z.enum(["agent","person","app","plugin"]),o=t.z.enum(["DEVICE","CLOUD","SERVER","OTHER"]),c=t.z.enum(["awaitingCrew","crewed","retired"]);t.z.enum(["ship","type","meeting","label"]);let u=t.z.enum(["pending","received","handed","acknowledged","handled","notHandled","undeliverable","dismissed","abandoned"]),h=t.z.enum(["FleetInitialised","ShipCommissioned","OwnerSet","OwnerChanged","ShipClaimed","LeaseRevoked","CredentialRevoked","StartingPromptIssued","OperatorPasswordReset","OperatorLoginSet","MessageAccepted","LeasePushed","DeliveryReceived","DeliveryHanded","DeliveryAcknowledged","DeliveryHandled","DeliveryNotHandled","DeliveryOverdue","DeliveryUndeliverable","DeliveryReturned","ShipRetired","DeliveryAbandoned","DeliveryDismissed","ShipRenamed","ShipReported","StatementSet","TurnReported","SignInTicketIssued","FleetLimitsChanged","ViewerSessionStarted","CrewRequested","CrewRequestRemoved","CrewAssigned","CrewStatusChanged","CrewRequestExplained","CrewRequestGivenBack","LabelDefined","LabelValuesChanged","LabelRetired","LabelAssigned","LabelUnassigned","LabelDeleted","WorktreeClearRequested","WorktreeCleared","WorktreeClearRemoved","NetworkRulesSet","NetworkRulesDeclared","NetworkRulesDraftSaved","NetworkRulesDraftDiscarded","NetworkPluginRegistered","NetworkPluginUnregistered","BuiltInRuleChanged","ScopesDeclared","ScopesChanged","ScopeDefined","ScopeDescribed","ScopeRemoved","PluginConnected","PluginDisconnected","VerifiedFactsSet","VerifiedFactsRemoved","MeetingOpened","ParticipantAdded","MicRequested","MicRequestWithdrawn","MicGiven","MicReleased","MicTaken","MicPatternSet","ParticipantLeft","ParticipantRejoined","ParticipantRevoked","OwnershipTransferred","ModeratorNamed","MeetingEnded","ScheduleCreated","ScheduleCancelled","ScheduledSendRefused","ScheduledSendMissed","SchedulePaused","ScheduleResumed","ScheduleEnded","HistoryPruned"]);e.s(["commissionedShipKindSchema",0,d,"deliveryStateSchema",0,u,"eventTypeSchema",0,h,"locationKindSchema",0,o,"scopeNameSchema",0,r,"shipKindSchema",0,l,"shipStatusSchema",0,c],173332);var m=e.i(383615);let p=t.z.string().min(1).max(128).brand();t.z.object({iss:t.z.string(),aud:(0,m.idSchema)("fleet"),sub:p,org:t.z.string().min(1),scope:t.z.string(),group:t.z.array(t.z.string()),person_ship:(0,m.idSchema)("ship").optional(),argo:t.z.boolean().optional(),iat:t.z.number(),exp:t.z.number()}).transform((e,a)=>{let n=e.scope.split(" ").filter(e=>""!==e),s=t.z.array(r).safeParse(n);return s.success?{issuer:e.iss,fleetId:e.aud,accountId:e.sub,organisationId:e.org,scopes:s.data,groupValues:e.group,personShipId:e.person_ship??null,isArgoAllowed:e.argo??!1,issuedAt:new Date(1e3*e.iat),endsAt:new Date(1e3*e.exp)}:(a.addIssue({code:"custom",message:"scope holds a malformed or unknown scope",path:["scope"]}),t.z.NEVER)}),e.s(["accountIdSchema",0,p],347664),new TextEncoder;let g=t.z.record(t.z.string(),t.z.json()),f=["crewing","running","restarting","crashed","releasing"],y=t.z.enum(f),x=["none","needsCrew","crewedByHand",...f],b=t.z.enum(x),k=`A reason is one line of at most ${String(200)} characters`;t.z.object({shipId:(0,m.idSchema)("ship"),settings:g}),t.z.object({settingsVersion:t.z.int().min(1)}),t.z.object({shipId:(0,m.idSchema)("ship")}),t.z.strictObject({});let v=t.z.object({settingsVersion:t.z.int().min(1),requestedAt:t.z.iso.datetime(),assignedTo:t.z.object({id:(0,m.idSchema)("ship"),name:t.z.string()}).nullable(),status:y.nullable(),reason:t.z.string().nullable(),crewedBy:t.z.object({id:(0,m.idSchema)("ship"),name:t.z.string()}).nullable(),attempt:t.z.int().min(0),startedAt:t.z.iso.datetime().nullable(),givenBack:t.z.array(t.z.object({trierarch:t.z.object({id:(0,m.idSchema)("ship"),name:t.z.string()}),settingsVersion:t.z.int().min(1),reason:t.z.string(),givenBackAt:t.z.iso.datetime()}))}),w=v.extend({settings:g});t.z.object({shipId:(0,m.idSchema)("ship"),trierarchShipId:(0,m.idSchema)("ship")}),t.z.strictObject({}),t.z.object({shipId:(0,m.idSchema)("ship"),status:y,attempt:t.z.int().min(0).optional(),startedAt:t.z.iso.datetime().nullable().optional()}),t.z.strictObject({}),t.z.object({shipId:(0,m.idSchema)("ship")}),t.z.strictObject({}),t.z.array(t.z.object({shipId:(0,m.idSchema)("ship"),settings:g,settingsVersion:t.z.int().min(1),requestedAt:t.z.iso.datetime(),status:y.nullable(),isFinal:t.z.boolean(),ownerShipId:(0,m.idSchema)("ship").nullable(),ownerName:t.z.string().nullable()})),t.z.object({shipId:(0,m.idSchema)("ship"),reason:t.z.string().trim().max(200,k).refine(e=>!/[\r\n]/.test(e),k).nullable()}),t.z.strictObject({}),t.z.object({shipId:(0,m.idSchema)("ship"),settingsVersion:t.z.int().min(1),reason:t.z.string().trim().min(1,k).max(200,k).refine(e=>!/[\r\n]/.test(e),k)}),t.z.strictObject({}),e.s(["crewRequestKeySchema",0,b,"crewRequestSchema",0,w,"crewStatusSchema",0,y,"listedCrewRequestSchema",0,v],985939);var z=e.i(419413);function j(e){return t.z.object({cursor:e.optional(),limit:t.z.int().min(1).max(z.PAGE_SIZE_MAX).optional()})}e.s(["pageInputOf",0,j,"pageOutputOf",0,function(e,a){return t.z.object({items:t.z.array(e),nextCursor:a.nullable()})}],606811);let S=t.z.string(),C=t.z.object({id:(0,m.idSchema)("labelValue"),value:t.z.string()}),N=t.z.object({labelId:(0,m.idSchema)("label"),key:t.z.string(),valueId:(0,m.idSchema)("labelValue"),value:t.z.string()}),M=t.z.enum(["console","claudeCode","codex","trierarch","plugin","other"]),R=t.z.object({query:t.z.string().optional(),name:t.z.string().optional(),status:t.z.array(c).optional(),type:t.z.array(t.z.string()).optional(),shipKind:t.z.array(l).optional(),crewRequest:t.z.array(b).optional(),assignedTo:t.z.array((0,m.idSchema)("ship")).optional(),needsCrew:t.z.enum(["withTrierarchs","withoutTrierarchs"]).optional(),valueIds:t.z.array((0,m.idSchema)("labelValue")).optional(),shipIds:t.z.array((0,m.idSchema)("ship")).optional(),kind:t.z.array(M).optional(),pluginShipIds:t.z.array((0,m.idSchema)("ship")).optional()});t.z.object({filter:R.optional()}).optional(),t.z.object({status:t.z.array(c).optional()}).optional(),t.z.array(t.z.string());let I=t.z.object({column:t.z.enum(["ship","status","report","runsOn","seen","requested"]),direction:t.z.enum(["ascending","descending"])}),A=t.z.object({isEmpty:t.z.boolean(),value:t.z.string(),name:t.z.string(),id:(0,m.idSchema)("ship")});j(t.z.string().max(4096).transform(function(e){try{let t=atob(e.replaceAll("-","+").replaceAll("_","/"));return JSON.parse(new TextDecoder().decode(Uint8Array.from(t,e=>e.charCodeAt(0))))}catch{return}}).pipe(A)).extend({...R.shape,sort:I.optional()}).optional(),t.z.object({key:S,values:t.z.array(S)}),t.z.object({labelId:(0,m.idSchema)("label"),values:t.z.array(C)}),t.z.object({labelId:(0,m.idSchema)("label"),values:t.z.array(S)}),t.z.object({values:t.z.array(C)}),t.z.object({labelId:(0,m.idSchema)("label")}),t.z.object({key:S,value:S}),t.z.object({labelId:(0,m.idSchema)("label"),valueId:(0,m.idSchema)("labelValue")}),t.z.object({shipId:(0,m.idSchema)("ship"),valueId:(0,m.idSchema)("labelValue")}),t.z.object({});let q=t.z.discriminatedUnion("kind",[t.z.object({kind:t.z.literal("ship"),id:(0,m.idSchema)("ship"),name:t.z.string()}),t.z.object({kind:t.z.literal("installation")})]),D=t.z.object({id:(0,m.idSchema)("label"),key:t.z.string(),values:t.z.array(C),owner:q});t.z.array(D.extend({shipCount:t.z.int().min(0),values:t.z.array(C.extend({shipCount:t.z.int().min(0)}))})),e.s(["SHIP_LABELS_MAX",0,20,"carriedLabelSchema",0,N],998648)},219321,e=>{"use strict";var t=e.i(843476),a=e.i(965324);e.s(["Skeleton",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"skeleton","aria-hidden":!0,className:(0,a.classNames)("animate-pulse rounded-sm bg-secondary [animation-duration:var(--duration-pulse)] motion-reduce:animate-none",e),...n})}])},67874,e=>{"use strict";var t=e.i(843476),a=e.i(965324);e.s(["EmptyState",0,function({title:e,description:n,icon:s,action:i,variant:r="page",className:l}){return"section"===r?(0,t.jsxs)("p",{"data-slot":"empty-state","data-variant":r,className:(0,a.classNames)("rounded-lg border border-border px-4 py-3 text-center text-meta text-muted-foreground",l),children:[e,n?(0,t.jsxs)(t.Fragment,{children:[" ",n]}):null]}):"no-results"===r?(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":r,className:(0,a.classNames)("flex flex-col items-center gap-2.5 rounded-lg border border-border bg-card px-4 py-6 text-center",l),children:[(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:e}),i]}):(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":r,className:(0,a.classNames)("flex flex-col items-center gap-3 rounded-lg border border-dashed border-border bg-card px-6 py-10 text-center",l),children:[s?(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:s}):null,(0,t.jsx)("h2",{className:"text-heading font-semibold text-foreground max-sm:text-heading-touch",children:e}),n?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:n}):null,i?(0,t.jsx)("div",{className:"mt-1 max-sm:w-full max-sm:[&>*]:w-full",children:i}):null]})}])},219249,e=>{"use strict";var t=e.i(843476),a=e.i(965324);let n={"on-time":{label:"On time",dot:"bg-tone-ok-fg",text:"text-tone-ok-fg"},late:{label:"Late",dot:"bg-tone-waiting-fg",text:"text-tone-waiting-fg"},silent:{label:"Silent",dot:"bg-tone-attention-fg",text:"text-tone-attention-fg"},"standing-down":{label:"Standing down",dot:"bg-tone-active-fg",text:"text-tone-active-fg"},"not-on-station":{label:"Not on station",dot:"border border-dashed border-muted-foreground",text:"text-foreground"}};function s({health:e}){return(0,t.jsx)("span",{"aria-hidden":!0,className:(0,a.classNames)("size-2 shrink-0 rounded-full",n[e].dot)})}e.s(["HealthIndicator",0,function({health:e,detail:i,className:r}){return(0,t.jsxs)("span",{"data-slot":"health-indicator","data-health":e,className:(0,a.classNames)("inline-flex items-center gap-1.5 text-meta",r),children:[(0,t.jsx)(s,{health:e}),(0,t.jsx)("span",{className:(0,a.classNames)("font-medium",n[e].text),children:n[e].label}),void 0!==i&&(0,t.jsx)("span",{className:"text-muted-foreground",children:i})]})},"HealthSummary",0,function({counts:e,className:i}){return(0,t.jsx)("span",{"data-slot":"health-summary",className:(0,a.classNames)("inline-flex flex-wrap items-center gap-x-3 gap-y-1 text-meta",i),children:e.map(({health:e,count:a})=>(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,t.jsx)(s,{health:e}),(0,t.jsxs)("span",{children:[a," ",n[e].label.toLowerCase()]})]},e))})}])},668269,e=>{"use strict";var t=e.i(843476),a=e.i(456420);let n={name:"rotate-ccw-clock",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"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],aliases:["history"]};n.node;let s=(0,a.default)(n);var i=e.i(516752);e.s(["HistoryKeptFrom",0,function({keptFrom:e,area:a}){return null===e?null:(0,t.jsxs)("p",{"data-testid":`${a}-kept-from`,className:"flex items-start gap-2 text-meta text-muted-foreground",children:[(0,t.jsx)(s,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon-sm) shrink-0"}),(0,t.jsx)("span",{children:(0,i.keptFromLine)(e)})]})}],668269)},695960,e=>{"use strict";var t=e.i(843476),a=e.i(792150),n=e.i(749287),s=e.i(586875),i=e.i(456420);let r={name:"tag-x",size:24,node:[["path",{d:"m16.5 6.5-3.914-3.914A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.43 2.43 0 0 0 3.42 0l1.79-1.79",key:"hu94c9"}],["path",{d:"m16.5 10.5 5 5",key:"1jo8bf"}],["path",{d:"m21.5 10.5-5 5",key:"jzei60"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]};r.node;let l=(0,i.default)(r);var d=e.i(263676),o=e.i(965324),c=e.i(280581);let u={"trierarch-plugin":s.ShipWheel,squadrons:a.Boxes,ship:n.Ship,gone:l};e.s(["LabelChip",0,function({chip:e,onRemove:a,testId:n,className:s,trailing:i,meaning:r}){let l="none"===e.mark?null:u[e.mark],h=`${e.key}=${e.value}`,m=void 0===r?(0,c.chipTitleOf)(e):`${(0,c.chipTitleOf)(e)}. ${r}`;return(0,t.jsxs)("span",{role:"group","aria-label":m,"data-slot":"label-chip","data-testid":n,title:m,className:(0,o.classNames)("inline-flex h-5.5 max-w-full min-w-0 shrink-0 items-center gap-1 rounded-sm border border-border bg-secondary px-1.5 font-mono text-id whitespace-nowrap text-foreground [&_svg]:size-3 [&_svg]:shrink-0 [&_svg]:text-muted-foreground","gone"===e.mark?"border-dashed":null,s),children:[null===l?null:(0,t.jsx)(l,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"truncate",children:[(0,t.jsxs)("span",{className:"text-muted-foreground",children:[e.key,"="]}),(0,t.jsx)("span",{className:"font-medium",children:e.value})]}),i,void 0===a?null:(0,t.jsx)("button",{type:"button","aria-label":`Remove ${h}`,onClick:a,className:"-mr-1 ml-0.5 inline-flex size-4 items-center justify-center rounded-xs text-muted-foreground hover:bg-accent hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring",children:(0,t.jsx)(d.X,{"aria-hidden":!0})})]})}],695960)},188393,e=>{"use strict";var t=e.i(843476),a=e.i(965324),n=e.i(219321);function s(e){return Array.from({length:e},(e,t)=>`row-${String(t)}`)}e.s(["LoadingSkeleton",0,function({variant:e,rows:i=4,label:r="Loading",className:l}){return(0,t.jsxs)("div",{role:"status","data-slot":"loading-skeleton","data-variant":e,className:(0,a.classNames)("w-full",l),children:[(0,t.jsx)("span",{className:"sr-only",children:r}),"table"===e?(0,t.jsxs)("div",{className:"overflow-hidden rounded-lg border border-border bg-card shadow-sm",children:[(0,t.jsx)("div",{className:"h-(--size-row-header) border-b border-border bg-muted"}),s(i).map(e=>(0,t.jsxs)("div",{className:"flex h-(--size-row) items-center gap-8 border-b border-border px-4 last:border-0",children:[(0,t.jsx)(n.Skeleton,{className:"h-2.5 w-24"}),(0,t.jsx)(n.Skeleton,{className:"h-5 w-16"}),(0,t.jsx)(n.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(n.Skeleton,{className:"h-2.5 w-28"})]},e))]}):null,"cards"===e?(0,t.jsx)("div",{className:"grid grid-cols-2 gap-3 lg:grid-cols-4",children:s(4).map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsx)(n.Skeleton,{className:"h-2.5 w-20"}),(0,t.jsx)(n.Skeleton,{className:"h-6 w-10"}),(0,t.jsx)(n.Skeleton,{className:"h-2.5 w-28"})]},e))}):null,"detail"===e?(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(n.Skeleton,{className:"h-7 w-48"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(n.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(n.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(n.Skeleton,{className:"h-16 w-full rounded-lg"})]}):null,"list"===e?(0,t.jsx)("div",{className:"overflow-hidden rounded-lg border border-border bg-card",children:s(i).map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-2.5 border-b border-border px-3.5 py-3 last:border-0",children:[(0,t.jsxs)("div",{className:"flex justify-between",children:[(0,t.jsx)(n.Skeleton,{className:"h-3 w-28"}),(0,t.jsx)(n.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(n.Skeleton,{className:"h-2.5 w-44"})]},e))}):null]})}])},763481,e=>{"use strict";var t=e.i(843476),a=e.i(437750),n=e.i(271567),s=e.i(456420);let i={name:"cloud",size:24,node:[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]};i.node;let r=(0,s.default)(i),l={name:"laptop",size:24,node:[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]]};l.node;let d=(0,s.default)(l),o={name:"map-pin",size:24,node:[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]};o.node;let c=(0,s.default)(o),u={name:"message-circle",size:24,node:[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]]};u.node;let h=(0,s.default)(u);var m=e.i(841220),p=e.i(383035),g=e.i(594831),f=e.i(965324),y=e.i(866616),x=e.i(127361);let b={DEVICE:d,CLOUD:r,SERVER:m.Server,OTHER:c},k={coding:p.SquareTerminal,chat:h,bot:n.Bot,console:a.AppWindow},v={md:"text-body",sm:"text-meta"};e.s(["LocationTag",0,function({kind:e,description:a=null,harness:n=null,isCompact:s=!1,size:i="md",className:r}){let l=(0,f.classNames)("inline-flex min-w-0 items-center gap-1.5 text-muted-foreground [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",v[i],r);if(null===e)return(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,children:[(0,t.jsx)(g.Unplug,{"aria-hidden":!0}),"No session"]});let d=b[e],o=(0,x.locationKindWord)(e),c=null===a?o:`${o} \xb7 ${a}`;if(null!==n){let e=(0,y.harnessKind)(n),s=void 0===e?void 0:k[e],i=(0,y.harnessWord)(n);return(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,title:null===a?`${i} \xb7 ${o}`:`${i} \xb7 ${o}: ${a}`,children:[void 0===s?null:(0,t.jsx)(s,{"aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate text-foreground",children:i}),(0,t.jsx)("span",{"aria-hidden":!0,children:"·"}),(0,t.jsx)(d,{"aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate",children:o}),null===a?null:(0,t.jsxs)("span",{className:"sr-only",children:[": ",a]})]})}return s?(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,title:c,children:[(0,t.jsx)(d,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"sr-only",children:[o,": "]}),(0,t.jsx)("span",{className:"truncate text-foreground",children:a??o})]}):(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,children:[(0,t.jsx)(d,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"truncate",children:[o,null===a?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{"aria-hidden":!0,children:" · "}),(0,t.jsx)("span",{className:"sr-only",children:", "}),(0,t.jsx)("span",{className:"text-foreground",children:a})]})]})]})}],763481)},781830,e=>{"use strict";var t=e.i(843476),a=e.i(779432),n=e.i(119002),s=e.i(911147),i=e.i(965324),r=e.i(849635),l=e.i(793361);let d={working:a.Activity,blocked:s.OctagonPause,idle:n.CirclePause},o={active:"text-tone-active-fg",waiting:"text-tone-waiting-fg",ended:"text-tone-ended-fg"};e.s(["ReportLine",0,function({report:e,now:a,variant:n,isTimeInTitle:s=!1,testId:c}){let u="full"===n,h=(0,i.classNames)("flex min-w-0 items-center gap-1.5",u?"text-body":"text-meta");if(null===e)return(0,t.jsx)("span",{"data-testid":c,"data-state":"none",className:(0,i.classNames)(h,"text-muted-foreground"),children:"No report yet"});let m=d[e.state],p=o[l.REPORT_TONES[e.state]],g=new Date(e.reportedAt);return(0,t.jsxs)("span",{"data-testid":c,"data-state":e.state,title:s?`${(0,l.reportText)(e)} \xb7 ${(0,l.reportedWhen)(g,a)}`:(0,l.reportText)(e),className:h,children:[(0,t.jsx)(m,{"aria-hidden":!0,className:(0,i.classNames)("size-(--size-icon-sm) shrink-0",p)}),(0,t.jsx)("span",{className:(0,i.classNames)("shrink-0 font-medium",p),children:l.REPORT_STATE_WORDS[e.state]}),null===e.note?null:(0,t.jsx)("span",{className:"min-w-0 truncate text-foreground",children:e.note}),s?null:(0,t.jsx)("time",{dateTime:e.reportedAt,title:(0,r.fullDateTime)(g),className:"shrink-0 text-muted-foreground tabular-nums",children:u?`\xb7 ${(0,l.reportedWhen)(g,a)}`:(0,l.reportAge)(g,a)})]})}])},699261,456539,e=>{"use strict";var t=e.i(843476),a=e.i(456420);let n={name:"chevron-up",size:24,node:[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]};n.node;let s=(0,a.default)(n);e.s(["ChevronUp",0,s],456539);var i=e.i(271645),r=e.i(695960);e.s(["ShipLabels",0,function({chips:e}){let[a,n]=(0,i.useState)(!1);return 0===e.length?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"No labels"}):!a&&e.length>2?(0,t.jsxs)("span",{className:"flex min-w-0 flex-wrap items-center gap-1.5",children:[e.slice(0,2).map(e=>(0,t.jsx)(r.LabelChip,{chip:e,testId:"ship-label"},e.valueId)),(0,t.jsxs)("button",{type:"button","aria-label":`Show all ${String(e.length)} labels`,"data-testid":"ship-labels-more",className:"inline-flex h-5.5 items-center rounded-sm bg-secondary px-1.5 text-caption font-medium tabular-nums hover:bg-accent focus-visible:outline-2 focus-visible:outline-ring",onClick:()=>{n(!0)},children:["+",e.length-2]})]}):(0,t.jsxs)("span",{className:"flex min-w-0 flex-wrap items-center gap-1.5",children:[(function(e){let t=[];for(let a of e){let e="none"===a.mark?null:a.ownerName,n=t.find(t=>t.owner===e);void 0===n?t.push({owner:e,chips:[a]}):n.chips.push(a)}return t})(e).map(e=>(0,t.jsxs)("span",{className:"inline-flex flex-wrap items-center gap-1.5",children:[null===e.owner?null:(0,t.jsxs)("span",{className:"text-meta text-muted-foreground",children:["by ",e.owner]}),e.chips.map(e=>(0,t.jsx)(r.LabelChip,{chip:e,testId:"ship-label"},e.valueId))]},e.owner??"")),e.length>2?(0,t.jsxs)("button",{type:"button",className:"inline-flex items-center gap-1 rounded-sm px-1 text-meta hover:bg-accent focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon-sm)",onClick:()=>{n(!1)},children:[(0,t.jsx)(s,{"aria-hidden":!0}),"Show fewer"]}):null]})}],699261)},78865,e=>{"use strict";var t=e.i(843476),a=e.i(749655),n=e.i(987255),s=e.i(876561),i=e.i(847211),r=e.i(975153),l=e.i(106501),d=e.i(365668),o=e.i(422768),c=e.i(450092),u=e.i(536604),h=e.i(119002),m=e.i(832297),p=e.i(821048),g=e.i(474544),f=e.i(285595),y=e.i(152886),x=e.i(426391),b=e.i(519647),k=e.i(316984),v=e.i(710001),w=e.i(671028),z=e.i(981658),j=e.i(444594),S=e.i(611568),C=e.i(25799),N=e.i(985512),M=e.i(457665),R=e.i(395925),I=e.i(485627),A=e.i(466787),q=e.i(892870),D=e.i(456420);let T={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"}]]};T.node;let O=(0,D.default)(T);var L=e.i(965324),P=e.i(766390);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"},E={awaitingCrew:{tone:"waiting",Icon:y.CircleDashed,label:"Awaiting crew"},crewed:{tone:"ok",Icon:q.UserCheck,label:"Crewed"},retired:{tone:"ended",Icon:s.Archive,label:"Retired"},pending:{tone:"waiting",Icon:z.Hourglass,label:"Pending"},received:{tone:"active",Icon:j.Inbox,label:"Received"},handed:{tone:"active",Icon:c.CircleArrowRight,label:"Handed (pulled)"},handedPushed:{tone:"active",Icon:c.CircleArrowRight,label:"Handed"},overdue:{tone:"attention",Icon:a.AlarmClock,label:"Overdue"},acknowledged:{tone:"ok",Icon:f.CircleCheck,label:"Acknowledged"},handled:{tone:"ok",Icon:u.CircleCheckBig,label:"Handled"},notHandled:{tone:"attention",Icon:o.CircleAlert,label:"Not handled"},undeliverable:{tone:"attention",Icon:k.CircleX,label:"Undeliverable"},dismissed:{tone:"ended",Icon:b.CircleMinus,label:"Dismissed"},abandoned:{tone:"ended",Icon:i.Ban,label:"Abandoned"},forming:{tone:"waiting",Icon:x.CircleDotDashed,label:"Forming"},sailing:{tone:"ok",Icon:I.Sailboat,label:"Sailing"},"standing-down":{tone:"active",Icon:n.Anchor,label:"Standing down"},disbanded:{tone:"ended",Icon:v.FlagOff,label:"Disbanded"},"at-limit":{tone:"waiting",Icon:w.Gauge,label:"At limit"},"over-limit":{tone:"attention",Icon:A.TriangleAlert,label:"Over limit"},needsCrew:{tone:"waiting",Icon:g.Clock,label:"Needs crew"},crewedByHand:{tone:"ok",Icon:q.UserCheck,label:"Crewed by hand"},crewing:{tone:"active",Icon:S.LoaderCircle,label:"Crewing"},running:{tone:"ok",Icon:m.CirclePlay,label:"Running"},restarting:{tone:"waiting",Icon:R.RotateCcw,label:"Restarting"},crashed:{tone:"attention",Icon:k.CircleX,label:"Crashed"},releasing:{tone:"active",Icon:M.Power,label:"Releasing"},stuck:{tone:"attention",Icon:N.OctagonAlert,label:"Stuck"},delivering:{tone:"ok",Icon:C.MailCheck,label:"Delivering"},noShipCanTake:{tone:"attention",Icon:p.CircleSlash,label:"No ship can take"},waitingForCrew:{tone:"waiting",Icon:O,label:"Waiting for crew"},stalledInFlight:{tone:"waiting",Icon:h.CirclePause,label:"Stalled in flight"},active:{tone:"ok",Icon:l.CalendarClock,label:"Active"},paused:{tone:"waiting",Icon:h.CirclePause,label:"Paused"},ended:{tone:"ended",Icon:r.CalendarCheck,label:"Ended"},cancelled:{tone:"ended",Icon:d.CalendarX,label:"Cancelled"}};e.s(["StatusBadge",0,function({status:e,className:a}){let{tone:n,Icon:s,label:i}=E[e];return(0,t.jsxs)(P.Badge,{variant:"outline","data-slot":"status-badge","data-status":e,className:(0,L.classNames)(H[n],"abandoned"===e?"border-dashed":void 0,a),children:[(0,t.jsx)(s,{"aria-hidden":!0}),i]})},"statusLabel",0,function(e){return E[e].label}],78865)},837631,e=>{"use strict";var t=e.i(843476),a=e.i(577880),n=e.i(485538);e.s(["DetailPage",0,function({title:e,parents:s,header:i,children:r,sheet:l,live:d,switcher:o,account:c,onCompose:u,onSearch:h,banner:m}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.Header,{breadcrumb:e,parents:s,live:d,switcher:o,account:c,onCompose:u,onSearch:h}),m,(0,t.jsx)(n.TopBar,{title:e,live:d,back:s[s.length-1]??s[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,r]}),l]})}])},577880,485538,e=>{"use strict";var t=e.i(843476),a=e.i(566595),n=e.i(374368),s=e.i(574296),i=e.i(298260),r=e.i(704974),l=e.i(965324);function d({switcher:e,account:o,onSearch:c,searchLabel:u="Search or jump to",children:h,actions:m,className:p}){return(0,t.jsxs)("header",{"data-slot":"app-header",className:(0,l.classNames)("sticky top-0 z-30 flex h-(--size-header) shrink-0 items-center justify-between gap-4 border-b border-border bg-background px-6",p),children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[void 0===e?(0,t.jsx)("span",{"data-testid":"app-switcher-loading","aria-hidden":!0,className:"h-4 w-36 shrink-0 animate-pulse rounded bg-muted motion-reduce:animate-none"}):(0,t.jsx)(n.AppSwitcher,{switcher:e,layout:"full",className:"shrink-0"}),h]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-3",children:[m,c?(0,t.jsxs)(s.Button,{size:"sm",icon:(0,t.jsx)(a.Search,{"aria-hidden":!0}),"data-testid":"header-search",className:"w-60 justify-start font-normal text-muted-foreground max-lg:w-auto",onClick:c,children:[(0,t.jsx)("span",{className:"grow text-left max-lg:sr-only",children:u}),(0,t.jsx)(i.Kbd,{children:"⌘K"})]}):null,(0,t.jsx)(r.AvatarMenu,{...o})]})]})}var o=e.i(867927),c=e.i(819759),u=e.i(522016);let h={live:{label:"Live",dot:"bg-tone-ok-fg"},reconnecting:{label:"Reconnecting",dot:"bg-tone-waiting-fg"},offline:{label:"Offline",dot:"bg-tone-attention-fg"}};function m({state:e,className:a}){let{label:n,dot:s}=h[e];return(0,t.jsxs)("span",{"data-slot":"live-status","data-state":e,"aria-live":"polite",className:(0,l.classNames)("inline-flex items-center gap-1.5 text-meta text-muted-foreground",a),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:(0,l.classNames)("size-2 shrink-0 rounded-full",s)}),n]})}e.s(["Header",0,function({breadcrumb:e,parents:a=[],live:n,switcher:i,account:r,onCompose:l,onSearch:h}){return(0,t.jsxs)(d,{switcher:i,account:r,onSearch:h,searchLabel:"Search ships or jump to",className:"hidden sm:flex",actions:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m,{state:n}),l?(0,t.jsx)(s.Button,{size:"sm",icon:(0,t.jsx)(c.SquarePen,{"aria-hidden":!0}),"data-testid":"header-compose",onClick:l,children:"Compose"}):null]}),children:[(0,t.jsx)(o.ChevronRight,{"aria-hidden":!0,className:"size-3.5 shrink-0 text-muted-foreground"}),(0,t.jsx)("nav",{"aria-label":"Breadcrumb","data-testid":"header-breadcrumb",className:"min-w-0 text-body",children:(0,t.jsxs)("ol",{className:"flex min-w-0 items-center gap-1.5",children:[a.map(e=>(0,t.jsxs)("li",{className:"flex shrink-0 items-center gap-1.5",children:[(0,t.jsx)(u.default,{href:e.href,className:"text-muted-foreground hover:text-foreground hover:underline",children:e.label}),(0,t.jsx)(o.ChevronRight,{"aria-hidden":!0,className:"size-3.5 text-muted-foreground"})]},e.href)),(0,t.jsx)("li",{"aria-current":"page",className:"truncate font-medium text-foreground",children:e})]})})]})}],577880);var p=e.i(24071);e.s(["TopBar",0,function({title:e,live:i,actions:l,back:d,switcher:o,account:c,onSearch:h}){let g=h&&!d?h:void 0;return(0,t.jsxs)("header",{"data-slot":"top-bar","data-mode":d?"detail":"root",className:"sticky top-0 z-30 flex h-(--size-header) items-center gap-2.5 border-b border-border bg-background px-4 sm:hidden",children:[d?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(u.default,{href:d.href,className:"-ml-1.5 inline-flex h-(--size-control-touch) shrink-0 items-center gap-0.5 rounded-md pr-2 text-body-touch text-foreground focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon)",children:[(0,t.jsx)(p.ChevronLeft,{"aria-hidden":!0}),d.label]}),(0,t.jsx)("p",{className:"min-w-0 flex-1 truncate text-center text-body-touch font-semibold text-foreground",children:e})]}):o?(0,t.jsx)(n.AppSwitcher,{switcher:o,layout:"compact",className:"min-w-0"}):(0,t.jsx)("p",{className:"truncate px-1.5 text-title-touch font-semibold text-foreground",children:"Console"}),(0,t.jsx)(m,{state:i}),l||g||c&&!d?(0,t.jsxs)("div",{className:"ml-auto flex items-center gap-1",children:[g?(0,t.jsx)(s.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Search ships or jump to","data-testid":"top-bar-search",onClick:g,children:(0,t.jsx)(a.Search,{"aria-hidden":!0})}):null,l,c&&!d?(0,t.jsx)(r.AvatarMenuSheet,{...c}):null]}):null]})}],485538)},54492,e=>{"use strict";e.s(["crewRequestAction",0,function(e){switch(e.kind){case"none":return;case"needsCrew":return"remove";case"crewedByHand":return"release";case"assigned":return"releasing"===e.status?void 0:"release"}},"crewRequestStage",0,function(e){let t=e.crewRequest;return null===t?{kind:"none"}:null!==t.assignedTo?{kind:"assigned",requestedAt:t.requestedAt,trierarch:t.assignedTo,status:t.status??"crewing",attempt:t.attempt,startedAt:t.startedAt}:null!==t.crewedBy?{kind:"crewedByHand",requestedAt:t.requestedAt,crewedBy:t.crewedBy,since:e.crewedSince??null}:{kind:"needsCrew",requestedAt:t.requestedAt,reason:t.reason}},"isRestartable",0,function(e){return"assigned"===e.kind&&"crashed"===e.status},"releaseSteps",0,function(e){return"crewedByHand"===e.kind?["removeCrewRequest","release"]:["removeCrewRequest"]},"requestedBy",0,function(e){return e.find(e=>"CrewRequested"===e.type)?.actor??null},"restartWords",0,function({status:e,attempt:t}){let a=`${String(t)} ${1===t?"restart":"restarts"}`;switch(e){case"restarting":return`attempt ${String(t)}`;case"crashed":return a;case"running":return 0===t?void 0:a;case"crewing":case"releasing":return}},"statusChangedAt",0,function(e){return e.find(e=>"CrewStatusChanged"===e.type)?.occurredAt}])},510921,e=>{"use strict";var t=e.i(976580),a=e.i(994070);e.s(["useCrewSettings",0,function(e){let n=(0,t.useConsoleRead)({queryKey:["crew-settings",JSON.stringify(e)],queryFn:()=>(0,a.fetchConsoleRead)({read:"crew-settings",input:{settings:[...e]}}),enabled:e.length>0,staleTime:1/0});return 0===e.length?[]:n.data}])},866616,e=>{"use strict";var t=e.i(849635);let a={"claude-code":{word:"Claude Code",kind:"coding"},codex:{word:"Codex",kind:"coding"},"claude-chat":{word:"Claude chat",kind:"chat"},chatgpt:{word:"ChatGPT",kind:"chat"},grok:{word:"Grok",kind:"chat"},grokbot:{word:"Grokbot",kind:"bot"},console:{word:"Console",kind:"console"}};function n(e){return a[e]?.word??e}e.s(["crewLineHarnessWord",0,function(e){return"chat"===e?"Chat":n(e)},"harnessDetection",0,function(e,a){if(void 0===e.version)return;if(void 0===e.modelsConfirmedAt||null===e.modelsConfirmedAt)return`${e.version} \xb7 no model confirmed`;let n=(0,t.relativeTime)(new Date(e.modelsConfirmedAt),a);return`${e.version} \xb7 models confirmed ${"Just now"===n?"just now":n}`},"harnessKind",0,function(e){return a[e]?.kind},"harnessWord",0,n])},718423,e=>{"use strict";var t=e.i(912598),a=e.i(905861),n=e.i(271645),s=e.i(586413),i=e.i(123938),r=e.i(427702);let l=new Set(["FleetInitialised","ShipCommissioned","ShipClaimed","LeaseRevoked","CredentialRevoked","StartingPromptIssued","ShipRetired","DeliveryAcknowledged","DeliveryUndeliverable","ShipReported","CrewRequested","CrewRequestRemoved","CrewAssigned","CrewStatusChanged","CrewRequestExplained","CrewRequestGivenBack","LabelAssigned","LabelUnassigned","LabelRetired"]);function d(e,t){return e.pages.some(e=>e.items.some(e=>e.id===t))}let o=new Set(["LabelDefined","LabelValuesChanged","LabelRetired","LabelAssigned","LabelUnassigned","LabelDeleted"]),c=new Set(["DeliveryUndeliverable","DeliveryNotHandled","DeliveryDismissed"]),u=new Set(["NetworkRulesSet","NetworkRulesDraftSaved","NetworkRulesDraftDiscarded","NetworkRulesDeclared","BuiltInRuleChanged"]);e.s(["useLiveFleet",0,function(){let e=(0,r.useTRPC)(),h=(0,t.useQueryClient)(),[m,p]=(0,n.useState)(new Set),g=(0,i.useIsReopening)(),[f]=(0,n.useState)(()=>{let t,a,n,i;return function(e){var t;let a,n,i,{trpc:r,queryClient:h,reload:m}=e,p=[...r.fleet.list.infiniteQueryKey()],g=()=>h.getQueriesData({queryKey:p}).flatMap(([,e])=>void 0===e?[]:[e]),f=(t={readRow:e=>h.query({...r.fleet.listedShip.queryOptions({shipId:e}),staleTime:0}),writeRow:t=>{let a=g().some(e=>!d(e,t.id));h.setQueriesData({queryKey:p},e=>e&&function(e,t){if(d(e,t.id))return{...e,pages:e.pages.map(e=>{var a;return{...e,items:(a=e.items,a.map(e=>e.id===t.id?t:e))}})};let[a,...n]=e.pages;return void 0===a?e:{...e,pages:[{...a,items:[t,...a.items]},...n]}}(e,t)),a&&e.onPlacedFirst(t.id)}},a=new Set,n=new Set,i=async e=>{a.add(e);try{do n.delete(e),t.writeRow(await t.readRow(e));while(n.has(e))}catch{}finally{a.delete(e),n.delete(e)}},e=>{a.has(e)?n.add(e):i(e)}),y=()=>{m(r.fleet.stuckCount.queryKey()),m(r.fleet.stuckSummary.queryKey()),m(r.fleet.stuck.pathKey())};return e=>{var t,a,n,i,d;if("resync"===e.kind){m(r.fleet.pathKey()),m(s.INBOX_KEY);return}let{event:h}=e;for(let e of new Set([h.shipId,h.actorShipId]))null!==e&&(m(r.fleet.ship.queryKey({shipId:e})),m(r.fleet.shipTimeline.infiniteQueryKey({shipId:e})),m(r.fleet.shipWay.queryKey({shipId:e})));if(null!==h.messageId&&(m(r.fleet.shipMessages.pathKey()),m(r.fleet.shipWay.pathKey()),m(r.fleet.message.queryKey({messageId:h.messageId})),m(r.fleet.messageDeliveries.infiniteQueryKey({messageId:h.messageId})),m(r.fleet.inbox.pathKey()),m(r.fleet.inboxCount.queryKey()),m(s.INBOX_KEY),y()),"DeliveryAcknowledged"===h.type&&m(r.fleet.acknowledged.queryKey()),t=h.type,c.has(t)&&m(r.fleet.needsAttention.pathKey()),a=h.type,o.has(a)&&m(r.fleet.labels.queryKey()),"NetworkRulesDeclared"===h.type&&m(r.fleet.declaredNetworkRules.queryKey()),("BuiltInRuleChanged"===(n=h.type)||"NetworkRulesSet"===n)&&m(r.fleet.builtInRules.queryKey()),i=h.type,u.has(i)&&(m(r.fleet.networkRules.queryKey()),m(r.fleet.networkRulesDraftChanges.queryKey()),m(r.fleet.explainReach.pathKey())),d=h.type,l.has(d)){if(g().length>0)for(let e of new Set([h.shipId,h.actorShipId]))null!==e&&f(e);m(r.fleet.shipCounts.pathKey()),y()}}}({trpc:e,queryClient:h,reload:(t=new Set,a=new Set,n=e=>h.invalidateQueries({queryKey:e,exact:!0},{cancelRefetch:!1}),i=async e=>{t.add(e.queryHash);let s=e.isBehind;try{for(await n(e.queryKey);s||a.delete(e.queryHash);)s=!1,await n(e.queryKey)}finally{t.delete(e.queryHash)}},e=>{for(let n of h.getQueryCache().findAll({queryKey:e}))t.has(n.queryHash)?a.add(n.queryHash):i({queryHash:n.queryHash,queryKey:n.queryKey,isBehind:"fetching"===n.state.fetchStatus})}),onPlacedFirst:e=>{p(t=>new Set([...t,e]))}})}),y=(0,a.useSubscription)(e.fleet.events.subscriptionOptions({lastEventId:null},{onData:({data:e})=>{f(e)}}));return{live:"connecting"===y.status&&g?"live":function(e){switch(e){case"pending":return"live";case"connecting":return"reconnecting";case"idle":case"error":return"offline"}}(y.status),placedFirstShipIds:m,error:y.error}}])},127361,e=>{"use strict";let t={DEVICE:"Device",CLOUD:"Cloud",SERVER:"Server",OTHER:"Other"};e.s(["locationKindWord",0,function(e){return t[e]}])},928459,415168,e=>{"use strict";var t=e.i(621482),a=e.i(954616),n=e.i(912598),s=e.i(731877),i=e.i(427702);function r(e){return e.map(({valueId:e,key:t,value:a})=>null===t||null===a?e:`${t}=${a}`).join(" and ")}function l(e){switch(e.kind){case"type":return`any ship of type ${e.type}`;case"meeting":return`every other participant of meeting ${e.meetingId}`;case"label":return`every ship carrying ${r(e.values)}`}}function d(e){let t=String(e.attempts-1);return e.isPushed?`Handed ${t} times, never confirmed; fifth refused: undeliverable.`:`Handed (pulled) ${t} times, never acknowledged; fifth receive refused: undeliverable.`}e.s(["labelSelectionWords",0,r,"recipientGroupWords",0,l],415168);let o="Acknowledged, then its turn died; handed once more, and that turn died too: not handled.";function c(){let e=(0,i.useTRPC)(),t=(0,n.useQueryClient)();return()=>t.invalidateQueries({queryKey:e.fleet.pathKey()})}e.s(["DISMISSED_TOAST",0,{title:"Delivery dismissed",description:"It stays in the timelines as dismissed."},"attentionReason",0,function(e){switch(e.state){case"undeliverable":return d(e);case"notHandled":return null===e.reason?o:`${o} 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:l(t)}(e)}. The original is dismissed.`}},"undeliverableReason",0,d,"useDismissDelivery",0,function(){let e=(0,i.useTRPC)(),t=c();return(0,a.useMutation)(e.fleet.dismiss.mutationOptions({onSuccess:t}))},"useNeedsAttention",0,function(e={}){let a=(0,i.useTRPC)();return(0,s.pagedListOf)((0,t.useInfiniteQuery)(a.fleet.needsAttention.infiniteQueryOptions({...e,limit:s.CONSOLE_PAGE_SIZE},{getNextPageParam:s.nextCursorOf})))},"useResendDelivery",0,function(){let e=(0,i.useTRPC)(),t=c();return(0,a.useMutation)(e.fleet.resend.mutationOptions({onSuccess:t}))}],928459)},793361,e=>{"use strict";var t=e.i(849635);let a={working:"Working",blocked:"Blocked",idle:"Idle"};e.s(["REPORT_STATE_WORDS",0,a,"REPORT_TONES",0,{working:"active",blocked:"waiting",idle:"ended"},"reportAge",0,function(e,a){let n=Math.max(0,a.getTime()-e.getTime());return n<6e4?`${String(Math.floor(n/1e3))} s`:n<36e5?`${String(Math.floor(n/6e4))} min`:n<864e5?`${String(Math.floor(n/36e5))} h`:(0,t.relativeTime)(e,a)},"reportDetailsJson",0,function(e){return JSON.stringify(e,null,2)},"reportDetailsLabel",0,function(e){return`JSON \xb7 ${String(e)} bytes`},"reportText",0,function(e){let t=a[e.state];return null===e.note?t:`${t}: ${e.note}`},"reportedWhen",0,function(e,a){let n=(0,t.relativeTime)(e,a);return`reported ${"Just now"===n?"just now":n}`}])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,395530,e=>{"use strict";var s=e.i(271645),t=e.i(828918),a=e.i(838452),n=e.i(673553);e.s(["useCompositeItem",0,function(e={}){let{highlightItemOnHover:i,highlightedIndex:r,onHighlightedIndexChange:o}=(0,a.useCompositeRootContext)(),{ref:d,index:l}=(0,n.useCompositeListItem)(e),c=r===l,u=s.useRef(null),m=(0,t.useMergedRefs)(d,u);return{compositeProps:{tabIndex:c?0:-1,onFocus(){o(l)},onMouseMove(){let e=u.current;if(!i||!e)return;let s=e.hasAttribute("disabled")||"true"===e.ariaDisabled;c||s||e.focus()}},compositeRef:m,index:l}}])},768877,e=>{"use strict";var s=e.i(456420);let t={name:"arrow-right",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]};t.node;let a=(0,s.default)(t);e.s(["ArrowRight",0,a],768877)},24071,e=>{"use strict";var s=e.i(456420);let t={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};t.node;let a=(0,s.default)(t);e.s(["ChevronLeft",0,a],24071)},867927,e=>{"use strict";var s=e.i(456420);let t={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};t.node;let a=(0,s.default)(t);e.s(["ChevronRight",0,a],867927)},275043,446513,e=>{"use strict";var s=e.i(456420);let t={name:"circle-question-mark",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["help-circle","circle-help"]};t.node;let a=(0,s.default)(t);e.s(["default",0,a],275043);let n={name:"monitor",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]};n.node;let i=(0,s.default)(n);e.s(["Monitor",0,i],446513)},508734,e=>{"use strict";var s=e.i(456420);let t={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};t.node;let a=(0,s.default)(t);e.s(["Copy",0,a],508734)},226091,e=>{"use strict";var s=e.i(456420);let t={name:"file-text",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]};t.node;let a=(0,s.default)(t);e.s(["FileText",0,a],226091)},566595,e=>{"use strict";var s=e.i(456420);let t={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};t.node;let a=(0,s.default)(t);e.s(["Search",0,a],566595)},819759,e=>{"use strict";var s=e.i(456420);let t={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"]};t.node;let a=(0,s.default)(t);e.s(["SquarePen",0,a],819759)},447321,e=>{"use strict";var s=e.i(456420);let t={name:"waves-horizontal",size:24,node:[["path",{d:"M2 12q2.5 2 5 0t5 0 5 0 5 0",key:"8ddzzs"}],["path",{d:"M2 19q2.5 2 5 0t5 0 5 0 5 0",key:"1wj4st"}],["path",{d:"M2 5q2.5 2 5 0t5 0 5 0 5 0",key:"69x50u"}]],aliases:["waves"]};t.node;let a=(0,s.default)(t);e.s(["Waves",0,a],447321)},298260,e=>{"use strict";var s=e.i(843476),t=e.i(965324);e.s(["Kbd",0,function({className:e,...a}){return(0,s.jsx)("kbd",{"data-slot":"kbd",className:(0,t.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})}])},638919,e=>{"use strict";var s=e.i(843476),t=e.i(353753),a=e.i(225913),n=e.i(560964),i=e.i(965324),r=e.i(574296);let o=(0,a.cva)("fixed z-50 flex flex-col bg-popover text-body text-popover-foreground shadow-lg outline-none duration-(--duration-slow) ease-(--ease-standard) data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",{variants:{side:{right:"inset-y-0 right-0 h-full w-full border-l border-border sm:max-w-(--size-sheet) motion-safe:data-open:slide-in-from-right motion-safe:data-closed:slide-out-to-right",bottom:"inset-x-0 bottom-0 max-h-[90dvh] rounded-t-2xl border-t border-border px-4 pt-2 pb-[max(calc(var(--spacing)*4),env(safe-area-inset-bottom))] motion-safe:data-open:slide-in-from-bottom motion-safe:data-closed:slide-out-to-bottom"}},defaultVariants:{side:"right"}});e.s(["Sheet",0,function(e){return(0,s.jsx)(t.Dialog.Root,{"data-slot":"sheet",...e})},"SheetBody",0,function({className:e,...t}){return(0,s.jsx)("div",{"data-slot":"sheet-body",className:(0,i.classNames)("min-h-0 flex-1 overflow-y-auto in-data-[side=right]:p-6",e),...t})},"SheetClose",0,function(e){return(0,s.jsx)(t.Dialog.Close,{"data-slot":"sheet-close",...e})},"SheetContent",0,function({className:e,children:a,side:d="right",...l}){return(0,s.jsxs)(t.Dialog.Portal,{children:[(0,s.jsx)(t.Dialog.Backdrop,{"data-slot":"sheet-overlay",className:"fixed inset-0 z-50 bg-overlay duration-(--duration-slow) data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0"}),(0,s.jsxs)(t.Dialog.Popup,{"data-slot":"sheet-content","data-side":d,className:(0,i.classNames)(o({side:d}),e),...l,children:["bottom"===d?(0,s.jsx)("div",{"aria-hidden":!0,className:"mx-auto mb-3 h-1 w-9 shrink-0 rounded-full bg-border"}):(0,s.jsx)(t.Dialog.Close,{"data-slot":"sheet-close",render:(0,s.jsx)(r.Button,{variant:"ghost",size:"sm",isIconOnly:!0,className:"absolute top-4 right-4","aria-label":"Close"}),children:(0,s.jsx)(n.XIcon,{})}),a]})]})},"SheetDescription",0,function({className:e,...a}){return(0,s.jsx)(t.Dialog.Description,{"data-slot":"sheet-description",className:(0,i.classNames)("text-meta text-muted-foreground",e),...a})},"SheetFooter",0,function({className:e,...t}){return(0,s.jsx)("div",{"data-slot":"sheet-footer",className:(0,i.classNames)("flex flex-col-reverse gap-2 pt-3 in-data-[side=right]:flex-row in-data-[side=right]:justify-end in-data-[side=right]:border-t in-data-[side=right]:px-6 in-data-[side=right]:py-4",e),...t})},"SheetHeader",0,function({className:e,...t}){return(0,s.jsx)("div",{"data-slot":"sheet-header",className:(0,i.classNames)("flex flex-col gap-0.5 in-data-[side=right]:border-b in-data-[side=right]:px-6 in-data-[side=right]:py-5 in-data-[side=right]:pr-14",e),...t})},"SheetTitle",0,function({className:e,...a}){return(0,s.jsx)(t.Dialog.Title,{"data-slot":"sheet-title",className:(0,i.classNames)("text-heading font-semibold text-foreground in-data-[side=bottom]:py-2 in-data-[side=bottom]:text-section",e),...a})},"SheetTrigger",0,function(e){return(0,s.jsx)(t.Dialog.Trigger,{"data-slot":"sheet-trigger",...e})}])},67857,e=>{"use strict";var s=e.i(843476),t=e.i(618566),a=e.i(271645),n=e.i(748955),i=e.i(149652),r=e.i(867927),o=e.i(444594),d=e.i(522016),l=e.i(849635),c=e.i(67874),u=e.i(817981),m=e.i(188393);function h({messages:e,state:t,error:a,onRetry:n,flagshipId:i,now:x}){return(0,s.jsxs)("section",{"aria-labelledby":"kept-messages","data-testid":"kept-messages",className:"flex flex-col gap-2",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,s.jsx)("h2",{id:"kept-messages",className:"text-body font-semibold",children:"Messages the flagship kept"}),(0,s.jsx)("p",{className:"text-meta text-muted-foreground",children:"Messages to the flagship it does not handle: kept here, never forwarded."})]}),"loading"===t?(0,s.jsx)(m.LoadingSkeleton,{variant:"list",rows:2,label:"Loading the kept messages"}):"error"===t?(0,s.jsx)(u.InlineError,{title:"Couldn’t load the kept messages",description:"The rest of the page is current. Try again in a moment.",detail:a,onRetry:n}):0===e.length?(0,s.jsx)(c.EmptyState,{variant:"section",icon:(0,s.jsx)(o.Inbox,{"aria-hidden":!0}),title:"No kept messages",description:"Every message to the flagship was the squadron's own."}):(0,s.jsx)("ul",{className:"divide-y divide-border overflow-hidden rounded-lg border border-border",children:e.map(e=>(0,s.jsx)("li",{"data-testid":"kept-message",children:(0,s.jsxs)(d.default,{href:`/ships/${i}?tab=messages&message=${e.messageId}`,className:"flex items-center gap-3 px-3 py-2.5 hover:bg-accent",children:[(0,s.jsxs)("span",{className:"flex min-w-0 grow flex-col gap-0.5",children:[(0,s.jsxs)("span",{className:"flex flex-wrap items-center gap-x-2 text-meta",children:[(0,s.jsx)("span",{className:"font-medium text-foreground",children:e.senderName}),(0,s.jsx)("span",{className:"font-mono text-muted-foreground",children:e.contentType}),(0,s.jsx)("time",{dateTime:e.receivedAt,className:"text-muted-foreground",children:(0,l.relativeTime)(new Date(e.receivedAt),x)})]}),(0,s.jsx)("span",{className:"truncate text-body",children:e.payload.split("\n")[0]??""})]}),(0,s.jsx)(r.ChevronRight,{"aria-hidden":!0,className:"size-(--size-icon) shrink-0 text-muted-foreground"}),(0,s.jsx)("span",{className:"sr-only",children:"Open the message"})]})},e.deliveryId))})]})}var x=e.i(508734),p=e.i(386247),g=e.i(758925),f=e.i(819759),b=e.i(456420);let j={name:"square-arrow-out-up-right",size:24,node:[["path",{d:"M21 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h6",key:"y09zxi"}],["path",{d:"m21 3-9 9",key:"mpx6sq"}],["path",{d:"M15 3h6v6",key:"1q9fwt"}]],aliases:["arrow-up-right-from-square"]};j.node;let v=(0,b.default)(j);var y=e.i(149319),w=e.i(574296),N=e.i(407242),S=e.i(638919),k=e.i(341880),C=e.i(566297);function I({squadronId:e,member:t,ship:n,template:i,canManage:r,canSend:o,isRemovable:l,onRemove:c,compose:u}){let[m,h]=(0,a.useState)(!1),b="retired"===t.crew.status||n?.status==="retired",j=(0,C.useNewCrewLineFlow)(r&&!b?{squadronId:e,member:t,ship:n,template:i}:void 0),q=async()=>{try{await navigator.clipboard.writeText(t.shipId),(0,k.showToast)({title:"Ship id copied",description:t.shipId,tone:"success"})}catch{(0,k.showToast)({title:"Couldn’t copy the ship id",description:t.shipId,tone:"error"})}},D=[{key:"open",label:"Open ship page",icon:v,testId:"member-open-ship",href:`/ships/${t.shipId}`},...o&&!b?[{key:"message",label:"Message…",icon:f.SquarePen,testId:"member-message",onSelect:()=>{h(!0)}}]:[],...r&&!b?[{key:"crew-line",label:"Get new crew line…",icon:g.KeyRound,testId:"member-new-crew-line",isDisabled:!j.isReady,onSelect:j.start}]:[],{key:"copy",label:"Copy ship id",icon:x.Copy,testId:"member-copy-id",onSelect:()=>void q()}],z=r&&l&&!b?{key:"remove",label:"Remove from squadron…",icon:y.UserMinus,testId:"member-remove",isDestructive:!0,onSelect:c}:void 0,R=e=>(0,s.jsx)(w.Button,{size:e,variant:"ghost",isIconOnly:!0,"aria-label":`Actions for ${t.name}`,icon:(0,s.jsx)(p.Ellipsis,{}),"data-testid":"member-actions"});return(0,s.jsxs)("span",{className:"flex shrink-0 items-center gap-1",children:[r&&!b&&"silent"===t.health&&(0,s.jsx)(w.Button,{size:"xs",disabled:!j.isReady,"data-testid":"member-new-crew-line-primary",onClick:j.start,children:"Get new crew line"}),(0,s.jsx)("span",{className:"max-sm:hidden",children:(0,s.jsxs)(N.DropdownMenu,{children:[(0,s.jsx)(N.DropdownMenuTrigger,{render:R("xs")}),(0,s.jsxs)(N.DropdownMenuContent,{align:"end",children:[D.map(e=>void 0===e.href?(0,s.jsxs)(N.DropdownMenuItem,{disabled:e.isDisabled,onClick:e.onSelect,"data-testid":e.testId,children:[(0,s.jsx)(e.icon,{"aria-hidden":!0}),e.label]},e.key):(0,s.jsxs)(N.DropdownMenuItem,{render:(0,s.jsx)(d.default,{href:e.href}),"data-testid":e.testId,children:[(0,s.jsx)(e.icon,{"aria-hidden":!0}),e.label]},e.key)),z&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(N.DropdownMenuSeparator,{}),(0,s.jsxs)(N.DropdownMenuItem,{variant:"destructive",onClick:z.onSelect,"data-testid":z.testId,children:[(0,s.jsx)(z.icon,{"aria-hidden":!0}),z.label]})]})]})]})}),(0,s.jsx)("span",{className:"sm:hidden",children:(0,s.jsxs)(S.Sheet,{children:[(0,s.jsx)(S.SheetTrigger,{render:R("touch")}),(0,s.jsxs)(S.SheetContent,{side:"bottom",children:[(0,s.jsx)(S.SheetHeader,{children:(0,s.jsx)(S.SheetTitle,{children:t.name})}),(0,s.jsx)("ul",{className:"flex flex-col pb-2",children:[...D,...z?[z]:[]].map(e=>(0,s.jsx)("li",{className:!0===e.isDestructive?"mt-1 border-t border-border pt-1":void 0,children:(0,s.jsxs)(S.SheetClose,{render:void 0===e.href?(0,s.jsx)("button",{type:"button",disabled:e.isDisabled,onClick:e.onSelect}):(0,s.jsx)(d.default,{href:e.href}),className:`flex h-(--size-control-touch) w-full items-center gap-3 px-4 text-left text-body-touch disabled:opacity-45 [&_svg]:size-(--size-icon) [&_svg]:shrink-0 ${!0===e.isDestructive?"text-destructive-text":"text-foreground"}`,children:[(0,s.jsx)(e.icon,{"aria-hidden":!0}),e.label.replace(/…$/,"")]})},e.key))}),(0,s.jsx)("div",{className:"px-4 pb-4",children:(0,s.jsx)(S.SheetClose,{render:(0,s.jsx)(w.Button,{size:"touch",className:"w-full"}),children:"Cancel"})})]})]})}),j.dialog,(0,s.jsx)(u,{isOpen:m,onOpenChange:h,toShipId:t.shipId})]})}let q={name:"octagon-x",size:24,node:[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-octagon"]};q.node;let D=(0,b.default)(q);var z=e.i(357443),R=e.i(447321);function M({squadronId:e,offered:t,onAddMember:a,onMessageFlagship:n,onStandDown:i,onForceStandDown:r}){let o=async()=>{try{await navigator.clipboard.writeText(e),(0,k.showToast)({title:"Squadron id copied",description:e,tone:"success"})}catch{(0,k.showToast)({title:"Couldn’t copy the squadron id",description:e,tone:"error"})}},d={key:"copy",label:"Copy squadron id",icon:x.Copy,testId:"squadron-copy-id",onSelect:()=>void o()},l=[...t.canStandDown?[{key:"stand-down",label:"Stand down…",icon:R.Waves,testId:"squadron-stand-down",isDestructive:!0,onSelect:i}]:[],...t.canForceStandDown?[{key:"force",label:"Force stand down…",icon:D,testId:"squadron-force-stand-down",isDestructive:!0,onSelect:r}]:[]],c=e=>(0,s.jsx)(w.Button,{size:e,variant:"ghost",isIconOnly:!0,"aria-label":"Squadron actions",icon:(0,s.jsx)(p.Ellipsis,{}),"data-testid":"squadron-actions"});return(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[t.canAddMember&&(0,s.jsx)(w.Button,{size:"xs",icon:(0,s.jsx)(z.UserPlus,{}),"data-testid":"squadron-add-member",onClick:a,children:"Add member"}),t.canMessageFlagship&&(0,s.jsx)(w.Button,{size:"xs",icon:(0,s.jsx)(f.SquarePen,{}),"data-testid":"squadron-message-flagship",onClick:n,children:"Message"}),(0,s.jsx)("div",{className:"max-sm:hidden",children:(0,s.jsxs)(N.DropdownMenu,{children:[(0,s.jsx)(N.DropdownMenuTrigger,{render:c("xs")}),(0,s.jsxs)(N.DropdownMenuContent,{align:"end",children:[(0,s.jsxs)(N.DropdownMenuItem,{onClick:d.onSelect,"data-testid":d.testId,children:[(0,s.jsx)(x.Copy,{"aria-hidden":!0}),d.label]}),l.length>0&&(0,s.jsx)(N.DropdownMenuSeparator,{}),l.map(e=>(0,s.jsxs)(N.DropdownMenuItem,{variant:"destructive",onClick:e.onSelect,"data-testid":e.testId,children:[(0,s.jsx)(e.icon,{"aria-hidden":!0}),e.label]},e.key))]})]})}),(0,s.jsx)("div",{className:"sm:hidden",children:(0,s.jsxs)(S.Sheet,{children:[(0,s.jsx)(S.SheetTrigger,{render:c("touch")}),(0,s.jsxs)(S.SheetContent,{side:"bottom","data-testid":"squadron-actions-sheet",children:[(0,s.jsx)(S.SheetHeader,{children:(0,s.jsx)(S.SheetTitle,{children:e})}),(0,s.jsx)("ul",{className:"flex flex-col pb-2",children:[d,...l].map((e,t)=>(0,s.jsx)("li",{className:1===t?"mt-1 border-t border-border pt-1":void 0,children:(0,s.jsxs)(S.SheetClose,{render:(0,s.jsx)("button",{type:"button",onClick:e.onSelect}),className:`flex h-(--size-control-touch) w-full items-center gap-3 px-4 text-left text-body-touch [&_svg]:size-(--size-icon) [&_svg]:shrink-0 ${!0===e.isDestructive?"text-destructive-text":"text-foreground"}`,children:[(0,s.jsx)(e.icon,{"aria-hidden":!0}),e.label.replace(/…$/,"")]})},e.key))}),(0,s.jsx)("div",{className:"px-4 pb-4",children:(0,s.jsx)(S.SheetClose,{render:(0,s.jsx)(w.Button,{size:"touch",className:"w-full"}),children:"Cancel"})})]})]})})]})}var $=e.i(810818),T=e.i(784294),A=e.i(182880),L=e.i(219249),O=e.i(603067),K=e.i(763481),P=e.i(781830),B=e.i(78865);function F({ship:e,now:t}){return e?(0,s.jsxs)("div",{className:"flex grow flex-wrap items-center justify-end gap-x-4 gap-y-1 text-meta",children:["crewed"===e.status?(0,s.jsx)(P.ReportLine,{report:e.report,now:t,variant:"row",testId:"member-report"}):(0,s.jsx)(B.StatusBadge,{status:e.status}),e.location?(0,s.jsx)(K.LocationTag,{kind:e.location.kind,description:e.location.description,isCompact:!0,size:"sm"}):(0,s.jsx)("span",{className:"text-muted-foreground",children:"No session"}),(0,s.jsxs)("span",{className:"flex items-center gap-1 text-muted-foreground","data-testid":"member-inbox",children:[(0,s.jsx)(o.Inbox,{"aria-hidden":!0,className:"size-(--size-icon-sm)"}),e.openDeliveries,(0,s.jsx)("span",{className:"sr-only",children:" open"})]})]}):null}function H({role:e,blueprint:t,templates:a,count:n}){let i=t?.roles.find(s=>s.name===e)?.template,r=a.find(e=>e.repository===i?.repository&&e.name===i.name&&e.version===i.version);return(0,s.jsxs)("div",{className:"flex items-center gap-2 bg-muted px-3 py-1.5 text-meta",children:[(0,s.jsx)("span",{className:"rounded-sm bg-card px-1.5 font-mono",children:e}),i&&(0,s.jsx)("span",{className:"font-mono text-muted-foreground",children:`${i.name}@${String(i.version)}`}),r&&(0,s.jsxs)("span",{className:"text-muted-foreground",children:["checks in ",(0,T.checkInText)(r.checkInMinutes)]}),(0,s.jsxs)("span",{className:"ml-auto text-muted-foreground",children:[n," ",1===n?"member":"members"]})]})}function E({issued:e,template:t}){return(0,s.jsxs)("div",{className:"flex flex-col gap-2 border-b border-border px-3 py-2.5",children:[(0,s.jsx)(O.LaunchNote,{note:e.launchNote,model:e.model,template:t,testId:"member-launch-note"}),(0,s.jsxs)("p",{className:"flex items-center gap-1.5 text-meta text-muted-foreground",children:[(0,s.jsx)($.Info,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0"}),(0,s.jsxs)("span",{children:[(0,s.jsx)("span",{className:"font-medium",children:"Shown once."})," Paste a member’s crew line into Claude Code or Codex started where the launch note says, or the Chat one, the ship’s crew instructions for a chat, into a chat app."]})]})]})}function W({member:e,issued:t,ship:a,now:n,renderActions:i}){return(0,s.jsxs)("li",{"data-testid":"member-row",className:"flex flex-col gap-2 px-3 py-2.5",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(d.default,{href:`/ships/${e.shipId}`,className:"font-medium hover:underline","data-testid":"member-name",children:e.name}),(0,s.jsx)(L.HealthIndicator,{health:e.health,detail:function(e,{ship:s,now:t}){let{lastSeenAt:a}=e.crew;if("late"!==e.health&&"silent"!==e.health||null===a)return;let n=(0,l.lastSeen)(new Date(a),t).replace(/^Last/,"last"),i=s?.location?.description;return i?`${n} on ${i}`:n}(e,{ship:a,now:n}),className:"shrink-0"}),e.model.isMismatch&&(0,s.jsxs)("span",{className:"text-meta text-tone-attention-fg",children:["Runs ",e.model.stated??"an unstated model",", not ",e.model.pinned]}),(0,s.jsx)(F,{ship:a,now:n}),i?.(e)]}),t&&(0,s.jsx)(A.CompactCrewLine,{crewLines:t.crewLines,subject:e.name,testIdPrefix:"member-crew-line"})]})}function _({squadron:e,blueprint:t,templates:a,crewLines:n,ships:i,now:r,renderActions:o}){if(0===e.members.length)return(0,s.jsx)(c.EmptyState,{variant:"section",title:"No members",description:"This squadron has no members."});let d=e=>null===e.onStationAt?n.get(e.shipId):void 0;return(0,s.jsx)("div",{"data-testid":"member-list",className:"flex flex-col overflow-hidden rounded-lg border border-border",children:(0,T.membersByRole)(e.members).map(e=>{let n=t?.roles.find(s=>s.name===e.role)?.template,l=e.members.map(d).find(e=>void 0!==e);return(0,s.jsxs)("section",{"aria-label":`Role ${e.role}`,children:[(0,s.jsx)(H,{role:e.role,blueprint:t,templates:a,count:e.members.length}),l&&(0,s.jsx)(E,{issued:l,template:n&&`${n.name}@${String(n.version)}`}),(0,s.jsx)("ul",{className:"divide-y divide-border",children:e.members.map(e=>(0,s.jsx)(W,{member:e,issued:d(e),ship:i.get(e.shipId),now:r,renderActions:o},e.shipId))})]},e.role)})})}var Q=e.i(965324);let U={forming:{done:"on station",next:"Sails when all are on station"},standdown:{done:"finished their work",next:"Disbands when all are done"}};function V({done:e,total:t,variant:a,className:n}){let i=U[a],r=1===t?"member":"members";return(0,s.jsxs)("div",{"data-slot":"station-progress",role:"progressbar","aria-valuemin":0,"aria-valuemax":t,"aria-valuenow":e,"aria-label":`${String(e)} of ${String(t)} ${r} ${i.done}`,className:(0,Q.classNames)("flex flex-col gap-1.5",n),children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-baseline justify-between gap-2 text-meta",children:[(0,s.jsxs)("p",{role:"status","aria-live":"polite",className:"text-foreground","data-testid":"station-progress",children:[(0,s.jsxs)("span",{className:"font-medium",children:[e," of ",t," ",r]})," ",i.done]}),(0,s.jsx)("span",{className:"text-muted-foreground",children:i.next})]}),(0,s.jsx)("div",{"aria-hidden":!0,className:"flex gap-1",children:Array.from({length:t},(t,a)=>(0,s.jsx)("span",{className:(0,Q.classNames)("h-1.5 grow rounded-full",a<e?"bg-tone-ok-fg":"bg-muted")},`segment-${String(a)}`))})]})}function G({squadron:e,squadronId:t,state:a,actions:n,onForceStandDown:i}){if("loading"===a)return(0,s.jsx)(m.LoadingSkeleton,{variant:"detail",rows:2,label:"Loading the squadron"});if("not-found"===a||!e)return(0,s.jsx)(c.EmptyState,{title:"No such squadron",description:`The squadron manager knows no squadron ${t}.`});let{onStation:r,total:o}=(0,T.stationCount)(e);return(0,s.jsxs)("header",{"data-testid":"squadron-header",className:"flex flex-col gap-3",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2.5",children:[(0,s.jsx)("h1",{className:"text-title font-semibold",children:e.id}),(0,s.jsx)(B.StatusBadge,{status:e.state}),(0,s.jsxs)(d.default,{href:(0,T.blueprintPath)(e.blueprint),className:"text-meta text-muted-foreground hover:underline","data-testid":"squadron-blueprint",children:[(0,s.jsx)("span",{className:"font-mono",children:e.blueprint.name})," v",e.blueprint.version]}),n&&(0,s.jsx)("div",{className:"ml-auto flex gap-2",children:n})]}),(0,s.jsxs)("dl",{className:"flex flex-wrap gap-x-6 gap-y-1 text-meta text-muted-foreground",children:[(0,s.jsxs)("div",{className:"flex gap-1.5",children:[(0,s.jsx)("dt",{children:"Flagship"}),(0,s.jsx)("dd",{className:"font-mono text-foreground",children:e.flagship.name})]}),(0,s.jsxs)("div",{className:"flex gap-1.5",children:[(0,s.jsx)("dt",{children:"Members"}),(0,s.jsx)("dd",{className:"text-foreground",children:o})]}),(0,s.jsxs)("div",{className:"flex gap-1.5",children:[(0,s.jsx)("dt",{children:"Formed"}),(0,s.jsx)("dd",{className:"text-foreground",children:(0,l.shortDateTime)(new Date(e.formedAt))})]})]}),"standing-down"===e.state&&(0,s.jsxs)("div",{role:"status","data-testid":"squadron-state-notice",className:"flex flex-wrap items-center gap-3 rounded-lg border border-tone-waiting-border bg-tone-waiting-bg px-3 py-2.5 text-meta text-foreground",children:[(0,s.jsx)("span",{className:"grow",children:"No new work reaches its members. They finish their open work, then retire and the squadron disbands."}),i&&(0,s.jsx)(w.Button,{size:"xs","data-testid":"squadron-notice-force-stand-down",onClick:i,children:"Force stand down…"})]}),"disbanded"===e.state&&(0,s.jsxs)("div",{role:"status","data-testid":"squadron-state-notice",className:"rounded-lg border border-tone-ended-border bg-tone-ended-bg px-3 py-2.5 text-meta text-foreground",children:["Read-only. Its ",1===o?"1 member ship":`${String(o)} member ships`," and its flagship were retired; their history stays."]}),"forming"===e.state&&(0,s.jsx)(V,{done:r,total:o,variant:"forming",className:"max-w-md"}),"standing-down"===e.state&&(0,s.jsx)(V,{done:e.members.filter(e=>"retired"===e.crew.status).length,total:o,variant:"standdown",className:"max-w-md"})]})}var X=e.i(837631),Y=e.i(787964);let Z={working:"working",idle:"idle",blocked:"blocked"};function J({label:e,children:t}){return(0,s.jsxs)("div",{className:"flex min-w-0 flex-col gap-1",children:[(0,s.jsx)("span",{className:"text-caption font-medium text-muted-foreground",children:e}),(0,s.jsx)("span",{className:"text-meta text-foreground",children:t})]})}function ee({health:e,work:t,openDeliveries:a,keptCount:n}){return(0,s.jsxs)("div",{"aria-label":"Squadron summary","data-testid":"squadron-summary",className:"grid grid-cols-4 gap-4 rounded-lg border border-border bg-card px-4 py-3 shadow-sm max-sm:grid-cols-2 max-sm:gap-3",children:[(0,s.jsx)(J,{label:"Health",children:0===e.length?"None":(0,s.jsx)(L.HealthSummary,{counts:e})}),(0,s.jsx)(J,{label:"Work",children:0===t.length?"None reported":t.map(({state:e,count:s})=>`${String(s)} ${Z[e]}`).join(", ")}),(0,s.jsx)(J,{label:"Open deliveries",children:void 0===a?"…":`${String(a)} in member inboxes`}),(0,s.jsx)(J,{label:"Kept by the flagship",children:void 0===n?"…":0===n?"None":String(n)})]})}var es=e.i(497759),et=e.i(917540),ea=e.i(490262),en=e.i(718423),ei=e.i(928459),er=e.i(296676),eo=e.i(678485),ed=e.i(853573),el=e.i(686165),ec=e.i(448695);let eu=(0,et.lazyDialog)(()=>e.A(901890).then(e=>e.AddMemberDialog),e=>e.isOpen),em=(0,et.lazyDialog)(()=>e.A(733971).then(e=>e.CrewLineDialog),e=>e.isOpen),eh=(0,et.lazyDialog)(()=>e.A(88138).then(e=>e.RemoveMemberDialog),e=>e.isOpen),ex=(0,et.lazyDialog)(()=>e.A(785575).then(e=>e.StandDownDialog),e=>e.isOpen);e.s(["default",0,function({params:e,searchParams:r}){let{squadronId:o}=(0,a.use)(e),d=(0,a.use)(r).action,l=(0,t.useRouter)(),c=(0,er.useNow)(),u=(0,Y.useConsoleFrame)(),x=(0,ei.useNeedsAttention)(),p=(0,en.useLiveFleet)(),g=(0,ec.useSquadrons)(),f=(0,el.useSquadronsConnection)(),b=(0,ec.useCatalogue)(),j=(0,ec.useIssuedCrewLines)(o),v=(0,ec.useKeptMessages)(o),y=(0,ec.useStandDown)(),[w,N]=(0,a.useState)(!1),S=(0,ec.useForceStandDown)(),[k,C]=(0,a.useState)(!1),q=(0,ec.useAddMember)(),[D,z]=(0,a.useState)(!1),[R,$]=(0,a.useState)(void 0),A=(0,ec.useRemoveMember)(),[L,O]=(0,a.useState)(void 0),K=(0,ea.useAccess)(),[P,B]=(0,a.useState)(!1);(0,eo.useSignInWhenSessionEnds)([x.error,p.error]);let F=g.data?.find(e=>e.id===o),H=(0,ed.useShips)(F?.members.map(e=>e.shipId)??[]),E=[...H.values()].reduce((e,s)=>e+s.openDeliveries,0),W=[...H.values()].reduce((e,s)=>e+s.inFlightDeliveries,0),Q=b.data?.blueprints.find(e=>e.repository===F?.blueprint.repository&&e.name===F.blueprint.name&&e.version===F.blueprint.version),U=F&&Q?(0,T.roleOptions)(F,{blueprint:Q,templates:b.data?.templates??[]}):[],V=L?H.get(L.shipId):void 0,Z=L?U.find(e=>e.role===L.role):void 0,J=F?.flagship.shipId,et=F?(0,T.squadronActionsOffered)(F,{canManage:K.canManage,canSend:K.canSend,hasRoles:U.length>0}):void 0,ep="add-member"===d&&et?.canAddMember===!0,eg="stand-down"===d&&et?.canStandDown===!0,ef=()=>{void 0!==d&&l.replace(`/squadrons/${o}`,{scroll:!1})},eb=F?.state==="sailing"||F?.state==="standing-down";return(0,s.jsxs)(X.DetailPage,{switcher:u.switcher,account:u.account,onCompose:u.onCompose,onSearch:u.onSearch,banner:u.banner,title:o,parents:[{href:"/squadrons",label:"Squadrons"}],header:(0,s.jsx)(G,{squadron:F,squadronId:o,state:g.data?F?"ready":"not-found":"loading",actions:F&&et?(0,s.jsx)(M,{squadronId:F.id,offered:et,onAddMember:()=>{q.reset(),z(!0)},onMessageFlagship:()=>{B(!0)},onStandDown:()=>{y.reset(),N(!0)},onForceStandDown:()=>{S.reset(),C(!0)}}):void 0,onForceStandDown:K.canManage?()=>{S.reset(),C(!0)}:void 0}),live:p.live,children:["not-connected"===f?(0,s.jsx)(es.SquadronsNotConnected,{}):F?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ee,{health:(0,T.healthCounts)(F.members),work:(0,T.workCounts)(F.members.map(e=>H.get(e.shipId)?.report??null)),openDeliveries:H.size===F.members.length?E:void 0,keptCount:v.data?.length}),(0,s.jsx)(_,{squadron:F,blueprint:Q,templates:b.data?.templates??[],crewLines:j,ships:H,now:c,renderActions:e=>(0,s.jsx)(I,{squadronId:F.id,member:e,ship:H.get(e.shipId),template:U.find(s=>s.role===e.role)?.template,canManage:K.canManage,canSend:K.canSend,isRemovable:eb,onRemove:()=>{A.reset(),O(e)},compose:n.ComposeMessage})})]}):g.data?null:(0,s.jsx)(m.LoadingSkeleton,{variant:"list",label:"Loading the members"}),Q&&(0,s.jsx)(i.HandoffWiring,{blueprint:Q}),F&&(0,s.jsx)(h,{messages:v.data??[],state:v.isError?"error":v.data?"ready":"loading",error:v.error?.message,onRetry:()=>{v.refetch()},flagshipId:F.flagship.shipId,now:c}),F&&(0,s.jsx)(ex,{squadronId:F.id,memberCount:F.members.length,openDeliveries:E,inFlightDeliveries:W,isOpen:w||eg,onOpenChange:e=>{N(e),e||ef()},isPending:y.isPending,error:y.error?.message,onConfirm:()=>{y.mutate(F.id,{onSuccess:()=>{N(!1),ef()}})}}),F&&(0,s.jsx)(ex,{isForced:!0,squadronId:F.id,memberCount:F.members.length,openDeliveries:E,inFlightDeliveries:W,isOpen:k,onOpenChange:C,isPending:S.isPending,error:S.error?.message,onConfirm:()=>{S.mutate(F.id,{onSuccess:()=>{C(!1)}})}}),F&&U.length>0&&(0,s.jsx)(eu,{squadronId:F.id,blueprint:`${F.blueprint.name} v${String(F.blueprint.version)}`,roles:U,isOpen:D||ep,onOpenChange:e=>{z(e),e||ef()},isPending:q.isPending,error:q.error?.message,onSubmit:e=>{q.mutate({squadronId:F.id,role:e},{onSuccess:e=>{z(!1),ef(),$(e)}})}}),F&&L&&(0,s.jsx)(eh,{squadronId:F.id,member:L,othersOfRole:(0,T.otherMembersOfRole)(F,L.shipId),blueprint:Z?{label:`${F.blueprint.name} v${String(F.blueprint.version)}`,count:Z.inBlueprint}:void 0,openDeliveries:V?.openDeliveries??0,inFlightDeliveries:V?.inFlightDeliveries??0,isOpen:void 0!==V,onOpenChange:e=>{e||O(void 0)},isPending:A.isPending,error:A.error?.message,onConfirm:()=>{A.mutate({squadronId:F.id,shipId:L.shipId},{onSuccess:()=>{O(void 0)}})}}),R&&(0,s.jsx)(em,{memberName:R.name,state:"shown",template:U.find(e=>e.role===R.role)?.template,launchNote:R.launchNote,model:R.model,crewLines:R.crewLines,isOpen:!0,onOpenChange:e=>{e||$(void 0)}}),J&&(0,s.jsx)(n.ComposeMessage,{isOpen:P,onOpenChange:B,toShipId:J})]})}],67857)},861966,e=>{"use strict";var s=e.i(843476),t=e.i(689664),a=e.i(508734),n=e.i(271645),i=e.i(574296);e.s(["CopyButton",0,function({value:e,label:r,size:o="xs",isLabeled:d=!1,onCopied:l,onCopyFailed:c,className:u,"data-testid":m}){let[h,x]=(0,n.useState)(!1);async function p(){try{await navigator.clipboard.writeText(e)}catch{c?.();return}x(!0),l?.(),setTimeout(()=>{x(!1)},1500)}return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.Button,{variant:"ghost",size:o,isIconOnly:!d,"aria-label":r,title:d?void 0:r,icon:h?(0,s.jsx)(t.Check,{"aria-hidden":!0}):(0,s.jsx)(a.Copy,{"aria-hidden":!0}),className:u,"data-testid":m,onClick:()=>{p()},children:d?h?"Copied":"Copy":null}),(0,s.jsx)("span",{role:"status",className:"sr-only",children:h?"Copied.":""})]})}])},219321,e=>{"use strict";var s=e.i(843476),t=e.i(965324);e.s(["Skeleton",0,function({className:e,...a}){return(0,s.jsx)("div",{"data-slot":"skeleton","aria-hidden":!0,className:(0,t.classNames)("animate-pulse rounded-sm bg-secondary [animation-duration:var(--duration-pulse)] motion-reduce:animate-none",e),...a})}])},182880,603067,e=>{"use strict";var s=e.i(843476),t=e.i(271645),a=e.i(866616),n=e.i(861966),i=e.i(60592);e.s(["CompactCrewLine",0,function({crewLines:e,subject:r,testIdPrefix:o,onCopied:d,onCopyFailed:l}){let[c,u]=(0,t.useState)(e[0]?.harness),m=e.find(e=>e.harness===c)??e[0];if(!m)return null;let h=(0,a.crewLineHarnessWord)(m.harness);return(0,s.jsxs)("div",{className:"flex min-w-0 items-center gap-2 max-sm:flex-col max-sm:items-stretch",children:[(0,s.jsx)(i.Tabs,{value:m.harness,onValueChange:s=>{let t=e.find(e=>e.harness===s);t&&u(t.harness)},children:(0,s.jsx)(i.TabsList,{"aria-label":`Crew ${r} from`,children:e.map(e=>(0,s.jsx)(i.TabsTrigger,{value:e.harness,"data-testid":`${o}-${e.harness}-tab`,children:(0,a.crewLineHarnessWord)(e.harness)},e.harness))})}),(0,s.jsx)("code",{"data-testid":`${o}-${m.harness}`,title:m.line,className:"min-w-0 grow truncate rounded-md bg-muted px-2 py-1 font-mono text-code text-foreground",children:m.line}),(0,s.jsx)(n.CopyButton,{value:m.line,label:`Copy the ${h} crew line for ${r}`,isLabeled:!0,onCopied:d,onCopyFailed:l,"data-testid":`${o}-${m.harness}-copy`})]})}],182880);var r=e.i(226091);e.s(["LaunchNote",0,function({note:e,model:t,template:a,testId:n}){return null===e&&null===t?null:(0,s.jsxs)("div",{className:"flex items-start gap-2 rounded-md bg-muted px-3 py-2 text-meta",children:[(0,s.jsx)(r.FileText,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon-sm) shrink-0 text-muted-foreground"}),(0,s.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,s.jsxs)("span",{className:"text-muted-foreground",children:["Launch note",void 0===a?"":` \xb7 ${a}`]}),null!==e&&(0,s.jsx)("span",{"data-testid":n,children:e}),null!==t&&(0,s.jsxs)("span",{children:["Runs ",(0,s.jsx)("span",{className:"font-mono",children:t})]})]})]})}],603067)},67874,e=>{"use strict";var s=e.i(843476),t=e.i(965324);e.s(["EmptyState",0,function({title:e,description:a,icon:n,action:i,variant:r="page",className:o}){return"section"===r?(0,s.jsxs)("p",{"data-slot":"empty-state","data-variant":r,className:(0,t.classNames)("rounded-lg border border-border px-4 py-3 text-center text-meta text-muted-foreground",o),children:[e,a?(0,s.jsxs)(s.Fragment,{children:[" ",a]}):null]}):"no-results"===r?(0,s.jsxs)("div",{"data-slot":"empty-state","data-variant":r,className:(0,t.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,s.jsx)("p",{className:"text-meta text-muted-foreground",children:e}),i]}):(0,s.jsxs)("div",{"data-slot":"empty-state","data-variant":r,className:(0,t.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:[n?(0,s.jsx)("span",{"aria-hidden":!0,className:"flex size-10 items-center justify-center rounded-lg border border-border bg-muted text-muted-foreground [&_svg]:size-(--size-icon-xl)",children:n}):null,(0,s.jsx)("h2",{className:"text-heading font-semibold text-foreground max-sm:text-heading-touch",children:e}),a?(0,s.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:a}):null,i?(0,s.jsx)("div",{className:"mt-1 max-sm:w-full max-sm:[&>*]:w-full",children:i}):null]})}])},188393,e=>{"use strict";var s=e.i(843476),t=e.i(965324),a=e.i(219321);function n(e){return Array.from({length:e},(e,s)=>`row-${String(s)}`)}e.s(["LoadingSkeleton",0,function({variant:e,rows:i=4,label:r="Loading",className:o}){return(0,s.jsxs)("div",{role:"status","data-slot":"loading-skeleton","data-variant":e,className:(0,t.classNames)("w-full",o),children:[(0,s.jsx)("span",{className:"sr-only",children:r}),"table"===e?(0,s.jsxs)("div",{className:"overflow-hidden rounded-lg border border-border bg-card shadow-sm",children:[(0,s.jsx)("div",{className:"h-(--size-row-header) border-b border-border bg-muted"}),n(i).map(e=>(0,s.jsxs)("div",{className:"flex h-(--size-row) items-center gap-8 border-b border-border px-4 last:border-0",children:[(0,s.jsx)(a.Skeleton,{className:"h-2.5 w-24"}),(0,s.jsx)(a.Skeleton,{className:"h-5 w-16"}),(0,s.jsx)(a.Skeleton,{className:"h-5 w-20"}),(0,s.jsx)(a.Skeleton,{className:"h-2.5 w-28"})]},e))]}):null,"cards"===e?(0,s.jsx)("div",{className:"grid grid-cols-2 gap-3 lg:grid-cols-4",children:n(4).map(e=>(0,s.jsxs)("div",{className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,s.jsx)(a.Skeleton,{className:"h-2.5 w-20"}),(0,s.jsx)(a.Skeleton,{className:"h-6 w-10"}),(0,s.jsx)(a.Skeleton,{className:"h-2.5 w-28"})]},e))}):null,"detail"===e?(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)(a.Skeleton,{className:"h-7 w-48"}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(a.Skeleton,{className:"h-5 w-20"}),(0,s.jsx)(a.Skeleton,{className:"h-5 w-16"})]}),(0,s.jsx)(a.Skeleton,{className:"h-16 w-full rounded-lg"})]}):null,"list"===e?(0,s.jsx)("div",{className:"overflow-hidden rounded-lg border border-border bg-card",children:n(i).map(e=>(0,s.jsxs)("div",{className:"flex flex-col gap-2.5 border-b border-border px-3.5 py-3 last:border-0",children:[(0,s.jsxs)("div",{className:"flex justify-between",children:[(0,s.jsx)(a.Skeleton,{className:"h-3 w-28"}),(0,s.jsx)(a.Skeleton,{className:"h-5 w-16"})]}),(0,s.jsx)(a.Skeleton,{className:"h-2.5 w-44"})]},e))}):null]})}])},837631,e=>{"use strict";var s=e.i(843476),t=e.i(577880),a=e.i(485538);e.s(["DetailPage",0,function({title:e,parents:n,header:i,children:r,sheet:o,live:d,switcher:l,account:c,onCompose:u,onSearch:m,banner:h}){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.Header,{breadcrumb:e,parents:n,live:d,switcher:l,account:c,onCompose:u,onSearch:m}),h,(0,s.jsx)(a.TopBar,{title:e,live:d,back:n[n.length-1]??n[0]}),(0,s.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,r]}),o]})}])},577880,485538,e=>{"use strict";var s=e.i(843476),t=e.i(566595),a=e.i(374368),n=e.i(574296),i=e.i(298260),r=e.i(704974),o=e.i(965324);function d({switcher:e,account:l,onSearch:c,searchLabel:u="Search or jump to",children:m,actions:h,className:x}){return(0,s.jsxs)("header",{"data-slot":"app-header",className:(0,o.classNames)("sticky top-0 z-30 flex h-(--size-header) shrink-0 items-center justify-between gap-4 border-b border-border bg-background px-6",x),children:[(0,s.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[void 0===e?(0,s.jsx)("span",{"data-testid":"app-switcher-loading","aria-hidden":!0,className:"h-4 w-36 shrink-0 animate-pulse rounded bg-muted motion-reduce:animate-none"}):(0,s.jsx)(a.AppSwitcher,{switcher:e,layout:"full",className:"shrink-0"}),m]}),(0,s.jsxs)("div",{className:"flex shrink-0 items-center gap-3",children:[h,c?(0,s.jsxs)(n.Button,{size:"sm",icon:(0,s.jsx)(t.Search,{"aria-hidden":!0}),"data-testid":"header-search",className:"w-60 justify-start font-normal text-muted-foreground max-lg:w-auto",onClick:c,children:[(0,s.jsx)("span",{className:"grow text-left max-lg:sr-only",children:u}),(0,s.jsx)(i.Kbd,{children:"⌘K"})]}):null,(0,s.jsx)(r.AvatarMenu,{...l})]})]})}var l=e.i(867927),c=e.i(819759),u=e.i(522016);let m={live:{label:"Live",dot:"bg-tone-ok-fg"},reconnecting:{label:"Reconnecting",dot:"bg-tone-waiting-fg"},offline:{label:"Offline",dot:"bg-tone-attention-fg"}};function h({state:e,className:t}){let{label:a,dot:n}=m[e];return(0,s.jsxs)("span",{"data-slot":"live-status","data-state":e,"aria-live":"polite",className:(0,o.classNames)("inline-flex items-center gap-1.5 text-meta text-muted-foreground",t),children:[(0,s.jsx)("span",{"aria-hidden":!0,className:(0,o.classNames)("size-2 shrink-0 rounded-full",n)}),a]})}e.s(["Header",0,function({breadcrumb:e,parents:t=[],live:a,switcher:i,account:r,onCompose:o,onSearch:m}){return(0,s.jsxs)(d,{switcher:i,account:r,onSearch:m,searchLabel:"Search ships or jump to",className:"hidden sm:flex",actions:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(h,{state:a}),o?(0,s.jsx)(n.Button,{size:"sm",icon:(0,s.jsx)(c.SquarePen,{"aria-hidden":!0}),"data-testid":"header-compose",onClick:o,children:"Compose"}):null]}),children:[(0,s.jsx)(l.ChevronRight,{"aria-hidden":!0,className:"size-3.5 shrink-0 text-muted-foreground"}),(0,s.jsx)("nav",{"aria-label":"Breadcrumb","data-testid":"header-breadcrumb",className:"min-w-0 text-body",children:(0,s.jsxs)("ol",{className:"flex min-w-0 items-center gap-1.5",children:[t.map(e=>(0,s.jsxs)("li",{className:"flex shrink-0 items-center gap-1.5",children:[(0,s.jsx)(u.default,{href:e.href,className:"text-muted-foreground hover:text-foreground hover:underline",children:e.label}),(0,s.jsx)(l.ChevronRight,{"aria-hidden":!0,className:"size-3.5 text-muted-foreground"})]},e.href)),(0,s.jsx)("li",{"aria-current":"page",className:"truncate font-medium text-foreground",children:e})]})})]})}],577880);var x=e.i(24071);e.s(["TopBar",0,function({title:e,live:i,actions:o,back:d,switcher:l,account:c,onSearch:m}){let p=m&&!d?m:void 0;return(0,s.jsxs)("header",{"data-slot":"top-bar","data-mode":d?"detail":"root",className:"sticky top-0 z-30 flex h-(--size-header) items-center gap-2.5 border-b border-border bg-background px-4 sm:hidden",children:[d?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(u.default,{href:d.href,className:"-ml-1.5 inline-flex h-(--size-control-touch) shrink-0 items-center gap-0.5 rounded-md pr-2 text-body-touch text-foreground focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon)",children:[(0,s.jsx)(x.ChevronLeft,{"aria-hidden":!0}),d.label]}),(0,s.jsx)("p",{className:"min-w-0 flex-1 truncate text-center text-body-touch font-semibold text-foreground",children:e})]}):l?(0,s.jsx)(a.AppSwitcher,{switcher:l,layout:"compact",className:"min-w-0"}):(0,s.jsx)("p",{className:"truncate px-1.5 text-title-touch font-semibold text-foreground",children:"Console"}),(0,s.jsx)(h,{state:i}),o||p||c&&!d?(0,s.jsxs)("div",{className:"ml-auto flex items-center gap-1",children:[p?(0,s.jsx)(n.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Search ships or jump to","data-testid":"top-bar-search",onClick:p,children:(0,s.jsx)(t.Search,{"aria-hidden":!0})}):null,o,c&&!d?(0,s.jsx)(r.AvatarMenuSheet,{...c}):null]}):null]})}],485538)},497759,e=>{"use strict";var s=e.i(843476),t=e.i(594831),a=e.i(522016),n=e.i(574296),i=e.i(67874);e.s(["SquadronsNotConnected",0,function(){return(0,s.jsx)(i.EmptyState,{icon:(0,s.jsx)(t.Unplug,{"aria-hidden":!0}),title:"Squadrons is not connected",description:"Connect it in Settings; squadrons, blueprints and templates show up here then.",action:(0,s.jsx)(n.Button,{nativeButton:!1,render:(0,s.jsx)(a.default,{href:"/settings"}),"data-testid":"squadrons-open-settings",children:"Open Settings"})})}])},149652,e=>{"use strict";var s=e.i(843476),t=e.i(768877),a=e.i(831458),n=e.i(271645),i=e.i(965324),r=e.i(766390);function o({name:e,count:t,onHover:n}){let i={onPointerEnter:()=>{n(e)},onPointerLeave:()=>{n(void 0)}};return"flagship"===e?(0,s.jsxs)(r.Badge,{variant:"kind",...i,children:[(0,s.jsx)(a.Flag,{"aria-hidden":!0}),"flagship"]}):(0,s.jsxs)(r.Badge,{variant:"type",...i,children:[e,void 0!==t&&t>1&&(0,s.jsxs)("span",{className:"text-muted-foreground",children:["×",t]})]})}e.s(["HandoffWiring",0,function({blueprint:e}){let[a,r]=(0,n.useState)(void 0),d=new Map(e.roles.map(e=>[e.name,e.count]));return(0,s.jsxs)("section",{"aria-labelledby":"handoff-wiring","data-testid":"handoff-wiring",className:"flex flex-col gap-2 rounded-lg border border-border p-3",children:[(0,s.jsxs)("div",{className:"flex items-baseline justify-between gap-2",children:[(0,s.jsx)("h2",{id:"handoff-wiring",className:"text-body font-semibold",children:"Hand-offs"}),(0,s.jsxs)("span",{className:"text-meta text-muted-foreground",children:["from blueprint ",e.name," v",e.version]})]}),0===e.handoffs.length?(0,s.jsx)("p",{className:"text-meta text-muted-foreground",children:"No hand-offs. Members only hear from the flagship and from each other by name."}):(0,s.jsx)("ul",{className:"grid grid-cols-[auto_auto_1fr] items-center gap-x-4 text-meta",children:e.handoffs.map(e=>(0,s.jsxs)("li",{"data-testid":"handoff-row",className:(0,i.classNames)("col-span-3 grid grid-cols-subgrid items-center rounded-md px-1.5 py-1",void 0!==a&&(e.role===a||e.to===a)?"bg-muted":void 0),children:[(0,s.jsx)("span",{children:(0,s.jsx)(o,{name:e.role,count:d.get(e.role),onHover:r})}),(0,s.jsxs)("span",{className:"flex items-center gap-1 font-mono text-muted-foreground",children:[e.handoff,(0,s.jsx)(t.ArrowRight,{"aria-label":"goes to",className:"size-(--size-icon-sm)"})]}),(0,s.jsx)("span",{children:(0,s.jsx)(o,{name:e.to,count:d.get(e.to),onHover:r})})]},`${e.role}.${e.handoff}`))})]})}])},718423,e=>{"use strict";var s=e.i(912598),t=e.i(905861),a=e.i(271645),n=e.i(586413),i=e.i(123938),r=e.i(427702);let o=new Set(["FleetInitialised","ShipCommissioned","ShipClaimed","LeaseRevoked","CredentialRevoked","StartingPromptIssued","ShipRetired","DeliveryAcknowledged","DeliveryUndeliverable","ShipReported","CrewRequested","CrewRequestRemoved","CrewAssigned","CrewStatusChanged","CrewRequestExplained","CrewRequestGivenBack","LabelAssigned","LabelUnassigned","LabelRetired"]);function d(e,s){return e.pages.some(e=>e.items.some(e=>e.id===s))}let l=new Set(["LabelDefined","LabelValuesChanged","LabelRetired","LabelAssigned","LabelUnassigned","LabelDeleted"]),c=new Set(["DeliveryUndeliverable","DeliveryNotHandled","DeliveryDismissed"]),u=new Set(["NetworkRulesSet","NetworkRulesDraftSaved","NetworkRulesDraftDiscarded","NetworkRulesDeclared","BuiltInRuleChanged"]);e.s(["useLiveFleet",0,function(){let e=(0,r.useTRPC)(),m=(0,s.useQueryClient)(),[h,x]=(0,a.useState)(new Set),p=(0,i.useIsReopening)(),[g]=(0,a.useState)(()=>{let s,t,a,i;return function(e){var s;let t,a,i,{trpc:r,queryClient:m,reload:h}=e,x=[...r.fleet.list.infiniteQueryKey()],p=()=>m.getQueriesData({queryKey:x}).flatMap(([,e])=>void 0===e?[]:[e]),g=(s={readRow:e=>m.query({...r.fleet.listedShip.queryOptions({shipId:e}),staleTime:0}),writeRow:s=>{let t=p().some(e=>!d(e,s.id));m.setQueriesData({queryKey:x},e=>e&&function(e,s){if(d(e,s.id))return{...e,pages:e.pages.map(e=>{var t;return{...e,items:(t=e.items,t.map(e=>e.id===s.id?s:e))}})};let[t,...a]=e.pages;return void 0===t?e:{...e,pages:[{...t,items:[s,...t.items]},...a]}}(e,s)),t&&e.onPlacedFirst(s.id)}},t=new Set,a=new Set,i=async e=>{t.add(e);try{do a.delete(e),s.writeRow(await s.readRow(e));while(a.has(e))}catch{}finally{t.delete(e),a.delete(e)}},e=>{t.has(e)?a.add(e):i(e)}),f=()=>{h(r.fleet.stuckCount.queryKey()),h(r.fleet.stuckSummary.queryKey()),h(r.fleet.stuck.pathKey())};return e=>{var s,t,a,i,d;if("resync"===e.kind){h(r.fleet.pathKey()),h(n.INBOX_KEY);return}let{event:m}=e;for(let e of new Set([m.shipId,m.actorShipId]))null!==e&&(h(r.fleet.ship.queryKey({shipId:e})),h(r.fleet.shipTimeline.infiniteQueryKey({shipId:e})),h(r.fleet.shipWay.queryKey({shipId:e})));if(null!==m.messageId&&(h(r.fleet.shipMessages.pathKey()),h(r.fleet.shipWay.pathKey()),h(r.fleet.message.queryKey({messageId:m.messageId})),h(r.fleet.messageDeliveries.infiniteQueryKey({messageId:m.messageId})),h(r.fleet.inbox.pathKey()),h(r.fleet.inboxCount.queryKey()),h(n.INBOX_KEY),f()),"DeliveryAcknowledged"===m.type&&h(r.fleet.acknowledged.queryKey()),s=m.type,c.has(s)&&h(r.fleet.needsAttention.pathKey()),t=m.type,l.has(t)&&h(r.fleet.labels.queryKey()),"NetworkRulesDeclared"===m.type&&h(r.fleet.declaredNetworkRules.queryKey()),("BuiltInRuleChanged"===(a=m.type)||"NetworkRulesSet"===a)&&h(r.fleet.builtInRules.queryKey()),i=m.type,u.has(i)&&(h(r.fleet.networkRules.queryKey()),h(r.fleet.networkRulesDraftChanges.queryKey()),h(r.fleet.explainReach.pathKey())),d=m.type,o.has(d)){if(p().length>0)for(let e of new Set([m.shipId,m.actorShipId]))null!==e&&g(e);h(r.fleet.shipCounts.pathKey()),f()}}}({trpc:e,queryClient:m,reload:(s=new Set,t=new Set,a=e=>m.invalidateQueries({queryKey:e,exact:!0},{cancelRefetch:!1}),i=async e=>{s.add(e.queryHash);let n=e.isBehind;try{for(await a(e.queryKey);n||t.delete(e.queryHash);)n=!1,await a(e.queryKey)}finally{s.delete(e.queryHash)}},e=>{for(let a of m.getQueryCache().findAll({queryKey:e}))s.has(a.queryHash)?t.add(a.queryHash):i({queryHash:a.queryHash,queryKey:a.queryKey,isBehind:"fetching"===a.state.fetchStatus})}),onPlacedFirst:e=>{x(s=>new Set([...s,e]))}})}),f=(0,t.useSubscription)(e.fleet.events.subscriptionOptions({lastEventId:null},{onData:({data:e})=>{g(e)}}));return{live:"connecting"===f.status&&p?"live":function(e){switch(e){case"pending":return"live";case"connecting":return"reconnecting";case"idle":case"error":return"offline"}}(f.status),placedFirstShipIds:h,error:f.error}}])},928459,415168,e=>{"use strict";var s=e.i(621482),t=e.i(954616),a=e.i(912598),n=e.i(731877),i=e.i(427702);function r(e){return e.map(({valueId:e,key:s,value:t})=>null===s||null===t?e:`${s}=${t}`).join(" and ")}function o(e){switch(e.kind){case"type":return`any ship of type ${e.type}`;case"meeting":return`every other participant of meeting ${e.meetingId}`;case"label":return`every ship carrying ${r(e.values)}`}}function d(e){let s=String(e.attempts-1);return e.isPushed?`Handed ${s} times, never confirmed; fifth refused: undeliverable.`:`Handed (pulled) ${s} times, never acknowledged; fifth receive refused: undeliverable.`}e.s(["labelSelectionWords",0,r,"recipientGroupWords",0,o],415168);let l="Acknowledged, then its turn died; handed once more, and that turn died too: not handled.";function c(){let e=(0,i.useTRPC)(),s=(0,a.useQueryClient)();return()=>s.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 d(e);case"notHandled":return null===e.reason?l:`${l} Its crew said: ${e.reason}.`}},"canResend",0,function(e){return!e.message.isPing},"deliveryWithId",0,function(e,s){return e?.find(e=>e.deliveryId===s)},"resentToast",0,function(e){return{title:"Message resent",description:`A new message went to ${function(e){let{recipient:s}=e.message;return"ship"===s.kind?s.ship.name:o(s)}(e)}. The original is dismissed.`}},"undeliverableReason",0,d,"useDismissDelivery",0,function(){let e=(0,i.useTRPC)(),s=c();return(0,t.useMutation)(e.fleet.dismiss.mutationOptions({onSuccess:s}))},"useNeedsAttention",0,function(e={}){let t=(0,i.useTRPC)();return(0,n.pagedListOf)((0,s.useInfiniteQuery)(t.fleet.needsAttention.infiniteQueryOptions({...e,limit:n.CONSOLE_PAGE_SIZE},{getNextPageParam:n.nextCursorOf})))},"useResendDelivery",0,function(){let e=(0,i.useTRPC)(),s=c();return(0,t.useMutation)(e.fleet.resend.mutationOptions({onSuccess:s}))}],928459)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,242047,e=>{"use strict";var t=e.i(843476),s=e.i(758925),i=e.i(980799),a=e.i(522016),n=e.i(618566),l=e.i(271645),r=e.i(574296),o=e.i(748955),d=e.i(152886),c=e.i(985512),u=e.i(892870),h=e.i(965324),m=e.i(219321);let p={ok:"border-tone-ok-border bg-tone-ok-bg text-tone-ok-fg",waiting:"border-tone-waiting-border bg-tone-waiting-bg text-tone-waiting-fg",attention:"border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg"};function x({label:e,shortLabel:s,value:i,detail:n,href:l,icon:r,tone:o,testId:d}){return(0,t.jsxs)(a.default,{href:l,"data-testid":d,className:"flex min-w-0 flex-col gap-2 rounded-lg border border-border bg-card px-4.5 py-4 shadow-sm transition-colors duration-(--duration-fast) hover:bg-accent max-sm:gap-1.5 max-sm:rounded-xl max-sm:px-3.5 max-sm:py-3",children:[(0,t.jsxs)("span",{className:"flex items-center justify-between gap-2 text-meta font-medium text-muted-foreground",children:[(0,t.jsx)("span",{className:"max-sm:hidden",children:e}),(0,t.jsx)("span",{className:"sm:hidden",children:s??e}),(0,t.jsx)("span",{className:(0,h.classNames)("flex size-6.5 shrink-0 items-center justify-center rounded-md border max-sm:size-5.5",p[o]),children:(0,t.jsx)(r,{"aria-hidden":!0,className:"size-3.5"})})]}),void 0===i?(0,t.jsx)(m.Skeleton,{className:"h-7 w-10 max-sm:h-6"}):(0,t.jsx)("span",{className:"text-[28px] leading-none font-semibold tracking-tight tabular-nums text-foreground max-sm:text-2xl",children:i}),void 0===n?(0,t.jsx)(m.Skeleton,{className:"h-4 w-32"}):(0,t.jsx)("span",{className:"truncate text-meta text-muted-foreground",children:n})]})}var f=e.i(190437),g=e.i(296676),j=e.i(849635),v=e.i(463529);function w(e){return e.find(e=>"agent"===e.kind)}function b(){var e;let s,i,a=(0,v.useShipCounts)(),n=(0,f.useStuckCount)().data,l=(0,g.useNow)(),r=a.data&&(s=w((e={counts:a.data,now:l}).counts),i=s?.longestWait??null,{activeCount:s?.active??0,crewedCount:s?.crewed??0,awaitingCount:s?.awaitingCrew??0,longestWait:null===i?void 0:{name:i.name,wait:(0,j.duration)(new Date(i.awaitingCrewSince),e.now)}});return r?.activeCount===0?null:(0,t.jsxs)("div",{className:"grid grid-cols-3 gap-4 max-sm:grid-cols-2 max-sm:gap-2.5","data-testid":"overview-metrics",children:[(0,t.jsx)(x,{label:"Ships crewed",shortLabel:"Crewed",value:r?.crewedCount,detail:r&&`of ${String(r.activeCount)} active ships`,href:"/?status=crewed",icon:u.UserCheck,tone:"ok",testId:"overview-crewed"}),(0,t.jsx)(x,{label:"Awaiting crew",value:r?.awaitingCount,detail:r&&(r.longestWait?`Longest wait: ${r.longestWait.name}, ${r.longestWait.wait}`:"Every active ship is crewed"),href:"/?status=awaitingCrew",icon:d.CircleDashed,tone:"waiting",testId:"overview-awaiting"}),(0,t.jsx)(x,{label:"Stuck",value:n?.count,detail:n&&(null===n.oldestSince?"Delivering":`Deliveries stuck, oldest ${(0,j.duration)(new Date(n.oldestSince),l)}`),href:"/fleet-health",icon:c.OctagonAlert,tone:"attention",testId:"overview-stuck"})]})}var y=e.i(77071),k=e.i(917540),C=e.i(34512),N=e.i(808041),S=e.i(905387),q=e.i(878608),I=e.i(440407),T=e.i(341880),L=e.i(749092),O=e.i(87600),R=e.i(516752),z=e.i(686165),M=e.i(448695),P=e.i(500265),A=e.i(153040);let $=(0,k.lazyDialog)(()=>e.A(438801).then(e=>e.CommissionDialog),e=>e.isOpen),V=(0,k.lazyDialog)(()=>e.A(495953).then(e=>e.StartingPromptDialog),e=>e.isOpen);function F({isOpen:e,onOpenChange:s}){var i;let a,n,o=(0,L.useFleetLimits)(),d=(0,O.useHostedAccountUrl)(),c=(0,S.useCommissionShip)(),u=(0,S.useRequestCrew)(),h="connected"===(0,P.useTrierarchPluginConnection)(),m=(0,P.useMachines)(),p=(0,P.useEnabledModels)(),x=(0,z.useSquadronsConnection)(),f=(0,M.useSquadrons)(),[g,j]=(0,l.useState)(!1),[v,w]=(0,l.useState)(null),b=(0,N.offersOf)(m.data??[],p.data??[]),k=(0,S.useLabelContext)(m.data?.map(e=>e.shipId)),{shipLabelsMax:B,fleetScopes:E}=(0,C.useConsoleConstants)(),D=(0,S.useFleetScopes)(),H=void 0===k||void 0===m.data?void 0:(0,q.machineLabelsInputOf)(k,{machines:m.data,shipLabelsMax:B}),U=(0,P.useCrewSettingsCheck)(e&&h?null===v?(0,N.settingsOf)((0,N.defaultValues)(b)):v:void 0),_=(0,A.useShipTypes)(!1),[K,W]=(0,l.useState)({name:"",type:""}),G=(0,I.useIsShipNameTaken)(K.name),Q=(0,A.useTypeShipCount)(K.type),Z=(e,t)=>{c.mutate(e,{onSuccess:({shipId:i})=>{s(!1);let a=h&&void 0!==t;a||j(!0),void 0!==t&&u.mutate({shipId:i,settings:t.settings},{onSuccess:()=>{a&&(0,T.showToast)({title:`${e.name} commissioned, crew requested`,description:"The trierarch plugin assigns a trierarch that fits.",tone:"success"})},onError:t=>{(0,T.showToast)({title:`Couldn’t request a crew for ${e.name}`,description:`${t.message} The ship is commissioned; request a crew on its page.`,tone:"error"})}})}})};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Button,{variant:"primary",icon:(0,t.jsx)(y.Plus,{}),"data-testid":"fleet-commission",onClick:()=>{c.reset(),w(null),s(!0)},children:"Commission ship"}),(0,t.jsx)($,{types:_??[],taken:{names:!0===G?[K.name]:[],typeShipCounts:new Map(void 0===Q?[]:[[K.type,Q]])},onTypedChange:W,isOpen:e,onOpenChange:s,isPending:c.isPending,error:c.error?.message,shipLimit:(0,R.shipLimitReached)(o.data),accountUrl:d,scopeGroups:void 0===D.data?void 0:(i=D.data,a=new Map(i.filter(({kind:e})=>"core"===e).flatMap(({scopes:e})=>e.map(({scope:e,description:t})=>[e,t]))),n=E.flatMap(e=>{let t=a.get(e);return void 0===t?[]:[{scope:e,description:t}]}),[{title:"Fleet access",namespace:null,scopes:n},...i.flatMap(({namespace:e,kind:t,declaredBy:s,scopes:i})=>"plugin"!==t||null===s||0===i.length?[]:[{title:s.name,namespace:e,scopes:i.map(({scope:e,description:t})=>({scope:e,description:t}))}]),...i.flatMap(({namespace:e,kind:t,scopes:s})=>"fleet"!==t?[]:[{title:"The fleet's own",namespace:e,scopes:s.map(({scope:e,description:t})=>({scope:e,description:t}))}])]),...h?{crewRequest:{offers:b,squadrons:"connected"===x?(f.data??[]).filter(e=>"disbanded"!==e.state).map(e=>e.id):void 0,...void 0===H?{}:{machineLabels:H},check:U.data,onSettingsChange:w}}:{},onSubmit:(e,t)=>{let s={...e,idempotencyKey:crypto.randomUUID()};h&&void 0!==t?U.checkNow().catch(()=>void 0).then(e=>{e?.kind!=="refused"&&Z(s,t)}).catch(()=>void 0):Z(s,t)}}),(0,t.jsx)(V,{shipName:c.variables?.name??"",state:"shown",prompt:c.data?.prompt??void 0,crewLines:c.data?.crewLines??void 0,isOpen:g&&void 0!==c.data,onOpenChange:e=>{e||(j(!1),c.reset())},onConfirm:()=>void 0})]})}var B=e.i(456420);let E={name:"infinity",size:24,node:[["path",{d:"M6 16c5 0 7-8 12-8a4 4 0 0 1 0 8c-5 0-7-8-12-8a4 4 0 1 0 0 8",key:"18ogeb"}]]};E.node;let D=(0,B.default)(E);var H=e.i(730274),U=e.i(749287),_=e.i(78865);let K={ships:{label:"Ships",unit:"ships",Icon:U.Ship},messages:{label:"Messages today",unit:"messages",Icon:H.Send}},W={below:"bg-primary",at:"bg-tone-waiting-fg",over:"bg-tone-attention-fg"},G={at:"at-limit",over:"over-limit"};function Q({kind:e,count:s,limit:i,resetsAt:a}){let{label:n,unit:l,Icon:r}=K[e],o=(0,R.meterState)({count:s,limit:i}),d=G[o],c=(0,R.meterCaption)({count:s,limit:i}),u=null===i?0:0===i?1:Math.min(s/i,1);return(0,t.jsxs)("div",{"data-testid":`limit-meter-${e}`,"data-state":o,className:"flex flex-col gap-2 rounded-lg border border-border bg-card p-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-meta font-medium text-muted-foreground",children:[(0,t.jsx)(r,{"aria-hidden":!0,className:"size-(--size-icon-sm)"}),n]}),void 0===d?null:(0,t.jsx)(_.StatusBadge,{status:d})]}),(0,t.jsxs)("p",{className:"flex items-baseline gap-1.5",children:[(0,t.jsx)("span",{className:"text-metric font-semibold tabular-nums",children:(0,R.meterCount)(s)}),(0,t.jsx)("span",{className:"text-body text-muted-foreground",children:null===i?l:`of ${(0,R.meterCount)(i)} ${l}`})]}),null===i?(0,t.jsxs)("p",{className:"inline-flex items-center gap-1.5 text-meta text-muted-foreground",children:[(0,t.jsx)(D,{"aria-hidden":!0,className:"size-(--size-icon-sm)"}),"No limit"]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{role:"meter","aria-label":`${n}: ${String(s)} of ${String(i)}`,"aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":i,className:"block h-1.5 overflow-hidden rounded-full bg-secondary",children:(0,t.jsx)("span",{className:(0,h.classNames)("block h-full rounded-full","none"===o?void 0:W[o]),style:{width:`${String(100*u)}%`}})}),(0,t.jsxs)("p",{"data-testid":`limit-meter-${e}-caption`,className:"text-caption text-muted-foreground",children:[c,void 0===a?null:` \xb7 resets at ${(0,R.resetTime)(a)}`]})]})]})}function Z(){let e=(0,L.useFleetLimits)().data,s=(0,O.useHostedAccountUrl)();return(0,R.hasLimits)(e)?(0,t.jsxs)("section",{"aria-labelledby":"overview-limits-title","data-testid":"overview-limits",className:"flex flex-col gap-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsx)("h2",{id:"overview-limits-title",className:"text-body font-semibold",children:"Limits"}),void 0===s?null:(0,t.jsx)("a",{href:s,"data-testid":"overview-limits-view",className:"text-meta font-medium text-primary underline underline-offset-2",children:"View limits"})]}),(0,t.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,t.jsx)(Q,{kind:"ships",count:e.ships.count,limit:e.ships.limit}),(0,t.jsx)(Q,{kind:"messages",count:e.dailyMessages.count,limit:e.dailyMessages.limit,resetsAt:e.dailyMessages.resetsAt})]}),(0,t.jsx)("p",{"data-testid":"overview-limits-retention",className:"text-meta text-muted-foreground",children:(0,R.retentionLine)(e.retention)})]}):null}var J=e.i(609176),X=e.i(784294),Y=e.i(619273),ee=e.i(621482),et=e.i(266027),es=e.i(731877),ei=e.i(42756),ea=e.i(427702);function en(e,t){return e.reduce((e,s)=>e+t(s),0)}function el(e,t){let s=t.status?.includes("retired")??!1;return{shown:en(e.view,e=>e.active+(s?e.retired:0)),total:en(e.fleet,e=>e.active+e.retired),retired:en(e.fleet,e=>e.retired)}}var er=e.i(772382),eo=e.i(831458),ed=e.i(869309),ec=e.i(566595);let eu={name:"sliders-horizontal",size:24,node:[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]]};eu.node;let eh=(0,B.default)(eu);var em=e.i(765649),ep=e.i(638919);let ex=["console","claudeCode","codex","trierarch","plugin","other"],ef={console:"Console",claudeCode:"Claude Code",codex:"Codex",trierarch:"Trierarch",plugin:"Plugin",other:"Other"};function eg(e){return ex.some(t=>t===e)}var ej=e.i(349841);let ev={query:"",filters:{status:[],crewRequest:[],kind:[],type:[],squadron:[],isRetiredShown:!1,labelValueIds:[]},sort:null};function ew(e){return[...new Set([...e.values()].map(e=>e.squadronId))].toSorted((e,t)=>e.localeCompare(t))}let eb={crewed:"Crewed",awaitingCrew:"Awaiting crew"};function ey(e){return eC(e).length+e.labelValueIds.length}function ek(e,t){return 0===t.length?void 0:`${e}: ${t.join(", ")}`}function eC(e){return[ek("Status",e.status.map(e=>eb[e])),ek("Crew request",e.crewRequest.map(ej.crewRequestKeyWord)),ek("Kind",e.kind.map(e=>ef[e])),ek("Type",e.type),ek("Squadron",e.squadron),e.isRetiredShown?"Retired shown":void 0].filter(e=>void 0!==e)}var eN=e.i(280581),eS=e.i(766390),eq=e.i(212470),eI=e.i(791727),eT=e.i(975867),eL=e.i(414732),eO=e.i(67874),eR=e.i(817981),ez=e.i(298421),eM=e.i(695960);function eP({chips:e,width:s,testId:i,href:n}){if(0===e.length)return null;let{shown:l,folded:r}=0===s?{shown:[],folded:e}:(0,eN.rowChips)(e,s);return(0,t.jsxs)("span",{"data-testid":i,className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[l.map((e,s)=>(0,t.jsx)(eM.LabelChip,{chip:e,className:0===s?"min-w-0 shrink":void 0},e.valueId)),0===r.length?null:void 0===n?(0,t.jsxs)("span",{title:r.map(eN.chipTitleOf).join("; "),className:"inline-flex h-5.5 shrink-0 items-center rounded-sm bg-secondary px-1.5 text-caption font-medium text-foreground tabular-nums",children:["+",r.length,(0,t.jsx)("span",{className:"sr-only",children:" more labels"})]}):(0,t.jsxs)(a.default,{href:n,title:r.map(eN.chipTitleOf).join("; "),"aria-label":`View ${r.length} more labels`,className:"inline-flex h-5.5 shrink-0 items-center rounded-sm bg-secondary px-1.5 text-caption font-medium text-foreground tabular-nums hover:underline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring",children:["+",r.length]})]})}var eA=e.i(188393);let e$={name:"signal",size:24,node:[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M17 20V8",key:"1tkaf5"}],["path",{d:"M22 4v16",key:"sih9yq"}]]};e$.node;let eV=(0,B.default)(e$),eF={name:"signal-low",size:24,node:[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}]]};eF.node;let eB=(0,B.default)(eF),eE={name:"signal-medium",size:24,node:[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}]]};eE.node;let eD=(0,B.default)(eE);var eH=e.i(663240);let eU={fresh:{Icon:eV,tone:"text-tone-ok-fg"},while:{Icon:eD,tone:"text-muted-foreground"},long:{Icon:eB,tone:"text-tone-waiting-fg"}};function e_({seenAt:e,now:s,testId:i}){let a;if(null===e)return null;let n=new Date(e),l=(a=s.getTime()-n.getTime())<6e4?"fresh":a<=9e5?"while":"long",{Icon:r,tone:o}=eU[l],d=(0,j.lastSeen)(n,s);return(0,t.jsxs)(eH.Tooltip,{children:[(0,t.jsx)(eH.TooltipTrigger,{render:(0,t.jsx)("span",{role:"img","aria-label":d,"data-testid":i,"data-signal":l,className:(0,h.classNames)("inline-flex [&_svg]:size-(--size-icon) max-sm:[&_svg]:size-4",o)}),children:(0,t.jsx)(r,{"aria-hidden":!0})}),(0,t.jsx)(eH.TooltipContent,{children:d})]})}var eK=e.i(763481),eW=e.i(2093);function eG({model:e,now:s}){let i=(0,eW.modelStatedWords)(e,s);return(0,t.jsxs)(eH.Tooltip,{children:[(0,t.jsxs)(eH.TooltipTrigger,{render:(0,t.jsx)("span",{"data-testid":"fleet-model-hint",className:"min-w-0 truncate font-mono text-id text-muted-foreground"}),children:[e.id,(0,t.jsxs)("span",{className:"sr-only",children:[", ",i]})]}),(0,t.jsx)(eH.TooltipContent,{children:(0,t.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"font-mono",children:e.id}),(0,t.jsx)("span",{children:i})]})})]})}var eQ=e.i(781830),eZ=e.i(1935),eJ=e.i(539448),eX=e.i(946033);function eY({label:e,items:s,picked:i,onPickedChange:a,size:n="sm",valueClassName:l,testId:r}){let o=function(e,t){let[s]=e;return void 0===s?{kind:"all"}:1===e.length?{kind:"one",word:t[s]??s}:{kind:"several",count:e.length}}(i,s);return(0,t.jsxs)(eX.Select,{multiple:!0,value:0===i.length?["all"]:[...i],onValueChange:e=>{a(i.length>0&&e.includes("all")?[]:e.filter(e=>"all"!==e))},children:[(0,t.jsx)(eX.SelectTrigger,{size:n,"aria-label":e,"data-testid":r,children:(0,t.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:e}),"several"===o.kind?(0,t.jsxs)("span",{className:"inline-flex size-5 items-center justify-center rounded-full bg-primary text-caption font-semibold text-primary-foreground tabular-nums",children:[o.count,(0,t.jsx)("span",{className:"sr-only",children:" picked"})]}):(0,t.jsx)("span",{className:(0,h.classNames)("font-medium","one"===o.kind?l:void 0),children:"one"===o.kind?o.word:"All"})]})}),(0,t.jsxs)(eX.SelectContent,{children:[(0,t.jsx)(eX.SelectItem,{value:"all",children:"All"}),Object.entries(s).map(([e,s])=>(0,t.jsx)(eX.SelectItem,{value:e,className:l,children:s},e))]})]})}function e0({label:e,allLabel:s="All",items:i,picked:a,onPickedChange:n,layout:l="chips",testId:o}){return(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"text-meta font-medium text-muted-foreground",children:e}),(0,t.jsxs)("div",{role:"group","aria-label":e,"data-testid":o,className:"segments"===l?"flex gap-1.5 [&>*]:flex-1":"flex flex-wrap gap-1.5",children:[(0,t.jsx)(r.Button,{variant:0===a.length?"primary":"secondary",size:"touch","aria-pressed":0===a.length,onClick:()=>{n([])},children:s}),Object.entries(i).map(([e,s])=>{let i=a.includes(e);return(0,t.jsx)(r.Button,{variant:i?"primary":"secondary",size:"touch","aria-pressed":i,onClick:()=>{n(i?a.filter(t=>t!==e):[...a,e])},children:s},e)})]})]})}var e2=e.i(716327),e1=e.i(868401),e4=e.i(770703),e5=e.i(406734);let e7=(0,e4.default)(()=>e.A(867858).then(e=>e.LabelPicker),{loadableGenerated:{modules:[259068]},ssr:!1});function e8({groups:e,picked:s,onPick:i,trigger:n}){let[r,o]=(0,l.useState)(!1);return(0,t.jsxs)(e5.Popover,{open:r,onOpenChange:o,children:[(0,t.jsx)(e5.PopoverTrigger,{render:n}),(0,t.jsxs)(e5.PopoverContent,{align:"start",sideOffset:6,className:"w-80 p-2","data-testid":"label-filter-popover",children:[(0,t.jsx)("span",{className:"block px-2 pt-1 pb-2 text-body font-medium",children:"Filter by label"}),(0,t.jsx)(e7,{groups:e,pickedValueIds:s.map(e=>e.valueId),onPick:e=>{i(e),o(!1)}}),(0,t.jsxs)("p",{className:"mt-2 flex items-center justify-between gap-2 border-t border-border px-2 pt-2 text-meta text-muted-foreground",children:["Exact matches, all must hold.",(0,t.jsx)(a.default,{href:"/labels",className:"font-medium text-foreground hover:underline","data-testid":"label-filter-manage",children:"Manage labels"})]})]})]})}function e6({groups:e,picked:s,onPick:a}){return(0,t.jsx)(e8,{groups:e,picked:s,onPick:a,trigger:(0,t.jsxs)(r.Button,{variant:"secondary",size:"sm",icon:(0,t.jsx)(i.Tag,{}),"data-testid":"fleet-filter-labels",children:["Labels",0===s.length?null:(0,t.jsxs)("span",{className:"inline-flex size-5 items-center justify-center rounded-full bg-primary text-caption font-semibold text-primary-foreground tabular-nums",children:[s.length,(0,t.jsx)("span",{className:"sr-only",children:" picked"})]}),(0,t.jsx)(e2.ChevronDown,{"aria-hidden":!0,className:"text-muted-foreground"})]})})}function e9({groups:e,picked:s,onPick:i,onRemove:a,onClear:n}){return 0===s.length?null:(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1.5 text-meta max-sm:hidden","data-testid":"fleet-picked-labels",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:"Ships with"}),s.map((e,s)=>(0,t.jsxs)("span",{className:"inline-flex items-center gap-2",children:[0===s?null:(0,t.jsx)("span",{className:"text-muted-foreground",children:"and"}),(0,t.jsx)(eM.LabelChip,{chip:e,testId:"fleet-picked-label",onRemove:()=>{a(e.valueId)}})]},e.valueId)),(0,t.jsx)(e8,{groups:e,picked:s,onPick:i,trigger:(0,t.jsx)(r.Button,{variant:"ghost",size:"xs",icon:(0,t.jsx)(y.Plus,{}),children:"Add"})}),(0,t.jsx)("span",{"aria-hidden":!0,className:"h-4 w-px bg-border"}),(0,t.jsx)(r.Button,{variant:"ghost",size:"xs",onClick:n,"data-testid":"fleet-labels-clear",children:"Clear labels"})]})}function e3({groups:e,picked:s,onPick:i,onRemove:n}){let[o,d]=(0,l.useState)(!1);return(0,t.jsxs)("div",{className:"flex flex-col gap-2","data-testid":"fleet-filter-labels-touch",children:[(0,t.jsxs)("span",{className:"flex items-center gap-2 text-meta font-medium text-muted-foreground",children:["Labels ",(0,t.jsx)("span",{className:"font-normal",children:"all must hold"})]}),0===s.length?null:(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-2 text-meta",children:s.map((e,s)=>(0,t.jsxs)("span",{className:"inline-flex items-center gap-2",children:[0===s?null:(0,t.jsx)("span",{className:"text-muted-foreground",children:"and"}),(0,t.jsx)(eM.LabelChip,{chip:e,onRemove:()=>{n(e.valueId)}})]},e.valueId))}),o?(0,t.jsx)("div",{className:"rounded-lg border border-border p-2",children:(0,t.jsx)(e7,{groups:e,pickedValueIds:s.map(e=>e.valueId),size:"touch",onPick:e=>{i(e),d(!1)}})}):(0,t.jsx)(r.Button,{variant:"secondary",size:"touch",icon:(0,t.jsx)(y.Plus,{}),className:"self-start",onClick:()=>{d(!0)},children:"Add label"}),(0,t.jsxs)(a.default,{href:"/labels",className:"inline-flex items-center gap-1.5 self-start text-meta text-muted-foreground hover:underline [&_svg]:size-(--size-icon-sm)",children:[(0,t.jsx)(e1.Tags,{"aria-hidden":!0}),"All labels and their owners"]})]})}function te(e,t){return{...e,filters:{...e.filters,labelValueIds:t}}}function tt(e){return Object.hasOwn(eb,e)}function ts(e){return Object.fromEntries((0,ej.crewRequestKeysOf)(e).map(e=>[e,(0,ej.crewRequestKeyWord)(e)]))}function ti(e,t){return Object.hasOwn(t,e)}function ta(e){return Object.fromEntries(e.map(e=>[e,e]))}function tn({ship:e,squadron:s,isPluginShip:i}){return"operator"===e.kind?(0,t.jsxs)(eS.Badge,{variant:"kind",children:[(0,t.jsx)(em.UserRound,{"aria-hidden":!0}),"operator"]}):"viewer"===e.kind?(0,t.jsxs)(eS.Badge,{variant:"kind","data-testid":"fleet-viewer",children:[(0,t.jsx)(er.Eye,{"aria-hidden":!0}),"viewer"]}):i?(0,t.jsxs)(eS.Badge,{variant:"kind","data-testid":"fleet-plugin",children:[(0,t.jsx)(ed.Plug,{"aria-hidden":!0}),"plugin"]}):s?.role===null?(0,t.jsxs)(eS.Badge,{variant:"kind","data-testid":"fleet-flagship",children:[(0,t.jsx)(eo.Flag,{"aria-hidden":!0}),"flagship"]}):null}function tl({ship:e,now:s}){return"crewed"!==e.status||"viewer"===e.kind?null:(0,t.jsxs)("span",{"data-testid":"fleet-runs-on",className:"flex min-w-0 items-center gap-3 max-sm:flex-wrap max-sm:gap-y-1",children:[(0,t.jsx)(eK.LocationTag,{kind:"operator"===e.kind&&null!==e.location?"DEVICE":e.location?.kind??null,description:e.location?.description,harness:"operator"===e.kind?"console":e.harness,size:"sm",className:"shrink-0"}),"agent"===e.kind&&null!==e.model?(0,t.jsx)(eG,{model:e.model,now:s}):null]})}function tr({ship:e,squadron:s,labels:i}){let a=s?.role===null?void 0:s,n=void 0===i?[]:(0,eN.chipsOf)(e,i).filter(e=>void 0===a||("squadron"!==e.key||e.value!==a.squadronId)&&("squadron-role"!==e.key||e.value!==a.role));return void 0===a&&0===n.length?null:(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-2 overflow-hidden",children:[void 0===a?null:(0,t.jsx)("span",{className:"min-w-0 shrink",title:null===a.role?a.squadronId:`${a.squadronId} \xb7 ${a.role}`,children:(0,t.jsx)(eZ.SquadronTag,{squadronId:a.squadronId,size:"sm"})}),(0,t.jsx)(eP,{chips:n,width:22*(void 0===a),testId:"fleet-labels",href:`/ships/${e.id}`})]})}function to({ship:e,now:s,next:i}){let a=("agent"===e.kind||"plugin"===e.kind)&&"crewed"===e.status;return(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-2 max-sm:flex-col max-sm:items-stretch [&:has(button)>[data-testid=fleet-report]]:hidden",children:[a?(0,t.jsx)(eQ.ReportLine,{report:e.report,now:s,variant:"row",isTimeInTitle:!0,testId:"fleet-report"}):null,i]})}function td({types:e,view:s,onViewChange:i,size:a,squadronsOf:n,labels:l}){let o=ts((0,C.useConsoleConstants)().crewStatuses),{filters:d}=s,c=e=>{i({...s,filters:{...d,...e}})},u="touch"===a;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eY,{label:"Status",items:eb,picked:d.status,onPickedChange:e=>{c({status:e.filter(tt)})},size:a,testId:u?void 0:"fleet-filter-status"}),(0,t.jsx)(eY,{label:"Crew request",items:o,picked:d.crewRequest,onPickedChange:e=>{c({crewRequest:e.filter(e=>ti(e,o))})},size:a,testId:u?void 0:"fleet-filter-crew-request"}),(0,t.jsx)(eY,{label:"Kind",items:ef,picked:d.kind,onPickedChange:e=>{c({kind:e.filter(eg)})},size:a,testId:u?void 0:"fleet-filter-kind"}),(0,t.jsx)(eY,{label:"Type",items:ta(e),picked:d.type,onPickedChange:e=>{c({type:e})},size:a,valueClassName:"font-mono",testId:u?void 0:"fleet-filter-type"}),n&&(0,t.jsx)(eY,{label:"Squadron",items:ta(ew(n)),picked:d.squadron,onPickedChange:e=>{c({squadron:e})},size:a,testId:u?void 0:"fleet-filter-squadron"}),void 0===l||u?null:(0,t.jsx)(e6,{groups:(0,eN.filterGroupsOf)(l),picked:(0,eN.pickedChips)(d.labelValueIds,l),onPick:e=>{i(te(s,[...d.labelValueIds,e]))}}),eC(d).length>0&&!u?(0,t.jsx)(r.Button,{variant:"ghost",size:"xs","data-testid":"fleet-filters-clear",onClick:()=>{i({...s,filters:ev.filters})},children:"Clear filters"}):null]})}function tc(e){return void 0===e?"":` (${String(e.retired)})`}function tu({counts:e,view:s,onViewChange:i}){let a="fleet-show-retired";return(0,t.jsxs)("div",{className:"inline-flex items-center gap-2",children:[(0,t.jsx)(eT.Switch,{id:a,"data-testid":"fleet-show-retired",checked:s.filters.isRetiredShown,onCheckedChange:e=>{i({...s,filters:{...s.filters,isRetiredShown:e}})}}),(0,t.jsxs)(eI.Label,{htmlFor:a,className:"text-meta font-normal text-muted-foreground",children:["Show retired",tc(e)]})]})}function th({types:e,counts:s,view:i,onViewChange:a,squadronsOf:n,labels:l}){let o=ts((0,C.useConsoleConstants)().crewStatuses),{filters:d}=i,c=e=>{a({...i,filters:{...d,...e}})},u=ey(d);return(0,t.jsxs)(ep.Sheet,{children:[(0,t.jsx)(ep.SheetTrigger,{render:(0,t.jsx)(r.Button,{size:"touch",isIconOnly:!0,"aria-label":u>0?`Filter ships, ${String(u)} active`:"Filter ships","data-testid":"fleet-filters-open",icon:(0,t.jsx)(eh,{}),className:"relative sm:hidden",children:u>0?(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute top-1.5 right-1.5 size-2 rounded-full bg-primary"}):null})}),(0,t.jsxs)(ep.SheetContent,{side:"bottom",children:[(0,t.jsxs)(ep.SheetHeader,{className:"flex-row items-center justify-between",children:[(0,t.jsx)(ep.SheetTitle,{children:"Filter ships"}),(0,t.jsx)(r.Button,{variant:"ghost",size:"touch","data-testid":"fleet-filters-reset",onClick:()=>{a({...i,filters:ev.filters})},children:"Reset"})]}),(0,t.jsxs)(ep.SheetBody,{className:"flex flex-col gap-4 pb-4",children:[(0,t.jsx)(e0,{label:"Status",layout:"segments",items:eb,picked:d.status,onPickedChange:e=>{c({status:e.filter(tt)})}}),(0,t.jsx)(e0,{label:"Crew request",items:o,picked:d.crewRequest,onPickedChange:e=>{c({crewRequest:e.filter(e=>ti(e,o))})}}),(0,t.jsx)(e0,{label:"Kind",items:ef,picked:d.kind,onPickedChange:e=>{c({kind:e.filter(eg)})},testId:"fleet-filter-kind-touch"}),(0,t.jsx)(e0,{label:"Type",allLabel:"All types",items:ta(e),picked:d.type,onPickedChange:e=>{c({type:e})}}),n&&(0,t.jsx)(e0,{label:"Squadron",items:ta(ew(n)),picked:d.squadron,onPickedChange:e=>{c({squadron:e})}}),void 0===l?null:(0,t.jsx)(e3,{groups:(0,eN.filterGroupsOf)(l),picked:(0,eN.pickedChips)(d.labelValueIds,l),onPick:e=>{a(te(i,[...d.labelValueIds,e]))},onRemove:e=>{a(te(i,d.labelValueIds.filter(t=>t!==e)))}}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2 py-1",children:[(0,t.jsxs)(eI.Label,{htmlFor:"fleet-show-retired-touch",className:"text-body-touch font-normal",children:["Show retired ships ",(0,t.jsx)("span",{className:"text-muted-foreground",children:tc(s)})]}),(0,t.jsx)(eT.Switch,{id:"fleet-show-retired-touch",checked:d.isRetiredShown,onCheckedChange:e=>{c({isRetiredShown:e})}})]}),(0,t.jsx)(ep.SheetClose,{render:(0,t.jsx)(r.Button,{size:"touch","data-testid":"fleet-filters-apply"}),children:void 0===s?"Show ships":1===s.shown?"Show 1 ship":`Show ${String(s.shown)} ships`})]})]})]})}function tm({view:e,onViewChange:s,labels:i}){let a=eC(e.filters),n=void 0===i?[]:(0,eN.pickedChips)(e.filters.labelValueIds,i);return 0===a.length&&0===n.length?null:(0,t.jsxs)("div",{className:"flex w-full flex-wrap items-center gap-1.5 sm:hidden","data-testid":"fleet-filter-chips",children:[a.map(e=>(0,t.jsx)(eS.Badge,{variant:"outline",className:"max-w-full truncate",children:e},e)),n.map(i=>(0,t.jsx)(eM.LabelChip,{chip:i,onRemove:()=>{s(te(e,e.filters.labelValueIds.filter(e=>e!==i.valueId)))}},i.valueId)),(0,t.jsx)(r.Button,{variant:"ghost",size:"touch",onClick:()=>{s({...e,filters:ev.filters})},children:"Clear filters"})]})}function tp({types:e,counts:s,view:i,onViewChange:a,squadronsOf:n,labels:l}){return(0,t.jsxs)("div",{"data-slot":"fleet-toolbar",className:"flex flex-wrap items-center gap-2 sm:flex-nowrap sm:items-start",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-2",children:[(0,t.jsx)("div",{className:"w-60 max-sm:min-w-0 max-sm:flex-1",children:(0,t.jsx)(eq.Input,{type:"search","aria-label":"Search ships by name or type",placeholder:"Search ships by name","data-testid":"fleet-search",value:i.query,onChange:e=>{a({...i,query:e.target.value})},leadingIcon:(0,t.jsx)(ec.Search,{}),className:"h-(--size-control-sm) text-meta max-sm:h-(--size-control-touch) max-sm:text-input-touch"})}),(0,t.jsx)("div",{className:"max-sm:hidden sm:contents",children:(0,t.jsx)(td,{types:e,view:i,onViewChange:a,squadronsOf:n,labels:l,size:"sm"})}),(0,t.jsx)(th,{types:e,counts:s,view:i,onViewChange:a,squadronsOf:n,labels:l})]}),(0,t.jsx)(tm,{view:i,onViewChange:a,labels:l}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-2 max-sm:w-full sm:h-(--size-control-sm)",children:[(0,t.jsx)("div",{className:"max-sm:hidden",children:(0,t.jsx)(tu,{counts:s,view:i,onViewChange:a})}),void 0===s?null:(0,t.jsxs)("p",{"aria-live":"polite",className:"text-meta text-muted-foreground tabular-nums","data-testid":"fleet-count",children:[s.shown," of ",s.total," ships"]})]})]})}function tx({ship:e}){return(0,t.jsx)(eJ.ShipName,{name:e.name,shipId:e.id,isSuffixShown:"retired"===e.status,href:"operator"===e.kind?"/inbox":`/ships/${e.id}`,className:"[&_a]:max-sm:whitespace-normal [&_a]:max-sm:break-all [&_a]:max-sm:text-body-touch"})}let tf=[{key:"ship",column:"ship",head:"Ship"},{key:"status",column:"status",head:"Status"},{key:"report",column:"report",head:"Report"},{key:"squadronAndLabels",head:"Squadron and labels"},{key:"runsOn",column:"runsOn",head:"Runs on"},{key:"seen",column:"seen",head:"Seen"}];function tg({ships:e,highlightedShipIds:s,now:i,renderRowActions:a,squadronsOf:n,labels:l,pluginShipIds:r,sort:o,onSort:d}){return(0,t.jsx)("div",{className:"max-sm:hidden",children:(0,t.jsxs)(eL.Table,{"aria-label":"Ships",className:"min-w-320 table-fixed",children:[(0,t.jsxs)("colgroup",{children:[(0,t.jsx)("col",{className:"w-56"}),(0,t.jsx)("col",{className:"w-40"}),(0,t.jsx)("col",{className:"w-64"}),(0,t.jsx)("col",{className:"w-56"}),(0,t.jsx)("col",{className:"w-80"}),(0,t.jsx)("col",{className:"w-12"}),(0,t.jsx)("col",{className:"w-12"})]}),(0,t.jsx)(eL.TableHeader,{children:(0,t.jsxs)(eL.TableRow,{children:[tf.map(({key:e,column:s,head:i})=>void 0===d||void 0===s?(0,t.jsx)(eL.TableHead,{children:i},e):(0,t.jsx)(eL.TableSortHead,{"data-testid":`fleet-sort-${s}`,direction:o?.column===s?o.direction:null,onSort:()=>{d(s)},children:i},e)),(0,t.jsx)(eL.TableHead,{children:(0,t.jsx)("span",{className:"sr-only",children:"Actions"})})]})}),(0,t.jsx)(eL.TableBody,{children:e.map(e=>(0,t.jsxs)(eL.TableRow,{"data-testid":`fleet-row-${e.name}`,"data-new":s?.has(e.id)?"":void 0,className:"h-12",children:[(0,t.jsx)(eL.TableCell,{children:(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-2 whitespace-nowrap",children:[(0,t.jsx)(tx,{ship:e}),(0,t.jsx)(tn,{ship:e,squadron:n?.get(e.id),isPluginShip:r?.has(e.id)??!1})]})}),(0,t.jsx)(eL.TableCell,{children:(0,t.jsx)(_.StatusBadge,{status:e.status})}),(0,t.jsx)(eL.TableCell,{children:(0,t.jsx)(to,{ship:e,now:i,next:a?.(e,"next")})}),(0,t.jsx)(eL.TableCell,{children:(0,t.jsx)(tr,{ship:e,squadron:n?.get(e.id),labels:l})}),(0,t.jsx)(eL.TableCell,{children:(0,t.jsx)(tl,{ship:e,now:i})}),(0,t.jsx)(eL.TableCell,{children:(0,t.jsx)(e_,{seenAt:e.lastSeenAt,now:i,testId:"fleet-last-seen"})}),(0,t.jsx)(eL.TableCell,{className:"w-10 text-right",children:a?.(e,"table")})]},e.id))})]})})}function tj({ships:e,highlightedShipIds:s,now:i,renderRowActions:a,squadronsOf:n,pluginShipIds:l}){return(0,t.jsx)("ul",{"aria-label":"Ships",className:"overflow-hidden rounded-lg border border-border bg-card sm:hidden",children:e.map(e=>(0,t.jsxs)("li",{"data-testid":`fleet-card-${e.name}`,"data-new":s?.has(e.id)?"":void 0,className:"flex items-start gap-2 border-b border-border px-3.5 py-3 last:border-0 data-new:animate-highlight",children:[(0,t.jsxs)("div",{className:"flex min-w-0 grow flex-col gap-1.5",children:[(0,t.jsx)("div",{className:"text-body-touch",children:(0,t.jsx)(tx,{ship:e})}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)(_.StatusBadge,{status:e.status}),(0,t.jsx)(tn,{ship:e,squadron:n?.get(e.id),isPluginShip:l?.has(e.id)??!1})]}),(0,t.jsx)(tr,{ship:e,squadron:n?.get(e.id)}),(0,t.jsx)(to,{ship:e,now:i,next:a?.(e,"next")}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-x-3 gap-y-1",children:[(0,t.jsx)(tl,{ship:e,now:i}),(0,t.jsx)(e_,{seenAt:e.lastSeenAt,now:i})]})]}),a?.(e,"phone")]},e.id))})}function tv({ships:e,counts:s,isOnlyArgo:i,types:a,more:n,view:l,onViewChange:o,state:d,error:c,highlightedShipIds:u,now:h,renderRowActions:m,emptyAction:p,squadronsOf:x,labels:f,pluginShipIds:g}){let j;if("loading"===d)return(0,t.jsxs)("div",{"data-slot":"fleet-table","data-state":"loading",className:"flex flex-col gap-3",children:[(0,t.jsx)(eA.LoadingSkeleton,{variant:"table",rows:6,label:"Loading the fleet",className:"max-sm:hidden"}),(0,t.jsx)(eA.LoadingSkeleton,{variant:"list",rows:5,label:"Loading the fleet",className:"sm:hidden"})]});if("error"===d)return(0,t.jsx)(eR.InlineError,{variant:"page",title:"Couldn’t load the fleet",description:"This page couldn’t reach the fleet server. Check that the server is running and reachable from this browser, then try again.",detail:c?.detail,onRetry:c?.onRetry});let v={highlightedShipIds:u,now:h,renderRowActions:m,squadronsOf:x,pluginShipIds:g};if(i){let s=e.filter(e=>"operator"===e.kind);return(0,t.jsxs)("div",{"data-slot":"fleet-table","data-state":"empty",className:"flex flex-col gap-3",children:[(0,t.jsx)(tg,{ships:s,labels:f,...v}),(0,t.jsx)(tj,{ships:s,...v}),(0,t.jsx)(eO.EmptyState,{icon:(0,t.jsx)(U.Ship,{}),title:"No ships besides argo yet",description:"argo is your own ship: messages to the operator land in its inbox. Commission a ship to add an agent to the fleet.",action:p})]})}let w=l.query.trim();return(0,t.jsxs)("div",{"data-slot":"fleet-table","data-state":"ready",className:"flex flex-col gap-3",children:[(0,t.jsx)(tp,{types:a,counts:s,view:l,onViewChange:o,squadronsOf:x,labels:f}),void 0===f?null:(0,t.jsx)(e9,{groups:(0,eN.filterGroupsOf)(f),picked:(0,eN.pickedChips)(l.filters.labelValueIds,f),onPick:e=>{o(te(l,[...l.filters.labelValueIds,e]))},onRemove:e=>{o(te(l,l.filters.labelValueIds.filter(t=>t!==e)))},onClear:()=>{o(te(l,[]))}}),0===e.length?(0,t.jsx)(eO.EmptyState,{variant:"no-results",title:""===w?"No ships match these filters.":`No ships match “${w}”.`,action:(0,t.jsx)(r.Button,{size:"xs","data-testid":"fleet-clear-filters",onClick:()=>{o({...ev,sort:l.sort})},children:(j=ey(l.filters)>0,""===w?"Clear filters":j?"Clear search and filters":"Clear search")})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(tg,{ships:e,labels:f,sort:l.sort,onSort:e=>{var t;o({...l,sort:(t=l.sort,t?.column!==e?{column:e,direction:"ascending"}:"ascending"===t.direction?{column:e,direction:"descending"}:null)})},...v}),(0,t.jsx)(tj,{ships:e,...v}),n?.hasMore===!0?(0,t.jsx)(ez.LoadMore,{what:"more ships",isLoading:n.isLoading,isFailed:n.isFailed,onLoad:n.onLoad,area:"fleet"}):null]})]})}function tw({view:e,onViewChange:s,placedFirstShipIds:i,renderRowActions:a}){var n,l;let r,o,d=(0,g.useNow)(),c=(0,M.useSquadrons)(),u=(0,S.useLabelContext)(),h=(0,J.usePluginShipIds)(),m=c.data?(0,X.shipsInSquadrons)(c.data):void 0,p=function({query:e,filters:t},s){var i;let a=0===t.squadron.length?[]:(i=t.squadron,[...s.squadronsOf??new Map].filter(([,e])=>i.includes(e.squadronId)).map(([e])=>e));if(t.squadron.length>0&&0===a.length)return null;let n=e.trim(),l=t.status.length>0?[...t.status]:t.isRetiredShown?["awaitingCrew","crewed","retired"]:[];return{...""===n?{}:{query:n},...0===l.length?{}:{status:[...l]},...0===t.type.length?{}:{type:[...t.type]},...0===t.crewRequest.length?{}:{crewRequest:[...t.crewRequest]},...0===t.labelValueIds.length?{}:{valueIds:[...t.labelValueIds]},...0===a.length?{}:{shipIds:a},...0===t.kind.length?{}:{kind:[...t.kind],pluginShipIds:[...s.pluginShipIds]}}}(e,{squadronsOf:m,pluginShipIds:h}),x=(l=null===(n=e.sort)?void 0:{column:n.column,direction:n.direction},r=(0,ea.useTRPC)(),o=(0,es.pagedListOf)((0,ee.useInfiniteQuery)(r.fleet.list.infiniteQueryOptions({...p,sort:l,limit:es.CONSOLE_PAGE_SIZE},{enabled:null!==p,getNextPageParam:es.nextCursorOf,placeholderData:Y.keepPreviousData,refetchInterval:S.LAST_SEEN_REFRESH_MS}))),null===p?{...o,items:[],hasMore:!1}:{...o,items:o.items&&(0,ei.shipRowsOf)(o.items,p)}),{counts:f,isOnlyArgo:j}=function(e){let t=(0,ea.useTRPC)(),s=(0,et.useQuery)(t.fleet.shipCounts.queryOptions({filter:e??{}},{enabled:null!==e,placeholderData:Y.keepPreviousData})),i=(0,et.useQuery)(t.fleet.shipCounts.queryOptions());if(void 0===i.data)return{counts:void 0,isOnlyArgo:!1};let a=0===en(i.data,e=>"operator"===e.kind?0:e.active);return null===e?{counts:el({view:[],fleet:i.data},{}),isOnlyArgo:a}:{counts:void 0===s.data?void 0:el({view:s.data,fleet:i.data},e),isOnlyArgo:a}}(p),v=(0,A.useShipTypes)(e.filters.isRetiredShown);return(0,t.jsx)("section",{"aria-label":"Fleet",className:"flex flex-col gap-3",children:(0,t.jsx)(tv,{ships:x.items??[],counts:f,isOnlyArgo:j,types:[...new Set([...v??[],...e.filters.type])].toSorted((e,t)=>e.localeCompare(t)),more:{hasMore:x.hasMore,isLoading:x.isLoadingMore,isFailed:x.isLoadMoreFailed,onLoad:x.loadMore},view:e,onViewChange:s,state:x.isFailed?"error":void 0===x.items?"loading":"ready",error:{detail:x.error instanceof Error?x.error.message:void 0,onRetry:x.retry},highlightedShipIds:i,now:d,renderRowActions:a,squadronsOf:m,labels:u,pluginShipIds:h})})}var tb=e.i(221959),ty=e.i(566297),tk=e.i(577435),tC=e.i(509892),tN=e.i(787964),tS=e.i(762687),tq=e.i(490262),tI=e.i(718423),tT=e.i(678485),tL=e.i(303979);e.s(["OverviewPage",0,function({view:e,isCommissionAsked:d}){let c=(0,n.useRouter)(),u=(0,v.useShipCounts)(),h=(0,tI.useLiveFleet)(),m=(0,tN.useConsoleFrame)(),p=(0,R.messageLimitReached)((0,L.useFleetLimits)().data),x=(0,O.useHostedAccountUrl)(),f=(0,tq.useAccess)(),g=(0,tL.usePluginNav)(),[j,y]=(0,l.useState)(!1),[k,C]=(0,l.useOptimistic)(e);(0,tT.useSignInWhenSessionEnds)([u.error,h.error]);let N=e=>{let t=(function(e){let t=new URLSearchParams;for(let[s,i]of(""!==e.query&&t.set("q",e.query),[["status",e.filters.status],["crew",e.filters.crewRequest],["kind",e.filters.kind],["type",e.filters.type],["squadron",e.filters.squadron]]))for(let e of i)t.append(s,e);for(let s of(e.filters.isRetiredShown&&t.set("retired","1"),e.filters.labelValueIds))t.append("label",s);return null!==e.sort&&(t.set("sort",e.sort.column),"descending"===e.sort.direction&&t.set("order","desc")),t})(e).toString();(0,l.startTransition)(()=>{C(e),c.replace(""===t?"/":`/?${t}`,{scroll:!1})})};return(0,t.jsxs)(tC.ListPage,{...m,title:"Fleet overview",description:u.data?function(e){let t=w(e.counts),s=t?.active??0,i=t?.retired??0;if(0===s&&0===i)return e.canCommission?"Only argo so far. Ships you commission appear here.":"Only argo so far.";let a=0===i?"":`, ${String(i)} retired`;return`${1===s?"1 active ship":`${String(s)} active ships`} and argo${a}. Changes appear as they happen.`}({counts:u.data,canCommission:f.canManage}):"Loading your fleet",primaryAction:(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2 max-sm:flex-col max-sm:items-stretch",children:[(0,t.jsx)(r.Button,{render:(0,t.jsx)(a.default,{href:"/labels"}),nativeButton:!1,icon:(0,t.jsx)(i.Tag,{}),"data-testid":"overview-labels",children:f.canDefineLabels?"Manage labels":"View labels"}),(0,t.jsx)(r.Button,{render:(0,t.jsx)(a.default,{href:"/scopes"}),nativeButton:!1,icon:(0,t.jsx)(s.KeyRound,{}),"data-testid":"overview-scopes",children:f.canDefineScopes?"Manage scopes":"View scopes"}),f.canManage?(0,t.jsx)(F,{isOpen:j||d,onOpenChange:t=>{y(t),!t&&d&&N(e)}}):null]}),live:h.live,children:[(0,t.jsx)(tS.FleetSegments,{active:"ships",needsCrewCount:g.needsCrewCount}),void 0===p?null:(0,t.jsx)(tk.LimitNotice,{...(0,R.messageLimitNotice)(p),accountUrl:x,testId:"overview-message-limit"}),(0,t.jsx)(Z,{}),(0,t.jsx)(b,{}),(0,t.jsx)(tw,{view:k,onViewChange:N,placedFirstShipIds:h.placedFirstShipIds,renderRowActions:(e,s)=>(0,t.jsx)(tb.ShipActions,{ship:e,layout:"table"===s?"menu":"phone"===s?"sheet":"next",compose:o.ComposeMessage,crewLineFlow:ty.NewCrewLineFlow})})]})}],242047)}]);
|