@knpkv/control-center 0.7.0 → 0.8.1

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.
Files changed (163) hide show
  1. package/dist/client/.vite/manifest.json +312 -255
  2. package/dist/client/assets/ActiveWorkPage-DKlotZGc.js +2 -0
  3. package/dist/client/assets/{ActiveWorkPage-BsaIr8ah.js.map → ActiveWorkPage-DKlotZGc.js.map} +1 -1
  4. package/dist/client/assets/AgentPage-Cxm1gj2C.js +6 -0
  5. package/dist/client/assets/{AgentPage-Cybynsnc.js.map → AgentPage-Cxm1gj2C.js.map} +1 -1
  6. package/dist/client/assets/{AtlassianOAuthCallbackPage-Du3pHuS9.js → AtlassianOAuthCallbackPage-fEFUJE2g.js} +2 -2
  7. package/dist/client/assets/{AtlassianOAuthCallbackPage-Du3pHuS9.js.map → AtlassianOAuthCallbackPage-fEFUJE2g.js.map} +1 -1
  8. package/dist/client/assets/AuthorizedSharePage-Dh7Y_gmJ.js +2 -0
  9. package/dist/client/assets/{AuthorizedSharePage-tfTdXNjt.js.map → AuthorizedSharePage-Dh7Y_gmJ.js.map} +1 -1
  10. package/dist/client/assets/BrowserCrypto-CoBR2WBd.js +2 -0
  11. package/dist/client/assets/{BrowserCrypto-DVxU0-Oc.js.map → BrowserCrypto-CoBR2WBd.js.map} +1 -1
  12. package/dist/client/assets/BrowserSessionHydrator-DkomS8Yl.js +2 -0
  13. package/dist/client/assets/{BrowserSessionHydrator-CvtvZstV.js.map → BrowserSessionHydrator-DkomS8Yl.js.map} +1 -1
  14. package/dist/client/assets/CommandSearch-nf16HEqz.js +2 -0
  15. package/dist/client/assets/{CommandSearch-Bf_oW_kD.js.map → CommandSearch-nf16HEqz.js.map} +1 -1
  16. package/dist/client/assets/Dialog-DSwimdwG-BeHnBpPp.js +42 -0
  17. package/dist/client/assets/Dialog-DSwimdwG-BeHnBpPp.js.map +1 -0
  18. package/dist/client/assets/Domain-cJ5aJFpE.js +2 -0
  19. package/dist/client/assets/Domain-cJ5aJFpE.js.map +1 -0
  20. package/dist/client/assets/ItemsPage-Bok8Vpy4.js +2 -0
  21. package/dist/client/assets/{ItemsPage-BmWEHinz.js.map → ItemsPage-Bok8Vpy4.js.map} +1 -1
  22. package/dist/client/assets/OpenPullRequestPage-DdL7PhKZ.js +2 -0
  23. package/dist/client/assets/OpenPullRequestPage-DdL7PhKZ.js.map +1 -0
  24. package/dist/client/assets/{Pages-BmZj4KzS.js → Pages-DrDuXLFH.js} +2 -2
  25. package/dist/client/assets/{Pages-BmZj4KzS.js.map → Pages-DrDuXLFH.js.map} +1 -1
  26. package/dist/client/assets/PairPage-BCtzYqK6.js +2 -0
  27. package/dist/client/assets/{PairPage-CLLUweYZ.js.map → PairPage-BCtzYqK6.js.map} +1 -1
  28. package/dist/client/assets/PortalProvider-CN_81Fy3-D_japesx.js +2 -0
  29. package/dist/client/assets/{PortalProvider-BpgZwSpw-nEH0TqWT.js.map → PortalProvider-CN_81Fy3-D_japesx.js.map} +1 -1
  30. package/dist/client/assets/PortfolioOverview-C-jqvYgQ.js +2 -0
  31. package/dist/client/assets/{PortfolioOverview-BBKSc-yI.js.map → PortfolioOverview-C-jqvYgQ.js.map} +1 -1
  32. package/dist/client/assets/{PullRequestReviewPanel-Boi0A6pq.js → PullRequestReviewPanel-DwVYuZ8Q.js} +5 -5
  33. package/dist/client/assets/{PullRequestReviewPanel-Boi0A6pq.js.map → PullRequestReviewPanel-DwVYuZ8Q.js.map} +1 -1
  34. package/dist/client/assets/ReleaseRoute-cuvP4ug5.js +2 -0
  35. package/dist/client/assets/{ReleaseRoute-D4CttCjC.js.map → ReleaseRoute-cuvP4ug5.js.map} +1 -1
  36. package/dist/client/assets/ReleaseWorkset-DImwmjS3.js +2 -0
  37. package/dist/client/assets/{ReleaseWorkset-Dt-ArwsN.js.map → ReleaseWorkset-DImwmjS3.js.map} +1 -1
  38. package/dist/client/assets/ReviewSuggestionPublicationSurface-BZIa-Vvc.js +2 -0
  39. package/dist/client/assets/{ReviewSuggestionPublicationSurface-N9Qwdh2n.js.map → ReviewSuggestionPublicationSurface-BZIa-Vvc.js.map} +1 -1
  40. package/dist/client/assets/ServicesPage-CrM8R820.js +2 -0
  41. package/dist/client/assets/{ServicesPage-D0ygZTFD.js.map → ServicesPage-CrM8R820.js.map} +1 -1
  42. package/dist/client/assets/TimelinePage-FrvepGa_.js +2 -0
  43. package/dist/client/assets/{TimelinePage-Bb2o9DGU.js.map → TimelinePage-FrvepGa_.js.map} +1 -1
  44. package/dist/client/assets/{WorkspaceEntityLink-Cw675wTN.js → WorkspaceEntityLink-CAj42f02.js} +2 -2
  45. package/dist/client/assets/{WorkspaceEntityLink-Cw675wTN.js.map → WorkspaceEntityLink-CAj42f02.js.map} +1 -1
  46. package/dist/client/assets/WorkspaceEntityRoute-rQ9ccetx.js +14 -0
  47. package/dist/client/assets/WorkspaceEntityRoute-rQ9ccetx.js.map +1 -0
  48. package/dist/client/assets/WorkspaceHomeLink-ObQ3AQVw.js +2 -0
  49. package/dist/client/assets/{WorkspaceHomeLink-FGslxXCu.js.map → WorkspaceHomeLink-ObQ3AQVw.js.map} +1 -1
  50. package/dist/client/assets/WorkspacePullRequestDetails-BhxoqR7V.js +3 -0
  51. package/dist/client/assets/{WorkspacePullRequestDetails-Dxg8argO.js.map → WorkspacePullRequestDetails-BhxoqR7V.js.map} +1 -1
  52. package/dist/client/assets/{WorkspaceReleaseLayout-BvEiZJEb.js → WorkspaceReleaseLayout-BWL66Fff.js} +2 -2
  53. package/dist/client/assets/{WorkspaceReleaseLayout-BvEiZJEb.js.map → WorkspaceReleaseLayout-BWL66Fff.js.map} +1 -1
  54. package/dist/client/assets/{WorkspaceRichText-CocmKQ4T.js → WorkspaceRichText-Beh64wsV.js} +2 -2
  55. package/dist/client/assets/{WorkspaceRichText-CocmKQ4T.js.map → WorkspaceRichText-Beh64wsV.js.map} +1 -1
  56. package/dist/client/assets/WorkspaceSettingsPage-DutfiGPe.js +2 -0
  57. package/dist/client/assets/{WorkspaceSettingsPage-iZhUs-pg.js.map → WorkspaceSettingsPage-DutfiGPe.js.map} +1 -1
  58. package/dist/client/assets/{agent-api-CzdQFCcD.js → agent-api-CUWP1qs8.js} +2 -2
  59. package/dist/client/assets/{agent-api-CzdQFCcD.js.map → agent-api-CUWP1qs8.js.map} +1 -1
  60. package/dist/client/assets/{atlassianOAuthSetupIntentStorage-BxsxmjSm.js → atlassianOAuthSetupIntentStorage-Cy1Gw639.js} +2 -2
  61. package/dist/client/assets/{atlassianOAuthSetupIntentStorage-BxsxmjSm.js.map → atlassianOAuthSetupIntentStorage-Cy1Gw639.js.map} +1 -1
  62. package/dist/client/assets/authenticatedMutationClient-Bc_-Jpbo.js +2 -0
  63. package/dist/client/assets/{authenticatedMutationClient-DUqEcJHu.js.map → authenticatedMutationClient-Bc_-Jpbo.js.map} +1 -1
  64. package/dist/client/assets/authorizedShareTransport-kkT3Jf6q.js +2 -0
  65. package/dist/client/assets/{authorizedShareTransport-7YCNH9l3.js.map → authorizedShareTransport-kkT3Jf6q.js.map} +1 -1
  66. package/dist/client/assets/client-D3WRV6yl.js +5 -0
  67. package/dist/client/assets/client-D3WRV6yl.js.map +1 -0
  68. package/dist/client/assets/{confluenceTasks-D9yrB-oV.js → confluenceTasks-By7BV0WN.js} +2 -2
  69. package/dist/client/assets/{confluenceTasks-D9yrB-oV.js.map → confluenceTasks-By7BV0WN.js.map} +1 -1
  70. package/dist/client/assets/connectionTestTransport-CRq7l9X0.js +2 -0
  71. package/dist/client/assets/{connectionTestTransport-D8tiZ4ym.js.map → connectionTestTransport-CRq7l9X0.js.map} +1 -1
  72. package/dist/client/assets/controlCenterRelayDock-CyYeXh75.js +3 -0
  73. package/dist/client/assets/controlCenterRelayDock-CyYeXh75.js.map +1 -0
  74. package/dist/client/assets/controlCenterRelayDockChrome-upgtq649.js +3 -0
  75. package/dist/client/assets/controlCenterRelayDockChrome-upgtq649.js.map +1 -0
  76. package/dist/client/assets/index-kmYFvwT0.js +11 -0
  77. package/dist/client/assets/index-kmYFvwT0.js.map +1 -0
  78. package/dist/client/assets/index-tjRpNCt_.css +1 -0
  79. package/dist/client/assets/openPullRequest-BMlmibLP.js +2 -0
  80. package/dist/client/assets/openPullRequest-BMlmibLP.js.map +1 -0
  81. package/dist/client/assets/patterns-DuFUSnJW.js +2 -0
  82. package/dist/client/assets/patterns-DuFUSnJW.js.map +1 -0
  83. package/dist/client/assets/{presentPortfolio-c8-wbodG.js → presentPortfolio-DVP-zqTg.js} +2 -2
  84. package/dist/client/assets/{presentPortfolio-c8-wbodG.js.map → presentPortfolio-DVP-zqTg.js.map} +1 -1
  85. package/dist/client/assets/{presentWorkspaceItems-DfhyQeSY.js → presentWorkspaceItems-BY8bmqjF.js} +2 -2
  86. package/dist/client/assets/{presentWorkspaceItems-DfhyQeSY.js.map → presentWorkspaceItems-BY8bmqjF.js.map} +1 -1
  87. package/dist/client/assets/primitives-DYGtIZqB-r-Glkv2i.js +2 -0
  88. package/dist/client/assets/primitives-DYGtIZqB-r-Glkv2i.js.map +1 -0
  89. package/dist/client/assets/pullRequestReviewFailures-CCNxSXP6.js +2 -0
  90. package/dist/client/assets/{pullRequestReviewFailures-QvtS729d.js.map → pullRequestReviewFailures-CCNxSXP6.js.map} +1 -1
  91. package/dist/client/assets/pullRequestReviewThreadReplay-eI3Y4i6s.js +2 -0
  92. package/dist/client/assets/{pullRequestReviewThreadReplay-CpPdYxQE.js.map → pullRequestReviewThreadReplay-eI3Y4i6s.js.map} +1 -1
  93. package/dist/client/assets/{releaseAgentTransport-BCQDYqZt.js → releaseAgentTransport-CJjWwE8y.js} +2 -2
  94. package/dist/client/assets/{releaseAgentTransport-BCQDYqZt.js.map → releaseAgentTransport-CJjWwE8y.js.map} +1 -1
  95. package/dist/client/assets/releaseRoutes-h4FVwFvJ.js +2 -0
  96. package/dist/client/assets/{releaseRoutes-CSP_eBj6.js.map → releaseRoutes-h4FVwFvJ.js.map} +1 -1
  97. package/dist/client/assets/{serviceOnboarding-B6v5VXTG.js → serviceOnboarding-F9Lj6a7y.js} +2 -2
  98. package/dist/client/assets/{serviceOnboarding-B6v5VXTG.js.map → serviceOnboarding-F9Lj6a7y.js.map} +1 -1
  99. package/dist/client/assets/useWorkspaceDefaultLanding-BmaR7aTj.js +3 -0
  100. package/dist/client/assets/{useWorkspaceDefaultLanding-C3PRrLgk.js.map → useWorkspaceDefaultLanding-BmaR7aTj.js.map} +1 -1
  101. package/dist/client/assets/useWorkspaceItems-6KWfmFtx.js +2 -0
  102. package/dist/client/assets/{useWorkspaceItems-CHYpfLmL.js.map → useWorkspaceItems-6KWfmFtx.js.map} +1 -1
  103. package/dist/client/assets/{workspaceEntityRoutes-CFPO-iFw.js → workspaceEntityRoutes-BHccxrFj.js} +2 -2
  104. package/dist/client/assets/{workspaceEntityRoutes-CFPO-iFw.js.map → workspaceEntityRoutes-BHccxrFj.js.map} +1 -1
  105. package/dist/client/assets/{workspaceScrollCapture-DUj-_YMd.js → workspaceScrollCapture-BzsNJoL7.js} +2 -2
  106. package/dist/client/assets/{workspaceScrollCapture-DUj-_YMd.js.map → workspaceScrollCapture-BzsNJoL7.js.map} +1 -1
  107. package/dist/client/assets/workspaceSettingsTransport-BwRQteEH.js +2 -0
  108. package/dist/client/assets/{workspaceSettingsTransport-Kq7lfPsC.js.map → workspaceSettingsTransport-BwRQteEH.js.map} +1 -1
  109. package/dist/client/build-graph.json +63 -0
  110. package/dist/client/index.html +3 -3
  111. package/dist/server/api/index.js +1 -1
  112. package/dist/server/assets/{BindConfig-hNWrGfu2.js → BindConfig-BG-FGtB5.js} +14 -5
  113. package/dist/server/assets/BindConfig-BG-FGtB5.js.map +1 -0
  114. package/dist/server/assets/{controlCenterApi-BcVWTP9F.js → controlCenterApi-WaKi6EUb.js} +2 -1
  115. package/dist/server/assets/controlCenterApi-WaKi6EUb.js.map +1 -0
  116. package/dist/server/index.js +1 -1
  117. package/dist/server/server/cli.js +1 -1
  118. package/dist/server/server/index.js +1 -1
  119. package/package.json +8 -7
  120. package/dist/client/assets/ActiveWorkPage-BsaIr8ah.js +0 -2
  121. package/dist/client/assets/AgentPage-Cybynsnc.js +0 -6
  122. package/dist/client/assets/AuthorizedSharePage-tfTdXNjt.js +0 -2
  123. package/dist/client/assets/BrowserCrypto-DVxU0-Oc.js +0 -2
  124. package/dist/client/assets/BrowserSessionHydrator-CvtvZstV.js +0 -2
  125. package/dist/client/assets/CommandSearch-Bf_oW_kD.js +0 -2
  126. package/dist/client/assets/Dialog-1WvU8GjA-C7r26HF0.js +0 -42
  127. package/dist/client/assets/Dialog-1WvU8GjA-C7r26HF0.js.map +0 -1
  128. package/dist/client/assets/ItemsPage-BmWEHinz.js +0 -2
  129. package/dist/client/assets/OpenPullRequestPage-DkCom6mf.js +0 -2
  130. package/dist/client/assets/OpenPullRequestPage-DkCom6mf.js.map +0 -1
  131. package/dist/client/assets/PairPage-CLLUweYZ.js +0 -2
  132. package/dist/client/assets/PortalProvider-BpgZwSpw-nEH0TqWT.js +0 -2
  133. package/dist/client/assets/PortfolioOverview-BBKSc-yI.js +0 -2
  134. package/dist/client/assets/ReleaseRoute-D4CttCjC.js +0 -2
  135. package/dist/client/assets/ReleaseWorkset-Dt-ArwsN.js +0 -2
  136. package/dist/client/assets/ReviewSuggestionPublicationSurface-N9Qwdh2n.js +0 -2
  137. package/dist/client/assets/ServicesPage-D0ygZTFD.js +0 -2
  138. package/dist/client/assets/TimelinePage-Bb2o9DGU.js +0 -2
  139. package/dist/client/assets/WorkspaceEntityRoute-rLRiaF8b.js +0 -14
  140. package/dist/client/assets/WorkspaceEntityRoute-rLRiaF8b.js.map +0 -1
  141. package/dist/client/assets/WorkspaceHomeLink-FGslxXCu.js +0 -2
  142. package/dist/client/assets/WorkspacePullRequestDetails-Dxg8argO.js +0 -3
  143. package/dist/client/assets/WorkspaceSettingsPage-iZhUs-pg.js +0 -2
  144. package/dist/client/assets/authenticatedMutationClient-DUqEcJHu.js +0 -2
  145. package/dist/client/assets/authorizedShareTransport-7YCNH9l3.js +0 -2
  146. package/dist/client/assets/client-D2F6HlDk.js +0 -5
  147. package/dist/client/assets/client-D2F6HlDk.js.map +0 -1
  148. package/dist/client/assets/connectionTestTransport-D8tiZ4ym.js +0 -2
  149. package/dist/client/assets/index-BWx9sNOT.js +0 -11
  150. package/dist/client/assets/index-BWx9sNOT.js.map +0 -1
  151. package/dist/client/assets/index-CIfiz7oF.css +0 -1
  152. package/dist/client/assets/patterns-CxMz8DKX-ByHwV03y.js +0 -2
  153. package/dist/client/assets/patterns-CxMz8DKX-ByHwV03y.js.map +0 -1
  154. package/dist/client/assets/primitives-CW89TsFB-BBLwFFPo.js +0 -2
  155. package/dist/client/assets/primitives-CW89TsFB-BBLwFFPo.js.map +0 -1
  156. package/dist/client/assets/pullRequestReviewFailures-QvtS729d.js +0 -2
  157. package/dist/client/assets/pullRequestReviewThreadReplay-CpPdYxQE.js +0 -2
  158. package/dist/client/assets/releaseRoutes-CSP_eBj6.js +0 -2
  159. package/dist/client/assets/useWorkspaceDefaultLanding-C3PRrLgk.js +0 -3
  160. package/dist/client/assets/useWorkspaceItems-CHYpfLmL.js +0 -2
  161. package/dist/client/assets/workspaceSettingsTransport-Kq7lfPsC.js +0 -2
  162. package/dist/server/assets/BindConfig-hNWrGfu2.js.map +0 -1
  163. package/dist/server/assets/controlCenterApi-BcVWTP9F.js.map +0 -1
@@ -1,14 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/pullRequestReviewThreadReplay-CpPdYxQE.js","assets/agent-api-CzdQFCcD.js","assets/client-D2F6HlDk.js","assets/authenticatedMutationClient-DUqEcJHu.js","assets/pullRequestReviewFailures-QvtS729d.js","assets/WorkspacePullRequestDetails-Dxg8argO.js","assets/rolldown-runtime-hePW80VL.js","assets/react-CwJFpaho.js","assets/preload-helper-Czpn1I53.js","assets/jsx-runtime-NZYk81nU.js","assets/workbench-4C25n_BY-DcOIwxZW.js","assets/loader-circle-Dem7LJJw.js","assets/component-DKy8kjZl-DJ62HeaY.js","assets/patterns-CxMz8DKX-ByHwV03y.js","assets/PortalProvider-BpgZwSpw-nEH0TqWT.js","assets/Dialog-1WvU8GjA-C7r26HF0.js","assets/index-BWx9sNOT.js","assets/hooks-K-sIfGqH.js","assets/lib-6h955hh9.js","assets/releasePaths-XoI2BHX3.js","assets/index-CIfiz7oF.css","assets/primitives-CW89TsFB-BBLwFFPo.js","assets/WorkspacePullRequestDetails.module-Bl8z_AMw.js","assets/WorkspacePullRequestDetails-q_Ngh_tB.css","assets/WorkspacePullRequestDiff.module-DJEWRmoT.js","assets/WorkspacePullRequestDiff-HJB-ezE4.css","assets/WorkspaceRichText-CocmKQ4T.js"])))=>i.map(i=>d[i]);
2
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{t}from"./react-CwJFpaho.js";import{l as n,o as r,r as i,u as a}from"./hooks-K-sIfGqH.js";import{t as o}from"./lib-6h955hh9.js";import{t as s}from"./preload-helper-Czpn1I53.js";import{t as c}from"./jsx-runtime-NZYk81nU.js";import{a as l,i as u,n as d,s as f}from"./Dialog-1WvU8GjA-C7r26HF0.js";import{d as p,f as m,u as h}from"./index-BWx9sNOT.js";import{_ as g,a as _,c as v,h as y,l as b,n as x,o as S,r as C,t as w,u as T,v as ee}from"./patterns-CxMz8DKX-ByHwV03y.js";import{n as te,r as E}from"./primitives-CW89TsFB-BBLwFFPo.js";import{Dn as ne,Ei as D,En as re,Ga as O,Gr as k,Ha as ie,In as ae,Jr as oe,Kt as A,Ln as se,Oi as ce,Pn as le,Qr as ue,Rn as j,Si as de,Ti as fe,Wi as pe,Yr as me,Zr as he,_r as M,ar as ge,gi as _e,gr as ve,ha as ye,hi as be,hr as N,ka as xe,ki as P,la as Se,ma as Ce,mi as we,nr as Te,pr as F,tr as Ee,ui as De,vr as Oe,zn as ke}from"./agent-api-CzdQFCcD.js";import{o as Ae}from"./client-D2F6HlDk.js";import{n as je,t as Me}from"./BrowserCrypto-DVxU0-Oc.js";import{a as Ne,i as Pe,o as Fe,r as Ie}from"./releaseAgentTransport-BCQDYqZt.js";import{n as Le,t as Re}from"./workspaceEntityPaths-xAl2jRFm.js";import{a as ze,i as Be,o as Ve,t as He}from"./workspaceEntityRoutes-CFPO-iFw.js";import{i as Ue,n as We,r as Ge}from"./presentWorkspaceItems-DfhyQeSY.js";import{t as Ke}from"./authenticatedMutationClient-DUqEcJHu.js";import{n as qe}from"./reviewPlatformAdapter-Duu9pLcg.js";import{i as Je,n as Ye,t as Xe}from"./confluenceTasks-D9yrB-oV.js";import{t as Ze}from"./WorkspaceEntityLink-Cw675wTN.js";import{t as Qe}from"./connectionTestTransport-D8tiZ4ym.js";import{t as $e}from"./WorkspaceRichText-CocmKQ4T.js";import{n as I,t as et}from"./pullRequestReviewFailures-QvtS729d.js";var L=e(t(),1),tt=new Intl.DateTimeFormat(`en-GB`,{dateStyle:`medium`,timeStyle:`short`,timeZone:`UTC`}),nt=e=>e.split(/[_\-\s]+/u).filter(Boolean).map(e=>`${e.charAt(0).toLocaleUpperCase(`en-US`)}${e.slice(1).toLocaleLowerCase(`en-US`)}`).join(` `),rt=e=>{let t=Math.floor(e/60),n=e%60;return t===0?`${String(n)}m`:n===0?`${String(t)}h`:`${String(t)}h ${String(n)}m`},it=e=>e==null?`Not synchronized`:tt.format(he(e)),at=e=>e==null?null:{dateTime:k(e),label:tt.format(he(e))},ot=e=>e.lifecycle._tag!==`missing`&&e.lifecycle._tag!==`rejected`&&e.lifecycle._tag!==`superseded`,st=(e,t)=>{let n=new Set(t.graph.nodes.flatMap(({nodeId:e,resolution:n})=>n._tag===`resolved`&&n.target._tag===`entity`&&n.target.entityId===t.entity.projection.entityId?[e]:[])),r=new Map;for(let{nodeId:e,resolution:n}of t.graph.nodes)n._tag===`resolved`&&n.target._tag===`entity`&&n.target.entityKind===`issue`&&r.set(e,n.target.entityId);let i=new Map;for(let{projection:e}of t.graph.relatedEntityProjections)e.entityState===`present`&&e.entityType===`issue`&&i.set(e.entityId,e);let a=new Map;for(let e of t.graph.relationships){if(e.kind!==`tracks-time-for`||!n.has(e.sourceNodeId)||!ot(e))continue;let t=r.get(e.targetNodeId),o=t===void 0?void 0:i.get(t);if(t===void 0||o===void 0)continue;let s=e.lifecycle._tag===`inferred`||e.confidence._tag===`inferred`,c=a.get(t);if(c===void 0){a.set(t,{evidenceClaimIds:new Set(e.evidenceClaimIds),issue:o,state:s?`inferred`:`linked`});continue}for(let t of e.evidenceClaimIds)c.evidenceClaimIds.add(t);s||(c.state=`linked`)}return[...a.entries()].map(([t,{evidenceClaimIds:n,issue:r,state:i}])=>({evidenceLabel:`${String(n.size)} evidence claim${n.size===1?``:`s`}`,href:Le(e,t),key:r.displayKey,state:i,title:r.title}))},ct=(e,t,n)=>{let r=st(e,n),i=r.filter(({state:e})=>e===`inferred`).length,a=n.entity.owners.filter(({roles:e})=>e.some(e=>e.includes(`approver`))).map(({displayName:e})=>e),o=t.userId===void 0?void 0:n.entity.owners.find(({sourceIdentities:e})=>e?.some(({providerId:e,vendorPersonId:n})=>e===`clockify`&&n===t.userId)??!1);return{approvalDecidedAt:at(n.clockifyApproval?.decidedAt),approvalDetail:n.clockifyApproval===null?`No Control Center decision is recorded for this exact Clockify revision.`:n.clockifyApproval.rationale,approvalLabel:n.clockifyApproval===null?`Pending`:nt(n.clockifyApproval.decision),approvers:a,associationDetail:r.length===0?`No current Jira relationship explains where this time belongs. The entry remains visible.`:i===0?`${String(r.length)} current Jira link${r.length===1?``:`s`}`:`${String(i)} inferred Jira link${i===1?``:`s`} — verify before reporting`,associationLabel:r.length===0?`Unattributed`:`Attributed`,billableLabel:t.billable?`Billable`:`Non-billable`,contributorLabel:o?.displayName??t.userId??`Contributor not synchronized`,description:t.description??n.entity.projection.title,durationLabel:rt(t.durationMinutes),endedAt:it(t.endedAt),jiraAssociations:r,lockLabel:t.locked===void 0?`Lock state not synchronized`:t.locked?`Locked`:`Unlocked`,projectLabel:t.projectId??`No Clockify project`,rollupLabel:`1 visible entry · ${String(t.durationMinutes)} exact minute${t.durationMinutes===1?``:`s`}`,sourceRevision:n.source.revision,startedAt:it(t.startedAt),timerLabel:t.startedAt===void 0||t.endedAt===void 0?`Timer state not synchronized`:t.endedAt===null?`Timer running`:`Completed`,totalMinutes:t.durationMinutes}},lt=new Intl.DateTimeFormat(`en-GB`,{dateStyle:`medium`,timeStyle:`short`,timeZone:`UTC`}),ut=e=>e.split(`-`).map(e=>`${e.charAt(0).toLocaleUpperCase(`en-US`)}${e.slice(1)}`).join(` `),R=e=>e===null?null:xe(oe(e),{onNone:()=>e,onSome:e=>lt.format(he(e))}),dt=e=>e.name??e.sourceId??`Not set`,ft=e=>e===void 0||e.length===0?`Not set`:e.join(` · `),pt=e=>({id:e,name:`Unknown collaborator`,role:`Jira collaborator`}),mt=e=>new Map((e.collaborators??[]).map(e=>{let t=e.roles.map(ut);return[e.sourcePersonId,{id:e.sourcePersonId,name:e.displayName,role:t.length===0?`Jira collaborator`:t.join(` · `),...e.avatarUrl!==null&&{avatarSrc:e.avatarUrl}}]})),ht=(e,t)=>({href:(()=>{if(t===null||e.key===null)return null;let n=/^(.*\/browse\/)[^/]+$/u.exec(t.pathname)?.[1];return n===void 0?null:`${t.origin}${n}${encodeURIComponent(e.key)}`})(),key:e.key??e.sourceId??`Unknown issue`,status:e.status===null?`Status unknown`:dt(e.status),summary:e.summary??`Summary unavailable`}),gt=e=>{let t=e.project,n=(e.fixVersions??[]).map(dt),r=(e.components??[]).map(dt);return[{label:`Type`,value:e.issueType===null||e.issueType===void 0?`Not set`:dt(e.issueType)},{label:`Project`,value:t==null?`Not set`:[t.key,t.name].filter(e=>e!==null).join(` · `)||`Not set`},{label:`Resolution`,value:e.resolution===null||e.resolution===void 0?`Unresolved`:dt(e.resolution)},{label:`Labels`,value:ft(e.labels)},{label:`Components`,value:ft(r)},{label:`Fix versions`,value:ft(n)},{label:`Created`,value:R(e.createdAt??null)??`Not available`},{label:`Updated`,value:R(e.updatedAt??null)??`Not available`},{label:`Due`,value:R(e.dueDate??null)??`Not set`}]},_t=(e,t)=>`${e??`Empty`} → ${t??`Empty`}`,vt=(e,t)=>{let n=mt(e),r=e=>e===null?pt(`unknown-person`):n.get(e)??pt(e),i=new Set(e.truncatedFields??[]),a=(e.comments??[]).map(e=>({author:r(e.authorSourcePersonId),body:e.body,id:e.sourceId,time:R(e.updatedAt??e.createdAt)})),o=(e.history??[]).map(e=>({actor:r(e.authorSourcePersonId),changes:e.changes.map(e=>({field:e.field,transition:_t(e.from,e.to)})),id:e.sourceId,time:R(e.createdAt)})),s=e.commentTotal??a.length,c=e.historyTotal??o.length,l=(e.commentsTruncated??!1)||s>a.length,u=(e.historyTruncated??!1)||c>o.length,d=[...i].filter(e=>e!==`comments`&&(e!==`history`||!u));return{acceptanceCriteria:e.acceptanceCriteria??null,collaborators:[...n.values()],commentCount:s,comments:a,commentBodiesTruncated:e.commentBodiesTruncated??(i.has(`comments`)&&!l),commentsTruncated:l,description:e.description??null,environment:e.environment??null,history:o,historyCount:c,historyTruncated:u,metadata:gt(e),parent:e.parent===null||e.parent===void 0?null:ht(e.parent,t),subtasks:(e.subtasks??[]).map(e=>ht(e,t)),truncationMessage:d.length===0?null:`Jira shortened ${d.map(ut).join(`, `)} to keep this synchronized view bounded.`}},yt=new Intl.DateTimeFormat(`en-GB`,{dateStyle:`medium`,timeStyle:`short`,timeZone:`UTC`}),bt=e=>e.split(/[._\-\s]+/u).filter(e=>e.length>0).map(e=>`${e.charAt(0).toLocaleUpperCase(`en-US`)}${e.slice(1)}`).join(` `),xt=e=>bt(e.split(`/`).filter(e=>e.length>0).at(-1)??e)||`AWS identity`,St=e=>e==null?null:{id:e,name:xt(e),role:`Pull request author`},Ct=e=>e==null?null:xe(oe(e),{onNone:()=>null,onSome:e=>({dateTime:k(e),label:yt.format(he(e))})}),wt=e=>{switch(e){case`approved`:return`Approved by people`;case`changes-requested`:return`Changes requested`;case`merged`:return`Merged`;case`requested`:return`Human review requested`;case`not-requested`:return`No human approval synchronized`}},Tt=e=>{let t=new Map(e.graph.nodes.flatMap(({nodeId:e,resolution:t})=>t._tag===`resolved`&&t.target._tag===`entity`?[[e,t.target.entityId]]:[])),n=new Set(e.graph.nodes.flatMap(({nodeId:t,resolution:n})=>n._tag===`resolved`&&n.target._tag===`entity`&&n.target.entityId===e.entity.projection.entityId?[t]:[]));return new Set(e.graph.relationships.flatMap(e=>{if(e.lifecycle._tag===`missing`||e.lifecycle._tag===`rejected`||e.lifecycle._tag===`superseded`)return[];let r=n.has(e.sourceNodeId)?e.targetNodeId:n.has(e.targetNodeId)?e.sourceNodeId:null,i=r===null?null:t.get(r);return i==null?[]:[i]}))},Et=(e,t,n)=>{let r=Tt(n),i=e=>n.graph.relatedEntityProjections.filter(({projection:t})=>t.entityState===`present`&&t.entityType===e&&r.has(t.entityId)).length,a=n.entity.releaseIds.length,o=i(`issue`),s=i(`pipeline-execution`),c=e=>`${String(e)}${n.graph.truncated?`+`:``}`;return{author:St(e.authorReference),baseRevision:e.baseRevision??null,createdAt:Ct(e.createdAt),description:e.description?.trim()||null,diffScope:{pluginConnectionId:t.pluginConnectionId,vendorImmutableId:t.vendorImmutableId,revision:t.revision},filesHref:t.sourceUrl?.href??null,headRevision:e.headRevision,issueCount:o,issueCountLabel:c(o),mergeBaseRevision:e.mergeBaseRevision??null,pipelineCount:s,pipelineCountLabel:c(s),releaseCount:a,releaseCountLabel:`${String(a)}${n.entity.releaseMembershipsTruncated?`+`:``}`,reviewLabel:wt(e.reviewState),sourceBranch:e.sourceBranch,targetBranch:e.targetBranch,updatedAt:Ct(e.updatedAt)}},Dt=new Intl.DateTimeFormat(`en-GB`,{dateStyle:`medium`,timeStyle:`short`,timeZone:`UTC`}),z=e=>e.split(`-`).map(e=>`${e.charAt(0).toLocaleUpperCase(`en-US`)}${e.slice(1)}`).join(` `),Ot={clockify:`Clockify`,codecommit:`CodeCommit`,codepipeline:`CodePipeline`,confluence:`Confluence`,jira:`Jira`},kt={deployment:`Deployment`,issue:`Issue`,page:`Page`,"pipeline-execution":`Pipeline execution`,"pull-request":`Pull request`,"time-entry":`Time entry`},At=e=>Dt.format(he(e)),jt=e=>{if(e.sourceUrl===null)return null;let t=new URL(e.sourceUrl.href);return e.providerId===`confluence`&&t.pathname.startsWith(`/spaces/`)&&(t.pathname=`/wiki${t.pathname}`),t.href},Mt=(e,t)=>`/w/${encodeURIComponent(e)}/releases/${encodeURIComponent(t)}`,Nt=e=>e.slice(-8),Pt=e=>{switch(e._tag){case`issue`:return[{label:`Priority`,value:e.priority??`Not set`},{label:`Estimate`,value:e.estimatePoints===null?`Not estimated`:`${e.estimatePoints} points`}];case`pull-request`:return[{label:`Repository`,value:e.repository},...e.lifecycle===null||e.lifecycle===void 0?[]:[{label:`State`,value:z(e.lifecycle)}],{label:`Branches`,value:`${e.sourceBranch} → ${e.targetBranch}`},{label:`Head revision`,value:e.headRevision}];case`page`:return[{label:`Space`,value:e.spaceKey},{label:`Revision`,value:e.revision}];case`pipeline-execution`:return[{label:`Pipeline`,value:e.pipelineName},{label:`Execution`,value:e.executionId},{label:`Trigger revision`,value:e.triggerRevision}];case`deployment`:return[{label:`Environment`,value:Nt(e.environmentId)},{label:`Revision`,value:e.revision}];case`time-entry`:return[{label:`Duration`,value:`${e.durationMinutes} min`},{label:`Billable`,value:e.billable?`Yes`:`No`}]}},Ft=e=>z(e),It=e=>({avatarFallback:e.avatarFallback,id:e.personId,name:e.displayName,role:[...new Set(e.roles.map(Ft))].join(` · `)}),Lt=e=>e.some(e=>e.includes(`approver`))?`approvers`:e.some(e=>e===`reviewer`||e===`watcher`)?`reviewers`:e.includes(`operator`)?`operators`:e.some(e=>e===`author`||e===`contributor`)?`authors`:`owners`,Rt=e=>{let t=[`authors`,`owners`,`reviewers`,`operators`,`approvers`],n=()=>[],r={approvers:n(),authors:n(),operators:n(),owners:n(),reviewers:n()};for(let t of e)r[Lt(t.roles)].push(It(t));let i=t.filter(e=>r[e].length>0);return{...r,emptyLabel:`No collaborator is assigned to this object.`,expandedCategories:i}},zt=(e,t)=>{if(t===null)return e;let n=[...e.owners],r=[...e.authors],i=new Set([...e.approvers,...e.authors,...e.operators,...e.owners,...e.reviewers].map(e=>e.name.toLocaleLowerCase(`en-US`))),a=new Set;for(let e of t.collaborators){if(a.has(e.id))continue;a.add(e.id);let t=e.name.toLocaleLowerCase(`en-US`);i.has(t)||(e.role.includes(`Assignee`)?n.push(e):r.push(e))}let o=[];r.length>0&&o.push(`authors`),n.length>0&&o.push(`owners`);for(let t of e.expandedCategories)o.push(t);return{...e,authors:r,emptyLabel:`No collaborator was synchronized or assigned to this object.`,expandedCategories:[...new Set(o)],owners:n}},Bt=(e,t,n)=>{if(t===null)return e;let r={approvers:[...e.approvers],authors:[...e.authors],operators:[...e.operators],owners:[...e.owners],reviewers:[...e.reviewers]},i=new Set(Object.values(r).flat().map(({id:e})=>e)),a=new Set(n.flatMap(e=>(e.sourceIdentities??[]).filter(({providerId:e})=>e===`confluence`).map(({vendorPersonId:e})=>e)));for(let e of t.contributors)i.has(e.id)||a.has(e.id)||(i.add(e.id),e.role.includes(`Owner`)?r.owners.push(e):e.role.includes(`Watcher`)?r.reviewers.push(e):r.authors.push(e));let o=[`authors`,`owners`,`reviewers`,`operators`,`approvers`];return{...r,emptyLabel:`No collaborator was synchronized or assigned to this document.`,expandedCategories:o.filter(e=>r[e].length>0)}},Vt=e=>{let t=e.freshness;return t===null?e.isSourceCurrent?`current`:`cached`:t._tag===`current`?e.isSourceCurrent&&t.provenance._tag===`provider`?`current`:`cached`:t._tag},Ht=e=>{let t=e.freshness;return t===null?e.entity.recordedAt:t.sourceObservedAt??t.synchronizedAt??t.pluginHealth.checkedAt},Ut=(e,t,n,r)=>{if(e===void 0)return{state:`missing`,label:`Unknown graph endpoint`,reason:`The endpoint is outside this graph response.`};if(e.resolution._tag===`missing`)return{state:`missing`,label:e.resolution.missingKey,reason:`${z(e.endpointKind)} is not connected.`};let i=e.resolution.target;if(i._tag===`entity`){let e=t.get(i.entityId);return e===void 0?{state:`missing`,label:`${kt[i.entityKind]} ${Nt(i.entityId)}`,reason:`The related object is outside this bounded response.`,service:We(i.entityKind)}:e.entityState===`deleted`?{state:`missing`,label:`${e.title} · Deleted`,reason:`The related object was deleted.`,service:We(e.entityType)}:{state:`present`,href:Le(r,e.entityId),id:e.entityId,reference:e.displayKey,service:We(e.entityType),title:e.title}}return i._tag===`release`?{state:`present`,href:Mt(r,i.releaseId),id:i.releaseId,reference:`Control Center release · ${Nt(i.releaseId)}`,service:n,title:`Delivery release`}:{state:`present`,id:i.environmentId,reference:`Control Center environment · ${Nt(i.environmentId)}`,service:n,title:`Delivery environment`}},Wt=e=>{let t=e.evidenceClaimIds.length,n=e.confidence._tag===`inferred`?`${Math.round(e.confidence.score*100)}% inferred`:z(e.confidence._tag);return`${t} evidence claim${t===1?``:`s`} · ${n}`},Gt=(e,t,n)=>{let r=new Map(e.graph.nodes.map(e=>[e.nodeId,e])),i=[e.entity,...e.graph.relatedEntityProjections].map(({projection:e})=>e),a=new Map(i.map(e=>[e.entityId,e])),o=new Map(e.entity.owners.map(e=>[e.personId,e]));return e.graph.relationships.map(e=>{let i=e.recordedBy._tag===`human`?o.get(e.recordedBy.personId):void 0;return{...i!==void 0&&{actor:It(i)},direction:`forward`,evidence:Wt(e),id:e.relationshipId,kind:z(e.kind),lifecycle:e.lifecycle._tag,source:Ut(r.get(e.sourceNodeId),a,n,t),target:Ut(r.get(e.targetNodeId),a,n,t)}})},Kt=e=>e.activity.events.map(e=>({actor:e.actor.label,actorKind:e.actor.kind,dateTime:k(e.occurredAt),detail:z(e.sourceKind),...e.href!==null&&{href:e.href},id:e.eventKey,...e.service!==null&&{service:e.service},time:At(e.occurredAt),title:e.title})),qt=(e,t,n)=>{let r=jt(e.source);if(r!==null)return{external:!0,href:r,label:e.source.providerId===`confluence`?`View in Confluence`:`Open in ${n}`};let i=e.entity.canonicalReleaseId;return i===null?{external:!1,href:null,label:`Source link unavailable`}:{external:!1,href:Mt(t,i),label:`Open delivery release`}},Jt=e=>[...e.entity.ownersTruncated?[`More collaborators exist than this bounded view can show.`]:[],...e.entity.releaseMembershipsTruncated?[`More release memberships exist than this bounded delivery path can show.`]:[],...e.graph.truncated?[`The relationship graph is partial; additional delivery links exist.`]:[],...e.activity.truncated?[`The activity list is partial; older events are not shown.`]:[]],Yt=({displayKey:e,issue:t,releaseCount:n,serviceName:r,title:i})=>t===null?`${e} · ${i} · ${r}`:`${e} · ${i} · ${r} issue · ${String(n)} release${n===1?``:`s`} · ${String(t.commentCount)} synchronized comment${t.commentCount===1?``:`s`}`,Xt=(e,t)=>{let n=t.entity.projection,r=We(n.entityType),i=Ot[r],a=Ge(n.details),o=n.details._tag===`issue`?vt(n.details,t.source.sourceUrl):null,s=n.details._tag===`pull-request`?Et(n.details,t.source,t):null,c=n.details._tag===`pipeline-execution`?Je(n.details,t):null,l=n.details._tag===`page`?Fe(n.details,t):null,u=n.details._tag===`time-entry`?ct(e,n.details,t):null,d=Ht(t),f=t.entity.releaseIds.length;return{activity:Kt(t),activityEmptyLabel:`No attributable activity has been recorded for this object.`,agentContext:Yt({displayKey:n.displayKey,issue:o,releaseCount:f,serviceName:i,title:n.title}),collaborators:Bt(zt(Rt(t.entity.owners),o),l,t.entity.owners),clockifyTimeEntry:u,confluencePage:l,contentSummary:`${kt[n.entityType]} ${n.displayKey} is tracked in ${i}. ${f===0?`It is not linked to a release yet.`:`It belongs to ${f}${t.entity.releaseMembershipsTruncated?`+`:``} release${f===1?``:`s`}.`}`,displayKey:n.displayKey,evidence:{claimCount:t.graph.evidenceClaims.length,freshness:Vt(t),freshnessDateTime:k(d),freshnessTime:At(d),itemCount:t.graph.evidenceItems.length,reference:`${n.displayKey} · source revision ${t.source.revision}`},facts:[{label:`Object`,value:kt[n.entityType]},{label:`Service`,value:i},...Pt(n.details)],freshness:Vt(t),freshnessDateTime:k(d),freshnessTime:At(d),kindLabel:kt[n.entityType],issue:o,pipelineExecution:c,pullRequest:s,partialMessages:Jt(t),primaryAction:qt(t,e,i),relationships:Gt(t,e,r),relationshipEmptyLabel:`No delivery relationships have been recorded for this object.`,releases:t.entity.releaseIds.map(t=>({href:Mt(e,t),id:t,label:`Release ${Nt(t)}`})),service:r,serviceName:i,title:n.title,tone:Ue(n.entityType,a).tone,verdict:a}},B={state:`_state_13ab1_1`,loading:`_loading_13ab1_12`,loadingColumns:`_loadingColumns_13ab1_13`,content:`_content_13ab1_14`,entityActions:`_entityActions_13ab1_15`,deliveryPath:`_deliveryPath_13ab1_16`,facts:`_facts_13ab1_17`,evidence:`_evidence_13ab1_18`,activity:`_activity_13ab1_19`,sectionHeading:`_sectionHeading_13ab1_20`,back:`_back_13ab1_34`,principalAction:`_principalAction_13ab1_35`,releasePath:`_releasePath_13ab1_36`,pageSynchronization:`_pageSynchronization_13ab1_67`,secondaryAction:`_secondaryAction_13ab1_76`,pathRail:`_pathRail_13ab1_112`,pathNode:`_pathNode_13ab1_121`,pathEmpty:`_pathEmpty_13ab1_122`,workingCircle:`_workingCircle_13ab1_190`,shell:`_shell_13ab1_212`,timeline:`_timeline_13ab1_236`},V={document:`_document_1mruv_1`,ledger:`_ledger_1mruv_2`,ledgerBody:`_ledgerBody_1mruv_3`,primaryFacts:`_primaryFacts_1mruv_5`,section:`_section_1mruv_7`,sectionHeading:`_sectionHeading_1mruv_8`,entry:`_entry_1mruv_9`,attribution:`_attribution_1mruv_12`,people:`_people_1mruv_17`,readOnly:`_readOnly_1mruv_19`,total:`_total_1mruv_36`},H=c(),Zt=({children:e,heading:t,meta:n})=>(0,H.jsxs)(`section`,{className:V.section,children:[(0,H.jsxs)(`header`,{className:V.sectionHeading,children:[(0,H.jsx)(E,{as:`h2`,variant:`section-title`,children:t}),(0,H.jsx)(E,{tone:`secondary`,variant:`meta`,children:n})]}),e]}),Qt=({canApprove:e=!1,canCorrect:t=!1,onSubmit:n,submission:r={_tag:`idle`},timeEntry:i})=>{let[a,s]=(0,L.useState)(``),[c,u]=(0,L.useState)(``),d=(0,L.useRef)(`approved`),f=!t||n===void 0||r._tag===`submitting`,p=!e||n===void 0||r._tag===`submitting`;return(0,H.jsxs)(`article`,{className:V.document,"data-workspace-clockify-time-entry-detail":!0,children:[(0,H.jsxs)(`section`,{"aria-label":`Clockify time ledger`,className:V.ledger,children:[(0,H.jsxs)(`div`,{className:V.total,children:[(0,H.jsx)(`span`,{children:`Total tracked`}),(0,H.jsx)(`strong`,{children:i.durationLabel}),(0,H.jsx)(`small`,{children:i.rollupLabel})]}),(0,H.jsxs)(`div`,{className:V.ledgerBody,children:[(0,H.jsxs)(`header`,{children:[(0,H.jsx)(`span`,{children:`Time ledger`}),(0,H.jsx)(l,{label:i.associationLabel,tone:i.jiraAssociations.length===0?`caution`:`positive`})]}),(0,H.jsx)(`p`,{children:i.description}),(0,H.jsxs)(`dl`,{className:V.primaryFacts,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`dt`,{children:`Project`}),(0,H.jsx)(`dd`,{children:i.projectLabel})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`dt`,{children:`Billing`}),(0,H.jsx)(`dd`,{children:i.billableLabel})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`dt`,{children:`Contributor`}),(0,H.jsx)(`dd`,{children:i.contributorLabel})]})]})]})]}),(0,H.jsx)(Zt,{heading:`Entry`,meta:`The exact source record included in the total`,children:(0,H.jsxs)(`div`,{className:V.entry,children:[(0,H.jsx)(`strong`,{children:i.durationLabel}),(0,H.jsxs)(`dl`,{children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`dt`,{children:`Started`}),(0,H.jsx)(`dd`,{children:i.startedAt})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`dt`,{children:`Ended`}),(0,H.jsx)(`dd`,{children:i.endedAt})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`dt`,{children:`State`}),(0,H.jsx)(`dd`,{children:i.timerLabel})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`dt`,{children:`Provider lock`}),(0,H.jsx)(`dd`,{children:i.lockLabel})]})]})]})}),(0,H.jsx)(Zt,{heading:`Jira attribution`,meta:`Current delivery-ledger relationships`,children:(0,H.jsxs)(`div`,{className:V.attribution,"data-state":i.jiraAssociations.length===0?`missing`:`linked`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`strong`,{children:i.associationLabel}),(0,H.jsx)(`p`,{children:i.associationDetail})]}),i.jiraAssociations.length===0?null:(0,H.jsx)(`ul`,{children:i.jiraAssociations.map(e=>(0,H.jsx)(`li`,{children:(0,H.jsxs)(o,{to:e.href,children:[(0,H.jsx)(`span`,{children:e.key}),(0,H.jsx)(`strong`,{children:e.title}),(0,H.jsxs)(`small`,{children:[e.state===`inferred`?`Inferred`:`Linked`,` · `,e.evidenceLabel]})]})},e.href))})]})}),(0,H.jsx)(Zt,{heading:`People`,meta:`Provider contributor and assigned approvers`,children:(0,H.jsxs)(`dl`,{className:V.people,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`dt`,{children:`Contributor`}),(0,H.jsx)(`dd`,{children:i.contributorLabel})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`dt`,{children:`Approvers`}),(0,H.jsx)(`dd`,{children:i.approvers.join(` · `)||`No approval recorded`})]})]})}),(0,H.jsxs)(`aside`,{className:V.readOnly,"data-clockify-approval":!0,children:[(0,H.jsxs)(`strong`,{children:[`Control Center approval: `,i.approvalLabel]}),(0,H.jsx)(`span`,{children:i.approvalDetail}),i.approvalDecidedAt===null?null:(0,H.jsxs)(`time`,{dateTime:i.approvalDecidedAt.dateTime,children:[`Recorded `,i.approvalDecidedAt.label]})]}),(0,H.jsxs)(`section`,{"aria-label":`Governed Clockify actions`,"data-clockify-governed-actions":!0,children:[(0,H.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),f||n({_tag:`correct-association`,expectedRevision:i.sourceRevision,jiraIssueKey:a})},children:[(0,H.jsxs)(`label`,{children:[`Jira issue key`,(0,H.jsx)(`input`,{disabled:f,maxLength:100,onChange:e=>s(e.currentTarget.value),pattern:`[A-Z][A-Z0-9]*-[1-9][0-9]*`,required:!0,value:a})]}),(0,H.jsx)(`button`,{disabled:f,type:`submit`,children:`Correct association`})]}),(0,H.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),!p&&c.trim().length>0&&(n({_tag:`record-approval`,expectedRevision:i.sourceRevision,decision:d.current,rationale:c.trim()}),d.current=`approved`)},children:[(0,H.jsxs)(`label`,{children:[`Approval rationale`,(0,H.jsx)(`input`,{disabled:p,maxLength:1e3,onChange:e=>u(e.currentTarget.value),required:!0,value:c})]}),(0,H.jsx)(`button`,{disabled:p||c.trim().length===0,onClick:()=>{d.current=`approved`},type:`submit`,children:`Approve revision`}),(0,H.jsx)(`button`,{disabled:p||c.trim().length===0,onClick:()=>{d.current=`rejected`},type:`submit`,children:`Reject revision`})]}),r._tag===`failed`?(0,H.jsx)(`p`,{role:`alert`,children:`The governed action could not be submitted.`}):null,r._tag===`succeeded`?(0,H.jsxs)(`p`,{children:[`Action recorded: `,r.result.state]}):null]})]})},$t={submit:(e,t,n)=>D(we(function*(){let n=yield*Ke;return t._tag,yield*n.deliveryGraph.submitClockifyAction({params:{entityId:e},payload:t})}).pipe(de(Ae)),{signal:n})},en=(e,t,n,r,i=$t)=>{let[a,o]=(0,L.useState)({_tag:`idle`}),s=(0,L.useRef)(null);return(0,L.useEffect)(()=>(s.current?.abort(),s.current=null,o({_tag:`idle`}),()=>{s.current?.abort(),s.current=null}),[e,t]),{state:a,submit:(0,L.useCallback)(a=>{if(t===null||s.current!==null)return;let c=new AbortController;s.current=c,o({_tag:`submitting`}),i.submit(e,a,c.signal).then(e=>{s.current===c&&(s.current=null,o({_tag:`succeeded`,result:e}),r())},e=>{s.current===c&&(s.current=null,O(`UnauthorizedApiError`)(e)&&n(t),c.signal.aborted||o({_tag:`failed`}))})},[e,n,r,t,i])}},tn=`15 seconds`,nn=15e3,rn=1e3,an=9e5,on={synchronize:(e,t)=>{let n=Qe.synchronize;return n===void 0?Promise.reject(Error(`Confluence synchronization is unavailable`)):n(e,t)}},sn=ke({ownerKey:j,recordedAt:se,sessionExpired:ne,state:le([`syncing`,`synchronized`,`failed`])}),U=new Map,cn=new WeakMap,ln=new Map,un=we(function*(){return yield*(yield*je).randomUUIDv4}).pipe(de(Me)),dn=e=>{let t=ln.get(e);if(t!==void 0)return t;let n=ce(un);return ln.set(e,n),n},fn=e=>`control-center:confluence-sync:${e}`,pn=e=>{try{let t=localStorage.getItem(e);return t===null?null:Se(Ee(ge(sn))(t))}catch{return null}},mn=(e,t)=>{try{localStorage.setItem(e,Te(ge(sn))(t))}catch{}},hn=(e,t)=>{let n=pn(e);if(n?.state===`syncing`&&n.ownerKey===t.ownerKey&&n.recordedAt===t.recordedAt)try{localStorage.removeItem(e)}catch{}},W=async(e,t)=>{let n=!1;return await Promise.all(Array.from(e.participants.values(),async e=>{if(!e.lifetime.aborted){if(t.sessionExpired&&t.ownerKey!==e.ownerKey){n=!0;return}if(t.state!==`synchronized`){e.setState(t.state),t.sessionExpired&&e.onSessionExpired();return}e.setState(`syncing`);try{let t=await e.verifySynchronized(e.lifetime);if(e.lifetime.aborted)return;e.setState(t?`synchronized`:`idle`),t&&e.onSynchronized()}catch(t){if(e.lifetime.aborted)return;O(`UnauthorizedApiError`)(t)&&e.onSessionExpired(),e.setState(`failed`)}}})),n},gn=(e,t,n=!1)=>{if(t.active!==null)return t.active.completion;let r=new AbortController,i=D(pe),a=fn(e),o=!1,s=async()=>{let s=await i,c=await D(pe),l=t.participants.values().next().value;if(l===void 0||r.signal.aborted)return;let u=pn(a),d=u===null?null:c-u.recordedAt;if(u!==null&&d!==null&&u.recordedAt<=c+rn&&(!u.sessionExpired||u.ownerKey===l.ownerKey)&&(u.state===`syncing`?d<an:!n&&(u.recordedAt>=s||d<nn))){u.state!==`syncing`&&(o=await W(t,u));return}let f={ownerKey:l.ownerKey,recordedAt:c,sessionExpired:!1,state:`syncing`};mn(a,f),o=await W(t,f);let p=()=>hn(a,f);r.signal.addEventListener(`abort`,p,{once:!0});try{let n=await l.transport.synchronize(e,r.signal);if(r.signal.aborted)return p();let i={ownerKey:l.ownerKey,recordedAt:await D(pe),sessionExpired:!1,state:n.result===`synchronized`?`synchronized`:`failed`};mn(a,i),o=await W(t,i)}catch(e){if(r.signal.aborted)return p();let n={ownerKey:l.ownerKey,recordedAt:await D(pe),sessionExpired:O(`UnauthorizedApiError`)(e),state:`failed`};mn(a,n),o=await W(t,n)}finally{r.signal.removeEventListener(`abort`,p)}},c=`locks`in navigator?navigator.locks:null,l=(c===null?s():c.request(`control-center:confluence-sync:${e}`,{signal:r.signal},()=>s())).catch(async e=>{let n=t.participants.values().next().value;!r.signal.aborted&&n!==void 0&&(o=await W(t,{ownerKey:n.ownerKey,recordedAt:0,sessionExpired:O(`UnauthorizedApiError`)(e),state:`failed`}))}).finally(()=>{t.active?.abort===r&&(t.active=null),o&&document.visibilityState===`visible`&&gn(e,t,!0)});return t.active={abort:r,completion:l},l},_n=(e,t)=>{let n=null,r=0,i=!1,a=e=>{if(i||e!==r)return;let a=new AbortController;n=a,D(P(tn),{signal:a.signal}).then(()=>o(),e=>{if(!a.signal.aborted)for(let e of t.participants.values())e.setState(`failed`)})},o=()=>{r+=1;let i=r;n?.abort(),n=null,(document.visibilityState===`visible`?gn(e,t):Promise.resolve()).finally(()=>a(i))},s=()=>{if(document.visibilityState===`visible`){r+=1;let i=r;n?.abort(),n=null,gn(e,t,!0).finally(()=>a(i))}},c=n=>{if(n.key!==fn(e)||n.newValue===null)return;let r=Se(Ee(ge(sn))(n.newValue));r!==null&&W(t,r).then(n=>{n&&document.visibilityState===`visible`&&gn(e,t,!0)})};return document.addEventListener(`visibilitychange`,s),window.addEventListener(`storage`,c),o(),()=>{i=!0,r+=1,n?.abort(),n=null,t.active?.abort.abort(),t.active=null,document.removeEventListener(`visibilitychange`,s),window.removeEventListener(`storage`,c)}},vn=(e,t)=>{let n=Symbol(),r=U.get(e),i=r??{active:null,participants:new Map};return i.participants.set(n,t),r===void 0&&(U.set(e,i),cn.set(i,_n(e,i))),()=>{i.participants.delete(n),i.participants.size===0&&(cn.get(i)?.(),cn.delete(i),U.get(e)===i&&U.delete(e))}},yn=async e=>{let t=pn(e);if(t?.state!==`syncing`)return null;let n=await D(pe);if(t.recordedAt>n+rn)return null;let r=t.recordedAt+an-n;return r<=0?null:{remainingMillis:r,synchronization:t}},bn=async(e,t)=>{let n=fn(e);for(;;){if(t.aborted)return;let e=await yn(n);if(e===null)return;let r=new AbortController;await new Promise(i=>{let a=!1,o=()=>{a||(a=!0,r.abort(),window.removeEventListener(`storage`,s),t.removeEventListener(`abort`,o),i())},s=e=>{e.key===n&&o()};window.addEventListener(`storage`,s),t.addEventListener(`abort`,o,{once:!0}),t.aborted&&o();let c=pn(n);(c?.state!==`syncing`||c.ownerKey!==e.synchronization.ownerKey||c.recordedAt!==e.synchronization.recordedAt)&&o(),D(P(e.remainingMillis),{signal:r.signal}).then(o,e=>{r.signal.aborted||o()})})}},xn=({enabled:e,onSessionExpired:t,onSynchronized:n,pluginConnectionId:r,readSynchronizationRevision:i,sessionKey:a,synchronizationRevision:o,transport:s=on})=>{let[c,l]=(0,L.useState)(`idle`),u=(0,L.useRef)(null),d=(0,L.useRef)(t),f=(0,L.useRef)(n),p=(0,L.useRef)(i),m=(0,L.useRef)({pluginConnectionId:r,sessionKey:a,value:o});d.current=t,f.current=n,p.current=i,m.current.pluginConnectionId!==r||m.current.sessionKey!==a?m.current={pluginConnectionId:r,sessionKey:a,value:o}:o!==null&&(m.current.value===null||o>m.current.value)&&(m.current.value=o);let h=(0,L.useCallback)(async e=>{let t=await p.current(e),n=m.current.value;return t===null||n===null||t<=n?!1:(m.current.value=t,!0)},[]),g=(0,L.useCallback)(()=>{if(!e||r===null||a===null)return Promise.resolve();let t=U.get(r);return t===void 0?Promise.resolve():gn(r,t,!0)},[e,r,a]),_=(0,L.useCallback)(()=>{let e=u.current?.signal;if(e===void 0||e.aborted)return;let t=r===null?void 0:U.get(r)?.active?.completion??bn(r,e);t===void 0?g():t.then(()=>{e.aborted||g()})},[r,g]);return(0,L.useEffect)(()=>{if(l(`idle`),!e||r===null||a===null)return;let t=new AbortController;u.current=t;let n=vn(r,{lifetime:t.signal,onSessionExpired:()=>d.current(a),onSynchronized:()=>f.current(),ownerKey:dn(a),sessionKey:a,setState:l,transport:s,verifySynchronized:h});return()=>{t.abort(),u.current===t&&(u.current=null),n()}},[e,r,a,s,h]),{state:c,synchronizeAfterMutation:_,synchronizeNow:_}},G={document:`_document_1dvhb_1`,folio:`_folio_1dvhb_2`,revision:`_revision_1dvhb_3`,folioMeta:`_folioMeta_1dvhb_4`,section:`_section_1dvhb_7`,sectionHeading:`_sectionHeading_1dvhb_8`,collections:`_collections_1dvhb_9`,versions:`_versions_1dvhb_10`,attachments:`_attachments_1dvhb_12`,contentState:`_contentState_1dvhb_14`,documentRead:`_documentRead_1dvhb_15`,editorEntry:`_editorEntry_1dvhb_16`,visualEditor:`_visualEditor_1dvhb_17`,editorHeading:`_editorHeading_1dvhb_18`,editorActions:`_editorActions_1dvhb_19`,editorToolbar:`_editorToolbar_1dvhb_20`,releaseTasks:`_releaseTasks_1dvhb_21`,releaseTaskHeading:`_releaseTaskHeading_1dvhb_22`,releaseTaskList:`_releaseTaskList_1dvhb_23`,evidenceCount:`_evidenceCount_1dvhb_25`,richText:`_richText_1dvhb_97`,editorCanvas:`_editorCanvas_1dvhb_250`},Sn=e=>e.replace(/([\\`*_[\]<>])/gu,`\\$1`),Cn=e=>e.nodeType===Node.ELEMENT_NODE,wn=e=>e.tagName.toLocaleLowerCase(`en-US`)===`input`&&`type`in e&&e.type===`checkbox`&&`checked`in e&&ie(e.checked),K=e=>{if(e.nodeType===Node.TEXT_NODE)return Sn(e.textContent??``);if(!Cn(e))return``;let t=[...e.childNodes].map(K).join(``);switch(e.tagName.toLocaleLowerCase(`en-US`)){case`strong`:case`b`:return`**${t}**`;case`em`:case`i`:return`*${t}*`;case`s`:case`del`:return`~~${t}~~`;case`code`:return`\`${(e.textContent??``).replace(/`/gu,"\\`")}\``;case`a`:{let n=e.getAttribute(`href`);return n===null?t:`[${t}](${n.replace(/\)/gu,`\\)`)})`}case`br`:return`
3
- `;default:return t}},Tn=(e,t,n=0)=>[...e.children].filter(e=>e.tagName.toLocaleLowerCase(`en-US`)===`li`).map((e,r)=>{let i=[...e.children].find(wn),a=i===void 0?``:`[${i.checked?`x`:` `}] `,o=[...e.children].filter(e=>/^(?:ol|ul)$/u.test(e.tagName.toLowerCase())),s=[...e.childNodes].filter(e=>!Cn(e)||!/^(?:ol|ul)$/u.test(e.tagName.toLowerCase())).map(K).join(``).trim(),c=` `.repeat(n),l=o.map(e=>Tn(e,e.tagName.toLowerCase()===`ol`,n+1));return[`${c}${t?`${String(r+1)}.`:`-`} ${i===void 0?``:a}${s}`,...l].join(`
4
- `)}).join(`
5
- `),En=e=>{if(e.nodeType===Node.TEXT_NODE)return Sn(e.textContent??``);if(!Cn(e))return``;let t=e.tagName.toLocaleLowerCase(`en-US`);switch(t){case`h1`:case`h2`:case`h3`:case`h4`:case`h5`:case`h6`:return`${`#`.repeat(Number(t.slice(1)))} ${K(e).trim()}`;case`ul`:return Tn(e,!1);case`ol`:return Tn(e,!0);case`blockquote`:return K(e).trim().split(`
6
- `).map(e=>`> ${e}`).join(`
7
- `);case`pre`:{let t=e.textContent??``,n=Math.max(0,...[...t.matchAll(/`+/gu)].map(([e])=>e.length)),r="`".repeat(Math.max(3,n+1));return`${r}\n${t}\n${r}`}case`hr`:return`---`;case`p`:case`div`:case`section`:case`article`:return[...e.children].some(e=>/^(?:article|blockquote|div|h[1-6]|hr|ol|p|pre|section|ul)$/u.test(e.tagName.toLocaleLowerCase(`en-US`)))?[...e.childNodes].map(En).filter(e=>e.trim().length>0).join(`
8
-
9
- `):K(e).trim();default:return K(e).trim()}},Dn=e=>[...e.childNodes].map(En).filter(e=>e.trim().length>0).join(`
10
-
11
- `).replace(/\n{3,}/gu,`
12
-
13
- `).trim(),q=(e,t)=>{document.execCommand(e,!1,t)},On=e=>{let t=URL.parse(e);return t!==null&&(t.protocol===`http:`||t.protocol===`https:`)?t.href:null},kn=e=>e===`succeeded`,An=(0,L.memo)(({markdown:e})=>(0,H.jsx)($e,{value:e}),()=>!0),jn=({canEdit:e,entityId:t,onAskAgent:n,onSaved:r,page:i,releaseId:a,submitPublication:o=Ie,title:s})=>{let[c,l]=(0,L.useState)({_tag:`idle`}),[u,p]=(0,L.useState)(null),[m,h]=(0,L.useState)(!1),[g,_]=(0,L.useState)(s),v=(0,L.useRef)(null),y=c._tag!==`idle`&&c._tag!==`saved`,b=c._tag===`saving`,x=Xe(i.content??``);(0,L.useEffect)(()=>{_(s),l({_tag:`idle`}),p(null),h(!1)},[i.revision,s]);let S=(n,c)=>{if(!e||!i.taskUpdatesSafe||a===null||i.content===null||u!==null)return;let l=Ye(i.content,n,c);l!==null&&(p(n),h(!1),o({releaseId:a,provider:`confluence`,title:s,markdown:l,targetEntityId:t,targetRevision:A.make(i.revision),signal:AbortSignal.timeout(3e4)}).then(e=>{kn(e.state)?r():h(!0)},()=>h(!0)).finally(()=>p(null)))};return y?(0,H.jsxs)(`div`,{className:G.visualEditor,"data-confluence-visual-editor":!0,children:[(0,H.jsxs)(`div`,{className:G.editorHeading,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(E,{as:`strong`,children:[`Editing revision `,i.revision]}),(0,H.jsx)(E,{tone:`secondary`,variant:`meta`,children:`Save creates the next Confluence revision after an explicit owner confirmation.`})]}),(0,H.jsxs)(`div`,{className:G.editorActions,children:[(0,H.jsx)(d,{disabled:b,onClick:n,variant:`secondary`,children:`Ask Relay`}),(0,H.jsx)(d,{disabled:b,onClick:()=>l({_tag:`idle`}),variant:`secondary`,children:`Cancel`}),(0,H.jsx)(d,{disabled:b,loading:b,onClick:()=>{let e=v.current;if(e===null||a===null||b)return;let n=Dn(e),s=g.trim();if(s.length===0||n.length===0){l({_tag:`failed`});return}l({_tag:`saving`}),o({releaseId:a,provider:`confluence`,title:s,markdown:n,targetEntityId:t,targetRevision:A.make(i.revision),signal:AbortSignal.timeout(3e4)}).then(e=>{kn(e.state)?(l({_tag:`saved`}),r()):l({_tag:`failed`})},()=>l({_tag:`failed`}))},children:`Save to Confluence`})]})]}),i.contentState!==`loaded`||i.content===null?(0,H.jsx)(f,{description:`The existing body is not synchronized. Saving this draft replaces the complete Confluence page body at the displayed revision.`,title:`Complete replacement`,tone:`caution`}):null,(0,H.jsx)(te,{label:`Page title`,children:e=>(0,H.jsx)(`input`,{...e,disabled:b,maxLength:500,onChange:e=>_(e.target.value),value:g})}),(0,H.jsxs)(`div`,{"aria-label":`Document formatting`,className:G.editorToolbar,onMouseDown:e=>e.preventDefault(),role:`toolbar`,children:[(0,H.jsx)(`button`,{onClick:()=>q(`formatBlock`,`p`),type:`button`,children:`Paragraph`}),(0,H.jsx)(`button`,{onClick:()=>q(`formatBlock`,`h2`),type:`button`,children:`Heading 2`}),(0,H.jsx)(`button`,{onClick:()=>q(`formatBlock`,`h3`),type:`button`,children:`Heading 3`}),(0,H.jsx)(`button`,{"aria-label":`Bold`,onClick:()=>q(`bold`),type:`button`,children:(0,H.jsx)(`strong`,{children:`B`})}),(0,H.jsx)(`button`,{"aria-label":`Italic`,onClick:()=>q(`italic`),type:`button`,children:(0,H.jsx)(`em`,{children:`I`})}),(0,H.jsx)(`button`,{onClick:()=>q(`insertUnorderedList`),type:`button`,children:`Bullets`}),(0,H.jsx)(`button`,{onClick:()=>q(`insertOrderedList`),type:`button`,children:`Numbered`}),(0,H.jsx)(`button`,{onClick:()=>{let e=window.prompt(`Link address`),t=e===null?null:On(e);t!==null&&q(`createLink`,t)},type:`button`,children:`Link`})]}),(0,H.jsx)(`div`,{"aria-label":`Confluence page body`,"aria-multiline":`true`,className:`${G.editorCanvas} ${G.richText}`,contentEditable:!b,ref:v,role:`textbox`,suppressContentEditableWarning:!0,children:(0,H.jsx)(An,{markdown:i.content??``})}),c._tag===`failed`?(0,H.jsx)(f,{description:`Keep a non-empty title and document body, refresh the latest revision, then try again.`,title:`The page was not saved`,tone:`critical`}):null]}):(0,H.jsxs)(`div`,{className:G.documentRead,children:[i.contentState===`loaded`&&i.content!==null?(0,H.jsx)($e,{className:G.richText,value:i.content}):(0,H.jsxs)(`div`,{className:G.contentState,"data-content-state":i.contentState,children:[(0,H.jsx)(`strong`,{children:i.contentState===`lazy`?`Content has not been loaded`:`No readable body was returned`}),(0,H.jsx)(E,{tone:`secondary`,children:`Open the authenticated Confluence source to read it now, or synchronize the connection before editing so Relay never replaces an unseen document.`})]}),x.total===0?null:(0,H.jsxs)(`section`,{"aria-labelledby":`confluence-release-tasks`,className:G.releaseTasks,children:[(0,H.jsxs)(`div`,{className:G.releaseTaskHeading,children:[(0,H.jsx)(E,{as:`h3`,id:`confluence-release-tasks`,variant:`card-title`,children:`Release tasks`}),(0,H.jsxs)(E,{tone:`secondary`,variant:`meta`,children:[x.completed,` of `,x.total,` complete`]})]}),(0,H.jsx)(`ul`,{className:G.releaseTaskList,children:x.tasks.map(t=>(0,H.jsxs)(`li`,{children:[(0,H.jsxs)(`label`,{children:[(0,H.jsx)(`input`,{checked:t.checked,disabled:!e||!i.taskUpdatesSafe||a===null||u!==null,onChange:e=>S(t.lineIndex,e.target.checked),type:`checkbox`}),(0,H.jsx)(`span`,{children:t.label})]}),u===t.lineIndex?(0,H.jsx)(E,{variant:`meta`,children:`Saving…`}):null]},`${String(t.lineIndex)}-${t.label}`))}),x.outstanding===0?(0,H.jsx)(E,{children:`All Confluence tasks are complete.`}):(0,H.jsxs)(E,{tone:`secondary`,children:[x.outstanding,` task`,x.outstanding===1?``:`s`,` block release publication.`]}),i.taskUpdatesSafe?null:(0,H.jsx)(E,{tone:`secondary`,children:`Task-only updates are unavailable because this safe page projection cannot prove a lossless ADF round trip. Review a complete replacement before changing these tasks.`}),m?(0,H.jsx)(f,{description:`Refresh the latest Confluence revision, then tick the task again.`,title:`The task was not updated`,tone:`critical`}):null]}),(0,H.jsxs)(`div`,{className:G.editorEntry,children:[(0,H.jsx)(d,{disabled:!e||a===null,onClick:()=>l({_tag:`editing`}),children:i.contentState===`loaded`&&i.content!==null?`Edit on this page`:`Write a complete replacement`}),(0,H.jsx)(d,{onClick:n,variant:`secondary`,children:`Ask Relay to edit`}),c._tag===`saved`?(0,H.jsx)(E,{children:`Saved to Confluence.`}):null,e?null:(0,H.jsx)(E,{tone:`secondary`,children:`Current source data and workspace-owner access are required to edit.`}),e&&a===null?(0,H.jsx)(E,{tone:`secondary`,children:`Link this page to a release before editing it in Relay.`}):null]})]})},Mn=({children:e,heading:t,meta:n})=>(0,H.jsxs)(`section`,{className:G.section,children:[(0,H.jsxs)(`header`,{className:G.sectionHeading,children:[(0,H.jsx)(E,{as:`h2`,variant:`section-title`,children:t}),(0,H.jsx)(E,{tone:`secondary`,variant:`meta`,children:n})]}),e]}),Nn=({editor:e,page:t})=>{let[n,r]=(0,L.useState)(!1);return(0,H.jsxs)(`article`,{className:G.document,"data-workspace-confluence-page-detail":!0,children:[(0,H.jsxs)(`section`,{"aria-label":`Document identity`,className:G.folio,children:[(0,H.jsxs)(`div`,{className:G.revision,children:[(0,H.jsx)(`span`,{children:`Revision`}),(0,H.jsx)(`strong`,{children:t.revision})]}),(0,H.jsxs)(`div`,{className:G.folioMeta,children:[(0,H.jsx)(l,{label:t.status,tone:t.status===`Superseded`?`caution`:t.status===`Current`?`positive`:`neutral`}),(0,H.jsxs)(`dl`,{children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`dt`,{children:`Space`}),(0,H.jsx)(`dd`,{children:t.sourceSpaceId})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`dt`,{children:`Updated`}),(0,H.jsx)(`dd`,{children:t.updatedAt===null?`Not synchronized`:(0,H.jsx)(`time`,{dateTime:t.updatedAt.dateTime,children:t.updatedAt.label})})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`dt`,{children:`Created`}),(0,H.jsx)(`dd`,{children:t.createdAt===null?`Not synchronized`:(0,H.jsx)(`time`,{dateTime:t.createdAt.dateTime,children:t.createdAt.label})})]})]})]})]}),(0,H.jsx)(Mn,{heading:`Document`,meta:`Safely converted text; raw provider markup and media stay outside this view`,children:(0,H.jsx)(jn,{...e,page:t})}),(0,H.jsx)(Mn,{heading:`People`,meta:t.watcherInventoryLabel,children:t.contributors.length===0?(0,H.jsx)(E,{tone:`secondary`,children:`No owner, contributor, or watcher identity was synchronized.`}):(0,H.jsx)(_,{"aria-label":`Page collaborators`,expanded:n,limit:4,onExpandedChange:r,people:t.contributors})}),(0,H.jsxs)(`div`,{className:G.collections,children:[(0,H.jsx)(Mn,{heading:`Revision history`,meta:t.historyInventoryLabel,children:t.versions.length===0?(0,H.jsx)(E,{tone:`secondary`,children:`No revision history was synchronized.`}):(0,H.jsx)(`ol`,{className:G.versions,children:t.versions.map(e=>(0,H.jsxs)(`li`,{children:[(0,H.jsxs)(`strong`,{children:[`v`,e.number]}),(0,H.jsx)(`span`,{children:e.message}),(0,H.jsxs)(`small`,{children:[e.author,` · `,(0,H.jsx)(`time`,{dateTime:e.createdAt.dateTime,children:e.createdAt.label}),e.minorEdit?` · Minor edit`:``]})]},`${String(e.number)}-${e.createdAt.dateTime}`))})}),(0,H.jsx)(Mn,{heading:`Attachments`,meta:t.attachmentInventoryLabel,children:t.attachments.length===0?(0,H.jsx)(E,{tone:`secondary`,children:`No attachment metadata was synchronized.`}):(0,H.jsx)(`ul`,{className:G.attachments,children:t.attachments.map(e=>(0,H.jsxs)(`li`,{children:[(0,H.jsx)(`strong`,{children:e.title}),(0,H.jsxs)(`span`,{children:[e.mediaType,` · `,e.fileSize,` · `,e.version]}),(0,H.jsx)(`small`,{children:`Metadata only · authenticated proxy required`})]},e.id))})})]}),(0,H.jsx)(Mn,{heading:`Runbook evidence`,meta:`Immutable delivery evidence around this page`,children:(0,H.jsxs)(`div`,{className:G.evidenceCount,children:[(0,H.jsx)(`strong`,{children:t.runbookEvidenceCount}),(0,H.jsxs)(`span`,{children:[`evidence item`,t.runbookEvidenceCount===1?``:`s`,` in the current bounded graph`]})]})})]})},J={document:`_document_1cny9_1`,section:`_section_1cny9_2`,sectionHeading:`_sectionHeading_1cny9_3`,people:`_people_1cny9_4`,conversation:`_conversation_1cny9_5`,history:`_history_1cny9_6`,related:`_related_1cny9_7`,metadata:`_metadata_1cny9_8`,attribution:`_attribution_1cny9_9`,richText:`_richText_1cny9_28`,commentBody:`_commentBody_1cny9_29`,criteria:`_criteria_1cny9_70`,boundaryNotice:`_boundaryNotice_1cny9_75`,collectionNotice:`_collectionNotice_1cny9_76`},Y=({children:e,heading:t,meta:n})=>(0,H.jsxs)(`section`,{className:J.section,children:[(0,H.jsxs)(`header`,{className:J.sectionHeading,children:[(0,H.jsx)(E,{as:`h2`,variant:`section-title`,children:t}),n===void 0?null:(0,H.jsx)(E,{tone:`secondary`,variant:`meta`,children:n})]}),e]}),Pn=({empty:e,value:t})=>t===null?(0,H.jsx)(E,{tone:`secondary`,children:e}):(0,H.jsx)($e,{className:J.richText,value:t}),Fn=({issue:e})=>(0,H.jsxs)(`article`,{className:J.document,"data-workspace-issue-detail":!0,children:[e.truncationMessage===null?null:(0,H.jsx)(E,{className:J.boundaryNotice,tone:`secondary`,children:e.truncationMessage}),(0,H.jsx)(Y,{heading:`Description`,meta:`What changes and why`,children:(0,H.jsx)(Pn,{empty:`No description was synchronized from Jira.`,value:e.description})}),(0,H.jsx)(Y,{heading:`Acceptance criteria`,meta:`The finish line`,children:(0,H.jsx)(`div`,{className:J.criteria,children:(0,H.jsx)(Pn,{empty:`No acceptance criteria were synchronized.`,value:e.acceptanceCriteria})})}),e.environment===null?null:(0,H.jsx)(Y,{heading:`Environment`,meta:`Where this applies`,children:(0,H.jsx)(Pn,{empty:`No environment was synchronized.`,value:e.environment})}),(0,H.jsx)(Y,{heading:`People`,meta:`${String(e.collaborators.length)} collaborators`,children:e.collaborators.length===0?(0,H.jsx)(E,{tone:`secondary`,children:`No Jira collaborator was synchronized for this issue.`}):(0,H.jsx)(`ul`,{className:J.people,children:e.collaborators.map(e=>(0,H.jsx)(`li`,{children:(0,H.jsx)(v,{person:e})},e.id))})}),(0,H.jsx)(Y,{heading:`Issue details`,meta:`Synchronized fields`,children:(0,H.jsx)(`dl`,{className:J.metadata,children:e.metadata.map(e=>(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`dt`,{children:e.label}),(0,H.jsx)(`dd`,{children:e.value})]},e.label))})}),e.parent===null&&e.subtasks.length===0?null:(0,H.jsx)(Y,{heading:`Related Jira work`,meta:`Source hierarchy`,children:(0,H.jsxs)(`div`,{className:J.related,children:[e.parent===null?null:(0,H.jsxs)(`div`,{children:[(0,H.jsx)(E,{tone:`secondary`,variant:`meta`,children:`Parent`}),e.parent.href===null?(0,H.jsx)(`strong`,{children:e.parent.key}):(0,H.jsx)(`a`,{href:e.parent.href,rel:`noreferrer`,target:`_blank`,children:e.parent.key}),(0,H.jsx)(`span`,{children:e.parent.summary}),(0,H.jsx)(`small`,{children:e.parent.status})]}),e.subtasks.map(e=>(0,H.jsxs)(`div`,{children:[(0,H.jsx)(E,{tone:`secondary`,variant:`meta`,children:`Subtask`}),e.href===null?(0,H.jsx)(`strong`,{children:e.key}):(0,H.jsx)(`a`,{href:e.href,rel:`noreferrer`,target:`_blank`,children:e.key}),(0,H.jsx)(`span`,{children:e.summary}),(0,H.jsx)(`small`,{children:e.status})]},e.key))]})}),(0,H.jsxs)(Y,{heading:`Comments`,meta:`${String(e.commentCount)} comments`,children:[e.commentBodiesTruncated?(0,H.jsx)(E,{className:J.collectionNotice,tone:`secondary`,children:`Jira shortened comment bodies to keep this synchronized view bounded.`}):null,e.commentsTruncated?(0,H.jsx)(E,{className:J.collectionNotice,tone:`secondary`,children:`Only the newest synchronized comments are shown.`}):null,e.comments.length===0?(0,H.jsx)(E,{tone:`secondary`,children:`No comment was synchronized for this issue.`}):(0,H.jsx)(`ol`,{className:J.conversation,children:e.comments.map(e=>(0,H.jsxs)(`li`,{children:[(0,H.jsxs)(`div`,{className:J.attribution,children:[(0,H.jsx)(v,{person:e.author,size:`compact`}),e.time===null?null:(0,H.jsx)(`time`,{children:e.time})]}),(0,H.jsx)($e,{className:J.commentBody,value:e.body??`Comment body unavailable.`})]},e.id))})]}),(0,H.jsxs)(Y,{heading:`History`,meta:`${String(e.historyCount)} changes`,children:[e.historyTruncated?(0,H.jsx)(E,{className:J.collectionNotice,tone:`secondary`,children:`Only the newest synchronized history is shown.`}):null,e.history.length===0?(0,H.jsx)(E,{tone:`secondary`,children:`No field history was synchronized for this issue.`}):(0,H.jsx)(`ol`,{className:J.history,children:e.history.map(e=>(0,H.jsxs)(`li`,{children:[(0,H.jsxs)(`div`,{className:J.attribution,children:[(0,H.jsx)(v,{person:e.actor,size:`compact`}),e.time===null?null:(0,H.jsx)(`time`,{children:e.time})]}),(0,H.jsx)(`dl`,{children:e.changes.map((e,t)=>(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`dt`,{children:e.field}),(0,H.jsx)(`dd`,{children:e.transition})]},`${e.field}:${String(t)}`))})]},e.id))})]})]}),X={document:`_document_173oo_1`,hero:`_hero_173oo_2`,heroHeading:`_heroHeading_173oo_3`,heroFacts:`_heroFacts_173oo_4`,executionMeta:`_executionMeta_173oo_6`,section:`_section_173oo_7`,sectionHeading:`_sectionHeading_173oo_8`,peopleLanes:`_peopleLanes_173oo_9`,actions:`_actions_173oo_11`,artifacts:`_artifacts_173oo_17`,sourceArtifacts:`_sourceArtifacts_173oo_18`,deliveryCounts:`_deliveryCounts_173oo_21`,summary:`_summary_173oo_64`,stageRail:`_stageRail_173oo_116`,partial:`_partial_173oo_142`,error:`_error_173oo_193`},In=({children:e,heading:t,meta:n})=>(0,H.jsxs)(`section`,{className:X.section,children:[(0,H.jsxs)(`header`,{className:X.sectionHeading,children:[(0,H.jsx)(E,{as:`h2`,variant:`section-title`,children:t}),(0,H.jsx)(E,{tone:`secondary`,variant:`meta`,children:n})]}),e]}),Ln=({value:e})=>e===null?(0,H.jsx)(H.Fragment,{children:`Not synchronized`}):(0,H.jsx)(`time`,{dateTime:e.dateTime,children:e.label}),Rn=({pipeline:e})=>(0,H.jsxs)(`article`,{className:X.document,"data-workspace-pipeline-execution-detail":!0,children:[(0,H.jsxs)(`section`,{"aria-label":`Execution identity`,className:X.hero,children:[(0,H.jsxs)(`div`,{className:X.heroHeading,children:[(0,H.jsx)(`span`,{children:`Execution`}),(0,H.jsx)(`strong`,{children:e.executionId}),(0,H.jsx)(l,{label:e.status,tone:e.status===`Succeeded`?`positive`:e.status===`Failed`?`critical`:e.status===`Running`?`progress`:e.status===`Stopped`?`caution`:`neutral`})]}),e.statusSummary===null?null:(0,H.jsx)(`p`,{className:X.summary,children:e.statusSummary}),(0,H.jsxs)(`dl`,{className:X.heroFacts,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`dt`,{children:`Why`}),(0,H.jsxs)(`dd`,{children:[e.triggerType,(0,H.jsx)(`small`,{children:e.triggerDetail})]})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`dt`,{children:`Revision`}),(0,H.jsx)(`dd`,{children:(0,H.jsx)(`code`,{children:e.triggerRevision})})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`dt`,{children:`Where`}),(0,H.jsx)(`dd`,{children:e.targetEnvironment})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`dt`,{children:`Duration`}),(0,H.jsx)(`dd`,{children:e.duration})]})]}),(0,H.jsxs)(`dl`,{className:X.executionMeta,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`dt`,{children:`Pipeline`}),(0,H.jsxs)(`dd`,{children:[e.pipelineName,` · `,e.pipelineVersion]})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`dt`,{children:`Started`}),(0,H.jsx)(`dd`,{children:(0,H.jsx)(Ln,{value:e.startedAt})})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`dt`,{children:`Updated`}),(0,H.jsx)(`dd`,{children:(0,H.jsx)(Ln,{value:e.updatedAt})})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`dt`,{children:`Mode`}),(0,H.jsx)(`dd`,{children:e.executionMode})]})]})]}),(0,H.jsx)(b,{className:X.stageRail,emptyLabel:`No stage detail was synchronized for this execution.`,heading:`Execution path`,stages:e.stages}),(0,H.jsx)(In,{heading:`People`,meta:`Provider identities that operated or approved this run`,children:(0,H.jsxs)(`div`,{className:X.peopleLanes,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`small`,{children:`Operators`}),(0,H.jsx)(`strong`,{children:e.operators.join(` · `)||`Not synchronized`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`small`,{children:`Approvers`}),(0,H.jsx)(`strong`,{children:e.approvers.join(` · `)||`No approval recorded`})]})]})}),(0,H.jsxs)(In,{heading:`Actions`,meta:`${e.actionCountLabel} actions · ${String(e.pagesRead)} bounded pages read`,children:[e.actionsTruncated?(0,H.jsx)(`p`,{className:X.partial,children:`This is a bounded view. Additional action detail exists in CodePipeline.`}):null,e.actions.length===0?(0,H.jsx)(E,{tone:`secondary`,children:`No action detail was synchronized for this execution.`}):(0,H.jsx)(`ol`,{className:X.actions,children:e.actions.map(e=>(0,H.jsxs)(`li`,{"data-tone":e.tone,children:[(0,H.jsxs)(`header`,{children:[(0,H.jsxs)(`span`,{children:[(0,H.jsx)(`small`,{children:e.stageName}),(0,H.jsx)(`strong`,{children:e.name})]}),(0,H.jsx)(l,{label:e.status,tone:e.tone})]}),(0,H.jsxs)(`dl`,{children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`dt`,{children:`Provider`}),(0,H.jsx)(`dd`,{children:e.provider})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`dt`,{children:`Duration`}),(0,H.jsx)(`dd`,{children:e.duration})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`dt`,{children:`Actor`}),(0,H.jsx)(`dd`,{children:e.actor??`Not synchronized`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`dt`,{children:`Region`}),(0,H.jsx)(`dd`,{children:e.region??`Not synchronized`})]})]}),e.summary===null?null:(0,H.jsx)(`p`,{children:e.summary}),e.error===null?null:(0,H.jsx)(`p`,{className:X.error,children:e.error}),e.artifacts.length===0?null:(0,H.jsx)(`ul`,{className:X.artifacts,children:e.artifacts.map((e,t)=>(0,H.jsxs)(`li`,{children:[(0,H.jsx)(`span`,{children:e.direction}),(0,H.jsx)(`strong`,{children:e.name}),(0,H.jsx)(`small`,{children:e.accessLabel})]},`${e.direction}-${e.name}-${String(t)}`))})]},e.id))})]}),(0,H.jsx)(In,{heading:`Source artifacts`,meta:`Metadata only; content stays behind the authenticated proxy`,children:e.sourceArtifacts.length===0?(0,H.jsx)(E,{tone:`secondary`,children:`No source artifact metadata was synchronized.`}):(0,H.jsx)(`ul`,{className:X.sourceArtifacts,children:e.sourceArtifacts.map(e=>(0,H.jsxs)(`li`,{children:[(0,H.jsxs)(`span`,{children:[(0,H.jsx)(`strong`,{children:e.name}),(0,H.jsx)(`code`,{children:e.revision})]}),(0,H.jsxs)(`span`,{children:[e.summary??`No summary`,(0,H.jsx)(`small`,{children:e.accessLabel})]})]},`${e.name}-${e.revision}`))})}),(0,H.jsxs)(In,{heading:`Delivery evidence`,meta:`Current accepted relationships around this exact run`,children:[(0,H.jsxs)(`dl`,{className:X.deliveryCounts,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`dt`,{children:`Releases`}),(0,H.jsx)(`dd`,{children:e.releaseCountLabel})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`dt`,{children:`Pull requests`}),(0,H.jsx)(`dd`,{children:e.pullRequestCountLabel})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`dt`,{children:`Runbooks`}),(0,H.jsx)(`dd`,{children:e.runbookCountLabel})]})]}),(0,H.jsx)(E,{tone:`secondary`,children:`Use the delivery relationships below to open each connected object and inspect its evidence.`})]})]}),zn=e=>j.check(M(),N(),F(e),ve(/^[A-Za-z0-9][A-Za-z0-9._:/-]*$/u)),Bn=le([`review`,`security`,`tests`,`explain`]);ke({id:zn(128),name:j.check(M(),N(),F(200)),kind:Bn,provider:zn(128),harness:zn(128),model:j.check(M(),N(),F(200)),skillIds:re(zn(256)).check(F(24),Oe())}),ke({namespace:zn(128),subjectId:j.check(M(),N(),F(1024)),revisionId:j.check(M(),N(),F(1024)),baseRevision:ae(j.check(M(),N(),F(1024))),headRevision:j.check(M(),N(),F(1024))});var Vn=e=>JSON.stringify([e.namespace,e.subjectId,e.revisionId,e.baseRevision,e.headRevision]),Hn=(e,t)=>Vn(e)===Vn(t),Un=s(()=>import(`./pullRequestReviewThreadReplay-CpPdYxQE.js`),__vite__mapDeps([0,1,2,3,4])),Z=Un.then(({generatedClientPullRequestReviewTransport:e})=>e),Wn=e=>O(e,`RateLimitedApiError`),Gn=e=>{if(!Wn(e))return P(ye(1));let t=e.retryAt;return t===null?P(ye(2)):De(me,e=>P(Ce(Math.max(0,ue(t)-ue(e)))))},Kn=e=>{let t=[];for(let n of e.providers){let e=n.models[0];n.health===`available`&&n.capabilities.includes(`pr-review`)&&n.reviewProfile!==void 0&&e!==void 0&&t.push({providerId:n.providerId,model:e,reviewProfile:n.reviewProfile,...n.displayName!==void 0&&{displayName:n.displayName}})}return t},qn={enqueue:(...e)=>Z.then(t=>t.enqueue(...e)),cancel:(...e)=>Z.then(t=>t.cancel(...e)),extendBudget:(...e)=>Z.then(t=>t.extendBudget(...e)),load:(...e)=>Z.then(t=>t.load(...e)),loadThread:(...e)=>Z.then(t=>t.loadThread(...e)),previewPublication:(...e)=>Z.then(t=>t.previewPublication(...e)),providers:(...e)=>Z.then(t=>t.providers(...e)),publishSuggestion:(...e)=>Z.then(t=>t.publishSuggestion(...e)),targetSuggestion:(...e)=>Z.then(t=>t.targetSuggestion(...e))},Q=(e,t)=>Hn(qe(e),qe(t)),Jn=(e,t,n,r,i)=>{e.catch(e=>{t.aborted||r.current===null||!Q(r.current,n)||(fe(be(`Pull-request review history boundary failed`,e)),i(e=>e._tag===`ready`&&Q(e,n)?{...e,historyAction:`failed`}:e))})},Yn=(e,t,n,r,i,a)=>{t.aborted||r.current===null||!Q(r.current,n)||a(t=>t._tag===`ready`&&Q(t,n)?{...t,thread:i.current??e}:t)},Xn=(e,t)=>e._tag===`unavailable`||e.subject.baseRevision===t.baseRevision&&e.subject.headRevision===t.headRevision,Zn=(e,t,n,r,i,a,o=qn)=>{let[s,c]=(0,L.useState)(0),[l,u]=(0,L.useState)({_tag:`idle`}),[d,f]=(0,L.useState)({_tag:`idle`}),p=(0,L.useRef)(null),m=(0,L.useRef)(null),h=(0,L.useRef)(null),g=(0,L.useRef)(null),_=(0,L.useRef)(null),v=(0,L.useRef)(null),y=(0,L.useMemo)(()=>r===null||n===null?null:{baseRevision:t,entityId:e,headRevision:n,sessionKey:r},[t,e,n,r]);(0,L.useLayoutEffect)(()=>{_.current=y},[y]),(0,L.useLayoutEffect)(()=>{v.current=null},[e,r]),(0,L.useEffect)(()=>{if(r===null||n===null){u({_tag:`idle`});return}let s={baseRevision:t,entityId:e,headRevision:n,sessionKey:r},l=v.current??void 0,d=new AbortController,f=(e,t)=>g.current!==null&&Q(g.current,s)?!1:(g.current=s,fe(_e(e,t)),D(Gn(t),{signal:d.signal}).then(()=>{d.signal.aborted||c(e=>e+1)},e=>{d.signal.aborted||u({_tag:`failed`,...s})}),!0);return u(e=>e._tag===`ready`&&Q(e,s)?e:{_tag:`loading`,...s}),Un.then(({loadPullRequestReviewSnapshot:t})=>t(o,e,i,d.signal,l,v)).then(({catalog:e,catalogNeedsRetry:t,review:n,thread:r})=>{if(!d.signal.aborted){t||(g.current=null);let i=Kn(e);u(Xn(n,s)?{_tag:`ready`,...s,action:`idle`,historyAction:`idle`,provider:i[0]??null,providerPresets:i,review:n,thread:r}:{_tag:`failed`,...s}),t&&f(`Pull-request review provider catalog unavailable; retrying once`)}},e=>{if(!d.signal.aborted){if(I(e)){a(r),u({_tag:`failed`,...s});return}et(e)&&f(`Pull-request review snapshot load failed; retrying once`,e)||u({_tag:`failed`,...s})}}),()=>d.abort()},[t,i,e,n,a,s,r,o]),(0,L.useEffect)(()=>{if(l._tag!==`ready`||l.review._tag!==`pending`)return;let e=new AbortController;return D(P(`2 seconds`),{signal:e.signal}).then(()=>{e.signal.aborted||c(e=>e+1)},t=>{e.signal.aborted||u({_tag:`failed`,baseRevision:l.baseRevision,entityId:l.entityId,headRevision:l.headRevision,sessionKey:l.sessionKey})}),()=>e.abort()},[l]),(0,L.useEffect)(()=>()=>{p.current?.abort(),m.current?.abort(),h.current?.abort()},[]),(0,L.useEffect)(()=>{p.current?.abort(),p.current=null,m.current?.abort(),m.current=null,h.current?.abort(),h.current=null,f({_tag:`idle`})},[e,r]),(0,L.useLayoutEffect)(()=>{m.current?.abort(),m.current=null,f(e=>e._tag===`publishing`?e:{_tag:`idle`})},[t,n]);let b=(0,L.useCallback)((e,t)=>{let n=v.current??void 0;Un.then(({refreshPullRequestReviewThread:r})=>r(o,e.entityId,t,n,v)).then(n=>{Yn(n,t,e,_,v,u)},()=>void 0)},[o]),x=(0,L.useCallback)(()=>{if(l._tag!==`ready`||l.historyAction===`loading`||l.thread===void 0||!l.thread.hasEarlier)return;let e=l,t=l.thread;p.current?.abort();let n=new AbortController;p.current=n,u({...e,historyAction:`loading`}),Jn(Un.then(({loadEarlierPullRequestReviewThreadIntoState:r})=>r(o,e,t,n.signal,_,v,a,u)),n.signal,e,_,u)},[a,l,o]),S=(0,L.useCallback)((t,n)=>{if(l._tag!==`ready`||l.review._tag===`unavailable`)return;let r=n===void 0?l.provider:l.providerPresets?.find(e=>e.providerId===n)??null;if(r===null)return;let i=l;m.current?.abort();let s=new AbortController;m.current=s,u({...i,action:`starting`}),o.enqueue(e,r,t,s.signal).then(e=>{s.signal.aborted||u(t=>t._tag===`ready`&&Q(t,i)&&Xn(e,i)?{...t,action:`idle`,review:e}:t._tag===`ready`&&Q(t,i)?{_tag:`failed`,baseRevision:i.baseRevision,entityId:i.entityId,headRevision:i.headRevision,sessionKey:i.sessionKey}:t)},e=>{s.signal.aborted||(I(e)&&a(i.sessionKey),u(e=>e._tag===`ready`&&Q(e,i)?{...e,action:`failed`}:e))})},[e,a,l,o]),C=(0,L.useCallback)(e=>{if(l._tag!==`ready`)return;let t=l.review;if(t._tag!==`pending`)return;let n=l;m.current?.abort();let r=new AbortController;m.current=r,e(t.jobId,r.signal).then(e=>{r.signal.aborted||u(t=>t._tag===`ready`&&Q(t,n)&&Xn(e,n)?{...t,review:e}:t)},e=>{r.signal.aborted||I(e)&&a(n.sessionKey)})},[a,l]),w=(0,L.useCallback)(t=>{if(l._tag!==`ready`||l.review._tag!==`completed`||l.review.jobId!==t.jobId||!l.review.report.suggestions.some(({suggestionId:e})=>e===t.suggestionId))return;let n=l;m.current?.abort();let r=new AbortController;m.current=r,f({_tag:`previewing`,selection:t}),o.previewPublication(e,t,r.signal).then(e=>{r.signal.aborted||f(e.subject.headRevision===n.headRevision?{_tag:`preview`,preview:e}:{_tag:`failed`,preview:null,selection:t})},e=>{r.signal.aborted||(I(e)&&a(n.sessionKey),f({_tag:`failed`,preview:null,selection:t}))})},[e,a,l,o]),T=(0,L.useCallback)(t=>{if(l._tag!==`ready`)return;let n=d._tag===`preview`||d._tag===`failed`?d.preview:null;if(n===null)return;let r=l,i={jobId:n.jobId,suggestionId:n.suggestionId,revisionId:n.revisionId};h.current?.abort();let s=new AbortController;h.current=s,f({_tag:`publishing`,preview:n}),o.publishSuggestion(e,i,t,n.authorityBinding,s.signal).then(e=>{if(s.signal.aborted)return;let t=e.suggestionRevision.reviewedHead===n.suggestionRevision.reviewedHead;t&&u(t=>t._tag===`ready`&&t.review._tag===`completed`&&t.review.jobId===e.jobId?{...t,review:{...t.review,report:{...t.review.report,suggestions:t.review.report.suggestions.map(t=>t.suggestionId===e.suggestionId?{...t,state:`published`}:t)}}}:t),f(t?{_tag:`published`,headSuperseded:_.current===null||e.subject.baseRevision!==_.current.baseRevision||e.subject.headRevision!==_.current.headRevision,preview:n,publication:e}:{_tag:`receipt-conflict`,preview:n,publication:e});let i=_.current;i!==null&&i.entityId===r.entityId&&i.sessionKey===r.sessionKey&&b(i,s.signal)},e=>{s.signal.aborted||(I(e)&&a(r.sessionKey),f({_tag:`failed`,preview:n,selection:i}))})},[e,a,d,b,l,o]),ee=(0,L.useCallback)(t=>{if(l._tag!==`ready`||l.review._tag!==`completed`||l.review.jobId!==t.jobId||l.provider===null||!l.review.report.suggestions.some(({suggestionId:e})=>e===t.suggestionId)||o.targetSuggestion===void 0)return;let n=l;m.current?.abort();let r=new AbortController;m.current=r,u({...n,action:`starting`}),o.targetSuggestion(e,t,l.provider,r.signal).then(e=>{r.signal.aborted||u(t=>t._tag===`ready`&&Q(t,n)&&Xn(e,n)?{...t,action:`idle`,review:e}:t)},e=>{r.signal.aborted||(I(e)&&a(n.sessionKey),u(e=>e._tag===`ready`&&Q(e,n)?{...e,action:`failed`}:e))})},[e,a,l,o]),te=y===null?{_tag:`idle`}:l._tag!==`idle`&&Q(l,y)?l:{_tag:`loading`,...y};return{cancel:(0,L.useCallback)(()=>{o.cancel!==void 0&&C((t,n)=>o.cancel(e,t,n))},[e,C,o]),cancelPublication:(0,L.useCallback)(()=>{m.current?.abort(),m.current=null,h.current?.abort(),h.current=null,f({_tag:`idle`})},[]),extendBudget:(0,L.useCallback)(()=>{o.extendBudget!==void 0&&C((t,n)=>o.extendBudget(e,t,n))},[e,C,o]),loadEarlier:x,previewPublication:w,publication:d,publishSuggestion:T,targetSuggestion:ee,retry:(0,L.useCallback)(()=>{g.current=null,c(e=>e+1)},[]),start:S,state:te}},Qn=(0,L.lazy)(()=>s(()=>import(`./WorkspacePullRequestDetails-Dxg8argO.js`).then(e=>({default:e.WorkspacePullRequestDetails})),__vite__mapDeps([5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,1,2,22,23,24,25,26]))),$n=(e,t)=>{let n=e.split(/[?#]/u,1)[0]??``;return n===Re(t)?`Back to items`:n.includes(`/releases/`)?`Back to release`:n.endsWith(`/work`)?`Back to active work`:n.endsWith(`/timeline`)?`Back to timeline`:`Back to workspace`},er=({action:e,description:t,title:n,tone:r=`neutral`})=>{let i=(0,L.useRef)(null);return(0,L.useEffect)(()=>i.current?.focus(),[]),(0,H.jsx)(`section`,{className:B.state,"data-workspace-entity-state":r,ref:i,tabIndex:-1,children:(0,H.jsx)(f,{action:e,description:t,title:n,tone:r})})},tr=()=>(0,H.jsxs)(`section`,{"aria-label":`Loading canonical entity`,className:B.loading,children:[(0,H.jsx)(u,{decorative:!1,height:`12rem`,label:`Loading canonical entity`,variant:`block`}),(0,H.jsxs)(`div`,{className:B.loadingColumns,children:[(0,H.jsx)(u,{height:`20rem`,variant:`block`}),(0,H.jsx)(u,{height:`20rem`,variant:`block`})]})]}),nr=({action:e})=>e.href===null?(0,H.jsx)(d,{disabled:!0,size:`principal`,stretch:!0,variant:`primary`,children:e.label}):e.external?(0,H.jsx)(`a`,{className:B.principalAction,href:e.href,rel:`noreferrer`,target:`_blank`,children:e.label}):(0,H.jsx)(o,{className:B.principalAction,to:e.href,children:e.label}),rr=(e,t)=>{if(e===null)return null;let n=URL.parse(e);if(n===null||n.protocol!==`https:`)return null;let r=/^\/wiki\/spaces\/([^/]+)\/pages\/([^/]+)(?:\/|$)/u.exec(n.pathname);return r?.[1]===void 0||r[2]!==encodeURIComponent(t)?null:(n.pathname=`/wiki/spaces/${r[1]}/pages/edit-v2/${encodeURIComponent(t)}`,n.search=``,n.hash=``,n.href)},ir=({onConfluenceSynchronize:e,presentation:t,synchronizationState:n})=>{let r=t.confluencePage===null?null:rr(t.primaryAction.href,t.displayKey);return(0,H.jsxs)(`div`,{className:B.entityActions,children:[(0,H.jsx)(nr,{action:t.primaryAction}),r===null?null:(0,H.jsx)(`a`,{className:B.secondaryAction,href:r,rel:`noreferrer`,target:`_blank`,children:`Edit in Confluence`}),t.confluencePage===null||n===null?null:(0,H.jsxs)(`div`,{className:B.pageSynchronization,children:[(0,H.jsx)(d,{disabled:n===`syncing`,loading:n===`syncing`,onClick:e,variant:`secondary`,children:`Sync now`}),(0,H.jsx)(E,{tone:`secondary`,variant:`meta`,children:n===`failed`?`Sync failed. Try again.`:n===`synchronized`?`Up to date · live sync every 15 seconds while visible`:`Live sync every 15 seconds while visible`})]})]})},ar=({presentation:e})=>(0,H.jsxs)(`section`,{"aria-labelledby":`workspace-entity-path`,className:B.deliveryPath,children:[(0,H.jsxs)(`div`,{className:B.sectionHeading,children:[(0,H.jsx)(E,{as:`h2`,id:`workspace-entity-path`,variant:`section-title`,children:`Delivery path`}),(0,H.jsx)(E,{tone:`secondary`,variant:`meta`,children:`Where this work lives`})]}),(0,H.jsxs)(`div`,{className:B.pathRail,children:[(0,H.jsxs)(`div`,{className:B.pathNode,children:[(0,H.jsx)(ee,{service:e.service,size:`compact`}),(0,H.jsxs)(`span`,{children:[(0,H.jsx)(`strong`,{children:e.serviceName}),(0,H.jsx)(`code`,{children:e.displayKey})]})]}),e.releases.length===0?(0,H.jsx)(`div`,{className:B.pathEmpty,children:`No release membership yet`}):(0,H.jsx)(`ol`,{className:B.releasePath,children:e.releases.map(e=>(0,H.jsx)(`li`,{children:(0,H.jsx)(o,{to:e.href,children:e.label})},e.id))})]}),(0,H.jsx)(E,{tone:`secondary`,children:e.contentSummary})]}),or=({presentation:e})=>(0,H.jsxs)(`section`,{"aria-labelledby":`workspace-entity-facts`,className:B.facts,children:[(0,H.jsx)(E,{as:`h2`,id:`workspace-entity-facts`,variant:`card-title`,children:`At a glance`}),(0,H.jsx)(`dl`,{children:e.facts.map(e=>(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`dt`,{children:e.label}),(0,H.jsx)(`dd`,{children:e.value})]},e.label))})]}),sr=({presentation:e})=>(0,H.jsxs)(`section`,{"aria-labelledby":`workspace-entity-evidence`,className:B.evidence,children:[(0,H.jsx)(E,{as:`h2`,id:`workspace-entity-evidence`,variant:`card-title`,children:`Provenance`}),(0,H.jsx)(w,{freshness:e.evidence.freshness,freshnessDateTime:e.evidence.freshnessDateTime,freshnessTime:e.evidence.freshnessTime,reference:e.evidence.reference,service:e.service}),(0,H.jsxs)(E,{tone:`secondary`,variant:`meta`,children:[e.evidence.itemCount,` evidence item`,e.evidence.itemCount===1?``:`s`,` ·`,` `,e.evidence.claimCount,` claim`,e.evidence.claimCount===1?``:`s`]})]}),cr=({presentation:e})=>{let[t,n]=(0,L.useState)(e.collaborators.expandedCategories);return(0,H.jsx)(`div`,{className:B.workingCircle,children:(0,H.jsx)(x,{approvers:e.collaborators.approvers,authors:e.collaborators.authors,emptyLabel:e.collaborators.emptyLabel,expandedCategories:t,heading:`Working circle`,limit:3,onCategoryExpandedChange:(e,t)=>{n(n=>t?[...new Set([...n,e])]:n.filter(t=>t!==e))},operators:e.collaborators.operators,owners:e.collaborators.owners,reviewers:e.collaborators.reviewers,size:`compact`})})},lr=({presentation:e})=>e.relationships.length<=4?(0,H.jsx)(g,{emptyLabel:e.relationshipEmptyLabel,heading:`Delivery relationships`,relationships:e.relationships}):(0,H.jsx)(y,{emptyLabel:e.relationshipEmptyLabel,heading:`Delivery relationships`,relationships:e.relationships}),ur=({presentation:e})=>(0,H.jsxs)(`section`,{"aria-labelledby":`workspace-entity-activity`,className:B.activity,children:[(0,H.jsxs)(`div`,{className:B.sectionHeading,children:[(0,H.jsx)(E,{as:`h2`,id:`workspace-entity-activity`,variant:`section-title`,children:`Activity`}),(0,H.jsx)(E,{tone:`secondary`,variant:`meta`,children:`Quiet, attributable history`})]}),e.activity.length===0?(0,H.jsx)(E,{tone:`secondary`,children:e.activityEmptyLabel}):(0,H.jsx)(`ol`,{className:B.timeline,children:e.activity.map((t,n)=>(0,H.jsx)(T,{continued:n<e.activity.length-1,event:t},t.id))})]}),dr=e=>{switch(e.reason){case`refreshing`:return`Refreshing from the connected service. The last complete inspection remains visible.`;case`refresh-failed`:return`The latest refresh failed. The last complete inspection remains visible and may be out of date.`;case`source-stale`:return`The connected service reported stale source data. Confirm current state before acting.`}},fr=({clockifyActionCanApprove:e,clockifyActionCanCorrect:t,clockifyActionState:n,clockifyActionSubmit:r,confluenceEditor:i,onSessionExpired:a,presentation:o,retry:s,reviewCanEnqueue:c,reviewCancel:l,reviewExtendBudget:p,reviewLoadEarlier:m,reviewPublication:h,reviewPublicationCancel:g,reviewPublicationPreview:_,reviewRetry:v,reviewStart:y,reviewState:b,reviewSuggestionPublish:x,reviewSuggestionRevisionTransport:S,reviewTargetSuggestion:C,sessionKey:w,stale:T})=>(0,H.jsxs)(`div`,{className:B.content,children:[T===null?null:(0,H.jsx)(f,{action:T.reason===`refreshing`?void 0:(0,H.jsx)(d,{onClick:s,children:`Retry refresh`}),announce:T.reason===`refresh-failed`?`polite`:`off`,description:dr(T),title:T.reason===`refreshing`?`Refreshing source`:`Showing retained source data`,tone:`caution`}),o.partialMessages.map(e=>(0,H.jsx)(f,{description:e,title:`Partial canonical view`,tone:`caution`},e)),o.clockifyTimeEntry===null?null:(0,H.jsx)(Qt,{canApprove:e,canCorrect:t,onSubmit:r,submission:n,timeEntry:o.clockifyTimeEntry}),o.issue===null?null:(0,H.jsx)(Fn,{issue:o.issue}),o.confluencePage===null?null:(0,H.jsx)(Nn,{editor:i,page:o.confluencePage}),o.pipelineExecution===null?null:(0,H.jsx)(Rn,{pipeline:o.pipelineExecution}),o.pullRequest===null?null:(0,H.jsx)(L.Suspense,{fallback:(0,H.jsx)(u,{decorative:!1,height:`20rem`,label:`Loading pull request`,variant:`block`}),children:(0,H.jsx)(Qn,{approvers:o.collaborators.approvers,onSessionExpired:a,onReviewCancel:l,onReviewExtendBudget:p,onReviewLoadEarlier:m,onReviewPublicationCancel:g,onReviewPublicationPreview:_,onReviewRetry:v,onReviewSuggestionPublish:x,onReviewTargetSuggestion:C,onReviewStart:y,pullRequest:o.pullRequest,reviewCanEnqueue:c,reviewPublication:h,...S===void 0?{}:{reviewSuggestionRevisionTransport:S},reviewState:b,reviewers:o.collaborators.reviewers,sessionKey:w})}),(0,H.jsx)(ar,{presentation:o})]}),pr=e=>void 0,$=()=>void 0,mr=({clockifyActionCanApprove:e=!1,clockifyActionCanCorrect:t=!1,clockifyActionState:n={_tag:`idle`},clockifyActionSubmit:r=$,confluenceCanEdit:i=!1,confluenceSynchronizationState:a=null,onAskAgent:s,onConfluenceSaved:c,onConfluenceSynchronize:l=$,onSessionExpired:u=pr,originHref:f,originLabel:p,originState:h,retry:g,reviewCanEnqueue:_=!1,reviewCancel:v=$,reviewExtendBudget:y=$,reviewLoadEarlier:b=$,reviewPublication:x={_tag:`idle`},reviewPublicationCancel:w=$,reviewPublicationPreview:T=$,reviewRetry:ee=$,reviewStart:te=$,reviewState:E={_tag:`idle`},reviewSuggestionPublish:ne=$,reviewSuggestionRevisionTransport:D,reviewTargetSuggestion:re=$,sessionKey:O=null,state:k,workspaceId:ie})=>{let ae=(0,L.useRef)(null),oe=k._tag===`ready`||k._tag===`stale`?k.inspection.entity.projection.entityId:k._tag;if((0,L.useEffect)(()=>ae.current?.focus(),[oe]),k._tag===`idle`)return(0,H.jsx)(er,{action:(0,H.jsx)(o,{state:h,to:f,children:p}),description:`A readable workspace session is required before this object can be loaded.`,title:`Entity unavailable`});if(k._tag===`loading`)return(0,H.jsx)(tr,{});if(k._tag===`not-found`)return(0,H.jsx)(er,{action:(0,H.jsx)(o,{state:h,to:f,children:p}),description:`This object is not in this workspace. It may have been deleted, disconnected, or the address may be wrong.`,title:`Object not found`});if(k._tag===`failed`)return(0,H.jsx)(er,{action:(0,H.jsx)(d,{onClick:g,children:`Retry entity`}),description:`The canonical object could not be loaded. Your current workspace location is preserved.`,title:`Could not load object`,tone:`critical`});let A=Xt(ie,k.inspection),se=k._tag===`ready`&&k.inspection.isSourceCurrent&&k.inspection.sourceActionsAvailable,ce=c??g;return(0,H.jsx)(m,{component:Ze,children:(0,H.jsx)(S,{actions:(0,H.jsx)(ir,{onConfluenceSynchronize:l,presentation:A,synchronizationState:a}),activity:(0,H.jsx)(ur,{presentation:A}),agentEntry:(0,H.jsx)(C,{actionLabel:A.confluencePage===null?`Ask about this object`:`Draft with Relay`,agentName:`Relay`,context:A.agentContext,onClick:s}),collaborators:(0,H.jsx)(cr,{presentation:A},k.inspection.entity.projection.entityId),className:B.shell,content:(0,H.jsx)(fr,{clockifyActionCanApprove:se&&e,clockifyActionCanCorrect:se&&t,clockifyActionState:n,clockifyActionSubmit:r,confluenceEditor:{canEdit:i&&k._tag===`ready`&&k.inspection.isSourceCurrent&&k.inspection.sourceActionsAvailable,entityId:k.inspection.entity.projection.entityId,onAskAgent:s,onSaved:ce,releaseId:k.inspection.entity.canonicalReleaseId,title:A.title},onSessionExpired:u,presentation:A,reviewCanEnqueue:_,reviewCancel:v,reviewExtendBudget:y,reviewPublication:x,reviewPublicationCancel:w,reviewLoadEarlier:b,reviewPublicationPreview:T,reviewRetry:ee,...D===void 0?{}:{reviewSuggestionRevisionTransport:D},reviewSuggestionPublish:ne,reviewTargetSuggestion:re,reviewStart:te,reviewState:E,retry:g,sessionKey:O,stale:k._tag===`stale`?k:null}),"data-service":A.service,"data-workspace-entity-id":k.inspection.entity.projection.entityId,evidence:(0,H.jsx)(sr,{presentation:A}),facts:(0,H.jsx)(or,{presentation:A}),freshness:A.freshness,freshnessDateTime:A.freshnessDateTime,freshnessTime:A.freshnessTime,navigation:(0,H.jsx)(o,{className:B.back,state:h,to:f,children:p}),reason:`${A.displayKey} is ${A.verdict.toLocaleLowerCase(`en-US`)} in ${A.serviceName}.`,ref:ae,relationships:(0,H.jsx)(lr,{presentation:A}),service:A.service,tabIndex:-1,title:A.title,tone:A.tone,verdict:A.verdict})})},hr=({entityId:e,workspaceId:t})=>{let a=n(),o=p(),s=i(),c=r(),l=a.controller.state._tag===`ready`?a.controller.state.portfolio.generatedAt:`pending`,u=h(o.state),d=Ne(t,e,l,u,o.invalidateSession),f=(d.state._tag===`ready`||d.state._tag===`stale`)&&d.state.inspection.entity.projection.details._tag===`page`?d.state.inspection.source.pluginConnectionId:null,m=f!==null&&(d.state._tag===`ready`||d.state._tag===`stale`)&&d.state.inspection.sourceSynchronizationAvailable&&o.state._tag===`authenticated`&&o.state.session.permission===`workspace-owner`,g=f!==null&&(d.state._tag===`ready`||d.state._tag===`stale`)?ue(d.state.inspection.source.synchronizedAt):null,_=(0,L.useCallback)(async t=>{if(f===null)return null;let n=await Pe.load(e,t);return n.entity.projection.entityId===e&&n.source.pluginConnectionId===f?ue(n.source.synchronizedAt):null},[f,e]),v=xn({enabled:m,onSessionExpired:o.invalidateSession,onSynchronized:d.retry,pluginConnectionId:f,readSynchronizationRevision:_,sessionKey:u,synchronizationRevision:g}),y=en(e,u,o.invalidateSession,d.retry),b=o.state._tag===`authenticated`&&o.state.session.permission===`workspace-owner`,x=(d.state._tag===`ready`||d.state._tag===`stale`)&&d.state.inspection.entity.projection.details._tag===`pull-request`?{baseRevision:d.state.inspection.entity.projection.details.baseRevision??null,headRevision:d.state.inspection.entity.projection.details.headRevision}:null,S=Zn(e,x?.baseRevision??null,x?.headRevision??null,u,b,o.invalidateSession),C=Be(s.state,t,e),w=Ve(C.origin),T=d.state._tag===`ready`||d.state._tag===`stale`?d.state.inspection.entity:{canonicalReleaseId:null,releaseIds:[],releaseMembershipsTruncated:!1},ee=new Set(a.controller.state._tag===`ready`?a.controller.state.portfolio.releases.map(({id:e})=>e):[]),te=ze(C.origin,t,s,T,ee);return(0,H.jsx)(mr,{clockifyActionCanApprove:o.state._tag===`authenticated`&&(o.state.session.permission===`workspace-owner`||o.state.session.permission===`workspace-approver`),clockifyActionCanCorrect:o.state._tag===`authenticated`&&o.state.session.permission===`workspace-owner`,clockifyActionState:y.state,clockifyActionSubmit:y.submit,confluenceCanEdit:o.state._tag===`authenticated`&&o.state.session.permission===`workspace-owner`,confluenceSynchronizationState:m?v.state:null,onAskAgent:()=>c(te,{state:s.state}),onConfluenceSaved:v.synchronizeAfterMutation,onConfluenceSynchronize:v.synchronizeNow,onSessionExpired:o.invalidateSession,originHref:w,originLabel:$n(w,t),originState:C.origin.state,retry:d.retry,reviewCanEnqueue:b,reviewCancel:S.cancel,reviewExtendBudget:S.extendBudget,reviewPublication:S.publication,reviewPublicationCancel:S.cancelPublication,reviewLoadEarlier:S.loadEarlier,reviewPublicationPreview:S.previewPublication,reviewRetry:S.retry,reviewSuggestionPublish:S.publishSuggestion,reviewTargetSuggestion:S.targetSuggestion,reviewStart:S.start,reviewState:S.state,state:d.state,sessionKey:u,workspaceId:t})},gr=()=>{let e=n(),t=a(),r=He(t.entityId);return r===null?(0,H.jsx)(er,{action:(0,H.jsx)(o,{to:Re(e.workspaceId),children:`Back to items`}),description:`The object address is not a canonical entity identifier.`,title:`Object not found`}):(0,H.jsx)(hr,{entityId:r,workspaceId:e.workspaceId})};export{gr as WorkspaceEntityRoute,mr as WorkspaceEntityView,rr as confluenceEditHref};
14
- //# sourceMappingURL=WorkspaceEntityRoute-rLRiaF8b.js.map