@ai-development-environment/server 0.0.48 → 0.0.49

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 (575) hide show
  1. package/package.json +1 -1
  2. package/prisma-runtime/prisma/migrations/20260723214432_add_model_costs/migration.sql +28 -0
  3. package/prisma-runtime/prisma/schema.prisma +30 -0
  4. package/standalone/.next/BUILD_ID +1 -1
  5. package/standalone/.next/app-path-routes-manifest.json +1 -0
  6. package/standalone/.next/build-manifest.json +3 -3
  7. package/standalone/.next/prerender-manifest.json +3 -3
  8. package/standalone/.next/routes-manifest.json +8 -0
  9. package/standalone/.next/server/app/[locale]/actions/page.js.nft.json +1 -1
  10. package/standalone/.next/server/app/[locale]/actions/page_client-reference-manifest.js +1 -1
  11. package/standalone/.next/server/app/[locale]/actions-cache/page.js.nft.json +1 -1
  12. package/standalone/.next/server/app/[locale]/actions-cache/page_client-reference-manifest.js +1 -1
  13. package/standalone/.next/server/app/[locale]/agents/[id]/page.js.nft.json +1 -1
  14. package/standalone/.next/server/app/[locale]/agents/[id]/page_client-reference-manifest.js +1 -1
  15. package/standalone/.next/server/app/[locale]/agents/page.js.nft.json +1 -1
  16. package/standalone/.next/server/app/[locale]/agents/page_client-reference-manifest.js +1 -1
  17. package/standalone/.next/server/app/[locale]/analytics-events/page.js.nft.json +1 -1
  18. package/standalone/.next/server/app/[locale]/analytics-events/page_client-reference-manifest.js +1 -1
  19. package/standalone/.next/server/app/[locale]/build-data/page.js.nft.json +1 -1
  20. package/standalone/.next/server/app/[locale]/build-data/page_client-reference-manifest.js +1 -1
  21. package/standalone/.next/server/app/[locale]/builds/[buildId]/coverage/page.js.nft.json +1 -1
  22. package/standalone/.next/server/app/[locale]/builds/[buildId]/coverage/page_client-reference-manifest.js +1 -1
  23. package/standalone/.next/server/app/[locale]/builds/[buildId]/page.js.nft.json +1 -1
  24. package/standalone/.next/server/app/[locale]/builds/[buildId]/page_client-reference-manifest.js +1 -1
  25. package/standalone/.next/server/app/[locale]/builds/page.js.nft.json +1 -1
  26. package/standalone/.next/server/app/[locale]/builds/page_client-reference-manifest.js +1 -1
  27. package/standalone/.next/server/app/[locale]/codebases/[codebaseId]/page.js.nft.json +1 -1
  28. package/standalone/.next/server/app/[locale]/codebases/[codebaseId]/page_client-reference-manifest.js +1 -1
  29. package/standalone/.next/server/app/[locale]/codebases/page.js.nft.json +1 -1
  30. package/standalone/.next/server/app/[locale]/codebases/page_client-reference-manifest.js +1 -1
  31. package/standalone/.next/server/app/[locale]/codebases/repositories/[repositoryId]/page.js.nft.json +1 -1
  32. package/standalone/.next/server/app/[locale]/codebases/repositories/[repositoryId]/page_client-reference-manifest.js +1 -1
  33. package/standalone/.next/server/app/[locale]/comments/page.js.nft.json +1 -1
  34. package/standalone/.next/server/app/[locale]/comments/page_client-reference-manifest.js +1 -1
  35. package/standalone/.next/server/app/[locale]/console-logs/page.js.nft.json +1 -1
  36. package/standalone/.next/server/app/[locale]/console-logs/page_client-reference-manifest.js +1 -1
  37. package/standalone/.next/server/app/[locale]/costs/page/app-paths-manifest.json +3 -0
  38. package/standalone/.next/server/app/[locale]/costs/page/build-manifest.json +16 -0
  39. package/standalone/.next/server/app/[locale]/costs/page/next-font-manifest.json +11 -0
  40. package/standalone/.next/server/app/[locale]/costs/page/react-loadable-manifest.json +1 -0
  41. package/standalone/.next/server/app/[locale]/costs/page/server-reference-manifest.json +4 -0
  42. package/standalone/.next/server/app/[locale]/costs/page.js +17 -0
  43. package/standalone/.next/server/app/[locale]/costs/page.js.map +5 -0
  44. package/standalone/.next/server/app/[locale]/costs/page.js.nft.json +1 -0
  45. package/standalone/.next/server/app/[locale]/costs/page_client-reference-manifest.js +3 -0
  46. package/standalone/.next/server/app/[locale]/credentials/page.js.nft.json +1 -1
  47. package/standalone/.next/server/app/[locale]/credentials/page_client-reference-manifest.js +1 -1
  48. package/standalone/.next/server/app/[locale]/devices/[id]/page.js.nft.json +1 -1
  49. package/standalone/.next/server/app/[locale]/devices/[id]/page_client-reference-manifest.js +1 -1
  50. package/standalone/.next/server/app/[locale]/devices/enroll/page.js.nft.json +1 -1
  51. package/standalone/.next/server/app/[locale]/devices/enroll/page_client-reference-manifest.js +1 -1
  52. package/standalone/.next/server/app/[locale]/devices/page.js.nft.json +1 -1
  53. package/standalone/.next/server/app/[locale]/devices/page_client-reference-manifest.js +1 -1
  54. package/standalone/.next/server/app/[locale]/drafts/page.js.nft.json +1 -1
  55. package/standalone/.next/server/app/[locale]/drafts/page_client-reference-manifest.js +1 -1
  56. package/standalone/.next/server/app/[locale]/jira/cache/page.js.nft.json +1 -1
  57. package/standalone/.next/server/app/[locale]/jira/cache/page_client-reference-manifest.js +1 -1
  58. package/standalone/.next/server/app/[locale]/jira/cache/tickets/[issueKey]/page.js.nft.json +1 -1
  59. package/standalone/.next/server/app/[locale]/jira/cache/tickets/[issueKey]/page_client-reference-manifest.js +1 -1
  60. package/standalone/.next/server/app/[locale]/jira/tickets/[issueKey]/page.js.nft.json +1 -1
  61. package/standalone/.next/server/app/[locale]/jira/tickets/[issueKey]/page_client-reference-manifest.js +1 -1
  62. package/standalone/.next/server/app/[locale]/jira/tickets/page.js.nft.json +1 -1
  63. package/standalone/.next/server/app/[locale]/jira/tickets/page_client-reference-manifest.js +1 -1
  64. package/standalone/.next/server/app/[locale]/jobs/[jobId]/page.js.nft.json +1 -1
  65. package/standalone/.next/server/app/[locale]/jobs/[jobId]/page_client-reference-manifest.js +1 -1
  66. package/standalone/.next/server/app/[locale]/notifications/page.js.nft.json +1 -1
  67. package/standalone/.next/server/app/[locale]/notifications/page_client-reference-manifest.js +1 -1
  68. package/standalone/.next/server/app/[locale]/page.js.nft.json +1 -1
  69. package/standalone/.next/server/app/[locale]/page_client-reference-manifest.js +1 -1
  70. package/standalone/.next/server/app/[locale]/plans/[runId]/page.js.nft.json +1 -1
  71. package/standalone/.next/server/app/[locale]/plans/[runId]/page_client-reference-manifest.js +1 -1
  72. package/standalone/.next/server/app/[locale]/plans/page.js.nft.json +1 -1
  73. package/standalone/.next/server/app/[locale]/plans/page_client-reference-manifest.js +1 -1
  74. package/standalone/.next/server/app/[locale]/polling/page.js.nft.json +1 -1
  75. package/standalone/.next/server/app/[locale]/polling/page_client-reference-manifest.js +1 -1
  76. package/standalone/.next/server/app/[locale]/provisioning-profiles/[profileId]/page.js.nft.json +1 -1
  77. package/standalone/.next/server/app/[locale]/provisioning-profiles/[profileId]/page_client-reference-manifest.js +1 -1
  78. package/standalone/.next/server/app/[locale]/provisioning-profiles/page.js.nft.json +1 -1
  79. package/standalone/.next/server/app/[locale]/provisioning-profiles/page_client-reference-manifest.js +1 -1
  80. package/standalone/.next/server/app/[locale]/pull-requests/[owner]/[repository]/[number]/page.js.nft.json +1 -1
  81. package/standalone/.next/server/app/[locale]/pull-requests/[owner]/[repository]/[number]/page_client-reference-manifest.js +1 -1
  82. package/standalone/.next/server/app/[locale]/pull-requests/page.js.nft.json +1 -1
  83. package/standalone/.next/server/app/[locale]/pull-requests/page_client-reference-manifest.js +1 -1
  84. package/standalone/.next/server/app/[locale]/push-notifications/page.js.nft.json +1 -1
  85. package/standalone/.next/server/app/[locale]/push-notifications/page_client-reference-manifest.js +1 -1
  86. package/standalone/.next/server/app/[locale]/runs/new/page.js.nft.json +1 -1
  87. package/standalone/.next/server/app/[locale]/runs/new/page_client-reference-manifest.js +1 -1
  88. package/standalone/.next/server/app/[locale]/sessions/[runId]/page.js.nft.json +1 -1
  89. package/standalone/.next/server/app/[locale]/sessions/[runId]/page_client-reference-manifest.js +1 -1
  90. package/standalone/.next/server/app/[locale]/sessions/page.js.nft.json +1 -1
  91. package/standalone/.next/server/app/[locale]/sessions/page_client-reference-manifest.js +1 -1
  92. package/standalone/.next/server/app/[locale]/settings/page.js.nft.json +1 -1
  93. package/standalone/.next/server/app/[locale]/settings/page_client-reference-manifest.js +1 -1
  94. package/standalone/.next/server/app/[locale]/skills/[skillId]/page.js.nft.json +1 -1
  95. package/standalone/.next/server/app/[locale]/skills/[skillId]/page_client-reference-manifest.js +1 -1
  96. package/standalone/.next/server/app/[locale]/skills/groups/[groupId]/page.js.nft.json +1 -1
  97. package/standalone/.next/server/app/[locale]/skills/groups/[groupId]/page_client-reference-manifest.js +1 -1
  98. package/standalone/.next/server/app/[locale]/skills/groups/page.js.nft.json +1 -1
  99. package/standalone/.next/server/app/[locale]/skills/groups/page_client-reference-manifest.js +1 -1
  100. package/standalone/.next/server/app/[locale]/skills/page.js.nft.json +1 -1
  101. package/standalone/.next/server/app/[locale]/skills/page_client-reference-manifest.js +1 -1
  102. package/standalone/.next/server/app/[locale]/skills/sync/[runId]/page.js.nft.json +1 -1
  103. package/standalone/.next/server/app/[locale]/skills/sync/[runId]/page_client-reference-manifest.js +1 -1
  104. package/standalone/.next/server/app/[locale]/tools/page.js.nft.json +1 -1
  105. package/standalone/.next/server/app/[locale]/tools/page_client-reference-manifest.js +1 -1
  106. package/standalone/.next/server/app/[locale]/unified-events/page.js.nft.json +1 -1
  107. package/standalone/.next/server/app/[locale]/unified-events/page_client-reference-manifest.js +1 -1
  108. package/standalone/.next/server/app/[locale]/usage/page.js.nft.json +1 -1
  109. package/standalone/.next/server/app/[locale]/usage/page_client-reference-manifest.js +1 -1
  110. package/standalone/.next/server/app/[locale]/worktrees/[worktreeId]/page.js.nft.json +1 -1
  111. package/standalone/.next/server/app/[locale]/worktrees/[worktreeId]/page_client-reference-manifest.js +1 -1
  112. package/standalone/.next/server/app/[locale]/worktrees/page.js.nft.json +1 -1
  113. package/standalone/.next/server/app/[locale]/worktrees/page_client-reference-manifest.js +1 -1
  114. package/standalone/.next/server/app/_global-error.html +1 -1
  115. package/standalone/.next/server/app/_global-error.rsc +1 -1
  116. package/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  117. package/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  118. package/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  119. package/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  120. package/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  121. package/standalone/.next/server/app/_not-found.html +1 -1
  122. package/standalone/.next/server/app/_not-found.rsc +1 -1
  123. package/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  124. package/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  125. package/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  126. package/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  127. package/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  128. package/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  129. package/standalone/.next/server/app/api/agent/run-attachments/[attachmentId]/route.js +1 -1
  130. package/standalone/.next/server/app/api/agent/run-attachments/[attachmentId]/route.js.nft.json +1 -1
  131. package/standalone/.next/server/app/api/build-artifact-uploads/[uploadId]/route.js +1 -1
  132. package/standalone/.next/server/app/api/build-artifact-uploads/[uploadId]/route.js.nft.json +1 -1
  133. package/standalone/.next/server/app/api/codebases/by-path/route.js +1 -1
  134. package/standalone/.next/server/app/api/codebases/by-path/route.js.nft.json +1 -1
  135. package/standalone/.next/server/app/api/codebases/route.js +1 -1
  136. package/standalone/.next/server/app/api/codebases/route.js.nft.json +1 -1
  137. package/standalone/.next/server/app/api/graphql/route.js +1 -1
  138. package/standalone/.next/server/app/api/graphql/route.js.nft.json +1 -1
  139. package/standalone/.next/server/app/api/ios/apns-devices/route.js +1 -1
  140. package/standalone/.next/server/app/api/ios/apns-devices/route.js.nft.json +1 -1
  141. package/standalone/.next/server/app/api/ios/devices/export.tsv/route.js +1 -1
  142. package/standalone/.next/server/app/api/ios/devices/export.tsv/route.js.nft.json +1 -1
  143. package/standalone/.next/server/app/api/ios/enrollment/start/route.js +1 -1
  144. package/standalone/.next/server/app/api/ios/enrollment/start/route.js.nft.json +1 -1
  145. package/standalone/.next/server/app/api/mcp/route.js +1 -1
  146. package/standalone/.next/server/app/api/mcp/route.js.nft.json +1 -1
  147. package/standalone/.next/server/app/api/openapi.json/route.js +1 -1
  148. package/standalone/.next/server/app/api/openapi.json/route.js.nft.json +1 -1
  149. package/standalone/.next/server/app/api/public/builds/[buildId]/artifacts/[artifactId]/manifest.plist/route.js +1 -1
  150. package/standalone/.next/server/app/api/public/builds/[buildId]/artifacts/[artifactId]/manifest.plist/route.js.nft.json +1 -1
  151. package/standalone/.next/server/app/api/public/builds/[buildId]/artifacts/[artifactId]/route.js +1 -1
  152. package/standalone/.next/server/app/api/public/builds/[buildId]/artifacts/[artifactId]/route.js.nft.json +1 -1
  153. package/standalone/.next/server/app/api/public/github/webhook/route.js +1 -1
  154. package/standalone/.next/server/app/api/public/github/webhook/route.js.nft.json +1 -1
  155. package/standalone/.next/server/app/api/public/ios/enrollment-profile/route.js +1 -1
  156. package/standalone/.next/server/app/api/public/ios/enrollment-profile/route.js.nft.json +1 -1
  157. package/standalone/.next/server/app/api/public/ios/profile-response/route.js +1 -1
  158. package/standalone/.next/server/app/api/public/ios/profile-response/route.js.nft.json +1 -1
  159. package/standalone/.next/server/app/api/run-attachments/[attachmentId]/route.js +1 -1
  160. package/standalone/.next/server/app/api/run-attachments/[attachmentId]/route.js.nft.json +1 -1
  161. package/standalone/.next/server/app/api/run-attachments/route.js +1 -1
  162. package/standalone/.next/server/app/api/run-attachments/route.js.nft.json +1 -1
  163. package/standalone/.next/server/app/api/telemetry/analytics-events/route.js +1 -1
  164. package/standalone/.next/server/app/api/telemetry/analytics-events/route.js.nft.json +1 -1
  165. package/standalone/.next/server/app/api/telemetry/console-logs/route.js +1 -1
  166. package/standalone/.next/server/app/api/telemetry/console-logs/route.js.nft.json +1 -1
  167. package/standalone/.next/server/app/api/telemetry/export/route.js +1 -1
  168. package/standalone/.next/server/app/api/telemetry/export/route.js.nft.json +1 -1
  169. package/standalone/.next/server/app/api/tools/call/route.js +1 -1
  170. package/standalone/.next/server/app/api/tools/call/route.js.nft.json +1 -1
  171. package/standalone/.next/server/app/api/tools/catalog/route.js +1 -1
  172. package/standalone/.next/server/app/api/tools/catalog/route.js.nft.json +1 -1
  173. package/standalone/.next/server/app/api/worktrees/[worktreeId]/diff-image/route.js +1 -1
  174. package/standalone/.next/server/app/api/worktrees/[worktreeId]/diff-image/route.js.nft.json +1 -1
  175. package/standalone/.next/server/app-paths-manifest.json +1 -0
  176. package/standalone/.next/server/chunks/{[root-of-the-server]__0m6-kcg._.js → [root-of-the-server]__0-ktevp._.js} +2 -2
  177. package/standalone/.next/server/chunks/{[root-of-the-server]__06tm4sl._.js → [root-of-the-server]__0-zj-yf._.js} +1 -1
  178. package/standalone/.next/server/chunks/{[root-of-the-server]__0eili-e._.js → [root-of-the-server]__01nvzbq._.js} +2 -2
  179. package/standalone/.next/server/chunks/{[root-of-the-server]__0_87b17._.js → [root-of-the-server]__03orm-i._.js} +1 -1
  180. package/standalone/.next/server/chunks/{[root-of-the-server]__039ccw_._.js → [root-of-the-server]__04_a-p8._.js} +1 -1
  181. package/standalone/.next/server/chunks/{[root-of-the-server]__045avxp._.js → [root-of-the-server]__04sca_q._.js} +1 -1
  182. package/standalone/.next/server/chunks/{[root-of-the-server]__09vpqml._.js → [root-of-the-server]__04wnjxs._.js} +1 -1
  183. package/standalone/.next/server/chunks/{[root-of-the-server]__0dvn5ie._.js → [root-of-the-server]__04xapi4._.js} +1 -1
  184. package/standalone/.next/server/chunks/{[root-of-the-server]__00kk4vq._.js → [root-of-the-server]__04xwt6o._.js} +1 -1
  185. package/standalone/.next/server/chunks/{[root-of-the-server]__00rus46._.js → [root-of-the-server]__051yqe-._.js} +1 -1
  186. package/standalone/.next/server/chunks/{[root-of-the-server]__1tw_3no._.js → [root-of-the-server]__05pgm03._.js} +2 -2
  187. package/standalone/.next/server/chunks/{[root-of-the-server]__05vesnq._.js → [root-of-the-server]__05uug8c._.js} +1 -1
  188. package/standalone/.next/server/chunks/{[root-of-the-server]__026cujx._.js → [root-of-the-server]__064xuoi._.js} +1 -1
  189. package/standalone/.next/server/chunks/{[root-of-the-server]__0hwgatq._.js → [root-of-the-server]__06bc7-t._.js} +2 -2
  190. package/standalone/.next/server/chunks/{[root-of-the-server]__05iw4b6._.js → [root-of-the-server]__06hz_5m._.js} +1 -1
  191. package/standalone/.next/server/chunks/{[root-of-the-server]__079vs-o._.js → [root-of-the-server]__06qqqz4._.js} +1 -1
  192. package/standalone/.next/server/chunks/[root-of-the-server]__073_7pr._.js +3 -0
  193. package/standalone/.next/server/chunks/[root-of-the-server]__07ezodj._.js +3 -0
  194. package/standalone/.next/server/chunks/{[root-of-the-server]__0ammric._.js → [root-of-the-server]__07gz69e._.js} +1 -1
  195. package/standalone/.next/server/chunks/{[root-of-the-server]__0avv--n._.js → [root-of-the-server]__08ekn_k._.js} +1 -1
  196. package/standalone/.next/server/chunks/{[root-of-the-server]__06qq-80._.js → [root-of-the-server]__09v822g._.js} +1 -1
  197. package/standalone/.next/server/chunks/[root-of-the-server]__0_2v0r6._.js +3 -0
  198. package/standalone/.next/server/chunks/{[root-of-the-server]__0ev57uq._.js → [root-of-the-server]__0_elwh5._.js} +1 -1
  199. package/standalone/.next/server/chunks/[root-of-the-server]__0_uti3p._.js +3 -0
  200. package/standalone/.next/server/chunks/{[root-of-the-server]__04iwwa-._.js → [root-of-the-server]__0av34cc._.js} +2 -2
  201. package/standalone/.next/server/chunks/[root-of-the-server]__0be93bj._.js +3 -0
  202. package/standalone/.next/server/chunks/[root-of-the-server]__0bzypkl._.js +3 -0
  203. package/standalone/.next/server/chunks/{[root-of-the-server]__0lfudmf._.js → [root-of-the-server]__0ccm4vp._.js} +1 -1
  204. package/standalone/.next/server/chunks/{[root-of-the-server]__212svca._.js → [root-of-the-server]__0cfp7rm._.js} +2 -2
  205. package/standalone/.next/server/chunks/[root-of-the-server]__0d3jwu8._.js +3 -0
  206. package/standalone/.next/server/chunks/[root-of-the-server]__0dqd2cd._.js +3 -0
  207. package/standalone/.next/server/chunks/[root-of-the-server]__0e3sw2f._.js +3 -0
  208. package/standalone/.next/server/chunks/[root-of-the-server]__0ehmsw5._.js +3 -0
  209. package/standalone/.next/server/chunks/[root-of-the-server]__0ey9b8q._.js +3 -0
  210. package/standalone/.next/server/chunks/[root-of-the-server]__0hxwzy5._.js +3 -0
  211. package/standalone/.next/server/chunks/{[root-of-the-server]__00pn80i._.js → [root-of-the-server]__0i46cc8._.js} +2 -2
  212. package/standalone/.next/server/chunks/{[root-of-the-server]__1mkh-uu._.js → [root-of-the-server]__0ii54f8._.js} +2 -2
  213. package/standalone/.next/server/chunks/[root-of-the-server]__0k5hi4x._.js +3 -0
  214. package/standalone/.next/server/chunks/[root-of-the-server]__0lk6mxj._.js +3 -0
  215. package/standalone/.next/server/chunks/{[root-of-the-server]__1nozyf6._.js → [root-of-the-server]__0miujba._.js} +2 -2
  216. package/standalone/.next/server/chunks/[root-of-the-server]__0qbgbqj._.js +3 -0
  217. package/standalone/.next/server/chunks/[root-of-the-server]__0qc5tar._.js +3 -0
  218. package/standalone/.next/server/chunks/[root-of-the-server]__0rland0._.js +3 -0
  219. package/standalone/.next/server/chunks/{[root-of-the-server]__1_sflnn._.js → [root-of-the-server]__0rsjbt9._.js} +2 -2
  220. package/standalone/.next/server/chunks/[root-of-the-server]__0u67sg7._.js +3 -0
  221. package/standalone/.next/server/chunks/[root-of-the-server]__0ubhe7w._.js +3 -0
  222. package/standalone/.next/server/chunks/[root-of-the-server]__0ue-6s0._.js +3 -0
  223. package/standalone/.next/server/chunks/[root-of-the-server]__0uyhbd8._.js +3 -0
  224. package/standalone/.next/server/chunks/[root-of-the-server]__0v_qn14._.js +3 -0
  225. package/standalone/.next/server/chunks/{[root-of-the-server]__0oef7yv._.js → [root-of-the-server]__0vgjzu_._.js} +2 -2
  226. package/standalone/.next/server/chunks/{[root-of-the-server]__0t1ryja._.js → [root-of-the-server]__0vs63nv._.js} +2 -2
  227. package/standalone/.next/server/chunks/{[root-of-the-server]__0ujfqqn._.js → [root-of-the-server]__0vuegxj._.js} +1 -1
  228. package/standalone/.next/server/chunks/[root-of-the-server]__0wc19bn._.js +3 -0
  229. package/standalone/.next/server/chunks/[root-of-the-server]__0xhhfqn._.js +3 -0
  230. package/standalone/.next/server/chunks/[root-of-the-server]__0xuga9u._.js +3 -0
  231. package/standalone/.next/server/chunks/[root-of-the-server]__1-b8mhr._.js +3 -0
  232. package/standalone/.next/server/chunks/[root-of-the-server]__1-vesoj._.js +3 -0
  233. package/standalone/.next/server/chunks/[root-of-the-server]__10jq5fz._.js +3 -0
  234. package/standalone/.next/server/chunks/[root-of-the-server]__11adyal._.js +3 -0
  235. package/standalone/.next/server/chunks/[root-of-the-server]__11v9z03._.js +3 -0
  236. package/standalone/.next/server/chunks/{[root-of-the-server]__03yxfwh._.js → [root-of-the-server]__12qoy0t._.js} +2 -2
  237. package/standalone/.next/server/chunks/{[root-of-the-server]__0uq2mf_._.js → [root-of-the-server]__13olq7t._.js} +2 -2
  238. package/standalone/.next/server/chunks/[root-of-the-server]__13z4o0y._.js +3 -0
  239. package/standalone/.next/server/chunks/[root-of-the-server]__14flk9w._.js +3 -0
  240. package/standalone/.next/server/chunks/[root-of-the-server]__14p4_xo._.js +3 -0
  241. package/standalone/.next/server/chunks/{[root-of-the-server]__1attksp._.js → [root-of-the-server]__14x4hy5._.js} +2 -2
  242. package/standalone/.next/server/chunks/[root-of-the-server]__16yif_j._.js +3 -0
  243. package/standalone/.next/server/chunks/[root-of-the-server]__17_i51a._.js +3 -0
  244. package/standalone/.next/server/chunks/[root-of-the-server]__17fmydy._.js +3 -0
  245. package/standalone/.next/server/chunks/[root-of-the-server]__17uilh6._.js +3 -0
  246. package/standalone/.next/server/chunks/{[root-of-the-server]__11hjzc0._.js → [root-of-the-server]__183_4dj._.js} +2 -2
  247. package/standalone/.next/server/chunks/[root-of-the-server]__18p4ewi._.js +3 -0
  248. package/standalone/.next/server/chunks/[root-of-the-server]__190kf-7._.js +3 -0
  249. package/standalone/.next/server/chunks/[root-of-the-server]__1_t7_qf._.js +3 -0
  250. package/standalone/.next/server/chunks/[root-of-the-server]__1_tq9n2._.js +3 -0
  251. package/standalone/.next/server/chunks/[root-of-the-server]__1b8ar_b._.js +3 -0
  252. package/standalone/.next/server/chunks/[root-of-the-server]__1b_j3xv._.js +3 -0
  253. package/standalone/.next/server/chunks/[root-of-the-server]__1cj96fo._.js +3 -0
  254. package/standalone/.next/server/chunks/[root-of-the-server]__1dvcmqw._.js +3 -0
  255. package/standalone/.next/server/chunks/[root-of-the-server]__1gcfshm._.js +3 -0
  256. package/standalone/.next/server/chunks/[root-of-the-server]__1gen-el._.js +3 -0
  257. package/standalone/.next/server/chunks/[root-of-the-server]__1gonl53._.js +3 -0
  258. package/standalone/.next/server/chunks/[root-of-the-server]__1hst7ec._.js +3 -0
  259. package/standalone/.next/server/chunks/[root-of-the-server]__1hvcd1x._.js +3 -0
  260. package/standalone/.next/server/chunks/[root-of-the-server]__1kajbb_._.js +3 -0
  261. package/standalone/.next/server/chunks/[root-of-the-server]__1kj1ln5._.js +3 -0
  262. package/standalone/.next/server/chunks/[root-of-the-server]__1l9-hc6._.js +3 -0
  263. package/standalone/.next/server/chunks/[root-of-the-server]__1lgant0._.js +3 -0
  264. package/standalone/.next/server/chunks/[root-of-the-server]__1na8-n6._.js +3 -0
  265. package/standalone/.next/server/chunks/[root-of-the-server]__1ottisz._.js +3 -0
  266. package/standalone/.next/server/chunks/[root-of-the-server]__1shxc8n._.js +3 -0
  267. package/standalone/.next/server/chunks/[root-of-the-server]__1tvvhzn._.js +3 -0
  268. package/standalone/.next/server/chunks/{[root-of-the-server]__1yam92a._.js → [root-of-the-server]__1ummn4p._.js} +2 -2
  269. package/standalone/.next/server/chunks/[root-of-the-server]__1v-dnat._.js +3 -0
  270. package/standalone/.next/server/chunks/[root-of-the-server]__1wdw3t2._.js +3 -0
  271. package/standalone/.next/server/chunks/[root-of-the-server]__1wdye-x._.js +3 -0
  272. package/standalone/.next/server/chunks/[root-of-the-server]__1wjvdyz._.js +3 -0
  273. package/standalone/.next/server/chunks/{[root-of-the-server]__06dbyo-._.js → [root-of-the-server]__1xnwo73._.js} +2 -2
  274. package/standalone/.next/server/chunks/{[root-of-the-server]__0v0oh52._.js → [root-of-the-server]__1yi_2qs._.js} +2 -2
  275. package/standalone/.next/server/chunks/{[root-of-the-server]__0axi_lh._.js → [root-of-the-server]__1yim97_._.js} +1 -1
  276. package/standalone/.next/server/chunks/[root-of-the-server]__1zcjrka._.js +3 -0
  277. package/standalone/.next/server/chunks/{[root-of-the-server]__08bpdlj._.js → [root-of-the-server]__1zrp8nv._.js} +2 -2
  278. package/standalone/.next/server/chunks/[root-of-the-server]__2125ewz._.js +3 -0
  279. package/standalone/.next/server/chunks/_0151la8._.js +1 -1
  280. package/standalone/.next/server/chunks/_01p5vu2._.js +1 -1
  281. package/standalone/.next/server/chunks/_07bbzzn._.js +1 -1
  282. package/standalone/.next/server/chunks/_0_3-lke._.js +88 -1
  283. package/standalone/.next/server/chunks/_0g1xb8v._.js +1 -1
  284. package/standalone/.next/server/chunks/_11p_tgb._.js +1 -1
  285. package/standalone/.next/server/chunks/_17e45g_._.js +1 -1
  286. package/standalone/.next/server/chunks/_1hmzed-._.js +192 -105
  287. package/standalone/.next/server/chunks/_1ioi8na._.js +1 -1
  288. package/standalone/.next/server/chunks/_1m96-gv._.js +1 -1
  289. package/standalone/.next/server/chunks/_1r_e2vq._.js +1 -1
  290. package/standalone/.next/server/chunks/_1xr-3kb._.js +1 -1
  291. package/standalone/.next/server/chunks/src_services_runs_index_ts_0_l1wkt._.js +5 -5
  292. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__03mx68i._.js +35 -0
  293. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__06_k1v8._.js +55 -0
  294. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ik85du._.js +35 -0
  295. package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__1wsrjus._.js → [root-of-the-server]__0lavdf4._.js} +2 -2
  296. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0lgqolk._.js +3 -0
  297. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0o4j_p7._.js +3 -0
  298. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0usqx1k._.js +3 -0
  299. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1bpbvfj._.js +3 -0
  300. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1iccye4._.js +3 -0
  301. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1m28j8h._.js +50 -0
  302. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1qatu4i._.js +55 -0
  303. package/standalone/.next/server/chunks/ssr/_0-zp1-t._.js +24 -0
  304. package/standalone/.next/server/chunks/ssr/_01gprkf._.js +3 -0
  305. package/standalone/.next/server/chunks/ssr/_02ku0-d._.js +3 -0
  306. package/standalone/.next/server/chunks/ssr/_04de9zy._.js +22 -0
  307. package/standalone/.next/server/chunks/ssr/_06iu0wl._.js +14 -0
  308. package/standalone/.next/server/chunks/ssr/_09fzzrw._.js +3 -0
  309. package/standalone/.next/server/chunks/ssr/_0_l0f-3._.js +3 -0
  310. package/standalone/.next/server/chunks/ssr/_0c0xiut._.js +3 -3
  311. package/standalone/.next/server/chunks/ssr/{_1-kqme0._.js → _0egs9gy._.js} +2 -2
  312. package/standalone/.next/server/chunks/ssr/_0f77vgb._.js +3 -3
  313. package/standalone/.next/server/chunks/ssr/_0fxzy4k._.js +25 -0
  314. package/standalone/.next/server/chunks/ssr/_0kp9tyy._.js +3 -0
  315. package/standalone/.next/server/chunks/ssr/_0mbgqw2._.js +3 -0
  316. package/standalone/.next/server/chunks/ssr/_0nlc7lw._.js +3 -0
  317. package/standalone/.next/server/chunks/ssr/_0o60joc._.js +3 -0
  318. package/standalone/.next/server/chunks/ssr/_0o6a-0c._.js +3 -0
  319. package/standalone/.next/server/chunks/ssr/_0p296dl._.js +3 -0
  320. package/standalone/.next/server/chunks/ssr/_0qilx29._.js +3 -0
  321. package/standalone/.next/server/chunks/ssr/_0qt0tus._.js +34 -0
  322. package/standalone/.next/server/chunks/ssr/_0vyqwim._.js +3 -0
  323. package/standalone/.next/server/chunks/ssr/_0xquvzm._.js +3 -0
  324. package/standalone/.next/server/chunks/ssr/_0y39xwb._.js +11 -0
  325. package/standalone/.next/server/chunks/ssr/_0zush3e._.js +3 -0
  326. package/standalone/.next/server/chunks/ssr/_12xqut4._.js +3 -0
  327. package/standalone/.next/server/chunks/ssr/_1337yek._.js +3 -0
  328. package/standalone/.next/server/chunks/ssr/_15cf0-b._.js +3 -0
  329. package/standalone/.next/server/chunks/ssr/_15p60kc._.js +3 -0
  330. package/standalone/.next/server/chunks/ssr/_17dj9--._.js +3 -0
  331. package/standalone/.next/server/chunks/ssr/_1_z-mrp._.js +3 -0
  332. package/standalone/.next/server/chunks/ssr/_1btalzp._.js +3 -0
  333. package/standalone/.next/server/chunks/ssr/_1bxaf69._.js +3 -0
  334. package/standalone/.next/server/chunks/ssr/_1dwrw9s._.js +3 -0
  335. package/standalone/.next/server/chunks/ssr/{_0ov6iy1._.js → _1ejg55c._.js} +2 -2
  336. package/standalone/.next/server/chunks/ssr/_1glp2ss._.js +24 -0
  337. package/standalone/.next/server/chunks/ssr/_1hisxge._.js +3 -0
  338. package/standalone/.next/server/chunks/ssr/_1kstox-._.js +3 -0
  339. package/standalone/.next/server/chunks/ssr/_1m5s4f8._.js +3 -0
  340. package/standalone/.next/server/chunks/ssr/_1qtzca_._.js +3 -0
  341. package/standalone/.next/server/chunks/ssr/{_1kysa5a._.js → _1s5bp9h._.js} +2 -2
  342. package/standalone/.next/server/chunks/ssr/_1wb78d8._.js +34 -0
  343. package/standalone/.next/server/chunks/ssr/_1y5d9t8._.js +6 -0
  344. package/standalone/.next/server/chunks/ssr/_1zgu74l._.js +7 -7
  345. package/standalone/.next/server/chunks/ssr/{_1j_ku-q._.js → _20lnu8x._.js} +2 -2
  346. package/standalone/.next/server/chunks/ssr/{_03lk450._.js → _20wicqx._.js} +3 -3
  347. package/standalone/.next/server/chunks/ssr/_next-internal_server_app_[locale]_costs_page_actions_16fdpkb.js +3 -0
  348. package/standalone/.next/server/chunks/ssr/messages_de_json_[json]_cjs_1uig1ud._.js +1 -1
  349. package/standalone/.next/server/chunks/ssr/messages_en_json_[json]_cjs_206072-._.js +1 -1
  350. package/standalone/.next/server/chunks/ssr/messages_es_json_[json]_cjs_082yukd._.js +1 -1
  351. package/standalone/.next/server/chunks/ssr/messages_fr_json_[json]_cjs_0j6-w0i._.js +1 -1
  352. package/standalone/.next/server/chunks/ssr/node_modules_0j8c3kh._.js +3 -0
  353. package/standalone/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_1ghuygj._.js +3 -0
  354. package/standalone/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_1x2xg00._.js +3 -0
  355. package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0kifgf3.js +4 -0
  356. package/standalone/.next/server/chunks/ssr/src_components_builds_configuration-icon_tsx_1v42ztc._.js +1 -1
  357. package/standalone/.next/server/chunks/ssr/src_components_builds_coverage-report-page_tsx_1nhwba1._.js +2 -2
  358. package/standalone/.next/server/chunks/ssr/src_components_notifications_notifications-page_tsx_19f4ztg._.js +1 -1
  359. package/standalone/.next/server/chunks/ssr/src_components_push-notifications_push-notifications-page_tsx_1c_b-t4._.js +2 -2
  360. package/standalone/.next/server/chunks/ssr/src_components_runs_attachment-picker_tsx_0netm9l._.js +1 -1
  361. package/standalone/.next/server/chunks/ssr/src_components_runs_run-detail-page_tsx_0eje87-._.js +1 -1
  362. package/standalone/.next/server/chunks/ssr/src_components_runs_runs-page_tsx_0l5-7eu._.js +1 -1
  363. package/standalone/.next/server/chunks/ssr/src_components_settings-page_tsx_06dxqc7._.js +5 -5
  364. package/standalone/.next/server/chunks/ssr/src_components_tools_tools-page_tsx_0k1jqcz._.js +2 -2
  365. package/standalone/.next/server/middleware-build-manifest.js +3 -3
  366. package/standalone/.next/server/next-font-manifest.js +1 -1
  367. package/standalone/.next/server/next-font-manifest.json +4 -0
  368. package/standalone/.next/server/pages/404.html +1 -1
  369. package/standalone/.next/server/pages/500.html +1 -1
  370. package/standalone/.next/server/server-reference-manifest.js +1 -1
  371. package/standalone/.next/server/server-reference-manifest.json +1 -1
  372. package/standalone/.next/static/chunks/{3b8uo25m50np4.js → 00-wgagfa3jgw.js} +6 -6
  373. package/standalone/.next/static/chunks/{1_zvnvft13-co.js → 0269se70im5oy.js} +1 -1
  374. package/standalone/.next/static/chunks/06ww4smr4x1rf.js +46 -0
  375. package/standalone/.next/static/chunks/0ad6f15x10087.js +31 -0
  376. package/standalone/.next/static/chunks/{04gmuff_hq-a2.js → 0gi1rut09px9z.js} +1 -1
  377. package/standalone/.next/static/chunks/0hhv79fjnhx0r.js +1 -0
  378. package/standalone/.next/static/chunks/0koiigzfqaaxm.js +6 -0
  379. package/standalone/.next/static/chunks/0lz2yyevf796v.js +57 -0
  380. package/standalone/.next/static/chunks/{12rdpylf5_1s1.js → 0n_3nenvq-cdq.js} +1 -1
  381. package/standalone/.next/static/chunks/{2g3hfv0bu6-ac.js → 0nsdo6d126qko.js} +1 -1
  382. package/standalone/.next/static/chunks/0tydvosk1yzd3.js +9 -0
  383. package/standalone/.next/static/chunks/{11rdgo_6b41l1.js → 0vh2j_0-i7_4a.js} +2 -2
  384. package/standalone/.next/static/chunks/0x7ht_1kzfirv.js +3 -0
  385. package/standalone/.next/static/chunks/{2lgln0a2k277h.js → 0xge_x1_gyy-7.js} +1 -1
  386. package/standalone/.next/static/chunks/0y9oq83e4ty93.js +29 -0
  387. package/standalone/.next/static/chunks/10ugqh884daci.js +67 -0
  388. package/standalone/.next/static/chunks/167jr5pbpylis.js +7 -0
  389. package/standalone/.next/static/chunks/{2vjc_-wvtw1hf.js → 18rpe2d8mq3kd.js} +3 -3
  390. package/standalone/.next/static/chunks/1c285hxt_qxlx.js +46 -0
  391. package/standalone/.next/static/chunks/1f3ggqgs3erm7.js +41 -0
  392. package/standalone/.next/static/chunks/1f3hspf4q04c7.js +1 -0
  393. package/standalone/.next/static/chunks/1g8c1oh-w22rr.js +54 -0
  394. package/standalone/.next/static/chunks/1h680dhlld_lc.js +33 -0
  395. package/standalone/.next/static/chunks/1hymkpu62xhp8.js +33 -0
  396. package/standalone/.next/static/chunks/{12kemc9g02r2c.js → 1l-ift-80ao1c.js} +1 -1
  397. package/standalone/.next/static/chunks/1nz8ddeplq5hs.js +1 -0
  398. package/standalone/.next/static/chunks/1qecuivo6a47u.css +1 -0
  399. package/standalone/.next/static/chunks/1r9r_g25rp8ak.js +23 -0
  400. package/standalone/.next/static/chunks/{0x7pt5btcphku.js → 1uwz2ko2jqwtz.js} +1 -1
  401. package/standalone/.next/static/chunks/1v5zb8ln1rz2d.js +1 -0
  402. package/standalone/.next/static/chunks/{0ai0x7vc1931l.js → 1xjs526g101xh.js} +1 -1
  403. package/standalone/.next/static/chunks/{3369nhs1_otwi.js → 2-duyp_kl5qx9.js} +1 -1
  404. package/standalone/.next/static/chunks/{3roht5nbja0a_.js → 21di8-zv-5qvx.js} +18 -18
  405. package/standalone/.next/static/chunks/22d7hj9vwqj9p.js +1 -0
  406. package/standalone/.next/static/chunks/{1lnlrcypmvv5h.js → 24jkxx9dbxh1h.js} +1 -1
  407. package/standalone/.next/static/chunks/{3pj0v38s6yr9s.js → 28vxarecfoquo.js} +4 -4
  408. package/standalone/.next/static/chunks/28z95ky0z7tkb.js +10 -0
  409. package/standalone/.next/static/chunks/2ayopd7367rqs.js +41 -0
  410. package/standalone/.next/static/chunks/2azupfg2-5j-p.js +1 -0
  411. package/standalone/.next/static/chunks/2brlnpt__4ftd.js +1 -0
  412. package/standalone/.next/static/chunks/2k_pfyxmtuoy5.js +1 -0
  413. package/standalone/.next/static/chunks/2km-n4_gmq7cl.js +1 -0
  414. package/standalone/.next/static/chunks/2llvq19x9do52.js +9 -0
  415. package/standalone/.next/static/chunks/{1biwep24jyw3_.js → 2qedr2wefau4t.js} +1 -1
  416. package/standalone/.next/static/chunks/2wb15vf48-edn.js +92 -0
  417. package/standalone/.next/static/chunks/{0b33bs18huezl.js → 2x2_7-5jm0gme.js} +15 -15
  418. package/standalone/.next/static/chunks/2yjrhue4lxrng.js +1 -0
  419. package/standalone/.next/static/chunks/324kabhuasm-p.js +53 -0
  420. package/standalone/.next/static/chunks/34jvsrj9xubhb.js +1 -0
  421. package/standalone/.next/static/chunks/38oh9ov0j80rj.js +12 -0
  422. package/standalone/.next/static/chunks/{42n596b3nvu1d.js → 38z6ydb1jtugp.js} +9 -9
  423. package/standalone/.next/static/chunks/{06ko8c02ly6ua.js → 3b7o_8v0u__4p.js} +1 -1
  424. package/standalone/.next/static/chunks/3e31jo--0j7bd.js +1 -0
  425. package/standalone/.next/static/chunks/3llt9fqdrs6_3.js +7 -0
  426. package/standalone/.next/static/chunks/3m3riu0uoz_w0.js +64 -0
  427. package/standalone/.next/static/chunks/3s_cg15bmegsq.js +64 -0
  428. package/standalone/.next/static/chunks/{1il4firsh2p_o.js → 3tulld0sh2yxv.js} +1 -1
  429. package/standalone/.next/static/chunks/3zr5h7dm94-d3.js +1 -0
  430. package/standalone/.next/server/chunks/[root-of-the-server]__082mwbz._.js +0 -3
  431. package/standalone/.next/server/chunks/[root-of-the-server]__08rs4kl._.js +0 -3
  432. package/standalone/.next/server/chunks/[root-of-the-server]__0ejd120._.js +0 -3
  433. package/standalone/.next/server/chunks/[root-of-the-server]__0epw197._.js +0 -3
  434. package/standalone/.next/server/chunks/[root-of-the-server]__0erekw9._.js +0 -3
  435. package/standalone/.next/server/chunks/[root-of-the-server]__0l8fuzs._.js +0 -3
  436. package/standalone/.next/server/chunks/[root-of-the-server]__0m09s9s._.js +0 -3
  437. package/standalone/.next/server/chunks/[root-of-the-server]__0o4kf3w._.js +0 -3
  438. package/standalone/.next/server/chunks/[root-of-the-server]__0q7pwvx._.js +0 -3
  439. package/standalone/.next/server/chunks/[root-of-the-server]__0quwt4e._.js +0 -3
  440. package/standalone/.next/server/chunks/[root-of-the-server]__0r2qqym._.js +0 -3
  441. package/standalone/.next/server/chunks/[root-of-the-server]__0rafxyp._.js +0 -3
  442. package/standalone/.next/server/chunks/[root-of-the-server]__0rxa3sz._.js +0 -3
  443. package/standalone/.next/server/chunks/[root-of-the-server]__0sxnukz._.js +0 -3
  444. package/standalone/.next/server/chunks/[root-of-the-server]__0tck2gw._.js +0 -3
  445. package/standalone/.next/server/chunks/[root-of-the-server]__0upntz8._.js +0 -3
  446. package/standalone/.next/server/chunks/[root-of-the-server]__0w7u33h._.js +0 -3
  447. package/standalone/.next/server/chunks/[root-of-the-server]__0wccpuq._.js +0 -3
  448. package/standalone/.next/server/chunks/[root-of-the-server]__0wq5_-0._.js +0 -3
  449. package/standalone/.next/server/chunks/[root-of-the-server]__0x8p1h0._.js +0 -3
  450. package/standalone/.next/server/chunks/[root-of-the-server]__0yq7gle._.js +0 -3
  451. package/standalone/.next/server/chunks/[root-of-the-server]__0yvl0kj._.js +0 -3
  452. package/standalone/.next/server/chunks/[root-of-the-server]__0yyj4bs._.js +0 -3
  453. package/standalone/.next/server/chunks/[root-of-the-server]__1-q8hnm._.js +0 -3
  454. package/standalone/.next/server/chunks/[root-of-the-server]__11i-u3m._.js +0 -3
  455. package/standalone/.next/server/chunks/[root-of-the-server]__11wdfkm._.js +0 -3
  456. package/standalone/.next/server/chunks/[root-of-the-server]__13-bmbg._.js +0 -3
  457. package/standalone/.next/server/chunks/[root-of-the-server]__14sr2n9._.js +0 -3
  458. package/standalone/.next/server/chunks/[root-of-the-server]__15zrchx._.js +0 -3
  459. package/standalone/.next/server/chunks/[root-of-the-server]__17im3wm._.js +0 -3
  460. package/standalone/.next/server/chunks/[root-of-the-server]__17j6ax7._.js +0 -3
  461. package/standalone/.next/server/chunks/[root-of-the-server]__19bpnrg._.js +0 -3
  462. package/standalone/.next/server/chunks/[root-of-the-server]__19y6-lp._.js +0 -3
  463. package/standalone/.next/server/chunks/[root-of-the-server]__1_8gar4._.js +0 -3
  464. package/standalone/.next/server/chunks/[root-of-the-server]__1_m78-y._.js +0 -3
  465. package/standalone/.next/server/chunks/[root-of-the-server]__1_osj_0._.js +0 -3
  466. package/standalone/.next/server/chunks/[root-of-the-server]__1_xtyhp._.js +0 -3
  467. package/standalone/.next/server/chunks/[root-of-the-server]__1ba1y6w._.js +0 -3
  468. package/standalone/.next/server/chunks/[root-of-the-server]__1d-p62y._.js +0 -3
  469. package/standalone/.next/server/chunks/[root-of-the-server]__1e2tfpn._.js +0 -3
  470. package/standalone/.next/server/chunks/[root-of-the-server]__1fw5scf._.js +0 -3
  471. package/standalone/.next/server/chunks/[root-of-the-server]__1g0rhrl._.js +0 -3
  472. package/standalone/.next/server/chunks/[root-of-the-server]__1h6a01c._.js +0 -3
  473. package/standalone/.next/server/chunks/[root-of-the-server]__1i54hfr._.js +0 -3
  474. package/standalone/.next/server/chunks/[root-of-the-server]__1ismp8w._.js +0 -3
  475. package/standalone/.next/server/chunks/[root-of-the-server]__1kgh2tn._.js +0 -3
  476. package/standalone/.next/server/chunks/[root-of-the-server]__1l0a05x._.js +0 -3
  477. package/standalone/.next/server/chunks/[root-of-the-server]__1levtv0._.js +0 -3
  478. package/standalone/.next/server/chunks/[root-of-the-server]__1mk80rh._.js +0 -3
  479. package/standalone/.next/server/chunks/[root-of-the-server]__1n58dbx._.js +0 -3
  480. package/standalone/.next/server/chunks/[root-of-the-server]__1nxvyuj._.js +0 -3
  481. package/standalone/.next/server/chunks/[root-of-the-server]__1o4ho5v._.js +0 -3
  482. package/standalone/.next/server/chunks/[root-of-the-server]__1osqj7h._.js +0 -3
  483. package/standalone/.next/server/chunks/[root-of-the-server]__1oxgsjg._.js +0 -3
  484. package/standalone/.next/server/chunks/[root-of-the-server]__1r9m70u._.js +0 -3
  485. package/standalone/.next/server/chunks/[root-of-the-server]__1t1-ozx._.js +0 -3
  486. package/standalone/.next/server/chunks/[root-of-the-server]__1tj3th9._.js +0 -3
  487. package/standalone/.next/server/chunks/[root-of-the-server]__1v_176-._.js +0 -3
  488. package/standalone/.next/server/chunks/[root-of-the-server]__1wnx190._.js +0 -3
  489. package/standalone/.next/server/chunks/[root-of-the-server]__1wsm3gj._.js +0 -3
  490. package/standalone/.next/server/chunks/[root-of-the-server]__1ygwh5f._.js +0 -3
  491. package/standalone/.next/server/chunks/[root-of-the-server]__205s18n._.js +0 -3
  492. package/standalone/.next/server/chunks/[root-of-the-server]__20m339t._.js +0 -3
  493. package/standalone/.next/server/chunks/[root-of-the-server]__216tiae._.js +0 -3
  494. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0__ku3o._.js +0 -35
  495. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0f7usu6._.js +0 -3
  496. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0fa4g67._.js +0 -3
  497. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ybu1dj._.js +0 -3
  498. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ywelz9._.js +0 -55
  499. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__114998b._.js +0 -3
  500. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__144jx4y._.js +0 -35
  501. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__17mewsc._.js +0 -3
  502. package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1lx9kov._.js +0 -50
  503. package/standalone/.next/server/chunks/ssr/_03edwuc._.js +0 -3
  504. package/standalone/.next/server/chunks/ssr/_03mo_w3._.js +0 -3
  505. package/standalone/.next/server/chunks/ssr/_065924f._.js +0 -3
  506. package/standalone/.next/server/chunks/ssr/_0a8xyjk._.js +0 -34
  507. package/standalone/.next/server/chunks/ssr/_0dsosms._.js +0 -34
  508. package/standalone/.next/server/chunks/ssr/_0kx9ux4._.js +0 -3
  509. package/standalone/.next/server/chunks/ssr/_0la2zju._.js +0 -3
  510. package/standalone/.next/server/chunks/ssr/_0mcyq3z._.js +0 -3
  511. package/standalone/.next/server/chunks/ssr/_0ocxapn._.js +0 -3
  512. package/standalone/.next/server/chunks/ssr/_0p03tt8._.js +0 -3
  513. package/standalone/.next/server/chunks/ssr/_0qi9ubx._.js +0 -3
  514. package/standalone/.next/server/chunks/ssr/_0s55i9k._.js +0 -3
  515. package/standalone/.next/server/chunks/ssr/_0w5dl6y._.js +0 -3
  516. package/standalone/.next/server/chunks/ssr/_1-3kr_6._.js +0 -3
  517. package/standalone/.next/server/chunks/ssr/_1-h8fzh._.js +0 -24
  518. package/standalone/.next/server/chunks/ssr/_15_tlq_._.js +0 -6
  519. package/standalone/.next/server/chunks/ssr/_1_-b2as._.js +0 -24
  520. package/standalone/.next/server/chunks/ssr/_1ax0n4o._.js +0 -3
  521. package/standalone/.next/server/chunks/ssr/_1bedv0f._.js +0 -3
  522. package/standalone/.next/server/chunks/ssr/_1cg5e7d._.js +0 -55
  523. package/standalone/.next/server/chunks/ssr/_1dre7jj._.js +0 -9
  524. package/standalone/.next/server/chunks/ssr/_1h8h0mh._.js +0 -3
  525. package/standalone/.next/server/chunks/ssr/_1j6x49s._.js +0 -3
  526. package/standalone/.next/server/chunks/ssr/_1m3mq_d._.js +0 -42
  527. package/standalone/.next/server/chunks/ssr/_1q7k2_j._.js +0 -3
  528. package/standalone/.next/server/chunks/ssr/_1qanfz-._.js +0 -3
  529. package/standalone/.next/server/chunks/ssr/_1qu6yg5._.js +0 -3
  530. package/standalone/.next/server/chunks/ssr/_1rgxkh5._.js +0 -3
  531. package/standalone/.next/server/chunks/ssr/_1rqv83r._.js +0 -3
  532. package/standalone/.next/server/chunks/ssr/_1sn2hfw._.js +0 -14
  533. package/standalone/.next/server/chunks/ssr/_1w9iqqu._.js +0 -3
  534. package/standalone/.next/server/chunks/ssr/_1y1-frz._.js +0 -22
  535. package/standalone/.next/server/chunks/ssr/_1zfs9qf._.js +0 -3
  536. package/standalone/.next/server/chunks/ssr/_1zxg4ba._.js +0 -3
  537. package/standalone/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_0qgkxbt._.js +0 -3
  538. package/standalone/.next/static/chunks/08q6vr-p-cstj.js +0 -29
  539. package/standalone/.next/static/chunks/0_zeonk2mtnf-.js +0 -1
  540. package/standalone/.next/static/chunks/0buuj5lld90he.css +0 -1
  541. package/standalone/.next/static/chunks/0bviczmoov5a2.js +0 -1
  542. package/standalone/.next/static/chunks/0ff5gudlpx2v5.js +0 -1
  543. package/standalone/.next/static/chunks/0piy74xklzjfr.js +0 -62
  544. package/standalone/.next/static/chunks/1-eifwvqj9be1.js +0 -1
  545. package/standalone/.next/static/chunks/11jwq4xw0a435.js +0 -64
  546. package/standalone/.next/static/chunks/17uchsfglg1ck.js +0 -73
  547. package/standalone/.next/static/chunks/1_82pgfh8i49s.js +0 -1
  548. package/standalone/.next/static/chunks/1t3vla-ambxbp.js +0 -6
  549. package/standalone/.next/static/chunks/1uc144yy_2oye.js +0 -3
  550. package/standalone/.next/static/chunks/2358pwl17z6qf.js +0 -41
  551. package/standalone/.next/static/chunks/25ugyd34t2mrk.js +0 -1
  552. package/standalone/.next/static/chunks/28lukaj4hpvlk.js +0 -63
  553. package/standalone/.next/static/chunks/2efb8ggk_k58p.js +0 -53
  554. package/standalone/.next/static/chunks/2eidepo22ts0u.js +0 -1
  555. package/standalone/.next/static/chunks/2hd3kczfekev9.js +0 -12
  556. package/standalone/.next/static/chunks/2k1pvryqz_c4u.js +0 -1
  557. package/standalone/.next/static/chunks/2nzg7au4ezqgc.js +0 -109
  558. package/standalone/.next/static/chunks/2ub8d_20l7ahg.js +0 -54
  559. package/standalone/.next/static/chunks/2v3vffkcv30_q.js +0 -8
  560. package/standalone/.next/static/chunks/2y3inehs64srx.js +0 -39
  561. package/standalone/.next/static/chunks/2z2vm371tkfeo.js +0 -39
  562. package/standalone/.next/static/chunks/3-8aipql92ik4.js +0 -46
  563. package/standalone/.next/static/chunks/3-doerwkk9tw0.js +0 -57
  564. package/standalone/.next/static/chunks/300j0k53l2xf4.js +0 -7
  565. package/standalone/.next/static/chunks/38cr_upvs02u3.js +0 -10
  566. package/standalone/.next/static/chunks/3ev0nt_zzxoc6.js +0 -1
  567. package/standalone/.next/static/chunks/3he_se7z8qr9v.js +0 -1
  568. package/standalone/.next/static/chunks/3w11s4sn96-rw.js +0 -1
  569. package/standalone/.next/static/chunks/3ylqdy-23qzuz.js +0 -54
  570. package/standalone/.next/static/chunks/3yvgowlcy4bok.js +0 -7
  571. package/standalone/.next/static/chunks/43-yobagq1112.js +0 -1
  572. package/standalone/.next/static/chunks/44v5iw1qe3el2.js +0 -9
  573. /package/standalone/.next/static/{OS8UYgZ5MOMdBZuXMlpNG → fqOmtAGSGlY51xUvvOKyW}/_buildManifest.js +0 -0
  574. /package/standalone/.next/static/{OS8UYgZ5MOMdBZuXMlpNG → fqOmtAGSGlY51xUvvOKyW}/_clientMiddlewareManifest.js +0 -0
  575. /package/standalone/.next/static/{OS8UYgZ5MOMdBZuXMlpNG → fqOmtAGSGlY51xUvvOKyW}/_ssgManifest.js +0 -0
@@ -1,35 +1,35 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,534710,e=>{"use strict";var t=e.i(843476),a=e.i(551757),s=e.i(452330),n=e.i(634398),r=e.i(758925),i=e.i(825398),l=e.i(856522),o=e.i(584026),c=e.i(573474);let d=(0,e.i(456420).default)("unplug",[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]]);var u=e.i(725981),m=e.i(861745),p=e.i(948148),x=e.i(271645),h=e.i(340953),g=e.i(567745),f=e.i(77071),j=e.i(929592),v=e.i(487486),S=e.i(519455),b=e.i(515288),C=e.i(793479),y=e.i(110204),N=e.i(987968),k=e.i(637611),w=e.i(45407);function I(){let e=(0,p.useTranslations)("cacheServerSettings"),s=(0,p.useTranslations)("common"),[n,r]=(0,x.useState)(null),[i,o]=(0,x.useState)(""),[u,m]=(0,x.useState)(""),[I,A]=(0,x.useState)([]),[E,T]=(0,x.useState)(!0),[D,L]=(0,x.useState)(!1),[P,R]=(0,x.useState)(null),[H,K]=(0,x.useState)(null),q=(0,x.useCallback)(e=>{r(e),o(e.baseUrl??""),m(""),A(e.headers.map(e=>({...e,value:""})))},[]),$=(0,x.useCallback)(async()=>{try{let e=await (0,k.controlPlaneRequest)(`query CacheServerSettings { cacheServerSettings { ${w.CACHE_SERVER_SETTINGS_FIELDS} } }`);q(e.cacheServerSettings)}catch(e){R(e instanceof Error?e.message:String(e))}finally{T(!1)}},[q]);(0,x.useEffect)(()=>{let e=window.setTimeout(()=>void $(),0);return()=>window.clearTimeout(e)},[$]);let F=(e,t,a)=>A(s=>s.map((s,n)=>n===e?{...s,[t]:a,..."name"===t&&a!==s.name?{valueConfigured:!1}:{}}:s)),G=async t=>{t.preventDefault(),L(!0);try{let t=I.map(e=>({name:e.name.trim(),value:e.value||null})).filter(e=>e.name),a=await (0,k.controlPlaneRequest)(`mutation SaveCacheServerSettings($input: SaveCacheServerSettingsInput!) {
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,534710,e=>{"use strict";var t=e.i(843476),a=e.i(551757),s=e.i(452330),n=e.i(634398),r=e.i(758925),i=e.i(825398),l=e.i(856522),o=e.i(584026),c=e.i(573474),d=e.i(594831),u=e.i(725981),p=e.i(861745),m=e.i(948148),x=e.i(271645),h=e.i(340953),g=e.i(567745),f=e.i(77071),j=e.i(929592),v=e.i(487486),S=e.i(519455),b=e.i(515288),C=e.i(793479),y=e.i(110204),N=e.i(987968),k=e.i(637611),w=e.i(45407);function I(){let e=(0,m.useTranslations)("cacheServerSettings"),s=(0,m.useTranslations)("common"),[n,r]=(0,x.useState)(null),[i,o]=(0,x.useState)(""),[u,p]=(0,x.useState)(""),[I,A]=(0,x.useState)([]),[E,T]=(0,x.useState)(!0),[D,L]=(0,x.useState)(!1),[P,R]=(0,x.useState)(null),[H,K]=(0,x.useState)(null),q=(0,x.useCallback)(e=>{r(e),o(e.baseUrl??""),p(""),A(e.headers.map(e=>({...e,value:""})))},[]),$=(0,x.useCallback)(async()=>{try{let e=await (0,k.controlPlaneRequest)(`query CacheServerSettings { cacheServerSettings { ${w.CACHE_SERVER_SETTINGS_FIELDS} } }`);q(e.cacheServerSettings)}catch(e){R(e instanceof Error?e.message:String(e))}finally{T(!1)}},[q]);(0,x.useEffect)(()=>{let e=window.setTimeout(()=>void $(),0);return()=>window.clearTimeout(e)},[$]);let F=(e,t,a)=>A(s=>s.map((s,n)=>n===e?{...s,[t]:a,..."name"===t&&a!==s.name?{valueConfigured:!1}:{}}:s)),G=async t=>{t.preventDefault(),L(!0);try{let t=I.map(e=>({name:e.name.trim(),value:e.value||null})).filter(e=>e.name),a=await (0,k.controlPlaneRequest)(`mutation SaveCacheServerSettings($input: SaveCacheServerSettingsInput!) {
2
2
  saveCacheServerSettings(input: $input) { ${w.CACHE_SERVER_SETTINGS_FIELDS} }
3
3
  }`,{input:{baseUrl:i.trim(),apiKey:u||null,headers:t}});q(a.saveCacheServerSettings),R(null),K(e("saved"))}catch(e){R(e instanceof Error?e.message:String(e)),K(null)}finally{L(!1)}},V=async()=>{L(!0);try{let t=await (0,k.controlPlaneRequest)(`mutation TestCacheServerConnection {
4
4
  testCacheServerConnection { ${w.CACHE_SERVER_SETTINGS_FIELDS} }
5
5
  }`);q(t.testCacheServerConnection),R(null),K(e("connectionSucceeded"))}catch(e){R(e instanceof Error?e.message:String(e)),K(null)}finally{L(!1)}},B=async()=>{L(!0);try{let t=await (0,k.controlPlaneRequest)(`mutation ClearCacheServerSettings {
6
6
  clearCacheServerSettings { ${w.CACHE_SERVER_SETTINGS_FIELDS} }
7
- }`);q(t.clearCacheServerSettings),R(null),K(e("removed"))}catch(e){R(e instanceof Error?e.message:String(e)),K(null)}finally{L(!1)}};return(0,t.jsx)("form",{onSubmit:G,children:(0,t.jsx)(b.Card,{children:(0,t.jsxs)(b.CardContent,{className:"space-y-5",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(g.DatabaseZap,{className:"size-5"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"font-semibold",children:e("title")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e("description")})]})]}),(0,t.jsx)(v.Badge,{className:n?.configured?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":void 0,children:n?.configured?e("configured"):e("notConfigured")})]}),E?(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(N.Spinner,{}),e("loading")]}):(0,t.jsxs)(t.Fragment,{children:[P&&(0,t.jsx)(j.Alert,{variant:"destructive",children:(0,t.jsx)(j.AlertDescription,{children:P})}),H&&(0,t.jsxs)(j.Alert,{className:"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300",children:[(0,t.jsx)(a.CheckCircle2,{}),(0,t.jsx)(j.AlertDescription,{className:"text-current",children:H})]}),(0,t.jsx)("p",{className:"rounded-md border bg-muted/30 p-3 text-xs text-muted-foreground",children:e("setupHelp")}),(0,t.jsxs)("div",{children:[(0,t.jsx)(y.Label,{className:"mb-1.5 block text-sm font-medium",htmlFor:"cache-server-base-url",children:e("baseUrl")}),(0,t.jsx)(C.Input,{autoComplete:"url",id:"cache-server-base-url",onChange:e=>o(e.target.value),placeholder:"http://cache-server.internal:3006/management-api",required:!0,type:"url",value:i}),(0,t.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:e("baseUrlHelp")})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(y.Label,{className:"mb-1.5 block text-sm font-medium",htmlFor:"cache-server-api-key",children:e("apiKey")}),(0,t.jsx)(C.Input,{autoComplete:"new-password",id:"cache-server-api-key",onChange:e=>m(e.target.value),placeholder:n?.apiKeyConfigured?e("apiKeyPlaceholderConfigured"):e("apiKeyPlaceholder"),required:!n?.apiKeyConfigured,type:"password",value:u}),(0,t.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:n?.apiKeyConfigured?e("apiKeyKeepHelp"):e("apiKeyHelp")})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)(y.Label,{className:"text-sm font-medium",children:e("headers")}),(0,t.jsxs)(S.Button,{onClick:()=>A(e=>[...e,{name:"",value:"",valueConfigured:!1}]),size:"sm",type:"button",variant:"outline",children:[(0,t.jsx)(f.Plus,{}),e("addHeader")]})]}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e("headersHelp")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e("headersSetupHelp")}),0===I.length?(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e("noHeaders")}):(0,t.jsx)("div",{className:"space-y-2",children:I.map((a,s)=>(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(C.Input,{"aria-label":e("headerName"),className:"flex-1",onChange:e=>F(s,"name",e.target.value),placeholder:e("headerName"),value:a.name}),(0,t.jsx)(C.Input,{"aria-label":e("headerValue"),autoComplete:"new-password",className:"flex-1",onChange:e=>F(s,"value",e.target.value),placeholder:a.valueConfigured?e("headerValuePlaceholderConfigured"):e("headerValue"),required:!a.valueConfigured,type:"password",value:a.value}),(0,t.jsx)(S.Button,{"aria-label":e("removeHeader"),onClick:()=>A(e=>e.filter((e,t)=>t!==s)),size:"icon",type:"button",variant:"ghost",children:(0,t.jsx)(c.Trash2,{})})]},s))})]}),(0,t.jsxs)("div",{className:"flex flex-wrap justify-end gap-2 border-t pt-4",children:[(0,t.jsx)(h.ConfirmationDialog,{actionLabel:e("remove"),cancelLabel:s("cancel"),description:e("confirmRemoveDescription"),onConfirm:B,title:e("confirmRemove"),trigger:(0,t.jsxs)(S.Button,{disabled:D||!n?.configured,type:"button",variant:"ghost",children:[(0,t.jsx)(c.Trash2,{}),e("remove")]})}),(0,t.jsxs)(S.Button,{disabled:D||!n?.configured,onClick:()=>void V(),type:"button",variant:"outline",children:[(0,t.jsx)(d,{}),e("test")]}),(0,t.jsxs)(S.Button,{disabled:D,type:"submit",children:[D?(0,t.jsx)(N.Spinner,{}):(0,t.jsx)(l.Save,{}),e("save")]})]})]})]})})})}var A=e.i(636162),E=e.i(741120),T=e.i(482022);function D({children:e,href:a}){return(0,t.jsxs)("a",{className:"inline-flex items-center gap-1 text-primary hover:underline",href:a,rel:"noreferrer",target:"_blank",children:[e,(0,t.jsx)(T.ExternalLink,{"aria-hidden":"true",className:"size-3 shrink-0"})]})}var L=e.i(624687),P=e.i(360583),R=e.i(938882);function H(){let e=(0,p.useTranslations)("iosDeviceSettings"),s=(0,p.useTranslations)("common"),n=(0,m.useLocale)(),[i,d]=(0,x.useState)(null),[g,f]=(0,x.useState)(""),[w,I]=(0,x.useState)(""),[T,H]=(0,x.useState)(""),[K,q]=(0,x.useState)(""),[$,F]=(0,x.useState)(""),[G,V]=(0,x.useState)(!1),[B,_]=(0,x.useState)(!0),[U,z]=(0,x.useState)(!1),[O,J]=(0,x.useState)(!1),[W,M]=(0,x.useState)(null),[Z,Y]=(0,x.useState)(null),X=(0,x.useCallback)(e=>{d(e),f(e.organizationName),I(e.profileIdentifier),H(e.appStoreConnectIssuerId??""),q(e.appStoreConnectKeyId??""),F("")},[]),Q=(0,x.useCallback)(async()=>{try{let e=await (0,k.controlPlaneRequest)(`query IosDeviceSettings {
7
+ }`);q(t.clearCacheServerSettings),R(null),K(e("removed"))}catch(e){R(e instanceof Error?e.message:String(e)),K(null)}finally{L(!1)}};return(0,t.jsx)("form",{onSubmit:G,children:(0,t.jsx)(b.Card,{children:(0,t.jsxs)(b.CardContent,{className:"space-y-5",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(g.DatabaseZap,{className:"size-5"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"font-semibold",children:e("title")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e("description")})]})]}),(0,t.jsx)(v.Badge,{className:n?.configured?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":void 0,children:n?.configured?e("configured"):e("notConfigured")})]}),E?(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(N.Spinner,{}),e("loading")]}):(0,t.jsxs)(t.Fragment,{children:[P&&(0,t.jsx)(j.Alert,{variant:"destructive",children:(0,t.jsx)(j.AlertDescription,{children:P})}),H&&(0,t.jsxs)(j.Alert,{className:"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300",children:[(0,t.jsx)(a.CheckCircle2,{}),(0,t.jsx)(j.AlertDescription,{className:"text-current",children:H})]}),(0,t.jsx)("p",{className:"rounded-md border bg-muted/30 p-3 text-xs text-muted-foreground",children:e("setupHelp")}),(0,t.jsxs)("div",{children:[(0,t.jsx)(y.Label,{className:"mb-1.5 block text-sm font-medium",htmlFor:"cache-server-base-url",children:e("baseUrl")}),(0,t.jsx)(C.Input,{autoComplete:"url",id:"cache-server-base-url",onChange:e=>o(e.target.value),placeholder:"http://cache-server.internal:3006/management-api",required:!0,type:"url",value:i}),(0,t.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:e("baseUrlHelp")})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(y.Label,{className:"mb-1.5 block text-sm font-medium",htmlFor:"cache-server-api-key",children:e("apiKey")}),(0,t.jsx)(C.Input,{autoComplete:"new-password",id:"cache-server-api-key",onChange:e=>p(e.target.value),placeholder:n?.apiKeyConfigured?e("apiKeyPlaceholderConfigured"):e("apiKeyPlaceholder"),required:!n?.apiKeyConfigured,type:"password",value:u}),(0,t.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:n?.apiKeyConfigured?e("apiKeyKeepHelp"):e("apiKeyHelp")})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)(y.Label,{className:"text-sm font-medium",children:e("headers")}),(0,t.jsxs)(S.Button,{onClick:()=>A(e=>[...e,{name:"",value:"",valueConfigured:!1}]),size:"sm",type:"button",variant:"outline",children:[(0,t.jsx)(f.Plus,{}),e("addHeader")]})]}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e("headersHelp")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e("headersSetupHelp")}),0===I.length?(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e("noHeaders")}):(0,t.jsx)("div",{className:"space-y-2",children:I.map((a,s)=>(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(C.Input,{"aria-label":e("headerName"),className:"flex-1",onChange:e=>F(s,"name",e.target.value),placeholder:e("headerName"),value:a.name}),(0,t.jsx)(C.Input,{"aria-label":e("headerValue"),autoComplete:"new-password",className:"flex-1",onChange:e=>F(s,"value",e.target.value),placeholder:a.valueConfigured?e("headerValuePlaceholderConfigured"):e("headerValue"),required:!a.valueConfigured,type:"password",value:a.value}),(0,t.jsx)(S.Button,{"aria-label":e("removeHeader"),onClick:()=>A(e=>e.filter((e,t)=>t!==s)),size:"icon",type:"button",variant:"ghost",children:(0,t.jsx)(c.Trash2,{})})]},s))})]}),(0,t.jsxs)("div",{className:"flex flex-wrap justify-end gap-2 border-t pt-4",children:[(0,t.jsx)(h.ConfirmationDialog,{actionLabel:e("remove"),cancelLabel:s("cancel"),description:e("confirmRemoveDescription"),onConfirm:B,title:e("confirmRemove"),trigger:(0,t.jsxs)(S.Button,{disabled:D||!n?.configured,type:"button",variant:"ghost",children:[(0,t.jsx)(c.Trash2,{}),e("remove")]})}),(0,t.jsxs)(S.Button,{disabled:D||!n?.configured,onClick:()=>void V(),type:"button",variant:"outline",children:[(0,t.jsx)(d.Unplug,{}),e("test")]}),(0,t.jsxs)(S.Button,{disabled:D,type:"submit",children:[D?(0,t.jsx)(N.Spinner,{}):(0,t.jsx)(l.Save,{}),e("save")]})]})]})]})})})}var A=e.i(636162),E=e.i(741120),T=e.i(482022);function D({children:e,href:a}){return(0,t.jsxs)("a",{className:"inline-flex items-center gap-1 text-primary hover:underline",href:a,rel:"noreferrer",target:"_blank",children:[e,(0,t.jsx)(T.ExternalLink,{"aria-hidden":"true",className:"size-3 shrink-0"})]})}var L=e.i(624687),P=e.i(360583),R=e.i(938882);function H(){let e=(0,m.useTranslations)("iosDeviceSettings"),s=(0,m.useTranslations)("common"),n=(0,p.useLocale)(),[i,d]=(0,x.useState)(null),[g,f]=(0,x.useState)(""),[w,I]=(0,x.useState)(""),[T,H]=(0,x.useState)(""),[K,q]=(0,x.useState)(""),[$,F]=(0,x.useState)(""),[G,V]=(0,x.useState)(!1),[B,U]=(0,x.useState)(!0),[_,z]=(0,x.useState)(!1),[O,J]=(0,x.useState)(!1),[W,M]=(0,x.useState)(null),[Y,Z]=(0,x.useState)(null),X=(0,x.useCallback)(e=>{d(e),f(e.organizationName),I(e.profileIdentifier),H(e.appStoreConnectIssuerId??""),q(e.appStoreConnectKeyId??""),F("")},[]),Q=(0,x.useCallback)(async()=>{try{let e=await (0,k.controlPlaneRequest)(`query IosDeviceSettings {
8
8
  iosDeviceSettings { ${R.IOS_DEVICE_SETTINGS_FIELDS} }
9
- }`);X(e.iosDeviceSettings)}catch(e){M(e instanceof Error?e.message:String(e))}finally{_(!1)}},[X]);(0,x.useEffect)(()=>{let e=window.setTimeout(()=>void Q(),0);return()=>window.clearTimeout(e)},[Q]);let ee=t=>(0,P.formatDateValue)(t,"short",{locale:n,fallback:e("unavailable")}),et=async t=>{t.preventDefault(),z(!0);try{let t=await (0,k.controlPlaneRequest)(`mutation SaveIosProfileSettings($input: SaveIosProfileSettingsInput!) {
9
+ }`);X(e.iosDeviceSettings)}catch(e){M(e instanceof Error?e.message:String(e))}finally{U(!1)}},[X]);(0,x.useEffect)(()=>{let e=window.setTimeout(()=>void Q(),0);return()=>window.clearTimeout(e)},[Q]);let ee=t=>(0,P.formatDateValue)(t,"short",{locale:n,fallback:e("unavailable")}),et=async t=>{t.preventDefault(),z(!0);try{let t=await (0,k.controlPlaneRequest)(`mutation SaveIosProfileSettings($input: SaveIosProfileSettingsInput!) {
10
10
  saveIosProfileSettings(input: $input) { ${R.IOS_DEVICE_SETTINGS_FIELDS} }
11
- }`,{input:{organizationName:g,profileIdentifier:w}});X(t.saveIosProfileSettings),M(null),Y(e("profileSaved"))}catch(e){M(e instanceof Error?e.message:String(e)),Y(null)}finally{z(!1)}},ea=async()=>{z(!0);try{let t=await (0,k.controlPlaneRequest)(`mutation RegenerateIosProfileSigner {
11
+ }`,{input:{organizationName:g,profileIdentifier:w}});X(t.saveIosProfileSettings),M(null),Z(e("profileSaved"))}catch(e){M(e instanceof Error?e.message:String(e)),Z(null)}finally{z(!1)}},ea=async()=>{z(!0);try{let t=await (0,k.controlPlaneRequest)(`mutation RegenerateIosProfileSigner {
12
12
  regenerateIosProfileSigner { ${R.IOS_DEVICE_SETTINGS_FIELDS} }
13
- }`);X(t.regenerateIosProfileSigner),M(null),Y(e("signerRegenerated"))}catch(e){M(e instanceof Error?e.message:String(e)),Y(null)}finally{z(!1)}},es=async t=>{t.preventDefault(),J(!0);try{let t=await (0,k.controlPlaneRequest)(`mutation SaveAppStoreConnectSettings($input: SaveAppStoreConnectSettingsInput!) {
13
+ }`);X(t.regenerateIosProfileSigner),M(null),Z(e("signerRegenerated"))}catch(e){M(e instanceof Error?e.message:String(e)),Z(null)}finally{z(!1)}},es=async t=>{t.preventDefault(),J(!0);try{let t=await (0,k.controlPlaneRequest)(`mutation SaveAppStoreConnectSettings($input: SaveAppStoreConnectSettingsInput!) {
14
14
  saveAppStoreConnectSettings(input: $input) { ${R.IOS_DEVICE_SETTINGS_FIELDS} }
15
- }`,{input:{issuerId:T.trim(),keyId:K.trim(),privateKey:$||null}});X(t.saveAppStoreConnectSettings),M(null),Y(e("appleSaved"))}catch(e){M(e instanceof Error?e.message:String(e)),Y(null)}finally{J(!1)}},en=async()=>{J(!0);try{let t=await (0,k.controlPlaneRequest)(`mutation TestAppStoreConnectSettings {
15
+ }`,{input:{issuerId:T.trim(),keyId:K.trim(),privateKey:$||null}});X(t.saveAppStoreConnectSettings),M(null),Z(e("appleSaved"))}catch(e){M(e instanceof Error?e.message:String(e)),Z(null)}finally{J(!1)}},en=async()=>{J(!0);try{let t=await (0,k.controlPlaneRequest)(`mutation TestAppStoreConnectSettings {
16
16
  testAppStoreConnectSettings { ${R.IOS_DEVICE_SETTINGS_FIELDS} }
17
- }`);X(t.testAppStoreConnectSettings),M(null),Y(e("appleTestSucceeded"))}catch(e){M(e instanceof Error?e.message:String(e)),Y(null),Q()}finally{J(!1)}},er=async()=>{J(!0);try{let t=await (0,k.controlPlaneRequest)(`mutation ClearAppStoreConnectSettings {
17
+ }`);X(t.testAppStoreConnectSettings),M(null),Z(e("appleTestSucceeded"))}catch(e){M(e instanceof Error?e.message:String(e)),Z(null),Q()}finally{J(!1)}},er=async()=>{J(!0);try{let t=await (0,k.controlPlaneRequest)(`mutation ClearAppStoreConnectSettings {
18
18
  clearAppStoreConnectSettings { ${R.IOS_DEVICE_SETTINGS_FIELDS} }
19
- }`);X(t.clearAppStoreConnectSettings),M(null),Y(e("appleCleared"))}catch(e){M(e instanceof Error?e.message:String(e)),Y(null)}finally{J(!1)}},ei=async t=>{if(!t.name.toLowerCase().endsWith(".p8")){M(e("p8Invalid")),Y(null);return}try{let a=await t.text();if(!a.includes("-----BEGIN PRIVATE KEY-----")||!a.includes("-----END PRIVATE KEY-----")){M(e("p8Invalid")),Y(null);return}F(a),M(null),Y(e("p8Loaded",{filename:t.name}))}catch{M(e("p8ReadError")),Y(null)}};return(0,t.jsx)(b.Card,{children:(0,t.jsxs)(b.CardContent,{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(A.Apple,{className:"size-5"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"font-semibold",children:e("title")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e("description")})]})]}),W&&(0,t.jsx)(j.Alert,{variant:"destructive",children:(0,t.jsx)(j.AlertDescription,{children:W})}),Z&&(0,t.jsxs)(j.Alert,{className:"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300",children:[(0,t.jsx)(a.CheckCircle2,{}),(0,t.jsx)(j.AlertDescription,{className:"text-current",children:Z})]}),B?(0,t.jsxs)("p",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(N.Spinner,{})," ",e("loading")]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("form",{className:"space-y-4",onSubmit:et,children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("h3",{className:"flex items-center gap-2 font-medium",children:[(0,t.jsx)(o.ShieldCheck,{className:"size-4"})," ",e("profileTitle")]}),(0,t.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:e("profileDescription")})]}),(0,t.jsx)(v.Badge,{variant:"outline",children:i?.signerConfigured?e("signerReady"):e("signerNotGenerated")})]}),(0,t.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(y.Label,{htmlFor:"ios-organization-name",children:e("organizationName")}),(0,t.jsx)(C.Input,{id:"ios-organization-name",maxLength:100,onChange:e=>f(e.target.value),required:!0,value:g}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e("profileOrganizationHelp")})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(y.Label,{htmlFor:"ios-profile-identifier",children:e("profileIdentifier")}),(0,t.jsx)(C.Input,{autoCapitalize:"none",className:"font-mono text-sm",id:"ios-profile-identifier",maxLength:200,onChange:e=>I(e.target.value),required:!0,spellCheck:!1,value:w}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e("profileIdentifierHelp")})]})]}),i?.signerConfigured&&(0,t.jsxs)("div",{className:"rounded-md border bg-muted/30 p-3 text-xs",children:[(0,t.jsx)("p",{children:e("signerCreated",{date:ee(i.signerCreatedAt)})}),(0,t.jsx)("p",{children:e("signerExpires",{date:ee(i.signerExpiresAt)})}),(0,t.jsx)("p",{className:"mt-1 break-all font-mono text-muted-foreground",children:i.signerFingerprint}),(0,t.jsx)("p",{className:"mt-2 text-amber-700 dark:text-amber-300",children:e("unverifiedWarning")})]}),(0,t.jsxs)("div",{className:"flex flex-wrap justify-end gap-2",children:[(0,t.jsx)(h.ConfirmationDialog,{actionLabel:e("regenerateSigner"),cancelLabel:s("cancel"),description:e("regenerateDescription"),onConfirm:ea,title:e("regenerateTitle"),trigger:(0,t.jsxs)(S.Button,{disabled:U,type:"button",variant:"outline",children:[(0,t.jsx)(E.RefreshCw,{})," ",e("regenerateSigner")]})}),(0,t.jsxs)(S.Button,{disabled:U,type:"submit",children:[U?(0,t.jsx)(N.Spinner,{}):(0,t.jsx)(l.Save,{})," ",e("saveProfile")]})]})]}),(0,t.jsxs)("form",{className:"space-y-4 border-t pt-6",onSubmit:es,children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("h3",{className:"flex items-center gap-2 font-medium",children:[(0,t.jsx)(r.KeyRound,{className:"size-4"})," ",e("appleTitle")]}),(0,t.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:e("appleDescription")})]}),(0,t.jsx)(v.Badge,{className:i?.appStoreConnectConfigured?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":void 0,children:i?.appStoreConnectConfigured?e("verified"):e("notVerified")})]}),(0,t.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,t.jsxs)("p",{className:"sm:col-span-2 text-xs text-muted-foreground",children:[e("appleSetupHelp")," ",(0,t.jsx)(D,{href:"https://appstoreconnect.apple.com/access/integrations/api",children:e("openApiKeys")})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(y.Label,{htmlFor:"app-store-issuer-id",children:e("issuerId")}),(0,t.jsx)(C.Input,{autoCapitalize:"none",id:"app-store-issuer-id",maxLength:100,onChange:e=>H(e.target.value),required:!0,spellCheck:!1,value:T})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(y.Label,{htmlFor:"app-store-key-id",children:e("keyId")}),(0,t.jsx)(C.Input,{autoCapitalize:"characters",id:"app-store-key-id",maxLength:100,onChange:e=>q(e.target.value),required:!0,spellCheck:!1,value:K})]})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(y.Label,{htmlFor:"app-store-private-key",children:e("privateKey")}),(0,t.jsxs)("div",{"aria-label":e("p8DropZone"),className:`rounded-md border border-dashed p-2 transition-colors ${G?"border-primary bg-primary/5":"border-input"}`,onDragEnter:e=>{e.preventDefault(),V(!0)},onDragLeave:()=>V(!1),onDragOver:e=>{e.preventDefault(),e.dataTransfer.dropEffect="copy",V(!0)},onDrop:e=>{e.preventDefault(),V(!1);let t=e.dataTransfer.files.item(0);t&&ei(t)},role:"group",children:[(0,t.jsxs)("p",{className:"mb-2 flex items-center gap-1.5 text-xs text-muted-foreground",children:[(0,t.jsx)(u.Upload,{className:"size-3.5"})," ",e("p8DropHint")]}),(0,t.jsx)(L.Textarea,{autoComplete:"new-password",className:"min-h-36 border-0 bg-transparent font-mono text-xs shadow-none focus-visible:ring-0 dark:bg-transparent",id:"app-store-private-key",onChange:e=>F(e.target.value),placeholder:i?.appStoreConnectPrivateKeyConfigured?e("privateKeyConfiguredPlaceholder"):e("privateKeyPlaceholder"),required:!i?.appStoreConnectPrivateKeyConfigured,value:$}),(0,t.jsx)(C.Input,{accept:".p8,application/pkcs8,text/plain","aria-label":e("chooseP8"),className:"mt-2 h-auto text-xs",onChange:e=>{let t=e.target.files?.item(0);t&&ei(t),e.target.value=""},type:"file"})]}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:i?.appStoreConnectPrivateKeyConfigured?e("privateKeyKeepHelp"):e("privateKeyHelp")})]}),(i?.appStoreConnectLastTestedAt||i?.appStoreConnectPrivateKeyFingerprint)&&(0,t.jsx)(j.Alert,{variant:i.appStoreConnectVerificationError?"destructive":"default",children:(0,t.jsxs)(j.AlertDescription,{children:[(0,t.jsx)("p",{className:"font-medium",children:i.appStoreConnectVerificationError?e("lastTestFailed",{date:ee(i.appStoreConnectLastTestedAt)}):e("lastVerified",{date:ee(i.appStoreConnectVerifiedAt)})}),i.appStoreConnectVerificationError&&(0,t.jsx)("p",{className:"mt-1 text-xs",children:i.appStoreConnectVerificationError}),i.appStoreConnectPrivateKeyFingerprint&&(0,t.jsx)("p",{className:"mt-1 break-all font-mono text-xs",children:i.appStoreConnectPrivateKeyFingerprint})]})}),(0,t.jsxs)("div",{className:"flex flex-wrap justify-end gap-2",children:[(0,t.jsx)(h.ConfirmationDialog,{actionLabel:e("clear"),cancelLabel:s("cancel"),description:e("clearDescription"),onConfirm:er,title:e("clearTitle"),trigger:(0,t.jsxs)(S.Button,{disabled:O||!i?.appStoreConnectPrivateKeyConfigured,type:"button",variant:"ghost",children:[(0,t.jsx)(c.Trash2,{})," ",e("clear")]})}),(0,t.jsxs)(S.Button,{disabled:O||!i?.appStoreConnectPrivateKeyConfigured,onClick:()=>void en(),type:"button",variant:"outline",children:[(0,t.jsx)(E.RefreshCw,{})," ",e("retest")]}),(0,t.jsxs)(S.Button,{disabled:O,type:"submit",children:[O?(0,t.jsx)(N.Spinner,{}):(0,t.jsx)(l.Save,{})," ",e("saveAndVerify")]})]})]})]})]})})}var K=e.i(967489);let q=`
19
+ }`);X(t.clearAppStoreConnectSettings),M(null),Z(e("appleCleared"))}catch(e){M(e instanceof Error?e.message:String(e)),Z(null)}finally{J(!1)}},ei=async t=>{if(!t.name.toLowerCase().endsWith(".p8")){M(e("p8Invalid")),Z(null);return}try{let a=await t.text();if(!a.includes("-----BEGIN PRIVATE KEY-----")||!a.includes("-----END PRIVATE KEY-----")){M(e("p8Invalid")),Z(null);return}F(a),M(null),Z(e("p8Loaded",{filename:t.name}))}catch{M(e("p8ReadError")),Z(null)}};return(0,t.jsx)(b.Card,{children:(0,t.jsxs)(b.CardContent,{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(A.Apple,{className:"size-5"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"font-semibold",children:e("title")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e("description")})]})]}),W&&(0,t.jsx)(j.Alert,{variant:"destructive",children:(0,t.jsx)(j.AlertDescription,{children:W})}),Y&&(0,t.jsxs)(j.Alert,{className:"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300",children:[(0,t.jsx)(a.CheckCircle2,{}),(0,t.jsx)(j.AlertDescription,{className:"text-current",children:Y})]}),B?(0,t.jsxs)("p",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(N.Spinner,{})," ",e("loading")]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("form",{className:"space-y-4",onSubmit:et,children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("h3",{className:"flex items-center gap-2 font-medium",children:[(0,t.jsx)(o.ShieldCheck,{className:"size-4"})," ",e("profileTitle")]}),(0,t.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:e("profileDescription")})]}),(0,t.jsx)(v.Badge,{variant:"outline",children:i?.signerConfigured?e("signerReady"):e("signerNotGenerated")})]}),(0,t.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(y.Label,{htmlFor:"ios-organization-name",children:e("organizationName")}),(0,t.jsx)(C.Input,{id:"ios-organization-name",maxLength:100,onChange:e=>f(e.target.value),required:!0,value:g}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e("profileOrganizationHelp")})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(y.Label,{htmlFor:"ios-profile-identifier",children:e("profileIdentifier")}),(0,t.jsx)(C.Input,{autoCapitalize:"none",className:"font-mono text-sm",id:"ios-profile-identifier",maxLength:200,onChange:e=>I(e.target.value),required:!0,spellCheck:!1,value:w}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e("profileIdentifierHelp")})]})]}),i?.signerConfigured&&(0,t.jsxs)("div",{className:"rounded-md border bg-muted/30 p-3 text-xs",children:[(0,t.jsx)("p",{children:e("signerCreated",{date:ee(i.signerCreatedAt)})}),(0,t.jsx)("p",{children:e("signerExpires",{date:ee(i.signerExpiresAt)})}),(0,t.jsx)("p",{className:"mt-1 break-all font-mono text-muted-foreground",children:i.signerFingerprint}),(0,t.jsx)("p",{className:"mt-2 text-amber-700 dark:text-amber-300",children:e("unverifiedWarning")})]}),(0,t.jsxs)("div",{className:"flex flex-wrap justify-end gap-2",children:[(0,t.jsx)(h.ConfirmationDialog,{actionLabel:e("regenerateSigner"),cancelLabel:s("cancel"),description:e("regenerateDescription"),onConfirm:ea,title:e("regenerateTitle"),trigger:(0,t.jsxs)(S.Button,{disabled:_,type:"button",variant:"outline",children:[(0,t.jsx)(E.RefreshCw,{})," ",e("regenerateSigner")]})}),(0,t.jsxs)(S.Button,{disabled:_,type:"submit",children:[_?(0,t.jsx)(N.Spinner,{}):(0,t.jsx)(l.Save,{})," ",e("saveProfile")]})]})]}),(0,t.jsxs)("form",{className:"space-y-4 border-t pt-6",onSubmit:es,children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("h3",{className:"flex items-center gap-2 font-medium",children:[(0,t.jsx)(r.KeyRound,{className:"size-4"})," ",e("appleTitle")]}),(0,t.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:e("appleDescription")})]}),(0,t.jsx)(v.Badge,{className:i?.appStoreConnectConfigured?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":void 0,children:i?.appStoreConnectConfigured?e("verified"):e("notVerified")})]}),(0,t.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,t.jsxs)("p",{className:"sm:col-span-2 text-xs text-muted-foreground",children:[e("appleSetupHelp")," ",(0,t.jsx)(D,{href:"https://appstoreconnect.apple.com/access/integrations/api",children:e("openApiKeys")})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(y.Label,{htmlFor:"app-store-issuer-id",children:e("issuerId")}),(0,t.jsx)(C.Input,{autoCapitalize:"none",id:"app-store-issuer-id",maxLength:100,onChange:e=>H(e.target.value),required:!0,spellCheck:!1,value:T})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(y.Label,{htmlFor:"app-store-key-id",children:e("keyId")}),(0,t.jsx)(C.Input,{autoCapitalize:"characters",id:"app-store-key-id",maxLength:100,onChange:e=>q(e.target.value),required:!0,spellCheck:!1,value:K})]})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(y.Label,{htmlFor:"app-store-private-key",children:e("privateKey")}),(0,t.jsxs)("div",{"aria-label":e("p8DropZone"),className:`rounded-md border border-dashed p-2 transition-colors ${G?"border-primary bg-primary/5":"border-input"}`,onDragEnter:e=>{e.preventDefault(),V(!0)},onDragLeave:()=>V(!1),onDragOver:e=>{e.preventDefault(),e.dataTransfer.dropEffect="copy",V(!0)},onDrop:e=>{e.preventDefault(),V(!1);let t=e.dataTransfer.files.item(0);t&&ei(t)},role:"group",children:[(0,t.jsxs)("p",{className:"mb-2 flex items-center gap-1.5 text-xs text-muted-foreground",children:[(0,t.jsx)(u.Upload,{className:"size-3.5"})," ",e("p8DropHint")]}),(0,t.jsx)(L.Textarea,{autoComplete:"new-password",className:"min-h-36 border-0 bg-transparent font-mono text-xs shadow-none focus-visible:ring-0 dark:bg-transparent",id:"app-store-private-key",onChange:e=>F(e.target.value),placeholder:i?.appStoreConnectPrivateKeyConfigured?e("privateKeyConfiguredPlaceholder"):e("privateKeyPlaceholder"),required:!i?.appStoreConnectPrivateKeyConfigured,value:$}),(0,t.jsx)(C.Input,{accept:".p8,application/pkcs8,text/plain","aria-label":e("chooseP8"),className:"mt-2 h-auto text-xs",onChange:e=>{let t=e.target.files?.item(0);t&&ei(t),e.target.value=""},type:"file"})]}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:i?.appStoreConnectPrivateKeyConfigured?e("privateKeyKeepHelp"):e("privateKeyHelp")})]}),(i?.appStoreConnectLastTestedAt||i?.appStoreConnectPrivateKeyFingerprint)&&(0,t.jsx)(j.Alert,{variant:i.appStoreConnectVerificationError?"destructive":"default",children:(0,t.jsxs)(j.AlertDescription,{children:[(0,t.jsx)("p",{className:"font-medium",children:i.appStoreConnectVerificationError?e("lastTestFailed",{date:ee(i.appStoreConnectLastTestedAt)}):e("lastVerified",{date:ee(i.appStoreConnectVerifiedAt)})}),i.appStoreConnectVerificationError&&(0,t.jsx)("p",{className:"mt-1 text-xs",children:i.appStoreConnectVerificationError}),i.appStoreConnectPrivateKeyFingerprint&&(0,t.jsx)("p",{className:"mt-1 break-all font-mono text-xs",children:i.appStoreConnectPrivateKeyFingerprint})]})}),(0,t.jsxs)("div",{className:"flex flex-wrap justify-end gap-2",children:[(0,t.jsx)(h.ConfirmationDialog,{actionLabel:e("clear"),cancelLabel:s("cancel"),description:e("clearDescription"),onConfirm:er,title:e("clearTitle"),trigger:(0,t.jsxs)(S.Button,{disabled:O||!i?.appStoreConnectPrivateKeyConfigured,type:"button",variant:"ghost",children:[(0,t.jsx)(c.Trash2,{})," ",e("clear")]})}),(0,t.jsxs)(S.Button,{disabled:O||!i?.appStoreConnectPrivateKeyConfigured,onClick:()=>void en(),type:"button",variant:"outline",children:[(0,t.jsx)(E.RefreshCw,{})," ",e("retest")]}),(0,t.jsxs)(S.Button,{disabled:O,type:"submit",children:[O?(0,t.jsx)(N.Spinner,{}):(0,t.jsx)(l.Save,{})," ",e("saveAndVerify")]})]})]})]})]})})}var K=e.i(967489);let q=`
20
20
  tokenConfigured tokenTeamId tokenKeyId tokenPrivateKeyFingerprint
21
21
  tokenConfiguredAt tokenLastUsedAt tokenLastError
22
22
  certificates { id name topic environment fingerprint expiresAt lastTestedAt lastError }
23
- `;function $(){let e=(0,p.useTranslations)("pushSettings"),a=(0,p.useTranslations)("common"),s=(0,m.useLocale)(),[n,i]=(0,x.useState)(null),[o,d]=(0,x.useState)(""),[g,f]=(0,x.useState)(""),[w,I]=(0,x.useState)(""),[A,T]=(0,x.useState)(""),[L,R]=(0,x.useState)(""),[H,$]=(0,x.useState)("SANDBOX"),[F,G]=(0,x.useState)(""),[V,B]=(0,x.useState)(""),[_,U]=(0,x.useState)(!1),[z,O]=(0,x.useState)(null),J=(0,x.useCallback)(async()=>{try{let e=await (0,k.controlPlaneRequest)(`query PushSettings { pushNotificationSettings { ${q} } }`);i(e.pushNotificationSettings),d(e.pushNotificationSettings.tokenTeamId??""),f(e.pushNotificationSettings.tokenKeyId??"")}catch(e){O(e instanceof Error?e.message:String(e))}},[]);(0,x.useEffect)(()=>{let e=window.setTimeout(()=>void J(),0);return()=>window.clearTimeout(e)},[J]);let W=async e=>{e.preventDefault(),U(!0);try{let e=await (0,k.controlPlaneRequest)(`mutation SaveApnsToken($input: SaveApnsTokenSettingsInput!) { saveApnsTokenSettings(input: $input) { ${q} } }`,{input:{teamId:o,keyId:g,privateKey:w||null}});i(e.saveApnsTokenSettings),I(""),O(null)}catch(e){O(e instanceof Error?e.message:String(e))}finally{U(!1)}},M=async e=>{e.preventDefault(),U(!0);try{let e=await (0,k.controlPlaneRequest)(`mutation AddApnsCertificate($input: AddApnsCertificateCredentialInput!) { addApnsCertificateCredential(input: $input) { ${q} } }`,{input:{name:A,topic:L,environment:H,p12Base64:F,passphrase:V}});i(e.addApnsCertificateCredential),T(""),R(""),G(""),B(""),O(null)}catch(e){O(e instanceof Error?e.message:String(e))}finally{U(!1)}};return(0,t.jsxs)(b.Card,{children:[(0,t.jsx)(b.CardHeader,{children:(0,t.jsx)(b.CardTitle,{children:e("title")})}),(0,t.jsxs)(b.CardContent,{className:"space-y-6",children:[z&&(0,t.jsx)(j.Alert,{variant:"destructive",children:(0,t.jsx)(j.AlertDescription,{children:z})}),(0,t.jsxs)("form",{className:"space-y-4",onSubmit:W,children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"font-medium",children:e("tokenAuthentication")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("tokenDescription")})]}),(0,t.jsx)(v.Badge,{variant:n?.tokenConfigured?"default":"secondary",children:n?.tokenConfigured?e("configured"):e("notConfigured")})]}),(0,t.jsxs)("p",{className:"text-xs text-muted-foreground",children:[e("tokenSetupHelp")," ",(0,t.jsx)(D,{href:"https://developer.apple.com/account/resources/authkeys/add",children:e("createTokenKey")})]}),(0,t.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(y.Label,{htmlFor:"apns-team",children:e("teamId")}),(0,t.jsx)(C.Input,{id:"apns-team",onChange:e=>d(e.target.value),value:o})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(y.Label,{htmlFor:"apns-key",children:e("keyId")}),(0,t.jsx)(C.Input,{id:"apns-key",onChange:e=>f(e.target.value),value:g})]})]}),(0,t.jsxs)("p",{className:"text-xs text-muted-foreground",children:[e("teamIdHelp")," ",(0,t.jsx)(D,{href:"https://developer.apple.com/account#MembershipDetailsCard",children:e("openMembership")})]}),(0,t.jsxs)(y.Label,{className:"flex cursor-pointer items-center justify-center gap-2 rounded-xl border border-dashed p-6",children:[(0,t.jsx)(u.Upload,{})," ",w?e("p8Ready"):n?.tokenConfigured?e("replaceP8"):e("chooseP8"),(0,t.jsx)(C.Input,{accept:".p8",className:"sr-only",onChange:e=>{let t=e.target.files?.[0];t&&t.text().then(I)},type:"file"})]}),n?.tokenPrivateKeyFingerprint&&(0,t.jsxs)("p",{className:"break-all font-mono text-xs text-muted-foreground",children:["SHA-256 ",n.tokenPrivateKeyFingerprint]}),n?.tokenLastError&&(0,t.jsx)("p",{className:"text-sm text-destructive",children:n.tokenLastError}),(0,t.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,t.jsx)(h.ConfirmationDialog,{actionLabel:e("remove"),cancelLabel:a("cancel"),description:e("removeTokenDescription"),onConfirm:async()=>{i((await (0,k.controlPlaneRequest)(`mutation { clearApnsTokenSettings { ${q} } }`)).clearApnsTokenSettings),d(""),f("")},title:e("removeToken"),trigger:(0,t.jsxs)(S.Button,{disabled:_||!n?.tokenConfigured,type:"button",variant:"ghost",children:[(0,t.jsx)(c.Trash2,{})," ",e("remove")]})}),(0,t.jsxs)(S.Button,{disabled:_||!o||!g||!w&&!n?.tokenConfigured,type:"submit",children:[_?(0,t.jsx)(N.Spinner,{}):(0,t.jsx)(l.Save,{})," ",e("save")]})]})]}),(0,t.jsx)("div",{className:"border-t"}),(0,t.jsxs)("form",{className:"space-y-4",onSubmit:M,children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"font-medium",children:e("certificateAuthentication")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("certificateDescription")}),(0,t.jsxs)("p",{className:"mt-1 text-xs text-muted-foreground",children:[e("certificateSetupHelp")," ",(0,t.jsx)(D,{href:"https://developer.apple.com/account/resources/certificates/add",children:e("createCertificate")})]})]}),(0,t.jsxs)("div",{className:"grid gap-4 sm:grid-cols-3",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(y.Label,{children:e("name")}),(0,t.jsx)(C.Input,{onChange:e=>T(e.target.value),value:A})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(y.Label,{children:e("topic")}),(0,t.jsx)(C.Input,{onChange:e=>R(e.target.value),value:L})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(y.Label,{children:e("environment")}),(0,t.jsxs)(K.Select,{onValueChange:$,value:H,children:[(0,t.jsx)(K.SelectTrigger,{children:(0,t.jsx)(K.SelectValue,{})}),(0,t.jsxs)(K.SelectContent,{children:[(0,t.jsx)(K.SelectItem,{value:"SANDBOX",children:"Sandbox"}),(0,t.jsx)(K.SelectItem,{value:"PRODUCTION",children:"Production"})]})]})]})]}),(0,t.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,t.jsxs)(y.Label,{className:"flex cursor-pointer items-center justify-center gap-2 rounded-xl border border-dashed p-5",children:[(0,t.jsx)(r.KeyRound,{})," ",F?e("p12Ready"):e("chooseP12"),(0,t.jsx)(C.Input,{accept:".p12,.pfx",className:"sr-only",onChange:e=>{let t=e.target.files?.[0];t&&new Promise((e,a)=>{let s=new FileReader;s.onerror=()=>a(s.error),s.onload=()=>e(String(s.result).split(",")[1]??""),s.readAsDataURL(t)}).then(G)},type:"file"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(y.Label,{children:e("passphrase")}),(0,t.jsx)(C.Input,{onChange:e=>B(e.target.value),type:"password",value:V})]})]}),(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsxs)(S.Button,{disabled:_||!A||!L||!F,type:"submit",children:[(0,t.jsx)(l.Save,{})," ",e("addCertificate")]})})]}),n?.certificates.map(n=>(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3 rounded-xl border p-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-medium",children:n.name}),(0,t.jsxs)("p",{className:"font-mono text-xs",children:[n.topic," · ",n.environment]}),(0,t.jsxs)("p",{className:"font-mono text-xs text-muted-foreground",children:["SHA-256 ",n.fingerprint]}),n.expiresAt&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e("expires",{date:(0,P.formatDateValue)(n.expiresAt,"short",{locale:s,showTime:!1})})}),n.lastTestedAt&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e("lastTested",{date:(0,P.formatDateValue)(n.lastTestedAt,"short",{locale:s})})}),n.lastError&&(0,t.jsx)("p",{className:"text-xs text-destructive",children:n.lastError})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsxs)(S.Button,{disabled:_,onClick:()=>void(async()=>{U(!0);try{let e=await (0,k.controlPlaneRequest)(`mutation Retest($id: ID!) { retestApnsCertificateCredential(id: $id) { ${q} } }`,{id:n.id});i(e.retestApnsCertificateCredential),O(null)}catch(e){O(e instanceof Error?e.message:String(e)),await J()}finally{U(!1)}})(),size:"sm",variant:"outline",children:[(0,t.jsx)(E.RefreshCw,{})," ",e("retest")]}),(0,t.jsx)(h.ConfirmationDialog,{actionLabel:e("remove"),cancelLabel:a("cancel"),description:e("removeCertificateDescription"),onConfirm:async()=>{await (0,k.controlPlaneRequest)("mutation Delete($id: ID!) { deleteApnsCertificateCredential(id: $id) }",{id:n.id}),await J()},title:e("removeCertificate"),trigger:(0,t.jsx)(S.Button,{size:"icon-sm",variant:"ghost",children:(0,t.jsx)(c.Trash2,{})})})]})]},n.id))]})]})}let F="siteUrl email tokenConfigured cacheTtlSeconds updatedAt";function G({embedded:e=!1}={}){let s=(0,p.useTranslations)("jiraSettings"),n=(0,p.useTranslations)("common"),[i,o]=(0,x.useState)(null),[u,m]=(0,x.useState)(""),[g,f]=(0,x.useState)(""),[w,I]=(0,x.useState)(""),[A,E]=(0,x.useState)(null),[T,L]=(0,x.useState)(!0),[P,R]=(0,x.useState)(!1),[H,K]=(0,x.useState)(null),[q,$]=(0,x.useState)(null),[V,B]=(0,x.useState)(!1),_=e=>{o(e),m(e.siteUrl??""),f(e.email??""),I("")},U=(0,x.useCallback)(async()=>{try{let e=await (0,k.controlPlaneRequest)(`query { jiraSettings { ${F} } }`);_(e.jiraSettings)}catch(e){K(e instanceof Error?e.message:String(e))}finally{L(!1)}},[]);(0,x.useEffect)(()=>{let e=window.setTimeout(()=>void U(),0);return()=>window.clearTimeout(e)},[U]);let z=async e=>{R(!0);try{let t=await (0,k.controlPlaneRequest)(`mutation SaveJiraSettings($input: SaveJiraSettingsInput!) { saveJiraSettings(input: $input) { ${F} } }`,{input:{siteUrl:u,email:g,apiToken:w||null,resetSite:e}});_(t.saveJiraSettings),E(null),K(null),$(s("saved"))}catch(e){K(e instanceof Error?e.message:String(e)),$(null)}finally{R(!1)}},O=async()=>{R(!0);try{let e=await (0,k.controlPlaneRequest)("mutation { testJiraConnection { accountId displayName emailAddress } }");E(e.testJiraConnection),K(null),$(s("connectionSucceeded"))}catch(e){E(null),K(e instanceof Error?e.message:String(e)),$(null)}finally{R(!1)}},J=async()=>{R(!0);try{let e=await (0,k.controlPlaneRequest)(`mutation { clearJiraCredentials { ${F} } }`);_(e.clearJiraCredentials),E(null),K(null),$(s("removed"))}catch(e){K(e instanceof Error?e.message:String(e))}finally{R(!1)}};return(0,t.jsxs)("section",{className:e?"flex w-full flex-col gap-6":"mx-auto flex w-full max-w-3xl flex-col gap-6",children:[!e&&(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",children:s("title")}),(0,t.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:s("description")})]}),T?(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(N.Spinner,{}),s("loading")]}):(0,t.jsx)("form",{onSubmit:e=>{(e.preventDefault(),i?.siteUrl&&i.siteUrl!==u.trim().replace(/\/$/,""))?B(!0):z(!1)},children:(0,t.jsx)(b.Card,{children:(0,t.jsxs)(b.CardContent,{className:"space-y-5",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(r.KeyRound,{className:"size-5"}),(0,t.jsx)("h2",{className:"font-semibold",children:s("credentials")})]}),(0,t.jsx)(v.Badge,{className:i?.tokenConfigured?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":void 0,children:i?.tokenConfigured?s("configured"):s("notConfigured")})]}),H&&(0,t.jsx)(j.Alert,{variant:"destructive",children:(0,t.jsx)(j.AlertDescription,{children:H})}),q&&(0,t.jsxs)(j.Alert,{className:"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300",children:[(0,t.jsx)(a.CheckCircle2,{}),(0,t.jsx)(j.AlertDescription,{className:"text-current",children:q})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(y.Label,{className:"mb-1.5 block text-sm font-medium",htmlFor:"jira-site-url",children:s("siteUrl")}),(0,t.jsx)(C.Input,{autoComplete:"url",id:"jira-site-url",onChange:e=>m(e.target.value),placeholder:"https://example.atlassian.net",required:!0,type:"url",value:u}),(0,t.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:s("siteUrlHelp")})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(y.Label,{className:"mb-1.5 block text-sm font-medium",htmlFor:"jira-email",children:s("email")}),(0,t.jsx)(C.Input,{autoComplete:"username",id:"jira-email",onChange:e=>f(e.target.value),required:!0,type:"email",value:g}),(0,t.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:s("accountHelp")})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(y.Label,{className:"mb-1.5 block text-sm font-medium",htmlFor:"jira-token",children:s("apiToken")}),(0,t.jsx)(C.Input,{autoComplete:"new-password",id:"jira-token",onChange:e=>I(e.target.value),placeholder:i?.tokenConfigured?s("tokenPlaceholderConfigured"):s("tokenPlaceholder"),required:!i?.tokenConfigured,type:"password",value:w}),(0,t.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:i?.tokenConfigured?s("tokenKeepHelp"):s("tokenHelp")}),(0,t.jsxs)("p",{className:"mt-1 text-xs text-muted-foreground",children:[s("tokenAcquireHelp")," ",(0,t.jsx)(D,{href:"https://id.atlassian.com/manage-profile/security/api-tokens",children:s("createToken")})]})]}),A&&(0,t.jsx)(j.Alert,{className:"bg-muted",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-medium",children:A.displayName}),(0,t.jsx)("p",{className:"text-muted-foreground",children:A.emailAddress??A.accountId})]})}),(0,t.jsxs)("div",{className:"flex flex-wrap justify-end gap-2 border-t pt-4",children:[(0,t.jsx)(h.ConfirmationDialog,{actionLabel:s("remove"),cancelLabel:n("cancel"),description:n("cannotBeUndone"),onConfirm:J,title:s("confirmRemove"),trigger:(0,t.jsxs)(S.Button,{disabled:P||!i?.tokenConfigured,type:"button",variant:"ghost",children:[(0,t.jsx)(c.Trash2,{}),s("remove")]})}),(0,t.jsxs)(S.Button,{disabled:P||!i?.tokenConfigured,onClick:()=>void O(),type:"button",variant:"outline",children:[(0,t.jsx)(d,{}),s("test")]}),(0,t.jsxs)(S.Button,{disabled:P,type:"submit",children:[P?(0,t.jsx)(N.Spinner,{}):(0,t.jsx)(l.Save,{}),s("save")]})]})]})})}),(0,t.jsx)(h.ConfirmationDialog,{actionLabel:n("continue"),cancelLabel:n("cancel"),description:n("cannotBeUndone"),onConfirm:()=>z(!0),onOpenChange:B,open:V,title:s("confirmSiteChange")})]})}var V=e.i(468096);let B="tokenConfigured defaultJiraKeyRegex actionsNotificationPollIntervalSeconds updatedAt",_="configured appId installationId privateKeyConfigured keyFingerprint appSlug accountLogin repositorySelection actionsPermission verifiedAt webhookConfigured webhookUrl webhookConfiguredAt webhookLastReceivedAt webhookLastOutcome webhookLastError updatedAt";function U({children:e,description:a,id:s,title:n}){return(0,t.jsxs)("section",{"aria-labelledby":s,className:"min-w-0 space-y-4",children:[(0,t.jsxs)("div",{className:"space-y-1 border-b pb-3",children:[(0,t.jsx)("h2",{className:"text-lg font-semibold tracking-tight",id:s,children:n}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:a})]}),(0,t.jsx)("div",{className:"flex min-w-0 flex-col gap-6",children:e})]})}function z(){let e=(0,p.useTranslations)("editorSettings"),[a,n]=(0,x.useState)("CODE"),[r,i]=(0,x.useState)(!0),[o,c]=(0,x.useState)(!1),[d,u]=(0,x.useState)(null),[m,h]=(0,x.useState)(null);(0,x.useEffect)(()=>{let e=window.setTimeout(()=>{(0,k.controlPlaneRequest)("query EditorSettings { worktreeSettings { editorVariant } }").then(e=>n(e.worktreeSettings.editorVariant)).catch(e=>h(e instanceof Error?e.message:String(e))).finally(()=>i(!1))},0);return()=>window.clearTimeout(e)},[]);let g=async()=>{c(!0);try{await (0,k.controlPlaneRequest)(`mutation SaveEditorSettings($editorVariant: WorktreeEditorVariant!) {
23
+ `;function $(){let e=(0,m.useTranslations)("pushSettings"),a=(0,m.useTranslations)("common"),s=(0,p.useLocale)(),[n,i]=(0,x.useState)(null),[o,d]=(0,x.useState)(""),[g,f]=(0,x.useState)(""),[w,I]=(0,x.useState)(""),[A,T]=(0,x.useState)(""),[L,R]=(0,x.useState)(""),[H,$]=(0,x.useState)("SANDBOX"),[F,G]=(0,x.useState)(""),[V,B]=(0,x.useState)(""),[U,_]=(0,x.useState)(!1),[z,O]=(0,x.useState)(null),J=(0,x.useCallback)(async()=>{try{let e=await (0,k.controlPlaneRequest)(`query PushSettings { pushNotificationSettings { ${q} } }`);i(e.pushNotificationSettings),d(e.pushNotificationSettings.tokenTeamId??""),f(e.pushNotificationSettings.tokenKeyId??"")}catch(e){O(e instanceof Error?e.message:String(e))}},[]);(0,x.useEffect)(()=>{let e=window.setTimeout(()=>void J(),0);return()=>window.clearTimeout(e)},[J]);let W=async e=>{e.preventDefault(),_(!0);try{let e=await (0,k.controlPlaneRequest)(`mutation SaveApnsToken($input: SaveApnsTokenSettingsInput!) { saveApnsTokenSettings(input: $input) { ${q} } }`,{input:{teamId:o,keyId:g,privateKey:w||null}});i(e.saveApnsTokenSettings),I(""),O(null)}catch(e){O(e instanceof Error?e.message:String(e))}finally{_(!1)}},M=async e=>{e.preventDefault(),_(!0);try{let e=await (0,k.controlPlaneRequest)(`mutation AddApnsCertificate($input: AddApnsCertificateCredentialInput!) { addApnsCertificateCredential(input: $input) { ${q} } }`,{input:{name:A,topic:L,environment:H,p12Base64:F,passphrase:V}});i(e.addApnsCertificateCredential),T(""),R(""),G(""),B(""),O(null)}catch(e){O(e instanceof Error?e.message:String(e))}finally{_(!1)}};return(0,t.jsxs)(b.Card,{children:[(0,t.jsx)(b.CardHeader,{children:(0,t.jsx)(b.CardTitle,{children:e("title")})}),(0,t.jsxs)(b.CardContent,{className:"space-y-6",children:[z&&(0,t.jsx)(j.Alert,{variant:"destructive",children:(0,t.jsx)(j.AlertDescription,{children:z})}),(0,t.jsxs)("form",{className:"space-y-4",onSubmit:W,children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"font-medium",children:e("tokenAuthentication")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("tokenDescription")})]}),(0,t.jsx)(v.Badge,{variant:n?.tokenConfigured?"default":"secondary",children:n?.tokenConfigured?e("configured"):e("notConfigured")})]}),(0,t.jsxs)("p",{className:"text-xs text-muted-foreground",children:[e("tokenSetupHelp")," ",(0,t.jsx)(D,{href:"https://developer.apple.com/account/resources/authkeys/add",children:e("createTokenKey")})]}),(0,t.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(y.Label,{htmlFor:"apns-team",children:e("teamId")}),(0,t.jsx)(C.Input,{id:"apns-team",onChange:e=>d(e.target.value),value:o})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(y.Label,{htmlFor:"apns-key",children:e("keyId")}),(0,t.jsx)(C.Input,{id:"apns-key",onChange:e=>f(e.target.value),value:g})]})]}),(0,t.jsxs)("p",{className:"text-xs text-muted-foreground",children:[e("teamIdHelp")," ",(0,t.jsx)(D,{href:"https://developer.apple.com/account#MembershipDetailsCard",children:e("openMembership")})]}),(0,t.jsxs)(y.Label,{className:"flex cursor-pointer items-center justify-center gap-2 rounded-xl border border-dashed p-6",children:[(0,t.jsx)(u.Upload,{})," ",w?e("p8Ready"):n?.tokenConfigured?e("replaceP8"):e("chooseP8"),(0,t.jsx)(C.Input,{accept:".p8",className:"sr-only",onChange:e=>{let t=e.target.files?.[0];t&&t.text().then(I)},type:"file"})]}),n?.tokenPrivateKeyFingerprint&&(0,t.jsxs)("p",{className:"break-all font-mono text-xs text-muted-foreground",children:["SHA-256 ",n.tokenPrivateKeyFingerprint]}),n?.tokenLastError&&(0,t.jsx)("p",{className:"text-sm text-destructive",children:n.tokenLastError}),(0,t.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,t.jsx)(h.ConfirmationDialog,{actionLabel:e("remove"),cancelLabel:a("cancel"),description:e("removeTokenDescription"),onConfirm:async()=>{i((await (0,k.controlPlaneRequest)(`mutation { clearApnsTokenSettings { ${q} } }`)).clearApnsTokenSettings),d(""),f("")},title:e("removeToken"),trigger:(0,t.jsxs)(S.Button,{disabled:U||!n?.tokenConfigured,type:"button",variant:"ghost",children:[(0,t.jsx)(c.Trash2,{})," ",e("remove")]})}),(0,t.jsxs)(S.Button,{disabled:U||!o||!g||!w&&!n?.tokenConfigured,type:"submit",children:[U?(0,t.jsx)(N.Spinner,{}):(0,t.jsx)(l.Save,{})," ",e("save")]})]})]}),(0,t.jsx)("div",{className:"border-t"}),(0,t.jsxs)("form",{className:"space-y-4",onSubmit:M,children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"font-medium",children:e("certificateAuthentication")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("certificateDescription")}),(0,t.jsxs)("p",{className:"mt-1 text-xs text-muted-foreground",children:[e("certificateSetupHelp")," ",(0,t.jsx)(D,{href:"https://developer.apple.com/account/resources/certificates/add",children:e("createCertificate")})]})]}),(0,t.jsxs)("div",{className:"grid gap-4 sm:grid-cols-3",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(y.Label,{children:e("name")}),(0,t.jsx)(C.Input,{onChange:e=>T(e.target.value),value:A})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(y.Label,{children:e("topic")}),(0,t.jsx)(C.Input,{onChange:e=>R(e.target.value),value:L})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(y.Label,{children:e("environment")}),(0,t.jsxs)(K.Select,{onValueChange:$,value:H,children:[(0,t.jsx)(K.SelectTrigger,{children:(0,t.jsx)(K.SelectValue,{})}),(0,t.jsxs)(K.SelectContent,{children:[(0,t.jsx)(K.SelectItem,{value:"SANDBOX",children:"Sandbox"}),(0,t.jsx)(K.SelectItem,{value:"PRODUCTION",children:"Production"})]})]})]})]}),(0,t.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,t.jsxs)(y.Label,{className:"flex cursor-pointer items-center justify-center gap-2 rounded-xl border border-dashed p-5",children:[(0,t.jsx)(r.KeyRound,{})," ",F?e("p12Ready"):e("chooseP12"),(0,t.jsx)(C.Input,{accept:".p12,.pfx",className:"sr-only",onChange:e=>{let t=e.target.files?.[0];t&&new Promise((e,a)=>{let s=new FileReader;s.onerror=()=>a(s.error),s.onload=()=>e(String(s.result).split(",")[1]??""),s.readAsDataURL(t)}).then(G)},type:"file"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(y.Label,{children:e("passphrase")}),(0,t.jsx)(C.Input,{onChange:e=>B(e.target.value),type:"password",value:V})]})]}),(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsxs)(S.Button,{disabled:U||!A||!L||!F,type:"submit",children:[(0,t.jsx)(l.Save,{})," ",e("addCertificate")]})})]}),n?.certificates.map(n=>(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3 rounded-xl border p-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-medium",children:n.name}),(0,t.jsxs)("p",{className:"font-mono text-xs",children:[n.topic," · ",n.environment]}),(0,t.jsxs)("p",{className:"font-mono text-xs text-muted-foreground",children:["SHA-256 ",n.fingerprint]}),n.expiresAt&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e("expires",{date:(0,P.formatDateValue)(n.expiresAt,"short",{locale:s,showTime:!1})})}),n.lastTestedAt&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e("lastTested",{date:(0,P.formatDateValue)(n.lastTestedAt,"short",{locale:s})})}),n.lastError&&(0,t.jsx)("p",{className:"text-xs text-destructive",children:n.lastError})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsxs)(S.Button,{disabled:U,onClick:()=>void(async()=>{_(!0);try{let e=await (0,k.controlPlaneRequest)(`mutation Retest($id: ID!) { retestApnsCertificateCredential(id: $id) { ${q} } }`,{id:n.id});i(e.retestApnsCertificateCredential),O(null)}catch(e){O(e instanceof Error?e.message:String(e)),await J()}finally{_(!1)}})(),size:"sm",variant:"outline",children:[(0,t.jsx)(E.RefreshCw,{})," ",e("retest")]}),(0,t.jsx)(h.ConfirmationDialog,{actionLabel:e("remove"),cancelLabel:a("cancel"),description:e("removeCertificateDescription"),onConfirm:async()=>{await (0,k.controlPlaneRequest)("mutation Delete($id: ID!) { deleteApnsCertificateCredential(id: $id) }",{id:n.id}),await J()},title:e("removeCertificate"),trigger:(0,t.jsx)(S.Button,{size:"icon-sm",variant:"ghost",children:(0,t.jsx)(c.Trash2,{})})})]})]},n.id))]})]})}let F="siteUrl email tokenConfigured cacheTtlSeconds updatedAt";function G({embedded:e=!1}={}){let s=(0,m.useTranslations)("jiraSettings"),n=(0,m.useTranslations)("common"),[i,o]=(0,x.useState)(null),[u,p]=(0,x.useState)(""),[g,f]=(0,x.useState)(""),[w,I]=(0,x.useState)(""),[A,E]=(0,x.useState)(null),[T,L]=(0,x.useState)(!0),[P,R]=(0,x.useState)(!1),[H,K]=(0,x.useState)(null),[q,$]=(0,x.useState)(null),[V,B]=(0,x.useState)(!1),U=e=>{o(e),p(e.siteUrl??""),f(e.email??""),I("")},_=(0,x.useCallback)(async()=>{try{let e=await (0,k.controlPlaneRequest)(`query { jiraSettings { ${F} } }`);U(e.jiraSettings)}catch(e){K(e instanceof Error?e.message:String(e))}finally{L(!1)}},[]);(0,x.useEffect)(()=>{let e=window.setTimeout(()=>void _(),0);return()=>window.clearTimeout(e)},[_]);let z=async e=>{R(!0);try{let t=await (0,k.controlPlaneRequest)(`mutation SaveJiraSettings($input: SaveJiraSettingsInput!) { saveJiraSettings(input: $input) { ${F} } }`,{input:{siteUrl:u,email:g,apiToken:w||null,resetSite:e}});U(t.saveJiraSettings),E(null),K(null),$(s("saved"))}catch(e){K(e instanceof Error?e.message:String(e)),$(null)}finally{R(!1)}},O=async()=>{R(!0);try{let e=await (0,k.controlPlaneRequest)("mutation { testJiraConnection { accountId displayName emailAddress } }");E(e.testJiraConnection),K(null),$(s("connectionSucceeded"))}catch(e){E(null),K(e instanceof Error?e.message:String(e)),$(null)}finally{R(!1)}},J=async()=>{R(!0);try{let e=await (0,k.controlPlaneRequest)(`mutation { clearJiraCredentials { ${F} } }`);U(e.clearJiraCredentials),E(null),K(null),$(s("removed"))}catch(e){K(e instanceof Error?e.message:String(e))}finally{R(!1)}};return(0,t.jsxs)("section",{className:e?"flex w-full flex-col gap-6":"mx-auto flex w-full max-w-3xl flex-col gap-6",children:[!e&&(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",children:s("title")}),(0,t.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:s("description")})]}),T?(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(N.Spinner,{}),s("loading")]}):(0,t.jsx)("form",{onSubmit:e=>{(e.preventDefault(),i?.siteUrl&&i.siteUrl!==u.trim().replace(/\/$/,""))?B(!0):z(!1)},children:(0,t.jsx)(b.Card,{children:(0,t.jsxs)(b.CardContent,{className:"space-y-5",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(r.KeyRound,{className:"size-5"}),(0,t.jsx)("h2",{className:"font-semibold",children:s("credentials")})]}),(0,t.jsx)(v.Badge,{className:i?.tokenConfigured?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":void 0,children:i?.tokenConfigured?s("configured"):s("notConfigured")})]}),H&&(0,t.jsx)(j.Alert,{variant:"destructive",children:(0,t.jsx)(j.AlertDescription,{children:H})}),q&&(0,t.jsxs)(j.Alert,{className:"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300",children:[(0,t.jsx)(a.CheckCircle2,{}),(0,t.jsx)(j.AlertDescription,{className:"text-current",children:q})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(y.Label,{className:"mb-1.5 block text-sm font-medium",htmlFor:"jira-site-url",children:s("siteUrl")}),(0,t.jsx)(C.Input,{autoComplete:"url",id:"jira-site-url",onChange:e=>p(e.target.value),placeholder:"https://example.atlassian.net",required:!0,type:"url",value:u}),(0,t.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:s("siteUrlHelp")})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(y.Label,{className:"mb-1.5 block text-sm font-medium",htmlFor:"jira-email",children:s("email")}),(0,t.jsx)(C.Input,{autoComplete:"username",id:"jira-email",onChange:e=>f(e.target.value),required:!0,type:"email",value:g}),(0,t.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:s("accountHelp")})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(y.Label,{className:"mb-1.5 block text-sm font-medium",htmlFor:"jira-token",children:s("apiToken")}),(0,t.jsx)(C.Input,{autoComplete:"new-password",id:"jira-token",onChange:e=>I(e.target.value),placeholder:i?.tokenConfigured?s("tokenPlaceholderConfigured"):s("tokenPlaceholder"),required:!i?.tokenConfigured,type:"password",value:w}),(0,t.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:i?.tokenConfigured?s("tokenKeepHelp"):s("tokenHelp")}),(0,t.jsxs)("p",{className:"mt-1 text-xs text-muted-foreground",children:[s("tokenAcquireHelp")," ",(0,t.jsx)(D,{href:"https://id.atlassian.com/manage-profile/security/api-tokens",children:s("createToken")})]})]}),A&&(0,t.jsx)(j.Alert,{className:"bg-muted",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-medium",children:A.displayName}),(0,t.jsx)("p",{className:"text-muted-foreground",children:A.emailAddress??A.accountId})]})}),(0,t.jsxs)("div",{className:"flex flex-wrap justify-end gap-2 border-t pt-4",children:[(0,t.jsx)(h.ConfirmationDialog,{actionLabel:s("remove"),cancelLabel:n("cancel"),description:n("cannotBeUndone"),onConfirm:J,title:s("confirmRemove"),trigger:(0,t.jsxs)(S.Button,{disabled:P||!i?.tokenConfigured,type:"button",variant:"ghost",children:[(0,t.jsx)(c.Trash2,{}),s("remove")]})}),(0,t.jsxs)(S.Button,{disabled:P||!i?.tokenConfigured,onClick:()=>void O(),type:"button",variant:"outline",children:[(0,t.jsx)(d.Unplug,{}),s("test")]}),(0,t.jsxs)(S.Button,{disabled:P,type:"submit",children:[P?(0,t.jsx)(N.Spinner,{}):(0,t.jsx)(l.Save,{}),s("save")]})]})]})})}),(0,t.jsx)(h.ConfirmationDialog,{actionLabel:n("continue"),cancelLabel:n("cancel"),description:n("cannotBeUndone"),onConfirm:()=>z(!0),onOpenChange:B,open:V,title:s("confirmSiteChange")})]})}var V=e.i(468096);let B="tokenConfigured defaultJiraKeyRegex actionsNotificationPollIntervalSeconds updatedAt",U="configured appId installationId privateKeyConfigured keyFingerprint appSlug accountLogin repositorySelection actionsPermission verifiedAt webhookConfigured webhookUrl webhookConfiguredAt webhookLastReceivedAt webhookLastOutcome webhookLastError updatedAt";function _({children:e,description:a,id:s,title:n}){return(0,t.jsxs)("section",{"aria-labelledby":s,className:"min-w-0 space-y-4",children:[(0,t.jsxs)("div",{className:"space-y-1 border-b pb-3",children:[(0,t.jsx)("h2",{className:"text-lg font-semibold tracking-tight",id:s,children:n}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:a})]}),(0,t.jsx)("div",{className:"flex min-w-0 flex-col gap-6",children:e})]})}function z(){let e=(0,m.useTranslations)("editorSettings"),[a,n]=(0,x.useState)("CODE"),[r,i]=(0,x.useState)(!0),[o,c]=(0,x.useState)(!1),[d,u]=(0,x.useState)(null),[p,h]=(0,x.useState)(null);(0,x.useEffect)(()=>{let e=window.setTimeout(()=>{(0,k.controlPlaneRequest)("query EditorSettings { worktreeSettings { editorVariant } }").then(e=>n(e.worktreeSettings.editorVariant)).catch(e=>h(e instanceof Error?e.message:String(e))).finally(()=>i(!1))},0);return()=>window.clearTimeout(e)},[]);let g=async()=>{c(!0);try{await (0,k.controlPlaneRequest)(`mutation SaveEditorSettings($editorVariant: WorktreeEditorVariant!) {
24
24
  saveWorktreeSettings(editorVariant: $editorVariant) { editorVariant }
25
- }`,{editorVariant:a}),u(e("saved")),h(null)}catch(e){h(e instanceof Error?e.message:String(e)),u(null)}finally{c(!1)}};return(0,t.jsx)(b.Card,{children:(0,t.jsxs)(b.CardContent,{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(s.Code2,{className:"size-5"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"font-semibold",children:e("title")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e("description")})]})]}),m&&(0,t.jsx)(j.Alert,{variant:"destructive",children:(0,t.jsx)(j.AlertDescription,{children:m})}),d&&(0,t.jsx)(j.Alert,{children:(0,t.jsx)(j.AlertDescription,{children:d})}),r?(0,t.jsxs)("p",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(N.Spinner,{})," ",e("loading")]}):(0,t.jsxs)("div",{className:"flex flex-wrap items-end gap-3",children:[(0,t.jsxs)("div",{className:"min-w-64 flex-1 space-y-2",children:[(0,t.jsx)(y.Label,{htmlFor:"editor-variant",children:e("label")}),(0,t.jsxs)(K.Select,{onValueChange:e=>n(e),value:a,children:[(0,t.jsx)(K.SelectTrigger,{className:"w-full",id:"editor-variant",children:(0,t.jsx)(K.SelectValue,{})}),(0,t.jsxs)(K.SelectContent,{children:[(0,t.jsx)(K.SelectItem,{value:"CODE",children:e("code")}),(0,t.jsx)(K.SelectItem,{value:"CODE_INSIDERS",children:e("insiders")}),(0,t.jsx)(K.SelectItem,{value:"NONE",children:e("none")})]})]}),(0,t.jsxs)("div",{className:"space-y-1 text-xs text-muted-foreground",children:[(0,t.jsx)("p",{children:e("setupHelp")}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-x-3 gap-y-1",children:[(0,t.jsx)(D,{href:"https://code.visualstudio.com/download",children:e("downloadCode")}),(0,t.jsx)(D,{href:"https://code.visualstudio.com/insiders/",children:e("downloadInsiders")})]})]})]}),(0,t.jsxs)(S.Button,{disabled:o,onClick:()=>void g(),children:[o?(0,t.jsx)(N.Spinner,{}):(0,t.jsx)(l.Save,{})," ",e("save")]})]})]})})}function O(){let e=(0,p.useTranslations)("githubAppSettings"),s=(0,p.useTranslations)("common"),n=(0,m.useLocale)(),[g,f]=(0,x.useState)(null),[w,I]=(0,x.useState)(""),[A,E]=(0,x.useState)(""),[T,R]=(0,x.useState)(""),[H,K]=(0,x.useState)(""),[q,$]=(0,x.useState)(""),[F,G]=(0,x.useState)(!1),[V,B]=(0,x.useState)(!1),[U,z]=(0,x.useState)(!0),[O,J]=(0,x.useState)(!1),[W,M]=(0,x.useState)(null),[Z,Y]=(0,x.useState)(null),X=(0,x.useCallback)(e=>{f(e),I(e.appId??""),E(e.installationId??""),R(""),$(t=>e.webhookUrl??t),G(!!e.webhookUrl)},[]),Q=(0,x.useCallback)(async()=>{try{let e=await (0,k.controlPlaneRequest)(`query GitHubAppSettings { githubAppSettings { ${_} } }`);X(e.githubAppSettings)}catch(e){M(e instanceof Error?e.message:String(e))}finally{z(!1)}},[X]);(0,x.useEffect)(()=>{let e=window.setTimeout(()=>{K(window.location.origin),$(`${window.location.origin.replace(/\/$/,"")}/api/public/github/webhook`),Q()},0);return()=>window.clearTimeout(e)},[Q]);let ee=async t=>{t.preventDefault(),J(!0);try{let t=await (0,k.controlPlaneRequest)(`mutation SaveGitHubAppSettings($input: SaveGitHubAppSettingsInput!) {
26
- saveGitHubAppSettings(input: $input) { ${_} }
27
- }`,{input:{appId:w.trim(),installationId:A.trim(),privateKey:T||null,...F?{webhookUrl:q.trim()}:{}}});X(t.saveGitHubAppSettings),M(null),Y(T&&g?.configured?e("rotated"):e("saved"))}catch(e){M(e instanceof Error?e.message:String(e)),Y(null)}finally{J(!1)}},et=async()=>{J(!0);try{let t=await (0,k.controlPlaneRequest)(`mutation TestGitHubAppConnection {
28
- testGitHubAppConnection { ${_} }
29
- }`);X(t.testGitHubAppConnection),M(null),Y(e("connectionSucceeded"))}catch(e){M(e instanceof Error?e.message:String(e)),Y(null)}finally{J(!1)}},ea=async()=>{J(!0);try{let t=await (0,k.controlPlaneRequest)(`mutation ClearGitHubAppCredentials {
30
- clearGitHubAppCredentials { ${_} }
31
- }`);X(t.clearGitHubAppCredentials),M(null),Y(e("removed"))}catch(e){M(e instanceof Error?e.message:String(e)),Y(null)}finally{J(!1)}},es=async t=>{if(!t.name.toLowerCase().endsWith(".pem")){M(e("pemFileInvalid")),Y(null);return}try{let a=await t.text();if(!/-----BEGIN (?:RSA )?PRIVATE KEY-----/.test(a)||!/-----END (?:RSA )?PRIVATE KEY-----/.test(a)){M(e("pemFileInvalid")),Y(null);return}R(a),M(null),Y(e("pemFileLoaded",{filename:t.name}))}catch{M(e("pemFileReadError")),Y(null)}};return(0,t.jsx)("form",{onSubmit:ee,children:(0,t.jsx)(b.Card,{children:(0,t.jsxs)(b.CardContent,{className:"space-y-5",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(o.ShieldCheck,{className:"size-5"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"font-semibold",children:e("title")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e("description")})]})]}),(0,t.jsx)(v.Badge,{className:g?.configured?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":void 0,children:g?.configured?e("verified"):e("notConfigured")})]}),U?(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(N.Spinner,{}),e("loading")]}):(0,t.jsxs)(t.Fragment,{children:[W&&(0,t.jsx)(j.Alert,{variant:"destructive",children:(0,t.jsx)(j.AlertDescription,{children:W})}),Z&&(0,t.jsxs)(j.Alert,{className:"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300",children:[(0,t.jsx)(a.CheckCircle2,{}),(0,t.jsx)(j.AlertDescription,{className:"text-current",children:Z})]}),(0,t.jsxs)("div",{className:"rounded-lg border bg-muted/30 p-4",children:[(0,t.jsx)("h3",{className:"font-medium",children:e("setupTitle")}),(0,t.jsxs)("ol",{className:"mt-3 list-decimal space-y-3 pl-5 text-sm text-muted-foreground",children:[(0,t.jsxs)("li",{children:[e("stepRegister")," ",(0,t.jsx)(D,{href:"https://github.com/settings/apps/new",children:e("registerLink")})]}),(0,t.jsxs)("li",{children:[e("stepHomepage")," ",(0,t.jsx)("code",{className:"break-all rounded bg-muted px-1 py-0.5 text-xs text-foreground",children:H}),e("stepHomepageSuffix")]}),(0,t.jsx)("li",{children:e("stepPermissions")}),(0,t.jsxs)("li",{children:[e("stepWebhook")," ",(0,t.jsx)("code",{className:"break-all rounded bg-muted px-1 py-0.5 text-xs text-foreground",children:q}),e("stepWebhookSuffix")]}),(0,t.jsx)("li",{children:e("stepInstall")}),(0,t.jsxs)("li",{children:[e("stepInstallationId")," ",(0,t.jsx)("code",{className:"break-all rounded bg-muted px-1 py-0.5 text-xs text-foreground",children:"https://github.com/organizations/<Organization-name>/settings/installations/<ID>"}),e("stepInstallationIdSuffix")]}),(0,t.jsx)("li",{children:e("stepCredentials")})]})]}),(0,t.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(y.Label,{className:"mb-1.5 block text-sm font-medium",htmlFor:"github-app-id",children:e("appId")}),(0,t.jsx)(C.Input,{id:"github-app-id",inputMode:"numeric",onChange:e=>I(e.target.value),placeholder:e("appIdPlaceholder"),required:!0,value:w})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(y.Label,{className:"mb-1.5 block text-sm font-medium",htmlFor:"github-installation-id",children:e("installationId")}),(0,t.jsx)(C.Input,{id:"github-installation-id",inputMode:"numeric",onChange:e=>E(e.target.value),placeholder:e("installationIdPlaceholder"),required:!0,value:A})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(y.Label,{className:"mb-1.5 block text-sm font-medium",htmlFor:"github-app-webhook-url",children:e("webhookUrl")}),(0,t.jsx)(C.Input,{id:"github-app-webhook-url",onChange:e=>{$(e.target.value),G(!0)},placeholder:"https://example.com/api/public/github/webhook",required:!0,type:"url",value:q}),(0,t.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:e("webhookUrlHelp")})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(y.Label,{className:"mb-1.5 block text-sm font-medium",htmlFor:"github-app-private-key",children:e("privateKey")}),(0,t.jsxs)("div",{"aria-label":e("privateKeyDropZone"),className:`rounded-md border border-dashed p-2 transition-colors ${V?"border-primary bg-primary/5":"border-input"}`,onDragEnter:e=>{e.preventDefault(),B(!0)},onDragLeave:()=>B(!1),onDragOver:e=>{e.preventDefault(),e.dataTransfer.dropEffect="copy",B(!0)},onDrop:e=>{e.preventDefault(),B(!1);let t=e.dataTransfer.files.item(0);t&&es(t)},role:"group",children:[(0,t.jsxs)("p",{className:"mb-2 flex items-center gap-1.5 text-xs text-muted-foreground",children:[(0,t.jsx)(u.Upload,{className:"size-3.5"}),e("pemDropHint")]}),(0,t.jsx)(L.Textarea,{autoComplete:"new-password",className:"min-h-40 border-0 bg-transparent font-mono text-xs shadow-none focus-visible:ring-0 dark:bg-transparent",id:"github-app-private-key",onChange:e=>R(e.target.value),placeholder:g?.privateKeyConfigured?e("privateKeyPlaceholderConfigured"):e("privateKeyPlaceholder"),required:!g?.privateKeyConfigured,value:T})]}),(0,t.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:g?.privateKeyConfigured?e("privateKeyKeepHelp"):e("privateKeyHelp")})]}),g?.configured&&(0,t.jsxs)(j.Alert,{className:"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300",children:[(0,t.jsx)(r.KeyRound,{}),(0,t.jsxs)(j.AlertDescription,{className:"text-emerald-700 dark:text-emerald-300",children:[(0,t.jsx)("p",{className:"font-medium",children:e("connectedAs",{app:g.appSlug??"—",account:g.accountLogin??"—"})}),(0,t.jsx)("p",{className:"mt-1 text-xs",children:e("connectionDetails",{permission:g.actionsPermission??"—",selection:g.repositorySelection??"—"})}),g.verifiedAt&&(0,t.jsx)("p",{className:"mt-1 text-xs",children:e("lastVerified",{date:(0,P.formatDateValue)(g.verifiedAt,"short",{locale:n})})}),(0,t.jsx)("p",{className:"mt-1 text-xs",children:g.webhookConfigured?e("webhookConfigured",{url:g.webhookUrl??"—"}):g.webhookUrl?e("webhookNeedsSetup"):e("webhookUnavailable")}),g.webhookLastReceivedAt&&(0,t.jsx)("p",{className:"mt-1 text-xs",children:e("lastWebhook",{date:(0,P.formatDateValue)(g.webhookLastReceivedAt,"short",{locale:n}),outcome:g.webhookLastOutcome??"—"})}),g.webhookLastError&&(0,t.jsx)("p",{className:"mt-1 text-xs text-destructive",children:g.webhookLastError}),g.keyFingerprint&&(0,t.jsx)("p",{className:"mt-1 break-all font-mono text-xs",children:g.keyFingerprint})]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap justify-end gap-2 border-t pt-4",children:[(0,t.jsx)(h.ConfirmationDialog,{actionLabel:e("remove"),cancelLabel:s("cancel"),description:e("confirmRemoveDescription"),onConfirm:ea,title:e("confirmRemove"),trigger:(0,t.jsxs)(S.Button,{disabled:O||!g?.configured,type:"button",variant:"ghost",children:[(0,t.jsx)(c.Trash2,{}),e("remove")]})}),(0,t.jsxs)(S.Button,{disabled:O||!g?.configured,onClick:()=>void et(),type:"button",variant:"outline",children:[(0,t.jsx)(d,{}),e("test")]}),(0,t.jsxs)(S.Button,{disabled:O,type:"submit",children:[O?(0,t.jsx)(N.Spinner,{}):T&&g?.configured?(0,t.jsx)(i.RotateCw,{}):(0,t.jsx)(l.Save,{}),T&&g?.configured?e("rotate"):e("save")]})]})]})]})})})}function J(){let e=(0,p.useTranslations)("githubSettings"),s=(0,p.useTranslations)("common"),[r,i]=(0,x.useState)(null),[o,u]=(0,x.useState)(""),[m,g]=(0,x.useState)(60),[f,w]=(0,x.useState)(null),[I,A]=(0,x.useState)(!0),[E,T]=(0,x.useState)(!1),[L,P]=(0,x.useState)(null),[R,H]=(0,x.useState)(null),K=e=>{i(e),u(""),g(e.actionsNotificationPollIntervalSeconds)},q=(0,x.useCallback)(async()=>{try{let e=await (0,k.controlPlaneRequest)(`query GitHubSettings { githubSettings { ${B} } }`);K(e.githubSettings)}catch(e){P(e instanceof Error?e.message:String(e))}finally{A(!1)}},[]);(0,x.useEffect)(()=>{let e=window.setTimeout(()=>void q(),0);return()=>window.clearTimeout(e)},[q]);let $=async t=>{t.preventDefault(),T(!0);try{let t=await (0,k.controlPlaneRequest)(`mutation SaveGitHubSettings($input: SaveGitHubSettingsInput!) {
25
+ }`,{editorVariant:a}),u(e("saved")),h(null)}catch(e){h(e instanceof Error?e.message:String(e)),u(null)}finally{c(!1)}};return(0,t.jsx)(b.Card,{children:(0,t.jsxs)(b.CardContent,{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(s.Code2,{className:"size-5"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"font-semibold",children:e("title")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e("description")})]})]}),p&&(0,t.jsx)(j.Alert,{variant:"destructive",children:(0,t.jsx)(j.AlertDescription,{children:p})}),d&&(0,t.jsx)(j.Alert,{children:(0,t.jsx)(j.AlertDescription,{children:d})}),r?(0,t.jsxs)("p",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(N.Spinner,{})," ",e("loading")]}):(0,t.jsxs)("div",{className:"flex flex-wrap items-end gap-3",children:[(0,t.jsxs)("div",{className:"min-w-64 flex-1 space-y-2",children:[(0,t.jsx)(y.Label,{htmlFor:"editor-variant",children:e("label")}),(0,t.jsxs)(K.Select,{onValueChange:e=>n(e),value:a,children:[(0,t.jsx)(K.SelectTrigger,{className:"w-full",id:"editor-variant",children:(0,t.jsx)(K.SelectValue,{})}),(0,t.jsxs)(K.SelectContent,{children:[(0,t.jsx)(K.SelectItem,{value:"CODE",children:e("code")}),(0,t.jsx)(K.SelectItem,{value:"CODE_INSIDERS",children:e("insiders")}),(0,t.jsx)(K.SelectItem,{value:"NONE",children:e("none")})]})]}),(0,t.jsxs)("div",{className:"space-y-1 text-xs text-muted-foreground",children:[(0,t.jsx)("p",{children:e("setupHelp")}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-x-3 gap-y-1",children:[(0,t.jsx)(D,{href:"https://code.visualstudio.com/download",children:e("downloadCode")}),(0,t.jsx)(D,{href:"https://code.visualstudio.com/insiders/",children:e("downloadInsiders")})]})]})]}),(0,t.jsxs)(S.Button,{disabled:o,onClick:()=>void g(),children:[o?(0,t.jsx)(N.Spinner,{}):(0,t.jsx)(l.Save,{})," ",e("save")]})]})]})})}function O(){let e=(0,m.useTranslations)("githubAppSettings"),s=(0,m.useTranslations)("common"),n=(0,p.useLocale)(),[g,f]=(0,x.useState)(null),[w,I]=(0,x.useState)(""),[A,E]=(0,x.useState)(""),[T,R]=(0,x.useState)(""),[H,K]=(0,x.useState)(""),[q,$]=(0,x.useState)(""),[F,G]=(0,x.useState)(!1),[V,B]=(0,x.useState)(!1),[_,z]=(0,x.useState)(!0),[O,J]=(0,x.useState)(!1),[W,M]=(0,x.useState)(null),[Y,Z]=(0,x.useState)(null),X=(0,x.useCallback)(e=>{f(e),I(e.appId??""),E(e.installationId??""),R(""),$(t=>e.webhookUrl??t),G(!!e.webhookUrl)},[]),Q=(0,x.useCallback)(async()=>{try{let e=await (0,k.controlPlaneRequest)(`query GitHubAppSettings { githubAppSettings { ${U} } }`);X(e.githubAppSettings)}catch(e){M(e instanceof Error?e.message:String(e))}finally{z(!1)}},[X]);(0,x.useEffect)(()=>{let e=window.setTimeout(()=>{K(window.location.origin),$(`${window.location.origin.replace(/\/$/,"")}/api/public/github/webhook`),Q()},0);return()=>window.clearTimeout(e)},[Q]);let ee=async t=>{t.preventDefault(),J(!0);try{let t=await (0,k.controlPlaneRequest)(`mutation SaveGitHubAppSettings($input: SaveGitHubAppSettingsInput!) {
26
+ saveGitHubAppSettings(input: $input) { ${U} }
27
+ }`,{input:{appId:w.trim(),installationId:A.trim(),privateKey:T||null,...F?{webhookUrl:q.trim()}:{}}});X(t.saveGitHubAppSettings),M(null),Z(T&&g?.configured?e("rotated"):e("saved"))}catch(e){M(e instanceof Error?e.message:String(e)),Z(null)}finally{J(!1)}},et=async()=>{J(!0);try{let t=await (0,k.controlPlaneRequest)(`mutation TestGitHubAppConnection {
28
+ testGitHubAppConnection { ${U} }
29
+ }`);X(t.testGitHubAppConnection),M(null),Z(e("connectionSucceeded"))}catch(e){M(e instanceof Error?e.message:String(e)),Z(null)}finally{J(!1)}},ea=async()=>{J(!0);try{let t=await (0,k.controlPlaneRequest)(`mutation ClearGitHubAppCredentials {
30
+ clearGitHubAppCredentials { ${U} }
31
+ }`);X(t.clearGitHubAppCredentials),M(null),Z(e("removed"))}catch(e){M(e instanceof Error?e.message:String(e)),Z(null)}finally{J(!1)}},es=async t=>{if(!t.name.toLowerCase().endsWith(".pem")){M(e("pemFileInvalid")),Z(null);return}try{let a=await t.text();if(!/-----BEGIN (?:RSA )?PRIVATE KEY-----/.test(a)||!/-----END (?:RSA )?PRIVATE KEY-----/.test(a)){M(e("pemFileInvalid")),Z(null);return}R(a),M(null),Z(e("pemFileLoaded",{filename:t.name}))}catch{M(e("pemFileReadError")),Z(null)}};return(0,t.jsx)("form",{onSubmit:ee,children:(0,t.jsx)(b.Card,{children:(0,t.jsxs)(b.CardContent,{className:"space-y-5",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(o.ShieldCheck,{className:"size-5"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"font-semibold",children:e("title")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e("description")})]})]}),(0,t.jsx)(v.Badge,{className:g?.configured?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":void 0,children:g?.configured?e("verified"):e("notConfigured")})]}),_?(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(N.Spinner,{}),e("loading")]}):(0,t.jsxs)(t.Fragment,{children:[W&&(0,t.jsx)(j.Alert,{variant:"destructive",children:(0,t.jsx)(j.AlertDescription,{children:W})}),Y&&(0,t.jsxs)(j.Alert,{className:"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300",children:[(0,t.jsx)(a.CheckCircle2,{}),(0,t.jsx)(j.AlertDescription,{className:"text-current",children:Y})]}),(0,t.jsxs)("div",{className:"rounded-lg border bg-muted/30 p-4",children:[(0,t.jsx)("h3",{className:"font-medium",children:e("setupTitle")}),(0,t.jsxs)("ol",{className:"mt-3 list-decimal space-y-3 pl-5 text-sm text-muted-foreground",children:[(0,t.jsxs)("li",{children:[e("stepRegister")," ",(0,t.jsx)(D,{href:"https://github.com/settings/apps/new",children:e("registerLink")})]}),(0,t.jsxs)("li",{children:[e("stepHomepage")," ",(0,t.jsx)("code",{className:"break-all rounded bg-muted px-1 py-0.5 text-xs text-foreground",children:H}),e("stepHomepageSuffix")]}),(0,t.jsx)("li",{children:e("stepPermissions")}),(0,t.jsxs)("li",{children:[e("stepWebhook")," ",(0,t.jsx)("code",{className:"break-all rounded bg-muted px-1 py-0.5 text-xs text-foreground",children:q}),e("stepWebhookSuffix")]}),(0,t.jsx)("li",{children:e("stepInstall")}),(0,t.jsxs)("li",{children:[e("stepInstallationId")," ",(0,t.jsx)("code",{className:"break-all rounded bg-muted px-1 py-0.5 text-xs text-foreground",children:"https://github.com/organizations/<Organization-name>/settings/installations/<ID>"}),e("stepInstallationIdSuffix")]}),(0,t.jsx)("li",{children:e("stepCredentials")})]})]}),(0,t.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(y.Label,{className:"mb-1.5 block text-sm font-medium",htmlFor:"github-app-id",children:e("appId")}),(0,t.jsx)(C.Input,{id:"github-app-id",inputMode:"numeric",onChange:e=>I(e.target.value),placeholder:e("appIdPlaceholder"),required:!0,value:w})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(y.Label,{className:"mb-1.5 block text-sm font-medium",htmlFor:"github-installation-id",children:e("installationId")}),(0,t.jsx)(C.Input,{id:"github-installation-id",inputMode:"numeric",onChange:e=>E(e.target.value),placeholder:e("installationIdPlaceholder"),required:!0,value:A})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(y.Label,{className:"mb-1.5 block text-sm font-medium",htmlFor:"github-app-webhook-url",children:e("webhookUrl")}),(0,t.jsx)(C.Input,{id:"github-app-webhook-url",onChange:e=>{$(e.target.value),G(!0)},placeholder:"https://example.com/api/public/github/webhook",required:!0,type:"url",value:q}),(0,t.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:e("webhookUrlHelp")})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(y.Label,{className:"mb-1.5 block text-sm font-medium",htmlFor:"github-app-private-key",children:e("privateKey")}),(0,t.jsxs)("div",{"aria-label":e("privateKeyDropZone"),className:`rounded-md border border-dashed p-2 transition-colors ${V?"border-primary bg-primary/5":"border-input"}`,onDragEnter:e=>{e.preventDefault(),B(!0)},onDragLeave:()=>B(!1),onDragOver:e=>{e.preventDefault(),e.dataTransfer.dropEffect="copy",B(!0)},onDrop:e=>{e.preventDefault(),B(!1);let t=e.dataTransfer.files.item(0);t&&es(t)},role:"group",children:[(0,t.jsxs)("p",{className:"mb-2 flex items-center gap-1.5 text-xs text-muted-foreground",children:[(0,t.jsx)(u.Upload,{className:"size-3.5"}),e("pemDropHint")]}),(0,t.jsx)(L.Textarea,{autoComplete:"new-password",className:"min-h-40 border-0 bg-transparent font-mono text-xs shadow-none focus-visible:ring-0 dark:bg-transparent",id:"github-app-private-key",onChange:e=>R(e.target.value),placeholder:g?.privateKeyConfigured?e("privateKeyPlaceholderConfigured"):e("privateKeyPlaceholder"),required:!g?.privateKeyConfigured,value:T})]}),(0,t.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:g?.privateKeyConfigured?e("privateKeyKeepHelp"):e("privateKeyHelp")})]}),g?.configured&&(0,t.jsxs)(j.Alert,{className:"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300",children:[(0,t.jsx)(r.KeyRound,{}),(0,t.jsxs)(j.AlertDescription,{className:"text-emerald-700 dark:text-emerald-300",children:[(0,t.jsx)("p",{className:"font-medium",children:e("connectedAs",{app:g.appSlug??"—",account:g.accountLogin??"—"})}),(0,t.jsx)("p",{className:"mt-1 text-xs",children:e("connectionDetails",{permission:g.actionsPermission??"—",selection:g.repositorySelection??"—"})}),g.verifiedAt&&(0,t.jsx)("p",{className:"mt-1 text-xs",children:e("lastVerified",{date:(0,P.formatDateValue)(g.verifiedAt,"short",{locale:n})})}),(0,t.jsx)("p",{className:"mt-1 text-xs",children:g.webhookConfigured?e("webhookConfigured",{url:g.webhookUrl??"—"}):g.webhookUrl?e("webhookNeedsSetup"):e("webhookUnavailable")}),g.webhookLastReceivedAt&&(0,t.jsx)("p",{className:"mt-1 text-xs",children:e("lastWebhook",{date:(0,P.formatDateValue)(g.webhookLastReceivedAt,"short",{locale:n}),outcome:g.webhookLastOutcome??"—"})}),g.webhookLastError&&(0,t.jsx)("p",{className:"mt-1 text-xs text-destructive",children:g.webhookLastError}),g.keyFingerprint&&(0,t.jsx)("p",{className:"mt-1 break-all font-mono text-xs",children:g.keyFingerprint})]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap justify-end gap-2 border-t pt-4",children:[(0,t.jsx)(h.ConfirmationDialog,{actionLabel:e("remove"),cancelLabel:s("cancel"),description:e("confirmRemoveDescription"),onConfirm:ea,title:e("confirmRemove"),trigger:(0,t.jsxs)(S.Button,{disabled:O||!g?.configured,type:"button",variant:"ghost",children:[(0,t.jsx)(c.Trash2,{}),e("remove")]})}),(0,t.jsxs)(S.Button,{disabled:O||!g?.configured,onClick:()=>void et(),type:"button",variant:"outline",children:[(0,t.jsx)(d.Unplug,{}),e("test")]}),(0,t.jsxs)(S.Button,{disabled:O,type:"submit",children:[O?(0,t.jsx)(N.Spinner,{}):T&&g?.configured?(0,t.jsx)(i.RotateCw,{}):(0,t.jsx)(l.Save,{}),T&&g?.configured?e("rotate"):e("save")]})]})]})]})})})}function J(){let e=(0,m.useTranslations)("githubSettings"),s=(0,m.useTranslations)("common"),[r,i]=(0,x.useState)(null),[o,u]=(0,x.useState)(""),[p,g]=(0,x.useState)(60),[f,w]=(0,x.useState)(null),[I,A]=(0,x.useState)(!0),[E,T]=(0,x.useState)(!1),[L,P]=(0,x.useState)(null),[R,H]=(0,x.useState)(null),K=e=>{i(e),u(""),g(e.actionsNotificationPollIntervalSeconds)},q=(0,x.useCallback)(async()=>{try{let e=await (0,k.controlPlaneRequest)(`query GitHubSettings { githubSettings { ${B} } }`);K(e.githubSettings)}catch(e){P(e instanceof Error?e.message:String(e))}finally{A(!1)}},[]);(0,x.useEffect)(()=>{let e=window.setTimeout(()=>void q(),0);return()=>window.clearTimeout(e)},[q]);let $=async t=>{t.preventDefault(),T(!0);try{let t=await (0,k.controlPlaneRequest)(`mutation SaveGitHubSettings($input: SaveGitHubSettingsInput!) {
32
32
  saveGitHubSettings(input: $input) { ${B} }
33
- }`,{input:{apiToken:o||null,actionsNotificationPollIntervalSeconds:m}});K(t.saveGitHubSettings),w(null),P(null),H(e("saved"))}catch(e){P(e instanceof Error?e.message:String(e)),H(null)}finally{T(!1)}},F=async()=>{T(!0);try{let t=await (0,k.controlPlaneRequest)("mutation TestGitHubConnection { testGitHubConnection { login name avatarUrl url } }");w(t.testGitHubConnection),P(null),H(e("connectionSucceeded"))}catch(e){w(null),P(e instanceof Error?e.message:String(e)),H(null)}finally{T(!1)}},G=async()=>{T(!0);try{let t=await (0,k.controlPlaneRequest)(`mutation ClearGitHubCredentials {
33
+ }`,{input:{apiToken:o||null,actionsNotificationPollIntervalSeconds:p}});K(t.saveGitHubSettings),w(null),P(null),H(e("saved"))}catch(e){P(e instanceof Error?e.message:String(e)),H(null)}finally{T(!1)}},F=async()=>{T(!0);try{let t=await (0,k.controlPlaneRequest)("mutation TestGitHubConnection { testGitHubConnection { login name avatarUrl url } }");w(t.testGitHubConnection),P(null),H(e("connectionSucceeded"))}catch(e){w(null),P(e instanceof Error?e.message:String(e)),H(null)}finally{T(!1)}},G=async()=>{T(!0);try{let t=await (0,k.controlPlaneRequest)(`mutation ClearGitHubCredentials {
34
34
  clearGitHubCredentials { ${B} }
35
- }`);K(t.clearGitHubCredentials),w(null),P(null),H(e("removed"))}catch(e){P(e instanceof Error?e.message:String(e)),H(null)}finally{T(!1)}};return(0,t.jsx)("form",{onSubmit:$,children:(0,t.jsx)(b.Card,{children:(0,t.jsxs)(b.CardContent,{className:"space-y-5",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(n.GitPullRequest,{className:"size-5"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"font-semibold",children:e("title")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e("description")})]})]}),(0,t.jsx)(v.Badge,{className:r?.tokenConfigured?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":void 0,children:r?.tokenConfigured?e("configured"):e("notConfigured")})]}),I?(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(N.Spinner,{}),e("loading")]}):(0,t.jsxs)(t.Fragment,{children:[L&&(0,t.jsx)(j.Alert,{variant:"destructive",children:(0,t.jsx)(j.AlertDescription,{children:L})}),R&&(0,t.jsxs)(j.Alert,{className:"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300",children:[(0,t.jsx)(a.CheckCircle2,{}),(0,t.jsx)(j.AlertDescription,{className:"text-current",children:R})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(y.Label,{className:"mb-1.5 block text-sm font-medium",htmlFor:"github-token",children:e("apiToken")}),(0,t.jsx)(C.Input,{autoComplete:"new-password",id:"github-token",onChange:e=>u(e.target.value),placeholder:r?.tokenConfigured?e("tokenPlaceholderConfigured"):e("tokenPlaceholder"),required:!r?.tokenConfigured,type:"password",value:o}),(0,t.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:r?.tokenConfigured?e("tokenKeepHelp"):e("tokenHelp")}),(0,t.jsxs)("p",{className:"mt-1 text-xs text-muted-foreground",children:[e("tokenAcquireHelp")," ",(0,t.jsx)(D,{href:"https://github.com/settings/personal-access-tokens/new",children:e("createToken")})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(y.Label,{className:"mb-1.5 block text-sm font-medium",htmlFor:"github-actions-poll-interval",children:e("pollInterval")}),(0,t.jsx)(C.Input,{id:"github-actions-poll-interval",max:3600,min:30,onChange:e=>g(Number(e.target.value)),required:!0,type:"number",value:m}),(0,t.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:e("pollIntervalHelp")})]}),f&&(0,t.jsx)(j.Alert,{className:"bg-muted",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-medium",children:f.name??f.login}),(0,t.jsxs)("a",{className:"text-sm text-primary hover:underline",href:f.url,rel:"noreferrer",target:"_blank",children:["@",f.login]})]})}),(0,t.jsxs)("div",{className:"flex flex-wrap justify-end gap-2 border-t pt-4",children:[(0,t.jsx)(h.ConfirmationDialog,{actionLabel:e("remove"),cancelLabel:s("cancel"),description:e("confirmRemoveDescription"),onConfirm:G,title:e("confirmRemove"),trigger:(0,t.jsxs)(S.Button,{disabled:E||!r?.tokenConfigured,type:"button",variant:"ghost",children:[(0,t.jsx)(c.Trash2,{}),e("remove")]})}),(0,t.jsxs)(S.Button,{disabled:E||!r?.tokenConfigured,onClick:()=>void F(),type:"button",variant:"outline",children:[(0,t.jsx)(d,{}),e("test")]}),(0,t.jsxs)(S.Button,{disabled:E,type:"submit",children:[E?(0,t.jsx)(N.Spinner,{}):(0,t.jsx)(l.Save,{}),e("save")]})]})]})]})})})}e.s(["SettingsPage",0,function(){let e=(0,p.useTranslations)("settings");return(0,t.jsxs)("section",{className:"mx-auto flex w-full max-w-[1500px] flex-col gap-6",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",children:e("title")}),(0,t.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:e("description")})]}),(0,t.jsx)(V.DatabaseEncryptionAlert,{}),(0,t.jsxs)("div",{className:"grid items-start gap-6 xl:grid-cols-2",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-8",children:[(0,t.jsx)(U,{description:e("developmentGroupDescription"),id:"settings-development",title:e("developmentGroup"),children:(0,t.jsx)(z,{})}),(0,t.jsxs)(U,{description:e("appleGroupDescription"),id:"settings-apple",title:e("appleGroup"),children:[(0,t.jsx)(H,{}),(0,t.jsx)($,{})]})]}),(0,t.jsx)("div",{className:"min-w-0",children:(0,t.jsxs)(U,{description:e("integrationsGroupDescription"),id:"settings-integrations",title:e("integrationsGroup"),children:[(0,t.jsx)(G,{embedded:!0}),(0,t.jsx)(J,{}),(0,t.jsx)(O,{}),(0,t.jsx)(I,{})]})})]})]})}],534710)}]);
35
+ }`);K(t.clearGitHubCredentials),w(null),P(null),H(e("removed"))}catch(e){P(e instanceof Error?e.message:String(e)),H(null)}finally{T(!1)}};return(0,t.jsx)("form",{onSubmit:$,children:(0,t.jsx)(b.Card,{children:(0,t.jsxs)(b.CardContent,{className:"space-y-5",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(n.GitPullRequest,{className:"size-5"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"font-semibold",children:e("title")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e("description")})]})]}),(0,t.jsx)(v.Badge,{className:r?.tokenConfigured?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":void 0,children:r?.tokenConfigured?e("configured"):e("notConfigured")})]}),I?(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(N.Spinner,{}),e("loading")]}):(0,t.jsxs)(t.Fragment,{children:[L&&(0,t.jsx)(j.Alert,{variant:"destructive",children:(0,t.jsx)(j.AlertDescription,{children:L})}),R&&(0,t.jsxs)(j.Alert,{className:"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300",children:[(0,t.jsx)(a.CheckCircle2,{}),(0,t.jsx)(j.AlertDescription,{className:"text-current",children:R})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(y.Label,{className:"mb-1.5 block text-sm font-medium",htmlFor:"github-token",children:e("apiToken")}),(0,t.jsx)(C.Input,{autoComplete:"new-password",id:"github-token",onChange:e=>u(e.target.value),placeholder:r?.tokenConfigured?e("tokenPlaceholderConfigured"):e("tokenPlaceholder"),required:!r?.tokenConfigured,type:"password",value:o}),(0,t.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:r?.tokenConfigured?e("tokenKeepHelp"):e("tokenHelp")}),(0,t.jsxs)("p",{className:"mt-1 text-xs text-muted-foreground",children:[e("tokenAcquireHelp")," ",(0,t.jsx)(D,{href:"https://github.com/settings/personal-access-tokens/new",children:e("createToken")})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(y.Label,{className:"mb-1.5 block text-sm font-medium",htmlFor:"github-actions-poll-interval",children:e("pollInterval")}),(0,t.jsx)(C.Input,{id:"github-actions-poll-interval",max:3600,min:30,onChange:e=>g(Number(e.target.value)),required:!0,type:"number",value:p}),(0,t.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:e("pollIntervalHelp")})]}),f&&(0,t.jsx)(j.Alert,{className:"bg-muted",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-medium",children:f.name??f.login}),(0,t.jsxs)("a",{className:"text-sm text-primary hover:underline",href:f.url,rel:"noreferrer",target:"_blank",children:["@",f.login]})]})}),(0,t.jsxs)("div",{className:"flex flex-wrap justify-end gap-2 border-t pt-4",children:[(0,t.jsx)(h.ConfirmationDialog,{actionLabel:e("remove"),cancelLabel:s("cancel"),description:e("confirmRemoveDescription"),onConfirm:G,title:e("confirmRemove"),trigger:(0,t.jsxs)(S.Button,{disabled:E||!r?.tokenConfigured,type:"button",variant:"ghost",children:[(0,t.jsx)(c.Trash2,{}),e("remove")]})}),(0,t.jsxs)(S.Button,{disabled:E||!r?.tokenConfigured,onClick:()=>void F(),type:"button",variant:"outline",children:[(0,t.jsx)(d.Unplug,{}),e("test")]}),(0,t.jsxs)(S.Button,{disabled:E,type:"submit",children:[E?(0,t.jsx)(N.Spinner,{}):(0,t.jsx)(l.Save,{}),e("save")]})]})]})]})})})}e.s(["SettingsPage",0,function(){let e=(0,m.useTranslations)("settings");return(0,t.jsxs)("section",{className:"mx-auto flex w-full max-w-[1500px] flex-col gap-6",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",children:e("title")}),(0,t.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:e("description")})]}),(0,t.jsx)(V.DatabaseEncryptionAlert,{}),(0,t.jsxs)("div",{className:"grid items-start gap-6 xl:grid-cols-2",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-8",children:[(0,t.jsx)(_,{description:e("developmentGroupDescription"),id:"settings-development",title:e("developmentGroup"),children:(0,t.jsx)(z,{})}),(0,t.jsxs)(_,{description:e("appleGroupDescription"),id:"settings-apple",title:e("appleGroup"),children:[(0,t.jsx)(H,{}),(0,t.jsx)($,{})]})]}),(0,t.jsx)("div",{className:"min-w-0",children:(0,t.jsxs)(_,{description:e("integrationsGroupDescription"),id:"settings-integrations",title:e("integrationsGroup"),children:[(0,t.jsx)(G,{embedded:!0}),(0,t.jsx)(J,{}),(0,t.jsx)(O,{}),(0,t.jsx)(I,{})]})})]})]})}],534710)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,929592,e=>{"use strict";var t=e.i(843476),r=e.i(225913),a=e.i(975157);let o=(0,r.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:r,...n}){return(0,t.jsx)("div",{"data-slot":"alert",role:"alert",className:(0,a.cn)(o({variant:r}),e),...n})},"AlertDescription",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-description",className:(0,a.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),...r})},"AlertTitle",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-title",className:(0,a.cn)("font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground",e),...r})}])},758379,e=>{"use strict";let t=(0,e.i(456420).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["default",0,t])},987968,e=>{"use strict";var t=e.i(843476),r=e.i(975157),a=e.i(758379),a=a;e.s(["Spinner",0,function({className:e,...o}){return(0,t.jsx)(a.default,{"data-slot":"spinner",role:"status","aria-label":"Loading",className:(0,r.cn)("size-4 animate-spin",e),...o})}],987968)},515288,e=>{"use strict";var t=e.i(843476),r=e.i(975157);e.s(["Card",0,function({className:e,size:a="default",...o}){return(0,t.jsx)("div",{"data-slot":"card","data-size":a,className:(0,r.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),...o})},"CardAction",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-action",className:(0,r.cn)("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...a})},"CardContent",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,r.cn)("px-(--card-spacing)",e),...a})},"CardDescription",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,r.cn)("text-sm text-muted-foreground",e),...a})},"CardFooter",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-footer",className:(0,r.cn)("flex items-center rounded-b-xl border-t bg-muted/50 p-(--card-spacing)",e),...a})},"CardHeader",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,r.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),...a})},"CardTitle",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,r.cn)("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e),...a})}])},487486,e=>{"use strict";var t=e.i(843476),r=e.i(225913),a=e.i(586011),o=e.i(975157);let n=(0,r.cva)("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",success:"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300 [a]:hover:bg-emerald-500/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});e.s(["Badge",0,function({className:e,variant:r="default",asChild:i=!1,...l}){let s=i?a.Slot.Root:"span";return(0,t.jsx)(s,{className:(0,o.cn)(n({variant:r}),e),"data-slot":"badge","data-variant":r,...l})}])},784774,e=>{"use strict";var t=e.i(843476),r=e.i(975157);e.s(["Table",0,function({className:e,...a}){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,r.cn)("w-full caption-bottom text-sm",e),...a})})},"TableBody",0,function({className:e,...a}){return(0,t.jsx)("tbody",{"data-slot":"table-body",className:(0,r.cn)("[&_tr:last-child]:border-0",e),...a})},"TableCell",0,function({className:e,...a}){return(0,t.jsx)("td",{"data-slot":"table-cell",className:(0,r.cn)("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",e),...a})},"TableFooter",0,function({className:e,...a}){return(0,t.jsx)("tfoot",{"data-slot":"table-footer",className:(0,r.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...a})},"TableHead",0,function({className:e,...a}){return(0,t.jsx)("th",{"data-slot":"table-head",className:(0,r.cn)("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",e),...a})},"TableHeader",0,function({className:e,...a}){return(0,t.jsx)("thead",{"data-slot":"table-header",className:(0,r.cn)("[&_tr]:border-b",e),...a})},"TableRow",0,function({className:e,...a}){return(0,t.jsx)("tr",{"data-slot":"table-row",className:(0,r.cn)("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",e),...a})}])},110204,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(248425),o=Object.defineProperty,n=r.forwardRef(o(function(e,r){return(0,t.jsx)(a.Primitive.label,{...e,ref:r,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})},"name",{value:"Label",configurable:!0}));e.s(["Label",0,n,"Root",0,n],973741);var i=e.i(973741),i=i,l=e.i(975157);e.s(["Label",0,function({className:e,...r}){return(0,t.jsx)(i.Root,{"data-slot":"label",className:(0,l.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...r})}],110204)},776639,e=>{"use strict";var t=e.i(843476),r=e.i(560964),a=e.i(964053),o=e.i(519455),n=e.i(975157);function i({...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,n.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:s,showCloseButton:d=!0,...u}){return(0,t.jsxs)(i,{children:[(0,t.jsx)(l,{}),(0,t.jsxs)(a.Dialog.Content,{className:(0,n.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",...u,children:[s,d&&(0,t.jsx)(a.Dialog.Close,{asChild:!0,"data-slot":"dialog-close",children:(0,t.jsxs)(o.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,n.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:i,...l}){return(0,t.jsxs)("div",{className:(0,n.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:[i,r&&(0,t.jsx)(a.Dialog.Close,{asChild:!0,children:(0,t.jsx)(o.Button,{variant:"outline",children:"Close"})})]})},"DialogHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{className:(0,n.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,n.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})}])},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])},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 r=document.execCommand("copy");if(t.remove(),!r)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)}`}])},716327,e=>{"use strict";var t=e.i(26495);e.s(["ChevronDown",()=>t.default])},340953,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(30030),o=e.i(820783),n=e.i(326999),i=e.i(981140),l=Object.defineProperty,s=(e,t)=>l(e,"name",{value:t,configurable:!0}),[d,u]=(0,a.createContextScope)("AlertDialog",[n.createDialogScope]),c=(0,n.createDialogScope)(),p=s(e=>{let{__scopeAlertDialog:r,...a}=e,o=c(r);return(0,t.jsx)(n.Root,{...o,...a,modal:!0})},"AlertDialog"),f=r.forwardRef(s(function(e,r){let{__scopeAlertDialog:a,...o}=e,i=c(a);return(0,t.jsx)(n.Trigger,{...i,...o,ref:r})},"AlertDialogTrigger")),g=s(e=>{let{__scopeAlertDialog:r,...a}=e,o=c(r);return(0,t.jsx)(n.Portal,{...o,...a})},"AlertDialogPortal"),m=r.forwardRef(s(function(e,r){let{__scopeAlertDialog:a,...o}=e,i=c(a);return(0,t.jsx)(n.Overlay,{...i,...o,ref:r})},"AlertDialogOverlay")),[v,h]=d("AlertDialogContent"),x=r.forwardRef(s(function(e,a){let{__scopeAlertDialog:l,children:s,...d}=e,u=c(l),p=r.useRef(null),f=(0,o.useComposedRefs)(a,p),g=r.useRef(null);return(0,t.jsx)(v,{scope:l,cancelRef:g,children:(0,t.jsx)(n.Content,{role:"alertdialog",...u,...d,ref:f,onOpenAutoFocus:(0,i.composeEventHandlers)(d.onOpenAutoFocus,e=>{e.preventDefault(),g.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:s})})},"AlertDialogContent")),b=r.forwardRef(s(function(e,r){let{__scopeAlertDialog:a,...o}=e,i=c(a);return(0,t.jsx)(n.Title,{...i,...o,ref:r})},"AlertDialogTitle")),y=r.forwardRef(s(function(e,r){let{__scopeAlertDialog:a,...o}=e,i=c(a);return(0,t.jsx)(n.Description,{...i,...o,ref:r})},"AlertDialogDescription")),w=r.forwardRef(s(function(e,r){let{__scopeAlertDialog:a,...o}=e,i=c(a);return(0,t.jsx)(n.Close,{...i,...o,ref:r})},"AlertDialogAction")),C=r.forwardRef(s(function(e,r){let{__scopeAlertDialog:a,...i}=e,{cancelRef:l}=h("AlertDialogCancel",a),s=c(a),d=(0,o.useComposedRefs)(r,l);return(0,t.jsx)(n.Close,{...s,...i,ref:d})},"AlertDialogCancel"));e.s(["Action",0,w,"AlertDialog",0,p,"AlertDialogAction",0,w,"AlertDialogCancel",0,C,"AlertDialogContent",0,x,"AlertDialogDescription",0,y,"AlertDialogOverlay",0,m,"AlertDialogPortal",0,g,"AlertDialogTitle",0,b,"AlertDialogTrigger",0,f,"Cancel",0,C,"Content",0,x,"Description",0,y,"Overlay",0,m,"Portal",0,g,"Root",0,p,"Title",0,b,"Trigger",0,f,"createAlertDialogScope",0,u],691162);var j=e.i(691162),j=j,k=e.i(975157),P=e.i(519455);function A({...e}){return(0,t.jsx)(j.Root,{"data-slot":"alert-dialog",...e})}function D({...e}){return(0,t.jsx)(j.Trigger,{"data-slot":"alert-dialog-trigger",...e})}function R({...e}){return(0,t.jsx)(j.Portal,{"data-slot":"alert-dialog-portal",...e})}function E({className:e,...r}){return(0,t.jsx)(j.Overlay,{"data-slot":"alert-dialog-overlay",className:(0,k.cn)("fixed inset-0 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),...r})}function S({className:e,size:r="default",...a}){return(0,t.jsxs)(R,{children:[(0,t.jsx)(E,{}),(0,t.jsx)(j.Content,{"data-slot":"alert-dialog-content","data-size":r,className:(0,k.cn)("group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]: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),...a})]})}function N({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,k.cn)("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",e),...r})}function z({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,k.cn)("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",e),...r})}function I({className:e,...r}){return(0,t.jsx)(j.Title,{"data-slot":"alert-dialog-title",className:(0,k.cn)("font-heading text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",e),...r})}function T({className:e,...r}){return(0,t.jsx)(j.Description,{"data-slot":"alert-dialog-description",className:(0,k.cn)("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...r})}function O({className:e,variant:r="default",size:a="default",...o}){return(0,t.jsx)(P.Button,{variant:r,size:a,asChild:!0,children:(0,t.jsx)(j.Action,{"data-slot":"alert-dialog-action",className:(0,k.cn)(e),...o})})}function M({className:e,variant:r="outline",size:a="default",...o}){return(0,t.jsx)(P.Button,{variant:r,size:a,asChild:!0,children:(0,t.jsx)(j.Cancel,{"data-slot":"alert-dialog-cancel",className:(0,k.cn)(e),...o})})}e.s(["ConfirmationDialog",0,function({actionLabel:e,cancelLabel:r,description:a,onConfirm:o,onOpenChange:n,open:i,title:l,trigger:s}){return(0,t.jsxs)(A,{onOpenChange:n,open:i,children:[s&&(0,t.jsx)(D,{asChild:!0,children:s}),(0,t.jsxs)(S,{children:[(0,t.jsxs)(N,{children:[(0,t.jsx)(I,{children:l}),(0,t.jsx)(T,{children:a})]}),(0,t.jsxs)(z,{children:[(0,t.jsx)(M,{children:r}),(0,t.jsx)(O,{onClick:()=>void o(),variant:"destructive",children:e})]})]})]})}],340953)},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})}])},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)},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)},337822,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(981140),o=e.i(820783),n=e.i(30030),i=e.i(726330),l=e.i(303536),s=e.i(765491),d=e.i(610772),u=e.i(853660),c=e.i(774606),p=e.i(296626),f=e.i(248425),g=e.i(991918),m=e.i(369340),v=e.i(186312),h=e.i(985369),x=Object.defineProperty,b=(e,t)=>x(e,"name",{value:t,configurable:!0}),y="Popover",[w,C]=(0,n.createContextScope)(y,[u.createPopperScope]),j=(0,u.createPopperScope)(),[k,P]=w(y),A=b(e=>{let{__scopePopover:a,children:o,open:n,defaultOpen:i,onOpenChange:l,modal:s=!1}=e,c=j(a),p=r.useRef(null),[f,g]=r.useState(!1),[v,h]=(0,m.useControllableState)({prop:n,defaultProp:i??!1,onChange:l,caller:y});return(0,t.jsx)(u.Root,{...c,children:(0,t.jsx)(k,{scope:a,contentId:(0,d.useId)(),triggerRef:p,open:v,onOpenChange:h,onOpenToggle:r.useCallback(()=>h(e=>!e),[h]),hasCustomAnchor:f,onCustomAnchorAdd:r.useCallback(()=>g(!0),[]),onCustomAnchorRemove:r.useCallback(()=>g(!1),[]),modal:s,children:o})})},"Popover"),D=r.forwardRef(b(function(e,a){let{__scopePopover:o,...n}=e,i=P("PopoverAnchor",o),l=j(o),{onCustomAnchorAdd:s,onCustomAnchorRemove:d}=i;return r.useEffect(()=>(s(),()=>d()),[s,d]),(0,t.jsx)(u.Anchor,{...l,...n,ref:a})},"PopoverAnchor")),R=r.forwardRef(b(function(e,r){let{__scopePopover:n,...i}=e,l=P("PopoverTrigger",n),s=j(n),d=(0,o.useComposedRefs)(r,l.triggerRef),c=(0,t.jsx)(f.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":H(l.open),...i,ref:d,onClick:(0,a.composeEventHandlers)(e.onClick,l.onOpenToggle)});return l.hasCustomAnchor?c:(0,t.jsx)(u.Anchor,{asChild:!0,...s,children:c})},"PopoverTrigger")),E="PopoverPortal",[S,N]=w(E,{forceMount:void 0}),z=b(e=>{let{__scopePopover:r,forceMount:a,children:o,container:n}=e,i=P(E,r);return(0,t.jsx)(S,{scope:r,forceMount:a,children:(0,t.jsx)(p.Presence,{present:a||i.open,children:(0,t.jsx)(c.Portal,{asChild:!0,container:n,children:o})})})},"PopoverPortal"),I="PopoverContent",T=r.forwardRef(b(function(e,r){let a=N(I,e.__scopePopover),{forceMount:o=a.forceMount,...n}=e,i=P(I,e.__scopePopover);return(0,t.jsx)(p.Presence,{present:o||i.open,children:i.modal?(0,t.jsx)(M,{...n,ref:r}):(0,t.jsx)(_,{...n,ref:r})})},"PopoverContent")),O=(0,g.createSlot)("PopoverContent.RemoveScroll"),M=r.forwardRef(b(function(e,n){let i=P(I,e.__scopePopover),l=r.useRef(null),s=(0,o.useComposedRefs)(n,l),d=r.useRef(!1);return r.useEffect(()=>{let e=l.current;if(e)return(0,v.hideOthers)(e)},[]),(0,t.jsx)(h.RemoveScroll,{as:O,allowPinchZoom:!0,children:(0,t.jsx)(F,{...e,ref:s,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,a.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),d.current||i.triggerRef.current?.focus()}),onPointerDownOutside:(0,a.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;d.current=2===t.button||r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,a.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),_=r.forwardRef(b(function(e,a){let o=P(I,e.__scopePopover),n=r.useRef(!1),i=r.useRef(!1);return(0,t.jsx)(F,{...e,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(n.current||o.triggerRef.current?.focus(),t.preventDefault()),n.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let r=t.target;o.triggerRef.current?.contains(r)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})},"PopoverContentNonModal")),F=r.forwardRef(b(function(e,r){let{__scopePopover:a,trapFocus:o,onOpenAutoFocus:n,onCloseAutoFocus:d,disableOutsidePointerEvents:c,onEscapeKeyDown:p,onPointerDownOutside:f,onFocusOutside:g,onInteractOutside:m,...v}=e,h=P(I,a),x=j(a);return(0,l.useFocusGuards)(),(0,t.jsx)(s.FocusScope,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:n,onUnmountAutoFocus:d,children:(0,t.jsx)(i.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:m,onEscapeKeyDown:p,onPointerDownOutside:f,onFocusOutside:g,onDismiss:()=>h.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,t.jsx)(u.Content,{"data-state":H(h.open),role:"dialog",id:h.contentId,...x,...v,ref:r,style:{...v.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})},"PopoverContentImpl")),L=r.forwardRef(b(function(e,r){let{__scopePopover:o,...n}=e,i=P("PopoverClose",o);return(0,t.jsx)(f.Primitive.button,{type:"button",...n,ref:r,onClick:(0,a.composeEventHandlers)(e.onClick,()=>i.onOpenChange(!1))})},"PopoverClose")),V=r.forwardRef(b(function(e,r){let{__scopePopover:a,...o}=e,n=j(a);return(0,t.jsx)(u.Arrow,{...n,...o,ref:r})},"PopoverArrow"));function H(e){return e?"open":"closed"}b(H,"getState"),e.s(["Anchor",0,D,"Arrow",0,V,"Close",0,L,"Content",0,T,"Popover",0,A,"PopoverAnchor",0,D,"PopoverArrow",0,V,"PopoverClose",0,L,"PopoverContent",0,T,"PopoverPortal",0,z,"PopoverTrigger",0,R,"Portal",0,z,"Root",0,A,"Trigger",0,R,"createPopoverScope",0,C],178761);var $=e.i(178761),$=$,B=e.i(975157);e.s(["Popover",0,function({...e}){return(0,t.jsx)($.Root,{"data-slot":"popover",...e})},"PopoverAnchor",0,function({...e}){return(0,t.jsx)($.Anchor,{"data-slot":"popover-anchor",...e})},"PopoverContent",0,function({className:e,align:r="center",sideOffset:a=4,...o}){return(0,t.jsx)($.Portal,{children:(0,t.jsx)($.Content,{"data-slot":"popover-content",align:r,sideOffset:a,className:(0,B.cn)("z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-2.5 rounded-lg bg-popover p-2.5 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden 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),...o})})},"PopoverTrigger",0,function({...e}){return(0,t.jsx)($.Trigger,{"data-slot":"popover-trigger",...e})}],337822)},317056,e=>{"use strict";var t=e.i(843476),r=/[\\\/_+.#"@\[\(\{&]/,a=/[\\\/_+.#"@\[\(\{&]/g,o=/[\s-]/,n=/[\s-]/g;function i(e){return e.toLowerCase().replace(n," ")}var l=e.i(326999),s=e.i(271645),d=e.i(248425),u=e.i(610772),c=e.i(820783),p='[cmdk-group=""]',f='[cmdk-group-items=""]',g='[cmdk-item=""]',m=`${g}:not([aria-disabled="true"])`,v="cmdk-item-select",h="data-value",x=(e,t,l)=>{var s;return s=e,function e(t,i,l,s,d,u,c){if(u===i.length)return d===t.length?1:.99;var p=`${d},${u}`;if(void 0!==c[p])return c[p];for(var f,g,m,v,h=s.charAt(u),x=l.indexOf(h,d),b=0;x>=0;)(f=e(t,i,l,s,x+1,u+1,c))>b&&(x===d?f*=1:r.test(t.charAt(x-1))?(f*=.8,(m=t.slice(d,x-1).match(a))&&d>0&&(f*=Math.pow(.999,m.length))):o.test(t.charAt(x-1))?(f*=.9,(v=t.slice(d,x-1).match(n))&&d>0&&(f*=Math.pow(.999,v.length))):(f*=.17,d>0&&(f*=Math.pow(.999,x-d))),t.charAt(x)!==i.charAt(u)&&(f*=.9999)),(f<.1&&l.charAt(x-1)===s.charAt(u+1)||s.charAt(u+1)===s.charAt(u)&&l.charAt(x-1)!==s.charAt(u))&&.1*(g=e(t,i,l,s,x+1,u+2,c))>f&&(f=.1*g),f>b&&(b=f),x=l.indexOf(h,x+1);return c[p]=b,b}(s=l&&l.length>0?`${s+" "+l.join(" ")}`:s,t,i(s),i(t),0,0,{})},b=s.createContext(void 0),y=s.createContext(void 0),w=s.createContext(void 0),C=s.forwardRef((e,t)=>{let r=z(()=>{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=z(()=>new Set),o=z(()=>new Map),n=z(()=>new Map),i=z(()=>new Set),l=S(e),{label:c,children:w,value:C,onValueChange:j,filter:k,shouldFilter:P,loop:A,disablePointerSelection:D=!1,vimBindings:R=!0,...E}=e,I=(0,u.useId)(),T=(0,u.useId)(),F=(0,u.useId)(),L=s.useRef(null),V=O();N(()=>{if(void 0!==C){let e=C.trim();r.current.value=e,H.emit()}},[C]),N(()=>{V(6,G)},[]);let H=s.useMemo(()=>({subscribe:e=>(i.current.add(e),()=>i.current.delete(e)),snapshot:()=>r.current,setState:(e,t,a)=>{var o,n,i,s;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)q(),K(),V(1,U);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(F);e?e.focus():null==(o=document.getElementById(I))||o.focus()}if(V(7,()=>{var e;r.current.selectedItemId=null==(e=W())?void 0:e.id,H.emit()}),a||V(5,G),(null==(n=l.current)?void 0:n.value)!==void 0){null==(s=(i=l.current).onValueChange)||s.call(i,null!=t?t:"");return}}H.emit()}},emit:()=>{i.current.forEach(e=>e())}}),[]),$=s.useMemo(()=>({value:(e,t,a)=>{var o;t!==(null==(o=n.current.get(e))?void 0:o.value)&&(n.current.set(e,{value:t,keywords:a}),r.current.filtered.items.set(e,B(t,a)),V(2,()=>{K(),H.emit()}))},item:(e,t)=>(a.current.add(e),t&&(o.current.has(t)?o.current.get(t).add(e):o.current.set(t,new Set([e]))),V(3,()=>{q(),K(),r.current.value||U(),H.emit()}),()=>{n.current.delete(e),a.current.delete(e),r.current.filtered.items.delete(e);let t=W();V(4,()=>{q(),(null==t?void 0:t.getAttribute("id"))===e&&U(),H.emit()})}),group:e=>(o.current.has(e)||o.current.set(e,new Set),()=>{n.current.delete(e),o.current.delete(e)}),filter:()=>l.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:I,inputId:F,labelId:T,listInnerRef:L}),[]);function B(e,t){var a,o;let n=null!=(o=null==(a=l.current)?void 0:a.filter)?o:x;return e?n(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=o.current.get(r),n=0;a.forEach(t=>{n=Math.max(e.get(t),n)}),t.push([r,n])});let a=L.current;X().sort((t,r)=>{var a,o;let n=t.getAttribute("id"),i=r.getAttribute("id");return(null!=(a=e.get(i))?a:0)-(null!=(o=e.get(n))?o:0)}).forEach(e=>{let t=e.closest(f);t?t.appendChild(e.parentElement===t?e:e.closest(`${f} > *`)):a.appendChild(e.parentElement===a?e:e.closest(`${f} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let r=null==(t=L.current)?void 0:t.querySelector(`${p}[${h}="${encodeURIComponent(e[0])}"]`);null==r||r.parentElement.appendChild(r)})}function U(){let e=X().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(h);H.setState("value",t||void 0)}function q(){var e,t,i,s;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 o of a.current){let a=B(null!=(t=null==(e=n.current.get(o))?void 0:e.value)?t:"",null!=(s=null==(i=n.current.get(o))?void 0:i.keywords)?s:[]);r.current.filtered.items.set(o,a),a>0&&d++}for(let[e,t]of o.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 G(){var e,t,r;let a=W();a&&((null==(e=a.parentElement)?void 0:e.firstChild)===a&&(null==(r=null==(t=a.closest(p))?void 0:t.querySelector('[cmdk-group-heading=""]'))||r.scrollIntoView({block:"nearest"})),a.scrollIntoView({block:"nearest"}))}function W(){var e;return null==(e=L.current)?void 0:e.querySelector(`${g}[aria-selected="true"]`)}function X(){var e;return Array.from((null==(e=L.current)?void 0:e.querySelectorAll(m))||[])}function Z(e){let t=X()[e];t&&H.setState("value",t.getAttribute(h))}function J(e){var t;let r=W(),a=X(),o=a.findIndex(e=>e===r),n=a[o+e];null!=(t=l.current)&&t.loop&&(n=o+e<0?a[a.length-1]:o+e===a.length?a[0]:a[o+e]),n&&H.setState("value",n.getAttribute(h))}function Q(e){let t=W(),r=null==t?void 0:t.closest(p),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,p):function(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}(r,p))?void 0:r.querySelector(m);a?H.setState("value",a.getAttribute(h)):J(e)}let Y=()=>Z(X().length-1),ee=e=>{e.preventDefault(),e.metaKey?Y():e.altKey?Q(1):J(1)},et=e=>{e.preventDefault(),e.metaKey?Z(0):e.altKey?Q(-1):J(-1)};return s.createElement(d.Primitive.div,{ref:t,tabIndex:-1,...E,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=E.onKeyDown)||t.call(E,e);let r=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||r))switch(e.key){case"n":case"j":R&&e.ctrlKey&&ee(e);break;case"ArrowDown":ee(e);break;case"p":case"k":R&&e.ctrlKey&&et(e);break;case"ArrowUp":et(e);break;case"Home":e.preventDefault(),Z(0);break;case"End":e.preventDefault(),Y();break;case"Enter":{e.preventDefault();let t=W();if(t){let e=new Event(v);t.dispatchEvent(e)}}}}},s.createElement("label",{"cmdk-label":"",htmlFor:$.inputId,id:$.labelId,style:_},c),M(e,e=>s.createElement(y.Provider,{value:H},s.createElement(b.Provider,{value:$},e))))}),j=s.forwardRef((e,t)=>{var r,a;let o=(0,u.useId)(),n=s.useRef(null),i=s.useContext(w),l=s.useContext(b),p=S(e),f=null!=(a=null==(r=p.current)?void 0:r.forceMount)?a:null==i?void 0:i.forceMount;N(()=>{if(!f)return l.item(o,null==i?void 0:i.id)},[f]);let g=T(o,n,[e.value,e.children,n],e.keywords),m=s.useContext(y),h=I(e=>e.value&&e.value===g.current),x=I(e=>!!f||!1===l.filter()||!e.search||e.filtered.items.get(o)>0);function C(){var e,t;j(),null==(t=(e=p.current).onSelect)||t.call(e,g.current)}function j(){m.setState("value",g.current,!0)}if(s.useEffect(()=>{let t=n.current;if(!(!t||e.disabled))return t.addEventListener(v,C),()=>t.removeEventListener(v,C)},[x,e.onSelect,e.disabled]),!x)return null;let{disabled:k,value:P,onSelect:A,forceMount:D,keywords:R,...E}=e;return s.createElement(d.Primitive.div,{ref:(0,c.composeRefs)(n,t),...E,id:o,"cmdk-item":"",role:"option","aria-disabled":!!k,"aria-selected":!!h,"data-disabled":!!k,"data-selected":!!h,onPointerMove:k||l.getDisablePointerSelection()?void 0:j,onClick:k?void 0:C},e.children)}),k=s.forwardRef((e,t)=>{let{heading:r,children:a,forceMount:o,...n}=e,i=(0,u.useId)(),l=s.useRef(null),p=s.useRef(null),f=(0,u.useId)(),g=s.useContext(b),m=I(e=>!!o||!1===g.filter()||!e.search||e.filtered.groups.has(i));N(()=>g.group(i),[]),T(i,l,[e.value,e.heading,p]);let v=s.useMemo(()=>({id:i,forceMount:o}),[o]);return s.createElement(d.Primitive.div,{ref:(0,c.composeRefs)(l,t),...n,"cmdk-group":"",role:"presentation",hidden:!m||void 0},r&&s.createElement("div",{ref:p,"cmdk-group-heading":"","aria-hidden":!0,id:f},r),M(e,e=>s.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?f:void 0},s.createElement(w.Provider,{value:v},e))))}),P=s.forwardRef((e,t)=>{let{alwaysRender:r,...a}=e,o=s.useRef(null),n=I(e=>!e.search);return r||n?s.createElement(d.Primitive.div,{ref:(0,c.composeRefs)(o,t),...a,"cmdk-separator":"",role:"separator"}):null}),A=s.forwardRef((e,t)=>{let{onValueChange:r,...a}=e,o=null!=e.value,n=s.useContext(y),i=I(e=>e.search),l=I(e=>e.selectedItemId),u=s.useContext(b);return s.useEffect(()=>{null!=e.value&&n.setState("search",e.value)},[e.value]),s.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":u.listId,"aria-labelledby":u.labelId,"aria-activedescendant":l,id:u.inputId,type:"text",value:o?e.value:i,onChange:e=>{o||n.setState("search",e.target.value),null==r||r(e.target.value)}})}),D=s.forwardRef((e,t)=>{let{children:r,label:a="Suggestions",...o}=e,n=s.useRef(null),i=s.useRef(null),l=I(e=>e.selectedItemId),u=s.useContext(b);return s.useEffect(()=>{if(i.current&&n.current){let e=i.current,t=n.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)}}},[]),s.createElement(d.Primitive.div,{ref:(0,c.composeRefs)(n,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":l,"aria-label":a,id:u.listId},M(e,e=>s.createElement("div",{ref:(0,c.composeRefs)(i,u.listInnerRef),"cmdk-list-sizer":""},e)))}),R=s.forwardRef((e,t)=>{let{open:r,onOpenChange:a,overlayClassName:o,contentClassName:n,container:i,...d}=e;return s.createElement(l.Root,{open:r,onOpenChange:a},s.createElement(l.Portal,{container:i},s.createElement(l.Overlay,{"cmdk-overlay":"",className:o}),s.createElement(l.Content,{"aria-label":e.label,"cmdk-dialog":"",className:n},s.createElement(C,{ref:t,...d}))))}),E=Object.assign(C,{List:D,Item:j,Input:A,Group:k,Separator:P,Dialog:R,Empty:s.forwardRef((e,t)=>I(e=>0===e.filtered.count)?s.createElement(d.Primitive.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:s.forwardRef((e,t)=>{let{progress:r,children:a,label:o="Loading...",...n}=e;return s.createElement(d.Primitive.div,{ref:t,...n,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},M(e,e=>s.createElement("div",{"aria-hidden":!0},e)))})});function S(e){let t=s.useRef(e);return N(()=>{t.current=e}),t}var N="u"<typeof window?s.useEffect:s.useLayoutEffect;function z(e){let t=s.useRef();return void 0===t.current&&(t.current=e()),t}function I(e){let t=s.useContext(y),r=()=>e(t.snapshot());return s.useSyncExternalStore(t.subscribe,r,r)}function T(e,t,r,a=[]){let o=s.useRef(),n=s.useContext(b);return N(()=>{var i;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():o.current}})(),s=a.map(e=>e.trim());n.value(e,l,s),null==(i=t.current)||i.setAttribute(h,l),o.current=l}),o}var O=()=>{let[e,t]=s.useState(),r=z(()=>new Map);return N(()=>{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&&s.isValidElement(t)?s.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"},F=e.i(975157);e.i(776639);var L=e.i(225913);function V({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"input-group",role:"group",className:(0,F.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})}e.i(519455),e.i(793479),e.i(624687);let H=(0,L.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"}});function $({className:e,align:r="inline-start",...a}){return(0,t.jsx)("div",{role:"group","data-slot":"input-group-addon","data-align":r,className:(0,F.cn)(H({align:r}),e),onClick:e=>{e.target.closest("button")||e.currentTarget.parentElement?.querySelector("input")?.focus()},...a})}(0,L.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"}});var B=e.i(630299),B=B,K=e.i(593698);e.s(["Command",0,function({className:e,...r}){return(0,t.jsx)(E,{"data-slot":"command",className:(0,F.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)(E.Empty,{"data-slot":"command-empty",className:(0,F.cn)("py-6 text-center text-sm",e),...r})},"CommandGroup",0,function({className:e,...r}){return(0,t.jsx)(E.Group,{"data-slot":"command-group",className:(0,F.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)(V,{className:"h-8! rounded-lg! border-input/30 bg-input/30 shadow-none! *:data-[slot=input-group-addon]:pl-2!",children:[(0,t.jsx)(E.Input,{"data-slot":"command-input",className:(0,F.cn)("w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...r}),(0,t.jsx)($,{children:(0,t.jsx)(B.default,{className:"size-4 shrink-0 opacity-50"})})]})})},"CommandItem",0,function({className:e,children:r,...a}){return(0,t.jsxs)(E.Item,{"data-slot":"command-item",className:(0,F.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)(K.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)(E.List,{"data-slot":"command-list",className:(0,F.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)},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])}]);
@@ -1,4 +1,4 @@
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)},730274,e=>{"use strict";let t=(0,e.i(456420).default)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);e.s(["Send",0,t],730274)},808562,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(30030),i=e.i(248425),s=e.i(842727),n=e.i(981140),l=e.i(369340),o=Object.defineProperty,d=a.forwardRef(o(function(e,a){let{pressed:r,defaultPressed:s,onPressedChange:o,...d}=e,[c,u]=(0,l.useControllableState)({prop:r,onChange:o,defaultProp:s??!1,caller:"Toggle"});return(0,t.jsx)(i.Primitive.button,{type:"button","aria-pressed":c,"data-state":c?"on":"off","data-disabled":e.disabled?"":void 0,...d,ref:a,onClick:(0,n.composeEventHandlers)(e.onClick,()=>{e.disabled||u(!c)})})},"name",{value:"Toggle",configurable:!0})),c=e.i(586318),u=Object.defineProperty,p=(e,t)=>u(e,"name",{value:t,configurable:!0}),m="ToggleGroup",[g,h]=(0,r.createContextScope)(m,[s.createRovingFocusGroupScope]),x=(0,s.createRovingFocusGroupScope)(),f=a.forwardRef(p(function(e,a){let{type:r,...i}=e;if("single"===r)return(0,t.jsx)(y,{role:"radiogroup",...i,ref:a});if("multiple"===r)return(0,t.jsx)(j,{role:"toolbar",...i,ref:a});throw Error(`Missing prop \`type\` expected on \`${m}\``)},"ToggleGroup")),[v,b]=g(m),y=a.forwardRef(p(function(e,r){let{value:i,defaultValue:s,onValueChange:n=p(()=>{},"onValueChange"),...o}=e,[d,c]=(0,l.useControllableState)({prop:i,defaultProp:s??"",onChange:n,caller:m});return(0,t.jsx)(v,{scope:e.__scopeToggleGroup,type:"single",value:a.useMemo(()=>d?[d]:[],[d]),onItemActivate:c,onItemDeactivate:a.useCallback(()=>c(""),[c]),children:(0,t.jsx)(R,{...o,ref:r})})},"ToggleGroupImplSingle")),j=a.forwardRef(p(function(e,r){let{value:i,defaultValue:s,onValueChange:n=p(()=>{},"onValueChange"),...o}=e,[d,c]=(0,l.useControllableState)({prop:i,defaultProp:s??[],onChange:n,caller:m}),u=a.useCallback(e=>c((t=[])=>[...t,e]),[c]),g=a.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return(0,t.jsx)(v,{scope:e.__scopeToggleGroup,type:"multiple",value:d,onItemActivate:u,onItemDeactivate:g,children:(0,t.jsx)(R,{...o,ref:r})})},"ToggleGroupImplMultiple")),[w,C]=g(m),R=a.forwardRef(p(function(e,a){let{__scopeToggleGroup:r,disabled:n=!1,rovingFocus:l=!0,orientation:o,dir:d,loop:u=!0,...p}=e,m=x(r),g=(0,c.useDirection)(d),h={dir:g,...p};return(0,t.jsx)(w,{scope:r,rovingFocus:l,disabled:n,children:l?(0,t.jsx)(s.Root,{asChild:!0,...m,orientation:o,dir:g,loop:u,children:(0,t.jsx)(i.Primitive.div,{...h,ref:a})}):(0,t.jsx)(i.Primitive.div,{...h,ref:a})})},"ToggleGroupImpl")),T="ToggleGroupItem",N=a.forwardRef(p(function(e,r){let i=b(T,e.__scopeToggleGroup),n=C(T,e.__scopeToggleGroup),l=x(e.__scopeToggleGroup),o=i.value.includes(e.value),d=n.disabled||e.disabled,c={...e,pressed:o,disabled:d},u=a.useRef(null);return n.rovingFocus?(0,t.jsx)(s.Item,{asChild:!0,...l,focusable:!d,active:o,ref:u,children:(0,t.jsx)(k,{...c,ref:r})}):(0,t.jsx)(k,{...c,ref:r})},"ToggleGroupItem")),k=a.forwardRef(p(function(e,a){let{__scopeToggleGroup:r,value:i,...s}=e,n=b(T,r),l={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},o="single"===n.type?l:void 0;return(0,t.jsx)(d,{...o,...s,ref:a,onPressedChange:e=>{e?n.onItemActivate(i):n.onItemDeactivate(i)}})},"ToggleGroupItemImpl"));e.s(["Item",0,N,"Root",0,f,"ToggleGroup",0,f,"ToggleGroupItem",0,N,"createToggleGroupScope",0,h],459881);var S=e.i(459881),S=S,I=e.i(975157),E=e.i(225913),z=Object.defineProperty,D=a.forwardRef(z(function(e,a){let{pressed:r,defaultPressed:s,onPressedChange:o,...d}=e,[c,u]=(0,l.useControllableState)({prop:r,onChange:o,defaultProp:s??!1,caller:"Toggle"});return(0,t.jsx)(i.Primitive.button,{type:"button","aria-pressed":c,"data-state":c?"on":"off","data-disabled":e.disabled?"":void 0,...d,ref:a,onClick:(0,n.composeEventHandlers)(e.onClick,()=>{e.disabled||u(!c)})})},"name",{value:"Toggle",configurable:!0}));e.s(["Root",0,D,"Toggle",0,D],864225),e.i(864225);let A=(0,E.cva)("group/toggle inline-flex items-center justify-center gap-1 rounded-lg text-sm font-medium whitespace-nowrap transition-all outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-muted"},size:{default:"h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",sm:"h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 min-w-9 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2"}},defaultVariants:{variant:"default",size:"default"}}),L=a.createContext({size:"default",variant:"default",spacing:2,orientation:"horizontal"});e.s(["ToggleGroup",0,function({className:e,variant:a,size:r,spacing:i=2,orientation:s="horizontal",children:n,...l}){return(0,t.jsx)(S.Root,{"data-slot":"toggle-group","data-variant":a,"data-size":r,"data-spacing":i,"data-orientation":s,style:{"--gap":i},className:(0,I.cn)("group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] rounded-lg data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-vertical:flex-col data-vertical:items-stretch",e),...l,children:(0,t.jsx)(L.Provider,{value:{variant:a,size:r,spacing:i,orientation:s},children:n})})},"ToggleGroupItem",0,function({className:e,children:r,variant:i="default",size:s="default",...n}){let l=a.useContext(L);return(0,t.jsx)(S.Item,{"data-slot":"toggle-group-item","data-variant":l.variant||i,"data-size":l.size||s,"data-spacing":l.spacing,className:(0,I.cn)("shrink-0 group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 focus:z-10 focus-visible:z-10 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-end]:pr-1.5 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-start]:pl-1.5 group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-l-lg group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-lg group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-r-lg group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-lg group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:border-l-0 group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-l group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t",A({variant:l.variant||i,size:l.size||s}),e),...n,children:r})}],808562)},82612,e=>{"use strict";var t=e.i(843476),a=e.i(225913),r=e.i(975157);let i=(0,a.cva)("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4"}},defaultVariants:{variant:"default"}});e.s(["Empty",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"empty",className:(0,r.cn)("flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border-dashed p-6 text-center text-balance",e),...a})},"EmptyDescription",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"empty-description",className:(0,r.cn)("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...a})},"EmptyHeader",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"empty-header",className:(0,r.cn)("flex max-w-sm flex-col items-center gap-2",e),...a})},"EmptyMedia",0,function({className:e,variant:a="default",...s}){return(0,t.jsx)("div",{"data-slot":"empty-icon","data-variant":a,className:(0,r.cn)(i({variant:a,className:e})),...s})},"EmptyTitle",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"empty-title",className:(0,r.cn)("font-heading text-sm font-medium tracking-tight",e),...a})}])},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)}`}])},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)},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)},799676,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(705844),i=e.i(30030),s=e.i(30207),n=e.i(934620),l=e.i(248425),o=Object.defineProperty,d=(e,t)=>o(e,"name",{value:t,configurable:!0}),c="Avatar",[u,p]=(0,i.createContextScope)(c),m=[0,()=>void 0],[g,h]=u(c),x=a.forwardRef(d(function(e,r){let{__scopeAvatar:i,...s}=e,[n,o]=a.useState("idle"),[d,c]=j();return(0,t.jsx)(g,{scope:i,imageLoadingStatus:n,setImageLoadingStatus:o,imageCount:d,setImageCount:c,children:(0,t.jsx)(l.Primitive.span,{...s,ref:r})})},"Avatar")),f=a.forwardRef(d(function(e,r){let{__scopeAvatar:i,src:o,onLoadingStatusChange:d,...c}=e,u=h("AvatarImage",i);w(u.setImageCount);let p=b(o,{referrerPolicy:c.referrerPolicy,crossOrigin:c.crossOrigin,loadingStatus:u.imageLoadingStatus,setLoadingStatus:u.setImageLoadingStatus}),m=(0,s.useCallbackRef)(e=>{d?.(e)}),g=a.useRef(p);return(0,n.useLayoutEffect)(()=>{let e=g.current;g.current=p,p!==e&&m(p)},[p,m]),"loaded"===p?(0,t.jsx)(l.Primitive.img,{...c,ref:r,src:o}):null},"AvatarImage")),v=a.forwardRef(d(function(e,r){let{__scopeAvatar:i,delayMs:s,...n}=e,o=h("AvatarFallback",i),[d,c]=a.useState(void 0===s);return a.useEffect(()=>{if(void 0!==s){let e=window.setTimeout(()=>c(!0),s);return()=>window.clearTimeout(e)}},[s]),d&&"loaded"!==o.imageLoadingStatus?(0,t.jsx)(l.Primitive.span,{...n,ref:r}):null},"AvatarFallback"));function b(e,{loadingStatus:t,setLoadingStatus:a,referrerPolicy:r,crossOrigin:i}){return(0,n.useLayoutEffect)(()=>{if(!e)return void a("error");let t=new window.Image,s=d(e=>{a(y(e.currentTarget))},"handleLoad"),n=d(()=>a("error"),"handleError");return t.addEventListener("load",s),t.addEventListener("error",n),r&&(t.referrerPolicy=r),t.crossOrigin=i??null,t.src=e,a(y(t)),()=>{t.removeEventListener("load",s),t.removeEventListener("error",n),a("idle")}},[e,i,r,a]),t}function y(e){return e.complete?e.naturalWidth>0?"loaded":"error":"loading"}function j(){let e=m;if(r.IS_DEVELOPMENT){let[t]=e=a.useState(0),r=a.useRef(!1);a.useEffect(()=>{t>1&&!r.current&&(r.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 w(e){r.IS_DEVELOPMENT&&a.useEffect(()=>(e(e=>e+1),()=>{e(e=>e-1)}),[e])}d(b,"useImageLoadingStatus"),d(y,"getImageLoadingStatus"),d(j,"useImageCount"),d(w,"useUpdateImageCount"),e.s(["Avatar",0,x,"AvatarFallback",0,v,"AvatarImage",0,f,"Fallback",0,v,"Image",0,f,"Root",0,x,"createAvatarScope",0,p],97456);var C=e.i(97456),C=C,R=e.i(975157);e.s(["Avatar",0,function({className:e,size:a="default",...r}){return(0,t.jsx)(C.Root,{className:(0,R.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":a,"data-slot":"avatar",...r})},"AvatarFallback",0,function({className:e,...a}){return(0,t.jsx)(C.Fallback,{className:(0,R.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",...a})},"AvatarImage",0,function({className:e,...a}){return(0,t.jsx)(C.Image,{className:(0,R.cn)("aspect-square size-full rounded-full object-cover",e),"data-slot":"avatar-image",...a})}],799676)},983913,906197,e=>{"use strict";var t=e.i(843476),a=e.i(563707),r=e.i(271645),i=e.i(519455),s=e.i(317056),n=e.i(225913),l=e.i(586011),o=e.i(975157);e.i(772436);let d=(0,n.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"}});function c({className:e,variant:a="default",size:r="default",asChild:i=!1,...s}){let n=i?l.Slot.Root:"div";return(0,t.jsx)(n,{"data-slot":"item","data-variant":a,"data-size":r,className:(0,o.cn)(d({variant:a,size:r,className:e})),...s})}let u=(0,n.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"}});function p({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"item-content",className:(0,o.cn)("flex flex-1 flex-col gap-1 group-data-[size=xs]/item:gap-0 [&+[data-slot=item-content]]:flex-none",e),...a})}function m({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"item-title",className:(0,o.cn)("line-clamp-1 flex w-fit items-center gap-2 text-sm leading-snug font-medium underline-offset-4",e),...a})}function g({className:e,...a}){return(0,t.jsx)("p",{"data-slot":"item-description",className:(0,o.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),...a})}e.s(["Item",0,c,"ItemActions",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"item-actions",className:(0,o.cn)("flex items-center gap-2",e),...a})},"ItemContent",0,p,"ItemDescription",0,g,"ItemGroup",0,function({className:e,...a}){return(0,t.jsx)("div",{role:"list","data-slot":"item-group",className:(0,o.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),...a})},"ItemMedia",0,function({className:e,variant:a="default",...r}){return(0,t.jsx)("div",{"data-slot":"item-media","data-variant":a,className:(0,o.cn)(u({variant:a,className:e})),...r})},"ItemTitle",0,m],906197);var h=e.i(337822);e.s(["SearchableSelect",0,function({value:e,onValueChange:n,options:l,placeholder:d,searchPlaceholder:u,emptyMessage:x,ariaLabel:f,disabled:v,className:b,showSelectedDetails:y=!1}){let[j,w]=(0,r.useState)(!1),C=l.find(t=>t.value===e);return(0,t.jsxs)(h.Popover,{onOpenChange:w,open:j,children:[(0,t.jsx)(h.PopoverTrigger,{asChild:!0,children:(0,t.jsxs)(i.Button,{"aria-expanded":j,"aria-label":f,className:(0,o.cn)("min-w-0 w-full justify-between font-normal",y&&C&&"h-auto min-h-8 py-2",b),disabled:v,role:"combobox",type:"button",variant:"outline",children:[y&&C?(0,t.jsxs)("span",{className:"min-w-0 text-left",children:[(0,t.jsx)("span",{className:"block truncate",children:C.label}),C.description&&(0,t.jsx)("span",{className:"block truncate text-xs text-muted-foreground",children:C.description}),C.secondaryDescription&&(0,t.jsx)("span",{className:"block truncate text-xs text-muted-foreground",children:C.secondaryDescription})]}):(0,t.jsx)("span",{className:"min-w-0 truncate",children:C?.label??d}),(0,t.jsx)(a.ChevronsUpDown,{className:"shrink-0 opacity-50"})]})}),(0,t.jsx)(h.PopoverContent,{align:"start",className:"z-70 w-(--radix-popover-trigger-width) p-0",children:(0,t.jsxs)(s.Command,{label:u,children:[(0,t.jsx)(s.CommandInput,{"aria-label":u,autoFocus:!0,placeholder:u}),(0,t.jsxs)(s.CommandList,{children:[(0,t.jsx)(s.CommandEmpty,{children:x}),(0,t.jsx)(s.CommandGroup,{children:l.map(a=>(0,t.jsx)(s.CommandItem,{"aria-label":[a.label,a.description,a.secondaryDescription].filter(Boolean).join(", "),"aria-selected":a.value===e,className:"items-start py-2","data-checked":a.value===e,disabled:a.disabled,keywords:[a.label,a.description??"",a.secondaryDescription??"",a.keywords??""],onSelect:()=>{n(a.value),w(!1)},value:a.value,children:(0,t.jsx)(c,{className:"min-w-0 flex-1 border-0 p-0",size:"xs",children:(0,t.jsxs)(p,{className:"min-w-0",children:[(0,t.jsx)(m,{className:"block truncate",children:a.label}),a.description&&(0,t.jsx)(g,{className:"block truncate",children:a.description}),a.secondaryDescription&&(0,t.jsx)(g,{className:"block truncate",children:a.secondaryDescription})]})})},a.value))})]})]})})]})}],983913)},948812,e=>{"use strict";function t(e){return`${e.repositoryNameWithOwner}#${e.number}`}e.s(["pullRequestCommentsHref",0,function(e){return`/comments?pullRequest=${encodeURIComponent(t(e))}`},"pullRequestDetailHref",0,function(e){let[t="",a=""]=e.repositoryNameWithOwner.split("/");return`/pull-requests/${encodeURIComponent(t)}/${encodeURIComponent(a)}/${e.number}`},"pullRequestKey",0,t])},882505,e=>{"use strict";let t=(0,e.i(456420).default)("list",[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]);e.s(["List",0,t],882505)},851817,e=>{"use strict";let t=(0,e.i(456420).default)("grid-2x2",[["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 12h18",key:"1i2n21"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]]);e.s(["Grid2X2",0,t],851817)},16781,142833,e=>{"use strict";var t=e.i(843476),a=e.i(482022),r=e.i(730274),i=e.i(948148),s=e.i(271645),n=e.i(159888),l=e.i(689664),o=e.i(508734),d=e.i(772382),c=e.i(519455),u=e.i(462777),p=e.i(975157);function m({bodyHtml:e,className:a}){return(0,t.jsx)("div",{className:(0,p.cn)("prose prose-sm max-w-none break-words dark:prose-invert prose-a:text-primary prose-pre:overflow-x-auto [&_details>summary]:cursor-pointer",a),dangerouslySetInnerHTML:{__html:e}})}function g({body:e,bodyHtml:a,emptyLabel:r,header:h,headerActions:x,headerClassName:f}){let v=(0,i.useTranslations)("githubComments"),[b,y]=(0,s.useState)("RENDERED"),[j,w]=(0,s.useState)("IDLE");(0,s.useEffect)(()=>{if("COPIED"!==j)return;let e=window.setTimeout(()=>w("IDLE"),2e3);return()=>window.clearTimeout(e)},[j]);let C=async()=>{try{await (0,u.copyText)(e),w("COPIED")}catch{w("FAILED")}};return(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:(0,p.cn)("flex flex-wrap items-center justify-between gap-2",f),children:[(0,t.jsx)("div",{className:"min-w-0",children:h}),(e||x)&&(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[x,e&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(c.Button,{onClick:()=>y(e=>"RENDERED"===e?"MARKDOWN":"RENDERED"),size:"xs",type:"button",variant:"outline",children:["RENDERED"===b?(0,t.jsx)(n.Braces,{}):(0,t.jsx)(d.Eye,{}),v("RENDERED"===b?"viewRaw":"viewRendered")]}),(0,t.jsxs)(c.Button,{"aria-label":v("copy"),onClick:()=>void C(),size:"xs",type:"button",variant:"outline",children:["COPIED"===j?(0,t.jsx)(l.Check,{}):(0,t.jsx)(o.Copy,{}),v("COPIED"===j?"copied":"copy")]})]})]})]}),"FAILED"===j&&(0,t.jsx)("p",{className:"text-xs text-destructive",children:v("copyFailed")}),e?"MARKDOWN"===b?(0,t.jsx)("pre",{className:"rounded-lg bg-muted p-3 text-xs whitespace-pre-wrap break-words [overflow-wrap:anywhere]",children:e}):(0,t.jsx)(m,{bodyHtml:a}):(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:r})]})}e.s(["GitHubMarkdownBlock",0,g],142833);var h=e.i(948812),x=e.i(929592),f=e.i(799676),v=e.i(487486),b=e.i(515288),y=e.i(816484),j=e.i(987968),w=e.i(624687),C=e.i(520133),R=e.i(637611);function T({actor:e,compact:a=!1}){let r=(0,i.useTranslations)("githubComments");return e?(0,t.jsxs)("a",{className:"inline-flex min-w-0 items-center gap-2 hover:underline",href:e.url,rel:"noreferrer",target:"_blank",children:[(0,t.jsxs)(f.Avatar,{className:a?"size-5":"size-7",children:[(0,t.jsx)(f.AvatarImage,{alt:"",src:e.avatarUrl}),(0,t.jsx)(f.AvatarFallback,{children:e.login.slice(0,1).toUpperCase()})]}),(0,t.jsxs)("span",{className:"truncate",children:["@",e.login]})]}):(0,t.jsx)("span",{children:r("unknownAuthor")})}function N(e,t){if("FILE"===e.subjectType)return`${e.path} \xb7 ${t}`;let a=e.line??e.originalLine,r=e.startLine??e.originalStartLine;return null===a?e.path:`${e.path} \xb7 L${r&&r!==a?`${r}–`:""}${a}`}function k({label:e,url:r}){return(0,t.jsx)(c.Button,{asChild:!0,size:"icon-xs",title:e,variant:"outline",children:(0,t.jsx)("a",{"aria-label":e,href:r,rel:"noreferrer",target:"_blank",children:(0,t.jsx)(a.ExternalLink,{})})})}e.s(["ReviewAuthor",0,T,"ReviewThreadCard",0,function({onReplyAdded:e,onStateChanged:a,thread:n}){let l=(0,i.useTranslations)("githubComments"),[o,d]=(0,s.useState)(""),[u,p]=(0,s.useState)(!1),[m,f]=(0,s.useState)(!1),[S,I]=(0,s.useState)(null),E=async t=>{if(t.preventDefault(),o.trim()&&n.viewerCanReply){p(!0);try{let t=await (0,R.controlPlaneRequest)(`mutation ReplyToGitHubReviewThread($threadId: ID!, $body: String!) {
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)},730274,e=>{"use strict";let t=(0,e.i(456420).default)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);e.s(["Send",0,t],730274)},808562,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(30030),i=e.i(248425),s=e.i(842727),n=e.i(981140),l=e.i(369340),o=Object.defineProperty,d=a.forwardRef(o(function(e,a){let{pressed:r,defaultPressed:s,onPressedChange:o,...d}=e,[c,u]=(0,l.useControllableState)({prop:r,onChange:o,defaultProp:s??!1,caller:"Toggle"});return(0,t.jsx)(i.Primitive.button,{type:"button","aria-pressed":c,"data-state":c?"on":"off","data-disabled":e.disabled?"":void 0,...d,ref:a,onClick:(0,n.composeEventHandlers)(e.onClick,()=>{e.disabled||u(!c)})})},"name",{value:"Toggle",configurable:!0})),c=e.i(586318),u=Object.defineProperty,p=(e,t)=>u(e,"name",{value:t,configurable:!0}),m="ToggleGroup",[g,h]=(0,r.createContextScope)(m,[s.createRovingFocusGroupScope]),x=(0,s.createRovingFocusGroupScope)(),f=a.forwardRef(p(function(e,a){let{type:r,...i}=e;if("single"===r)return(0,t.jsx)(y,{role:"radiogroup",...i,ref:a});if("multiple"===r)return(0,t.jsx)(j,{role:"toolbar",...i,ref:a});throw Error(`Missing prop \`type\` expected on \`${m}\``)},"ToggleGroup")),[v,b]=g(m),y=a.forwardRef(p(function(e,r){let{value:i,defaultValue:s,onValueChange:n=p(()=>{},"onValueChange"),...o}=e,[d,c]=(0,l.useControllableState)({prop:i,defaultProp:s??"",onChange:n,caller:m});return(0,t.jsx)(v,{scope:e.__scopeToggleGroup,type:"single",value:a.useMemo(()=>d?[d]:[],[d]),onItemActivate:c,onItemDeactivate:a.useCallback(()=>c(""),[c]),children:(0,t.jsx)(R,{...o,ref:r})})},"ToggleGroupImplSingle")),j=a.forwardRef(p(function(e,r){let{value:i,defaultValue:s,onValueChange:n=p(()=>{},"onValueChange"),...o}=e,[d,c]=(0,l.useControllableState)({prop:i,defaultProp:s??[],onChange:n,caller:m}),u=a.useCallback(e=>c((t=[])=>[...t,e]),[c]),g=a.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return(0,t.jsx)(v,{scope:e.__scopeToggleGroup,type:"multiple",value:d,onItemActivate:u,onItemDeactivate:g,children:(0,t.jsx)(R,{...o,ref:r})})},"ToggleGroupImplMultiple")),[w,C]=g(m),R=a.forwardRef(p(function(e,a){let{__scopeToggleGroup:r,disabled:n=!1,rovingFocus:l=!0,orientation:o,dir:d,loop:u=!0,...p}=e,m=x(r),g=(0,c.useDirection)(d),h={dir:g,...p};return(0,t.jsx)(w,{scope:r,rovingFocus:l,disabled:n,children:l?(0,t.jsx)(s.Root,{asChild:!0,...m,orientation:o,dir:g,loop:u,children:(0,t.jsx)(i.Primitive.div,{...h,ref:a})}):(0,t.jsx)(i.Primitive.div,{...h,ref:a})})},"ToggleGroupImpl")),T="ToggleGroupItem",N=a.forwardRef(p(function(e,r){let i=b(T,e.__scopeToggleGroup),n=C(T,e.__scopeToggleGroup),l=x(e.__scopeToggleGroup),o=i.value.includes(e.value),d=n.disabled||e.disabled,c={...e,pressed:o,disabled:d},u=a.useRef(null);return n.rovingFocus?(0,t.jsx)(s.Item,{asChild:!0,...l,focusable:!d,active:o,ref:u,children:(0,t.jsx)(k,{...c,ref:r})}):(0,t.jsx)(k,{...c,ref:r})},"ToggleGroupItem")),k=a.forwardRef(p(function(e,a){let{__scopeToggleGroup:r,value:i,...s}=e,n=b(T,r),l={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},o="single"===n.type?l:void 0;return(0,t.jsx)(d,{...o,...s,ref:a,onPressedChange:e=>{e?n.onItemActivate(i):n.onItemDeactivate(i)}})},"ToggleGroupItemImpl"));e.s(["Item",0,N,"Root",0,f,"ToggleGroup",0,f,"ToggleGroupItem",0,N,"createToggleGroupScope",0,h],459881);var S=e.i(459881),S=S,I=e.i(975157),E=e.i(225913),z=Object.defineProperty,D=a.forwardRef(z(function(e,a){let{pressed:r,defaultPressed:s,onPressedChange:o,...d}=e,[c,u]=(0,l.useControllableState)({prop:r,onChange:o,defaultProp:s??!1,caller:"Toggle"});return(0,t.jsx)(i.Primitive.button,{type:"button","aria-pressed":c,"data-state":c?"on":"off","data-disabled":e.disabled?"":void 0,...d,ref:a,onClick:(0,n.composeEventHandlers)(e.onClick,()=>{e.disabled||u(!c)})})},"name",{value:"Toggle",configurable:!0}));e.s(["Root",0,D,"Toggle",0,D],864225),e.i(864225);let A=(0,E.cva)("group/toggle inline-flex items-center justify-center gap-1 rounded-lg text-sm font-medium whitespace-nowrap transition-all outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-muted"},size:{default:"h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",sm:"h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 min-w-9 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2"}},defaultVariants:{variant:"default",size:"default"}}),L=a.createContext({size:"default",variant:"default",spacing:2,orientation:"horizontal"});e.s(["ToggleGroup",0,function({className:e,variant:a,size:r,spacing:i=2,orientation:s="horizontal",children:n,...l}){return(0,t.jsx)(S.Root,{"data-slot":"toggle-group","data-variant":a,"data-size":r,"data-spacing":i,"data-orientation":s,style:{"--gap":i},className:(0,I.cn)("group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] rounded-lg data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-vertical:flex-col data-vertical:items-stretch",e),...l,children:(0,t.jsx)(L.Provider,{value:{variant:a,size:r,spacing:i,orientation:s},children:n})})},"ToggleGroupItem",0,function({className:e,children:r,variant:i="default",size:s="default",...n}){let l=a.useContext(L);return(0,t.jsx)(S.Item,{"data-slot":"toggle-group-item","data-variant":l.variant||i,"data-size":l.size||s,"data-spacing":l.spacing,className:(0,I.cn)("shrink-0 group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 focus:z-10 focus-visible:z-10 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-end]:pr-1.5 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-start]:pl-1.5 group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-l-lg group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-lg group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-r-lg group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-lg group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:border-l-0 group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-l group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t",A({variant:l.variant||i,size:l.size||s}),e),...n,children:r})}],808562)},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)}`}])},82612,e=>{"use strict";var t=e.i(843476),a=e.i(225913),r=e.i(975157);let i=(0,a.cva)("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4"}},defaultVariants:{variant:"default"}});e.s(["Empty",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"empty",className:(0,r.cn)("flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border-dashed p-6 text-center text-balance",e),...a})},"EmptyDescription",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"empty-description",className:(0,r.cn)("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...a})},"EmptyHeader",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"empty-header",className:(0,r.cn)("flex max-w-sm flex-col items-center gap-2",e),...a})},"EmptyMedia",0,function({className:e,variant:a="default",...s}){return(0,t.jsx)("div",{"data-slot":"empty-icon","data-variant":a,className:(0,r.cn)(i({variant:a,className:e})),...s})},"EmptyTitle",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"empty-title",className:(0,r.cn)("font-heading text-sm font-medium tracking-tight",e),...a})}])},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)},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)},799676,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(705844),i=e.i(30030),s=e.i(30207),n=e.i(934620),l=e.i(248425),o=Object.defineProperty,d=(e,t)=>o(e,"name",{value:t,configurable:!0}),c="Avatar",[u,p]=(0,i.createContextScope)(c),m=[0,()=>void 0],[g,h]=u(c),x=a.forwardRef(d(function(e,r){let{__scopeAvatar:i,...s}=e,[n,o]=a.useState("idle"),[d,c]=j();return(0,t.jsx)(g,{scope:i,imageLoadingStatus:n,setImageLoadingStatus:o,imageCount:d,setImageCount:c,children:(0,t.jsx)(l.Primitive.span,{...s,ref:r})})},"Avatar")),f=a.forwardRef(d(function(e,r){let{__scopeAvatar:i,src:o,onLoadingStatusChange:d,...c}=e,u=h("AvatarImage",i);w(u.setImageCount);let p=b(o,{referrerPolicy:c.referrerPolicy,crossOrigin:c.crossOrigin,loadingStatus:u.imageLoadingStatus,setLoadingStatus:u.setImageLoadingStatus}),m=(0,s.useCallbackRef)(e=>{d?.(e)}),g=a.useRef(p);return(0,n.useLayoutEffect)(()=>{let e=g.current;g.current=p,p!==e&&m(p)},[p,m]),"loaded"===p?(0,t.jsx)(l.Primitive.img,{...c,ref:r,src:o}):null},"AvatarImage")),v=a.forwardRef(d(function(e,r){let{__scopeAvatar:i,delayMs:s,...n}=e,o=h("AvatarFallback",i),[d,c]=a.useState(void 0===s);return a.useEffect(()=>{if(void 0!==s){let e=window.setTimeout(()=>c(!0),s);return()=>window.clearTimeout(e)}},[s]),d&&"loaded"!==o.imageLoadingStatus?(0,t.jsx)(l.Primitive.span,{...n,ref:r}):null},"AvatarFallback"));function b(e,{loadingStatus:t,setLoadingStatus:a,referrerPolicy:r,crossOrigin:i}){return(0,n.useLayoutEffect)(()=>{if(!e)return void a("error");let t=new window.Image,s=d(e=>{a(y(e.currentTarget))},"handleLoad"),n=d(()=>a("error"),"handleError");return t.addEventListener("load",s),t.addEventListener("error",n),r&&(t.referrerPolicy=r),t.crossOrigin=i??null,t.src=e,a(y(t)),()=>{t.removeEventListener("load",s),t.removeEventListener("error",n),a("idle")}},[e,i,r,a]),t}function y(e){return e.complete?e.naturalWidth>0?"loaded":"error":"loading"}function j(){let e=m;if(r.IS_DEVELOPMENT){let[t]=e=a.useState(0),r=a.useRef(!1);a.useEffect(()=>{t>1&&!r.current&&(r.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 w(e){r.IS_DEVELOPMENT&&a.useEffect(()=>(e(e=>e+1),()=>{e(e=>e-1)}),[e])}d(b,"useImageLoadingStatus"),d(y,"getImageLoadingStatus"),d(j,"useImageCount"),d(w,"useUpdateImageCount"),e.s(["Avatar",0,x,"AvatarFallback",0,v,"AvatarImage",0,f,"Fallback",0,v,"Image",0,f,"Root",0,x,"createAvatarScope",0,p],97456);var C=e.i(97456),C=C,R=e.i(975157);e.s(["Avatar",0,function({className:e,size:a="default",...r}){return(0,t.jsx)(C.Root,{className:(0,R.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":a,"data-slot":"avatar",...r})},"AvatarFallback",0,function({className:e,...a}){return(0,t.jsx)(C.Fallback,{className:(0,R.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",...a})},"AvatarImage",0,function({className:e,...a}){return(0,t.jsx)(C.Image,{className:(0,R.cn)("aspect-square size-full rounded-full object-cover",e),"data-slot":"avatar-image",...a})}],799676)},983913,906197,e=>{"use strict";var t=e.i(843476),a=e.i(563707),r=e.i(271645),i=e.i(519455),s=e.i(317056),n=e.i(225913),l=e.i(586011),o=e.i(975157);e.i(772436);let d=(0,n.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"}});function c({className:e,variant:a="default",size:r="default",asChild:i=!1,...s}){let n=i?l.Slot.Root:"div";return(0,t.jsx)(n,{"data-slot":"item","data-variant":a,"data-size":r,className:(0,o.cn)(d({variant:a,size:r,className:e})),...s})}let u=(0,n.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"}});function p({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"item-content",className:(0,o.cn)("flex flex-1 flex-col gap-1 group-data-[size=xs]/item:gap-0 [&+[data-slot=item-content]]:flex-none",e),...a})}function m({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"item-title",className:(0,o.cn)("line-clamp-1 flex w-fit items-center gap-2 text-sm leading-snug font-medium underline-offset-4",e),...a})}function g({className:e,...a}){return(0,t.jsx)("p",{"data-slot":"item-description",className:(0,o.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),...a})}e.s(["Item",0,c,"ItemActions",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"item-actions",className:(0,o.cn)("flex items-center gap-2",e),...a})},"ItemContent",0,p,"ItemDescription",0,g,"ItemGroup",0,function({className:e,...a}){return(0,t.jsx)("div",{role:"list","data-slot":"item-group",className:(0,o.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),...a})},"ItemMedia",0,function({className:e,variant:a="default",...r}){return(0,t.jsx)("div",{"data-slot":"item-media","data-variant":a,className:(0,o.cn)(u({variant:a,className:e})),...r})},"ItemTitle",0,m],906197);var h=e.i(337822);e.s(["SearchableSelect",0,function({value:e,onValueChange:n,options:l,placeholder:d,searchPlaceholder:u,emptyMessage:x,ariaLabel:f,disabled:v,className:b,showSelectedDetails:y=!1}){let[j,w]=(0,r.useState)(!1),C=l.find(t=>t.value===e);return(0,t.jsxs)(h.Popover,{onOpenChange:w,open:j,children:[(0,t.jsx)(h.PopoverTrigger,{asChild:!0,children:(0,t.jsxs)(i.Button,{"aria-expanded":j,"aria-label":f,className:(0,o.cn)("min-w-0 w-full justify-between font-normal",y&&C&&"h-auto min-h-8 py-2",b),disabled:v,role:"combobox",type:"button",variant:"outline",children:[y&&C?(0,t.jsxs)("span",{className:"min-w-0 text-left",children:[(0,t.jsx)("span",{className:"block truncate",children:C.label}),C.description&&(0,t.jsx)("span",{className:"block truncate text-xs text-muted-foreground",children:C.description}),C.secondaryDescription&&(0,t.jsx)("span",{className:"block truncate text-xs text-muted-foreground",children:C.secondaryDescription})]}):(0,t.jsx)("span",{className:"min-w-0 truncate",children:C?.label??d}),(0,t.jsx)(a.ChevronsUpDown,{className:"shrink-0 opacity-50"})]})}),(0,t.jsx)(h.PopoverContent,{align:"start",className:"z-70 w-(--radix-popover-trigger-width) p-0",children:(0,t.jsxs)(s.Command,{label:u,children:[(0,t.jsx)(s.CommandInput,{"aria-label":u,autoFocus:!0,placeholder:u}),(0,t.jsxs)(s.CommandList,{children:[(0,t.jsx)(s.CommandEmpty,{children:x}),(0,t.jsx)(s.CommandGroup,{children:l.map(a=>(0,t.jsx)(s.CommandItem,{"aria-label":[a.label,a.description,a.secondaryDescription].filter(Boolean).join(", "),"aria-selected":a.value===e,className:"items-start py-2","data-checked":a.value===e,disabled:a.disabled,keywords:[a.label,a.description??"",a.secondaryDescription??"",a.keywords??""],onSelect:()=>{n(a.value),w(!1)},value:a.value,children:(0,t.jsx)(c,{className:"min-w-0 flex-1 border-0 p-0",size:"xs",children:(0,t.jsxs)(p,{className:"min-w-0",children:[(0,t.jsx)(m,{className:"block truncate",children:a.label}),a.description&&(0,t.jsx)(g,{className:"block truncate",children:a.description}),a.secondaryDescription&&(0,t.jsx)(g,{className:"block truncate",children:a.secondaryDescription})]})})},a.value))})]})]})})]})}],983913)},948812,e=>{"use strict";function t(e){return`${e.repositoryNameWithOwner}#${e.number}`}e.s(["pullRequestCommentsHref",0,function(e){return`/comments?pullRequest=${encodeURIComponent(t(e))}`},"pullRequestDetailHref",0,function(e){let[t="",a=""]=e.repositoryNameWithOwner.split("/");return`/pull-requests/${encodeURIComponent(t)}/${encodeURIComponent(a)}/${e.number}`},"pullRequestKey",0,t])},882505,e=>{"use strict";let t=(0,e.i(456420).default)("list",[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]);e.s(["List",0,t],882505)},851817,e=>{"use strict";let t=(0,e.i(456420).default)("grid-2x2",[["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 12h18",key:"1i2n21"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]]);e.s(["Grid2X2",0,t],851817)},16781,142833,e=>{"use strict";var t=e.i(843476),a=e.i(482022),r=e.i(730274),i=e.i(948148),s=e.i(271645),n=e.i(159888),l=e.i(689664),o=e.i(508734),d=e.i(772382),c=e.i(519455),u=e.i(462777),p=e.i(975157);function m({bodyHtml:e,className:a}){return(0,t.jsx)("div",{className:(0,p.cn)("prose prose-sm max-w-none break-words dark:prose-invert prose-a:text-primary prose-pre:overflow-x-auto [&_details>summary]:cursor-pointer",a),dangerouslySetInnerHTML:{__html:e}})}function g({body:e,bodyHtml:a,emptyLabel:r,header:h,headerActions:x,headerClassName:f}){let v=(0,i.useTranslations)("githubComments"),[b,y]=(0,s.useState)("RENDERED"),[j,w]=(0,s.useState)("IDLE");(0,s.useEffect)(()=>{if("COPIED"!==j)return;let e=window.setTimeout(()=>w("IDLE"),2e3);return()=>window.clearTimeout(e)},[j]);let C=async()=>{try{await (0,u.copyText)(e),w("COPIED")}catch{w("FAILED")}};return(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:(0,p.cn)("flex flex-wrap items-center justify-between gap-2",f),children:[(0,t.jsx)("div",{className:"min-w-0",children:h}),(e||x)&&(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[x,e&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(c.Button,{onClick:()=>y(e=>"RENDERED"===e?"MARKDOWN":"RENDERED"),size:"xs",type:"button",variant:"outline",children:["RENDERED"===b?(0,t.jsx)(n.Braces,{}):(0,t.jsx)(d.Eye,{}),v("RENDERED"===b?"viewRaw":"viewRendered")]}),(0,t.jsxs)(c.Button,{"aria-label":v("copy"),onClick:()=>void C(),size:"xs",type:"button",variant:"outline",children:["COPIED"===j?(0,t.jsx)(l.Check,{}):(0,t.jsx)(o.Copy,{}),v("COPIED"===j?"copied":"copy")]})]})]})]}),"FAILED"===j&&(0,t.jsx)("p",{className:"text-xs text-destructive",children:v("copyFailed")}),e?"MARKDOWN"===b?(0,t.jsx)("pre",{className:"rounded-lg bg-muted p-3 text-xs whitespace-pre-wrap break-words [overflow-wrap:anywhere]",children:e}):(0,t.jsx)(m,{bodyHtml:a}):(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:r})]})}e.s(["GitHubMarkdownBlock",0,g],142833);var h=e.i(948812),x=e.i(929592),f=e.i(799676),v=e.i(487486),b=e.i(515288),y=e.i(816484),j=e.i(987968),w=e.i(624687),C=e.i(520133),R=e.i(637611);function T({actor:e,compact:a=!1}){let r=(0,i.useTranslations)("githubComments");return e?(0,t.jsxs)("a",{className:"inline-flex min-w-0 items-center gap-2 hover:underline",href:e.url,rel:"noreferrer",target:"_blank",children:[(0,t.jsxs)(f.Avatar,{className:a?"size-5":"size-7",children:[(0,t.jsx)(f.AvatarImage,{alt:"",src:e.avatarUrl}),(0,t.jsx)(f.AvatarFallback,{children:e.login.slice(0,1).toUpperCase()})]}),(0,t.jsxs)("span",{className:"truncate",children:["@",e.login]})]}):(0,t.jsx)("span",{children:r("unknownAuthor")})}function N(e,t){if("FILE"===e.subjectType)return`${e.path} \xb7 ${t}`;let a=e.line??e.originalLine,r=e.startLine??e.originalStartLine;return null===a?e.path:`${e.path} \xb7 L${r&&r!==a?`${r}–`:""}${a}`}function k({label:e,url:r}){return(0,t.jsx)(c.Button,{asChild:!0,size:"icon-xs",title:e,variant:"outline",children:(0,t.jsx)("a",{"aria-label":e,href:r,rel:"noreferrer",target:"_blank",children:(0,t.jsx)(a.ExternalLink,{})})})}e.s(["ReviewAuthor",0,T,"ReviewThreadCard",0,function({onReplyAdded:e,onStateChanged:a,thread:n}){let l=(0,i.useTranslations)("githubComments"),[o,d]=(0,s.useState)(""),[u,p]=(0,s.useState)(!1),[m,f]=(0,s.useState)(!1),[S,I]=(0,s.useState)(null),E=async t=>{if(t.preventDefault(),o.trim()&&n.viewerCanReply){p(!0);try{let t=await (0,R.controlPlaneRequest)(`mutation ReplyToGitHubReviewThread($threadId: ID!, $body: String!) {
2
2
  replyToGitHubReviewThread(threadId: $threadId, body: $body) {
3
3
  id body bodyText bodyHtml url author { login avatarUrl url } createdAt updatedAt
4
4
  }