@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.
- package/package.json +1 -1
- package/prisma-runtime/prisma/migrations/20260723214432_add_model_costs/migration.sql +28 -0
- package/prisma-runtime/prisma/schema.prisma +30 -0
- package/standalone/.next/BUILD_ID +1 -1
- package/standalone/.next/app-path-routes-manifest.json +1 -0
- package/standalone/.next/build-manifest.json +3 -3
- package/standalone/.next/prerender-manifest.json +3 -3
- package/standalone/.next/routes-manifest.json +8 -0
- package/standalone/.next/server/app/[locale]/actions/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/actions/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/actions-cache/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/actions-cache/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/agents/[id]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/agents/[id]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/agents/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/agents/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/analytics-events/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/analytics-events/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/build-data/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/build-data/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/builds/[buildId]/coverage/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/builds/[buildId]/coverage/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/builds/[buildId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/builds/[buildId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/builds/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/builds/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/codebases/[codebaseId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/codebases/[codebaseId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/codebases/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/codebases/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/codebases/repositories/[repositoryId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/codebases/repositories/[repositoryId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/comments/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/comments/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/console-logs/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/console-logs/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/costs/page/app-paths-manifest.json +3 -0
- package/standalone/.next/server/app/[locale]/costs/page/build-manifest.json +16 -0
- package/standalone/.next/server/app/[locale]/costs/page/next-font-manifest.json +11 -0
- package/standalone/.next/server/app/[locale]/costs/page/react-loadable-manifest.json +1 -0
- package/standalone/.next/server/app/[locale]/costs/page/server-reference-manifest.json +4 -0
- package/standalone/.next/server/app/[locale]/costs/page.js +17 -0
- package/standalone/.next/server/app/[locale]/costs/page.js.map +5 -0
- package/standalone/.next/server/app/[locale]/costs/page.js.nft.json +1 -0
- package/standalone/.next/server/app/[locale]/costs/page_client-reference-manifest.js +3 -0
- package/standalone/.next/server/app/[locale]/credentials/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/credentials/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/devices/[id]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/devices/[id]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/devices/enroll/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/devices/enroll/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/devices/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/devices/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/drafts/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/drafts/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/jira/cache/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/jira/cache/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/jira/cache/tickets/[issueKey]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/jira/cache/tickets/[issueKey]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/jira/tickets/[issueKey]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/jira/tickets/[issueKey]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/jira/tickets/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/jira/tickets/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/jobs/[jobId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/jobs/[jobId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/notifications/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/notifications/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/plans/[runId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/plans/[runId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/plans/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/plans/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/polling/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/polling/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/provisioning-profiles/[profileId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/provisioning-profiles/[profileId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/provisioning-profiles/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/provisioning-profiles/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/pull-requests/[owner]/[repository]/[number]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/pull-requests/[owner]/[repository]/[number]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/pull-requests/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/pull-requests/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/push-notifications/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/push-notifications/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/runs/new/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/runs/new/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/sessions/[runId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/sessions/[runId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/sessions/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/sessions/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/settings/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/settings/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/skills/[skillId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/skills/[skillId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/skills/groups/[groupId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/skills/groups/[groupId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/skills/groups/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/skills/groups/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/skills/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/skills/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/skills/sync/[runId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/skills/sync/[runId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/tools/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/tools/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/unified-events/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/unified-events/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/usage/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/usage/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/worktrees/[worktreeId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/worktrees/[worktreeId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/worktrees/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/worktrees/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/_global-error.html +1 -1
- package/standalone/.next/server/app/_global-error.rsc +1 -1
- package/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/standalone/.next/server/app/_not-found.html +1 -1
- package/standalone/.next/server/app/_not-found.rsc +1 -1
- package/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
- package/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/standalone/.next/server/app/api/agent/run-attachments/[attachmentId]/route.js +1 -1
- package/standalone/.next/server/app/api/agent/run-attachments/[attachmentId]/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/build-artifact-uploads/[uploadId]/route.js +1 -1
- package/standalone/.next/server/app/api/build-artifact-uploads/[uploadId]/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/codebases/by-path/route.js +1 -1
- package/standalone/.next/server/app/api/codebases/by-path/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/codebases/route.js +1 -1
- package/standalone/.next/server/app/api/codebases/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/graphql/route.js +1 -1
- package/standalone/.next/server/app/api/graphql/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/ios/apns-devices/route.js +1 -1
- package/standalone/.next/server/app/api/ios/apns-devices/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/ios/devices/export.tsv/route.js +1 -1
- package/standalone/.next/server/app/api/ios/devices/export.tsv/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/ios/enrollment/start/route.js +1 -1
- package/standalone/.next/server/app/api/ios/enrollment/start/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/mcp/route.js +1 -1
- package/standalone/.next/server/app/api/mcp/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/openapi.json/route.js +1 -1
- package/standalone/.next/server/app/api/openapi.json/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/public/builds/[buildId]/artifacts/[artifactId]/manifest.plist/route.js +1 -1
- package/standalone/.next/server/app/api/public/builds/[buildId]/artifacts/[artifactId]/manifest.plist/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/public/builds/[buildId]/artifacts/[artifactId]/route.js +1 -1
- package/standalone/.next/server/app/api/public/builds/[buildId]/artifacts/[artifactId]/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/public/github/webhook/route.js +1 -1
- package/standalone/.next/server/app/api/public/github/webhook/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/public/ios/enrollment-profile/route.js +1 -1
- package/standalone/.next/server/app/api/public/ios/enrollment-profile/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/public/ios/profile-response/route.js +1 -1
- package/standalone/.next/server/app/api/public/ios/profile-response/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/run-attachments/[attachmentId]/route.js +1 -1
- package/standalone/.next/server/app/api/run-attachments/[attachmentId]/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/run-attachments/route.js +1 -1
- package/standalone/.next/server/app/api/run-attachments/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/telemetry/analytics-events/route.js +1 -1
- package/standalone/.next/server/app/api/telemetry/analytics-events/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/telemetry/console-logs/route.js +1 -1
- package/standalone/.next/server/app/api/telemetry/console-logs/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/telemetry/export/route.js +1 -1
- package/standalone/.next/server/app/api/telemetry/export/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/tools/call/route.js +1 -1
- package/standalone/.next/server/app/api/tools/call/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/tools/catalog/route.js +1 -1
- package/standalone/.next/server/app/api/tools/catalog/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/worktrees/[worktreeId]/diff-image/route.js +1 -1
- package/standalone/.next/server/app/api/worktrees/[worktreeId]/diff-image/route.js.nft.json +1 -1
- package/standalone/.next/server/app-paths-manifest.json +1 -0
- package/standalone/.next/server/chunks/{[root-of-the-server]__0m6-kcg._.js → [root-of-the-server]__0-ktevp._.js} +2 -2
- package/standalone/.next/server/chunks/{[root-of-the-server]__06tm4sl._.js → [root-of-the-server]__0-zj-yf._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__0eili-e._.js → [root-of-the-server]__01nvzbq._.js} +2 -2
- package/standalone/.next/server/chunks/{[root-of-the-server]__0_87b17._.js → [root-of-the-server]__03orm-i._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__039ccw_._.js → [root-of-the-server]__04_a-p8._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__045avxp._.js → [root-of-the-server]__04sca_q._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__09vpqml._.js → [root-of-the-server]__04wnjxs._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__0dvn5ie._.js → [root-of-the-server]__04xapi4._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__00kk4vq._.js → [root-of-the-server]__04xwt6o._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__00rus46._.js → [root-of-the-server]__051yqe-._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__1tw_3no._.js → [root-of-the-server]__05pgm03._.js} +2 -2
- package/standalone/.next/server/chunks/{[root-of-the-server]__05vesnq._.js → [root-of-the-server]__05uug8c._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__026cujx._.js → [root-of-the-server]__064xuoi._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__0hwgatq._.js → [root-of-the-server]__06bc7-t._.js} +2 -2
- package/standalone/.next/server/chunks/{[root-of-the-server]__05iw4b6._.js → [root-of-the-server]__06hz_5m._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__079vs-o._.js → [root-of-the-server]__06qqqz4._.js} +1 -1
- package/standalone/.next/server/chunks/[root-of-the-server]__073_7pr._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__07ezodj._.js +3 -0
- package/standalone/.next/server/chunks/{[root-of-the-server]__0ammric._.js → [root-of-the-server]__07gz69e._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__0avv--n._.js → [root-of-the-server]__08ekn_k._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__06qq-80._.js → [root-of-the-server]__09v822g._.js} +1 -1
- package/standalone/.next/server/chunks/[root-of-the-server]__0_2v0r6._.js +3 -0
- package/standalone/.next/server/chunks/{[root-of-the-server]__0ev57uq._.js → [root-of-the-server]__0_elwh5._.js} +1 -1
- package/standalone/.next/server/chunks/[root-of-the-server]__0_uti3p._.js +3 -0
- package/standalone/.next/server/chunks/{[root-of-the-server]__04iwwa-._.js → [root-of-the-server]__0av34cc._.js} +2 -2
- package/standalone/.next/server/chunks/[root-of-the-server]__0be93bj._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0bzypkl._.js +3 -0
- package/standalone/.next/server/chunks/{[root-of-the-server]__0lfudmf._.js → [root-of-the-server]__0ccm4vp._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__212svca._.js → [root-of-the-server]__0cfp7rm._.js} +2 -2
- package/standalone/.next/server/chunks/[root-of-the-server]__0d3jwu8._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0dqd2cd._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0e3sw2f._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0ehmsw5._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0ey9b8q._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0hxwzy5._.js +3 -0
- package/standalone/.next/server/chunks/{[root-of-the-server]__00pn80i._.js → [root-of-the-server]__0i46cc8._.js} +2 -2
- package/standalone/.next/server/chunks/{[root-of-the-server]__1mkh-uu._.js → [root-of-the-server]__0ii54f8._.js} +2 -2
- package/standalone/.next/server/chunks/[root-of-the-server]__0k5hi4x._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0lk6mxj._.js +3 -0
- package/standalone/.next/server/chunks/{[root-of-the-server]__1nozyf6._.js → [root-of-the-server]__0miujba._.js} +2 -2
- package/standalone/.next/server/chunks/[root-of-the-server]__0qbgbqj._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0qc5tar._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0rland0._.js +3 -0
- package/standalone/.next/server/chunks/{[root-of-the-server]__1_sflnn._.js → [root-of-the-server]__0rsjbt9._.js} +2 -2
- package/standalone/.next/server/chunks/[root-of-the-server]__0u67sg7._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0ubhe7w._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0ue-6s0._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0uyhbd8._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0v_qn14._.js +3 -0
- package/standalone/.next/server/chunks/{[root-of-the-server]__0oef7yv._.js → [root-of-the-server]__0vgjzu_._.js} +2 -2
- package/standalone/.next/server/chunks/{[root-of-the-server]__0t1ryja._.js → [root-of-the-server]__0vs63nv._.js} +2 -2
- package/standalone/.next/server/chunks/{[root-of-the-server]__0ujfqqn._.js → [root-of-the-server]__0vuegxj._.js} +1 -1
- package/standalone/.next/server/chunks/[root-of-the-server]__0wc19bn._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0xhhfqn._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0xuga9u._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1-b8mhr._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1-vesoj._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__10jq5fz._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__11adyal._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__11v9z03._.js +3 -0
- package/standalone/.next/server/chunks/{[root-of-the-server]__03yxfwh._.js → [root-of-the-server]__12qoy0t._.js} +2 -2
- package/standalone/.next/server/chunks/{[root-of-the-server]__0uq2mf_._.js → [root-of-the-server]__13olq7t._.js} +2 -2
- package/standalone/.next/server/chunks/[root-of-the-server]__13z4o0y._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__14flk9w._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__14p4_xo._.js +3 -0
- package/standalone/.next/server/chunks/{[root-of-the-server]__1attksp._.js → [root-of-the-server]__14x4hy5._.js} +2 -2
- package/standalone/.next/server/chunks/[root-of-the-server]__16yif_j._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__17_i51a._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__17fmydy._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__17uilh6._.js +3 -0
- package/standalone/.next/server/chunks/{[root-of-the-server]__11hjzc0._.js → [root-of-the-server]__183_4dj._.js} +2 -2
- package/standalone/.next/server/chunks/[root-of-the-server]__18p4ewi._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__190kf-7._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1_t7_qf._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1_tq9n2._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1b8ar_b._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1b_j3xv._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1cj96fo._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1dvcmqw._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1gcfshm._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1gen-el._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1gonl53._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1hst7ec._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1hvcd1x._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1kajbb_._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1kj1ln5._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1l9-hc6._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1lgant0._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1na8-n6._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1ottisz._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1shxc8n._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1tvvhzn._.js +3 -0
- package/standalone/.next/server/chunks/{[root-of-the-server]__1yam92a._.js → [root-of-the-server]__1ummn4p._.js} +2 -2
- package/standalone/.next/server/chunks/[root-of-the-server]__1v-dnat._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1wdw3t2._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1wdye-x._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1wjvdyz._.js +3 -0
- package/standalone/.next/server/chunks/{[root-of-the-server]__06dbyo-._.js → [root-of-the-server]__1xnwo73._.js} +2 -2
- package/standalone/.next/server/chunks/{[root-of-the-server]__0v0oh52._.js → [root-of-the-server]__1yi_2qs._.js} +2 -2
- package/standalone/.next/server/chunks/{[root-of-the-server]__0axi_lh._.js → [root-of-the-server]__1yim97_._.js} +1 -1
- package/standalone/.next/server/chunks/[root-of-the-server]__1zcjrka._.js +3 -0
- package/standalone/.next/server/chunks/{[root-of-the-server]__08bpdlj._.js → [root-of-the-server]__1zrp8nv._.js} +2 -2
- package/standalone/.next/server/chunks/[root-of-the-server]__2125ewz._.js +3 -0
- package/standalone/.next/server/chunks/_0151la8._.js +1 -1
- package/standalone/.next/server/chunks/_01p5vu2._.js +1 -1
- package/standalone/.next/server/chunks/_07bbzzn._.js +1 -1
- package/standalone/.next/server/chunks/_0_3-lke._.js +88 -1
- package/standalone/.next/server/chunks/_0g1xb8v._.js +1 -1
- package/standalone/.next/server/chunks/_11p_tgb._.js +1 -1
- package/standalone/.next/server/chunks/_17e45g_._.js +1 -1
- package/standalone/.next/server/chunks/_1hmzed-._.js +192 -105
- package/standalone/.next/server/chunks/_1ioi8na._.js +1 -1
- package/standalone/.next/server/chunks/_1m96-gv._.js +1 -1
- package/standalone/.next/server/chunks/_1r_e2vq._.js +1 -1
- package/standalone/.next/server/chunks/_1xr-3kb._.js +1 -1
- package/standalone/.next/server/chunks/src_services_runs_index_ts_0_l1wkt._.js +5 -5
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__03mx68i._.js +35 -0
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__06_k1v8._.js +55 -0
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ik85du._.js +35 -0
- package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__1wsrjus._.js → [root-of-the-server]__0lavdf4._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0lgqolk._.js +3 -0
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0o4j_p7._.js +3 -0
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0usqx1k._.js +3 -0
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1bpbvfj._.js +3 -0
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1iccye4._.js +3 -0
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1m28j8h._.js +50 -0
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1qatu4i._.js +55 -0
- package/standalone/.next/server/chunks/ssr/_0-zp1-t._.js +24 -0
- package/standalone/.next/server/chunks/ssr/_01gprkf._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_02ku0-d._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_04de9zy._.js +22 -0
- package/standalone/.next/server/chunks/ssr/_06iu0wl._.js +14 -0
- package/standalone/.next/server/chunks/ssr/_09fzzrw._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_0_l0f-3._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_0c0xiut._.js +3 -3
- package/standalone/.next/server/chunks/ssr/{_1-kqme0._.js → _0egs9gy._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/_0f77vgb._.js +3 -3
- package/standalone/.next/server/chunks/ssr/_0fxzy4k._.js +25 -0
- package/standalone/.next/server/chunks/ssr/_0kp9tyy._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_0mbgqw2._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_0nlc7lw._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_0o60joc._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_0o6a-0c._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_0p296dl._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_0qilx29._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_0qt0tus._.js +34 -0
- package/standalone/.next/server/chunks/ssr/_0vyqwim._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_0xquvzm._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_0y39xwb._.js +11 -0
- package/standalone/.next/server/chunks/ssr/_0zush3e._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_12xqut4._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_1337yek._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_15cf0-b._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_15p60kc._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_17dj9--._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_1_z-mrp._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_1btalzp._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_1bxaf69._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_1dwrw9s._.js +3 -0
- package/standalone/.next/server/chunks/ssr/{_0ov6iy1._.js → _1ejg55c._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/_1glp2ss._.js +24 -0
- package/standalone/.next/server/chunks/ssr/_1hisxge._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_1kstox-._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_1m5s4f8._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_1qtzca_._.js +3 -0
- package/standalone/.next/server/chunks/ssr/{_1kysa5a._.js → _1s5bp9h._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/_1wb78d8._.js +34 -0
- package/standalone/.next/server/chunks/ssr/_1y5d9t8._.js +6 -0
- package/standalone/.next/server/chunks/ssr/_1zgu74l._.js +7 -7
- package/standalone/.next/server/chunks/ssr/{_1j_ku-q._.js → _20lnu8x._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/{_03lk450._.js → _20wicqx._.js} +3 -3
- package/standalone/.next/server/chunks/ssr/_next-internal_server_app_[locale]_costs_page_actions_16fdpkb.js +3 -0
- package/standalone/.next/server/chunks/ssr/messages_de_json_[json]_cjs_1uig1ud._.js +1 -1
- package/standalone/.next/server/chunks/ssr/messages_en_json_[json]_cjs_206072-._.js +1 -1
- package/standalone/.next/server/chunks/ssr/messages_es_json_[json]_cjs_082yukd._.js +1 -1
- package/standalone/.next/server/chunks/ssr/messages_fr_json_[json]_cjs_0j6-w0i._.js +1 -1
- package/standalone/.next/server/chunks/ssr/node_modules_0j8c3kh._.js +3 -0
- package/standalone/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_1ghuygj._.js +3 -0
- package/standalone/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_1x2xg00._.js +3 -0
- package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0kifgf3.js +4 -0
- package/standalone/.next/server/chunks/ssr/src_components_builds_configuration-icon_tsx_1v42ztc._.js +1 -1
- package/standalone/.next/server/chunks/ssr/src_components_builds_coverage-report-page_tsx_1nhwba1._.js +2 -2
- package/standalone/.next/server/chunks/ssr/src_components_notifications_notifications-page_tsx_19f4ztg._.js +1 -1
- package/standalone/.next/server/chunks/ssr/src_components_push-notifications_push-notifications-page_tsx_1c_b-t4._.js +2 -2
- package/standalone/.next/server/chunks/ssr/src_components_runs_attachment-picker_tsx_0netm9l._.js +1 -1
- package/standalone/.next/server/chunks/ssr/src_components_runs_run-detail-page_tsx_0eje87-._.js +1 -1
- package/standalone/.next/server/chunks/ssr/src_components_runs_runs-page_tsx_0l5-7eu._.js +1 -1
- package/standalone/.next/server/chunks/ssr/src_components_settings-page_tsx_06dxqc7._.js +5 -5
- package/standalone/.next/server/chunks/ssr/src_components_tools_tools-page_tsx_0k1jqcz._.js +2 -2
- package/standalone/.next/server/middleware-build-manifest.js +3 -3
- package/standalone/.next/server/next-font-manifest.js +1 -1
- package/standalone/.next/server/next-font-manifest.json +4 -0
- package/standalone/.next/server/pages/404.html +1 -1
- package/standalone/.next/server/pages/500.html +1 -1
- package/standalone/.next/server/server-reference-manifest.js +1 -1
- package/standalone/.next/server/server-reference-manifest.json +1 -1
- package/standalone/.next/static/chunks/{3b8uo25m50np4.js → 00-wgagfa3jgw.js} +6 -6
- package/standalone/.next/static/chunks/{1_zvnvft13-co.js → 0269se70im5oy.js} +1 -1
- package/standalone/.next/static/chunks/06ww4smr4x1rf.js +46 -0
- package/standalone/.next/static/chunks/0ad6f15x10087.js +31 -0
- package/standalone/.next/static/chunks/{04gmuff_hq-a2.js → 0gi1rut09px9z.js} +1 -1
- package/standalone/.next/static/chunks/0hhv79fjnhx0r.js +1 -0
- package/standalone/.next/static/chunks/0koiigzfqaaxm.js +6 -0
- package/standalone/.next/static/chunks/0lz2yyevf796v.js +57 -0
- package/standalone/.next/static/chunks/{12rdpylf5_1s1.js → 0n_3nenvq-cdq.js} +1 -1
- package/standalone/.next/static/chunks/{2g3hfv0bu6-ac.js → 0nsdo6d126qko.js} +1 -1
- package/standalone/.next/static/chunks/0tydvosk1yzd3.js +9 -0
- package/standalone/.next/static/chunks/{11rdgo_6b41l1.js → 0vh2j_0-i7_4a.js} +2 -2
- package/standalone/.next/static/chunks/0x7ht_1kzfirv.js +3 -0
- package/standalone/.next/static/chunks/{2lgln0a2k277h.js → 0xge_x1_gyy-7.js} +1 -1
- package/standalone/.next/static/chunks/0y9oq83e4ty93.js +29 -0
- package/standalone/.next/static/chunks/10ugqh884daci.js +67 -0
- package/standalone/.next/static/chunks/167jr5pbpylis.js +7 -0
- package/standalone/.next/static/chunks/{2vjc_-wvtw1hf.js → 18rpe2d8mq3kd.js} +3 -3
- package/standalone/.next/static/chunks/1c285hxt_qxlx.js +46 -0
- package/standalone/.next/static/chunks/1f3ggqgs3erm7.js +41 -0
- package/standalone/.next/static/chunks/1f3hspf4q04c7.js +1 -0
- package/standalone/.next/static/chunks/1g8c1oh-w22rr.js +54 -0
- package/standalone/.next/static/chunks/1h680dhlld_lc.js +33 -0
- package/standalone/.next/static/chunks/1hymkpu62xhp8.js +33 -0
- package/standalone/.next/static/chunks/{12kemc9g02r2c.js → 1l-ift-80ao1c.js} +1 -1
- package/standalone/.next/static/chunks/1nz8ddeplq5hs.js +1 -0
- package/standalone/.next/static/chunks/1qecuivo6a47u.css +1 -0
- package/standalone/.next/static/chunks/1r9r_g25rp8ak.js +23 -0
- package/standalone/.next/static/chunks/{0x7pt5btcphku.js → 1uwz2ko2jqwtz.js} +1 -1
- package/standalone/.next/static/chunks/1v5zb8ln1rz2d.js +1 -0
- package/standalone/.next/static/chunks/{0ai0x7vc1931l.js → 1xjs526g101xh.js} +1 -1
- package/standalone/.next/static/chunks/{3369nhs1_otwi.js → 2-duyp_kl5qx9.js} +1 -1
- package/standalone/.next/static/chunks/{3roht5nbja0a_.js → 21di8-zv-5qvx.js} +18 -18
- package/standalone/.next/static/chunks/22d7hj9vwqj9p.js +1 -0
- package/standalone/.next/static/chunks/{1lnlrcypmvv5h.js → 24jkxx9dbxh1h.js} +1 -1
- package/standalone/.next/static/chunks/{3pj0v38s6yr9s.js → 28vxarecfoquo.js} +4 -4
- package/standalone/.next/static/chunks/28z95ky0z7tkb.js +10 -0
- package/standalone/.next/static/chunks/2ayopd7367rqs.js +41 -0
- package/standalone/.next/static/chunks/2azupfg2-5j-p.js +1 -0
- package/standalone/.next/static/chunks/2brlnpt__4ftd.js +1 -0
- package/standalone/.next/static/chunks/2k_pfyxmtuoy5.js +1 -0
- package/standalone/.next/static/chunks/2km-n4_gmq7cl.js +1 -0
- package/standalone/.next/static/chunks/2llvq19x9do52.js +9 -0
- package/standalone/.next/static/chunks/{1biwep24jyw3_.js → 2qedr2wefau4t.js} +1 -1
- package/standalone/.next/static/chunks/2wb15vf48-edn.js +92 -0
- package/standalone/.next/static/chunks/{0b33bs18huezl.js → 2x2_7-5jm0gme.js} +15 -15
- package/standalone/.next/static/chunks/2yjrhue4lxrng.js +1 -0
- package/standalone/.next/static/chunks/324kabhuasm-p.js +53 -0
- package/standalone/.next/static/chunks/34jvsrj9xubhb.js +1 -0
- package/standalone/.next/static/chunks/38oh9ov0j80rj.js +12 -0
- package/standalone/.next/static/chunks/{42n596b3nvu1d.js → 38z6ydb1jtugp.js} +9 -9
- package/standalone/.next/static/chunks/{06ko8c02ly6ua.js → 3b7o_8v0u__4p.js} +1 -1
- package/standalone/.next/static/chunks/3e31jo--0j7bd.js +1 -0
- package/standalone/.next/static/chunks/3llt9fqdrs6_3.js +7 -0
- package/standalone/.next/static/chunks/3m3riu0uoz_w0.js +64 -0
- package/standalone/.next/static/chunks/3s_cg15bmegsq.js +64 -0
- package/standalone/.next/static/chunks/{1il4firsh2p_o.js → 3tulld0sh2yxv.js} +1 -1
- package/standalone/.next/static/chunks/3zr5h7dm94-d3.js +1 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__082mwbz._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__08rs4kl._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0ejd120._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0epw197._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0erekw9._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0l8fuzs._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0m09s9s._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0o4kf3w._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0q7pwvx._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0quwt4e._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0r2qqym._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0rafxyp._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0rxa3sz._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0sxnukz._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0tck2gw._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0upntz8._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0w7u33h._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0wccpuq._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0wq5_-0._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0x8p1h0._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0yq7gle._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0yvl0kj._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0yyj4bs._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1-q8hnm._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__11i-u3m._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__11wdfkm._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__13-bmbg._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__14sr2n9._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__15zrchx._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__17im3wm._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__17j6ax7._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__19bpnrg._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__19y6-lp._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1_8gar4._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1_m78-y._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1_osj_0._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1_xtyhp._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1ba1y6w._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1d-p62y._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1e2tfpn._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1fw5scf._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1g0rhrl._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1h6a01c._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1i54hfr._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1ismp8w._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1kgh2tn._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1l0a05x._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1levtv0._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1mk80rh._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1n58dbx._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1nxvyuj._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1o4ho5v._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1osqj7h._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1oxgsjg._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1r9m70u._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1t1-ozx._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1tj3th9._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1v_176-._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1wnx190._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1wsm3gj._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1ygwh5f._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__205s18n._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__20m339t._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__216tiae._.js +0 -3
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0__ku3o._.js +0 -35
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0f7usu6._.js +0 -3
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0fa4g67._.js +0 -3
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ybu1dj._.js +0 -3
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ywelz9._.js +0 -55
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__114998b._.js +0 -3
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__144jx4y._.js +0 -35
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__17mewsc._.js +0 -3
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1lx9kov._.js +0 -50
- package/standalone/.next/server/chunks/ssr/_03edwuc._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_03mo_w3._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_065924f._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_0a8xyjk._.js +0 -34
- package/standalone/.next/server/chunks/ssr/_0dsosms._.js +0 -34
- package/standalone/.next/server/chunks/ssr/_0kx9ux4._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_0la2zju._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_0mcyq3z._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_0ocxapn._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_0p03tt8._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_0qi9ubx._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_0s55i9k._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_0w5dl6y._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_1-3kr_6._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_1-h8fzh._.js +0 -24
- package/standalone/.next/server/chunks/ssr/_15_tlq_._.js +0 -6
- package/standalone/.next/server/chunks/ssr/_1_-b2as._.js +0 -24
- package/standalone/.next/server/chunks/ssr/_1ax0n4o._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_1bedv0f._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_1cg5e7d._.js +0 -55
- package/standalone/.next/server/chunks/ssr/_1dre7jj._.js +0 -9
- package/standalone/.next/server/chunks/ssr/_1h8h0mh._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_1j6x49s._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_1m3mq_d._.js +0 -42
- package/standalone/.next/server/chunks/ssr/_1q7k2_j._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_1qanfz-._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_1qu6yg5._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_1rgxkh5._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_1rqv83r._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_1sn2hfw._.js +0 -14
- package/standalone/.next/server/chunks/ssr/_1w9iqqu._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_1y1-frz._.js +0 -22
- package/standalone/.next/server/chunks/ssr/_1zfs9qf._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_1zxg4ba._.js +0 -3
- package/standalone/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_0qgkxbt._.js +0 -3
- package/standalone/.next/static/chunks/08q6vr-p-cstj.js +0 -29
- package/standalone/.next/static/chunks/0_zeonk2mtnf-.js +0 -1
- package/standalone/.next/static/chunks/0buuj5lld90he.css +0 -1
- package/standalone/.next/static/chunks/0bviczmoov5a2.js +0 -1
- package/standalone/.next/static/chunks/0ff5gudlpx2v5.js +0 -1
- package/standalone/.next/static/chunks/0piy74xklzjfr.js +0 -62
- package/standalone/.next/static/chunks/1-eifwvqj9be1.js +0 -1
- package/standalone/.next/static/chunks/11jwq4xw0a435.js +0 -64
- package/standalone/.next/static/chunks/17uchsfglg1ck.js +0 -73
- package/standalone/.next/static/chunks/1_82pgfh8i49s.js +0 -1
- package/standalone/.next/static/chunks/1t3vla-ambxbp.js +0 -6
- package/standalone/.next/static/chunks/1uc144yy_2oye.js +0 -3
- package/standalone/.next/static/chunks/2358pwl17z6qf.js +0 -41
- package/standalone/.next/static/chunks/25ugyd34t2mrk.js +0 -1
- package/standalone/.next/static/chunks/28lukaj4hpvlk.js +0 -63
- package/standalone/.next/static/chunks/2efb8ggk_k58p.js +0 -53
- package/standalone/.next/static/chunks/2eidepo22ts0u.js +0 -1
- package/standalone/.next/static/chunks/2hd3kczfekev9.js +0 -12
- package/standalone/.next/static/chunks/2k1pvryqz_c4u.js +0 -1
- package/standalone/.next/static/chunks/2nzg7au4ezqgc.js +0 -109
- package/standalone/.next/static/chunks/2ub8d_20l7ahg.js +0 -54
- package/standalone/.next/static/chunks/2v3vffkcv30_q.js +0 -8
- package/standalone/.next/static/chunks/2y3inehs64srx.js +0 -39
- package/standalone/.next/static/chunks/2z2vm371tkfeo.js +0 -39
- package/standalone/.next/static/chunks/3-8aipql92ik4.js +0 -46
- package/standalone/.next/static/chunks/3-doerwkk9tw0.js +0 -57
- package/standalone/.next/static/chunks/300j0k53l2xf4.js +0 -7
- package/standalone/.next/static/chunks/38cr_upvs02u3.js +0 -10
- package/standalone/.next/static/chunks/3ev0nt_zzxoc6.js +0 -1
- package/standalone/.next/static/chunks/3he_se7z8qr9v.js +0 -1
- package/standalone/.next/static/chunks/3w11s4sn96-rw.js +0 -1
- package/standalone/.next/static/chunks/3ylqdy-23qzuz.js +0 -54
- package/standalone/.next/static/chunks/3yvgowlcy4bok.js +0 -7
- package/standalone/.next/static/chunks/43-yobagq1112.js +0 -1
- package/standalone/.next/static/chunks/44v5iw1qe3el2.js +0 -9
- /package/standalone/.next/static/{OS8UYgZ5MOMdBZuXMlpNG → fqOmtAGSGlY51xUvvOKyW}/_buildManifest.js +0 -0
- /package/standalone/.next/static/{OS8UYgZ5MOMdBZuXMlpNG → fqOmtAGSGlY51xUvvOKyW}/_clientMiddlewareManifest.js +0 -0
- /package/standalone/.next/static/{OS8UYgZ5MOMdBZuXMlpNG → fqOmtAGSGlY51xUvvOKyW}/_ssgManifest.js +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,340953,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(30030),n=e.i(820783),i=e.i(326999),s=e.i(981140),l=Object.defineProperty,o=(e,t)=>l(e,"name",{value:t,configurable:!0}),[d,c]=(0,r.createContextScope)("AlertDialog",[i.createDialogScope]),u=(0,i.createDialogScope)(),p=o(e=>{let{__scopeAlertDialog:a,...r}=e,n=u(a);return(0,t.jsx)(i.Root,{...n,...r,modal:!0})},"AlertDialog"),h=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...n}=e,s=u(r);return(0,t.jsx)(i.Trigger,{...s,...n,ref:a})},"AlertDialogTrigger")),x=o(e=>{let{__scopeAlertDialog:a,...r}=e,n=u(a);return(0,t.jsx)(i.Portal,{...n,...r})},"AlertDialogPortal"),f=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...n}=e,s=u(r);return(0,t.jsx)(i.Overlay,{...s,...n,ref:a})},"AlertDialogOverlay")),[g,b]=d("AlertDialogContent"),m=a.forwardRef(o(function(e,r){let{__scopeAlertDialog:l,children:o,...d}=e,c=u(l),p=a.useRef(null),h=(0,n.useComposedRefs)(r,p),x=a.useRef(null);return(0,t.jsx)(g,{scope:l,cancelRef:x,children:(0,t.jsx)(i.Content,{role:"alertdialog",...c,...d,ref:h,onOpenAutoFocus:(0,s.composeEventHandlers)(d.onOpenAutoFocus,e=>{e.preventDefault(),x.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:o})})},"AlertDialogContent")),v=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...n}=e,s=u(r);return(0,t.jsx)(i.Title,{...s,...n,ref:a})},"AlertDialogTitle")),j=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...n}=e,s=u(r);return(0,t.jsx)(i.Description,{...s,...n,ref:a})},"AlertDialogDescription")),w=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...n}=e,s=u(r);return(0,t.jsx)(i.Close,{...s,...n,ref:a})},"AlertDialogAction")),y=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...s}=e,{cancelRef:l}=b("AlertDialogCancel",r),o=u(r),d=(0,n.useComposedRefs)(a,l);return(0,t.jsx)(i.Close,{...o,...s,ref:d})},"AlertDialogCancel"));e.s(["Action",0,w,"AlertDialog",0,p,"AlertDialogAction",0,w,"AlertDialogCancel",0,y,"AlertDialogContent",0,m,"AlertDialogDescription",0,j,"AlertDialogOverlay",0,f,"AlertDialogPortal",0,x,"AlertDialogTitle",0,v,"AlertDialogTrigger",0,h,"Cancel",0,y,"Content",0,m,"Description",0,j,"Overlay",0,f,"Portal",0,x,"Root",0,p,"Title",0,v,"Trigger",0,h,"createAlertDialogScope",0,c],691162);var C=e.i(691162),C=C,k=e.i(975157),S=e.i(519455);function N({...e}){return(0,t.jsx)(C.Root,{"data-slot":"alert-dialog",...e})}function T({...e}){return(0,t.jsx)(C.Trigger,{"data-slot":"alert-dialog-trigger",...e})}function P({...e}){return(0,t.jsx)(C.Portal,{"data-slot":"alert-dialog-portal",...e})}function D({className:e,...a}){return(0,t.jsx)(C.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),...a})}function A({className:e,size:a="default",...r}){return(0,t.jsxs)(P,{children:[(0,t.jsx)(D,{}),(0,t.jsx)(C.Content,{"data-slot":"alert-dialog-content","data-size":a,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),...r})]})}function R({className:e,...a}){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),...a})}function E({className:e,...a}){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),...a})}function I({className:e,...a}){return(0,t.jsx)(C.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),...a})}function z({className:e,...a}){return(0,t.jsx)(C.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),...a})}function B({className:e,variant:a="default",size:r="default",...n}){return(0,t.jsx)(S.Button,{variant:a,size:r,asChild:!0,children:(0,t.jsx)(C.Action,{"data-slot":"alert-dialog-action",className:(0,k.cn)(e),...n})})}function _({className:e,variant:a="outline",size:r="default",...n}){return(0,t.jsx)(S.Button,{variant:a,size:r,asChild:!0,children:(0,t.jsx)(C.Cancel,{"data-slot":"alert-dialog-cancel",className:(0,k.cn)(e),...n})})}e.s(["ConfirmationDialog",0,function({actionLabel:e,cancelLabel:a,description:r,onConfirm:n,onOpenChange:i,open:s,title:l,trigger:o}){return(0,t.jsxs)(N,{onOpenChange:i,open:s,children:[o&&(0,t.jsx)(T,{asChild:!0,children:o}),(0,t.jsxs)(A,{children:[(0,t.jsxs)(R,{children:[(0,t.jsx)(I,{children:l}),(0,t.jsx)(z,{children:r})]}),(0,t.jsxs)(E,{children:[(0,t.jsx)(_,{children:a}),(0,t.jsx)(B,{onClick:()=>void n(),variant:"destructive",children:e})]})]})]})}],340953)},929592,e=>{"use strict";var t=e.i(843476),a=e.i(225913),r=e.i(975157);let n=(0,a.cva)("group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"}},defaultVariants:{variant:"default"}});e.s(["Alert",0,function({className:e,variant:a,...i}){return(0,t.jsx)("div",{"data-slot":"alert",role:"alert",className:(0,r.cn)(n({variant:a}),e),...i})},"AlertDescription",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-description",className:(0,r.cn)("text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4",e),...a})},"AlertTitle",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-title",className:(0,r.cn)("font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground",e),...a})}])},515288,e=>{"use strict";var t=e.i(843476),a=e.i(975157);e.s(["Card",0,function({className:e,size:r="default",...n}){return(0,t.jsx)("div",{"data-slot":"card","data-size":r,className:(0,a.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>[data-slot=card-header]]:pt-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...n})},"CardAction",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-action",className:(0,a.cn)("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...r})},"CardContent",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,a.cn)("px-(--card-spacing)",e),...r})},"CardDescription",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,a.cn)("text-sm text-muted-foreground",e),...r})},"CardFooter",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-footer",className:(0,a.cn)("flex items-center rounded-b-xl border-t bg-muted/50 p-(--card-spacing)",e),...r})},"CardHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,a.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl bg-muted/40 px-(--card-spacing) py-(--card-spacing) not-last:border-b has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]",e),...r})},"CardTitle",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,a.cn)("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e),...r})}])},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),a=e.i(975157),r=e.i(758379),r=r;e.s(["Spinner",0,function({className:e,...n}){return(0,t.jsx)(r.default,{"data-slot":"spinner",role:"status","aria-label":"Loading",className:(0,a.cn)("size-4 animate-spin",e),...n})}],987968)},487486,e=>{"use strict";var t=e.i(843476),a=e.i(225913),r=e.i(586011),n=e.i(975157);let i=(0,a.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:a="default",asChild:s=!1,...l}){let o=s?r.Slot.Root:"span";return(0,t.jsx)(o,{className:(0,n.cn)(i({variant:a}),e),"data-slot":"badge","data-variant":a,...l})}])},784774,e=>{"use strict";var t=e.i(843476),a=e.i(975157);e.s(["Table",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,t.jsx)("table",{"data-slot":"table",className:(0,a.cn)("w-full caption-bottom text-sm",e),...r})})},"TableBody",0,function({className:e,...r}){return(0,t.jsx)("tbody",{"data-slot":"table-body",className:(0,a.cn)("[&_tr:last-child]:border-0",e),...r})},"TableCell",0,function({className:e,...r}){return(0,t.jsx)("td",{"data-slot":"table-cell",className:(0,a.cn)("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",e),...r})},"TableFooter",0,function({className:e,...r}){return(0,t.jsx)("tfoot",{"data-slot":"table-footer",className:(0,a.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...r})},"TableHead",0,function({className:e,...r}){return(0,t.jsx)("th",{"data-slot":"table-head",className:(0,a.cn)("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",e),...r})},"TableHeader",0,function({className:e,...r}){return(0,t.jsx)("thead",{"data-slot":"table-header",className:(0,a.cn)("[&_tr]:border-b",e),...r})},"TableRow",0,function({className:e,...r}){return(0,t.jsx)("tr",{"data-slot":"table-row",className:(0,a.cn)("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",e),...r})}])},257428,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(820783),n=e.i(30030),i=e.i(981140),s=e.i(369340),l=e.i(635804),o=e.i(296626),d=e.i(248425),c=Object.defineProperty,u=(e,t)=>c(e,"name",{value:t,configurable:!0}),p="Checkbox",[h,x]=(0,n.createContextScope)(p),[f,g]=h(p);function b(e){let{__scopeCheckbox:r,checked:n,children:i,defaultChecked:l,disabled:o,form:d,name:c,onCheckedChange:u,required:h,value:x="on",internal_do_not_use_render:g}=e,[b,m]=(0,s.useControllableState)({prop:n,defaultProp:l??!1,onChange:u,caller:p}),[v,j]=a.useState(null),[w,k]=a.useState(null),S=a.useRef(!1),[N,T]=a.useReducer(e=>e+1,0),P=!v||!!d||!!v.closest("form"),D={checked:b,disabled:o,setChecked:m,control:v,setControl:j,name:c,form:d,value:x,hasConsumerStoppedPropagationRef:S,userInteractionCount:N,onUserInteraction:T,required:h,defaultChecked:!C(l)&&l,isFormControl:P,bubbleInput:w,setBubbleInput:k};return(0,t.jsx)(f,{scope:r,...D,children:y(g)?g(D):i})}u(b,"CheckboxProvider");var m=a.forwardRef(u(function({__scopeCheckbox:e,onKeyDown:n,onClick:s,...l},o){let{control:c,value:p,disabled:h,checked:x,required:f,setControl:b,setChecked:m,hasConsumerStoppedPropagationRef:v,onUserInteraction:j,isFormControl:w,bubbleInput:y}=g("CheckboxTrigger",e),S=(0,r.useComposedRefs)(o,b),N=a.useRef(x);return a.useEffect(()=>{let e=c?.form;if(e){let t=u(()=>m(N.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[c,m]),(0,t.jsx)(d.Primitive.button,{type:"button",role:"checkbox","aria-checked":C(x)?"mixed":x,"aria-required":f,"data-state":k(x),"data-disabled":h?"":void 0,disabled:h,value:p,...l,ref:S,onKeyDown:(0,i.composeEventHandlers)(n,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,i.composeEventHandlers)(s,e=>{j(),m(e=>!!C(e)||!e),y&&w&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())})})},"CheckboxTrigger")),v=a.forwardRef(u(function(e,a){let{__scopeCheckbox:r,name:n,checked:i,defaultChecked:s,required:l,disabled:o,value:d,onCheckedChange:c,form:u,...p}=e;return(0,t.jsx)(b,{__scopeCheckbox:r,checked:i,defaultChecked:s,disabled:o,required:l,onCheckedChange:c,name:n,form:u,value:d,internal_do_not_use_render:({isFormControl:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m,{...p,ref:a,__scopeCheckbox:r}),e&&(0,t.jsx)(w,{__scopeCheckbox:r})]})})},"Checkbox")),j=a.forwardRef(u(function(e,a){let{__scopeCheckbox:r,forceMount:n,...i}=e,s=g("CheckboxIndicator",r);return(0,t.jsx)(o.Presence,{present:n||C(s.checked)||!0===s.checked,children:(0,t.jsx)(d.Primitive.span,{"data-state":k(s.checked),"data-disabled":s.disabled?"":void 0,...i,ref:a,style:{pointerEvents:"none",...e.style}})})},"CheckboxIndicator")),w=a.forwardRef(u(function({__scopeCheckbox:e,onClick:n,...s},o){let{control:c,hasConsumerStoppedPropagationRef:u,userInteractionCount:p,checked:h,defaultChecked:x,required:f,disabled:b,name:m,value:v,form:j,bubbleInput:w,setBubbleInput:y}=g("CheckboxBubbleInput",e),k=(0,r.useComposedRefs)(o,y),S=(0,l.useSize)(c),N=a.useRef(!1),T=a.useRef(h),P=a.useRef(p);a.useEffect(()=>{if(!w)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=p!==P.current;P.current=p;let a=T.current!==h;T.current=h;let r=!(t&&u.current);if(a&&e){N.current=!t;let a=new Event("click",{bubbles:r});w.indeterminate=C(h),e.call(w,!C(h)&&h),w.dispatchEvent(a),N.current=!1}},[w,h,u,p]);let D=a.useRef(!C(h)&&h);return(0,t.jsx)(d.Primitive.input,{type:"checkbox","aria-hidden":!0,defaultChecked:x??D.current,required:f,disabled:b,name:m,value:v,form:j,...s,tabIndex:-1,ref:k,onClick:(0,i.composeEventHandlers)(n,e=>{N.current&&e.stopPropagation()}),style:{...s.style,...S,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"CheckboxBubbleInput"));function y(e){return"function"==typeof e}function C(e){return"indeterminate"===e}function k(e){return C(e)?"indeterminate":e?"checked":"unchecked"}u(y,"isFunction"),u(C,"isIndeterminate"),u(k,"getState"),e.s(["Checkbox",0,v,"CheckboxIndicator",0,j,"Indicator",0,j,"Root",0,v,"createCheckboxScope",0,x,"unstable_BubbleInput",0,w,"unstable_CheckboxBubbleInput",0,w,"unstable_CheckboxProvider",0,b,"unstable_CheckboxTrigger",0,m,"unstable_Provider",0,b,"unstable_Trigger",0,m],388474);var S=e.i(388474),S=S,N=e.i(975157),T=e.i(593698);e.s(["Checkbox",0,function({className:e,...a}){return(0,t.jsx)(S.Root,{"data-slot":"checkbox",className:(0,N.cn)("peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input transition-colors outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary",e),...a,children:(0,t.jsx)(S.Indicator,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none [&>svg]:size-3.5",children:(0,t.jsx)(T.CheckIcon,{})})})}],257428)},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)},406930,e=>{"use strict";let t=(0,e.i(456420).default)("list-filter",[["path",{d:"M2 5h20",key:"1fs1ex"}],["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M9 19h6",key:"456am0"}]]);e.s(["ListFilter",0,t],406930)},551757,e=>{"use strict";let t=(0,e.i(456420).default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["CheckCircle2",0,t],551757)},211545,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(97194),n=e.i(551757),i=e.i(406930),s=e.i(730274),l=e.i(573474),o=e.i(263676),d=e.i(861745),c=e.i(948148),u=e.i(340953),p=e.i(929592),h=e.i(487486),x=e.i(519455),f=e.i(515288),g=e.i(257428),b=e.i(816484),m=e.i(987968),v=e.i(784774),j=e.i(520133),w=e.i(637611),y=e.i(360583),C=e.i(975157),k=e.i(171502),S=e.i(302493);let N=`
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,340953,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(30030),n=e.i(820783),i=e.i(326999),s=e.i(981140),l=Object.defineProperty,o=(e,t)=>l(e,"name",{value:t,configurable:!0}),[d,c]=(0,r.createContextScope)("AlertDialog",[i.createDialogScope]),u=(0,i.createDialogScope)(),p=o(e=>{let{__scopeAlertDialog:a,...r}=e,n=u(a);return(0,t.jsx)(i.Root,{...n,...r,modal:!0})},"AlertDialog"),h=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...n}=e,s=u(r);return(0,t.jsx)(i.Trigger,{...s,...n,ref:a})},"AlertDialogTrigger")),f=o(e=>{let{__scopeAlertDialog:a,...r}=e,n=u(a);return(0,t.jsx)(i.Portal,{...n,...r})},"AlertDialogPortal"),x=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...n}=e,s=u(r);return(0,t.jsx)(i.Overlay,{...s,...n,ref:a})},"AlertDialogOverlay")),[g,b]=d("AlertDialogContent"),m=a.forwardRef(o(function(e,r){let{__scopeAlertDialog:l,children:o,...d}=e,c=u(l),p=a.useRef(null),h=(0,n.useComposedRefs)(r,p),f=a.useRef(null);return(0,t.jsx)(g,{scope:l,cancelRef:f,children:(0,t.jsx)(i.Content,{role:"alertdialog",...c,...d,ref:h,onOpenAutoFocus:(0,s.composeEventHandlers)(d.onOpenAutoFocus,e=>{e.preventDefault(),f.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:o})})},"AlertDialogContent")),v=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...n}=e,s=u(r);return(0,t.jsx)(i.Title,{...s,...n,ref:a})},"AlertDialogTitle")),j=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...n}=e,s=u(r);return(0,t.jsx)(i.Description,{...s,...n,ref:a})},"AlertDialogDescription")),w=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...n}=e,s=u(r);return(0,t.jsx)(i.Close,{...s,...n,ref:a})},"AlertDialogAction")),y=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...s}=e,{cancelRef:l}=b("AlertDialogCancel",r),o=u(r),d=(0,n.useComposedRefs)(a,l);return(0,t.jsx)(i.Close,{...o,...s,ref:d})},"AlertDialogCancel"));e.s(["Action",0,w,"AlertDialog",0,p,"AlertDialogAction",0,w,"AlertDialogCancel",0,y,"AlertDialogContent",0,m,"AlertDialogDescription",0,j,"AlertDialogOverlay",0,x,"AlertDialogPortal",0,f,"AlertDialogTitle",0,v,"AlertDialogTrigger",0,h,"Cancel",0,y,"Content",0,m,"Description",0,j,"Overlay",0,x,"Portal",0,f,"Root",0,p,"Title",0,v,"Trigger",0,h,"createAlertDialogScope",0,c],691162);var C=e.i(691162),C=C,k=e.i(975157),S=e.i(519455);function N({...e}){return(0,t.jsx)(C.Root,{"data-slot":"alert-dialog",...e})}function T({...e}){return(0,t.jsx)(C.Trigger,{"data-slot":"alert-dialog-trigger",...e})}function P({...e}){return(0,t.jsx)(C.Portal,{"data-slot":"alert-dialog-portal",...e})}function D({className:e,...a}){return(0,t.jsx)(C.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),...a})}function A({className:e,size:a="default",...r}){return(0,t.jsxs)(P,{children:[(0,t.jsx)(D,{}),(0,t.jsx)(C.Content,{"data-slot":"alert-dialog-content","data-size":a,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),...r})]})}function R({className:e,...a}){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),...a})}function E({className:e,...a}){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),...a})}function I({className:e,...a}){return(0,t.jsx)(C.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),...a})}function z({className:e,...a}){return(0,t.jsx)(C.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),...a})}function B({className:e,variant:a="default",size:r="default",...n}){return(0,t.jsx)(S.Button,{variant:a,size:r,asChild:!0,children:(0,t.jsx)(C.Action,{"data-slot":"alert-dialog-action",className:(0,k.cn)(e),...n})})}function _({className:e,variant:a="outline",size:r="default",...n}){return(0,t.jsx)(S.Button,{variant:a,size:r,asChild:!0,children:(0,t.jsx)(C.Cancel,{"data-slot":"alert-dialog-cancel",className:(0,k.cn)(e),...n})})}e.s(["ConfirmationDialog",0,function({actionLabel:e,cancelLabel:a,description:r,onConfirm:n,onOpenChange:i,open:s,title:l,trigger:o}){return(0,t.jsxs)(N,{onOpenChange:i,open:s,children:[o&&(0,t.jsx)(T,{asChild:!0,children:o}),(0,t.jsxs)(A,{children:[(0,t.jsxs)(R,{children:[(0,t.jsx)(I,{children:l}),(0,t.jsx)(z,{children:r})]}),(0,t.jsxs)(E,{children:[(0,t.jsx)(_,{children:a}),(0,t.jsx)(B,{onClick:()=>void n(),variant:"destructive",children:e})]})]})]})}],340953)},929592,e=>{"use strict";var t=e.i(843476),a=e.i(225913),r=e.i(975157);let n=(0,a.cva)("group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"}},defaultVariants:{variant:"default"}});e.s(["Alert",0,function({className:e,variant:a,...i}){return(0,t.jsx)("div",{"data-slot":"alert",role:"alert",className:(0,r.cn)(n({variant:a}),e),...i})},"AlertDescription",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-description",className:(0,r.cn)("text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4",e),...a})},"AlertTitle",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-title",className:(0,r.cn)("font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground",e),...a})}])},515288,e=>{"use strict";var t=e.i(843476),a=e.i(975157);e.s(["Card",0,function({className:e,size:r="default",...n}){return(0,t.jsx)("div",{"data-slot":"card","data-size":r,className:(0,a.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>[data-slot=card-header]]:pt-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...n})},"CardAction",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-action",className:(0,a.cn)("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...r})},"CardContent",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,a.cn)("px-(--card-spacing)",e),...r})},"CardDescription",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,a.cn)("text-sm text-muted-foreground",e),...r})},"CardFooter",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-footer",className:(0,a.cn)("flex items-center rounded-b-xl border-t bg-muted/50 p-(--card-spacing)",e),...r})},"CardHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,a.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl bg-muted/40 px-(--card-spacing) py-(--card-spacing) not-last:border-b has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]",e),...r})},"CardTitle",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,a.cn)("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e),...r})}])},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),a=e.i(975157),r=e.i(758379),r=r;e.s(["Spinner",0,function({className:e,...n}){return(0,t.jsx)(r.default,{"data-slot":"spinner",role:"status","aria-label":"Loading",className:(0,a.cn)("size-4 animate-spin",e),...n})}],987968)},487486,e=>{"use strict";var t=e.i(843476),a=e.i(225913),r=e.i(586011),n=e.i(975157);let i=(0,a.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:a="default",asChild:s=!1,...l}){let o=s?r.Slot.Root:"span";return(0,t.jsx)(o,{className:(0,n.cn)(i({variant:a}),e),"data-slot":"badge","data-variant":a,...l})}])},784774,e=>{"use strict";var t=e.i(843476),a=e.i(975157);e.s(["Table",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,t.jsx)("table",{"data-slot":"table",className:(0,a.cn)("w-full caption-bottom text-sm",e),...r})})},"TableBody",0,function({className:e,...r}){return(0,t.jsx)("tbody",{"data-slot":"table-body",className:(0,a.cn)("[&_tr:last-child]:border-0",e),...r})},"TableCell",0,function({className:e,...r}){return(0,t.jsx)("td",{"data-slot":"table-cell",className:(0,a.cn)("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",e),...r})},"TableFooter",0,function({className:e,...r}){return(0,t.jsx)("tfoot",{"data-slot":"table-footer",className:(0,a.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...r})},"TableHead",0,function({className:e,...r}){return(0,t.jsx)("th",{"data-slot":"table-head",className:(0,a.cn)("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",e),...r})},"TableHeader",0,function({className:e,...r}){return(0,t.jsx)("thead",{"data-slot":"table-header",className:(0,a.cn)("[&_tr]:border-b",e),...r})},"TableRow",0,function({className:e,...r}){return(0,t.jsx)("tr",{"data-slot":"table-row",className:(0,a.cn)("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",e),...r})}])},257428,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(820783),n=e.i(30030),i=e.i(981140),s=e.i(369340),l=e.i(635804),o=e.i(296626),d=e.i(248425),c=Object.defineProperty,u=(e,t)=>c(e,"name",{value:t,configurable:!0}),p="Checkbox",[h,f]=(0,n.createContextScope)(p),[x,g]=h(p);function b(e){let{__scopeCheckbox:r,checked:n,children:i,defaultChecked:l,disabled:o,form:d,name:c,onCheckedChange:u,required:h,value:f="on",internal_do_not_use_render:g}=e,[b,m]=(0,s.useControllableState)({prop:n,defaultProp:l??!1,onChange:u,caller:p}),[v,j]=a.useState(null),[w,k]=a.useState(null),S=a.useRef(!1),[N,T]=a.useReducer(e=>e+1,0),P=!v||!!d||!!v.closest("form"),D={checked:b,disabled:o,setChecked:m,control:v,setControl:j,name:c,form:d,value:f,hasConsumerStoppedPropagationRef:S,userInteractionCount:N,onUserInteraction:T,required:h,defaultChecked:!C(l)&&l,isFormControl:P,bubbleInput:w,setBubbleInput:k};return(0,t.jsx)(x,{scope:r,...D,children:y(g)?g(D):i})}u(b,"CheckboxProvider");var m=a.forwardRef(u(function({__scopeCheckbox:e,onKeyDown:n,onClick:s,...l},o){let{control:c,value:p,disabled:h,checked:f,required:x,setControl:b,setChecked:m,hasConsumerStoppedPropagationRef:v,onUserInteraction:j,isFormControl:w,bubbleInput:y}=g("CheckboxTrigger",e),S=(0,r.useComposedRefs)(o,b),N=a.useRef(f);return a.useEffect(()=>{let e=c?.form;if(e){let t=u(()=>m(N.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[c,m]),(0,t.jsx)(d.Primitive.button,{type:"button",role:"checkbox","aria-checked":C(f)?"mixed":f,"aria-required":x,"data-state":k(f),"data-disabled":h?"":void 0,disabled:h,value:p,...l,ref:S,onKeyDown:(0,i.composeEventHandlers)(n,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,i.composeEventHandlers)(s,e=>{j(),m(e=>!!C(e)||!e),y&&w&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())})})},"CheckboxTrigger")),v=a.forwardRef(u(function(e,a){let{__scopeCheckbox:r,name:n,checked:i,defaultChecked:s,required:l,disabled:o,value:d,onCheckedChange:c,form:u,...p}=e;return(0,t.jsx)(b,{__scopeCheckbox:r,checked:i,defaultChecked:s,disabled:o,required:l,onCheckedChange:c,name:n,form:u,value:d,internal_do_not_use_render:({isFormControl:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m,{...p,ref:a,__scopeCheckbox:r}),e&&(0,t.jsx)(w,{__scopeCheckbox:r})]})})},"Checkbox")),j=a.forwardRef(u(function(e,a){let{__scopeCheckbox:r,forceMount:n,...i}=e,s=g("CheckboxIndicator",r);return(0,t.jsx)(o.Presence,{present:n||C(s.checked)||!0===s.checked,children:(0,t.jsx)(d.Primitive.span,{"data-state":k(s.checked),"data-disabled":s.disabled?"":void 0,...i,ref:a,style:{pointerEvents:"none",...e.style}})})},"CheckboxIndicator")),w=a.forwardRef(u(function({__scopeCheckbox:e,onClick:n,...s},o){let{control:c,hasConsumerStoppedPropagationRef:u,userInteractionCount:p,checked:h,defaultChecked:f,required:x,disabled:b,name:m,value:v,form:j,bubbleInput:w,setBubbleInput:y}=g("CheckboxBubbleInput",e),k=(0,r.useComposedRefs)(o,y),S=(0,l.useSize)(c),N=a.useRef(!1),T=a.useRef(h),P=a.useRef(p);a.useEffect(()=>{if(!w)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=p!==P.current;P.current=p;let a=T.current!==h;T.current=h;let r=!(t&&u.current);if(a&&e){N.current=!t;let a=new Event("click",{bubbles:r});w.indeterminate=C(h),e.call(w,!C(h)&&h),w.dispatchEvent(a),N.current=!1}},[w,h,u,p]);let D=a.useRef(!C(h)&&h);return(0,t.jsx)(d.Primitive.input,{type:"checkbox","aria-hidden":!0,defaultChecked:f??D.current,required:x,disabled:b,name:m,value:v,form:j,...s,tabIndex:-1,ref:k,onClick:(0,i.composeEventHandlers)(n,e=>{N.current&&e.stopPropagation()}),style:{...s.style,...S,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"CheckboxBubbleInput"));function y(e){return"function"==typeof e}function C(e){return"indeterminate"===e}function k(e){return C(e)?"indeterminate":e?"checked":"unchecked"}u(y,"isFunction"),u(C,"isIndeterminate"),u(k,"getState"),e.s(["Checkbox",0,v,"CheckboxIndicator",0,j,"Indicator",0,j,"Root",0,v,"createCheckboxScope",0,f,"unstable_BubbleInput",0,w,"unstable_CheckboxBubbleInput",0,w,"unstable_CheckboxProvider",0,b,"unstable_CheckboxTrigger",0,m,"unstable_Provider",0,b,"unstable_Trigger",0,m],388474);var S=e.i(388474),S=S,N=e.i(975157),T=e.i(593698);e.s(["Checkbox",0,function({className:e,...a}){return(0,t.jsx)(S.Root,{"data-slot":"checkbox",className:(0,N.cn)("peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input transition-colors outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary",e),...a,children:(0,t.jsx)(S.Indicator,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none [&>svg]:size-3.5",children:(0,t.jsx)(T.CheckIcon,{})})})}],257428)},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)},406930,e=>{"use strict";let t=(0,e.i(456420).default)("list-filter",[["path",{d:"M2 5h20",key:"1fs1ex"}],["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M9 19h6",key:"456am0"}]]);e.s(["ListFilter",0,t],406930)},551757,e=>{"use strict";let t=(0,e.i(456420).default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["CheckCircle2",0,t],551757)},211545,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(97194),n=e.i(551757),i=e.i(406930),s=e.i(730274),l=e.i(573474),o=e.i(263676),d=e.i(861745),c=e.i(948148),u=e.i(340953),p=e.i(929592),h=e.i(487486),f=e.i(519455),x=e.i(515288),g=e.i(257428),b=e.i(816484),m=e.i(987968),v=e.i(784774),j=e.i(520133),w=e.i(637611),y=e.i(360583),C=e.i(975157),k=e.i(171502),S=e.i(302493);let N=`
|
|
2
2
|
key category label description sidebarEnabled browserEnabled webPushEnabled updatedAt
|
|
3
|
-
`;function T(){return window.isSecureContext&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window}function P(e,t){if(!e)return t;let a=/Edg\//.test(e)?"Edge":/OPR\//.test(e)?"Opera":/CriOS\//.test(e)?"Chrome":/FxiOS\//.test(e)?"Firefox":/Chrome\//.test(e)?"Chrome":/Firefox\//.test(e)?"Firefox":/Safari\//.test(e)?"Safari":"Browser",r=/iPad|iPhone|iPod/.test(e)?"iOS":/Android/.test(e)?"Android":/Windows/.test(e)?"Windows":/Macintosh/.test(e)?"macOS":/Linux/.test(e)?"Linux":null;return r?`${a} \xb7 ${r}`:a}e.s(["NotificationsPage",0,function(){let e=(0,c.useTranslations)("notifications"),D=(0,d.useLocale)(),[A,R]=(0,a.useState)([]),[E,I]=(0,a.useState)([]),[z,B]=(0,a.useState)(null),[_,O]=(0,a.useState)([]),[H,$]=(0,a.useState)(null),[q,F]=(0,a.useState)(0),[W,L]=(0,a.useState)(!0),[M,K]=(0,a.useState)(!1),[U,V]=(0,a.useState)(null),[X,Y]=(0,a.useState)(!1),[J,G]=(0,a.useState)(new Set),[Q,Z]=(0,a.useState)(new Set),[ee,et]=(0,a.useState)([]),[ea,er]=(0,a.useState)([]),[en,ei]=(0,a.useState)(!1),[es,el]=(0,a.useState)(null),[eo,ed]=(0,a.useState)("unsupported"),[ec,eu]=(0,a.useState)(!1),[ep,eh]=(0,a.useState)(null),[ex
|
|
3
|
+
`;function T(){return window.isSecureContext&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window}function P(e,t){if(!e)return t;let a=/Edg\//.test(e)?"Edge":/OPR\//.test(e)?"Opera":/CriOS\//.test(e)?"Chrome":/FxiOS\//.test(e)?"Firefox":/Chrome\//.test(e)?"Chrome":/Firefox\//.test(e)?"Firefox":/Safari\//.test(e)?"Safari":"Browser",r=/iPad|iPhone|iPod/.test(e)?"iOS":/Android/.test(e)?"Android":/Windows/.test(e)?"Windows":/Macintosh/.test(e)?"macOS":/Linux/.test(e)?"Linux":null;return r?`${a} \xb7 ${r}`:a}e.s(["NotificationsPage",0,function(){let e=(0,c.useTranslations)("notifications"),D=(0,d.useLocale)(),[A,R]=(0,a.useState)([]),[E,I]=(0,a.useState)([]),[z,B]=(0,a.useState)(null),[_,O]=(0,a.useState)([]),[H,$]=(0,a.useState)(null),[q,F]=(0,a.useState)(0),[W,L]=(0,a.useState)(!0),[M,K]=(0,a.useState)(!1),[U,V]=(0,a.useState)(null),[X,Y]=(0,a.useState)(!1),[J,G]=(0,a.useState)(new Set),[Q,Z]=(0,a.useState)(new Set),[ee,et]=(0,a.useState)([]),[ea,er]=(0,a.useState)([]),[en,ei]=(0,a.useState)(!1),[es,el]=(0,a.useState)(null),[eo,ed]=(0,a.useState)("unsupported"),[ec,eu]=(0,a.useState)(!1),[ep,eh]=(0,a.useState)(null),[ef,ex]=(0,a.useState)(!1),[eg,eb]=(0,a.useState)(null),[em,ev]=(0,a.useState)(null),[ej,ew]=(0,a.useState)(!1),[ey,eC]=(0,a.useState)(!1),ek=(0,a.useRef)(null),eS=(0,a.useCallback)(async()=>{try{let e=await (0,w.controlPlaneRequest)(`query NotificationsPage {
|
|
4
4
|
notifications(first: 100) {
|
|
5
5
|
items { ${S.APP_NOTIFICATION_FIELDS} }
|
|
6
6
|
nextCursor totalCount
|
|
@@ -24,18 +24,18 @@
|
|
|
24
24
|
deleteNotifications(selection: $selection)
|
|
25
25
|
}`,{selection:{all:en,ids:[...J],excludedIds:[...Q],ranges:ee.map(({start:e,end:t})=>({start:e,end:t})),excludedRanges:ea.map(({start:e,end:t})=>({start:e,end:t}))}}),eR(),await eS()}catch(e){V(e instanceof Error?e.message:String(e))}},eI=async()=>{try{await (0,w.controlPlaneRequest)("mutation DeleteAllNotifications { deleteAllNotifications }"),eR(),await eS()}catch(e){V(e instanceof Error?e.message:String(e))}},ez=async(e,t,a)=>{let r={...e,[t]:a};I(t=>t.map(t=>t.key===e.key?r:t)),el(e.key);try{let t=await (0,w.controlPlaneRequest)(`mutation SaveNotificationPreference($input: SaveNotificationPreferenceInput!) {
|
|
26
26
|
saveNotificationPreference(input: $input) { ${N} }
|
|
27
|
-
}`,{input:{typeKey:e.key,sidebarEnabled:r.sidebarEnabled,browserEnabled:r.browserEnabled,webPushEnabled:r.webPushEnabled}});I(a=>a.map(a=>a.key===e.key?t.saveNotificationPreference:a))}catch(t){I(t=>t.map(t=>t.key===e.key?e:t)),V(t instanceof Error?t.message:String(t))}finally{el(null)}},eB=async()=>{if("Notification"in window)try{let e=await window.Notification.requestPermission();ed(e)}catch(e){V(e instanceof Error?e.message:String(e))}},e_=async()=>{
|
|
27
|
+
}`,{input:{typeKey:e.key,sidebarEnabled:r.sidebarEnabled,browserEnabled:r.browserEnabled,webPushEnabled:r.webPushEnabled}});I(a=>a.map(a=>a.key===e.key?t.saveNotificationPreference:a))}catch(t){I(t=>t.map(t=>t.key===e.key?e:t)),V(t instanceof Error?t.message:String(t))}finally{el(null)}},eB=async()=>{if("Notification"in window)try{let e=await window.Notification.requestPermission();ed(e)}catch(e){V(e instanceof Error?e.message:String(e))}},e_=async()=>{ex(!0);try{if(!T())throw Error(e("pushUnsupported"));let t=window.Notification.permission;if("granted"!==t&&(t=await window.Notification.requestPermission(),ed(t)),"granted"!==t)throw Error(e("permissionRequired"));let a=await (0,w.controlPlaneRequest)(`mutation PrepareWebPush {
|
|
28
28
|
prepareWebPush { configured publicKey subscriptionCount }
|
|
29
29
|
}`);if(!a.prepareWebPush.publicKey)throw Error(e("pushKeyUnavailable"));await navigator.serviceWorker.register("/sw.js",{scope:"/",updateViaCache:"none"});let r=await navigator.serviceWorker.ready,n=await r.pushManager.getSubscription(),i=(n??=await r.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:function(e){let t="=".repeat((4-e.length%4)%4),a=window.atob((e+t).replace(/-/g,"+").replace(/_/g,"/")),r=new Uint8Array(new ArrayBuffer(a.length));for(let e=0;e<a.length;e+=1)r[e]=a.charCodeAt(e);return r}(a.prepareWebPush.publicKey)})).toJSON();if(!i.endpoint||!i.keys?.p256dh||!i.keys.auth)throw Error(e("pushSubscriptionInvalid"));let s=await (0,w.controlPlaneRequest)(`mutation RegisterWebPushSubscription($input: RegisterWebPushSubscriptionInput!) {
|
|
30
30
|
registerWebPushSubscription(input: $input) {
|
|
31
31
|
configured publicKey subscriptionCount
|
|
32
32
|
}
|
|
33
|
-
}`,{input:{endpoint:i.endpoint,p256dh:i.keys.p256dh,auth:i.keys.auth,expirationTime:i.expirationTime??null,locale:D,userAgent:navigator.userAgent}});eh(n),B(s.registerWebPushSubscription),V(null),await eS()}catch(e){V(e instanceof Error?e.message:String(e))}finally{
|
|
33
|
+
}`,{input:{endpoint:i.endpoint,p256dh:i.keys.p256dh,auth:i.keys.auth,expirationTime:i.expirationTime??null,locale:D,userAgent:navigator.userAgent}});eh(n),B(s.registerWebPushSubscription),V(null),await eS()}catch(e){V(e instanceof Error?e.message:String(e))}finally{ex(!1)}},eO=async()=>{if(ep){ex(!0);try{let e=ep.endpoint;await ep.unsubscribe(),await (0,w.controlPlaneRequest)(`mutation UnregisterWebPushSubscription($endpoint: String!) {
|
|
34
34
|
unregisterWebPushSubscription(endpoint: $endpoint)
|
|
35
35
|
}`,{endpoint:e}),eh(null);let t=await (0,w.controlPlaneRequest)(`query WebPushState {
|
|
36
36
|
webPushState { configured publicKey subscriptionCount }
|
|
37
|
-
}`);B(t.webPushState),O(t=>t.filter(t=>t.endpoint!==e))}catch(e){V(e instanceof Error?e.message:String(e))}finally{
|
|
37
|
+
}`);B(t.webPushState),O(t=>t.filter(t=>t.endpoint!==e))}catch(e){V(e instanceof Error?e.message:String(e))}finally{ex(!1)}}},eH=async e=>{eb(`test:${e}`),ev(null);try{await (0,w.controlPlaneRequest)(`mutation TestWebPushSubscription($id: ID!) {
|
|
38
38
|
testWebPushSubscription(id: $id)
|
|
39
39
|
}`,{id:e}),ev(e),V(null)}catch(e){V(e instanceof Error?e.message:String(e)),await eS()}finally{eb(null)}},e$=async e=>{eb(`delete:${e.id}`);try{ep?.endpoint===e.endpoint&&(await ep.unsubscribe(),eh(null)),await (0,w.controlPlaneRequest)(`mutation DeleteWebPushSubscription($id: ID!) {
|
|
40
40
|
deleteWebPushSubscription(id: $id)
|
|
41
|
-
}`,{id:e.id}),O(t=>t.filter(({id:t})=>t!==e.id)),B(e=>e?{...e,subscriptionCount:Math.max(0,e.subscriptionCount-1)}:e),ev(t=>t===e.id?null:t),V(null)}catch(e){V(e instanceof Error?e.message:String(e)),await eS()}finally{eb(null)}},eq=en||J.size>0||ee.length>0;return(0,t.jsxs)("section",{className:"mx-auto flex w-full max-w-[1700px] 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")})]}),U&&(0,t.jsx)(p.Alert,{variant:"destructive",children:(0,t.jsx)(p.AlertDescription,{children:U})}),(0,t.jsxs)("div",{className:"grid items-start gap-6 xl:grid-cols-2",children:[(0,t.jsxs)(f.Card,{children:[(0,t.jsxs)(f.CardHeader,{children:[(0,t.jsx)(f.CardTitle,{children:e("deliverySetup")}),(0,t.jsx)(f.CardDescription,{children:e("deliverySetupDescription")})]}),(0,t.jsxs)(f.CardContent,{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3 rounded-lg border p-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-medium",children:e("browserAlerts")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"unsupported"===eo?e("browserUnsupported"):e(`permissions.${eo}`)})]}),"granted"===eo?(0,t.jsxs)(h.Badge,{className:"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300",children:[(0,t.jsx)(n.CheckCircle2,{})," ",e("enabled")]}):(0,t.jsxs)(x.Button,{disabled:"denied"===eo||"unsupported"===eo,onClick:()=>void eB(),size:"sm",type:"button",variant:"outline",children:[(0,t.jsx)(r.BellRing,{})," ",e("enable")]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3 rounded-lg border p-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-medium",children:e("webPush")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:ec?eD?e("pushSubscribed"):e("pushNotSubscribed"):e("pushUnsupported")}),z&&(0,t.jsx)("p",{className:"mt-1 text-[11px] text-muted-foreground",children:e("subscriptionCount",{count:z.subscriptionCount})})]}),(0,t.jsxs)(x.Button,{disabled:!ec||ex,onClick:()=>void(eD?eO():e_()),size:"sm",type:"button",variant:eD?"outline":"default",children:[ex?(0,t.jsx)(m.Spinner,{}):(0,t.jsx)(s.Send,{}),eD?e("unsubscribe"):e("subscribe")]})]}),ej&&!ey&&(0,t.jsx)(p.Alert,{children:(0,t.jsx)(p.AlertDescription,{children:e("iosInstallHelp")})})]})]}),(0,t.jsxs)(f.Card,{children:[(0,t.jsxs)(f.CardHeader,{children:[(0,t.jsx)(f.CardTitle,{children:e("preferences")}),(0,t.jsx)(f.CardDescription,{children:e("preferencesDescription")})]}),(0,t.jsx)(f.CardContent,{className:"px-0",children:(0,t.jsxs)(v.Table,{children:[(0,t.jsx)(v.TableHeader,{children:(0,t.jsxs)(v.TableRow,{children:[(0,t.jsx)(v.TableHead,{className:"pl-4",children:e("notificationType")}),(0,t.jsx)(v.TableHead,{className:"w-24 text-center",children:e("sidebarChannel")}),(0,t.jsx)(v.TableHead,{className:"w-24 text-center",children:e("browserChannel")}),(0,t.jsx)(v.TableHead,{className:"w-24 text-center",children:e("pushChannel")})]})}),(0,t.jsx)(v.TableBody,{children:eP.map(([r,n])=>(0,t.jsxs)(a.Fragment,{children:[(0,t.jsx)(v.TableRow,{className:"bg-muted/20 hover:bg-muted/20",children:(0,t.jsx)(v.TableCell,{className:"py-1.5 pl-4 text-xs font-medium text-muted-foreground",colSpan:4,children:e(`categories.${r}`)})}),n.map(a=>(0,t.jsxs)(v.TableRow,{children:[(0,t.jsxs)(v.TableCell,{className:"pl-4",children:[(0,t.jsx)("p",{className:"font-medium",children:e(`types.${a.key}.title`)}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e(`types.${a.key}.description`)})]}),["sidebarEnabled","browserEnabled","webPushEnabled"].map(r=>(0,t.jsx)(v.TableCell,{className:"w-24 text-center",children:(0,t.jsx)(g.Checkbox,{"aria-label":e("toggleChannel",{channel:e("sidebarEnabled"===r?"sidebarChannel":"browserEnabled"===r?"browserChannel":"pushChannel"),type:e(`types.${a.key}.title`)}),checked:a[r],className:"mx-auto",disabled:es===a.key,onCheckedChange:e=>void ez(a,r,!0===e)})},r))]},a.key))]},r))})]})})]})]}),(0,t.jsxs)(f.Card,{className:"gap-0 overflow-hidden py-0",children:[(0,t.jsx)(f.CardHeader,{className:"border-b",children:(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(f.CardTitle,{children:e("subscribedBrowsers")}),(0,t.jsx)(f.CardDescription,{children:e("subscribedBrowsersDescription")})]}),(0,t.jsx)(h.Badge,{variant:"outline",children:e("subscriptionCount",{count:_.length})})]})}),(0,t.jsxs)(v.Table,{children:[(0,t.jsx)(v.TableHeader,{children:(0,t.jsxs)(v.TableRow,{className:"hover:bg-transparent",children:[(0,t.jsx)(v.TableHead,{className:"pl-4",children:e("browser")}),(0,t.jsx)(v.TableHead,{children:e("pushService")}),(0,t.jsx)(v.TableHead,{children:e("locale")}),(0,t.jsx)(v.TableHead,{children:e("lastSeen")}),(0,t.jsx)(v.TableHead,{className:"pr-4 text-right",children:e("actions")})]})}),(0,t.jsx)(v.TableBody,{children:0===_.length?(0,t.jsx)(v.TableRow,{children:(0,t.jsx)(v.TableCell,{className:"py-10 text-center text-muted-foreground",colSpan:5,children:e("noSubscribedBrowsers")})}):_.map(a=>{let r=ep?.endpoint===a.endpoint,i=eg===`test:${a.id}`,o=eg===`delete:${a.id}`,d=em===a.id;return(0,t.jsxs)(v.TableRow,{children:[(0,t.jsxs)(v.TableCell,{className:"max-w-sm pl-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"font-medium",children:P(a.userAgent,e("unknownBrowser"))}),r&&(0,t.jsx)(h.Badge,{variant:"secondary",children:e("current")})]}),a.userAgent&&(0,t.jsx)("p",{className:"max-w-sm truncate text-xs text-muted-foreground",title:a.userAgent,children:a.userAgent})]}),(0,t.jsx)(v.TableCell,{children:(0,t.jsx)("span",{title:a.endpoint,children:function(e){try{return new URL(e).hostname}catch{return e}}(a.endpoint)})}),(0,t.jsx)(v.TableCell,{children:a.locale??"—"}),(0,t.jsx)(v.TableCell,{className:"text-muted-foreground",children:(0,t.jsx)(b.DateTime,{value:a.lastSeenAt})}),(0,t.jsx)(v.TableCell,{className:"pr-4",children:(0,t.jsxs)("div",{className:"flex justify-end gap-1",children:[(0,t.jsxs)(x.Button,{disabled:null!==eg,onClick:()=>void eH(a.id),size:"sm",type:"button",variant:"outline",children:[i?(0,t.jsx)(m.Spinner,{}):d?(0,t.jsx)(n.CheckCircle2,{}):(0,t.jsx)(s.Send,{}),d?e("testSent"):e("test")]}),(0,t.jsx)(u.ConfirmationDialog,{actionLabel:e("remove"),cancelLabel:e("cancel"),description:e("removeBrowserDescription"),onConfirm:()=>e$(a),title:e("removeBrowserTitle"),trigger:(0,t.jsx)(x.Button,{"aria-label":e("removeBrowser",{browser:P(a.userAgent,e("unknownBrowser"))}),disabled:null!==eg,size:"icon-sm",title:e("remove"),type:"button",variant:"ghost",children:o?(0,t.jsx)(m.Spinner,{}):(0,t.jsx)(l.Trash2,{})})})]})})]},a.id)})})]})]}),(0,t.jsxs)(f.Card,{className:"gap-0 overflow-hidden py-0",children:[(0,t.jsxs)(f.CardHeader,{children:[(0,t.jsx)(f.CardTitle,{children:e("history")}),(0,t.jsx)(f.CardDescription,{children:e("historyCount",{count:q})}),(0,t.jsxs)(f.CardAction,{className:"flex items-center gap-2",children:[(0,t.jsxs)(x.Button,{onClick:()=>{Y(e=>!e),eR()},size:"sm",type:"button",variant:X?"default":"outline",children:[X?(0,t.jsx)(o.X,{}):(0,t.jsx)(i.ListFilter,{}),X?e("done"):e("edit")]}),(0,t.jsx)(u.ConfirmationDialog,{actionLabel:e("deleteAll"),cancelLabel:e("cancel"),description:e("deleteAllDescription"),onConfirm:eI,title:e("deleteAllTitle"),trigger:(0,t.jsxs)(x.Button,{disabled:!q,size:"sm",type:"button",variant:"outline",children:[(0,t.jsx)(l.Trash2,{})," ",e("deleteAll")]})})]})]}),X&&(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-3 border-b bg-muted/30 p-3",children:[(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:en?e("allSelected"):e("selectedCount",{count:A.filter(eA).length})}),(0,t.jsxs)(x.Button,{disabled:!eq,onClick:()=>void eE(),size:"sm",type:"button",variant:"destructive",children:[(0,t.jsx)(l.Trash2,{})," ",e("deleteSelected")]})]}),(0,t.jsx)("div",{className:"overflow-x-auto",children:(0,t.jsxs)(v.Table,{children:[(0,t.jsx)(v.TableHeader,{children:(0,t.jsxs)(v.TableRow,{className:"hover:bg-transparent",children:[X&&(0,t.jsx)(v.TableHead,{className:"w-10 pl-3",children:(0,t.jsx)(g.Checkbox,{"aria-label":e("selectAll"),checked:en&&(Q.size||ea.length)?"indeterminate":en,onCheckedChange:e=>{ei(!0===e),G(new Set),Z(new Set),et([]),er([])}})}),(0,t.jsx)(v.TableHead,{children:e("notification")}),(0,t.jsx)(v.TableHead,{children:e("channels")}),(0,t.jsx)(v.TableHead,{className:"text-right",children:e("received")})]})}),(0,t.jsx)(v.TableBody,{children:W?(0,t.jsx)(v.TableRow,{children:(0,t.jsx)(v.TableCell,{className:"py-12 text-center",colSpan:X?4:3,children:(0,t.jsx)(m.Spinner,{})})}):0===A.length?(0,t.jsx)(v.TableRow,{children:(0,t.jsx)(v.TableCell,{className:"py-12 text-center text-muted-foreground",colSpan:X?4:3,children:e("historyEmpty")})}):eT.map(r=>{let n=r.items.every(eA),i=r.items.some(eA);return(0,t.jsxs)(a.Fragment,{children:[(0,t.jsxs)(v.TableRow,{className:"bg-muted/20 hover:bg-muted/20",children:[X&&(0,t.jsx)(v.TableCell,{className:"pl-3",children:(0,t.jsx)(g.Checkbox,{"aria-label":e("selectDay",{day:r.label}),checked:!!n||!!i&&"indeterminate",onCheckedChange:e=>{var t;return t=!0===e,void(en?er(e=>t?e.filter(({key:e})=>e!==r.key):[...e.filter(({key:e})=>e!==r.key),r.range]):et(e=>t?[...e.filter(({key:e})=>e!==r.key),r.range]:e.filter(({key:e})=>e!==r.key)),G(e=>{let a=new Set(e);return r.items.forEach(({id:e})=>!en&&t?a.add(e):a.delete(e)),a}),Z(e=>{let t=new Set(e);return r.items.forEach(({id:e})=>t.delete(e)),t}))}})}),(0,t.jsx)(v.TableCell,{className:"py-1.5 text-xs text-muted-foreground",colSpan:3,children:r.label})]}),r.items.map(a=>{let r=a.highlightColor;return(0,t.jsxs)(v.TableRow,{className:(0,C.cn)("transition-colors",r&&k.worktreeHighlightBackgroundClasses[r]),children:[X&&(0,t.jsx)(v.TableCell,{className:(0,C.cn)("border-l-4 pl-2",r?k.worktreeHighlightAccentClasses[r]:"border-l-transparent"),children:(0,t.jsx)(g.Checkbox,{"aria-label":e("selectNotification",{title:a.title}),checked:eA(a),onCheckedChange:e=>{!0===e?(G(e=>new Set(e).add(a.id)),Z(e=>{let t=new Set(e);return t.delete(a.id),t})):(G(e=>{let t=new Set(e);return t.delete(a.id),t}),(en||ee.length)&&Z(e=>new Set(e).add(a.id)))}})}),(0,t.jsxs)(v.TableCell,{className:(0,C.cn)("min-w-80",!X&&"border-l-4 pl-2",!X&&(r?k.worktreeHighlightAccentClasses[r]:"border-l-transparent")),children:[(0,t.jsx)(j.Link,{className:"font-medium hover:underline",href:a.href,children:a.title}),(0,t.jsx)("p",{className:"mt-0.5 text-xs text-muted-foreground",children:a.body})]}),(0,t.jsx)(v.TableCell,{children:(0,t.jsxs)("div",{className:"flex flex-wrap gap-1",children:[a.sidebarRequested&&(0,t.jsx)(h.Badge,{variant:"outline",children:e("sidebarChannel")}),a.browserRequested&&(0,t.jsx)(h.Badge,{variant:"outline",children:e("browserChannel")}),a.webPushRequested&&(0,t.jsx)(h.Badge,{variant:"outline",children:e("pushChannel")})]})}),(0,t.jsx)(v.TableCell,{className:"text-right text-xs text-muted-foreground",children:(0,t.jsx)(b.DateTime,{kind:"time",value:a.createdAt})})]},a.id)})]},r.key)})})]})}),(0,t.jsx)("div",{ref:ek,className:"flex min-h-10 items-center justify-center p-2",children:M&&(0,t.jsx)(m.Spinner,{})})]})]})}])}]);
|
|
41
|
+
}`,{id:e.id}),O(t=>t.filter(({id:t})=>t!==e.id)),B(e=>e?{...e,subscriptionCount:Math.max(0,e.subscriptionCount-1)}:e),ev(t=>t===e.id?null:t),V(null)}catch(e){V(e instanceof Error?e.message:String(e)),await eS()}finally{eb(null)}},eq=en||J.size>0||ee.length>0;return(0,t.jsxs)("section",{className:"mx-auto flex w-full max-w-[1700px] 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")})]}),U&&(0,t.jsx)(p.Alert,{variant:"destructive",children:(0,t.jsx)(p.AlertDescription,{children:U})}),(0,t.jsxs)(x.Card,{children:[(0,t.jsxs)(x.CardHeader,{children:[(0,t.jsx)(x.CardTitle,{children:e("deliverySetup")}),(0,t.jsx)(x.CardDescription,{children:e("deliverySetupDescription")})]}),(0,t.jsxs)(x.CardContent,{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"grid gap-4 md:grid-cols-2",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3 rounded-lg border p-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-medium",children:e("browserAlerts")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"unsupported"===eo?e("browserUnsupported"):e(`permissions.${eo}`)})]}),"granted"===eo?(0,t.jsxs)(h.Badge,{className:"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300",children:[(0,t.jsx)(n.CheckCircle2,{})," ",e("enabled")]}):(0,t.jsxs)(f.Button,{disabled:"denied"===eo||"unsupported"===eo,onClick:()=>void eB(),size:"sm",type:"button",variant:"outline",children:[(0,t.jsx)(r.BellRing,{})," ",e("enable")]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3 rounded-lg border p-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-medium",children:e("webPush")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:ec?eD?e("pushSubscribed"):e("pushNotSubscribed"):e("pushUnsupported")}),z&&(0,t.jsx)("p",{className:"mt-1 text-[11px] text-muted-foreground",children:e("subscriptionCount",{count:z.subscriptionCount})})]}),(0,t.jsxs)(f.Button,{disabled:!ec||ef,onClick:()=>void(eD?eO():e_()),size:"sm",type:"button",variant:eD?"outline":"default",children:[ef?(0,t.jsx)(m.Spinner,{}):(0,t.jsx)(s.Send,{}),eD?e("unsubscribe"):e("subscribe")]})]})]}),ej&&!ey&&(0,t.jsx)(p.Alert,{children:(0,t.jsx)(p.AlertDescription,{children:e("iosInstallHelp")})})]})]}),(0,t.jsxs)(x.Card,{children:[(0,t.jsxs)(x.CardHeader,{children:[(0,t.jsx)(x.CardTitle,{children:e("preferences")}),(0,t.jsx)(x.CardDescription,{children:e("preferencesDescription")})]}),(0,t.jsx)(x.CardContent,{className:"px-0",children:(0,t.jsxs)(v.Table,{children:[(0,t.jsx)(v.TableHeader,{children:(0,t.jsxs)(v.TableRow,{children:[(0,t.jsx)(v.TableHead,{className:"pl-4",children:e("notificationType")}),(0,t.jsx)(v.TableHead,{className:"w-24 text-center",children:e("sidebarChannel")}),(0,t.jsx)(v.TableHead,{className:"w-24 text-center",children:e("browserChannel")}),(0,t.jsx)(v.TableHead,{className:"w-24 text-center",children:e("pushChannel")})]})}),(0,t.jsx)(v.TableBody,{children:eP.map(([r,n])=>(0,t.jsxs)(a.Fragment,{children:[(0,t.jsx)(v.TableRow,{className:"bg-muted/20 hover:bg-muted/20",children:(0,t.jsx)(v.TableCell,{className:"py-1.5 pl-4 text-xs font-medium text-muted-foreground",colSpan:4,children:e(`categories.${r}`)})}),n.map(a=>(0,t.jsxs)(v.TableRow,{children:[(0,t.jsxs)(v.TableCell,{className:"pl-4",children:[(0,t.jsx)("p",{className:"font-medium",children:e(`types.${a.key}.title`)}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e(`types.${a.key}.description`)})]}),["sidebarEnabled","browserEnabled","webPushEnabled"].map(r=>(0,t.jsx)(v.TableCell,{className:"w-24 text-center",children:(0,t.jsx)(g.Checkbox,{"aria-label":e("toggleChannel",{channel:e("sidebarEnabled"===r?"sidebarChannel":"browserEnabled"===r?"browserChannel":"pushChannel"),type:e(`types.${a.key}.title`)}),checked:a[r],className:"mx-auto",disabled:es===a.key,onCheckedChange:e=>void ez(a,r,!0===e)})},r))]},a.key))]},r))})]})})]}),(0,t.jsxs)(x.Card,{className:"gap-0 overflow-hidden py-0",children:[(0,t.jsx)(x.CardHeader,{className:"border-b",children:(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(x.CardTitle,{children:e("subscribedBrowsers")}),(0,t.jsx)(x.CardDescription,{children:e("subscribedBrowsersDescription")})]}),(0,t.jsx)(h.Badge,{variant:"outline",children:e("subscriptionCount",{count:_.length})})]})}),(0,t.jsxs)(v.Table,{children:[(0,t.jsx)(v.TableHeader,{children:(0,t.jsxs)(v.TableRow,{className:"hover:bg-transparent",children:[(0,t.jsx)(v.TableHead,{className:"pl-4",children:e("browser")}),(0,t.jsx)(v.TableHead,{children:e("pushService")}),(0,t.jsx)(v.TableHead,{children:e("locale")}),(0,t.jsx)(v.TableHead,{children:e("lastSeen")}),(0,t.jsx)(v.TableHead,{className:"pr-4 text-right",children:e("actions")})]})}),(0,t.jsx)(v.TableBody,{children:0===_.length?(0,t.jsx)(v.TableRow,{children:(0,t.jsx)(v.TableCell,{className:"py-10 text-center text-muted-foreground",colSpan:5,children:e("noSubscribedBrowsers")})}):_.map(a=>{let r=ep?.endpoint===a.endpoint,i=eg===`test:${a.id}`,o=eg===`delete:${a.id}`,d=em===a.id;return(0,t.jsxs)(v.TableRow,{children:[(0,t.jsxs)(v.TableCell,{className:"max-w-sm pl-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"font-medium",children:P(a.userAgent,e("unknownBrowser"))}),r&&(0,t.jsx)(h.Badge,{variant:"secondary",children:e("current")})]}),a.userAgent&&(0,t.jsx)("p",{className:"max-w-sm truncate text-xs text-muted-foreground",title:a.userAgent,children:a.userAgent})]}),(0,t.jsx)(v.TableCell,{children:(0,t.jsx)("span",{title:a.endpoint,children:function(e){try{return new URL(e).hostname}catch{return e}}(a.endpoint)})}),(0,t.jsx)(v.TableCell,{children:a.locale??"—"}),(0,t.jsx)(v.TableCell,{className:"text-muted-foreground",children:(0,t.jsx)(b.DateTime,{value:a.lastSeenAt})}),(0,t.jsx)(v.TableCell,{className:"pr-4",children:(0,t.jsxs)("div",{className:"flex justify-end gap-1",children:[(0,t.jsxs)(f.Button,{disabled:null!==eg,onClick:()=>void eH(a.id),size:"sm",type:"button",variant:"outline",children:[i?(0,t.jsx)(m.Spinner,{}):d?(0,t.jsx)(n.CheckCircle2,{}):(0,t.jsx)(s.Send,{}),d?e("testSent"):e("test")]}),(0,t.jsx)(u.ConfirmationDialog,{actionLabel:e("remove"),cancelLabel:e("cancel"),description:e("removeBrowserDescription"),onConfirm:()=>e$(a),title:e("removeBrowserTitle"),trigger:(0,t.jsx)(f.Button,{"aria-label":e("removeBrowser",{browser:P(a.userAgent,e("unknownBrowser"))}),disabled:null!==eg,size:"icon-sm",title:e("remove"),type:"button",variant:"ghost",children:o?(0,t.jsx)(m.Spinner,{}):(0,t.jsx)(l.Trash2,{})})})]})})]},a.id)})})]})]}),(0,t.jsxs)(x.Card,{className:"gap-0 overflow-hidden py-0",children:[(0,t.jsxs)(x.CardHeader,{children:[(0,t.jsx)(x.CardTitle,{children:e("history")}),(0,t.jsx)(x.CardDescription,{children:e("historyCount",{count:q})}),(0,t.jsxs)(x.CardAction,{className:"flex items-center gap-2",children:[(0,t.jsxs)(f.Button,{onClick:()=>{Y(e=>!e),eR()},size:"sm",type:"button",variant:X?"default":"outline",children:[X?(0,t.jsx)(o.X,{}):(0,t.jsx)(i.ListFilter,{}),X?e("done"):e("edit")]}),(0,t.jsx)(u.ConfirmationDialog,{actionLabel:e("deleteAll"),cancelLabel:e("cancel"),description:e("deleteAllDescription"),onConfirm:eI,title:e("deleteAllTitle"),trigger:(0,t.jsxs)(f.Button,{disabled:!q,size:"sm",type:"button",variant:"outline",children:[(0,t.jsx)(l.Trash2,{})," ",e("deleteAll")]})})]})]}),X&&(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-3 border-b bg-muted/30 p-3",children:[(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:en?e("allSelected"):e("selectedCount",{count:A.filter(eA).length})}),(0,t.jsxs)(f.Button,{disabled:!eq,onClick:()=>void eE(),size:"sm",type:"button",variant:"destructive",children:[(0,t.jsx)(l.Trash2,{})," ",e("deleteSelected")]})]}),(0,t.jsx)("div",{className:"overflow-x-auto",children:(0,t.jsxs)(v.Table,{children:[(0,t.jsx)(v.TableHeader,{children:(0,t.jsxs)(v.TableRow,{className:"hover:bg-transparent",children:[X&&(0,t.jsx)(v.TableHead,{className:"w-10 pl-3",children:(0,t.jsx)(g.Checkbox,{"aria-label":e("selectAll"),checked:en&&(Q.size||ea.length)?"indeterminate":en,onCheckedChange:e=>{ei(!0===e),G(new Set),Z(new Set),et([]),er([])}})}),(0,t.jsx)(v.TableHead,{children:e("notification")}),(0,t.jsx)(v.TableHead,{children:e("channels")}),(0,t.jsx)(v.TableHead,{className:"text-right",children:e("received")})]})}),(0,t.jsx)(v.TableBody,{children:W?(0,t.jsx)(v.TableRow,{children:(0,t.jsx)(v.TableCell,{className:"py-12 text-center",colSpan:X?4:3,children:(0,t.jsx)(m.Spinner,{})})}):0===A.length?(0,t.jsx)(v.TableRow,{children:(0,t.jsx)(v.TableCell,{className:"py-12 text-center text-muted-foreground",colSpan:X?4:3,children:e("historyEmpty")})}):eT.map(r=>{let n=r.items.every(eA),i=r.items.some(eA);return(0,t.jsxs)(a.Fragment,{children:[(0,t.jsxs)(v.TableRow,{className:"bg-muted/20 hover:bg-muted/20",children:[X&&(0,t.jsx)(v.TableCell,{className:"pl-3",children:(0,t.jsx)(g.Checkbox,{"aria-label":e("selectDay",{day:r.label}),checked:!!n||!!i&&"indeterminate",onCheckedChange:e=>{var t;return t=!0===e,void(en?er(e=>t?e.filter(({key:e})=>e!==r.key):[...e.filter(({key:e})=>e!==r.key),r.range]):et(e=>t?[...e.filter(({key:e})=>e!==r.key),r.range]:e.filter(({key:e})=>e!==r.key)),G(e=>{let a=new Set(e);return r.items.forEach(({id:e})=>!en&&t?a.add(e):a.delete(e)),a}),Z(e=>{let t=new Set(e);return r.items.forEach(({id:e})=>t.delete(e)),t}))}})}),(0,t.jsx)(v.TableCell,{className:"py-1.5 text-xs text-muted-foreground",colSpan:3,children:r.label})]}),r.items.map(a=>{let r=a.highlightColor;return(0,t.jsxs)(v.TableRow,{className:(0,C.cn)("transition-colors",r&&k.worktreeHighlightBackgroundClasses[r]),children:[X&&(0,t.jsx)(v.TableCell,{className:(0,C.cn)("border-l-4 pl-2",r?k.worktreeHighlightAccentClasses[r]:"border-l-transparent"),children:(0,t.jsx)(g.Checkbox,{"aria-label":e("selectNotification",{title:a.title}),checked:eA(a),onCheckedChange:e=>{!0===e?(G(e=>new Set(e).add(a.id)),Z(e=>{let t=new Set(e);return t.delete(a.id),t})):(G(e=>{let t=new Set(e);return t.delete(a.id),t}),(en||ee.length)&&Z(e=>new Set(e).add(a.id)))}})}),(0,t.jsxs)(v.TableCell,{className:(0,C.cn)("w-full min-w-80 align-top break-words whitespace-normal",!X&&"border-l-4 pl-2",!X&&(r?k.worktreeHighlightAccentClasses[r]:"border-l-transparent")),children:[(0,t.jsx)(j.Link,{className:"font-medium hover:underline",href:a.href,children:a.title}),(0,t.jsx)("p",{className:"mt-0.5 text-xs break-words text-muted-foreground",children:a.body})]}),(0,t.jsx)(v.TableCell,{className:"align-top",children:(0,t.jsxs)("div",{className:"flex flex-wrap gap-1",children:[a.sidebarRequested&&(0,t.jsx)(h.Badge,{variant:"outline",children:e("sidebarChannel")}),a.browserRequested&&(0,t.jsx)(h.Badge,{variant:"outline",children:e("browserChannel")}),a.webPushRequested&&(0,t.jsx)(h.Badge,{variant:"outline",children:e("pushChannel")})]})}),(0,t.jsx)(v.TableCell,{className:"align-top text-right text-xs text-muted-foreground",children:(0,t.jsx)(b.DateTime,{kind:"time",value:a.createdAt})})]},a.id)})]},r.key)})})]})}),(0,t.jsx)("div",{ref:ek,className:"flex min-h-10 items-center justify-center p-2",children:M&&(0,t.jsx)(m.Spinner,{})})]})]})}])}]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,340953,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(30030),s=e.i(820783),n=e.i(326999),i=e.i(981140),l=Object.defineProperty,o=(e,t)=>l(e,"name",{value:t,configurable:!0}),[d,c]=(0,r.createContextScope)("AlertDialog",[n.createDialogScope]),u=(0,n.createDialogScope)(),h=o(e=>{let{__scopeAlertDialog:a,...r}=e,s=u(a);return(0,t.jsx)(n.Root,{...s,...r,modal:!0})},"AlertDialog"),m=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...s}=e,i=u(r);return(0,t.jsx)(n.Trigger,{...i,...s,ref:a})},"AlertDialogTrigger")),x=o(e=>{let{__scopeAlertDialog:a,...r}=e,s=u(a);return(0,t.jsx)(n.Portal,{...s,...r})},"AlertDialogPortal"),p=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...s}=e,i=u(r);return(0,t.jsx)(n.Overlay,{...i,...s,ref:a})},"AlertDialogOverlay")),[f,g]=d("AlertDialogContent"),b=a.forwardRef(o(function(e,r){let{__scopeAlertDialog:l,children:o,...d}=e,c=u(l),h=a.useRef(null),m=(0,s.useComposedRefs)(r,h),x=a.useRef(null);return(0,t.jsx)(f,{scope:l,cancelRef:x,children:(0,t.jsx)(n.Content,{role:"alertdialog",...c,...d,ref:m,onOpenAutoFocus:(0,i.composeEventHandlers)(d.onOpenAutoFocus,e=>{e.preventDefault(),x.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:o})})},"AlertDialogContent")),j=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...s}=e,i=u(r);return(0,t.jsx)(n.Title,{...i,...s,ref:a})},"AlertDialogTitle")),v=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...s}=e,i=u(r);return(0,t.jsx)(n.Description,{...i,...s,ref:a})},"AlertDialogDescription")),y=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...s}=e,i=u(r);return(0,t.jsx)(n.Close,{...i,...s,ref:a})},"AlertDialogAction")),C=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...i}=e,{cancelRef:l}=g("AlertDialogCancel",r),o=u(r),d=(0,s.useComposedRefs)(a,l);return(0,t.jsx)(n.Close,{...o,...i,ref:d})},"AlertDialogCancel"));e.s(["Action",0,y,"AlertDialog",0,h,"AlertDialogAction",0,y,"AlertDialogCancel",0,C,"AlertDialogContent",0,b,"AlertDialogDescription",0,v,"AlertDialogOverlay",0,p,"AlertDialogPortal",0,x,"AlertDialogTitle",0,j,"AlertDialogTrigger",0,m,"Cancel",0,C,"Content",0,b,"Description",0,v,"Overlay",0,p,"Portal",0,x,"Root",0,h,"Title",0,j,"Trigger",0,m,"createAlertDialogScope",0,c],691162);var D=e.i(691162),D=D,N=e.i(975157),w=e.i(519455);function E({...e}){return(0,t.jsx)(D.Root,{"data-slot":"alert-dialog",...e})}function A({...e}){return(0,t.jsx)(D.Trigger,{"data-slot":"alert-dialog-trigger",...e})}function T({...e}){return(0,t.jsx)(D.Portal,{"data-slot":"alert-dialog-portal",...e})}function S({className:e,...a}){return(0,t.jsx)(D.Overlay,{"data-slot":"alert-dialog-overlay",className:(0,N.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),...a})}function B({className:e,size:a="default",...r}){return(0,t.jsxs)(T,{children:[(0,t.jsx)(S,{}),(0,t.jsx)(D.Content,{"data-slot":"alert-dialog-content","data-size":a,className:(0,N.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),...r})]})}function k({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,N.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),...a})}function I({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,N.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),...a})}function O({className:e,...a}){return(0,t.jsx)(D.Title,{"data-slot":"alert-dialog-title",className:(0,N.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),...a})}function _({className:e,...a}){return(0,t.jsx)(D.Description,{"data-slot":"alert-dialog-description",className:(0,N.cn)("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...a})}function R({className:e,variant:a="default",size:r="default",...s}){return(0,t.jsx)(w.Button,{variant:a,size:r,asChild:!0,children:(0,t.jsx)(D.Action,{"data-slot":"alert-dialog-action",className:(0,N.cn)(e),...s})})}function L({className:e,variant:a="outline",size:r="default",...s}){return(0,t.jsx)(w.Button,{variant:a,size:r,asChild:!0,children:(0,t.jsx)(D.Cancel,{"data-slot":"alert-dialog-cancel",className:(0,N.cn)(e),...s})})}e.s(["ConfirmationDialog",0,function({actionLabel:e,cancelLabel:a,description:r,onConfirm:s,onOpenChange:n,open:i,title:l,trigger:o}){return(0,t.jsxs)(E,{onOpenChange:n,open:i,children:[o&&(0,t.jsx)(A,{asChild:!0,children:o}),(0,t.jsxs)(B,{children:[(0,t.jsxs)(k,{children:[(0,t.jsx)(O,{children:l}),(0,t.jsx)(_,{children:r})]}),(0,t.jsxs)(I,{children:[(0,t.jsx)(L,{children:a}),(0,t.jsx)(R,{onClick:()=>void s(),variant:"destructive",children:e})]})]})]})}],340953)},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)},82612,e=>{"use strict";var t=e.i(843476),a=e.i(225913),r=e.i(975157);let s=(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",...n}){return(0,t.jsx)("div",{"data-slot":"empty-icon","data-variant":a,className:(0,r.cn)(s({variant:a,className:e})),...n})},"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})}])},929592,e=>{"use strict";var t=e.i(843476),a=e.i(225913),r=e.i(975157);let s=(0,a.cva)("group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"}},defaultVariants:{variant:"default"}});e.s(["Alert",0,function({className:e,variant:a,...n}){return(0,t.jsx)("div",{"data-slot":"alert",role:"alert",className:(0,r.cn)(s({variant:a}),e),...n})},"AlertDescription",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-description",className:(0,r.cn)("text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4",e),...a})},"AlertTitle",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-title",className:(0,r.cn)("font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground",e),...a})}])},515288,e=>{"use strict";var t=e.i(843476),a=e.i(975157);e.s(["Card",0,function({className:e,size:r="default",...s}){return(0,t.jsx)("div",{"data-slot":"card","data-size":r,className:(0,a.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>[data-slot=card-header]]:pt-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...s})},"CardAction",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-action",className:(0,a.cn)("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...r})},"CardContent",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,a.cn)("px-(--card-spacing)",e),...r})},"CardDescription",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,a.cn)("text-sm text-muted-foreground",e),...r})},"CardFooter",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-footer",className:(0,a.cn)("flex items-center rounded-b-xl border-t bg-muted/50 p-(--card-spacing)",e),...r})},"CardHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,a.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl bg-muted/40 px-(--card-spacing) py-(--card-spacing) not-last:border-b has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]",e),...r})},"CardTitle",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,a.cn)("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e),...r})}])},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),a=e.i(975157),r=e.i(758379),r=r;e.s(["Spinner",0,function({className:e,...s}){return(0,t.jsx)(r.default,{"data-slot":"spinner",role:"status","aria-label":"Loading",className:(0,a.cn)("size-4 animate-spin",e),...s})}],987968)},487486,e=>{"use strict";var t=e.i(843476),a=e.i(225913),r=e.i(586011),s=e.i(975157);let n=(0,a.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:a="default",asChild:i=!1,...l}){let o=i?r.Slot.Root:"span";return(0,t.jsx)(o,{className:(0,s.cn)(n({variant:a}),e),"data-slot":"badge","data-variant":a,...l})}])},784774,e=>{"use strict";var t=e.i(843476),a=e.i(975157);e.s(["Table",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,t.jsx)("table",{"data-slot":"table",className:(0,a.cn)("w-full caption-bottom text-sm",e),...r})})},"TableBody",0,function({className:e,...r}){return(0,t.jsx)("tbody",{"data-slot":"table-body",className:(0,a.cn)("[&_tr:last-child]:border-0",e),...r})},"TableCell",0,function({className:e,...r}){return(0,t.jsx)("td",{"data-slot":"table-cell",className:(0,a.cn)("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",e),...r})},"TableFooter",0,function({className:e,...r}){return(0,t.jsx)("tfoot",{"data-slot":"table-footer",className:(0,a.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...r})},"TableHead",0,function({className:e,...r}){return(0,t.jsx)("th",{"data-slot":"table-head",className:(0,a.cn)("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",e),...r})},"TableHeader",0,function({className:e,...r}){return(0,t.jsx)("thead",{"data-slot":"table-header",className:(0,a.cn)("[&_tr]:border-b",e),...r})},"TableRow",0,function({className:e,...r}){return(0,t.jsx)("tr",{"data-slot":"table-row",className:(0,a.cn)("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",e),...r})}])},26495,e=>{"use strict";let t=(0,e.i(456420).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["default",0,t])},630299,e=>{"use strict";let t=(0,e.i(456420).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["default",0,t])},566595,e=>{"use strict";var t=e.i(630299);e.s(["Search",()=>t.default])},711241,e=>{"use strict";let t=(0,e.i(456420).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",0,t],711241)},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)}`}])},716327,e=>{"use strict";var t=e.i(26495);e.s(["ChevronDown",()=>t.default])},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)},762368,e=>{"use strict";let t=(0,e.i(456420).default)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);e.s(["Download",0,t],762368)},778434,e=>{"use strict";e.s(["AGENT_FIELDS",0,"id name hostname version osVersion architecture cpuModel memoryTotalBytes memoryFreeBytes diskTotalBytes diskFreeBytes capabilities baseRepoDirectory derivedDataLocationMode derivedDataPath buildsDirectory defaultBuildsDirectory effectiveBuildsDirectory connectionStatus ipAddress lastSeenAt disconnectedAt createdAt","JOB_FIELDS",0,"id agentId kind payload status error result timeoutSeconds createdAt startedAt finishedAt updatedAt","JOB_LOG_FIELDS",0,"id jobId sequence stream message createdAt"])},250832,e=>{"use strict";let t=(0,e.i(456420).default)("settings-2",[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);e.s(["Settings2",0,t],250832)},225780,434322,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(716327);let s=(0,e.i(456420).default)("file-code-corner",[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]]);e.s(["FileCode2",0,s],434322);var n=e.i(487486),i=e.i(975157);function l({patch:e,truncated:a=!1,truncatedLabel:r,className:s}){return(0,t.jsxs)("div",{className:(0,i.cn)("overflow-auto rounded-md border bg-neutral-950 font-mono text-xs text-neutral-100",s),children:[e.split("\n").map((e,a)=>(0,t.jsx)("div",{className:(0,i.cn)("min-w-max px-3 whitespace-pre",e.startsWith("+")&&!e.startsWith("+++")&&"bg-emerald-950/70 text-emerald-200",e.startsWith("-")&&!e.startsWith("---")&&"bg-red-950/70 text-red-200",e.startsWith("@@")&&"bg-blue-950/60 text-blue-200"),children:e||" "},`${a}:${e}`)),a&&r&&(0,t.jsx)("p",{className:"border-t p-2 text-amber-300",children:r})]})}e.s(["ExpandablePatchView",0,function({patch:e,className:o}){let d=(0,a.useMemo)(()=>(function(e){let t=e.split("\n"),a=[],r=[];for(let e of t)e.startsWith("diff --git ")&&r.length&&(a.push(r),r=[]),r.push(e);return r.some(Boolean)&&a.push(r),a.map((e,t)=>{let a=e.find(e=>e.startsWith("diff --git ")),r=a?.match(/^diff --git a\/(.+) b\/(.+)$/),s=r?.[1],n=r?.[2],i=e.some(e=>e.startsWith("new file mode")),l=e.some(e=>e.startsWith("deleted file mode")),o=e.some(e=>e.startsWith("rename from ")),d=n??e.find(e=>e.startsWith("+++ "))?.replace(/^\+\+\+ (?:b\/)?/,"")??s??`Patch ${t+1}`;return{key:`${s??""}:${d}:${t}`,path:d,patch:e.join("\n"),additions:e.filter(e=>e.startsWith("+")&&!e.startsWith("+++")).length,deletions:e.filter(e=>e.startsWith("-")&&!e.startsWith("---")).length,status:i?"A":l?"D":o?"R":"M"}})})(e),[e]),[c,u]=(0,a.useState)(new Set);return(0,t.jsx)("div",{className:(0,i.cn)("divide-y overflow-hidden rounded-md border",o),children:d.map(e=>{let a=c.has(e.key);return(0,t.jsxs)("div",{children:[(0,t.jsxs)("button",{"aria-expanded":a,className:"flex min-h-8 w-full items-center gap-2 px-2 py-1.5 text-left hover:bg-muted/40",onClick:()=>u(t=>{let a=new Set(t);return a.has(e.key)?a.delete(e.key):a.add(e.key),a}),type:"button",children:[(0,t.jsx)(r.ChevronDown,{className:(0,i.cn)("size-3.5 shrink-0 transition-transform",a&&"rotate-180")}),(0,t.jsx)(s,{className:"size-4 shrink-0 text-muted-foreground"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-xs",children:e.path}),(0,t.jsx)(n.Badge,{className:"h-5 px-1.5",variant:"outline",children:e.status}),(0,t.jsxs)("span",{className:"text-xs text-emerald-600 tabular-nums",children:["+",e.additions]}),(0,t.jsxs)("span",{className:"text-xs text-red-600 tabular-nums",children:["−",e.deletions]})]}),a&&(0,t.jsx)("div",{className:"border-t bg-muted/10 p-3",children:(0,t.jsx)(l,{patch:e.patch})})]},e.key)})})},"PatchView",0,l],225780)},421645,e=>{"use strict";e.s(["CODEBASE_BROWSE_JOB_KIND",0,"codebase.browse","CODEBASE_FETCH_JOB_KIND",0,"codebase.fetch","CODEBASE_GIT_INSPECT_JOB_KIND",0,"codebase.git.inspect","CODEBASE_GIT_OPERATION_JOB_KIND",0,"codebase.git.operation","CODEBASE_INSPECT_JOB_KIND",0,"codebase.inspect","CODEBASE_RECONCILE_EVENT_CAPABILITY",0,"codebase.reconcile.requested","CODEBASE_REFRESH_JOB_KIND",0,"codebase.refresh","DEFAULT_CODEBASE_RECONCILE_INTERVAL_SECONDS",0,30,"MAX_CODEBASE_RECONCILE_INTERVAL_SECONDS",0,3600,"MIN_CODEBASE_RECONCILE_INTERVAL_SECONDS",0,10])},899101,e=>{"use strict";var t=e.i(843476),a=e.i(421645);let r=(0,e.i(456420).default)("archive-restore",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h2",key:"tvwodi"}],["path",{d:"M20 8v11a2 2 0 0 1-2 2h-2",key:"1gkqxj"}],["path",{d:"m9 15 3-3 3 3",key:"1pd0qc"}],["path",{d:"M12 12v9",key:"192myk"}]]);var s=e.i(711241),n=e.i(689664),i=e.i(716327),l=e.i(144716),l=l,o=e.i(508734),d=e.i(762368),c=e.i(269846),u=e.i(741120),h=e.i(566595),m=e.i(250832),x=e.i(573474),p=e.i(948148),f=e.i(271645),g=e.i(778434),b=e.i(340953),j=e.i(929592),v=e.i(487486),y=e.i(519455),C=e.i(515288),D=e.i(816484),N=e.i(82612),w=e.i(793479),E=e.i(225780),A=e.i(967489),T=e.i(987968),S=e.i(784774),B=e.i(677572),k=e.i(520133),I=e.i(462777),O=e.i(637611),_=e.i(975157);let R=`
|
|
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)},82612,e=>{"use strict";var t=e.i(843476),a=e.i(225913),r=e.i(975157);let s=(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",...n}){return(0,t.jsx)("div",{"data-slot":"empty-icon","data-variant":a,className:(0,r.cn)(s({variant:a,className:e})),...n})},"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})}])},711241,e=>{"use strict";let t=(0,e.i(456420).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",0,t],711241)},762368,e=>{"use strict";let t=(0,e.i(456420).default)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);e.s(["Download",0,t],762368)},778434,e=>{"use strict";e.s(["AGENT_FIELDS",0,"id name hostname version osVersion architecture cpuModel memoryTotalBytes memoryFreeBytes diskTotalBytes diskFreeBytes capabilities baseRepoDirectory derivedDataLocationMode derivedDataPath buildsDirectory defaultBuildsDirectory effectiveBuildsDirectory connectionStatus ipAddress lastSeenAt disconnectedAt createdAt","JOB_FIELDS",0,"id agentId kind payload status error result timeoutSeconds createdAt startedAt finishedAt updatedAt","JOB_LOG_FIELDS",0,"id jobId sequence stream message createdAt"])},340953,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(30030),s=e.i(820783),n=e.i(326999),i=e.i(981140),l=Object.defineProperty,o=(e,t)=>l(e,"name",{value:t,configurable:!0}),[d,c]=(0,r.createContextScope)("AlertDialog",[n.createDialogScope]),u=(0,n.createDialogScope)(),h=o(e=>{let{__scopeAlertDialog:a,...r}=e,s=u(a);return(0,t.jsx)(n.Root,{...s,...r,modal:!0})},"AlertDialog"),m=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...s}=e,i=u(r);return(0,t.jsx)(n.Trigger,{...i,...s,ref:a})},"AlertDialogTrigger")),x=o(e=>{let{__scopeAlertDialog:a,...r}=e,s=u(a);return(0,t.jsx)(n.Portal,{...s,...r})},"AlertDialogPortal"),p=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...s}=e,i=u(r);return(0,t.jsx)(n.Overlay,{...i,...s,ref:a})},"AlertDialogOverlay")),[f,g]=d("AlertDialogContent"),b=a.forwardRef(o(function(e,r){let{__scopeAlertDialog:l,children:o,...d}=e,c=u(l),h=a.useRef(null),m=(0,s.useComposedRefs)(r,h),x=a.useRef(null);return(0,t.jsx)(f,{scope:l,cancelRef:x,children:(0,t.jsx)(n.Content,{role:"alertdialog",...c,...d,ref:m,onOpenAutoFocus:(0,i.composeEventHandlers)(d.onOpenAutoFocus,e=>{e.preventDefault(),x.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:o})})},"AlertDialogContent")),j=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...s}=e,i=u(r);return(0,t.jsx)(n.Title,{...i,...s,ref:a})},"AlertDialogTitle")),v=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...s}=e,i=u(r);return(0,t.jsx)(n.Description,{...i,...s,ref:a})},"AlertDialogDescription")),y=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...s}=e,i=u(r);return(0,t.jsx)(n.Close,{...i,...s,ref:a})},"AlertDialogAction")),C=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...i}=e,{cancelRef:l}=g("AlertDialogCancel",r),o=u(r),d=(0,s.useComposedRefs)(a,l);return(0,t.jsx)(n.Close,{...o,...i,ref:d})},"AlertDialogCancel"));e.s(["Action",0,y,"AlertDialog",0,h,"AlertDialogAction",0,y,"AlertDialogCancel",0,C,"AlertDialogContent",0,b,"AlertDialogDescription",0,v,"AlertDialogOverlay",0,p,"AlertDialogPortal",0,x,"AlertDialogTitle",0,j,"AlertDialogTrigger",0,m,"Cancel",0,C,"Content",0,b,"Description",0,v,"Overlay",0,p,"Portal",0,x,"Root",0,h,"Title",0,j,"Trigger",0,m,"createAlertDialogScope",0,c],691162);var D=e.i(691162),D=D,N=e.i(975157),w=e.i(519455);function E({...e}){return(0,t.jsx)(D.Root,{"data-slot":"alert-dialog",...e})}function A({...e}){return(0,t.jsx)(D.Trigger,{"data-slot":"alert-dialog-trigger",...e})}function T({...e}){return(0,t.jsx)(D.Portal,{"data-slot":"alert-dialog-portal",...e})}function S({className:e,...a}){return(0,t.jsx)(D.Overlay,{"data-slot":"alert-dialog-overlay",className:(0,N.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),...a})}function B({className:e,size:a="default",...r}){return(0,t.jsxs)(T,{children:[(0,t.jsx)(S,{}),(0,t.jsx)(D.Content,{"data-slot":"alert-dialog-content","data-size":a,className:(0,N.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),...r})]})}function k({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,N.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),...a})}function I({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,N.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),...a})}function O({className:e,...a}){return(0,t.jsx)(D.Title,{"data-slot":"alert-dialog-title",className:(0,N.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),...a})}function _({className:e,...a}){return(0,t.jsx)(D.Description,{"data-slot":"alert-dialog-description",className:(0,N.cn)("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...a})}function R({className:e,variant:a="default",size:r="default",...s}){return(0,t.jsx)(w.Button,{variant:a,size:r,asChild:!0,children:(0,t.jsx)(D.Action,{"data-slot":"alert-dialog-action",className:(0,N.cn)(e),...s})})}function L({className:e,variant:a="outline",size:r="default",...s}){return(0,t.jsx)(w.Button,{variant:a,size:r,asChild:!0,children:(0,t.jsx)(D.Cancel,{"data-slot":"alert-dialog-cancel",className:(0,N.cn)(e),...s})})}e.s(["ConfirmationDialog",0,function({actionLabel:e,cancelLabel:a,description:r,onConfirm:s,onOpenChange:n,open:i,title:l,trigger:o}){return(0,t.jsxs)(E,{onOpenChange:n,open:i,children:[o&&(0,t.jsx)(A,{asChild:!0,children:o}),(0,t.jsxs)(B,{children:[(0,t.jsxs)(k,{children:[(0,t.jsx)(O,{children:l}),(0,t.jsx)(_,{children:r})]}),(0,t.jsxs)(I,{children:[(0,t.jsx)(L,{children:a}),(0,t.jsx)(R,{onClick:()=>void s(),variant:"destructive",children:e})]})]})]})}],340953)},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)},566595,e=>{"use strict";var t=e.i(630299);e.s(["Search",()=>t.default])},462777,e=>{"use strict";async function t(e){if(navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(e);return}catch{}let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.append(t),t.select();let a=document.execCommand("copy");if(t.remove(),!a)throw Error("Copy is not supported by this browser")}e.s(["copyText",0,t,"createClientId",0,function(){try{if(globalThis.crypto?.randomUUID)return globalThis.crypto.randomUUID()}catch{}if(globalThis.crypto?.getRandomValues)try{let e=globalThis.crypto.getRandomValues(new Uint8Array(16));return Array.from(e,e=>e.toString(16).padStart(2,"0")).join("")}catch{}return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}])},716327,e=>{"use strict";var t=e.i(26495);e.s(["ChevronDown",()=>t.default])},929592,e=>{"use strict";var t=e.i(843476),a=e.i(225913),r=e.i(975157);let s=(0,a.cva)("group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"}},defaultVariants:{variant:"default"}});e.s(["Alert",0,function({className:e,variant:a,...n}){return(0,t.jsx)("div",{"data-slot":"alert",role:"alert",className:(0,r.cn)(s({variant:a}),e),...n})},"AlertDescription",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-description",className:(0,r.cn)("text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4",e),...a})},"AlertTitle",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-title",className:(0,r.cn)("font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground",e),...a})}])},515288,e=>{"use strict";var t=e.i(843476),a=e.i(975157);e.s(["Card",0,function({className:e,size:r="default",...s}){return(0,t.jsx)("div",{"data-slot":"card","data-size":r,className:(0,a.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>[data-slot=card-header]]:pt-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...s})},"CardAction",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-action",className:(0,a.cn)("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...r})},"CardContent",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,a.cn)("px-(--card-spacing)",e),...r})},"CardDescription",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,a.cn)("text-sm text-muted-foreground",e),...r})},"CardFooter",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-footer",className:(0,a.cn)("flex items-center rounded-b-xl border-t bg-muted/50 p-(--card-spacing)",e),...r})},"CardHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,a.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl bg-muted/40 px-(--card-spacing) py-(--card-spacing) not-last:border-b has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]",e),...r})},"CardTitle",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,a.cn)("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e),...r})}])},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),a=e.i(975157),r=e.i(758379),r=r;e.s(["Spinner",0,function({className:e,...s}){return(0,t.jsx)(r.default,{"data-slot":"spinner",role:"status","aria-label":"Loading",className:(0,a.cn)("size-4 animate-spin",e),...s})}],987968)},487486,e=>{"use strict";var t=e.i(843476),a=e.i(225913),r=e.i(586011),s=e.i(975157);let n=(0,a.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:a="default",asChild:i=!1,...l}){let o=i?r.Slot.Root:"span";return(0,t.jsx)(o,{className:(0,s.cn)(n({variant:a}),e),"data-slot":"badge","data-variant":a,...l})}])},784774,e=>{"use strict";var t=e.i(843476),a=e.i(975157);e.s(["Table",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,t.jsx)("table",{"data-slot":"table",className:(0,a.cn)("w-full caption-bottom text-sm",e),...r})})},"TableBody",0,function({className:e,...r}){return(0,t.jsx)("tbody",{"data-slot":"table-body",className:(0,a.cn)("[&_tr:last-child]:border-0",e),...r})},"TableCell",0,function({className:e,...r}){return(0,t.jsx)("td",{"data-slot":"table-cell",className:(0,a.cn)("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",e),...r})},"TableFooter",0,function({className:e,...r}){return(0,t.jsx)("tfoot",{"data-slot":"table-footer",className:(0,a.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...r})},"TableHead",0,function({className:e,...r}){return(0,t.jsx)("th",{"data-slot":"table-head",className:(0,a.cn)("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",e),...r})},"TableHeader",0,function({className:e,...r}){return(0,t.jsx)("thead",{"data-slot":"table-header",className:(0,a.cn)("[&_tr]:border-b",e),...r})},"TableRow",0,function({className:e,...r}){return(0,t.jsx)("tr",{"data-slot":"table-row",className:(0,a.cn)("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",e),...r})}])},26495,e=>{"use strict";let t=(0,e.i(456420).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["default",0,t])},630299,e=>{"use strict";let t=(0,e.i(456420).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["default",0,t])},250832,e=>{"use strict";let t=(0,e.i(456420).default)("settings-2",[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);e.s(["Settings2",0,t],250832)},225780,434322,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(716327);let s=(0,e.i(456420).default)("file-code-corner",[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]]);e.s(["FileCode2",0,s],434322);var n=e.i(487486),i=e.i(975157);function l({patch:e,truncated:a=!1,truncatedLabel:r,className:s}){return(0,t.jsxs)("div",{className:(0,i.cn)("overflow-auto rounded-md border bg-neutral-950 font-mono text-xs text-neutral-100",s),children:[e.split("\n").map((e,a)=>(0,t.jsx)("div",{className:(0,i.cn)("min-w-max px-3 whitespace-pre",e.startsWith("+")&&!e.startsWith("+++")&&"bg-emerald-950/70 text-emerald-200",e.startsWith("-")&&!e.startsWith("---")&&"bg-red-950/70 text-red-200",e.startsWith("@@")&&"bg-blue-950/60 text-blue-200"),children:e||" "},`${a}:${e}`)),a&&r&&(0,t.jsx)("p",{className:"border-t p-2 text-amber-300",children:r})]})}e.s(["ExpandablePatchView",0,function({patch:e,className:o}){let d=(0,a.useMemo)(()=>(function(e){let t=e.split("\n"),a=[],r=[];for(let e of t)e.startsWith("diff --git ")&&r.length&&(a.push(r),r=[]),r.push(e);return r.some(Boolean)&&a.push(r),a.map((e,t)=>{let a=e.find(e=>e.startsWith("diff --git ")),r=a?.match(/^diff --git a\/(.+) b\/(.+)$/),s=r?.[1],n=r?.[2],i=e.some(e=>e.startsWith("new file mode")),l=e.some(e=>e.startsWith("deleted file mode")),o=e.some(e=>e.startsWith("rename from ")),d=n??e.find(e=>e.startsWith("+++ "))?.replace(/^\+\+\+ (?:b\/)?/,"")??s??`Patch ${t+1}`;return{key:`${s??""}:${d}:${t}`,path:d,patch:e.join("\n"),additions:e.filter(e=>e.startsWith("+")&&!e.startsWith("+++")).length,deletions:e.filter(e=>e.startsWith("-")&&!e.startsWith("---")).length,status:i?"A":l?"D":o?"R":"M"}})})(e),[e]),[c,u]=(0,a.useState)(new Set);return(0,t.jsx)("div",{className:(0,i.cn)("divide-y overflow-hidden rounded-md border",o),children:d.map(e=>{let a=c.has(e.key);return(0,t.jsxs)("div",{children:[(0,t.jsxs)("button",{"aria-expanded":a,className:"flex min-h-8 w-full items-center gap-2 px-2 py-1.5 text-left hover:bg-muted/40",onClick:()=>u(t=>{let a=new Set(t);return a.has(e.key)?a.delete(e.key):a.add(e.key),a}),type:"button",children:[(0,t.jsx)(r.ChevronDown,{className:(0,i.cn)("size-3.5 shrink-0 transition-transform",a&&"rotate-180")}),(0,t.jsx)(s,{className:"size-4 shrink-0 text-muted-foreground"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-xs",children:e.path}),(0,t.jsx)(n.Badge,{className:"h-5 px-1.5",variant:"outline",children:e.status}),(0,t.jsxs)("span",{className:"text-xs text-emerald-600 tabular-nums",children:["+",e.additions]}),(0,t.jsxs)("span",{className:"text-xs text-red-600 tabular-nums",children:["−",e.deletions]})]}),a&&(0,t.jsx)("div",{className:"border-t bg-muted/10 p-3",children:(0,t.jsx)(l,{patch:e.patch})})]},e.key)})})},"PatchView",0,l],225780)},421645,e=>{"use strict";e.s(["CODEBASE_BROWSE_JOB_KIND",0,"codebase.browse","CODEBASE_FETCH_JOB_KIND",0,"codebase.fetch","CODEBASE_GIT_INSPECT_JOB_KIND",0,"codebase.git.inspect","CODEBASE_GIT_OPERATION_JOB_KIND",0,"codebase.git.operation","CODEBASE_INSPECT_JOB_KIND",0,"codebase.inspect","CODEBASE_RECONCILE_EVENT_CAPABILITY",0,"codebase.reconcile.requested","CODEBASE_REFRESH_JOB_KIND",0,"codebase.refresh","DEFAULT_CODEBASE_RECONCILE_INTERVAL_SECONDS",0,30,"MAX_CODEBASE_RECONCILE_INTERVAL_SECONDS",0,3600,"MIN_CODEBASE_RECONCILE_INTERVAL_SECONDS",0,10])},899101,e=>{"use strict";var t=e.i(843476),a=e.i(421645);let r=(0,e.i(456420).default)("archive-restore",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h2",key:"tvwodi"}],["path",{d:"M20 8v11a2 2 0 0 1-2 2h-2",key:"1gkqxj"}],["path",{d:"m9 15 3-3 3 3",key:"1pd0qc"}],["path",{d:"M12 12v9",key:"192myk"}]]);var s=e.i(711241),n=e.i(689664),i=e.i(716327),l=e.i(144716),l=l,o=e.i(508734),d=e.i(762368),c=e.i(269846),u=e.i(741120),h=e.i(566595),m=e.i(250832),x=e.i(573474),p=e.i(948148),f=e.i(271645),g=e.i(778434),b=e.i(340953),j=e.i(929592),v=e.i(487486),y=e.i(519455),C=e.i(515288),D=e.i(816484),N=e.i(82612),w=e.i(793479),E=e.i(225780),A=e.i(967489),T=e.i(987968),S=e.i(784774),B=e.i(677572),k=e.i(520133),I=e.i(462777),O=e.i(637611),_=e.i(975157);let R=`
|
|
2
2
|
id folder observedOrigin branch headSha upstream ahead behind syncState availability
|
|
3
3
|
statusError defaultBranch localBranches remoteBranches lastCheckedAt lastFetchedAt lastFetchAttemptAt lastFetchError
|
|
4
4
|
agent { ${g.AGENT_FIELDS} }
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,77071,e=>{"use strict";let t=(0,e.i(456420).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["Plus",0,t],77071)},340953,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(30030),i=e.i(820783),n=e.i(326999),s=e.i(981140),l=Object.defineProperty,o=(e,t)=>l(e,"name",{value:t,configurable:!0}),[d,c]=(0,r.createContextScope)("AlertDialog",[n.createDialogScope]),u=(0,n.createDialogScope)(),p=o(e=>{let{__scopeAlertDialog:a,...r}=e,i=u(a);return(0,t.jsx)(n.Root,{...i,...r,modal:!0})},"AlertDialog"),x=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...i}=e,s=u(r);return(0,t.jsx)(n.Trigger,{...s,...i,ref:a})},"AlertDialogTrigger")),f=o(e=>{let{__scopeAlertDialog:a,...r}=e,i=u(a);return(0,t.jsx)(n.Portal,{...i,...r})},"AlertDialogPortal"),m=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...i}=e,s=u(r);return(0,t.jsx)(n.Overlay,{...s,...i,ref:a})},"AlertDialogOverlay")),[g,h]=d("AlertDialogContent"),b=a.forwardRef(o(function(e,r){let{__scopeAlertDialog:l,children:o,...d}=e,c=u(l),p=a.useRef(null),x=(0,i.useComposedRefs)(r,p),f=a.useRef(null);return(0,t.jsx)(g,{scope:l,cancelRef:f,children:(0,t.jsx)(n.Content,{role:"alertdialog",...c,...d,ref:x,onOpenAutoFocus:(0,s.composeEventHandlers)(d.onOpenAutoFocus,e=>{e.preventDefault(),f.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:o})})},"AlertDialogContent")),v=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...i}=e,s=u(r);return(0,t.jsx)(n.Title,{...s,...i,ref:a})},"AlertDialogTitle")),j=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...i}=e,s=u(r);return(0,t.jsx)(n.Description,{...s,...i,ref:a})},"AlertDialogDescription")),y=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...i}=e,s=u(r);return(0,t.jsx)(n.Close,{...s,...i,ref:a})},"AlertDialogAction")),C=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:r,...s}=e,{cancelRef:l}=h("AlertDialogCancel",r),o=u(r),d=(0,i.useComposedRefs)(a,l);return(0,t.jsx)(n.Close,{...o,...s,ref:d})},"AlertDialogCancel"));e.s(["Action",0,y,"AlertDialog",0,p,"AlertDialogAction",0,y,"AlertDialogCancel",0,C,"AlertDialogContent",0,b,"AlertDialogDescription",0,j,"AlertDialogOverlay",0,m,"AlertDialogPortal",0,f,"AlertDialogTitle",0,v,"AlertDialogTrigger",0,x,"Cancel",0,C,"Content",0,b,"Description",0,j,"Overlay",0,m,"Portal",0,f,"Root",0,p,"Title",0,v,"Trigger",0,x,"createAlertDialogScope",0,c],691162);var w=e.i(691162),w=w,D=e.i(975157),S=e.i(519455);function k({...e}){return(0,t.jsx)(w.Root,{"data-slot":"alert-dialog",...e})}function N({...e}){return(0,t.jsx)(w.Trigger,{"data-slot":"alert-dialog-trigger",...e})}function T({...e}){return(0,t.jsx)(w.Portal,{"data-slot":"alert-dialog-portal",...e})}function B({className:e,...a}){return(0,t.jsx)(w.Overlay,{"data-slot":"alert-dialog-overlay",className:(0,D.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),...a})}function I({className:e,size:a="default",...r}){return(0,t.jsxs)(T,{children:[(0,t.jsx)(B,{}),(0,t.jsx)(w.Content,{"data-slot":"alert-dialog-content","data-size":a,className:(0,D.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),...r})]})}function R({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,D.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),...a})}function A({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,D.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),...a})}function E({className:e,...a}){return(0,t.jsx)(w.Title,{"data-slot":"alert-dialog-title",className:(0,D.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),...a})}function P({className:e,...a}){return(0,t.jsx)(w.Description,{"data-slot":"alert-dialog-description",className:(0,D.cn)("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...a})}function z({className:e,variant:a="default",size:r="default",...i}){return(0,t.jsx)(S.Button,{variant:a,size:r,asChild:!0,children:(0,t.jsx)(w.Action,{"data-slot":"alert-dialog-action",className:(0,D.cn)(e),...i})})}function L({className:e,variant:a="outline",size:r="default",...i}){return(0,t.jsx)(S.Button,{variant:a,size:r,asChild:!0,children:(0,t.jsx)(w.Cancel,{"data-slot":"alert-dialog-cancel",className:(0,D.cn)(e),...i})})}e.s(["ConfirmationDialog",0,function({actionLabel:e,cancelLabel:a,description:r,onConfirm:i,onOpenChange:n,open:s,title:l,trigger:o}){return(0,t.jsxs)(k,{onOpenChange:n,open:s,children:[o&&(0,t.jsx)(N,{asChild:!0,children:o}),(0,t.jsxs)(I,{children:[(0,t.jsxs)(R,{children:[(0,t.jsx)(E,{children:l}),(0,t.jsx)(P,{children:r})]}),(0,t.jsxs)(A,{children:[(0,t.jsx)(L,{children:a}),(0,t.jsx)(z,{onClick:()=>void i(),variant:"destructive",children:e})]})]})]})}],340953)},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",...n}){return(0,t.jsx)("div",{"data-slot":"empty-icon","data-variant":a,className:(0,r.cn)(i({variant:a,className:e})),...n})},"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})}])},257428,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(820783),i=e.i(30030),n=e.i(981140),s=e.i(369340),l=e.i(635804),o=e.i(296626),d=e.i(248425),c=Object.defineProperty,u=(e,t)=>c(e,"name",{value:t,configurable:!0}),p="Checkbox",[x,f]=(0,i.createContextScope)(p),[m,g]=x(p);function h(e){let{__scopeCheckbox:r,checked:i,children:n,defaultChecked:l,disabled:o,form:d,name:c,onCheckedChange:u,required:x,value:f="on",internal_do_not_use_render:g}=e,[h,b]=(0,s.useControllableState)({prop:i,defaultProp:l??!1,onChange:u,caller:p}),[v,j]=a.useState(null),[y,D]=a.useState(null),S=a.useRef(!1),[k,N]=a.useReducer(e=>e+1,0),T=!v||!!d||!!v.closest("form"),B={checked:h,disabled:o,setChecked:b,control:v,setControl:j,name:c,form:d,value:f,hasConsumerStoppedPropagationRef:S,userInteractionCount:k,onUserInteraction:N,required:x,defaultChecked:!w(l)&&l,isFormControl:T,bubbleInput:y,setBubbleInput:D};return(0,t.jsx)(m,{scope:r,...B,children:C(g)?g(B):n})}u(h,"CheckboxProvider");var b=a.forwardRef(u(function({__scopeCheckbox:e,onKeyDown:i,onClick:s,...l},o){let{control:c,value:p,disabled:x,checked:f,required:m,setControl:h,setChecked:b,hasConsumerStoppedPropagationRef:v,onUserInteraction:j,isFormControl:y,bubbleInput:C}=g("CheckboxTrigger",e),S=(0,r.useComposedRefs)(o,h),k=a.useRef(f);return a.useEffect(()=>{let e=c?.form;if(e){let t=u(()=>b(k.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[c,b]),(0,t.jsx)(d.Primitive.button,{type:"button",role:"checkbox","aria-checked":w(f)?"mixed":f,"aria-required":m,"data-state":D(f),"data-disabled":x?"":void 0,disabled:x,value:p,...l,ref:S,onKeyDown:(0,n.composeEventHandlers)(i,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,n.composeEventHandlers)(s,e=>{j(),b(e=>!!w(e)||!e),C&&y&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())})})},"CheckboxTrigger")),v=a.forwardRef(u(function(e,a){let{__scopeCheckbox:r,name:i,checked:n,defaultChecked:s,required:l,disabled:o,value:d,onCheckedChange:c,form:u,...p}=e;return(0,t.jsx)(h,{__scopeCheckbox:r,checked:n,defaultChecked:s,disabled:o,required:l,onCheckedChange:c,name:i,form:u,value:d,internal_do_not_use_render:({isFormControl:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(b,{...p,ref:a,__scopeCheckbox:r}),e&&(0,t.jsx)(y,{__scopeCheckbox:r})]})})},"Checkbox")),j=a.forwardRef(u(function(e,a){let{__scopeCheckbox:r,forceMount:i,...n}=e,s=g("CheckboxIndicator",r);return(0,t.jsx)(o.Presence,{present:i||w(s.checked)||!0===s.checked,children:(0,t.jsx)(d.Primitive.span,{"data-state":D(s.checked),"data-disabled":s.disabled?"":void 0,...n,ref:a,style:{pointerEvents:"none",...e.style}})})},"CheckboxIndicator")),y=a.forwardRef(u(function({__scopeCheckbox:e,onClick:i,...s},o){let{control:c,hasConsumerStoppedPropagationRef:u,userInteractionCount:p,checked:x,defaultChecked:f,required:m,disabled:h,name:b,value:v,form:j,bubbleInput:y,setBubbleInput:C}=g("CheckboxBubbleInput",e),D=(0,r.useComposedRefs)(o,C),S=(0,l.useSize)(c),k=a.useRef(!1),N=a.useRef(x),T=a.useRef(p);a.useEffect(()=>{if(!y)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=p!==T.current;T.current=p;let a=N.current!==x;N.current=x;let r=!(t&&u.current);if(a&&e){k.current=!t;let a=new Event("click",{bubbles:r});y.indeterminate=w(x),e.call(y,!w(x)&&x),y.dispatchEvent(a),k.current=!1}},[y,x,u,p]);let B=a.useRef(!w(x)&&x);return(0,t.jsx)(d.Primitive.input,{type:"checkbox","aria-hidden":!0,defaultChecked:f??B.current,required:m,disabled:h,name:b,value:v,form:j,...s,tabIndex:-1,ref:D,onClick:(0,n.composeEventHandlers)(i,e=>{k.current&&e.stopPropagation()}),style:{...s.style,...S,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"CheckboxBubbleInput"));function C(e){return"function"==typeof e}function w(e){return"indeterminate"===e}function D(e){return w(e)?"indeterminate":e?"checked":"unchecked"}u(C,"isFunction"),u(w,"isIndeterminate"),u(D,"getState"),e.s(["Checkbox",0,v,"CheckboxIndicator",0,j,"Indicator",0,j,"Root",0,v,"createCheckboxScope",0,f,"unstable_BubbleInput",0,y,"unstable_CheckboxBubbleInput",0,y,"unstable_CheckboxProvider",0,h,"unstable_CheckboxTrigger",0,b,"unstable_Provider",0,h,"unstable_Trigger",0,b],388474);var S=e.i(388474),S=S,k=e.i(975157),N=e.i(593698);e.s(["Checkbox",0,function({className:e,...a}){return(0,t.jsx)(S.Root,{"data-slot":"checkbox",className:(0,k.cn)("peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input transition-colors outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary",e),...a,children:(0,t.jsx)(S.Indicator,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none [&>svg]:size-3.5",children:(0,t.jsx)(N.CheckIcon,{})})})}],257428)},624687,e=>{"use strict";var t=e.i(843476),a=e.i(975157);e.s(["Textarea",0,function({className:e,...r}){return(0,t.jsx)("textarea",{"data-slot":"textarea",className:(0,a.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),...r})}])},929592,e=>{"use strict";var t=e.i(843476),a=e.i(225913),r=e.i(975157);let i=(0,a.cva)("group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"}},defaultVariants:{variant:"default"}});e.s(["Alert",0,function({className:e,variant:a,...n}){return(0,t.jsx)("div",{"data-slot":"alert",role:"alert",className:(0,r.cn)(i({variant:a}),e),...n})},"AlertDescription",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-description",className:(0,r.cn)("text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4",e),...a})},"AlertTitle",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-title",className:(0,r.cn)("font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground",e),...a})}])},515288,e=>{"use strict";var t=e.i(843476),a=e.i(975157);e.s(["Card",0,function({className:e,size:r="default",...i}){return(0,t.jsx)("div",{"data-slot":"card","data-size":r,className:(0,a.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>[data-slot=card-header]]:pt-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...i})},"CardAction",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-action",className:(0,a.cn)("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...r})},"CardContent",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,a.cn)("px-(--card-spacing)",e),...r})},"CardDescription",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,a.cn)("text-sm text-muted-foreground",e),...r})},"CardFooter",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-footer",className:(0,a.cn)("flex items-center rounded-b-xl border-t bg-muted/50 p-(--card-spacing)",e),...r})},"CardHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,a.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl bg-muted/40 px-(--card-spacing) py-(--card-spacing) not-last:border-b has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]",e),...r})},"CardTitle",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,a.cn)("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e),...r})}])},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),a=e.i(975157),r=e.i(758379),r=r;e.s(["Spinner",0,function({className:e,...i}){return(0,t.jsx)(r.default,{"data-slot":"spinner",role:"status","aria-label":"Loading",className:(0,a.cn)("size-4 animate-spin",e),...i})}],987968)},487486,e=>{"use strict";var t=e.i(843476),a=e.i(225913),r=e.i(586011),i=e.i(975157);let n=(0,a.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:a="default",asChild:s=!1,...l}){let o=s?r.Slot.Root:"span";return(0,t.jsx)(o,{className:(0,i.cn)(n({variant:a}),e),"data-slot":"badge","data-variant":a,...l})}])},784774,e=>{"use strict";var t=e.i(843476),a=e.i(975157);e.s(["Table",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,t.jsx)("table",{"data-slot":"table",className:(0,a.cn)("w-full caption-bottom text-sm",e),...r})})},"TableBody",0,function({className:e,...r}){return(0,t.jsx)("tbody",{"data-slot":"table-body",className:(0,a.cn)("[&_tr:last-child]:border-0",e),...r})},"TableCell",0,function({className:e,...r}){return(0,t.jsx)("td",{"data-slot":"table-cell",className:(0,a.cn)("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",e),...r})},"TableFooter",0,function({className:e,...r}){return(0,t.jsx)("tfoot",{"data-slot":"table-footer",className:(0,a.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...r})},"TableHead",0,function({className:e,...r}){return(0,t.jsx)("th",{"data-slot":"table-head",className:(0,a.cn)("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",e),...r})},"TableHeader",0,function({className:e,...r}){return(0,t.jsx)("thead",{"data-slot":"table-header",className:(0,a.cn)("[&_tr]:border-b",e),...r})},"TableRow",0,function({className:e,...r}){return(0,t.jsx)("tr",{"data-slot":"table-row",className:(0,a.cn)("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",e),...r})}])},110204,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(248425),i=Object.defineProperty,n=a.forwardRef(i(function(e,a){return(0,t.jsx)(r.Primitive.label,{...e,ref:a,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 s=e.i(973741),s=s,l=e.i(975157);e.s(["Label",0,function({className:e,...a}){return(0,t.jsx)(s.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),...a})}],110204)},776639,e=>{"use strict";var t=e.i(843476),a=e.i(560964),r=e.i(964053),i=e.i(519455),n=e.i(975157);function s({...e}){return(0,t.jsx)(r.Dialog.Portal,{"data-slot":"dialog-portal",...e})}function l({className:e,...a}){return(0,t.jsx)(r.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",...a})}e.s(["Dialog",0,function({...e}){return(0,t.jsx)(r.Dialog.Root,{"data-slot":"dialog",...e})},"DialogContent",0,function({className:e,children:o,showCloseButton:d=!0,...c}){return(0,t.jsxs)(s,{children:[(0,t.jsx)(l,{}),(0,t.jsxs)(r.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",...c,children:[o,d&&(0,t.jsx)(r.Dialog.Close,{asChild:!0,"data-slot":"dialog-close",children:(0,t.jsxs)(i.Button,{className:"absolute top-2 right-2",size:"icon-sm",variant:"ghost",children:[(0,t.jsx)(a.XIcon,{}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})})]})]})},"DialogDescription",0,function({className:e,...a}){return(0,t.jsx)(r.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",...a})},"DialogFooter",0,function({className:e,showCloseButton:a=!1,children:s,...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:[s,a&&(0,t.jsx)(r.Dialog.Close,{asChild:!0,children:(0,t.jsx)(i.Button,{variant:"outline",children:"Close"})})]})},"DialogHeader",0,function({className:e,...a}){return(0,t.jsx)("div",{className:(0,n.cn)("flex flex-col gap-2",e),"data-slot":"dialog-header",...a})},"DialogTitle",0,function({className:e,...a}){return(0,t.jsx)(r.Dialog.Title,{className:(0,n.cn)("font-heading text-base leading-none font-medium",e),"data-slot":"dialog-title",...a})},"DialogTrigger",0,function({...e}){return(0,t.jsx)(r.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 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)}`}])},716327,e=>{"use strict";var t=e.i(26495);e.s(["ChevronDown",()=>t.default])},21357,e=>{"use strict";let t=(0,e.i(456420).default)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);e.s(["Play",0,t],21357)},395925,e=>{"use strict";let t=(0,e.i(456420).default)("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);e.s(["RotateCcw",0,t],395925)},90969,771777,866026,e=>{"use strict";e.s(["buildDuration",0,function(e,t=Date.now()){let a=e.durationMs??(e.startedAt&&null!==t&&["QUEUED","PREPARING","RUNNING"].includes(e.status)?t-Date.parse(e.startedAt):null);if(null===a||!Number.isFinite(a))return"—";let r=Math.max(0,Math.floor(a/1e3)),i=Math.floor(r/3600),n=Math.floor(r%3600/60),s=r%60;return i>0?`${i}h${n>0?` ${n}m`:""}`:n>0?`${n}m${s>0?` ${s}s`:""}`:`${s}s`},"buildSnapshotName",0,function(e){let t=e.snapshot.repository,a=e.snapshot.worktree;return{repository:t?.name??"—",worktree:a?.branch??a?.folder??"—"}},"buildStatusVariant",0,function(e){return"FAILED"===e?"destructive":"SUCCEEDED"===e?"success":"secondary"}],90969);var t=e.i(843476),a=e.i(395925),r=e.i(948148),i=e.i(271645),n=e.i(519455),s=e.i(987968),l=e.i(462777),o=e.i(637611);e.s(["RebuildButton",0,function({buildId:e,onCompleted:d,onError:c,size:u="default"}){let p=(0,r.useTranslations)("builds"),[x,f]=(0,i.useState)(!1),m=async()=>{f(!0),c(null);try{let t=await (0,o.controlPlaneRequest)(`mutation RebuildBuild($id: ID!, $requestId: ID!) {
|
|
2
|
+
rebuildBuild(id: $id, requestId: $requestId) { id status }
|
|
3
|
+
}`,{id:e,requestId:(0,l.createClientId)()});await d?.(t.rebuildBuild)}catch(e){c(e instanceof Error?e.message:String(e))}finally{f(!1)}};return(0,t.jsxs)(n.Button,{disabled:x,onClick:e=>{e.stopPropagation(),m()},onKeyDown:e=>e.stopPropagation(),size:u,type:"button",variant:"outline",children:[x?(0,t.jsx)(s.Spinner,{}):(0,t.jsx)(a.RotateCcw,{})," ",p("rebuild")]})}],771777);var d=e.i(716327),c=e.i(21357),u=e.i(755146);e.s(["RunBuildControls",0,function({buildId:e,destinationType:a,preferredDestination:p,onCompleted:x,onError:f,size:m="default"}){let g=(0,r.useTranslations)("builds"),h=p?.generic?null:p??null,[b,v]=(0,i.useState)(h?[h]:[]),[j,y]=(0,i.useState)(h?new Set([h.id]):new Set),[C,w]=(0,i.useState)(!1),[D,S]=(0,i.useState)(!1),[k,N]=(0,i.useState)(!1),T=(0,i.useMemo)(()=>b.filter(e=>j.has(e.id)).map(e=>e.name),[b,j]),B=async()=>{S(!0),f(null);try{let t=(await (0,o.controlPlaneRequest)(`mutation BuildRunDestinations($buildId: ID!, $requestId: ID!) {
|
|
4
|
+
inspectBuildRunDestinations(buildId: $buildId, requestId: $requestId)
|
|
5
|
+
}`,{buildId:e,requestId:(0,l.createClientId)()})).inspectBuildRunDestinations.filter(e=>e.type===a&&!e.generic);v(t),y(e=>{let a=new Set(t.map(e=>e.id));return new Set([...e].filter(e=>a.has(e)))}),w(!0)}catch(e){f(e instanceof Error?e.message:String(e))}finally{S(!1)}},I=async()=>{N(!0),f(null);try{await (0,o.controlPlaneRequest)(`mutation RunCompletedBuild($input: RunBuildInput!) {
|
|
6
|
+
runBuild(input: $input) { id status }
|
|
7
|
+
}`,{input:{buildId:e,destinations:b.filter(e=>j.has(e.id)),requestId:(0,l.createClientId)()}}),y(new Set),await x?.()}catch(e){f(e instanceof Error?e.message:String(e))}finally{N(!1)}};return(0,t.jsxs)("div",{className:"flex items-center justify-end gap-2",onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),children:[(0,t.jsxs)(u.DropdownMenu,{onOpenChange:e=>{e&&!C&&B()},children:[(0,t.jsx)(u.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsxs)(n.Button,{disabled:D,size:m,type:"button",variant:"outline",children:[D?(0,t.jsx)(s.Spinner,{}):(0,t.jsx)(c.Play,{}),T.length?g("selectedDevices",{count:T.length}):g("selectRunDevices"),(0,t.jsx)(d.ChevronDown,{})]})}),(0,t.jsxs)(u.DropdownMenuContent,{align:"end",className:"w-72",children:[b.map(e=>(0,t.jsxs)(u.DropdownMenuCheckboxItem,{checked:j.has(e.id),onCheckedChange:t=>y(a=>{let r=new Set(a);return t?r.add(e.id):r.delete(e.id),r}),children:[e.name,e.osVersion?` \xb7 ${e.osVersion}`:""]},e.id)),C&&!b.length&&(0,t.jsx)("p",{className:"p-2 text-xs text-muted-foreground",children:g("noCompatibleDevices")})]})]}),(0,t.jsxs)(n.Button,{disabled:k||0===j.size,onClick:()=>void I(),size:m,type:"button",children:[k?(0,t.jsx)(s.Spinner,{}):(0,t.jsx)(c.Play,{})," ",g("run")]})]})}],866026)},747047,111530,e=>{"use strict";let t=`
|
|
8
|
+
id requestId jobId status action destinationType destination snapshot commandSummary artifactDirectory errorCode error outOfDate
|
|
9
|
+
createdAt startedAt finishedAt durationMs updatedAt
|
|
10
|
+
worktree { id highlightColor }
|
|
11
|
+
artifacts { id kind relativePath sizeBytes checksum metadata createdAt }
|
|
12
|
+
`;e.s(["BUILD_LIST_FIELDS",0,t],747047);var a=e.i(271645);e.s(["useBuildTimeTicker",0,function(){let[e,t]=(0,a.useState)(null);return(0,a.useEffect)(()=>{let e=()=>t(Date.now()),a=window.setTimeout(e,0),r=window.setInterval(e,1e3);return()=>{window.clearTimeout(a),window.clearInterval(r)}},[]),e}],111530)},229490,e=>{"use strict";var t=e.i(843476),a=e.i(93384),r=e.i(77071);let i=(0,e.i(456420).default)("scroll-text",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]);var n=e.i(573474),s=e.i(861745),l=e.i(948148),o=e.i(271645),d=e.i(340953),c=e.i(929592),u=e.i(487486),p=e.i(519455),x=e.i(515288),f=e.i(257428),m=e.i(816484),g=e.i(776639),h=e.i(82612),b=e.i(793479),v=e.i(110204),j=e.i(967489),y=e.i(987968),C=e.i(784774),w=e.i(677572),D=e.i(624687),S=e.i(520133),k=e.i(637611),N=e.i(360583),T=e.i(975157),B=e.i(171502),I=e.i(90969),R=e.i(747047),A=e.i(771777),E=e.i(866026),P=e.i(111530);let z=`
|
|
13
|
+
id name preBuildScript postBuildScript enabledByDefault timeoutSeconds failureBehavior createdAt updatedAt
|
|
14
|
+
`,L=`export default async function preBuild({
|
|
15
|
+
buildId,
|
|
16
|
+
branch,
|
|
17
|
+
destination,
|
|
18
|
+
action,
|
|
19
|
+
telemetry,
|
|
20
|
+
}) {
|
|
21
|
+
// Runs before the build from the worktree root.
|
|
22
|
+
// telemetry includes localBaseUrl, remoteBaseUrl, selectedBaseUrl,
|
|
23
|
+
// consoleLogsUrl, analyticsEventsUrl, and both collection-enabled flags.
|
|
24
|
+
}`,$=`export default async function postBuild({
|
|
25
|
+
buildId,
|
|
26
|
+
branch,
|
|
27
|
+
destination,
|
|
28
|
+
action,
|
|
29
|
+
buildFolder,
|
|
30
|
+
failed,
|
|
31
|
+
cancelled,
|
|
32
|
+
errorCode,
|
|
33
|
+
error,
|
|
34
|
+
telemetry,
|
|
35
|
+
}) {
|
|
36
|
+
// Runs after every build attempt from the worktree root.
|
|
37
|
+
// telemetry is the same immutable URL and collection-settings snapshot.
|
|
38
|
+
}`,_=["ALL","QUEUED","PREPARING","RUNNING","SUCCEEDED","FAILED","CANCELLED"];function H({open:e,script:a,onOpenChange:r,onSaved:i}){let n=(0,l.useTranslations)("builds"),[s,d]=(0,o.useState)(a?.name??""),[u,x]=(0,o.useState)(a?a.preBuildScript??"":L),[m,h]=(0,o.useState)(a?a.postBuildScript??"":$),[C,w]=(0,o.useState)(a?.enabledByDefault??!1),[S,N]=(0,o.useState)(a?.timeoutSeconds??300),[T,B]=(0,o.useState)(a?.failureBehavior??"FAIL_BUILD"),[I,R]=(0,o.useState)(!1),[A,E]=(0,o.useState)(null),P=async()=>{R(!0),E(null);try{await (0,k.controlPlaneRequest)(`mutation SaveBuildScript($input: SaveBuildScriptInput!) {
|
|
39
|
+
saveBuildScript(input: $input) { id }
|
|
40
|
+
}`,{input:{id:a?.id??null,name:s,preBuildScript:u||null,postBuildScript:m||null,enabledByDefault:C,timeoutSeconds:S,failureBehavior:T}}),await i(),r(!1)}catch(e){E(e instanceof Error?e.message:String(e))}finally{R(!1)}};return(0,t.jsx)(g.Dialog,{onOpenChange:r,open:e,children:(0,t.jsxs)(g.DialogContent,{className:"sm:max-w-2xl",children:[(0,t.jsxs)(g.DialogHeader,{children:[(0,t.jsx)(g.DialogTitle,{children:n(a?"editScript":"newScript")}),(0,t.jsx)(g.DialogDescription,{children:n("scriptDescription")})]}),A&&(0,t.jsx)(c.Alert,{variant:"destructive",children:(0,t.jsx)(c.AlertDescription,{children:A})}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.Label,{htmlFor:"build-script-name",children:n("name")}),(0,t.jsx)(b.Input,{id:"build-script-name",onChange:e=>d(e.target.value),value:s})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.Label,{htmlFor:"pre-build-script",children:n("preBuildScript")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:n("preBuildScriptHelp")}),(0,t.jsx)(D.Textarea,{className:"font-mono text-xs",id:"pre-build-script",onChange:e=>x(e.target.value),rows:8,value:u})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.Label,{htmlFor:"post-build-script",children:n("postBuildScript")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:n("postBuildScriptHelp")}),(0,t.jsx)(D.Textarea,{className:"font-mono text-xs",id:"post-build-script",onChange:e=>h(e.target.value),rows:8,value:m})]}),(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)(v.Label,{htmlFor:"script-timeout",children:n("timeout")}),(0,t.jsx)(b.Input,{id:"script-timeout",min:1,max:3600,onChange:e=>N(Number(e.target.value)),type:"number",value:S})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(v.Label,{children:n("failureBehavior")}),(0,t.jsxs)(j.Select,{onValueChange:e=>B(e),value:T,children:[(0,t.jsx)(j.SelectTrigger,{children:(0,t.jsx)(j.SelectValue,{})}),(0,t.jsxs)(j.SelectContent,{children:[(0,t.jsx)(j.SelectItem,{value:"FAIL_BUILD",children:n("failureBehaviors.FAIL_BUILD")}),(0,t.jsx)(j.SelectItem,{value:"CONTINUE",children:n("failureBehaviors.CONTINUE")})]})]})]})]}),(0,t.jsxs)("label",{className:"flex items-center gap-2",children:[(0,t.jsx)(f.Checkbox,{checked:C,onCheckedChange:e=>w(!!e)}),n("enabledByDefault")]})]}),(0,t.jsxs)(g.DialogFooter,{children:[(0,t.jsx)(p.Button,{onClick:()=>r(!1),type:"button",variant:"outline",children:n("cancel")}),(0,t.jsxs)(p.Button,{disabled:I||!s.trim()||!u.trim()&&!m.trim(),onClick:()=>void P(),type:"button",children:[I&&(0,t.jsx)(y.Spinner,{})," ",n("save")]})]})]})})}e.s(["BuildsPage",0,function(){let e=(0,l.useTranslations)("builds"),g=(0,s.useLocale)(),b=(0,S.useRouter)(),v=(0,P.useBuildTimeTicker)(),[D,L]=(0,o.useState)([]),[$,M]=(0,o.useState)([]),[U,O]=(0,o.useState)("ALL"),[q,F]=(0,o.useState)(null),[V,K]=(0,o.useState)(!0),[G,Q]=(0,o.useState)(!1),[X,J]=(0,o.useState)(null),[W,Y]=(0,o.useState)(!1),[Z,ee]=(0,o.useState)(null),[et,ea]=(0,o.useState)(new Set),[er,ei]=(0,o.useState)(!1),[en,es]=(0,o.useState)(!1),el=(0,o.useCallback)(async e=>{e?Q(!0):K(!0);try{let t=await (0,k.controlPlaneRequest)(`query BuildsPage($after: ID, $status: BuildStatus) {
|
|
41
|
+
builds(first: 50, after: $after, status: $status) {
|
|
42
|
+
items { ${R.BUILD_LIST_FIELDS} }
|
|
43
|
+
nextCursor
|
|
44
|
+
}
|
|
45
|
+
buildScripts { ${z} }
|
|
46
|
+
}`,{after:e??null,status:"ALL"===U?null:U});L(a=>e?[...a,...t.builds.items]:t.builds.items),F(t.builds.nextCursor),M(t.buildScripts),J(null)}catch(e){J(e instanceof Error?e.message:String(e))}finally{K(!1),Q(!1)}},[U]);(0,o.useEffect)(()=>{let e=window.setTimeout(()=>void el(),0);return()=>window.clearTimeout(e)},[el]),(0,o.useEffect)(()=>(0,k.controlPlaneSubscriptions)().subscribe({query:"subscription BuildsChanged { buildsChanged { id } }"},{next:()=>void el(),error:()=>void 0,complete:()=>void 0}),[el]);let eo=async e=>{try{await (0,k.controlPlaneRequest)("mutation DeleteBuildScript($id: ID!) { deleteBuildScript(id: $id) }",{id:e}),await el()}catch(e){J(e instanceof Error?e.message:String(e))}},ed=(0,o.useMemo)(()=>{let e=[];for(let t of D){let a=t.startedAt??t.createdAt,r=new Date(a),i=(0,N.dayKey)(r)??a,n=e.at(-1);n?.dateKey===i?n.items.push(t):e.push({key:`${i}-${t.id}`,dateKey:i,label:(0,N.formatDateValue)(r,"long",{locale:g,showTime:!1}),items:[t]})}return e},[D,g]),ec=async()=>{if(et.size){es(!0),J(null);try{await (0,k.controlPlaneRequest)("mutation DeleteBuilds($ids: [ID!]!) { deleteBuilds(ids: $ids) }",{ids:[...et]}),ea(new Set),ei(!1),await el()}catch(e){J(e instanceof Error?e.message:String(e))}finally{es(!1)}}};return(0,t.jsxs)("section",{className:"mx-auto flex w-full max-w-[1500px] flex-col gap-6",children:[(0,t.jsx)("div",{className:"flex flex-wrap items-start justify-between gap-4",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")})]})}),X&&(0,t.jsx)(c.Alert,{variant:"destructive",children:(0,t.jsx)(c.AlertDescription,{children:X})}),(0,t.jsxs)(w.Tabs,{defaultValue:"history",children:[(0,t.jsxs)(w.TabsList,{children:[(0,t.jsxs)(w.TabsTrigger,{value:"history",children:[(0,t.jsx)(a.Hammer,{})," ",e("history")]}),(0,t.jsxs)(w.TabsTrigger,{value:"scripts",children:[(0,t.jsx)(i,{})," ",e("buildScripts")]})]}),(0,t.jsxs)(w.TabsContent,{className:"space-y-4",value:"history",children:[(0,t.jsxs)("div",{className:"flex flex-wrap justify-end gap-2",children:[et.size>0&&(0,t.jsxs)(p.Button,{disabled:en,onClick:()=>ei(!0),variant:"destructive",children:[en?(0,t.jsx)(y.Spinner,{}):(0,t.jsx)(n.Trash2,{}),e("deleteSelected",{count:et.size})]}),(0,t.jsxs)(j.Select,{onValueChange:e=>{ea(new Set),O(e)},value:U,children:[(0,t.jsx)(j.SelectTrigger,{className:"w-48","aria-label":e("filterStatus"),children:(0,t.jsx)(j.SelectValue,{})}),(0,t.jsx)(j.SelectContent,{children:_.map(a=>(0,t.jsx)(j.SelectItem,{value:a,children:"ALL"===a?e("allStatuses"):e(`statuses.${a}`)},a))})]})]}),V&&!D.length?(0,t.jsxs)("p",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,t.jsx)(y.Spinner,{})," ",e("loading")]}):D.length?(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)(x.Card,{className:"gap-0 py-0",children:(0,t.jsxs)(C.Table,{children:[(0,t.jsx)(C.TableHeader,{children:(0,t.jsxs)(C.TableRow,{className:"hover:bg-transparent",children:[(0,t.jsx)(C.TableHead,{className:"w-12",children:(0,t.jsx)("span",{className:"sr-only",children:e("selectBuilds")})}),(0,t.jsx)(C.TableHead,{children:e("build")}),(0,t.jsx)(C.TableHead,{children:e("status")}),(0,t.jsx)(C.TableHead,{children:e("action")}),(0,t.jsx)(C.TableHead,{children:e("destination")}),(0,t.jsx)(C.TableHead,{children:e("startedAt")}),(0,t.jsx)(C.TableHead,{className:"text-right",children:e("actionsLabel")})]})}),(0,t.jsx)(C.TableBody,{children:ed.map(a=>{let r=a.items.map(e=>e.id),i=r.filter(e=>et.has(e)).length;return(0,t.jsxs)(o.Fragment,{children:[(0,t.jsxs)(C.TableRow,{className:"bg-muted/20 hover:bg-muted/20",children:[(0,t.jsx)(C.TableCell,{className:"py-1.5",children:(0,t.jsx)(f.Checkbox,{"aria-label":e("selectDate",{date:a.label}),checked:i===r.length||i>0&&"indeterminate",onCheckedChange:e=>ea(t=>{let a=new Set(t);for(let t of r)!0===e?a.add(t):a.delete(t);return a})})}),(0,t.jsx)(C.TableCell,{className:"py-1.5 text-xs font-normal text-muted-foreground",colSpan:6,children:a.label})]}),a.items.map(a=>{let r=(0,I.buildSnapshotName)(a),i=a.startedAt??a.createdAt,n="SUCCEEDED"===a.status&&a.artifacts.some(e=>"RUNNABLE_APP"===e.kind),s=a.worktree?.highlightColor;return(0,t.jsxs)(C.TableRow,{"aria-label":e("viewBuild"),className:(0,T.cn)("cursor-pointer focus-visible:bg-muted/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset",s&&B.worktreeHighlightBackgroundClasses[s]),onClick:()=>b.push(`/builds/${a.id}`),onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),b.push(`/builds/${a.id}`))},role:"link",tabIndex:0,children:[(0,t.jsx)(C.TableCell,{className:(0,T.cn)("border-l-4 pl-2",s?B.worktreeHighlightAccentClasses[s]:"border-l-transparent"),onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),children:(0,t.jsx)(f.Checkbox,{"aria-label":e("selectBuild",{id:a.id}),checked:et.has(a.id),onCheckedChange:e=>ea(t=>{let r=new Set(t);return!0===e?r.add(a.id):r.delete(a.id),r})})}),(0,t.jsxs)(C.TableCell,{className:"min-w-56 whitespace-normal",children:[(0,t.jsx)(S.Link,{className:"font-medium hover:underline",href:`/builds/${a.id}`,onClick:e=>e.stopPropagation(),children:r.repository}),(0,t.jsx)("p",{className:"font-mono text-xs text-muted-foreground",children:r.worktree})]}),(0,t.jsx)(C.TableCell,{children:(0,t.jsxs)("div",{className:"flex flex-wrap gap-1.5",children:[(0,t.jsx)(u.Badge,{variant:(0,I.buildStatusVariant)(a.status),children:e(`statuses.${a.status}`)}),a.outOfDate&&(0,t.jsx)(u.Badge,{className:"border-amber-500/40 text-amber-700 dark:text-amber-300",variant:"outline",children:e("outOfDate")})]})}),(0,t.jsx)(C.TableCell,{children:(0,t.jsx)(u.Badge,{variant:"outline",children:e(`actions.${a.action}`)})}),(0,t.jsx)(C.TableCell,{children:a.destination.name}),(0,t.jsx)(C.TableCell,{className:"text-muted-foreground",children:(0,t.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)(m.DateTime,{kind:"time",relativeToday:!0,value:i}),(0,t.jsx)("span",{className:"text-xs",children:e("durationValue",{duration:(0,I.buildDuration)(a,v)})})]})}),(0,t.jsx)(C.TableCell,{className:"text-right",children:(0,t.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[(0,t.jsx)(A.RebuildButton,{buildId:a.id,onCompleted:()=>el(),onError:J,size:"sm"}),n&&(0,t.jsx)(E.RunBuildControls,{buildId:a.id,destinationType:a.destinationType,onCompleted:el,onError:J,preferredDestination:a.destination,size:"sm"})]})})]},a.id)})]},a.key)})})]})}),q&&(0,t.jsx)("div",{className:"flex justify-center",children:(0,t.jsxs)(p.Button,{disabled:G,onClick:()=>void el(q),variant:"outline",children:[G&&(0,t.jsx)(y.Spinner,{})," ",e("loadMore")]})})]}):(0,t.jsx)(h.Empty,{className:"border py-12",children:(0,t.jsxs)(h.EmptyHeader,{children:[(0,t.jsx)(h.EmptyMedia,{variant:"icon",children:(0,t.jsx)(a.Hammer,{})}),(0,t.jsx)(h.EmptyTitle,{children:e("emptyTitle")}),(0,t.jsx)(h.EmptyDescription,{children:e("emptyDescription")})]})})]}),(0,t.jsxs)(w.TabsContent,{className:"space-y-4",value:"scripts",children:[(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsxs)(p.Button,{onClick:()=>{ee(null),Y(!0)},children:[(0,t.jsx)(r.Plus,{})," ",e("newScript")]})}),$.length?(0,t.jsx)("div",{className:"grid gap-3 lg:grid-cols-2",children:$.map(a=>(0,t.jsxs)(x.Card,{children:[(0,t.jsx)(x.CardHeader,{children:(0,t.jsxs)(x.CardTitle,{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)("span",{children:a.name}),a.enabledByDefault&&(0,t.jsx)(u.Badge,{children:e("defaultEnabled")})]})}),(0,t.jsxs)(x.CardContent,{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex flex-wrap gap-2 text-xs text-muted-foreground",children:[a.preBuildScript&&(0,t.jsx)(u.Badge,{variant:"outline",children:e("preBuild")}),a.postBuildScript&&(0,t.jsx)(u.Badge,{variant:"outline",children:e("postBuild")}),(0,t.jsx)("span",{children:e("timeoutSeconds",{count:a.timeoutSeconds})}),(0,t.jsx)("span",{children:e(`failureBehaviors.${a.failureBehavior}`)})]}),(0,t.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,t.jsx)(p.Button,{onClick:()=>{ee(a),Y(!0)},size:"sm",variant:"outline",children:e("edit")}),(0,t.jsx)(p.Button,{"aria-label":e("deleteScript"),onClick:()=>void eo(a.id),size:"icon-sm",variant:"destructive",children:(0,t.jsx)(n.Trash2,{})})]})]})]},a.id))}):(0,t.jsx)(h.Empty,{className:"border py-12",children:(0,t.jsxs)(h.EmptyHeader,{children:[(0,t.jsx)(h.EmptyMedia,{variant:"icon",children:(0,t.jsx)(i,{})}),(0,t.jsx)(h.EmptyTitle,{children:e("noScripts")}),(0,t.jsx)(h.EmptyDescription,{children:e("noScriptsDescription")})]})})]})]}),W&&(0,t.jsx)(H,{onOpenChange:Y,onSaved:el,open:W,script:Z}),(0,t.jsx)(d.ConfirmationDialog,{actionLabel:e("deleteBuilds"),cancelLabel:e("cancel"),description:e("deleteBuildsDescription",{count:et.size}),onConfirm:ec,onOpenChange:ei,open:er,title:e("deleteBuildsTitle",{count:et.size})})]})}],229490)}]);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,711241,e=>{"use strict";let s=(0,e.i(456420).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",0,s],711241)},856522,e=>{"use strict";let s=(0,e.i(456420).default)("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);e.s(["Save",0,s],856522)},730274,e=>{"use strict";let s=(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,s],730274)},975856,e=>{"use strict";var s=e.i(843476),t=e.i(716327),r=e.i(867927),a=e.i(482022),i=e.i(395925),l=e.i(948148),n=e.i(271645),d=e.i(647776),o=e.i(487486),c=e.i(519455),u=e.i(987968),m=e.i(637611);function p({job:e,repositoryId:t,checkSuiteId:r,onRetried:a,onError:d}){let o=(0,l.useTranslations)("pullRequestDetail"),x=(0,l.useTranslations)("pullRequests"),[h,b]=(0,n.useState)(!1),j=async s=>{if(s.stopPropagation(),e.canRetry&&r){b(!0);try{await (0,m.controlPlaneRequest)(`mutation RetryGitHubWorkflowJob(
|
|
2
|
+
$repositoryId: ID!
|
|
3
|
+
$checkSuiteId: ID!
|
|
4
|
+
$jobId: ID!
|
|
5
|
+
) {
|
|
6
|
+
retryGitHubWorkflowJob(
|
|
7
|
+
repositoryId: $repositoryId
|
|
8
|
+
checkSuiteId: $checkSuiteId
|
|
9
|
+
jobId: $jobId
|
|
10
|
+
)
|
|
11
|
+
}`,{repositoryId:t,checkSuiteId:r,jobId:e.id}),a(),d(null)}catch(e){d(e instanceof Error?e.message:String(e))}finally{b(!1)}}},v=e.retryUnavailableReason?x(`retryUnavailable.${e.retryUnavailableReason}`):void 0;return(0,s.jsxs)(c.Button,{"aria-label":o("retryJob",{job:e.name}),disabled:h||!e.canRetry||!r,onClick:e=>void j(e),size:"sm",title:v,variant:"outline",children:[h?(0,s.jsx)(u.Spinner,{}):(0,s.jsx)(i.RotateCcw,{}),x(h?"retrying":"retry")]})}e.s(["WorkflowJob",0,function({job:e,repositoryId:i,checkSuiteId:u,onRetried:m,onError:x}){let h=(0,l.useTranslations)("pullRequestDetail"),b=(0,l.useTranslations)("pullRequests"),[j,v]=(0,n.useState)(!1);return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5",children:[(0,s.jsxs)("button",{"aria-expanded":j,"aria-label":h(j?"hideJobSteps":"showJobSteps",{job:e.name}),className:"flex min-w-0 flex-1 items-center gap-2 rounded-md px-2 py-2 text-left hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",onClick:()=>v(e=>!e),type:"button",children:[j?(0,s.jsx)(t.ChevronDown,{className:"size-4 shrink-0"}):(0,s.jsx)(r.ChevronRight,{className:"size-4 shrink-0"}),(0,s.jsx)("span",{className:"min-w-0 flex-1 truncate text-sm font-medium",children:e.name}),(0,s.jsx)(o.Badge,{className:(0,d.pipelineStateClass)(e.status),children:b(`pipelineStates.${e.status}`)})]}),e.url&&(0,s.jsx)(c.Button,{asChild:!0,size:"sm",variant:"outline",children:(0,s.jsxs)("a",{"aria-label":h("viewJob",{job:e.name}),href:e.url,rel:"noreferrer",target:"_blank",children:[h("viewPipeline"),(0,s.jsx)(a.ExternalLink,{})]})}),(0,s.jsx)(p,{checkSuiteId:u,job:e,onError:x,onRetried:m,repositoryId:i})]}),j&&(0,s.jsxs)("div",{className:"mb-3 w-full rounded-md border bg-background p-3",children:[(0,s.jsx)("p",{className:"mb-2 text-xs font-medium uppercase tracking-wide text-muted-foreground",children:h("steps")}),0===e.steps.length?(0,s.jsx)("p",{className:"text-sm text-muted-foreground",children:h("noSteps")}):(0,s.jsx)("ol",{className:"space-y-2",children:e.steps.map(e=>(0,s.jsxs)("li",{className:"flex items-center gap-3 text-sm",children:[(0,s.jsx)("span",{className:"flex size-5 shrink-0 items-center justify-center rounded-full bg-muted text-[11px] text-muted-foreground",children:e.number}),(0,s.jsx)("span",{className:"min-w-0 flex-1",children:e.name}),(0,s.jsx)(o.Badge,{className:(0,d.pipelineStateClass)(e.status),children:b(`pipelineStates.${e.status}`)})]},e.number))})]})]})}])},16781,142833,e=>{"use strict";var s=e.i(843476),t=e.i(482022),r=e.i(730274),a=e.i(948148),i=e.i(271645),l=e.i(159888),n=e.i(689664),d=e.i(508734),o=e.i(772382),c=e.i(519455),u=e.i(462777),m=e.i(975157);function p({bodyHtml:e,className:t}){return(0,s.jsx)("div",{className:(0,m.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",t),dangerouslySetInnerHTML:{__html:e}})}function x({body:e,bodyHtml:t,emptyLabel:r,header:h,headerActions:b,headerClassName:j}){let v=(0,a.useTranslations)("githubComments"),[y,w]=(0,i.useState)("RENDERED"),[f,g]=(0,i.useState)("IDLE");(0,i.useEffect)(()=>{if("COPIED"!==f)return;let e=window.setTimeout(()=>g("IDLE"),2e3);return()=>window.clearTimeout(e)},[f]);let R=async()=>{try{await (0,u.copyText)(e),g("COPIED")}catch{g("FAILED")}};return(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{className:(0,m.cn)("flex flex-wrap items-center justify-between gap-2",j),children:[(0,s.jsx)("div",{className:"min-w-0",children:h}),(e||b)&&(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[b,e&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c.Button,{onClick:()=>w(e=>"RENDERED"===e?"MARKDOWN":"RENDERED"),size:"xs",type:"button",variant:"outline",children:["RENDERED"===y?(0,s.jsx)(l.Braces,{}):(0,s.jsx)(o.Eye,{}),v("RENDERED"===y?"viewRaw":"viewRendered")]}),(0,s.jsxs)(c.Button,{"aria-label":v("copy"),onClick:()=>void R(),size:"xs",type:"button",variant:"outline",children:["COPIED"===f?(0,s.jsx)(n.Check,{}):(0,s.jsx)(d.Copy,{}),v("COPIED"===f?"copied":"copy")]})]})]})]}),"FAILED"===f&&(0,s.jsx)("p",{className:"text-xs text-destructive",children:v("copyFailed")}),e?"MARKDOWN"===y?(0,s.jsx)("pre",{className:"rounded-lg bg-muted p-3 text-xs whitespace-pre-wrap break-words [overflow-wrap:anywhere]",children:e}):(0,s.jsx)(p,{bodyHtml:t}):(0,s.jsx)("p",{className:"text-sm text-muted-foreground",children:r})]})}e.s(["GitHubMarkdownBlock",0,x],142833);var h=e.i(948812),b=e.i(929592),j=e.i(799676),v=e.i(487486),y=e.i(515288),w=e.i(816484),f=e.i(987968),g=e.i(624687),R=e.i(520133),N=e.i(637611);function C({actor:e,compact:t=!1}){let r=(0,a.useTranslations)("githubComments");return e?(0,s.jsxs)("a",{className:"inline-flex min-w-0 items-center gap-2 hover:underline",href:e.url,rel:"noreferrer",target:"_blank",children:[(0,s.jsxs)(j.Avatar,{className:t?"size-5":"size-7",children:[(0,s.jsx)(j.AvatarImage,{alt:"",src:e.avatarUrl}),(0,s.jsx)(j.AvatarFallback,{children:e.login.slice(0,1).toUpperCase()})]}),(0,s.jsxs)("span",{className:"truncate",children:["@",e.login]})]}):(0,s.jsx)("span",{children:r("unknownAuthor")})}function k(e,s){if("FILE"===e.subjectType)return`${e.path} \xb7 ${s}`;let t=e.line??e.originalLine,r=e.startLine??e.originalStartLine;return null===t?e.path:`${e.path} \xb7 L${r&&r!==t?`${r}–`:""}${t}`}function I({label:e,url:r}){return(0,s.jsx)(c.Button,{asChild:!0,size:"icon-xs",title:e,variant:"outline",children:(0,s.jsx)("a",{"aria-label":e,href:r,rel:"noreferrer",target:"_blank",children:(0,s.jsx)(t.ExternalLink,{})})})}e.s(["ReviewAuthor",0,C,"ReviewThreadCard",0,function({onReplyAdded:e,onStateChanged:t,thread:l}){let n=(0,a.useTranslations)("githubComments"),[d,o]=(0,i.useState)(""),[u,m]=(0,i.useState)(!1),[p,j]=(0,i.useState)(!1),[T,E]=(0,i.useState)(null),D=async s=>{if(s.preventDefault(),d.trim()&&l.viewerCanReply){m(!0);try{let s=await (0,N.controlPlaneRequest)(`mutation ReplyToGitHubReviewThread($threadId: ID!, $body: String!) {
|
|
12
|
+
replyToGitHubReviewThread(threadId: $threadId, body: $body) {
|
|
13
|
+
id body bodyText bodyHtml url author { login avatarUrl url } createdAt updatedAt
|
|
14
|
+
}
|
|
15
|
+
}`,{threadId:l.id,body:d});e(l.id,s.replyToGitHubReviewThread),o(""),E(null)}catch(e){E(e instanceof Error?e.message:String(e))}finally{m(!1)}}},S=async()=>{let e=!l.isResolved;if((!e||l.viewerCanResolve)&&(e||l.viewerCanUnresolve)){j(!0);try{let s=await (0,N.controlPlaneRequest)(`mutation SetGitHubReviewThreadResolved(
|
|
16
|
+
$threadId: ID!
|
|
17
|
+
$resolved: Boolean!
|
|
18
|
+
) {
|
|
19
|
+
setGitHubReviewThreadResolved(
|
|
20
|
+
threadId: $threadId
|
|
21
|
+
resolved: $resolved
|
|
22
|
+
) { id isResolved viewerCanResolve viewerCanUnresolve resolvedBy { login avatarUrl url } }
|
|
23
|
+
}`,{threadId:l.id,resolved:e});t(s.setGitHubReviewThreadResolved),E(null)}catch(e){E(e instanceof Error?e.message:String(e))}finally{j(!1)}}},A=l.isResolved?l.viewerCanUnresolve:l.viewerCanResolve;return(0,s.jsx)(y.Card,{children:(0,s.jsxs)(y.CardContent,{className:"space-y-5",children:[(0,s.jsx)(x,{body:l.rootComment.body,bodyHtml:l.rootComment.bodyHtml,emptyLabel:"—",header:(0,s.jsxs)("div",{className:"min-w-0 space-y-2",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-sm",children:[(0,s.jsx)(C,{actor:l.rootComment.author}),(0,s.jsx)("span",{className:"text-muted-foreground",children:"·"}),(0,s.jsx)(w.DateTime,{className:"text-muted-foreground",kind:"relative",value:l.rootComment.createdAt})]}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-xs",children:[(0,s.jsx)(v.Badge,{className:"max-w-full",title:k(l,n("fileComment")),variant:"outline",children:k(l,n("fileComment"))}),l.isOutdated&&(0,s.jsx)(v.Badge,{variant:"secondary",children:n("outdated")}),(0,s.jsx)(v.Badge,{variant:l.isResolved?"secondary":"outline",children:l.isResolved?n("resolved"):n("unresolved")}),(0,s.jsxs)(R.Link,{className:"font-medium text-primary hover:underline",href:(0,h.pullRequestDetailHref)(l.pullRequest),children:[l.pullRequest.repositoryNameWithOwner," #",l.pullRequest.number]})]})]}),headerActions:(0,s.jsx)(I,{label:n("openInGitHub"),url:l.rootComment.url}),headerClassName:"border-b pb-4"}),l.replies.length>0&&(0,s.jsx)("div",{className:"space-y-3",children:l.replies.map(e=>(0,s.jsx)(y.Card,{size:"sm",children:(0,s.jsx)(y.CardContent,{children:(0,s.jsx)(x,{body:e.body,bodyHtml:e.bodyHtml,emptyLabel:"—",header:(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-xs",children:[(0,s.jsx)(C,{actor:e.author,compact:!0}),(0,s.jsx)("span",{className:"text-muted-foreground",children:"·"}),(0,s.jsx)(w.DateTime,{className:"text-muted-foreground",kind:"relative",value:e.createdAt})]}),headerActions:(0,s.jsx)(I,{label:n("openReplyInGitHub"),url:e.url}),headerClassName:"border-b pb-3"})})},e.id))}),T&&(0,s.jsx)(b.Alert,{variant:"destructive",children:(0,s.jsx)(b.AlertDescription,{children:T})}),(0,s.jsxs)("form",{className:"space-y-3",onSubmit:D,children:[(0,s.jsx)(g.Textarea,{"aria-label":n("reply"),disabled:!l.viewerCanReply||u,onChange:e=>o(e.target.value),placeholder:l.viewerCanReply?n("replyPlaceholder"):n("replyUnavailable"),value:d}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center justify-end gap-2",children:[(0,s.jsxs)(c.Button,{disabled:!A||p,onClick:()=>void S(),type:"button",variant:"outline",children:[p&&(0,s.jsx)(f.Spinner,{}),l.isResolved?n("reopen"):n("resolve")]}),(0,s.jsxs)(c.Button,{disabled:!l.viewerCanReply||u||!d.trim(),type:"submit",children:[u?(0,s.jsx)(f.Spinner,{}):(0,s.jsx)(r.Send,{}),u?n("replying"):n("sendReply")]})]})]})]})})}],16781)},337868,e=>{"use strict";var s=e.i(843476),t=e.i(711241),r=e.i(482022);let a=(0,e.i(456420).default)("git-commit-horizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]);var i=e.i(634398),l=e.i(269846),n=e.i(741120),d=e.i(948148),o=e.i(618566),c=e.i(271645),u=e.i(647776),m=e.i(9197),p=e.i(321194),x=e.i(975856),h=e.i(567153),b=e.i(142833),j=e.i(346194),v=e.i(16781),y=e.i(356505),w=e.i(929592),f=e.i(799676),g=e.i(487486),R=e.i(519455),N=e.i(515288),C=e.i(816484),k=e.i(82612),I=e.i(987968),T=e.i(784774),E=e.i(520133),D=e.i(637611),S=e.i(940276);function A(e){let s=new URLSearchParams(window.location.search);e?s.set("issue",e):s.delete("issue");let t=s.toString();window.history.pushState(null,"",`${window.location.pathname}${t?`?${t}`:""}`)}function H({label:e,children:t}){return(0,s.jsxs)("div",{className:"grid min-w-0 grid-cols-[auto_minmax(0,1fr)] items-start gap-4",children:[(0,s.jsx)("dt",{className:"text-muted-foreground",children:e}),(0,s.jsx)("dd",{className:"min-w-0 text-right font-medium break-words [overflow-wrap:anywhere]",children:t})]})}function U({label:e,person:t,unknownLabel:r}){return(0,s.jsxs)("div",{children:[e&&(0,s.jsx)("p",{className:"mb-2 text-xs text-muted-foreground",children:e}),t?(0,s.jsxs)("a",{className:"flex items-center gap-2 text-sm hover:underline",href:t.url,rel:"noreferrer",target:"_blank",children:[(0,s.jsxs)(f.Avatar,{className:"size-6",children:[(0,s.jsx)(f.AvatarImage,{alt:"",src:t.avatarUrl}),(0,s.jsx)(f.AvatarFallback,{children:t.login.slice(0,1).toUpperCase()})]}),"@",t.login]}):(0,s.jsx)("p",{className:"text-sm",children:r})]})}e.s(["PullRequestDetailPage",0,function({owner:e,repository:f,number:B}){var L;let P=(0,d.useTranslations)("pullRequestDetail"),$=(0,d.useTranslations)("pullRequests"),G=(0,o.useSearchParams)().get("issue"),[q,O]=(0,c.useState)(null),[M,z]=(0,c.useState)(!0),[F,_]=(0,c.useState)(null),[W,J]=(0,c.useState)({}),K=(0,c.useCallback)(async()=>{z(!0);try{let s=await (0,D.controlPlaneRequest)(`query GitHubPullRequestDetail(
|
|
24
|
+
$owner: String!
|
|
25
|
+
$name: String!
|
|
26
|
+
$number: Int!
|
|
27
|
+
) {
|
|
28
|
+
githubPullRequest(owner: $owner, name: $name, number: $number) {
|
|
29
|
+
id codebaseRepositoryId number title url repositoryGithubId repositoryNameWithOwner repositoryUrl labels jiraKey pipelineStatus pipelines { id name status url checkSuiteId canRetry retryUnavailableReason workflowRunId workflowId runNumber runAttempt jobs { id name status url canRetry retryUnavailableReason runAttempt steps { number name status } } } reviewDecision unresolvedReviewThreadCount headRefName createdAt body bodyHtml author { login avatarUrl url } assignees { login avatarUrl url } reviewThreads { id isResolved isOutdated subjectType path line startLine originalLine originalStartLine viewerCanReply viewerCanResolve viewerCanUnresolve resolvedBy { login avatarUrl url } pullRequest { id number title url repositoryNameWithOwner } rootComment { id body bodyText bodyHtml url author { login avatarUrl url } createdAt updatedAt } replies { id body bodyText bodyHtml url author { login avatarUrl url } createdAt updatedAt } } baseRefName state isDraft mergeable additions deletions changedFiles commitCount updatedAt mergedAt worktreeId
|
|
30
|
+
}
|
|
31
|
+
}`,{owner:e,name:f,number:B});O(s.githubPullRequest),_(null)}catch(e){_(e instanceof Error?e.message:String(e))}finally{z(!1)}},[B,e,f]);(0,c.useEffect)(()=>{let e=window.setTimeout(()=>void K(),0);return()=>window.clearTimeout(e)},[K]);let Q=(e,s)=>{O(t=>t?{...t,reviewThreads:t.reviewThreads.map(t=>t.id===e?{...t,replies:[...t.replies,s]}:t)}:t)},V=e=>{O(s=>{if(!s)return s;let t=s.reviewThreads.find(s=>s.id===e.id),r=t&&t.isResolved!==e.isResolved?e.isResolved?-1:1:0;return{...s,unresolvedReviewThreadCount:Math.max(0,s.unresolvedReviewThreadCount+r),reviewThreads:s.reviewThreads.map(s=>s.id===e.id?{...s,...e}:s)}})};return M&&!q?(0,s.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,s.jsx)(I.Spinner,{}),P("loading")]}):q?(0,s.jsxs)("section",{className:"mx-auto flex min-w-0 w-full max-w-6xl flex-col gap-5",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)(R.Button,{asChild:!0,className:"mb-3 -ml-2",variant:"ghost",children:(0,s.jsxs)(E.Link,{href:"/pull-requests",children:[(0,s.jsx)(t.ArrowLeft,{}),P("back")]})}),(0,s.jsxs)("p",{className:"text-sm text-muted-foreground",children:[q.repositoryNameWithOwner," #",q.number]}),(0,s.jsx)("h1",{className:"mt-1 text-2xl font-semibold break-words tracking-tight [overflow-wrap:anywhere]",children:q.title}),(0,s.jsxs)("div",{className:"mt-3 flex flex-wrap items-center gap-2",children:[(0,s.jsx)(g.Badge,{children:$(`pullRequestStates.${q.state}`)}),q.isDraft&&(0,s.jsx)(g.Badge,{children:P("draft")}),(0,s.jsx)(g.Badge,{className:"APPROVED"===(L=q.reviewDecision)?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"CHANGES_REQUESTED"===L?"border-red-500/30 bg-red-500/10 text-red-700 dark:text-red-300":"REVIEW_REQUIRED"===L?"border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300":"border-slate-500/30 bg-slate-500/10 text-slate-700 dark:text-slate-300",children:$(`reviewStates.${q.reviewDecision}`)}),q.jiraKey&&(0,s.jsx)(g.Badge,{asChild:!0,className:"cursor-pointer hover:bg-muted/80",children:(0,s.jsx)("button",{onClick:()=>A(q.jiraKey),type:"button",children:q.jiraKey})})]})]}),(0,s.jsxs)("div",{className:"flex flex-wrap gap-2",children:[q.worktreeId&&(0,s.jsx)(R.Button,{asChild:!0,variant:"outline",children:(0,s.jsxs)(E.Link,{href:(0,S.worktreeDetailHref)(q.worktreeId),children:[(0,s.jsx)(l.GitBranch,{}),P("viewWorktree")]})}),"OPEN"===q.state&&(0,s.jsx)(j.MergePullRequestButton,{onMerged:K,pullRequest:q,size:"default"}),(0,s.jsxs)(R.Button,{disabled:M,onClick:()=>void K(),variant:"outline",children:[(0,s.jsx)(n.RefreshCw,{className:M?"animate-spin":void 0}),P("refresh")]}),(0,s.jsx)(R.Button,{asChild:!0,children:(0,s.jsxs)("a",{href:q.url,rel:"noreferrer",target:"_blank",children:[P("openInGitHub"),(0,s.jsx)(r.ExternalLink,{})]})})]})]}),F&&(0,s.jsx)(w.Alert,{variant:"destructive",children:(0,s.jsx)(w.AlertDescription,{children:F})}),(0,s.jsxs)("div",{className:"grid min-w-0 gap-5 lg:grid-cols-2",children:[(0,s.jsxs)("div",{className:"contents",children:[(0,s.jsx)(N.Card,{className:"min-w-0 order-2 lg:col-span-2",children:(0,s.jsx)(N.CardContent,{children:(0,s.jsx)(b.GitHubMarkdownBlock,{body:q.body,bodyHtml:q.bodyHtml,emptyLabel:P("noDescription"),header:(0,s.jsx)(N.CardTitle,{children:P("description")}),headerClassName:"border-b pb-4"})})}),(0,s.jsxs)("div",{className:"min-w-0 order-3 space-y-4 lg:col-span-2",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,s.jsx)("h2",{className:"text-lg font-semibold",children:P("comments")}),(0,s.jsx)(g.Badge,{variant:"secondary",children:q.reviewThreads.length})]}),0===q.reviewThreads.length?(0,s.jsx)(k.Empty,{className:"border py-8",children:(0,s.jsxs)(k.EmptyHeader,{children:[(0,s.jsx)(k.EmptyTitle,{children:P("noComments")}),(0,s.jsx)(k.EmptyDescription,{children:P("noCommentsDescription")})]})}):(0,s.jsx)("div",{className:"space-y-5",children:q.reviewThreads.map(e=>(0,s.jsx)(v.ReviewThreadCard,{onReplyAdded:Q,onStateChanged:V,thread:e},e.id))})]}),(0,s.jsxs)(N.Card,{className:"min-w-0 order-4 gap-0 py-0 lg:col-span-2",children:[(0,s.jsxs)(N.CardHeader,{className:"flex grid-cols-none flex-row items-center justify-between gap-3",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(N.CardTitle,{children:P("pipelines")}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:P("pipelineCount",{count:q.pipelines.length})})]}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[q.codebaseRepositoryId?(0,s.jsx)(R.Button,{asChild:!0,size:"sm",variant:"outline",children:(0,s.jsx)(E.Link,{href:(0,h.actionsForBranchHref)(q.codebaseRepositoryId,q.headRefName),children:P("viewAll")})}):null,q.codebaseRepositoryId?(0,s.jsx)(m.AutoRetryDialog,{allowFuture:!0,branch:q.headRefName,codebaseRepositoryId:q.codebaseRepositoryId,currentRuns:q.pipelines.filter(e=>e.workflowRunId&&e.workflowId).map(e=>({id:e.workflowRunId,workflowId:e.workflowId,name:e.name,jobs:e.jobs})),pullRequestNumber:q.number,repositoryGithubId:q.repositoryGithubId}):null,(0,s.jsx)(u.PipelineMenu,{onPipelineRetried:e=>{O(s=>s?{...s,pipelineStatus:"PENDING",pipelines:s.pipelines.map(s=>s.id===e.id?{...e,jobs:e.jobs??s.jobs}:s)}:s)},pipelineStatus:q.pipelineStatus,pipelines:q.pipelines,repositoryId:q.repositoryGithubId})]})]}),(0,s.jsx)(N.CardContent,{className:"px-0",children:0===q.pipelines.length?(0,s.jsx)("p",{className:"p-4 text-sm text-muted-foreground",children:$("noPipelines")}):(0,s.jsxs)(T.Table,{children:[(0,s.jsx)(T.TableHeader,{children:(0,s.jsxs)(T.TableRow,{className:"hover:bg-transparent",children:[(0,s.jsx)(T.TableHead,{children:P("pipelineName")}),(0,s.jsx)(T.TableHead,{children:P("pipelineStatus")}),(0,s.jsx)(T.TableHead,{className:"text-right",children:P("pipelineDetails")})]})}),(0,s.jsx)(T.TableBody,{children:q.pipelines.map(e=>{let t=W[e.id]??null,r=t?.status??e.status,a=t?.url??e.url,i=t?.jobs??e.jobs;return(0,s.jsxs)(c.Fragment,{children:[(0,s.jsxs)(T.TableRow,{children:[(0,s.jsxs)(T.TableCell,{className:"font-medium",children:[e.name,e.workflowRunId&&e.runAttempt?(0,s.jsx)("div",{className:"mt-2",children:(0,s.jsx)(p.WorkflowAttemptSelect,{latestAttempt:e.runAttempt,onAttemptChange:s=>J(t=>({...t,[e.id]:s})),repositoryId:q.repositoryGithubId,workflowRunId:e.workflowRunId})}):null]}),(0,s.jsx)(T.TableCell,{children:(0,s.jsx)(g.Badge,{className:(0,u.pipelineStateClass)(r),children:$(`pipelineStates.${r}`)})}),(0,s.jsx)(T.TableCell,{children:(0,s.jsx)("div",{className:"flex justify-end",children:(0,s.jsx)(h.WorkflowRunActionsMenu,{onCancelled:()=>{var s;return s=e.id,void O(e=>e?{...e,pipelineStatus:"FAILURE",pipelines:e.pipelines.map(e=>e.id===s?{...e,status:"CANCELLED",canRetry:!1,retryUnavailableReason:"NOT_COMPLETED"}:e)}:e)},onError:_,onRetried:()=>{var s;return s=e.id,void O(e=>e?{...e,pipelineStatus:"PENDING",pipelines:e.pipelines.map(e=>e.id===s?{...e,status:"QUEUED",canRetry:!1,retryUnavailableReason:"NOT_COMPLETED"}:e)}:e)},run:{id:e.workflowRunId??e.id,workflowId:e.workflowId??e.name,repositoryGithubId:q.repositoryGithubId,codebaseRepositoryId:!t&&e.workflowRunId?q.codebaseRepositoryId:null,name:e.name,displayTitle:e.name,status:r,url:a,checkSuiteId:t?null:e.checkSuiteId,canRetry:!t&&e.canRetry,retryUnavailableReason:e.retryUnavailableReason},viewAllHref:q.codebaseRepositoryId&&e.workflowId?(0,h.actionsForBranchHref)(q.codebaseRepositoryId,q.headRefName,e.workflowId):null})})})]}),(0,s.jsx)(T.TableRow,{className:"bg-muted/20 hover:bg-muted/20",children:(0,s.jsx)(T.TableCell,{className:"p-0",colSpan:3,children:(0,s.jsxs)("div",{className:"border-l-2 border-muted-foreground/20 px-4 py-1",children:[(0,s.jsx)("p",{className:"px-3 py-2 text-xs font-medium uppercase tracking-wide text-muted-foreground",children:P("jobCount",{count:i.length})}),0===i.length?(0,s.jsx)("p",{className:"px-3 pb-3 text-sm text-muted-foreground",children:P("noJobs")}):(0,s.jsx)("div",{className:"divide-y",children:i.map(t=>(0,s.jsx)(x.WorkflowJob,{checkSuiteId:e.checkSuiteId,job:t,onError:_,onRetried:()=>{var s,r;return s=e.id,r=t.id,void O(e=>e?{...e,pipelineStatus:"PENDING",pipelines:e.pipelines.map(e=>e.id===s?{...e,status:"QUEUED",canRetry:!1,retryUnavailableReason:"NOT_COMPLETED",jobs:e.jobs.map(e=>e.id===r?{...e,status:"QUEUED",canRetry:!1,retryUnavailableReason:"NOT_COMPLETED",steps:[]}:{...e,canRetry:!1,retryUnavailableReason:"NOT_COMPLETED"})}:e)}:e)},repositoryId:q.repositoryGithubId},t.id))})]})})})]},e.id)})})]})})]})]}),(0,s.jsxs)("div",{className:"contents",children:[(0,s.jsxs)(N.Card,{className:"min-w-0 order-1",children:[(0,s.jsx)(N.CardHeader,{children:(0,s.jsx)(N.CardTitle,{children:P("details")})}),(0,s.jsx)(N.CardContent,{children:(0,s.jsxs)("dl",{className:"grid gap-4 text-sm",children:[(0,s.jsx)(H,{label:P("branches"),children:(0,s.jsxs)("span",{className:"font-mono text-xs break-all",children:[q.headRefName," → ",q.baseRefName]})}),(0,s.jsxs)(H,{label:P("changes"),children:[(0,s.jsxs)("span",{className:"text-emerald-600",children:["+",q.additions]})," ",(0,s.jsxs)("span",{className:"text-red-600",children:["−",q.deletions]})]}),(0,s.jsx)(H,{label:P("files"),children:q.changedFiles??"—"}),(0,s.jsx)(H,{label:P("commits"),children:(0,s.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,s.jsx)(a,{className:"size-4"}),q.commitCount]})}),(0,s.jsx)(H,{label:P("mergeable"),children:$(`mergeableStates.${q.mergeable}`)}),(0,s.jsx)(H,{label:P("openComments"),children:q.unresolvedReviewThreadCount}),(0,s.jsx)(H,{label:P("created"),children:(0,s.jsx)(C.DateTime,{value:q.createdAt})}),(0,s.jsx)(H,{label:P("updated"),children:(0,s.jsx)(C.DateTime,{value:q.updatedAt})}),q.mergedAt&&(0,s.jsx)(H,{label:P("merged"),children:(0,s.jsx)(C.DateTime,{value:q.mergedAt})})]})})]}),(0,s.jsxs)(N.Card,{className:"min-w-0 order-1",children:[(0,s.jsx)(N.CardHeader,{children:(0,s.jsx)(N.CardTitle,{children:P("people")})}),(0,s.jsxs)(N.CardContent,{className:"space-y-4",children:[(0,s.jsx)(U,{label:P("author"),person:q.author,unknownLabel:P("unknown")}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"mb-2 text-xs text-muted-foreground",children:P("assignees")}),0===q.assignees.length?(0,s.jsx)("p",{className:"text-sm",children:P("unassigned")}):(0,s.jsx)("div",{className:"space-y-2",children:q.assignees.map(e=>(0,s.jsx)(U,{person:e,unknownLabel:P("unknown")},e.login))})]})]})]})]})]}),(0,s.jsx)(y.JiraTicketDrawer,{issueKey:G,onClose:()=>A(null)})]}):(0,s.jsxs)("section",{className:"mx-auto w-full max-w-5xl space-y-5",children:[F&&(0,s.jsx)(w.Alert,{variant:"destructive",children:(0,s.jsx)(w.AlertDescription,{children:F})}),(0,s.jsxs)(k.Empty,{className:"border py-12",children:[(0,s.jsxs)(k.EmptyHeader,{children:[(0,s.jsx)(k.EmptyMedia,{variant:"icon",children:(0,s.jsx)(i.GitPullRequest,{})}),(0,s.jsx)(k.EmptyTitle,{children:P("notFound")}),(0,s.jsx)(k.EmptyDescription,{children:P("notFoundDescription")})]}),(0,s.jsx)(R.Button,{asChild:!0,className:"mt-4",variant:"outline",children:(0,s.jsx)(E.Link,{href:"/pull-requests",children:P("back")})})]})]})}],337868)}]);
|