@ai-development-environment/server 0.0.56 → 0.0.57

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 (240) hide show
  1. package/package.json +1 -1
  2. package/standalone/.next/BUILD_ID +1 -1
  3. package/standalone/.next/app-path-routes-manifest.json +2 -0
  4. package/standalone/.next/build-manifest.json +3 -3
  5. package/standalone/.next/prerender-manifest.json +3 -3
  6. package/standalone/.next/routes-manifest.json +18 -0
  7. package/standalone/.next/server/app/[locale]/actions/page.js.nft.json +1 -1
  8. package/standalone/.next/server/app/[locale]/actions/page_client-reference-manifest.js +1 -1
  9. package/standalone/.next/server/app/[locale]/actions-cache/page.js.nft.json +1 -1
  10. package/standalone/.next/server/app/[locale]/actions-cache/page_client-reference-manifest.js +1 -1
  11. package/standalone/.next/server/app/[locale]/agents/[id]/page.js.nft.json +1 -1
  12. package/standalone/.next/server/app/[locale]/agents/[id]/page_client-reference-manifest.js +1 -1
  13. package/standalone/.next/server/app/[locale]/agents/page.js.nft.json +1 -1
  14. package/standalone/.next/server/app/[locale]/agents/page_client-reference-manifest.js +1 -1
  15. package/standalone/.next/server/app/[locale]/analytics-events/page.js.nft.json +1 -1
  16. package/standalone/.next/server/app/[locale]/analytics-events/page_client-reference-manifest.js +1 -1
  17. package/standalone/.next/server/app/[locale]/build-data/page.js.nft.json +1 -1
  18. package/standalone/.next/server/app/[locale]/build-data/page_client-reference-manifest.js +1 -1
  19. package/standalone/.next/server/app/[locale]/builds/[buildId]/coverage/page.js.nft.json +1 -1
  20. package/standalone/.next/server/app/[locale]/builds/[buildId]/coverage/page_client-reference-manifest.js +1 -1
  21. package/standalone/.next/server/app/[locale]/builds/[buildId]/output/route/app-paths-manifest.json +3 -0
  22. package/standalone/.next/server/app/[locale]/builds/[buildId]/output/route/build-manifest.json +9 -0
  23. package/standalone/.next/server/app/[locale]/builds/[buildId]/output/route/server-reference-manifest.json +4 -0
  24. package/standalone/.next/server/app/[locale]/builds/[buildId]/output/route.js +12 -0
  25. package/standalone/.next/server/app/[locale]/builds/[buildId]/output/route.js.map +5 -0
  26. package/standalone/.next/server/app/[locale]/builds/[buildId]/output/route.js.nft.json +1 -0
  27. package/standalone/.next/server/app/[locale]/builds/[buildId]/output/route_client-reference-manifest.js +3 -0
  28. package/standalone/.next/server/app/[locale]/builds/[buildId]/page.js.nft.json +1 -1
  29. package/standalone/.next/server/app/[locale]/builds/[buildId]/page_client-reference-manifest.js +1 -1
  30. package/standalone/.next/server/app/[locale]/builds/page.js.nft.json +1 -1
  31. package/standalone/.next/server/app/[locale]/builds/page_client-reference-manifest.js +1 -1
  32. package/standalone/.next/server/app/[locale]/codebases/[codebaseId]/page.js.nft.json +1 -1
  33. package/standalone/.next/server/app/[locale]/codebases/[codebaseId]/page_client-reference-manifest.js +1 -1
  34. package/standalone/.next/server/app/[locale]/codebases/page.js.nft.json +1 -1
  35. package/standalone/.next/server/app/[locale]/codebases/page_client-reference-manifest.js +1 -1
  36. package/standalone/.next/server/app/[locale]/codebases/repositories/[repositoryId]/page.js.nft.json +1 -1
  37. package/standalone/.next/server/app/[locale]/codebases/repositories/[repositoryId]/page_client-reference-manifest.js +1 -1
  38. package/standalone/.next/server/app/[locale]/commands/[commandId]/edit/page.js.nft.json +1 -1
  39. package/standalone/.next/server/app/[locale]/commands/[commandId]/edit/page_client-reference-manifest.js +1 -1
  40. package/standalone/.next/server/app/[locale]/commands/new/page.js.nft.json +1 -1
  41. package/standalone/.next/server/app/[locale]/commands/new/page_client-reference-manifest.js +1 -1
  42. package/standalone/.next/server/app/[locale]/commands/page.js.nft.json +1 -1
  43. package/standalone/.next/server/app/[locale]/commands/page_client-reference-manifest.js +1 -1
  44. package/standalone/.next/server/app/[locale]/commands/runs/[runId]/output/route/app-paths-manifest.json +3 -0
  45. package/standalone/.next/server/app/[locale]/commands/runs/[runId]/output/route/build-manifest.json +9 -0
  46. package/standalone/.next/server/app/[locale]/commands/runs/[runId]/output/route/server-reference-manifest.json +4 -0
  47. package/standalone/.next/server/app/[locale]/commands/runs/[runId]/output/route.js +12 -0
  48. package/standalone/.next/server/app/[locale]/commands/runs/[runId]/output/route.js.map +5 -0
  49. package/standalone/.next/server/app/[locale]/commands/runs/[runId]/output/route.js.nft.json +1 -0
  50. package/standalone/.next/server/app/[locale]/commands/runs/[runId]/output/route_client-reference-manifest.js +3 -0
  51. package/standalone/.next/server/app/[locale]/commands/runs/[runId]/page.js.nft.json +1 -1
  52. package/standalone/.next/server/app/[locale]/commands/runs/[runId]/page_client-reference-manifest.js +1 -1
  53. package/standalone/.next/server/app/[locale]/comments/page.js.nft.json +1 -1
  54. package/standalone/.next/server/app/[locale]/comments/page_client-reference-manifest.js +1 -1
  55. package/standalone/.next/server/app/[locale]/console-logs/page.js.nft.json +1 -1
  56. package/standalone/.next/server/app/[locale]/console-logs/page_client-reference-manifest.js +1 -1
  57. package/standalone/.next/server/app/[locale]/costs/page.js.nft.json +1 -1
  58. package/standalone/.next/server/app/[locale]/costs/page_client-reference-manifest.js +1 -1
  59. package/standalone/.next/server/app/[locale]/credentials/page.js.nft.json +1 -1
  60. package/standalone/.next/server/app/[locale]/credentials/page_client-reference-manifest.js +1 -1
  61. package/standalone/.next/server/app/[locale]/devices/[id]/page.js.nft.json +1 -1
  62. package/standalone/.next/server/app/[locale]/devices/[id]/page_client-reference-manifest.js +1 -1
  63. package/standalone/.next/server/app/[locale]/devices/enroll/page.js.nft.json +1 -1
  64. package/standalone/.next/server/app/[locale]/devices/enroll/page_client-reference-manifest.js +1 -1
  65. package/standalone/.next/server/app/[locale]/devices/page.js.nft.json +1 -1
  66. package/standalone/.next/server/app/[locale]/devices/page_client-reference-manifest.js +1 -1
  67. package/standalone/.next/server/app/[locale]/drafts/page.js.nft.json +1 -1
  68. package/standalone/.next/server/app/[locale]/drafts/page_client-reference-manifest.js +1 -1
  69. package/standalone/.next/server/app/[locale]/jira/cache/page.js.nft.json +1 -1
  70. package/standalone/.next/server/app/[locale]/jira/cache/page_client-reference-manifest.js +1 -1
  71. package/standalone/.next/server/app/[locale]/jira/cache/tickets/[issueKey]/page.js.nft.json +1 -1
  72. package/standalone/.next/server/app/[locale]/jira/cache/tickets/[issueKey]/page_client-reference-manifest.js +1 -1
  73. package/standalone/.next/server/app/[locale]/jira/tickets/[issueKey]/page.js.nft.json +1 -1
  74. package/standalone/.next/server/app/[locale]/jira/tickets/[issueKey]/page_client-reference-manifest.js +1 -1
  75. package/standalone/.next/server/app/[locale]/jira/tickets/page.js.nft.json +1 -1
  76. package/standalone/.next/server/app/[locale]/jira/tickets/page_client-reference-manifest.js +1 -1
  77. package/standalone/.next/server/app/[locale]/jobs/[jobId]/page.js.nft.json +1 -1
  78. package/standalone/.next/server/app/[locale]/jobs/[jobId]/page_client-reference-manifest.js +1 -1
  79. package/standalone/.next/server/app/[locale]/notifications/page.js.nft.json +1 -1
  80. package/standalone/.next/server/app/[locale]/notifications/page_client-reference-manifest.js +1 -1
  81. package/standalone/.next/server/app/[locale]/page.js.nft.json +1 -1
  82. package/standalone/.next/server/app/[locale]/page_client-reference-manifest.js +1 -1
  83. package/standalone/.next/server/app/[locale]/plans/[runId]/page.js.nft.json +1 -1
  84. package/standalone/.next/server/app/[locale]/plans/[runId]/page_client-reference-manifest.js +1 -1
  85. package/standalone/.next/server/app/[locale]/plans/page.js.nft.json +1 -1
  86. package/standalone/.next/server/app/[locale]/plans/page_client-reference-manifest.js +1 -1
  87. package/standalone/.next/server/app/[locale]/polling/page.js.nft.json +1 -1
  88. package/standalone/.next/server/app/[locale]/polling/page_client-reference-manifest.js +1 -1
  89. package/standalone/.next/server/app/[locale]/provisioning-profiles/[profileId]/page.js.nft.json +1 -1
  90. package/standalone/.next/server/app/[locale]/provisioning-profiles/[profileId]/page_client-reference-manifest.js +1 -1
  91. package/standalone/.next/server/app/[locale]/provisioning-profiles/page.js.nft.json +1 -1
  92. package/standalone/.next/server/app/[locale]/provisioning-profiles/page_client-reference-manifest.js +1 -1
  93. package/standalone/.next/server/app/[locale]/pull-requests/[owner]/[repository]/[number]/page.js.nft.json +1 -1
  94. package/standalone/.next/server/app/[locale]/pull-requests/[owner]/[repository]/[number]/page_client-reference-manifest.js +1 -1
  95. package/standalone/.next/server/app/[locale]/pull-requests/page.js.nft.json +1 -1
  96. package/standalone/.next/server/app/[locale]/pull-requests/page_client-reference-manifest.js +1 -1
  97. package/standalone/.next/server/app/[locale]/push-notifications/page.js.nft.json +1 -1
  98. package/standalone/.next/server/app/[locale]/push-notifications/page_client-reference-manifest.js +1 -1
  99. package/standalone/.next/server/app/[locale]/runs/new/page.js.nft.json +1 -1
  100. package/standalone/.next/server/app/[locale]/runs/new/page_client-reference-manifest.js +1 -1
  101. package/standalone/.next/server/app/[locale]/sessions/[runId]/page.js.nft.json +1 -1
  102. package/standalone/.next/server/app/[locale]/sessions/[runId]/page_client-reference-manifest.js +1 -1
  103. package/standalone/.next/server/app/[locale]/sessions/page.js.nft.json +1 -1
  104. package/standalone/.next/server/app/[locale]/sessions/page_client-reference-manifest.js +1 -1
  105. package/standalone/.next/server/app/[locale]/settings/page.js.nft.json +1 -1
  106. package/standalone/.next/server/app/[locale]/settings/page_client-reference-manifest.js +1 -1
  107. package/standalone/.next/server/app/[locale]/skills/[skillId]/page.js.nft.json +1 -1
  108. package/standalone/.next/server/app/[locale]/skills/[skillId]/page_client-reference-manifest.js +1 -1
  109. package/standalone/.next/server/app/[locale]/skills/groups/[groupId]/page.js.nft.json +1 -1
  110. package/standalone/.next/server/app/[locale]/skills/groups/[groupId]/page_client-reference-manifest.js +1 -1
  111. package/standalone/.next/server/app/[locale]/skills/groups/page.js.nft.json +1 -1
  112. package/standalone/.next/server/app/[locale]/skills/groups/page_client-reference-manifest.js +1 -1
  113. package/standalone/.next/server/app/[locale]/skills/page.js.nft.json +1 -1
  114. package/standalone/.next/server/app/[locale]/skills/page_client-reference-manifest.js +1 -1
  115. package/standalone/.next/server/app/[locale]/skills/sync/[runId]/page.js.nft.json +1 -1
  116. package/standalone/.next/server/app/[locale]/skills/sync/[runId]/page_client-reference-manifest.js +1 -1
  117. package/standalone/.next/server/app/[locale]/tools/page.js.nft.json +1 -1
  118. package/standalone/.next/server/app/[locale]/tools/page_client-reference-manifest.js +1 -1
  119. package/standalone/.next/server/app/[locale]/unified-events/page.js.nft.json +1 -1
  120. package/standalone/.next/server/app/[locale]/unified-events/page_client-reference-manifest.js +1 -1
  121. package/standalone/.next/server/app/[locale]/usage/page.js.nft.json +1 -1
  122. package/standalone/.next/server/app/[locale]/usage/page_client-reference-manifest.js +1 -1
  123. package/standalone/.next/server/app/[locale]/workflows/[workflowId]/edit/page.js.nft.json +1 -1
  124. package/standalone/.next/server/app/[locale]/workflows/[workflowId]/edit/page_client-reference-manifest.js +1 -1
  125. package/standalone/.next/server/app/[locale]/workflows/[workflowId]/page.js.nft.json +1 -1
  126. package/standalone/.next/server/app/[locale]/workflows/[workflowId]/page_client-reference-manifest.js +1 -1
  127. package/standalone/.next/server/app/[locale]/workflows/new/page.js.nft.json +1 -1
  128. package/standalone/.next/server/app/[locale]/workflows/new/page_client-reference-manifest.js +1 -1
  129. package/standalone/.next/server/app/[locale]/workflows/page.js.nft.json +1 -1
  130. package/standalone/.next/server/app/[locale]/workflows/page_client-reference-manifest.js +1 -1
  131. package/standalone/.next/server/app/[locale]/workflows/runs/[runId]/page.js.nft.json +1 -1
  132. package/standalone/.next/server/app/[locale]/workflows/runs/[runId]/page_client-reference-manifest.js +1 -1
  133. package/standalone/.next/server/app/[locale]/worktrees/[worktreeId]/page.js.nft.json +1 -1
  134. package/standalone/.next/server/app/[locale]/worktrees/[worktreeId]/page_client-reference-manifest.js +1 -1
  135. package/standalone/.next/server/app/[locale]/worktrees/page.js.nft.json +1 -1
  136. package/standalone/.next/server/app/[locale]/worktrees/page_client-reference-manifest.js +1 -1
  137. package/standalone/.next/server/app/_global-error.html +1 -1
  138. package/standalone/.next/server/app/_global-error.rsc +1 -1
  139. package/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  140. package/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  141. package/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  142. package/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  143. package/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  144. package/standalone/.next/server/app/_not-found.html +1 -1
  145. package/standalone/.next/server/app/_not-found.rsc +1 -1
  146. package/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  147. package/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  148. package/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  149. package/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  150. package/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  151. package/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  152. package/standalone/.next/server/app-paths-manifest.json +2 -0
  153. package/standalone/.next/server/chunks/1oeh_server_app_[locale]_commands_runs_[runId]_output_route_actions_1cukkg_.js +3 -0
  154. package/standalone/.next/server/chunks/[root-of-the-server]__0690e_i._.js +3 -0
  155. package/standalone/.next/server/chunks/[root-of-the-server]__0g-b1k_._.js +3 -0
  156. package/standalone/.next/server/chunks/[root-of-the-server]__0jwejc1._.js +3 -0
  157. package/standalone/.next/server/chunks/[root-of-the-server]__19aveol._.js +3 -0
  158. package/standalone/.next/server/chunks/[root-of-the-server]__1d8yo1w._.js +3 -0
  159. package/standalone/.next/server/chunks/[root-of-the-server]__1gjcicg._.js +3 -0
  160. package/standalone/.next/server/chunks/[root-of-the-server]__1kb6o8v._.js +3 -0
  161. package/standalone/.next/server/chunks/[root-of-the-server]__1m-eb8h._.js +3 -0
  162. package/standalone/.next/server/chunks/[root-of-the-server]__1tl064i._.js +3 -0
  163. package/standalone/.next/server/chunks/[root-of-the-server]__1y28_j-._.js +3 -0
  164. package/standalone/.next/server/chunks/_04easfx._.js +1 -1
  165. package/standalone/.next/server/chunks/_060s_2_._.js +1 -1
  166. package/standalone/.next/server/chunks/_0mno1rd._.js +1 -1
  167. package/standalone/.next/server/chunks/_17vom8o._.js +1 -1
  168. package/standalone/.next/server/chunks/_1_97_xc._.js +1 -1
  169. package/standalone/.next/server/chunks/_1hmzed-._.js +1 -1
  170. package/standalone/.next/server/chunks/_1ua7367._.js +1 -1
  171. package/standalone/.next/server/chunks/_next-internal_server_app_[locale]_builds_[buildId]_output_route_actions_1taut05.js +3 -0
  172. package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__12ujp5k._.js → [root-of-the-server]__0lmk9bz._.js} +2 -2
  173. package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__163pha9._.js → [root-of-the-server]__1102h2k._.js} +10 -2
  174. package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__04vu2d2._.js → [root-of-the-server]__1246vo_._.js} +2 -2
  175. package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__1zdw3xq._.js → [root-of-the-server]__13y5te1._.js} +2 -2
  176. package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__14x7em1._.js → [root-of-the-server]__15g2tdw._.js} +2 -2
  177. package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__1urzzjr._.js → [root-of-the-server]__1c5ldng._.js} +2 -2
  178. package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0szkx1z._.js → [root-of-the-server]__1etlhw0._.js} +2 -2
  179. package/standalone/.next/server/chunks/ssr/_02c2d4f._.js +24 -0
  180. package/standalone/.next/server/chunks/ssr/{_0mpp4zy._.js → _046yruk._.js} +3 -3
  181. package/standalone/.next/server/chunks/ssr/{_17qauas._.js → _04o65jz._.js} +2 -2
  182. package/standalone/.next/server/chunks/ssr/{_1i8x-4q._.js → _0bobqfl._.js} +3 -3
  183. package/standalone/.next/server/chunks/ssr/{_0u5fbj1._.js → _0lkknxk._.js} +2 -2
  184. package/standalone/.next/server/chunks/ssr/_0ywojby._.js +24 -0
  185. package/standalone/.next/server/chunks/ssr/{_0ts0l7b._.js → _0zjisu4._.js} +2 -2
  186. package/standalone/.next/server/chunks/ssr/{_182yko5._.js → _18cp9pu._.js} +2 -2
  187. package/standalone/.next/server/chunks/ssr/_1eryu4w._.js +19 -0
  188. package/standalone/.next/server/chunks/ssr/{_0cc1vi6._.js → _1l052-e._.js} +2 -2
  189. package/standalone/.next/server/chunks/ssr/_1lic210._.js +3 -0
  190. package/standalone/.next/server/chunks/ssr/_1zgu74l._.js +10 -10
  191. package/standalone/.next/server/chunks/ssr/messages_de_json_[json]_cjs_1uig1ud._.js +1 -1
  192. package/standalone/.next/server/chunks/ssr/messages_en_json_[json]_cjs_206072-._.js +1 -1
  193. package/standalone/.next/server/chunks/ssr/messages_es_json_[json]_cjs_082yukd._.js +1 -1
  194. package/standalone/.next/server/chunks/ssr/messages_fr_json_[json]_cjs_0j6-w0i._.js +1 -1
  195. package/standalone/.next/server/chunks/ssr/node_modules_0k28hjd._.js +3 -0
  196. package/standalone/.next/server/chunks/ssr/src_components_builds_build-detail-page_tsx_0q1lvps._.js +5 -5
  197. package/standalone/.next/server/functions-config-manifest.json +2 -0
  198. package/standalone/.next/server/middleware-build-manifest.js +3 -3
  199. package/standalone/.next/server/pages/404.html +1 -1
  200. package/standalone/.next/server/pages/500.html +1 -1
  201. package/standalone/.next/server/server-reference-manifest.js +1 -1
  202. package/standalone/.next/server/server-reference-manifest.json +1 -1
  203. package/standalone/.next/static/chunks/{0n2u5wjjmaseb.js → 04zmk6cyju031.js} +1 -1
  204. package/standalone/.next/static/chunks/{09q-nz-e_tbiy.js → 0f6x_7136ws5e.js} +1 -1
  205. package/standalone/.next/static/chunks/{3tfj2uhflnkvu.js → 0fm8vlctux_d4.js} +7 -7
  206. package/standalone/.next/static/chunks/{27a270srtknzi.js → 0k-tj18pj2jw3.js} +3 -3
  207. package/standalone/.next/static/chunks/{3r2wqa5gcorck.js → 0ntu55tvqo74a.js} +7 -7
  208. package/standalone/.next/static/chunks/0qo8_-dnk-8es.js +22 -0
  209. package/standalone/.next/static/chunks/{1kwddx0lygohb.js → 12pz55savz83-.js} +1 -1
  210. package/standalone/.next/static/chunks/18-qgh9p9g9gn.js +17 -0
  211. package/standalone/.next/static/chunks/{0tm88xq1je0ik.js → 1ehd9ff-t9y4q.js} +1 -1
  212. package/standalone/.next/static/chunks/{3ege33ljteolq.js → 1gsma655t74si.js} +1 -1
  213. package/standalone/.next/static/chunks/{1mmo8lspdk0y2.js → 1kas2cg1m9t70.js} +8 -8
  214. package/standalone/.next/static/chunks/{446mel_yhca9u.js → 2a7-21p5ltjf0.js} +2 -2
  215. package/standalone/.next/static/chunks/{3_tux_4hkdpja.js → 2buxoh6cj1vav.js} +1 -1
  216. package/standalone/.next/static/chunks/{1-v397t7o9cqz.js → 2grj-b5r57kpq.js} +2 -2
  217. package/standalone/.next/static/chunks/2kc9nohdlg9t0.js +1 -0
  218. package/standalone/.next/static/chunks/{3o8__1my6dk1_.js → 2yqx6j1xnzns8.js} +1 -1
  219. package/standalone/.next/static/chunks/{2ne14u5xzix6t.js → 3atzn4uq1z4g-.js} +1 -1
  220. package/standalone/.next/static/chunks/3cuivj8-h9d2a.js +1 -0
  221. package/standalone/.next/static/chunks/{1y-end2fvx0wt.js → 3kz00cbmpyo2-.js} +1 -1
  222. package/standalone/.next/static/chunks/{26dvl4pn5yw16.js → 3nxz8k1j8fgad.js} +7 -7
  223. package/standalone/.next/static/chunks/3sr3c0rfmkyg2.js +23 -0
  224. package/standalone/.next/static/chunks/3xx3qtf7ebz58.css +1 -0
  225. package/standalone/.next/server/chunks/ssr/_03tz2ed._.js +0 -3
  226. package/standalone/.next/server/chunks/ssr/_0_7xzsn._.js +0 -19
  227. package/standalone/.next/server/chunks/ssr/_0brpuee._.js +0 -24
  228. package/standalone/.next/server/chunks/ssr/_0jklnn-._.js +0 -11
  229. package/standalone/.next/server/chunks/ssr/_0qppm0k._.js +0 -24
  230. package/standalone/.next/server/chunks/ssr/node_modules_@radix-ui_react-menu_dist_index_mjs_0r8d9ly._.js +0 -3
  231. package/standalone/.next/server/chunks/ssr/src_096v3r6._.js +0 -3
  232. package/standalone/.next/static/chunks/0oyi9lj201nul.css +0 -1
  233. package/standalone/.next/static/chunks/168hnxx43r6g0.js +0 -27
  234. package/standalone/.next/static/chunks/193zouh7q03-q.js +0 -22
  235. package/standalone/.next/static/chunks/19fy68juspikd.js +0 -23
  236. package/standalone/.next/static/chunks/1c42xu-oct3-l.js +0 -1
  237. package/standalone/.next/static/chunks/33u7b61cg10r7.js +0 -17
  238. /package/standalone/.next/static/{PEh7pBYRizgKlQhA6uiAl → pMygSj2GOth47wwuxgqsB}/_buildManifest.js +0 -0
  239. /package/standalone/.next/static/{PEh7pBYRizgKlQhA6uiAl → pMygSj2GOth47wwuxgqsB}/_clientMiddlewareManifest.js +0 -0
  240. /package/standalone/.next/static/{PEh7pBYRizgKlQhA6uiAl → pMygSj2GOth47wwuxgqsB}/_ssgManifest.js +0 -0
@@ -1,27 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,755566,e=>{"use strict";let t=(0,e.i(456420).default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["default",0,t])},853138,e=>{"use strict";var t=e.i(755566);e.s(["AlertTriangle",()=>t.default])},560972,e=>{"use strict";let t=(0,e.i(456420).default)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);e.s(["default",0,t])},624687,e=>{"use strict";var t=e.i(843476),r=e.i(975157);e.s(["Textarea",0,function({className:e,...a}){return(0,t.jsx)("textarea",{"data-slot":"textarea",className:(0,r.cn)("flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...a})}])},755838,(e,t,r)=>{"use strict";var a=e.r(271645),n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=a.useState,s=a.useEffect,l=a.useLayoutEffect,o=a.useDebugValue;function d(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),a=i({inst:{value:r,getSnapshot:t}}),n=a[0].inst,c=a[1];return l(function(){n.value=r,n.getSnapshot=t,d(n)&&c({inst:n})},[e,r,t]),s(function(){return d(n)&&c({inst:n}),e(function(){d(n)&&c({inst:n})})},[e]),o(r),r};r.useSyncExternalStore=void 0!==a.useSyncExternalStore?a.useSyncExternalStore:c},802239,(e,t,r)=>{"use strict";t.exports=e.r(755838)},776639,e=>{"use strict";var t=e.i(843476),r=e.i(560964),a=e.i(964053),n=e.i(519455),i=e.i(975157);function s({...e}){return(0,t.jsx)(a.Dialog.Portal,{"data-slot":"dialog-portal",...e})}function l({className:e,...r}){return(0,t.jsx)(a.Dialog.Overlay,{className:(0,i.cn)("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),"data-slot":"dialog-overlay",...r})}e.s(["Dialog",0,function({...e}){return(0,t.jsx)(a.Dialog.Root,{"data-slot":"dialog",...e})},"DialogContent",0,function({className:e,children:o,showCloseButton:d=!0,...c}){return(0,t.jsxs)(s,{children:[(0,t.jsx)(l,{}),(0,t.jsxs)(a.Dialog.Content,{className:(0,i.cn)("fixed top-1/2 left-1/2 z-50 grid max-h-[85dvh] w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 overflow-y-auto rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),"data-slot":"dialog-content",...c,children:[o,d&&(0,t.jsx)(a.Dialog.Close,{asChild:!0,"data-slot":"dialog-close",children:(0,t.jsxs)(n.Button,{className:"absolute top-2 right-2",size:"icon-sm",variant:"ghost",children:[(0,t.jsx)(r.XIcon,{}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})})]})]})},"DialogDescription",0,function({className:e,...r}){return(0,t.jsx)(a.Dialog.Description,{className:(0,i.cn)("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),"data-slot":"dialog-description",...r})},"DialogFooter",0,function({className:e,showCloseButton:r=!1,children:s,...l}){return(0,t.jsxs)("div",{className:(0,i.cn)("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",e),"data-slot":"dialog-footer",...l,children:[s,r&&(0,t.jsx)(a.Dialog.Close,{asChild:!0,children:(0,t.jsx)(n.Button,{variant:"outline",children:"Close"})})]})},"DialogHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{className:(0,i.cn)("flex flex-col gap-2",e),"data-slot":"dialog-header",...r})},"DialogTitle",0,function({className:e,...r}){return(0,t.jsx)(a.Dialog.Title,{className:(0,i.cn)("font-heading text-base leading-none font-medium",e),"data-slot":"dialog-title",...r})},"DialogTrigger",0,function({...e}){return(0,t.jsx)(a.Dialog.Trigger,{"data-slot":"dialog-trigger",...e})}])},950594,e=>{"use strict";var t=e.i(843476),r=e.i(225913),a=e.i(975157),n=e.i(519455),i=e.i(793479);e.i(624687);let s=(0,r.cva)("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",{variants:{align:{"inline-start":"order-first pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem]","inline-end":"order-last pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem]","block-start":"order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2","block-end":"order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2"}},defaultVariants:{align:"inline-start"}}),l=(0,r.cva)("flex items-center gap-2 text-sm shadow-none",{variants:{size:{xs:"h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",sm:"","icon-xs":"size-6 rounded-[calc(var(--radius)-3px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});e.s(["InputGroup",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"input-group",role:"group",className:(0,a.cn)("group/input-group relative flex h-8 w-full min-w-0 items-center rounded-lg border border-input transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5",e),...r})},"InputGroupAddon",0,function({className:e,align:r="inline-start",...n}){return(0,t.jsx)("div",{role:"group","data-slot":"input-group-addon","data-align":r,className:(0,a.cn)(s({align:r}),e),onClick:e=>{e.target.closest("button")||e.currentTarget.parentElement?.querySelector("input")?.focus()},...n})},"InputGroupButton",0,function({className:e,type:r="button",variant:i="ghost",size:s="xs",...o}){return(0,t.jsx)(n.Button,{type:r,"data-size":s,variant:i,className:(0,a.cn)(l({size:s}),e),...o})},"InputGroupInput",0,function({className:e,...r}){return(0,t.jsx)(i.Input,{"data-slot":"input-group-control",className:(0,a.cn)("flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent",e),...r})}])},317056,e=>{"use strict";var t=e.i(843476),r=/[\\\/_+.#"@\[\(\{&]/,a=/[\\\/_+.#"@\[\(\{&]/g,n=/[\s-]/,i=/[\s-]/g;function s(e){return e.toLowerCase().replace(i," ")}var l=e.i(326999),o=e.i(271645),d=e.i(248425),c=e.i(610772),u=e.i(820783),m='[cmdk-group=""]',p='[cmdk-group-items=""]',f='[cmdk-item=""]',g=`${f}:not([aria-disabled="true"])`,h="cmdk-item-select",v="data-value",x=(e,t,l)=>{var o;return o=e,function e(t,s,l,o,d,c,u){if(c===s.length)return d===t.length?1:.99;var m=`${d},${c}`;if(void 0!==u[m])return u[m];for(var p,f,g,h,v=o.charAt(c),x=l.indexOf(v,d),b=0;x>=0;)(p=e(t,s,l,o,x+1,c+1,u))>b&&(x===d?p*=1:r.test(t.charAt(x-1))?(p*=.8,(g=t.slice(d,x-1).match(a))&&d>0&&(p*=Math.pow(.999,g.length))):n.test(t.charAt(x-1))?(p*=.9,(h=t.slice(d,x-1).match(i))&&d>0&&(p*=Math.pow(.999,h.length))):(p*=.17,d>0&&(p*=Math.pow(.999,x-d))),t.charAt(x)!==s.charAt(c)&&(p*=.9999)),(p<.1&&l.charAt(x-1)===o.charAt(c+1)||o.charAt(c+1)===o.charAt(c)&&l.charAt(x-1)!==o.charAt(c))&&.1*(f=e(t,s,l,o,x+1,c+2,u))>p&&(p=.1*f),p>b&&(b=p),x=l.indexOf(v,x+1);return u[m]=b,b}(o=l&&l.length>0?`${o+" "+l.join(" ")}`:o,t,s(o),s(t),0,0,{})},b=o.createContext(void 0),j=o.createContext(void 0),y=o.createContext(void 0),k=o.forwardRef((e,t)=>{let r=D(()=>{var t,r;return{search:"",value:null!=(r=null!=(t=e.value)?t:e.defaultValue)?r:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),a=D(()=>new Set),n=D(()=>new Map),i=D(()=>new Map),s=D(()=>new Set),l=T(e),{label:u,children:y,value:k,onValueChange:w,filter:I,shouldFilter:C,loop:E,disablePointerSelection:N=!1,vimBindings:S=!0,...A}=e,R=(0,c.useId)(),L=(0,c.useId)(),_=(0,c.useId)(),F=o.useRef(null),O=P();z(()=>{if(void 0!==k){let e=k.trim();r.current.value=e,B.emit()}},[k]),z(()=>{O(6,q)},[]);let B=o.useMemo(()=>({subscribe:e=>(s.current.add(e),()=>s.current.delete(e)),snapshot:()=>r.current,setState:(e,t,a)=>{var n,i,s,o;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)J(),K(),O(1,G);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(_);e?e.focus():null==(n=document.getElementById(R))||n.focus()}if(O(7,()=>{var e;r.current.selectedItemId=null==(e=H())?void 0:e.id,B.emit()}),a||O(5,q),(null==(i=l.current)?void 0:i.value)!==void 0){null==(o=(s=l.current).onValueChange)||o.call(s,null!=t?t:"");return}}B.emit()}},emit:()=>{s.current.forEach(e=>e())}}),[]),V=o.useMemo(()=>({value:(e,t,a)=>{var n;t!==(null==(n=i.current.get(e))?void 0:n.value)&&(i.current.set(e,{value:t,keywords:a}),r.current.filtered.items.set(e,U(t,a)),O(2,()=>{K(),B.emit()}))},item:(e,t)=>(a.current.add(e),t&&(n.current.has(t)?n.current.get(t).add(e):n.current.set(t,new Set([e]))),O(3,()=>{J(),K(),r.current.value||G(),B.emit()}),()=>{i.current.delete(e),a.current.delete(e),r.current.filtered.items.delete(e);let t=H();O(4,()=>{J(),(null==t?void 0:t.getAttribute("id"))===e&&G(),B.emit()})}),group:e=>(n.current.has(e)||n.current.set(e,new Set),()=>{i.current.delete(e),n.current.delete(e)}),filter:()=>l.current.shouldFilter,label:u||e["aria-label"],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:R,inputId:_,labelId:L,listInnerRef:F}),[]);function U(e,t){var a,n;let i=null!=(n=null==(a=l.current)?void 0:a.filter)?n:x;return e?i(e,r.current.search,t):0}function K(){if(!r.current.search||!1===l.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(r=>{let a=n.current.get(r),i=0;a.forEach(t=>{i=Math.max(e.get(t),i)}),t.push([r,i])});let a=F.current;W().sort((t,r)=>{var a,n;let i=t.getAttribute("id"),s=r.getAttribute("id");return(null!=(a=e.get(s))?a:0)-(null!=(n=e.get(i))?n:0)}).forEach(e=>{let t=e.closest(p);t?t.appendChild(e.parentElement===t?e:e.closest(`${p} > *`)):a.appendChild(e.parentElement===a?e:e.closest(`${p} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let r=null==(t=F.current)?void 0:t.querySelector(`${m}[${v}="${encodeURIComponent(e[0])}"]`);null==r||r.parentElement.appendChild(r)})}function G(){let e=W().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(v);B.setState("value",t||void 0)}function J(){var e,t,s,o;if(!r.current.search||!1===l.current.shouldFilter){r.current.filtered.count=a.current.size;return}r.current.filtered.groups=new Set;let d=0;for(let n of a.current){let a=U(null!=(t=null==(e=i.current.get(n))?void 0:e.value)?t:"",null!=(o=null==(s=i.current.get(n))?void 0:s.keywords)?o:[]);r.current.filtered.items.set(n,a),a>0&&d++}for(let[e,t]of n.current)for(let a of t)if(r.current.filtered.items.get(a)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=d}function q(){var e,t,r;let a=H();a&&((null==(e=a.parentElement)?void 0:e.firstChild)===a&&(null==(r=null==(t=a.closest(m))?void 0:t.querySelector('[cmdk-group-heading=""]'))||r.scrollIntoView({block:"nearest"})),a.scrollIntoView({block:"nearest"}))}function H(){var e;return null==(e=F.current)?void 0:e.querySelector(`${f}[aria-selected="true"]`)}function W(){var e;return Array.from((null==(e=F.current)?void 0:e.querySelectorAll(g))||[])}function X(e){let t=W()[e];t&&B.setState("value",t.getAttribute(v))}function Y(e){var t;let r=H(),a=W(),n=a.findIndex(e=>e===r),i=a[n+e];null!=(t=l.current)&&t.loop&&(i=n+e<0?a[a.length-1]:n+e===a.length?a[0]:a[n+e]),i&&B.setState("value",i.getAttribute(v))}function Q(e){let t=H(),r=null==t?void 0:t.closest(m),a;for(;r&&!a;)a=null==(r=e>0?function(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}(r,m):function(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}(r,m))?void 0:r.querySelector(g);a?B.setState("value",a.getAttribute(v)):Y(e)}let Z=()=>X(W().length-1),ee=e=>{e.preventDefault(),e.metaKey?Z():e.altKey?Q(1):Y(1)},et=e=>{e.preventDefault(),e.metaKey?X(0):e.altKey?Q(-1):Y(-1)};return o.createElement(d.Primitive.div,{ref:t,tabIndex:-1,...A,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=A.onKeyDown)||t.call(A,e);let r=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||r))switch(e.key){case"n":case"j":S&&e.ctrlKey&&ee(e);break;case"ArrowDown":ee(e);break;case"p":case"k":S&&e.ctrlKey&&et(e);break;case"ArrowUp":et(e);break;case"Home":e.preventDefault(),X(0);break;case"End":e.preventDefault(),Z();break;case"Enter":{e.preventDefault();let t=H();if(t){let e=new Event(h);t.dispatchEvent(e)}}}}},o.createElement("label",{"cmdk-label":"",htmlFor:V.inputId,id:V.labelId,style:$},u),M(e,e=>o.createElement(j.Provider,{value:B},o.createElement(b.Provider,{value:V},e))))}),w=o.forwardRef((e,t)=>{var r,a;let n=(0,c.useId)(),i=o.useRef(null),s=o.useContext(y),l=o.useContext(b),m=T(e),p=null!=(a=null==(r=m.current)?void 0:r.forceMount)?a:null==s?void 0:s.forceMount;z(()=>{if(!p)return l.item(n,null==s?void 0:s.id)},[p]);let f=L(n,i,[e.value,e.children,i],e.keywords),g=o.useContext(j),v=R(e=>e.value&&e.value===f.current),x=R(e=>!!p||!1===l.filter()||!e.search||e.filtered.items.get(n)>0);function k(){var e,t;w(),null==(t=(e=m.current).onSelect)||t.call(e,f.current)}function w(){g.setState("value",f.current,!0)}if(o.useEffect(()=>{let t=i.current;if(!(!t||e.disabled))return t.addEventListener(h,k),()=>t.removeEventListener(h,k)},[x,e.onSelect,e.disabled]),!x)return null;let{disabled:I,value:C,onSelect:E,forceMount:N,keywords:S,...A}=e;return o.createElement(d.Primitive.div,{ref:(0,u.composeRefs)(i,t),...A,id:n,"cmdk-item":"",role:"option","aria-disabled":!!I,"aria-selected":!!v,"data-disabled":!!I,"data-selected":!!v,onPointerMove:I||l.getDisablePointerSelection()?void 0:w,onClick:I?void 0:k},e.children)}),I=o.forwardRef((e,t)=>{let{heading:r,children:a,forceMount:n,...i}=e,s=(0,c.useId)(),l=o.useRef(null),m=o.useRef(null),p=(0,c.useId)(),f=o.useContext(b),g=R(e=>!!n||!1===f.filter()||!e.search||e.filtered.groups.has(s));z(()=>f.group(s),[]),L(s,l,[e.value,e.heading,m]);let h=o.useMemo(()=>({id:s,forceMount:n}),[n]);return o.createElement(d.Primitive.div,{ref:(0,u.composeRefs)(l,t),...i,"cmdk-group":"",role:"presentation",hidden:!g||void 0},r&&o.createElement("div",{ref:m,"cmdk-group-heading":"","aria-hidden":!0,id:p},r),M(e,e=>o.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?p:void 0},o.createElement(y.Provider,{value:h},e))))}),C=o.forwardRef((e,t)=>{let{alwaysRender:r,...a}=e,n=o.useRef(null),i=R(e=>!e.search);return r||i?o.createElement(d.Primitive.div,{ref:(0,u.composeRefs)(n,t),...a,"cmdk-separator":"",role:"separator"}):null}),E=o.forwardRef((e,t)=>{let{onValueChange:r,...a}=e,n=null!=e.value,i=o.useContext(j),s=R(e=>e.search),l=R(e=>e.selectedItemId),c=o.useContext(b);return o.useEffect(()=>{null!=e.value&&i.setState("search",e.value)},[e.value]),o.createElement(d.Primitive.input,{ref:t,...a,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":l,id:c.inputId,type:"text",value:n?e.value:s,onChange:e=>{n||i.setState("search",e.target.value),null==r||r(e.target.value)}})}),N=o.forwardRef((e,t)=>{let{children:r,label:a="Suggestions",...n}=e,i=o.useRef(null),s=o.useRef(null),l=R(e=>e.selectedItemId),c=o.useContext(b);return o.useEffect(()=>{if(s.current&&i.current){let e=s.current,t=i.current,r,a=new ResizeObserver(()=>{r=requestAnimationFrame(()=>{let r=e.offsetHeight;t.style.setProperty("--cmdk-list-height",r.toFixed(1)+"px")})});return a.observe(e),()=>{cancelAnimationFrame(r),a.unobserve(e)}}},[]),o.createElement(d.Primitive.div,{ref:(0,u.composeRefs)(i,t),...n,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":l,"aria-label":a,id:c.listId},M(e,e=>o.createElement("div",{ref:(0,u.composeRefs)(s,c.listInnerRef),"cmdk-list-sizer":""},e)))}),S=o.forwardRef((e,t)=>{let{open:r,onOpenChange:a,overlayClassName:n,contentClassName:i,container:s,...d}=e;return o.createElement(l.Root,{open:r,onOpenChange:a},o.createElement(l.Portal,{container:s},o.createElement(l.Overlay,{"cmdk-overlay":"",className:n}),o.createElement(l.Content,{"aria-label":e.label,"cmdk-dialog":"",className:i},o.createElement(k,{ref:t,...d}))))}),A=Object.assign(k,{List:N,Item:w,Input:E,Group:I,Separator:C,Dialog:S,Empty:o.forwardRef((e,t)=>R(e=>0===e.filtered.count)?o.createElement(d.Primitive.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:o.forwardRef((e,t)=>{let{progress:r,children:a,label:n="Loading...",...i}=e;return o.createElement(d.Primitive.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":n},M(e,e=>o.createElement("div",{"aria-hidden":!0},e)))})});function T(e){let t=o.useRef(e);return z(()=>{t.current=e}),t}var z="u"<typeof window?o.useEffect:o.useLayoutEffect;function D(e){let t=o.useRef();return void 0===t.current&&(t.current=e()),t}function R(e){let t=o.useContext(j),r=()=>e(t.snapshot());return o.useSyncExternalStore(t.subscribe,r,r)}function L(e,t,r,a=[]){let n=o.useRef(),i=o.useContext(b);return z(()=>{var s;let l=(()=>{var e;for(let t of r){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():n.current}})(),o=a.map(e=>e.trim());i.value(e,l,o),null==(s=t.current)||s.setAttribute(v,l),n.current=l}),n}var P=()=>{let[e,t]=o.useState(),r=D(()=>new Map);return z(()=>{r.current.forEach(e=>e()),r.current=new Map},[e]),(e,a)=>{r.current.set(e,a),t({})}};function M({asChild:e,children:t},r){let a;return e&&o.isValidElement(t)?o.cloneElement("function"==typeof(a=t.type)?a(t.props):"render"in a?a.render(t.props):t,{ref:t.ref},r(t.props.children)):r(t)}var $={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},_=e.i(975157);e.i(776639);var F=e.i(950594),O=e.i(630299),O=O,B=e.i(593698);e.s(["Command",0,function({className:e,...r}){return(0,t.jsx)(A,{"data-slot":"command",className:(0,_.cn)("flex size-full flex-col overflow-hidden rounded-xl! bg-popover p-1 text-popover-foreground",e),...r})},"CommandEmpty",0,function({className:e,...r}){return(0,t.jsx)(A.Empty,{"data-slot":"command-empty",className:(0,_.cn)("py-6 text-center text-sm",e),...r})},"CommandGroup",0,function({className:e,...r}){return(0,t.jsx)(A.Group,{"data-slot":"command-group",className:(0,_.cn)("overflow-hidden p-1 text-foreground **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground",e),...r})},"CommandInput",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"command-input-wrapper",className:"p-1 pb-0",children:(0,t.jsxs)(F.InputGroup,{className:"h-8! rounded-lg! border-input/30 bg-input/30 shadow-none! *:data-[slot=input-group-addon]:pl-2!",children:[(0,t.jsx)(A.Input,{"data-slot":"command-input",className:(0,_.cn)("w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...r}),(0,t.jsx)(F.InputGroupAddon,{children:(0,t.jsx)(O.default,{className:"size-4 shrink-0 opacity-50"})})]})})},"CommandItem",0,function({className:e,children:r,...a}){return(0,t.jsxs)(A.Item,{"data-slot":"command-item",className:(0,_.cn)("group/command-item relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-lg! data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-selected:bg-muted data-selected:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-selected:*:[svg]:text-foreground",e),...a,children:[r,(0,t.jsx)(B.CheckIcon,{className:"ml-auto opacity-0 group-has-data-[slot=command-shortcut]/command-item:hidden group-data-[checked=true]/command-item:opacity-100"})]})},"CommandList",0,function({className:e,...r}){return(0,t.jsx)(A.List,{"data-slot":"command-list",className:(0,_.cn)("no-scrollbar max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none",e),...r})}],317056)},563707,e=>{"use strict";let t=(0,e.i(456420).default)("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);e.s(["ChevronsUpDown",0,t],563707)},508734,e=>{"use strict";let t=(0,e.i(456420).default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);e.s(["Copy",0,t],508734)},906197,e=>{"use strict";var t=e.i(843476),r=e.i(225913),a=e.i(586011),n=e.i(975157);e.i(772436);let i=(0,r.cva)("group/item flex w-full flex-wrap items-center rounded-lg border text-sm transition-colors duration-100 outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 [a]:transition-colors [a]:hover:bg-muted",{variants:{variant:{default:"border-transparent",outline:"border-border",muted:"border-transparent bg-muted/50"},size:{default:"gap-2.5 px-3 py-2.5",sm:"gap-2.5 px-3 py-2.5",xs:"gap-2 px-2.5 py-2 in-data-[slot=dropdown-menu-content]:p-0"}},defaultVariants:{variant:"default",size:"default"}}),s=(0,r.cva)("flex shrink-0 items-center justify-center gap-2 group-has-data-[slot=item-description]/item:translate-y-0.5 group-has-data-[slot=item-description]/item:self-start [&_svg]:pointer-events-none",{variants:{variant:{default:"bg-transparent",icon:"[&_svg:not([class*='size-'])]:size-4",image:"size-10 overflow-hidden rounded-sm group-data-[size=sm]/item:size-8 group-data-[size=xs]/item:size-6 [&_img]:size-full [&_img]:object-cover"}},defaultVariants:{variant:"default"}});e.s(["Item",0,function({className:e,variant:r="default",size:s="default",asChild:l=!1,...o}){let d=l?a.Slot.Root:"div";return(0,t.jsx)(d,{"data-slot":"item","data-variant":r,"data-size":s,className:(0,n.cn)(i({variant:r,size:s,className:e})),...o})},"ItemActions",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"item-actions",className:(0,n.cn)("flex items-center gap-2",e),...r})},"ItemContent",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"item-content",className:(0,n.cn)("flex flex-1 flex-col gap-1 group-data-[size=xs]/item:gap-0 [&+[data-slot=item-content]]:flex-none",e),...r})},"ItemDescription",0,function({className:e,...r}){return(0,t.jsx)("p",{"data-slot":"item-description",className:(0,n.cn)("line-clamp-2 text-left text-sm leading-normal font-normal text-muted-foreground group-data-[size=xs]/item:text-xs [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...r})},"ItemFooter",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"item-footer",className:(0,n.cn)("flex basis-full items-center justify-between gap-2",e),...r})},"ItemGroup",0,function({className:e,...r}){return(0,t.jsx)("div",{role:"list","data-slot":"item-group",className:(0,n.cn)("group/item-group flex w-full flex-col gap-4 has-data-[size=sm]:gap-2.5 has-data-[size=xs]:gap-2",e),...r})},"ItemMedia",0,function({className:e,variant:r="default",...a}){return(0,t.jsx)("div",{"data-slot":"item-media","data-variant":r,className:(0,n.cn)(s({variant:r,className:e})),...a})},"ItemTitle",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"item-title",className:(0,n.cn)("line-clamp-1 flex w-fit items-center gap-2 text-sm leading-snug font-medium underline-offset-4",e),...r})}])},772382,e=>{"use strict";let t=(0,e.i(456420).default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Eye",0,t],772382)},983913,e=>{"use strict";var t=e.i(843476),r=e.i(563707),a=e.i(271645),n=e.i(519455),i=e.i(317056),s=e.i(906197),l=e.i(337822),o=e.i(975157);e.s(["SearchableSelect",0,function({value:e,onValueChange:d,options:c,placeholder:u,searchPlaceholder:m,emptyMessage:p,ariaLabel:f,disabled:g,className:h,showSelectedDetails:v=!1,allowCustomValue:x=!1}){let[b,j]=(0,a.useState)(!1),[y,k]=(0,a.useState)(""),w=(0,a.useCallback)(e=>{e&&e.addEventListener("wheel",e=>e.stopPropagation())},[]),I=c.find(t=>t.value===e),C=I?.label??(e||u),E=y.trim(),N=x&&E.length>0&&!c.some(e=>e.value.toLowerCase()===E.toLowerCase()||e.label.toLowerCase()===E.toLowerCase());return(0,t.jsxs)(l.Popover,{onOpenChange:e=>{j(e),e||k("")},open:b,children:[(0,t.jsx)(l.PopoverTrigger,{asChild:!0,children:(0,t.jsxs)(n.Button,{"aria-expanded":b,"aria-label":f,className:(0,o.cn)("min-w-0 w-full justify-between font-normal",v&&I&&"h-auto min-h-8 py-2",h),disabled:g,role:"combobox",type:"button",variant:"outline",children:[v&&I?(0,t.jsxs)("span",{className:"min-w-0 text-left",children:[(0,t.jsx)("span",{className:"block truncate",children:I.label}),I.description&&(0,t.jsx)("span",{className:"block truncate text-xs text-muted-foreground",children:I.description}),I.secondaryDescription&&(0,t.jsx)("span",{className:"block truncate text-xs text-muted-foreground",children:I.secondaryDescription})]}):(0,t.jsx)("span",{className:"min-w-0 truncate",children:C}),(0,t.jsx)(r.ChevronsUpDown,{className:"shrink-0 opacity-50"})]})}),(0,t.jsx)(l.PopoverContent,{ref:w,align:"start",className:"z-70 max-h-[min(24rem,var(--radix-popover-content-available-height))] w-(--radix-popover-trigger-width) overflow-hidden p-0",children:(0,t.jsxs)(i.Command,{className:"min-h-0",label:m,children:[(0,t.jsx)(i.CommandInput,{"aria-label":m,autoFocus:!0,onValueChange:k,placeholder:m,value:y}),(0,t.jsxs)(i.CommandList,{className:"min-h-0 flex-1 max-h-64 overscroll-contain [scrollbar-width:thin] [&::-webkit-scrollbar]:block [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-border",children:[(0,t.jsx)(i.CommandEmpty,{children:p}),(0,t.jsxs)(i.CommandGroup,{children:[N&&(0,t.jsx)(i.CommandItem,{"aria-label":E,onSelect:()=>{d(E),k(""),j(!1)},value:E,children:(0,t.jsx)(s.Item,{className:"min-w-0 flex-1 border-0 p-0",size:"xs",children:(0,t.jsx)(s.ItemContent,{className:"min-w-0",children:(0,t.jsx)(s.ItemTitle,{className:"block truncate",children:E})})})}),c.map(r=>(0,t.jsx)(i.CommandItem,{"aria-label":[r.label,r.description,r.secondaryDescription].filter(Boolean).join(", "),"aria-selected":r.value===e,className:"items-start py-2","data-checked":r.value===e,disabled:r.disabled,keywords:[r.label,r.description??"",r.secondaryDescription??"",r.keywords??""],onSelect:()=>{d(r.value),k(""),j(!1)},value:r.value,children:(0,t.jsx)(s.Item,{className:"min-w-0 flex-1 border-0 p-0",size:"xs",children:(0,t.jsxs)(s.ItemContent,{className:"min-w-0",children:[(0,t.jsx)(s.ItemTitle,{className:"block truncate",children:r.label}),r.description&&(0,t.jsx)(s.ItemDescription,{className:"block truncate",children:r.description}),r.secondaryDescription&&(0,t.jsx)(s.ItemDescription,{className:"block truncate",children:r.secondaryDescription})]})})},r.value))]})]})]})})]})}])},159888,e=>{"use strict";let t=(0,e.i(456420).default)("braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]);e.s(["Braces",0,t],159888)},467511,e=>{"use strict";let t="format raw rawText markdown wikiMarkup",r="accountId displayName avatarUrl",a="source stale fetchedAt",n="relationship key summary status",i="id key summary statusId status statusCategory issueType priority assignee assigneeAccountId assigneeAvatarUrl projectKey updatedAt",s=`${i}
2
- jiraUrl description
3
- descriptionContent { ${t} }
4
- reporter { ${r} }
5
- creator { ${r} }
6
- labels components { id name } fixVersions { id name }
7
- affectedVersions { id name } sprintNames
8
- parent { ${n} }
9
- subtasks { ${n} }
10
- issueLinks { ${n} }
11
- attachments {
12
- id filename contentUrl mimeType size
13
- author { ${r} }
14
- createdAt
15
- }
16
- comments {
17
- id author { ${r} } body
18
- content { ${t} }
19
- createdAt updatedAt
20
- }
21
- createdAt dueAt resolvedAt timeTracking
22
- allFields {
23
- id name schemaType custom value
24
- content { ${t} }
25
- }
26
- cache { ${a} }
27
- commentsCache { ${a} }`;e.s(["JIRA_CACHE_FIELDS",0,a,"JIRA_PERSON_FIELDS",0,r,"JIRA_RICH_TEXT_FIELDS",0,t,"JIRA_SUMMARY_FIELDS",0,i,"JIRA_TICKET_DETAIL_FIELDS",0,s])},799676,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(705844),n=e.i(30030),i=e.i(30207),s=e.i(934620),l=e.i(248425),o=Object.defineProperty,d=(e,t)=>o(e,"name",{value:t,configurable:!0}),c="Avatar",[u,m]=(0,n.createContextScope)(c),p=[0,()=>void 0],[f,g]=u(c),h=r.forwardRef(d(function(e,a){let{__scopeAvatar:n,...i}=e,[s,o]=r.useState("idle"),[d,c]=y();return(0,t.jsx)(f,{scope:n,imageLoadingStatus:s,setImageLoadingStatus:o,imageCount:d,setImageCount:c,children:(0,t.jsx)(l.Primitive.span,{...i,ref:a})})},"Avatar")),v=r.forwardRef(d(function(e,a){let{__scopeAvatar:n,src:o,onLoadingStatusChange:d,...c}=e,u=g("AvatarImage",n);k(u.setImageCount);let m=b(o,{referrerPolicy:c.referrerPolicy,crossOrigin:c.crossOrigin,loadingStatus:u.imageLoadingStatus,setLoadingStatus:u.setImageLoadingStatus}),p=(0,i.useCallbackRef)(e=>{d?.(e)}),f=r.useRef(m);return(0,s.useLayoutEffect)(()=>{let e=f.current;f.current=m,m!==e&&p(m)},[m,p]),"loaded"===m?(0,t.jsx)(l.Primitive.img,{...c,ref:a,src:o}):null},"AvatarImage")),x=r.forwardRef(d(function(e,a){let{__scopeAvatar:n,delayMs:i,...s}=e,o=g("AvatarFallback",n),[d,c]=r.useState(void 0===i);return r.useEffect(()=>{if(void 0!==i){let e=window.setTimeout(()=>c(!0),i);return()=>window.clearTimeout(e)}},[i]),d&&"loaded"!==o.imageLoadingStatus?(0,t.jsx)(l.Primitive.span,{...s,ref:a}):null},"AvatarFallback"));function b(e,{loadingStatus:t,setLoadingStatus:r,referrerPolicy:a,crossOrigin:n}){return(0,s.useLayoutEffect)(()=>{if(!e)return void r("error");let t=new window.Image,i=d(e=>{r(j(e.currentTarget))},"handleLoad"),s=d(()=>r("error"),"handleError");return t.addEventListener("load",i),t.addEventListener("error",s),a&&(t.referrerPolicy=a),t.crossOrigin=n??null,t.src=e,r(j(t)),()=>{t.removeEventListener("load",i),t.removeEventListener("error",s),r("idle")}},[e,n,a,r]),t}function j(e){return e.complete?e.naturalWidth>0?"loaded":"error":"loading"}function y(){let e=p;if(a.IS_DEVELOPMENT){let[t]=e=r.useState(0),a=r.useRef(!1);r.useEffect(()=>{t>1&&!a.current&&(a.current=!0,console.warn("Avatar: Only one `Avatar.Image` component should be rendered per `Avatar.Root`, but multiple were detected. This will lead to unexpected behavior."))},[t])}return e}function k(e){a.IS_DEVELOPMENT&&r.useEffect(()=>(e(e=>e+1),()=>{e(e=>e-1)}),[e])}d(b,"useImageLoadingStatus"),d(j,"getImageLoadingStatus"),d(y,"useImageCount"),d(k,"useUpdateImageCount"),e.s(["Avatar",0,h,"AvatarFallback",0,x,"AvatarImage",0,v,"Fallback",0,x,"Image",0,v,"Root",0,h,"createAvatarScope",0,m],97456);var w=e.i(97456),w=w,I=e.i(975157);e.s(["Avatar",0,function({className:e,size:r="default",...a}){return(0,t.jsx)(w.Root,{className:(0,I.cn)("group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 dark:after:mix-blend-lighten",e),"data-size":r,"data-slot":"avatar",...a})},"AvatarFallback",0,function({className:e,...r}){return(0,t.jsx)(w.Fallback,{className:(0,I.cn)("flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",e),"data-slot":"avatar-fallback",...r})},"AvatarImage",0,function({className:e,...r}){return(0,t.jsx)(w.Image,{className:(0,I.cn)("aspect-square size-full rounded-full object-cover",e),"data-slot":"avatar-image",...r})}],799676)},356505,e=>{"use strict";var t=e.i(843476),r=e.i(853138),a=e.i(482022),n=e.i(269846);let i=(0,e.i(456420).default)("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]);var s=e.i(948148),l=e.i(271645),o=e.i(653090),d=e.i(278015),c=e.i(762279),u=e.i(456743),m=e.i(929592),p=e.i(487486),f=e.i(519455),g=e.i(515288),h=e.i(816484),v=e.i(906197),x=e.i(980376),b=e.i(987968),j=e.i(520133),y=e.i(637611),k=e.i(741725),w=e.i(467511);let I={highest:"border-red-500/30 bg-red-500/10 text-red-700 dark:text-red-300",high:"border-orange-500/30 bg-orange-500/10 text-orange-700 dark:text-orange-300",medium:"border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300",low:"border-blue-500/30 bg-blue-500/10 text-blue-700 dark:text-blue-300",lowest:"border-slate-500/30 bg-slate-500/10 text-slate-700 dark:text-slate-300"};function C({ticket:e}){let r=(0,s.useTranslations)("jiraTickets"),a=[[r("assignee"),(0,t.jsx)(o.JiraUser,{avatarUrl:e.assigneeAvatarUrl,name:e.assignee??r("unassigned")},"assignee")],[r("reporter"),e.reporter?(0,t.jsx)(o.JiraUser,{avatarUrl:e.reporter.avatarUrl,name:e.reporter.displayName},"reporter"):"—"],[r("created"),(0,t.jsx)(h.DateTime,{value:e.createdAt},"created")],[r("updated"),(0,t.jsx)(h.DateTime,{value:e.updatedAt},"updated")],[r("due"),(0,t.jsx)(h.DateTime,{value:e.dueAt},"due")],[r("resolved"),(0,t.jsx)(h.DateTime,{value:e.resolvedAt},"resolved")]];return(0,t.jsx)("dl",{className:"grid gap-3 rounded-lg bg-muted/50 p-4 text-sm sm:grid-cols-2",children:a.map(([e,r])=>(0,t.jsxs)("div",{children:[(0,t.jsx)("dt",{className:"text-xs text-muted-foreground",children:e}),(0,t.jsx)("dd",{className:"mt-0.5 font-medium",children:r})]},e))})}function E({label:e,values:r}){return(0,t.jsxs)("div",{children:[(0,t.jsx)("dt",{className:"text-muted-foreground",children:e}),(0,t.jsx)("dd",{className:"mt-1",children:r.join(", ")})]})}e.s(["JiraTicketDrawer",0,function({issueKey:e,onClose:o,onTicketChange:h}){let N=(0,s.useTranslations)("jiraTickets"),[S,A]=(0,l.useState)(null),[T,z]=(0,l.useState)(null),[D,R]=(0,l.useState)(!1),[L,P]=(0,l.useState)(!1);(0,l.useEffect)(()=>{if(!e){let e=window.setTimeout(()=>A(null),0);return()=>window.clearTimeout(e)}let t=window.setTimeout(async()=>{R(!0);try{let t=await (0,y.controlPlaneRequest)(`query JiraTicket($issueKey: ID!) { jiraTicket(issueKey: $issueKey) { ${w.JIRA_TICKET_DETAIL_FIELDS} } }`,{issueKey:e});A(t.jiraTicket),z(null)}catch(e){z(e instanceof Error?e.message:String(e))}finally{R(!1)}},0);return()=>window.clearTimeout(t)},[e]);let M=e=>{A(e),h?.(e)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(x.Sheet,{onOpenChange:e=>{e||o()},open:!!e,children:(0,t.jsxs)(x.SheetContent,{className:"w-[min(48rem,95vw)] overflow-y-auto sm:max-w-3xl",children:[(0,t.jsxs)(x.SheetHeader,{className:"border-b pr-12",children:[(0,t.jsx)(x.SheetTitle,{children:S?.key??e??N("ticket")}),(0,t.jsx)(x.SheetDescription,{children:S?.summary??N("loadingTicket")})]}),(0,t.jsxs)("div",{className:"space-y-6 px-4 pb-6",children:[D&&(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(b.Spinner,{}),N("loadingTicket")]}),T&&(0,t.jsx)(m.Alert,{variant:"destructive",children:(0,t.jsx)(m.AlertDescription,{children:T})}),S&&(0,t.jsxs)(t.Fragment,{children:[(S.cache.stale||S.commentsCache.stale)&&(0,t.jsxs)(m.Alert,{className:"border-amber-500/30 bg-amber-500/10",children:[(0,t.jsx)(r.AlertTriangle,{}),(0,t.jsx)(m.AlertDescription,{children:N("staleTicket")})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)(p.Badge,{children:S.status}),S.issueType&&(0,t.jsx)(p.Badge,{children:S.issueType}),S.priority&&(0,t.jsx)(p.Badge,{className:I[S.priority.trim().toLowerCase()],children:S.priority})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsxs)(f.Button,{onClick:()=>P(!0),size:"sm",variant:"outline",children:[(0,t.jsx)(n.GitBranch,{})," ",N("worktreeAction")]}),(0,t.jsx)(f.Button,{asChild:!0,size:"sm",variant:"outline",children:(0,t.jsxs)(j.Link,{href:`/jira/tickets/${encodeURIComponent(S.key)}`,children:[(0,t.jsx)(i,{})," ",N("openFullDetails")]})}),(0,t.jsx)(f.Button,{asChild:!0,size:"sm",variant:"outline",children:(0,t.jsxs)("a",{href:S.jiraUrl,rel:"noreferrer",target:"_blank",children:[(0,t.jsx)(a.ExternalLink,{})," ",N("openInJira")]})})]})]}),(0,t.jsx)(c.JiraTicketActions,{onTicketChange:M,ticket:S}),(0,t.jsx)(C,{ticket:S}),(0,t.jsx)("section",{children:(0,t.jsx)(g.Card,{size:"sm",children:(0,t.jsx)(g.CardContent,{children:(0,t.jsx)(d.JiraRichTextBlock,{content:S.descriptionContent,header:(0,t.jsx)("h3",{className:"font-semibold",children:N("descriptionTitle")}),headerClassName:"border-b pb-2",value:S.description})})})}),(S.labels.length>0||S.components.length>0||S.fixVersions.length>0||S.sprintNames.length>0)&&(0,t.jsxs)("section",{children:[(0,t.jsx)("h3",{className:"mb-2 font-semibold",children:N("classification")}),(0,t.jsxs)("dl",{className:"grid gap-3 text-sm sm:grid-cols-2",children:[S.labels.length>0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("dt",{className:"text-muted-foreground",children:N("labels")}),(0,t.jsx)("dd",{className:"mt-1 flex flex-wrap gap-1",children:S.labels.map(e=>(0,t.jsx)(p.Badge,{children:e},e))})]}),S.components.length>0&&(0,t.jsx)(E,{label:N("components"),values:S.components.map(e=>e.name)}),S.fixVersions.length>0&&(0,t.jsx)(E,{label:N("fixVersions"),values:S.fixVersions.map(e=>e.name)}),S.sprintNames.length>0&&(0,t.jsx)(E,{label:N("sprints"),values:S.sprintNames})]})]}),(S.parent||S.subtasks.length>0||S.issueLinks.length>0)&&(0,t.jsxs)("section",{children:[(0,t.jsx)("h3",{className:"mb-2 font-semibold",children:N("relatedIssues")}),(0,t.jsx)(v.ItemGroup,{className:"gap-2",children:[...S.parent?[S.parent]:[],...S.subtasks,...S.issueLinks].map((e,r)=>(0,t.jsx)(v.Item,{asChild:!0,size:"xs",variant:"outline",children:(0,t.jsxs)(j.Link,{href:`/jira/tickets/${encodeURIComponent(e.key)}`,children:[(0,t.jsxs)(v.ItemContent,{children:[(0,t.jsxs)(v.ItemTitle,{className:"leading-tight",children:[e.key," · ",e.summary]}),(0,t.jsx)(v.ItemDescription,{className:"leading-tight",children:e.relationship})]}),(0,t.jsx)(v.ItemActions,{children:e.status&&(0,t.jsx)(p.Badge,{children:e.status})})]})},`${e.key}-${r}`))})]}),S.attachments.length>0&&(0,t.jsxs)("section",{children:[(0,t.jsx)("h3",{className:"mb-2 font-semibold",children:N("attachments")}),(0,t.jsx)(v.ItemGroup,{className:"gap-2",children:S.attachments.map(e=>(0,t.jsx)(v.Item,{asChild:!0,variant:"outline",children:(0,t.jsxs)("a",{href:e.contentUrl??"#",rel:"noreferrer",target:"_blank",children:[(0,t.jsx)(v.ItemContent,{children:(0,t.jsx)(v.ItemTitle,{children:e.filename})}),(0,t.jsx)(v.ItemActions,{className:"text-xs text-muted-foreground",children:e.size?`${Math.round(e.size/1024)} KB`:""})]})},e.id))})]}),(0,t.jsx)(u.JiraTicketComments,{onTicketChange:M,ticket:S})]})]})]})}),S&&(0,t.jsx)(k.TicketWorktreeDialog,{issueKey:S.key,onOpenChange:P,open:L})]})}],356505)}]);
@@ -1,22 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,741120,e=>{"use strict";let t=(0,e.i(456420).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",0,t],741120)},711241,e=>{"use strict";let t=(0,e.i(456420).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",0,t],711241)},508734,e=>{"use strict";let t=(0,e.i(456420).default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);e.s(["Copy",0,t],508734)},395925,e=>{"use strict";let t=(0,e.i(456420).default)("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);e.s(["RotateCcw",0,t],395925)},489002,e=>{"use strict";let t=(0,e.i(456420).default)("circle-stop",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]]);e.s(["CircleStop",0,t],489002)},183691,e=>{"use strict";let t=`
2
- id name description script targetKind targetAgentId targetRepositoryId
3
- restartPolicy restartLimit quickActionEnabled quickActionIconKey quickActionButtonVariant
4
- notificationsEnabled
5
- archivedAt createdAt updatedAt
6
- targetAgent { id name hostname connectionStatus capabilities }
7
- targetRepository { id name displayOrigin }
8
- `,a=`
9
- id displayNumber commandId origin status snapshotName snapshotDescription
10
- snapshotScript snapshotTargetKind snapshotRestartPolicy snapshotRestartLimit
11
- snapshotNotificationsEnabled snapshot
12
- agentId worktreeId agentName agentHostname worktreePath worktreeBranch
13
- restartCount stopRequested nextRestartAt predecessorRunId error exitCode signal
14
- queuedAt startedAt finishedAt archivedAt createdAt updatedAt
15
- command { id name }
16
- agent { id name hostname connectionStatus capabilities }
17
- worktree { id folder branch highlightColor }
18
- attempts { id attempt status exitCode signal error startedAt finishedAt }
19
- `;e.s(["COMMAND_DEFINITION_FIELDS",0,t,"COMMAND_RUN_FIELDS",0,a,"activeCommandRun",0,e=>["QUEUED","RUNNING","RESTARTING","CANCELLING"].includes(e),"commandOriginKey",0,e=>{switch(e){case"QUICK_ACTION":return"originQuickAction";case"WORKFLOW":return"originWorkflow";case"RERUN":return"originRerun";default:return"originManual"}},"commandRestartKey",0,e=>{switch(e){case"ON_FAILURE":return"onFailure";case"ALWAYS":return"always";default:return"never"}},"commandStatusKey",0,e=>{switch(e){case"QUEUED":return"statusQueued";case"RUNNING":return"statusRunning";case"RESTARTING":return"statusRestarting";case"CANCELLING":return"statusCancelling";case"SUCCEEDED":return"statusSucceeded";case"FAILED":return"statusFailed";case"CANCELLED":return"statusCancelled";case"TIMED_OUT":return"statusTimedOut";default:return"status"}},"commandTargetKey",0,e=>{switch(e){case"ANY_AGENT_HOME":return"anyAgentHome";case"SPECIFIC_AGENT_HOME":return"specificAgentHome";case"REPOSITORY_WORKTREE":return"repositoryWorktree";default:return"anyWorktree"}}])},630299,e=>{"use strict";let t=(0,e.i(456420).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["default",0,t])},566595,e=>{"use strict";var t=e.i(630299);e.s(["Search",()=>t.default])},515288,e=>{"use strict";var t=e.i(843476),a=e.i(975157);e.s(["Card",0,function({className:e,size:r="default",...s}){return(0,t.jsx)("div",{"data-slot":"card","data-size":r,className:(0,a.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>[data-slot=card-header]]:pt-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...s})},"CardAction",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-action",className:(0,a.cn)("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...r})},"CardContent",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,a.cn)("px-(--card-spacing)",e),...r})},"CardDescription",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,a.cn)("text-sm text-muted-foreground",e),...r})},"CardFooter",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-footer",className:(0,a.cn)("flex items-center rounded-b-xl border-t bg-muted/50 p-(--card-spacing)",e),...r})},"CardHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,a.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl bg-muted/40 px-(--card-spacing) py-(--card-spacing) not-last:border-b has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]",e),...r})},"CardTitle",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,a.cn)("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e),...r})}])},929592,e=>{"use strict";var t=e.i(843476),a=e.i(225913),r=e.i(975157);let s=(0,a.cva)("group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"}},defaultVariants:{variant:"default"}});e.s(["Alert",0,function({className:e,variant:a,...n}){return(0,t.jsx)("div",{"data-slot":"alert",role:"alert",className:(0,r.cn)(s({variant:a}),e),...n})},"AlertDescription",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-description",className:(0,r.cn)("text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4",e),...a})},"AlertTitle",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-title",className:(0,r.cn)("font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground",e),...a})}])},784774,e=>{"use strict";var t=e.i(843476),a=e.i(975157);e.s(["Table",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,t.jsx)("table",{"data-slot":"table",className:(0,a.cn)("w-full caption-bottom text-sm",e),...r})})},"TableBody",0,function({className:e,...r}){return(0,t.jsx)("tbody",{"data-slot":"table-body",className:(0,a.cn)("[&_tr:last-child]:border-0",e),...r})},"TableCell",0,function({className:e,...r}){return(0,t.jsx)("td",{"data-slot":"table-cell",className:(0,a.cn)("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",e),...r})},"TableFooter",0,function({className:e,...r}){return(0,t.jsx)("tfoot",{"data-slot":"table-footer",className:(0,a.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...r})},"TableHead",0,function({className:e,...r}){return(0,t.jsx)("th",{"data-slot":"table-head",className:(0,a.cn)("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",e),...r})},"TableHeader",0,function({className:e,...r}){return(0,t.jsx)("thead",{"data-slot":"table-header",className:(0,a.cn)("[&_tr]:border-b",e),...r})},"TableRow",0,function({className:e,...r}){return(0,t.jsx)("tr",{"data-slot":"table-row",className:(0,a.cn)("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",e),...r})}])},26495,e=>{"use strict";let t=(0,e.i(456420).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["default",0,t])},144716,e=>{"use strict";let t=(0,e.i(456420).default)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);e.s(["default",0,t])},716327,e=>{"use strict";var t=e.i(26495);e.s(["ChevronDown",()=>t.default])},462777,e=>{"use strict";async function t(e){if(navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(e);return}catch{}let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.append(t),t.select();let a=document.execCommand("copy");if(t.remove(),!a)throw Error("Copy is not supported by this browser")}e.s(["copyText",0,t,"createClientId",0,function(){try{if(globalThis.crypto?.randomUUID)return globalThis.crypto.randomUUID()}catch{}if(globalThis.crypto?.getRandomValues)try{let e=globalThis.crypto.getRandomValues(new Uint8Array(16));return Array.from(e,e=>e.toString(16).padStart(2,"0")).join("")}catch{}return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}])},867927,e=>{"use strict";var t=e.i(986253);e.s(["ChevronRight",()=>t.default])},635416,e=>{"use strict";let t=(0,e.i(456420).default)("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);e.s(["ArrowDown",0,t],635416)},320228,e=>{"use strict";var t=e.i(843476),a=e.i(975157);e.s(["DetailItem",0,function({label:e,children:r,mono:s=!1,className:n,...i}){return(0,t.jsxs)("div",{className:(0,a.cn)("min-w-0",n),...i,children:[(0,t.jsx)("dt",{className:"text-xs text-muted-foreground",children:e}),(0,t.jsx)("dd",{className:(0,a.cn)("mt-0.5 text-sm tabular-nums",s&&"break-all font-mono"),children:r})]})},"DetailList",0,function({className:e,...r}){return(0,t.jsx)("dl",{className:(0,a.cn)("grid gap-3 text-sm",e),...r})}])},456539,e=>{"use strict";var t=e.i(144716);e.s(["ChevronUp",()=>t.default])},119756,e=>{"use strict";var t=e.i(843476),a=e.i(635416),r=e.i(716327),s=e.i(867927),n=e.i(456539),i=e.i(741120),l=e.i(566595),d=e.i(271645),o=e.i(519455),c=e.i(515288),u=e.i(793479),m=e.i(975157);let h={incremental:!0,decorations:{matchBackground:"#713f12",matchOverviewRuler:"#f59e0b",activeMatchBackground:"#f59e0b",activeMatchColorOverviewRuler:"#fbbf24"}};e.s(["TerminalOutputCard",0,function({sourceKey:p,title:x,entries:f,emptyText:g,followLabel:b,fitLabel:v,searchLabel:j,previousMatchLabel:C,nextMatchLabel:y,ariaLabel:w,open:N=!0,onOpenChange:k,collapseLabel:R,expandLabel:A,className:T}){let[I,D]=(0,d.useState)(null),E=(0,d.useRef)(null),S=(0,d.useRef)(null),L=(0,d.useRef)(null),M=(0,d.useRef)(f),$=(0,d.useRef)(new Set),O=(0,d.useRef)(null),B=(0,d.useRef)(!0),[F,z]=(0,d.useState)(!0),_=(0,d.useRef)(""),[P,U]=(0,d.useState)(""),[q,H]=(0,d.useState)({resultIndex:-1,resultCount:0}),K=(0,d.useCallback)((e,t="next")=>{_.current=e,U(e);let a=L.current;if(!e){a?.clearDecorations(),H({resultIndex:-1,resultCount:0});return}"previous"===t?a?.findPrevious(e,h):a?.findNext(e,h)},[]),G=(0,d.useCallback)(e=>{let t=E.current;if(t)for(let a of e){if($.current.has(a.id))continue;let e=$.current.size>0;$.current.add(a.id);let r=a.dividerKey??a.divider;if(a.divider&&r!==O.current){O.current=r??null;let s=e?"\r\n":"";t.write(`${s}\x1b[90m── ${a.divider} ──\x1b[0m\r
20
- `)}t.write(a.data,()=>{B.current&&t.scrollToBottom()})}},[]);(0,d.useEffect)(()=>{M.current=f,G(f)},[f,G]),(0,d.useEffect)(()=>{if(!I||!N)return;let t=!1,a=null,r=null,s=null;return $.current.clear(),O.current=null,B.current=!0,Promise.all([e.A(537138),e.A(359439),e.A(664183)]).then(([{Terminal:e},{FitAddon:n},{SearchAddon:i}])=>{if(t)return;z(!0);let l=new e({allowProposedApi:!0,convertEol:!0,cursorBlink:!1,disableStdin:!0,fontFamily:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace',fontSize:13,scrollback:1e5,theme:{background:"#09090b",foreground:"#fafafa",cursor:"#a1a1aa",selectionBackground:"#3f3f46"}}),d=new n,o=new i;l.loadAddon(d),l.loadAddon(o),l.open(I),d.fit(),E.current=l,S.current=d,L.current=o,s=o.onDidChangeResults(e=>H(e)),r=l.onScroll(()=>{let e=l.buffer.active.viewportY>=l.buffer.active.baseY;B.current=e,z(e)}),(a=new ResizeObserver(()=>d.fit())).observe(I),G(M.current),_.current&&o.findNext(_.current,h)}),()=>{t=!0,a?.disconnect(),r?.dispose(),s?.dispose(),E.current?.dispose(),E.current=null,S.current=null,L.current=null}},[N,p,I,G]);let W=q.resultCount?`${Math.max(0,q.resultIndex+1)}/${q.resultCount}`:"0/0";return(0,t.jsxs)(c.Card,{className:(0,m.cn)("gap-0 py-0",T),children:[(0,t.jsxs)(c.CardHeader,{children:[(0,t.jsx)(c.CardTitle,{className:"min-w-0",children:k?(0,t.jsx)(o.Button,{"aria-expanded":N,className:"-mx-2 -my-1 h-auto w-full min-w-0 justify-start px-2 py-1 font-heading text-base leading-snug font-medium aria-expanded:bg-transparent aria-expanded:hover:bg-muted dark:aria-expanded:bg-transparent dark:aria-expanded:hover:bg-muted/50",onClick:()=>k(!N),type:"button",variant:"ghost",children:(0,t.jsx)("span",{className:"truncate",children:x})}):x}),(0,t.jsxs)(c.CardAction,{className:"flex items-center gap-2",children:[N&&(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(l.Search,{className:"pointer-events-none absolute top-1/2 left-2 size-3.5 -translate-y-1/2 text-muted-foreground"}),(0,t.jsx)(u.Input,{"aria-label":j,className:"h-7 w-36 pr-10 pl-7 text-xs sm:w-52",onChange:e=>K(e.target.value),onKeyDown:e=>{"Enter"===e.key?(e.preventDefault(),K(P,e.shiftKey?"previous":"next")):"Escape"===e.key&&K("")},placeholder:j,type:"search",value:P}),(0,t.jsx)("span",{className:"pointer-events-none absolute top-1/2 right-2 -translate-y-1/2 font-mono text-[10px] text-muted-foreground tabular-nums",children:W})]}),(0,t.jsx)(o.Button,{"aria-label":C,disabled:!P||0===q.resultCount,onClick:()=>K(P,"previous"),size:"icon-sm",title:C,type:"button",variant:"ghost",children:(0,t.jsx)(n.ChevronUp,{})}),(0,t.jsx)(o.Button,{"aria-label":y,disabled:!P||0===q.resultCount,onClick:()=>K(P),size:"icon-sm",title:y,type:"button",variant:"ghost",children:(0,t.jsx)(r.ChevronDown,{})})]}),N&&(0,t.jsx)(o.Button,{"aria-label":v,size:"icon-sm",title:v,variant:"outline",onClick:()=>S.current?.fit(),children:(0,t.jsx)(i.RefreshCw,{})}),k&&(0,t.jsx)(o.Button,{"aria-expanded":N,"aria-label":N?R:A,className:"aria-expanded:bg-transparent aria-expanded:hover:bg-muted dark:aria-expanded:bg-transparent dark:aria-expanded:hover:bg-muted/50",onClick:()=>k(!N),size:"icon-sm",title:N?R:A,type:"button",variant:"ghost",children:N?(0,t.jsx)(r.ChevronDown,{className:"size-5"}):(0,t.jsx)(s.ChevronRight,{className:"size-5"})})]})]}),N&&(0,t.jsxs)("div",{className:"relative bg-[#09090b]",children:[(0,t.jsx)("div",{"aria-label":w,className:"h-[min(60vh,42rem)] px-2 pb-2",ref:D,role:"log"}),!f.length&&(0,t.jsx)("p",{className:"pointer-events-none absolute inset-0 p-4 font-mono text-xs text-neutral-400",children:g}),!F&&(0,t.jsx)(o.Button,{"aria-label":b,className:"absolute right-4 bottom-4 z-10 border-white/15 bg-neutral-800/70 text-white shadow-lg backdrop-blur-sm hover:bg-neutral-700/90 hover:text-white",onClick:()=>{B.current=!0,z(!0),E.current?.scrollToBottom()},size:"icon",title:b,type:"button",variant:"outline",children:(0,t.jsx)(a.ArrowDown,{})})]})]})},"decodeTerminalBase64",0,function(e){let t=atob(e),a=new Uint8Array(t.length);for(let e=0;e<t.length;e+=1)a[e]=t.charCodeAt(e);return a}])},173115,e=>{"use strict";var t=e.i(843476),a=e.i(711241),r=e.i(689664),s=e.i(489002),n=e.i(508734),i=e.i(482022),l=e.i(259911),d=e.i(395925),o=e.i(948148),c=e.i(271645),u=e.i(816484),m=e.i(320228),h=e.i(119756),p=e.i(929592),x=e.i(487486),f=e.i(519455),g=e.i(515288),b=e.i(784774),v=e.i(520133),j=e.i(42308),C=e.i(462777),y=e.i(637611),w=e.i(975157),N=e.i(171502),k=e.i(183691);let R="id attemptId attemptNumber sequence stream dataBase64 byteLength createdAt",A=[];function T(e){let t=Math.max(0,Math.floor(e/1e3)),a=Math.floor(t/3600),r=Math.floor(t%3600/60),s=t%60;return a>0?`${a}h${r>0?` ${r}m`:""}`:r>0?`${r}m${s>0?` ${s}s`:""}`:`${s}s`}function I({startedAt:e}){let a=Date.parse(e),r=(0,j.useNow)(Number.isFinite(a)?a:null);return Number.isFinite(a)&&null!==r?(0,t.jsx)(t.Fragment,{children:T(r-a)}):(0,t.jsx)(t.Fragment,{children:"—"})}function D({startedAt:e,finishedAt:a}){if(!e)return(0,t.jsx)(t.Fragment,{children:"—"});if(!a)return(0,t.jsx)(I,{startedAt:e});let r=Date.parse(e),s=Date.parse(a);return Number.isFinite(r)&&Number.isFinite(s)?(0,t.jsx)(t.Fragment,{children:T(s-r)}):(0,t.jsx)(t.Fragment,{children:"—"})}function E(e,t){let a=new Map(e.map(e=>[e.id,e]));for(let e of t)a.set(e.id,e);return[...a.values()].sort((e,t)=>e.attemptNumber-t.attemptNumber||e.sequence-t.sequence||e.id.localeCompare(t.id))}e.s(["CommandRunPage",0,function({runId:e}){let j=(0,o.useTranslations)("commands"),T=(0,v.useRouter)(),[I,S]=(0,c.useState)(null),[L,M]=(0,c.useState)({runId:e,chunks:[]}),$=L.runId===e?L.chunks:A,[O,B]=(0,c.useState)(null),[F,z]=(0,c.useState)(!1),[_,P]=(0,c.useState)(!1),U=(0,c.useCallback)(async()=>{try{let t=await (0,y.controlPlaneRequest)(`query CommandRunDetail($id: ID!) { commandRun(id: $id) { ${k.COMMAND_RUN_FIELDS} predecessor { id displayNumber } successor { id displayNumber } } }`,{id:e});S(t.commandRun),B(t.commandRun?null:j("runNotFound"))}catch(e){B(e instanceof Error?e.message:String(e))}},[e,j]);(0,c.useEffect)(()=>{let t=!1,a=!0,r=[],s=(0,y.controlPlaneSubscriptions)().subscribe({query:`subscription CommandOutput($runId: ID!) { commandRunOutputAdded(runId: $runId) { ${R} } }`,variables:{runId:e}},{next:t=>{let s=t.data?.commandRunOutputAdded;s&&(a?r.push(s):M(t=>({runId:e,chunks:E(t.runId===e?t.chunks:[],[s])})))},error:()=>void 0,complete:()=>void 0});return(async()=>{let s=[],n=0,i=-1;for(;!t;){let{commandRunOutput:t}=await (0,y.controlPlaneRequest)(`query CommandOutput($runId: ID!, $afterAttempt: Int!, $afterSequence: Int!) {
21
- commandRunOutput(runId: $runId, afterAttempt: $afterAttempt, afterSequence: $afterSequence, first: 1000) { ${R} }
22
- }`,{runId:e,afterAttempt:n,afterSequence:i});if(s.push(...t),t.length<1e3)break;let a=t.at(-1);if(!a)break;n=a.attemptNumber,i=a.sequence}t||(a=!1,M({runId:e,chunks:E(s,r)}),r=[])})().catch(s=>{t||(a=!1,M(t=>({runId:e,chunks:E(t.runId===e?t.chunks:[],r)})),r=[],B(s instanceof Error?s.message:String(s)))}),()=>{t=!0,s()}},[e]),(0,c.useEffect)(()=>{let t=window.setTimeout(()=>void U(),0),a=(0,y.controlPlaneSubscriptions)().subscribe({query:"subscription CommandRunStatus($runId: ID!) { commandRunChanged(runId: $runId) { id status updatedAt } }",variables:{runId:e}},{next:()=>void U(),error:()=>void 0,complete:()=>void 0});return()=>{window.clearTimeout(t),a()}},[U,e]);let q=async t=>{z(!0);try{if("terminate"===t)await (0,y.controlPlaneRequest)("mutation TerminateCommandRun($id: ID!) { terminateCommandRun(id: $id) { id status } }",{id:e}),await U();else{let t=await (0,y.controlPlaneRequest)("mutation RerunCommandRun($id: ID!) { rerunCommandRun(id: $id) { id } }",{id:e});T.push(`/commands/runs/${t.rerunCommandRun.id}`)}}catch(e){B(e instanceof Error?e.message:String(e))}finally{z(!1)}},H=async e=>{try{await (0,C.copyText)(e),P(!0)}catch{B(j("copyFailed"))}},K=(0,c.useMemo)(()=>$.map(e=>({id:e.id,data:(0,h.decodeTerminalBase64)(e.dataBase64),divider:j("attemptDivider",{number:e.attemptNumber}),dividerKey:String(e.attemptNumber)})),[$,j]);if(!I&&!O)return(0,t.jsx)(g.Card,{className:"h-96 animate-pulse"});if(!I)return(0,t.jsx)(p.Alert,{variant:"destructive",children:(0,t.jsx)(p.AlertDescription,{children:O})});let G=I.worktree?.highlightColor;return(0,t.jsxs)("div",{className:"space-y-5",children:[(0,t.jsxs)("div",{className:(0,w.cn)("flex flex-wrap items-center gap-3",G&&"rounded-lg border-l-4 p-4",G&&N.worktreeHighlightBackgroundClasses[G],G&&N.worktreeHighlightAccentClasses[G]),"data-testid":"command-run-summary",children:[(0,t.jsx)(f.Button,{asChild:!0,size:"icon",variant:"ghost",children:(0,t.jsx)(v.Link,{href:"/commands",children:(0,t.jsx)(a.ArrowLeft,{})})}),(0,t.jsxs)("div",{className:"mr-auto",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("h1",{className:"text-2xl font-semibold",children:I.snapshotName}),(0,t.jsx)(x.Badge,{variant:"SUCCEEDED"===I.status?"default":"FAILED"===I.status?"destructive":"secondary",children:j((0,k.commandStatusKey)(I.status))})]}),(0,t.jsxs)("p",{className:"text-sm text-muted-foreground",children:[j("runNumber",{number:I.displayNumber})," ·"," ",j((0,k.commandOriginKey)(I.origin))]})]}),I.commandId&&(0,t.jsx)(f.Button,{asChild:!0,variant:"outline",children:(0,t.jsxs)(v.Link,{href:`/commands/${I.commandId}/edit`,children:[(0,t.jsx)(l.FilePenLine,{}),j("editCommand")]})}),(0,t.jsxs)(f.Button,{disabled:F,variant:"outline",onClick:()=>void q("rerun"),children:[(0,t.jsx)(d.RotateCcw,{}),j("rerun")]}),(0,k.activeCommandRun)(I.status)&&(0,t.jsxs)(f.Button,{disabled:F,variant:"destructive",onClick:()=>void q("terminate"),children:[(0,t.jsx)(s.CircleStop,{}),j("terminate")]})]}),O&&(0,t.jsx)(p.Alert,{variant:"destructive",children:(0,t.jsx)(p.AlertDescription,{children:O})}),I.error&&(0,t.jsxs)(p.Alert,{variant:"destructive",children:[(0,t.jsx)(p.AlertTitle,{children:j("runError")}),(0,t.jsx)(p.AlertDescription,{children:I.error})]}),(0,t.jsxs)(g.Card,{children:[(0,t.jsx)(g.CardHeader,{children:(0,t.jsx)(g.CardTitle,{children:j("overview")})}),(0,t.jsx)(g.CardContent,{children:(0,t.jsxs)(m.DetailList,{className:"sm:grid-cols-6",children:[(0,t.jsxs)(m.DetailItem,{className:"sm:col-span-3",label:j("agent"),children:[I.agentId?(0,t.jsx)(f.Button,{asChild:!0,className:"h-auto w-full min-w-0 items-start justify-start px-0 text-left whitespace-normal",variant:"link",children:(0,t.jsxs)(v.Link,{href:`/agents/${I.agentId}`,children:[(0,t.jsx)("span",{className:"min-w-0 break-words",children:I.agentName}),(0,t.jsx)(i.ExternalLink,{})]})}):(0,t.jsx)("p",{className:"break-words",children:I.agentName}),(0,t.jsx)("p",{className:"break-words text-xs text-muted-foreground",children:I.agentHostname})]}),(0,t.jsx)(m.DetailItem,{className:"sm:col-span-3",label:j("worktree"),children:I.worktreeId?(0,t.jsx)(f.Button,{asChild:!0,className:"h-auto w-full min-w-0 items-start justify-start px-0 text-left whitespace-normal",variant:"link",children:(0,t.jsxs)(v.Link,{href:`/worktrees/${I.worktreeId}`,children:[(0,t.jsx)("span",{className:"min-w-0 break-words",children:I.worktreeBranch||I.worktreePath}),(0,t.jsx)(i.ExternalLink,{})]})}):I.snapshotTargetKind.includes("WORKTREE")?(0,t.jsx)("p",{className:"break-words",children:I.worktreeBranch||I.worktreePath||j("targetUnavailable")}):(0,t.jsx)("p",{children:j("agentHome")})}),(0,t.jsxs)(m.DetailItem,{className:"sm:col-span-2",label:j("restart"),children:[(0,t.jsxs)("p",{children:[j((0,k.commandRestartKey)(I.snapshotRestartPolicy)),"NEVER"!==I.snapshotRestartPolicy&&(0,t.jsxs)(t.Fragment,{children:[" · ",I.restartCount,"/",I.snapshotRestartLimit??"∞"]})]}),I.nextRestartAt&&(0,t.jsxs)("p",{className:"text-xs text-muted-foreground",children:[j("nextRestart")," ",(0,t.jsx)(u.DateTime,{value:I.nextRestartAt})]})]}),(0,t.jsx)(m.DetailItem,{className:"sm:col-span-2",label:j("started"),children:(0,t.jsx)(u.DateTime,{value:I.startedAt})}),(0,t.jsx)(m.DetailItem,{className:"sm:col-span-2",label:j("duration"),children:(0,t.jsx)(D,{finishedAt:I.finishedAt,startedAt:I.startedAt})})]})})]}),(0,t.jsx)(h.TerminalOutputCard,{ariaLabel:j("terminalOutput"),emptyText:j("noOutput"),entries:K,fitLabel:j("fitTerminal"),followLabel:j("followOutput"),nextMatchLabel:j("nextTerminalMatch"),previousMatchLabel:j("previousTerminalMatch"),searchLabel:j("searchTerminal"),sourceKey:e,title:j("terminalOutput")},e),(0,t.jsxs)(g.Card,{className:"gap-0 py-0",children:[(0,t.jsx)(g.CardHeader,{children:(0,t.jsx)(g.CardTitle,{children:j("attempts")})}),(0,t.jsxs)(b.Table,{children:[(0,t.jsx)(b.TableHeader,{children:(0,t.jsxs)(b.TableRow,{children:[(0,t.jsx)(b.TableHead,{children:"#"}),(0,t.jsx)(b.TableHead,{children:j("status")}),(0,t.jsx)(b.TableHead,{children:j("started")}),(0,t.jsx)(b.TableHead,{children:j("finished")}),(0,t.jsx)(b.TableHead,{children:j("result")})]})}),(0,t.jsx)(b.TableBody,{children:I.attempts.map(e=>(0,t.jsxs)(b.TableRow,{children:[(0,t.jsx)(b.TableCell,{children:e.attempt}),(0,t.jsx)(b.TableCell,{children:(0,t.jsx)(x.Badge,{variant:"outline",children:j((0,k.commandStatusKey)(e.status))})}),(0,t.jsx)(b.TableCell,{children:(0,t.jsx)(u.DateTime,{value:e.startedAt})}),(0,t.jsx)(b.TableCell,{children:(0,t.jsx)(u.DateTime,{value:e.finishedAt})}),(0,t.jsx)(b.TableCell,{children:null!==e.exitCode?j("exitCode",{code:e.exitCode}):e.signal||e.error||"—"})]},e.id))})]})]}),(0,t.jsxs)(g.Card,{children:[(0,t.jsxs)(g.CardHeader,{children:[(0,t.jsx)(g.CardTitle,{children:j("snapshot")}),(0,t.jsx)(g.CardAction,{children:(0,t.jsxs)(f.Button,{onClick:()=>void H(I.snapshotScript),size:"sm",type:"button",variant:"outline",children:[_?(0,t.jsx)(r.Check,{}):(0,t.jsx)(n.Copy,{}),_?j("commandCopied"):j("copyCommand")]})})]}),(0,t.jsx)(g.CardContent,{children:(0,t.jsx)("pre",{className:"overflow-x-auto whitespace-pre-wrap rounded-md bg-muted p-4 text-xs",children:I.snapshotScript})})]})]})}])},537138,e=>{e.v(t=>Promise.all(["static/chunks/3yddjzup-8go1.js"].map(t=>e.l(t))).then(()=>t(299894)))},359439,e=>{e.v(t=>Promise.all(["static/chunks/3btt4msbp4kvs.js"].map(t=>e.l(t))).then(()=>t(193309)))},664183,e=>{e.v(t=>Promise.all(["static/chunks/2kuorxz9bzz0w.js"].map(t=>e.l(t))).then(()=>t(306433)))}]);
@@ -1,23 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,175696,e=>{"use strict";var i=e.i(861745),s=e.i(843476);e.s(["default",0,function({locale:e,...t}){if(!e)throw Error(void 0);return(0,s.jsx)(i.IntlProvider,{locale:e,...t})}])},763141,e=>{"use strict";var i=e.i(843476),s=e.i(271645),t=e.i(42693),a=e.i(97194),n=e.i(456420);let r=(0,n.default)("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]),l=(0,n.default)("chart-no-axes-combined",[["path",{d:"M12 16v5",key:"zza2cw"}],["path",{d:"M16 14.639V21",key:"1s85h0"}],["path",{d:"M20 10.656V21",key:"q45596"}],["path",{d:"m22 3-8.646 8.646a.5.5 0 0 1-.708 0L9.354 8.354a.5.5 0 0 0-.707 0L2 15",key:"1fw8x9"}],["path",{d:"M4 18.463V21",key:"1otddq"}],["path",{d:"M8 14.656V21",key:"1t2idw"}]]),d=(0,n.default)("combine",[["path",{d:"M14 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"1l7d7l"}],["path",{d:"M19 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"9955pe"}],["path",{d:"m7 15 3 3",key:"4hkfgk"}],["path",{d:"m7 21 3-3H5a2 2 0 0 1-2-2v-2",key:"1xljwe"}],["rect",{x:"14",y:"14",width:"7",height:"7",rx:"1",key:"1cdgtw"}],["rect",{x:"3",y:"3",width:"7",height:"7",rx:"1",key:"zi3rio"}]]);var o=e.i(55677);let c=(0,n.default)("circle-dollar-sign",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]]);var h=e.i(397142),u=e.i(809584),x=e.i(567745),m=e.i(634398),p=e.i(269846),f=e.i(150285),j=e.i(93384),b=e.i(835079),g=e.i(259911),v=e.i(902434),v=v,k=e.i(758925),w=e.i(927735);let y=(0,n.default)("messages-square",[["path",{d:"M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z",key:"1n2ejm"}],["path",{d:"M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1",key:"1qfcsi"}]]);var C=e.i(549676);let N=(0,n.default)("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]),S=(0,n.default)("panel-right",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);var L=e.i(966473),A=e.i(166794),T=e.i(986206),D=e.i(584026),M=e.i(328623),E=e.i(443537),R=e.i(604139);let I=(0,n.default)("timer-reset",[["path",{d:"M10 2h4",key:"n1abiw"}],["path",{d:"M12 14v-4",key:"1evpnu"}],["path",{d:"M4 13a8 8 0 0 1 8-7 8 8 0 1 1-5.3 14L4 17.6",key:"1ts96g"}],["path",{d:"M9 17H4v5",key:"8t5av"}]]);var P=e.i(932333),z=e.i(747925),W=e.i(263676),B=e.i(948148),q=e.i(519455);let $=(0,n.default)("list-x",[["path",{d:"M16 5H3",key:"m91uny"}],["path",{d:"M11 12H3",key:"51ecnj"}],["path",{d:"M16 19H3",key:"zzsher"}],["path",{d:"m15.5 9.5 5 5",key:"ytk86i"}],["path",{d:"m20.5 9.5-5 5",key:"17o44f"}]]),_=(0,n.default)("volume-2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]),H=(0,n.default)("volume-x",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]]);var V=e.i(755146),O=e.i(225913),U=e.i(586011);let F="(max-width: 767px)";function G(e){let i=window.matchMedia(F);return i.addEventListener("change",e),()=>i.removeEventListener("change",e)}function K(){return window.matchMedia(F).matches}function X(){return!1}var Q=e.i(975157);e.i(793479),e.i(772436);var Z=e.i(980376);e.i(302747);var J=e.i(746798);let Y=s.createContext(null);function ee(){let e=s.useContext(Y);if(!e)throw Error("useSidebar must be used within a SidebarProvider.");return e}function ei({defaultOpen:e=!0,open:t,onOpenChange:a,cookieName:n="sidebar_state",keyboardShortcut:r="b",className:l,style:d,children:o,...c}){let h=s.useSyncExternalStore(G,K,X),[u,x]=s.useState(!1),[m,p]=s.useState(e),f=t??m,j=s.useCallback(e=>{let i="function"==typeof e?e(f):e;a?a(i):p(i),document.cookie=`${n}=${i}; path=/; max-age=604800`},[n,a,f]),b=s.useCallback(()=>h?x(e=>!e):j(e=>!e),[h,j,x]);s.useEffect(()=>{if(null===r)return;let e=e=>{e.key.toLowerCase()===r.toLowerCase()&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),b())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[r,b]);let g=f?"expanded":"collapsed",v=s.useMemo(()=>({state:g,open:f,setOpen:j,isMobile:h,openMobile:u,setOpenMobile:x,toggleSidebar:b}),[g,f,j,h,u,x,b]);return(0,i.jsx)(Y.Provider,{value:v,children:(0,i.jsx)("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":"16rem","--sidebar-width-icon":"3rem",...d},className:(0,Q.cn)("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",l),...c,children:o})})}function es({side:e="left",variant:s="sidebar",collapsible:t="offcanvas",mobileTitle:a="Sidebar",mobileDescription:n="Displays the mobile sidebar.",className:r,children:l,dir:d,...o}){let{isMobile:c,state:h,openMobile:u,setOpenMobile:x}=ee();return"none"===t?(0,i.jsx)("div",{"data-slot":"sidebar",className:(0,Q.cn)("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",r),...o,children:l}):c?(0,i.jsx)(Z.Sheet,{open:u,onOpenChange:x,...o,children:(0,i.jsxs)(Z.SheetContent,{dir:d,"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":"18rem"},side:e,children:[(0,i.jsxs)(Z.SheetHeader,{className:"sr-only",children:[(0,i.jsx)(Z.SheetTitle,{children:a}),(0,i.jsx)(Z.SheetDescription,{children:n})]}),(0,i.jsx)("div",{className:"flex h-full w-full flex-col",children:l})]})}):(0,i.jsxs)("div",{className:"group peer hidden text-sidebar-foreground md:block","data-state":h,"data-collapsible":"collapsed"===h?t:"","data-variant":s,"data-side":e,"data-slot":"sidebar",children:[(0,i.jsx)("div",{"data-slot":"sidebar-gap",className:(0,Q.cn)("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180","floating"===s||"inset"===s?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),(0,i.jsx)("div",{"data-slot":"sidebar-container","data-side":e,className:(0,Q.cn)("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex","floating"===s||"inset"===s?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...o,children:(0,i.jsx)("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border",children:l})})]})}function et({className:e,...s}){return(0,i.jsx)("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:(0,Q.cn)("flex flex-col gap-2 p-2",e),...s})}function ea({className:e,...s}){return(0,i.jsx)("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:(0,Q.cn)("flex flex-col gap-2 p-2",e),...s})}function en({className:e,...s}){return(0,i.jsx)("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:(0,Q.cn)("no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...s})}function er({className:e,...s}){return(0,i.jsx)("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:(0,Q.cn)("relative flex w-full min-w-0 flex-col p-2",e),...s})}function el({className:e,asChild:s=!1,...t}){let a=s?U.Slot.Root:"div";return(0,i.jsx)(a,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:(0,Q.cn)("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",e),...t})}function ed({className:e,...s}){return(0,i.jsx)("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:(0,Q.cn)("w-full text-sm",e),...s})}function eo({className:e,...s}){return(0,i.jsx)("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:(0,Q.cn)("flex w-full min-w-0 flex-col gap-0",e),...s})}function ec({className:e,...s}){return(0,i.jsx)("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:(0,Q.cn)("group/menu-item relative",e),...s})}let eh=(0,O.cva)("peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function eu({asChild:e=!1,isActive:s=!1,variant:t="default",size:a="default",tooltip:n,className:r,...l}){let d=e?U.Slot.Root:"button",{isMobile:o,state:c}=ee(),h=(0,i.jsx)(d,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":a,"data-active":s,className:(0,Q.cn)(eh({variant:t,size:a}),r),...l});return n?("string"==typeof n&&(n={children:n}),(0,i.jsxs)(J.Tooltip,{children:[(0,i.jsx)(J.TooltipTrigger,{asChild:!0,children:h}),(0,i.jsx)(J.TooltipContent,{side:"right",align:"center",hidden:"collapsed"!==c||o,...n})]})):h}var ex=e.i(520133),em=e.i(637611),ep=e.i(689664),ef=e.i(482022),ej=e.i(573474),eb=e.i(861745),eg=e.i(940276),ev=e.i(487812),ek=e.i(816484),ew=e.i(360583),ey=e.i(171502);function eC({notification:e,arriving:t=!1,onDelete:a,onDismiss:n}){let r=(0,B.useTranslations)("notifications"),l=(0,eb.useLocale)(),d=e.highlightColor,[o,c]=(0,s.useState)(!1),h=(0,s.useRef)(null),u=(0,ew.formatDateValue)(e.createdAt,"long",{locale:l});return(0,s.useEffect)(()=>()=>{h.current&&window.clearTimeout(h.current)},[]),(0,i.jsxs)(ev.ContextMenu,{onOpenChange:e=>{e||c(!1)},children:[(0,i.jsx)(ev.ContextMenuTrigger,{asChild:!0,children:(0,i.jsxs)("article",{className:(0,Q.cn)("group relative w-full overflow-hidden rounded-none border border-x-0 border-t-0 border-l-4 bg-sidebar-accent/30 transition-all duration-[1400ms] hover:bg-sidebar-accent/60",d&&ey.worktreeHighlightBackgroundClasses[d],d&&ey.worktreeHighlightAccentClasses[d],t&&"motion-safe:animate-in motion-safe:slide-in-from-top-2 bg-primary/20 ring-1 ring-primary/30",t&&d&&ey.worktreeHighlightArrivalClasses[d]),children:[(0,i.jsxs)(ex.Link,{className:"block min-w-0 px-3 py-2.5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset",href:e.href,children:[(0,i.jsx)("p",{className:"truncate pr-8 text-sm font-medium",children:e.title}),(0,i.jsx)("p",{className:"mt-0.5 line-clamp-2 text-xs text-muted-foreground",children:e.body}),(0,i.jsx)(ek.DateTime,{className:"mt-1.5 block text-[11px] text-muted-foreground",hover:!1,kind:"relative",value:e.createdAt})]}),n&&(0,i.jsx)(q.Button,{"aria-label":r("dismissOne",{title:e.title}),className:"absolute top-1 right-1.5 size-7 opacity-100 transition-opacity md:opacity-0 md:group-hover:opacity-100 md:group-focus-within:opacity-100",onClick:()=>n(e.id),size:"icon-sm",title:r("dismiss"),type:"button",variant:"ghost",children:(0,i.jsx)(W.X,{className:"size-3.5"})})]})}),(0,i.jsxs)(ev.ContextMenuContent,{className:"w-64",children:[(0,i.jsx)(ev.ContextMenuLabel,{className:"font-normal whitespace-normal",children:u}),(0,i.jsx)(ev.ContextMenuSeparator,{}),"BUILD"===e.resourceKind&&(0,i.jsx)(ev.ContextMenuItem,{asChild:!0,children:(0,i.jsxs)(ex.Link,{href:e.href,children:[(0,i.jsx)(ef.ExternalLink,{})," ",r("openBuild")]})}),e.worktreeId&&(0,i.jsx)(ev.ContextMenuItem,{asChild:!0,children:(0,i.jsxs)(ex.Link,{href:(0,eg.worktreeDetailHref)(e.worktreeId),children:[(0,i.jsx)(p.GitBranch,{})," ",r("openWorktree")]})}),(0,i.jsx)(ev.ContextMenuSeparator,{}),(0,i.jsxs)(ev.ContextMenuItem,{disabled:!n,onSelect:()=>n?.(e.id),children:[(0,i.jsx)(W.X,{})," ",r("dismiss")]}),(0,i.jsxs)(ev.ContextMenuItem,{disabled:!a,onSelect:i=>{if(!o){i.preventDefault(),c(!0),h.current&&window.clearTimeout(h.current),h.current=window.setTimeout(()=>{h.current=null,c(!1)},5e3);return}h.current&&window.clearTimeout(h.current),h.current=null,c(!1),a?.(e.id)},variant:o?"destructive":"default",children:[o?(0,i.jsx)(ep.Check,{}):(0,i.jsx)(ej.Trash2,{}),r(o?"confirmDelete":"delete")]})]})]})}var eN=e.i(302493);let eS="notification-sound-enabled";function eL(){try{let e=window.AudioContext??window.webkitAudioContext;if(!e)return;let i=new e,s=i.createGain(),t=i.createOscillator();t.type="sine",t.frequency.setValueAtTime(660,i.currentTime),t.frequency.exponentialRampToValueAtTime(880,i.currentTime+.12),s.gain.setValueAtTime(1e-4,i.currentTime),s.gain.exponentialRampToValueAtTime(.12,i.currentTime+.015),s.gain.exponentialRampToValueAtTime(1e-4,i.currentTime+.24),t.connect(s),s.connect(i.destination),t.start(),t.stop(i.currentTime+.25),t.addEventListener("ended",()=>void i.close())}catch{}}function eA(){let{setOpenMobile:e}=ee(),s=(0,B.useTranslations)("shell");return(0,i.jsx)(q.Button,{"aria-label":s("closeNotifications"),className:"size-9 touch-manipulation md:hidden",onClick:()=>e(!1),size:"icon",type:"button",variant:"ghost",children:(0,i.jsx)(W.X,{})})}function eT(){let e=(0,B.useTranslations)("notifications"),t=(0,B.useTranslations)("shell"),[a,n]=(0,s.useState)([]),[r,l]=(0,s.useState)(new Set),[d,o]=(0,s.useState)(!1),[c,h]=(0,s.useState)(!1),u=(0,s.useRef)(!1),x=(0,s.useRef)(new Map),m=(0,s.useCallback)(async()=>{try{let e=await (0,em.controlPlaneRequest)(`query SidebarNotifications {
2
- sidebarNotifications(limit: 50) { ${eN.APP_NOTIFICATION_FIELDS} }
3
- }`);n(e.sidebarNotifications)}catch{}finally{h(!0)}},[]);(0,s.useEffect)(()=>{let e=x.current,i=window.setTimeout(()=>{let e="true"===window.localStorage.getItem(eS);o(e),u.current=e},0),s=window.setTimeout(()=>void m(),0),t=(0,em.controlPlaneSubscriptions)().subscribe({query:`subscription NotificationsSidebarChanged {
4
- notificationsChanged {
5
- kind notificationId
6
- notification { ${eN.APP_NOTIFICATION_FIELDS} }
7
- }
8
- }`},{next:e=>{let i=e.data?.notificationsChanged;if(!i)return;let s=i.notification;if("CREATED"===i.kind&&s){if(s.browserRequested&&function(e){if("Notification"in window&&"granted"===window.Notification.permission)try{let i=new window.Notification(e.title,{body:e.body,icon:"/icon-192.png",tag:`browser:${e.id}`});i.onclick=()=>{window.focus(),window.location.assign(e.href),i.close()}}catch{}}(s),s.sidebarRequested){n(e=>[s,...e.filter(e=>e.id!==s.id)].slice(0,50)),l(e=>new Set(e).add(s.id));let e=window.setTimeout(()=>{x.current.delete(s.id),l(e=>{let i=new Set(e);return i.delete(s.id),i})},1400);x.current.set(s.id,e),u.current&&eL()}return}m()},error:()=>void 0,complete:()=>void 0});return()=>{window.clearTimeout(s),window.clearTimeout(i),t(),e.forEach(e=>window.clearTimeout(e)),e.clear()}},[m]);let p=async e=>{n(i=>i.filter(i=>i.id!==e));try{await (0,em.controlPlaneRequest)("mutation DismissNotification($id: ID!) { dismissNotification(id: $id) }",{id:e})}catch{await m()}},f=async e=>{n(i=>i.filter(i=>i.id!==e));try{await (0,em.controlPlaneRequest)(`mutation DeleteSidebarNotification($selection: NotificationSelectionInput!) {
9
- deleteNotifications(selection: $selection)
10
- }`,{selection:{ids:[e]}})}catch{await m()}},j=async()=>{try{await (0,em.controlPlaneRequest)(`mutation DismissAllSidebarNotifications {
11
- dismissAllSidebarNotifications
12
- }`),n([])}catch{await m()}};return(0,i.jsxs)(es,{collapsible:"offcanvas",mobileDescription:t("notificationsDescription"),mobileTitle:t("notifications"),side:"right",children:[(0,i.jsx)(et,{className:"border-b border-sidebar-border pt-[max(0.5rem,env(safe-area-inset-top))] md:pt-2",children:(0,i.jsxs)("div",{className:"flex min-h-10 items-center gap-1 px-2",children:[(0,i.jsx)(ex.Link,{className:"mr-auto text-sm font-semibold hover:underline",href:"/notifications",children:t("notifications")}),(0,i.jsx)(q.Button,{"aria-label":e(d?"mute":"unmute"),onClick:()=>{let e=!d;o(e),u.current=e,window.localStorage.setItem(eS,String(e)),e&&eL()},size:"icon-sm",title:e(d?"mute":"unmute"),type:"button",variant:"ghost",children:d?(0,i.jsx)(_,{}):(0,i.jsx)(H,{})}),(0,i.jsxs)(V.DropdownMenu,{children:[(0,i.jsx)(V.DropdownMenuTrigger,{asChild:!0,children:(0,i.jsx)(q.Button,{"aria-label":e("clearAll"),disabled:!a.length,size:"icon-sm",title:e("clearAll"),type:"button",variant:"ghost",children:(0,i.jsx)($,{})})}),(0,i.jsxs)(V.DropdownMenuContent,{align:"end",className:"w-64",children:[(0,i.jsx)(V.DropdownMenuLabel,{className:"font-normal whitespace-normal leading-snug",children:e("clearSidebarDescription")}),(0,i.jsx)(V.DropdownMenuSeparator,{}),(0,i.jsxs)(V.DropdownMenuItem,{onSelect:()=>void j(),variant:"destructive",children:[(0,i.jsx)($,{})," ",e("clearSidebar")]})]})]}),(0,i.jsx)(eA,{})]})}),(0,i.jsx)(en,{className:"p-0",children:(0,i.jsxs)("div",{className:"flex flex-col gap-0","aria-live":"polite",children:[a.map(e=>(0,i.jsx)(eC,{arriving:r.has(e.id),notification:e,onDelete:e=>void f(e),onDismiss:e=>void p(e)},e.id)),c&&0===a.length&&(0,i.jsx)("p",{className:"px-3 py-8 text-center text-sm text-muted-foreground",children:e("sidebarEmpty")})]})})]})}var eD=e.i(487486),eM=e.i(337822),eE=e.i(987968),eR=e.i(539494),eI=e.i(261751);let eP={CRITICAL:8,ERROR:7,DELETING:6,CLEANUP_REQUIRED:5,PRESSURE:4,STALE:3,DISABLED:2,IDLE:1},ez="border-amber-500/30 bg-amber-500/10 text-amber-700 hover:bg-amber-500/20 hover:text-amber-700 dark:border-amber-500/30 dark:bg-amber-500/10 dark:text-amber-300 dark:hover:bg-amber-500/20 dark:hover:text-amber-300";function eW(){let e=(0,B.useTranslations)("diskSpace"),t=(0,B.useTranslations)("shell"),a=(0,eb.useLocale)(),[n,r]=(0,s.useState)(null),[l,d]=(0,s.useState)([]),[h,u]=(0,s.useState)(null),x=(0,s.useCallback)(async()=>{try{let e=await (0,em.controlPlaneRequest)(`query SidebarStatus {
13
- sidebarStatus {
14
- usageToday { totalCost collectedAt }
15
- activity { plans sessions builds workflows }
16
- diskSpace { ${eR.DISK_SPACE_FIELDS} }
17
- }
18
- derivedDataDeletionHistory(first: 5) {
19
- items { id agentName folderName source deletedAt }
20
- }
21
- }`);r(e.sidebarStatus),d(e.derivedDataDeletionHistory.items)}catch{}},[]);(0,s.useEffect)(()=>{let e=window.setTimeout(()=>void x(),0),i=(0,em.controlPlaneSubscriptions)().subscribe({query:"subscription SidebarStatusChanged { sidebarStatusChanged }"},{next:()=>void x(),error:()=>void 0,complete:()=>void 0}),s=window.setInterval(()=>void x(),6e4);return()=>{window.clearTimeout(e),i(),window.clearInterval(s)}},[x]);let m=(0,s.useMemo)(()=>n?.diskSpace.agents.filter(e=>e.enabled)??[],[n]),p=(0,s.useMemo)(()=>[...n?.diskSpace.agents??[]].sort((e,i)=>eP[i.status]-eP[e.status])[0]?.status??"STALE",[n]),f=async(e,i)=>{u(e);try{await (0,em.controlPlaneRequest)(`mutation SidebarPressureMode($agentId: ID!, $enabled: Boolean!) {
22
- setAgentDiskSpacePressureMode(agentId: $agentId, enabled: $enabled) { manualPressureMode }
23
- }`,{agentId:e,enabled:i}),await x()}finally{u(null)}},b=[{key:"plans",href:"/plans",icon:o.ClipboardList},{key:"sessions",href:"/sessions",icon:y},{key:"builds",href:"/builds",icon:j.Hammer},{key:"workflows",href:"/workflows",icon:P.Waypoints}];return(0,i.jsxs)("div",{className:"space-y-2 border-t border-sidebar-border p-2",children:[(0,i.jsxs)(ex.Link,{className:"flex items-center justify-between rounded-md px-2 py-1.5 text-xs hover:bg-sidebar-accent",href:"/usage",children:[(0,i.jsxs)("span",{className:"flex items-center gap-2",children:[(0,i.jsx)(c,{className:"size-3.5"}),e("usageToday")]}),(0,i.jsx)("span",{className:"font-medium tabular-nums",children:n?.usageToday.totalCost==null?"—":new Intl.NumberFormat(a,{style:"currency",currency:"USD"}).format(n.usageToday.totalCost)})]}),(0,i.jsx)("div",{className:"grid grid-cols-2 gap-1",children:b.map(({key:e,href:s,icon:a})=>(0,i.jsxs)(ex.Link,{className:"flex items-center justify-between rounded-md px-2 py-1 text-xs hover:bg-sidebar-accent",href:s,children:[(0,i.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,i.jsx)(a,{className:"size-3.5"}),t(e)]}),(0,i.jsx)("span",{className:"tabular-nums",children:n?.activity[e]??0})]},e))}),(0,i.jsxs)(eM.Popover,{children:[(0,i.jsx)(eM.PopoverTrigger,{asChild:!0,children:(0,i.jsx)(q.Button,{className:"h-auto w-full justify-start px-2 py-2",variant:"ghost",children:(0,i.jsxs)("div",{className:"min-w-0 flex-1 text-left",children:[(0,i.jsx)("p",{className:"text-xs font-medium",children:e("freeDiskSpace")}),1===m.length&&(0,eR.monitoredVolume)(m[0])?(0,i.jsx)("div",{className:"mt-1",children:(0,i.jsx)(eI.VolumeBar,{compact:!0,hideLabel:!0,volume:(0,eR.monitoredVolume)(m[0])})}):m.length>1?(0,i.jsx)("div",{className:"mt-1 flex flex-wrap gap-1.5",children:m.map(s=>{var t;let n=(0,eR.monitoredVolume)(s);if(!n)return null;let r=100-(n.totalBytes>0?Math.max(0,Math.min(100,(n.totalBytes-n.freeBytes)/n.totalBytes*100)):0);return(0,i.jsx)("span",{"aria-label":`${s.agent.name} \xb7 ${e("role.DERIVED_DATA")}: ${(0,eI.formatDiskBytes)(n.freeBytes,a)} ${e("free")}`,className:"grid size-5 place-items-center rounded-full",style:{background:`conic-gradient(var(--muted) 0% ${r}%, ${"CRITICAL"===(t=s.status)||"ERROR"===t?"var(--destructive)":["DELETING","CLEANUP_REQUIRED","PRESSURE"].includes(t)?"#f59e0b":"STALE"===t||"DISABLED"===t?"var(--muted-foreground)":"#10b981"} ${r}% 100%)`},title:`${s.agent.name} \xb7 ${e("role.DERIVED_DATA")}`,children:(0,i.jsx)("span",{className:"size-3 rounded-full bg-sidebar"})},s.agent.id)})}):(0,i.jsx)("p",{className:"text-[11px] text-muted-foreground",children:e("noEnabledAgents")})]})})}),(0,i.jsxs)(eM.PopoverContent,{align:"start",className:"max-h-[min(70vh,42rem)] w-[min(26rem,calc(100vw-1rem))] overflow-y-auto",side:"top",children:[(0,i.jsxs)(eM.PopoverHeader,{children:[(0,i.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,i.jsx)(eM.PopoverTitle,{children:(0,i.jsx)(ex.Link,{className:"hover:underline",href:"/build-data",children:e("freeDiskSpace")})}),(0,i.jsx)(eD.Badge,{className:"PRESSURE"===p?ez:(0,eI.diskStatusColor)(p),variant:"PRESSURE"===p?"outline":"secondary",children:e(`status.${p}`)})]}),n&&(0,i.jsx)("p",{className:"text-xs text-muted-foreground",children:e("thresholdSummary",{normal:n.diskSpace.settings.normalThresholdGiB,pressure:n.diskSpace.settings.pressureThresholdGiB})})]}),n?n.diskSpace.agents.map(s=>(0,i.jsxs)("div",{className:"space-y-2 rounded-md border p-2.5",children:[(0,i.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,i.jsx)(ex.Link,{className:"font-medium hover:underline",href:`/agents/${s.agent.id}`,children:s.agent.name}),(0,i.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,i.jsxs)(q.Button,{"aria-pressed":s.manualPressureMode,className:s.manualPressureMode?ez:void 0,disabled:!s.enabled||null!==h,onClick:()=>void f(s.agent.id,!s.manualPressureMode),size:"xs",type:"button",variant:"outline",children:[e("pressureModeControl"),h===s.agent.id&&(0,i.jsx)(eE.Spinner,{})]}),(0,i.jsx)(eD.Badge,{className:"PRESSURE"===s.status?ez:void 0,variant:"outline",children:e(`status.${s.status}`)})]})]}),s.volumes.map(e=>(0,i.jsx)(eI.VolumeBar,{compact:!0,volume:e},e.id)),(s.lastError||s.warnings.length>0)&&(0,i.jsx)("p",{className:"text-xs text-destructive",children:[s.lastError,...s.warnings].filter(Boolean).join(" · ")})]},s.agent.id)):(0,i.jsx)(eE.Spinner,{}),(0,i.jsxs)("div",{className:"space-y-1.5",children:[(0,i.jsx)("p",{className:"text-xs font-medium",children:e("recentDeletions")}),0===l.length?(0,i.jsx)("p",{className:"text-xs text-muted-foreground",children:e("noRecentDeletions")}):l.map(e=>(0,i.jsxs)("div",{className:"grid grid-cols-[1fr_auto] gap-2 text-xs",children:[(0,i.jsxs)("span",{className:"min-w-0 truncate",children:[e.folderName," · ",e.agentName]}),(0,i.jsx)("span",{className:"text-muted-foreground",children:new Date(e.deletedAt).toLocaleDateString(a)})]},e.id))]})]})]})]})}function eB({children:e,rightDefaultOpen:s}){let t=ee();return(0,i.jsx)(ei,{cookieName:"ade_sidebar_right",defaultOpen:s,keyboardShortcut:null,className:"h-full min-h-0 min-w-0 flex-1 overflow-hidden",children:(0,i.jsx)(eq,{leftSidebar:t,children:e})})}function eq({children:e,leftSidebar:s}){let t=ee();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"relative flex h-full min-h-0 min-w-0 w-full flex-1 flex-col bg-background","data-slot":"sidebar-inset",children:[(0,i.jsx)(e$,{leftSidebar:s,rightSidebar:t}),(0,i.jsx)("main",{className:"min-h-0 w-full flex-1 overflow-y-auto overscroll-contain [-webkit-overflow-scrolling:touch]",children:(0,i.jsx)("div",{className:"w-full p-4 pb-[calc(1rem+env(safe-area-inset-bottom))] sm:p-6 sm:pb-[calc(1.5rem+env(safe-area-inset-bottom))] [&>*]:!mx-0 [&>*]:!w-full [&>*]:!max-w-none","data-slot":"page-content",children:e})})]}),(0,i.jsx)(eT,{})]})}function e$({leftSidebar:e,rightSidebar:s}){let t=(0,B.useTranslations)("shell"),a=e.isMobile?e.openMobile:e.open,n=s.isMobile?s.openMobile:s.open;return(0,i.jsxs)("header",{className:"sticky top-0 z-30 shrink-0 border-b bg-background/90 backdrop-blur-xl backdrop-saturate-150 supports-backdrop-filter:bg-background/70",children:[(0,i.jsx)("div",{"aria-hidden":"true",className:"h-[env(safe-area-inset-top)]"}),(0,i.jsxs)("div",{className:"flex h-14 items-center justify-between pr-[max(0.75rem,env(safe-area-inset-right))] pl-[max(0.75rem,env(safe-area-inset-left))] sm:pr-[max(1rem,env(safe-area-inset-right))] sm:pl-[max(1rem,env(safe-area-inset-left))]",children:[(0,i.jsx)(e_,{expanded:a,hideLabel:t("hideNavigation"),onClick:e.toggleSidebar,showLabel:t("showNavigation"),side:"left"}),(0,i.jsx)(e_,{expanded:n,hideLabel:t("hideNotifications"),onClick:s.toggleSidebar,showLabel:t("showNotifications"),side:"right"})]})]})}function e_({expanded:e,hideLabel:s,onClick:t,showLabel:a,side:n}){let r=e?s:a;return(0,i.jsx)(q.Button,{"aria-expanded":e,"aria-label":r,className:"size-10 touch-manipulation",onClick:t,size:"icon-lg",title:r,type:"button",variant:"ghost",children:(0,i.jsx)("left"===n?N:S,{})})}function eH({label:e}){let{setOpenMobile:s}=ee();return(0,i.jsx)(q.Button,{"aria-label":e,className:"ml-auto size-10 touch-manipulation md:hidden",onClick:()=>s(!1),size:"icon-lg",title:e,type:"button",variant:"ghost",children:(0,i.jsx)(W.X,{})})}function eV(){let e=(0,B.useTranslations)("shell"),{isMobile:n,setOpenMobile:N}=ee(),S=(0,ex.usePathname)(),[W,q]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{let e=!1;return(0,em.controlPlaneRequest)("query CacheServerConfigured { cacheServerSettings { configured } }").then(i=>{e||q(i.cacheServerSettings.configured)}).catch(()=>{e||q(!1)}),()=>{e=!0}},[S]),(0,i.jsxs)(es,{collapsible:"offcanvas",mobileDescription:e("navigationDescription"),mobileTitle:e("navigation"),side:"left",children:[(0,i.jsx)(et,{className:"border-b border-sidebar-border pt-[max(0.5rem,env(safe-area-inset-top))] md:pt-2",children:(0,i.jsxs)("div",{className:"flex min-h-10 items-center gap-2 px-2",children:[(0,i.jsx)("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-sidebar-primary text-sidebar-primary-foreground",children:(0,i.jsx)(t.Blocks,{className:"size-4"})}),(0,i.jsx)("span",{className:"text-sm leading-tight font-semibold",children:e("productName")}),(0,i.jsx)(eH,{label:e("closeNavigation")})]})}),(0,i.jsxs)(en,{children:[(0,i.jsxs)(er,{children:[(0,i.jsx)(el,{children:e("dashboard")}),(0,i.jsx)(ed,{children:(0,i.jsxs)(eo,{children:[(0,i.jsx)(ec,{children:(0,i.jsx)(eu,{asChild:!0,isActive:"/"===S,children:(0,i.jsxs)(ex.Link,{href:"/",onClick:()=>{n&&N(!1)},children:[(0,i.jsx)(v.default,{}),(0,i.jsx)("span",{children:e("welcome")})]})})}),(0,i.jsx)(ec,{children:(0,i.jsx)(eu,{asChild:!0,isActive:S.startsWith("/notifications"),children:(0,i.jsxs)(ex.Link,{href:"/notifications",onClick:()=>{n&&N(!1)},children:[(0,i.jsx)(r,{}),(0,i.jsx)("span",{children:e("notifications")})]})})}),(0,i.jsx)(ec,{children:(0,i.jsx)(eu,{asChild:!0,isActive:S.startsWith("/agents")||S.startsWith("/jobs"),children:(0,i.jsxs)(ex.Link,{href:"/agents",onClick:()=>{n&&N(!1)},children:[(0,i.jsx)(h.Cpu,{}),(0,i.jsx)("span",{children:e("agents")})]})})}),(0,i.jsx)(ec,{children:(0,i.jsx)(eu,{asChild:!0,isActive:S.startsWith("/workflows"),children:(0,i.jsxs)(ex.Link,{href:"/workflows",onClick:()=>{n&&N(!1)},children:[(0,i.jsx)(P.Waypoints,{}),(0,i.jsx)("span",{children:e("workflows")})]})})}),(0,i.jsx)(ec,{children:(0,i.jsx)(eu,{asChild:!0,isActive:S.startsWith("/commands"),children:(0,i.jsxs)(ex.Link,{href:"/commands",onClick:()=>{n&&N(!1)},children:[(0,i.jsx)(R.Terminal,{}),(0,i.jsx)("span",{children:e("commands")})]})})}),(0,i.jsx)(ec,{children:(0,i.jsx)(eu,{asChild:!0,isActive:S.startsWith("/codebases"),children:(0,i.jsxs)(ex.Link,{href:"/codebases",onClick:()=>{n&&N(!1)},children:[(0,i.jsx)(b.FolderGit2,{}),(0,i.jsx)("span",{children:e("codebases")})]})})}),(0,i.jsx)(ec,{children:(0,i.jsx)(eu,{asChild:!0,isActive:S.startsWith("/worktrees"),children:(0,i.jsxs)(ex.Link,{href:"/worktrees",onClick:()=>{n&&N(!1)},children:[(0,i.jsx)(p.GitBranch,{}),(0,i.jsx)("span",{children:e("worktrees")})]})})}),(0,i.jsx)(ec,{children:(0,i.jsx)(eu,{asChild:!0,isActive:S.startsWith("/builds"),children:(0,i.jsxs)(ex.Link,{href:"/builds",onClick:()=>{n&&N(!1)},children:[(0,i.jsx)(j.Hammer,{}),(0,i.jsx)("span",{children:e("builds")})]})})})]})})]}),(0,i.jsxs)(er,{children:[(0,i.jsx)(el,{children:e("ai")}),(0,i.jsx)(ed,{children:(0,i.jsxs)(eo,{children:[(0,i.jsx)(ec,{children:(0,i.jsx)(eu,{asChild:!0,isActive:S.startsWith("/plans"),children:(0,i.jsxs)(ex.Link,{href:"/plans",onClick:()=>{n&&N(!1)},children:[(0,i.jsx)(o.ClipboardList,{}),(0,i.jsx)("span",{children:e("plans")})]})})}),(0,i.jsx)(ec,{children:(0,i.jsx)(eu,{asChild:!0,isActive:S.startsWith("/sessions"),children:(0,i.jsxs)(ex.Link,{href:"/sessions",onClick:()=>{n&&N(!1)},children:[(0,i.jsx)(y,{}),(0,i.jsx)("span",{children:e("sessions")})]})})}),(0,i.jsx)(ec,{children:(0,i.jsx)(eu,{asChild:!0,isActive:S.startsWith("/drafts")||S.startsWith("/runs/new"),children:(0,i.jsxs)(ex.Link,{href:"/drafts",onClick:()=>{n&&N(!1)},children:[(0,i.jsx)(g.FilePenLine,{}),(0,i.jsx)("span",{children:e("drafts")})]})})}),(0,i.jsx)(ec,{children:(0,i.jsx)(eu,{asChild:!0,isActive:S.startsWith("/usage"),children:(0,i.jsxs)(ex.Link,{href:"/usage",onClick:()=>{n&&N(!1)},children:[(0,i.jsx)(l,{}),(0,i.jsx)("span",{children:e("usage")})]})})}),(0,i.jsx)(ec,{children:(0,i.jsx)(eu,{asChild:!0,isActive:S.startsWith("/costs"),children:(0,i.jsxs)(ex.Link,{href:"/costs",onClick:()=>{n&&N(!1)},children:[(0,i.jsx)(c,{}),(0,i.jsx)("span",{children:e("costs")})]})})}),(0,i.jsx)(ec,{children:(0,i.jsx)(eu,{asChild:!0,isActive:S.startsWith("/skills"),children:(0,i.jsxs)(ex.Link,{href:"/skills",onClick:()=>{n&&N(!1)},children:[(0,i.jsx)(M.Sparkles,{}),(0,i.jsx)("span",{children:e("skills")})]})})})]})})]}),(0,i.jsxs)(er,{children:[(0,i.jsx)(el,{children:e("debugging")}),(0,i.jsx)(ed,{children:(0,i.jsxs)(eo,{children:[(0,i.jsx)(ec,{children:(0,i.jsx)(eu,{asChild:!0,isActive:S.startsWith("/push-notifications"),children:(0,i.jsxs)(ex.Link,{href:"/push-notifications",onClick:()=>{n&&N(!1)},children:[(0,i.jsx)(a.BellRing,{}),(0,i.jsx)("span",{children:e("pushNotifications")})]})})}),(0,i.jsx)(ec,{children:(0,i.jsx)(eu,{asChild:!0,isActive:S.startsWith("/console-logs"),children:(0,i.jsxs)(ex.Link,{href:"/console-logs",onClick:()=>{n&&N(!1)},children:[(0,i.jsx)(R.Terminal,{}),(0,i.jsx)("span",{children:e("consoleLogs")})]})})}),(0,i.jsx)(ec,{children:(0,i.jsx)(eu,{asChild:!0,isActive:S.startsWith("/analytics-events"),children:(0,i.jsxs)(ex.Link,{href:"/analytics-events",onClick:()=>{n&&N(!1)},children:[(0,i.jsx)(C.MousePointerClick,{}),(0,i.jsx)("span",{children:e("analyticsEvents")})]})})}),(0,i.jsx)(ec,{children:(0,i.jsx)(eu,{asChild:!0,isActive:S.startsWith("/unified-events"),children:(0,i.jsxs)(ex.Link,{href:"/unified-events",onClick:()=>{n&&N(!1)},children:[(0,i.jsx)(d,{}),(0,i.jsx)("span",{children:e("unifiedEvents")})]})})})]})})]}),(0,i.jsxs)(er,{children:[(0,i.jsx)(el,{children:e("github")}),(0,i.jsx)(ed,{children:(0,i.jsxs)(eo,{children:[(0,i.jsx)(ec,{children:(0,i.jsx)(eu,{asChild:!0,isActive:S.startsWith("/pull-requests"),children:(0,i.jsxs)(ex.Link,{href:"/pull-requests",onClick:()=>{n&&N(!1)},children:[(0,i.jsx)(m.GitPullRequest,{}),(0,i.jsx)("span",{children:e("pullRequests")})]})})}),(0,i.jsx)(ec,{children:(0,i.jsx)(eu,{asChild:!0,isActive:"/actions"===S||S.startsWith("/actions/"),children:(0,i.jsxs)(ex.Link,{href:"/actions",onClick:()=>{n&&N(!1)},children:[(0,i.jsx)(L.PlayCircle,{}),(0,i.jsx)("span",{children:e("actions")})]})})}),(0,i.jsx)(ec,{children:(0,i.jsx)(eu,{asChild:!0,isActive:S.startsWith("/comments"),children:(0,i.jsxs)(ex.Link,{href:"/comments",onClick:()=>{n&&N(!1)},children:[(0,i.jsx)(w.MessageSquareText,{}),(0,i.jsx)("span",{children:e("comments")})]})})}),W&&(0,i.jsx)(ec,{children:(0,i.jsx)(eu,{asChild:!0,isActive:S.startsWith("/actions-cache"),children:(0,i.jsxs)(ex.Link,{href:"/actions-cache",onClick:()=>{n&&N(!1)},children:[(0,i.jsx)(x.DatabaseZap,{}),(0,i.jsx)("span",{children:e("actionsCache")})]})})})]})})]}),(0,i.jsxs)(er,{children:[(0,i.jsx)(el,{children:e("jira")}),(0,i.jsx)(ed,{children:(0,i.jsxs)(eo,{children:[(0,i.jsx)(ec,{children:(0,i.jsx)(eu,{asChild:!0,isActive:S.startsWith("/jira/tickets"),children:(0,i.jsxs)(ex.Link,{href:"/jira/tickets",onClick:()=>{n&&N(!1)},children:[(0,i.jsx)(E.TicketCheck,{}),(0,i.jsx)("span",{children:e("tickets")})]})})}),(0,i.jsx)(ec,{children:(0,i.jsx)(eu,{asChild:!0,isActive:S.startsWith("/jira/cache"),children:(0,i.jsxs)(ex.Link,{href:"/jira/cache",onClick:()=>{n&&N(!1)},children:[(0,i.jsx)(u.Database,{}),(0,i.jsx)("span",{children:e("cache")})]})})})]})})]}),(0,i.jsxs)(er,{children:[(0,i.jsx)(el,{children:e("system")}),(0,i.jsx)(ed,{children:(0,i.jsxs)(eo,{children:[(0,i.jsx)(ec,{children:(0,i.jsx)(eu,{asChild:!0,isActive:S.startsWith("/polling"),children:(0,i.jsxs)(ex.Link,{href:"/polling",onClick:()=>{n&&N(!1)},children:[(0,i.jsx)(I,{}),(0,i.jsx)("span",{children:e("polling")})]})})}),(0,i.jsx)(ec,{children:(0,i.jsx)(eu,{asChild:!0,isActive:S.startsWith("/build-data"),children:(0,i.jsxs)(ex.Link,{href:"/build-data",onClick:()=>{n&&N(!1)},children:[(0,i.jsx)(f.HardDrive,{}),(0,i.jsx)("span",{children:e("buildData")})]})})}),(0,i.jsx)(ec,{children:(0,i.jsx)(eu,{asChild:!0,isActive:S.startsWith("/provisioning-profiles"),children:(0,i.jsxs)(ex.Link,{href:"/provisioning-profiles",onClick:()=>{n&&N(!1)},children:[(0,i.jsx)(D.ShieldCheck,{}),(0,i.jsx)("span",{children:e("provisioningProfiles")})]})})}),(0,i.jsx)(ec,{children:(0,i.jsx)(eu,{asChild:!0,isActive:S.startsWith("/devices"),children:(0,i.jsxs)(ex.Link,{href:"/devices",onClick:()=>{n&&N(!1)},children:[(0,i.jsx)(T.Smartphone,{}),(0,i.jsx)("span",{children:e("devices")})]})})}),(0,i.jsx)(ec,{children:(0,i.jsx)(eu,{asChild:!0,isActive:S.startsWith("/tools"),children:(0,i.jsxs)(ex.Link,{href:"/tools",onClick:()=>{n&&N(!1)},children:[(0,i.jsx)(z.Wrench,{}),(0,i.jsx)("span",{children:e("tools")})]})})}),(0,i.jsx)(ec,{children:(0,i.jsx)(eu,{asChild:!0,isActive:S.startsWith("/credentials"),children:(0,i.jsxs)(ex.Link,{href:"/credentials",onClick:()=>{n&&N(!1)},children:[(0,i.jsx)(k.KeyRound,{}),(0,i.jsx)("span",{children:e("credentials")})]})})}),(0,i.jsx)(ec,{children:(0,i.jsx)(eu,{asChild:!0,isActive:S.startsWith("/settings"),children:(0,i.jsxs)(ex.Link,{href:"/settings",onClick:()=>{n&&N(!1)},children:[(0,i.jsx)(A.Settings,{}),(0,i.jsx)("span",{children:e("settings")})]})})})]})})]})]}),(0,i.jsx)(ea,{className:"p-0",children:(0,i.jsx)(eW,{})})]})}e.s(["AppShell",0,function({children:e,leftDefaultOpen:s,rightDefaultOpen:t}){return(0,i.jsxs)(ei,{cookieName:"ade_sidebar_left",defaultOpen:s,className:"h-dvh min-h-0 overflow-hidden",children:[(0,i.jsx)(eV,{}),(0,i.jsx)(eB,{rightDefaultOpen:t,children:e})]})}],763141)}]);
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,986253,e=>{"use strict";let n=(0,e.i(456420).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["default",0,n])},842727,e=>{"use strict";var n=e.i(271645),t=e.i(981140),o=e.i(75830),r=e.i(820783),a=e.i(30030),u=e.i(610772),i=e.i(248425),s=e.i(30207),d=e.i(369340),c=e.i(586318),l=e.i(934620),p=!1,f=n[" useSyncExternalStore ".trim().toString()];function m(){return()=>{}}var g="function"==typeof f?function(){return f(m,()=>!0,()=>!1)}:function(){let[e,t]=n.useState(p);return n.useEffect(()=>{p||(p=!0,t(!0))},[]),e},v=e.i(843476),h=Object.defineProperty,w=(e,n)=>h(e,"name",{value:n,configurable:!0}),x="rovingFocusGroup.onEntryFocus",b={bubbles:!1,cancelable:!0},C="RovingFocusGroup",[M,R,D]=(0,o.createCollection)(C),[I,j]=(0,a.createContextScope)(C,[D]),[y,S]=I(C),E=n.forwardRef(w(function(e,n){return(0,v.jsx)(M.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,v.jsx)(M.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,v.jsx)(P,{...e,ref:n})})})},"RovingFocusGroup")),P=n.forwardRef(w(function(e,o){let{__scopeRovingFocusGroup:a,orientation:u,loop:l=!1,dir:p,currentTabStopId:f,defaultCurrentTabStopId:m,onCurrentTabStopIdChange:g,onEntryFocus:h,preventScrollOnEntryFocus:w=!1,...M}=e,D=n.useRef(null),I=(0,r.useComposedRefs)(o,D),j=(0,c.useDirection)(p),[S,E]=(0,d.useControllableState)({prop:f,defaultProp:m??null,onChange:g,caller:C}),[P,k]=n.useState(!1),_=(0,s.useCallbackRef)(h),T=R(a),F=n.useRef(!1),[O,L]=n.useState(0);return n.useEffect(()=>{let e=D.current;if(e)return e.addEventListener(x,_),()=>e.removeEventListener(x,_)},[_]),(0,v.jsx)(y,{scope:a,orientation:u,dir:j,loop:l,currentTabStopId:S,onItemFocus:n.useCallback(e=>E(e),[E]),onItemShiftTab:n.useCallback(()=>k(!0),[]),onFocusableItemAdd:n.useCallback(()=>L(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>L(e=>e-1),[]),children:(0,v.jsx)(i.Primitive.div,{tabIndex:P||0===O?-1:0,"data-orientation":u,...M,ref:I,style:{outline:"none",...e.style},onMouseDown:(0,t.composeEventHandlers)(e.onMouseDown,()=>{F.current=!0}),onFocus:(0,t.composeEventHandlers)(e.onFocus,e=>{let n=!F.current;if(e.target===e.currentTarget&&n&&!P){let n=new CustomEvent(x,b);if(e.currentTarget.dispatchEvent(n),!n.defaultPrevented){let e=T().filter(e=>e.focusable);A([e.find(e=>e.active),e.find(e=>e.id===S),...e].filter(Boolean).map(e=>e.ref.current),w)}}F.current=!1}),onBlur:(0,t.composeEventHandlers)(e.onBlur,()=>k(!1))})})},"RovingFocusGroupImpl")),k=n.forwardRef(w(function(e,o){let{__scopeRovingFocusGroup:r,focusable:a=!0,active:s=!1,tabStopId:d,children:c,...p}=e,f=(0,u.useId)(),m=d||f,h=S("RovingFocusGroupItem",r),w=h.currentTabStopId===m,x=R(r),{onFocusableItemAdd:b,onFocusableItemRemove:C,currentTabStopId:D}=h,I=g();return(0,l.useLayoutEffect)(()=>{if(I&&a)return b(),()=>C()},[I,a,b,C]),n.useEffect(()=>{if(!I&&a)return b(),()=>C()},[I,a,b,C]),(0,v.jsx)(M.ItemSlot,{scope:r,id:m,focusable:a,active:s,children:(0,v.jsx)(i.Primitive.span,{tabIndex:w?0:-1,"data-orientation":h.orientation,...p,ref:o,onMouseDown:(0,t.composeEventHandlers)(e.onMouseDown,e=>{a?h.onItemFocus(m):e.preventDefault()}),onFocus:(0,t.composeEventHandlers)(e.onFocus,()=>h.onItemFocus(m)),onKeyDown:(0,t.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void h.onItemShiftTab();if(e.target!==e.currentTarget)return;let n=F(e,h.orientation,h.dir);if(void 0!==n){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let t=x().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===n)t.reverse();else if("prev"===n||"next"===n){"prev"===n&&t.reverse();let o=t.indexOf(e.currentTarget);t=h.loop?O(t,o+1):t.slice(o+1)}setTimeout(()=>A(t))}}),children:"function"==typeof c?c({isCurrentTabStop:w,hasTabStop:null!=D}):c})})},"RovingFocusGroupItem")),_={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function T(e,n){return"rtl"!==n?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function F(e,n,t){let o=T(e.key,t);if(!("vertical"===n&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===n&&["ArrowUp","ArrowDown"].includes(o)))return _[o]}function A(e,n=!1){let t=document.activeElement;for(let o of e)if(o===t||(o.focus({preventScroll:n}),document.activeElement!==t))return}function O(e,n){return e.map((t,o)=>e[(n+o)%e.length])}w(T,"getDirectionAwareKey"),w(F,"getFocusIntent"),w(A,"focusFirst"),w(O,"wrapArray"),e.s(["Item",0,k,"Root",0,E,"createRovingFocusGroupScope",0,j],842727)},832006,746336,e=>{"use strict";var n=e.i(271645),t=e.i(981140),o=e.i(75830),r=e.i(820783),a=e.i(30030),u=e.i(586318),i=e.i(726330),s=e.i(303536),d=e.i(765491),c=e.i(610772),l=e.i(853660),p=e.i(774606),f=e.i(296626),m=e.i(248425),g=e.i(842727),v=e.i(991918),h=e.i(30207),w=e.i(186312),x=e.i(985369),b=e.i(843476),C=Object.defineProperty,M=(e,n)=>C(e,"name",{value:n,configurable:!0}),R=["Enter"," "],D=["ArrowUp","PageDown","End"],I=["ArrowDown","PageUp","Home",...D],j={ltr:[...R,"ArrowRight"],rtl:[...R,"ArrowLeft"]},y={ltr:["ArrowLeft"],rtl:["ArrowRight"]},S="Menu",[E,P,k]=(0,o.createCollection)(S),[_,T]=(0,a.createContextScope)(S,[k,l.createPopperScope,g.createRovingFocusGroupScope]),F=(0,l.createPopperScope)(),A=(0,g.createRovingFocusGroupScope)(),[O,L]=_(S),[G,H]=_(S),K=M(e=>{let{__scopeMenu:t,open:o=!1,children:r,dir:a,onOpenChange:i,modal:s=!0}=e,d=F(t),[c,p]=n.useState(null),f=n.useRef(!1),m=(0,h.useCallbackRef)(i),g=(0,u.useDirection)(a);return n.useEffect(()=>{let e=M(()=>{f.current=!0,document.addEventListener("pointerdown",n,{capture:!0,once:!0}),document.addEventListener("pointermove",n,{capture:!0,once:!0})},"handleKeyDown"),n=M(()=>f.current=!1,"handlePointer");return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",n,{capture:!0}),document.removeEventListener("pointermove",n,{capture:!0})}},[]),n.useEffect(()=>{if(!o)return;let e=M(()=>m(!1),"handleBlur");return window.addEventListener("blur",e),()=>window.removeEventListener("blur",e)},[o,m]),(0,b.jsx)(l.Root,{...d,children:(0,b.jsx)(O,{scope:t,open:o,onOpenChange:m,content:c,onContentChange:p,children:(0,b.jsx)(G,{scope:t,onClose:n.useCallback(()=>m(!1),[m]),isUsingKeyboardRef:f,dir:g,modal:s,children:r})})})},"Menu"),z=n.forwardRef(M(function(e,n){let{__scopeMenu:t,...o}=e,r=F(t);return(0,b.jsx)(l.Anchor,{...r,...o,ref:n})},"MenuAnchor")),N="MenuPortal",[U,B]=_(N,{forceMount:void 0}),V=M(e=>{let{__scopeMenu:n,forceMount:t,children:o,container:r}=e,a=L(N,n);return(0,b.jsx)(U,{scope:n,forceMount:t,children:(0,b.jsx)(f.Presence,{present:t||a.open,children:(0,b.jsx)(p.Portal,{asChild:!0,container:r,children:o})})})},"MenuPortal"),X="MenuContent",[Y,q]=_(X),W=n.forwardRef(M(function(e,n){let t=B(X,e.__scopeMenu),{forceMount:o=t.forceMount,...r}=e,a=L(X,e.__scopeMenu),u=H(X,e.__scopeMenu);return(0,b.jsx)(E.Provider,{scope:e.__scopeMenu,children:(0,b.jsx)(f.Presence,{present:o||a.open,children:(0,b.jsx)(E.Slot,{scope:e.__scopeMenu,children:u.modal?(0,b.jsx)(Z,{...r,ref:n}):(0,b.jsx)(J,{...r,ref:n})})})})},"MenuContent")),Z=n.forwardRef(M(function(e,o){let a=L(X,e.__scopeMenu),u=n.useRef(null),i=(0,r.useComposedRefs)(o,u);return n.useEffect(()=>{let e=u.current;if(e)return(0,w.hideOthers)(e)},[]),(0,b.jsx)($,{...e,ref:i,trapFocus:a.open,disableOutsidePointerEvents:a.open,disableOutsideScroll:!0,onFocusOutside:(0,t.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>a.onOpenChange(!1)})},"MenuRootContentModal")),J=n.forwardRef(M(function(e,n){let t=L(X,e.__scopeMenu);return(0,b.jsx)($,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)})},"MenuRootContentNonModal")),Q=(0,v.createSlot)("MenuContent.ScrollLock"),$=n.forwardRef(M(function(e,o){let{__scopeMenu:a,loop:u=!1,trapFocus:c,onOpenAutoFocus:p,onCloseAutoFocus:f,disableOutsidePointerEvents:m,onEntryFocus:v,onEscapeKeyDown:h,onPointerDownOutside:w,onFocusOutside:C,onInteractOutside:R,onDismiss:j,disableOutsideScroll:y,...S}=e,E=L(X,a),k=H(X,a),_=F(a),T=A(a),O=P(a),[G,K]=n.useState(null),z=n.useRef(null),N=(0,r.useComposedRefs)(o,z,E.onContentChange),U=n.useRef(0),B=n.useRef(""),V=n.useRef(0),q=n.useRef(null),W=n.useRef("right"),Z=n.useRef(0),J=y?x.RemoveScroll:n.Fragment,$=M(e=>{let n=B.current+e,t=O().filter(e=>!e.disabled),o=document.activeElement,r=t.find(e=>e.ref.current===o)?.textValue,a=eE(t.map(e=>e.textValue),n,r),u=t.find(e=>e.textValue===a)?.ref.current;u&&setTimeout(()=>u.focus())},"handleTypeaheadSearch");n.useEffect(()=>()=>window.clearTimeout(U.current),[]),(0,s.useFocusGuards)();let ee=n.useCallback(e=>W.current===q.current?.side&&ek(e,q.current?.area),[]);return(0,b.jsx)(Y,{scope:a,searchRef:B,onItemEnter:n.useCallback(e=>{ee(e)&&e.preventDefault()},[ee]),onItemLeave:n.useCallback(e=>{ee(e)||(z.current?.focus(),K(null))},[ee]),onTriggerLeave:n.useCallback(e=>{ee(e)&&e.preventDefault()},[ee]),pointerGraceTimerRef:V,onPointerGraceIntentChange:n.useCallback(e=>{q.current=e},[]),children:(0,b.jsx)(J,{...y?{as:Q,allowPinchZoom:!0}:void 0,children:(0,b.jsx)(d.FocusScope,{asChild:!0,trapped:c,onMountAutoFocus:(0,t.composeEventHandlers)(p,e=>{e.preventDefault(),z.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:f,children:(0,b.jsx)(i.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:m,onEscapeKeyDown:h,onPointerDownOutside:w,onFocusOutside:C,onInteractOutside:R,onDismiss:j,children:(0,b.jsx)(g.Root,{asChild:!0,...T,dir:k.dir,orientation:"vertical",loop:u,currentTabStopId:G,onCurrentTabStopIdChange:K,onEntryFocus:(0,t.composeEventHandlers)(v,e=>{k.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,b.jsx)(l.Content,{role:"menu","aria-orientation":"vertical","data-state":eD(E.open),"data-radix-menu-content":"",dir:k.dir,..._,...S,ref:N,style:{outline:"none",...S.style},onKeyDown:(0,t.composeEventHandlers)(S.onKeyDown,e=>{let n=e.target.closest("[data-radix-menu-content]")===e.currentTarget,t=e.ctrlKey||e.altKey||e.metaKey,o=1===e.key.length;n&&("Tab"===e.key&&e.preventDefault(),!t&&o&&$(e.key));let r=z.current;if(e.target!==r||!I.includes(e.key))return;e.preventDefault();let a=O().filter(e=>!e.disabled).map(e=>e.ref.current);D.includes(e.key)&&a.reverse(),ey(a)}),onBlur:(0,t.composeEventHandlers)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(U.current),B.current="")}),onPointerMove:(0,t.composeEventHandlers)(e.onPointerMove,e_(e=>{let n=e.target,t=Z.current!==e.clientX;e.currentTarget.contains(n)&&t&&(W.current=e.clientX>Z.current?"right":"left",Z.current=e.clientX)}))})})})})})})},"MenuContentImpl")),ee=n.forwardRef(M(function(e,n){let{__scopeMenu:t,...o}=e;return(0,b.jsx)(m.Primitive.div,{role:"group",...o,ref:n})},"MenuGroup")),en=n.forwardRef(M(function(e,n){let{__scopeMenu:t,...o}=e;return(0,b.jsx)(m.Primitive.div,{...o,ref:n})},"MenuLabel")),et="MenuItem",eo="menu.itemSelect",er=n.forwardRef(M(function(e,o){let{disabled:a=!1,onSelect:u,...i}=e,s=n.useRef(null),d=H(et,e.__scopeMenu),c=q(et,e.__scopeMenu),l=(0,r.useComposedRefs)(o,s),p=n.useRef(!1),f=M(()=>{let e=s.current;if(!a&&e){let n=new CustomEvent(eo,{bubbles:!0,cancelable:!0});e.addEventListener(eo,e=>u?.(e),{once:!0}),(0,m.dispatchDiscreteCustomEvent)(e,n),n.defaultPrevented?p.current=!1:d.onClose()}},"handleSelect");return(0,b.jsx)(ea,{...i,ref:l,disabled:a,onClick:(0,t.composeEventHandlers)(e.onClick,f),onPointerDown:n=>{e.onPointerDown?.(n),p.current=!0},onPointerUp:(0,t.composeEventHandlers)(e.onPointerUp,e=>{p.current||e.currentTarget?.click()}),onKeyDown:(0,t.composeEventHandlers)(e.onKeyDown,e=>{a||e.target!==e.currentTarget||(""===c.searchRef.current||" "!==e.key)&&R.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})},"MenuItem")),ea=n.forwardRef(M(function(e,o){let{__scopeMenu:a,disabled:u=!1,textValue:i,...s}=e,d=q(et,a),c=A(a),l=n.useRef(null),p=(0,r.useComposedRefs)(o,l),[f,v]=n.useState(!1),[h,w]=n.useState("");return n.useEffect(()=>{let e=l.current;e&&w((e.textContent??"").trim())},[s.children]),(0,b.jsx)(E.ItemSlot,{scope:a,disabled:u,textValue:i??h,children:(0,b.jsx)(g.Item,{asChild:!0,...c,focusable:!u,children:(0,b.jsx)(m.Primitive.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":u||void 0,"data-disabled":u?"":void 0,...s,ref:p,onPointerMove:(0,t.composeEventHandlers)(e.onPointerMove,e_(e=>{u?d.onItemLeave(e):(d.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,t.composeEventHandlers)(e.onPointerLeave,e_(e=>d.onItemLeave(e))),onFocus:(0,t.composeEventHandlers)(e.onFocus,()=>v(!0)),onBlur:(0,t.composeEventHandlers)(e.onBlur,()=>v(!1))})})})},"MenuItemImpl")),eu=n.forwardRef(M(function(e,n){let{checked:o=!1,onCheckedChange:r,...a}=e;return(0,b.jsx)(ep,{scope:e.__scopeMenu,checked:o,children:(0,b.jsx)(er,{role:"menuitemcheckbox","aria-checked":eI(o)?"mixed":o,...a,ref:n,"data-state":ej(o),onSelect:(0,t.composeEventHandlers)(a.onSelect,()=>r?.(!!eI(o)||!o),{checkForDefaultPrevented:!1})})})},"MenuCheckboxItem")),[ei,es]=_("MenuRadioGroup",{value:void 0,onValueChange:M(()=>{},"onValueChange")}),ed=n.forwardRef(M(function(e,n){let{value:t,onValueChange:o,...r}=e,a=(0,h.useCallbackRef)(o);return(0,b.jsx)(ei,{scope:e.__scopeMenu,value:t,onValueChange:a,children:(0,b.jsx)(ee,{...r,ref:n})})},"MenuRadioGroup")),ec=n.forwardRef(M(function(e,n){let{value:o,...r}=e,a=es("MenuRadioItem",e.__scopeMenu),u=o===a.value;return(0,b.jsx)(ep,{scope:e.__scopeMenu,checked:u,children:(0,b.jsx)(er,{role:"menuitemradio","aria-checked":u,...r,ref:n,"data-state":ej(u),onSelect:(0,t.composeEventHandlers)(r.onSelect,()=>a.onValueChange?.(o),{checkForDefaultPrevented:!1})})})},"MenuRadioItem")),el="MenuItemIndicator",[ep,ef]=_(el,{checked:!1}),em=n.forwardRef(M(function(e,n){let{__scopeMenu:t,forceMount:o,...r}=e,a=ef(el,t);return(0,b.jsx)(f.Presence,{present:o||eI(a.checked)||!0===a.checked,children:(0,b.jsx)(m.Primitive.span,{...r,ref:n,"data-state":ej(a.checked)})})},"MenuItemIndicator")),eg=n.forwardRef(M(function(e,n){let{__scopeMenu:t,...o}=e;return(0,b.jsx)(m.Primitive.div,{role:"separator","aria-orientation":"horizontal",...o,ref:n})},"MenuSeparator")),ev=n.forwardRef(M(function(e,n){let{__scopeMenu:t,...o}=e,r=F(t);return(0,b.jsx)(l.Arrow,{...r,...o,ref:n})},"MenuArrow")),eh="MenuSub",[ew,ex]=_(eh),eb=M(e=>{let{__scopeMenu:t,children:o,open:r=!1,onOpenChange:a}=e,u=L(eh,t),i=F(t),[s,d]=n.useState(null),[p,f]=n.useState(null),m=(0,h.useCallbackRef)(a);return n.useEffect(()=>(!1===u.open&&m(!1),()=>m(!1)),[u.open,m]),(0,b.jsx)(l.Root,{...i,children:(0,b.jsx)(O,{scope:t,open:r,onOpenChange:m,content:p,onContentChange:f,children:(0,b.jsx)(ew,{scope:t,contentId:(0,c.useId)(),triggerId:(0,c.useId)(),trigger:s,onTriggerChange:d,children:o})})})},"MenuSub"),eC="MenuSubTrigger",eM=n.forwardRef(M(function(e,o){let a=L(eC,e.__scopeMenu),u=H(eC,e.__scopeMenu),i=ex(eC,e.__scopeMenu),s=q(eC,e.__scopeMenu),d=n.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:l}=s,p={__scopeMenu:e.__scopeMenu},f=n.useCallback(()=>{d.current&&window.clearTimeout(d.current),d.current=null},[]);n.useEffect(()=>f,[f]),n.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),l(null)}},[c,l]);let m=(0,r.useComposedRefs)(o,i.onTriggerChange);return(0,b.jsx)(z,{asChild:!0,...p,children:(0,b.jsx)(ea,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?i.contentId:void 0,"data-state":eD(a.open),...e,ref:m,onClick:n=>{e.onClick?.(n),e.disabled||n.defaultPrevented||(n.currentTarget.focus(),a.open||a.onOpenChange(!0))},onPointerMove:(0,t.composeEventHandlers)(e.onPointerMove,e_(n=>{s.onItemEnter(n),!n.defaultPrevented&&(e.disabled||a.open||d.current||(s.onPointerGraceIntentChange(null),d.current=window.setTimeout(()=>{a.onOpenChange(!0),f()},100)))})),onPointerLeave:(0,t.composeEventHandlers)(e.onPointerLeave,e_(e=>{f();let n=a.content?.getBoundingClientRect();if(n){let t=a.content?.dataset.side,o="right"===t,r=n[o?"left":"right"],u=n[o?"right":"left"];s.onPointerGraceIntentChange({area:[{x:e.clientX+(o?-5:5),y:e.clientY},{x:r,y:n.top},{x:u,y:n.top},{x:u,y:n.bottom},{x:r,y:n.bottom}],side:t}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(e),e.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:(0,t.composeEventHandlers)(e.onKeyDown,n=>{e.disabled||n.target!==n.currentTarget||(""===s.searchRef.current||" "!==n.key)&&j[u.dir].includes(n.key)&&(a.onOpenChange(!0),a.content?.focus(),n.preventDefault())})})})},"MenuSubTrigger")),eR=n.forwardRef(M(function(e,o){let a=B(X,e.__scopeMenu),{forceMount:u=a.forceMount,align:i="start",...s}=e,d=L(X,e.__scopeMenu),c=H(X,e.__scopeMenu),l=ex("MenuSubContent",e.__scopeMenu),p=n.useRef(null),m=(0,r.useComposedRefs)(o,p);return(0,b.jsx)(E.Provider,{scope:e.__scopeMenu,children:(0,b.jsx)(f.Presence,{present:u||d.open,children:(0,b.jsx)(E.Slot,{scope:e.__scopeMenu,children:(0,b.jsx)($,{id:l.contentId,"aria-labelledby":l.triggerId,...s,ref:m,align:i,side:"rtl"===c.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{c.isUsingKeyboardRef.current&&p.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,t.composeEventHandlers)(e.onFocusOutside,e=>{e.target!==l.trigger&&d.onOpenChange(!1)}),onEscapeKeyDown:(0,t.composeEventHandlers)(e.onEscapeKeyDown,e=>{c.onClose(),e.preventDefault()}),onKeyDown:(0,t.composeEventHandlers)(e.onKeyDown,e=>{let n=e.currentTarget.contains(e.target),t=y[c.dir].includes(e.key);n&&t&&(d.onOpenChange(!1),l.trigger?.focus(),e.preventDefault())})})})})})},"MenuSubContent"));function eD(e){return e?"open":"closed"}function eI(e){return"indeterminate"===e}function ej(e){return eI(e)?"indeterminate":e?"checked":"unchecked"}function ey(e){let n=document.activeElement;for(let t of e)if(t===n||(t.focus(),document.activeElement!==n))return}function eS(e,n){return e.map((t,o)=>e[(n+o)%e.length])}function eE(e,n,t){let o=n.length>1&&Array.from(n).every(e=>e===n[0])?n[0]:n,r=t?e.indexOf(t):-1,a=eS(e,Math.max(r,0));1===o.length&&(a=a.filter(e=>e!==t));let u=a.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return u!==t?u:void 0}function eP(e,n){let{x:t,y:o}=e,r=!1;for(let e=0,a=n.length-1;e<n.length;a=e++){let u=n[e],i=n[a],s=u.x,d=u.y,c=i.x,l=i.y;d>o!=l>o&&t<(c-s)*(o-d)/(l-d)+s&&(r=!r)}return r}function ek(e,n){return!!n&&eP({x:e.clientX,y:e.clientY},n)}function e_(e){return n=>"mouse"===n.pointerType?e(n):void 0}M(eD,"getOpenState"),M(eI,"isIndeterminate"),M(ej,"getCheckedState"),M(ey,"focusFirst"),M(eS,"wrapArray"),M(eE,"getNextMatch"),M(eP,"isPointInPolygon"),M(ek,"isPointerInGraceArea"),M(e_,"whenMouse"),e.s(["Anchor",0,z,"Arrow",0,ev,"CheckboxItem",0,eu,"Content",0,W,"Group",0,ee,"Item",0,er,"ItemIndicator",0,em,"Label",0,en,"Portal",0,V,"RadioGroup",0,ed,"RadioItem",0,ec,"Root",0,K,"Separator",0,eg,"Sub",0,eb,"SubContent",0,eR,"SubTrigger",0,eM,"createMenuScope",0,T],832006);var eT=e.i(986253);e.s(["ChevronRightIcon",()=>eT.default],746336)},755146,e=>{"use strict";var n=e.i(843476),t=e.i(271645),o=e.i(981140),r=e.i(820783),a=e.i(30030),u=e.i(369340),i=e.i(248425),s=e.i(832006),d=e.i(610772),c=Object.defineProperty,l=(e,n)=>c(e,"name",{value:n,configurable:!0}),p="DropdownMenu",[f,m]=(0,a.createContextScope)(p,[s.createMenuScope]),g=(0,s.createMenuScope)(),[v,h]=f(p),w=l(e=>{let{__scopeDropdownMenu:o,children:r,dir:a,open:i,defaultOpen:c,onOpenChange:l,modal:f=!0}=e,m=g(o),h=t.useRef(null),[w,x]=(0,u.useControllableState)({prop:i,defaultProp:c??!1,onChange:l,caller:p});return(0,n.jsx)(v,{scope:o,triggerId:(0,d.useId)(),triggerRef:h,contentId:(0,d.useId)(),open:w,onOpenChange:x,onOpenToggle:t.useCallback(()=>x(e=>!e),[x]),modal:f,children:(0,n.jsx)(s.Root,{...m,open:w,onOpenChange:x,dir:a,modal:f,children:r})})},"DropdownMenu"),x=t.forwardRef(l(function(e,t){let{__scopeDropdownMenu:a,disabled:u=!1,...d}=e,c=h("DropdownMenuTrigger",a),l=g(a),p=(0,r.useComposedRefs)(t,c.triggerRef);return(0,n.jsx)(s.Anchor,{asChild:!0,...l,children:(0,n.jsx)(i.Primitive.button,{type:"button",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":c.open?"open":"closed","data-disabled":u?"":void 0,disabled:u,...d,ref:p,onPointerDown:(0,o.composeEventHandlers)(e.onPointerDown,e=>{!u&&0===e.button&&!1===e.ctrlKey&&(c.onOpenToggle(),c.open||e.preventDefault())}),onKeyDown:(0,o.composeEventHandlers)(e.onKeyDown,e=>{!u&&(["Enter"," "].includes(e.key)&&c.onOpenToggle(),"ArrowDown"===e.key&&c.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})},"DropdownMenuTrigger")),b=l(e=>{let{__scopeDropdownMenu:t,...o}=e,r=g(t);return(0,n.jsx)(s.Portal,{...r,...o})},"DropdownMenuPortal"),C=t.forwardRef(l(function(e,r){let{__scopeDropdownMenu:a,...u}=e,i=h("DropdownMenuContent",a),d=g(a),c=t.useRef(!1);return(0,n.jsx)(s.Content,{id:i.contentId,"aria-labelledby":i.triggerId,...d,...u,ref:r,onCloseAutoFocus:(0,o.composeEventHandlers)(e.onCloseAutoFocus,e=>{c.current||i.triggerRef.current?.focus(),c.current=!1,e.preventDefault()}),onInteractOutside:(0,o.composeEventHandlers)(e.onInteractOutside,e=>{let n=e.detail.originalEvent,t=0===n.button&&!0===n.ctrlKey,o=2===n.button||t;(!i.modal||o)&&(c.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"DropdownMenuContent")),M=t.forwardRef(l(function(e,t){let{__scopeDropdownMenu:o,...r}=e,a=g(o);return(0,n.jsx)(s.Group,{...a,...r,ref:t})},"DropdownMenuGroup")),R=t.forwardRef(l(function(e,t){let{__scopeDropdownMenu:o,...r}=e,a=g(o);return(0,n.jsx)(s.Label,{...a,...r,ref:t})},"DropdownMenuLabel")),D=t.forwardRef(l(function(e,t){let{__scopeDropdownMenu:o,...r}=e,a=g(o);return(0,n.jsx)(s.Item,{...a,...r,ref:t})},"DropdownMenuItem")),I=t.forwardRef(l(function(e,t){let{__scopeDropdownMenu:o,...r}=e,a=g(o);return(0,n.jsx)(s.CheckboxItem,{...a,...r,ref:t})},"DropdownMenuCheckboxItem")),j=t.forwardRef(l(function(e,t){let{__scopeDropdownMenu:o,...r}=e,a=g(o);return(0,n.jsx)(s.RadioGroup,{...a,...r,ref:t})},"DropdownMenuRadioGroup")),y=t.forwardRef(l(function(e,t){let{__scopeDropdownMenu:o,...r}=e,a=g(o);return(0,n.jsx)(s.RadioItem,{...a,...r,ref:t})},"DropdownMenuRadioItem")),S=t.forwardRef(l(function(e,t){let{__scopeDropdownMenu:o,...r}=e,a=g(o);return(0,n.jsx)(s.ItemIndicator,{...a,...r,ref:t})},"DropdownMenuItemIndicator")),E=t.forwardRef(l(function(e,t){let{__scopeDropdownMenu:o,...r}=e,a=g(o);return(0,n.jsx)(s.Separator,{...a,...r,ref:t})},"DropdownMenuSeparator")),P=t.forwardRef(l(function(e,t){let{__scopeDropdownMenu:o,...r}=e,a=g(o);return(0,n.jsx)(s.Arrow,{...a,...r,ref:t})},"DropdownMenuArrow")),k=l(e=>{let{__scopeDropdownMenu:t,children:o,open:r,onOpenChange:a,defaultOpen:i}=e,d=g(t),[c,l]=(0,u.useControllableState)({prop:r,defaultProp:i??!1,onChange:a,caller:"DropdownMenuSub"});return(0,n.jsx)(s.Sub,{...d,open:c,onOpenChange:l,children:o})},"DropdownMenuSub"),_=t.forwardRef(l(function(e,t){let{__scopeDropdownMenu:o,...r}=e,a=g(o);return(0,n.jsx)(s.SubTrigger,{...a,...r,ref:t})},"DropdownMenuSubTrigger")),T=t.forwardRef(l(function(e,t){let{__scopeDropdownMenu:o,...r}=e,a=g(o);return(0,n.jsx)(s.SubContent,{...a,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"DropdownMenuSubContent"));e.s(["Arrow",0,P,"CheckboxItem",0,I,"Content",0,C,"DropdownMenu",0,w,"DropdownMenuArrow",0,P,"DropdownMenuCheckboxItem",0,I,"DropdownMenuContent",0,C,"DropdownMenuGroup",0,M,"DropdownMenuItem",0,D,"DropdownMenuItemIndicator",0,S,"DropdownMenuLabel",0,R,"DropdownMenuPortal",0,b,"DropdownMenuRadioGroup",0,j,"DropdownMenuRadioItem",0,y,"DropdownMenuSeparator",0,E,"DropdownMenuSub",0,k,"DropdownMenuSubContent",0,T,"DropdownMenuSubTrigger",0,_,"DropdownMenuTrigger",0,x,"Group",0,M,"Item",0,D,"ItemIndicator",0,S,"Label",0,R,"Portal",0,b,"RadioGroup",0,j,"RadioItem",0,y,"Root",0,w,"Separator",0,E,"Sub",0,k,"SubContent",0,T,"SubTrigger",0,_,"Trigger",0,x,"createDropdownMenuScope",0,m],540666);var F=e.i(540666),F=F,A=e.i(975157),O=e.i(593698),L=e.i(746336);e.s(["DropdownMenu",0,function({...e}){return(0,n.jsx)(F.Root,{"data-slot":"dropdown-menu",...e})},"DropdownMenuCheckboxItem",0,function({className:e,children:t,checked:o,inset:r,...a}){return(0,n.jsxs)(F.CheckboxItem,{"data-slot":"dropdown-menu-checkbox-item","data-inset":r,className:(0,A.cn)("relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:o,...a,children:[(0,n.jsx)("span",{className:"pointer-events-none absolute right-2 flex items-center justify-center","data-slot":"dropdown-menu-checkbox-item-indicator",children:(0,n.jsx)(F.ItemIndicator,{children:(0,n.jsx)(O.CheckIcon,{})})}),t]})},"DropdownMenuContent",0,function({className:e,align:t="start",sideOffset:o=4,...r}){return(0,n.jsx)(F.Portal,{children:(0,n.jsx)(F.Content,{"data-slot":"dropdown-menu-content",sideOffset:o,align:t,className:(0,A.cn)("z-50 max-h-(--radix-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:overflow-hidden data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...r})})},"DropdownMenuItem",0,function({className:e,inset:t,variant:o="default",...r}){return(0,n.jsx)(F.Item,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":o,className:(0,A.cn)("group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive",e),...r})},"DropdownMenuLabel",0,function({className:e,inset:t,...o}){return(0,n.jsx)(F.Label,{"data-slot":"dropdown-menu-label","data-inset":t,className:(0,A.cn)("px-1.5 py-1 text-xs font-medium text-muted-foreground data-inset:pl-7",e),...o})},"DropdownMenuRadioGroup",0,function({...e}){return(0,n.jsx)(F.RadioGroup,{"data-slot":"dropdown-menu-radio-group",...e})},"DropdownMenuRadioItem",0,function({className:e,children:t,inset:o,...r}){return(0,n.jsxs)(F.RadioItem,{"data-slot":"dropdown-menu-radio-item","data-inset":o,className:(0,A.cn)("relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[(0,n.jsx)("span",{className:"pointer-events-none absolute right-2 flex items-center justify-center","data-slot":"dropdown-menu-radio-item-indicator",children:(0,n.jsx)(F.ItemIndicator,{children:(0,n.jsx)(O.CheckIcon,{})})}),t]})},"DropdownMenuSeparator",0,function({className:e,...t}){return(0,n.jsx)(F.Separator,{"data-slot":"dropdown-menu-separator",className:(0,A.cn)("-mx-1 my-1 h-px bg-border",e),...t})},"DropdownMenuSub",0,function({...e}){return(0,n.jsx)(F.Sub,{"data-slot":"dropdown-menu-sub",...e})},"DropdownMenuSubContent",0,function({className:e,...t}){return(0,n.jsx)(F.SubContent,{"data-slot":"dropdown-menu-sub-content",className:(0,A.cn)("z-50 min-w-[96px] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-lg bg-popover p-1 text-popover-foreground shadow-lg ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...t})},"DropdownMenuSubTrigger",0,function({className:e,inset:t,children:o,...r}){return(0,n.jsxs)(F.SubTrigger,{"data-slot":"dropdown-menu-sub-trigger","data-inset":t,className:(0,A.cn)("flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-open:bg-accent data-open:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[o,(0,n.jsx)(L.ChevronRightIcon,{className:"ml-auto"})]})},"DropdownMenuTrigger",0,function({...e}){return(0,n.jsx)(F.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}],755146)}]);