@knpkv/control-center 0.1.1 → 0.2.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/dist/client/.vite/manifest.json +127 -125
- package/dist/client/assets/{ActiveWorkPage-Bvji6Tys.js → ActiveWorkPage-C6QwDV1Y.js} +2 -2
- package/dist/client/assets/{ActiveWorkPage-Bvji6Tys.js.map → ActiveWorkPage-C6QwDV1Y.js.map} +1 -1
- package/dist/client/assets/{AgentPage-Bom41la2.js → AgentPage-OqwP6uRi.js} +2 -2
- package/dist/client/assets/{AgentPage-Bom41la2.js.map → AgentPage-OqwP6uRi.js.map} +1 -1
- package/dist/client/assets/{AtlassianOAuthCallbackPage-dr-B9-DD.js → AtlassianOAuthCallbackPage-Bm7UhU-h.js} +2 -2
- package/dist/client/assets/{AtlassianOAuthCallbackPage-dr-B9-DD.js.map → AtlassianOAuthCallbackPage-Bm7UhU-h.js.map} +1 -1
- package/dist/client/assets/{AuthorizedSharePage-C-P-PNfm.js → AuthorizedSharePage-DblP3USU.js} +2 -2
- package/dist/client/assets/{AuthorizedSharePage-C-P-PNfm.js.map → AuthorizedSharePage-DblP3USU.js.map} +1 -1
- package/dist/client/assets/{BrowserCrypto-BPiuCuW-.js → BrowserCrypto-BGGRC6iW.js} +2 -2
- package/dist/client/assets/{BrowserCrypto-BPiuCuW-.js.map → BrowserCrypto-BGGRC6iW.js.map} +1 -1
- package/dist/client/assets/{BrowserSessionHydrator-C8F_LGhg.js → BrowserSessionHydrator-39UDbHf0.js} +2 -2
- package/dist/client/assets/{BrowserSessionHydrator-C8F_LGhg.js.map → BrowserSessionHydrator-39UDbHf0.js.map} +1 -1
- package/dist/client/assets/{CommandSearch-D6iFcdvj.js → CommandSearch-D4Fnjsl-.js} +2 -2
- package/dist/client/assets/{CommandSearch-D6iFcdvj.js.map → CommandSearch-D4Fnjsl-.js.map} +1 -1
- package/dist/client/assets/{ItemsPage-x39U11an.js → ItemsPage-BZQiTh9b.js} +2 -2
- package/dist/client/assets/{ItemsPage-x39U11an.js.map → ItemsPage-BZQiTh9b.js.map} +1 -1
- package/dist/client/assets/{PairPage-D5vlz4OG.js → PairPage-Dvfse5ky.js} +2 -2
- package/dist/client/assets/{PairPage-D5vlz4OG.js.map → PairPage-Dvfse5ky.js.map} +1 -1
- package/dist/client/assets/{PortfolioOverview-DSUabOmm.js → PortfolioOverview-DeJcfXcw.js} +2 -2
- package/dist/client/assets/{PortfolioOverview-DSUabOmm.js.map → PortfolioOverview-DeJcfXcw.js.map} +1 -1
- package/dist/client/assets/{ReleaseRoute-DyDm5s85.js → ReleaseRoute-D9q8_sCk.js} +2 -2
- package/dist/client/assets/{ReleaseRoute-DyDm5s85.js.map → ReleaseRoute-D9q8_sCk.js.map} +1 -1
- package/dist/client/assets/ReleaseWorkset-Bs_FXlbC.js +2 -0
- package/dist/client/assets/ReleaseWorkset-Bs_FXlbC.js.map +1 -0
- package/dist/client/assets/{ServicesPage-CoMVH2Si.js → ServicesPage-Co6GJHgc.js} +2 -2
- package/dist/client/assets/{ServicesPage-CoMVH2Si.js.map → ServicesPage-Co6GJHgc.js.map} +1 -1
- package/dist/client/assets/{TimelinePage-D8Fj_351.js → TimelinePage-CM2og72M.js} +2 -2
- package/dist/client/assets/{TimelinePage-D8Fj_351.js.map → TimelinePage-CM2og72M.js.map} +1 -1
- package/dist/client/assets/{WorkspaceEntityLink-BRifdJHn.js → WorkspaceEntityLink-CTw_He-8.js} +2 -2
- package/dist/client/assets/{WorkspaceEntityLink-BRifdJHn.js.map → WorkspaceEntityLink-CTw_He-8.js.map} +1 -1
- package/dist/client/assets/{WorkspaceEntityRoute-BwpujSqk.css → WorkspaceEntityRoute-Bdmv6ki4.css} +1 -1
- package/dist/client/assets/WorkspaceEntityRoute-BnsmaeS2.js +30 -0
- package/dist/client/assets/WorkspaceEntityRoute-BnsmaeS2.js.map +1 -0
- package/dist/client/assets/{WorkspaceReleaseLayout-DDLdY0rU.js → WorkspaceReleaseLayout-Ba6keUju.js} +2 -2
- package/dist/client/assets/{WorkspaceReleaseLayout-DDLdY0rU.js.map → WorkspaceReleaseLayout-Ba6keUju.js.map} +1 -1
- package/dist/client/assets/{authenticatedMutationClient-D5yD0rch.js → authenticatedMutationClient-CJklf3iD.js} +2 -2
- package/dist/client/assets/{authenticatedMutationClient-D5yD0rch.js.map → authenticatedMutationClient-CJklf3iD.js.map} +1 -1
- package/dist/client/assets/{authorizedShareTransport-Dyj53kJf.js → authorizedShareTransport-Xg20SHJ5.js} +2 -2
- package/dist/client/assets/{authorizedShareTransport-Dyj53kJf.js.map → authorizedShareTransport-Xg20SHJ5.js.map} +1 -1
- package/dist/client/assets/{client-OmvShYdC.js → client-P7FaPwzJ.js} +2 -2
- package/dist/client/assets/{client-OmvShYdC.js.map → client-P7FaPwzJ.js.map} +1 -1
- package/dist/client/assets/{connectionTestTransport-c25QXx7A.js → connectionTestTransport-C9iPOkKM.js} +2 -2
- package/dist/client/assets/{connectionTestTransport-c25QXx7A.js.map → connectionTestTransport-C9iPOkKM.js.map} +1 -1
- package/dist/client/assets/{index-DLoOV6Hp.js → index-DpW_ckau.js} +3 -3
- package/dist/client/assets/{index-DLoOV6Hp.js.map → index-DpW_ckau.js.map} +1 -1
- package/dist/client/assets/{patterns-DEbg7R-A-Cw0A2uKS.js → patterns-DEbg7R-A-BhsMyh9D.js} +2 -2
- package/dist/client/assets/{patterns-DEbg7R-A-Cw0A2uKS.js.map → patterns-DEbg7R-A-BhsMyh9D.js.map} +1 -1
- package/dist/client/assets/{presentPortfolio-CkRqd_zz.js → presentPortfolio-D-v615bg.js} +2 -2
- package/dist/client/assets/{presentPortfolio-CkRqd_zz.js.map → presentPortfolio-D-v615bg.js.map} +1 -1
- package/dist/client/assets/presentWorkspaceItems-IAp5SnpB.js +2 -0
- package/dist/client/assets/presentWorkspaceItems-IAp5SnpB.js.map +1 -0
- package/dist/client/assets/{releaseRoutes-DSWkTh-E.js → releaseRoutes-CfaNElmG.js} +2 -2
- package/dist/client/assets/{releaseRoutes-DSWkTh-E.js.map → releaseRoutes-CfaNElmG.js.map} +1 -1
- package/dist/client/assets/{serviceOnboarding-B9pvdyWf.js → serviceOnboarding-BZ2U_Ugw.js} +2 -2
- package/dist/client/assets/{serviceOnboarding-B9pvdyWf.js.map → serviceOnboarding-BZ2U_Ugw.js.map} +1 -1
- package/dist/client/assets/{useWorkspaceItems-D0FuHGto.js → useWorkspaceItems-DQTYaq1R.js} +2 -2
- package/dist/client/assets/{useWorkspaceItems-D0FuHGto.js.map → useWorkspaceItems-DQTYaq1R.js.map} +1 -1
- package/dist/client/assets/workspaceEntityRoutes-Biw67kRR.js +2 -0
- package/dist/client/assets/workspaceEntityRoutes-Biw67kRR.js.map +1 -0
- package/dist/client/build-graph.json +32 -2
- package/dist/client/index.html +1 -1
- package/dist/server/api/deliveryGraph.d.ts +126 -0
- package/dist/server/api/deliveryGraph.d.ts.map +1 -1
- package/dist/server/api/index.js +2 -2
- package/dist/server/api/shares.d.ts +14 -0
- package/dist/server/api/shares.d.ts.map +1 -1
- package/dist/server/assets/{BindConfig-BjK10BEb.js → BindConfig-Dk3vjYZc.js} +7 -7
- package/dist/server/assets/{BindConfig-BjK10BEb.js.map → BindConfig-Dk3vjYZc.js.map} +1 -1
- package/dist/server/assets/{controlCenterApi-tZPvRPRH.js → controlCenterApi-Dsug4Rzi.js} +2 -2
- package/dist/server/assets/{controlCenterApi-tZPvRPRH.js.map → controlCenterApi-Dsug4Rzi.js.map} +1 -1
- package/dist/server/assets/{domainEvent-x7yeq-gU.js → domainEvent-CZLKMqgn.js} +13 -2
- package/dist/server/assets/{domainEvent-x7yeq-gU.js.map → domainEvent-CZLKMqgn.js.map} +1 -1
- package/dist/server/assets/{firstPartyServices-Y41P8uke.js → firstPartyServices-BWdrzdfD.js} +2 -2
- package/dist/server/assets/{firstPartyServices-Y41P8uke.js.map → firstPartyServices-BWdrzdfD.js.map} +1 -1
- package/dist/server/assets/{manualPluginSynchronization-C0aHB4UM.js → manualPluginSynchronization-CDnX9qXi.js} +64 -23
- package/dist/server/assets/manualPluginSynchronization-CDnX9qXi.js.map +1 -0
- package/dist/server/assets/{portfolioInvalidation-Ds9Xm4_P.js → portfolioInvalidation-iTUo5N4r.js} +26 -6
- package/dist/server/assets/portfolioInvalidation-iTUo5N4r.js.map +1 -0
- package/dist/server/assets/{readiness-CzU3vjYQ.js → readiness-CZBkcjLP.js} +2 -2
- package/dist/server/assets/{readiness-CzU3vjYQ.js.map → readiness-CZBkcjLP.js.map} +1 -1
- package/dist/server/build-graph.json +1 -0
- package/dist/server/domain/deliveryGraph.d.ts +14 -0
- package/dist/server/domain/deliveryGraph.d.ts.map +1 -1
- package/dist/server/domain/index.js +3 -3
- package/dist/server/index.js +4 -4
- package/dist/server/server/application/normalizedPluginPageMaterialization.d.ts +1 -1
- package/dist/server/server/application/normalizedPluginPageMaterialization.d.ts.map +1 -1
- package/dist/server/server/cli.js +4 -4
- package/dist/server/server/index.js +3 -3
- package/dist/server/server/persistence/Persistence.d.ts +35 -0
- package/dist/server/server/persistence/Persistence.d.ts.map +1 -1
- package/dist/server/server/persistence/repositories/delivery-graph/contract.d.ts +56 -0
- package/dist/server/server/persistence/repositories/delivery-graph/contract.d.ts.map +1 -1
- package/dist/server/server/persistence/repositories/delivery-graph/decode.d.ts +7 -0
- package/dist/server/server/persistence/repositories/delivery-graph/decode.d.ts.map +1 -1
- package/dist/server/server/persistence/repositories/delivery-graph/read.d.ts +35 -0
- package/dist/server/server/persistence/repositories/delivery-graph/read.d.ts.map +1 -1
- package/dist/server/server/persistence/repositories/delivery-graph/rows.d.ts +7 -0
- package/dist/server/server/persistence/repositories/delivery-graph/rows.d.ts.map +1 -1
- package/dist/server/server/persistence/repositories/delivery-graph/write.d.ts +14 -0
- package/dist/server/server/persistence/repositories/delivery-graph/write.d.ts.map +1 -1
- package/dist/server/server/persistence/repositories/deliveryGraphRepository.d.ts +35 -0
- package/dist/server/server/persistence/repositories/deliveryGraphRepository.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/client/assets/ReleaseWorkset-BhGacsgb.js +0 -2
- package/dist/client/assets/ReleaseWorkset-BhGacsgb.js.map +0 -1
- package/dist/client/assets/WorkspaceEntityRoute-DPci8Q8I.js +0 -30
- package/dist/client/assets/WorkspaceEntityRoute-DPci8Q8I.js.map +0 -1
- package/dist/client/assets/presentWorkspaceItems-BU__8LcC.js +0 -2
- package/dist/client/assets/presentWorkspaceItems-BU__8LcC.js.map +0 -1
- package/dist/client/assets/workspaceEntityRoutes-CRcfSq7c.js +0 -2
- package/dist/client/assets/workspaceEntityRoutes-CRcfSq7c.js.map +0 -1
- package/dist/server/assets/manualPluginSynchronization-C0aHB4UM.js.map +0 -1
- package/dist/server/assets/portfolioInvalidation-Ds9Xm4_P.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e,n as t,t as n}from"./jsx-runtime-n5LQ9ujS.js";import{c as r,d as i,i as a,l as o,o as s,p as c,r as l,s as u,t as d,u as f}from"./Dialog-DwSIPb-B-DVn37afM.js";import{l as p}from"./index-DLoOV6Hp.js";var m=e(t(),1),h=n(),g={root:`rly_AgentContextButton-module__root`,mark:`rly_AgentContextButton-module__mark`,glyph:`rly_AgentContextButton-module__glyph`,copy:`rly_AgentContextButton-module__copy`,contextRow:`rly_AgentContextButton-module__contextRow`,action:`rly_AgentContextButton-module__action`,agent:`rly_AgentContextButton-module__agent`,contextLabel:`rly_AgentContextButton-module__contextLabel`,context:`rly_AgentContextButton-module__context`,job:`rly_AgentContextButton-module__job`,count:`rly_AgentContextButton-module__count`},_=e=>i(g,e),v=()=>(0,h.jsx)(`span`,{"aria-hidden":`true`,className:_(`mark`),children:(0,h.jsx)(`svg`,{className:_(`glyph`),focusable:`false`,viewBox:`0 0 24 24`,children:(0,h.jsx)(`path`,{d:`M12 3.5 14 10l6.5 2-6.5 2-2 6.5L10 14l-6.5-2 6.5-2Z`,fill:`currentColor`})})}),y=({actionLabel:e=`Ask agent`,agentName:t,className:n,context:r,contextLabel:i=`Context`,job:a,type:s,...c})=>{let l=f(e,`AgentContextButton actionLabel`),u=f(t,`AgentContextButton agentName`),d=f(r,`AgentContextButton context`),p=f(i,`AgentContextButton contextLabel`),m=a===void 0?void 0:f(a.status,`AgentContextButton job status`);if(a?.count!==void 0&&(!Number.isInteger(a.count)||a.count<0))throw Error(`AgentContextButton job count must be a non-negative integer`);return(0,h.jsxs)(`button`,{...c,className:o(_(`root`),n),"data-rly-agent-context-button":``,type:s??`button`,children:[(0,h.jsx)(v,{}),(0,h.jsxs)(`span`,{className:_(`copy`),children:[(0,h.jsx)(`span`,{className:_(`action`),children:l}),(0,h.jsx)(`span`,{className:_(`agent`),children:u}),(0,h.jsxs)(`span`,{className:_(`contextRow`),children:[(0,h.jsx)(`span`,{className:_(`contextLabel`),children:p}),(0,h.jsx)(`span`,{className:_(`context`),children:d})]})]}),m===void 0?null:(0,h.jsxs)(`span`,{className:_(`job`),"data-rly-agent-job":``,children:[m,a?.count===void 0?null:(0,h.jsx)(`span`,{className:_(`count`),children:a.count})]})]})},b={root:`rly_AgentThread-module__root`,header:`rly_AgentThread-module__header`,messageHead:`rly_AgentThread-module__messageHead`,actor:`rly_AgentThread-module__actor`,actions:`rly_AgentThread-module__actions`,agentGlyph:`rly_AgentThread-module__agentGlyph`,avatar:`rly_AgentThread-module__avatar`,context:`rly_AgentThread-module__context`,composer:`rly_AgentThread-module__composer`,conceptLabel:`rly_AgentThread-module__conceptLabel`,messages:`rly_AgentThread-module__messages`,message:`rly_AgentThread-module__message`,agent:`rly_AgentThread-module__agent`,human:`rly_AgentThread-module__human`,system:`rly_AgentThread-module__system`,actorText:`rly_AgentThread-module__actorText`,empty:`rly_AgentThread-module__empty`,content:`rly_AgentThread-module__content`,evidence:`rly_AgentThread-module__evidence`,visuallyHidden:`rly_AgentThread-module__visuallyHidden`},x=e=>i(b,e),S=(e,t)=>{if(e==null||typeof e==`boolean`)throw Error(`${t} must contain renderable content`);typeof e==`string`&&f(e,t)},C=e=>{let t=e.trim().split(/\s+/u),n=Array.from(t[0]??``)[0]??``,r=Array.from(t[t.length-1]??``)[0]??``;return f(`${n}${t.length>1?r:``}`,`AgentThread actor fallback`)},w=e=>{if(e.kind===`human`){f(e.person.id,`AgentThread human id`),f(e.person.name,`AgentThread human name`),f(e.person.role,`AgentThread human role`),e.person.avatarFallback!==void 0&&f(e.person.avatarFallback,`AgentThread human avatarFallback`),e.person.avatarSrc!==void 0&&f(e.person.avatarSrc,`AgentThread human avatarSrc`);return}f(e.id,`AgentThread ${e.kind} id`),f(e.name,`AgentThread ${e.kind} name`),e.kind===`agent`&&(f(e.role,`AgentThread agent role`),e.avatarFallback!==void 0&&f(e.avatarFallback,`AgentThread agent avatarFallback`))},T=e=>{let t=e.kind===`human`?e.person.name:e.name,n=e.kind===`human`?e.person.role:e.kind===`agent`?e.role:`System event`,r=e.kind===`human`?e.person.avatarFallback??C(t):e.kind===`agent`?e.avatarFallback??C(t):`·`,i=e.kind===`human`?e.person.avatarSrc:void 0;return(0,h.jsxs)(`div`,{className:o(x(`actor`),x(e.kind)),"data-rly-agent-thread-actor":e.kind,children:[(0,h.jsx)(s,{className:x(`avatar`),"data-rly-agent-thread-avatar-shape":e.kind===`human`?`circle`:`rounded-square`,decorative:!0,fallback:r,shape:e.kind===`human`?`circle`:`rounded-square`,size:`default`,...i===void 0?{}:{src:i}}),(0,h.jsxs)(`span`,{className:x(`actorText`),children:[(0,h.jsx)(`strong`,{children:t}),(0,h.jsx)(`span`,{children:n})]})]})},E=({announcement:e,className:t,composer:n,context:r,emptyLabel:i=`No messages yet.`,heading:a,messages:s,...c})=>{let l=f(a,`AgentThread heading`),u=f(i,`AgentThread emptyLabel`);S(r,`AgentThread context`),S(n,`AgentThread composer`),e!==void 0&&f(e,`AgentThread announcement`);let d=new Set;for(let e of s){let t=f(e.id,`AgentThread message id`);if(d.has(t))throw Error(`AgentThread message ids must be unique: ${t}`);d.add(t),w(e.actor),S(e.content,`AgentThread message content for ${t}`),f(e.dateTime,`AgentThread message dateTime for ${t}`),f(e.time,`AgentThread message time for ${t}`)}return(0,h.jsxs)(`section`,{...c,className:o(x(`root`),t),"data-rly-agent-thread":``,children:[(0,h.jsxs)(`header`,{className:x(`header`),children:[(0,h.jsx)(`span`,{"aria-hidden":`true`,className:x(`agentGlyph`),children:`AI`}),(0,h.jsx)(`h2`,{children:l})]}),(0,h.jsxs)(`div`,{className:x(`context`),"data-rly-agent-thread-context":``,children:[(0,h.jsx)(`span`,{className:x(`conceptLabel`),children:`Exact context`}),r]}),s.length===0?(0,h.jsx)(`p`,{className:x(`empty`),children:u}):(0,h.jsx)(`ol`,{"aria-label":`${l} messages`,className:x(`messages`),children:s.map(e=>(0,h.jsxs)(`li`,{className:x(`message`),"data-rly-agent-thread-message":e.id,children:[(0,h.jsxs)(`div`,{className:x(`messageHead`),children:[T(e.actor),(0,h.jsx)(`time`,{dateTime:e.dateTime,children:e.time})]}),(0,h.jsx)(`div`,{className:x(`content`),children:e.content}),e.evidence===void 0?null:(0,h.jsx)(`div`,{className:x(`evidence`),"data-rly-agent-thread-evidence":``,children:e.evidence}),e.actions===void 0?null:(0,h.jsx)(`div`,{className:x(`actions`),"data-rly-agent-thread-actions":``,children:e.actions})]},e.id))}),(0,h.jsx)(`p`,{"aria-atomic":`true`,"aria-live":`polite`,className:x(`visuallyHidden`),children:e}),(0,h.jsx)(`div`,{className:x(`composer`),"data-rly-agent-thread-composer":``,children:n})]})},D={root:`rly_Person-module__root`,compact:`rly_Person-module__compact`,defaultSize:`rly_Person-module__defaultSize`,identity:`rly_Person-module__identity`,name:`rly_Person-module__name`,role:`rly_Person-module__role`},O=e=>i(D,e),ee=r({size:{compact:{className:O(`compact`),purpose:`Dense identity row with complete attribution`,tokens:[`space-24`,`type-meta`]},default:{className:O(`defaultSize`),purpose:`Standard identity row with complete attribution`,tokens:[`space-32`,`type-label`,`type-meta`]}}});r({size:`default`});var te=e=>{let t=e.trim().split(/\s+/u),n=t[0]??``,r=t[t.length-1]??n,i=Array.from(n);return f(`${i[0]??``}${t.length>1?Array.from(r)[0]??``:i[1]??``}`,`Person avatar fallback`)},ne=e=>(f(e.id,`Person id`),f(e.name,`Person name`),f(e.role,`Person role`),e.avatarFallback!==void 0&&f(e.avatarFallback,`Person avatarFallback`),e.avatarSrc!==void 0&&f(e.avatarSrc,`Person avatarSrc`),e),k=({className:e,person:t,size:n=`default`,...r})=>{let i=ne(t),a=i.avatarFallback??te(i.name);return(0,h.jsxs)(`div`,{...r,className:o(O(`root`),ee.size[n].className,e),"data-rly-person-size":n,children:[(0,h.jsx)(s,{decorative:!0,fallback:a,size:n===`compact`?`small`:`default`,...i.avatarSrc===void 0?{}:{src:i.avatarSrc}}),(0,h.jsxs)(`span`,{className:O(`identity`),children:[(0,h.jsx)(`span`,{className:O(`name`),children:i.name}),(0,h.jsx)(`span`,{className:O(`role`),children:i.role})]})]})},re={root:`rly_PeopleStrip-module__root`,compact:`rly_PeopleStrip-module__compact`,defaultSize:`rly_PeopleStrip-module__defaultSize`,personItem:`rly_PeopleStrip-module__personItem`,controlItem:`rly_PeopleStrip-module__controlItem`,overflow:`rly_PeopleStrip-module__overflow`},A=e=>i(re,e),ie=r({size:{compact:{className:A(`compact`),purpose:`Dense attributed people list for narrow surfaces`,tokens:[`space-8`,`space-40`]},default:{className:A(`defaultSize`),purpose:`Standard attributed people list`,tokens:[`space-12`,`space-40`]}}});r({size:`default`});var ae=e=>{if(!Number.isInteger(e)||e<1)throw Error(`PeopleStrip limit must be a positive integer`);return e},oe=e=>{let t=new Set;for(let n of e){let e=f(n.id,`PeopleStrip person id`);if(f(n.name,`PeopleStrip name for ${e}`),f(n.role,`PeopleStrip role for ${e}`),t.has(e))throw Error(`PeopleStrip person ids must be unique: ${e}`);t.add(e)}},se=({"aria-label":e,className:t,expanded:n,limit:r=3,onExpandedChange:i,people:a,size:s=`default`,...c})=>{let l=f(e,`PeopleStrip aria-label`),u=ae(r);oe(a);let d=Math.max(a.length-u,0),p=n?a:a.slice(0,u);return(0,h.jsxs)(`ul`,{...c,"aria-label":l,className:o(A(`root`),ie.size[s].className,t),"data-rly-people-strip-size":s,children:[p.map(e=>(0,h.jsx)(`li`,{className:A(`personItem`),children:(0,h.jsx)(k,{person:e,size:s})},e.id)),d===0?null:(0,h.jsx)(`li`,{className:A(`controlItem`),children:(0,h.jsx)(`button`,{"aria-expanded":n,"aria-label":n?`Show fewer people`:`Show ${d} more people`,className:A(`overflow`),onClick:()=>i(!n),type:`button`,children:n?`Show fewer`:`+${d} people`})})]})},ce={root:`rly_CollaboratorGroup-module__root`,compact:`rly_CollaboratorGroup-module__compact`,defaultSize:`rly_CollaboratorGroup-module__defaultSize`,heading:`rly_CollaboratorGroup-module__heading`,lanes:`rly_CollaboratorGroup-module__lanes`,lane:`rly_CollaboratorGroup-module__lane`,laneHeading:`rly_CollaboratorGroup-module__laneHeading`,empty:`rly_CollaboratorGroup-module__empty`},j=e=>i(ce,e),le=r({size:{compact:{className:j(`compact`),purpose:`Narrow entity attribution with explicit role lanes`,tokens:[`space-12`,`type-label`]},default:{className:j(`defaultSize`),purpose:`Standard entity attribution with explicit role lanes`,tokens:[`space-20`,`type-card-title`]}}});r({size:`default`});var ue=({approvers:e=[],authors:t=[],className:n,emptyLabel:r=`No collaborators assigned.`,expandedCategories:i,heading:a,limit:s=3,onCategoryExpandedChange:c,operators:l=[],owners:u=[],reviewers:d=[],size:p=`default`,...g})=>{let _=f(a,`CollaboratorGroup heading`),v=f(r,`CollaboratorGroup emptyLabel`),y=`rly-collaborators-${(0,m.useId)()}`,b=new Set(i),x=[{category:`authors`,label:`Authors`,people:t},{category:`owners`,label:`Owners`,people:u},{category:`reviewers`,label:`Reviewers`,people:d},{category:`operators`,label:`Operators`,people:l},{category:`approvers`,label:`Approvers`,people:e}].filter(e=>e.people.length>0);return(0,h.jsxs)(`section`,{...g,"aria-labelledby":y,className:o(j(`root`),le.size[p].className,n),"data-rly-collaborator-group-size":p,children:[(0,h.jsx)(`h2`,{className:j(`heading`),id:y,children:_}),x.length===0?(0,h.jsx)(`p`,{className:j(`empty`),children:v}):(0,h.jsx)(`div`,{className:j(`lanes`),children:x.map(e=>(0,h.jsxs)(`section`,{className:j(`lane`),children:[(0,h.jsx)(`h3`,{className:j(`laneHeading`),children:e.label}),(0,h.jsx)(se,{"aria-label":`${_}: ${e.label}`,expanded:b.has(e.category),limit:s,onExpandedChange:t=>c(e.category,t),people:e.people,size:p})]},e.category))})]})},de={root:`rly_FreshnessStamp-module__root`,stateWord:`rly_FreshnessStamp-module__stateWord`,separator:`rly_FreshnessStamp-module__separator`,time:`rly_FreshnessStamp-module__time`,compact:`rly_FreshnessStamp-module__compact`,defaultSize:`rly_FreshnessStamp-module__defaultSize`,current:`rly_FreshnessStamp-module__current`,cached:`rly_FreshnessStamp-module__cached`,missing:`rly_FreshnessStamp-module__missing`,stale:`rly_FreshnessStamp-module__stale`,unavailable:`rly_FreshnessStamp-module__unavailable`},M=e=>i(de,e),fe=r({state:{current:{className:M(`current`),purpose:`Current source observation`,tokens:[`color-success-ink`,`color-success-tint`]},cached:{className:M(`cached`),purpose:`Valid cached source observation`,tokens:[`color-text-2`,`color-surface-2`]},stale:{className:M(`stale`),purpose:`Source observation beyond its supplied freshness threshold`,tokens:[`color-held-ink`,`color-held-tint`]},missing:{className:M(`missing`),purpose:`Provider authoritatively reported no object`,tokens:[`color-text-2`,`color-surface-2`]},unavailable:{className:M(`unavailable`),purpose:`No valid source observation is available`,tokens:[`color-blocked-ink`,`color-blocked-tint`]}},size:{compact:{className:M(`compact`),purpose:`Dense freshness metadata`,tokens:[`type-meta`]},default:{className:M(`defaultSize`),purpose:`Standard freshness metadata`,tokens:[`type-label`,`type-meta`]}}});r({size:`default`});var pe={current:`Current`,cached:`Cached`,stale:`Stale`,missing:`Missing`,unavailable:`Unavailable`},me={current:`check`,cached:`clock`,stale:`clock`,missing:`minus`,unavailable:`alert`},N=({className:e,dateTime:t,size:n=`default`,state:r,time:i,...a})=>{let s=i===void 0?void 0:f(i,`FreshnessStamp time`),l=t===void 0?void 0:f(t,`FreshnessStamp dateTime`);return(0,h.jsxs)(`span`,{...a,className:o(M(`root`),fe.state[r].className,fe.size[n].className,e),"data-rly-freshness-state":r,children:[(0,h.jsxs)(`span`,{className:M(`stateWord`),children:[(0,h.jsx)(c,{decorative:!0,name:me[r],size:`small`}),(0,h.jsx)(`span`,{children:pe[r]})]}),s===void 0||l===void 0?null:(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(`span`,{"aria-hidden":`true`,className:M(`separator`),children:`·`}),(0,h.jsx)(`time`,{className:M(`time`),dateTime:l,children:s})]})]})},he={root:`rly_ServiceMark-module__root`,rail:`rly_ServiceMark-module__rail`,glyph:`rly_ServiceMark-module__glyph`,name:`rly_ServiceMark-module__name`,compact:`rly_ServiceMark-module__compact`,defaultSize:`rly_ServiceMark-module__defaultSize`,codecommit:`rly_ServiceMark-module__codecommit`,codepipeline:`rly_ServiceMark-module__codepipeline`,jira:`rly_ServiceMark-module__jira`,confluence:`rly_ServiceMark-module__confluence`,clockify:`rly_ServiceMark-module__clockify`},P=e=>i(he,e),F=r({service:{codecommit:{className:P(`codecommit`),purpose:`CodeCommit provenance`,tokens:[`color-service-codecommit`]},codepipeline:{className:P(`codepipeline`),purpose:`CodePipeline provenance`,tokens:[`color-service-codepipeline`]},jira:{className:P(`jira`),purpose:`Jira provenance`,tokens:[`color-service-jira`]},confluence:{className:P(`confluence`),purpose:`Confluence provenance`,tokens:[`color-service-confluence`]},clockify:{className:P(`clockify`),purpose:`Clockify provenance`,tokens:[`color-service-clockify`]}},size:{compact:{className:P(`compact`),purpose:`Dense provenance metadata`,tokens:[`space-24`,`type-meta`]},default:{className:P(`defaultSize`),purpose:`Standard provenance identity`,tokens:[`space-32`,`type-label`]}}});r({size:`default`});var ge={codecommit:`CodeCommit`,codepipeline:`CodePipeline`,jira:`Jira`,confluence:`Confluence`,clockify:`Clockify`},_e={codecommit:()=>(0,h.jsxs)(`svg`,{"aria-hidden":`true`,className:P(`glyph`),focusable:`false`,viewBox:`0 0 24 24`,children:[(0,h.jsx)(`path`,{d:`M6 5.5h7.5a3 3 0 0 1 3 3v7`,fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`1.8`}),(0,h.jsx)(`circle`,{cx:`6`,cy:`5.5`,fill:`currentColor`,r:`2`}),(0,h.jsx)(`circle`,{cx:`16.5`,cy:`17.5`,fill:`currentColor`,r:`2`}),(0,h.jsx)(`path`,{d:`m10 12 2-2 2 2-2 2Z`,fill:`none`,stroke:`currentColor`,strokeLinejoin:`round`,strokeWidth:`1.6`})]}),codepipeline:()=>(0,h.jsxs)(`svg`,{"aria-hidden":`true`,className:P(`glyph`),focusable:`false`,viewBox:`0 0 24 24`,children:[(0,h.jsx)(`rect`,{fill:`none`,height:`5`,rx:`1`,stroke:`currentColor`,strokeWidth:`1.7`,width:`5`,x:`2.5`,y:`9.5`}),(0,h.jsx)(`rect`,{fill:`none`,height:`5`,rx:`1`,stroke:`currentColor`,strokeWidth:`1.7`,width:`5`,x:`16.5`,y:`9.5`}),(0,h.jsx)(`path`,{d:`M8 12h7m-2.5-2.5L15 12l-2.5 2.5`,fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.8`})]}),jira:()=>(0,h.jsxs)(`svg`,{"aria-hidden":`true`,className:P(`glyph`),focusable:`false`,viewBox:`0 0 24 24`,children:[(0,h.jsx)(`path`,{d:`m12 2.8 8.8 8.8a.6.6 0 0 1 0 .8L12 21.2l-8.8-8.8a.6.6 0 0 1 0-.8Z`,fill:`currentColor`}),(0,h.jsx)(`path`,{d:`m12 7.2 4.8 4.8-4.8 4.8L7.2 12Z`,fill:`var(--rly-color-surface-1)`}),(0,h.jsx)(`path`,{d:`m12 9.8 2.2 2.2-2.2 2.2L9.8 12Z`,fill:`currentColor`})]}),confluence:()=>(0,h.jsxs)(`svg`,{"aria-hidden":`true`,className:P(`glyph`),focusable:`false`,viewBox:`0 0 24 24`,children:[(0,h.jsx)(`path`,{d:`M4 7.2c3.6 2.1 6.8 2.4 9.6.9L17 6.3l2.7 4.3-3.4 1.8c-4.6 2.4-9.5 1.8-14-1.5Z`,fill:`currentColor`}),(0,h.jsx)(`path`,{d:`M20 16.8c-3.6-2.1-6.8-2.4-9.6-.9L7 17.7l-2.7-4.3 3.4-1.8c4.6-2.4 9.5-1.8 14 1.5Z`,fill:`currentColor`})]}),clockify:()=>(0,h.jsxs)(`svg`,{"aria-hidden":`true`,className:P(`glyph`),focusable:`false`,viewBox:`0 0 24 24`,children:[(0,h.jsx)(`circle`,{cx:`11`,cy:`13`,fill:`none`,r:`7`,stroke:`currentColor`,strokeWidth:`1.8`}),(0,h.jsx)(`path`,{d:`M11 9v4l3 2m1.5-10.7 1.8-1.8M18 7l2-2`,fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`1.8`})]})},I=({className:e,service:t,size:n=`default`,...r})=>{let i=_e[t],a=ge[t];return(0,h.jsxs)(`span`,{...r,"aria-label":a,className:o(P(`root`),F.service[t].className,F.size[n].className,e),"data-rly-service":t,role:`img`,children:[(0,h.jsx)(`span`,{"aria-hidden":`true`,className:P(`rail`)}),(0,h.jsx)(i,{}),(0,h.jsx)(`span`,{"aria-hidden":`true`,className:P(`name`),children:a})]})},ve={root:`rly_Verdict-module__root`,verdict:`rly_Verdict-module__verdict`,caution:`rly_Verdict-module__caution`,critical:`rly_Verdict-module__critical`,neutral:`rly_Verdict-module__neutral`,positive:`rly_Verdict-module__positive`,progress:`rly_Verdict-module__progress`,reasonPanel:`rly_Verdict-module__reasonPanel`,icon:`rly_Verdict-module__icon`,reason:`rly_Verdict-module__reason`},L=e=>i(ve,e),ye=r({tone:{caution:{className:L(`caution`),purpose:`Intentional hold or caution requiring attention`,tokens:[`color-held-ink`,`color-held-tint`]},critical:{className:L(`critical`),purpose:`Explicit blocker or failed prerequisite`,tokens:[`color-blocked-ink`,`color-blocked-tint`]},neutral:{className:L(`neutral`),purpose:`Neutral, missing, or unavailable outcome`,tokens:[`color-text-2`,`color-surface-2`]},positive:{className:L(`positive`),purpose:`Satisfied readiness or successful outcome`,tokens:[`color-success-ink`,`color-success-tint`]},progress:{className:L(`progress`),purpose:`Active work or delivery progress`,tokens:[`color-deploying-ink`,`color-deploying-tint`]}}}),be={caution:`clock`,critical:`alert`,neutral:`minus`,positive:`check`,progress:`loader`},R=({className:e,reason:t,tone:n,verdict:r,...i})=>{let a=f(t,`Verdict reason`),s=f(r,`Verdict verdict`);return(0,h.jsxs)(`section`,{...i,className:o(L(`root`),ye.tone[n].className,e),"data-rly-verdict-tone":n,children:[(0,h.jsx)(`h2`,{className:L(`verdict`),children:s}),(0,h.jsxs)(`div`,{className:L(`reasonPanel`),children:[(0,h.jsx)(`span`,{"aria-hidden":`true`,className:L(`icon`),children:(0,h.jsx)(c,{decorative:!0,name:be[n],size:`large`})}),(0,h.jsx)(`p`,{className:L(`reason`),children:a})]})]})},xe={root:`rly_EntityShell-module__root`,navigation:`rly_EntityShell-module__navigation`,header:`rly_EntityShell-module__header`,identity:`rly_EntityShell-module__identity`,title:`rly_EntityShell-module__title`,hero:`rly_EntityShell-module__hero`,body:`rly_EntityShell-module__body`,headerAside:`rly_EntityShell-module__headerAside`,freshness:`rly_EntityShell-module__freshness`,headerSlot:`rly_EntityShell-module__headerSlot`,slotLabel:`rly_EntityShell-module__slotLabel`,content:`rly_EntityShell-module__content`,relationships:`rly_EntityShell-module__relationships`,activity:`rly_EntityShell-module__activity`,asideSlot:`rly_EntityShell-module__asideSlot`,aside:`rly_EntityShell-module__aside`},z=e=>i(xe,e),Se=({actions:e,activity:t,agentEntry:n,className:r,collaborators:i,content:a,evidence:s,facts:c,freshness:l,freshnessDateTime:u,freshnessTime:d,navigation:p,reason:g,relationships:_,service:v,title:y,tone:b,verdict:x,...S})=>{let C=f(y,`EntityShell title`);if(u===void 0!=(d===void 0))throw Error(`EntityShell freshnessDateTime and freshnessTime must be supplied together`);let w=`rly-entity-shell-${(0,m.useId)()}`;return(0,h.jsxs)(`article`,{...S,"aria-labelledby":w,className:o(z(`root`),r),"data-rly-entity-shell":``,children:[p===void 0?null:(0,h.jsx)(`nav`,{"aria-label":`${C} navigation`,className:z(`navigation`),"data-rly-entity-shell-slot":`navigation`,children:p}),(0,h.jsxs)(`header`,{className:z(`header`),children:[(0,h.jsxs)(`div`,{className:z(`identity`),children:[(0,h.jsx)(I,{service:v}),(0,h.jsx)(`h1`,{className:z(`title`),id:w,children:C})]}),(0,h.jsxs)(`div`,{className:z(`hero`),children:[(0,h.jsx)(R,{reason:g,tone:b,verdict:x}),(0,h.jsxs)(`div`,{className:z(`headerAside`),children:[(0,h.jsxs)(`div`,{className:z(`freshness`),"data-rly-entity-shell-slot":`freshness`,children:[(0,h.jsx)(`span`,{className:z(`slotLabel`),children:`Freshness`}),u===void 0||d===void 0?(0,h.jsx)(N,{state:l}):(0,h.jsx)(N,{dateTime:u,state:l,time:d})]}),(0,h.jsx)(`div`,{className:z(`headerSlot`),"data-rly-entity-shell-slot":`actions`,children:e}),(0,h.jsx)(`div`,{className:z(`headerSlot`),"data-rly-entity-shell-slot":`agent-entry`,children:n})]})]})]}),(0,h.jsxs)(`div`,{className:z(`body`),children:[(0,h.jsx)(`section`,{className:z(`content`),"data-rly-entity-shell-slot":`content`,children:a}),(0,h.jsxs)(`aside`,{className:z(`aside`),children:[c===void 0?null:(0,h.jsx)(`section`,{className:z(`asideSlot`),"data-rly-entity-shell-slot":`facts`,children:c}),s===void 0?null:(0,h.jsx)(`section`,{className:z(`asideSlot`),"data-rly-entity-shell-slot":`evidence`,children:s}),(0,h.jsx)(`section`,{className:z(`asideSlot`),"data-rly-entity-shell-slot":`collaborators`,children:i})]})]}),(0,h.jsx)(`section`,{className:z(`relationships`),"data-rly-entity-shell-slot":`relationships`,children:_}),t===void 0?null:(0,h.jsx)(`section`,{className:z(`activity`),"data-rly-entity-shell-slot":`activity`,children:t})]})},Ce={root:`rly_EvidenceStamp-module__root`,source:`rly_EvidenceStamp-module__source`,freshness:`rly_EvidenceStamp-module__freshness`,conceptLabel:`rly_EvidenceStamp-module__conceptLabel`,sourceDetail:`rly_EvidenceStamp-module__sourceDetail`,reference:`rly_EvidenceStamp-module__reference`},B=e=>i(Ce,e),we=({className:e,freshness:t,freshnessDateTime:n,freshnessTime:r,reference:i,service:a,...s})=>{let c=f(i,`EvidenceStamp reference`),l=n===void 0||r===void 0?(0,h.jsx)(N,{size:`compact`,state:t}):(0,h.jsx)(N,{dateTime:n,size:`compact`,state:t,time:r});return(0,h.jsxs)(`div`,{...s,className:o(B(`root`),e),"data-rly-evidence-stamp":``,children:[(0,h.jsxs)(`div`,{className:B(`source`),"data-rly-evidence-source":a,children:[(0,h.jsx)(`span`,{className:B(`conceptLabel`),children:`Evidence source`}),(0,h.jsxs)(`div`,{className:B(`sourceDetail`),children:[(0,h.jsx)(I,{service:a,size:`compact`}),(0,h.jsx)(`code`,{className:B(`reference`),children:c})]})]}),(0,h.jsxs)(`div`,{className:B(`freshness`),"data-rly-evidence-freshness":t,children:[(0,h.jsx)(`span`,{className:B(`conceptLabel`),children:`Freshness`}),l]})]})},V={missing:{icon:`alert`,label:`Missing`},inferred:{icon:`search`,label:`Inferred`},proposed:{icon:`plus`,label:`Proposed`},verified:{icon:`check`,label:`Verified`},governed:{icon:`link`,label:`Governed`},rejected:{icon:`close`,label:`Rejected`},superseded:{icon:`arrow-right`,label:`Superseded`}},H={forward:{arrow:`→`,label:`Forward`},reverse:{arrow:`←`,label:`Reverse`},bidirectional:{arrow:`↔`,label:`Bidirectional`}},Te=(e,t)=>{f(e.id,`${t} person id`),f(e.name,`${t} person name`),f(e.role,`${t} person role`),e.avatarFallback!==void 0&&f(e.avatarFallback,`${t} person avatarFallback`),e.avatarSrc!==void 0&&f(e.avatarSrc,`${t} person avatarSrc`)},Ee=(e,t)=>{if(!Object.hasOwn(F.service,e))throw Error(`${t} service must be a supported rly service`)},De=(e,t)=>{if(e.state===`present`){f(e.id,`${t} id`),f(e.title,`${t} title`),f(e.reference,`${t} reference`),Ee(e.service,t),e.href!==void 0&&f(e.href,`${t} href`),e.person!==void 0&&Te(e.person,t);return}if(e.state===`missing`){f(e.label,`${t} missing label`),f(e.reason,`${t} missing reason`),e.service!==void 0&&Ee(e.service,t);return}throw Error(`${t} state must be present or missing`)},Oe=e=>{let t=new Set;for(let n of e){let e=f(n.id,`Relationship id`);if(t.has(e))throw Error(`Relationship ids must be unique: ${e}`);if(t.add(e),f(n.kind,`Relationship kind for ${e}`),!Object.hasOwn(H,n.direction))throw Error(`Relationship direction for ${e} must be supported`);if(!Object.hasOwn(V,n.lifecycle))throw Error(`Relationship lifecycle for ${e} must be supported`);De(n.source,`Relationship ${e} source`),De(n.target,`Relationship ${e} target`),n.evidence!==void 0&&f(n.evidence,`Relationship evidence for ${e}`),n.actor!==void 0&&Te(n.actor,`Relationship ${e} actor`)}},ke={root:`rly_RelationshipChain-module__root`,heading:`rly_RelationshipChain-module__heading`,empty:`rly_RelationshipChain-module__empty`,list:`rly_RelationshipChain-module__list`,item:`rly_RelationshipChain-module__item`,endpoint:`rly_RelationshipChain-module__endpoint`,endpointLink:`rly_RelationshipChain-module__endpointLink`,identity:`rly_RelationshipChain-module__identity`,missingIdentity:`rly_RelationshipChain-module__missingIdentity`,title:`rly_RelationshipChain-module__title`,missingLabel:`rly_RelationshipChain-module__missingLabel`,kind:`rly_RelationshipChain-module__kind`,reference:`rly_RelationshipChain-module__reference`,direction:`rly_RelationshipChain-module__direction`,evidence:`rly_RelationshipChain-module__evidence`,fieldLabel:`rly_RelationshipChain-module__fieldLabel`,missingEndpoint:`rly_RelationshipChain-module__missingEndpoint`,relationship:`rly_RelationshipChain-module__relationship`,arrow:`rly_RelationshipChain-module__arrow`,actor:`rly_RelationshipChain-module__actor`},U=e=>i(ke,e),Ae=({endpoint:e})=>{if(e.state===`missing`)return(0,h.jsxs)(`div`,{className:o(U(`endpoint`),U(`missingEndpoint`)),"data-rly-endpoint-state":`missing`,children:[e.service===void 0?null:(0,h.jsx)(I,{service:e.service,size:`compact`}),(0,h.jsxs)(`span`,{className:U(`missingIdentity`),children:[(0,h.jsxs)(`span`,{className:U(`missingLabel`),children:[(0,h.jsx)(c,{decorative:!0,name:`alert`,size:`small`}),e.label]}),(0,h.jsx)(`span`,{className:U(`reference`),children:e.reason})]})]});let t=(0,h.jsxs)(`span`,{className:U(`identity`),children:[(0,h.jsx)(`span`,{className:U(`title`),children:e.title}),(0,h.jsx)(`span`,{className:U(`reference`),children:e.reference})]});return(0,h.jsxs)(`div`,{className:U(`endpoint`),"data-rly-endpoint-id":e.id,"data-rly-endpoint-state":`present`,children:[(0,h.jsx)(I,{service:e.service,size:`compact`}),e.href===void 0?t:(0,h.jsx)(p,{className:U(`endpointLink`),href:e.href,children:t}),e.person===void 0?null:(0,h.jsx)(k,{person:e.person,size:`compact`})]})},je=({className:e,emptyLabel:t=`No relationships recorded.`,heading:n,relationships:r,...i})=>{let a=f(n,`RelationshipChain heading`),s=f(t,`RelationshipChain emptyLabel`);Oe(r);let c=`${(0,m.useId)()}-heading`;return(0,h.jsxs)(`section`,{...i,"aria-labelledby":c,className:o(U(`root`),e),children:[(0,h.jsx)(`h2`,{className:U(`heading`),id:c,children:a}),r.length===0?(0,h.jsx)(`p`,{className:U(`empty`),children:s}):(0,h.jsx)(`ol`,{className:U(`list`),children:r.map(e=>{let t=H[e.direction],n=V[e.lifecycle];return(0,h.jsxs)(`li`,{className:U(`item`),"data-rly-relationship-id":e.id,"data-rly-relationship-direction":e.direction,"data-rly-relationship-kind":e.kind,"data-rly-relationship-lifecycle":e.lifecycle,children:[(0,h.jsx)(Ae,{endpoint:e.source}),(0,h.jsxs)(`div`,{className:U(`relationship`),"data-rly-relationship-detail":``,children:[(0,h.jsxs)(`span`,{className:U(`direction`),children:[(0,h.jsx)(`span`,{children:t.label}),(0,h.jsx)(`span`,{"aria-hidden":`true`,className:U(`arrow`),children:t.arrow})]}),(0,h.jsx)(`span`,{className:U(`kind`),children:e.kind}),(0,h.jsx)(l,{icon:n.icon,label:n.label,size:`compact`,tone:`neutral`}),e.actor===void 0?null:(0,h.jsxs)(`div`,{className:U(`actor`),"data-rly-relationship-actor":e.actor.id,children:[(0,h.jsx)(`span`,{className:U(`fieldLabel`),children:`Actor`}),(0,h.jsx)(k,{person:e.actor,size:`compact`})]})]}),(0,h.jsx)(Ae,{endpoint:e.target}),(0,h.jsxs)(`p`,{className:U(`evidence`),children:[(0,h.jsx)(`span`,{className:U(`fieldLabel`),children:`Evidence`}),(0,h.jsx)(`span`,{"data-rly-relationship-evidence":``,children:e.evidence??`No evidence recorded.`})]})]},e.id)})})]})},Me={root:`rly_RelationshipTable-module__root`,heading:`rly_RelationshipTable-module__heading`,empty:`rly_RelationshipTable-module__empty`,table:`rly_RelationshipTable-module__table`,head:`rly_RelationshipTable-module__head`,cell:`rly_RelationshipTable-module__cell`,endpoint:`rly_RelationshipTable-module__endpoint`,identity:`rly_RelationshipTable-module__identity`,relationship:`rly_RelationshipTable-module__relationship`,actor:`rly_RelationshipTable-module__actor`,endpointLink:`rly_RelationshipTable-module__endpointLink`,title:`rly_RelationshipTable-module__title`,missingLabel:`rly_RelationshipTable-module__missingLabel`,kind:`rly_RelationshipTable-module__kind`,reference:`rly_RelationshipTable-module__reference`,direction:`rly_RelationshipTable-module__direction`,evidence:`rly_RelationshipTable-module__evidence`,fieldLabel:`rly_RelationshipTable-module__fieldLabel`,missingEndpoint:`rly_RelationshipTable-module__missingEndpoint`,arrow:`rly_RelationshipTable-module__arrow`,body:`rly_RelationshipTable-module__body`,row:`rly_RelationshipTable-module__row`},W=e=>i(Me,e),Ne=({endpoint:e})=>{if(e.state===`missing`)return(0,h.jsxs)(`div`,{className:o(W(`endpoint`),W(`missingEndpoint`)),"data-rly-endpoint-state":`missing`,children:[e.service===void 0?null:(0,h.jsx)(I,{service:e.service,size:`compact`}),(0,h.jsxs)(`span`,{className:W(`identity`),children:[(0,h.jsxs)(`span`,{className:W(`missingLabel`),children:[(0,h.jsx)(c,{decorative:!0,name:`alert`,size:`small`}),e.label]}),(0,h.jsx)(`span`,{className:W(`reference`),children:e.reason})]})]});let t=(0,h.jsxs)(`span`,{className:W(`identity`),children:[(0,h.jsx)(`span`,{className:W(`title`),children:e.title}),(0,h.jsx)(`span`,{className:W(`reference`),children:e.reference})]});return(0,h.jsxs)(`div`,{className:W(`endpoint`),"data-rly-endpoint-id":e.id,"data-rly-endpoint-state":`present`,children:[(0,h.jsx)(I,{service:e.service,size:`compact`}),e.href===void 0?t:(0,h.jsx)(p,{className:W(`endpointLink`),href:e.href,children:t}),e.person===void 0?null:(0,h.jsx)(k,{person:e.person,size:`compact`})]})},Pe=({className:e,emptyLabel:t=`No relationships recorded.`,heading:n,relationships:r,...i})=>{let a=f(n,`RelationshipTable heading`),s=f(t,`RelationshipTable emptyLabel`);Oe(r);let c=`${(0,m.useId)()}-heading`;return(0,h.jsxs)(`section`,{...i,"aria-labelledby":c,className:o(W(`root`),e),children:[(0,h.jsx)(`h2`,{className:W(`heading`),id:c,children:a}),r.length===0?(0,h.jsx)(`p`,{className:W(`empty`),children:s}):(0,h.jsxs)(`table`,{"aria-labelledby":c,className:W(`table`),children:[(0,h.jsx)(`thead`,{className:W(`head`),children:(0,h.jsxs)(`tr`,{children:[(0,h.jsx)(`th`,{scope:`col`,children:`Source`}),(0,h.jsx)(`th`,{scope:`col`,children:`Relationship`}),(0,h.jsx)(`th`,{scope:`col`,children:`Target`}),(0,h.jsx)(`th`,{scope:`col`,children:`Evidence`})]})}),(0,h.jsx)(`tbody`,{className:W(`body`),children:r.map(e=>{let t=H[e.direction],n=V[e.lifecycle];return(0,h.jsxs)(`tr`,{className:W(`row`),"data-rly-relationship-id":e.id,"data-rly-relationship-direction":e.direction,"data-rly-relationship-kind":e.kind,"data-rly-relationship-lifecycle":e.lifecycle,children:[(0,h.jsx)(`td`,{className:W(`cell`),"data-label":`Source`,children:(0,h.jsx)(Ne,{endpoint:e.source})}),(0,h.jsx)(`td`,{className:W(`cell`),"data-label":`Relationship`,children:(0,h.jsxs)(`div`,{className:W(`relationship`),"data-rly-relationship-detail":``,children:[(0,h.jsxs)(`span`,{className:W(`direction`),children:[(0,h.jsx)(`span`,{children:t.label}),(0,h.jsx)(`span`,{"aria-hidden":`true`,className:W(`arrow`),children:t.arrow})]}),(0,h.jsx)(`span`,{className:W(`kind`),children:e.kind}),(0,h.jsx)(l,{icon:n.icon,label:n.label,size:`compact`,tone:`neutral`}),e.actor===void 0?null:(0,h.jsxs)(`div`,{className:W(`actor`),"data-rly-relationship-actor":e.actor.id,children:[(0,h.jsx)(`span`,{className:W(`fieldLabel`),children:`Actor`}),(0,h.jsx)(k,{person:e.actor,size:`compact`})]})]})}),(0,h.jsx)(`td`,{className:W(`cell`),"data-label":`Target`,children:(0,h.jsx)(Ne,{endpoint:e.target})}),(0,h.jsx)(`td`,{className:W(`cell`),"data-label":`Evidence`,children:(0,h.jsx)(`span`,{className:W(`evidence`),"data-rly-relationship-evidence":``,children:e.evidence??`No evidence recorded.`})})]},e.id)})})]})]})},Fe=/^(?:--[A-Za-z0-9_\-\u0080-\uD7FF\uE000-\u{10ffff}]*|-?[A-Za-z_\u0080-\uD7FF\uE000-\u{10ffff}][A-Za-z0-9_\-\u0080-\uD7FF\uE000-\u{10ffff}]*)$/u,Ie=new Set([`auto`,`default`,`inherit`,`initial`,`match-element`,`none`,`revert`,`revert-layer`,`unset`]),Le=e=>{if(e===void 0)return;let t={relay:e.relay,verdict:e.verdict,version:e.version},n=[[`relay`,t.relay],[`verdict`,t.verdict],[`version`,t.version]],r=new Set;for(let[e,t]of n){let n=f(t,`Release transition ${e} name`);if(n===`root`||Ie.has(n.toLowerCase()))throw Error(`Release transition ${e} name must not use a reserved CSS value: ${n}`);if(!Fe.test(n))throw Error(`Release transition ${e} name must be a valid unescaped CSS custom identifier: ${n}`);if(r.has(n))throw Error(`Release transition names must be unique: ${n}`);r.add(n)}return Object.freeze(t)},Re={blocked:!0,ready:!0,deploying:!0,building:!0,shipped:!0,held:!0,unknown:!0},ze=e=>{if(f(e.id,`Release presentation id`),f(e.version,`Release presentation version`),f(e.codename,`Release presentation codename`),f(e.algorithm,`Release presentation algorithm`),f(e.verdict,`Release presentation verdict`),f(e.reason,`Release presentation reason`),!Object.hasOwn(Re,e.state))throw Error(`Release presentation state must be supported`);e.freshnessDateTime!==void 0&&(f(e.freshnessDateTime,`Release presentation freshnessDateTime`),f(e.freshnessTime,`Release presentation freshnessTime`));let t=new Set;for(let n of e.facts){let e=f(n.id,`Release presentation fact id`);if(t.has(e))throw Error(`Release presentation fact ids must be unique: ${e}`);t.add(e),f(n.label,`Release presentation fact label for ${e}`),f(n.value,`Release presentation fact value for ${e}`)}return e},Be={root:`rly_ReleaseRelay-module__root`,tiles:`rly_ReleaseRelay-module__tiles`,handoff:`rly_ReleaseRelay-module__handoff`,tile:`rly_ReleaseRelay-module__tile`,glyph:`rly_ReleaseRelay-module__glyph`,identity:`rly_ReleaseRelay-module__identity`,codename:`rly_ReleaseRelay-module__codename`,algorithm:`rly_ReleaseRelay-module__algorithm`,compact:`rly_ReleaseRelay-module__compact`,hero:`rly_ReleaseRelay-module__hero`},G=e=>i(Be,e),Ve=r({0:{name:`orbit`},1:{name:`split`},2:{name:`brace`},3:{name:`wave`},4:{name:`gate`},5:{name:`fork`},6:{name:`bridge`},7:{name:`beacon`},8:{name:`loop`},9:{name:`pulse`},10:{name:`anchor`},11:{name:`ladder`},12:{name:`knot`},13:{name:`spark`},14:{name:`stack`},15:{name:`compass`}}),He=r({size:{compact:{className:G(`compact`),purpose:`Release rows and compact previews`,tokens:[`space-32`,`space-8`,`type-label`]},hero:{className:G(`hero`),purpose:`Page-level release identity`,tokens:[`space-48`,`space-4`,`space-8`,`type-card-title`]}}});r({size:`compact`});var Ue={0:`M12 4a8 8 0 1 1-6.9 4M5.1 8H9V4.1`,1:`M5 5v4c0 2 1 3 3 3h8c2 0 3 1 3 3v4M12 12V5`,2:`M9 4H7v5l-3 3 3 3v5h2M15 4h2v5l3 3-3 3v5h-2`,3:`M3 9c3-4 6-4 9 0s6 4 9 0M3 15c3-4 6-4 9 0s6 4 9 0`,4:`M5 19V8l7-4 7 4v11M9 19v-7h6v7`,5:`M12 20V9M12 12 6 6M12 12l6-6M6 6v4M18 6v4`,6:`M3 17h18M5 17v-5c4-5 10-5 14 0v5M8 17v-3M16 17v-3`,7:`M12 3v3M5.6 5.6l2.1 2.1M18.4 5.6l-2.1 2.1M6 20h12l-2-9H8Z`,8:`M8 8a4 4 0 0 1 8 0v8a4 4 0 0 1-8 0V8Zm0 4h8`,9:`M3 13h4l2-6 4 12 2-6h6`,10:`M12 3v15M8 7h8M5 14c0 4 3 7 7 7s7-3 7-7M5 14l-2 2M19 14l2 2`,11:`M7 3v18M17 3v18M7 7h10M7 12h10M7 17h10`,12:`M8 5a4 4 0 0 1 4 4v6a4 4 0 1 0 4-4H8a4 4 0 1 0 4 4V9a4 4 0 0 1 4-4`,13:`M12 3v5M12 16v5M3 12h5M16 12h5M5.6 5.6l3.5 3.5M14.9 14.9l3.5 3.5M18.4 5.6l-3.5 3.5M9.1 14.9l-3.5 3.5`,14:`m4 8 8-4 8 4-8 4Zm0 4 8 4 8-4M4 16l8 4 8-4`,15:`m12 3 3 6 6 3-6 3-3 6-3-6-6-3 6-3Zm0 6v6M9 12h6`},We=e=>{if(e.length!==3)throw Error(`ReleaseRelay symbolIndices must contain exactly three indices`);let t=new Set;for(let n of e){if(!Number.isInteger(n)||n<0||n>15)throw Error(`ReleaseRelay symbol indices must be integers from 0 through 15`);if(t.has(n))throw Error(`ReleaseRelay symbol indices must be distinct`);t.add(n)}return e},K=({algorithm:e,className:t,codename:n,size:r=`compact`,symbolIndices:i,...a})=>{let s=f(e,`ReleaseRelay algorithm`),c=f(n,`ReleaseRelay codename`),l=We(i),u=`Release relay, ${c}, symbols ${l.map(e=>Ve[e].name).join(`, `)}.`;return(0,h.jsxs)(`figure`,{...a,className:o(G(`root`),He.size[r].className,t),"data-rly-release-relay-size":r,children:[(0,h.jsxs)(`span`,{"aria-label":u,className:G(`tiles`),role:`img`,children:[(0,h.jsx)(`span`,{"aria-hidden":`true`,className:G(`handoff`),"data-rly-release-relay-handoff":``}),l.map((e,t)=>(0,h.jsx)(`span`,{"aria-hidden":`true`,className:G(`tile`),"data-rly-release-relay-position":t,"data-rly-release-symbol-index":e,"data-rly-release-symbol-name":Ve[e].name,children:(0,h.jsx)(`svg`,{className:G(`glyph`),focusable:`false`,viewBox:`0 0 24 24`,children:(0,h.jsx)(`path`,{d:Ue[e],fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.7`,vectorEffect:`non-scaling-stroke`})})},e))]}),(0,h.jsxs)(`figcaption`,{className:G(`identity`),children:[(0,h.jsx)(`span`,{className:G(`codename`),children:c}),(0,h.jsxs)(`span`,{className:G(`algorithm`),children:[`Identity algorithm: `,s]})]})]})},Ge={body:`rly_ReleasePreview-module__body`,summary:`rly_ReleasePreview-module__summary`,releaseMeta:`rly_ReleasePreview-module__releaseMeta`,personGroup:`rly_ReleasePreview-module__personGroup`,fact:`rly_ReleasePreview-module__fact`,dialogSurface:`rly_ReleasePreview-module__dialogSurface`,dialogFrame:`rly_ReleasePreview-module__dialogFrame`,dialogScroll:`rly_ReleasePreview-module__dialogScroll`,identityRow:`rly_ReleasePreview-module__identityRow`,version:`rly_ReleasePreview-module__version`,people:`rly_ReleasePreview-module__people`,eyebrow:`rly_ReleasePreview-module__eyebrow`,unassigned:`rly_ReleasePreview-module__unassigned`,facts:`rly_ReleasePreview-module__facts`,slot:`rly_ReleasePreview-module__slot`,dialogFooter:`rly_ReleasePreview-module__dialogFooter`,sheetFooter:`rly_ReleasePreview-module__sheetFooter`,dialogClose:`rly_ReleasePreview-module__dialogClose`,fullViewButton:`rly_ReleasePreview-module__fullViewButton`},q=e=>i(Ge,e),Ke=({agentEntry:e,collaborators:t,entryMotion:n=`intrinsic`,evidence:r,onOpenChange:i,onOpenFullView:o,open:s,openFullViewLabel:c=`Open full view`,presentation:l=`dialog`,primaryAction:p,release:g,stages:_,transitionNames:v,workset:y})=>{let b=ze(g),x=Le(v),S=f(c,`ReleasePreview openFullViewLabel`),C=(0,m.useRef)(null),w=b.freshnessDateTime===void 0?(0,h.jsx)(N,{state:b.freshness}):(0,h.jsx)(N,{dateTime:b.freshnessDateTime,state:b.freshness,time:b.freshnessTime}),T=`Release preview: ${b.version} ${b.codename}`,E=(0,h.jsxs)(`div`,{className:q(`body`),"data-rly-release-preview-presentation":l,"data-rly-release-state":b.state,children:[(0,h.jsxs)(`section`,{"aria-label":`Release summary`,className:q(`summary`),"data-rly-release-preview-summary":``,ref:C,tabIndex:-1,children:[(0,h.jsxs)(`div`,{className:q(`identityRow`),children:[(0,h.jsx)(K,{algorithm:b.algorithm,codename:b.codename,"data-rly-release-transition-name":x?.relay,"data-rly-release-transition-part":`relay`,size:`hero`,style:x===void 0?void 0:{viewTransitionName:x.relay},symbolIndices:b.symbolIndices}),(0,h.jsxs)(`div`,{className:q(`releaseMeta`),children:[(0,h.jsx)(`p`,{className:q(`version`),"data-rly-release-transition-name":x?.version,"data-rly-release-transition-part":`version`,style:x===void 0?void 0:{viewTransitionName:x.version},children:b.version}),w]})]}),(0,h.jsxs)(`div`,{className:q(`people`),children:[(0,h.jsxs)(`div`,{className:q(`personGroup`),children:[(0,h.jsx)(`span`,{className:q(`eyebrow`),children:`Owner`}),b.owner===void 0?(0,h.jsx)(`span`,{className:q(`unassigned`),"data-rly-release-owner":`unassigned`,children:`Unassigned`}):(0,h.jsx)(k,{person:b.owner})]}),(0,h.jsxs)(`div`,{className:q(`personGroup`),children:[(0,h.jsx)(`span`,{className:q(`eyebrow`),children:`Approver`}),b.approver===void 0?(0,h.jsx)(`span`,{className:q(`unassigned`),"data-rly-release-approver":`unassigned`,children:`Unassigned`}):(0,h.jsx)(k,{person:b.approver})]})]}),(0,h.jsx)(R,{"data-rly-release-transition-name":x?.verdict,"data-rly-release-transition-part":`verdict`,reason:b.reason,style:x===void 0?void 0:{viewTransitionName:x.verdict},tone:b.tone,verdict:b.verdict}),(0,h.jsx)(`dl`,{className:q(`facts`),children:b.facts.map(e=>(0,h.jsxs)(`div`,{className:q(`fact`),children:[(0,h.jsx)(`dt`,{children:e.label}),(0,h.jsx)(`dd`,{children:e.value})]},e.id))})]}),t===void 0?null:(0,h.jsx)(`div`,{className:q(`slot`),"data-rly-release-preview-slot":`collaborators`,children:t}),(0,h.jsx)(`div`,{className:q(`slot`),"data-rly-release-preview-slot":`primary-action`,children:p}),(0,h.jsx)(`div`,{className:q(`slot`),"data-rly-release-preview-slot":`stages`,children:_}),(0,h.jsx)(`div`,{className:q(`slot`),"data-rly-release-preview-slot":`workset`,children:y}),(0,h.jsx)(`div`,{className:q(`slot`),"data-rly-release-preview-slot":`evidence`,children:r}),(0,h.jsx)(`div`,{className:q(`slot`),"data-rly-release-preview-slot":`agent-entry`,children:e})]}),D=(0,h.jsx)(d,{className:q(`fullViewButton`),onClick:o,size:`default`,variant:`secondary`,children:S});return l===`sheet`?(0,h.jsx)(a.Root,{onOpenChange:i,open:s,children:(0,h.jsxs)(a.Content,{entryMotion:n,initialFocusRef:C,title:T,children:[(0,h.jsx)(a.Body,{"data-rly-release-preview-scroll":`sheet`,children:E}),(0,h.jsx)(a.Footer,{className:q(`sheetFooter`),"data-rly-release-preview-footer":`sheet`,children:D})]})}):(0,h.jsx)(u.Root,{onOpenChange:i,open:s,children:(0,h.jsx)(u.Content,{className:q(`dialogSurface`),entryMotion:n,initialFocusRef:C,size:`wide`,title:T,children:(0,h.jsxs)(`div`,{className:q(`dialogFrame`),children:[(0,h.jsx)(`div`,{className:q(`dialogClose`),children:(0,h.jsx)(u.Close,{size:`compact`,variant:`quiet`,children:`Close preview`})}),(0,h.jsx)(`div`,{className:q(`dialogScroll`),"data-rly-release-preview-scroll":`dialog`,children:E}),(0,h.jsx)(`footer`,{className:q(`dialogFooter`),"data-rly-release-preview-footer":`dialog`,children:D})]})})})},qe={root:`rly_ReleaseRow-module__root`,identity:`rly_ReleaseRow-module__identity`,verdictBlock:`rly_ReleaseRow-module__verdictBlock`,people:`rly_ReleaseRow-module__people`,actions:`rly_ReleaseRow-module__actions`,personGroup:`rly_ReleaseRow-module__personGroup`,fact:`rly_ReleaseRow-module__fact`,version:`rly_ReleaseRow-module__version`,verdict:`rly_ReleaseRow-module__verdict`,reason:`rly_ReleaseRow-module__reason`,eyebrow:`rly_ReleaseRow-module__eyebrow`,unassigned:`rly_ReleaseRow-module__unassigned`,facts:`rly_ReleaseRow-module__facts`,agentEntry:`rly_ReleaseRow-module__agentEntry`,previewButton:`rly_ReleaseRow-module__previewButton`},J=e=>i(qe,e),Je=({agentEntry:e,className:t,onPreview:n,previewLabel:r=`Preview release`,release:i,transitionNames:a,...s})=>{let c=ze(i),l=Le(a),u=f(r,`ReleaseRow previewLabel`),p=`rly-release-row-verdict-${(0,m.useId)()}`,g=c.freshnessDateTime===void 0?(0,h.jsx)(N,{size:`compact`,state:c.freshness}):(0,h.jsx)(N,{dateTime:c.freshnessDateTime,size:`compact`,state:c.freshness,time:c.freshnessTime});return(0,h.jsxs)(`article`,{...s,className:o(J(`root`),t),"data-rly-release-id":c.id,"data-rly-release-state":c.state,children:[(0,h.jsxs)(`div`,{className:J(`identity`),children:[(0,h.jsx)(K,{algorithm:c.algorithm,codename:c.codename,"data-rly-release-transition-name":l?.relay,"data-rly-release-transition-part":`relay`,size:`compact`,style:l===void 0?void 0:{viewTransitionName:l.relay},symbolIndices:c.symbolIndices}),(0,h.jsx)(`p`,{className:J(`version`),"data-rly-release-transition-name":l?.version,"data-rly-release-transition-part":`version`,style:l===void 0?void 0:{viewTransitionName:l.version},children:c.version}),g]}),(0,h.jsxs)(`section`,{"aria-labelledby":p,className:J(`verdictBlock`),"data-rly-release-transition-name":l?.verdict,"data-rly-release-transition-part":`verdict`,style:l===void 0?void 0:{viewTransitionName:l.verdict},children:[(0,h.jsx)(`h2`,{className:J(`verdict`),id:p,children:c.verdict}),(0,h.jsx)(`p`,{className:J(`reason`),children:c.reason})]}),(0,h.jsxs)(`div`,{className:J(`people`),children:[(0,h.jsxs)(`div`,{className:J(`personGroup`),children:[(0,h.jsx)(`span`,{className:J(`eyebrow`),children:`Owner`}),c.owner===void 0?(0,h.jsx)(`span`,{className:J(`unassigned`),"data-rly-release-owner":`unassigned`,children:`Unassigned`}):(0,h.jsx)(k,{person:c.owner,size:`compact`})]}),c.approver===void 0?null:(0,h.jsxs)(`div`,{className:J(`personGroup`),children:[(0,h.jsx)(`span`,{className:J(`eyebrow`),children:`Approver`}),(0,h.jsx)(k,{person:c.approver,size:`compact`})]})]}),(0,h.jsx)(`dl`,{className:J(`facts`),children:c.facts.map(e=>(0,h.jsxs)(`div`,{className:J(`fact`),"data-rly-release-fact":e.id,children:[(0,h.jsx)(`dt`,{children:e.label}),(0,h.jsx)(`dd`,{children:e.value})]},e.id))}),(0,h.jsxs)(`div`,{className:J(`actions`),children:[(0,h.jsx)(d,{className:J(`previewButton`),onClick:n,size:`default`,children:u}),e===void 0?null:(0,h.jsx)(`div`,{className:J(`agentEntry`),children:e})]})]})},Ye={root:`rly_StageRail-module__root`,heading:`rly_StageRail-module__heading`,list:`rly_StageRail-module__list`,item:`rly_StageRail-module__item`,marker:`rly_StageRail-module__marker`,connector:`rly_StageRail-module__connector`,content:`rly_StageRail-module__content`,name:`rly_StageRail-module__name`,reason:`rly_StageRail-module__reason`,empty:`rly_StageRail-module__empty`,compact:`rly_StageRail-module__compact`,defaultSize:`rly_StageRail-module__defaultSize`,long:`rly_StageRail-module__long`},Y=e=>i(Ye,e),Xe=r({size:{compact:{className:Y(`compact`),purpose:`Dense release and entity stage summaries`,tokens:[`space-24`,`space-8`,`type-label`,`type-meta`]},default:{className:Y(`defaultSize`),purpose:`Standard stage progression with supporting context`,tokens:[`space-24`,`space-12`,`type-card-title`,`type-body`]}}});r({size:`default`});var Ze=e=>{let t=new Set;for(let n of e){let e=f(n.id,`StageRail stage id`);if(f(n.name,`StageRail name for ${e}`),f(n.state,`StageRail state for ${e}`),n.reason!==void 0&&f(n.reason,`StageRail reason for ${e}`),t.has(e))throw Error(`StageRail stage ids must be unique: ${e}`);t.add(e)}return e},Qe=({className:e,emptyLabel:t=`No stages recorded.`,heading:n,size:r=`default`,stages:i,...a})=>{let s=f(n,`StageRail heading`),c=f(t,`StageRail emptyLabel`),u=Ze(i),d=`rly-stage-rail-${(0,m.useId)()}`;return(0,h.jsxs)(`section`,{...a,"aria-labelledby":d,className:o(Y(`root`),Xe.size[r].className,u.length>6&&Y(`long`),e),"data-rly-stage-rail-size":r,children:[(0,h.jsx)(`h2`,{className:Y(`heading`),id:d,children:s}),u.length===0?(0,h.jsx)(`p`,{className:Y(`empty`),children:c}):(0,h.jsx)(`ol`,{className:Y(`list`),children:u.map((e,t)=>(0,h.jsxs)(`li`,{className:Y(`item`),"data-rly-stage-id":e.id,children:[(0,h.jsx)(`span`,{"aria-hidden":`true`,className:Y(`marker`),"data-rly-stage-marker":``,children:t+1}),t===u.length-1?null:(0,h.jsx)(`span`,{"aria-hidden":`true`,className:Y(`connector`),"data-rly-stage-connector":``}),(0,h.jsxs)(`div`,{className:Y(`content`),children:[(0,h.jsx)(`h3`,{className:Y(`name`),children:e.name}),(0,h.jsx)(l,{label:e.state,size:r===`compact`?`compact`:`default`,tone:e.tone}),e.reason===void 0?null:(0,h.jsx)(`p`,{className:Y(`reason`),children:e.reason}),e.owner===void 0?null:(0,h.jsx)(k,{person:e.owner,size:r})]})]},e.id))})]})},$e={root:`rly_TimelineRow-module__root`,time:`rly_TimelineRow-module__time`,marker:`rly_TimelineRow-module__marker`,dot:`rly_TimelineRow-module__dot`,connector:`rly_TimelineRow-module__connector`,content:`rly_TimelineRow-module__content`,meta:`rly_TimelineRow-module__meta`,title:`rly_TimelineRow-module__title`,link:`rly_TimelineRow-module__link`,detail:`rly_TimelineRow-module__detail`,actorKind:`rly_TimelineRow-module__actorKind`,actor:`rly_TimelineRow-module__actor`},X=e=>i($e,e),et={human:`Human`,agent:`Agent`,plugin:`Plugin`,system:`System`},tt=e=>{if(f(e.id,`TimelineRow event id`),f(e.title,`TimelineRow event title`),f(e.detail,`TimelineRow event detail`),f(e.dateTime,`TimelineRow event dateTime`),f(e.time,`TimelineRow event time`),e.href!==void 0&&f(e.href,`TimelineRow event href`),!Object.hasOwn(et,e.actorKind))throw Error(`TimelineRow event actorKind must be human, agent, plugin, or system`);return e},nt=({className:e,continued:t,event:n,...r})=>{let i=tt(n),a=`rly-timeline-row-${(0,m.useId)()}`,s=(0,h.jsx)(`h2`,{className:X(`title`),id:a,children:i.title});return(0,h.jsxs)(`li`,{...r,className:o(X(`root`),e),"data-rly-timeline-actor":i.actorKind,"data-rly-timeline-event-id":i.id,children:[(0,h.jsx)(`time`,{className:X(`time`),dateTime:i.dateTime,children:i.time}),(0,h.jsxs)(`span`,{"aria-hidden":`true`,className:X(`marker`),children:[(0,h.jsx)(`span`,{className:X(`dot`)}),t?(0,h.jsx)(`span`,{className:X(`connector`),"data-rly-timeline-connector":``}):null]}),(0,h.jsxs)(`article`,{"aria-labelledby":a,className:X(`content`),children:[i.href===void 0?s:(0,h.jsx)(p,{className:X(`link`),href:i.href,children:s}),(0,h.jsx)(`p`,{className:X(`detail`),children:i.detail})]}),(0,h.jsxs)(`div`,{className:X(`meta`),children:[(0,h.jsx)(`span`,{className:X(`actorKind`),children:et[i.actorKind]}),i.service===void 0?null:(0,h.jsx)(I,{service:i.service,size:`compact`}),i.actor===void 0?null:(0,h.jsx)(`div`,{className:X(`actor`),children:i.actor})]})]})},rt={root:`rly_WorksetCard-module__root`,heading:`rly_WorksetCard-module__heading`,dimensions:`rly_WorksetCard-module__dimensions`,dimension:`rly_WorksetCard-module__dimension`,dimensionHeading:`rly_WorksetCard-module__dimensionHeading`,gaps:`rly_WorksetCard-module__gaps`,list:`rly_WorksetCard-module__list`,gapList:`rly_WorksetCard-module__gapList`,keyList:`rly_WorksetCard-module__keyList`,item:`rly_WorksetCard-module__item`,gap:`rly_WorksetCard-module__gap`,identity:`rly_WorksetCard-module__identity`,link:`rly_WorksetCard-module__link`,itemTitle:`rly_WorksetCard-module__itemTitle`,reference:`rly_WorksetCard-module__reference`,empty:`rly_WorksetCard-module__empty`,conceptLabel:`rly_WorksetCard-module__conceptLabel`,emptyLink:`rly_WorksetCard-module__emptyLink`,linkedWork:`rly_WorksetCard-module__linkedWork`},Z=e=>i(rt,e),Q=(e,t)=>{e!==void 0&&f(e,`${t} href`)},$=(e,t,n)=>{let r=f(e,`${n} id`);if(t.has(r))throw Error(`${n} ids must be unique: ${r}`);return t.add(r),r},it=e=>{let t=new Set;for(let n of e){let e=$(n.id,t,`WorksetCard Jira item`);f(n.key,`WorksetCard Jira key for ${e}`),f(n.title,`WorksetCard Jira title for ${e}`),f(n.state,`WorksetCard Jira state for ${e}`),Q(n.href,`WorksetCard Jira item ${e}`)}},at=e=>{let t=new Set;for(let n of e){let e=$(n.id,t,`WorksetCard pull request group`);f(n.title,`WorksetCard pull request title for ${e}`),f(n.reference,`WorksetCard pull request reference for ${e}`),f(n.state,`WorksetCard pull request state for ${e}`),Q(n.href,`WorksetCard pull request group ${e}`);for(let t of n.linkedJiraKeys)f(t,`WorksetCard linked Jira key for ${e}`)}},ot=e=>{let t=new Set;for(let n of e){let e=$(n.id,t,`WorksetCard gap`);if(f(n.label,`WorksetCard gap label for ${e}`),f(n.reason,`WorksetCard gap reason for ${e}`),!Object.hasOwn(F.service,n.service))throw Error(`WorksetCard gap service for ${e} must be supported`)}},st=e=>{let t=new Set;for(let n of e){let e=$(n.id,t,`WorksetCard pipeline`);f(n.title,`WorksetCard pipeline title for ${e}`),f(n.reference,`WorksetCard pipeline reference for ${e}`),f(n.state,`WorksetCard pipeline state for ${e}`),Q(n.href,`WorksetCard pipeline ${e}`)}},ct=({href:e,reference:t,title:n})=>{let r=(0,h.jsxs)(`span`,{className:Z(`identity`),children:[(0,h.jsx)(`span`,{className:Z(`itemTitle`),children:n}),(0,h.jsx)(`span`,{className:Z(`reference`),children:t})]});return e===void 0?r:(0,h.jsx)(p,{className:Z(`link`),href:e,children:r})},lt=({className:e,gapEmptyLabel:t=`No relationship gaps recorded.`,gaps:n,heading:r,jiraEmptyLabel:i=`No Jira work recorded.`,jiraItems:a,pipelineEmptyLabel:s=`No pipeline delivery recorded.`,pipelines:c,pullRequestEmptyLabel:u=`No pull request groups recorded.`,pullRequestGroups:d,...p})=>{let g=f(r,`WorksetCard heading`),_=f(i,`WorksetCard jiraEmptyLabel`),v=f(u,`WorksetCard pullRequestEmptyLabel`),y=f(t,`WorksetCard gapEmptyLabel`),b=f(s,`WorksetCard pipelineEmptyLabel`);it(a),at(d),ot(n),st(c);let x=`rly-workset-${(0,m.useId)()}`;return(0,h.jsxs)(`section`,{...p,"aria-labelledby":x,className:o(Z(`root`),e),children:[(0,h.jsx)(`h2`,{className:Z(`heading`),id:x,children:g}),(0,h.jsxs)(`div`,{className:Z(`dimensions`),children:[(0,h.jsxs)(`section`,{className:Z(`dimension`),"data-rly-workset-dimension":`jira`,children:[(0,h.jsxs)(`div`,{className:Z(`dimensionHeading`),children:[(0,h.jsx)(I,{service:`jira`,size:`compact`}),(0,h.jsx)(`h3`,{children:`Jira work`})]}),a.length===0?(0,h.jsx)(`p`,{className:Z(`empty`),children:_}):(0,h.jsx)(`ul`,{className:Z(`list`),children:a.map(e=>(0,h.jsxs)(`li`,{className:Z(`item`),"data-rly-workset-jira-id":e.id,children:[(0,h.jsx)(ct,{...e.href===void 0?{}:{href:e.href},reference:e.key,title:e.title}),(0,h.jsx)(l,{label:e.state,size:`compact`,tone:e.tone}),e.owner===void 0?null:(0,h.jsx)(k,{person:e.owner,size:`compact`})]},e.id))})]}),(0,h.jsxs)(`section`,{className:Z(`dimension`),"data-rly-workset-dimension":`pull-requests`,children:[(0,h.jsxs)(`div`,{className:Z(`dimensionHeading`),children:[(0,h.jsx)(I,{service:`codecommit`,size:`compact`}),(0,h.jsx)(`h3`,{children:`Pull request groups`})]}),d.length===0?(0,h.jsx)(`p`,{className:Z(`empty`),children:v}):(0,h.jsx)(`ul`,{className:Z(`list`),children:d.map(e=>(0,h.jsxs)(`li`,{className:Z(`item`),"data-rly-workset-pr-id":e.id,children:[(0,h.jsx)(ct,{...e.href===void 0?{}:{href:e.href},reference:e.reference,title:e.title}),(0,h.jsx)(l,{label:e.state,size:`compact`,tone:e.tone}),(0,h.jsxs)(`div`,{className:Z(`linkedWork`),children:[(0,h.jsx)(`span`,{className:Z(`conceptLabel`),children:`Linked Jira work`}),e.linkedJiraKeys.length===0?(0,h.jsx)(`span`,{className:Z(`emptyLink`),children:`No Jira links recorded.`}):(0,h.jsx)(`ul`,{className:Z(`keyList`),children:e.linkedJiraKeys.map((e,t)=>(0,h.jsx)(`li`,{"data-rly-linked-jira-key":e,children:e},`${e}-${t}`))})]}),e.author===void 0?null:(0,h.jsx)(k,{person:e.author,size:`compact`})]},e.id))}),(0,h.jsxs)(`div`,{className:Z(`gaps`),children:[(0,h.jsx)(`h4`,{children:`Relationship gaps`}),n.length===0?(0,h.jsx)(`p`,{className:Z(`empty`),children:y}):(0,h.jsx)(`ul`,{className:Z(`gapList`),children:n.map(e=>(0,h.jsxs)(`li`,{className:Z(`gap`),"data-rly-workset-gap-id":e.id,children:[(0,h.jsx)(I,{service:e.service,size:`compact`}),(0,h.jsx)(`strong`,{children:e.label}),(0,h.jsx)(`span`,{children:e.reason})]},e.id))})]})]}),(0,h.jsxs)(`section`,{className:Z(`dimension`),"data-rly-workset-dimension":`pipelines`,children:[(0,h.jsxs)(`div`,{className:Z(`dimensionHeading`),children:[(0,h.jsx)(I,{service:`codepipeline`,size:`compact`}),(0,h.jsx)(`h3`,{children:`Pipeline delivery`})]}),c.length===0?(0,h.jsx)(`p`,{className:Z(`empty`),children:b}):(0,h.jsx)(`ul`,{className:Z(`list`),children:c.map(e=>(0,h.jsxs)(`li`,{className:Z(`item`),"data-rly-workset-pipeline-id":e.id,children:[(0,h.jsx)(ct,{...e.href===void 0?{}:{href:e.href},reference:e.reference,title:e.title}),(0,h.jsx)(l,{label:e.state,size:`compact`,tone:e.tone}),e.operator===void 0?null:(0,h.jsx)(k,{person:e.operator,size:`compact`}),e.approver===void 0?null:(0,h.jsx)(k,{person:e.approver,size:`compact`}),(0,h.jsx)(Qe,{heading:`${e.reference} stages`,size:`compact`,stages:e.stages})]},e.id))})]})]})]})};export{y as _,nt as a,ue as c,R as d,we as f,se as g,E as h,N as i,Ke as l,Pe as m,Je as n,k as o,je as p,lt as r,Qe as s,K as t,Se as u,I as v};
|
|
2
|
-
//# sourceMappingURL=patterns-DEbg7R-A-
|
|
1
|
+
import{a as e,n as t,t as n}from"./jsx-runtime-n5LQ9ujS.js";import{c as r,d as i,i as a,l as o,o as s,p as c,r as l,s as u,t as d,u as f}from"./Dialog-DwSIPb-B-DVn37afM.js";import{l as p}from"./index-DpW_ckau.js";var m=e(t(),1),h=n(),g={root:`rly_AgentContextButton-module__root`,mark:`rly_AgentContextButton-module__mark`,glyph:`rly_AgentContextButton-module__glyph`,copy:`rly_AgentContextButton-module__copy`,contextRow:`rly_AgentContextButton-module__contextRow`,action:`rly_AgentContextButton-module__action`,agent:`rly_AgentContextButton-module__agent`,contextLabel:`rly_AgentContextButton-module__contextLabel`,context:`rly_AgentContextButton-module__context`,job:`rly_AgentContextButton-module__job`,count:`rly_AgentContextButton-module__count`},_=e=>i(g,e),v=()=>(0,h.jsx)(`span`,{"aria-hidden":`true`,className:_(`mark`),children:(0,h.jsx)(`svg`,{className:_(`glyph`),focusable:`false`,viewBox:`0 0 24 24`,children:(0,h.jsx)(`path`,{d:`M12 3.5 14 10l6.5 2-6.5 2-2 6.5L10 14l-6.5-2 6.5-2Z`,fill:`currentColor`})})}),y=({actionLabel:e=`Ask agent`,agentName:t,className:n,context:r,contextLabel:i=`Context`,job:a,type:s,...c})=>{let l=f(e,`AgentContextButton actionLabel`),u=f(t,`AgentContextButton agentName`),d=f(r,`AgentContextButton context`),p=f(i,`AgentContextButton contextLabel`),m=a===void 0?void 0:f(a.status,`AgentContextButton job status`);if(a?.count!==void 0&&(!Number.isInteger(a.count)||a.count<0))throw Error(`AgentContextButton job count must be a non-negative integer`);return(0,h.jsxs)(`button`,{...c,className:o(_(`root`),n),"data-rly-agent-context-button":``,type:s??`button`,children:[(0,h.jsx)(v,{}),(0,h.jsxs)(`span`,{className:_(`copy`),children:[(0,h.jsx)(`span`,{className:_(`action`),children:l}),(0,h.jsx)(`span`,{className:_(`agent`),children:u}),(0,h.jsxs)(`span`,{className:_(`contextRow`),children:[(0,h.jsx)(`span`,{className:_(`contextLabel`),children:p}),(0,h.jsx)(`span`,{className:_(`context`),children:d})]})]}),m===void 0?null:(0,h.jsxs)(`span`,{className:_(`job`),"data-rly-agent-job":``,children:[m,a?.count===void 0?null:(0,h.jsx)(`span`,{className:_(`count`),children:a.count})]})]})},b={root:`rly_AgentThread-module__root`,header:`rly_AgentThread-module__header`,messageHead:`rly_AgentThread-module__messageHead`,actor:`rly_AgentThread-module__actor`,actions:`rly_AgentThread-module__actions`,agentGlyph:`rly_AgentThread-module__agentGlyph`,avatar:`rly_AgentThread-module__avatar`,context:`rly_AgentThread-module__context`,composer:`rly_AgentThread-module__composer`,conceptLabel:`rly_AgentThread-module__conceptLabel`,messages:`rly_AgentThread-module__messages`,message:`rly_AgentThread-module__message`,agent:`rly_AgentThread-module__agent`,human:`rly_AgentThread-module__human`,system:`rly_AgentThread-module__system`,actorText:`rly_AgentThread-module__actorText`,empty:`rly_AgentThread-module__empty`,content:`rly_AgentThread-module__content`,evidence:`rly_AgentThread-module__evidence`,visuallyHidden:`rly_AgentThread-module__visuallyHidden`},x=e=>i(b,e),S=(e,t)=>{if(e==null||typeof e==`boolean`)throw Error(`${t} must contain renderable content`);typeof e==`string`&&f(e,t)},C=e=>{let t=e.trim().split(/\s+/u),n=Array.from(t[0]??``)[0]??``,r=Array.from(t[t.length-1]??``)[0]??``;return f(`${n}${t.length>1?r:``}`,`AgentThread actor fallback`)},w=e=>{if(e.kind===`human`){f(e.person.id,`AgentThread human id`),f(e.person.name,`AgentThread human name`),f(e.person.role,`AgentThread human role`),e.person.avatarFallback!==void 0&&f(e.person.avatarFallback,`AgentThread human avatarFallback`),e.person.avatarSrc!==void 0&&f(e.person.avatarSrc,`AgentThread human avatarSrc`);return}f(e.id,`AgentThread ${e.kind} id`),f(e.name,`AgentThread ${e.kind} name`),e.kind===`agent`&&(f(e.role,`AgentThread agent role`),e.avatarFallback!==void 0&&f(e.avatarFallback,`AgentThread agent avatarFallback`))},T=e=>{let t=e.kind===`human`?e.person.name:e.name,n=e.kind===`human`?e.person.role:e.kind===`agent`?e.role:`System event`,r=e.kind===`human`?e.person.avatarFallback??C(t):e.kind===`agent`?e.avatarFallback??C(t):`·`,i=e.kind===`human`?e.person.avatarSrc:void 0;return(0,h.jsxs)(`div`,{className:o(x(`actor`),x(e.kind)),"data-rly-agent-thread-actor":e.kind,children:[(0,h.jsx)(s,{className:x(`avatar`),"data-rly-agent-thread-avatar-shape":e.kind===`human`?`circle`:`rounded-square`,decorative:!0,fallback:r,shape:e.kind===`human`?`circle`:`rounded-square`,size:`default`,...i===void 0?{}:{src:i}}),(0,h.jsxs)(`span`,{className:x(`actorText`),children:[(0,h.jsx)(`strong`,{children:t}),(0,h.jsx)(`span`,{children:n})]})]})},E=({announcement:e,className:t,composer:n,context:r,emptyLabel:i=`No messages yet.`,heading:a,messages:s,...c})=>{let l=f(a,`AgentThread heading`),u=f(i,`AgentThread emptyLabel`);S(r,`AgentThread context`),S(n,`AgentThread composer`),e!==void 0&&f(e,`AgentThread announcement`);let d=new Set;for(let e of s){let t=f(e.id,`AgentThread message id`);if(d.has(t))throw Error(`AgentThread message ids must be unique: ${t}`);d.add(t),w(e.actor),S(e.content,`AgentThread message content for ${t}`),f(e.dateTime,`AgentThread message dateTime for ${t}`),f(e.time,`AgentThread message time for ${t}`)}return(0,h.jsxs)(`section`,{...c,className:o(x(`root`),t),"data-rly-agent-thread":``,children:[(0,h.jsxs)(`header`,{className:x(`header`),children:[(0,h.jsx)(`span`,{"aria-hidden":`true`,className:x(`agentGlyph`),children:`AI`}),(0,h.jsx)(`h2`,{children:l})]}),(0,h.jsxs)(`div`,{className:x(`context`),"data-rly-agent-thread-context":``,children:[(0,h.jsx)(`span`,{className:x(`conceptLabel`),children:`Exact context`}),r]}),s.length===0?(0,h.jsx)(`p`,{className:x(`empty`),children:u}):(0,h.jsx)(`ol`,{"aria-label":`${l} messages`,className:x(`messages`),children:s.map(e=>(0,h.jsxs)(`li`,{className:x(`message`),"data-rly-agent-thread-message":e.id,children:[(0,h.jsxs)(`div`,{className:x(`messageHead`),children:[T(e.actor),(0,h.jsx)(`time`,{dateTime:e.dateTime,children:e.time})]}),(0,h.jsx)(`div`,{className:x(`content`),children:e.content}),e.evidence===void 0?null:(0,h.jsx)(`div`,{className:x(`evidence`),"data-rly-agent-thread-evidence":``,children:e.evidence}),e.actions===void 0?null:(0,h.jsx)(`div`,{className:x(`actions`),"data-rly-agent-thread-actions":``,children:e.actions})]},e.id))}),(0,h.jsx)(`p`,{"aria-atomic":`true`,"aria-live":`polite`,className:x(`visuallyHidden`),children:e}),(0,h.jsx)(`div`,{className:x(`composer`),"data-rly-agent-thread-composer":``,children:n})]})},D={root:`rly_Person-module__root`,compact:`rly_Person-module__compact`,defaultSize:`rly_Person-module__defaultSize`,identity:`rly_Person-module__identity`,name:`rly_Person-module__name`,role:`rly_Person-module__role`},O=e=>i(D,e),ee=r({size:{compact:{className:O(`compact`),purpose:`Dense identity row with complete attribution`,tokens:[`space-24`,`type-meta`]},default:{className:O(`defaultSize`),purpose:`Standard identity row with complete attribution`,tokens:[`space-32`,`type-label`,`type-meta`]}}});r({size:`default`});var te=e=>{let t=e.trim().split(/\s+/u),n=t[0]??``,r=t[t.length-1]??n,i=Array.from(n);return f(`${i[0]??``}${t.length>1?Array.from(r)[0]??``:i[1]??``}`,`Person avatar fallback`)},ne=e=>(f(e.id,`Person id`),f(e.name,`Person name`),f(e.role,`Person role`),e.avatarFallback!==void 0&&f(e.avatarFallback,`Person avatarFallback`),e.avatarSrc!==void 0&&f(e.avatarSrc,`Person avatarSrc`),e),k=({className:e,person:t,size:n=`default`,...r})=>{let i=ne(t),a=i.avatarFallback??te(i.name);return(0,h.jsxs)(`div`,{...r,className:o(O(`root`),ee.size[n].className,e),"data-rly-person-size":n,children:[(0,h.jsx)(s,{decorative:!0,fallback:a,size:n===`compact`?`small`:`default`,...i.avatarSrc===void 0?{}:{src:i.avatarSrc}}),(0,h.jsxs)(`span`,{className:O(`identity`),children:[(0,h.jsx)(`span`,{className:O(`name`),children:i.name}),(0,h.jsx)(`span`,{className:O(`role`),children:i.role})]})]})},re={root:`rly_PeopleStrip-module__root`,compact:`rly_PeopleStrip-module__compact`,defaultSize:`rly_PeopleStrip-module__defaultSize`,personItem:`rly_PeopleStrip-module__personItem`,controlItem:`rly_PeopleStrip-module__controlItem`,overflow:`rly_PeopleStrip-module__overflow`},A=e=>i(re,e),ie=r({size:{compact:{className:A(`compact`),purpose:`Dense attributed people list for narrow surfaces`,tokens:[`space-8`,`space-40`]},default:{className:A(`defaultSize`),purpose:`Standard attributed people list`,tokens:[`space-12`,`space-40`]}}});r({size:`default`});var ae=e=>{if(!Number.isInteger(e)||e<1)throw Error(`PeopleStrip limit must be a positive integer`);return e},oe=e=>{let t=new Set;for(let n of e){let e=f(n.id,`PeopleStrip person id`);if(f(n.name,`PeopleStrip name for ${e}`),f(n.role,`PeopleStrip role for ${e}`),t.has(e))throw Error(`PeopleStrip person ids must be unique: ${e}`);t.add(e)}},se=({"aria-label":e,className:t,expanded:n,limit:r=3,onExpandedChange:i,people:a,size:s=`default`,...c})=>{let l=f(e,`PeopleStrip aria-label`),u=ae(r);oe(a);let d=Math.max(a.length-u,0),p=n?a:a.slice(0,u);return(0,h.jsxs)(`ul`,{...c,"aria-label":l,className:o(A(`root`),ie.size[s].className,t),"data-rly-people-strip-size":s,children:[p.map(e=>(0,h.jsx)(`li`,{className:A(`personItem`),children:(0,h.jsx)(k,{person:e,size:s})},e.id)),d===0?null:(0,h.jsx)(`li`,{className:A(`controlItem`),children:(0,h.jsx)(`button`,{"aria-expanded":n,"aria-label":n?`Show fewer people`:`Show ${d} more people`,className:A(`overflow`),onClick:()=>i(!n),type:`button`,children:n?`Show fewer`:`+${d} people`})})]})},ce={root:`rly_CollaboratorGroup-module__root`,compact:`rly_CollaboratorGroup-module__compact`,defaultSize:`rly_CollaboratorGroup-module__defaultSize`,heading:`rly_CollaboratorGroup-module__heading`,lanes:`rly_CollaboratorGroup-module__lanes`,lane:`rly_CollaboratorGroup-module__lane`,laneHeading:`rly_CollaboratorGroup-module__laneHeading`,empty:`rly_CollaboratorGroup-module__empty`},j=e=>i(ce,e),le=r({size:{compact:{className:j(`compact`),purpose:`Narrow entity attribution with explicit role lanes`,tokens:[`space-12`,`type-label`]},default:{className:j(`defaultSize`),purpose:`Standard entity attribution with explicit role lanes`,tokens:[`space-20`,`type-card-title`]}}});r({size:`default`});var ue=({approvers:e=[],authors:t=[],className:n,emptyLabel:r=`No collaborators assigned.`,expandedCategories:i,heading:a,limit:s=3,onCategoryExpandedChange:c,operators:l=[],owners:u=[],reviewers:d=[],size:p=`default`,...g})=>{let _=f(a,`CollaboratorGroup heading`),v=f(r,`CollaboratorGroup emptyLabel`),y=`rly-collaborators-${(0,m.useId)()}`,b=new Set(i),x=[{category:`authors`,label:`Authors`,people:t},{category:`owners`,label:`Owners`,people:u},{category:`reviewers`,label:`Reviewers`,people:d},{category:`operators`,label:`Operators`,people:l},{category:`approvers`,label:`Approvers`,people:e}].filter(e=>e.people.length>0);return(0,h.jsxs)(`section`,{...g,"aria-labelledby":y,className:o(j(`root`),le.size[p].className,n),"data-rly-collaborator-group-size":p,children:[(0,h.jsx)(`h2`,{className:j(`heading`),id:y,children:_}),x.length===0?(0,h.jsx)(`p`,{className:j(`empty`),children:v}):(0,h.jsx)(`div`,{className:j(`lanes`),children:x.map(e=>(0,h.jsxs)(`section`,{className:j(`lane`),children:[(0,h.jsx)(`h3`,{className:j(`laneHeading`),children:e.label}),(0,h.jsx)(se,{"aria-label":`${_}: ${e.label}`,expanded:b.has(e.category),limit:s,onExpandedChange:t=>c(e.category,t),people:e.people,size:p})]},e.category))})]})},de={root:`rly_FreshnessStamp-module__root`,stateWord:`rly_FreshnessStamp-module__stateWord`,separator:`rly_FreshnessStamp-module__separator`,time:`rly_FreshnessStamp-module__time`,compact:`rly_FreshnessStamp-module__compact`,defaultSize:`rly_FreshnessStamp-module__defaultSize`,current:`rly_FreshnessStamp-module__current`,cached:`rly_FreshnessStamp-module__cached`,missing:`rly_FreshnessStamp-module__missing`,stale:`rly_FreshnessStamp-module__stale`,unavailable:`rly_FreshnessStamp-module__unavailable`},M=e=>i(de,e),fe=r({state:{current:{className:M(`current`),purpose:`Current source observation`,tokens:[`color-success-ink`,`color-success-tint`]},cached:{className:M(`cached`),purpose:`Valid cached source observation`,tokens:[`color-text-2`,`color-surface-2`]},stale:{className:M(`stale`),purpose:`Source observation beyond its supplied freshness threshold`,tokens:[`color-held-ink`,`color-held-tint`]},missing:{className:M(`missing`),purpose:`Provider authoritatively reported no object`,tokens:[`color-text-2`,`color-surface-2`]},unavailable:{className:M(`unavailable`),purpose:`No valid source observation is available`,tokens:[`color-blocked-ink`,`color-blocked-tint`]}},size:{compact:{className:M(`compact`),purpose:`Dense freshness metadata`,tokens:[`type-meta`]},default:{className:M(`defaultSize`),purpose:`Standard freshness metadata`,tokens:[`type-label`,`type-meta`]}}});r({size:`default`});var pe={current:`Current`,cached:`Cached`,stale:`Stale`,missing:`Missing`,unavailable:`Unavailable`},me={current:`check`,cached:`clock`,stale:`clock`,missing:`minus`,unavailable:`alert`},N=({className:e,dateTime:t,size:n=`default`,state:r,time:i,...a})=>{let s=i===void 0?void 0:f(i,`FreshnessStamp time`),l=t===void 0?void 0:f(t,`FreshnessStamp dateTime`);return(0,h.jsxs)(`span`,{...a,className:o(M(`root`),fe.state[r].className,fe.size[n].className,e),"data-rly-freshness-state":r,children:[(0,h.jsxs)(`span`,{className:M(`stateWord`),children:[(0,h.jsx)(c,{decorative:!0,name:me[r],size:`small`}),(0,h.jsx)(`span`,{children:pe[r]})]}),s===void 0||l===void 0?null:(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(`span`,{"aria-hidden":`true`,className:M(`separator`),children:`·`}),(0,h.jsx)(`time`,{className:M(`time`),dateTime:l,children:s})]})]})},he={root:`rly_ServiceMark-module__root`,rail:`rly_ServiceMark-module__rail`,glyph:`rly_ServiceMark-module__glyph`,name:`rly_ServiceMark-module__name`,compact:`rly_ServiceMark-module__compact`,defaultSize:`rly_ServiceMark-module__defaultSize`,codecommit:`rly_ServiceMark-module__codecommit`,codepipeline:`rly_ServiceMark-module__codepipeline`,jira:`rly_ServiceMark-module__jira`,confluence:`rly_ServiceMark-module__confluence`,clockify:`rly_ServiceMark-module__clockify`},P=e=>i(he,e),F=r({service:{codecommit:{className:P(`codecommit`),purpose:`CodeCommit provenance`,tokens:[`color-service-codecommit`]},codepipeline:{className:P(`codepipeline`),purpose:`CodePipeline provenance`,tokens:[`color-service-codepipeline`]},jira:{className:P(`jira`),purpose:`Jira provenance`,tokens:[`color-service-jira`]},confluence:{className:P(`confluence`),purpose:`Confluence provenance`,tokens:[`color-service-confluence`]},clockify:{className:P(`clockify`),purpose:`Clockify provenance`,tokens:[`color-service-clockify`]}},size:{compact:{className:P(`compact`),purpose:`Dense provenance metadata`,tokens:[`space-24`,`type-meta`]},default:{className:P(`defaultSize`),purpose:`Standard provenance identity`,tokens:[`space-32`,`type-label`]}}});r({size:`default`});var ge={codecommit:`CodeCommit`,codepipeline:`CodePipeline`,jira:`Jira`,confluence:`Confluence`,clockify:`Clockify`},_e={codecommit:()=>(0,h.jsxs)(`svg`,{"aria-hidden":`true`,className:P(`glyph`),focusable:`false`,viewBox:`0 0 24 24`,children:[(0,h.jsx)(`path`,{d:`M6 5.5h7.5a3 3 0 0 1 3 3v7`,fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`1.8`}),(0,h.jsx)(`circle`,{cx:`6`,cy:`5.5`,fill:`currentColor`,r:`2`}),(0,h.jsx)(`circle`,{cx:`16.5`,cy:`17.5`,fill:`currentColor`,r:`2`}),(0,h.jsx)(`path`,{d:`m10 12 2-2 2 2-2 2Z`,fill:`none`,stroke:`currentColor`,strokeLinejoin:`round`,strokeWidth:`1.6`})]}),codepipeline:()=>(0,h.jsxs)(`svg`,{"aria-hidden":`true`,className:P(`glyph`),focusable:`false`,viewBox:`0 0 24 24`,children:[(0,h.jsx)(`rect`,{fill:`none`,height:`5`,rx:`1`,stroke:`currentColor`,strokeWidth:`1.7`,width:`5`,x:`2.5`,y:`9.5`}),(0,h.jsx)(`rect`,{fill:`none`,height:`5`,rx:`1`,stroke:`currentColor`,strokeWidth:`1.7`,width:`5`,x:`16.5`,y:`9.5`}),(0,h.jsx)(`path`,{d:`M8 12h7m-2.5-2.5L15 12l-2.5 2.5`,fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.8`})]}),jira:()=>(0,h.jsxs)(`svg`,{"aria-hidden":`true`,className:P(`glyph`),focusable:`false`,viewBox:`0 0 24 24`,children:[(0,h.jsx)(`path`,{d:`m12 2.8 8.8 8.8a.6.6 0 0 1 0 .8L12 21.2l-8.8-8.8a.6.6 0 0 1 0-.8Z`,fill:`currentColor`}),(0,h.jsx)(`path`,{d:`m12 7.2 4.8 4.8-4.8 4.8L7.2 12Z`,fill:`var(--rly-color-surface-1)`}),(0,h.jsx)(`path`,{d:`m12 9.8 2.2 2.2-2.2 2.2L9.8 12Z`,fill:`currentColor`})]}),confluence:()=>(0,h.jsxs)(`svg`,{"aria-hidden":`true`,className:P(`glyph`),focusable:`false`,viewBox:`0 0 24 24`,children:[(0,h.jsx)(`path`,{d:`M4 7.2c3.6 2.1 6.8 2.4 9.6.9L17 6.3l2.7 4.3-3.4 1.8c-4.6 2.4-9.5 1.8-14-1.5Z`,fill:`currentColor`}),(0,h.jsx)(`path`,{d:`M20 16.8c-3.6-2.1-6.8-2.4-9.6-.9L7 17.7l-2.7-4.3 3.4-1.8c4.6-2.4 9.5-1.8 14 1.5Z`,fill:`currentColor`})]}),clockify:()=>(0,h.jsxs)(`svg`,{"aria-hidden":`true`,className:P(`glyph`),focusable:`false`,viewBox:`0 0 24 24`,children:[(0,h.jsx)(`circle`,{cx:`11`,cy:`13`,fill:`none`,r:`7`,stroke:`currentColor`,strokeWidth:`1.8`}),(0,h.jsx)(`path`,{d:`M11 9v4l3 2m1.5-10.7 1.8-1.8M18 7l2-2`,fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`1.8`})]})},I=({className:e,service:t,size:n=`default`,...r})=>{let i=_e[t],a=ge[t];return(0,h.jsxs)(`span`,{...r,"aria-label":a,className:o(P(`root`),F.service[t].className,F.size[n].className,e),"data-rly-service":t,role:`img`,children:[(0,h.jsx)(`span`,{"aria-hidden":`true`,className:P(`rail`)}),(0,h.jsx)(i,{}),(0,h.jsx)(`span`,{"aria-hidden":`true`,className:P(`name`),children:a})]})},ve={root:`rly_Verdict-module__root`,verdict:`rly_Verdict-module__verdict`,caution:`rly_Verdict-module__caution`,critical:`rly_Verdict-module__critical`,neutral:`rly_Verdict-module__neutral`,positive:`rly_Verdict-module__positive`,progress:`rly_Verdict-module__progress`,reasonPanel:`rly_Verdict-module__reasonPanel`,icon:`rly_Verdict-module__icon`,reason:`rly_Verdict-module__reason`},L=e=>i(ve,e),ye=r({tone:{caution:{className:L(`caution`),purpose:`Intentional hold or caution requiring attention`,tokens:[`color-held-ink`,`color-held-tint`]},critical:{className:L(`critical`),purpose:`Explicit blocker or failed prerequisite`,tokens:[`color-blocked-ink`,`color-blocked-tint`]},neutral:{className:L(`neutral`),purpose:`Neutral, missing, or unavailable outcome`,tokens:[`color-text-2`,`color-surface-2`]},positive:{className:L(`positive`),purpose:`Satisfied readiness or successful outcome`,tokens:[`color-success-ink`,`color-success-tint`]},progress:{className:L(`progress`),purpose:`Active work or delivery progress`,tokens:[`color-deploying-ink`,`color-deploying-tint`]}}}),be={caution:`clock`,critical:`alert`,neutral:`minus`,positive:`check`,progress:`loader`},R=({className:e,reason:t,tone:n,verdict:r,...i})=>{let a=f(t,`Verdict reason`),s=f(r,`Verdict verdict`);return(0,h.jsxs)(`section`,{...i,className:o(L(`root`),ye.tone[n].className,e),"data-rly-verdict-tone":n,children:[(0,h.jsx)(`h2`,{className:L(`verdict`),children:s}),(0,h.jsxs)(`div`,{className:L(`reasonPanel`),children:[(0,h.jsx)(`span`,{"aria-hidden":`true`,className:L(`icon`),children:(0,h.jsx)(c,{decorative:!0,name:be[n],size:`large`})}),(0,h.jsx)(`p`,{className:L(`reason`),children:a})]})]})},xe={root:`rly_EntityShell-module__root`,navigation:`rly_EntityShell-module__navigation`,header:`rly_EntityShell-module__header`,identity:`rly_EntityShell-module__identity`,title:`rly_EntityShell-module__title`,hero:`rly_EntityShell-module__hero`,body:`rly_EntityShell-module__body`,headerAside:`rly_EntityShell-module__headerAside`,freshness:`rly_EntityShell-module__freshness`,headerSlot:`rly_EntityShell-module__headerSlot`,slotLabel:`rly_EntityShell-module__slotLabel`,content:`rly_EntityShell-module__content`,relationships:`rly_EntityShell-module__relationships`,activity:`rly_EntityShell-module__activity`,asideSlot:`rly_EntityShell-module__asideSlot`,aside:`rly_EntityShell-module__aside`},z=e=>i(xe,e),Se=({actions:e,activity:t,agentEntry:n,className:r,collaborators:i,content:a,evidence:s,facts:c,freshness:l,freshnessDateTime:u,freshnessTime:d,navigation:p,reason:g,relationships:_,service:v,title:y,tone:b,verdict:x,...S})=>{let C=f(y,`EntityShell title`);if(u===void 0!=(d===void 0))throw Error(`EntityShell freshnessDateTime and freshnessTime must be supplied together`);let w=`rly-entity-shell-${(0,m.useId)()}`;return(0,h.jsxs)(`article`,{...S,"aria-labelledby":w,className:o(z(`root`),r),"data-rly-entity-shell":``,children:[p===void 0?null:(0,h.jsx)(`nav`,{"aria-label":`${C} navigation`,className:z(`navigation`),"data-rly-entity-shell-slot":`navigation`,children:p}),(0,h.jsxs)(`header`,{className:z(`header`),children:[(0,h.jsxs)(`div`,{className:z(`identity`),children:[(0,h.jsx)(I,{service:v}),(0,h.jsx)(`h1`,{className:z(`title`),id:w,children:C})]}),(0,h.jsxs)(`div`,{className:z(`hero`),children:[(0,h.jsx)(R,{reason:g,tone:b,verdict:x}),(0,h.jsxs)(`div`,{className:z(`headerAside`),children:[(0,h.jsxs)(`div`,{className:z(`freshness`),"data-rly-entity-shell-slot":`freshness`,children:[(0,h.jsx)(`span`,{className:z(`slotLabel`),children:`Freshness`}),u===void 0||d===void 0?(0,h.jsx)(N,{state:l}):(0,h.jsx)(N,{dateTime:u,state:l,time:d})]}),(0,h.jsx)(`div`,{className:z(`headerSlot`),"data-rly-entity-shell-slot":`actions`,children:e}),(0,h.jsx)(`div`,{className:z(`headerSlot`),"data-rly-entity-shell-slot":`agent-entry`,children:n})]})]})]}),(0,h.jsxs)(`div`,{className:z(`body`),children:[(0,h.jsx)(`section`,{className:z(`content`),"data-rly-entity-shell-slot":`content`,children:a}),(0,h.jsxs)(`aside`,{className:z(`aside`),children:[c===void 0?null:(0,h.jsx)(`section`,{className:z(`asideSlot`),"data-rly-entity-shell-slot":`facts`,children:c}),s===void 0?null:(0,h.jsx)(`section`,{className:z(`asideSlot`),"data-rly-entity-shell-slot":`evidence`,children:s}),(0,h.jsx)(`section`,{className:z(`asideSlot`),"data-rly-entity-shell-slot":`collaborators`,children:i})]})]}),(0,h.jsx)(`section`,{className:z(`relationships`),"data-rly-entity-shell-slot":`relationships`,children:_}),t===void 0?null:(0,h.jsx)(`section`,{className:z(`activity`),"data-rly-entity-shell-slot":`activity`,children:t})]})},Ce={root:`rly_EvidenceStamp-module__root`,source:`rly_EvidenceStamp-module__source`,freshness:`rly_EvidenceStamp-module__freshness`,conceptLabel:`rly_EvidenceStamp-module__conceptLabel`,sourceDetail:`rly_EvidenceStamp-module__sourceDetail`,reference:`rly_EvidenceStamp-module__reference`},B=e=>i(Ce,e),we=({className:e,freshness:t,freshnessDateTime:n,freshnessTime:r,reference:i,service:a,...s})=>{let c=f(i,`EvidenceStamp reference`),l=n===void 0||r===void 0?(0,h.jsx)(N,{size:`compact`,state:t}):(0,h.jsx)(N,{dateTime:n,size:`compact`,state:t,time:r});return(0,h.jsxs)(`div`,{...s,className:o(B(`root`),e),"data-rly-evidence-stamp":``,children:[(0,h.jsxs)(`div`,{className:B(`source`),"data-rly-evidence-source":a,children:[(0,h.jsx)(`span`,{className:B(`conceptLabel`),children:`Evidence source`}),(0,h.jsxs)(`div`,{className:B(`sourceDetail`),children:[(0,h.jsx)(I,{service:a,size:`compact`}),(0,h.jsx)(`code`,{className:B(`reference`),children:c})]})]}),(0,h.jsxs)(`div`,{className:B(`freshness`),"data-rly-evidence-freshness":t,children:[(0,h.jsx)(`span`,{className:B(`conceptLabel`),children:`Freshness`}),l]})]})},V={missing:{icon:`alert`,label:`Missing`},inferred:{icon:`search`,label:`Inferred`},proposed:{icon:`plus`,label:`Proposed`},verified:{icon:`check`,label:`Verified`},governed:{icon:`link`,label:`Governed`},rejected:{icon:`close`,label:`Rejected`},superseded:{icon:`arrow-right`,label:`Superseded`}},H={forward:{arrow:`→`,label:`Forward`},reverse:{arrow:`←`,label:`Reverse`},bidirectional:{arrow:`↔`,label:`Bidirectional`}},Te=(e,t)=>{f(e.id,`${t} person id`),f(e.name,`${t} person name`),f(e.role,`${t} person role`),e.avatarFallback!==void 0&&f(e.avatarFallback,`${t} person avatarFallback`),e.avatarSrc!==void 0&&f(e.avatarSrc,`${t} person avatarSrc`)},Ee=(e,t)=>{if(!Object.hasOwn(F.service,e))throw Error(`${t} service must be a supported rly service`)},De=(e,t)=>{if(e.state===`present`){f(e.id,`${t} id`),f(e.title,`${t} title`),f(e.reference,`${t} reference`),Ee(e.service,t),e.href!==void 0&&f(e.href,`${t} href`),e.person!==void 0&&Te(e.person,t);return}if(e.state===`missing`){f(e.label,`${t} missing label`),f(e.reason,`${t} missing reason`),e.service!==void 0&&Ee(e.service,t);return}throw Error(`${t} state must be present or missing`)},Oe=e=>{let t=new Set;for(let n of e){let e=f(n.id,`Relationship id`);if(t.has(e))throw Error(`Relationship ids must be unique: ${e}`);if(t.add(e),f(n.kind,`Relationship kind for ${e}`),!Object.hasOwn(H,n.direction))throw Error(`Relationship direction for ${e} must be supported`);if(!Object.hasOwn(V,n.lifecycle))throw Error(`Relationship lifecycle for ${e} must be supported`);De(n.source,`Relationship ${e} source`),De(n.target,`Relationship ${e} target`),n.evidence!==void 0&&f(n.evidence,`Relationship evidence for ${e}`),n.actor!==void 0&&Te(n.actor,`Relationship ${e} actor`)}},ke={root:`rly_RelationshipChain-module__root`,heading:`rly_RelationshipChain-module__heading`,empty:`rly_RelationshipChain-module__empty`,list:`rly_RelationshipChain-module__list`,item:`rly_RelationshipChain-module__item`,endpoint:`rly_RelationshipChain-module__endpoint`,endpointLink:`rly_RelationshipChain-module__endpointLink`,identity:`rly_RelationshipChain-module__identity`,missingIdentity:`rly_RelationshipChain-module__missingIdentity`,title:`rly_RelationshipChain-module__title`,missingLabel:`rly_RelationshipChain-module__missingLabel`,kind:`rly_RelationshipChain-module__kind`,reference:`rly_RelationshipChain-module__reference`,direction:`rly_RelationshipChain-module__direction`,evidence:`rly_RelationshipChain-module__evidence`,fieldLabel:`rly_RelationshipChain-module__fieldLabel`,missingEndpoint:`rly_RelationshipChain-module__missingEndpoint`,relationship:`rly_RelationshipChain-module__relationship`,arrow:`rly_RelationshipChain-module__arrow`,actor:`rly_RelationshipChain-module__actor`},U=e=>i(ke,e),Ae=({endpoint:e})=>{if(e.state===`missing`)return(0,h.jsxs)(`div`,{className:o(U(`endpoint`),U(`missingEndpoint`)),"data-rly-endpoint-state":`missing`,children:[e.service===void 0?null:(0,h.jsx)(I,{service:e.service,size:`compact`}),(0,h.jsxs)(`span`,{className:U(`missingIdentity`),children:[(0,h.jsxs)(`span`,{className:U(`missingLabel`),children:[(0,h.jsx)(c,{decorative:!0,name:`alert`,size:`small`}),e.label]}),(0,h.jsx)(`span`,{className:U(`reference`),children:e.reason})]})]});let t=(0,h.jsxs)(`span`,{className:U(`identity`),children:[(0,h.jsx)(`span`,{className:U(`title`),children:e.title}),(0,h.jsx)(`span`,{className:U(`reference`),children:e.reference})]});return(0,h.jsxs)(`div`,{className:U(`endpoint`),"data-rly-endpoint-id":e.id,"data-rly-endpoint-state":`present`,children:[(0,h.jsx)(I,{service:e.service,size:`compact`}),e.href===void 0?t:(0,h.jsx)(p,{className:U(`endpointLink`),href:e.href,children:t}),e.person===void 0?null:(0,h.jsx)(k,{person:e.person,size:`compact`})]})},je=({className:e,emptyLabel:t=`No relationships recorded.`,heading:n,relationships:r,...i})=>{let a=f(n,`RelationshipChain heading`),s=f(t,`RelationshipChain emptyLabel`);Oe(r);let c=`${(0,m.useId)()}-heading`;return(0,h.jsxs)(`section`,{...i,"aria-labelledby":c,className:o(U(`root`),e),children:[(0,h.jsx)(`h2`,{className:U(`heading`),id:c,children:a}),r.length===0?(0,h.jsx)(`p`,{className:U(`empty`),children:s}):(0,h.jsx)(`ol`,{className:U(`list`),children:r.map(e=>{let t=H[e.direction],n=V[e.lifecycle];return(0,h.jsxs)(`li`,{className:U(`item`),"data-rly-relationship-id":e.id,"data-rly-relationship-direction":e.direction,"data-rly-relationship-kind":e.kind,"data-rly-relationship-lifecycle":e.lifecycle,children:[(0,h.jsx)(Ae,{endpoint:e.source}),(0,h.jsxs)(`div`,{className:U(`relationship`),"data-rly-relationship-detail":``,children:[(0,h.jsxs)(`span`,{className:U(`direction`),children:[(0,h.jsx)(`span`,{children:t.label}),(0,h.jsx)(`span`,{"aria-hidden":`true`,className:U(`arrow`),children:t.arrow})]}),(0,h.jsx)(`span`,{className:U(`kind`),children:e.kind}),(0,h.jsx)(l,{icon:n.icon,label:n.label,size:`compact`,tone:`neutral`}),e.actor===void 0?null:(0,h.jsxs)(`div`,{className:U(`actor`),"data-rly-relationship-actor":e.actor.id,children:[(0,h.jsx)(`span`,{className:U(`fieldLabel`),children:`Actor`}),(0,h.jsx)(k,{person:e.actor,size:`compact`})]})]}),(0,h.jsx)(Ae,{endpoint:e.target}),(0,h.jsxs)(`p`,{className:U(`evidence`),children:[(0,h.jsx)(`span`,{className:U(`fieldLabel`),children:`Evidence`}),(0,h.jsx)(`span`,{"data-rly-relationship-evidence":``,children:e.evidence??`No evidence recorded.`})]})]},e.id)})})]})},Me={root:`rly_RelationshipTable-module__root`,heading:`rly_RelationshipTable-module__heading`,empty:`rly_RelationshipTable-module__empty`,table:`rly_RelationshipTable-module__table`,head:`rly_RelationshipTable-module__head`,cell:`rly_RelationshipTable-module__cell`,endpoint:`rly_RelationshipTable-module__endpoint`,identity:`rly_RelationshipTable-module__identity`,relationship:`rly_RelationshipTable-module__relationship`,actor:`rly_RelationshipTable-module__actor`,endpointLink:`rly_RelationshipTable-module__endpointLink`,title:`rly_RelationshipTable-module__title`,missingLabel:`rly_RelationshipTable-module__missingLabel`,kind:`rly_RelationshipTable-module__kind`,reference:`rly_RelationshipTable-module__reference`,direction:`rly_RelationshipTable-module__direction`,evidence:`rly_RelationshipTable-module__evidence`,fieldLabel:`rly_RelationshipTable-module__fieldLabel`,missingEndpoint:`rly_RelationshipTable-module__missingEndpoint`,arrow:`rly_RelationshipTable-module__arrow`,body:`rly_RelationshipTable-module__body`,row:`rly_RelationshipTable-module__row`},W=e=>i(Me,e),Ne=({endpoint:e})=>{if(e.state===`missing`)return(0,h.jsxs)(`div`,{className:o(W(`endpoint`),W(`missingEndpoint`)),"data-rly-endpoint-state":`missing`,children:[e.service===void 0?null:(0,h.jsx)(I,{service:e.service,size:`compact`}),(0,h.jsxs)(`span`,{className:W(`identity`),children:[(0,h.jsxs)(`span`,{className:W(`missingLabel`),children:[(0,h.jsx)(c,{decorative:!0,name:`alert`,size:`small`}),e.label]}),(0,h.jsx)(`span`,{className:W(`reference`),children:e.reason})]})]});let t=(0,h.jsxs)(`span`,{className:W(`identity`),children:[(0,h.jsx)(`span`,{className:W(`title`),children:e.title}),(0,h.jsx)(`span`,{className:W(`reference`),children:e.reference})]});return(0,h.jsxs)(`div`,{className:W(`endpoint`),"data-rly-endpoint-id":e.id,"data-rly-endpoint-state":`present`,children:[(0,h.jsx)(I,{service:e.service,size:`compact`}),e.href===void 0?t:(0,h.jsx)(p,{className:W(`endpointLink`),href:e.href,children:t}),e.person===void 0?null:(0,h.jsx)(k,{person:e.person,size:`compact`})]})},Pe=({className:e,emptyLabel:t=`No relationships recorded.`,heading:n,relationships:r,...i})=>{let a=f(n,`RelationshipTable heading`),s=f(t,`RelationshipTable emptyLabel`);Oe(r);let c=`${(0,m.useId)()}-heading`;return(0,h.jsxs)(`section`,{...i,"aria-labelledby":c,className:o(W(`root`),e),children:[(0,h.jsx)(`h2`,{className:W(`heading`),id:c,children:a}),r.length===0?(0,h.jsx)(`p`,{className:W(`empty`),children:s}):(0,h.jsxs)(`table`,{"aria-labelledby":c,className:W(`table`),children:[(0,h.jsx)(`thead`,{className:W(`head`),children:(0,h.jsxs)(`tr`,{children:[(0,h.jsx)(`th`,{scope:`col`,children:`Source`}),(0,h.jsx)(`th`,{scope:`col`,children:`Relationship`}),(0,h.jsx)(`th`,{scope:`col`,children:`Target`}),(0,h.jsx)(`th`,{scope:`col`,children:`Evidence`})]})}),(0,h.jsx)(`tbody`,{className:W(`body`),children:r.map(e=>{let t=H[e.direction],n=V[e.lifecycle];return(0,h.jsxs)(`tr`,{className:W(`row`),"data-rly-relationship-id":e.id,"data-rly-relationship-direction":e.direction,"data-rly-relationship-kind":e.kind,"data-rly-relationship-lifecycle":e.lifecycle,children:[(0,h.jsx)(`td`,{className:W(`cell`),"data-label":`Source`,children:(0,h.jsx)(Ne,{endpoint:e.source})}),(0,h.jsx)(`td`,{className:W(`cell`),"data-label":`Relationship`,children:(0,h.jsxs)(`div`,{className:W(`relationship`),"data-rly-relationship-detail":``,children:[(0,h.jsxs)(`span`,{className:W(`direction`),children:[(0,h.jsx)(`span`,{children:t.label}),(0,h.jsx)(`span`,{"aria-hidden":`true`,className:W(`arrow`),children:t.arrow})]}),(0,h.jsx)(`span`,{className:W(`kind`),children:e.kind}),(0,h.jsx)(l,{icon:n.icon,label:n.label,size:`compact`,tone:`neutral`}),e.actor===void 0?null:(0,h.jsxs)(`div`,{className:W(`actor`),"data-rly-relationship-actor":e.actor.id,children:[(0,h.jsx)(`span`,{className:W(`fieldLabel`),children:`Actor`}),(0,h.jsx)(k,{person:e.actor,size:`compact`})]})]})}),(0,h.jsx)(`td`,{className:W(`cell`),"data-label":`Target`,children:(0,h.jsx)(Ne,{endpoint:e.target})}),(0,h.jsx)(`td`,{className:W(`cell`),"data-label":`Evidence`,children:(0,h.jsx)(`span`,{className:W(`evidence`),"data-rly-relationship-evidence":``,children:e.evidence??`No evidence recorded.`})})]},e.id)})})]})]})},Fe=/^(?:--[A-Za-z0-9_\-\u0080-\uD7FF\uE000-\u{10ffff}]*|-?[A-Za-z_\u0080-\uD7FF\uE000-\u{10ffff}][A-Za-z0-9_\-\u0080-\uD7FF\uE000-\u{10ffff}]*)$/u,Ie=new Set([`auto`,`default`,`inherit`,`initial`,`match-element`,`none`,`revert`,`revert-layer`,`unset`]),Le=e=>{if(e===void 0)return;let t={relay:e.relay,verdict:e.verdict,version:e.version},n=[[`relay`,t.relay],[`verdict`,t.verdict],[`version`,t.version]],r=new Set;for(let[e,t]of n){let n=f(t,`Release transition ${e} name`);if(n===`root`||Ie.has(n.toLowerCase()))throw Error(`Release transition ${e} name must not use a reserved CSS value: ${n}`);if(!Fe.test(n))throw Error(`Release transition ${e} name must be a valid unescaped CSS custom identifier: ${n}`);if(r.has(n))throw Error(`Release transition names must be unique: ${n}`);r.add(n)}return Object.freeze(t)},Re={blocked:!0,ready:!0,deploying:!0,building:!0,shipped:!0,held:!0,unknown:!0},ze=e=>{if(f(e.id,`Release presentation id`),f(e.version,`Release presentation version`),f(e.codename,`Release presentation codename`),f(e.algorithm,`Release presentation algorithm`),f(e.verdict,`Release presentation verdict`),f(e.reason,`Release presentation reason`),!Object.hasOwn(Re,e.state))throw Error(`Release presentation state must be supported`);e.freshnessDateTime!==void 0&&(f(e.freshnessDateTime,`Release presentation freshnessDateTime`),f(e.freshnessTime,`Release presentation freshnessTime`));let t=new Set;for(let n of e.facts){let e=f(n.id,`Release presentation fact id`);if(t.has(e))throw Error(`Release presentation fact ids must be unique: ${e}`);t.add(e),f(n.label,`Release presentation fact label for ${e}`),f(n.value,`Release presentation fact value for ${e}`)}return e},Be={root:`rly_ReleaseRelay-module__root`,tiles:`rly_ReleaseRelay-module__tiles`,handoff:`rly_ReleaseRelay-module__handoff`,tile:`rly_ReleaseRelay-module__tile`,glyph:`rly_ReleaseRelay-module__glyph`,identity:`rly_ReleaseRelay-module__identity`,codename:`rly_ReleaseRelay-module__codename`,algorithm:`rly_ReleaseRelay-module__algorithm`,compact:`rly_ReleaseRelay-module__compact`,hero:`rly_ReleaseRelay-module__hero`},G=e=>i(Be,e),Ve=r({0:{name:`orbit`},1:{name:`split`},2:{name:`brace`},3:{name:`wave`},4:{name:`gate`},5:{name:`fork`},6:{name:`bridge`},7:{name:`beacon`},8:{name:`loop`},9:{name:`pulse`},10:{name:`anchor`},11:{name:`ladder`},12:{name:`knot`},13:{name:`spark`},14:{name:`stack`},15:{name:`compass`}}),He=r({size:{compact:{className:G(`compact`),purpose:`Release rows and compact previews`,tokens:[`space-32`,`space-8`,`type-label`]},hero:{className:G(`hero`),purpose:`Page-level release identity`,tokens:[`space-48`,`space-4`,`space-8`,`type-card-title`]}}});r({size:`compact`});var Ue={0:`M12 4a8 8 0 1 1-6.9 4M5.1 8H9V4.1`,1:`M5 5v4c0 2 1 3 3 3h8c2 0 3 1 3 3v4M12 12V5`,2:`M9 4H7v5l-3 3 3 3v5h2M15 4h2v5l3 3-3 3v5h-2`,3:`M3 9c3-4 6-4 9 0s6 4 9 0M3 15c3-4 6-4 9 0s6 4 9 0`,4:`M5 19V8l7-4 7 4v11M9 19v-7h6v7`,5:`M12 20V9M12 12 6 6M12 12l6-6M6 6v4M18 6v4`,6:`M3 17h18M5 17v-5c4-5 10-5 14 0v5M8 17v-3M16 17v-3`,7:`M12 3v3M5.6 5.6l2.1 2.1M18.4 5.6l-2.1 2.1M6 20h12l-2-9H8Z`,8:`M8 8a4 4 0 0 1 8 0v8a4 4 0 0 1-8 0V8Zm0 4h8`,9:`M3 13h4l2-6 4 12 2-6h6`,10:`M12 3v15M8 7h8M5 14c0 4 3 7 7 7s7-3 7-7M5 14l-2 2M19 14l2 2`,11:`M7 3v18M17 3v18M7 7h10M7 12h10M7 17h10`,12:`M8 5a4 4 0 0 1 4 4v6a4 4 0 1 0 4-4H8a4 4 0 1 0 4 4V9a4 4 0 0 1 4-4`,13:`M12 3v5M12 16v5M3 12h5M16 12h5M5.6 5.6l3.5 3.5M14.9 14.9l3.5 3.5M18.4 5.6l-3.5 3.5M9.1 14.9l-3.5 3.5`,14:`m4 8 8-4 8 4-8 4Zm0 4 8 4 8-4M4 16l8 4 8-4`,15:`m12 3 3 6 6 3-6 3-3 6-3-6-6-3 6-3Zm0 6v6M9 12h6`},We=e=>{if(e.length!==3)throw Error(`ReleaseRelay symbolIndices must contain exactly three indices`);let t=new Set;for(let n of e){if(!Number.isInteger(n)||n<0||n>15)throw Error(`ReleaseRelay symbol indices must be integers from 0 through 15`);if(t.has(n))throw Error(`ReleaseRelay symbol indices must be distinct`);t.add(n)}return e},K=({algorithm:e,className:t,codename:n,size:r=`compact`,symbolIndices:i,...a})=>{let s=f(e,`ReleaseRelay algorithm`),c=f(n,`ReleaseRelay codename`),l=We(i),u=`Release relay, ${c}, symbols ${l.map(e=>Ve[e].name).join(`, `)}.`;return(0,h.jsxs)(`figure`,{...a,className:o(G(`root`),He.size[r].className,t),"data-rly-release-relay-size":r,children:[(0,h.jsxs)(`span`,{"aria-label":u,className:G(`tiles`),role:`img`,children:[(0,h.jsx)(`span`,{"aria-hidden":`true`,className:G(`handoff`),"data-rly-release-relay-handoff":``}),l.map((e,t)=>(0,h.jsx)(`span`,{"aria-hidden":`true`,className:G(`tile`),"data-rly-release-relay-position":t,"data-rly-release-symbol-index":e,"data-rly-release-symbol-name":Ve[e].name,children:(0,h.jsx)(`svg`,{className:G(`glyph`),focusable:`false`,viewBox:`0 0 24 24`,children:(0,h.jsx)(`path`,{d:Ue[e],fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.7`,vectorEffect:`non-scaling-stroke`})})},e))]}),(0,h.jsxs)(`figcaption`,{className:G(`identity`),children:[(0,h.jsx)(`span`,{className:G(`codename`),children:c}),(0,h.jsxs)(`span`,{className:G(`algorithm`),children:[`Identity algorithm: `,s]})]})]})},Ge={body:`rly_ReleasePreview-module__body`,summary:`rly_ReleasePreview-module__summary`,releaseMeta:`rly_ReleasePreview-module__releaseMeta`,personGroup:`rly_ReleasePreview-module__personGroup`,fact:`rly_ReleasePreview-module__fact`,dialogSurface:`rly_ReleasePreview-module__dialogSurface`,dialogFrame:`rly_ReleasePreview-module__dialogFrame`,dialogScroll:`rly_ReleasePreview-module__dialogScroll`,identityRow:`rly_ReleasePreview-module__identityRow`,version:`rly_ReleasePreview-module__version`,people:`rly_ReleasePreview-module__people`,eyebrow:`rly_ReleasePreview-module__eyebrow`,unassigned:`rly_ReleasePreview-module__unassigned`,facts:`rly_ReleasePreview-module__facts`,slot:`rly_ReleasePreview-module__slot`,dialogFooter:`rly_ReleasePreview-module__dialogFooter`,sheetFooter:`rly_ReleasePreview-module__sheetFooter`,dialogClose:`rly_ReleasePreview-module__dialogClose`,fullViewButton:`rly_ReleasePreview-module__fullViewButton`},q=e=>i(Ge,e),Ke=({agentEntry:e,collaborators:t,entryMotion:n=`intrinsic`,evidence:r,onOpenChange:i,onOpenFullView:o,open:s,openFullViewLabel:c=`Open full view`,presentation:l=`dialog`,primaryAction:p,release:g,stages:_,transitionNames:v,workset:y})=>{let b=ze(g),x=Le(v),S=f(c,`ReleasePreview openFullViewLabel`),C=(0,m.useRef)(null),w=b.freshnessDateTime===void 0?(0,h.jsx)(N,{state:b.freshness}):(0,h.jsx)(N,{dateTime:b.freshnessDateTime,state:b.freshness,time:b.freshnessTime}),T=`Release preview: ${b.version} ${b.codename}`,E=(0,h.jsxs)(`div`,{className:q(`body`),"data-rly-release-preview-presentation":l,"data-rly-release-state":b.state,children:[(0,h.jsxs)(`section`,{"aria-label":`Release summary`,className:q(`summary`),"data-rly-release-preview-summary":``,ref:C,tabIndex:-1,children:[(0,h.jsxs)(`div`,{className:q(`identityRow`),children:[(0,h.jsx)(K,{algorithm:b.algorithm,codename:b.codename,"data-rly-release-transition-name":x?.relay,"data-rly-release-transition-part":`relay`,size:`hero`,style:x===void 0?void 0:{viewTransitionName:x.relay},symbolIndices:b.symbolIndices}),(0,h.jsxs)(`div`,{className:q(`releaseMeta`),children:[(0,h.jsx)(`p`,{className:q(`version`),"data-rly-release-transition-name":x?.version,"data-rly-release-transition-part":`version`,style:x===void 0?void 0:{viewTransitionName:x.version},children:b.version}),w]})]}),(0,h.jsxs)(`div`,{className:q(`people`),children:[(0,h.jsxs)(`div`,{className:q(`personGroup`),children:[(0,h.jsx)(`span`,{className:q(`eyebrow`),children:`Owner`}),b.owner===void 0?(0,h.jsx)(`span`,{className:q(`unassigned`),"data-rly-release-owner":`unassigned`,children:`Unassigned`}):(0,h.jsx)(k,{person:b.owner})]}),(0,h.jsxs)(`div`,{className:q(`personGroup`),children:[(0,h.jsx)(`span`,{className:q(`eyebrow`),children:`Approver`}),b.approver===void 0?(0,h.jsx)(`span`,{className:q(`unassigned`),"data-rly-release-approver":`unassigned`,children:`Unassigned`}):(0,h.jsx)(k,{person:b.approver})]})]}),(0,h.jsx)(R,{"data-rly-release-transition-name":x?.verdict,"data-rly-release-transition-part":`verdict`,reason:b.reason,style:x===void 0?void 0:{viewTransitionName:x.verdict},tone:b.tone,verdict:b.verdict}),(0,h.jsx)(`dl`,{className:q(`facts`),children:b.facts.map(e=>(0,h.jsxs)(`div`,{className:q(`fact`),children:[(0,h.jsx)(`dt`,{children:e.label}),(0,h.jsx)(`dd`,{children:e.value})]},e.id))})]}),t===void 0?null:(0,h.jsx)(`div`,{className:q(`slot`),"data-rly-release-preview-slot":`collaborators`,children:t}),(0,h.jsx)(`div`,{className:q(`slot`),"data-rly-release-preview-slot":`primary-action`,children:p}),(0,h.jsx)(`div`,{className:q(`slot`),"data-rly-release-preview-slot":`stages`,children:_}),(0,h.jsx)(`div`,{className:q(`slot`),"data-rly-release-preview-slot":`workset`,children:y}),(0,h.jsx)(`div`,{className:q(`slot`),"data-rly-release-preview-slot":`evidence`,children:r}),(0,h.jsx)(`div`,{className:q(`slot`),"data-rly-release-preview-slot":`agent-entry`,children:e})]}),D=(0,h.jsx)(d,{className:q(`fullViewButton`),onClick:o,size:`default`,variant:`secondary`,children:S});return l===`sheet`?(0,h.jsx)(a.Root,{onOpenChange:i,open:s,children:(0,h.jsxs)(a.Content,{entryMotion:n,initialFocusRef:C,title:T,children:[(0,h.jsx)(a.Body,{"data-rly-release-preview-scroll":`sheet`,children:E}),(0,h.jsx)(a.Footer,{className:q(`sheetFooter`),"data-rly-release-preview-footer":`sheet`,children:D})]})}):(0,h.jsx)(u.Root,{onOpenChange:i,open:s,children:(0,h.jsx)(u.Content,{className:q(`dialogSurface`),entryMotion:n,initialFocusRef:C,size:`wide`,title:T,children:(0,h.jsxs)(`div`,{className:q(`dialogFrame`),children:[(0,h.jsx)(`div`,{className:q(`dialogClose`),children:(0,h.jsx)(u.Close,{size:`compact`,variant:`quiet`,children:`Close preview`})}),(0,h.jsx)(`div`,{className:q(`dialogScroll`),"data-rly-release-preview-scroll":`dialog`,children:E}),(0,h.jsx)(`footer`,{className:q(`dialogFooter`),"data-rly-release-preview-footer":`dialog`,children:D})]})})})},qe={root:`rly_ReleaseRow-module__root`,identity:`rly_ReleaseRow-module__identity`,verdictBlock:`rly_ReleaseRow-module__verdictBlock`,people:`rly_ReleaseRow-module__people`,actions:`rly_ReleaseRow-module__actions`,personGroup:`rly_ReleaseRow-module__personGroup`,fact:`rly_ReleaseRow-module__fact`,version:`rly_ReleaseRow-module__version`,verdict:`rly_ReleaseRow-module__verdict`,reason:`rly_ReleaseRow-module__reason`,eyebrow:`rly_ReleaseRow-module__eyebrow`,unassigned:`rly_ReleaseRow-module__unassigned`,facts:`rly_ReleaseRow-module__facts`,agentEntry:`rly_ReleaseRow-module__agentEntry`,previewButton:`rly_ReleaseRow-module__previewButton`},J=e=>i(qe,e),Je=({agentEntry:e,className:t,onPreview:n,previewLabel:r=`Preview release`,release:i,transitionNames:a,...s})=>{let c=ze(i),l=Le(a),u=f(r,`ReleaseRow previewLabel`),p=`rly-release-row-verdict-${(0,m.useId)()}`,g=c.freshnessDateTime===void 0?(0,h.jsx)(N,{size:`compact`,state:c.freshness}):(0,h.jsx)(N,{dateTime:c.freshnessDateTime,size:`compact`,state:c.freshness,time:c.freshnessTime});return(0,h.jsxs)(`article`,{...s,className:o(J(`root`),t),"data-rly-release-id":c.id,"data-rly-release-state":c.state,children:[(0,h.jsxs)(`div`,{className:J(`identity`),children:[(0,h.jsx)(K,{algorithm:c.algorithm,codename:c.codename,"data-rly-release-transition-name":l?.relay,"data-rly-release-transition-part":`relay`,size:`compact`,style:l===void 0?void 0:{viewTransitionName:l.relay},symbolIndices:c.symbolIndices}),(0,h.jsx)(`p`,{className:J(`version`),"data-rly-release-transition-name":l?.version,"data-rly-release-transition-part":`version`,style:l===void 0?void 0:{viewTransitionName:l.version},children:c.version}),g]}),(0,h.jsxs)(`section`,{"aria-labelledby":p,className:J(`verdictBlock`),"data-rly-release-transition-name":l?.verdict,"data-rly-release-transition-part":`verdict`,style:l===void 0?void 0:{viewTransitionName:l.verdict},children:[(0,h.jsx)(`h2`,{className:J(`verdict`),id:p,children:c.verdict}),(0,h.jsx)(`p`,{className:J(`reason`),children:c.reason})]}),(0,h.jsxs)(`div`,{className:J(`people`),children:[(0,h.jsxs)(`div`,{className:J(`personGroup`),children:[(0,h.jsx)(`span`,{className:J(`eyebrow`),children:`Owner`}),c.owner===void 0?(0,h.jsx)(`span`,{className:J(`unassigned`),"data-rly-release-owner":`unassigned`,children:`Unassigned`}):(0,h.jsx)(k,{person:c.owner,size:`compact`})]}),c.approver===void 0?null:(0,h.jsxs)(`div`,{className:J(`personGroup`),children:[(0,h.jsx)(`span`,{className:J(`eyebrow`),children:`Approver`}),(0,h.jsx)(k,{person:c.approver,size:`compact`})]})]}),(0,h.jsx)(`dl`,{className:J(`facts`),children:c.facts.map(e=>(0,h.jsxs)(`div`,{className:J(`fact`),"data-rly-release-fact":e.id,children:[(0,h.jsx)(`dt`,{children:e.label}),(0,h.jsx)(`dd`,{children:e.value})]},e.id))}),(0,h.jsxs)(`div`,{className:J(`actions`),children:[(0,h.jsx)(d,{className:J(`previewButton`),onClick:n,size:`default`,children:u}),e===void 0?null:(0,h.jsx)(`div`,{className:J(`agentEntry`),children:e})]})]})},Ye={root:`rly_StageRail-module__root`,heading:`rly_StageRail-module__heading`,list:`rly_StageRail-module__list`,item:`rly_StageRail-module__item`,marker:`rly_StageRail-module__marker`,connector:`rly_StageRail-module__connector`,content:`rly_StageRail-module__content`,name:`rly_StageRail-module__name`,reason:`rly_StageRail-module__reason`,empty:`rly_StageRail-module__empty`,compact:`rly_StageRail-module__compact`,defaultSize:`rly_StageRail-module__defaultSize`,long:`rly_StageRail-module__long`},Y=e=>i(Ye,e),Xe=r({size:{compact:{className:Y(`compact`),purpose:`Dense release and entity stage summaries`,tokens:[`space-24`,`space-8`,`type-label`,`type-meta`]},default:{className:Y(`defaultSize`),purpose:`Standard stage progression with supporting context`,tokens:[`space-24`,`space-12`,`type-card-title`,`type-body`]}}});r({size:`default`});var Ze=e=>{let t=new Set;for(let n of e){let e=f(n.id,`StageRail stage id`);if(f(n.name,`StageRail name for ${e}`),f(n.state,`StageRail state for ${e}`),n.reason!==void 0&&f(n.reason,`StageRail reason for ${e}`),t.has(e))throw Error(`StageRail stage ids must be unique: ${e}`);t.add(e)}return e},Qe=({className:e,emptyLabel:t=`No stages recorded.`,heading:n,size:r=`default`,stages:i,...a})=>{let s=f(n,`StageRail heading`),c=f(t,`StageRail emptyLabel`),u=Ze(i),d=`rly-stage-rail-${(0,m.useId)()}`;return(0,h.jsxs)(`section`,{...a,"aria-labelledby":d,className:o(Y(`root`),Xe.size[r].className,u.length>6&&Y(`long`),e),"data-rly-stage-rail-size":r,children:[(0,h.jsx)(`h2`,{className:Y(`heading`),id:d,children:s}),u.length===0?(0,h.jsx)(`p`,{className:Y(`empty`),children:c}):(0,h.jsx)(`ol`,{className:Y(`list`),children:u.map((e,t)=>(0,h.jsxs)(`li`,{className:Y(`item`),"data-rly-stage-id":e.id,children:[(0,h.jsx)(`span`,{"aria-hidden":`true`,className:Y(`marker`),"data-rly-stage-marker":``,children:t+1}),t===u.length-1?null:(0,h.jsx)(`span`,{"aria-hidden":`true`,className:Y(`connector`),"data-rly-stage-connector":``}),(0,h.jsxs)(`div`,{className:Y(`content`),children:[(0,h.jsx)(`h3`,{className:Y(`name`),children:e.name}),(0,h.jsx)(l,{label:e.state,size:r===`compact`?`compact`:`default`,tone:e.tone}),e.reason===void 0?null:(0,h.jsx)(`p`,{className:Y(`reason`),children:e.reason}),e.owner===void 0?null:(0,h.jsx)(k,{person:e.owner,size:r})]})]},e.id))})]})},$e={root:`rly_TimelineRow-module__root`,time:`rly_TimelineRow-module__time`,marker:`rly_TimelineRow-module__marker`,dot:`rly_TimelineRow-module__dot`,connector:`rly_TimelineRow-module__connector`,content:`rly_TimelineRow-module__content`,meta:`rly_TimelineRow-module__meta`,title:`rly_TimelineRow-module__title`,link:`rly_TimelineRow-module__link`,detail:`rly_TimelineRow-module__detail`,actorKind:`rly_TimelineRow-module__actorKind`,actor:`rly_TimelineRow-module__actor`},X=e=>i($e,e),et={human:`Human`,agent:`Agent`,plugin:`Plugin`,system:`System`},tt=e=>{if(f(e.id,`TimelineRow event id`),f(e.title,`TimelineRow event title`),f(e.detail,`TimelineRow event detail`),f(e.dateTime,`TimelineRow event dateTime`),f(e.time,`TimelineRow event time`),e.href!==void 0&&f(e.href,`TimelineRow event href`),!Object.hasOwn(et,e.actorKind))throw Error(`TimelineRow event actorKind must be human, agent, plugin, or system`);return e},nt=({className:e,continued:t,event:n,...r})=>{let i=tt(n),a=`rly-timeline-row-${(0,m.useId)()}`,s=(0,h.jsx)(`h2`,{className:X(`title`),id:a,children:i.title});return(0,h.jsxs)(`li`,{...r,className:o(X(`root`),e),"data-rly-timeline-actor":i.actorKind,"data-rly-timeline-event-id":i.id,children:[(0,h.jsx)(`time`,{className:X(`time`),dateTime:i.dateTime,children:i.time}),(0,h.jsxs)(`span`,{"aria-hidden":`true`,className:X(`marker`),children:[(0,h.jsx)(`span`,{className:X(`dot`)}),t?(0,h.jsx)(`span`,{className:X(`connector`),"data-rly-timeline-connector":``}):null]}),(0,h.jsxs)(`article`,{"aria-labelledby":a,className:X(`content`),children:[i.href===void 0?s:(0,h.jsx)(p,{className:X(`link`),href:i.href,children:s}),(0,h.jsx)(`p`,{className:X(`detail`),children:i.detail})]}),(0,h.jsxs)(`div`,{className:X(`meta`),children:[(0,h.jsx)(`span`,{className:X(`actorKind`),children:et[i.actorKind]}),i.service===void 0?null:(0,h.jsx)(I,{service:i.service,size:`compact`}),i.actor===void 0?null:(0,h.jsx)(`div`,{className:X(`actor`),children:i.actor})]})]})},rt={root:`rly_WorksetCard-module__root`,heading:`rly_WorksetCard-module__heading`,dimensions:`rly_WorksetCard-module__dimensions`,dimension:`rly_WorksetCard-module__dimension`,dimensionHeading:`rly_WorksetCard-module__dimensionHeading`,gaps:`rly_WorksetCard-module__gaps`,list:`rly_WorksetCard-module__list`,gapList:`rly_WorksetCard-module__gapList`,keyList:`rly_WorksetCard-module__keyList`,item:`rly_WorksetCard-module__item`,gap:`rly_WorksetCard-module__gap`,identity:`rly_WorksetCard-module__identity`,link:`rly_WorksetCard-module__link`,itemTitle:`rly_WorksetCard-module__itemTitle`,reference:`rly_WorksetCard-module__reference`,empty:`rly_WorksetCard-module__empty`,conceptLabel:`rly_WorksetCard-module__conceptLabel`,emptyLink:`rly_WorksetCard-module__emptyLink`,linkedWork:`rly_WorksetCard-module__linkedWork`},Z=e=>i(rt,e),Q=(e,t)=>{e!==void 0&&f(e,`${t} href`)},$=(e,t,n)=>{let r=f(e,`${n} id`);if(t.has(r))throw Error(`${n} ids must be unique: ${r}`);return t.add(r),r},it=e=>{let t=new Set;for(let n of e){let e=$(n.id,t,`WorksetCard Jira item`);f(n.key,`WorksetCard Jira key for ${e}`),f(n.title,`WorksetCard Jira title for ${e}`),f(n.state,`WorksetCard Jira state for ${e}`),Q(n.href,`WorksetCard Jira item ${e}`)}},at=e=>{let t=new Set;for(let n of e){let e=$(n.id,t,`WorksetCard pull request group`);f(n.title,`WorksetCard pull request title for ${e}`),f(n.reference,`WorksetCard pull request reference for ${e}`),f(n.state,`WorksetCard pull request state for ${e}`),Q(n.href,`WorksetCard pull request group ${e}`);for(let t of n.linkedJiraKeys)f(t,`WorksetCard linked Jira key for ${e}`)}},ot=e=>{let t=new Set;for(let n of e){let e=$(n.id,t,`WorksetCard gap`);if(f(n.label,`WorksetCard gap label for ${e}`),f(n.reason,`WorksetCard gap reason for ${e}`),!Object.hasOwn(F.service,n.service))throw Error(`WorksetCard gap service for ${e} must be supported`)}},st=e=>{let t=new Set;for(let n of e){let e=$(n.id,t,`WorksetCard pipeline`);f(n.title,`WorksetCard pipeline title for ${e}`),f(n.reference,`WorksetCard pipeline reference for ${e}`),f(n.state,`WorksetCard pipeline state for ${e}`),Q(n.href,`WorksetCard pipeline ${e}`)}},ct=({href:e,reference:t,title:n})=>{let r=(0,h.jsxs)(`span`,{className:Z(`identity`),children:[(0,h.jsx)(`span`,{className:Z(`itemTitle`),children:n}),(0,h.jsx)(`span`,{className:Z(`reference`),children:t})]});return e===void 0?r:(0,h.jsx)(p,{className:Z(`link`),href:e,children:r})},lt=({className:e,gapEmptyLabel:t=`No relationship gaps recorded.`,gaps:n,heading:r,jiraEmptyLabel:i=`No Jira work recorded.`,jiraItems:a,pipelineEmptyLabel:s=`No pipeline delivery recorded.`,pipelines:c,pullRequestEmptyLabel:u=`No pull request groups recorded.`,pullRequestGroups:d,...p})=>{let g=f(r,`WorksetCard heading`),_=f(i,`WorksetCard jiraEmptyLabel`),v=f(u,`WorksetCard pullRequestEmptyLabel`),y=f(t,`WorksetCard gapEmptyLabel`),b=f(s,`WorksetCard pipelineEmptyLabel`);it(a),at(d),ot(n),st(c);let x=`rly-workset-${(0,m.useId)()}`;return(0,h.jsxs)(`section`,{...p,"aria-labelledby":x,className:o(Z(`root`),e),children:[(0,h.jsx)(`h2`,{className:Z(`heading`),id:x,children:g}),(0,h.jsxs)(`div`,{className:Z(`dimensions`),children:[(0,h.jsxs)(`section`,{className:Z(`dimension`),"data-rly-workset-dimension":`jira`,children:[(0,h.jsxs)(`div`,{className:Z(`dimensionHeading`),children:[(0,h.jsx)(I,{service:`jira`,size:`compact`}),(0,h.jsx)(`h3`,{children:`Jira work`})]}),a.length===0?(0,h.jsx)(`p`,{className:Z(`empty`),children:_}):(0,h.jsx)(`ul`,{className:Z(`list`),children:a.map(e=>(0,h.jsxs)(`li`,{className:Z(`item`),"data-rly-workset-jira-id":e.id,children:[(0,h.jsx)(ct,{...e.href===void 0?{}:{href:e.href},reference:e.key,title:e.title}),(0,h.jsx)(l,{label:e.state,size:`compact`,tone:e.tone}),e.owner===void 0?null:(0,h.jsx)(k,{person:e.owner,size:`compact`})]},e.id))})]}),(0,h.jsxs)(`section`,{className:Z(`dimension`),"data-rly-workset-dimension":`pull-requests`,children:[(0,h.jsxs)(`div`,{className:Z(`dimensionHeading`),children:[(0,h.jsx)(I,{service:`codecommit`,size:`compact`}),(0,h.jsx)(`h3`,{children:`Pull request groups`})]}),d.length===0?(0,h.jsx)(`p`,{className:Z(`empty`),children:v}):(0,h.jsx)(`ul`,{className:Z(`list`),children:d.map(e=>(0,h.jsxs)(`li`,{className:Z(`item`),"data-rly-workset-pr-id":e.id,children:[(0,h.jsx)(ct,{...e.href===void 0?{}:{href:e.href},reference:e.reference,title:e.title}),(0,h.jsx)(l,{label:e.state,size:`compact`,tone:e.tone}),(0,h.jsxs)(`div`,{className:Z(`linkedWork`),children:[(0,h.jsx)(`span`,{className:Z(`conceptLabel`),children:`Linked Jira work`}),e.linkedJiraKeys.length===0?(0,h.jsx)(`span`,{className:Z(`emptyLink`),children:`No Jira links recorded.`}):(0,h.jsx)(`ul`,{className:Z(`keyList`),children:e.linkedJiraKeys.map((e,t)=>(0,h.jsx)(`li`,{"data-rly-linked-jira-key":e,children:e},`${e}-${t}`))})]}),e.author===void 0?null:(0,h.jsx)(k,{person:e.author,size:`compact`})]},e.id))}),(0,h.jsxs)(`div`,{className:Z(`gaps`),children:[(0,h.jsx)(`h4`,{children:`Relationship gaps`}),n.length===0?(0,h.jsx)(`p`,{className:Z(`empty`),children:y}):(0,h.jsx)(`ul`,{className:Z(`gapList`),children:n.map(e=>(0,h.jsxs)(`li`,{className:Z(`gap`),"data-rly-workset-gap-id":e.id,children:[(0,h.jsx)(I,{service:e.service,size:`compact`}),(0,h.jsx)(`strong`,{children:e.label}),(0,h.jsx)(`span`,{children:e.reason})]},e.id))})]})]}),(0,h.jsxs)(`section`,{className:Z(`dimension`),"data-rly-workset-dimension":`pipelines`,children:[(0,h.jsxs)(`div`,{className:Z(`dimensionHeading`),children:[(0,h.jsx)(I,{service:`codepipeline`,size:`compact`}),(0,h.jsx)(`h3`,{children:`Pipeline delivery`})]}),c.length===0?(0,h.jsx)(`p`,{className:Z(`empty`),children:b}):(0,h.jsx)(`ul`,{className:Z(`list`),children:c.map(e=>(0,h.jsxs)(`li`,{className:Z(`item`),"data-rly-workset-pipeline-id":e.id,children:[(0,h.jsx)(ct,{...e.href===void 0?{}:{href:e.href},reference:e.reference,title:e.title}),(0,h.jsx)(l,{label:e.state,size:`compact`,tone:e.tone}),e.operator===void 0?null:(0,h.jsx)(k,{person:e.operator,size:`compact`}),e.approver===void 0?null:(0,h.jsx)(k,{person:e.approver,size:`compact`}),(0,h.jsx)(Qe,{heading:`${e.reference} stages`,size:`compact`,stages:e.stages})]},e.id))})]})]})]})};export{y as _,nt as a,ue as c,R as d,we as f,se as g,E as h,N as i,Ke as l,Pe as m,Je as n,k as o,je as p,lt as r,Qe as s,K as t,Se as u,I as v};
|
|
2
|
+
//# sourceMappingURL=patterns-DEbg7R-A-BhsMyh9D.js.map
|